ÿØÿà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/19a85afb37841d91f15bf95ed59593a1_v3
O:13:"Curl\Response":4:{s:6:"status";i:200;s:4:"body";s:2547529:"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 xQ,Wal,xz4,sl,Dz5,l5n,kQ,j1v,XD,MnD,u2,YQ,ns,RO5,w5a,SlO,Gh,d4,bss,s14,zOl,kha,H5,Ul,qz,B5,$Q,I1,X5D,ma,en,Z5,uD2,Yll,nQl,xF,K5,lC,Vnz,P2s,bC,zR,oq,C25,Jv5,p5l,hOs,a54,Ghz,dzv,is5,n5,AvF,VA,HsD,$zQ,Pu,I5Q,mzh,Je,N4D,aq,d1,Bu,$F,Iq,mJ,cvD,gQl,cu,yA,g1,yva,eO4,f52,Zs4,ep,La2,f5,Z7,L5,rvD,T4Q,TR,EQO,FaO,jJ,tn4,SJ,QqO,WJa,R3,xks,Dk5,KJ2,Y8,l74,Mp1,zYv,v1,sqn,wu2,XuF,uHO,nFa,Jm,pP,a3,dl,GS,PCQ,CCO,iZ,Am,H1,B1,$8,a7s,I3,mH,N3,yn,GR1,eJ,fP,LP,dks,TS,Eg,Uk4,W6,D3,lF,qsn,Kj,B1Q,$kh,jj,xV,
Ma,RL,I7Q,wf,bF,N1h,sr,z3,XF,gF5,v6,yev,eYz,f72,ceh,P6,YV,oL,Z51,LJO,T15,EFh,FJl,J$,pj,h$,tph,Q35,G3,KHa,MJz,WHa,j34,lX4,D35,x3h,Rcv,w1a,SgQ,df,s3s,A$,bPa,kSF,B6,qa,X1z,ufO,$V,IL,Na,mL,gf,c6,rf,yR,fj,Z3,YgF,Or,n8Q,Er,FF,xL,DJ,KR,t$,WV,QH,jE,Mu,Rp,VJz,jp,wc,bg,ej,Lj,sY,v85,z1,Rq,kL,Xt,op,ug,YL,nR,VH,CZD,PV,Jm2,CR,p1z,pR,Jj,hj,ap,G1,dc,ig,hch,GSl,HV,d3F,iPa,UY,qu,Ip,HPh,mp,U3s,Nu,Bl5,cV,IX5,gc,yH,eE,m3l,fR,NlD,ZJ,cmh,g8n,ymz,LR,ecF,rc,T1,EY,Ft,ZPF,WI,Tlv,fXQ,xc,K0,l5,E8h,jx,Rx,FHl,QLv,WL4,wX,Sx,b5,
sE,zm,kc,Xa,Da4,KL5,l3Q,Mj5,RZD,ox,w6s,Sra,u5,Yc,n0,Vw,bj4,X6O,oVQ,Yr4,uFQ,nV4,PFD,Ji,p0,hi,ax,Gm,i5,Ai,p6O,UE,BI,$c,Ix,NZ,cI,hZ4,gX,yw,f0,G31,das,Z_,rX,Tm,EE,Fa,Qp,WZ,I34,man,Nfv,c$s,x6,Dw,gVD,y$F,eZs,KC,l0,jD,M9,RZ,zM,Xz,Y6,PZ,f3l,ZjD,GM,LLQ,$6,IZ,Ojv,Wp2,tjn,DuD,cZ,gS,TM,jpv,R81,MEl,E6,tO,wV5,Fz,Ky,N9,bRl,SYl,wp,Rw,m_,Sh,bo,sx,spn,zW,k1v,ow,XV5,uo,YH,ny,PO,oL1,utQ,YY4,vO,nLv,VEQ,jLF,hg,Pg2,vLa,Cgs,pVO,JjQ,py,aw,GW,h8O,aJl,G1a,du2,dp,iR5,io,zZF,sLh,Ag,HO,qT,BO,UuD,$H,Iw,NT,qYa,Bc5,cO,cj2,TW,IJn,
NcO,Ly,yz,tg,Qa,gL5,Kr,yjF,li,jo,e8l,ZR2,So,rjF,s7,zD,Tcv,ORn,oj,YX,QxO,xZF,DZ1,KO5,nr,R$1,kX,FpD,SEl,Mxa,l_5,jxa,b02,wI5,P_,WOO,Jr,z$a,kmF,XI5,ocn,uan,hr,o6l,GD,uz2,VDO,P0s,dv,ii,Ar,Ij,C02,md,NU,c_,JOl,pZl,eo,h12,fr,Zr,d9s,AOO,U9a,HCQ,q62,rv,E7,Wx,D4,Kt,lz,jW,MQ,Iw2,m92,Rk,NSO,w8,SW,x7,bz,sO,z2,Mk,k7,cOl,ok,e11,uz,Y7,nt,fwF,ZCl,L_z,rOD,VS,TSl,Px,vx,E6v,Qwz,WXD,Ct,lfQ,KX5,jwF,Mh1,RX4,JG,wO5,xT4,pt,Sxz,by5,ak,zXD,kW5,XOh,oH5,uNh,d8,Yx4,nH2,Vhn,PoD,Jgl,vHh,iz,AG,Hx,UO,qQ,Bx,Ik,mA,hXl,cx,NQ,afs,g8,GWh,
yS,dT2,iyz,Ag1,Hyn,eW,Z4,Bps,ft,$Th,Lt,r8,Ifn,T2,OO,EO,FT,tG,QU,ygl,mT1,K4,gHs,lT,cgD,DF,W0,NpF,xl,MM,ffn,wB,RH,kl,XA,uT,rgn,oH,VU,Tph,P0,Zya,FXQ,thO,Qj5,JF,p4,hF,Wdv,aH,GY,dB,iT,xUF,AF,H0,IH,DUv,KdQ,m6,lrQ,RVa,F_n,MoO,w_O,S7F,brO,jj2,zVz,NM,c0,gB,kDz,er,yU,X_a,oXD,ukD,rB,Y7z,TY,O1,nX1,E1,Pi5,FA,Voa,vXF,Cih,Jrl,tF,Q5,WC,xG,Dm,Km,lR,p_4,ju,M2,RX,hV1,GDh,dU4,Su,sW,bR,kG,Xn,oX,Arh,HrF,uR,YG,nm,q7h,Bvs,mUl,$UO,Nv5,eVn,V5,yrD,crD,PC,vC,fr1,Cm,Zra,J8,rr5,Ld2,Tv2,Or2,Gk,du,EXD,Fd5,to5,iR,A8,Qkh,HC,WAh,xQl,
KAz,Rnv,UW,wx5,SOQ,bta,skl,zns,$G,k2l,Xxs,o7D,eu,y5,gu,uTv,YO2,n7a,fm,Zm,Lm,Pza,Fn,t8,QM,WR,xg,Di,Cz5,JG2,pxz,Kp,MI,wM,zJ,kg,uq,a4F,dQ5,G25,it2,AGD,Cp,Htn,UQz,JP,qOz,B8z,$Q2,I4a,HR,iq,UB,qI,BR,mQa,N85,cGO,$g,IB,g72,mf,yG1,env,f4Q,NI,Zt5,cR,gM,LA5,rGQ,T8D,Otz,E71,FAl,yM,eZ,fp,Lp,W6s,rM,TJ,xMn,QHD,Zi,DM4,OB,EB,F9,Qf,tP,K6D,lFF,jHv,WF,R_O,xk,S1O,b4s,sHD,z_s,kYF,X0s,oll,uAs,lx,jO,M7,nl5,Y1n,Vra,PT2,wJ,vl4,SO,CTl,JF5,bx,sa,zN,p0h,kk,XZ,h_2,ov,ux,Yk,nZ,Vf,PF,vF,CZ,aFh,GY5,dMs,i4n,JH,AF5,UMl,H4s,hH,av,BBs,
q1n,mMv,glD,cF5,GN,yF5,e_l,fFz,L6O,Z42,rFs,dJ,TB2,O41,AH,Elv,F6D,tr1,QXa,HF,Wnl,Ua,x2l,q7,BF,Kns,$k,lmn,Iv,N7,jX1,Mu1,cF,yf,wCv,eO,RJ1,SWD,bmD,sXl,kkl,fZ,XCa,rJ,TN,unn,YW1,PRh,vGn,Oa,Ea,FZ,tH,QP,Wt,xB,DH,K8,lp,jl,Mn,Rb,hJs,pCh,am4,d2D,Gkz,A8n,J8F,im4,CRv,wx,Sl,U2z,qWn,BuF,kB,XW,ob,bp,Imz,up,Hma,Nu1,c8a,m2z,YB,n8,VP,Pt,gG4,$2v,y8l,vt,eJD,fm2,ZmD,Lnz,r8s,EG1,Fn5,tu5,QB4,p8,xI5,DI5,jBv,MZ5,Gd,wRO,dx,ab,bpO,SBQ,kJz,u9n,A2,U3,YBz,ngD,VZv,PqD,CqD,$B,Bt,JPO,vgl,h4F,GJz,UI5,Nn,qBv,mi,gx,BM5,yP,f8,ZH,$IO,
Iih,Wg,mIh,DE,NMn,cPh,sI,gg5,e4l,zy,fi2,Zps,Egh,Lf2,uf,YR,nT,Pg,vg,x7s,CT,JU,pT,Kbl,Gy,lGl,jvO,dk,Rb2,Hg,UI,qh,Bg,wF5,$R,mS,Nh,cg,gk,SaO,bZl,svQ,e$,fT,ZE,LT,rk,Ty,zb4,kNF,XFs,okQ,uZh,Yan,OI,nk4,D9,VO4,Pxa,vkl,Kv,jS,M1,R2,b$,sb,zK,JH4,o2,u$,YP,pFv,hbF,nv,aG5,GND,Pv,$7z,IGl,m71,vv,NJv,cHF,eb4,Jx,ZZ4,fGa,hx,rHv,TJh,OZF,GK,dT,Eks,i$,Ax,Hv,Ub,q1,Bv,$P,I2,cv,gT,yo,eS,fv,Z9,Fbh,tO5,Qbl,rT,Ob,Wi5,Qk,Wb,x1,Ds,Kl,jL,MO,lHD,Rc,wm,SL,MlD,jbQ,xnF,zG,sk,b8h,k1,Cl,Vk,JS,pl,zpv,oB4,ac,nB1,uW4,Y31,Pp5,hpa,vBQ,J2l,
ptQ,dm,GG,aHn,AS,Hb,Uk,Gd5,NO,dna,cb,gm,eL,i8n,Zs,Ll,A24,rm,TG,UnD,F5,QB,Wk,xY,D0,Kw,ly,jY,MW,RC,Bxn,w3,sd,by,IHv,gB4,Nx2,c2n,y2h,ep5,Z85,Lin,fHh,Txs,Xw,oC,nw,O8O,EB1,YY,VB,tl5,QrD,KS5,Dh2,Jl,pw,hl,aC,GT,iy,jrQ,M$5,RQn,IC,me,wgO,SI5,bTl,eY,fw,Z0,srQ,zQa,XgD,uKv,Od,YI5,tl,Ed,xD,DL,lJ,nRs,sU,zj,kD,Xi,uJ,YD,VX,JUO,pg1,vs,hQ2,aEl,J4,Gys,dh5,pX,h4,iT2,AUQ,UhF,iJ,Bkl,$hD,Gj,IEO,mhl,cUh,Nka,q5,qIl,yUh,eQF,cs,mj,fEa,ZTn,gV,yX,LS5,rU2,ZL,Tkl,OTh,ERa,FSQ,EU,t$h,Q2v,WgQ,x1n,D1s,Kg2,l9z,j25,t4,MSO,W3,wvD,Sb5,
bvF,s2l,z6l,xE,R_,XvO,YbQ,wq,nPn,P$1,kK2,vPF,C$l,Jxh,oPF,uP4,DV,KK,M8,VSD,jG,lN,pvz,h62,a94,GKs,d1Q,iv5,BTs,Axn,z$,kE,o_,m1n,gP2,cxO,X8,J0,yxD,a_,e6z,ZvD,H3,f9v,W2l,Lgl,Qch,$E,xOv,lss,I_,B3,DOz,K2n,jcv,N8,RIO,wba,Sks,bl5,scF,zIz,kGD,MLh,o1F,u5s,Yka,VLO,n15,v1a,eG,CYv,fK,ZV,LK,JS4,pbO,Oh,Eh,as5,hI2,F8,GG2,ilv,Hl1,AS2,UOv,$O5,qk4,wh,sc,bu,Is4,ST,zb,ki,nu,Vc,mOs,v$,cSQ,pu,JV,aK,Gb,dh,g15,iu,H$,ySD,q6,$i,IK,eIs,fsl,Zlv,L2O,mI,c$,rSD,gh,yc,eT,OlO,fu,Zn,E1F,rh,Ec,Oc,Tb,F1,tV,QCz,jCD,Rzl,l0D,Ke1,MYO,xC,
lt,sCD,wks,Sd4,bw1,tL2,Py1,Xx,VY2,Jl1,nY1,Wp,oG,wN,zn,vYF,Ml,xWz,We5,DWh,Kh,Ydl,Vb,iwa,Pp,Hwh,UWD,qd1,Ch,B32,$W5,I0n,N31,clF,aG,ylv,Gn,ezl,f0O,Len,rlQ,it,T3D,EY5,Ab,Fe2,Hp,UV,R8,D5n,Rf1,Nl,SU1,zfv,gN,Xsz,oDh,uiF,YUF,tb,nDF,EV,NTs,Tn,Fx,OV,yb,MA,jt,wn,be,PJO,sP,k_,X3,vD5,CJv,Y_,ps4,hf1,aLa,Gj5,d5l,iXa,A42,HXQ,U55,qU2,v4,BVn,CV,pV,$54,ILz,m5F,h_,NV5,c4n,ie,A_,H4,gD2,UP,y4Q,B4,fLO,efv,Id,mY,NA,c4,ZXD,gn,yK,Ljn,r4Q,et,fV,FjF,TVD,EDF,OXQ,ZI,LV,rn,tMD,Q_5,WxD,Te,D8Q,j_n,lVl,OP,EP,F3,t_,QZ,xZ,De,Kb,lK,ji,
Mr,Rl,MGa,Ryv,w3z,ws,Si,bK,sH,kZ,ol,s_Q,bK5,YZ,zy5,nb,VZ,Pi,vi,Cb,hI,al,GV,ds,iK,AI,Hi,UH,qr,Bi,$Z,oEv,m4,ci,u8h,gs,nEl,VGD,PNn,CN2,p3O,rs,hyv,OH,TV,d8v,iKn,A0F,FV,tI,U85,Wo,xn,Dx,KA,Bq4,oo,us,Yn,$82,nA,qha,V_,Po,m8s,IVl,vo,CA,Jd,pA,ao,c0h,gEl,dK,is,Ho,U$,y0D,Ad,ZK5,Lxz,r0Q,Tq5,OKs,EE5,Fx5,Bo,qc,fVO,WIO,$n,D62,KI5,gK,lns,m7,Nc,jK5,y_,Rrv,Scs,eP,fA,buF,LA,zrD,rK,nis,u14,kbs,oi2,X$Q,O$,E$,Fl,td,Qg,WQ,xw,D1,Pu1,JVl,jg,R4z,Ms,p$n,anz,wF,zC,Sg,s2,bl,iuh,d64,Gbv,AVh,kw,Huh,$6D,XG,ul,m6l,Yw,nI,Vg,PQ,Nh5,
vQ,cV4,gis,Jy,GC,dF,il,Ay,HQ,U2,qs,BQ,$w,It,my,Ns,cQ,yVs,er5,gF,yg,eg,fI,Z1,LI,fnF,Zus,rF,R9,Thv,Ou4,wW,Sd,u1,Yt,FI5,PE,Jp,tTl,W05,QG5,xlO,Dln,K04,lD2,jG5,M05,wp5,Rwz,SV5,zwO,XpD,sGv,hp,a9,ux1,oCQ,Gf,dW,i1,nCl,Ap,HE,Uv,Pta,vCa,qb,V0n,BE,ppa,$t,I9,m9,Nb,cE,gW,ys,ed,fB,ZN,LB,rW,Tf,Ov,Ev,FC,tp,QD,Wr,xj,Db,KY,la,Mj,RF,wa,Sa,ba,sQ,z6,kj,Xu,oF,ua,Yj,nY,VD,Pr,vr,CY,JX,pY,hX,aF,G6,da,ia,AX,Hr,UQ,qj,Br,IF,mG,Nj,cr,yD,ea,fY,Zb,LY,ra,T6,OQ,EQ,Fu,tX,Qm,Wq,xz,Kd,lS,aDn,jX,E,Mp,Du,RE,wO,SX,dl5,sL,Aba,bS,Hhl,kz,
Ul1,oE,z_,uS,Yz,nd,Pq,BNh,$lF,IDD,mlz,iS,As,hs,Hq,cb5,gCv,ybl,ews,qV5,fDl,Vm,Zhs,L0v,qp,Np,Bq,Cd,rbz,vq,UL,$z,cq,Oh4,Js,pd,mK,IE,EC2,gO,ym,eX,fd,F0O,Zu,Ld,rO,T_,OL,t0a,Qda,xAv,DA5,ts,Q8,WP,x4,Rs2,SPO,sdv,zs5,KD,X45,o_D,Sz,u32,bd,sp,z5,k4,XX,ou,YPO,Vtz,PeO,n_F,v_5,Cen,V8,PP,CD,pD,hD,au,J_Q,G5,p4v,dt,id,vP,Up,q_,BP,$4,hsl,HP,GeQ,Iu,dAD,iVQ,ms,A_4,N_,cP,HV2,UAD,gt,qPz,BnQ,y8,$As,IIh,mAa,Nnv,ez,fD,c_5,g_D,Zk,LD,rt,y_4,T5,Op,Ep,FX,esF,tD,Q$,fIs,Wl,ZVv,xd,LYQ,r_F,Tnz,OV2,E_n,FY1,DC,ttl,Qll,W4n,K3,xrs,l7,
Dr5,jm,K4v,Mq,lea,jls,R0,zu,Miz,kd,X2,o0,u7,RNh,Yd,n3,V$,wiQ,SHz,vl,C3,slQ,J7,zNh,kVD,bb5,Xiv,oZD,uV4,h7,YHz,a0,Gu,dw,i7,nZD,A7,Hl,qq,Vih,Bl,$d,PKQ,mQ,gw,Nq,ZC,L3,vZO,rw,CKn,OC,EC,F2,JIh,Qy,pi5,xU,DR,KS,em,l9,je,MN,hNs,RU,wg,Se,aeD,b9,zl,kU,Xs,oU,YU,nS,Vy,PT,GVz,drO,ibn,AIO,Ow,LS,Ew,Fs,Hba,Url,qH5,th,Q4,Wa,Bss,$rO,Tl,Iel,mrF,xa,Nsh,DT,Kz,j_,Mm,RA,wE,S_,s0,zp,XY,oA,uW,Ya,ka,yI4,eNs,V4,Pa,va,feh,JA,L45,pz,hA,rI5,aA,Gp,dE,AA,Tss,iW,Ha,U0,qm,Ob5,IA,F4h,tia,QoO,mU,Nm,W7n,xch,Dc5,ca,lxF,Cz,K7z,jov,gE,MPl,
y4,Rv5,e_,wo4,S$D,bA1,soh,zvQ,fz,Xoh,kil,ZT,Tp,on4,O0,ul1,E0,Y$1,nn5,FY,VPn,PsO,vnO,Cs1,tA,Jdh,QW,hv4,xe,D2,GiO,axF,dcs,iAl,Adn,lP,jB,ME,HAs,Ucv,q$Q,BK1,$c2,IxQ,mc4,NK2,cd2,gn5,w2,SB,ydh,evs,bP,sj,fxD,zE,ke,oe,ZAD,uP,Ye,n$,L7v,VW,rd4,Pj,TKl,vj,OAF,EnQ,C$,F7z,tPn,Qth,JK,p$,hK,ae,GE,WyF,xsD,d2,iP,AK,DsF,Hj,Uj,qE,Bj,$e,Ky4,l1Q,Ie,mm,jtz,NE,cj,g2,yW,WYD,MgO,RFO,eB,wQ4,S2h,bIn,f$,Z2,L$,r2,TE,Oj,Ej,Fc,tK,Q3,WD,st2,zFv,RQ,w9,kC2,SN,u6,sS,aQ,Vgz,pQF,Plh,hFF,GCQ,dsF,a1n,iIs,Ay5,HIa,NB,BFs,I1v,NFn,cy5,gwn,
y3,eN,eFn,f1a,TF4,fU,OIF,ZI5,Zy,LU,r9,Tv,FyD,W95,tgD,K94,bB2,Sv5,lN2,s91,ES,MdF,j91,XEh,Yvs,uCa,vt1,ntQ,F_,t3,aN5,xs,Gfn,BWF,qv1,Uba,HBl,iBa,mbO,INa,ApF,e01,yph,fNQ,MS,rps,ZBF,L92,dba,TWQ,OBO,DO,l8,cps,NWD,gtF,EtF,K_,$b5,tdF,WGv,DjQ,lba,RqQ,wra,bY4,sFO,k6l,zql,nj5,ojl,Xr1,Va2,Can,JXa,prn,hqD,n_,$s1,dj4,aba,ve,HY2,Jz,qQF,Baz,Ujl,p_,$j5,hz,aP,ud,Go,q21,d7,i8,Az,Ibs,mjs,He,Nah,cX1,gj5,Uf,qS,Be,$s,IP,mD,NS,ce,g7,yXO,eq5,yE,fbl,es,rE,f_,ZO,LG5,ZY1,L_,rX1,Ta2,r7,To,OYF,Of,Ej5,FG2,ms5,AX2,ta1,Ef,Y4,F0,RP,
QEl,WKl,tz,h05,QE,xpl,VE,Pe,Ss,w7,OS,sf,jFO,SQO,b8,C15,Pa2,Dph,z0z,R0z,Ql,iY5,g9,lu5,KKs,Ewh,Mal,jEs,vjl,u8,Jpn,pE1,ots,KGs,xjF,DbF,Q9h,ry1,Lyv,yy2,F9n,wEO,uuh,Vds,P12,ks,oP,zo,YQF,QFl,RKl,MXa,Wc,xv,DQ,KJ,l3,Rm,b3,zL,kv,XJ,u3,Yv,wq2,jb,My,om,bdF,SLF,nJ,sE5,zKh,Pc,k_v,XqQ,vc,CJ,JB,pJ,hB,am,GL,dL,nzh,AB,i3,VXQ,u0s,YLF,PSQ,Hc,Uu,vz2,CSF,qy,JsF,M5,hK4,pqs,G_4,ids,Asn,dpF,Hd2,BO4,cc,gL,$p2,Iu1,yl,eb,mpF,NOQ,cs4,gzO,ZQ,rL,TL,eKO,fuQ,rsl,Od5,Ezv,TOl,FJ,QC,tB,FK1,tXn,Ou,QuF,Wsa,x_1,D_l,Eu,Mzv,R5F,wP5,jua,
lkQ,Ksh,SpF,bD1,Zd4,su1,LKn,z5Q,k55,Ypl,XPv,o4a,uXh,Pd5,n4s,Vza,v42,CdF,xJ,h5F,JDn,ak4,pPF,G5D,d_O,iDa,AD1,HDD,U_2,qp1,Btz,$_O,IkQ,m_v,NtO,DK,g4F,yDs,e51,cDl,fkl,ZDO,Ttv,lQ,Ry,Sw,OD2,bQ,se,z8,Q0a,xqv,WQ5,KQQ,s04,Ph,XB,Dq1,tzs,FsD,E4h,VC,oy,nN,hW,ay,Xll,G8,dQ,pN,ndO,od5,u25,Vms,iQ,AW,vdh,Ue,qD,Bh,$J,Iy,mw,ND,C7O,J7z,ch,gQ,ew,hMz,aCF,yC,fN,i35,A72,ZK,H31,T8,Uqv,Oe,FB,qC4,Ee,tW,Bw1,WM,ICD,mqQ,Dt,Kf,wR,c74,j2,S2,sq,gds,km,Rz,bM,y7v,XU,eM4,oz,fCl,lM,ML,NwF,zI,uM,Z3v,LQQ,Ym,r7D,nf,Vr,PM,vM,Twz,JZ,Cf,pf,
hZ,O3O,Edv,az,GI,dR,iM,AZ,FQh,HM,Uq,tmO,QU5,qL,BM,$m,xNs,W$F,Iz,DN5,K$F,lR1,mZ,jUn,Men,RW4,wT2,SwD,NL,cM,gR,yr,bSa,sUa,ff,zW5,Zt,Lf,klh,XTQ,rR,oUF,usa,P9n,vU5,Ywz,nUl,Vel,Oq,Eq,FU,tZ,C92,Jh4,QY,pTD,aRa,hWh,Kn,Dv,dND,iSv,AhF,HS1,lO,UND,MG,RI,qws,$NF,IR5,S8,kK,gU4,SCn,uQ,eWl,fRQ,ZSh,L$Q,rhO,kJ,bO,Tgv,uO,YK,F$2,te5,QAn,nn,KU1,WU5,xmQ,jAa,M_l,VY,RTD,lTF,waa,PB,vB,Cn,S0l,bzs,Ja,pn,sA5,ha,zTF,aI,Xm,Aa,kpz,b3O,lCn,HB,U5,BB,$K,II,mB,NG,qG,yY,oas,Zv,uY2,Y0n,naF,V_Q,PW5,Ln,CWv,rr,paO,TF,aTQ,Gph,hTa,JAl,dmD,
iza,AAa,Qv,Hzv,Um2,BEh,WL,ku2,Dj,ITs,NE4,vh,cAn,gaQ,lA,eTD,YJ,yA5,j02,RMh,wlO,$m5,jC,M4,RO,fTs,Zzz,w5,LU4,bA,sT,zs,kh,X4,rAh,oO,uA,TEQ,Ozv,Yh,nO,Vv,PL,vL,CO,FUF,Eas,JC,t_D,Wma,pO,xEl,Qez,eC,g5,fO,LO,r5,Fm,DE2,Sjn,G_,yv,F4,kEv,oes,AC,xS,iA,Dd,jQ,cL,Mo,PP5,Rf,w0,vez,CPl,JKF,pj5,SQ,hL5,a2Q,bb,GEQ,UEl,H$D,dEQ,AK4,i$a,sN,qjD,zQ,B2F,$Es,mEl,N2a,cKO,Z$v,YS,n1,T24,V7,PW,O$z,tB4,QQv,WFa,xBD,vW,DBz,lyQ,jQh,qo,XDz,SSD,bUn,u_s,BW,YSh,VN5,nOO,P6a,If,cW,vOQ,$S,g0,y7,C6n,pDF,Gvn,L1,FS,DM,j4,gO1,y34,S4,wG,zr,kN,
ema,LFz,ZU4,r35,o4,X6,T9l,EOD,FFz,QPa,nQ,tNF,WD1,xSn,PX,vX,KD5,Zd,YN,pQ,UBh,J3v,Iyl,dG,s_,OUD,$N,KQ,mW,NJ,cX,uR4,osv,lG,rG,Tr,nsh,O_,E_,Vs1,MJ,F6,fyn,Q0,wen,bG,P8l,iUs,dBD,hma,Wd,Da,Aza,i_h,USD,qfa,Mf,wZ,S9,RN,sX,z4,B7h,kW,IOl,Xh,N7a,YW,mSz,nq,V0,eis,Pd,LD5,rzl,Jo,T7h,Es5,$W,mh,Nf,gZ,e9,FDh,fq,Za,OX,EX,Fh,to,tsO,Q2,W9,Dyv,x2,D8,KTz,lQD,Ka,jmD,Mbn,RUv,wc1,ln,jV,Su2,sm2,wz,SV,zA,k2,zUD,Xe,oY,un,Y2,na,kL1,XcO,V2,ovs,uJ4,P9,nvQ,YuD,VbD,v9,vvv,P35,Ca,C34,Jc,pa,JBs,hUz,aQa,hc,aY,GA,GLs,dz,iJ1,H9,ABh,HJ5,
Ac,UG,qd,B9,$ya,myO,Uyh,IQ5,NLs,quF,BL5,cBz,gvl,mq,yBF,fQD,rB4,OJQ,TLl,La,Z8,OG,FTs,EG,Fe,tc,Qyn,Qj,Ww5,tb5,W7,Kwl,xA,DW,lK4,Kk,jyh,wDz,kvO,RR4,MwD,Se5,whn,bNn,jq,sy4,zRQ,R6,oJn,w6,Sq,bc,Yev,PQ4,kA,Xd,o6,CQ1,vJ1,sm,JWz,phs,hRF,G8D,uc,IKQ,P7,v7,eR5,c9,ZNn,Lw5,rWa,TQO,ONn,JL,EJO,pk,hL,a6,Fwn,ic,twO,Qz5,AL,H7,WZO,xLs,DLh,KZl,lth,Um,d6,jz5,qP,RxF,wMa,SqO,B7,bf2,sza,zxa,kIs,XMv,omO,uUz,YqF,nmD,V22,$A,vmv,I6,CM2,NP,pM2,yj,PMF,ml,eq,fk,ZW,Lk,r6,TO,hxl,Om,ats,Fd,Hf2,BRz,$L1,Itz,mLQ,Wn,NR5,qq5,AZ5,cZa,tL,
gmQ,ex2,Em,QQ,dLv,if1,x9,ft5,Zfl,ULQ,GI1,LZh,KG,rZD,lm,jk,TRs,MY,FZ5,Ofs,Em2,RT,t2D,wI,Sk,bm,sJ,QIa,WBF,xGF,za,KBO,lvl,k9,jIF,XI,oT,M8l,Rdh,wB2,S5Q,bnQ,sIO,ums,kFl,ZJz,Y9,nKz,V8a,XBl,oKz,zdn,Pn,pB2,VQ,nG,Y55,av5,Jav,COF,vKh,POs,CG,GF1,Nd,Jt,pG,ht,dGs,aT,inl,Ga,AaQ,TA,Hn4,dI,y2,fa,eUn,Hn,qY,BrD,$G5,Bn,IT,UJ,At,NY,im,UG1,q55,cn,IvD,mG5,g6,JZ4,gz,gI,NrD,$9,cas,gKs,yaF,eda,yQ,ek,fG,Znz,LBn,ran,Trl,Ons,EK1,yZD,LG,rI,Ta,Zg,t8D,xD5,DD5,OJ,QO2,WrD,x4F,D4v,EJ,Krh,FI,ljD,MCh,tt,Rus,wLn,Wf,sOO,QJ,K2,XLa,ksz,
nhn,u4h,VCQ,PAO,ohh,YTn,zu2,vhh,lj,CAh,hul,JCD,pLF,Mg,M2a,ajO,Gsn,d4D,iO5,ACn,RS,HO4,wY,U42,SH,Gt,qTa,dY,B5a,$4z,ij,Ijv,m45,N51,cCa,AY,VwO,Hf,euQ,UF,yCD,fjD,ZO5,nJv,zO,Lr5,rCa,Bf,W55,Qf5,cf,xoa,tCD,ldh,gY,jfl,MQl,SN2,b1h,zl4,wWF,kQl,XWF,oSD,uSs,YN5,VQ5,Pbn,vSs,nS4,eH,qg,JQ5,Rlv,pWO,sfQ,f2,ad5,Cbs,yJ,GQh,doh,H11,$os,Uoz,IdQ,B0F,mo1,i1v,Zl,N0a,AQv,OF,elF,Z1F,fdh,L5a,rQn,T0n,yQ5,O1v,ESF,L2,F5v,tQv,Q44,WW4,xJh,lMn,KWn,DJl,Fq,j45,Rjn,wXO,S_5,bQz,WG,x0,c7,s4s,zj5,kr5,u6a,oNz,XXD,Y_4,V4z,PG2,nNQ,Tt,ST4,
CGh,Jfh,pX4,HQl,Gr5,dJn,iQQ,UJz,BGO,hd5,tY,aMn,hjs,q_Q,rz,Afa,um,eV,qN5,cf1,NGl,gN4,yfs,ejl,fM5,M4a,Dl,xp,IMQ,ZQs,mJh,LWQ,rf2,jOv,TGD,gSl,cQD,$Jv,bO1,lV,j5,EN2,MH,FW5,t4O,QN1,Wh5,xfa,KhQ,laa,wd5,jNF,RtD,SXl,wi,k4Q,sN5,zt2,uhD,YXO,nWQ,pn2,hoh,R5,agQ,oWQ,bqn,S5,Gan,M9h,dYO,bV,AtO,HGs,UYD,iGF,zz,$YF,BIF,NIF,mYl,Ig5,ct5,g9v,k0,ytD,eo5,ZG5,LvO,fg5,rtn,tk5,OG2,E9h,Fv2,QS2,WR2,xg5,KR1,Dg1,ll4,jS5,MH5,wfQ,SF5,sSl,b2v,zEh,REv,ktn,opn,uqs,npQ,Pjn,YFn,uV,vpF,CjQ,Xfa,JYh,VH2,Y0,pf1,hEa,al2,Gtz,dgl,i2D,AY2,UgQ,
BYz,$g1,IlF,mgD,NYQ,VT,cYz,PG,yY5,eEz,Z2l,p9,rY4,TYv,O2s,EpO,tHD,FRz,xHO,DHs,hn,Gz,Q54,WP1,KPl,iV,j5z,lP1,M5z,RGn,wG5,s5n,StO,XGn,An,b9Q,o0v,HG,V5D,qH,BG,PVl,Ut,v05,$0,pG5,Jna,Yt4,n02,hGl,aPv,GzD,uj2,dHF,I5,i92,CV5,LRQ,di,H91,NH,UHO,qth,Bi4,$Hs,IPQ,mH5,Nia,cnQ,g0D,cG,yn4,eG2,Z9a,LP5,rnl,fPO,TiQ,O9F,E0D,FP5,t5z,QJl,yT,gZ4,W35,xF2,e5,DF2,K3n,ZP,My2,RhO,L9,SRs,sJD,w2Q,jJ5,ri,f9,lAs,Et,Ot,zhv,Fj,Tz,urF,Vyn,vqs,Crh,p2F,X24,Prv,hhh,oq5,aAl,GU5,DA,tn,igs,dFF,W2,UFD,qR4,nqO,YRl,Hg5,Bds,JEh,kUv,Kg,lr,jy,$FQ,
MF,yEQ,Nda,ehz,cE4,mF4,fAs,IAD,TdF,ZgO,RJ,OgQ,F3h,Qgz,Wc4,xtO,lh4,sR,jgD,Dt1,xq,wH1,Soa,ur,hlv,wd,bM4,sgl,kZF,zCl,XHl,RCn,kq,oI2,uo5,Yo1,V7a,nIn,vNs,PXl,zU,vIh,JJ5,CXD,hC2,pH4,tyQ,GZ2,ahQ,Xr,Sy,dt5,ng,AJv,HMs,UtO,qoQ,Bea,Yq,TID,KcD,$tO,OQ1,Qh,Iha,mt2,NeQ,cJ5,gIQ,Vh,P2,eCn,fh5,ZMF,yJa,Lcs,v2,EIl,Teh,OMF,Fch,Cg,t7a,QWO,WoD,JE,xRa,Kon,loF,jWa,pg,DR5,hE,aJ,M32,RDF,ir,GU,dd,wNQ,AE,Sy4,bca,sWh,k0F,zD5,IJ,ouQ,uOQ,XNv,Yyz,m3,nu5,NF,V3F,c2,PvO,vuO,hD5,pNs,dRF,Cv2,aon,gd,Jwz,G0F,ic4,Awn,Hcs,UR5,ey,qyF,Lg,fg,
B_1,rd,TU,Ioh,ER,Fr,mR4,OR,N_D,tE,gu1,cw5,WH,xI,Dh,fov,ywa,eDh,KM,Zc4,Och,rw1,Loa,T_1,lX,Fo2,xvn,Dvv,j7,K1n,l$n,t31,Q7Q,Rk5,wyD,SDa,b7z,s74,zkn,we,u7s,S7,Xyn,o3h,PDz,Rg,bX,so,kH4,YD5,v3v,zZ,kI,CD4,Jk1,Xo,pys,og,hkQ,a$z,GHs,dvz,i71,AkO,H7F,BHD,UvQ,$v5,I$l,NH1,ckF,ag,L1h,yk4,eks,rkF,TH5,Z7n,g3n,O75,F1l,E3s,tA1,lYD,de,RS1,bin,SzO,w81,DKF,KMl,QiQ,WM5,jin,iX,AJ,zSQ,dZ,cz2,kwl,Uo,BH,oyD,X8Q,Mva,Yzz,nyl,Vvs,$I,Pk1,e7,Ck2,JT2,p8l,aY2,hS5,Gwn,fM,Zh,dKh,Hil,UK2,TZ,AT5,qzD,Byv,ii2,Oo,tJ,$KQ,IYv,Fo,mKO,Ny5,cTQ,
gy5,eSF,yTQ,LMl,rTF,fYD,Oi2,EyQ,Zi2,xu,Do,FMl,QMn,Kc,tvv,WC5,D$4,x$5,KC5,lv,lB4,jMD,MUz,j3,MR,RW,ReD,wSn,SnF,sMQ,bxa,ze2,k74,XSD,o5l,uQD,n5F,S3,w_,bv,VUa,Pw2,YnO,he1,aBa,G7n,ARO,ix4,d$a,Hx4,U$n,sy,z0,qnv,BbD,$$Q,IBz,Nbh,cRh,XO,g5D,ku,uv,m$a,yR5,ee1,fBn,ZxF,LCl,nc,rRv,Tbz,FCz,VL,tUD,E5n,PN,vN,QVD,Wt4,Di2,lpQ,xiO,Kt2,Jw,jV5,R2l,wUO,boD,sV5,pc,hw,z2O,MI2,ofa,XUa,kBD,aW,G0,YKF,ubv,d_,iv,nf2,Aw,VIF,PEs,vfs,HN,CEO,Uy,J15,qR,BN,ap2,GBh,din,A15,Hoa,Uil,ioO,BPa,qKl,$i2,NPQ,mo,gf5,c11,Ip1,mi5,y1D,e22,NR,cN,
fpv,ZoD,Ltl,r14,TPn,Oo1,FtD,tIs,MF2,xC2,DCD,QRO,wAz,Lc,T0,zAQ,FO,tw,kX5,SA5,Zo,x3,Wy,Oy,oTF,D$,YA5,VFa,nTl,K7,Ey,fc,uEl,Qi,bE5,XAO,vT5,g_,lD,Ch5,J64,r_,sRn,jA,Mv,pAs,R7,wH,SA,hAz,aZ2,dC1,iE1,GXn,bD,HEF,A6F,sD,UCs,zH,k3,qAs,Bos,$Cv,IZh,mCz,c65,y65,gT1,No1,X7,eA5,ZE5,fZh,o7,uD,LE4,Tov,OE4,Y3,r6l,ETF,FE5,tF2,Qsa,Wu5,xwQ,Dwn,Vi,Py,lc4,KuF,js5,vy,C7,Mc1,R7n,SZl,wY5,bW5,p7,ss1,z7n,a7,kqO,XYD,ob2,uyz,YZ5,nb2,PUv,vbv,CUQ,Vc5,JN2,pY5,h7Q,ac1,GqO,dws,iWa,AN1,Hy,HWs,Uwh,qZs,Icv,gbn,NCs,$wF,By,mw4,BC5,cNh,$3,
e7h,yNn,I7,fcs,ZWa,Lu5,Xj,rN2,tcv,QnD,W84,Nv,xX1,gH,EF,DXQ,yi,K8l,cy,lzh,jn4,sn1,rH,TH,ED,F7,kcD,zav,MKF,tk,Xwn,oxD,Y8Q,Qq,nxz,VK4,P4O,OD,C4l,vx2,W8,DY,S8z,Z$,J9h,pw1,hal,az1,Raa,wwa,L7,Gc1,dXO,iFn,A9a,BU4,$X5,mXh,q81,gxs,$2,IY,rY,fz1,ZFs,ean,L8Q,Izh,y9s,HF5,r9a,c9O,TUn,NUn,mv,fvv,AEz,Ki,jH,UX5,Exv,Wzh,jv,xVv,DVz,tKO,Ri,Kz1,lqs,OF1,j$2,Q$Q,MRs,wy,MK,Rgn,S41,wz4,lk,s$Q,sz,zgQ,Sv,zw,bk,ky,M7s,k9v,ugO,or4,nr1,VRF,Y41,oi,X$,vra,C_5,JMQ,UV1,dVa,iez,aqQ,$VO,hga,ni,NAQ,IqF,cM5,gr1,Yy,P8,v8,Zel,fql,eg5,JT,
Hen,Gw,rM5,ai,Ci,Oez,tRh,Qa2,BAn,Erv,AT,Wks,AM2,Lzz,pi,x01,Vq,D04,Kkv,lSv,qK,B8,TA5,ja5,M1h,$y,Ii,RHv,hT,mVa,wJ2,SiD,bLa,Fz4,sav,dy,zHv,ik,uL,kgh,oo2,mM,NK,uLQ,YiF,no4,Uz,H8,V1n,XzD,PHF,voF,CHD,Ju2,pJh,c8,gy,GgO,Aua,U05,aSO,goD,yuv,eHD,fS5,ZL4,Lk1,ruz,OLs,T$h,yq,ev,fi,Eoz,FkF,t1n,Lz,Qhl,ZY,WV4,Li,ry,p3,Tw,EL,xe4,C_,G6Q,Deh,We,KVF,Ba,$a,FR,lU4,jhO,Oz,M6n,RBh,Ez,SMa,b65,F$,Qd,WS,sh5,XKQ,oMD,x5,upQ,zBs,kxD,YM2,nMl,V64,PBa,vMa,DB,J5h,aI5,JD,Wj,pK4,hBa,K$,CBa,AD,aUO,Gxs,de2,Kx,nz,A52,H6s,lw,jU,UeF,M$,
qMO,tT,Bjn,$en,EZF,RM,wb,IUl,SU,bw,men,sn,Njs,z7,k5,c55,gM2,poz,XQ,y5s,fUh,eBs,oM,Z6F,uw,Y5,LVD,r52,Tj1,O62,EMO,FVn,t61,WNn,Vd,QDa,xxF,Dxa,KNs,l61,wm4,jDQ,Mfz,R3h,bHv,z3s,kP4,Xms,sDv,PS,o$n,uvO,Y9a,n$O,Vfv,Cx,PI1,JR,px,hR,v$D,CI5,pmD,h3F,a6l,GPO,iHv,dxz,Aq5,aM,G7,q95,HHh,UxF,db,BDF,$xD,iw,AR,I65,HS,mxF,Un,NDa,q$,BS,cq2,$5,IM,g$a,yq5,mC,N$,e34,cS,f6D,ZHh,fx,LN1,rq5,TD5,FN2,E$O,ZB,tfz,Q1s,Was,Usa,OHl,Dz7,KaF,j1e,Q1l,Sn;xQ=function(Q){return function(){return Q1l[Q].apply(this,arguments)}};
g.D5=function(Q,W){return Q1l[Q]=W};
Wal=function(Q){var W=0;return function(){return W<Q.length?{done:!1,value:Q[W++]}:{done:!0}}};
xz4=function(Q){Q=["object"==typeof globalThis&&globalThis,Q,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var W=0;W<Q.length;++W){var x=Q[W];if(x&&x.Math==Math)return x}throw Error("Cannot find global object");};
sl=function(Q,W){if(W)a:{var x=g.R1;Q=Q.split(".");for(var D=0;D<Q.length-1;D++){var K=Q[D];if(!(K in x))break a;x=x[K]}Q=Q[Q.length-1];D=x[Q];W=W(D);W!=D&&W!=null&&Sn(x,Q,{configurable:!0,writable:!0,value:W})}};
Dz5=function(Q){Q={next:Q};Q[Symbol.iterator]=function(){return this};
return Q};
g.n=function(Q,W){Q.prototype=KaQ(W.prototype);Q.prototype.constructor=Q;if(zh)zh(Q,W);else for(var x in W)if(x!="prototype")if(Object.defineProperties){var D=Object.getOwnPropertyDescriptor(W,x);D&&Object.defineProperty(Q,x,D)}else Q[x]=W[x];Q.t2=W.prototype};
g.V=function(Q){var W=typeof Symbol!="undefined"&&Symbol.iterator&&Q[Symbol.iterator];if(W)return W.call(Q);if(typeof Q.length=="number")return{next:Wal(Q)};throw Error(String(Q)+" is not an iterable or ArrayLike");};
l5n=function(Q){for(var W,x=[];!(W=Q.next()).done;)x.push(W.value);return x};
g.C=function(Q){return Q instanceof Array?Q:l5n(g.V(Q))};
kQ=function(Q){return j1v(Q,Q)};
j1v=function(Q,W){Q.raw=W;Object.freeze&&(Object.freeze(Q),Object.freeze(W));return Q};
XD=function(Q,W){return Object.prototype.hasOwnProperty.call(Q,W)};
MnD=function(Q){if(!(Q instanceof Object))throw new TypeError("Iterator result "+Q+" is not an object");};
u2=function(){this.G=!1;this.N=null;this.U=void 0;this.B=1;this.L=this.X=0;this.T=this.D=null};
YQ=function(Q){if(Q.G)throw new TypeError("Generator is already running");Q.G=!0};
ns=function(Q,W){Q.D={dO:W,K1:!0};Q.B=Q.X||Q.L};
g.A=function(Q,W,x){Q.B=x;return{value:W}};
RO5=function(Q,W,x){W=g.V(W);var D=W.next();MnD(D);if(D.done)Q.U=D.value,Q.B=x;else return Q.N=W,g.A(Q,D.value,x)};
g.VF=function(Q){Q.B=0};
g.P5=function(Q,W,x){Q.X=W;x!=void 0&&(Q.L=x)};
g.v5=function(Q,W){Q.X=0;Q.L=W||0};
g.Cs=function(Q,W,x){Q.B=W;Q.X=x||0};
g.Jv=function(Q,W){Q.X=W||0;W=Q.D.dO;Q.D=null;return W};
g.ps=function(Q,W,x,D){D?Q.T[D]=Q.D:Q.T=[Q.D];Q.X=W||0;Q.L=x||0};
g.hv=function(Q,W,x){x=Q.T.splice(x||0)[0];(x=Q.D=Q.D||x)?x.K1?Q.B=Q.X||Q.L:x.kf!=void 0&&Q.L<x.kf?(Q.B=x.kf,Q.D=null):Q.B=Q.L:Q.B=W};
w5a=function(Q){this.B=new u2;this.U=Q};
SlO=function(Q,W){YQ(Q.B);var x=Q.B.N;if(x)return Gh(Q,"return"in x?x["return"]:function(D){return{value:D,done:!0}},W,Q.B.return);
Q.B.return(W);return d4(Q)};
Gh=function(Q,W,x,D){try{var K=W.call(Q.B.N,x);MnD(K);if(!K.done)return Q.B.G=!1,K;var l=K.value}catch(M){return Q.B.N=null,ns(Q.B,M),d4(Q)}Q.B.N=null;D.call(Q.B,l);return d4(Q)};
d4=function(Q){for(;Q.B.B;)try{var W=Q.U(Q.B);if(W)return Q.B.G=!1,{value:W.value,done:!1}}catch(x){Q.B.U=void 0,ns(Q.B,x)}Q.B.G=!1;if(Q.B.D){W=Q.B.D;Q.B.D=null;if(W.K1)throw W.dO;return{value:W.return,done:!0}}return{value:void 0,done:!0}};
bss=function(Q){this.next=function(W){YQ(Q.B);Q.B.N?W=Gh(Q,Q.B.N.next,W,Q.B.S):(Q.B.S(W),W=d4(Q));return W};
this.throw=function(W){YQ(Q.B);Q.B.N?W=Gh(Q,Q.B.N["throw"],W,Q.B.S):(ns(Q.B,W),W=d4(Q));return W};
this.return=function(W){return SlO(Q,W)};
this[Symbol.iterator]=function(){return this}};
s14=function(Q,W){W=new bss(new w5a(W));zh&&Q.prototype&&zh(W,Q.prototype);return W};
zOl=function(Q){function W(D){return Q.next(D)}
function x(D){return Q.throw(D)}
return new Promise(function(D,K){function l(M){M.done?D(M.value):Promise.resolve(M.value).then(W,x).then(l,K)}
l(Q.next())})};
g.U=function(Q){return zOl(new bss(new w5a(Q)))};
g.i2=function(){for(var Q=Number(this),W=[],x=Q;x<arguments.length;x++)W[x-Q]=arguments[x];return W};
kha=function(Q,W,x){Q instanceof String&&(Q=String(Q));for(var D=Q.length,K=0;K<D;K++){var l=Q[K];if(W.call(x,l,K,Q))return{Dd:K,aT:l}}return{Dd:-1,aT:void 0}};
H5=function(Q,W,x){if(Q==null)throw new TypeError("The 'this' value for String.prototype."+x+" must not be null or undefined");if(W instanceof RegExp)throw new TypeError("First argument to String.prototype."+x+" must not be a regular expression");return Q+""};
Ul=function(Q,W){Q instanceof String&&(Q+="");var x=0,D=!1,K={next:function(){if(!D&&x<Q.length){var l=x++;return{value:W(l,Q[l]),done:!1}}D=!0;return{done:!0,value:void 0}}};
K[Symbol.iterator]=function(){return K};
return K};
qz=function(Q){return Q?Q:Array.prototype.fill};
B5=function(Q){return Q?Q:Array.prototype.copyWithin};
$Q=function(Q){Q=Math.trunc(Q)||0;Q<0&&(Q+=this.length);if(!(Q<0||Q>=this.length))return this[Q]};
I1=function(Q){return Q?Q:$Q};
X5D=function(Q,W,x){Q instanceof String&&(Q=String(Q));for(var D=Q.length-1;D>=0;D--){var K=Q[D];if(W.call(x,K,D,Q))return{Dd:D,aT:K}}return{Dd:-1,aT:void 0}};
ma=function(Q){return Q?Q:function(W,x){return X5D(this,W,x).Dd}};
g.g4=function(Q,W,x){Q=Q.split(".");x=x||g.Nz;for(var D;Q.length&&(D=Q.shift());)Q.length||W===void 0?x[D]&&x[D]!==Object.prototype[D]?x=x[D]:x=x[D]={}:x[D]=W};
en=function(Q,W){var x=g.yF("CLOSURE_FLAGS");Q=x&&x[Q];return Q!=null?Q:W};
g.yF=function(Q,W){Q=Q.split(".");W=W||g.Nz;for(var x=0;x<Q.length;x++)if(W=W[Q[x]],W==null)return null;return W};
Z5=function(Q){var W=typeof Q;return W!="object"?W:Q?Array.isArray(Q)?"array":W:"null"};
g.Ls=function(Q){var W=Z5(Q);return W=="array"||W=="object"&&typeof Q.length=="number"};
g.r4=function(Q){var W=typeof Q;return W=="object"&&Q!=null||W=="function"};
g.Ol=function(Q){return Object.prototype.hasOwnProperty.call(Q,Th)&&Q[Th]||(Q[Th]=++oQQ)};
uD2=function(Q,W,x){return Q.call.apply(Q.bind,arguments)};
Yll=function(Q,W,x){if(!Q)throw Error();if(arguments.length>2){var D=Array.prototype.slice.call(arguments,2);return function(){var K=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(K,D);return Q.apply(W,K)}}return function(){return Q.apply(W,arguments)}};
g.FD=function(Q,W,x){g.FD=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?uD2:Yll;return g.FD.apply(null,arguments)};
g.tv=function(Q,W){var x=Array.prototype.slice.call(arguments,1);return function(){var D=x.slice();D.push.apply(D,arguments);return Q.apply(this,D)}};
g.QA=function(){return Date.now()};
nQl=function(Q){return Q};
g.Wu=function(Q,W){function x(){}
x.prototype=W.prototype;Q.t2=W.prototype;Q.prototype=new x;Q.prototype.constructor=Q;Q.MD=function(D,K,l){for(var M=Array(arguments.length-2),w=2;w<arguments.length;w++)M[w-2]=arguments[w];return W.prototype[K].apply(D,M)}};
xF=function(Q,W){if(W!==null&&W!==void 0){if(typeof W!=="object"&&typeof W!=="function")throw new TypeError("Object expected.");if(x===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var x=W[Symbol.dispose]}if(typeof x!=="function")throw new TypeError("Object not disposable.");Q.stack.push({value:W,dispose:x,async:!1})}return W};
K5=function(Q){function W(l){Q.error=Q.hasError?new SuppressedError(l,Q.error,"An error was suppressed during disposal."):l;Q.hasError=!0}
function x(){for(;D=Q.stack.pop();)try{if(!D.async&&K===1)return K=0,Q.stack.push(D),Promise.resolve().then(x);if(D.dispose){var l=D.dispose.call(D.value);if(D.async)return K|=2,Promise.resolve(l).then(x,function(M){W(M);return x()})}else K|=1}catch(M){W(M)}if(K===1)return Q.hasError?Promise.reject(Q.error):Promise.resolve();
if(Q.hasError)throw Q.error;}
var D,K=0;x()};
lC=function(Q,W,x){x=x===void 0?Error():x;var D=Error.call(this);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.code=Q;W+=":";x instanceof Error?(this.message=W+x.message,this.stack=x.stack||""):(this.message=W+String(x),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
Vnz=function(Q){var W=W===void 0?47:W;var x=[];jp(Q,Mk,6).forEach(function(D){Rq(D,2)<=W&&x.push(Rq(D,1))});
return x};
P2s=function(Q){var W=W===void 0?47:W;var x=[];jp(Q,Mk,6).forEach(function(D){Rq(D,2)>W&&x.push(Rq(D,1))});
return x};
g.w1=function(Q){Q&&typeof Q.dispose=="function"&&Q.dispose()};
g.Sp=function(Q){for(var W=0,x=arguments.length;W<x;++W){var D=arguments[W];g.Ls(D)?g.Sp.apply(null,D):g.w1(D)}};
g.N=function(){this.y7=this.y7;this.My=this.My};
g.y=function(Q,W){Q.addOnDisposeCallback(g.tv(g.w1,W))};
bC=function(Q){Q.then(function(){},function(){})};
zR=function(){g.N.apply(this,arguments);this.N=1;this[vQ1]=this.dispose};
oq=function(Q){return{fieldType:2,fieldName:Q}};
g.YF=function(Q){return{fieldType:3,fieldName:Q}};
C25=function(Q){this.B=Q;Q.U0("/client_streamz/bg/frs",g.YF("ke"))};
Jv5=function(Q){this.B=Q;Q.U0("/client_streamz/bg/wrl",g.YF("mn"),oq("ac"),oq("sc"),g.YF("rk"),g.YF("mk"))};
p5l=function(Q){this.U=Q;Q.mu("/client_streamz/bg/ec",g.YF("en"),g.YF("mk"))};
hOs=function(Q){this.B=Q;Q.U0("/client_streamz/bg/el",g.YF("en"),g.YF("rk"),g.YF("mk"))};
a54=function(Q){this.U=Q;Q.mu("/client_streamz/bg/cec",oq("ec"),g.YF("rk"),g.YF("mk"))};
Ghz=function(Q){this.U=Q;Q.mu("/client_streamz/bg/po/csc",oq("cs"),g.YF("rk"),g.YF("mk"))};
dzv=function(Q){this.U=Q;Q.mu("/client_streamz/bg/po/ctav",g.YF("av"),g.YF("rk"),g.YF("mk"))};
is5=function(Q){this.U=Q;Q.mu("/client_streamz/bg/po/cwsc",g.YF("su"),g.YF("rk"),g.YF("mk"))};
n5=function(Q,W){if(Error.captureStackTrace)Error.captureStackTrace(this,n5);else{var x=Error().stack;x&&(this.stack=x)}Q&&(this.message=String(Q));W!==void 0&&(this.cause=W)};
AvF=function(){};
VA=function(){throw Error("Invalid UTF8");};
HsD=function(Q,W){W=String.fromCharCode.apply(null,W);return Q==null?W:Q+W};
$zQ=function(Q){var W=!1;W=W===void 0?!1:W;if(Uz2){if(W&&(qlD?!Q.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(Q)))throw Error("Found an unpaired surrogate");Q=(B4n||(B4n=new TextEncoder)).encode(Q)}else{for(var x=0,D=new Uint8Array(3*Q.length),K=0;K<Q.length;K++){var l=Q.charCodeAt(K);if(l<128)D[x++]=l;else{if(l<2048)D[x++]=l>>6|192;else{if(l>=55296&&l<=57343){if(l<=56319&&K<Q.length){var M=Q.charCodeAt(++K);if(M>=56320&&M<=57343){l=(l-55296)*1024+
M-56320+65536;D[x++]=l>>18|240;D[x++]=l>>12&63|128;D[x++]=l>>6&63|128;D[x++]=l&63|128;continue}else K--}if(W)throw Error("Found an unpaired surrogate");l=65533}D[x++]=l>>12|224;D[x++]=l>>6&63|128}D[x++]=l&63|128}}Q=x===D.length?D:D.subarray(0,x)}return Q};
Pu=function(Q){g.Nz.setTimeout(function(){throw Q;},0)};
I5Q=function(Q){return Array.prototype.map.call(Q,function(W){W=W.toString(16);return W.length>1?W:"0"+W}).join("")};
mzh=function(Q){for(var W=[],x=0;x<Q.length;x+=2)W.push(parseInt(Q.substring(x,x+2),16));return W};
g.C5=function(Q){for(var W=[],x=0,D=0;D<Q.length;D++){var K=Q.charCodeAt(D);K<128?W[x++]=K:(K<2048?W[x++]=K>>6|192:((K&64512)==55296&&D+1<Q.length&&(Q.charCodeAt(D+1)&64512)==56320?(K=65536+((K&1023)<<10)+(Q.charCodeAt(++D)&1023),W[x++]=K>>18|240,W[x++]=K>>12&63|128):W[x++]=K>>12|224,W[x++]=K>>6&63|128),W[x++]=K&63|128)}return W};
Je=function(Q,W){return Q.lastIndexOf(W,0)==0};
N4D=function(Q,W){var x=Q.length-W.length;return x>=0&&Q.indexOf(W,x)==x};
g.p5=function(Q){return/^[\s\xa0]*$/.test(Q)};
g.he=function(Q,W){return Q.indexOf(W)!=-1};
aq=function(Q,W){return g.he(Q.toLowerCase(),W.toLowerCase())};
g.iC=function(Q,W){var x=0;Q=GR(String(Q)).split(".");W=GR(String(W)).split(".");for(var D=Math.max(Q.length,W.length),K=0;x==0&&K<D;K++){var l=Q[K]||"",M=W[K]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];M=/(\d*)(\D*)(.*)/.exec(M)||["","","",""];if(l[0].length==0&&M[0].length==0)break;x=d1(l[1].length==0?0:parseInt(l[1],10),M[1].length==0?0:parseInt(M[1],10))||d1(l[2].length==0,M[2].length==0)||d1(l[2],M[2]);l=l[3];M=M[3]}while(x==0)}return x};
d1=function(Q,W){return Q<W?-1:Q>W?1:0};
g.Ae=function(){var Q=g.Nz.navigator;return Q&&(Q=Q.userAgent)?Q:""};
Bu=function(Q){return Hu||Us?qk?qk.brands.some(function(W){return(W=W.brand)&&g.he(W,Q)}):!1:!1};
$F=function(Q){return g.he(g.Ae(),Q)};
Iq=function(){return Hu||Us?!!qk&&qk.brands.length>0:!1};
mJ=function(){return Iq()?!1:$F("Opera")};
cvD=function(){return Iq()?!1:$F("Trident")||$F("MSIE")};
gQl=function(){return Iq()?Bu("Microsoft Edge"):$F("Edg/")};
cu=function(){return $F("Firefox")||$F("FxiOS")};
yA=function(){return $F("Safari")&&!(g1()||(Iq()?0:$F("Coast"))||mJ()||(Iq()?0:$F("Edge"))||gQl()||(Iq()?Bu("Opera"):$F("OPR"))||cu()||$F("Silk")||$F("Android"))};
g1=function(){return Iq()?Bu("Chromium"):($F("Chrome")||$F("CriOS"))&&!(Iq()?0:$F("Edge"))||$F("Silk")};
yva=function(){return $F("Android")&&!(g1()||cu()||mJ()||$F("Silk"))};
eO4=function(Q){var W={};Q.forEach(function(x){W[x[0]]=x[1]});
return function(x){return W[x.find(function(D){return D in W})]||""}};
f52=function(Q){var W=g.Ae();if(Q==="Internet Explorer"){if(cvD())if((Q=/rv: *([\d\.]*)/.exec(W))&&Q[1])W=Q[1];else{Q="";var x=/MSIE +([\d\.]+)/.exec(W);if(x&&x[1])if(W=/Trident\/(\d.\d)/.exec(W),x[1]=="7.0")if(W&&W[1])switch(W[1]){case "4.0":Q="8.0";break;case "5.0":Q="9.0";break;case "6.0":Q="10.0";break;case "7.0":Q="11.0"}else Q="7.0";else Q=x[1];W=Q}else W="";return W}var D=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");x=[];for(var K;K=D.exec(W);)x.push([K[1],K[2],K[3]||void 0]);
W=eO4(x);switch(Q){case "Opera":if(mJ())return W(["Version","Opera"]);if(Iq()?Bu("Opera"):$F("OPR"))return W(["OPR"]);break;case "Microsoft Edge":if(Iq()?0:$F("Edge"))return W(["Edge"]);if(gQl())return W(["Edg"]);break;case "Chromium":if(g1())return W(["Chrome","CriOS","HeadlessChrome"])}return Q==="Firefox"&&cu()||Q==="Safari"&&yA()||Q==="Android Browser"&&yva()||Q==="Silk"&&$F("Silk")?(W=x[2])&&W[1]||"":""};
Zs4=function(Q){if(Iq()&&Q!=="Silk"){var W=qk.brands.find(function(x){return x.brand===Q});
if(!W||!W.version)return NaN;W=W.version.split(".")}else{W=f52(Q);if(W==="")return NaN;W=W.split(".")}return W.length===0?NaN:Number(W[0])};
ep=function(){return Hu||Us?!!qk&&!!qk.platform:!1};
La2=function(){return ep()?qk.platform==="Android":$F("Android")};
f5=function(){return $F("iPhone")&&!$F("iPod")&&!$F("iPad")};
Z7=function(){return f5()||$F("iPad")||$F("iPod")};
L5=function(){return ep()?qk.platform==="macOS":$F("Macintosh")};
rvD=function(){return ep()?qk.platform==="Windows":$F("Windows")};
g.r1=function(Q){return Q[Q.length-1]};
T4Q=function(Q,W){var x=Q.length,D=typeof Q==="string"?Q.split(""):Q;for(--x;x>=0;--x)x in D&&W.call(void 0,D[x],x,Q)};
g.Os=function(Q,W,x){W=TR(Q,W,x);return W<0?null:typeof Q==="string"?Q.charAt(W):Q[W]};
TR=function(Q,W,x){for(var D=Q.length,K=typeof Q==="string"?Q.split(""):Q,l=0;l<D;l++)if(l in K&&W.call(x,K[l],l,Q))return l;return-1};
g.Es=function(Q,W,x){var D=Q.length,K=typeof Q==="string"?Q.split(""):Q;for(--D;D>=0;D--)if(D in K&&W.call(x,K[D],D,Q))return D;return-1};
g.FH=function(Q,W){return Osv(Q,W)>=0};
EQO=function(Q){if(!Array.isArray(Q))for(var W=Q.length-1;W>=0;W--)delete Q[W];Q.length=0};
g.Qn=function(Q,W){W=Osv(Q,W);var x;(x=W>=0)&&g.te(Q,W);return x};
g.te=function(Q,W){return Array.prototype.splice.call(Q,W,1).length==1};
g.W1=function(Q,W){W=TR(Q,W);W>=0&&g.te(Q,W)};
FaO=function(Q,W){var x=0;T4Q(Q,function(D,K){W.call(void 0,D,K,Q)&&g.te(Q,K)&&x++})};
g.x8=function(Q){return Array.prototype.concat.apply([],arguments)};
g.DX=function(Q){var W=Q.length;if(W>0){for(var x=Array(W),D=0;D<W;D++)x[D]=Q[D];return x}return[]};
g.lZ=function(Q,W){for(var x=1;x<arguments.length;x++){var D=arguments[x];if(g.Ls(D)){var K=Q.length||0,l=D.length||0;Q.length=K+l;for(var M=0;M<l;M++)Q[K+M]=D[M]}else Q.push(D)}};
g.M3=function(Q,W,x,D){Array.prototype.splice.apply(Q,jJ(arguments,1))};
jJ=function(Q,W,x){return arguments.length<=2?Array.prototype.slice.call(Q,W):Array.prototype.slice.call(Q,W,x)};
tn4=function(Q){for(var W=0,x=0,D={};x<Q.length;){var K=Q[x++],l=g.r4(K)?"o"+g.Ol(K):(typeof K).charAt(0)+K;Object.prototype.hasOwnProperty.call(D,l)||(D[l]=!0,Q[W++]=K)}Q.length=W};
g.wl=function(Q,W,x){return QqO(Q,x||R3,!1,W)};
SJ=function(Q,W){return QqO(Q,W,!0)};
QqO=function(Q,W,x,D){for(var K=0,l=Q.length,M;K<l;){var w=K+(l-K>>>1),S=void 0;x?S=W.call(void 0,Q[w],w,Q):S=W(D,Q[w]);S>0?K=w+1:(l=w,M=!S)}return M?K:-K-1};
g.bZ=function(Q,W){Q.sort(W||R3)};
WJa=function(Q,W){var x=R3;g.bZ(Q,function(D,K){return x(W(D),W(K))})};
g.sg=function(Q,W,x){if(!g.Ls(Q)||!g.Ls(W)||Q.length!=W.length)return!1;var D=Q.length;x=x||xks;for(var K=0;K<D;K++)if(!x(Q[K],W[K]))return!1;return!0};
R3=function(Q,W){return Q>W?1:Q<W?-1:0};
xks=function(Q,W){return Q===W};
g.zS=function(Q,W,x){x=g.wl(Q,W,x);x<0&&g.M3(Q,-(x+1),0,W)};
g.uZ=function(Q,W,x){var D={};(0,g.o3)(Q,function(K,l){D[W.call(x,K,l,Q)]=K});
return D};
Dk5=function(Q){for(var W=[],x=0;x<Q;x++)W[x]="";return W};
KJ2=function(Q,W){W=Array.prototype.splice.call(Q,W,1);Array.prototype.splice.call(Q,0,0,W[0])};
Y8=function(Q){Y8[" "](Q);return Q};
l74=function(Q,W){try{return Y8(Q[W]),!0}catch(x){}return!1};
Mp1=function(Q,W){var x=jq5;return Object.prototype.hasOwnProperty.call(x,Q)?x[Q]:x[Q]=W(Q)};
g.nP=function(Q){return Mp1(Q,function(){return g.iC(RYl,Q)>=0})};
g.Vn=function(Q,W){W===void 0&&(W=0);wu2();W=Ss5[W];for(var x=Array(Math.floor(Q.length/3)),D=W[64]||"",K=0,l=0;K<Q.length-2;K+=3){var M=Q[K],w=Q[K+1],S=Q[K+2],b=W[M>>2];M=W[(M&3)<<4|w>>4];w=W[(w&15)<<2|S>>6];S=W[S&63];x[l++]=""+b+M+w+S}b=0;S=D;switch(Q.length-K){case 2:b=Q[K+1],S=W[(b&15)<<2]||D;case 1:Q=Q[K],x[l]=""+W[Q>>2]+W[(Q&3)<<4|b>>4]+S+D}return x.join("")};
g.P1=function(Q,W){if(b5s&&!W)Q=g.Nz.btoa(Q);else{for(var x=[],D=0,K=0;K<Q.length;K++){var l=Q.charCodeAt(K);l>255&&(x[D++]=l&255,l>>=8);x[D++]=l}Q=g.Vn(x,W)}return Q};
zYv=function(Q){var W=[];sqn(Q,function(x){W.push(x)});
return W};
v1=function(Q){var W=Q.length,x=W*3/4;x%3?x=Math.floor(x):g.he("=.",Q[W-1])&&(x=g.he("=.",Q[W-2])?x-2:x-1);var D=new Uint8Array(x),K=0;sqn(Q,function(l){D[K++]=l});
return K!==x?D.subarray(0,K):D};
sqn=function(Q,W){function x(S){for(;D<Q.length;){var b=Q.charAt(D++),z=CP[b];if(z!=null)return z;if(!g.p5(b))throw Error("Unknown base64 encoding at char: "+b);}return S}
wu2();for(var D=0;;){var K=x(-1),l=x(0),M=x(64),w=x(64);if(w===64&&K===-1)break;W(K<<2|l>>4);M!=64&&(W(l<<4&240|M>>2),w!=64&&W(M<<6&192|w))}};
wu2=function(){if(!CP){CP={};for(var Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),W=["+/=","+/","-_=","-_.","-_"],x=0;x<5;x++){var D=Q.concat(W[x].split(""));Ss5[x]=D;for(var K=0;K<D.length;K++){var l=D[K];CP[l]===void 0&&(CP[l]=K)}}}};
XuF=function(Q){if(!kRa)return g.Vn(Q);for(var W="",x=0,D=Q.length-10240;x<D;)W+=String.fromCharCode.apply(null,Q.subarray(x,x+=10240));W+=String.fromCharCode.apply(null,x?Q.subarray(x):Q);return btoa(W)};
uHO=function(Q){return oF5[Q]||""};
nFa=function(Q){if(!kRa)return v1(Q);YsO.test(Q)&&(Q=Q.replace(YsO,uHO));Q=atob(Q);for(var W=new Uint8Array(Q.length),x=0;x<Q.length;x++)W[x]=Q.charCodeAt(x);return W};
Jm=function(Q){return Vp1&&Q!=null&&Q instanceof Uint8Array};
pP=function(Q,W){PCQ(W);this.B=Q;if(Q!=null&&Q.length===0)throw Error("ByteString should be constructed with non-empty values");};
a3=function(){return vFO||(vFO=new pP(null,hm))};
dl=function(Q){return new Uint8Array(GS(Q)||0)};
GS=function(Q){PCQ(hm);var W=Q.B;W=W==null||Jm(W)?W:typeof W==="string"?nFa(W):null;return W==null?W:Q.B=W};
PCQ=function(Q){if(Q!==hm)throw Error("illegal external caller");};
CCO=function(Q,W){Q.__closure__error__context__984382||(Q.__closure__error__context__984382={});Q.__closure__error__context__984382.severity=W};
iZ=function(Q){Q=Error(Q);CCO(Q,"warning");return Q};
Am=function(Q){if(Q!=null){var W;var x=(W=Je5)!=null?W:Je5={};W=x[Q]||0;W>=5||(x[Q]=W+1,Q=Error(),CCO(Q,"incident"),Pu(Q))}};
H1=function(Q,W,x){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(x===void 0?0:x)&&Symbol.for&&Q?Symbol.for(Q):Q!=null?Symbol(Q):Symbol():W};
B1=function(Q,W){Ug||q3 in Q||puF(Q,hY5);Q[q3]|=W};
$8=function(Q,W){Ug||q3 in Q||puF(Q,hY5);Q[q3]=W};
a7s=function(Q,W){$8(W,(Q|0)&-15615)};
I3=function(Q,W){$8(W,(Q|34)&-15581)};
mH=function(){return typeof BigInt==="function"};
N3=function(Q){return Array.prototype.slice.call(Q)};
yn=function(Q){return Q!==null&&typeof Q==="object"&&!Array.isArray(Q)&&Q.constructor===Object};
GR1=function(Q,W){if(Q!=null)if(typeof Q==="string")Q=Q?new pP(Q,hm):a3();else if(Q.constructor!==pP)if(Jm(Q))Q=Q.length?new pP(new Uint8Array(Q),hm):a3();else{if(!W)throw Error();Q=void 0}return Q};
eJ=function(Q){if(Q&2)throw Error();};
fP=function(Q,W){if(typeof W!=="number"||W<0||W>=Q.length)throw Error();};
LP=function(Q){var W=nQl(ZX);return W?Q[W]:void 0};
dks=function(Q,W,x){var D=W&512?0:-1,K=Q.length;W=W&64?W&256:!!K&&yn(Q[K-1]);for(var l=K+(W?-1:0),M=0;M<l;M++)x(M-D,Q[M]);if(W){Q=Q[K-1];for(var w in Q)!isNaN(w)&&x(+w,Q[w])}};
TS=function(Q){Q.LZ1=!0;return Q};
Eg=function(Q){var W=Q;if(i5D(W)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(W))throw Error(String(W));}else if(Aes(W)&&!Number.isSafeInteger(W))throw Error(String(W));return Og?BigInt(Q):Q=H52(Q)?Q?"1":"0":i5D(Q)?Q.trim()||"0":String(Q)};
Uk4=function(Q,W){if(Q.length>W.length)return!1;if(Q.length<W.length||Q===W)return!0;for(var x=0;x<Q.length;x++){var D=Q[x],K=W[x];if(D>K)return!1;if(D<K)return!0}};
W6=function(Q){var W=Q>>>0;Ff=W;QR=(Q-W)/4294967296>>>0};
D3=function(Q){if(Q<0){W6(0-Q);var W=g.V(xV(Ff,QR));Q=W.next().value;W=W.next().value;Ff=Q>>>0;QR=W>>>0}else W6(Q)};
lF=function(Q,W){var x=W*4294967296+(Q>>>0);return Number.isSafeInteger(x)?x:Kj(Q,W)};
qsn=function(Q,W){var x=W&2147483648;x&&(Q=~Q+1>>>0,W=~W>>>0,Q==0&&(W=W+1>>>0));Q=lF(Q,W);return typeof Q==="number"?x?-Q:Q:x?"-"+Q:Q};
Kj=function(Q,W){W>>>=0;Q>>>=0;if(W<=2097151)var x=""+(4294967296*W+Q);else mH()?x=""+(BigInt(W)<<BigInt(32)|BigInt(Q)):(x=(Q>>>24|W<<8)&16777215,W=W>>16&65535,Q=(Q&16777215)+x*6777216+W*6710656,x+=W*8147497,W*=2,Q>=1E7&&(x+=Q/1E7>>>0,Q%=1E7),x>=1E7&&(W+=x/1E7>>>0,x%=1E7),x=W+B1Q(x)+B1Q(Q));return x};
B1Q=function(Q){Q=String(Q);return"0000000".slice(Q.length)+Q};
$kh=function(){var Q=Ff,W=QR;W&2147483648?mH()?Q=""+(BigInt(W|0)<<BigInt(32)|BigInt(Q>>>0)):(W=g.V(xV(Q,W)),Q=W.next().value,W=W.next().value,Q="-"+Kj(Q,W)):Q=Kj(Q,W);return Q};
jj=function(Q){if(Q.length<16)D3(Number(Q));else if(mH())Q=BigInt(Q),Ff=Number(Q&BigInt(4294967295))>>>0,QR=Number(Q>>BigInt(32)&BigInt(4294967295));else{var W=+(Q[0]==="-");QR=Ff=0;for(var x=Q.length,D=0+W,K=(x-W)%6+W;K<=x;D=K,K+=6)D=Number(Q.slice(D,K)),QR*=1E6,Ff=Ff*1E6+D,Ff>=4294967296&&(QR+=Math.trunc(Ff/4294967296),QR>>>=0,Ff>>>=0);W&&(W=g.V(xV(Ff,QR)),Q=W.next().value,W=W.next().value,Ff=Q,QR=W)}};
xV=function(Q,W){W=~W;Q?Q=~Q+1:W+=1;return[Q,W]};
Ma=function(Q,W){throw Error(W===void 0?"unexpected value "+Q+"!":W);};
RL=function(Q){if(Q!=null&&typeof Q!=="number")throw Error("Value of float/double field must be a number, found "+typeof Q+": "+Q);return Q};
I7Q=function(Q){return Q.displayName||Q.name||"unknown type name"};
wf=function(Q){if(Q!=null&&typeof Q!=="boolean")throw Error("Expected boolean but got "+Z5(Q)+": "+Q);return Q};
bF=function(Q){switch(typeof Q){case "bigint":return!0;case "number":return Sj(Q);case "string":return mkD.test(Q);default:return!1}};
N1h=function(Q){if(typeof Q!=="number")throw iZ("int32");if(!Sj(Q))throw iZ("int32");return Q|0};
sr=function(Q){return Q==null?Q:N1h(Q)};
z3=function(Q){if(Q==null)return Q;if(typeof Q==="string"&&Q)Q=+Q;else if(typeof Q!=="number")return;return Sj(Q)?Q|0:void 0};
XF=function(Q){if(Q==null)return Q;if(typeof Q==="string"&&Q)Q=+Q;else if(typeof Q!=="number")return;return Sj(Q)?Q>>>0:void 0};
gF5=function(Q){var W=0;W=W===void 0?0:W;if(!bF(Q))throw iZ("int64");var x=typeof Q;switch(W){case 2048:switch(x){case "string":return oL(Q);case "bigint":return String(uF(64,Q));default:return YV(Q)}case 4096:switch(x){case "string":return W=nj(Number(Q)),VR(W)?Q=Eg(W):(W=Q.indexOf("."),W!==-1&&(Q=Q.substring(0,W)),Q=mH()?Eg(uF(64,BigInt(Q))):Eg(ceh(Q))),Q;case "bigint":return Eg(uF(64,Q));default:return VR(Q)?Eg(P6(Q)):Eg(YV(Q))}case 0:switch(x){case "string":return oL(Q);case "bigint":return Eg(uF(64,
Q));default:return P6(Q)}default:return Ma(W,"Unknown format requested type for int64")}};
v6=function(Q){return Q==null?Q:gF5(Q)};
yev=function(Q){if(Q[0]==="-")return!1;var W=Q.length;return W<20?!0:W===20&&Number(Q.substring(0,6))<184467};
eYz=function(Q){var W=Q.length;return Q[0]==="-"?W<20?!0:W===20&&Number(Q.substring(0,7))>-922337:W<19?!0:W===19&&Number(Q.substring(0,6))<922337};
f72=function(Q){if(Q<0){D3(Q);var W=Kj(Ff,QR);Q=Number(W);return VR(Q)?Q:W}W=String(Q);if(yev(W))return W;D3(Q);return lF(Ff,QR)};
ceh=function(Q){if(eYz(Q))return Q;jj(Q);return $kh()};
P6=function(Q){bF(Q);Q=nj(Q);VR(Q)||(D3(Q),Q=qsn(Ff,QR));return Q};
YV=function(Q){bF(Q);Q=nj(Q);if(VR(Q))Q=String(Q);else{var W=String(Q);eYz(W)?Q=W:(D3(Q),Q=$kh())}return Q};
oL=function(Q){bF(Q);var W=nj(Number(Q));if(VR(W))return String(W);W=Q.indexOf(".");W!==-1&&(Q=Q.substring(0,W));return ceh(Q)};
Z51=function(Q){if(Q==null)return Q;if(typeof Q==="bigint")return Cj(Q)?Q=Number(Q):(Q=uF(64,Q),Q=Cj(Q)?Number(Q):String(Q)),Q;if(bF(Q))return typeof Q==="number"?P6(Q):oL(Q)};
LJO=function(Q){if(Q==null)return Q;var W=typeof Q;if(W==="bigint")return String(uF(64,Q));if(bF(Q)){if(W==="string")return oL(Q);if(W==="number")return P6(Q)}};
T15=function(Q){if(Q==null)return Q;var W=typeof Q;if(W==="bigint")return String(rea(64,Q));if(bF(Q)){if(W==="string")return bF(Q),W=nj(Number(Q)),VR(W)&&W>=0?Q=String(W):(W=Q.indexOf("."),W!==-1&&(Q=Q.substring(0,W)),yev(Q)||(jj(Q),Q=Kj(Ff,QR))),Q;if(W==="number")return bF(Q),Q=nj(Q),Q>=0&&VR(Q)?Q:f72(Q)}};
EFh=function(Q){if(Q==null||typeof Q=="string"||Q instanceof pP)return Q;if(Jm(Q))return Jm(Q)&&Am(O5s),Q};
FJl=function(Q){if(typeof Q!=="string")throw Error();return Q};
J$=function(Q){if(Q!=null&&typeof Q!=="string")throw Error();return Q};
pj=function(Q){return Q==null||typeof Q==="string"?Q:void 0};
h$=function(Q,W){if(!(Q instanceof W))throw Error("Expected instanceof "+I7Q(W)+" but got "+(Q&&I7Q(Q.constructor)));return Q};
tph=function(Q,W,x){if(Q!=null&&typeof Q==="object"&&Q.KQ===aL)return Q;if(Array.isArray(Q)){var D=Q[q3]|0,K=D;K===0&&(K|=x&32);K|=x&2;K!==D&&$8(Q,K);return new W(Q)}};
Q35=function(Q){return Q};
G3=function(Q){return Q};
KHa=function(Q,W,x,D){return WHa(Q,W,x,D,x3h,D35)};
MJz=function(Q,W,x,D){return WHa(Q,W,x,D,lX4,j34)};
WHa=function(Q,W,x,D,K,l){if(!x.length&&!D)return 0;for(var M=0,w=0,S=0,b=0,z=0,k=x.length-1;k>=0;k--){var X=x[k];D&&k===x.length-1&&X===D||(b++,X!=null&&S++)}if(D)for(var u in D)k=+u,isNaN(k)||(z+=Rcv(k),w++,k>M&&(M=k));b=K(b,S)+l(w,M,z);u=S;k=w;X=M;for(var Y=z,v=x.length-1;v>=0;v--){var J=x[v];if(!(J==null||D&&v===x.length-1&&J===D)){J=v-W;var h=K(J,u)+l(k,X,Y);h<b&&(Q=1+J,b=h);k++;u--;Y+=Rcv(J);X=Math.max(X,J)}}W=K(0,0)+l(k,X,Y);W<b&&(Q=0,b=W);if(D){k=w;X=M;Y=z;u=S;for(var G in D)D=+G,isNaN(D)||
D>=1024||(k--,u++,Y-=G.length,M=K(D,u)+l(k,X,Y),M<b&&(Q=1+D,b=M))}return Q};
j34=function(Q,W,x){return x+Q*3+(Q>1?Q-1:0)};
lX4=function(Q,W){return(Q>1?Q-1:0)+(Q-W)*4};
D35=function(Q,W){return Q==0?0:9*Math.max(1<<32-Math.clz32(Q+Q/2-1),4)<=W?Q==0?0:Q<4?100+(Q-1)*16:Q<6?148+(Q-4)*16:Q<12?244+(Q-6)*16:Q<22?436+(Q-12)*19:Q<44?820+(Q-22)*17:52+32*Q:40+4*W};
x3h=function(Q){return 40+4*Q};
Rcv=function(Q){return Q>=100?Q>=1E4?Math.ceil(Math.log10(1+Q)):Q<1E3?3:4:Q<10?1:2};
w1a=function(Q,W,x){var D=N3(Q),K=D.length,l=W&256?D[K-1]:void 0;K+=l?-1:0;for(W=W&512?1:0;W<K;W++)D[W]=x(D[W]);if(l){W=D[W]={};for(var M in l)W[M]=x(l[M])}(Q=LP(Q))&&(D[ZX]=N3(Q));return D};
SgQ=function(Q,W,x,D,K){if(Q!=null){if(Array.isArray(Q)){var l=Q[q3]|0;return Q.length===0&&l&1?void 0:K&&l&2?Q:df(Q,W,x,D!==void 0,K)}return W(Q,D)}};
df=function(Q,W,x,D,K){var l=D||x?Q[q3]|0:0,M=D?!!(l&32):void 0;D=N3(Q);for(var w=0,S=D.length,b=0;b<S;b++){var z=D[b];if(b===S-1&&yn(z)){var k=void 0;var X=W,u=x,Y=M,v=K,J=void 0;for(k in z){var h=SgQ(z[k],X,u,Y,v);if(h!=null){var G=void 0;((G=J)!=null?G:J={})[k]=h}}k=J}else k=SgQ(D[b],W,x,M,K);D[b]=k;k!=null&&(w=b+1)}w<S&&(D.length=w);x&&((Q=LP(Q))&&(D[ZX]=N3(Q)),x(l,D));return D};
s3s=function(Q){switch(typeof Q){case "number":return Number.isFinite(Q)?Q:""+Q;case "bigint":return Cj(Q)?Number(Q):""+Q;case "boolean":return Q?1:0;case "object":if(Jm(Q))return Jm(Q)&&Am(O5s),XuF(Q);if(Q.KQ===aL)return bPa(Q);if(Q instanceof pP){var W=Q.B;return W==null?"":typeof W==="string"?W:Q.B=XuF(W)}return}return Q};
A$=function(Q,W){W&&(iF=W===G3||W!==Q35&&W!==KHa&&W!==MJz?G3:W);try{return bPa(Q)}finally{iF=void 0}};
bPa=function(Q){var W=Q.pn;Q=df(W,s3s,void 0,void 0,!1);var x=W[q3]|0;if((W=Q.length)&&!(x&512)){var D=Q[W-1],K=!1;yn(D)?(W--,K=!0):D=void 0;var l,M=(l=iF)!=null?l:G3;l=x&512?0:-1;x=W-l;M=M(x,l,Q,D);D&&(Q[W]=void 0);if(x<M&&D){x=!0;for(var w in D){var S=+w;S<=M?(K=S+l,Q[K]=D[w],W=Math.max(K+1,W),K=!1,delete D[w]):x=!1}x&&(D=void 0)}for(x=W-1;W>0;x=W-1)if(w=Q[x],w==null)W--,K=!0;else if(x-=l,x>=M)K=void 0,((K=D)!=null?K:D={})[x]=w,W--,K=!0;else break;K&&(Q.length=W);D&&Q.push(D)}return Q};
kSF=function(Q){switch(typeof Q){case "boolean":return Ur||(Ur=[0,void 0,!0]);case "number":return Q>0?void 0:Q===0?zcO||(zcO=[0,void 0]):[-Q,void 0];case "string":return[0,Q];case "object":return Q}};
B6=function(Q,W,x){Q=qa(Q,W[0],W[1],x?1:2);W!==Ur&&x&&B1(Q,8192);return Q};
qa=function(Q,W,x,D){if(Q==null){var K=96;x?(Q=[x],K|=512):Q=[];W&&(K=K&-16760833|(W&1023)<<14)}else{if(!Array.isArray(Q))throw Error("narr");K=Q[q3]|0;8192&K||!(64&K)||2&K||X1z();if(K&1024)throw Error("farr");if(K&64)return Q;D===1||D===2||(K|=64);if(x&&(K|=512,x!==Q[0]))throw Error("mid");a:{x=Q;var l=x.length;if(l){var M=l-1;D=x[M];if(yn(D)){K|=256;W=K&512?0:-1;M-=W;if(M>=1024)throw Error("pvtlmt");for(var w in D)l=+w,l<M&&(x[l+W]=D[w],delete D[w]);K=K&-16760833|(M&1023)<<14;break a}}if(W){w=Math.max(W,
l-(K&512?0:-1));if(w>1024)throw Error("spvt");K=K&-16760833|(w&1023)<<14}}}$8(Q,K);return Q};
X1z=function(){Am(o82)};
ufO=function(Q,W,x){x=x===void 0?I3:x;if(Q!=null){if(Vp1&&Q instanceof Uint8Array)return W?Q:new Uint8Array(Q);if(Array.isArray(Q)){var D=Q[q3]|0;if(D&2)return Q;W&&(W=D===0||!!(D&32)&&!(D&64||!(D&16)));return W?($8(Q,D|34),D&4&&Object.freeze(Q),Q):df(Q,ufO,D&4?I3:x,!0,!0)}Q.KQ===aL&&(x=Q.pn,D=x[q3]|0,Q=D&2?Q:new Q.constructor($V(x,D,!0)));return Q}};
$V=function(Q,W,x){var D=x||W&2?I3:a7s,K=!!(W&32);Q=w1a(Q,W,function(l){return ufO(l,K,D)});
B1(Q,32|(x?2:0));return Q};
IL=function(Q){var W=Q.pn,x=W[q3]|0;return x&2?new Q.constructor($V(W,x,!1)):Q};
Na=function(Q,W){Q=Q.pn;return mL(Q,Q[q3]|0,W)};
mL=function(Q,W,x){if(x===-1)return null;var D=x+(W&512?0:-1),K=Q.length-1;if(D>=K&&W&256)return Q[K][x];if(D<=K)return Q[D]};
gf=function(Q,W,x){var D=Q.pn,K=D[q3]|0;eJ(K);c6(D,K,W,x);return Q};
c6=function(Q,W,x,D){var K=W&512?0:-1,l=x+K,M=Q.length-1;if(l>=M&&W&256)return Q[M][x]=D,W;if(l<=M)return Q[l]=D,W;D!==void 0&&(M=W>>14&1023||536870912,x>=M?D!=null&&(l={},Q[M+K]=(l[x]=D,l),W|=256,$8(Q,W)):Q[l]=D);return W};
rf=function(Q,W,x,D,K){var l=Q.pn;Q=l[q3]|0;var M=2&Q?1:D;K=!!K;D=yR(l,Q,W);var w=D[q3]|0;if(!(4&w)){4&w&&(D=N3(D),w=ej(w,Q),Q=c6(l,Q,W,D));for(var S=0,b=0;S<D.length;S++){var z=x(D[S]);z!=null&&(D[b++]=z)}b<S&&(D.length=b);w=fj(w,Q);x=(w|20)&-2049;w=x&=-4097;$8(D,w);2&w&&Object.freeze(D)}M===1||M===4&&32&w?Z3(w)||(K=w,w|=2,w!==K&&$8(D,w),Object.freeze(D)):(M===2&&Z3(w)&&(D=N3(D),w=ej(w,Q),w=Lj(w,Q,K),$8(D,w),Q=c6(l,Q,W,D)),Z3(w)||(W=w,w=Lj(w,Q,K),w!==W&&$8(D,w)));return D};
yR=function(Q,W,x){Q=mL(Q,W,x);return Array.isArray(Q)?Q:T3};
fj=function(Q,W){Q===0&&(Q=ej(Q,W));return Q|1};
Z3=function(Q){return!!(2&Q)&&!!(4&Q)||!!(1024&Q)};
YgF=function(Q){return GR1(Q,!0)};
Or=function(Q,W){Q=Q.pn;var x=Q[q3]|0,D=mL(Q,x,W),K=YgF(D);K!=null&&K!==D&&c6(Q,x,W,K);return K==null?a3():K};
n8Q=function(Q,W,x){var D=Q.pn,K=D[q3]|0;eJ(K);if(W==null)return c6(D,K,3),Q;if(!Array.isArray(W))throw iZ();var l=W[q3]|0,M=l,w=Z3(l),S=w||Object.isFrozen(W);w||(l=0);S||(W=N3(W),M=0,l=ej(l,K),l=Lj(l,K,!0),S=!1);l|=21;w=4&l?2048&l?2048:4096&l?4096:0:void 0;w=w!=null?w:0;for(var b=0;b<W.length;b++){var z=W[b],k=x(z,w);Object.is(z,k)||(S&&(W=N3(W),M=0,l=ej(l,K),l=Lj(l,K,!0),S=!1),W[b]=k)}l!==M&&(S&&(W=N3(W),l=ej(l,K),l=Lj(l,K,!0)),$8(W,l));c6(D,K,3,W);return Q};
Er=function(Q,W,x,D){var K=Q.pn,l=K[q3]|0;eJ(l);c6(K,l,W,(D==="0"?Number(x)===0:x===D)?void 0:x);return Q};
FF=function(Q,W,x,D){eJ(W);var K=yR(Q,W,x),l=K!==T3;if(64&W||!(8192&W)||!l){var M=l?K[q3]|0:0,w=M;if(!l||2&w||Z3(w)||4&w&&!(32&w))K=N3(K),w=ej(w,W),W=c6(Q,W,x,K);w=fj(w,W)&-13;w=Lj(D?w&-17:w|16,W,!0);w!==M&&$8(K,w)}return K};
xL=function(Q,W,x,D){var K=Q.pn,l=K[q3]|0;eJ(l);if(D==null){var M=t$(K);if(QH(M,K,l,x)===W)M.set(x,0);else return Q}else l=WV(K,l,x,W);c6(K,l,W,D);return Q};
DJ=function(Q,W,x,D){var K=Q[q3]|0;K=WV(Q,K,x,W);c6(Q,K,W,D)};
KR=function(Q,W){Q=Q.pn;return QH(t$(Q),Q,Q[q3]|0,W)};
t$=function(Q){if(Ug){var W;return(W=Q[lg])!=null?W:Q[lg]=new Map}if(lg in Q)return Q[lg];W=new Map;Object.defineProperty(Q,lg,{value:W});return W};
WV=function(Q,W,x,D){x.includes(D);var K=t$(Q),l=QH(K,Q,W,x);l!==D&&(l&&(W=c6(Q,W,l)),K.set(x,D));return W};
QH=function(Q,W,x,D){var K=Q.get(D);if(K!=null)return K;for(var l=K=0;l<D.length;l++){var M=D[l];mL(W,x,M)!=null&&(K!==0&&(x=c6(W,x,K)),K=M)}Q.set(D,K);return K};
jE=function(Q,W,x){var D=Q[q3]|0,K=mL(Q,D,x),l;if(K!=null&&K.KQ===aL)return W=IL(K),W!==K&&c6(Q,D,x,W),W.pn;if(Array.isArray(K)){var M=K[q3]|0;M&2?l=B6($V(K,M,!1),W,!0):M&64?l=K:l=B6(l,W,!0)}else l=B6(void 0,W,!0);l!==K&&c6(Q,D,x,l);return l};
Mu=function(Q,W,x){Q=Q.pn;var D=Q[q3]|0,K=mL(Q,D,x);W=tph(K,W,D);W!==K&&W!=null&&c6(Q,D,x,W);return W};
Rp=function(Q,W,x){W=Mu(Q,W,x);if(W==null)return W;Q=Q.pn;var D=Q[q3]|0;if(!(D&2)){var K=IL(W);K!==W&&(W=K,c6(Q,D,x,W))}return W};
VJz=function(Q,W,x,D,K,l,M){Q=Q.pn;var w=!!(2&W),S=w?1:K;l=!!l;M&&(M=!w);K=yR(Q,W,D);var b=K[q3]|0;w=!!(4&b);if(!w){b=fj(b,W);var z=K,k=W,X=!!(2&b);X&&(k|=2);for(var u=!X,Y=!0,v=0,J=0;v<z.length;v++){var h=tph(z[v],x,k);if(h instanceof x){if(!X){var G=!!((h.pn[q3]|0)&2);u&&(u=!G);Y&&(Y=G)}z[J++]=h}}J<v&&(z.length=J);b|=4;b=Y?b|16:b&-17;b=u?b|8:b&-9;$8(z,b);X&&Object.freeze(z)}if(M&&!(8&b||!K.length&&(S===1||S===4&&32&b))){Z3(b)&&(K=N3(K),b=ej(b,W),W=c6(Q,W,D,K));x=K;M=b;for(z=0;z<x.length;z++)b=x[z],
k=IL(b),b!==k&&(x[z]=k);M|=8;M=x.length?M&-17:M|16;$8(x,M);b=M}S===1||S===4&&32&b?Z3(b)||(W=b,b|=!K.length||16&b&&(!w||32&b)?2:1024,b!==W&&$8(K,b),Object.freeze(K)):(S===2&&Z3(b)&&(K=N3(K),b=ej(b,W),b=Lj(b,W,l),$8(K,b),W=c6(Q,W,D,K)),Z3(b)||(D=b,b=Lj(b,W,l),b!==D&&$8(K,b)));return K};
jp=function(Q,W,x){var D=Q.pn[q3]|0;return VJz(Q,D,W,x,void 0===PZD?2:4,!1,!(2&D))};
wc=function(Q,W,x,D){D!=null?h$(D,W):D=void 0;return gf(Q,x,D)};
bg=function(Q,W,x,D){var K=Q.pn,l=K[q3]|0;eJ(l);if(D==null)return c6(K,l,x),Q;if(!Array.isArray(D))throw iZ();for(var M=D[q3]|0,w=M,S=Z3(M),b=S||Object.isFrozen(D),z=!0,k=!0,X=0;X<D.length;X++){var u=D[X];h$(u,W);S||(u=!!((u.pn[q3]|0)&2),z&&(z=!u),k&&(k=u))}S||(M=z?13:5,M=k?M|16:M&-17);b&&M===w||(D=N3(D),w=0,M=ej(M,l),M=Lj(M,l,!0));M!==w&&$8(D,M);c6(K,l,x,D);return Q};
ej=function(Q,W){Q=(2&W?Q|2:Q&-3)|32;return Q&=-1025};
Lj=function(Q,W,x){32&W&&x||(Q&=-33);return Q};
sY=function(Q,W,x,D){var K=Q.pn[q3]|0;eJ(K);Q=VJz(Q,K,x,W,2,!0);D=D!=null?h$(D,x):new x;Q.push(D);Q[q3]=(D.pn[q3]|0)&2?Q[q3]&-9:Q[q3]&-17};
v85=function(Q){Q=Na(Q,1);var W=W===void 0?!1:W;var x=typeof Q;W=Q==null?Q:x==="bigint"?String(uF(64,Q)):bF(Q)?x==="string"?oL(Q):W?YV(Q):P6(Q):void 0;return W};
z1=function(Q,W){return pj(Na(Q,W))};
Rq=function(Q,W,x){x=x===void 0?0:x;var D;return(D=z3(Na(Q,W)))!=null?D:x};
kL=function(Q,W){var x=x===void 0?0:x;var D;return(D=XF(Na(Q,W)))!=null?D:x};
Xt=function(Q,W){var x;return(x=z1(Q,W))!=null?x:""};
op=function(Q,W){var x=x===void 0?0:x;Q=Na(Q,W);Q=Q==null?Q:Sj(Q)?Q|0:void 0;return Q!=null?Q:x};
ug=function(Q,W,x){return gf(Q,W,v6(x))};
YL=function(Q,W,x){return gf(Q,W,J$(x))};
nR=function(Q,W,x){return Er(Q,W,J$(x),"")};
VH=function(Q,W,x){if(x!=null){if(!Sj(x))throw iZ("enum");x|=0}return gf(Q,W,x)};
CZD=function(Q,W){return Error("Invalid wire type: "+Q+" (at position "+W+")")};
PV=function(){return Error("Failed to read varint, encoding is invalid.")};
Jm2=function(Q,W){return Error("Tried to read past the end of the data "+W+" > "+Q)};
CR=function(Q){if(typeof Q==="string")return{buffer:nFa(Q),Cq:!1};if(Array.isArray(Q))return{buffer:new Uint8Array(Q),Cq:!1};if(Q.constructor===Uint8Array)return{buffer:Q,Cq:!1};if(Q.constructor===ArrayBuffer)return{buffer:new Uint8Array(Q),Cq:!1};if(Q.constructor===pP)return{buffer:GS(Q)||new Uint8Array(0),Cq:!0};if(Q instanceof Uint8Array)return{buffer:new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength),Cq:!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");
};
p1z=function(Q,W){this.U=null;this.L=!1;this.B=this.D=this.N=0;this.init(Q,void 0,void 0,W)};
pR=function(Q){var W=0,x=0,D=0,K=Q.U,l=Q.B;do{var M=K[l++];W|=(M&127)<<D;D+=7}while(D<32&&M&128);D>32&&(x|=(M&127)>>4);for(D=3;D<32&&M&128;D+=7)M=K[l++],x|=(M&127)<<D;Jj(Q,l);if(M<128)return qsn(W>>>0,x>>>0);throw PV();};
Jj=function(Q,W){Q.B=W;if(W>Q.D)throw Jm2(Q.D,W);};
hj=function(Q){var W=Q.U,x=Q.B,D=W[x++],K=D&127;if(D&128&&(D=W[x++],K|=(D&127)<<7,D&128&&(D=W[x++],K|=(D&127)<<14,D&128&&(D=W[x++],K|=(D&127)<<21,D&128&&(D=W[x++],K|=D<<28,D&128&&W[x++]&128&&W[x++]&128&&W[x++]&128&&W[x++]&128&&W[x++]&128)))))throw PV();Jj(Q,x);return K};
ap=function(Q){var W=Q.U,x=Q.B,D=W[x+0],K=W[x+1],l=W[x+2];W=W[x+3];Jj(Q,Q.B+4);return(D<<0|K<<8|l<<16|W<<24)>>>0};
G1=function(Q){var W=ap(Q);Q=ap(Q);return lF(W,Q)};
dc=function(Q){var W=ap(Q),x=ap(Q);Q=(x>>31)*2+1;var D=x>>>20&2047;W=4294967296*(x&1048575)+W;return D==2047?W?NaN:Q*Infinity:D==0?Q*4.9E-324*W:Q*Math.pow(2,D-1075)*(W+4503599627370496)};
ig=function(Q){for(var W=0,x=Q.B,D=x+10,K=Q.U;x<D;){var l=K[x++];W|=l;if((l&128)===0)return Jj(Q,x),!!(W&127)}throw PV();};
hch=function(Q,W){if(W<0)throw Error("Tried to read a negative byte length: "+W);var x=Q.B,D=x+W;if(D>Q.D)throw Jm2(W,Q.D-x);Q.B=D;return x};
GSl=function(Q,W){if(W==0)return a3();var x=hch(Q,W);Q.R$&&Q.L?x=Q.U.subarray(x,x+W):(Q=Q.U,W=x+W,x=x===W?new Uint8Array(0):aX1?Q.slice(x,W):new Uint8Array(Q.subarray(x,W)));return x.length==0?a3():new pP(x,hm)};
HV=function(Q,W){if(Aj.length){var x=Aj.pop();x.init(Q,void 0,void 0,W);Q=x}else Q=new p1z(Q,W);this.B=Q;this.D=this.B.B;this.U=this.N=-1;d3F(this,W)};
d3F=function(Q,W){W=W===void 0?{}:W;Q.NV=W.NV===void 0?!1:W.NV};
iPa=function(Q){var W=Q.B;if(W.B==W.D)return!1;Q.D=Q.B.B;var x=hj(Q.B)>>>0;W=x>>>3;x&=7;if(!(x>=0&&x<=5))throw CZD(x,Q.D);if(W<1)throw Error("Invalid field number: "+W+" (at position "+Q.D+")");Q.N=W;Q.U=x;return!0};
UY=function(Q){switch(Q.U){case 0:Q.U!=0?UY(Q):ig(Q.B);break;case 1:Q=Q.B;Jj(Q,Q.B+8);break;case 2:if(Q.U!=2)UY(Q);else{var W=hj(Q.B)>>>0;Q=Q.B;Jj(Q,Q.B+W)}break;case 5:Q=Q.B;Jj(Q,Q.B+4);break;case 3:W=Q.N;do{if(!iPa(Q))throw Error("Unmatched start-group tag: stream EOF");if(Q.U==4){if(Q.N!=W)throw Error("Unmatched end-group tag");break}UY(Q)}while(1);break;default:throw CZD(Q.U,Q.D);}};
qu=function(Q,W,x){var D=Q.B.D,K=hj(Q.B)>>>0,l=Q.B.B+K,M=l-D;M<=0&&(Q.B.D=l,x(W,Q,void 0,void 0,void 0),M=l-Q.B.B);if(M)throw Error("Message parsing ended unexpectedly. Expected to read "+(K+" bytes, instead read "+(K-M)+" bytes, either the data ended unexpectedly or the message misreported its own length"));Q.B.B=l;Q.B.D=D};
Ip=function(Q){var W=hj(Q.B)>>>0;Q=Q.B;var x=hch(Q,W);Q=Q.U;if(Ams){var D=Q,K;(K=BV)||(K=BV=new TextDecoder("utf-8",{fatal:!0}));W=x+W;D=x===0&&W===D.length?D:D.subarray(x,W);try{var l=K.decode(D)}catch(b){if($L===void 0){try{K.decode(new Uint8Array([128]))}catch(z){}try{K.decode(new Uint8Array([97])),$L=!0}catch(z){$L=!1}}!$L&&(BV=void 0);throw b;}}else{l=x;W=l+W;x=[];for(var M=null,w,S;l<W;)w=Q[l++],w<128?x.push(w):w<224?l>=W?VA():(S=Q[l++],w<194||(S&192)!==128?(l--,VA()):x.push((w&31)<<6|S&63)):
w<240?l>=W-1?VA():(S=Q[l++],(S&192)!==128||w===224&&S<160||w===237&&S>=160||((K=Q[l++])&192)!==128?(l--,VA()):x.push((w&15)<<12|(S&63)<<6|K&63)):w<=244?l>=W-2?VA():(S=Q[l++],(S&192)!==128||(w<<28)+(S-144)>>30!==0||((K=Q[l++])&192)!==128||((D=Q[l++])&192)!==128?(l--,VA()):(w=(w&7)<<18|(S&63)<<12|(K&63)<<6|D&63,w-=65536,x.push((w>>10&1023)+55296,(w&1023)+56320))):VA(),x.length>=8192&&(M=HsD(M,x),x.length=0);l=HsD(M,x)}return l};
HPh=function(Q){var W=hj(Q.B)>>>0;return GSl(Q.B,W)};
mp=function(Q,W,x){this.pn=qa(Q,W,x)};
U3s=function(Q,W){if(W==null||W=="")return new Q;W=JSON.parse(W);if(!Array.isArray(W))throw Error("dnarr");B1(W,32);return new Q(W)};
Nu=function(Q,W){this.U=Q>>>0;this.B=W>>>0};
Bl5=function(Q){if(!Q)return qgl||(qgl=new Nu(0,0));if(!/^\d+$/.test(Q))return null;jj(Q);return new Nu(Ff,QR)};
cV=function(Q,W){this.U=Q>>>0;this.B=W>>>0};
IX5=function(Q){if(!Q)return $32||($32=new cV(0,0));if(!/^-?\d+$/.test(Q))return null;jj(Q);return new cV(Ff,QR)};
gc=function(){this.B=[]};
yH=function(Q,W,x){for(;x>0||W>127;)Q.B.push(W&127|128),W=(W>>>7|x<<25)>>>0,x>>>=7;Q.B.push(W)};
eE=function(Q,W){for(;W>127;)Q.B.push(W&127|128),W>>>=7;Q.B.push(W)};
m3l=function(Q,W){if(W>=0)eE(Q,W);else{for(var x=0;x<9;x++)Q.B.push(W&127|128),W>>=7;Q.B.push(1)}};
fR=function(Q,W){Q.B.push(W>>>0&255);Q.B.push(W>>>8&255);Q.B.push(W>>>16&255);Q.B.push(W>>>24&255)};
NlD=function(){this.D=[];this.U=0;this.B=new gc};
ZJ=function(Q,W){W.length!==0&&(Q.D.push(W),Q.U+=W.length)};
cmh=function(Q,W){LR(Q,W,2);W=Q.B.end();ZJ(Q,W);W.push(Q.U);return W};
g8n=function(Q,W){var x=W.pop();for(x=Q.U+Q.B.length()-x;x>127;)W.push(x&127|128),x>>>=7,Q.U++;W.push(x);Q.U++};
ymz=function(Q,W){ZJ(Q,Q.B.end());for(var x=0;x<W.length;x++)ZJ(Q,GS(W[x])||new Uint8Array(0))};
LR=function(Q,W,x){eE(Q.B,W*8+x)};
ecF=function(Q,W,x){if(x!=null){switch(typeof x){case "string":Bl5(x)}LR(Q,W,1);switch(typeof x){case "number":Q=Q.B;W6(x);fR(Q,Ff);fR(Q,QR);break;case "bigint":x=BigInt.asUintN(64,x);x=new Nu(Number(x&BigInt(4294967295)),Number(x>>BigInt(32)));Q=Q.B;W=x.B;fR(Q,x.U);fR(Q,W);break;default:x=Bl5(x),Q=Q.B,W=x.B,fR(Q,x.U),fR(Q,W)}}};
rc=function(Q,W,x){LR(Q,W,2);eE(Q.B,x.length);ZJ(Q,Q.B.end());ZJ(Q,x)};
T1=function(){function Q(){throw Error();}
Object.setPrototypeOf(Q,Q.prototype);return Q};
EY=function(Q,W,x){this.m2=Q;this.y4=W;Q=nQl(OY);this.B=!!Q&&x===Q||!1};
Ft=function(Q,W){var x=x===void 0?OY:x;return new EY(Q,W,x)};
ZPF=function(Q,W,x,D,K){W=fXQ(W,D);W!=null&&(x=cmh(Q,x),K(W,Q),g8n(Q,x))};
WI=function(Q,W,x,D){var K=D[Q];if(K)return K;K={};K.d53=D;K.GT=kSF(D[0]);var l=D[1],M=1;l&&l.constructor===Object&&(K.extensions=l,l=D[++M],typeof l==="function"&&(K.kd=!0,tj!=null||(tj=l),Qw!=null||(Qw=D[M+1]),l=D[M+=2]));for(var w={};l&&Array.isArray(l)&&l.length&&typeof l[0]==="number"&&l[0]>0;){for(var S=0;S<l.length;S++)w[l[S]]=l;l=D[++M]}for(S=1;l!==void 0;){typeof l==="number"&&(S+=l,l=D[++M]);var b=void 0;if(l instanceof EY)var z=l;else z=LH4,M--;l=void 0;if((l=z)==null?0:l.B){l=D[++M];b=
D;var k=M;typeof l==="function"&&(l=l(),b[k]=l);b=l}l=D[++M];k=S+1;typeof l==="number"&&l<0&&(k-=l,l=D[++M]);for(;S<k;S++){var X=w[S];b?x(K,S,z,b,X):W(K,S,z,X)}}return D[Q]=K};
Tlv=function(Q){return Array.isArray(Q)?Q[0]instanceof EY?Q:[rmO,Q]:[Q,void 0]};
fXQ=function(Q,W){if(Q instanceof mp)return Q.pn;if(Array.isArray(Q))return B6(Q,W,!1)};
xc=function(Q,W,x,D){var K=x.m2;Q[W]=D?function(l,M,w){return K(l,M,w,D)}:K};
K0=function(Q,W,x,D,K){var l=x.m2,M,w;Q[W]=function(S,b,z){return l(S,b,z,w||(w=WI(D_,xc,K0,D).GT),M||(M=l5(D)),K)}};
l5=function(Q){var W=Q[OPQ];if(W!=null)return W;var x=WI(D_,xc,K0,Q);W=x.kd?function(D,K){return tj(D,K,x)}:function(D,K){for(var l=D[q3]|0;iPa(K)&&K.U!=4;){var M=K.N,w=x[M];
if(w==null){var S=x.extensions;S&&(S=S[M])&&(S=E8h(S),S!=null&&(w=x[M]=S))}w!=null&&w(K,D,M)||(w=K,M=w.D,UY(w),w.NV?w=void 0:(S=w.B.B-M,w.B.B=M,w=GSl(w.B,S)),M=D,w&&((S=M[ZX])?S.push(w):M[ZX]=[w]))}l&8192&&B1(D,34);return!0};
return Q[OPQ]=W};
E8h=function(Q){Q=Tlv(Q);var W=Q[0].m2;if(Q=Q[1]){var x=l5(Q),D=WI(D_,xc,K0,Q).GT;return function(K,l,M){return W(K,l,M,D,x)}}return W};
jx=function(Q,W,x){Q[W]=x.y4};
Rx=function(Q,W,x,D){var K,l,M=x.y4;Q[W]=function(w,S,b){return M(w,S,b,l||(l=WI(MZ,jx,Rx,D).GT),K||(K=FHl(D)))}};
FHl=function(Q){var W=Q[tJa];if(!W){var x=WI(MZ,jx,Rx,Q);W=function(D,K){return QLv(D,K,x)};
Q[tJa]=W}return W};
QLv=function(Q,W,x){dks(Q,Q[q3]|0|(x.GT[1]?512:0),function(D,K){if(K!=null){var l=WL4(x,D);l&&l(W,K,D)}});
(Q=LP(Q))&&ymz(W,Q)};
WL4=function(Q,W){var x=Q[W];if(x)return x;if(x=Q.extensions)if(x=x[W]){x=Tlv(x);var D=x[0].y4;if(x=x[1]){var K=FHl(x),l=WI(MZ,jx,Rx,x).GT;x=Q.kd?Qw(l,K):function(M,w,S){return D(M,w,S,l,K)}}else x=D;
return Q[W]=x}};
wX=function(Q,W,x){if(Array.isArray(W)){var D=W[q3]|0;if(D&4)return W;for(var K=0,l=0;K<W.length;K++){var M=Q(W[K]);M!=null&&(W[l++]=M)}l<K&&(W.length=l);x&&($8(W,(D|5)&-6145),D&2&&Object.freeze(W));return W}};
Sx=function(Q,W,x){return new EY(Q,W,x)};
b5=function(Q,W,x){return new EY(Q,W,x)};
sE=function(Q,W,x){c6(Q,Q[q3]|0,W,x)};
zm=function(Q,W,x){W=W==null||typeof W==="number"?W:W==="NaN"||W==="Infinity"||W==="-Infinity"?Number(W):void 0;W!=null&&(LR(Q,x,1),Q=Q.B,x=xav||(xav=new DataView(new ArrayBuffer(8))),x.setFloat64(0,+W,!0),Ff=x.getUint32(0,!0),QR=x.getUint32(4,!0),fR(Q,Ff),fR(Q,QR))};
kc=function(Q,W,x){W=LJO(W);if(W!=null){switch(typeof W){case "string":IX5(W)}if(W!=null)switch(LR(Q,x,0),typeof W){case "number":Q=Q.B;D3(W);yH(Q,Ff,QR);break;case "bigint":x=BigInt.asUintN(64,W);x=new cV(Number(x&BigInt(4294967295)),Number(x>>BigInt(32)));yH(Q.B,x.U,x.B);break;default:x=IX5(W),yH(Q.B,x.U,x.B)}}};
Xa=function(Q,W,x){W=z3(W);W!=null&&W!=null&&(LR(Q,x,0),m3l(Q.B,W))};
Da4=function(Q,W,x){W=W==null||typeof W==="boolean"?W:typeof W==="number"?!!W:void 0;W!=null&&(LR(Q,x,0),Q.B.B.push(W?1:0))};
KL5=function(Q,W,x){W=pj(W);W!=null&&rc(Q,x,$zQ(W))};
l3Q=function(Q,W,x,D,K){W=fXQ(W,D);W!=null&&(x=cmh(Q,x),K(W,Q),g8n(Q,x))};
Mj5=function(){this.B=jLF;this.isRepeated=0;this.U=Rp;this.defaultValue=void 0};
RZD=function(Q){return function(){var W=new NlD;QLv(this.pn,W,WI(MZ,jx,Rx,Q));ZJ(W,W.B.end());for(var x=new Uint8Array(W.U),D=W.D,K=D.length,l=0,M=0;M<K;M++){var w=D[M];x.set(w,l);l+=w.length}W.D=[x];return x}};
ox=function(Q){return function(W){return U3s(Q,W)}};
w6s=function(Q){this.pn=qa(Q)};
Sra=function(Q,W){return n8Q(Q,W,N1h)};
u5=function(Q){this.pn=qa(Q)};
Yc=function(Q){this.pn=qa(Q)};
n0=function(Q){this.pn=qa(Q)};
Vw=function(Q){this.pn=qa(Q)};
bj4=function(Q){this.pn=qa(Q)};
g.k34=function(Q){var W=new Vw;W=YL(W,1,Q.U);var x=sLh(Q);W=n8Q(W,x,FJl);x=[];for(var D=[],K=g.V(Q.B.keys()),l=K.next();!l.done;l=K.next())D.push(l.value.split(","));for(K=0;K<D.length;K++){l=D[K];for(var M=Q.N,w=Q.Aa(l)||[],S=[],b=0;b<w.length;b++){var z=w[b],k=z&&z.B;z=new Yc;switch(M){case 3:k=Number(k);Number.isFinite(k)&&xL(z,1,PI,v6(k));break;case 2:xL(z,2,PI,RL(Number(k)))}S.push(z)}M=S;for(w=0;w<M.length;w++){S=M[w];b=new n0;S=wc(b,Yc,2,S);b=[];z=zZF(Q);for(k=0;k<z.length;k++){var X=z[k],
u=l[k],Y=new u5;switch(X){case 3:xL(Y,1,vI,J$(String(u)));break;case 2:X=Number(u);Number.isFinite(X)&&xL(Y,2,vI,sr(X));break;case 1:xL(Y,3,vI,wf(u==="true"))}b.push(Y)}bg(S,u5,1,b);x.push(S)}}bg(W,n0,4,x);return W};
X6O=function(Q){if(!Q)return"";if(/^about:(?:blank|srcdoc)$/.test(Q))return window.origin||"";Q.indexOf("blob:")===0&&(Q=Q.substring(5));Q=Q.split("#")[0].split("?")[0];Q=Q.toLowerCase();Q.indexOf("//")==0&&(Q=window.location.protocol+Q);/^[\w\-]*:\/\//.test(Q)||(Q=window.location.href);var W=Q.substring(Q.indexOf("://")+3),x=W.indexOf("/");x!=-1&&(W=W.substring(0,x));x=Q.substring(0,Q.indexOf("://"));if(!x)throw Error("URI is missing protocol: "+Q);if(x!=="http"&&x!=="https"&&x!=="chrome-extension"&&
x!=="moz-extension"&&x!=="file"&&x!=="android-app"&&x!=="chrome-search"&&x!=="chrome-untrusted"&&x!=="chrome"&&x!=="app"&&x!=="devtools")throw Error("Invalid URI scheme in origin: "+x);Q="";var D=W.indexOf(":");if(D!=-1){var K=W.substring(D+1);W=W.substring(0,D);if(x==="http"&&K!=="80"||x==="https"&&K!=="443")Q=":"+K}return x+"://"+W+Q};
oVQ=function(){function Q(){K[0]=1732584193;K[1]=4023233417;K[2]=2562383102;K[3]=271733878;K[4]=3285377520;z=b=0}
function W(k){for(var X=M,u=0;u<64;u+=4)X[u/4]=k[u]<<24|k[u+1]<<16|k[u+2]<<8|k[u+3];for(u=16;u<80;u++)k=X[u-3]^X[u-8]^X[u-14]^X[u-16],X[u]=(k<<1|k>>>31)&4294967295;k=K[0];var Y=K[1],v=K[2],J=K[3],h=K[4];for(u=0;u<80;u++){if(u<40)if(u<20){var G=J^Y&(v^J);var H=1518500249}else G=Y^v^J,H=1859775393;else u<60?(G=Y&v|J&(Y|v),H=2400959708):(G=Y^v^J,H=3395469782);G=((k<<5|k>>>27)&4294967295)+G+h+H+X[u]&4294967295;h=J;J=v;v=(Y<<30|Y>>>2)&4294967295;Y=k;k=G}K[0]=K[0]+k&4294967295;K[1]=K[1]+Y&4294967295;K[2]=
K[2]+v&4294967295;K[3]=K[3]+J&4294967295;K[4]=K[4]+h&4294967295}
function x(k,X){if(typeof k==="string"){k=unescape(encodeURIComponent(k));for(var u=[],Y=0,v=k.length;Y<v;++Y)u.push(k.charCodeAt(Y));k=u}X||(X=k.length);u=0;if(b==0)for(;u+64<X;)W(k.slice(u,u+64)),u+=64,z+=64;for(;u<X;)if(l[b++]=k[u++],z++,b==64)for(b=0,W(l);u+64<X;)W(k.slice(u,u+64)),u+=64,z+=64}
function D(){var k=[],X=z*8;b<56?x(w,56-b):x(w,64-(b-56));for(var u=63;u>=56;u--)l[u]=X&255,X>>>=8;W(l);for(u=X=0;u<5;u++)for(var Y=24;Y>=0;Y-=8)k[X++]=K[u]>>Y&255;return k}
for(var K=[],l=[],M=[],w=[128],S=1;S<64;++S)w[S]=0;var b,z;Q();return{reset:Q,update:x,digest:D,XP:function(){for(var k=D(),X="",u=0;u<k.length;u++)X+="0123456789ABCDEF".charAt(Math.floor(k[u]/16))+"0123456789ABCDEF".charAt(k[u]%16);return X}}};
Yr4=function(Q,W,x){var D=String(g.Nz.location.href);return D&&Q&&W?[W,uFQ(X6O(D),Q,x||null)].join(" "):null};
uFQ=function(Q,W,x){var D=[],K=[];if((Array.isArray(x)?2:1)==1)return K=[W,Q],g.o3(D,function(w){K.push(w)}),nV4(K.join(" "));
var l=[],M=[];g.o3(x,function(w){M.push(w.key);l.push(w.value)});
x=Math.floor((new Date).getTime()/1E3);K=l.length==0?[x,W,Q]:[l.join(":"),x,W,Q];g.o3(D,function(w){K.push(w)});
Q=nV4(K.join(" "));Q=[x,Q];M.length==0||Q.push(M.join(""));return Q.join("_")};
nV4=function(Q){var W=oVQ();W.update(Q);return W.XP().toLowerCase()};
PFD=function(){var Q=null;if(!Vjs)return Q;try{var W=function(x){return x};
Q=Vjs.createPolicy("goog#html",{createHTML:W,createScript:W,createScriptURL:W})}catch(x){}return Q};
Ji=function(){C0===void 0&&(C0=PFD());return C0};
p0=function(Q){this.B=Q};
hi=function(Q){var W=Ji();return new p0(W?W.createScriptURL(Q):Q)};
ax=function(Q){if(Q instanceof p0)return Q.B;throw Error("");};
Gm=function(Q){this.B=Q};
g.dX=function(Q){if(Q instanceof Gm)return Q.B;throw Error("");};
i5=function(Q){this.ET=Q};
Ai=function(Q){return new i5(function(W){return W.substr(0,Q.length+1).toLowerCase()===Q+":"})};
g.HI=function(Q,W){W=W===void 0?vVQ:W;a:if(W=W===void 0?vVQ:W,!(Q instanceof Gm)){for(var x=0;x<W.length;++x){var D=W[x];if(D instanceof i5&&D.ET(Q)){Q=new Gm(Q);break a}}Q=void 0}return Q||CF5};
p6O=function(Q){if(J$n.test(Q))return Q};
UE=function(Q){return Q instanceof Gm?g.dX(Q):p6O(Q)};
g.qZ=function(Q,W){W=UE(W);W!==void 0&&(Q.href=W)};
BI=function(Q){this.B=Q};
$c=function(Q){var W=Ji();return new BI(W?W.createHTML(Q):Q)};
Ix=function(Q){if(Q instanceof BI)return Q.B;throw Error("");};
g.mO=function(Q,W,x,D){W=UE(W);return W!==void 0?Q.open(W,x,D):null};
NZ=function(Q){Q=Q===void 0?document:Q;var W,x;Q=(x=(W=Q).querySelector)==null?void 0:x.call(W,"script[nonce]");return Q==null?"":Q.nonce||Q.getAttribute("nonce")||""};
cI=function(Q){this.B=Q};
hZ4=function(Q){var W=Ji();return new cI(W?W.createScript(Q):Q)};
gX=function(Q){if(Q instanceof cI)return Q.B;throw Error("");};
yw=function(Q){var W=NZ(Q.ownerDocument);W&&Q.setAttribute("nonce",W)};
g.ex=function(Q,W){Q.src=ax(W);yw(Q)};
f0=function(){this.B=a3l[0].toLowerCase()};
G31=function(Q){var W="true".toString(),x=[new f0];if(x.length===0)throw Error("");if(x.map(function(D){if(D instanceof f0)D=D.B;else throw Error("");return D}).every(function(D){return"data-loaded".indexOf(D)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
Q.setAttribute("data-loaded",W)};
das=function(Q){var W=g.yF("window.location.href");Q==null&&(Q='Unknown Error of type "null/undefined"');if(typeof Q==="string")return{message:Q,name:"Unknown error",lineNumber:"Not available",fileName:W,stack:"Not available"};var x=!1;try{var D=Q.lineNumber||Q.line||"Not available"}catch(M){D="Not available",x=!0}try{var K=Q.fileName||Q.filename||Q.sourceURL||g.Nz.$googDebugFname||W}catch(M){K="Not available",x=!0}W=Z_(Q);if(!(!x&&Q.lineNumber&&Q.fileName&&Q.stack&&Q.message&&Q.name)){x=Q.message;
if(x==null){if(Q.constructor&&Q.constructor instanceof Function){if(Q.constructor.name)x=Q.constructor.name;else if(x=Q.constructor,L0[x])x=L0[x];else{x=String(x);if(!L0[x]){var l=/function\s+([^\(]+)/m.exec(x);L0[x]=l?l[1]:"[Anonymous]"}x=L0[x]}x='Unknown Error of type "'+x+'"'}else x="Unknown Error of unknown type";typeof Q.toString==="function"&&Object.prototype.toString!==Q.toString&&(x+=": "+Q.toString())}return{message:x,name:Q.name||"UnknownError",lineNumber:D,fileName:K,stack:W||"Not available"}}return{message:Q.message,
name:Q.name,lineNumber:Q.lineNumber,fileName:Q.fileName,stack:W}};
Z_=function(Q,W){W||(W={});W[rX(Q)]=!0;var x=Q.stack||"",D=Q.cause;D&&!W[rX(D)]&&(x+="\nCaused by: ",D.stack&&D.stack.indexOf(D.toString())==0||(x+=typeof D==="string"?D:D.message+"\n"),x+=Z_(D,W));Q=Q.errors;if(Array.isArray(Q)){D=1;var K;for(K=0;K<Q.length&&!(D>4);K++)W[rX(Q[K])]||(x+="\nInner error "+D++ +": ",Q[K].stack&&Q[K].stack.indexOf(Q[K].toString())==0||(x+=typeof Q[K]==="string"?Q[K]:Q[K].message+"\n"),x+=Z_(Q[K],W));K<Q.length&&(x+="\n... "+(Q.length-K)+" more inner errors")}return x};
rX=function(Q){var W="";typeof Q.toString==="function"&&(W=""+Q);return W+Q.stack};
Tm=function(Q,W,x){return Q.parseFromString(Ix(W),x)};
g.OE=function(Q){return encodeURIComponent(String(Q))};
EE=function(Q){return decodeURIComponent(Q.replace(/\+/g," "))};
Fa=function(Q){ij1.test(Q)&&(Q.indexOf("&")!=-1&&(Q=Q.replace(A$z,"&amp;")),Q.indexOf("<")!=-1&&(Q=Q.replace(Hjv,"&lt;")),Q.indexOf(">")!=-1&&(Q=Q.replace(UaD,"&gt;")),Q.indexOf('"')!=-1&&(Q=Q.replace(qrl,"&quot;")),Q.indexOf("'")!=-1&&(Q=Q.replace(BfQ,"&#39;")),Q.indexOf("\x00")!=-1&&(Q=Q.replace($a4,"&#0;")));return Q};
g.ti=function(Q){return Q==null?"":String(Q)};
Qp=function(Q){for(var W=0,x=0;x<Q.length;++x)W=31*W+Q.charCodeAt(x)>>>0;return W};
WZ=function(Q){var W=Number(Q);return W==0&&g.p5(Q)?NaN:W};
I34=function(Q){return String(Q).replace(/\-([a-z])/g,function(W,x){return x.toUpperCase()})};
man=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Nfv=function(Q){return Q.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(W,x,D){return x+D.toUpperCase()})};
c$s=function(Q){var W=1;Q=Q.split(":");for(var x=[];W>0&&Q.length;)x.push(Q.shift()),W--;Q.length&&x.push(Q.join(":"));return x};
x6=function(Q){this.B=Q||{cookie:""}};
Dw=function(Q){Q=(Q.B.cookie||"").split(";");for(var W=[],x=[],D,K,l=0;l<Q.length;l++)K=GR(Q[l]),D=K.indexOf("="),D==-1?(W.push(""),x.push(K)):(W.push(K.substring(0,D)),x.push(K.substring(D+1)));return{keys:W,values:x}};
gVD=function(){var Q=g.Nz.__SAPISID||g.Nz.__APISID||g.Nz.__3PSAPISID||g.Nz.__1PSAPISID||g.Nz.__OVERRIDE_SID;if(Q)return!0;typeof document!=="undefined"&&(Q=new x6(document),Q=Q.get("SAPISID")||Q.get("APISID")||Q.get("__Secure-3PAPISID")||Q.get("__Secure-1PAPISID"));return!!Q};
y$F=function(Q,W,x,D){(Q=g.Nz[Q])||typeof document==="undefined"||(Q=(new x6(document)).get(W));return Q?Yr4(Q,x,D):null};
eZs=function(Q){var W=X6O(String(g.Nz.location.href)),x=[];if(gVD()){W=W.indexOf("https:")==0||W.indexOf("chrome-extension:")==0||W.indexOf("chrome-untrusted://new-tab-page")==0||W.indexOf("moz-extension:")==0;var D=W?g.Nz.__SAPISID:g.Nz.__APISID;D||typeof document==="undefined"||(D=new x6(document),D=D.get(W?"SAPISID":"APISID")||D.get("__Secure-3PAPISID"));(D=D?Yr4(D,W?"SAPISIDHASH":"APISIDHASH",Q):null)&&x.push(D);W&&((W=y$F("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",Q))&&x.push(W),(Q=y$F("__3PSAPISID",
"__Secure-3PAPISID","SAPISID3PHASH",Q))&&x.push(Q))}return x.length==0?null:x.join(" ")};
KC=function(){};
l0=function(Q){this.pn=qa(Q)};
jD=function(Q,W){this.intervalMs=Q;this.callback=W;this.enabled=!1;this.B=function(){return g.QA()};
this.U=this.B()};
M9=function(Q){this.pn=qa(Q)};
RZ=function(Q){this.pn=qa(Q)};
g.wS=function(Q,W,x){return Math.min(Math.max(Q,W),x)};
g.s6=function(Q,W){Q%=W;return Q*W<0?Q+W:Q};
zM=function(Q,W,x){return Q+x*(W-Q)};
g.k6=function(Q,W){this.x=Q!==void 0?Q:0;this.y=W!==void 0?W:0};
Xz=function(Q,W){return Q==W?!0:Q&&W?Q.x==W.x&&Q.y==W.y:!1};
g.oZ=function(Q,W){this.width=Q;this.height=W};
g.u0=function(Q,W){return Q==W?!0:Q&&W?Q.width==W.width&&Q.height==W.height:!1};
Y6=function(Q){return Q.width*Q.height};
g.nC=function(Q,W,x){for(var D in Q)W.call(x,Q[D],D,Q)};
g.Vp=function(Q,W,x){var D={},K;for(K in Q)W.call(x,Q[K],K,Q)&&(D[K]=Q[K]);return D};
PZ=function(Q,W){var x={},D;for(D in Q)x[D]=W.call(void 0,Q[D],D,Q);return x};
g.vZ=function(Q,W,x){for(var D in Q)if(W.call(x,Q[D],D,Q))return!0;return!1};
f3l=function(Q,W){for(var x in Q)if(!W.call(void 0,Q[x],x,Q))return!1;return!0};
g.CC=function(Q){for(var W in Q)return W};
ZjD=function(Q){for(var W in Q)return Q[W]};
g.JO=function(Q){var W=[],x=0,D;for(D in Q)W[x++]=Q[D];return W};
g.pC=function(Q){var W=[],x=0,D;for(D in Q)W[x++]=D;return W};
g.hO=function(Q,W){return Q!==null&&W in Q};
g.aZ=function(Q,W){for(var x in Q)if(Q[x]==W)return!0;return!1};
GM=function(Q,W){for(var x in Q)if(W.call(void 0,Q[x],x,Q))return x};
LLQ=function(Q,W){return(W=GM(Q,W))&&Q[W]};
g.dS=function(Q){for(var W in Q)return!1;return!0};
g.r$2=function(Q){for(var W in Q)delete Q[W]};
g.i0=function(Q,W,x){return Q!==null&&W in Q?Q[W]:x};
g.AO=function(Q,W){for(var x in Q)if(!(x in W)||Q[x]!==W[x])return!1;for(var D in W)if(!(D in Q))return!1;return!0};
g.HZ=function(Q){var W={},x;for(x in Q)W[x]=Q[x];return W};
g.U6=function(Q){if(!Q||typeof Q!=="object")return Q;if(typeof Q.clone==="function")return Q.clone();if(typeof Map!=="undefined"&&Q instanceof Map)return new Map(Q);if(typeof Set!=="undefined"&&Q instanceof Set)return new Set(Q);if(Q instanceof Date)return new Date(Q.getTime());var W=Array.isArray(Q)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(Q)||Q instanceof DataView?{}:new Q.constructor(Q.length),x;for(x in Q)W[x]=g.U6(Q[x]);return W};
g.q9=function(Q,W){for(var x,D,K=1;K<arguments.length;K++){D=arguments[K];for(x in D)Q[x]=D[x];for(var l=0;l<Tf1.length;l++)x=Tf1[l],Object.prototype.hasOwnProperty.call(D,x)&&(Q[x]=D[x])}};
$6=function(Q,W){this.B=Q===BZ&&W||""};
IZ=function(Q){if(Q instanceof BI)return Q;Q=String(Q).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");return $c(Q)};
Ojv=function(Q){var W=IZ("");return $c(Q.map(function(x){return Ix(IZ(x))}).join(Ix(W).toString()))};
Wp2=function(Q){var W;if(!EVh.test("div"))throw Error("");if(FLn.indexOf("DIV")!==-1)throw Error("");var x="<div";Q&&(x+=tjn(Q));Array.isArray(W)||(W=W===void 0?[]:[W]);Qpn.indexOf("DIV")!==-1?x+=">":(Q=Ojv(W.map(function(D){return D instanceof BI?D:IZ(String(D))})),x+=">"+Q.toString()+"</div>");
return $c(x)};
tjn=function(Q){for(var W="",x=Object.keys(Q),D=0;D<x.length;D++){var K=x[D],l=Q[K];if(!EVh.test(K))throw Error("");if(l!==void 0&&l!==null){if(/^on./i.test(K))throw Error("");xuz.indexOf(K.toLowerCase())!==-1&&(l=l instanceof Gm?l.toString():p6O(String(l))||"about:invalid#zClosurez");l=K+'="'+IZ(String(l))+'"';W+=" "+l}}return W};
DuD=function(Q){var W=g.i2.apply(1,arguments);if(W.length===0)return hi(Q[0]);for(var x=Q[0],D=0;D<W.length;D++)x+=encodeURIComponent(W[D])+Q[D+1];return hi(x)};
cZ=function(Q){return Q?new m_(N9(Q)):Kpv||(Kpv=new m_)};
gS=function(Q,W){return typeof W==="string"?Q.getElementById(W):W};
g.yp=function(Q,W){return(W||document).getElementsByTagName(String(Q))};
g.eD=function(Q,W){return(W||document).querySelectorAll("."+Q)};
g.rS=function(Q,W){var x=W||document;x.getElementsByClassName?Q=x.getElementsByClassName(Q)[0]:(x=document,Q=Q?(W||x).querySelector(Q?"."+Q:""):g.LC(x,"*",Q,W)[0]||null);return Q||null};
g.LC=function(Q,W,x,D){Q=D||Q;return(W=W&&W!="*"?String(W).toUpperCase():"")||x?Q.querySelectorAll(W+(x?"."+x:"")):Q.getElementsByTagName("*")};
TM=function(Q,W){g.nC(W,function(x,D){D=="style"?Q.style.cssText=x:D=="class"?Q.className=x:D=="for"?Q.htmlFor=x:lJQ.hasOwnProperty(D)?Q.setAttribute(lJQ[D],x):Je(D,"aria-")||Je(D,"data-")?Q.setAttribute(D,x):Q[D]=x})};
jpv=function(Q){Q=Q.document;Q=Q.compatMode=="CSS1Compat"?Q.documentElement:Q.body;return new g.oZ(Q.clientWidth,Q.clientHeight)};
R81=function(Q){var W=MEl(Q);Q=Q.defaultView;return new g.k6(Q.pageXOffset||W.scrollLeft,Q.pageYOffset||W.scrollTop)};
MEl=function(Q){return Q.scrollingElement?Q.scrollingElement:g.O6||Q.compatMode!="CSS1Compat"?Q.body||Q.documentElement:Q.documentElement};
E6=function(Q){return Q?Q.defaultView:window};
tO=function(Q,W,x){var D=arguments,K=document,l=D[1],M=Fz(K,String(D[0]));l&&(typeof l==="string"?M.className=l:Array.isArray(l)?M.className=l.join(" "):TM(M,l));D.length>2&&wV5(K,M,D,2);return M};
wV5=function(Q,W,x,D){function K(w){w&&W.appendChild(typeof w==="string"?Q.createTextNode(w):w)}
for(;D<x.length;D++){var l=x[D];if(!g.Ls(l)||g.r4(l)&&l.nodeType>0)K(l);else{a:{if(l&&typeof l.length=="number"){if(g.r4(l)){var M=typeof l.item=="function"||typeof l.item=="string";break a}if(typeof l==="function"){M=typeof l.item=="function";break a}}M=!1}g.o3(M?g.DX(l):l,K)}}};
g.Qz=function(Q){return Fz(document,Q)};
Fz=function(Q,W){W=String(W);Q.contentType==="application/xhtml+xml"&&(W=W.toLowerCase());return Q.createElement(W)};
g.WO=function(Q){return document.createTextNode(String(Q))};
g.xH=function(Q,W){Q.appendChild(W)};
g.Df=function(Q){for(var W;W=Q.firstChild;)Q.removeChild(W)};
Ky=function(Q,W,x){Q.insertBefore(W,Q.childNodes[x]||null)};
g.lo=function(Q){return Q&&Q.parentNode?Q.parentNode.removeChild(Q):null};
g.jh=function(Q,W){if(!Q||!W)return!1;if(Q.contains&&W.nodeType==1)return Q==W||Q.contains(W);if(typeof Q.compareDocumentPosition!="undefined")return Q==W||!!(Q.compareDocumentPosition(W)&16);for(;W&&Q!=W;)W=W.parentNode;return W==Q};
N9=function(Q){return Q.nodeType==9?Q:Q.ownerDocument||Q.document};
g.MT=function(Q,W){if("textContent"in Q)Q.textContent=W;else if(Q.nodeType==3)Q.data=String(W);else if(Q.firstChild&&Q.firstChild.nodeType==3){for(;Q.lastChild!=Q.firstChild;)Q.removeChild(Q.lastChild);Q.firstChild.data=String(W)}else g.Df(Q),Q.appendChild(N9(Q).createTextNode(String(W)))};
bRl=function(Q){return Q.tagName=="A"&&Q.hasAttribute("href")||Q.tagName=="INPUT"||Q.tagName=="TEXTAREA"||Q.tagName=="SELECT"||Q.tagName=="BUTTON"?!Q.disabled&&(!Q.hasAttribute("tabindex")||SYl(Q)):Q.hasAttribute("tabindex")&&SYl(Q)};
SYl=function(Q){Q=Q.tabIndex;return typeof Q==="number"&&Q>=0&&Q<32768};
wp=function(Q,W,x){if(!W&&!x)return null;var D=W?String(W).toUpperCase():null;return Rw(Q,function(K){return(!D||K.nodeName==D)&&(!x||typeof K.className==="string"&&g.FH(K.className.split(/\s+/),x))},!0)};
Rw=function(Q,W,x){Q&&!x&&(Q=Q.parentNode);for(x=0;Q;){if(W(Q))return Q;Q=Q.parentNode;x++}return null};
m_=function(Q){this.B=Q||g.Nz.document||document};
Sh=function(Q){this.pn=qa(Q)};
bo=function(Q){this.pn=qa(Q)};
sx=function(Q){this.pn=qa(Q)};
spn=function(Q,W){bg(Q,bo,1,W)};
zW=function(Q){this.pn=qa(Q)};
k1v=function(Q,W){W=W===void 0?z8Q:W;if(!kH){var x;Q=(x=Q.navigator)==null?void 0:x.userAgentData;if(!Q||typeof Q.getHighEntropyValues!=="function"||Q.brands&&typeof Q.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));x=(Q.brands||[]).map(function(K){var l=new bo;l=YL(l,1,K.brand);return YL(l,2,K.version)});
spn(gf(XN,2,wf(Q.mobile)),x);kH=Q.getHighEntropyValues(W)}var D=new Set(W);return kH.then(function(K){var l=XN.clone();D.has("platform")&&YL(l,3,K.platform);D.has("platformVersion")&&YL(l,4,K.platformVersion);D.has("architecture")&&YL(l,5,K.architecture);D.has("model")&&YL(l,6,K.model);D.has("uaFullVersion")&&YL(l,7,K.uaFullVersion);return l}).catch(function(){return XN.clone()})};
ow=function(Q){this.pn=qa(Q)};
XV5=function(Q){this.pn=qa(Q)};
uo=function(Q){this.pn=qa(Q,4)};
YH=function(Q){this.pn=qa(Q,36)};
ny=function(Q){this.pn=qa(Q,19)};
PO=function(Q,W){this.bU=W=W===void 0?!1:W;this.uach=this.locale=null;this.U=0;this.isFinal=!1;this.B=new ny;Number.isInteger(Q)&&this.B.TM(Q);W||(this.locale=document.documentElement.getAttribute("lang"));oL1(this,new ow)};
oL1=function(Q,W){wc(Q.B,ow,1,W);op(W,1)||VH(W,1,1);Q.bU||(W=vO(Q),Xt(W,5)||YL(W,5,Q.locale));Q.uach&&(W=vO(Q),Rp(W,sx,9)||wc(W,sx,9,Q.uach))};
utQ=function(Q,W){Q.U=W};
YY4=function(Q){var W=W===void 0?z8Q:W;var x=Q.bU?void 0:E6();x?k1v(x,W).then(function(D){Q.uach=D;D=vO(Q);wc(D,sx,9,Q.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
vO=function(Q){Q=Rp(Q.B,ow,1);var W=Rp(Q,zW,11);W||(W=new zW,wc(Q,zW,11,W));return W};
nLv=function(Q){return g.O6?"webkit"+Q:Q.toLowerCase()};
g.Cy=function(Q,W,x,D){this.N=Q;this.L=W;this.B=this.D=Q;this.X=x||0;this.G=D||2};
g.Jg=function(Q){Q.B=Math.min(Q.L,Q.B*Q.G);Q.D=Math.min(Q.L,Q.B+(Q.X?Math.round(Q.X*(Math.random()-.5)*2*Q.B):0));Q.U++};
VEQ=function(Q){this.pn=qa(Q,8)};
jLF=function(Q){this.pn=qa(Q)};
hg=function(Q){g.N.call(this);var W=this;this.componentId="";this.B=[];this.X3="";this.pageId=null;this.g7=this.F3=-1;this.G=this.experimentIds=null;this.uj=this.pS=this.X=this.N=0;this.eZ=1;this.timeoutMillis=0;this.KS=!1;this.logSource=Q.logSource;this.Jz=Q.Jz||function(){};
this.D=new PO(Q.logSource,Q.bU);this.network=Q.network||null;this.Pl=Q.Pl||null;this.S=Q.qsZ||null;this.sessionIndex=Q.sessionIndex||null;this.RF=Q.RF||!1;this.logger=null;this.withCredentials=!Q.UW;this.bU=Q.bU||!1;this.T=!this.bU&&!!E6()&&!!E6().navigator&&E6().navigator.sendBeacon!==void 0;this.LS=typeof URLSearchParams!=="undefined"&&!!(new URL(py())).searchParams&&!!(new URL(py())).searchParams.set;var x=VH(new ow,1,1);oL1(this.D,x);this.L=new g.Cy(1E4,3E5,.1);Q=Pg2(this,Q.Lh);this.U=new jD(this.L.getValue(),
Q);this.fS=new jD(6E5,Q);this.RF||this.fS.start();this.bU||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.Yk()}),document.addEventListener("pagehide",this.Yk.bind(this)))};
Pg2=function(Q,W){return Q.LS?W?function(){W().then(function(){Q.flush()})}:function(){Q.flush()}:function(){}};
vLa=function(Q){Q.S||(Q.S=py());try{return(new URL(Q.S)).toString()}catch(W){return(new URL(Q.S,E6().location.origin)).toString()}};
Cgs=function(Q,W,x){x=x===void 0?Q.Jz():x;var D={},K=new URL(vLa(Q));x&&(D.Authorization=x);Q.sessionIndex&&(D["X-Goog-AuthUser"]=Q.sessionIndex,K.searchParams.set("authuser",Q.sessionIndex));Q.pageId&&(Object.defineProperty(D,"X-Goog-PageId",{value:Q.pageId}),K.searchParams.set("pageId",Q.pageId));return{url:K.toString(),body:W,Y0:1,requestHeaders:D,requestType:"POST",withCredentials:Q.withCredentials,timeoutMillis:Q.timeoutMillis}};
pVO=function(Q){JjQ(Q,function(W,x){W=new URL(W);W.searchParams.set("format","json");var D=!1;try{D=E6().navigator.sendBeacon(W.toString(),x.Rj())}catch(K){}D||(Q.T=!1);return D})};
JjQ=function(Q,W){if(Q.B.length!==0){var x=new URL(vLa(Q));x.searchParams.delete("format");var D=Q.Jz();D&&x.searchParams.set("auth",D);x.searchParams.set("authuser",Q.sessionIndex||"0");for(D=0;D<10&&Q.B.length;++D){var K=Q.B.slice(0,32),l=Q.D.build(K,Q.N,Q.X,Q.Pl,Q.pS,Q.uj);if(!W(x.toString(),l)){++Q.X;break}Q.N=0;Q.X=0;Q.pS=0;Q.uj=0;Q.B=Q.B.slice(K.length)}Q.U.enabled&&Q.U.stop()}};
py=function(){return"https://play.google.com/log?format=json&hasfast=true"};
aw=function(){this.D8=typeof AbortController!=="undefined"};
GW=function(Q,W){g.N.call(this);this.logSource=Q;this.sessionIndex=W;this.Lf="https://play.google.com/log?format=json&hasfast=true";this.U=null;this.N=!1;this.network=null;this.componentId="";this.B=this.Pl=null;this.D=!1;this.pageId=null};
h8O=function(Q,W){Q.U=W;return Q};
aJl=function(Q,W){Q.network=W;return Q};
G1a=function(Q,W){Q.B=W};
du2=function(Q){Q.D=!0;return Q};
dp=function(Q,W,x,D,K,l,M){Q=Q===void 0?-1:Q;W=W===void 0?"":W;x=x===void 0?"":x;D=D===void 0?!1:D;K=K===void 0?"":K;g.N.call(this);this.logSource=Q;this.componentId=W;l?W=l:(Q=new GW(Q,"0"),Q.componentId=W,g.y(this,Q),x!==""&&(Q.Lf=x),D&&(Q.N=!0),K&&h8O(Q,K),M&&aJl(Q,M),W=Q.build());this.B=W};
iR5=function(Q){this.B=Q};
io=function(Q,W,x){this.U=Q;this.N=W;this.fields=x||[];this.B=new Map};
zZF=function(Q){return Q.fields.map(function(W){return W.fieldType})};
sLh=function(Q){return Q.fields.map(function(W){return W.fieldName})};
Ag=function(Q,W){io.call(this,Q,3,W)};
HO=function(Q,W){io.call(this,Q,2,W)};
g.Ux=function(Q,W){this.type=Q;this.currentTarget=this.target=W;this.defaultPrevented=this.U=!1};
qT=function(Q,W){g.Ux.call(this,Q?Q.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.B=null;Q&&this.init(Q,W)};
BO=function(Q){return!(!Q||!Q[AjO])};
UuD=function(Q,W,x,D,K){this.listener=Q;this.proxy=null;this.src=W;this.type=x;this.capture=!!D;this.St=K;this.key=++HR4;this.removed=this.bz=!1};
$H=function(Q){Q.removed=!0;Q.listener=null;Q.proxy=null;Q.src=null;Q.St=null};
Iw=function(Q){this.src=Q;this.listeners={};this.B=0};
g.mX=function(Q,W){var x=W.type;x in Q.listeners&&g.Qn(Q.listeners[x],W)&&($H(W),Q.listeners[x].length==0&&(delete Q.listeners[x],Q.B--))};
NT=function(Q,W,x,D){for(var K=0;K<Q.length;++K){var l=Q[K];if(!l.removed&&l.listener==W&&l.capture==!!x&&l.St==D)return K}return-1};
g.gp=function(Q,W,x,D,K){if(D&&D.once)return cO(Q,W,x,D,K);if(Array.isArray(W)){for(var l=0;l<W.length;l++)g.gp(Q,W[l],x,D,K);return null}x=yz(x);return BO(Q)?Q.listen(W,x,g.r4(D)?!!D.capture:!!D,K):qYa(Q,W,x,!1,D,K)};
qYa=function(Q,W,x,D,K,l){if(!W)throw Error("Invalid event type");var M=g.r4(K)?!!K.capture:!!K,w=Ly(Q);w||(Q[rp]=w=new Iw(Q));x=w.add(W,x,D,M,l);if(x.proxy)return x;D=Bc5();x.proxy=D;D.src=Q;D.listener=x;if(Q.addEventListener)$uD||(K=M),K===void 0&&(K=!1),Q.addEventListener(W.toString(),D,K);else if(Q.attachEvent)Q.attachEvent(IJn(W.toString()),D);else if(Q.addListener&&Q.removeListener)Q.addListener(D);else throw Error("addEventListener and attachEvent are unavailable.");mu1++;return x};
Bc5=function(){function Q(x){return W.call(Q.src,Q.listener,x)}
var W=NcO;return Q};
cO=function(Q,W,x,D,K){if(Array.isArray(W)){for(var l=0;l<W.length;l++)cO(Q,W[l],x,D,K);return null}x=yz(x);return BO(Q)?Q.Jt(W,x,g.r4(D)?!!D.capture:!!D,K):qYa(Q,W,x,!0,D,K)};
cj2=function(Q,W,x,D,K){if(Array.isArray(W))for(var l=0;l<W.length;l++)cj2(Q,W[l],x,D,K);else D=g.r4(D)?!!D.capture:!!D,x=yz(x),BO(Q)?Q.mJ(W,x,D,K):Q&&(Q=Ly(Q))&&(W=Q.cC(W,x,D,K))&&TW(W)};
TW=function(Q){if(typeof Q!=="number"&&Q&&!Q.removed){var W=Q.src;if(BO(W))g.mX(W.Kv,Q);else{var x=Q.type,D=Q.proxy;W.removeEventListener?W.removeEventListener(x,D,Q.capture):W.detachEvent?W.detachEvent(IJn(x),D):W.addListener&&W.removeListener&&W.removeListener(D);mu1--;(x=Ly(W))?(g.mX(x,Q),x.B==0&&(x.src=null,W[rp]=null)):$H(Q)}}};
IJn=function(Q){return Q in Ox?Ox[Q]:Ox[Q]="on"+Q};
NcO=function(Q,W){if(Q.removed)Q=!0;else{W=new qT(W,this);var x=Q.listener,D=Q.St||Q.src;Q.bz&&TW(Q);Q=x.call(D,W)}return Q};
Ly=function(Q){Q=Q[rp];return Q instanceof Iw?Q:null};
yz=function(Q){if(typeof Q==="function")return Q;Q[Ex]||(Q[Ex]=function(W){return Q.handleEvent(W)});
return Q[Ex]};
g.FN=function(){g.N.call(this);this.Kv=new Iw(this);this.k0=this;this.L8=null};
tg=function(Q,W,x,D){W=Q.Kv.listeners[String(W)];if(!W)return!0;W=W.concat();for(var K=!0,l=0;l<W.length;++l){var M=W[l];if(M&&!M.removed&&M.capture==x){var w=M.listener,S=M.St||M.src;M.bz&&g.mX(Q.Kv,M);K=w.call(S,D)!==!1&&K}}return K&&!D.defaultPrevented};
Qa=function(Q,W){this.D=Q;this.N=W;this.U=0;this.B=null};
gL5=function(Q,W){Q.N(W);Q.U<100&&(Q.U++,W.next=Q.B,Q.B=W)};
Kr=function(Q){Q=xX(Q);Dr||(Dr=yjF());Dr(Q)};
yjF=function(){if(typeof MessageChannel!=="undefined"){var Q=new MessageChannel,W={},x=W;Q.port1.onmessage=function(){if(W.next!==void 0){W=W.next;var D=W.s6;W.s6=null;D()}};
return function(D){x.next={s6:D};x=x.next;Q.port2.postMessage(0)}}return function(D){g.Nz.setTimeout(D,0)}};
li=function(){this.U=this.B=null};
jo=function(){this.next=this.scope=this.B=null};
g.wv=function(Q,W){MU||e8l();Rj||(MU(),Rj=!0);fJn.add(Q,W)};
e8l=function(){var Q=Promise.resolve(void 0);MU=function(){Q.then(ZR2)}};
ZR2=function(){for(var Q;Q=fJn.remove();){try{Q.B.call(Q.scope)}catch(W){Pu(W)}gL5(LpF,Q)}Rj=!1};
So=function(Q){return function(){return Q}};
g.bi=function(){};
rjF=function(Q){var W=W||0;return function(){return Q.apply(this,Array.prototype.slice.call(arguments,0,W))}};
s7=function(Q){var W=!1,x;return function(){W||(x=Q(),W=!0);return x}};
zD=function(Q){var W=Q;return function(){if(W){var x=W;W=null;x()}}};
Tcv=function(Q,W){var x=0;return function(D){g.Nz.clearTimeout(x);var K=arguments;x=g.Nz.setTimeout(function(){Q.apply(W,K)},50)}};
g.Xk=function(Q){this.B=0;this.G=void 0;this.N=this.U=this.D=null;this.L=this.X=!1;if(Q!=g.bi)try{var W=this;Q.call(void 0,function(x){kX(W,2,x)},function(x){kX(W,3,x)})}catch(x){kX(this,3,x)}};
ORn=function(){this.next=this.context=this.U=this.D=this.B=null;this.N=!1};
oj=function(Q,W,x){var D=ELD.get();D.D=Q;D.U=W;D.context=x;return D};
g.ui=function(Q){if(Q instanceof g.Xk)return Q;var W=new g.Xk(g.bi);kX(W,2,Q);return W};
YX=function(Q){return new g.Xk(function(W,x){x(Q)})};
g.tE2=function(Q,W,x){FpD(Q,W,x,null)||g.wv(g.tv(W,Q))};
QxO=function(Q){return new g.Xk(function(W,x){Q.length||W(void 0);for(var D,K=0;K<Q.length;K++)D=Q[K],g.tE2(D,W,x)})};
xZF=function(){var Q,W,x=new g.Xk(function(D,K){Q=D;W=K});
return new WOO(x,Q,W)};
DZ1=function(Q,W,x,D){nr(Q,oj(W||g.bi,x||null,D))};
g.Va=function(Q,W){W=xX(W);W=oj(W,W);W.N=!0;nr(Q,W);return Q};
KO5=function(Q,W){if(Q.B==0)if(Q.D){var x=Q.D;if(x.U){for(var D=0,K=null,l=null,M=x.U;M&&(M.N||(D++,M.B==Q&&(K=M),!(K&&D>1)));M=M.next)K||(l=M);K&&(x.B==0&&D==1?KO5(x,W):(l?(D=l,D.next==x.N&&(x.N=D),D.next=D.next.next):l_5(x),jxa(x,K,3,W)))}Q.D=null}else kX(Q,3,W)};
nr=function(Q,W){Q.U||Q.B!=2&&Q.B!=3||Mxa(Q);Q.N?Q.N.next=W:Q.U=W;Q.N=W};
R$1=function(Q,W,x,D){var K=oj(null,null,null);K.B=new g.Xk(function(l,M){K.D=W?function(w){try{var S=W.call(D,w);l(S)}catch(b){M(b)}}:l;
K.U=x?function(w){try{var S=x.call(D,w);S===void 0&&w instanceof P_?M(w):l(S)}catch(b){M(b)}}:M});
K.B.D=Q;nr(Q,K);return K.B};
kX=function(Q,W,x){Q.B==0&&(Q===x&&(W=3,x=new TypeError("Promise cannot resolve to itself")),Q.B=1,FpD(x,Q.AA3,Q.hm3,Q)||(Q.G=x,Q.B=W,Q.D=null,Mxa(Q),W!=3||x instanceof P_||wI5(Q,x)))};
FpD=function(Q,W,x,D){if(Q instanceof g.Xk)return DZ1(Q,W,x,D),!0;if(Q)try{var K=!!Q.$goog_Thenable}catch(M){K=!1}else K=!1;if(K)return Q.then(W,x,D),!0;if(g.r4(Q))try{var l=Q.then;if(typeof l==="function")return SEl(Q,l,W,x,D),!0}catch(M){return x.call(D,M),!0}return!1};
SEl=function(Q,W,x,D,K){function l(S){w||(w=!0,D.call(K,S))}
function M(S){w||(w=!0,x.call(K,S))}
var w=!1;try{W.call(Q,M,l)}catch(S){l(S)}};
Mxa=function(Q){Q.X||(Q.X=!0,g.wv(Q.ST,Q))};
l_5=function(Q){var W=null;Q.U&&(W=Q.U,Q.U=W.next,W.next=null);Q.U||(Q.N=null);return W};
jxa=function(Q,W,x,D){if(x==3&&W.U&&!W.N)for(;Q&&Q.L;Q=Q.D)Q.L=!1;if(W.B)W.B.D=null,b02(W,x,D);else try{W.N?W.D.call(W.context):b02(W,x,D)}catch(K){sx4.call(null,K)}gL5(ELD,W)};
b02=function(Q,W,x){W==2?Q.D.call(Q.context,x):Q.U&&Q.U.call(Q.context,x)};
wI5=function(Q,W){Q.L=!0;g.wv(function(){Q.L&&sx4.call(null,W)})};
P_=function(Q){n5.call(this,Q)};
WOO=function(Q,W,x){this.promise=Q;this.resolve=W;this.reject=x};
g.v_=function(Q,W){g.FN.call(this);this.CA=Q||1;this.GQ=W||g.Nz;this.gS=(0,g.FD)(this.em3,this);this.o3=g.QA()};
g.Cr=function(Q,W,x){if(typeof Q==="function")x&&(Q=(0,g.FD)(Q,x));else if(Q&&typeof Q.handleEvent=="function")Q=(0,g.FD)(Q.handleEvent,Q);else throw Error("Invalid listener argument");return Number(W)>2147483647?-1:g.Nz.setTimeout(Q,W||0)};
Jr=function(Q,W){var x=null;return(new g.Xk(function(D,K){x=g.Cr(function(){D(W)},Q);
x==-1&&K(Error("Failed to schedule timer."))})).RH(function(D){g.Nz.clearTimeout(x);
throw D;})};
g.pr=function(Q){g.N.call(this);this.G=Q;this.N=0;this.D=100;this.L=!1;this.U=new Map;this.X=new Set;this.flushInterval=3E4;this.B=new g.v_(this.flushInterval);this.B.listen("tick",this.KG,!1,this);g.y(this,this.B)};
z$a=function(Q){Q.B.enabled||Q.B.start();Q.N++;Q.N>=Q.D&&Q.KG()};
kmF=function(Q,W){return Q.X.has(W)?void 0:Q.U.get(W)};
XI5=function(Q){for(var W=0;W<Q.length;W++)Q[W].clear()};
ocn=function(Q){switch(Q){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}};
uan=function(Q){switch(Q){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""}};
hr=function(Q,W,x){x=x===void 0?{}:x;W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=Q;this.metadata=x;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
g.aj=function(Q){return(new o6l).Rj(Q)};
o6l=function(){};
GD=function(Q,W,x){if(W==null)x.push("null");else{if(typeof W=="object"){if(Array.isArray(W)){var D=W;W=D.length;x.push("[");for(var K="",l=0;l<W;l++)x.push(K),GD(Q,D[l],x),K=",";x.push("]");return}if(W instanceof String||W instanceof Number||W instanceof Boolean)W=W.valueOf();else{x.push("{");K="";for(D in W)Object.prototype.hasOwnProperty.call(W,D)&&(l=W[D],typeof l!="function"&&(x.push(K),uz2(D,x),x.push(":"),GD(Q,l,x),K=","));x.push("}");return}}switch(typeof W){case "string":uz2(W,x);break;case "number":x.push(isFinite(W)&&
!isNaN(W)?String(W):"null");break;case "boolean":x.push(String(W));break;case "function":x.push("null");break;default:throw Error("Unknown type: "+typeof W);}}};
uz2=function(Q,W){W.push('"',Q.replace(Y6Q,function(x){var D=n6D[x];D||(D="\\u"+(x.charCodeAt(0)|65536).toString(16).slice(1),n6D[x]=D);return D}),'"')};
VDO=function(Q){switch(Q){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"}};
P0s=function(){};
dv=function(){};
ii=function(Q,W,x,D,K,l,M){var w="";Q&&(w+=Q+":");x&&(w+="//",W&&(w+=W+"@"),w+=x,D&&(w+=":"+D));K&&(w+=K);l&&(w+="?"+l);M&&(w+="#"+M);return w};
Ar=function(Q){return Q?decodeURI(Q):Q};
g.B_=function(Q,W){return W.match(qU)[Q]||null};
g.$X=function(Q){return Ar(g.B_(3,Q))};
g.v6a=function(Q){Q=Q.match(qU);return ii(Q[1],Q[2],Q[3],Q[4])};
Ij=function(Q){Q=Q.match(qU);return ii(null,null,null,null,Q[5],Q[6],Q[7])};
C02=function(Q){var W=Q.indexOf("#");return W<0?Q:Q.slice(0,W)};
md=function(Q,W){if(Q){Q=Q.split("&");for(var x=0;x<Q.length;x++){var D=Q[x].indexOf("="),K=null;if(D>=0){var l=Q[x].substring(0,D);K=Q[x].substring(D+1)}else l=Q[x];W(l,K?EE(K):"")}}};
NU=function(Q,W){if(!W)return Q;var x=Q.indexOf("#");x<0&&(x=Q.length);var D=Q.indexOf("?");if(D<0||D>x){D=x;var K=""}else K=Q.substring(D+1,x);Q=[Q.slice(0,D),K,Q.slice(x)];x=Q[1];Q[1]=W?x?x+"&"+W:W:x;return Q[0]+(Q[1]?"?"+Q[1]:"")+Q[2]};
c_=function(Q,W,x){if(Array.isArray(W))for(var D=0;D<W.length;D++)c_(Q,String(W[D]),x);else W!=null&&x.push(Q+(W===""?"":"="+g.OE(W)))};
JOl=function(Q,W){var x=[];for(W=W||0;W<Q.length;W+=2)c_(Q[W],Q[W+1],x);return x.join("&")};
g.gv=function(Q){var W=[],x;for(x in Q)c_(x,Q[x],W);return W.join("&")};
pZl=function(Q,W){var x=arguments.length==2?JOl(arguments[1],0):JOl(arguments,1);return NU(Q,x)};
g.ya=function(Q,W){W=g.gv(W);return NU(Q,W)};
eo=function(Q,W,x){x=x!=null?"="+g.OE(x):"";return NU(Q,W+x)};
h12=function(Q,W,x,D){for(var K=x.length;(W=Q.indexOf(x,W))>=0&&W<D;){var l=Q.charCodeAt(W-1);if(l==38||l==63)if(l=Q.charCodeAt(W+K),!l||l==61||l==38||l==35)return W;W+=K+1}return-1};
fr=function(Q,W){var x=Q.search(awa),D=h12(Q,0,W,x);if(D<0)return null;var K=Q.indexOf("&",D);if(K<0||K>x)K=x;D+=W.length+1;return EE(Q.slice(D,K!==-1?K:0))};
Zr=function(Q,W){for(var x=Q.search(awa),D=0,K,l=[];(K=h12(Q,D,W,x))>=0;)l.push(Q.substring(D,K)),D=Math.min(Q.indexOf("&",K)+1||x,x);l.push(Q.slice(D));return l.join("").replace(GMs,"$1")};
d9s=function(Q,W,x){return eo(Zr(Q,W),W,x)};
g.Lr=function(Q){g.FN.call(this);this.headers=new Map;this.fS=Q||null;this.D=!1;this.B=null;this.S="";this.U=0;this.N="";this.L=this.F3=this.T=this.pS=!1;this.uj=0;this.X=null;this.KS="";this.G=!1};
AOO=function(Q,W,x,D,K,l,M){var w=new g.Lr;iC4.push(w);W&&w.listen("complete",W);w.Jt("ready",w.OU);l&&(w.uj=Math.max(0,l));M&&(w.G=M);w.send(Q,x,D,K)};
U9a=function(Q,W){Q.D=!1;Q.B&&(Q.L=!0,Q.B.abort(),Q.L=!1);Q.N=W;Q.U=5;HCQ(Q);rv(Q)};
HCQ=function(Q){Q.pS||(Q.pS=!0,Q.dispatchEvent("complete"),Q.dispatchEvent("error"))};
q62=function(Q){if(Q.D&&typeof TD!="undefined")if(Q.T&&g.O7(Q)==4)setTimeout(Q.PB.bind(Q),0);else if(Q.dispatchEvent("readystatechange"),Q.isComplete()){Q.getStatus();Q.D=!1;try{if(E7(Q))Q.dispatchEvent("complete"),Q.dispatchEvent("success");else{Q.U=6;try{var W=g.O7(Q)>2?Q.B.statusText:""}catch(x){W=""}Q.N=W+" ["+Q.getStatus()+"]";HCQ(Q)}}finally{rv(Q)}}};
rv=function(Q,W){if(Q.B){Q.X&&(clearTimeout(Q.X),Q.X=null);var x=Q.B;Q.B=null;W||Q.dispatchEvent("ready");try{x.onreadystatechange=null}catch(D){}}};
E7=function(Q){var W=Q.getStatus();a:switch(W){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var x=!0;break a;default:x=!1}if(!x){if(W=W===0)Q=g.B_(1,String(Q.S)),!Q&&g.Nz.self&&g.Nz.self.location&&(Q=g.Nz.self.location.protocol.slice(0,-1)),W=!BS5.test(Q?Q.toLowerCase():"");x=W}return x};
g.O7=function(Q){return Q.B?Q.B.readyState:0};
g.Fk=function(Q){try{return Q.B?Q.B.responseText:""}catch(W){return""}};
g.tr=function(Q){try{if(!Q.B)return null;if("response"in Q.B)return Q.B.response;switch(Q.KS){case "":case "text":return Q.B.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in Q.B)return Q.B.mozResponseArrayBuffer}return null}catch(W){return null}};
g.$9F=function(Q){var W={};Q=(Q.B&&g.O7(Q)>=2?Q.B.getAllResponseHeaders()||"":"").split("\r\n");for(var x=0;x<Q.length;x++)if(!g.p5(Q[x])){var D=c$s(Q[x]),K=D[0];D=D[1];if(typeof D==="string"){D=D.trim();var l=W[K]||[];W[K]=l;l.push(D)}}return PZ(W,function(M){return M.join(", ")})};
g.QS=function(Q,W){return Q.B?Q.B.getResponseHeader(W):null};
Wx=function(){};
D4=function(Q,W){this.logger=Q;this.event=W;this.startTime=x7()};
Kt=function(){zR.apply(this,arguments);this.by={A$:function(){return[]}}};
lz=function(Q,W,x){var D=x7();W=W();Q.Nm(x,x7()-D);return W};
jW=function(){Kt.apply(this,arguments)};
MQ=function(Q){Kt.call(this);var W=this;this.logger=Q;this.by={lxj:function(){return W.logger},
A$:function(){return W.logger.by.A$()}};
this.addOnDisposeCallback(function(){return void W.logger.dispose()})};
Iw2=function(Q){return{yAp:new C25(Q),errorCount:new a54(Q),eventCount:new p5l(Q),tW:new hOs(Q),N55:new Jv5(Q),kKj:new Ghz(Q),sU:new dzv(Q),KP3:new is5(Q)}};
m92=function(Q,W,x,D){Q=du2(aJl(h8O(new GW(1828,"0"),Q),new Wx));W.length&&G1a(Q,Sra(new w6s,W));D!==void 0&&(Q.Lf=D);var K=new dp(1828,"","",!1,"",Q.build());g.y(K,Q);var l=new g.pr({flush:function(M){try{K.flush(M)}catch(w){x(w)}}});
l.addOnDisposeCallback(function(){setTimeout(function(){try{l.KG()}finally{K.dispose()}})});
l.D=1E5;l.flushInterval=3E4;l.B.setInterval(3E4);return l};
Rk=function(Q,W){g.N.call(this);var x=this;this.callback=Q;this.U=W;this.B=-W;this.addOnDisposeCallback(function(){return void clearTimeout(x.rP)})};
NSO=function(Q){if(Q.rP===void 0){var W=Math.max(0,Q.B+Q.U-x7());Q.rP=setTimeout(function(){try{Q.callback()}finally{Q.B=x7(),Q.rP=void 0}},W)}};
w8=function(Q,W,x){Kt.call(this);this.metrics=Q;this.d5=W;this.iF=x};
SW=function(Q,W){W=W===void 0?[]:W;var x={d5:Q.d5||"_",iF:Q.iF||"",oX:Q.oX||[],bC:Q.bC|0,Lf:Q.Lf,Wf:Q.Wf||function(){},
Eo:Q.Eo||function(l,M){return m92(l,M,x.Wf,x.Lf)}},D=x.Eo("47",x.oX.concat(W));
w8.call(this,Iw2(D),x.d5,x.iF);var K=this;this.D=W;this.by={A$:function(){return K.options.oX.concat(K.D).sort(function(l,M){return l-M})}};
this.options=x;this.service=D;this.U=!Q.Eo;this.B=new Rk(function(){return void K.service.KG()},x.bC);
this.addOnDisposeCallback(function(){K.B.dispose();K.U&&K.service.dispose()})};
x7=function(){var Q,W,x;return(x=(Q=globalThis.performance)==null?void 0:(W=Q.now)==null?void 0:W.call(Q))!=null?x:Date.now()};
bz=function(Q){this.pn=qa(Q)};
sO=function(Q){this.pn=qa(Q)};
z2=function(Q){this.pn=qa(Q,0,z2.messageId)};
Mk=function(Q){this.pn=qa(Q)};
k7=function(Q){this.pn=qa(Q)};
g.XT=function(){var Q=this;this.promise=new Promise(function(W,x){Q.resolve=W;Q.reject=x})};
cOl=function(Q,W,x){if(Q.disable)return new jW;W=W?Vnz(W):[];if(x)return x.AQ(W),x.share();Q={d5:Q.d5,iF:Q.iF,oX:Q.VH,bC:Q.ewS,Lf:Q.Lf,Wf:Q.Wf,Eo:Q.Eo};x=W;x=x===void 0?[]:x;return new SW(Q,x)};
ok=function(Q){function W(Y,v,J,h){Promise.resolve().then(function(){S.done();w.oe();w.dispose();M.resolve({j_:Y,qr3:v,YQj:J,gQ3:h})})}
function x(Y,v,J,h){if(!D.logger.d7()){var G="k";v?G="h":J&&(G="u");G!=="k"?h!==0&&(D.logger.g3(G),D.logger.Nm(G,Y)):D.U<=0?(D.logger.g3(G),D.logger.Nm(G,Y),D.U=Math.floor(Math.random()*200)):D.U--}}
g.N.call(this);var D=this;this.U=Math.floor(Math.random()*200);this.B=new k7;if("challenge"in Q&&g6n(Q.challenge)){var K=Xt(Q.challenge,4);var l=Xt(Q.challenge,5);Xt(Q.challenge,7)&&(this.B=yO5(Xt(Q.challenge,7)))}else K=Q.program,l=Q.globalName;this.addOnDisposeCallback(function(){var Y,v,J;return g.U(function(h){if(h.B==1)return g.A(h,D.D,2);Y=h.U;v=Y.qr3;(J=v)==null||J();g.VF(h)})});
this.logger=cOl(Q.mQ||{},this.B,Q.C5);g.y(this,this.logger);var M=new g.XT;this.D=M.promise;this.logger.g3("t");var w=this.logger.share(),S=new D4(w,"t");if(!g.Nz[l])throw this.logger.Av(25),Error("EGOU");if(!g.Nz[l].a)throw this.logger.Av(26),Error("ELIU");try{var b=g.Nz[l].a;l=[];for(var z=[],k=Vnz(this.B),X=0;X<k.length;X++)l.push(k[X]),z.push(1);var u=P2s(this.B);for(k=0;k<u.length;k++)l.push(u[k]),z.push(2);this.N=g.V(b(K,W,!0,Q.Iw,x,[l,z],Xt(this.B,5))).next().value;this.KC=M.promise.then(function(){})}catch(Y){throw this.logger.Av(28),
Y;
}};
e11=function(Q){if(!Q)return null;Q=z1(Q,4);return Q===null||Q===void 0?null:hi(Q)};
uz=function(){this.U={};this.B=null};
Y7=function(){uz.instance||(uz.instance=new uz);return uz.instance};
nt=function(Q,W){return fwF(Q,Rp(W,bz,1),Rp(W,sO,2),Xt(W,3))};
fwF=function(Q,W,x,D){if(!W&&!x)return Promise.resolve();if(!D)return ZCl(W,x);var K;(K=Q.U)[D]||(K[D]=new Promise(function(l,M){ZCl(W,x).then(function(){Q.B=D;l()},function(w){delete Q.U[D];
M(w)})}));
return Q.U[D]};
ZCl=function(Q,W){return W?L_z(W):Q?rOD(Q):Promise.resolve()};
L_z=function(Q){return new Promise(function(W,x){var D=g.Qz("SCRIPT"),K=e11(Q);g.ex(D,K);D.onload=function(){g.lo(D);W()};
D.onerror=function(){g.lo(D);x(Error("EWLS"))};
(g.yp("HEAD")[0]||document.documentElement).appendChild(D)})};
rOD=function(Q){return new Promise(function(W){var x=g.Qz("SCRIPT");if(Q){var D=z1(Q,6);D=D===null||D===void 0?null:hZ4(D)}else D=null;x.textContent=gX(D);yw(x);(g.yp("HEAD")[0]||document.documentElement).appendChild(x);g.lo(x);W()})};
VS=function(Q){this.pn=qa(Q)};
TSl=function(Q,W){return nR(Q,1,W)};
Px=function(Q){this.pn=qa(Q)};
vx=function(Q,W,x){this.client=Q;this.M9=W;this.B=x};
E6v=function(Q,W,x,D,K){var l,M,w,S,b;return g.U(function(z){if(z.B==1)return l=TSl(new VS,Q.M9),W&&nR(l,2,W),x&&nR(l,3,x),M=Q.B(),g.A(z,D.KF("c",K,Q.client.create(l,M)),2);w=z.U;S=dl(Or(w,2));if(S.length)return z.return(lz(D,function(){for(var k=new Uint8Array(S.length),X=0;X<S.length;X++)k[X]=S[X]+97;if(g.Nz.TextDecoder)k=(new TextDecoder).decode(k);else if(k.length<=8192)k=String.fromCharCode.apply(null,k);else{X="";for(var u=0;u<k.length;u+=8192)X+=String.fromCharCode.apply(null,Array.prototype.slice.call(k,
u,u+8192));k=X}return OCO(k)},"U"));
b=Rp(w,z2,1);if(!b)throw Error("Missing field");return z.return(b)})};
Qwz=function(Q,W,x,D){var K,l;return g.U(function(M){K=Q.B();var w=new Px;w=nR(w,1,Q.M9);l=nR(w,2,W);w=M.return;var S=x.KF;var b=Q.client;b=F_n(b.B,b.U+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",l,K||{},tDO);return w.call(M,S.call(x,"g",D,b))})};
WXD=function(Q,W,x,D,K){return Q instanceof vx?E6v(Q,D,K,W,x):Q.ZQ(D,K)};
Ct=function(Q){g.N.call(this);var W=this;this.options=Q;this.X=new g.XT;this.KC=this.X.promise;this.L=new g.XT;this.S=1;this.D=new g.XT;this.N=[];this.Td=Q.Td||function(){};
this.logger=new MQ(cOl(Q.mQ||{}));xT4(this,Q.kR,Q.iH,Q.mc7,Q.gl3,Object.assign({},DTQ,Q.r0||{}));this.addOnDisposeCallback(function(){return void KX5(W)})};
lfQ=function(Q){var W;return g.U(function(x){if(Q.d7())throw Error("Already disposed");(W=Q.B)!=null&&(W.endTimeMs=0,W.F9(1));return g.A(x,Q.D.promise,0)})};
KX5=function(Q){Q.G=Error("Cancelled by dispose");Q.L.resolve();bC(Q.X.promise);Q.X.reject(Error("Cancelled by dispose"));Q.logger.dispose();Promise.all(Q.N).then(function(){var x;return g.U(function(D){(x=Q.U)==null||x.dispose();Q.U=void 0;g.VF(D)})});
Q.N=[];var W;(W=Q.B)!=null&&(W.endTimeMs=0,W.F9(1));bC(Q.D.promise);Q.D.reject(Error("Cancelled by dispose"))};
jwF=function(Q,W){var x=Q.Td;Q.Td=function(){x();W()}};
Mh1=function(Q,W){Q.d7()||(Q.U=W,Q.logger.update(W.QJ()),Q.L.resolve(),Q.X.resolve(void 0),Q.Td())};
RX4=function(Q,W){W&&(Promise.all(Q.N).then(function(){return void W.dispose()}),Q.N=[])};
JG=function(Q,W){Q.S=W;var x,D;(D=(x=Q.options).SJt)==null||D.call(x,W)};
wO5=function(Q){Q.d7()||(Q.D.resolve(),Q.D=new g.XT)};
xT4=function(Q,W,x,D,K,l){D=D===void 0?Y7():D;K=K===void 0?Promise.resolve(void 0):K;var M,w,S,b,z,k,X,u,Y,v,J,h;g.U(function(G){switch(G.B){case 1:return g.A(G,0,3);case 3:w=null;if(!M){G.kf(6);break}JG(Q,7);g.P5(G,7);return g.A(G,pt(M.snapshot({}),l.Z8,function(){return Promise.resolve("E:CTO")}),9);
case 9:w=G.U;g.Cs(G,6);break;case 7:g.Jv(G),w="E:UCE";case 6:S=void 0,b=M?l.Wn:l.C4,z=new g.Cy(b,l.Pn,l.hW,l.iI),k=0;case 10:if(!(k<l.maxAttempts)){G.kf(12);break}if(k===0){G.kf(13);break}JG(Q,0);Q.B=new Sxz(z.getValue(),l.SW,l.qQ);return g.A(G,Q.B.promise,14);case 14:X=G.U,Q.B=void 0,X===1?(k=0,z.reset()):g.Jg(z);case 13:g.P5(G,15);u=void 0;if(x){u=x;G.kf(17);break}JG(Q,5);Y=D.B;return g.A(G,pt(WXD(W,Q.logger,k,Y,w),l.qK,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18);
case 18:u=G.U;case 17:return JG(Q,3),g.A(G,pt(nt(D,u),l.Ui3,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19);
case 19:return JG(Q,8),g.A(G,K,20);case 20:return v=new ok({challenge:u,mQ:Q.options.mQ,Iw:Q.options.Iw}),g.A(G,pt(v.KC,l.b39,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21);
case 21:S=v;G.kf(12);break;case 15:J=g.Jv(G),Q.handleError(J),wO5(Q);case 11:k++;G.kf(10);break;case 12:if(Q.d7()){G.kf(5);break}S&&(x=void 0,RX4(Q,M),M=S,Mh1(Q,S),wO5(Q));JG(Q,2);Q.B=new Sxz(l.Baj,l.SW,l.qQ);return g.A(G,Q.B.promise,22);case 22:Q.B=void 0;if(Q.d7()){G.kf(5);break}G.kf(3);break;case 5:(h=M)==null||h.dispose(),g.VF(G)}})};
pt=function(Q,W,x){var D,K=new Promise(function(l){D=setTimeout(l,W)});
return Promise.race([Q.finally(function(){return void clearTimeout(D)}),
K.then(x)])};
Sxz=function(Q,W,x){function D(){var l=K.endTimeMs-Date.now();l<=x?K.F9(0):setTimeout(D,Math.min(l,W))}
var K=this;this.endTimeMs=Date.now()+Q;this.promise=new Promise(function(l){K.F9=l});
D()};
by5=function(Q,W){try{return globalThis.sessionStorage.setItem(Q,W),!0}catch(x){return!1}};
ak=function(Q,W,x,D){W=W===void 0?0:W;x=x===void 0?Q.length:x;var K=0;for(D&&(K=ak(D));W<x;W++)D=typeof Q==="string"?Q.charCodeAt(W):Q[W],K=swz(31,K)+D|0;return K};
zXD=function(Q,W){return[ak(Q,0,Q.length>>1,W),ak(Q,Q.length>>1)]};
kW5=function(Q){var W=g.V(zXD(Q,G2));Q=W.next().value;W=W.next().value;return Q.toString(16)+W.toString(16)};
XOh=function(Q,W){var x=zXD(W);Q=new Uint32Array(Q.buffer);W=Q[0];var D=g.V(x);x=D.next().value;D=D.next().value;for(var K=1;K<Q.length;K+=2){for(var l=W,M=K,w=x,S=D,b=0;b<22;b++)M=M>>>8|M<<24,M+=l|0,M^=w+38293,l=l<<3|l>>>29,l^=M,S=S>>>8|S<<24,S+=w|0,S^=b+38293,w=w<<3|w>>>29,w^=S;l=[l,M];Q[K]^=l[0];K+1<Q.length&&(Q[K+1]^=l[1])}};
oH5=function(Q,W,x,D,K){var l=(4-(G2.length+x.length)%4)%4,M=new Uint8Array(4+l+G2.length+4+x.length),w=new DataView(M.buffer),S=0;w.setUint32(S,Math.random()*4294967295);S=S+4+l;M.set(G2,S);S+=G2.length;w.setUint32(S,K);M.set(x,S+4);XOh(M,D);return Q.YN(W,function(b){return void globalThis.sessionStorage.removeItem(b)})?by5(W,g.Vn(M))?"s":"t":"i"};
uNh=function(Q,W){var x=globalThis.sessionStorage.getItem(Q);if(!x)return["m"];try{var D=v1(x);XOh(D,W)}catch(K){return globalThis.sessionStorage.removeItem(Q),["c"]}for(W=4;W<7&&D[W]===0;)W++;for(x=0;x<G2.length;x++)if(D[W++]!==G2[x])return globalThis.sessionStorage.removeItem(Q),["d"];x=(new DataView(D.buffer)).getUint32(W);return Math.floor(Date.now()/1E3)>=x?(globalThis.sessionStorage.removeItem(Q),["e"]):["a",new Uint8Array(D.buffer,W+4)]};
d8=function(Q,W,x){x=x===void 0?[]:x;this.maxItems=Q;this.B=W===void 0?0:W;this.U=x};
Yx4=function(Q){var W=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!W)return new d8(Q);var x=W.split(",");if(x.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new d8(Q);W=x.slice(1);W.length===1&&W[0]===""&&(W=[]);x=Number(x[0]);return isNaN(x)||x<0||x>W.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new d8(Q)):new d8(Q,x,W)};
nH2=function(Q,W){this.logger=W;try{var x=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(D){x=!1}x&&(this.index=Yx4(Q))};
Vhn=function(Q,W,x,D,K){var l=Q.index?lz(Q.logger,function(){return oH5(Q.index,kW5(W),x,D,K)},"W"):"u";
Q.logger.qA(l)};
PoD=function(Q,W,x){var D=g.V(Q.index?lz(Q.logger,function(){return uNh(kW5(W),x)},"R"):["u"]),K=D.next().value;
D=D.next().value;Q.logger.nB(K);return D};
Jgl=function(Q){function W(){x-=D;x-=K;x^=K>>>13;D-=K;D-=x;D^=x<<8;K-=x;K-=D;K^=D>>>13;x-=D;x-=K;x^=K>>>12;D-=K;D-=x;D^=x<<16;K-=x;K-=D;K^=D>>>5;x-=D;x-=K;x^=K>>>3;D-=K;D-=x;D^=x<<10;K-=x;K-=D;K^=D>>>15}
Q=vHh(Q);for(var x=2654435769,D=2654435769,K=314159265,l=Q.length,M=l,w=0;M>=12;M-=12,w+=12)x+=iz(Q,w),D+=iz(Q,w+4),K+=iz(Q,w+8),W();K+=l;switch(M){case 11:K+=Q[w+10]<<24;case 10:K+=Q[w+9]<<16;case 9:K+=Q[w+8]<<8;case 8:D+=Q[w+7]<<24;case 7:D+=Q[w+6]<<16;case 6:D+=Q[w+5]<<8;case 5:D+=Q[w+4];case 4:x+=Q[w+3]<<24;case 3:x+=Q[w+2]<<16;case 2:x+=Q[w+1]<<8;case 1:x+=Q[w+0]}W();return Cov.toString(K)};
vHh=function(Q){for(var W=[],x=0;x<Q.length;x++)W.push(Q.charCodeAt(x));return W};
iz=function(Q,W){return Q[W+0]+(Q[W+1]<<8)+(Q[W+2]<<16)+(Q[W+3]<<24)};
AG=function(Q){g.N.call(this);var W=this;this.logger=Q;this.U=new g.XT;this[pOz]=this.dispose;this.addOnDisposeCallback(function(){bC(W.U.promise);W.U.reject()})};
Hx=function(Q,W){var x=setTimeout(function(){Q.U.resolve()},W);
Q.addOnDisposeCallback(function(){return void clearTimeout(x)})};
UO=function(Q,W,x,D){return lz(Q.logger,function(){return x?Q.Bx(W,D):Q.pK(W,D)},Q.B)};
qQ=function(Q,W,x,D){AG.call(this,Q);this.N=W;this.X=x;this.B="m";this.D="x";this.L=0;Hx(this,D)};
Bx=function(Q,W,x){AG.call(this,Q);this.N=W;this.B="f";this.D="z";Hx(this,x)};
Ik=function(Q,W,x){AG.call(this,Q);this.N=W;this.B="w";this.D="z";Hx(this,x)};
mA=function(Q,W){AG.call(this,Q);this.error=W;this.B="e";this.D="y"};
hXl=function(Q,W){var x=(W(Q.error.message)+":"+W(Q.error.stack)).substring(0,2048);W=x.length+1;x=NQ(x);var D=new Uint8Array(4+x.length);D.set([42,W&127|128,W>>7,Q.error.code]);D.set(x,4);return D};
cx=function(Q,W,x){AG.call(this,Q);this.N=W;this.clientState=x;this.B="S";this.D="q"};
NQ=function(Q){return globalThis.TextEncoder?(new TextEncoder).encode(Q):g.C5(Q)};
afs=function(Q,W,x){return Q instanceof vx?Qwz(Q,x,W,1):Q.iz(x)};
g8=function(Q,W,x){g.N.call(this);var D=this;this.logger=Q;this.onError=W;this.state=x;this.G=0;this.U=void 0;this.addOnDisposeCallback(function(){D.B&&(D.B.dispose(),D.B=void 0)})};
GWh=function(Q,W){W=W instanceof lC?W:new lC(5,"TVD:error",W);return Q.reportError(W)};
yS=function(Q,W,x){try{if(Q.d7())throw new lC(21,"BNT:disposed");if(!Q.B&&Q.U)throw Q.U;var D,K;return(K=(D=dT2(Q,W,x))!=null?D:iyz(Q,W,x))!=null?K:Ag1(Q,W,x)}catch(l){if(!W.pH)throw GWh(Q,l);return Hyn(Q,x,l)}};
dT2=function(Q,W,x){var D;return(D=Q.B)==null?void 0:UO(D,function(){return eW(Q,W)},x,function(K){var l;
if(Q.B instanceof qQ&&((l=W.P3)==null?0:l.dM))try{var M;(M=Q.cache)==null||Vhn(M,eW(Q,W),K,W.P3.T4,Q.S-120)}catch(w){Q.reportError(new lC(24,"ELX:write",w))}})};
iyz=function(Q,W,x){var D;if((D=W.P3)!=null&&D.NI)try{var K,l=(K=Q.cache)==null?void 0:PoD(K,eW(Q,W),W.P3.T4);return l?x?lz(Q.logger,function(){return g.Vn(l,2)},"a"):l:void 0}catch(M){Q.reportError(new lC(23,"RXO:read",M))}};
Ag1=function(Q,W,x){var D={stack:[],error:void 0,hasError:!1};try{if(!W.uv)throw new lC(29,"SDF:notready");return UO(xF(D,new cx(Q.logger,Q.G,Q.state)),function(){return eW(Q,W)},x)}catch(K){D.error=K,D.hasError=!0}finally{K5(D)}};
Hyn=function(Q,W,x){var D={stack:[],error:void 0,hasError:!1};try{var K=GWh(Q,x);return UO(xF(D,new mA(Q.logger,K)),function(){return[]},W)}catch(l){D.error=l,D.hasError=!0}finally{K5(D)}};
eW=function(Q,W){return W.AU?W.AU:W.Im?lz(Q.logger,function(){return W.AU=NQ(W.Im)},"c"):[]};
Z4=function(Q){var W;g8.call(this,Q.RU.QJ(),(W=Q.onError)!=null?W:function(){},0);
var x=this;this.L=0;this.N=new g.XT;this.D=!1;this.RU=Q.RU;this.kR=Q.kR;this.r0=Object.assign({},UTl,Q.r0||{});Q.iF&&(this.logger instanceof SW||this.logger instanceof MQ)&&this.logger.RP(Q.iF);this.nw=Q.nw||!1;if(qxD(Q)){var D=this.RU;this.X=function(){return lfQ(D).catch(function(M){M=x.reportError(new lC(x.D?20:32,"TRG:Disposed",M));x.U=M;var w;(w=x.B)==null||w.dispose();x.B=void 0;x.N.reject(M)})};
jwF(D,function(){return void ft(x)});
D.S===2&&ft(this)}else this.X=Q.t65,ft(this);var K=this.logger.share();K.g3("o");var l=new D4(K,"o");this.N.promise.then(function(){l.done();K.oe();K.dispose()},function(){return void K.dispose()});
this.addOnDisposeCallback(function(){x.D||(x.U?x.logger.oe():(x.U=x.reportError(new lC(32,"TNP:Disposed")),x.logger.oe(),x.N.reject(x.U)))});
g.y(this,this.logger)};
Bps=function(Q,W){if(!(W instanceof lC))if(W instanceof hr){var x=Error(W.toString());x.stack=W.stack;W=new lC(11,"EBH:Error",x)}else W=new lC(12,"BSO:Unknown",W);return Q.reportError(W)};
ft=function(Q){var W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v;return g.U(function(J){switch(J.B){case 1:W=void 0;Q.L++;x=new g.XT;Q.RU instanceof Ct&&Q.RU.N.push(x.promise);if(!Q.nw){J.kf(2);break}D=new g.XT;setTimeout(function(){return void D.resolve()});
return g.A(J,D.promise,2);case 2:return K=Q.logger.share(),g.P5(J,4,5),Q.state=5,l={},M=[],g.A(J,pt(Q.RU.snapshot({Im:l,a8:M}),Q.r0.F$j,function(){return Promise.reject(new lC(15,"MDA:Timeout"))}),7);
case 7:w=J.U;if(Q.d7())throw new lC(Q.D?20:32,"MDA:Disposed");S=M[0];Q.state=6;return g.A(J,pt(afs(Q.kR,K,w),Q.r0.po,function(){return Promise.reject(new lC(10,"BWB:Timeout"))}),8);
case 8:b=J.U;if(Q.d7())throw new lC(Q.D?20:32,"BWB:Disposed");Q.state=7;W=lz(K,function(){var G=$Th(Q,b,x,S);G.U.promise.then(function(){return void Q.X()}).catch(function(){});
return G},"i");
case 5:g.ps(J);K.dispose();g.hv(J,6);break;case 4:z=g.Jv(J);(k=W)==null||k.dispose();if(!Q.U){X=Bps(Q,z);x.resolve();var h;if(h=Q.RU instanceof Ct&&Q.L<2)a:if(z instanceof lC)h=z.code!==32&&z.code!==20&&z.code!==10;else{if(z instanceof hr)switch(z.code){case 2:case 13:case 14:case 4:break;default:h=!1;break a}h=!0}if(h)return u=(1+Math.random()*.25)*(Q.D?6E4:1E3),Y=setTimeout(function(){return void Q.X()},u),Q.addOnDisposeCallback(function(){return void clearTimeout(Y)}),J.return();
Q.U=X}K.Av(Q.D?13:14);Q.N.reject(Q.U);return J.return();case 6:Q.state=8,Q.L=0,(v=Q.B)==null||v.dispose(),Q.B=W,Q.D=!0,Q.N.resolve(),g.VF(J)}})};
$Th=function(Q,W,x,D){var K=kL(W,2)*1E3;if(K<=0)throw new lC(31,"TTM:Invalid");if(Xt(W,4))return new Ik(Q.logger,Xt(W,4),K);if(!kL(W,3))return new Bx(Q.logger,dl(Or(W,1)),K);if(!D)throw new lC(4,"PMD:Undefined");D=D(dl(Or(W,1)));if(!(D instanceof Function))throw new lC(16,"APF:Failed");Q.S=Math.floor((Date.now()+K)/1E3);Q=new qQ(Q.logger,D,kL(W,3),K);Q.addOnDisposeCallback(function(){return void x.resolve()});
return Q};
Lt=function(){var Q=0,W;return function(x){W||(W=new jW);var D=new cx(W,Q,1),K=UO(D,function(){return NQ(x)},!0);
D.dispose();Q++;return K}};
r8=function(Q){this.pn=qa(Q)};
Ifn=function(Q,W,x){this.hP=Q;this.qM=W;this.metadata=x};
T2=function(Q,W){W=W===void 0?{}:W;this.LjZ=Q;this.metadata=W;this.status=null};
OO=function(Q,W,x,D,K){this.name=Q;this.methodType="unary";this.requestType=W;this.responseType=x;this.B=D;this.U=K};
EO=function(Q){this.pn=qa(Q)};
FT=function(Q){this.pn=qa(Q)};
tG=function(Q){this.pn=qa(Q)};
QU=function(Q,W){this.G=Q.OnS;this.S=W;this.B=Q.xhr;this.D=[];this.L=[];this.X=[];this.N=[];this.U=[];this.G&&mT1(this)};
ygl=function(Q,W){var x=new NpF;g.gp(Q.B,"complete",function(){if(E7(Q.B)){var D=g.Fk(Q.B);if(W&&Q.B.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");D=atob(D)}try{var K=Q.S(D)}catch(w){W0(Q,xl(new hr(13,"Error when deserializing response data; error: "+w+(", response: "+D)),x));return}D=ocn(Q.B.getStatus());DF(Q,K4(Q));D==0?cgD(Q,K):W0(Q,xl(new hr(D,"Xhr succeeded but the status code is not 200"),x))}else{D=g.Fk(Q.B);K=K4(Q);if(D){var l=gHs(Q,
D);D=l.code;var M=l.details;l=l.metadata}else D=2,M="Rpc failed due to xhr error. uri: "+String(Q.B.S)+", error code: "+Q.B.U+", error: "+Q.B.getLastError(),l=K;DF(Q,K);W0(Q,xl(new hr(D,M,l),x))}})};
mT1=function(Q){Q.G.FA("data",function(W){if("1"in W){var x=W["1"];try{var D=Q.S(x)}catch(K){W0(Q,new hr(13,"Error when deserializing response data; error: "+K+(", response: "+x)))}D&&cgD(Q,D)}if("2"in W)for(W=gHs(Q,W["2"]),x=0;x<Q.X.length;x++)Q.X[x](W)});
Q.G.FA("end",function(){DF(Q,K4(Q));for(var W=0;W<Q.N.length;W++)Q.N[W]()});
Q.G.FA("error",function(){if(Q.U.length!=0){var W=Q.B.U;W!==0||E7(Q.B)||(W=6);var x=-1;switch(W){case 0:var D=2;break;case 7:D=10;break;case 8:D=4;break;case 6:x=Q.B.getStatus();D=ocn(x);break;default:D=14}DF(Q,K4(Q));W=VDO(W)+", error: "+Q.B.getLastError();x!=-1&&(W+=", http status code: "+x);W0(Q,new hr(D,W))}})};
K4=function(Q){var W={},x=g.$9F(Q.B);Object.keys(x).forEach(function(D){W[D]=x[D]});
return W};
gHs=function(Q,W){var x=2,D={};try{var K=eX5(W);x=Rq(K,1);var l=K.getMessage();jp(K,FT,3).length&&(D["grpc-web-status-details-bin"]=W)}catch(M){Q.B&&Q.B.getStatus()===404?(x=5,l="Not Found: "+String(Q.B.S)):(x=14,l="Unable to parse RpcStatus: "+M)}return{code:x,details:l,metadata:D}};
lT=function(Q,W){W=Q.indexOf(W);W>-1&&Q.splice(W,1)};
cgD=function(Q,W){for(var x=0;x<Q.D.length;x++)Q.D[x](W)};
DF=function(Q,W){for(var x=0;x<Q.L.length;x++)Q.L[x](W)};
W0=function(Q,W){for(var x=0;x<Q.U.length;x++)Q.U[x](W)};
NpF=function(){var Q=Error.call(this);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
xl=function(Q,W){W.stack&&(Q.stack+="\n"+W.stack);return Q};
g.jr=function(Q){this.N=Q.Qm9||null;this.D=Q.OP||!1;this.U=void 0};
MM=function(Q,W){g.FN.call(this);this.pS=Q;this.X=W;this.L=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.S=new Headers;this.U=null;this.uj="GET";this.T="";this.B=!1;this.G=this.D=this.N=null};
ffn=function(Q){Q.D.read().then(Q.mjS.bind(Q)).catch(Q.LB.bind(Q))};
wB=function(Q){Q.readyState=4;Q.N=null;Q.D=null;Q.G=null;RH(Q)};
RH=function(Q){Q.onreadystatechange&&Q.onreadystatechange.call(Q)};
g.Sr=function(Q){this.B=this.S=this.L="";this.D=null;this.X=this.U="";this.G=!1;var W;Q instanceof g.Sr?(this.G=Q.G,g.bT(this,Q.L),this.S=Q.S,g.s1(this,Q.B),g.zY(this,Q.D),this.U=Q.U,kl(this,Q.N.clone()),this.X=Q.X):Q&&(W=String(Q).match(qU))?(this.G=!1,g.bT(this,W[1]||"",!0),this.S=XA(W[2]||""),g.s1(this,W[3]||"",!0),g.zY(this,W[4]),this.U=XA(W[5]||"",!0),kl(this,W[6]||"",!0),this.X=XA(W[7]||"")):(this.G=!1,this.N=new oH(null,this.G))};
g.bT=function(Q,W,x){Q.L=x?XA(W,!0):W;Q.L&&(Q.L=Q.L.replace(/:$/,""))};
g.s1=function(Q,W,x){Q.B=x?XA(W,!0):W};
g.zY=function(Q,W){if(W){W=Number(W);if(isNaN(W)||W<0)throw Error("Bad port number "+W);Q.D=W}else Q.D=null};
kl=function(Q,W,x){W instanceof oH?(Q.N=W,Zya(Q.N,Q.G)):(x||(W=uT(W,LX4)),Q.N=new oH(W,Q.G))};
g.Yl=function(Q,W,x){Q.N.set(W,x)};
g.n4=function(Q){return Q instanceof g.Sr?Q.clone():new g.Sr(Q)};
XA=function(Q,W){return Q?W?decodeURI(Q.replace(/%25/g,"%2525")):decodeURIComponent(Q):""};
uT=function(Q,W,x){return typeof Q==="string"?(Q=encodeURI(Q).replace(W,rgn),x&&(Q=Q.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Q):null};
rgn=function(Q){Q=Q.charCodeAt(0);return"%"+(Q>>4&15).toString(16)+(Q&15).toString(16)};
oH=function(Q,W){this.U=this.B=null;this.D=Q||null;this.N=!!W};
VU=function(Q){Q.B||(Q.B=new Map,Q.U=0,Q.D&&md(Q.D,function(W,x){Q.add(EE(W),x)}))};
Tph=function(Q,W){VU(Q);W=P0(Q,W);return Q.B.has(W)};
g.Oy5=function(Q,W,x){Q.remove(W);x.length>0&&(Q.D=null,Q.B.set(P0(Q,W),g.DX(x)),Q.U=Q.U+x.length)};
P0=function(Q,W){W=String(W);Q.N&&(W=W.toLowerCase());return W};
Zya=function(Q,W){W&&!Q.N&&(VU(Q),Q.D=null,Q.B.forEach(function(x,D){var K=D.toLowerCase();D!=K&&(this.remove(D),g.Oy5(this,K,x))},Q));
Q.N=W};
g.EHD=function(Q){var W="";g.nC(Q,function(x,D){W+=D;W+=":";W+=x;W+="\r\n"});
return W};
g.v0=function(Q,W,x){if(g.dS(x))return Q;x=g.EHD(x);if(typeof Q==="string")return eo(Q,g.OE(W),x);g.Yl(Q,W,x);return Q};
g.C4=function(Q){g.N.call(this);this.U=Q;this.B={}};
FXQ=function(Q,W,x,D,K,l){if(Array.isArray(x))for(var M=0;M<x.length;M++)FXQ(Q,W,x[M],D,K,l);else{W=cO(W,x,D||Q.handleEvent,K,l||Q.U||Q);if(!W)return Q;Q.B[W.key]=W}return Q};
thO=function(){this.D=!0;this.U=0;this.B=""};
Qj5=function(Q,W,x){Q.D=!1;throw Error("The stream is broken @"+Q.U+". Error: "+x+". With input:\n"+W);};
JF=function(){this.X=null;this.G=[];this.N=this.U=this.D=this.B=this.T=0;this.L=null;this.S=0};
p4=function(Q,W,x,D){Q.B=3;Q.X="The stream is broken @"+Q.T+"/"+x+". Error: "+D+". With input:\n"+W;throw Error(Q.X);};
hF=function(){this.B=null;this.U=0;this.D=new thO;this.N=new JF};
Wdv=function(Q,W,x){Q.B="The stream is broken @"+Q.U+". Error: "+x+". With input:\n"+W;throw Error(Q.B);};
aH=function(Q){return Q=="\r"||Q=="\n"||Q==" "||Q=="\t"};
GY=function(Q){this.T=null;this.X=[];this.N="";this.pS=[];this.D=this.U=0;this.G=!1;this.S=0;this.F3=/[\\"]/g;this.B=this.L=0;this.uj=!(!Q||!Q.cn)};
dB=function(Q,W,x){Q.L=3;Q.T="The stream is broken @"+Q.D+"/"+x+". With input:\n"+W;throw Error(Q.T);};
iT=function(){this.L=this.D=null;this.U=this.B=0;this.N=[];this.X=!1};
xUF=function(Q){var W=g.QS(Q,"Content-Type");if(!W)return null;W=W.toLowerCase();return W.startsWith("application/json")?W.startsWith("application/json+protobuf")?new iT:new GY:W.startsWith("application/x-protobuf")?(Q=g.QS(Q,"Content-Transfer-Encoding"))?Q.toLowerCase()=="base64"?new hF:null:new JF:null};
AF=function(Q){this.B=Q;this.U=null;this.L=this.D=0;this.T=!1;this.N=this.G=this.X=null;this.S=new g.C4(this);this.S.listen(this.B,"readystatechange",this.uj)};
H0=function(Q,W){Q.L!=W&&(Q.L=W,Q.G&&Q.G())};
IH=function(Q){Q.S.removeAll();if(Q.B){var W=Q.B;Q.B=null;W.abort();W.dispose()}};
DUv=function(Q){Q=this.D=Q;var W=(0,g.FD)(this.QQf,this);Q.N=W;Q=this.D;W=(0,g.FD)(this.pZ3,this);Q.G=W;this.U={};this.B={}};
KdQ=function(Q,W){for(var x={},D=0;D<Q.length;x={T9:void 0},D++)x.T9=Q[D],W.forEach(function(K){return function(l){try{l(K.T9)}catch(M){}}}(x))};
m6=function(Q,W){var x=Q.U[W];x&&x.forEach(function(D){try{D()}catch(K){}});
(x=Q.B[W])&&x.forEach(function(D){D()});
Q.B[W]=[]};
lrQ=function(){var Q={format:"jspb"};Q=Q===void 0?{}:Q;this.L=Q.MA9||g.yF("suppressCorsPreflight",Q)||!1;this.U=Q.withCredentials||g.yF("withCredentials",Q)||!1;this.N=Q.wOt||[];this.X=Q.WW7||[];this.B=Q.SNj;this.D=Q.POS||!1};
RVa=function(Q,W,x,D,K,l){l=l===void 0?{}:l;var M=W.substring(0,W.length-K.name.length),w,S=(w=l)==null?void 0:w.signal;return jj2(function(b){return new Promise(function(z,k){if(S==null?0:S.aborted){var X=new hr(1,"Aborted");X.cause=S.reason;k(X)}else{var u={},Y=MoO(Q,b,M);Y.FA("error",function(v){return k(v)});
Y.FA("metadata",function(v){u=v});
Y.FA("data",function(v){var J=u;J=J===void 0?{}:J;z(new T2(v,J))});
S&&S.addEventListener("abort",function(){Y.cancel();var v=new hr(1,"Aborted");v.cause=S.reason;k(v)})}})},Q.X).call(Q,K.G(x,D)).then(function(b){return b.LjZ})};
F_n=function(Q,W,x,D,K){var l=l===void 0?{}:l;return RVa(Q,W,x,D,K,l)};
MoO=function(Q,W,x){var D=W.qM,K=W.getMetadata(),l=w_O(Q,!0);Q=S7F(Q,K,l,x+D.getName());x=brO(l,D.U,!1);ygl(x,K["X-Goog-Encode-Response-If-Executable"]=="base64");W=D.B(W.hP);l.send(Q,"POST",W);return x};
w_O=function(Q,W){W=Q.D&&!W;return Q.B||W?new g.Lr(new g.jr({Qm9:Q.B,OP:W})):new g.Lr};
S7F=function(Q,W,x,D){W["Content-Type"]="application/json+protobuf";W["X-User-Agent"]="grpc-web-javascript/0.1";var K=W.Authorization;if(K&&sja.has(K.split(" ")[0])||Q.U)x.G=!0;if(Q.L)D=g.v0(D,"$httpHeaders",W);else for(var l in W)x.headers.set(l,W[l]);return D};
brO=function(Q,W,x){if(x){Q.isActive();x=new AF(Q);var D=new DUv(x)}return new QU({xhr:Q,OnS:D},W)};
jj2=function(Q,W){return W.reduce(function(x,D){return function(K){return D.intercept(K,x)}},Q)};
zVz=function(){this.B=new lrQ;this.U="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
NM=function(Q){g.N.call(this);this.owner=Q;this.signals=new Set;Q&&g.y(Q,this)};
c0=function(Q,W){Q.signals.has(W);return W};
gB=function(Q){g.N.call(this);this.GW=Q;this.slots=new Map;this.TU=new Set;this.eg=!1};
kDz=function(Q,W){Q.d7()||Q.slots.set(W,{slotId:W,slot:void 0,py:function(){return Q.slots.delete(W)}})};
er=function(Q,W){new Promise(function(x){yU(function(){Q.GW&&(Q.gR=W,Q.eg=!0);for(var D=g.V(Q.slots.values()),K=D.next();!K.done;K=D.next()){var l=K.value;K=l.slotId;l=l.slot;try{l(W,{signal:Q,slotId:K})}catch(M){Pu(M)}}D=g.V(Q.TU);for(K=D.next();!K.done;K=D.next())K.value.resolve(W);Q.TU.clear();x()})})};
yU=function(Q){f4.push(Q);X_a()};
X_a=function(){var Q,W;g.U(function(x){switch(x.B){case 1:if(ZF)return x.return();g.P5(x,2,3);ZF=!0;Q=oXD(0);case 5:if(!(Q<f4.length)){x.kf(3);break}return g.A(x,Promise.resolve(),8);case 8:Q=oXD(Q);x.kf(5);break;case 3:g.ps(x);f4.length=0;ZF=!1;g.hv(x,0);break;case 2:W=g.Jv(x),Pu(W),x.kf(3)}})};
oXD=function(Q){for(var W=Q+100;Q<W&&Q<f4.length;)try{f4[Q++]()}catch(x){Pu(x)}return Q};
ukD=function(Q,W){if(Q.d7())W();else{var x=L4.get(Q);if(x)x.push(W);else{var D=[W];L4.set(Q,D);Q.addOnDisposeCallback(function(){for(var K=g.V([].concat(g.C(D))),l=K.next();!l.done;l=K.next())l=l.value,l();L4.delete(Q)})}}};
rB=function(Q,W,x){g.N.call(this);this.G=Q;this.milliseconds=W;this.uN=x;this.state=this.N=0};
Y7z=function(Q){return new rB(!1,Q,{Ft:function(){},
Xd:void 0})};
TY=function(Q){n5.call(this,Q);this.name="TimerCancelledError"};
O1=function(Q){n5.call(this,Q);this.name="TimerDisposedError"};
nX1=function(Q){var W={Im:Q.Im,AU:Q.AU,uv:!0,pH:!0};Q.P3&&(Q=Q.P3,W.P3={T4:Q.T4,NI:Q.NI,dM:Q.dM});return W};
E1=function(Q){var W;g8.call(this,Q.Fjj?new jW:new SW({d5:Q.d5,iF:Q.M9,oX:Q.oX},[]),(W=Q.onError)!=null?W:function(){},1);
this.D=new g.XT;this.iH=void 0;this.kR=Q.kR;this.W_=Q.W_;var x;this.onEvent=(x=Q.onEvent)!=null?x:function(){}};
Pi5=function(Q){var W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v,J;return g.U(function(h){switch(h.B){case 1:W=void 0,x=Q.isReady()?6E4:1E3,D=new g.Cy(x,6E5,.25,2),K={},l=1;case 2:if(!(l<=2)){h.kf(4);break}g.P5(h,5);Q.state=3;Q.G=l-1;return g.A(h,Q.iH&&l===1?Q.iH:Q.ZQ(l),7);case 7:return M=h.U,Q.iH=void 0,Q.state=4,w=new D4(Q.logger,"b"),g.A(h,nt(Y7(),M),8);case 8:return Q.state=5,Q.onEvent(1),K.Xr=3,K.Pj=new ok({challenge:M,C5:Q.logger}),S=FA(Q,12E4).then(function(H){return function(){Q.onEvent(H.Xr);return Promise.reject(new lC(15,
"MDA:Timeout"))}}(K)),g.A(h,Promise.race([K.Pj.KC,
S]),9);case 9:return Q.onEvent(2),b=[],Q.onEvent(4),K.Xr=6,g.A(h,Promise.race([K.Pj.snapshot({a8:b}),S]),10);case 10:return z=h.U,Q.onEvent(5),k=g.V(b),X=k.next().value,K.fD=X,w.done(),Q.state=6,g.A(h,Voa(Q,Q.logger.KF("g",l,Q.kR.iz(z)),new lC(10,"BWB:Timeout")),11);case 11:return K.kx=h.U,Q.state=7,u=lz(Q.logger,function(H){return function(){var I=H.kx;var c=H.Pj;var O=H.fD;if(Xt(I,4))c.dispose(),c=new Ik(Q.logger,Xt(I,4),kL(I,2)*1E3);else if(kL(I,3)){if(!O)throw new lC(4,"PMD:Undefined");var T=
O(dl(Or(I,1)));if(!(T instanceof Function))throw new lC(16,"APF:Failed");O=kL(I,2)*1E3;I=new qQ(Q.logger,T,kL(I,3),O);g.y(I,c);Q.S=Math.floor((Date.now()+O)/1E3);c=I}else c.dispose(),c=new Bx(Q.logger,dl(Or(I,1)),kL(I,2)*1E3);return c}}(K),"i"),v=Y=void 0,(v=(Y=Q).W_)==null||v.call(Y,dl(Or(K.kx,1))),Q.state=8,h.return(u);
case 5:J=g.Jv(h);W=J instanceof lC?J:J instanceof O1?new lC(20,"WTO:Disposed",J):J instanceof hr?new lC(11,"EBH:Error",J):new lC(12,"BSO:Unknown",J);Q.reportError(W);a:{if(J instanceof hr)switch(J.code){case 2:case 13:case 14:case 4:var G=!0;break a;default:G=!1;break a}G=J instanceof lC?J.code!==20:!0}if(!G)throw W;return g.A(h,FA(Q,D.getValue()),12);case 12:g.Jg(D);case 3:K={Xr:void 0,kx:void 0,Pj:void 0,fD:void 0};l++;h.kf(2);break;case 4:throw W;}})};
FA=function(Q,W){W=Y7z(W);g.y(Q,W);W.start();return W.S};
Voa=function(Q,W,x){return Promise.race([W,FA(Q,12E4).then(function(){return Promise.reject(x)})])};
vXF=function(Q){var W,x,D;g.U(function(K){switch(K.B){case 1:return W=void 0,g.P5(K,5),g.A(K,Pi5(Q),7);case 7:W=K.U;g.Cs(K,6);break;case 5:x=g.Jv(K);if(Q.B){Q.logger.Av(13);K.kf(0);break}Q.logger.Av(14);W=new mA(Q.logger,x instanceof lC?x:new lC(14,"SOM:Init",x instanceof Error?x:Error(String(x))));case 6:return D=void 0,(D=Q.B)==null||D.dispose(),Q.B=W,Q.D.resolve(),g.P5(K,8),g.A(K,Q.B.U.promise,10);case 10:g.Cs(K,1);break;case 8:g.Jv(K),K.kf(0)}})};
Cih=function(Q,W){W.P3&&!Q.cache&&Q.VX(Math.min(W.P3.cO3,150))};
Jrl=function(Q){var W={};g.o3(Q,function(x){var D=x.event,K=W[D];W.hasOwnProperty(D)?K!==null&&(x.yI(K)||(W[D]=null)):W[D]=x});
FaO(Q,function(x){return W[x.event]===null})};
tF=function(){this.l6=0;this.B=!1;this.U=-1;this.PR=!1;this.II=0};
Q5=function(){this.U=null;this.B=!1};
WC=function(Q){Q5.call(this);this.N=Q};
xG=function(){Q5.call(this)};
Dm=function(){Q5.call(this)};
Km=function(){this.B={};this.U=!0;this.D={}};
lR=function(Q,W,x){Q.B[W]||(Q.B[W]=new WC(x));return Q.B[W]};
p_4=function(Q){Q.B.queryid||(Q.B.queryid=new Dm)};
ju=function(Q,W,x){(Q=Q.B[W])&&Q.D(x)};
M2=function(Q,W){if(g.hO(Q.D,W))return Q.D[W];if(Q=Q.B[W])return Q.getValue()};
RX=function(Q){var W={},x=g.Vp(Q.B,function(D){return D.B});
g.nC(x,function(D,K){D=Q.D[K]!==void 0?String(Q.D[K]):D.B&&D.U!==null?String(D.U):"";D.length>0&&(W[K]=D)},Q);
return W};
hV1=function(Q){Q=RX(Q);var W=[];g.nC(Q,function(x,D){D in Object.prototype||typeof x!="undefined"&&W.push([D,":",x].join(""))});
return W};
GDh=function(Q){lR(Q,"od",ar2);lR(Q,"opac",wu).B=!0;lR(Q,"sbeos",wu).B=!0;lR(Q,"prf",wu).B=!0;lR(Q,"mwt",wu).B=!0;lR(Q,"iogeo",wu)};
dU4=function(){this.B=this.D7=null};
Su=function(){};
sW=function(){if(!bR())throw Error();};
bR=function(){return!(!zk||!zk.performance)};
kG=function(Q){return Q?Q.passive&&irn()?Q:Q.capture||!1:!1};
Xn=function(Q,W,x,D){return Q.addEventListener?(Q.addEventListener(W,x,kG(D)),!0):!1};
oX=function(Q){return Q.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[Q.visibilityState||Q.webkitVisibilityState||Q.mozVisibilityState||""]||0};
Arh=function(){};
HrF=function(){return(Hu||Us)&&qk?qk.mobile:!uR()&&($F("iPod")||$F("iPhone")||$F("Android")||$F("IEMobile"))};
uR=function(){return(Hu||Us)&&qk?!qk.mobile&&($F("iPad")||$F("Android")||$F("Silk")):$F("iPad")||$F("Android")&&!$F("Mobile")||$F("Silk")};
YG=function(Q){try{return!!Q&&Q.location.href!=null&&l74(Q,"foo")}catch(W){return!1}};
nm=function(Q,W){if(Q)for(var x in Q)Object.prototype.hasOwnProperty.call(Q,x)&&W(Q[x],x,Q)};
q7h=function(){var Q=[];nm(UUh,function(W){Q.push(W)});
return Q};
Bvs=function(Q){var W,x;return(x=(W=/https?:\/\/[^\/]+/.exec(Q))==null?void 0:W[0])!=null?x:""};
mUl=function(){var Q=$UO("IFRAME"),W={};g.o3(Irh(),function(x){Q.sandbox&&Q.sandbox.supports&&Q.sandbox.supports(x)&&(W[x]=!0)});
return W};
$UO=function(Q,W){W=W===void 0?document:W;return W.createElement(String(Q).toLowerCase())};
Nv5=function(Q){for(var W=Q;Q&&Q!=Q.parent;)Q=Q.parent,YG(Q)&&(W=Q);return W};
eVn=function(Q){Q=Q||V5();for(var W=new crD(g.Nz.location.href,!1),x=null,D=Q.length-1,K=D;K>=0;--K){var l=Q[K];!x&&gXn.test(l.url)&&(x=l);if(l.url&&!l.Lx){W=l;break}}K=null;l=Q.length&&Q[D].url;W.depth!=0&&l&&(K=Q[D]);return new yrD(W,K,x)};
V5=function(){var Q=g.Nz,W=[],x=null;do{var D=Q;if(YG(D)){var K=D.location.href;x=D.document&&D.document.referrer||null}else K=x,x=null;W.push(new crD(K||""));try{Q=D.parent}catch(l){Q=null}}while(Q&&D!=Q);D=0;for(Q=W.length-1;D<=Q;++D)W[D].depth=Q-D;D=g.Nz;if(D.location&&D.location.ancestorOrigins&&D.location.ancestorOrigins.length==W.length-1)for(Q=1;Q<W.length;++Q)K=W[Q],K.url||(K.url=D.location.ancestorOrigins[Q-1]||"",K.Lx=!0);return W};
yrD=function(Q,W,x){this.B=Q;this.U=W;this.D=x};
crD=function(Q,W){this.url=Q;this.Lx=!!W;this.depth=null};
PC=function(){this.D="&";this.U={};this.N=0;this.B=[]};
vC=function(Q,W){var x={};x[Q]=W;return[x]};
fr1=function(Q,W,x,D,K){var l=[];nm(Q,function(M,w){(M=Cm(M,W,x,D,K))&&l.push(w+"="+M)});
return l.join(W)};
Cm=function(Q,W,x,D,K){if(Q==null)return"";W=W||"&";x=x||",$";typeof x==="string"&&(x=x.split(""));if(Q instanceof Array){if(D||(D=0),D<x.length){for(var l=[],M=0;M<Q.length;M++)l.push(Cm(Q[M],W,x,D+1,K));return l.join(x[D])}}else if(typeof Q==="object")return K||(K=0),K<2?encodeURIComponent(fr1(Q,W,x,D,K+1)):"...";return encodeURIComponent(String(Q))};
Zra=function(Q){var W=1,x;for(x in Q.U)x.length>W&&(W=x.length);return 3997-W-Q.D.length-1};
J8=function(Q,W){this.B=Q;this.depth=W};
rr5=function(){function Q(w,S){return w==null?S:w}
var W=V5(),x=Math.max(W.length-1,0),D=eVn(W);W=D.B;var K=D.U,l=D.D,M=[];l&&M.push(new J8([l.url,l.Lx?2:0],Q(l.depth,1)));K&&K!=l&&M.push(new J8([K.url,2],0));W.url&&W!=l&&M.push(new J8([W.url,0],Q(W.depth,x)));D=g.pm(M,function(w,S){return M.slice(0,M.length-S)});
!W.url||(l||K)&&W!=l||(K=Bvs(W.url))&&D.push([new J8([K,1],Q(W.depth,x))]);D.push([]);return g.pm(D,function(w){return Ld2(x,w)})};
Ld2=function(Q,W){g.h8(W,function(K){return K.depth>=0});
var x=aX(W,function(K,l){return Math.max(K,l.depth)},-1),D=Dk5(x+2);
D[0]=Q;g.o3(W,function(K){return D[K.depth+1]=K.B});
return D};
Tv2=function(){var Q=Q===void 0?rr5():Q;return Q.map(function(W){return Cm(W)})};
Or2=function(Q){var W=!1;W=W===void 0?!1:W;zk.google_image_requests||(zk.google_image_requests=[]);var x=$UO("IMG",zk.document);W&&(x.attributionSrc="");x.src=Q;zk.google_image_requests.push(x)};
Gk=function(Q){var W="Ur";if(Q.Ur&&Q.hasOwnProperty(W))return Q.Ur;var x=new Q;Q.Ur=x;Q.hasOwnProperty(W);return x};
du=function(){this.U=new Arh;this.B=bR()?new sW:new Su};
EXD=function(){iR();var Q=zk.document;return!!(Q&&Q.body&&Q.body.getBoundingClientRect&&typeof zk.setInterval==="function"&&typeof zk.clearInterval==="function"&&typeof zk.setTimeout==="function"&&typeof zk.clearTimeout==="function")};
Fd5=function(){iR();return Tv2()};
to5=function(){};
iR=function(){var Q=Gk(to5);if(!Q.B){if(!zk)throw Error("Context has not been set and window is undefined.");Q.B=Gk(du)}return Q.B};
A8=function(Q){this.pn=qa(Q)};
Qkh=function(Q){this.D=Q;this.B=-1;this.U=this.N=0};
HC=function(Q,W){return function(){var x=g.i2.apply(0,arguments);if(Q.B>-1)return W.apply(null,g.C(x));try{return Q.B=Q.D.B.now(),W.apply(null,g.C(x))}finally{Q.N+=Q.D.B.now()-Q.B,Q.B=-1,Q.U+=1}}};
WAh=function(Q,W){this.U=Q;this.D=W;this.B=new Qkh(Q)};
xQl=function(){this.B={}};
KAz=function(){var Q=UW().flags,W=DQO;Q=Q.B[W.key];if(W.valueType==="proto"){try{var x=JSON.parse(Q);if(Array.isArray(x))return x}catch(D){}return W.defaultValue}return typeof Q===typeof W.defaultValue?Q:W.defaultValue};
Rnv=function(){this.D=void 0;this.U=this.X=0;this.L=-1;this.DX=new Km;lR(this.DX,"mv",l4F).B=!0;lR(this.DX,"omid",wu);lR(this.DX,"epoh",wu).B=!0;lR(this.DX,"epph",wu).B=!0;lR(this.DX,"umt",wu).B=!0;lR(this.DX,"phel",wu).B=!0;lR(this.DX,"phell",wu).B=!0;lR(this.DX,"oseid",jkD).B=!0;var Q=this.DX;Q.B.sloi||(Q.B.sloi=new xG);Q.B.sloi.B=!0;lR(this.DX,"mm",q2);lR(this.DX,"ovms",MWl).B=!0;lR(this.DX,"xdi",wu).B=!0;lR(this.DX,"amp",wu).B=!0;lR(this.DX,"prf",wu).B=!0;lR(this.DX,"gtx",wu).B=!0;lR(this.DX,
"mvp_lv",wu).B=!0;lR(this.DX,"ssmol",wu).B=!0;lR(this.DX,"fmd",wu).B=!0;lR(this.DX,"gen204simple",wu);this.B=new WAh(iR(),this.DX);this.N=!1;this.flags=new xQl};
UW=function(){return Gk(Rnv)};
wx5=function(Q,W,x,D){if(Math.random()<(D||Q.B))try{if(x instanceof PC)var K=x;else K=new PC,nm(x,function(M,w){var S=K,b=S.N++;M=vC(w,M);S.B.push(b);S.U[b]=M});
var l=K.cV(Q.U,"pagead2.googlesyndication.com","/pagead/gen_204?id="+W+"&");l&&(iR(),Or2(l))}catch(M){}};
SOQ=function(Q,W,x){x=x===void 0?{}:x;this.error=Q;this.context=W.context;this.msg=W.message||"";this.id=W.id||"jserror";this.meta=x};
bta=function(){var Q=Q===void 0?g.Nz:Q;return(Q=Q.performance)&&Q.now&&Q.timing?Math.floor(Q.now()+Q.timing.navigationStart):g.QA()};
skl=function(){var Q=Q===void 0?g.Nz:Q;return(Q=Q.performance)&&Q.now?Q.now():null};
zns=function(Q,W,x){this.label=Q;this.type=W;this.value=x;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
$G=function(){var Q=window;this.events=[];this.U=Q||g.Nz;var W=null;Q&&(Q.google_js_reporting_queue=Q.google_js_reporting_queue||[],this.events=Q.google_js_reporting_queue,W=Q.google_measure_js_timing);this.B=BC()||(W!=null?W:Math.random()<1)};
k2l=function(Q){Q&&IX&&BC()&&(IX.clearMarks("goog_"+Q.label+"_"+Q.uniqueId+"_start"),IX.clearMarks("goog_"+Q.label+"_"+Q.uniqueId+"_end"))};
Xxs=function(){var Q=mn;this.B=N2;this.XW="jserror";this.aP=!0;this.mI=null;this.U=this.Sj;this.rE=Q===void 0?null:Q};
o7D=function(Q,W,x){var D=cC;return HC(UW().B.B,function(){try{if(D.rE&&D.rE.B){var K=D.rE.start(Q.toString(),3);var l=W();D.rE.end(K)}else l=W()}catch(w){var M=D.aP;try{k2l(K),M=D.U(Q,new gu(y5(w)),void 0,x)}catch(S){D.Sj(217,S)}if(!M)throw w;}return l})()};
eu=function(Q,W,x,D){return HC(UW().B.B,function(){var K=g.i2.apply(0,arguments);return o7D(Q,function(){return W.apply(x,K)},D)})};
y5=function(Q){var W=Q.toString();Q.name&&W.indexOf(Q.name)==-1&&(W+=": "+Q.name);Q.message&&W.indexOf(Q.message)==-1&&(W+=": "+Q.message);if(Q.stack)a:{Q=Q.stack;var x=W;try{Q.indexOf(x)==-1&&(Q=x+"\n"+Q);for(var D;Q!=D;)D=Q,Q=Q.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");W=Q.replace(/\n */g,"\n");break a}catch(K){W=x;break a}W=void 0}return W};
gu=function(Q){SOQ.call(this,Error(Q),{message:Q})};
uTv=function(){zk&&typeof zk.google_measure_js_timing!="undefined"&&(zk.google_measure_js_timing||mn.disable())};
YO2=function(Q){cC.mI=function(W){g.o3(Q,function(x){x(W)})}};
n7a=function(Q,W){return o7D(Q,W)};
fm=function(Q,W){return eu(Q,W)};
Zm=function(Q,W,x,D){cC.Sj(Q,W,x,D)};
Lm=function(){return Date.now()-VW2};
Pza=function(){var Q=UW().D,W=ru>=0?Lm()-ru:-1,x=Tk?Lm()-OW:-1,D=EW>=0?Lm()-EW:-1;if(Q==947190542)return 100;if(Q==79463069)return 200;Q=[2E3,4E3];var K=[250,500,1E3];Zm(637,Error(),.001);var l=W;x!=-1&&x<W&&(l=x);for(W=0;W<Q.length;++W)if(l<Q[W]){var M=K[W];break}M===void 0&&(M=K[Q.length]);return D!=-1&&D>1500&&D<4E3?500:M};
Fn=function(Q,W,x,D){this.top=Q;this.right=W;this.bottom=x;this.left=D};
t8=function(Q){return Q.right-Q.left};
QM=function(Q,W){return Q==W?!0:Q&&W?Q.top==W.top&&Q.right==W.right&&Q.bottom==W.bottom&&Q.left==W.left:!1};
WR=function(Q,W,x){W instanceof g.k6?(Q.left+=W.x,Q.right+=W.x,Q.top+=W.y,Q.bottom+=W.y):(Q.left+=W,Q.right+=W,typeof x==="number"&&(Q.top+=x,Q.bottom+=x));return Q};
xg=function(Q,W,x){var D=new Fn(0,0,0,0);this.time=Q;this.volume=null;this.D=W;this.B=D;this.U=x};
Di=function(Q,W,x,D,K,l,M,w){this.N=Q;this.G=W;this.D=x;this.X=D;this.B=K;this.L=l;this.U=M;this.S=w};
Cz5=function(Q){var W=Q!==Q.top,x=Q.top===Nv5(Q),D=-1,K=0;if(W&&x&&Q.top.mraid){D=3;var l=Q.top.mraid}else D=(l=Q.mraid)?W?x?2:1:0:-1;l&&(l.IS_GMA_SDK||(K=2),f3l(v7n,function(M){return typeof l[M]==="function"})||(K=1));
return{Oc:l,compatibility:K,B1f:D}};
JG2=function(){var Q=window.document;return Q&&typeof Q.elementFromPoint==="function"};
pxz=function(Q,W,x){Q&&W!==null&&W!=W.top&&(W=W.top);try{return(x===void 0?0:x)?(new g.oZ(W.innerWidth,W.innerHeight)).round():jpv(W||window).round()}catch(D){return new g.oZ(-12245933,-12245933)}};
Kp=function(Q,W,x){try{Q&&(W=W.top);var D=pxz(Q,W,x),K=D.height,l=D.width;if(l===-12245933)return new Fn(l,l,l,l);var M=R81(cZ(W.document).B),w=M.x,S=M.y;return new Fn(S,w+l,S+K,w)}catch(b){return new Fn(-12245933,-12245933,-12245933,-12245933)}};
g.lq=function(Q,W,x,D){this.left=Q;this.top=W;this.width=x;this.height=D};
MI=function(Q,W){return Q==W?!0:Q&&W?Q.left==W.left&&Q.width==W.width&&Q.top==W.top&&Q.height==W.height:!1};
g.SZ=function(Q,W,x){if(typeof W==="string")(W=wM(Q,W))&&(Q.style[W]=x);else for(var D in W){x=Q;var K=W[D],l=wM(x,D);l&&(x.style[l]=K)}};
wM=function(Q,W){var x=hnn[W];if(!x){var D=I34(W);x=D;Q.style[D]===void 0&&(D=(g.O6?"Webkit":bq?"Moz":null)+Nfv(D),Q.style[D]!==void 0&&(x=D));hnn[W]=x}return x};
g.sB=function(Q,W){var x=Q.style[I34(W)];return typeof x!=="undefined"?x:Q.style[wM(Q,W)]||""};
zJ=function(Q,W){var x=N9(Q);return x.defaultView&&x.defaultView.getComputedStyle&&(Q=x.defaultView.getComputedStyle(Q,null))?Q[W]||Q.getPropertyValue(W)||"":""};
kg=function(Q,W){return zJ(Q,W)||(Q.currentStyle?Q.currentStyle[W]:null)||Q.style&&Q.style[W]};
g.oB=function(Q,W,x){if(W instanceof g.k6){var D=W.x;W=W.y}else D=W,W=x;Q.style.left=g.X9(D,!1);Q.style.top=g.X9(W,!1)};
uq=function(Q){try{return Q.getBoundingClientRect()}catch(W){return{left:0,top:0,right:0,bottom:0}}};
a4F=function(Q){var W=N9(Q),x=kg(Q,"position"),D=x=="fixed"||x=="absolute";for(Q=Q.parentNode;Q&&Q!=W;Q=Q.parentNode)if(Q.nodeType==11&&Q.host&&(Q=Q.host),x=kg(Q,"position"),D=D&&x=="static"&&Q!=W.documentElement&&Q!=W.body,!D&&(Q.scrollWidth>Q.clientWidth||Q.scrollHeight>Q.clientHeight||x=="fixed"||x=="absolute"||x=="relative"))return Q;return null};
g.Yg=function(Q){var W=N9(Q),x=new g.k6(0,0);if(Q==(W?N9(W):document).documentElement)return x;Q=uq(Q);W=R81(cZ(W).B);x.x=Q.left+W.x;x.y=Q.top+W.y;return x};
dQ5=function(Q,W){var x=new g.k6(0,0),D=E6(N9(Q));if(!l74(D,"parent"))return x;do{var K=D==W?g.Yg(Q):G25(Q);x.x+=K.x;x.y+=K.y}while(D&&D!=W&&D!=D.parent&&(Q=D.frameElement)&&(D=D.parent));return x};
g.np=function(Q,W){Q=it2(Q);W=it2(W);return new g.k6(Q.x-W.x,Q.y-W.y)};
G25=function(Q){Q=uq(Q);return new g.k6(Q.left,Q.top)};
it2=function(Q){if(Q.nodeType==1)return G25(Q);Q=Q.changedTouches?Q.changedTouches[0]:Q;return new g.k6(Q.clientX,Q.clientY)};
g.VM=function(Q,W,x){if(W instanceof g.oZ)x=W.height,W=W.width;else if(x==void 0)throw Error("missing height argument");Q.style.width=g.X9(W,!0);Q.style.height=g.X9(x,!0)};
g.X9=function(Q,W){typeof Q=="number"&&(Q=(W?Math.round(Q):Q)+"px");return Q};
g.PR=function(Q){var W=AGD;if(kg(Q,"display")!="none")return W(Q);var x=Q.style,D=x.display,K=x.visibility,l=x.position;x.visibility="hidden";x.position="absolute";x.display="inline";Q=W(Q);x.display=D;x.position=l;x.visibility=K;return Q};
AGD=function(Q){var W=Q.offsetWidth,x=Q.offsetHeight,D=g.O6&&!W&&!x;return(W===void 0||D)&&Q.getBoundingClientRect?(Q=uq(Q),new g.oZ(Q.right-Q.left,Q.bottom-Q.top)):new g.oZ(W,x)};
g.vR=function(Q,W){Q.style.display=W?"":"none"};
Cp=function(Q,W){W=Math.pow(10,W);return Math.floor(Q*W)/W};
Htn=function(Q){return new Fn(Q.top,Q.right,Q.bottom,Q.left)};
UQz=function(Q){var W=Q.top||0,x=Q.left||0;return new Fn(W,x+(Q.width||0),W+(Q.height||0),x)};
JP=function(Q){return Q!=null&&Q>=0&&Q<=1};
qOz=function(){var Q=g.Ae();return Q?dM("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(W){return aq(Q,W)})||aq(Q,"OMI/")&&!aq(Q,"XiaoMi/")?!0:aq(Q,"Presto")&&aq(Q,"Linux")&&!aq(Q,"X11")&&!aq(Q,"Android")&&!aq(Q,"Mobi"):!1};
B8z=function(){this.D=!YG(zk.top);this.isMobileDevice=uR()||HrF();var Q=V5();this.domain=Q.length>0&&Q[Q.length-1]!=null&&Q[Q.length-1].url!=null?g.$X(Q[Q.length-1].url)||"":"";this.B=new Fn(0,0,0,0);this.N=new g.oZ(0,0);this.L=new g.oZ(0,0);this.G=new Fn(0,0,0,0);this.frameOffset=new g.k6(0,0);this.X=0;this.S=!1;this.U=!(!zk||!Cz5(zk).Oc);this.update(zk)};
$Q2=function(Q,W){W&&W.screen&&(Q.N=new g.oZ(W.screen.width,W.screen.height))};
I4a=function(Q,W){a:{var x=Q.B?new g.oZ(t8(Q.B),Q.B.getHeight()):new g.oZ(0,0);W=W===void 0?zk:W;W!==null&&W!=W.top&&(W=W.top);var D=0,K=0;try{var l=W.document,M=l.body,w=l.documentElement;if(l.compatMode=="CSS1Compat"&&w.scrollHeight)D=w.scrollHeight!=x.height?w.scrollHeight:w.offsetHeight,K=w.scrollWidth!=x.width?w.scrollWidth:w.offsetWidth;else{var S=w.scrollHeight,b=w.scrollWidth,z=w.offsetHeight,k=w.offsetWidth;w.clientHeight!=z&&(S=M.scrollHeight,b=M.scrollWidth,z=M.offsetHeight,k=M.offsetWidth);
S>x.height?S>z?(D=S,K=b):(D=z,K=k):S<z?(D=S,K=b):(D=z,K=k)}var X=new g.oZ(K,D);break a}catch(u){X=new g.oZ(-12245933,-12245933);break a}X=void 0}Q.L=X};
HR=function(){var Q=iq();if(Q.X>0||Q.S)return!0;Q=iR().U.isVisible();var W=oX(AP)===0;return Q||W};
iq=function(){return Gk(B8z)};
UB=function(Q){this.D=Q;this.U=0;this.B=null};
qI=function(Q,W,x){this.D=Q;this.g7=x===void 0?"na":x;this.L=[];this.isInitialized=!1;this.N=new xg(-1,!0,this);this.B=this;this.S=W;this.uj=this.T=!1;this.fS="uk";this.KS=!1;this.X=!0};
BR=function(Q,W){g.FH(Q.L,W)||(Q.L.push(W),W.Uq(Q.B),W.WO(Q.N),W.WF()&&(Q.T=!0))};
mQa=function(Q){Q=Q.B;Q.W6();Q.ih();var W=iq();W.G=Kp(!1,Q.D,W.isMobileDevice);I4a(iq(),Q.D);Q.N.B=Q.Dy()};
N85=function(Q){Q.T=Q.L.length?dM(Q.L,function(W){return W.WF()}):!1};
cGO=function(Q){var W=g.DX(Q.L);g.o3(W,function(x){x.WO(Q.N)})};
$g=function(Q){var W=g.DX(Q.L);g.o3(W,function(x){x.Uq(Q.B)});
Q.B!=Q||cGO(Q)};
IB=function(Q,W,x,D){this.element=Q;this.B=new Fn(0,0,0,0);this.D=null;this.X=new Fn(0,0,0,0);this.U=W;this.DX=x;this.KS=D;this.F3=!1;this.timestamp=-1;this.T=new Di(W.N,this.element,this.B,new Fn(0,0,0,0),0,0,Lm(),0);this.L=void 0};
g72=function(Q,W){return Q.L?new Fn(Math.max(W.top+Q.L.top,W.top),Math.min(W.left+Q.L.right,W.right),Math.min(W.top+Q.L.bottom,W.bottom),Math.max(W.left+Q.L.left,W.left)):W.clone()};
mf=function(Q){this.L=!1;this.B=Q;this.N=function(){}};
yG1=function(Q,W,x){this.D=x===void 0?0:x;this.U=Q;this.B=W==null?"":W};
env=function(Q){switch(Math.trunc(Q.D)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
f4Q=function(Q,W){return Q.D<W.D?!0:Q.D>W.D?!1:Q.U<W.U?!0:Q.U>W.U?!1:typeof Q.B<typeof W.B?!0:typeof Q.B>typeof W.B?!1:Q.B<W.B};
NI=function(){this.D=0;this.B=[];this.U=!1};
Zt5=function(Q,W){(0,g.o3)(W.B,function(x){Q.add(x.U,x.B,env(x))})};
cR=function(Q,W){var x=x===void 0?0:x;var D=D===void 0?!0:D;nm(W,function(K,l){D&&K===void 0||Q.add(l,K,x)});
return Q};
gM=function(Q){var W=LA5;Q.U&&(g.bZ(Q.B,function(x,D){return f4Q(D,x)?1:f4Q(x,D)?-1:0}),Q.U=!1);
return aX(Q.B,function(x,D){D=W(D);return""+x+(x!=""&&D!=""?"&":"")+D},"")};
LA5=function(Q){var W=Q.U;Q=Q.B;return Q===""?W:typeof Q==="boolean"?Q?W:"":Array.isArray(Q)?Q.length===0?W:W+"="+Q.join():W+"="+(g.FH(["mtos","tos","p"],W)?Q:encodeURIComponent(Q))};
rGQ=function(Q){var W=W===void 0?!0:W;this.B=new NI;Q!==void 0&&Zt5(this.B,Q);W&&this.B.add("v","unreleased",-16)};
T8D=function(Q){var W=[],x=[];g.nC(Q,function(D,K){if(!(K in Object.prototype)&&typeof D!="undefined")switch(Array.isArray(D)&&(D=D.join(",")),D=[K,"=",D].join(""),K){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":W.unshift(D);break;case "req":case "url":case "referrer":case "iframe_loc":x.push(D);break;default:W.push(D)}});
return W.concat(x)};
Otz=function(Q){Q=Q.toString();iR();Or2(Q)};
E71=function(){this.B=0};
FAl=function(Q,W,x){(0,g.o3)(Q.D,function(D){var K=Q.B;if(!D.B&&(D.D(W,x),D.N())){D.B=!0;var l=D.U(),M=new NI;M.add("id","av-js");M.add("type","verif");M.add("vtype",D.L);D=Gk(E71);M.add("i",D.B++);M.add("adk",K);cR(M,l);K=new rGQ(M);Otz(K)}})};
yM=function(){this.U=this.D=this.N=this.B=0};
eZ=function(Q){this.U=Q=Q===void 0?tWl:Q;this.B=g.pm(this.U,function(){return new yM})};
fp=function(Q,W){return QHD(Q,function(x){return x.B},W===void 0?!0:W)};
Lp=function(Q,W){return Zi(Q,W,function(x){return x.B})};
W6s=function(Q,W){return QHD(Q,function(x){return x.D},W===void 0?!0:W)};
rM=function(Q,W){return Zi(Q,W,function(x){return x.D})};
TJ=function(Q,W){return Zi(Q,W,function(x){return x.U})};
xMn=function(Q){g.o3(Q.B,function(W){W.U=0})};
QHD=function(Q,W,x){Q=g.pm(Q.B,function(D){return W(D)});
return x?Q:DM4(Q)};
Zi=function(Q,W,x){var D=g.Es(Q.U,function(K){return W<=K});
return D==-1?0:x(Q.B[D])};
DM4=function(Q){return g.pm(Q,function(W,x,D){return x>0?D[x]-D[x-1]:D[x]})};
OB=function(){this.U=new eZ;this.g7=this.X3=0;this.s3=new yM;this.pS=this.G=-1;this.Pt=1E3;this.SZ=new eZ([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.fS=this.F3=-1};
EB=function(Q,W){return W6s(Q.U,W===void 0?!0:W)};
F9=function(Q,W,x,D){var K=K===void 0?!1:K;x=eu(D,x);Xn(Q,W,x,{capture:K})};
Qf=function(Q,W){W=tP(W);return W===0?0:tP(Q)/W};
tP=function(Q){return Math.max(Q.bottom-Q.top,0)*Math.max(Q.right-Q.left,0)};
K6D=function(Q,W){if(!Q||!W)return!1;for(var x=0;Q!==null&&x++<100;){if(Q===W)return!0;try{if(Q=Q.parentElement||Q){var D=N9(Q),K=D&&E6(D),l=K&&K.frameElement;l&&(Q=l)}}catch(M){break}}return!1};
lFF=function(Q,W,x){if(!Q||!W)return!1;W=WR(Q.clone(),-W.left,-W.top);Q=(W.left+W.right)/2;W=(W.top+W.bottom)/2;YG(window.top)&&window.top&&window.top.document&&(window=window.top);if(!JG2())return!1;Q=window.document.elementFromPoint(Q,W);if(!Q)return!1;W=(W=(W=N9(x))&&W.defaultView&&W.defaultView.frameElement)&&K6D(W,Q);var D=Q===x;Q=!D&&Q&&Rw(Q,function(K){return K===x});
return!(W||D||Q)};
jHv=function(Q,W,x,D){return iq().D?!1:t8(Q)<=0||Q.getHeight()<=0?!0:x&&D?n7a(208,function(){return lFF(Q,W,x)}):!1};
WF=function(Q,W,x){g.N.call(this);this.position=Mrz.clone();this.Fz=this.uK();this.Pm=-2;this.timeCreated=Date.now();this.pw=-1;this.LY=W;this.tH=null;this.i9=!1;this.RM=null;this.opacity=-1;this.requestSource=x;this.H35=!1;this.aq=function(){};
this.gp=function(){};
this.qq=new dU4;this.qq.D7=Q;this.qq.B=Q;this.Vu=!1;this.BR={Uk:null,B_:null};this.Gp=!0;this.XL=null;this.ll=this.VZf=!1;UW().X++;this.bf=this.N2();this.a9=-1;this.vV=null;this.hasCompleted=this.tZ9=!1;this.DX=new Km;GDh(this.DX);R_O(this);this.requestSource==1?ju(this.DX,"od",1):ju(this.DX,"od",0)};
R_O=function(Q){Q=Q.qq.D7;var W;if(W=Q&&Q.getAttribute)W=/-[a-z]/.test("googleAvInapp")?!1:w0h&&Q.dataset?"googleAvInapp"in Q.dataset:Q.hasAttribute?Q.hasAttribute("data-"+man()):!!Q.getAttribute("data-"+man());W&&(iq().U=!0)};
xk=function(Q,W){W!=Q.ll&&(Q.ll=W,Q=iq(),W?Q.X++:Q.X>0&&Q.X--)};
S1O=function(Q,W){if(Q.vV){if(W.getName()===Q.vV.getName())return;Q.vV.dispose();Q.vV=null}W=W.create(Q.qq.B,Q.DX,Q.WF());if(W=W!=null&&W.observe()?W:null)Q.vV=W};
b4s=function(Q,W,x){if(!Q.tH||Q.LY==-1||W.U===-1||Q.tH.U===-1)return 0;Q=W.U-Q.tH.U;return Q>x?0:Q};
sHD=function(Q,W,x){if(Q.vV){Q.vV.Kf();var D=Q.vV.T,K=D.N,l=K.B;if(D.X!=null){var M=D.D;Q.RM=new g.k6(M.left-l.left,M.top-l.top)}l=Q.X8()?Math.max(D.B,D.L):D.B;M={};K.volume!==null&&(M.volume=K.volume);K=Q.Ve(D);Q.tH=D;Q.Yf(l,W,x,!1,M,K,D.S)}};
z_s=function(Q){if(Q.i9&&Q.XL){var W=M2(Q.DX,"od")==1,x=iq().B,D=Q.XL,K=Q.vV?Q.vV.getName():"ns",l=Q.RM,M=new g.oZ(t8(x),x.getHeight());x=Q.X8();Q={lB7:K,RM:l,FPt:M,X8:x,l6:Q.bf.l6,pK7:W};if(W=D.U){W.Kf();K=W.T;l=K.N.B;var w=M=null;K.X!=null&&l&&(M=K.D,M=new g.k6(M.left-l.left,M.top-l.top),w=new g.oZ(l.right-l.left,l.bottom-l.top));K=x?Math.max(K.B,K.L):K.B;x={lB7:W.getName(),RM:M,FPt:w,X8:x,pK7:!1,l6:K}}else x=null;x&&FAl(D,Q,x)}};
kYF=function(Q,W,x){W&&(Q.aq=W);x&&(Q.gp=x)};
g.DG=function(){};
g.KZ=function(Q){return{value:Q,done:!1}};
X0s=function(){this.N=this.B=this.D=this.U=this.L=0};
oll=function(Q){var W={};var x=g.QA()-Q.L;W=(W.ptlt=x,W);(x=Q.U)&&(W.pnk=x);(x=Q.D)&&(W.pnc=x);(x=Q.N)&&(W.pnmm=x);(Q=Q.B)&&(W.pns=Q);return W};
uAs=function(){tF.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
lx=function(Q){return JP(Q.volume)&&Q.volume>0};
jO=function(Q,W,x,D){x=x===void 0?!0:x;D=D===void 0?function(){return!0}:D;
return function(K){var l=K[Q];if(Array.isArray(l)&&D(K))return Y1n(l,W,x)}};
M7=function(Q,W){return function(x){return W(x)?x[Q]:void 0}};
nl5=function(Q){return function(W){for(var x=0;x<Q.length;x++)if(Q[x]===W.e||Q[x]===void 0&&!W.hasOwnProperty("e"))return!0;return!1}};
Y1n=function(Q,W,x){return x===void 0||x?g.Rv(Q,function(D,K){return g.FH(W,K)}):g.pm(W,function(D,K,l){return Q.slice(K>0?l[K-1]+1:0,D+1).reduce(function(M,w){return M+w},0)})};
Vra=function(){this.U=this.B=""};
PT2=function(){};
wJ=function(Q,W){var x={};if(Q!==void 0)if(W!=null)for(var D in W){var K=W[D];D in Object.prototype||K!=null&&(x[D]=typeof K==="function"?K(Q):Q[K])}else g.q9(x,Q);return gM(cR(new NI,x))};
vl4=function(){var Q={};this.U=(Q.vs=[1,0],Q.vw=[0,1],Q.am=[2,2],Q.a=[4,4],Q.f=[8,8],Q.bm=[16,16],Q.b=[32,32],Q.avw=[0,64],Q.avs=[64,0],Q.pv=[256,256],Q.gdr=[0,512],Q.p=[0,1024],Q.r=[0,2048],Q.m=[0,4096],Q.um=[0,8192],Q.ef=[0,16384],Q.s=[0,32768],Q.pmx=[0,16777216],Q.mut=[33554432,33554432],Q.umutb=[67108864,67108864],Q.tvoff=[134217728,134217728],Q);this.B={};for(var W in this.U)this.U[W][1]>0&&(this.B[W]=0);this.D=0};
SO=function(Q,W){var x=Q.U[W],D=x[1];Q.D+=x[0];D>0&&Q.B[W]==0&&(Q.B[W]=1)};
CTl=function(Q){var W=g.pC(Q.U),x=0,D;for(D in Q.B)g.FH(W,D)&&Q.B[D]==1&&(x+=Q.U[D][1],Q.B[D]=2);return x};
JF5=function(Q){var W=0,x;for(x in Q.B){var D=Q.B[x];if(D==1||D==2)W+=Q.U[x][1]}return W};
bx=function(){this.B=this.U=0};
sa=function(){OB.call(this);this.D=new yM;this.eZ=this.T=this.KS=0;this.S=-1;this.tf=new yM;this.L=new yM;this.B=new eZ;this.X=this.N=-1;this.uj=new yM;this.Pt=2E3;this.LS=new bx;this.I5=new bx;this.O3=new bx};
zN=function(Q,W,x){var D=Q.eZ;Tk||x||Q.S==-1||(D+=W-Q.S);return D};
p0h=function(){this.D=!1};
kk=function(Q,W){this.D=!1;this.N=Q;this.T=W;this.L=0};
XZ=function(Q,W){kk.call(this,Q,W);this.G=[]};
h_2=function(){};
ov=function(){};
ux=function(Q,W,x,D){IB.call(this,Q,W,x,D)};
Yk=function(Q,W,x){IB.call(this,null,Q,W,x);this.S=Q.isActive();this.G=0};
nZ=function(Q){return[Q.top,Q.left,Q.bottom,Q.right]};
Vf=function(Q,W,x,D,K,l){l=l===void 0?new ov:l;WF.call(this,W,x,D);this.o_=K;this.Uv=0;this.Us={};this.zy=new vl4;this.PT={};this.SL="";this.O3=null;this.Kn=!1;this.B=[];this.xm=l.U();this.X=l.D();this.N=null;this.D=-1;this.g7=this.T=void 0;this.pS=this.uj=0;this.fS=-1;this.Pt=this.I5=!1;this.KS=this.S=this.U=this.zS=this.Vj=0;new eZ;this.LS=this.eZ=0;this.s3=-1;this.Lt=0;this.G=g.bi;this.F3=[this.uK()];this.Y6=2;this.I1={};this.I1.pause="p";this.I1.resume="r";this.I1.skip="s";this.I1.mute="m";this.I1.unmute=
"um";this.I1.exitfullscreen="ef";this.L=null;this.SZ=this.tf=!1;this.fn=Math.floor(Date.now()/1E3-1704067200);this.X3=0};
PF=function(Q){Q.hasCompleted=!0;Q.Lt!=0&&(Q.Lt=3)};
vF=function(Q){return Q===void 0?Q:Number(Q)?Cp(Q,3):0};
CZ=function(Q,W){return Q.F3[W!=null&&W<Q.F3.length?W:Q.F3.length-1]};
aFh=function(Q){var W=!!M2(UW().DX,"umt");return Q.T||!W&&!Q.g7?0:1};
GY5=function(Q,W){Q.wV()?W=0:Q.LY==-1?W=0:(W-=Q.LY,W=W>Math.max(1E4,Q.D/3)?0:W);var x=Q.G(Q)||{};x=x.currentTime!==void 0?x.currentTime:Q.uj;var D=x-Q.uj,K=0;D>=0?(Q.pS+=W,Q.LS+=Math.max(W-D,0),K=Math.min(D,Q.pS)):Q.eZ+=Math.abs(D);D!=0&&(Q.pS=0);Q.s3==-1&&D>0&&(Q.s3=EW>=0?Lm()-EW:-1);Q.uj=x;return K};
dMs=function(Q,W){dM(Q.X,function(x){return x.N==W.N})||Q.X.push(W)};
i4n=function(Q){var W=Lp(Q.kp().B,1);return JH(Q,W)};
JH=function(Q,W,x){return W>=15E3?!0:Q.I5?(x===void 0?0:x)?!0:Q.D>0?W>=Q.D/2:Q.fS>0?W>=Q.fS:!1:!1};
AF5=function(Q){var W=Cp(Q.bf.l6,2),x=Q.zy.D,D=Q.bf,K=CZ(Q),l=vF(K.N),M=vF(K.X),w=vF(D.volume),S=Cp(K.G,2),b=Cp(K.pS,2),z=Cp(D.l6,2),k=Cp(K.F3,2),X=Cp(K.fS,2);D=Cp(D.II,2);var u=Q.RX().clone().round();Q=Q.vV&&Q.vV.D?(Q.vV?Q.vV.D:null).clone().round():null;K=EB(K,!1);return{yv3:W,CT:x,fQ:l,pQ:M,FM:w,QG:S,Uz:b,l6:z,Xz:k,mX:X,II:D,position:u,gL:Q,LQ:K}};
UMl=function(Q,W){H4s(Q.B,W,function(){return{yv3:0,CT:void 0,fQ:-1,pQ:-1,FM:-1,QG:-1,Uz:-1,l6:-1,Xz:-1,mX:-1,II:-1,position:void 0,gL:void 0,LQ:[]}});
Q.B[W]=AF5(Q)};
H4s=function(Q,W,x){for(var D=Q.length;D<W+1;)Q.push(x()),D++};
hH=function(Q,W,x){var D=Q.PT[W];if(D!=null)return D;D=q1n(Q,W);var K=GM(pZ,function(l){return l==W});
Q=BBs(Q,D,D,x,$Mh[pZ[K]]);W=="fully_viewable_audible_half_duration_impression"&&(Q.std="csm");return Q};
av=function(Q,W,x){var D=[W];if(Q!=W||x!=W)D.unshift(Q),D.push(x);return D};
BBs=function(Q,W,x,D,K){if(Q.Vu)return{"if":0,vs:0};var l=Q.RX().clone().round(),M=Q.vV?Q.vV.D:null,w=iq(),S=UW(),b=Q.kp(),z=Q.vV?Q.vV.getName():"ns",k={};k["if"]=w.D?1:void 0;k.sdk=Q.N?Q.N:void 0;k.t=Q.timeCreated;k.p=[l.top,l.left,l.bottom,l.right];l&&M&&!QM(M,l)&&(l=M.round(),k.cp=[l.top,l.left,l.bottom,l.right]);k.tos=fp(b.U,!1);k.mtos=EB(b);k.mcvt=b.s3.D;k.ps=void 0;l=zN(b,Lm(),Q.wV());k.vht=l;k.mut=b.tf.D;k.a=vF(Q.bf.volume);k.mv=vF(b.X);k.fs=Q.ll?1:0;k.ft=b.uj.B;k.at=b.L.B;k.as=b.N>0?1:0;k.atos=
fp(b.B);k.ssb=fp(b.SZ,!1);k.amtos=W6s(b.B,!1);k.uac=Q.Vj;k.vpt=b.D.B;z=="nio"&&(k.nio=1,k.avms="nio");k.gmm="4";k.gdr=JH(Q,b.D.B,!0)?1:0;k.efpf=Q.Y6;if(z=="gsv"||z=="nis")z=Q.vV,z.G>0&&(k.nnut=z.G);k.tcm=aFh(Q);k.nmt=Q.eZ;k.bt=Q.LS;k.pst=Q.s3;k.vpaid=Q.T;k.dur=Q.D;k.vmtime=Q.uj;k.is=Q.zy.D;Q.B.length>=1&&(k.i0=Q.B[0].CT,k.a0=[Q.B[0].FM],k.c0=[Q.B[0].l6],k.ss0=[Q.B[0].II],z=Q.B[0].position,l=Q.B[0].gL,k.p0=z?nZ(z):void 0,z&&l&&!QM(l,z)&&(k.cp0=nZ(l)));Q.B.length>=2&&(k.i1=Q.B[1].CT,k.a1=av(Q.B[1].fQ,
Q.B[1].FM,Q.B[1].pQ),k.c1=av(Q.B[1].QG,Q.B[1].l6,Q.B[1].Uz),k.ss1=av(Q.B[1].Xz,Q.B[1].II,Q.B[1].mX),z=Q.B[1].position,l=Q.B[1].gL,k.p1=z?nZ(z):void 0,z&&l&&!QM(l,z)&&(k.cp1=nZ(l)),k.mtos1=Q.B[1].LQ);Q.B.length>=3&&(k.i2=Q.B[2].CT,k.a2=av(Q.B[2].fQ,Q.B[2].FM,Q.B[2].pQ),k.c2=av(Q.B[2].QG,Q.B[2].l6,Q.B[2].Uz),k.ss2=av(Q.B[2].Xz,Q.B[2].II,Q.B[2].mX),z=Q.B[2].position,l=Q.B[2].gL,k.p2=z?nZ(z):void 0,z&&l&&!QM(l,z)&&(k.cp2=nZ(l)),k.mtos2=Q.B[2].LQ);Q.B.length>=4&&(k.i3=Q.B[3].CT,k.a3=av(Q.B[3].fQ,Q.B[3].FM,
Q.B[3].pQ),k.c3=av(Q.B[3].QG,Q.B[3].l6,Q.B[3].Uz),k.ss3=av(Q.B[3].Xz,Q.B[3].II,Q.B[3].mX),z=Q.B[3].position,l=Q.B[3].gL,k.p3=z?nZ(z):void 0,z&&l&&!QM(l,z)&&(k.cp3=nZ(l)),k.mtos3=Q.B[3].LQ);k.cs=JF5(Q.zy);W&&(k.ic=CTl(Q.zy),k.dvpt=b.D.U,k.dvs=TJ(b.U,.5),k.dfvs=TJ(b.U,1),k.davs=TJ(b.B,.5),k.dafvs=TJ(b.B,1),x&&(b.D.U=0,xMn(b.U),xMn(b.B)),Q.V7()&&(k.dtos=b.KS,k.dav=b.T,k.dtoss=Q.Uv+1,x&&(b.KS=0,b.T=0,Q.Uv++)),k.dat=b.L.U,k.dft=b.uj.U,x&&(b.L.U=0,b.uj.U=0));k.ps=[w.L.width,w.L.height];k.bs=[t8(w.B),w.B.getHeight()];
k.scs=[w.N.width,w.N.height];k.dom=w.domain;Q.zS&&(k.vds=Q.zS);if(Q.X.length>0||Q.xm)W=g.DX(Q.X),Q.xm&&W.push(Q.xm),k.pings=g.pm(W,function(X){return X.toString()});
W=g.pm(g.Rv(Q.X,function(X){return X.X()}),function(X){return X.getId()});
tn4(W);k.ces=W;Q.U&&(k.vmer=Q.U);Q.S&&(k.vmmk=Q.S);Q.KS&&(k.vmiec=Q.KS);k.avms=Q.vV?Q.vV.getName():"ns";Q.vV&&g.q9(k,Q.vV.z5());D?(k.c=Cp(Q.bf.l6,2),k.ss=Cp(Q.bf.II,2)):k.tth=Lm()-IFl;k.mc=Cp(b.pS,2);k.nc=Cp(b.G,2);k.mv=vF(b.X);k.nv=vF(b.N);k.lte=Cp(Q.Pm,2);D=CZ(Q,K);EB(b);k.qmtos=EB(D);k.qnc=Cp(D.G,2);k.qmv=vF(D.X);k.qnv=vF(D.N);k.qas=D.N>0?1:0;k.qi=Q.SL;k.avms||(k.avms="geo");k.psm=b.LS.B;k.psv=b.LS.getValue();k.psfv=b.I5.getValue();k.psa=b.O3.getValue();S=hV1(S.DX);S.length&&(k.veid=S);Q.L&&g.q9(k,
oll(Q.L));k.avas=Q.P5();k.vs=Q.kH();k.co=mMv(Q);k.tm=b.X3;k.tu=b.g7;return k};
q1n=function(Q,W){if(g.FH(NBD,W))return!0;var x=Q.Us[W];return x!==void 0?(Q.Us[W]=!0,!x):!1};
mMv=function(Q){var W=Q.X3.toString(10).padStart(2,"0");W=""+Q.fn+W;Q.X3<99&&Q.X3++;return W};
glD=function(){this.B={};var Q=E6();GN(this,Q,document);var W=cF5();try{if("1"==W){for(var x=Q.parent;x!=Q.top;x=x.parent)GN(this,x,x.document);GN(this,Q.top,Q.top.document)}}catch(D){}};
cF5=function(){var Q=document.documentElement;try{if(!YG(E6().top))return"2";var W=[],x=E6(Q.ownerDocument);for(Q=x;Q!=x.top;Q=Q.parent)if(Q.frameElement)W.push(Q.frameElement);else break;return W&&W.length!=0?"1":"0"}catch(D){return"2"}};
GN=function(Q,W,x){F9(x,"mousedown",function(){return yF5(Q)},301);
F9(W,"scroll",function(){return e_l(Q)},302);
F9(x,"touchmove",function(){return fFz(Q)},303);
F9(x,"mousemove",function(){return Z42(Q)},304);
F9(x,"keydown",function(){return L6O(Q)},305)};
yF5=function(Q){g.nC(Q.B,function(W){W.D>1E5||++W.D})};
e_l=function(Q){g.nC(Q.B,function(W){W.B>1E5||++W.B})};
fFz=function(Q){g.nC(Q.B,function(W){W.B>1E5||++W.B})};
L6O=function(Q){g.nC(Q.B,function(W){W.U>1E5||++W.U})};
Z42=function(Q){g.nC(Q.B,function(W){W.N>1E5||++W.N})};
rFs=function(){this.B=[];this.U=[]};
dJ=function(Q,W){return g.Os(Q.B,function(x){return x.SL==W})};
TB2=function(Q,W){return W?g.Os(Q.B,function(x){return x.qq.D7==W}):null};
O41=function(Q,W){return g.Os(Q.U,function(x){return x.Up()==2&&x.SL==W})};
AH=function(){var Q=ix;return Q.B.length==0?Q.U:Q.U.length==0?Q.B:g.x8(Q.U,Q.B)};
Elv=function(Q,W){Q=W.Up()==1?Q.B:Q.U;var x=TR(Q,function(D){return D==W});
return x!=-1?(Q.splice(x,1),W.vV&&W.vV.unobserve(),W.dispose(),!0):!1};
F6D=function(Q){var W=ix;if(Elv(W,Q)){switch(Q.Up()){case 0:var x=function(){return null};
case 2:x=function(){return O41(W,Q.SL)};
break;case 1:x=function(){return dJ(W,Q.SL)}}for(var D=x();D;D=x())Elv(W,D)}};
tr1=function(Q){var W=ix;Q=g.Rv(Q,function(x){return!TB2(W,x.qq.D7)});
W.B.push.apply(W.B,g.C(Q))};
QXa=function(Q){var W=[];g.o3(Q,function(x){dM(ix.B,function(D){return D.qq.D7===x.qq.D7&&D.SL===x.SL})||(ix.B.push(x),W.push(x))})};
HF=function(){this.B=this.U=null};
Wnl=function(Q,W){function x(D,K){W(D,K)}
if(Q.U==null)return!1;Q.B=g.Os(Q.U,function(D){return D!=null&&D.CM()});
Q.B&&(Q.B.init(x)?mQa(Q.B.B):W(Q.B.B.h$(),Q.B));return Q.B!=null};
Ua=function(Q){Q=x2l(Q);mf.call(this,Q.length?Q[Q.length-1]:new qI(zk,0));this.D=Q;this.U=null};
x2l=function(Q){if(!Q.length)return[];Q=(0,g.Rv)(Q,function(x){return x!=null&&x.yB()});
for(var W=1;W<Q.length;W++)BR(Q[W-1],Q[W]);return Q};
q7=function(Q,W,x,D){IB.call(this,Q,W,x,D);this.pS=this.uj=this.G=this.S=this.N=null};
BF=function(Q){return Q.N&&Q.N.takeRecords?Q.N.takeRecords():[]};
Kns=function(Q){if(!Q.element)return!1;var W=Q.element,x=Q.U.B.D,D=UW().B.B;Q.N=new x.IntersectionObserver(HC(D,function(K){return $k(Q,K)}),D25);
D=HC(D,function(){Q.N.unobserve(W);Q.N.observe(W);$k(Q,BF(Q))});
x.ResizeObserver?(Q.S=new x.ResizeObserver(D),Q.S.observe(W)):x.MutationObserver&&(Q.G=new g.Nz.MutationObserver(D),Q.G.observe(W,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));Q.N.observe(W);$k(Q,BF(Q));return!0};
$k=function(Q,W){try{if(W.length){Q.uj||(Q.uj=Lm());var x=lmn(W),D=dQ5(Q.element,Q.U.B.D),K=D.x,l=D.y;Q.D=new Fn(Math.round(l),Math.round(K)+x.boundingClientRect.width,Math.round(l)+x.boundingClientRect.height,Math.round(K));Q.B=g72(Q,Q.D);var M=Htn(x.intersectionRect);Q.X=WR(M,Q.D.left-M.left,Q.D.top-M.top)}}catch(w){Q.unobserve(),Zm(299,w)}};
lmn=function(Q){return aX(Q,function(W,x){return W.time>x.time?W:x},Q[0])};
Iv=function(Q){Q=Q===void 0?zk:Q;mf.call(this,new qI(Q,2))};
N7=function(){var Q=jX1();qI.call(this,zk.top,Q,"geo")};
jX1=function(){UW();var Q=iq();return Q.D||Q.U?0:2};
Mu1=function(){};
cF=function(){this.done=!1;this.B={f5:0,xC:0,yoS:0,FW:0,Ul:-1,n5:0,TG:0,bI:0,cAZ:0};this.L=null;this.X=!1;this.D=null;this.G=0;this.U=new UB(this)};
yf=function(){var Q=gJ;Q.X||(Q.X=!0,RJ1(Q,function(){return Q.N.apply(Q,g.C(g.i2.apply(0,arguments)))}),Q.N())};
wCv=function(){Gk(Mu1);var Q=Gk(HF);Q.B!=null&&Q.B.B?mQa(Q.B.B):iq().update(zk)};
eO=function(Q,W,x){if(!Q.done&&(Q.U.cancel(),W.length!=0)){Q.D=null;try{wCv();var D=Lm();UW().L=D;if(Gk(HF).B!=null)for(var K=0;K<W.length;K++)sHD(W[K],D,x);for(D=0;D<W.length;D++)z_s(W[D]);++Q.B.FW}finally{x?g.o3(W,function(l){l.bf.l6=0}):Q.U.schedule()}}};
RJ1=function(Q,W){if(!Q.L){W=eu(142,W);iR();var x;AP.visibilityState?x="visibilitychange":AP.mozVisibilityState?x="mozvisibilitychange":AP.webkitVisibilityState&&(x="webkitvisibilitychange");x&&Xn(AP,x,W,{capture:!1})&&(Q.L=W)}};
SWD=function(){var Q=Gk(HF);if(Q.B!=null){var W=Q.B;g.o3(AH(),function(x){return S1O(x,W)})}};
bmD=function(Q,W){Q=Q.G;Tk&&(Q+=W-OW);return Q};
sXl=function(Q){Q=Q===void 0?function(){return{}}:Q;
cC.XW="av-js";N2.B=.01;YO2([function(W){var x=UW(),D={};D=(D.bin=x.U,D.type="error",D);x=RX(x.DX);if(!gJ.D){var K=gJ,l=zk.document,M=ru>=0?Lm()-ru:-1,w=Lm();K.B.Ul==-1&&(M=w);var S=iq(),b=UW(),z=RX(b.DX),k=AH();try{if(k.length>0){var X=S.B;X&&(z.bs=[t8(X),X.getHeight()]);var u=S.L;u&&(z.ps=[u.width,u.height]);zk.screen&&(z.scs=[zk.screen.width,zk.screen.height])}else z.url=encodeURIComponent(zk.location.href.substring(0,512)),l.referrer&&(z.referrer=encodeURIComponent(l.referrer.substring(0,512)));
z.tt=M;z.pt=ru;z.bin=b.U;zk.google_osd_load_pub_page_exp!==void 0&&(z.olpp=zk.google_osd_load_pub_page_exp);z.deb=[1,K.B.f5,K.B.xC,K.B.FW,K.B.Ul,0,K.U.U,K.B.n5,K.B.TG,K.B.bI,K.B.cAZ,-1].join(";");z.tvt=bmD(K,w);S.U&&(z.inapp=1);if(zk!==null&&zk!=zk.top){k.length>0&&(z.iframe_loc=encodeURIComponent(zk.location.href.substring(0,512)));var Y=S.G;z.is=[t8(Y),Y.getHeight()]}}catch(v){z.error=1}gJ.D=z}X=g.HZ(gJ.D);u=UW().B;M2(u.D,"prf")==1?(Y=new A8,K=u.B,l=0,K.B>-1&&(l=K.D.B.now()-K.B),Y=Er(Y,1,RL(K.N+
l),0),K=u.B,Y=Er(Y,5,sr(K.B>-1?K.U+1:K.U),0),Y=Er(Y,2,v6(u.U.B.D()),"0"),Y=Er(Y,3,v6(u.U.B.U()),"0"),u=Er(Y,4,v6(u.U.B.B()),"0"),Y={},u=(Y.pf=g.Vn(u.B()),Y)):u={};g.q9(X,u);g.q9(W,D,x,X,Q())}])};
kkl=function(){var Q=zJh||zk;if(!Q)return"";var W=[];if(!Q.location||!Q.location.href)return"";W.push("url="+encodeURIComponent(Q.location.href.substring(0,512)));Q.document&&Q.document.referrer&&W.push("referrer="+encodeURIComponent(Q.document.referrer.substring(0,512)));return W.join("&")};
fZ=function(){var Q="youtube.player.web_20250302_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250302_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250302_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250302_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),W;if(((W=Q)==null?void 0:W.length)==2)return Q[1];Q="youtube.player.web_20250302_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var x;return((x=Q)==null?void 0:x.length)==3?"20"+Q[1]+Q[2]:null};
XCa=function(){return"av.default_js".includes("ima_html5_sdk")?{Wi:"ima",Ca:null}:"av.default_js".includes("ima_native_sdk")?{Wi:"nima",Ca:null}:"av.default_js".includes("admob-native-video-javascript")?{Wi:"an",Ca:null}:"youtube.player.web_20250302_00_RC00".includes("cast_js_sdk")?{Wi:"cast",Ca:fZ()}:"youtube.player.web_20250302_00_RC00".includes("youtube.player.web")?{Wi:"yw",Ca:fZ()}:"youtube.player.web_20250302_00_RC00".includes("outstream_web_client")?{Wi:"out",Ca:fZ()}:"youtube.player.web_20250302_00_RC00".includes("drx_rewarded_web")?
{Wi:"r",Ca:fZ()}:"youtube.player.web_20250302_00_RC00".includes("gam_native_web_video")?{Wi:"n",Ca:fZ()}:"youtube.player.web_20250302_00_RC00".includes("admob_interstitial_video")?{Wi:"int",Ca:fZ()}:{Wi:"j",Ca:null}};
rJ=function(Q,W){var x={sv:"966"};ZG!==null&&(x.v=ZG);x.cb=oGl;x.nas=ix.B.length;x.msg=Q;W!==void 0&&(Q=unn(W))&&(x.e=LZ[Q]);return x};
TN=function(Q){return Je(Q,"custom_metric_viewable")};
unn=function(Q){var W=TN(Q)?"custom_metric_viewable":Q.toLowerCase();return GM(pZ,function(x){return x==W})};
YW1=function(){this.B=void 0;this.U=!1;this.D=0;this.N=-1;this.L="tos"};
PRh=function(Q){try{var W=Q.split(",");return W.length>g.pC(nGa).length?null:aX(W,function(x,D){D=D.toLowerCase().split("=");if(D.length!=2||Vuh[D[0]]===void 0||!Vuh[D[0]](D[1]))throw Error("Entry ("+D[0]+", "+D[1]+") is invalid.");x[D[0]]=D[1];return x},{})}catch(x){return null}};
vGn=function(Q,W){if(Q.B==void 0)return 0;switch(Q.L){case "mtos":return Q.U?rM(W.B,Q.B):rM(W.U,Q.B);case "tos":return Q.U?Lp(W.B,Q.B):Lp(W.U,Q.B)}return 0};
Oa=function(Q,W,x,D){kk.call(this,W,D);this.G=Q;this.S=x};
Ea=function(){};
FZ=function(Q){kk.call(this,"fully_viewable_audible_half_duration_impression",Q)};
tH=function(Q){this.B=Q};
QP=function(Q,W){kk.call(this,Q,W)};
Wt=function(Q){XZ.call(this,"measurable_impression",Q)};
xB=function(){tH.apply(this,arguments)};
DH=function(Q,W,x){Yk.call(this,Q,W,x)};
K8=function(Q){Q=Q===void 0?zk:Q;mf.call(this,new qI(Q,2))};
lp=function(Q,W,x){Yk.call(this,Q,W,x)};
jl=function(Q){Q=Q===void 0?zk:Q;mf.call(this,new qI(Q,2))};
Mn=function(){qI.call(this,zk,2,"mraid");this.LS=0;this.pS=this.F3=!1;this.G=null;this.U=Cz5(this.D);this.N.B=new Fn(0,0,0,0);this.X3=!1};
Rb=function(Q,W,x){Q.Ix("addEventListener",W,x)};
hJs=function(Q){UW().N=!!Q.Ix("isViewable");Rb(Q,"viewableChange",CRv);Q.Ix("getState")==="loading"?Rb(Q,"ready",J8F):pCh(Q)};
pCh=function(Q){typeof Q.U.Oc.AFMA_LIDAR==="string"?(Q.F3=!0,am4(Q)):(Q.U.compatibility=3,Q.G="nc",Q.Os("w"))};
am4=function(Q){Q.pS=!1;var W=M2(UW().DX,"rmmt")==1,x=!!Q.Ix("isViewable");(W?!x:1)&&iR().setTimeout(fm(524,function(){Q.pS||(Gkz(Q),Zm(540,Error()),Q.G="mt",Q.Os("w"))}),500);
d2D(Q);Rb(Q,Q.U.Oc.AFMA_LIDAR,im4)};
d2D=function(Q){var W=M2(UW().DX,"sneio")==1,x=Q.U.Oc.AFMA_LIDAR_EXP_1!==void 0,D=Q.U.Oc.AFMA_LIDAR_EXP_2!==void 0;(W=W&&D)&&(Q.U.Oc.AFMA_LIDAR_EXP_2=!0);x&&(Q.U.Oc.AFMA_LIDAR_EXP_1=!W)};
Gkz=function(Q){Q.Ix("removeEventListener",Q.U.Oc.AFMA_LIDAR,im4);Q.F3=!1};
A8n=function(Q,W){if(Q.Ix("getState")==="loading")return new g.oZ(-1,-1);W=Q.Ix(W);if(!W)return new g.oZ(-1,-1);Q=parseInt(W.width,10);W=parseInt(W.height,10);return isNaN(Q)||isNaN(W)?new g.oZ(-1,-1):new g.oZ(Q,W)};
J8F=function(){try{var Q=Gk(Mn);Q.Ix("removeEventListener","ready",J8F);pCh(Q)}catch(W){Zm(541,W)}};
im4=function(Q,W){try{var x=Gk(Mn);x.pS=!0;var D=Q?new Fn(Q.y,Q.x+Q.width,Q.y+Q.height,Q.x):new Fn(0,0,0,0);var K=Lm(),l=HR();var M=new xg(K,l,x);M.B=D;M.volume=W;x.WO(M)}catch(w){Zm(542,w)}};
CRv=function(Q){var W=UW(),x=Gk(Mn);Q&&!W.N&&(W.N=!0,x.X3=!0,x.G&&x.Os("w",!0))};
wx=function(){this.isInitialized=!1;this.B=this.U=null;var Q={};this.G=(Q.start=this.Y35,Q.firstquartile=this.gft,Q.midpoint=this.of3,Q.thirdquartile=this.e9S,Q.complete=this.L3j,Q.error=this.Ef3,Q.pause=this.jn,Q.resume=this.a6,Q.skip=this.rfj,Q.viewable_impression=this.mV,Q.mute=this.rM,Q.unmute=this.rM,Q.fullscreen=this.j5j,Q.exitfullscreen=this.vfS,Q.fully_viewable_audible_half_duration_impression=this.mV,Q.measurable_impression=this.mV,Q.abandon=this.jn,Q.engagedview=this.mV,Q.impression=this.mV,
Q.creativeview=this.mV,Q.progress=this.rM,Q.custom_metric_viewable=this.mV,Q.bufferstart=this.jn,Q.bufferfinish=this.a6,Q.audio_measurable=this.mV,Q.audio_audible=this.mV,Q);Q={};this.S=(Q.overlay_resize=this.G13,Q.abandon=this.A0,Q.close=this.A0,Q.collapse=this.A0,Q.overlay_unmeasurable_impression=function(W){return hH(W,"overlay_unmeasurable_impression",HR())},Q.overlay_viewable_immediate_impression=function(W){return hH(W,"overlay_viewable_immediate_impression",HR())},Q.overlay_unviewable_impression=
function(W){return hH(W,"overlay_unviewable_impression",HR())},Q.overlay_viewable_end_of_session_impression=function(W){return hH(W,"overlay_viewable_end_of_session_impression",HR())},Q);
UW().U=3;Hma(this);this.D=null};
Sl=function(Q,W,x,D){Q=Q.oV(null,D,!0,W);Q.N=x;tr1([Q]);return Q};
U2z=function(Q,W,x){Jrl(W);var D=Q.B;g.o3(W,function(K){var l=g.pm(K.criteria,function(M){var w=PRh(M);if(w==null)M=null;else if(M=new YW1,w.visible!=null&&(M.B=w.visible/100),w.audible!=null&&(M.U=w.audible==1),w.time!=null){var S=w.timetype=="mtos"?"mtos":"tos",b=N4D(w.time,"%")?"%":"ms";w=parseInt(w.time,10);b=="%"&&(w/=100);M.setTime(w,b,S)}return M});
dM(l,function(M){return M==null})||dMs(x,new Oa(K.id,K.event,l,D))})};
qWn=function(){var Q=[],W=UW();Q.push(Gk(N7));M2(W.DX,"mvp_lv")&&Q.push(Gk(Mn));W=[new K8,new jl];W.push(new Ua(Q));W.push(new Iv(zk));return W};
BuF=function(Q){if(!Q.isInitialized){Q.isInitialized=!0;try{var W=Lm(),x=UW(),D=iq();ru=W;x.D=79463069;Q.U!=="o"&&(zJh=Nv5(zk));if(EXD()){gJ.B.xC=0;gJ.B.Ul=Lm()-W;var K=qWn(),l=Gk(HF);l.U=K;Wnl(l,function(){bp()})?gJ.done||(SWD(),BR(l.B.B,Q),yf()):D.D?bp():yf()}else s3=!0}catch(M){throw ix.reset(),M;
}}};
kB=function(Q){gJ.U.cancel();zd=Q;gJ.done=!0};
XW=function(Q){if(Q.U)return Q.U;var W=Gk(HF).B;if(W)switch(W.getName()){case "nis":Q.U="n";break;case "gsv":Q.U="m"}Q.U||(Q.U="h");return Q.U};
ob=function(Q,W,x){if(Q.B==null)return W.zS|=4,!1;Q=$2v(Q.B,x,W);W.zS|=Q;return Q==0};
bp=function(){var Q=[new Iv(zk)],W=Gk(HF);W.U=Q;Wnl(W,function(){kB("i")})?gJ.done||(SWD(),yf()):kB("i")};
Imz=function(Q,W){if(!Q.Kn){var x=hH(Q,"start",HR());x=Q.o_.B(x).B;var D={id:"lidarv"};D.r=W;D.sv="966";ZG!==null&&(D.v=ZG);md(x,function(K,l){return D[K]=K=="mtos"||K=="tos"?l:encodeURIComponent(l)});
W=kkl();md(W,function(K,l){return D[K]=encodeURIComponent(l)});
W="//pagead2.googlesyndication.com/pagead/gen_204?"+gM(cR(new NI,D));Otz(W);Q.Kn=!0}};
up=function(Q,W,x){eO(gJ,[Q],!HR());UMl(Q,x);x!=4&&H4s(Q.F3,x,Q.uK);return hH(Q,W,HR())};
Hma=function(Q){sXl(function(){var W=m2z();Q.U!=null&&(W.sdk=Q.U);var x=Gk(HF);x.B!=null&&(W.avms=x.B.getName());return W})};
Nu1=function(Q,W,x,D){var K=TB2(ix,x);K!==null&&K.SL!==W&&(Q.LO(K),K=null);K||(W=Q.oV(x,Lm(),!1,W),ix.U.length==0&&(UW().D=79463069),QXa([W]),K=W,K.N=XW(Q),D&&(K.O3=D));return K};
c8a=function(Q,W){var x=Q[W];x!==void 0&&x>0&&(Q[W]=Math.floor(x*1E3))};
m2z=function(){var Q=iq(),W={},x={},D={};return Object.assign({},(W.sv="966",W),ZG!==null&&(x.v=ZG,x),(D["if"]=Q.D?"1":"0",D.nas=String(ix.B.length),D))};
YB=function(Q){kk.call(this,"audio_audible",Q)};
n8=function(Q){XZ.call(this,"audio_measurable",Q)};
VP=function(){tH.apply(this,arguments)};
Pt=function(){};
gG4=function(Q){this.B=Q};
$2v=function(Q,W,x){Q=Q.U();if(typeof Q==="function"){var D={};var K={};D=Object.assign({},ZG!==null&&(D.v=ZG,D),(K.sv="966",K.cb=oGl,K.e=y8l(W),K));K=hH(x,W,HR());g.q9(D,K);x.PT[W]=K;D=x.Up()==2?T8D(D).join("&"):x.o_.B(D).B;try{return Q(x.SL,D,W),0}catch(l){return 2}}else return 1};
y8l=function(Q){var W=TN(Q)?"custom_metric_viewable":Q;Q=GM(pZ,function(x){return x==W});
return LZ[Q]};
vt=function(){wx.call(this);this.X=null;this.L=!1;this.N="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
eJD=function(Q,W,x){x=x.opt_configurable_tracking_events;Q.B!=null&&Array.isArray(x)&&U2z(Q,x,W)};
fm2=function(Q,W,x){var D=dJ(ix,W);D||(D=x.opt_nativeTime||-1,D=Sl(Q,W,XW(Q),D),x.opt_osdId&&(D.O3=x.opt_osdId));return D};
ZmD=function(Q,W,x){var D=dJ(ix,W);D||(D=Sl(Q,W,"n",x.opt_nativeTime||-1));return D};
Lnz=function(Q,W){var x=dJ(ix,W);x||(x=Sl(Q,W,"h",-1));return x};
r8s=function(Q){UW();switch(XW(Q)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
EG1=function(Q,W,x,D){x=x===void 0?{}:x;var K={};g.q9(K,{opt_adElement:void 0,opt_fullscreen:void 0},x);var l=Q.KB(W,x);x=l?l.o_:Q.TZ();if(K.opt_bounds)return x.B(rJ("ol",D));if(D!==void 0)if(unn(D)!==void 0)if(s3)Q=rJ("ue",D);else if(BuF(Q),zd=="i")Q=rJ("i",D),Q["if"]=0;else if(W=Q.KB(W,K)){b:{zd=="i"&&(W.Vu=!0);l=K.opt_fullscreen;l!==void 0&&xk(W,!!l);var M;if(l=!iq().U)(l=aq(g.Ae(),"CrKey")&&!(aq(g.Ae(),"CrKey")&&aq(g.Ae(),"SmartSpeaker"))||aq(g.Ae(),"PlayStation")||aq(g.Ae(),"Roku")||qOz()||aq(g.Ae(),
"Xbox"))||(l=g.Ae(),l=aq(l,"AppleTV")||aq(l,"Apple TV")||aq(l,"CFNetwork")||aq(l,"tvOS")),l||(l=g.Ae(),l=aq(l,"sdk_google_atv_x86")||aq(l,"Android TV")),l=!l;l&&(iR(),l=oX(AP)===0);if(M=l){switch(W.Up()){case 1:Imz(W,"pv");break;case 2:Q.a_(W)}kB("pv")}l=D.toLowerCase();if(M=!M)M=M2(UW().DX,"ssmol")&&l==="loaded"?!1:g.FH(Tu5,l);if(M&&W.Lt==0){zd!="i"&&(gJ.done=!1);M=K!==void 0?K.opt_nativeTime:void 0;EW=M=typeof M==="number"?M:Lm();W.i9=!0;var w=HR();W.Lt=1;W.Us={};W.Us.start=!1;W.Us.firstquartile=
!1;W.Us.midpoint=!1;W.Us.thirdquartile=!1;W.Us.complete=!1;W.Us.resume=!1;W.Us.pause=!1;W.Us.skip=!1;W.Us.mute=!1;W.Us.unmute=!1;W.Us.viewable_impression=!1;W.Us.measurable_impression=!1;W.Us.fully_viewable_audible_half_duration_impression=!1;W.Us.fullscreen=!1;W.Us.exitfullscreen=!1;W.Uv=0;w||(W.kp().S=M);eO(gJ,[W],!w)}(M=W.I1[l])&&SO(W.zy,M);M2(UW().DX,"fmd")||g.FH(OmQ,l)&&W.xm&&W.xm.U(W,null);switch(W.Up()){case 1:var S=TN(l)?Q.G.custom_metric_viewable:Q.G[l];break;case 2:S=Q.S[l]}if(S&&(D=S.call(Q,
W,K,D),M2(UW().DX,"fmd")&&g.FH(OmQ,l)&&W.xm&&W.xm.U(W,null),D!==void 0)){K=rJ(void 0,l);g.q9(K,D);D=K;break b}D=void 0}W.Lt==3&&Q.LO(W);Q=D}else Q=rJ("nf",D);else Q=void 0;else s3?Q=rJ("ue"):l?(Q=rJ(),g.q9(Q,BBs(l,!0,!1,!1))):Q=rJ("nf");return typeof Q==="string"?x.B():x.B(Q)};
Fn5=function(Q,W){W&&(Q.N=W)};
tu5=function(Q){var W={};return W.viewability=Q.B,W.googleViewability=Q.U,W};
QB4=function(Q,W,x){x=x===void 0?{}:x;Q=EG1(Gk(vt),W,x,Q);return tu5(Q)};
p8=function(Q){var W=g.i2.apply(1,arguments).filter(function(D){return D}).join("&");
if(!W)return Q;var x=Q.match(/[?&]adurl=/);return x?Q.slice(0,x.index+1)+W+"&"+Q.slice(x.index+1):Q+(Q.indexOf("?")===-1?"?":"&")+W};
xI5=function(Q){var W=Q.url;Q=Q.if5;this.B=W;this.G=Q;Q=/[?&]dsh=1(&|$)/.test(W);this.L=!Q&&/[?&]ae=1(&|$)/.test(W);this.X=!Q&&/[?&]ae=2(&|$)/.test(W);if((this.U=/[?&]adurl=([^&]*)/.exec(W))&&this.U[1]){try{var x=decodeURIComponent(this.U[1])}catch(D){x=null}this.D=x}this.N=(new Date).getTime()-Wfa};
DI5=function(Q){Q=Q.G;if(!Q)return"";var W="";Q.platform&&(W+="&uap="+encodeURIComponent(Q.platform));Q.platformVersion&&(W+="&uapv="+encodeURIComponent(Q.platformVersion));Q.uaFullVersion&&(W+="&uafv="+encodeURIComponent(Q.uaFullVersion));Q.architecture&&(W+="&uaa="+encodeURIComponent(Q.architecture));Q.model&&(W+="&uam="+encodeURIComponent(Q.model));Q.bitness&&(W+="&uab="+encodeURIComponent(Q.bitness));Q.fullVersionList&&(W+="&uafvl="+encodeURIComponent(Q.fullVersionList.map(function(x){return encodeURIComponent(x.brand)+
";"+encodeURIComponent(x.version)}).join("|")));
typeof Q.wow64!=="undefined"&&(W+="&uaw="+Number(Q.wow64));return W.substring(1)};
jBv=function(Q,W,x,D,K){var l=window;var M=M===void 0?!1:M;var w;x?w=(M===void 0?0:M)?"//ep1.adtrafficquality.google/bg/"+Fa(x)+".js":"//pagead2.googlesyndication.com/bg/"+Fa(x)+".js":w="";M=M===void 0?!1:M;x=l.document;var S={};W&&(S._scs_=W);S._bgu_=w;S._bgp_=D;S._li_="v_h.3.0.0.0";K&&(S._upb_=K);(W=l.GoogleTyFxhY)&&typeof W.push=="function"||(W=l.GoogleTyFxhY=[]);W.push(S);W=cZ(x).createElement("SCRIPT");W.type="text/javascript";W.async=!0;Q=(M===void 0?0:M)?DuD(KfO,Fa(Q)+".js"):DuD(li5,Fa(Q)+
".js");g.ex(W,Q);(l=(l.GoogleTyFxhYEET||{})[W.src])?l():x.getElementsByTagName("head")[0].appendChild(W)};
MZ5=function(){try{var Q,W;return!!((Q=window)==null?0:(W=Q.top)==null?0:W.location.href)&&!1}catch(x){return!0}};
Gd=function(){var Q=R4z();Q=Q===void 0?"bevasrsg":Q;return new Promise(function(W){var x=window===window.top?window:MZ5()?window:window.top,D=x[Q],K;((K=D)==null?0:K.bevasrs)?W(new ab(D.bevasrs)):(D||(D={},D=(D.nqfbel=[],D),x[Q]=D),D.nqfbel.push(function(l){W(new ab(l))}))})};
wRO=function(Q){var W={c:Q.Im,e:Q.AU,mc:Q.uv,me:Q.pH};Q.P3&&(W.co={c:Q.P3.T4,a:Q.P3.NI,s:Q.P3.dM});return W};
dx=function(Q){g.N.call(this);this.wpc=Q};
ab=function(Q){g.N.call(this);var W=this;this.RU=Q;this.D="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.B=void 0;this.KC=this.RU.p;this.N=this.NT.bind(this);this.addOnDisposeCallback(function(){return void SBQ(W)})};
bpO=function(Q){var W;return g.U(function(x){if(x.B==1){if(!Q.RU.wpc)throw new lC(30,"NWA");return Q.U?x.return(Q.U):g.A(x,Q.RU.wpc(),2)}W=x.U;Q.U=new dx(W);return x.return(Q.U)})};
SBQ=function(Q){Q.B!==void 0&&(Q.D.forEach(function(W){var x;(x=Q.B)==null||x.removeEventListener(W,Q.N)}),Q.B=void 0)};
kJz=function(Q){if(g.p5(g.ti(Q)))return!1;if(Q.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var W=new g.Sr(Q)}catch(x){return g.Os(sB2,function(D){return Q.search(D)>0})!=null}return W.X.match(z4l)?!0:g.Os(sB2,function(x){return Q.match(x)!=null})!=null};
g.ip=function(Q,W){return Q.replace(XRa,function(x,D){try{var K=g.i0(W,D);if(K==null||K.toString()==null)return x;K=K.toString();if(K==""||!g.p5(g.ti(K)))return encodeURIComponent(K).replace(/%2C/g,",")}catch(l){}return x})};
u9n=function(Q){var W=ogQ.Yh;if(W){var x,D;(D=(x=performance).mark)==null||D.call(x,"signalSetStart__"+Q)}x={};return x[Symbol.dispose]=function(){if(W){var K,l;(l=(K=performance).measure)==null||l.call(K,"signalSet__"+Q,"signalSetStart__"+Q)}},x};
A2=function(Q,W){return Object.is(Q,W)};
U3=function(Q){var W=Ht;Ht=Q;return W};
YBz=function(Q){if(Q.dn!==void 0){var W=qn;qn=!0;try{for(var x=g.V(Q.dn),D=x.next();!D.done;D=x.next()){var K=D.value;K.jM||(Q=void 0,K.jM=!0,YBz(K),(Q=K.Sv)==null||Q.call(K,K))}}finally{qn=W}}};
ngD=function(){var Q;return((Q=Ht)==null?void 0:Q.hI)!==!1};
VZv=function(Q){Q&&(Q.oM=0);return U3(Q)};
PqD=function(Q,W){U3(W);if(Q&&Q.pA!==void 0&&Q.I7!==void 0&&Q.Qz!==void 0){if(Bt(Q))for(W=Q.oM;W<Q.pA.length;W++)$B(Q.pA[W],Q.I7[W]);for(;Q.pA.length>Q.oM;)Q.pA.pop(),Q.Qz.pop(),Q.I7.pop()}};
CqD=function(Q,W,x){vgl(Q);if(Q.dn.length===0&&Q.pA!==void 0)for(var D=0;D<Q.pA.length;D++)Q.I7[D]=CqD(Q.pA[D],Q,D);Q.mM.push(x);return Q.dn.push(W)-1};
$B=function(Q,W){vgl(Q);if(Q.dn.length===1&&Q.pA!==void 0)for(var x=0;x<Q.pA.length;x++)$B(Q.pA[x],Q.I7[x]);x=Q.dn.length-1;Q.dn[W]=Q.dn[x];Q.mM[W]=Q.mM[x];Q.dn.length--;Q.mM.length--;W<Q.dn.length&&(x=Q.mM[W],Q=Q.dn[W],JPO(Q),Q.I7[x]=W)};
Bt=function(Q){var W,x;return Q.tI||((x=Q==null?void 0:(W=Q.dn)==null?void 0:W.length)!=null?x:0)>0};
JPO=function(Q){Q.pA!=null||(Q.pA=[]);Q.I7!=null||(Q.I7=[]);Q.Qz!=null||(Q.Qz=[])};
vgl=function(Q){Q.dn!=null||(Q.dn=[]);Q.mM!=null||(Q.mM=[])};
h4F=function(Q){function W(){if(qn)throw Error("");if(Ht!==null){var D=Ht.oM++;JPO(Ht);D<Ht.pA.length&&Ht.pA[D]!==x&&Bt(Ht)&&$B(Ht.pA[D],Ht.I7[D]);Ht.pA[D]!==x&&(Ht.pA[D]=x,Ht.I7[D]=Bt(Ht)?CqD(x,Ht,D):0);Ht.Qz[D]=x.version}return x.value}
var x=Object.create(pRs);x.value=Q;W[Ib]=x;return W};
GJz=function(Q,W){if(!ngD())throw Error();Q.Sl(Q.value,W)||(Q.value=W,Q.version++,aiO++,YBz(Q))};
UI5=function(Q,W){function x(){dI2++;return D()}
W=W===void 0?"":W;var D=h4F(Q);ip4++;var K=D[Ib];K.QH=W!=null?W:"[signal]";x[Ib]=K;return[x,function(l){var M={stack:[],error:void 0,hasError:!1};try{if(xF(M,u9n(K.QH)),APQ++,l&&l[Hpv]){var w=l[Hpv];if(!ngD())throw Error();GJz(K,w(K.value))}else GJz(K,l)}catch(S){M.error=S,M.hasError=!0}finally{K5(M)}}]};
Nn=function(Q){g.FN.call(this);var W=this;this.L=this.U=0;this.Rp=Q!=null?Q:{zK:function(K,l){return setTimeout(K,l)},
TA:function(K){clearTimeout(K)}};
var x,D;this.B=(D=(x=window.navigator)==null?void 0:x.onLine)!=null?D:!0;this.D=function(){return g.U(function(K){return g.A(K,mi(W),0)})};
window.addEventListener("offline",this.D);window.addEventListener("online",this.D);this.L||this.KZ()};
qBv=function(){var Q=g.ct;Nn.instance||(Nn.instance=new Nn(Q));return Nn.instance};
mi=function(Q,W){return Q.N?Q.N:Q.N=new Promise(function(x){var D,K,l,M;return g.U(function(w){switch(w.B){case 1:return D=window.AbortController?new window.AbortController:void 0,l=(K=D)==null?void 0:K.signal,M=!1,g.P5(w,2,3),D&&(Q.U=Q.Rp.zK(function(){D.abort()},W||2E4)),g.A(w,fetch("/generate_204",{method:"HEAD",
signal:l}),5);case 5:M=!0;case 3:g.ps(w);Q.N=void 0;Q.U&&(Q.Rp.TA(Q.U),Q.U=0);M!==Q.B&&(Q.B=M,Q.B?Q.dispatchEvent("networkstatus-online"):Q.dispatchEvent("networkstatus-offline"));x(M);g.hv(w,0);break;case 2:g.Jv(w),M=!1,w.kf(3)}})})};
gx=function(){this.data=[];this.B=-1};
BM5=function(Q){Q.B===-1&&(Q.B=Q.data.reduce(function(W,x,D){return W+(x?Math.pow(2,D):0)},0));
return Q.B};
yP=function(Q){Q.setAttribute("role","link")};
f8=function(Q,W){Array.isArray(W)&&(W=W.join(" "));W===""||W==void 0?(el||(W={},el=(W.atomic=!1,W.autocomplete="none",W.dropeffect="none",W.haspopup=!1,W.live="off",W.multiline=!1,W.multiselectable=!1,W.orientation="vertical",W.readonly=!1,W.relevant="additions text",W.required=!1,W.sort="none",W.busy=!1,W.disabled=!1,W.hidden=!1,W.invalid="false",W)),W=el,"label"in W?Q.setAttribute("aria-label",W.label):Q.removeAttribute("aria-label")):Q.setAttribute("aria-label",W)};
ZH=function(Q){Q=Q.getAttribute("aria-label");return Q==null||Q==void 0?"":String(Q)};
g.Td=function(Q,W,x){g.N.call(this);this.B=null;this.N=!1;this.X=Q;this.L=x;this.U=W||window;this.D=(0,g.FD)(this.Cz,this)};
$IO=function(Q){Q=Q.U;return Q.requestAnimationFrame||Q.webkitRequestAnimationFrame||Q.mozRequestAnimationFrame||Q.oRequestAnimationFrame||Q.msRequestAnimationFrame||null};
Iih=function(Q){Q=Q.U;return Q.cancelAnimationFrame||Q.cancelRequestAnimationFrame||Q.webkitCancelRequestAnimationFrame||Q.mozCancelRequestAnimationFrame||Q.oCancelRequestAnimationFrame||Q.msCancelRequestAnimationFrame||null};
g.O3=function(Q,W,x){g.N.call(this);this.B=Q;this.CA=W||0;this.U=x;this.D=(0,g.FD)(this.AD,this)};
g.E3=function(Q,W){Q.isActive()||Q.start(W)};
g.FW=function(Q){Q.stop();Q.AD()};
g.t2=function(Q){Q.isActive()&&g.FW(Q)};
g.Qu=function(Q,W,x){g.N.call(this);this.N=x!=null?Q.bind(x):Q;this.CA=W;this.D=null;this.B=!1;this.U=0;this.rE=null};
Wg=function(Q){Q.rE=g.Cr(function(){Q.rE=null;Q.B&&!Q.U&&(Q.B=!1,Wg(Q))},Q.CA);
var W=Q.D;Q.D=null;Q.N.apply(null,W)};
g.xR=function(Q,W){this.B=Q[g.Nz.Symbol.iterator]();this.U=W};
mIh=function(Q){return typeof Q.className=="string"?Q.className:Q.getAttribute&&Q.getAttribute("class")||""};
DE=function(Q){return Q.classList?Q.classList:mIh(Q).match(/\S+/g)||[]};
g.KT=function(Q,W){typeof Q.className=="string"?Q.className=W:Q.setAttribute&&Q.setAttribute("class",W)};
g.lf=function(Q,W){return Q.classList?Q.classList.contains(W):g.FH(DE(Q),W)};
g.j$=function(Q,W){if(Q.classList)Q.classList.add(W);else if(!g.lf(Q,W)){var x=mIh(Q);g.KT(Q,x+(x.length>0?" "+W:W))}};
g.Mh=function(Q,W){if(Q.classList)Array.prototype.forEach.call(W,function(K){g.j$(Q,K)});
else{var x={};Array.prototype.forEach.call(DE(Q),function(K){x[K]=!0});
Array.prototype.forEach.call(W,function(K){x[K]=!0});
W="";for(var D in x)W+=W.length>0?" "+D:D;g.KT(Q,W)}};
g.Rr=function(Q,W){Q.classList?Q.classList.remove(W):g.lf(Q,W)&&g.KT(Q,Array.prototype.filter.call(DE(Q),function(x){return x!=W}).join(" "))};
g.wk=function(Q,W){Q.classList?Array.prototype.forEach.call(W,function(x){g.Rr(Q,x)}):g.KT(Q,Array.prototype.filter.call(DE(Q),function(x){return!g.FH(W,x)}).join(" "))};
g.S$=function(Q,W,x){x?g.j$(Q,W):g.Rr(Q,W)};
NMn=function(Q,W){var x=!g.lf(Q,W);g.S$(Q,W,x)};
g.bf=function(){g.FN.call(this);this.B=0;this.endTime=this.startTime=null};
cPh=function(Q,W){Array.isArray(W)||(W=[W]);W=W.map(function(x){return typeof x==="string"?x:x.property+" "+x.duration+"s "+x.timing+" "+x.delay+"s"});
g.SZ(Q,"transition",W.join(","))};
sI=function(Q,W,x,D,K){g.bf.call(this);this.U=Q;this.L=W;this.X=x;this.N=D;this.G=Array.isArray(K)?K:[K]};
gg5=function(Q,W,x,D){return new sI(Q,W,{opacity:x},{opacity:D},{property:"opacity",duration:W,timing:"ease-in",delay:0})};
e4l=function(Q){Q=GR(Q);if(Q=="")return null;var W=String(Q.slice(0,4)).toLowerCase();if(("url("<W?-1:"url("==W?0:1)==0)return!Q.endsWith(")")||(Q?Q.split("(").length-1:0)>1||Q&&Q.split(")"),null;if(Q.indexOf("(")>0){if(/"|'/.test(Q))return null;W=/([\-\w]+)\(/g;for(var x;x=W.exec(Q);)if(!(x[1].toLowerCase()in yPF))return null}return Q};
zy=function(Q,W){Q=g.Nz[Q];return Q&&Q.prototype?(W=Object.getOwnPropertyDescriptor(Q.prototype,W))&&W.get||null:null};
fi2=function(Q){var W=g.Nz.CSSStyleDeclaration;return W&&W.prototype&&W.prototype[Q]||null};
Zps=function(Q,W,x,D){if(Q)return Q.apply(W,D);if(g.kR&&document.documentMode<10){if(!W[x].call)throw Error("IE Clobbering detected");}else if(typeof W[x]!="function")throw Error("Clobbering detected");return W[x].apply(W,D)};
Egh=function(Q){if(!Q)return"";var W=document.createElement("div").style;Lf2(Q).forEach(function(x){var D=g.O6&&x in rPD?x:x.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Je(D,"--")||Je(D,"var")||(x=Zps(TM1,Q,Q.getPropertyValue?"getPropertyValue":"getAttribute",[x])||"",x=e4l(x),x!=null&&Zps(Opz,W,W.setProperty?"setProperty":"setAttribute",[D,x]))});
return W.cssText||""};
Lf2=function(Q){g.Ls(Q)?Q=g.DX(Q):(Q=g.pC(Q),g.Qn(Q,"cssText"));return Q};
g.or=function(Q){var W,x=W=0,D=!1;Q=Q.split(Ff1);for(var K=0;K<Q.length;K++){var l=Q[K];g.XK.test(l)?(W++,x++):tZO.test(l)?D=!0:Qvv.test(l)?x++:WbO.test(l)&&(D=!0)}W=x==0?D?1:0:W/x>.4?-1:1;return(W==0?null:W)==-1?"rtl":"ltr"};
g.Vu=function(Q){if(Q instanceof uf||Q instanceof YR||Q instanceof nT)return Q;if(typeof Q.next=="function")return new uf(function(){return Q});
if(typeof Q[Symbol.iterator]=="function")return new uf(function(){return Q[Symbol.iterator]()});
if(typeof Q.qk=="function")return new uf(function(){return Q.qk()});
throw Error("Not an iterator or iterable.");};
uf=function(Q){this.U=Q};
YR=function(Q){this.U=Q};
nT=function(Q){uf.call(this,function(){return Q});
this.D=Q};
Pg=function(Q,W,x,D,K,l,M,w){this.B=Q;this.G=W;this.D=x;this.L=D;this.N=K;this.X=l;this.U=M;this.S=w};
vg=function(Q,W){if(W==0)return Q.B;if(W==1)return Q.U;var x=zM(Q.B,Q.D,W),D=zM(Q.D,Q.N,W);Q=zM(Q.N,Q.U,W);x=zM(x,D,W);D=zM(D,Q,W);return zM(x,D,W)};
x7s=function(Q,W){var x=(W-Q.B)/(Q.U-Q.B);if(x<=0)return 0;if(x>=1)return 1;for(var D=0,K=1,l=0,M=0;M<8;M++){l=vg(Q,x);var w=(vg(Q,x+1E-6)-l)/1E-6;if(Math.abs(l-W)<1E-6)return x;if(Math.abs(w)<1E-6)break;else l<W?D=x:K=x,x-=(l-W)/w}for(M=0;Math.abs(l-W)>1E-6&&M<8;M++)l<W?(D=x,x=(x+K)/2):(K=x,x=(x+D)/2),l=vg(Q,x);return x};
CT=function(Q,W){this.start=Q<W?Q:W;this.end=Q<W?W:Q};
JU=function(Q){return(Q=Q.exec(g.Ae()))?Q[1]:""};
pT=function(Q){return g.iC(D7z,Q)>=0};
g.hU=function(Q){g.N.call(this);this.X=1;this.D=[];this.N=0;this.B=[];this.U={};this.G=!!Q};
Kbl=function(Q,W,x){g.wv(function(){Q.apply(W,x)})};
g.ar=function(Q){this.B=Q};
Gy=function(Q){this.B=Q};
lGl=function(Q){this.data=Q};
jvO=function(Q){return Q===void 0||Q instanceof lGl?Q:new lGl(Q)};
dk=function(Q){this.B=Q};
g.MOz=function(Q){var W=Q.creation;Q=Q.expiration;return!!Q&&Q<g.QA()||!!W&&W>g.QA()};
g.AU=function(Q){this.B=Q};
Rb2=function(){};
Hg=function(){};
UI=function(Q){this.B=Q;this.U=null};
qh=function(Q){if(Q.B==null)throw Error("Storage mechanism: Storage unavailable");var W;((W=Q.U)!=null?W:Q.isAvailable())||Pu(Error("Storage mechanism: Storage unavailable"))};
Bg=function(){var Q=null;try{Q=g.Nz.localStorage||null}catch(W){}UI.call(this,Q)};
wF5=function(){var Q=null;try{Q=g.Nz.sessionStorage||null}catch(W){}UI.call(this,Q)};
$R=function(Q,W){this.U=Q;this.B=W+"::"};
g.Ir=function(Q){var W=new Bg;return W.isAvailable()?Q?new $R(W,Q):W:null};
mS=function(Q,W){this.B=Q;this.U=W};
Nh=function(Q){this.B=[];if(Q)a:{if(Q instanceof Nh){var W=Q.v8();Q=Q.dY();if(this.B.length<=0){for(var x=this.B,D=0;D<W.length;D++)x.push(new mS(W[D],Q[D]));break a}}else W=g.pC(Q),Q=g.JO(Q);for(x=0;x<W.length;x++)this.YN(W[x],Q[x])}};
cg=function(){Nh.apply(this,arguments)};
gk=function(){};
SaO=function(){var Q=Error();Q.name="SecurityError";throw Q;};
bZl=function(){return{get closed(){return!0},get location(){SaO()},get document(){SaO()},postMessage:function(){},
close:function(){},
focus:function(){}}};
svQ=function(Q){var W,x,D=Q.length,K=0;for(W=0;W<D;W++){var l=Q.charCodeAt(W);if((l&64512)===55296&&W+1<D){var M=Q.charCodeAt(W+1);(M&64512)===56320&&(l=65536+(l-55296<<10)+(M-56320),W++)}K+=l<128?1:l<2048?2:l<65536?3:4}var w=new yu.Cd(K);for(W=x=0;x<K;W++)l=Q.charCodeAt(W),(l&64512)===55296&&W+1<D&&(M=Q.charCodeAt(W+1),(M&64512)===56320&&(l=65536+(l-55296<<10)+(M-56320),W++)),l<128?w[x++]=l:(l<2048?w[x++]=192|l>>>6:(l<65536?w[x++]=224|l>>>12:(w[x++]=240|l>>>18,w[x++]=128|l>>>12&63),w[x++]=128|l>>>
6&63),w[x++]=128|l&63);return w};
e$=function(Q){for(var W=Q.length;--W>=0;)Q[W]=0};
fT=function(Q,W,x,D,K){this.R9=Q;this.T0=W;this.Z_=x;this.G0=D;this.E6f=K;this.If=Q&&Q.length};
ZE=function(Q,W){this.D3=Q;this.pj=0;this.h7=W};
LT=function(Q,W){Q.DA[Q.pending++]=W&255;Q.DA[Q.pending++]=W>>>8&255};
rk=function(Q,W,x){Q.KA>16-x?(Q.yx|=W<<Q.KA&65535,LT(Q,Q.yx),Q.yx=W>>16-Q.KA,Q.KA+=x-16):(Q.yx|=W<<Q.KA&65535,Q.KA+=x)};
Ty=function(Q,W,x){rk(Q,x[W*2],x[W*2+1])};
zb4=function(Q,W){var x=0;do x|=Q&1,Q>>>=1,x<<=1;while(--W>0);return x>>>1};
kNF=function(Q,W,x){var D=Array(16),K=0,l;for(l=1;l<=15;l++)D[l]=K=K+x[l-1]<<1;for(x=0;x<=W;x++)K=Q[x*2+1],K!==0&&(Q[x*2]=zb4(D[K]++,K))};
XFs=function(Q){var W;for(W=0;W<286;W++)Q.mf[W*2]=0;for(W=0;W<30;W++)Q.Nt[W*2]=0;for(W=0;W<19;W++)Q.Rm[W*2]=0;Q.mf[512]=1;Q.Qo=Q.lx=0;Q.YR=Q.matches=0};
okQ=function(Q){Q.KA>8?LT(Q,Q.yx):Q.KA>0&&(Q.DA[Q.pending++]=Q.yx);Q.yx=0;Q.KA=0};
uZh=function(Q,W,x){okQ(Q);LT(Q,x);LT(Q,~x);yu.Fq(Q.DA,Q.window,W,x,Q.pending);Q.pending+=x};
Yan=function(Q,W,x,D){var K=W*2,l=x*2;return Q[K]<Q[l]||Q[K]===Q[l]&&D[W]<=D[x]};
OI=function(Q,W,x){for(var D=Q.JK[x],K=x<<1;K<=Q.Pr;){K<Q.Pr&&Yan(W,Q.JK[K+1],Q.JK[K],Q.depth)&&K++;if(Yan(W,D,Q.JK[K],Q.depth))break;Q.JK[x]=Q.JK[K];x=K;K<<=1}Q.JK[x]=D};
nk4=function(Q,W,x){var D=0;if(Q.YR!==0){do{var K=Q.DA[Q.wL+D*2]<<8|Q.DA[Q.wL+D*2+1];var l=Q.DA[Q.Ms+D];D++;if(K===0)Ty(Q,l,W);else{var M=EI[l];Ty(Q,M+256+1,W);var w=FK[M];w!==0&&(l-=tU[M],rk(Q,l,w));K--;M=K<256?Qo[K]:Qo[256+(K>>>7)];Ty(Q,M,x);w=Wv[M];w!==0&&(K-=xP[M],rk(Q,K,w))}}while(D<Q.YR)}Ty(Q,256,W)};
D9=function(Q,W){var x=W.D3,D=W.h7.R9,K=W.h7.If,l=W.h7.G0,M,w=-1;Q.Pr=0;Q.ys=573;for(M=0;M<l;M++)x[M*2]!==0?(Q.JK[++Q.Pr]=w=M,Q.depth[M]=0):x[M*2+1]=0;for(;Q.Pr<2;){var S=Q.JK[++Q.Pr]=w<2?++w:0;x[S*2]=1;Q.depth[S]=0;Q.Qo--;K&&(Q.lx-=D[S*2+1])}W.pj=w;for(M=Q.Pr>>1;M>=1;M--)OI(Q,x,M);S=l;do M=Q.JK[1],Q.JK[1]=Q.JK[Q.Pr--],OI(Q,x,1),D=Q.JK[1],Q.JK[--Q.ys]=M,Q.JK[--Q.ys]=D,x[S*2]=x[M*2]+x[D*2],Q.depth[S]=(Q.depth[M]>=Q.depth[D]?Q.depth[M]:Q.depth[D])+1,x[M*2+1]=x[D*2+1]=S,Q.JK[1]=S++,OI(Q,x,1);while(Q.Pr>=
2);Q.JK[--Q.ys]=Q.JK[1];M=W.D3;S=W.pj;D=W.h7.R9;K=W.h7.If;l=W.h7.T0;var b=W.h7.Z_,z=W.h7.E6f,k,X=0;for(k=0;k<=15;k++)Q.LN[k]=0;M[Q.JK[Q.ys]*2+1]=0;for(W=Q.ys+1;W<573;W++){var u=Q.JK[W];k=M[M[u*2+1]*2+1]+1;k>z&&(k=z,X++);M[u*2+1]=k;if(!(u>S)){Q.LN[k]++;var Y=0;u>=b&&(Y=l[u-b]);var v=M[u*2];Q.Qo+=v*(k+Y);K&&(Q.lx+=v*(D[u*2+1]+Y))}}if(X!==0){do{for(k=z-1;Q.LN[k]===0;)k--;Q.LN[k]--;Q.LN[k+1]+=2;Q.LN[z]--;X-=2}while(X>0);for(k=z;k!==0;k--)for(u=Q.LN[k];u!==0;)D=Q.JK[--W],D>S||(M[D*2+1]!==k&&(Q.Qo+=(k-
M[D*2+1])*M[D*2],M[D*2+1]=k),u--)}kNF(x,w,Q.LN)};
VO4=function(Q,W,x){var D,K=-1,l=W[1],M=0,w=7,S=4;l===0&&(w=138,S=3);W[(x+1)*2+1]=65535;for(D=0;D<=x;D++){var b=l;l=W[(D+1)*2+1];++M<w&&b===l||(M<S?Q.Rm[b*2]+=M:b!==0?(b!==K&&Q.Rm[b*2]++,Q.Rm[32]++):M<=10?Q.Rm[34]++:Q.Rm[36]++,M=0,K=b,l===0?(w=138,S=3):b===l?(w=6,S=3):(w=7,S=4))}};
Pxa=function(Q,W,x){var D,K=-1,l=W[1],M=0,w=7,S=4;l===0&&(w=138,S=3);for(D=0;D<=x;D++){var b=l;l=W[(D+1)*2+1];if(!(++M<w&&b===l)){if(M<S){do Ty(Q,b,Q.Rm);while(--M!==0)}else b!==0?(b!==K&&(Ty(Q,b,Q.Rm),M--),Ty(Q,16,Q.Rm),rk(Q,M-3,2)):M<=10?(Ty(Q,17,Q.Rm),rk(Q,M-3,3)):(Ty(Q,18,Q.Rm),rk(Q,M-11,7));M=0;K=b;l===0?(w=138,S=3):b===l?(w=6,S=3):(w=7,S=4)}}};
vkl=function(Q){var W=4093624447,x;for(x=0;x<=31;x++,W>>>=1)if(W&1&&Q.mf[x*2]!==0)return 0;if(Q.mf[18]!==0||Q.mf[20]!==0||Q.mf[26]!==0)return 1;for(x=32;x<256;x++)if(Q.mf[x*2]!==0)return 1;return 0};
Kv=function(Q,W,x){Q.DA[Q.wL+Q.YR*2]=W>>>8&255;Q.DA[Q.wL+Q.YR*2+1]=W&255;Q.DA[Q.Ms+Q.YR]=x&255;Q.YR++;W===0?Q.mf[x*2]++:(Q.matches++,W--,Q.mf[(EI[x]+256+1)*2]++,Q.Nt[(W<256?Qo[W]:Qo[256+(W>>>7)])*2]++);return Q.YR===Q.X2-1};
jS=function(Q,W){Q.msg=l$[W];return W};
M1=function(Q){for(var W=Q.length;--W>=0;)Q[W]=0};
R2=function(Q){var W=Q.state,x=W.pending;x>Q.OT&&(x=Q.OT);x!==0&&(yu.Fq(Q.output,W.DA,W.Dv,x,Q.Ng),Q.Ng+=x,W.Dv+=x,Q.dT+=x,Q.OT-=x,W.pending-=x,W.pending===0&&(W.Dv=0))};
b$=function(Q,W){var x=Q.F4>=0?Q.F4:-1,D=Q.Ni-Q.F4,K=0;if(Q.level>0){Q.Gx.p$===2&&(Q.Gx.p$=vkl(Q));D9(Q,Q.CB);D9(Q,Q.c5);VO4(Q,Q.mf,Q.CB.pj);VO4(Q,Q.Nt,Q.c5.pj);D9(Q,Q.vG);for(K=18;K>=3&&Q.Rm[CxO[K]*2+1]===0;K--);Q.Qo+=3*(K+1)+5+5+4;var l=Q.Qo+3+7>>>3;var M=Q.lx+3+7>>>3;M<=l&&(l=M)}else l=M=D+5;if(D+4<=l&&x!==-1)rk(Q,W?1:0,3),uZh(Q,x,D);else if(Q.strategy===4||M===l)rk(Q,2+(W?1:0),3),nk4(Q,wT,SS);else{rk(Q,4+(W?1:0),3);x=Q.CB.pj+1;D=Q.c5.pj+1;K+=1;rk(Q,x-257,5);rk(Q,D-1,5);rk(Q,K-4,4);for(l=0;l<K;l++)rk(Q,
Q.Rm[CxO[l]*2+1],3);Pxa(Q,Q.mf,x-1);Pxa(Q,Q.Nt,D-1);nk4(Q,Q.mf,Q.Nt)}XFs(Q);W&&okQ(Q);Q.F4=Q.Ni;R2(Q.Gx)};
sb=function(Q,W){Q.DA[Q.pending++]=W};
zK=function(Q,W){Q.DA[Q.pending++]=W>>>8&255;Q.DA[Q.pending++]=W&255};
JH4=function(Q,W){var x=Q.hF,D=Q.Ni,K=Q.Rh,l=Q.KL,M=Q.Ni>Q.xp-262?Q.Ni-(Q.xp-262):0,w=Q.window,S=Q.pU,b=Q.R7,z=Q.Ni+258,k=w[D+K-1],X=w[D+K];Q.Rh>=Q.Qq&&(x>>=2);l>Q.IW&&(l=Q.IW);do{var u=W;if(w[u+K]===X&&w[u+K-1]===k&&w[u]===w[D]&&w[++u]===w[D+1]){D+=2;for(u++;w[++D]===w[++u]&&w[++D]===w[++u]&&w[++D]===w[++u]&&w[++D]===w[++u]&&w[++D]===w[++u]&&w[++D]===w[++u]&&w[++D]===w[++u]&&w[++D]===w[++u]&&D<z;);u=258-(z-D);D=z-258;if(u>K){Q.qg=W;K=u;if(u>=l)break;k=w[D+K-1];X=w[D+K]}}}while((W=b[W&S])>M&&--x!==
0);return K<=Q.IW?K:Q.IW};
o2=function(Q){var W=Q.xp,x;do{var D=Q.Sf-Q.IW-Q.Ni;if(Q.Ni>=W+(W-262)){yu.Fq(Q.window,Q.window,W,W,0);Q.qg-=W;Q.Ni-=W;Q.F4-=W;var K=x=Q.EM;do{var l=Q.head[--K];Q.head[K]=l>=W?l-W:0}while(--x);K=x=W;do l=Q.R7[--K],Q.R7[K]=l>=W?l-W:0;while(--x);D+=W}if(Q.Gx.mE===0)break;K=Q.Gx;x=Q.window;l=Q.Ni+Q.IW;var M=K.mE;M>D&&(M=D);M===0?x=0:(K.mE-=M,yu.Fq(x,K.input,K.vl,M,l),K.state.wrap===1?K.yp=kP(K.yp,x,M,l):K.state.wrap===2&&(K.yp=XP(K.yp,x,M,l)),K.vl+=M,K.rr+=M,x=M);Q.IW+=x;if(Q.IW+Q.YN>=3)for(D=Q.Ni-Q.YN,
Q.zx=Q.window[D],Q.zx=(Q.zx<<Q.CN^Q.window[D+1])&Q.Wr;Q.YN&&!(Q.zx=(Q.zx<<Q.CN^Q.window[D+3-1])&Q.Wr,Q.R7[D&Q.pU]=Q.head[Q.zx],Q.head[Q.zx]=D,D++,Q.YN--,Q.IW+Q.YN<3););}while(Q.IW<262&&Q.Gx.mE!==0)};
u$=function(Q,W){for(var x;;){if(Q.IW<262){o2(Q);if(Q.IW<262&&W===0)return 1;if(Q.IW===0)break}x=0;Q.IW>=3&&(Q.zx=(Q.zx<<Q.CN^Q.window[Q.Ni+3-1])&Q.Wr,x=Q.R7[Q.Ni&Q.pU]=Q.head[Q.zx],Q.head[Q.zx]=Q.Ni);x!==0&&Q.Ni-x<=Q.xp-262&&(Q.ZG=JH4(Q,x));if(Q.ZG>=3)if(x=Kv(Q,Q.Ni-Q.qg,Q.ZG-3),Q.IW-=Q.ZG,Q.ZG<=Q.tL&&Q.IW>=3){Q.ZG--;do Q.Ni++,Q.zx=(Q.zx<<Q.CN^Q.window[Q.Ni+3-1])&Q.Wr,Q.R7[Q.Ni&Q.pU]=Q.head[Q.zx],Q.head[Q.zx]=Q.Ni;while(--Q.ZG!==0);Q.Ni++}else Q.Ni+=Q.ZG,Q.ZG=0,Q.zx=Q.window[Q.Ni],Q.zx=(Q.zx<<Q.CN^
Q.window[Q.Ni+1])&Q.Wr;else x=Kv(Q,0,Q.window[Q.Ni]),Q.IW--,Q.Ni++;if(x&&(b$(Q,!1),Q.Gx.OT===0))return 1}Q.YN=Q.Ni<2?Q.Ni:2;return W===4?(b$(Q,!0),Q.Gx.OT===0?3:4):Q.YR&&(b$(Q,!1),Q.Gx.OT===0)?1:2};
YP=function(Q,W){for(var x,D;;){if(Q.IW<262){o2(Q);if(Q.IW<262&&W===0)return 1;if(Q.IW===0)break}x=0;Q.IW>=3&&(Q.zx=(Q.zx<<Q.CN^Q.window[Q.Ni+3-1])&Q.Wr,x=Q.R7[Q.Ni&Q.pU]=Q.head[Q.zx],Q.head[Q.zx]=Q.Ni);Q.Rh=Q.ZG;Q.YE=Q.qg;Q.ZG=2;x!==0&&Q.Rh<Q.tL&&Q.Ni-x<=Q.xp-262&&(Q.ZG=JH4(Q,x),Q.ZG<=5&&(Q.strategy===1||Q.ZG===3&&Q.Ni-Q.qg>4096)&&(Q.ZG=2));if(Q.Rh>=3&&Q.ZG<=Q.Rh){D=Q.Ni+Q.IW-3;x=Kv(Q,Q.Ni-1-Q.YE,Q.Rh-3);Q.IW-=Q.Rh-1;Q.Rh-=2;do++Q.Ni<=D&&(Q.zx=(Q.zx<<Q.CN^Q.window[Q.Ni+3-1])&Q.Wr,Q.R7[Q.Ni&Q.pU]=
Q.head[Q.zx],Q.head[Q.zx]=Q.Ni);while(--Q.Rh!==0);Q.kF=0;Q.ZG=2;Q.Ni++;if(x&&(b$(Q,!1),Q.Gx.OT===0))return 1}else if(Q.kF){if((x=Kv(Q,0,Q.window[Q.Ni-1]))&&b$(Q,!1),Q.Ni++,Q.IW--,Q.Gx.OT===0)return 1}else Q.kF=1,Q.Ni++,Q.IW--}Q.kF&&(Kv(Q,0,Q.window[Q.Ni-1]),Q.kF=0);Q.YN=Q.Ni<2?Q.Ni:2;return W===4?(b$(Q,!0),Q.Gx.OT===0?3:4):Q.YR&&(b$(Q,!1),Q.Gx.OT===0)?1:2};
pFv=function(Q,W){for(var x,D,K,l=Q.window;;){if(Q.IW<=258){o2(Q);if(Q.IW<=258&&W===0)return 1;if(Q.IW===0)break}Q.ZG=0;if(Q.IW>=3&&Q.Ni>0&&(D=Q.Ni-1,x=l[D],x===l[++D]&&x===l[++D]&&x===l[++D])){for(K=Q.Ni+258;x===l[++D]&&x===l[++D]&&x===l[++D]&&x===l[++D]&&x===l[++D]&&x===l[++D]&&x===l[++D]&&x===l[++D]&&D<K;);Q.ZG=258-(K-D);Q.ZG>Q.IW&&(Q.ZG=Q.IW)}Q.ZG>=3?(x=Kv(Q,1,Q.ZG-3),Q.IW-=Q.ZG,Q.Ni+=Q.ZG,Q.ZG=0):(x=Kv(Q,0,Q.window[Q.Ni]),Q.IW--,Q.Ni++);if(x&&(b$(Q,!1),Q.Gx.OT===0))return 1}Q.YN=0;return W===
4?(b$(Q,!0),Q.Gx.OT===0?3:4):Q.YR&&(b$(Q,!1),Q.Gx.OT===0)?1:2};
hbF=function(Q,W){for(var x;;){if(Q.IW===0&&(o2(Q),Q.IW===0)){if(W===0)return 1;break}Q.ZG=0;x=Kv(Q,0,Q.window[Q.Ni]);Q.IW--;Q.Ni++;if(x&&(b$(Q,!1),Q.Gx.OT===0))return 1}Q.YN=0;return W===4?(b$(Q,!0),Q.Gx.OT===0?3:4):Q.YR&&(b$(Q,!1),Q.Gx.OT===0)?1:2};
nv=function(Q,W,x,D,K){this.xjj=Q;this.Ldj=W;this.Hn7=x;this.diZ=D;this.func=K};
aG5=function(){this.Gx=null;this.status=0;this.DA=null;this.wrap=this.pending=this.Dv=this.Mk=0;this.u6=null;this.jy=0;this.method=8;this.Ah=-1;this.pU=this.tR=this.xp=0;this.window=null;this.Sf=0;this.head=this.R7=null;this.KL=this.Qq=this.strategy=this.level=this.tL=this.hF=this.Rh=this.IW=this.qg=this.Ni=this.kF=this.YE=this.ZG=this.F4=this.CN=this.Wr=this.VM=this.EM=this.zx=0;this.mf=new yu.Nz(1146);this.Nt=new yu.Nz(122);this.Rm=new yu.Nz(78);M1(this.mf);M1(this.Nt);M1(this.Rm);this.vG=this.c5=
this.CB=null;this.LN=new yu.Nz(16);this.JK=new yu.Nz(573);M1(this.JK);this.ys=this.Pr=0;this.depth=new yu.Nz(573);M1(this.depth);this.KA=this.yx=this.YN=this.matches=this.lx=this.Qo=this.wL=this.YR=this.X2=this.Ms=0};
GND=function(Q,W){if(!Q||!Q.state||W>5||W<0)return Q?jS(Q,-2):-2;var x=Q.state;if(!Q.output||!Q.input&&Q.mE!==0||x.status===666&&W!==4)return jS(Q,Q.OT===0?-5:-2);x.Gx=Q;var D=x.Ah;x.Ah=W;if(x.status===42)if(x.wrap===2)Q.yp=0,sb(x,31),sb(x,139),sb(x,8),x.u6?(sb(x,(x.u6.text?1:0)+(x.u6.Ao?2:0)+(x.u6.extra?4:0)+(x.u6.name?8:0)+(x.u6.comment?16:0)),sb(x,x.u6.time&255),sb(x,x.u6.time>>8&255),sb(x,x.u6.time>>16&255),sb(x,x.u6.time>>24&255),sb(x,x.level===9?2:x.strategy>=2||x.level<2?4:0),sb(x,x.u6.os&
255),x.u6.extra&&x.u6.extra.length&&(sb(x,x.u6.extra.length&255),sb(x,x.u6.extra.length>>8&255)),x.u6.Ao&&(Q.yp=XP(Q.yp,x.DA,x.pending,0)),x.jy=0,x.status=69):(sb(x,0),sb(x,0),sb(x,0),sb(x,0),sb(x,0),sb(x,x.level===9?2:x.strategy>=2||x.level<2?4:0),sb(x,3),x.status=113);else{var K=8+(x.tR-8<<4)<<8;K|=(x.strategy>=2||x.level<2?0:x.level<6?1:x.level===6?2:3)<<6;x.Ni!==0&&(K|=32);x.status=113;zK(x,K+(31-K%31));x.Ni!==0&&(zK(x,Q.yp>>>16),zK(x,Q.yp&65535));Q.yp=1}if(x.status===69)if(x.u6.extra){for(K=
x.pending;x.jy<(x.u6.extra.length&65535)&&(x.pending!==x.Mk||(x.u6.Ao&&x.pending>K&&(Q.yp=XP(Q.yp,x.DA,x.pending-K,K)),R2(Q),K=x.pending,x.pending!==x.Mk));)sb(x,x.u6.extra[x.jy]&255),x.jy++;x.u6.Ao&&x.pending>K&&(Q.yp=XP(Q.yp,x.DA,x.pending-K,K));x.jy===x.u6.extra.length&&(x.jy=0,x.status=73)}else x.status=73;if(x.status===73)if(x.u6.name){K=x.pending;do{if(x.pending===x.Mk&&(x.u6.Ao&&x.pending>K&&(Q.yp=XP(Q.yp,x.DA,x.pending-K,K)),R2(Q),K=x.pending,x.pending===x.Mk)){var l=1;break}l=x.jy<x.u6.name.length?
x.u6.name.charCodeAt(x.jy++)&255:0;sb(x,l)}while(l!==0);x.u6.Ao&&x.pending>K&&(Q.yp=XP(Q.yp,x.DA,x.pending-K,K));l===0&&(x.jy=0,x.status=91)}else x.status=91;if(x.status===91)if(x.u6.comment){K=x.pending;do{if(x.pending===x.Mk&&(x.u6.Ao&&x.pending>K&&(Q.yp=XP(Q.yp,x.DA,x.pending-K,K)),R2(Q),K=x.pending,x.pending===x.Mk)){l=1;break}l=x.jy<x.u6.comment.length?x.u6.comment.charCodeAt(x.jy++)&255:0;sb(x,l)}while(l!==0);x.u6.Ao&&x.pending>K&&(Q.yp=XP(Q.yp,x.DA,x.pending-K,K));l===0&&(x.status=103)}else x.status=
103;x.status===103&&(x.u6.Ao?(x.pending+2>x.Mk&&R2(Q),x.pending+2<=x.Mk&&(sb(x,Q.yp&255),sb(x,Q.yp>>8&255),Q.yp=0,x.status=113)):x.status=113);if(x.pending!==0){if(R2(Q),Q.OT===0)return x.Ah=-1,0}else if(Q.mE===0&&(W<<1)-(W>4?9:0)<=(D<<1)-(D>4?9:0)&&W!==4)return jS(Q,-5);if(x.status===666&&Q.mE!==0)return jS(Q,-5);if(Q.mE!==0||x.IW!==0||W!==0&&x.status!==666){D=x.strategy===2?hbF(x,W):x.strategy===3?pFv(x,W):Vo[x.level].func(x,W);if(D===3||D===4)x.status=666;if(D===1||D===3)return Q.OT===0&&(x.Ah=
-1),0;if(D===2&&(W===1?(rk(x,2,3),Ty(x,256,wT),x.KA===16?(LT(x,x.yx),x.yx=0,x.KA=0):x.KA>=8&&(x.DA[x.pending++]=x.yx&255,x.yx>>=8,x.KA-=8)):W!==5&&(rk(x,0,3),uZh(x,0,0),W===3&&(M1(x.head),x.IW===0&&(x.Ni=0,x.F4=0,x.YN=0))),R2(Q),Q.OT===0))return x.Ah=-1,0}if(W!==4)return 0;if(x.wrap<=0)return 1;x.wrap===2?(sb(x,Q.yp&255),sb(x,Q.yp>>8&255),sb(x,Q.yp>>16&255),sb(x,Q.yp>>24&255),sb(x,Q.rr&255),sb(x,Q.rr>>8&255),sb(x,Q.rr>>16&255),sb(x,Q.rr>>24&255)):(zK(x,Q.yp>>>16),zK(x,Q.yp&65535));R2(Q);x.wrap>0&&
(x.wrap=-x.wrap);return x.pending!==0?0:1};
Pv=function(Q){if(!(this instanceof Pv))return new Pv(Q);Q=this.options=yu.assign({level:-1,method:8,chunkSize:16384,B2:15,Gn3:8,strategy:0,nY:""},Q||{});Q.raw&&Q.B2>0?Q.B2=-Q.B2:Q.q3t&&Q.B2>0&&Q.B2<16&&(Q.B2+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Gx=new d72;this.Gx.OT=0;var W=this.Gx;var x=Q.level,D=Q.method,K=Q.B2,l=Q.Gn3,M=Q.strategy;if(W){var w=1;x===-1&&(x=6);K<0?(w=0,K=-K):K>15&&(w=2,K-=16);if(l<1||l>9||D!==8||K<8||K>15||x<0||x>9||M<0||M>4)W=jS(W,-2);else{K===8&&(K=9);
var S=new aG5;W.state=S;S.Gx=W;S.wrap=w;S.u6=null;S.tR=K;S.xp=1<<S.tR;S.pU=S.xp-1;S.VM=l+7;S.EM=1<<S.VM;S.Wr=S.EM-1;S.CN=~~((S.VM+3-1)/3);S.window=new yu.Cd(S.xp*2);S.head=new yu.Nz(S.EM);S.R7=new yu.Nz(S.xp);S.X2=1<<l+6;S.Mk=S.X2*4;S.DA=new yu.Cd(S.Mk);S.wL=1*S.X2;S.Ms=3*S.X2;S.level=x;S.strategy=M;S.method=D;if(W&&W.state){W.rr=W.dT=0;W.p$=2;x=W.state;x.pending=0;x.Dv=0;x.wrap<0&&(x.wrap=-x.wrap);x.status=x.wrap?42:113;W.yp=x.wrap===2?0:1;x.Ah=0;if(!iZ2){D=Array(16);for(l=M=0;l<28;l++)for(tU[l]=
M,K=0;K<1<<FK[l];K++)EI[M++]=l;EI[M-1]=l;for(l=M=0;l<16;l++)for(xP[l]=M,K=0;K<1<<Wv[l];K++)Qo[M++]=l;for(M>>=7;l<30;l++)for(xP[l]=M<<7,K=0;K<1<<Wv[l]-7;K++)Qo[256+M++]=l;for(K=0;K<=15;K++)D[K]=0;for(K=0;K<=143;)wT[K*2+1]=8,K++,D[8]++;for(;K<=255;)wT[K*2+1]=9,K++,D[9]++;for(;K<=279;)wT[K*2+1]=7,K++,D[7]++;for(;K<=287;)wT[K*2+1]=8,K++,D[8]++;kNF(wT,287,D);for(K=0;K<30;K++)SS[K*2+1]=5,SS[K*2]=zb4(K,5);AHa=new fT(wT,FK,257,286,15);HZD=new fT(SS,Wv,0,30,15);U7a=new fT([],qan,0,19,7);iZ2=!0}x.CB=new ZE(x.mf,
AHa);x.c5=new ZE(x.Nt,HZD);x.vG=new ZE(x.Rm,U7a);x.yx=0;x.KA=0;XFs(x);x=0}else x=jS(W,-2);x===0&&(W=W.state,W.Sf=2*W.xp,M1(W.head),W.tL=Vo[W.level].Ldj,W.Qq=Vo[W.level].xjj,W.KL=Vo[W.level].Hn7,W.hF=Vo[W.level].diZ,W.Ni=0,W.F4=0,W.IW=0,W.YN=0,W.ZG=W.Rh=2,W.kF=0,W.zx=0);W=x}}else W=-2;if(W!==0)throw Error(l$[W]);Q.header&&(W=this.Gx)&&W.state&&W.state.wrap===2&&(W.state.u6=Q.header);if(Q.M0){var b;typeof Q.M0==="string"?b=svQ(Q.M0):BJs.call(Q.M0)==="[object ArrayBuffer]"?b=new Uint8Array(Q.M0):b=Q.M0;
Q=this.Gx;l=b;M=l.length;if(Q&&Q.state)if(b=Q.state,W=b.wrap,W===2||W===1&&b.status!==42||b.IW)W=-2;else{W===1&&(Q.yp=kP(Q.yp,l,M,0));b.wrap=0;M>=b.xp&&(W===0&&(M1(b.head),b.Ni=0,b.F4=0,b.YN=0),x=new yu.Cd(b.xp),yu.Fq(x,l,M-b.xp,b.xp,0),l=x,M=b.xp);x=Q.mE;D=Q.vl;K=Q.input;Q.mE=M;Q.vl=0;Q.input=l;for(o2(b);b.IW>=3;){l=b.Ni;M=b.IW-2;do b.zx=(b.zx<<b.CN^b.window[l+3-1])&b.Wr,b.R7[l&b.pU]=b.head[b.zx],b.head[b.zx]=l,l++;while(--M);b.Ni=l;b.IW=2;o2(b)}b.Ni+=b.IW;b.F4=b.Ni;b.YN=b.IW;b.IW=0;b.ZG=b.Rh=2;
b.kF=0;Q.vl=D;Q.input=K;Q.mE=x;b.wrap=W;W=0}else W=-2;if(W!==0)throw Error(l$[W]);this.kzf=!0}};
$7z=function(Q,W){W=W||{};W.q3t=!0;W=new Pv(W);W.push(Q,!0);if(W.err)throw W.msg||l$[W.err];return W.result};
IGl=function(){var Q=g.i2.apply(0,arguments);return Q.length===0?function(W){return W}:Q.length===1?Q[0]:Q.reduce(function(W,x){return function(){return W(x.apply(null,g.C(g.i2.apply(0,arguments))))}})};
m71=function(){var Q=g.i2.apply(0,arguments);return function(W){return function(x,D){function K(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
x=W(x,D);var l={getState:x.getState,dispatch:function(M){return K.apply(null,[M].concat(g.C(g.i2.apply(1,arguments))))}};
D=Q.map(function(M){return M(l)});
K=IGl.apply(null,g.C(D))(x.dispatch);return Object.assign({},x,{dispatch:K})}}};
vv=function(){return Math.random().toString(36).substring(7).split("").join(".")};
NJv=function(Q){Object.keys(Q).forEach(function(W){var x=Q[W];if(typeof x(void 0,{type:Cv})==="undefined")throw Error('The slice reducer for key "'+W+"\" 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 x(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+vv()})==="undefined")throw Error('The slice reducer for key "'+
W+"\" returned undefined when probed with a random type. Don't try to handle '"+(Cv+'\' 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.'));})};
cHF=function(Q,W,x){function D(){if(z)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 w}
function K(u){if(typeof u!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof u+"'");if(z)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 Y=!0;b===S&&(b=S.slice());b.push(u);return function(){if(Y){if(z)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.");
Y=!1;b===S&&(b=S.slice());b.splice(b.indexOf(u),1);S=null}}}
function l(u){if(typeof u!=="object"||u===null)var Y=!1;else{for(Y=u;Object.getPrototypeOf(Y)!==null;)Y=Object.getPrototypeOf(Y);Y=Object.getPrototypeOf(u)===Y}if(!Y)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof u+"'. 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 u.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(z)throw Error("Reducers may not dispatch actions.");try{z=!0,w=M(w,u)}finally{z=!1}Y=S=b;for(var v=0;v<Y.length;v++)(0,Y[v])();return u}
if(typeof W==="function"&&typeof x==="function"||typeof x==="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 W==="function"&&typeof x==="undefined"&&(x=W,W=void 0);if(typeof x!=="undefined"){if(typeof x!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+
typeof x+"'");return x(cHF)(Q,W)}if(typeof Q!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof Q+"'");var M=Q,w=W,S=[],b=S,z=!1;l({type:Cv});var k={},X=(k.dispatch=l,k.subscribe=K,k.getState=D,k.replaceReducer=function(u){if(typeof u!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof u);M=u;l({type:gkO});return X},k[yH4]=function(){var u={};
return u.subscribe=function(Y){function v(){Y.next&&Y.next(D())}
if(typeof Y!=="object"||Y===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof Y+"'");v();return{unsubscribe:K(v)}},u[yH4]=function(){return this},u},k);
return X};
eb4=function(Q){return Q?(Q=Q.privateDoNotAccessOrElseSafeScriptWrappedValue)?hZ4(Q):null:null};
Jx=function(Q){return Q?(Q=Q.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?hi(Q):null:null};
ZZ4=function(Q){Q=fGa(Q);return $c(Q)};
g.pv=function(Q){Q=fGa(Q);return hi(Q)};
fGa=function(Q){return Q===null?"null":Q===void 0?"undefined":Q};
hx=function(Q){this.pn=qa(Q)};
rHv=function(Q){var W=Q.split(Q.slice(0,0)),x=[1146819774,W,-525416512,function(){for(var D=64,K=[];++D-K.length-32;)switch(D){case 58:D=96;continue;case 91:D=44;break;case 65:D=47;continue;case 46:D=153;case 123:D-=58;default:K.push(String.fromCharCode(D))}return K},
269401764,-1143498676,-1134568078,-715014498,function(D,K,l,M,w,S,b,z){return K(l,M,w,S,b,z)},
function(D,K){for(D=(D%K.length+K.length)%K.length;D--;)K.unshift(K.pop())},
-1895399213,-891415005,757190260,function(D,K,l){var M=l.length;D.forEach(function(w,S,b){this.push(b[S]=l[(l.indexOf(w)-l.indexOf(this[S])+S+M--)%l.length])},K.split(""))},
function(){for(var D=64,K=[];++D-K.length-32;){switch(D){case 91:D=44;continue;case 123:D=65;break;case 65:D-=18;continue;case 58:D=96;continue;case 46:D=95}K.push(String.fromCharCode(D))}return K},
1509825060,-367647517,-82319947,"while",127399200,1593057169,1659870809,-1307034530,1663874998,140706056,-1899937801,1713538628,function(D,K,l){var M=l.length;D.forEach(function(w,S,b){this.push(b[S]=l[(l.indexOf(w)-l.indexOf(this[S])+S+M--)%l.length])},K.split(""))},
-1800801525,function(D,K){if(D.length!=0){K=(K%D.length+D.length)%D.length;var l=D[0];D[0]=D[K];D[K]=l}},
-725023573,function(){for(var D=64,K=[];++D-K.length-32;){switch(D){case 58:D-=14;case 91:case 92:case 93:continue;case 123:D=47;case 94:case 95:case 96:continue;case 46:D=95}K.push(String.fromCharCode(D))}return K},
function(D){D.reverse()},
function(D){for(var K=D.length;K;)D.push(D.splice(--K,1)[0])},
755799827,function(D,K,l,M,w,S,b,z,k,X,u,Y){return l(M,w,S,b,z,k,X,u,Y)},
function(D,K,l,M,w){return K(l,M,w)},
-833718747,function(D,K,l,M,w,S){return K(M,w,S)},
function(){for(var D=64,K=[];++D-K.length-32;)switch(D){case 46:D=95;default:K.push(String.fromCharCode(D));case 94:case 95:case 96:break;case 123:D-=76;case 92:case 93:continue;case 58:D=44;case 91:}return K},
387366929,1294326336,1134807967,-176546365,null,null,function(D,K){K=(K%D.length+D.length)%D.length;D.splice(-K).reverse().forEach(function(l){D.unshift(l)})},
function(D,K){D.push(K)},
-817674290,function(D,K){D.splice(D.length,0,K)},
-928659892,1973034304,866857230,-1979987173,808471291,W,229719437,332316752,function(D,K){K=(K%D.length+D.length)%D.length;D.splice(K,1)},
1068497980,-1919908387,W,function(D,K){K.length!=0&&(D=(D%K.length+K.length)%K.length,K.splice(0,1,K.splice(D,1,K[0])[0]))},
1509958216,2102118447,null,-1568815990,-1516296779,-779573754,1267157188,982952610,-1254017798,-82319947,1818289699,function(D,K){D.push(K)},
-1846091174,"(,[[",function(D,K,l,M,w,S,b){return D(w,S,b)},
-1655147308];x[44]=x;x[45]=x;x[65]=x;if(typeof Lbl==="undefined")return Q;try{try{(x[24]>=-1||((0,x[36])((0,x[32])(x[1]),x[32],x[61]),0))&&((0,x[33])(x[65]),x[32])(x[77],x[72]),x[44]===8?((((0,x[40])((0,x[16])(x[57],x[33]),x[new Date("1970-01-01T10:15:20.000+10:15")/1E3],(0,x[20])(x[77],x[new Date("1970-01-01T01:15:09.000+01:15")/1E3]),x[77],x[56]),x[46])(x[23]),x[20])(x[77],x[66]),(0,x[42])((0,x[65])(x[77],x[60],(0,x[47])()),x[51],x[77],x[60],(0,x[47])()),(0,x[32])(x[77],x[14]),x[32])(x[23],x[68])+
(0,x[46])(x[77]):(0,x[43])((0,x[46])(x[23])/(0,x[32])(x[33],x[76]),(((0,x[38])(x[new Date("1969-12-31T19:15:29.000-04:45")/1E3],x[41]),x[55])(x[39],x[5]),x[26])(x[4],x[31])!==(0,x[75])(x[14],x[23]),x[7],x[52],(0,x[38])(x[23],x[25]),(0,x[55])(x[4],x[59]),(0,x[75])(x[68],x[40]),x[20]),x[58]==-3&&((0,x[45])((0,x[45])((0,x[23])(x[20],x[57]),x[23],x[26],x[24]),x[49],x[26-1%Math.pow(1,new Date("1969-12-31T12:30:04.000-11:30")/1E3)]),(0,x[68])(x[26],x[63],(0,x[78])()),1)||((0,x[43])((0,x[35])(x[37],x[74]),
x[1],(0,x[1])(x[65],x[48]),x[71],x[58]),x[34])(x[71],x[29],(0,x[8])())}catch(D){(((0,x[20])(x[71],x[64+41%(new Date("1970-01-01T03:23:07.000+03:15")/1E3)-76],(0,x[33])()),x[34])(x[71],x[29],(0,x[16])()),x[34])(x[65],x[29],(0,x[16])())}finally{(x[36]==1||((0,x[18])(x[71],x[27]),void 0))&&(0,x[new Date("1969-12-31T19:45:20.000-04:15")/1E3])(x[46],x[29],(0,x[16])())}try{x[17]<9&&(x[57]==8?(0,x[39])((0,x[1])(x[61],x[66]),x[11],(0,x[34])(x[71],x[29],(0,x[16])()),x[new Date("1969-12-31T14:30:20.000-09:30")/
1E3],x[46],x[29],(0,x[33])()):(0,x[15])(x[65])&(0,x[68])(x[46],x[24])^(0,x[new Date("1969-12-31T22:15:15.000-01:45")/1E3])(x[new Date("1970-01-01T04:45:02.000+04:45")/1E3])),x[24]!==3&&(x[73]!=-1?((0,x[64])(x[75]),(0,x[64])(x[53],x[46]),x[38])(x[54],x[3]):(0,x[37])((0,x[48])(x[20],x[57],(0,x[new Date("1969-12-31T17:30:44.000-06:30")/1E3])()),x[29],(0,x[17])(x[new Date("1970-01-01T03:30:20.000+03:30")/1E3],x[0]),x[new Date("1970-01-01T11:30:31.000+11:30")/1E3],x[9])),x[9]<=new Date("1970-01-01T08:44:58.000+08:45")/
1E3&&(x[11]!=0||((0,x[39])((0,x[48])(x[20],x[57],(0,x[36])()),x[17],x[74],x[35]),0))&&(0,x[39])((0,x[66])(x[19],x[20]),x[1],x[10],x[25]),x[32]<-4&&(x[71]!=4?((((((0,x[66])(x[23],x[31]),x[72])(x[24]),(0,x[43])(x[34],x[50]),x[43])(x[63],x[24]),(0,x[27])(x[16],(0,x[31])(x[40],x[54]),(0,x[56])(x[40],x[20]),(0,x[43])(x[38],x[40]),x[21],x[40]),x[17])((0,x[46])(x[27],x[9]),x[new Date("1969-12-31T13:15:08.000-10:45")/1E3],x[6],x[53]),x[33])(x[37],x[77]),(0,x[10])(x[73],x[75])):(0,x[26])(x[new Date("1969-12-31T22:15:11.000-01:45")/
1E3],(0,x[68])((((0,x[46])(x[43],x[67]),x[77])(x[23],x[6],(0,x[21])()),x[15])(x[76],x[49])*(0,x[58])(x[59],x[74]),x[58],x[43],x[5]),(0,x[11])(x[43],x[6],(0,x[73])())+(0,x[68])((0,x[42])(x[81],x[43]),x[11],x[43],x[6],(0,x[73])()),((0,x[46])(x[59],x[79]),x[77])(x[43],x[-30098-new Date("1969-12-31T07:38:16.000-08:00")/1E3],(0,x[73])()),x[43],x[6],(0,x[73])())*(0,x[11])(x[43],x[6],(0,x[73])())),x[18]<=4&&(0,x[58])(x[59],x[56])}catch(D){(0,x[16])(x[3]),(0,x[10])((0,x[19])(x[4],x[7]),x[19],(0,x[2])(x[75],
x[35]),x[69],x[76]),(0,x[41])(x[80],x[49])}}catch(D){return"XTKCVHb87lctp0ByeL-_w8_"+Q}return W.join("")};
TJh=function(Q){return Q,"cpn"[2+!!Q]};
g.a2=function(Q){this.name=Q};
OZF=function(Q){this.pn=qa(Q)};
GK=function(Q){this.pn=qa(Q)};
dT=function(Q){this.pn=qa(Q)};
Eks=function(Q){this.pn=qa(Q)};
i$=function(Q){this.pn=qa(Q)};
Ax=function(Q){this.pn=qa(Q)};
Hv=function(Q){this.pn=qa(Q)};
Ub=function(Q){this.pn=qa(Q)};
q1=function(Q){this.pn=qa(Q)};
Bv=function(Q){this.pn=qa(Q)};
$P=function(Q){this.pn=qa(Q)};
I2=function(Q){this.pn=qa(Q)};
cv=function(Q){this.pn=qa(Q)};
gT=function(Q){this.pn=qa(Q)};
yo=function(Q){this.pn=qa(Q)};
eS=function(Q){this.pn=qa(Q,500)};
fv=function(Q){this.pn=qa(Q)};
Z9=function(Q){this.pn=qa(Q)};
Fbh=function(Q){this.pn=qa(Q)};
tO5=function(){return g.yF("yt.ads.biscotti.lastId_")||""};
Qbl=function(Q){g.g4("yt.ads.biscotti.lastId_",Q)};
rT=function(){var Q=arguments,W=Lv;Q.length>1?W[Q[0]]=Q[1]:Q.length===1&&Object.assign(W,Q[0])};
g.TK=function(Q,W){return Q in Lv?Lv[Q]:W};
Ob=function(Q){var W=Lv.EXPERIMENT_FLAGS;return W?W[Q]:void 0};
Wi5=function(Q){Eb.forEach(function(W){return W(Q)})};
g.tx=function(Q){return Q&&window.yterr?function(){try{return Q.apply(this,arguments)}catch(W){g.FP(W)}}:Q};
g.FP=function(Q){var W=g.yF("yt.logging.errors.log");W?W(Q,"ERROR",void 0,void 0,void 0,void 0,void 0):(W=g.TK("ERRORS",[]),W.push([Q,"ERROR",void 0,void 0,void 0,void 0,void 0]),rT("ERRORS",W));Wi5(Q)};
Qk=function(Q,W,x,D,K){var l=g.yF("yt.logging.errors.log");l?l(Q,"WARNING",W,x,D,void 0,K):(l=g.TK("ERRORS",[]),l.push([Q,"WARNING",W,x,D,void 0,K]),rT("ERRORS",l))};
Wb=function(Q,W){W=Q.split(W);for(var x={},D=0,K=W.length;D<K;D++){var l=W[D].split("=");if(l.length===1&&l[0]||l.length===2)try{var M=xnF(l[0]||""),w=xnF(l[1]||"");if(M in x){var S=x[M];Array.isArray(S)?g.lZ(S,w):x[M]=[S,w]}else x[M]=w}catch(X){var b=X,z=l[0],k=String(Wb);b.args=[{key:z,value:l[1],query:Q,method:DnO===k?"unchanged":k}];KiF.hasOwnProperty(z)||Qk(b)}}return x};
x1=function(Q){var W=[];g.nC(Q,function(x,D){var K=g.OE(D);g.o3(Array.isArray(x)?x:[x],function(l){l==""?W.push(K):W.push(K+"="+g.OE(l))})});
return W.join("&")};
Ds=function(Q){Q.charAt(0)==="?"&&(Q=Q.substring(1));return Wb(Q,"&")};
Kl=function(Q){return Q.split(",").map(function(W){return Ds(W)})};
g.lY=function(Q){return Q.indexOf("?")!==-1?(Q=(Q||"").split("#")[0],Q=Q.split("?",2),Ds(Q.length>1?Q[1]:Q[0])):{}};
jL=function(Q,W){return lHD(Q,W||{},!0)};
MO=function(Q,W){return lHD(Q,W||{},!1)};
lHD=function(Q,W,x){var D=Q.split("#",2);Q=D[0];D=D.length>1?"#"+D[1]:"";var K=Q.split("?",2);Q=K[0];K=Ds(K[1]||"");for(var l in W)if(x||!g.hO(K,l))K[l]=W[l];return g.ya(Q,K)+D};
Rc=function(Q){if(!W)var W=window.location.href;var x=g.B_(1,Q),D=g.$X(Q);x&&D?(Q=Q.match(qU),W=W.match(qU),Q=Q[3]==W[3]&&Q[1]==W[1]&&Q[4]==W[4]):Q=D?g.$X(W)===D&&(Number(g.B_(4,W))||null)===(Number(g.B_(4,Q))||null):!0;return Q};
wm=function(Q){Q||(Q=document.location.href);Q=g.B_(1,Q);return Q!==null&&Q==="https"};
SL=function(Q){Q=jbQ(Q);return Q===null?!1:Q[0]==="com"&&Q[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
MlD=function(Q){Q=jbQ(Q);return Q===null?!1:Q[1]==="google"?!0:Q[2]==="google"?Q[0]==="au"&&Q[1]==="com"?!0:Q[0]==="uk"&&Q[1]==="co"?!0:!1:!1};
jbQ=function(Q){Q=g.$X(Q);return Q!==null?Q.split(".").reverse():null};
xnF=function(Q){return Q&&Q.match(Rpn)?Q:EE(Q)};
zG=function(Q){var W=bY;Q=Q===void 0?tO5():Q;var x=Object,D=x.assign,K=sk(W);var l=W.B;try{var M=l.screenX;var w=l.screenY}catch(h){}try{var S=l.outerWidth;var b=l.outerHeight}catch(h){}try{var z=l.innerWidth;var k=l.innerHeight}catch(h){}try{var X=l.screenLeft;var u=l.screenTop}catch(h){}try{z=l.innerWidth,k=l.innerHeight}catch(h){}try{var Y=l.screen.availWidth;var v=l.screen.availTop}catch(h){}l=[X,u,M,w,Y,v,S,b,z,k];M=pxz(!1,W.B.top);w={};var J=J===void 0?g.Nz:J;S=new gx;"SVGElement"in J&&"createElementNS"in
J.document&&S.set(0);b=mUl();b["allow-top-navigation-by-user-activation"]&&S.set(1);b["allow-popups-to-escape-sandbox"]&&S.set(2);J.crypto&&J.crypto.subtle&&S.set(3);"TextDecoder"in J&&"TextEncoder"in J&&S.set(4);J=BM5(S);W=(w.bc=J,w.bih=M.height,w.biw=M.width,w.brdim=l.join(),w.vis=oX(W.U),w.wgl=!!zk.WebGLRenderingContext,w);x=D.call(x,K,W);x.ca_type="image";Q&&(x.bid=Q);return x};
sk=function(Q){var W={};W.dt=wth;W.flash="0";a:{try{var x=Q.B.top.location.href}catch(z){Q=2;break a}Q=x?x===Q.U.location.href?0:1:2}W=(W.frm=Q,W);try{W.u_tz=-(new Date).getTimezoneOffset();var D=D===void 0?zk:D;try{var K=D.history.length}catch(z){K=0}W.u_his=K;var l;W.u_h=(l=zk.screen)==null?void 0:l.height;var M;W.u_w=(M=zk.screen)==null?void 0:M.width;var w;W.u_ah=(w=zk.screen)==null?void 0:w.availHeight;var S;W.u_aw=(S=zk.screen)==null?void 0:S.availWidth;var b;W.u_cd=(b=zk.screen)==null?void 0:
b.colorDepth}catch(z){}return W};
b8h=function(){if(!S35)return null;var Q=S35();return"open"in Q?Q:null};
g.X5=function(Q){switch(k1(Q)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
k1=function(Q){return Q&&"status"in Q?Q.status:-1};
g.oc=function(Q,W){typeof Q==="function"&&(Q=g.tx(Q));return window.setTimeout(Q,W)};
g.uY=function(Q,W){typeof Q==="function"&&(Q=g.tx(Q));return window.setInterval(Q,W)};
g.Y1=function(Q){window.clearTimeout(Q)};
g.nl=function(Q){window.clearInterval(Q)};
g.Pb=function(Q){Q=Vk(Q);return typeof Q==="string"&&Q==="false"?!1:!!Q};
g.vb=function(Q,W){Q=Vk(Q);return Q===void 0&&W!==void 0?W:Number(Q||0)};
Cl=function(){return g.TK("EXPERIMENTS_TOKEN","")};
Vk=function(Q){return g.TK("EXPERIMENT_FLAGS",{})[Q]};
JS=function(){for(var Q=[],W=g.TK("EXPERIMENTS_FORCED_FLAGS",{}),x=g.V(Object.keys(W)),D=x.next();!D.done;D=x.next())D=D.value,Q.push({key:D,value:String(W[D])});x=g.TK("EXPERIMENT_FLAGS",{});D=g.V(Object.keys(x));for(var K=D.next();!K.done;K=D.next())K=K.value,K.startsWith("force_")&&W[K]===void 0&&Q.push({key:K,value:String(x[K])});return Q};
pl=function(Q,W,x,D,K,l,M,w){function S(){(b&&"readyState"in b?b.readyState:0)===4&&W&&g.tx(W)(b)}
x=x===void 0?"GET":x;D=D===void 0?"":D;w=w===void 0?!1:w;var b=b8h();if(!b)return null;"onloadend"in b?b.addEventListener("loadend",S,!1):b.onreadystatechange=S;g.Pb("debug_forward_web_query_parameters")&&(Q=sb4(Q,window.location.search));b.open(x,Q,!0);l&&(b.responseType=l);M&&(b.withCredentials=!0);x=x==="POST"&&(window.FormData===void 0||!(D instanceof FormData));if(K=zpv(Q,K))for(var z in K)b.setRequestHeader(z,K[z]),"content-type"===z.toLowerCase()&&(x=!1);x&&b.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");if(w&&"setAttributionReporting"in XMLHttpRequest.prototype){Q={eventSourceEligible:!0,triggerEligible:!1};try{b.setAttributionReporting(Q)}catch(k){Qk(k)}}b.send(D);return b};
zpv=function(Q,W){W=W===void 0?{}:W;var x=Rc(Q),D=g.TK("INNERTUBE_CLIENT_NAME"),K=g.Pb("web_ajax_ignore_global_headers_if_set"),l;for(l in kdn){var M=g.TK(kdn[l]),w=l==="X-Goog-AuthUser"||l==="X-Goog-PageId";l!=="X-Goog-Visitor-Id"||M||(M=g.TK("VISITOR_DATA"));var S;if(!(S=!M)){if(!(S=x||(g.$X(Q)?!1:!0))){S=Q;var b;if(b=g.Pb("add_auth_headers_to_remarketing_google_dot_com_ping")&&l==="Authorization"&&(D==="TVHTML5"||D==="TVHTML5_UNPLUGGED"||D==="TVHTML5_SIMPLY")&&MlD(S))S=Ar(g.B_(5,S))||"",S=S.split("/"),
S="/"+(S.length>1?S[1]:""),b=S==="/pagead";S=b?!0:!1}S=!S}S||K&&W[l]!==void 0||D==="TVHTML5_UNPLUGGED"&&w||(W[l]=M)}"X-Goog-EOM-Visitor-Id"in W&&"X-Goog-Visitor-Id"in W&&delete W["X-Goog-Visitor-Id"];if(x||!g.$X(Q))W["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(x||!g.$X(Q)){try{var z=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(k){}z&&(W["X-YouTube-Time-Zone"]=z)}document.location.hostname.endsWith("youtubeeducation.com")||!x&&g.$X(Q)||(W["X-YouTube-Ad-Signals"]=
x1(zG()));return W};
oB4=function(Q,W){var x=g.$X(Q);g.Pb("debug_handle_relative_url_for_query_forward_killswitch")||!x&&Rc(Q)&&(x=document.location.hostname);var D=Ar(g.B_(5,Q));D=(x=x&&(x.endsWith("youtube.com")||x.endsWith("youtube-nocookie.com")))&&D&&D.startsWith("/api/");if(!x||D)return Q;var K=Ds(W),l={};g.o3(Xtn,function(M){K[M]&&(l[M]=K[M])});
return MO(Q,l)};
ac=function(Q,W){W.method="POST";W.postParams||(W.postParams={});return g.hS(Q,W)};
nB1=function(Q,W){if(window.fetch&&W.format!=="XML"){var x={method:W.method||"GET",credentials:"same-origin"};W.headers&&(x.headers=W.headers);W.priority&&(x.priority=W.priority);Q=uW4(Q,W);var D=Y31(Q,W);D&&(x.body=D);W.withCredentials&&(x.credentials="include");var K=W.context||g.Nz,l=!1,M;fetch(Q,x).then(function(w){if(!l){l=!0;M&&g.Y1(M);var S=w.ok,b=function(z){z=z||{};S?W.onSuccess&&W.onSuccess.call(K,z,w):W.onError&&W.onError.call(K,z,w);W.onFinish&&W.onFinish.call(K,z,w)};
(W.format||"JSON")==="JSON"&&(S||w.status>=400&&w.status<500)?w.json().then(b,function(){b(null)}):b(null)}}).catch(function(){W.onError&&W.onError.call(K,{},{})});
Q=W.timeout||0;W.onFetchTimeout&&Q>0&&(M=g.oc(function(){l||(l=!0,g.Y1(M),W.onFetchTimeout.call(W.context||g.Nz))},Q))}else g.hS(Q,W)};
g.hS=function(Q,W){var x=W.format||"JSON";Q=uW4(Q,W);var D=Y31(Q,W),K=!1,l=Vln(Q,function(S){if(!K){K=!0;w&&g.Y1(w);var b=g.X5(S),z=null,k=400<=S.status&&S.status<500,X=500<=S.status&&S.status<600;if(b||k||X)z=Pp5(Q,x,S,W.convertToSafeHtml);b&&(b=vBQ(x,S,z));z=z||{};k=W.context||g.Nz;b?W.onSuccess&&W.onSuccess.call(k,S,z):W.onError&&W.onError.call(k,S,z);W.onFinish&&W.onFinish.call(k,S,z)}},W.method,D,W.headers,W.responseType,W.withCredentials);
D=W.timeout||0;if(W.onTimeout&&D>0){var M=W.onTimeout;var w=g.oc(function(){K||(K=!0,l.abort(),g.Y1(w),M.call(W.context||g.Nz,l))},D)}return l};
uW4=function(Q,W){W.includeDomain&&(Q=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+Q);var x=g.TK("XSRF_FIELD_NAME");if(W=W.urlParams)W[x]&&delete W[x],Q=jL(Q,W);return Q};
Y31=function(Q,W){var x=g.TK("XSRF_FIELD_NAME"),D=g.TK("XSRF_TOKEN"),K=W.postBody||"",l=W.postParams,M=g.TK("XSRF_FIELD_NAME"),w;W.headers&&(w=W.headers["Content-Type"]);W.excludeXsrf||g.$X(Q)&&!W.withCredentials&&g.$X(Q)!==document.location.hostname||W.method!=="POST"||w&&w!=="application/x-www-form-urlencoded"||W.postParams&&W.postParams[M]||(l||(l={}),l[x]=D);(g.Pb("ajax_parse_query_data_only_when_filled")&&l&&Object.keys(l).length>0||l)&&typeof K==="string"&&(K=Ds(K),g.q9(K,l),K=W.postBodyFormat&&
W.postBodyFormat==="JSON"?JSON.stringify(K):g.gv(K));l=K||l&&!g.dS(l);!CpO&&l&&W.method!=="POST"&&(CpO=!0,g.FP(Error("AJAX request with postData should use POST")));return K};
Pp5=function(Q,W,x,D){var K=null;switch(W){case "JSON":try{var l=x.responseText}catch(M){throw D=Error("Error reading responseText"),D.params=Q,Qk(D),M;}Q=x.getResponseHeader("Content-Type")||"";l&&Q.indexOf("json")>=0&&(l.substring(0,5)===")]}'\n"&&(l=l.substring(5)),K=JSON.parse(l));break;case "XML":if(Q=(Q=x.responseXML)?J2l(Q):null)K={},g.o3(Q.getElementsByTagName("*"),function(M){K[M.tagName]=ptQ(M)})}D&&hpa(K);
return K};
hpa=function(Q){if(g.r4(Q))for(var W in Q)W==="html_content"||N4D(W,"_html")?Q[W]=$c(Q[W]):hpa(Q[W])};
vBQ=function(Q,W,x){if(W&&W.status===204)return!0;switch(Q){case "JSON":return!!x;case "XML":return Number(x&&x.return_code)===0;case "RAW":return!0;default:return!!x}};
J2l=function(Q){return Q?(Q=("responseXML"in Q?Q.responseXML:Q).getElementsByTagName("root"))&&Q.length>0?Q[0]:null:null};
ptQ=function(Q){var W="";g.o3(Q.childNodes,function(x){W+=x.nodeValue});
return W};
dm=function(Q,W){var x=g.HZ(W),D;return(new g.Xk(function(K,l){x.onSuccess=function(M){g.X5(M)?K(new aHn(M)):l(new GG("Request failed, status="+k1(M),"net.badstatus",M))};
x.onError=function(M){l(new GG("Unknown request error","net.unknown",M))};
x.onTimeout=function(M){l(new GG("Request timed out","net.timeout",M))};
D=g.hS(Q,x)})).RH(function(K){if(K instanceof P_){var l;
(l=D)==null||l.abort()}return YX(K)})};
g.iY=function(Q,W,x,D){function K(w,S,b){return w.RH(function(z){if(S<=0||k1(z.xhr)===403)return YX(new GG("Request retried too many times","net.retryexhausted",z.xhr,z));z=Math.pow(2,x-S+1)*b;var k=M>0?Math.min(M,z):z;return l(b).then(function(){return K(dm(Q,W),S-1,k)})})}
function l(w){return new g.Xk(function(S){setTimeout(S,w)})}
var M=M===void 0?-1:M;return K(dm(Q,W),x-1,D)};
GG=function(Q,W,x){n5.call(this,Q+", errorCode="+W);this.errorCode=W;this.xhr=x;this.name="PromiseAjaxError"};
aHn=function(Q){this.xhr=Q};
AS=function(Q){this.B=Q===void 0?null:Q;this.D=0;this.U=null};
Hb=function(Q){var W=new AS;Q=Q===void 0?null:Q;W.D=2;W.U=Q===void 0?null:Q;return W};
Uk=function(Q){var W=new AS;Q=Q===void 0?null:Q;W.D=1;W.U=Q===void 0?null:Q;return W};
g.$1=function(Q,W,x,D,K){qO||Bb.set(""+Q,W,{vk:x,path:"/",domain:D===void 0?"youtube.com":D,secure:K===void 0?!1:K})};
g.Ic=function(Q,W){if(!qO)return Bb.get(""+Q,W)};
g.m2=function(Q,W,x){qO||Bb.remove(""+Q,W===void 0?"/":W,x===void 0?"youtube.com":x)};
Gd5=function(){if(g.Pb("embeds_web_enable_cookie_detection_fix")){if(!g.Nz.navigator.cookieEnabled)return!1}else if(!Bb.isEnabled())return!1;if(!Bb.isEmpty())return!0;g.Pb("embeds_web_enable_cookie_detection_fix")?Bb.set("TESTCOOKIESENABLED","1",{vk:60,Y45:"none",secure:!0}):Bb.set("TESTCOOKIESENABLED","1",{vk:60});if(Bb.get("TESTCOOKIESENABLED")!=="1")return!1;Bb.remove("TESTCOOKIESENABLED");return!0};
g.e=function(Q,W){if(Q)return Q[W.name]};
NO=function(Q){var W=g.TK("INNERTUBE_HOST_OVERRIDE");W&&(Q=String(W)+String(Ij(Q)));return Q};
dna=function(Q){var W={};g.Pb("json_condensed_response")&&(W.prettyPrint="false");return Q=MO(Q,W)};
cb=function(Q,W){var x=x===void 0?{}:x;Q={method:W===void 0?"POST":W,mode:Rc(Q)?"same-origin":"cors",credentials:Rc(Q)?"same-origin":"include"};W={};for(var D=g.V(Object.keys(x)),K=D.next();!K.done;K=D.next())K=K.value,x[K]&&(W[K]=x[K]);Object.keys(W).length>0&&(Q.headers=W);return Q};
gm=function(){var Q=/Chrome\/(\d+)/.exec(g.Ae());return Q?parseFloat(Q[1]):NaN};
eL=function(){return g.yk("android")&&g.yk("chrome")&&!(g.yk("trident/")||g.yk("edge/"))&&!g.yk("cobalt")};
i8n=function(){return g.yk("armv7")||g.yk("aarch64")||g.yk("android")};
g.fl=function(){return g.yk("cobalt")};
Zs=function(){return g.yk("cobalt")&&g.yk("appletv")};
Ll=function(){return g.yk("(ps3; leanback shell)")||g.yk("ps3")&&g.fl()};
A24=function(){return g.yk("(ps4; leanback shell)")||g.yk("ps4")&&g.fl()};
g.H84=function(){return g.fl()&&(g.yk("ps4 vr")||g.yk("ps4 pro vr"))};
rm=function(){var Q=/WebKit\/([0-9]+)/.exec(g.Ae());return!!(Q&&parseInt(Q[1],10)>=600)};
TG=function(){var Q=/WebKit\/([0-9]+)/.exec(g.Ae());return!!(Q&&parseInt(Q[1],10)>=602)};
UnD=function(){return g.yk("iemobile")||g.yk("windows phone")&&g.yk("edge")};
F5=function(){return(Ok||Ek)&&g.yk("applewebkit")&&!g.yk("version")&&(!g.yk("safari")||g.yk("gsa/"))};
QB=function(){return g.tS&&g.yk("version/")};
Wk=function(){return g.yk("smart-tv")&&g.yk("samsung")};
g.yk=function(Q){var W=g.Ae();return W?W.toLowerCase().indexOf(Q)>=0:!1};
xY=function(){return gVD()||F5()||QB()?!0:g.TK("EOM_VISITOR_DATA")?!1:!0};
D0=function(Q,W){return W===void 0||W===null?Q:W==="1"||W===!0||W===1||W==="True"?!0:!1};
Kw=function(Q,W,x){for(var D in x)if(x[D]==W)return x[D];return Q};
ly=function(Q,W){return W===void 0||W===null?Q:Number(W)};
jY=function(Q,W){return W===void 0||W===null?Q:W.toString()};
MW=function(Q,W){if(W){if(Q==="fullwidth")return Infinity;if(Q==="fullheight")return 0}return Q&&(W=Q.match(q35))&&(Q=Number(W[2]),W=Number(W[1]),!isNaN(Q)&&!isNaN(W)&&Q>0)?W/Q:NaN};
RC=function(Q){var W=Q.docid||Q.video_id||Q.videoId||Q.id;if(W)return W;W=Q.raw_player_response;W||(Q=Q.player_response)&&(W=JSON.parse(Q));return W&&W.videoDetails&&W.videoDetails.videoId||null};
Bxn=function(Q){return w3(Q,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
g.SY=function(Q){return Q==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||Q==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
w3=function(Q,W){W=(W===void 0?0:W)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(W="EMBEDDED_PLAYER_MODE_PFL");var x=Q.raw_embedded_player_response;if(!x&&(Q=Q.embedded_player_response))try{x=JSON.parse(Q)}catch(D){return W}return x?Kw(W,x.embeddedPlayerMode,$nh):W};
sd=function(Q){n5.call(this,Q.message||Q.description||Q.name);this.isMissing=Q instanceof by;this.isTimeout=Q instanceof GG&&Q.errorCode=="net.timeout";this.isCanceled=Q instanceof P_};
by=function(){n5.call(this,"Biscotti ID is missing from server")};
IHv=function(){if(g.Pb("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!xY())return Error("User has not consented - not fetching biscotti id.");var Q=g.TK("PLAYER_VARS",{});if(g.i0(Q,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Bxn(Q))return Error("Biscotti id fetching has been disabled for pfl.")};
gB4=function(){var Q=IHv();if(Q!==void 0)return YX(Q);zT||(zT=dm("//googleads.g.doubleclick.net/pagead/id",mnD).then(Nx2).RH(function(W){return c2n(2,W)}));
return zT};
Nx2=function(Q){Q=Q.xhr.responseText;if(!Je(Q,")]}'"))throw new by;Q=JSON.parse(Q.substr(4));if((Q.type||1)>1)throw new by;Q=Q.id;Qbl(Q);zT=Uk(Q);y2h(18E5,2);return Q};
c2n=function(Q,W){W=new sd(W);Qbl("");zT=Hb(W);Q>0&&y2h(12E4,Q-1);throw W;};
y2h=function(Q,W){g.oc(function(){dm("//googleads.g.doubleclick.net/pagead/id",mnD).then(Nx2,function(x){return c2n(W,x)}).RH(g.bi)},Q)};
ep5=function(){try{var Q=g.yF("yt.ads.biscotti.getId_");return Q?Q():gB4()}catch(W){return YX(W)}};
Z85=function(Q){Q&&(Q.dataset?Q.dataset[fHh()]="true":G31(Q))};
Lin=function(Q){return Q?Q.dataset?Q.dataset[fHh()]:Q.getAttribute("data-loaded"):null};
fHh=function(){return r22.loaded||(r22.loaded="loaded".replace(/\-([a-z])/g,function(Q,W){return W.toUpperCase()}))};
Txs=function(){var Q=document;if("visibilityState"in Q)return Q.visibilityState;var W=kY+"VisibilityState";if(W in Q)return Q[W]};
Xw=function(Q,W){var x;dM(Q,function(D){x=W[D];return!!x});
return x};
oC=function(Q){if(Q.requestFullscreen)Q=Q.requestFullscreen(void 0);else if(Q.webkitRequestFullscreen)Q=Q.webkitRequestFullscreen();else if(Q.mozRequestFullScreen)Q=Q.mozRequestFullScreen();else if(Q.msRequestFullscreen)Q=Q.msRequestFullscreen();else if(Q.webkitEnterFullscreen)Q=Q.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return Q instanceof Promise?Q:Promise.resolve()};
nw=function(Q){var W;g.uy()?YY()==Q&&(W=document):W=Q;return W&&(Q=Xw(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],W))?(W=Q.call(W),W instanceof Promise?W:Promise.resolve()):Promise.resolve()};
O8O=function(Q){return g.Os(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(W){return"on"+W.toLowerCase()in Q})};
EB1=function(){var Q=document;return g.Os(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(W){return"on"+W.toLowerCase()in Q})};
g.uy=function(){return!!Xw(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
YY=function(Q){Q=Q===void 0?!1:Q;var W=Xw(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(Q)for(;W&&W.shadowRoot;)W=W.shadowRoot.fullscreenElement;return W?W:null};
VB=function(Q){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(Q=Q||window.event){this.event=Q;for(var W in Q)W in FiF||(this[W]=Q[W]);this.scale=Q.scale;this.rotation=Q.rotation;var x=Q.target||Q.srcElement;x&&x.nodeType==3&&(x=x.parentNode);this.target=x;var D=Q.relatedTarget;
if(D)try{D=D.nodeName?D:null}catch(K){D=null}else this.type=="mouseover"?D=Q.fromElement:this.type=="mouseout"&&(D=Q.toElement);this.relatedTarget=D;this.clientX=Q.clientX!=void 0?Q.clientX:Q.pageX;this.clientY=Q.clientY!=void 0?Q.clientY:Q.pageY;this.keyCode=Q.keyCode?Q.keyCode:Q.which;this.charCode=Q.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=Q.altKey;this.ctrlKey=Q.ctrlKey;this.shiftKey=Q.shiftKey;this.metaKey=Q.metaKey;this.B=Q.pageX;this.U=Q.pageY}}catch(K){}};
tl5=function(Q){if(document.body&&document.documentElement){var W=document.body.scrollTop+document.documentElement.scrollTop;Q.B=Q.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);Q.U=Q.clientY+W}};
QrD=function(Q,W,x,D){D=D===void 0?{}:D;Q.addEventListener&&(W!="mouseenter"||"onmouseenter"in document?W!="mouseleave"||"onmouseenter"in document?W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"):W="mouseout":W="mouseover");return GM(Pk,function(K){var l=typeof K[4]==="boolean"&&K[4]==!!D,M=g.r4(K[4])&&g.r4(D)&&g.AO(K[4],D);return!!K.length&&K[0]==Q&&K[1]==W&&K[2]==x&&(l||M)})};
g.vk=function(Q,W,x,D){D=D===void 0?{}:D;if(!Q||!Q.addEventListener&&!Q.attachEvent)return"";var K=QrD(Q,W,x,D);if(K)return K;K=++WS1.count+"";var l=!(W!="mouseenter"&&W!="mouseleave"||!Q.addEventListener||"onmouseenter"in document);var M=l?function(w){w=new VB(w);if(!Rw(w.relatedTarget,function(S){return S==Q},!0))return w.currentTarget=Q,w.type=W,x.call(Q,w)}:function(w){w=new VB(w);
w.currentTarget=Q;return x.call(Q,w)};
M=g.tx(M);Q.addEventListener?(W=="mouseenter"&&l?W="mouseover":W=="mouseleave"&&l?W="mouseout":W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"),xhh()||typeof D==="boolean"?Q.addEventListener(W,M,D):Q.addEventListener(W,M,!!D.capture)):Q.attachEvent("on"+W,M);Pk[K]=[Q,W,x,M,D];return K};
KS5=function(Q){return Dh2(Q,function(W){return g.lf(W,"ytp-ad-has-logging-urls")})};
Dh2=function(Q,W){var x=document.body||document;return g.vk(x,"click",function(D){var K=Rw(D.target,function(l){return l===x||W(l)},!0);
K&&K!==x&&!K.disabled&&(D.currentTarget=K,Q.call(K,D))})};
g.Cw=function(Q){Q&&(typeof Q=="string"&&(Q=[Q]),g.o3(Q,function(W){if(W in Pk){var x=Pk[W],D=x[0],K=x[1],l=x[3];x=x[4];D.removeEventListener?xhh()||typeof x==="boolean"?D.removeEventListener(K,l,x):D.removeEventListener(K,l,!!x.capture):D.detachEvent&&D.detachEvent("on"+K,l);delete Pk[W]}}))};
Jl=function(Q){for(var W in Pk)Pk[W][0]==Q&&g.Cw(W)};
pw=function(Q){Q=Q||window.event;var W;Q.composedPath&&typeof Q.composedPath==="function"?W=Q.composedPath():W=Q.path;W&&W.length?Q=W[0]:(Q=Q||window.event,Q=Q.target||Q.srcElement,Q.nodeType==3&&(Q=Q.parentNode));return Q};
hl=function(Q){this.G=Q;this.B=null;this.N=0;this.X=null;this.L=0;this.U=[];for(Q=0;Q<4;Q++)this.U.push(0);this.D=0;this.pS=g.vk(window,"mousemove",(0,g.FD)(this.T,this));this.S=g.uY((0,g.FD)(this.uj,this),25)};
aC=function(Q){g.N.call(this);this.G=[];this.Vj=Q||this};
GT=function(Q,W,x,D){for(var K=0;K<x.length;K++)Q.W(W,x[K],D)};
g.d3=function(Q,W){for(;Q.G.length;){var x=Q.G.pop(),D=void 0;W&&lEh()&&(D={passive:!0});x.target.removeEventListener(x.name,x.callback,D)}};
iy=function(Q){Q=Q||{};var W={},x={};this.url=Q.url||"";this.args=Q.args||g.HZ(W);this.assets=Q.assets||{};this.attrs=Q.attrs||g.HZ(x);this.fallback=Q.fallback||null;this.fallbackMessage=Q.fallbackMessage||null;this.html5=!!Q.html5;this.disable=Q.disable||{};this.loaded=!!Q.loaded;this.messages=Q.messages||{}};
jrQ=function(Q){Q instanceof iy||(Q=new iy(Q));return Q};
g.Ud=function(Q,W,x){var D=x&&x>0?x:0;x=D?Date.now()+D*1E3:0;if((D=D?(0,g.Al)():Hk())&&window.JSON){typeof W!=="string"&&(W=JSON.stringify(W,void 0));try{D.set(Q,W,x)}catch(K){D.remove(Q)}}};
g.qW=function(Q){var W=Hk(),x=(0,g.Al)();if(!W&&!x||!window.JSON)return null;try{var D=W.get(Q)}catch(K){}if(typeof D!=="string")try{D=x.get(Q)}catch(K){}if(typeof D!=="string")return null;try{D=JSON.parse(D,void 0)}catch(K){}return D};
M$5=function(){var Q=(0,g.Al)();if(Q&&(Q=Q.U("yt-player-quality")))return Q.creation};
g.Bk=function(Q){try{var W=Hk(),x=(0,g.Al)();W&&W.remove(Q);x&&x.remove(Q)}catch(D){}};
g.$Y=function(){return g.qW("yt-remote-session-screen-id")};
RQn=function(Q){var W=this;this.U=void 0;this.B=!1;Q.addEventListener("beforeinstallprompt",function(x){x.preventDefault();W.U=x});
Q.addEventListener("appinstalled",function(){W.B=!0},{once:!0})};
IC=function(){if(!g.Nz.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Nz.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Nz.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Nz.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Nz.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(Q){return"WEB_DISPLAY_MODE_UNKNOWN"}};
me=function(){this.CD=!0};
wgO=function(){me.instance||(me.instance=new me);return me.instance};
SI5=function(Q){switch(Q){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}};
bTl=function(){this.B=g.TK("ALT_PREF_COOKIE_NAME","PREF");this.U=g.TK("ALT_PREF_COOKIE_DOMAIN","youtube.com");var Q=g.Ic(this.B);Q&&this.parse(Q)};
g.ck=function(){NW||(NW=new bTl);return NW};
g.g3=function(Q,W){return!!((srQ("f"+(Math.floor(W/31)+1))||0)&1<<W%31)};
eY=function(Q,W){var x="f"+(Math.floor(Q/31)+1);Q=1<<Q%31;var D=srQ(x)||0;D=W?D|Q:D&~Q;D===0?delete yB[x]:(W=D.toString(16),yB[x]=W.toString())};
fw=function(Q){if(/^f([1-9][0-9]*)$/.test(Q))throw Error("ExpectedRegexMatch: "+Q);};
Z0=function(Q){if(!/^\w+$/.test(Q))throw Error("ExpectedRegexMismatch: "+Q);};
srQ=function(Q){Q=yB[Q]!==void 0?yB[Q].toString():null;return Q!=null&&/^[A-Fa-f0-9]+$/.test(Q)?parseInt(Q,16):null};
zQa=function(){var Q=g.Nz.navigator;return Q?Q.connection:void 0};
XgD=function(){var Q=zQa();if(Q){var W=kyn[Q.type||"unknown"]||"CONN_UNKNOWN";Q=kyn[Q.effectiveType||"unknown"]||"CONN_UNKNOWN";W==="CONN_CELLULAR_UNKNOWN"&&Q!=="CONN_UNKNOWN"&&(W=Q);if(W!=="CONN_UNKNOWN")return W;if(Q!=="CONN_UNKNOWN")return Q}};
uKv=function(){var Q=zQa();if(Q!=null&&Q.effectiveType)return oRs.hasOwnProperty(Q.effectiveType)?oRs[Q.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.Lw=function(Q){var W=g.i2.apply(1,arguments);var x=Error.call(this,Q);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.args=[].concat(g.C(W));Object.setPrototypeOf(this,this.constructor.prototype)};
g.TT=function(){try{return g.r3(),!0}catch(Q){return!1}};
g.r3=function(Q){if(g.TK("DATASYNC_ID")!==void 0)return g.TK("DATASYNC_ID");throw new g.Lw("Datasync ID not set",Q===void 0?"unknown":Q);};
Od=function(){this.B=new WeakMap};
g.Fw=function(Q,W,x){return Ed(W,0,x)};
YI5=function(Q){var W=g.yF("yt.scheduler.instance.addImmediateJob");W?W(Q):Q()};
tl=function(){Od.apply(this,arguments)};
g.QX=function(){tl.instance||(tl.instance=new tl);return tl.instance};
g.Ws=function(){return!!g.yF("yt.scheduler.instance")};
Ed=function(Q,W,x){x!==void 0&&Number.isNaN(Number(x))&&(x=void 0);var D=g.yF("yt.scheduler.instance.addJob");return D?D(Q,W,x):x===void 0?(Q(),NaN):g.oc(Q,x||0)};
xD=function(Q,W){(Q=g.yF("yt.scheduler.instance.setPriorityThreshold"))&&Q(W)};
DL=function(Q){this.B=(Q=g.Ir(Q))?new dk(Q):null;this.U=document.domain||window.location.hostname};
lJ=function(){var Q;return(Q=KX())==null?void 0:Q.get("LAST_RESULT_ENTRY_KEY",!0)};
nRs=function(){var Q={};for(jM=new M5(Q.handleError===void 0?R8:Q.handleError,Q.logEvent===void 0?g.wV:Q.logEvent);SM.length>0;)switch(Q=SM.shift(),Q.type){case "ERROR":jM.Av(Q.payload);break;case "EVENT":jM.logEvent(Q.eventType,Q.payload)}};
sU=function(Q){bJ||(jM?jM.Av(Q):(SM.push({type:"ERROR",payload:Q}),SM.length>10&&SM.shift()))};
zj=function(Q,W){bJ||(jM?jM.logEvent(Q,W):(SM.push({type:"EVENT",eventType:Q,payload:W}),SM.length>10&&SM.shift()))};
kD=function(Q){if(Q.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
Xi=function(Q){return Q.substr(0,Q.indexOf(":"))||Q};
g.o8=function(Q,W,x,D,K){W=W===void 0?{}:W;x=x===void 0?V$F[Q]:x;D=D===void 0?PfQ[Q]:D;K=K===void 0?vRl[Q]:K;g.Lw.call(this,x,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:Q},W));this.type=Q;this.message=x;this.level=D;this.B=K;Object.setPrototypeOf(this,g.o8.prototype)};
uJ=function(Q,W){g.o8.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:W,foundObjectStores:Q},V$F.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,uJ.prototype)};
YD=function(Q,W){var x=Error.call(this);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.index=Q;this.objectStore=W;Object.setPrototypeOf(this,YD.prototype)};
VX=function(Q,W,x,D){W=Xi(W);var K=Q instanceof Error?Q:Error("Unexpected error: "+Q);if(K instanceof g.o8)return K;Q={objectStoreNames:x,dbName:W,dbVersion:D};if(K.name==="QuotaExceededError")return new g.o8("QUOTA_EXCEEDED",Q);if(g.nX&&K.name==="UnknownError")return new g.o8("QUOTA_MAYBE_EXCEEDED",Q);if(K instanceof YD)return new g.o8("MISSING_INDEX",Object.assign({},Q,{objectStore:K.objectStore,index:K.index}));if(K.name==="InvalidStateError"&&Cf5.some(function(l){return K.message.includes(l)}))return new g.o8("EXECUTE_TRANSACTION_ON_CLOSED_DB",
Q);
if(K.name==="AbortError")return new g.o8("UNKNOWN_ABORT",Q,K.message);K.args=[Object.assign({},Q,{name:"IdbError",U5:K.name})];K.level="WARNING";return K};
g.Ps=function(Q,W,x){var D=lJ();return new g.o8("IDB_NOT_SUPPORTED",{context:{caller:Q,publicName:W,version:x,hasSucceededOnce:D==null?void 0:D.hasSucceededOnce}})};
JUO=function(Q){if(!Q)throw Error();throw Q;};
pg1=function(Q){return Q};
vs=function(Q){this.B=Q};
g.CX=function(Q){function W(K){if(D.state.status==="PENDING"){D.state={status:"REJECTED",reason:K};K=g.V(D.U);for(var l=K.next();!l.done;l=K.next())l=l.value,l()}}
function x(K){if(D.state.status==="PENDING"){D.state={status:"FULFILLED",value:K};K=g.V(D.B);for(var l=K.next();!l.done;l=K.next())l=l.value,l()}}
var D=this;this.state={status:"PENDING"};this.B=[];this.U=[];Q=Q.B;try{Q(x,W)}catch(K){W(K)}};
hQ2=function(Q,W,x,D,K){try{if(Q.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var l=x(Q.state.value);l instanceof g.CX?J4(Q,W,l,D,K):D(l)}catch(M){K(M)}};
aEl=function(Q,W,x,D,K){try{if(Q.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var l=x(Q.state.reason);l instanceof g.CX?J4(Q,W,l,D,K):D(l)}catch(M){K(M)}};
J4=function(Q,W,x,D,K){W===x?K(new TypeError("Circular promise chain detected.")):x.then(function(l){l instanceof g.CX?J4(Q,W,l,D,K):D(l)},function(l){K(l)})};
Gys=function(Q,W,x){function D(){x(Q.error);l()}
function K(){W(Q.result);l()}
function l(){try{Q.removeEventListener("success",K),Q.removeEventListener("error",D)}catch(M){}}
Q.addEventListener("success",K);Q.addEventListener("error",D)};
dh5=function(Q){return new Promise(function(W,x){Gys(Q,W,x)})};
pX=function(Q){return new g.CX(new vs(function(W,x){Gys(Q,W,x)}))};
h4=function(Q,W){return new g.CX(new vs(function(x,D){function K(){var l=Q?W(Q):null;l?l.then(function(M){Q=M;K()},D):x()}
K()}))};
iT2=function(Q,W){this.request=Q;this.cursor=W};
AUQ=function(Q){return pX(Q).then(function(W){return W?new iT2(Q,W):null})};
g.HT5=function(Q){Q.cursor.continue(void 0);return AUQ(Q.request)};
UhF=function(Q,W){this.B=Q;this.options=W;this.transactionCount=0;this.D=Math.round((0,g.a8)());this.U=!1};
g.dV=function(Q,W,x){Q=Q.B.createObjectStore(W,x);return new Gj(Q)};
iJ=function(Q,W){Q.B.objectStoreNames.contains(W)&&Q.B.deleteObjectStore(W)};
g.UU=function(Q,W,x){return g.A4(Q,[W],{mode:"readwrite",dG:!0},function(D){return g.Hs(D.objectStore(W),x)})};
g.A4=function(Q,W,x,D){var K,l,M,w,S,b,z,k,X,u,Y,v;return g.U(function(J){switch(J.B){case 1:var h={mode:"readonly",dG:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof x==="string"?h.mode=x:Object.assign(h,x);K=h;Q.transactionCount++;l=K.dG?3:1;M=0;case 2:if(w){J.kf(4);break}M++;S=Math.round((0,g.a8)());g.P5(J,5);b=Q.B.transaction(W,K.mode);h=new q5(b);h=qIl(h,D);return g.A(J,h,7);case 7:return z=J.U,k=Math.round((0,g.a8)()),Bkl(Q,S,k,M,void 0,W.join(),K),J.return(z);case 5:X=g.Jv(J);u=Math.round((0,g.a8)());
Y=VX(X,Q.B.name,W.join(),Q.B.version);if((v=Y instanceof g.o8&&!Y.B)||M>=l)Bkl(Q,S,u,M,Y,W.join(),K),w=Y;J.kf(2);break;case 4:return J.return(Promise.reject(w))}})};
Bkl=function(Q,W,x,D,K,l,M){W=x-W;K?(K instanceof g.o8&&(K.type==="QUOTA_EXCEEDED"||K.type==="QUOTA_MAYBE_EXCEEDED")&&zj("QUOTA_EXCEEDED",{dbName:Xi(Q.B.name),objectStoreNames:l,transactionCount:Q.transactionCount,transactionMode:M.mode}),K instanceof g.o8&&K.type==="UNKNOWN_ABORT"&&(x-=Q.D,x<0&&x>=2147483648&&(x=0),zj("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:l,transactionDuration:W,transactionCount:Q.transactionCount,dbDuration:x}),Q.U=!0),$hD(Q,!1,D,l,W,M.tag),sU(K)):$hD(Q,!0,D,l,W,
M.tag)};
$hD=function(Q,W,x,D,K,l){zj("TRANSACTION_ENDED",{objectStoreNames:D,connectionHasUnknownAbortedTransaction:Q.U,duration:K,isSuccessful:W,tryCount:x,tag:l===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":l})};
Gj=function(Q){this.B=Q};
g.Bs=function(Q,W,x){Q.B.createIndex(W,x,{unique:!1})};
IEO=function(Q,W){return g.$D(Q,{query:W},function(x){return x.delete().then(function(){return g.I8(x)})}).then(function(){})};
mhl=function(Q,W,x){var D=[];return g.$D(Q,{query:W},function(K){if(!(x!==void 0&&D.length>=x))return D.push(K.getValue()),g.I8(K)}).then(function(){return D})};
cUh=function(Q){return"getAllKeys"in IDBObjectStore.prototype?pX(Q.B.getAllKeys(void 0,void 0)):Nka(Q)};
Nka=function(Q){var W=[];return g.gRh(Q,{query:void 0},function(x){W.push(x.cursor.primaryKey);return g.HT5(x)}).then(function(){return W})};
g.Hs=function(Q,W,x){return pX(Q.B.put(W,x))};
g.$D=function(Q,W,x){Q=Q.B.openCursor(W.query,W.direction);return mj(Q).then(function(D){return h4(D,x)})};
g.gRh=function(Q,W,x){var D=W.query;W=W.direction;Q="openKeyCursor"in IDBObjectStore.prototype?Q.B.openKeyCursor(D,W):Q.B.openCursor(D,W);return AUQ(Q).then(function(K){return h4(K,x)})};
q5=function(Q){var W=this;this.B=Q;this.D=new Map;this.U=!1;this.done=new Promise(function(x,D){W.B.addEventListener("complete",function(){x()});
W.B.addEventListener("error",function(K){K.currentTarget===K.target&&D(W.B.error)});
W.B.addEventListener("abort",function(){var K=W.B.error;if(K)D(K);else if(!W.U){K=g.o8;for(var l=W.B.objectStoreNames,M=[],w=0;w<l.length;w++){var S=l.item(w);if(S===null)throw Error("Invariant: item in DOMStringList is null");M.push(S)}K=new K("UNKNOWN_ABORT",{objectStoreNames:M.join(),dbName:W.B.db.name,mode:W.B.mode});D(K)}})})};
qIl=function(Q,W){var x=new Promise(function(D,K){try{W(Q).then(function(l){D(l)}).catch(K)}catch(l){K(l),Q.abort()}});
return Promise.all([x,Q.done]).then(function(D){return g.V(D).next().value})};
yUh=function(Q){this.B=Q};
eQF=function(Q,W,x){var D=[];return g.N5(Q,{query:W},function(K){if(!(x!==void 0&&D.length>=x))return D.push(K.getValue()),g.I8(K)}).then(function(){return D})};
g.N5=function(Q,W,x){Q=Q.B.openCursor(W.query===void 0?null:W.query,W.direction===void 0?"next":W.direction);return mj(Q).then(function(D){return h4(D,x)})};
cs=function(Q,W){this.request=Q;this.cursor=W};
mj=function(Q){return pX(Q).then(function(W){return W?new cs(Q,W):null})};
g.I8=function(Q){Q.cursor.continue(void 0);return mj(Q.request)};
fEa=function(Q,W,x){return new Promise(function(D,K){function l(){X||(X=new UhF(M.result,{closed:k}));return X}
var M=W!==void 0?self.indexedDB.open(Q,W):self.indexedDB.open(Q);var w=x.blocked,S=x.blocking,b=x.GCf,z=x.upgrade,k=x.closed,X;M.addEventListener("upgradeneeded",function(u){try{if(u.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(M.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");u.dataLoss&&u.dataLoss!=="none"&&zj("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:Xi(Q)});var Y=l(),v=new q5(M.transaction);
z&&z(Y,function(J){return u.oldVersion<J&&u.newVersion>=J},v);
v.done.catch(function(J){K(J)})}catch(J){K(J)}});
M.addEventListener("success",function(){var u=M.result;S&&u.addEventListener("versionchange",function(){S(l())});
u.addEventListener("close",function(){zj("IDB_UNEXPECTEDLY_CLOSED",{dbName:Xi(Q),dbVersion:u.version});b&&b()});
D(l())});
M.addEventListener("error",function(){K(M.error)});
w&&M.addEventListener("blocked",function(){w()})})};
ZTn=function(Q,W,x){x=x===void 0?{}:x;return fEa(Q,W,x)};
gV=function(Q,W){W=W===void 0?{}:W;var x,D,K,l;return g.U(function(M){if(M.B==1)return g.P5(M,2),x=self.indexedDB.deleteDatabase(Q),D=W,(K=D.blocked)&&x.addEventListener("blocked",function(){K()}),g.A(M,dh5(x),4);
if(M.B!=2)return g.Cs(M,0);l=g.Jv(M);throw VX(l,Q,"",-1);})};
yX=function(Q,W){this.name=Q;this.options=W;this.D=!0;this.L=this.N=0};
LS5=function(Q,W){return new g.o8("INCOMPATIBLE_DB_VERSION",{dbName:Q.name,oldVersion:Q.options.version,newVersion:W})};
g.eM=function(Q,W){if(!W)throw g.Ps("openWithToken",Xi(Q.name));return Q.open()};
rU2=function(Q,W){var x;return g.U(function(D){if(D.B==1)return g.A(D,g.eM(fX,W),2);x=D.U;return D.return(g.A4(x,["databases"],{dG:!0,mode:"readwrite"},function(K){var l=K.objectStore("databases");return l.get(Q.actualName).then(function(M){if(M?Q.actualName!==M.actualName||Q.publicName!==M.publicName||Q.userIdentifier!==M.userIdentifier:1)return g.Hs(l,Q).then(function(){})})}))})};
ZL=function(Q,W){var x;return g.U(function(D){if(D.B==1)return Q?g.A(D,g.eM(fX,W),2):D.return();x=D.U;return D.return(x.delete("databases",Q))})};
Tkl=function(Q,W){var x,D;return g.U(function(K){return K.B==1?(x=[],g.A(K,g.eM(fX,W),2)):K.B!=3?(D=K.U,g.A(K,g.A4(D,["databases"],{dG:!0,mode:"readonly"},function(l){x.length=0;return g.$D(l.objectStore("databases"),{},function(M){Q(M.getValue())&&x.push(M.getValue());return g.I8(M)})}),3)):K.return(x)})};
OTh=function(Q,W){return Tkl(function(x){return x.publicName===Q&&x.userIdentifier!==void 0},W)};
ERa=function(){var Q,W,x,D;return g.U(function(K){switch(K.B){case 1:Q=lJ();if((W=Q)==null?0:W.hasSucceededOnce)return K.return(!0);if(LX&&rm()&&!TG()||g.rV)return K.return(!1);try{if(x=self,!(x.indexedDB&&x.IDBIndex&&x.IDBKeyRange&&x.IDBObjectStore))return K.return(!1)}catch(l){return K.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return K.return(!1);g.P5(K,2);D={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.A(K,rU2(D,Tj),4);case 4:return g.A(K,ZL("yt-idb-test-do-not-use",Tj),5);case 5:return K.return(!0);case 2:return g.Jv(K),K.return(!1)}})};
FSQ=function(){if(OU!==void 0)return OU;bJ=!0;return OU=ERa().then(function(Q){bJ=!1;var W;if((W=KX())!=null&&W.B){var x;W={hasSucceededOnce:((x=lJ())==null?void 0:x.hasSucceededOnce)||Q};var D;(D=KX())==null||D.set("LAST_RESULT_ENTRY_KEY",W,2592E3,!0)}return Q})};
EU=function(){return g.yF("ytglobal.idbToken_")||void 0};
g.Fi=function(){var Q=EU();return Q?Promise.resolve(Q):FSQ().then(function(W){(W=W?Tj:void 0)&&g.g4("ytglobal.idbToken_",W);return W})};
t$h=function(Q){if(!g.TT())throw Q=new g.o8("AUTH_INVALID",{dbName:Q}),sU(Q),Q;var W=g.r3();return{actualName:Q+":"+W,publicName:Q,userIdentifier:W}};
Q2v=function(Q,W,x,D){var K,l,M,w,S,b;return g.U(function(z){switch(z.B){case 1:return l=(K=Error().stack)!=null?K:"",g.A(z,g.Fi(),2);case 2:M=z.U;if(!M)throw w=g.Ps("openDbImpl",Q,W),g.Pb("ytidb_async_stack_killswitch")||(w.stack=w.stack+"\n"+l.substring(l.indexOf("\n")+1)),sU(w),w;kD(Q);S=x?{actualName:Q,publicName:Q,userIdentifier:void 0}:t$h(Q);g.P5(z,3);return g.A(z,rU2(S,M),5);case 5:return g.A(z,ZTn(S.actualName,W,D),6);case 6:return z.return(z.U);case 3:return b=g.Jv(z),g.P5(z,7),g.A(z,ZL(S.actualName,
M),9);case 9:g.Cs(z,8);break;case 7:g.Jv(z);case 8:throw b;}})};
WgQ=function(Q,W,x){x=x===void 0?{}:x;return Q2v(Q,W,!1,x)};
x1n=function(Q,W,x){x=x===void 0?{}:x;return Q2v(Q,W,!0,x)};
D1s=function(Q,W){W=W===void 0?{}:W;var x,D;return g.U(function(K){if(K.B==1)return g.A(K,g.Fi(),2);if(K.B!=3){x=K.U;if(!x)return K.return();kD(Q);D=t$h(Q);return g.A(K,gV(D.actualName,W),3)}return g.A(K,ZL(D.actualName,x),0)})};
Kg2=function(Q,W,x){Q=Q.map(function(D){return g.U(function(K){return K.B==1?g.A(K,gV(D.actualName,W),2):g.A(K,ZL(D.actualName,x),0)})});
return Promise.all(Q).then(function(){})};
l9z=function(Q){var W=W===void 0?{}:W;var x,D;return g.U(function(K){if(K.B==1)return g.A(K,g.Fi(),2);if(K.B!=3){x=K.U;if(!x)return K.return();kD(Q);return g.A(K,OTh(Q,x),3)}D=K.U;return g.A(K,Kg2(D,W,x),0)})};
j25=function(Q,W){W=W===void 0?{}:W;var x;return g.U(function(D){if(D.B==1)return g.A(D,g.Fi(),2);if(D.B!=3){x=D.U;if(!x)return D.return();kD(Q);return g.A(D,gV(Q,W),3)}return g.A(D,ZL(Q,x),0)})};
t4=function(Q,W){yX.call(this,Q,W);this.options=W;kD(Q)};
MSO=function(Q,W){var x;return function(){x||(x=new t4(Q,W));return x}};
g.QV=function(Q,W){return MSO(Q,W)};
W3=function(Q){return g.eM(R62(),Q)};
wvD=function(Q,W,x,D){var K,l,M;return g.U(function(w){switch(w.B){case 1:return K={config:Q,hashData:W,timestamp:D!==void 0?D:(0,g.a8)()},g.A(w,W3(x),2);case 2:return l=w.U,g.A(w,l.clear("hotConfigStore"),3);case 3:return g.A(w,g.UU(l,"hotConfigStore",K),4);case 4:return M=w.U,w.return(M)}})};
Sb5=function(Q,W,x,D,K){var l,M,w;return g.U(function(S){switch(S.B){case 1:return l={config:Q,hashData:W,configData:x,timestamp:K!==void 0?K:(0,g.a8)()},g.A(S,W3(D),2);case 2:return M=S.U,g.A(S,M.clear("coldConfigStore"),3);case 3:return g.A(S,g.UU(M,"coldConfigStore",l),4);case 4:return w=S.U,S.return(w)}})};
bvF=function(Q){var W,x;return g.U(function(D){return D.B==1?g.A(D,W3(Q),2):D.B!=3?(W=D.U,x=void 0,g.A(D,g.A4(W,["coldConfigStore"],{mode:"readwrite",dG:!0},function(K){return g.N5(K.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(l){x=l.getValue()})}),3)):D.return(x)})};
s2l=function(Q){var W,x;return g.U(function(D){return D.B==1?g.A(D,W3(Q),2):D.B!=3?(W=D.U,x=void 0,g.A(D,g.A4(W,["hotConfigStore"],{mode:"readwrite",dG:!0},function(K){return g.N5(K.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(l){x=l.getValue()})}),3)):D.return(x)})};
z6l=function(){return g.U(function(Q){return g.A(Q,l9z("ytGcfConfig"),0)})};
xE=function(){g.N.call(this);this.U=[];this.B=[];var Q=g.yF("yt.gcf.config.hotUpdateCallbacks");Q?(this.U=[].concat(g.C(Q)),this.B=Q):(this.B=[],g.g4("yt.gcf.config.hotUpdateCallbacks",this.B))};
R_=function(){var Q=this;this.L=!1;this.D=this.N=0;this.X=new xE;this.by={cqj:function(){Q.L=!0},
fx3:function(){return Q.B},
lTj:function(W){DV(Q,W)},
zm:function(W){Q.zm(W)},
k5t:function(W){KK(Q,W)},
Lo:function(){return Q.coldHashData},
Yj:function(){return Q.hotHashData},
zGt:function(){return Q.U},
ggp:function(){return lN()},
ogf:function(){return jG()},
j4t:function(){return g.yF("yt.gcf.config.coldHashData")},
GLS:function(){return g.yF("yt.gcf.config.hotHashData")},
Hfj:function(){kK2(Q)},
Ucf:function(){Q.zm(void 0);M8(Q);delete R_.instance},
Jop:function(W){Q.D=W},
dzf:function(){return Q.D}}};
XvO=function(){if(!R_.instance){var Q=new R_;R_.instance=Q}return R_.instance};
YbQ=function(Q){var W;g.U(function(x){if(x.B==1)return g.Pb("start_client_gcf")||g.Pb("delete_gcf_config_db")?g.Pb("start_client_gcf")?g.A(x,g.Fi(),3):x.kf(2):x.return();x.B!=2&&((W=x.U)&&g.TT()&&!g.Pb("delete_gcf_config_db")?(Q.L=!0,kK2(Q)):(oPF(Q),uP4(Q)));return g.Pb("delete_gcf_config_db")?g.A(x,z6l(),0):x.kf(0)})};
wq=function(){var Q;return(Q=jG())!=null?Q:g.TK("RAW_HOT_CONFIG_GROUP")};
nPn=function(Q){var W,x,D,K,l,M;return g.U(function(w){switch(w.B){case 1:if(Q.U)return w.return(jG());if(!Q.L)return W=g.Ps("getHotConfig IDB not initialized"),Qk(W),w.return(Promise.reject(W));x=EU();D=g.TK("TIME_CREATED_MS");if(!x){K=g.Ps("getHotConfig token error");Qk(K);w.kf(2);break}return g.A(w,s2l(x),3);case 3:if((l=w.U)&&l.timestamp>D)return DV(Q,l.config),Q.zm(l.hashData),w.return(jG());case 2:uP4(Q);if(!(x&&Q.U&&Q.hotHashData)){w.kf(4);break}return g.A(w,wvD(Q.U,Q.hotHashData,x,D),4);case 4:return Q.U?
w.return(jG()):(M=new g.Lw("Config not available in ytConfig"),Qk(M),w.return(Promise.reject(M)))}})};
P$1=function(Q){var W,x,D,K,l,M;return g.U(function(w){switch(w.B){case 1:if(Q.B)return w.return(lN());if(!Q.L)return W=g.Ps("getColdConfig IDB not initialized"),Qk(W),w.return(Promise.reject(W));x=EU();D=g.TK("TIME_CREATED_MS");if(!x){K=g.Ps("getColdConfig");Qk(K);w.kf(2);break}return g.A(w,bvF(x),3);case 3:if((l=w.U)&&l.timestamp>D)return KK(Q,l.config),VSD(Q,l.configData),M8(Q,l.hashData),w.return(lN());case 2:oPF(Q);if(!(x&&Q.B&&Q.coldHashData&&Q.configData)){w.kf(4);break}return g.A(w,Sb5(Q.B,
Q.coldHashData,Q.configData,x,D),4);case 4:return Q.B?w.return(lN()):(M=new g.Lw("Config not available in ytConfig"),Qk(M),w.return(Promise.reject(M)))}})};
kK2=function(Q){if(!Q.U||!Q.B){if(!EU()){var W=g.Ps("scheduleGetConfigs");Qk(W)}Q.N||(Q.N=g.ct.zK(function(){return g.U(function(x){switch(x.B){case 1:return g.P5(x,2),g.A(x,nPn(Q),4);case 4:g.Cs(x,3);break;case 2:g.Jv(x);case 3:return g.P5(x,5),g.A(x,P$1(Q),7);case 7:g.Cs(x,6);break;case 5:g.Jv(x);case 6:Q.N&&(Q.N=0),g.VF(x)}})},100))}};
vPF=function(Q,W,x){var D,K,l;return g.U(function(M){switch(M.B){case 1:if(!g.Pb("start_client_gcf")){M.kf(0);break}x&&DV(Q,x);Q.zm(W);D=EU();if(!D){M.kf(3);break}if(x){M.kf(4);break}return g.A(M,s2l(D),5);case 5:K=M.U,x=(l=K)==null?void 0:l.config;case 4:return g.A(M,wvD(x,W,D),3);case 3:if(x)for(var w=x,S=g.V(Q.X.B),b=S.next();!b.done;b=S.next())b=b.value,b(w);g.VF(M)}})};
C$l=function(Q,W,x){var D,K,l,M;return g.U(function(w){if(w.B==1){if(!g.Pb("start_client_gcf"))return w.kf(0);M8(Q,W);return(D=EU())?x?w.kf(4):g.A(w,bvF(D),5):w.kf(0)}w.B!=4&&(K=w.U,x=(l=K)==null?void 0:l.config);if(!x)return w.kf(0);M=x.configData;return g.A(w,Sb5(x,W,M,D),0)})};
Jxh=function(){var Q=XvO(),W=(0,g.a8)()-Q.D;if(!(Q.D!==0&&W<g.vb("send_config_hash_timer"))){W=g.yF("yt.gcf.config.coldConfigData");var x=g.yF("yt.gcf.config.hotHashData"),D=g.yF("yt.gcf.config.coldHashData");W&&x&&D&&(Q.D=(0,g.a8)());return{coldConfigData:W,hotHashData:x,coldHashData:D}}};
oPF=function(Q){KK(Q,g.TK("RAW_COLD_CONFIG_GROUP"));M8(Q,g.TK("SERIALIZED_COLD_HASH_DATA"));var W;VSD(Q,(W=Q.B)==null?void 0:W.configData)};
uP4=function(Q){DV(Q,g.TK("RAW_HOT_CONFIG_GROUP"));Q.zm(g.TK("SERIALIZED_HOT_HASH_DATA"))};
DV=function(Q,W){Q.U=W;g.g4("yt.gcf.config.hotConfigGroup",Q.U||null)};
KK=function(Q,W){Q.B=W;g.g4("yt.gcf.config.coldConfigGroup",Q.B||null)};
M8=function(Q,W){Q.coldHashData=W;g.g4("yt.gcf.config.coldHashData",Q.coldHashData||null)};
VSD=function(Q,W){Q.configData=W;g.g4("yt.gcf.config.coldConfigData",Q.configData||null)};
jG=function(){return g.yF("yt.gcf.config.hotConfigGroup")};
lN=function(){return g.yF("yt.gcf.config.coldConfigGroup")};
pvz=function(){return"INNERTUBE_API_KEY"in Lv&&"INNERTUBE_API_VERSION"in Lv};
g.SG=function(){return{innertubeApiKey:g.TK("INNERTUBE_API_KEY"),innertubeApiVersion:g.TK("INNERTUBE_API_VERSION"),sM:g.TK("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),yL:g.TK("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),uZ:g.TK("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.TK("INNERTUBE_CONTEXT_CLIENT_VERSION"),Dr:g.TK("INNERTUBE_CONTEXT_HL"),FK:g.TK("INNERTUBE_CONTEXT_GL"),BQ:g.TK("INNERTUBE_HOST_OVERRIDE")||"",UO:!!g.TK("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),HS5:!!g.TK("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.TK("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.bN=function(Q){var W={client:{hl:Q.Dr,gl:Q.FK,clientName:Q.yL,clientVersion:Q.innertubeContextClientVersion,configInfo:Q.sM}};navigator.userAgent&&(W.client.userAgent=String(navigator.userAgent));var x=g.Nz.devicePixelRatio;x&&x!=1&&(W.client.screenDensityFloat=String(x));x=Cl();x!==""&&(W.client.experimentsToken=x);x=JS();x.length>0&&(W.request={internalExperimentFlags:x});h62(Q,void 0,W);a94(void 0,W);GKs(void 0,W);d1Q(Q,void 0,W);iv5(void 0,W);g.Pb("start_client_gcf")&&Axn(void 0,W);g.TK("DELEGATED_SESSION_ID")&&
!g.Pb("pageid_as_header_web")&&(W.user={onBehalfOfUser:g.TK("DELEGATED_SESSION_ID")});!g.Pb("fill_delegate_context_in_gel_killswitch")&&(Q=g.TK("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(W.user=Object.assign({},W.user,{serializedDelegationContext:Q}));Q=g.TK("INNERTUBE_CONTEXT");var D;if(g.Pb("enable_persistent_device_token")&&(Q==null?0:(D=Q.client)==null?0:D.rolloutToken)){var K;W.client.rolloutToken=Q==null?void 0:(K=Q.client)==null?void 0:K.rolloutToken}D=Object;K=D.assign;Q=W.client;
x={};for(var l=g.V(Object.entries(Ds(g.TK("DEVICE","")))),M=l.next();!M.done;M=l.next()){var w=g.V(M.value);M=w.next().value;w=w.next().value;M==="cbrand"?x.deviceMake=w:M==="cmodel"?x.deviceModel=w:M==="cbr"?x.browserName=w:M==="cbrver"?x.browserVersion=w:M==="cos"?x.osName=w:M==="cosver"?x.osVersion=w:M==="cplatform"&&(x.platform=w)}W.client=K.call(D,Q,x);return W};
h62=function(Q,W,x){Q=Q.yL;if(Q==="WEB"||Q==="MWEB"||Q===1||Q===2)if(W){x=Rp(W,dT,96)||new dT;var D=IC();D=Object.keys(Hv5).indexOf(D);D=D===-1?null:D;D!==null&&VH(x,3,D);wc(W,dT,96,x)}else x&&(x.client.mainAppWebInfo=(D=x.client.mainAppWebInfo)!=null?D:{},x.client.mainAppWebInfo.webDisplayMode=IC())};
a94=function(Q,W){var x=g.yF("yt.embedded_player.embed_url");x&&(Q?(W=Rp(Q,q1,7)||new q1,YL(W,4,x),wc(Q,q1,7,W)):W&&(W.thirdParty={embedUrl:x}))};
GKs=function(Q,W){var x;if(g.Pb("web_log_memory_total_kbytes")&&((x=g.Nz.navigator)==null?0:x.deviceMemory)){var D;x=(D=g.Nz.navigator)==null?void 0:D.deviceMemory;Q?gf(Q,95,v6(x*1E6)):W&&(W.client.memoryTotalKbytes=""+x*1E6)}};
d1Q=function(Q,W,x){if(Q.appInstallData)if(W){var D;x=(D=Rp(W,GK,62))!=null?D:new GK;YL(x,6,Q.appInstallData);wc(W,GK,62,x)}else x&&(x.client.configInfo=x.client.configInfo||{},x.client.configInfo.appInstallData=Q.appInstallData)};
iv5=function(Q,W){var x=XgD();x&&(Q?VH(Q,61,U1z[x]):W&&(W.client.connectionType=x));g.Pb("web_log_effective_connection_type")&&(x=uKv())&&(Q?VH(Q,94,qb1[x]):W&&(W.client.effectiveConnectionType=x))};
BTs=function(Q,W,x){x=x===void 0?{}:x;var D={};g.TK("EOM_VISITOR_DATA")?D={"X-Goog-EOM-Visitor-Id":g.TK("EOM_VISITOR_DATA")}:D={"X-Goog-Visitor-Id":x.visitorData||g.TK("VISITOR_DATA","")};if(W&&W.includes("www.youtube-nocookie.com"))return D;W=x.QP||g.TK("AUTHORIZATION");W||(Q?W="Bearer "+g.yF("gapi.auth.getToken")().access_token:(Q=wgO().Un(sh),g.Pb("pageid_as_header_web")||delete Q["X-Goog-PageId"],D=Object.assign({},D,Q)));W&&(D.Authorization=W);return D};
Axn=function(Q,W){var x=Jxh();if(x){var D=x.coldConfigData,K=x.coldHashData;x=x.hotHashData;if(Q){var l;W=(l=Rp(Q,GK,62))!=null?l:new GK;D=YL(W,1,D);YL(D,3,K).zm(x);wc(Q,GK,62,W)}else W&&(W.client.configInfo=W.client.configInfo||{},D&&(W.client.configInfo.coldConfigData=D),K&&(W.client.configInfo.coldHashData=K),x&&(W.client.configInfo.hotHashData=x))}};
z$=function(Q,W){this.version=Q;this.args=W};
kE=function(Q,W){this.topic=Q;this.B=W};
o_=function(Q,W){var x=X8();x&&x.publish.call(x,Q.toString(),Q,W)};
m1n=function(Q){var W=$11,x=X8();if(!x)return 0;var D=x.subscribe(W.toString(),function(K,l){var M=g.yF("ytPubsub2Pubsub2SkipSubKey");M&&M==D||(M=function(){if(uN[D])try{if(l&&W instanceof kE&&W!=K)try{var w=W.B,S=l;if(!S.args||!S.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!w.uD){var b=new w;w.uD=b.version}var z=w.uD}catch(k){}if(!z||S.version!=z)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{l=Reflect.construct(w,
g.DX(S.args))}catch(k){throw k.message="yt.pubsub2.Data.deserialize(): "+k.message,k;}}catch(k){throw k.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+W.toString()+": "+k.message,k;}Q.call(window,l)}catch(k){g.FP(k)}},I9Q[W.toString()]?g.Ws()?g.ct.zK(M):g.oc(M,0):M())});
uN[D]=!0;YE[W.toString()]||(YE[W.toString()]=[]);YE[W.toString()].push(D);return D};
gP2=function(){var Q=NTs,W=m1n(function(x){Q.apply(void 0,arguments);cxO(W)});
return W};
cxO=function(Q){var W=X8();W&&(typeof Q==="number"&&(Q=[Q]),g.o3(Q,function(x){W.unsubscribeByKey(x);delete uN[x]}))};
X8=function(){return g.yF("ytPubsub2Pubsub2Instance")};
J0=function(Q,W,x){x=x===void 0?{sampleRate:.1}:x;Math.random()<Math.min(.02,x.sampleRate/100)&&o_("meta_logging_csi_event",{timerName:Q,RX7:W})};
yxD=function(){pK||(pK=Jx(g.TK("WORKER_SERIALIZATION_URL")));return pK||void 0};
a_=function(){var Q=yxD();h0||Q===void 0||(h0=new Worker(ax(Q),void 0));return h0};
e6z=function(){return typeof Worker==="function"&&yxD()?!0:!1};
ZvD=function(){if(e6z()&&!G$){var Q=function(x){x=x.data;if(x.op==="gzippedGelBatch"){var D=dq.get(x.key);D&&(f9v(x.gzippedBatch,D.latencyPayload,D.url,D.options,D.sendFn),dq.delete(x.key))}},W=a_();
W&&(W.addEventListener("message",Q),W.onerror=function(){dq.clear()},G$=!0)}};
H3=function(Q,W,x,D,K){K=K===void 0?!1:K;var l={startTime:(0,g.a8)(),ticks:{},infos:{}};if(iN)try{var M=Lgl(W);if(M!=null&&(M>rxQ||M<TT4))D(Q,x);else{if(g.Pb("gzip_gel_with_worker")&&(g.Pb("initial_gzip_use_main_thread")&&!OvF||!g.Pb("initial_gzip_use_main_thread"))){G$||ZvD();var w=a_();if(w&&!K){dq.set(A0,{latencyPayload:l,url:Q,options:x,sendFn:D});w.postMessage({op:"gelBatchToGzip",serializedBatch:W,key:A0});A0++;return}}var S=$7z(EP1(W));f9v(S,l,Q,x,D)}}catch(b){Qk(b),D(Q,x)}else D(Q,x)};
f9v=function(Q,W,x,D,K){OvF=!1;var l=(0,g.a8)();W.ticks.gelc=l;Uh++;g.Pb("disable_compression_due_to_performance_degredation")&&l-W.startTime>=Fgh&&(q8++,g.Pb("abandon_compression_after_N_slow_zips")?Uh===g.vb("compression_disable_point")&&q8>tSQ&&(iN=!1):iN=!1);Qch(W);D.headers||(D.headers={});D.headers["Content-Encoding"]="gzip";D.postBody=Q;D.postParams=void 0;K(x,D)};
W2l=function(Q){var W=W===void 0?!1:W;var x=x===void 0?!1:x;var D=(0,g.a8)(),K={startTime:D,ticks:{},infos:{}},l=W?g.yF("yt.logging.gzipForFetch",!1):!0;if(iN&&l){if(!Q.body)return Q;try{var M=x?Q.body:typeof Q.body==="string"?Q.body:JSON.stringify(Q.body);l=M;if(!x&&typeof M==="string"){var w=Lgl(M);if(w!=null&&(w>rxQ||w<TT4))return Q;x=W?{level:1}:void 0;l=$7z(EP1(M),x);var S=(0,g.a8)();K.ticks.gelc=S;if(W){Uh++;if((g.Pb("disable_compression_due_to_performance_degredation")||g.Pb("disable_compression_due_to_performance_degradation_lr"))&&
S-D>=Fgh)if(q8++,g.Pb("abandon_compression_after_N_slow_zips")||g.Pb("abandon_compression_after_N_slow_zips_lr")){W=q8/Uh;var b=tSQ/g.vb("compression_disable_point");Uh>0&&Uh%g.vb("compression_disable_point")===0&&W>=b&&(iN=!1)}else iN=!1;Qch(K)}}Q.headers=Object.assign({},{"Content-Encoding":"gzip"},Q.headers||{});Q.body=l;return Q}catch(z){return Qk(z),Q}}else return Q};
Lgl=function(Q){try{return(new Blob(Q.split(""))).size}catch(W){return Qk(W),null}};
Qch=function(Q){g.Pb("gel_compression_csi_killswitch")||!g.Pb("log_gel_compression_latency")&&!g.Pb("log_gel_compression_latency_lr")||J0("gel_compression",Q,{sampleRate:.1})};
$E=function(Q){var W=this;this.SV=this.B=!1;this.potentialEsfErrorCounter=this.U=0;this.handleError=function(){};
this.mY=function(){};
this.now=Date.now;this.IF=!1;this.by={QX3:function(z){W.YX=z},
OfS:function(){W.gM()},
wB:function(){W.jY()},
On:function(z){return g.U(function(k){return g.A(k,W.On(z),0)})},
tC:function(z,k){return W.tC(z,k)},
V3:function(){W.V3()}};
var x;this.hk=(x=Q.hk)!=null?x:100;var D;this.T2=(D=Q.T2)!=null?D:1;var K;this.Cg=(K=Q.Cg)!=null?K:2592E6;var l;this.R6=(l=Q.R6)!=null?l:12E4;var M;this.ZZ=(M=Q.ZZ)!=null?M:5E3;var w;this.YX=(w=Q.YX)!=null?w:void 0;this.oS=!!Q.oS;var S;this.US=(S=Q.US)!=null?S:.1;var b;this.ge=(b=Q.ge)!=null?b:10;Q.handleError&&(this.handleError=Q.handleError);Q.mY&&(this.mY=Q.mY);Q.IF&&(this.IF=Q.IF);Q.SV&&(this.SV=Q.SV);this.ij=Q.ij;this.Rp=Q.Rp;this.zC=Q.zC;this.DB=Q.DB;this.sendFn=Q.sendFn;this.Qy=Q.Qy;this.fH=
Q.fH;B3(this)&&(!this.ij||this.ij("networkless_logging"))&&xOv(this)};
xOv=function(Q){B3(Q)&&!Q.IF&&(Q.B=!0,Q.oS&&Math.random()<=Q.US&&Q.zC.H1(Q.YX),Q.V3(),Q.DB.yv()&&Q.gM(),Q.DB.listen(Q.Qy,Q.gM.bind(Q)),Q.DB.listen(Q.fH,Q.jY.bind(Q)))};
lss=function(Q,W){if(!B3(Q))throw Error("IndexedDB is not supported: updateRequestHandlers");var x=W.options.onError?W.options.onError:function(){};
W.options.onError=function(K,l){var M,w,S,b;return g.U(function(z){switch(z.B){case 1:M=DOz(l);(w=K2n(l))&&Q.ij&&Q.ij("web_enable_error_204")&&Q.handleError(Error("Request failed due to compression"),W.url,l);if(!(Q.ij&&Q.ij("nwl_consider_error_code")&&M||Q.ij&&!Q.ij("nwl_consider_error_code")&&Q.potentialEsfErrorCounter<=Q.ge)){z.kf(2);break}if(!Q.DB.pJ){z.kf(3);break}return g.A(z,Q.DB.pJ(),3);case 3:if(Q.DB.yv()){z.kf(2);break}x(K,l);if(!Q.ij||!Q.ij("nwl_consider_error_code")||((S=W)==null?void 0:
S.id)===void 0){z.kf(6);break}return g.A(z,Q.zC.u3(W.id,Q.YX,!1),6);case 6:return z.return();case 2:if(Q.ij&&Q.ij("nwl_consider_error_code")&&!M&&Q.potentialEsfErrorCounter>Q.ge)return z.return();Q.potentialEsfErrorCounter++;if(((b=W)==null?void 0:b.id)===void 0){z.kf(8);break}return W.sendCount<Q.T2?g.A(z,Q.zC.u3(W.id,Q.YX,!0,w?!1:void 0),12):g.A(z,Q.zC.wf(W.id,Q.YX),8);case 12:Q.Rp.zK(function(){Q.DB.yv()&&Q.gM()},Q.ZZ);
case 8:x(K,l),g.VF(z)}})};
var D=W.options.onSuccess?W.options.onSuccess:function(){};
W.options.onSuccess=function(K,l){var M;return g.U(function(w){if(w.B==1)return((M=W)==null?void 0:M.id)===void 0?w.kf(2):g.A(w,Q.zC.wf(W.id,Q.YX),2);Q.DB.LF&&Q.ij&&Q.ij("vss_network_hint")&&Q.DB.LF(!0);D(K,l);g.VF(w)})};
return W};
I_=function(Q,W){Q.VZ&&!Q.DB.yv()?Q.VZ(W):Q.handleError(W)};
B3=function(Q){return!!Q.YX||Q.SV};
DOz=function(Q){var W;return(Q=Q==null?void 0:(W=Q.error)==null?void 0:W.code)&&Q>=400&&Q<=599?!1:!0};
K2n=function(Q){var W;Q=Q==null?void 0:(W=Q.error)==null?void 0:W.code;return!(Q!==400&&Q!==415)};
jcv=function(){if(mx)return mx();var Q={};mx=g.QV("LogsDatabaseV2",{mZ:(Q.LogsRequestsStore={yd:2},Q),shared:!1,upgrade:function(W,x,D){x(2)&&g.dV(W,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});x(3);x(5)&&(D=D.objectStore("LogsRequestsStore"),D.B.indexNames.contains("newRequest")&&D.B.deleteIndex("newRequest"),g.Bs(D,"newRequestV2",["status","interface","timestamp"]));x(7)&&iJ(W,"sapisid");x(9)&&iJ(W,"SWHealthLog")},
version:9});return mx()};
N8=function(Q){return g.eM(jcv(),Q)};
RIO=function(Q,W){var x,D,K,l;return g.U(function(M){if(M.B==1)return x={startTime:(0,g.a8)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.A(M,N8(W),2);if(M.B!=3)return D=M.U,K=Object.assign({},Q,{options:JSON.parse(JSON.stringify(Q.options)),interface:g.TK("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.A(M,g.UU(D,"LogsRequestsStore",K),3);l=M.U;x.ticks.tc=(0,g.a8)();MLh(x);return M.return(l)})};
wba=function(Q,W){var x,D,K,l,M,w,S,b;return g.U(function(z){if(z.B==1)return x={startTime:(0,g.a8)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.A(z,N8(W),2);if(z.B!=3)return D=z.U,K=g.TK("INNERTUBE_CONTEXT_CLIENT_NAME",0),l=[Q,K,0],M=[Q,K,(0,g.a8)()],w=IDBKeyRange.bound(l,M),S="prev",g.Pb("use_fifo_for_networkless")&&(S="next"),b=void 0,g.A(z,g.A4(D,["LogsRequestsStore"],{mode:"readwrite",dG:!0},function(k){return g.N5(k.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:w,direction:S},function(X){X.getValue()&&(b=X.getValue(),Q==="NEW"&&(b.status="QUEUED",X.update(b)))})}),3);
x.ticks.tc=(0,g.a8)();MLh(x);return z.return(b)})};
Sks=function(Q,W){var x;return g.U(function(D){if(D.B==1)return g.A(D,N8(W),2);x=D.U;return D.return(g.A4(x,["LogsRequestsStore"],{mode:"readwrite",dG:!0},function(K){var l=K.objectStore("LogsRequestsStore");return l.get(Q).then(function(M){if(M)return M.status="QUEUED",g.Hs(l,M).then(function(){return M})})}))})};
bl5=function(Q,W,x,D){x=x===void 0?!0:x;var K;return g.U(function(l){if(l.B==1)return g.A(l,N8(W),2);K=l.U;return l.return(g.A4(K,["LogsRequestsStore"],{mode:"readwrite",dG:!0},function(M){var w=M.objectStore("LogsRequestsStore");return w.get(Q).then(function(S){return S?(S.status="NEW",x&&(S.sendCount+=1),D!==void 0&&(S.options.compress=D),g.Hs(w,S).then(function(){return S})):g.CX.resolve(void 0)})}))})};
scF=function(Q,W){var x;return g.U(function(D){if(D.B==1)return g.A(D,N8(W),2);x=D.U;return D.return(x.delete("LogsRequestsStore",Q))})};
zIz=function(Q){var W,x;return g.U(function(D){if(D.B==1)return g.A(D,N8(Q),2);W=D.U;x=(0,g.a8)()-2592E6;return g.A(D,g.A4(W,["LogsRequestsStore"],{mode:"readwrite",dG:!0},function(K){return g.$D(K.objectStore("LogsRequestsStore"),{},function(l){if(l.getValue().timestamp<=x)return l.delete().then(function(){return g.I8(l)})})}),0)})};
kGD=function(){g.U(function(Q){return g.A(Q,l9z("LogsDatabaseV2"),0)})};
MLh=function(Q){g.Pb("nwl_csi_killswitch")||J0("networkless_performance",Q,{sampleRate:1})};
o1F=function(Q){return g.eM(XbD(),Q)};
u5s=function(Q){var W,x;g.U(function(D){if(D.B==1)return g.A(D,o1F(Q),2);W=D.U;x=(0,g.a8)()-2592E6;return g.A(D,g.A4(W,["SWHealthLog"],{mode:"readwrite",dG:!0},function(K){return g.$D(K.objectStore("SWHealthLog"),{},function(l){if(l.getValue().timestamp<=x)return l.delete().then(function(){return g.I8(l)})})}),0)})};
Yka=function(Q){var W;return g.U(function(x){if(x.B==1)return g.A(x,o1F(Q),2);W=x.U;return g.A(x,W.clear("SWHealthLog"),0)})};
g.c3=function(Q,W,x,D,K,l,M){K=K===void 0?"":K;l=l===void 0?!1:l;M=M===void 0?!1:M;if(Q)if(x&&!g.fl())Qk(new g.Lw("Legacy referrer-scrubbed ping detected")),Q&&n15(Q,void 0,{scrubReferrer:!0});else if(K)pl(Q,W,"POST",K,D);else if(g.TK("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||D||M)pl(Q,W,"GET","",D,void 0,l,M);else{b:{try{var w=new xI5({url:Q});if(w.L?typeof w.D!=="string"||w.D.length===0?0:{version:3,lI:w.D,oo:p8(w.B,"act=1","ri=1",DI5(w))}:w.X&&{version:4,lI:p8(w.B,"dct=1","suid="+w.N,""),oo:p8(w.B,
"act=1","ri=1","suid="+w.N)}){var S=Ar(g.B_(5,Q));var b=!(!S||!S.endsWith("/aclk")||fr(Q,"ri")!=="1");break b}}catch(z){}b=!1}b?VLO(Q)?(W&&W(),x=!0):x=!1:x=!1;x||n15(Q,W)}};
VLO=function(Q,W){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(Q,W===void 0?"":W))return!0}catch(x){}return!1};
n15=function(Q,W,x){x=x===void 0?{}:x;var D=new Image,K=""+PYn++;gq[K]=D;D.onload=D.onerror=function(){W&&gq[K]&&W();delete gq[K]};
x.scrubReferrer&&(D.referrerPolicy="no-referrer");D.src=Q};
v1a=function(Q){var W;return((W=document.featurePolicy)==null?0:W.allowedFeatures().includes("attribution-reporting"))?Q+"&nis=6":Q+"&nis=5"};
eG=function(){yV||(yV=new DL("yt.offline"));return yV};
CYv=function(Q){if(g.Pb("offline_error_handling")){var W=eG().get("errors",!0)||{};W[Q.message]={name:Q.name,stack:Q.stack};Q.level&&(W[Q.message].level=Q.level);eG().set("errors",W,2592E3,!0)}};
fK=function(){this.B=new Map;this.U=!1};
ZV=function(){if(!fK.instance){var Q=g.yF("yt.networkRequestMonitor.instance")||new fK;g.g4("yt.networkRequestMonitor.instance",Q);fK.instance=Q}return fK.instance};
LK=function(){g.FN.call(this);var Q=this;this.U=!1;this.B=qBv();this.B.listen("networkstatus-online",function(){if(Q.U&&g.Pb("offline_error_handling")){var W=eG().get("errors",!0);if(W){for(var x in W)if(W[x]){var D=new g.Lw(x,"sent via offline_errors");D.name=W[x].name;D.stack=W[x].stack;D.level=W[x].level;g.FP(D)}eG().set("errors",{},2592E3,!0)}}})};
JS4=function(){if(!LK.instance){var Q=g.yF("yt.networkStatusManager.instance")||new LK;g.g4("yt.networkStatusManager.instance",Q);LK.instance=Q}return LK.instance};
g.rq=function(Q){Q=Q===void 0?{}:Q;g.FN.call(this);var W=this;this.B=this.N=0;this.U=JS4();var x=g.yF("yt.networkStatusManager.instance.listen").bind(this.U);x&&(Q.rateLimit?(this.rateLimit=Q.rateLimit,x("networkstatus-online",function(){pbO(W,"publicytnetworkstatus-online")}),x("networkstatus-offline",function(){pbO(W,"publicytnetworkstatus-offline")})):(x("networkstatus-online",function(){W.dispatchEvent("publicytnetworkstatus-online")}),x("networkstatus-offline",function(){W.dispatchEvent("publicytnetworkstatus-offline")})))};
pbO=function(Q,W){Q.rateLimit?Q.B?(g.ct.TA(Q.N),Q.N=g.ct.zK(function(){Q.D!==W&&(Q.dispatchEvent(W),Q.D=W,Q.B=(0,g.a8)())},Q.rateLimit-((0,g.a8)()-Q.B))):(Q.dispatchEvent(W),Q.D=W,Q.B=(0,g.a8)()):Q.dispatchEvent(W)};
Oh=function(){var Q=$E.call;T$||(T$=new g.rq({zBS:!0,iYt:!0}));Q.call($E,this,{zC:{H1:zIz,wf:scF,Z3:wba,JO3:Sks,u3:bl5,set:RIO},DB:T$,handleError:function(W,x,D){var K,l=D==null?void 0:(K=D.error)==null?void 0:K.code;if(l===400||l===415){var M;Qk(new g.Lw(W.message,x,D==null?void 0:(M=D.error)==null?void 0:M.code),void 0,void 0,void 0,!0)}else g.FP(W)},
mY:Qk,sendFn:hI2,now:g.a8,VZ:CYv,Rp:g.QX(),Qy:"publicytnetworkstatus-online",fH:"publicytnetworkstatus-offline",oS:!0,US:.1,ge:g.vb("potential_esf_error_limit",10),ij:g.Pb,IF:!(g.TT()&&g.$X(document.location.toString())!=="www.youtube-nocookie.com")});this.D=new g.XT;g.Pb("networkless_immediately_drop_all_requests")&&kGD();j25("LogsDatabaseV2")};
Eh=function(){var Q=g.yF("yt.networklessRequestController.instance");Q||(Q=new Oh,g.g4("yt.networklessRequestController.instance",Q),g.Pb("networkless_logging")&&g.Fi().then(function(W){Q.YX=W;xOv(Q);Q.D.resolve();Q.oS&&Math.random()<=Q.US&&Q.YX&&u5s(Q.YX);g.Pb("networkless_immediately_drop_sw_health_store")&&as5(Q)}));
return Q};
as5=function(Q){var W;g.U(function(x){if(!Q.YX)throw W=g.Ps("clearSWHealthLogsDb"),W;return x.return(Yka(Q.YX).catch(function(D){Q.handleError(D)}))})};
hI2=function(Q,W,x,D){D=D===void 0?!1:D;W=g.Pb("web_fp_via_jspb")?Object.assign({},W):W;g.Pb("use_cfr_monitor")&&GG2(Q,W);if(g.Pb("use_request_time_ms_header"))W.headers&&Rc(Q)&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.a8)())));else{var K;if((K=W.postParams)==null?0:K.requestTimeMs)W.postParams.requestTimeMs=Math.round((0,g.a8)())}x&&Object.keys(W).length===0?g.c3(Q):W.compress?W.postBody?(typeof W.postBody!=="string"&&(W.postBody=JSON.stringify(W.postBody)),H3(Q,W.postBody,
W,g.hS,D)):H3(Q,JSON.stringify(W.postParams),W,ac,D):g.hS(Q,W)};
F8=function(Q,W){g.Pb("use_event_time_ms_header")&&Rc(Q)&&(W.headers||(W.headers={}),W.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.a8)())));return W};
GG2=function(Q,W){var x=W.onError?W.onError:function(){};
W.onError=function(K,l){ZV().requestComplete(Q,!1);x(K,l)};
var D=W.onSuccess?W.onSuccess:function(){};
W.onSuccess=function(K,l){ZV().requestComplete(Q,!0);D(K,l)}};
g.t0=function(Q){this.config_=null;Q?this.config_=Q:pvz()&&(this.config_=g.SG())};
g.Qc=function(Q,W,x,D){function K(b){try{if((b===void 0?0:b)&&D.retry&&!D.networklessOptions.bypassNetworkless)l.method="POST",D.networklessOptions.writeThenSend?Eh().writeThenSend(S,l):Eh().sendAndWrite(S,l);else if(D.compress){var z=!D.networklessOptions.writeThenSend;if(l.postBody){var k=l.postBody;typeof k!=="string"&&(k=JSON.stringify(l.postBody));H3(S,k,l,g.hS,z)}else H3(S,JSON.stringify(l.postParams),l,ac,z)}else g.Pb("web_all_payloads_via_jspb")?g.hS(S,l):ac(S,l)}catch(X){if(X.name==="InvalidAccessError")Qk(Error("An extension is blocking network request."));
else throw X;}}
!g.TK("VISITOR_DATA")&&W!=="visitor_id"&&Math.random()<.01&&Qk(new g.Lw("Missing VISITOR_DATA when sending innertube request.",W,x,D));if(!Q.isReady())throw Q=new g.Lw("innertube xhrclient not ready",W,x,D),g.FP(Q),Q;var l={headers:D.headers||{},method:"POST",postParams:x,postBody:D.postBody,postBodyFormat:D.postBodyFormat||"JSON",onTimeout:function(){D.onTimeout()},
onFetchTimeout:D.onTimeout,onSuccess:function(b,z){if(D.onSuccess)D.onSuccess(z)},
onFetchSuccess:function(b){if(D.onSuccess)D.onSuccess(b)},
onError:function(b,z){if(D.onError)D.onError(z)},
onFetchError:function(b){if(D.onError)D.onError(b)},
timeout:D.timeout,withCredentials:!0,compress:D.compress};l.headers["Content-Type"]||(l.headers["Content-Type"]="application/json");x="";var M=Q.config_.BQ;M&&(x=M);M=Q.config_.UO||!1;var w=BTs(M,x,D);Object.assign(l.headers,w);l.headers.Authorization&&!x&&M&&(l.headers["x-origin"]=window.location.origin);var S=jL(""+x+("/youtubei/"+Q.config_.innertubeApiVersion+"/"+W),{alt:"json"});g.yF("ytNetworklessLoggingInitializationOptions")&&dOF.isNwlInitialized?FSQ().then(function(b){K(b)}):K(!1)};
g.lu=function(Q,W,x){var D=g.W$();if(D&&W){var K=D.subscribe(Q,function(){function l(){xi[K]&&W.apply&&typeof W.apply=="function"&&W.apply(x||window,M)}
var M=arguments;try{g.Dn[Q]?l():g.oc(l,0)}catch(w){g.FP(w)}},x);
xi[K]=!0;Ku[Q]||(Ku[Q]=[]);Ku[Q].push(K);return K}return 0};
ilv=function(Q){var W=g.lu("LOGGED_IN",function(x){Q.apply(void 0,arguments);g.jT(W)})};
g.jT=function(Q){var W=g.W$();W&&(typeof Q==="number"?Q=[Q]:typeof Q==="string"&&(Q=[parseInt(Q,10)]),g.o3(Q,function(x){W.unsubscribeByKey(x);delete xi[x]}))};
g.M6=function(Q,W){var x=g.W$();return x?x.publish.apply(x,arguments):!1};
Hl1=function(Q){var W=g.W$();if(W)if(W.clear(Q),Q)AS2(Q);else for(var x in Ku)AS2(x)};
g.W$=function(){return g.Nz.ytPubsubPubsubInstance};
AS2=function(Q){Ku[Q]&&(Q=Ku[Q],g.o3(Q,function(W){xi[W]&&delete xi[W]}),Q.length=0)};
g.RK=function(Q,W,x){UOv(Q,W,x===void 0?null:x)};
UOv=function(Q,W,x){x=x===void 0?null:x;var D=qk4(Q),K=document.getElementById(D),l=K&&Lin(K),M=K&&!l;l?W&&W():(W&&(l=g.lu(D,W),W=""+g.Ol(W),BmF[W]=l),M||(K=$O5(Q,D,function(){Lin(K)||(Z85(K),g.M6(D),g.oc(function(){Hl1(D)},0))},x)))};
$O5=function(Q,W,x,D){D=D===void 0?null:D;var K=g.Qz("SCRIPT");K.id=W;K.onload=function(){x&&setTimeout(x,0)};
K.onreadystatechange=function(){switch(K.readyState){case "loaded":case "complete":K.onload()}};
D&&K.setAttribute("nonce",D);g.ex(K,g.pv(Q));Q=document.getElementsByTagName("head")[0]||document.body;Q.insertBefore(K,Q.firstChild);return K};
qk4=function(Q){var W=document.createElement("a");g.qZ(W,Q);Q=W.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Qp(Q)};
wh=function(Q,W){if(Q===W)Q=!0;else if(Array.isArray(Q)&&Array.isArray(W))Q=g.sg(Q,W,wh);else if(g.r4(Q)&&g.r4(W))a:if(g.pC(Q).length!=g.pC(W).length)Q=!1;else{for(var x in Q)if(!wh(Q[x],W[x])){Q=!1;break a}Q=!0}else Q=!1;return Q};
sc=function(Q){var W=g.i2.apply(1,arguments);if(!ST(Q)||W.some(function(D){return!ST(D)}))throw Error("Only objects may be merged.");
W=g.V(W);for(var x=W.next();!x.done;x=W.next())bu(Q,x.value)};
bu=function(Q,W){for(var x in W)if(ST(W[x])){if(x in Q&&!ST(Q[x]))throw Error("Cannot merge an object into a non-object.");x in Q||(Q[x]={});bu(Q[x],W[x])}else if(zb(W[x])){if(x in Q&&!zb(Q[x]))throw Error("Cannot merge an array into a non-array.");x in Q||(Q[x]=[]);Is4(Q[x],W[x])}else Q[x]=W[x];return Q};
Is4=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next())x=x.value,ST(x)?Q.push(bu({},x)):zb(x)?Q.push(Is4([],x)):Q.push(x);return Q};
ST=function(Q){return typeof Q==="object"&&!Array.isArray(Q)};
zb=function(Q){return typeof Q==="object"&&Array.isArray(Q)};
ki=function(Q){g.N.call(this);this.U=Q};
nu=function(Q){ki.call(this,!0);this.B=Q};
Vc=function(Q,W){g.N.call(this);var x=this;this.D=[];this.G=!1;this.U=0;this.L=this.X=this.N=!1;this.uj=null;var D=(0,g.FD)(Q,W);this.B=new g.O3(function(){return D(x.uj)},300);
g.y(this,this.B);this.T=this.S=Infinity};
mOs=function(Q,W){if(!W)return!1;for(var x=0;x<W.length;x++){var D=W.item(x);if(D&&Q.D.includes(D.identifier))return!0}return!1};
v$=function(Q){if(window.crypto&&window.crypto.getRandomValues)try{var W=Array(Q),x=new Uint8Array(Q);window.crypto.getRandomValues(x);for(var D=0;D<W.length;D++)W[D]=x[D];return W}catch(l){}W=Array(Q);for(x=0;x<Q;x++){D=Date.now();for(var K=0;K<D%23;K++)W[x]=Math.random();W[x]=Math.floor(Math.random()*256)}if(P$)for(x=1,D=0;D<P$.length;D++)W[x%Q]^=W[(x-1)%Q]/4^P$.charCodeAt(D),x++;return W};
g.Cu=function(Q){Q=v$(Q);for(var W=[],x=0;x<Q.length;x++)W.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Q[x]&63));return W.join("")};
g.Nms=function(){return g.pm(v$(16),function(Q){return(Q&15).toString(16)}).join("")};
cSQ=function(){var Q={};var W=Q.PGj===void 0?!1:Q.PGj;Q=Q.eT===void 0?!0:Q.eT;if(g.yF("_lact",window)==null){var x=parseInt(g.TK("LACT"),10);x=isFinite(x)?Date.now()-Math.max(x,0):-1;g.g4("_lact",x,window);g.g4("_fact",x,window);x==-1&&JV();g.vk(document,"keydown",JV);g.vk(document,"keyup",JV);g.vk(document,"mousedown",JV);g.vk(document,"mouseup",JV);W?g.vk(window,"touchmove",function(){pu("touchmove",200)},{passive:!0}):(g.vk(window,"resize",function(){pu("resize",200)}),Q&&g.vk(window,"scroll",
function(){pu("scroll",200)}));
new hl(function(){pu("mouse",100)});
g.vk(document,"touchstart",JV,{passive:!0});g.vk(document,"touchend",JV,{passive:!0})}};
pu=function(Q,W){hV[Q]||(hV[Q]=!0,g.ct.zK(function(){JV();hV[Q]=!1},W))};
JV=function(){g.yF("_lact",window)==null&&(cSQ(),g.yF("_lact",window));var Q=Date.now();g.g4("_lact",Q,window);g.yF("_fact",window)==-1&&g.g4("_fact",Q,window);(Q=g.yF("ytglobal.ytUtilActivityCallback_"))&&Q()};
aK=function(){var Q=g.yF("_lact",window);return Q==null?-1:Math.max(Date.now()-Q,0)};
Gb=function(Q){this.name=Q};
dh=function(Q){this.key=Q};
g15=function(){var Q=this;this.B=new Map;this.D=new Map;this.U=new Map;this.by={MM7:function(){return new Map(Q.B)}}};
iu=function(Q,W){Q.B.set(W.dQ,W);var x=Q.D.get(W.dQ);if(x)try{x.F9(Q.resolve(W.dQ))}catch(D){x.hZ(D)}};
H$=function(Q,W,x,D){D=D===void 0?!1:D;if(x.indexOf(W)>-1)throw Error("Deps cycle for: "+W);if(Q.U.has(W))return Q.U.get(W);if(!Q.B.has(W)){if(D)return;throw Error("No provider for: "+W);}D=Q.B.get(W);x.push(W);if(D.PE!==void 0)var K=D.PE;else if(D.uZ1)K=D[AV]?ySD(Q,D[AV],x):[],K=D.uZ1.apply(D,g.C(K));else if(D.MQ){K=D.MQ;var l=K[AV]?ySD(Q,K[AV],x):[];K=new (Function.prototype.bind.apply(K,[null].concat(g.C(l))))}else throw Error("Could not resolve providers for: "+W);x.pop();D.eXt||Q.U.set(W,K);
return K};
ySD=function(Q,W,x){return W?W.map(function(D){return D instanceof dh?H$(Q,D.key,x,!0):H$(Q,D,x)}):[]};
q6=function(){Uc||(Uc=new g15);return Uc};
$i=function(){var Q,W;return"h5vcc"in B$&&((Q=B$.h5vcc.traceEvent)==null?0:Q.traceBegin)&&((W=B$.h5vcc.traceEvent)==null?0:W.traceEnd)?1:"performance"in B$&&B$.performance.mark&&B$.performance.measure?2:0};
IK=function(Q){var W=$i();switch(W){case 1:B$.h5vcc.traceEvent.traceBegin("YTLR",Q);break;case 2:B$.performance.mark(Q+"-start");break;case 0:break;default:Ma(W,"unknown trace type")}};
eIs=function(Q){var W=$i();switch(W){case 1:B$.h5vcc.traceEvent.traceEnd("YTLR",Q);break;case 2:W=Q+"-start";var x=Q+"-end";B$.performance.mark(x);B$.performance.measure(Q,W,x);break;case 0:break;default:Ma(W,"unknown trace type")}};
fsl=function(Q){var W,x;(x=(W=window).onerror)==null||x.call(W,Q.message,"",0,0,Q)};
Zlv=function(Q){var W=this;var x=x===void 0?0:x;var D=D===void 0?g.QX():D;this.D=x;this.scheduler=D;this.U=new g.XT;this.B=Q;for(Q={zi:0};Q.zi<this.B.length;Q={fX:void 0,zi:Q.zi},Q.zi++)Q.fX=this.B[Q.zi],x=function(K){return function(){K.fX.wU();W.B[K.zi].Ge=!0;W.B.every(function(l){return l.Ge===!0})&&W.U.resolve()}}(Q),D=Ed(x,mI(this,Q.fX)),this.B[Q.zi]=Object.assign({},Q.fX,{wU:x,
jobId:D})};
L2O=function(Q){var W=Array.from(Q.B.keys()).sort(function(D,K){return mI(Q,Q.B[K])-mI(Q,Q.B[D])});
W=g.V(W);for(var x=W.next();!x.done;x=W.next())x=Q.B[x.value],x.jobId===void 0||x.Ge||(Q.scheduler.TA(x.jobId),Ed(x.wU,10))};
mI=function(Q,W){var x;return(x=W.priority)!=null?x:Q.D};
c$=function(Q){this.state=Q;this.plugins=[];this.D=void 0;this.N={};N6&&IK(this.state)};
rSD=function(Q,W){var x=W.filter(function(K){return gh(Q,K)===10}),D=W.filter(function(K){return gh(Q,K)!==10});
return Q.N.ol3?function(){var K=g.i2.apply(0,arguments);return g.U(function(l){if(l.B==1)return g.A(l,Q.vYj.apply(Q,[x].concat(g.C(K))),2);Q.Q$.apply(Q,[D].concat(g.C(K)));g.VF(l)})}:function(){var K=g.i2.apply(0,arguments);
Q.gYt.apply(Q,[x].concat(g.C(K)));Q.Q$.apply(Q,[D].concat(g.C(K)))}};
gh=function(Q,W){var x,D;return(D=(x=Q.D)!=null?x:W.priority)!=null?D:0};
yc=function(Q){N6&&Q&&IK(Q)};
eT=function(Q){N6&&Q&&eIs(Q)};
OlO=function(Q,W,x){Tm4&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+Q.constructor.name+"] '"+Q.state+"' to '"+W+"'"),console.log("with message: ",x),console.groupEnd())};
fu=function(Q){if(g.Pb("web_lifecycle_error_handling_killswitch"))return Q();try{return Q()}catch(W){fsl(W)}};
Zn=function(Q){c$.call(this,Q===void 0?"none":Q);this.B=null;this.D=10;this.transitions=[{from:"none",nY:"application_navigating",action:this.L},{from:"application_navigating",nY:"none",action:this.X},{from:"application_navigating",nY:"application_navigating",action:function(){}},
{from:"none",nY:"none",action:function(){}}]};
E1F=function(){Lu||(Lu=new Zn);return Lu};
rh=function(){var Q=this;this.store={};this.B=0;this.U={};this.by={Eg1:function(){return Q.B}}};
Ec=function(Q,W){var x=Tb(W);if(Q.U[x])return Q.U[x];var D=Object.keys(Q.store)||[];if(D.length<=1&&Tb(W)===D[0])return D;for(var K=[],l=0;l<D.length;l++){var M=D[l].split("/");if(Oc(W.auth,M[0])){var w=W.isJspb;Oc(w===void 0?"undefined":w?"true":"false",M[1])&&Oc(W.cttAuthInfo,M[2])&&(w=W.tier,w=w===void 0?"undefined":JSON.stringify(w),Oc(w,M[3])&&K.push(D[l]))}}return Q.U[x]=K};
Oc=function(Q,W){return Q===void 0||Q==="undefined"?!0:Q===W};
Tb=function(Q){return[Q.auth===void 0?"undefined":Q.auth,Q.isJspb===void 0?"undefined":Q.isJspb,Q.cttAuthInfo===void 0?"undefined":Q.cttAuthInfo,Q.tier===void 0?"undefined":Q.tier].join("/")};
F1=function(){this.N=this.B=this.U=0;this.D=!1};
tV=function(){var Q=g.yF("yt.logging.ims");Q||(Q=new rh,g.g4("yt.logging.ims",Q));return Q};
QCz=function(){if(e6z()&&!F25){var Q=function(x){x=x.data;if(x.op==="serializedGelBatch"){var D=Qb.get(x.key);D&&(tL2(x.serializedBatch,D.client,D.resolve,D.networklessOptions,D.isIsolated,D.useVSSEndpoint,D.dangerousLogToVisitorSession,D.requestsOutstanding),Qb.delete(x.key))}},W=a_();
W&&(W.addEventListener("message",Q),W.onerror=function(){Qb.clear()});
F25=!0}};
jCD=function(Q,W){if(Q.endpoint==="log_event"){Wp(Q);var x=xC(Q),D=We5(Q.payload)||"",K=xWz(D),l=200;if(K){if(K.enabled===!1&&!g.Pb("web_payload_policy_disabled_killswitch"))return;l=DWh(K.tier);if(l===400){Ke1(Q,W);return}}DD[x]=!0;x={cttAuthInfo:x,isJspb:!1,tier:l};tV().storePayload(x,Q.payload);l0D(W,!1,x,Kh(D))}};
Rzl=function(Q,W,x){if(W.endpoint==="log_event"){Wp(void 0,W);var D=xC(W,!0),K=xWz(Q),l=200;if(K){if(K.enabled===!1&&!g.Pb("web_payload_policy_disabled_killswitch"))return;l=DWh(K.tier);if(l===400){MYO(Q,W,x);return}}DD[D]=!0;D={cttAuthInfo:D,isJspb:!0,tier:l};tV().storePayload(D,A$(W.payload));l0D(x,!0,D,Kh(Q))}};
l0D=function(Q,W,x,D){function K(){lt({writeThenSend:!0},W,x.tier)}
W=W===void 0?!1:W;D=D===void 0?!1:D;Q&&(j0=new Q);Q=g.vb("tvhtml5_logging_max_batch_ads_fork")||g.vb("tvhtml5_logging_max_batch")||g.vb("web_logging_max_batch")||100;var l=(0,g.a8)(),M=Ml(W,x.tier),w=M.N;D&&(M.D=!0);D=0;x&&(D=tV().getSequenceCount(x));D>=1E3?K():D>=Q?RG||(RG=wN(function(){K();RG=void 0},0)):l-w>=10&&(wks(W,x.tier),M.N=l)};
Ke1=function(Q,W){if(Q.endpoint==="log_event"){g.Pb("more_accurate_gel_parser")&&tV().storePayload({isJspb:!1},Q.payload);Wp(Q);var x=xC(Q),D=new Map;D.set(x,[Q.payload]);var K=We5(Q.payload)||"";W&&(j0=new W);return new g.Xk(function(l,M){j0&&j0.isReady()?Sd4(D,j0,l,M,{bypassNetworkless:!0},!0,Kh(K)):l()})}};
MYO=function(Q,W,x){if(W.endpoint==="log_event"){Wp(void 0,W);var D=xC(W,!0),K=new Map;K.set(D,[A$(W.payload)]);x&&(j0=new x);return new g.Xk(function(l){j0&&j0.isReady()?bw1(K,j0,l,{bypassNetworkless:!0},!0,Kh(Q)):l()})}};
xC=function(Q,W){var x="";if(Q.dangerousLogToVisitorSession)x="visitorOnlyApprovedKey";else if(Q.cttAuthInfo){if(W===void 0?0:W){W=Q.cttAuthInfo.token;x=Q.cttAuthInfo;var D=new Z9;x.videoId?D.setVideoId(x.videoId):x.playlistId&&xL(D,2,S0,J$(x.playlistId));bt[W]=D}else W=Q.cttAuthInfo,x={},W.videoId?x.videoId=W.videoId:W.playlistId&&(x.playlistId=W.playlistId),sV[Q.cttAuthInfo.token]=x;x=Q.cttAuthInfo.token}return x};
lt=function(Q,W,x){Q=Q===void 0?{}:Q;W=W===void 0?!1:W;new g.Xk(function(D,K){var l=Ml(W,x),M=l.D;l.D=!1;zn(l.U);zn(l.B);l.B=0;j0&&j0.isReady()?x===void 0&&g.Pb("enable_web_tiered_gel")?sCD(D,K,Q,W,300,M):sCD(D,K,Q,W,x,M):(wks(W,x),D())})};
sCD=function(Q,W,x,D,K,l){var M=j0;x=x===void 0?{}:x;D=D===void 0?!1:D;K=K===void 0?200:K;l=l===void 0?!1:l;var w=new Map,S=new Map,b={isJspb:D,cttAuthInfo:void 0,tier:K},z={isJspb:D,cttAuthInfo:void 0};if(D){W=g.V(Object.keys(DD));for(K=W.next();!K.done;K=W.next())K=K.value,S=g.Pb("enable_web_tiered_gel")?tV().smartExtractMatchingEntries({keys:[b,z],sizeLimit:1E3}):tV().extractMatchingEntries({isJspb:!0,cttAuthInfo:K}),S.length>0&&w.set(K,S),(g.Pb("web_fp_via_jspb_and_json")&&x.writeThenSend||!g.Pb("web_fp_via_jspb_and_json"))&&
delete DD[K];bw1(w,M,Q,x,!1,l)}else{w=g.V(Object.keys(DD));for(b=w.next();!b.done;b=w.next())b=b.value,z=g.Pb("enable_web_tiered_gel")?tV().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:b,tier:K},{isJspb:!1,cttAuthInfo:b}],sizeLimit:1E3}):tV().extractMatchingEntries({isJspb:!1,cttAuthInfo:b}),z.length>0&&S.set(b,z),(g.Pb("web_fp_via_jspb_and_json")&&x.writeThenSend||!g.Pb("web_fp_via_jspb_and_json"))&&delete DD[b];Sd4(S,M,Q,W,x,!1,l)}};
wks=function(Q,W){function x(){lt({writeThenSend:!0},Q,W)}
Q=Q===void 0?!1:Q;W=W===void 0?200:W;var D=Ml(Q,W),K=D===zzv||D===kTh?5E3:Xkh;g.Pb("web_gel_timeout_cap")&&!D.B&&(K=wN(function(){x()},K),D.B=K);
zn(D.U);K=g.TK("LOGGING_BATCH_TIMEOUT",g.vb("web_gel_debounce_ms",1E4));g.Pb("shorten_initial_gel_batch_timeout")&&kC&&(K=oYO);K=wN(function(){g.vb("gel_min_batch_size")>0?tV().getSequenceCount({cttAuthInfo:void 0,isJspb:Q,tier:W})>=uwO&&x():x()},K);
D.U=K};
Sd4=function(Q,W,x,D,K,l,M){K=K===void 0?{}:K;var w=Math.round((0,g.a8)()),S=Q.size,b=Ydl(M);Q=g.V(Q);var z=Q.next();for(M={};!z.done;M={Do:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,m7:void 0,Y$:void 0},z=Q.next()){var k=g.V(z.value);z=k.next().value;k=k.next().value;M.batchRequest=g.U6({context:g.bN(W.config_||g.SG())});if(!g.Ls(k)&&!g.Pb("throw_err_when_logevent_malformed_killswitch")){D();break}M.batchRequest.events=k;(k=sV[z])&&nY1(M.batchRequest,z,k);delete sV[z];M.dangerousLogToVisitorSession=
z==="visitorOnlyApprovedKey";VY2(M.batchRequest,w,M.dangerousLogToVisitorSession);Py1(K);M.m7=function(X){g.Pb("start_client_gcf")&&g.ct.zK(function(){return g.U(function(u){return g.A(u,vYF(X),0)})});
S--;S||x()};
M.Do=0;M.Y$=function(X){return function(){X.Do++;if(K.bypassNetworkless&&X.Do===1)try{g.Qc(W,b,X.batchRequest,Xx({writeThenSend:!0},X.dangerousLogToVisitorSession,X.m7,X.Y$,l)),kC=!1}catch(u){g.FP(u),D()}S--;S||x()}}(M);
try{g.Qc(W,b,M.batchRequest,Xx(K,M.dangerousLogToVisitorSession,M.m7,M.Y$,l)),kC=!1}catch(X){g.FP(X),D()}}};
bw1=function(Q,W,x,D,K,l){D=D===void 0?{}:D;var M=Math.round((0,g.a8)()),w={value:Q.size},S=new Map([].concat(g.C(Q)));S=g.V(S);for(var b=S.next();!b.done;b=S.next()){var z=g.V(b.value).next().value,k=Q.get(z);b=new Fbh;var X=W.config_||g.SG(),u=new I2,Y=new i$;YL(Y,1,X.Dr);YL(Y,2,X.FK);VH(Y,16,X.uZ);YL(Y,17,X.innertubeContextClientVersion);if(X.sM){var v=X.sM,J=new GK;v.coldConfigData&&YL(J,1,v.coldConfigData);v.appInstallData&&YL(J,6,v.appInstallData);v.coldHashData&&YL(J,3,v.coldHashData);v.hotHashData&&
J.zm(v.hotHashData);wc(Y,GK,62,J)}(v=g.Nz.devicePixelRatio)&&v!=1&&gf(Y,65,RL(v));v=Cl();v!==""&&YL(Y,54,v);v=JS();if(v.length>0){J=new Ub;for(var h=0;h<v.length;h++){var G=new Ax;YL(G,1,v[h].key);xL(G,2,Cy5,J$(v[h].value));sY(J,15,Ax,G)}wc(u,Ub,5,J)}h62(X,Y);a94(u);GKs(Y);d1Q(X,Y);iv5(Y);g.Pb("start_client_gcf")&&Axn(Y);g.TK("DELEGATED_SESSION_ID")&&!g.Pb("pageid_as_header_web")&&(X=new $P,YL(X,3,g.TK("DELEGATED_SESSION_ID")));!g.Pb("fill_delegate_context_in_gel_killswitch")&&(v=g.TK("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(J=Rp(u,$P,3)||new $P,X=u,v=YL(J,18,v),wc(X,$P,3,v));X=Y;v=g.V(Object.entries(Ds(g.TK("DEVICE",""))));for(J=v.next();!J.done;J=v.next())h=g.V(J.value),J=h.next().value,h=h.next().value,J==="cbrand"?YL(X,12,h):J==="cmodel"?YL(X,13,h):J==="cbr"?YL(X,87,h):J==="cbrver"?YL(X,88,h):J==="cos"?YL(X,18,h):J==="cosver"?YL(X,19,h):J==="cplatform"&&VH(X,42,SI5(h));u.Zv(Y);wc(b,I2,1,u);if(Y=bt[z])a:{if(Y.XX())u=1;else if(Y.getPlaylistId())u=2;else break a;wc(b,Z9,4,Y);Y=Rp(b,I2,1)||new I2;X=Rp(Y,$P,3)||new $P;
v=new Bv;v.setToken(z);VH(v,1,u);sY(X,12,Bv,v);wc(Y,$P,3,X)}delete bt[z];z=z==="visitorOnlyApprovedKey";oG()||ug(b,2,M);!z&&(u=g.TK("EVENT_ID"))&&(Y=Jl1(),X=new fv,YL(X,1,u),ug(X,2,Y),wc(b,fv,5,X));Py1(D);if(g.Pb("jspb_serialize_with_worker")&&(u=a_())&&D.writeThenSend){Qb.set(ut,{client:W,resolve:x,networklessOptions:D,isIsolated:K,useVSSEndpoint:l,dangerousLogToVisitorSession:z,requestsOutstanding:w});u.postMessage({op:"gelBatchToSerialize",batchRequest:A$(b),clientEvents:k,key:ut});ut++;break}if(k){u=
[];for(Y=0;Y<k.length;Y++)try{u.push(new eS(k[Y]))}catch(H){g.FP(new g.Lw("Transport failed to deserialize "+String(k[Y])))}k=u}else k=[];k=g.V(k);for(u=k.next();!u.done;u=k.next())sY(b,3,eS,u.value);k={startTime:(0,g.a8)(),ticks:{},infos:{}};b=b.Rj();k.ticks.geljspc=(0,g.a8)();g.Pb("log_jspb_serialize_latency")&&J0("gel_jspb_serialize",k,{sampleRate:.1});tL2(b,W,x,D,K,l,z,w)}};
tL2=function(Q,W,x,D,K,l,M,w){D=D===void 0?{}:D;w=w===void 0?{value:0}:w;l=Ydl(l);D=Xx(D,M,function(S){g.Pb("start_client_gcf")&&g.ct.zK(function(){return g.U(function(b){return g.A(b,vYF(S),0)})});
w.value--;w.value||x()},function(){w.value--;
w.value||x()},K);
D.headers["Content-Type"]="application/json+protobuf";D.postBodyFormat="JSPB";D.postBody=Q;g.Qc(W,l,"",D);kC=!1};
Py1=function(Q){g.Pb("always_send_and_write")&&(Q.writeThenSend=!1)};
Xx=function(Q,W,x,D,K){Q={retry:!0,onSuccess:x,onError:D,networklessOptions:Q,dangerousLogToVisitorSession:W,EQ9:!!K,headers:{},postBodyFormat:"",postBody:"",compress:g.Pb("compress_gel")||g.Pb("compress_gel_lr")};oG()&&(Q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.a8)())));return Q};
VY2=function(Q,W,x){oG()||(Q.requestTimeMs=String(W));g.Pb("unsplit_gel_payloads_in_logs")&&(Q.unsplitGelPayloadsInLogs=!0);!x&&(W=g.TK("EVENT_ID"))&&(x=Jl1(),Q.serializedClientEventId={serializedEventId:W,clientCounter:String(x)})};
Jl1=function(){var Q=g.TK("BATCH_CLIENT_COUNTER")||0;Q||(Q=Math.floor(Math.random()*65535/2));Q++;Q>65535&&(Q=1);rT("BATCH_CLIENT_COUNTER",Q);return Q};
nY1=function(Q,W,x){if(x.videoId)var D="VIDEO";else if(x.playlistId)D="PLAYLIST";else return;Q.credentialTransferTokenTargetId=x;Q.context=Q.context||{};Q.context.user=Q.context.user||{};Q.context.user.credentialTransferTokens=[{token:W,scope:D}]};
Wp=function(Q,W){if(!g.yF("yt.logging.transport.enableScrapingForTest")){var x=Vk("il_payload_scraping");if((x!==void 0?String(x):"")==="enable_il_payload_scraping")YC=[],g.g4("yt.logging.transport.enableScrapingForTest",!0),g.g4("yt.logging.transport.scrapedPayloadsForTesting",YC),g.g4("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.g4("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
g.g4("yt.logging.transport.scrapeClientEvent",!0);else return}x=g.yF("yt.logging.transport.scrapedPayloadsForTesting");var D=g.yF("yt.logging.transport.payloadToScrape");W&&(W=W.payload,(W=g.yF("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(W)())&&x.push(W));W=g.yF("yt.logging.transport.scrapeClientEvent");if(D&&D.length>=1)for(var K=0;K<D.length;K++)if(Q&&Q.payload[D[K]])if(W)x.push(Q.payload);else{var l=void 0;x.push(((l=Q)==null?void 0:l.payload)[D[K]])}g.g4("yt.logging.transport.scrapedPayloadsForTesting",
x)};
oG=function(){return g.Pb("use_request_time_ms_header")||g.Pb("lr_use_request_time_ms_header")};
wN=function(Q,W){return g.Pb("transport_use_scheduler")===!1?g.oc(Q,W):g.Pb("logging_avoid_blocking_during_navigation")||g.Pb("lr_logging_avoid_blocking_during_navigation")?g.Fw(0,function(){if(E1F().currentState==="none")Q();else{var x={};E1F().install((x.none={callback:Q},x))}},W):Ed(Q,0,W)};
zn=function(Q){g.Pb("transport_use_scheduler")?g.ct.TA(Q):g.Y1(Q)};
vYF=function(Q){var W,x,D,K,l,M,w,S,b,z;return g.U(function(k){return k.B==1?(D=(W=Q)==null?void 0:(x=W.responseContext)==null?void 0:x.globalConfigGroup,K=g.e(D,pkD),M=(l=D)==null?void 0:l.hotHashData,w=g.e(D,hzF),b=(S=D)==null?void 0:S.coldHashData,(z=q6().resolve(new dh(R_)))?M?K?g.A(k,vPF(z,M,K),2):g.A(k,vPF(z,M),2):k.kf(2):k.return()):b?w?g.A(k,C$l(z,b,w),0):g.A(k,C$l(z,b),0):k.kf(0)})};
Ml=function(Q,W){W=W===void 0?200:W;return Q?W===300?zzv:a0l:W===300?kTh:GTa};
xWz=function(Q){if(g.Pb("enable_web_tiered_gel")){Q=dWO[Q||""];var W,x,D,K=q6().resolve(new dh(R_))==null?void 0:(W=wq())==null?void 0:(x=W.loggingHotConfig)==null?void 0:(D=x.eventLoggingConfig)==null?void 0:D.payloadPolicies;if(K)for(W=0;W<K.length;W++)if(K[W].payloadNumber===Q)return K[W]}};
We5=function(Q){Q=Object.keys(Q);Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())if(W=W.value,dWO[W])return W};
DWh=function(Q){switch(Q){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}};
Kh=function(Q){return Q==="gelDebuggingEvent"};
Ydl=function(Q){return(Q===void 0?0:Q)&&g.Pb("vss_through_gel_video_stats")?"video_stats":"log_event"};
Vb=function(Q,W,x,D){D=D===void 0?{}:D;var K={},l=Math.round(D.timestamp||(0,g.a8)());K.eventTimeMs=l<Number.MAX_SAFE_INTEGER?l:0;K[Q]=W;Q=aK();K.context={lastActivityMs:String(D.timestamp||!isFinite(Q)?-1:Q)};D.sequenceGroup&&!g.Pb("web_gel_sequence_info_killswitch")&&(Q=K.context,W=D.sequenceGroup,W={index:iwa(W),groupKey:W},Q.sequence=W,D.endOfSequence&&delete nh[D.sequenceGroup]);(D.sendIsolatedPayload?Ke1:jCD)({endpoint:"log_event",payload:K,cttAuthInfo:D.cttAuthInfo,dangerousLogToVisitorSession:D.dangerousLogToVisitorSession},
x)};
iwa=function(Q){nh[Q]=Q in nh?nh[Q]+1:0;return nh[Q]};
g.wV=function(Q,W,x){x=x===void 0?{}:x;var D=g.t0;g.TK("ytLoggingEventsDefaultDisabled",!1)&&g.t0===g.t0&&(D=null);Vb(Q,W,D,x)};
Pp=function(Q){this.B=Q};
g.vp=function(Q){return new Pp({trackingParams:Q})};
Hwh=function(Q){var W=Al5++;return new Pp({veType:Q,veCounter:W,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
UWD=function(Q){return g.TK("client-screen-nonce-store",{})[Q===void 0?0:Q]};
qd1=function(Q,W){W=W===void 0?0:W;var x=g.TK("client-screen-nonce-store");x||(x={},rT("client-screen-nonce-store",x));x[W]=Q};
Ch=function(Q){Q=Q===void 0?0:Q;return Q===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+Q};
B32=function(Q){return g.TK(Ch(Q===void 0?0:Q))};
g.Jb=function(Q){return(Q=B32(Q===void 0?0:Q))?new Pp({veType:Q,youtubeData:void 0,jspbYoutubeData:void 0}):null};
$W5=function(){var Q=g.TK("csn-to-ctt-auth-info");Q||(Q={},rT("csn-to-ctt-auth-info",Q));return Q};
I0n=function(){return Object.values(g.TK("client-screen-nonce-store",{})).filter(function(Q){return Q!==void 0})};
g.ph=function(Q){Q=UWD(Q===void 0?0:Q);if(!Q&&!g.TK("USE_CSN_FALLBACK",!0))return null;Q||(Q="UNDEFINED_CSN");return Q?Q:null};
N31=function(Q){for(var W=g.V(Object.values(mWF)),x=W.next();!x.done;x=W.next())if(g.ph(x.value)===Q)return!0;return!1};
clF=function(Q,W,x){var D=$W5();(x=g.ph(x))&&delete D[x];W&&(D[Q]=W)};
aG=function(Q){return $W5()[Q]};
ylv=function(Q,W,x,D){x=x===void 0?0:x;if(Q!==UWD(x)||W!==g.TK(Ch(x)))if(clF(Q,D,x),qd1(Q,x),rT(Ch(x),W),W=function(){setTimeout(function(){Q&&g.wV("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:gY5,clientScreenNonce:Q})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(W)}catch(K){W()}else W()};
Gn=function(Q,W){var x=x===void 0?!0:x;var D=g.TK("VALID_SESSION_TEMPDATA_DOMAINS",[]),K=g.$X(window.location.href);K&&D.push(K);K=g.$X(Q);if(g.FH(D,K)||!K&&Je(Q,"/"))if(D=document.createElement("a"),g.qZ(D,Q),Q=D.href)if(Q=Ij(Q),Q=C02(Q))if(x&&!W.csn&&(W.itct||W.ved)&&(W=Object.assign({csn:g.ph()},W)),l){var l=parseInt(l,10);isFinite(l)&&l>0&&ezl(Q,W,l)}else ezl(Q,W)};
ezl=function(Q,W,x){Q=f0O(Q);W=W?g.gv(W):"";x=x||5;xY()&&g.$1(Q,W,x)};
f0O=function(Q){for(var W=g.V(Zwh),x=W.next();!x.done;x=W.next())Q=Zr(Q,x.value);return"ST-"+Qp(Q).toString(36)};
Len=function(Q){if(Q.name==="JavaException")return!0;Q=Q.stack;return Q.includes("chrome://")||Q.includes("chrome-extension://")||Q.includes("moz-extension://")};
rlQ=function(){this.Eu=[];this.u_=[]};
it=function(){if(!dN){var Q=dN=new rlQ;Q.u_.length=0;Q.Eu.length=0;T3D(Q,Ow4)}return dN};
T3D=function(Q,W){W.u_&&Q.u_.push.apply(Q.u_,W.u_);W.Eu&&Q.Eu.push.apply(Q.Eu,W.Eu)};
EY5=function(Q){function W(){return Q.charCodeAt(D++)}
var x=Q.length,D=0;do{var K=Ab(W);if(K===Infinity)break;var l=K>>3;switch(K&7){case 0:K=Ab(W);if(l===2)return K;break;case 1:if(l===2)return;D+=8;break;case 2:K=Ab(W);if(l===2)return Q.substr(D,K);D+=K;break;case 5:if(l===2)return;D+=4;break;default:return}}while(D<x)};
Ab=function(Q){var W=Q(),x=W&127;if(W<128)return x;W=Q();x|=(W&127)<<7;if(W<128)return x;W=Q();x|=(W&127)<<14;if(W<128)return x;W=Q();return W<128?x|(W&127)<<21:Infinity};
Fe2=function(Q,W,x,D){if(Q)if(Array.isArray(Q)){var K=D;for(D=0;D<Q.length&&!(Q[D]&&(K+=Hp(D,Q[D],W,x),K>500));D++);D=K}else if(typeof Q==="object")for(K in Q){if(Q[K]){var l=K;var M=Q[K],w=W,S=x;l=typeof M!=="string"||l!=="clickTrackingParams"&&l!=="trackingParams"?0:(M=EY5(atob(M.replace(/-/g,"+").replace(/_/g,"/"))))?Hp(l+".ve",M,w,S):0;D+=l;D+=Hp(K,Q[K],W,x);if(D>500)break}}else x[W]=UV(Q),D+=x[W].length;else x[W]=UV(Q),D+=x[W].length;return D};
Hp=function(Q,W,x,D){x+="."+Q;Q=UV(W);D[x]=Q;return x.length+Q.length};
UV=function(Q){try{return(typeof Q==="string"?Q:String(JSON.stringify(Q))).substr(0,500)}catch(W){return"unable to serialize "+typeof Q+" ("+W.message+")"}};
R8=function(Q){g.ql(Q)};
g.Bp=function(Q){g.ql(Q,"WARNING")};
g.ql=function(Q,W){var x=x===void 0?{}:x;x.name=g.TK("INNERTUBE_CONTEXT_CLIENT_NAME",1);x.version=g.TK("INNERTUBE_CONTEXT_CLIENT_VERSION");W=W===void 0?"ERROR":W;var D=!1;W=W===void 0?"ERROR":W;D=D===void 0?!1:D;if(Q){Q.hasOwnProperty("level")&&Q.level&&(W=Q.level);if(g.Pb("console_log_js_exceptions")){var K=[];K.push("Name: "+Q.name);K.push("Message: "+Q.message);Q.hasOwnProperty("params")&&K.push("Error Params: "+JSON.stringify(Q.params));Q.hasOwnProperty("args")&&K.push("Error args: "+JSON.stringify(Q.args));
K.push("File name: "+Q.fileName);K.push("Stacktrace: "+Q.stack);window.console.log(K.join("\n"),Q)}if(!(tYv>=5)){K=Q82;var l=das(Q),M=l.message||"Unknown Error",w=l.name||"UnknownError",S=l.stack||Q.U||"Not available";if(S.startsWith(w+": "+M)){var b=S.split("\n");b.shift();S=b.join("\n")}b=l.lineNumber||"Not available";l=l.fileName||"Not available";var z=0;if(Q.hasOwnProperty("args")&&Q.args&&Q.args.length)for(var k=0;k<Q.args.length&&!(z=Fe2(Q.args[k],"params."+k,x,z),z>=500);k++);else if(Q.hasOwnProperty("params")&&
Q.params){var X=Q.params;if(typeof Q.params==="object")for(k in X){if(X[k]){var u="params."+k,Y=UV(X[k]);x[u]=Y;z+=u.length+Y.length;if(z>500)break}}else x.params=UV(X)}if(K.length)for(k=0;k<K.length&&!(z=Fe2(K[k],"params.context."+k,x,z),z>=500);k++);navigator.vendor&&!x.hasOwnProperty("vendor")&&(x["device.vendor"]=navigator.vendor);x={message:M,name:w,lineNumber:b,fileName:l,stack:S,params:x,sampleWeight:1};K=Number(Q.columnNumber);isNaN(K)||(x.lineNumber=x.lineNumber+":"+K);if(Q.level==="IGNORED")Q=
0;else a:{Q=it();K=g.V(Q.u_);for(M=K.next();!M.done;M=K.next())if(M=M.value,x.message&&x.message.match(M.qR)){Q=M.weight;break a}Q=g.V(Q.Eu);for(K=Q.next();!K.done;K=Q.next())if(K=K.value,K.callback(x)){Q=K.weight;break a}Q=1}x.sampleWeight=Q;Q=g.V(Wj5);for(K=Q.next();!K.done;K=Q.next())if(K=K.value,K.KX[x.name])for(w=g.V(K.KX[x.name]),M=w.next();!M.done;M=w.next())if(k=M.value,M=x.message.match(k.GA)){x.params["params.error.original"]=M[0];w=k.groups;k={};for(b=0;b<w.length;b++)k[w[b]]=M[b+1],x.params["params.error."+
w[b]]=M[b+1];x.message=K.Ts(k);break}x.params||(x.params={});Q=it();x.params["params.errorServiceSignature"]="msg="+Q.u_.length+"&cb="+Q.Eu.length;x.params["params.serviceWorker"]="false";g.Nz.document&&g.Nz.document.querySelectorAll&&(x.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new $6(BZ,"sample")).constructor!==$6&&(x.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(x);if(x.sampleWeight!==0&&!x54.has(x.message)){if(D&&
g.Pb("web_enable_error_204"))D5n(W===void 0?"ERROR":W,x);else{W=W===void 0?"ERROR":W;W==="ERROR"?($C.publish("handleError",x),g.Pb("record_app_crashed_web")&&Kjz===0&&x.sampleWeight===1&&(Kjz++,D={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.Pb("report_client_error_with_app_crash_ks")||(D.systemHealth={crashData:{clientError:{logMessage:{message:x.message}}}}),g.wV("appCrashed",D)),lLD++):W==="WARNING"&&$C.publish("handleWarning",x);if(g.Pb("kevlar_gel_error_routing")){D=W;Q=void 0;Q=Q===void 0?{}:Q;
b:{K=g.V(j8Q);for(M=K.next();!M.done;M=K.next())if(g.yk(M.value.toLowerCase())){K=!0;break b}K=!1}if(K)Q=void 0;else{M={stackTrace:x.stack};x.fileName&&(M.filename=x.fileName);K=x.lineNumber&&x.lineNumber.split?x.lineNumber.split(":"):[];K.length!==0&&(K.length!==1||isNaN(Number(K[0]))?K.length!==2||isNaN(Number(K[0]))||isNaN(Number(K[1]))||(M.lineNumber=Number(K[0]),M.columnNumber=Number(K[1])):M.lineNumber=Number(K[0]));K={level:"ERROR_LEVEL_UNKNOWN",message:x.message,errorClassName:x.name,sampleWeight:x.sampleWeight};
D==="ERROR"?K.level="ERROR_LEVEL_ERROR":D==="WARNING"&&(K.level="ERROR_LEVEL_WARNNING");M={isObfuscated:!0,browserStackInfo:M};Q.pageUrl=window.location.href;Q.kvPairs=[];g.TK("FEXP_EXPERIMENTS")&&(Q.experimentIds=g.TK("FEXP_EXPERIMENTS"));w=g.TK("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Ob("web_disable_gel_stp_ecatcher_killswitch")&&w)for(k=g.V(Object.keys(w)),b=k.next();!b.done;b=k.next())b=b.value,Q.kvPairs.push({key:b,value:String(w[b])});if(w=x.params)for(k=g.V(Object.keys(w)),b=k.next();!b.done;b=
k.next())b=b.value,Q.kvPairs.push({key:"client."+b,value:String(w[b])});w=g.TK("SERVER_NAME");k=g.TK("SERVER_VERSION");w&&k&&(Q.kvPairs.push({key:"server.name",value:w}),Q.kvPairs.push({key:"server.version",value:k}));Q={errorMetadata:Q,stackTrace:M,logMessage:K}}if(Q&&(g.wV("clientError",Q),D==="ERROR"||g.Pb("errors_flush_gel_always_killswitch")))a:{if(g.Pb("web_fp_via_jspb")){D=!0;D=D===void 0?!1:D;Q=MM4;MM4=[];if(Q)for(Q=g.V(Q),K=Q.next();!K.done;K=Q.next())K=K.value,D?Vb(K.payloadName,K.payload,
g.t0,K.options):g.wV(K.payloadName,K.payload,K.options);lt(void 0,!0);if(!g.Pb("web_fp_via_jspb_and_json"))break a}lt(void 0,!1)}}g.Pb("suppress_error_204_logging")||D5n(W,x)}try{x54.add(x.message)}catch(v){}tYv++}}}};
D5n=function(Q,W){var x=W.params||{};Q={urlParams:{a:"logerror",t:"jserror",type:W.name,msg:W.message.substr(0,250),line:W.lineNumber,level:Q,"client.name":x.name},postParams:{url:g.TK("PAGE_NAME",window.location.href),file:W.fileName},method:"POST"};x.version&&(Q["client.version"]=x.version);if(Q.postParams){W.stack&&(Q.postParams.stack=W.stack);W=g.V(Object.keys(x));for(var D=W.next();!D.done;D=W.next())D=D.value,Q.postParams["client."+D]=x[D];if(x=g.TK("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(W=
g.V(Object.keys(x)),D=W.next();!D.done;D=W.next())D=D.value,Q.postParams[D]=x[D];(x=g.TK("LAVA_VERSION"))&&(Q.postParams["lava.version"]=x);x=g.TK("SERVER_NAME");W=g.TK("SERVER_VERSION");x&&W&&(Q.postParams["server.name"]=x,Q.postParams["server.version"]=W)}g.hS(g.TK("ECATCHER_REPORT_HOST","")+"/error_204",Q)};
Rf1=function(Q){var W=g.i2.apply(1,arguments);Q.args||(Q.args=[]);Array.isArray(Q.args)&&Q.args.push.apply(Q.args,g.C(W))};
Nl=function(Q){var W=g.e(Q,IG);if(W)return W;if((W=g.e(Q,wsv))&&W.commands)return SU1(W.commands);if((W=g.e(Q,bXs))&&W.commands)return SU1(W.commands);if((Q=g.e(Q,s84))&&Q.identifier&&Q.command&&(m0||(m0=[]),!m0.includes(Q.identifier)))return m0.push(Q.identifier),g.e(Q.command,IG)};
SU1=function(Q){if(Q.length!==0){var W=[];Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next())(x=Nl(x.value))&&W.push(x);return{commandExecutorCommand:{commands:W}}}};
g.cp=function(Q,W,x){x===void 0?delete Q[W.name]:Q[W.name]=x};
zfv=function(Q){for(var W=0,x=0;x<Q.length;x++)W=W*31+Q.charCodeAt(x),x<Q.length-1&&(W%=0x800000000000);return W%1E5};
gN=function(Q){z$.call(this,1,arguments);this.csn=Q};
Xsz=function(Q,W,x,D,K,l,M,w){var S=kjO(),b=new Pp({veType:W,youtubeData:l,jspbYoutubeData:void 0});l=yb({},S);K&&(l.cttAuthInfo=K);K={csn:S,pageVe:b.getAsJson()};g.Pb("expectation_logging")&&w&&w.screenCreatedLoggingExpectations&&(K.screenCreatedLoggingExpectations=w.screenCreatedLoggingExpectations);x&&x.visualElement?(K.implicitGesture={parentCsn:x.clientScreenNonce,gesturedVe:x.visualElement.getAsJson()},M&&(K.implicitGesture.gestureType=M)):x&&g.Bp(new g.Lw("newScreen() parent element does not have a VE - rootVe",
W));D&&(K.cloneCsn=D);Q?Vb("screenCreated",K,Q,l):g.wV("screenCreated",K,l);o_($11,new gN(S));e0.clear();fh.clear();ZD.clear();return S};
g.rN=function(Q,W,x,D,K){g.Lh(Q,W,x,[D],K===void 0?!1:K)};
g.Lh=function(Q,W,x,D,K){K=K===void 0?!1:K;for(var l=yb({cttAuthInfo:aG(W)||void 0},W),M=g.V(D),w=M.next();!w.done;w=M.next()){w=w.value;var S=w.getAsJson();(g.dS(S)||!S.trackingParams&&!S.veType)&&g.Bp(Error("Child VE logged with no data"));if(g.Pb("no_client_ve_attach_unless_shown")){var b=Tn(w,W);if(S.veType&&!fh.has(b)&&!ZD.has(b)&&!K){if(!g.Pb("il_attach_cache_limit")||e0.size<1E3){e0.set(b,[Q,W,x,w]);return}g.Pb("il_attach_cache_limit")&&e0.size>1E3&&g.Bp(new g.Lw("IL Attach cache exceeded limit"))}w=
Tn(x,W);e0.has(w)?OV(x,W):ZD.set(w,!0)}}D=D.filter(function(z){z.csn!==W?(z.csn=W,z=!0):z=!1;return z});
x={csn:W,parentVe:x.getAsJson(),childVes:g.pm(D,function(z){return z.getAsJson()})};
W==="UNDEFINED_CSN"?EV("visualElementAttached",l,x):Q?Vb("visualElementAttached",x,Q,l):g.wV("visualElementAttached",x,l)};
oDh=function(Q,W,x,D,K){Fx(x,W);D=yb({cttAuthInfo:aG(W)||void 0},W);x={csn:W,ve:x.getAsJson(),eventType:1};K&&(x.clientData=K);W==="UNDEFINED_CSN"?EV("visualElementShown",D,x):Q?Vb("visualElementShown",x,Q,D):g.wV("visualElementShown",x,D)};
uiF=function(Q,W,x,D){var K=(D=D===void 0?!1:D)?16:8;D=yb({cttAuthInfo:aG(W)||void 0,endOfSequence:D},W);x={csn:W,ve:x.getAsJson(),eventType:K};W==="UNDEFINED_CSN"?EV("visualElementHidden",D,x):Q?Vb("visualElementHidden",x,Q,D):g.wV("visualElementHidden",x,D)};
YUF=function(Q,W,x,D,K){tb(Q,W,x,void 0,D,K)};
tb=function(Q,W,x,D,K){Fx(x,W);D=D||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var l=yb({cttAuthInfo:aG(W)||void 0},W);x={csn:W,ve:x.getAsJson(),gestureType:D};K&&(x.clientData=K);W==="UNDEFINED_CSN"?EV("visualElementGestured",l,x):Q?Vb("visualElementGestured",x,Q,l):g.wV("visualElementGestured",x,l)};
nDF=function(){var Q=v$(16);for(var W=[],x=0;x<Q.length;x++)W.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Q[x]&63));return W.join("")};
EV=function(Q,W,x){QK.push({payloadName:Q,payload:x,om9:void 0,options:W});W4||(W4=gP2())};
NTs=function(Q){if(QK){for(var W=g.V(QK),x=W.next();!x.done;x=W.next())x=x.value,x.payload&&(x.payload.csn=Q.csn,g.wV(x.payloadName,x.payload,x.options));QK.length=0}W4=0};
Tn=function(Q,W){return""+Q.getAsJson().veType+Q.getAsJson().veCounter+W};
Fx=function(Q,W){if(g.Pb("no_client_ve_attach_unless_shown")){var x=Tn(Q,W);fh.set(x,!0);OV(Q,W)}};
OV=function(Q,W){Q=Tn(Q,W);e0.has(Q)&&(W=e0.get(Q)||[],g.rN(W[0],W[1],W[2],W[3],!0),e0.delete(Q))};
yb=function(Q,W){g.Pb("log_sequence_info_on_gel_web")&&(Q.sequenceGroup=W);return Q};
g.x_=function(Q,W,x,D){g.tx(oDh)(void 0,Q,W,x,D,void 0)};
g.DI=function(Q,W){g.tx(function(){g.o3(W,function(x){Fx(x,Q);var D=yb({cttAuthInfo:aG(Q)||void 0},Q);x={csn:Q,ve:x.getAsJson(),eventType:4};Q==="UNDEFINED_CSN"?EV("visualElementShown",D,x):g.wV("visualElementShown",x,D)})})()};
g.KV=function(Q,W){g.tx(function(){g.o3(W,function(x){uiF(void 0,Q,x)})})()};
g.le=function(Q,W,x){g.tx(YUF)(void 0,Q,W,x,void 0)};
MA=function(Q,W,x,D,K,l){x=x===void 0?{}:x;this.componentType=Q;this.renderer=W===void 0?null:W;this.macros=x;this.layoutId=D;this.interactionLoggingClientData=K;this.B=l;this.id=jt(Q)};
jt=function(Q){var W=":"+(gk.getInstance().B++).toString(36);return Q+W};
g.Rd=function(Q){Q=Q===void 0?!1:Q;g.N.call(this);this.oH=new g.hU(Q);g.y(this,this.oH)};
wn=function(){var Q="ytp-id-"+VM2.toString();VM2++;return Q};
g.St=function(Q){g.N.call(this);this.Kn={};this.Ke={};this.element=this.createElement(Q)};
be=function(Q,W,x,D){if(D.substring(0,2)==="{{")Q.Ke[D]=[W,x];else return D};
PJO=function(Q,W){var x=[];if(!W)return x;W=g.V(W);for(var D=W.next();!D.done;D=W.next())if(D=D.value,D!=null){var K=D.nodeType;K===1||K===3?x.push(D):D&&typeof D.K==="string"?x.push(Q.createElement(D)):D.element?x.push(D.element):typeof D==="string"&&D.indexOf("\n")!==-1?D.split("\n").forEach(function(l,M){M>0&&x.push(g.Qz("BR"));x.push(g.WO(l))}):x.push(g.WO(D))}return x};
sP=function(Q,W,x,D){if(x==="child"){g.Df(W);var K;D===void 0?K=void 0:K=!Array.isArray(D)||D&&typeof D.K==="string"?[D]:D;x=PJO(Q,K);x=g.V(x);for(Q=x.next();!Q.done;Q=x.next())W.appendChild(Q.value)}else x==="style"?g.SZ(W,"cssText",D?D:""):D===null||D===void 0?W.removeAttribute(x):(Q=D.toString(),x==="href"&&(Q=g.dX(g.HI(Q))),W.setAttribute(x,Q))};
g.L=function(Q){g.St.call(this,Q);this.md=!0;this.L=!1;this.listeners=[]};
g.ze=function(Q){g.L.call(this,Q);this.eZ=new g.Rd;g.y(this,this.eZ)};
k_=function(Q,W,x,D,K,l,M){M=M===void 0?null:M;g.ze.call(this,W);this.api=Q;this.macros={};this.componentType=x;this.G=this.S=null;this.tf=M;this.layoutId=D;this.interactionLoggingClientData=K;this.R5=l;this.O3=null;this.Dk=new nu(this.element);g.y(this,this.Dk);this.SZ=this.W(this.element,"click",this.onClick);this.KS=[];this.F3=new Vc(this.onClick,this);g.y(this,this.F3);this.Vj=!1;this.LS=this.uj=null};
X3=function(Q,W){Q=Q===void 0?null:Q;W=W===void 0?null:W;if(Q==null)return g.Bp(Error("Got null or undefined adText object")),"";var x=g.ti(Q.text);if(!Q.isTemplated)return x;if(W==null)return g.Bp(Error("Missing required parameters for a templated message")),x;Q=g.V(Object.entries(W));for(W=Q.next();!W.done;W=Q.next()){var D=g.V(W.value);W=D.next().value;D=D.next().value;x=x.replace("{"+W+"}",D)}return x};
vD5=function(Q){Q=Q===void 0?null:Q;return Q!=null&&(Q=Q.thumbnail,Q!=null&&Q.thumbnails!=null&&Q.thumbnails.length!=0&&Q.thumbnails[0].url!=null)?g.ti(Q.thumbnails[0].url):""};
CJv=function(Q){Q=Q===void 0?null:Q;return Q!=null&&(Q=Q.thumbnail,Q!=null&&Q.thumbnails!=null&&Q.thumbnails.length!=0&&Q.thumbnails[0].width!=null&&Q.thumbnails[0].height!=null)?new g.oZ(Q.thumbnails[0].width||0,Q.thumbnails[0].height||0):new g.oZ(0,0)};
g.od=function(Q){if(Q.simpleText)return Q.simpleText;if(Q.runs){var W=[];Q=g.V(Q.runs);for(var x=Q.next();!x.done;x=Q.next())x=x.value,x.text&&W.push(x.text);return W.join("")}return""};
g.ue=function(Q){if(Q.simpleText)return Q=document.createTextNode(Q.simpleText),Q;var W=[];if(Q.runs)for(var x=0;x<Q.runs.length;x++){var D=Q.runs[x];if(D.text){var K=W,l=K.push,M=null;var w=D.text;D.bold&&(M=tO("B",null,M||w));D.italics&&(M=tO("I",null,M||w));D.strikethrough&&(M=tO("STRIKE",null,M||w));D.navigationEndpoint&&D.navigationEndpoint.urlEndpoint&&(D=D.navigationEndpoint.urlEndpoint,M=tO("A",null,M||w),g.qZ(M,D.url),D.target=="TARGET_NEW_WINDOW"&&(M.target="_blank"));w=M||tO("SPAN",null,
w);l.call(K,w)}}return W.length==1?W[0]:tO("SPAN",null,W)};
g.J44=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Z:{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"}}]}};
Y_=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Z:{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.nV=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{K:"path",Z:{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.VK=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{K:"path",Z:{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"}}]}};
ps4=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{K:"path",Z:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{K:"path",Z:{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"}}]}};
hf1=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{K:"path",Tn:!0,Z:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
aLa=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{K:"path",Tn:!0,Z:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.P4=function(){return{K:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",Z:{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"}}]}};
Gj5=function(){return{K:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Z:{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"}}]}};
d5l=function(){return{K:"svg",Z:{viewBox:"0 0 24 24"},V:[{K:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",Z:{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"}}]}};
iXa=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
A42=function(){return{K:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{"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"}}]}};
HXQ=function(){return{K:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{K:"path",Z:{d:"M0 0h48v48H0z",fill:"none"}},{K:"path",Z:{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"}}]}};
U55=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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"}}]}};
qU2=function(){return{K:"svg",Z:{viewBox:"0 0 24 24"},V:[{K:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",Z:{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"}}]}};
v4=function(){return{K:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Z:{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"}}]}};
BVn=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{K:"path",Tn:!0,Z:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
CV=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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.J_=function(){return{K:"svg",Z:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{K:"path",Z:{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"}}]}};
pV=function(){return{K:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{K:"path",Z:{d:"M0 0h48v48H0z",fill:"none"}},{K:"path",Z:{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"}}]}};
$54=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
ILz=function(){return{K:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Y:"ytp-svg-fill",Z:{"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"}}]}};
m5F=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Z:{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"}}]}};
h_=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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"}}]}};
NV5=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.ad=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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.Ge=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Z:{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.dn=function(){return{K:"svg",Z:{height:"100%",viewBox:"0 0 16 16",width:"100%"},V:[{K:"path",Z:{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"}}]}};
c4n=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
ie=function(){return{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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"}}]}};
A_=function(Q,W,x){W=W===void 0?!1:W;x=x===void 0?!1:x;if(!Q)return null;switch(Q.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return x?{K:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",Z:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:pV();case "CHECK_BOX":return{K:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",Z:{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{K:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",Z:{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"}},{K:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.P4();case "INFO_OUTLINE":return W?{K:"svg",Z:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},V:[{K:"path",Z:{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"}}]}:
HXQ();case "REMOVE_CIRCLE":return{K:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",Z:{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 CV();case "SKIP_NEXT_NEW":return{K:"svg",Z:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},V:[{K:"path",Z:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return qU2();
case "DISLIKE":return d5l();default:return g.Bp(new g.Lw("Unexpected icon:",Q)),null}};
H4=function(Q,W,x,D,K,l,M,w,S){K=K===void 0?[]:K;M=M===void 0?!1:M;S=S===void 0?!1:S;K={K:"button",lj:["ytp-ad-button"].concat(K)};w!=null&&(K.Z={tabindex:w});k_.call(this,Q,K,l===void 0?"button":l,W,x,D);this.B=this.U=this.D=null;this.X=M;this.N=S;this.hide()};
gD2=function(Q){var W=null;Q.B!=null&&(W=[Q.B.serviceEndpoint,Q.B.navigationEndpoint].filter(function(x){return x!=null}),Q.B.command&&(W=W.concat(Q.B.command)));
return W||[]};
UP=function(){g.N.call(this);var Q=this;this.B=new Map;this.U=KS5(function(W){if(W.target&&(W=Q.B.get(W.target))&&W)for(var x=0;x<W.length;x++)g.c3(W[x])})};
y4Q=function(){qA==null&&(qA=new UP);return qA};
B4=function(Q,W){if(Q.simpleText){a:{Q=Q.simpleText;if(W&&(W=efv(Q))){W=tO("SPAN",null,W);break a}W=g.WO(Q)}return W}var x=[];if(Q.runs)for(var D=0;D<Q.runs.length;D++){var K=Q.runs[D];K.text&&x.push(fLO(K,W))}return x.length==1?x[0]:tO("SPAN",null,x)};
fLO=function(Q,W){var x=null,D=Q.text;W&&(D=efv(D)||D);Q.bold&&(x=tO("B",null,x||D));Q.italics&&(x=tO("I",null,x||D));Q.strikethrough&&(x=tO("STRIKE",null,x||D));Q.navigationEndpoint&&g.e(Q.navigationEndpoint,g.$_)&&(W=g.e(Q.navigationEndpoint,g.$_),x=tO("A",null,x||D),g.qZ(x,W.url),W.target=="TARGET_NEW_WINDOW"&&(x.target="_blank"),Q=Q.navigationEndpoint.loggingUrls)&&(Q=Q.map(function(K){return K.baseUrl}),y4Q().register(x,Q),g.j$(x,"ytp-ad-has-logging-urls"));
return x||tO("SPAN",null,D)};
efv=function(Q){Q=Q.split(/(?:\r\n|\r|\n)/g);if(Q.length>1){for(var W=[Q[0]],x=1;x<Q.length;x++)W.push(tO("BR")),W.push(Q[x]);return W}return null};
Id=function(Q,W,x,D,K,l,M,w,S){l=l===void 0?!1:l;M=M===void 0?[]:M;S=S===void 0?!1:S;k_.call(this,Q,{K:"span",lj:["ytp-ad-hover-text-button"].concat(M)},w===void 0?"ad-hover-text-button":w,W,x,D);this.button=this.U=null;this.T=l;this.X=K;this.D=S;this.hide()};
mY=function(Q){return Q&&Q.thumbnails&&(Q.thumbnails||null).length!=0&&Q.thumbnails[0].url?g.ti(Q.thumbnails[0].url):""};
NA=function(Q,W,x,D,K,l){l=l===void 0?!1:l;k_.call(this,Q,{K:"img",Y:"ytp-ad-image"},"ad-image",W,x,D,K===void 0?null:K);this.B=l;this.hide()};
c4=function(Q,W,x,D,K,l){K=K===void 0?[]:K;k_.call(this,Q,{K:"div",lj:["ytp-ad-confirm-dialog-background"],V:[{K:"div",Y:"ytp-ad-confirm-dialog-container",V:[{K:"div",lj:["ytp-ad-confirm-dialog"].concat(K),Z:{role:"dialog",tabindex:"-1"},V:[{K:"div",Y:"ytp-ad-confirm-dialog-title",m3:"{{title}}"},{K:"div",Y:"ytp-ad-confirm-dialog-messages"},{K:"div",Y:"ytp-ad-confirm-dialog-confirm-container",V:[{K:"button",Y:"ytp-ad-confirm-dialog-cancel-button",m3:"{{cancelLabel}}"},{K:"button",Y:"ytp-ad-confirm-dialog-confirm-button",
m3:"{{confirmLabel}}"}]}]}]},{K:"button",lj:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],V:[{K:"span",Y:"ytp-ad-button-icon",V:[g.P4()]}]}]},l===void 0?"confirm-dialog":l,W,x,D);this.T=this.Nj("ytp-ad-confirm-dialog-close-overlay-button");this.N=this.Nj("ytp-ad-confirm-dialog-cancel-button");this.X=this.Nj("ytp-ad-confirm-dialog-confirm-button");this.pS=this.Nj("ytp-ad-confirm-dialog-messages");this.D=null;this.B=new aC;g.y(this,this.B);this.U=null;this.hide()};
ZXD=function(Q,W){if(W.title){var x=g.od(W.title);Q.updateValue("title",x)}if(W.dialogMessages){x=g.V(W.dialogMessages);for(var D=x.next();!D.done;D=x.next())D=B4(D.value),Q.pS.appendChild(D)}W.cancelLabel&&(x=g.od(W.cancelLabel),Q.updateValue("cancelLabel",x),Q.B.W(Q.N,"click",function(K){return Q.eN(K)}));
W.confirmLabel&&(W=g.od(W.confirmLabel),Q.updateValue("confirmLabel",W),Q.B.W(Q.X,"click",function(K){return Q.v_(K)}));
Q.B.W(Q.T,"click",function(K){return Q.Ek(K)})};
gn=function(Q,W,x,D,K,l){K=K===void 0?[]:K;l=l===void 0?"toggle-button":l;var M=jt("ytp-ad-toggle-button-input"),w={role:"button","aria-label":"{{tooltipText}}"};Q.C().experiments.ij("fix_h5_toggle_button_a11y")&&(w.tabindex="0");Q.C().experiments.ij("fix_toggle_button_role_for_ad_components")&&(w.role="checkbox");k_.call(this,Q,{K:"div",lj:["ytp-ad-toggle-button"].concat(K),V:[{K:"label",Y:"ytp-ad-toggle-button-label",Z:{"for":M},V:[{K:"span",Y:"ytp-ad-toggle-button-icon",Z:w,V:[{K:"span",Y:"ytp-ad-toggle-button-untoggled-icon",
m3:"{{untoggledIconTemplateSpec}}"},{K:"span",Y:"ytp-ad-toggle-button-toggled-icon",m3:"{{toggledIconTemplateSpec}}"}]},{K:"input",Y:"ytp-ad-toggle-button-input",Z:{id:M,type:"checkbox"}},{K:"span",Y:"ytp-ad-toggle-button-text",m3:"{{buttonText}}"},{K:"span",Y:"ytp-ad-toggle-button-tooltip",m3:"{{tooltipText}}"}]}]},l,W,x,D);this.N=this.Nj("ytp-ad-toggle-button");this.B=this.Nj("ytp-ad-toggle-button-input");this.U=this.Nj("ytp-ad-toggle-button-icon");this.T=this.Nj("ytp-ad-toggle-button-untoggled-icon");
this.X=this.Nj("ytp-ad-toggle-button-toggled-icon");this.fS=this.Nj("ytp-ad-toggle-button-text");this.D=null;this.pS=!1;this.hide()};
yK=function(Q){Q.pS&&(Q.isToggled()?(g.vR(Q.T,!1),g.vR(Q.X,!0),Q.api.C().experiments.ij("fix_toggle_button_role_for_ad_components")&&Q.U.setAttribute("aria-checked",!0)):(g.vR(Q.T,!0),g.vR(Q.X,!1),Q.api.C().experiments.ij("fix_toggle_button_role_for_ad_components")&&Q.U.setAttribute("aria-checked",!1)))};
Ljn=function(Q,W){var x=null;Q.D&&(x=(W?[Q.D.defaultServiceEndpoint,Q.D.defaultNavigationEndpoint]:[Q.D.toggledServiceEndpoint]).filter(function(D){return D!=null}));
return x||[]};
r4Q=function(Q,W,x){this.actionType=W;this.id=x;this.content=Q};
et=function(Q){aC.call(this);this.B=Q;this.W(this.B,"onAdUxUpdate",this.X)};
fV=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-ad-feedback-dialog-background",V:[{K:"div",Y:"ytp-ad-feedback-dialog-container",V:[{K:"div",Y:"ytp-ad-feedback-dialog-form",Z:{role:"dialog",tabindex:"-1"},V:[{K:"div",Y:"ytp-ad-feedback-dialog-title",V:[{K:"span",m3:"{{title}}"}]},{K:"span",Y:"ytp-ad-info-dialog-feedback-options-title",m3:"{{reasonsTitle}}"},{K:"div",Y:"ytp-ad-info-dialog-feedback-options"},{K:"div",Y:"ytp-ad-feedback-dialog-confirm-container",V:[{K:"button",Y:"ytp-ad-feedback-dialog-cancel-button",
m3:"{{cancelLabel}}"},{K:"button",Y:"ytp-ad-feedback-dialog-confirm-button",m3:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",W,x,D);this.N=[];this.B=null;this.X=this.Nj("ytp-ad-feedback-dialog-cancel-button");this.T=this.Nj("ytp-ad-feedback-dialog-confirm-button");this.pS=this.Nj("ytp-ad-info-dialog-feedback-options");this.fS=this.Nj("ytp-ad-feedback-dialog-title");this.D=this.U=null;this.hide()};
FjF=function(Q,W){var x=W.cancelRenderer&&W.cancelRenderer.buttonRenderer||null;x&&(Q.B=new H4(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.R5,["ytp-ad-feedback-dialog-close-button"],"button"),g.y(Q,Q.B),Q.B.init(jt("button"),x,Q.macros),Q.B.listen("click",Q.LL,Q),Q.B.Qj(Q.element));W.title&&(x=g.od(W.title),Q.updateValue("title",x));W.reasonsTitle&&(x=g.od(W.reasonsTitle),Q.updateValue("reasonsTitle",x));W.reasons&&TVD(Q,W.reasons);W.cancelLabel&&(x=g.od(W.cancelLabel),Q.updateValue("cancelLabel",
x),g.vk(Q.X,"click",function(){return Q.LL()}));
W.confirmLabel&&(x=g.od(W.confirmLabel),Q.updateValue("confirmLabel",x),g.vk(Q.T,"click",function(){return OXQ(Q)}));
W.undoRenderer&&EDF(Q,W.undoRenderer)};
TVD=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next()){var D=x.value;x=D.reason;if(x==null)g.Bp(Error("AdFeedbackReason.reason was not set."));else if(D=D.endpoint,D==null)g.Bp(Error("AdFeedbackReason.endpoint was not set."));else{x=new ZI(x,D);g.y(Q,x);D=Q.pS;var K=x.yh();D.appendChild(K);Q.N.push(x)}}};
EDF=function(Q,W){if(W=W&&W.buttonRenderer||null)W.serviceEndpoint?(Q.U=new H4(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.R5,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.y(Q,Q.U),Q.U.init(jt("ad-feedback-undo-mute-button"),W,Q.macros),Q.U.listen("click",Q.Qt1,Q),Q.U.Qj(Q.fS)):g.Bp(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
OXQ=function(Q){var W=Q.N.filter(function(x){return x.isChecked()});
W.length!==0&&(W=W[0].getCommand(),Q.layoutId?Q.R5.executeCommand(W,Q.layoutId):g.ql(Error("Missing layoutId for ad feedback dialog.")),Q.api.onAdUxClicked("ad-feedback-dialog-confirm-button",Q.layoutId),Q.publish("a"),Q.hide())};
ZI=function(Q,W){this.U=W;this.B=new g.ze({K:"label",Y:"ytp-ad-feedback-dialog-reason-label",V:[{K:"input",Y:"ytp-ad-feedback-dialog-reason-input",Z:{type:"radio",name:"feedback-reason-group"}},{K:"span",Y:"ytp-ad-feedback-dialog-reason-text",m3:g.od(Q)}]});this.D=this.B.Nj("ytp-ad-feedback-dialog-reason-input")};
LV=function(Q,W,x,D){c4.call(this,Q,W,x,D,[],"ad-mute-confirm-dialog")};
rn=function(Q,W,x,D,K){k_.call(this,Q,{K:"div",Y:"ytp-ad-info-dialog-background",V:[{K:"div",Y:"ytp-ad-info-dialog-container",V:[{K:"div",Y:"ytp-ad-info-dialog-form",Z:{role:"dialog",tabindex:"-1"},V:[{K:"div",Y:"ytp-ad-info-dialog-title",m3:"{{title}}"},{K:"ul",Y:"ytp-ad-info-dialog-ad-reasons"},{K:"div",Y:"ytp-ad-info-dialog-message"},{K:"div",Y:"ytp-ad-info-dialog-mute-container"},{K:"div",Y:"ytp-ad-info-dialog-confirm-container",V:[{K:"button",Y:"ytp-ad-info-dialog-confirm-button",m3:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",W,x,D);this.B=this.U=null;this.T=this.Nj("ytp-ad-info-dialog-confirm-button");this.I5=this.Nj("ytp-ad-info-dialog-mute-container");this.s3=this.Nj("ytp-ad-info-dialog-message");this.X3=this.Nj("ytp-ad-info-dialog-ad-reasons");this.N=this.D=null;this.fS=K;this.X=null;this.g7=!1;this.pS=null;this.hide()};
tMD=function(Q,W){if(W=W.content&&W.content.adFeedbackRenderer||null)Q.U=new fV(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.R5),g.y(Q,Q.U),Q.U.init(jt("ad-feedback-dialog"),W,Q.macros),Q.U.Qj(Q.fS),Q.U.subscribe("a",function(){return Q.publish("c")})};
Q_5=function(Q,W){if(W=W.content&&W.content.confirmDialogRenderer||null)Q.N=new LV(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.R5),g.y(Q,Q.N),Q.N.init(jt("ad-mute-confirm-dialog"),W,Q.macros),Q.N.Qj(Q.fS),Q.N.subscribe("b",function(){return Q.publish("c")})};
WxD=function(Q){Q.B&&Q.B.listen("click",Q.tD,Q);g.vk(Q.T,"click",function(){return Q.tD()})};
Te=function(Q,W,x,D,K,l,M){Id.call(this,Q,W,x,D,l===void 0?!0:l,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",M===void 0?!1:M);this.B=null;this.N=K;this.hide()};
D8Q=function(Q,W,x){W=W.dialog&&g.e(W.dialog,x8F)||null;W==null?g.ql(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(Q.B=new rn(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.R5,Q.N),g.y(Q,Q.B),Q.B.init(jt("ad-info-dialog"),W,x),Q.B.Qj(Q.N),Q.B.subscribe("d",function(){return Q.publish("f")}),Q.B.subscribe("c",function(){return Q.publish("e")}))};
j_n=function(Q,W,x){Q.button==null?g.ql(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(Q.U&&g.j$(Q.U.element,"ytp-ad-info-hover-text-short"),(W=W&&W.serviceEndpoint&&g.e(W.serviceEndpoint,Kxn)||null)?(D8Q(Q,W,x),Q.button.listen("click",function(){Q.B&&!Q.B.md&&(Q.B.show(),lVl(Q))})):Q.button.listen("click",function(){return lVl(Q)}))};
lVl=function(Q){Q.api.onAdUxClicked("ad-info-icon-button",Q.layoutId)};
OP=function(Q,W,x,D,K,l){k_.call(this,Q,{K:"div",Y:"ytp-ad-text"},l===void 0?"ad-text":l,W,x,D,K===void 0?null:K);this.B=null;this.hide()};
EP=function(Q,W){W&&g.MT(Q.element,X3(Q.B,W))};
F3=function(Q,W,x,D,K,l,M){k_.call(this,Q,W,x,D,K,l);this.B=M;g.y(this,this.B);this.g7=this.T=-1};
t_=function(Q){Q.B&&Q.T===-1&&(Q.T=Q.B.subscribe("h",Q.Ih,Q),Q.g7=Q.B.subscribe("g",Q.Il,Q),Q.Ih())};
QZ=function(Q){Q.B!=null&&Q.T!==-1&&(Q.B.Or(Q.T),Q.B.Or(Q.g7),Q.g7=-1,Q.T=-1)};
g.Wi=function(Q,W,x,D,K,l){g.N.call(this);this.element=Q;this.state=null;x||Q.hide();this.U=W;this.D=D===void 0?W:D;this.B=l;this.onHidden=K;this.delay=new g.O3(this.vj,0,this);g.y(this,this.delay)};
xZ=function(Q,W){Q=Q.element.element;W?Q.setAttribute("aria-hidden","true"):Q.removeAttribute("aria-hidden")};
De=function(Q,W,x,D,K,l){F3.call(this,Q,{K:"div",Y:"ytp-ad-preview-slot"},"ad-preview",W,x,D,K);var M=this;this.I5=-1;this.N=this.api.C().experiments.ij("enable_modern_skip_button_on_web");this.U=new g.ze({K:"span",Y:"ytp-ad-preview-container"});this.N&&this.U.element.classList.add("ytp-ad-preview-container-detached");g.y(this,this.U);this.D=this.N?new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,"ytp-ad-preview-text-modern"):new OP(this.api,this.layoutId,this.interactionLoggingClientData,
this.R5,"ytp-ad-preview-text");g.y(this,this.D);this.D.Qj(this.U.element);this.pS=this.N?new g.ze({K:"span",Y:"ytp-ad-preview-image-modern"}):new g.ze({K:"span",Y:"ytp-ad-preview-image"});g.y(this,this.pS);this.X=new NA(this.api,this.layoutId,this.interactionLoggingClientData,this.R5);g.y(this,this.X);this.X.Qj(this.pS.element);this.pS.Qj(this.U.element);this.U.Qj(this.element);this.fS=new g.Wi(this.U,400,!1,100,function(){return M.hide()});
g.y(this,this.fS);this.X3=0;this.s3=!1;this.Pt=l;this.hide()};
Kb=function(Q){Q.fS.show(100);Q.show()};
lK=function(Q,W,x,D,K,l){F3.call(this,Q,{K:"div",lj:["ytp-flyout-cta","ytp-flyout-cta-inactive"],V:[{K:"div",Y:"ytp-flyout-cta-icon-container"},{K:"div",Y:"ytp-flyout-cta-body",V:[{K:"div",Y:"ytp-flyout-cta-text-container",V:[{K:"div",Y:"ytp-flyout-cta-headline-container"},{K:"div",Y:"ytp-flyout-cta-description-container"}]},{K:"div",Y:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",W,x,D,K);this.D=new NA(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,"ytp-flyout-cta-icon");
g.y(this,this.D);this.D.Qj(this.Nj("ytp-flyout-cta-icon-container"));this.D.element.classList.add("ytp-flyout-cta-icon-rounded");this.X=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,"ytp-flyout-cta-headline");g.y(this,this.X);this.X.Qj(this.Nj("ytp-flyout-cta-headline-container"));this.N=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,"ytp-flyout-cta-description");g.y(this,this.N);this.N.Qj(this.Nj("ytp-flyout-cta-description-container"));Q=["ytp-flyout-cta-action-button"];
this.api.C().j("web_modern_buttons")&&Q.push("ytp-flyout-cta-action-button-rounded");this.U=new H4(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,Q);g.y(this,this.U);this.U.Qj(this.Nj("ytp-flyout-cta-action-button-container"));this.U.element.setAttribute("tabIndex","-1");yP(this.U.element);this.pS=null;this.fS=0;this.X3=l;this.hide()};
ji=function(Q,W,x,D,K){k_.call(this,Q,{K:"div",Y:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",W,x,D,K===void 0?null:K);var l=this;this.B=null;this.D=new gn(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,["ytp-ad-instream-user-sentiment-like-button"]);g.y(this,this.D);this.D.Qj(this.element);this.U=new gn(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,["ytp-ad-instream-user-sentiment-dislike-button"]);g.y(this,this.U);this.U.Qj(this.element);
this.N=new g.Wi(this,400,!1,500,function(){return l.hide()});
g.y(this,this.N);this.hide()};
Mr=function(Q,W,x,D,K,l){K=K===void 0?0:K;l=l===void 0?!1:l;g.N.call(this);this.U=Q;this.D=!1;this.T=D;this.uj=l;this.X=!1;this.B=null;W>0&&(this.B=new g.O3(this.JI,W,this),g.y(this,this.B));this.L=new g.O3(this.JI,x,this);g.y(this,this.L);this.S=gg5(this.U,K,1,D);g.y(this,this.S);this.G=gg5(this.U,0,D,1);g.y(this,this.G);this.N=new aC;g.y(this,this.N)};
Rl=function(Q,W,x){this.U=Q;this.isAsync=W;this.B=x};
MGa=function(Q){switch(Q){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Ma(Q,"unknown result type")}};
Ryv=function(Q,W){var x=1;Q.isTrusted===!1&&(x=0);rT("ISDSTAT",x);ws(x,"i.s_",{triggerContext:"sk",metadata:W});return x};
w3z=function(Q,W){var x=[];W?W.isTrusted===!0?x.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):W.isTrusted===!1?x.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):x.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):x.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");ws(0,"a.s_",{metadata:Q,states:x});rT("ASDSTAT",0)};
ws=function(Q,W,x){W=Shn[W];var D,K,l={detected:Q===0,source:""+W.U+((D=x.triggerContext)!=null?D:"")+((K=x.ph)!=null?K:""),detectionStates:x.states,durationMs:x.u8};x.metadata&&(l.contentCpn=x.metadata.contentCpn,l.adCpn=x.metadata.adCpn);g.wV("biscottiBasedDetection",l);W.B!==void 0&&(x=Number(g.TK("CATSTAT",0)),W.B!==void 0?(W=W.B,Q=MGa(Q),Q=x&~(3<<W)|Q<<W):Q=x,rT("CATSTAT",Q))};
Si=function(Q){return Q?"layout:  "+Q.layoutType:""};
bK=function(Q,W,x){return Q?!0:(g.Bp(new g.Lw("Assertion: "+W,x)),!1)};
sH=function(Q,W,x,D,K){D=D===void 0?{}:D;if(!K||Math.random()<5E-4){W=W||null;x=x||null;Q=Q instanceof Error?Q:new g.Lw(Q);if(Q.args)for(var l=g.V(Q.args),M=l.next();!M.done;M=l.next())M=M.value,M instanceof Object&&(D=Object.assign({},M,D));D.category="H5 Ads Control Flow";W&&(D.slot=W?"slot:  "+W.slotType:"");x&&(D.layout=Si(x),D.layoutId=x.layoutId);K&&(D.known_error_aggressively_sampled=!0);Q.args=[D];g.Bp(Q)}};
g.zV=function(Q,W){this.state=Q;this.oldState=W};
kZ=function(Q,W){return g.r(Q.state,W)&&!g.r(Q.oldState,W)?1:!g.r(Q.state,W)&&g.r(Q.oldState,W)?-1:0};
g.XV=function(Q,W){return kZ(Q,W)>0};
ol=function(Q,W,x,D,K,l){F3.call(this,Q,{K:"div",Y:"ytp-ad-skip-button-slot"},"skip-button",W,x,D,K);var M=this;this.pS=null;this.fS=!1;this.s3=l;this.X=this.api.C().experiments.ij("enable_modern_skip_button_on_web");this.I5=!1;this.D=new g.ze({K:"span",lj:["ytp-ad-skip-button-container"]});this.X&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");this.api.j("enable_ad_pod_index_autohide")&&this.D.element.classList.add("ytp-ad-skip-button-container--clean-player");g.y(this,this.D);
this.D.Qj(this.element);this.U=this.N=null;this.Pt=new g.Wi(this.D,500,!1,100,function(){return M.hide()});
g.y(this,this.Pt);this.X3=new Mr(this.D.element,15E3,5E3,.5,.5,this.X);g.y(this,this.X3);this.hide()};
s_Q=function(Q){Q=Q.pS&&Q.pS.adRendererCommands;return(Q&&Q.clickCommand&&g.e(Q.clickCommand,g.uK)&&g.e(Q.clickCommand,g.uK).commands||[]).some(function(W){return W.adLifecycleCommand?bK5(W.adLifecycleCommand):!1})};
bK5=function(Q){return Q.action==="END_LINEAR_AD"||Q.action==="END_LINEAR_AD_PLACEMENT"};
YZ=function(Q,W,x,D,K,l){F3.call(this,Q,{K:"div",Y:"ytp-ad-skip-ad-slot"},"skip-ad",W,x,D,K);this.pS=l;this.N=!1;this.X=0;this.D=this.U=null;this.hide()};
zy5=function(Q,W){Q.N||(Q.N=!0,Q.U&&(W?Q.U.fS.hide():Q.U.hide()),W?(Q=Q.D,Q.Pt.show(),Q.show()):Q.D.show())};
nb=function(Q,W,x,D){H4.call(this,Q,W,x,D,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
VZ=function(Q,W,x,D,K,l,M){l=l===void 0?!1:l;M=M===void 0?!1:M;k_.call(this,Q,{K:"span",Y:"ytp-ad-simple-ad-badge"},"simple-ad-badge",W,x,D);this.D=K;this.B=this.Nj("ytp-ad-simple-ad-badge");(this.U=l)&&this.B.classList.add("ytp-ad-simple-ad-badge--clean-player");M&&this.B.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()};
Pi=function(Q,W,x,D,K){K=K===void 0?!1:K;MA.call(this,"player-overlay",Q,{},W,D);this.videoAdDurationSeconds=x;this.interactionLoggingClientData=D;this.JQ=K};
vi=function(Q,W){g.Rd.call(this);this.api=Q;this.durationMs=W;this.B=null;this.St=new aC(this);g.y(this,this.St);this.U=k$h;this.St.W(this.api,"presentingplayerstatechange",this.PW);this.B=this.St.W(this.api,"onAdPlaybackProgress",this.QA)};
Cb=function(Q){g.Rd.call(this);this.B=!1;this.TK=0;this.St=new aC(this);g.y(this,this.St);this.durationMs=Q;this.rP=new g.v_(100);g.y(this,this.rP);this.St.W(this.rP,"tick",this.QA);this.U={seekableStart:0,seekableEnd:Q/1E3,current:0};this.start()};
g.JI=function(Q,W){var x=Math.abs(Math.floor(Q)),D=Math.floor(x/86400),K=Math.floor(x%86400/3600),l=Math.floor(x%3600/60);x=Math.floor(x%60);if(W){W="";D>0&&(W+=" "+D+" Days");if(D>0||K>0)W+=" "+K+" Hours";W+=" "+l+" Minutes";W+=" "+x+" Seconds";D=W.trim()}else{W="";D>0&&(W+=D+":",K<10&&(W+="0"));if(D>0||K>0)W+=K+":",l<10&&(W+="0");W+=l+":";x<10&&(W+="0");D=W+x}return Q>=0?D:"-"+D};
g.pb=function(Q){return(!("button"in Q)||typeof Q.button!=="number"||Q.button===0)&&!("shiftKey"in Q&&Q.shiftKey)&&!("altKey"in Q&&Q.altKey)&&!("metaKey"in Q&&Q.metaKey)&&!("ctrlKey"in Q&&Q.ctrlKey)};
hI=function(Q,W,x,D,K,l,M){F3.call(this,Q,{K:"span",Y:M?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",W,x,D,K);this.videoAdDurationSeconds=l;this.U=null;this.api.j("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");M&&this.api.C().U&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.j("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"),
LX&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()};
al=function(Q,W,x,D){OP.call(this,Q,W,x,D,"ytp-video-ad-top-bar-title","ad-title");Q.j("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")};
GV=function(Q){this.content=Q.content;if(Q.commandRuns){Q=g.V(Q.commandRuns);for(var W=Q.next();!W.done;W=Q.next())W=W.value,this.loggingDirectives=g.e(W,X3a),W.onTap&&(this.interaction={onTap:W.onTap})}};
ds=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ad-simple-attributed-string"},"ad-simple-attributed-string",W,x,D);this.hide()};
iK=function(Q,W,x,D,K){k_.call(this,Q,{K:"span",Y:K?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",W,x,D);this.U=K;this.adBadgeText=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.R5);this.adBadgeText.Qj(this.element);g.y(this,this.adBadgeText);K?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.j("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),LX&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))):
this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
AI=function(Q,W,x,D,K){k_.call(this,Q,{K:"span",Y:"ytp-ad-pod-index"},"ad-pod-index",W,x,D);this.U=K;this.api.C().U&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.j("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),LX&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()};
Hi=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",W,x,D);this.hide()};
UH=function(Q,W){this.U=Q;this.B=W};
qr=function(Q,W,x){if(!Q.getLength())return x!=null?x:Infinity;Q=(W-Q.U)/Q.getLength();return g.wS(Q,0,1)};
Bi=function(Q,W,x,D){D=D===void 0?!1:D;g.ze.call(this,{K:"div",Y:"ytp-ad-persistent-progress-bar-container",V:[{K:"div",Y:"ytp-ad-persistent-progress-bar"}]});this.api=Q;this.U=W;this.D=x;D&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.y(this,this.U);this.progressBar=this.Nj("ytp-ad-persistent-progress-bar");this.B=-1;this.W(Q,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
$Z=function(Q,W,x,D,K,l){k_.call(this,Q,{K:"div",Y:"ytp-ad-player-overlay",V:[{K:"div",Y:"ytp-ad-player-overlay-flyout-cta"},{K:"div",Y:"ytp-ad-player-overlay-instream-info"},{K:"div",Y:"ytp-ad-player-overlay-skip-or-preview"},{K:"div",Y:"ytp-ad-player-overlay-progress-bar"},{K:"div",Y:"ytp-ad-player-overlay-instream-user-sentiment"},{K:"div",Y:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",W,x,D);this.pS=l;this.X=this.Nj("ytp-ad-player-overlay-flyout-cta");this.X.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.B=this.Nj("ytp-ad-player-overlay-instream-info");this.N=null;oEv(this)&&(Q=tO("div"),g.j$(Q,"ytp-ad-player-overlay-top-bar-gradients"),this.api.j("disable_ad_preview_for_instream_ads")&&g.j$(Q,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),W=this.B,W.parentNode&&W.parentNode.insertBefore(Q,W),(W=this.api.getVideoData(2))&&W.isListed&&W.title&&(x=new al(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),x.Qj(Q),x.init(jt("ad-title"),{text:W.title},this.macros),g.y(this,
x)),this.N=Q);this.D=null;this.T=this.Nj("ytp-ad-player-overlay-skip-or-preview");this.g7=this.Nj("ytp-ad-player-overlay-progress-bar");this.X3=this.Nj("ytp-ad-player-overlay-instream-user-sentiment");this.fS=this.Nj("ytp-ad-player-overlay-ad-disclosure-banner");this.U=K;g.y(this,this.U);this.hide()};
oEv=function(Q){Q=Q.api.C();return g.Il(Q)&&Q.U};
m4=function(Q,W,x){var D={};W&&(D.v=W);x&&(D.list=x);Q={name:Q,locale:void 0,feature:void 0};for(var K in D)Q[K]=D[K];D=g.ya("/sharing_services",Q);g.c3(D)};
g.Nr=function(Q){Q&=16777215;var W=[(Q&16711680)>>16,(Q&65280)>>8,Q&255];Q=W[0];var x=W[1];W=W[2];Q=Number(Q);x=Number(x);W=Number(W);if(Q!=(Q&255)||x!=(x&255)||W!=(W&255))throw Error('"('+Q+","+x+","+W+'") is not a valid RGB color');x=Q<<16|x<<8|W;return Q<16?"#"+(16777216|x).toString(16).slice(1):"#"+x.toString(16)};
ci=function(Q){this.B=new dk(Q)};
u8h=function(){var Q=!1;try{Q=!!window.sessionStorage.getItem("session_logininfo")}catch(W){Q=!0}return(g.TK("INNERTUBE_CLIENT_NAME")==="WEB"||g.TK("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&Q};
gs=function(Q){if(g.TK("LOGGED_IN",!0)&&u8h()){var W=g.TK("VALID_SESSION_TEMPDATA_DOMAINS",[]);var x=g.$X(window.location.href);x&&W.push(x);x=g.$X(Q);g.FH(W,x)||!x&&Je(Q,"/")?(W=Ij(Q),(W=C02(W))?(W=f0O(W),W=(W=g.Ic(W)||null)?Ds(W):{}):W=null):W=null;W==null&&(W={});x=W;var D=void 0;u8h()?(D||(D=g.TK("LOGIN_INFO")),D?(x.session_logininfo=D,x=!0):x=!1):x=!1;x&&Gn(Q,W)}};
g.Yhz=function(Q){var W=W===void 0?{}:W;var x=x===void 0?"":x;var D=D===void 0?window:D;Q=g.ya(Q,W);gs(Q);x=g.HI(Q+x);D=D.location;x=UE(x);x!==void 0&&(D.href=x)};
g.yZ=function(Q,W,x){W=W===void 0?{}:W;x=x===void 0?!1:x;var D=g.TK("EVENT_ID");D&&(W.ei||(W.ei=D));W&&Gn(Q,W);x||(gs(Q),g.Yhz(Q))};
g.ei=function(Q,W,x,D,K){K=K===void 0?!1:K;x&&Gn(Q,x);x=g.HI(Q);var l=g.dX(x);Q!=l&&Qk(Error("Unsafe window.open URL: "+Q));Q=l;W=W||Qp(Q).toString(36);try{if(K){K=Q;K=v1a(K);gs(K);g.mO(window,K,W,"attributionsrc");return}}catch(M){g.FP(M)}gs(Q);g.mO(window,x,W,D)};
nEl=function(Q){fb=Q};
VGD=function(Q){Ze=Q};
PNn=function(Q){Lb=Q};
CN2=function(){vED=Lb=Ze=fb=null};
p3O=function(){var Q=Q===void 0?window.location.href:Q;if(g.Pb("kevlar_disable_theme_param"))return null;var W=Ar(g.B_(5,Q));if(g.Pb("enable_dark_theme_only_on_shorts")&&W!=null&&W.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var x=g.lY(Q).theme;return J01.get(x)||null}catch(D){}return null};
rs=function(){this.B={};if(this.U=Gd5()){var Q=g.Ic("CONSISTENCY");Q&&hyv(this,{encryptedTokenJarContents:Q})}};
hyv=function(Q,W){if(W.encryptedTokenJarContents&&(Q.B[W.encryptedTokenJarContents]=W,typeof W.expirationSeconds==="string")){var x=Number(W.expirationSeconds);setTimeout(function(){delete Q.B[W.encryptedTokenJarContents]},x*1E3);
Q.U&&g.$1("CONSISTENCY",W.encryptedTokenJarContents,x,void 0,!0)}};
OH=function(){this.U=-1;var Q=g.TK("LOCATION_PLAYABILITY_TOKEN");g.TK("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=TV(this))&&(Q=this.localStorage.get("yt-location-playability-token"));Q&&(this.locationPlayabilityToken=Q,this.B=void 0)};
TV=function(Q){return Q.localStorage===void 0?new DL("yt-client-location"):Q.localStorage};
g.EH=function(Q,W,x){W=W===void 0?!1:W;x=x===void 0?!1:x;var D=g.TK("INNERTUBE_CONTEXT");if(!D)return g.ql(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};D=g.U6(D);g.Pb("web_no_tracking_params_in_shell_killswitch")||delete D.clickTracking;D.client||(D.client={});var K=D.client;K.clientName==="MWEB"&&K.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(K.clientFormFactor=g.TK("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");K.screenWidthPoints=window.innerWidth;K.screenHeightPoints=
window.innerHeight;K.screenPixelDensity=Math.round(window.devicePixelRatio||1);K.screenDensityFloat=window.devicePixelRatio||1;K.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var l=l===void 0?!1:l;g.ck();var M="USER_INTERFACE_THEME_LIGHT";g.g3(0,165)?M="USER_INTERFACE_THEME_DARK":g.g3(0,174)?M="USER_INTERFACE_THEME_LIGHT":!g.Pb("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&
(M="USER_INTERFACE_THEME_DARK");l=l?M:p3O()||M;K.userInterfaceTheme=l;if(!W){if(l=XgD())K.connectionType=l;g.Pb("web_log_effective_connection_type")&&(l=uKv())&&(D.client.effectiveConnectionType=l)}var w;if(g.Pb("web_log_memory_total_kbytes")&&((w=g.Nz.navigator)==null?0:w.deviceMemory)){var S;w=(S=g.Nz.navigator)==null?void 0:S.deviceMemory;D.client.memoryTotalKbytes=""+w*1E6}g.Pb("web_gcf_hashes_innertube")&&(l=Jxh())&&(S=l.coldConfigData,w=l.coldHashData,l=l.hotHashData,D.client.configInfo=D.client.configInfo||
{},S&&(D.client.configInfo.coldConfigData=S),w&&(D.client.configInfo.coldHashData=w),l&&(D.client.configInfo.hotHashData=l));S=g.lY(g.Nz.location.href);!g.Pb("web_populate_internal_geo_killswitch")&&S.internalcountrycode&&(K.internalGeo=S.internalcountrycode);K.clientName==="MWEB"||K.clientName==="WEB"?(K.mainAppWebInfo={graftUrl:g.Nz.location.href},g.Pb("kevlar_woffle")&&RQn.instance&&(S=RQn.instance,K.mainAppWebInfo.pwaInstallabilityStatus=!S.B&&S.U?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),K.mainAppWebInfo.webDisplayMode=IC(),K.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):K.clientName==="TVHTML5"&&(!g.Pb("web_lr_app_quality_killswitch")&&(S=g.TK("LIVING_ROOM_APP_QUALITY"))&&(K.tvAppInfo=Object.assign(K.tvAppInfo||{},{appQuality:S})),S=g.TK("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(K.tvAppInfo=Object.assign(K.tvAppInfo||{},{certificationScope:S}));if(!g.Pb("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
"undefined")try{var b=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(I){}b=void 0}b&&(K.timeZone=b)}(b=Cl())?K.experimentsToken=b:delete K.experimentsToken;b=JS();rs.instance||(rs.instance=new rs);D.request=Object.assign({},D.request,{internalExperimentFlags:b,consistencyTokenJars:g.JO(rs.instance.B)});!g.Pb("web_prequest_context_killswitch")&&(b=g.TK("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(D.request.externalPrequestContext=b);K=g.ck();b=g.g3(0,58);K=K.get("gsml","");D.user=Object.assign({},
D.user);b&&(D.user.enableSafetyMode=b);K&&(D.user.lockedSafetyMode=!0);g.Pb("warm_op_csn_cleanup")?x&&(W=g.ph())&&(D.clientScreenNonce=W):!W&&(W=g.ph())&&(D.clientScreenNonce=W);Q&&(D.clickTracking={clickTrackingParams:Q});if(Q=g.yF("yt.mdx.remote.remoteClient_"))D.remoteClient=Q;OH.getInstance().setLocationOnInnerTubeContext(D);try{var z=zG(),k=z.bid;delete z.bid;D.adSignalsInfo={params:[],bid:k};for(var X=g.V(Object.entries(z)),u=X.next();!u.done;u=X.next()){var Y=g.V(u.value),v=Y.next().value,
J=Y.next().value;z=v;k=J;Q=void 0;(Q=D.adSignalsInfo.params)==null||Q.push({key:z,value:""+k})}var h,G;if(((h=D.client)==null?void 0:h.clientName)==="TVHTML5"||((G=D.client)==null?void 0:G.clientName)==="TVHTML5_UNPLUGGED"){var H=g.TK("INNERTUBE_CONTEXT");H.adSignalsInfo&&(D.adSignalsInfo.advertisingId=H.adSignalsInfo.advertisingId,D.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",D.adSignalsInfo.limitAdTracking=H.adSignalsInfo.limitAdTracking)}}catch(I){g.ql(I)}return D};
d8v=function(Q,W){if(!Q)return!1;var x,D=(x=g.e(Q,aVO))==null?void 0:x.signal;if(D&&W.lV)return!!W.lV[D];var K;if((x=(K=g.e(Q,G$F))==null?void 0:K.request)&&W.Ac)return!!W.Ac[x];for(var l in Q)if(W.O0[l])return!0;return!1};
iKn=function(Q){var W={"Content-Type":"application/json"};g.TK("EOM_VISITOR_DATA")?W["X-Goog-EOM-Visitor-Id"]=g.TK("EOM_VISITOR_DATA"):g.TK("VISITOR_DATA")&&(W["X-Goog-Visitor-Id"]=g.TK("VISITOR_DATA"));W["X-Youtube-Bootstrap-Logged-In"]=g.TK("LOGGED_IN",!1);g.TK("DEBUG_SETTINGS_METADATA")&&(W["X-Debug-Settings-Metadata"]=g.TK("DEBUG_SETTINGS_METADATA"));Q!=="cors"&&((Q=g.TK("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(W["X-Youtube-Client-Name"]=Q),(Q=g.TK("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(W["X-Youtube-Client-Version"]=
Q),(Q=g.TK("CHROME_CONNECTED_HEADER"))&&(W["X-Youtube-Chrome-Connected"]=Q),(Q=g.TK("DOMAIN_ADMIN_STATE"))&&(W["X-Youtube-Domain-Admin-State"]=Q),g.TK("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(Q=g.TK("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(W["X-YouTube-Lava-Device-Context"]=Q));return W};
A0F=function(){this.B={}};
FV=function(){this.mappings=new A0F};
tI=function(Q){return function(){return new Q}};
U85=function(Q){var W=W===void 0?"UNKNOWN_INTERFACE":W;if(Q.length===1)return Q[0];var x=HKv[W];if(x){x=new RegExp(x);for(var D=g.V(Q),K=D.next();!K.done;K=D.next())if(K=K.value,x.exec(K))return K}var l=[];Object.entries(HKv).forEach(function(M){var w=g.V(M);M=w.next().value;w=w.next().value;W!==M&&l.push(w)});
x=new RegExp(l.join("|"));Q.sort(function(M,w){return M.length-w.length});
D=g.V(Q);for(K=D.next();!K.done;K=D.next())if(K=K.value,!x.exec(K))return K;return Q[0]};
g.Q_=function(Q){return"/youtubei/v1/"+U85(Q)};
Wo=function(){};
xn=function(){};
Dx=function(){};
KA=function(Q){return g.yF("ytcsi."+(Q||"")+"data_")||qha(Q)};
Bq4=function(){var Q=KA();Q.info||(Q.info={});return Q.info};
oo=function(Q){Q=KA(Q);Q.metadata||(Q.metadata={});return Q.metadata};
us=function(Q){Q=KA(Q);Q.tick||(Q.tick={});return Q.tick};
Yn=function(Q){Q=KA(Q);if(Q.gel){var W=Q.gel;W.gelInfos||(W.gelInfos={});W.gelTicks||(W.gelTicks={})}else Q.gel={gelTicks:{},gelInfos:{}};return Q.gel};
$82=function(Q){Q=Yn(Q);Q.gelInfos||(Q.gelInfos={});return Q.gelInfos};
nA=function(Q){var W=KA(Q).nonce;W||(W=g.Cu(16),KA(Q).nonce=W);return W};
qha=function(Q){var W={tick:{},info:{}};g.g4("ytcsi."+(Q||"")+"data_",W);return W};
V_=function(){var Q=g.yF("ytcsi.debug");Q||(Q=[],g.g4("ytcsi.debug",Q),g.g4("ytcsi.reference",{}));return Q};
Po=function(Q){Q=Q||"";var W=IVl();if(W[Q])return W[Q];var x=V_(),D={timerName:Q,info:{},tick:{},span:{},jspbInfo:[]};x.push(D);return W[Q]=D};
m8s=function(Q){Q=Q||"";var W=IVl();W[Q]&&delete W[Q];var x=V_(),D={timerName:Q,info:{},tick:{},span:{},jspbInfo:[]};x.push(D);W[Q]=D};
IVl=function(){var Q=g.yF("ytcsi.reference");if(Q)return Q;V_();return g.yF("ytcsi.reference")};
vo=function(Q){return Nq1[Q]||"LATENCY_ACTION_UNKNOWN"};
CA=function(Q,W){z$.call(this,1,arguments);this.rP=W};
Jd=function(){this.B=0};
pA=function(){Jd.instance||(Jd.instance=new Jd);return Jd.instance};
ao=function(Q,W){hd[W]=hd[W]||{count:0};var x=hd[W];x.count++;x.time=(0,g.a8)();Q.B||(Q.B=g.Fw(0,function(){var D=(0,g.a8)(),K;for(K in hd)hd[K]&&D-hd[K].time>6E4&&delete hd[K];Q&&(Q.B=0)},5E3));
return x.count>5?(x.count===6&&Math.random()*1E5<1&&(x=new g.Lw("CSI data exceeded logging limit with key",W.split("_")),W.indexOf("plev")>=0||g.Bp(x)),!0):!1};
c0h=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
gEl=function(){var Q;if(g.Pb("csi_use_performance_navigation_timing")||g.Pb("csi_use_performance_navigation_timing_tvhtml5")){var W,x,D,K=Gi==null?void 0:(Q=Gi.getEntriesByType)==null?void 0:(W=Q.call(Gi,"navigation"))==null?void 0:(x=W[0])==null?void 0:(D=x.toJSON)==null?void 0:D.call(x);K?(K.requestStart=dK(K.requestStart),K.responseEnd=dK(K.responseEnd),K.redirectStart=dK(K.redirectStart),K.redirectEnd=dK(K.redirectEnd),K.domainLookupEnd=dK(K.domainLookupEnd),K.connectStart=dK(K.connectStart),
K.connectEnd=dK(K.connectEnd),K.responseStart=dK(K.responseStart),K.secureConnectionStart=dK(K.secureConnectionStart),K.domainLookupStart=dK(K.domainLookupStart),K.isPerformanceNavigationTiming=!0,Q=K):Q=Gi.timing}else Q=g.Pb("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Gi.timing)):Gi.timing;return Q};
dK=function(Q){return Math.round(is()+Q)};
is=function(){return(g.Pb("csi_use_time_origin")||g.Pb("csi_use_time_origin_tvhtml5"))&&Gi.timeOrigin?Math.floor(Gi.timeOrigin):Gi.timing.navigationStart};
Ho=function(Q,W){Ad("_start",Q,W)};
U$=function(Q,W){if(!g.Pb("web_csi_action_sampling_enabled")||!KA(W).actionDisabled){var x=Po(W||"");sc(x.info,Q);Q.loadType&&(x=Q.loadType,oo(W).loadType=x);sc($82(W),Q);x=nA(W);W=KA(W).cttAuthInfo;pA().info(Q,x,W)}};
y0D=function(){var Q,W,x,D;return((D=q6().resolve(new dh(R_))==null?void 0:(Q=wq())==null?void 0:(W=Q.loggingHotConfig)==null?void 0:(x=W.csiConfig)==null?void 0:x.debugTicks)!=null?D:[]).map(function(K){return Object.values(K)[0]})};
Ad=function(Q,W,x){if(!g.Pb("web_csi_action_sampling_enabled")||!KA(x).actionDisabled){var D=nA(x),K;if(K=g.Pb("web_csi_debug_sample_enabled")&&D){(q6().resolve(new dh(R_))==null?0:wq())&&!eyF&&(eyF=!0,Ad("gcfl",(0,g.a8)(),x));var l,M,w;K=(q6().resolve(new dh(R_))==null?void 0:(l=wq())==null?void 0:(M=l.loggingHotConfig)==null?void 0:(w=M.csiConfig)==null?void 0:w.debugSampleWeight)||0;if(l=K!==0)b:{l=y0D();if(l.length>0)for(M=0;M<l.length;M++)if(Q===l[M]){l=!0;break b}l=!1}l?(K=zfv(D)%K!==0,KA(x).debugTicksExcludedLogged||
(l={},l.debugTicksExcluded=K,U$(l,x)),KA(x).debugTicksExcludedLogged=!0):K=!1}if(!K){if(Q[0]!=="_"&&(K=Q,l=W,Gi.mark))if(K.startsWith("mark_")||(K="mark_"+K),x&&(K+=" ("+x+")"),l===void 0||g.Pb("web_csi_disable_alt_time_performance_mark"))Gi.mark(K);else{l=g.Pb("csi_use_performance_navigation_timing")||g.Pb("csi_use_performance_navigation_timing_tvhtml5")?l-Gi.timeOrigin:l-(Gi.timeOrigin||Gi.timing.navigationStart);try{Gi.mark(K,{startTime:l})}catch(S){}}K=Po(x||"");K.tick[Q]=W||(0,g.a8)();if(K.callback&&
K.callback[Q])for(K=g.V(K.callback[Q]),l=K.next();!l.done;l=K.next())l=l.value,l();K=Yn(x);K.gelTicks&&(K.gelTicks[Q]=!0);l=us(x);K=W||(0,g.a8)();g.Pb("log_repeated_ytcsi_ticks")?Q in l||(l[Q]=K):l[Q]=K;l=KA(x).cttAuthInfo;Q==="_start"?(Q=pA(),ao(Q,"baseline_"+D)||g.wV("latencyActionBaselined",{clientActionNonce:D},{timestamp:W,cttAuthInfo:l})):pA().tick(Q,D,W,l);fVO(x);return K}}};
ZK5=function(){var Q,W=(Q=Gi.getEntriesByType)==null?void 0:Q.call(Gi,"mark");W&&W.forEach(function(x){if(x.name.startsWith("mark_")){var D;(D=Gi.clearMarks)==null||D.call(Gi,x.name)}})};
Lxz=function(){switch(Txs()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
r0Q=function(Q){function W(l,M,w){M=M.match("_rid")?M.split("_rid")[0]:M;typeof w==="number"&&(w=JSON.stringify(w));l.requestIds?l.requestIds.push({endpoint:M,id:w}):l.requestIds=[{endpoint:M,id:w}]}
var x={};Q=g.V(Object.entries(Q));for(var D=Q.next();!D.done;D=Q.next()){var K=g.V(D.value);D=K.next().value;K=K.next().value;switch(D){case "GetBrowse_rid":W(x,D,K);break;case "GetGuide_rid":W(x,D,K);break;case "GetHome_rid":W(x,D,K);break;case "GetPlayer_rid":W(x,D,K);break;case "GetSearch_rid":W(x,D,K);break;case "GetSettings_rid":W(x,D,K);break;case "GetTrending_rid":W(x,D,K);break;case "GetWatchNext_rid":W(x,D,K);break;case "yt_red":x.isRedSubscriber=!!K;break;case "yt_ad":x.isMonetized=!!K}}return x};
Tq5=function(Q,W){Q=document.querySelector(Q);if(!Q)return!1;var x="",D=Q.nodeName;D==="SCRIPT"?(x=Q.src,x||(x=Q.getAttribute("data-timing-href"))&&(x=window.location.protocol+x)):D==="LINK"&&(x=Q.href);NZ(document)&&Q.setAttribute("nonce",NZ(document));return x?(Q=Gi.getEntriesByName(x))&&Q[0]&&(Q=Q[0],x=is(),Ad("rsf_"+W,x+Math.round(Q.fetchStart)),Ad("rse_"+W,x+Math.round(Q.responseEnd)),Q.transferSize!==void 0&&Q.transferSize===0)?!0:!1:!1};
OKs=function(){var Q=window.location.protocol,W=Gi.getEntriesByType("resource");W=g.Rv(W,function(x){return x.name.indexOf(Q+"//fonts.gstatic.com/s/")===0});
(W=aX(W,function(x,D){return D.duration>x.duration?D:x},{duration:0}))&&W.startTime>0&&W.responseEnd>0&&(Ad("wffs",dK(W.startTime)),Ad("wffe",dK(W.responseEnd)))};
EE5=function(Q,W,x){Gi&&Gi.measure&&(Q.startsWith("measure_")||(Q="measure_"+Q),x?Gi.measure(Q,W,x):W?Gi.measure(Q,W):Gi.measure(Q))};
Fx5=function(Q){var W=qc("aft",Q);if(W)return W;W=g.TK((Q||"")+"TIMING_AFT_KEYS",["ol"]);for(var x=W.length,D=0;D<x;D++){var K=qc(W[D],Q);if(K)return K}return NaN};
Bo=function(Q,W){g.g4("ytglobal.timing"+(W||"")+"ready_",Q)};
qc=function(Q,W){if(Q=us(W)[Q])return typeof Q==="number"?Q:Q[Q.length-1]};
fVO=function(Q){var W=qc("_start",Q),x=Fx5(Q),D=g.Pb("enable_cow_info_csi")||!tGs;W&&x&&D&&(o_(QK2,new CA(Math.round(x-W),Q)),tGs=!0)};
WIO=function(){if(Gi.getEntriesByType){var Q=Gi.getEntriesByType("paint");if(Q=g.Os(Q,function(x){return x.name==="first-paint"}))return dK(Q.startTime)}var W;
g.Pb("csi_use_performance_navigation_timing")||g.Pb("csi_use_performance_navigation_timing_tvhtml5")?W=Gi.getEntriesByType("first-paint")[0].startTime:W=Gi.timing.iKZ;return W?Math.max(0,W):0};
$n=function(Q){qha(Q);x6l();ZK5();Q||(g.TK("TIMING_ACTION")&&rT("PREVIOUS_ACTION",g.TK("TIMING_ACTION")),rT("TIMING_ACTION",""))};
D62=function(){var Q=["pbs","pbu"];g.tx(function(){Po("").info.actionType="watch";Q&&rT("TIMING_AFT_KEYS",Q);rT("TIMING_ACTION","watch");var W=r0Q(g.TK("TIMING_INFO",{}));Object.keys(W).length>0&&U$(W);W={isNavigation:!0,actionType:vo(g.TK("TIMING_ACTION"))};var x=g.TK("PREVIOUS_ACTION");x&&(W.previousAction=vo(x));if(x=g.TK("CLIENT_PROTOCOL"))W.httpProtocol=x;if(x=g.TK("CLIENT_TRANSPORT"))W.transportProtocol=x;(x=g.ph())&&x!=="UNDEFINED_CSN"&&(W.clientScreenNonce=x);x=Lxz();if(x===1||x===-1)W.isVisible=
!0;x=oo().loadType==="cold";var D=Bq4();x||(x=D.yt_lt==="cold");if(x){W.loadType="cold";x=Bq4();D=gEl();var K=is(),l=g.TK("CSI_START_TIMESTAMP_MILLIS",0);l>0&&!g.Pb("embeds_web_enable_csi_start_override_killswitch")&&(K=l);K&&(Ad("srt",D.responseStart),x.prerender!==1&&Ho(K));x=WIO();x>0&&Ad("fpt",x);x=gEl();x.isPerformanceNavigationTiming&&U$({performanceNavigationTiming:!0},void 0);Ad("nreqs",x.requestStart,void 0);Ad("nress",x.responseStart,void 0);Ad("nrese",x.responseEnd,void 0);x.redirectEnd-
x.redirectStart>0&&(Ad("nrs",x.redirectStart,void 0),Ad("nre",x.redirectEnd,void 0));x.domainLookupEnd-x.domainLookupStart>0&&(Ad("ndnss",x.domainLookupStart,void 0),Ad("ndnse",x.domainLookupEnd,void 0));x.connectEnd-x.connectStart>0&&(Ad("ntcps",x.connectStart,void 0),Ad("ntcpe",x.connectEnd,void 0));x.secureConnectionStart>=is()&&x.connectEnd-x.secureConnectionStart>0&&(Ad("nstcps",x.secureConnectionStart,void 0),Ad("ntcpe",x.connectEnd,void 0));Gi&&"getEntriesByType"in Gi&&OKs();x=[];if(document.querySelector&&
Gi&&Gi.getEntriesByName)for(var M in Io)Io.hasOwnProperty(M)&&(D=Io[M],Tq5(M,D)&&x.push(D));if(x.length>0)for(W.resourceInfo=[],M=g.V(x),x=M.next();!x.done;x=M.next())W.resourceInfo.push({resourceCache:x.value})}U$(W);W=Yn();W.preLoggedGelInfos||(W.preLoggedGelInfos=[]);M=W.preLoggedGelInfos;W=$82();x=void 0;for(D=0;D<M.length;D++)if(K=M[D],K.loadType){x=K.loadType;break}if(oo().loadType==="cold"&&(W.loadType==="cold"||x==="cold")){x=us();D=Yn();D=D.gelTicks?D.gelTicks:D.gelTicks={};for(var w in x)if(!(w in
D))if(typeof x[w]==="number")Ad(w,qc(w));else if(g.Pb("log_repeated_ytcsi_ticks"))for(K=g.V(x[w]),l=K.next();!l.done;l=K.next())Ad(w.slice(1),l.value);w={};x=!1;M=g.V(M);for(D=M.next();!D.done;D=M.next())x=D.value,sc(W,x),sc(w,x),x=!0;x&&U$(w)}Bo(!0);w=g.TK("TIMING_ACTION");g.yF("ytglobal.timingready_")&&w&&m7()&&Fx5()&&fVO()})()};
KI5=function(){var Q=Q===void 0?{}:Q;g.tx(function(){m7()&&Nc("aa",void 0,void 0);m8s();$n();Bo(!1);Q.cttAuthInfo&&(KA().cttAuthInfo=Q.cttAuthInfo);rT("TIMING_AFT_KEYS",[]);Q.Emj?g.co({loadType:"hot"}):g.co({loadType:"warm"});rT("TIMING_ACTION","");delete g.TK("TIMING_INFO",{}).yt_lt;g.tx(Ho)(Q.startTime,void 0)})()};
gK=function(Q,W){W=W===void 0?{}:W;g.tx(function(){lns(Q);var x=W.sampleRate;if(!g.Pb("web_csi_action_sampling_enabled")||x===void 0||x<=1)x=!1;else{var D=nA(Q);x=zfv(D)%x!==0}x&&(KA(Q).actionDisabled=!0);Po(Q||"").info.actionType=Q;W.cttAuthInfo&&(KA(Q).cttAuthInfo=W.cttAuthInfo);rT(Q+"TIMING_ACTION",Q);g.tx(Ho)(W.startTime,Q);x={actionType:vo(Q)};W.wxt&&(x.previousAction=vo(g.TK("TIMING_ACTION")));(D=g.ph())&&D!=="UNDEFINED_CSN"&&(x.clientScreenNonce=D);g.co(x,Q);Bo(!0,Q)})()};
lns=function(Q){g.tx(function(){m7(Q)&&Nc("aa",void 0,Q);m8s(Q);$n(Q)})()};
m7=function(Q){return g.tx(function(){return y_("_start",Q)})()};
g.co=function(Q,W,x){g.tx(U$)(Q,W,x===void 0?!1:x)};
Nc=function(Q,W,x){return g.tx(Ad)(Q,W,x)};
jK5=function(Q){g.tx(EE5)("action_finished",Q,void 0)};
y_=function(Q,W){return g.tx(function(){var x=us(W);return Q in x})()};
Rrv=function(Q){if(!g.Pb("universal_csi_network_ticks"))return"";Q=Ar(g.B_(5,Q))||"";for(var W=Object.keys(MT2),x=0;x<W.length;x++){var D=W[x];if(Q.includes(D))return D}return""};
Scs=function(Q){if(!g.Pb("universal_csi_network_ticks"))return function(){};
var W=MT2[Q];return W?(eP(W),function(){var x=g.Pb("universal_csi_network_ticks")?(x=w$h[Q])?eP(x):!1:!1;return x}):function(){}};
eP=function(Q,W){return g.tx(function(){if(y_(Q,W))return!1;Nc(Q,void 0,W);return!0})()};
fA=function(Q,W,x){g.tx(function(){if(!m7(x)||y_(Q,x))return!1;Nc(Q,W,x);return!0})()};
buF=function(){g.tx(function(){var Q=nA();requestAnimationFrame(function(){setTimeout(function(){Q===nA()&&Nc("ftl",void 0,void 0)},0)})})()};
g.Zx=function(Q,W){var x=g.i2.apply(2,arguments);Q=Q===void 0?0:Q;g.Lw.call(this,W,x);this.errorType=Q;Object.setPrototypeOf(this,this.constructor.prototype)};
LA=function(Q,W,x,D){this.Ja=Q;this.DB=W;this.B=x;this.N=D;this.D=void 0;this.U=new Map;Q.lV||(Q.lV={});Q.lV=Object.assign({},sKv,Q.lV)};
zrD=function(Q,W,x,D){if(LA.instance!==void 0){if(D=LA.instance,Q=[Q!==D.Ja,W!==D.DB,x!==D.B,!1,!1,!1,void 0!==D.D],Q.some(function(K){return K}))throw new g.Lw("InnerTubeTransportService is already initialized",Q);
}else LA.instance=new LA(Q,W,x,D)};
rK=function(Q,W,x){var D=D===void 0?sh:D;var K=kbs(Q,W);return K?new g.Xk(function(l,M){var w,S,b,z,k;return g.U(function(X){switch(X.B){case 1:return g.A(X,K,2);case 2:w=X.U;S=w.L(W,x,D);if(!S){M(new g.Lw("Error: Failed to build request for command.",W));X.kf(0);break}gs(S.input);z=((b=S.Rx)==null?void 0:b.mode)==="cors"?"cors":void 0;if(Q.B.CD){k=X$Q(Q,S.config,z);X.kf(4);break}return g.A(X,oi2(Q,S.config,z),5);case 5:k=X.U;case 4:l(u14(Q,S,k)),g.VF(X)}})}):YX(new g.Lw("Error: No request builder found for command.",
W))};
g.Ti=function(Q,W,x,D,K){function l(){}
K=K===void 0?{AM:{identity:sh}}:K;var M=M===void 0?!0:M;l=Scs(Rrv(x));W.context||(W.context=g.EH(D,M));return new g.Xk(function(w){var S,b,z,k,X;return g.U(function(u){if(u.B==1)return S=NO(x),b=Rc(S)?"same-origin":"cors",Q.B.CD?(z=X$Q(Q,K,b),u.kf(2)):g.A(u,oi2(Q,K,b),3);u.B!=2&&(z=u.U);k=dna(NO(x));X={input:k,Rx:cb(k),kQ:W,config:K};w(u14(Q,X,z,l));g.VF(u)})})};
nis=function(Q,W,x){var D;if(W&&!(W==null?0:(D=W.sequenceMetaData)==null?0:D.skipProcessing)&&Q.N){D=g.V(Yc5);for(var K=D.next();!K.done;K=D.next())K=K.value,Q.N[K]&&Q.N[K].handleResponse(W,x)}};
u14=function(Q,W,x,D){D=D===void 0?function(){}:D;
var K,l,M,w,S,b,z,k,X,u,Y,v,J,h,G,H,I,c,O,T,Ks,Mz,QF,f,t,P,Z,c5,vu,kF;return g.U(function(a1){switch(a1.B){case 1:a1.kf(2);break;case 3:if((K=a1.U)&&!K.isExpired())return a1.return(Promise.resolve(K.B()));case 2:if(!((l=W)==null?0:(M=l.kQ)==null?0:M.context)){a1.kf(4);break}w=W.kQ.context;a1.kf(5);break;case 5:S=g.V([]),b=S.next();case 8:if(b.done){a1.kf(4);break}z=b.value;return g.A(a1,z.pOj(w),9);case 9:b=S.next();a1.kf(8);break;case 4:if((k=Q.D)==null||!k.jX5(W.input,W.kQ)){a1.kf(12);break}return g.A(a1,
Q.D.sep(W.input,W.kQ),13);case 13:return X=a1.U,nis(Q,X,W),a1.return(X);case 12:return(v=(Y=W.config)==null?void 0:Y.M9)&&Q.U.has(v)?u=Q.U.get(v):(J=JSON.stringify(W.kQ),H=(G=(h=W.Rx)==null?void 0:h.headers)!=null?G:{},W.Rx=Object.assign({},W.Rx,{headers:Object.assign({},H,x)}),I=Object.assign({},W.Rx),W.Rx.method==="POST"&&(I=Object.assign({},I,{body:J})),((c=W.config)==null?0:c.XIt)&&Nc(W.config.XIt),O=function(){return Q.DB.fetch(W.input,I,W.config)},u=O(),v&&Q.U.set(v,u)),g.A(a1,u,14);
case 14:if((T=a1.U)&&"error"in T&&((Ks=T)==null?0:(Mz=Ks.error)==null?0:Mz.details))for(QF=T.error.details,f=g.V(QF),t=f.next();!t.done;t=f.next())P=t.value,(Z=P["@type"])&&VT1.indexOf(Z)>-1&&(delete P["@type"],T=P);v&&Q.U.has(v)&&Q.U.delete(v);((c5=W.config)==null?0:c5.EYp)&&Nc(W.config.EYp);if(T||(vu=Q.D)==null||!vu.vQ5(W.input,W.kQ)){a1.kf(15);break}return g.A(a1,Q.D.eBS(W.input,W.kQ),16);case 16:T=a1.U;case 15:return nis(Q,T,W),((kF=W.config)==null?0:kF.nX5)&&Nc(W.config.nX5),D(),a1.return(T||
void 0)}})};
kbs=function(Q,W){a:{Q=Q.Ja;var x,D=(x=g.e(W,aVO))==null?void 0:x.signal;if(D&&Q.lV&&(x=Q.lV[D])){var K=x();break a}var l;if((x=(l=g.e(W,G$F))==null?void 0:l.request)&&Q.Ac&&(l=Q.Ac[x])){K=l();break a}for(K in W)if(Q.O0[K]&&(W=Q.O0[K])){K=W();break a}K=void 0}if(K!==void 0)return Promise.resolve(K)};
oi2=function(Q,W,x){var D,K,l,M,w,S,b;return g.U(function(z){if(z.B==1){l=((D=W)==null?void 0:(K=D.AM)==null?void 0:K.identity)||sh;S=(M=W)==null?void 0:(w=M.AM)==null?void 0:w.sessionIndex;var k=g.ui(Q.B.Un(l,{sessionIndex:S}));return g.A(z,k,2)}b=z.U;return z.return(Promise.resolve(Object.assign({},iKn(x),b)))})};
X$Q=function(Q,W,x){var D,K=(W==null?void 0:(D=W.AM)==null?void 0:D.identity)||sh,l;W=W==null?void 0:(l=W.AM)==null?void 0:l.sessionIndex;Q=Q.B.Un(K,{sessionIndex:W});return Object.assign({},iKn(x),Q)};
O$=function(){};
E$=function(){};
Fl=function(Q){this.X=Q};
td=function(){};
Qg=function(){};
WQ=function(){};
xw=function(){};
D1=function(Q,W,x){this.B=Q;this.U=W;this.D=x};
Pu1=function(Q,W,x){if(Q.B){var D=Ar(g.B_(5,Zr(W,"key")))||"/UNKNOWN_PATH";Q.B.start(D)}Q=x;g.Pb("wug_networking_gzip_request")&&(Q=W2l(x));return new window.Request(W,Q)};
g.ll=function(Q,W){if(!KI){var x=q6();iu(x,{dQ:vi4,MQ:D1});var D={O0:{feedbackEndpoint:tI(td),modifyChannelNotificationPreferenceEndpoint:tI(Qg),playlistEditEndpoint:tI(WQ),shareEntityEndpoint:tI(Fl),subscribeEndpoint:tI(O$),unsubscribeEndpoint:tI(E$),webPlayerShareEntityServiceEndpoint:tI(xw)}},K=OH.getInstance(),l={};K&&(l.client_location=K);Q===void 0&&(Q=wgO());W===void 0&&(W=x.resolve(vi4));zrD(D,W,Q,l);iu(x,{dQ:Cul,PE:LA.instance});KI=x.resolve(Cul)}return KI};
JVl=function(Q){var W=new z2;if(Q.interpreterJavascript){var x=eb4(Q.interpreterJavascript);x=gX(x).toString();var D=new bz;YL(D,6,x);wc(W,bz,1,D)}else Q.interpreterUrl&&(x=Jx(Q.interpreterUrl),x=ax(x).toString(),D=new sO,YL(D,4,x),wc(W,sO,2,D));Q.interpreterHash&&nR(W,3,Q.interpreterHash);Q.program&&nR(W,4,Q.program);Q.globalName&&nR(W,5,Q.globalName);Q.clientExperimentsStateBlob&&nR(W,7,Q.clientExperimentsStateBlob);return W};
jg=function(Q){var W={};Q=Q.split("&");Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next())x=x.value.split("="),x.length===2&&(W[x[0]]=x[1]);return W};
R4z=function(){if(g.Pb("bg_st_hr"))return"havuokmhhs-0";var Q,W=((Q=performance)==null?void 0:Q.timeOrigin)||0;return"havuokmhhs-"+Math.floor(W)};
Ms=function(Q){this.B=Q};
p$n=function(){return new Promise(function(Q){var W=window.top;W.ntpevasrs!==void 0?Q(new Ms(W.ntpevasrs)):(W.ntpqfbel===void 0&&(W.ntpqfbel=[]),W.ntpqfbel.push(function(x){Q(new Ms(x))}))})};
anz=function(){if(!g.Pb("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Pb("disable_biscotti_fetch_entirely_for_all_web_clients")&&xY()){var Q=g.TK("PLAYER_VARS",{});if(g.i0(Q,"privembed",!1)!="1"&&!Bxn(Q)){var W=function(){Rt=!0;"google_ad_status"in window?rT("DCLKSTAT",1):rT("DCLKSTAT",2)};
try{g.RK("//static.doubleclick.net/instream/ad_status.js",W)}catch(x){}hrQ.push(g.ct.zK(function(){if(!(Rt||"google_ad_status"in window)){try{if(W){var x=""+g.Ol(W),D=BmF[x];D&&g.jT(D)}}catch(K){}Rt=!0;rT("DCLKSTAT",3)}},5E3))}}};
wF=function(){var Q=Number(g.TK("DCLKSTAT",0));return isNaN(Q)?0:Q};
zC=function(Q,W,x){var D=this;this.network=Q;this.options=W;this.U=x;this.B=null;if(W.COj){var K=new g.XT;this.B=K.promise;g.Nz.ytAtRC&&Ed(function(){var l,M;return g.U(function(w){if(w.B==1){if(!g.Nz.ytAtRC)return w.return();l=Sg(null);return g.A(w,bl(D,l),2)}M=w.U;g.Nz.ytAtRC&&g.Nz.ytAtRC(JSON.stringify(M));g.VF(w)})},2);
p$n().then(function(l){var M,w,S,b;return g.U(function(z){if(z.B==1)return l.bindInnertubeChallengeFetcher(function(k){return bl(D,Sg(k))}),g.A(z,Gd(),2);
M=z.U;w=l.getLatestChallengeResponse();S=w.challenge;if(!S)throw Error("BGE_MACIL");b={challenge:S,yc:jg(S),RU:M,bgChallenge:new z2};K.resolve(b);l.registerChallengeFetchedCallback(function(k){k=k.challenge;if(!k)throw Error("BGE_MACR");k={challenge:k,yc:jg(k),RU:M,bgChallenge:new z2};D.B=Promise.resolve(k)});
g.VF(z)})})}else W.preload&&Gbv(this,new Promise(function(l){g.Fw(0,function(){l(s2(D))},0)}))};
Sg=function(Q){var W={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};Q&&(W.interpreterHash=Q);return W};
s2=function(Q,W){W=W===void 0?0:W;var x,D,K,l,M,w,S,b,z,k,X,u;return g.U(function(Y){switch(Y.B){case 1:x=Sg(Y7().B);if(g.Pb("att_fet_ks"))return g.P5(Y,7),g.A(Y,bl(Q,x),9);g.P5(Y,4);return g.A(Y,d64(Q,x),6);case 6:M=Y.U;K=M.oX3;l=M.GP9;D=M;g.Cs(Y,3);break;case 4:return g.Jv(Y),g.Bp(Error("Failed to fetch attestation challenge after "+(W+" attempts; not retrying for 24h."))),kw(Q,864E5),Y.return({challenge:"",yc:{},RU:void 0,bgChallenge:void 0});case 9:D=Y.U;if(!D)throw Error("Fetching Attestation challenge returned falsy");
if(!D.challenge)throw Error("Missing Attestation challenge");K=D.challenge;l=jg(K);if("c1a"in l&&(!D.bgChallenge||!D.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Cs(Y,3);break;case 7:w=g.Jv(Y);g.Bp(w);W++;if(W>=5)return g.Bp(Error("Failed to fetch attestation challenge after "+(W+" attempts; not retrying for 24h."))),kw(Q,864E5),Y.return({challenge:"",yc:{},RU:void 0,bgChallenge:void 0});S=1E3*Math.pow(2,W-1)+Math.random()*1E3;return Y.return(new Promise(function(v){g.Fw(0,
function(){v(s2(Q,W))},S)}));
case 3:b=Number(l.t)||7200;kw(Q,b*1E3);z=void 0;if(!("c1a"in l&&D.bgChallenge)){Y.kf(10);break}k=JVl(D.bgChallenge);g.P5(Y,11);return g.A(Y,nt(Y7(),k),13);case 13:g.Cs(Y,12);break;case 11:return X=g.Jv(Y),g.Bp(X),Y.return({challenge:K,yc:l,RU:z,bgChallenge:k});case 12:return g.P5(Y,14),z=new ok({challenge:k,mQ:{d5:"aGIf"}}),g.A(Y,z.KC,16);case 16:g.Cs(Y,10);break;case 14:u=g.Jv(Y),g.Bp(u),z=void 0;case 10:return Y.return({challenge:K,yc:l,RU:z,bgChallenge:k})}})};
bl=function(Q,W){var x;return g.U(function(D){x=Q.U;if(!x||x.yv())return D.return(bl(Q.network,W));fA("att_pna",void 0,"attestation_challenge_fetch");return D.return(new Promise(function(K){x.Jt("publicytnetworkstatus-online",function(){bl(Q.network,W).then(K)})}))})};
iuh=function(Q){if(!Q)throw Error("Fetching Attestation challenge returned falsy");if(!Q.challenge)throw Error("Missing Attestation challenge");var W=Q.challenge,x=jg(W);if("c1a"in x&&(!Q.bgChallenge||!Q.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},Q,{oX3:W,GP9:x})};
d64=function(Q,W){var x,D,K,l,M;return g.U(function(w){switch(w.B){case 1:x=void 0,D=0,K={};case 2:if(!(D<5)){w.kf(4);break}if(!(D>0)){w.kf(5);break}K.E6=1E3*Math.pow(2,D-1)+Math.random()*1E3;return g.A(w,new Promise(function(S){return function(b){g.Fw(0,function(){b(void 0)},S.E6)}}(K)),5);
case 5:return g.P5(w,7),g.A(w,bl(Q,W),9);case 9:return l=w.U,w.return(iuh(l));case 7:x=M=g.Jv(w),M instanceof Error&&g.Bp(M);case 8:D++;K={E6:void 0};w.kf(2);break;case 4:throw x;}})};
Gbv=function(Q,W){Q.B=W};
AVh=function(Q){var W,x,D;return g.U(function(K){if(K.B==1)return g.A(K,Promise.race([Q.B,null]),2);W=K.U;var l=s2(Q);Q.B=l;(x=W)==null||(D=x.RU)==null||D.dispose();g.VF(K)})};
kw=function(Q,W){function x(){var K;return g.U(function(l){K=D-Date.now();return K<1E3?g.A(l,AVh(Q),0):(Ed(x,0,Math.min(K,6E4)),l.kf(0))})}
var D=Date.now()+W;x()};
Huh=function(Q,W){return new Promise(function(x){g.Fw(0,function(){x(W())},Q)})};
g.U61=function(Q,W){var x;return g.U(function(D){var K=g.yF("yt.aba.att");return(x=K?K:zC.instance!==void 0?zC.instance.D.bind(zC.instance):null)?D.return(x("ENGAGEMENT_TYPE_PLAYBACK",Q,W)):D.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
g.qcn=function(){var Q;return(Q=(Q=g.yF("yt.aba.att2"))?Q:zC.instance!==void 0?zC.instance.N.bind(zC.instance):null)?Q():Promise.resolve(!1)};
$6D=function(Q,W){var x=g.yF("ytDebugData.callbacks");x||(x={},g.g4("ytDebugData.callbacks",x));if(g.Pb("web_dd_iu")||BhD.includes(Q))x[Q]=W};
XG=function(){var Q=In1;var W=W===void 0?[]:W;var x=x===void 0?[]:x;W=IGl.apply(null,[m71.apply(null,g.C(W))].concat(g.C(x)));this.store=cHF(Q,void 0,W)};
g.ot=function(Q,W,x){for(var D=Object.assign({},Q),K=g.V(Object.keys(W)),l=K.next();!l.done;l=K.next()){l=l.value;var M=Q[l],w=W[l];if(w===void 0)delete D[l];else if(M===void 0)D[l]=w;else if(Array.isArray(w)&&Array.isArray(M))D[l]=x?[].concat(g.C(M),g.C(w)):w;else if(!Array.isArray(w)&&g.r4(w)&&!Array.isArray(M)&&g.r4(M))D[l]=g.ot(M,w,x);else if(typeof w===typeof M)D[l]=w;else return W=new g.Lw("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:l,aU9:M,updateValue:w}),g.ql(W),
Q}return D};
ul=function(Q){var W=this;Q=Q===void 0?[]:Q;this.SE=[];this.ZL=this.B9=0;this.bH=void 0;this.totalLength=0;Q.forEach(function(x){W.append(x)})};
m6l=function(Q,W){return Q.SE.length===0?!1:(Q=Q.SE[Q.SE.length-1])&&Q.buffer===W.buffer&&Q.byteOffset+Q.length===W.byteOffset};
Yw=function(Q,W){W=g.V(W.SE);for(var x=W.next();!x.done;x=W.next())Q.append(x.value)};
nI=function(Q,W,x){return Q.split(W).h9.split(x).gA};
Vg=function(Q){Q.bH=void 0;Q.B9=0;Q.ZL=0};
PQ=function(Q,W,x){Q.isFocused(W);return W-Q.ZL+x<=Q.SE[Q.B9].length};
Nh5=function(Q){if(!Q.bH){var W=Q.SE[Q.B9];Q.bH=new DataView(W.buffer,W.byteOffset,W.length)}return Q.bH};
vQ=function(Q,W,x){Q=Q.Nq(W===void 0?0:W,x===void 0?-1:x);W=new Uint8Array(Q.length);try{W.set(Q)}catch(D){for(x=0;x<Q.length;x++)W[x]=Q[x]}return W};
cV4=function(Q,W){Q.focus(W);return PQ(Q,W,4)?Nh5(Q).getUint32(W-Q.ZL):256*(256*(256*Q.getUint8(W)+Q.getUint8(W+1))+Q.getUint8(W+2))+Q.getUint8(W+3)};
gis=function(Q){for(var W=new Uint8Array(Q.length),x=0;x<Q.length;x++)W[x]=Q.charCodeAt(x);return W};
Jy=function(Q){return Q.length?CI?CI.decode(Q):String.fromCharCode.apply(null,Q):""};
g.hy=function(Q){if(!Q.length)return"";try{if(CI)return CI.decode(Q);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(Q)}catch(M){}for(var W=0,x=[],D=Q.length;W<D;){for(var K=0;K<1024&&W<D;){var l=Q[W++];if(l<128)pI[K++]=l;else{if(l<224)l=(l&31)<<6|Q[W++]&63;else if(l<240)l=(l&15)<<12|(Q[W++]&63)<<6|Q[W++]&63;else{if(K+1===1024){--W;break}l=(l&7)<<18|(Q[W++]&63)<<12|(Q[W++]&63)<<6|Q[W++]&63;l-=65536;pI[K++]=55296|l>>10;l=56320|l&1023}pI[K++]=l}}l=String.fromCharCode.apply(String,pI);
K<1024&&(l=l.substring(0,K));x.push(l)}return x.join("")};
GC=function(Q,W){var x;if((x=at)==null?0:x.encodeInto)return W=at.encodeInto(Q,W),W.read<Q.length?Q.length*4:W.written;for(var D=x=0;D<Q.length;D++){var K=Q.charCodeAt(D);K<128?W[x++]=K:(K<2048?W[x++]=K>>6|192:((K&64512)===55296&&D+1<Q.length&&(Q.charCodeAt(D+1)&64512)===56320?(K=65536+((K&1023)<<10)+(Q.charCodeAt(++D)&1023),W[x++]=K>>18|240,W[x++]=K>>12&63|128):W[x++]=K>>12|224,W[x++]=K>>6&63|128),W[x++]=K&63|128)}return x};
dF=function(Q){if(at)return at.encode(Q);var W=new Uint8Array(Math.ceil(Q.length*1.2)),x=GC(Q,W);W.length<x&&(W=new Uint8Array(x),x=GC(Q,W));W.length>x&&(W=W.subarray(0,x));return W};
il=function(Q){this.B=Q;this.pos=0;this.U=-1};
Ay=function(Q){var W=Q.B.getUint8(Q.pos);++Q.pos;if(W<128)return W;for(var x=W&127,D=1;W>=128;)W=Q.B.getUint8(Q.pos),++Q.pos,D*=128,x+=(W&127)*D;return x};
HQ=function(Q,W){var x=Q.U;for(Q.U=-1;Q.B.er(Q.pos,1);){x<0&&(x=Ay(Q));var D=x>>3,K=x&7;if(D===W)return!0;if(D>W){Q.U=x;break}x=-1;switch(K){case 0:Ay(Q);break;case 1:Q.pos+=8;break;case 2:D=Ay(Q);Q.pos+=D;break;case 5:Q.pos+=4}}return!1};
U2=function(Q,W){if(HQ(Q,W))return Ay(Q)};
qs=function(Q,W){if(HQ(Q,W))return!!Ay(Q)};
BQ=function(Q,W){if(HQ(Q,W)){W=Ay(Q);var x=Q.B.Nq(Q.pos,W);Q.pos+=W;return x}};
$w=function(Q,W){if(Q=BQ(Q,W))return g.hy(Q)};
It=function(Q,W,x){if(Q=BQ(Q,W))return x(new il(new ul([Q])))};
my=function(Q,W){for(var x=[];HQ(Q,W);)x.push(Ay(Q));return x.length?x:void 0};
Ns=function(Q,W,x){for(var D=[],K;K=BQ(Q,W);)D.push(x(new il(new ul([K]))));return D.length?D:void 0};
cQ=function(Q,W){Q=Q instanceof Uint8Array?new ul([Q]):Q;return W(new il(Q))};
yVs=function(Q,W,x){if(W&&x&&x.buffer===W.exports.memory.buffer){var D=W.realloc(x.byteOffset,Q);if(D)return new Uint8Array(W.exports.memory.buffer,D,Q)}Q=W?new Uint8Array(W.exports.memory.buffer,W.malloc(Q),Q):new Uint8Array(Q);x&&Q.set(x);return Q};
er5=function(Q,W){this.n_=W;this.pos=0;this.U=[];this.B=yVs(Q===void 0?4096:Q,W);this.view=new DataView(this.B.buffer,this.B.byteOffset,this.B.byteLength)};
gF=function(Q,W){W=Q.pos+W;if(!(Q.B.length>=W)){for(var x=Q.B.length*2;x<W;)x*=2;Q.B=yVs(x,Q.n_,Q.B.subarray(0,Q.pos));Q.view=new DataView(Q.B.buffer,Q.B.byteOffset,Q.B.byteLength)}};
yg=function(Q,W){if(W>268435455){gF(Q,4);for(var x=W&1073741823,D=0;D<4;D++)Q.view.setUint8(Q.pos,x&127|128),x>>=7,Q.pos+=1;W=Math.floor(W/268435456)}for(gF(Q,4);W>127;)Q.view.setUint8(Q.pos,W&127|128),W>>=7,Q.pos+=1;Q.view.setUint8(Q.pos,W);Q.pos+=1};
eg=function(Q,W,x){x!==void 0&&(yg(Q,W*8),yg(Q,x))};
fI=function(Q,W,x){x!==void 0&&eg(Q,W,x?1:0)};
Z1=function(Q,W,x){x!==void 0&&(yg(Q,W*8+2),W=x.length,yg(Q,W),gF(Q,W),Q.B.set(x,Q.pos),Q.pos+=W)};
LI=function(Q,W,x){x!==void 0&&(fnF(Q,W,Math.ceil(Math.log2(x.length*4+2)/7)),gF(Q,x.length*1.2),W=GC(x,Q.B.subarray(Q.pos)),Q.pos+W>Q.B.length&&(gF(Q,W),W=GC(x,Q.B.subarray(Q.pos))),Q.pos+=W,Zus(Q))};
fnF=function(Q,W,x){x=x===void 0?2:x;yg(Q,W*8+2);Q.U.push(Q.pos);Q.U.push(x);Q.pos+=x};
Zus=function(Q){for(var W=Q.U.pop(),x=Q.U.pop(),D=Q.pos-x-W;W--;){var K=W?128:0;Q.view.setUint8(x++,D&127|K);D>>=7}};
rF=function(Q,W,x,D,K){x&&(fnF(Q,W,K===void 0?3:K),D(Q,x),Zus(Q))};
g.l1=function(Q,W,x){x=new er5(4096,x);W(x,Q);return new Uint8Array(x.B.buffer,x.B.byteOffset,x.pos)};
g.jd=function(Q){var W=new il(new ul([v1(decodeURIComponent(Q))]));Q=$w(W,2);W=U2(W,4);var x=LI1[W];if(typeof x==="undefined")throw Q=new g.Lw("Failed to recognize field number",{name:"EntityKeyHelperError",bNZ:W}),g.ql(Q),Q;return{Oa:W,entityType:x,entityId:Q}};
g.Mb=function(Q,W){var x=x===void 0?0:x;var D=new er5;Z1(D,2,dF(Q));Q=rVl[W];if(typeof Q==="undefined")throw x=new g.Lw("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:W}),g.ql(x),x;eg(D,4,Q);eg(D,5,1);W=new Uint8Array(D.B.buffer,D.B.byteOffset,D.pos);return encodeURIComponent(g.Vn(W,x))};
R9=function(Q,W,x,D){if(D===void 0)return D=Object.assign({},Q[W]||{}),x=(delete D[x],D),D={},Object.assign({},Q,(D[W]=x,D));var K={},l={};return Object.assign({},Q,(l[W]=Object.assign({},Q[W],(K[x]=D,K)),l))};
Thv=function(Q,W,x,D,K){var l=Q[W];if(l==null||!l[x])return Q;D=g.ot(l[x],D,K==="REPEATED_FIELDS_MERGE_OPTION_APPEND");K={};l={};return Object.assign({},Q,(l[W]=Object.assign({},Q[W],(K[x]=D,K)),l))};
Ou4=function(Q,W){Q=Q===void 0?{}:Q;switch(W.type){case "ENTITY_LOADED":return W.payload.reduce(function(D,K){var l,M=(l=K.options)==null?void 0:l.persistenceOption;if(M&&M!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&M!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return D;if(!K.entityKey)return g.ql(Error("Missing entity key")),D;if(K.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!K.payload)return g.ql(new g.Lw("REPLACE entity mutation is missing a payload",{entityKey:K.entityKey})),D;var w=g.CC(K.payload);
return R9(D,w,K.entityKey,K.payload[w])}if(K.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{K=K.entityKey;try{var S=g.jd(K).entityType;w=R9(D,S,K);break a}catch(k){if(k instanceof Error){g.ql(new g.Lw("Failed to deserialize entity key",{entityKey:K,JZ:k.message}));w=D;break a}throw k;}w=void 0}return w}if(K.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!K.payload)return g.ql(new g.Lw("UPDATE entity mutation is missing a payload",{entityKey:K.entityKey})),D;w=g.CC(K.payload);var b,z;return Thv(D,w,K.entityKey,
K.payload[w],(b=K.fieldMask)==null?void 0:(z=b.mergeOptions)==null?void 0:z.repeatedFieldsMergeOption)}return D},Q);
case "REPLACE_ENTITY":var x=W.payload;return R9(Q,x.entityType,x.key,x.Hn);case "REPLACE_ENTITIES":return Object.keys(W.payload).reduce(function(D,K){var l=W.payload[K];return Object.keys(l).reduce(function(M,w){return R9(M,K,w,l[w])},D)},Q);
case "UPDATE_ENTITY":return x=W.payload,Thv(Q,x.entityType,x.key,x.Hn,x.RB1);default:return Q}};
wW=function(Q,W,x){return Q[W]?Q[W][x]||null:null};
Sd=function(Q){return window.Int32Array?new Int32Array(Q):Array(Q)};
u1=function(Q){g.N.call(this);this.counter=[0,0,0,0];this.U=new Uint8Array(16);this.B=16;if(!Ei5){var W,x=new Uint8Array(256),D=new Uint8Array(256);var K=1;for(W=0;W<256;W++)x[K]=W,D[W]=K,K^=K<<1^(K>>7&&283);b1=new Uint8Array(256);zf=Sd(256);kt=Sd(256);XC=Sd(256);o9=Sd(256);for(var l=0;l<256;l++){K=l?D[255^x[l]]:0;K^=K<<1^K<<2^K<<3^K<<4;K=K&255^K>>>8^99;b1[l]=K;W=K<<1^(K>>7&&283);var M=W^K;zf[l]=W<<24|K<<16|K<<8|M;kt[l]=M<<24|zf[l]>>>8;XC[l]=K<<24|kt[l]>>>8;o9[l]=K<<24|XC[l]>>>8}Ei5=!0}K=Sd(44);for(x=
0;x<4;x++)K[x]=Q[4*x]<<24|Q[4*x+1]<<16|Q[4*x+2]<<8|Q[4*x+3];for(D=1;x<44;x++)Q=K[x-1],x%4||(Q=(b1[Q>>16&255]^D)<<24|b1[Q>>8&255]<<16|b1[Q&255]<<8|b1[Q>>>24],D=D<<1^(D>>7&&283)),K[x]=K[x-4]^Q;this.key=K};
Yt=function(Q,W){for(var x=0;x<4;x++)Q.counter[x]=W[x*4]<<24|W[x*4+1]<<16|W[x*4+2]<<8|W[x*4+3];Q.B=16};
FI5=function(Q){for(var W=Q.key,x=Q.counter[0]^W[0],D=Q.counter[1]^W[1],K=Q.counter[2]^W[2],l=Q.counter[3]^W[3],M=3;M>=0&&!(Q.counter[M]=-~Q.counter[M]);M--);for(var w,S,b=4;b<40;)M=zf[x>>>24]^kt[D>>16&255]^XC[K>>8&255]^o9[l&255]^W[b++],w=zf[D>>>24]^kt[K>>16&255]^XC[l>>8&255]^o9[x&255]^W[b++],S=zf[K>>>24]^kt[l>>16&255]^XC[x>>8&255]^o9[D&255]^W[b++],l=zf[l>>>24]^kt[x>>16&255]^XC[D>>8&255]^o9[K&255]^W[b++],x=M,D=w,K=S;Q=Q.U;M=W[40];Q[0]=b1[x>>>24]^M>>>24;Q[1]=b1[D>>16&255]^M>>16&255;Q[2]=b1[K>>8&255]^
M>>8&255;Q[3]=b1[l&255]^M&255;M=W[41];Q[4]=b1[D>>>24]^M>>>24;Q[5]=b1[K>>16&255]^M>>16&255;Q[6]=b1[l>>8&255]^M>>8&255;Q[7]=b1[x&255]^M&255;M=W[42];Q[8]=b1[K>>>24]^M>>>24;Q[9]=b1[l>>16&255]^M>>16&255;Q[10]=b1[x>>8&255]^M>>8&255;Q[11]=b1[D&255]^M&255;M=W[43];Q[12]=b1[l>>>24]^M>>>24;Q[13]=b1[x>>16&255]^M>>16&255;Q[14]=b1[D>>8&255]^M>>8&255;Q[15]=b1[K&255]^M&255};
PE=function(){if(!nB&&!g.rV){if(Vs)return Vs;var Q;Vs=(Q=window.crypto)==null?void 0:Q.subtle;var W,x,D;if(((W=Vs)==null?0:W.importKey)&&((x=Vs)==null?0:x.sign)&&((D=Vs)==null?0:D.encrypt))return Vs;Vs=void 0}};
g.vE=function(Q){this.N=Q};
g.CB=function(Q){this.U=Q};
Jp=function(Q){this.L=new Uint8Array(64);this.D=new Uint8Array(64);this.N=0;this.X=new Uint8Array(64);this.U=0;this.L.set(Q);this.D.set(Q);for(Q=0;Q<64;Q++)this.L[Q]^=92,this.D[Q]^=54;this.reset()};
tTl=function(Q,W,x){for(var D=Q.G,K=Q.B[0],l=Q.B[1],M=Q.B[2],w=Q.B[3],S=Q.B[4],b=Q.B[5],z=Q.B[6],k=Q.B[7],X,u,Y,v=0;v<64;)v<16?(D[v]=Y=W[x]<<24|W[x+1]<<16|W[x+2]<<8|W[x+3],x+=4):(X=D[v-2],u=D[v-15],Y=D[v-7]+D[v-16]+((X>>>17|X<<15)^(X>>>19|X<<13)^X>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),D[v]=Y),X=k+pB[v]+Y+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&b^~S&z),u=((K>>>2|K<<30)^(K>>>13|K<<19)^(K>>>22|K<<10))+(K&l^K&M^l&M),k=X+u,w+=X,v++,v<16?(D[v]=Y=W[x]<<24|W[x+1]<<16|W[x+2]<<8|W[x+3],x+=4):(X=
D[v-2],u=D[v-15],Y=D[v-7]+D[v-16]+((X>>>17|X<<15)^(X>>>19|X<<13)^X>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),D[v]=Y),X=z+pB[v]+Y+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&S^~w&b),u=((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+(k&K^k&l^K&l),z=X+u,M+=X,v++,v<16?(D[v]=Y=W[x]<<24|W[x+1]<<16|W[x+2]<<8|W[x+3],x+=4):(X=D[v-2],u=D[v-15],Y=D[v-7]+D[v-16]+((X>>>17|X<<15)^(X>>>19|X<<13)^X>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),D[v]=Y),X=b+pB[v]+Y+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&w^
~M&S),u=((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+(z&k^z&K^k&K),b=X+u,l+=X,v++,v<16?(D[v]=Y=W[x]<<24|W[x+1]<<16|W[x+2]<<8|W[x+3],x+=4):(X=D[v-2],u=D[v-15],Y=D[v-7]+D[v-16]+((X>>>17|X<<15)^(X>>>19|X<<13)^X>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),D[v]=Y),X=S+pB[v]+Y+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&M^~l&w),u=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&z^b&k^z&k),Y=k,k=w,w=Y,Y=z,z=M,M=Y,Y=b,b=l,l=Y,S=K+X,K=X+u,v++;Q.B[0]=K+Q.B[0]|0;Q.B[1]=l+Q.B[1]|0;Q.B[2]=M+Q.B[2]|0;Q.B[3]=
w+Q.B[3]|0;Q.B[4]=S+Q.B[4]|0;Q.B[5]=b+Q.B[5]|0;Q.B[6]=z+Q.B[6]|0;Q.B[7]=k+Q.B[7]|0};
W05=function(Q){var W=new Uint8Array(32),x=64-Q.U;Q.U>55&&(x+=64);var D=new Uint8Array(x);D[0]=128;for(var K=Q.N*8,l=1;l<9;l++){var M=K%256;D[x-l]=M;K=(K-M)/256}Q.update(D);for(x=0;x<8;x++)W[x*4]=Q.B[x]>>>24,W[x*4+1]=Q.B[x]>>>16&255,W[x*4+2]=Q.B[x]>>>8&255,W[x*4+3]=Q.B[x]&255;QG5(Q);return W};
QG5=function(Q){Q.B=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];Q.G=[];Q.G.length=64;Q.N=0;Q.U=0};
xlO=function(Q){this.B=Q};
Dln=function(Q,W,x){Q=new Jp(Q.B);Q.update(W);Q.update(x);W=W05(Q);Q.update(Q.L);Q.update(W);W=W05(Q);Q.reset();return W};
K04=function(Q){this.U=Q};
lD2=function(Q,W,x,D){var K,l,M;return g.U(function(w){switch(w.B){case 1:if(Q.B){w.kf(2);break}return g.A(w,D.importKey("raw",Q.U,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:Q.B=w.U;case 2:return K=new Uint8Array(W.length+x.length),K.set(W),K.set(x,W.length),l={name:"HMAC",hash:"SHA-256"},g.A(w,D.sign(l,Q.B,K),4);case 4:return M=w.U,w.return(new Uint8Array(M))}})};
jG5=function(Q,W,x){Q.D||(Q.D=new xlO(Q.U));return Dln(Q.D,W,x)};
M05=function(Q,W,x){var D,K;return g.U(function(l){if(l.B==1){D=PE();if(!D)return l.return(jG5(Q,W,x));g.P5(l,3);return g.A(l,lD2(Q,W,x,D),5)}if(l.B!=3)return l.return(l.U);K=g.Jv(l);g.Bp(K);nB=!0;return l.return(jG5(Q,W,x))})};
wp5=function(Q){for(var W="",x=0;x<Q.length;x++){var D=Q[x];if(x===0)D="M "+D.x.toFixed(1)+","+D.y.toFixed(1);else{var K=Rwz(Q[x-1],Q[x-2],D),l=Rwz(D,Q[x-1],Q[x+1],!0);D=" C "+(K.x.toFixed(1)+","+K.y.toFixed(1)+" "+l.x.toFixed(1)+","+l.y.toFixed(1)+" "+D.x.toFixed(1)+","+D.y.toFixed(1))}W+=D}return W};
Rwz=function(Q,W,x,D){D=D===void 0?!1:D;W=new SV5(W||Q,x||Q);return{x:Q.x+((D===void 0?0:D)?W.B*-1:W.B)*.2,y:Q.y+((D===void 0?0:D)?W.U*-1:W.U)*.2}};
SV5=function(Q,W){this.U=this.B=0;this.B=W.x-Q.x;this.U=W.y-Q.y};
zwO=function(Q,W){var x,D,K;return g.U(function(l){if(l.B==1)return x={context:g.EH(),settingItemIds:W},D=g.Q_(bh5),g.A(l,g.Ti(Q,x,D),2);K=l.U;return!K||K.errorMetadata?(sGv("GetSettingValuesRequest",K),l.return(void 0)):l.return(K.settingValues)})};
XpD=function(Q,W,x){var D,K,l;g.U(function(M){if(M.B==1)return D={context:g.EH(),settingItemId:W,newValue:x},K=g.Q_(kn4),g.A(M,g.Ti(Q,D,K),2);l=M.U;if(!l||l.errorMetadata)return sGv("SetSettingRequest",l),M.return(void 0);g.VF(M)})};
sGv=function(Q,W){W?W.errorMetadata&&g.Bp(new g.Lw(Q+" failed with status "+W.errorMetadata.status)):g.Bp(new g.Lw(Q+" failed with empty response"))};
hp=function(Q,W,x){if(!W)return Q.length>=1?Q[Q.length-1]:null;for(var D=g.V(Q),K=D.next();!K.done;K=D.next())if(K=K.value,K.width&&K.height&&(x&&K.width>=W||!x&&K.height>=W))return K;for(W=Q.length-1;W>=0;W--)if(x&&Q[W].width||!x&&Q[W].height)return Q[W];return Q[0]};
a9=function(){this.state=1;this.RU=null;this.n2=void 0};
ux1=function(Q,W,x,D,K,l){var M=M===void 0?"trayride":M;x?(Q.wE(2),g.RK(x,function(){if(window[M])oCQ(Q,D,M,K);else{Q.wE(3);var w=qk4(x),S=document.getElementById(w);S&&(Hl1(w),S.parentNode.removeChild(S));g.Bp(new g.Lw("Unable to load Botguard","from "+x))}},l)):W?(l=g.Qz("SCRIPT"),W instanceof cI?(l.textContent=gX(W),yw(l)):l.textContent=W,l.nonce=NZ(document),document.head.appendChild(l),document.head.removeChild(l),window[M]?oCQ(Q,D,M,K):(Q.wE(4),g.Bp(new g.Lw("Unable to load Botguard from JS")))):
g.Bp(new g.Lw("Unable to load VM; no url or JS provided"))};
oCQ=function(Q,W,x,D){Q.wE(5);var K=!!Q.n2&&YVa.includes(g.$X(Q.n2)||"");try{var l=new ok({program:W,globalName:x,mQ:{disable:!g.Pb("att_web_record_metrics")||!g.Pb("att_skip_metrics_for_cookieless_domains_ks")&&K,d5:"aGIf"}});l.KC.then(function(){Q.wE(6);D&&D(W)});
Q.M1(l)}catch(M){Q.wE(7),M instanceof Error&&g.Bp(M)}};
Gf=function(){var Q=g.yF("yt.abuse.playerAttLoader");return Q&&["bgvma","bgvmb","bgvmc"].every(function(W){return W in Q})?Q:null};
dW=function(){a9.apply(this,arguments)};
i1=function(){};
nCl=function(Q,W,x){for(var D=!1,K=g.V(Q.ZE.entries()),l=K.next();!l.done;l=K.next())l=g.V(l.value).next().value,l.slotType==="SLOT_TYPE_PLAYER_BYTES"&&l.Mj==="core"&&(D=!0);if(D){a:if(!x){Q=g.V(Q.ZE.entries());for(x=Q.next();!x.done;x=Q.next())if(D=g.V(x.value),x=D.next().value,D=D.next().value,x.slotType==="SLOT_TYPE_IN_PLAYER"&&x.Mj==="core"){x=D.layoutId;break a}x=void 0}x?W.He(x):sH("No triggering layout ID available when attempting to mute.")}};
Ap=function(Q,W){this.GF=Q;this.i$=W};
HE=function(){};
Uv=function(){};
Pta=function(Q){g.N.call(this);var W=this;this.Y3=Q;this.B=new Map;qb(this,"commandExecutorCommand",function(x,D,K){V0n(W,x.commands,D,K)});
qb(this,"clickTrackingParams",function(){})};
vCa=function(Q,W){qb(Q,W.zL(),function(x,D,K){W.iO(x,D,K)})};
qb=function(Q,W,x){Q.d7();Q.B.get(W)&&g.ql(Error("Extension name "+W+" already registered"));Q.B.set(W,x)};
V0n=function(Q,W,x,D){W=W===void 0?[]:W;Q.d7();var K=[],l=[];W=g.V(W);for(var M=W.next();!M.done;M=W.next())M=M.value,g.e(M,CtF)||g.e(M,Jb2)?K.push(M):l.push(M);K=g.V(K);for(W=K.next();!W.done;W=K.next())BE(Q,W.value,x,D);l=g.V(l);for(K=l.next();!K.done;K=l.next())BE(Q,K.value,x,D)};
BE=function(Q,W,x,D){Q.d7();W.loggingUrls&&ppa(Q,"loggingUrls",W.loggingUrls,x,D);W=g.V(Object.entries(W));for(var K=W.next();!K.done;K=W.next()){var l=g.V(K.value);K=l.next().value;l=l.next().value;K==="openPopupAction"?Q.Y3.get().dc("innertubeCommand",{openPopupAction:l}):K==="confirmDialogEndpoint"?Q.Y3.get().dc("innertubeCommand",{confirmDialogEndpoint:l}):hwl.hasOwnProperty(K)||ppa(Q,K,l,x,D)}};
ppa=function(Q,W,x,D,K){if((Q=Q.B.get(W))&&typeof Q==="function")try{Q(x,D,K)}catch(l){g.ql(l)}else W=new g.Lw("Unhandled field",W),g.Bp(W)};
$t=function(Q,W,x){this.h2=Q;this.B=W;this.vt=x};
I9=function(Q){this.value=Q};
m9=function(Q){this.value=Q};
Nb=function(Q){this.value=Q};
cE=function(Q){this.value=Q};
gW=function(Q){this.value=Q};
ys=function(Q){this.value=Q};
ed=function(Q){this.value=Q};
fB=function(){I9.apply(this,arguments)};
ZN=function(Q){this.value=Q};
LB=function(Q){this.value=Q};
rW=function(Q){this.value=Q};
Tf=function(Q){this.value=Q};
Ov=function(Q){this.value=Q};
Ev=function(Q){this.value=Q};
FC=function(Q){this.value=Q};
tp=function(Q){this.value=Q};
QD=function(Q){this.value=Q};
Wr=function(Q){this.value=Q};
xj=function(){I9.apply(this,arguments)};
Db=function(Q){this.value=Q};
KY=function(Q){this.value=Q};
la=function(Q){this.value=Q};
Mj=function(Q){this.value=Q};
RF=function(Q){this.value=Q};
wa=function(Q){this.value=Q};
Sa=function(Q){this.value=Q};
ba=function(Q){this.value=Q};
sQ=function(Q){this.value=Q};
z6=function(Q){this.value=Q};
kj=function(Q){this.value=Q};
Xu=function(Q){this.value=Q};
oF=function(Q){this.value=Q};
ua=function(Q){this.value=Q};
Yj=function(Q){this.value=Q};
nY=function(Q){this.value=Q};
VD=function(Q){this.value=Q};
Pr=function(Q){this.value=Q};
vr=function(Q){this.value=Q};
CY=function(Q){this.value=Q};
JX=function(Q){this.value=Q};
pY=function(Q){this.value=Q};
hX=function(Q){this.value=Q};
aF=function(Q){this.value=Q};
G6=function(Q){this.value=Q};
da=function(Q){this.value=Q};
ia=function(Q){this.value=Q};
AX=function(Q){this.value=Q};
Hr=function(Q){this.value=Q};
UQ=function(Q){this.value=Q};
qj=function(Q){this.value=Q};
Br=function(Q){this.value=Q};
IF=function(Q){this.value=Q};
mG=function(Q){this.value=Q};
Nj=function(Q){this.value=Q};
cr=function(Q){this.value=Q};
yD=function(Q){this.value=Q};
ea=function(Q){this.value=Q};
fY=function(){I9.apply(this,arguments)};
Zb=function(Q){this.value=Q};
LY=function(){I9.apply(this,arguments)};
ra=function(){I9.apply(this,arguments)};
T6=function(){I9.apply(this,arguments)};
OQ=function(){I9.apply(this,arguments)};
EQ=function(){I9.apply(this,arguments)};
Fu=function(Q){this.value=Q};
tX=function(Q){this.value=Q};
Qm=function(Q){this.value=Q};
Wq=function(Q){this.value=Q};
xz=function(Q){this.value=Q};
Kd=function(Q,W,x){if(x&&!x.includes(Q.layoutType))return!1;W=g.V(W);for(x=W.next();!x.done;x=W.next())if(!Du(Q.clientMetadata,x.value))return!1;return!0};
lS=function(){return""};
aDn=function(Q,W){switch(Q){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 W(Q),8}};
jX=function(Q,W,x,D){D=D===void 0?!1:D;n5.call(this,Q);this.yk=x;this.P2=D;this.args=[];W&&this.args.push(W)};
E=function(Q,W,x,D){D=D===void 0?!1:D;n5.call(this,Q);this.yk=x;this.P2=D;this.args=[];W&&this.args.push(W)};
Mp=function(Q){var W=new Map;Q.forEach(function(x){W.set(x.getType(),x)});
this.B=W};
Du=function(Q,W){return Q.B.has(W)};
RE=function(Q,W){Q=Q.B.get(W);if(Q!==void 0)return Q.get()};
wO=function(Q){return Array.from(Q.B.keys())};
SX=function(Q,W,x){if(x&&x!==Q.slotType)return!1;W=g.V(W);for(x=W.next();!x.done;x=W.next())if(!Du(Q.clientMetadata,x.value))return!1;return!0};
dl5=function(Q){var W;return((W=Gnl.get(Q))==null?void 0:W.vg)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
sL=function(Q,W){var x={type:W.slotType,controlFlowManagerLayer:ih1.get(W.Mj)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W.slotEntryTrigger&&(x.entryTriggerType=W.slotEntryTrigger.triggerType);W.slotPhysicalPosition!==1&&(x.slotPhysicalPosition=W.slotPhysicalPosition);if(Q){x.debugData={slotId:W.slotId};if(Q=W.slotEntryTrigger)x.debugData.slotEntryTriggerData=bS(Q);Q=W.slotFulfillmentTriggers;x.debugData.fulfillmentTriggerData=[];Q=g.V(Q);for(var D=Q.next();!D.done;D=Q.next())x.debugData.fulfillmentTriggerData.push(bS(D.value));
W=W.slotExpirationTriggers;x.debugData.expirationTriggerData=[];W=g.V(W);for(Q=W.next();!Q.done;Q=W.next())x.debugData.expirationTriggerData.push(bS(Q.value))}return x};
Aba=function(Q,W){var x={type:W.layoutType,controlFlowManagerLayer:ih1.get(W.Mj)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Q&&(x.debugData={layoutId:W.layoutId});return x};
bS=function(Q,W){var x={type:Q.triggerType};W!=null&&(x.category=W);Q.triggeringSlotId!=null&&(x.triggerSourceData||(x.triggerSourceData={}),x.triggerSourceData.associatedSlotId=Q.triggeringSlotId);Q.triggeringLayoutId!=null&&(x.triggerSourceData||(x.triggerSourceData={}),x.triggerSourceData.associatedLayoutId=Q.triggeringLayoutId);return x};
Hhl=function(Q,W,x,D){W={opportunityType:W};Q&&(D||x)&&(D=g.pm(D||[],function(K){return sL(Q,K)}),W.debugData=Object.assign({},x&&x.length>0?{associatedSlotId:x}:{},D.length>0?{slots:D}:{}));
return W};
kz=function(Q,W){return function(x){return Ul1(z_(Q),W.slotId,W.slotType,W.slotPhysicalPosition,W.Mj,W.slotEntryTrigger,W.slotFulfillmentTriggers,W.slotExpirationTriggers,x.layoutId,x.layoutType,x.Mj)}};
Ul1=function(Q,W,x,D,K,l,M,w,S,b,z){return{adClientDataEntry:{slotData:sL(Q,{slotId:W,slotType:x,slotPhysicalPosition:D,Mj:K,slotEntryTrigger:l,slotFulfillmentTriggers:M,slotExpirationTriggers:w,clientMetadata:new Mp([])}),layoutData:Aba(Q,{layoutId:S,layoutType:b,Mj:z,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],bN:new Map,clientMetadata:new Mp([]),EV:{}})}}};
oE=function(Q){this.yj=Q;Q=Math.random();var W=this.yj.get();W=g.X0(W.J.C().experiments,"html5_debug_data_log_probability");W=Number.isFinite(W)&&W>=0&&W<=1?W:0;this.B=Q<W};
z_=function(Q){return Q.B||Q.yj.get().J.C().j("html5_force_debug_data_for_client_tmp_logs")};
uS=function(Q,W,x,D){g.N.call(this);this.U=W;this.vN=x;this.yj=D;this.B=Q(this,this,this,this,this);g.y(this,this.B);Q=g.V(W);for(W=Q.next();!W.done;W=Q.next())g.y(this,W.value)};
Yz=function(Q,W){Q.U.add(W)};
nd=function(Q,W){Q.U.delete(W)};
Pq=function(Q,W,x,D){sH(x,W,void 0,void 0,x.P2);x.yk?Q.vN.xR(D,x.yk,W):sH("adsClientErrorMessage is missing.",W);Vm(Q,W,!0)};
BNh=function(Q,W,x){if(vq(Q.B,W))if(Cd(Q.B,W).N=x?"filled":"not_filled",x===null){Q.vN.C3("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",W);x=g.V(Q.U);for(var D=x.next();!D.done;D=x.next())D.value.kN(W);Vm(Q,W,!1)}else{Q.vN.C3("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",W,x);Q.vN.C3("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",W,x);var K,l=(K=x.Zm)!=null?K:RE(x.clientMetadata,"metadata_type_sub_layouts");if(l)for(K=g.V(l),l=K.next();!l.done;l=K.next())Q.vN.C3("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",
W,l.value);K=g.V(Q.U);for(l=K.next();!l.done;l=K.next())l.value.f3(W);if(vq(Q.B,W))if(Cd(Q.B,W).L)Vm(Q,W,!1);else{Q.vN.C3("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",W,x);try{D=Q.B;if(!Cd(D,W))throw new jX("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!D.Xi.mN.get(W.slotType))throw new jX("No LayoutRenderingAdapterFactory registered for slot of type: "+W.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");
if(x.layoutExitNormalTriggers.length==0&&x.layoutExitSkipTriggers.length==0&&x.layoutExitMuteTriggers.length==0&&x.layoutExitUserInputSubmittedTriggers.length==0&&x.dE.length==0)throw new jX("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");Js(D,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",x.layoutExitNormalTriggers);Js(D,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",x.layoutExitSkipTriggers);Js(D,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",x.layoutExitMuteTriggers);
Js(D,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",x.layoutExitUserInputSubmittedTriggers);Js(D,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",x.dE)}catch(b){b instanceof jX?Q.Ce(W,x,b,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):Q.Ce(W,x,new jX("Unexpected error: "+b,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");Vm(Q,W,!0);return}Cd(Q.B,W).X=!0;try{var M=Q.B,w=Cd(M,W),S=M.Xi.mN.get(W.slotType).get().build(M.N,M.U,W,x);S.init();w.layout=
x;if(w.D)throw new jX("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");w.D=S;pd(M,w,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",x.layoutExitNormalTriggers);pd(M,w,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",x.layoutExitSkipTriggers);pd(M,w,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",x.layoutExitMuteTriggers);pd(M,w,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",x.layoutExitUserInputSubmittedTriggers);pd(M,w,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",
x.dE)}catch(b){hs(Q,W);b instanceof jX?Q.Ce(W,x,b,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):Q.Ce(W,x,new jX("Unexpected error: "+b,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");Vm(Q,W,!0);return}Q.vN.C3("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",W,x);D=g.V(Q.U);for(M=D.next();!M.done;M=D.next())M.value.hK(W,x);hs(Q,W);qV5(Q,W)}else Q=Q.yj.get(),g.aE(Q.J.C())||G_(Q.J.C())||g.dO(Q.J.C())?Q=!0:(sH("Composite VOD on legacy path."),Q=!1),Q&&sH("slot is unscheduled after been fulfilled.",
W,x)}};
$lF=function(Q,W,x){W.Mj!=="core"&&Q.vN.C3("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",W,x,void 0)};
IDD=function(Q,W,x){Q.vN.C3("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",W,x,void 0);Q=g.V(Q.U);for(var D=Q.next();!D.done;D=Q.next())D.value.hK(W,x)};
mlz=function(Q,W,x){Q=g.V(Q.U);for(var D=Q.next();!D.done;D=Q.next())D.value.xY(W,x)};
iS=function(Q,W,x){Q.vN.C3("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",W,x,void 0);Q=g.V(Q.U);for(var D=Q.next();!D.done;D=Q.next())D.value.HN(W,x)};
As=function(Q,W,x,D){Q.vN.C3(dl5(D),W,x,void 0);Q=g.V(Q.U);for(var K=Q.next();!K.done;K=Q.next())K.value.BD(W,x,D)};
hs=function(Q,W){if(vq(Q.B,W)){Cd(Q.B,W).X=!1;var x=Hq;W=Cd(Q.B,W);var D=[].concat(g.C(W.S));EQO(W.S);x(Q,D)}};
Hq=function(Q,W){W.sort(function(l,M){function w(S){sH("TriggerCategoryOrder enum does not contain trigger category: "+S)}
return l.category===M.category?l.trigger.triggerId.localeCompare(M.trigger.triggerId):aDn(l.category,w)-aDn(M.category,w)});
var x=new Map;W=g.V(W);for(var D=W.next();!D.done;D=W.next())if(D=D.value,vq(Q.B,D.slot))if(Cd(Q.B,D.slot).X)Cd(Q.B,D.slot).S.push(D);else{Q.vN.wF("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",D.slot,D,D.layout);var K=x.get(D.category);K||(K=[]);K.push(D);x.set(D.category,K)}W=g.V(NNl);for(D=W.next();!D.done;D=W.next())K=g.V(D.value),D=K.next().value,K=K.next().value,(D=x.get(D))&&cb5(Q,D,K);(W=x.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&gCv(Q,W);(W=x.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&ybl(Q,
W);(x=x.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&ews(Q,x)};
cb5=function(Q,W,x){W=g.V(W);for(var D=W.next();!D.done;D=W.next())D=D.value,D.layout&&UL(Q.B,D.slot)&&fDl(Q,D.slot,D.layout,x)};
gCv=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next())Vm(Q,x.value.slot,!1)};
ybl=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next()){x=x.value;a:switch(Cd(Q.B,x.slot).N){case "not_filled":var D=!0;break a;default:D=!1}D&&(Q.vN.t4("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",x.slot),Q.B.TO(x.slot))}};
ews=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next()){x=x.value;Q.vN.t4("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",x.slot);for(var D=g.V(Q.U),K=D.next();!K.done;K=D.next())K.value.K3(x.slot);try{var l=Q.B,M=x.slot,w=Cd(l,M);if(!w)throw new E("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!w.U)throw new E("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(w.B!=="scheduled")throw new E("Tried to enter a slot from stage: "+
w.B,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(qp(w))throw new E("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var S=g.V(Bq(l,M.slotType+"_"+M.slotPhysicalPosition).values()),b=S.next();!b.done;b=S.next()){var z=b.value;if(w!==z&&qp(z))throw new E("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:z.B},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(k){k instanceof E&&k.yk?(Q.vN.xR("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
k.yk,x.slot),sH(k,x.slot,$z(Q.B,x.slot),void 0,k.P2)):(Q.vN.xR("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",x.slot),sH(k,x.slot));Vm(Q,x.slot,!0);continue}x=Cd(Q.B,x.slot);x.B!=="scheduled"&&IE(x.slot,x.B,"enterSlot");x.B="enter_requested";x.U.zv()}};
qV5=function(Q,W){if(vq(Q.B,W)&&qp(Cd(Q.B,W))&&$z(Q.B,W)&&!UL(Q.B,W)){var x;Q.vN.C3("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",W,(x=$z(Q.B,W))!=null?x:void 0);Q=Cd(Q.B,W);Q.B!=="entered"&&IE(Q.slot,Q.B,"enterLayoutForSlot");Q.B="rendering";Q.D.startRendering(Q.layout)}};
fDl=function(Q,W,x,D){if(vq(Q.B,W)){var K=Q.vN,l=K.C3,M;var w=((M=Gnl.get(D))==null?void 0:M.yV)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";l.call(K,w,W,x);Q=Cd(Q.B,W);Q.B!=="rendering"&&IE(Q.slot,Q.B,"exitLayout");Q.B="rendering_stop_requested";Q.D.An(x,D)}};
Vm=function(Q,W,x){if(vq(Q.B,W)){a:switch(Cd(Q.B,W).B){case "exit_requested":var D=!0;break a;default:D=!1}if(!D)a:switch(Cd(Q.B,W).B){case "rendering_stop_requested":D=!0;break a;default:D=!1}if(D&&(Cd(Q.B,W).L=!0,!x))return;if(qp(Cd(Q.B,W)))Cd(Q.B,W).L=!0,Zhs(Q,W,x);else{a:switch(Cd(Q.B,W).N){case "fill_requested":x=!0;break a;default:x=!1}if(x)Cd(Q.B,W).L=!0,vq(Q.B,W)&&(Q.vN.t4("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",W),W=Cd(Q.B,W),W.N="fill_cancel_requested",W.G.vX());else{x=
$z(Q.B,W);(D=Q.yj.get().J.C().experiments.ij("h5_enable_layout_unscheduling_events"))&&(x?Q.xY(W,x):sH(Error("Layout is null for LayoutUnscheduled event."),W,x,void 0,!1));Q.vN.t4("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",W);var K=Cd(Q.B,W),l=W.slotEntryTrigger,M=K.F3.get(l.triggerId);M&&(M.O8(l),K.F3.delete(l.triggerId));l=g.V(W.slotFulfillmentTriggers);for(M=l.next();!M.done;M=l.next()){M=M.value;var w=K.uj.get(M.triggerId);w&&(w.O8(M),K.uj.delete(M.triggerId))}l=g.V(W.slotExpirationTriggers);
for(M=l.next();!M.done;M=l.next())if(M=M.value,w=K.T.get(M.triggerId))w.O8(M),K.T.delete(M.triggerId);K.layout!=null&&(l=K.layout,mK(K,l.layoutExitNormalTriggers),mK(K,l.layoutExitSkipTriggers),mK(K,l.layoutExitMuteTriggers),mK(K,l.layoutExitUserInputSubmittedTriggers),mK(K,l.dE));K.G=void 0;K.U!=null&&(K.U.release(),K.U=void 0);K.D!=null&&(K.D.release(),K.D=void 0);K=Q.B;Cd(K,W)&&(K=Bq(K,W.slotType+"_"+W.slotPhysicalPosition))&&K.delete(W.slotId);Q.vN.t4("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
W);Q=g.V(Q.U);for(K=Q.next();!K.done;K=Q.next())K=K.value,K.Qv(W),x&&!D&&K.xY(W,x)}}}};
Zhs=function(Q,W,x){if(vq(Q.B,W)&&qp(Cd(Q.B,W))){var D=$z(Q.B,W);if(D&&UL(Q.B,W))fDl(Q,W,D,x?"error":"abandoned");else{Q.vN.t4("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",W);try{var K=Cd(Q.B,W);if(!K)throw new E("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");K.B!=="enter_requested"&&K.B!=="entered"&&K.B!=="rendering"&&IE(K.slot,K.B,"exitSlot");K.B="exit_requested";if(K.U===void 0)throw K.B="scheduled",new E("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");K.U.RS()}catch(l){l instanceof E&&l.yk?(Q.vN.xR("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",l.yk,W),sH(l,W,void 0,void 0,l.P2)):(Q.vN.xR("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",W),sH(l,W))}}}};
L0v=function(Q){this.slot=Q;this.F3=new Map;this.uj=new Map;this.T=new Map;this.pS=new Map;this.D=this.layout=this.U=this.G=void 0;this.X=this.L=!1;this.S=[];this.B="not_scheduled";this.N="not_filled"};
qp=function(Q){return Q.B==="enter_requested"||Q.isActive()};
Np=function(Q,W,x,D,K,l){g.N.call(this);this.Xi=Q;this.D=W;this.L=x;this.N=D;this.U=K;this.yj=l;this.B=new Map};
Bq=function(Q,W){return(Q=Q.B.get(W))?Q:new Map};
Cd=function(Q,W){return Bq(Q,W.slotType+"_"+W.slotPhysicalPosition).get(W.slotId)};
rbz=function(Q){var W=[];Q.B.forEach(function(x){x=g.V(x.values());for(var D=x.next();!D.done;D=x.next())W.push(D.value.slot)});
return W};
vq=function(Q,W){return Cd(Q,W)!=null};
UL=function(Q,W){Q=Cd(Q,W);if(W=Q.layout!=null)a:switch(Q.B){case "rendering":case "rendering_stop_requested":W=!0;break a;default:W=!1}return W};
$z=function(Q,W){(Q=Cd(Q,W))?Q.layout!=null&&!Q.layout&&sH("Unexpected empty layout",W):sH("Unexpected undefined slotState",W);return(Q==null?void 0:Q.layout)||null};
cq=function(Q,W,x){if(x.length==0)throw new E("No "+TN1.get(W)+" triggers found for slot.",void 0,Oh4(W));x=g.V(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,!Q.Xi.SD.get(D.triggerType))throw new E("No trigger adapter registered for "+W+" trigger of type: "+D.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
Oh4=function(Q){switch(Q){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"}};
Js=function(Q,W,x){x=g.V(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,!Q.Xi.SD.get(D.triggerType))throw new jX("No trigger adapter registered for "+TN1.get(W)+" trigger of type: "+D.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
pd=function(Q,W,x,D){D=g.V(D);for(var K=D.next();!K.done;K=D.next()){K=K.value;var l=Q.Xi.SD.get(K.triggerType);l.Mq(x,K,W.slot,W.layout?W.layout:null);W.pS.set(K.triggerId,l)}};
mK=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next()){x=x.value;var D=Q.pS.get(x.triggerId);D&&(D.O8(x),Q.pS.delete(x.triggerId))}};
IE=function(Q,W,x){sH("Slot stage was "+W+" when calling method "+x,Q)};
EC2=function(Q){return gO(Q.GU).concat(gO(Q.SD)).concat(gO(Q.Yl)).concat(gO(Q.C0)).concat(gO(Q.mN))};
gO=function(Q){var W=[];Q=g.V(Q.values());for(var x=Q.next();!x.done;x=Q.next())x=x.value,x.WI&&W.push(x);return W};
ym=function(Q){g.N.call(this);var W=this;this.B=Q;this.instance=null;this.addOnDisposeCallback(function(){g.w1(W.instance);W.instance=null})};
eX=function(Q){return new ym(Q)};
fd=function(Q){g.N.call(this);this.B=Q;this.U=F0O(this)};
F0O=function(Q){var W=new uS(function(x,D,K,l){return new Np(Q.B.Xi,x,D,K,l,Q.B.yj)},new Set(EC2(Q.B.Xi).concat(Q.B.listeners)),Q.B.vN,Q.B.yj);
g.y(Q,W);return W};
Zu=function(Q){this.B=Q};
Ld=function(Q,W,x){V0n(Q.B(),W,x)};
rO=function(Q,W,x,D){(Q=Q.B())||sH("Could not initiate a command router instance.");BE(Q,W,x,D)};
T_=function(){this.listeners=new Set};
OL=function(Q){this.yj=Q};
t0a=function(Q,W){var x=W.bgp&&W.bgub,D=!!W.upb;W.siub&&W.scs&&(x||D)&&(D&&EL(Q.yj.get(),"html5_export_sodar_snapshot")?Gd().then(function(K){K=K.snapshot.bind(K);g.g4("yt.abuse.playerAttLoaderRun",K);jBv(W.siub,W.scs,W.bgub,W.bgp,W.upb)}):jBv(W.siub,W.scs,W.bgub,W.bgp,W.upb))};
Qda=function(Q,W,x,D,K){this.callback=Q;this.slot=W;this.U=x;this.PV=D;this.yj=K;this.B=null};
xAv=function(Q,W,x,D){Q.B&&sH("Currently active request ongoing for slot. This should never happen",Q.slot);Q.B=W();Q.B.then(function(K){Q.B=null;D&&D(K);var l=K.vU?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",M=Q.U.get(),w=Q.slot.slotId,S=kz(Q.PV.get(),{slotId:Q.slot.slotId,slotType:Q.slot.slotType,slotPhysicalPosition:Q.slot.slotPhysicalPosition,Mj:Q.slot.Mj,slotEntryTrigger:Q.slot.slotEntryTrigger,slotFulfillmentTriggers:Q.slot.slotFulfillmentTriggers,slotExpirationTriggers:Q.slot.slotExpirationTriggers}),
b=F0(M.U.get(),l,w),z={layoutId:b,layoutType:l,Mj:"core"};K={layoutId:b,layoutType:l,bN:new Map,layoutExitNormalTriggers:[new WYD(M.B,w)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:new Mp([new Nj(K)]),EV:S(z)};BNh(Q.callback,Q.slot,K)},function(K){Q.B=null;
x&&x();K instanceof P_||Pq(Q.callback,Q.slot,new E(K,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
DA5=function(Q){if(Q.B==null)Q.callback.b4(Q.slot);else try{Q.B.cancel(),Q.B=null,Q.callback.b4(Q.slot)}catch(W){Q.B=null,Pq(Q.callback,Q.slot,new E(W,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
ts=function(Q,W,x,D){!Q&&(x===void 0?0:x)&&g.Bp(Error("Player URL validator detects invalid url. "+(D===void 0?"":D)+": "+W));return Q};
Q8=function(Q,W){return W&&W.test(Q)?!0:!1};
WP=function(Q){return(Q=KY2&&KY2.exec(Q))?Q[0]:""};
x4=function(Q){var W=W===void 0?!1:W;return ts(Q8(Q,lIh),Q,W,"Trusted Stream URL")};
g.Dk=function(Q){var W=W===void 0?!1:W;return ts(Q8(Q,jd2),Q,W,"Trusted Image URL")};
Rs2=function(Q){var W=W===void 0?!1:W;return ts(Q8(Q,Mt5),Q,W,"Trusted Promoted Video Domain URL")};
SPO=function(Q){var W=W===void 0?!1:W;return ts(Q8(Q,w44),Q,W,"Drm Licensor URL")};
sdv=function(Q,W){W=W===void 0?!1:W;return ts(Q8(Q,bVz),Q,W,"Captions URL")};
zs5=function(Q){Q=new g.Sr(Q);g.bT(Q,document.location.protocol);g.s1(Q,document.location.hostname);document.location.port&&g.zY(Q,document.location.port);return Q.toString()};
KD=function(Q){Q=new g.Sr(Q);g.bT(Q,document.location.protocol);return Q.toString()};
g.jz=function(Q,W,x){x=x===void 0?{}:x;this.start=Q;this.end=W;this.active=!0;this.color="";this.wm=0;this.U=ke2++;this.id=x.id||"";this.priority=x.priority||9;this.visible=x.visible||!1;this.style=x.style||ld.AD_MARKER;this.namespace=x.namespace||"";if(Q=x.color)Q=Q.toString(16),this.color="#"+Array(7-Q.length).join("0")+Q;this.tooltip=x.tooltip;this.icons=x.icons?x.icons.filter(function(D){return g.h8(D.thumbnails,function(K){return g.Dk(K.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
X45=function(Q){return Q===-0x8000000000000?"BEFORE_MEDIA_START":Q===0?"MEDIA_START":Q===0x7ffffffffffff?"MEDIA_END":Q===0x8000000000000?"AFTER_MEDIA_END":Q.toString()};
o_D=function(Q,W){switch(Q.style){case ld.CHAPTER_MARKER:return W?8:5;case ld.AD_MARKER:return 6;case ld.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.M_=function(Q,W){return Q.start-W.start||Q.priority-W.priority||Q.U-W.U};
g.Ru=function(Q){return"crn_"+Q};
g.wt=function(Q){return"crx_"+Q};
Sz=function(Q,W,x,D,K,l,M,w,S){this.slot=W;this.U=x;this.vt=M;this.Jf=w;this.x3=S;this.B=new Qda(Q,W,D,K,l)};
u32=function(Q){var W;(W=Q.x3)==null||W.get().gJ(RE(Q.slot.clientMetadata,"metadata_type_cue_point").identifier)};
bd=function(Q,W,x,D,K,l){this.slot=W;this.B=x;this.U=new Qda(Q,W,D,K,l)};
sp=function(Q,W){this.callback=Q;this.slot=W};
z5=function(Q,W){return SX(Q,W.xD,W.slotType)?!0:!1};
k4=function(){};
XX=function(Q,W,x,D,K,l,M){this.B=Q;this.U=W;this.PV=x;this.yj=D;this.vt=K;this.Jf=l;this.x3=M};
ou=function(){};
YPO=function(Q,W,x,D,K,l){this.callback=Q;this.slot=W;this.layout=x;this.D=D;this.B=K;this.U=l};
Vtz=function(Q){if(RE(Q.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var W=n_F(Q,Q.slot);ud(Q.B.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[W]})}};
PeO=function(Q){if(RE(Q.slot.clientMetadata,"metadata_type_prefetch_metadata")){var W=n_F(Q,Q.slot);ud(Q.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[W]})}};
n_F=function(Q,W){var x=Y4(Q.U.get(),Q.slot.slotType),D=Object,K=D.assign;Q=Q.slot;if(W.slotEntryTrigger){var l=W.slotId;var M=W.slotEntryTrigger;l=M.triggeringSlotId!=null&&M.triggeringSlotId===l?M.clone(x):M}else l=void 0;return K.call(D,{},Q,{slotId:x,slotEntryTrigger:l,slotFulfillmentTriggers:v_5(W.slotId,x,W.slotFulfillmentTriggers),slotExpirationTriggers:v_5(W.slotId,x,W.slotExpirationTriggers)})};
v_5=function(Q,W,x){var D=[];x=g.V(x);for(var K=x.next();!K.done;K=x.next()){var l=D,M=l.push;var w=Q;var S=W;K=K.value;w=K.triggeringSlotId!=null&&K.triggeringSlotId===w?K.clone(S):K;M.call(l,w)}return D};
g.nD=function(Q,W){for(var x=g.V(Object.keys(W)),D=x.next(),K={};!D.done;K={placeholder:void 0},D=x.next())D=D.value,K.placeholder=W[D],Q=Q.replace(new RegExp("\\$"+D,"gi"),function(l){return function(){return l.placeholder}}(K));
return Q};
Cen=function(Q,W,x){this.B=Q;this.slot=W;this.layout=x};
V8=function(Q,W,x){W.layoutId!==Q.layout.layoutId?Q.B.Ce(Q.slot,W,new jX("Unknown layout received. Required LayoutId: "+Q.layout.layoutId+("and LayoutType: "+Q.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):x()};
PP=function(Q,W,x,D){g.Rd.call(this);this.callback=Q;this.D=D;this.B=[];this.U=new Cen(Q,W,x)};
CD=function(Q,W,x,D,K,l,M,w){D=D||RE(x.clientMetadata,l);Q=vP(Q);var S=zD(function(){K.HN(W,x)});
w.push(M(D,Q,x.layoutId,{adsClientData:x.EV},function(){S()}))};
pD=function(Q,W,x,D,K,l,M,w,S){if(W===Q)if(S){if(S===w.layoutId){a:{Q=g.V(x.keys());for(W=Q.next();!W.done;W=Q.next())if(W=W.value,W.slotType==="SLOT_TYPE_PLAYER_BYTES"&&l===x.get(W).layoutId){x=!0;break a}x=!1}x?JD(D,1):K?K():sH("Tried to call engagePingCallback but it is null",M,w)}}else sH("Companion AdUxClick received without a layoutId",M,w)};
hD=function(Q){var W,x,D,K,l;return!((W=Q.get("active_view_viewable"))==null||!W.length)||!((x=Q.get("active_view_measurable"))==null||!x.length)||!((D=Q.get("active_view_fully_viewable_audible_half_duration"))==null||!D.length)||!((K=Q.get("audio_audible"))==null||!K.length)||!((l=Q.get("audio_measurable"))==null||!l.length)};
au=function(Q){var W,x;return(x=Q==null?void 0:(W=Q.activeViewTracking)==null?void 0:W.trafficType)!=null?x:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
J_Q=function(Q){var W;return Q==null?void 0:(W=Q.activeViewTracking)==null?void 0:W.identifier};
G5=function(Q){var W,x;return new Map([["impression",Q.impressionPings||[]],["error",Q.errorPings||[]],["mute",Q.mutePings||[]],["unmute",Q.unmutePings||[]],["pause",Q.pausePings||[]],["rewind",Q.rewindPings||[]],["resume",Q.resumePings||[]],["skip",Q.skipPings||[]],["swipe",Q.swipePings||[]],["close",Q.closePings||[]],["progress",Q.progressPings||[]],["clickthrough",Q.clickthroughPings||[]],["fullscreen",Q.fullscreenPings||[]],["active_view_viewable",Q.activeViewViewablePings||[]],["active_view_measurable",
Q.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",Q.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((W=Q.activeViewTracking)==null?void 0:W.activeViewAudioAudiblePings)||[]],["audio_measurable",((x=Q.activeViewTracking)==null?void 0:x.activeViewAudioMeasurablePings)||[]],["end_fullscreen",Q.endFullscreenPings||[]],["channel_clickthrough",Q.channelClickthroughPings||[]],["abandon",Q.abandonPings||[]],["start",Q.startPings||[]],["first_quartile",
Q.firstQuartilePings||[]],["midpoint",Q.secondQuartilePings||[]],["third_quartile",Q.thirdQuartilePings||[]],["complete",Q.completePings||[]],["unmuted_impression",Q.unmutedImpressionPings||[]],["unmuted_error",Q.unmutedErrorPings||[]],["unmuted_mute",Q.unmutedMutePings||[]],["unmuted_unmute",Q.unmutedUnmutePings||[]],["unmuted_pause",Q.unmutedPausePings||[]],["unmuted_resume",Q.unmutedResumePings||[]],["unmuted_close",Q.unmutedClosePings||[]],["unmuted_progress",Q.unmutedProgressPings||[]],["unmuted_clickthrough",
Q.unmutedClickthroughPings||[]],["unmuted_fullscreen",Q.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",Q.unmutedEndFullscreenPings||[]],["unmuted_abandon",Q.unmutedAbandonPings||[]],["unmuted_start",Q.unmutedStartPings||[]],["unmuted_first_quartile",Q.unmutedFirstQuartilePings||[]],["unmuted_midpoint",Q.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",Q.unmutedThirdQuartilePings||[]],["unmuted_complete",Q.unmutedCompletePings||[]],["unmuted_skip",Q.unmutedSkipPings||[]]])};
p4v=function(Q){switch(Q){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}};
dt=function(Q,W,x,D,K){K=K===void 0?null:K;this.D=Q;this.vt=W;this.layoutId=D;this.N=0;this.X=null;this.L=void 0;this.B=new Set;this.U=Array.from(this.D.get("progress")||[]);this.U.sort(function(l,M){return(l.offsetMilliseconds||0)-(M.offsetMilliseconds||0)});
this.G={adPlacementConfig:x,Z9:K}};
id=function(){return["metadata_type_ad_placement_config"]};
vP=function(Q){var W=Q.vt.get();return AD(W,Q.G)};
Up=function(Q,W,x){x=x===void 0?!1:x;Q.B.has(W)?HP(Q,W,[]):Q.zn(W,x)};
q_=function(Q,W,x){for(x=x===void 0?!1:x;Q.N<Q.U.length;){var D=Q.U[Q.N];if(D.offsetMilliseconds<=W||x)HP(Q,"progress",[D]),Q.N++;else break}};
BP=function(Q,W){return Q.B.has(W)};
$4=function(Q){return Q.U.every(function(W){return W.hasOwnProperty("offsetMilliseconds")})};
hsl=function(Q,W,x){Q.X=W;Q.L=x};
HP=function(Q,W,x){var D;aI5(Q.vt.get(),Q.layoutId,W,x,(D=Q.X)!=null?D:void 0,Q.L)};
GeQ=function(Q,W,x,D,K){MA.call(this,"ads-engagement-panel-layout",Q,W,x,D,K)};
Iu=function(Q,W,x,D,K,l,M,w){PP.call(this,Q,W,x,D);this.vt=K;this.PN=l;this.X=w;this.WI=!0;this.N=null;this.L=RE(x.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Yz(this.PN(),this);Q=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,Q,x.layoutId)};
dAD=function(){var Q=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];id().forEach(function(W){Q.push(W)});
return{xD:Q,wP:["LAYOUT_TYPE_PANEL"]}};
iVQ=function(Q,W,x,D,K){MA.call(this,"banner-image",Q,W,x,D,K)};
ms=function(Q,W,x,D,K,l,M,w){PP.call(this,Q,W,x,D);this.vt=K;this.PN=l;this.X=w;this.WI=!0;this.N=null;this.L=RE(x.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Yz(this.PN(),this);this.adPlacementConfig=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,this.adPlacementConfig,x.layoutId)};
A_4=function(){var Q=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];id().forEach(function(W){Q.push(W)});
return{xD:Q,wP:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
N_=function(Q,W,x,D,K){MA.call(this,"action-companion",Q,W,x,D,K)};
cP=function(Q,W,x,D,K,l,M,w){PP.call(this,Q,W,x,D);this.vt=K;this.PN=l;this.X=w;this.WI=!0;this.N=null;this.L=RE(x.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Yz(this.PN(),this);Q=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,Q,x.layoutId)};
HV2=function(){var Q=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];id().forEach(function(W){Q.push(W)});
return{xD:Q,wP:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
UAD=function(Q,W,x,D,K){MA.call(this,"image-companion",Q,W,x,D,K)};
gt=function(Q,W,x,D,K,l,M,w){PP.call(this,Q,W,x,D);this.vt=K;this.PN=l;this.X=w;this.WI=!0;this.N=null;this.L=RE(x.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Yz(this.PN(),this);Q=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,Q,x.layoutId)};
qPz=function(){var Q=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];id().forEach(function(W){Q.push(W)});
return{xD:Q,wP:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
BnQ=function(Q,W,x,D,K){MA.call(this,"shopping-companion",Q,W,x,D,K)};
y8=function(Q,W,x,D,K,l,M,w){PP.call(this,Q,W,x,D);this.vt=K;this.PN=l;this.X=w;this.WI=!0;this.N=null;this.L=RE(x.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Yz(this.PN(),this);Q=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,Q,x.layoutId)};
$As=function(){var Q=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];id().forEach(function(W){Q.push(W)});
return{xD:Q,wP:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
IIh=function(Q){var W;if(((W=Q.adVideoOffset)==null?void 0:W.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var x;return((x=Q.adVideoOffset)==null?void 0:x.percent)!=null};
mAa=function(Q){var W;if(((W=Q.adVideoOffset)==null?void 0:W.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var x;return((x=Q.adVideoOffset)==null?void 0:x.milliseconds)!=null&&!isNaN(Number(Q.adVideoOffset.milliseconds))};
Nnv=function(Q,W,x,D){this.JO=Q;this.layoutId=x;this.L=D;this.U=[];this.B=[];this.D=this.N=0;Q=g.V(W);for(W=Q.next();!W.done;W=Q.next())switch(W=W.value,x=void 0,(x=W.adVideoOffset)==null?void 0:x.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":IIh(W)?this.U.push(W):sH("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":mAa(W)?this.B.push(W):sH("Invalid AdVideoProgressMillisecondsCommand");break;default:sH("Unknown or invalid AdVideoProgressOffSet kind")}this.U.sort(function(K,
l){return K.adVideoOffset.percent-l.adVideoOffset.percent});
this.B.sort(function(K,l){return Number(K.adVideoOffset.milliseconds)-Number(l.adVideoOffset.milliseconds)})};
ez=function(Q,W,x){x=x===void 0?!1:x;var D=Q.L();if(D){for(;Q.N<Q.U.length;){var K=Q.U[Q.N];if(K.adVideoOffset.percent*D<=W||x)Q.JO.get().executeCommand(K.command,Q.layoutId),Q.N++;else break}for(;Q.D<Q.B.length;)if(D=Q.B[Q.D],Number(D.adVideoOffset.milliseconds)<=W||x)Q.JO.get().executeCommand(D.command,Q.layoutId),Q.D++;else break}};
fD=function(Q,W,x,D,K,l){PP.call(this,Q,W,x,D);this.vt=K;this.PN=l;this.WI=!0;Yz(this.PN(),this);Q=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,Q,x.layoutId)};
c_5=function(){var Q=["metadata_type_action_companion_ad_renderer"];id().forEach(function(W){Q.push(W)});
return{xD:Q,wP:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
g_D=function(Q,W,x,D,K,l,M,w){this.callback=Q;this.slot=W;this.layout=x;this.Jf=D;this.vt=K;this.yj=M;this.BN=w;this.B=!1;Q=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,Q,x.layoutId);var S;Q=((S=RE(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:S.progressCommands)||[];var b=RE(x.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.U=new Nnv(l,Q,x.layoutId,function(){return b*1E3})};
Zk=function(Q,W,x,D,K,l){PP.call(this,Q,W,x,D);this.Jf=K;this.L=l;this.N=!1};
LD=function(Q,W,x,D,K){MA.call(this,"top-banner-image-text-icon-buttoned",Q,W,x,D,K)};
rt=function(Q,W,x,D,K,l){PP.call(this,Q,W,x,D);this.vt=K;this.PN=l;this.WI=!0;Yz(this.PN(),this);Q=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,Q,x.layoutId)};
y_4=function(){var Q=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];id().forEach(function(W){Q.push(W)});
return{xD:Q,wP:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
T5=function(Q,W,x){MA.call(this,"display-underlay-text-grid-cards",Q,{},W,x);this.interactionLoggingClientData=x};
Op=function(Q,W,x,D,K,l){PP.call(this,Q,W,x,D);this.vt=K;this.N=l;this.L=RE(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
Ep=function(Q,W,x,D,K,l){K=K===void 0?!1:K;l=l===void 0?!1:l;MA.call(this,"ad-action-interstitial",Q,W,x,D);this.interactionLoggingClientData=D;this.Am=K;this.JQ=l};
FX=function(Q,W,x,D,K){PP.call(this,Q,W,x,D);Q=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,K,Q,x.layoutId)};
esF=function(){var Q=["metadata_type_ad_action_interstitial_renderer"];id().forEach(function(W){Q.push(W)});
return{xD:Q,wP:["LAYOUT_TYPE_ENDCAP"]}};
tD=function(Q,W){return Kd(Q,W.xD,W.wP)?!0:!1};
Q$=function(Q,W,x){this.U=Q;this.D=W;this.B=x};
fIs=function(Q,W,x,D,K){MA.call(this,"ads-engagement-panel",Q,W,x,D,K)};
Wl=function(Q,W,x,D,K,l,M,w){PP.call(this,Q,W,x,D);this.vt=K;this.PN=l;this.X=w;this.WI=!0;this.N=null;this.L=RE(x.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Yz(this.PN(),this);Q=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,Q,x.layoutId)};
ZVv=function(){var Q=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];id().forEach(function(W){Q.push(W)});
return{xD:Q,wP:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
xd=function(Q,W,x,D,K,l,M,w){PP.call(this,Q,W,x,D);this.vt=K;this.PN=l;this.X=w;this.WI=!0;this.N=null;this.L=RE(x.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Yz(this.PN(),this);this.adPlacementConfig=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,this.adPlacementConfig,x.layoutId)};
LYQ=function(){var Q=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];id().forEach(function(W){Q.push(W)});
return{xD:Q,wP:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
r_F=function(Q,W,x,D,K){this.Vh=Q;this.vt=W;this.PN=x;this.B=D;this.BN=K};
Tnz=function(Q,W,x){this.Vh=Q;this.vt=W;this.B=x};
OV2=function(Q,W,x,D,K){this.callback=Q;this.slot=W;this.layout=x;this.vt=D;this.Es=K;Q=RE(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,Q,x.layoutId)};
E_n=function(){var Q=["metadata_type_client_forecasting_ad_renderer"];id().forEach(function(W){Q.push(W)});
return{xD:Q,wP:["LAYOUT_TYPE_FORECASTING"]}};
FY1=function(Q,W,x,D,K){this.callback=Q;this.slot=W;this.layout=x;this.vt=D;this.Es=K;Q=RE(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,Q,x.layoutId)};
DC=function(Q,W,x,D){this.yj=Q;this.vt=W;this.Es=x;this.BN=D};
ttl=function(Q,W){return Du(Q.clientMetadata,"metadata_type_ad_info_ad_metadata")?RE(Q.clientMetadata,"metadata_type_ad_info_ad_metadata"):W?{channelId:W.ZS,channelThumbnailUrl:W.profilePicture,channelTitle:W.author,videoTitle:W.title}:(sH("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
Qll=function(Q,W){return Du(Q.clientMetadata,"metadata_ad_video_is_listed")?RE(Q.clientMetadata,"metadata_ad_video_is_listed"):W?W.isListed:(sH("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
W4n=function(Q,W,x,D){MA.call(this,"player-overlay-layout",Q,{},x,D);this.videoAdDurationSeconds=W;this.interactionLoggingClientData=D};
K3=function(Q,W,x,D,K,l,M,w){PP.call(this,Q,W,x,D);this.Jf=K;this.vt=l;this.X=M;this.L=w;this.N=!1;this.G=RE(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
xrs=function(Q){if(Q.layout.renderingContent){var W;return(W=RE(Q.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:W.current}return RE(Q.layout.clientMetadata,"metadata_type_player_bytes_callback")};
l7=function(Q,W,x,D,K,l,M,w){PP.call(this,Q,W,x,D);this.Jf=K;this.vt=l;this.X=M;this.L=w;this.N=!1;this.G=RE(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
Dr5=function(){return{xD:["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"],wP:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
jm=function(Q){if(Q.layout.renderingContent){var W;return(W=RE(Q.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:W.current}return RE(Q.layout.clientMetadata,"metadata_type_player_bytes_callback")};
K4v=function(Q,W,x){MA.call(this,"ad-message",Q,void 0,W,x)};
Mq=function(Q,W,x,D,K,l){PP.call(this,x,Q,W,D);this.Jf=K;this.yj=l};
lea=function(){return{xD:["metadata_type_valid_ad_message_renderer"],wP:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
jls=function(Q,W,x,D){MA.call(this,"video-interstitial-buttoned-centered",Q,W,x,D);this.interactionLoggingClientData=D};
R0=function(Q,W,x,D,K){PP.call(this,Q,W,x,D);Q=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,K,Q,x.layoutId)};
zu=function(Q,W,x,D,K,l,M,w,S){return tD(x,Dr5())||x.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.e(x.renderingContent,ww)!==void 0?new l7(Q,W,x,D,K,l,M,w):tD(x,{xD:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],wP:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||x.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.e(x.renderingContent,Sm)!==void 0?
new K3(Q,W,x,D,K,l,M,w):tD(x,esF())||x.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.e(x.renderingContent,b7)!==void 0?new FX(Q,W,x,D,l):tD(x,lea())?new Mq(W,x,Q,D,K,S):tD(x,{xD:["metadata_type_instream_ad_player_overlay_renderer"],wP:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new Zk(Q,W,x,D,K,w):x.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.e(x.renderingContent,sC)!==void 0?new R0(Q,W,x,D,l):null};
Miz=function(Q,W,x,D,K,l){this.Vh=Q;this.Jf=W;this.vt=x;this.U=D;this.B=K;this.yj=l};
kd=function(Q){return!Q.oldState.isPlaying()&&Q.state.isPlaying()};
X2=function(Q,W,x){return Q<W?!1:x!=null?x<=W:Q<=W+1};
o0=function(Q,W,x,D,K,l,M,w){this.callback=Q;this.slot=W;this.layout=x;this.Jf=D;this.vt=K;this.yj=l;this.BN=M;this.o5=w;this.B=!1;Q=RE(x.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,Q,x.layoutId)};
u7=function(Q,W){Q.B||(Q.Ht.zn(W),Q.B=!0)};
RNh=function(Q,W,x,D,K,l){this.Jf=Q;this.vt=W;this.JO=x;this.yj=D;this.BN=K;this.o5=l};
Yd=function(){this.currentState=1;this.B="unknown"};
n3=function(Q,W){if(Q.currentState>1){g.Bp(new g.Lw("Exit already started",{current:Q.currentState}));var x=!1}else x=!0;if(!x)return!1;Q.currentState=2;Q.B=W;return!0};
V$=function(Q){if(Q.currentState!==2)return!1;Q.currentState=3;return!0};
wiQ=function(Q,W){var x=new Map;Q=g.V(Q);for(var D=Q.next();!D.done;D=Q.next()){D=D.value;if(D.layoutType==="LAYOUT_TYPE_MEDIA")var K="v";else D.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(K=RE(D.clientMetadata,"metadata_type_linked_in_player_layout_type"),K=K==="LAYOUT_TYPE_ENDCAP"||K==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":K==="LAYOUT_TYPE_SURVEY"?"s":K==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):K="u";x.set(D.layoutId,K);if(K==="u"){var l={};K=W;D=(l.c=D.layoutId,l);K.J.qj("uct",D)}}Q=
W.kG();Pl={contentCpn:Q,Qu:x};D={};x=(D.ct=x.size,D.c=Q,D);W.J.qj("acc",x)};
SHz=function(){Pl={contentCpn:"",Qu:new Map}};
vl=function(Q){var W;return(W=Pl.Qu.get(Q))!=null?W:"u"};
C3=function(Q,W,x){Q.J.qj(W,x);bb5(Q)};
slQ=function(Q){var W=Q.layoutId,x=Q.a4;if(Q.zN){var D={};C3(Q.h2,"slso",(D.ec=W,D.is=x,D.ctp=vl(W),D))}};
J7=function(Q){var W=Q.layoutId,x=Q.a4;if(Q.zN){var D={};C3(Q.h2,"slse",(D.ec=W,D.is=x,D.ctp=vl(W),D))}};
zNh=function(Q){var W=Q.layoutId,x=Q.a4,D=Q.h2;Q.zN&&(Q={},C3(D,"sleo",(Q.xc=W,Q.is=x,Q.ctp=vl(W),Q)),bb5(D))};
kVD=function(Q){var W=Q.cpn,x=Q.h2;Q=Q.a4;var D=x.kG(),K={};C3(x,"ce",(K.ec=W,K.ia=W!==D,K.r=Pl.Qu.has(W),K.is=Q,K.ctp=vl(W),K))};
bb5=function(Q){if(Q.kG()!==Pl.contentCpn){var W={};W=(W.c=Pl.contentCpn,W);Q.J.qj("ccm",W)}};
Xiv=function(Q){var W=Q.cpn,x=Q.h2;Q=Q.a4;var D=x.kG(),K={};C3(x,"cx",(K.xc=W,K.ia=W!==D,K.r=Pl.Qu.has(W),K.is=Q,K.ctp=vl(W),K))};
oZD=function(Q){this.params=Q;this.B=new Set};
uV4=function(Q,W,x){if(!Q.B.has(W)){Q.B.add(W);var D={};Q.params.HK.T1(W,Object.assign({},x,(D.p_ac=Q.params.adCpn,D.p_isv=Q.params.ZS1&&Q.params.OQ,D)))}};
h7=function(Q,W,x){if(p3(Q.params.HK.yj.get(),!0)){var D=x.flush,K={};uV4(Q,W,(K.cts=x.currentTimeSec,K.f=D,K))}};
YHz=function(Q,W){this.h2=Q;this.yj=W};
a0=function(Q){var W=[];if(Q){Q=g.V(Object.entries(Q));for(var x=Q.next();!x.done;x=Q.next()){var D=g.V(x.value);x=D.next().value;D=D.next().value;D!==void 0&&(D=typeof D==="boolean"?""+ +D:(""+D).replace(/[:,=]/g,"_"),W.push(x+"."+D))}}return W.join(";")};
Gu=function(Q,W,x){W=W===void 0?{}:W;this.errorCode=Q;this.details=W;this.severity=x===void 0?0:x};
dw=function(Q){return Q===1||Q===2};
i7=function(Q,W){W=W===void 0?0:W;if(Q instanceof Gu)return Q;Q=Q&&Q instanceof Error?Q:Error(""+Q);dw(W)?g.ql(Q):g.Bp(Q);return new Gu(W===1?"player.fatalexception":"player.exception",{name:""+Q.name,message:""+Q.message},W)};
nZD=function(Q,W){function x(){var D=g.i2.apply(0,arguments);Q.removeEventListener("playing",x);W.apply(null,g.C(D))}
Q.addEventListener("playing",x)};
A7=function(){var Q=g.yF("yt.player.utils.videoElement_");Q||(Q=g.Qz("VIDEO"),g.g4("yt.player.utils.videoElement_",Q));return Q};
Hl=function(Q){var W=A7();return!!(W&&W.canPlayType&&W.canPlayType(Q))};
qq=function(Q){if(/opus/.test(Q)&&g.UC&&!pT("38")&&!g.fl())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(Q);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(Q);if(/webm/.test(Q)&&!A24())return!1;Q==='audio/mp4; codecs="mp4a.40.2"'&&(Q='video/mp4; codecs="avc1.4d401f"');return!!Hl(Q)};
Vih=function(Q){try{var W=qq('video/mp4; codecs="avc1.42001E"')||qq('video/webm; codecs="vp9"');return(qq('audio/mp4; codecs="mp4a.40.2"')||qq('audio/webm; codecs="opus"'))&&(W||!Q)||Hl('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(x){return"html5.missingapi"}};
Bl=function(){var Q=A7();return!(!Q.webkitSupportsPresentationMode||typeof Q.webkitSetPresentationMode!=="function")};
$d=function(){var Q=A7();try{var W=Q.muted;Q.muted=!W;return Q.muted!==W}catch(x){}return!1};
PKQ=function(){var Q;return((Q=navigator.connection)==null?void 0:Q.type)||""};
g.I0=function(){aC.apply(this,arguments)};
mQ=function(Q,W,x,D,K,l,M){this.sampleRate=Q===void 0?0:Q;this.numChannels=W===void 0?0:W;this.spatialAudioType=x===void 0?"SPATIAL_AUDIO_TYPE_NONE":x;this.B=D===void 0?!1:D;this.D=K===void 0?0:K;this.U=l===void 0?0:l;this.audioQuality=M===void 0?"AUDIO_QUALITY_UNKNOWN":M};
gw=function(Q,W,x,D,K,l,M,w,S){this.width=Q;this.height=W;this.quality=l||Nq(Q,W);this.B=g.cl[this.quality];this.fps=x||0;this.stereoLayout=!K||D!=null&&D!=="UNKNOWN"&&D!=="RECTANGULAR"?0:K;this.projectionType=D?D==="EQUIRECTANGULAR"&&K===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":D:"UNKNOWN";(Q=M)||(Q=g.cl[this.quality],Q===0?Q="Auto":(W=this.fps,x=this.projectionType,Q=Q.toString()+(x==="EQUIRECTANGULAR"||x==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||x==="MESH"?"s":"p")+(W>55?"60":W>49?"50":W>39?"48":"")));
this.qualityLabel=Q;this.U=w||"";this.primaries=S||""};
Nq=function(Q,W){var x=Math.max(Q,W);Q=Math.min(Q,W);W=y$[0];for(var D=0;D<y$.length;D++){var K=y$[D],l=g.cl[K];if(x>=Math.floor(l*16/9)*1.3||Q>=l*1.3)return W;W=K}return"tiny"};
ZC=function(Q,W,x){x=x===void 0?{}:x;this.id=Q;this.mimeType=W;x.a5>0||(x.a5=16E3);Object.assign(this,x);Q=g.V(this.id.split(";"));this.itag=Q.next().value;this.B=Q.next().value;this.containerType=em(W);this.CS=f3[this.itag]||""};
L3=function(Q){return Q.CS==="9"||Q.CS==="("||Q.CS==="9h"||Q.CS==="(h"};
vZO=function(Q){return Q.CS==="H"||Q.CS==="h"};
rw=function(Q){return Q.CS==="9h"||Q.CS==="(h"};
CKn=function(Q){return!!Q.Qp&&!!Q.Qp.fairplay&&(Q.CS==="("||Q.CS==="(h"||Q.CS==="A"||Q.CS==="MEAC3")||Tu&&!!Q.Qp&&Q.CS==="1e"};
OC=function(Q){return Q.CS==="1"||Q.CS==="1h"||Tu&&Q.CS==="1e"};
EC=function(Q){return Q.CS==="mac3"||Q.CS==="meac3"||Q.CS==="m"||Q.CS==="i"};
F2=function(Q){return Q.CS==="MAC3"||Q.CS==="MEAC3"||Q.CS==="M"||Q.CS==="I"};
g.t7=function(Q){return Q.containerType===1};
JIh=function(Q){return Q.CS==="("||Q.CS==="(h"||Q.CS==="H"||Tu&&Q.CS==="1e"};
Qy=function(Q){return Q.mimeType==="application/x-mpegURL"};
g.WT=function(Q,W){return{itag:+Q.itag,lmt:W?0:Q.lastModified,xtags:Q.B||""}};
pi5=function(Q){var W=navigator.mediaCapabilities;if(W==null||!W.decodingInfo||Q.CS==="f")return Promise.resolve();var x={type:Q.audio&&Q.video?"file":"media-source"};Q.video&&(x.video={contentType:Q.mimeType,width:Q.video.width||640,height:Q.video.height||360,bitrate:Q.a5*8||1E6,framerate:Q.video.fps||30});Q.audio&&(x.audio={contentType:Q.mimeType,channels:""+(Q.audio.numChannels||2),bitrate:Q.a5*8||128E3,samplerate:Q.audio.sampleRate||44100});return W.decodingInfo(x).then(function(D){Q.U=D})};
xU=function(Q){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(Q)};
DR=function(Q){return/(vp9|vp09|vp8|avc1|av01)/.test(Q)};
KS=function(Q){return Q.includes("vtt")||Q.includes("text/mp4")};
em=function(Q){return Q.indexOf("/mp4")>=0?1:Q.indexOf("/webm")>=0?2:Q.indexOf("/x-flv")>=0?3:Q.indexOf("/vtt")>=0?4:0};
l9=function(Q,W,x,D,K,l){var M=new mQ;W in g.cl||(W="small");W==="light"&&(W="tiny");D&&K?(K=Number(K),D=Number(D)):(K=g.cl[W],D=Math.round(K*16/9));l=new gw(D,K,0,null,void 0,W,l);Q=unescape(Q.replace(/&quot;/g,'"'));return new ZC(x,Q,{audio:M,video:l})};
je=function(Q){var W="id="+Q.id;Q.video&&(W+=", res="+Q.video.qualityLabel);var x,D;return W+", byterate=("+((x=Q.hM)==null?void 0:x.toFixed(0))+", "+((D=Q.a5)==null?void 0:D.toFixed(0))+")"};
MN=function(Q,W){return{start:function(x){return Q[x]},
end:function(x){return W[x]},
length:Q.length}};
hNs=function(Q,W,x){for(var D=[],K=[],l=0;l<Q.length;l++)D.push(Q.start(l)),K.push(Q.end(l));D.push(W);K.push(x);D.sort(function(M,w){return M-w});
K.sort(function(M,w){return M-w});
return MN(D,K)};
RU=function(Q,W,x){W=W===void 0?",":W;x=x===void 0?Q?Q.length:0:x;var D=[];if(Q)for(x=Math.max(Q.length-x,0);x<Q.length;x++)D.push(Q.start(x).toFixed(3)+"-"+Q.end(x).toFixed(3));return D.join(W)};
wg=function(Q,W){if(!Q)return-1;try{for(var x=0;x<Q.length;x++)if(Q.start(x)<=W&&Q.end(x)>=W)return x}catch(D){}return-1};
Se=function(Q,W){return wg(Q,W)>=0};
aeD=function(Q,W){if(!Q)return NaN;W=wg(Q,W);return W>=0?Q.start(W):NaN};
b9=function(Q,W){if(!Q)return NaN;W=wg(Q,W);return W>=0?Q.end(W):NaN};
zl=function(Q){return Q&&Q.length?Q.end(Q.length-1):NaN};
kU=function(Q,W){Q=b9(Q,W);return Q>=0?Q-W:0};
Xs=function(Q,W,x){for(var D=[],K=[],l=0;l<Q.length;l++)Q.end(l)<W||Q.start(l)>x||(D.push(Math.max(W,Q.start(l))-W),K.push(Math.min(x,Q.end(l))-W));return MN(D,K)};
oU=function(Q,W,x,D){g.Rd.call(this);var K=this;this.PD=Q;this.start=W;this.end=x;this.isActive=D;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.gg={error:function(){!K.d7()&&K.isActive&&K.publish("error",K)},
updateend:function(){!K.d7()&&K.isActive&&K.publish("updateend",K)}};
this.PD.xJ(this.gg);this.SR=this.isActive};
YU=function(Q,W,x,D,K,l){g.Rd.call(this);var M=this;this.Ln=Q;this.JA=W;this.id=x;this.containerType=D;this.CS=K;this.OQ=l;this.Hm=this.F2=this.iG=null;this.mA=!1;this.appendWindowStart=this.timestampOffset=0;this.dl=MN([],[]);this.JU=!1;this.UC=[];this.nj=u9?[]:void 0;this.St=function(S){return M.publish(S.type,M)};
var w;if((w=this.Ln)==null?0:w.addEventListener)this.Ln.addEventListener("updateend",this.St),this.Ln.addEventListener("error",this.St)};
nS=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
Vy=function(Q,W){this.Db=Q;this.B=W===void 0?!1:W;this.U=!1};
PT=function(Q,W,x){x=x===void 0?!1:x;g.N.call(this);this.mediaElement=Q;this.r7=W;this.isView=x;this.X=0;this.N=!1;this.L=!0;this.T=0;this.callback=null;this.S=!1;this.r7||(this.JA=this.mediaElement.yh());this.events=new g.I0(this);g.y(this,this.events);this.D=new Vy(this.r7?window.URL.createObjectURL(this.r7):this.JA.webkitMediaSourceURL,!0);Q=this.r7||this.JA;GT(this.events,Q,["sourceopen","webkitsourceopen"],this.qQj);GT(this.events,Q,["sourceclose","webkitsourceclose"],this.xxj);this.G={updateend:this.A1}};
GVz=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
drO=function(Q,W){LS(Q)?g.wv(function(){W(Q)}):Q.callback=W};
ibn=function(Q,W,x){if(rg){var D;Tl(Q.mediaElement,{l:"mswssb",sr:(D=Q.mediaElement.xf)==null?void 0:D.s2()},!1);W.xJ(Q.G,Q);x.xJ(Q.G,Q)}Q.B=W;Q.U=x;g.y(Q,W);g.y(Q,x)};
AIO=function(Q,W,x,D){D=W.mimeType+(D===void 0?"":D);var K=x.mimeType;W=W.CS;x=x.CS;var l;Q.uj=(l=Q.r7)==null?void 0:l.addSourceBuffer(K);var M;Q.pS=D.split(";")[0]==="fakesb"?void 0:(M=Q.r7)==null?void 0:M.addSourceBuffer(D);Q.JA&&(Q.JA.webkitSourceAddId("0",K),Q.JA.webkitSourceAddId("1",D));l=new YU(Q.uj,Q.JA,"0",em(K),x,!1);D=new YU(Q.pS,Q.JA,"1",em(D),W,!0);ibn(Q,l,D)};
Ow=function(Q){return!!Q.B||!!Q.U};
LS=function(Q){try{return Ew(Q)==="open"}catch(W){return!1}};
Ew=function(Q){if(Q.r7)return Q.r7.readyState;switch(Q.JA.webkitSourceState){case Q.JA.SOURCE_OPEN:return"open";case Q.JA.SOURCE_ENDED:return"ended";default:return"closed"}};
Fs=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
Hba=function(Q){LS(Q)&&(Q.r7?Q.r7.endOfStream():Q.JA.webkitSourceEndOfStream(Q.JA.EOS_NO_ERROR))};
Url=function(Q,W,x,D){if(!Q.B||!Q.U)return null;var K=Q.B.isView()?Q.B.PD:Q.B,l=Q.U.isView()?Q.U.PD:Q.U,M=new PT(Q.mediaElement,Q.r7,!0);M.D=Q.D;ibn(M,new oU(K,W,x,D),new oU(l,W,x,D));LS(Q)||Q.B.PL(Q.B.aW());return M};
qH5=function(Q){var W;(W=Q.B)==null||W.df();var x;(x=Q.U)==null||x.df();Q.L=!1};
th=function(){var Q=this;this.hZ=this.F9=AvF;this.promise=new g.Xk(function(W,x){Q.F9=W;Q.hZ=x})};
Q4=function(){g.N.call(this);this.rA=!1;this.Db=null;this.G=this.X=!1;this.N=new g.FN;this.xf=null;g.y(this,this.N)};
Wa=function(Q){Q=Q.qe();return Q.length<1?NaN:Q.end(Q.length-1)};
Bss=function(Q){!Q.U&&GVz()&&(Q.D?Q.D.then(function(){return Bss(Q)}):Q.aj()||(Q.U=Q.fv()))};
$rO=function(Q){Q.U&&(Q.U.dispose(),Q.U=void 0)};
Tl=function(Q,W,x){var D;((D=Q.xf)==null?0:D.jk())&&Q.xf.qj("rms",W,x===void 0?!1:x)};
Iel=function(Q,W,x){Q.isPaused()||Q.getCurrentTime()>W||x>10||(Q.play(),g.oc(function(){Iel(Q,Q.getCurrentTime(),x+1)},500))};
mrF=function(Q,W){Q.Db&&Q.Db.yI(W)||(Q.Db&&Q.Db.dispose(),Q.Db=W)};
xa=function(Q){return kU(Q.O4(),Q.getCurrentTime())};
Nsh=function(Q,W){if(Q.aI()===0||Q.hasError())return!1;var x=Q.getCurrentTime()>0;return W>=0&&(Q=Q.qe(),Q.length||!x)?Se(Q,W):x};
DT=function(Q){Q.aj()&&(Q.xf&&Q.xf.ax("rs_s"),LX&&Q.getCurrentTime()>0&&Q.seekTo(0),Q.CX(),Q.load(),mrF(Q,null));delete Q.D};
Kz=function(Q){switch(Q.g1()){case 2:return"progressive.net.retryexhausted";case 3:return Q=Q.ZJ(),(Q==null?0:Q.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||cIF&&(Q==null?0:Q.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.lW=function(Q,W,x){this.HI=W===void 0?null:W;this.seekSource=x===void 0?null:x;this.state=Q||64};
j_=function(Q,W,x){x=x===void 0?!1:x;return gZ4(Q,W.getCurrentTime(),(0,g.a8)(),xa(W),x)};
Mm=function(Q,W,x,D){if(!(W===Q.state&&x===Q.HI&&D===Q.seekSource||W!==void 0&&(W&128&&!x||W&2&&W&16))){var K;if(K=W)K=W||Q.state,K=!!(K&16||K&32);Q=new g.lW(W,x,K?D?D:Q.seekSource:null)}return Q};
RA=function(Q,W,x){return Mm(Q,Q.state|W,null,x===void 0?null:x)};
wE=function(Q,W){return Mm(Q,Q.state&~W,null,null)};
S_=function(Q,W,x,D){return Mm(Q,(Q.state|W)&~x,null,D===void 0?null:D)};
g.r=function(Q,W){return!!(Q.state&W)};
g.bW=function(Q,W){return W.state===Q.state&&W.HI===Q.HI};
s0=function(Q){return Q.isPlaying()&&!g.r(Q,16)&&!g.r(Q,32)};
zp=function(Q){return g.r(Q,128)?-1:g.r(Q,2)?0:g.r(Q,2048)?3:g.r(Q,64)?-1:g.r(Q,1)&&!g.r(Q,32)?3:g.r(Q,8)?1:g.r(Q,4)?2:-1};
XY=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v,J){g.N.call(this);var h=this;this.uu=Q;this.slot=W;this.layout=x;this.vt=D;this.BN=K;this.o5=l;this.Jf=M;this.FE=w;this.JO=S;this.HL=b;this.position=k;this.X=X;this.yj=u;this.uU=Y;this.w1=v;this.context=J;this.WI=!0;this.L=!1;this.iN="not_rendering";this.U=!1;this.D=new Yd;Q=RE(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(x.bN,this.vt,Q,x.layoutId);var G;Q=((G=ka(this))==null?void 0:G.progressCommands)||[];this.N=new Nnv(S,
Q,x.layoutId,function(){return h.VR()});
this.B=new oZD({adCpn:this.layout.layoutId,HK:J.HK,ZS1:this.uU,OQ:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})};
oA=function(Q){return{layoutId:Q.Za(),a4:Q.uU,h2:Q.o5.get(),zN:Q.qx()}};
uW=function(Q,W){return W.layoutId!==Q.layout.layoutId?(Q.uu.Ce(Q.slot,W,new jX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+Q.layout.layoutId+("and LayoutType: "+Q.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
Ya=function(Q){Q.iN="rendering_start_requested";Q.HL(-1)};
ka=function(Q){return RE(Q.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
yI4=function(Q){sH("Received layout exit signal when not in layout exit flow.",Q.slot,Q.layout)};
eNs=function(Q){var W;return((W=nz(Q.o5.get(),2))==null?void 0:W.clientPlaybackNonce)||""};
V4=function(Q,W){switch(W){case "normal":Q.zn("complete");break;case "skipped":Q.zn("skip");break;case "abandoned":BP(Q.Ht,"impression")&&Q.zn("abandon")}};
Pa=function(Q,W){Q.L||(W=new g.zV(W.state,new g.lW),Q.L=!0);return W};
va=function(Q,W){kd(W)?Q.HL(1):g.XV(W,4)&&!g.XV(W,2)&&Q.NQ();kZ(W,4)<0&&!(kZ(W,2)<0)&&Q.Kw()};
feh=function(Q){Q.position===0&&(Q.FE.get(),Q=RE(Q.layout.clientMetadata,"metadata_type_ad_placement_config").kind,Q={adBreakType:Cz(Q)},Nc("ad_bl"),g.co(Q))};
JA=function(Q,W){Up(Q.Ht,W,!Q.U)};
L45=function(Q){var W;return(((W=ka(Q))==null?void 0:W.progressCommands)||[]).findIndex(function(x){return!!g.e(x==null?void 0:x.command,ZbD)})!==-1};
pz=function(Q,W){var x=RE(Q.clientMetadata,"metadata_type_eligible_for_ssap");return x===void 0?(sH("Expected SSAP eligibility in PlayerBytes factory",Q),!1):W.qx(x)};
hA=function(Q,W){if(!EL(W.get(),"html5_ssap_pass_transition_reason"))return 3;switch(Q){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return sH("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return sH("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:Q}),3;default:Ma(Q,"unknown layoutExitReason")}};
rI5=function(Q){sH("getExitReason: unexpected reason",void 0,void 0,{reason:Q})};
aA=function(Q,W){if(EL(W.get(),"html5_ssap_pass_transition_reason"))switch(Q){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return rI5(Q),"abandoned";case 3:case 1:return rI5(Q),"error";default:Ma(Q,"unexpected transition reason")}else switch(Q){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return sH("getExitReason: unexpected reason",void 0,void 0,{reason:Q}),"error";default:Ma(Q,"unexpected transition reason")}};
Gp=function(Q,W,x){y_(Q,x)||fA(Q,W,x);y_(Q,"video_to_ad")||fA(Q,W,"video_to_ad");y_(Q,"ad_to_video")||fA(Q,W,"ad_to_video");y_(Q,"ad_to_ad")||fA(Q,W,"ad_to_ad")};
dE=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v,J,h){XY.call(this,Q,W,x,D,K,l,M,w,b,z,k,X,u,Y,v,J,h);var G=this;this.Y3=S;this.KY=k;this.Iv=!0;this.Wm=this.TK=0;this.DP=zD(function(){slQ(oA(G));G.uu.HN(G.slot,G.layout)});
this.Ef=zD(function(){zNh(oA(G));G.iN!=="rendering_stop_requested"&&G.KY(G);G.layoutExitReason?G.uu.BD(G.slot,G.layout,G.layoutExitReason):yI4(G)});
this.rP=new g.v_(200);this.rP.listen("tick",function(){G.QA()});
g.y(this,this.rP)};
AA=function(Q){Q.Wm=Date.now();iW(Q,Q.TK);Q.rP.start()};
Tss=function(Q){Q.TK=Q.VR();Q.Y5(Q.TK/1E3,!0);iW(Q,Q.TK)};
iW=function(Q,W){W={current:W/1E3,duration:Q.VR()/1E3};Q.Y3.get().dc("onAdPlaybackProgress",W)};
Ha=function(Q){dE.call(this,Q.uu,Q.slot,Q.N_,Q.vt,Q.BN,Q.o5,Q.Jf,Q.FE,Q.Y3,Q.JO,Q.HL,Q.KY,Q.hX,Q.eR,Q.yj,Q.uU,Q.w1,Q.context)};
U0=function(Q){dE.call(this,Q.uu,Q.slot,Q.N_,Q.vt,Q.BN,Q.o5,Q.Jf,Q.FE,Q.Y3,Q.JO,Q.HL,Q.KY,Q.hX,Q.eR,Q.yj,Q.uU,Q.w1,Q.context)};
qm=function(){U0.apply(this,arguments)};
Ob5=function(Q){return pz(Q.slot,Q.yj.get())?new qm(Q):new Ha(Q)};
IA=function(Q){XY.call(this,Q.callback,Q.slot,Q.N_,Q.vt,Q.BN,Q.o5,Q.Jf,Q.FE,Q.JO,Q.HL,Q.KY,Q.hX,Q.eR,Q.yj,Q.uU,Q.w1,Q.context);var W=this;this.adCpn="";this.BG=0;this.YH=!1;this.lZ=0;this.DP=zD(function(){slQ(oA(W));W.uu.HN(W.slot,W.layout)});
this.Ef=zD(function(){zNh(oA(W));W.iN!=="rendering_stop_requested"&&W.KY(W);W.layoutExitReason?W.uu.BD(W.slot,W.layout,W.layoutExitReason):yI4(W)});
this.EQ=Q.EQ;this.IQ=Q.IQ;this.ly=Q.ly;this.Y3=Q.Y3;this.Xs=Q.Xs;this.KY=Q.KY;if(!this.qx()){EL(this.yj.get(),"html5_disable_media_load_timeout")||(this.NA=new g.O3(function(){W.sz("load_timeout",new jX("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4));
Q=Ba(this.yj.get());var x=$a(this.yj.get());Q&&x&&(this.U9=new g.O3(function(){var D=RE(W.layout.clientMetadata,"metadata_type_preload_player_vars");D&&W.IQ.get().J.preloadVideoByPlayerVars(D,2,300)}))}};
F4h=function(Q,W){var x=RE(W.clientMetadata,"metadata_type_ad_video_id"),D=RE(W.clientMetadata,"metadata_type_legacy_info_card_vast_extension");x&&D&&Q.Xs.get().J.C().LS.add(x,{B5:D});(W=RE(W.clientMetadata,"metadata_type_sodar_extension_data"))&&t0a(Q.EQ.get(),W);EZF(Q.Jf.get(),!1)};
tia=function(Q){EZF(Q.Jf.get(),!0);var W;((W=Q.shrunkenPlayerBytesConfig)==null?0:W.shouldRequestShrunkenPlayerBytes)&&Q.Jf.get().As(!1)};
QoO=function(Q){var W=RE(Q.sV().clientMetadata,"metadata_type_player_bytes_slot_metadata");W===void 0&&sH("PlayerBytesSlotMetadata is not filled",Q.sV(),Q.z1());return(W==null?void 0:W.nf)===!0};
mU=function(){IA.apply(this,arguments)};
Nm=function(){mU.apply(this,arguments)};
W7n=function(Q){return Ob5(Object.assign({},Q,{uu:Q.callback,HL:function(){}}))};
xch=function(Q){return new IA(Object.assign({},Q,{HL:function(W){Q.Y3.get().dc("onAdIntroStateChange",W)}}))};
Dc5=function(Q){function W(x){Q.Y3.get().LV(x)}
return pz(Q.slot,Q.yj.get())?new Nm(Object.assign({},Q,{HL:W})):new IA(Object.assign({},Q,{HL:W}))};
ca=function(Q){for(var W=Q.N_,x=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],D=g.V(id()),K=D.next();!K.done;K=D.next())x.push(K.value);if(tD(W,{xD:x,wP:["LAYOUT_TYPE_MEDIA_BREAK"]}))return W7n(Q);W=Q.N_;x=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];D=g.V(id());for(K=D.next();!K.done;K=D.next())x.push(K.value);if(tD(W,{xD:x,wP:["LAYOUT_TYPE_MEDIA"]}))return Du(Q.N_.clientMetadata,"metadata_type_ad_intro")?xch(Q):Dc5(Q)};
lxF=function(Q){var W=RE(Q.clientMetadata,"metadata_type_ad_placement_config").kind,x=RE(Q.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:Q.layoutId,adType:K7z(x),adBreakType:Cz(W)}};
Cz=function(Q){switch(Q){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"}};
K7z=function(Q){switch(Q){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}};
jov=function(Q){try{return new gE(Q.Px,Q.slot,Q.layout,Q.fZ,Q.xX,Q.o5,Q.x3,Q.IQ,Q.PN,Q.Jf,Q.dC5,Q)}catch(W){}};
gE=function(Q,W,x,D,K,l,M,w,S,b,z,k){g.N.call(this);this.Px=Q;this.slot=W;this.layout=x;this.fZ=D;this.xX=K;this.o5=l;this.x3=M;this.IQ=w;this.PN=S;this.Jf=b;this.params=k;this.WI=!0;Q=ca(z);if(!Q)throw Error("Invalid params for sublayout");this.M7=Q};
MPl=function(){this.B=1;this.U=new Yd};
y4=function(Q,W,x,D,K,l,M,w,S,b,z,k,X){g.N.call(this);this.callback=Q;this.o5=W;this.x3=x;this.IQ=D;this.Jf=K;this.FE=l;this.bu=M;this.slot=w;this.layout=S;this.fZ=b;this.Es=z;this.PN=k;this.yj=X;this.WI=!0;this.HR=!1;this.Ij=[];this.pm=-1;this.QL=!1;this.cO=new MPl};
Rv5=function(Q){var W;return(W=Q.layout.Zm)!=null?W:RE(Q.layout.clientMetadata,"metadata_type_sub_layouts")};
e_=function(Q){return{h2:Q.o5.get(),a4:!1,zN:Q.qx()}};
wo4=function(Q,W,x){if(Q.Ku()===Q.Ij.length-1){var D,K;sH("Unexpected skip requested during the last sublayout",(D=Q.sQ())==null?void 0:D.sV(),(K=Q.sQ())==null?void 0:K.z1(),{requestingSlot:W,requestingLayout:x})}};
S$D=function(Q,W,x){return x.layoutId!==fz(Q,W,x)?(sH("onSkipRequested for a PlayerBytes layout that is not currently active",Q.sV(),Q.z1()),!1):!0};
bA1=function(Q){Q.Ku()===Q.Ij.length-1&&sH("Unexpected skip with target requested during the last sublayout")};
soh=function(Q,W,x){return x.renderingContent===void 0&&x.layoutId!==fz(Q,W,x)?(sH("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",Q.sV(),Q.z1(),{requestingSlot:W,requestingLayout:x}),!1):!0};
zvQ=function(Q,W,x,D){var K=RE(W.z1().clientMetadata,"metadata_type_ad_pod_skip_target");if(K&&K>0&&K<Q.Ij.length){a:{for(var l=K;l<Q.Ij.length;){if(K===RE(Q.Ij[l].z1().clientMetadata,"metadata_type_ad_pod_skip_index")){Q=l;break a}l++}Q=void 0}if(Q===void 0)sH("Skip-to-index was requested but target index was not found",W.sV(),W.z1(),{requestingSlot:x,requestingLayout:D});else return Q}else sH("Invalid ad pod skip target index",W.sV(),W.z1(),{requestingSlot:x,requestingLayout:D})};
fz=function(Q,W,x){var D=RE(Q.z1().clientMetadata,"metadata_type_linked_in_player_layout_id");return D?D:(sH("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",Q.sV(),Q.z1(),{requestingSlot:W,requestingLayout:x}),null)};
Xoh=function(Q,W,x,D){kil(Q,W,x,"skipped",function(){ZT(Q,D)})};
kil=function(Q,W,x,D,K){if(!Q.QL){var l=Q.sQ();if(l){l.z1().layoutId!==x.layoutId&&sH("SubLayout mismatch in exitSubLayout",W,x,{exitingSubLayout:x.layoutId,activeSubLayout:l.z1().layoutId});Q.QL=!0;l.An(l.z1(),D);l=Object.assign({},e_(Q),{layoutId:x.layoutId,layoutExitReason:D});var M=l.layoutId,w=l.layoutExitReason;if(l.zN){var S={};C3(l.h2,"wrsx",(S.xc=M,S.ler=w,S.ctp=vl(M),S))}Q.CP(W,x,D);Q.QL=!1;Q.h5?(Q.h5(),Q.qx()||Lz(Q.FE.get())):K()}else sH("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
W,x)}};
ZT=function(Q,W){if(Q.Ku()===Q.Ij.length-1)Q.pm++,rE(Q.Es,Q.layout,"normal"),Q.qx()||Lz(Q.FE.get());else a:{if(Q.Ku()===-1&&(Q.callback.HN(Q.slot,Q.layout),W>0)){sH("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",Q.slot,Q.layout,{indexToPlay:W,layoutId:Q.layout.layoutId});break a}Q.pm=W;W=Q.sQ();if(Q.Ku()>0&&!Q.qx()){var x=Q.FE.get();x.U=!1;var D={};x.B&&x.videoId&&(D.cttAuthInfo={token:x.B,videoId:x.videoId});gK("ad_to_ad",D)}Q.BE(W)}};
Tp=function(Q){y4.call(this,Q.Px,Q.o5,Q.x3,Q.IQ,Q.Jf,Q.FE,Q.bu,Q.slot,Q.layout,Q.fZ,Q.Es,Q.PN,Q.yj)};
on4=function(Q){(Q=Q.sQ())&&Q.pE()};
O0=function(Q){y4.call(this,Q.Px,Q.o5,Q.x3,Q.IQ,Q.Jf,Q.FE,Q.bu,Q.slot,Q.layout,Q.fZ,Q.Es,Q.PN,Q.yj);this.BZ=void 0};
ul1=function(Q,W){Q.iU()&&!V$(Q.cO.U)||Q.callback.BD(Q.slot,Q.layout,W)};
E0=function(Q){return EL(Q.yj.get(),"html5_ssap_pass_transition_reason")};
Y$1=function(Q,W,x){W.L7().currentState<2&&(x=aA(x,Q.yj),W.An(W.z1(),x));x=W.L7().B;Q.CP(Q.slot,W.z1(),x)};
nn5=function(Q,W){if(Q.cO.U.currentState<2){var x=aA(W,Q.yj);x==="error"?Q.callback.Ce(Q.slot,Q.layout,new jX("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:W},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):rE(Q.Es,Q.layout,x)}};
FY=function(Q,W,x){W.L7().currentState>=2||(W.An(W.z1(),x),V$(W.L7())&&(As(Q.bu,Q.slot,W.z1(),x),Q.BZ=void 0))};
VPn=function(Q,W){Q.cO.B===2&&W!==Q.kG()&&sH("onClipEntered: unknown cpn",Q.slot,Q.layout,{cpn:W})};
PsO=function(Q,W){var x=Q.sQ();if(x){var D=x.z1().layoutId,K=Q.Ku()+1;Q.iU()?FY(Q,x,W):x.An(x.z1(),W);K>=0&&K<Q.Ij.length?(x=Q.Ij[K].z1().layoutId,E0(Q)&&(["normal","skipped"].includes(W)||sH("exitActiveLayoutAndPlayNext: unexpected exit reason",Q.slot,Q.layout,{exitReason:W})),Q.x3.get().finishSegmentByCpn(D,x,hA(W,Q.yj))):K===Q.Ij.length?rE(Q.Es,Q.layout,"normal"):sH("unexpected index",Q.slot,Q.layout,{index:K})}else sH("exitActiveLayoutAndPlayNext: no active adapter",Q.slot,Q.layout)};
vnO=function(Q,W){sH(W+": undefined adapter",Q.slot,Q.layout)};
Cs1=function(Q){return pz(Q.slot,Q.yj.get())?new O0(Q):new Tp(Q)};
tA=function(Q,W,x,D,K,l,M){g.N.call(this);this.callback=Q;this.IQ=W;this.Jf=x;this.FE=D;this.M7=K;this.PN=l;this.yj=M;this.WI=!0;this.HR=!1};
Jdh=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v,J,h,G,H,I,c){function O(){var QF=ca(Object.assign({},Mz,{callback:{HN:Q.HN.bind(Q),BD:Q.BD.bind(Q),Vn:function(){},
Ce:Q.Ce.bind(Q)},slot:x,N_:D,KY:function(){rE(M,D,"normal")},
hX:0,eR:1,uU:!0}));return QF?new tA(Q,z,X,Y,QF,K,G):QF}
function T(){var QF=Object.assign({},Mz,{callback:{HN:function(){},
BD:function(){},
Vn:function(){return void rE(M,D,"normal")},
Ce:function(){}},
slot:x,N_:D,KY:function(){},
hX:0,eR:1,uU:!0});return jov({Px:Q,slot:x,layout:D,fZ:l,xX:M,o5:k,x3:H,IQ:z,PN:K,Jf:X,dC5:QF,context:I})}
function Ks(){var QF,f=(QF=D.Zm)!=null?QF:RE(D.clientMetadata,"metadata_type_sub_layouts");QF=Cs1({Px:Q,o5:k,x3:H,IQ:z,Jf:X,FE:Y,bu:W,slot:x,layout:D,fZ:l,Es:M,PN:K,yj:G});for(var t=[],P={wk:0};P.wk<f.length;P={wk:P.wk},P.wk++){var Z=ca(Object.assign({},Mz,{callback:{HN:QF.nL.bind(QF),BD:QF.xE.bind(QF),Vn:QF.Vn.bind(QF),Ce:QF.bP.bind(QF)},slot:x,N_:f[P.wk],KY:function(c5){return function(vu){vu.An(f[c5.wk],"normal")}}(P),
hX:P.wk,eR:f.length,uU:!1}));if(!Z)return;t.push(Z)}QF.Ij=t;return QF}
var Mz={vt:w,BN:S,EQ:b,IQ:z,o5:k,Jf:X,ly:u,FE:Y,Y3:v,JO:J,Xs:h,yj:G,context:I,w1:c};w=tD(D,{xD:["metadata_type_sub_layouts"],wP:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||D.Zm!==void 0&&D.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";S=pz(x,G.get())&&tD(D,{xD:[],wP:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});b=tD(D,{xD:[],wP:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(w)return Ks();if(S)return T();if(b)return O()};
QW=function(Q,W,x,D,K,l,M,w,S,b){this.callback=Q;this.slot=W;this.layout=x;this.o5=D;this.x3=K;this.eQ=l;this.Jf=M;this.Ht=w;this.vt=S;this.L=b;this.driftRecoveryMs=RE(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.N=RE(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0};
hv4=function(Q){var W=RE(Q.layout.clientMetadata,"metadata_type_layout_enter_ms"),x=RE(Q.layout.clientMetadata,"metadata_type_layout_exit_ms");Q=Q.eQ.get();W=poz(Q.D,W,x);return Math.min(x,W!==null?W:Infinity)};
xe=function(Q,W){var x;Wj(Q.vt.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(x=Q.o5.get().yr)==null?void 0:x.clientPlaybackNonce,adClientData:Q.layout.EV.adClientDataEntry},W)})};
D2=function(Q,W,x,D,K,l,M,w,S,b,z){QW.call(this,Q,W,x,D,K,l,M,w,S,b);this.D=z;this.U=this.B=null;Q=g.V(this.D);for(W=Q.next();!W.done;W=Q.next())W=W.value,Du(W.z1().clientMetadata,"metadata_type_survey_overlay")&&(this.U=W.z1().layoutId)};
GiO=function(Q,W){var x=axF(Q,W);x||sH("Expected subLRA found by layout ID",Q.slot,Q.layout,{layoutId:W});Q.B={ud:x};x?x.startRendering(x.z1()):W===Q.U&&sH("Failed to find rendering adapter for survey media layout",Q.slot,Q.layout,{surveyMediaLayoutId:W})};
axF=function(Q,W){return W==null?null:Q.D.find(function(x){return x.z1().layoutId===W})||null};
dcs=function(Q,W,x,D,K,l,M,w,S,b){var z=K-D,k=Du(W.clientMetadata,"metadata_type_survey_overlay"),X,u=((X=Q.fulfilledLayout||RE(Q.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:RE(X.clientMetadata,"metadata_type_ssdai_ads_config"))||"";if(!z)return M.WC(x,u,2,l,D,K,Q.slotId),K$(b,"ads_iraot","sid."+Q.slotId+";enterMs."+D+";exitMs."+K+";hso."+k+";vid."+x.video_id),null;z=M.Uf(x,u,2,l,D,K,Q.slotId);K$(b,"ads_atct","sid."+Q.slotId+";enterMs."+D+";exitMs."+K+";hso."+k+";vid."+x.video_id);
if(!z)return sH("Unexpected failure to add to playback timeline",Q,W,S()),null;Q=Q.slotId;W=W.layoutId;z?(w.B.has(z)&&sH("Unexpected remap of timeline playback"),w.B.set(z,{slotId:Q,layoutId:W})):sH("Invalid timeline playback ID");D+l>K&&M.Ru(z,K-D);return z};
iAl=function(Q,W,x){var D=RE(W.clientMetadata,"metadata_type_sodar_extension_data");if(D)try{t0a(x,D)}catch(K){sH("Unexpected error when loading Sodar",Q,W,{error:K})}};
Adn=function(Q,W,x,D,K,l,M){lP(Q,W,new g.zV(x,new g.lW),D,K,M,!1,l)};
lP=function(Q,W,x,D,K,l,M,w){M=M===void 0?!0:M;kd(x)&&X2(K,0,null)&&(!BP(Q,"impression")&&w&&w(),Q.zn("impression"));BP(Q,"impression")&&(g.XV(x,4)&&!g.XV(x,2)&&Q.H3("pause"),kZ(x,4)<0&&!(kZ(x,2)<0)&&Q.H3("resume"),g.XV(x,16)&&K>=.5&&Q.H3("seek"),M&&g.XV(x,2)&&jB(Q,x.state,W,D,K,l))};
jB=function(Q,W,x,D,K,l,M,w){BP(Q,"impression")&&(l?(l=K-D,l=l>=-1&&l<=2):l=Math.abs(D-K)<=1,ME(Q,W,l?D:K,x,D,M,w&&l),l&&Q.zn("complete"))};
ME=function(Q,W,x,D,K,l,M){q_(Q,x*1E3,M);K<=0||x<=0||(W==null?0:g.r(W,16))||(W==null?0:g.r(W,32))||(X2(x,K*.25,D)&&(l&&!BP(Q,"first_quartile")&&l("first"),Q.zn("first_quartile")),X2(x,K*.5,D)&&(l&&!BP(Q,"midpoint")&&l("second"),Q.zn("midpoint")),X2(x,K*.75,D)&&(l&&!BP(Q,"third_quartile")&&l("third"),Q.zn("third_quartile")))};
HAs=function(Q,W){BP(Q,"impression")&&Q.H3(W?"fullscreen":"end_fullscreen")};
Ucv=function(Q){BP(Q,"impression")&&Q.H3("clickthrough")};
q$Q=function(Q){Q.H3("active_view_measurable")};
BK1=function(Q){BP(Q,"impression")&&!BP(Q,"seek")&&Q.H3("active_view_fully_viewable_audible_half_duration")};
$c2=function(Q){BP(Q,"impression")&&!BP(Q,"seek")&&Q.H3("active_view_viewable")};
IxQ=function(Q){BP(Q,"impression")&&!BP(Q,"seek")&&Q.H3("audio_audible")};
mc4=function(Q){BP(Q,"impression")&&!BP(Q,"seek")&&Q.H3("audio_measurable")};
NK2=function(Q,W,x,D,K,l,M,w,S,b,z,k){this.callback=Q;this.slot=W;this.layout=x;this.x3=D;this.Ht=K;this.Jf=l;this.CK=M;this.BN=w;this.EQ=S;this.yj=b;this.vt=z;this.o5=k;this.Iv=!0;this.Ox=this.iN=null;this.adCpn=void 0;this.B=!1};
cd2=function(Q,W,x){var D;K$(Q.vt.get(),"ads_qua","cpn."+RE(Q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((D=nz(Q.o5.get(),2))==null?void 0:D.clientPlaybackNonce)+";qt."+W+";clr."+x)};
gn5=function(Q,W){var x,D;K$(Q.vt.get(),"ads_imp","cpn."+RE(Q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((x=nz(Q.o5.get(),2))==null?void 0:x.clientPlaybackNonce)+";clr."+W+";skp."+!!g.e((D=RE(Q.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:D.skipOrPreviewRenderer,Re))};
w2=function(Q){return{enterMs:RE(Q.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:RE(Q.clientMetadata,"metadata_type_layout_exit_ms")}};
SB=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u){QW.call(this,Q,W,x,D,K,M,w,S,b,k);this.CK=l;this.EQ=z;this.BN=X;this.yj=u;this.Ox=this.iN=null};
ydh=function(Q,W){var x;K$(Q.vt.get(),"ads_imp","acpn."+((x=nz(Q.o5.get(),2))==null?void 0:x.clientPlaybackNonce)+";clr."+W)};
evs=function(Q,W,x){var D;K$(Q.vt.get(),"ads_qua","cpn."+RE(Q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((D=nz(Q.o5.get(),2))==null?void 0:D.clientPlaybackNonce)+";qt."+W+";clr."+x)};
bP=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v,J,h,G,H,I){this.PN=Q;this.fZ=W;this.Es=x;this.o5=D;this.x3=K;this.Jf=l;this.vt=M;this.CK=w;this.eQ=S;this.BN=b;this.EQ=z;this.IQ=k;this.ly=X;this.FE=u;this.Y3=Y;this.JO=v;this.Xs=J;this.yj=h;this.B=G;this.context=H;this.w1=I};
sj=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v,J,h){this.PN=Q;this.fZ=W;this.Es=x;this.vt=D;this.BN=K;this.EQ=l;this.IQ=M;this.o5=w;this.Jf=S;this.ly=b;this.FE=z;this.Y3=k;this.JO=X;this.Xs=u;this.yj=Y;this.x3=v;this.context=J;this.w1=h};
fxD=function(Q,W,x,D){MA.call(this,"survey-interstitial",Q,W,x,D)};
zE=function(Q,W,x,D,K){PP.call(this,x,Q,W,D);this.vt=K;Q=RE(W.clientMetadata,"metadata_type_ad_placement_config");this.Ht=new dt(W.bN,K,Q,W.layoutId)};
ke=function(Q){return Math.round(Q.width)+"x"+Math.round(Q.height)};
oe=function(Q,W,x){x=x===void 0?Xc:x;x.width<Xc.width&&(x=Xc);if(Q.width<x.width||Q.height<x.height)return{B7:3,iQ:501,errorMessage:"ad("+ke(x)+") larger than container("+ke(Q)+")."};if(x.width*x.height>Q.width*Q.height*.2)return{B7:3,iQ:501,errorMessage:"ad("+ke(x)+") to container("+ke(Q)+") ratio exceeds limit."};if(x.height>Q.height/3-W)return{B7:3,iQ:501,errorMessage:"ad("+ke(x)+") covers container("+ke(Q)+") center."}};
ZAD=function(Q,W){var x=RE(Q.clientMetadata,"metadata_type_ad_placement_config");return new dt(Q.bN,W,x,Q.layoutId)};
uP=function(Q){return RE(Q.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")};
Ye=function(Q,W,x,D){MA.call(this,"invideo-overlay",Q,W,x,D);this.interactionLoggingClientData=D};
n$=function(Q,W,x,D,K,l,M,w,S,b,z,k){PP.call(this,l,Q,W,K);this.vt=x;this.N=M;this.Jf=w;this.JO=S;this.yj=b;this.X=z;this.L=k;this.Ht=ZAD(W,x)};
L7v=function(){var Q=["metadata_type_invideo_overlay_ad_renderer"];id().forEach(function(W){Q.push(W)});
return{xD:Q,wP:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
VW=function(Q,W,x,D,K,l,M,w,S,b,z,k,X){PP.call(this,l,Q,W,K);this.vt=x;this.N=M;this.S=w;this.Jf=S;this.JO=b;this.yj=z;this.X=k;this.L=X;this.Ht=ZAD(W,x)};
rd4=function(){for(var Q=["metadata_type_invideo_overlay_ad_renderer"],W=g.V(id()),x=W.next();!x.done;x=W.next())Q.push(x.value);return{xD:Q,wP:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
Pj=function(Q){this.Jf=Q;this.B=!1};
TKl=function(Q,W,x){MA.call(this,"survey",Q,{},W,x)};
vj=function(Q,W,x,D,K,l,M){PP.call(this,x,Q,W,D);this.N=K;this.Jf=l;this.yj=M};
OAF=function(Q,W,x,D,K,l,M,w,S,b){this.Vh=Q;this.Jf=W;this.vt=x;this.N=D;this.BN=K;this.U=l;this.D=M;this.JO=w;this.yj=S;this.B=b};
EnQ=function(Q,W,x,D,K,l,M,w,S,b){this.Vh=Q;this.Jf=W;this.vt=x;this.N=D;this.BN=K;this.U=l;this.D=M;this.JO=w;this.yj=S;this.B=b};
C$=function(Q,W,x,D,K,l,M,w,S,b){l7.call(this,Q,W,x,D,K,l,M,S);this.p7=w;this.o5=b};
F7z=function(){var Q=Dr5();Q.xD.push("metadata_type_ad_info_ad_metadata");return Q};
tPn=function(Q,W,x,D,K,l,M){this.Vh=Q;this.Jf=W;this.vt=x;this.U=D;this.p7=K;this.B=l;this.o5=M};
Qth=function(Q,W,x,D,K,l,M,w){this.Vh=Q;this.Jf=W;this.vt=x;this.U=D;this.p7=K;this.B=l;this.yj=M;this.o5=w};
JK=function(Q,W){this.slotId=W;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=Q(this.triggerType)};
p$=function(Q,W){this.adPodIndex=Q;this.B=W.length;this.adBreakLengthSeconds=W.reduce(function(D,K){return D+K},0);
var x=0;for(Q+=1;Q<W.length;Q++)x+=W[Q];this.adBreakRemainingLengthSeconds=x};
hK=function(Q,W,x){this.n0=W;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=x||Q(this.triggerType)};
ae=function(Q,W,x){this.B=W;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=x||Q(this.triggerType)};
GE=function(Q,W,x,D){this.n0=W;this.visible=x;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=D||Q(this.triggerType)};
WyF=function(Q){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=Q(this.triggerType)};
xsD=function(Q){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=Q(this.triggerType)};
d2=function(Q,W,x){this.triggeringLayoutId=W;this.slotId=x;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=Q(this.triggerType)};
iP=function(Q,W,x){this.triggeringLayoutId=W;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=x||Q(this.triggerType)};
AK=function(Q,W,x,D){this.triggeringLayoutId=W;this.B=x;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=D||Q(this.triggerType)};
DsF=function(Q){switch(Q){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 E("Invalid layout exit reason: "+
Q)}};
Hj=function(Q,W,x){this.triggeringLayoutId=W;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=x||Q(this.triggerType)};
Uj=function(Q,W){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=W||Q(this.triggerType)};
qE=function(Q,W){this.breakDurationMs=Q;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=W||""};
Bj=function(Q,W){this.breakDurationMs=Q;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=W||""};
$e=function(Q,W){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=W||Q(this.triggerType)};
Ky4=function(Q){this.triggerId=Q;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
l1Q=function(Q,W,x,D,K){this.n0=W;this.B=x;this.visible=D;this.layoutId=K;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=Q(this.triggerType)};
Ie=function(Q,W,x,D,K){this.n0=W;this.B=x;this.visible=D;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=K||Q(this.triggerType)};
mm=function(Q,W){this.breakDurationMs=Q;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=W||""};
jtz=function(Q,W,x){this.n0=W;this.B=x;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=Q(this.triggerType)};
NE=function(Q,W,x,D,K){this.B=W;this.slotType=x;this.layoutType=D;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=K||Q(this.triggerType)};
cj=function(Q,W){this.B=W;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=Q(this.triggerType)};
g2=function(Q,W,x){this.layoutId=W;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=x||Q(this.triggerType)};
yW=function(Q,W,x){this.B=W;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=x||Q(this.triggerType)};
WYD=function(Q,W){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=W;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=Q(this.triggerType)};
MgO=function(Q,W){this.B=Q;this.index=W};
RFO=function(Q){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=Q(this.triggerType)};
eB=function(Q,W){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=W||Q(this.triggerType)};
wQ4=function(Q,W,x){this.layoutId=W;this.offsetMs=x;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=Q(this.triggerType)};
S2h=function(Q,W){this.layoutId=W;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=Q(this.triggerType)};
bIn=function(Q,W,x){this.layoutId=W;this.offsetMs=x;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=Q(this.triggerType)};
f$=function(Q,W,x){this.triggeringLayoutId=W;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=x||Q(this.triggerType)};
Z2=function(Q,W,x){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=x||Q(this.triggerType)};
L$=function(Q,W,x){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=x||Q(this.triggerType)};
r2=function(Q,W){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=Q(this.triggerType)};
TE=function(Q,W){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=Q(this.triggerType)};
Oj=function(Q,W,x){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=x||Q(this.triggerType)};
Ej=function(Q,W){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=Q(this.triggerType)};
Fc=function(Q,W,x){this.triggeringLayoutId=W;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=x||Q(this.triggerType)};
tK=function(Q,W,x,D){this.durationMs=W;this.triggeringLayoutId=x;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=D||Q(this.triggerType)};
Q3=function(Q,W,x,D){this.category=Q;this.trigger=W;this.slot=x;this.layout=D};
WD=function(Q){return(Q==null?void 0:Q.layoutId)!=null&&(Q==null?void 0:Q.layoutType)!=null};
st2=function(Q){if(!WD(Q.adLayoutMetadata))return!1;Q=Q.renderingContent;return g.e(Q,xO)||g.e(Q,Dy)||g.e(Q,KU)||g.e(Q,l6)||g.e(Q,jN)||g.e(Q,MB)?!0:!1};
zFv=function(Q){return(Q==null?void 0:Q.durationMs)!=null&&(Q==null?void 0:Q.durationMs)>0};
RQ=function(Q){return!!(Q.Cjf&&Q.slot&&Q.layout)};
w9=function(Q){var W,x=(W=Q.config)==null?void 0:W.adPlacementConfig;Q=Q.renderer;return!(!x||x.kind==null||!Q)};
kC2=function(Q){if(!WD(Q.adLayoutMetadata))return!1;Q=Q.renderingContent;return g.e(Q,b7)||g.e(Q,sC)||g.e(Q,ww)||g.e(Q,Sm)?!0:!1};
SN=function(Q){return Q.playerVars!==void 0&&Q.pings!==void 0&&Q.externalVideoId!==void 0};
u6=function(Q){if(!WD(Q.adLayoutMetadata))return!1;Q=Q.renderingContent;var W=g.e(Q,b6);return W?sS(W):(W=g.e(Q,zv))?SN(W):(W=g.e(Q,kO))?W.playerVars!==void 0:(W=g.e(Q,b7))?W.durationMilliseconds!==void 0:g.e(Q,X_)||g.e(Q,oQ)?!0:!1};
sS=function(Q){Q=(Q.sequentialLayouts||[]).map(function(W){return g.e(W,YO)});
return Q.length>0&&Q.every(u6)};
aQ=function(Q){return WD(Q.adLayoutMetadata)?(Q=g.e(Q.renderingContent,nU))&&Q.pings?!0:!1:!1};
Vgz=function(Q){if(!WD(Q.adLayoutMetadata))return!1;if(g.e(Q.renderingContent,XQ2)||g.e(Q.renderingContent,owF))return!0;var W=g.e(Q.renderingContent,Gv);return g.e(Q.renderingContent,d9)||g.e(W==null?void 0:W.sidePanel,uGh)||g.e(W==null?void 0:W.sidePanel,Y2a)||g.e(W==null?void 0:W.sidePanel,nw4)?!0:!1};
pQF=function(Q){var W;(W=!Q)||(W=Q.adSlotMetadata,W=!((W==null?void 0:W.slotId)!==void 0&&(W==null?void 0:W.slotType)!==void 0));if(W||!(Plh(Q)||Q.slotEntryTrigger&&Q.slotFulfillmentTriggers&&Q.slotExpirationTriggers))return!1;var x;Q=(x=Q.fulfillmentContent)==null?void 0:x.fulfilledLayout;return(x=g.e(Q,YO))?u6(x):(x=g.e(Q,i6))?Vgz(x):(x=g.e(Q,vwO))?kC2(x):(x=g.e(Q,Cl5))?st2(x):(x=g.e(Q,Jyz))?WD(x.adLayoutMetadata)?g.e(x.renderingContent,xO)?!0:!1:!1:(Q=g.e(Q,A3))?aQ(Q):!1};
Plh=function(Q){var W;Q=g.e((W=Q.fulfillmentContent)==null?void 0:W.fulfilledLayout,i6);var x;return Q&&((x=Q.adLayoutMetadata)==null?void 0:x.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&Q.layoutExitNormalTriggers===void 0};
hFF=function(Q){var W;return(Q==null?void 0:(W=Q.adSlotMetadata)==null?void 0:W.slotType)==="SLOT_TYPE_IN_PLAYER"};
GCQ=function(Q,W){var x;if((x=Q.questions)==null||!x.length||!Q.playbackCommands||(W===void 0||!W)&&Q.questions.length!==1)return!1;Q=g.V(Q.questions);for(W=Q.next();!W.done;W=Q.next()){W=W.value;var D=x=void 0,K=((x=g.e(W,HD))==null?void 0:x.surveyAdQuestionCommon)||((D=g.e(W,US))==null?void 0:D.surveyAdQuestionCommon);if(!a1n(K))return!1}return!0};
dsF=function(Q){Q=((Q==null?void 0:Q.playerOverlay)||{}).instreamSurveyAdRenderer;var W;if(Q)if(Q.playbackCommands&&Q.questions&&Q.questions.length===1){var x,D=((W=g.e(Q.questions[0],HD))==null?void 0:W.surveyAdQuestionCommon)||((x=g.e(Q.questions[0],US))==null?void 0:x.surveyAdQuestionCommon);W=a1n(D)}else W=!1;else W=!1;return W};
a1n=function(Q){if(!Q)return!1;Q=g.e(Q.instreamAdPlayerOverlay,qB);var W=g.e(Q==null?void 0:Q.skipOrPreviewRenderer,Re),x=g.e(Q==null?void 0:Q.adInfoRenderer,BD);return(g.e(Q==null?void 0:Q.skipOrPreviewRenderer,$O)||W)&&x?!0:!1};
iIs=function(Q){return Q.linearAds!=null&&WD(Q.adLayoutMetadata)};
Ay5=function(Q){return Q.linearAd!=null&&Q.adVideoStart!=null};
HIa=function(Q){if(isNaN(Number(Q.timeoutSeconds))||!Q.text||!Q.ctaButton||!g.e(Q.ctaButton,g.IQ)||!Q.brandImage)return!1;var W;return Q.backgroundImage&&g.e(Q.backgroundImage,mF)&&((W=g.e(Q.backgroundImage,mF))==null?0:W.landscape)?!0:!1};
NB=function(Q,W,x,D,K,l,M){g.N.call(this);this.yj=Q;this.B=W;this.D=D;this.o5=K;this.N=l;this.U=M};
BFs=function(Q,W,x){var D,K=((D=x.adSlots)!=null?D:[]).map(function(w){return g.e(w,cD)});
if(x.vU)if(RE(W.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))ud(Q.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},W.slotId);
else{if(Q.yj.get().J.C().j("h5_check_forecasting_renderer_for_throttled_midroll")){var l=x.CU.filter(function(w){var S;return((S=w.renderer)==null?void 0:S.clientForecastingAdRenderer)!=null});
l.length!==0?Usa(Q.U,l,K,W.slotId,x.ssdaiAdsConfig):ud(Q.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},W.slotId)}else ud(Q.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},W.slotId);
q21(Q.N,W)}else{var M;D={EJ:Math.round(((l=RE(W.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:l.EJ)||0),LK:(M=RE(W.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:M.LK};Usa(Q.U,x.CU,K,W.slotId,x.ssdaiAdsConfig,D)}};
I1v=function(Q,W,x,D,K,l,M){var w=nz(Q.o5.get(),1);ud(Q.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return $s1(Q.D.get(),x,D,K,w.clientPlaybackNonce,w.FG,w.daiEnabled,w,l,M)},W)};
NFn=function(Q,W,x,D,K,l,M){W=ms5(W,l,Number(D.prefetchMilliseconds)||0,M);Q=W instanceof E?W:g9(Q,D,K,W,x);return Q instanceof E?Q:[Q]};
cy5=function(Q,W,x,D,K){var l=Y4(Q.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");D=[new mG({getAdBreakUrl:D.getAdBreakUrl,EJ:0,LK:0}),new Qm(!0)];Q=W.pauseDurationMs?W.lactThresholdMs?{slotId:l,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Oj(Q.B,l),slotFulfillmentTriggers:[new xsD(Q.B)],slotExpirationTriggers:[new yW(Q.B,K),new L$(Q.B,l)],Mj:"core",clientMetadata:new Mp(D),adSlotLoggingData:x}:new E("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new E("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
return Q instanceof E?Q:[Q]};
gwn=function(Q){var W,x;return((W=Q.renderer)==null?void 0:(x=W.adBreakServiceRenderer)==null?void 0:x.getAdBreakUrl)!==void 0};
y3=function(Q,W,x){if(Q.beforeContentVideoIdStartedTrigger)Q=Q.beforeContentVideoIdStartedTrigger?new hK(lS,W,Q.id):new E("Not able to create BeforeContentVideoIdStartedTrigger");else{if(Q.layoutIdExitedTrigger){var D;W=(D=Q.layoutIdExitedTrigger)!=null&&D.triggeringLayoutId?new Hj(lS,Q.layoutIdExitedTrigger.triggeringLayoutId,Q.id):new E("Not able to create LayoutIdExitedTrigger")}else{if(Q.layoutExitedForReasonTrigger){var K,l;((K=Q.layoutExitedForReasonTrigger)==null?0:K.triggeringLayoutId)&&((l=
Q.layoutExitedForReasonTrigger)==null?0:l.layoutExitReason)?(W=DsF(Q.layoutExitedForReasonTrigger.layoutExitReason),Q=W instanceof E?W:new AK(lS,Q.layoutExitedForReasonTrigger.triggeringLayoutId,[W],Q.id)):Q=new E("Not able to create LayoutIdExitedForReasonTrigger")}else{if(Q.onLayoutSelfExitRequestedTrigger){var M;W=(M=Q.onLayoutSelfExitRequestedTrigger)!=null&&M.triggeringLayoutId?new g2(lS,Q.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,Q.id):new E("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(Q.onNewPlaybackAfterContentVideoIdTrigger)Q=
Q.onNewPlaybackAfterContentVideoIdTrigger?new yW(lS,W,Q.id):new E("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(Q.skipRequestedTrigger){var w;W=(w=Q.skipRequestedTrigger)!=null&&w.triggeringLayoutId?new f$(lS,Q.skipRequestedTrigger.triggeringLayoutId,Q.id):new E("Not able to create SkipRequestedTrigger")}else if(Q.slotIdEnteredTrigger){var S;W=(S=Q.slotIdEnteredTrigger)!=null&&S.triggeringSlotId?new Z2(lS,Q.slotIdEnteredTrigger.triggeringSlotId,Q.id):new E("Not able to create SlotIdEnteredTrigger")}else if(Q.slotIdExitedTrigger){var b;
W=(b=Q.slotIdExitedTrigger)!=null&&b.triggeringSlotId?new L$(lS,Q.slotIdExitedTrigger.triggeringSlotId,Q.id):new E("Not able to create SkipRequestedTrigger")}else if(Q.surveySubmittedTrigger){var z;W=(z=Q.surveySubmittedTrigger)!=null&&z.triggeringLayoutId?new Fc(lS,Q.surveySubmittedTrigger.triggeringLayoutId,Q.id):new E("Not able to create SurveySubmittedTrigger")}else{if(Q.mediaResumedTrigger)Q=Q.mediaResumedTrigger&&Q.id?new Ky4(Q.id):new E("Not able to create MediaResumedTrigger");else{if(Q.closeRequestedTrigger){var k;
W=(k=Q.closeRequestedTrigger)!=null&&k.triggeringLayoutId?new ae(lS,Q.closeRequestedTrigger.triggeringLayoutId,Q.id):new E("Not able to create CloseRequestedTrigger")}else if(Q.slotIdScheduledTrigger){var X;W=(X=Q.slotIdScheduledTrigger)!=null&&X.triggeringSlotId?new Oj(lS,Q.slotIdScheduledTrigger.triggeringSlotId,Q.id):new E("Not able to create SlotIdScheduledTrigger")}else{if(Q.mediaTimeRangeTrigger){var u;D=Number((u=Q.mediaTimeRangeTrigger)==null?void 0:u.offsetStartMilliseconds);var Y;M=Number((Y=
Q.mediaTimeRangeTrigger)==null?void 0:Y.offsetEndMilliseconds);isFinite(D)&&isFinite(M)?(Y=M,Y===-1&&(Y=x),x=D>Y?new E("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:D,offsetEndMs:Y},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",Y===x&&D-500<=Y):new CT(D,Y),Q=x instanceof E?x:new Ie(lS,W,x,!1,Q.id)):Q=new E("Not able to create MediaTimeRangeTrigger")}else if(Q.contentVideoIdEndedTrigger)Q=Q.contentVideoIdEndedTrigger?new GE(lS,W,!1,Q.id):new E("Not able to create ContentVideoIdEndedTrigger");
else{if(Q.layoutIdEnteredTrigger){var v;W=(v=Q.layoutIdEnteredTrigger)!=null&&v.triggeringLayoutId?new iP(lS,Q.layoutIdEnteredTrigger.triggeringLayoutId,Q.id):new E("Not able to create LayoutIdEnteredTrigger")}else if(Q.timeRelativeToLayoutEnterTrigger){var J;W=(J=Q.timeRelativeToLayoutEnterTrigger)!=null&&J.triggeringLayoutId?new tK(lS,Number(Q.timeRelativeToLayoutEnterTrigger.durationMs),Q.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,Q.id):new E("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(Q.onDifferentLayoutIdEnteredTrigger){var h;
W=(h=Q.onDifferentLayoutIdEnteredTrigger)!=null&&h.triggeringLayoutId&&Q.onDifferentLayoutIdEnteredTrigger.slotType&&Q.onDifferentLayoutIdEnteredTrigger.layoutType?new NE(lS,Q.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,Q.onDifferentLayoutIdEnteredTrigger.slotType,Q.onDifferentLayoutIdEnteredTrigger.layoutType,Q.id):new E("Not able to create CloseRequestedTrigger")}else{if(Q.liveStreamBreakStartedTrigger)Q=Q.liveStreamBreakStartedTrigger&&Q.id?new $e(lS,Q.id):new E("Not able to create LiveStreamBreakStartedTrigger");
else if(Q.liveStreamBreakEndedTrigger)Q=Q.liveStreamBreakEndedTrigger&&Q.id?new Uj(lS,Q.id):new E("Not able to create LiveStreamBreakEndedTrigger");else{if(Q.liveStreamBreakScheduledDurationMatchedTrigger){var G;W=(G=Q.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&G.breakDurationMs?new qE(Number(Q.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,Q.id):new E("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(Q.liveStreamBreakScheduledDurationNotMatchedTrigger){var H;
W=(H=Q.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&H.breakDurationMs?new Bj(Number(Q.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,Q.id):new E("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(Q.newSlotScheduledWithBreakDurationTrigger){var I;W=(I=Q.newSlotScheduledWithBreakDurationTrigger)!=null&&I.breakDurationMs?new mm(Number(Q.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,Q.id):new E("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else W=
Q.prefetchCacheExpiredTrigger?new eB(lS,Q.id):new E("Not able to convert an AdsControlflowTrigger.");Q=W}W=Q}Q=W}W=Q}Q=W}W=Q}Q=W}W=Q}Q=W}W=Q}Q=W}return Q};
eN=function(Q,W){W.B>=2&&(Q.slot_pos=W.adPodIndex);Q.autoplay="1"};
eFn=function(Q,W,x,D,K,l,M,w){return W===null?new E("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:W,ActionCompanionAdRenderer:D}):[yy2(Q,W,M,l,function(S){var b=S.slotId;S=w(S);var z=D.adLayoutLoggingData,k=new Mp([new m9(D),new Ev(K)]);b=F0(x.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",b);var X={layoutId:b,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Mj:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bN:new Map,
layoutExitNormalTriggers:[new yW(x.B,M)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:k,EV:S(X),adLayoutLoggingData:z}})]};
f1a=function(Q,W,x,D,K,l,M,w){return W===null?new E("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:W,TopBannerImageTextIconButtonedLayoutViewModel:D}):[yy2(Q,W,M,l,function(S){var b=S.slotId;S=w(S);var z=D.adLayoutLoggingData,k=new Mp([new Nb(D),new Ev(K)]);b=F0(x.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",b);var X={layoutId:b,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Mj:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
bN:new Map,layoutExitNormalTriggers:[new yW(x.B,M)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:k,EV:S(X),adLayoutLoggingData:z}})]};
TF4=function(Q,W,x,D,K,l){if(!l)for(W=g.V(W),l=W.next();!l.done;l=W.next())l=l.value,fU(Q,l.renderer,l.config.adPlacementConfig.kind);Q=Array.from(Q.values()).filter(function(z){return ZI5(z)});
W=[];l=g.V(Q);for(var M=l.next(),w={};!M.done;w={bY:void 0},M=l.next()){w.bY=M.value;M=g.V(w.bY.q$);for(var S=M.next(),b={};!S.done;b={B8:void 0},S=M.next())b.B8=S.value,S=function(z,k){return function(X){return z.B8.ZC(X,k.bY.instreamVideoAdRenderer.elementId,z.B8.xt)}}(b,w),b.B8.isContentVideoCompanion?W.push(Lyv(x,D,K,w.bY.instreamVideoAdRenderer.elementId,b.B8.associatedCompositePlayerBytesLayoutId,b.B8.adSlotLoggingData,S)):Q.length>1?W.push(ry1(x,D,K,w.bY.instreamVideoAdRenderer.elementId,b.B8.adSlotLoggingData,
function(z,k){return function(X){return z.B8.ZC(X,k.bY.instreamVideoAdRenderer.elementId,z.B8.xt,z.B8.associatedCompositePlayerBytesLayoutId)}}(b,w))):W.push(ry1(x,D,K,w.bY.instreamVideoAdRenderer.elementId,b.B8.adSlotLoggingData,S))}return W};
fU=function(Q,W,x){if(W=OIF(W)){W=g.V(W);for(var D=W.next();!D.done;D=W.next())if((D=D.value)&&D.externalVideoId){var K=Zy(Q,D.externalVideoId);K.instreamVideoAdRenderer||(K.instreamVideoAdRenderer=D,K.PC=x)}else sH("InstreamVideoAdRenderer without externalVideoId")}};
OIF=function(Q){var W=[],x=Q.sandwichedLinearAdRenderer&&Q.sandwichedLinearAdRenderer.linearAd&&g.e(Q.sandwichedLinearAdRenderer.linearAd,zv);if(x)return W.push(x),W;if(Q.instreamVideoAdRenderer)return W.push(Q.instreamVideoAdRenderer),W;if(Q.linearAdSequenceRenderer&&Q.linearAdSequenceRenderer.linearAds){Q=g.V(Q.linearAdSequenceRenderer.linearAds);for(x=Q.next();!x.done;x=Q.next())x=x.value,g.e(x,zv)&&W.push(g.e(x,zv));return W}return null};
ZI5=function(Q){if(Q.instreamVideoAdRenderer===void 0)return sH("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var W=g.V(Q.q$),x=W.next();!x.done;x=W.next()){x=x.value;if(x.ZC===void 0)return!1;if(x.xt===void 0)return sH("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(Q.PC===void 0||x.w4===void 0||Q.PC!==x.w4&&x.w4!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(Q.instreamVideoAdRenderer.elementId===void 0)return sH("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:Q.PC,"matching APSR kind":x.w4}),!1}return!0};
Zy=function(Q,W){Q.has(W)||Q.set(W,{instreamVideoAdRenderer:void 0,PC:void 0,adVideoId:W,q$:[]});return Q.get(W)};
LU=function(Q,W,x,D,K,l,M,w,S){K?Zy(Q,K).q$.push({fmj:W,w4:x,isContentVideoCompanion:D,xt:M,associatedCompositePlayerBytesLayoutId:l,adSlotLoggingData:w,ZC:S}):sH("Companion AdPlacementSupportedRenderer without adVideoId")};
r9=function(Q){var W=0;Q=g.V(Q.questions);for(var x=Q.next();!x.done;x=Q.next())if(x=x.value,x=g.e(x,HD)||g.e(x,US)){var D=void 0;W+=((D=x.surveyAdQuestionCommon)==null?void 0:D.durationMilliseconds)||0}return W};
Tv=function(Q){var W,x,D,K,l=((x=g.e((W=Q.questions)==null?void 0:W[0],HD))==null?void 0:x.surveyAdQuestionCommon)||((K=g.e((D=Q.questions)==null?void 0:D[0],US))==null?void 0:K.surveyAdQuestionCommon),M;W=[].concat(g.C(((M=Q.playbackCommands)==null?void 0:M.instreamAdCompleteCommands)||[]),g.C((l==null?void 0:l.timeoutCommands)||[]));var w,S,b,z,k,X,u,Y,v,J,h,G,H,I,c,O,T,Ks,Mz,QF;return{impressionCommands:(w=Q.playbackCommands)==null?void 0:w.impressionCommands,errorCommands:(S=Q.playbackCommands)==
null?void 0:S.errorCommands,muteCommands:(b=Q.playbackCommands)==null?void 0:b.muteCommands,unmuteCommands:(z=Q.playbackCommands)==null?void 0:z.unmuteCommands,pauseCommands:(k=Q.playbackCommands)==null?void 0:k.pauseCommands,rewindCommands:(X=Q.playbackCommands)==null?void 0:X.rewindCommands,resumeCommands:(u=Q.playbackCommands)==null?void 0:u.resumeCommands,skipCommands:(Y=Q.playbackCommands)==null?void 0:Y.skipCommands,progressCommands:(v=Q.playbackCommands)==null?void 0:v.progressCommands,Gz3:(J=
Q.playbackCommands)==null?void 0:J.clickthroughCommands,fullscreenCommands:(h=Q.playbackCommands)==null?void 0:h.fullscreenCommands,activeViewViewableCommands:(G=Q.playbackCommands)==null?void 0:G.activeViewViewableCommands,activeViewMeasurableCommands:(H=Q.playbackCommands)==null?void 0:H.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(I=Q.playbackCommands)==null?void 0:I.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(c=Q.playbackCommands)==
null?void 0:(O=c.activeViewTracking)==null?void 0:O.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(T=Q.playbackCommands)==null?void 0:(Ks=T.activeViewTracking)==null?void 0:Ks.activeViewAudioMeasurableCommands,endFullscreenCommands:(Mz=Q.playbackCommands)==null?void 0:Mz.endFullscreenCommands,abandonCommands:(QF=Q.playbackCommands)==null?void 0:QF.abandonCommands,completeCommands:W}};
FyD=function(Q,W,x,D,K,l,M){return function(w,S){return Ewh(Q,S.slotId,w,l,function(b,z){var k=S.layoutId;b=M(b);return OS(W,k,z,K,b,"LAYOUT_TYPE_SURVEY",[new kj(x),D],x.adLayoutLoggingData)})}};
W95=function(Q,W,x,D,K,l,M){if(!tgD(Q))return new E("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:Q});var w=Q.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Q9h(l,W,x,D,function(S){var b=S.slotId;S=M(S);b=F0(K.U.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",b);var z={layoutId:b,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Mj:"core"},k=new Hj(K.B,D);return{layoutId:b,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",bN:new Map,layoutExitNormalTriggers:[k],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:new Mp([new Xu(w)]),EV:S(z)}})]};
tgD=function(Q){Q=g.e(Q==null?void 0:Q.additionalPlayerOverlay,xbF);if(!Q)return!1;var W=Q.slidingMessages;return Q.title&&W&&W.length!==0?!0:!1};
K94=function(Q,W,x,D,K){var l;if((l=Q.playerOverlay)==null||!l.instreamSurveyAdRenderer)return function(){return[]};
if(!dsF(Q))return function(){return new E("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:Q})};
var M=Q.playerOverlay.instreamSurveyAdRenderer,w=r9(M);return w<=0?function(){return new E("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:M})}:function(S,b){var z=DbF(S,x,D,function(k){var X=k.slotId;
k=b(k);var u=Tv(M);X=F0(K.U.get(),"LAYOUT_TYPE_SURVEY",X);var Y={layoutId:X,layoutType:"LAYOUT_TYPE_SURVEY",Mj:"core"},v=new Hj(K.B,D),J=new f$(K.B,X),h=new Fc(K.B,X),G=new RFO(K.B);return{layoutId:X,layoutType:"LAYOUT_TYPE_SURVEY",bN:new Map,layoutExitNormalTriggers:[v,G],layoutExitSkipTriggers:[J],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[h],dE:[],Mj:"core",clientMetadata:new Mp([new z6(M),new Ev(W),new yD(w/1E3),new LY(u)]),EV:k(Y),adLayoutLoggingData:M.adLayoutLoggingData}});
S=W95(Q,x,z.slotId,D,K,S,b);return S instanceof E?S:[z].concat(g.C(S))}};
bB2=function(Q,W,x,D,K,l,M){M=M===void 0?!1:M;var w=[];try{var S=[];if(x.renderer.linearAdSequenceRenderer)var b=function(v){v=lN2(v.slotId,x,W,K(v),D,l,M);S=v.gN7;return v.kh};
else if(x.renderer.instreamVideoAdRenderer)b=function(v){var J=v.slotId;v=K(v);var h=M,G=x.config.adPlacementConfig,H=j91(G),I=H.Jd,c=H.Ly;H=x.renderer.instreamVideoAdRenderer;var O;if(H==null?0:(O=H.playerOverlay)==null?0:O.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var T=ES(H,h);O=Math.min(I+T.videoLengthSeconds*1E3,c);h=new p$(0,[T.videoLengthSeconds]);c=T.videoLengthSeconds;var Ks=T.playerVars,Mz=T.instreamAdPlayerOverlayRenderer,QF=T.playerOverlayLayoutRenderer,
f=T.adVideoId,t=MdF(x),P=T.bN;T=T.mW;var Z=H==null?void 0:H.adLayoutLoggingData;H=H==null?void 0:H.sodarExtensionData;J=F0(W.U.get(),"LAYOUT_TYPE_MEDIA",J);var c5={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",Mj:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",bN:P,layoutExitNormalTriggers:[new Uj(W.B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:new Mp([new Db(D),new pY(c),new hX(Ks),new da(I),new ia(O),Mz&&new KY(Mz),
QF&&new la(QF),new Ev(G),new xj(f),new FC(h),new Br(t),H&&new G6(H),new Pr({current:null}),new Hr({}),new OQ(T)].filter(R0z)),EV:v(c5),adLayoutLoggingData:Z}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var z=wEO(Q,D,x.adSlotLoggingData,b);w.push(z);for(var k=g.V(S),X=k.next();!X.done;X=k.next()){var u=X.value,Y=u(Q,K);if(Y instanceof E)return Y;w.push.apply(w,g.C(Y))}}catch(v){return new E(v,{errorMessage:v.message,AdPlacementRenderer:x,numberOfSurveyRenderers:Sv5(x)})}return w};
Sv5=function(Q){Q=(Q.renderer.linearAdSequenceRenderer||{}).linearAds;return Q!=null&&Q.length?Q.filter(function(W){var x,D;return((x=g.e(W,zv))==null?void 0:(D=x.playerOverlay)==null?void 0:D.instreamSurveyAdRenderer)!=null}).length:0};
lN2=function(Q,W,x,D,K,l,M){var w=W.config.adPlacementConfig,S=j91(w),b=S.Jd,z=S.Ly;S=(W.renderer.linearAdSequenceRenderer||{}).linearAds;if(S==null||!S.length)throw new TypeError("Expected linear ads");var k=[],X={d0:b,hX:0,L$f:k};S=S.map(function(Y){return s91(Q,Y,X,x,D,w,K,z,M)}).map(function(Y,v){v=new p$(v,k);
return Y(v)});
var u=S.map(function(Y){return Y.f4});
return{kh:z0z(x,Q,b,u,w,MdF(W),D,z,l),gN7:S.map(function(Y){return Y.vNS})}};
s91=function(Q,W,x,D,K,l,M,w,S){var b=ES(g.e(W,zv),S),z=x.d0,k=x.hX,X=Math.min(z+b.videoLengthSeconds*1E3,w);x.d0=X;x.hX++;x.L$f.push(b.videoLengthSeconds);var u,Y,v=(u=g.e(W,zv))==null?void 0:(Y=u.playerOverlay)==null?void 0:Y.instreamSurveyAdRenderer;if(b.adVideoId==="nPpU29QrbiU"&&v==null)throw new TypeError("Survey slate media has no survey overlay");return function(J){eN(b.playerVars,J);var h,G,H=b.videoLengthSeconds,I=b.playerVars,c=b.bN,O=b.mW,T=b.instreamAdPlayerOverlayRenderer,Ks=b.playerOverlayLayoutRenderer,
Mz=b.adVideoId,QF=(h=g.e(W,zv))==null?void 0:h.adLayoutLoggingData;h=(G=g.e(W,zv))==null?void 0:G.sodarExtensionData;G=F0(D.U.get(),"LAYOUT_TYPE_MEDIA",Q);var f={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Mj:"adapter"};J={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",bN:c,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"adapter",clientMetadata:new Mp([new Db(M),new pY(H),new hX(I),new da(z),new ia(X),new AX(k),new Pr({current:null}),
T&&new KY(T),Ks&&new la(Ks),new Ev(l),new xj(Mz),new FC(J),h&&new G6(h),v&&new T6(v),new Hr({}),new OQ(O)].filter(R0z)),EV:K(f),adLayoutLoggingData:QF};H=K94(g.e(W,zv),l,M,J.layoutId,D);return{f4:J,vNS:H}}};
ES=function(Q,W){if(!Q)throw new TypeError("Expected instream video ad renderer");if(!Q.playerVars)throw new TypeError("Expected player vars in url encoded string");var x=Ds(Q.playerVars),D=Number(x.length_seconds);if(isNaN(D))throw new TypeError("Expected valid length seconds in player vars");var K=Number(Q.trimmedMaxNonSkippableAdDurationMs);D=isNaN(K)?D:Math.min(D,K/1E3);K=Q.playerOverlay||{};K=K.instreamAdPlayerOverlayRenderer===void 0?null:K.instreamAdPlayerOverlayRenderer;var l=Q.playerOverlay||
{};l=l.playerOverlayLayoutRenderer===void 0?null:l.playerOverlayLayoutRenderer;var M=x.video_id;M||(M=(M=Q.externalVideoId)?M:void 0);if(!M)throw new TypeError("Expected valid video id in IVAR");if(W&&D===0){var w;W=(w=kfl[M])!=null?w:D}else W=D;return{playerVars:x,videoLengthSeconds:W,instreamAdPlayerOverlayRenderer:K,playerOverlayLayoutRenderer:l,adVideoId:M,bN:Q.pings?G5(Q.pings):new Map,mW:au(Q.pings)}};
MdF=function(Q){Q=Number(Q.driftRecoveryMs);return isNaN(Q)||Q<=0?null:Q};
j91=function(Q){var W=Q.adTimeOffset||{};Q=W.offsetEndMilliseconds;W=Number(W.offsetStartMilliseconds);if(isNaN(W))throw new TypeError("Expected valid start offset");Q=Number(Q);if(isNaN(Q))throw new TypeError("Expected valid end offset");return{Jd:W,Ly:Q}};
XEh=function(Q){var W,x=(W=RE(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:W.current;if(!x)return null;W=RE(Q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var D=Q.layoutId,K=RE(Q.clientMetadata,"metadata_type_content_cpn"),l=RE(Q.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),M=RE(Q.clientMetadata,"metadata_type_player_underlay_renderer"),w=RE(Q.clientMetadata,"metadata_type_ad_placement_config"),S=RE(Q.clientMetadata,"metadata_type_video_length_seconds");
var b=Du(Q.clientMetadata,"metadata_type_layout_enter_ms")&&Du(Q.clientMetadata,"metadata_type_layout_exit_ms")?(RE(Q.clientMetadata,"metadata_type_layout_exit_ms")-RE(Q.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{bT:D,contentCpn:K,sZ:x,uM:W,instreamAdPlayerOverlayRenderer:l,instreamAdPlayerUnderlayRenderer:M,adPlacementConfig:w,videoLengthSeconds:S,Dn:b,inPlayerLayoutId:RE(Q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:RE(Q.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
Yvs=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u,Y){D=Y4(D,"SLOT_TYPE_PLAYER_BYTES");Q=ots(K,Q,M,x,D,S,b);if(Q instanceof E)return Q;var v;b=(v=RE(Q.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:v.layoutId;if(!b)return new E("Invalid adNotify layout");W=uCa(b,K,l,x,w,W,S,z,k,X,u,Y,M);return W instanceof E?W:[Q].concat(g.C(W))};
uCa=function(Q,W,x,D,K,l,M,w,S,b,z,k,X){x=ntQ(W,x,D,l,M,w,S,b,z,k,X);if(x instanceof E)return x;Q=Vds(W,Q,M,K,x);return Q instanceof E?Q:[].concat(g.C(Q.FX),[Q.Wl])};
vt1=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u){W=ntQ(Q,W,x,K,l,w,S,b,z,k,X,u);if(W instanceof E)return W;Q=P12(Q,x,l,M,D,w.lN,W);return Q instanceof E?Q:Q.FX.concat(Q.Wl)};
ntQ=function(Q,W,x,D,K,l,M,w,S,b,z,k){var X=F_(D,x,b);return X instanceof jX?new E(X):b.J.C().experiments.ij("html5_refactor_in_player_slot_generation")?function(u){var Y=new p$(0,[X.zV]);u=C15(W,X.layoutId,X.DM,x,t3(X.playerVars,X.SO,l,S,Y),X.zV,K,Y,M(u),w.get(X.DM.externalVideoId),k);Y=[];if(X.DM.playerOverlay.instreamAdPlayerOverlayRenderer){var v=XEh(u);if(!v)return sH("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,u),{layout:u,FX:[]};
Y=[Jpn(Q,v.contentCpn,v.bT,function(h){return QE(W,h.slotId,"core",v,kz(z,h))},v.inPlayerSlotId)].concat(g.C(Y));
if(v.instreamAdPlayerUnderlayRenderer&&We(b)){var J=v.instreamAdPlayerUnderlayRenderer;Y=[pE1(Q,v.contentCpn,v.bT,function(h){return h05(W,h.slotId,J,v.adPlacementConfig,v.bT,kz(z,h))})].concat(g.C(Y))}}return{layout:u,
FX:Y}}:function(u){var Y=new p$(0,[X.zV]);
return{layout:C15(W,X.layoutId,X.DM,x,t3(X.playerVars,X.SO,l,S,Y),X.zV,K,Y,M(u),w.get(X.DM.externalVideoId),k),FX:[]}}};
F_=function(Q,W,x){if(!Q.playerVars)return new jX("No playerVars available in InstreamVideoAdRenderer.");var D,K;if(Q.elementId==null||Q.playerVars==null||Q.playerOverlay==null||((D=Q.playerOverlay)==null?void 0:D.instreamAdPlayerOverlayRenderer)==null&&((K=Q.playerOverlay)==null?void 0:K.playerOverlayLayoutRenderer)==null||Q.pings==null||Q.externalVideoId==null)return new jX("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:Q});D=Ds(Q.playerVars);K=Number(D.length_seconds);
isNaN(K)&&(K=0,sH("Expected valid length seconds in player vars but got NaN"));if(x.qx(W.kind==="AD_PLACEMENT_KIND_START")){if(Q.layoutId===void 0)return new jX("Expected server generated layout ID in instreamVideoAdRenderer");W=Q.layoutId}else W=Q.elementId;return{layoutId:W,DM:Q,playerVars:D,SO:Q.playerVars,zV:K}};
t3=function(Q,W,x,D,K){Q.iv_load_policy=D;W=Ds(W);if(W.cta_conversion_urls)try{Q.cta_conversion_urls=JSON.parse(W.cta_conversion_urls)}catch(l){sH(l)}x.V1&&(Q.ctrl=x.V1);x.Yp&&(Q.ytr=x.Yp);x.uY&&(Q.ytrcc=x.uY);x.isMdxPlayback&&(Q.mdx="1");Q.vvt&&(Q.vss_credentials_token=Q.vvt,x.al&&(Q.vss_credentials_token_type=x.al),x.mdxEnvironment&&(Q.mdx_environment=x.mdxEnvironment));eN(Q,K);return Q};
aN5=function(Q){var W=new Map;Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next())(x=x.value.renderer.remoteSlotsRenderer)&&x.hostElementId&&W.set(x.hostElementId,x);return W};
xs=function(Q){return Q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"};
Gfn=function(Q){return Q!=null};
BWF=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u){for(var Y=[],v=g.V(Q),J=v.next();!J.done;J=v.next())if(J=J.value,!Plh(J)&&!hFF(J)){var h=xs(J)&&!!J.slotEntryTrigger.beforeContentVideoIdStartedTrigger,G=S.qx(h),H=dba(J,b,D,x.FG,G);if(H instanceof E)return H;var I=void 0,c={slotId:J.adSlotMetadata.slotId,slotType:J.adSlotMetadata.slotType,slotPhysicalPosition:(I=J.adSlotMetadata.slotPhysicalPosition)!=null?I:1,Mj:"core",slotEntryTrigger:H.slotEntryTrigger,slotFulfillmentTriggers:H.slotFulfillmentTriggers,
slotExpirationTriggers:H.slotExpirationTriggers},O=g.e(J.fulfillmentContent.fulfilledLayout,YO);if(O){if(!u6(O))return new E("Invalid PlayerBytesAdLayoutRenderer");I=k&&!(xs(J)&&J.slotEntryTrigger.beforeContentVideoIdStartedTrigger);H=H.slotFulfillmentTriggers.some(function(T){return T instanceof qE});
G=I?iBa(c,J.adSlotMetadata.triggerEvent,O,x,D,l,b,Q,G,X,H,u):ApF(c,J.adSlotMetadata.triggerEvent,O,W,x,D,K,l,M,w,S,b,Q,z,G,J.adSlotMetadata.triggeringSourceLayoutId);if(G instanceof E)return G;H=[];xs(J)&&H.push(new Wq({nf:xs(J)&&!!J.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));I&&H.push(new Hr({}));x.lN&&H.push(new ra({}));H.push(new tX(h));J=Object.assign({},c,{clientMetadata:new Mp(H),fulfilledLayout:G.layout,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});Y.push.apply(Y,g.C(G.FX));
Y.push(J)}else if(h=g.e(J.fulfillmentContent.fulfilledLayout,i6)){if(!Vgz(h))return new E("Invalid PlayerUnderlayAdLayoutRenderer");h=HBl(h,D,x.FG,l,c,J.adSlotMetadata.triggerEvent,J.adSlotMetadata.triggeringSourceLayoutId);if(h instanceof E)return h;J=Object.assign({},c,{clientMetadata:new Mp([]),fulfilledLayout:h,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});Y.push(J)}else if(h=g.e(J.fulfillmentContent.fulfilledLayout,Cl5)){if(!st2(h))return new E("Invalid AboveFeedAdLayoutRenderer");h=
Uba(h,D,x.FG,l,c,J.adSlotMetadata.triggerEvent,J.adSlotMetadata.triggeringSourceLayoutId);if(h instanceof E)return h;J=Object.assign({},c,{clientMetadata:new Mp([]),fulfilledLayout:h,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});Y.push(J)}else if(h=g.e(J.fulfillmentContent.fulfilledLayout,Jyz)){if(!WD(h.adLayoutMetadata)||!g.e(h.renderingContent,xO))return new E("Invalid BelowPlayerAdLayoutRenderer");h=Uba(h,D,x.FG,l,c,J.adSlotMetadata.triggerEvent,J.adSlotMetadata.triggeringSourceLayoutId);
if(h instanceof E)return h;J=Object.assign({},c,{clientMetadata:new Mp([]),fulfilledLayout:h,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});Y.push(J)}else if(h=g.e(J.fulfillmentContent.fulfilledLayout,A3)){if(!aQ(h))return new E("Invalid PlayerBytesSequenceItemAdLayoutRenderer");h=qv1(h,D,x.FG,l,c,J.adSlotMetadata.triggerEvent);if(h instanceof E)return h;J=Object.assign({},c,{clientMetadata:new Mp([]),fulfilledLayout:h,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});Y.push(J)}else return new E("Unable to retrieve a client slot ["+
c.slotType+"] from a given AdSlotRenderer")}return Y};
qv1=function(Q,W,x,D,K,l){var M={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,Mj:"core"};W=DO(Q,W,x);return W instanceof E?W:Object.assign({},M,{renderingContent:Q.renderingContent,bN:G5(Q.renderingContent.pings)},W,{EV:kz(D,K)(M),clientMetadata:new Mp([new Ev(K_(l))]),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})};
Uba=function(Q,W,x,D,K,l,M){var w={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,Mj:"core"};W=DO(Q,W,x);if(W instanceof E)return W;x=[];x.push(new Ev(K_(l)));l==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&M!==void 0&&x.push(new oF(M));return Object.assign({},w,{renderingContent:Q.renderingContent,bN:new Map([["impression",$b5(Q)]])},W,{EV:kz(D,K)(w),clientMetadata:new Mp(x),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})};
HBl=function(Q,W,x,D,K,l,M){if(Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(M=g.e(Q.renderingContent,Gv))if(M=g.e(M.sidePanel,Y2a)){var w={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,Mj:"core"};W=DO(Q,W,x);Q=W instanceof E?W:Object.assign({},w,{renderingContent:Q.renderingContent,bN:new Map([["impression",M.impressionPings||[]],["resume",M.resumePings||[]]])},W,{EV:kz(D,K)(w),clientMetadata:new Mp([new Ev(K_(l))]),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})}else Q=
new E("DismissablePanelTextPortraitImageRenderer is missing");else Q=new E("SqueezebackPlayerSidePanelRenderer is missing");else Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.e(Q.renderingContent,XQ2)?(M={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,Mj:"core"},W=DO(Q,W,x),Q=W instanceof E?W:Object.assign({},M,{renderingContent:Q.renderingContent,bN:new Map},W,{EV:kz(D,K)(M),clientMetadata:new Mp([new Ev(K_(l))]),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})):
Q=new E("CounterfactualRenderer is missing"):Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?Q=new E("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?Q=new E("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.e(Q.renderingContent,d9)?(l={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,
Mj:"core"},W=DO(Q,W,x),Q=W instanceof E?W:M?Object.assign({},l,{renderingContent:Q.renderingContent,bN:new Map},W,{EV:kz(D,K)(l),clientMetadata:new Mp([new oF(M)]),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData}):new E("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):Q=new E("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.e(Q.renderingContent,owF)?
(l={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,Mj:"core"},W=DO(Q,W,x),Q=W instanceof E?W:Object.assign({},l,{renderingContent:Q.renderingContent,bN:new Map([])},W,{EV:kz(D,K)(l),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Mp([])})):Q=new E("AdsEngagementPanelSectionListViewModel is missing"):Q=new E("LayoutType ["+Q.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return Q};
iBa=function(Q,W,x,D,K,l,M,w,S,b,z,k){if((k==null?void 0:k.EJ)===void 0||(k==null?void 0:k.LK)===void 0)return new E("Cached ad break range from cue point is missing");var X=DO(x,K,D.FG);if(X instanceof E)return X;X={layoutExitMuteTriggers:[],layoutExitNormalTriggers:X.layoutExitNormalTriggers,layoutExitSkipTriggers:[],dE:[],layoutExitUserInputSubmittedTriggers:[]};if(g.e(x.renderingContent,zv))return Q=INa(Q,W,x,X,K,l,w,S,D.FG,M,k.EJ,k.LK),Q instanceof E?Q:Q.gP===void 0?new E("Expecting associatedInPlayerSlot for single DAI media layout"):
{layout:Q.layout,FX:[Q.gP]};var u=g.e(x.renderingContent,b6);if(u){if(!WD(x.adLayoutMetadata))return new E("Invalid ad layout metadata");if(!sS(u))return new E("Invalid sequential layout");u=u.sequentialLayouts.map(function(Y){return Y.playerBytesAdLayoutRenderer});
Q=mbO(Q,W,x,X,u,K,D,l,M,S,w,b,k.EJ,k.LK,z);return Q instanceof E?Q:{layout:Q.iM,FX:Q.FX}}return new E("Not able to convert a sequential layout")};
mbO=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u,Y){var v=NWD(K,X,u);if(v instanceof E)return v;var J=[],h=[];v=g.V(v);for(var G=v.next();!G.done;G=v.next()){var H=G.value;G=Q;var I=K[H.hX],c=H,O=W;H=l;var T=M,Ks=w,Mz=S,QF=b,f=z,t=l8(I);if(t instanceof E)G=t;else{var P={layoutId:I.adLayoutMetadata.layoutId,layoutType:I.adLayoutMetadata.layoutType,Mj:"adapter"};c=cps(O,I,c,H);c instanceof E?G=c:(G=Object.assign({},P,js,{bN:t,renderingContent:I.renderingContent,clientMetadata:new Mp(c),EV:kz(Ks,G)(P),adLayoutLoggingData:I.adLayoutMetadata.adLayoutLoggingData}),
G=(I=MS(f,G,H,T.FG,Ks,Mz,QF,void 0,!0))?I instanceof E?I:{layout:G,gP:I}:new E("Expecting associatedInPlayerSlot"))}if(G instanceof E)return G;J.push(G.layout);h.push(G.gP)}K={layoutId:x.adLayoutMetadata.layoutId,layoutType:x.adLayoutMetadata.layoutType,Mj:"core"};W=[new Br(Number(x.driftRecoveryMs)),new da(X),new ia(u),new Ev(K_(W)),new Fu(k),new Hr({})];Y&&W.push(new xz({}));return{iM:Object.assign({},K,D,{Zm:J,bN:new Map,clientMetadata:new Mp(W),EV:kz(w,Q)(K)}),FX:h}};
INa=function(Q,W,x,D,K,l,M,w,S,b,z,k){if(!u6(x))return new E("Invalid PlayerBytesAdLayoutRenderer");var X=l8(x);if(X instanceof E)return X;var u={layoutId:x.adLayoutMetadata.layoutId,layoutType:x.adLayoutMetadata.layoutType,Mj:"core"},Y=g.e(x.renderingContent,zv);if(!Y)return new E("Invalid rendering content for DAI media layout");Y=ES(Y,!1);z={XB:Y,hX:0,d0:z,iX:Math.min(z+Y.videoLengthSeconds*1E3,k),sX:new p$(0,[Y.videoLengthSeconds])};var v;k=(v=Number(x.driftRecoveryMs))!=null?v:void 0;W=cps(W,
x,z,K,k);if(W instanceof E)return W;Q=Object.assign({},u,D,{bN:X,renderingContent:x.renderingContent,clientMetadata:new Mp(W),EV:kz(l,Q)(u),adLayoutLoggingData:x.adLayoutMetadata.adLayoutLoggingData});return(K=MS(M,Q,K,S,l,b,w,void 0,!0))?K instanceof E?K:{layout:Q,gP:K}:new E("Expecting associatedInPlayerSlot")};
ApF=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v){var J=DO(x,l,K.FG);if(J instanceof E)return J;if(g.e(x.renderingContent,zv)){S=gtF([x],K,S);if(S instanceof E)return S;if(S.length!==1)return new E("Only expected one media layout.");Q=yph(Q,W,x,J,S[0],void 0,"core",D,l,M,w,b,X,u,Y,K.FG,k,void 0,v);return Q instanceof E?Q:{layout:Q.layout,FX:Q.gP?[Q.gP]:[]}}var h=g.e(x.renderingContent,b6);if(h){if(!WD(x.adLayoutMetadata))return new E("Invalid ad layout metadata");if(!sS(h))return new E("Invalid sequential layout");
h=h.sequentialLayouts.map(function(G){return G.playerBytesAdLayoutRenderer});
Q=e01(Q,W,x.adLayoutMetadata,J,h,D,l,K,S,M,w,b,z,k,Y,X,u,v);return Q instanceof E?Q:{layout:Q.iM,FX:Q.FX}}return new E("Not able to convert a sequential layout")};
e01=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v,J,h){var G=new Wr({current:null}),H=gtF(K,w,S);if(H instanceof E)return H;S=[];for(var I=[],c=void 0,O=0;O<K.length;O++){var T=K[O];if(g.e(T.renderingContent,zv)){c=Ba(X)&&$a(X)?H[O+1]:void 0;c=yph(Q,W,T,js,H[O],c,"adapter",l,M,b,z,k,v,J,Y,w.FG,u,G,h);if(c instanceof E)return c;S.push(c.layout);c.gP&&I.push(c.gP);c=H[O]}else if(g.e(T.renderingContent,kO)){var Ks=Q,Mz=z;if(u6(T)){var QF=g.e(T.renderingContent,kO);if(QF&&QF.playerVars!==void 0){var f={layoutId:T.adLayoutMetadata.layoutId,
layoutType:T.adLayoutMetadata.layoutType,Mj:"adapter"};QF=Ds(QF.playerVars);QF.autoplay="1";T=Object.assign({},f,js,{renderingContent:T.renderingContent,clientMetadata:new Mp([new UQ({}),new Ev({kind:"AD_PLACEMENT_KIND_START"}),new Pr({current:null}),new hX(QF)]),bN:new Map,EV:kz(Mz,Ks)(f),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData})}else T=new E("Invalid ad intro renderer")}else T=new E("Invalid PlayerBytesAdLayoutRenderer");if(T instanceof E)return T;S.push(T)}else if(g.e(T.renderingContent,
b7))if(J){T=fNQ(Q,T,z,K_(W),c);if(T instanceof E)return T;S.push(T);T=MS(v,T,M,w.FG,z,u,Y,G,!1);if(T instanceof E)return T;if(T)I.push(T);else return new E("Not able to retrieve InPlayer slot for endcap")}else{a:{Ks=T.adLayoutMetadata.layoutId;Mz=g.V(l);for(f=Mz.next();!f.done;f=Mz.next()){f=f.value;var t=QF=void 0,P=((QF=f.renderer)==null?void 0:(t=QF.linearAdSequenceRenderer)==null?void 0:t.linearAds)||[];QF=g.V(P);for(t=QF.next();!t.done;t=QF.next())if((t=g.e(t.value,b7))&&t.inPlayerSlotId!==void 0&&
t.inPlayerLayoutId!==void 0&&t.associatedPlayerBytesLayoutId!==void 0&&t.associatedPlayerBytesLayoutId===Ks){Ks={e8:t,adPlacementConfig:f.config.adPlacementConfig};break a}}Ks=new E("Not able to find associated InPlayer slot for endcap")}if(Ks instanceof E)return Ks;T=fNQ(Q,T,z,Ks.adPlacementConfig,c);if(T instanceof E)return T;S.push(T);T=ZBF(T.layoutId,u,M,Ks,G,z);if(T instanceof E)return T;I.push(T)}}W={layoutId:x.layoutId,layoutType:x.layoutType,Mj:"core"};return{iM:Object.assign({},W,D,{Zm:S,
bN:new Map,clientMetadata:new Mp([G]),EV:kz(z,Q)(W)}),FX:I}};
yph=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v,J,h,G){if(!u6(x))return new E("Invalid PlayerBytesAdLayoutRenderer");var H=l8(x);if(H instanceof E)return H;M={layoutId:x.adLayoutMetadata.layoutId,layoutType:x.adLayoutMetadata.layoutType,Mj:M};a:{var I=x.adLayoutMetadata.layoutId,c=g.e(x.renderingContent,zv);if(c&&SN(c)){var O=[];if(u)O.push(new Ev(K_(W)));else{b:{w=g.V(w);for(W=w.next();!W.done;W=w.next()){W=W.value;var T=OIF(W.renderer)||[],Ks=g.V(T);for(T=Ks.next();!T.done;T=Ks.next())if(T=T.value,
T.associatedPlayerBytesLayoutId===I){T.associatedPlayerBytesLayoutId?(w=T.playerOverlay,Ks=w!==void 0&&w.playerOverlayLayoutRenderer!==void 0&&w.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&w.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,w=w!==void 0&&w.instreamAdPlayerOverlayRenderer!==void 0&&w.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&w.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||Ks):w=!1;W=w?{instreamVideoAdRenderer:T,adPlacementConfig:W.config.adPlacementConfig}:
new E("Invalid InPlayer shim");break b}}W=new E("Not able to find associated InPlayer slot")}if(W instanceof E){l=W;break a}w=W.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;T=W.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var Mz;Ks=(Mz=w==null?void 0:w.inPlayerSlotId)!=null?Mz:T==null?void 0:T.inPlayerSlotId;var QF;Mz=(QF=w==null?void 0:w.inPlayerLayoutId)!=null?QF:T==null?void 0:T.inPlayerLayoutId;if(Ks===void 0){l=new E("InPlayer shim slot id is undefined");
break a}if(Mz===void 0){l=new E("InPlayer shim layout id is undefined");break a}O.push(new ua(Mz),new nY(Ks),new AX(K.sX.adPodIndex),new Ev(W.adPlacementConfig));w&&O.push(new KY(w));T&&O.push(new la(T))}O.push(new FC(K.sX),new xj(c.externalVideoId),new Db(S),new LY({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands,progressCommands:c.adVideoProgressCommands}),new hX(K.DQ),new Pr({current:null}),new pY(K.HeZ.zV),new OQ(au(c.pings)),new tp(K.sX.adPodIndex));
G&&O.push(new oF(G));(K=L92(I,X))&&O.push(new RF(K));l&&O.push(new aF(l.DQ));c.adNextParams&&O.push(new ys(c.adNextParams));c.clickthroughEndpoint&&O.push(new ed(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&O.push(new fY(c.legacyInfoCardVastExtension));c.sodarExtensionData&&O.push(new G6(c.sodarExtensionData));h&&c.adPodSkipTarget&&c.adPodSkipTarget>0&&(O.push(h),O.push(new QD(c.adPodSkipTarget)));(l=b.get(c.externalVideoId))&&O.push(new cr(l));l=O}else l=new E("Invalid vod media renderer")}if(l instanceof
E)return l;Q=Object.assign({},M,D,{bN:H,renderingContent:x.renderingContent,clientMetadata:new Mp(l),EV:kz(z,Q)(M),adLayoutLoggingData:x.adLayoutMetadata.adLayoutLoggingData});x=g.e(x.renderingContent,zv);if(!x||!SN(x))return new E("Invalid meida renderer");k=Zy(k,x.externalVideoId);k.instreamVideoAdRenderer=x;k.PC="AD_PLACEMENT_KIND_START";return u?(S=MS(X,Q,S,v,z,J,Y,h,!1),S instanceof E?S:L92(Q.layoutId,X)&&S?{layout:Object.assign({},Q,{clientMetadata:new Mp(l.concat(new wa(S)))})}:{layout:Q,gP:S}):
{layout:Q}};
fNQ=function(Q,W,x,D,K){if(!u6(W))return new E("Invalid PlayerBytesAdLayoutRenderer");var l=g.e(W.renderingContent,b7);if(!l||l.durationMilliseconds===void 0)return new E("Invalid endcap renderer");var M={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,Mj:"adapter"};D=[new ea(l.durationMilliseconds),new LY({impressionCommands:void 0,abandonCommands:l.abandonCommands?[{commandExecutorCommand:l.abandonCommands}]:void 0,completeCommands:l.completionCommands}),new Ev(D),
new Yj("LAYOUT_TYPE_ENDCAP")];if(K){D.push(new tp(K.sX.adPodIndex-1));D.push(new AX(K.sX.adPodIndex));var w;D.push(new QD((w=K.adPodSkipTarget)!=null?w:-1))}return Object.assign({},M,js,{renderingContent:W.renderingContent,clientMetadata:new Mp(D),bN:l.skipPings?new Map([["skip",l.skipPings]]):new Map,EV:kz(x,Q)(M),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData})};
MS=function(Q,W,x,D,K,l,M,w,S){Q=Q.filter(function(z){return z.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&z.adSlotMetadata.triggeringSourceLayoutId===W.layoutId});
if(Q.length!==0){if(Q.length!==1)return new E("Invalid InPlayer slot association for the given PlayerBytes layout");Q=Q[0];M=dba(Q,l,x,D,M);if(M instanceof E)return M;var b;l={slotId:Q.adSlotMetadata.slotId,slotType:Q.adSlotMetadata.slotType,slotPhysicalPosition:(b=Q.adSlotMetadata.slotPhysicalPosition)!=null?b:1,Mj:"core",slotEntryTrigger:M.slotEntryTrigger,slotFulfillmentTriggers:M.slotFulfillmentTriggers,slotExpirationTriggers:M.slotExpirationTriggers};b=g.e(Q.fulfillmentContent.fulfilledLayout,
vwO);if(!b||!kC2(b))return new E("Invalid InPlayerAdLayoutRenderer");M={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,Mj:"core"};x=DO(b,x,D);if(x instanceof E)return x;D=[];S&&D.push(new Hr({}));if(b.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")D.push.apply(D,g.C(rps(Q.adSlotMetadata.triggerEvent,W)));else if(b.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")D.push(new Ev(K_(Q.adSlotMetadata.triggerEvent))),w&&D.push(w);else return new E("Not able to parse an SDF InPlayer layout");
K=Object.assign({},M,x,{renderingContent:b.renderingContent,bN:new Map,EV:kz(K,l)(M),clientMetadata:new Mp(D),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},l,{fulfilledLayout:K,clientMetadata:new Mp([])})}};
rps=function(Q,W){var x=[];x.push(new Ev(K_(Q)));x.push(new oF(W.layoutId));(Q=RE(W.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&x.push(new Pr(Q));(Q=RE(W.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&x.push(new Wr(Q));(Q=RE(W.clientMetadata,"metadata_type_remote_slots_data"))&&x.push(new cr(Q));(Q=RE(W.clientMetadata,"metadata_type_ad_next_params"))&&x.push(new ys(Q));(Q=RE(W.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&x.push(new ed(Q));(Q=
RE(W.clientMetadata,"metadata_type_ad_pod_info"))&&x.push(new FC(Q));(W=RE(W.clientMetadata,"metadata_type_ad_video_id"))&&x.push(new xj(W));return x};
ZBF=function(Q,W,x,D,K,l){function M(b){return RP(W,b)}
var w=D.e8.inPlayerSlotId,S={layoutId:D.e8.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Mj:"core"};x={slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:new iP(M,Q),slotFulfillmentTriggers:[new Z2(M,w)],slotExpirationTriggers:[new L$(M,w),new yW(M,x)]};Q=Object.assign({},S,{layoutExitNormalTriggers:[new Hj(M,Q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],bN:new Map,clientMetadata:new Mp([new ba(D.e8),
new Ev(D.adPlacementConfig),K]),EV:kz(l,x)(S),adLayoutLoggingData:D.e8.adLayoutLoggingData});return Object.assign({},x,{clientMetadata:new Mp([new IF(Q)])})};
L92=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next())if(x=x.value,x.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var D=g.e(x.fulfillmentContent.fulfilledLayout,i6);if(D&&(D=g.e(D.renderingContent,Gv))&&D.associatedPlayerBytesLayoutId===Q)return x}};
dba=function(Q,W,x,D,K){var l=TWQ(y3(Q.slotEntryTrigger,x,D),K,Q,W);if(l instanceof E)return l;for(var M=[],w=g.V(Q.slotFulfillmentTriggers),S=w.next();!S.done;S=w.next()){S=y3(S.value,x,D);if(S instanceof E)return S;M.push(S)}M=OBO(M,K,Q,W);W=[];Q=g.V(Q.slotExpirationTriggers);for(K=Q.next();!K.done;K=Q.next()){K=y3(K.value,x,D);if(K instanceof E)return K;W.push(K)}return{slotEntryTrigger:l,slotFulfillmentTriggers:M,slotExpirationTriggers:W}};
TWQ=function(Q,W,x,D){return W&&x.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Q instanceof hK?new JK(function(K){return RP(D,K)},x.adSlotMetadata.slotId):Q};
OBO=function(Q,W,x,D){return W&&x.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?Q.map(function(K){return K instanceof Z2?new Oj(function(l){return RP(D,l)},x.adSlotMetadata.slotId):K}):Q};
DO=function(Q,W,x){for(var D=[],K=g.V(Q.layoutExitNormalTriggers||[]),l=K.next();!l.done;l=K.next()){l=y3(l.value,W,x);if(l instanceof E)return l;D.push(l)}K=[];l=g.V(Q.layoutExitSkipTriggers||[]);for(var M=l.next();!M.done;M=l.next()){M=y3(M.value,W,x);if(M instanceof E)return M;K.push(M)}l=[];M=g.V(Q.layoutExitMuteTriggers||[]);for(var w=M.next();!w.done;w=M.next()){w=y3(w.value,W,x);if(w instanceof E)return w;l.push(w)}M=[];Q=g.V(Q.layoutExitUserInputSubmittedTriggers||[]);for(w=Q.next();!w.done;w=
Q.next()){w=y3(w.value,W,x);if(w instanceof E)return w;M.push(w)}return{layoutExitNormalTriggers:D,layoutExitSkipTriggers:K,layoutExitMuteTriggers:l,layoutExitUserInputSubmittedTriggers:M,dE:[]}};
l8=function(Q){var W=g.e(Q.renderingContent,zv);if(W==null?0:W.pings)return G5(W.pings);Q=g.e(Q.renderingContent,b7);return(Q==null?0:Q.skipPings)?new Map([["skip",Q.skipPings]]):new Map};
cps=function(Q,W,x,D,K){W=g.e(W.renderingContent,zv);if(!W)return new E("Invalid rendering content for DAI media layout");Q=[new Db(D),new pY(x.XB.videoLengthSeconds),new hX(x.XB.playerVars),new da(x.d0),new ia(x.iX),new AX(x.hX),new Ev(K_(Q)),new xj(x.XB.adVideoId),new FC(x.sX),W.sodarExtensionData&&new G6(W.sodarExtensionData),new Pr({current:null}),new Hr({}),new OQ(au(W.pings))].filter(Gfn);K!==void 0&&Q.push(new Br(K));return Q};
NWD=function(Q,W,x){Q=Q.map(function(S){return ES(g.e(S.renderingContent,zv),!1)});
var D=Q.map(function(S){return S.videoLengthSeconds}),K=D.map(function(S,b){return new p$(b,D)}),l=W,M=x,w=[];
Q.forEach(function(S,b){M=Math.min(l+S.videoLengthSeconds*1E3,x);eN(S.playerVars,K[b]);w.push({XB:S,d0:l,iX:M,hX:b,sX:K[b]});l=M});
return w};
gtF=function(Q,W,x){for(var D=[],K=g.V(Q),l=K.next();!l.done;l=K.next())if(l=g.e(l.value.renderingContent,zv)){if(!SN(l))return new E("Invalid vod media renderer");D.push(EtF(l))}K=D.map(function(k){return k.zV});
l=[];for(var M=0,w=0;w<Q.length;w++){var S=g.e(Q[w].renderingContent,zv);if(S){var b=new p$(M,K),z=t3(D[M].playerVars,D[M].SO,W,x,b);l[w]={sX:b,adPodSkipTarget:S.adPodSkipTarget,HeZ:D[M],DQ:z};M++}}return l};
EtF=function(Q){var W=Ds(Q.playerVars),x=Number(W.length_seconds);isNaN(x)&&(x=0,sH("Expected valid length seconds in player vars but got NaN"));return{playerVars:W,SO:Q.playerVars,zV:x}};
K_=function(Q){switch(Q){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"}}};
$b5=function(Q){if(g.e(Q.renderingContent,KU)){var W;return((W=g.e(Q.renderingContent,KU))==null?void 0:W.impressionPings)||[]}if(g.e(Q.renderingContent,xO)){var x;return((x=g.e(Q.renderingContent,xO))==null?void 0:x.impressionPings)||[]}if(g.e(Q.renderingContent,Dy)){var D;return((D=g.e(Q.renderingContent,Dy))==null?void 0:D.impressionPings)||[]}return[]};
tdF=function(Q,W,x,D,K,l,M,w,S){var b=x.pings;return b?[F9n(Q,l,w,K,function(z){var k=z.slotId;z=S(z);var X=x.adLayoutLoggingData,u=x.progressCommands;k=F0(W.U.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",k);var Y={layoutId:k,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Mj:"core"};return{layoutId:k,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",bN:G5(b),layoutExitNormalTriggers:[new yW(W.B,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],
dE:[],Mj:"core",clientMetadata:new Mp([new Ev(D),new OQ(au(b)),new EQ(J_Q(b)),new pY(M/1E3),new LY({progressCommands:u}),new yD(M/1E3)]),EV:z(Y),adLayoutLoggingData:X}})]:new E("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:x})};
WGv=function(Q,W,x,D,K,l,M,w){Q=QFl(Q,x,l,M,D,function(S){var b=S.slotId;S=w(S);b=F0(W.U.get(),"LAYOUT_TYPE_FORECASTING",b);var z={layoutId:b,layoutType:"LAYOUT_TYPE_FORECASTING",Mj:"core"},k=new Map,X=K.impressionUrls;X&&k.set("impression",X);return{layoutId:b,layoutType:"LAYOUT_TYPE_FORECASTING",bN:k,layoutExitNormalTriggers:[new g2(W.B,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:new Mp([new qj(K),new Ev(x)]),EV:S(z)}});
return Q instanceof E?Q:[Q]};
DjQ=function(Q,W,x,D,K,l,M){return[xjF(Q,l,D,function(w){var S=w.slotId;w=M(w);S=F0(W.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",S);var b={layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Mj:"core"};return{layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bN:new Map,layoutExitNormalTriggers:[new yW(W.B,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:new Mp([new KY(K),new Ev(x)]),EV:w(b),
adLayoutLoggingData:K.adLayoutLoggingData}})]};
lba=function(Q,W,x,D,K,l,M,w){Q=KGs(Q,x,l,M,D,function(S,b){var z=S.slotId;S=w(S);var k=K.contentSupportedRenderer;k?k.textOverlayAdContentRenderer?(k=F0(W.U.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",z),b=w7(W,k,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",K,x,S,Ss(W,b,z))):k.enhancedTextOverlayAdContentRenderer?(k=F0(W.U.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",z),b=w7(W,k,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",K,x,S,Ss(W,b,z))):k.imageOverlayAdContentRenderer?(k=F0(W.U.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
z),b=Ss(W,b,z),b.push(new tK(W.B,45E3,k)),b=w7(W,k,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",K,x,S,b)):b=new jX("InvideoOverlayAdRenderer without appropriate sub renderer"):b=new jX("InvideoOverlayAdRenderer without contentSupportedRenderer");return b});
return Q instanceof E?Q:[Q]};
RqQ=function(Q,W,x,D,K,l,M,w,S){var b=Number(D.durationMilliseconds);return isNaN(b)?new E("Expected valid duration for AdActionInterstitialRenderer."):function(z){return jFO(W,z.slotId,x,D,b,{impressionCommands:void 0,abandonCommands:D.abandonCommands?[{commandExecutorCommand:D.abandonCommands}]:void 0,completeCommands:D.completionCommands},D.skipPings?new Map([["skip",D.skipPings]]):new Map,M(z),function(k){return Mal(Q,k,K,function(X,u){var Y=X.slotId;X=M(X);Y=F0(W.U.get(),"LAYOUT_TYPE_ENDCAP",
Y);return OS(W,Y,u,x,X,"LAYOUT_TYPE_ENDCAP",[new ba(D),w],D.adLayoutLoggingData)})},S,l-1,D.adLayoutLoggingData,l)}};
wra=function(Q,W,x,D){if(!x.playerVars)return new E("No playerVars available in AdIntroRenderer.");var K=Ds(x.playerVars);K.autoplay="1";return function(l){var M=l.slotId;l=D(l);M=F0(Q.U.get(),"LAYOUT_TYPE_MEDIA",M);var w={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",Mj:"adapter"};return{N_:{layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",bN:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"adapter",clientMetadata:new Mp([new UQ({}),
new Ev(W),new Pr({current:null}),new hX(K)]),EV:l(w)},Df:[new AK(Q.B,M,["error"])],nR:[],o2:[],j3:[]}}};
bY4=function(Q,W,x,D,K,l,M,w,S,b){b=b===void 0?!1:b;var z=r9(K);if(!GCQ(K,b))return new E("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:K});if(z<=0)return new E("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:K});var k=FyD(Q,W,K,l,x,D,M);return k instanceof E?k:function(X){return SQO(W,X.slotId,x,z,K,Tv(K),M(X),k,w,S)}};
sFO=function(Q,W,x,D,K,l,M,w){function S(k){return Mal(Q,k,D,b)}
function b(k,X){var u=k.slotId;k=M(k);u=F0(W.U.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",u);return OS(W,u,X,x,k,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new sQ(K),l],K.adLayoutLoggingData)}
if(!HIa(K))return new E("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:K});var z=K.timeoutSeconds*1E3;return function(k){var X=k.slotId,u={impressionCommands:K.impressionCommands,completeCommands:K.timeoutCommands,skipCommands:K.dismissCommands};k=M(k);X=b8(W,X,x,z,u,new Map,k,S,void 0,sf(W,x,K.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));u=new ua(X.m_);k=new tp(w);return{N_:{layoutId:X.layoutId,layoutType:X.layoutType,bN:X.bN,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:X.Mj,clientMetadata:new Mp([].concat(g.C(X.EH),[u,k])),EV:X.EV,adLayoutLoggingData:X.adLayoutLoggingData},Df:[],nR:X.layoutExitMuteTriggers,o2:X.layoutExitUserInputSubmittedTriggers,j3:X.dE,gP:X.gP}}};
k6l=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v){Q=Y4(Q,"SLOT_TYPE_PLAYER_BYTES");D=ots(W,M,D,K,Q,b,z);if(D instanceof E)return D;var J;M=(J=RE(D.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:J.layoutId;if(!M)return new E("Invalid adNotify layout");W=zql(M,W,x,K,l,S,w,b,k,X,u,Y,v);return W instanceof E?W:[D].concat(g.C(W))};
zql=function(Q,W,x,D,K,l,M,w,S,b,z,k,X){x=Xr1(W,x,D,l,M,w,S,b,z,k,X);ojl(l)?(D=uuh(W,Q),Q=Y4(W.U.get(),"SLOT_TYPE_IN_PLAYER"),l=F0(W.U.get(),"LAYOUT_TYPE_SURVEY",Q),w=zo(W,D,w),W=[].concat(g.C(w.slotExpirationTriggers),[new ae(W.B,l)]),Q=x({slotId:w.slotId,slotType:w.slotType,slotPhysicalPosition:w.slotPhysicalPosition,slotEntryTrigger:w.slotEntryTrigger,slotFulfillmentTriggers:w.slotFulfillmentTriggers,slotExpirationTriggers:W,Mj:w.Mj},{slotId:Q,layoutId:l}),K=Q instanceof E?Q:{Wl:Object.assign({},
w,{slotExpirationTriggers:W,clientMetadata:new Mp([new IF(Q.layout)]),adSlotLoggingData:K}),FX:Q.FX}):K=Vds(W,Q,w,K,x);return K instanceof E?K:[].concat(g.C(K.FX),[K.Wl])};
nj5=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u){W=Xr1(Q,W,x,K,l,M,S,b,z,k,X,u);ojl(K)?(K=YQF(Q,x,M,w),K instanceof E?Q=K:(w=Y4(Q.U.get(),"SLOT_TYPE_IN_PLAYER"),S=F0(Q.U.get(),"LAYOUT_TYPE_SURVEY",w),M=[].concat(g.C(K.slotExpirationTriggers),[new ae(Q.B,S)]),w=W({slotId:K.slotId,slotType:K.slotType,slotPhysicalPosition:K.slotPhysicalPosition,Mj:K.Mj,slotEntryTrigger:K.slotEntryTrigger,slotFulfillmentTriggers:K.slotFulfillmentTriggers,slotExpirationTriggers:M},{slotId:w,layoutId:S}),Q=w instanceof E?w:{Wl:{slotId:K.slotId,
slotType:K.slotType,slotPhysicalPosition:K.slotPhysicalPosition,slotEntryTrigger:ks(Q,x,K.slotId,K.slotEntryTrigger),slotFulfillmentTriggers:oP(Q,x,K.slotId,K.slotFulfillmentTriggers),slotExpirationTriggers:M,Mj:K.Mj,clientMetadata:new Mp([new tX(u8(x)),new IF(w.layout),new Wq({nf:Q.nf(x)})]),adSlotLoggingData:D},FX:w.FX})):Q=P12(Q,x,M,w,D,S.lN,W);return Q instanceof E?Q:Q.FX.concat(Q.Wl)};
ojl=function(Q){Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())if(g.e(W.value,X_))return!0;return!1};
Xr1=function(Q,W,x,D,K,l,M,w,S,b,z,k){return function(X,u){if(Ba(z)&&$a(z))a:{var Y=Va2(D,x,z);if(Y instanceof E)u=Y;else{for(var v=0,J=[],h=[],G=[],H=[],I=[],c=[],O=new vr({current:null}),T=new Wr({current:null}),Ks=!1,Mz=[],QF=0,f=[],t=0;t<D.length;t++){var P=D[t],Z=g.e(P,zv);if(Z){Z=F_(Z,x,z);if(Z instanceof jX){u=new E(Z);break a}var c5=new p$(QF,Y),vu=t3(Z.playerVars,Z.SO,M,b,c5);QF++;f[t]={renderer:P,data:Z,sX:c5,DQ:vu}}}QF=-1;for(Y=0;Y<D.length;Y++)if(t=D[Y],P=g.e(t,kO)){t=wra(W,x,P,w);if(t instanceof
E){u=t;break a}t=t(X);J.push(t.N_);h=[].concat(g.C(t.Df),g.C(h));G=[].concat(g.C(t.nR),g.C(G));t.gP&&(Mz=[t.gP].concat(g.C(Mz)))}else if(g.e(t,zv))P=f[Y],QF=P.data,t=P.sX,P=P.DQ,Z=f[Y+1],c5=void 0,Z&&(c5=Z.DQ),t=Pa2(W,QF.layoutId,QF.DM,x,P,QF.zV,l,t,w(X),T,S.get(QF.DM.externalVideoId),c5,k),v++,J.push(t.N_),h=[].concat(g.C(t.Df),g.C(h)),G=[].concat(g.C(t.nR),g.C(G)),Ks||(c.push(T),Ks=!0),QF=(QF=QF.DM.adPodSkipTarget)&&QF>0?QF:-1;else if(P=g.e(t,b7)){t=RqQ(Q,W,x,P,l,v,w,T,QF);if(t instanceof E){u=
t;break a}t=t(X);J.push(t.N_);h=[].concat(g.C(t.Df),g.C(h));G=[].concat(g.C(t.nR),g.C(G));t.gP&&(Mz=[t.gP].concat(g.C(Mz)))}else if(P=g.e(t,X_)){if(u===void 0){u=new E("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:P});break a}t=bY4(Q,W,x,l,P,O,w,u,v,EL(z,"supports_multi_step_on_desktop"));if(t instanceof E){u=t;break a}t=t(X);J.push(t.N_);t.gP&&Mz.push(t.gP);h=[].concat(g.C(t.Df),g.C(h));G=[].concat(g.C(t.nR),g.C(G));H=[].concat(g.C(t.o2),g.C(H));
I=[].concat(g.C(t.j3),g.C(I));c=[O].concat(g.C(c))}else if(t=g.e(t,oQ)){t=sFO(Q,W,x,l,t,O,w,v);if(t instanceof E){u=t;break a}t=t(X);J.push(t.N_);t.gP&&Mz.push(t.gP);G=[].concat(g.C(t.nR),g.C(G))}else{u=new E("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}u={Zm:J,layoutExitSkipTriggers:h,layoutExitUserInputSubmittedTriggers:H,dE:I,layoutExitMuteTriggers:G,EH:c,FX:Mz}}}else a:if(v=Va2(D,x,z),v instanceof E)u=v;else{J=0;h=[];G=[];H=[];I=[];c=[];O=[];T=new vr({current:null});Ks=new Wr({current:null});
Mz=!1;f=[];QF=-1;Y=g.V(D);for(t=Y.next();!t.done;t=Y.next())if(t=t.value,g.e(t,kO)){t=wra(W,x,g.e(t,kO),w);if(t instanceof E){u=t;break a}t=t(X);h.push(t.N_);G=[].concat(g.C(t.Df),g.C(G));H=[].concat(g.C(t.nR),g.C(H));t.gP&&(f=[t.gP].concat(g.C(f)))}else if(g.e(t,zv)){QF=F_(g.e(t,zv),x,z);if(QF instanceof jX){u=new E(QF);break a}t=new p$(J,v);t=Pa2(W,QF.layoutId,QF.DM,x,t3(QF.playerVars,QF.SO,M,b,t),QF.zV,l,t,w(X),Ks,S.get(QF.DM.externalVideoId),void 0,k);J++;h.push(t.N_);G=[].concat(g.C(t.Df),g.C(G));
H=[].concat(g.C(t.nR),g.C(H));Mz||(O.push(Ks),Mz=!0);QF=(QF=QF.DM.adPodSkipTarget)&&QF>0?QF:-1}else if(g.e(t,b7)){t=RqQ(Q,W,x,g.e(t,b7),l,J,w,Ks,QF);if(t instanceof E){u=t;break a}t=t(X);h.push(t.N_);G=[].concat(g.C(t.Df),g.C(G));H=[].concat(g.C(t.nR),g.C(H));t.gP&&(f=[t.gP].concat(g.C(f)))}else if(g.e(t,X_)){if(u===void 0){u=new E("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.e(t,X_)});break a}t=bY4(Q,W,x,l,g.e(t,X_),T,w,u,J,EL(z,"supports_multi_step_on_desktop"));
if(t instanceof E){u=t;break a}t=t(X);h.push(t.N_);t.gP&&f.push(t.gP);G=[].concat(g.C(t.Df),g.C(G));H=[].concat(g.C(t.nR),g.C(H));I=[].concat(g.C(t.o2),g.C(I));c=[].concat(g.C(t.j3),g.C(c));O=[T].concat(g.C(O))}else if(g.e(t,oQ)){t=sFO(Q,W,x,l,g.e(t,oQ),T,w,J);if(t instanceof E){u=t;break a}t=t(X);h.push(t.N_);t.gP&&f.push(t.gP);H=[].concat(g.C(t.nR),g.C(H))}else{u=new E("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}u={Zm:h,layoutExitSkipTriggers:G,layoutExitUserInputSubmittedTriggers:I,
dE:c,layoutExitMuteTriggers:H,EH:O,FX:f}}u instanceof E?X=u:(c=X.slotId,v=u.Zm,J=u.layoutExitSkipTriggers,h=u.layoutExitMuteTriggers,G=u.layoutExitUserInputSubmittedTriggers,H=u.EH,X=w(X),I=K?K.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",c=K?K.layoutId:F0(W.U.get(),I,c),O={layoutId:c,layoutType:I,Mj:"core"},X={layout:{layoutId:c,layoutType:I,bN:new Map,layoutExitNormalTriggers:[new g2(W.B,c)],layoutExitSkipTriggers:J,layoutExitMuteTriggers:h,layoutExitUserInputSubmittedTriggers:G,dE:[],Mj:"core",
clientMetadata:new Mp([new CY(v)].concat(g.C(H))),EV:X(O)},FX:u.FX});return X}};
Va2=function(Q,W,x){var D=[];Q=g.V(Q);for(var K=Q.next();!K.done;K=Q.next())if(K=K.value,g.e(K,zv)){K=F_(g.e(K,zv),W,x);if(K instanceof jX)return new E(K);D.push(K.zV)}return D};
Can=function(Q,W,x,D,K,l,M,w){if(!GCQ(x,w===void 0?!1:w))return new E("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:x});var S=r9(x);if(S<=0)return new E("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:x});var b=new vr({current:null}),z=FyD(Q,W,x,b,D,l,M);return vjl(Q,D,l,S,K,function(k,X){var u=k.slotId,Y=Tv(x);k=M(k);var v,J=(v=sf(W,D,x.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?v:
F0(W.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",u);u={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Mj:"core"};v=z(J,X);var h=RE(v.clientMetadata,"metadata_type_fulfilled_layout");h||sH("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");Y=[new Ev(D),new ea(S),new LY(Y),b];h&&Y.push(new Yj(h.layoutType));return{jW3:{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",bN:new Map,layoutExitNormalTriggers:[new g2(W.B,J)],layoutExitSkipTriggers:[new f$(W.B,
X.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Fc(W.B,X.layoutId)],dE:[],Mj:"core",clientMetadata:new Mp(Y),EV:k(u)},R9S:v}})};
JXa=function(Q){if(!Ay5(Q))return!1;var W=g.e(Q.adVideoStart,Ys);return W?g.e(Q.linearAd,zv)&&RQ(W)?!0:(sH("Invalid Sandwich with notify"),!1):!1};
prn=function(Q){if(Q.linearAds==null)return!1;Q=g.e(Q.adStart,Ys);return Q?RQ(Q)?!0:(sH("Invalid LASR with notify"),!1):!1};
hqD=function(Q){if(!iIs(Q))return!1;Q=g.e(Q.adStart,Ys);return Q?RQ(Q)?!0:(sH("Invalid LASR with notify"),!1):!1};
n_=function(Q,W,x,D,K,l,M,w,S,b){this.N=Q;this.U=W;this.B=x;this.yj=D;this.PV=K;this.D=l;this.Jf=M;this.Bz=w;this.lG=S;this.loadPolicy=b===void 0?1:b};
$s1=function(Q,W,x,D,K,l,M,w,S,b){var z=[];if(W.length===0&&D.length===0&&x.length===0)return z;W=W.filter(w9);var k=x.filter(pQF),X=D.filter(w9),u=new Map,Y=aN5(W),v=x.some(function(Z){var c5;return(Z==null?void 0:(c5=Z.adSlotMetadata)==null?void 0:c5.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),J=x.some(function(Z){var c5;
return(Z==null?void 0:(c5=Z.adSlotMetadata)==null?void 0:c5.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),h=x.some(function(Z){var c5;
return(Z==null?void 0:(c5=Z.adSlotMetadata)==null?void 0:c5.slotType)==="SLOT_TYPE_IN_PLAYER"}),G=x.some(function(Z){var c5,vu;
return(Z==null?void 0:(c5=Z.adSlotMetadata)==null?void 0:c5.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(Z==null?void 0:(vu=Z.adSlotMetadata)==null?void 0:vu.slotType)==="SLOT_TYPE_ABOVE_FEED"});
x=x.some(function(Z){var c5;return(Z==null?void 0:(c5=Z.adSlotMetadata)==null?void 0:c5.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"});
if(v||J||h||G||x)b=BWF(k,W,w,K,Y,Q.PV.get(),Q.loadPolicy,u,Q.yj.get(),Q.N.get(),h,M,S,b),b instanceof E?sH(b,void 0,void 0,{contentCpn:K}):z.push.apply(z,g.C(b));b=g.V(W);for(x=b.next();!x.done;x=b.next())x=x.value,J=aba(Q,u,x,K,l,M,v,w,Y,S,k),J instanceof E?sH(J,void 0,void 0,{renderer:x.renderer,config:x.config.adPlacementConfig,kind:x.config.adPlacementConfig.kind,contentCpn:K,daiEnabled:M}):z.push.apply(z,g.C(J));G6Q(Q.yj.get())||(l=dj4(Q,X,K,w,Y,u),z.push.apply(z,g.C(l)));if(Q.D===null||M&&!w.qO){var H,
I,c;Q=w.lN&&W.length===1&&((H=W[0].config)==null?void 0:(I=H.adPlacementConfig)==null?void 0:I.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((c=W[0].renderer)==null?void 0:c.adBreakServiceRenderer);if(!z.length&&!Q){var O,T,Ks,Mz;sH("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":W.length,contentCpn:K,"first APR kind":(O=W[0])==null?void 0:(T=O.config)==null?void 0:(Ks=T.adPlacementConfig)==null?void 0:Ks.kind,renderer:(Mz=W[0])==null?void 0:
Mz.renderer})}return z}H=D.filter(w9);z.push.apply(z,g.C(TF4(u,H,Q.U.get(),Q.D,K,v)));if(!z.length){var QF,f,t,P;sH("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":W.length,contentCpn:K,daiEnabled:M.toString(),"first APR kind":(QF=W[0])==null?void 0:(f=QF.config)==null?void 0:(t=f.adPlacementConfig)==null?void 0:t.kind,renderer:(P=W[0])==null?void 0:P.renderer})}return z};
dj4=function(Q,W,x,D,K,l){function M(X){return kz(Q.PV.get(),X)}
var w=[];W=g.V(W);for(var S=W.next();!S.done;S=W.next()){S=S.value;var b=S.renderer,z=b.sandwichedLinearAdRenderer,k=b.linearAdSequenceRenderer;z&&JXa(z)?(sH("Found AdNotify with SandwichedLinearAdRenderer"),k=g.e(z.adVideoStart,Ys),z=g.e(z.linearAd,zv),fU(l,b,S.config.adPlacementConfig.kind),b=void 0,k=uCa((b=k)==null?void 0:b.layout.layoutId,Q.U.get(),Q.B.get(),S.config.adPlacementConfig,S.adSlotLoggingData,z,x,D,M,K,Q.loadPolicy,Q.yj.get(),Q.PV.get()),k instanceof E?sH(k):w.push.apply(w,g.C(k))):
k&&(!k.adLayoutMetadata&&prn(k)||k.adLayoutMetadata&&hqD(k))&&(sH("Found AdNotify with LinearAdSequenceRenderer"),fU(l,b,S.config.adPlacementConfig.kind),b=void 0,z=zql((b=g.e(k.adStart,Ys))==null?void 0:b.layout.layoutId,Q.U.get(),Q.B.get(),S.config.adPlacementConfig,S.adSlotLoggingData,k.linearAds,WD(k.adLayoutMetadata)?k.adLayoutMetadata:void 0,x,D,M,K,Q.loadPolicy,Q.yj.get()),z instanceof E?sH(z):w.push.apply(w,g.C(z)))}return w};
aba=function(Q,W,x,D,K,l,M,w,S,b,z){function k(h){return kz(Q.PV.get(),h)}
var X=x.renderer,u=x.config.adPlacementConfig,Y=u.kind,v=x.adSlotLoggingData,J=w.qO&&Y==="AD_PLACEMENT_KIND_START";J=l&&!J;if(X.adsEngagementPanelRenderer!=null)return LU(W,x.elementId,Y,X.adsEngagementPanelRenderer.isContentVideoEngagementPanel,X.adsEngagementPanelRenderer.adVideoId,X.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,u,v,function(h,G,H,I){var c=Q.B.get(),O=h.slotId,T=X.adsEngagementPanelRenderer;h=kz(Q.PV.get(),h);return VE(c,O,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new cE(T),G,H,T.impressionPings,h,X.adsEngagementPanelRenderer.adLayoutLoggingData,I)}),[];
if(X.adsEngagementPanelLayoutViewModel)return LU(W,x.elementId,Y,X.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,X.adsEngagementPanelLayoutViewModel.adVideoId,X.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,u,v,function(h,G,H,I){var c=Q.B.get(),O=h.slotId,T=X.adsEngagementPanelLayoutViewModel;h=kz(Q.PV.get(),h);return Pe(c,O,"LAYOUT_TYPE_PANEL",new gW(T),G,H,h,X.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,I)}),[];
if(X.actionCompanionAdRenderer!=null){if(X.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return eFn(Q.U.get(),Q.D,Q.B.get(),X.actionCompanionAdRenderer,u,v,D,k);LU(W,x.elementId,Y,X.actionCompanionAdRenderer.isContentVideoCompanion,X.actionCompanionAdRenderer.adVideoId,X.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,u,v,function(h,G,H,I){var c=Q.B.get(),O=h.slotId,T=X.actionCompanionAdRenderer;h=kz(Q.PV.get(),h);return VE(c,O,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new m9(T),G,H,T.impressionPings,h,X.actionCompanionAdRenderer.adLayoutLoggingData,I)})}else if(X.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(X.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return f1a(Q.U.get(),Q.D,Q.B.get(),X.topBannerImageTextIconButtonedLayoutViewModel,u,v,D,k);
LU(W,x.elementId,Y,X.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,X.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,X.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,u,v,function(h,G,H,I){var c=Q.B.get(),O=h.slotId,T=X.topBannerImageTextIconButtonedLayoutViewModel;h=kz(Q.PV.get(),h);return Pe(c,O,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new Nb(T),G,H,h,X.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,I)})}else if(X.imageCompanionAdRenderer)LU(W,
x.elementId,Y,X.imageCompanionAdRenderer.isContentVideoCompanion,X.imageCompanionAdRenderer.adVideoId,X.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,u,v,function(h,G,H,I){var c=Q.B.get(),O=h.slotId,T=X.imageCompanionAdRenderer;
h=kz(Q.PV.get(),h);return VE(c,O,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new ZN(T),G,H,T.impressionPings,h,X.imageCompanionAdRenderer.adLayoutLoggingData,I)});
else if(X.bannerImageLayoutViewModel)LU(W,x.elementId,Y,X.bannerImageLayoutViewModel.isContentVideoCompanion,X.bannerImageLayoutViewModel.adVideoId,X.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,u,v,function(h,G,H,I){var c=Q.B.get(),O=h.slotId,T=X.bannerImageLayoutViewModel;h=kz(Q.PV.get(),h);return Pe(c,O,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new LB(T),G,H,h,X.bannerImageLayoutViewModel.adLayoutLoggingData,I)});
else if(X.shoppingCompanionCarouselRenderer)LU(W,x.elementId,Y,X.shoppingCompanionCarouselRenderer.isContentVideoCompanion,X.shoppingCompanionCarouselRenderer.adVideoId,X.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,u,v,function(h,G,H,I){var c=Q.B.get(),O=h.slotId,T=X.shoppingCompanionCarouselRenderer;h=kz(Q.PV.get(),h);return VE(c,O,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new rW(T),G,H,T.impressionPings,h,X.shoppingCompanionCarouselRenderer.adLayoutLoggingData,I)});
else if(X.adBreakServiceRenderer){if(!gwn(x))return[];if(Y==="AD_PLACEMENT_KIND_PAUSE")return cy5(Q.U.get(),u,v,x.renderer.adBreakServiceRenderer,D);if(Y!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&Y!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return NFn(Q.U.get(),u,v,x.renderer.adBreakServiceRenderer,D,K,l);w.lN||sH("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:Y,adPlacementConfig:u,daiEnabledForContentVideo:String(l),isServedFromLiveInfra:String(w.lN),clientPlaybackNonce:w.clientPlaybackNonce});
if(Y==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!Q.Jf)return new E("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!Q.lG)return new E("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");Q.lG.w6({adPlacementRenderer:x,contentCpn:D,FG:K});K=Q.Jf.get().getCurrentTimeSec(1,!1);return iY5(Q.U.get(),x.renderer.adBreakServiceRenderer,u,K,D,v,l)}if(!Q.Bz)return new E("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");
Q.Bz.w6({adPlacementRenderer:x,contentCpn:D,FG:K})}else{if(X.clientForecastingAdRenderer)return WGv(Q.U.get(),Q.B.get(),u,v,X.clientForecastingAdRenderer,D,K,k);if(X.invideoOverlayAdRenderer)return lba(Q.U.get(),Q.B.get(),u,v,X.invideoOverlayAdRenderer,D,K,k);if(X.instreamAdPlayerOverlayRenderer)return DjQ(Q.U.get(),Q.B.get(),u,v,X.instreamAdPlayerOverlayRenderer,D,k);if((X.linearAdSequenceRenderer||X.instreamVideoAdRenderer)&&J)return bB2(Q.U.get(),Q.B.get(),x,D,k,b,!Q.yj.get().J.C().j("html5_override_ad_video_length_killswitch"));
if(X.linearAdSequenceRenderer&&!J){if(M)return[];fU(W,X,Y);if(X.linearAdSequenceRenderer.adLayoutMetadata){if(!iIs(X.linearAdSequenceRenderer))return new E("Received invalid LinearAdSequenceRenderer.")}else if(X.linearAdSequenceRenderer.linearAds==null)return new E("Received invalid LinearAdSequenceRenderer.");if(g.e(X.linearAdSequenceRenderer.adStart,Ys)){sH("Found AdNotify in LinearAdSequenceRenderer");x=g.e(X.linearAdSequenceRenderer.adStart,Ys);if(!zFv(x))return new E("Invalid AdMessageRenderer.");
l=X.linearAdSequenceRenderer.linearAds;return k6l(Q.N.get(),Q.U.get(),Q.B.get(),Q.PV.get(),u,v,x,WD(X.linearAdSequenceRenderer.adLayoutMetadata)?X.linearAdSequenceRenderer.adLayoutMetadata:void 0,l,D,K,w,k,S,Q.loadPolicy,Q.yj.get())}return nj5(Q.U.get(),Q.B.get(),u,v,X.linearAdSequenceRenderer.linearAds,WD(X.linearAdSequenceRenderer.adLayoutMetadata)?X.linearAdSequenceRenderer.adLayoutMetadata:void 0,D,K,w,k,S,Q.loadPolicy,Q.yj.get(),z)}if(!X.remoteSlotsRenderer||l){if(X.instreamVideoAdRenderer&&
!J){if(M)return[];fU(W,X,Y);return vt1(Q.U.get(),Q.B.get(),u,v,X.instreamVideoAdRenderer,D,K,w,k,S,Q.loadPolicy,Q.yj.get(),Q.PV.get(),z)}if(X.instreamSurveyAdRenderer)return Can(Q.U.get(),Q.B.get(),X.instreamSurveyAdRenderer,u,v,D,k,EL(Q.yj.get(),"supports_multi_step_on_desktop"));if(X.sandwichedLinearAdRenderer!=null)return Ay5(X.sandwichedLinearAdRenderer)?g.e(X.sandwichedLinearAdRenderer.adVideoStart,Ys)?(sH("Found AdNotify in SandwichedLinearAdRenderer"),x=g.e(X.sandwichedLinearAdRenderer.adVideoStart,
Ys),zFv(x)?(l=g.e(X.sandwichedLinearAdRenderer.linearAd,zv))?Yvs(x,l,u,Q.N.get(),Q.U.get(),Q.B.get(),Q.PV.get(),v,D,K,w,k,S,Q.loadPolicy,Q.yj.get()):new E("Missing IVAR from Sandwich"):new E("Invalid AdMessageRenderer.")):nj5(Q.U.get(),Q.B.get(),u,v,[X.sandwichedLinearAdRenderer.adVideoStart,X.sandwichedLinearAdRenderer.linearAd],void 0,D,K,w,k,S,Q.loadPolicy,Q.yj.get()):new E("Received invalid SandwichedLinearAdRenderer.");if(X.videoAdTrackingRenderer!=null)return tdF(Q.U.get(),Q.B.get(),X.videoAdTrackingRenderer,
u,v,D,K,w.c9,k)}}return[]};
ve=function(Q,W,x,D,K,l,M,w){g.N.call(this);var S=this;this.U=Q;this.D=W;this.eQ=D;this.Jf=K;this.yj=l;this.vt=M;this.x3=w;this.B=null;x.get().addListener(this);this.addOnDisposeCallback(function(){x.d7()||x.get().removeListener(S)});
D.get().addListener(this);this.addOnDisposeCallback(function(){D.d7()||D.get().removeListener(S)})};
HY2=function(Q,W,x){var D=Q.Jf.get().getCurrentTimeSec(1,!1);Q.yj.get().J.C().jk()&&K$(Q.vt.get(),"sdai","onopp.1;evt."+x.event+";start."+x.startSecs.toFixed(3)+";d."+x.eE.toFixed(3));ud(Q.U.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var K=Q.D.get(),l=W.adPlacementRenderer.renderer.adBreakServiceRenderer,M=W.contentCpn,w=W.adPlacementRenderer.adSlotLoggingData,S=C_(Q.yj.get()),b=Q.vt;if(K.yj.get().J.C().experiments.ij("enable_smearing_expansion_dai")){var z=g.X0(K.yj.get().J.C().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var k=g.X0(K.yj.get().J.C().experiments,"min_prefetch_offset_sec_for_livestream_optimization");S={OB:AX2(x),Au:!1,cueProcessedMs:D*1E3};var X=x.startSecs+x.eE;if(D===0)S.SS=new CT(0,X*1E3);else{k=x.startSecs-k;var u=k-D;S.SS=u<=0?new CT(k*1E3,X*1E3):new CT(Math.floor(D+Math.random()*Math.min(u,z))*1E3,X*1E3)}z=S}else z={OB:AX2(x),Au:!1},X=x.startSecs+x.eE,x.startSecs<=D?S=new CT((x.startSecs-4)*1E3,X*1E3):(k=Math.max(0,x.startSecs-D-10),S=new CT(Math.floor(D+
Math.random()*(S?D===0?0:Math.min(k,5):k))*1E3,X*1E3)),z.SS=S;K=g9(K,l,M,z,w,[new JX(x)]);b.get().J.Zi(z.SS.start/1E3-D,x.startSecs-D);return[K]})};
Jz=function(Q){var W,x=(W=RE(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:W.current;if(!x)return null;W=RE(Q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var D=Q.layoutId,K=RE(Q.clientMetadata,"metadata_type_content_cpn"),l=RE(Q.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),M=RE(Q.clientMetadata,"metadata_type_player_overlay_layout_renderer"),w=RE(Q.clientMetadata,"metadata_type_player_underlay_renderer"),S=RE(Q.clientMetadata,
"metadata_type_ad_placement_config"),b=RE(Q.clientMetadata,"metadata_type_video_length_seconds");var z=Du(Q.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?RE(Q.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Du(Q.clientMetadata,"metadata_type_layout_enter_ms")&&Du(Q.clientMetadata,"metadata_type_layout_exit_ms")?(RE(Q.clientMetadata,"metadata_type_layout_exit_ms")-RE(Q.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{bT:D,contentCpn:K,sZ:x,uM:W,instreamAdPlayerOverlayRenderer:l,
playerOverlayLayoutRenderer:M,instreamAdPlayerUnderlayRenderer:w,adPlacementConfig:S,videoLengthSeconds:b,Dn:z,inPlayerLayoutId:RE(Q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:RE(Q.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
qQF=function(Q,W){return Ujl(Q,W)};
Baz=function(Q,W){W=Ujl(Q,W);if(!W)return null;var x;W.Dn=(x=RE(Q.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:x.adBreakRemainingLengthSeconds;return W};
Ujl=function(Q,W){var x,D=(x=RE(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:x.current;if(!D)return null;x=Qll(Q,W);return{QF:ttl(Q,W),adPlacementConfig:RE(Q.clientMetadata,"metadata_type_ad_placement_config"),Xg:x,contentCpn:RE(Q.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:RE(Q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:RE(Q.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:RE(Q.clientMetadata,
"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Dn:void 0,sZ:D,bT:Q.layoutId,videoLengthSeconds:RE(Q.clientMetadata,"metadata_type_video_length_seconds")}};
p_=function(Q,W,x,D,K,l,M,w,S){g.N.call(this);this.N=Q;this.X=W;this.L=x;this.D=D;this.B=K;this.U=l;this.PV=M;this.yj=w;this.o5=S;this.WI=!0};
$j5=function(Q,W,x){return pE1(Q.B.get(),W.contentCpn,W.bT,function(D){return h05(Q.U.get(),D.slotId,x,W.adPlacementConfig,W.bT,kz(Q.PV.get(),D))})};
hz=function(Q,W,x,D,K,l,M,w){g.N.call(this);this.U=Q;this.B=W;this.D=x;this.yj=D;this.N=K;this.o5=l;this.Jf=M;this.FE=w};
aP=function(Q){g.N.call(this);this.B=Q};
ud=function(Q,W,x,D){Q.B().lS(W,D);x=x();Q=Q.B();Q.vN.o$("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",W,D,x);W=g.V(x);for(x=W.next();!x.done;x=W.next())a:{D=Q;x=x.value;D.vN.t4("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",x);D.vN.t4("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",x);try{var K=D.B;if(g.p5(x.slotId))throw new E("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Cd(K,x))throw new E("Duplicate registration for slot.",{slotId:x.slotId,slotEntryTriggerType:x.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!K.Xi.Yl.has(x.slotType))throw new E("No fulfillment adapter factory registered for slot of type: "+x.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!K.Xi.C0.has(x.slotType))throw new E("No SlotAdapterFactory registered for slot of type: "+x.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");cq(K,"TRIGGER_CATEGORY_SLOT_ENTRY",x.slotEntryTrigger?[x.slotEntryTrigger]:[]);cq(K,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
x.slotFulfillmentTriggers);cq(K,"TRIGGER_CATEGORY_SLOT_EXPIRATION",x.slotExpirationTriggers);var l=D.B,M=x.slotType+"_"+x.slotPhysicalPosition,w=Bq(l,M);if(Cd(l,x))throw new E("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");w.set(x.slotId,new L0v(x));l.B.set(M,w)}catch(Ks){Ks instanceof E&&Ks.yk?(D.vN.xR("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Ks.yk,x),sH(Ks,x,void 0,void 0,Ks.P2)):(D.vN.xR("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
x),sH(Ks,x));break a}Cd(D.B,x).X=!0;try{var S=D.B,b=Cd(S,x),z=x.slotEntryTrigger,k=S.Xi.SD.get(z.triggerType);k&&(k.Mq("TRIGGER_CATEGORY_SLOT_ENTRY",z,x,null),b.F3.set(z.triggerId,k));for(var X=g.V(x.slotFulfillmentTriggers),u=X.next();!u.done;u=X.next()){var Y=u.value,v=S.Xi.SD.get(Y.triggerType);v&&(v.Mq("TRIGGER_CATEGORY_SLOT_FULFILLMENT",Y,x,null),b.uj.set(Y.triggerId,v))}for(var J=g.V(x.slotExpirationTriggers),h=J.next();!h.done;h=J.next()){var G=h.value,H=S.Xi.SD.get(G.triggerType);H&&(H.Mq("TRIGGER_CATEGORY_SLOT_EXPIRATION",
G,x,null),b.T.set(G.triggerId,H))}var I=S.Xi.Yl.get(x.slotType).get().build(S.D,x);b.G=I;var c=S.Xi.C0.get(x.slotType).get().build(S.L,x);c.init();b.U=c}catch(Ks){Ks instanceof E&&Ks.yk?(D.vN.xR("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Ks.yk,x),sH(Ks,x,void 0,void 0,Ks.P2)):(D.vN.xR("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",x),sH(Ks,x));Vm(D,x,!0);break a}D.vN.t4("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",x);D.B.vI(x);for(var O=g.V(D.U),T=O.next();!T.done;T=
O.next())T.value.vI(x);hs(D,x)}};
Go=function(Q,W,x,D,K){g.N.call(this);var l=this;this.U=Q;this.D=W;this.ly=x;this.context=K;this.B=new Map;D.get().addListener(this);this.addOnDisposeCallback(function(){D.d7()||D.get().removeListener(l)})};
q21=function(Q,W){var x=0x8000000000000;var D=0;for(var K=g.V(W.slotFulfillmentTriggers),l=K.next();!l.done;l=K.next())l=l.value,l instanceof Ie?(x=Math.min(x,l.B.start),D=Math.max(D,l.B.end)):sH("Found unexpected fulfillment trigger for throttled slot.",W,null,{fulfillmentTrigger:l});D=new CT(x,D);x="throttledadcuerange:"+W.slotId;Q.B.set(x,W);Q.ly.get().addCueRange(x,D.start,D.end,!1,Q);p3(Q.context.yj.get())&&(W=D.start,D=D.end,K={},Q.context.HK.T1("tcrr",(K.cid=x,K.sm=W,K.em=D,K)))};
d7=function(){g.N.apply(this,arguments);this.WI=!0;this.ZE=new Map;this.B=new Map};
i8=function(Q,W){Q=g.V(Q.ZE.values());for(var x=Q.next();!x.done;x=Q.next())if(x.value.layoutId===W)return!0;return!1};
Az=function(Q,W){Q=g.V(Q.B.values());for(var x=Q.next();!x.done;x=Q.next()){x=g.V(x.value);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D.layoutId===W)return D}sH("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.p5(W)),layoutId:W})};
Ibs=function(){this.B=new Map};
mjs=function(Q,W){this.callback=Q;this.slot=W};
He=function(){};
Nah=function(Q,W,x){this.callback=Q;this.slot=W;this.Jf=x};
cX1=function(Q,W,x){this.callback=Q;this.slot=W;this.Jf=x;this.U=!1;this.B=0};
gj5=function(Q,W,x){this.callback=Q;this.slot=W;this.Jf=x};
Uf=function(Q){this.Jf=Q};
qS=function(Q){g.N.call(this);this.zw=Q;this.cN=new Map};
Be=function(Q,W){for(var x=[],D=g.V(Q.cN.values()),K=D.next();!K.done;K=D.next()){K=K.value;var l=K.trigger;l instanceof Fc&&l.triggeringLayoutId===W&&x.push(K)}x.length?Hq(Q.zw(),x):sH("Survey is submitted but no registered triggers can be activated.")};
$s=function(Q,W,x){qS.call(this,Q);var D=this;this.yj=x;W.get().addListener(this);this.addOnDisposeCallback(function(){W.d7()||W.get().removeListener(D)})};
IP=function(Q){g.N.call(this);this.B=Q;this.WI=!0;this.cN=new Map;this.L=new Set;this.D=new Set;this.N=new Set;this.X=new Set;this.U=new Set};
mD=function(Q){g.N.call(this);this.B=Q;this.cN=new Map};
NS=function(Q,W){for(var x=[],D=g.V(Q.cN.values()),K=D.next();!K.done;K=D.next())K=K.value,K.trigger.B===W.layoutId&&x.push(K);x.length&&Hq(Q.B(),x)};
ce=function(Q,W,x){g.N.call(this);var D=this;this.B=Q;this.context=x;this.cN=new Map;W.get().addListener(this);this.addOnDisposeCallback(function(){W.d7()||W.get().removeListener(D)})};
g7=function(Q,W,x,D,K){g.N.call(this);var l=this;this.U=Q;this.ly=W;this.Jf=x;this.o5=D;this.context=K;this.WI=!0;this.cN=new Map;this.B=new Set;x.get().addListener(this);this.addOnDisposeCallback(function(){x.d7()||x.get().removeListener(l)})};
yXO=function(Q,W,x,D,K,l,M,w,S,b){if(nz(Q.o5.get(),1).clientPlaybackNonce!==S)throw new E("Cannot register CueRange-based trigger for different content CPN",{trigger:x});Q.cN.set(x.triggerId,{fm:new Q3(W,x,D,K),cueRangeId:l});Q.ly.get().addCueRange(l,M,w,b,Q);p3(Q.context.yj.get())&&(S={},Q.context.HK.T1("crr",(S.ca=W,S.tt=x.triggerType,S.st=D.slotType,S.lt=K==null?void 0:K.layoutType,S.cid=l,S.sm=M,S.em=w,S)))};
eq5=function(Q,W){Q=g.V(Q.cN.entries());for(var x=Q.next();!x.done;x=Q.next()){var D=g.V(x.value);x=D.next().value;D=D.next().value;if(W===D.cueRangeId)return x}return""};
yE=function(Q,W){g.N.call(this);var x=this;this.N=Q;this.U=new Map;this.D=new Map;this.B=null;W.get().addListener(this);this.addOnDisposeCallback(function(){W.d7()||W.get().removeListener(x)});
var D;this.B=((D=W.get().yr)==null?void 0:D.slotId)||null};
fbl=function(Q,W){var x=[];Q=g.V(Q.values());for(var D=Q.next();!D.done;D=Q.next())D=D.value,D.slot.slotId===W&&x.push(D);return x};
es=function(Q){g.N.call(this);this.B=Q;this.WI=!0;this.cN=new Map};
rE=function(Q,W,x){W=W.layoutId;for(var D=[],K=g.V(Q.cN.values()),l=K.next();!l.done;l=K.next())if(l=l.value,l.trigger instanceof g2){var M;if(M=l.trigger.layoutId===W){M=x;var w=NNl.get(l.category);M=w?w===M:!1}M&&D.push(l)}D.length&&Hq(Q.B(),D)};
f_=function(Q){g.N.call(this);this.B=Q;this.WI=!0;this.cN=new Map};
ZO=function(Q,W,x,D,K){g.N.call(this);var l=this;this.L=Q;this.eQ=W;this.Jf=x;this.vt=D;this.B=null;this.WI=!0;this.cN=new Map;this.D=new Map;W.get().addListener(this);this.addOnDisposeCallback(function(){W.d7()||W.get().removeListener(l)});
K.get().addListener(this);this.addOnDisposeCallback(function(){K.d7()||K.get().removeListener(l)})};
LG5=function(Q){Q.B&&(Q.U&&(Q.U.stop(),Q.U.start()),ZY1(Q,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))};
ZY1=function(Q,W){for(var x=[],D=g.V(Q.cN.values()),K=D.next();!K.done;K=D.next())K=K.value,K.trigger.triggerType===W&&x.push(K);x.length>0&&Hq(Q.L(),x)};
L_=function(Q,W,x,D,K){K=K===void 0?!0:K;for(var l=[],M=g.V(Q.cN.values()),w=M.next();!w.done;w=M.next()){w=w.value;var S=w.trigger;if(S.triggerType===W){if(S instanceof qE||S instanceof Bj||S instanceof mm){if(K&&S.breakDurationMs!==x)continue;if(!K&&S.breakDurationMs===x)continue;if(D.has(S.triggerId))continue}l.push(w)}}l.length>0&&Hq(Q.L(),l)};
rX1=function(Q){Q=Q.adPlacementRenderer.config.adPlacementConfig;if(!Q.prefetchModeConfig||!Q.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;Q=Number(Q.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(Q)||Q<=0?0:Math.floor(Math.random()*Q)};
Ta2=function(Q){Q=Q.adPlacementRenderer.config.adPlacementConfig;if(Q.prefetchModeConfig&&Q.prefetchModeConfig.cacheFetchRefreshDurationMs&&(Q=Number(Q.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(Q)||Q<=0)))return Q};
r7=function(Q){Q.B=null;Q.cN.clear();Q.D.clear();Q.U&&Q.U.stop();Q.N&&Q.N.stop()};
To=function(Q){g.N.call(this);this.D=Q;this.WI=!0;this.cN=new Map;this.B=new Map;this.U=new Map};
OYF=function(Q,W){var x=[];if(W=Q.B.get(W.layoutId)){W=g.V(W);for(var D=W.next();!D.done;D=W.next())(D=Q.U.get(D.value.triggerId))&&x.push(D)}return x};
Of=function(Q){g.N.call(this);this.B=Q;this.cN=new Map};
Ej5=function(Q,W){for(var x=[],D=g.V(Q.cN.values()),K=D.next();!K.done;K=D.next())K=K.value,K.trigger instanceof JK&&K.trigger.slotId===W&&x.push(K);x.length>=1&&Hq(Q.B(),x)};
FG2=function(Q,W){var x={slotId:Y4(W,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Mj:"surface",clientMetadata:new Mp([])},D=Object,K=D.assign;W=F0(W,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",x.slotId);W={layoutId:W,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",bN:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"surface",
clientMetadata:new Mp([]),EV:Ul1(!1,x.slotId,x.slotType,x.slotPhysicalPosition,x.Mj,x.slotEntryTrigger,x.slotFulfillmentTriggers,x.slotExpirationTriggers,W,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return K.call(D,{},Q,{Cjf:!0,slot:x,layout:W})};
ms5=function(Q,W,x,D){var K=Q.kind;D=D?!1:!Q.hideCueRangeMarker;switch(K){case "AD_PLACEMENT_KIND_START":return D={OB:new CT(-0x8000000000000,-0x8000000000000),Au:D},x!=null&&(D.SS=new CT(-0x8000000000000,-0x8000000000000)),D;case "AD_PLACEMENT_KIND_END":return D={OB:new CT(0x7ffffffffffff,0x8000000000000),Au:D},x!=null&&(D.SS=new CT(Math.max(0,W-x),0x8000000000000)),D;case "AD_PLACEMENT_KIND_MILLISECONDS":K=Q.adTimeOffset;K.offsetStartMilliseconds||sH("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
K.offsetEndMilliseconds||sH("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");Q=Number(K.offsetStartMilliseconds);K=Number(K.offsetEndMilliseconds);K===-1&&(K=W);if(Number.isNaN(Q)||Number.isNaN(K)||Q>K)return new E("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Q,offsetEndMs:K},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",K===W&&Q-500<=K);D={OB:new CT(Q,K),Au:D};if(x!=null){Q=Math.max(0,Q-x);if(Q===K)return D;D.SS=new CT(Q,K)}return D;
default:return new E("AdPlacementKind not supported in convertToRange.",{kind:K,adPlacementConfig:Q})}};
AX2=function(Q){var W=Q.startSecs*1E3;return new CT(W,W+Q.eE*1E3)};
ta1=function(Q){if(!Q||!Q.adPlacements&&!Q.adSlots)return!1;for(var W=g.V(Q.adPlacements||[]),x=W.next();!x.done;x=W.next())if(x=x.value)if(x=x.adPlacementRenderer,x!=null&&(x.config&&x.config.adPlacementConfig&&x.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;Q=g.V(Q.adSlots||[]);for(W=Q.next();!W.done;W=Q.next()){var D=x=void 0;if(((x=g.e(W.value,cD))==null?void 0:(D=x.adSlotMetadata)==null?void 0:D.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1};
Ef=function(Q){this.yj=Q;this.U=new Map;this.B=new Map;this.D=new Map};
Y4=function(Q,W){if(FR(Q.yj.get())){var x=Q.U.get(W)||0;x++;Q.U.set(W,x);return W+"_"+x}return g.Cu(16)};
F0=function(Q,W,x){if(FR(Q.yj.get())){var D=Q.B.get(W)||0;D++;Q.B.set(W,D);return x+"_"+W+"_"+D}return g.Cu(16)};
RP=function(Q,W){if(FR(Q.yj.get())){var x=Q.D.get(W)||0;x++;Q.D.set(W,x);return W+"_"+x}return g.Cu(16)};
QEl=function(Q){var W=[new oF(Q.bT),new VD(Q.sZ),new Ev(Q.adPlacementConfig),new pY(Q.videoLengthSeconds),new yD(Q.Dn)];Q.instreamAdPlayerOverlayRenderer&&W.push(new KY(Q.instreamAdPlayerOverlayRenderer));Q.playerOverlayLayoutRenderer&&W.push(new la(Q.playerOverlayLayoutRenderer));Q.uM&&W.push(new Wr(Q.uM));return W};
WKl=function(Q,W,x,D,K,l){Q=x.inPlayerLayoutId?x.inPlayerLayoutId:F0(l,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Q);var M,w,S=x.instreamAdPlayerOverlayRenderer?(M=x.instreamAdPlayerOverlayRenderer)==null?void 0:M.adLayoutLoggingData:(w=x.playerOverlayLayoutRenderer)==null?void 0:w.adLayoutLoggingData;M={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Mj:W};return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bN:new Map,layoutExitNormalTriggers:[new Hj(function(b){return RP(l,
b)},x.bT)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:W,clientMetadata:D,EV:K(M),adLayoutLoggingData:S}};
tz=function(Q,W){var x=this;this.U=Q;this.yj=W;this.B=function(D){return RP(x.U.get(),D)}};
h05=function(Q,W,x,D,K,l){x=new Mp([new Mj(x),new Ev(D)]);W=F0(Q.U.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",W);D={layoutId:W,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Mj:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",bN:new Map,layoutExitNormalTriggers:[new Hj(function(M){return RP(Q.U.get(),M)},K)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:x,EV:l(D),adLayoutLoggingData:void 0}};
QE=function(Q,W,x,D,K){var l=QEl(D);return WKl(W,x,D,new Mp(l),K,Q.U.get())};
xpl=function(Q,W,x,D,K){var l=QEl(D);l.push(new Tf(D.QF));l.push(new Ov(D.Xg));return WKl(W,x,D,new Mp(l),K,Q.U.get())};
VE=function(Q,W,x,D,K,l,M,w,S,b){W=F0(Q.U.get(),x,W);var z={layoutId:W,layoutType:x,Mj:"core"},k=new Map;M&&k.set("impression",M);M=[new NE(Q.B,K,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];b&&M.push(new AK(Q.B,b,["normal"]));return{layoutId:W,layoutType:x,bN:k,layoutExitNormalTriggers:M,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:new Mp([D,new Ev(l),new oF(K)]),EV:w(z),adLayoutLoggingData:S}};
Pe=function(Q,W,x,D,K,l,M,w,S){W=F0(Q.U.get(),x,W);var b={layoutId:W,layoutType:x,Mj:"core"},z=[new NE(Q.B,K,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];S&&z.push(new AK(Q.B,S,["normal"]));return{layoutId:W,layoutType:x,bN:new Map,layoutExitNormalTriggers:z,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:new Mp([D,new Ev(l),new oF(K)]),EV:M(b),adLayoutLoggingData:w}};
Ss=function(Q,W,x){var D=[];D.push(new cj(Q.B,x));W&&D.push(W);return D};
w7=function(Q,W,x,D,K,l,M){var w={layoutId:W,layoutType:x,Mj:"core"};return{layoutId:W,layoutType:x,bN:new Map,layoutExitNormalTriggers:M,layoutExitSkipTriggers:[new ae(Q.B,W)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:new Mp([new fB(D),new Ev(K)]),EV:l(w),adLayoutLoggingData:D.adLayoutLoggingData}};
OS=function(Q,W,x,D,K,l,M,w){var S={layoutId:W,layoutType:l,Mj:"core"};return{layoutId:W,layoutType:l,bN:new Map,layoutExitNormalTriggers:[new Hj(Q.B,x)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:new Mp([new Ev(D)].concat(g.C(M))),EV:K(S),adLayoutLoggingData:w}};
sf=function(Q,W,x,D){if(Q.yj.get().qx(W.kind==="AD_PLACEMENT_KIND_START"))if(x===void 0)sH("Expected SSAP layout ID in renderer",void 0,void 0,{caller:D});else return x};
jFO=function(Q,W,x,D,K,l,M,w,S,b,z,k,X){Q=b8(Q,W,x,K,l,M,w,S,k,sf(Q,x,D.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),X);W=Q.EH;x=new ua(Q.m_);D=Q.layoutExitSkipTriggers;b>0&&(W.push(x),W.push(new QD(b)),D=[]);W.push(new tp(z));return{N_:{layoutId:Q.layoutId,layoutType:Q.layoutType,bN:Q.bN,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:Q.Mj,clientMetadata:new Mp(W),EV:Q.EV,adLayoutLoggingData:Q.adLayoutLoggingData},
Df:D,nR:Q.layoutExitMuteTriggers,o2:Q.layoutExitUserInputSubmittedTriggers,j3:Q.dE,gP:Q.gP}};
SQO=function(Q,W,x,D,K,l,M,w,S,b){W=b8(Q,W,x,D,l,new Map,M,function(z){return w(z,S)},void 0,sf(Q,x,K.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
Q=new Fc(Q.B,W.m_);x=new ua(W.m_);b=new tp(b);return{N_:{layoutId:W.layoutId,layoutType:W.layoutType,bN:W.bN,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:W.Mj,clientMetadata:new Mp([].concat(g.C(W.EH),[x,b])),EV:W.EV,adLayoutLoggingData:W.adLayoutLoggingData},Df:W.layoutExitSkipTriggers,nR:W.layoutExitMuteTriggers,o2:[].concat(g.C(W.layoutExitUserInputSubmittedTriggers),[Q]),j3:W.dE,gP:W.gP}};
b8=function(Q,W,x,D,K,l,M,w,S,b,z){W=b!=null?b:F0(Q.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",W);b={layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Mj:"adapter"};w=w(W);var k=RE(w.clientMetadata,"metadata_type_fulfilled_layout");k||sH("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var X=k?k.layoutId:"";x=[new Ev(x),new ea(D),new LY(K)];k&&x.push(new Yj(k.layoutType));z&&x.push(new AX(z));return{layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
bN:l,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new f$(Q.B,X)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"adapter",EH:x,EV:M(b),adLayoutLoggingData:S,gP:w,m_:X}};
C15=function(Q,W,x,D,K,l,M,w,S,b,z){Q=Dph(Q,W,"core",x,D,K,l,M,w,S,b,void 0,z);return{layoutId:Q.layoutId,layoutType:Q.layoutType,bN:Q.bN,layoutExitNormalTriggers:Q.layoutExitNormalTriggers,layoutExitSkipTriggers:Q.layoutExitSkipTriggers,layoutExitMuteTriggers:Q.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:Q.layoutExitUserInputSubmittedTriggers,dE:Q.dE,Mj:Q.Mj,clientMetadata:new Mp(Q.i8),EV:Q.EV,adLayoutLoggingData:Q.adLayoutLoggingData}};
Pa2=function(Q,W,x,D,K,l,M,w,S,b,z,k,X){W=Dph(Q,W,"adapter",x,D,K,l,M,w,S,z,k,X);D=W.layoutExitSkipTriggers;K=W.i8;x.adPodSkipTarget&&x.adPodSkipTarget>0&&(K.push(b),K.push(new QD(x.adPodSkipTarget)),D=[]);K.push(new tp(w.adPodIndex));x.isCritical&&(D=[new AK(Q.B,W.layoutId,["error"])].concat(g.C(D)));return{N_:{layoutId:W.layoutId,layoutType:W.layoutType,bN:W.bN,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:W.Mj,clientMetadata:new Mp(K),
EV:W.EV,adLayoutLoggingData:W.adLayoutLoggingData},Df:D,nR:W.layoutExitMuteTriggers,o2:W.layoutExitUserInputSubmittedTriggers,j3:W.dE}};
Dph=function(Q,W,x,D,K,l,M,w,S,b,z,k,X){var u={layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA",Mj:x};K=[new Ev(K),new FC(S),new xj(D.externalVideoId),new Db(w),new LY({impressionCommands:D.impressionCommands,abandonCommands:D.onAbandonCommands,completeCommands:D.completeCommands,progressCommands:D.adVideoProgressCommands}),new hX(l),new Pr({current:null}),new pY(M)];(l=D.playerOverlay.instreamAdPlayerOverlayRenderer)&&K.push(new KY(l));(M=D.playerOverlay.playerOverlayLayoutRenderer)&&K.push(new la(M));
k&&K.push(new aF(k));(k=D.playerUnderlay)&&K.push(new Mj(k));w=Y4(Q.U.get(),"SLOT_TYPE_IN_PLAYER");k=(k=l?l.elementId:M==null?void 0:M.layoutId)?k:F0(Q.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",w);K.push(new ua(k));K.push(new nY(w));K.push(new AX(S.adPodIndex));D.adNextParams&&K.push(new ys(D.adNextParams));D.shrunkenPlayerBytesConfig&&K.push(new Sa(D.shrunkenPlayerBytesConfig));D.clickthroughEndpoint&&K.push(new ed(D.clickthroughEndpoint));D.legacyInfoCardVastExtension&&K.push(new fY(D.legacyInfoCardVastExtension));
D.sodarExtensionData&&K.push(new G6(D.sodarExtensionData));z&&K.push(new cr(z));K.push(new OQ(au(D.pings)));S=G5(D.pings);if(X){a:{X=g.V(X);for(z=X.next();!z.done;z=X.next())if(z=z.value,z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(l=g.e(z.fulfillmentContent.fulfilledLayout,i6))&&(l=g.e(l.renderingContent,Gv))&&l.associatedPlayerBytesLayoutId===W){X=z;break a}X=void 0}X&&K.push(new RF(X))}return{layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA",bN:S,layoutExitNormalTriggers:[new g2(Q.B,W)],layoutExitSkipTriggers:D.skipOffsetMilliseconds?
[new f$(Q.B,k)]:[],layoutExitMuteTriggers:[new f$(Q.B,k)],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:x,i8:K,EV:b(u),adLayoutLoggingData:D.adLayoutLoggingData}};
z0z=function(Q,W,x,D,K,l,M,w,S){D.every(function(z){return Kd(z,[],["LAYOUT_TYPE_MEDIA"])})||sH("Unexpect subLayout type for DAI composite layout");
W=F0(Q.U.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",W);var b={layoutId:W,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Mj:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bN:new Map,layoutExitNormalTriggers:[new Uj(Q.B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],dE:[],Mj:"core",clientMetadata:new Mp([new da(x),new ia(w),new CY(D),new Ev(K),new Br(l),new Hr({}),new Fu(S)]),EV:M(b)}};
R0z=function(Q){return Q!=null};
Ql=function(Q,W,x){var D=this;this.U=Q;this.D=W;this.yj=x;this.B=function(K){return RP(D.U.get(),K)}};
iY5=function(Q,W,x,D,K,l,M){if(!x.prefetchModeConfig)return new E("AdPlacementConfig for Live Prefetch is missing prefetch_config");x=x.prefetchModeConfig;D*=1E3;var w=[];if(!x.breakLengthMs)return new E("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var S=g.V(x.breakLengthMs),b=S.next();!b.done;b=S.next())if(b=b.value,Number(b)>0){var z=D+Number(x.startTimeOffsetMs),k=z+Number(x.cacheFetchSmearingDurationMs);b={OB:new CT(k,k+Number(b)),Au:!1,SS:new CT(Math.floor(z+Math.random()*
Number(x.cacheFetchSmearingDurationMs)),k),cueProcessedMs:D?D:z};z=[];z.push(new xz({}));k=[];k.push(new eB(Q.B));k.push(new WyF(Q.B));M&&z.push(new Hr({}));w.push(g9(Q,W,K,b,l,z,k))}return w};
g9=function(Q,W,x,D,K,l,M){l=l===void 0?[]:l;M=M===void 0?[]:M;var w=Y4(Q.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),S=[];M=g.V(M);for(var b=M.next();!b.done;b=M.next())S.push(b.value);D.SS&&D.SS.start!==D.OB.start&&S.push(new Ie(Q.B,x,new CT(D.SS.start,D.OB.start),!1));S.push(new Ie(Q.B,x,new CT(D.OB.start,D.OB.end),D.Au));D={getAdBreakUrl:W.getAdBreakUrl,EJ:D.OB.start,LK:D.OB.end,cueProcessedMs:D.cueProcessedMs};W=new TE(Q.B,w);l=[new mG(D)].concat(g.C(l));return{slotId:w,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",
slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:S,slotExpirationTriggers:[new yW(Q.B,x),new L$(Q.B,w),new r2(Q.B,w)],Mj:"core",clientMetadata:new Mp(l),adSlotLoggingData:K}};
lu5=function(Q,W,x){var D=[];x=g.V(x);for(var K=x.next();!K.done;K=x.next())D.push(KKs(Q,W,K.value));return D};
KKs=function(Q,W,x){return x.triggeringSlotId!=null&&x.triggeringSlotId===Q?x.clone(W):x};
Ewh=function(Q,W,x,D,K){return jEs(Q,W,x,D,K)};
Mal=function(Q,W,x,D){var K=Y4(Q.U.get(),"SLOT_TYPE_IN_PLAYER");return jEs(Q,K,W,x,D)};
jEs=function(Q,W,x,D,K){var l=new iP(Q.B,x),M=[new Z2(Q.B,W)];Q=[new L$(Q.B,W),new yW(Q.B,D)];return{slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:M,slotExpirationTriggers:Q,Mj:"core",clientMetadata:new Mp([new IF(K({slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:l,slotFulfillmentTriggers:M,slotExpirationTriggers:Q},x))]),adSlotLoggingData:void 0}};
vjl=function(Q,W,x,D,K,l){var M=Y4(Q.U.get(),"SLOT_TYPE_PLAYER_BYTES"),w=Y4(Q.U.get(),"SLOT_TYPE_IN_PLAYER"),S=F0(Q.U.get(),"LAYOUT_TYPE_SURVEY",w);D=Wc(Q,W,x,D);var b=[new Z2(Q.B,M)];x=[new L$(Q.B,M),new yW(Q.B,x),new ae(Q.B,S)];if(D instanceof E)return D;w=l({slotId:M,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:D,slotFulfillmentTriggers:b,slotExpirationTriggers:x},{slotId:w,layoutId:S});l=w.jW3;w=w.R9S;return[{slotId:M,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:ks(Q,W,M,D),slotFulfillmentTriggers:oP(Q,W,M,b),slotExpirationTriggers:x,Mj:"core",clientMetadata:new Mp([new IF(l),new tX(u8(W)),new Wq({nf:Q.nf(W)})]),adSlotLoggingData:K},w]};
u8=function(Q){return Q.kind==="AD_PLACEMENT_KIND_START"};
Jpn=function(Q,W,x,D,K){K=K?K:Y4(Q.U.get(),"SLOT_TYPE_IN_PLAYER");x=new iP(Q.B,x);var l=[new Z2(Q.B,K)];Q=[new yW(Q.B,W),new L$(Q.B,K)];return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:l,slotExpirationTriggers:Q,Mj:"core",clientMetadata:new Mp([new IF(D({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:x,slotFulfillmentTriggers:l,slotExpirationTriggers:Q}))])}};
pE1=function(Q,W,x,D){var K=Y4(Q.U.get(),"SLOT_TYPE_PLAYER_UNDERLAY");x=new iP(Q.B,x);var l=[new Z2(Q.B,K)];Q=[new yW(Q.B,W),new L$(Q.B,K)];return{slotId:K,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:l,slotExpirationTriggers:Q,Mj:"core",clientMetadata:new Mp([new IF(D({slotId:K,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:x,slotFulfillmentTriggers:l,slotExpirationTriggers:Q}))])}};
ots=function(Q,W,x,D,K,l,M){var w=Y4(Q.U.get(),"SLOT_TYPE_IN_PLAYER"),S=F0(Q.U.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",w);D=MXa(Q,D,l,M,S);if(D instanceof E)return D;M=[new Z2(Q.B,w)];K=[new yW(Q.B,l),new Z2(Q.B,K),new Ej(Q.B,K)];x=kz(x,{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:D,slotFulfillmentTriggers:M,slotExpirationTriggers:K});Q=Q.D.get();l={layoutId:S,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Mj:"core"};W={layoutId:S,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
bN:new Map,layoutExitNormalTriggers:[new wQ4(Q.B,S,W.durationMs)],layoutExitSkipTriggers:[new bIn(Q.B,S,W.durationMs)],dE:[new S2h(Q.B,S)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mj:"core",clientMetadata:new Mp([new Zb(W)]),EV:x(l)};return{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:D,slotFulfillmentTriggers:M,slotExpirationTriggers:K,clientMetadata:new Mp([new IF(W)])}};
KGs=function(Q,W,x,D,K,l){W=Wc(Q,W,x,D);if(W instanceof E)return W;var M=W instanceof Ie?new jtz(Q.B,x,W.B):null;D=Y4(Q.U.get(),"SLOT_TYPE_IN_PLAYER");var w=[new Z2(Q.B,D)];Q=[new yW(Q.B,x),new L$(Q.B,D)];l=l({slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:W,slotFulfillmentTriggers:w,slotExpirationTriggers:Q},M);return l instanceof jX?new E(l):{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:w,slotExpirationTriggers:Q,
Mj:"core",clientMetadata:new Mp([new IF(l)]),adSlotLoggingData:K}};
xjF=function(Q,W,x,D){var K=Y4(Q.U.get(),"SLOT_TYPE_IN_PLAYER"),l=new hK(Q.B,W),M=[new Oj(Q.B,K)];Q=[new yW(Q.B,W),new L$(Q.B,K)];return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:M,slotExpirationTriggers:Q,Mj:"core",clientMetadata:new Mp([new IF(D({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:l,slotFulfillmentTriggers:M,slotExpirationTriggers:Q}))]),adSlotLoggingData:x}};
DbF=function(Q,W,x,D){var K=Y4(Q.U.get(),"SLOT_TYPE_IN_PLAYER");x=new iP(Q.B,x);var l=[new Z2(Q.B,K)],M=[new L$(Q.B,K),new yW(Q.B,W)];l={slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:x,slotFulfillmentTriggers:l,slotExpirationTriggers:M};return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:[new Z2(Q.B,K)],slotExpirationTriggers:[new yW(Q.B,W),new L$(Q.B,K)],Mj:"core",clientMetadata:new Mp([new IF(D(l))])}};
Q9h=function(Q,W,x,D,K){var l=Y4(Q.U.get(),"SLOT_TYPE_IN_PLAYER");x=new d2(Q.B,D,x);D=[new Z2(Q.B,l)];Q=[new yW(Q.B,W)];return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:D,slotExpirationTriggers:Q,Mj:"core",clientMetadata:new Mp([new IF(K({slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:x,slotFulfillmentTriggers:D,slotExpirationTriggers:Q}))])}};
ry1=function(Q,W,x,D,K,l){var M=Y4(Q.U.get(),W);return xv(Q,M,W,new iP(Q.B,D),[new yW(Q.B,x),new L$(Q.B,M),new AK(Q.B,D,["error"])],K,l)};
Lyv=function(Q,W,x,D,K,l,M){var w=Y4(Q.U.get(),W);return xv(Q,w,W,new AK(Q.B,K,["normal"]),[new yW(Q.B,x),new L$(Q.B,w),new AK(Q.B,D,["error"])],l,M)};
yy2=function(Q,W,x,D,K){var l=Y4(Q.U.get(),W);return xv(Q,l,W,new hK(Q.B,x),[new yW(Q.B,x),new L$(Q.B,l)],D,K)};
F9n=function(Q,W,x,D,K){x=x?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var l=Y4(Q.U.get(),x);W=new hK(Q.B,W);var M=[new Z2(Q.B,l)];Q=[new L$(Q.B,l)];return{slotId:l,slotType:x,slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:M,slotExpirationTriggers:Q,Mj:"core",clientMetadata:new Mp([new IF(K({slotId:l,slotType:x,slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:W,slotFulfillmentTriggers:M,slotExpirationTriggers:Q}))]),adSlotLoggingData:D}};
wEO=function(Q,W,x,D){var K=Y4(Q.U.get(),"SLOT_TYPE_PLAYER_BYTES"),l=new $e(Q.B),M=[new Oj(Q.B,K)];Q=[new yW(Q.B,W)];return{slotId:K,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:M,slotExpirationTriggers:Q,Mj:"core",clientMetadata:new Mp([new IF(D({slotId:K,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:l,slotFulfillmentTriggers:M,slotExpirationTriggers:Q})),new Hr({})]),adSlotLoggingData:x}};
uuh=function(Q,W){return G6Q(Q.yj.get())?new AK(Q.B,W,["normal","error","skipped"]):new AK(Q.B,W,["normal"])};
Vds=function(Q,W,x,D,K){W=uuh(Q,W);Q=zo(Q,W,x);K=K({slotId:Q.slotId,slotType:Q.slotType,slotPhysicalPosition:Q.slotPhysicalPosition,slotEntryTrigger:Q.slotEntryTrigger,slotFulfillmentTriggers:Q.slotFulfillmentTriggers,slotExpirationTriggers:Q.slotExpirationTriggers,Mj:Q.Mj});return K instanceof E?K:{Wl:Object.assign({},Q,{clientMetadata:new Mp([new IF(K.layout)]),adSlotLoggingData:D}),FX:K.FX}};
P12=function(Q,W,x,D,K,l,M){x=YQF(Q,W,x,D);if(x instanceof E)return x;M=M({slotId:x.slotId,slotType:x.slotType,slotPhysicalPosition:x.slotPhysicalPosition,slotEntryTrigger:x.slotEntryTrigger,slotFulfillmentTriggers:x.slotFulfillmentTriggers,slotExpirationTriggers:x.slotExpirationTriggers,Mj:x.Mj});if(M instanceof E)return M;D=[new tX(u8(W)),new IF(M.layout),new Wq({nf:Q.nf(W)})];l&&D.push(new ra({}));return{Wl:{slotId:x.slotId,slotType:x.slotType,slotPhysicalPosition:x.slotPhysicalPosition,slotEntryTrigger:ks(Q,
W,x.slotId,x.slotEntryTrigger),slotFulfillmentTriggers:oP(Q,W,x.slotId,x.slotFulfillmentTriggers),slotExpirationTriggers:x.slotExpirationTriggers,Mj:x.Mj,clientMetadata:new Mp(D),adSlotLoggingData:K},FX:M.FX}};
ks=function(Q,W,x,D){return Q.yj.get().qx(u8(W))?new JK(Q.B,x):D};
oP=function(Q,W,x,D){return Q.yj.get().qx(u8(W))?[new Oj(Q.B,x)]:D};
zo=function(Q,W,x){var D=Y4(Q.U.get(),"SLOT_TYPE_PLAYER_BYTES"),K=[new Z2(Q.B,D)];Q=[new L$(Q.B,D),new yW(Q.B,x)];return{slotId:D,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:K,slotExpirationTriggers:Q,Mj:"core"}};
YQF=function(Q,W,x,D){W=Wc(Q,W,x,D);return W instanceof E?W:zo(Q,W,x)};
QFl=function(Q,W,x,D,K,l){var M=Y4(Q.U.get(),"SLOT_TYPE_FORECASTING");W=Wc(Q,W,x,D);if(W instanceof E)return W;D=[new Z2(Q.B,M)];Q=[new L$(Q.B,M),new yW(Q.B,x)];return{slotId:M,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:D,slotExpirationTriggers:Q,Mj:"core",clientMetadata:new Mp([new IF(l({slotId:M,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:W,slotFulfillmentTriggers:D,slotExpirationTriggers:Q}))]),adSlotLoggingData:K}};
RKl=function(Q,W,x,D,K){var l=!W.hideCueRangeMarker;switch(W.kind){case "AD_PLACEMENT_KIND_START":return new hK(Q.B,x);case "AD_PLACEMENT_KIND_MILLISECONDS":return Q=ms5(W,D),Q instanceof E?Q:K(Q.OB,l);case "AD_PLACEMENT_KIND_END":return new GE(Q.B,x,l);default:return new E("Cannot construct entry trigger",{kind:W.kind})}};
MXa=function(Q,W,x,D,K){return RKl(Q,W,x,D,function(l,M){return new l1Q(Q.B,x,l,M,K)})};
Wc=function(Q,W,x,D){return RKl(Q,W,x,D,function(K,l){return new Ie(Q.B,x,K,l)})};
xv=function(Q,W,x,D,K,l,M){Q=[new Oj(Q.B,W)];return{slotId:W,slotType:x,slotPhysicalPosition:1,slotEntryTrigger:D,slotFulfillmentTriggers:Q,slotExpirationTriggers:K,Mj:"core",clientMetadata:new Mp([new IF(M({slotId:W,slotType:x,slotPhysicalPosition:1,Mj:"core",slotEntryTrigger:D,slotFulfillmentTriggers:Q,slotExpirationTriggers:K}))]),adSlotLoggingData:l}};
DQ=function(Q,W){g.N.call(this);this.yj=Q;this.B=W;this.eventCount=0};
KJ=function(Q,W,x,D){DQ.call(this,Q,W);this.yj=Q;this.o5=x;this.context=D};
l3=function(){this.B=new Map};
Rm=function(Q,W){var x=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=Q;this.result=W.result;this.error=W.error;W.promise&&W.promise.then(function(D){jb(x,D)},function(D){My(x,D)})};
b3=function(Q){if(wL(Q)){if(Q instanceof Rm)return Q;if(Sb(Q))return new Rm("wait",{promise:Q})}return new Rm("done",{result:Q})};
zL=function(){return new Rm("wait",{})};
kv=function(Q){return new Rm("fail",{error:Q})};
XJ=function(Q){try{return b3(Q())}catch(W){return kv(W)}};
u3=function(Q,W){var x=zL();Q.onSuccess.push(function(D){try{var K=W(D);jb(x,K)}catch(l){My(x,l)}});
Q.onFailure.push(function(D){My(x,D)});
om(Q);return x};
Yv=function(Q,W){var x=zL();Q.onSuccess.push(function(D){jb(x,D)});
Q.onFailure.push(function(D){try{var K=W(D);jb(x,K)}catch(l){My(x,l)}});
om(Q);return x};
wq2=function(Q,W){var x=zL();Q.onSuccess.push(function(D){try{W(),jb(x,D)}catch(K){My(x,K)}});
Q.onFailure.push(function(D){try{W(),My(x,D)}catch(K){My(x,K)}});
om(Q)};
jb=function(Q,W){if(wL(W)){if(Sb(W)){W.then(function(x){jb(Q,x)},function(x){My(Q,x)});
return}if(W instanceof Rm){u3(W,function(x){jb(Q,x)});
Yv(W,function(x){My(Q,x)});
return}}Q.currentState="done";Q.result=W;om(Q)};
My=function(Q,W){Q.currentState="fail";Q.error=W;om(Q)};
om=function(Q){if(Q.currentState==="done"){var W=Q.onSuccess;Q.onSuccess=[];Q.onFailure=[];W=g.V(W);for(var x=W.next();!x.done;x=W.next())x=x.value,x(Q.result)}else if(Q.currentState==="fail")for(W=Q.onFailure,Q.onSuccess=[],Q.onFailure=[],W=g.V(W),x=W.next();!x.done;x=W.next())x=x.value,x(Q.error)};
bdF=function(Q){return function(){return SLF(Q.apply(this,g.i2.apply(0,arguments)))}};
SLF=function(Q){return XJ(function(){return nJ(Q,Q.next())})};
nJ=function(Q,W){return W.done?b3(W.value):Yv(u3(W.value.De,function(x){return nJ(Q,Q.next(x))}),function(x){return nJ(Q,Q.throw(x))})};
sE5=function(Q,W){if(Q.length===0)return b3(NaN);var x=zL(),D=Q.length;Q.forEach(function(K,l){wq2(b3(K),function(){x.currentState==="wait"&&(W!==void 0&&W(l)&&x.currentState==="wait"?x.resolve(l):(--D,D===0&&x.resolve(NaN)))})});
return x};
zKh=function(Q){return Q.map(function(W){return b3(W)})};
Pc=function(Q){var W=Q.hours||0;var x=Q.minutes||0,D=Q.seconds||0;W=D+x*60+W*3600+(Q.days||0)*86400+(Q.weeks||0)*604800+(Q.months||0)*2629800+(Q.years||0)*31557600;W<=0?W={hours:0,minutes:0,seconds:0}:(Q=W,W=Math.floor(Q/3600),Q%=3600,x=Math.floor(Q/60),D=Math.floor(Q%60),W={hours:W,minutes:x,seconds:D});var K=W.hours===void 0?0:W.hours;x=W.minutes===void 0?0:W.minutes;Q=W.seconds===void 0?0:W.seconds;D=K>0;W=[];if(D){K=(new Intl.NumberFormat("en-u-nu-latn")).format(K);var l=["fr"],M="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(" ");
K="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(Vl)?K.replace(",","\u00a0"):l.includes(Vl)?K.replace(",","\u202f"):M.includes(Vl)?K.replace(",","."):K;W.push(K)}D=D===void 0?!1:D;x=(["af","be","lt"].includes(Vl)||D)&&x<10?k_v().format(x):(new Intl.NumberFormat("en-u-nu-latn")).format(x);W.push(x);x=k_v().format(Q);W.push(x);x=":";"da fi id si sr sr-Latn".split(" ").includes(Vl)&&(x=".");return W.join(x)};
k_v=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
XqQ=function(Q,W){var x,D;Q=((x=Q.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(D=x.videoAuthorizationToken)==null?void 0:D.credentialTransferTokens)||[];for(x=0;x<Q.length;++x)if(Q[x].scope===W)return Q[x].token||void 0};
vc=function(Q){if(Q&&Q.simpleText)return Q.simpleText;var W="";if(Q&&Q.runs)for(var x=0;x<Q.runs.length;x++)Q.runs[x].text&&(W+=Q.runs[x].text);return W};
CJ=function(Q){return Q?function(){try{return Q.apply(this,arguments)}catch(W){g.ql(W)}}:Q};
JB=function(){this.D=new Set;this.U=new Set;this.N=new Map;this.client=void 0;this.csn=null};
pJ=function(){JB.instance||(JB.instance=new JB);return JB.instance};
hB=function(){};
am=function(){this.G=[];this.S=[];this.B=[];this.pS=[];this.L=[];this.T=[];this.D=new Map;this.X=new Map;this.U=new Set;this.F3=new Map};
GL=function(){am.instance||(am.instance=new am);return am.instance};
dL=function(Q,W,x,D){D=D===void 0?{}:D;g.tx(function(){ozO.includes(W)||(g.Bp(new g.Lw("createClientScreen() called with a non-page VE",W)),W=83769);D.isHistoryNavigation||(Q.pS=[],Q.B.push({rootVe:W,key:D.key||""}));Q.G=[];Q.S=[];D.uB?u0s(Q,W,x,D):YLF(Q,W,x,D)})()};
nzh=function(Q,W,x){x=x===void 0?0:x;g.tx(function(){W.then(function(D){Q.U.has(x)&&Q.N&&Q.N();var K=g.ph(x),l=g.Jb(x);if(K&&l){var M;(D==null?0:(M=D.response)==null?0:M.trackingParams)&&g.rN(Q.client,K,l,g.vp(D.response.trackingParams));var w;(D==null?0:(w=D.playerResponse)==null?0:w.trackingParams)&&g.rN(Q.client,K,l,g.vp(D.playerResponse.trackingParams))}})})()};
AB=function(Q){var W=GL();g.tx(function(){var x=g.vp(Q);i3(W,x);return x})()};
i3=function(Q,W,x,D){D=D===void 0?0:D;g.tx(function(){if(Q.U.has(D))return Q.G.push([W,x]),!0;var K=g.ph(D),l=x||g.Jb(D);if(K&&l){if(g.Pb("combine_ve_grafts")){var M=Q.D.get(l.toString());M?M.push(W):(Q.X.set(l.toString(),l),Q.D.set(l.toString(),[W]));Q.uj||(Q.uj=g.Fw(0,function(){Hc(Q,K)},1200))}else g.rN(Q.client,K,l,W);
return!0}return!1})()};
VXQ=function(Q,W,x,D){D=D===void 0?0:D;var K=g.ph(D);W=W||g.Jb(D);K&&W&&(Q=Q.client,D=yb({cttAuthInfo:aG(K)||void 0},K),x={csn:K,ve:W.getAsJson(),clientData:x},K==="UNDEFINED_CSN"?EV("visualElementStateChanged",D,x):Q?Vb("visualElementStateChanged",x,Q,D):g.wV("visualElementStateChanged",x,D))};
u0s=function(Q,W,x,D){D=D===void 0?{}:D;Q.U.add(D.layer||0);Q.N=function(){YLF(Q,W,x,D);var M=g.Jb(D.layer);if(M){for(var w=g.V(Q.G),S=w.next();!S.done;S=w.next())S=S.value,i3(Q,S[0],S[1]||M,D.layer);M=g.V(Q.S);for(w=M.next();!w.done;w=M.next())w=w.value,VXQ(Q,w[0],w[1])}};
x||g.ph(D.layer)||Q.N();if(D.uB)for(var K=g.V(D.uB),l=K.next();!l.done;l=K.next())nzh(Q,l.value,D.layer);else g.ql(Error("Delayed screen needs a data promise."))};
YLF=function(Q,W,x,D){D=D===void 0?{}:D;var K=void 0;D.layer||(D.layer=0);K=D.parentLayer!==void 0?D.parentLayer:D.layer;var l=g.ph(K);K=g.Jb(K);var M=x||K,w;M&&(D.parentCsn!==void 0?w={clientScreenNonce:D.parentCsn,visualElement:M}:l&&l!=="UNDEFINED_CSN"&&(w={clientScreenNonce:l,visualElement:M}));var S,b=g.TK("EVENT_ID");l==="UNDEFINED_CSN"&&b&&(S={servletData:{serializedServletEventId:b}});g.Pb("combine_ve_grafts")&&l&&Hc(Q,l);g.Pb("no_client_ve_attach_unless_shown")&&M&&l&&OV(M,l);try{var z=Xsz(Q.client,
W,w,D.bB,D.cttAuthInfo,S,D.implicitGestureType,D.loggingExpectations)}catch(u){Rf1(u,{WA:W,rootVe:K,Tcf:x,zq3:l,ZKt:w,bB:D.bB});g.ql(u);return}ylv(z,W,D.layer,D.cttAuthInfo);l&&l!=="UNDEFINED_CSN"&&K&&!N31(l)&&uiF(Q.client,l,K,!0);Q.B[Q.B.length-1]&&!Q.B[Q.B.length-1].csn&&(Q.B[Q.B.length-1].csn=z||"");g.co({clientScreenNonce:z});hB.instance||(hB.instance=new hB);g.tx(pJ().B).bind(pJ())();var k=g.Jb(D.layer);l&&l!=="UNDEFINED_CSN"&&k&&(g.Pb("web_mark_root_visible")||g.Pb("music_web_mark_root_visible"))&&
g.x_(z,k);Q.U.delete(D.layer||0);Q.N=void 0;var X;(X=Q.F3.get(D.layer))==null||X.forEach(function(u,Y){u?i3(Q,Y,u,D.layer):k&&i3(Q,Y,k,D.layer)});
PSQ(Q)};
PSQ=function(Q){for(var W=0;W<Q.L.length;W++){var x=Q.L[W];try{x()}catch(D){g.ql(D)}}for(W=Q.L.length=0;W<Q.T.length;W++){x=Q.T[W];try{x()}catch(D){g.ql(D)}}};
Hc=function(Q,W){if(W===void 0)for(var x=I0n(),D=0;D<x.length;D++)x[D]!==void 0&&Hc(Q,x[D]);else Q.D.forEach(function(K,l){(l=Q.X.get(l))&&g.Lh(Q.client,W,l,K)}),Q.D.clear(),Q.X.clear(),Q.uj=void 0};
Uu=function(){};
vz2=function(){Uu.instance||(Uu.instance=new Uu);return Uu.instance};
CSF=function(Q,W,x){var D=new XMLHttpRequest;if(x==null?0:x.XH)D.onreadystatechange=function(l){x.XH(D,l)};
var K;D.open((K=W.method)!=null?K:"GET",Q,!0);D.responseType="text";D.withCredentials=!0;if(W.headers)for(Q=g.V(Object.entries(W.headers)),W=Q.next();!W.done;W=Q.next())K=g.V(W.value),W=K.next().value,K=K.next().value,D.setRequestHeader(W,K);return D};
qy=function(){};
JsF=function(){var Q=navigator;return new Promise(function(W,x){var D;(D=Q.webkitTemporaryStorage)!=null&&D.queryUsageAndQuota?Q.webkitTemporaryStorage.queryUsageAndQuota(function(K,l){W({usage:K,quota:l})},function(K){x(K)}):x(Error("webkitTemporaryStorage is not supported."))})};
M5=function(Q,W){var x=this;this.handleError=Q;this.B=W;this.U=!1;self.document===void 0||self.addEventListener("beforeunload",function(){x.U=!0});
this.D=Math.random()<=.2};
hK4=function(Q,W){qy.getInstance().estimate().then(function(x){x=Object.assign({},W,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:pqs(x==null?void 0:x.usage),deviceStorageQuotaMbytes:pqs(x==null?void 0:x.quota)});Q.B("idbQuotaExceeded",x)})};
pqs=function(Q){return typeof Q==="undefined"?"-1":String(Math.ceil(Q/1048576))};
G_4=function(){g.ck();return g.g3(0,192)?g.g3(0,190):!(g.Pb("web_watch_cinematics_disabled_by_default")||g.Pb("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&aun())};
ids=function(Q,W){dpF(Q.program,W.U_j)&&(fA("bg_i",void 0,"player_att"),g.Bc.initialize(Q,function(){fA("bg_l",void 0,"player_att");$v=(0,g.a8)()},W.cspNonce,W.n2))};
Asn=function(Q){Q=Q===void 0?{}:Q;return g.Bc.invoke(Q)};
dpF=function(Q,W){if(Q){var x;g.Bc.isLoading()?x=!1:x=!$v||(0,g.a8)()-$v>W;Q=x}else Q=!1;return Q};
Hd2=function(Q){Q=Q.split("");Im.sF(Q,2);Im.Mt(Q,46);Im.rb(Q,10);Im.sF(Q,1);Im.Mt(Q,8);Im.rb(Q,61);Im.sF(Q,2);return Q.join("")};
g.mT=function(Q,W){return Q.n2+"timedtext_video?ref=player&v="+W.videoId};
g.Up5=function(Q){var W=this;this.videoData=Q;Q={};this.B=(Q.c1a=function(){var x=[];if(g.Bc.isInitialized()){var D="";W.videoData&&W.videoData.lT&&(D=W.videoData.lT+("&r1b="+W.videoData.clientPlaybackNonce));var K={};D=(K.atr_challenge=D,K);fA("bg_v",void 0,"player_att");(D=Asn(D))?(fA("bg_s",void 0,"player_att"),x.push("r1a="+D)):(fA("bg_e",void 0,"player_att"),x.push("r1c=2"))}else fA("bg_e",void 0,"player_att"),window.trayride||window.botguard?x.push("r1c=1"):x.push("r1c=4");x.push("r1d="+g.Bc.getState());
return x.join("&")},Q.c6a=function(x){return"r6a="+(Number(x.c)^wF())},Q.c6b=function(x){return"r6b="+(Number(x.c)^Number(g.TK("CATSTAT",0)))},Q);
this.videoData&&this.videoData.lT?this.yc=Ds(this.videoData.lT):this.yc={}};
g.qLl=function(Q){if(Q.videoData&&Q.videoData.lT){for(var W=[Q.videoData.lT],x=g.V(Object.keys(Q.B)),D=x.next();!D.done;D=x.next())D=D.value,Q.yc[D]&&Q.B[D]&&(D=Q.B[D](Q.yc))&&W.push(D);return W.join("&")}return null};
g.Ny=function(Q,W){ids(Q,{U_j:g.X0(W.experiments,"bg_vm_reinit_threshold"),cspNonce:W.cspNonce,n2:W.n2||""})};
BO4=function(){var Q=XMLHttpRequest.prototype.fetch;return!!Q&&Q.length===3};
cc=function(Q){Q=Q===void 0?2592E3:Q;if(Q>0&&!(M$5()>(0,g.a8)()-Q*1E3))return 0;Q=g.qW("yt-player-quality");if(typeof Q==="string"){if(Q=g.cl[Q],Q>0)return Q}else if(Q instanceof Object)return Q.quality;return 0};
gL=function(){var Q=g.qW("yt-player-proxima-pref");return Q==null?null:Q};
$p2=function(){var Q=g.qW("yt-player-quality");if(Q instanceof Object&&Q.quality&&Q.previousQuality){if(Q.quality>Q.previousQuality)return 1;if(Q.quality<Q.previousQuality)return-1}return 0};
Iu1=function(){var Q={values:{},iT:{}};try{var W=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);Q.values=W.values;Q.halfLives=W.halfLives}catch(x){}return Q};
yl=function(){return g.qW("yt-player-performance-cap")||{}};
eb=function(){var Q;return(Q=g.qW("yt-player-performance-cap-active-set"))!=null?Q:[]};
mpF=function(Q){(Q===void 0?0:Q)?(Q=eb().filter(function(W){return W.startsWith("1")}),g.Ud("yt-player-performance-cap-active-set",Q,2592E3)):g.Ud("yt-player-performance-cap-active-set",[],2592E3)};
NOQ=function(Q){g.Ud("yt-player-watch-later-pending",Q)};
cs4=function(){return!!g.qW("yt-player-headers-readable")};
gzO=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(Q){return 0}};
g.fJ=function(){var Q=g.qW("yt-player-caption-language-preferences");return Q?Q:[]};
ZQ=function(){var Q=g.qW("yt-player-user-settings"),W=new Map;if(Q){Q=g.V(Object.entries(Q));for(var x=Q.next();!x.done;x=Q.next()){var D=g.V(x.value);x=D.next().value;D=D.next().value;W.set(x,D)}}return W};
rL=function(){try{var Q=window.navigator;if(Q.getAutoplayPolicy&&typeof Q.getAutoplayPolicy==="function"){var W=document.getElementsByClassName(g.LJ.uyj);var x=W.length>0&&W[0]?Q.getAutoplayPolicy(W[0]):Q.getAutoplayPolicy("mediaelement");if(ys2[x])return ys2[x]}}catch(D){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"};
TL=function(Q){return Q.Ke||Q.g5||Q.mutedAutoplay};
eKO=function(Q,W){return TL(Q)?W!==1&&W!==2&&W!==0?"AUTOPLAY_STATUS_UNAVAILABLE":Q.Gd?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"};
fuQ=function(Q,W,x){var D=W.C();Q.thirdParty||(Q.thirdParty={});D.ancestorOrigins&&(Q.thirdParty.embeddedPlayerContext=Object.assign({},Q.thirdParty.embeddedPlayerContext,{ancestorOrigins:D.ancestorOrigins}));D.j("embeds_enable_autoplay_and_visibility_signals")&&(D.Pz!=null&&(Q.thirdParty.embeddedPlayerContext=Object.assign({},Q.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(D.Pz)})),D.A_&&(Q.thirdParty.embeddedPlayerContext=Object.assign({},Q.thirdParty.embeddedPlayerContext,{visibilityFractionSource:D.A_})),
Q.thirdParty.embeddedPlayerContext=Object.assign({},Q.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:rL(),autoplayIntended:TL(W),autoplayStatus:eKO(W,x)}))};
rsl=function(Q,W){rF(Q,2,W.vr,Ou,3);rF(Q,3,W.Ns,Zd4,3);Z1(Q,4,W.onesieUstreamerConfig);Z1(Q,9,W.Ka);rF(Q,10,W.LC,Eu,3);rF(Q,15,W.reloadPlaybackParams,LKn,3)};
Od5=function(Q,W){rF(Q,1,W.formatId,FJ,3);eg(Q,2,W.startTimeMs);eg(Q,3,W.durationMs);eg(Q,4,W.Hz);eg(Q,5,W.Iz);rF(Q,9,W.cs7,TOl,3);rF(Q,11,W.nm3,tB,1);rF(Q,12,W.EZ,tB,1)};
Ezv=function(Q,W){LI(Q,1,W.videoId);eg(Q,2,W.lmt)};
TOl=function(Q,W){if(W.qv)for(var x=0;x<W.qv.length;x++)rF(Q,1,W.qv[x],Ezv,3)};
FJ=function(Q,W){eg(Q,1,W.itag);eg(Q,2,W.lmt);LI(Q,3,W.xtags)};
QC=function(Q){return{itag:U2(Q,1),lmt:U2(Q,2),xtags:$w(Q,3)}};
tB=function(Q,W){eg(Q,1,W.startTicks);eg(Q,2,W.Of);eg(Q,3,W.timescale)};
FK1=function(Q){return{startTicks:U2(Q,1),Of:U2(Q,2),timescale:U2(Q,3)}};
tXn=function(Q,W){eg(Q,1,W.defaultPolicy);eg(Q,2,W.smooth);eg(Q,3,W.visibility);eg(Q,4,W.M6);eg(Q,5,W.performance);eg(Q,6,W.speed)};
Ou=function(Q,W){eg(Q,13,W.timeSinceLastManualFormatSelectionMs);var x=W.lastManualDirection;x!==void 0&&(yg(Q,112),yg(Q,x<<1^x>>31));eg(Q,16,W.xi9);eg(Q,17,W.detailedNetworkType);eg(Q,18,W.AS);eg(Q,19,W.P1);eg(Q,21,W.I9);eg(Q,23,W.rB);eg(Q,28,W.w9);eg(Q,29,W.zm7);eg(Q,34,W.visibility);x=W.playbackRate;if(x!==void 0){var D=new ArrayBuffer(4);(new Float32Array(D))[0]=x;x=(new Uint32Array(D))[0];if(x!==void 0)for(yg(Q,285),gF(Q,4),D=0;D<4;)Q.view.setUint8(Q.pos,x&255),x>>=8,Q.pos+=1,D+=1}eg(Q,36,W.oy);
rF(Q,38,W.mediaCapabilities,QuF,3);eg(Q,39,W.sj3);eg(Q,40,W.Pv);eg(Q,44,W.playerState);fI(Q,46,W.vn);eg(Q,48,W.NP);eg(Q,50,W.ZH);eg(Q,51,W.o1);eg(Q,54,W.iW);fI(Q,56,W.sW1);eg(Q,57,W.VF);fI(Q,58,W.t8);eg(Q,59,W.U2);eg(Q,60,W.Eb);fI(Q,61,W.isPrefetch);eg(Q,62,W.WG);Z1(Q,63,W.sabrLicenseConstraint);eg(Q,64,W.u0S);eg(Q,66,W.qVt);eg(Q,67,W.IU3);eg(Q,68,W.XNf);LI(Q,69,W.audioTrackId);fI(Q,71,W.nU);rF(Q,72,W.q47,tXn,1);eg(Q,74,W.gi);eg(Q,75,W.j5)};
QuF=function(Q,W){if(W.videoFormatCapabilities)for(var x=0;x<W.videoFormatCapabilities.length;x++)rF(Q,1,W.videoFormatCapabilities[x],Wsa,1);if(W.audioFormatCapabilities)for(x=0;x<W.audioFormatCapabilities.length;x++)rF(Q,2,W.audioFormatCapabilities[x],x_1,1);rF(Q,4,W.perPlaybackAttributes,D_l,3);eg(Q,5,W.hdrModeBitmask)};
Wsa=function(Q,W){eg(Q,1,W.videoCodec);eg(Q,3,W.maxHeight);eg(Q,4,W.maxWidth);eg(Q,11,W.maxFramerate);eg(Q,12,W.maxBitrateBps);fI(Q,15,W.is10BitSupported)};
x_1=function(Q,W){eg(Q,1,W.audioCodec);eg(Q,2,W.numChannels);eg(Q,3,W.maxBitrateBps);eg(Q,6,W.spatialCapabilityBitmask)};
D_l=function(Q,W){if(W.itagDenylist)for(var x=0;x<W.itagDenylist.length;x++)eg(Q,1,W.itagDenylist[x])};
Eu=function(Q,W){rF(Q,1,W.clientInfo,Ksh,3);Z1(Q,2,W.XS);Z1(Q,3,W.playbackCookie);Z1(Q,4,W.Ka);if(W.D$)for(var x=0;x<W.D$.length;x++)rF(Q,5,W.D$[x],lkQ,3);if(W.GS)for(x=0;x<W.GS.length;x++)eg(Q,6,W.GS[x]);LI(Q,7,W.uij);rF(Q,8,W.Mg,jua,3)};
Mzv=function(Q,W){eg(Q,1,W.YJ1);eg(Q,2,W.HKf)};
R5F=function(Q,W){var x=W.code;x!==void 0&&(yg(Q,8),yg(Q,x<<1^x>>31));LI(Q,2,W.message)};
wP5=function(Q,W){eg(Q,1,W.clientState);rF(Q,2,W.OKS,Mzv,1)};
jua=function(Q,W){Z1(Q,1,W.wZ5);rF(Q,2,W.zx3,R5F,3);rF(Q,3,W.coldStartInfo,wP5,3)};
lkQ=function(Q,W){eg(Q,1,W.type);Z1(Q,2,W.value)};
Ksh=function(Q,W){LI(Q,1,W.hl);LI(Q,12,W.deviceMake);LI(Q,13,W.deviceModel);eg(Q,16,W.clientName);LI(Q,17,W.clientVersion);LI(Q,18,W.osName);LI(Q,19,W.osVersion)};
SpF=function(Q,W){LI(Q,1,W.name);LI(Q,2,W.value)};
bD1=function(Q,W){LI(Q,1,W.url);if(W.xx)for(var x=0;x<W.xx.length;x++)rF(Q,2,W.xx[x],SpF,3);Z1(Q,3,W.postBody);fI(Q,4,W.b2f);fI(Q,6,W.Jj)};
Zd4=function(Q,W){Z1(Q,2,W.Qe);Z1(Q,5,W.encryptedClientKey);Z1(Q,6,W.iv);Z1(Q,7,W.W$);fI(Q,10,W.m4);fI(Q,13,W.Ky);fI(Q,14,W.Q8);Z1(Q,16,W.tU3);fI(Q,17,W.Rw)};
su1=function(Q){return{UI:U2(Q,1),P$:U2(Q,2),body:BQ(Q,4)}};
LKn=function(Q,W){LI(Q,1,W.token)};
z5Q=function(Q){return{token:$w(Q,1)}};
k55=function(Q){return{V_:U2(Q,1),m_f:U2(Q,2)}};
Ypl=function(Q,W){rF(Q,1,W.vr,Ou,3);if(W.O7)for(var x=0;x<W.O7.length;x++)rF(Q,2,W.O7[x],FJ,3);if(W.Mi)for(x=0;x<W.Mi.length;x++)rF(Q,3,W.Mi[x],Od5,3);Z1(Q,5,W.videoPlaybackUstreamerConfig);if(W.MH)for(x=0;x<W.MH.length;x++)rF(Q,6,W.MH[x],XPv,3);if(W.hw)for(x=0;x<W.hw.length;x++)rF(Q,16,W.hw[x],FJ,3);if(W.aV)for(x=0;x<W.aV.length;x++)rF(Q,17,W.aV[x],FJ,3);if(W.SF)for(x=0;x<W.SF.length;x++)rF(Q,18,W.SF[x],FJ,3);rF(Q,19,W.LC,Eu,3);rF(Q,21,W.WL,o4a,3);eg(Q,22,W.V9);eg(Q,23,W.hH);if(W.Q5)for(x=0;x<W.Q5.length;x++)rF(Q,
1E3,W.Q5[x],uXh,3)};
XPv=function(Q,W){rF(Q,1,W.formatId,FJ,3);eg(Q,2,W.e9);eg(Q,3,W.sequenceNumber);rF(Q,4,W.W5,tB,1);eg(Q,5,W.rR);eg(Q,6,W.lB)};
o4a=function(Q,W){if(W.UH)for(var x=0;x<W.UH.length;x++)LI(Q,1,W.UH[x]);Z1(Q,2,W.Fl);LI(Q,3,W.Fm);eg(Q,4,W.Th);eg(Q,5,W.ip);LI(Q,6,W.Cw)};
uXh=function(Q,W){if(W.O7)for(var x=0;x<W.O7.length;x++)rF(Q,1,W.O7[x],FJ,3);if(W.Mi)for(x=0;x<W.Mi.length;x++)rF(Q,2,W.Mi[x],Od5,3);LI(Q,3,W.clipId)};
g.Wh=function(Q,W){rF(Q,1,W.vr,Ou,3);Z1(Q,3,W.videoPlaybackUstreamerConfig);rF(Q,5,W.LC,Eu,3);rF(Q,6,W.WL,o4a,3)};
Pd5=function(Q,W){LI(Q,1,W.cpn);eg(Q,2,W.sequenceNumber);LI(Q,3,W.serializedWatchEndpointLoggingContext);if(W.decoderInfo)for(var x=0;x<W.decoderInfo.length;x++)rF(Q,6,W.decoderInfo[x],n4s,3);LI(Q,9,W.playerResponseCpn);eg(Q,10,W.transitionStitchType);eg(Q,12,W.timestampOffsetMsecs);eg(Q,15,W.remoteControlMode);if(W.remoteConnectedDevices)for(x=0;x<W.remoteConnectedDevices.length;x++)rF(Q,16,W.remoteConnectedDevices[x],Vza,3);Z1(Q,17,W.serializedHouseBrandPlayerServiceLoggingContext)};
n4s=function(Q,W){eg(Q,1,W.elapsedTimeMs);LI(Q,3,W.videoDecoderName)};
Vza=function(Q,W){eg(Q,1,W.deviceInterface);LI(Q,2,W.deviceVersion);fI(Q,3,W.isSleeping)};
v42=function(Q){return{first:U2(Q,1),XR:U2(Q,2)}};
CdF=function(Q){return{bitrate:U2(Q,6),width:U2(Q,7),height:U2(Q,8),fps:U2(Q,25),averageBitrate:U2(Q,31),audioSampleRate:U2(Q,45),audioChannels:U2(Q,46)}};
xJ=function(Q){return{itagDenylist:my(Q,1)}};
h5F=function(Q){return{r2j:U2(Q,1),itag:$w(Q,3),dC:It(Q,4,JDn),lmt:U2(Q,5),ZY5:U2(Q,7),xtags:$w(Q,15),o63:It(Q,23,pPF),S1:It(Q,34,xJ)}};
JDn=function(Q){return{iv:BQ(Q,5),h9f:qs(Q,7)}};
ak4=function(Q){return{GG:my(Q,2),videoId:$w(Q,3),AR:U2(Q,4)}};
pPF=function(Q){return{videoId:$w(Q,2)}};
G5D=function(Q){return{IZ:U2(Q,3),vY:U2(Q,4),So:U2(Q,5),CG1:qs(Q,8),fU1:U2(Q,10),pL:U2(Q,12),BB:U2(Q,13),PQ:U2(Q,14),AF:U2(Q,15),Tb:U2(Q,16)}};
d_O=function(Q){return{targetAudioReadaheadMs:U2(Q,1),targetVideoReadaheadMs:U2(Q,2),backoffTimeMs:U2(Q,4),playbackCookie:BQ(Q,7),videoId:$w(Q,8)}};
iDa=function(Q){return{minBandwidthBytesPerSec:U2(Q,1),minReadaheadMs:U2(Q,2)}};
AD1=function(Q){return{startMinReadaheadPolicy:Ns(Q,1,iDa),resumeMinReadaheadPolicy:Ns(Q,2,iDa)}};
HDD=function(Q){return{label:$w(Q,1),text:$w(Q,2)}};
U_2=function(Q){return{videoId:$w(Q,1),formatId:It(Q,2,QC),debugInfo:Ns(Q,3,HDD)}};
qp1=function(Q){return{zE:Ns(Q,1,U_2)}};
Btz=function(Q){return{x$:U2(Q,1),Je:U2(Q,2),minReadaheadMs:U2(Q,3)}};
$_O=function(Q){return{jI:U2(Q,1),items:Ns(Q,2,Btz),jG:U2(Q,3)}};
IkQ=function(Q){return{token:$w(Q,1),videoId:$w(Q,2)}};
m_v=function(Q){return{vO:U2(Q,1)}};
NtO=function(Q){return{x_5:$w(Q,1),action:U2(Q,2),xZ:It(Q,3,m_v)}};
DK=function(Q){return{Kr:U2(Q,1),Qa:U2(Q,2),seekSource:U2(Q,3)}};
g4F=function(Q){return{Tp:Ns(Q,1,cDl),p39:$w(Q,2)}};
yDs=function(Q){return{bJ:$w(Q,1),Lg:U2(Q,2),NG3:U2(Q,3),R3:U2(Q,4),I3:U2(Q,5),v4:U2(Q,6)}};
e51=function(Q){return{Bf:U2(Q,1)}};
cDl=function(Q){return{clipId:$w(Q,1),Vo:It(Q,2,yDs),NB:It(Q,3,e51)}};
fkl=function(Q){return{type:U2(Q,1),scope:U2(Q,2),value:BQ(Q,3),sendByDefault:qs(Q,4),writePolicy:U2(Q,5)}};
ZDO=function(Q){var W=[];Q=g.V(Q.split(","));for(var x=Q.next();!x.done;x=Q.next()){var D=x.value;D&&((x=D.startsWith("!"))&&(D=D.substring(1)),D=D.split("-"),D.length<3||W.push({eW:D[0],platform:D[1],deviceVersion:D[2],t5:x}))}return W};
Ttv=function(Q){return ZDO(Q).map(function(W){return{deviceInterface:LsD[rD5[W.eW]]||0,deviceVersion:W.deviceVersion||"",isSleeping:W.t5}})};
g.KN=function(Q,W){this.id=Q;this.RW=W;this.captionTracks=[];this.D=this.N=null;this.xtags="";this.L=!1;this.B=null;this.U="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";Q=this.RW.id.split(".");Q.length>1&&(this.L=Q[1]==="2")};
lQ=function(Q,W,x,D,K){this.U=Q;this.B=W;this.D=x;this.reason=D;this.a5=K===void 0?0:K};
g.jw=function(Q,W,x,D){return new lQ(g.cl[Q]||0,g.cl[W]||0,x,D)};
Ry=function(Q){if(MD&&Q.a5)return!1;var W=g.cl.auto;return Q.U===W&&Q.B===W};
Sw=function(Q){return wQ[Q.B||Q.U]||"auto"};
OD2=function(Q,W){W=g.cl[W];return Q.U<=W&&(!Q.B||Q.B>=W)};
bQ=function(Q){return"["+Q.U+"-"+Q.B+", override: "+(Q.D+", reason: "+Q.reason+"]")};
se=function(Q,W,x){this.videoInfos=Q;this.B=W;this.audioTracks=[];if(this.B){Q=new Set;x==null||x({ainfolen:this.B.length});W=g.V(this.B);for(var D=W.next();!D.done;D=W.next())if(D=D.value,!D.RW||Q.has(D.RW.id)){var K=void 0,l=void 0,M=void 0;(M=x)==null||M({atkerr:!!D.RW,itag:D.itag,xtag:D.B,lang:((K=D.RW)==null?void 0:K.name)||"",langid:((l=D.RW)==null?void 0:l.id)||""})}else K=new g.KN(D.id,D.RW),Q.add(D.RW.id),this.audioTracks.push(K);x==null||x({atklen:this.audioTracks.length})}};
z8=function(){g.N.apply(this,arguments);this.B=null};
Q0a=function(Q,W,x,D,K,l,M){if(Q.B)return Q.B;var w={},S=new Set,b={};if(kJ(D)){for(var z in D.B)D.B.hasOwnProperty(z)&&(Q=D.B[z],b[Q.info.CS]=[Q.info]);return b}z=E4h(W,D,w);l&&K({aftsrt:XB(z)});for(var k={},X=g.V(Object.keys(z)),u=X.next();!u.done;u=X.next()){u=u.value;for(var Y=g.V(z[u]),v=Y.next();!v.done;v=Y.next()){v=v.value;var J=v.itag,h=void 0,G=u+"_"+(((h=v.video)==null?void 0:h.fps)||0);k.hasOwnProperty(G)?k[G]===!0?b[u].push(v):w[J]=k[G]:(h=oy(W,v,x,D.isLive,S),h!==!0?(M.add(u),w[J]=h,
h==="disablevp9hfr"&&(k[G]="disablevp9hfr")):(b[u]=b[u]||[],b[u].push(v),k[G]=!0))}}l&&K({bfflt:XB(b)});for(var H in b)b.hasOwnProperty(H)&&(D=H,b[D]&&b[D][0].OQ()&&(b[D]=b[D],b[D]=FsD(W,b[D],w),b[D]=tzs(b[D],w)));l&&Object.keys(w).length>0&&K({rjr:a0(w)});W=g.V(S.values());for(D=W.next();!D.done;D=W.next())(D=x.U.get(D.value))&&--D.VC;l&&K({aftflt:XB(b)});Q.B=g.Vp(b,function(I){return!!I.length});
return Q.B};
xqv=function(Q,W,x,D,K,l,M,w){w=w===void 0?!1:w;if(W.gE&&M&&M.length>1&&!(W.U2>0||W.S)){for(var S=W.U||!!K,b=S&&W.Gn?l:void 0,z=E4h(W,D),k=[],X=[],u={},Y=0;Y<M.length;Y++){var v=M[Y],J=D.D.get(v);if(J&&J.info){var h=J.info;J=h.CS;if(oy(W,h,x,D.isLive)){v=h.OQ()?k:X;h=g.V(z[J]);for(var G=h.next();!G.done;G=h.next()){G=G.value;var H=void 0,I=J+"_"+(((H=G.video)==null?void 0:H.fps)||0);u.hasOwnProperty(I)?u[I]===!0&&v.push(G):oy(W,G,x,D.isLive)&&(v.push(G),u[I]=!0)}}else S&&l({opfu:v})}}if(k.length&&
X.length)return S&&l({opfm:k[0].itag+","+X[0].itag}),Uk(new se(k,X,b))}return WQ5(Q,W,x,D,K,l,w)};
WQ5=function(Q,W,x,D,K,l,M){function w(h){return!!k[h]}
var S=W.U||!!K,b=S&&W.Gn?l:void 0,z=new Set,k=Q0a(Q,W,x,D,l,S,z);uQ(D)&&(k=Dq1(x,k,K,S,l,W),S&&l({enflt:XB(k)}));W.tf=KQQ(k,W);if(kJ(D))return l=g.Os(Object.values(k),function(h){return!!h.length&&!!h[0].audio}),Q=g.Os(Object.values(k),function(h){return!!h.length&&!!h[0].video}),l&&Q||Hb(),Uk(new se(Q,l,b));
K=lCn(W);S&&l({audioPrefOrder:K.join("_")});Q=[];if(W.Cn){K=g.Rv(K,w);for(var X=new Set,u=g.V(K),Y=u.next();!Y.done;Y=u.next()){Y=g.V(k[Y.value]);for(var v=Y.next();!v.done;v=Y.next())v=v.value,v.RW&&!X.has(v.RW.id)&&(X.add(v.RW.id),Q.push(v))}if(Q.length===0){if(K.length===0)return S&&l({noaudio:1}),Hb();Q=k[K[0]]}}else{Q=g.Os(K,w);if(!Q)return S&&l({noaudio:1}),Hb();Q=k[Q]}k["9"]&&k.h&&D.lN&&!W.eZ&&(S&&l({dltvp9:1}),delete k["9"]);if(M){S&&l({bfsflt:XB(k),bfsflta:YJ(x)});j02(x,z);S&&l({bfsfltb:YJ(x)});
for(var J in k)if(k.hasOwnProperty(J)&&(M=J,!(M==="f"||W.LS===0&&Mm1.has(M))))for(z=g.V(k[M]),K=z.next();!K.done;K=z.next())K=K.value,W.UT?RMh(x,M,K):wlO(x,M,K);S&&l({aftsflt:YJ(x)})}M=k["1h"]?"1h":"1";x=k["9h"]?"9h":"9";K=k[M];X=k[x];K&&K.length&&(W.B.highestAv1Resolution=K[K.length-1].video.B);X&&X.length&&(W.B.highestVp9Resolution=X[X.length-1].video.B);J=[];z=[];if(W.IU&&K)J=K,z=[M],l({forceAv1:M});else if(W.S&&!W.t8)for(z=SCn(D)?k["1h"]||k["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],S&&l({newhybpref:z.join(".")}),
K=g.V(z),X=K.next();!X.done;X=K.next())J=J.concat(k[X.value]).filter(function(h){return h});
else W.U2>0&&X&&K&&(z=[M,x],J=K.concat(X).filter(function(h){return h}));
if(J.length&&!W.t8){nN(J,z);if(S){S=[];W=g.V(J);for(D=W.next();!D.done;D=W.next())S.push(D.value.itag);l({hbdfmt:S.join(".")})}return Uk(new se(J,Q,b))}J=b3O(W);J=g.Os(J,w);if(!J){if(k[M])return l=k[M],nN(l),Uk(new se(l,Q,b));S&&l({novideo:1});return Hb()}W.yA&&(J==="1"||J==="1h")&&k[x]&&(M=VC(k[J]),z=VC(k[x]),z>M?J=x:z===M&&s04(k[x])&&(J=x));J==="9"&&k.h&&VC(k.h)>VC(k["9"])&&(J="h");W.Kn&&D.isLive&&J==="("&&k.H&&VC(k["("])<1440&&(J="H");S&&l({vfmly:Ph(J)});W=k[J];if(!W.length)return S&&l({novfmly:Ph(J)}),
Hb();nN(W);return Uk(new se(W,Q,b))};
KQQ=function(Q,W){var x=!(!Q.m&&!Q.M),D=!(!Q.mac3&&!Q.MAC3),K=!(!Q.meac3&&!Q.MEAC3);Q=!(!Q.i&&!Q.I);W.hn=Q;return x||D||K||Q};
s04=function(Q){Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())if(W=W.value,W.itag&&zMQ.has(W.itag))return!0;return!1};
Ph=function(Q){switch(Q){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return Q}};
XB=function(Q){var W=[],x;for(x in Q)if(Q.hasOwnProperty(x)){var D=x;W.push(Ph(D));D=g.V(Q[D]);for(var K=D.next();!K.done;K=D.next())W.push(K.value.itag)}return W.join(".")};
Dq1=function(Q,W,x,D,K,l){var M={},w={};g.nC(W,function(S,b){S=S.filter(function(z){var k=z.itag;if(!z.Qp)return w[k]="noenc",!1;if(l.fn&&z.CS==="(h"&&l.Vj)return w[k]="lichdr",!1;if(!Q.D&&z.CS==="1e")return w[k]="noav1enc",!1;if(z.CS==="("||z.CS==="(h"){if(Q.L&&x&&x.flavor==="widevine"){var X=z.mimeType+"; experimental=allowed";(X=!!z.Qp[x.flavor]&&!!x.B[X])||(w[k]=z.Qp[x.flavor]?"unspt":"noflv");return X}if(!vh(Q,CN.CRYPTOBLOCKFORMAT)&&!Q.X3||Q.KS)return w[k]=Q.KS?"disvp":"vpsub",!1}return x&&z.Qp[x.flavor]&&
x.B[z.mimeType]?!0:(w[k]=x?z.Qp[x.flavor]?"unspt":"noflv":"nosys",!1)});
S.length&&(M[b]=S)});
D&&Object.entries(w).length&&K({rjr:a0(w)});return M};
tzs=function(Q,W){var x=aX(Q,function(D,K){return K.video.fps>32?Math.min(D,K.video.width):D},Infinity);
x<Infinity&&(Q=Q.filter(function(D){if(D.video.fps>32||D.video.width<x)return!0;W[D.itag]="hfrfirst";return!1}));
Ll()&&(Q=Q.filter(function(D){if(D.itag!=="299")return!0;W[D.itag]="ps3hfr1080";return!1}));
return Q};
FsD=function(Q,W,x){return W=W.filter(function(D){if(D.video.B<=Q.WN)return!0;x[D.itag]="maxquality";return!1})};
E4h=function(Q,W,x){var D={},K;for(K in W.B)if(W.B.hasOwnProperty(K)){var l=W.B[K].info;if(Q.G&&l.video&&l.video.B<Q.G)x&&(x[l.itag]="min"+Q.G);else{var M=l.CS;D[M]=D[M]||[];D[M].push(l)}}Q=g.V(Object.keys(D));for(W=Q.next();!W.done;W=Q.next())nN(D[W.value]);return D};
VC=function(Q){return aX(Q,function(W,x){return Math.max(W,x.video.B)},0)};
oy=function(Q,W,x,D,K){K=K===void 0?new Set:K;if(W.CS==="")return"unkn";if((W.itag==="304"||W.itag==="266")&&Q.F3)return"blk2khfr";if(Q.X&&W.video&&W.video.B>Q.X)return"max"+Q.X;if(Q.Pt&&W.CS==="h"&&W.video&&W.video.B>1080)return"blkhigh264";if(W.CS==="(h"&&!x.G)return"enchdr";if((D===void 0?0:D)&&F2(W)&&!Q.g7)return"blk51live";if((W.CS==="MAC3"||W.CS==="mac3")&&!Q.N)return"blkac3";if((W.CS==="MEAC3"||W.CS==="meac3")&&!Q.L)return"blkeac3";if(W.CS==="M"||W.CS==="m")return"blkaac51";if((W.CS==="so"||
W.CS==="sa")&&!Q.pS)return"blkamb";if(!Q.fn&&CKn(W)&&(!x.D||W.CS!=="1e"))return"cbc";if(!x.D&&CKn(W)&&W.CS==="1e")return"cbcav1";if((W.CS==="i"||W.CS==="I")&&!Q.Y6)return"blkiamf";if(W.itag==="774"&&!Q.KS)return"blkouh";var l,M;if(Q.O3&&(W.CS==="1"||W.CS==="1h"||x.D&&W.CS==="1e")&&((l=W.video)==null?0:l.B)&&((M=W.video)==null?void 0:M.B)>Q.O3)return"av1cap";if((D=x.U.get(W.CS))&&D.VC>0)return K.add(W.CS),"byerr";var w;if((w=W.video)==null?0:w.fps>32){if(!x.LS&&!vh(x,CN.FRAMERATE))return"capHfr";if(Q.I5&&
W.video.B>=4320)return"blk8khfr";if(L3(W)&&Q.vZ&&W.Qp&&W.video.B>=1440)return"disablevp9hfr"}if(Q.a5&&W.a5>Q.a5)return"ratecap";Q=ku2(x,W);return Q!==!0?Q:!0};
nN=function(Q,W){W=W===void 0?[]:W;g.bZ(Q,function(x,D){var K=D.a5-x.a5;if(!x.OQ()||!D.OQ())return K;var l=D.video.height*D.video.width-x.video.height*x.video.width;!l&&W&&W.length>0&&(x=W.indexOf(x.CS)+1,D=W.indexOf(D.CS)+1,l=x===0||D===0?D||-1:x-D);l||(l=K);return l})};
g.JW=function(Q,W){this.U=Q;this.N=W===void 0?!1:W;this.D=this.path=this.scheme="";this.B={};this.url=""};
hW=function(Q){pN(Q);return Q.D};
ay=function(Q){return Q.U?Q.U.startsWith("local"):Q.scheme==="local"};
Xll=function(Q){pN(Q);return g.vZ(Q.B,function(W){return W!==null})};
G8=function(Q){pN(Q);var W=decodeURIComponent(Q.get("mn")||"").split(",");return Q.path==="/videoplayback"&&W.length>1&&!!W[1]};
dQ=function(Q,W){W=W===void 0?!1:W;pN(Q);if(Q.path!=="/videoplayback"){var x=Q.clone();x.set("playerfallback","1");return x}var D=Q.cV();x=new g.Sr(D);var K=Q.get("fvip"),l=decodeURIComponent(Q.get("mn")||"").split(",");if(K&&l&&l.length>1&&l[1])return D=x.B,Q=D.replace(/^[^.]*/,""),g.s1(x,(D.indexOf("rr")===0?"rr":"r")+K+"---"+l[1]+Q),x=new g.JW(x.toString()),x.set("fallback_count","1"),x;if(W)return x=Q.clone(),x.set("fallback_count","1"),x;K=x.B.match("\\.a1\\.googlevideo\\.com$");x.B.match("\\.googlevideo\\.com$")?
(g.s1(x,"redirector.googlevideo.com"),D=x.toString()):x.B.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.s1(x,"www.youtube.com"),D=x.toString()):(x=zs5(D),x4(x)&&(D=x));x=new g.JW(D);x.set("cmo=pf","1");K&&x.set("cmo=td","a1.googlevideo.com");return x};
pN=function(Q){if(Q.U){if(!x4(Q.U)&&!Q.U.startsWith("local"))throw new g.Lw("Untrusted URL",Q.U);var W=g.n4(Q.U);Q.scheme=W.L;Q.D=W.B+(W.D!=null?":"+W.D:"");var x=W.U;if(x.startsWith("/videoplayback"))Q.path="/videoplayback",x=x.slice(14);else if(x.startsWith("/initplayback"))Q.path="/initplayback",x=x.slice(13);else if(x.startsWith("/api/manifest")){var D=x.indexOf("/",12),K=x.indexOf("/",D+1);D>0&&K>0?(Q.path=x.slice(0,K),x=x.slice(K+1)):(Q.path=x,x="")}else Q.path=x,x="";D=Q.B;Q.B=od5(x);Object.assign(Q.B,
u25(W.N.toString()));Object.assign(Q.B,D);Q.B.file==="index.m3u8"&&(delete Q.B.file,Q.path+="/file/index.m3u8");Q.U="";Q.url="";Q.N&&(W=TJh(),pN(Q),x=Q.B[W]||null)&&(x=YCl[0](x),Q.set(W,x),Q.N||TJh(""))}};
ndO=function(Q){pN(Q);var W=Q.scheme+(Q.scheme?"://":"//")+Q.D+Q.path;if(Xll(Q)){var x=[];g.nC(Q.B,function(D,K){D!==null&&x.push(K+"="+D)});
W+="?"+x.join("&")}return W};
od5=function(Q){Q=Q.split("/");var W=0;Q[0]||W++;for(var x={};W<Q.length;W+=2)Q[W]&&Vms(x,Q[W],Q[W+1]);return x};
u25=function(Q){Q=Q.split("&");for(var W={},x=0;x<Q.length;x++){var D=Q[x],K=D.indexOf("=");K>0?Vms(W,D.slice(0,K),D.slice(K+1)):D&&(W[D]="")}return W};
Vms=function(Q,W,x){if(W==="cmo"){var D;(D=x.indexOf("="))>=0?(W="cmo="+x.slice(0,D),x=x.slice(D+1)):(D=x.indexOf("%3D"))>=0&&(W="cmo="+x.slice(0,D),x=x.slice(D+3))}Q[W]=x};
iQ=function(Q){var W=g.e(Q,P7l)||Q.signatureCipher;Q={G$:!1,l9:"",fG:"",s:""};if(!W)return Q;W=Ds(W);Q.G$=!0;Q.l9=W.url;Q.fG=W.sp;Q.s=W.s;return Q};
AW=function(Q,W,x,D,K,l,M,w,S){this.E3=Q;this.startTime=W;this.duration=x;this.ingestionTime=D;this.sourceURL=K;this.VN=S;this.endTime=W+x;this.B=M||0;this.range=l||null;this.pending=w||!1;this.VN=S||null};
g.Hh=function(){this.segments=[];this.B=null;this.U=!0;this.D=""};
vdh=function(Q,W){if(W>Q.oQ())Q.segments=[];else{var x=TR(Q.segments,function(D){return D.E3>=W},Q);
x>0&&Q.segments.splice(0,x)}};
Ue=function(Q,W,x,D,K){K=K===void 0?!1:K;this.data=Q;this.offset=W;this.size=x;this.type=D;this.B=(this.U=K)?0:8;this.dataOffset=this.offset+this.B};
qD=function(Q){var W=Q.data.getUint8(Q.offset+Q.B);Q.B+=1;return W};
Bh=function(Q){var W=Q.data.getUint16(Q.offset+Q.B);Q.B+=2;return W};
$J=function(Q){var W=Q.data.getInt32(Q.offset+Q.B);Q.B+=4;return W};
Iy=function(Q){var W=Q.data.getUint32(Q.offset+Q.B);Q.B+=4;return W};
mw=function(Q){var W=Q.data;var x=Q.offset+Q.B;W=W.getUint32(x)*4294967296+W.getUint32(x+4);Q.B+=8;return W};
ND=function(Q,W){W=W===void 0?NaN:W;if(isNaN(W))var x=Q.size;else for(x=Q.B;x<Q.size&&Q.data.getUint8(Q.offset+x)!==W;)++x;W=new Uint8Array(Q.data.buffer,Q.offset+Q.B+Q.data.byteOffset,x-Q.B);Q.B=Math.min(x+1,Q.size);return Jy(W)};
C7O=function(Q){return new Uint8Array(Q.data.buffer,Q.offset+Q.data.byteOffset,Q.size)};
J7z=function(Q){this.offset=0;this.data=new DataView(new ArrayBuffer(Q))};
ch=function(Q,W,x,D){(new Uint8Array(Q.data.buffer,Q.offset,D)).set(new Uint8Array(W.buffer,x+W.byteOffset,D));Q.offset+=D};
gQ=function(Q,W,x,D,K,l){this.startSecs=Q;this.eE=W;this.context=x;this.identifier=D;this.event=K;this.B=l};
ew=function(Q,W){this.data=Q;this.uri=W||"http://youtube.com/streaming/metadata/segment/102015";this.BK=yC(this,"Sequence-Number");this.N=yC(this,"Segment-Count");this.L=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=yC(this,"Ingestion-Walltime-Us")/1E6;this.B=(yC(this,"First-Frame-Time-Us")+yC(this,"First-Frame-Uncertainty-Us"))/1E6;this.zA=yC(this,"Target-Duration-Us")/1E6;this.lf=this.data["Stream-Finished"]==="T";this.D=this.data.Streamable==="T";this.cryptoPeriodIndex=yC(this,"Crypto-Period-Index");
this.U=yC(this,"Crypto-Period-Seconds")};
hMz=function(Q){return Q.data["Cuepoint-Type"]?new gQ(-(Number(Q.data["Cuepoint-Playhead-Time-Sec"])||0),Number(Q.data["Cuepoint-Total-Duration-Sec"])||0,Q.data["Cuepoint-Context"],Q.data["Cuepoint-Identifier"]||"",plz[Q.data["Cuepoint-Event"]||""]||"unknown",(Number(Q.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
aCF=function(Q){return Number(Q.data["Start-Media-Time-Us"])/1E6||0};
yC=function(Q,W){return Number(Q.data[W])||0};
fN=function(Q){return Q.data["Stitched-Video-Cpn"]?Q.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.Gu5=function(Q){return Q.data["Serialized-State"]?Q.data["Serialized-State"]:""};
g.dqs=function(Q){switch(Q.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
i35=function(Q,W){this.B=Q;this.duration=W};
A72=function(Q,W,x,D,K){this.U=K;this.B=Q||0;this.pitch=W||0;this.yaw=x||0;this.roll=D||0;this.crc=K.getUint32(4)};
ZK=function(Q){var W={};Q=Q.split("\r\n");for(var x=0;x<Q.length;x++){if(Q[x].length===0)return W;var D=Q[x].match(/([^:]+):\s+([\S\s]+)/);D!=null&&(W[D[1]]=D[2])}return null};
H31=function(Q,W){var x=g.LN(Q,0,1952868452);Q=g.LN(Q,0,1953658222);if(x&&Q){x.skip(1);var D=qD(x)<<16|Bh(x);x.skip(4);D&1&&x.skip(8);D&2&&x.skip(4);if(D&8){D=x.B;var K=Iy(x);x.data.setUint32(x.offset+D,W>1?Math.ceil(K*W):Math.floor(K*W))}Q.skip(1);x=qD(Q)<<16|Bh(Q);if(x&256){D=x&1;K=x&4;var l=x&512,M=x&1024,w=x&2048;x=Iy(Q);D&&Q.skip(4);K&&Q.skip(4);D=(l?4:0)+(M?4:0)+(w?4:0);for(K=0;K<x;K++)l=Q.B,M=Iy(Q),Q.data.setUint32(Q.offset+l,W>1?Math.ceil(M*W):Math.floor(M*W)),Q.skip(D)}}};
T8=function(Q){Q=new DataView(Q.buffer,Q.byteOffset,Q.byteLength);return(Q=g.LN(Q,0,1836476516))?g.rQ(Q):NaN};
Uqv=function(Q){var W=g.LN(Q,0,1937011556);if(!W)return null;W=Oe(Q,W.dataOffset+8,1635148593)||Oe(Q,W.dataOffset+8,1635135537);if(!W)return null;var x=Oe(Q,W.dataOffset+78,1936995172),D=Oe(Q,W.dataOffset+78,1937126244);if(!D)return null;W=null;if(x)switch(x.skip(4),qD(x)){default:W=0;break;case 1:W=2;break;case 2:W=1;break;case 3:W=255}var K=x=null,l=null;if(D=Oe(Q,D.dataOffset,1886547818)){var M=Oe(Q,D.dataOffset,1886546020),w=Oe(Q,D.dataOffset,2037673328);if(!w&&(w=Oe(Q,D.dataOffset,1836279920),
!w))return null;M&&(M.skip(4),x=$J(M)/65536,l=$J(M)/65536,K=$J(M)/65536);Q=C7O(w);Q=new DataView(Q.buffer,Q.byteOffset+8,Q.byteLength-8);return new A72(W,x,l,K,Q)}return null};
Oe=function(Q,W,x){for(;Ee(Q,W);){var D=FB(Q,W);if(D.type===x)return D;W+=D.size}return null};
g.LN=function(Q,W,x){for(;Ee(Q,W);){var D=FB(Q,W);if(D.type===x)return D;W=tW(D.type)?W+8:W+D.size}return null};
g.Qr=function(Q){if(Q.data.getUint8(Q.dataOffset)){var W=Q.data;Q=Q.dataOffset+4;W=W.getUint32(Q)*4294967296+W.getUint32(Q+4)}else W=Q.data.getUint32(Q.dataOffset+4);return W};
FB=function(Q,W){var x=Q.getUint32(W),D=Q.getUint32(W+4);return new Ue(Q,W,x,D)};
g.rQ=function(Q){var W=Q.data.getUint8(Q.dataOffset)?20:12;return Q.data.getUint32(Q.dataOffset+W)};
qC4=function(Q){Q=new Ue(Q.data,Q.offset,Q.size,Q.type,Q.U);var W=qD(Q);Q.skip(7);var x=Iy(Q);if(W===0){W=Iy(Q);var D=Iy(Q)}else W=mw(Q),D=mw(Q);Q.skip(2);for(var K=Bh(Q),l=[],M=[],w=0;w<K;w++){var S=Iy(Q);l.push(S);M.push(Iy(Q));Q.skip(4)}return{timescale:x,jT:W,BP:D,us3:l,Dz:M}};
Ee=function(Q,W){if(Q.byteLength-W<8)return!1;var x=Q.getUint32(W);if(x<8||Q.byteLength-W<x)return!1;for(x=4;x<8;x++){var D=Q.getInt8(W+x);if(D<48||D>122)return!1}return!0};
tW=function(Q){return Q===1701082227||Q===1836019558||Q===1836019574||Q===1835297121||Q===1835626086||Q===1937007212||Q===1953653094||Q===1953653099||Q===1836475768};
Bw1=function(Q){Q.skip(4);return{e2j:ND(Q,0),value:ND(Q,0),timescale:Iy(Q),uDj:Iy(Q),PWp:Iy(Q),id:Iy(Q),bL:ND(Q),offset:Q.offset}};
g.$qn=function(Q){var W=Oe(Q,0,1701671783);if(!W)return null;var x=Bw1(W),D=x.e2j;x=ZK(x.bL);if(Q=Oe(Q,W.offset+W.size,1701671783))if(Q=Bw1(Q),Q=ZK(Q.bL),x&&Q){W=g.V(Object.keys(Q));for(var K=W.next();!K.done;K=W.next())K=K.value,x[K]=Q[K]}return x?new ew(x,D):null};
WM=function(Q,W){for(var x=Oe(Q,0,W);x;){var D=x;D.type=1936419184;D.data.setUint32(D.offset+4,1936419184);x=Oe(Q,x.offset+x.size,W)}};
g.xm=function(Q,W){for(var x=0,D=[];Ee(Q,x);){var K=FB(Q,x);K.type===W&&D.push(K);x=tW(K.type)?x+8:x+K.size}return D};
ICD=function(Q,W){var x=g.LN(Q,0,1937011556),D=g.LN(Q,0,1953654136);if(!x||!D||Q.getUint32(x.offset+12)>=2)return null;var K=new DataView(W.buffer,W.byteOffset,W.length),l=g.LN(K,0,1937011556);if(!l)return null;W=K.getUint32(l.dataOffset+8);D=K.getUint32(l.dataOffset+12);if(D!==1701733217&&D!==1701733238)return null;D=new J7z(Q.byteLength+W);ch(D,Q,0,x.offset+12);D.data.setInt32(D.offset,2);D.offset+=4;ch(D,Q,x.offset+16,x.size-16);ch(D,K,K.byteOffset+l.dataOffset+8,W);ch(D,Q,x.offset+x.size,Q.byteLength-
(x.offset+x.size));x=g.V([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(K=x.next();!K.done;K=x.next())K=g.LN(Q,0,K.value),D.data.setUint32(K.offset,K.size+W);Q=g.LN(D.data,0,1953654136);D.data.setUint32(Q.offset+16,2);return D.data};
mqQ=function(Q){var W=g.LN(Q,0,1937011556);if(!W)return null;var x=Q.getUint32(W.dataOffset+12);if(x!==1701733217&&x!==1701733238)return null;W=Oe(Q,W.offset+24+(x===1701733217?28:78),1936289382);if(!W)return null;x=Oe(Q,W.offset+8,1935894637);if(!x||Q.getUint32(x.offset+12)!==1667392371)return null;W=Oe(Q,W.offset+8,1935894633);if(!W)return null;W=Oe(Q,W.offset+8,1952804451);if(!W)return null;x=new Uint8Array(16);for(var D=0;D<16;D++)x[D]=Q.getInt8(W.offset+16+D);return x};
Dt=function(Q,W){this.B=Q;this.pos=0;this.start=W||0};
Kf=function(Q){return Q.pos>=Q.B.byteLength};
wR=function(Q,W,x){var D=new Dt(x);if(!lM(D,Q))return!1;D=j2(D);if(!ML(D,W))return!1;for(Q=0;W;)W>>>=8,Q++;W=D.start+D.pos;var K=Rz(D,!0);D=Q+(D.start+D.pos-W)+K;D=D>9?NwF(D-9,8):NwF(D-2,1);Q=W-Q;x.setUint8(Q++,236);for(W=0;W<D.length;W++)x.setUint8(Q++,D[W]);return!0};
c74=function(Q){var W=new Dt(Q);W.ey();if(lM(W,[408125543,374648427,174,224]))W=j2(W);else return null;for(var x=Q=null;!Kf(W);){var D=Rz(W,!1);if(D===21432)switch(S2(W)){default:Q=0;break;case 1:Q=1;break;case 3:Q=2;break;case 15:Q=255}else D===30320?x=j2(W):bM(W)}if(!x)return null;for(var K,l=D=W=null;!Kf(x);)switch(Rz(x,!1)){case 30321:if(S2(x)!==3)return null;break;case 30324:W=sq(x);break;case 30323:l=sq(x);break;case 30325:D=sq(x);break;case 30322:K=Rz(x,!0);K=zI(x,K);K=new DataView(K.buffer,
K.byteOffset,K.byteLength);break;default:bM(x)}return K?new A72(Q,W,l,D,K):null};
j2=function(Q){var W=Rz(Q,!0),x=Q.B.byteOffset+Q.pos;x=new DataView(Q.B.buffer,x,Math.min(W,Q.B.buffer.byteLength-x));x=new Dt(x,Q.start+Q.pos);Q.pos+=W;return x};
S2=function(Q){for(var W=Rz(Q,!0),x=km(Q),D=1;D<W;D++)x=x*256+km(Q);return x};
sq=function(Q){var W=Rz(Q,!0),x=0;W===4?x=Q.B.getFloat32(Q.pos):W===8&&(x=Q.B.getFloat64(Q.pos));Q.pos+=W;return x};
gds=function(Q){var W=Rz(Q,!0);return Jy(zI(Q,W))};
km=function(Q){return Q.B.getUint8(Q.pos++)};
Rz=function(Q,W){var x=km(Q);if(x===1){for(W=x=0;W<7;W++)x=x*256+km(Q);return x}for(var D=128,K=0;K<6&&D>x;K++)x=x*256+km(Q),D*=128;return W?x-D:x};
bM=function(Q){var W=Rz(Q,!0);Q.pos+=W};
y7v=function(Q){if(!ML(Q,440786851,!0))return null;var W=Q.pos;Rz(Q,!1);var x=Rz(Q,!0)+Q.pos-W;Q.pos=W+x;if(!ML(Q,408125543,!1))return null;Rz(Q,!0);if(!ML(Q,357149030,!0))return null;var D=Q.pos;Rz(Q,!1);var K=Rz(Q,!0)+Q.pos-D;Q.pos=D+K;if(!ML(Q,374648427,!0))return null;var l=Q.pos;Rz(Q,!1);var M=Rz(Q,!0)+Q.pos-l,w=new Uint8Array(x+12+K+M),S=new DataView(w.buffer);w.set(new Uint8Array(Q.B.buffer,Q.B.byteOffset+W,x));S.setUint32(x,408125543);S.setUint32(x+4,33554431);S.setUint32(x+8,4294967295);
w.set(new Uint8Array(Q.B.buffer,Q.B.byteOffset+D,K),x+12);w.set(new Uint8Array(Q.B.buffer,Q.B.byteOffset+l,M),x+12+K);return w};
XU=function(Q){var W=Q.pos;Q.pos=0;var x=1E6;lM(Q,[408125543,357149030,2807729])&&(x=S2(Q));Q.pos=W;return x};
eM4=function(Q,W){var x=Q.pos;Q.pos=0;if(Q.B.getUint8(Q.pos)!==160&&!oz(Q)||!ML(Q,160))return Q.pos=x,NaN;Rz(Q,!0);var D=Q.pos;if(!ML(Q,161))return Q.pos=x,NaN;Rz(Q,!0);km(Q);var K=km(Q)<<8|km(Q);Q.pos=D;if(!ML(Q,155))return Q.pos=x,NaN;D=S2(Q);Q.pos=x;return(K+D)*W/1E9};
oz=function(Q){if(!fCl(Q)||!ML(Q,524531317))return!1;Rz(Q,!0);return!0};
fCl=function(Q){if(Q.ey()){if(!ML(Q,408125543))return!1;Rz(Q,!0)}return!0};
lM=function(Q,W){for(var x=0;x<W.length;x++){if(!ML(Q,W[x]))return!1;x!==W.length-1&&Rz(Q,!0)}return!0};
ML=function(Q,W,x){x=x===void 0?!1:x;if(Kf(Q))return!1;for(var D=Q.pos;Rz(Q,!1)!==W;)if(bM(Q),D=Q.pos,Kf(Q))return!1;x&&(Q.pos=D);return!0};
NwF=function(Q,W){W||(W=Math.ceil(Math.log(Q+2)/Math.log(2)/7));for(var x=1<<8-W,D=[];D.length<W-1;)D.unshift(Q%256),Q=Math.floor(Q/256);D.unshift(Q|x);return D};
zI=function(Q,W){var x=new Uint8Array(Q.B.buffer,Q.B.byteOffset+Q.pos,W);Q.pos+=W;return x};
uM=function(Q){this.MD=Q;this.B={};this.url=""};
Z3v=function(Q,W){var x=W.indexOf("?");if(x>0){var D=u25(W.substring(x+1));g.nC(D,function(K,l){this.set(l,K)},Q);
W=W.substring(0,x)}W=od5(W);g.nC(W,function(K,l){this.set(l,K)},Q)};
LQQ=function(Q){var W=Q.MD.cV(),x=[];g.nC(Q.B,function(K,l){x.push(l+"="+K)});
if(!x.length)return W;var D=x.join("&");Q=Xll(Q.MD)?"&":"?";return W+Q+D};
Ym=function(Q,W){var x=new g.JW(W);(W=x.get("req_id"))&&Q.set("req_id",W);g.nC(Q.B,function(D,K){x.set(K,null)});
return x};
r7D=function(){this.N=this.D=this.B=this.timedOut=this.started=this.L=this.U=0};
nf=function(Q){Q.L=(0,g.a8)();Q.started=0;Q.timedOut=0;Q.B=0};
Vr=function(Q,W){var x=Q.started+Q.B*4;W&&(x+=Q.D);x=Math.max(0,x-3);return Math.pow(1.6,x)};
PM=function(Q,W){Q[W]||(Q[W]=new r7D);return Q[W]};
vM=function(Q){this.T=this.G=this.L=this.U=0;this.S=this.X=!1;this.B=Q;this.D=Q.clone()};
Twz=function(Q,W,x){if(ay(Q.B))return!1;var D=PM(x,hW(Q.B));if(D.timedOut<1&&D.B<1)return!1;D=D.timedOut+D.B;Q=Cf(Q,W);x=PM(x,hW(Q));return x.timedOut+x.B+0<D};
JZ=function(Q,W,x){Q=W?Cf(Q,x):Q.B;return new uM(Q)};
Cf=function(Q,W){W=W?W.Pi:!1;Q.N||(Q.N=dQ(Q.D,W));return Q.N};
pf=function(Q,W,x){return hW(W?Cf(Q,x):Q.B)};
hZ=function(Q,W,x,D){W.qH&&(D===void 0?0:D)>1?W=W.qH:(x=PM(x,pf(Q,Q.H9(W,x),W)),W=Math.max(Q.L,x.timedOut)+W.ZF*(Q.U-Q.L)+.25*Q.G,W=W>3?1E3*Math.pow(1.6,W-3):0);return W===0?!0:Q.T+W<(0,g.a8)()};
O3O=function(Q,W,x){Q.B.set(W,x);Q.D.set(W,x);Q.N&&Q.N.set(W,x)};
Edv=function(Q,W,x,D,K){++Q.U;W&&++Q.L;hW(x.MD).startsWith("redirector.")&&(Q.B=Q.D.clone(),delete Q.N,D.e$&&delete K[hW(Q.B)])};
az=function(Q){return Q?(Q.itag||"")+";"+(Q.lmt||0)+";"+(Q.xtags||""):""};
GI=function(Q,W,x,D){this.initRange=x;this.indexRange=D;this.B=null;this.D=!1;this.X=0;this.N=this.j8=this.U=null;this.info=W;this.Db=new vM(Q)};
dR=function(Q,W){this.start=Q;this.end=W;this.length=W-Q+1};
iM=function(Q){Q=Q.split("-");var W=Number(Q[0]),x=Number(Q[1]);if(!isNaN(W)&&!isNaN(x)&&Q.length===2&&(Q=new dR(W,x),!isNaN(Q.start)&&!isNaN(Q.end)&&!isNaN(Q.length)&&Q.length>0))return Q};
AZ=function(Q,W){return new dR(Q,Q+W-1)};
FQh=function(Q){return Q.end==null?{start:String(Q.start)}:{start:String(Q.start),end:String(Q.end)}};
HM=function(Q){if(!Q)return new dR(0,0);var W=Number(Q.start);Q=Number(Q.end);if(!isNaN(W)&&!isNaN(Q)&&(W=new dR(W,Q),W.length>0))return W};
Uq=function(Q,W,x,D,K,l,M,w,S,b,z,k){D=D===void 0?"":D;this.type=Q;this.B=W;this.range=x;this.source=D;this.e9=z;this.clipId=k===void 0?"":k;this.G=[];this.L="";this.E3=-1;this.S=this.T=0;this.L=D;this.E3=K>=0?K:-1;this.startTime=l||0;this.duration=M||0;this.U=w||0;this.D=S>=0?S:this.range?this.range.length:NaN;this.N=this.range?this.U+this.D===this.range.length:b===void 0?!!this.D:b;this.range?(this.kD=this.startTime+this.duration*this.U/this.range.length,this.X=this.duration*this.D/this.range.length,
this.Nx=this.kD+this.X):tmO(this)};
tmO=function(Q){Q.kD=Q.startTime;Q.X=Q.duration;Q.Nx=Q.kD+Q.X};
QU5=function(Q,W,x){var D=!(!W||W.B!==Q.B||W.type!==Q.type||W.E3!==Q.E3);return x?D&&!!W&&(Q.range&&W.range?W.range.end===Q.range.end:W.range===Q.range)&&W.U+W.D===Q.U+Q.D:D};
qL=function(Q){return Q.type===1||Q.type===2};
BM=function(Q){return Q.type===3||Q.type===6};
$m=function(Q,W){return Q.B===W.B?Q.range&&W.range?Q.range.start+Q.U+Q.D===W.range.start+W.U:Q.E3===W.E3?Q.U+Q.D===W.U:Q.E3+1===W.E3&&W.U===0&&Q.N:!1};
xNs=function(Q,W){return Q.E3!==W.E3&&W.E3!==Q.E3+1||Q.type!==W.type?!1:$m(Q,W)?!0:Math.abs(Q.kD-W.kD)<=1E-6&&Q.E3===W.E3?!1:W$F(Q,W)};
W$F=function(Q,W){return $m(Q,W)||Math.abs(Q.Nx-W.kD)<=1E-6||Q.E3+1===W.E3&&W.U===0&&Q.N?!0:!1};
Iz=function(Q){return Q.E3+(Q.N?1:0)};
DN5=function(Q){Q.length===1||g.h8(Q,function(x){return!!x.range});
for(var W=1;W<Q.length;W++);W=Q[Q.length-1];return new dR(Q[0].range.start+Q[0].U,W.range.start+W.U+W.D-1)};
K$F=function(Q){for(var W=1;W<Q.length;W++)if(!$m(Q[W-1],Q[W]))return!1;return!0};
lR1=function(Q){var W=0;Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next())W+=x.value.range.length;return W};
mZ=function(Q){var W={};W.itag=Q.B.info.itag;W.type=""+Q.type;W.src=""+Q.source;W.segsrc=Q.L;W.seg=String(Q.E3);Q.range&&(W.range=Q.range.start+Q.U+"-"+(Q.range.start+Q.U+Q.D-1));W.time=Q.kD.toFixed(1)+"-"+(Q.kD+Q.X).toFixed(1);W.off=String(Q.U);W.len=String(Q.D);Q.N&&(W.end="1");Q.lf()&&(W.eos="1");Q.clipId&&(W.cid=Q.clipId);return W};
jUn=function(Q){return new Uq(Q.type,Q.B,Q.range,"getEmptyStubBefore"+Q.L,Q.E3,Q.startTime,0,Q.U,0)};
Men=function(Q){return new Uq(Q.type,Q.B,Q.range,"getEmptyStubAfter"+Q.L,Q.E3,Q.startTime+Q.duration,0,Q.U+Q.D,0)};
RW4=function(Q,W,x,D){return new Uq(Q.type,Q.B,Q.range,"reslice"+Q.L,Q.E3,Q.startTime,Q.duration,W,x,D,Q.e9,Q.clipId)};
wT2=function(Q,W){return Q.B!==W.B?!1:Q.range&&W.range?Q.range.start+Q.U>=W.range.start+W.U&&Q.range.start+Q.U+Q.D<=W.range.start+W.U+W.D:Q.E3===W.E3&&Q.U>=W.U&&(Q.U+Q.D<=W.U+W.D||W.N)};
SwD=function(Q,W){return Q.B!==W.B?!1:Q.type===4&&W.type===3&&Q.B.Fs()?(Q=Q.B.Zl(Q),dM(Q,function(x){return SwD(x,W)})):Q.E3===W.E3&&!!W.D&&W.U+W.D>Q.U&&W.U+W.D<=Q.U+Q.D};
NL=function(Q,W){var x=W.E3;Q.L="updateWithSegmentInfo";Q.E3=x;if(Q.startTime!==W.startTime||Q.duration!==W.duration)Q.startTime=W.startTime+Q.T,Q.duration=W.duration,tmO(Q)};
cM=function(Q,W){var x=this;this.Af=Q;this.N=this.B=null;this.L=this.B3=NaN;this.H9=this.requestId=null;this.by={VMj:function(){return x.range}};
this.Db=Q[0].B.Db;this.U=W||"";this.Af[0].range&&this.Af[0].D>0&&(K$F(Q)?(this.range=DN5(Q),this.D=this.range.length):(this.range=this.Af[this.Af.length-1].range,this.D=lR1(Q)))};
gR=function(Q){return!qL(Q.Af[Q.Af.length-1])};
yr=function(Q){return Q.Af[Q.Af.length-1].type===4};
g.e2=function(Q,W,x){x=Q.H9===null?Q.Db.H9(W,x,Q.Af[0].type):Q.H9;if(Q.B){W=x?dQ(Q.B,W.Pi):Q.B;var D=new uM(W);D.get("alr")||D.set("alr","yes");Q.U&&Z3v(D,Q.U)}else/http[s]?:\/\//.test(Q.U)?D=new uM(new g.JW(Q.U)):(D=JZ(Q.Db,x,W),Q.U&&Z3v(D,Q.U));(W=Q.range)?D.set("range",W.toString()):Q.Af[0].B.Sr()&&Q.Af.length===1&&Q.Af[0].U&&D.set("range",Q.Af[0].U+"-");Q.requestId&&D.set("req_id",Q.requestId);isNaN(Q.B3)||D.set("headm",Q.B3.toString());isNaN(Q.L)||D.set("mffa",Q.L+"ms");Q.urlParams&&g.nC(Q.urlParams,
function(K,l){D.set(l,K)});
return D};
bSa=function(Q){if(Q.range)return Q.D;Q=Q.Af[0];return Math.round(Q.X*Q.B.info.a5)};
sUa=function(Q,W){return Math.max(0,Q.Af[0].kD-W)};
ff=function(Q,W,x,D,K,l){l=l===void 0?0:l;GI.call(this,Q,W,D,void 0);this.L=x;this.zA=l;this.index=K||new g.Hh};
zW5=function(Q,W,x,D,K){this.E3=Q;this.startSecs=W;this.eE=x;this.B=D||NaN;this.U=K||NaN};
Zt=function(Q,W,x){for(;Q;Q=Q.parentNode)if(Q.attributes&&(!x||Q.nodeName===x)){var D=Q.getAttribute(W);if(D)return D}return""};
Lf=function(Q,W){for(;Q;Q=Q.parentNode){var x=Q.getElementsByTagName(W);if(x.length>0)return x[0]}return null};
klh=function(Q){if(!Q)return 0;var W=Q.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return W?(Number(W[2])|0)*3600+(Number(W[4])|0)*60+(Number(W[6])|0):Number(Q)|0};
XTQ=function(Q){return Q.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?Q+"Z":Q};
rR=function(){this.B=[];this.U=null;this.X=0;this.D=[];this.L=!1;this.G="";this.N=-1};
oUF=function(Q){var W=Q.D;Q.D=[];return W};
usa=function(){this.N=[];this.B=null;this.U={};this.D={}};
P9n=function(Q,W){var x=[];W=Array.from(W.getElementsByTagName("SegmentTimeline"));W=g.V(W);for(var D=W.next();!D.done;D=W.next()){D=D.value;var K=D.parentNode.parentNode,l=null;K.nodeName==="Period"?l=Ywz(Q):K.nodeName==="AdaptationSet"?(K=K.getAttribute("id")||K.getAttribute("mimetype")||"",l=nUl(Q,K)):K.nodeName==="Representation"&&(K=K.getAttribute("id")||"",l=Vel(Q,K));if(l==null)return;l.update(D);g.lZ(x,oUF(l))}g.lZ(Q.N,x);WJa(Q.N,function(M){return M.startSecs*1E3+M.B})};
vU5=function(Q){Q.B&&(Q.B.B=[]);g.nC(Q.U,function(W){W.B=[]});
g.nC(Q.D,function(W){W.B=[]})};
Ywz=function(Q){Q.B||(Q.B=new rR);return Q.B};
nUl=function(Q,W){Q.U[W]||(Q.U[W]=new rR);return Q.U[W]};
Vel=function(Q,W){Q.D[W]||(Q.D[W]=new rR);return Q.D[W]};
Oq=function(Q){var W=Q===void 0?{}:Q;Q=W.zA===void 0?0:W.zA;var x=W.Fp===void 0?!1:W.Fp;var D=W.o4===void 0?0:W.o4;var K=W.bG===void 0?0:W.bG;var l=W.xS===void 0?Infinity:W.xS;var M=W.us===void 0?0:W.us;var w=W.Nr===void 0?!1:W.Nr;W=W.HH===void 0?!1:W.HH;g.Hh.call(this);this.jD=this.Dm=-1;this.K2=Q;this.o4=D;this.Fp=x;this.bG=K;this.xS=l;this.us=M;((this.Nr=w)||isFinite(l)&&this.xS>0)&&x&&TI&&(this.U=!1,this.D="postLive");this.HH=W};
Eq=function(Q,W){return SJ(Q.segments,function(x){return W-x.E3})};
FU=function(Q,W,x){x=x===void 0?{}:x;ff.call(this,Q,W,"",void 0,void 0,x.zA||0);this.index=new Oq(x)};
tZ=function(Q,W,x){GI.call(this,Q,W);this.L=x;Q=this.index=new g.Hh;Q.U=!1;Q.D="d"};
C92=function(Q,W,x){var D=Q.index.y9(W),K=Q.index.getStartTime(W),l=Q.index.getDuration(W);x?l=x=0:x=Q.info.a5*l;return new cM([new Uq(3,Q,void 0,"otfCreateRequestInfoForSegment",W,K,l,0,x)],D)};
Jh4=function(Q,W){if(!Q.index.isLoaded()){var x=[],D=W.N;W=W.L.split(",").filter(function(z){return z.length>0});
for(var K=0,l=0,M=0,w=/^(\d+)/,S=/r=(\d+)/,b=0;b<D;b++){if(M<=0)if(M=W.shift(),l=(l=w.exec(M))?+l[1]/1E3:0)M=(M=S.exec(M))?+M[1]:0,M+=1;else return;x.push(new AW(b,K,l,NaN,"sq/"+(b+1)));K+=l;M--}Q.index.append(x)}};
QY=function(Q,W){this.info=Q;this.B=W;this.U=null;this.N=this.D=-1;this.timestampOffset=0;this.isLocked=this.X=!1;this.L=this.info.B.il()&&!this.info.U};
pTD=function(Q,W){Q.B.getLength();W=Math.min(W,Q.info.D);var x=Q.B.split(W),D=x.h9;x=new QY(new Uq(Q.info.type,Q.info.B,Q.info.range,Q.info.L,Q.info.E3,Q.info.startTime,Q.info.duration,Q.info.U,W,!1,Q.info.e9,Q.info.clipId),x.gA);x.N=Q.N;x.D=Q.D;W=new QY(new Uq(Q.info.type,Q.info.B,Q.info.range,Q.info.L,Q.info.E3,Q.info.startTime,Q.info.duration,Q.info.U+W,Q.info.D-W,Q.info.N,Q.info.e9,Q.info.clipId),D);W.N=Q.N;W.D=Q.D;return[x,W]};
g.WB=function(Q,W,x){var D;if(!(D=Q.isLocked||W.isLocked||!$m(Q.info,W.info)||Q.info.N)){if(x=x===void 0?!1:x)x=Q.B,D=W.B,x=!(D.SE.length?m6l(x,D.SE[0]):1);D=x}if(D)return null;x=new Uq(Q.info.type,Q.info.B,Q.info.range,Q.info.L,Q.info.E3,Q.info.startTime,Q.info.duration,Q.info.U,Q.info.D,Q.info.N,Q.info.e9,Q.info.clipId);D=W.info;x.D+=D.D;x.range&&(x.X+=D.X);x.Nx=D.Nx;x.N=D.N;D=new ul;Yw(D,Q.B);Yw(D,W.B);x=new QY(x,D);x.U=W.U||Q.U;x.D=Q.D!==-1?Q.D:W.D;x.N=Q.N!==-1?Q.N:W.N;return x};
g.xK=function(Q){g.t7(Q.info.B.info)||Q.info.B.info.i6();if(Q.D!==-1)return Q.D;if(Q.U&&aCF(Q.U))return Q.D=aCF(Q.U),Q.D;if(g.t7(Q.info.B.info)){var W=Q.qr();for(var x=Q.info.B.B,D=NaN,K=NaN,l=0;Ee(W,l);){var M=FB(W,l);M.type===1936286840?K=M.data.getUint32(M.dataOffset+8):M.type===1836476516?K=g.rQ(M):M.type===1952867444&&isNaN(D)&&(D=g.Qr(M));l=tW(M.type)?l+8:l+M.size}!K&&x&&(K=T8(x));W=D/K}else W=new Dt(Q.qr()),x=Q.L?W:new Dt(new DataView(Q.info.B.B.buffer)),D=XU(x),x=W.pos,W.pos=0,oz(W)?ML(W,
231)?(D=S2(W)*D/1E9,W.pos=x,W=D):(W.pos=x,W=NaN):(W.pos=x,W=NaN);Q.D=W||Q.info.kD;return Q.D};
aRa=function(Q,W){Q.timestampOffset>0&&(W-=Q.timestampOffset);var x=g.xK(Q)+W;hWh(Q,x);Q.timestampOffset=W};
hWh=function(Q,W){g.t7(Q.info.B.info)||Q.info.B.info.i6();Q.D=W;if(g.t7(Q.info.B.info)){var x=Q.qr();Q=Q.info.B.B;for(var D=NaN,K=NaN,l=0;Ee(x,l);){var M=FB(x,l);isNaN(D)&&(M.type===1936286840?D=M.data.getUint32(M.dataOffset+8):M.type===1836476516&&(D=g.rQ(M)));if(M.type===1952867444){!D&&Q&&(D=T8(Q));var w=g.Qr(M);isNaN(K)&&(K=Math.round(W*D)-w);var S=M;w+=K;if(S.data.getUint8(S.dataOffset)){var b=S.data;S=S.dataOffset+4;b.setUint32(S,Math.floor(w/4294967296));b.setUint32(S+4,w&4294967295)}else S.data.setUint32(S.dataOffset+
4,w)}l=tW(M.type)?l+8:l+M.size}return!0}x=new Dt(Q.qr());Q=Q.L?x:new Dt(new DataView(Q.info.B.B.buffer));D=XU(Q);Q=x.pos;x.pos=0;if(oz(x)&&ML(x,231))if(K=Rz(x,!0),W=Math.floor(W*1E9/D),Math.ceil(Math.log(W)/Math.log(2)/8)>K)W=!1;else{for(D=K-1;D>=0;D--)x.B.setUint8(x.pos+D,W&255),W>>>=8;x.pos=Q;W=!0}else W=!1;return W};
Kn=function(Q,W){W=W===void 0?!1:W;var x=Dv(Q);Q=W?0:Q.info.X;return x||Q};
Dv=function(Q){g.t7(Q.info.B.info)||Q.info.B.info.i6();if(Q.U&&Q.info.type===6)return Q.U.zA;if(g.t7(Q.info.B.info)){var W=Q.qr();var x=0;W=g.xm(W,1936286840);W=g.V(W);for(var D=W.next();!D.done;D=W.next())D=qC4(D.value),x+=D.Dz[0]/D.timescale;x=x||NaN;if(!(x>=0))a:{x=Q.qr();W=Q.info.B.B;for(var K=D=0,l=0;Ee(x,D);){var M=FB(x,D);if(M.type===1836476516)K=g.rQ(M);else if(M.type===1836019558){!K&&W&&(K=T8(W));if(!K){x=NaN;break a}var w=Oe(M.data,M.dataOffset,1953653094),S=w;w=K;var b=Oe(S.data,S.dataOffset,
1952868452);S=Oe(S.data,S.dataOffset,1953658222);var z=$J(b);$J(b);z&2&&$J(b);b=z&8?$J(b):0;var k=$J(S),X=k&1;z=k&4;var u=k&256,Y=k&512,v=k&1024;k&=2048;var J=Iy(S);X&&$J(S);z&&$J(S);for(var h=X=0;h<J;h++){var G=u?$J(S):b;Y&&$J(S);z&&h===0||!v||$J(S);k&&$J(S);X+=G}l+=X/w}D=tW(M.type)?D+8:D+M.size}x=l||NaN}x||g.Bp(new g.Lw("Missing duration while parsing bmff",Q.info.Zb()))}else x=new Dt(Q.qr()),Q=Q.L?x:new Dt(new DataView(Q.info.B.B.buffer)),x=eM4(x,XU(Q));return x};
g.Gls=function(Q){if(Q.info.B.Gc())return Q.info.duration;Q.N===-1&&(Q.N=Dv(Q));return Q.N||Q.info.duration};
dND=function(Q){var W=Q.qr();var x=(x=g.LN(W,0,1936286840))?x.data.getUint32(x.dataOffset+8):NaN;isNaN(x)&&(Q=Q.info.B.B,x=(W=g.LN(W,0,1836476516))?g.rQ(W):Q?T8(Q):NaN);return x};
iSv=function(Q){return Q.info.B.info.i6()&&Q.B.getUint8(0)===160};
AhF=function(Q){if(!Q.U){g.t7(Q.info.B.info)||Q.info.B.info.i6();if(g.t7(Q.info.B.info))var W=g.$qn(Q.qr());else{W=new Dt(Q.qr());var x=W.pos;W.pos=0;var D=null,K=null;if(lM(W,[408125543,307544935]))for(var l=W.pos+Rz(W,!0);W.pos<l;)if(Rz(W,!1)!==29555)bM(W);else for(var M=W.pos+Rz(W,!0);W.pos<M;)if(Rz(W,!1)!==26568)bM(W);else for(var w=W.pos+Rz(W,!0);W.pos<w;){var S=Rz(W,!1);if(S===17543){if(S=gds(W),S=ZK(S))if(K)for(var b=g.V(Object.keys(S)),z=b.next();!z.done;z=b.next())z=z.value,K[z]=S[z];else K=
S}else S===17827?(S=gds(W),D||(D=S)):bM(W)}W.pos=x;W=K?new ew(K,D):null}Q.U=W}};
HS1=function(Q){if(g.t7(Q.info.B.info))WM(Q.qr(),1836019574),WM(Q.qr(),1718909296);else{var W=new Dt(Q.qr());fCl(W);ML(W,524531317,!0);Q.B=Q.B.split(W.start+W.pos).h9}Q.L=!1};
lO=function(Q){if(!Q.X){if(g.t7(Q.info.B.info)){var W=Q.qr();var x=Oe(W,0,1836019574);if(x){x=x.offset+x.size;var D=new Uint8Array(x);D.set(new Uint8Array(W.buffer,W.byteOffset,x));W=D}else W=null}else W=y7v(new Dt(Q.qr()));W&&(Q.info.B.B=W,Q.X=!0)}};
g.j8=function(){this.count=0;this.B=1;this.U=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)};
UND=function(Q,W){return W+1<Q.count||Q.U?Q.offsets[W+1]-Q.offsets[W]:-1};
MG=function(Q){Q.offsets.length<Q.count+1&&Q.resize(Q.offsets.length*2)};
RI=function(Q,W,x,D){GI.call(this,Q,W,x,D);var K=this;this.L=null;this.by={vC:function(l,M,w,S){return K.vC(l,M,w,S)}};
this.index=new g.j8};
qws=function(Q,W,x,D,K,l){this.displayName=Q;this.vssId=W;this.languageCode=x;this.kind=D===void 0?"":D;this.xtags=K===void 0?"":K;this.id=l===void 0?"":l};
$NF=function(Q){if(Q=Q.colorInfo)if(Q=Q.transferCharacteristics)return Bg4[Q];return null};
g.wr=function(Q,W,x){this.name=Q;this.id=W;this.isDefault=x};
IR5=function(Q){return S8(function(W,x){return g.iY(W,x,4,1E3)},Q,{format:"RAW",
method:"GET",withCredentials:!0})};
g.mN4=function(Q){var W;Q.responseType&&Q.responseType!=="text"?Q.responseType==="arraybuffer"&&(W=Jy(new Uint8Array(Q.response))):W=Q.responseText;return!W||W.length>2048?"":W.indexOf("https://")===0?W:""};
S8=function(Q,W,x){W.match(Ngl);return Q(W,x).then(function(D){var K=g.mN4(D.xhr);return K?S8(Q,K,x):D.xhr})};
kK=function(Q,W,x){Q=Q===void 0?"":Q;W=W===void 0?null:W;x=x===void 0?!1:x;g.Rd.call(this);var D=this;this.sourceUrl=Q;this.isLivePlayback=x;this.O3=this.duration=0;this.isPremiere=this.Nr=this.N=this.isLiveHeadPlayable=this.isLive=this.U=!1;this.xS=this.bG=0;this.isOtf=this.lN=!1;this.eZ=(0,g.a8)();this.uj=Infinity;this.B={};this.D=new Map;this.state=this.cI=0;this.timeline=null;this.isManifestless=!1;this.F3=[];this.X=null;this.KS=0;this.L="";this.fS=NaN;this.X3=this.WN=this.timestampOffset=this.G=
0;this.t_=this.xg=NaN;this.yA=0;this.s3=this.T=!1;this.LS=[];this.g7={};this.pS=NaN;this.by={Q7f:function(w){bO(D,w)}};
var K;this.I5=(K=W)==null?void 0:K.ij("html5_use_network_error_code_enums");chv=!!W&&W.ij("html5_modern_vp9_mime_type");var l;s5=!((l=W)==null||!l.ij("html5_enable_flush_during_seek"))&&g.fl();var M;zF=!((M=W)==null||!M.ij("html5_enable_reset_audio_decoder"))&&g.fl()};
gU4=function(Q){return g.vZ(Q.B,function(W){return!!W.info.video&&W.info.video.B>=2160})};
SCn=function(Q){return g.vZ(Q.B,function(W){return!!W.info.video&&W.info.video.isHdr()})};
uQ=function(Q){return g.vZ(Q.B,function(W){return!!W.info.Qp})};
g.yhv=function(Q){return g.vZ(Q.B,function(W){return KS(W.info.mimeType)})};
eWl=function(Q){return g.vZ(Q.B,function(W){return W.info.video?W.info.video.projectionType==="EQUIRECTANGULAR":!1})};
fRQ=function(Q){return g.vZ(Q.B,function(W){return W.info.video?W.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
ZSh=function(Q){return g.vZ(Q.B,function(W){return W.info.video?W.info.video.projectionType==="MESH":!1})};
L$Q=function(Q){return g.vZ(Q.B,function(W){return W.info.video?W.info.video.stereoLayout===1:!1})};
rhO=function(Q){return f3l(Q.B,function(W){return W.info.video?W.G8():!0})};
kJ=function(Q){return g.vZ(Q.B,function(W){return ay(W.Db.B)})};
bO=function(Q,W){Q.B[W.info.id]=W;Q.D.set(az(g.WT(W.info,Q.lN)),W)};
Tgv=function(Q,W){return az({itag:W.itag,lmt:Q.lN?0:W.lmt||0,xtags:W.xtags})};
uO=function(Q,W,x){x=x===void 0?0:x;var D=Q.mimeType||"",K=Q.itag;var l=Q.xtags;K=K?K.toString():"";l&&(K+=";"+l);l=K;if(DR(D)){var M=Q.width||640;K=Q.height||360;var w=Q.fps,S=Q.qualityLabel,b=Q.colorInfo,z=Q.projectionType,k;Q.stereoLayout&&(k=OSl[Q.stereoLayout]);var X=$NF(Q)||void 0;if(b==null?0:b.primaries)var u=EUa[b.primaries]||void 0;M=new gw(M,K,w,z,k,void 0,S,X,u);D=Xm(D,M,f3[Q.itag||""]);s5&&(D+="; enableflushduringseek=true");zF&&(D+="; enableresetaudiodecoder=true")}var Y;if(xU(D)){var v=
Q.audioSampleRate;k=Q.audioTrack;v=new mQ(v?+v:void 0,Q.audioChannels,Q.spatialAudioType,Q.isDrc,Q.loudnessDb,Q.trackAbsoluteLoudnessLkfs,Q.audioQuality||"AUDIO_QUALITY_UNKNOWN");k&&(u=k.displayName,K=k.id,k=k.audioIsDefault,u&&(Y=new g.wr(u,K||"",!!k)))}var J;Q.captionTrack&&(S=Q.captionTrack,k=S.displayName,u=S.vssId,K=S.languageCode,w=S.kind,S=S.id,k&&u&&K&&(J=new qws(k,u,K,w,Q.xtags,S)));k=Number(Q.bitrate)/8;u=Number(Q.contentLength);K=Number(Q.lastModified);S=Q.drmFamilies;w=Q.type;x=x&&u?u/
x:0;Q=Number(Q.approxDurationMs);if(W&&S){var h={};S=g.V(S);for(b=S.next();!b.done;b=S.next())(b=oI[b.value])&&(h[b]=W[b])}return new ZC(l,D,{audio:v,video:M,RW:Y,Qp:h,a5:k,hM:x,contentLength:u,lastModified:K,captionTrack:J,streamType:w,approxDurationMs:Q})};
YK=function(Q,W,x){x=x===void 0?0:x;var D=Q.type;var K=Q.itag;var l=Q.xtags;l&&(K=Q.itag+";"+l);if(DR(D)){var M=(Q.size||"640x360").split("x");M=new gw(+M[0],+M[1],+Q.fps,Q.projection_type,+Q.stereo_layout,void 0,Q.quality_label,Q.eotf,Q.primaries);D=Xm(D,M,f3[Q.itag]);s5&&(D+="; enableflushduringseek=true");zF&&(D+="; enableresetaudiodecoder=true")}var w;if(xU(D)){var S=new mQ(+Q.audio_sample_rate||void 0,+Q.audio_channels||0,Q.spatial_audio_type,!!Q.drc);Q.name&&(w=new g.wr(Q.name,Q.audio_track_id,
Q.isDefault==="1"))}var b;Q.caption_display_name&&Q.caption_vss_id&&Q.caption_language_code&&(b=new qws(Q.caption_display_name,Q.caption_vss_id,Q.caption_language_code,Q.caption_kind,Q.xtags,Q.caption_id));l=Number(Q.bitrate)/8;var z=Number(Q.clen),k=Number(Q.lmt);x=x&&z?z/x:0;if(W&&Q.drm_families){var X={};for(var u=g.V(Q.drm_families.split(",")),Y=u.next();!Y.done;Y=u.next())Y=Y.value,X[Y]=W[Y]}return new ZC(K,D,{audio:S,video:M,RW:w,Qp:X,a5:l,hM:x,contentLength:z,lastModified:k,captionTrack:b,
streamType:Q.stream_type,approxDurationMs:Number(Q.approx_duration_ms)})};
F$2=function(Q){return dM(Q,function(W){return"FORMAT_STREAM_TYPE_OTF"===W.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
te5=function(Q){return dM(Q,function(W){return"FORMAT_STREAM_TYPE_OTF"===W.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
QAn=function(Q,W){return Q.timeline?jJ(Q.timeline.N,W):Q.F3.length?jJ(Q.F3,W):[]};
nn=function(Q,W,x){W=W===void 0?"":W;x=x===void 0?"":x;Q=new g.JW(Q,!0);Q.set("alr","yes");x&&(x=Hd2(decodeURIComponent(x)),Q.set(W,encodeURIComponent(x)));return Q};
KU1=function(Q,W){var x=Zt(W,"id");x=x.replace(":",";");var D=Zt(W,"mimeType"),K=Zt(W,"codecs");D=K?D+'; codecs="'+K+'"':D;K=Number(Zt(W,"bandwidth"))/8;var l=Number(Lf(W,"BaseURL").getAttribute(Q.L+":contentLength")),M=Q.duration&&l?l/Q.duration:0;if(DR(D)){var w=Number(Zt(W,"width"));var S=Number(Zt(W,"height")),b=Number(Zt(W,"frameRate")),z=WU5(Zt(W,Q.L+":projectionType"));a:switch(Zt(W,Q.L+":stereoLayout")){case "layout_left_right":var k=1;break a;case "layout_top_bottom":k=2;break a;default:k=
0}w=new gw(w,S,b,z,k)}if(xU(D)){var X=Number(Zt(W,"audioSamplingRate"));var u=Number(Zt(W.getElementsByTagName("AudioChannelConfiguration")[0],"value"));S=xmQ(Zt(W,Q.L+":spatialAudioType"));X=new mQ(X,u,S);a:{u=Zt(W,"lang")||"und";if(S=Lf(W,"Role"))if(z=Zt(S,"value")||"",g.hO(Dm1,z)){S=u+"."+Dm1[z];b=z==="main";Q=Zt(W,Q.L+":langName")||u+" - "+z;u=new g.wr(Q,S,b);break a}u=void 0}}if(W=Lf(W,"ContentProtection"))if(W.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var Y={};for(W=
W.firstChild;W!=null;W=W.nextSibling)W instanceof Element&&/SystemURL/.test(W.nodeName)&&(Q=W.getAttribute("type"),S=W.textContent,Q&&S&&(Y[Q]=S.trim()))}else Y=void 0;return new ZC(x,D,{audio:X,video:w,RW:u,Qp:Y,a5:K,hM:M,contentLength:l})};
WU5=function(Q){switch(Q){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"}};
xmQ=function(Q){switch(Q){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"}};
jAa=function(Q,W){W=W===void 0?"":W;Q.state=1;Q.eZ=(0,g.a8)();return IR5(W||Q.sourceUrl).then(function(x){if(!Q.d7()){Q.cI=x.status;x=x.responseText;var D=new DOMParser;x=Tm(D,ZZ4(x),"text/xml").getElementsByTagName("MPD")[0];Q.uj=klh(Zt(x,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(x.attributes){D=g.V(x.attributes);for(var K=D.next();!K.done;K=D.next())if(K=K.value,K.value==="http://youtube.com/yt/2012/10/10"){D=K.name.split(":")[1];break b}}D=""}Q.L=D;Q.isLive=Q.uj<Infinity&&Q.isLivePlayback;Q.O3=
Number(Zt(x,Q.L+":earliestMediaSequence"))||0;if(D=Date.parse(XTQ(Zt(x,Q.L+":mpdResponseTime"))))Q.KS=((0,g.a8)()-D)/1E3;Q.isLive&&x.getElementsByTagName("SegmentTimeline").length<=0||g.h8(x.getElementsByTagName("Period"),Q.jtj,Q);Q.state=2;Q.publish("loaded");lTF(Q)}return Q}).RH(function(x){if(x instanceof GG){var D=x.xhr;
Q.cI=D.status}Q.state=3;Q.publish("loaderror");return YX(D)})};
M_l=function(Q,W,x){return jAa(new kK(Q,W,x),Q)};
VY=function(Q){return Q.isLive&&(0,g.a8)()-Q.eZ>=Q.uj};
RTD=function(Q){Q.X&&Q.X.stop()};
lTF=function(Q){var W=Q.uj;isFinite(W)&&(VY(Q)?Q.refresh():(W=Math.max(0,Q.eZ+W-(0,g.a8)()),Q.X||(Q.X=new g.O3(Q.refresh,W,Q),g.y(Q,Q.X)),Q.X.start(W)))};
waa=function(Q){Q=Q.B;for(var W in Q){var x=Q[W].index;if(x.isLoaded())return x.oQ()+1}return 0};
PB=function(Q){return Q.WN?Q.WN-(Q.G||Q.timestampOffset):0};
vB=function(Q){return Q.X3?Q.X3-(Q.G||Q.timestampOffset):0};
Cn=function(Q){if(!isNaN(Q.fS))return Q.fS;var W=Q.B,x;for(x in W){var D=W[x].index;if(D.isLoaded()&&!KS(W[x].info.mimeType)){W=0;for(x=D.Ec();x<=D.oQ();x++)W+=D.getDuration(x);W/=D.n9();W=Math.round(W/.5)*.5;D.n9()>10&&(Q.fS=W);return W}if(Q.isLive&&(D=W[x],D.zA))return D.zA}return NaN};
S0l=function(Q,W){Q=LLQ(Q.B,function(D){return D.index.isLoaded()});
if(!Q)return NaN;Q=Q.index;var x=Q.GC(W);return Q.getStartTime(x)===W?W:x<Q.oQ()?Q.getStartTime(x+1):NaN};
bzs=function(Q,W){if(!Q.B["0"]){var x=new ZC("0","fakesb",{video:new gw(0,0,0,void 0,void 0,"auto")});Q.B["0"]=W?new ff(new g.JW("http://www.youtube.com/videoplayback"),x,"fake"):new RI(new g.JW("http://www.youtube.com/videoplayback"),x,new dR(0,0),new dR(0,0))}};
Ja=function(Q){if(Q.isManifestless)for(var W in Q.B)Q.B[W].index.segments=[]};
pn=function(Q,W,x){for(var D in Q.B){var K=KS(Q.B[D].info.mimeType)||Q.B[D].info.OQ();if(x===K&&(K=Q.B[D].index)!=null){var l=Eq(K,W);l>=0&&K.segments.splice(l,1)}}};
sA5=function(Q){for(var W in Q.B)KS(Q.B[W].info.mimeType)||vdh(Q.B[W].index,Infinity)};
ha=function(Q,W,x){for(var D in Q.B){var K=Q.B[D].index,l=W,M=x;K.Fp&&(l&&(K.Dm=Math.max(K.Dm,l)),M&&(K.jD=Math.max(K.jD||0,M)))}x&&(Q.pS=x/1E3)};
zTF=function(Q){Q.X3=0;Q.WN=0;Q.yA=0};
aI=function(Q){return Q.s3&&Q.isManifestless?Q.isLiveHeadPlayable:Q.isLive};
Xm=function(Q,W,x){GF===null&&(GF=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(chv&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return GF||x!=="9"&&x!=="("?GF||x!=="9h"&&x!=="(h"||(Q='video/webm; codecs="vp9.2"'):Q='video/webm; codecs="vp9"',Q;if(!GF&&!dr||Q!=='video/webm; codecs="vp9"'&&Q!=='video/webm; codecs="vp9.2"')return Q;
x="00";var D="08",K="01",l="01",M="01";Q==='video/webm; codecs="vp9.2"'&&(x="02",D="10",W.primaries==="bt2020"&&(M=K="09"),W.U==="smpte2084"&&(l="16"),W.U==="arib-std-b67"&&(l="18"));return'video/webm; codecs="'+["vp09",x,"51",D,"01",K,l,M,"00"].join(".")+'"'};
Aa=function(Q,W,x){Q=""+Q+(W>49?"p60":W>32?"p48":"");W=yl()[Q];if(W!=null&&W>0)return W;W=iO.get(Q);if(W!=null&&W>0)return W;x=x==null?void 0:x.get(Q);return x!=null&&x>0?x:8192};
kpz=function(Q){this.Dp=Q;this.Sk=this.t8=this.X3=this.L=this.N=this.SZ=this.s3=this.pS=!1;this.G=this.X=0;this.Pt=!1;this.F3=!0;this.I5=!1;this.U2=0;this.I$=this.fS=!1;this.yA=!0;this.eZ=this.g7=!1;this.B={};this.Cn=this.disableAv1=this.Vj=this.hn=this.tf=this.Kn=this.U=this.S=!1;this.b6=this.Dp.j("html5_disable_aac_preference");this.WN=Infinity;this.LS=0;this.Gn=this.Dp.jk();this.fn=this.Dp.experiments.ij("html5_enable_vp9_fairplay");this.IU=this.Dp.j("html5_force_av1_for_testing");this.O3=g.X0(this.Dp.experiments,
"html5_av1_ordinal_cap");this.vZ=this.Dp.j("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.gE=this.Dp.j("html5_account_onesie_format_selection_during_format_filter");this.a5=g.X0(this.Dp.experiments,"html5_max_byterate");this.T=this.Dp.j("html5_sunset_aac_high_codec_family");this.KS=this.Dp.j("html5_sunset_aac_high_codec_family");this.Y6=this.Dp.j("html5_enable_iamf_audio");this.UT=this.Dp.experiments.ij("html5_allow_capability_merge");this.RQ=this.Dp.j("html5_prefer_h264_encrypted_appletv");
this.cD=this.Dp.j("html5_enable_encrypted_av1")};
b3O=function(Q){if(Q.s3)return["f"];if(Q.RQ&&g.yk("appletv5"))return"9h 9 h 8 H (h ( *".split(" ");var W=["9h","9","h","8"];Q.cD&&W.push("1e");W=W.concat(["(h","(","H","*"]);Q.fS&&(W.unshift("1"),W.unshift("1h"));Q.t8&&W.unshift("h");Q.uj&&(W=(Xaa[Q.uj]||[Q.uj]).concat(W));return W};
lCn=function(Q){var W=["o","a","A"];Q.LS===1&&(Q.N&&(W=["mac3","MAC3"].concat(W)),Q.L&&(W=["meac3","MEAC3"].concat(W)),Q.Y6&&(W=["i","I"].concat(W)));Q.pS&&(W=["so","sa"].concat(W));!Q.Sk||Q.X3||Q.D||Q.b6||W.unshift("a");Q.SZ&&!Q.T&&W.unshift("ah");Q.D&&(W=(Xaa[Q.D]||[Q.D]).concat(W));return W};
HB=function(Q,W,x,D){W=W===void 0?{}:W;if(D===void 0?0:D)return W.disabled=1,0;if(vh(Q.L,CN.AV1_CODECS)&&vh(Q.L,CN.HEIGHT)&&vh(Q.L,CN.BITRATE))return W.isCapabilityUsable=1,8192;try{var K=gzO();if(K)return W.localPref=K}catch(w){}D=1080;K=navigator.hardwareConcurrency;K<=2&&(D=480);W.coreCount=K;if(K=g.X0(Q.experiments,"html5_default_av1_threshold"))D=W["default"]=K;!Q.j("html5_disable_av1_arm_check")&&i8n()&&(W.isArm=1,D=240);if(Q=Q.L.F3)W.mcap=Q,D=Math.max(D,Q);if(x){var l,M;if(Q=(l=x.videoInfos.find(function(w){return OC(w)}))==
null?void 0:(M=l.U)==null?void 0:M.powerEfficient)D=8192,W.isEfficient=1;
x=x.videoInfos[0].video;l=Math.min(Aa("1",x.fps),Aa("1",30));W.perfCap=l;D=Math.min(D,l);x.isHdr()&&!Q&&(W.hdr=1,D*=.75)}else x=Aa("1",30),W.perfCap30=x,D=Math.min(D,x),x=Aa("1",60),W.perfCap60=x,D=Math.min(D,x);return W.av1Threshold=D};
U5=function(Q,W,x,D){this.flavor=Q;this.keySystem=W;this.U=x;this.experiments=D;this.B={};this.I5=this.keySystemAccess=null;this.Kq=this.s7=-1;this.BM=null;this.D=!!D&&D.ij("edge_nonprefixed_eme");D&&D.ij("html5_enable_vp9_fairplay")};
BB=function(Q){return Q.D?!1:!Q.keySystemAccess&&!!qG()&&Q.keySystem==="com.microsoft.playready"};
$K=function(Q){return Q.keySystem==="com.microsoft.playready"};
II=function(Q){return!Q.keySystemAccess&&!!qG()&&Q.keySystem==="com.apple.fps.1_0"};
mB=function(Q){return Q.keySystem==="com.youtube.fairplay"};
NG=function(Q){return Q.keySystem==="com.youtube.fairplay.sbdl"};
g.cB=function(Q){return Q.flavor==="fairplay"};
qG=function(){var Q=window,W=Q.MSMediaKeys;rm()&&!W&&(W=Q.WebKitMediaKeys);return W&&W.isTypeSupported?W:null};
yY=function(Q){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.UC&&!g.fl())return pT("45");if(g.rV||g.kR)return Q.ij("edge_nonprefixed_eme");if(g.gr)return pT("47");if(g.nX){if(Q.ij("html5_enable_safari_fairplay"))return!1;if(Q=g.X0(Q,"html5_safari_desktop_eme_min_version"))return pT(Q)}return!0};
oas=function(Q,W,x,D){var K=Zs(),l=(x=K||x&&rm())?["com.youtube.fairplay"]:["com.widevine.alpha"];W&&l.unshift("com.youtube.widevine.l3");K&&D&&l.unshift("com.youtube.fairplay.sbdl");return x?l:Q?[].concat(g.C(l),g.C(e8.playready)):[].concat(g.C(e8.playready),g.C(l))};
Zv=function(){this.U=this.Ny=0;this.B=Array.from({length:fn.length}).fill(0)};
uY2=function(){};
Y0n=function(){this.startTimeMs=(0,g.a8)();this.B=!1};
naF=function(){this.B=new uY2};
V_Q=function(Q,W,x,D){D=D===void 0?1:D;x>=0&&(W in Q.B||(Q.B[W]=new Zv),Q.B[W].HM(x,D))};
PW5=function(Q,W,x,D,K){var l=(0,g.a8)(),M=K?K(W):void 0,w;K=(w=M==null?void 0:M.Ny)!=null?w:1;if(K!==0){var S;w=(S=M==null?void 0:M.profile)!=null?S:x;V_Q(Q,w,l-D,K)}return W};
Ln=function(Q,W,x,D,K){if(W&&typeof W==="object"){var l=function(M){return PW5(Q,M,x,D,K)};
if(Sb(W))return W.then(l);if(vaQ(W))return u3(W,l)}return PW5(Q,W,x,D,K)};
CWv=function(){};
rr=function(Q,W,x,D,K){D=D===void 0?!1:D;g.N.call(this);this.Dp=W;this.useCobaltWidevine=D;this.qj=K;this.U=[];this.D={};this.B={};this.callback=null;this.L=!1;this.N=[];this.initialize(Q,!x)};
paO=function(Q,W){Q.callback=W;Q.N=[];yY(Q.Dp.experiments)?TF(Q):JAl(Q)};
TF=function(Q){if(!Q.d7())if(Q.U.length===0)Q.callback(Q.N);else{var W=Q.U[0],x=Q.D[W],D=hTa(Q,x);if(O5&&O5.keySystem===W&&O5.lAS===JSON.stringify(D))Q.qj("remksa",{re:!0}),aTQ(Q,x,O5.keySystemAccess);else{var K,l;Q.qj("remksa",{re:!1,ok:(l=(K=O5)==null?void 0:K.keySystem)!=null?l:""});O5=void 0;(E5.isActive()?E5.Op("emereq",function(){return navigator.requestMediaKeySystemAccess(W,D)}):navigator.requestMediaKeySystemAccess(W,D)).then(CJ(function(M){aTQ(Q,x,M,D)}),CJ(function(){Q.L=!Q.L&&Q.D[Q.U[0]].flavor===
"widevine";
Q.L||Q.U.shift();TF(Q)}))}}};
aTQ=function(Q,W,x,D){if(!Q.d7()){D&&(O5={keySystem:W.keySystem,keySystemAccess:x,lAS:JSON.stringify(D)});W.keySystemAccess=x;if($K(W)){x=A7();D=g.V(Object.keys(Q.B[W.flavor]));for(var K=D.next();!K.done;K=D.next())K=K.value,W.B[K]=!!x.canPlayType(K)}else{x=W.keySystemAccess.getConfiguration();if(x.audioCapabilities)for(D=g.V(x.audioCapabilities),K=D.next();!K.done;K=D.next())Gph(Q,W,K.value);if(x.videoCapabilities)for(x=g.V(x.videoCapabilities),D=x.next();!D.done;D=x.next())Gph(Q,W,D.value)}Q.N.push(W);
Q.useCobaltWidevine||Q.j("html5_enable_vp9_fairplay")&&NG(W)?(Q.U.shift(),TF(Q)):Q.callback(Q.N)}};
Gph=function(Q,W,x){Q.j("log_robustness_for_drm")?W.B[x.contentType]=x.robustness||!0:W.B[x.contentType]=!0};
hTa=function(Q,W){var x={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(Q.j("html5_enable_vp9_fairplay")&&mB(W))return x.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),x.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[x];$K(W)&&(x.initDataTypes=["keyids","cenc"]);for(var D=g.V(Object.keys(Q.B[W.flavor])),K=D.next();!K.done;K=D.next()){K=K.value;var l=K.indexOf("audio/")===0,M=l?x.audioCapabilities:x.videoCapabilities;W.flavor!==
"widevine"||Q.L?M.push({contentType:K}):l?M.push({contentType:K,robustness:"SW_SECURE_CRYPTO"}):(g.UC&&g.yk("windows nt")&&!Q.j("html5_drm_enable_moho")||M.push({contentType:K,robustness:"HW_SECURE_ALL"}),l=K,Q.j("html5_enable_cobalt_experimental_vp9_decoder")&&K.includes("vp09")&&(l=K+"; experimental=allowed"),M.push({contentType:l,robustness:"SW_SECURE_DECODE"}),Fm(Q.Dp)==="MWEB"&&(QB()||eL())&&(Q.qj("swcrypto",{}),M.push({contentType:K,robustness:"SW_SECURE_CRYPTO"})))}return[x]};
JAl=function(Q){if(qG()&&(g.nX||Ok&&Q.j("html5_drm_support_ios_mweb")))Q.N.push(new U5("fairplay","com.apple.fps.1_0","",Q.Dp.experiments));else{var W=dmD(),x=g.Os(Q.U,function(D){var K=Q.D[D],l=!1,M=!1,w;for(w in Q.B[K.flavor])W(w,D)&&(K.B[w]=!0,l=l||w.indexOf("audio/")===0,M=M||w.indexOf("video/")===0);return l&&M});
x&&Q.N.push(Q.D[x]);Q.U=[]}Q.callback(Q.N)};
dmD=function(){var Q=qG();if(Q){var W=Q.isTypeSupported;return function(D,K){return W(K,D)}}var x=A7();
return x&&(x.addKey||x.webkitAddKey)?function(D,K){return!!x.canPlayType(D,K)}:function(){return!1}};
iza=function(Q){this.experiments=Q;this.B=2048;this.N=0;this.F3=(this.G=this.j("html5_streaming_resilience"))?.5:.25;var W=W===void 0?0:W;this.D=g.X0(this.experiments,"html5_media_time_weight_prop")||W;this.pS=g.X0(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.T=(this.L=this.experiments.ij("html5_consider_end_stall"))&&ta;this.U=this.experiments.ij("html5_measure_max_progress_handling");this.S=this.j("html5_treat_requests_pre_elbow_as_metadata");this.X=this.j("html5_media_time_weight")||
!!this.D;this.uj=g.X0(this.experiments,"html5_streaming_fallback_byterate");this.j("html5_sabr_live_audio_early_return_fix")&&ta&&(this.B=65536)};
AAa=function(Q,W){this.B=void 0;this.experimentIds=Q?Q.split(","):[];this.flags=Wb(W||"","&");Q={};W=g.V(this.experimentIds);for(var x=W.next();!x.done;x=W.next())Q[x.value]=!0;this.experiments=Q};
g.X0=function(Q,W){Q=Q.flags[W];JSON.stringify(Q);return Number(Q)||0};
Qv=function(Q,W){return(Q=Q.flags[W])?Q.toString():""};
Hzv=function(Q){if(Q=Q.flags.html5_web_po_experiment_ids)if(Q=Q.replace(/\[ *(.*?) *\]/,"$1"))return Q.split(",").map(Number);return[]};
Um2=function(Q){if(Q.B)return Q.B;if(Q.experimentIds.length<=1)return Q.B=Q.experimentIds,Q.B;var W=[].concat(g.C(Q.experimentIds)).map(function(D){return Number(D)});
W.sort();for(var x=W.length-1;x>0;--x)W[x]-=W[x-1];Q.B=W.map(function(D){return D.toString()});
Q.B.unshift("v1");return Q.B};
BEh=function(Q){return q0h.then(Q)};
WL=function(Q,W,x){this.experiments=Q;this.LS=W;this.X3=x===void 0?!1:x;this.pS=!!g.yF("cast.receiver.platform.canDisplayType");this.T={};this.S=!1;this.U=new Map;this.G=!0;this.N=this.L=!1;this.B=new Map;this.F3=0;this.KS=this.experiments.ij("html5_disable_vp9_encrypted");this.D=this.experiments.ij("html5_enable_encrypted_av1");Q=g.yF("cast.receiver.platform.getValue");this.fS=g.X0(this.experiments,"html5_kaios_max_resolution");this.X=!this.pS&&Q&&Q("max-video-resolution-vpx")||null;$m5(this)};
ku2=function(Q,W,x){x=x===void 0?1:x;var D=W.itag;if(D==="0")return!0;var K=W.mimeType;if(W.i6()&&Zs()&&Q.experiments.ij("html5_appletv_disable_vp9"))return"dwebm";if(W.CS==="1e"&&!Q.D)return"dav1enc";if(OC(W)&&Q.S)return"dav1";if(W.video&&(W.video.isHdr()||W.video.primaries==="bt2020")&&!(vh(Q,CN.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(D===
"338"&&!(g.UC?pT(53):g.gr&&pT(64)))return"dopus";var l;if(Q.fS&&xh&&((l=W.video)==null?void 0:l.B)>Q.fS)return"kaios";l=x;l=l===void 0?1:l;x={};W.video&&(W.video.width&&(x[CN.WIDTH.name]=W.video.width),W.video.height&&(x[CN.HEIGHT.name]=W.video.height),W.video.fps&&(x[CN.FRAMERATE.name]=W.video.fps*l),W.video.U&&(x[CN.EOTF.name]=W.video.U),W.a5&&(x[CN.BITRATE.name]=W.a5*8*l),W.CS==="("&&(x[CN.CRYPTOBLOCKFORMAT.name]="subsample"),W.video.projectionType==="EQUIRECTANGULAR"||W.video.projectionType===
"EQUIRECTANGULAR_THREED_TOP_BOTTOM"||W.video.projectionType==="MESH")&&(x[CN.DECODETOTEXTURE.name]="true");W.audio&&W.audio.numChannels&&(x[CN.CHANNELS.name]=W.audio.numChannels);Q.L&&L3(W)&&(x[CN.EXPERIMENTAL.name]="allowed");l=g.V(Object.keys(CN));for(var M=l.next();!M.done;M=l.next()){M=CN[M.value];var w;if(w=x[M.name])if(w=!(M===CN.EOTF&&W.mimeType.indexOf("vp09.02")>0)){w=M;var S=W;w=!(Q.experiments.ij("html5_ignore_h264_framerate_cap")&&w===CN.FRAMERATE&&vZO(S))}if(w)if(vh(Q,M))if(Q.X){if(Q.X[M.name]<
x[M.name])return M.name}else K=K+"; "+M.name+"="+x[M.name];else if(rw(W)&&M===CN.EOTF)return"dvp92"}Q.pS&&W.video&&W.video.B>1080&&W.Qp&&(K+="; hdcp=2.2");return D==="227"?"hqcenc":D!=="585"&&D!=="588"&&D!=="583"&&D!=="586"&&D!=="584"&&D!=="587"&&D!=="591"&&D!=="592"||Q.experiments.ij("html5_enable_new_hvc_enc")?Q.isTypeSupported(K)?!0:"tpus":"newhvc"};
Dj=function(){var Q=eL()&&!pT(29),W=g.yk("google tv")&&g.yk("chrome")&&!pT(30);return Q||W?!1:GVz()};
ITs=function(Q,W,x){var D=480;W=g.V(W);for(var K=W.next();!K.done;K=W.next()){K=K.value;var l=K.video.B;l<=1080&&l>D&&ku2(Q,K,x)===!0&&(D=l)}return D};
g.KO=function(Q,W){W=W===void 0?!1:W;return Dj()&&Q.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!W&&Q.canPlayType(A7(),"application/x-mpegURL")?!0:!1};
NE4=function(Q){mmn(function(){for(var W=g.V(Object.keys(CN)),x=W.next();!x.done;x=W.next())vh(Q,CN[x.value])})};
vh=function(Q,W){W.name in Q.T||(Q.T[W.name]=cAn(Q,W));return Q.T[W.name]};
cAn=function(Q,W){if(Q.X)return!!Q.X[W.name];if(W===CN.BITRATE&&Q.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!Q.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(W===CN.AV1_CODECS)return Q.isTypeSupported("video/mp4; codecs="+W.valid)&&!Q.isTypeSupported("video/mp4; codecs="+W.GN);if(W.video){var x='video/webm; codecs="vp9"';Q.isTypeSupported(x)||(x='video/mp4; codecs="avc1.4d401e"')}else x='audio/webm; codecs="opus"',
Q.isTypeSupported(x)||(x='audio/mp4; codecs="mp4a.40.2"');return Q.isTypeSupported(x+"; "+W.name+"="+W.valid)&&!Q.isTypeSupported(x+"; "+W.name+"="+W.GN)};
gaQ=function(Q){Q.L||(Q.L=!0,lA(Q))};
lA=function(Q){Q.N=!0;Q.experiments.ij("html5_ssap_update_capabilities_on_change")&&yA5(Q)};
eTD=function(Q,W){var x=0;Q.U.has(W)&&(x=Q.U.get(W).n4);Q.U.set(W,{n4:x+1,VC:Math.pow(2,x+1)});lA(Q)};
YJ=function(Q){for(var W=[],x=g.V(Q.B.keys()),D=x.next();!D.done;D=x.next()){D=D.value;var K=Q.B.get(D);W.push(D+"_"+K.maxWidth+"_"+K.maxHeight)}return W.join(".")};
yA5=function(Q){Q.uj=[];for(var W=g.V(Q.B.values()),x=W.next();!x.done;x=W.next()){x=x.value;var D=x.CS;Q.experiments.ij("html5_ssap_force_mp4_aac")&&D!=="a"&&D!=="h"||Q.U.has(D)||Q.S&&(D==="1"||D==="1h"||Q.D&&D==="1e")||Q.uj.push(x)}};
j02=function(Q,W){for(var x=new Map,D=g.V(Q.B.keys()),K=D.next();!K.done;K=D.next()){K=K.value;var l=K.split("_")[0];W.has(l)||x.set(K,Q.B.get(K))}Q.B=x};
RMh=function(Q,W,x){var D,K=((D=x.video)==null?void 0:D.fps)||0;D=W+"_"+K;var l=!!x.audio,M={itag:x.itag,CS:W,Mx:l};if(l)M.numChannels=x.audio.numChannels;else{var w=x.video;M.maxWidth=w==null?void 0:w.width;M.maxHeight=w==null?void 0:w.height;M.maxFramerate=K;vh(Q,CN.BITRATE)&&(M.maxBitrateBps=x.a5*8);M.tY=w==null?void 0:w.isHdr()}w=Q.B.get(D);w?l||(x=Math.max(w.maxWidth||0,w.maxHeight||0)>Math.max(M.maxWidth||0,M.maxHeight||0)?w:M,W={itag:x.itag,CS:W,Mx:l,maxWidth:Math.max(w.maxWidth||0,M.maxWidth||
0),maxHeight:Math.max(w.maxHeight||0,M.maxHeight||0),maxFramerate:K,tY:x.tY},vh(Q,CN.BITRATE)&&(W.maxBitrateBps=x.maxBitrateBps),Q.B.set(D,W)):Q.B.set(D,M)};
wlO=function(Q,W,x){var D,K=((D=x.video)==null?void 0:D.fps)||0;D=W+"_"+K;var l=!!x.audio,M=Q.B.get(D);a:{var w=Q.B.get(D),S=!!x.audio;if(w){if(S){var b=!1;break a}var z;if(!S&&((b=x.video)==null?0:b.height)&&w.maxHeight&&w.maxHeight>=((z=x.video)==null?void 0:z.height)){b=!1;break a}}b=!0}b&&(b=x.itag,W=M?M:{itag:b,CS:W,Mx:l},l?W.numChannels=x.audio.numChannels:(l=x.video,W.maxWidth=l==null?void 0:l.width,W.maxHeight=l==null?void 0:l.height,W.maxFramerate=K,vh(Q,CN.BITRATE)&&(W.maxBitrateBps=x.a5*
8),W.tY=l==null?void 0:l.isHdr()),Q.B.set(D,W))};
$m5=function(Q){var W;(W=navigator.mediaCapabilities)!=null&&W.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(x){x.smooth&&x.powerEfficient&&(Q.F3=2160)})};
jC=function(){g.Rd.call(this);this.items={}};
M4=function(){g.vE.apply(this,arguments)};
RO=function(){g.CB.apply(this,arguments)};
fTs=function(Q,W,x){this.encryptedClientKey=W;this.L=x;this.B=new Uint8Array(Q.buffer,0,16);this.D=new Uint8Array(Q.buffer,16)};
Zzz=function(Q){Q.U||(Q.U=new M4(Q.B));return Q.U};
w5=function(Q){try{return v1(Q)}catch(W){return null}};
LU4=function(Q,W){if(!W&&Q)try{W=JSON.parse(Q)}catch(K){}if(W){Q=W.clientKey?w5(W.clientKey):null;var x=W.encryptedClientKey?w5(W.encryptedClientKey):null,D=W.keyExpiresInSeconds?Number(W.keyExpiresInSeconds)*1E3+(0,g.a8)():null;Q&&x&&D&&(this.B=new fTs(Q,x,D));W.onesieUstreamerConfig&&(this.onesieUstreamerConfig=w5(W.onesieUstreamerConfig)||void 0);this.baseUrl=W.baseUrl}};
bA=function(){this.data=new Uint8Array(2048);this.pos=0;SC||(SC=dF("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))};
sT=function(Q,W){Q.add(W==null||isNaN(W)?0:W+1)};
zs=function(Q){this.B=this.U=0;this.alpha=Math.exp(Math.log(.5)/Q)};
kh=function(Q){this.U=Q===void 0?15:Q;this.values=new Float64Array(176);this.B=new Float64Array(11);this.D=new Float64Array(16)};
X4=function(Q,W,x,D){x=x===void 0?.5:x;D=D===void 0?0:D;this.resolution=W;this.U=0;this.D=!1;this.jM=!0;this.B=Math.round(Q*this.resolution);this.values=Array(this.B);for(Q=0;Q<this.B;Q++)this.values[Q]=Infinity;this.L=rAh(this);this.N=x;this.X=D};
rAh=function(Q){for(var W=Array(Q.B),x=0;x<Q.B;x++)W[x]=x;return W};
oO=function(Q,W,x){g.N.call(this);this.policy=Q;this.U=W;this.L_=x;this.F3=this.eZ=0;this.pS=-1;this.KS=this.L=0;this.uj=!1;this.interruptions=[];this.N=[{stamp:0,net:0,max:0}];this.X3=this.X=(0,g.a8)();this.S=new X4(4,1,.6,.4);this.fS=new X4(4,1,.6,.4);this.G=new X4(20,1,.5,.4);Q.pS?this.D=new kh(Q.B):Q.U?this.D=new zs(Q.B):this.D=new X4(Q.B,20,.5,.4);this.LS=new X4(5,1,.25);this.T=new X4(30,1,.5);Q=g.qW("yt-player-bandwidth")||{};W=this.policy.D;if(Q.byterate>0)W=Q.byterate,this.uj=!0;else{var D;
x=(((D=navigator.connection)==null?void 0:D.downlink)||0)*64*1024;x>0&&(W=x,this.uj=!0)}this.D.w5(this.policy.X,W);Q.delay>0&&this.S.w5(1,Math.min(Q.delay,2));Q.stall>0&&this.G.w5(1,Q.stall);Q.init>0&&(this.X3=Math.min(Q.init,this.X3));Q.interruptions&&(this.N=this.N.concat(Q.interruptions),this.N.length>16&&this.N.pop());this.pS=(0,g.a8)();this.policy.G>0&&(this.g7=new g.O3(this.s3,this.policy.G,this),g.y(this,this.g7),this.g7.start())};
uA=function(Q,W,x,D){Q.D.w5(D===void 0?W:D,x/W);Q.X=(0,g.a8)()};
TEQ=function(Q){Q.L||(Q.L=(0,g.a8)());Q.policy.T&&(Q.X=(0,g.a8)())};
Ozv=function(Q,W){if(Q.L){var x=W-Q.L;if(x<6E4){if(x>1E3){var D=Q.interruptions;D.push(Math.ceil(x));D.sort(function(K,l){return l-K});
D.length>16&&D.pop()}Q.KS+=x}}Q.L=W};
Yh=function(Q,W,x,D,K,l){l=l===void 0?!1:l;Q.LS.w5(W,x/W);Q.X=(0,g.a8)();K||Q.T.w5(1,W-D);l||(Q.L=0);Q.pS>-1&&(0,g.a8)()-Q.pS>3E4&&Eas(Q)};
nO=function(Q,W,x){W=Math.max(W,Q.U.B);Q.G.w5(1,x/W)};
Vv=function(Q){Q=Q.S.iS()+Q.fS.iS()||0;Q=isNaN(Q)?.5:Q;return Q=Math.min(Q,5)};
PL=function(Q,W,x){isNaN(x)||(Q.F3+=x);isNaN(W)||(Q.eZ+=W)};
vL=function(Q){Q=Q.D.iS();return Q>0?Q:1};
CO=function(Q,W,x){W=W===void 0?!1:W;x=x===void 0?1048576:x;var D=vL(Q);D=1/((Q.G.iS()||0)*Q.policy.uj+1/D);var K=Q.LS.iS();K=K>0?K:1;var l=Math.max(D,K);Q.policy.L>0&&K<D&&(l=Math.min(Q.policy.L,1),l=(1-l)*D+l*K);if(!W)return l;W=1E-9+Vv(Q);x=l*Math.min(1,x/(l*W));Q.policy.N||(Q=((Q.T.percentile(.98)||0)-1)/2,Q=Math.max(0,Math.min(1,Q)),x*=1-.5*Q);return x};
FUF=function(Q){var W={delay:Vv(Q),stall:Q.G.iS()||0,byterate:vL(Q),init:Q.X3},x=Q.N[0];x.stamp=Math.round(Q.X/36E5)*36E5;x.net=Math.ceil(Q.KS);x.max=Q.interruptions[0]||0;W.interruptions=Q.N;return W};
Eas=function(Q){g.Ud("yt-player-bandwidth",FUF(Q),2592E3);Q.pS=(0,g.a8)();Q.uj=!0};
JC=function(Q){return(0,g.a8)()-Q.X>=4E3};
t_D=function(Q){this.experiments=Q;this.B=17;this.D=13E4;this.X=.5;this.U=!1;this.pS=this.j("html5_use_histogram_for_bandwidth");this.N=!1;this.L=g.X0(this.experiments,"html5_auxiliary_estimate_weight");this.uj=g.X0(this.experiments,"html5_stall_factor")||1;this.G=g.X0(this.experiments,"html5_check_for_idle_network_interval_ms");this.S=this.experiments.ij("html5_trigger_loader_when_idle_network");this.T=this.experiments.ij("html5_sabr_fetch_on_idle_network_preloaded_players")};
Wma=function(Q,W){Q=Q===void 0?{}:Q;W=W===void 0?{}:W;g.N.call(this);var x=this;this.values=Q;this.iT=W;this.U={};this.D=this.B=0;this.N=new g.O3(function(){Qez(x)},1E4);
g.y(this,this.N)};
pO=function(Q,W){xEl(Q,W);return Q.values[W]&&Q.iT[W]?Q.values[W]/Math.pow(2,Q.B/Q.iT[W]):0};
xEl=function(Q,W){Q.values[W]||(W=Iu1(),Q.values=W.values||{},Q.iT=W.halfLives||{},Q.U=W.values?Object.assign({},W.values):{})};
Qez=function(Q){var W=Iu1();if(W.values){W=W.values;for(var x={},D=g.V(Object.keys(Q.values)),K=D.next();!K.done;K=D.next())K=K.value,W[K]&&Q.U[K]&&(Q.values[K]+=W[K]-Q.U[K]),x[K]=pO(Q,K);Q.U=x}W=Q.iT;x={};x.values=Q.U;x.halfLives=W;g.Ud("yt-player-memory",x,2592E3)};
eC=function(Q,W,x,D,K){g.N.call(this);this.webPlayerContextConfig=W;this.TH=D;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Qx=this.Y6=this.O3=this.SU=this.userDisplayName=this.userDisplayImage=this.eK="";this.B={};this.WN={};this.controlsType="0";this.UT=NaN;this.tf=!1;this.QN=(0,g.a8)();this.Gn=0;this.nt=this.rz=!1;this.b$=!0;this.preferGapless=this.h_=this.kX=this.D=this.t_=this.Ke=!1;this.Vd=[];this.J2=!1;Q=Q?g.HZ(Q):{};W&&W.csiPageType&&(this.csiPageType=W.csiPageType);W&&W.csiServiceName&&
(this.csiServiceName=W.csiServiceName);W&&W.preferGapless&&(this.preferGapless=W.preferGapless);this.experiments=new AAa(W?W.serializedExperimentIds:Q.fexp,W?W.serializedExperimentFlags:Q.fflags);this.forcedExperiments=W?W.serializedForcedExperimentIds:jY("",Q.forced_experiments)||void 0;this.cspNonce=(W==null?0:W.cspNonce)?W.cspNonce:jY("",Q.csp_nonce);this.j("web_player_deprecated_uvr_killswitch");try{var l=document.location.toString()}catch(T){l=""}this.IU=l;this.ancestorOrigins=(D=window.location.ancestorOrigins)?
Array.from(D):[];this.N=D0(!1,W?W.isEmbed:Q.is_embed);if(W&&W.device){if(D=W.device,D.androidOsExperience&&(this.B.caoe=""+D.androidOsExperience),D.androidPlayServicesVersion&&(this.B.capsv=""+D.androidPlayServicesVersion),D.brand&&(this.B.cbrand=D.brand),D.browser&&(this.B.cbr=D.browser),D.browserVersion&&(this.B.cbrver=D.browserVersion),D.cobaltReleaseVehicle&&(this.B.ccrv=""+D.cobaltReleaseVehicle),this.B.c=D.interfaceName||"WEB",this.B.cver=D.interfaceVersion||"html5",D.interfaceTheme&&(this.B.ctheme=
D.interfaceTheme),this.B.cplayer=D.interfacePlayerType||"UNIPLAYER",D.model&&(this.B.cmodel=D.model),D.network&&(this.B.cnetwork=D.network),D.os&&(this.B.cos=D.os),D.osVersion&&(this.B.cosver=D.osVersion),D.platform&&(this.B.cplatform=D.platform),l=Qv(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),l==="all"||l==="once")D.chipset&&(this.WN.cchip=D.chipset),D.cobaltAppVersion&&(this.WN.ccappver=D.cobaltAppVersion),D.firmwareVersion&&(this.WN.cfrmver=D.firmwareVersion),D.deviceYear&&(this.WN.crqyear=
D.deviceYear)}else this.B.c=Q.c||"web",this.B.cver=Q.cver||"html5",this.B.cplayer="UNIPLAYER";this.loaderUrl=W?this.N||DE2(this)&&W.loaderUrl?W.loaderUrl||"":this.IU:this.N||DE2(this)&&Q.loaderUrl?jY("",Q.loaderUrl):this.IU;this.N&&g.g4("yt.embedded_player.embed_url",this.loaderUrl);this.G=Q8(this.loaderUrl,Km5);D=this.loaderUrl;var M=M===void 0?!1:M;this.xg=ts(Q8(D,l2F),D,M,"Trusted Ad Domain URL");this.yA=D0(!1,Q.privembed);this.protocol=this.IU.indexOf("http:")===0?"http":"https";this.n2=WP((W?
W.customBaseYoutubeUrl:Q.BASE_YT_URL)||"")||WP(this.IU)||this.protocol+"://www.youtube.com/";M=W?W.eventLabel:Q.el;D="detailpage";M==="adunit"?D=this.N?"embedded":"detailpage":M==="embedded"||this.G?D=Kw(D,M,je2):M&&(D="embedded");this.fS=D;cSQ();M=null;D=W?W.playerStyle:Q.ps;l=g.FH(MBl,D);!D||l&&!this.G||(M=D);this.playerStyle=M;this.X=g.FH(MBl,this.playerStyle);this.houseBrandUserStatus=W==null?void 0:W.houseBrandUserStatus;this.pS=this.X&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";
this.HF=!this.pS;this.X3=D0(!1,Q.disableplaybackui);this.disablePaidContentOverlay=D0(!1,W==null?void 0:W.disablePaidContentOverlay);this.disableSeek=D0(!1,W==null?void 0:W.disableSeek);this.enableSpeedOptions=(W==null?void 0:W.enableSpeedOptions)||(A7().defaultPlaybackRate?hC||g.tS||xh?g.gr&&pT("20")||g.UC&&pT("4")||g.aO&&pT("11")||TG():!(g.aO&&!g.yk("chrome")||hC||g.yk("android")||g.yk("silk")):!1);this.eS=D0(!1,Q.enable_faster_speeds);var w;this.supportsVarispeedExtendedFeatures=(w=W==null?void 0:
W.supportsVarispeedExtendedFeatures)!=null?w:!1;this.U=D0(this.playerStyle==="blazer",Q.is_html5_mobile_device||W&&W.isMobileDevice);this.eZ=F5()||QB();this.zz=this.j("mweb_allow_background_playback")?!1:this.U&&!this.X;this.g7=$d();this.X_=g.Gs;var S;this.bk=!!(W==null?0:(S=W.embedsHostFlags)==null?0:S.optOutApiDeprecation);var b;this.F$=!!(W==null?0:(b=W.embedsHostFlags)==null?0:b.allowPfpImaIntegration);this.lW=this.j("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var z;W?W.hideInfo!==
void 0&&(z=!W.hideInfo):z=Q.showinfo;this.Zf=g.d5(this)&&!this.bk||D0(!iA(this)&&!AC(this)&&!this.X,z);this.BM=W?!!W.mobileIphoneSupportsInlinePlayback:D0(!1,Q.playsinline);w=this.U&&HL&&UT!=null&&UT>0&&UT<=2.3;S=W?W.useNativeControls:Q.use_native_controls;this.S=g.d5(this)&&this.U;b=this.U&&!this.S;S=g.q4(this)||!w&&D0(b,S)?"3":"1";this.disableOrganicUi=!(W==null||!W.disableOrganicUi);b=W?W.controlsType:Q.controls;this.controlsType=this.disableOrganicUi?"0":b!=="0"&&b!==0?S:"0";this.h4=this.U;this.color=
Kw("red",W?W.progressBarColor:Q.color,RLs);this.mD=this.controlsType==="3";this.Sk=!this.N;this.Tc=(S=!this.Sk&&!AC(this)&&!this.pS&&!this.X&&!iA(this))&&!this.mD&&this.controlsType==="1";this.RQ=g.BL(this)&&S&&this.controlsType==="0"&&!this.Tc&&!(W==null?0:W.embedsEnableEmc3ds);this.jS=this.Jx=w;this.cD=(this.controlsType==="3"||this.U||D0(!1,Q.use_media_volume))&&!this.S;this.xI=Ok&&!g.nP(601)?!1:!0;this.Ep=this.N||!1;this.I5=AC(this)?"":(this.loaderUrl||Q.post_message_origin||"").substring(0,128);
this.widgetReferrer=jY("",W?W.widgetReferrer:Q.widget_referrer);var k;W?W.disableCastApi&&(k=!1):k=Q.enablecastapi;k=!this.G||D0(!0,k);w=!0;W&&W.disableMdxCast&&(w=!1);this.oH=this.j("enable_cast_for_web_unplugged")&&g.$h(this)&&w||g.Il(this)&&w||k&&w&&this.controlsType==="1"&&!this.U&&(AC(this)||g.BL(this)||g.IO(this));this.EX=!!window.document.pictureInPictureEnabled||Bl();k=W?!!W.supportsAutoplayOverride:D0(!1,Q.autoplayoverride);this.ra=!(this.U&&!g.d5(this))&&!g.yk("nintendo wiiu")||k;this.YY=
(W?!!W.enableMutedAutoplay:D0(!1,Q.mutedautoplay))&&!1;k=(AC(this)||iA(this))&&this.playerStyle==="blazer";this.wx=W?!!W.disableFullscreen:!D0(!0,Q.fs);w=g.SY(g.mr(this))&&g.d5(this);this.fn=!this.wx&&(k||g.uy())&&!w;this.Dx=this.j("html5_picture_in_picture_logging_onresize");this.xG=this.j("html5_picture_in_picture_blocking_onresize");this.qH=this.j("html5_picture_in_picture_blocking_ontimeupdate");this.FV=this.j("html5_picture_in_picture_blocking_document_fullscreen");this.pu=this.j("html5_picture_in_picture_blocking_standard_api");
k=eL()&&pT(58)&&!QB();w=LX||typeof MediaSource==="undefined";this.Ct=this.j("uniplayer_block_pip")&&(k||w)||this.xG||this.qH||this.pu;k=g.d5(this)&&!this.bk;var X;W?W.disableRelatedVideos!==void 0&&(X=!W.disableRelatedVideos):X=Q.rel;this.gE=k||D0(!this.X,X);this.m1=D0(!1,W?W.enableContentOwnerRelatedVideos:Q.co_rel);this.T=QB()&&UT>0&&UT<=4.4?"_top":"_blank";this.jE=g.IO(this);this.A4=D0(this.playerStyle==="blazer",W?W.enableCsiLogging:Q.enablecsi);switch(this.playerStyle){case "blogger":X="bl";
break;case "gmail":X="gm";break;case "gac":X="ga";break;case "ads-preview":X="ap";break;case "books":X="gb";break;case "docs":case "flix":X="gd";break;case "duo":X="gu";break;case "google-live":X="gl";break;case "google-one":X="go";break;case "play":X="gp";break;case "chat":X="hc";break;case "hangouts-meet":X="hm";break;case "photos-edu":case "picasaweb":X="pw";break;default:X="yt"}this.uj=X;this.F3=jY("",W?W.authorizedUserIndex:Q.authuser);this.Cn=g.d5(this)&&(this.yA||!Gd5()||this.eZ);var u;W?W.disableWatchLater!==
void 0&&(u=!W.disableWatchLater):u=Q.showwatchlater;this.vZ=((X=!this.Cn)||!!this.F3&&X)&&D0(!this.pS,this.G?u:void 0);this.b6=W?W.isMobileDevice||!!W.disableKeyboardControls:D0(!1,Q.disablekb);this.loop=D0(!1,Q.loop);this.pageId=jY("",W?W.initialDelegatedSessionId:Q.pageid);this.La=D0(!0,Q.canplaylive);this.Pt=D0(!1,Q.livemonitor);this.disableSharing=D0(this.X,W?W.disableSharing:Q.ss);(u=W&&this.j("fill_video_container_size_override_from_wpcc")?W.videoContainerOverride:Q.video_container_override)?
(X=u.split("x"),X.length!==2?u=null:(u=Number(X[0]),X=Number(X[1]),u=isNaN(u)||isNaN(X)||u*X<=0?null:new g.oZ(u,X))):u=null;this.qy=u;this.mute=W?!!W.startMuted:D0(!1,Q.mute);this.storeUserVolume=!this.mute&&D0(this.controlsType!=="0",W?W.storeUserVolume:Q.store_user_volume);u=W?W.annotationsLoadPolicy:Q.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:Kw(void 0,u,N4);this.captionsLanguagePreference=W?W.captionsLanguagePreference||"":jY("",Q.cc_lang_pref);u=Kw(2,W?W.captionsLanguageLoadPolicy:
Q.cc_load_policy,N4);this.controlsType==="3"&&u===2&&(u=3);this.Vj=u;this.Kn=W?W.hl||"en_US":jY("en_US",Q.hl);this.region=W?W.contentRegion||"US":jY("US",Q.cr);this.hostLanguage=W?W.hostLanguage||"en":jY("en",Q.host_language);this.YJ=!this.yA&&Math.random()<g.X0(this.experiments,"web_player_api_logging_fraction");this.s3=!this.yA;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(W==null||!W.deviceIsAudioOnly);this.UT=ly(this.UT,Q.ismb);this.HF?(u=Q.vss_host||"s.youtube.com",u==="s.youtube.com"&&
(u=cL(this.n2)||"www.youtube.com")):u="video.google.com";this.u$=u;g5(this,Q,!0);this.LS=new jC;g.y(this,this.LS);X=W?W.innertubeApiKey:jY("",Q.innertube_api_key);k=W?W.innertubeApiVersion:jY("",Q.innertube_api_version);u=W?W.innertubeContextClientVersion:jY("",Q.innertube_context_client_version);X=g.TK("INNERTUBE_API_KEY")||X;k=g.TK("INNERTUBE_API_VERSION")||k;w=g.TK("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");S=Fm(this);b=typeof this.B.c==="number"?Number(this.B.c):Object.keys(wjO).indexOf(this.B.c);
this.W9={innertubeApiKey:X,innertubeApiVersion:k,sM:w,yL:S,uZ:b,innertubeContextClientVersion:g.TK("INNERTUBE_CONTEXT_CLIENT_VERSION")||u,Dr:this.hostLanguage,FK:this.region,BQ:g.TK("INNERTUBE_HOST_OVERRIDE")||"",UO:!!g.TK("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),HS5:!!g.TK("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.UG=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.L=new WL(this.experiments,this.j("html5_force_hfr_support")?!0:G_(this)||Ll()||A24()||Sjn(this),g.UC&&g.nP(56)||
g.gr&&g.nP(54)||this.j("html5_force_vp9_subsample_encryption_support")||Sjn(this));u=g.dO(this);X=this.UT;k=this.experiments;w=new t_D(k);u&&(w.U=!0,w.X=.1);k.ij("html5_media_time_weight")&&(w.U=!1);X&&(w.D=X/8);w.N=cc()>=480;this.schedule=new oO(w,new iza(this.experiments),K);g.y(this,this.schedule);var Y;this.enableSafetyMode=(Y=W==null?void 0:W.initialEnableSafetyMode)!=null?Y:D0(!1,Q.enable_safety_mode);K=this.X3?!1:AC(this)&&this.playerStyle!=="blazer";var v;W?W.disableAutonav!=null&&(v=!W.disableAutonav):
v=Q.allow_autonav;this.hn=D0(K,!this.pS&&v);this.sendVisitorIdHeader=W?!!W.sendVisitorIdHeader:D0(!1,Q.send_visitor_id_header);var J;this.playerStyle==="docs"&&(W?J=W.disableNativeContextMenu:J=Q.disable_native_context_menu);this.disableNativeContextMenu=D0(!1,J);this.X$=G_(this)&&this.j("enable_skip_intro_button");this.embedConfig=jY("",W?W.serializedEmbedConfig:Q.embed_config);this.KS=w3(Q,g.d5(this));this.D=this.KS==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(W==null||!W.embedsErrorLinks);
this.IH=D0(!1,Q.full_window);var h;this.SZ=!((h=this.webPlayerContextConfig)==null?0:h.chromeless);var G;this.livingRoomAppMode=Kw("LIVING_ROOM_APP_MODE_UNSPECIFIED",Q.living_room_app_mode||(W==null?void 0:(G=W.device)==null?void 0:G.livingRoomAppMode),b$1);var H;v=ly(NaN,W==null?void 0:(H=W.device)==null?void 0:H.deviceYear);isNaN(v)||(this.deviceYear=v);this.transparentBackground=W?!!W.transparentBackground:D0(!1,Q.transparent_background);this.showMiniplayerButton=W?!!W.showMiniplayerButton:D0(!1,
Q.show_miniplayer_button);var I;g.d5(this)&&!(W==null?0:(I=W.embedsHostFlags)==null?0:I.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=W?!!W.externalFullscreen:D0(!1,Q.external_fullscreen);this.showMiniplayerUiWhenMinimized=W?!!W.showMiniplayerUiWhenMinimized:D0(!1,Q.use_miniplayer_ui);var c;this.b$=(c=Q.show_loop_video_toggle)!=null?c:!0;this.Br=Math.random()<1E-4;this.Wz=Q.onesie_hot_config||(W==null?0:W.onesieHotConfig)?new LU4(Q.onesie_hot_config,W==null?void 0:W.onesieHotConfig):
void 0;this.isTectonic=W?!!W.isTectonic:!!Q.isTectonic;this.playerCanaryState=x;this.playerCanaryStage=W==null?void 0:W.canaryStage;this.uG=new Wma;g.y(this,this.uG);this.t_=D0(!1,Q.force_gvi);this.datasyncId=(W==null?void 0:W.datasyncId)||g.TK("DATASYNC_ID");this.im=g.TK("LOGGED_IN",!1);this.KR=(W==null?void 0:W.allowWoffleManagement)||!1;this.CR=Infinity;this.P9=NaN;this.livingRoomPoTokenId=W==null?void 0:W.livingRoomPoTokenId;this.j("html5_high_res_logging_always")?this.kX=!0:this.kX=Math.random()*
100<g.X0(this.experiments,"html5_high_res_logging_percent");var O;this.h_=!!(W==null?0:(O=W.embedsHostFlags)==null?0:O.allowRcat);this.Pi=!g.$h(this)&&!yv(this)};
g.mr=function(Q){var W,x;if(!((W=Q.webPlayerContextConfig)==null?0:(x=W.embedsHostFlags)==null?0:x.enableLiteUx)||Q.yA||Q.X||Q.D||Q.KS==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";Q=g.X0(Q.experiments,"embeds_web_lite_mode");return Q===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":Q>=0&&Q<se5.length?se5[Q]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
g5=function(Q,W,x){x=x===void 0?!1:x;Q.Y6=jY(Q.Y6,W.video_id);Q.O3=jY(Q.O3,W.eventid);Q.O3&&(P$=Q.O3);for(var D=[],K=g.V(Object.keys(zL5)),l=K.next();!l.done;l=K.next()){l=zL5[l.value];var M=W[l];M!=null&&(M!==Q.B[l]&&D.push(l),Q.B[l]=M)}!x&&D.length>0&&Q.Br&&(D.sort(),g.Bp(new g.Lw("Player client parameters changed after startup",D)));Q.userAge=ly(Q.userAge,W.user_age);Q.eK=jY(Q.eK,W.user_display_email);Q.userDisplayImage=jY(Q.userDisplayImage,W.user_display_image);g.Dk(Q.userDisplayImage)||(Q.userDisplayImage=
"");Q.userDisplayName=jY(Q.userDisplayName,W.user_display_name);Q.SU=jY(Q.SU,W.user_gender);Q.csiPageType=jY(Q.csiPageType,W.csi_page_type);Q.csiServiceName=jY(Q.csiServiceName,W.csi_service_name);Q.A4=D0(Q.A4,W.enablecsi);Q.pageId=jY(Q.pageId,W.pageid);if(x=W.enabled_engage_types)Q.enabledEngageTypes=new Set(x.split(","));W.living_room_session_po_token&&(Q.gH=W.living_room_session_po_token.toString())};
fO=function(Q,W){return!Q.X&&eL()&&pT(55)&&Q.controlsType==="3"&&!W};
g.Zj=function(Q){Q=cL(Q.n2);return Q==="www.youtube-nocookie.com"?"www.youtube.com":Q};
LO=function(Q,W,x){return Q.protocol+"://i1.ytimg.com/vi/"+W+"/"+(x||"hqdefault.jpg")};
r5=function(Q){return AC(Q)&&!g.$h(Q)};
g.q4=function(Q){return Q.j("html5_local_playsinline")?Ok&&!g.nP(602)&&!("playsInline"in A7()):Ok&&!Q.BM||g.yk("nintendo wiiu")?!0:!1};
Fm=function(Q){return Q.B.c};
g.dO=function(Q){return/^TVHTML5/.test(Fm(Q))};
g.Ts=function(Q){return Fm(Q)==="TVHTML5"};
DE2=function(Q){return Fm(Q)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
Sjn=function(Q){return Q.B.cmodel==="CHROMECAST ULTRA/STEAK"||Q.B.cmodel==="CHROMECAST/STEAK"};
g.OT=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
G_=function(Q){return/web/i.test(Fm(Q))};
g.ET=function(Q){return Fm(Q).toUpperCase()==="WEB"};
yv=function(Q){return Fm(Q)==="WEB_KIDS"};
g.$h=function(Q){return Fm(Q)==="WEB_UNPLUGGED"};
F4=function(Q){return Fm(Q)==="TVHTML5_UNPLUGGED"};
g.aE=function(Q){return g.$h(Q)||Fm(Q)==="TV_UNPLUGGED_CAST"||F4(Q)};
g.Il=function(Q){return Fm(Q)==="WEB_REMIX"};
g.tC=function(Q){return Fm(Q)==="WEB_EMBEDDED_PLAYER"};
g.WW=function(Q){return(Q.deviceIsAudioOnly||!g.UC||LX||Q.controlsType==="3"?!1:g.tS?Q.N&&g.nP(51):!0)||(Q.deviceIsAudioOnly||!g.gr||LX||Q.controlsType==="3"?!1:g.tS?Q.N&&g.nP(48):g.nP(38))||(Q.deviceIsAudioOnly||!g.aO||LX||Q.controlsType==="3"?!1:g.tS?Q.N&&g.nP(37):g.nP(27))||!Q.deviceIsAudioOnly&&g.Q7&&!UnD()&&g.nP(11)||!Q.deviceIsAudioOnly&&g.nX&&g.nP("604.4")};
kEv=function(Q){if(g.BL(Q)&&HL)return!1;if(g.gr){if(!g.nP(47)||!g.nP(52)&&g.nP(51))return!1}else if(g.nX)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
oes=function(Q,W){return Q.enabledEngageTypes.has(W.toString())||Xj2.includes(W)};
AC=function(Q){return Q.fS==="detailpage"};
g.BL=function(Q){return Q.fS==="embedded"};
xS=function(Q){return Q.fS==="leanback"};
iA=function(Q){return Q.fS==="adunit"||Q.playerStyle==="gvn"};
g.IO=function(Q){return Q.fS==="profilepage"};
g.d5=function(Q){return Q.N&&g.BL(Q)&&!iA(Q)&&!Q.X};
Dd=function(Q){if(!Q.userDisplayImage)return"";var W=Q.userDisplayImage.split("/");if(W.length===5)return Q=W[W.length-1].split("="),Q[1]="s20-c",W[W.length-1]=Q.join("="),W.join("/");if(W.length===8)return W.splice(7,0,"s20-c"),W.join("/");if(W.length===9)return W[7]+="-s20-c",W.join("/");g.Bp(new g.Lw("Profile image not a FIFE URL.",Q.userDisplayImage));return Q.userDisplayImage};
g.K1=function(Q){var W=g.Zj(Q);uc1.includes(W)&&(W="www.youtube.com");return Q.protocol+"://"+W};
g.lb=function(Q,W){W=W===void 0?"":W;if(Q.TH){var x=new th,D,K=Q.TH();K.signedOut?D="":K.token?D=K.token:K.pendingResult.then(function(l){K.signedOut?x.resolve(""):x.resolve(l.token)},function(l){g.Bp(new g.Lw("b189348328_oauth_callback_failed",{error:l}));
x.resolve(W)});
return D!==void 0?Uk(D):new AS(x)}return Uk(W)};
jQ=function(Q,W){W=W===void 0?"":W;return Q.im?b3(!0):Yv(u3(b3(g.lb(Q,W)),function(x){return b3(!!x)}),function(){return b3(!1)})};
cL=function(Q){var W=g.$X(Q);return(Q=Number(g.B_(4,Q))||null)?W+":"+Q:W};
Mo=function(Q,W){W=W===void 0?!1:W;var x=f3[Q],D=Yj5[x],K=nea[Q];if(!K||!D)return null;W=new gw(W?K.height:K.width,W?K.width:K.height,K.fps);D=Xm(D,W,x);return new ZC(Q,D,{video:W,a5:K.bitrate/8})};
PP5=function(Q){var W=Yj5[f3[Q]],x=VBF[Q];return x&&W?new ZC(Q,W,{audio:new mQ(x.audioSampleRate,x.numChannels)}):null};
Rf=function(Q){this.B=Q};
w0=function(Q,W,x,D){if(x)return Hb();x={};var K=A7();W=g.V(W);for(var l=W.next();!l.done;l=W.next())if(l=l.value,Q.canPlayType(K,l.getInfo().mimeType)||D){var M=l.B.video.quality;if(!x[M]||x[M].getInfo().i6())x[M]=l}Q=[];x.auto&&Q.push(x.auto);D=g.V(y$);for(K=D.next();!K.done;K=D.next())(K=x[K.value])&&Q.push(K);return Q.length?Uk(Q):Hb()};
vez=function(Q){this.itag=Q.itag;this.url=Q.url;this.codecs=Q.codecs;this.width=Q.width;this.height=Q.height;this.fps=Q.fps;this.bitrate=Q.bitrate;var W;this.U=((W=Q.audioItag)==null?void 0:W.split(","))||[];this.Mo=Q.Mo;this.Qp=Q.Qp||"";this.RW=Q.RW;this.audioChannels=Q.audioChannels;this.B=""};
CPl=function(Q,W,x,D){W=W===void 0?!1:W;x=x===void 0?!0:x;D=D===void 0?{}:D;var K={};Q=g.V(Q);for(var l=Q.next();!l.done;l=Q.next()){l=l.value;if(W&&MediaSource&&MediaSource.isTypeSupported){var M=l.type;l.audio_channels&&(M=M+"; channels="+l.audio_channels);if(!MediaSource.isTypeSupported(M)){D[l.itag]="tpus";continue}}if(x||!l.drm_families||l.eotf!=="smpte2084"&&l.eotf!=="arib-std-b67"){M=void 0;var w={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},S=l.type.match(/codecs="([^"]*)"/);
S=S?S[1]:"";l.audio_track_id&&(M=new g.wr(l.name,l.audio_track_id,!!l.is_default));var b=l.eotf;l=new vez({itag:l.itag,url:l.url,codecs:S,width:Number(l.width),height:Number(l.height),fps:Number(l.fps),bitrate:Number(l.bitrate),audioItag:l.audio_itag,Mo:b?w[b]:void 0,Qp:l.drm_families,RW:M,audioChannels:Number(l.audio_channels)});K[l.itag]=K[l.itag]||[];K[l.itag].push(l)}else D[l.itag]="enchdr"}return K};
JKF=function(Q,W,x,D,K){this.D=Q;this.U=W;this.L=x;this.cpn=D;this.X=K;this.N=0;this.B=""};
pj5=function(Q,W){Q.D.some(function(x){var D;return((D=x.RW)==null?void 0:D.getId())===W});
Q.B=W};
SQ=function(Q,W,x){Q.cpn&&(W=g.ya(W,{cpn:Q.cpn}));x&&(W=g.ya(W,{paired:x}));return W};
hL5=function(Q,W){Q=Q.itag.toString();W!==null&&(Q+=W.itag.toString());return Q};
a2Q=function(Q){for(var W=[],x=[],D=g.V(Q.U),K=D.next();!K.done;K=D.next())K=K.value,K.bitrate<=Q.N?W.push(K):x.push(K);W.sort(function(l,M){return M.bitrate-l.bitrate});
x.sort(function(l,M){return l.bitrate-M.bitrate});
Q.U=W.concat(x)};
bb=function(Q,W,x){this.B=Q;this.U=W;this.expiration=x;this.Db=null};
GEQ=function(Q,W){if(!(LX||rm()||Zs()))return null;Q=CPl(W,Q.j("html5_filter_fmp4_in_hls"));if(!Q)return null;W=[];for(var x={},D=g.V(Object.keys(Q)),K=D.next();!K.done;K=D.next()){K=g.V(Q[K.value]);for(var l=K.next();!l.done;l=K.next()){var M=l.value;M.RW&&(l=M.RW.getId(),x[l]||(M=new g.KN(l,M.RW),x[l]=M,W.push(M)))}}return W.length>0?W:null};
UEl=function(Q,W,x,D,K,l,M){if(!(LX||rm()||Zs()))return Hb();var w={},S=dEQ(x),b=CPl(x,Q.j("html5_filter_fmp4_in_hls"),Q.L.G,w);if(!b)return M({noplst:1}),Hb();i$a(b);x={};var z=(x.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",x),k;x=[];var X=[],u=[],Y=null,v="";D=D&&D.match(/hls_timedtext_playlist/)?new vez({itag:"0",url:D,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,RW:new g.wr("English","en",!1)}):null;for(var J=g.V(Object.keys(b)),h=J.next();!h.done;h=J.next())if(h=h.value,!Q.j("html5_disable_drm_hfr_1080")||
h!=="383"&&h!=="373"){h=g.V(b[h]);for(var G=h.next();!G.done;G=h.next())if(G=G.value,G.width){for(var H=g.V(G.U),I=H.next();!I.done;I=H.next())if(I=I.value,b[I]){G.B=I;break}G.B||(G.B=AK4(b,G));if(H=b[G.B])if(x.push(G),G.Qp==="fairplay"&&(k=z),I="",G.Mo==="PQ"?I="smpte2084":G.Mo==="HLG"&&(I="arib-std-b67"),I&&(v=I),u.push(H$D(H,[G],D,l,G.itag,G.width,G.height,G.fps,S,void 0,void 0,k,I)),!Y||G.width*G.height*G.fps>Y.width*Y.height*Y.fps)Y=G}else X.push(G)}else w[h]="disdrmhfr";u.reduce(function(c,
O){return O.getInfo().isEncrypted()&&c},!0)&&(k=z);
K=Math.max(K,0);z=Y||{};b=z.fps===void 0?0:z.fps;Y=z.width===void 0?0:z.width;z=z.height===void 0?0:z.height;J=Q.j("html5_native_audio_track_switching");u.push(H$D(X,x,D,l,"93",Y,z,b,S,"auto",K,k,v,J));Object.entries(w).length&&M(w);return w0(Q.L,u,fO(Q,W),!1)};
H$D=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u){for(var Y=0,v="",J=g.V(Q),h=J.next();!h.done;h=J.next())h=h.value,v||(v=h.itag),h.audioChannels&&h.audioChannels>Y&&(Y=h.audioChannels,v=h.itag);K=new ZC(K,"application/x-mpegURL",{audio:new mQ(0,Y),video:new gw(l,M,w,null,void 0,b,void 0,X),Qp:k,jb:v});Q=new JKF(Q,W,x?[x]:[],D,!!u);Q.N=z?z:1369843;return new bb(K,Q,S)};
dEQ=function(Q){Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())if(W=W.value,W.url&&(W=W.url.split("expire/"),!(W.length<=1)))return+W[1].split("/")[0];return NaN};
AK4=function(Q,W){for(var x=g.V(Object.keys(Q)),D=x.next();!D.done;D=x.next()){D=D.value;var K=Q[D][0];if(!K.width&&K.Qp===W.Qp&&!K.audioChannels)return D}return""};
i$a=function(Q){for(var W=new Set,x=g.V(Object.values(Q)),D=x.next();!D.done;D=x.next())D=D.value,D.length&&(D=D[0],D.height&&D.codecs.startsWith("vp09")&&W.add(D.height));x=[];if(W.size){D=g.V(Object.keys(Q));for(var K=D.next();!K.done;K=D.next())if(K=K.value,Q[K].length){var l=Q[K][0];l.height&&W.has(l.height)&&!l.codecs.startsWith("vp09")&&x.push(K)}}W=g.V(x);for(x=W.next();!x.done;x=W.next())delete Q[x.value]};
sN=function(Q,W){this.B=Q;this.U=W};
qjD=function(Q,W,x,D){var K=[];x=g.V(x);for(var l=x.next();!l.done;l=x.next()){var M=l.value;if(M.url){l=new g.JW(M.url,!0);if(M.s){var w=l,S=M.sp,b=Hd2(decodeURIComponent(M.s));w.set(S,encodeURIComponent(b))}w=g.V(Object.keys(D));for(S=w.next();!S.done;S=w.next())S=S.value,l.set(S,D[S]);M=l9(M.type,M.quality,M.itag,M.width,M.height);K.push(new sN(M,l))}}return w0(Q.L,K,fO(Q,W),!1)};
zQ=function(Q,W){this.B=Q;this.U=W};
B2F=function(Q,W,x){var D=[];x=g.V(x);for(var K=x.next();!K.done;K=x.next())if((K=K.value)&&K.url){var l=l9(K.type,"medium","0");D.push(new zQ(l,K.url))}return w0(Q.L,D,fO(Q,W),!1)};
$Es=function(Q,W){var x=[],D=l9(W.type,"auto",W.itag);x.push(new zQ(D,W.url));return w0(Q.L,x,!1,!0)};
mEl=function(Q){return Q&&I25[Q]?I25[Q]:null};
N2a=function(Q){if(Q=Q.commonConfig)this.url=Q.url,this.urlQueryOverride=Q.urlQueryOverride,Q.ustreamerConfig&&(this.Ka=w5(Q.ustreamerConfig)||void 0)};
cKO=function(Q,W){var x;if(W=W==null?void 0:(x=W.watchEndpointSupportedOnesieConfig)==null?void 0:x.html5PlaybackOnesieConfig)Q.kL=new N2a(W)};
g.kS=function(Q){Q=Q===void 0?{}:Q;this.languageCode=Q.languageCode||"";this.languageName=Q.languageName||null;this.kind=Q.kind||"";this.name=Q.name===void 0?null:Q.name;this.displayName=Q.displayName||null;this.id=Q.id||null;this.B=Q.is_servable||!1;this.isTranslateable=Q.is_translateable||!1;this.url=Q.url||null;this.vssId=Q.vss_id||"";this.isDefault=Q.is_default||!1;this.translationLanguage=Q.translationLanguage||null;this.xtags=Q.xtags||"";this.captionId=Q.captionId||""};
g.of=function(Q){var W={languageCode:Q.languageCode,languageName:Q.languageName,displayName:g.XS(Q),kind:Q.kind,name:Q.name,id:Q.id,is_servable:Q.B,is_default:Q.isDefault,is_translateable:Q.isTranslateable,vss_id:Q.vssId};Q.xtags&&(W.xtags=Q.xtags);Q.captionId&&(W.captionId=Q.captionId);Q.translationLanguage&&(W.translationLanguage=Q.translationLanguage);return W};
g.ub=function(Q){return Q.translationLanguage?Q.translationLanguage.languageCode:Q.languageCode};
g.geD=function(Q){var W=Q.vssId;Q.translationLanguage&&W&&(W="t"+W+"."+g.ub(Q));return W};
g.XS=function(Q){var W=[];if(Q.displayName)W.push(Q.displayName);else{var x=Q.languageName||"";W.push(x);Q.kind==="asr"&&x.indexOf("(")===-1&&W.push(" (Automatic Captions)");Q.name&&W.push(" - "+Q.name)}Q.translationLanguage&&W.push(" >> "+Q.translationLanguage.languageName);return W.join("")};
Z$v=function(Q,W,x,D){Q||(Q=W&&yK1.hasOwnProperty(W)&&eLD.hasOwnProperty(W)?eLD[W]+"_"+yK1[W]:void 0);W=Q;if(!W)return null;Q=W.match(f2F);if(!Q||Q.length!==5)return null;if(Q=W.match(f2F)){var K=Number(Q[3]),l=[7,8,10,5,6];Q=!(Number(Q[1])===1&&K===8)&&l.indexOf(K)>=0}else Q=!1;return x||D||Q?W:null};
YS=function(Q,W){for(var x={},D=g.V(Object.keys(LmO)),K=D.next();!K.done;K=D.next()){K=K.value;var l=W?W+K:K;l=Q[l+"_webp"]||Q[l];g.Dk(l)&&(x[LmO[K]]=l)}return x};
n1=function(Q){var W={};if(!Q||!Q.thumbnails)return W;Q=Q.thumbnails.filter(function(w){return!!w.url});
Q.sort(function(w,S){return w.width-S.width||w.height-S.height});
for(var x=g.V(Object.keys(rK4)),D=x.next();!D.done;D=x.next()){var K=Number(D.value);D=rK4[K];for(var l=g.V(Q),M=l.next();!M.done;M=l.next())if(M=M.value,M.width>=K){K=T24(M.url);g.Dk(K)&&(W[D]=K);break}}(Q=Q.pop())&&Q.width>=1280&&(Q=T24(Q.url),g.Dk(Q)&&(W["maxresdefault.jpg"]=Q));return W};
T24=function(Q){return Q.startsWith("//")?"https:"+Q:Q};
V7=function(Q){return Q&&Q.baseUrl||""};
PW=function(Q){Q=g.lY(Q);for(var W=g.V(Object.keys(Q)),x=W.next();!x.done;x=W.next()){x=x.value;var D=Q[x];Q[x]=Array.isArray(D)?D[0]:D}return Q};
O$z=function(Q,W){Q.botguardData=W.playerAttestationRenderer.botguardData;W=W.playerAttestationRenderer.challenge;W!=null&&(Q.lT=W)};
tB4=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next()){x=x.value;var D=x.interstitials.map(function(M){var w=g.e(M,Eev);if(w)return{is_yto_interstitial:!0,raw_player_response:w};if(M=g.e(M,Fma))return Object.assign({is_yto_interstitial:!0},Ds(M))});
D=g.V(D);for(var K=D.next();!K.done;K=D.next())switch(K=K.value,x.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":Q.interstitials=Q.interstitials.concat({time:0,playerVars:K,NW:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":Q.interstitials=Q.interstitials.concat({time:0x7ffffffffffff,playerVars:K,NW:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var l=Number(x.podConfig.timeToInsertAtMillis);Q.interstitials=Q.interstitials.concat({time:l,playerVars:K,
NW:l===0?5:7})}}};
QQv=function(Q,W){if(W=W.find(function(x){return!(!x||!x.tooltipRenderer)}))Q.tooltipRenderer=W.tooltipRenderer};
WFa=function(Q,W){W.subscribeCommand&&(Q.subscribeCommand=W.subscribeCommand);W.unsubscribeCommand&&(Q.unsubscribeCommand=W.unsubscribeCommand);W.addToWatchLaterCommand&&(Q.addToWatchLaterCommand=W.addToWatchLaterCommand);W.removeFromWatchLaterCommand&&(Q.removeFromWatchLaterCommand=W.removeFromWatchLaterCommand);W.getSharePanelCommand&&(Q.getSharePanelCommand=W.getSharePanelCommand)};
xBD=function(Q,W){W!=null?(Q.hx=W,Q.HZ=!0):(Q.hx="",Q.HZ=!1)};
vW=function(Q,W){this.type=Q||"";this.id=W||""};
g.C1=function(Q){return new vW(Q.substring(0,2),Q.substring(2))};
g.JQ=function(Q,W){this.Dp=Q;this.author="";this.hU=null;this.playlistLength=0;this.B=this.sessionData=null;this.T={};this.title="";if(W){this.author=W.author||W.playlist_author||"";this.title=W.playlist_title||"";if(Q=W.session_data)this.sessionData=Wb(Q,"&");var x;this.B=((x=W.thumbnail_ids)==null?void 0:x.split(",")[0])||null;this.T=YS(W,"playlist_");this.videoId=W.video_id||void 0;if(x=W.list)switch(W.listType){case "user_uploads":this.playlistId=(new vW("UU","PLAYER_"+x)).toString();break;default:if(Q=
W.playlist_length)this.playlistLength=Number(Q)||0;this.playlistId=g.C1(x).toString();if(W=W.video)this.videoId=(W[0]||null).video_id||void 0}else W.playlist&&(this.playlistLength=W.playlist.toString().split(",").length)}};
g.p1=function(Q,W){this.Dp=Q;this.DT=this.author="";this.hU=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Bl=this.lengthText="";this.sessionData=null;this.T={};this.title="";if(W){this.ariaLabel=W.aria_label||void 0;this.author=W.author||"";this.DT=W.DT||"";if(Q=W.endscreen_autoplay_session_data)this.hU=Wb(Q,"&");this.tU=W.tU;this.isLivePlayback=W.live_playback==="1";this.isUpcoming=!!W.isUpcoming;if(Q=W.length_seconds)this.lengthSeconds=typeof Q==="string"?Number(Q):Q;this.lengthText=
W.lengthText||"";this.Bl=W.Bl||"";this.publishedTimeText=W.publishedTimeText||void 0;if(Q=W.session_data)this.sessionData=Wb(Q,"&");this.shortViewCount=W.short_view_count_text||void 0;this.T=YS(W);this.title=W.title||"";this.videoId=W.docid||W.video_id||W.videoId||W.id||void 0;this.watchUrl=W.watchUrl||void 0}};
DBz=function(Q){var W,x,D=(W=Q.getWatchNextResponse())==null?void 0:(x=W.contents)==null?void 0:x.twoColumnWatchNextResults,K,l,M,w,S;Q=(K=Q.getWatchNextResponse())==null?void 0:(l=K.playerOverlays)==null?void 0:(M=l.playerOverlayRenderer)==null?void 0:(w=M.endScreen)==null?void 0:(S=w.watchNextEndScreenRenderer)==null?void 0:S.results;if(!Q){var b,z;Q=D==null?void 0:(b=D.endScreen)==null?void 0:(z=b.endScreen)==null?void 0:z.results}return Q};
g.af=function(Q){var W,x,D;Q=g.e((W=Q.getWatchNextResponse())==null?void 0:(x=W.playerOverlays)==null?void 0:(D=x.playerOverlayRenderer)==null?void 0:D.decoratedPlayerBarRenderer,hQ);return g.e(Q==null?void 0:Q.playerBar,KF4)};
lyQ=function(Q){this.B=Q.playback_progress_0s_url;this.D=Q.playback_progress_2s_url;this.U=Q.playback_progress_10s_url};
jQh=function(){if(GQ===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(W){}a:{try{var Q=!!self.localStorage}catch(W){Q=!1}if(Q&&(Q=g.Ir(g.r3()+"::yt-player"))){GQ=new ci(Q);break a}GQ=void 0}}return GQ};
g.d0=function(){var Q=jQh();if(!Q)return{};try{var W=Q.get("yt-player-lv");return JSON.parse(W||"{}")}catch(x){return{}}};
g.MNz=function(Q){var W=jQh();W&&(Q=JSON.stringify(Q),W.set("yt-player-lv",Q))};
g.ib=function(Q){return g.d0()[Q]||0};
g.AQ=function(Q,W){var x=g.d0();W!==x[Q]&&(W!==0?x[Q]=W:delete x[Q],g.MNz(x))};
g.HW=function(Q){return g.U(function(W){return W.return(g.eM(RmF(),Q))})};
qo=function(Q,W,x,D,K,l,M,w){var S,b,z,k,X,u;return g.U(function(Y){switch(Y.B){case 1:return S=g.ib(Q),S===4?Y.return(4):g.A(Y,g.Fi(),2);case 2:b=Y.U;if(!b)throw g.Ps("wiac");if(!w||M===void 0){Y.kf(3);break}return g.A(Y,wDz(w,M),4);case 4:M=Y.U;case 3:return z=x.lastModified||"0",g.A(Y,g.HW(b),5);case 5:return k=Y.U,g.P5(Y,6),UN++,g.A(Y,g.A4(k,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",dG:!0},function(v){if(l!==void 0&&M!==void 0){var J=""+Q+"|"+W.id+"|"+z+"|"+String(l).padStart(10,
"0");J=g.Hs(v.objectStore("media"),M,J)}else J=g.CX.resolve(void 0);var h=SSD(Q,W.OQ()),G=SSD(Q,!W.OQ()),H={fmts:bUn(D),format:x||{}};h=g.Hs(v.objectStore("index"),H,h);var I=D.downloadedEndTime===-1;H=I?v.objectStore("index").get(G):g.CX.resolve(void 0);var c={fmts:"music",format:{}};v=I&&K&&!W.OQ()?g.Hs(v.objectStore("index"),c,G):g.CX.resolve(void 0);return g.CX.all([v,H,J,h]).then(function(O){O=g.V(O);O.next();O=O.next().value;UN--;var T=g.ib(Q);if(T!==4&&I&&K||O!==void 0&&g.sQO(O.fmts))T=1,g.AQ(Q,
T);return T})}),8);
case 8:return Y.return(Y.U);case 6:X=g.Jv(Y);UN--;u=g.ib(Q);if(u===4)return Y.return(u);g.AQ(Q,4);throw X;}})};
g.zm4=function(Q){var W,x;return g.U(function(D){if(D.B==1)return g.A(D,g.Fi(),2);if(D.B!=3){W=D.U;if(!W)throw g.Ps("ri");return g.A(D,g.HW(W),3)}x=D.U;return D.return(g.A4(x,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(K){var l=IDBKeyRange.bound(Q+"|",Q+"~");return K.objectStore("index").getAll(l).then(function(M){return M.map(function(w){return w?w.format:{}})})}))})};
XDz=function(Q,W,x,D,K){var l,M,w;return g.U(function(S){if(S.B==1)return g.A(S,g.Fi(),2);if(S.B!=3){l=S.U;if(!l)throw g.Ps("rc");return g.A(S,g.HW(l),3)}M=S.U;w=g.A4(M,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(b){var z=""+Q+"|"+W+"|"+x+"|"+String(D).padStart(10,"0");return b.objectStore("media").get(z)});
return K?S.return(w.then(function(b){if(b===void 0)throw Error("No data from indexDb");return kvO(K,b)}).catch(function(b){throw new g.Lw("Error while reading chunk: "+b.name+", "+b.message);
})):S.return(w)})};
g.sQO=function(Q){return Q?Q==="music"?!0:Q.includes("dlt=-1")||!Q.includes("dlt="):!1};
SSD=function(Q,W){return""+Q+"|"+(W?"v":"a")};
bUn=function(Q){var W={};return x1((W.dlt=Q.downloadedEndTime.toString(),W.mket=Q.maxKnownEndTime.toString(),W.avbr=Q.averageByteRate.toString(),W))};
u_s=function(Q){var W={},x={};Q=g.V(Q);for(var D=Q.next();!D.done;D=Q.next()){var K=D.value,l=K.split("|");K.match(g.oO2)?(D=Number(l.pop()),isNaN(D)?x[K]="?":(l=l.join("|"),(K=W[l])?(l=K[K.length-1],D===l.end+1?l.end=D:K.push({start:D,end:D})):W[l]=[{start:D,end:D}])):x[K]="?"}Q=g.V(Object.keys(W));for(D=Q.next();!D.done;D=Q.next())D=D.value,x[D]=W[D].map(function(M){return M.start+"-"+M.end}).join(",");
return x};
BW=function(Q){g.Rd.call(this);this.B=null;this.D=new cg;this.B=null;this.X=new Set;this.crossOrigin=Q||""};
YSh=function(Q,W,x){for(x=$S(Q,x);x>=0;){var D=Q.levels[x];if(D.isLoaded(If(D,W))&&(D=g.m5(D,W)))return D;x--}return g.m5(Q.levels[0],W)};
VN5=function(Q,W,x){x=$S(Q,x);for(var D,K;x>=0;x--)if(D=Q.levels[x],K=If(D,W),!D.isLoaded(K)){D=Q;var l=x,M=l+"-"+K;D.X.has(M)||(D.X.add(M),D.D.enqueue(l,{Yd:l,Ui:K}))}nOO(Q)};
nOO=function(Q){if(!Q.B&&!Q.D.isEmpty()){var W=Q.D.remove();Q.B=P6a(Q,W)}};
P6a=function(Q,W){var x=document.createElement("img");Q.crossOrigin&&(x.crossOrigin=Q.crossOrigin);x.src=Q.levels[W.Yd].cV(W.Ui);x.onload=function(){var D=W.Yd,K=W.Ui;Q.B!==null&&(Q.B.onload=null,Q.B=null);D=Q.levels[D];D.loaded.add(K);nOO(Q);var l=D.columns*D.rows;K*=l;D=Math.min(K+l-1,D.VQ()-1);K=[K,D];Q.publish("l",K[0],K[1])};
return x};
g.No=function(Q,W,x,D){this.level=Q;this.N=W;this.loaded=new Set;this.level=Q;this.N=W;Q=x.split("#");this.width=Math.floor(Number(Q[0]));this.height=Math.floor(Number(Q[1]));this.frameCount=Math.floor(Number(Q[2]));this.columns=Math.floor(Number(Q[3]));this.rows=Math.floor(Number(Q[4]));this.B=Math.floor(Number(Q[5]));this.D=Q[6];this.signature=Q[7];this.videoLength=D};
If=function(Q,W){return Math.floor(W/(Q.columns*Q.rows))};
g.m5=function(Q,W){W>=Q.MX()&&Q.bR();var x=If(Q,W),D=Q.columns*Q.rows,K=W%D;W=K%Q.columns;K=Math.floor(K/Q.columns);var l=Q.bR()+1-D*x;if(l<Q.columns){var M=l;D=1}else M=Q.columns,D=l<D?Math.ceil(l/Q.columns):Q.rows;return{url:Q.cV(x),column:W,columns:M,row:K,rows:D,ri:Q.width*M,Xo:Q.height*D}};
cW=function(Q,W,x,D,K){D=D===void 0?!1:D;K=K===void 0?!1:K;BW.call(this,x);this.isLive=D;this.G=!!K;this.levels=this.U(Q,W);this.N=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
vOQ=function(Q,W,x){return(Q=Q.levels[W])?Q.r4(x):-1};
$S=function(Q,W){var x=Q.N.get(W);if(x)return x;x=Q.levels.length;for(var D=0;D<x;D++)if(Q.levels[D].width>=W)return Q.N.set(W,D),D;Q.N.set(W,x-1);return x-1};
g0=function(Q,W,x,D){x=x.split("#");x=[x[1],x[2],0,x[3],x[4],-1,x[0],""].join("#");g.No.call(this,Q,W,x,0);this.U=null;this.L=D?2:0};
y7=function(Q,W,x,D){cW.call(this,Q,0,void 0,W,!(D===void 0||!D));for(Q=0;Q<this.levels.length;Q++)this.levels[Q].nM(x)};
C6n=function(Q,W,x){W={cpn:W};Q.indexOf("/ibw/")===-1&&(W.ibw=x?String(x):"1369843");return{url:g.ya(Q,W),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.f1=function(Q,W){g.Rd.call(this);var x=this;this.Dp=Q;this.adaptiveFormats="";this.iK=this.YV=this.adQueryId=this.rX=null;this.rZ={start:NaN,end:NaN};this.cueRanges=this.Qp=null;this.zq=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.kV=void 0;this.P9=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.O3="";this.ez=!1;this.ea=null;this.eK=this.W9=this.EX=!1;this.N=null;this.kM=this.Wz=!1;this.wx=
NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.nG=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.F$=0;this.h_=!1;this.Wy=this.cycToken=null;this.author="";this.Gd=!1;this.s3=0;this.b$=!1;this.dZ=null;this.ZY=[];this.In=this.VB=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.fn=this.kX="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=
this.endSeconds=this.Y6=0;this.BM=this.I5=this.U=null;this.Ks="";this.loading=!1;this.UT=this.Zf=0;this.WY=this.pipable=this.TN=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.g5=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Pt=this.isPrivate=this.isListed=this.V5=this.uG=!1;this.PU="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.TQ=this.LS=this.Nr=!1;this.latencyClass="UNKNOWN";this.xo=
this.ED=this.zQ=this.Zt=this.b9=this.enablePreroll=this.d2=this.enableServerStitchedDai=this.It=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Sk=0;this.reloadReason="";this.WU=this.g2=this.Ke=!1;this.keywords={};this.Kn="";this.Pi=0;this.U_=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.Pz=null;this.gX=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.q8=this.paygated=!1;this.eD=
[];this.Tc=!1;this.KS=[];this.DE=null;this.bX=this.racyCheckOk=!1;this.Cb={};this.isProximaLatencyEligible=!1;this.WA=0;this.D=null;this.autonavState=1;this.Xl=null;this.shortDescription="";this.F3=this.tp=!1;this.IU=this.Gn=this.startSeconds=0;this.mp=this.fJ=this.yS=eQ;this.s_=this.suggestions=null;this.jz=this.oa=void 0;this.isExternallyHostedPodcast=!1;this.xG=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.H2=void 0;this.Vj=[];this.SU=[];this.hlsFormats=this.ra=
"";this.qm=this.iV=this.im=this.hn=this.tf=this.Br=this.h4=null;this.al="vvt";this.xN=!1;this.nI=null;this.xO="";this.Tm=NaN;this.nK=this.fU=this.La=this.KU=this.Nb=this.UG=this.X_=this.uR=this.jS=this.Pg="";this.m1=null;this.QC=!1;this.G={};this.clipStart=0;this.clipEnd=Infinity;this.uc=!1;this.heartbeatToken="";this.Ud=this.Bj=NaN;this.RQ=this.eS=this.KR=this.FF=this.mO=!1;this.TH=!0;this.T={};this.captionTracks=[];this.Hy=[];this.rj=0;this.ir=[];this.Mb=[];this.wX=!1;this.CI={};this.CR=new g.KN("und",
new g.wr("Default","und",!0));this.CC=0;this.L=null;this.Ep=[];this.u0=!1;this.FJ=this.Cn="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.g7=this.tj=this.zT=this.playerResponse=this.ut=this.t3=this.qy=this.fA=this.b0=this.sR=this.oE=null;this.iD=!1;this.uj=null;this.isInlinePlaybackNoAd=this.A4=this.Tq=this.useCobaltWidevine=this.OE=this.RO=!1;this.p6=!0;this.gH=this.Qx=NaN;this.defraggedFromSubfragments=this.RZ=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;
this.sabrContextUpdates=new Map;this.Og="";this.Uw=!1;this.gatewayExperimentGroup="";this.ER=this.SZ=this.YY=!1;this.interstitials=[];this.HZ=this.ZR=!1;this.hx="";this.allowImaMonetization=!1;this.zr="";this.IE=!1;this.Vd="";this.zz=[];this.S7=[];this.Ox="";this.aE=this.S=this.yU=!1;this.Jx="";this.lW=this.aA=this.YJ=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.FV=!1;this.bk=this.vZ=!0;this.errorDetail=this.userGenderAge="";
this.Py=this.tJ=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.J8=this.errorReason=this.errorCode=null;this.Ia=this.Ra="";this.xI=!1;this.QS=[];this.yA=this.X3=this.WN=this.xS=this.bG=0;this.fetchType=null;this.PJ=!0;this.transitionEndpointAtEndOfStream=void 0;this.RE=this.e$=-1;this.nt=this.jE=!1;this.QN=null;this.eZ="";this.u$=!1;this.watchUrl=null;this.QO=[];this.visibleOnLoadKeys=[];this.jC=
[];this.inlineMetricEnabled=this.A_=!1;this.embedsRctn=this.embedsRct="";this.Et=NaN;this.WJ=(0,g.a8)();this.DH=this.Dx=0;this.Ka=null;this.b6=0;this.qH=this.ix=!1;this.cD=this.Dp.experiments.ij("html5_use_triple_equals");this.JH=!1;this.wC=g.X0(this.Dp.experiments,"html5_gapless_loop_seek_offset_in_milli");this.Mp=0;this.X$={};this.by={setData:function(D){x.setData(D)},
cw:function(){x.cw()},
ma:function(D){x.ma(D)}};
this.jE=this.j("web_new_autonav_countdown");this.nt=this.j("web_new_big_thumbnail_endscreen");this.setData(W);this.O_=new z8;g.y(this,this.O_)};
g.r0=function(Q,W,x){W&&W.cpn&&g.Bp(new g.Lw("CPN provided in VideoData update",{C_p:W.cpn,Rz:Q.clientPlaybackNonce,KZ3:x}));x?(RC(W),Q.setData(W),Zd(Q)&&Q.cw()):(W=W||{},J3v(Q,W),L1(Q,W),pDF(Q,W),Q.publish("dataupdated"))};
pDF=function(Q,W){Q.fflags=jY(Q.fflags,W.fflags);var x=W.iv_invideo_url;x&&(Q.O3=KD(x));Q.ez=D0(Q.ez,W.iv_ads_only);if(x=W.cta_conversion_urls)Q.d$=x;Q.isPharma=D0(Q.isPharma,W.is_pharma);Q.author=jY(Q.author,W.author);Q.kX=hma(W.ttsurl)||Q.kX;Q.b$=D0(Q.b$,W.cc_asr);Q.fn=jY(Q.fn,W.channel_path);if(x=W.profile_picture)Q.profilePicture=jY(Q.profilePicture,x);Q.videoCountText=jY(Q.videoCountText,W.video_count_text);Q.autonavState=Kw(Q.autonavState,W.autonav_state,ay5);if(Q.j("html5_enable_ssap_entity_id")){var D;
x=!!W.cotn||!((D=Q.playerResponse)==null||!D.cotn);D=g.X0(Q.Dp.experiments,"html5_entity_id_simplified_preferred_record_size");Q.playerResponse&&!x&&(Q.clientPlaybackNonce=Gvn(Q,Q.playerResponse,D)||Q.clientPlaybackNonce);Q.clientPlaybackNonce||(W.cpn&&Q.VO("ssei","uhdc"),Q.clientPlaybackNonce=jY(Q.clientPlaybackNonce,W.cpn))}else Q.clientPlaybackNonce=jY(Q.clientPlaybackNonce,W.cpn);Q.subscribed=D0(Q.subscribed,W.subscribed);Q.rawViewCount=ly(Q.rawViewCount,W.view_count);Q.shortViewCount=jY(Q.shortViewCount,
W.short_view_count_text);Q.publishedTimeText=jY(Q.publishedTimeText||"",W.publishedTimeText);Q.lengthText=jY(Q.lengthText||"",W.lengthText);Q.Bl=jY(Q.Bl||"",W.Bl);Q.DT=jY(Q.DT||"",W.DT);Q.title=jY(Q.title,W.title);Q.subtitle=jY(Q.subtitle,W.subtitle);Q.expandedTitle=jY(Q.expandedTitle,W.expanded_title);Q.expandedSubtitle=jY(Q.expandedSubtitle,W.expanded_subtitle);Q.ypcPreview=jY(Q.ypcPreview,W.ypc_preview);Q.xP=jY(Q.xP,W.ypc_origin);Q.xN=D0(Q.xN,W.ypc_is_premiere_trailer);Q.Jx=jY(Q.Jx,W.ypc_clickwrap_message);
Q.paygated=D0(Q.paygated,W.paygated);Q.QC=D0(Q.QC,W.requires_purchase);Q.showShareButton=!D0(!Q.showShareButton,W.ss);Q.vZ=D0(Q.vZ,W.showwatchlater);Q.bk=D0(Q.bk,W.shownotifybutton);Q.FV=D0(Q.FV,W.copy_share);if(D=W.el)Q.eventLabel=D;if(D=W.keywords)Q.keywords=dBD(D.split(","));if(D=W.rvs)Q.suggestions=Kl(D).map(function(K){return K.playlist||K.list||K.api?new g.JQ(Q.Dp,K):new g.p1(Q.Dp,K)});
Q.contentCheckOk=D0(Q.contentCheckOk,W.cco);Q.racyCheckOk=D0(Q.racyCheckOk,W.rco);Q.isLivingRoomDeeplink=D0(Q.isLivingRoomDeeplink,W.is_living_room_deeplink);Q.oauthToken=jY(Q.oauthToken,W.oauth_token);Q.Kn=jY(Q.Kn,W.kpt);Q.visitorData=jY(Q.visitorData,W.visitor_data);if(D=W.session_data)Q.sessionData=Wb(D,"&");Q.Sz=jY(Q.Sz,W.endscreen_ad_tracking_data);Q.Tj=D0(Q.Tj,W.wait_for_vast_info_cards_xml);Q.OR=D0(Q.OR,W.suppress_creator_endscreen);Q.vJ=D0(Q.vJ,W.is_trueview_action);Q.Zu=jY(Q.Zu,W.tracking_list);
Q.Ra=jY(Q.Ra,W.clip);Q.Ia=jY(Q.Ia,W.clipt);iUs(Q,W)};
Gvn=function(Q,W,x){var D,K=(D=W.cpnInfo)==null?void 0:D.cpn;Q.playerResponseCpn=K!=null?K:"";g.TQ(Q)&&!K&&Q.VO("ssei","eim_"+Q.clientPlaybackNonce);var l;return((l=W.cacheMetadata)==null?0:l.isCacheHit)||Q.In||!K?"":(ON.has(K)?x="":(W=A3F.push(K),ON.add(K),W>(x!=null?x:50)&&(x=A3F.shift())&&ON.delete(x),x=K),K!==x&&Q.VO("ssei","dcpn_"+K+"_"+x+"_"+Q.clientPlaybackNonce),x)};
L1=function(Q,W){var x=W.raw_watch_next_response;if(!x){var D=W.watch_next_response;D&&(x=JSON.parse(D))}if(x){Q.g7=x;var K=Q.g7.playerCueRangeSet;K&&g.EN(Q,K);var l=Q.g7.playerOverlays;if(l){var M=l.playerOverlayRenderer;if(M){var w=M.autonavToggle;w&&(Q.autoplaySwitchButtonRenderer=g.e(w,HUv),Q.j("web_player_autonav_use_server_provided_state")&&FS(Q)&&(Q.autonavState=Q.autoplaySwitchButtonRenderer.enabled?2:1));var S=M.videoDetails;if(S){var b=S.embeddedPlayerOverlayVideoDetailsRenderer;var z=S.playerOverlayVideoDetailsRenderer;
z&&(z.title&&(W.title=g.od(z.title)),z.subtitle&&(W.subtitle=g.od(z.subtitle)))}g.BL(Q.Dp)&&(Q.vZ=!!M.addToMenu);UBh(Q,M.shareButton);M.startPosition&&M.endPosition&&(Q.progressBarStartPosition=M.startPosition,Q.progressBarEndPosition=M.endPosition);var k=M.gatedActionsOverlayRenderer;k&&(Q.Qt=g.e(k,qSl));var X,u,Y,v=g.e((X=Q.getWatchNextResponse())==null?void 0:(u=X.playerOverlays)==null?void 0:(Y=u.playerOverlayRenderer)==null?void 0:Y.infoPanel,B9h);if(v){Q.Et=Number(v==null?void 0:v.durationMs)||
NaN;if(v==null?0:v.infoPanelOverviewViewModel)Q.J2=v==null?void 0:v.infoPanelOverviewViewModel;if(v==null?0:v.infoPanelDetailsViewModel)Q.Ct=v==null?void 0:v.infoPanelDetailsViewModel}Q.showSeekingControls=!!M.showSeekingControls}}var J,h,G=(J=Q.getWatchNextResponse())==null?void 0:(h=J.contents)==null?void 0:h.twoColumnWatchNextResults;if(G){var H=G.desktopOverlay&&g.e(G.desktopOverlay,$Bv);H&&(H.suppressShareButton&&(Q.showShareButton=!1),H.suppressWatchLaterButton&&(Q.vZ=!1))}b&&Iyl(Q,W,b);var I=
ly(0,W.autoplay_count),c=Q.getWatchNextResponse(),O,T=(O=c.contents)==null?void 0:O.twoColumnWatchNextResults,Ks,Mz,QF,f=(Ks=c.playerOverlays)==null?void 0:(Mz=Ks.playerOverlayRenderer)==null?void 0:(QF=Mz.autoplay)==null?void 0:QF.playerOverlayAutoplayRenderer,t=DBz(Q),P,Z=(P=c.contents)==null?void 0:P.singleColumnWatchNextResults;if(Z){var c5;if(((c5=Z.autoplay)==null?0:c5.autoplay)&&!Z.playlist){var vu=Z.autoplay.autoplay.sets,kF={},a1=new g.p1(Q.C()),El=null,D7;if(vu){for(var uC=g.V(vu),p=uC.next();!p.done;p=
uC.next()){var a=p.value.autoplayVideoRenderer;if(a&&a.compactVideoRenderer){El=a.compactVideoRenderer;break}}if(D7=vu[0].autoplayVideo){var d=D7.clickTrackingParams;d&&(kF.itct=d);kF.autonav="1";kF.playnext=String(I)}}else kF.feature="related-auto";var q=g.e(D7,g.tQ);if(El){a1.videoId=El.videoId;var m=El.shortBylineText;m&&(a1.author=g.od(m));var W5=El.title;W5&&(a1.title=g.od(W5))}else q!=null&&q.videoId&&(a1.videoId=q.videoId);a1.hU=kF;Q.suggestions=[];Q.s_=a1}}if(t){for(var l2=[],jn=g.V(t),B=
jn.next();!B.done;B=jn.next()){var b2=B.value,o1=void 0,w4=null;if(b2.endScreenVideoRenderer){var Av=b2.endScreenVideoRenderer,XH=Av.title;w4=new g.p1(Q.C());w4.videoId=Av.videoId;w4.lengthSeconds=Av.lengthInSeconds||0;var Nk=Av.publishedTimeText;Nk&&(w4.publishedTimeText=g.od(Nk));var k8=Av.shortBylineText;k8&&(w4.author=g.od(k8));var fs=Av.shortViewCountText;fs&&(w4.shortViewCount=g.od(fs));if(XH){w4.title=g.od(XH);var c1=XH.accessibility;if(c1){var SE=c1.accessibilityData;SE&&SE.label&&(w4.ariaLabel=
SE.label)}}var H6=Av.navigationEndpoint;if(H6){o1=H6.clickTrackingParams;var fC=g.e(H6,g.tQ),SD=g.e(H6,g.$_);fC?w4.tU=fC:SD!=null&&(w4.watchUrl=SD.url)}var eh=Av.thumbnailOverlays;if(eh)for(var gl=g.V(eh),fy=gl.next();!fy.done;fy=gl.next()){var Vz=fy.value.thumbnailOverlayTimeStatusRenderer;if(Vz)if(Vz.style==="LIVE"){w4.isLivePlayback=!0;break}else if(Vz.style==="UPCOMING"){w4.isUpcoming=!0;break}}w4.T=n1(Av.thumbnail)}else if(b2.endScreenPlaylistRenderer){var b0=b2.endScreenPlaylistRenderer,H_=
b0.navigationEndpoint;if(!H_)continue;var kV=g.e(H_,g.tQ);if(!kV)continue;var U7=kV.videoId;w4=new g.JQ(Q.C());w4.playlistId=b0.playlistId;w4.playlistLength=Number(b0.videoCount)||0;w4.B=U7||null;w4.videoId=U7;var U1=b0.title;U1&&(w4.title=g.od(U1));var qM=b0.shortBylineText;qM&&(w4.author=g.od(qM));o1=H_.clickTrackingParams;w4.T=n1(b0.thumbnail)}w4&&(o1&&(w4.sessionData={itct:o1}),l2.push(w4))}Q.suggestions=l2}if(f){Q.PJ=!!f.preferImmediateRedirect;Q.jE=Q.jE||!!f.webShowNewAutonavCountdown;Q.nt=
Q.nt||!!f.webShowBigThumbnailEndscreen;if(Q.jE||Q.nt){var hG=T||null,tm=new g.p1(Q.C());tm.videoId=f.videoId;var Zf=f.videoTitle;if(Zf){tm.title=g.od(Zf);var KP=Zf.accessibility;if(KP){var C8=KP.accessibilityData;C8&&C8.label&&(tm.ariaLabel=C8.label)}}var mg=f.byline;mg&&(tm.author=g.od(mg));var Xf=f.publishedTimeText;Xf&&(tm.publishedTimeText=g.od(Xf));var vT=f.shortViewCountText;vT&&(tm.shortViewCount=g.od(vT));var CS=f.thumbnailOverlays;if(CS)for(var Jh=g.V(CS),ls=Jh.next();!ls.done;ls=Jh.next()){var jZ=
ls.value.thumbnailOverlayTimeStatusRenderer;if(jZ)if(jZ.style==="LIVE"){tm.isLivePlayback=!0;break}else if(jZ.style==="UPCOMING"){tm.isUpcoming=!0;break}else if(jZ.style==="DEFAULT"&&jZ.text){tm.lengthText=g.od(jZ.text);var jP=jZ.text.accessibility;if(jP){var Mc=jP.accessibilityData;Mc&&Mc.label&&(tm.Bl=Mc.label||"")}break}}tm.T=n1(f.background);var pS=f.nextButton;if(pS){var hh=pS.buttonRenderer;if(hh){var aU=hh.navigationEndpoint;if(aU){var Gl=g.e(aU,g.tQ);Gl&&(tm.tU=Gl)}}}if(f.topBadges){var dg=
f.topBadges[0];if(dg){var i9=g.e(dg,mBh);i9&&i9.style==="BADGE_STYLE_TYPE_PREMIUM"&&(tm.xCj=!0)}}var gG=f.alternativeTitle;gG&&(tm.DT=g.od(gG));var J2={autonav:"1",playnext:String(I)};tm.playlistId&&(J2.autoplay="1");if(hG){var y9,Zw,Ro,Ah,wK=(y9=hG.autoplay)==null?void 0:(Zw=y9.autoplay)==null?void 0:(Ro=Zw.sets)==null?void 0:(Ah=Ro[0])==null?void 0:Ah.autoplayVideo;if(wK){var HT=wK.clickTrackingParams;HT&&(J2.itct=HT);var SP=g.e(wK,g.tQ);SP&&(tm.Xl=SP)}}else if(f){var Uw,qN,BT,$U=(Uw=f.nextButton)==
null?void 0:(qN=Uw.buttonRenderer)==null?void 0:(BT=qN.navigationEndpoint)==null?void 0:BT.clickTrackingParams;$U&&(J2.itct=$U)}J2.itct||(J2.feature="related-auto");tm.hU=J2;Q.suggestions||(Q.suggestions=[]);Q.s_=tm}f.countDownSecs!=null&&(Q.e$=f.countDownSecs*1E3);f.countDownSecsForFullscreen!=null&&(Q.RE=f.countDownSecsForFullscreen>=0?f.countDownSecsForFullscreen*1E3:-1);Q.j("web_autonav_color_transition")&&f.watchToWatchTransitionRenderer&&(Q.watchToWatchTransitionRenderer=g.e(f.watchToWatchTransitionRenderer,
N91))}var bs=DBz(Q);if(bs){var nK,IU,s$,zi=bs==null?void 0:(nK=bs[0])==null?void 0:(IU=nK.endScreenVideoRenderer)==null?void 0:(s$=IU.navigationEndpoint)==null?void 0:s$.clickTrackingParams,m$=g.Q9(Q);zi&&m$&&(m$.sessionData={itct:zi})}Q.g7.currentVideoThumbnail&&(Q.T=n1(Q.g7.currentVideoThumbnail));var e4,NN,cT,fQ,gg,VV=(e4=Q.g7)==null?void 0:(NN=e4.contents)==null?void 0:(cT=NN.twoColumnWatchNextResults)==null?void 0:(fQ=cT.results)==null?void 0:(gg=fQ.results)==null?void 0:gg.contents;if(VV&&VV[1]){var yy,
ee,h2,vV,B0=(yy=VV[1].videoSecondaryInfoRenderer)==null?void 0:(ee=yy.owner)==null?void 0:(h2=ee.videoOwnerRenderer)==null?void 0:(vV=h2.thumbnail)==null?void 0:vV.thumbnails;B0&&B0.length&&(Q.profilePicture=B0[B0.length-1].url)}var fS=RC(W),kn,P3=(kn=Q.getWatchNextResponse())==null?void 0:kn.onResponseReceivedEndpoints;if(P3)for(var v3=g.V(P3),Xl=v3.next();!Xl.done;Xl=v3.next()){var $l=Xl.value;g.e($l,WX)&&(Q.sD=g.e($l,WX));var CK=g.e($l,c3D),ZR=void 0;if((ZR=CK)==null?0:ZR.entityKeys)Q.QO=CK.entityKeys||
[],CK.visibleOnLoadKeys&&(Q.visibleOnLoadKeys=CK.visibleOnLoadKeys)}if(Q.j("web_key_moments_markers")){var LQ=g.xN.getState().entities,RB=g.Mb("visibility_override","markersVisibilityOverrideEntity");var N1=wW(LQ,"markersVisibilityOverrideEntity",RB);Q.Vj=(N1==null?void 0:N1.videoId)===(Q.videoId||fS)&&(N1==null?0:N1.visibilityOverrideMarkersKey)?N1.visibilityOverrideMarkersKey:Q.visibleOnLoadKeys;Q.visibleOnLoadKeys=[].concat(g.C(Q.Vj))}}};
FS=function(Q){var W;return((W=Q.autoplaySwitchButtonRenderer)==null?void 0:W.enabled)!==void 0};
DM=function(Q){return!!(Q.D&&Q.D.videoInfos&&Q.D.videoInfos.length)};
g.R4=function(Q){var W=Q.S;Q.j("html5_gapless_unlimit_format_selection")&&KQ(Q)&&(W=!1);var x=!!Q.B&&Q.B.lN,D=Q.Dp,K=Q.l5(),l=lG(Q),M=Q.SZ,w=W,S=Q.isOtf();W=Q.I$();var b=Q.Pt,z=Q.getUserAudio51Preference(),k=j4(Q),X=new kpz(D);if(D.jk()||D.j("html5_logging_format_selection"))X.U=!0;X.s3=l;X.SZ=M&&D.G;X.LS=z;g.yk("windows nt 5.1")&&!g.gr&&(X.t8=!0);if(l=K)l=g.WW(D)?kEv(D):!1;l&&(X.pS=!0);w&&(X.t8=!0,X.Sk=!0);S&&!D.j("html5_otf_prefer_vp9")&&(X.t8=!0);D.playerStyle==="picasaweb"&&(S&&(X.t8=!1),X.F3=
!1);b&&(X.t8=!0);vh(D.L,CN.CHANNELS)&&(D.j("html5_enable_ac3")&&(X.N=!0),D.j("html5_enable_eac3")&&(X.L=!0),D.j("html5_enable_ac3_gapless")&&(X.X3=!0));D.j("html5_block_8k_hfr")&&(X.I5=!0);X.X=g.X0(D.experiments,"html5_max_selectable_quality_ordinal");X.G=g.X0(D.experiments,"html5_min_selectable_quality_ordinal");xh&&(X.WN=480);if(x||K)X.F3=!1;X.Pt=!1;X.disableAv1=k;x=HB(D,X.B,void 0,X.disableAv1);x>0&&x<2160&&(nS()||D.j("html5_format_hybridization"))&&(X.B.supportsChangeType=+nS(),X.U2=x);x>=2160&&
(X.fS=!0);gzO()&&(X.B.serveVp9OverAv1IfHigherRes=0,X.yA=!1);X.I$=W;X.eZ=g.rV||Wk()&&!W?!1:!0;X.S=D.j("html5_format_hybridization");X.Kn=D.j("html5_disable_encrypted_vp9_live_non_2k_4k");MJ(Q)&&(X.Cn=Q.j("html5_prefer_language_over_codec"));Zs()&&Q.playerResponse&&Q.playerResponse.playerConfig&&Q.playerResponse.playerConfig.webPlayerConfig&&Q.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(X.N=!0,X.L=!0);Q.S&&Q.isAd()&&(Q.oa&&(X.uj=Q.oa),Q.jz&&(X.D=Q.jz));X.g7=Q.isLivePlayback&&
Q.n3()&&Q.Dp.j("html5_drm_live_audio_51");X.Vj=Q.Tq;return Q.QN=X};
j4=function(Q){return Q.Dp.j("html5_disable_av1")||Q.j("html5_gapless_shorts_disable_av1")&&KQ(Q)?!0:!1};
gO1=function(Q){Nc("drm_pb_s",void 0,Q.eZ);Q.I5||Q.B&&uQ(Q.B);var W={};Q.B&&(W=Q0a(Q.O_,g.R4(Q),Q.Dp.L,Q.B,function(x){return Q.publish("ctmp","fmtflt",x)},!0,new Set));
W=new rr(W,Q.Dp,Q.OE,Q.useCobaltWidevine?Zs()?wG(Q):!1:!1,function(x,D){Q.qj(x,D)});
g.y(Q,W);Q.eS=!1;Q.loading=!0;paO(W,function(x){Nc("drm_pb_f",void 0,Q.eZ);for(var D=g.V(x),K=D.next();!K.done;K=D.next())switch(K=K.value,K.flavor){case "fairplay":K.I5=Q.I5;K.s7=Q.s7;K.Kq=Q.Kq;break;case "widevine":K.BM=Q.BM}Q.Ep=x;if(Q.Ep.length>0&&(Q.L=Q.Ep[0],Q.Dp.jk())){x={};D=g.V(Object.entries(Q.L.B));for(K=D.next();!K.done;K=D.next()){var l=g.V(K.value);K=l.next().value;l=l.next().value;var M="unk";(K=K.match(/(.*)codecs="(.*)"/))&&(M=K[2]);x[M]=l}Q.qj("drmProbe",x)}Q.cw()})};
y34=function(Q,W){if(W.length===0||S4(Q))return null;bG(Q,"html5_enable_cobalt_experimental_vp9_decoder")&&(dr=!0);var x=Q.Qp;var D=Q.lengthSeconds,K=Q.isLivePlayback,l=Q.Nr,M=Q.Dp,w=te5(W);if(K||l){M=M.experiments;D=new kK("",M,!0);D.U=!l;D.lN=!0;D.isManifestless=!0;D.isLive=!l;D.Nr=l;W=g.V(W);for(K=W.next();!K.done;K=W.next()){var S=K.value;K=uO(S,x);w=iQ(S);w=nn(w.l9||S.url||"",w.fG,w.s);var b=w.get("id");b&&b.includes("%7E")&&(D.T=!0);var z=void 0;b=(z=M)==null?void 0:z.ij("html5_max_known_end_time_rebase");
z=Number(S.targetDurationSec||5);S=Number(S.maxDvrDurationSec||14400);var k=Number(w.get("mindsq")||w.get("min_sq")||"0"),X=Number(w.get("maxdsq")||w.get("max_sq")||"0")||Infinity;D.bG=D.bG||k;D.xS=D.xS||X;var u=!KS(K.mimeType);w&&bO(D,new FU(w,K,{zA:z,Fp:u,o4:S,bG:k,xS:X,us:300,Nr:l,HH:b}))}x=D}else if(w==="FORMAT_STREAM_TYPE_OTF"){D=D===void 0?0:D;l=new kK("",M.experiments,!1);l.duration=D||0;M=g.V(W);for(D=M.next();!D.done;D=M.next())D=D.value,W=uO(D,x,l.duration),K=iQ(D),(K=nn(K.l9||D.url||"",
K.fG,K.s))&&(W.streamType==="FORMAT_STREAM_TYPE_OTF"?bO(l,new tZ(K,W,"sq/0")):bO(l,new RI(K,W,HM(D.initRange),HM(D.indexRange))));l.isOtf=!0;x=l}else{D=D===void 0?0:D;l=new kK("",M.experiments,!1);l.duration=D||0;M=g.V(W);for(D=M.next();!D.done;D=M.next())w=D.value,D=uO(w,x,l.duration),W=HM(w.initRange),K=HM(w.indexRange),b=iQ(w),(w=nn(b.l9||w.url||"",b.fG,b.s))&&bO(l,new RI(w,D,W,K));x=l}l=Q.isLivePlayback&&!Q.Nr&&!Q.LS&&!Q.isPremiere;Q.j("html5_live_head_playable")&&(!s_(Q)&&l&&Q.qj("missingLiveHeadPlayable",
{}),Q.Dp.uj==="yt"&&(x.s3=!0));return x};
S4=function(Q){return Zs()?!wG(Q):rm()?!(!Q.I5||!Q.j("html5_enable_safari_fairplay")&&Dj()):!1};
wG=function(Q){return Q.j("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.EN=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next())if(x=x.value,x.cueRangeSetIdentifier){var D=void 0;Q.zq.set(x.cueRangeSetIdentifier,(D=x.playerCueRanges)!=null?D:[])}};
zr=function(Q){return!(!Q.B||!Q.B.isManifestless)};
kN=function(Q){return Q.cD?Q.isLowLatencyLiveStream&&Q.B!=null&&Cn(Q.B)>=5:Q.isLowLatencyLiveStream&&Q.B!=void 0&&Cn(Q.B)>=5};
ema=function(Q){return Zs()&&wG(Q)?!1:S4(Q)&&(g.aE(Q.Dp)?!Q.isLivePlayback:Q.hlsvp)||!Dj()||Q.VB?!0:!1};
LFz=function(Q){Q.loading=!0;Q.KR=!1;if(fyn(Q))g.zm4(Q.videoId).then(function(D){ZU4(Q,D)}).then(function(){Q.cw()});
else{x4(Q.gE)||g.Bp(new g.Lw("DASH MPD Origin invalid: ",Q.gE));var W=Q.gE,x=g.X0(Q.Dp.experiments,"dash_manifest_version")||4;W=g.ya(W,{mpd_version:x});Q.isLowLatencyLiveStream&&Q.latencyClass!=="NORMAL"||(W=g.ya(W,{pacing:0}));M_l(W,Q.Dp.experiments,Q.isLivePlayback).then(function(D){Q.d7()||(X6(Q,D,!0),Nc("mrc",void 0,Q.eZ),Q.cw())},function(D){Q.d7()||(Q.loading=!1,Q.publish("dataloaderror",new Gu("manifest.net.retryexhausted",{backend:"manifest",
rc:D.status},1)))});
Nc("mrs",void 0,Q.eZ)}};
ZU4=function(Q,W){var x=W.map(function(S){return S.itag}),D;
if((D=Q.playerResponse)!=null&&D.streamingData){D=[];if(Q.j("html5_offline_always_use_local_formats")){x=0;for(var K=g.V(W),l=K.next();!l.done;l=K.next()){l=l.value;var M=Object.assign({},l);M.signatureCipher="";D.push(M);M=g.V(Q.playerResponse.streamingData.adaptiveFormats);for(var w=M.next();!w.done;w=M.next())if(w=w.value,l.itag===w.itag&&l.xtags===w.xtags){x+=1;break}}x<W.length&&Q.qj("offnpf",{prlen:x,lflen:W.length})}else for(K=g.V(Q.playerResponse.streamingData.adaptiveFormats),M=K.next(),
l={};!M.done;l={WK:void 0},M=K.next())if(l.WK=M.value,Q.j("html5_fix_multi_audio_offline_playback"))for(M=g.V(W),w=M.next();!w.done;w=M.next())w=w.value,w.itag===l.WK.itag&&w.xtags===l.WK.xtags&&(l.WK=Object.assign({},l.WK),l.WK.url=W.find(function(S){return function(b){return b.itag===S.WK.itag}}(l)).url,l.WK.signatureCipher="",D.push(l.WK));
else x.includes(l.WK.itag)&&(l.WK=Object.assign({},l.WK),l.WK.url=W.find(function(S){return function(b){return b.itag===S.WK.itag}}(l)).url,l.WK.signatureCipher="",D.push(l.WK));
D.length<2&&Q.qj("offmlf",{len:D.length});W=y34(Q,D);lG(Q)&&bzs(W,!1);X6(Q,W);Q.qj("dlr",{})}else Q.qj("offsdm",{cotn:Q.tj?Q.tj.cotn:"0",cpn:Q.clientPlaybackNonce})};
r35=function(Q){var W;return!((W=Q.Dp.getWebPlayerContextConfig())==null||!W.enableProximaLowLatency)};
o4=function(Q){if(!Q.isProximaLatencyEligible)return 0;var W=gL();return r35(Q)?2:W===1?1:Q.j("html5_enable_proxima")?2:0};
X6=function(Q,W,x){x=x===void 0?!1:x;Q.z4=void 0;Q.B=W;g.y(Q,W);W.bG=Q.bG;W.xS=Q.xS;W.X3=Q.X3;W.WN=Q.WN;W.yA=Q.yA;Q.IH&&(W.S=new vM(Q.IH));(Q.l5()||g.uG(Q))&&Q.KS.push("webgl");Q.B.isLive||(Q.isLivePlayback=!1);var D=W.sourceUrl.split("/");if(Q.cD?D.indexOf("manifest_duration")!==-1:D.indexOf("manifest_duration")!=-1)Q.Pz=Number(D[D.indexOf("manifest_duration")+1]);if(W.U||W.isManifestless)W.subscribe("clienttemp",Q.qj,Q),x?W.subscribe("refresh",Q.gW,Q):W.subscribe("cuepointsadded",Q.Id,Q);uQ(W)?
Q.eS=!0:O5=void 0;Q.LS&&(W.N=Q.LS,W.isLive=!0,Q.isLivePlayback=!0);W.isPremiere=Q.isPremiere;W.isLiveHeadPlayable=Q.isLiveHeadPlayable};
T9l=function(Q,W){var x=W||ema(Q)||Q.isExternallyHostedPodcast;if(!Q.B||x)return Q.qj("skipDash",{dm:!!Q.B,air:W,dd:Q.VB,mss:Dj(),"3pp":Q.isExternallyHostedPodcast}),Hb();lG(Q)&&bzs(Q.B,Q.isLivePlayback);bG(Q,"html5_enable_cobalt_experimental_vp9_decoder")&&gaQ(Q.Dp.L);return Uk().then(function(){return xqv(Q.O_,g.R4(Q),Q.Dp.L,Q.B,Q.L,function(D){return Q.publish("ctmp","fmtflt",D)},Q.S7,MJ(Q)&&Q.j("html5_enable_server_format_filter")).then(function(D){Q.ma(D);
Q.O_.B=null;/^av/.test(Q.clientPlaybackNonce)&&Q.QN&&Q.qj("av1",Q.QN.B)})})};
EOD=function(Q,W){if(W&&Q.hlsvp)return Hb();if(Q.hlsFormats){W=YN(Q.hlsFormats);var x;if(((x=Q.QN)==null?0:x.U)&&W){x=[];for(var D=g.V(W),K=D.next();!K.done;K=D.next())x.push(K.value.itag);Q.qj("hlsfmt",{itags:x.join(".")})}Q.h4=GEQ(Q.Dp,W);Q.h4&&OUD(Q,Q.h4);x=Q.clientPlaybackNonce;var l,M,w,S;return UEl(Q.Dp,Q.isAd(),W,(S=(l=Q.playerResponse)==null?void 0:(M=l.captions)==null?void 0:(w=M.playerCaptionsRenderer)==null?void 0:w.baseUrl)!=null?S:null,Q.UT,x,function(b){return Q.publish("ctmp","hlsflt",
b)}).then(function(b){for(var z=0,k=[],X=g.V(b),u=X.next();!u.done;u=X.next()){u=u.value;
var Y=void 0;k.push((Y=u.getInfo())==null?void 0:Y.itag);var v=Y=void 0;((Y=u.getInfo())==null?void 0:(v=Y.audio)==null?void 0:v.numChannels)>z&&(z=u.getInfo().audio.numChannels)}z>2&&Q.qj("hlschl",{mn:z});var J;((J=Q.QN)==null?0:J.U)&&Q.qj("hlsfmtaf",{itags:k.join(".")});var h;if(Q.j("html5_enable_vp9_fairplay")&&((h=Q.L)==null?0:NG(h)))for(Q.qj("drm",{sbdlfbk:1}),z=g.V(Q.Ep),k=z.next();!k.done;k=z.next())if(k=k.value,mB(k)){Q.L=k;break}nQ(Q,b)})}return Hb()};
FFz=function(Q){if(Q.isExternallyHostedPodcast&&Q.ra){var W=YN(Q.ra);if(!W[0])return Hb();Q.O$=W[0];return $Es(Q.Dp,W[0]).then(function(x){nQ(Q,x)})}return Q.xG&&Q.g2?B2F(Q.Dp,Q.isAd(),Q.xG).then(function(x){nQ(Q,x)}):Hb()};
QPa=function(Q){if(Q.isExternallyHostedPodcast)return Hb();var W=YN(Q.ra,Q.Ks);if(Q.hlsvp){var x=C6n(Q.hlsvp,Q.clientPlaybackNonce,Q.UT);W.push(x)}return qjD(Q.Dp,Q.isAd(),W,tNF(Q)).then(function(D){nQ(Q,D)})};
nQ=function(Q,W){Q.hn=W;Q.ma(new se(g.pm(Q.hn,function(x){return x.getInfo()})))};
tNF=function(Q){var W={cpn:Q.clientPlaybackNonce,c:Q.Dp.B.c,cver:Q.Dp.B.cver};Q.h3&&(W.ptk=Q.h3,W.oid=Q.Mh,W.ptchn=Q.w2,W.pltype=Q.IG,Q.W2&&(W.m=Q.W2));return W};
g.V9=function(Q){return S4(Q)&&Q.I5?(Q={},Q.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",Q):Q.U&&Q.U.Qp||null};
WD1=function(Q){var W=PX(Q);return W&&W.text?g.od(W.text):Q.paidContentOverlayText};
xSn=function(Q){var W=PX(Q);return W&&W.durationMs?WZ(W.durationMs):Q.paidContentOverlayDurationMs};
PX=function(Q){var W,x,D;return Q.playerResponse&&Q.playerResponse.paidContentOverlay&&Q.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.e((W=Q.g7)==null?void 0:(x=W.playerOverlays)==null?void 0:(D=x.playerOverlayRenderer)==null?void 0:D.playerDisclosure,DSz)||null};
vX=function(Q){var W="";if(Q.PU)return Q.PU;Q.isLivePlayback&&(W=Q.allowLiveDvr?"dvr":Q.isPremiere?"lp":Q.LS?"window":"live");Q.Nr&&(W="post");return W};
g.CQ=function(Q,W){return typeof Q.keywords[W]!=="string"?null:Q.keywords[W]};
KD5=function(Q){return!!Q.lF||!!Q.lr||!!Q.gr||!!Q.wr||Q.q8||Q.G.focEnabled||Q.G.rmktEnabled};
g.Jf=function(Q){return!!(Q.gE||Q.ra||Q.xG||Q.hlsvp||Q.Yr())};
Zd=function(Q){if(Q.j("html5_onesie")&&Q.errorCode)return!1;var W=g.FH(Q.KS,"ypc");Q.ypcPreview&&(W=!1);return Q.ET()&&!Q.loading&&(g.Jf(Q)||g.FH(Q.KS,"heartbeat")||W)};
YN=function(Q,W){Q=Kl(Q);var x={};if(W){W=g.V(W.split(","));for(var D=W.next();!D.done;D=W.next())(D=D.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(x[D[1]]={width:D[2],height:D[3]})}W=g.V(Q);for(D=W.next();!D.done;D=W.next()){D=D.value;var K=x[D.itag];K&&(D.width=K.width,D.height=K.height)}return Q};
pQ=function(Q){var W=Q.getAvailableAudioTracks();W=W.concat(Q.CR);for(var x=0;x<Q.Hy.length;x++)for(var D=Q.Hy[x],K=0;K<W.length;K++){var l=W[K],M=l.RW.id===D.audioTrackId;if(l.RW.isDefault&&x===Q.rj||M){if(D.captionTrackIndices)for(M=0;M<D.captionTrackIndices.length;M++)l.captionTracks[M]=Q.captionTracks[D.captionTrackIndices[M]];D.defaultCaptionTrackIndex!==void 0&&(l.D=Q.captionTracks[D.defaultCaptionTrackIndex]);D.forcedCaptionTrackIndex!==void 0&&(l.B=Q.captionTracks[D.forcedCaptionTrackIndex]);
l.U=D.visibility||"UNKNOWN";l.captionsInitialState=D.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}};
UBh=function(Q,W){Q.showShareButton=!!W;var x,D,K=((x=g.e(W,g.IQ))==null?void 0:x.navigationEndpoint)||((D=g.e(W,g.IQ))==null?void 0:D.command);K&&(Q.FV=!!g.e(K,lOO))};
J3v=function(Q,W){var x=W.raw_embedded_player_response;if(!x){var D=W.embedded_player_response;D&&(x=JSON.parse(D))}x&&(Q.fA=x);if(Q.fA){Q.embeddedPlayerConfig=Q.fA.embeddedPlayerConfig||null;if(x=Q.fA.videoFlags)x.playableInEmbed&&(Q.allowEmbed=!0),x.isPrivate&&(Q.isPrivate=!0),x.userDisplayName&&(W.user_display_name=x.userDisplayName),x.userDisplayImage&&(W.user_display_image=x.userDisplayImage);if(x=Q.fA.embedPreview){x=x.thumbnailPreviewRenderer;xBD(Q,x.controlBgHtml);if(D=x.defaultThumbnail)Q.T=
n1(D);Q.j("embeds_web_enable_search_button")&&x.searchButton&&(D=g.e(x.searchButton,g.IQ))&&(Q.zI=g.e(D.navigationEndpoint,g.hf));(D=g.e(x==null?void 0:x.videoDetails,jP1))&&Iyl(Q,W,D);D=g.e(x==null?void 0:x.videoDetails,Ms1);Q.vZ=!!x.addToWatchLaterButton;UBh(Q,x.shareButton);if(D==null?0:D.musicVideoType)Q.musicVideoType=D.musicVideoType;var K,l,M,w,S;if(D=g.e((K=Q.getEmbeddedPlayerResponse())==null?void 0:(l=K.embedPreview)==null?void 0:(M=l.thumbnailPreviewRenderer)==null?void 0:(w=M.playButton)==
null?void 0:(S=w.buttonRenderer)==null?void 0:S.navigationEndpoint,g.tQ))cKO(Q,D),Q.videoId=D.videoId||Q.videoId;x.videoDurationSeconds&&(Q.lengthSeconds=WZ(x.videoDurationSeconds));x.webPlayerActionsPorting&&WFa(Q,x.webPlayerActionsPorting);if(K=g.e(x==null?void 0:x.playlist,Rin)){Q.Tc=!0;l=[];M=Number(K.currentIndex);if(K.contents)for(w=0,S=K.contents.length;w<S;w++)if(x=K.contents[w].playlistPanelVideoRenderer){D=x.shortBylineText?g.od(x.shortBylineText):"";var b=x.title?g.od(x.title):"";l.push({author:D,
encrypted_id:x.videoId,title:b,channel_path:w===M?W.channel_path:"",profile_picture:w===M?W.profile_picture:"",is_private:w===M?Q.isPrivate:!0,is_dni:w===M?Q.HZ:!1,dni_color:w===M?Q.hx:""})}W={index:K.currentIndex,list:K.playlistId,playlist_length:K.totalVideos,video:l};K.titleText&&(W.title=g.od(K.titleText));K.shortBylineText&&(W.author=g.od(K.shortBylineText));Q.ut=W}var z,k,X;if(W=g.e((z=Q.getEmbeddedPlayerResponse())==null?void 0:(k=z.embedPreview)==null?void 0:(X=k.thumbnailPreviewRenderer)==
null?void 0:X.infoPanel,B9h)){Q.Et=Number(W==null?void 0:W.durationMs)||NaN;if(W==null?0:W.infoPanelOverviewViewModel)Q.J2=W==null?void 0:W.infoPanelOverviewViewModel;if(W==null?0:W.infoPanelDetailsViewModel)Q.Ct=W==null?void 0:W.infoPanelDetailsViewModel}}if(Q.fA.previewPlayabilityStatus){if(Q.t3=Q.fA.previewPlayabilityStatus,z=Q.t3,!["OK","LIVE_STREAM_OFFLINE"].includes(z.status)){Q.errorCode=mEl(z.errorCode);k=z.errorScreen;if(X=k==null?void 0:k.playerErrorMessageRenderer){Q.pT=X;if(W=X.reason)Q.errorReason=
g.od(W);if(X=X.subreason)Q.J8=g.od(X)}else Q.errorReason=z.reason||null;switch(z.status){case "LOGIN_REQUIRED":Q.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":Q.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var u;(k==null?0:(u=k.playerKavRenderer)==null?0:u.kavUrl)?Q.errorDetail="4":Q.errorDetail="3";break;default:Q.errorDetail=z.isBlockedInRestrictedMode?"5":"0"}}}else Q.fA.playabilityStatus&&(Q.qy=Q.fA.playabilityStatus,wen(Q)&&(Q.errorDetail="0",Q.qy&&((u=Q.qy.embeddedPlayerErrorMessageRenderer)?
Q.pT=g.e(u,SfF):Q.errorReason=Q.qy.reason||null)));(u=Q.fA.attestation)&&O$z(Q,u);(u=Q.fA.permissions)&&u.allowImaMonetization&&(Q.allowImaMonetization=!0)}};
Iyl=function(Q,W,x){var D=x.channelThumbnail;D&&(D=D.thumbnails)&&(D=D[0])&&(W.profile_picture=D.url);var K;if(D=g.e((K=g.e(x==null?void 0:x.channelThumbnailEndpoint,b_1))==null?void 0:K.urlEndpoint,g.$_))W.channel_path=D.url;if(K=x.collapsedRenderer)if(K=g.e(K,sPQ)){if(D=K.title)W.title=g.od(D);if(K=K.subtitle)W.subtitle=g.od(K)}if(x=x.expandedRenderer)if(x=g.e(x,zi1)){if(K=x.title)W.expanded_title=g.od(K);if(K=x.subtitle)W.expanded_subtitle=g.od(K);if(x=x.subscribeButton)Q.subscribeButtonRenderer=
g.e(x,g.a4),Q.subscribeButtonRenderer&&(W.ucid=Q.subscribeButtonRenderer.channelId,W.subscribed=Q.subscribeButtonRenderer.subscribed,Q.bk=!!Q.subscribeButtonRenderer.notificationPreferenceToggleButton,Q.subscribeButtonRenderer.notificationPreferenceToggleButton&&Q.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(W=Q.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,W.isToggled?(Q.tJ=W.toggledServiceEndpoint||null,Q.Py=W.defaultServiceEndpoint||
null):(Q.tJ=W.defaultServiceEndpoint||null,Q.Py=W.toggledServiceEndpoint||null)))}};
g.Gr=function(Q){return s_(Q)&&!Q.allowLiveDvr};
dG=function(Q){return s_(Q)&&Q.allowLiveDvr};
s_=function(Q){return Q.j("html5_live_head_playable")&&zr(Q)&&Q.Dp.uj==="yt"?Q.isLiveHeadPlayable:Q.isLivePlayback};
OUD=function(Q,W){Q.j("html5_audio_tracks_sort_by_name")&&W.sort(function(x,D){return x.toString().localeCompare(D.toString(),Q.Dp.hostLanguage)})};
g.iG=function(Q){return!!Q.B&&eWl(Q.B)};
g.Af=function(Q){return!!Q.B&&fRQ(Q.B)};
g.HX=function(Q){return!!Q.B&&ZSh(Q.B)};
g.uG=function(Q){return!!Q.B&&L$Q(Q.B)};
g.ko4=function(Q){if(Q.OR)return null;var W=Q.ea;W||(W=Q.playerResponse&&Q.playerResponse.endscreen&&Q.playerResponse.endscreen.endscreenUrlRenderer&&Q.playerResponse.endscreen.endscreenUrlRenderer.url);return W||null};
g.XeF=function(Q){return Q.OR?null:Q.playerResponse&&Q.playerResponse.endscreen&&Q.playerResponse.endscreen.endscreenRenderer||null};
g.U_=function(Q){return Q.j("enable_wn_infocards")};
g.qJ=function(Q){var W,x,D,K;return(g.U_(Q)?(W=Q.g7)==null?void 0:(x=W.cards)==null?void 0:x.cardCollectionRenderer:(D=Q.playerResponse)==null?void 0:(K=D.cards)==null?void 0:K.cardCollectionRenderer)||null};
g.BX=function(Q){if(!Q.playerResponse||!Q.playerResponse.annotations)return null;Q=g.V(Q.playerResponse.annotations);for(var W=Q.next();!W.done;W=Q.next())if(W=W.value,W.playerAnnotationsExpandedRenderer&&W.playerAnnotationsExpandedRenderer.featuredChannel)return W.playerAnnotationsExpandedRenderer;return null};
$N=function(Q){return Q.adFormat&&(Q.cD?Q.adFormat!=="1_5":Q.adFormat!="1_5")?"adunit":Q.eventLabel||Q.Dp.fS};
g.I4=function(Q){return $N(Q)==="shortspage"};
KQ=function(Q){return Q.c9()&&Q.C().supportsGaplessShorts()};
mW=function(Q){if(Q.isAd()&&(Q.cD?Q.videoId!==Q.Dp.Y6:Q.videoId!=Q.Dp.Y6))return Q.Dp.Y6};
NJ=function(Q){return Q.g5||$N(Q)==="detailpage"||$N(Q)==="shortspage"||Q.mutedAutoplay};
cX=function(Q){var W=(W=Q.j("enable_cleanup_masthead_autoplay_hack_fix"))&&$N(Q)==="adunit"?Q.TN:NJ(Q)?$N(Q)==="detailpage"||$N(Q)==="shortspage"?Q.isAutonav||Q.Sk>0:W||Q.adFormat!=="17_8"||Q.isAutonav||g.tC(Q.Dp)||Q.TN?Q.uG?!1:Q.Dp.ra||Q.Dp.YY||!g.d5(Q.Dp)?!W&&$N(Q)==="adunit"&&Q.lF?!1:!0:!1:!1:(Q.uG?0:Q.Ke)&&g.d5(Q.Dp)?!0:!1;Q.j("html5_log_detailpage_autoplay")&&$N(Q)==="detailpage"&&Q.qj("autoplay_info",{autoplay:Q.g5,autonav:Q.isAutonav,wasDompaused:Q.uG,result:W});return W};
g.ZM=function(Q){return Q.oauthToken||Q.Dp.Qx};
uR4=function(Q){if(Q.j("html5_stateful_audio_normalization")){var W=1,x=g.X0(Q.Dp.experiments,"html5_default_ad_gain");x&&Q.isAd()&&(W=x);var D;if(x=((D=Q.N)==null?void 0:D.audio.U)||Q.nG){D=(0,g.a8)();Q.F$=2;var K=D-Q.Dp.P9<=Q.maxStatefulTimeThresholdSec*1E3;Q.applyStatefulNormalization&&K?Q.F$=4:K||(Q.Dp.CR=Infinity,Q.Dp.P9=NaN);K=(Q.F$===4?g.wS(Q.Dp.CR,Q.minimumLoudnessTargetLkfs,Q.loudnessTargetLkfs):Q.loudnessTargetLkfs)-x;if(Q.F$!==4){var l,M,w,S,b=((l=Q.playerResponse)==null?void 0:(M=l.playerConfig)==
null?void 0:(w=M.audioConfig)==null?void 0:(S=w.loudnessNormalizationConfig)==null?void 0:S.statelessLoudnessAdjustmentGain)||0;K+=b}K=Math.min(K,0);Q.preserveStatefulLoudnessTarget&&(Q.Dp.CR=x+K,Q.Dp.P9=D);Q=Math.min(1,Math.pow(10,K/20))||W}else Q=osv(Q)}else Q=osv(Q);return Q};
osv=function(Q){var W=1,x=g.X0(Q.Dp.experiments,"html5_default_ad_gain");x&&Q.isAd()&&(W=x);var D;if(x=((D=Q.N)==null?void 0:D.audio.D)||Q.wx)Q.F$=1;return Math.min(1,Math.pow(10,-x/20))||W};
lG=function(Q){var W=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],x=Fm(Q.Dp)==="TVHTML5_SIMPLY"&&Q.Dp.B.ctheme==="MUSIC";Q.YY||!g.Il(Q.Dp)&&!x||!W.includes(Q.musicVideoType)&&!Q.isExternallyHostedPodcast||(Q.YY=!0);if(W=g.fl())W=/Starboard\/([0-9]+)/.exec(g.Ae()),W=(W?parseInt(W[1],10):NaN)<10;x=Q.Dp;x=(Fm(x)==="TVHTML5_CAST"||Fm(x)==="TVHTML5"&&(x.B.cver.startsWith("6.20130725")||x.B.cver.startsWith("6.20130726")))&&Q.Dp.B.ctheme==="MUSIC";var D;if(D=!Q.YY)x||(x=Q.Dp,x=Fm(x)===
"TVHTML5"&&x.B.cver.startsWith("7")),D=x;D&&!W&&(W=Q.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",x=(Q.j("cast_prefer_audio_only_for_atv_and_uploads")||Q.j("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&Q.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",W||x||Q.isExternallyHostedPodcast)&&(Q.YY=!0);return Q.Dp.deviceIsAudioOnly||Q.YY&&Q.Dp.G};
g.Yfv=function(Q){var W;if(!(W=Q.j("html5_enable_sabr_live_captions")&&Q.lN()&&MJ(Q))){var x,D,K;W=((x=Q.playerResponse)==null?void 0:(D=x.playerConfig)==null?void 0:(K=D.compositeVideoConfig)==null?void 0:K.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return W};
rG=function(Q){var W,x,D;return!!((W=Q.playerResponse)==null?0:(x=W.playerConfig)==null?0:(D=x.mediaCommonConfig)==null?0:D.splitScreenEligible)};
Tr=function(Q){var W;return!((W=Q.playerResponse)==null||!W.compositePlayabilityStatus)};
nsh=function(Q){return isNaN(Q)?0:Math.max((Date.now()-Q)/1E3-30,0)};
O_=function(Q){return!(!Q.xI||!Q.Dp.G)&&Q.Yr()};
E_=function(Q){return Q.enablePreroll&&Q.enableServerStitchedDai};
Vs1=function(Q){return Q.qH&&!Q.IH};
MJ=function(Q){var W=Q.j("html5_enable_sabr_on_drive")&&Q.Dp.uj==="gd";if(Q.xo)return Q.qH&&Q.qj("fds",{fds:!0},!0),!1;if(Q.Dp.uj!=="yt"&&!W)return Q.qH&&Q.qj("dsvn",{ns:Q.Dp.uj},!0),!1;if(Q.cotn||!Q.B||Q.B.isOtf||Q.d2&&!Q.j("html5_enable_sabr_csdai"))return!1;if(Q.j("html5_use_sabr_requests_for_debugging"))return!0;if(Q.qH&&Q.IH)return Q.qj("esfw",{usbc:Q.qH,hsu:!!Q.IH},!0),!0;if(Q.j("html5_remove_client_sabr_determination"))return!1;var x=!Q.B.lN&&!Q.n3();W=x&&ta&&Q.j("html5_enable_sabr_vod_streaming_xhr");
x=x&&!ta&&Q.j("html5_enable_sabr_vod_non_streaming_xhr");var D=F6(Q),K=Q.j("html5_enable_sabr_drm_vod_streaming_xhr")&&ta&&Q.n3()&&!Q.B.lN&&(Q.P9==="1"?!1:!0);(W=W||x||D||K)&&!Q.IH&&Q.qj("sabr",{loc:"m"},!0);return W&&!!Q.IH};
F6=function(Q){var W;if(!(W=ta&&Q.lN()&&Q.n3()&&(Q.P9==="1"?!1:!0)&&Q.j("html5_sabr_live_drm_streaming_xhr"))){W=Q.lN()&&!Q.n3()&&ta;var x=Q.lN()&&Q.latencyClass!=="ULTRALOW"&&!Q.isLowLatencyLiveStream&&Q.j("html5_sabr_live_normal_latency_streaming_xhr"),D=Q.isLowLatencyLiveStream&&Q.j("html5_sabr_live_low_latency_streaming_xhr"),K=Q.latencyClass==="ULTRALOW"&&Q.j("html5_sabr_live_ultra_low_latency_streaming_xhr");W=W&&(x||D||K)}x=W;W=Q.enableServerStitchedDai&&x&&Q.j("html5_enable_sabr_ssdai_streaming_xhr");
x=!Q.enableServerStitchedDai&&x;D=Q.lN()&&!ta&&Q.j("html5_enable_sabr_live_non_streaming_xhr");Q=ta&&(Q.aQ()||rG(Q)&&Q.j("html5_enable_sabr_for_lifa_eligible_streams"));return W||x||D||Q};
g.TQ=function(Q){return Q.Uw&&MJ(Q)};
fyn=function(Q){var W;if(W=!!Q.cotn)W=Q.videoId,W=!!W&&g.ib(W)===1;return W&&!Q.xI};
g.tf=function(Q){if(!Q.B||!Q.U||!Q.N)return!1;var W=Q.B.B,x=!!W[Q.U.id]&&ay(W[Q.U.id].Db.B);W=!!W[Q.N.id]&&ay(W[Q.N.id].Db.B);return(Q.U.itag==="0"||x)&&W};
Q0=function(Q){return Q.t3?["OK","LIVE_STREAM_OFFLINE"].includes(Q.t3.status):!0};
wen=function(Q){return(Q=Q.qy)&&Q.showError?Q.showError:!1};
bG=function(Q,W){return Q.j(W)?!0:(Q.fflags||"").includes(W+"=true")};
P8l=function(Q){return Q.j("html5_heartbeat_iff_heartbeat_params_filled")};
iUs=function(Q,W){W.inlineMetricEnabled&&(Q.inlineMetricEnabled=!0);W.playback_progress_0s_url&&(Q.wr=new lyQ(W));if(W=W.video_masthead_ad_quartile_urls)Q.lr=W.quartile_0_url,Q.Sa=W.quartile_25_url,Q.aG=W.quartile_50_url,Q.VY=W.quartile_75_url,Q.Ay=W.quartile_100_url,Q.gr=W.quartile_0_urls,Q.vy=W.quartile_25_urls,Q.ju=W.quartile_50_urls,Q.Gq=W.quartile_75_urls,Q.LI=W.quartile_100_urls};
dBD=function(Q){var W={};Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next()){x=x.value;var D=x.split("=");D.length===2?W[D[0]]=D[1]:W[x]=!0}return W};
hma=function(Q){if(Q){if(sdv(Q))return Q;Q=zs5(Q);if(sdv(Q,!0))return Q}return""};
g.vsF=function(Q){return Q.captionsLanguagePreference||Q.Dp.captionsLanguagePreference||g.CQ(Q,"yt:cc_default_lang")||Q.Dp.Kn};
Wd=function(Q){return!(!Q.isLivePlayback||!Q.hasProgressBarBoundaries())};
g.Q9=function(Q){var W;return Q.s_||((W=Q.suggestions)==null?void 0:W[0])||null};
g.xW=function(Q){return Q.HZ&&(Q.j("embeds_enable_pfp_always_unbranded")||Q.Dp.F$)};
Da=function(Q,W){Q.j("html5_log_autoplay_src")&&KQ(Q)&&Q.qj("apsrc",{src:W})};
g.Kq=function(Q){var W,x;return!!((W=Q.embeddedPlayerConfig)==null?0:(x=W.embeddedPlayerFlags)==null?0:x.enableMusicUx)};
g.j9=function(Q){var W=Q.C(),x=g.lL(W),D=W.I5;(W.j("embeds_web_enable_iframe_api_send_full_embed_url")||W.j("embeds_web_enable_rcat_validation_in_havs")||W.j("embeds_enable_autoplay_and_visibility_signals"))&&g.BL(W)&&(D&&(x.thirdParty=Object.assign({},x.thirdParty,{embedUrl:D})),fuQ(x,Q));if(D=Q.fS)x.clickTracking={clickTrackingParams:D};D=x.client||{};var K="EMBED",l=$N(Q);l==="leanback"?K="WATCH":W.j("gvi_channel_client_screen")&&l==="profilepage"?K="CHANNEL":Q.Pt?K="LIVE_MONITOR":l==="detailpage"?
K="WATCH_FULL_SCREEN":l==="adunit"?K="ADUNIT":l==="sponsorshipsoffer"&&(K="UNKNOWN");D.clientScreen=K;if(W=Q.kidsAppInfo)D.kidsAppInfo=JSON.parse(W);(K=Q.Pi)&&!W&&(D.kidsAppInfo={contentSettings:{ageUpMode:C8h[K]}});if(W=Q.U_)D.unpluggedAppInfo={enableFilterMode:!0};(K=Q.unpluggedFilterModeType)&&!W&&(D.unpluggedAppInfo={filterModeType:Jz1[K]});if(W=Q.uj)D.unpluggedLocationInfo=W;x.client=D;D=x.request||{};Q.RQ&&(D.isPrefetch=!0);if(W=Q.mdxEnvironment)D.mdxEnvironment=W;if(W=Q.mdxControlMode)D.mdxControlMode=
pen[W];x.request=D;D=x.user||{};if(W=Q.pS)D.credentialTransferTokens=[{token:W,scope:"VIDEO"}];if(W=Q.Kn)D.delegatePurchases={oauthToken:W},D.kidsParent={oauthToken:W};x.user=D;if(D=Q.contextParams)x.activePlayers=[{playerContextParams:D}];if(Q=Q.clientScreenNonce)x.clientScreenNonce=Q;return x};
g.lL=function(Q){var W=g.EH(),x=W.client||{};if(Q.forcedExperiments){var D=Q.forcedExperiments.split(","),K=[];D=g.V(D);for(var l=D.next();!l.done;l=D.next())K.push(Number(l.value));x.experimentIds=K}if(K=Q.homeGroupInfo)x.homeGroupInfo=JSON.parse(K);if(K=Q.getPlayerType())x.playerType=K;if(K=Q.B.ctheme)x.theme=K;if(K=Q.livingRoomAppMode)x.tvAppInfo=Object.assign({},x.tvAppInfo,{livingRoomAppMode:K});K=Q.deviceYear;Q.j("html5_propagate_device_year")&&K&&(x.tvAppInfo=Object.assign({},x.tvAppInfo,{deviceYear:K}));
if(K=Q.livingRoomPoTokenId)x.tvAppInfo=Object.assign({},x.tvAppInfo,{livingRoomPoTokenId:K});W.client=x;x=W.user||{};Q.enableSafetyMode&&(x=Object.assign({},x,{enableSafetyMode:!0}));Q.pageId&&(x=Object.assign({},x,{onBehalfOfUser:Q.pageId}));W.user=x;x=Q.I5;Q.j("embeds_web_enable_iframe_api_send_full_embed_url")||Q.j("embeds_web_enable_rcat_validation_in_havs")||Q.j("embeds_enable_autoplay_and_visibility_signals")||!x||(W.thirdParty={embedUrl:x});return W};
Aza=function(Q,W,x){var D=Q.videoId,K=g.j9(Q),l=Q.C(),M={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(aK()),referer:document.location.toString(),signatureTimestamp:20150};g.ck();Q.isAutonav&&(M.autonav=!0);g.g3(0,141)&&(M.autonavState=g.g3(0,140)?"STATE_OFF":"STATE_ON");M.autoCaptionsDefaultOn=g.g3(0,66);cX(Q)&&(M.autoplay=!0);l.G&&Q.cycToken&&(M.cycToken=Q.cycToken);l.enablePrivacyFilter&&(M.enablePrivacyFilter=!0);Q.isFling&&(M.fling=!0);var w=Q.forceAdsUrl;if(w){var S={},b=[];w=w.split(",");
w=g.V(w);for(var z=w.next();!z.done;z=w.next()){z=z.value;var k=z.split("|");k.length!==3||z.includes("=")||(k[0]="breaktype="+k[0],k[1]="offset="+k[1],k[2]="url="+k[2]);z={adtype:"video_ad"};k=g.V(k);for(var X=k.next();!X.done;X=k.next()){var u=g.V(X.value.split("="));X=u.next().value;u=l5n(u);z[X]=u.join("=")}k=z.url;X=z.presetad;u=z.viralresponseurl;var Y=Number(z.campaignid);if(z.adtype==="in_display_ad")k&&(S.url=k),X&&(S.presetAd=X),u&&(S.viralAdResponseUrl=u),Y&&(S.viralCampaignId=String(Y));
else if(z.adtype==="video_ad"){var v={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(z.offset)||0)}};if(z=hi4[z.breaktype])v.breakType=z;k&&(v.url=k);X&&(v.presetAd=X);u&&(v.viralAdResponseUrl=u);Y&&(v.viralCampaignId=String(Y));b.push(v)}}M.forceAdParameters={videoAds:b,inDisplayAd:S}}Q.isInlinePlaybackNoAd&&(M.isInlinePlaybackNoAd=!0);Q.isLivingRoomDeeplink&&(M.isLivingRoomDeeplink=!0);S=Q.hj;if(S!=null){S={startWalltime:String(S)};if(b=Q.Pz)S.manifestDuration=String(b||14400);M.liveContext=
S}if(Q.mutedAutoplay){M.mutedAutoplay=!0;S=l.getWebPlayerContextConfig();var J,h;(S==null?0:(J=S.embedsHostFlags)==null?0:J.allowMutedAutoplayDurationMode)&&(S==null?0:(h=S.embedsHostFlags)==null?0:h.allowMutedAutoplayDurationMode.includes(aO5[Q.mutedAutoplayDurationMode]))&&(M.mutedAutoplayDurationMode=aO5[Q.mutedAutoplayDurationMode])}if(Q.uG?0:Q.Ke)M.splay=!0;J=Q.vnd;J===5&&(M.vnd=J);J={};if(h=Q.isMdxPlayback)J.triggeredByMdx=h;if(h=Q.uY)J.skippableAdsSupported=h.split(",").includes("ska");if(b=
Q.Yp){h=Q.Yw;S=[];b=g.V(ZDO(b));for(w=b.next();!w.done;w=b.next()){w=w.value;z=w.platform;w={applicationState:w.t5?"INACTIVE":"ACTIVE",clientFormFactor:GoO[z]||"UNKNOWN_FORM_FACTOR",clientName:rD5[w.eW]||"UNKNOWN_INTERFACE",clientVersion:w.deviceVersion||"",platform:dSs[z]||"UNKNOWN_PLATFORM"};z={};if(h){k=void 0;try{k=JSON.parse(h)}catch(G){g.Bp(G)}k&&(z={params:[{key:"ms",value:k.ms}]},k.advertising_id&&(z.advertisingId=k.advertising_id),k.limit_ad_tracking!==void 0&&k.limit_ad_tracking!==null&&
(z.limitAdTracking=k.limit_ad_tracking),w.osName=k.os_name,w.userAgent=k.user_agent,w.windowHeightPoints=k.window_height_points,w.windowWidthPoints=k.window_width_points)}S.push({adSignalsInfo:z,remoteClient:w})}J.remoteContexts=S}h=Q.sourceContainerPlaylistId;S=Q.serializedMdxMetadata;if(h||S)b={},h&&(b.mdxPlaybackContainerInfo={sourceContainerPlaylistId:h}),S&&(b.serializedMdxMetadata=S),J.mdxPlaybackSourceContext=b;M.mdxContext=J;J=W.width;J>0&&(M.playerWidthPixels=Math.round(J));if(W=W.height)M.playerHeightPixels=
Math.round(W);x!==0&&(M.vis=x);if(x=l.widgetReferrer)M.widgetReferrer=x.substring(0,128);g.d5(l)&&M&&(M.ancestorOrigins=l.ancestorOrigins);Q.defaultActiveSourceVideoId&&(M.compositeVideoContext={defaultActiveSourceVideoId:Q.defaultActiveSourceVideoId});if(l=l.getWebPlayerContextConfig())M.encryptedHostFlags=l.encryptedHostFlags;D={videoId:D,context:K,playbackContext:{contentPlaybackContext:M}};Q.reloadPlaybackParams&&(D.playbackContext.reloadPlaybackContext={reloadPlaybackParams:Q.reloadPlaybackParams});
Q.contentCheckOk&&(D.contentCheckOk=!0);if(K=Q.clientPlaybackNonce)D.cpn=K;if(K=Q.playerParams)D.params=K;if(K=Q.playlistId)D.playlistId=K;Q.racyCheckOk&&(D.racyCheckOk=!0);K=Q.C();if(M=K.embedConfig)D.serializedThirdPartyEmbedConfig=M;D.captionParams={};M=g.g3(g.ck(),65);Q.deviceCaptionsOn!=null?D.captionParams.deviceCaptionsOn=Q.deviceCaptionsOn:g.ET(K)&&(D.captionParams.deviceCaptionsOn=M!=null?!M:!1);Q.nJ&&(D.captionParams.deviceCaptionsLangPref=Q.nJ);Q.ZY.length?D.captionParams.viewerSelectedCaptionLangs=
Q.ZY:g.ET(K)&&(M=g.fJ(),M==null?0:M.length)&&(D.captionParams.viewerSelectedCaptionLangs=M);M=Q.fetchType==="onesie"&&Q.j("html5_onesie_attach_po_token");l=Q.fetchType!=="onesie"&&Q.j("html5_non_onesie_attach_po_token");if(M||l)M=Q.C(),M.gH&&(D.serviceIntegrityDimensions={},D.serviceIntegrityDimensions.poToken=M.gH);K.j("fetch_att_independently")&&(D.attestationRequest={omitBotguardData:!0});D.playbackContext||(D.playbackContext={});D.playbackContext.devicePlaybackCapabilities=i_h(Q);D.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===
!1&&Q.qj("noVp9",{});return D};
i_h=function(Q){var W=!(Q==null?0:Q.I$())&&(Q==null?void 0:Q.lN())&&Wk(),x;if(x=Q==null?0:Q.j("html5_report_supports_vp9_encoding")){if(Q==null)x=0;else{x=g.R4(Q);Q=Q.C().L;var D=Mo("243");x=D?oy(x,D,Q,!0)===!0:!1}x=x&&!W}return{supportsVp9Encoding:!!x,supportXhr:ta}};
USD=function(Q,W){var x,D,K;return g.U(function(l){if(l.B==1)return x={context:g.lL(Q.C()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:Q.videoId,cpn:Q.clientPlaybackNonce}}]},D=g.Q_(H_n),g.A(l,g.Ti(W,x,D),2);K=l.U;return l.return(K)})};
qfa=function(Q,W,x){var D=g.X0(W.experiments,"bg_vm_reinit_threshold");(!$v||(0,g.a8)()-$v>D)&&USD(Q,x).then(function(K){K&&(K=K.botguardData)&&g.Ny(K,W)},function(K){Q.d7()||(K=i7(K),Q.qj("attf",K.details))})};
Mf=function(Q,W){g.N.call(this);this.app=Q;this.state=W};
wZ=function(Q,W,x){Q.state.B.hasOwnProperty(W)||RN(Q,W,x);Q.state.G[W]=function(){return x.apply(Q,g.i2.apply(0,arguments))};
Q.state.X.add(W)};
S9=function(Q,W,x){Q.state.B.hasOwnProperty(W)||RN(Q,W,x);Q.app.C().G&&(Q.state.S[W]=function(){return x.apply(Q,g.i2.apply(0,arguments))},Q.state.X.add(W))};
RN=function(Q,W,x){Q.state.B[W]=function(){return x.apply(Q,g.i2.apply(0,arguments))}};
g.bL=function(Q,W,x){return Q.state.B[W].apply(Q.state.B,g.C(x))};
sX=function(){g.hU.call(this);this.L=new Map};
z4=function(){g.N.apply(this,arguments);this.element=null;this.X=new Set;this.G={};this.S={};this.B={};this.T=new Set;this.D=new sX;this.U=new sX;this.N=new sX;this.L=new sX};
B7h=function(Q,W,x){typeof Q==="string"&&(Q={mediaContentUrl:Q,startSeconds:W,suggestedQuality:x});a:{if((W=Q.mediaContentUrl)&&(W=/\/([ve]|embed)\/([^#?]+)/.exec(W))&&W[2]){W=W[2];break a}W=null}Q.videoId=W;return kW(Q)};
kW=function(Q,W,x){if(typeof Q==="string")return{videoId:Q,startSeconds:W,suggestedQuality:x};W={};x=g.V($S1);for(var D=x.next();!D.done;D=x.next())D=D.value,Q[D]&&(W[D]=Q[D]);return W};
IOl=function(Q,W,x,D){if(g.r4(Q)&&!Array.isArray(Q)){W="playlist list listType index startSeconds suggestedQuality".split(" ");x={};for(D=0;D<W.length;D++){var K=W[D];Q[K]&&(x[K]=Q[K])}return x}W={index:W,startSeconds:x,suggestedQuality:D};typeof Q==="string"&&Q.length===16?W.list="PL"+Q:W.playlist=Q;return W};
Xh=function(){Mf.apply(this,arguments)};
N7a=function(Q){wZ(Q,"cueVideoById",Q.yH);wZ(Q,"loadVideoById",Q.mip);wZ(Q,"cueVideoByUrl",Q.N6);wZ(Q,"loadVideoByUrl",Q.Dij);wZ(Q,"playVideo",Q.Rxj);wZ(Q,"pauseVideo",Q.pauseVideo);wZ(Q,"stopVideo",Q.X33);wZ(Q,"clearVideo",Q.clearVideo);wZ(Q,"getVideoBytesLoaded",Q.PP);wZ(Q,"getVideoBytesTotal",Q.AV);wZ(Q,"getVideoLoadedFraction",Q.Kk);wZ(Q,"getVideoStartBytes",Q.Sc);wZ(Q,"cuePlaylist",Q.cuePlaylist);wZ(Q,"loadPlaylist",Q.BG9);wZ(Q,"nextVideo",Q.IbS);wZ(Q,"previousVideo",Q.aJ3);wZ(Q,"playVideoAt",
Q.ME3);wZ(Q,"setShuffle",Q.setShuffle);wZ(Q,"setLoop",Q.setLoop);wZ(Q,"getPlaylist",Q.Oj);wZ(Q,"getPlaylistIndex",Q.getPlaylistIndex);wZ(Q,"getPlaylistId",Q.getPlaylistId);wZ(Q,"loadModule",Q.sO);wZ(Q,"unloadModule",Q.vT);wZ(Q,"setOption",Q.rD);wZ(Q,"getOption",Q.z7);wZ(Q,"getOptions",Q.Ki);wZ(Q,"mute",Q.Rwj);wZ(Q,"unMute",Q.Pe9);wZ(Q,"isMuted",Q.isMuted);wZ(Q,"setVolume",Q.nY5);wZ(Q,"getVolume",Q.getVolume);wZ(Q,"seekTo",Q.MKj);wZ(Q,"getPlayerMode",Q.getPlayerMode);wZ(Q,"getPlayerState",Q.I0);wZ(Q,
"getAvailablePlaybackRates",Q.getAvailablePlaybackRates);wZ(Q,"getPlaybackQuality",function(){return Q.getPlaybackQuality(1)});
wZ(Q,"setPlaybackQuality",Q.tK9);wZ(Q,"getAvailableQualityLevels",Q.cP);wZ(Q,"getCurrentTime",Q.vP);wZ(Q,"getDuration",Q.o0);wZ(Q,"addEventListener",Q.EU);wZ(Q,"removeEventListener",Q.Na1);wZ(Q,"getDebugText",Q.jc);wZ(Q,"getVideoData",function(){return mSz(Q)});
wZ(Q,"addCueRange",Q.dB);wZ(Q,"removeCueRange",Q.removeCueRange);wZ(Q,"setSize",Q.setSize);wZ(Q,"getApiInterface",Q.getApiInterface);wZ(Q,"destroy",Q.destroy);wZ(Q,"mutedAutoplay",Q.mutedAutoplay);var W=Q.app.C();W.X||(wZ(Q,"getVideoEmbedCode",Q.getVideoEmbedCode),wZ(Q,"getVideoUrl",Q.Ze));wZ(Q,"getMediaReferenceTime",Q.sj);wZ(Q,"getSize",Q.getSize);wZ(Q,"setFauxFullscreen",Q.CSj);W.j("embeds_enable_move_set_center_crop_to_public")&&wZ(Q,"setCenterCrop",Q.setCenterCrop);W.X||wZ(Q,"logImaAdEvent",
Q.logImaAdEvent);wZ(Q,"preloadVideoById",Q.A27);wZ(Q,"wakeUpControls",Q.wakeUpControls)};
g.oN=function(Q){return(Q=cz2(Q.app.x6()))?Q.Q1():null};
YW=function(Q){var W=g.mr(Q.app.C()),x,D=(x=Q.app.getVideoData())==null?void 0:x.Tc;Q=uL(Q.app);return g.SY(W)&&!D||Q?!1:!0};
mSz=function(Q,W){var x={};if(W=Q.app.ek(W===void 0?1:W)){W=W.getVideoData();if(W.isPrivate)return{};x.video_id=W.videoId;x.author=W.author;x.title=W.title;x.isPlayable=Q0(W);x.errorCode=W.errorCode;if(W.U&&W.U.video){x.video_quality=W.U.video.quality;W=W.U.video;var D=[];W.fps>32&&D.push("hfr");W.isHdr()&&D.push("hdr");W.primaries==="bt2020"&&D.push("wcg");x.video_quality_features=D}}if(Q=Q.getPlaylistId())x.list=Q;return x};
nq=function(){Xh.apply(this,arguments)};
V0=function(Q,W){var x={};if(Q.app.C().pS){Q=g.V(gsa);for(var D=Q.next();!D.done;D=Q.next())D=D.value,W.hasOwnProperty(D)&&(x[D]=W[D]);if(W=x.qoe_cat)Q="",typeof W==="string"&&W.length>0&&(Q=W.split(",").filter(function(K){return yzh.includes(K)}).join(",")),x.qoe_cat=Q;
eis(x)}else for(Q=g.V(fOQ),D=Q.next();!D.done;D=Q.next())D=D.value,W.hasOwnProperty(D)&&(x[D]=W[D]);return x};
eis=function(Q){var W=Q.raw_player_response;if(!W){var x=Q.player_response;x&&(W=JSON.parse(x))}delete Q.player_response;delete Q.raw_player_response;if(W){Q.raw_player_response={streamingData:W.streamingData};var D;if((D=W.playbackTracking)==null?0:D.qoeUrl)Q.raw_player_response=Object.assign({},Q.raw_player_response,{playbackTracking:{qoeUrl:W.playbackTracking.qoeUrl}});var K;if((K=W.videoDetails)==null?0:K.videoId)Q.raw_player_response=Object.assign({},Q.raw_player_response,{videoDetails:{videoId:W.videoDetails.videoId}})}};
Pd=function(Q,W,x){var D=Q.app.LZ(x);if(!D)return 0;Q=D-Q.app.getCurrentTime(x);return W-Q};
LD5=function(Q){var W=W===void 0?5:W;return Q?Z_1[Q]||W:W};
g.vd=function(){nq.apply(this,arguments)};
rzl=function(Q){RN(Q,"getInternalApiInterface",Q.getInternalApiInterface);RN(Q,"addEventListener",Q.L5);RN(Q,"removeEventListener",Q.D_3);RN(Q,"cueVideoByPlayerVars",Q.FP);RN(Q,"loadVideoByPlayerVars",Q.yOt);RN(Q,"preloadVideoByPlayerVars",Q.hx3);RN(Q,"getAdState",Q.getAdState);RN(Q,"sendAbandonmentPing",Q.sendAbandonmentPing);RN(Q,"setLoopRange",Q.setLoopRange);RN(Q,"getLoopRange",Q.getLoopRange);RN(Q,"setAutonavState",Q.setAutonavState);RN(Q,"seekTo",Q.wIp);RN(Q,"seekBy",Q.sz3);RN(Q,"seekToLiveHead",
Q.seekToLiveHead);RN(Q,"requestSeekToWallTimeSeconds",Q.requestSeekToWallTimeSeconds);RN(Q,"seekToStreamTime",Q.seekToStreamTime);RN(Q,"startSeekCsiAction",Q.startSeekCsiAction);RN(Q,"getStreamTimeOffset",Q.getStreamTimeOffset);RN(Q,"getVideoData",Q.hV);RN(Q,"setInlinePreview",Q.setInlinePreview);RN(Q,"getAppState",Q.getAppState);RN(Q,"updateLastActiveTime",Q.updateLastActiveTime);RN(Q,"setBlackout",Q.setBlackout);RN(Q,"setUserEngagement",Q.setUserEngagement);RN(Q,"updateSubtitlesUserSettings",Q.updateSubtitlesUserSettings);
RN(Q,"getPresentingPlayerType",Q.UM);RN(Q,"canPlayType",Q.canPlayType);RN(Q,"updatePlaylist",Q.updatePlaylist);RN(Q,"updateVideoData",Q.updateVideoData);RN(Q,"updateEnvironmentData",Q.updateEnvironmentData);RN(Q,"sendVideoStatsEngageEvent",Q.O2S);RN(Q,"productsInVideoVisibilityUpdated",Q.productsInVideoVisibilityUpdated);RN(Q,"setSafetyMode",Q.setSafetyMode);RN(Q,"isAtLiveHead",function(W){return Q.isAtLiveHead(void 0,W)});
RN(Q,"getVideoAspectRatio",Q.getVideoAspectRatio);RN(Q,"getPreferredQuality",Q.getPreferredQuality);RN(Q,"getPlaybackQualityLabel",Q.getPlaybackQualityLabel);RN(Q,"setPlaybackQualityRange",Q.S45);RN(Q,"onAdUxClicked",Q.onAdUxClicked);RN(Q,"getFeedbackProductData",Q.getFeedbackProductData);RN(Q,"getStoryboardFrame",Q.getStoryboardFrame);RN(Q,"getStoryboardFrameIndex",Q.getStoryboardFrameIndex);RN(Q,"getStoryboardLevel",Q.getStoryboardLevel);RN(Q,"getNumberOfStoryboardLevels",Q.getNumberOfStoryboardLevels);
RN(Q,"getCaptionWindowContainerId",Q.getCaptionWindowContainerId);RN(Q,"getAvailableQualityLabels",Q.getAvailableQualityLabels);RN(Q,"addCueRange",Q.addCueRange);RN(Q,"addUtcCueRange",Q.addUtcCueRange);RN(Q,"showAirplayPicker",Q.showAirplayPicker);RN(Q,"dispatchReduxAction",Q.dispatchReduxAction);RN(Q,"getPlayerResponse",Q.MK);RN(Q,"getWatchNextResponse",Q.T7);RN(Q,"getHeartbeatResponse",Q.G7);RN(Q,"getCurrentTime",Q.Ej);RN(Q,"getDuration",Q.OW);RN(Q,"getPlayerState",Q.getPlayerState);RN(Q,"getPlayerStateObject",
Q.R0);RN(Q,"getVideoLoadedFraction",Q.getVideoLoadedFraction);RN(Q,"getProgressState",Q.getProgressState);RN(Q,"getVolume",Q.getVolume);RN(Q,"setVolume",Q.KJ);RN(Q,"isMuted",Q.isMuted);RN(Q,"mute",Q.Ez);RN(Q,"unMute",Q.CJ);RN(Q,"loadModule",Q.loadModule);RN(Q,"unloadModule",Q.unloadModule);RN(Q,"getOption",Q.xH);RN(Q,"getOptions",Q.getOptions);RN(Q,"setOption",Q.setOption);RN(Q,"loadVideoById",Q.wR);RN(Q,"loadVideoByUrl",Q.Ml);RN(Q,"playVideo",Q.r9);RN(Q,"loadPlaylist",Q.loadPlaylist);RN(Q,"nextVideo",
Q.nextVideo);RN(Q,"previousVideo",Q.previousVideo);RN(Q,"playVideoAt",Q.playVideoAt);RN(Q,"getDebugText",Q.getDebugText);RN(Q,"getWebPlayerContextConfig",Q.getWebPlayerContextConfig);RN(Q,"notifyShortsAdSwipeEvent",Q.notifyShortsAdSwipeEvent);RN(Q,"getVideoContentRect",Q.getVideoContentRect);RN(Q,"setSqueezeback",Q.setSqueezeback);RN(Q,"toggleSubtitlesOn",Q.toggleSubtitlesOn);RN(Q,"isSubtitlesOn",Q.isSubtitlesOn);RN(Q,"reportPlaybackIssue",Q.reportPlaybackIssue);RN(Q,"setAutonav",Q.setAutonav);RN(Q,
"isNotServable",Q.isNotServable);RN(Q,"channelSubscribed",Q.channelSubscribed);RN(Q,"channelUnsubscribed",Q.channelUnsubscribed);RN(Q,"togglePictureInPicture",Q.togglePictureInPicture);RN(Q,"supportsGaplessAudio",Q.supportsGaplessAudio);RN(Q,"supportsGaplessShorts",Q.supportsGaplessShorts);RN(Q,"enqueueVideoByPlayerVars",function(W){return void Q.enqueueVideoByPlayerVars(W)});
RN(Q,"clearQueue",Q.clearQueue);RN(Q,"getAudioTrack",Q.NK);RN(Q,"setAudioTrack",Q.i23);RN(Q,"getAvailableAudioTracks",Q.JV);RN(Q,"getMaxPlaybackQuality",Q.getMaxPlaybackQuality);RN(Q,"getUserPlaybackQualityPreference",Q.getUserPlaybackQualityPreference);RN(Q,"getSubtitlesUserSettings",Q.getSubtitlesUserSettings);RN(Q,"resetSubtitlesUserSettings",Q.resetSubtitlesUserSettings);RN(Q,"setMinimized",Q.setMinimized);RN(Q,"setOverlayVisibility",Q.setOverlayVisibility);RN(Q,"confirmYpcRental",Q.confirmYpcRental);
RN(Q,"queueNextVideo",Q.queueNextVideo);RN(Q,"handleExternalCall",Q.handleExternalCall);RN(Q,"logApiCall",Q.logApiCall);RN(Q,"isExternalMethodAvailable",Q.isExternalMethodAvailable);RN(Q,"setScreenLayer",Q.setScreenLayer);RN(Q,"getCurrentPlaylistSequence",Q.getCurrentPlaylistSequence);RN(Q,"getPlaylistSequenceForTime",Q.getPlaylistSequenceForTime);RN(Q,"shouldSendVisibilityState",Q.shouldSendVisibilityState);RN(Q,"syncVolume",Q.syncVolume);RN(Q,"highlightSettingsMenuItem",Q.highlightSettingsMenuItem);
RN(Q,"openSettingsMenuItem",Q.openSettingsMenuItem);RN(Q,"getEmbeddedPlayerResponse",Q.getEmbeddedPlayerResponse);RN(Q,"getVisibilityState",Q.getVisibilityState);RN(Q,"isMutedByMutedAutoplay",Q.isMutedByMutedAutoplay);Q.j("embeds_enable_emc3ds_muted_autoplay")&&RN(Q,"isMutedByEmbedsMutedAutoplay",Q.isMutedByEmbedsMutedAutoplay);RN(Q,"setGlobalCrop",Q.setGlobalCrop);RN(Q,"setInternalSize",Q.setInternalSize);RN(Q,"setFauxFullscreen",Q.setFauxFullscreen);RN(Q,"setAppFullscreen",Q.setAppFullscreen)};
Jo=function(Q,W,x){Q=g.Cq(Q.Vp(),W);return x?(x.addOnDisposeCallback(Q),null):Q};
g.pq=function(Q,W,x){return Q.app.C().b6?W:g.nD("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:W,SHORTCUT:x})};
T7h=function(Q){Q.Vp().element.setAttribute("aria-live","polite")};
g.ho=function(Q,W){g.vd.call(this,Q,W);rzl(this);S9(this,"addEventListener",this.v1);S9(this,"removeEventListener",this.Kjj);S9(this,"cueVideoByPlayerVars",this.D_);S9(this,"loadVideoByPlayerVars",this.Fdt);S9(this,"preloadVideoByPlayerVars",this.tEj);S9(this,"loadVideoById",this.wR);S9(this,"loadVideoByUrl",this.Ml);S9(this,"playVideo",this.r9);S9(this,"loadPlaylist",this.loadPlaylist);S9(this,"nextVideo",this.nextVideo);S9(this,"previousVideo",this.previousVideo);S9(this,"playVideoAt",this.playVideoAt);
S9(this,"getVideoData",this.N4);S9(this,"seekBy",this.z29);S9(this,"seekTo",this.R23);S9(this,"showControls",this.showControls);S9(this,"hideControls",this.hideControls);S9(this,"cancelPlayback",this.cancelPlayback);S9(this,"getProgressState",this.getProgressState);S9(this,"isInline",this.isInline);S9(this,"setInline",this.setInline);S9(this,"setLoopVideo",this.setLoopVideo);S9(this,"getLoopVideo",this.getLoopVideo);S9(this,"getVideoContentRect",this.getVideoContentRect);S9(this,"getVideoStats",this.VK);
S9(this,"getCurrentTime",this.gb);S9(this,"getDuration",this.OW);S9(this,"getPlayerState",this.HP);S9(this,"getVideoLoadedFraction",this.tV);S9(this,"mute",this.Ez);S9(this,"unMute",this.CJ);S9(this,"setVolume",this.KJ);S9(this,"loadModule",this.loadModule);S9(this,"unloadModule",this.unloadModule);S9(this,"getOption",this.xH);S9(this,"getOptions",this.getOptions);S9(this,"setOption",this.setOption);S9(this,"addCueRange",this.addCueRange);S9(this,"getDebugText",this.getDebugText);S9(this,"getStoryboardFormat",
this.getStoryboardFormat);S9(this,"toggleFullscreen",this.toggleFullscreen);S9(this,"isFullscreen",this.isFullscreen);S9(this,"getPlayerSize",this.getPlayerSize);S9(this,"toggleSubtitles",this.toggleSubtitles);this.app.C().j("embeds_enable_move_set_center_crop_to_public")||S9(this,"setCenterCrop",this.setCenterCrop);S9(this,"setFauxFullscreen",this.setFauxFullscreen);S9(this,"setSizeStyle",this.setSizeStyle);S9(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);S9(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);
N7a(this)};
g.aN=function(Q){Q=Q.x6();var W=Q.CZ.get("endscreen");return W&&W.Wc()?!0:Q.m5()};
g.G4=function(Q,W){Q.getPresentingPlayerType()===3?Q.publish("mdxautoplaycancel"):Q.Wt("onAutonavCancelled",W)};
g.iL=function(Q){var W=dZ(Q.x6());return Q.app.Nn&&!Q.isFullscreen()||Q.getPresentingPlayerType()===3&&W&&W.EG()&&W.y_()||!!Q.getPlaylist()};
g.Ao=function(Q,W){g.bL(Q,"addEmbedsConversionTrackingParams",[W])};
g.UX=function(Q){return(Q=g.Hd(Q.x6()))?Q.FQ():{}};
g.O_4=function(Q){Q=(Q=Q.getVideoData())&&Q.U;return!!Q&&!(!Q.audio||!Q.video)&&Q.mimeType!=="application/x-mpegURL"};
g.qf=function(Q,W,x){Q=Q.hf().element;var D=SJ(Q.children,function(K){K=Number(K.getAttribute("data-layer"));return x-K||1});
D<0&&(D=-(D+1));Ky(Q,W,D);W.setAttribute("data-layer",String(x))};
g.Bd=function(Q){var W=Q.C();if(!W.hn)return!1;var x=Q.getVideoData();if(!x||Q.getPresentingPlayerType()===3)return!1;var D=(!x.isLiveDefaultBroadcast||W.j("allow_poltergust_autoplay"))&&!Wd(x);D=x.isLivePlayback&&(!W.j("allow_live_autoplay")||!D);var K=x.isLivePlayback&&W.j("allow_live_autoplay_on_mweb");Q=Q.getPlaylist();Q=!!Q&&Q.EG();var l=x.g7&&x.g7.playerOverlays||null;l=!!(l&&l.playerOverlayRenderer&&l.playerOverlayRenderer.autoplay);l=x.HZ&&l;return!x.ypcPreview&&(!D||K)&&!g.FH(x.KS,"ypc")&&
!Q&&(!g.d5(W)||l)};
Es5=function(Q){Q=Q.app.w7();if(!Q)return!1;var W=Q.getVideoData();if(!W.U||!W.U.video||W.U.video.B<1080||W.yU)return!1;var x=/^qsa/.test(W.clientPlaybackNonce),D="r";W.U.id.indexOf(";")>=0&&(x=/^[a-p]/.test(W.clientPlaybackNonce),D="x");return x?(Q.qj("iqss",{trigger:D},!0),!0):!1};
$W=function(){me.apply(this,arguments);this.requestHeaders={}};
mh=function(){IN||(IN=new $W);return IN};
Nf=function(Q,W){W?Q.requestHeaders.Authorization="Bearer "+W:delete Q.requestHeaders.Authorization};
g.cd=function(Q){var W=this;this.xf=Q;this.by={yqp:function(){return W.xf}}};
gZ=function(Q){Q.xf.dispose()};
g.y0=function(Q,W,x,D){D=D===void 0?!1:D;g.ze.call(this,W);var K=this;this.J=Q;this.KS=D;this.S=new g.I0(this);this.uj=new g.Wi(this,x,!0,void 0,void 0,function(){K.sW()});
g.y(this,this.S);g.y(this,this.uj)};
e9=function(Q){var W=Q.J.getRootNode();return Q.J.j("web_watch_pip")||Q.J.j("web_shorts_pip")?N9(W):document};
FDh=function(Q){Q.U&&(document.activeElement&&g.jh(Q.element,document.activeElement)&&Q.U.focus(),Q.U.setAttribute("aria-expanded","false"),Q.U=void 0);g.d3(Q.S);Q.T=void 0};
fq=function(Q,W,x){Q.J_()?Q.X0():Q.jt(W,x)};
Za=function(Q,W,x,D){D=new g.L({K:"div",lj:["ytp-linked-account-popup-button"],m3:D,Z:{role:"button",tabindex:"0"}});W=new g.L({K:"div",Y:"ytp-linked-account-popup",Z:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{K:"div",Y:"ytp-linked-account-popup-title",m3:W},{K:"div",Y:"ytp-linked-account-popup-description",m3:x},{K:"div",Y:"ytp-linked-account-popup-buttons",V:[D]}]});g.y0.call(this,Q,{K:"div",Y:"ytp-linked-account-popup-container",V:[W]},100);var K=this;this.dialog=W;g.y(this,this.dialog);
D.listen("click",function(){K.X0()});
g.y(this,D);g.qf(this.J,this.element,4);this.hide()};
g.rZ=function(Q,W,x,D){g.ze.call(this,Q);this.priority=W;x&&g.Lq(this,x);D&&this.iy(D)};
g.T4=function(Q,W,x,D){Q=Q===void 0?{}:Q;W=W===void 0?[]:W;x=x===void 0?!1:x;D=D===void 0?!1:D;W.push("ytp-menuitem");var K=Q;"role"in K||(K.role="menuitem");x||(K=Q,"tabindex"in K||(K.tabindex="0"));Q={K:x?"a":"div",lj:W,Z:Q,V:[{K:"div",Y:"ytp-menuitem-icon",m3:"{{icon}}"},{K:"div",Y:"ytp-menuitem-label",m3:"{{label}}"},{K:"div",Y:"ytp-menuitem-content",m3:"{{content}}"}]};D&&Q.V.push({K:"div",Y:"ytp-menuitem-secondary-icon",m3:"{{secondaryIcon}}"});return Q};
g.Lq=function(Q,W){Q.updateValue("label",W)};
OX=function(Q){g.rZ.call(this,g.T4({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var W=this;this.J=Q;this.U=this.B=!1;this.F0=Q.Xy();Q.createServerVe(this.element,this,!0);this.W(this.J,"settingsMenuVisibilityChanged",function(x){W.rG(x)});
this.W(this.J,"videodatachange",this.N);this.listen("click",this.onClick);this.N()};
EX=function(Q){return Q?g.od(Q):""};
Fh=function(Q){g.N.call(this);this.api=Q};
to=function(Q){Fh.call(this,Q);var W=this;RN(Q,"setAccountLinkState",function(x){W.setAccountLinkState(x)});
RN(Q,"updateAccountLinkingConfig",function(x){W.updateAccountLinkingConfig(x)});
Q.addEventListener("videodatachange",function(x,D){W.onVideoDataChange(D)});
Q.addEventListener("settingsMenuInitialized",function(){W.menuItem=new OX(W.api);g.y(W,W.menuItem)})};
tsO=function(Q){this.api=Q;this.B={}};
Q2=function(Q,W,x,D){W in Q.B||(x=new g.jz(x,D,{id:W,priority:2,namespace:"appad"}),Q.api.HV([x],1),Q.B[W]=x)};
W9=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(this);g.y(this,this.events);this.B=new tsO(this.api);this.events.W(this.api,"legacyadtrackingpingreset",function(){W.B.B={}});
this.events.W(this.api,"legacyadtrackingpingchange",function(x){var D=W.B;Q2(D,"part2viewed",1,0x8000000000000);Q2(D,"engagedview",Math.max(1,x.Y6*1E3),0x8000000000000);if(!x.isLivePlayback){var K=x.lengthSeconds*1E3;KQ(x)&&D.api.j("html5_shorts_gapless_ads_duration_fix")&&(K=D.api.getProgressState().seekableEnd*1E3-x.wC);Q2(D,"videoplaytime25",K*.25,K);Q2(D,"videoplaytime50",K*.5,K);Q2(D,"videoplaytime75",K*.75,K);Q2(D,"videoplaytime100",K,0x8000000000000);Q2(D,"conversionview",K,0x8000000000000);
Q2(D,"videoplaybackstart",1,K);Q2(D,"videoplayback2s",2E3,K);Q2(D,"videoplayback10s",1E4,K)}});
this.events.W(this.api,g.Ru("appad"),this.U);this.events.W(this.api,g.wt("appad"),this.U)};
Dyv=function(Q,W,x){if(!(x in W))return!1;W=W[x];Array.isArray(W)||(W=[W]);W=g.V(W);for(x=W.next();!x.done;x=W.next()){x=x.value;var D={CPN:Q.api.getVideoData().clientPlaybackNonce};x=g.ip(x,D);D=void 0;D=D===void 0?!1:D;(D=ts(Q8(x,QmO),x,D,"Active View 3rd Party Integration URL"))||(D=void 0,D=D===void 0?!1:D,D=ts(Q8(x,WTD),x,D,"Google/YouTube Brand Lift URL"));D||(D=void 0,D=D===void 0?!1:D,D=ts(Q8(x,xy1),x,D,"Nielsen OCR URL"));g.c3(x,void 0,D)}return!0};
x2=function(Q,W){KTz(Q,W).then(function(x){g.c3(W,void 0,void 0,x)})};
D8=function(Q,W){W.forEach(function(x){x2(Q,x)})};
KTz=function(Q,W){return g.dO(Q.api.C())&&SL(W)&&wm(W)?g.lb(Q.api.C(),g.ZM(Q.api.getVideoData())).then(function(x){var D;x&&(D={Authorization:"Bearer "+x});return D},void 0):Uk()};
lQD=function(Q){Fh.call(this,Q);this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"videoready",function(W){if(Q.getPresentingPlayerType()===1){var x,D,K={playerDebugData:{pmlSignal:!!((x=W.getPlayerResponse())==null?0:(D=x.adPlacements)==null?0:D.some(function(l){var M;return l==null?void 0:(M=l.adPlacementRenderer)==null?void 0:M.renderer})),
contentCpn:W.clientPlaybackNonce}};g.wV("adsClientStateChange",K)}})};
Ka=function(Q){g.L.call(this,{K:"button",lj:["ytp-button"],Z:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{K:"div",Y:"ytp-autonav-toggle-button-container",V:[{K:"div",Y:"ytp-autonav-toggle-button",Z:{"aria-checked":"true"}}]}]});this.J=Q;this.U=[];this.B=!1;this.isChecked=!0;Q.createClientVe(this.element,this,113681);this.W(Q,"presentingplayerstatechange",this.fI);this.listen("click",this.onClick);this.J.C().j("web_player_autonav_toggle_always_listen")&&
jmD(this);Jo(Q,this.element,this);this.fI()};
jmD=function(Q){Q.U.push(Q.W(Q.J,"videodatachange",Q.fI));Q.U.push(Q.W(Q.J,"videoplayerreset",Q.fI));Q.U.push(Q.W(Q.J,"onPlaylistUpdate",Q.fI));Q.U.push(Q.W(Q.J,"autonavchange",Q.bE))};
Mbn=function(Q){Q.isChecked=Q.isChecked;Q.Nj("ytp-autonav-toggle-button").setAttribute("aria-checked",String(Q.isChecked));var W=Q.isChecked?"Autoplay is on":"Autoplay is off";Q.updateValue("title",W);Q.updateValue("label",W);Q.J.hA()};
RUv=function(Q){return Q.J.C().j("web_player_autonav_use_server_provided_state")&&FS(Q.sx())};
wc1=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"standardControlsInitialized",function(){var x=new Ka(Q);g.y(W,x);Q.yR(x,"RIGHT_CONTROLS_LEFT")})};
ln=function(Q,W){g.rZ.call(this,g.T4({role:"menuitemcheckbox","aria-checked":"false"}),W,Q,{K:"div",Y:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
jV=function(Q,W){Q.checked=W;Q.element.setAttribute("aria-checked",String(Q.checked))};
Su2=function(Q){var W=!Q.C().wx&&Q.getPresentingPlayerType()!==3;return Q.isFullscreen()||W};
g.Md=function(Q,W,x,D){var K=Q.currentTarget;if((x===void 0||!x)&&g.pb(Q))return Q.preventDefault(),!0;W.pauseVideo();Q=K.getAttribute("href");g.yZ(Q,D,!0);return!1};
g.RY=function(Q,W,x){if(r5(W.C())&&W.getPresentingPlayerType()!==2){if(g.pb(x))return W.isFullscreen()&&!W.C().externalFullscreen&&W.toggleFullscreen(),x.preventDefault(),!0}else{var D=g.pb(x);D&&W.pauseVideo();g.yZ(Q,void 0,!0);D&&(g.ei(Q),x.preventDefault())}return!1};
sm2=function(){var Q=bJF.includes("en")?{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Z:{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"}}]}:{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Z:{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"}}]};Q.Y="ytp-subtitles-button-icon";return Q};
wz=function(){return{K:"div",Y:"ytp-spinner-container",V:[{K:"div",Y:"ytp-spinner-rotator",V:[{K:"div",Y:"ytp-spinner-left",V:[{K:"div",Y:"ytp-spinner-circle"}]},{K:"div",Y:"ytp-spinner-right",V:[{K:"div",Y:"ytp-spinner-circle"}]}]}]}};
SV=function(Q){if(document.createRange){var W=document.createRange();W&&(W.selectNodeContents(Q),Q=window.getSelection())&&(Q.removeAllRanges(),Q.addRange(W))}};
zA=function(Q){var W=Q.j("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";ln.call(this,W,g.bn.cS);var x=this;this.J=Q;this.B=!1;this.U=new g.O3(function(){g.Rr(x.element,"ytp-menuitem-highlighted")},0);
this.F0=Q.Xy();this.setIcon({K:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{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.D,this);this.listen(sG,this.N);g.y(this,this.U)};
k2=function(Q){Fh.call(this,Q);var W=this;this.B=!1;Q.addEventListener("settingsMenuInitialized",function(){zUD(W)});
Q.addEventListener("highlightSettingsMenu",function(x){zUD(W);var D=W.menuItem;x==="menu_item_cinematic_lighting"&&(g.j$(D.element,"ytp-menuitem-highlighted"),g.j$(D.element,"ytp-menuitem-highlight-transition-enabled"),D.U.start())});
RN(Q,"updateCinematicSettings",function(x){W.updateCinematicSettings(x)})};
zUD=function(Q){Q.menuItem||(Q.menuItem=new zA(Q.api),g.y(Q,Q.menuItem),Q.menuItem.Yf(Q.B))};
Xe=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"applicationvideodatachange",function(x,D){W.XT(x,D)})};
oY=function(Q){Fh.call(this,Q);this.events=new g.I0(Q);g.y(this,this.events);RN(Q,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));RN(Q,"setCreatorEndscreenHideButton",this.B.bind(this))};
un=function(Q,W,x,D){ln.call(this,"Stable Volume",g.bn.qN);g.j$(this.element,"ytp-drc-menu-item");this.F0=Q.Xy();this.N=W;this.B=x;this.hasDrcAudioTrack=D;Q.addEventListener("videodatachange",this.U.bind(this));Q.j("mta_drc_mutual_exclusion_removal")&&this.W(Q,"onPlaybackAudioChange",this.U);Q=this.B()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({K:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{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.D,this);jV(this,Q);this.F0.XE(this)};
Y2=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);Q.j("html5_show_drc_toggle")&&Q.addEventListener("settingsMenuInitialized",function(){W.menuItem||(W.menuItem=new un(W.api,W.setDrcUserPreference.bind(W),W.getDrcUserPreference.bind(W),W.U.bind(W)),g.y(W,W.menuItem))});
RN(this.api,"setDrcUserPreference",function(D){W.setDrcUserPreference(D)});
RN(this.api,"getDrcUserPreference",function(){return W.getDrcUserPreference()});
RN(this.api,"hasDrcAudioTrack",function(){return W.U()});
var x;this.B=(x=g.qW("yt-player-drc-pref"))!=null?x:1;this.updateEnvironmentData()};
na=function(Q){Fh.call(this,Q);var W=this;this.B={};this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"videodatachange",function(){W.onVideoDataChange()});
this.events.W(Q,g.Ru("embargo"),function(x){W.api.OG(!0);var D,K=(D=W.B[x.id])!=null?D:[];D=g.V(K);for(K=D.next();!K.done;K=D.next()){var l=K.value;W.api.hideControls();W.api.dH("auth",2,"This video isn't available in your current playback area",a0({embargoed:1,id:x.id,idx:x.U,start:x.start}));K=void 0;(l=(K=l.embargo)==null?void 0:K.onTrigger)&&W.api.Wt("innertubeCommand",l)}})};
kL1=function(Q,W){var x;return(x=W.onEnter)==null?void 0:x.some(Q.U)};
XcO=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next()){x=x.value;var D=void 0,K=Number((D=x.playbackPosition)==null?void 0:D.utcTimeMillis)/1E3,l=void 0;D=K+Number((l=x.duration)==null?void 0:l.seconds);l="embargo_"+K;Q.api.addUtcCueRange(l,K,D,"embargo",!1);x.onEnter&&(Q.B[l]=x.onEnter.filter(Q.U))}};
V2=function(Q){Fh.call(this,Q);var W=this;this.B=[];this.events=new g.I0(Q);g.y(this,this.events);RN(Q,"addEmbedsConversionTrackingParams",function(x){W.api.C().lW&&W.addEmbedsConversionTrackingParams(x)});
this.events.W(Q,"veClickLogged",function(x){W.api.hasVe(x)&&(x=Rq(x.visualElement.getAsJspb(),2),W.B.push(x))})};
ovs=function(Q){Fh.call(this,Q);RN(Q,"isEmbedsShortsMode",function(){return Q.isEmbedsShortsMode()})};
uJ4=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"initialvideodatacreated",function(x){dL(GL(),16623);W.B=g.ph();var D=Q.C().ra&&!x.uG;if(NJ(x)&&D){dL(GL(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(x.getWatchNextResponse()){var K,l=(K=x.getWatchNextResponse())==null?void 0:K.trackingParams;l&&AB(l)}if(x.getPlayerResponse()){var M;(x=(M=x.getPlayerResponse())==null?void 0:M.trackingParams)&&AB(x)}}else dL(GL(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),x.getEmbeddedPlayerResponse()&&(M=(l=x.getEmbeddedPlayerResponse())==null?void 0:l.trackingParams)&&AB(M)});
this.events.W(Q,"loadvideo",function(){dL(GL(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:W.B})});
this.events.W(Q,"cuevideo",function(){dL(GL(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:W.B})});
this.events.W(Q,"largeplaybuttonclicked",function(x){dL(GL(),27240,x.visualElement)});
this.events.W(Q,"playlistnextbuttonclicked",function(x){dL(GL(),27240,x.visualElement)});
this.events.W(Q,"playlistprevbuttonclicked",function(x){dL(GL(),27240,x.visualElement)});
this.events.W(Q,"playlistautonextvideo",function(){dL(GL(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
P9=function(Q,W){g.N.call(this);var x=this;this.B=null;this.D=W;W=[];for(var D=0;D<=100;D++)W.push(D/100);W={threshold:W,trackVisibility:!0,delay:1E3};(this.U=window.IntersectionObserver?new IntersectionObserver(function(K){K=K[K.length-1];typeof K.isVisible==="undefined"?document.visibilityState==="visible"&&K.isIntersecting&&K.intersectionRatio>0?x.B=K.intersectionRatio:document.visibilityState==="hidden"?x.B=0:x.B=null:x.B=K.isVisible?K.intersectionRatio:0;typeof x.D==="function"&&x.D(x.B)},W):
null)&&this.U.observe(Q)};
nvQ=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"applicationInitialized",function(){YuD(W)})};
YuD=function(Q){var W=Q.api.getRootNode(),x=W;if(!Q.api.j("embeds_emc3ds_inview_ks")){var D;x=Q.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((D=W.parentElement)==null?void 0:D.parentElement)||W:W}Q.B=new P9(x,function(K){K!=null&&(Q.api.C().Pz=K,Q.api.C().A_="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")});
g.y(Q,Q.B);Q.events.W(Q.api,"videoStatsPingCreated",function(K){var l=Q.B;l=l.B==null?null:Math.round(l.B*100)/100;K.inview=l!=null?l:void 0;l=Q.api.getPlayerSize();if(l.height>0&&l.width>0){l=[Math.round(l.width),Math.round(l.height)];var M=g.OT();M>1&&l.push(M);l=l.join(":")}else l=void 0;K.size=l})};
VbD=function(Q){var W;return((W=((Q==null?void 0:Q.messageRenderers)||[]).find(function(x){return!!x.timeCounterRenderer}))==null?void 0:W.timeCounterRenderer)||null};
v9=function(Q){g.L.call(this,{K:"div",lj:["ytp-player-content","ytp-iv-player-content"],V:[{K:"div",Y:"ytp-free-preview-countdown-timer",V:[{K:"span",m3:"{{label}}"},{K:"span",Y:"ytp-free-preview-countdown-timer-separator",m3:"\u2022"},{K:"span",m3:"{{duration}}"}]}]});this.api=Q;this.B=null;this.D=this.U=0;this.W(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
vvv=function(Q,W){Q.B||(Q.U=W,Q.D=(0,g.a8)(),Q.B=new g.Td(function(){P35(Q)},null),P35(Q))};
P35=function(Q){var W=Math,x=W.round,D=Math.min((0,g.a8)()-Q.D,Q.U);W=x.call(W,(Q.U-D)/1E3);Q.updateValue("duration",Pc({seconds:W}));W<=0&&Q.B?Ca(Q):Q.B&&Q.B.start()};
Ca=function(Q){Q.B&&(Q.B.dispose(),Q.B=null)};
C34=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"basechromeinitialized",function(){W.B=new v9(Q);g.y(W,W.B);g.qf(Q,W.B.element,4);W.B.hide()})};
Jc=function(Q){g.L.call(this,{K:"button",lj:["ytp-fullerscreen-edu-button","ytp-button"],V:[{K:"div",lj:["ytp-fullerscreen-edu-text"],m3:"Scroll for details"},{K:"div",lj:["ytp-fullerscreen-edu-chevron"],V:[{K:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",Z:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],Z:{"data-priority":"1"}});this.G1=Q;this.B=new g.Wi(this,250,void 0,100);this.D=this.U=!1;Q.createClientVe(this.element,this,61214);g.y(this,
this.B);this.W(Q,"fullscreentoggled",this.Yf);this.W(Q,"presentingplayerstatechange",this.Yf);this.listen("click",this.onClick);this.Yf()};
pa=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);RN(this.api,"updateFullerscreenEduButtonSubtleModeState",function(D){W.updateFullerscreenEduButtonSubtleModeState(D)});
RN(this.api,"updateFullerscreenEduButtonVisibility",function(D){W.updateFullerscreenEduButtonVisibility(D)});
var x=Q.C();Q.j("external_fullscreen_with_edu")&&x.externalFullscreen&&r5(x)&&x.controlsType==="1"&&this.events.W(Q,"standardControlsInitialized",function(){W.B=new Jc(Q);g.y(W,W.B);Q.yR(W.B)})};
JBs=function(Q){g.L.call(this,{K:"div",Y:"ytp-gated-actions-overlay",V:[{K:"div",Y:"ytp-gated-actions-overlay-background",V:[{K:"div",Y:"ytp-gated-actions-overlay-background-overlay"}]},{K:"button",lj:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Z:{"aria-label":"Close"},V:[g.P4()]},{K:"div",Y:"ytp-gated-actions-overlay-bar",V:[{K:"div",Y:"ytp-gated-actions-overlay-text-container",V:[{K:"div",Y:"ytp-gated-actions-overlay-title",m3:"{{title}}"},{K:"div",Y:"ytp-gated-actions-overlay-subtitle",
m3:"{{subtitle}}"}]},{K:"div",Y:"ytp-gated-actions-overlay-button-container"}]}]});var W=this;this.api=Q;this.background=this.Nj("ytp-gated-actions-overlay-background");this.U=this.Nj("ytp-gated-actions-overlay-button-container");this.B=[];this.W(this.Nj("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){W.api.Wt("onCloseMiniplayer")});
this.hide()};
hUz=function(Q,W){var x=0;x=0;for(var D={};x<W.length;D={tN:void 0},x++){var K=Q.B[x],l=void 0,M=(l=K)==null?void 0:l.element;M||(M=new g.L({K:"button",Y:"ytp-gated-actions-overlay-button",Z:{tabindex:"0"},V:[{K:"div",Y:"ytp-gated-actions-overlay-button-title",m3:"{{buttonText}}"}]}),g.y(Q,M),M.Qj(Q.U),K={element:M});D.tN=g.e(W[x],pc4);var w=l=void 0,S=void 0,b=((l=D.tN)==null?void 0:l.title)||((w=D.tN)==null?void 0:(S=w.titleFormatted)==null?void 0:S.content)||"";M.update({buttonText:b});K.listener&&
M.mJ(K.listener);K.listener=M.listen("click",function(z){return function(){var k,X=g.e((k=z.tN)==null?void 0:k.onTap,IG);X&&Q.api.Wt("innertubeCommand",X)}}(D));
Q.B[x]=K}for(;x<Q.B.length;)Q.B.pop().element.dispose()};
aQa=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);this.B=new JBs(this.api);g.y(this,this.B);this.events.W(Q,"videodatachange",function(){var x,D=(x=W.api.getVideoData())==null?void 0:x.Qt;x=W.B;if(D){var K,l,M=((K=D.title)==null?void 0:K.content)||"";K=((l=D.subtitle)==null?void 0:l.content)||"";x.update({title:M,subtitle:K});M=D.thumbnail;l="none";if(M==null?0:M.sources){K=0;M=g.V(M.sources);for(var w=M.next();!w.done;w=M.next())w=w.value,w.width&&w.url&&w.width>
K&&(K=w.width,l="url("+w.url+")")}x.background.style.backgroundImage=l;hUz(x,D.actionButtons||[]);x.show()}else x.hide()});
g.qf(this.api,this.B.element,4)};
hc=function(Q){Fh.call(this,Q);var W=this;S9(this.api,"getSphericalProperties",function(){return W.getSphericalProperties()});
S9(this.api,"setSphericalProperties",function(){W.setSphericalProperties.apply(W,g.C(g.i2.apply(0,arguments)))});
wZ(this.api,"getSphericalProperties",function(){return W.api.getPresentingPlayerType()===2?{}:W.getSphericalProperties()});
wZ(this.api,"setSphericalProperties",function(){var x=g.i2.apply(0,arguments);W.api.getPresentingPlayerType()!==2&&W.setSphericalProperties.apply(W,g.C(x))})};
aY=function(Q){Fh.call(this,Q);RN(Q,"createClientVe",this.createClientVe.bind(this));RN(Q,"createServerVe",this.createServerVe.bind(this));RN(Q,"destroyVe",this.destroyVe.bind(this));RN(Q,"hasVe",this.hasVe.bind(this));RN(Q,"logClick",this.logClick.bind(this));RN(Q,"logVisibility",this.logVisibility.bind(this));RN(Q,"setTrackingParams",this.setTrackingParams.bind(this))};
GA=function(Q,W,x,D){function K(M){var w=!(M.status!==204&&M.status!==200&&!M.response),S;M={succ:""+ +w,rc:M.status,lb:((S=M.response)==null?void 0:S.byteLength)||0,rt:((0,g.a8)()-l).toFixed(),shost:g.$X(Q),trigger:W};GLs(M,Q);x&&x(M);D&&!w&&D(new Gu("pathprobe.net",M))}
var l=(0,g.a8)();g.hS(Q,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:K,onTimeout:K})};
GLs=function(Q,W){var x;((x=window.performance)==null?0:x.getEntriesByName)&&(W=performance.getEntriesByName(W))&&W.length&&(W=W[0],Q.pedns=(W.domainLookupEnd-W.startTime).toFixed(),Q.pecon=(W.connectEnd-W.domainLookupEnd).toFixed(),Q.perqs=(W.requestStart-W.connectEnd).toFixed(),dyz&&(Q.perqsa=W.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
dz=function(Q,W){this.p_=Q;this.policy=W;this.playbackRate=1};
iJ1=function(Q,W){var x=Math.min(2.5,Vv(Q.p_));Q=Ac(Q);return W-x*Q};
H9=function(Q,W,x,D,K){K=K===void 0?!1:K;if(Q.policy.La)return Math.ceil(Q.policy.La*W);Q.policy.b$&&(D=Math.abs(D));D/=Q.playbackRate;var l=1/CO(Q.p_);x=Math.max(.9*(D-3),Vv(Q.p_)+Q.p_.U.B*l)/l*.8/(W+x);x=Math.min(x,D);Q.policy.Wz>0&&K&&(x=Math.max(x,Q.policy.Wz));return ABh(Q,x,W)};
ABh=function(Q,W,x){return Math.ceil(Math.max(Math.max(Q.policy.h_,Q.policy.h3*x),Math.min(Math.min(Q.policy.eZ,31*x),Math.ceil(W*x))))||Q.policy.h_};
HJ5=function(Q,W,x){x=H9(Q,W.B.info.a5,x.B.info.a5,0);var D=Vv(Q.p_)+x/CO(Q.p_);return Math.max(D,D+Q.policy.Wy-x/W.B.info.a5)};
Ac=function(Q){return CO(Q.p_,!Q.policy.CR,Q.policy.QO)};
UG=function(Q){return Ac(Q)/Q.playbackRate};
qd=function(Q,W,x){var D=Q.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],K=Q.policy.playbackStartPolicy.startMinReadaheadPolicy||[];Q=Infinity;W=g.V(W&&D.length>0?D:K);for(D=W.next();!D.done;D=W.next())D=D.value,K=D.minReadaheadMs||0,x<(D.minBandwidthBytesPerSec||0)||Q>K&&(Q=K);return Q<Infinity?Q/1E3:Q};
B9=function(Q,W,x,D){var K=this;this.G=Q;this.jZ=W;this.policy=x;this.logger=D;this.wY=[];this.Mi=[];this.B=-1;this.Ln=null;this.X=this.timestampOffset=0;this.Ex=null;this.U=10;this.L=new Set;this.by={Xw:function(l){return K.Xw(l)}};
this.N=W.lN?0:1;x.s_>0&&(this.U=x.s_)};
$ya=function(Q,W,x,D,K){if(!D.info.N){if(x.length===0)x.push(D);else{var l;(Q=(l=x.pop())==null?void 0:g.WB(l,D))?x.push(Q):x.push(D)}return K}var M;(x=(M=x.pop())==null?void 0:g.WB(M,D))||(x=D);if(Q.policy.UT&&x.info.U)return Q.logger&&Q.logger({incompleteSegment:x.info.Zb()}),K;M=Q.Xw(x);D=M.formatId;K=M.E3;x=M.clipId;l=M.gK;M=M.startTimeMs;if(!Q.policy.Qx&&Q.policy.U&&Q.Ex){var w=$2(Q.Ex,x);M+=w}D={clipId:x,formatId:D,startTimeMs:M,durationMs:l,Hz:K,Iz:K,s9:M,eO:l};K=Uyh(W,D.startTimeMs);(x=K>=
0?W[K]:null)&&quF(Q,x,D)?D=x:(K+=1,W.splice(K,0,D));x=0;for(l=K+1;l<W.length;l++){M=Q;w=W[l];var S=D,b=w.startTimeMs+w.durationMs,z=S.startTimeMs+S.durationMs;z>=b+M.U?M=!0:z+M.U<w.startTimeMs?M=!1:BL5(M,w.formatId,S.formatId)?(S.durationMs=b-S.startTimeMs,S.eO=S.durationMs,S.Iz=w.Iz,M=!0):(w.startTimeMs=z,w.s9=z,w.Hz=S.Iz+1,M=!1);if(!M)break;x++}x&&W.splice(K+1,x);return K};
myO=function(Q,W,x){Q.policy.UT&&x!=null&&x.Zx||(Q.wY=[]);Q.policy.UG?(W=g.wl(Q.Mi,{startTimeMs:W*1E3},function(D,K){return D.startTimeMs-K.startTimeMs}),Q.B!==W&&(Q.B=-1,Q.D=void 0)):(IQ5(Q,!0),Q.B=Uyh(Q.Mi,W*1E3))};
Uyh=function(Q,W){Q=g.wl(Q,{startTimeMs:W},function(x,D){return x.startTimeMs-D.startTimeMs});
return Q>=0?Q:-Q-2};
IQ5=function(Q,W){if(Q.Ln){var x=Q.Ln.dP();if(x.length!==0){if(Q.D&&W){var D=Q.D,K=D.info.kD;!Se(x,K)&&D.info.X>0&&(0,g.a8)()-Q.X<5E3&&(Q.logger&&Q.logger({dend:D.info.Zb()}),x=hNs(x,K,K+.01))}Q.policy.UG&&Q.logger&&Q.logger({cbri:""+Q.B});D=[];for(var l=K=0;K<x.length&&l<Q.Mi.length;){var M=x.start(K),w=x.end(K),S=Q.Mi[l].startTimeMs/1E3,b=(Q.Mi[l].startTimeMs+Q.Mi[l].durationMs)/1E3;if(S<=w&&b>=M){var z=0;if(Q.Ex){var k=IY(Q.Ex,S*1E3);k&&(z=k.wm/1E3)}k=Object.assign({},Q.Mi[l]);var X=Q.jZ.D.get(az(Q.Mi[l].formatId)),
u=Math.max(S,M);M=X.index.GC(u+Q.U/1E3-z);S=X.index.getStartTime(M)+z;var Y=M+ +(Math.abs(S-u)>Q.U/1E3);u=Y+Q.N;Y=(X.index.getStartTime(Y)+z)*1E3;l!==Q.B||W?(k.Hz=u,k.startTimeMs=Y):(Q.logger&&Q.logger({pEvict:"1",og:k.startTimeMs,adj:S*1E3}),k.Hz=M+Q.N,k.startTimeMs=S*1E3);k.s9=k.startTimeMs;M=void 0;S=((M=Q.D)==null?void 0:M.info.duration)||11;l===Q.B&&w<b&&b-w<=S*1.01&&(w=b);M=Math.min(b,w);S=X.index.GC(M-Q.U/1E3-z);u=Q.policy;(u.U||u.Dp.j("html5_sabr_include_tail_media_chunk"))&&X.index.gY(S+
1)&&X.index.S8(S+1)+z<=M&&(S+=1);u=X.index.S8(S)+z;S-=+(Math.abs(u-M)>Q.U/1E3);M=S+Q.N;z=(X.index.S8(S)+z)*1E3;k.Iz=M;k.durationMs=z-k.startTimeMs;k.eO=k.durationMs;k.Hz<=k.Iz&&D.push(k)}b<w?l+=1:K+=1}Q.Mi=D}}};
NLs=function(Q){var W=[],x=[].concat(g.C(Q.wY));Q.Mi.forEach(function(M){W.push(Object.assign({},M))});
for(var D=Q.B,K=g.V(Q.G.uw()),l=K.next();!l.done;l=K.next())D=$ya(Q,W,x,l.value,D);W.forEach(function(M){M.startTimeMs&&(M.startTimeMs+=Q.timestampOffset*1E3,M.s9&&(M.s9+=Q.timestampOffset*1E3))});
return{Mi:W,wY:x}};
quF=function(Q,W,x){var D=W.startTimeMs+W.durationMs,K=x.startTimeMs+x.durationMs;if(x.startTimeMs-D>Q.U)return!1;if(BL5(Q,W.formatId,x.formatId))return W.durationMs=Math.max(D,K)-W.startTimeMs,W.eO=W.durationMs,W.Iz=Math.max(W.Iz,x.Iz),!0;if(Math.abs(W.startTimeMs-x.startTimeMs)<=Q.U){if(W.durationMs>x.durationMs+Q.U){Q=W.formatId;var l=W.Hz,M=W.Iz;W.formatId=x.formatId;W.durationMs=x.durationMs;W.Hz=x.Hz;W.eO=x.durationMs;W.Iz=x.Iz;x.formatId=Q;x.startTimeMs=K;x.s9=K;x.durationMs=D-K;x.eO=x.durationMs;
x.Hz=l;x.Iz=M;return!1}W.formatId=x.formatId;return!0}D>x.startTimeMs&&(W.durationMs=x.startTimeMs-W.startTimeMs,W.eO=W.durationMs,W.clipId===x.clipId&&(W.Iz=x.Hz-1));return!1};
BL5=function(Q,W,x){return W.itag!==x.itag||W.xtags!==x.xtags?!1:Q.jZ.lN||W.lmt===x.lmt};
cBz=function(Q,W,x){if(Q.logger){for(var D=[],K=0;K<W.length;K++){var l=W[K],M=void 0;if((M=l.EZ)==null?0:M.startTicks){var w=M=void 0,S=void 0;D.push("i."+((M=l.formatId)==null?void 0:M.itag)+"_st."+(l.startTimeMs+"_psst.")+(((w=l.EZ)==null?void 0:w.startTicks)+"_psd.")+((S=l.EZ)==null?void 0:S.Of))}M=void 0;D.push("i."+((M=l.formatId)==null?void 0:M.itag)+"_st."+(l.startTimeMs+"_e."+(l.startTimeMs+l.durationMs)+"_d."+l.durationMs)+("_sn."+l.Hz)+("_en."+l.Iz))}Q.logger({p:""+x,br:D.join(";")})}};
gvl=function(Q){Q.Mi=[];Q.wY=[];Q.L.clear();Q.B=-1;Q.D=void 0};
mq=function(Q,W,x,D,K){this.Bt=Q;this.jZ=W;this.videoTrack=x;this.audioTrack=D;this.policy=K;this.seekCount=this.B=0;this.L=!1;this.N=null;this.D=0;this.U=this.jZ.isManifestless&&!this.jZ.Nr};
yBF=function(Q,W,x){if(!Q.policy.X){Q=W.B.index;var D=W.U.E3;Q.gY(D)||x&&x.E3===D?(W.L=!Q.gY(D),W.F3=!Q.gY(D)):(W.L=!0,W.F3=!0)}};
fQD=function(Q){var W=Math.max(Q.videoTrack.N.D||0,Q.audioTrack.N.D||0);eUn(Q.videoTrack);eUn(Q.audioTrack);Q.policy.X||sA5(Q.jZ);Q.jZ.isManifestless&&!Q.policy.X&&(Q.U=!0,Q.D=0);var x=Q.Bt;x.policy.fS||(x.currentTime=W);Q.L=!0;Q.N=new th;return Q.N};
rB4=function(Q,W,x,D,K){var l=Q.policy.UT?K:void 0;if(!W.B.Fs()){if(!(l=x===0||!!W.D.length&&W.D[0]instanceof Nd))a:{if(W.D.length&&(l=W.D[0],l instanceof c9&&l.d1&&l.DE)){l=!0;break a}l=!1}l||Q.policy.B||gz(W);return x}var M=y2(W,x);if(!isNaN(M))return M;if(Q.Bt.gU(x*1E3))return x;K.Zx?Q.policy.Kq&&(Q=eV(Q.Bt,W),ZJz(W.N,x+Q,!0)):(W.kS(),Q.Bt.Gm(!1,"sta_"+ +W.B.info.Mx()));return D&&(Q=b9(D.dP(),x),!isNaN(Q))?(fa(W,Q+LTh,l),x):fa(W,x,l)};
OJQ=function(Q,W,x,D){if(Q.policy.X)!D||!Q.U&&Q.policy.Y6||g.wv(function(){Z8(Q)});
else{if(Q.isSeeking()&&Q.B){var K=TLl(Q,W,x);if(K!==-1){Q.videoTrack.L=!1;Q.audioTrack.L=!1;Q.U=!0;Q.D=0;g.wv(function(){Q.Bt.qj("seekreason",{reason:"behindMinSq",tgt:K});La(Q,K)});
return}}x?Q.videoTrack.F3=!1:Q.audioTrack.F3=!1;var l=Q.policy.oE||!Q.U;y2(Q.videoTrack,Q.B)>=0&&y2(Q.audioTrack,Q.B)>=0&&l?((Q.videoTrack.L||Q.audioTrack.L)&&Q.Bt.qj("iterativeSeeking",{status:"done",count:Q.seekCount}),Q.videoTrack.L=!1,Q.audioTrack.L=!1):D&&g.wv(function(){if(Q.U||!Q.policy.Y6)Z8(Q);else{var M=W.startTime,w=W.duration;if(!Q.policy.X){var S=x?Q.videoTrack.L:Q.audioTrack.L,b=Q.videoTrack.X!==-1&&Q.audioTrack.X!==-1,z=Q.B>=M&&Q.B<M+w+.1,k=!Q.videoTrack.F3&&!Q.audioTrack.F3,X=Q.policy.rZ&&
y2(Q.videoTrack,M)&&y2(Q.audioTrack,M);S&&b&&k&&(z||X?((x?Q.videoTrack:Q.audioTrack).L=!1,Q.videoTrack.L||Q.audioTrack.L||(Q.Bt.qj("iterativeSeeking",{status:"done",target:M,originalTime:M+Q.Bt.aW(),count:Q.seekCount}),Q.seekCount=0)):Q.seekCount<8?(Q.seekCount++,Q.Bt.qj("iterativeSeeking",{status:"inprogress",count:Q.seekCount,target:Q.B,actual:M,duration:w,isVideo:x}),Q.seek(Q.B,{})):(Q.Bt.qj("iterativeSeeking",{status:"incomplete",count:Q.seekCount,target:Q.B,actual:M}),Q.seekCount=0,Q.videoTrack.L=
!1,Q.audioTrack.L=!1,rz(Q.Bt,M+.1,{IK:!0,N7:"chunkSelectorSynchronizeMedia",MW:!0})))}}})}};
TLl=function(Q,W,x){if(!Q.isSeeking())return-1;x=(x?Q.videoTrack:Q.audioTrack).B.index;var D=x.GC(Q.B);return(x.gY(Q.jZ.bG)||W.E3===Q.jZ.bG)&&D<Q.jZ.bG?Q.jZ.Jn():-1};
La=function(Q,W,x){Q.U&&Q.videoTrack.X!==-1&&Q.audioTrack.X!==-1&&(Q.U=!1,Q.B=W,rz(Q.Bt,W+.1,{IK:!0,N7:"chunkSelectorSynchronize",MW:!0,seekSource:x}))};
Z8=function(Q){var W=Q.videoTrack.X!==-1,x=Q.audioTrack.X!==-1;if(!W||!x)if(W=!W&&TA(Q.videoTrack),x=!x&&TA(Q.audioTrack),W||x){x=W?Q.videoTrack:Q.audioTrack;W=W?Q.audioTrack:Q.videoTrack;x.X=TA(x).info.E3;if(Q.policy.X){var D;W.X=((D=TA(W))==null?void 0:D.info.E3)||W.X}if(W.X!==-1){var K=Math.max(W.B.index.getStartTime(W.X),x.B.index.getStartTime(x.X));vB(Q.jZ)&&Math.abs(K-vB(Q.jZ))>432E3&&zTF(Q.jZ);Q.D&&(K=Q.D,Q.D=0);g.wv(function(){Q.policy.X||La(Q,K,102)});
Q.Bt.qj("initManifestlessSync",{st:K,ost:K+Q.Bt.aW(),a:Q.audioTrack.X,v:Q.videoTrack.X});Q.N&&(Q.N.resolve(K+.1),Q.N=null);Q.policy.X&&La(Q,K,102)}}};
OG=function(Q,W){var x=this;this.uN=Q;this.requestNumber=++Ev1;this.B=this.now();this.S=this.T=NaN;this.G=this.B;this.D=this.Gn=this.L=0;this.X=this.B;this.I5=this.pS=this.LS=this.Sk=this.Cn=this.KS=this.U=this.N=0;this.uj=this.isActive=!1;this.fn=this.SZ=0;this.by={jej:function(){return x.K7}};
this.p_=W.p_;this.snapshot=FUF(this.p_);this.policy=this.p_.U;this.Ax=!!W.Ax;this.wJ=W.wJ;this.zF=W.zF||0;this.K2=W.K2||0;W.Gv&&(this.fS=new bA);var D;this.K7=(D=W.K7)!=null?D:!1;this.Ax||TEQ(this.p_)};
FTs=function(Q){Q.LS=Math.max(Q.LS,Q.L-Q.Cn);Q.pS=Math.max(Q.pS,Q.G-Q.Sk);Q.KS=0};
EG=function(Q,W,x){Ozv(Q.p_,W);Q.fS&&(Q.fS.add(Math.ceil(W)-Math.ceil(Q.G)),Q.fS.add(Math.max(0,Math.ceil(x/1024)-Math.ceil(Q.L/1024))));var D=W-Q.G,K=x-Q.L;Q.Gn=K;Q.I5=Math.max(Q.I5,K/(D+.01)*1E3);Q.G=W;Q.L=x;Q.KS&&x>Q.KS&&FTs(Q)};
Fe=function(Q,W){Q.url=W;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
tc=function(Q,W){OG.call(this,Q,W);this.Vj=this.Y6=!1;this.X3=this.F3=Infinity;this.g7=NaN;this.Kn=!1;this.Pt=NaN;this.WN=this.eZ=this.s3=0;this.OH=W.OH||1;this.Xt=W.Xt||this.OH;this.sG=W.sG;this.E3=W.E3;this.B3=W.B3;tb5(this);this.Vy(this.B);this.tf=(this.Pt-this.B)/1E3};
Qyn=function(Q){var W=Q.eZ||Q.s3;return W?Q.snapshot.delay+Math.min(Q.K2,(Q.S-Q.T)/1E3)+W:Q.tf};
Qj=function(Q,W,x){if(!Q.Ax){W=Math.max(W,.01);var D=Q.zF?Math.max(W,x/Q.zF):W,K=Q.p_.U.D;K&&(D=W,Q.zF&&(D=Math.max(W,x/Q.zF*K)));uA(Q.p_,W,x,D)}};
Ww5=function(Q){return(Q.X-Q.B)/1E3};
tb5=function(Q){Q.g7=Q.B+Q.snapshot.delay*1E3;Q.Kn=!1};
W7=function(Q,W){if(Q.sG&&Q.E3!==void 0&&Q.B3!==void 0){var x=Math,D=x.min,K=Q.F3;var l=Q.sG;var M=Q.B;if(xD5(l,Q.E3))l=W;else{var w=0;l.bF&&(w=.2);l=M+(l.K2+w)*1E3}Q.F3=D.call(x,K,l);x=Math;D=x.min;K=Q.X3;l=Q.sG;M=Q.B;w=DD5(l,Q.E3,Q.B3);w!==2&&(W=w?W:M+l.K2*1E3,l.bF&&(W+=l.K2*1E3));Q.X3=D.call(x,K,W);Q.F3<=Q.B?tb5(Q):(Q.g7=Q.F3,Q.Kn=!0)}};
Kwl=function(Q,W){if(Q.er(W,1)){var x=Q.getUint8(W);x=x<128?1:x<192?2:x<224?3:x<240?4:5}else x=0;if(x<1||!Q.er(W,x))return[-1,W];if(x===1)Q=Q.getUint8(W++);else if(x===2)x=Q.getUint8(W++),Q=Q.getUint8(W++),Q=(x&63)+64*Q;else if(x===3){x=Q.getUint8(W++);var D=Q.getUint8(W++);Q=Q.getUint8(W++);Q=(x&31)+32*(D+256*Q)}else if(x===4){x=Q.getUint8(W++);D=Q.getUint8(W++);var K=Q.getUint8(W++);Q=Q.getUint8(W++);Q=(x&15)+16*(D+256*(K+256*Q))}else x=W+1,Q.focus(x),PQ(Q,x,4)?Q=Nh5(Q).getUint32(x-Q.ZL,!0):(D=
Q.getUint8(x+2)+256*Q.getUint8(x+3),Q=Q.getUint8(x)+256*(Q.getUint8(x+1)+256*D)),W+=5;return[Q,W]};
xA=function(Q){this.uN=Q;this.B=new ul};
DW=function(Q,W){this.info=Q;this.callback=W;this.state=1;this.zU=this.Sw=!1;this.q_=null};
lK4=function(Q){return g.h8(Q.info.Af,function(W){return W.type===3})};
Kk=function(Q,W,x,D){var K=this;D=D===void 0?{}:D;this.policy=W;this.uN=x;this.status=0;this.B=new ul;this.U=0;this.d7=this.N=this.D=!1;this.xhr=new XMLHttpRequest;this.xhr.open(D.method||"GET",Q);if(D.headers)for(Q=D.headers,W=g.V(Object.keys(Q)),x=W.next();!x.done;x=W.next())x=x.value,this.xhr.setRequestHeader(x,Q[x]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return K.XH()};
this.xhr.onload=function(){return K.onDone()};
this.xhr.onerror=function(){return K.onError()};
this.xhr.fetch(function(l){K.B.append(l);K.U+=l.length;l=(0,g.a8)();K.uN.fK(l,K.U)},function(){},D.body||null)};
jyh=function(Q,W){this.U=(new TextEncoder).encode(Q);this.B=(new TextEncoder).encode(W)};
wDz=function(Q,W){var x,D,K;return g.U(function(l){if(l.B==1){if(!W)return l.return(W);x=lc.Xa();D=new g.vE(Q.U);return g.A(l,D.encrypt(W,Q.B),2)}K=l.U;lc.Wd("woe",x,Math.ceil(W.byteLength/16));return l.return(K)})};
kvO=function(Q,W){var x,D,K;return g.U(function(l){if(l.B==1){if(!W)return l.return(W);x=lc.Xa();D=new g.vE(Q.U);return g.A(l,D.decrypt(W,Q.B),2)}K=l.U;lc.Wd("wod",x,Math.ceil(W.byteLength/16));return l.return(K)})};
RR4=function(Q,W){var x=this;this.B=Q;this.uN=W;this.loaded=this.status=0;this.error="";Q=iM(this.B.get("range")||"");if(!Q)throw Error("bad range");this.range=Q;this.U=new ul;MwD(this).then(function(){x.uN.P8()},function(D){x.error=""+D||"unknown_err";
x.uN.P8()})};
MwD=function(Q){var W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v;return g.U(function(J){if(J.B==1){Q.status=200;W=Q.B.get("docid");x=EE(Q.B.get("fmtid")||"");D=Q.B.get("lmt")||"0";K=+(Q.B.get("csz")||0);if(!W||!x||!K)throw Error("Invalid local URL");Q.B.get("ck")&&Q.B.get("civ")&&(l=new jyh(Q.B.get("ck"),Q.B.get("civ")));M=Q.range;w=Math.floor(M.start/K);S=Math.floor(M.end/K);b=w}if(J.B!=5)return b<=S?g.A(J,XDz(W,x,D,b,l),5):J.kf(0);z=J.U;if(z===void 0)throw Error("invariant: data is undefined");k=b*K;X=(b+1)*K;
u=Math.max(0,M.start-k);Y=Math.min(M.end+1,X)-(u+k);v=new Uint8Array(z.buffer,u,Y);Q.U.append(v);Q.loaded+=Y;Q.loaded<M.length&&Q.uN.fK((0,g.a8)(),Q.loaded);b++;return J.kf(2)})};
Se5=function(Q,W,x,D){var K=this;D=D===void 0?{}:D;this.policy=W;this.uN=x;this.G=D;this.status=0;this.response=void 0;this.U=0;this.L=this.X=!1;this.errorMessage="";this.T=function(l){if(l)if(K.status=l.status,l.ok&&l.body&&K.status!==204)K.status=K.status||242,K.D=l.body.getReader(),K.d7()?K.D.cancel().catch(function(){}):(K.responseHeaders=l.headers,K.uN.Yc(),whn(K));
else K.onDone();else K.onError(Error("null_response"))};
this.S=function(l){var M=(0,g.a8)();K.d7()||(l.done?(K.D=void 0,K.onDone()):(l=l.value,K.U+=l.length,K.B.append(l),whn(K),K.uN.fK(M,K.U)))};
this.onError=function(l){K.errorMessage=String(l);K.X=!0;K.onDone()};
this.B=new ul;this.N=window.AbortController?new AbortController:void 0;this.start(Q)};
whn=function(Q){Q.D.read().then(Q.S,Q.onError).then(void 0,R8)};
bNn=function(Q,W,x){var D=this;x=x===void 0?{}:x;this.uN=W;this.U=this.status=0;this.d7=this.B=!1;this.xhr=new XMLHttpRequest;this.xhr.open(x.method||"GET",Q);if(x.headers){Q=x.headers;W=g.V(Object.keys(Q));for(var K=W.next();!K.done;K=W.next())K=K.value,this.xhr.setRequestHeader(K,Q[K])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(l){D.XH(l)};
Q=CJ(function(l){D.onDone(l)});
this.xhr.addEventListener("load",Q,!1);this.xhr.addEventListener("error",Q,!1);x.body?this.xhr.send(x.body):this.xhr.send();this.xhr.addEventListener("progress",CJ(function(l){D.E4(l)}),!1)};
jq=function(Q,W,x,D,K){if(ay(Q.MD))return new RR4(Q,x);Q=Q.cV();return D?BO4()?new Kk(Q,W,x,K):new Se5(Q,W,x,K):new bNn(Q,x,K)};
g.MP=function(Q){this.tag=Q};
sy4=function(Q,W){R6.apply(null,[6,Q,W].concat(g.C(g.i2.apply(2,arguments))))};
zRQ=function(Q,W){R6.apply(null,[5,Q,W].concat(g.C(g.i2.apply(2,arguments))))};
R6=function(Q,W,x){var D=g.i2.apply(3,arguments),K=Q===6?"ERROR":"WARNING",l="b"+x;g.ql(new (Function.prototype.bind.apply(g.Lw,[null,l].concat(g.C(D)))),K);D.unshift(l);D=D.join(", ");K=k8z.get(W);if(!K){K="ytplog."+W;l=5;try{window.localStorage&&!isNaN(+window.localStorage[K])&&(l=+window.localStorage[K]),window.sessionStorage&&!isNaN(+window.sessionStorage[K])&&(l=+window.sessionStorage[K])}catch(S){}k8z.set(W,l);K=l}if(!(Q<K)){K=Xha;l=K.B.get(W);l||(l=new oJn,K.B.set(W,l));K=l;l=Date.now();var M=
Math.floor((l-K.U)*.01);M>0&&(K.B=Math.min(K.B+M,10),K.U=l);K.B>0?(K.B--,K=!0):K=!1;if(K)typeof D==="function"&&(D=D()),console.log("plyr."+W,D);else{var w;D=((w=uBv.get(W))!=null?w:0)+1;uBv.set(W,D);D%100===1&&console.warn("plyr","plyr."+W+" is chatty, dropping logs.")}}};
oJn=function(){this.B=10;this.U=Date.now()};
w6=function(Q,W){g.N.call(this);var x=this;this.policy=Q;this.Af=W;this.U=0;this.B=null;this.Le=[];this.D=null;this.by={BF:function(){return x.Af}};
this.Af.length===1||g.h8(this.Af,function(D){return!!D.range})};
Sq=function(Q,W,x){Q.B&&(Yw(Q.B,W),W=Q.B,Q.B=null);for(var D=0,K=0,l=g.V(Q.Af),M=l.next();!M.done;M=l.next())if(M=M.value,M.range&&D+M.D<=Q.U)D+=M.D;else{W.getLength();if(qL(M)&&!x&&Q.U+W.getLength()-K<D+M.D){Q.B=W.split(K).h9;return}a:{var w=Q;var S=M,b=Q.U-D,z=K,k=W,X=!!x,u=k.getLength()-z;S.range&&(u=Math.min(S.D-b,u));S=RW4(S,S.U+b,u,S.range?S.U+b+u===S.range.length:X);z=nI(k,z,u);z=new QY(S,z);if(w.policy.useUmp&&w.Le.length&&(k=g.WB(w.Le[w.Le.length-1],z))){w.Le[w.Le.length-1]=k;w=u;break a}w.Le.push(z);
w=u}Q.U+=w;K+=w;D+=M.D;if(K===W.getLength())break}W.getLength()};
bc=function(Q,W,x,D,K,l,M,w,S){S=S===void 0?!1:S;g.N.call(this);this.uN=Q;this.policy=W;this.BV=x;this.Db=D;this.timing=K;this.logger=l;this.D=M;this.Ob=w;this.L=S;this.lastError=null;this.B=0;this.N=!1;this.U=new g.O3(this.JKj,this.policy.ra,this)};
Yev=function(Q){Q.Db.T=(0,g.a8)();Q=sm(Q);Q.U=(0,g.a8)();Q.started+=1};
PQ4=function(Q,W,x,D){Q.timing.KH((0,g.a8)(),W,x);W=Q.Db;W.U=0;W.L=0;W.G=0;nf(sm(Q));D&&(D=sm(Q),D.D+=1);if((D=Q.Ob)!=null&&(Q=Q.BV.MD,!((0,g.a8)()<D.X+3E5||ay(Q))&&(W=hW(Q))&&nJv(W)&&D.U===zO(W))){var K;G8(Q)&&(K=hW(dQ(Q)));g.Ud("yt-player-bandaid-host",{primary:W,secondary:K},864E3);D.X=(0,g.a8)();VwO(D,{primary:W,secondary:K})}};
kA=function(Q){if(Q.lastError==="ump.spsrejectfailure")Q.policy.qH||Q.timing.uj||Edv(Q.Db,!1,Q.BV,Q.policy,Q.D);else{if(Q.lastError==="net.timeout")Q.timing.wu((0,g.a8)());else{var W=Q.timing;EG(W,(0,g.a8)(),W.L)}if(Q.lastError==="net.nocontent")++Q.Db.G;else{if((W=Q.lastError==="net.timeout"||Q.lastError==="net.connect"||Q.lastError==="net.closed")&&!ay(Q.BV.MD)){var x=sm(Q);x.timedOut+=1}else x=sm(Q),x.B+=1;Q.timing.uj||Edv(Q.Db,W,Q.BV,Q.policy,Q.D)}}Q.uN.wE(5)};
Xd=function(Q,W,x,D,K){return W>=400?(Q.lastError="net.badstatus",!0):(K===void 0?0:K)?(Q.lastError="ump.spsrejectfailure",!0):x||D!==void 0&&D?!1:(Q.lastError=W===204?"net.nocontent":"net.connect",!0)};
o6=function(Q,W){if(Q.policy.ir)return!1;var x=W.getResponseHeader("content-type"),D=W.yf();Q=!D||D<=Q.policy.oa;return(!W.t7()||!x||x.indexOf("text/plain")!==-1)&&Q};
CQ1=function(Q,W){var x="";W=W.Q3();W.getLength()<=Q.policy.oa&&(x=vJ1(Q,W.Nq()));return x};
vJ1=function(Q,W){var x=Jy(W);return x4(x)?(Q.logger.debug(function(){return"Redirecting to "+x}),x):""};
sm=function(Q){return PM(Q.D,hW(Q.BV.MD))};
JWz=function(Q){var W=Q.timing.XV();W.shost=hW(Q.BV.MD);return W};
phs=function(Q,W){return(Q==null?void 0:Q.maxWidth)>(W==null?void 0:W.maxWidth)||(Q==null?void 0:Q.maxHeight)>(W==null?void 0:W.maxHeight)};
hRF=function(Q,W){for(var x=g.V(W.keys()),D=x.next();!D.done;D=x.next())if(D=W.get(D.value),D.length!==0){g.bZ(D,function(w,S){return S.maxFramerate-w.maxFramerate});
for(var K=[D[0]],l=0,M=1;M<D.length;M++)phs(D[M],K[l])&&(K.push(D[M]),l++);Q=Q.concat(K)}return Q};
G8D=function(Q,W){var x=[];W=g.V(W);for(var D=W.next();!D.done;D=W.next()){D=D.value;var K=aKn[D]||0;Q.B&&K>Q.B||x.push(D)}return x};
uc=function(Q,W,x){var D=dDh[Q]||[];x.j("html5_shorts_onesie_mismatched_fix")&&(D=iN2[Q]||[]);W.push.apply(W,g.C(D));x.j("html5_early_media_for_drm")&&W.push.apply(W,g.C(AWD[Q]||[]))};
IKQ=function(Q,W){var x=g.R4(Q),D=Q.C(),K=D.L;D=D.j("html5_shorts_onesie_mismatched_fix");var l=Q.c9();if(D){if(!K.N){if(l&&YA)return YA;if(nk)return nk}}else if(nk&&!K.N)return nk;var M=[],w=[],S={},b=Vj.concat(HN5);D&&(b=Vj.concat(UDQ));Q.j("html5_early_media_for_drm")&&(b=b.concat(qez),Q.j("allow_vp9_1080p_mq_enc")&&b.push(BQl));var z=[].concat(g.C($D5));if(x.T)for(var k=0;k<z.length;k++)z[k].length&&f3[z[k][0]]==="a"&&(z[k]=["141"]);if(x.KS)for(k=0;k<z.length;k++)z[k].length&&f3[z[k][0]]==="o"&&
(z[k]=["774"]);Q.j("html5_iamf_audio_onesie_fmt")&&z.push(["773"]);b=g.V(b);for(var X=b.next();!X.done;X=b.next()){k=!1;X=g.V(X.value);for(var u=X.next();!u.done;u=X.next()){u=u.value;var Y=Mo(u,l&&D);if(Y&&Y.video&&!(OC(Y)&&!x.fS&&Y.video.B>x.U2)){var v=g.X0(Q.C().experiments,"html5_drm_byterate_soft_cap");v>0&&JIh(Y)&&Y.a5>v||(k?(M.push(u),uc(u,M,Q)):(Y=oy(x,Y,K),Y===!0?(k=!0,M.push(u),uc(u,M,Q)):S[u]=Y))}}}z=g.V(z);for(b=z.next();!b.done;b=z.next())for(b=g.V(b.value),k=b.next();!k.done;k=b.next())if(k=
k.value,(X=PP5(k))&&X.audio&&(Q.j("html5_onesie_51_audio")||!EC(X)&&!F2(X)))if(X=oy(x,X,K),X===!0){w.push(k);uc(k,w,Q);break}else S[k]=X;x.U&&W("orfmts",S);if(D)return K.N&&(K.N=!1,YA=nk=void 0),l?YA={video:M,audio:w}:nk={video:M,audio:w};nk={video:M,audio:w};K.N=!1;return nk};
g.cWF=function(Q,W,x){var D=x.L,K=[],l=[],M=x.j("html5_shorts_onesie_mismatched_fix");Q=Q.c9();var w=Vj.concat(HN5);M&&(w=Vj.concat(UDQ));x.j("html5_early_media_for_drm")&&(w=w.concat(qez),x.j("allow_vp9_1080p_mq_enc")&&w.push(BQl));var S=[].concat(g.C($D5));if(W.T)for(var b=0;b<S.length;b++)S[b].length&&f3[S[b][0]]==="a"&&(S[b]=["141"]);if(W.KS)for(b=0;b<S.length;b++)S[b].length&&f3[S[b][0]]==="o"&&(S[b]=["774"]);x.j("html5_iamf_audio_onesie_fmt")&&S.push(["773"]);w=g.V(w);for(b=w.next();!b.done;b=
w.next()){b=g.V(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var k=Mo(z,Q&&M);if(k&&k.video){var X=g.X0(x.experiments,"html5_drm_byterate_soft_cap");if(!(X>0&&JIh(k)&&k.a5>X)&&oy(W,k,D)===!0){K.push({videoCodec:mDD[f3[z]],maxWidth:k.video.width,maxHeight:k.video.height,maxFramerate:k.video.fps});break}}}}M=g.V(S);for(Q=M.next();!Q.done;Q=M.next())for(Q=g.V(Q.value),S=Q.next();!S.done;S=Q.next())if(S=S.value,(w=PP5(S))&&w.audio&&(x.j("html5_onesie_51_audio")||!EC(w)&&!F2(w))&&oy(W,w,D)===
!0){l.push({audioCodec:NQv[f3[S]],numChannels:w.audio.numChannels});break}return{videoFormatCapabilities:K,audioFormatCapabilities:l}};
P7=function(Q){var W={},x=Q.xf,D=Q.Dp,K=x.getVideoData(),l=cc(0),M=x.getPlayerSize(),w=x.getVisibilityState();l&&(W.xi9=l,W.lastManualDirection=$p2(),l=M$5()||0,l>0&&(l=(D.j("html5_use_date_now_for_local_storage")?Date.now():(0,g.a8)())-l,D.j("html5_use_date_now_for_local_storage")?l>0&&(W.timeSinceLastManualFormatSelectionMs=l):W.timeSinceLastManualFormatSelectionMs=l));l=D.j("html5_use_streamer_bandwidth_for_low_latency_live")&&K.isLowLatencyLiveStream;if(D.schedule.uj&&!l){var S;l=D.j("html5_disable_bandwidth_cofactors_for_sabr_live")?
!((S=Q.HD)==null||!S.CR):!1;W.rB=CO(D.schedule,!l)}S=g.OT();var b=g.cl.medium,z=Math.floor(b*16/9);l=K.c9()?b:z;b=K.c9()?z:b;W.AS=Math.max(M.width*S,l);W.P1=Math.max(M.height*S,b);W.visibility=w;W.sj3=aK();W.oy=x.Mz()*1E3;M=Q.xf.iA(!0);var k,X,u,Y,v,J;W.q47={defaultPolicy:(M==null?void 0:(k=M.JW)==null?void 0:k.B)||0,smooth:(M==null?void 0:(X=M.mCj)==null?void 0:X.B)||0,visibility:(M==null?void 0:(u=M.DDt)==null?void 0:u.B)||0,M6:(M==null?void 0:(Y=M.Ry)==null?void 0:Y.B)||0,performance:(M==null?
void 0:(v=M.fg)==null?void 0:v.B)||0,speed:(M==null?void 0:(J=M.N11)==null?void 0:J.B)||0};if(D.j("html5_sabr_report_sticky_constraints")){var h;W.I9=(M==null?void 0:(h=M.Qjt)==null?void 0:h.B)||0}else W.I9=cc();D.j("html5_enable_sabr_drm_hd720p")&&Q.sabrLicenseConstraint&&(W.sabrLicenseConstraint=Q.sabrLicenseConstraint);if(D.j("html5_onesie_media_capabilities")||D.j("html5_enable_server_format_filter"))W.Pv=3;D.j("html5_onesie_audio_only_playback")&&lG(K)&&(W.Pv=1);var G;((G=Q.HD)==null?0:G.Kn)&&
Q.Af3&&(W.Pv=W.Pv===void 0?7:W.Pv|4);k=K.QN?K.QN:g.R4(K);D.j("html5_onesie_media_capabilities")&&(W.mediaCapabilities=g.cWF(K,k,D));var H;if((H=Q.HD)==null?0:H.B&&H.uG){u=D.L;H=[];X=[];Y=new Map;D.j("html5_ssap_update_capabilities_on_change")?(u.uj||yA5(u),v=u.uj||[]):v=Array.from(u.B.values());v=g.V(v);for(J=v.next();!J.done;J=v.next())h=J.value,h.Mx?X.push({audioCodec:NQv[h.CS],numChannels:h.numChannels,spatialCapabilityBitmask:gJ5[h.CS]}):(G=mDD[h.CS],J={videoCodec:G,maxWidth:h.maxWidth||0,maxHeight:h.maxHeight||
0,maxFramerate:h.maxFramerate||0,is10BitSupported:h.tY||!1},h.maxBitrateBps&&(J.maxBitrateBps=h.maxBitrateBps,M=Mo(h.itag),w=void 0,((w=M)==null?0:w.video)&&oy(k,M,u)===!0&&(M=M.a5*8,M>J.maxBitrateBps&&(J.maxBitrateBps=M))),h=G+"_"+h.tY,G=Y.get(h)||[],G.push(J),Y.set(h,G));H=hRF(H,Y);u={};D.j("html5_ssff_denylist_opus_low")&&(u={itagDenylist:[249,350]});W.mediaCapabilities={videoFormatCapabilities:H,audioFormatCapabilities:X,hdrModeBitmask:3,perPlaybackAttributes:u}}var I;if((I=Q.HD)==null?0:I.B){W.t8=
k.t8;var c;W.U2=(c=Q.HD)==null?void 0:c.U2}D.J2&&(W.vn=D.J2);W.w9=Q.zO;W.gi=Q.gi;W.j5=Q.j5;W.NP=Q.NP;if(D.j("html5_fix_time_since_last_seek_reporting")?Q.d3!==void 0:Q.d3)W.zm7=(0,g.a8)()-Q.d3;Q.isPrefetch&&D.j("html5_report_prefetch_requests")&&(W.isPrefetch=!0);ta||(W.sW1=!0);I=Vv(D.schedule)*1E3;I>0&&(W.VF=I);var O;((O=Q.HD)==null?0:O.qm)&&Q.Eb&&Q.Eb<Infinity&&(W.Eb=Q.Eb);x=x.getPlaybackRate();x!==1&&(W.playbackRate=x);var T;((T=Q.HD)==null?0:T.gE)&&Q.iW&&(W.ZH=Q.ZH,W.o1=Q.o1,W.iW=Q.iW);D.j("allow_proxima_live_latency")&&
(gL()===1&&(W.u0S=1),D.j("html5_sabr_force_proxima")&&(W.qVt=1),T=g.X0(D.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),W.XNf=T>0?T:D.schedule.interruptions[0]||0);var Ks;if((Ks=Q.HD)==null?0:Ks.WN)W.nU=Q.nU;var Mz;((Mz=Q.HD)==null?0:Mz.zQ)&&K.pu&&(W.audioTrackId=K.pu);var QF;if((QF=Q.HD)==null?0:QF.nJ)if(Q=PKQ())W.detailedNetworkType=yWO[Q]||yWO.other;return W};
v7=function(Q,W,x,D,K,l,M){var w={};W&&(w.Mg=W);if(!Q)return w;w.playbackCookie=x==null?void 0:x.playbackCookie;K&&(w.XS=K);w.GS=[];w.D$=[];if(M==null?0:M.size)for(W=g.V(M.values()),x=W.next();!x.done;x=W.next())w.D$.push(x.value);if(Q.sabrContextUpdates.size>0)for(W=g.V(Q.sabrContextUpdates.values()),x=W.next();!x.done;x=W.next())eR5(w,x.value,D);MJ(Q)&&!g.TQ(Q)&&Q.j("html5_enable_sabr_request_pipelining")&&l&&eR5(w,l,D);Q.Og&&(w.uij=Q.Og);D=Q.C().B;w.clientInfo={clientName:fKz[D.c.toUpperCase()]||
0};D.cbrand&&(w.clientInfo.deviceMake=D.cbrand);D.cmodel&&(w.clientInfo.deviceModel=D.cmodel);D.cver&&(w.clientInfo.clientVersion=D.cver);D.cos&&(w.clientInfo.osName=D.cos);D.cosver&&(w.clientInfo.osVersion=D.cosver);D=Q.C();D.j("html5_sabr_enable_server_xtag_selection")&&D.Kn&&(w.clientInfo.hl=D.Kn);Q.Ka&&(w.Ka=Q.Ka);return w};
eR5=function(Q,W,x){var D=W.type||0;(x==null?0:x.has(D))?Q.D$.push(W):Q.GS.push(D)};
c9=function(Q,W,x,D,K,l){var M=l===void 0?{}:l;var w=M.N9===void 0?[]:M.N9;var S=M.lQ===void 0?!1:M.lQ;var b=M.VS===void 0?0:M.VS;var z=M.poToken===void 0?"":M.poToken;var k=M.Ob===void 0?void 0:M.Ob;var X=M.vA===void 0?"":M.vA;var u=M.d1===void 0?0:M.d1;var Y=M.DE===void 0?new Uint8Array(0):M.DE;var v=M.jh===void 0?!1:M.jh;l=M.jG===void 0?0:M.jG;M=M.Mg===void 0?void 0:M.Mg;DW.call(this,W,K);var J=this;this.policy=Q;this.logger=new g.MP("dash/request");this.gf=this.cI=0;this.y$=!1;this.jD=this.Dm=
null;this.M4=!1;this.DE=this.d1=null;this.Wq=this.X5=!1;this.VU=null;this.jG=this.vO=0;this.Ti=!1;this.by={wE:function(G){J.wE(G)},
ng3:function(){return J.q_},
Elf:function(G){J.q_=G},
LWf:function(G){J.cI=G},
dcS:function(G){J.f_.lastError=G},
s1:function(){return J.xhr}};
this.timing=new tc(this,x);this.lQ=S;this.d1=u;this.DE=Y;this.BV=g.e2(this.info,this.policy,D);this.BV.set("rn",this.cL().toString());this.BV.set("rbuf",(b*1E3).toFixed().toString());this.lQ&&this.BV.set("smb","1");this.policy.qy&&z&&this.BV.set("pot",z);X&&this.BV.set("bbs",X);this.policy.useUmp&&!ay(this.BV.MD)&&(this.Se=new xA(this),this.BV.set("ump","1"),this.BV.set("srfvp","1"));if(Q=this.policy.pN?this.policy.rj&&!isNaN(this.info.B3)&&this.info.B3>this.policy.Gq?!1:!0:!1)W=null,this.policy.aA&&
this.policy.U8?W=[1]:v&&(W=[]),W!=null&&(this.policy.kM&&W.push(2),this.BV.set("defsel",W.join(",")));this.f_=new bc(this,this.policy,this.BV,this.info.Db,this.timing,this.logger,D,k);this.N9=w||null;this.zU=ZNn(this);Yev(this.f_);D=void 0;if(this.policy.mO||this.Se||this.policy.LS)D={method:"POST"},w=(0,g.Ck)([120,0]),k={},this.policy.u0&&M&&(M=v7(void 0,M),k.LC=M),this.policy.Hg&&this.DE&&(k.videoPlaybackUstreamerConfig=this.DE),this.policy.LS&&(M=this.info.N)&&Object.assign(k,M),Object.keys(k).length>
0?D.body=g.l1(k,g.Wh):D.body=w;if(this.d1&&this.DE){this.BV.set("iwts","1");D={method:"POST"};M={NP:this.d1*1E3};var h;w=(h=this.info.N)==null?void 0:h.WL;h=g.l1({vr:M,WL:w||void 0,videoPlaybackUstreamerConfig:this.DE},g.Wh);D.body=h}try{this.xhr=jq(this.BV,this.policy.S,this.timing,Q,D),this.f_.U.start(),l&&(this.J7=new g.O3(this.Sx,l,this),this.J7.start(l+(this.timing.p_.S.iS()||0)*1E3)),this.policy.W2&&Fe(this.timing,this.cV()),this.logger.debug(function(){return"Sent, itag="+J.BV.get("itag")+
" seg="+J.info.Af[0].E3+" range="+J.BV.get("range")+" time="+Math.round(J.info.Af[0].kD)+"-"+Math.round(g.r1(J.info.Af).Nx)+" rtp="+(J.timing.mT()-Date.now()).toFixed(0)}),g.wv(function(){})}catch(G){Lw5(this,G,!0)}};
ZNn=function(Q){if(!(yr(Q.info)&&Q.info.K7()&&Q.policy.jE&&Q.N9)||Q.info.Db.U>=2||cc()>0||!cs4())return!1;var W=Q.BV.get("aitags");if(!W)return!1;W=EE(W).split(",");for(var x=[],D=g.V(Q.N9),K=D.next();!K.done;K=D.next())K=K.value,g.FH(W,K)&&x.push(K);if(!x.length)return!1;Q.BV.set("altitags",g.OE(x.join(",")));return!0};
Lw5=function(Q,W,x){x=x===void 0?!1:x;g.ql(W);Q.f_.lastError="player.exception";Q.errorMessage=W.name+"_"+W.message;x?g.wv(function(){kA(Q.f_)}):kA(Q.f_)};
rWa=function(Q,W){Q.timing.uj=!0;Q.xhr.t7()&&Q.timing.z3();if(Q.policy.hn){var x;(x=Q.J7)==null||x.stop()}Sq(Q.q_,W,!1)};
TQO=function(Q,W){Q.info=W;if(Q.q_){var x=Q.q_;W=W.Af;(W.length!==x.Af.length||W.length<x.Le.length)&&zRQ("dash/request",260511119,""+W.length,""+x.Af.length,""+x.Le.length);x.Af=W;for(var D=W[0].range,K=new ul,l=0;l<x.Le.length;l++)Yw(K,x.Le[l].B);for(l=0;l<x.Le.length;l++){x.Le[l].info=W[l];var M=W[l].range;x.Le[l].B=nI(K,M.start-D.start,M.length)}}Q.zU=!1};
ONn=function(Q){Q.vO&&(Q.xhr.status=Q.vO,Q.cI=Q.vO)};
JL=function(Q,W){OG.call(this,Q,W);this.X3=!0;this.F3=!1;this.eZ=this.g7=0;this.s3=NaN};
EJO=function(Q,W,x){var D=Q.zF?Math.max(W,x/Q.zF):W,K=Q.p_.U.D;K&&(D=W,Q.zF&&(D=Math.max(W,x/Q.zF*K)));uA(Q.p_,W,x,D)};
pk=function(Q){this.U={};this.logger=new g.MP(Q)};
hL=function(Q){pk.call(this,"sabr");this.uN=Q};
a6=function(Q){g.N.call(this);this.N=Q;this.logger=new g.MP("onesie");this.vD=new Map;this.U=this.B=!1;this.HD=this.jZ=null;this.D=!1};
Fwn=function(Q,W,x){Q.vD.get(W).E4=x};
ic=function(Q,W){Q.vD.has(W)&&(GO?Q.vD.get(W).XG.clear():Q.vD.get(W).Le=new ul,d6(Q,W),Q.U=!0)};
twO=function(Q){for(var W=g.V(Q.vD),x=W.next();!x.done;x=W.next()){var D=g.V(x.value);x=D.next().value;D=D.next().value;D.u9||ic(Q,x)}};
Qz5=function(Q,W){W=Q.vD.get(W);if(!W)return 0;Q=0;if(W.Af.length>0){W=g.V(W.Af);for(var x=W.next();!x.done;x=W.next()){var D=void 0;Q+=((D=x.value.range)==null?void 0:D.length)||0}return Q}if(W.oB.length>0)for(x=g.V(W.oB),D=x.next();!D.done;D=x.next())Q+=D.value.sJ||0;return Q+W.bZ};
AL=function(Q,W){if(GO){var x=0;Q=Q.vD.get(W);if(Q==null||!Q.XG)return 0;Q=g.V(Q.XG.values());for(W=Q.next();!W.done;W=Q.next())x+=W.value.data.getLength();return x}return((x=Q.vD.get(W))==null?void 0:x.Le.getLength())||0};
H7=function(Q,W){Q=Q.vD.get(W);if(GO){if(Q==null||!Q.u9)return!1;W=Q.XG.size>0;return Q.J3.length>0||W}return!(Q==null||!Q.u9)&&!(Q==null||!Q.Le.getLength())};
WZO=function(Q,W){var x=Q.vD.get(W),D=Qz5(Q,W),K=!D&&!!x.bytesReceived;if(GO){var l;if((l=Q.jZ)==null?0:l.lN){Q=g.V(x.XG.values());for(W=Q.next();!W.done;W=Q.next())if(!W.value.Az)return!1;return K}}else if(l=Q.iY(W),K&&Q.B&&l!==void 0)return l;return(K||x.bytesReceived===D)&&x.QR+AL(Q,W)===x.bytesReceived};
xLs=function(Q,W,x){Q.vD.set(W,{Le:new ul,QR:0,bytesReceived:0,bZ:0,Hb:!1,C2:!1,iY:!1,Mx:x,Xb:[],Af:[],oB:[],u9:!1,XG:new Map,Na:new Map,J3:[]});Q.logger.debug(function(){return"[initStream] formatId: "+W})};
DLh=function(Q,W,x,D){x.Af.push.apply(x.Af,g.C(D));if(GO){x.Na.has(W)||x.Na.set(W,[]);var K;(K=x.Na.get(W)).push.apply(K,g.C(D))}else if(x.q_)for(Q=g.V(D),W=Q.next();!W.done;W=Q.next())x.q_.Af.push(W.value);else{x.q_=new w6(Q.HD,[].concat(g.C(x.Af)));var l;((l=Q.HD)==null?0:l.TH)&&g.y(Q,x.q_)}};
KZl=function(Q,W,x){var D,K=(D=Q.jZ)==null?void 0:D.D.get(W);if(!K)return[];if(x.ey){var l;return((l=K.E7(0,x.clipId))==null?void 0:l.Af)||[]}if(K.Gc()){var M=x.startMs,w=x.durationMs,S=1E3,b;if(((b=Q.HD)==null?0:b.B)&&x.timeRange){var z;M=(z=x.timeRange.startTicks)!=null?z:-1;var k;w=(k=x.timeRange.Of)!=null?k:-1;var X;S=(X=x.timeRange.timescale)!=null?X:-1}if(x.qo<0||x.Z5<0||w<0||M<0||x.sJ<0||S<0)return ic(Q,W),[];Q=AZ(x.qo,x.sJ);W=x.MA||0;return[new Uq(3,K,Q,"makeSliceInfosMediaBytes",x.Z5-1,M/
S,w/S,W,Q.length-W,void 0,x.e9,x.clipId)]}if(x.Z5<0)return ic(Q,W),[];var u;return((u=Q.jZ)==null?0:u.lN)?(W=K.zA,b=W*K.info.a5,z=((M=Q.HD)==null?0:M.UT)?x.MA:void 0,((S=Q.HD)==null?0:S.DH)&&x.timeRange&&!z&&(w=x.timeRange.startTicks/x.timeRange.timescale),[new Uq(3,K,void 0,"makeSliceInfosMediaBytes",x.Z5,w,W,z,b,!0,x.e9,x.clipId)]):[]};
lth=function(Q,W,x){Q.jZ=W;Q.HD=x;W=g.V(Q.vD);for(x=W.next();!x.done;x=W.next()){var D=g.V(x.value);x=D.next().value;D=D.next().value;for(var K=g.V(D.Xb),l=K.next();!l.done;l=K.next()){l=l.value;var M=KZl(Q,x,l);DLh(Q,l.N5,D,M)}}};
Um=function(Q,W,x,D){Q.logger.debug(function(){return"[addStreamData] formatId: "+x+",headerId: "+W+" bytes: "+D.getLength()});
(Q=Q.vD.get(x))&&!Q.C2&&(GO?(Q.XG.has(W)||Q.XG.set(W,{data:new ul,a$:0,Az:!1}),Yw(Q.XG.get(W).data,D)):Yw(Q.Le,D),Q.bytesReceived+=D.getLength(),Q.Hb=!0)};
d6=function(Q,W){Q.logger.debug(function(){return"[closeStream] formatId: "+W});
var x=Q.vD.get(W);x&&!x.C2&&(x.C2=!0,x.E4&&x.E4(),jz5(Q)&&Q.N.Qb())};
jz5=function(Q){Q=g.V(Q.vD.values());for(var W=Q.next();!W.done;W=Q.next())if(!W.value.C2)return!1;return!0};
qP=function(Q,W,x,D,K,l,M,w){g.N.call(this);this.policy=Q;this.info=W;this.jZ=x;this.uN=K;this.V6=w;this.logger=new g.MP("sabr");this.Se=new xA(this);this.uX=new hL(this);this.WZ=new a6(this);this.state=1;this.qS=!1;this.T8=0;this.clipId="";this.Hc=this.BK=-1;this.P4=0;this.uA=-1;this.Ti=this.Kh=!1;this.rW=0;this.kK=!1;this.policy.zT?this.ZX=new JL(this,l):this.ZX=new tc(this,l);this.BV=this.policy.WN?W.xu:M2a(W,this.policy,D);this.BV.set("rn",""+this.cL());this.BV.set("alr","yes");lth(this.WZ,x,
Q);this.f_=new bc(this,this.policy,this.BV,W.Db,this.ZX,this.logger,D,M,this.policy.enableServerDrivenRequestCancellation);Yev(this.f_);var S;if((S=this.policy)==null?0:S.TH)g.y(this,this.WZ),g.y(this,this.f_);Q=W.U;W={method:"POST",body:Q};Q&&(this.P4=Q.length);try{this.xhr=jq(this.BV,this.policy.S,this.ZX,ta,W),this.policy.W2&&Fe(this.ZX,this.cV()),this.f_.U.start()}catch(b){g.Bp(b)}};
RxF=function(Q){Q.policy.wr&&Q.Te&&!Q.kK?Q.kK=!0:Q.ZX.z3()};
wMa=function(Q,W){var x=-1,D=-1,K=-1,l;if((l=Q.Zq)==null?0:l.items)for(Q=g.V(Q.Zq.items),l=Q.next();!l.done;l=Q.next())l=l.value,W<l.x$||l.x$<x||(x=l.x$,D=l.Je,K=l.minReadaheadMs);return{bnf:x,Je:D,qB:K}};
SqO=function(Q){this.B=Q;this.T=this.X3=this.G=this.fS=this.N=this.L=this.X=this.KS=this.S=this.LS=this.pS=this.F3=this.uj=0;this.ticks={}};
B7=function(Q){Q.uj||(Q.uj=(0,g.a8)(),Gp("mb_s",Q.uj,Q.B))};
bf2=function(Q){Q.F3||(Q.F3=(0,g.a8)(),Gp("ovfs_rp",Q.F3,Q.B))};
sza=function(Q){Q.pS||(Q.pS=(0,g.a8)(),Gp("oafs_rp",Q.pS,Q.B))};
zxa=function(Q){Q.L||(Q.L=(0,g.a8)(),Gp("vda",Q.L,Q.B),Q.N&&xD(g.QX(),4))};
kIs=function(Q){Q.N||(Q.N=(0,g.a8)(),Gp("ada",Q.N,Q.B),Q.L&&xD(g.QX(),4))};
XMv=function(Q){Q.fS||(Q.fS=(0,g.a8)(),Gp("vis_a",Q.fS,Q.B))};
omO=function(Q){Q.G||(Q.G=(0,g.a8)(),Gp("ais_a",Q.G,Q.B))};
uUz=function(Q){Q.X3||(Q.X3=(0,g.a8)(),Gp("vrb_f",Q.X3,Q.B))};
YqF=function(Q){Q.T||(Q.T=(0,g.a8)(),Gp("arb_f",Q.T,Q.B))};
nmD=function(Q,W,x){var D=W instanceof qP&&!Q.D&&!Q.U,K=!Q.D&&(x==null?void 0:x.info.video);x=!Q.U&&(x==null?void 0:x.info.audio);W.state===3?((K||D)&&Q.tick("vrr"),(x||D)&&Q.tick("arr")):W.state===4?K?(Q.D=W.cV(),xD(g.QX(),4)):x&&(Q.U=W.cV()):W instanceof c9&&W.aK()&&K&&xD(g.QX(),4)};
V22=function(Q){return!!Q.U&&!!Q.D};
$A=function(Q,W,x,D,K,l,M){g.Rd.call(this);var w=this;this.Bt=Q;this.jZ=W;this.policy=x;this.videoTrack=D;this.audioTrack=K;this.aQ=M;this.uj=this.B=null;this.L=this.G=NaN;this.S=0;this.T=NaN;this.X=null;this.KS=this.F3=NaN;this.fS=new Map;this.pS=this.D=this.N=NaN;this.by={uAS:function(){return w.U}};
this.U=l?1:0};
vmv=function(Q,W,x,D){D=D===void 0?!0:D;if(x&&!Q.fS.has(W.E3)){for(var K=W.startTime,l=[],M=0;M<x.B.length;M++){var w=x.B[M],S=K;K=S+x.U[M];l.push({startTime:S,endTime:K,adCpn:w})}Q.fS.set(W.E3,l)}if(Q.policy.xN)if(K=Q.uj&&W.E3===Q.uj.E3+1,Q.uj=W,l=Q.B&&W.E3===Q.B.E3+1,l=Q.B&&K&&l&&Q.B.VN.event!=="stop"&&Q.B.VN.event!=="predictStart",M=W.VN||null,w=Q.videoTrack.B.index.oQ(),Q.policy.A_&&(w=Math.max(Q.videoTrack.B.index.oQ(),Q.audioTrack.B.index.oQ())),w=W.E3>=w,S=Q.jZ.isManifestless&&Q.policy.iD,
M){var b;if(((b=Q.B)==null?void 0:b.VN.event)==="predictStart"&&Q.B.E3<W.E3&&M.event==="stop"){var z;Q.Bt.handleError("ssdai.missingstartcueevent",{lastpredict:((z=Q.B)==null?void 0:z.E3)||0,csq:W.E3},0)}Q.B={VN:M,E3:W.E3,ML:!!x,OQ:D};w?I6(Q,M,W.E3):S&&(K?l?I6(Q,M,W.E3):M.event==="continue"||M.event==="stop"?PMF(Q,W):I6(Q,M,W.E3):I6(Q,M,W.E3))}else l&&PMF(Q,W),Q.U===4&&ml(Q,5,"qend")};
I6=function(Q,W,x){W.startSecs+=isNaN(Q.S)?0:Q.S;Q=Q.jZ;Q.F3.push(W);Q.publish("cuepointsadded",x)};
CM2=function(Q,W,x){if(Q.U!==0&&x&&W.Af[0].OQ()){var D=W.Af[0].E3,K=W.Af[0].kD;W=W.isDecorated();NP(Q,D,K,W,x)}};
NP=function(Q,W,x,D,K){var l;W!==((l=Q.B)==null?void 0:l.E3)||Q.U===1||D||Q.B.VN.event==="predictStart"||Q.qj("sdai",{undecevt:1,sq:W,mt:x,evt:Q.B.VN.event},!0);W>Q.L&&(Q.L=NaN,Q.G=NaN);if(Q.B&&Q.B.E3===W)if(D=Q.B,K&&D){var M=D.VN;l=K.L0(M);M.event==="predictStart"&&(Q.pS=W);Q.qj("sdai",{onqevt:M.event,sq:W,mt:x,gab:l,cst:M.startSecs,cueid:Q.policy.RE&&(l||M.event==="start")?M.identifier:void 0},!0);if(l)if(M.event!=="predictStart")M.event==="start"&&Q.pS===W-1&&Q.qj("sdai",{gabonstart:W}),D.ML?ml(Q,
4,"cue"):(Q.L=W,Q.G=x,Q.qj("sdai",{joinad:Q.U,sg:Q.L,st:Q.G.toFixed(3)}),Q.T=Date.now(),ml(Q,2,"join"),K.cY(D.VN));else{var w=W+Math.max(Math.ceil(-M.B/5E3),1);l=Math.floor(x-M.B/1E3);Q.policy.L?Q.D=l:Q.N=w;Q.qj("sdai",{onpred:x,estsq:w,estmt:l.toFixed(3)});c7(Q.Bt,l,l,w);Q.T=Date.now();ml(Q,3,"predict");K.cY(D.VN)}else Q.U===1?((w=Q.X)==null?0:w.K$(x))?(c7(Q.Bt,x,x,W),ml(Q,4,"sk2had")):ml(Q,5,"nogab"):M.event==="predictStart"&&(Q.policy.L&&Q.D>0?(x=Math.floor(x-M.B/1E3),Q.D!==x&&Q.qj("sdai",{updateSt:x,
old:Q.D}),Q.D=x):Q.N>0&&(x=W+Math.max(Math.ceil(-M.B/5E3),1),Q.N!==x&&(Q.qj("sdai",{updateSt:x,old:Q.N}),Q.N=x)));var S,b;if(Q.aQ&&M.event==="start"&&((S=Q.B)==null?void 0:S.VN.event)!=="predictStart"&&((b=Q.B)==null?void 0:b.E3)===W-1){var z;Q.qj("sdai",{ovlpst:(z=Q.B)==null?void 0:z.VN.event,sq:W})}}else Q.qj("sdai",{nulldec:1,sq:W,mt:x.toFixed(3),evt:(D==null?void 0:(M=D.VN)==null?void 0:M.event)||"none"});else Q.U===1&&ml(Q,5,"noad")};
pM2=function(Q,W,x){if(Q.U===1||Q.U===2)return!1;if(Q.U!==0&&W===Q.audioTrack){if(Q.policy.L)return JZ4(Q.videoTrack,x)||JZ4(Q.videoTrack,x+1);Q=g6(Q.videoTrack);if(x>(Q?Q.E3:-1))return!1}return!0};
yj=function(Q,W,x){return(x<0||x===Q.L)&&!isNaN(Q.G)?Q.G:W};
PMF=function(Q,W){if(Q.B){var x=Q.B.VN.eE-(W.startTime+Q.S-Q.B.VN.startSecs);x<=0||(x=new gQ(Q.B.VN.startSecs-(isNaN(Q.S)?0:Q.S),x,Q.B.VN.context,Q.B.VN.identifier,"stop",Q.B.VN.B+W.duration*1E3),Q.qj("cuepointdiscontinuity",{segNum:W.E3}),I6(Q,x,W.E3))}};
ml=function(Q,W,x){Q.U!==W&&(Q.qj("sdai",{setsst:W,old:Q.U,r:x}),Q.U=W)};
eq=function(Q,W,x,D){(D===void 0?0:D)?ml(Q,1,"seek"):W>0&&Math.abs(W-x)>=5&&Q.U===4&&ml(Q,5,"sk2t."+W.toFixed(2)+";ct."+x.toFixed(2))};
fk=function(Q,W,x){this.audio=Q;this.video=W;this.reason=x};
ZW=function(Q,W,x){this.B=Q;this.reason=W;this.token=x;this.videoId=void 0};
Lk=function(Q,W,x){g.N.call(this);this.policy=Q;this.N=W;this.qj=x;this.D=new Map;this.L=0;this.X=!1;this.B="";this.U=!1};
r6=function(Q,W,x){if(x===void 0?0:x)Q.X=!0;++Q.L;x=6E4*Math.pow(2,Q.L);x=(0,g.a8)()+x;Q.D.set(W.info.id,x)};
TO=function(Q){for(var W=g.V(Q.D.entries()),x=W.next();!x.done;x=W.next()){var D=g.V(x.value);x=D.next().value;D=D.next().value;D<(0,g.a8)()&&Q.D.delete(x)}return Q.D};
hxl=function(Q){return Q.X&&TO(Q).size>0};
Om=function(Q,W){Q.B!==W&&(Q.B=W,Q.U=!0)};
ats=function(Q,W){var x;W&&(x=g.Os(Q.N.B,function(K){return K.id===W}));
if(!x&&(x=g.Os(Q.N.B,function(K){var l;return!((l=K.RW)==null||!l.isDefault)}),W)){var D;
Q.qj("iaf",{id:W,sid:(D=x)==null?void 0:D.id})}return x};
Fd=function(Q,W,x,D,K,l){var M=this;l=l===void 0?[]:l;this.Bt=Q;this.F3=W;this.policy=x;this.jZ=D;this.X=K;this.Pt=l;this.logger=new g.MP("dash/abr");this.B=eQ;this.D=this.G=null;this.T=-1;this.X3=!1;this.nextVideo=this.U=null;this.N=[];this.eZ=new Set;this.LS={};this.I5=new zs(1);this.S=0;this.s3=this.pS=this.uj=!1;this.KS=0;this.O3=!1;this.fS=new Set;this.g7=!1;this.by={Bs:function(){Em(M)}};
this.L=new Lk(this.policy,K,function(w,S){M.Bt.qj(w,S)})};
Hf2=function(Q,W,x){tL(Q,W);W=ats(Q.L,x);x||W||(W=GI1(Q));W=W||Q.X.B[0];Q.U=Q.jZ.B[W.id];Em(Q);Q.G=Q.U;dLv(Q);if1(Q);Q.D=Q.nextVideo;Q.G=Q.U;return AZ5(Q)};
BRz=function(Q,W){if(ULQ(Q,W))return null;if(W.reason==="m"&&W.isLocked())return Q.logger.debug(function(){return"User sets constraint to: "+bQ(W)}),tL(Q,W),Q.S=Q.N.length-1,Em(Q),QQ(Q),Q.pS=Q.pS||Q.D!==Q.nextVideo,Q.D=Q.nextVideo,new fk(Q.U,Q.D,W.reason);
W.reason==="r"&&(Q.T=-1);tL(Q,W);QQ(Q);if(W.reason==="r"&&Q.nextVideo===Q.D)return new fk(Q.U,Q.nextVideo,W.reason);qq5(Q);return null};
$L1=function(Q,W,x){Q.U=Q.jZ.B[W];Q.G=Q.U;return new fk(Q.G,Q.D,x?"t":"m")};
Itz=function(Q,W){if(W.info.video){if(Q.D!==W)return Q.D=W,AZ5(Q)}else Q.s3=Q.G!==W,Q.G=W;return null};
mLQ=function(Q,W){if(W.B.info.video&&W.N){var x=(W.U+W.D)/W.duration,D=W.B.info.a5;x&&D&&(Q.I5.w5(1,x/D),Q.policy.D&&x/D>1.5&&Q.Bt.qj("overshoot",{sq:W.E3,br:x,max:D}))}};
Wn=function(Q,W,x){r6(Q.L,W,x===void 0?!1:x);Q.T=-1;tL(Q,Q.B)};
NR5=function(Q,W){return new fk(Q.G,Q.D,W||Q.B.reason)};
qq5=function(Q){if(Q.D&&Q.nextVideo&&x9(Q,Q.D.info)<x9(Q,Q.nextVideo.info)){var W=Q.B.reason;Q.uj=Q.uj||W==="r"||W==="u"||W==="v"}};
AZ5=function(Q){Q.X3?Q.X3=!1:Q.T=(0,g.a8)();Q.uj=!1;Q.g7=!1;return new fk(Q.G,Q.D,Q.B.reason)};
cZa=function(Q,W){var x={};W=g.V(W);for(var D=W.next();!D.done;D=W.next())if((D=D.value)&&D.video){var K=D.video.B,l=x[K],M=l&&OC(l)&&l.video.B>Q.policy.U2,w=K<=Q.policy.U2?OC(D):L3(D);if(!l||M||w)x[K]=D}return x};
tL=function(Q,W){Q.B=W;var x=Q.X.videoInfos;if(!Q.B.isLocked()){var D=(0,g.a8)();x=g.Rv(x,function(w){if(w.a5>this.policy.a5)return!1;var S=this.jZ.B[w.id];return TO(this.L).get(w.id)>D?!1:S.Db.U>4||S.X>4?(this.logger.debug(function(){return"Remove "+je(w)+"; 4 load failures"}),!1):this.fS.has(+w.itag)?!1:!0},Q);
hxl(Q.L)&&(x=g.Rv(x,function(w){return w.video.width<=854&&w.video.height<=480}))}x.length||(x=Q.X.videoInfos);
var K=x;Q.policy.EX&&(K=gmQ(Q,K,W));K=g.Rv(K,W.N,W);if(Q.B.isLocked()&&Q.L.B){var l=g.Os(x,function(w){return w.id===Q.L.B});
l?K=[l]:Om(Q.L,"")}Q.policy.EX||(K=gmQ(Q,K,W));K.length||(K=[x[0]]);K.sort(function(w,S){return x9(Q,w)-x9(Q,S)});
W={};for(x=1;x<K.length;W={Jc:void 0,V4:void 0},x++)W.V4=K[x-1],W.Jc=K[x],W.V4.video.width>W.Jc.video.width?(g.te(K,x),x--):x9(Q,W.V4)*Q.policy.T>x9(Q,W.Jc)&&(g.te(K,x-1),x--);var M=K[K.length-1];Q.O3=!!Q.D&&!!Q.D.info&&Q.D.info.CS!==M.CS;Q.logger.debug(function(){return"Constraint: "+bQ(Q.B)+", "+K.length+" fmts selectable, max selectable fmt: "+je(M)});
Q.N=K;Q.eZ.clear();W=!1;for(x=0;x<K.length;x++)W?Q.eZ.add(K[x].itag):K[x].video.B>=1080&&(W=!0);yZD(Q.policy,M,Q.jZ.lN)};
gmQ=function(Q,W,x){var D=x.reason==="m"||x.reason==="s";Q.policy.ix&&Dg&&g.nX&&(!D||x.B<1080)&&(W=W.filter(function(b){return b.video&&(!b.U||b.U.powerEfficient)}));
if(W.length>0)if(nS()){var K=cZa(Q,W);W=W.filter(function(b){return!!b&&!!b.video&&b.CS===K[b.video.B].CS})}else{var l,M,w=(l=W[0])==null?void 0:(M=l.video)==null?void 0:M.B;
if(w){x=W.filter(function(b){return!!b&&!!b.video&&b.video.B===w});
var S=cZa(Q,x)[w].CS;W=W.filter(function(b){return!!b&&!!b.video&&b.CS===S})}}return W};
ex2=function(Q,W){for(var x=0;x+1<Q.N.length&&Q.N[x].video.quality==="tiny";)x++;var D=UG(Q.F3)/Q.policy.T;return x9(Q,W.info)+x9(Q,Q.N[x])>D};
Em=function(Q){if(!Q.U||!Q.policy.N&&!Q.U.info.RW){var W=Q.X.B;Q.U&&(W=W.filter(function(D){return D.audio.B===Q.U.info.audio.B}),W.length||(W=Q.X.B));
Q.U=Q.jZ.B[W[0].id];if(W.length>1){if(Q.policy.Tc){if(Q.policy.Pg){var x=g.pm(W,function(D){return D.audio.audioQuality});
Q.Bt.qj("aq",{hqa:Q.policy.SZ,qs:x.join("_")})}if(Q.policy.SZ)return;if(x=g.Os(W,function(D){return D.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}))Q.U=Q.jZ.B[x.id]}x=!1;
if(x=Q.policy.b6?!0:Q.B.isLocked()?Q.B.B<240:ex2(Q,Q.U))Q.U=Q.jZ.B[g.r1(W).id]}}};
QQ=function(Q){if(!Q.nextVideo||!Q.policy.N)if(Q.B.isLocked())Q.nextVideo=Q.B.B<=360?Q.jZ.B[Q.N[0].id]:Q.jZ.B[g.r1(Q.N).id],Q.logger.debug(function(){return"Select max fmt: "+je(Q.nextVideo.info)});
else{for(var W=Math.min(Q.S,Q.N.length-1),x=UG(Q.F3),D=x9(Q,Q.U.info),K=x/Q.policy.uj-D;W>0&&!(x9(Q,Q.N[W])<=K);W--);for(var l=x/Q.policy.T-D;W<Q.N.length-1&&!(x9(Q,Q.N[W+1])>=l);W++);Q.nextVideo=Q.jZ.B[Q.N[W].id];Q.S!==W&&Q.logger.info(function(){return"Adapt to: "+je(Q.nextVideo.info)+", bandwidth: "+x.toFixed(0)+", bandwidth to downgrade: "+K.toFixed(0)+", bandwidth to upgrade: "+l.toFixed(0)+", constraint: "+bQ(Q.B)});
Q.S=W}};
dLv=function(Q){var W=Q.policy.uj,x=UG(Q.F3),D=x/W-x9(Q,Q.U.info);W=g.Es(Q.N,function(K){return x9(this,K)<D},Q);
W<0&&(W=0);Q.S=W;Q.nextVideo=Q.jZ.B[Q.N[W].id];Q.logger.info(function(){return"Initial selected fmt: "+je(Q.nextVideo.info)+", bandwidth: "+x.toFixed(0)+", max video byterate: "+D.toFixed(0)})};
if1=function(Q){if(Q.Pt.length){var W=Q.Pt,x=function(D,K){if(D.info.CS==="f"||W.includes(az(g.WT(D.info,Q.jZ.lN))))return D;for(var l={},M=0;M<K.length;l={ID:void 0,Qw:void 0},M++){var w=Q.jZ.B[K[M].id];if(W.includes(az(g.WT(w.info,Q.jZ.lN)))){var S=D.info.CS,b=w.info.CS;if(S===b||nS()){if(D.info.B!==w.info.B)return Q.Bt.qj("ombifa",{mismatch:"xtag",f:D.info.id,t:w.info.id}),D;l.ID=D.info.itag;l.Qw=w.info.itag;Q.Bt.qj("ombifa",{f:l.ID,t:l.Qw});Q.logger.info(function(z){return function(){return"Initial format selection changed from "+
z.ID+" to "+z.Qw+" based on prefetched media."}}(l));
Q.X3=!0;return w}Q.Bt.qj("ombifa",{mismatch:"efficient",fc:S,tc:b})}}Q.Bt.qj("ombifa",{mismatch:"unselectable",fmts:W.join(".")});return D};
Q.nextVideo=x(Q.nextVideo,Q.X.videoInfos);Q.U=x(Q.U,Q.X.B)}};
x9=function(Q,W){if(!Q.LS[W.id]){var x=Q.jZ.B[W.id].index.td(Q.KS,15);x=W.hM&&Q.D&&Q.D.index.isLoaded()?x||W.hM:x||W.a5;Q.LS[W.id]=x}x=Q.LS[W.id];Q.eZ.has(W.itag)&&(x*=1.5);return x*=Math.max(1,Q.I5.iS()||0)};
ft5=function(Q,W){Q=LLQ(Q.jZ.B,function(x){return x.info.itag===W});
if(!Q)throw Error("Itag "+W+" from server not known.");return Q};
Zfl=function(Q){var W=[];if(Q.B.reason==="m"||Q.B.reason==="s")return W;if(rhO(Q.jZ)){for(var x=Math.max(0,Q.S-2);x<Q.S&&x<Q.N.length;x++)W.push(Q.N[x].itag);W.reverse()}return W};
ULQ=function(Q,W){var x;return Q.B.yI(W)&&(!Q.L.B||!Q.B.isLocked()||((x=Q.nextVideo)==null?void 0:x.info.id)===Q.L.B)};
GI1=function(Q){var W=g.Os(Q.X.B,function(D){return D.audio.B}),x=g.Os(Q.X.B,function(D){return!D.audio.B});
return W?Q.policy.jC?W:x:null};
LZh=function(Q){var W=Q===void 0?{}:Q;Q=W.bF===void 0?!1:W.bF;var x=W.U8===void 0?!1:W.U8;W=W.pN===void 0?!1:W.pN;return Q?W?3:2:x?-1:1};
KG=function(Q){this.track=Q;this.buffered=[];this.D=this.N=0;this.X={};this.L=0;this.B=new bA};
rZD=function(Q,W,x){Q.flush();Q.U=x;lm(Q,3,W)};
lm=function(Q,W,x){var D=[],K=Q.track.Ln;if(K){K=K.dP();for(var l=0;l<K.length;l++)D.push(Math.round(K.start(l)*1E3)),D.push(Math.round(K.end(l)*1E3))}K=1;l=D.length;if(l===Q.buffered.length){for(var M=0;M<=l&&D[M]===Q.buffered[M];M++);M>l?K=0:D[M]>Q.buffered[M]&&(M===l-1?K=2:M===l-2&&D[M+1]>Q.buffered[M+1]&&(K=3))}Q.B.add(W<<3|(x&&4)|K);W=Math.ceil(Q.track.Mz()*1E3);Q.B.add(W-Q.L);Q.L=W;if(K===1)for(Q.B.add(l),M=W=0;M<l;M++)Q.B.add(D[M]-W),W=D[M];K===3&&Q.B.add(D[l-2]-Q.buffered[l-2]);K>=2&&Q.B.add(D[l-
1]-Q.buffered[l-1]);x&&Q.B.add(x);Q.buffered=D};
jk=function(Q,W,x){var D=this;this.policy=Q;this.B=W;this.KS=x;this.N=this.U=0;this.iG=null;this.uj=new Set;this.T=[];this.indexRange=this.initRange=null;this.S=new th;this.pS=this.F3=!1;this.by={tM3:function(){return D.D},
kL5:function(){return D.chunkSize},
Uzj:function(){return D.G},
Bq7:function(){return D.X}};
(W=TRs(this))?(this.chunkSize=W.csz,this.D=Math.floor(W.clen/W.csz),this.G=W.ck,this.X=W.civ):(this.chunkSize=Q.Tq,this.D=0,this.G=g.Cu(16),this.X=g.Cu(16));this.L=new Uint8Array(this.chunkSize);this.G&&this.X&&(this.crypto=new jyh(this.G,this.X))};
TRs=function(Q){if(Q.policy.SU&&Q.policy.pT)for(var W=g.V(Q.policy.SU),x=W.next(),D={};!x.done;D={Ic:void 0,bA:void 0},x=W.next())if(x=g.lY(x.value),D.Ic=+x.clen,D.bA=+x.csz,D.Ic>0&&D.bA>0&&Q.policy.N===x.docid&&Q.B.info.id===x.fmtid&&Q.B.info.lastModified===+x.lmt)return Q={},Q.clen=D.Ic,Q.csz=D.bA,Q.ck=x.ck,Q.civ=x.civ,Q};
MY=function(Q){return!!Q.iG&&Q.iG.lf()};
FZ5=function(Q,W){if(!MY(Q)&&!Q.d7()){if(!(Q.F3||(Q.F3=!0,Q.D>0))){var x=RT(Q);x=qo(Q.policy.N,Q.B.info,wI(Q),x,Q.policy.Pt);Sk(Q,x)}if(W.info.type===1){if(Q.iG){bm(Q,Error("Woffle: Expect INIT slices to always start us off"));return}Q.initRange=AZ(0,W.B.getLength())}else if(W.info.type===2)Q.iG&&Q.iG.type===1||bm(Q,Error("Woffle: Index before init")),Q.indexRange=AZ(Q.initRange.end+1,W.B.getLength());else if(W.info.type===3){if(!Q.iG){bm(Q,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(Q.iG.type===3&&!$m(Q.iG,W.info)&&(Q.T=[],W.info.E3!==Iz(Q.iG)||W.info.U!==0))return;if(W.info.N){x=g.V(Q.T);for(var D=x.next();!D.done;D=x.next())Ofs(Q,D.value);Q.T=[]}else{Q.T.push(W);Q.iG=W.info;return}}else{bm(Q,Error("Woffle: Unexpected slice type"));return}Q.iG=W.info;Ofs(Q,W);Em2(Q)}};
Ofs=function(Q,W){var x=0,D=W.B.Nq();if(Q.N<Q.D){x=Q.D*Q.chunkSize;var K,l=(((K=W.info.range)==null?void 0:K.start)||0)+W.info.U;x-=l;if(x>=D.length)return;if(x<0)throw Error("Missing data");Q.N=Q.D;Q.U=0}for(K={};x<D.length;K={qX:void 0})if(K.qX=Math.min(D.length-x,Q.L.byteLength-Q.U),l=new Uint8Array(D.buffer,D.byteOffset+x,K.qX),Q.L.set(l,Q.U),Q.U+=K.qX,x+=K.qX,Q.U===Q.L.length){if(W.info===Q.iG&&MY(Q)&&x===D.length)break;K=RT(Q);K=qo(Q.policy.N,Q.B.info,wI(Q),K,Q.policy.Pt,Q.N,Q.L,Q.crypto);Q.uj.add(K);
Sk(Q,K);Q.d7()||(K=RT(Q),Q.KS(wI(Q),K!==void 0?(K.downloadedEndTime||0)*K.averageByteRate:K.maxKnownEndTime*K.averageByteRate,K.maxKnownEndTime*K.averageByteRate));Q.L=new Uint8Array(Q.chunkSize);Q.U=0;Q.N+=1}};
Em2=function(Q){if(MY(Q))if(Q.iG&&Q.indexRange)if(Q.U){var W=new Uint8Array(Q.L.buffer,0,Q.U),x=t2D(Q),D=Q.policy.N;Promise.all(Q.uj).then(function(){var K=qo(D,Q.iG.B.info,wI(Q,!0),x,Q.policy.Pt,Q.N,W,Q.crypto);Sk(Q,K,!0)})}else bm(Q,new sJ("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else bm(Q,new sJ("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
RT=function(Q){return{downloadedEndTime:Math.round(Q.iG?Q.iG.Nx:0),maxKnownEndTime:Math.round(Q.B.index.w8()),averageByteRate:Math.round(Q.B.info.hM)}};
t2D=function(Q){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(Q.B.index.w8()),averageByteRate:Math.round(Q.B.info.hM)}};
wI=function(Q,W){W===void 0||!W||Q.indexRange&&Q.initRange&&Q.iG||bm(Q,new sJ("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));W={lmt:Q.B.info.lastModified,docid:Q.policy.N,fmtid:Q.B.info.id,type:Q.B.info.mimeType.split(";")[0],csz:Q.chunkSize,clen:Q.N*Q.chunkSize+Q.U};Q.crypto&&(W.ck=Q.G,W.civ=Q.X);var x="local://localhost/videoplayback?"+x1(W),D,K;W={itag:+Q.B.info.itag,mimeType:Q.B.info.mimeType,bitrate:Q.B.info.a5*8,lastModified:String(Q.B.info.lastModified),initRange:(D=
Q.initRange)==null?void 0:FQh(D),indexRange:(K=Q.indexRange)==null?void 0:FQh(K),url:x};if(D=Q.B.info.B)W.xtags=D;if(D=Q.B.info.video)if(W.quality=D.quality,W.qualityLabel=D.qualityLabel,W.width=D.width,W.height=D.height,D=D.fps)W.fps=D;if(Q=Q.B.info.audio){if(D=Q.sampleRate)W.audioSampleRate=String(D);if(Q=Q.numChannels)W.audioChannels=Q}return W};
Sk=function(Q,W,x){x=x===void 0?!1:x;W.then(function(D){Q.uj.delete(W);(x||D===4)&&Q.S.resolve(D)},function(D){Q.S.reject(D)})};
bm=function(Q,W){g.ib(Q.policy.N)!==4&&(g.AQ(Q.policy.N,4),g.Bp(W),Q.S.reject(new sJ(W.message)))};
sJ=function(Q,W){Q=Error.call(this,Q);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.B=W===void 0?!1:W};
QIa=function(Q){Q=g.xm(Q,1886614376);for(var W=g.V(Q),x=W.next();!x.done;x=W.next());return g.pm(Q,function(D){return C7O(D)})};
WBF=function(Q){var W=aX(Q,function(K,l){return K+l.length},0);
W=new Uint8Array(W);var x=0;Q=g.V(Q);for(var D=Q.next();!D.done;D=Q.next())D=D.value,W.set(D,x),x+=D.length;return W};
xGF=function(Q,W,x,D,K,l){this.ids=Q;this.B=W;this.U=x;this.D=D;this.N=K;this.Bv=l};
za=function(Q,W,x){this.initData=Q;this.contentType=W;this.isPrefetch=x;this.B=this.cryptoPeriodIndex=NaN;this.D=[];this.i6=!1;this.U=null;if((W==null?void 0:W.toLowerCase())==="webm"||Q.length===16)this.i6=!0};
KBO=function(Q){a:{var W=Q.initData;try{for(var x=0,D=new DataView(W.buffer);x<D.byteLength-8;){var K=D.getUint32(x);if(K<=1)break;if(D.getUint32(x+4)===1886614376){var l=32;if(D.getUint8(x+8)>0){var M=D.getUint32(x+28);l+=M*16+4}var w=D.getUint32(x+l-4);try{var S=DGa(W.subarray(x+l,x+l+w));if(S!==null){var b=S;break a}}catch(z){}}x+=K}b=null;break a}catch(z){b=null;break a}b=void 0}if(b!=null)for(W=XF(Na(b,7)),W==null||Q.i6||(Q.cryptoPeriodIndex=W),W=XF(Na(b,10)),W!=null&&W>0&&!Q.i6&&(Q.B=W),b=rf(b,
2,YgF,void 0===PZD?2:4),b=g.V(b),W=b.next();!W.done;W=b.next())Q.D.push(g.Vn(dl(W.value),4))};
lvl=function(Q){return isNaN(Q.cryptoPeriodIndex)?g.Vn(Q.initData):""+Q.cryptoPeriodIndex};
k9=function(Q,W,x){var D=x===void 0?{}:x;x=D.videoDuration===void 0?0:D.videoDuration;var K=D.Jw===void 0?void 0:D.Jw;D=D.Gb===void 0?!1:D.Gb;this.videoId=Q;this.status=W;this.videoDuration=x;this.Jw=K;this.Gb=D};
jIF=function(Q,W,x,D,K){this.videoId=Q;this.RD=W;this.U=x;this.bytesDownloaded=D;this.B=K};
XI=function(Q){this.B=Q;this.offset=0};
oT=function(Q){if(Q.offset>=Q.B.getLength())throw Error();return Q.B.getUint8(Q.offset++)};
M8l=function(Q,W){W=W===void 0?!1:W;var x=oT(Q);if(x===1){W=-1;for(x=0;x<7;x++){var D=oT(Q);W===-1&&D!==255&&(W=0);W>-1&&(W=W*256+D)}return W}D=128;for(var K=0;K<6&&D>x;K++)x=x*256+oT(Q),D*=128;return W?x:x-D};
Rdh=function(Q){try{var W=M8l(Q,!0),x=M8l(Q,!1);return{id:W,size:x}}catch(D){return{id:-1,size:-1}}};
wB2=function(Q){for(var W=new XI(Q),x=-1,D=0,K=0;!D||!K;){var l=Rdh(W),M=l.id;l=l.size;if(M<0)return;if(M===176){if(l!==2)return;D=W.JX()}else if(M===186){if(l!==2)return;K=W.JX()}M===374648427?x=W.JX()+l:M!==408125543&&M!==174&&M!==224&&W.skip(l)}W=vQ(Q,0,x);x=new DataView(W.buffer);x.setUint16(D,3840);x.setUint16(K,2160);D=new ul([W]);Yw(D,Q);return D};
S5Q=function(Q,W,x){var D=this;this.Bt=Q;this.policy=W;this.X=x;this.logger=new g.MP("dash");this.U=[];this.B=null;this.F3=-1;this.T=0;this.fS=NaN;this.uj=0;this.D=NaN;this.S=this.X3=0;this.O3=-1;this.LS=this.L=this.N=this.KS=null;this.I5=this.s3=NaN;this.G=this.pS=this.eZ=this.Pt=null;this.SZ=!1;this.g7=this.timestampOffset=0;this.by={uw:function(){return D.U}};
if(this.policy.N){var K=this.X,l=this.policy.N;this.policy.Pt&&Q.qj("atv",{ap:this.policy.Pt});this.G=new jk(this.policy,K,function(M,w,S){um(Q,new k9(D.policy.N,2,{Jw:new jIF(l,M,K.info,w,S)}))});
this.G.S.promise.then(function(M){D.G=null;M===1?um(Q,new k9(D.policy.N,M)):D.Bt.qj("offlineerr",{status:M.toString()})},function(M){var w=(M.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
M instanceof sJ&&!M.B?(D.logger.info(function(){return"Assertion failed: "+w}),D.Bt.qj("offlinenwerr",{em:w}),Y9(D),um(Q,new k9(D.policy.N,4))):(D.logger.info(function(){return"Failed to write to disk: "+w}),D.Bt.qj("dldbwerr",{em:w}),Y9(D),um(Q,new k9(D.policy.N,4,{Gb:!0})))})}};
bnQ=function(Q){return Q.U.length?Q.U[0]:null};
sIO=function(Q,W){return Q.U.some(function(x){return x.info.E3===W})};
ums=function(Q,W,x,D){D=D===void 0?0:D;if(Q.L){var K=Q.L.U+Q.L.D;if(x.info.U>0)if(x.info.E3===Q.L.E3&&x.info.U<K){if(x.info.U+x.info.D<=K)return;x=pTD(x,K-x.info.U)[1]}else if(x.info.E3>=0&&Q.L.E3>=0&&!$m(Q.L,x.info))throw new g.Lw("improper_continuation",Q.L.Zb(),x.info.Zb());xNs(Q.L,x.info)||nG(Q,"d")}else if(x.info.U>0)throw new g.Lw("continuation_of_null",x.info.Zb());Q.L=x.info;Q.X=x.info.B;if(x.info.U===0){if(Q.B)if(!Q.Bt.isOffline()||Q.policy.Ct)Q.Bt.qj("slice_not_fully_processed",{buffered:Q.B.info.Zb(),
push:x.info.Zb()});else throw new g.Lw("slice_not_fully_processed",Q.B.info.Zb(),x.info.Zb());VQ(Q);Q.X3=D}else{if(Q.X3&&D&&Q.X3!==D)throw Q=new g.Lw("lmt_mismatch",x.info.E3,Q.X3,D),Q.level="WARNING",Q;!x.info.B.Gc()&&Q.N&&(D=x.info,K=Q.N.BK,D.L="updateWithEmsg",D.E3=K)}if(Q.B){D=g.WB(Q.B,x);if(!D)throw new g.Lw("failed_to_merge",Q.B.info.Zb(),x.info.Zb());Q.B=D}else Q.B=x;a:{x=g.t7(Q.B.info.B.info);if(Q.B.info.type!==3){if(!Q.B.info.N)break a;Q.B.info.type===6?zdn(Q,W,Q.B):kFl(Q,Q.B);Q.B=null}for(;Q.B;){D=
Q.B.B.getLength();if(Q.F3<=0&&Q.T===0){var l=Q.B.B,M=-1;K=-1;if(x){for(var w=0;w+8<l.getLength();){var S=cV4(l,w),b=cV4(l,w+4);w+=S||1;if(b===1836019558)M=w;else if(b===1835295092){K=w;break}}K<0&&(M=-1)}else{l=new XI(l);for(S=w=!1;;){b=l.JX();var z=Rdh(l),k=z.id;z=z.size;if(!(k>0))break;if(k!==408125543)if(k===524531317)w=!0,z>=0&&(K=l.JX()+z,S=!0);else{if(w&&(k===160||k===163)&&(M<0&&(M=b),S))break;k===163&&(M=Math.max(0,M),K=l.JX()+z);if(k===160){M<0&&(K=M=l.JX()+z);break}l.skip(z)}}M<0&&(K=-1)}if(M<
0)break;Q.F3=M;Q.T=K-M}if(Q.F3>D)break;Q.F3?(D=XBl(Q,Q.F3),D.L&&oKz(Q,D),zdn(Q,W,D),Pn(Q,D),Q.F3=0):Q.T&&(D=XBl(Q,Q.T<0?Infinity:Q.T),Q.T-=D.B.getLength(),Pn(Q,D))}}Q.B&&Q.B.info.N&&(Pn(Q,Q.B),Q.B=null)};
kFl=function(Q,W){!W.info.B.Gc()&&W.info.U===0&&(g.t7(W.info.B.info)||W.info.B.info.i6())&&AhF(W);if(W.info.type===1)try{oKz(Q,W),Y55(Q,W)}catch(K){g.ql(K);var x=mZ(W.info);x.hms="1";Q.Bt.handleError("fmt.unparseable",x||{},1)}x=W.info.B;x.Ir(W);Q.G&&FZ5(Q.G,W);if(x.Fs()&&Q.policy.B)a:{Q=Q.Bt.jZ;W=W.info.clipId;x=g.WT(x.info,Q.lN);if(W){var D=Tgv(Q,x);if(Q.g7[D])break a;Q.g7[D]=W}Q.LS.push(x)}};
ZJz=function(Q,W,x){if(Q.U.length!==0&&(x||Q.U.some(function(l){return l.info.kD<W}))){x=0;
for(var D=g.V(Q.U),K=D.next();!K.done;K=D.next()){K=K.value;if(K.info.kD<W)break;Q.Bt.qj("cmat",{max:W,s:K.info.Zb()});x+=1}Q.U.splice(0,x)}};
Y9=function(Q){var W;(W=Q.G)==null||W.dispose();Q.G=null};
nKz=function(Q){var W=Q.U.reduce(function(x,D){return x+D.B.getLength()},0);
Q.B&&(W+=Q.B.B.getLength());return W};
V8a=function(Q){if(Q.pS&&!Q.policy.YV){var W=Q.Bt;W.jZ.isManifestless&&pn(W.jZ,Q.pS.E3,!!Q.X.info.video)}Q.pS=null;Q.N=null;Q.L=Q.Pt;Q.D=Q.L?Q.D-Q.uj:NaN;VQ(Q)};
XBl=function(Q,W){var x=Q.B;W=Math.min(W,x.B.getLength());if(W===x.B.getLength())return Q.B=null,x;x=pTD(x,W);Q.B=x[1];return x[0]};
oKz=function(Q,W){W.B.getLength();var x=W.qr();if(rw(W.info.B.info)&&W.info.B.info.video.primaries==="bt2020"){var D=new Dt(x);lM(D,[408125543,374648427,174,224,21936,21937])&&(D=D.start+D.pos,x.getUint8(D)===129&&x.getUint8(D+1)===1&&x.setUint8(D+1,9))}D=W.info.B.info;L3(D)&&!rw(D)&&(D=W.qr(),(new Dt(D)).ey(),wR([408125543,374648427,174,224],21936,D));W.info.B.info.OQ()&&(D=W.info.B,D.info&&D.info.video&&D.info.video.projectionType==="MESH"&&!D.U&&(g.t7(D.info)?D.U=Uqv(x):D.info.i6()&&(D.U=c74(x))));
W.info.B.info.i6()&&W.info.OQ()&&(x=W.qr(),(new Dt(x)).ey(),wR([408125543,374648427,174,224],30320,x)&&wR([408125543,374648427,174,224],21432,x));if(Q.policy.OF&&W.info.B.info.i6()){x=W.qr();var K=new Dt(x);if(lM(K,[408125543,374648427,174,29637])){D=Rz(K,!0);K=K.start+K.pos;for(var l=0;l<D-1;l++)x.setUint8(K+l,0);x.setUint8(K+D-1,1)}}if(Q.Mx()&&g.t7(W.info.B.info)){D=W.qr();x=g.LN(D,0,1701606260);l=g.LN(D,0,1836476516);if(x&&l){x.skip(2);var M=Bh(x),w=Iy(x);D=[];K=[];var S=[],b=[];if(M)for(M=0;M<
w;++M)D.push(mw(x)),K.push(mw(x)),S.push(Bh(x)),b.push(Bh(x));else for(M=0;M<w;++M)D.push($J(x)),K.push($J(x)),S.push(Bh(x)),b.push(Bh(x));x=g.rQ(l);x=new i35(K[0]/x,D[0]/x)}else x=null;if(x){if(g.t7(W.info.B.info))for(D=W.qr(),K=g.LN(D,0,1701082227);K;)l=K,l.type=1936419184,l.data.setUint32(l.offset+4,1936419184),K=g.LN(D,K.offset+K.size,1701082227);Q.SZ=!0;W.info.B.N=x}}W.info.B.Gc()||W.info.B.B||W.info.B.indexRange||lO(W)};
zdn=function(Q,W,x){if(x.info.B.Gc()){if(Q.SZ&&POs(x)&&(W=x.qr(),W=g.LN(W,0,1953658222))){W.skip(1);var D=qD(W)<<16|Bh(W),K=D&1,l=D&4;if(D&256){var M=D&512,w=D&1024;D&=2048;var S=Iy(W);S<2||(K&&W.skip(4),l&&W.skip(4),K=Iy(W),W.skip((S-1)*(4+(M?4:0)+(w?4:0)+(D?4:0))-4),W.data.setUint32(W.offset+W.B,K))}}if(W=Q.KS&&!!Q.KS.X.N)if(W=x.info.OQ())W=dND(x),M=Q.KS,vn?(w=1/W,W=CG(Q,W)>=CG(M)+w):W=Q.getDuration()>=M.getDuration(),W=!W;W&&POs(x)&&(W=Q.KS,vn?(w=dND(x),M=1/w,w=CG(Q,w),W=CG(W)+M-w):W=W.getDuration()-
Q.getDuration(),W=1+W/x.info.duration,H31(x.qr(),W))}else{M=!1;Q.N||(AhF(x),x.U&&(Q.N=x.U,M=!0,l=x.info,D=x.U.BK,l.L="updateWithEmsg",l.E3=D,l=x.U,l.lf&&(D=Q.X.index,D.U=!l.lf,D.D="emsg"),l=x.info.B.info,D=x.qr(),g.t7(l)?WM(D,1701671783):l.i6()&&wR([408125543],307544935,D)));a:if((l=Kn(x,Q.policy.Sk))&&iSv(x))w=vKh(Q,x),Q.S+=w,l-=w,Q.uj+=l,Q.D=Q.policy.t_?Q.D+l:NaN;else{if(Q.policy.iV){if(D=S=Q.Bt.MW(g.xK(x),1),Q.D>=0&&x.info.type!==6){if(Q.policy.t_&&isNaN(Q.s3)){g.Bp(new g.Lw("Missing duration while processing previous chunk",
x.info.Zb()));Q.Bt.isOffline()&&!Q.policy.Ct||COF(Q,x,D);nG(Q,"m");break a}var b=S-Q.D,z=b-Q.S,k=x.info.E3,X=Q.LS?Q.LS.E3:-1,u=Q.I5,Y=Q.s3,v=Q.policy.gX&&b>Q.policy.gX,J=Math.abs(z)>10,h=Math.abs(Q.D-D)<1E-7;if(Math.abs(z)>1E-4){Q.g7+=1;var G=(K=Q.N)==null?void 0:fN(K);K={audio:""+ +Q.Mx(),sq:k.toFixed(),sliceStart:S,lastSq:X.toFixed(),lastSliceStart:u,lastSliceDuration:Y,totalDrift:(b*1E3).toFixed(),segDrift:(z*1E3).toFixed(),skipRewrite:""+ +(v||J)};if(G==null?0:G.length)K.adCpn=G[0];Q.Bt.handleError("qoe.avsync",
K);Q.O3=k}v||J||h||(D=Q.D);K=vKh(Q,x,S);l-=K;Q.S=b+K;Q.policy.D&&(z&&!h||K)&&(b=(w=Q.N)==null?void 0:fN(w),Q.Bt.qj("discontinuityRewrite",{adCpn:(b==null?0:b.length)?b.join("."):"",itag:x.info.B.info.itag,sq:x.info.E3,originalStartTime:S,rewrittenStartTime:D,startTimeAdjustment:D-S,segDrift:(z*1E3).toFixed(),originalDuration:l+K,rewrittenDuration:l,durationAdjustment:K}))}}else D=isNaN(Q.D)?x.info.startTime:Q.D;COF(Q,x,D)&&(Q.uj+=l,Q.D=D+l,Q.policy.QS&&Q.g7>=Q.policy.QS&&(Q.g7=0,Q.Bt.Sy({resetForRewrites:"count"})))}Q.LS=
x.info;Q.s3=Dv(x);x.D>=0&&(Q.I5=x.D);if(M&&Q.N){M=Jav(Q,!0);NL(x.info,M);Q.B&&NL(Q.B.info,M);W=g.V(W);for(w=W.next();!w.done;w=W.next())w=w.value,K=void 0,Q.policy.X&&w.E3!==((K=Q.N)==null?void 0:K.BK)||NL(w,M);(x.info.N||Q.B&&Q.B.info.N)&&x.info.type!==6||(Q.pS=M,Q.policy.I5?(W=pB2(Q.N),Q.Bt.aM(Q.X,M,W)):(W=Q.Bt,W.jZ.isManifestless&&hd5(W,M,null,!!Q.X.info.video)),Q.policy.xN||av5(Q))}}Y55(Q,x);Q.timestampOffset&&aRa(x,Q.timestampOffset)};
Pn=function(Q,W){if(W.info.N){Q.Pt=W.info;if(Q.N){var x=Q.N,D=Jav(Q,!1);x=pB2(x);Q.Bt.aM(Q.X,D,x);Q.pS||Q.policy.xN||av5(Q);Q.pS=null}VQ(Q)}Q.G&&FZ5(Q.G,W);if(D=Q.h8())if(D=g.WB(D,W,Q.policy.rz)){Q.U.pop();Q.U.push(D);return}Q.U.push(W)};
pB2=function(Q){if(Q.ML()){var W=Q.data["Stitched-Video-Id"]?Q.data["Stitched-Video-Id"].split(",").slice(0,-1):[],x=fN(Q),D=[];if(Q.data["Stitched-Video-Duration-Us"])for(var K=g.V(Q.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),l=K.next();!l.done;l=K.next())D.push((Number(l.value)||0)/1E6);K=[];if(Q.data["Stitched-Video-Start-Frame-Index"]){l=g.V(Q.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var M=l.next();!M.done;M=l.next())K.push(Number(M.value)||0)}K=[];
if(Q.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(l=g.V(Q.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),M=l.next();!M.done;M=l.next())K.push((Number(M.value)||0)/1E6);Q=new xGF(W,x,D,K,g.Gu5(Q),g.dqs(Q))}else Q=null;return Q};
VQ=function(Q){Q.B=null;Q.F3=-1;Q.T=0;Q.N=null;Q.fS=NaN;Q.uj=0;Q.pS=null};
nG=function(Q,W){W={rst4disc:W,cd:Q.S.toFixed(3),sq:Q.LS?Q.LS.E3:-1};Q.D=NaN;Q.S=0;Q.O3=-1;Q.LS=null;Q.I5=NaN;Q.s3=NaN;Q.eZ=null;Q.Bt.qj("mdstm",W)};
Y55=function(Q,W){if(Q.X.info.Qp){if(W.info.B.info.i6()){var x=new Dt(W.qr());if(lM(x,[408125543,374648427,174,28032,25152,20533,18402])){var D=Rz(x,!0);x=D!==16?null:zI(x,D)}else x=null;D="webm"}else W.info.G=QIa(W.qr()),x=WBF(W.info.G),D="cenc";x&&x.length&&(x=new za(x,D),Q.policy.nI&&g.t7(W.info.B.info)&&(D=mqQ(W.qr()))&&(x.U=D),x.i6=W.info.B.info.i6(),W.U&&W.U.cryptoPeriodIndex&&(x.cryptoPeriodIndex=W.U.cryptoPeriodIndex),W.U&&W.U.U&&(x.B=W.U.U),Q.Bt.vc(x))}};
av5=function(Q){var W=Q.N,x=hMz(W);x&&(x.startSecs+=Q.fS,Q.Bt.Zo(Q.X,x,W.BK,W.ML()))};
Jav=function(Q,W){var x,D=Q.N;if(x=hMz(D))x.startSecs+=Q.fS;return new AW(D.BK,Q.fS,W?D.zA:Q.uj,D.ingestionTime,"sq/"+D.BK,void 0,void 0,W,x)};
COF=function(Q,W,x){if(!hWh(W,x))return W=mZ(W.info),W.smst="1",Q.Bt.handleError("fmt.unparseable",W||{},1),!1;isNaN(Q.fS)&&(Q.fS=x);return!0};
vKh=function(Q,W,x){var D=0;if(W.info.B.info.i6()&&!iSv(W))return 0;if(Q.KS&&!Q.Mx()){var K=0;x&&g.t7(W.info.B.info)?K=x-Q.D:W.info.B.info.i6()&&(K=Q.S);var l=W.info.E3;x=Kn(W,Q.policy.Sk);var M=Q.KS;var w=M.O3;M=M.S;var S=Math.abs(M-K)>.02;if((l===w||l>w&&l>Q.O3)&&S){D=Math.max(.95,Math.min(1.05,(x-(M-K))/x));if(g.t7(W.info.B.info))H31(W.qr(),D);else if(W.info.B.info.i6()&&(l=K-M,!g.t7(W.info.B.info)&&(W.info.B.info.i6(),D=new Dt(W.qr()),w=W.L?D:new Dt(new DataView(W.info.B.B.buffer)),Kn(W,!0)))){var b=
l*1E3,z=XU(w);w=D.pos;D.pos=0;if(D.B.getUint8(D.pos)===160||oz(D))if(ML(D,160))if(Rz(D,!0),ML(D,155)){if(l=D.pos,S=Rz(D,!0),D.pos=l,b=b*1E9/z,z=S2(D),b=z+Math.max(-z*.7,Math.min(z,b)),b=Math.sign(b)*Math.floor(Math.abs(b)),!(Math.ceil(Math.log(b)/Math.log(2)/8)>S)){D.pos=l+1;for(l=S-1;l>=0;l--)D.B.setUint8(D.pos+l,b&255),b>>>=8;D.pos=w}}else D.pos=w;else D.pos=w;else D.pos=w}D=Kn(W,Q.policy.Sk);D=x-D}D&&W.info.B.info.i6()&&Q.Bt.qj("webmDurationAdjustment",{durationAdjustment:D,videoDrift:K+D,audioDrift:M})}return D};
POs=function(Q){return Q.info.B.Gc()&&Q.info.E3===Q.info.B.index.oQ()};
CG=function(Q,W){W=(W=W===void 0?0:W)?Math.round(Q.timestampOffset*W)/W:Q.timestampOffset;Q.X.N&&W&&(W+=Q.X.N.B);return W+Q.getDuration()};
GF1=function(Q,W){W<0||(Q.U.forEach(function(x){aRa(x,W)}),Q.timestampOffset=W)};
Nd=function(Q,W,x,D,K){DW.call(this,x,K);var l=this;this.policy=Q;this.formatId=W;this.WZ=D;this.lastError=null;this.E4=function(){l.d7()||(l.WZ.vD.has(l.formatId)?(l.isComplete()||l.B.start(),H7(l.WZ,l.formatId)&&l.Kj(2),l.WZ.C2(l.formatId)&&(WZO(l.WZ,l.formatId)?l.wE(4):(l.lastError="net.closed",l.wE(5)))):(l.lastError="player.exception",l.wE(5)))};
this.B=new g.O3(function(){l.isComplete()||(l.lastError="net.timeout",l.wE(5))},this.policy.aE);
this.B.start();Fwn(this.WZ,this.formatId,this.E4);g.wv(this.E4)};
Jt=function(Q,W,x,D){g.N.call(this);var K=this;this.Bt=Q;this.policy=W;this.B=x;this.timing=D;this.logger=new g.MP("dash");this.D=[];this.KS=[];this.U=this.Ln=null;this.g7=!1;this.eZ=this.s3=0;this.X=-1;this.F3=!1;this.LS=-1;this.fS=this.X3=null;this.pS=NaN;this.uj=[];this.by={Fj:function(){return K.N},
AEj:function(){return K.D},
Dzp:function(){return K.S}};
this.N=new S5Q(Q,W,x);this.policy.B&&(this.S=new B9(this.N,this.Bt.getManifest(),this.policy,function(l){K.policy.nK&&K.qj("buftl",l)}));
this.policy.tf&&(this.T=new KG(this));this.a5=x.info.a5;this.G=this.policy.pS?!1:x.z6();this.isManifestless=x.z6();this.L=this.G;g.y(this,this.X3)};
pG=function(Q,W,x){x=x===void 0?!1:x;W&&vn&&GF1(Q.N,W.YB());if(!x){var D;(D=Q.S)==null||gvl(D)}Q.Ln=W;(W=Q.S)!=null&&(W.Ln=Q.Ln)};
ht=function(Q){var W=Q.Ln&&Q.Ln.JY();if(Q.policy.Nb){if((Q=Q.S)==null)Q=void 0;else{var x;Q=(x=Q.D)==null?void 0:x.info}return Q||null}return W};
dGs=function(Q){for(var W={},x=0;x<Q.KS.length;x++)W["r"+x]=Q.KS[x];return W};
aT=function(Q,W){isNaN(Q.pS)||Q.qj("aswr",{sq:W.info.Af[0].E3,id:W.info.Af[0].B.info.itag,xtag:W.info.Af[0].B.info.B,ep:Date.now()-Q.pS});Q.D.push(W);Q.U=g.r1(W.info.Af);Q.KS.push(W.Zb());Q.KS.length>4&&Q.KS.shift()};
inl=function(Q,W){if(W.Rl()){var x=W.PM();x=g.V(x);for(var D=x.next();!D.done;D=x.next())D=D.value,Q.policy.D&&W instanceof Nd&&Q.qj("omblss",{s:D.info.Zb()}),Ga(Q,W.info.Af,D,W.gN())}};
Ga=function(Q,W,x,D){D=D===void 0?0:D;isNaN(Q.pS)||(Q.qj("aswm",{sq:W[0].E3,id:W[0].B.info.itag,xtag:W[0].B.info.B,ep:Date.now()-Q.pS}),Q.pS=NaN);switch(x.info.type){case 1:case 2:AaQ(Q,x);break;case 4:var K=x.info.B,l=K.TY(x),M;((M=Q.U)==null?0:M.type===4)&&wT2(x.info,Q.U)&&(Q.U=K.Zl(Q.U).pop());x=g.V(l);for(K=x.next();!K.done;K=x.next())Ga(Q,W,K.value,D);break;case 3:x.info.B.info.video?(K=Q.timing,K.KS||(K.KS=(0,g.a8)(),Gp("fvb_r",K.KS,K.B))):(K=Q.timing,K.X||(K.X=(0,g.a8)(),Gp("fab_r",K.X,K.B)));
ums(Q.N,W,x,D);Q.policy.B&&Hn4(Q);break;case 6:ums(Q.N,W,x,D),Q.U=x.info}};
AaQ=function(Q,W){if(W.info.type===1)if(W.info.B.info.video){var x=Q.timing;x.LS||(x.LS=(0,g.a8)(),Gp("vis_r",x.LS,x.B))}else x=Q.timing,x.S||(x.S=(0,g.a8)(),Gp("ais_r",x.S,x.B));kFl(Q.N,W);Q=Q.Bt;Q.videoTrack.B.Fs()&&Q.audioTrack.B.Fs()&&Q.policy.B&&!Q.jZ.lN&&(W=Q.audioTrack.getDuration(),x=Q.videoTrack.getDuration(),Math.abs(W-x)>1&&Q.qj("trBug",{af:""+g.WT(Q.audioTrack.B.info,!1),vf:""+g.WT(Q.videoTrack.B.info,!1),a:""+W,v:""+x}))};
TA=function(Q){return bnQ(Q.N)};
Hn4=function(Q){Q.D.length?Q.U=g.r1(g.r1(Q.D).info.Af):Q.N.U.length?Q.U=Q.N.h8().info:Q.U=ht(Q)};
dI=function(Q,W){var x={Mi:[],MH:[]},D;if((Q=Q.S)==null)Q=void 0;else{cBz(Q,Q.Mi,"og");IQ5(Q,W);cBz(Q,Q.Mi,"trim");var K=NLs(Q);W=K.Mi;K=K.wY;for(var l=[],M=0;M<K.length;M++){var w=K[M],S=Q.policy.O3&&w.D!==-1?w.D:w.info.startTime,b={startTicks:(S+Q.timestampOffset)*1E3,Of:(Q.policy.O3&&w.N!==-1?w.N:w.info.duration)*1E3,timescale:1E3},z=void 0,k=(z=Q.Ln)==null?void 0:z.dP();z=void 0;if(Q.policy.xF&&k&&k.length>0){var X=wg(k,S);X>=0&&(z=(k.end(X)-S+.1)*1E3)}l.push({formatId:g.WT(w.info.B.info,Q.jZ.lN),
e9:w.info.e9,sequenceNumber:w.info.E3+Q.N,W5:b,rR:w.info.D,lB:z})}Q={Mi:W,MH:l}}return(D=Q)!=null?D:x};
y2=function(Q,W,x){x=x===void 0?!1:x;if(Q.Ln){var D=Q.Ln.dP(),K=b9(D,W),l=NaN,M=ht(Q);M&&(l=b9(D,M.B.index.getStartTime(M.E3)));if(K===l&&Q.U&&Q.U.D&&UG1(im(Q),0))return W}Q=q55(Q,W,x);return Q>=0?Q:NaN};
fa=function(Q,W,x){Q.B.Fs();var D=q55(Q,W);if(D>=0)return D;var K;(K=Q.S)==null||myO(K,W,x);x=Math;D=x.min;K=Q.N;if(K.G)if(K=K.G,K.iG&&K.iG.type===3)K=K.iG.startTime;else if(K.D>0){var l=K.B.index;l=g.wl(l.offsets.subarray(0,l.count),K.D*K.chunkSize);K=K.B.index.getStartTime(l>=0?l:Math.max(0,-l-2))}else K=0;else K=Infinity;W=D.call(x,W,K);if(Q.policy.U){var M,w;x=(M=Q.Bt.zP())==null?void 0:(w=IY(M,W))==null?void 0:w.clipId;Q.U=Q.B.I4(W,void 0,x).Af[0]}else Q.U=Q.policy.pS?null:Q.B.I4(W).Af[0];At(Q)&&
(Q.Ln&&Q.Ln.abort(),Q.policy.gr&&(M=Q.S)!=null&&(M.D=void 0));Q.eZ=0;return Q.U?Q.U.startTime:W};
eUn=function(Q){Q.G=!0;Q.L=!0;Q.X=-1;fa(Q,Infinity)};
Hn=function(Q){for(var W=0,x=g.V(Q.D),D=x.next();!D.done;D=x.next())W+=bSa(D.value.info);return W+=nKz(Q.N)};
qY=function(Q,W){W=W===void 0?!1:W;var x=Q.Bt.getCurrentTime(),D=Q.N.h8(),K=(D==null?void 0:D.info.Nx)||0;Q.policy.P9&&(D==null?0:D.info.B.z6())&&!D.info.N&&(K=D.info.kD);if(Q.policy.U&&D&&D.info.clipId){var l,M=(((l=Q.Bt.zP())==null?void 0:$2(l,D.info.clipId))||0)/1E3;K+=M}if(!Q.Ln)return Q.policy.B&&W&&!isNaN(x)&&D?K-x:0;if((l=ht(Q))&&UJ(Q,l))return l.Nx;M=Q.Ln.dP(!0);if(W&&D)return l=0,Q.policy.B&&(l=kU(M,K+.02)),l+K-x;K=kU(M,x);Q.policy.wZ&&l&&(W=wg(M,x),M=wg(M,l.kD-.02),W===M&&(x=l.Nx-x,Q.policy.D&&
x>K+.02&&Q.qj("abh",{bh:K,bhtls:x}),K=Math.max(K,x)));return K};
BrD=function(Q){var W=ht(Q);return W?W.Nx-Q.Bt.getCurrentTime():0};
$G5=function(Q,W){if(Q.D.length){if(Q.D[0].info.Af[0].startTime<=W)return;gz(Q)}for(var x=Q.N,D=x.U.length-1;D>=0;D--)x.U[D].info.startTime>W&&x.U.pop();Hn4(Q);Q.U&&W<Q.U.startTime&&(Q.eZ=0,Q.B.Fs()?Q.U=Q.B.I4(W,!0).Af[0]:Q.U=null)};
Bn=function(Q,W,x,D){if(!Q.B.index.gY(W,!0))return!1;try{gz(Q);for(var K=Q.N,l=null,M=K.U.length-1;M>=0;M--){var w=K.U[M];w.info.E3>=W&&(K.U.pop(),K.D-=Kn(w,K.policy.Sk),l=w.info)}l&&(K.L=K.U.length>0?K.U[K.U.length-1].info:K.eZ,K.U.length!==0||K.L||nG(K,"r"));K.Bt.qj("mdstm",{rollbk:1,itag:l?l.B.info.itag:"",popped:l?l.E3:-1,sq:W,lastslc:K.L?K.L.E3:-1,lastfraget:K.D.toFixed(3)});if(Q.policy.B)return Q.U=null,!0;D>x?fa(Q,D):Q.U=Q.B.BO(W-1,!1).Af[0]}catch(S){return W=i7(S),W.details.reason="rollbkerr",
Q.Bt.handleError(W.errorCode,W.details,W.severity),!1}return!0};
IT=function(Q,W){var x;for(x=0;x<Q.D.length&&W!==Q.D[x];x++);if(x===Q.D.length)$9(Q,W);else{for(;x<Q.D.length;)$9(Q,Q.D.pop());var D=g6(Q);D&&D.B.Sr()&&dM(W.info.Af,function(K){return SwD(K,D)})?(Q.U=D,Q.policy.D&&Q.qj("cer",{lsr:"lsp",
lsp:D.Zb()})):(BM(W.info.Af[0])?(Q.U=W.q_&&W.q_.D?Men(W.q_.D):jUn(W.info.Af[0]),Q.policy.D&&Q.qj("cer",{lsr:Q.U.Zb(),lsp:D==null?void 0:D.Zb()})):(Q.U=null,Q.policy.D&&Q.qj("cer",{lsr:"null",lsp:D==null?void 0:D.Zb()})),Q.Bt.isOffline()&&!Q.policy.Ct||$9(Q,W,!0))}};
UJ=function(Q,W){if(!W)return!1;if(Q.policy.U){var x;if((Q=(x=Q.Bt.zP())==null?void 0:mv(x))&&W.clipId!==Q)return!1}return W.lf()};
At=function(Q){var W;!(W=Q.B.info.CS==="f")&&(W=Q.policy.N)&&(W=Q.N,W=!!W.G&&MY(W.G));if(W)return!0;W=ht(Q);if(!W)return!1;var x=UJ(Q,W)&&W.N;return Q.isManifestless&&Q.LS>0?x||W.E3>=Q.LS:x};
NY=function(Q){var W;return At(Q)||UJ(Q,(W=Q.N.h8())==null?void 0:W.info)};
im=function(Q){var W=[],x=ht(Q);x&&W.push(x);W=g.x8(W,Q.N.BF());x=g.V(Q.D);for(var D=x.next();!D.done;D=x.next()){D=D.value;for(var K=g.V(D.info.Af),l=K.next(),M={};!l.done;M={RV:void 0},l=K.next())M.RV=l.value,D.Sw&&(W=g.Rv(W,function(w){return function(S){return!wT2(S,w.RV)}}(M))),(BM(M.RV)||M.RV.type===4)&&W.push(M.RV)}Q.U&&!QU5(Q.U,g.r1(W),Q.U.B.Gc())&&W.push(Q.U);
return W};
UG1=function(Q,W){if(!Q.length)return!1;for(W+=1;W<Q.length;W++)if(!W$F(Q[W-1],Q[W]))return!1;return!0};
q55=function(Q,W,x){x=x===void 0?!1:x;if(!Q.U||!Q.U.D)return NaN;Q=im(Q);a:{W+=.02;var D=x;D=D===void 0?!1:D;for(var K=-1,l=0;l<Q.length;++l){var M=Q[l];if(M.kD<=W)if(D)K=l;else if(M.startTime+M.duration>=W){W=l;break a}}W=K}return W<0?NaN:UG1(Q,x?W:0)?Q[W].startTime:NaN};
cn=function(Q){return!(!Q.U||Q.U.B===Q.B)};
IvD=function(Q){return cn(Q)&&Q.B.Fs()&&Q.U.B.info.a5<Q.B.info.a5};
mG5=function(Q,W,x){if(Q.policy.P9)return qY(Q,!0)<x;var D=g6(Q);return D&&!UJ(Q,D)?D.Nx>W&&D.Nx<W+x:!1};
g6=function(Q){var W=Q.N.h8();return W?W.info:ht(Q)};
JZ4=function(Q,W){var x;return!((x=Q.S)==null||!x.L.has(W))||sIO(Q.N,W)};
gz=function(Q){for(var W=g.V(Q.D),x=W.next();!x.done;x=W.next())$9(Q,x.value);Q.D=[];Q.U=null};
gI=function(Q){var W;(W=Q.S)==null||gvl(W);Q.policy.Cn&&(Q.uj=[])};
NrD=function(Q,W,x){W.Sw&&((x===void 0?0:x)||!W.info.Af[0].B.Sr())&&(Q.logger.debug(function(){return"Rolling back request with segNum "+W.info.Af[0].E3}),V8a(Q.N))};
$9=function(Q,W,x){NrD(Q,W,x===void 0?!1:x);W.dispose()};
cas=function(Q){return!!Q.U&&Q.U.E3!==-1&&Q.U.E3<Q.B.index.Ec()};
gKs=function(Q){var W=Q.U;W&&W.E3===-1&&(Q=Q.N.h8())&&BM(Q.info)&&(Q=Q.info.E3,W.L="updateLastSliceRequested",W.E3=Q)};
yaF=function(Q){return dM(Q.D,function(W){return W.zU})};
eda=function(Q,W){Q.U&&(Q.U.B=W)};
yQ=function(Q,W){return Q.Ln?Se(Q.Ln.dP(),W):!0};
ek=function(Q){var W=TA(Q);Q=Q.Bt.zP();return W&&Q&&W.info.clipId&&!fvv(Q,W.info.clipId)?!0:!1};
fG=function(Q){var W;return!((W=TA(Q))==null||!W.isLocked)};
Znz=function(Q,W){var x=TA(Q);return x&&x.info.type!==6?!pM2(W,Q,x.info.E3):!1};
LBn=function(Q){var W=ht(Q),x,D=(x=Q.Ln)==null?void 0:x.dP();x=NaN;W&&D&&At(Q)&&(x=b9(D,(W.kD+W.Nx)/2));return!isNaN(x)};
ran=function(Q){if((Q=Q.S)==null)Q=void 0;else if(Q.Mi.length===0||Q.policy.UG&&Q.B<0)Q=null;else{var W=Q.Mi[Q.B]?Q.Mi[Q.B].formatId:null;Q=W?(Q=Q.jZ.D.get(az(W)))?Q.info:null:null}return Q||null};
Trl=function(Q,W){Q=g.V(Q.uj);for(var x=Q.next();!x.done;x=Q.next())if(x=x.value,x.BK===W)return x.JA3?2:1;return 0};
Ons=function(){this.bF=!1};
EK1=function(Q){var W=Q===void 0?{}:Q;Q=W.hasSubfragmentedFmp4===void 0?!1:W.hasSubfragmentedFmp4;W=W.RZ===void 0?!1:W.RZ;var x=new Ons;x.bF=Q||W;return x};
g.FBn=function(Q){this.Dp=Q;this.S=new Ons;this.Ra=this.Mb=!1;this.jz=2;this.g7=20971520;this.Vj=8388608;this.F3=120;this.h3=this.u$=this.fU=2;this.bk=this.F$=!1;this.jS=1E3;this.Gn=15;this.wx=1;this.T=1.15;this.uj=1.05;this.YJ=1;this.CR=this.IU=!1;this.A4=6;this.D=!1;this.FJ=100;this.y7=10;this.Py=6;this.W9=!1;this.kV=1;this.U8=this.jE=!1;this.Pz=2;this.iV=this.lF=!1;this.Y6=!0;this.KR=this.fn=this.Tc=this.SZ=this.b6=!1;this.mD=!0;this.t3=!1;this.N="";this.SU=[];this.eS=this.iD=this.tf=!1;this.U2=
0;this.Ke="";this.X$=this.wX=this.mp=this.nK=this.qm=this.My=this.X=this.Ep=this.IH=this.FV=this.B=this.Dx=this.Pt=this.KS=this.gr=this.Nb=this.X3=this.U=this.xN=!1;this.J2=!0;this.H2=this.P9=this.zz=this.z4=this.L=this.O3=!1;this.s3=!0;this.gH=this.Jx=this.s7=this.Kq=this.kX=this.cD=this.DH=this.Sz=this.xF=this.KU=this.Kn=this.Og=this.pS=this.A_=this.I5=this.oH=this.fS=!1;this.rX=g.X0(this.Dp.experiments,"html5_min_readbehind_secs");this.IE=g.X0(this.Dp.experiments,"html5_min_readbehind_cap_secs");
this.Ct=this.Dp.j("html5_offline_reset_media_stream_on_unresumable_slices");this.a5=NaN;this.h_=Zg(this,"html5_request_size_min_kb",64)*1024;this.eZ=2097152;this.gZ=Zg(this,"html5_bypass_contention_secs");this.QO=1048576;this.ra=Zg(this,"html5_repredict_interval_ms",1800);this.ju=Zg(this,"html5_head_miss_secs",5);this.Wy=Zg(this,"html5_min_upgrade_health_secs",10);this.OR=Zg(this,"html5_min_seconds_between_format_selections",8);this.vy=Zg(this,"html5_max_buffer_health_for_downgrade_secs",15);this.pN=
ta;this.h4=g.X0(this.Dp.experiments,"html5_min_startup_buffered_media_duration_secs");this.Ia=g.X0(this.Dp.experiments,"html5_post_interrupt_readahead");this.dZ=this.Dp.j("html5_allow_onesie_for_ssap");this.ir=this.Dp.j("html5_disable_classic_alr");this.O_=g.X0(this.Dp.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.U_=Zg(this,"html5_ssdai_failure_retry_limit",3);this.Pi=this.Dp.experiments.ij("html5_clone_original_for_fallback_location");this.RQ=g.X0(this.Dp.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
this.BM=g.X0(this.Dp.experiments,"html5_subsegment_readahead_timeout_secs");this.xo=g.X0(this.Dp.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.pu=g.X0(this.Dp.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.q8=g.X0(this.Dp.experiments,"html5_subsegment_readahead_min_load_speed");this.yS=g.X0(this.Dp.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.uc=g.X0(this.Dp.experiments,"html5_subsegment_readahead_seek_latency_fudge");
this.Wz=Zg(this,"html5_hopeless_secs",15);this.rj=this.Dp.j("html5_restrict_streaming_xhr_on_sqless_requests");this.Gq=g.X0(this.Dp.experiments,"html5_max_headm_for_streaming_xhr");this.xP=this.Dp.j("html5_pipeline_manifestless_allow_nonstreaming");this.iK=this.Dp.j("html5_prefer_server_bwe3");this.S7=this.Dp.j("html5_last_slice_transition");this.Uw=this.Dp.j("html5_store_xhr_headers_readable");this.gX=g.X0(this.Dp.experiments,"html5_max_drift_per_track_secs");this.YV=this.Dp.j("html5_no_placeholder_rollbacks");
this.nG=this.Dp.j("html5_subsegment_readahead_enable_mffa");this.vZ=this.Dp.j("html5_allow_video_keyframe_without_audio");this.nI=this.Dp.j("html5_enable_vp9_fairplay");this.Tq=1048576;this.pT=this.Dp.j("html5_woffle_resume");this.b$=this.Dp.j("html5_abs_buffer_health");this.hj=this.Dp.j("html5_interruption_resets_seeked_time");this.Yw=g.X0(this.Dp.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Tm=this.Dp.j("html5_log_additional_source_buffer_updates");this.lr=this.Dp.j("html5_report_captions_ctmp_qoe");
this.X_=this.Dp.j("html5_explicitly_dispose_xhr");this.rz=!this.Dp.j("html5_encourage_array_coalescing");this.fJ=this.Dp.j("html5_restart_on_unexpected_detach");this.ix=this.Dp.j("html5_filter_non_efficient_formats_for_safari");this.Dp.j("html5_format_hybridization");this.uR=this.Dp.j("html5_abort_before_separate_init");this.OF=TG();this.ut=this.Dp.j("html5_serialize_server_stitched_ad_request");this.oE=this.Dp.j("html5_skip_buffer_check_seek_to_head");this.qy=this.Dp.j("html5_attach_po_token_to_bandaid");
this.oa=g.X0(this.Dp.experiments,"html5_max_redirect_response_length")||8192;this.t_=this.Dp.j("html5_rewrite_timestamps_for_webm");this.Sk=this.Dp.j("html5_only_media_duration_for_discontinuities");this.ZF=g.X0(this.Dp.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Dp.j("html5_onesie_live");this.Bj=this.Dp.j("html5_onesie_premieres");this.b9=this.Dp.j("html5_drop_onesie_for_live_mode_mismatch");this.tJ=g.X0(this.Dp.experiments,"html5_onesie_live_ttl_secs")||8;this.ez=g.X0(this.Dp.experiments,
"html5_attach_num_random_bytes_to_bandaid");this.aE=g.X0(this.Dp.experiments,"html5_onesie_request_timeout_ms")||3E3;this.Ud=this.Dp.j("html5_update_container_type_on_codec_family_change")||this.Dp.j("html5_use_update_container_type_codec_family");this.VB=this.Dp.j("html5_dont_call_change_type_on_updating");this.Qx=this.Dp.j("html5_apply_ssap_slice_info_adjustment");this.WN=this.Dp.j("html5_enable_sabr_host_fallback");this.Br=this.Dp.j("html5_ssap_enable_legacy_browser_logic");this.ZR=this.Dp.j("html5_ssap_enable_delay_init");
this.WU=this.Dp.j("html5_gapless_fallback_on_append_error");this.p6=this.Dp.j("html5_shorts_stop_request_when_buffer_to_end");this.FF=this.Dp.j("html5_vod_stop_request_when_buffer_to_end");this.LS=this.Dp.j("html5_ssdai_use_post_for_media")&&this.Dp.j("gab_return_sabr_ssdai_config");this.mO=this.Dp.j("html5_use_post_for_media");this.hn=this.Dp.j("html5_use_live_ump_heartbeat");this.useUmp=this.Dp.j("html5_use_ump");this.jC=this.Dp.J2;this.e$=this.Dp.j("html5_reset_primary_stats_on_redirector_failure");
this.WY=this.Dp.j("html5_remap_to_original_host_when_redirected");this.Ks=this.Dp.j("html5_sabr_support_quality_constraints");this.Zt=this.Dp.j("html5_sabr_remove_all_quality_constraints");this.rZ=this.Dp.j("html5_iterative_seeking_buffered_time");this.Zf=this.Dp.j("html5_use_network_error_code_enums");this.CI=this.Dp.j("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=this.Dp.j("html5_enable_server_driven_request_cancellation");this.zT=this.Dp.j("html5_enable_sabr_request_timing");
this.uG=this.Dp.j("html5_enable_server_format_filter");this.b0=this.Dp.j("html5_enable_lawnmower");this.Vd=this.Dp.jk()?g.X0(this.Dp.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.tj=g.X0(this.Dp.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.VW=this.Dp.j("html5_live_defrag_only_h264_playbacks");this.aA=this.Dp.j("html5_live_defrag_only_h264_formats");this.W2=this.Dp.j("html5_record_now");this.HF=g.X0(this.Dp.experiments,"html5_drm_byterate_soft_cap");this.xg=g.X0(this.Dp.experiments,
"html5_drm_live_byterate_soft_cap");this.G=this.Dp.j("html5_sabr_log_request_creation");this.m1=this.Dp.j("html5_use_buffer_timeline_for_sabr_request_creation");this.gE=this.Dp.j("html5_sabr_report_request_cancellation_info");this.Wg=this.Dp.j("html5_spoof_4k");this.G4=Zg(this,"html5_min_media_duration_for_cabr_slice");this.zq=Zg(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.Mp=this.rz?0:Zg(this,"html5_min_media_duration_for_append_prop");this.kM=this.Dp.j("html5_remove_defrag_without_frame_level_streaming");
this.sR=this.Dp.j("html5_consume_all_buffered_bytes_one_poll");this.Su=this.Dp.j("html5_disable_urgent_adaptation");this.ER=this.Dp.j("html5_apply_constraints_in_client_for_sabr");this.Hg=this.Dp.j("html5_send_video_playback_ustreamer_config");this.QS=Zg(this,"html5_max_discontinuity_rewrite_count");this.La=Zg(this,"html5_fixed_media_duration_for_request");this.xI=this.Dp.j("html5_apply_fix_for_missing_seg_info_without_logger");this.YY=Zg(this,"html5_sabr_request_limit_per_period");this.UT=this.Dp.j("html5_sabr_live_partial_segment");
this.TH=this.Dp.j("html5_sabr_dispose_media_objects");this.im=this.Dp.j("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.u0=this.Dp.j("html5_enable_d6de4");this.yU=this.Dp.j("html5_ssap_keep_only_ssap_eos_check");this.Dp.j("html5_high_res_seek_logging");this.lW=this.Dp.j("html5_disable_chunk_synchronization_sabr_seek");this.TQ=this.Dp.j("html5_enable_ssap_multi_audio_format_filtering");this.s_=g.X0(this.Dp.experiments,"html5_override_micro_discontinuities_threshold_ms");this.Hy=this.Dp.j("defer_slice_processing_on_healthy_buffer_sabr");
this.EX=this.Dp.j("html5_byterate_constraints");this.CC=this.Dp.j("html5_refactor_sabr_audio_format_selection_logging");this.Et=this.Dp.j("enable_sabr_snackbar_message");this.Dp.j("html5_reinit_source_buffer_by_new_element");this.PU=this.Dp.j("html5_refactor_sabr_video_format_selection_logging");this.LI=this.Dp.j("html5_log_slice_info_in_sbu");this.yA=Zg(this,"html5_paced_poll_ms");this.ZY=Zg(this,"html5_paced_poll_min_health_ms");this.hJ=this.Dp.j("html5_disable_sabr_fallback");this.UG=this.Dp.j("html5_track_current_buffered_range_at_sync");
this.qH=g.X0(this.Dp.experiments,"html5_enable_sps_retry_backoff_ms");this.nt=this.Dp.j("html5_sabr_live_timing");this.zQ=this.Dp.j("html5_sabr_enable_server_xtag_selection");this.nJ=this.Dp.j("html5_send_detailed_network_type");this.xG=this.Dp.j("html5_sabr_skip_client_audio_init_selection");this.wZ=this.Dp.j("html5_count_updating_slice_for_buffer_health");this.Gd=this.Dp.j("html5_report_max_buffer_bytes_limit_to_sabr");this.wr=this.Dp.j("html5_sabr_live_audio_early_return_fix");this.Cl=g.X0(this.Dp.experiments,
"html5_platform_max_buffer_health_oversend_duration_secs");this.RE=this.Dp.j("html5_cuepoint_identifier_logging");this.eK=this.Dp.j("html5_trigger_loader_long_poll_on_sabr_backoff");this.Pg=this.Dp.jk();this.Cn=this.Dp.j("html5_keep_ssdai_avsync_in_loader_track");this.V5=this.Dp.j("html5_enable_sps_retry_backoff_metadata_requests");this.QN=this.Dp.j("html5_sabr_ignore_obsolete_audio_for_smooth_audio_switch")};
yZD=function(Q,W,x){x=x===void 0?!1:x;W.video.B>1080&&!Q.Mb&&(Q.g7=36700160,Q.Vj=5242880,Q.eZ=Math.max(4194304,Q.eZ),Q.Mb=!0);W.video.B>2160&&!Q.Ra&&(Q.g7=104857600,Q.a5=13107200,Q.Ra=!0);g.X0(Q.Dp.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?W.isEncrypted()&&g.fl()&&g.yk("samsung")&&(g.yk("kant")||g.yk("muse"))&&(Q.a5=g.X0(Q.Dp.experiments,"html5_samsung_kant_limit_max_bitrate")):W.isEncrypted()&&g.fl()&&g.yk("kant")&&(Q.a5=1310720);Q.HF!==0&&W.isEncrypted()&&(Q.a5=Q.HF);Q.xg!==0&&W.isEncrypted()&&
x&&(Q.a5=Q.xg);W.a5&&(Q.QO=Math.max(Q.h_,Math.min(Q.eZ,5*W.a5)))};
LG=function(Q){return Q.B&&Q.IH&&Q.playbackStartPolicy};
rI=function(Q){return Q.U||Q.B&&Q.uG};
Ta=function(Q,W,x,D){Q.IH&&(Q.playbackStartPolicy=W,Q.JH=x,Q.ES=D)};
Zg=function(Q,W,x){x=x===void 0?0:x;return g.X0(Q.Dp.experiments,W)||x};
t8D=function(Q){var W=Q===void 0?{}:Q;Q=W.U8;var x=W.bF;var D=W.K2;var K=W.oQ;W=W.lY;this.U8=Q;this.bF=x;this.K2=D;this.oQ=K;this.lY=W};
xD5=function(Q,W){if(W<0)return!0;var x=Q.oQ();return W<x||W===x&&!Q.U8||W===x&&(Q=Q.lY())&&W===Q.E3?!0:!1};
DD5=function(Q,W,x){if(!xD5(Q,W))return 0;if(!Q.bF||!isNaN(x)&&x>0)return 2;if(W<0)return 1;x=Q.oQ();return W<x||W===x&&(Q=Q.lY())&&W===Q.E3&&!Q.pending?2:1};
OJ=function(Q,W,x){g.N.call(this);this.Bt=Q;this.policy=W;this.p_=x;this.U=0;this.B=!1;this.delay=new g.O3(this.D,this.policy.Vd,this);g.y(this,this.delay)};
QO2=function(Q,W){ay(W.B)||(Q.Db=W,Q.U=0,g.E3(Q.delay))};
WrD=function(Q,W,x,D,K){var l=this;this.Bt=Q;this.policy=W;this.p_=x;this.Db=D;this.H9=K;this.done=!1;this.onTimeout=function(){l.done||(l.done=!0,l.onError("net.timeout"))};
this.size=Math.ceil(Math.min(1E5,.1*CO(this.p_)));this.timing=new tc(this,{p_:this.p_,OH:this.size,Ax:!0,wJ:function(){},
Gv:this.policy.D});Q=JZ(this.Db,this.H9,this.policy).MD.clone();pN(Q);Q.path!=="/videogoodput"&&(Q.path="/videogoodput",Q.url="");this.location=new uM(Q);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=jq(this.location,this.policy.S,this.timing,this.policy.pN,{});setTimeout(this.onTimeout,1E4)};
x4F=function(Q,W,x){var D=Q.R4();if(Q.isComplete()||!D||Q.info.Db.H9(W,x))return 0;var K=W.Pz;if(!K||D<K)return 0;Q=PM(x,pf(Q.info.Db,!0,W));return Q.B||Q.timedOut||Q.started?0:2};
D4v=function(Q,W,x){if(!(W.O_&&Q.isComplete()&&Q.canRetry()&&Q.info.Db.H9(W,x))||Q.info.Db.S)return 0;Q=PM(x,pf(Q.info.Db,!1,W));return Q.U+W.O_*Vr(Q,!0)>(0,g.a8)()?0:1};
EJ=function(Q,W,x,D,K,l,M,w,S,b,z,k,X,u){u=u===void 0?null:u;g.N.call(this);var Y=this;this.Bt=Q;this.policy=W;this.videoTrack=x;this.audioTrack=D;this.N=K;this.B=l;this.timing=M;this.L=w;this.schedule=S;this.jZ=b;this.D=z;this.uj=k;this.jh=X;this.DE=u;this.pS=!1;this.vA="";this.sG=null;this.B3=NaN;this.F3=!1;this.U=null;this.d1=this.T=NaN;this.jG=this.X=0;this.logger=new g.MP("dash");this.by={Gs:function(v,J){return Y.Gs(v,J)}};
this.policy.ez>0&&(this.vA=g.Cu(this.policy.ez));this.policy.Vd&&(this.S=new OJ(this.Bt,this.policy,this.schedule),g.y(this,this.S))};
Krh=function(Q,W,x){var D=W.U?W.U.B.Db:W.B.Db;var K=Q.N,l;(l=!Q.policy.WY)||(l=hW(D.B)===hW(D.D));l?D=!1:(K=PM(K,hW(D.D)),l=6E4*Math.pow(K.N,1.6),(0,g.a8)()<K.U+l?D=!1:(K.U=(0,g.a8)(),K.N+=1,D.B=D.D.clone(),D=!0));D&&Q.Bt.qj("hostch",{},!0);if(FI(Q,W,x)){x=Q.G(W,x);if(Q.U){var M=x.Af[0].B.info.id;D=Q.B;K=x.Af[0].E3;D=K<0&&!isNaN(D.L)?D.L:K;K=yj(Q.B,x.Af[0].kD,D);var w=W===Q.audioTrack?1:2,S=x.Af[0].B.info.CS;l=M.split(";")[0];a:{var b=Q.B;if(b.B){var z=b.B.VN.event;if(b.B.E3===D){b=z==="predictStart"?
void 0:b.B.VN.event;break a}if(b.B.E3===D-1){b=z==="start"||z==="continue"?z:void 0;break a}}b=void 0}if(Q.policy.LS&&Q.B.U!==0){var k=Q.U.fB(K,D,M,w,S,b);D<0&&w===2&&eq(Q.B,0,0,!0);if(k){var X;M=((X=k.WL)==null?void 0:X.Fm)||"";var u;X=((u=k.WL)==null?void 0:u.Th)||-1;Q.Bt.qj("sdai",{ssdaiinfo:"1",ds:M,skipsq:X,itag:l,f:S,sg:D,st:K.toFixed(3)});x.N=k}}else if(u=Q.U.Pd(K,D,M,w,S,b),D<0&&w===2&&eq(Q.B,0,0,!0),u){X={dec_sq:D,itag:l,st:K.toFixed(3)};if(Q.policy.ut&&W.isRequestPending(D-1)){Q.Bt.qj("sdai",
{wt_daistate_on_sg:D-1});return}Q.Bt.qj("sdai",X);u&&(x.B=new g.JW(u));Q.policy.D&&(u=x.Db.pB("id")||"",X=((k=x.B)==null?void 0:k.get("id"))||"",u!==X&&Q.Bt.qj("stmidmismatch",{cid:u,aid:X}))}else Q.B.U!==5&&Q.Bt.qj("sdai",{nodec_sq:D,itag:l,st:K.toFixed(3)})}Q.policy.eS&&x.Af[0].E3!==-1&&x.Af[0].E3<Q.jZ.bG&&(x=W.B.BO(Q.jZ.bG,!1));aT(W,tt(Q,x));B7(Q.timing);var Y;(Y=Q.S)==null||QO2(Y,x.Db)}};
FI=function(Q,W,x){if(Q.policy.My)return!1;var D;var K=Q.B,l=((D=W.U)==null?void 0:D.E3)||-1;K.U===3&&l+1>=K.N?(K.qj("sdai",{haltrq:l+1,est:K.N}),D=!1):D=K.U!==2;if(!D||!hZ(W.U?W.U.B.Db:W.B.Db,Q.policy,Q.N,Q.Bt.HO())||Q.Bt.isSuspended&&(!JC(Q.schedule)||Q.Bt.v5))return!1;if(Q.policy.N&&UN>=5)return g.E3(Q.Bt.nE),!1;if(Q.jZ.isManifestless){if(W.D.length>0&&W.U&&W.U.E3===-1||W.D.length>=Q.policy.kV||!Q.policy.xP&&W.D.length>0&&!Q.policy.S.bF)return!1;if(W.G)return!Q.jZ.isLive||!isNaN(Q.B3)}if(yaF(W))return Q.logger.debug("Pending request with server-selectable format found"),
!1;if(!W.U){if(!W.B.Fs())return!1;fa(W,Q.Bt.getCurrentTime())}if(TA(W)&&(W.h8()!==TA(W)||Q.Bt.isSuspended))return!1;K=(D=Q.policy.gZ)&&!W.D.length&&qY(W,!0)<Math.min(D,qY(x));D=W.D.length+x.D.length;l=!Q.policy.CI&&((W.D.length?W.D[0].aK():!1)||(x.D.length?x.D[0].aK():!1)||Q.jZ.isLive);(K||l)&&--D;if(D+1>=Q.policy.jz)return!1;D=W.U;if(!D)return!0;D.type===4&&D.B.Fs()&&(W.U=g.r1(D.B.Zl(D)),D=W.U);if(!D.lf()&&!D.B.uO(D))return!1;l=Q.jZ.Nr||Q.jZ.N;if(Q.jZ.isManifestless&&l){l=W.B.index.oQ();var M=x.B.index.oQ();
l=Math.min(l,M);if(W.B.index.ZP()>0&&l>0&&D.E3>=l)return W.LS=l,x.LS=l,!1}if(D.B.info.audio&&D.type===4||D.lf())return!1;l=!W.L&&!x.L;if(K=!K)K=D.Nx,K=!!(x.U&&!UJ(x,x.U)&&x.U.Nx<K);M=W===Q.videoTrack&&Q.policy.KS;return K&&(!Q.jZ.isManifestless||x.U&&x.U.Nx&&D.Nx)&&l&&!M||Q.policy.Y6&&!W.L&&x.L?!1:BM(D)&&D.Nx>ljD(Q,W)?(ljD(Q,W),!1):(Q=W.Ln)&&Q.isLocked()?!1:!0};
ljD=function(Q,W){var x=Q.B;x=x.B?x.B.VN:null;if(Q.policy.KS&&x)return x.startSecs+x.eE+15;W=eV(Q.Bt,W);Q.policy.Gn>0&&(x=((0,g.a8)()-Q.Bt.d3)/1E3,W=Math.min(W,Q.policy.Gn+Q.policy.wx*x));x=Q.Bt.getCurrentTime()+W;return Q.policy.Ia&&(W=jOv(Q.Bt)+Q.policy.Ia,W<x)?(Q.Bt.qj("mrl",{ori:x,mod:W},!0),Q.policy.hj&&(Q=Q.Bt,x=(0,g.a8)(),Q.d3=x),W):x};
MCh=function(Q,W,x){if(x!==0){a:if(W=W.info,x=x===2,W.B)W=null;else{var D=W.Af[0];if(W.range)var K=AZ(W.range.start,Math.min(4096,W.D));else{if(W.U&&W.U.indexOf("/range/")>=0||W.Db.pB("defrag")==="1"||W.Db.pB("otf")==="1"){W=null;break a}K=AZ(0,4096)}K=new cM([new Uq(5,D.B,K,"createProbeRequestInfo"+D.L,D.E3)],W.U);K.H9=x;K.B=W.B;W=K}W&&tt(Q,W)}};
tt=function(Q,W){Q.Bt.c$(W);var x=bSa(W),D=Q.Bt.BY();x={p_:Q.schedule,OH:x,Xt:iJ1(Q.L,x),K7:qL(W.Af[0]),Ax:ay(W.Db.B),Gv:Q.policy.D,wJ:function(M,w){Q.Bt.jF(M,w)}};
if(Q.schedule.U.X){var K,l;x.zF=(((K=Q.videoTrack.B)==null?void 0:K.info.a5)||0)+(((l=Q.audioTrack.B)==null?void 0:l.info.a5)||0)}Q.sG&&(x.E3=W.Af[0].E3,x.B3=W.B3,x.sG=Q.sG);D={VS:sUa(W,Q.Bt.getCurrentTime()),N9:Q.policy.jE&&yr(W)&&W.Af[0].B.info.video?Zfl(Q.D):void 0,lQ:Q.policy.KS,poToken:Q.Bt.pY(),Ob:Q.Bt.bl(),vA:Q.vA,d1:isNaN(Q.d1)?null:Q.d1,DE:Q.DE,jh:Q.jh,jG:Q.jG,Mg:D};return new c9(Q.policy,W,x,Q.N,function(M,w){try{a:{var S=M.info.Af[0].B,b=S.info.video?Q.videoTrack:Q.audioTrack;if(!(M.state>=
2)||M.isComplete()||M.R4()||!(!Q.Bt.r7||Q.Bt.isSuspended||qY(b)>3)){var z=x4F(M,Q.policy,Q.N);z===1&&(Q.F3=!0);MCh(Q,M,z);if(M.isComplete()||M.d7()&&w<3){if(Q.policy.D){var k=M.timing.XV();k.rst=M.state;k.strm=M.xhr.t7();k.cncl=M.xhr&&M.f_.N?1:0;Q.Bt.qj("rqs",k)}M.y$&&Q.Bt.qj("sbwe3",{},!0)}if(!Q.d7()&&M.state>=2){nmD(Q.timing,M,S);var X=Q.Bt;Q.d1&&M.VU&&X&&(Q.d1=NaN,Q.Bt.sA(M.VU),Q.Bt.dL(),Q.Bt.qj("cabrUtcSeek",{mediaTimeSeconds:M.VU}));M.xe&&Q.d1&&M.xe&&!M.xe.action&&(Q.Bt.K0(Q.d1),Q.d1=NaN,Q.Bt.qj("cabrUtcSeekFallback",
{targetUtcTimeSeconds:Q.d1}));M.V_&&Q.Bt.G3(M.V_);Q.policy.hn&&(Q.jG=M.jG);if(M.state===3){IT(b,M);yr(M.info)&&QJ(Q,b,S,!0);if(Q.U){var u=M.info.Pd();u&&Q.U.Kt(M.info.Af[0].E3,S.info.id,u)}Q.Bt.KZ()}else if(M.isComplete()&&M.info.Af[0].type===5){if(M.state!==4)M.je()&&Q.Bt.handleError(M.g1(),M.TV());else{var Y=(M.info.Af[0].B.info.video?Q.videoTrack:Q.audioTrack).D[0]||null;Y&&Y instanceof c9&&Y.R4()&&Y.T3()}M.dispose()}else{M.je()||Rus(Q,M);var v;((v=M.S1)==null?0:v.itagDenylist)&&Q.Bt.Pf(M.S1.itagDenylist);
if(M.state===4)Wf(Q,M),Q.B&&CM2(Q.B,M.info,Q.U);else if(Q.policy.pN&&M.Rl()&&!M.isComplete()&&!Wf(Q,M)&&!M.je())break a;M.je()&&(wLn(Q,M),isNaN(Q.d1)||(Q.Bt.K0(Q.d1),Q.d1=NaN));Q.policy.yA&&!M.isComplete()?ST4(Q.Bt):Q.Bt.KZ();var J=D4v(M,Q.policy,Q.N);MCh(Q,M,J)}}}}}catch(h){w=Q.pS?1:0,Q.pS=!0,M=dw(w),w=i7(h,w),Q.Bt.handleError(w.errorCode,w.details,w.severity),M||Q.Bt.kS()}},D)};
Rus=function(Q,W){if(W.zU&&W.state>=2&&W.state!==3){var x=W.xhr.getResponseHeader("X-Response-Itag");if(x){Q.logger.debug(function(){return"Applying streamer-selected format "+x});
var D=ft5(Q.D,x),K=W.info.D;K&&(K-=D.D4(),D.D=!0,W.info.Af[0].B.D=!1,TQO(W,D.E7(K)),xp(Q.Bt,Q.videoTrack,D),eda(Q.videoTrack,D),Q.Bt.K8(D.info.video.quality),(K=W.gN())&&D.info.lastModified&&D.info.lastModified!==+K&&IT(Q.videoTrack,W))}else W.zU=!1}};
wLn=function(Q,W){var x=W.info.Af[0].B,D=W.g1();if(ay(x.Db.B)){var K=g.P1(W.ZJ(),3);Q.Bt.qj("dldbrerr",{em:K||"none"})}K=W.info.Af[0].E3;var l=yj(Q.B,W.info.Af[0].kD,K);D==="net.badstatus"&&(Q.X+=1);if(W.canRetry()&&bO1(Q.Bt)){if(!(W.info.Db.U>=Q.policy.U_&&Q.U&&W.info.isDecorated()&&D==="net.badstatus"&&Q.U.R2(l,K))){K=(x.info.video&&x.Db.U>1||W.cI===410||W.cI===500||W.cI===503)&&!(TO(Q.D.L).size>0)&&!ay(x.Db.B);l=W.TV();var M=x.info.video?Q.videoTrack:Q.audioTrack;K&&(l.stun="1");Q.Bt.handleError(D,
l);Q.d7()||(K&&(Q.logger.debug(function(){return"Stunning format "+x.info.id}),Wn(Q.D,x)),IT(M,W),Q.Bt.KZ())}}else M=1,Q.U&&W.info.isDecorated()&&D==="net.badstatus"&&Q.U.R2(l,K)&&(M=0),Q.jZ.isLive&&W.g1()==="net.badstatus"&&Q.X<=Q.policy.y7*2?(sA5(Q.jZ),Q.jZ.Nr||Q.jZ.isPremiere?rz(Q.Bt,0,{N7:"badStatusWorkaround"}):Q.jZ.N?rz(Q.Bt,Q.jZ.X3,{N7:"badStatusWorkaround",
MW:!0}):Dl(Q.Bt)):Q.Bt.handleError(D,W.TV(),M)};
Wf=function(Q,W){if(Q.policy.useUmp&&W.d7())return!1;try{var x=W.info.Af[0].B,D=x.info.video?Q.videoTrack:Q.audioTrack;if(Q.jZ.isManifestless&&D){Q.X=0;D.G&&(W.d7(),W.isComplete()||W.Rl(),D.G=!1);W.SX()&&Q.Bt.Lm.w5(1,W.SX());var K=W.ZP(),l=W.Ph();ha(Q.jZ,K,l)}if(W.info.K7()&&!gR(W.info))for(var M=g.V(W.PM()),w=M.next();!w.done;w=M.next())AaQ(D,w.value);for(Q.Bt.getCurrentTime();D.D.length&&D.D[0].state===4;){var S=D.D.shift();inl(D,S);D.s3=S.Is()}D.D.length&&inl(D,D.D[0]);var b=!!TA(D);b&&W instanceof
Nd&&(x.info.Mx()?sza(Q.timing):bf2(Q.timing));return b}catch(z){W=W.TV();W.origin="hrhs";a:{Q=Q.Bt;x=z;if(x instanceof Error){W.msg||(W.msg=""+x.message);W.name||(W.name=""+x.name);if(x instanceof g.Lw&&x.args)for(D=g.V(Object.entries(x.args)),K=D.next();!K.done;K=D.next())l=g.V(K.value),K=l.next().value,l=l.next().value,W["arg"+K]=""+l;g.Bp(x);if(x.level==="WARNING"){Q.xf.Sy(W);break a}}Q.handleError("fmt.unplayable",W,1)}return!1}};
sOO=function(Q){var W=Q.videoTrack.B.index;Q.sG=new t8D({U8:Q.policy.U8,bF:Q.policy.S.bF,K2:W.GR(),oQ:function(){return W.oQ()},
lY:function(){return W.lY()}})};
QJ=function(Q,W,x,D){var K=Q.policy.V5?Q.Bt.HO():0;x.Fs()||x.il()||x.D||!hZ(x.Db,Q.policy,Q.N,K)||x.info.CS==="f"||Q.policy.B||(D?(D=Q.L,K=x.info,D=ABh(D,K.video?D.policy.fU:D.policy.u$,K.a5)):D=0,D=x.E7(D),Q=tt(Q,D),gR(D)&&aT(W,Q),x.D=!0)};
K2=function(Q,W,x,D,K,l,M,w){g.N.call(this);var S=this;this.Bt=Q;this.HD=W;this.videoTrack=x;this.audioTrack=D;this.jZ=K;this.T=l;this.isAudioOnly=M;this.S=w;this.U=eQ;this.F3=!1;this.logger=new g.MP("sabr");this.L=this.pS=this.uj=!1;this.videoInfos=this.G=this.T.videoInfos;this.D=this.KS=this.T.B;this.B=new Lk(W,l,function(b,z){S.Bt.qj(b,z)});
this.HD.xG||zu2(this);this.isAudioOnly&&ksz(this,this.jZ.B["0"])};
XLa=function(Q,W){var x=[];W=g.V(W);for(var D=W.next();!D.done;D=W.next())x.push(g.WT(D.value,Q.jZ.lN));return x};
ksz=function(Q,W,x){W!==Q.N&&(Q.N&&(Q.F3=!0),Q.N=W,Q.CQ(W,Q.videoTrack,x))};
nhn=function(Q,W){Q.logger.debug("setConstraint: "+bQ(W));rI(Q.HD)&&(Q.pS=W.reason==="m"||W.reason==="l"?!0:!1);W.reason==="m"?W.isLocked()&&ohh(Q,W.B):u4h(Q,W)?YTn(Q,W.U,W.B):Q.videoInfos=Q.G;Q.U=W};
u4h=function(Q,W){return Q.HD.Ks&&W.reason==="b"||Q.HD.Zt?!1:Q.HD.ER?!0:W.reason==="l"||W.reason==="b"||W.reason==="o"};
VCQ=function(Q,W){return W.isLocked()&&Q.B.U||Q.U===void 0?!1:W.yI(Q.U)};
PAO=function(Q,W){var x,D=(x=Q.N)==null?void 0:x.info.video.B;return Q.F3?!0:Q.N?W!==D?!0:!Q.B.U||Q.HD.im&&Q.B.B===Q.N.info.itag?!1:!0:!1};
ohh=function(Q,W){var x=Q.B.B;if(x){Q.videoInfos=Q.G;var D=g.Os(Q.videoInfos,function(K){return K.id===x});
D&&D.video.B===W?Q.videoInfos=[D]:(D=Q.videoInfos.map(function(K){return K.id}),Q.Bt.qj("sabrpf",{pfid:""+x,
vfids:""+D.join(".")}),YTn(Q,W,W),Om(Q.B,""))}else YTn(Q,W,W)};
YTn=function(Q,W,x){Q.videoInfos=Q.G;Q.videoInfos=g.Rv(Q.videoInfos,function(D){return D.video.B>=W&&D.video.B<=x})};
zu2=function(Q){var W=ats(Q.B,Q.S);W&&(Q.D=[W])};
vhh=function(Q,W,x){if(Q.HD.xG){if(Q.S){var D=g.Rv(Q.D,function(K){return K.id===Q.S});
return lj(D,x).includes(W)}D=g.Rv(Q.D,function(K){var l;return!((l=K.RW)==null||!l.isDefault)});
if(D.length>0)return lj(D,x).includes(W)}return lj(Q.D,x).includes(W)};
lj=function(Q,W){return Q.map(function(x){return az(g.WT(x,W))})};
CAh=function(Q){var W;if((W=Q.U)==null?0:W.isLocked())return Q.videoInfos;var x=TO(Q.B);W=g.Rv(Q.videoInfos,function(D){return D.a5>Q.HD.a5?!1:!x.has(D.id)});
hxl(Q.B)&&(W=g.Rv(W,function(D){return D.video.width<=854&&D.video.height<=480}));
return W};
hul=function(Q,W,x,D){var K=Q.jZ,l=Q.xf.getVideoData(),M=g.TQ(l),w=Q.SF,S=P7({Dp:l.C(),xf:Q.xf,zO:Q.zO,HD:Q.HD,d3:Q.d3,Eb:Q.Eb,ZH:Q.ZH,o1:Q.o1,iW:Q.iW,isPrefetch:Q.isPrefetch,WG:Q.WG,sabrLicenseConstraint:l.sabrLicenseConstraint,NP:Q.NP,nU:Q.nU,gi:Q.gi,j5:Q.j5,Af3:!!w}),b=v7(l,Q.Mg,Q.nextRequestPolicy,Q.kW,Q.XS,Q.cK9,Q.q6);D&&x&&(D=b.D$?b.D$.map(function(v){return v.type}):[],x("sabr",{stmctxt:D.join("_"),
unsntctxt:b.GS?b.GS.join("_"):""}));D=Q.hw;var z=Q.aV;if(z===void 0&&D===void 0){var k;z=JCD(K.lN,(k=Q.e_)==null?void 0:k.video);var X;D=JCD(K.lN,(X=Q.e_)==null?void 0:X.audio)}if(l.DE)var u=l.DE;l={vr:S,MH:Q.MH,hw:D,aV:z,SF:w,videoPlaybackUstreamerConfig:u,LC:b};Q.WL&&(l.WL=Q.WL);if(M&&W){M=new Map;var Y=g.V(K.LS);for(w=Y.next();!w.done;w=Y.next())w=w.value,(S=K.g7[Tgv(K,w)]||"")?(M.has(S)||M.set(S,[]),M.get(S).push(w)):x&&x("ssap",{nocid4fmt:(w.itag||"")+"_"+(w.lmt||0)+"_"+(w.xtags||"")});K=new Map;
Y=g.V(Q.Mi);for(w=Y.next();!w.done;w=Y.next())w=w.value,S=w.startTimeMs||0,b=void 0,k=(b=W)==null?void 0:IY(b,S),b=k.clipId,k=k.wm,b?(K.has(b)||(X=M.get(b)||[],K.set(b,{clipId:b,Mi:[],O7:X})),k!==0&&(w.startTimeMs=S-k),K.get(b).Mi.push(w)):x&&(b=void 0,x("ssap",{nocid4range:"1",fmt:((b=w.formatId)==null?void 0:b.itag)||"",st:S.toFixed(3),d:(w.durationMs||0).toFixed(3),timeline:jH(W)}));l.Q5=[];K=g.V(K.entries());for(M=K.next();!M.done;M=K.next())M=g.V(M.value),M.next(),M=M.next().value,l.Q5.push(M);
if(Q.Mi.length&&!l.Q5.length){x&&x("ssap",{nobfrange:"1",br:pLF(Q.Mi),timeline:jH(W)});return}Q.V9&&(l.V9=Q.V9);Q.hH&&(l.hH=Q.hH)}else l.Mi=Q.Mi,l.O7=K.LS,M&&((Y=Q.Mi)==null?void 0:Y.length)>0&&!W&&x&&x("ssap",{bldmistlm:"1"});return l};
JCD=function(Q,W){return W?[g.WT(W.info,Q)]:[]};
pLF=function(Q){var W="";Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next()){x=x.value;var D=void 0,K=void 0,l=void 0;W+="fmt."+(((D=x.formatId)==null?void 0:D.itag)||"")+"_"+(((K=x.formatId)==null?void 0:K.lmt)||0)+"_"+(((l=x.formatId)==null?void 0:l.xtags)||"")+";st."+(x.startTimeMs||0).toFixed(3)+";d."+(x.durationMs||0).toFixed(3)+";"}return W};
Mg=function(Q,W,x){var D=this;this.requestType=Q;this.Db=W;this.uN=x;this.U=null;this.by={gmf:function(){var K;return(K=D.data)==null?void 0:K.isPrefetch},
XS:function(){var K;return(K=D.data)==null?void 0:K.XS}}};
M2a=function(Q,W,x){W=JZ(Q.Db,ajO(Q,W,x),W);Q.tE()&&W.set("probe","1");return W};
ajO=function(Q,W,x){Q.H9===void 0&&(Q.H9=Q.Db.H9(W,x));return Q.H9};
Gsn=function(Q){var W,x;return((W=Q.B)==null?void 0:(x=W.vr)==null?void 0:x.w9)||0};
d4D=function(Q){var W,x;return!!((W=Q.B)==null?0:(x=W.vr)==null?0:x.NP)};
iO5=function(Q){var W={},x=[],D=[];if(!Q.data)return W;for(var K=0;K<Q.data.Mi.length;K++){var l=Q.data.Mi[K],M=void 0;x.push("i."+((M=l.formatId)==null?void 0:M.itag)+"_st."+(l.startTimeMs+"_e."+(l.startTimeMs+l.durationMs)+"_d."+l.durationMs)+("_sn."+l.Hz)+("_en."+l.Iz))}for(K=0;K<Q.data.MH.length;K++){l=Q.data.MH[K];var w=M=void 0,S=void 0,b=void 0;D.push("i."+((M=l.formatId)==null?void 0:M.itag)+"_sn."+l.sequenceNumber+"_sl."+(l.e9||NaN)+"_lb."+l.rR+"_tr.s_"+((w=l.W5)==null?void 0:w.startTicks)+
"_d_"+((S=l.W5)==null?void 0:S.Of)+"_t_"+((b=l.W5)==null?void 0:b.timescale)+"_ed_"+l.lB)}W.ptime=Gsn(Q);W.rtype=Q.requestType;W.brl=x.join(";");W.ps=D.join(";");return W};
ACn=function(Q){if(Q.xN)return{x9:g.X0(Q.experiments,"html5_future_encryptor_auto_select_js_max_size_bytes"),au:g.X0(Q.experiments,"html5_future_encryptor_auto_select_wasm_max_size_bytes")}};
RS=function(Q,W){this.n_=Q;this.cipher=this.n_.exports.AES128CTRCipher_create(W.byteOffset)};
HO4=function(Q){return function(W){return{profile:Q,Ny:Math.ceil(W.byteLength/16)}}};
wY=function(Q,W){this.key=Q;this.subtleCrypto=W;this.B=!1};
U42=function(Q){var W=globalThis.crypto.subtle;W=W===void 0?window.crypto.subtle:W;return u3(XJ(function(){return W.importKey("raw",Q,"AES-CTR",!1,["encrypt"]).catch(function(x){return Promise.reject(x.name+": "+x.message)})}),function(x){return new wY(x,W)})};
SH=function(Q){this.B=!1;this.U=new u1(Q)};
Gt=function(Q,W){this.n_=Q;var x=Q.oF(W);this.B=new RS(Q,x!=null?x:W);x&&Q.free(x.byteOffset)};
qTa=function(Q){g.Bp("wasm encryptor failed: "+Q);throw Q;};
dY=function(Q,W,x){var D=this;this.key=Q;this.N=this.L=!1;this.x9=32768;this.au=131072;W==null||u3(W,function(K){D.B=new Gt(K,D.key);D.N=K.Q_});
if(x==null?0:x.au)this.au=x.au;if(x==null?0:x.x9)this.x9=x.x9};
B5a=function(Q,W,x){Q.U||(Q.U=new SH(Q.key));return Yv(Q.U.encrypt(W,x),qTa)};
$4z=function(Q,W,x){if(!Q.D){if(!("crypto"in globalThis&&"subtle"in globalThis.crypto))return kv("native encryptor unavailable");Q.D=U42(Q.key)}return Yv(u3(Q.D,function(D){return D.encrypt(W,x)}),qTa)};
ij=function(Q,W,x){this.B=Q;this.n_=W;this.N=x;this.D=!1;this.iv=(0,g.Ck)(v$(16))};
Ijv=function(Q){Q.U||(Q.U=new dY(Q.B.B,Q.n_,Q.N));return Q.U};
m45=function(Q,W){var x;return g.U(function(D){(0,g.a8)();x=Zzz(Q.B);return D.return(x.encrypt(W,Q.iv))})};
N51=function(Q,W){var x;return g.U(function(D){(0,g.a8)();var K=Q.B;K.N||(K.N=new K04(K.D));x=K.N;return D.return(M05(x,W,Q.iv))})};
cCa=function(Q,W,x){var D;return g.U(function(K){(0,g.a8)();D=Zzz(Q.B);return K.return(D.decrypt(W,x))})};
AY=function(Q){g.N.call(this);var W=this;this.bj=Q;this.B=new Map;this.N=[];this.U=!this.bj.experiments.ij("html5_disable_trusted_hosts")&&!PE();this.T=g.X0(this.bj.experiments,"html5_onesie_prewarm_interval_ms");this.S=new g.O3(this.G,this.T,this);this.X=-1;this.by={eGj:function(){return W.B},
Ixf:function(){return W.L},
s4S:function(){return gh5}};
g.y(this,this.S);VwO(this,g.qW("yt-player-bandaid-host"));this.L=this.load();this.T&&this.L.then(function(){W.G()})};
VwO=function(Q,W){var x=W==null?void 0:W.primary;Q.D(0,x);x=x?yCD(x):void 0;Q.D(2,x);Q.D(1,W==null?void 0:W.secondary)};
Hf=function(Q,W){return new g.JW("https://"+W+Q.bj.Wz.baseUrl)};
euQ=function(Q,W){Q="https://"+hW(W.location)+"/initplayback?c="+Fm(Q.bj)+"&owc=1";GA(Q,"pw",function(x){x.ht=W.B})};
UF=function(Q,W,x,D){GA("https://"+W+"/videoplayback?probe=1",x,function(K){!D.j("html5_onesie_host_racing")||D.videoData.isLivePlayback||D.j("html5_onesie_probe_ec_hosts")||D.Rv||D.Pe();Q.N.push(K)},function(K){Q.N.push(K.details)})};
yCD=function(Q){return Q.replace(/(\d+)---/g,function(W,x){W=Number(x);return(W===1?2:W-1)+"---"})};
fjD=function(Q,W){var x,D,K,l,M,w,S,b;return g.U(function(z){if(z.B==1){x=Hf(Q,"redirector.googlevideo.com");x.set("alr","yes");x.set("id",""+Math.round(Math.random()*1E5));if(W===1||W===2)x.set("cmo=sensitive_content","yes"),x.set("sc","yes");W===2&&x.set("cmo=td","c.youtube.com");D={format:"RAW",timeout:5E3};return g.A(z,dm(x.cV(),D),2)}K=z.U;if(K.xhr.status!==200||!K.xhr.responseText)return z.return(Promise.reject(new g.Lw("b204258371_no_host",x.cV(),K.xhr.status)));l=new g.JW(K.xhr.responseText);
M=hW(l);w=l.get("ms");S=Hf(Q,M);b=l.get("mm");S.set("ms",w);S.set("mm",b);return M&&nJv(M)?W!==2||zO(M)?z.return(S):z.return(Promise.reject(new g.Lw("b204258371_untrusted",M,w))):z.return(Promise.reject(new g.Lw("b204258371_invalid",M,w)))})};
ZO5=function(Q){var W=Q.N;Q.N=[];return W};
nJv=function(Q){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(Q)};
zO=function(Q){var W=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(Q)&&!W.test(Q)};
Lr5=function(Q,W){this.location=Q;this.B=W};
rCa=function(Q){this.zc=Q;this.U=!1;this.B=[]};
Bf=function(Q){for(;Q.B.length&&!Q.B[0].isEncrypted;){var W=Q.B.shift(),x=W.videoId,D=W.N5,K=W.formatId,l=W.buffer;W=W.Fc;if(l)W=void 0,(W=qg(Q.zc.uy,x))==null||Um(W,D,K,l);else if(W)Q.zc.uy.r3(x,D,K);else if(D=Q.zc,D.B[K].rg=!0,x=qg(D.uy,x),x==null?0:x.vD.has(K))x==null||d6(x,K)}};
g.EhO=function(Q){this.data=Q;this.B=0;this.N=!1;this.D=0;this.error=!1;this.register=this.U=0;if($p.length===0){$p.length=288;$p.fill(8);for(Q=144;Q<280;Q++)$p[Q]=Q<=255?9:7;T5F.length=32;T5F.fill(5);IS.length=286;IS.fill(0);for(Q=261;Q<285;Q++)IS[Q]=Math.floor((Q-261)/4);mR[257]=3;for(Q=258;Q<285;Q++){var W=mR[Q-1];W+=1<<IS[Q-1];mR[Q]=W}mR[285]=258;for(Q=0;Q<30;Q++)OOs[Q]=Q<=3?0:Math.floor((Q-2)/2);for(Q=Ng[0]=1;Q<30;Q++)W=Ng[Q-1],W+=1<<OOs[Q-1],Ng[Q]=W}Q=100+7*this.data.length;this.data[0]===31&&
this.data[1]===139&&(Q=(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(Q)};
g.DoQ=function(Q){for(;!Q.N&&!Q.error;){var W=Q;W.N=!!cf(W,1);switch(cf(W,2)){case 2:var x=[],D=[];D.length=19;D.fill(0);var K=cf(W,5)+257;var l=cf(W,5)+1;for(var M=cf(W,4)+4,w=0;w<M;w++)D[FrO[w]]=cf(W,3);D=tCD(D);for(M=K+l;x.length<M;){w=Qf5(W,D);switch(w){case 16:w=x[x.length-1];var S=cf(W,2)+3;break;case 17:w=0;S=cf(W,3)+3;break;case 18:w=0;S=cf(W,7)+11;break;default:S=1}for(;S>0;S--)x.push(w)}x.length!==M?W.error=!0:(l=x.slice(-l),x.length=K,W55(W,x,l));break;case 1:W55(W,$p,T5F);break;case 0:xoa(W,
W.B&7);x=cf(W,16);K=cf(W,16);(x^K)!==65535&&(W.error=!0);W.output.set(W.data.subarray(W.U,W.U+x),W.D);W.U+=x;W.D+=x;break;default:W.error=!0}Q.D>Q.output.length&&(Q.output=new Uint8Array(Q.D*2),Q.D=0,Q.U=0,Q.N=!1,Q.B=0,Q.register=0)}Q.output.length!==Q.D&&(Q.output=Q.output.subarray(0,Q.D));return Q.error?new Uint8Array(0):Q.output};
W55=function(Q,W,x){W=tCD(W);x=tCD(x);for(var D=Q.data,K=Q.output,l=Q.D,M=Q.register,w=Q.B,S=Q.U;;){if(w<15){if(S>D.length){Q.error=!0;break}M|=(D[S+1]<<8)+D[S]<<w;S+=2;w+=16}var b=W[M&127];if(b<0)for(M>>=7;b<0;)b=W[(M&1)-b],M>>=1;else M>>=b&15;w-=b&15;b>>=4;if(b<256)K[l++]=b;else if(Q.register=M,Q.B=w,Q.U=S,b>256){M=mR[b];M+=cf(Q,IS[b]);S=Qf5(Q,x);w=Ng[S];w+=cf(Q,OOs[S]);if(K5n&&M<w)w=l-w,K.copyWithin(l,w,w+M);else for(S=l+M,b=l;b<S;b+=4)K[b]=K[b-w],K[b+1]=K[b-w+1],K[b+2]=K[b-w+2],K[b+3]=K[b-w+3];
l+=M;M=Q.register;w=Q.B;S=Q.U}else break}Q.D=l};
Qf5=function(Q,W){if(Q.B<7){var x=Q.data,D=Q.U;D>x.length&&(Q.error=!0);Q.register|=(x[D+1]<<8)+x[D]<<Q.B;Q.U+=2;Q.B+=16}x=W[Q.register&127];if(x>=0)return xoa(Q,x&15),x>>4;for(xoa(Q,7);x<0;)x=W[cf(Q,1)-x];return x>>4};
cf=function(Q,W){for(;Q.B<W;){if(Q.U>=Q.data.length)return Q.error=!0,0;Q.register|=Q.data[Q.U++]<<Q.B;Q.B+=8}var x=Q.register&(1<<W)-1;Q.register>>=W;Q.B-=W;return x};
xoa=function(Q,W){Q.B-=W;Q.register>>=W};
tCD=function(Q){for(var W=[],x=g.V(Q),D=x.next();!D.done;D=x.next())D=D.value,W[D]||(W[D]=0),W[D]++;var K=W[0]=0;x=[];var l=0;D=0;for(var M=1;M<W.length;M++)W[M]?D=M:W[M]=0,K=K+W[M-1]<<1,x[M]=K,M>7&&(l+=W[M]);for(K=1;K<l;)K<<=1;W=128;D=new Int16Array(128+(K+D)*2);for(l=0;l<Q.length;l++)if(M=Q[l]){for(var w=x[M]++,S=K=0;S<M;S++)K=K<<1|w>>S&1;w=l<<4|M;if(M<=7)for(S=1<<7-M;S--;)D[S<<M|K]=w;else{S=K&127;M-=7;for(K>>=7;M--;){D[S]||(D[S]=-W,W+=2);var b=K&1;K>>=1;S=b-D[S]}D[S]=w}}return D};
ldh=function(Q){var W,x,D,K,l,M,w;return g.U(function(S){switch(S.B){case 1:if(!("DecompressionStream"in window))return S.return(g.DoQ(new g.EhO(Q)));W=new DecompressionStream("gzip");x=W.writable.getWriter();x.write(Q);x.close();D=W.readable.getReader();K=new ul([]);case 2:return g.A(S,D.read(),5);case 5:l=S.U;M=l.value;if(w=l.done){S.kf(4);break}K.append(M);S.kf(2);break;case 4:return S.return(K.Nq())}})};
gY=function(Q,W){this.B=Q;this.n_=W};
jfl=function(Q){return Yv(Yv(XJ(function(){return u3(Q.n_,function(W){return Q.nk(Q.B,W)})}),function(){return Q.T$(Q.B)}),function(){return Q.Zy(Q.B)})};
MQl=function(Q,W){return jfl(new gY(Q,W))};
SN2=function(Q){pk.call(this,"onesie");this.uy=Q;this.B={};this.D=!0;this.N=null;this.queue=new rCa(this);this.L={};this.X=bdF(function(W,x){var D=this;return function l(){var M,w,S,b,z,k,X,u,Y,v,J,h,G,H,I,c,O,T,Ks,Mz;return s14(l,function(QF){switch(QF.B){case 1:g.v5(QF,2);D.uy.VG();M=function(f){return function(t){throw{name:f,message:t};}};
w=W.Nq();g.P5(QF,4,5);if(!x){QF.kf(7);break}return RO5(QF,Yv(Rlv(D.uy,w,D.iv),M("DecryptError")).wait(),8);case 8:S=QF.U;case 7:if(!D.uy.enableCompression){QF.kf(9);break}return RO5(QF,Yv(MQl((k=S)!=null?k:w,D.uy.C().xN),M("DecompressError")).wait(),10);case 10:b=QF.U;case 9:z=cQ((u=(X=b)!=null?X:S)!=null?u:w,su1);case 5:g.ps(QF,0,2);if(v=(Y=D.uy.C())==null?void 0:Y.n_)((J=S)==null?void 0:J.buffer)===v.exports.memory.buffer&&v.free(S.byteOffset),((h=b)==null?void 0:h.buffer)===v.exports.memory.buffer&&
v.free(b.byteOffset);g.hv(QF,6);break;case 4:throw H=G=g.Jv(QF),new Gu("onesie.response.parse",{name:(T=H.name)!=null?T:"unknown",message:(Ks=H.message)!=null?Ks:"unknown",wasm:((I=D.uy.C())==null?0:I.n_)?((c=D.uy.C())==null?0:(O=c.n_)==null?0:O.Q_)?"1js":"1":"0",enc:D.D,gz:D.uy.enableCompression,webcrypto:!!PE()});case 6:return wWF(z),Mz=g.hy(z.body),QF.return(Mz);case 2:g.ps(QF),g.hv(QF,0)}})}()})};
b1h=function(Q){var W=Q.queue;W.B.length&&W.B[0].isEncrypted&&!W.U&&(W.B.length=0);W=g.V(Object.keys(Q.B));for(var x=W.next();!x.done;x=W.next()){x=x.value;var D=Q.B[x];if(!D.rg){var K=Q.queue;K.B.push({videoId:D.videoId,formatId:x,isEncrypted:!1});K.U||Bf(K)}}};
zl4=function(Q,W){var x=W.getLength(),D=!1;switch(Q.N){case 0:Q.uy.j("html5_future_onesie_ump_handler_on_player_response")?Yv(u3(Q.X(W,Q.D),function(K){sfQ(Q.uy,K)}),function(K){Q.uy.Os(K)}):Q.VG(W,Q.D).then(function(K){sfQ(Q.uy,K)},function(K){Q.uy.Os(K)});
break;case 2:Q.Tt("ormk");W=W.Nq();Q.queue.decrypt(W);break;default:D=!0}Q.uy.vL&&Q.uy.qj("ombup","id.11;pt."+Q.N+";len."+x+(D?";ignored.1":""));Q.N=null};
wWF=function(Q){if(Q.UI!==1)throw new Gu("onesie.response.badproxystatus",{st:Q.UI,webcrypto:!!PE(),textencoder:!!g.Nz.TextEncoder});if(Q.P$!==200)throw new Gu("onesie.response.badstatus",{st:Q.P$});};
kQl=function(Q){return new Promise(function(W){setTimeout(W,Q)})};
XWF=function(Q,W){var x=Q.C();x=Q.RQ&&x.j("html5_onesie_preload_use_content_owner");var D=Q.kL,K=Qv(W.bj.experiments,"debug_bandaid_hostname");if(K)W=Hf(W,K);else if((x===void 0?0:x)&&(D==null?0:D.url)&&!W.U){var l=hW(new g.JW(D.url));W=Hf(W,l)}else W=(l=W.B.get(0))==null?void 0:l.location.clone();if(W&&Q.videoId){l=w5(Q.videoId);Q=[];if(l)for(l=g.V(l),x=l.next();!x.done;x=l.next())Q.push(x.value.toString(16).padStart(2,"0"));W.set("id",Q.join(""));return W}};
oSD=function(Q,W,x){x=x===void 0?0:x;var D,K;return g.U(function(l){if(l.B==1)return D=[],D.push(W.load()),x>0&&D.push(kQl(x)),g.A(l,Promise.race(D),2);K=XWF(Q,W);return l.return(K)})};
uSs=function(Q,W,x,D){D=D===void 0?!1:D;Q.set("cpn",W.clientPlaybackNonce);Q.set("opr","1");var K=W.C();Q.set("por","1");PE()||Q.set("onem","1");W.startSeconds>0&&Q.set("osts",""+W.startSeconds);D||(K.j("html5_onesie_disable_partial_segments")&&Q.set("oses","1"),W=K.j("html5_gapless_onesie_no_media_bytes")&&KQ(W)&&W.RQ,x&&!W?(W=x.audio,Q.set("pvi",x.video.join(",")),K.j("html5_onesie_disable_audio_bytes")||Q.set("pai",W.join(",")),ta||Q.set("osh","1")):(Q.set("oad","0"),Q.set("ovd","0"),Q.set("oaad",
"0"),Q.set("oavd","0")))};
YN5=function(Q,W,x,D,K){K=K===void 0?!1:K;var l="https://youtubei.googleapis.com/youtubei/"+W.W9.innertubeApiVersion+"/player",M=[{name:"Content-Type",value:"application/json"}];D&&M.push({name:"Authorization",value:"Bearer "+D});M.push({name:"User-Agent",value:g.Ae()});g.TK("EOM_VISITOR_DATA")?M.push({name:"X-Goog-EOM-Visitor-Id",value:g.TK("EOM_VISITOR_DATA")}):(x=x.visitorData||g.TK("VISITOR_DATA"))&&M.push({name:"X-Goog-Visitor-Id",value:x});(x=g.TK("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&M.push({name:"X-YouTube-Lava-Device-Context",
value:x});(W=Qv(W.experiments,"debug_sherlog_username"))&&M.push({name:"X-Youtube-Sherlog-Username",value:W});Q=dF(JSON.stringify(Q));return{url:l,xx:M,postBody:Q,b2f:K,Jj:K}};
VQ5=function(Q,W,x,D,K,l){var M=g.l1(Q,bD1,Q.Jj?void 0:x.n_),w={encryptedClientKey:W.B.encryptedClientKey,m4:!0,Ky:!0,Q8:nS4(x,!!Q.Jj),Rw:x.experiments.ij("html5_use_jsonformatter_to_parse_player_response")};if(Q.Jj)w.tU3=M;else{Q=W.encrypt(M);var S;if(((S=x.n_)==null?void 0:S.exports.memory.buffer)===M.buffer&&Q.byteOffset!==M.byteOffset){var b;(b=x.n_)==null||b.free(M.byteOffset)}var z;Q=((z=x.n_)==null?void 0:z.ym(Q))||Q;M=w.Qe=Q;(0,g.a8)();M=Dln(new xlO(W.B.D),M,W.iv);w.W$=M;w.iv=W.iv}W=D.getVideoData();
x=P7({Dp:x,xf:D,zO:W.startSeconds*1E3});K={Ns:w,vr:x,onesieUstreamerConfig:K,Ka:l,LC:v7(W)};W.reloadPlaybackParams&&(K.reloadPlaybackParams=W.reloadPlaybackParams);return K};
Pbn=function(Q,W,x){var D,K,l;return g.U(function(M){if(M.B==1)return D=g.l1(W,bD1),g.A(M,m45(x,D),2);if(M.B!=3)return K=M.U,g.A(M,N51(x,K),3);l=M.U;return M.return({Qe:K,encryptedClientKey:x.B.encryptedClientKey,iv:x.iv,W$:l,m4:!0,Ky:!0,Q8:nS4(Q,!!W.Jj),Rw:Q.experiments.ij("html5_use_jsonformatter_to_parse_player_response")})})};
vSs=function(Q,W,x,D,K,l){var M,w,S,b;return g.U(function(z){if(z.B==1)return g.A(z,Pbn(x,Q,W),2);M=z.U;w=D.getVideoData();S=P7({Dp:x,xf:D,zO:w.startSeconds*1E3});b={Ns:M,vr:S,onesieUstreamerConfig:K,Ka:l,LC:v7(w)};w.reloadPlaybackParams&&(b.reloadPlaybackParams=w.reloadPlaybackParams);return z.return(b)})};
nS4=function(Q,W){Q=CO(Q.schedule,!0);W=W||!!PE()&&Q>1572864;return"DecompressionStream"in window||!W};
eH=function(Q,W){g.N.call(this);var x=this;this.xf=Q;this.playerRequest=W;this.logger=new g.MP("onesie");this.xhr=null;this.state=1;this.Tz=new th;this.wg=!1;this.playerResponse="";this.Se=new xA(this);this.zc=new SN2(this);this.e2="";this.Rv=this.FR=!1;this.f8="";this.enableCompression=this.VL=this.Yy=!1;this.LG=[];this.Hc=this.BK=-1;this.bj=this.xf.C();this.videoData=this.xf.getVideoData();this.vL=this.bj.jk();this.xk=this.bj.Wz;this.ob=new ij(this.xk.B,this.bj.xN,ACn(this.bj));this.Iu=this.bj.j("html5_onesie_check_timeout");
this.eY=new g.O3(this.Io,500,this);this.BA=new g.O3(this.Pe,1E4,this);this.pX=new g.O3(function(){if(!x.isComplete()){var D=yJ(x);x.Os(new Gu("net.timeout",D))}},g.X0(this.bj.experiments,"html5_onesie_request_timeout_ms"));
this.B4=new g.O3(this.v63,2E3,this);this.FN=this.xf.bl();this.HA=this.j("html5_onesie_wait_for_media_availability");g.y(this.videoData,this);g.y(this,this.eY);g.y(this,this.BA);g.y(this,this.B4);g.y(this,this.ob);Q=Dj();ta&&Q&&!this.bj.j("html5_disable_onesie_media_bytes")&&(this.bS=new Map);this.wO=new Map;this.yb=new Map;this.AP=new Map;this.MV=new Map};
qg=function(Q,W){var x;return(x=Q.bS)==null?void 0:x.get(W)};
JQ5=function(Q,W,x){var D;return g.U(function(K){if(K.B==1)return Q.Tt("oprd_s"),Cbs(Q)?g.A(K,cCa(Q.ob,W,x),3):(D=Q.ob.decrypt(W,x),K.kf(2));K.B!=2&&(D=K.U);Q.Tt("oprd_c");return K.return(D)})};
Rlv=function(Q,W,x){Q.Tt("oprd_s");W=Ijv(Q.ob).encrypt(W,x);u3(W,function(){Q.Tt("oprd_c")});
return W};
pWO=function(Q){return Q.j("html5_onesie_host_probing")||Q.vL?ta:!1};
sfQ=function(Q,W){Q.Tt("oprr");Q.playerResponse=W;Q.VL||(Q.HA=!1);f2(Q)};
f2=function(Q){if(!Q.playerResponse)return!1;if(Q.Yy)return!0;var W=Q.videoData.j("html5_onesie_audio_only_playback")&&lG(Q.videoData);if(Q.bS&&Q.HA){if(!Q.bS.has(Q.e2))return!1;var x=Q.bS.get(Q.e2),D;if(D=x){D=!1;for(var K=g.V(x.vD.keys()),l=K.next();!l.done;l=K.next())if(l=x.vD.get(l.value))for(var M=g.V(l.oB),w=M.next();!w.done;w=M.next())w.value.sJ>0&&(l.Mx?D=!0:W=!0);D=!(W&&D)}if(D)return!1}Q.Tt("ofr");Q.Tz.resolve(Q.playerResponse);if(!Q.Iu){var S;(S=Q.pX)==null||S.start();Q.BA.start()}return Q.Yy=
!0};
ad5=function(Q){if(Q.bS&&!Q.j("html5_onesie_media_capabilities")){Q.Tt("ogsf_s");var W=IKQ(Q.xf.getVideoData(),function(D,K){Q.qj(D,K)}),x=hlv(Q.xf);
W.video=G8D(x,W.video);Q.Tt("ogsf_c");if(W.video.length)return W;Q.qj("ombspf","l."+x.U+";u."+x.B+";o."+x.D+";r."+x.reason)}};
Cbs=function(Q,W){return Q.j("html5_onesie_sync_request_encryption")||(W==null?0:W.Jj)||g.tC(Q.bj)&&Q.j("html5_embed_onesie_use_sync_encryption")?!1:!!PE()};
yJ=function(Q){if(!Q.ZX)return{};var W=Q.ZX.XV(),x;W.d=(x=Q.ZX.fS)==null?void 0:x.Rj();W.shost=Q.xu;W.ty="o";return W};
GQh=function(Q,W){var x,D;(D=(Q=(x=Q.bS)==null?void 0:x.get(W))==null)||(W=Q.D?!1:Q.D=!0,D=!W);return!D};
doh=function(Q,W,x,D,K,l,M,w,S,b,z){g.N.call(this);var k=this;this.xf=Q;this.Bt=W;this.policy=x;this.audioTrack=D;this.videoTrack=K;this.jZ=l;this.p_=M;this.O3=w;this.D=S;this.timing=b;this.T=z;this.B=[];this.G={};this.eZ=this.s3=!1;this.kW=new Set;this.L=this.g7=this.uj=this.iW=0;this.N=null;this.F3={Mi:[],MH:[]};this.KS={Mi:[],MH:[]};this.X=null;this.X3=[];this.by={Tqt:function(){return k.B},
Xr5:function(){return k.G},
oQf:function(){k.B.length=0},
wr3:function(){return k.kW},
Yu3:function(){return k.uj},
XO1:function(X){k.uj=X},
vl7:function(X){k.L=X},
Jk:function(X){k.X=X}};
this.videoData=this.xf.getVideoData();this.policy.Vd&&(this.LS=new OJ(this.Bt,this.policy,this.p_),g.y(this,this.LS))};
H11=function(Q,W){W=W===void 0?!1:W;if(i1v(Q,W)){Q.policy.G&&Q.Bt.qj("sabrcrq",{create:1});var x=new Mg(0,Q.jZ.S,Q);Q.policy.YY>0&&Q.L++;W=AQv(Q,x,W);Q.B.push(W);var D;(D=Q.LS)==null||QO2(D,Q.jZ.S)}};
$os=function(Q,W){var x=Uoz(Q);if(Q.policy.m1){var D=Q.F3;var K=Q.KS}else D=Zl(Q,Q.audioTrack),K=Zl(Q,Q.videoTrack);var l=[].concat(g.C(D.Mi),g.C(K.Mi));Q.policy.Kn&&Q.X&&l.push.apply(l,g.C(Q.X3));var M=[].concat(g.C(D.MH),g.C(K.MH)),w=Q.Bt.BY(),S,b,z=Q.xf,k=Q.jZ,X=Q.U,u=Q.kW,Y=Q.policy,v=Q.Bt.d3,J=jOv(Q.Bt)*1E3,h=(S=Q.fS)==null?void 0:S.ZH;S=(b=Q.fS)==null?void 0:b.o1;var G;b=Number((G=Q.D.N)==null?void 0:G.info.itag)||0;var H;G=Number((H=Q.D.X)==null?void 0:H.info.itag)||0;W={xf:z,jZ:k,Mi:l,MH:M,
zO:x,nextRequestPolicy:X,kW:u,HD:Y,d3:v,Eb:J,ZH:h,o1:S,iW:Q.iW,isPrefetch:W||Q.Bt.isSuspended,V9:b,hH:G,Mg:w,q6:Q.xf.V8()};x=Q.Bt.pY();l=w5(x);x&&(W.XS=l);if(x=Q.xf.vR())W.NP=x*1E3;var I;x=Q.D;l=x.uj;if((x.HD.U&&x.HD.TQ||((I=x.HD)==null?0:I.B&&I.uG))&&!l)for(I=g.V(x.D),M=I.next();!M.done;M=I.next())if(M.value.RW){l=!0;break}I=rI(x.HD)&&!l?[]:XLa(x,x.D);W.hw=I;I=Q.D;rI(I.HD)&&!I.pS?I=[]:(x=CAh(I),x.length===0&&(x=I.G),I=XLa(I,x));W.aV=I;W.SF=Q.policy.Kn&&Q.X?[Q.X]:void 0;Q.policy.Gd&&(W.gi=qN5(Q.Bt,
Q.audioTrack),W.j5=qN5(Q.Bt,Q.videoTrack));if(Q.policy.L){D=B0F(Q,D.Mi,K.Mi);var c;if(K=(c=Q.N)==null?void 0:c.jw(D))W.WL=K}Q.policy.X3&&Q.B.length>0&&Q.B[0].E0()&&(W.cK9=Q.B[0].Li());return W};
Uoz=function(Q){var W,x=Q.policy.X&&((W=Q.Bt)==null?void 0:W.TR());W=Q.Bt.getCurrentTime()||0;W=IdQ(Q,W);var D=Q.Bt.aW()||0;W+=D;D=dG(Q.videoData)||g.Gr(Q.videoData);var K=0;x?(D&&(K=Number.MAX_SAFE_INTEGER),Q.videoData.LS&&(K=Math.ceil(Q.videoData.X3*1E3))):K=Math.ceil(W*1E3);return Math.min(Number.MAX_SAFE_INTEGER,K)};
IdQ=function(Q,W){if(Q.Bt.isSeeking())return W;var x=Q.xf.DG();if(!x)return W;x=x.O4();if(x.length===0||Se(x,W))return W;if(!yQ(Q.videoTrack,W)&&!yQ(Q.audioTrack,W))return Q.Bt.qj("sundrn",{b:0,lt:W}),W;for(var D=W,K=Infinity,l=0;l<x.length;l++)if(!(x.start(l)>W)){var M=W-x.end(l);M<K&&(K=M,D=x.end(l))}return D!==W&&(Q.Bt.qj("sundrn",{bre:D,lt:W}),K>=20)?(Q.Bt.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),W):D};
B0F=function(Q,W,x){var D=Q.Bt.getCurrentTime()||0;W=mo1(Q,W,D);Q=mo1(Q,x,D);return Math.min(W,Q)};
mo1=function(Q,W,x){Q=Q.Bt.aW()||0;W=g.V(W);for(var D=W.next();!D.done;D=W.next()){var K=D.value;D=K.startTimeMs?K.startTimeMs/1E3-Q:0;K=D+(K.durationMs?K.durationMs/1E3:0);if(D<=x&&x<=K)return K}return x};
i1v=function(Q,W){if(Q.policy.YY>0){var x=Math.floor((0,g.a8)()/1E4);if(x===Q.g7){if(Q.L>=Q.policy.YY){if(Q.L===Q.policy.YY){var D={reason:"toomanyrequests"};D.limit=Q.L;Q.Bt.handleError("player.exception",D);Q.L+=1}return!1}}else Q.g7=x,Q.L=0}W=!W&&!JC(Q.p_)&&!Q.policy.eK;if(Q.Bt.isSuspended&&(Q.Bt.v5||W))return!1;if(Q.pS&&(0,g.a8)()<Q.pS)return Q.policy.eK&&g.E3(Q.Bt.nE),!1;if(Q.B.length>0&&(!Q.policy.X3||Q.B.length!==1||!Q.B[0].E0()))return!1;var K;if((K=Q.jZ.S)==null||!hZ(K,Q.policy,Q.G,Q.Bt.HO()))return!1;
K=Q.policy.yU&&Q.policy.U&&Q.Bt.zP();if(NY(Q.audioTrack)&&NY(Q.videoTrack)&&!K)return!1;if(Q.policy.U&&Q.S&&!Q.Bt.zP())return Q.T1("ssap",{pauseontlm:1}),!1;if(L2(Q,Q.audioTrack)&&L2(Q,Q.videoTrack))return Q.policy.D&&Q.Bt.qj("sabrHeap",{a:""+Hn(Q.audioTrack),v:""+Hn(Q.videoTrack)}),!1;if(K=Q.policy.L)K=!1,Q.T.U===2?K=!0:Q.T.U===3&&(Uoz(Q),Q.Bt.aW(),W=B0F(Q,dI(Q.audioTrack,Q.Bt.isSeeking()).Mi,dI(Q.videoTrack,Q.Bt.isSeeking()).Mi),x=Q.T,W>=x.D?(x.qj("sdai",{haltrq:W,est:x.D}),W=!0):W=!1,W&&(K=!0)),
K&&Q.policy.G&&Q.Bt.qj("sabrcrq",{waitad:1});if(K)return!1;Q.policy.m1&&(Q.F3=Zl(Q,Q.audioTrack),Q.KS=Zl(Q,Q.videoTrack));if(!Q.U)return Q.policy.G&&Q.Bt.qj("sabrcrq",{nopolicy:1}),!0;if(Q.xf.vR())return Q.policy.G&&Q.Bt.qj("sabrcrq",{utc:1}),!0;if(Q.D.L)return Q.policy.G&&Q.Bt.qj("sabrcrq",{audio:1}),!0;if(!Q.U.targetAudioReadaheadMs||!Q.U.targetVideoReadaheadMs)return Q.policy.G&&Q.Bt.qj("sabrcrq",{noreadahead:1}),!0;if(Q.policy.X&&Q.Bt.TR())return Q.policy.G&&Q.Bt.qj("sabrcrq",{seekToHead:1}),
!0;K=Math.min(eV(Q.Bt,Q.audioTrack)*1E3,Q.U.targetAudioReadaheadMs);W=Math.min(eV(Q.Bt,Q.videoTrack)*1E3,Q.U.targetVideoReadaheadMs);var l=Math.min(K,W);x=qY(Q.audioTrack,!0)*1E3;var M=qY(Q.videoTrack,!0)*1E3;if(Q.policy.m1){var w=Q.xf.getCurrentTime()*1E3;var S=N0a(Q.F3.Mi,w);w=N0a(Q.KS.Mi,w)}else S=x,w=M;var b=S<l&&!L2(Q,Q.audioTrack);l=w<l&&!L2(Q,Q.videoTrack);!(l=!b&&!l)&&(l=Q.policy.U)&&(l=Q.Bt,!l.nS||aI(l.jZ)?l=!1:(b=rY(l.nS),l=cQD(l,b)));if(l||Q.policy.p6&&gSl(Q.Bt)&&Q.videoData.c9()||Q.policy.FF&&
gSl(Q.Bt))return!1;Q.policy.G&&(l=Q.Bt.AO(),l.car=S,l.vac=w,l.mar=K,l.mvr=W,l.tar=Q.U.targetAudioReadaheadMs,l.tvr=Q.U.targetVideoReadaheadMs,l.vbu=RU(((D=Q.xf.DG())==null?void 0:D.O4())||null),l.abh=x,l.vbh=M,Q.Bt.qj("sabrcrq",l));return!0};
Zl=function(Q,W){Uoz(Q);Q.Bt.aW();return dI(W,Q.Bt.isSeeking())};
N0a=function(Q,W){var x=0,D=-1;Q=g.V(Q);for(var K=Q.next();!K.done;K=Q.next())if(K=K.value,!(K.startTimeMs+K.durationMs<W)){if(D<0&&K.startTimeMs>W||D>=0&&K.Hz>D+1)break;x=Math.max(x,K.startTimeMs+K.durationMs);D=Math.max(D,K.Iz)}return Math.max(0,x-W)};
AQv=function(Q,W,x){var D={p_:Q.p_,wJ:function(S,b){Q.xf.jF(S,b)},
K7:Q.policy.zz,Gv:Q.policy.D};Q.p_.U.X&&(D.zF=(Q.videoTrack.B.info.a5||0)+(Q.audioTrack.B.info.a5||0));Q.policy.nt&&(D.K2=Q.audioTrack.B.index.GR(),D.K7=!1);var K=ajO(W,Q.policy,Q.G)?2:1;K!==Q.uj&&(Q.uj=K,yQ5(Q));x=$os(Q,x);if((Q.policy.U||Q.policy.X3)&&Q.policy.D&&x.kW){for(var l=K="",M=g.V(x.kW),w=M.next();!w.done;w=M.next())w=w.value,Q.videoData.sabrContextUpdates.has(w)?K+="_"+w:l+="_"+w;Q.Bt.qj("sabrbldrqs",{ctxts:K,misctxts:l})}W.setData(x,Q.Bt.zP(),Q.policy,Q.G)||!Q.policy.U&&!Q.policy.X3||
Q.Bt.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);D=new qP(Q.policy,W,Q.jZ,Q.G,Q,D,Q.Bt.bl(),Q.policy.Qx?Q.Bt.zP():void 0);B7(Q.timing);Q.policy.G&&Q.Bt.qj("sabrcrq",{rn:D.cL(),probe:W.tE()});return D};
OF=function(Q,W){if(W.d7()||Q.d7())Q.policy.lW||(Q.policy.X?Tt(Q.Bt):Q.Bt.KZ());else{if(Q.policy.D&&W.isComplete()&&W instanceof qP){var x=Q.Bt,D=x.qj,K,l,M=Object.assign(W.ZX.XV(),{rst:W.state,strm:W.xhr.t7(),d:(K=W.ZX.fS)==null?void 0:K.Rj(),cncl:W.xhr&&W.f_.N?1:0,rqb:W.P4,cwt:W.rW,swt:(l=W.Te)==null?void 0:l.So});K=Object.assign(iO5(W.info),M);D.call(x,"rqs",K)}if(W.isComplete()&&W.tE()&&W instanceof qP)Q.policy.cD?W.Q6()?(W.dispose(),Q.B.length===0?Q.Bt.KZ():(Q=Q.B[0],Q instanceof qP&&Q.R4()&&
Q.T3())):W.je()&&Q.Bt.handleError(W.g1(),W.TV()):(W.dispose(),Q.Bt.KZ());else{if(W.f1())W instanceof qP&&nmD(Q.timing,W),yQ5(Q),elF(Q);else if(W.je())x=Q.xf.vR(),W instanceof qP&&d4D(W.info)&&x&&Q.Bt.K0(x),W instanceof eH?Q.B.pop():(x=1,W.canRetry()&&bO1(Q.Bt)&&(fdh(Q,W),x=0),Q.Bt.handleError(W.g1(),W.TV(),x));else{if(Q.Bt.isSuspended&&!W.isComplete())return;elF(Q)}W.d7()||W instanceof eH||(W.isComplete()?x=D4v(W,Q.policy,Q.G):(x=x4F(W,Q.policy,Q.G),x===1&&(Q.s3=!0)),x!==0&&(D=new Mg(1,W.info.Db),
D.H9=x===2,AQv(Q,D)));Q.policy.yA&&!W.isComplete()?ST4(Q.Bt):Q.Bt.KZ()}}};
elF=function(Q){for(;Q.B.length&&Q.B[0].t0(Q.XX());){var W=Q.B.shift();Z1F(Q,W);if(Q.policy.L){var x=Q;if(!x.policy.I5&&W.t0(x.XX())){var D=W.cL();if(x.I5!==D){var K=W.Fk();W=K.BK;var l=K.Hc;K=K.isDecorated;!x.N||l<0||(x.I5=D,D=yj(x.T,l/1E3,W),l=x.Bt.aW()||0,NP(x.T,W,D-l,K,x.N))}}}}Q.B.length&&Z1F(Q,Q.B[0])};
Z1F=function(Q,W){var x=new Set(W.sN(Q.XX()));x=g.V(x);for(var D=x.next();!D.done;D=x.next()){var K=D.value;if(!(D=!(W instanceof eH))){D=Q.D;var l=D.jZ.lN,M=lj(D.videoInfos,l);D=vhh(D,K,l)||M.includes(K)}if(D&&(D=W.BF(K,Q.XX()),l=Q.policy.Kn&&KS(D[0].B.info.mimeType),(!(!l&&Q.policy.Hy&&D.length>0&&(D[0].B.info.Mx()?qY(Q.audioTrack):qY(Q.videoTrack))>3)||W.isComplete())&&W.Rl(K,Q.XX()))){K=W.PM(K,Q.XX());if(Q.policy.U){M=D[0].B.info;var w=Q.Bt.zP();if(w&&M){var S=W.MO();w.api.j("html5_ssap_set_format_info_on_video_data")&&
S===mv(w)&&(M.Mx()?w.playback.getVideoData().N=M:w.playback.getVideoData().U=M);if(w=EF(w.timeline,S))if(w=w[0].getVideoData())M.Mx()?w.N=M:w.U=M}}K=g.V(K);for(M=K.next();!M.done;M=K.next())if(M=M.value,Q.policy.D&&W instanceof eH&&Q.Bt.qj("omblss",{s:M.info.Zb()}),l)w=Q,w.videoData.lN()&&w.X&&az(w.X)===az(g.WT(M.info.B.info,w.jZ.lN))&&w.xf.publish("sabrCaptionsDataLoaded",M,w.Dh.bind(w));else{w=M.info.B.info.Mx();var b=M.info.B;if(w){S=void 0;var z=Q.D,k=(S=W.Xj(Q.XX()))==null?void 0:S.token;z.HD.QN&&
z.L&&b!==z.X?S=!0:(z.L=!1,b!==z.X&&(z.X=b,z.CQ(b,z.audioTrack,k)),S=!1);if(Q.policy.QN&&S)continue}else S=void 0,ksz(Q.D,b,(S=W.Xj(Q.XX()))==null?void 0:S.token);S=w?Q.audioTrack:Q.videoTrack;W instanceof eH&&(S.G=!1,W instanceof eH&&(w?sza(Q.timing):bf2(Q.timing)));try{Ga(S,D,M)}catch(X){M=i7(X),Q.Bt.handleError(M.errorCode,M.details,M.severity),S.kS(),Q.Gm(!1,"pushSlice"),Tt(Q.Bt)}}}}};
fdh=function(Q,W){Q.policy.X3?Q.B.splice(Q.B.indexOf(W)).forEach(function(x){x.dispose()}):(Q.B.pop(),W==null||W.dispose())};
L5a=function(Q,W,x){for(var D=[],K=0;K<Q.B.length;K++)W&&Q.B[K]instanceof eH?D.push(Q.B[K]):(Q.policy.G&&Q.Bt.qj("sabrcrq",{d:Q.B[K].cL(),src:x}),Q.B[K].dispose());Q.B=D};
rQn=function(Q,W){W&&W.type&&(Q.videoData.sabrContextUpdates.set(W.type,W),W.sendByDefault&&Q.kW.add(W.type))};
T0n=function(Q,W,x){W.BX(x.Qu,x.version)?Q.videoData.Og=x.version||"":Q.Bt.qj("ssap",{v:x.version,tlnu:1})};
yQ5=function(Q){Q.kW.clear();if(Q.videoData.sabrContextUpdates.size>0)for(var W=g.V(Q.videoData.sabrContextUpdates.keys()),x=W.next();!x.done;x=W.next()){x=x.value;var D=void 0;((D=Q.videoData.sabrContextUpdates.get(x))==null?0:D.sendByDefault)&&Q.kW.add(x)}if(Q.policy.X3&&Q.B.length)for(W=g.V(Q.B),x=W.next();!x.done;x=W.next())(x=x.value.Li())&&x.type&&x.sendByDefault&&Q.kW.add(x.type)};
O1v=function(Q){Q.policy.gE&&(Q.fS=void 0,Q.iW=0)};
ESF=function(Q,W){if(W.je()||W.d7()){var x=Q.Bt,D=x.qj,K=W.state;Q=Q.XX();var l,M;if((W=(l=W.bS)==null?void 0:l.get(Q))==null)W=void 0;else{l=0;Q=W.sN();for(var w=0;w<Q.length;w++){var S=void 0;l+=((S=W.vD.get(Q[w]))==null?void 0:S.bytesReceived)||0}W=l}W=(M=W)!=null?M:-1;D.call(x,"sabromb",{s:K,tbytes:W})}else Q.B.push(W),W.LG.push(Q),B7(Q.timing),Q.policy.oH&&W.yC&&Q.eG(W.yC)};
L2=function(Q,W){return Q.policy.wX?!Q.Bt.wz&&TA(W)&&(W.h8()!==TA(W)||Q.Bt.isSuspended):!1};
F5v=function(Q){var W="";Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next()){x=x.value;W+=".cid."+x.clipId;if(x.Vo){var D=x.Vo;W+=".vid."+D.bJ+(".pst."+D.Lg)+(".ps."+D.v4)+(".lst."+D.NG3)+(".ld."+D.R3)+(".ls."+D.I3)}x.NB&&(W+=".nonv."+x.NB.Bf)}return W};
tQv=function(Q){this.N=Q;this.B=0;this.U=!1;this.D=new Map};
Q44=function(Q,W,x,D,K){this.Bt=Q;this.policy=W;this.schedule=x;this.gf=D;this.T=K;this.uj=NaN;this.U=this.G=this.N=null;this.B=this.L=this.X=this.startTimeSecs=NaN;this.D=!1;this.S=NaN};
WW4=function(Q,W,x,D,K,l){return W.W9&&W.vZ&&x===3?new Q44(Q,W,D,K,l):null};
xJh=function(Q,W){if(Q.policy.nG){var x=W.info.a5,D=CO(Q.schedule);W=W.index.GR();x=Math.max(1,D/x);Q.S=Math.round(Math.max(((x-1)*W+Q.policy.RQ)/x,W-Q.policy.BM)*1E3)}};
lMn=function(Q,W){var x=Date.now()/1E3,D=x-Q.startTimeSecs,K=x-Q.X,l=K>=Q.policy.yS,M=!1;if(l){var w=0;!isNaN(W)&&W>Q.L&&(w=W-Q.L,Q.L=W);w/K<Q.policy.q8&&(M=!0);Q.X=x}x=D>=Q.policy.BM&&!Q.D;if(!l&&!x&&DJl(Q,W))return NaN;x&&(Q.D=!0);a:{D=M;x=(0,g.a8)()/1E3-(Q.gf.iS()||0)-Q.G.B-Q.policy.RQ;l=Q.U.startTime;x=l+x;if(D){if(isNaN(W)){Fq(Q,NaN,"n",W);l=NaN;break a}D=W-Q.policy.pu;D<x&&(x=D)}else Q.D&&(D=x+Q.policy.RQ-Q.uj+Q.policy.uc,isNaN(W)||(D=Math.max(D,Math.min(x,W-Q.policy.pu))),x=D);l=x=Math.max(x,
l)}Q.B=l;if(isNaN(Q.B))return Q.clear(),NaN;if(!M&&DJl(Q,W))return KWn(Q,W),NaN;if(Q.B<=Q.U.startTime)return Fq(Q,NaN,"y",W),Q.clear(),NaN;if(!Q.T(Q.B,!1))return!KWn(Q,W)&&M&&(Fq(Q,NaN,"t",W),Q.clear()),NaN;M=Q.B;Fq(Q,M,"s",W);Q.clear();return M};
KWn=function(Q,W){return Q.T(Q.B,!0)?!1:(Fq(Q,NaN,"ns",W),Q.clear(),!0)};
DJl=function(Q,W){return isNaN(W)?!0:isNaN(Q.B)?!1:W<Q.B+(Q.D?Q.policy.pu:Q.policy.xo)};
Fq=function(Q,W,x,D){var K=Q.N.TV();K.ssr_sk=(W*1E3).toFixed(0);K.ssr_t=(Q.B*1E3).toFixed(0);K.ssr_r=x;K.ssr_st=(Q.startTimeSecs*1E3).toFixed(0);K.ssr_n=(0,g.a8)().toFixed(0);K.ssr_f=(Q.G.B*1E3).toFixed(0);K.ssr_fa=Q.D?"1":"0";K.ssr_o=(Q.gf.iS()*1E3||0).toFixed(0);K.ssr_v=(D*1E3).toFixed(0);W=Q.U.B.index;W.gY(Q.U.E3,!0)&&(K.ssr_ist=(W.getStartTime(Q.U.E3)*1E3).toFixed(0),K.ssr_id=(W.getDuration(Q.U.E3)*1E3).toFixed(0));Q.Bt.qj("ssr",K)};
j45=function(){var Q={};if(window.performance){var W=window.performance.memory;W&&(Q.jsTotal=W.totalJSHeapSize,Q.jsUsed=W.usedJSHeapSize,Q.jsLimit=W.jsHeapSizeLimit,Q.msTotal=W.totalMediaSourceSize,Q.msLimit=W.mediaSourceSizeLimit,Q.msUsed=W.usedMediaSourceMemorySize)}var x;if((x=window.h5vcc)==null?0:x.cVal)Q.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),Q.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),Q.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return Q};
g.QT=function(Q,W,x,D,K,l,M,w,S,b){w=w===void 0?!1:w;g.N.call(this);var z=this;this.xf=Q;this.schedule=W;this.policy=x;this.jZ=D;this.pS=S;this.cD=b;this.r7=null;this.LS=this.X3=this.fS=this.wz=0;this.SM=this.v5=this.isSuspended=!1;this.O3="";this.gE={};this.fn=!1;this.SZ=0;this.S=null;this.tf=this.g7=!1;this.d3=0;this.I5=!1;this.KS=this.Pt=0;this.Y6=null;this.Mz=function(){return z.xf.Mz()};
this.timing=new SqO(this.cD);this.T=new dz(this.schedule,this.policy);this.Kn=new g.O3(this.KZ,0,this);this.Vj=new g.O3(this.KZ,this.policy.yA,this);this.nE=new g.O3(this.KZ,1E3,this);this.yA=new g.O3(this.KZ,void 0,this);this.s3=new g.O3(function(){z.policy.eK&&z.isSuspended||z.KZ()},1E4,this);
this.WN=new g.O3(this.WUt,250,this);this.X=this.currentTime=NaN;this.Lm=new zs(5);this.F3=this.timestampOffset=NaN;this.logger=new g.MP("dash");this.Sk=Infinity;this.by={getAudioTrack:function(){return z.audioTrack},
FZp:function(){return z.videoTrack},
getManifest:function(){return z.jZ},
qJf:function(){return z.D},
KZ:function(){z.KZ()},
Hw:function(){z.wz=0;z.Hw()},
qNt:function(k){return tY(z,z.videoTrack,z.r7.U,k)}};
Q=S&&S.sN();S&&(lth(S,this.jZ,this.policy),this.F3=Date.now());this.B=new Fd(this,this.T,x,this.jZ,K,Q);x=Hf2(this.B,l,M&&M.id);this.audioTrack=new Jt(this,this.policy,x.audio,this.timing);this.videoTrack=new Jt(this,this.policy,x.video,this.timing);this.videoTrack.N.KS=this.audioTrack.Fj();this.eZ={updateend:this.t1,error:this.Vk3};g.y(this,this.Kn);g.y(this,this.Vj);g.y(this,this.nE);g.y(this,this.yA);g.y(this,this.s3);x=this.policy.VW&&this.policy.U8?!vZO(this.videoTrack.B.info):!1;this.Gn=LZh({bF:this.policy.S.bF||
x,U8:this.policy.U8&&!x,pN:this.policy.pN});this.G=WW4(this,this.policy,this.Gn,this.schedule,this.Lm,function(k,X){return M4a(z,k,X)});
this.N=new $A(this,this.jZ,this.policy,this.videoTrack,this.audioTrack,w,this.xf.getVideoData().aQ());this.M_=new mq(this,this.jZ,this.videoTrack,this.audioTrack,this.policy);w=this.policy.Hg?this.xf.getVideoData().DE:null;this.L=new EJ(this,this.policy,this.videoTrack,this.audioTrack,this.gE,this.N,this.timing,this.T,this.schedule,this.jZ,this.B,this.G,x,w);g.y(this,this.L);this.U=new K2(this,this.policy,this.videoTrack,this.audioTrack,this.jZ,K,lG(this.xf.getVideoData()),M==null?void 0:M.id);g.y(this,
this.U);nhn(this.U,l);this.D=new doh(this.xf,this,this.policy,this.audioTrack,this.videoTrack,this.jZ,this.schedule,this.B,this.U,this.timing,this.N);g.y(this,this.D);this.uj=this.xf.L_.f0.kR;this.policy.X||Rjn(this);this.policy.gH&&(this.Cn=new tQv(this.videoTrack.B.index));this.logger.debug("Created")};
Rjn=function(Q){var W,x;if((W=Q.uj)==null?0:(x=W.S1)==null?0:x.itagDenylist){var D;Q.Pf((D=Q.uj)==null?void 0:D.S1.itagDenylist)}var K;if((K=Q.uj)==null?0:K.playbackStartPolicy){var l,M;Ta(Q.policy,(l=Q.uj)==null?void 0:l.playbackStartPolicy,3,(M=Q.uj)==null?void 0:M.cL())}if(Q.policy.X$){W=Q.XX();var w;(x=W?(w=Q.uj)==null?void 0:w.yb.get(W):void 0)&&Q.D.YQ(x)}if(!Q.jZ.T){var S;w=(S=Q.uj)==null?void 0:S.ex;(w==null?0:w.IZ)&&(w==null?0:w.vY)&&Q.jZ.lN&&ha(Q.jZ,w.IZ,w.vY)}var b;((b=Q.uj)==null?0:b.MV)&&
(S=Q.uj.MV.get(Q.XX()||""))&&Q.jZ&&S.formatId&&(Q=Q.jZ.D.get(az(S.formatId)))&&(Q.info.debugInfo=S.debugInfo)};
wXO=function(Q,W){if(Q.policy.U&&!Q.policy.dZ)return!1;var x=az(g.WT(W.B.info,Q.jZ.lN)),D,K=((D=Q.pS)==null?void 0:D.BF(x))||[];if(K.length===0)return Q.qj("ombmsi",{}),!1;K=new cM(K);if(D=!Q.policy.pS||isFinite(Q.getCurrentTime())||Q.xf.vR()){a:{D=Q.getCurrentTime();K=g.V(K.Af);for(var l=K.next();!l.done;l=K.next())if(l=l.value,l.type===3&&D>=l.kD&&D<=l.Nx){D=!0;break a}D=!1}D=!D}if(D)return Q.qj("ostmf",{ct:Q.getCurrentTime(),a:W.B.info.Mx()}),!1;(Q=Q.pS)!=null&&(Q.vD.get(x).u9=!0);return!0};
S_5=function(Q){if(!Q.jZ.lN)return!0;var W=Q.xf.getVideoData();if(W.j("html5_skip_live_preroll_onesie")&&Q.xf.YI()||W.j("html5_skip_live_preroll_onesie_post_live")&&Q.xf.YI()&&(W.Nr||W.isPremiere))return Q.qj("ombpa",{}),!1;var x,D;if(Q.policy.b9&&!!((x=Q.uj)==null?0:(D=x.ex)==null?0:D.CG1)!==Q.jZ.Nr)return Q.qj("ombplmm",{}),!1;x=W.Gn||W.liveUtcStartSeconds||W.IU;if(Q.jZ.Nr&&x)return Q.qj("ombplst",{}),!1;if(Q.jZ.T)return Q.qj("ombab",{}),!1;x=Date.now();return aI(Q.jZ)&&!isNaN(Q.F3)&&x-Q.F3>Q.policy.tJ*
1E3?(Q.qj("ombttl",{}),!1):Q.jZ.bG&&Q.jZ.N||!Q.policy.Bj&&Q.jZ.isPremiere||!(o4(W)===0||Q.policy.B&&W.j("html5_enable_onesie_media_for_sabr_proxima_optin"))||W.j("html5_disable_onesie_media_for_mosaic")&&Tr(W)||W.j("html5_disable_onesie_media_for_ssdai")&&W.isDaiEnabled()&&W.enableServerStitchedDai||W.j("html5_disable_onesie_media_for_lifa_eligible")&&rG(W)?!1:!0};
bQz=function(Q,W){var x=W.B,D=Q.jZ.lN;if(S_5(Q))if(Q.pS&&Q.pS.vD.has(az(g.WT(x.info,D)))){if(D=az(g.WT(x.info,D)),wXO(Q,W)){var K=new cM(Q.pS.BF(D)),l=function(M){try{if(M.je())Q.handleError(M.g1(),M.TV()),IT(W,M),yr(M.info)&&QJ(Q.L,W,x,!0),Q.KZ();else if(Wf(Q.L,M)){var w;(w=Q.N)==null||CM2(w,M.info,Q.S);Q.KZ()}}catch(S){M=i7(S),Q.handleError(M.errorCode,M.details,M.severity),Q.kS()}};
x.D=!0;gR(K)&&(aT(W,new Nd(Q.policy,D,K,Q.pS,l)),B7(Q.timing))}}else Q.qj("ombfmt",{})};
WG=function(Q,W){W=W||Q.videoTrack&&Q.videoTrack.U&&Q.videoTrack.U.startTime||Q.getCurrentTime();var x=xp,D=Q.videoTrack,K=Q.B;W=K.nextVideo&&K.nextVideo.index.GC(W)||0;K.KS!==W&&(K.LS={},K.KS=W,tL(K,K.B));W=!K.B.isLocked()&&K.T>-1&&(0,g.a8)()-K.T<K.policy.OR*1E3;var l=K.nextVideo&&x9(K,K.nextVideo.info)*3<UG(K.F3);if(!W||l)Em(K),QQ(K),K.pS=K.pS||K.nextVideo!==K.D;K.nextVideo&&!K.nextVideo.index.isLoaded()&&(K.KS=-1);x(Q,D,K.nextVideo);xp(Q,Q.audioTrack,Q.B.U)};
x0=function(Q,W){Q.v5=W;Q.policy.KS||(Q.logger.debug("Suspended."),Q.isSuspended=!0,Q.policy.mp&&(Q.nE.stop(),Q.Vj.stop(),Q.Kn.stop()),Q.policy.eK&&Q.s3.stop())};
c7=function(Q,W,x,D){Q.policy.L&&Q.Gm(!1,"rollback");if(Q.jZ.isManifestless){var K=Bn(Q.audioTrack,D,x,W),l=Bn(Q.videoTrack,D,x,W);Q.policy.kX||(l&&pn(Q.jZ,D,!0),K&&pn(Q.jZ,D,!1));Q.policy.Cn&&(l&&(Q.videoTrack.uj=[]),K&&(Q.audioTrack.uj=[]));Q.qj("sdai",{rollbk2_seg:D,rbt:x.toFixed(3),lt:W.toFixed(3),a:K,v:l});(K||l)&&Q.policy.L&&Tt(Q)}};
s4s=function(Q){Q.logger.debug("Rebuffering.");Q.SM=!0;if(Q.policy.tf&&Q.r7){var W,x,D,K;Q.qj("lr_rb",{c:Q.getCurrentTime(),s:Q.isSeeking(),ab:RU(Q.r7.B.dP()),ala:(W=ht(Q.audioTrack))==null?void 0:W.Zb(),alr:(x=Q.audioTrack.U)==null?void 0:x.Zb(),vb:RU(Q.r7.U.dP()),vla:(D=ht(Q.videoTrack))==null?void 0:D.Zb(),vlr:(K=Q.videoTrack.U)==null?void 0:K.Zb()})}Q.xf.HO()!==0&&Q.qj("sps_rebuffer",{c:Q.getCurrentTime()})};
zj5=function(Q){Q.policy.fn=!1;try{Q.Hw()}catch(W){g.ql(W)}};
kr5=function(Q){return Q.policy.B&&Q.policy.U&&(!nS()&&Q.policy.Br||Q.policy.ZR)};
u6a=function(Q,W,x,D){x=x===void 0?!1:x;D=D===void 0?!1:D;Q.policy.KS&&(Q.logger.debug("disable updateMetadataWithoutMediaSource"),Q.policy.LS&&Q.qj("loader",{setsmb:0}),Q.kS(),Q.policy.KS=!1);Q.logger.debug("attaching media source");XXD(Q,D);if(kr5(Q))Q.qj("ssap",{delaysb:1}),Q.r7=W;else{if(!Ow(W)){var K=TA(Q.videoTrack);K=K?K.info.B:Q.videoTrack.B;var l=TA(Q.audioTrack);l=l?l.info.B:Q.audioTrack.B;Q.policy.U&&Q.qj("ssap",{initsb:1,v:K.info.id,vf:K.info.CS,a:l.info.id,af:l.info.CS});AIO(W,K.info,
l.info,Q.policy.Ke)}oNz(Q,W,x,D);try{Q.KZ()}catch(M){g.ql(M)}}};
oNz=function(Q,W,x,D){x=x===void 0?!1:x;D=D===void 0?!1:D;pG(Q.videoTrack,W.U||null,D);pG(Q.audioTrack,W.B||null,D);Q.r7=W;Q.r7.N=!0;x||Q.resume();W.B.xJ(Q.eZ,Q);W.U.xJ(Q.eZ,Q)};
XXD=function(Q,W){W=W===void 0?!1:W;Q.r7&&Q.r7.B&&Q.r7.U&&(Q.r7.B.MP(Q.eZ,Q),Q.r7.U.MP(Q.eZ,Q));pG(Q.audioTrack,null,W);pG(Q.videoTrack,null,W);Q.r7&&(Q.r7.N=!1);Q.r7=null};
Y_4=function(Q){Q.r7&&Q.r7.C2()&&(Q.MI(),Q.policy.fJ&&Q.handleError("fmt.unplayable",{unexpected:1},1))};
V4z=function(Q,W){if(!Q.d7())if(Q.policy.B){if(!VCQ(Q.U,W)){var x=Q.U.U;nhn(Q.U,W);var D=!1;D=W.isLocked()&&W.reason==="m"&&PAO(Q.U,W.B);var K=Q.policy.lF&&W.reason==="l";x=x.B>W.B&&W.reason==="b";D||K||x?(Q.xf.Sy({reattachOnConstraint:D?"u":K?"drm":"perf",lo:W.U,up:W.B}),Q.policy.im||(Q.U.B.U=!1)):(Q.policy.im&&(Q.U.B.U=!1),Tt(Q))}}else if(!ULQ(Q.B,W)&&Q.videoTrack){Q.logger.debug(function(){return"Setting constraint: r="+W.reason+" u="+W.B});
x=Q.B.B;nNQ(Q,BRz(Q.B,W));WG(Q);D=W.isLocked()&&W.reason==="m"&&Q.B.pS;K=Q.policy.lF&&W.reason==="l"&&cn(Q.videoTrack);x=x.B>W.B&&W.reason==="b";var l=Q.B.O3&&!nS();D||K||x||l?Q.xf.Sy({reattachOnConstraint:D?"u":K?"drm":l?"codec":"perf"}):Tt(Q)}};
PG2=function(Q,W,x){if((!Q.r7||LS(Q.r7)&&!Q.policy.F$)&&!Q.M_.isSeeking()&&(Q.policy.B||cn(W)&&W.B.Fs()&&Q.B.uj)){var D=Q.getCurrentTime()+HJ5(Q.T,W,x);Q.logger.debug(function(){return"Clearing back to "+D.toFixed(3)});
$G5(W,D)}};
nNQ=function(Q,W){W&&(Q.logger.debug(function(){return"Logging new format: "+je(W.video.info)}),vNs(Q.xf,new ZW(W.video,W.reason)));
if(Q.B.s3){var x=NR5(Q.B,"a");Q.xf.wh(new ZW(x.audio,x.reason))}};
Tt=function(Q){g.E3(Q.Kn)};
ST4=function(Q){Q.policy.yA&&Q.policy.pN&&Math.min(BrD(Q.videoTrack),BrD(Q.audioTrack))*1E3>Q.policy.ZY?g.E3(Q.Vj):Q.KZ()};
CGh=function(Q,W){var x=(0,g.a8)()-W,D=qY(Q.audioTrack,!0)*1E3,K=qY(Q.videoTrack,!0)*1E3;Q.logger.debug(function(){return"Appends paused for "+x});
if(Q.policy.D&&(Q.qj("apdpe",{dur:x.toFixed(),abuf:D.toFixed(),vbuf:K.toFixed()}),LG(Q.policy))){var l=UG(Q.T);Q.qj("sdps",{ct:W,ah:D.toFixed(),vh:K.toFixed(),mr:qd(Q.T,Q.SM,l),bw:l.toFixed(),js:Q.isSeeking(),re:+Q.SM,ps:(Q.policy.JH||"").toString(),rn:(Q.policy.ES||"").toString()})}};
Jfh=function(Q){if(Q.policy.U&&ek(Q.videoTrack)&&ek(Q.audioTrack))return"ssap";if(yaF(Q.videoTrack))return Q.logger.debug("Pausing appends for server-selectable format"),"ssf";if(Q.policy.s3&&fG(Q.videoTrack)&&fG(Q.audioTrack))return"updateEnd";if(NY(Q.audioTrack)||NY(Q.videoTrack)&&Q.videoTrack.B.info.CS!=="f")return"";if(Q.M_.isSeeking()){var W=Q.T;var x=Q.videoTrack;var D=Q.audioTrack;if(W.policy.B){var K=W.policy.h4;LG(W.policy)&&(K=qd(W,!1,UG(W)));W=K;x=qY(D,!0)>=W&&qY(x,!0)>=W}else x.D.length||
D.D.length?(K=x.B.info.a5+D.B.info.a5,K=10*(1-UG(W)/K),W=Math.max(K,W.policy.h4),x=qY(D,!0)>=W&&qY(x,!0)>=W):x=!0;if(!x)return"abr";x=Q.videoTrack;if(x.D.length>0&&x.N.U.length===1&&bnQ(x.N).info.X<x.s3)return"seek"}if(Q.policy.L&&Znz(Q.videoTrack,Q.N)&&Znz(Q.audioTrack,Q.N))return"ssdai";x=!Q.policy.A4||Q.getCurrentTime()<10;Q.policy.B||(x=x||Q.videoTrack.B.info.video.B>360);D=LG(Q.policy)&&Q.policy.Ep;if(!Q.SM||!D&&x)return"";x=Q.policy.A4;LG(Q.policy)&&(x=qd(Q.T,Q.SM,UG(Q.T)));x=mG5(Q.videoTrack,
Q.getCurrentTime(),x)||mG5(Q.audioTrack,Q.getCurrentTime(),x);return LG(Q.policy)?x?"mbnm":"":(Q.videoTrack.D.length>0||Q.audioTrack.D.length>0||FI(Q.L,Q.videoTrack,Q.audioTrack)||FI(Q.L,Q.audioTrack,Q.videoTrack))&&x?"nord":""};
pX4=function(Q){if(Q.G){var W=Q.G.KZ(Q.audioTrack,zl(Q.r7.U.dP()));W&&Q.xf.seekTo(W,{IK:!0,N7:"pollSubsegmentReadahead",MW:!0})}};
HQl=function(Q,W,x){if(Q.policy.s3&&fG(W))return!1;if(x.JL())return!0;if(!x.qE())return!1;var D=TA(W);if(!D||D.info.type===6)return!1;var K=Q.policy.Mp;if(K&&!D.info.N){var l=D.info.kD-Q.getCurrentTime();if(D.info.X<l*K)return!1}var M;if(Q.policy.Sz||((M=Q.N)==null?0:pM2(M,W,D.info.E3)))Q.LS=0;else return Q.M_.isSeeking()&&Tt(Q),Q.LS=Q.LS||(0,g.a8)(),!1;if(!tY(Q,W,x,D.info))return!1;if(Q.jZ.U&&D.info.U===0){if(K=hjs(W,x,D))l=ht(W),Q.qj("initchg",{it:D.info.B.info.id,sr:!!l&&l.B===D.info.B,ty:D.info.type,
seg:D.info.E3});l=g.t7(D.info.B.info);Q.policy.IU&&l&&!K&&HS1(D)}l=Q.G&&!!Q.G.N&&W.B.info.audio;K=Q.jZ.isManifestless||D.L;if(!(Q.jZ.U&&D.info.U!==0||K&&!l)&&aMn(Q,W,x,D))return!0;if(l)return!1;l=eV(Q,W);l=Q.getCurrentTime()+l;if(D.info.kD>l)return Q.policy.B&&Gr5(Q,W),Q.policy.s7&&ZJz(W.N,l,!1),!1;dJn(Q,W);var w;Q.policy.J2&&x===((w=Q.r7)==null?void 0:w.B)&&Q.I5&&(x.Q9()===0?(Q.I5=!1,Q.policy.J2=!1):Q.Pt=x.Q9());if(!iQQ(Q,x,D,W))return!1;Q.policy.s3&&D.info.lf()?(Q.xf.C().jk()&&Q.qj("eosl",{ls:D.info.Zb()}),
D.isLocked=!0):(W.OJ(D),mLQ(Q.B,D.info),Q.logger.debug(function(){return"Appended "+D.info.Zb()+", buffered: "+RU(x.dP())}));
K&&Afa(Q,D.info.B.j8);return!0};
Gr5=function(Q,W){W===Q.videoTrack?Q.X3=Q.X3||(0,g.a8)():Q.fS=Q.fS||(0,g.a8)()};
dJn=function(Q,W){W===Q.videoTrack?Q.X3=0:Q.fS=0};
iQQ=function(Q,W,x,D){var K=Q.policy.tf?(0,g.a8)():0,l=x.L&&x.info.B.B||void 0,M=x.B;x.L&&(M=UJz(Q,x,M)||M);var w=M.Nq();M=Q.policy.tf?(0,g.a8)():0;W=q_Q(Q,W,w,x.info,l);(D=D.T)!=null&&(l=x.info,K=M-K,M=(0,g.a8)()-M,!D.U||xNs(D.U,l)&&D.U.E3===l.E3||D.flush(),D.N+=K,D.D+=M,K=1,!D.U&&l.U&&(K=2),lm(D,K,W),M=Math.ceil(l.U/1024),K===2&&D.B.add(M),D.B.add(Math.ceil((l.U+l.D)/1024)-M),D.U=l);Q.KS=0;if(W===0)return Q.g7&&(Q.logger.debug("Retry succeed, back to normal append logic."),Q.g7=!1,Q.tf=!1),Q.SZ=
0,!0;if(W===2||W===5)return BGO(Q,"checked",W,x.info),!1;if(W===1){if(!Q.g7)return Q.logger.debug("QuotaExceeded, retrying."),Q.g7=!0,!1;if(!Q.tf)return Q.tf=!0,Q.xf.seekTo(Q.getCurrentTime(),{N7:"quotaExceeded",MW:!0}),!1;x.info.OQ()?(K=Q.policy,K.g7=Math.floor(K.g7*.8),K.F3=Math.floor(K.F3*.8)):(K=Q.policy,K.Vj=Math.floor(K.Vj*.8),K.F3=Math.floor(K.F3*.8));Q.policy.B?r6(Q.U.B,x.info.B,!1):Wn(Q.B,x.info.B)}Q.xf.Sy({reattachOnAppend:W});return!1};
UJz=function(Q,W,x){var D;if(D=Q.policy.Wg&&Q.r7&&!Q.r7.S&&!Q.xf.Yb())W=W.info.B.info,D=W.i6()&&L3(W)&&W.video&&W.video.width<3840&&W.video.width>W.video.height;if(D&&(Q.r7.S=!0,qq('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return x=wB2(x),Q.policy.D&&Q.qj("sp4k",{s:!!x}),x};
BGO=function(Q,W,x,D){var K="fmt.unplayable",l=1;x===5||x===3?(K="fmt.unparseable",Q.policy.B?!D.B.info.video||TO(Q.U.B).size>0||r6(Q.U.B,D.B,!1):!D.B.info.video||TO(Q.B.L).size>0||Wn(Q.B,D.B)):x===2&&(Q.SZ<15?(Q.SZ++,K="html5.invalidstate",l=0):K="fmt.unplayable");D=mZ(D);var M;D.mrs=(M=Q.r7)==null?void 0:Ew(M);D.origin=W;D.reason=x;Q.handleError(K,D,l)};
hd5=function(Q,W,x,D,K){var l=Q.jZ;var M=Q.policy.B,w=!1,S=-1,b;for(b in l.B){var z=KS(l.B[b].info.mimeType)||l.B[b].info.OQ();if(D===z)if(z=l.B[b].index,z.gY(W.E3)){w=z;var k=W,X=w.Xp(k.E3);X&&X.startTime!==k.startTime?(w.segments=[],w.GX(k),w=!0):w=!1;w?S=W.E3:!W.pending&&M&&(k=z.getDuration(W.E3),k!==W.duration&&(l.publish("clienttemp","mfldurUpdate",{itag:l.B[b].info.itag,seg:W.E3,od:k,nd:W.duration},!1),z.GX(W),w=!0))}else z.GX(W),w=!0}S>=0&&(M={},l.publish("clienttemp","resetMflIndex",(M[D?
"v":"a"]=S,M),!1));l=w;OJQ(Q.M_,W,D,l);Q.N.aM(W,x,D,K);if(Q.policy.gH&&x){var u;(u=Q.Cn)!=null&&u.D.set(W.E3,x)}W.E3===Q.jZ.bG&&l&&vB(Q.jZ)&&W.startTime>vB(Q.jZ)&&(Q.jZ.X3=W.startTime+(isNaN(Q.timestampOffset)?0:Q.timestampOffset),Q.M_.isSeeking()&&Q.M_.B<Q.jZ.Jn()&&Q.M_.seek(Q.jZ.Jn(),{}))};
tY=function(Q,W,x,D){var K=ht(W);!K||K.N||$m(K,D)||(x.abort(),(W=W.T)!=null&&(lm(W,4),W.flush()));if(!x.S3()||nS())try{if(Q.policy.Ud){if(x.IV(D.B.info.containerType,D.B.info.CS)){if(Q.policy.VB&&x.X1())return!1;Q.qj("ssap",{chgtp:D.B.info.containerType,cf:D.B.info.CS,oldtp:x.S3(),oldcf:x.aD()});x.zJ(D.B.info.containerType,D.B.info.CS,D.B.info.mimeType)}}else x.YA(D.B.info.containerType,D.B.info.mimeType)}catch(l){return x=l,g.Bp(x),Q.qj("ctexp",{name:x.name,msg:x.message}),!1}else D.B.info.containerType!==
x.S3()&&Q.qj("ctu",{ct:nS(),prev_c:x.S3(),curr_c:D.B.info.containerType});W=D.B.N;Q.policy.mD&&W&&(D=0+W.duration,W=-W.B,0===x.BC()&&D===x.CO()||x.EA(0,D),W!==x.aW()&&(x.PL(W),vn&&GF1(Q.audioTrack.Fj(),x.YB())));return!0};
aMn=function(Q,W,x,D){D.info.B.Fs();var K=D.info.B.B;if(!K||!x.qE()||x.Xm()===K)return!1;var l=K,M=x.Tv();if(Q.policy.t3&&M&&x.isView()&&g.t7(D.info.B.info)){var w=new DataView(K.buffer,K.byteOffset,K.byteLength);(M=ICD(w,M))?l=new Uint8Array(M.buffer,M.byteOffset,M.byteLength):Q.qj("fenc",{})}Q.policy.Wg&&(M=UJz(Q,D,new ul([l])))&&(l=M.Nq());var S;(M=D.info.B.E7(0,D.info.clipId))&&(S=M.Af[0]);if(D===Q.Y6){if(Q.KS+=1,Q.xf.getVideoData().j("html5_shorts_gapless_restart_on_init_seg_retries")&&Q.KS>
5)return Q.KS=0,Q.xf.Sy({initSegStuck:1,as:D.info.Zb()}),!0}else Q.KS=0,Q.Y6=D;Q.policy.uR&&(x.abort(),(M=W.T)!=null&&(lm(M,4),M.flush()));K=q_Q(Q,x,l,S,K);var b;(b=W.T)==null||rZD(b,K,S);if(K!==0)return $Jv(Q,K,D),!0;D.info.OQ()?XMv(Q.timing):omO(Q.timing);Q.logger.debug(function(){return"Appended init for "+D.info.B.info.id});
Afa(Q,D.info.B.j8);return x.X1()};
hjs=function(Q,W,x){if(W.Xm()==null){Q=ht(Q);if(!(W=!Q||Q.B!==x.info.B)){a:if(Q=Q.G,x=x.info.G,Q.length!==x.length)x=!1;else{for(W=0;W<Q.length;W++)if(!g.sg(Q[W],x[W])){x=!1;break a}x=!0}W=!x}return W}Q=W.Xm();x.info.B.il()&&lO(x);x=x.info.B.B;return Q!==x&&!g.sg(Q,x)};
q_Q=function(Q,W,x,D,K){var l=0;if(Q.policy.U&&D&&D.clipId&&Q.nS){var M;l=(((M=Q.nS)==null?void 0:$2(M,D.clipId))||0)/1E3}try{Q.policy.U&&W.aW()!==l&&W.PL(l);var w,S=W===((w=Q.r7)==null?void 0:w.B)?Q.audioTrack:Q.videoTrack;if(Q.policy.s3&&(D==null?0:D.lf())){if((D==null?void 0:D.S)>1)return 6;S.X3=new g.O3(function(){var z=TA(S);Q.d7()||z==null||!z.isLocked?Q.xf.C().jk()&&Q.qj("eosl",{delayA:z==null?void 0:z.info.Zb()}):IMQ(S)?(Q.xf.C().jk()&&Q.qj("eosl",{dunlock:z==null?void 0:z.info.Zb()}),mJh(Q,
S===Q.audioTrack)):(Q.qj("nue",{ls:z.info.Zb()}),z.info.S+=1,Q.r7&&Q.Hw())},1E4,Q);
Q.xf.C().jk()&&Q.qj("eosl",{delayS:D.Zb()});S.X3.start()}if(Q.policy.Tm&&(D==null?0:D.lf())){var b;if((b=S.fS)==null?0:b.isActive())g.FW(S.fS),Q.qj("sbac",{as:D.Zb()});S.fS=new g.O3(function(){Q.qj("sbum5s",{as:D.Zb()})},5E3,Q);
S.fS.start()}Q.policy.KU&&(D==null?void 0:D.B)instanceof ff&&D.lf()&&Q.qj("poseos",{itag:D.B.info.itag,seg:D.E3,lseg:D.B.index.oQ(),es:D.B.index.D});W.appendBuffer(x,D,K)}catch(z){if(z instanceof DOMException){if(z.code===11)return 2;if(z.code===12)return 5;if(z.code===22||z.message.indexOf("Not enough storage")===0)return W=Object.assign({name:"QuotaExceededError",buffered:RU(W.dP()).replace(/,/g,"_"),vheap:Hn(Q.videoTrack),aheap:Hn(Q.audioTrack),message:g.P1(z.message,3),track:Q.r7?W===Q.r7.U?"v":
"a":"u"},j45()),Q.handleError("player.exception",W),1;g.ql(z)}return 4}return Q.r7.C2()?3:0};
rz=function(Q,W,x){Q.xf.seekTo(W,x)};
Afa=function(Q,W){W&&Q.xf.vc(new za(W.key,W.type))};
um=function(Q,W){Q.xf.Sb(W)};
eV=function(Q,W){if(Q.g7&&!Q.SM)return 3;if(Q.isSuspended)return 1;var x;if((x=Q.r7)==null?0:x.r7&&x.r7.streaming===!1)return 4;x=(W.B.info.audio?Q.policy.Vj:Q.policy.g7)/(W.a5*Q.policy.YJ);if(Q.policy.rX>0&&Q.r7&&LS(Q.r7)&&(W=W.B.info.video?Q.r7.U:Q.r7.B)&&!W.X1()){W=W.dP();var D=wg(W,Q.getCurrentTime());D>=0&&(W=Q.getCurrentTime()-W.start(D),x+=Math.max(0,Math.min(W-Q.policy.rX,Q.policy.IE)))}Q.policy.F3>0&&(x=Math.min(x,Q.policy.F3));return x};
qN5=function(Q,W){return(eV(Q,W)+Q.policy.Cl)*W.a5};
cf1=function(Q){Q.O3&&!Q.isSuspended&&JC(Q.schedule)&&(NGl(Q,Q.O3),Q.O3="")};
NGl=function(Q,W){GA(W,"cms",function(x){Q.policy.D&&Q.qj("pathprobe",x)},function(x){Q.xf.handleError(x)})};
gN4=function(Q,W){if(Q.r7&&Q.r7.N&&!Q.r7.C2()&&(W.VS=qY(Q.videoTrack),W.U=qY(Q.audioTrack),Q.policy.D)){var x=Hn(Q.videoTrack),D=Hn(Q.audioTrack),K=RU(Q.r7.U.dP(),"_",5),l=RU(Q.r7.B.dP(),"_",5);Object.assign(W.B,{lvq:x,laq:D,lvb:K,lab:l})}W.bandwidthEstimate=Ac(Q.T);var M;(M=Q.audioTrack.T)==null||M.flush();var w;(w=Q.videoTrack.T)==null||w.flush();Q.logger.debug(function(){return a0(W.B)})};
yfs=function(Q,W){Q.S=W;Q.N&&(Q.N.X=W);Q.S.IP(Q.videoTrack.B.info.i6());Q.L.U=Q.S;Q.policy.L&&(Q.D.N=Q.S)};
ejl=function(Q,W){if(Q.r7&&Q.r7.U){if(Q.policy.CC){var x=ran(Q.audioTrack);if(x&&x.Mx()){var D=Q.xf;D.yl&&(D.yl.B=x,D.oW(D.yl.videoId).kT(D.yl))}}Q.policy.PU&&(x=ran(Q.videoTrack))&&x.OQ()&&(D=Q.xf,D.WH&&(D.WH.B=x,D.oW(D.WH.videoId).jO(D.WH)));W-=isNaN(Q.timestampOffset)?0:Q.timestampOffset;Q.getCurrentTime()!==W&&Q.resume();Q.M_.isSeeking()&&Q.r7&&!Q.r7.C2()&&(x=Q.getCurrentTime()<=W&&W<Q.getCurrentTime()+10,D=Se(Q.r7.U.dP(),Q.getCurrentTime()+DP),x&&D&&(Q.M_.L=!1));Q.M_.isSeeking()||Q.policy.fS||
(Q.currentTime=W);if(Q.policy.gH&&(x=Q.Cn)!=null){D=Q.xf.getCurrentTime();var K=Q.qj.bind(Q),l=x.N.GC(W),M=x.N.getStartTime(l);if(x.U||l>=0&&l<Number.POSITIVE_INFINITY&&l!==x.B){x.U=!1;var w=x.D.get(l);((w==null?void 0:w.D.length)||0)>1?w.U[0]<W-M?K("ssevt",{ssvc:"start",cpn:w.B[1],vid:w.ids[1],ct:D.toFixed(3),mt:W.toFixed(3),cmt:(M+w.U[0]).toFixed(3),seg:l,lastSeg:x.B}):x.U=!0:(w==null?void 0:w.D.length)===1&&(w==null?void 0:w.D[0])===0&&K("ssevt",{ssvc:"start",cpn:w.B[0],vid:w.ids[0],ct:D.toFixed(3),
mt:W.toFixed(3),cmt:M.toFixed(3),seg:l,lastSeg:x.B});l!==x.B&&(x.D.delete(x.B),x.B=l)}}g.E3(Q.nE)}};
fM5=function(Q,W){var x=im(Q.videoTrack).find(function(D){return D.startTime>=W&&M4a(Q,D.startTime,!1)});
return x&&x.startTime<W+x.duration*1.5?x.startTime+.1:0};
M4a=function(Q,W,x){if(!(Q.videoTrack.B.Fs()&&Q.audioTrack.B.Fs()&&Q.r7&&Q.r7.U&&Q.r7.B))return!1;if(x&&Q.jZ.isManifestless&&(Q.videoTrack.X===-1||Q.audioTrack.X===-1))return!0;var D=y2(Q.videoTrack,W,x);if(isNaN(D))return!1;Q=y2(Q.audioTrack,Q.policy.vZ?W:D,x);return isNaN(Q)?!1:!0};
Dl=function(Q){Q.kS();Q.M_.isSeeking()&&Q.logger.debug("seeking cancelled by seek-to-head");Q.G&&xJh(Q.G,Q.videoTrack.B);Tt(Q);return fQD(Q.M_)};
xp=function(Q,W,x,D){(D===void 0?0:D)&&!W.g7&&(nS()||(D=W.Ln,kr5(Q)||!D||D.bb(x.info)||(Q.qj("ssap",{rstonsrvfmt:x.info.mimeType}),Q.xf.QI())),W.g7=!0);W.B!==x&&(Q.logger.debug(function(){return"Setting target itag: "+x.info.id+" (was "+W.B.info.id+")"}),W.B=x)};
IMQ=function(Q){var W,x=(W=TA(Q))==null?void 0:W.info;return!x||yQ(Q,Math.min(x.kD+DP,x.Nx))};
ZQs=function(Q,W){var x;if((x=TA(W))!=null&&x.isLocked&&IMQ(W)){if(Q.xf.C().jk()){var D;Q.qj("eosl",{munlock:(D=TA(W))==null?void 0:D.info.Zb()})}mJh(Q,W===Q.audioTrack)}};
mJh=function(Q,W){if(Q.policy.s3&&Q.r7){var x,D,K=W?(x=Q.r7)==null?void 0:x.B:(D=Q.r7)==null?void 0:D.U;x=W?Q.audioTrack:Q.videoTrack;W=TA(x);if(W==null?0:W.isLocked){Q.xf.C().jk()&&Q.qj("eosl",{unlock:W.info.Zb()});var l;(l=x.X3)==null||l.stop();W.isLocked=!1;x.OJ(W);mLQ(Q.B,W.info);K=K==null?void 0:K.JY();(K==null?void 0:K.Zb())!==W.info.Zb()&&Q.qj("oue",{bls:K==null?void 0:K.Zb(),tls:W.info.Zb()})}}};
LWQ=function(Q,W){Q.timestampOffset!==W&&(Q.timestampOffset=W,Q.policy.kX&&Ja(Q.jZ),Q.logger.debug(function(){return"Timestamps will be made relative to "+Q.timestampOffset}),Q.N.S=Q.timestampOffset,Q.xf.NG(Q.timestampOffset),Q.jZ.isManifestless&&(Q.jZ.timestampOffset=Q.timestampOffset),Q.videoTrack.PL(Q.timestampOffset),Q.audioTrack.PL(Q.timestampOffset))};
rf2=function(Q){Q.policy.Cn&&(Q.audioTrack.uj=[],Q.videoTrack.uj=[])};
jOv=function(Q){var W=Q.Jv().filter(function(D){return D.namespace==="ad"});
W=g.V(W);for(var x=W.next();!x.done;x=W.next())if(x=x.value,x.start/1E3>Q.getCurrentTime())return x.start/1E3;return Infinity};
TGD=function(Q){var W=ht(Q.videoTrack),x=ht(Q.audioTrack);return W&&!LBn(Q.videoTrack)?W.startTime:x&&!LBn(Q.audioTrack)?x.startTime:NaN};
gSl=function(Q){if(Q.xf.getVideoData().isLivePlayback)return!1;var W=Q.xf.DG();if(!W)return!1;W=W.getDuration();return cQD(Q,W)};
cQD=function(Q,W){if(!Q.r7||!Q.r7.B||!Q.r7.U)return!1;var x=Q.getCurrentTime(),D=Q.r7.B.dP();Q=Q.r7.U.dP();D=D?b9(D,x):x;x=Q?b9(Q,x):x;x=Math.min(D,x);return isNaN(x)?!1:x>=W-.01};
$Jv=function(Q,W,x){Q.policy.WU&&KQ(Q.xf.getVideoData())?(Q.xf.jj()||BGO(Q,"sepInit",W,x.info),OQ1(Q.xf,"sie")):BGO(Q,"sepInit",W,x.info)};
bO1=function(Q){return Q.xf.HO()<Q.Sk};
g.K9=function(Q){this.Ex=Q};
lV=function(){g.Rd.apply(this,arguments)};
j5=function(Q,W,x,D){lV.call(this);var K=this;this.D=-1;this.B={};this.N=new g.O3(this.L,0,this);g.y(this,this.N);this.U=new g.O3(function(){K.d7()||(K.N.start(Math.random()*x),K.U.start(W))},Q,this);
g.y(this,this.U);D.subscribe("fairplay_next_need_key_info",this.X,this)};
EN2=function(Q){if(!(Q.length<=28))for(var W=(0,g.Ck)([60,0,75,0,73,0,68,0,62,0]),x=28;x<Q.length;){a:if(Q.length-x<W.length)var D=!1;else{for(D=0;D<W.length;++D)if(Q[x+D]!==W[D]){D=!1;break a}D=!0}if(D){x+=W.length;if(Q.length<=x+48)break;W=new Uint8Array(24);for(D=0;D<24;++D)W[D]=Q[x+D*2];Q=Jy(W);Q=v1(Q);if(!Q)break;x=Q[0];Q[0]=Q[3];Q[3]=x;x=Q[1];Q[1]=Q[2];Q[2]=x;x=Q[4];Q[4]=Q[5];Q[5]=x;x=Q[6];Q[6]=Q[7];Q[7]=x;return Q}x++}};
MH=function(Q,W,x){lV.call(this);var D=this;this.D=Q;this.B=[];this.by={LDt:function(){return D.B.length}};
this.N=x.ij("html5_ignore_widevine_key_rotation_license_requests");this.U=new g.O3(function(){D.publish("log_qoe",{wvagt:"timer",reqlen:D.B?D.B.length:-1});if(D.B){if(D.B.length>0){var K=D.B.shift();FW5(D,K.info)}D.B.length>0&&(K=D.B[0].time-(0,g.a8)(),D.U.start(Math.max(0,K)))}},0);
g.y(this,this.U);W.subscribe("widevine_set_need_key_info",this.L,this)};
FW5=function(Q,W){a:{var x=W.cryptoPeriodIndex;if(isNaN(x)&&Q.D.size>0)x=!0;else{for(var D=g.V(Q.D.values()),K=D.next();!K.done;K=D.next())if(K.value.cryptoPeriodIndex===x){x=!0;break a}x=!1}}Q.publish("log_qoe",{wvagt:"reqnews",canskip:x});x||Q.publish("rotated_need_key_info_ready",W)};
t4O=function(){var Q={};var W=Q.url;var x=Q.interval;Q=Q.retries;this.url=W;this.interval=x;this.retries=Q};
QN1=function(Q,W){this.statusCode=Q;this.message=W;this.U=this.heartbeatParams=this.errorMessage=null;this.B={};this.nextFairplayKeyId=null};
Wh5=function(Q,W,x){x=x===void 0?"":x;g.N.call(this);this.message=Q;this.requestNumber=W;this.rP=x;this.onError=this.onSuccess=null;this.B=new g.Cy(5E3,2E4,.2)};
xfa=function(Q,W,x){Q.onSuccess=W;Q.onError=x};
KhQ=function(Q,W,x,D){var K={timeout:3E4,onSuccess:function(l){if(!Q.d7()){Nc("drm_net_r",void 0,Q.rP);var M=l.status==="LICENSE_STATUS_OK"?0:9999,w=null;if(l.license)try{w=v1(l.license)}catch(Y){g.ql(Y)}if(M!==0||w){w=new QN1(M,w);M!==0&&l.reason&&(w.errorMessage=l.reason);if(l.authorizedFormats){M={};for(var S=[],b={},z=g.V(l.authorizedFormats),k=z.next();!k.done;k=z.next())if(k=k.value,k.trackType&&k.keyId){var X=Dfa[k.trackType];if(X){X==="HD"&&l.isHd720&&(X="HD720");k.isHdr&&(X+="HDR");M[X]||
(S.push(X),M[X]=!0);var u=null;try{u=v1(k.keyId)}catch(Y){g.ql(Y)}u&&(b[g.Vn(u,4)]=X)}}w.U=S;w.B=b}l.nextFairplayKeyId&&(w.nextFairplayKeyId=l.nextFairplayKeyId);l.sabrLicenseConstraint&&(w.sabrLicenseConstraint=v1(l.sabrLicenseConstraint));l=w}else l=null;if(l)Q.onSuccess(l,Q.requestNumber);else Q.onError(Q,"drm.net","t.p;p.i")}},
onError:function(l){if(!Q.d7())if(l&&l.error)l=l.error,Q.onError(Q,"drm.net.badstatus","t.r;p.i;c."+l.code+";s."+l.status,l.code);else Q.onError(Q,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){Q.onError(Q,"drm.net","rt.req."+Q.requestNumber)}};
D&&(K.QP="Bearer "+D);g.Qc(x,"player/get_drm_license",W,K)};
laa=function(Q,W,x,D){g.Rd.call(this);this.videoData=Q;this.bj=W;this.S=x;this.sessionId=D;this.L={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.uj=this.pS=!1;this.D=null;this.F3=[];this.N=[];this.G=!1;this.B={};this.status="";this.X=NaN;this.U=Q.L;this.cryptoPeriodIndex=x.cryptoPeriodIndex;Q={};Object.assign(Q,this.bj.B);Q.cpn=this.videoData.clientPlaybackNonce;this.videoData.pS&&(Q.vvt=this.videoData.pS,this.videoData.mdxEnvironment&&(Q.mdx_environment=this.videoData.mdxEnvironment));
this.bj.F3&&(Q.authuser=this.bj.F3);this.bj.pageId&&(Q.pageid=this.bj.pageId);isNaN(this.cryptoPeriodIndex)||(Q.cpi=this.cryptoPeriodIndex.toString());var K=(K=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Ae()))?K[1]:"";K==="ATV"&&(Q.cdt=K);this.L=Q;this.L.session_id=D;this.T=!0;this.U.flavor==="widevine"&&(this.L.hdr="1");this.U.flavor==="playready"&&(W=Number(Qv(W.experiments,"playready_first_play_expiration")),!isNaN(W)&&W>=0&&(this.L.mfpe=""+W),this.T=!1);W="";g.cB(this.U)?NG(this.U)?(D=x.U)&&(W="https://www.youtube.com/api/drm/fps?ek="+
I5Q(D)):(W=x.initData.subarray(4),W=new Uint16Array(W.buffer,W.byteOffset,W.byteLength/2),W=String.fromCharCode.apply(null,W).replace("skd://","https://")):W=this.U.U;this.baseUrl=W;this.fairplayKeyId=fr(this.baseUrl,"ek")||"";if(W=fr(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(W);this.F3=x.i6?[g.Vn(x.initData,4)]:x.D;R5(this,{sessioninit:x.cryptoPeriodIndex});this.status="in"};
wd5=function(Q,W){R5(Q,{createkeysession:1});Q.status="gr";Nc("drm_gk_s",void 0,Q.videoData.eZ);Q.url=jNF(Q);try{Q.D=W.createSession(Q.S,function(x){R5(Q,{m:x})})}catch(x){W="t.g";
x instanceof DOMException&&(W+=";c."+x.code);Q.publish("licenseerror","drm.unavailable",1,W,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}Q.D&&(M9h(Q.D,function(x,D){RtD(Q,x,D)},function(x,D,K){if(!Q.d7()){D=void 0;
var l=1;g.cB(Q.U)&&g.$h(Q.bj)&&Q.bj.j("html5_enable_safari_fairplay")&&K===1212433232&&(D="ERROR_HDCP",l=Q.bj.j("html5_safari_fairplay_ignore_hdcp")?0:l);Q.error("drm.keyerror",l,x,D)}},function(){Q.d7()||(R5(Q,{onkyadd:1}),Q.uj||(Q.publish("sessionready"),Q.uj=!0))},function(x){Q.Gz(x)}),g.y(Q,Q.D))};
jNF=function(Q){var W=Q.baseUrl;SPO(W)||Q.error("drm.net",2,"t.x");if(!fr(W,"fexp")){var x=["23898307","23914062","23916106","23883098"].filter(function(K){return Q.bj.experiments.experiments[K]});
x.length>0&&(Q.L.fexp=x.join())}x=g.V(Object.keys(Q.L));for(var D=x.next();!D.done;D=x.next())D=D.value,W=d9s(W,D,Q.L[D]);return W};
RtD=function(Q,W,x){if(!Q.d7())if(W){R5(Q,{onkmtyp:x});Q.status="km";switch(x){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":SXl(Q,W);return;default:Q.publish("ctmp","message_type",{t:x,l:W.byteLength})}Q.pS||(Nc("drm_gk_f",void 0,Q.videoData.eZ),Q.pS=!0,Q.publish("newsession",Q));if($K(Q.U)&&(W=bqn(W),!W))return;W=new Wh5(W,++Q.requestNumber,Q.videoData.eZ);xfa(W,function(D){sN5(Q,D)},function(D,K,l){if(!Q.d7()){var M=0;
D.B.U>=3&&(M=1,K="drm.net.retryexhausted");R5(Q,{onlcsrqerr:K,info:l});Q.error(K,M,l);Q.shouldRetry(dw(M),D)&&zt2(Q,D)}});
g.y(Q,W);k4Q(Q,W)}else Q.error("drm.unavailable",1,"km.empty")};
SXl=function(Q,W){R5(Q,{sdpvrq:1});Q.X=Date.now();if(Q.U.flavor!=="widevine")Q.error("drm.provision",1,"e.flavor;f."+Q.U.flavor+";l."+W.byteLength);else{var x={cpn:Q.videoData.clientPlaybackNonce};Object.assign(x,Q.bj.B);x=g.ya("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",x);W={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,
W)}),responseType:"arraybuffer"};g.iY(x,W,3,500).then(CJ(function(D){D=D.xhr;if(!Q.d7()){D=new Uint8Array(D.response);var K=String.fromCharCode.apply(null,D);try{var l=JSON.parse(K)}catch(M){}l&&l.signedResponse?(Q.publish("ctmp","drminfo",{provisioning:1}),l=(Date.now()-Q.X)/1E3,Q.X=NaN,Q.publish("ctmp","provs",{et:l.toFixed(3)}),Q.D&&Q.D.update(D)):(l=l&&l.error&&l.error.message,D="e.parse",l&&(D+=";m."+l),Q.error("drm.provision",1,D))}}),CJ(function(D){Q.d7()||Q.error("drm.provision",1,"e."+D.errorCode+
";c."+(D.xhr&&D.xhr.status))}))}};
wi=function(Q){var W;if(W=Q.T&&Q.D!=null)Q=Q.D,W=!(!Q.B||!Q.B.keyStatuses);return W};
k4Q=function(Q,W){Q.status="km";Nc("drm_net_s",void 0,Q.videoData.eZ);var x=new g.t0(Q.bj.W9),D={context:g.bN(x.config_||g.SG())};D.drmSystem=XdQ[Q.U.flavor];D.videoId=Q.videoData.videoId;D.cpn=Q.videoData.clientPlaybackNonce;D.sessionId=Q.sessionId;D.licenseRequest=g.Vn(W.message);D.drmParams=Q.videoData.drmParams;isNaN(Q.cryptoPeriodIndex)||(D.isKeyRotated=!0,D.cryptoPeriodIndex=Q.cryptoPeriodIndex);var K,l,M=!!((K=Q.videoData.U)==null?0:(l=K.video)==null?0:l.isHdr());D.drmVideoFeature=M?"DRM_VIDEO_FEATURE_PREFER_HDR":
"DRM_VIDEO_FEATURE_SDR";if(D.context&&D.context.client){if(K=Q.bj.B)D.context.client.deviceMake=K.cbrand,D.context.client.deviceModel=K.cmodel,D.context.client.browserName=K.cbr,D.context.client.browserVersion=K.cbrver,D.context.client.osName=K.cos,D.context.client.osVersion=K.cosver;D.context.user=D.context.user||{};D.context.request=D.context.request||{};Q.videoData.pS&&(D.context.user.credentialTransferTokens=[{token:Q.videoData.pS,scope:"VIDEO"}]);D.context.request.mdxEnvironment=Q.videoData.mdxEnvironment||
D.context.request.mdxEnvironment;Q.videoData.Kn&&(D.context.user.kidsParent={oauthToken:Q.videoData.Kn});g.cB(Q.U)&&(D.fairplayKeyId=g.Vn(mzh(Q.fairplayKeyId)));g.lb(Q.bj,g.ZM(Q.videoData)).then(function(w){KhQ(W,D,x,w);Q.status="rs"})}else Q.error("drm.net",2,"t.r;ic.0")};
sN5=function(Q,W){if(!Q.d7())if(R5(Q,{onlcsrsp:1}),Q.status="rr",W.statusCode!==0)Q.error("drm.auth",1,"t.f;c."+W.statusCode,W.errorMessage||void 0);else{Nc("drm_kr_s",void 0,Q.videoData.eZ);if(W.heartbeatParams&&W.heartbeatParams.url&&Q.videoData.j("outertube_streaming_data_always_use_staging_license_service")){var x=Q.U.U.match(/(.*)youtube.com/g);x&&(W.heartbeatParams.url=x[0]+W.heartbeatParams.url)}W.heartbeatParams&&Q.publish("newlicense",W.heartbeatParams);W.U&&(Q.N=W.U,Q.videoData.u0||Q.publish("newlicense",
new t4O),Q.videoData.u0=!0,Q.G=dM(Q.N,function(D){return D.includes("HDR")}));
W.B&&(Q.bj.j("html5_enable_vp9_fairplay")&&NG(Q.U)?(x=g.Vn(mzh(Q.fairplayKeyId),4),Q.B[x]={type:W.B[x],status:"unknown"}):Q.B=PZ(W.B,function(D){return{type:D,status:"unknown"}}));
mB(Q.U)&&(W.message=gis(g.Vn(W.message)));Q.D&&(R5(Q,{updtks:1}),Q.status="ku",Q.D.update(W.message).then(function(){Nc("drm_kr_f",void 0,Q.videoData.eZ);wi(Q)||(R5(Q,{ksApiUnsup:1}),Q.publish("keystatuseschange",Q))},function(D){D="msuf.req."+Q.requestNumber+";msg."+g.P1(D.message,3);
Q.error("drm.keyerror",1,D)}));
g.cB(Q.U)&&Q.publish("fairplay_next_need_key_info",Q.baseUrl,W.nextFairplayKeyId);Q.bj.j("html5_enable_vp9_fairplay")&&NG(Q.U)&&Q.publish("qualitychange",oWQ(Q.N));W.sabrLicenseConstraint&&Q.publish("sabrlicenseconstraint",W.sabrLicenseConstraint)}};
zt2=function(Q,W){var x=W.B.getValue();x=new g.O3(function(){k4Q(Q,W)},x);
g.y(Q,x);x.start();g.Jg(W.B);R5(Q,{rtyrq:1})};
uhD=function(Q,W){for(var x=[],D=g.V(Object.keys(Q.B)),K=D.next();!K.done;K=D.next())K=K.value,x.push(K+"_"+Q.B[K].type+"_"+Q.B[K].status);return x.join(W)};
YXO=function(Q){var W={};W[Q.status]=wi(Q)?uhD(Q,"."):Q.N.join(".");return W};
nWQ=function(Q,W){switch(Q){case "highres":case "hd2880":Q="UHD2";break;case "hd2160":case "hd1440":Q="UHD1";break;case "hd1080":case "hd720":Q="HD";break;case "large":case "medium":case "small":case "light":case "tiny":Q="SD";break;default:return""}W&&(Q+="HDR");return Q};
pn2=function(Q,W){for(var x in Q.B)if(Q.B[x].status==="usable"&&Q.B[x].type===W)return!0;return!1};
hoh=function(Q,W){for(var x in Q.B)if(Q.B[x].type===W)return Q.B[x].status};
R5=function(Q,W){var x=x===void 0?!1:x;a0(W);(x||Q.bj.jk())&&Q.publish("ctmp","drmlog",W)};
agQ=function(Q){var W=Q[0];Q[0]=Q[3];Q[3]=W;W=Q[1];Q[1]=Q[2];Q[2]=W;W=Q[4];Q[4]=Q[5];Q[5]=W;W=Q[6];Q[6]=Q[7];Q[7]=W};
oWQ=function(Q){return g.FH(Q,"UHD2")||g.FH(Q,"UHD2HDR")?"highres":g.FH(Q,"UHD1")||g.FH(Q,"UHD1HDR")?"hd2160":g.FH(Q,"HD")||g.FH(Q,"HDHDR")?"hd1080":g.FH(Q,"HD720")||g.FH(Q,"HD720HDR")?"hd720":"large"};
bqn=function(Q){for(var W="",x=0;x<Q.length;x+=2)W+=String.fromCharCode(Q[x]);Q=Tm(new DOMParser,$c(W),"text/xml");return Q?(Q=Q.querySelector("Challenge"))&&Q.childNodes&&Q.childNodes.length!==0?new Uint8Array((0,g.Ck)(zYv(Q.childNodes[0].nodeValue)).buffer):null:null};
S5=function(Q,W,x,D,K,l){l=l===void 0?!1:l;g.N.call(this);this.element=Q;this.S=W;this.initData=x;this.B=D;this.U=K;this.T=l;this.sessionId="";this.G=this.X=this.D=this.L=null;this.N=new g.I0(this);g.y(this,this.N);Gan(this)};
Gan=function(Q){Q.B?(Q.N.W(Q.B,"message",Q.S4),Q.N.W(Q.B,"keystatuseschange",Q.Gz),Q.B.closed&&Q.B.closed.then(CJ(function(){Q.onClosed()}),null)):Q.U&&(GT(Q.N,Q.U,["mskeymessage",
"webkitkeymessage"],Q.Oi),GT(Q.N,Q.U,["mskeyerror","webkitkeyerror"],Q.HB),GT(Q.N,Q.U,["mskeyadded","webkitkeyadded"],Q.Ik))};
M9h=function(Q,W,x,D,K){Q.L=W;Q.D=x;Q.X=D;Q.G=K};
dYO=function(Q,W,x){g.ql(x);Q.D&&(x instanceof DOMException&&(W+=";n."+x.name+";m."+x.message),Q.D(W))};
bV=function(Q,W,x,D){D=D===void 0?!1:D;g.N.call(this);this.element=Q;this.B=W;this.qj=x;this.G=D;this.X={};this.N=null;this.L=new g.I0(this);this.D=this.U=null;g.y(this,this.L)};
AtO=function(Q,W){W=iGF(W,Q.B.I5);W=Q.D.createSession("video/mp4",W);return new S5(null,null,null,null,W,Q.G)};
HGs=function(Q,W){for(var x=new Uint8Array(270),D=0;D<135;D++)x[D*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(D);Q=Q.D.createSession("video/mp4",W,x);return new S5(null,null,null,null,Q)};
UYD=function(Q,W){var x=Q.X[W.sessionId];!x&&Q.N&&(x=Q.N,Q.N=null,x.sessionId=W.sessionId,Q.X[W.sessionId]=x);return x};
iGF=function(Q,W){var x=Q.subarray(4);x=new Uint16Array(x.buffer,x.byteOffset,x.byteLength/2);x=String.fromCharCode.apply(null,x).match(/ek=([0-9a-f]+)/)[1];for(var D="",K=0;K<x.length;K+=2)D+=String.fromCharCode(parseInt(x.substring(K,K+2),16));x=D;D=new ArrayBuffer(x.length*2);K=new Uint16Array(D);for(var l=0;l<x.length;l++)K[l]=x.charCodeAt(l);x=new Uint8Array(D);D=0;l=new ArrayBuffer(Q.byteLength+4+x.byteLength+4+W.byteLength);K=new Uint8Array(l);l=new DataView(l);K.set(Q);D+=Q.byteLength;l.setUint32(D,
x.length,!0);D+=4;K.set(x,D);D+=x.length;l.setUint32(D,W.byteLength,!0);K.set(W,D+4);return K};
zz=function(){this.keys=[];this.values=[]};
$YF=function(Q,W,x){g.Rd.call(this);this.element=Q;this.videoData=W;this.bj=x;this.D=[];this.X3=2;this.g7=this.fS=!1;this.heartbeatParams=null;this.KS=this.T=!1;this.L=null;this.LS=!1;this.B=this.videoData.L;this.drmSessionId=this.videoData.drmSessionId||g.Nms();this.U=new Map;this.X=new zz;this.G=new zz;this.pS=new g.I0(this);this.F3=this.bj.j("html5_eme_ignore_teardown_errors");(Q=this.element)&&(Q.addKey||Q.webkitAddKey)||qG()||yY(x.experiments);this.bj.j("html5_enable_vp9_fairplay")&&NG(this.B)?
x=qJQ:(x=this.videoData.A4,x=this.B.flavor==="fairplay"||x?eQ:qJQ);this.S=x;this.N=new bV(this.element,this.B,this.Hf.bind(this),this.F3);g.y(this,this.N);BB(this.B)&&(this.uj=new bV(this.element,this.B,this.Hf.bind(this),this.F3),g.y(this,this.uj));g.y(this,this.pS);x=this.element;this.B.keySystemAccess?this.pS.W(x,"encrypted",this.v3f):GT(this.pS,x,BB(this.B)?["msneedkey"]:["needkey","webkitneedkey"],this.aX5);BIF(this);a:switch(x=this.B,Q=this.bj.experiments,W=this.U,x.flavor){case "fairplay":if(W=
/\sCobalt\/(\S+)\s/.exec(g.Ae())){Q=[];W=g.V(W[1].split("."));for(var D=W.next();!D.done;D=W.next())D=parseInt(D.value,10),D>=0&&Q.push(D);Q=parseFloat(Q.join("."))}else Q=NaN;Q>19.2999?(Q=x.s7,x=x.Kq,x>=Q&&(x=Q*.75),W=(Q-x)*.5,x=new j5(W,Q,Q-W-x,this)):x=null;break a;case "widevine":x=new MH(W,this,Q);break a;default:x=null}if(this.L=x)g.y(this,this.L),this.L.subscribe("rotated_need_key_info_ready",this.yP,this),this.L.subscribe("log_qoe",this.uF,this);yY(this.bj.experiments);this.uF({cks:this.B.getInfo()})};
BIF=function(Q){var W=Q.N.N$();W?W.then(CJ(function(){Ig5(Q)}),CJ(function(x){if(!Q.d7()){g.ql(x);
var D="t.a";x instanceof DOMException&&(D+=";n."+x.name+";m."+x.message);Q.publish("licenseerror","drm.unavailable",1,D,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(Q.uF({mdkrdy:1}),Q.T=!0);
Q.uj&&(W=Q.uj.N$())};
NIF=function(Q,W,x){Q.g7=!0;x=new za(W,x);Q.bj.j("html5_eme_loader_sync")&&(Q.X.get(W)||Q.X.set(W,x));mYl(Q,x)};
mYl=function(Q,W){if(!Q.d7()){Q.uF({onInitData:1});if(Q.bj.j("html5_eme_loader_sync")&&Q.videoData.D&&Q.videoData.D.B){var x=Q.G.get(W.initData);W=Q.X.get(W.initData);if(!x||!W)return;W=x;x=W.initData;Q.X.remove(x);Q.G.remove(x)}Q.uF({initd:W.initData.length,ct:W.contentType});if(Q.B.flavor==="widevine")if(Q.fS&&!Q.videoData.isLivePlayback)k0(Q);else{if(!(Q.bj.j("vp9_drm_live")&&Q.videoData.isLivePlayback&&W.i6)){Q.fS=!0;x=W.cryptoPeriodIndex;var D=W.B;KBO(W);W.i6||(D&&W.B!==D?Q.publish("ctmp","cpsmm",
{emsg:D,pssh:W.B}):x&&W.cryptoPeriodIndex!==x&&Q.publish("ctmp","cpimm",{emsg:x,pssh:W.cryptoPeriodIndex}));Q.publish("widevine_set_need_key_info",W)}}else Q.yP(W)}};
Ig5=function(Q){if(!Q.d7())if(Q.bj.j("html5_drm_set_server_cert")||NG(Q.B)){var W=Q.N.setServerCertificate();W?W.then(CJ(function(x){Q.bj.jk()&&Q.publish("ctmp","ssc",{success:x})}),CJ(function(x){Q.publish("ctmp","ssce",{n:x.name,
m:x.message})})).then(CJ(function(){ct5(Q)})):ct5(Q)}else ct5(Q)};
ct5=function(Q){Q.d7()||(Q.T=!0,Q.uF({onmdkrdy:1}),k0(Q))};
g9v=function(Q){return Q.B.flavor==="widevine"&&Q.videoData.j("html5_drm_cpi_license_key")};
k0=function(Q){if((Q.g7||Q.bj.j("html5_widevine_use_fake_pssh"))&&Q.T&&!Q.KS){for(;Q.D.length;){var W=Q.D[0],x=g9v(Q)?lvl(W):g.Vn(W.initData);if(NG(Q.B)&&!W.U)Q.D.shift();else{if(Q.U.get(x))if(Q.B.flavor!=="fairplay"||NG(Q.B)){Q.D.shift();continue}else Q.U.delete(x);KBO(W);break}}Q.D.length&&Q.createSession(Q.D[0])}};
ytD=function(Q){var W;if(W=g.fl()){var x;W=!((x=Q.N.U)==null||!x.getMetrics)}W&&(W=Q.N.getMetrics())&&(W=g.hy(W),Q.publish("ctmp","drm",{metrics:W}))};
eo5=function(){var Q=Txs();return!(!Q||Q==="visible")};
ZG5=function(Q){var W=fg5();W&&document.addEventListener(W,Q,!1)};
LvO=function(Q){var W=fg5();W&&document.removeEventListener(W,Q,!1)};
fg5=function(){if(document.visibilityState)var Q="visibilitychange";else{if(!document[kY+"VisibilityState"])return"";Q=kY+"visibilitychange"}return Q};
rtn=function(Q){g.N.call(this);var W=this;this.xf=Q;this.Nu=0;this.X=this.U=this.L=!1;this.N=0;this.Dp=this.xf.C();this.videoData=this.xf.getVideoData();this.D=g.X0(this.Dp.experiments,"html5_delayed_retry_count");this.B=new g.O3(function(){W.xf.QI()},g.X0(this.Dp.experiments,"html5_delayed_retry_delay_ms"));
g.y(this,this.B)};
tk5=function(Q,W,x){var D=Q.videoData.U,K=Q.videoData.N;KQ(Q.xf.getVideoData())&&Q.Dp.j("html5_gapless_fallback_on_qoe_restart")&&OQ1(Q.xf,"pe");if((W==="progressive.net.retryexhausted"||W==="fmt.unplayable"||W==="fmt.decode")&&!Q.xf.YW.L&&D&&D.itag==="22")return Q.xf.YW.L=!0,Q.zt("qoe.restart",{reason:"fmt.unplayable.22"}),Q.xf.qb(),!0;var l=!1;if(Q.videoData.isExternallyHostedPodcast){if(l=Q.videoData.O$)x.mimeType=l.type,Q.qj("3pp",{url:l.url});x.ns="3pp";Q.xf.dH(W,1,"VIDEO_UNAVAILABLE",a0((new Gu(W,
x,1)).details));return!0}var M=Q.Nu+3E4<(0,g.a8)()||Q.B.isActive();if(Q.Dp.j("html5_empty_src")&&Q.videoData.isAd()&&W==="fmt.unplayable"&&/Empty src/.test(""+x.msg))return x.origin="emptysrc",Q.zt("auth",x),!0;M||Xj(Q.xf.fR())||(x.nonfg="paused",M=!0,Q.xf.pauseVideo());(W==="fmt.decode"||W==="fmt.unplayable")&&(K==null?0:EC(K)||F2(K))&&(eTD(Q.Dp.L,K.CS),x.acfallexp=K.CS,l=M=!0);!M&&Q.D>0&&(Q.B.start(),M=!0,x.delayed="1",--Q.D);K=Q.xf.Bt;!M&&((D==null?0:OC(D))||(D==null?0:L3(D)))&&(eTD(Q.Dp.L,D.CS),
l=M=!0,x.cfallexp=D.CS);if(Q.Dp.j("html5_ssap_ignore_decode_error_for_next_video")&&g.TQ(Q.videoData)&&W==="fmt.unplayable"&&x.cid&&x.ccid&&Xj(Q.xf.fR())){if(x.cid!==x.ccid)return x.ignerr="1",Q.zt("ssap.transitionfailure",x),!0;Q.zt("ssap.transitionfailure",x);if(TID(Q.xf,W))return!0}if(!M)return OG2(Q,x);if(Q.Dp.j("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.TQ(Q.videoData)&&W==="fmt.unplayable"&&x.cid&&x.ccid&&x.cid!==x.ccid&&Xj(Q.xf.fR())&&(Q.zt("ssap.transitionfailure",x),TID(Q.xf,
W)))return!0;M=!1;Q.L?Q.Nu=(0,g.a8)():M=Q.L=!0;var w=Q.videoData;if(w.tf){w=w.tf.iB();var S=Date.now()/1E3+1800;w=w<S}else w=!1;x.e=W;x.bkg=eo5();w&&(x.staleprog="1");Q.zt("qoe.restart",x);if(w&&E9h(Q))return Fv2(Q),!0;if(!(!g.yk("philips")||W==="fmt.unplayable"&&K&&K.F3||Q.Dp.B.cplatform==="GAME_CONSOLE"))try{window.close()}catch(b){}D&&OC(D)&&!Q.Dp.j("html5_allow_av1_retry_in_session")?(l=Q.Dp.L,l.S=!0,lA(l),l=!0):K?M||(W=(W=ht(K.videoTrack)||K.videoTrack.U)?W.B:K.videoTrack.B,W.X+=1,K.policy.B?
r6(K.U.B,W,!0):Wn(K.B,W,!0)):Q.videoData.tf&&Q.videoData.tf.dD();Q.B.isActive()||Q.xf.QI(l);return!0};
OG2=function(Q,W){if(Q.videoData.F3)return!1;Q.Dp.Gn+=1;if(Q.Dp.Gn<=10)return!1;W.exiled=""+Q.Dp.Gn;Q.zt("qoe.start15s",W);Q.xf.publish("playbackstalledatstart");return!0};
E9h=function(Q){return Q.U?!0:Q.Dp.uj==="yt"?Q.videoData.F3?Q.videoData.Sk<25:!Q.videoData.Sk:!1};
Fv2=function(Q){if(!Q.U){Q.U=!0;var W=Q.xf.getPlayerState();W=W.isPaused()||W.isSuspended();Q.xf.WM();W&&!O_(Q.videoData)||Q.xf.publish("signatureexpired")}};
QS2=function(Q,W){if((Q=Q.xf.DG())&&(W.errorCode==="fmt.unplayable"||W.errorCode==="html5.invalidstate")){var x=Q.g1();W.details.merr=x?x.toString():"0";W.details.mmsg=Q.ZJ()}};
WR2=function(Q){return Q.errorCode==="net.badstatus"&&(Q.severity===1||!!Q.details.fmt_unav)};
xg5=function(Q,W){return Q.Dp.j("html5_use_network_error_code_enums")&&W.details.rc===403||W.details.rc==="403"?(Q=W.errorCode,Q==="net.badstatus"||Q==="manifest.net.retryexhausted"):!1};
KR1=function(Q,W){if(!xg5(Q,W)&&!Q.U)return!1;W.details.sts="20150";if(E9h(Q))return dw(W.severity)&&(W=Object.assign({e:W.errorCode},W.details),W=new Gu("qoe.restart",W)),Q.zt(W.errorCode,W.details),Fv2(Q),!0;(0,g.a8)()-Q.Dp.QN>6048E5&&Dg1(Q,"signature");return!1};
Dg1=function(Q,W){try{window.location.reload(),Q.zt("qoe.restart",{detail:"pr."+W})}catch(x){}};
ll4=function(Q,W){W=W===void 0?"fmt.noneavailable":W;var x=Q.Dp.L;x.G=!1;lA(x);Q.zt("qoe.restart",{e:W,detail:"hdr"});Q.xf.QI(!0)};
jS5=function(Q,W,x,D,K,l){this.videoData=Q;this.B=W;this.reason=x;this.U=D;this.token=K;this.videoId=l};
MH5=function(Q,W,x){this.bj=Q;this.QW=W;this.xf=x;this.S=this.X=this.B=this.N=this.G=this.U=0;this.L=!1;this.T=g.X0(this.bj.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.D=new Map};
wfQ=function(Q,W,x){!Q.bj.j("html5_tv_ignore_capable_constraint")&&g.dO(Q.bj)&&(x=x.compose(REv(Q,W)));return x};
SF5=function(Q){if(Q.xf.fR().isInline())return eQ;var W;Q.j("html5_exponential_memory_for_sticky")?W=pO(Q.bj.uG,"sticky-lifetime")<.5?"auto":wQ[cc()]:W=wQ[cc()];return g.jw("auto",W,!1,"s")};
sSl=function(Q,W){var x,D=b2v(Q,(x=W.B)==null?void 0:x.videoInfos);x=Q.xf.getPlaybackRate();return x>1&&D?(Q=ITs(Q.bj.L,W.B.videoInfos,x),new lQ(0,Q,!0,"o")):new lQ(0,0,!1,"o")};
b2v=function(Q,W){return W&&g.dO(Q.bj)?W.some(function(x){return x.video.fps>32}):!1};
zEh=function(Q,W){var x=Q.xf.aS();Q.j("html5_use_video_quality_cap_for_ustreamer_constraint")&&x&&x.AR>0&&Ry(W.videoData.yS)&&(Q=x.AR,W.videoData.yS=new lQ(0,Q,!1,"u"));return W.videoData.yS};
REv=function(Q,W){if(g.dO(Q.bj)&&vh(Q.bj.L,CN.HEIGHT))var x=W.B.videoInfos[0].video.B;else{var D=!!W.B.B;var K;g.q4(Q.bj)&&(K=window.screen&&window.screen.width?new g.oZ(window.screen.width,window.screen.height):null);K||(K=Q.bj.qy?Q.bj.qy.clone():Q.QW.ZB());(Ok||Dg||D)&&K.scale(g.OT());D=K;lG(W.videoData)||O_(W.videoData);W=W.B.videoInfos;if(W.length){K=g.X0(Q.bj.experiments,"html5_override_oversend_fraction")||.85;var l=W[0].video;l.projectionType!=="MESH"&&l.projectionType!=="EQUIRECTANGULAR"&&
l.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||HL||(K=.45);Q=g.X0(Q.bj.experiments,"html5_viewport_undersend_maximum");for(l=0;l<W.length;l++){x=W[l];var M=x.video;if(D===null||M.width*K<D.width&&M.height*K<D.height){Q&&l&&M.width<D.width*Q&&M.height<D.height*Q&&(x=W[l-1]);break}}D=x.video;x=new lQ(0,x.itag==="93"?g.cl[Nq(D.width,D.height)]:D.B,!1,"r")}else x=eQ;x=x.B}x&&(x=Math.max(x,360));return new lQ(0,x,!1,"r")};
ktn=function(Q,W){var x;a:if((x=W.B)&&x.videoInfos.length){for(var D=g.V(x.videoInfos),K=D.next();!K.done;K=D.next()){K=K.value;var l=void 0;if((l=K.U)==null?0:l.smooth){x=K.video.B;break a}}x=x.videoInfos[0].video.B}else x=0;i8n()&&!g.dO(Q.bj)&&L3(W.B.videoInfos[0])&&(x=Math.min(x,g.cl.large));D=g.X0(Q.bj.experiments,"html5_chipset_soft_cap");D>0&&(x=Math.min(x,D));if(D=g.X0(Q.bj.experiments,"html5_max_vertical_resolution")){Q=4320;for(K=0;K<W.B.videoInfos.length;K++)l=W.B.videoInfos[K],l.video.height>
D&&(Q=Math.min(Q,l.video.B));if(Q<4320){for(K=D=0;K<W.B.videoInfos.length;K++)l=W.B.videoInfos[K].video.B,l<Q&&(D=Math.max(D,l));D&&(x=Math.min(D,x))}}return new lQ(0,x,!1,"o")};
opn=function(Q,W){var x=4320;!Q.bj.U||g.BL(Q.bj)||Q.bj.j("hls_for_vod")||Q.bj.j("mweb_remove_360p_cap")||(x=g.cl.medium);var D=g.X0(Q.bj.experiments,"html5_default_quality_cap");D&&W.B.B&&(Q.bj.j("html5_always_apply_default_quality_cap")||!W.videoData.V1&&!W.videoData.Qp)&&(x=Math.min(x,D));D=g.X0(Q.bj.experiments,"html5_random_playback_cap");var K=/[a-h]$/;D&&K.test(W.videoData.clientPlaybackNonce)&&(x=Math.min(x,D));if(K=D=g.X0(Q.bj.experiments,"html5_hfr_quality_cap"))a:{K=W.B;if(K.B){K=g.V(K.videoInfos);
for(var l=K.next();!l.done;l=K.next())if(l.value.video.fps>32){K=!0;break a}}K=!1}K&&(x=Math.min(x,D));(D=g.X0(Q.bj.experiments,"html5_live_quality_cap"))&&W.videoData.isLivePlayback&&(x=Math.min(x,D));x=Xfa(Q,W,x);Q=g.X0(Q.bj.experiments,"html5_byterate_soft_cap");return new lQ(0,x===4320?0:x,!1,"d",Q)};
uqs=function(Q){var W,x,D,K;return g.U(function(l){switch(l.B){case 1:return Q.B.B&&typeof((W=navigator.mediaCapabilities)==null?void 0:W.decodingInfo)==="function"?g.A(l,Promise.resolve(),2):l.return(Promise.resolve());case 2:x=g.V(Q.B.videoInfos),D=x.next();case 3:if(D.done){l.kf(0);break}K=D.value;return g.A(l,pi5(K),4);case 4:D=x.next(),l.kf(3)}})};
npQ=function(Q,W){if(!W.videoData.U||Q.j("html5_disable_performance_downgrade"))return!1;Date.now()-Q.G>6E4&&(Q.U=0);Q.U++;Q.G=Date.now();if(Q.U!==4)return!1;YFn(Q,W.videoData.U);return!0};
Pjn=function(Q,W,x,D){if(!W||!x||!W.videoData.U)return!1;var K=g.X0(Q.bj.experiments,"html5_df_downgrade_thresh"),l=Q.j("html5_log_media_perf_info");if(!((0,g.a8)()-Q.N<5E3?0:l||K>0))return!1;var M=((0,g.a8)()-Q.N)/1E3;Q.N=(0,g.a8)();x=x.getVideoPlaybackQuality();if(!x)return!1;var w=x.droppedVideoFrames-Q.X,S=x.totalVideoFrames-Q.S;Q.X=x.droppedVideoFrames;Q.S=x.totalVideoFrames;var b=x.displayCompositedVideoFrames===0?0:x.displayCompositedVideoFrames||-1;l&&Q.bj.jk()&&Q.xf.qj("ddf",{dr:x.droppedVideoFrames,
de:x.totalVideoFrames,comp:b});if(D)return Q.B=0,!1;if((S-w)/M>Q.T||!K||g.dO(Q.bj))return!1;Q.B=(S>60?w/S:0)>K?Q.B+1:0;if(Q.B!==3)return!1;YFn(Q,W.videoData.U);Q.xf.qj("dfd",Object.assign({dr:x.droppedVideoFrames,de:x.totalVideoFrames},VH2()));return!0};
YFn=function(Q,W){var x=W.CS,D=W.video.fps,K=W.video.B-1,l=Q.D;W=""+x+(D>49?"p60":D>32?"p48":"");x=Aa(x,D,l);K>0&&(x=Math.min(x,K));if(!o5.has(W)&&eb().includes(W)){var M=x;x=yl();+x[W]>0&&(M=Math.min(+x[W],M));x[W]!==M&&(x[W]=M,g.Ud("yt-player-performance-cap",x,2592E3))}else if(o5.has(W)||l==null){a:{M=M===void 0?!0:M;D=eb().slice();if(M){if(D.includes(W))break a;D.push(W)}else{if(!D.includes(W))break a;D.splice(D.indexOf(W),1)}g.Ud("yt-player-performance-cap-active-set",D,2592E3)}iO.set(W,x)}else o5.add(W),
l==null||l.set(W,x);Q.xf.yT()};
uV=function(Q,W){if(!W.B.B)return Q.L?new lQ(0,360,!1,"b"):eQ;for(var x=!1,D=!1,K=g.V(W.B.videoInfos),l=K.next();!l.done;l=K.next())OC(l.value)?x=!0:D=!0;x=x&&D;D=0;K=g.X0(Q.bj.experiments,"html5_performance_cap_floor");K=Q.bj.U?240:K;W=g.V(W.B.videoInfos);for(l=W.next();!l.done;l=W.next()){var M=l.value;if(!x||!OC(M))if(l=Aa(M.CS,M.video.fps,Q.D),M=M.video.B,Math.max(l,K)>=M){D=M;break}}return new lQ(0,D,!1,"b")};
vpF=function(Q,W){var x=Q.xf.fR();return x.isInline()&&!W.aE?new lQ(0,480,!1,"v"):x.isBackground()&&aK()/1E3>60&&!g.dO(Q.bj)?new lQ(0,360,!1,"v"):eQ};
CjQ=function(Q,W,x){if(Q.bj.experiments.ij("html5_disable_client_autonav_cap_for_onesie")&&W.fetchType==="onesie"||g.dO(Q.bj)&&(cc(-1)>=1080||W.osid))return eQ;var D=g.X0(Q.bj.experiments,"html5_autonav_quality_cap"),K=g.X0(Q.bj.experiments,"html5_autonav_cap_idle_secs");return D&&W.isAutonav&&aK()/1E3>K?(x&&(D=Xfa(Q,x,D)),new lQ(0,D,!1,"e")):eQ};
Xfa=function(Q,W,x){if(Q.j("html5_optimality_defaults_chooses_next_higher")&&x)for(Q=W.B.videoInfos,W=1;W<Q.length;W++)if(Q[W].video.B<x)return Q[W-1].video.B;return x};
JYh=function(Q,W){Q.j("html5_log_media_perf_info")&&(Q.xf.qj("perfdb",VH2()),Q.xf.qj("sessionperfdb",Object.fromEntries(iO.entries())),Q.xf.qj("playbackperfdb",Object.fromEntries(Q.D.entries())),Q.xf.qj("hwc",{nch:navigator.hardwareConcurrency},!0),W&&Q.xf.qj("mcdb",{itags:W.B.videoInfos.filter(function(x){var D;return((D=x.U)==null?void 0:D.smooth)===!1}).map(function(x){return x.itag}).join("-")}))};
VH2=function(){return PZ(yl(),function(Q){return""+Q})};
Y0=function(Q){g.N.call(this);var W=this;this.provider=Q;this.B=-1;this.L=!1;this.U=-1;this.playerState=new g.lW;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.N=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.O3(this.send,6E4,this);this.D=!1;this.jsErrorCount=0;this.by={Ju:function(){W.Ju()}};
this.Ju=function(){W.jsErrorCount++};
g.y(this,this.delay);window.addEventListener("error",this.Ju);window.addEventListener("unhandledrejection",this.Ju)};
pf1=function(Q){Q.B>=0||(Q.provider.xf.getVisibilityState()===3?Q.L=!0:(Q.B=g.n9(Q.provider),Q.delay.start()))};
hEa=function(Q){if(!(Q.U<0)){var W=g.n9(Q.provider),x=W-Q.N;Q.N=W;Q.playerState.state===8?Q.playTimeSecs+=x:Q.playerState.isBuffering()&&!g.r(Q.playerState,16)&&(Q.rebufferTimeSecs+=x)}};
al2=function(Q){var W;switch((W=Q.bj.playerCanaryStage)==null?void 0:W.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"}};
Gtz=function(Q){return window.PressureObserver&&new window.PressureObserver(Q)};
dgl=function(Q){Q=Q===void 0?Gtz:Q;g.N.call(this);var W=this;try{this.D=Q(function(D){W.U=D.at(-1)});
var x;this.N=(x=this.D)==null?void 0:x.observe("cpu",{sampleInterval:2E3}).catch(function(D){D instanceof DOMException&&(W.B=D)})}catch(D){D instanceof DOMException&&(this.B=D)}};
i2D=function(Q){var W={},x=window.h5vcc;W.hwConcurrency=navigator.hardwareConcurrency;Q.B&&(W.cpe=Q.B.message);Q.U&&(W.cpt=Q.U.time,W.cps=Q.U.state);if(x==null?0:x.cVal)W.cb2s=x.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),W.cb5s=x.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),W.cb30s=x.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return W};
AY2=function(Q){var W;g.U(function(x){switch(x.B){case 1:return g.P5(x,2),g.A(x,Q.N,4);case 4:g.Cs(x,3);break;case 2:g.Jv(x);case 3:(W=Q.D)==null||W.disconnect(),g.VF(x)}})};
UgQ=function(Q,W){W?H24.test(Q):(Q=g.lY(Q),Object.keys(Q).includes("cpn"))};
BYz=function(Q,W,x,D,K,l,M){var w={format:"RAW"},S={};if(Rc(Q)&&wm()){if(M){var b;((b=qFz.uaChPolyfill)==null?void 0:b.state.type)!==2?M=null:(M=qFz.uaChPolyfill.state.data.values,M={"Synth-Sec-CH-UA-Arch":M.architecture,"Synth-Sec-CH-UA-Model":M.model,"Synth-Sec-CH-UA-Platform":M.platform,"Synth-Sec-CH-UA-Platform-Version":M.platformVersion,"Synth-Sec-CH-UA-Full-Version":M.uaFullVersion});S=Object.assign(S,M);w.withCredentials=!0}(M=g.TK("EOM_VISITOR_DATA"))?S["X-Goog-EOM-Visitor-Id"]=M:D?S["X-Goog-Visitor-Id"]=
D:g.TK("VISITOR_DATA")&&(S["X-Goog-Visitor-Id"]=g.TK("VISITOR_DATA"));x&&(S["X-Goog-PageId"]=x);(D=W.F3)&&!F4(W)&&(S["X-Goog-AuthUser"]=D);K&&(S.Authorization="Bearer "+K);W.j("enable_datasync_id_header_in_web_vss_pings")&&W.im&&W.datasyncId&&(S["X-YouTube-DataSync-Id"]=W.datasyncId);M||S["X-Goog-Visitor-Id"]||K||x||D?w.withCredentials=!0:W.j("html5_send_cpn_with_options")&&H24.test(Q)&&(w.withCredentials=!0)}Object.keys(S).length>0&&(w.headers=S);l&&(w.onFinish=l);return Object.keys(w).length>1?
w:null};
$g1=function(Q,W,x,D,K,l,M,w){wm()&&x.token&&(Q=jL(Q,{ctt:x.token,cttype:x.cE,mdx_environment:x.mdxEnvironment}));D.j("net_pings_low_priority")&&(W||(W={}),W.priority="low");l||w&&D.j("nwl_skip_retry")?(W==null?W={}:UgQ(Q,D.j("html5_assert_cpn_with_regex")),M?Eh().sendAndWrite(Q,W):Eh().sendThenWrite(Q,W,w)):W?(UgQ(Q,D.j("html5_assert_cpn_with_regex")),D.j("net_pings_use_fetch")?nB1(Q,W):g.hS(Q,W)):g.c3(Q,K)};
IlF=function(Q){for(var W=[],x=0;x<Q;x++){for(var D={},K=Math.floor(Math.random()*9*1E8)+1E8,l="",M=0;M<9;M++)l+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];D.videoDecoderName=l;D.elapsedTimeMs=K;W.push(D)}return W};
mgD=function(Q){return window.Profiler&&new window.Profiler(Q)};
NYQ=function(Q){/[^a-zA-Z0-9;.!_-]/.test(Q)&&(Q=Q.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return Q};
VT=function(Q,W,x){x=x===void 0?mgD:x;g.N.call(this);this.sampleInterval=Q;this.maxBufferSize=W;this.L=x;this.encoder=new bA;this.B=[];this.D=0;cYz(this)};
cYz=function(Q){var W=Q.sampleInterval,x=Q.maxBufferSize;if(W>0&&x>0&&!Q.U&&Q.D<1E7)try{Q.N=Q.L({sampleInterval:W,maxBufferSize:x});var D;(D=Q.N)==null||D.addEventListener("samplebufferfull",function(){return g.U(function(K){if(K.B==1)return g.A(K,Q.stop(),2);cYz(Q);g.VF(K)})})}catch(K){Q.U=NYQ(K.message)}};
PG=function(Q,W){var x,D;return!!((x=window.h5vcc)==null?0:(D=x.settings)==null?0:D.set(Q,W))};
yY5=function(){var Q,W,x,D=(Q=window.h5vcc)==null?void 0:(W=Q.settings)==null?void 0:(x=W.getPersistentSettingAsString)==null?void 0:x.call(W,"cpu_usage_tracker_intervals");if(D!=null){var K;Q=(K=JSON.parse(D))!=null?K:[];K=Q.filter(function(b){return b.type==="total"}).map(function(b){return b.seconds});
W=g.V(gpl);for(x=W.next();!x.done;x=W.next())x=x.value,K.indexOf(x)===-1&&Q.push({type:"total",seconds:x});var l,M;(l=window.h5vcc)==null||(M=l.settings)==null||M.set("cpu_usage_tracker_intervals_enabled",1);var w,S;(w=window.h5vcc)==null||(S=w.settings)==null||S.set("cpu_usage_tracker_intervals",JSON.stringify(Q))}};
eEz=function(){var Q=window.H5vccPlatformService,W="";if(Q&&Q.has("dev.cobalt.coat.clientloginfo")&&(Q=Q.open("dev.cobalt.coat.clientloginfo",function(){}))){var x=Q.send(new ArrayBuffer(0));
x&&(W=String.fromCharCode.apply(String,g.C(new Uint8Array(x))));Q.close()}return W};
g.Jn=function(Q,W){g.N.call(this);var x=this;this.provider=Q;this.logger=new g.MP("qoe");this.B={};this.sequenceNumber=1;this.X=NaN;this.WV="N";this.T=this.Cj=this.Ww=this.fn=this.L=0;this.WN=this.X3=this.G=this.eZ="";this.Sk=this.g7=NaN;this.Cn=0;this.cD=-1;this.yA=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.tf=this.isEmbargoed=this.fS=this.isOffline=this.isBuffering=!1;this.UT=[];this.pS=null;this.SZ=this.D=this.Pt=this.S=!1;this.U=-1;this.O3=!1;this.gE=new g.O3(this.Q57,750,this);this.uj=
this.adCpn=this.F3=this.contentCpn="";this.adFormat=void 0;this.b6=0;this.RQ=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.hn=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Vj=!1;this.Gn=NaN;this.LS=0;this.Kn=!1;this.KS=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Y6=!1;this.by={Ha:function(K){x.Ha(K)},
RGZ:function(){return x.N},
kG:function(){return x.contentCpn},
JE1:function(){return x.F3},
reportStats:function(){x.reportStats()},
Nq5:function(){return x.B.cat},
pB:function(K){return x.B[K]},
Nc9:function(){return x.KS}};
var D=g.X0(this.provider.bj.experiments,"html5_qoe_proto_mock_length");D&&!vG.length&&(vG=IlF(D));g.y(this,this.gE);try{navigator.getBattery().then(function(K){x.pS=K})}catch(K){}g.C9(this,0,"vps",["N"]);
Q.bj.jk()&&(this.LS=(0,g.a8)(),this.Gn=g.uY(function(){var K=(0,g.a8)(),l=K-x.LS;l>500&&x.qj("vmlock",{diff:l.toFixed()});x.LS=K},250));
Q.xf.zP()&&W&&(this.KS=W-Math.round(g.n9(Q)*1E3));this.provider.videoData.V1&&(this.remoteControlMode=flF[this.provider.videoData.V1]||0);this.provider.videoData.Yp&&(W=Ttv(this.provider.videoData.Yp),W==null?0:W.length)&&(this.remoteConnectedDevices=W);if(Q.bj.jk()||Q.j("html5_log_cpu_info"))this.I5=new dgl,g.y(this,this.I5);W=g.X0(Q.bj.experiments,"html5_js_self_profiler_sample_interval_ms");Q=g.X0(Q.bj.experiments,"html5_js_self_profiler_max_samples");W>0&&Q>0&&(this.s3=new VT(W,Q),g.y(this,this.s3))};
g.C9=function(Q,W,x,D){var K=Q.B[x];K||(K=[],Q.B[x]=K);K.push(W.toFixed(3)+":"+D.join(":"))};
Z2l=function(Q,W){var x=Q.adCpn||Q.provider.videoData.clientPlaybackNonce,D=Q.provider.getCurrentTime(x);g.C9(Q,W,"cmt",[D.toFixed(3)]);D=Q.provider.cZ(x);if(Q.N&&D*1E3>Q.N.DI+100&&Q.N){var K=Q.N;x=K.isAd;D=D*1E3-K.DI;Q.mx=W*1E3-K.jzt-D-K.yK5;K=(0,g.a8)()-D;W=Q.mx;D=Q.provider.videoData;var l=D.isAd();if(x||l){l=(x?"ad":"video")+"_to_"+(l?"ad":"video");var M={};D.X&&(M.cttAuthInfo={token:D.X,videoId:D.videoId});M.startTime=K-W;gK(l,M);g.co({targetVideoId:D.videoId,targetCpn:D.clientPlaybackNonce},
l);Nc("pbs",K,l)}else K=Q.provider.xf.v3(),K.X!==D.clientPlaybackNonce?(K.L=D.clientPlaybackNonce,K.U=W):D.c9()||g.Bp(new g.Lw("CSI timing logged before gllat",{cpn:D.clientPlaybackNonce}));Q.qj("gllat",{l:Q.mx.toFixed(),prev_ad:+x});delete Q.N}};
p9=function(Q,W){W=W===void 0?NaN:W;W=W>=0?W:g.n9(Q.provider);var x=Q.provider.xf.jB(),D=x.hq-(Q.g7||0);D>0&&g.C9(Q,W,"bwm",[D,(x.VE-(Q.Sk||0)).toFixed(3)]);isNaN(Q.g7)&&x.hq&&Q.isOffline&&Q.Ha(!1);Q.g7=x.hq;Q.Sk=x.VE;isNaN(x.bandwidthEstimate)||g.C9(Q,W,"bwe",[x.bandwidthEstimate.toFixed(0)]);Q.provider.bj.jk()&&Object.keys(x.B).length!==0&&Q.qj("bwinfo",x.B);if(Q.provider.bj.jk()||Q.provider.bj.j("html5_log_meminfo"))D=j45(),Object.values(D).some(function(l){return l!==void 0})&&Q.qj("meminfo",
D);
if(Q.provider.bj.jk()||Q.provider.bj.j("html5_log_cpu_info")){var K;(D=(K=Q.I5)==null?void 0:i2D(K))&&Object.values(D).some(function(l){return l!=null})&&Q.qj("cpuinfo",D)}Q.s3&&Q.qj("jsprof",Q.s3.flush());
Q.pS&&g.C9(Q,W,"bat",[Q.pS.level,Q.pS.charging?"1":"0"]);K=Q.provider.xf.getVisibilityState();Q.cD!==K&&(g.C9(Q,W,"vis",[K]),Q.cD=K);Z2l(Q,W);(K=LRQ(Q.provider))&&K!==Q.Cn&&(g.C9(Q,W,"conn",[K]),Q.Cn=K);rY4(Q,W,x)};
rY4=function(Q,W,x){if(!isNaN(x.VS)){var D=x.VS;x.U<D&&(D=x.U);g.C9(Q,W,"bh",[D.toFixed(3)])}};
TYv=function(Q,W,x){g.lb(Q.provider.bj,g.ZM(Q.provider.videoData)).then(function(D){var K=!1;if(W.includes("&dt=")||W.includes("&cotn=")){if(Q.provider.bj.j("kevlar_woffle")||Q.provider.bj.j("qoe_nwl_downloads"))K=!0}else Q.provider.bj.j("qoe_with_networkless")&&(K=!0);var l=Q.provider.bj.j("qoe_send_and_write"),M=Q.provider.bj;D=BYz(W,M,Q.provider.bj.pageId,Q.provider.bj.sendVisitorIdHeader?Q.provider.videoData.visitorData:void 0,D);M.j("html5_simplify_pings")&&(D=D||{});D?(D.method="POST",D.postBody=
x,$g1(W,D,{token:Q.provider.videoData.X,cE:Q.provider.videoData.al,mdxEnvironment:Q.provider.videoData.mdxEnvironment},M,void 0,K,l&&Q.fS)):K?(K=Q.provider.bj.j("networkless_ajax"),M={method:"POST",postBody:x},l&&Q.fS?Eh().sendAndWrite(W,M):K?g.hS(W,{method:"POST",postBody:x}):Eh().sendThenWrite(W,M)):(l=x,l=l===void 0?"":l,VLO(W,l)||g.c3(W,void 0,void 0,void 0,l))})};
O2s=function(Q){for(var W=0,x=g.V(Object.keys(Q.B)),D=x.next();!D.done;D=x.next())D=D.value,W+=D.length+Number(aX(Q.B[D],function(K,l){return K+l.length},0));
W>96E3&&(new g.O3(Q.reportStats,0,Q)).start()};
EpO=function(Q){Q.provider.videoData.RQ&&hn(Q,"prefetch");Q.provider.videoData.Sk&&Q.qj("reload",{r:Q.provider.videoData.reloadReason,ct:Q.provider.videoData.Sk});Q.provider.videoData.Pt&&hn(Q,"monitor");Q.provider.videoData.isLivePlayback&&hn(Q,"live");ta&&hn(Q,"streaming");Q.provider.videoData.V1&&Q.qj("ctrl",{mode:Q.provider.videoData.V1},!0);if(Q.provider.videoData.Yp){var W=Q.provider.videoData.Yp.replace(/,/g,"_");Q.qj("ytp",{type:W},!0)}Q.provider.videoData.cQ&&(W=Q.provider.videoData.cQ.replace(/,/g,
"."),Q.qj("ytrexp",{ids:W},!0));var x=Q.provider.videoData;W=Q.provider.bj.j("enable_white_noise")||Q.provider.bj.j("enable_webgl_noop");x=g.uG(x)||g.iG(x)||g.Af(x)||g.HX(x);(W||x)&&(W=(0,g.a5)())&&(Q.B.gpu=[W]);O_(Q.provider.videoData)&&g.C9(Q,g.n9(Q.provider),"dt",["1"]);Q.provider.bj.jk()&&(W=(0,g.a8)()-Q.provider.bj.QN,Q.qj("playerage",{secs:Math.pow(1.6,Math.round(Math.log(W/1E3)/Math.log(1.6))).toFixed()}));Q.D=!0;Q.X=g.uY(function(){Q.reportStats()},1E4)};
tHD=function(Q,W,x){var D=g.n9(Q.provider);FRz(Q,D,W,0,x);p9(Q,D);O2s(Q)};
FRz=function(Q,W,x,D,K){var l=Q.provider.bj.B.cbrver;Q.provider.bj.B.cbr==="Chrome"&&/^96[.]/.test(l)&&x==="net.badstatus"&&/rc\.500/.test(K)&&Q54(Q,3);Q.provider.bj.j("html5_use_ump")&&/b248180278/.test(K)&&Q54(Q,4);l=Q.provider.getCurrentTime(Q.adCpn||Q.provider.videoData.clientPlaybackNonce);D=D===1?"fatal":"";x=[x,D,l.toFixed(3)];D&&(K+=";a6s."+wF());K&&x.push(WP1(K));g.C9(Q,W,"error",x);Q.D=!0};
xHO=function(Q){Q.U>=0||(Q.provider.bj.Ke||Q.provider.xf.getVisibilityState()!==3?Q.U=g.n9(Q.provider):Q.O3=!0)};
DHs=function(Q,W,x,D){if(x!==Q.WV){W<Q.L||(Q.WV==="PL"?Q.playTimeSecs+=W-Q.L:Q.WV==="B"&&Q.isBuffering&&(Q.isBuffering=!1,Q.rebufferTimeSecs+=W-Q.fn,!Q.tf&&Q.rebufferTimeSecs>=10&&Q.playTimeSecs<=180&&(Q.B.qoealert=["1"],Q.tf=!0)),x!=="B"||Q.WV!=="PL"&&Q.WV!=="PB"||(Q.isBuffering=!0),Q.L=W);Q.WV==="PL"&&(x==="B"||x==="S")||Q.provider.bj.jk()?p9(Q,W):(Q.Vj||x!=="PL"||(Q.Vj=!0,rY4(Q,W,Q.provider.xf.jB())),Z2l(Q,W));x==="PL"&&g.E3(Q.gE);var K=[x];x==="S"&&D&&K.push("ss."+D);g.C9(Q,W,"vps",K);Q.WV=x;
Q.fn=W;Q.L=W;Q.D=!0}};
hn=function(Q,W){var x=Q.B.cat||[];x.push(W);Q.B.cat=x};
Gz=function(Q,W,x,D,K,l){var M=g.n9(Q.provider);x!==1&&x!==3&&x!==5||g.C9(Q,M,"vps",[Q.WV]);var w=Q.B.xvt||[];w.push("t."+M.toFixed(3)+";m."+l.toFixed(3)+";g."+W+";tt."+x+";np.0;c."+D+";d."+K);Q.B.xvt=w};
Q54=function(Q,W){if(!Q.SZ){var x=Q.B.fcnz;x||(x=[],Q.B.fcnz=x);x.push(String(W));Q.SZ=!0}};
WP1=function(Q){/[^a-zA-Z0-9;.!_-]/.test(Q)&&(Q=Q.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return Q};
KPl=function(Q){this.provider=Q;this.G=!1;this.B=0;this.N=-1;this.LY=NaN;this.D=0;this.segments=[];this.X=this.L=0;this.previouslyEnded=!1;this.T=this.provider.xf.getVolume();this.S=this.provider.xf.isMuted()?1:0;this.U=di(this.provider)};
iV=function(Q){Q.U.startTime=Q.D;Q.U.endTime=Q.B;var W=!1;Q.segments.length&&g.r1(Q.segments).isEmpty()?(Q.segments[Q.segments.length-1].previouslyEnded&&(Q.U.previouslyEnded=!0),Q.segments[Q.segments.length-1]=Q.U,W=!0):Q.segments.length&&Q.U.isEmpty()||(Q.segments.push(Q.U),W=!0);W?Q.U.endTime===0&&(Q.previouslyEnded=!1):Q.U.previouslyEnded&&(Q.previouslyEnded=!0);Q.L+=Q.B-Q.D;Q.U=di(Q.provider);Q.U.previouslyEnded=Q.previouslyEnded;Q.previouslyEnded=!1;Q.D=Q.B};
j5z=function(Q){lP1(Q);Q.X=g.uY(function(){Q.update()},100);
Q.LY=g.n9(Q.provider);Q.U=di(Q.provider)};
lP1=function(Q){g.nl(Q.X);Q.X=NaN};
M5z=function(Q,W,x){x-=Q.LY;return W===Q.B&&x>.5};
RGn=function(Q,W,x,D){this.bj=W;this.WN=x;this.segments=[];this.experimentIds=[];this.s3=this.fn=this.isFinal=this.delayThresholdMet=this.Vj=this.cD=this.autoplay=this.autonav=!1;this.Cn="yt";this.X=[];this.G=this.T=null;this.sendVisitorIdHeader=this.O3=!1;this.S=this.pageId="";this.L=x==="watchtime";this.D=x==="playback";this.F3=x==="atr";this.Ke=x==="engage";this.sendVisitorIdHeader=!1;this.uri=this.F3?"/api/stats/"+x:"//"+W.u$+"/api/stats/"+x;D&&(this.fn=D.fs,D.rtn&&(this.G=D.rtn),this.L?(this.playerState=
D.state,D.rti>0&&(this.T=D.rti)):(this.kX=D.mos,this.jE=D.volume,D.at&&(this.adType=D.at)),D.autonav&&(this.autonav=D.autonav),D.inview!=null&&(this.yA=D.inview),D.size&&(this.Sk=D.size),D.playerwidth&&(this.playerWidth=D.playerwidth),D.playerheight&&(this.playerHeight=D.playerheight));this.hn=g.HZ(W.B);this.S=Qv(W.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.S==="all"||this.S==="once")this.Kn=g.HZ(W.WN);this.uG=W.I5;this.experimentIds=Um2(W.experiments);this.eZ=W.Kn;this.Cn=W.uj;this.region=
W.region;this.userAge=W.userAge;this.Pt=W.SU;this.UT=aK();this.sendVisitorIdHeader=W.sendVisitorIdHeader;this.KS=W.j("vss_pings_using_networkless")||W.j("kevlar_woffle");this.QN=W.j("vss_final_ping_send_and_write");this.fS=W.j("vss_use_send_and_write");this.pageId=W.pageId;this.J2=W.j("vss_playback_use_send_and_write");W.livingRoomAppMode&&(this.livingRoomAppMode=W.livingRoomAppMode);this.IU=W.N&&W.j("embeds_append_synth_ch_headers");g.d5(W)&&(this.X3=W.KS);g.SY(g.mr(W))&&this.X.push(1);this.accessToken=
g.ZM(Q);Q.X$[this.WN]?this.N=Q.X$[this.WN]:Q.X$.playback&&(this.N=Q.X$.playback);this.adFormat=Q.adFormat;this.adQueryId=Q.adQueryId;this.autoplay=cX(Q);this.D&&(this.cD=(Q.j("html5_enable_log_server_autoplay")||Q.j("enable_cleanup_masthead_autoplay_hack_fix"))&&Q.TN&&$N(Q)==="adunit"?!0:!1);this.autonav=Q.isAutonav||this.autonav;this.contentVideoId=mW(Q);this.clientPlaybackNonce=Q.clientPlaybackNonce;this.Vj=Q.HZ;Q.X&&(this.uj=Q.X,this.tf=Q.al);Q.mdxEnvironment&&(this.mdxEnvironment=Q.mdxEnvironment);
this.B=Q.s3;this.Y6=Q.Y6;Q.U&&(this.RQ=Q.U.itag,Q.N&&Q.N.itag!==this.RQ&&(this.SZ=Q.N.itag));Q.B&&kJ(Q.B)&&(this.offlineDownloadUserChoice="1");this.eventLabel=$N(Q);this.s3=Q.uG?!1:Q.Ke;this.b6=Q.Zf;if(W=vX(Q))this.gH=W;this.vZ=Q.gX;this.partnerId=Q.partnerId;this.eventId=Q.eventId;this.playlistId=Q.Zu||Q.playlistId;this.Hg=Q.Hg;this.V1=Q.V1;this.Yp=Q.Yp;this.mD=Q.mD;this.subscribed=Q.subscribed;this.videoId=Q.videoId;this.videoMetadata=Q.videoMetadata;this.visitorData=Q.visitorData;this.osid=Q.osid;
this.VW=Q.VW;this.referrer=Q.referrer;this.HF=Q.H$||Q.HF;this.I5=Q.gZ;this.Wg=Q.Wg;this.userGenderAge=Q.userGenderAge;this.G4=Q.G4;this.embedsRct=Q.embedsRct;this.embedsRctn=Q.embedsRctn;g.d5(this.bj)&&Q.mutedAutoplay&&(Q.mutedAutoplayDurationMode===2&&Q.limitedPlaybackDurationInSeconds===0&&Q.endSeconds===0?this.X.push(7):this.X.push(2));Q.isEmbedsShortsMode(new g.oZ(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.X.push(3);g.Kq(Q)&&this.X.push(4);this.g7=Q.ES;Q.compositeLiveIngestionOffsetToken&&
(this.compositeLiveIngestionOffsetToken=Q.compositeLiveIngestionOffsetToken)};
wG5=function(Q,W){var x=Q.sendVisitorIdHeader?Q.visitorData:void 0;return g.lb(Q.bj,Q.accessToken).then(function(D){return BYz(Q.uri,Q.bj,Q.pageId,x,D,W,Q.IU)})};
s5n=function(Q,W){return function(){Q.bj.j("html5_simplify_pings")?(Q.B=Q.LS,Q.gE=W(),Q.UT=0,Q.send()):wG5(Q).then(function(x){var D=StO(Q);D.cmt=D.len;D.lact="0";var K=W().toFixed(3);D.rt=Number(K).toString();D=g.ya(Q.uri,D);Q.bj.j("vss_through_gel_double")&&b9Q(D);Q.KS?(x==null&&(x={}),Q.fS?Eh().sendAndWrite(D,x):Eh().sendThenWrite(D,x)):x?g.hS(D,x):g.c3(D)})}};
StO=function(Q){var W={ns:Q.Cn,el:Q.eventLabel,cpn:Q.clientPlaybackNonce,ver:2,cmt:Q.U(Q.B),fmt:Q.RQ,fs:Q.fn?"1":"0",rt:Q.U(Q.gE),adformat:Q.adFormat,content_v:Q.contentVideoId,euri:Q.uG,lact:Q.UT,live:Q.gH,cl:(732759002).toString(),mos:Q.kX,state:Q.playerState,volume:Q.jE};Q.subscribed&&(W.subscribed="1");Object.assign(W,Q.hn);Q.S==="all"?Object.assign(W,Q.Kn):Q.S==="once"&&Q.D&&Object.assign(W,Q.Kn);Q.autoplay&&(W.autoplay="1");Q.cD&&(W.sautoplay="1");Q.Vj&&(W.dni="1");!Q.L&&Q.X3&&(W.epm=zG5[Q.X3]);
Q.isFinal&&(W["final"]="1");Q.s3&&(W.splay="1");Q.Y6&&(W.delay=Q.Y6);Q.eZ&&(W.hl=Q.eZ);Q.region&&(W.cr=Q.region);Q.userGenderAge&&(W.uga=Q.userGenderAge);Q.userAge!==void 0&&Q.Pt&&(W.uga=Q.Pt+Q.userAge);Q.LS!==void 0&&(W.len=Q.U(Q.LS));!Q.L&&Q.experimentIds.length>0&&(W.fexp=Q.experimentIds.toString());Q.G!==null&&(W.rtn=Q.U(Q.G));Q.HF&&(W.feature=Q.HF);Q.V1&&(W.ctrl=Q.V1);Q.Yp&&(W.ytr=Q.Yp);Q.SZ&&(W.afmt=Q.SZ);Q.offlineDownloadUserChoice&&(W.ODUC=Q.offlineDownloadUserChoice);Q.Gn&&(W.lio=Q.U(Q.Gn));
Q.L?(W.idpj=Q.b6,W.ldpj=Q.vZ,Q.delayThresholdMet&&(W.dtm="1"),Q.T!=null&&(W.rti=Q.U(Q.T)),Q.G4&&(W.ald=Q.G4),Q.compositeLiveIngestionOffsetToken&&(W.clio=Q.compositeLiveIngestionOffsetToken)):Q.adType!==void 0&&(W.at=Q.adType);Q.Sk&&(Q.D||Q.L)&&(W.size=Q.Sk);Q.D&&Q.X.length&&(W.pbstyle=Q.X.join(","));Q.yA!=null&&(Q.D||Q.L)&&(W.inview=Q.U(Q.yA));Q.L&&(W.volume=An(Q,g.pm(Q.segments,function(D){return D.volume})),W.st=An(Q,g.pm(Q.segments,function(D){return D.startTime})),W.et=An(Q,g.pm(Q.segments,function(D){return D.endTime})),
dM(Q.segments,function(D){return D.playbackRate!==1})&&(W.rate=An(Q,g.pm(Q.segments,function(D){return D.playbackRate}))),dM(Q.segments,function(D){return D.B!=="-"})&&(W.als=g.pm(Q.segments,function(D){return D.B}).join(",")),dM(Q.segments,function(D){return D.previouslyEnded})&&(W.pe=g.pm(Q.segments,function(D){return""+ +D.previouslyEnded}).join(",")));
W.muted=An(Q,g.pm(Q.segments,function(D){return D.muted?1:0}));
dM(Q.segments,function(D){return D.visibilityState!==0})&&(W.vis=An(Q,g.pm(Q.segments,function(D){return D.visibilityState})));
dM(Q.segments,function(D){return D.connectionType!==0})&&(W.conn=An(Q,g.pm(Q.segments,function(D){return D.connectionType})));
dM(Q.segments,function(D){return D.U!==0})&&(W.blo=An(Q,g.pm(Q.segments,function(D){return D.U})));
dM(Q.segments,function(D){return!!D.D})&&(W.blo=g.pm(Q.segments,function(D){return D.D}).join(","));
dM(Q.segments,function(D){return!!D.compositeLiveStatusToken})&&(W.cbs=g.pm(Q.segments,function(D){return D.compositeLiveStatusToken}).join(","));
dM(Q.segments,function(D){return D.N!=="-"})&&(W.cc=g.pm(Q.segments,function(D){return D.N}).join(","));
dM(Q.segments,function(D){return D.clipId!=="-"})&&(W.clipid=g.pm(Q.segments,function(D){return D.clipId}).join(","));
if(dM(Q.segments,function(D){return!!D.audioId})){var x="au";
Q.D&&(x="au_d");W[x]=g.pm(Q.segments,function(D){return D.audioId}).join(",")}wm()&&Q.uj&&(W.ctt=Q.uj,W.cttype=Q.tf,W.mdx_environment=Q.mdxEnvironment);
Q.Ke&&(W.etype=Q.pS!==void 0?Q.pS:0);Q.I5&&(W.uoo=Q.I5);Q.livingRoomAppMode&&Q.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(W.clram=kzv[Q.livingRoomAppMode]||Q.livingRoomAppMode);Q.N?XGn(Q,W):(W.docid=Q.videoId,W.referrer=Q.referrer,W.ei=Q.eventId,W.of=Q.VW,W.osid=Q.osid,W.vm=Q.videoMetadata,Q.adQueryId&&(W.aqi=Q.adQueryId),Q.autonav&&(W.autonav="1"),Q.playlistId&&(W.list=Q.playlistId),Q.mD&&(W.ssrt="1"),Q.Wg&&(W.upt=Q.Wg));Q.D&&(Q.embedsRct&&(W.rct=Q.embedsRct),Q.embedsRctn&&(W.rctn=
Q.embedsRctn),Q.compositeLiveIngestionOffsetToken&&(W.clio=Q.compositeLiveIngestionOffsetToken));Q.g7&&(W.host_cpn=Q.g7);return W};
XGn=function(Q,W){if(W&&Q.N){var x=new Set(["q","feature","mos"]),D=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),K=new Set(["aqi","autonav","list","ssrt","upt"]);Q.N.ns==="3pp"&&(W.ns="3pp");for(var l=g.V(Object.keys(Q.N)),M=l.next();!M.done;M=l.next())M=M.value,D.has(M)||x.has(M)||K.has(M)&&!Q.N[M]||(W[M]=Q.N[M])}};
An=function(Q,W){return g.pm(W,Q.U).join(",")};
b9Q=function(Q){Q.indexOf("watchtime")!==-1&&g.wV("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:Q}})};
o0v=function(Q,W){Q.attestationResponse&&wG5(Q).then(function(x){x=x||{};x.method="POST";x.postParams={atr:Q.attestationResponse};Q.KS?Q.fS?Eh().sendAndWrite(W,x):Eh().sendThenWrite(W,x):g.hS(W,x)})};
HG=function(Q){g.N.call(this);this.provider=Q;this.X="paused";this.L=NaN;this.G=[10,10,10,40];this.T=this.S=0;this.pS=this.KS=this.F3=this.uj=this.D=!1;this.U=this.N=NaN;this.B=new KPl(Q)};
V5D=function(Q){if(!Q.D){Q.provider.videoData.WA===16623&&g.Bp(Error("Playback for EmbedPage"));var W=Ut(Q,"playback");a:{if(Q.provider.bj.j("web_player_use_server_vss_schedule")){var x,D=(x=Q.provider.videoData.getPlayerResponse())==null?void 0:x.playbackTracking,K=D==null?void 0:D.videostatsScheduledFlushWalltimeSeconds;D=D==null?void 0:D.videostatsDefaultFlushIntervalSeconds;if(K&&K.length>0&&D){x=[];var l=Q.provider.videoData.Zf,M=Q.provider.videoData.gX,w=-l;K=g.V(K);for(var S=K.next();!S.done;S=
K.next())S=S.value,x.push(S-w),w=S;x.push(D+M-l);x.push(D);Q.G=x;break a}}Q.G=[10+Q.provider.videoData.Zf,10,10,40+Q.provider.videoData.gX-Q.provider.videoData.Zf,40]}j5z(Q.B);W.G=qH(Q);Q.U>0&&(W.B-=Q.U);W.send();Q.provider.videoData.h3&&(W=Q.provider.bj,D=Q.provider.videoData,x={html5:"1",video_id:D.videoId,cpn:D.clientPlaybackNonce,ei:D.eventId,ptk:D.h3,oid:D.Mh,ptchn:D.w2,pltype:D.IG,content_v:mW(D)},D.W2&&Object.assign(x,{m:D.W2}),W=g.ya(W.n2+"ptracking",x),uj2(Q,W));Q.provider.videoData.Y6||
(Yt4(Q),n02(Q),Q.F_());Q.D=!0;Q=Q.B;Q.B=Q.provider.xf.cZ();Q.LY=g.n9(Q.provider);!(Q.D===0&&Q.B<5)&&Q.B-Q.D>2&&(Q.D=Q.B);Q.G=!0}};
qH=function(Q,W){W=W===void 0?NaN:W;var x=g.n9(Q.provider);W=isNaN(W)?x:W;W=Math.ceil(W);var D=Q.G[Q.S];Q.S+1<Q.G.length&&Q.S++;var K=W+D;Q.L=g.oc(function(){if(!Q.d7()){Q.L=NaN;var l=PVl(Q),M=v05(Q,l);M.T=K;var w=Q.T>1E3;!(l.length>1)&&l[0].isEmpty()||w||(M.G=qH(Q,K));M.send();Q.T++}},(K-x)*1E3);
return Q.N=K};
BG=function(Q){g.Y1(Q.L);Q.L=NaN};
PVl=function(Q){Q.B.update();Q=Q.B;Q.segments.length&&Q.B===Q.D||iV(Q);var W=Q.segments;Q.segments=[];return W};
Ut=function(Q,W){var x=CV5(Q.provider);Object.assign(x,{state:Q.X});W=new RGn(Q.provider.videoData,Q.provider.bj,W,x);W.B=Q.provider.xf.cZ();x=Q.provider.videoData.clientPlaybackNonce;W.B=Q.provider.xf.AB(x);Q.provider.videoData.isLivePlayback||(W.LS=Q.provider.xf.getDuration(x));Q.provider.videoData.B&&(x=Q.provider.videoData.B.LZ(W.B))&&(W.Gn=x-W.B);W.gE=g.n9(Q.provider);W.segments=[di(Q.provider)];return W};
v05=function(Q,W){var x=Ut(Q,"watchtime");Jna(Q)&&(x.delayThresholdMet=!0,Q.F3=!0);if(Q.U>0){for(var D=g.V(W),K=D.next();!K.done;K=D.next())K=K.value,K.startTime-=Q.U,K.endTime-=Q.U;x.B-=Q.U}else x.B=Q.B.yM();x.segments=W;return x};
$0=function(Q,W){var x=pG5(Q,!isNaN(Q.N));W&&(Q.N=NaN);return x};
pG5=function(Q,W){var x=v05(Q,PVl(Q));!isNaN(Q.N)&&W&&(x.T=Q.N);return x};
Jna=function(Q){var W;if(W=Q.provider.videoData.isLoaded()&&Q.provider.videoData.Y6&&Q.D&&!Q.F3)W=Q.B,W=W.L+W.provider.xf.cZ()-W.D>=Q.provider.videoData.Y6;return!!W};
Yt4=function(Q){Q.provider.videoData.youtubeRemarketingUrl&&!Q.KS&&(uj2(Q,Q.provider.videoData.youtubeRemarketingUrl),Q.KS=!0)};
n02=function(Q){Q.provider.videoData.googleRemarketingUrl&&!Q.pS&&(uj2(Q,Q.provider.videoData.googleRemarketingUrl),Q.pS=!0)};
hGl=function(Q){if(!Q.d7()&&Q.D){Q.X="paused";var W=$0(Q);W.isFinal=!0;W.send();Q.dispose()}};
aPv=function(Q,W){if(!Q.d7())if(g.r(W.state,2)||g.r(W.state,512)){if(Q.X="paused",g.XV(W,2)||g.XV(W,512))g.XV(W,2)&&(Q.B.previouslyEnded=!0),Q.D&&(BG(Q),$0(Q).send(),Q.N=NaN)}else if(g.r(W.state,8)){Q.X="playing";var x=Q.D&&isNaN(Q.L)?qH(Q):NaN;!isNaN(x)&&(kZ(W,64)<0||kZ(W,512)<0)&&(Q=pG5(Q,!1),Q.G=x,Q.send())}else Q.X="paused"};
GzD=function(Q,W,x){if(!Q.uj){x||(x=Ut(Q,"atr"));x.attestationResponse=W;try{x.send()}catch(D){if(D.message!=="Unknown Error")throw D;}Q.uj=!0}};
uj2=function(Q,W){var x=Q.provider.bj;g.lb(Q.provider.bj,g.ZM(Q.provider.videoData)).then(function(D){var K=Q.provider.bj.pageId,l=Q.provider.bj.sendVisitorIdHeader?Q.provider.videoData.visitorData:void 0,M=Q.provider.bj.j("vss_pings_using_networkless")||Q.provider.bj.j("kevlar_woffle"),w=Q.provider.bj.j("allow_skip_networkless");D=BYz(W,x,K,l,D);$g1(W,D,{token:Q.provider.videoData.X,cE:Q.provider.videoData.al,mdxEnvironment:Q.provider.videoData.mdxEnvironment},x,void 0,M&&!w,!1,!0)})};
dHF=function(){this.endTime=this.startTime=-1;this.N="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.U=0;this.compositeLiveStatusToken=this.D=void 0;this.volume=this.connectionType=0;this.muted=!1;this.B=this.clipId="-";this.previouslyEnded=!1};
I5=function(Q,W,x){this.videoData=Q;this.bj=W;this.xf=x;this.B=void 0};
g.n9=function(Q){return i92(Q)()};
i92=function(Q){if(!Q.B){var W=g.tv(function(D){var K=(0,g.a8)();D&&K<=631152E6&&(Q.xf.qj("ytnerror",{issue:28799967,value:""+K}),K=(new Date).getTime()+2);return K},Q.bj.j("html5_validate_yt_now")),x=W();
Q.B=function(){return Math.round(W()-x)/1E3};
Q.xf.qG()}return Q.B};
CV5=function(Q){var W=Q.xf.Hr()||{};W.fs=Q.xf.fY();W.volume=Q.xf.getVolume();W.muted=Q.xf.isMuted()?1:0;W.mos=W.muted;W.clipid=Q.xf.C9();var x;W.playerheight=((x=Q.xf.getPlayerSize())==null?void 0:x.height)||0;var D;W.playerwidth=((D=Q.xf.getPlayerSize())==null?void 0:D.width)||0;Q=Q.videoData;x={};Q.U&&(x.fmt=Q.U.itag,Q.N&&(Q.cD?Q.N.itag!==Q.U.itag:Q.N.itag!=Q.U.itag)&&(x.afmt=Q.N.itag));x.ei=Q.eventId;x.list=Q.playlistId;x.cpn=Q.clientPlaybackNonce;Q.videoId&&(x.v=Q.videoId);Q.Wz&&(x.infringe=1);
(Q.uG?0:Q.Ke)&&(x.splay=1);(D=vX(Q))&&(x.live=D);Q.TN&&(x.sautoplay=1);Q.g5&&(x.autoplay=1);Q.Hg&&(x.sdetail=Q.Hg);Q.partnerId&&(x.partnerid=Q.partnerId);Q.osid&&(x.osid=Q.osid);Q.Su&&(x.cc=g.geD(Q.Su));return Object.assign(W,x)};
LRQ=function(Q){var W=PKQ();if(W)return AnF[W]||AnF.other;if(g.dO(Q.bj)){Q=navigator.userAgent;if(/[Ww]ireless[)]/.test(Q))return 3;if(/[Ww]ired[)]/.test(Q))return 30}return 0};
di=function(Q){var W=new dHF,x;W.N=((x=CV5(Q).cc)==null?void 0:x.toString())||"-";W.playbackRate=Q.xf.getPlaybackRate();x=Q.xf.getVisibilityState();x!==0&&(W.visibilityState=x);Q.bj.tf&&(W.U=1);W.D=Q.videoData.kV;W.compositeLiveStatusToken=Q.videoData.compositeLiveStatusToken;x=Q.xf.getAudioTrack();x.RW&&x.RW.id&&x.RW.id!=="und"&&(W.audioId=x.RW.id);W.connectionType=LRQ(Q);W.volume=Q.xf.getVolume();W.muted=Q.xf.isMuted();W.clipId=Q.xf.C9()||"-";W.B=Q.videoData.Cl||"-";return W};
g.mP=function(Q,W){g.N.call(this);var x=this;this.provider=Q;this.N=!1;this.D=new Map;this.WV=new g.lW;this.by={Suj:function(){return x.qoe},
DRt:function(){return x.B},
rE3:function(){return x.U}};
this.provider.videoData.ET()&&!this.provider.videoData.xG&&(this.B=new HG(this.provider),this.B.U=this.provider.videoData.b6/1E3,g.y(this,this.B),this.qoe=new g.Jn(this.provider,W),g.y(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Rz=this.provider.videoData.clientPlaybackNonce)&&this.D.set(this.Rz,this.B));if(Q.bj.playerCanaryState==="canary"||Q.bj.playerCanaryState==="holdback")this.U=new Y0(this.provider),g.y(this,this.U)};
H91=function(Q){return!!Q.B&&!!Q.qoe};
NH=function(Q){Q.U&&pf1(Q.U);Q.qoe&&xHO(Q.qoe)};
UHO=function(Q){if(Q.qoe){Q=Q.qoe;for(var W=Q.provider.videoData,x=Q.provider.bj,D=g.V(x.Vd),K=D.next();!K.done;K=D.next())hn(Q,K.value);if(Q.provider.j("html5_enable_qoe_cat_list"))for(D=g.V(W.zz),K=D.next();!K.done;K=D.next())hn(Q,K.value);else W.Vd&&hn(Q,Q.provider.videoData.Vd);W.lN()&&(D=W.B,zr(W)&&hn(Q,"manifestless"),D&&Cn(D)&&hn(Q,"live-segment-"+Cn(D).toFixed(1)));MJ(W)?hn(Q,"sabr"):Q.nF(o4(W));if(rG(W)||W.aQ())W.aQ()&&hn(Q,"ssa"),hn(Q,"lifa");W.gatewayExperimentGroup&&(D=W.gatewayExperimentGroup,
D==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?D="spkadtrt":D==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(D="spkadctrl"),hn(Q,D));x.uj!=="yt"&&(Q.B.len=[W.lengthSeconds.toFixed(2)]);W.cotn&&!O_(W)&&Q.Ha(!0);x.jk()&&(W=eEz())&&Q.qj("cblt",{m:W});if(x.j("html5_log_screen_diagonal")){x=Q.qj;var l;W=((l=window.H5vccScreen)==null?0:l.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;x.call(Q,"cbltdiag",{v:W})}}};
qth=function(Q){if(Q.provider.xf.zP()){if(Q.N)return;Q.N=!0}Q.B&&V5D(Q.B);if(Q.U){Q=Q.U;var W=g.n9(Q.provider);Q.B<0&&(Q.B=W,Q.delay.start());Q.U=W;Q.N=W}};
Bi4=function(Q,W){Q.B&&(Q=Q.B,W===58?Q.B.update():Q.D&&(BG(Q),$0(Q).send(),Q.N=NaN))};
$Hs=function(Q,W){if(g.XV(W,1024)||g.XV(W,512)||g.XV(W,4)){if(Q.U){var x=Q.U;x.U>=0||(x.B=-1,x.delay.stop())}Q.qoe&&(x=Q.qoe,x.S||(x.U=-1))}if(Q.provider.videoData.enableServerStitchedDai&&Q.Rz){var D;(D=Q.D.get(Q.Rz))==null||aPv(D,W)}else Q.B&&aPv(Q.B,W);if(Q.qoe){D=Q.qoe;x=W.state;var K=g.n9(D.provider),l=D.getPlayerState(x);DHs(D,K,l,x.seekSource||void 0);l=x.HI;g.r(x,128)&&l&&(l.s5=l.s5||"",FRz(D,K,l.errorCode,l.aF,l.s5));(g.r(x,2)||g.r(x,128))&&D.reportStats(K);x.isPlaying()&&!D.S&&(D.U>=0&&
(D.B.user_intent=[D.U.toString()]),D.S=!0);O2s(D)}Q.U&&(D=Q.U,hEa(D),D.playerState=W.state,D.U>=0&&g.XV(W,16)&&D.seekCount++,W.state.isError()&&D.send());Q.provider.xf.zP()&&(Q.WV=W.state)};
IPQ=function(Q){Q.U&&Q.U.send();if(Q.qoe){var W=Q.qoe;if(W.D){W.WV==="PL"&&(W.WV="N");var x=g.n9(W.provider);g.C9(W,x,"vps",[W.WV]);W.S||(W.U>=0&&(W.B.user_intent=[W.U.toString()]),W.S=!0);W.provider.bj.jk()&&W.qj("finalized",{});W.fS=!0;W.reportStats(x)}}if(Q.provider.videoData.enableServerStitchedDai)for(W=g.V(Q.D.values()),x=W.next();!x.done;x=W.next())hGl(x.value);else Q.B&&hGl(Q.B);Q.dispose()};
mH5=function(Q,W){Q.B&&GzD(Q.B,W)};
Nia=function(Q){if(!Q.B)return null;var W=Ut(Q.B,"atr");return function(x){Q.B&&GzD(Q.B,x,W)}};
cnQ=function(Q,W,x,D){x.adFormat=x.Cn;var K=W.xf;W=new HG(new I5(x,W.bj,{getDuration:function(){return x.lengthSeconds},
getCurrentTime:function(){return K.getCurrentTime()},
cZ:function(){return K.cZ()},
AB:function(){return K.AB()},
zP:function(){return K.zP()},
jB:function(){return K.jB()},
getPlayerSize:function(){return K.getPlayerSize()},
getAudioTrack:function(){return x.getAudioTrack()},
getPlaybackRate:function(){return K.getPlaybackRate()},
eB:function(){return K.eB()},
getVisibilityState:function(){return K.getVisibilityState()},
v3:function(){return K.v3()},
Hr:function(){return K.Hr()},
getVolume:function(){return K.getVolume()},
isMuted:function(){return K.isMuted()},
fY:function(){return K.fY()},
C9:function(){return K.C9()},
getProximaLatencyPreference:function(){return K.getProximaLatencyPreference()},
qG:function(){K.qG()},
qj:function(l,M){K.qj(l,M)},
C$:function(){return K.C$()}}));
W.U=D;g.y(Q,W);return W};
g0D=function(){this.VS=0;this.D=this.VE=this.hq=this.U=NaN;this.B={};this.bandwidthEstimate=NaN};
cG=function(Q,W,x){g.N.call(this);var D=this;this.bj=Q;this.xf=W;this.U=x;this.B=new Map;this.Rz="";this.by={v8:function(){return Array.from(D.B.keys())}}};
yn4=function(Q,W){Q.B.has(W)&&(IPQ(Q.B.get(W)),Q.B.delete(W))};
eG2=function(){this.B=g.M_;this.array=[]};
Z9a=function(Q,W,x){var D=[];for(W=fPO(Q,W);W<Q.array.length;++W){var K=Q.array[W];(K.end<=x||K.contains(x))&&D.push(K);if(K.start>x)break}return D};
LP5=function(Q,W){var x=[];Q=g.V(Q.array);for(var D=Q.next();!D.done&&!(D=D.value,D.contains(W)&&x.push(D),D.start>W);D=Q.next());return x};
rnl=function(Q){return Q.array.slice(fPO(Q,0x7ffffffffffff),Q.array.length)};
fPO=function(Q,W){Q=SJ(Q.array,function(x){return W-x.start||1});
return Q<0?-(Q+1):Q};
TiQ=function(Q,W){var x=NaN;Q=g.V(Q.array);for(var D=Q.next();!D.done;D=Q.next())if(D=D.value,D.contains(W)&&(isNaN(x)||D.end<x)&&(x=D.end),D.start>W&&(isNaN(x)||D.start<x)){x=D.start;break}return x};
O9F=function(Q,W){Q.array=Q.array.filter(function(x){return!W.has(x)})};
g.gi=function(Q,W,x,D,K){g.N.call(this);this.T=Q;this.F3=W;this.X=x;this.uj=D;this.N=K;this.D=NaN;this.G=this.S=this.started=!1;this.U=[];this.pS=new g.O3(this.sync,250,this);g.y(this,this.pS);this.L=new g.O3(this.sync,0,this);g.y(this,this.L);this.B=new eG2};
E0D=function(Q){Q.started=!0;Q.sync()};
FP5=function(Q,W){Q.started&&(Q.sync(),g.r(W.oldState,16)&&(W=TiQ(Q.B,Math.max(Q.D-2E3,0)),!isNaN(W)&&W<0x7ffffffffffff&&Q.L.start()))};
t5z=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next()){x=x.value;var D=x[1];x[0]===1?Q.uj(g.Ru(D.namespace),D):Q.uj(g.wt(D.namespace),D)}};
QJl=function(Q){this.bj=Q;this.D=this.U=this.mediaTime=NaN;this.N=this.B=!1;this.L=.001;g.dO(Q)&&(this.L=.01)};
yT=function(Q,W){return W>Q.mediaTime+Q.L&&W<Q.mediaTime+5};
gZ4=function(Q,W,x,D,K){if(D=D>1)Q.N=!0;if((K===void 0?0:K)||isNaN(Q.U))Q.U=W;if(Q.B)W!==Q.mediaTime&&(Q.B=!1);else if(W>0&&Q.mediaTime===W){K=1500;if(Q.bj.j("html5_buffer_underrun_transition_fix")){K=g.X0(Q.bj.experiments,"html5_min_playback_advance_for_steady_state_secs");var l=g.X0(Q.bj.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");K=K>0&&l>0&&Math.abs(W-Q.U)<K?l:1500}return x-Q.D>(D||!Q.N?K:400)}Q.mediaTime=W;Q.D=x;return!1};
W35=function(Q,W){this.videoData=Q;this.B=W};
xF2=function(Q,W,x){return W.hN(x).then(function(){return Uk(new W35(W,W.D))},function(D){D instanceof Error&&g.Bp(D);
var K=Hl('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),l=qq('audio/mp4; codecs="mp4a.40.2"'),M=K||l,w=W.isLivePlayback&&!g.KO(Q.L,!0);D="fmt.noneavailable";w?D="html5.unsupportedlive":M||(D="html5.missingapi");M=w||!M?2:1;K={buildRej:"1",a:W.Yr(),d:!!W.gE,drm:W.n3(),f18:W.ra.indexOf("itag=18")>=0,c18:K};W.B&&(W.n3()?(K.f142=!!W.B.B["142"],K.f149=!!W.B.B["149"],K.f279=!!W.B.B["279"]):(K.f133=!!W.B.B["133"],K.f140=!!W.B.B["140"],K.f242=!!W.B.B["242"]),K.cAAC=l,K.cAVC=qq('video/mp4; codecs="avc1.42001E"'),
K.cVP9=qq('video/webm; codecs="vp9"'));W.L&&(K.drmsys=W.L.keySystem,l=0,W.L.B&&(l=Object.keys(W.L.B).length),K.drmst=l);return new Gu(D,K,M)})};
e5=function(Q){this.data=window.Float32Array?new Float32Array(Q):Array(Q);this.U=this.B=Q-1};
DF2=function(Q){return Q.data[Q.B]||0};
K3n=function(Q){this.L=Q;this.D=this.U=0;this.N=new e5(50)};
ZP=function(Q,W,x){g.Rd.call(this);this.videoData=Q;this.experiments=W;this.X=x;this.U=[];this.N=0;this.D=!0;this.L=!1;this.G=0;x=new lAs;Q.latencyClass==="ULTRALOW"&&(x.N=!1);Q.Pt?x.U=3:g.Gr(Q)&&(x.U=2);Q.latencyClass==="NORMAL"&&(x.X=!0);var D=g.X0(W,"html5_liveness_drift_proxima_override");if(o4(Q)!==0&&D){x.B=D;var K;((K=Q.B)==null?0:gU4(K))&&x.B--}MJ(Q)&&W.ij("html5_sabr_parse_live_metadata_playback_boundaries")&&(x.T=!0);if(g.yk("trident/")||g.yk("edge/"))K=g.X0(W,"html5_platform_minimum_readahead_seconds")||
3,x.D=Math.max(x.D,K);g.X0(W,"html5_minimum_readahead_seconds")&&(x.D=g.X0(W,"html5_minimum_readahead_seconds"));g.X0(W,"html5_maximum_readahead_seconds")&&(x.S=g.X0(W,"html5_maximum_readahead_seconds"));W.ij("html5_force_adaptive_readahead")&&(x.N=!0);if(K=g.X0(W,"html5_liveness_drift_chunk_override"))x.B=K;kN(Q)&&(x.B=(x.B+1)/5,Q.latencyClass==="LOW"&&(x.B*=2));if(Q.latencyClass==="ULTRALOW"||Q.latencyClass==="LOW")x.L=g.X0(W,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,x.G=g.X0(W,
"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=x;this.S=this.policy.U!==1;this.B=f9(this,jJ5(this,isNaN(Q.liveChunkReadahead)?3:Q.liveChunkReadahead,Q))};
My2=function(Q,W){if(W)return W=Q.videoData,W=jJ5(Q,isNaN(W.liveChunkReadahead)?3:W.liveChunkReadahead,W),f9(Q,W);if(Q.U.length){if(Math.min.apply(null,Q.U)>1)return f9(Q,Q.B-1);if(Q.policy.N)return f9(Q,Q.B+1)}return Q.B};
RhO=function(Q,W){if(!Q.U.length)return!1;var x=Q.B;Q.B=My2(Q,W===void 0?!1:W);if(W=x!==Q.B)Q.U=[],Q.N=0;return W};
L9=function(Q,W){return W>=Q.Qk()-w2Q(Q)};
SRs=function(Q,W,x){W=L9(Q,W);x||W?W&&(Q.D=!0):Q.D=!1;Q.S=Q.policy.U===2||Q.policy.U===3&&Q.D};
sJD=function(Q,W){W=L9(Q,W);Q.L!==W&&Q.publish("livestatusshift",W);Q.L=W};
w2Q=function(Q){var W=Q.policy.B;Q.L||(W=Math.max(W-1,0));return W*ri(Q)};
jJ5=function(Q,W,x){x.Pt&&W--;kN(x)&&(W=1);if(o4(x)!==0&&(Q=g.X0(Q.experiments,"html5_live_chunk_readahead_proxima_override"))){W=Q;var D;((D=x.B)==null?0:gU4(D))&&W++}return W};
ri=function(Q){return Q.videoData.B?Cn(Q.videoData.B)||5:5};
f9=function(Q,W){W=Math.max(Math.max(1,Math.ceil(Q.policy.D/ri(Q))),W);return Math.min(Math.min(8,Math.floor(Q.policy.S/ri(Q))),W)};
lAs=function(){this.D=0;this.S=Infinity;this.N=!0;this.B=2;this.U=1;this.X=!1;this.G=10;this.T=!1;this.L=1};
Et=function(Q){g.N.call(this);this.xf=Q;this.B=0;this.U=null;this.X=this.N=0;this.D={};this.bj=this.xf.C();this.L=new g.O3(this.KZ,1E3,this);this.SZ=new Tz({delayMs:g.X0(this.bj.experiments,"html5_seek_timeout_delay_ms")});this.fS=new Tz({delayMs:g.X0(this.bj.experiments,"html5_long_rebuffer_threshold_ms")});this.tf=Ot(this,"html5_seek_set_cmt");this.eZ=Ot(this,"html5_seek_jiggle_cmt");this.O3=Ot(this,"html5_seek_new_elem");this.Gn=Ot(this,"html5_unreported_seek_reseek");this.F3=Ot(this,"html5_long_rebuffer_jiggle_cmt");
this.LS=Ot(this,"html5_long_rebuffer_ssap_clip_not_match");this.KS=new Tz({delayMs:2E4});this.s3=Ot(this,"html5_seek_new_elem_shorts");this.Pt=Ot(this,"html5_seek_new_media_source_shorts_reuse");this.I5=Ot(this,"html5_seek_new_media_element_shorts_reuse");this.g7=Ot(this,"html5_reseek_after_time_jump");this.S=Ot(this,"html5_gapless_handoff_close_end_long_rebuffer");this.uj=Ot(this,"html5_gapless_slow_seek");this.T=Ot(this,"html5_gapless_slice_append_stuck");this.pS=Ot(this,"html5_gapless_slow_start");
this.G=Ot(this,"html5_ads_preroll_lock_timeout");this.Y6=Ot(this,"html5_ssap_ad_longrebuffer_new_element");this.Vj=new Tz({delayMs:g.X0(this.bj.experiments,"html5_skip_slow_ad_delay_ms")||5E3,e3:!this.bj.j("html5_report_slow_ads_as_error")});this.Kn=new Tz({delayMs:g.X0(this.bj.experiments,"html5_skip_slow_ad_delay_ms")||5E3,e3:!this.bj.j("html5_skip_slow_buffering_ad")});this.fn=new Tz({delayMs:g.X0(this.bj.experiments,"html5_slow_start_timeout_delay_ms")});this.X3=Ot(this,"html5_slow_start_no_media_source");
g.y(this,this.L)};
Ot=function(Q,W){var x=g.X0(Q.bj.experiments,W+"_delay_ms");Q=Q.bj.j(W+"_cfl");return new Tz({delayMs:x,e3:Q})};
zhv=function(Q,W){Q.B=W};
Fj=function(Q,W,x,D,K,l,M,w){W.test(x)?(Q.zt(K,W,M),W.e3||l()):(W.AC&&W.U&&!W.N?(x=(0,g.a8)(),D?W.B||(W.B=x):W.B=0,l=!D&&x-W.U>W.AC,x=W.B&&x-W.B>W.Sn||l?W.N=!0:!1):x=!1,x&&(w=Object.assign({},Q.AO(W),w),w.wn=M,w.we=K,w.wsuc=D,Q.xf.qj("workaroundReport",w),D&&(W.reset(),Q.D[K]=!1)))};
Tz=function(Q){var W=Q===void 0?{}:Q;Q=W.delayMs===void 0?0:W.delayMs;var x=W.Sn===void 0?1E3:W.Sn;var D=W.AC===void 0?3E4:W.AC;W=W.e3===void 0?!1:W.e3;this.B=this.U=this.D=this.startTimestamp=0;this.N=!1;this.L=Math.ceil(Q/1E3);this.Sn=x;this.AC=D;this.e3=W};
urF=function(Q){g.N.call(this);var W=this;this.xf=Q;this.G=this.B=this.Bt=this.mediaElement=this.playbackData=null;this.N=0;this.L=this.uj=this.D=null;this.pS=!1;this.Vj=0;this.T=!1;this.timestampOffset=0;this.S=!0;this.eZ=0;this.O3=this.fn=!1;this.X=0;this.Pt=!1;this.F3=0;this.bj=this.xf.C();this.videoData=this.xf.getVideoData();this.policy=new kUv;this.KS=new Et(this.xf);this.SZ=this.g7=this.X3=this.U=NaN;this.LS=new g.O3(function(){X24(W,!1)},2E3);
this.Kn=new g.O3(function(){tn(W)});
this.s3=new g.O3(function(){W.pS=!0;oq5(W,{})});
this.tf=NaN;this.fS=new g.O3(function(){var x=W.bj.uG;x.B+=1E4/36E5;x.B-x.D>1/6&&(Qez(x),x.D=x.B);W.fS.start()},1E4);
g.y(this,this.KS);g.y(this,this.LS);g.y(this,this.s3);g.y(this,this.Kn);g.y(this,this.fS)};
Vyn=function(Q,W){Q.playbackData=W;Q.videoData.isLivePlayback&&(Q.G=new K3n(function(){a:{if(Q.playbackData&&Q.playbackData.B.B){if(zr(Q.videoData)&&Q.Bt){var x=Q.Bt.Lm.iS()||0;break a}if(Q.videoData.B){x=Q.videoData.B.KS;break a}}x=0}return x}),Q.B=new ZP(Q.videoData,Q.bj.experiments,function(){return Q.FY(!0)}));
Qh(Q.xf)?(W=YRl(Q),W.Sh?(Q.j("html5_sabr_enable_utc_seek_requests")&&MJ(Q.videoData)&&Q.MY(W.Sh,W.startSeconds),Q.N=W.startSeconds):W.startSeconds>0&&Q.seekTo(W.startSeconds,{N7:"seektimeline_startPlayback",seekSource:15}),Q.S=!1):nqO(Q)||(Q.N=Q.N||(g.TQ(Q.videoData)?0:Q.videoData.startSeconds)||0)};
vqs=function(Q,W){(Q.Bt=W)?Prv(Q,!0):W2(Q)};
Crh=function(Q,W){g.E3(Q.KS.L);Q.j("html5_exponential_memory_for_sticky")&&(W.state.isPlaying()?g.E3(Q.fS):Q.fS.stop());if(Q.mediaElement)if(W.oldState.state===8&&s0(W.state)&&W.state.isBuffering()){W=Q.mediaElement.getCurrentTime();var x=Q.mediaElement.O4();var D=Q.j("manifestless_post_live_ufph")||Q.j("manifestless_post_live")?wg(x,Math.max(W-3.5,0)):wg(x,W-3.5);D>=0&&W>x.end(D)-1.1&&D+1<x.length&&x.start(D+1)-x.end(D)<11&&(D=x.start(D+1)+.2,Math.abs(Q.tf-D)<.2||(Q.xf.qj("seekover",{b:RU(x,"_"),
cmt:W}),Q.tf=D,Q.seekTo(D,{IK:!0,N7:"seektimeline_postLiveDisc"})))}else((x=W.state)==null?0:x.state===8)&&!Q.O3&&(Q.videoData.limitedPlaybackDurationInSeconds>0?(xq(Q.xf,Q.getCurrentTime()+Q.videoData.limitedPlaybackDurationInSeconds),Q.O3=!0):Q.videoData.isLivePlayback&&Q.videoData.endSeconds>0&&(xq(Q.xf,Q.getCurrentTime()+Q.videoData.endSeconds),Q.O3=!0))};
p2F=function(Q,W){var x=Q.getCurrentTime(),D=Q.isAtLiveHead(x);if(Q.G&&D){var K=Q.G;if(K.B&&!(x>=K.U&&x<K.D)){var l=K.B.GC(x);l!==-1&&(K.U=K.B.getStartTime(l),K.D=K.U+K.B.getDuration(l),l=(0,g.a8)()/1E3-K.B.LZ(l),l-=K.L(),K.N.add(l))}}Q.B&&(D&&(K=Q.B,l=JEh(Q),K.N++,K.N<3||Date.now()-K.G<3E3||(K.G=Date.now(),K.U.push(l),K.U.length>50&&K.U.shift())),K=Q.B,SRs(K,x,W===void 0?!0:W),sJD(K,x),W&&X24(Q,!0));D!==Q.fn&&(W=Q.getCurrentTime()-Q.SZ<=500,x=Q.Vj>=1E3,W||x||(W=Q.xf.oW(),W.qoe&&(W=W.qoe,x=g.n9(W.provider),
g.C9(W,x,"lh",[D?"1":"0"])),Q.fn=D,Q.Vj++,Q.SZ=Q.getCurrentTime()))};
X24=function(Q,W){if(Q.B){var x=Q.B;var D=Q.getCurrentTime();!L9(x,D)&&x.cF()?(x.policy.X&&(x.policy.B=Math.max(x.policy.B+x.policy.L,x.policy.G)),x=Infinity):x=D<x.videoData.Jn()?Math.min(x.videoData.Jn()+10,x.Qk()):NaN;if(!isNaN(x)){if(Q.Bt&&W&&(W=Q.LS.isActive(),D=Q.B.Qk(),(D=fM5(Q.Bt,D-Q.aW()))&&!W)){Q.LS.start();Q.xf.qj("inBufferPtl",{cmt:Q.getCurrentTime(),seekTo:D+Q.aW()});Q.seekTo(D+Q.aW(),{N7:"seektimeline_inBufferSeek"});return}Q.seekTo(x,{N7:"seektimeline_pegToLive"})}}};
Prv=function(Q,W){if(Q.B&&Q.Bt){var x=!1;W?x=!0:Q.videoData.isLowLatencyLiveStream||Q.videoData.latencyClass==="LOW"||Q.videoData.latencyClass==="ULTRALOW"?x=RhO(Q.B):Q.Pt&&(Q.Pt=!1,x=RhO(Q.B,!0));x&&(W=Q.xf.oW(),x=Q.B,x=ri(x)*x.B,W.qoe&&(W=W.qoe,g.C9(W,g.n9(W.provider),"lra",[x]),W.qj("live-readahead-seconds",{v:x})));W=Q.Bt;x=Q.B.B;Q=Q.B;Q=(Q.B-1+Q.policy.B)*ri(Q);var D=NaN,K=W.Gn;K===2||K===-1?kN(W.xf.getVideoData())&&(D=W.policy.tj):--x;x=Math.max(x,0);K=W.L;K.B3=x;K.T=D;W.G&&(W.G.uj=Q)}};
hhh=function(Q,W){Q.N=W};
oq5=function(Q,W){aAl(Q,W).then(void 0,function(){W2(Q)});
GU5(Q).then(function(x){dFF(Q,x)},function(){W2(Q)});
Q.xf.Bb(W);Q.bj.jk()&&(W=Q.AO(),W["native"]=""+ +Q.T,W.tgt=""+Q.U,W.otgt=""+(Q.U+Q.timestampOffset),Q.B&&Q.j("html5_high_res_seek_logging")&&(W.tht=""+Q.B.X(),W.ht=""+Q.B.Qk(),W.adft=""+w2Q(Q.B)),Q.j("html5_sabr_parse_live_metadata_playback_boundaries")&&Q.videoData.B&&MJ(Q.videoData)&&(W.minst=""+Q.videoData.B.xg,W.cminst=""+(Q.videoData.B.Jn()+Q.timestampOffset),W.maxst=""+Q.videoData.B.t_,W.hts=""+Q.videoData.B.pS,W.cmaxst=""+(Q.videoData.B.FY()+Q.timestampOffset)),Q.xf.qj("startSeek",W))};
aAl=function(Q,W){Q.uj||(Q.Bt?isFinite(Q.U)?Q.uj=Q.Bt.seek(Q.U-Q.timestampOffset,W):(s_(Q.videoData),Q.uj=Dl(Q.Bt),F6(Q.videoData)||(Q.U=Q.Bt.getCurrentTime()+Q.timestampOffset)):Q.uj=g.ui(Q.U-Q.timestampOffset));return Q.uj};
GU5=function(Q){var W=Q.D;W||(Q.D=new th,W=Q.D,tn(Q));return W};
DA=function(Q,W,x){return isNaN(W)?NaN:g.wS(W,Q.Jn(),Q.FY(x))};
tn=function(Q){if(Q.D)if(Q.videoData.isLivePlayback&&Q.videoData.D&&!Q.videoData.D.B&&Q.mediaElement&&Q.mediaElement.aI()>0&&Wa(Q.mediaElement)>0&&(Q.U=DA(Q,Q.U,!1)),!Q.mediaElement||!igs(Q))Q.Kn.start(750);else if(!isNaN(Q.U)&&isFinite(Q.U)){var W=Q.g7-(Q.U-Q.timestampOffset);if(!(W===0||Q.j("html5_enable_new_seek_timeline_logic")&&Math.abs(W)<.005))if(W=Q.mediaElement.getCurrentTime()-Q.U,Math.abs(W)<=Q.eZ||Q.j("html5_enable_new_seek_timeline_logic")&&Math.abs(W)<.005)Q.D&&Q.D.resolve(Q.mediaElement.getCurrentTime());
else{if(Q.videoData.b9)Q.videoData.b9=!1;else if(!s_(Q.videoData)&&Q.U>=Q.FY()-.1){Q.U=Q.FY();Q.D.resolve(Q.FY());Q.xf.Kd();return}try{var x=Q.U-Q.timestampOffset;Q.mediaElement.seekTo(x);Q.KS.B=x;Q.g7=x;Q.N=Q.U;Q.j("html5_enable_new_seek_timeline_logic")&&(Q.T=!1)}catch(D){}}}};
igs=function(Q){if(!Q.mediaElement||Q.mediaElement.aI()===0||Q.mediaElement.hasError())return!1;var W=Q.mediaElement.getCurrentTime()>0;if(!(Q.videoData.D&&Q.videoData.D.B||Q.videoData.isLivePlayback)&&Q.videoData.n3())return W;if(Q.U>=0){var x=Q.mediaElement.qe();if(x.length||!W)return Se(x,Q.U-Q.timestampOffset)}return W};
dFF=function(Q,W){Q.L&&(Q.L.resolve(W),Q.xf.p8(),Q.bj.jk()&&(W=Q.AO(),W["native"]=""+ +Q.T,W.otgt=""+(Q.U+Q.timestampOffset),Q.xf.qj("seekEnd",W)));W2(Q)};
W2=function(Q){Q.U=NaN;Q.g7=NaN;Q.D=null;Q.uj=null;Q.L=null;Q.pS=!1;Q.T=!1;Q.eZ=0;Q.LS.stop();Q.s3.stop()};
UFD=function(Q,W,x){var D=Q.mediaElement,K=W.type;switch(K){case "seeking":var l=D.getCurrentTime()+Q.timestampOffset;if(!Q.D||Q.T&&l!==Q.U){var M=!!Q.D;Q.D=new th;Q.j("html5_enable_new_seek_timeline_logic")&&Q.D.then(function(S){dFF(Q,S)},function(){W2(Q)});
if(Q.videoData.isAd()){var w;w3z({adCpn:Q.videoData.clientPlaybackNonce,contentCpn:(w=Q.videoData.ES)!=null?w:""},W.B)}Q.g7=l;zhv(Q.KS,D.getCurrentTime());Q.seekTo(l,{seekSource:104,N7:"seektimeline_mediaElementEvent"});x&&AEz(x,l*1E3,!!M);Q.T=!0}break;case "seeked":Q.D&&Q.D.resolve(Q.mediaElement.getCurrentTime());break;case "loadedmetadata":Qh(Q.xf)||Hg5(Q);tn(Q);break;case "progress":tn(Q);break;case "pause":Q.X=Q.getCurrentTime()}Q.X&&((K==="play"||K==="playing"||K==="timeupdate"||K==="progress")&&
Q.getCurrentTime()-Q.X>10&&(Q.j("html5_enable_new_media_element_puase_jump")?(Q.xf.zt(new Gu("qoe.restart",{reason:"pauseJump"})),Q.xf.QI(),Q.seekTo(Q.X,{N7:"pauseJumpNewElement"})):Q.seekTo(Q.X,{N7:"pauseJump"})),K!=="pause"&&K!=="play"&&K!=="playing"&&K!=="progress"&&(Q.X=0))};
qR4=function(Q){return(dG(Q.videoData)||!!Q.videoData.liveUtcStartSeconds)&&(!!Q.videoData.liveUtcStartSeconds||nqO(Q))&&!!Q.videoData.B};
nqO=function(Q){return!!Q.videoData.startSeconds&&isFinite(Q.videoData.startSeconds)&&Q.videoData.startSeconds>1E9};
YRl=function(Q){var W=0,x=NaN,D="";if(!Q.S)return{startSeconds:W,Sh:x,source:D};Q.videoData.LS?W=Q.videoData.X3:s_(Q.videoData)&&(W=Infinity);if(g.Gr(Q.videoData))return{startSeconds:W,Sh:x,source:D};Q.videoData.startSeconds?(D="ss",W=Q.videoData.startSeconds):Q.videoData.IU&&(D="stss",W=Q.videoData.IU);Q.videoData.liveUtcStartSeconds&&(x=Q.videoData.liveUtcStartSeconds);if(isFinite(W)&&(W>Q.FY()||W<Q.Jn())){var K={};K.minSeekableTime=Q.Jn();K.maxSeekableTime=Q.FY();K.cmt=Q.getCurrentTime();K.ss=
W;K.utc=x;K.src=D;Q.xf.qj("startSecondsOutOfBounds",K);Q.videoData.lN()&&(W=DA(Q,W,!1))}return{startSeconds:W,Sh:x,source:D}};
Hg5=function(Q){if(Q.S)if(g.Gr(Q.videoData))Q.S=!1;else{var W="ss",x=0,D;((D=Q.videoData.B)==null?0:D.isManifestless)&&Q.videoData.Gn&&!nqO(Q)&&(W="mss",x=Q.videoData.Gn);(Q.videoData.LS?Q.j("html5_prioritize_windowed_st_start_seconds"):Q.j("html5_prioritize_st_start_seconds"))&&!x&&Q.videoData.IU&&(W="stss",x=Q.videoData.IU);!x&&qR4(Q)&&(x=Q.videoData.liveUtcStartSeconds||Q.videoData.Gn,W="utc",x=Q.FY()-Q.LZ(Q.FY())+x);x||Q.j("html5_prefer_initial_ss_over_stream_time_ss_for_vod")&&!Q.videoData.lN()||
!Q.videoData.IU||(W="stss",x=Q.videoData.IU);D={};if(x){if(x>Q.FY()||x<Q.Jn())D.minSeekableTime=Q.Jn(),D.maxSeekableTime=Q.FY(),D.cmt=Q.getCurrentTime(),D.it=Q.LZ(Q.getCurrentTime()),D.ss=x,D.utc=qR4(Q)?Q.videoData.liveUtcStartSeconds||Q.videoData.Gn:0,Q.xf.qj("startSecondsOutOfBounds",D),Q.videoData.lN()&&(x=DA(Q,x,!1));Q.seekTo(x,{N7:"seektimeline_startSeconds"});D[W]=x;Q.xf.qj("startSeconds",D);Q.S=!1}else Q.videoData.Gn&&(D[W]=Q.videoData.Gn+Q.aW(),Q.xf.qj("startSeconds",D))}};
Bds=function(Q,W){Q.xf.qj("sdai",{adj4t:W.toFixed(3)});Q.X3=W;W+=1;Q.U=W;Q.N=W;GU5(Q).then(function(x){dFF(Q,x)},function(){W2(Q)})};
JEh=function(Q){return Q.mediaElement?xa(Q.mediaElement):0};
kUv=function(){};
Kg=function(Q){g.N.call(this);this.D=Q;this.B=new Map;this.U=new g.O3(this.sample,250,this);g.y(this,this.U);this.start()};
lr=function(Q,W){if((Q=Q.B.get(W))==null)Q=void 0;else{Q=Q.buffer;for(W=[];Q.U!==Q.B;)Q.U=(Q.U+1)%Q.data.length,W.push(Q.data[Q.U]);Q=W}return Q||[]};
jy=function(Q,W){var x;return((x=Q.B.get(W))==null?void 0:DF2(x.buffer))||0};
$FQ=function(Q){this.B=Q;this.Po=NaN;this.buffer=new e5(100)};
MF=function(){this.finished=this.started=!1};
yEQ=function(Q){function W(K){return x.t_&&(!D.xI||!D.Dp.G)||x.uj!=="yt"&&(D.partnerId===38&&x.playerStyle==="books"||D.partnerId===30&&x.playerStyle==="docs"||D.partnerId===33&&x.playerStyle==="google-live")?IAD(Q,D,K):mF4(Q,D).then(function(){RJ(Q,D)},function(l){RJ(Q,D,!0);
throw l;})}
var x=Q.C(),D=Q.getVideoData();D.d7();D.loading=!0;return Nda(Q)?cE4(Q,D).then(function(){RJ(Q,D)},function(K){K=i7(K);
if(dw(K.severity))return RJ(Q,D,!0),Promise.reject(K);K.errorCode==="onesie.response.badproxystatus"&&""+K.details.st==="3"&&(gq5=!0);Q.handleError(K);return W("onesie")}):W("gvi")};
Nda=function(Q){var W=Q.C();if(W.j("html5_disable_onesie_when_no_subtlecrypto")&&!PE()||W.j("html5_disable_onesie")||!W.j("html5_onesie")||!W.j("html5_onesie_inline")&&Q.getVisibilityState()===5||W.uj!=="yt")return!1;var x=W.Wz;if(!x||!x.B)return Q.handleError(new Gu("onesie.unavailable.hotconfig",{key:"0"})),!1;if(x.B.L<(0,g.a8)()&&(Q.qj("okexp","1"),(x=Q.bl())&&W.j("html5_prefer_trusted_host_on_key_expiration"))){x.U=!0;var D;(W=(D=x.B.get(0))==null?void 0:hW(D.location))&&!zO(W)&&x.B.delete(0)}if(gq5)return Q.qj("ost3",
"1"),!1;D={};return Object.keys(D).length>0?(D.onesie="0",Q.handleError(new Gu("html5.missingapi",D)),!1):!0};
ehz=function(Q){var W=mh();Nf(W,Q);return g.ll(W,vz2())};
cE4=function(Q,W){var x,D,K,l,M,w,S,b,z,k,X,u,Y,v,J,h,G,H,I,c,O,T,Ks,Mz,QF,f;return g.U(function(t){if(t.B==1)return W.fetchType="onesie",x=Aza(W,Q.getPlayerSize(),Q.getVisibilityState()),D=new eH(Q,x),g.A(t,D.fetch(),2);K=t.U;l={player_response:K};W.loading=!1;M=Q.L_.f0;if(D.bS){w=g.V(D.bS.entries());for(S=w.next();!S.done;S=w.next())b=S.value,z=g.V(b),k=z.next().value,X=z.next().value,u=k,Y=X,M.B.set(u,Y,180),u===W.videoId&&(v=Y.sN(),W.S7=v);M.kR=D}J=g.V(D.wO.entries());for(h=J.next();!h.done;h=
J.next())G=h.value,H=g.V(G),I=H.next().value,c=H.next().value,O=I,T=c,M.U.set(O,T,180);g.r0(W,l,!0);if(W.loading||Zd(W))return t.return(Promise.resolve());M.B.removeAll();M.U.removeAll();W.S7=[];Ks={};Mz="onesie.response";QF=0;W.errorCode?(Mz="auth",Ks.ec=W.errorCode,Ks.ed=W.errorDetail,Ks.es=W.J8||"",QF=2):(Ks.successButUnplayable="1",Ks.disposed=""+ +W.d7(),Ks.afmts=""+ +/adaptiveFormats/.test(K),Ks.cpn=W.clientPlaybackNonce);f=new Gu(Mz,Ks,QF);return t.return(Promise.reject(f))})};
mF4=function(Q,W){var x,D,K,l,M,w,S,b,z,k,X;return g.U(function(u){switch(u.B){case 1:x=W.isAd(),D=!x,K=x?1:3,l=0;case 2:if(!(l<K)){u.kf(4);break}if(!(l>0)){u.kf(5);break}return g.A(u,Jr(5E3),6);case 6:M=new g.Lw("Retrying OnePlatform request",{attempt:l}),g.Bp(M);case 5:return g.P5(u,7),g.A(u,fAs(Q,W),9);case 9:return u.return();case 7:w=g.Jv(u);S=i7(w);b=S.errorCode;z=Q.C();k=z.j("html5_use_network_error_code_enums")?401:"401";D&&b==="manifest.net.badstatus"&&S.details.rc===k&&(D=!1,l===K-1&&(K+=
1));if(l===K-1)return X=ZgO(x,S.details),X.details.backend="op",X.details.originec=b,u.return(Promise.reject(X));if(b==="auth"||b==="manifest.net.retryexhausted")return u.return(Promise.reject(S));Q.handleError(S);if(dw(S.severity)){u.kf(4);break}case 3:l++;u.kf(2);break;case 4:return u.return(Promise.reject(ZgO(x,{backend:"op"})))}})};
fAs=function(Q,W){function x(Mz){Mz.readyState===2&&Q.Tt("ps_c")}
var D,K,l,M,w,S,b,z,k,X,u,Y,v,J,h,G,H,I,c,O,T,Ks;return g.U(function(Mz){switch(Mz.B){case 1:W.fetchType="gp";D=Q.C();K=g.lb(D,g.ZM(W));if(!K.B){l=K.getValue();Mz.kf(2);break}return g.A(Mz,K.B,3);case 3:l=Mz.U;case 2:return M=l,w=ehz(M),S=Aza(W,Q.getPlayerSize(),Q.getVisibilityState()),b=g.Q_(L32),z=g.ZM(W),k=(0,g.a8)(),X=!1,u="empty",Y=0,Q.Tt("psns"),v={XH:x},g.A(Mz,g.Ti(w,S,b,void 0,v),4);case 4:J=Mz.U;Q.Tt("psnr");if(W.d7())return Mz.return();J?"error"in J&&J.error?(X=!0,u="esf:"+J.error.message,
Y=J.error.code):J.errorMetadata&&(X=!0,u="its",Y=J.errorMetadata.status):X=!0;if(X)return h=0,G=((0,g.a8)()-k).toFixed(),H={},H=D.j("html5_use_network_error_code_enums")?{backend:"op",rc:Y,rt:G,reason:u,has_kpt:W.Kn?"1":"0",has_mdx_env:W.mdxEnvironment?"1":"0",has_omit_key_flag:g.TK("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:D.pageId?"1":"0",has_token:z?"1":"0",has_vvt:W.pS?"1":"0",is_mdx:W.isMdxPlayback?"1":"0",mdx_ctrl:W.V1||"",token_eq:z===g.ZM(W)?"1":"0"}:{backend:"op",
rc:""+Y,rt:G,reason:u,has_kpt:W.Kn?"1":"0",has_mdx_env:W.mdxEnvironment?"1":"0",has_omit_key_flag:g.TK("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:D.pageId?"1":"0",has_token:z?"1":"0",has_vvt:W.pS?"1":"0",is_mdx:W.isMdxPlayback?"1":"0",mdx_ctrl:W.V1||"",token_eq:z===g.ZM(W)?"1":"0"},I="manifest.net.connect",Y===429?(I="auth",h=2):Y>200&&(I="manifest.net.badstatus",Y===400&&(h=2)),Mz.return(Promise.reject(new Gu(I,H,h)));W.loading=!1;g.r0(W,{raw_player_response:J},!0);
c=J;g.BL(W.C())&&c&&c.trackingParams&&AB(c.trackingParams);if(W.errorCode)return O={ec:W.errorCode,ed:W.errorDetail,es:W.J8||""},Mz.return(Promise.reject(new Gu("auth",O,2)));if(!W.loading&&!Zd(W))return T=W.isAd()?"auth":"manifest.net.retryexhausted",Ks=W.isAd()?2:1,Mz.return(Promise.reject(new Gu(T,{successButUnplayable:"1",hasMedia:g.Jf(W)?"1":"0"},Ks)));g.VF(Mz)}})};
IAD=function(Q,W,x){function D(Y){Y=i7(Y);if(dw(Y.severity))return Promise.reject(Y);Q.handleError(Y);return!1}
function K(){return!0}
var l,M,w,S,b,z,k,X,u;return g.U(function(Y){switch(Y.B){case 1:var v=Q.C(),J=Q.getPlayerSize(),h=Q.getVisibilityState();Q.isFullscreen();var G=window.location.search;if(W.partnerId===38&&v.playerStyle==="books")G=W.videoId.indexOf(":"),G=g.ya("//play.google.com/books/volumes/"+W.videoId.slice(0,G)+"/content/media",{aid:W.videoId.slice(G+1),sig:W.jm});else if(W.partnerId===30&&v.playerStyle==="docs")G=g.ya("https://docs.google.com/get_video_info",{docid:W.videoId,authuser:W.NJ,authkey:W.EL,eurl:v.I5});
else if(W.partnerId===33&&v.playerStyle==="google-live")G=g.ya("//google-liveplayer.appspot.com/get_video_info",{key:W.videoId});else{v.uj!=="yt"&&g.ql(Error("getVideoInfoUrl for invalid namespace: "+v.uj));var H={html5:"1",video_id:W.videoId,cpn:W.clientPlaybackNonce,eurl:v.I5,ps:v.playerStyle,el:$N(W),hl:v.Kn,list:W.playlistId,agcid:W.iK,aqi:W.adQueryId,sts:20150,lact:aK()};Object.assign(H,v.B);v.forcedExperiments&&(H.forced_experiments=v.forcedExperiments);W.pS?(H.vvt=W.pS,W.mdxEnvironment&&(H.mdx_environment=
W.mdxEnvironment)):g.ZM(W)&&(H.access_token=g.ZM(W));W.adFormat&&(H.adformat=W.adFormat);W.slotPosition>=0&&(H.slot_pos=W.slotPosition);W.breakType&&(H.break_type=W.breakType);W.oE!==null&&(H.ad_id=W.oE);W.sR!==null&&(H.ad_sys=W.sR);W.b0!==null&&(H.encoded_ad_playback_context=W.b0);v.captionsLanguagePreference&&(H.cc_lang_pref=v.captionsLanguagePreference);v.Vj&&v.Vj!==2&&(H.cc_load_policy=v.Vj);var I=g.g3(g.ck(),65);g.ET(v)&&I!=null&&!I&&(H.device_captions_on="1");v.mute&&(H.mute=v.mute);W.annotationsLoadPolicy&&
v.annotationsLoadPolicy!==2&&(H.iv_load_policy=W.annotationsLoadPolicy);W.Sz&&(H.endscreen_ad_tracking=W.Sz);(I=v.LS.get(W.videoId))&&I.Md&&(H.ic_track=I.Md);W.fS&&(H.itct=W.fS);cX(W)&&(H.autoplay="1");W.mutedAutoplay&&(H.mutedautoplay=W.mutedAutoplay);W.isAutonav&&(H.autonav="1");W.V5&&(H.noiba="1");W.isMdxPlayback&&(H.mdx="1",H.ytr=W.Yp);W.mdxControlMode&&(H.mdx_control_mode=W.mdxControlMode);W.uY&&(H.ytrcc=W.uY);W.WU&&(H.utpsa="1");W.isFling&&(H.is_fling="1");W.isInlinePlaybackNoAd&&(H.mute="1");
W.vnd&&(H.vnd=W.vnd);W.forceAdsUrl&&(I=W.forceAdsUrl.split("|").length===3,H.force_ad_params=I?W.forceAdsUrl:"||"+W.forceAdsUrl);W.RQ&&(H.preload=W.RQ);J.width&&(H.width=J.width);J.height&&(H.height=J.height);(W.uG?0:W.Ke)&&(H.splay="1");W.ypcPreview&&(H.ypc_preview="1");mW(W)&&(H.content_v=mW(W));W.Pt&&(H.livemonitor=1);v.F3&&(H.authuser=v.F3);v.pageId&&(H.pageid=v.pageId);v.O3&&(H.ei=v.O3);v.N&&(H.iframe="1");W.contentCheckOk&&(H.cco="1");W.racyCheckOk&&(H.rco="1");v.G&&W.hj&&(H.live_start_walltime=
W.hj);v.G&&W.Pz&&(H.live_manifest_duration=W.Pz);v.G&&W.playerParams&&(H.player_params=W.playerParams);v.G&&W.cycToken&&(H.cyc=W.cycToken);v.G&&W.Wy&&(H.tkn=W.Wy);h!==0&&(H.vis=h);v.enableSafetyMode&&(H.enable_safety_mode="1");W.Kn&&(H.kpt=W.Kn);W.Pi&&(H.kids_age_up_mode=W.Pi);W.kidsAppInfo&&(H.kids_app_info=W.kidsAppInfo);W.U_&&(H.upg_content_filter_mode="1");v.widgetReferrer&&(H.widget_referrer=v.widgetReferrer.substring(0,128));W.uj?(J=W.uj.latitudeE7!=null&&W.uj.longitudeE7!=null?W.uj.latitudeE7+
","+W.uj.longitudeE7:",",J+=","+(W.uj.clientPermissionState||0)+","+(W.uj.locationRadiusMeters||"")+","+(W.uj.locationOverrideToken||"")):J=null;J&&(H.uloc=J);W.rz&&(H.internalipoverride=W.rz);v.embedConfig&&(H.embed_config=v.embedConfig);v.m1&&(H.co_rel="1");v.ancestorOrigins.length>0&&(H.ancestor_origins=Array.from(v.ancestorOrigins).join(","));v.homeGroupInfo!==void 0&&(H.home_group_info=v.homeGroupInfo);v.livingRoomAppMode!==void 0&&(H.living_room_app_mode=v.livingRoomAppMode);v.enablePrivacyFilter&&
(H.enable_privacy_filter="1");W.isLivingRoomDeeplink&&(H.is_living_room_deeplink="1");W.Ra&&W.Ia&&(H.clip=W.Ra,H.clipt=W.Ia);W.iD&&(H.disable_watch_next="1");W.u$&&(H.forced_by_var="1");for(var c in H)!rEa.has(c)&&H[c]&&String(H[c]).length>512&&(g.Bp(Error("GVI param too long: "+c)),H[c]="");c=v.n2;g.$h(v)&&(c=WP(c.replace(/\b(?:www|web)([.-])/,"tv$1"))||v.n2);v=g.ya(c+"get_video_info",H);G&&(v=oB4(v,G));G=v}l=G;w=(M=W.isAd())?1:3;S=0;case 2:if(!(S<w)){Y.kf(4);break}b=l;if(!(S>0)){Y.kf(5);break}return g.A(Y,
Jr(5E3),6);case 6:z={playerretry:S,playerretrysrc:x},M||(z.recover="embedded"),b=MO(l,z);case 5:return g.A(Y,TdF(W,b).then(K,D),7);case 7:if(k=Y.U)return Y.return();S++;Y.kf(2);break;case 4:X=M?"auth":"manifest.net.retryexhausted";u=M?2:1;if(!M&&Math.random()<1E-4)try{g.Bp(new g.Lw("b/152131571",btoa(l)))}catch(O){}return Y.return(Promise.reject(new Gu(X,{backend:"gvi"},u)))}})};
TdF=function(Q,W){function x(J){return D(J.xhr)}
function D(J){if(!Q.d7()){J=J?J.status:-1;var h=0,G=((0,g.a8)()-z).toFixed();G=K.j("html5_use_network_error_code_enums")?{backend:"gvi",rc:J,rt:G}:{backend:"gvi",rc:""+J,rt:G};var H="manifest.net.connect";J===429?(H="auth",h=2):J>200&&(H="manifest.net.badstatus",J===400&&(h=2));return Promise.reject(new Gu(H,G,h))}}
var K,l,M,w,S,b,z,k,X,u,Y,v;return g.U(function(J){if(J.B==1){Q.fetchType="gvi";K=Q.C();var h={};Q.Yw&&(h.ytrext=Q.Yw);(w=g.dS(h)?void 0:h)?(l={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:w},M=MO(W,{action_display_post:1})):(l={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},M=W);S={};K.sendVisitorIdHeader&&Q.visitorData&&(S["X-Goog-Visitor-Id"]=Q.visitorData);(b=Qv(K.experiments,"debug_sherlog_username"))&&(S["X-Youtube-Sherlog-Username"]=b);Object.keys(S).length>
0&&(l.headers=S);z=(0,g.a8)();return g.A(J,S8(dm,M,l).then(void 0,x),2)}k=J.U;if(!k||!k.responseText)return J.return(D(k));Q.loading=!1;X=Ds(k.responseText);g.r0(Q,X,!0);if(Q.errorCode)return u={ec:Q.errorCode,ed:Q.errorDetail,es:Q.J8||""},J.return(Promise.reject(new Gu("auth",u,2)));if(!Q.loading&&!Zd(Q))return Y=Q.isAd()?"auth":"manifest.net.retryexhausted",v=Q.isAd()?2:1,J.return(Promise.reject(new Gu(Y,{successButUnplayable:"1"},v)));g.VF(J)})};
ZgO=function(Q,W){return new Gu(Q?"auth":"manifest.net.retryexhausted",W,Q?2:1)};
RJ=function(Q,W,x){x=x===void 0?!1:x;var D,K,l,M;g.U(function(w){if(w.B==1){D=Q.C();if(x&&(!g.tC(D)||$N(W)!=="embedded")||W.iD||$N(W)!=="adunit"&&(g.dO(D)||yv(D)||g.Il(D)||g.$h(D)||Fm(D)==="WEB_CREATOR"))return w.return();K=g.lb(D,g.ZM(W));return K.B?g.A(w,K.B,3):(l=K.getValue(),w.kf(2))}w.B!=2&&(l=w.U);M=l;return w.return(OgQ(Q,W,M))})};
OgQ=function(Q,W,x){var D,K,l,M,w;return g.U(function(S){if(S.B==1){g.P5(S,2);D=ehz(x);var b=W.C();g.ck();var z={context:g.j9(W),videoId:W.videoId,racyCheckOk:W.racyCheckOk,contentCheckOk:W.contentCheckOk,autonavState:"STATE_NONE"};$N(W)==="adunit"&&(z.isAdPlayback=!0);b.embedConfig&&(z.serializedThirdPartyEmbedConfig=b.embedConfig);b.m1&&(z.showContentOwnerOnly=!0);W.bX&&(z.showShortsOnly=!0);g.g3(0,141)&&(z.autonavState=g.g3(0,140)?"STATE_OFF":"STATE_ON");if(g.ET(b)){var k=g.g3(0,65);k=k!=null?
!k:!1;var X=!!g.qW("yt-player-sticky-caption");z.captionsRequested=k&&X}var u;if(b=(u=b.getWebPlayerContextConfig())==null?void 0:u.encryptedHostFlags)z.playbackContext={encryptedHostFlags:b};K=z;l=g.Q_(EqD);Q.Tt("wn_s");return g.A(S,g.Ti(D,K,l),4)}if(S.B!=2)return M=S.U,Q.Tt("wn_r"),!M||"error"in M&&M.error||(w=M,g.BL(W.C())&&w.trackingParams&&AB(w.trackingParams),g.r0(W,{raw_watch_next_response:M},!1)),g.Cs(S,0);g.Jv(S);g.VF(S)})};
F3h=function(Q){Q.Tt("vir");Q.Tt("ps_s");fA("vir",void 0,"video_to_ad");var W=yEQ(Q);W.then(function(){Q.Tt("virc");fA("virc",void 0,"video_to_ad");Q.Tt("ps_r");fA("ps_r",void 0,"video_to_ad")},function(){Q.Tt("virc");
fA("virc",void 0,"video_to_ad")});
return W};
g.br=function(Q,W,x,D,K,l,M,w,S,b){S=S===void 0?new g.f1(Q):S;b=b===void 0?!0:b;g.Rd.call(this);var z=this;this.bj=Q;this.playerType=W;this.Qh=x;this.QW=D;this.getVisibilityState=l;this.visibility=M;this.L_=w;this.videoData=S;this.zG=b;this.logger=new g.MP("VideoPlayer");this.sT=null;this.wy=new zz;this.GL=null;this.jg=!0;this.r7=this.Bt=null;this.w3=[];this.XA=new MF;this.A2=this.m8=null;this.l_=new MF;this.JC=null;this.Rf=this.T5=!1;this.Xf=NaN;this.XU=!1;this.playerState=new g.lW;this.E5=[];this.wM=
new g.I0;this.DS=new rtn(this);this.mediaElement=null;this.Fo=new g.O3(this.Rh9,15E3,this);this.Jm=this.eb=!1;this.A3=NaN;this.Wj=!1;this.KP=0;this.hY=!1;this.PY=NaN;this.yw=new Kg(new Map([["bufferhealth",function(){return JEh(z.K_)}],
["bandwidth",function(){return z.P0()}],
["networkactivity",function(){return z.bj.schedule.F3}],
["livelatency",function(){return z.isAtLiveHead()&&z.isPlaying()?tyQ(z):NaN}],
["rawlivelatency",function(){return tyQ(z)}]]));
this.Nu=0;this.loop=!1;this.playbackRate=1;this.L1=0;this.K_=new urF(this);this.l8=!1;this.LX=[];this.Iq=this.lP=0;this.Fb=this.rp=!1;this.VE=this.hq=0;this.JB=-1;this.kC="";this.n6=new g.O3(this.u3j,0,this);this.MS=!1;this.nS=this.Ex=null;this.in3=[this.wM,this.n6,this.Fo,this.yw];this.WH=this.yl=null;this.PZ=function(){var k=z.oW();k.provider.bj.Ke||k.provider.xf.getVisibilityState()===3||(k.provider.bj.Ke=!0);k.zf();if(k.U){var X=k.U;X.L&&X.B<0&&X.provider.xf.getVisibilityState()!==3&&pf1(X)}k.qoe&&
(k=k.qoe,k.O3&&k.U<0&&k.provider.bj.Ke&&xHO(k),k.D&&p9(k));z.Bt&&wd(z);z.bj.zz&&!z.videoData.backgroundable&&z.mediaElement&&!z.m$()&&(z.isBackground()&&z.mediaElement.g4()?(z.qj("bgmobile",{suspend:1}),z.WM(!0,!0)):z.isBackground()||Sy(z)&&z.qj("bgmobile",{resume:1}))};
this.by={Gz:function(k){z.Gz(k)},
cot:function(k){z.sT=k},
HNt:function(){return z.Zd},
Tf:function(){return z.T6},
fv:function(){return z.r7},
mz1:function(){return z.kt},
yEf:function(){return z.fP},
Aqp:function(){},
C:function(){return z.bj},
DG:function(){return z.mediaElement},
hB3:function(k){z.qT(k)},
Bcp:function(){return z.QW}};
this.logger.debug(function(){return"creating, type "+W});
this.kP=new QJl(this.bj);this.YW=new MH5(this.bj,this.QW,this);this.tA=new g.gi(function(){return z.getCurrentTime()},function(){return z.getPlaybackRate()},function(){return z.getPlayerState()},function(k,X){k!==g.Ru("endcr")||g.r(z.playerState,32)||z.Kd();
K(k,X,z.playerType)},function(k,X){g.TQ(z.videoData)&&z.qj(k,X)});
g.y(this,this.tA);g.y(this,this.K_);Qgz(this,S);this.videoData.subscribe("dataupdated",this.c2Z,this);this.videoData.subscribe("dataloaded",this.s0,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.qj,this);this.videoData.subscribe("ctmpstr",this.VO,this);this.KO();ZG5(this.PZ);this.visibility.subscribe("visibilitystatechange",this.PZ);this.kt=new g.O3(this.qd,g.X0(this.bj.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.fP=
new g.O3(this.qd,g.X0(this.bj.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.CL=new g.Qu(this.WB,g.X0(this.bj.experiments,"html5_progress_event_throttle_ms")||350,this);g.y(this,this.CL)};
Qgz=function(Q,W){if(Q.playerType===2||Q.bj.xg)W.g2=!0;var x=Z$v(W.Cn,W.FJ,Q.bj.N,Q.bj.G);x&&(W.adFormat=x);Q.playerType===2&&(W.g5=!0);if(Q.isFullscreen()||Q.bj.N)x=g.qW("yt-player-autonavstate"),W.autonavState=x||(Q.bj.N?2:Q.videoData.autonavState);W.endSeconds&&W.endSeconds>W.startSeconds&&xq(Q,W.endSeconds)};
Wc4=function(Q){IPQ(Q.Zd);g.w1(Q.Zd);for(var W=Q.T6,x=g.V(W.B.values()),D=x.next();!D.done;D=x.next())IPQ(D.value);W.B.clear();g.w1(Q.T6)};
xtO=function(Q){var W=Q.videoData;F3h(Q).then(void 0,function(x){Q.videoData!==W||W.d7()||(x=i7(x),x.errorCode==="auth"&&Q.videoData.errorDetail?Q.dH(x.errorCode,2,unescape(Q.videoData.errorReason),a0(x.details),Q.videoData.errorDetail,Q.videoData.J8||void 0):Q.handleError(x))})};
lh4=function(Q){if(!g.r(Q.playerState,128))if(Q.videoData.isLoaded(),Q.logger.debug("finished loading playback data"),Q.w3=g.DX(Q.videoData.KS),g.Jf(Q.videoData)){Q.Qh.tick("bpd_s");sR(Q).then(function(){Q.Qh.tick("bpd_c");if(!Q.d7()){Q.T5&&(Q.q7(RA(RA(Q.playerState,512),1)),Sy(Q));var D=Q.videoData;D.endSeconds&&D.endSeconds>D.startSeconds&&xq(Q,D.endSeconds);Q.XA.finished=!0;zU(Q,"dataloaded");Q.l_.qY()&&Dt1(Q);JYh(Q.YW,Q.A2)}});
Q.j("html5_log_media_perf_info")&&Q.qj("loudness",{v:Q.videoData.wx.toFixed(3)},!0);var W,x=(W=Q.mediaElement)==null?void 0:W.yh();if(x&&"disablePictureInPicture"in x&&Q.bj.pu)try{x.disablePictureInPicture=Q.bj.Ct&&!Q.videoData.backgroundable}catch(D){g.Bp(D)}KcD(Q)}else zU(Q,"dataloaded")};
sR=function(Q){kq(Q);Q.A2=null;var W=xF2(Q.bj,Q.videoData,Q.m$());Q.m8=W;Q.m8.then(function(x){jgD(Q,x)},function(x){Q.d7()||(x=i7(x),Q.visibility.isBackground()?(Xr(Q,"vp_none_avail"),Q.m8=null,Q.XA.reset()):(Q.XA.finished=!0,Q.dH(x.errorCode,x.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",a0(x.details))))});
return W};
jgD=function(Q,W){if(!Q.d7()&&!W.videoData.d7()){Q.logger.debug("finished building playback data");Q.A2=W;Vyn(Q.K_,Q.A2);if(Q.videoData.isLivePlayback){var x=M7s(Q.L_.f0,Q.videoData.videoId)||Q.Bt&&!isNaN(Q.Bt.F3);x=Q.j("html5_onesie_live")&&x;Qh(Q)||Q.videoData.Gn>0&&!zr(Q.videoData)||x||Q.seekTo(Q.FY(),{N7:"videoplayer_playbackData",seekSource:18})}if(Q.videoData.D.B){if(Q.j("html5_sabr_report_missing_url_as_error")&&Vs1(Q.videoData)){Q.handleError(new Gu("fmt.missing",{missabrurl:"1"},2));return}Q.Bt?
g.Bp(Error("Duplicated Loader")):(x=g.X0(Q.bj.experiments,"html5_onesie_defer_content_loader_ms"))&&Q.YI()&&M7s(Q.L_.f0,Q.videoData.YO)?g.oc(function(){Q.d7()||Q.Bt||RCn(Q)},x):RCn(Q)}else!Q.videoData.D.B&&O_(Q.videoData)&&Q.Sb(new k9(Q.videoData.videoId||"",4));
Q.S6();uqs(W).then(function(){var D={};Q.yT(D);Q.bj.jk()&&Q.j("html5_log_media_perf_info")&&Q.qj("av1Info",D);wd(Q)})}};
Dt1=function(Q){Q.d7();Q.logger.debug("try finish readying playback");if(Q.l_.finished)Q.logger.debug("already finished readying");else if(Q.XA.finished)if(g.r(Q.playerState,128))Q.logger.debug("cannot finish readying because of error");else if(Q.w3.length)Q.logger.debug(function(){return"cannot finish readying because of pending preroll: "+Q.w3});
else if(Q.tA.started||E0D(Q.tA),Q.vM())Q.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{Q.Bt&&(Q.Rf=V22(Q.Bt.timing));Q.l_.finished||(Q.l_.finished=!0);var W=Q.j("html5_onesie_live")&&Q.Bt&&!isNaN(Q.Bt.F3);!Q.videoData.isLivePlayback||Q.videoData.Gn>0&&!zr(Q.videoData)||W||Qh(Q)||(Q.logger.debug("seek to head for live"),Q.seekTo(Infinity,{N7:"videoplayer_readying",seekSource:18}),Q.isBackground()&&(Q.Jm=!0));UHO(Q.oW());Q.logger.debug("finished readying playback");
Q.publish("playbackready",Q);y_("pl_c",Q.Qh.timerName)||(Q.Qh.tick("pl_c"),fA("pl_c",void 0,"video_to_ad"));y_("pbr",Q.Qh.timerName)||(Q.Qh.tick("pbr"),fA("pbr",void 0,"video_to_ad"))}else Q.logger.debug("playback data not loaded")};
xq=function(Q,W){Q.GL&&wH1(Q);Q.GL=new g.jz(W*1E3,0x7ffffffffffff);Q.GL.namespace="endcr";Q.addCueRange(Q.GL)};
wH1=function(Q){Q.removeCueRange(Q.GL);Q.GL=null};
Soa=function(Q,W,x,D,K){var l=Q.oW(K),M=g.TQ(Q.videoData)?l.getVideoData():Q.videoData;M.U=x;var w=g.oJ(Q);x=new jS5(M,x,W,w?w.itag:"",D);Q.bj.experiments.ij("html5_refactor_sabr_video_format_selection_logging")?(x.videoId=K,Q.WH=x):l.jO(x);K=Q.YW;K.U=0;K.B=0;Q.publish("internalvideoformatchange",M,W==="m")};
g.oJ=function(Q){var W=ur(Q);return Ry(W)||!Q.A2?null:g.Os(Q.A2.B.videoInfos,function(x){return W.N(x)})};
ur=function(Q){if(Q.A2){var W=Q.YW;var x=Q.A2;Q=Q.dk();var D=SF5(W);if(Ry(D)){if(D=REv(W,x).compose(ktn(W,x)).compose(opn(W,x)).compose(vpF(W,x.videoData)).compose(CjQ(W,x.videoData,x)).compose(uV(W,x)).compose(sSl(W,x)),Ry(Q)||W.j("html5_apply_pbr_cap_for_drm"))D=D.compose(zEh(W,x))}else W.j("html5_perf_cap_override_sticky")&&(D=D.compose(uV(W,x))),W.j("html5_ustreamer_cap_override_sticky")&&(D=D.compose(zEh(W,x)));D=D.compose(sSl(W,x));W=x.videoData.mp.compose(D).compose(x.videoData.fJ).compose(Q)}else W=
eQ;return W};
hlv=function(Q){var W=Q.YW;Q=Q.videoData;var x=vpF(W,Q);W.j("html5_disable_client_autonav_cap_for_onesie")||x.compose(CjQ(W,Q));return x};
wd=function(Q){if(Q.videoData.D&&Q.videoData.D.B){var W=ur(Q);Q.Bt&&V4z(Q.Bt,W)}};
bM4=function(Q){var W;return!!(Q.j("html5_native_audio_track_switching")&&g.nX&&((W=Q.videoData.U)==null?0:Qy(W)))};
sgl=function(Q){if(!bM4(Q))return!1;var W;Q=(W=Q.mediaElement)==null?void 0:W.audioTracks();return!!(Q&&Q.length>1)};
kZF=function(Q){var W=zCl(Q);if(W)return Q.videoData.getAvailableAudioTracks().find(function(x){return x.RW.getName()===W})};
zCl=function(Q){var W;if(Q=(W=Q.mediaElement)==null?void 0:W.audioTracks())for(W=0;W<Q.length;++W){var x=Q[W];if(x.enabled)return x.label}};
XHl=function(Q){var W,x=Q.videoData.getAvailableAudioTracks(),D=Q.videoData.pu;D&&(W=x.find(function(l){return l.getLanguageInfo().id===D}));
if(Q.bj.experiments.ij("enable_audio_description_setting")&&g.g3(g.ck(),198)){x=g.V(x);for(var K=x.next();!K.done;K=x.next())if(K=K.value,K.L){W=K;break}}W||(Q=Q.getAudioTrack(),W=Q.RW.isDefault?void 0:Q);return W};
RCn=function(Q){for(var W=Q.videoData.B,x=g.V(Object.entries({cpn:Q.videoData.clientPlaybackNonce,c:Q.bj.B.c,cver:Q.bj.B.cver})),D=x.next();!D.done;D=x.next()){var K=g.V(D.value);D=K.next().value;K=K.next().value;for(var l=g.V(Object.values(W.B)),M=l.next();!M.done;M=l.next())O3O(M.value.Db,D,K);l=void 0;(l=W.S)==null||O3O(l,D,K)}x=Q.bj;D=Q.videoData;W=new g.FBn(x);K=EK1({hasSubfragmentedFmp4:D.hasSubfragmentedFmp4,RZ:D.RZ});W.S=K;W.F3=D.maxReadAheadMediaTimeMs/1E3||W.F3;K=x.schedule;K.D.iS()===K.policy.D?
W.Gn=10:W.Gn=D.minReadAheadMediaTimeMs/1E3||W.Gn;W.wx=D.readAheadGrowthRateMs/1E3||W.wx;W.F$=!Fs();g.dO(x)||!Fs()?(K=x.experiments,W.g7=8388608,W.Vj=524288,W.u$=5,W.eZ=1048576,W.h3=1.5,W.a5=4587520,Ll()&&(W.a5=786432),W.T*=1.1,W.uj*=1.1,W.IU=!0,W.KR=K.ij("persist_disable_player_preload_on_tv")||K.ij("persist_disable_player_preload_on_tv_for_living_room")||!1):x.U&&(W.T*=1.3,W.uj*=1.3);g.UC&&g.yk("crkey")&&(K=x.B.cmodel==="CHROMECAST/ANCHOVY",W.g7=20971520,W.Vj=1572864,K&&(W.a5=812500,W.ra=1E3,W.fU=
5,W.eZ=2097152));g.gr&&(W.IU=!0);x.supportsGaplessAudio()||(W.mD=!1);xh&&(W.b6=!0);W.jE=x.j("html5_peak_shave");D.fetchType==="onesie"&&x.j("html5_disable_peak_shave_for_onesie")&&(W.jE=!1);var w;K=(w=D.B)==null?void 0:uQ(w);if(zr(D)){W.xN=!0;W.nt||(W.CR=!0);W.Sk=!0;W.t_=!0;W.iV=!0;if(D.latencyClass==="ULTRALOW"||D.latencyClass==="LOW"&&!x.j("html5_disable_low_pipeline"))W.kV=2,W.jz=4;W.U8=D.defraggedFromSubfragments;if(D.It||x.j("html5_publish_all_cuepoints"))W.iD=!0;g.Gr(D)&&(W.Y6=!1);W.eS=g.aE(x)}D.isAd()&&
(W.A4=0,W.Wz=0);W.W9=x.j("html5_enable_subsegment_readahead_v3")||x.j("html5_ultra_low_latency_subsegment_readahead")&&D.latencyClass==="ULTRALOW";W.D=x.jk();Wk()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(x.B.cmodel)&&!x.j("html5_disable_move_pssh_to_moov")&&K&&(W.IU=!1);l=0;x.j("html5_live_use_alternate_bandwidth_window_sizes")&&(l=x.schedule.policy.B,D.isLivePlayback&&(l=g.X0(x.experiments,D.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":D.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":
"html5_live_normal_latency_bandwidth_window")||l));w=x.schedule;w.U.N=zr(D)?.5:0;if(!w.policy.U&&l&&(w=w.D,l=Math.round(l*w.resolution),l!==w.B)){M=Array(l);var S=Math.min(l,w.D?w.B:w.U),b=w.U-S;b<0&&(b+=w.B);for(var z=0;z<S;++z)M[z]=w.values[(b+z)%w.B];for(;z<l;++z)M[z]=Infinity;w.B=l;w.values=M;w.U=S%l;w.D=S===l;w.jM=!0;w.L=rAh(w)}D.isLivePlayback&&(W.h4=g.X0(x.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,W.s3=!1);D.n3()&&(W.s3=!1);kN(D)&&(W.W9=!0,D.latencyClass===
"LOW"?W.RQ=g.X0(x.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):D.latencyClass==="ULTRALOW"&&(W.RQ=g.X0(x.experiments,"html5_jumbo_ull_subsegment_readahead_target")),W.YV=!0);D.lN()&&(W.YJ=1.3);W.b6=W.b6||D.ER;W.SZ=(W.SZ||D.SZ)&&x.G;W.Tc=x.j("html5_sunset_aac_high_codec_family");W.U=g.TQ(D);W.fn=D.S||W.U&&!x.j("html5_enable_ssap_seteos");x.jk()&&(W.tf=!0);D.S&&!K&&(W.t3=!0);D.S&&D.isAd()&&(W.T*=1.6,W.uj*=1.6);O_(D)&&(W.N=D.videoId,W.b$=!0,W.FJ=100,D.QS&&D.QS.length>0&&(W.SU=D.QS));
W.lF=D.A4;W.U2=HB(x,{},D.D||void 0,j4(D));W.Pt=lG(D)&&g.Il(x);MJ(D)&&(x.j("html5_sabr_allow_video_keyframe_without_audio")&&(W.vZ=!0),x.j("html5_sabr_report_partial_segment_estimated_duration")&&(W.xF=!0),W.B=!0,W.Dx=x.j("html5_sabr_enable_utc_seek_requests"),W.FV=x.j("html5_sabr_enable_live_clock_offset"),W.Ep=x.j("html5_disable_client_resume_policy_for_sabr"),W.mp=x.j("html5_trigger_loader_when_idle_network"),W.z4=x.j("html5_sabr_parse_live_metadata_playback_boundaries"),W.wX=x.j("html5_enable_platform_backpressure_with_sabr"),
W.X$=x.j("html5_consume_onesie_next_request_policy_for_sabr"),W.qm=x.j("html5_sabr_report_next_ad_break_time"),W.nK=x.j("html5_log_high_res_buffer_timeline")&&x.jk(),W.s7=x.j("html5_remove_stuck_slices_beyond_max_buffer_limits"),W.Nb=x.j("html5_gapless_sabr_btl_last_slice")&&KQ(D),W.gr=x.j("html5_reset_last_appended_slice_on_seek")&&KQ(D),zr(D)?(W.Kq=!0,W.zz=x.j("html5_disable_variability_tracker_for_live"),W.O3=x.j("html5_sabr_use_accurate_slice_info_params"),x.j("html5_simplified_backup_timeout_sabr_live")&&
(W.bk=!0,W.ra=W.jS)):W.cD=x.j("html5_probe_request_on_sabr_request_progress"),W.H2=x.j("html5_serve_start_seconds_seek_for_post_live_sabr"),W.kX=x.j("html5_flush_index_on_updated_timestamp_offset"),W.X3=x.j("html5_enable_sabr_request_pipelining")&&!g.TQ(D),W.P9=x.j("html5_ignore_partial_segment_from_live_readahead"),W.KU=x.j("html5_use_non_active_broadcast_for_post_live"),W.fS=x.j("html5_use_centralized_player_time"),W.oH=x.j("html5_consume_onesie_sabr_seek"),W.pS=x.j("html5_enable_sabr_seek_loader_refactor"),
W.DH=x.j("html5_update_segment_start_time_from_media_header"),D.enableServerStitchedDai&&(W.L=!0,W.Og=x.j("html5_reset_server_stitch_state_for_non_sabr_seek"),W.Sz=x.j("html5_remove_ssdai_append_pause"),W.I5=x.j("html5_consume_ssdai_info_with_streaming"),W.A_=x.j("html5_process_all_cuepoints"),W.gH=x.j("html5_ssdai_log_ssevt_in_loader")),W.Jx=x.jk()||D.aQ());W.X=W.B&&x.j("html5_sabr_live");W.Kn=g.Yfv(D);vh(x.L,CN.BITRATE)&&(W.a5=NaN);if(w=g.X0(x.experiments,"html5_request_size_max_kb"))W.eZ=w*1024;
x.L.L?W.Ke="; "+CN.EXPERIMENTAL.name+"=allowed":x.j("html5_enable_cobalt_tunnel_mode")&&(W.Ke="; tunnelmode=true");w=D.serverPlaybackStartConfig;(w==null?0:w.enable)&&(w==null?0:w.playbackStartPolicy)&&(W.IH=!0,Ta(W,w.playbackStartPolicy,2));w=XHl(Q);Q.wy.removeAll();a:{x=Q.L_.f0;if(D=Q.videoData.videoId)if(K=x.B.get(D)){x.B.remove(D);x=K;break a}x=void 0}Q.Bt=new g.QT(Q,Q.bj.schedule,W,Q.videoData.B,Q.videoData.D,ur(Q),w,Q.videoData.enableServerStitchedDai,x,Q.videoData.eZ);W=Q.videoData.j("html5_disable_preload_for_ssdai_with_preroll")&&
Q.videoData.isLivePlayback&&Q.YI()?!0:Q.T5&&g.dO(Q.bj)&&Q.videoData.isLivePlayback;Q.Bt.initialize(Q.getCurrentTime(),ur(Q),W);Q.videoData.probeUrl&&(Q.Bt.O3=Q.videoData.probeUrl);if(Q.w3.length||Q.T5)Q.videoData.cotn||Yq(Q,!1);vqs(Q.K_,Q.Bt);Q.Ex&&(yfs(Q.Bt,new g.K9(Q.Ex)),Q.qj("sdai",{sdl:1}));Q.nS&&(Q.Bt.J6(Q.nS),Q.K_.S=!1);g.tf(Q.videoData)&&(Q=Q.Bt,Q.policy.y7=Q.policy.Py)};
kq=function(Q){Q.Bt&&(Q.Bt.dispose(),Q.Bt=null,vqs(Q.K_,null));Q.s2()?oI2(Q):Q.j6()};
oI2=function(Q){if(Q.r7)if(Q.logger.debug("release media source"),Q.MI(),Q.r7.L)try{Q.bj.jk()&&Q.qj("rms",{l:"vprms",sr:Q.s2(),rs:Ew(Q.r7)});Q.r7.clear();var W;(W=Q.mediaElement)!=null&&(W.U=Q.r7);Q.r7=null}catch(x){W=new g.Lw("Error while clearing Media Source in VideoPlayer: "+x.name+", "+x.message),W=i7(W),Q.handleError(W),Q.j6()}else Q.j6()};
uo5=function(Q,W){W=W===void 0?!1:W;if(Q.r7)return Q.r7.D;Q.logger.debug("update media source");a:{W=W===void 0?!1:W;try{g.fl()&&Q.videoData.l5()&&$rO(Q.mediaElement);var x=Q.mediaElement.fv(Q.eM(),Q.T_())}catch(K){if(tk5(Q.DS,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",K);Q.dH("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}Q.bQ(x,!1,!1,W)}var D;return((D=Q.fv())==null?void 0:D.D)||null};
Yo1=function(Q,W){W=W===void 0?!1:W;if(Q.Bt){Q.j("html5_keep_ssdai_avsync_in_loader_track")&&rf2(Q.Bt);var x=Q.getCurrentTime()-Q.aW();Q.Bt.seek(x,{Zx:W}).RH(function(){})}else RCn(Q)};
V7a=function(Q,W,x,D){x=x===void 0?!1:x;D=D===void 0?!1:D;if(Q.r7&&(!W||Q.r7===W)){Q.logger.debug("media source opened");var K=Q.getDuration();!K&&zr(Q.videoData)&&(K=25200);if(Q.r7.isView){var l=K;Q.logger.debug(function(){return"Set media source duration to "+l+", video duration "+K});
l>Q.r7.getDuration()&&nIn(Q,l)}else nIn(Q,K);u6a(Q.Bt,Q.r7,x,D);Q.publish("mediasourceattached")}};
nIn=function(Q,W){if(Q.r7){Q.r7.PF(W);var x;(x=Q.Bt)!=null&&x.policy.fS&&(x.X=W)}};
vNs=function(Q,W){Soa(Q,W.reason,W.B.info,W.token,W.videoId)};
PXl=function(Q,W){Q.bj.experiments.ij("enable_adb_handling_in_sabr")&&(Q.pauseVideo(!0),Q.Qm(),W&&Q.dH("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))};
zU=function(Q,W){Q.publish("internalvideodatachange",W===void 0?"dataupdated":W,Q,Q.videoData)};
vIh=function(Q){var W="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");Q.j("html5_remove_progress_event_listener")||(W.push("progress"),W.push("suspend"));W=g.V(W);for(var x=W.next();!x.done;x=W.next())Q.wM.W(Q.mediaElement,x.value,Q.qT,Q);Q.bj.UG&&Q.mediaElement.E_()&&(Q.wM.W(Q.mediaElement,"webkitplaybacktargetavailabilitychanged",Q.hw3,Q),Q.wM.W(Q.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",Q.tkp,
Q))};
JJ5=function(Q){g.nl(Q.Xf);CXD(Q)||(Q.Xf=g.uY(function(){return CXD(Q)},100))};
CXD=function(Q){var W=Q.mediaElement;W&&Q.eb&&!Q.videoData.F3&&!y_("vfp",Q.Qh.timerName)&&W.aI()>=2&&!W.isEnded()&&zl(W.O4())>0&&Q.Qh.tick("vfp");return(W=Q.mediaElement)&&!Q.videoData.F3&&W.getDuration()>0&&(W.isPaused()&&W.aI()>=2&&zl(W.O4())>0&&(y_("pbp",Q.Qh.timerName)||Q.Qh.tick("pbp"),!Q.videoData.A_||Q.XU||W.isSeeking()||(Q.XU=!0,Q.publish("onPlaybackPauseAtStart"))),W=W.getCurrentTime(),yT(Q.kP,W))?(Q.zd(),!0):!1};
hC2=function(Q){Q.oW().E4();if(s_(Q.videoData)&&Date.now()>Q.L1+6283){if(!(!Q.isAtLiveHead()||Q.videoData.B&&VY(Q.videoData.B))){var W=Q.oW();if(W.qoe){W=W.qoe;var x=W.provider.xf.jB(),D=g.n9(W.provider);rY4(W,D,x);x=x.D;isNaN(x)||g.C9(W,D,"e2el",[x.toFixed(3)])}}Q.j("html5_alc_live_log_rawlat")?(W=Q.videoData,W=g.aE(W.C())?!0:g.Ts(W.C())?W.P9==="6":!1):W=g.aE(Q.bj);W&&Q.qj("rawlat",{l:jy(Q.yw,"rawlivelatency").toFixed(3)});Q.L1=Date.now()}Q.videoData.U&&Qy(Q.videoData.U)&&(W=Q.oK())&&W.videoHeight!==
Q.Iq&&(Q.Iq=W.videoHeight,Soa(Q,"a",pH4(Q,Q.videoData.tf)))};
pH4=function(Q,W){if(W.B.video.quality==="auto"&&Qy(W.getInfo())&&Q.videoData.hn)for(var x=g.V(Q.videoData.hn),D=x.next();!D.done;D=x.next())if(D=D.value,D.getHeight()===Q.Iq&&D.B.video.quality!=="auto")return D.getInfo();return W.getInfo()};
tyQ=function(Q){if(!s_(Q.videoData))return NaN;var W=0;Q.Bt&&Q.videoData.B&&(W=zr(Q.videoData)?Q.Bt.Lm.iS()||0:Q.videoData.B.KS);return(0,g.a8)()/1E3-Q.LZ()-W};
GZ2=function(Q){Q.mediaElement&&Q.mediaElement.m$()&&(Q.PY=(0,g.a8)());Q.bj.X_?g.oc(function(){ahQ(Q)},0):ahQ(Q)};
ahQ=function(Q){var W;if((W=Q.r7)==null||!W.ol()){if(Q.mediaElement)try{Q.JC=Q.mediaElement.playVideo()}catch(D){Xr(Q,"err."+D)}if(Q.JC){var x=Q.JC;x.then(void 0,function(D){Q.logger.debug(function(){return"playMediaElement failed: "+D});
if(!g.r(Q.playerState,4)&&!g.r(Q.playerState,256)&&Q.JC===x)if(D&&D.name==="AbortError"&&D.message&&D.message.includes("load"))Q.logger.debug(function(){return"ignore play media element failure: "+D.message});
else{var K="promise";D&&D.name&&(K+=";m."+D.name);Xr(Q,K);Q.l8=!0;Q.videoData.uG=!0}})}}};
Xr=function(Q,W){g.r(Q.playerState,128)||(Q.q7(S_(Q.playerState,1028,9)),Q.qj("dompaused",{r:W}),Q.publish("onAutoplayBlocked"))};
Sy=function(Q,W){W=W===void 0?!1:W;if(!Q.mediaElement||!Q.videoData.D)return!1;var x=W;x=x===void 0?!1:x;var D=null;var K;if((K=Q.videoData.D)==null?0:K.B){D=uo5(Q,x);var l;(l=Q.Bt)==null||l.resume()}else kq(Q),Q.videoData.tf&&(D=Q.videoData.tf.KI());K=Q.mediaElement.g4();x=!1;K&&K.yI(D)||(dt5(Q,D),x=!0);g.r(Q.playerState,2)||(D=Q.K_,W=W===void 0?!1:W,D.L||!(D.N>0)||D.mediaElement&&D.mediaElement.getCurrentTime()>0||(W={N7:"seektimeline_resumeTime",Zx:W},D.videoData.F3||(W.seekSource=15),D.seekTo(D.N,
W)));a:{W=x;if(MJ(Q.videoData)){if(!Q.videoData.n3())break a}else if(!g.V9(Q.videoData))break a;if(Q.mediaElement)if((D=Q.videoData.L)&&Q.mediaElement.E_()){K=Q.mediaElement.yh();if(Q.sT)if(K!==Q.sT.element)ng(Q);else if(W&&D.flavor==="fairplay"&&!Zs())ng(Q);else break a;if(Q.j("html5_report_error_for_unsupported_tvos_widevine")&&Zs()&&D.flavor==="widevine")Q.dH("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{Q.sT=new $YF(K,Q.videoData,Q.bj);Q.sT.subscribe("licenseerror",
Q.Ae,Q);Q.sT.subscribe("qualitychange",Q.wDj,Q);Q.sT.subscribe("heartbeatparams",Q.OC,Q);Q.sT.subscribe("keystatuseschange",Q.Gz,Q);Q.sT.subscribe("ctmp",Q.qj,Q);Q.j("html5_widevine_use_fake_pssh")&&!Q.videoData.isLivePlayback&&D.flavor==="widevine"&&Q.sT.vc(new za(iM2,"cenc",!1));W=g.V(Q.wy.keys);for(D=W.next();!D.done;D=W.next())D=Q.wy.get(D.value),Q.sT.vc(D);Q.j("html5_eme_loader_sync")||Q.wy.removeAll()}}else Q.dH("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return x};
dt5=function(Q,W){Q.Qh.tick("vta");fA("vta",void 0,"video_to_ad");Q.getCurrentTime()>0&&hhh(Q.K_,Q.getCurrentTime());Q.mediaElement.activate(W);Q.r7&&xD(0,4);!Q.videoData.F3&&Q.playerState.isOrWillBePlaying()&&Q.Fo.start();if(bM4(Q)){var x;if(W=(x=Q.mediaElement)==null?void 0:x.audioTracks())W.onchange=function(){Q.publish("internalaudioformatchange",Q.videoData,!0)}}};
ng=function(Q){Q.sT&&(Q.sT.dispose(),Q.sT=null)};
AJv=function(Q){var W=W===void 0?!1:W;Q.logger.debug("reattachVideoSource");Q.mediaElement&&(Q.r7?(ng(Q),Q.j6(),uo5(Q,W)):(Q.videoData.tf&&Q.videoData.tf.dD(),Q.mediaElement.stopVideo()),Q.playVideo())};
HMs=function(Q,W){Q.bj.j("html5_log_rebuffer_reason")&&(W={r:W,lact:aK()},Q.mediaElement&&(W.bh=xa(Q.mediaElement)),Q.qj("bufreason",W))};
UtO=function(Q,W){if(Q.bj.jk()&&Q.mediaElement){var x=Q.mediaElement.AO();x.omt=(Q.mediaElement.getCurrentTime()+Q.aW()).toFixed(3);x.ps=Q.playerState.state.toString(16);x.rt=(g.n9(Q.oW().provider)*1E3).toFixed();x.e=W;Q.LX[Q.lP++%5]=x}try{if(W==="timeupdate"||W==="progress")return}catch(D){}Q.logger.debug(function(){return"video element event "+W})};
qoQ=function(Q){if(Q.bj.jk()){Q.LX.sort(function(D,K){return+D.rt-+K.rt});
for(var W=g.V(Q.LX),x=W.next();!x.done;x=W.next())x=x.value,Q.qj("vpe",Object.assign({t:x.rt},x));Q.LX=[];Q.lP=0}};
Bea=function(Q){if(g.yk("cobalt")&&g.yk("nintendo switch")){var W=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;Q.qj("nxdock",{d:W})}};
Yq=function(Q,W){var x;(x=Q.Bt)==null||x0(x,W)};
TID=function(Q,W){return g.TQ(Q.videoData)&&Q.nS?Q.nS.handleError(W,void 0):!1};
KcD=function(Q){bG(Q.videoData,"html5_set_debugging_opt_in")&&(Q=g.ck(),g.g3(0,183)||(eY(183,!0),Q.save()))};
$tO=function(Q){return g.TQ(Q.videoData)&&Q.nS?rY(Q.nS):Q.videoData.FY()};
OQ1=function(Q,W){Q.L_.PK()||(Q.qj("sgap",{f:W}),Q.L_.clearQueue(!1,W==="pe"))};
Qh=function(Q){return Q.j("html5_disable_video_player_initiated_seeks")&&MJ(Q.videoData)};
Iha=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);RN(this.api,"isLifaAdPlaying",function(){return W.api.isLifaAdPlaying()});
this.events.W(Q,"serverstitchedvideochange",function(){var x;(x=W.api.getVideoData())!=null&&x.aQ()&&(W.api.isLifaAdPlaying()?(W.playbackRate=W.api.getPlaybackRate(),W.api.setPlaybackRate(1)):W.api.setPlaybackRate(W.playbackRate))});
this.playbackRate=1};
mt2=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);RN(this.api,"seekToChapterWithAnimation",function(x){W.seekToChapterWithAnimation(x)});
RN(this.api,"seekToTimeWithAnimation",function(x,D){W.seekToTimeWithAnimation(x,D)});
RN(this.api,"renderChapterSeekingAnimation",function(x,D,K){W.api.renderChapterSeekingAnimation(x,D,K)});
RN(this.api,"setMacroMarkers",function(x){W.setMacroMarkers(Q,x)});
RN(this.api,"changeMarkerVisibility",function(x,D,K){W.changeMarkerVisibility(x,D,K)});
RN(this.api,"isSameMarkerTypeVisible",function(x){return W.isSameMarkerTypeVisible(x)})};
NeQ=function(Q,W,x){var D=Q.api.getCurrentTime()*1E3<W?1:-1;Q.api.renderChapterSeekingAnimation(D,x);Q.api.seekTo(W/1E3,void 0,void 0,void 0,3)};
cJ5=function(Q,W){var x,D;return(x=wW(Q,"macroMarkersListEntity",W))==null?void 0:(D=x.markersList)==null?void 0:D.markerType};
gIQ=function(Q,W){var x=g.xN.getState().entities;Q=cJ5(x,Q);W=g.V(W.Vj);for(var D=W.next();!D.done;D=W.next())if(Q===cJ5(x,D.value))return!0;return!1};
Vh=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"videodatachange",function(){W.updateMetadata()});
this.events.W(Q,"presentingplayerstatechange",function(){yJa(W)})};
P2=function(Q,W){try{navigator.mediaSession.setActionHandler(Q,W)}catch(x){}};
eCn=function(Q){P2("play",function(){Q.api.playVideo()});
P2("pause",function(){Q.api.pauseVideo()});
P2("seekbackward",function(){Q.api.seekBy(-5*Q.api.getPlaybackRate())});
P2("seekforward",function(){Q.api.seekBy(5*Q.api.getPlaybackRate())});
P2("seekto",function(W){W=W.seekTime;W!=null&&Q.api.seekTo(W)})};
fh5=function(Q){var W,x,D,K;return(W=Q.api.getVideoData().getWatchNextResponse())==null?void 0:(x=W.playerOverlays)==null?void 0:(D=x.playerOverlayRenderer)==null?void 0:(K=D.browserMediaSession)==null?void 0:K.browserMediaSessionRenderer};
ZMF=function(Q){var W=[];if(!Q||!Q.thumbnails)return W;Q=g.V(Q.thumbnails);for(var x=Q.next();!x.done;x=Q.next())x=x.value,x.url&&(!x.width||x.width<=0||!x.height||x.height<=0||g.Dk(x.url)&&W.push({src:x.url||"",sizes:x.width+"x"+x.height,type:"image/jpeg"}));return W};
yJa=function(Q){Q=Q.api.getPlayerStateObject();Q=Q.isCued()||Q.isError()?"none":Q.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=Q};
Lcs=function(Q){var W=Q.api.getProgressState().seekableEnd;W&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({duration:W,playbackRate:Q.api.getPlaybackRate(),position:Q.api.getCurrentTime()})};
v2=function(Q){Fh.call(this,Q);var W=this;this.U=new Map;this.D=this.B=void 0;this.compositeVideoState=null;this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"modulecreated",function(x){var D;a:{var K,l,M,w=(K=W.api.getVideoData())==null?void 0:(l=K.getPlayerResponse())==null?void 0:(M=l.overlay)==null?void 0:M.playerControlsOverlayRenderer;if(w&&(K=g.e(w.compositeVideoOverlay,rJh),K==null?0:(D=K.sources)==null?0:D.length))for(D=g.V(K==null?void 0:K.sources),K=D.next();!K.done;K=D.next())if(K=
K.value,K.isActive){D=K;break a}D=void 0}x==="captions"&&(D==null?void 0:D.topLeftCornerX)!==void 0&&(D==null?void 0:D.topLeftCornerY)!==void 0&&(D==null?void 0:D.width)!==void 0&&(D==null?void 0:D.height)!==void 0&&W.api.Pq({top:D.topLeftCornerY,right:1-D.topLeftCornerX-D.width,bottom:1-D.topLeftCornerY-D.height,left:D.topLeftCornerX})});
this.events.W(Q,"videodatachange",function(x){var D=W.api.getVideoData();W.B=void 0;W.U.clear();W.api.jQ("compositeembargo",1);var K=D==null?void 0:D.zq.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(K==null?0:K.length)?Teh(W,K.filter(function(l){return OMF(W,l)})):(D==null?0:D.cueRanges)&&Teh(W,D.cueRanges.filter(function(l){return OMF(W,l)}));
x==="dataupdated"&&(D==null?void 0:D.compositeLiveStatusToken)!==W.D&&(W.D=D==null?void 0:D.compositeLiveStatusToken,W.api.ZU())});
this.events.W(Q,g.Ru("compositeembargo"),function(x){var D;if(((D=W.B)==null?void 0:D.id)!==x.id&&(W.api.OG(!0),W.U.has(x.id))){var K=W.U.get(x.id);D=W.api.getVideoData();K=g.V(K);for(var l=K.next();!l.done;l=K.next()){var M=void 0;l=(M=l.value.compositeEmbargo)==null?void 0:M.embargoStatusToken;D.kV!==l&&(D.kV=l,W.api.ZU());EIl(W,x)}}});
this.events.W(Q,g.wt("compositeembargo"),function(x){var D;if(((D=W.B)==null?void 0:D.id)===x.id&&(W.api.OG(!1),W.U.has(x.id))){if(x=W.api.getVideoData())x.kV=void 0;W.api.ZU();EIl(W)}});
this.events.W(Q,"heartbeatRequest",function(x){W.compositeVideoState!==null&&(x.playbackState||(x.playbackState={}),x.playbackState.compositeVideoState=W.compositeVideoState)});
this.events.W(Q,"internalaudioformatchange",function(x){if(W.api.j("html5_sabr_enable_server_xtag_selection")){var D=W.api.getVideoData(void 0,!0);if(D&&Tr(D)){var K=W.api.getAvailableAudioTracks();K=g.V(K);for(var l=K.next();!l.done;l=K.next())if(l.value.getLanguageInfo().getId()===x){D.pu=x;break}}}});
this.events.W(Q,"onPlaybackAudioChange",function(){W.api.ZU()});
RN(Q,"setCompositeParam",function(x){W.compositeVideoState=x})};
EIl=function(Q,W){var x;((x=Q.B)==null?void 0:x.id)!==(W==null?void 0:W.id)&&(Q.B&&(Q.U.delete(Q.B.id),Q.api.RI([Q.B],1)),Q.B=W)};
Teh=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next()){var D=x.value,K=void 0;x=Number((K=D.playbackRelativePosition)==null?void 0:K.utcTimeMs)/1E3;var l=void 0;K=x+Number((l=D.duration)==null?void 0:l.seconds);l="composite_embargo_"+x;D.onEnter&&(D=D.onEnter.filter(Q.N),D.length&&(Q.U.set(l,D),Q.api.addUtcCueRange(l,x,K,"compositeembargo",!1)))}};
OMF=function(Q,W){var x;return(x=W.onEnter)==null?void 0:x.some(Q.N)};
Fch=function(Q){Fh.call(this,Q);RN(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));RN(this.api,"updateDownloadState",this.updateDownloadState.bind(this));RN(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));RN(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));RN(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));RN(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));RN(this.api,"setUpPositionSyncInterval",
this.setUpPositionSyncInterval.bind(this))};
Cg=function(Q){Fh.call(this,Q);var W=this;RN(Q,"getAvailableQualityData",function(){return W.getAvailableQualityData()});
RN(Q,"getAvailableQualityDataAndMessaging",function(){return W.getAvailableQualityDataAndMessaging()})};
t7a=function(Q,W,x){var D=[],K=W?156595:151874;Q=g.V(Q);for(var l=Q.next();!l.done;l=Q.next()){var M=l.value;l=M.video;M={formatId:M.id,qualityLabel:l.qualityLabel,quality:l.quality,isPlayable:W};if(l=x.get(l.qualityLabel))M.paygatedQualityDetails={paygatedIndicatorText:l.paygatedIndicatorText,endpoint:l.endpoint,veType:K,trackingParams:l.trackingParams};D.push(M)}return D};
QWO=function(Q){for(var W=0,x=0;x<Q.length;x++)if(Q[x].paygatedQualityDetails){var D=Q[x];Q.splice(x,1);Q.splice(W,0,D);W++}};
WoD=function(Q){var W=new Set,x=new Map,D={};Q=g.V(Q);for(var K=Q.next();!K.done;K=Q.next()){K=K.value;var l=K.quality,M=K.isPlayable,w=K.qualityLabel;w&&l&&(M&&x.has(l)&&x.get(l)!==w?W.add(l):M&&x.set(l,w),D[w]||(D[w]=K))}x=[];D=g.V(Object.values(D));for(Q=D.next();!Q.done;Q=D.next())K=Q.value,(Q=K.quality)&&!W.has(Q)&&(K.formatId=void 0),x.push(K);return x};
JE=function(Q){Fh.call(this,Q);var W=this;this.D=1;this.Qh=null;this.by={hG3:function(){return W.D}};
this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"d6de4videobindingchange",function(x){W.Ma(x)});
this.events.W(Q,"csiinitialized",function(){xRa(W)})};
xRa=function(Q){if(DR5()){Q.Qh=Q.api.v3();Q.B=new th;Q.D=2;var W=g.X0(Q.api.C().experiments,"html5_d6de4_defer_timeout_ms");Q.Qh.U4("pt_pish");W?g.oc(function(){Kon(Q)},W):Q.api.j("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){Kon(Q)}):Kon(Q)}};
Kon=function(Q){if(DR5()){Q.Qh=Q.api.v3();var W=g.X0(Q.api.C().experiments,"html5_d6de4_cloud_project_number");Q.Qh.U4("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:W}).then(function(D){Q.U=D;var K;(K=Q.B)==null||K.resolve();Q.Qh.U4("pt_pif")}).catch(function(D){pg(D,"player_start");
Q.Qh.U4("pt_pie");var K;(K=Q.B)==null||K.reject(D)})}catch(D){pg(D,"player_start_catch");
Q.api.qj("pfes",{});var x;(x=Q.B)==null||x.reject(D)}}};
loF=function(Q,W){if(Q.U&&!Q.j("html5_disable_d6de4_mint_debug")){var x=W.videoId;Q.D=3;Q.Qh.U4("pt_ms");try{Q.U.requestToken(x).then(function(D){Q.Qh.U4("pt_mf");if(D=w5(D))W.hJ={wZ5:D}}).catch(function(D){Q.Qh.U4("pt_me");
pg(D,"player_generate");Q.handleError(D,W)})}catch(D){pg(D,"player_generate_catch"),Q.handleError(D,W)}}};
jWa=function(Q,W){Q.api.j("html5_enable_d6de4_cold_start_and_error")&&(W.hJ={coldStartInfo:{clientState:Q.D}})};
pg=function(Q,W){Q.message&&g.Bp(Error(W+"_"+Q.message))};
DR5=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider};
hE=function(Q){g.L.call(this,{K:"button",lj:["ytp-pip-button","ytp-button"],Z:{title:"{{title}}","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},V:[m5F()]});var W=this;this.api=Q;this.listen("click",this.onClick);var x=this.api.fR(),D=x.subscribe("visibilitystatechange",function(){W.Yf(x.J4())});
this.addOnDisposeCallback(function(){x.Or(D)});
Jo(Q,this.element,this);this.Yf(x.J4())};
aJ=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"standardControlsInitialized",function(){W.createButton()});
g.ET(this.api.C())&&(this.j("web_watch_pip")||this.j("web_shorts_pip"))&&RN(this.api,"setDocumentPictureInPicture",function(x){W.setDocumentPictureInPicture(x)})};
M32=function(Q){var W=Q.api.getVideoData();Q.button.hO(W.tp)};
RDF=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);RN(this.api,"musicDisableUi",function(){g.j$(W.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
RN(this.api,"musicEnableUi",function(){g.Rr(W.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
ir=function(Q,W,x){W=W===void 0?!0:W;x=x===void 0?!1:x;g.L.call(this,{K:"div",Y:"ytp-suggested-action"});var D=this;this.J=Q;this.fn=this.pS=this.F3=this.uj=this.N=this.S=this.expanded=this.enabled=this.O3=!1;this.SZ=new g.O3(function(){D.badge.element.style.width=""},200,this);
this.g7=new g.O3(function(){GU(D);dd(D)},200,this);
this.eZ=this.J.j("delhi_modern_web_player")?40:34;this.dismissButton=new g.L({K:"button",lj:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.y(this,this.dismissButton);this.D=new g.L({K:"div",Y:"ytp-suggested-action-badge-expanded-content-container",V:[{K:"label",Y:"ytp-suggested-action-badge-title",m3:"{{badgeLabel}}"},this.dismissButton]});g.y(this,this.D);this.LS=new g.L({K:"div",Y:"ytp-suggested-action-badge-icon-container",V:[W?{K:"div",Y:"ytp-suggested-action-badge-icon"}:
""]});g.y(this,this.LS);this.badge=new g.L({K:x?"div":"button",lj:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.LS,this.D]});g.y(this,this.badge);this.badge.Qj(this.element);this.T=new g.Wi(this.badge,250,!1,100);g.y(this,this.T);this.Pt=new g.Wi(this.D,250,!1,100);g.y(this,this.Pt);this.tf=new g.Td(this.K$j,null,this);g.y(this,this.tf);this.I5=new g.Td(this.wK,null,this);g.y(this,this.I5);g.y(this,this.SZ);g.y(this,this.g7);this.J.createServerVe(this.badge.element,
this.badge,!0);this.J.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.W(this.J,"onHideControls",function(){D.Oz(!1)});
this.W(this.J,"onShowControls",function(){D.Oz(!0)});
this.W(this.badge.element,"click",this.wi);this.W(this.dismissButton.element,"click",this.dJ);this.W(this.J,"pageTransition",this.xz);this.W(this.J,"appresize",this.Vk);this.W(this.J,"fullscreentoggled",this.Gtj);this.W(this.J,"cardstatechange",this.BE1);this.W(this.J,"annotationvisibility",this.VU3,this);this.W(this.J,"offlineslatestatechange",this.Z3f,this)};
GU=function(Q){g.S$(Q.badge.element,"ytp-suggested-action-badge-with-controls",Q.F3||!Q.S)};
dd=function(Q,W){var x=Q.cq();Q.expanded!==x&&(Q.expanded=x,W===void 0||W?(Q.tf.stop(),Q.I5.stop(),Q.SZ.stop(),Q.tf.start()):(Q.D.hO(Q.expanded),g.S$(Q.badge.element,"ytp-suggested-action-badge-expanded",Q.expanded)),Q.yG())};
wNQ=function(Q){var W=Q.text||"",x=g.rS("ytp-suggested-action-badge-title",Q.element);x&&g.MT(x,W);Q.badge.element.setAttribute("aria-label",W);Q.dismissButton.element.setAttribute("aria-label",Q.s3?Q.s3:"")};
AE=function(Q,W,x,D,K,l){var M={K:"div",Y:"ytp-panel"};if(x){var w="ytp-panel-back-button";var S="ytp-panel-title";var b={K:"div",Y:"ytp-panel-header",V:[{K:"div",lj:["ytp-panel-back-button-container"],V:[{Z:{"aria-label":"Back to previous menu"},K:"button",lj:["ytp-button",w]}]},{K:"span",lj:[S],Z:Q.j("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,V:[x]}]};if(K){var z="ytp-panel-options";b.V.push({K:"button",lj:["ytp-button",z],V:[D]})}M.V=[b]}D=!1;l&&(l={K:"div",
Y:"ytp-panel-footer",V:[l]},D=!0,M.V?M.V.push(l):M.V=[l]);g.ze.call(this,M);this.content=W;D&&M.V?W.Qj(this.element,M.V.length-1):W.Qj(this.element);this.z$=!1;this.sK=D;x&&(x=this.Nj(S),this.W(this.Nj(w),"click",this.cB),this.W(x,"click",this.cB),this.z$=!0,K&&this.W(this.Nj(z),"click",K));W.subscribe("size-change",this.Ei,this);this.W(Q,"fullscreentoggled",this.Ei);this.J=Q};
g.H2=function(Q,W,x,D,K,l){W=W===void 0?null:W;var M={role:"menu"};W&&(M.id=W);W=new g.ze({K:"div",Y:"ytp-panel-menu",Z:M});AE.call(this,Q,W,x,D,K,l);this.menuItems=W;this.items=[];g.y(this,this.menuItems)};
g.UR=function(Q){for(var W=g.V(Q.items),x=W.next();!x.done;x=W.next())x.value.unsubscribe("size-change",Q.TB,Q);Q.items=[];try{g.Df(Q.menuItems.element)}catch(l){var D,K;g.Bp(new g.Lw("Failed to remove menu items from panel menu.",{error:l.message,originalStack:l.stack,childToBeRemoved:(K=(D=Q.menuItems.element.firstChild)==null?void 0:D.textContent)!=null?K:"child element not found"}))}Q.menuItems.publish("size-change")};
Sy4=function(Q,W){return W.priority-Q.priority};
g.qF=function(Q,W){g.y0.call(this,Q,{K:"div",lj:["ytp-popup",W||""]},100,!0);this.B=[];this.G=this.X=null;this.maxHeight=this.maxWidth=0;this.size=new g.oZ(0,0);this.listen("keydown",this.Tu)};
bca=function(Q){var W=Q.B[Q.B.length-1];if(W){g.VM(Q.element,Q.maxWidth||"100%",Q.maxHeight||"100%");g.SZ(W.element,"width","");g.SZ(W.element,"height","");g.SZ(W.element,"maxWidth","100%");g.SZ(W.element,"maxHeight","100%");g.SZ(W.content.element,"height","");var x=g.PR(W.element);x.width+=1;x.height+=1;g.SZ(W.element,"width",x.width+"px");g.SZ(W.element,"height",x.height+"px");g.SZ(W.element,"maxWidth","");g.SZ(W.element,"maxHeight","");var D=0;W.z$&&(D=g.PR(W.Nj("ytp-panel-header")).height);var K=
0;W.sK&&(K=W.Nj("ytp-panel-footer"),g.SZ(K,"width",x.width+"px"),K=g.PR(K).height);g.SZ(W.content.element,"height",x.height-D-K+"px");W.element instanceof HTMLElement&&(D=W.element,K=D.scrollWidth-D.clientWidth,D.offsetWidth-D.clientWidth>0&&K>0&&(x.width+=K,g.SZ(W.element,"width",x.width+"px")));Q.size=x}};
g.B2=function(Q,W){var x=Q.B[Q.B.length-1];x!==W&&(Q.B.push(W),sWh(Q,x,W))};
g.$q=function(Q){if(!(Q.B.length<=1)){var W=Q.B.pop(),x=Q.B[0];Q.B=[x];sWh(Q,W,x,!0)}};
sWh=function(Q,W,x,D){zD5(Q);W&&(W.unsubscribe("size-change",Q.e7,Q),W.unsubscribe("back",Q.tv,Q));x.subscribe("size-change",Q.e7,Q);x.subscribe("back",Q.tv,Q);if(Q.md){g.j$(x.element,D?"ytp-panel-animate-back":"ytp-panel-animate-forward");x.Qj(Q.element);x.focus();Q.element.scrollLeft=0;Q.element.scrollTop=0;var K=Q.size;bca(Q);g.VM(Q.element,K);Q.X=new g.O3(function(){k0F(Q,W,x,D)},20,Q);
Q.X.start()}else x.Qj(Q.element),W&&W.detach()};
k0F=function(Q,W,x,D){Q.X.dispose();Q.X=null;g.j$(Q.element,"ytp-popup-animating");D?(g.j$(W.element,"ytp-panel-animate-forward"),g.Rr(x.element,"ytp-panel-animate-back")):(g.j$(W.element,"ytp-panel-animate-back"),g.Rr(x.element,"ytp-panel-animate-forward"));g.VM(Q.element,Q.size);Q.G=new g.O3(function(){g.Rr(Q.element,"ytp-popup-animating");W.detach();g.wk(W.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);Q.G.dispose();Q.G=null},250,Q);
Q.G.start()};
zD5=function(Q){Q.X&&g.FW(Q.X);Q.G&&g.FW(Q.G)};
IJ=function(Q){g.qF.call(this,Q,"ytp-shopping-product-menu");this.Ar=new g.H2(this.J);g.y(this,this.Ar);this.hide();g.B2(this,this.Ar);g.qf(this.J,this.element,4)};
ouQ=function(Q,W,x){var D,K=W==null?void 0:(D=W.text)==null?void 0:D.simpleText;K&&(x=XNv(Q,x,K,W==null?void 0:W.icon,W==null?void 0:W.secondaryIcon),W.navigationEndpoint&&x.listen("click",function(){Q.J.Wt("innertubeCommand",W.navigationEndpoint);Q.hide()},Q))};
uOQ=function(Q,W,x){var D,K=W==null?void 0:(D=W.text)==null?void 0:D.simpleText;K&&XNv(Q,x,K,W==null?void 0:W.icon).listen("click",function(){var l;(W==null?void 0:(l=W.icon)==null?void 0:l.iconType)==="HIDE"?Q.J.publish("featuredproductdismissed"):W.serviceEndpoint&&Q.J.Wt("innertubeCommand",W.serviceEndpoint);Q.hide()},Q)};
XNv=function(Q,W,x,D,K){W=new g.rZ(g.T4({},[],!1,!!K),W,x);K&&W.updateValue("secondaryIcon",Yyz(K));W.setIcon(Yyz(D));g.y(Q,W);Q.Ar.XE(W,!0);return W};
Yyz=function(Q){if(!Q)return null;switch(Q.iconType){case "ACCOUNT_CIRCLE":return{K:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{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{K:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{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 A42();case "HIDE":return{K:"svg",Z:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"g",V:[{K:"path",Z:{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 pV()}};
m3=function(Q){ir.call(this,Q,!1,!0);this.isCounterfactual=this.U=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.S=!0;this.overflowButton=new g.L({K:"button",lj:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.y(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.L({K:"img",Y:"ytp-suggested-action-badge-img",Z:{src:"{{url}}"}});
this.thumbnailImage.hide();g.y(this,this.thumbnailImage);this.thumbnailIcon=new g.L({K:"div",Y:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.y(this,this.thumbnailIcon);this.banner=new g.L({K:"a",Y:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{K:"div",Y:"ytp-suggested-action-details",V:[{K:"text",Y:"ytp-suggested-action-title",m3:"{{title}}"},{K:"text",Y:"ytp-suggested-action-subtitle",m3:"{{subtitle}}"},{K:"text",Y:"ytp-suggested-action-metadata-text",
m3:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.y(this,this.banner);this.banner.Qj(this.D.element);this.W(this.J,"videodatachange",this.onVideoDataChange);this.W(this.J,g.Ru("suggested_action_view_model"),this.g3Z);this.W(this.J,g.wt("suggested_action_view_model"),this.o31);this.W(this.overflowButton.element,"click",this.nz);this.W(Q,"featuredproductdismissed",this.dJ);this.J.createServerVe(this.banner.element,this.banner,!0)};
nu5=function(Q){Q.isInitialized&&(Q.enabled=Q.isVisible,Q.pS=Q.isVisible,dd(Q),Q.Vk(),Q.thumbnailImage.hO(Q.isVisible),Q.shouldHideDismissButton||Q.dismissButton.hO(Q.isVisible),Q.shouldShowOverflowButton&&Q.overflowButton.hO(Q.isVisible))};
NF=function(){m3.apply(this,arguments)};
V3F=function(Q){Fh.call(this,Q);this.B=new NF(this.api);g.y(this,this.B);g.qf(this.api,this.B.element,4)};
c2=function(Q){Fh.call(this,Q);var W=this;this.B="";this.D=!0;this.U=this.api.j("html5_enable_audio_track_stickiness_phase_two");var x=new g.I0(Q);g.y(this,x);x.W(Q,"internalaudioformatchange",function(D,K){PvO(W,D,K)});
x.W(Q,"videoplayerreset",function(){vuO(W)});
x.W(Q,"videodatachange",function(D,K){W.onVideoDataChange(D,K)})};
PvO=function(Q,W,x){if(x){var D="";Cv2(Q,W)&&(D=W,Q.U||(Q.B=W),Q.api.j("html5_sabr_enable_server_xtag_selection")&&(x=Q.api.getVideoData(void 0,!0)))&&(x.pu=W);if(Q.U&&D&&Jwz(Q,D)){var K;u3(jQ(Q.api.C(),(K=Q.api.getVideoData())==null?void 0:g.ZM(K)),function(l){pNs(Q,D,l)})}}};
vuO=function(Q){if(Q.B)hD5(Q);else{var W;if(Q.U&&((W=ZQ())==null?0:W.size)){var x;u3(jQ(Q.api.C(),(x=Q.api.getVideoData())==null?void 0:g.ZM(x)),function(D){if((D=aon(D))&&Jwz(Q,D)){var K=Q.api.getVideoData(void 0,!0);K&&(K.pu=D)}})}}};
hD5=function(Q){var W=Q.api.getVideoData(void 0,!0);W&&(W.pu=Q.B)};
pNs=function(Q,W,x){aon(x)!==W&&(G0F([{settingItemId:gd(x),settingOptionValue:{stringValue:W}}]),u3(Q.XZ(),function(D){XpD(D,gd(x),{stringValue:W})}))};
dRF=function(Q,W){Yv(u3(u3(Q.XZ(),function(x){return zwO(x,[gd(W)])}),function(x){if(x){x=g.V(x);
for(var D=x.next();!D.done;D=x.next()){var K=D.value;D=K.key;K=K.value;D&&K&&G0F([{settingItemId:D,settingOptionValue:K}])}}}),function(){Q.D=!0})};
Cv2=function(Q,W){Q=Q.api.getAvailableAudioTracks();Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next())if(x=x.value,x.getLanguageInfo().getId()===W)return x;return null};
aon=function(Q){Q=gd(Q);var W=ZQ();Q=W?W.get(Q):void 0;return Q&&Q.stringValue?Q.stringValue:""};
gd=function(Q){var W=(484).toString();Q&&(W=(483).toString());return W};
Jwz=function(Q,W){var x;return W.split(".")[0]!==""&&((x=Q.api.getVideoData())==null?void 0:!Tr(x))};
G0F=function(Q){var W=ZQ();W||(W=new Map);Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next())x=x.value,W.set(x.settingItemId,x.settingOptionValue);W=JSON.stringify(Object.fromEntries(W));g.Ud("yt-player-user-settings",W,2592E3)};
g.yh=function(Q,W,x,D,K,l,M){g.rZ.call(this,g.T4({"aria-haspopup":"true"}),W,Q);this.F0=D;this.S=!1;this.D=null;this.options={};this.U=new g.H2(x,void 0,Q,K,l,M);g.y(this,this.U);this.listen("keydown",this.b2);this.listen("click",this.open)};
ic4=function(Q){if(Q.D){var W=Q.options[Q.D];W.element.getAttribute("aria-checked");W.element.setAttribute("aria-checked","false");Q.D=null}};
Awn=function(Q,W){g.yh.call(this,"Sleep timer",g.bn.SLEEP_TIMER,Q,W);this.J=Q;this.T={};this.X=this.t$("Off");this.G=this.B="";Q.j("web_settings_menu_icons")&&this.setIcon({K:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{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.N=new g.L({K:"div",lj:["ytp-menuitem-label-wrapper"],V:[{K:"div",m3:"End of video"},{K:"div",lj:["ytp-menuitem-sublabel"],m3:"{{content}}"}]});g.y(this,this.N);this.listen("click",this.onClick);this.W(Q,"videodatachange",this.onVideoDataChange);this.W(Q,"presentingplayerstatechange",this.Yf);this.W(Q,"settingsMenuVisibilityChanged",this.aGp);Q.createClientVe(this.element,this,218889);this.Yf();this.J.Wt("onSleepTimerFeatureAvailable")};
Hcs=function(Q){var W="Off 10 15 20 30 45 60".split(" "),x;((x=Q.J.getVideoData())==null?0:x.isLivePlayback)||W.push("End of video");x=Q.J.getPlaylist();var D;x&&((D=x.listId)==null?void 0:D.type)!=="RD"&&W.push("End of playlist");Q.ZV(g.pm(W,Q.t$));Q.T=g.uZ(W,Q.t$,Q);W=Q.t$("End of video");Q.options[W]&&g.Lq(Q.options[W],Q.N)};
UR5=function(Q,W){var x=Q.T[W],D=x==="End of video"||x==="End of playlist";x==="Off"&&(Q.B="");Q.J.getPlayerState()!==0&&Q.J.getPlayerState()!==5||!D?(Q.X=W,g.yh.prototype.ZA.call(Q,W),Q.ND(W),Q.J.Wt("onSleepTimerSettingsChanged",x)):Q.J.Wt("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})};
ey=function(Q){Fh.call(this,Q);var W=this;Q.addEventListener("settingsMenuInitialized",function(){W.menuItem||(W.menuItem=new Awn(W.api,W.api.Xy()),g.y(W,W.menuItem))});
Q.addEventListener("openSettingsMenuItem",function(x){if(x==="menu_item_sleep_timer"){if(!W.menuItem){var D;(D=W.api.Xy())==null||D.jt()}W.menuItem.open()}});
RN(Q,"resetSleepTimerMenuSettings",function(){W.resetSleepTimerMenuSettings()});
RN(Q,"setSleepTimerTimeLeft",function(x){W.setSleepTimerTimeLeft(x)});
RN(Q,"setVideoTimeLeft",function(x){W.setVideoTimeLeft(x)})};
qyF=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"onSnackbarMessage",function(x){switch(x){case 1:x=W.api.getPlayerStateObject(),x.isBuffering()&&g.r(x,8)&&g.r(x,16)&&W.api.Wt("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.ZA=function(Q,W,x,D,K){W=W===void 0?!1:W;D=D===void 0?!1:D;K=K===void 0?!1:K;g.Rd.call(this);this.T=K;this.G=!1;this.N=new aC(this);this.L=this.X=null;this.D=this.U=!1;g.y(this,this.N);this.target=Q;this.B=W;this.S=x||Q;this.G=D;W&&(g.O6&&this.target.setAttribute("draggable","true"),K||(this.target.style.touchAction="none"));fg(this)};
Lg=function(Q){g.d3(Q.N,!Q.B)};
fg=function(Q){Q.L=null;Q.X=null;Q.W(rd("over"),Q.dh);Q.W("touchstart",Q.H7);Q.B&&Q.W(rd("down"),Q.wNf)};
B_1=function(Q,W){for(var x=0;x<W.changedTouches.length;x++){var D=W.changedTouches[x];if(D.identifier===Q.X)return D}return null};
rd=function(Q){return window.navigator.msPointerEnabled?"MSPointer"+Q.charAt(0).toUpperCase()+Q.substring(1):"mouse"+Q};
TU=function(Q){return Q&&$Rv?N9(Q)||document:document};
Ioh=function(Q,W){g.L.call(this,{K:"div",lj:["ytp-overlay","ytp-speedmaster-overlay"],V:[{K:"div",Y:"ytp-speedmaster-user-edu",V:[{K:"div",Y:"ytp-speedmaster-label",m3:W},{K:"div",Y:"ytp-speedmaster-icon",m3:"{{icon}}"}]}]});this.J=Q;this.B=this.Nj("ytp-speedmaster-user-edu");this.updateValue("icon",iXa());g.j$(this.B,"ytp-speedmaster-has-icon");this.J.createClientVe(this.B,this,173040,!0);this.TC()};
ER=function(Q){Fh.call(this,Q);var W=this;this.N=this.D=!1;this.g7=g.X0(this.api.C().experiments,"speedmaster_touch_activation_ms")||500;this.F3=g.X0(this.api.C().experiments,"speedmaster_cancellation_movement_dp")||10;this.X3=g.X0(this.api.C().experiments,"speedmaster_playback_rate")||2;this.U=new g.I0(Q);g.y(this,this.U);this.T="2x";this.speedmasterUserEdu=new Ioh(Q,this.T);g.y(this,this.speedmasterUserEdu);g.qf(this.api,this.speedmasterUserEdu.element,4);this.B=new g.ZA(this.api.hf().rf,!0,null,
!1,!0);g.y(this,this.B);this.delay=new g.O3(this.fS,this.g7,this);g.y(this,this.delay);this.U.W(Q,"videodatachange",function(){OR(W)},this);
this.U.W(Q,"presentingplayerstatechange",function(){OR(W)},this);
this.U.W(Q,"autonavvisibility",function(){OR(W)},this);
this.api.fR().subscribe("visibilitystatechange",function(){OR(W)});
this.U.W(Q,"rootnodemousedown",function(x){W.G=x});
this.j("web_speedmaster_spacebar_control")&&(this.U.W(Q,"keyboardserviceglobalkeydown",function(x,D){W.uj=D;mR4(W,x,!0)},this),this.U.W(Q,"keyboardserviceglobalkeyup",function(x){mR4(W,x,!1)},this))};
Fr=function(Q){Q.delay.stop();Q.B.unsubscribe("dragmove",Q.X,Q);Q.B.unsubscribe("dragend",Q.L,Q);Q.D&&(Q.D=!1,Q.speedmasterUserEdu.TC(),Q.api.setPlaybackRate(Q.KS),Q.api.showControls(),Q.LS&&Q.api.pauseVideo())};
mR4=function(Q,W,x){x?W.keyCode!==32||W.repeat||Q.D||!Q.N||g.E3(Q.delay):Fr(Q)};
OR=function(Q){var W,x;var D=!!Q.T&&!((W=Q.api.getVideoData())==null?0:W.isLivePlayback)&&!Q.api.Rt()&&Q.api.getPresentingPlayerType()!==2&&!g.r(Q.api.getPlayerStateObject(),2)&&!((x=g.oN(Q.api))==null?0:x.AK())&&!Q.api.isEmbedsShortsMode()&&Xj(Q.api.fR());Q.N!==D&&(Q.N=D,Q.N?Q.B.subscribe("dragstart",Q.pS,Q):(Q.B.unsubscribe("dragstart",Q.pS,Q),Q.B.unsubscribe("dragmove",Q.X,Q),Q.B.unsubscribe("dragend",Q.L,Q),Fr(Q)))};
N_D=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);RN(this.api,"addPlayerResponseForAssociation",function(x){W.api.addPlayerResponseForAssociation(x)});
RN(this.api,"finishSegmentByCpn",function(x,D,K){return W.api.finishSegmentByCpn(x,D,K)});
this.events.W(Q,"modulecreated",function(x){if(x==="ad"&&(x=W.api.getVideoData(1))&&(x=x.getPlayerResponse())){var D;x=(D=x.adPlacements)!=null?D:[];D=g.V(x);for(var K=D.next();!K.done;K=D.next()){var l=x=void 0,M=void 0;if(K=(x=K.value.adPlacementRenderer)==null?void 0:(l=x.renderer)==null?void 0:(M=l.instreamVideoAdRenderer)==null?void 0:M.playerVars)x=Ds(K),W.api.addPlayerResponseForAssociation({playerVars:x})}}});
this.events.W(Q,"videodatachange",function(x,D){W.onVideoDataChange(x,D)})};
tE=function(Q,W,x){g.Ux.call(this,W,Q);this.B=x};
g.Q1=function(Q){Q4.call(this);var W=this;this.B=Q;this.L={};this.listener=function(x){W.dispatchEvent(new tE(W,x.type,x))}};
gu1=function(Q){var W=Q.getVideoData(),x=Q.DG(),D=x.yh(),K=Q.C(),l=Q.gI(),M=l.mD3,w=l.fBZ,S=jy(w,"bandwidth")*8/1024,b=jy(w,"networkactivity")/1024,z=jy(w,"bufferhealth"),k=l.j8,X=l.playerState.state.toString(16),u=x.getCurrentTime().toFixed(2),Y=RU(x.O4(),",",3),v="";if(W.isDaiEnabled()){W.enableServerStitchedDai&&(v+=W.zQ?"DS":"SS");v=W.aQ()?v+"LIFA, ":v+"DAI, ";var J=l.nD;J&&(v+=J)}rG(W)&&!W.aQ()&&(v+="LIFAE, ");var h;((h=Q.getVideoData(1))==null?0:g.TQ(h))?(v+="SSAP, ",(J=l.nD)&&(v+=J)):MJ(W)&&
(v+="SABR, ");if(W.fetchType){switch(W.fetchType){case "onesie":J="o";break;case "gp":J="gp";break;default:J="gvi"}v+="vd:"+J+", "}K.n_&&(v=K.n_.Q_?v+"wa, ":v+"w, ");v+="s:"+X+" t:"+u+" b:"+Y+" ";x.isSeeking()&&(v+="S");x.isPaused()&&(v+="P");x.isEnded()&&(v+="E");Q.isOrchestrationLeader()&&(v+=" L");(x=l.mx)&&(v+=" l:"+x.toFixed());x=l.currentTime;K=W.rZ;x&&x>K.start&&x<K.end&&(v+=" as");x=v;v=g.tx(qc)("_start",void 0);K=[];X=g.V(["pl_i","vir","or_p","orfb","pbs"]);for(u=X.next();!u.done;u=X.next())u=
u.value,(Y=g.tx(qc)(u,void 0))&&v&&(Y-=v,K.push(u+":"+Math.round(Y)));v=K.join(" ");K=g.OT();X=g.UX(Q).Ip5;u=W.D&&!W.D.B?"display:none":"";if((Y=W.clientPlaybackNonce)&&Y.length==16){Y+="AAAA";J=0;h="";for(var G=0;G<20;G++)if(J=(J<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(Y.charAt(G)),G%5==4){for(var H="",I=0;I<6;I++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(J&31)+H,J>>=5;h+=H}Y=h.substr(0,4)+" "+h.substr(4,4)+" "+h.substr(8,4)+" "+(h.substr(12,4)+" "+h.substr(16,
4))}else Y="";S={video_id_and_cpn:String(W.videoId)+" / "+Y,codecs:"",dims_and_frames:"",bandwidth_kbps:S.toFixed(0)+" Kbps",buffer_health_seconds:z.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:k?"":"display:none",drm:k,debug_info:x,extra_debug_info:"",bandwidth_style:u,network_activity_style:u,network_activity_bytes:b.toFixed(0)+" KB",shader_info:X,shader_info_style:X?"":"display:none",playback_categories:""};b=D.clientWidth+"x"+D.clientHeight+(K>1?"*"+K.toFixed(2):"");z="-";M.totalVideoFrames&&
(z=(M.droppedVideoFrames||0)+" dropped of "+M.totalVideoFrames);S.dims_and_frames=b+" / "+z;Q=Q.getVolume();M=uR4(W);var c;b=((c=W.N)==null?0:c.audio.B)?"DRC":Math.round(Q*M)+"%";c=Math.round(Q)+"% / "+b;Q=W.wx.toFixed(1);isFinite(Number(Q))&&(c+=" (content loudness "+Q+"dB)");S.volume=c;S.resolution=D.videoWidth+"x"+D.videoHeight;if(D=W.U){if(c=D.video)Q=c.fps,Q>1&&(S.resolution+="@"+Q),(Q=l.gXZ)&&Q.video&&(S.resolution+=" / "+Q.video.width+"x"+Q.video.height,Q.video.fps>1&&(S.resolution+="@"+Q.video.fps)),
S.codecs=cw5(D),!W.N||D.audio&&D.video?D.jb&&(S.codecs+=" / "+D.jb+"A"):S.codecs+=" / "+cw5(W.N),c.U||c.primaries?(Q=c.U||"unknown",Q==="smpte2084"?Q+=" (PQ)":Q==="arib-std-b67"&&(Q+=" (HLG)"),S.color=Q+" / "+(c.primaries||"unknown"),S.color_style=""):S.color_style="display:none";if(D.debugInfo)for(S.fmt_debug_info="",D=g.V(D.debugInfo),c=D.next();!c.done;c=D.next())c=c.value,S.fmt_debug_info+=c.label+":"+c.text+" ";S.fmt_debug_info_style=S.fmt_debug_info&&S.fmt_debug_info.length>0?"":"display:none"}D=
W.isLivePlayback;c=W.Nr;S.live_mode_style=D||c?"":"display:none";S.live_latency_style=D?"":"display:none";if(c)S.live_mode="Post-Live"+(zr(W)?" Manifestless":"");else if(D){c=jy(w,"livelatency");S.live_latency_secs=c.toFixed(2)+"s";D=zr(W)?"Manifestless, ":"";W.LS&&(D+="Windowed, ");Q="Uncertain";if(c>=0&&c<120)if(W.latencyClass&&W.latencyClass!=="UNKNOWN")switch(W.latencyClass){case "NORMAL":Q="Optimized for Normal Latency";break;case "LOW":Q="Optimized for Low Latency";break;case "ULTRALOW":Q="Optimized for Ultra Low Latency";
break;default:Q="Unknown Latency Setting"}else Q=W.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";D+=Q;(c=l.iej)&&(D+=", seq "+c.sequence);S.live_mode=D}!l.isGapless||KQ(W)&&l.PK||(S.playback_categories+="Gapless ");S.playback_categories_style=S.playback_categories?"":"display:none";S.bandwidth_samples=lr(w,"bandwidth");S.network_activity_samples=lr(w,"networkactivity");S.live_latency_samples=lr(w,"livelatency");S.buffer_health_samples=lr(w,"bufferhealth");l=g.tf(W);
if(W.cotn||l)S.cotn_and_local_media=(W.cotn?W.cotn:"null")+" / "+l;S.cotn_and_local_media_style=S.cotn_and_local_media?"":"display:none";bG(W,"web_player_release_debug")?(S.release_name="youtube.player.web_20250302_00_RC00",S.release_style=""):S.release_style="display:none";S.debug_info&&v.length>0&&S.debug_info.length+v.length<=60?S.debug_info+=" "+v:S.extra_debug_info=v;S.extra_debug_info_style=S.extra_debug_info&&S.extra_debug_info.length>0?"":"display:none";return S};
cw5=function(Q){var W=/codecs="([^"]*)"/.exec(Q.mimeType);return W&&W[1]?W[1]+" ("+Q.itag+")":Q.itag};
WH=function(Q,W,x,D,K){g.L.call(this,{K:"div",Y:"ytp-horizonchart"});this.G=W;this.sampleCount=x;this.N=D;this.X=K;this.index=0;this.heightPx=-1;this.D=this.U=null;this.B=Math.round(Q/x);this.element.style.width=this.B*this.sampleCount+"px";this.element.style.height=this.G+"em"};
xI=function(Q,W){if(Q.heightPx===-1){var x=null;try{x=g.Qz("CANVAS"),Q.U=x.getContext("2d")}catch(w){}if(Q.U){var D=Q.B*Q.sampleCount;Q.D=x;Q.D.width=D;Q.D.style.width=D+"px";Q.element.appendChild(Q.D)}else for(Q.sampleCount=Math.floor(Q.sampleCount/4),Q.B*=4,x=0;x<Q.sampleCount;x++)D=g.Qz("SPAN"),D.style.width=Q.B+"px",D.style.left=Q.B*x+"px",Q.element.appendChild(D)}x=Q.element.clientHeight||24;x!==Q.heightPx&&(Q.heightPx=x,Q.U&&(x=(window.devicePixelRatio||1)>1?2:1,Q.D.height=Q.heightPx*x,Q.D.style.height=
Q.heightPx+"px",Q.U.scale(1,x)));W=g.V(W);for(D=W.next();!D.done;D=W.next()){x=Q;var K=Q.index,l=D.value;for(D=0;D+2<x.N.length&&x.N[D+1]<l;)D++;l=Math.min(1,(l-x.N[D])/(x.N[D+1]-x.N[D]));if(x.U)x.U.fillStyle=x.X[D],x.U.fillRect(K*x.B,0,x.B,x.heightPx),x.U.fillStyle=x.X[D+1],x.U.fillRect(K*x.B,x.heightPx*(1-l),x.B,x.heightPx);else{K=x.element.children[K];var M=window.devicePixelRatio||1;l=Math.min(x.heightPx,Math.round(x.heightPx*l*M)/M)||0;K.style.height=l+"px";K.style.backgroundColor=x.X[D+1];K.style.borderTop=
"solid "+(x.heightPx-l)+"px "+x.X[D]}Q.index=(Q.index+1)%Q.sampleCount}W=Q.index;Q.U?Q.U.clearRect(W*Q.B,0,Q.B,Q.heightPx):(Q=Q.element.children[W],Q.style.height="0px",Q.style.borderTop="")};
Dh=function(Q){var W=null;W={K:"button",lj:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],Z:{title:"close"},m3:"[X]"};g.L.call(this,{K:"div",lj:["html5-video-info-panel","ytp-sfn"],V:[W,{K:"div",lj:["html5-video-info-panel-content","ytp-sfn-content"],V:[{K:"div",V:[{K:"div",m3:"Video ID / sCPN"},{K:"span",m3:"{{video_id_and_cpn}}",Y:"ytp-sfn-cpn"}]},{K:"div",V:[{K:"div",m3:"Viewport / Frames"},{K:"span",m3:"{{dims_and_frames}}"}]},{K:"div",V:[{K:"div",m3:"Current / Optimal Res"},{K:"span",
m3:"{{resolution}}"}]},{K:"div",V:[{K:"div",m3:"Volume / Normalized"},{K:"span",m3:"{{volume}}"}]},{K:"div",V:[{K:"div",m3:"Codecs"},{K:"span",m3:"{{codecs}}"}]},{K:"div",Z:{style:"{{shader_info_style}}"},V:[{K:"div",m3:"Shader Info"},{K:"span",m3:"{{shader_info}}"}]},{K:"div",Z:{style:"{{color_style}}"},V:[{K:"div",m3:"Color"},{K:"span",m3:"{{color}}"}]},{K:"div",Z:{style:"{{drm_style}}"},V:[{K:"div",m3:"Protected"},{K:"span",m3:"{{drm}}"}]},{K:"div",Z:{style:"{{bandwidth_style}}"},V:[{K:"div",m3:"Connection Speed"},
{K:"span",V:[{K:"span",m3:"{{bandwidth_chart}}"},{K:"span",m3:"{{bandwidth_kbps}}"}]}]},{K:"div",Z:{style:"{{network_activity_style}}"},V:[{K:"div",m3:"Network Activity"},{K:"span",V:[{K:"span",m3:"{{network_activity_chart}}"},{K:"span",m3:"{{network_activity_bytes}}"}]}]},{K:"div",V:[{K:"div",m3:"Buffer Health"},{K:"span",V:[{K:"span",m3:"{{buffer_health_chart}}"},{K:"span",m3:"{{buffer_health_seconds}}"}]}]},{K:"div",Z:{style:"{{live_latency_style}}"},V:[{K:"div",m3:"Live Latency"},{K:"span",V:[{K:"span",
m3:"{{live_latency_chart}}"},{K:"span",m3:"{{live_latency_secs}}"}]}]},{K:"div",Z:{style:"{{live_mode_style}}"},V:[{K:"div",m3:"Live Mode"},{K:"span",m3:"{{live_mode}}"}]},{K:"div",Z:{style:"{{playback_categories_style}}"},V:[{K:"div",m3:"Playback Categories"},{K:"span",m3:"{{playback_categories}}"}]},{K:"div",Z:{style:"{{fmt_debug_info_style}}"},V:[{K:"div",m3:"Format Debug Info"},{K:"span",m3:"{{fmt_debug_info}}"}]},{K:"div",V:[{K:"div",m3:"Mystery Text"},{K:"span",m3:"{{debug_info}}"}]},{K:"div",
Z:{style:"{{extra_debug_info_style}}"},V:[{K:"div",m3:""},{K:"span",V:[{K:"span",m3:"{{extra_debug_info}}"}]}]},{K:"div",V:[{K:"div",m3:"Date"},{K:"span",m3:"{{date}}"}]},{K:"div",Z:{style:"{{cotn_and_local_media_style}}"},V:[{K:"div",m3:"COTN / Local Media"},{K:"span",m3:"{{cotn_and_local_media}}"}]},{K:"div",Z:{style:"{{release_style}}"},V:[{K:"div",m3:"Player Release"},{K:"span",m3:"{{release_name}}"}]}]}]});this.G1=Q;this.position=0;this.X=!0;W?this.W(this.Nj("ytp-sfn-close"),"click",this.hide):
this.W(this.element,"click",this.hide);Q=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];W="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var x=Q.map(function(D){return D/4});
this.T={};this.B=new WH(300,1,150,Q,W);g.y(this,this.B);this.updateValue("bandwidth_chart",this.B);this.D=new WH(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.y(this,this.D);this.updateValue("live_latency_chart",this.D);this.U=new WH(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.y(this,this.U);this.updateValue("buffer_health_chart",this.U);this.G=new WH(300,1,150,x,W);g.y(this,this.G);this.updateValue("network_activity_chart",
this.G);this.delay=new g.O3(this.Yf,500,this);g.y(this,this.delay);this.N=new g.O3(this.S,2E4,this);g.y(this,this.N)};
fov=function(Q){Fh.call(this,Q);var W=this;RN(Q,"getStatsForNerds",function(){return gu1(W.api)});
wZ(Q,"showVideoInfo",function(){ywa(W,!0)});
wZ(Q,"hideVideoInfo",function(){ywa(W,!1)});
wZ(Q,"isVideoInfoVisible",function(){return eDh(W)})};
ywa=function(Q,W){var x=eDh(Q);Q.B||(Q.B=new Dh(Q.api),g.y(Q,Q.B),g.qf(Q.api,Q.B.element,4));Q.B.hO(W);var D=dZ(Q.api.x6());D&&D.loaded&&x!==W&&D.JR();W&&Q.api.qj("sfn",{},!0)};
eDh=function(Q){var W;return!((W=Q.B)==null||!W.md)};
KM=function(){g.N.call(this);this.U=null;this.startTime=this.duration=0;this.delay=new g.Td(this.B,null,this);g.y(this,this.delay)};
Zc4=function(Q,W){if(W.K==="path")return W.Z.d;if(W.V)for(var x=0;x<W.V.length;x++){var D=W.V[x];if(D&&typeof D!=="string"&&(D=Zc4(Q,D)))return D}};
Och=function(Q,W,x){x=Zc4(Q,x);var D=W.getElementsByTagName("path")[0],K=D.getAttribute("d");if(D.getAttribute("id")){var l=wn();W=W.getElementsByTagName("use");for(var M=0;M<W.length;M++)W[M].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+l);D.setAttribute("id",l)}var w=Loa(K),S=Loa(x);rw1(Q,function(b){D.setAttribute("d",T_1(w,S,b))},200)};
rw1=function(Q,W,x){Q.U=W;Q.startTime=(0,g.a8)();Q.duration=x;Q.B()};
Loa=function(Q){var W=[];Q=Q.match(Eus);for(var x=0;x<Q.length;x++){var D=Q[x]===" "?NaN:Number(Q[x]);W.push(isNaN(D)?Q[x]:D)}return W};
T_1=function(Q,W,x){for(var D="",K=0;K<Q.length;K++){var l=Q[K];D=typeof l==="number"?D+(l+(W[K]-l)*x):D+l}return D};
lX=function(Q){g.L.call(this,{K:"button",lj:["ytp-size-button","ytp-button"],Z:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}"},m3:"{{icon}}"});this.api=Q;this.cz=null;this.transition=new KM;g.y(this,this.transition);this.W(Q,"sizestylechange",this.Yf);this.W(Q,"fullscreentoggled",this.Yf);this.W(Q,"presentingplayerstatechange",this.Yf);Q.createClientVe(this.element,this,139116);this.Yf();this.listen("click",this.onClick);Jo(Q,this.element,
this)};
Fo2=function(Q){Fh.call(this,Q);var W=this;this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"standardControlsInitialized",function(){W.button=new lX(Q);g.y(W,W.button);Q.yR(W.button,"RIGHT_CONTROLS_RIGHT")})};
xvn=function(Q){Fh.call(this,Q);var W=this,x={};this.X=(x.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},x.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(D){return t31(W,D)},x.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(D){return t31(W,D)},x);
this.N={};this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"videodatachange",function(D,K){if(D!=="dataupdated"||K.videoId!==W.videoId||!wh(W.timelyActions,Q7Q(K)))W.onVideoDataChange(K)});
this.events.W(Q,"presentingplayerstatechange",function(D){W.qD(D)});
this.events.W(Q,g.Ru("timelyAction"),function(D){W.onCueRangeEnter(D.getId())});
this.events.W(Q,g.wt("timelyAction"),function(D){W.onCueRangeExit(D.getId())});
this.api.j("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.W(this.api,"keyboardserviceglobalkeydown",function(D,K){if((Dg?D.altKey:D.ctrlKey)&&D.keyCode===39&&W.G&&W.B){var l;D=g.e((l=j7(W,W.B))==null?void 0:l.rendererContext,W1v);if(l=Nl(D==null?void 0:D.onTap))W.api.Wt("innertubeCommand",l),K&&(K.HC=!0)}},this);
this.D=new g.L({K:"div",lj:["ytp-player-content","ytp-timely-actions-content"]});this.D.hide();RN(Q,"insertTimelyActionUi",function(D){W.D.element.children.length>0&&g.Df(W.D.element);D.classList.add("ytp-timely-actions-overlay");W.D.element.appendChild(D)});
g.y(this,this.D);g.qf(this.api,this.D.element,4)};
Dvv=function(Q){Q.timelyActions&&(Q.N=Q.timelyActions.reduce(function(W,x){if(x.cueRangeId===void 0)return W;W[x.cueRangeId]=0;return W},{}))};
j7=function(Q,W){if(Q.timelyActions){Q=g.V(Q.timelyActions);for(var x=Q.next();!x.done;x=Q.next())if(x=x.value,x.cueRangeId===W)return x}};
K1n=function(Q,W){if((Q=j7(Q,W))&&Q.onCueRangeExit)return Nl(Q.onCueRangeExit)};
l$n=function(Q){if(Q.B!==void 0){var W=(W=j7(Q,Q.B))&&W.onCueRangeEnter?Nl(W.onCueRangeEnter):void 0;var x=j7(Q,Q.B);if(x&&x.additionalTrigger){var D=!1;for(var K=g.V(x.additionalTrigger),l=K.next();!l.done;l=K.next())l=l.value,l.type&&l.args&&Q.X[l.type]!==void 0&&(D=D||Q.X[l.type](l.args))}else D=!0;W&&D&&(Q.api.Wt("innertubeCommand",W),Q.setTimeout(x),Q.N[Q.B]!==void 0&&Q.N[Q.B]++,Q.G=!0)}};
t31=function(Q,W){return Q.U===void 0?!1:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(W.seekLengthMilliseconds)===5E3?Q.U===72:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(W.seekLengthMilliseconds)===1E4?Q.U===74:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(W.seekLengthMilliseconds)===5E3?Q.U===71:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(W.seekLengthMilliseconds)===1E4?Q.U===73:!1};
Q7Q=function(Q){if(Q=Q.getWatchNextResponse()){var W,x;Q=(W=Q.playerOverlays)==null?void 0:(x=W.playerOverlayRenderer)==null?void 0:x.timelyActionsOverlayViewModel;W=g.e(Q,j7F);if(W!=null&&W.timelyActions)return W==null?void 0:W.timelyActions.map(function(D){return g.e(D,MAO)}).filter(function(D){return!!D})}};
Rk5=function(Q){Fh.call(this,Q);var W=this;wZ(this.api,"getPlaybackRate",function(){return W.api.getPlaybackRate()});
wZ(this.api,"setPlaybackRate",function(x){typeof x==="number"&&W.api.setPlaybackRate(x)})};
wyD=function(Q){Q=Q.cV();if(!Q)return!1;Q=g.lY(Q).exp||"";return Q.includes("xpv")||Q.includes("xpe")};
SDa=function(Q){Q=g.V(g.Mt(Q,!0));for(var W=Q.next();!W.done;W=Q.next())if(wyD(W.value))return!0;return!1};
b7z=function(Q,W){Q=g.V(g.Mt(Q,!0));for(var x=Q.next();!x.done;x=Q.next())if(x=x.value,wyD(x)){var D={potc:"1",pot:W};x.url&&(x.url=jL(x.url,D))}};
s74=function(Q){var W=new zVz,x={},D=(x["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",x);return new vx(W,Q,function(){return D})};
zkn=function(Q){return g.U(function(W){if(W.B==1)return g.P5(W,2),g.A(W,Q,4);if(W.B!=2)return g.Cs(W,0);g.Jv(W);g.VF(W)})};
we=function(Q){Fh.call(this,Q);var W=this;this.useLivingRoomPoToken=!1;this.N=new g.XT;this.Qh=null;this.G=!1;this.D=null;this.L=!1;var x=Q.C().getWebPlayerContextConfig();this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"spsumpreject",function(D,K,l){W.L=K;D&&W.G&&!W.D&&(W.j("html5_generate_content_po_token")&&l?W.Ye(l):W.j("html5_generate_session_po_token")&&kH4(W));W.D||W.api.qj("stp",{s:+W.G,b:+W.L})});
this.events.W(Q,"poTokenVideoBindingChange",function(D){W.Ye(D)});
this.useLivingRoomPoToken=!(x==null||!x.useLivingRoomPoToken);Q.addEventListener("csiinitialized",function(){W.Qh=Q.v3();var D=(W.j("html5_generate_session_po_token")||W.j("html5_generate_content_po_token"))&&!W.useLivingRoomPoToken;try{if(W.j("html5_use_shared_owl_instance"))Xyn(W);else if(D){W.Qh.U4("pot_isc");W.j("html5_new_wpo_client")||o3h(W);var K=g.X0(W.api.C().experiments,"html5_webpo_kaios_defer_timeout_ms");K?(W.j("html5_new_wpo_client")&&(W.U=Lt()),g.oc(function(){Rg(W)},K)):W.j("html5_webpo_idle_priority_job")?
(W.j("html5_new_wpo_client")&&(W.U=Lt()),g.Fw(g.QX(),function(){Rg(W)})):Rg(W)}}catch(l){l instanceof Error&&g.Bp(l)}});
Q.addEventListener("trackListLoaded",this.vK.bind(this));Q.Y4(this)};
u7s=function(Q){var W=Qv(Q.experiments,"html5_web_po_request_key");return W?W:g.dO(Q)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
S7=function(Q,W){if(Q.j("html5_webpo_bge_ctmp")){var x,D={hwpo:!!Q.B,hwpor:!((x=Q.B)==null||!x.isReady())};Q.api.qj(W,D)}};
Xyn=function(Q){var W,x;g.U(function(D){if(D.B==1)return S7(Q,"swpo_i"),Q.U=Lt(),bX(Q),g.A(D,Gd(),2);if(D.B!=3)return W=D.U,S7(Q,"swpo_co"),g.A(D,bpO(W),3);x=D.U;Q.B=YD5(Q,x);S7(Q,"swpo_cc");Q.B.ready().then(function(){Q.N.resolve();S7(Q,"swpo_re")});
g.oc(function(){Rg(Q);S7(Q,"swpo_si")},0);
g.VF(D)})};
o3h=function(Q){var W=Q.api.C(),x=u7s(W),D=s74(x);W=new E1({M9:x,kR:D,onEvent:function(K){(K=n3Q[K])&&Q.Qh.U4(K)},
onError:g.Bp,oX:Hzv(W.experiments),W_:function(){return void Q.api.qj("itr",{})},
Fjj:W.experiments.ij("html5_web_po_disable_remote_logging")||VAa.includes(g.$X(W.n2)||"")});W.ready().then(function(){return void Q.N.resolve()});
g.y(Q,W);Q.B=W};
PDz=function(Q){var W=Q.api.C(),x=s74(u7s(W)),D=x.iz.bind(x);x.iz=function(w){var S;return g.U(function(b){if(b.B==1)return g.A(b,D(w),2);S=b.U;Q.api.qj("itr",{});return b.return(S)})};
try{var K=new Ct({kR:x,r0:{maxAttempts:5},mQ:{disable:W.experiments.ij("html5_web_po_disable_remote_logging")||VAa.includes(g.$X(W.n2)||""),VH:Hzv(W.experiments),ewS:Q.j("wpo_dis_lfdms")?0:1E3},jQ1:g.Bp});var l=new Z4({RU:K,kR:x,onError:g.Bp});zkn(l.z_()).then(function(){return void Q.N.resolve()});
g.y(Q,K);g.y(Q,l);Q.B=YD5(Q,l)}catch(w){g.Bp(w);var M;(M=K)==null||M.dispose()}};
Rg=function(Q){var W=Q.api.C();Q.Qh.U4("pot_ist");Q.B?Q.B.start():Q.j("html5_new_wpo_client")&&PDz(Q);Q.j("html5_bandaid_attach_content_po_token")||(Q.j("html5_generate_session_po_token")&&(bX(Q),kH4(Q)),W=g.X0(W.experiments,"html5_session_po_token_interval_time_ms")||0,W>0&&(Q.X=g.uY(function(){bX(Q)},W)),Q.G=!0)};
bX=function(Q){var W,x,D,K;g.U(function(l){if(!Q.j("html5_generate_session_po_token")||Q.useLivingRoomPoToken)return l.return();W=Q.api.C();x=g.TK("EOM_VISITOR_DATA")||g.TK("VISITOR_DATA");D=W.im?W.datasyncId:x;K=Qv(W.experiments,"html5_mock_content_binding_for_session_token")||W.livingRoomPoTokenId||D;W.gH=so(Q,K);g.VF(l)})};
so=function(Q,W){if(!Q.B)return Q.U?Q.U(W):"";try{var x=Q.B.isReady();Q.Qh.U4(x?"pot_cms":"pot_csms");var D="";D=Q.j("html5_web_po_token_disable_caching")?Q.B.Bx({Im:W}):Q.B.Bx({Im:W,P3:{T4:W,cO3:150,NI:!0,dM:!0}});Q.Qh.U4(x?"pot_cmf":"pot_csmf");if(x){var K;(K=Q.D)==null||K.resolve();Q.D=null;if(Q.L){Q.L=!1;var l;(l=Q.api.app.w7())==null||l.Bw(!1)}}return D}catch(M){return g.Bp(M),""}};
kH4=function(Q){Q.B&&(Q.D=new th,Q.B.ready().then(function(){Q.Qh.U4("pot_if");bX(Q)}))};
YD5=function(Q,W){Q.j("html5_web_po_token_disable_caching")||W.VX(150);var x=!1,D=zkn(W.z_()).then(function(){x=!0});
return{isReady:function(){return x},
ready:function(){return D},
Bx:function(K){return W.Bx({Im:K.Im,uv:!0,pH:!0,P3:K.P3?{T4:K.P3.T4,NI:K.P3.NI,dM:K.P3.dM}:void 0})},
start:function(){}}};
v3v=function(Q){Fh.call(this,Q);var W=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.I0(Q);g.y(this,this.events);this.events.W(Q,"heartbeatRequest",function(x){if(W.freePreviewUsageDetails.length||W.freePreviewWatchedDuration!==null)x.heartbeatRequestParams||(x.heartbeatRequestParams={}),x.heartbeatRequestParams.unpluggedParams||(x.heartbeatRequestParams.unpluggedParams={}),W.freePreviewUsageDetails.length>0?x.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
W.freePreviewUsageDetails:x.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+W.freePreviewWatchedDuration}});
RN(Q,"setFreePreviewWatchedDuration",function(x){W.freePreviewWatchedDuration=x});
RN(Q,"setFreePreviewUsageDetails",function(x){W.freePreviewUsageDetails=x})};
zZ=function(Q){g.N.call(this);this.features=[];var W=this.B,x=new aY(Q),D=new to(Q),K=new Cg(Q),l=new we(Q);var M=g.aE(Q.C())?void 0:new na(Q);var w=new v2(Q),S=new fov(Q),b=new Rk5(Q),z=new hc(Q);var k=g.aE(Q.C())?new v3v(Q):void 0;var X=Q.j("html5_enable_ssap")?new N_D(Q):void 0;var u=Q.j("web_cinematic_watch_settings")&&(u=Q.C().getWebPlayerContextConfig())!=null&&u.cinematicSettingsAvailable?new k2(Q):void 0;var Y=new pa(Q);var v=Q.j("enable_courses_player_overlay_purchase")?new aQa(Q):void 0;
var J=g.ET(Q.C())?new C34(Q):void 0;var h=new V2(Q);var G=Q.C().N?new uJ4(Q):void 0;var H=g.d5(Q.C())?new ovs(Q):void 0;var I=Q.j("web_player_move_autonav_toggle")&&Q.C().hn?new wc1(Q):void 0;var c=g.ET(Q.C())?new mt2(Q):void 0;var O=Q.j("web_enable_speedmaster")&&g.ET(Q.C())?new ER(Q):void 0;var T=Q.C().IH?void 0:new Fo2(Q);var Ks=Q.j("report_pml_debug_signal")?new lQD(Q):void 0;var Mz=new Fch(Q),QF=new aJ(Q);var f=g.Il(Q.C())?new RDF(Q):void 0;var t=navigator.mediaSession&&window.MediaMetadata&&
Q.C().Pi?new Vh(Q):void 0;var P=Q.j("html5_enable_drc")&&!Q.C().X?new Y2(Q):void 0;var Z=new W9(Q);var c5=g.ET(Q.C())?new V3F(Q):void 0;var vu=Q.j("html5_enable_d6de4")?new JE(Q):void 0;var kF=g.ET(Q.C())&&Q.j("web_sleep_timer")?new ey(Q):void 0;var a1=g.d5(Q.C())?new nvQ(Q):void 0;var El=new c2(Q),D7=new Xe(Q),uC=new Iha(Q);var p=Q.j("enable_sabr_snackbar_message")?new qyF(Q):void 0;var a=Q.j("web_enable_timely_actions")?new xvn(Q):void 0;W.call(this,x,D,K,l,M,w,S,b,z,k,X,u,Y,v,J,h,G,H,I,c,O,T,Ks,
Mz,QF,f,void 0,t,P,Z,void 0,c5,vu,kF,a1,void 0,El,D7,uC,void 0,p,a,new oY(Q))};
kI=function(){this.U=this.B=NaN};
CD4=function(Q,W){this.bj=Q;this.timerName="";this.D=!1;this.U=NaN;this.N=new kI;this.B=W||null;this.D=!1};
Jk1=function(Q,W,x){var D=g.BL(W.Dp)&&!W.Dp.X;if(W.Dp.A4&&(AC(W.Dp)||W.Dp.fS==="shortspage"||xS(W.Dp)||D)&&!Q.D){Q.D=!0;Q.X=W.clientPlaybackNonce;g.TK("TIMING_ACTION")||rT("TIMING_ACTION",Q.bj.csiPageType);Q.bj.csiServiceName&&rT("CSI_SERVICE_NAME",Q.bj.csiServiceName);if(Q.B){D=Q.B.v3();for(var K=g.V(Object.keys(D)),l=K.next();!l.done;l=K.next())l=l.value,Nc(l,D[l],Q.timerName);D=g.tx(r0Q)(Q.B.fO);g.co(D,Q.timerName);D=Q.B;D.U={};D.fO={}}g.co({playerInfo:{visibilityState:g.tx(Lxz)()},playerType:"LATENCY_PLAYER_HTML5"},
Q.timerName);Q.L!==W.clientPlaybackNonce||Number.isNaN(Q.U)||(y_("_start",Q.timerName)?x=g.tx(qc)("_start",Q.timerName)+Q.U:g.Bp(new g.Lw("attempted to log gapless pbs before CSI timeline started",{cpn:W.clientPlaybackNonce})));x&&!y_("pbs",Q.timerName)&&Xo(x)}};
Xo=function(Q,W){Nc("pbs",Q!=null?Q:(0,g.a8)(),W)};
pys=function(Q,W,x,D,K,l,M){Q=(Q===x?"video":"ad")+"_to_"+(W===x?"video":"ad");if(Q!=="video_to_ad"||l!=null&&l.F3){l=Q==="ad_to_video"?l:D;x=l==null?void 0:l.QQ;var w={};if(D==null?0:D.X)w.cttAuthInfo={token:D.X,videoId:D.videoId};K&&(w.startTime=K);gK(Q,w);var S,b,z;D={targetVideoId:(S=D==null?void 0:D.videoId)!=null?S:"empty_video",targetCpn:W,adVideoId:(b=l==null?void 0:l.videoId)!=null?b:"empty_video",adClientPlaybackNonce:(z=x==null?void 0:x.cpn)!=null?z:l==null?void 0:l.clientPlaybackNonce};
x&&(D.adBreakType=x.adBreakType,D.adType=x.adType);g.co(D,Q);Xo(M,Q)}};
og=function(Q){KI5();D62();Q.timerName=""};
hkQ=function(Q){if(Q.B){var W=Q.B;W.U={};W.fO={}}Q.D=!1;Q.L=void 0;Q.U=NaN};
a$z=function(Q,W){g.Rd.call(this);this.Dp=Q;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.B=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.T={};this.U=0;if(Q=W.session_data)this.sessionData=Wb(Q,"&");this.index=Math.max(0,Number(W.index)||0);this.loop=!!W.loop;this.startSeconds=Number(W.startSeconds)||0;this.title=W.playlist_title||"";this.description=W.playlist_description||"";this.author=
W.author||W.playlist_author||"";W.video_id&&(this.items[this.index]=W);if(Q=W.api)typeof Q==="string"&&Q.length===16?W.list="PL"+Q:W.playlist=Q;if(Q=W.list)switch(W.listType){case "user_uploads":this.listId=new vW("UU","PLAYER_"+Q);break;default:var x=W.playlist_length;x&&(this.length=Number(x)||0);this.listId=g.C1(Q);if(Q=W.video)this.items=Q.slice(0),this.loaded=!0}else if(W.playlist){Q=W.playlist.toString().split(",");this.index>0&&(this.items=[]);Q=g.V(Q);for(x=Q.next();!x.done;x=Q.next())(x=
x.value)&&this.items.push({video_id:x});this.length=this.items.length;if(Q=W.video)this.items=Q.slice(0),this.loaded=!0}this.setShuffle(!!W.shuffle);if(Q=W.suggestedQuality)this.quality=Q;this.T=YS(W,"playlist_");this.D=(W=W.thumbnail_ids)?W.split(","):[]};
GHs=function(Q){return!!(Q.playlist||Q.list||Q.api)};
dvz=function(Q){var W=Q.index+1;return W>=Q.length?0:W};
i71=function(Q){var W=Q.index-1;return W<0?Q.length-1:W};
g.uX=function(Q,W,x,D){W=W!==void 0?W:Q.index;W=Q.items&&W in Q.items?Q.items[Q.order[W]]:null;var K=null;W&&(x&&(W.autoplay="1"),D&&(W.autonav="1"),K=new g.f1(Q.Dp,W),g.y(Q,K),K.Tc=!0,K.startSeconds=Q.startSeconds||K.clipStart||0,Q.listId&&(K.playlistId=Q.listId.toString()));return K};
AkO=function(Q,W){Q.index=g.wS(W,0,Q.length-1);Q.startSeconds=0};
H7F=function(Q,W){if(W.video&&W.video.length){Q.title=W.title||"";Q.description=W.description;Q.views=W.views;Q.likes=W.likes;Q.dislikes=W.dislikes;Q.author=W.author||"";var x=W.loop;x&&(Q.loop=x);x=g.uX(Q);Q.items=[];for(var D=g.V(W.video),K=D.next();!K.done;K=D.next())if(K=K.value)K.video_id=K.encrypted_id,Q.items.push(K);Q.length=Q.items.length;(W=W.index)?Q.index=W:Q.findIndex(x);Q.setShuffle(!1);Q.loaded=!0;Q.U++;Q.B&&Q.B()}};
BHD=function(Q,W){var x,D,K,l,M,w,S;return g.U(function(b){if(b.B==1){x=g.ll();var z=Q.C(),k={context:g.j9(Q),playbackContext:{contentPlaybackContext:{ancestorOrigins:z.ancestorOrigins}}},X=z.getWebPlayerContextConfig();if(X==null?0:X.encryptedHostFlags)k.playbackContext.contentPlaybackContext.encryptedHostFlags=X.encryptedHostFlags;if(X==null?0:X.hideInfo)k.playerParams={showinfo:!1};z=z.embedConfig;X=W.docid||W.video_id||W.videoId||W.id;if(!X){X=W.raw_embedded_player_response;if(!X){var u=W.embedded_player_response;
u&&(X=JSON.parse(u))}if(X){var Y,v,J,h,G,H;X=((H=g.e((Y=X)==null?void 0:(v=Y.embedPreview)==null?void 0:(J=v.thumbnailPreviewRenderer)==null?void 0:(h=J.playButton)==null?void 0:(G=h.buttonRenderer)==null?void 0:G.navigationEndpoint,g.tQ))==null?void 0:H.videoId)||null}else X=null}Y=(Y=X)?Y:void 0;v=Q.playlistId?Q.playlistId:W.list;J=W.listType;if(v){var I;J==="user_uploads"?I={username:v}:I={playlistId:v};UvQ(z,Y,W,I);k.playlistRequest=I}else W.playlist?(I={templistVideoIds:W.playlist.toString().split(",")},
UvQ(z,Y,W,I),k.playlistRequest=I):Y&&(I={videoId:Y},z&&(I.serializedThirdPartyEmbedConfig=z),k.singleVideoRequest=I);D=k;K=g.Q_(qDa);g.P5(b,2);return g.A(b,g.Ti(x,D,K),4)}if(b.B!=2)return l=b.U,M=Q.C(),W.raw_embedded_player_response=l,M.KS=w3(W,g.d5(M)),M.D=M.KS==="EMBEDDED_PLAYER_MODE_PFL",l&&(w=l,w.trackingParams&&AB(w.trackingParams)),b.return(new g.f1(M,W));S=g.Jv(b);S instanceof Error||(S=Error("b259802748"));g.ql(S);return b.return(Q)})};
UvQ=function(Q,W,x,D){x.index&&(D.playlistIndex=String(Number(x.index)+1));D.videoId=W?W:"";Q&&(D.serializedThirdPartyEmbedConfig=Q)};
g.nM=function(Q,W){YI.get(Q);YI.set(Q,W)};
g.V1=function(Q){g.Rd.call(this);this.loaded=!1;this.player=Q};
$v5=function(){this.U=[];this.B=[]};
g.Mt=function(Q,W){return W?Q.B.concat(Q.U):Q.B};
g.PH=function(Q,W){switch(W.kind){case "asr":I$l(W,Q.U);break;default:I$l(W,Q.B)}};
I$l=function(Q,W){g.Os(W,function(x){return Q.yI(x)})||W.push(Q)};
g.vH=function(Q){g.N.call(this);this.G1=Q;this.U=new $v5;this.N=null;this.L=[];this.S=[]};
g.CM=function(Q,W,x){g.vH.call(this,Q);this.videoData=W;this.audioTrack=x;this.B=null;this.D=!1;this.L=W.Mb;this.S=W.ir;this.D=g.I4(W)};
g.JJ=function(Q,W){return KS(Q.info.mimeType)?W?Q.info.itag===W:!0:!1};
g.mvF=function(Q,W){if(Q.B!=null&&g.aE(W.C())&&!Q.B.isManifestless&&Q.B.B.rawcc!=null)return!0;if(!Q.lN())return!1;W=!!Q.B&&Q.B.isManifestless&&Object.values(Q.B.B).some(function(x){return g.JJ(x,"386")});
Q=!!Q.B&&!Q.B.isManifestless&&g.yhv(Q.B);return W||Q};
g.pM=function(Q,W,x,D,K,l){g.vH.call(this,Q);this.videoId=x;this.Sg=K;this.eventId=l;this.X={};this.B=null;Q=D||g.lY(W).hl||"";Q=Q.split("_").join("-");this.D=jL(W,{hl:Q})};
NH1=function(Q,W){this.U=Q;this.B=W;this.onFailure=void 0};
ckF=function(Q,W){return{Da:Q.Da&&W.Da,n_:Q.n_&&W.n_,sync:Q.sync&&W.sync,streaming:Q.streaming&&W.streaming}};
ag=function(Q,W){var x=g3n,D=this;this.path=Q;this.D=W;this.N=x;this.capabilities={Da:!!this.D,n_:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.L=new NH1([{name:"compileStreaming",condition:function(K){return!!D.U&&K.streaming},
Qr:hJ.IA("wmcx",function(){return WebAssembly.compileStreaming(fetch(D.path))}),
onFailure:function(){return D.capabilities.streaming=!1}},
{name:"sync",condition:function(K){return K.sync},
Qr:function(){return u3(yk4(D),hJ.IA("wmcs",function(K){return new WebAssembly.Module(K)}))},
onFailure:function(){return D.capabilities.sync=!1}},
{name:"async",condition:function(){return!0},
Qr:function(){return u3(yk4(D),hJ.IA("wmca",function(K){return WebAssembly.compile(K)}))},
onFailure:function(){return D.capabilities.n_=!1}}]);
this.X=new NH1([{name:"instantiateStreaming",condition:function(K){return K.n_&&K.streaming&&!D.U&&!D.B},
Qr:function(K,l){return hJ.Op("wmix",function(){return WebAssembly.instantiateStreaming(fetch(D.path),l)}).then(function(M){D.B=b3(M.module);
return{instance:M.instance,Q_:!1}})},
onFailure:function(){return D.capabilities.streaming=!1}},
{name:"sync",condition:function(K){return K.n_&&K.sync},
Qr:function(K,l){return u3(eks(D,K),hJ.IA("wmis",function(M){return{instance:new WebAssembly.Instance(M,l),Q_:!1}}))},
onFailure:function(){return D.capabilities.sync=!1}},
{name:"async",condition:function(K){return K.n_},
Qr:function(K,l){return u3(u3(eks(D,K),hJ.IA("wmia",function(M){return WebAssembly.instantiate(M,l)})),function(M){return{instance:M,
Q_:!1}})},
onFailure:function(){return D.capabilities.n_=!1}},
{name:"asmjs",condition:function(K){return K.Da},
Qr:function(K,l){return b3(hJ.Op("wmij",function(){return D.D(l)}).then(function(M){return{instance:{exports:M},
Q_:!0}}))},
onFailure:function(){return D.capabilities.Da=!1}}],function(K,l,M){return D.N(M,K.instance.exports)})};
L1h=function(Q){var W=f$4;return W.instantiate(Q?ckF(W.capabilities,Q):W.capabilities,new Z7n)};
yk4=function(Q){if(Q.U)return Q.U;var W=fetch(Q.path).then(function(x){return x.arrayBuffer()}).then(function(x){Q.U=b3(x);
return x}).then(void 0,function(x){g.Bp(Error("wasm module fetch failure: "+x.message,{cause:x}));
Q.U=void 0;throw x;});
Q.U=b3(W);return Q.U};
eks=function(Q,W){if(!W.n_)return kv(Error("wasm unavailable"));if(Q.B)return Q.B;Q.B=Yv(u3(Q.compile(W),function(x){Q.B=b3(x);return x}),function(x){g.Bp(Error("wasm module compile failure: "+x.message,{cause:x}));
Q.B=void 0;throw x;});
return Q.B};
rkF=function(){};
TH5=function(){var Q=this;this.proc_exit=function(){};
this.fd_write=function(W,x,D){if(!Q.exports)return 1;W=new Uint32Array(Q.exports.memory.buffer,x,D*2);x=[];for(var K=0;K<D;++K){var l=new Uint8Array(Q.exports.memory.buffer,W[K*2],W[K*2+1]);l=g.hy(l);x.push(l)}return x.reduce(function(M,w){return M+w.length},0)}};
Z7n=function(){this.env=new rkF;this.wasi_snapshot_preview1=new TH5};
g3n=function(Q,W){Q.wasi_snapshot_preview1.exports=W;Q=Math.floor(Math.random()*256);var x=Math.floor(Math.random()*256),D=0;try{D=W.malloc(16);(new Uint8Array(W.memory.buffer,D,16)).fill(Q);if(W.sentinel(D,16,x)!==x*16%256)return!1;for(var K=new Uint8Array(W.memory.buffer,D,16),l=0;l<16;l++)if(K[l]!==(Q+x)%256)return!1;return!0}finally{D!==0&&W.free(D)}};
O75=function(Q,W){this.instance=Q;this.Q_=W;this.exports=this.B=this.instance.exports};
F1l=function(Q,W,x){x=x===void 0?!1:x;var D=D===void 0?!0:D;var K=hJ.Xa();return u3(E3s(Q,W,{Da:x,n_:!0,sync:!0,streaming:!0},D),function(l){hJ.Wd(l.Q_?"winitjs":"winit",K);return l})};
E3s=function(Q,W,x,D){D=D===void 0?!0:D;f$4||(f$4=new ag(Q,W));return u3(L1h(x),function(K){return new O75(K.instance,K.Q_,D)})};
tA1=function(Q,W){g.N.call(this);var x=this;this.J=Q;this.B=W;this.fO={};this.U={};this.D=null;this.N=new Set;this.L=new g.I0(this);this.by={xR3:function(){return x.B},
Wp:function(){return x.Wp()}};
this.X=this.J.j("web_player_defer_modules");this.CZ=new Map;g.y(this,this.L);this.L.W(Q,"videodatachange",this.onVideoDataChange)};
g.GZ=function(Q){return Q.CZ.get("captions")};
lYD=function(Q,W){switch(W){case "ad":return QiQ(Q);case "annotations_module":return Q.J.isEmbedsShortsMode()?Q=!1:(W=Q.J,Q=W.C(),W=W.getVideoData(),Q=Q.D||W.vJ||Q.controlsType==="3"?!1:Q.LS.isEmpty()&&Q.playerStyle!=="annotation-editor"&&Q.playerStyle!=="live-dashboard"?!!W.O3||!!g.qJ(W)||!!g.BX(W):!0),Q;case "asmjs":return Q.J.C().j("html5_allow_asmjs");case "creatorendscreen":return WM5(Q);case "embed":return g.d5(Q.J.C());case "endscreen":return g.xK5(Q);case "heartbeat":return Q.OA();case "kids":return yv(Q.J.C());
case "remote":return Q.J.C().oH;case "miniplayer":return Q.J.C().showMiniplayerUiWhenMinimized;case "offline":return Q.J.C().KR;case "captions":return DKF(Q);case "unplugged":return g.$h(Q.J.C());case "ux":return Q.J.C().SZ;case "webgl":return KMl(Q);case "ypc":return Q.m5();case "ypc_clickwrap":return Q=Q.J.getVideoData(),Q.eK&&!Q.ZR;case "yto":return!!Q.J.getVideoData().KS.includes("yto");default:return g.ql(Error("Module descriptor "+W+" does not match")),!1}};
de=function(Q,W,x,D,K){var l;x=x===void 0?!1:x;D=D===void 0?!1:D;var M=Q.CZ.get(W);if(!M||D)if(K||(K=function(){de(Q,W,x,D)}),l||(l=function(){Q.J.BI(W)}),M=M||jin(Q,W,lYD(Q,W),K,l))Q.CZ.set(W,M),M.create(),Q.J.publish("modulecreated",W),x&&Q.J.DJ("onApiChange")};
RS1=function(Q){var W=W===void 0?!1:W;var x,D,K,l,M;return g.U(function(w){if(w.B==1)return(x=Q.CZ.get("asmjs"))&&!W?w.return(x):(D=YI.get("asmjs"))!=null?(K=D,w.kf(2)):g.A(w,new Promise(function(S,b){Mva(Q,"asmjs",function(){var z=YI.get("asmjs");z?S(z):b("cannot load module asmjs")},b)}),3);
w.B!=2&&(K=w.U);l=K;if(!l)return w.return(Promise.reject("cannot load module asmjs"));M=new l(Q.J);Q.CZ.set("asmjs",M);M.create();return w.return(M)})};
bin=function(Q){w81(Q)&&Q.ac();SzO(Q)&&(de(Q,"captions",!0),de(Q,"endscreen"),Q.NE(),de(Q,"creatorendscreen",!0))};
SzO=function(Q){var W=Q.J.getVideoData(),x=Q.X&&!W.isInlinePlaybackNoAd;Q.J.j("html5_defer_modules_on_ads_only")&&!W.isAd()&&(x=!1);return x};
w81=function(Q){Q=Q.J.getVideoData();var W;if(W=Q.j("web_player_defer_ad")){if(g.FH(Q.KS,"ad")||KD5(Q)||Q.enableServerStitchedDai)Q=!1;else{W=Q.playerResponse;Q=Q.startSeconds;var x=W==null?void 0:W.adPlacements;if(W=x){W=Number.MAX_VALUE;x=g.V(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value.adPlacementRenderer){var K=void 0,l=(K=D.config)==null?void 0:K.adPlacementConfig;K=void 0;if(((K=l)==null?void 0:K.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var M=K=void 0;l=Number((K=l)==null?void 0:(M=
K.adTimeOffset)==null?void 0:M.offsetStartMilliseconds)||0;M=K=void 0;D=Number(((K=D.renderer)==null?void 0:(M=K.adBreakServiceRenderer)==null?void 0:M.prefetchMilliseconds)||0);D=l-D;D<W&&(W=D)}}W=W-5E3<=Q*1E3}Q=W?!1:!0}W=Q}return W};
DKF=function(Q){var W=Q.J.getVideoData();return!!W.kX||!!W.captionTracks.length||g.mvF(W,Q.J)};
g.xK5=function(Q){var W=Q.J.C();if(W.D||xS(W)||W.X||!W.gE&&!W.jE)return!1;var x=Q.J.getPresentingPlayerType();if(x===2)return!1;if(x===3)return W.j("desktop_enable_autoplay");Q=Q.J.getVideoData();if(!Q)return!1;x=!Q.isLiveDefaultBroadcast||W.j("allow_poltergust_autoplay");x=Q.isLivePlayback&&(!W.j("allow_live_autoplay")||!x);W=Q.isLivePlayback&&W.j("allow_live_autoplay_on_mweb");return!x||W};
g.Hd=function(Q){return Q.CZ.get("webgl")};
KMl=function(Q){var W=Q.J.getVideoData();Q=Q.J.C();var x=g.H84(),D=Q.j("enable_spherical_kabuki"),K=g.WW(Q);if(g.HX(W))return x||D||K;if(g.iG(W))return K||x||D;if(g.Af(W))return K||x||!1;if(g.uG(W))return K||!1;x=W.U&&W.U.video&&W.U.video.isHdr();return K&&!g.V9(W)&&!x&&Q.j("enable_webgl_noop")};
QiQ=function(Q){if(Q.J.C().D)return!1;Q=Q.J.getVideoData(1);var W=Q.getPlayerResponse();if(W){var x=W.adPlacements;if(x)for(var D=0;D<x.length;D++)if(x[D].adPlacementRenderer)return!0;if(W.adSlots)return!0}return g.TQ(Q)?!0:!1};
WM5=function(Q){if(Q.J.isEmbedsShortsMode())return!1;Q=Q.J;var W=Q.C();if(W.D)return!1;var x;if(((x=W.getWebPlayerContextConfig())==null?0:x.embedsEnableEmc3ds)||W.controlsType==="3")return!1;if(W.playerStyle==="creator-endscreen-editor")return!0;x=Q.getVideoData();return!!x&&(!!g.ko4(x)||!!g.XeF(x))};
jin=function(Q,W,x,D,K){try{if(x){var l=YI.get(W);if(l)return new l(Q.J);Mva(Q,W,D,K)}else Q.J.BI(W)}catch(M){Q.J.BI(W),g.ql(M)}return null};
iX=function(Q,W,x){if(Q.J.C().j("html5_dispose_modules_in_order"))for(var D=g.V(si4),K=D.next();!K.done;K=D.next()){K=K.value;var l=Q.CZ.get(K);l&&(x||l.AX(W))&&(g.w1(l),Q.CZ.delete(K))}else for(D=g.V(Q.CZ),K=D.next();!K.done;K=D.next())l=g.V(K.value),K=l.next().value,(l=l.next().value)&&(x||l.AX(W))&&(g.w1(l),Q.CZ.delete(K))};
AJ=function(Q){return Q.CZ.get("ad")};
zSQ=function(Q){if(yv(Q.J.C()))return Q.CZ.get("kids")};
dZ=function(Q){if(Q.J.C().oH)return Q.CZ.get("remote")};
g.HH=function(Q){if(g.$h(Q.J.C()))return Q.CZ.get("unplugged")};
cz2=function(Q){if(Q.J.C().SZ)return Q.CZ.get("ux")};
kwl=function(Q){if(Q.J.C().showMiniplayerUiWhenMinimized)return Q.CZ.get("miniplayer")};
Uo=function(Q){if(Q.J.C().KR)return Q.CZ.get("offline")};
g.qt=function(Q){return Q.CZ.get("annotations_module")};
BH=function(Q){return Q.CZ.get("creatorendscreen")};
oyD=function(Q,W){var x=Q.B.startsWith("https://")?Q.B+"lib.wasm":Q.B.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return F1l(x,function(D){var K=Q.CZ.get("asmjs");return K?Promise.resolve(K.mH(D)):X8Q(Q).then(function(l){return l.mH(D)})},W)};
X8Q=function(Q){var W,x;return g.U(function(D){if(D.B==1)return g.A(D,RS1(Q),2);x=W=D.U;return D.return(x)})};
Mva=function(Q,W,x,D){if(Q.B){var K=u$4[W];Yzz(Q,Q.B+K,function(){Q.N.add(K);x.call(Q)},D)}};
Yzz=function(Q,W,x,D){function K(){Q.d7()||D.call(Q)}
function l(){Q.d7()||x.call(Q)}
for(var M=g.yp("SCRIPT"),w=!1,S,b=0;b<M.length;b++){var z=M[b];if(z.src===W||z.getAttribute("data-original-src")===W)S=z}S||(S=g.Qz("SCRIPT"),S.setAttribute("data-original-src",W),w=!0);var k=S.onload;S.onload=function(v){Kr(l);k&&k.apply(window,[v])};
var X=S.onerror;S.onerror=function(v){if(Math.random()<.01){var J=new g.Lw("Unable to load player module",W,document.location&&document.location.origin);g.ql(J)}Kr(K);X&&X(v)};
var u=S,Y=u.onreadystatechange;u.onreadystatechange=function(v){switch(u.readyState){case "loaded":case "complete":Kr(l)}Y&&Y(v)};
w&&((M=Q.J.C().cspNonce)&&S.setAttribute("nonce",M),g.ex(S,g.pv(W)),M=g.yp("HEAD")[0]||document.body,M.insertBefore(S,M.firstChild),Q.addOnDisposeCallback(function(){S.parentNode&&S.parentNode.removeChild(S)}))};
nyl=function(Q,W,x,D,K){g.Rd.call(this);var l=this;this.target=Q;this.pO=W;this.U=0;this.X=!1;this.N=new g.k6(NaN,NaN);this.B=new g.I0(this);this.F3=this.D=this.G=null;g.y(this,this.B);W=D||K?4E3:3E3;this.T=new g.O3(function(){$I(l,1,!1)},W,this);
g.y(this,this.T);this.uj=new g.O3(function(){$I(l,2,!1)},W,this);
g.y(this,this.uj);this.pS=new g.O3(function(){$I(l,512,!1)},W,this);
g.y(this,this.pS);this.KS=3E3;D||(this.D=this.B.W(Q,"mouseover",this.dh),this.B.W(Q,"mousemove",this.qZ),this.B.W(Q,"mouseleave",this.Mk9));bq?this.B.W(Q,"keypress",this.nfj):this.B.W(Q,"focusin",this.Uj);this.L=this.B.W(Q,"mousedown",this.BJ);this.S=this.B.W(Q,"touchstart",this.UD,void 0,!0);$I(this,640,!0)};
Vvs=function(Q){$I(Q,4,!1);Q.G&&(Q.B.mJ(Q.G),Q.G=null,Q.D=Q.B.W(Q.target,"mouseover",Q.dh));Q.D&&(Q.B.mJ(Q.D),Q.D=Q.B.W(Q.target,"mouseover",Q.dh))};
$I=function(Q,W,x){Q.d7();var D=!Q.U;x?(Q.U|=W,W&1&&Q.T.start(),W&2&&Q.uj.start()):(Q.U&=~W,W&1&&Q.T.stop(),W&2&&Q.uj.stop(),W&512&&Q.pS.stop());Q.U&512&&!(Q.U&128)&&g.E3(Q.pS,Q.KS);W=!Q.U;D!==W&&Q.publish("autohideupdate",W)};
g.mc=function(Q){g.L.call(this,{K:"button",lj:["ytp-large-play-button","ytp-button"],Z:{"aria-label":"Play",title:"Play"},V:["{{largePlayButtonChildren}}"]});this.api=Q;this.W(Q,"videodatachange",this.Yf);this.W(Q,"basechromeinitialized",this.aB3);Q=this.api.C();Q.S&&Ig&&(this.listen("click",this.ptf,this),this.listen("touchstart",this.SQ9,this));g.BL(Q)&&g.j$(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Yf()};
g.Nt=function(Q){var W=Q.C(),x=["ytp-cued-thumbnail-overlay"];W.X&&x.push("ytp-exp-contain-thumbnail");W.j("web_player_show_frame_zero_when_cued")&&x.push("ytp-exp-frame0");g.L.call(this,{K:"div",lj:x,V:[{K:"div",Y:"ytp-cued-thumbnail-overlay-image"}]});W=this.Nj("ytp-cued-thumbnail-overlay");x=new g.mc(Q);g.y(this,x);x.Qj(W);this.N=new g.I0(this);g.y(this,this.N);this.api=Q;this.X=this.Nj("ytp-cued-thumbnail-overlay-image");this.D=x;this.U=new g.Wi(this,250);g.y(this,this.U);this.B=new g.O3(this.Yf,
0,this);g.y(this,this.B);this.Yf();this.W(Q,"appresize",this.OV);this.W(Q,"presentingplayerstatechange",this.onStateChange);this.W(Q,"ypcStateChanged",this.vXj);AC(Q.C())&&this.W(Q,"videoplayerreset",this.onReset)};
Pk1=function(Q){if(!Q.api.j("web_player_show_frame_zero_when_cued"))return!1;var W=Q.api.getCurrentTime();Q=Q.api.getPlayerStateObject();Q=g.r(Q,64)&&g.r(Q,1);return W===0&&Q};
g.cH=function(Q){g.L.call(this,{K:"div",lj:["ytp-error"],Z:{role:"alert"},V:[{K:"div",Y:"ytp-error-content",V:[{K:"div",Y:"ytp-error-icon-container",V:[{K:"svg",Z:{fill:"#fff",viewBox:"0 0 48 48"},V:[{K:"path",Z:{d:"M0 0h48v48H0V0z",fill:"none"}},{K:"path",Z:{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"}}]}]},{K:"div",Y:"ytp-error-content-wrap",
V:[{K:"div",Y:"ytp-error-content-wrap-reason",m3:"{{content}}"},{K:"div",Y:"ytp-error-content-wrap-subreason",m3:"{{subreason}}"}]}]}]});this.api=Q;this.keys=[];this.D=!1;Q.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.md)};
g.ge=function(Q){Q=Q.split(vyO);for(var W=[],x=0;x<Q.length;x+=3){var D=Q[x++].split("\n");W.push(D[0]);for(var K=1;K<D.length;K++)W.push({K:"br"}),W.push(D[K]);x<Q.length&&W.push({K:"a",Z:{href:Q[x],target:Q[x+1]},m3:Q[x+2]})}return{K:"span",V:W}};
e7=function(Q,W,x,D,K,l,M){D=D===void 0?!1:D;K=K===void 0?!1:K;M=M===void 0?!0:M;K||(K=Q.api.C().N);var w=Q.api.getVideoData();W=g.nD(g.y1[W]||"",D?{CPN:w.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);D=[];l&&D.push({K:"h2",m3:l});D.push(W[0]);M&&D.push({K:"br"});D.push({K:"a",Z:{href:x,target:K?"_blank":null},Y:"ytp-error-link",m3:W[2]});Q.D=!0;D.push(W[4]);return{K:"span",V:D}};
Ck2=function(Q,W){for(var x=Q.element.getElementsByTagName("a"),D=0;D<x.length;D++){var K=Q.W(x[D],"click",W);Q.keys.push(K)}};
JT2=function(Q){for(var W=0;W<Q.keys.length;W++)Q.mJ(Q.keys[W]);Q.keys=[]};
p8l=function(Q){g.L.call(this,{K:"div",Y:"ytp-paid-content-overlay",Z:{"aria-live":"assertive","aria-atomic":"true"}});this.J=Q;this.videoId=null;this.D=!1;this.innertubeCommand=this.WV=this.B=null;var W=Q.C();Q.j("enable_new_paid_product_placement")&&!g.tC(W)?(this.U=new g.L({K:"a",Y:"ytp-paid-content-overlay-link",Z:{href:"{{href}}",target:"_blank"},V:[{K:"div",Y:"ytp-paid-content-overlay-icon",m3:"{{icon}}"},{K:"div",Y:"ytp-paid-content-overlay-text",m3:"{{text}}"},{K:"div",Y:"ytp-paid-content-overlay-chevron",
m3:"{{chevron}}"}]}),this.W(this.U.element,"click",this.onClick)):this.U=new g.L({K:"div",lj:["ytp-button","ytp-paid-content-overlay-text"],m3:"{{text}}"});this.N=new g.Wi(this.U,250,!1,100);g.y(this,this.U);this.U.Qj(this.element);g.y(this,this.N);this.J.createServerVe(this.element,this);this.W(Q,"videodatachange",this.onVideoDataChange);this.W(Q,"presentingplayerstatechange",this.Bu)};
aY2=function(Q,W){var x=WD1(W),D=xSn(W);if(!W.eK||!Q.J.vM())if(Q.B||Q.J.j("enable_paid_content_overlay_bugfix")){if(W.videoId&&W.videoId!==Q.videoId){var K;(K=Q.B)==null||g.t2(K);!Q.J.j("enable_paid_content_overlay_bugfix")||x&&D?(Q.videoId=W.videoId,Q.D=!!D,Q.D&&x&&hS5(Q,D,x,W)):Q.D=!1}}else x&&D&&!Q.J.j("enable_paid_content_overlay_bugfix")&&hS5(Q,D,x,W)};
hS5=function(Q,W,x,D){Q.B&&Q.B.dispose();Q.B=new g.O3(Q.X0,W,Q);g.y(Q,Q.B);D=PX(D);W=D==null?void 0:D.navigationEndpoint;var K;D=D==null?void 0:(K=D.icon)==null?void 0:K.iconType;var l;K=(l=g.e(W,g.$_))==null?void 0:l.url;Q.J.setTrackingParams(Q.element,(W==null?void 0:W.clickTrackingParams)||null);W&&!K?(Q.innertubeCommand=W,K="#!"):Q.innertubeCommand=null;var M;Q.U.update({href:(M=K)!=null?M:"#",text:x,icon:D==="MONEY_HAND"?{K:"svg",Z:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
V:[{K:"path",Z:{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:K||Q.innertubeCommand?g.VK():null})};
Gwn=function(Q,W){Q.B&&(g.r(W,8)&&Q.D?(Q.D=!1,Q.jt(),Q.B.start()):(g.r(W,2)||g.r(W,64))&&Q.videoId&&(Q.videoId=null))};
fM=function(Q){g.L.call(this,{K:"div",Y:"ytp-spinner",V:[wz(),{K:"div",Y:"ytp-spinner-message",m3:"If playback doesn't begin shortly, try restarting your device."}]});this.api=Q;this.message=this.Nj("ytp-spinner-message");this.B=new g.O3(this.show,500,this);g.y(this,this.B);this.W(Q,"presentingplayerstatechange",this.onStateChange);this.W(Q,"playbackstalledatstart",this.U);this.wE(Q.getPlayerStateObject())};
Zh=function(Q){var W=[{K:"div",lj:["ytp-unmute-icon"],V:[{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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"}}]}]},
{K:"div",lj:["ytp-unmute-text"],m3:"Tap to unmute"}];W.push({K:"div",lj:["ytp-unmute-box"],V:[]});g.y0.call(this,Q,{K:"button",lj:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],V:[{K:"div",Y:"ytp-unmute-inner",V:W}]},100);this.B=this.clicked=!1;this.api=Q;this.api.createClientVe(this.element,this,51663);this.W(Q,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.W(Q,"presentingplayerstatechange",this.qD);this.listen("click",this.onClick,this);Q=Q.isMutedByMutedAutoplay()&&
!g.d5(this.api.C());this.hO(Q);Q&&dKh(this);this.D=Q};
dKh=function(Q){Q.B||(Q.B=!0,Q.api.logVisibility(Q.element,!0))};
g.LM=function(Q){g.I0.call(this);var W=this;this.api=Q;this.Zr=!1;this.rV=null;this.hc=!1;this.f2=null;this.SY=this.wj=!1;this.Eh=this.vE=null;this.vQ=NaN;this.Lc=this.Hv=!1;this.sC=0;this.Tw=[];this.d9=!1;this.eC={height:0,width:0};this.YZ=480;this.fE3=["ytp-player-content","html5-endscreen","ytp-overlay"];this.du={XN:!1};var x=Q.C(),D=Q.hf();this.eC=Q.getPlayerSize();this.cG=new g.O3(this.d6,0,this);g.y(this,this.cG);x.disableOrganicUi||(this.f7=new g.Nt(Q),g.y(this,this.f7),g.qf(Q,this.f7.element,
4));if(ii2(this)){var K=new fM(Q);g.y(this,K);K=K.element;g.qf(Q,K,4)}var l=Q.getVideoData();this.s4=new nyl(D,function(w){return W.pO(w)},l,x.h4,!1);
g.y(this,this.s4);this.s4.subscribe("autohideupdate",this.Qn,this);if(!x.disablePaidContentOverlay){var M=new p8l(Q);g.y(this,M);g.qf(Q,M.element,4)}this.o8=new Zh(Q);g.y(this,this.o8);g.qf(this.api,this.o8.element,2);this.Z4=this.api.isMutedByMutedAutoplay();this.W(Q,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.Yu=new g.O3(this.Aq,200,this);g.y(this,this.Yu);this.DO=l.videoId;this.tP=new g.O3(function(){W.sC=0},350);
g.y(this,this.tP);this.gt=new g.O3(function(){W.Lc||AT5(W)},350,this);
g.y(this,this.gt);l=Q.getRootNode();l.setAttribute("aria-label","YouTube Video Player");switch(x.color){case "white":g.j$(l,"ytp-color-white")}this.W(Q,"appresize",this.OV);this.W(Q,"presentingplayerstatechange",this.qD);this.W(Q,"videodatachange",this.onVideoDataChange);this.W(Q,"videoplayerreset",this.BP3);this.W(Q,"autonavvisibility",function(){W.uT()});
this.W(Q,"sizestylechange",function(){W.uT()});
this.W(D,"click",this.eO7,this);this.W(D,"dblclick",this.sU3,this);this.W(D,"mousedown",this.MQ3,this);x.fn&&(this.W(D,"gesturechange",this.zO3,this),this.W(D,"gestureend",this.wVt,this));this.e5=[D.rf];this.f7&&this.e5.push(this.f7.element);K&&this.e5.push(K);this.api.j("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(D.element,this,247482),this.api.logVisibility(D.element,!0))};
Hil=function(Q,W){if(!W)return!1;var x=Q.api.DG();if(x.E_()&&(x=x.yh())&&g.jh(x,W))return x.controls;for(x=0;x<Q.e5.length;x++)if(g.jh(Q.e5[x],W))return!1;x=g.V(Q.fE3);for(var D=x.next();!D.done;D=x.next())if(g.lf(W,D.value))return!1;return W===Q.api.getRootNode()?!1:!0};
UK2=function(Q){var W=Q.api.getPresentingPlayerType()===2&&(Q.api.hf().ov||Q.api.C().disableOrganicUi||!1)&&Q.api.C().U&&Ig&&re>=11;Q=Q.api.C().S&&Ig;return!(!W&&!Q)};
TZ=function(Q,W){return!Q.api.isInline()&&!Hil(Q,pw(W))&&g.pb(W)};
AT5=function(Q){Q.s4.Z7();if(Q.wj&&Q.SY)Q.SY=!1;else if(!Q.api.C().X3&&!Q.rq()){var W=Q.api.getPlayerStateObject();g.r(W,2)&&g.aN(Q.api)||Q.y5(W);!Q.api.C().fn||W.isCued()||g.r(W,1024)?Q.Aq():Q.Yu.isActive()?(Q.TD(),Q.Yu.stop()):Q.Yu.start()}};
qzD=function(Q,W){var x;if((x=Q.api.getVideoData())==null?0:x.mutedAutoplay){var D,K;if((D=W.target)==null?0:(K=D.className)==null?0:K.includes("ytp-info-panel"))return!1}return g.pb(W)&&Q.api.isMutedByMutedAutoplay()?(Q.api.unMute(),Q.api.getPresentingPlayerType()===2&&Q.api.playVideo(),W=Q.api.getPlayerStateObject(),!g.r(W,4)||g.r(W,8)||g.r(W,2)||Q.Aq(),!0):!1};
Byv=function(Q,W,x){Q.api.isFullscreen()?x<1-W&&Q.api.toggleFullscreen():x>1+W&&Q.api.toggleFullscreen()};
ii2=function(Q){var W=eL()&&gm()>=67&&!Q.api.C().S;Q=Q.api.C().disableOrganicUi;return!g.yk("tizen")&&!xh&&!W&&!Q};
Oo=function(Q,W){W=W===void 0?2:W;g.Rd.call(this);this.api=Q;this.B=null;this.St=new aC(this);g.y(this,this.St);this.U=k$h;this.St.W(this.api,"presentingplayerstatechange",this.U$);this.B=this.St.W(this.api,"progresssync",this.QA);this.NW=W;this.NW===1&&this.QA()};
g.Eo=function(Q){g.L.call(this,{K:"div",V:[{K:"div",Y:"ytp-bezel-text-wrapper",V:[{K:"div",Y:"ytp-bezel-text",m3:"{{title}}"}]},{K:"div",Y:"ytp-bezel",Z:{role:"status","aria-label":"{{label}}"},V:[{K:"div",Y:"ytp-bezel-icon",m3:"{{icon}}"}]}]});this.J=Q;this.U=new g.O3(this.show,10,this);Q=this.J.j("delhi_modern_web_player")?1E3:500;this.B=new g.O3(this.hide,Q,this);g.y(this,this.U);g.y(this,this.B);this.hide()};
tJ=function(Q,W,x){if(W<=0){x=ie();W="muted";var D=0}else x=x?{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Z:{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"}}]}:{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Z:{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"}}]},D=Math.floor(W),W=D+"volume";Fo(Q,x,W,D+"%")};
$KQ=function(Q,W){W=W?{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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"}}]}:iXa();var x=Q.J.getPlaybackRate(),D=g.nD("Speed is $RATE",{RATE:String(x)});Fo(Q,W,D,x+"x")};
IYv=function(Q,W){W=W?"Subtitles/closed captions on":"Subtitles/closed captions off";Fo(Q,sm2(),W)};
Fo=function(Q,W,x,D){D=D===void 0?"":D;Q.updateValue("label",x===void 0?"":x);Q.updateValue("icon",W);g.t2(Q.B);Q.U.start();Q.updateValue("title",D);g.S$(Q.element,"ytp-bezel-text-hide",!D)};
mKO=function(Q,W){g.L.call(this,{K:"button",lj:["ytp-button","ytp-cards-button"],Z:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.d5(Q.C()))},V:[{K:"span",Y:"ytp-cards-button-icon-default",V:[{K:"div",Y:"ytp-cards-button-icon",V:[Q.C().j("player_new_info_card_format")?U55():{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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"}}]}]},
{K:"div",Y:"ytp-cards-button-title",m3:"Info"}]},{K:"span",Y:"ytp-cards-button-icon-shopping",V:[{K:"div",Y:"ytp-cards-button-icon",V:[{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Y:"ytp-svg-shadow",Z:{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"}},{K:"path",Y:"ytp-svg-fill",Z:{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"}},{K:"path",Y:"ytp-svg-shadow-fill",Z:{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"}}]}]},{K:"div",
Y:"ytp-cards-button-title",m3:"Shopping"}]}]});this.J=Q;this.D=W;this.B=null;this.U=new g.Wi(this,250,!0,100);g.y(this,this.U);g.S$(this.D,"ytp-show-cards-title",g.d5(Q.C()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.pG(!0)};
Ny5=function(Q,W){g.L.call(this,{K:"div",Y:"ytp-cards-teaser",V:[{K:"div",Y:"ytp-cards-teaser-box"},{K:"div",Y:"ytp-cards-teaser-text",V:Q.C().j("player_new_info_card_format")?[{K:"button",Y:"ytp-cards-teaser-info-icon",Z:{"aria-label":"Show cards","aria-haspopup":"true"},V:[U55()]},{K:"span",Y:"ytp-cards-teaser-label",m3:"{{text}}"},{K:"button",Y:"ytp-cards-teaser-close-button",Z:{"aria-label":"Close"},V:[g.P4()]}]:[{K:"span",Y:"ytp-cards-teaser-label",m3:"{{text}}"}]}]});var x=this;this.J=Q;this.qC=
W;this.N=new g.Wi(this,250,!1,250);this.B=null;this.S=new g.O3(this.hh1,300,this);this.G=new g.O3(this.Anj,2E3,this);this.X=[];this.U=null;this.T=new g.O3(function(){x.element.style.margin="0"},250);
this.onClickCommand=this.D=null;g.y(this,this.N);g.y(this,this.S);g.y(this,this.G);g.y(this,this.T);Q.C().j("player_new_info_card_format")?(g.j$(Q.getRootNode(),"ytp-cards-teaser-dismissible"),this.W(this.Nj("ytp-cards-teaser-close-button"),"click",this.mw),this.W(this.Nj("ytp-cards-teaser-info-icon"),"click",this.N3),this.W(this.Nj("ytp-cards-teaser-label"),"click",this.N3)):this.listen("click",this.N3);this.W(W.element,"mouseover",this.yY);this.W(W.element,"mouseout",this.mz);this.W(Q,"cardsteasershow",
this.Uxj);this.W(Q,"cardsteaserhide",this.X0);this.W(Q,"cardstatechange",this.jf);this.W(Q,"presentingplayerstatechange",this.jf);this.W(Q,"appresize",this.Ow);this.W(Q,"onShowControls",this.Ow);this.W(Q,"onHideControls",this.W1);this.listen("mouseenter",this.FC)};
cTQ=function(Q){g.L.call(this,{K:"button",lj:[QL.BUTTON,QL.TITLE_NOTIFICATIONS],Z:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{K:"div",Y:QL.TITLE_NOTIFICATIONS_ON,Z:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},V:[g.J_()]},{K:"div",Y:QL.TITLE_NOTIFICATIONS_OFF,Z:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},V:[{K:"svg",Z:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{K:"path",Z:{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=Q;this.B=!1;Q.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
gy5=function(Q,W){Q.B=W;Q.element.classList.toggle(QL.NOTIFICATIONS_ENABLED,Q.B);var x=Q.api.getVideoData();x?(W=W?x.tJ:x.Py)?(Q=Q.api.XZ())?rK(Q,W):g.ql(Error("No innertube service available when updating notification preferences.")):g.ql(Error("No update preferences command available.")):g.ql(Error("No video data when updating notification preferences."))};
eSF=function(Q,W,x){var D=D===void 0?800:D;var K=K===void 0?600:K;var l=document.location.protocol;Q=pZl(l+"//"+Q+"/signin?context=popup","feature",W,"next",l+"//"+location.hostname+"/post_login");yTQ(Q,x,D,K)};
yTQ=function(Q,W,x,D){x=x===void 0?800:x;D=D===void 0?600:D;if(Q=g.mO(window,Q,"loginPopup","width="+x+",height="+D+",resizable=yes,scrollbars=yes"))ilv(function(){W()}),Q.moveTo((screen.width-x)/2,(screen.height-D)/2)};
g.WN=function(Q,W,x,D,K,l,M,w,S,b,z,k){Q=Q.charAt(0)+Q.substring(1).toLowerCase();x=x.charAt(0)+x.substring(1).toLowerCase();if(W==="0"||W==="-1")W=null;if(D==="0"||D==="-1")D=null;var X=z.C(),u=X.userDisplayName&&g.BL(X);g.L.call(this,{K:"div",lj:["ytp-button","ytp-sb"],V:[{K:"div",Y:"ytp-sb-subscribe",Z:u?{title:g.nD("Subscribe as $USER_NAME",{USER_NAME:X.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":Dd(X),"data-tooltip-opaque":String(g.d5(X)),tabindex:"0",role:"button"}:
{"aria-label":"Subscribe to channel"},V:[{K:"div",Y:"ytp-sb-text",V:[{K:"div",Y:"ytp-sb-icon"},Q]},W?{K:"div",Y:"ytp-sb-count",m3:W}:""]},{K:"div",Y:"ytp-sb-unsubscribe",Z:u?{title:g.nD("Subscribed as $USER_NAME",{USER_NAME:X.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":Dd(X),"data-tooltip-opaque":String(g.d5(X)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},V:[{K:"div",Y:"ytp-sb-text",V:[{K:"div",Y:"ytp-sb-icon"},x]},D?{K:"div",Y:"ytp-sb-count",
m3:D}:""]}],Z:{"aria-live":"polite"}});var Y=this;this.channelId=M;this.J=z;this.D=k;var v=this.Nj("ytp-sb-subscribe"),J=this.Nj("ytp-sb-unsubscribe");l&&g.j$(this.element,"ytp-sb-classic");if(K){w?this.B():this.U();var h=function(){if(X.F3){var H=Y.channelId;if(S||b){var I={c:H};var c;g.Bc.isInitialized()&&(c=Asn(I));I=c||"";if(c=z.getVideoData())if(c=c.subscribeCommand){var O=z.XZ();O?(rK(O,c,{botguardResponse:I,feature:S}),z.Wt("SUBSCRIBE",H)):g.ql(Error("No innertube service available when updating subscriptions."))}else g.ql(Error("No subscribe command in videoData."));
else g.ql(Error("No video data available when updating subscription."))}J.focus();J.removeAttribute("aria-hidden");v.setAttribute("aria-hidden","true")}else eSF(g.Zj(Y.J.C()),"sb_button",Y.N)},G=function(){var H=Y.channelId;
if(S||b){var I=z.getVideoData();rK(z.XZ(),I.unsubscribeCommand,{feature:S});z.Wt("UNSUBSCRIBE",H)}v.focus();v.removeAttribute("aria-hidden");J.setAttribute("aria-hidden","true")};
this.W(v,"click",h);this.W(J,"click",G);this.W(v,"keypress",function(H){H.keyCode===13&&h(H)});
this.W(J,"keypress",function(H){H.keyCode===13&&G(H)});
this.W(z,"SUBSCRIBE",this.B);this.W(z,"UNSUBSCRIBE",this.U);this.D&&u&&(T7h(z),Jo(z,v,this),Jo(z,J,this))}else g.j$(v,"ytp-sb-disabled"),g.j$(J,"ytp-sb-disabled")};
LMl=function(Q){g.L.call(this,{K:"div",Y:"ytp-title-channel",V:[{K:"div",Y:"ytp-title-beacon"},{K:"a",Y:"ytp-title-channel-logo",Z:{href:"{{channelLink}}",target:Q.C().T,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{K:"div",Y:"ytp-title-expanded-overlay",Z:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{K:"div",Y:"ytp-title-expanded-heading",V:[{K:"div",Y:"ytp-title-expanded-title",V:[{K:"a",m3:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:Q.C().T,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{K:"div",Y:"ytp-title-expanded-subtitle",m3:"{{expandedSubtitle}}",Z:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var W=this;this.api=Q;this.channel=this.Nj("ytp-title-channel");this.U=this.Nj("ytp-title-channel-logo");this.channelName=this.Nj("ytp-title-expanded-title");this.X=this.Nj("ytp-title-expanded-overlay");this.D=this.B=this.subscribeButton=null;this.N=!1;Q.createClientVe(this.U,this,36925);Q.createClientVe(this.channelName,this,
37220);g.d5(this.api.C())&&fYD(this);this.W(Q,"videodatachange",this.Yf);this.W(Q,"videoplayerreset",this.Yf);this.W(this.channelName,"click",function(x){W.api.logClick(W.channelName);g.mO(window,Zi2(W));x.preventDefault()});
this.W(this.U,"click",this.yn7);this.Yf()};
rTF=function(Q){if(!Q.api.C().Cn){var W=Q.api.getVideoData(),x=new g.WN("Subscribe",null,"Subscribed",null,!0,!1,W.ZS,W.subscribed,"channel_avatar",null,Q.api,!0);Q.api.createServerVe(x.element,Q);var D;Q.api.setTrackingParams(x.element,((D=W.subscribeButtonRenderer)==null?void 0:D.trackingParams)||null);Q.W(x.element,"click",function(){Q.api.logClick(x.element)});
Q.subscribeButton=x;g.y(Q,Q.subscribeButton);Q.subscribeButton.Qj(Q.X);Q.subscribeButton.hide();var K=new cTQ(Q.api);Q.B=K;g.y(Q,K);K.Qj(Q.X);K.hide();Q.W(Q.api,"SUBSCRIBE",function(){W.bk&&(K.show(),Q.api.logVisibility(K.element,!0))});
Q.W(Q.api,"UNSUBSCRIBE",function(){W.bk&&(K.hide(),Q.api.logVisibility(K.element,!1),gy5(K,!1))})}};
fYD=function(Q){var W=Q.api.C();rTF(Q);Q.updateValue("flyoutUnfocusable","true");Q.updateValue("channelTitleFocusable","-1");Q.updateValue("shouldHideExpandedTitleForA11y","true");Q.updateValue("shouldHideExpandedSubtitleForA11y","true");W.U||W.eZ||(Q.W(Q.channel,"mouseenter",Q.oD),Q.W(Q.channel,"mouseleave",Q.HX),Q.W(Q.channel,"focusin",Q.oD),Q.W(Q.channel,"focusout",function(x){Q.channel.contains(x.relatedTarget)||Q.HX()}));
Q.D=new g.O3(function(){Q.isExpanded()&&(Q.api.logVisibility(Q.channelName,!1),Q.subscribeButton&&(Q.subscribeButton.hide(),Q.api.logVisibility(Q.subscribeButton.element,!1)),Q.B&&(Q.B.hide(),Q.api.logVisibility(Q.B.element,!1)),Q.channel.classList.remove("ytp-title-expanded"),Q.channel.classList.add("ytp-title-show-collapsed"))},500);
g.y(Q,Q.D);Q.W(Q.channel,Tyl,function(){Oi2(Q)});
Q.W(Q.api,"onHideControls",Q.x4);Q.W(Q.api,"appresize",Q.x4);Q.W(Q.api,"fullscreentoggled",Q.x4)};
Oi2=function(Q){Q.channel.classList.remove("ytp-title-show-collapsed");Q.channel.classList.remove("ytp-title-show-expanded")};
EyQ=function(Q){var W=Q.api.getPlayerSize();return g.d5(Q.api.C())&&W.width>=524};
Zi2=function(Q){var W=Q.api.C(),x=Q.api.getVideoData(),D=g.K1(W)+x.fn;g.Kq(x)&&(D="https://music.youtube.com"+x.fn);if(!g.d5(W))return D;W={};g.bL(Q.api,"addEmbedsConversionTrackingParams",[W]);return g.ya(D,W)};
xu=function(Q){var W=g.T4({"aria-haspopup":"true"});g.rZ.call(this,W,Q);this.listen("keydown",this.B)};
Do=function(Q,W){Q.element.setAttribute("aria-haspopup",String(W))};
FMl=function(Q,W){g.L.call(this,{K:"div",Y:"ytp-user-info-panel",Z:{"aria-label":"User info"},V:Q.C().F3&&!Q.j("embeds_web_always_enable_signed_out_state")?[{K:"div",Y:"ytp-user-info-panel-icon",m3:"{{icon}}"},{K:"div",Y:"ytp-user-info-panel-content",V:[{K:"div",Y:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable}}",role:"text"},m3:"{{watchingAsUsername}}"},{K:"div",Y:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable2}}",role:"text"},m3:"{{watchingAsEmail}}"}]}]:[{K:"div",Y:"ytp-user-info-panel-icon",
m3:"{{icon}}"},{K:"div",Y:"ytp-user-info-panel-content",V:[{K:"div",V:[{K:"text",Z:{tabIndex:"{{userInfoFocusable}}"},m3:"Signed out"}]},{K:"div",Y:"ytp-user-info-panel-login",V:[{K:"a",Z:{tabIndex:"{{userInfoFocusable2}}",role:"button"},m3:Q.C().Cn?"":"Sign in on YouTube"}]}]}]});this.G1=Q;this.B=W;Q.C().F3||Q.C().Cn||this.W(this.Nj("ytp-user-info-panel-login"),"click",this.NZ);this.closeButton=new g.L({K:"button",lj:["ytp-collapse","ytp-button"],Z:{title:"Close"},V:[g.dn()]});this.closeButton.Qj(this.element);
g.y(this,this.closeButton);this.W(window,"blur",this.hide);this.W(document,"click",this.DN);this.Yf()};
QMn=function(Q,W,x){g.H2.call(this,Q);this.F0=W;this.XY=x;this.getVideoUrl=new xu(6);this.gV=new xu(5);this.dV=new xu(4);this.AO=new xu(3);this.zM=new g.rZ(g.T4({href:"{{href}}",target:this.J.C().T},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.rZ(g.T4(),1,"Stats for nerds");this.Yn=new g.ze({K:"div",lj:["ytp-copytext","ytp-no-contextmenu"],Z:{draggable:"false",tabindex:"1"},m3:"{{text}}"});this.VP=new AE(this.J,this.Yn);this.Oe=this.SA=null;g.d5(this.J.C())&&(this.closeButton=
new g.L({K:"button",lj:["ytp-collapse","ytp-button"],Z:{title:"Close"},V:[g.dn()]}),g.y(this,this.closeButton),this.closeButton.Qj(this.element),this.closeButton.listen("click",this.hS,this));g.d5(this.J.C())&&(this.A9=new g.rZ(g.T4(),8,"Account"),g.y(this,this.A9),this.XE(this.A9,!0),this.A9.listen("click",this.VQt,this),Q.createClientVe(this.A9.element,this.A9,137682));this.J.C().b$&&(this.YG=new ln("Loop",7),g.y(this,this.YG),this.XE(this.YG,!0),this.YG.listen("click",this.H_Z,this),Q.createClientVe(this.YG.element,
this.YG,28661));g.y(this,this.getVideoUrl);this.XE(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.ehj,this);Q.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.y(this,this.gV);this.XE(this.gV,!0);this.gV.listen("click",this.sQ9,this);Q.createClientVe(this.gV.element,this.gV,28660);g.y(this,this.dV);this.XE(this.dV,!0);this.dV.listen("click",this.Yx7,this);Q.createClientVe(this.dV.element,this.dV,28658);g.y(this,this.AO);this.XE(this.AO,!0);this.AO.listen("click",this.rn3,
this);g.y(this,this.zM);this.XE(this.zM,!0);this.zM.listen("click",this.oD1,this);g.y(this,this.showVideoInfo);this.XE(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.ZZ7,this);g.y(this,this.Yn);this.Yn.listen("click",this.ktZ,this);g.y(this,this.VP);W=document.queryCommandSupported&&document.queryCommandSupported("copy");Zs4("Chromium")>=43&&(W=!0);Zs4("Firefox")<=40&&(W=!1);W&&(this.SA=new g.L({K:"textarea",Y:"ytp-html5-clipboard",Z:{readonly:"",tabindex:"-1"}}),g.y(this,this.SA),
this.SA.Qj(this.element));var D;(D=this.A9)==null||D.setIcon(ILz());var K;(K=this.YG)==null||K.setIcon({K:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.AO.setIcon({K:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{"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.zM.setIcon(A42());this.showVideoInfo.setIcon(HXQ());this.W(Q,"onLoopChange",this.onLoopChange);this.W(Q,"videodatachange",this.onVideoDataChange);tvv(this);this.Nd(this.J.getVideoData())};
Kc=function(Q,W){var x=!1;if(Q.SA){var D=Q.SA.element;D.value=W;D.select();try{x=document.execCommand("copy")}catch(K){}}x?Q.F0.X0():(Q.Yn.iy(W,"text"),g.B2(Q.F0,Q.VP),SV(Q.Yn.element),Q.SA&&(Q.SA=null,tvv(Q)));return x};
tvv=function(Q){var W=!!Q.SA;g.Lq(Q.AO,W?"Copy debug info":"Get debug info");Do(Q.AO,!W);g.Lq(Q.dV,W?"Copy embed code":"Get embed code");Do(Q.dV,!W);g.Lq(Q.getVideoUrl,W?"Copy video URL":"Get video URL");Do(Q.getVideoUrl,!W);g.Lq(Q.gV,W?"Copy video URL at current time":"Get video URL at current time");Do(Q.gV,!W);Q.dV.setIcon(W?Gj5():null);Q.getVideoUrl.setIcon(W?v4():null);Q.gV.setIcon(W?v4():null)};
WC5=function(Q){return g.d5(Q.J.C())?Q.A9:Q.YG};
D$4=function(Q,W){g.qF.call(this,Q);this.XY=W;this.N=new g.I0(this);this.pS=new g.O3(this.KU5,1E3,this);this.F3=this.D=null;g.y(this,this.N);g.y(this,this.pS);W=this.J.C();Q.createClientVe(this.element,this,28656);g.j$(this.element,"ytp-contextmenu");this.J.C().experiments.ij("delhi_modern_web_player")&&g.ET(W)&&g.j$(this.element,"ytp-delhi-modern-contextmenu");x$5(this);this.hide()};
x$5=function(Q){g.d3(Q.N);var W=Q.J.C();W.playerStyle==="gvn"||W.U||W.eZ||(W=Q.J.hf(),Q.N.W(W,"contextmenu",Q.NE7),Q.N.W(W,"touchstart",Q.onTouchStart,null,!0),Q.N.W(W,"touchmove",Q.qw,null,!0),Q.N.W(W,"touchend",Q.qw,null,!0))};
KC5=function(Q){Q.J.isFullscreen()?g.qf(Q.J,Q.element,10):Q.Qj(e9(Q).body)};
lv=function(Q,W,x){x=x===void 0?240:x;g.L.call(this,{K:"button",lj:["ytp-button","ytp-copylink-button"],Z:{title:"{{title-attr}}","data-tooltip-opaque":String(g.d5(Q.C()))},V:[{K:"div",Y:"ytp-copylink-icon",m3:"{{icon}}"},{K:"div",Y:"ytp-copylink-title",m3:"Copy link",Z:{"aria-hidden":"true"}}]});this.api=Q;this.B=W;this.U=x;this.visible=!1;this.tooltip=this.B.Vp();W=Q.C();this.tooltip.element.setAttribute("aria-live","polite");g.S$(this.element,"ytp-show-copylink-title",g.d5(W));Q.createClientVe(this.element,
this,86570);this.listen("click",this.onClick);this.W(Q,"videodatachange",this.Yf);this.W(Q,"videoplayerreset",this.Yf);this.W(Q,"appresize",this.Yf);this.Yf();this.addOnDisposeCallback(g.Cq(this.tooltip,this.element))};
lB4=function(Q){var W=Q.api.C(),x=Q.api.getVideoData(),D=Q.api.hf().getPlayerSize().width;W=W.D;return!!x.videoId&&D>=Q.U&&x.FV&&!g.xW(x)&&!Q.api.isEmbedsShortsMode()&&!W};
jMD=function(Q){Q.updateValue("icon",Y_());if(Q.api.C().U)Q.tooltip.FL(Q.element,"Link copied to clipboard");else{Q.updateValue("title-attr","Link copied to clipboard");Q.tooltip.hA();Q.tooltip.FL(Q.element);var W=Q.listen("mouseleave",function(){Q.mJ(W);Q.Yf();Q.tooltip.mC()})}};
MUz=function(Q,W){return g.U(function(x){if(x.B==1)return g.P5(x,2),g.A(x,navigator.clipboard.writeText(W),4);if(x.B!=2)return x.return(!0);g.Jv(x);var D=x.return,K=!1,l=g.Qz("TEXTAREA");l.value=W;l.setAttribute("readonly","");var M=Q.api.getRootNode();M.appendChild(l);if(LX){var w=window.getSelection();w.removeAllRanges();var S=document.createRange();S.selectNodeContents(l);w.addRange(S);l.setSelectionRange(0,W.length)}else l.select();try{K=document.execCommand("copy")}catch(b){}M.removeChild(l);
return D.call(x,K)})};
j3=function(Q){g.L.call(this,{K:"div",Y:"ytp-doubletap-ui-legacy",V:[{K:"div",Y:"ytp-doubletap-fast-forward-ve"},{K:"div",Y:"ytp-doubletap-rewind-ve"},{K:"div",Y:"ytp-doubletap-static-circle",V:[{K:"div",Y:"ytp-doubletap-ripple"}]},{K:"div",Y:"ytp-doubletap-overlay-a11y"},{K:"div",Y:"ytp-doubletap-seek-info-container",V:[{K:"div",Y:"ytp-doubletap-arrows-container",V:[{K:"span",Y:"ytp-doubletap-base-arrow"},{K:"span",Y:"ytp-doubletap-base-arrow"},{K:"span",Y:"ytp-doubletap-base-arrow"}]},{K:"div",
Y:"ytp-doubletap-tooltip",V:[{K:"div",Y:"ytp-seek-icon-text-container",V:[{K:"div",Y:"ytp-seek-icon",m3:"{{seekIcon}}"},{K:"div",Y:"ytp-chapter-seek-text-legacy",m3:"{{seekText}}"}]},{K:"div",Y:"ytp-doubletap-tooltip-label",m3:"{{seekTime}}"}]}]}]});this.J=Q;this.N=new g.O3(this.show,10,this);this.U=new g.O3(this.hide,700,this);this.G=this.D=0;this.uj=this.X=!1;this.B=this.Nj("ytp-doubletap-static-circle");g.y(this,this.N);g.y(this,this.U);this.hide();this.S=this.Nj("ytp-doubletap-fast-forward-ve");
this.T=this.Nj("ytp-doubletap-rewind-ve");this.J.createClientVe(this.S,this,28240);this.J.createClientVe(this.T,this,28239);this.J.logVisibility(this.S,!0);this.J.logVisibility(this.T,!0);this.X=Q.j("web_show_cumulative_seek_time");this.uj=Q.j("web_center_static_circles")};
MR=function(Q,W,x,D){if(D=D===void 0?null:D){var K=W===-1?Q.T.visualElement:Q.S.visualElement;D={seekData:D};var l=g.ph();l&&g.tx(tb)(void 0,l,K,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",D,void 0)}Q.D=W===Q.G?Q.D+x:x;Q.G=W;K=Q.J.hf().getPlayerSize();Q.X?Q.U.stop():g.t2(Q.U);Q.N.start();Q.element.setAttribute("data-side",W===-1?"back":"forward");g.j$(Q.element,"ytp-time-seeking");Q.B.style.width="110px";Q.B.style.height="110px";D=K.width*.1-15;W===1?Q.uj?(Q.B.style.right=D+"px",Q.B.style.left=""):
(Q.B.style.right="",Q.B.style.left=K.width*.8-30+"px"):W===-1&&(Q.uj?(Q.B.style.right="",Q.B.style.left=D+"px"):(Q.B.style.right="",Q.B.style.left=K.width*.1-15+"px"));Q.B.style.top=K.height*.5+15+"px";ReD(Q,Q.X?Q.D:x)};
RW=function(Q,W,x,D){D=D===void 0?null:D;g.t2(Q.U);Q.N.start();switch(W){case -1:W="back";break;case 1:W="forward";break;default:W=""}Q.element.setAttribute("data-side",W);Q.B.style.width="0";Q.B.style.height="0";g.j$(Q.element,"ytp-chapter-seek");Q.updateValue("seekText",x);Q.updateValue("seekTime","");x=Q.Nj("ytp-seek-icon");if(D){a:if(D){switch(D){case "PREMIUM_STANDALONE":D={K:"svg",Z:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},V:[{K:"path",Z:{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"}},{K:"path",Z:{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":D={K:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"rect",Z:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{K:"rect",Z:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{K:"path",Z:{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"}},{K:"defs",V:[{K:"linearGradient",Z:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},V:[{K:"stop",Z:{offset:"0.3","stop-color":"#E1002D"}},{K:"stop",Z:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}D=void 0}else D=null;Q.updateValue("seekIcon",D);x.style.display="inline-block"}else x.style.display="none"};
ReD=function(Q,W){W=g.nD("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:W.toString()});Q.updateValue("seekTime",W)};
wSn=function(Q){ir.call(this,Q,!1,!0);this.KS=[];this.Gn=[];this.S=!0;this.badge.element.classList.add("ytp-featured-product");this.fS=new g.L({K:"div",Y:"ytp-featured-product-open-in-new"});g.y(this,this.fS);this.countdownTimer=new g.L({K:"text",Y:"ytp-featured-product-countdown",m3:"{{content}}"});this.countdownTimer.hide();g.y(this,this.countdownTimer);this.U=new g.L({K:"div",Y:"ytp-featured-product-trending",V:[{K:"div",Y:"ytp-featured-product-trending-icon"},{K:"text",Y:"ytp-featured-product-trending-text",
m3:"{{trendingOffer}}"}]});this.U.hide();g.y(this,this.U);this.overflowButton=new g.L({K:"button",lj:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.y(this,this.overflowButton);this.G=new g.L({K:"text",Y:"ytp-featured-product-exclusive-countdown",m3:"{{content}}",Z:{id:"exclusiveCountdown","aria-hidden":"true"}});this.G.hide();g.y(this,this.G);this.X=new g.L({K:"div",Y:"ytp-featured-product-exclusive-container",Z:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},
V:[{K:"div",Y:"ytp-featured-product-exclusive-badge-container",V:[{K:"div",Y:"ytp-featured-product-exclusive-badge",V:[{K:"text",Y:"ytp-featured-product-exclusive-badge-text",m3:"{{exclusive}}",Z:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.X.hide();g.y(this,this.X);this.banner=new g.L({K:"a",Y:"ytp-featured-product-container",V:[{K:"div",Y:"ytp-featured-product-thumbnail",V:[{K:"img",Z:{src:"{{thumbnail}}"}},this.fS]},{K:"div",Y:"ytp-featured-product-details",V:[{K:"text",Y:"ytp-featured-product-title",
m3:"{{title}}"},this.J.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",Y:"ytp-featured-product-price-container",Z:{"aria-label":"{{priceA11yText}}"},V:[{K:"text",Y:"ytp-featured-product-price-when-promotion-text-enabled",m3:"{{price}}",Z:{"aria-hidden":"true"}},{K:"text",Y:"ytp-featured-product-promotion-text",m3:"{{promotionText}}",Z:{"aria-hidden":"true"}}]}:{K:"div",Z:{"aria-label":"{{priceA11yText}}"},V:[{K:"text",Y:"ytp-featured-product-price",m3:"{{price}}",
Z:{"aria-hidden":"true"}},{K:"text",Y:"ytp-featured-product-sales-original-price",m3:"{{salesOriginalPrice}}",Z:{"aria-hidden":"true"}},{K:"text",Y:"ytp-featured-product-price-drop-reference-price",m3:"{{priceDropReferencePrice}}",Z:{"aria-hidden":"true"}}]},this.J.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",Y:"ytp-featured-product-when-promotion-text-enabled",V:[{K:"text",Y:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",m3:"{{affiliateDisclaimer}}"},
this.U,{K:"text",Y:"ytp-featured-product-vendor-when-promotion-text-enabled",m3:"{{vendor}}"}]}:{K:"div",V:[{K:"text",Y:"ytp-featured-product-affiliate-disclaimer",m3:"{{affiliateDisclaimer}}"},this.J.j("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.X:null,this.U,{K:"text",Y:"ytp-featured-product-vendor",m3:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.y(this,this.banner);this.banner.Qj(this.D.element);this.W(this.J,g.Ru("featured_product"),this.PSf);this.W(this.J,
g.wt("featured_product"),this.rQ);this.W(this.J,"videodatachange",this.onVideoDataChange);this.W(this.overflowButton.element,"click",this.k8);this.W(Q,"featuredproductdismissed",this.dJ)};
SnF=function(Q){var W,x;Q=(W=Q.B)==null?void 0:(x=W.bannerData)==null?void 0:x.itemData;var D,K,l;return(Q==null||!Q.affiliateDisclaimer)&&(Q==null?0:(D=Q.exclusivesData)==null?0:D.exclusiveOfferLabelText)&&(Q==null?0:(K=Q.exclusivesData)==null?0:K.expirationTimestampMs)&&(Q==null?0:(l=Q.exclusivesData)==null?0:l.exclusiveOfferCountdownText)?!0:!1};
sMQ=function(Q){var W,x,D,K,l=(W=Q.B)==null?void 0:(x=W.bannerData)==null?void 0:(D=x.itemData)==null?void 0:(K=D.exclusivesData)==null?void 0:K.expirationTimestampMs;W=(Number(l)-Date.now())/1E3;if(W>0){if(W<604800){var M,w,S,b;x=(M=Q.B)==null?void 0:(w=M.bannerData)==null?void 0:(S=w.itemData)==null?void 0:(b=S.exclusivesData)==null?void 0:b.exclusiveOfferCountdownText;if(x!==void 0)for(M=Date.now(),w=g.V(x),S=w.next();!S.done;S=w.next())if(S=S.value,S!==void 0&&S.text!==void 0&&(b=Number(S.textDisplayStartTimestampMs),
!isNaN(b)&&M>=b)){S.insertCountdown?(W=S.text.replace(/\$0/,String(Pc({seconds:W}))),Q.G.iy(W)):Q.G.iy(S.text);Q.G.show();break}}var z,k,X,u;Q.X.update({exclusive:(z=Q.B)==null?void 0:(k=z.bannerData)==null?void 0:(X=k.itemData)==null?void 0:(u=X.exclusivesData)==null?void 0:u.exclusiveOfferLabelText});Q.X.show();w_(Q);var Y;(Y=Q.WN)==null||Y.start()}else bxa(Q)};
bxa=function(Q){var W;(W=Q.WN)==null||W.stop();Q.G.hide();Q.X.hide();S3(Q)};
ze2=function(Q){var W,x,D=(W=Q.B)==null?void 0:(x=W.bannerData)==null?void 0:x.itemData;return Q.J.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(D==null||!D.priceReplacementText)&&(D==null?0:D.promotionText)?D==null?void 0:D.promotionText.content:null};
k74=function(Q){var W,x,D=(W=Q.B)==null?void 0:(x=W.bannerData)==null?void 0:x.itemData,K,l;if(!(D!=null&&D.priceReplacementText||Q.J.j("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(D==null?0:(K=D.dealsData)==null?0:(l=K.sales)==null?0:l.originalPrice)){var M,w;return D==null?void 0:(M=D.dealsData)==null?void 0:(w=M.sales)==null?void 0:w.originalPrice}return null};
XSD=function(Q){var W,x,D=(W=Q.B)==null?void 0:(x=W.bannerData)==null?void 0:x.itemData,K,l,M,w;if(!((D==null?0:D.priceReplacementText)||Q.J.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(D==null?0:(K=D.dealsData)==null?0:(l=K.sales)==null?0:l.originalPrice))&&(D==null?0:(M=D.dealsData)==null?0:(w=M.priceDrop)==null?0:w.referencePrice)){var S,b;return D==null?void 0:(S=D.dealsData)==null?void 0:(b=S.priceDrop)==null?void 0:b.referencePrice}return null};
o5l=function(Q){var W,x,D=(W=Q.B)==null?void 0:(x=W.bannerData)==null?void 0:x.itemData;if(D==null?0:D.priceReplacementText)return D==null?void 0:D.priceReplacementText;if((D==null?0:D.promotionText)&&Q.J.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var K;return(D==null?void 0:D.price)+" "+(D==null?void 0:(K=D.promotionText)==null?void 0:K.content)}var l,M;if(D==null?0:(l=D.dealsData)==null?0:(M=l.sales)==null?0:M.originalPrice){var w,S;return D==null?void 0:(w=D.dealsData)==
null?void 0:(S=w.sales)==null?void 0:S.salesPriceAccessibilityLabel}var b,z;if(D==null?0:(b=D.dealsData)==null?0:(z=b.priceDrop)==null?0:z.referencePrice){var k,X;return(D==null?void 0:D.price)+" "+(D==null?void 0:(k=D.dealsData)==null?void 0:(X=k.priceDrop)==null?void 0:X.referencePrice)}return D==null?void 0:D.price};
uQD=function(Q){if(Q.J.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var W,x,D;return Q.U.md?null:(W=Q.B)==null?void 0:(x=W.bannerData)==null?void 0:(D=x.itemData)==null?void 0:D.vendorName}var K,l,M,w,S,b;return Q.U.md||Q.X.md||((K=Q.B)==null?0:(l=K.bannerData)==null?0:(M=l.itemData)==null?0:M.affiliateDisclaimer)?null:(w=Q.B)==null?void 0:(S=w.bannerData)==null?void 0:(b=S.itemData)==null?void 0:b.vendorName};
n5F=function(Q,W){bv(Q);if(W){var x=g.xN.getState().entities;x=wW(x,"featuredProductsEntity",W);if(x!=null&&x.productsData){W=[];x=g.V(x.productsData);for(var D=x.next();!D.done;D=x.next()){D=D.value;var K=void 0;if((K=D)!=null&&K.identifier&&D.featuredSegments){Q.KS.push(D);var l=void 0;K=g.V((l=D)==null?void 0:l.featuredSegments);for(l=K.next();!l.done;l=K.next()){var M=l.value;l=YnO(M.startTimeSec);l!==void 0&&(M=YnO(M.endTimeSec),W.push(new g.jz(l*1E3,M===void 0?0x7ffffffffffff:M*1E3,{id:D.identifier,
namespace:"featured_product"})))}}}Q.J.HV(W)}}};
S3=function(Q){if(Q.trendingOfferEntityKey){var W=g.xN.getState().entities;if(W=wW(W,"trendingOfferEntity",Q.trendingOfferEntityKey)){var x,D,K;W.encodedSkuId!==((x=Q.B)==null?void 0:(D=x.bannerData)==null?void 0:(K=D.itemData)==null?void 0:K.encodedOfferSkuId)?w_(Q):(Q.U.update({trendingOffer:W.shortLabel+" \u2022 "+W.countLabel}),Q.U.show(),Q.banner.update({vendor:uQD(Q)}))}else w_(Q)}else w_(Q)};
w_=function(Q){Q.U.hide();Q.banner.update({vendor:uQD(Q)})};
bv=function(Q){Q.KS=[];Q.rQ();Q.J.jQ("featured_product")};
VUa=function(Q){var W,x,D,K,l=(W=Q.B)==null?void 0:(x=W.bannerData)==null?void 0:(D=x.itemData)==null?void 0:(K=D.hiddenProductOptions)==null?void 0:K.dropTimestampMs;W=(Number(l)-Date.now())/1E3;Q.countdownTimer.iy(Pc({seconds:W}));if(W>0){var M;(M=Q.Y6)==null||M.start()}};
Pw2=function(Q){var W;(W=Q.Y6)==null||W.stop();Q.countdownTimer.hide()};
YnO=function(Q){if(Q!==void 0&&Q.trim()!==""&&(Q=Math.trunc(Number(Q.trim())),!(isNaN(Q)||Q<0)))return Q};
he1=function(Q,W,x){g.L.call(this,{K:"div",lj:["ytp-info-panel-action-item"],V:[{K:"div",Y:"ytp-info-panel-action-item-disclaimer",m3:"{{disclaimer}}"},{K:"a",lj:["ytp-info-panel-action-item-button","ytp-button"],Z:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{K:"div",Y:"ytp-info-panel-action-item-icon",m3:"{{icon}}"},{K:"div",Y:"ytp-info-panel-action-item-label",m3:"{{label}}"}]}]});this.J=Q;this.B=x;this.disclaimer=this.Nj("ytp-info-panel-action-item-disclaimer");this.button=
this.Nj("ytp-info-panel-action-item-button");this.ET=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);Q="";x=g.e(W==null?void 0:W.onTap,IG);var D=g.e(x,g.$_);this.ET=!1;D?(Q=D.url||"",Q.startsWith("//")&&(Q="https:"+Q),this.ET=!0,g.qZ(this.button,g.HI(Q))):(D=g.e(x,v5z))&&!this.B?((Q=D.phoneNumbers)&&Q.length>0?(Q="sms:"+Q[0],D.messageText&&(Q+="?&body="+encodeURI(D.messageText))):Q="",this.ET=!0,g.qZ(this.button,g.HI(Q,[Cwn]))):(x=g.e(x,JR5))&&!this.B&&(Q=x.phoneNumber?
"tel:"+x.phoneNumber:"",this.ET=!0,g.qZ(this.button,g.HI(Q,[pSa])));var K;if(x=(K=W.disclaimerText)==null?void 0:K.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var l;this.update({label:(l=W.bodyText)==null?void 0:l.content,icon:pV(),disclaimer:x})}else{this.disclaimer.style.display="none";var M;this.update({label:(M=W.bodyText)==null?void 0:M.content,icon:pV()})}this.J.setTrackingParams(this.element,W.trackingParams||null);this.ET&&(this.U={externalLinkData:{url:Q}})};
aBa=function(Q,W){var x=wn();g.y0.call(this,Q,{K:"div",Y:"ytp-info-panel-detail-skrim",V:[{K:"div",Y:"ytp-info-panel-detail",Z:{role:"dialog",id:x},V:[{K:"div",Y:"ytp-info-panel-detail-header",V:[{K:"div",Y:"ytp-info-panel-detail-title",m3:"{{title}}"},{K:"button",lj:["ytp-info-panel-detail-close","ytp-button"],Z:{"aria-label":"Close"},V:[g.P4()]}]},{K:"div",Y:"ytp-info-panel-detail-body",m3:"{{body}}"},{K:"div",Y:"ytp-info-panel-detail-items"}]}]},250);this.B=W;this.items=this.Nj("ytp-info-panel-detail-items");
this.D=new g.I0(this);this.itemData=[];this.N=x;this.W(this.Nj("ytp-info-panel-detail-close"),"click",this.X0);this.W(this.Nj("ytp-info-panel-detail-skrim"),"click",this.X0);this.W(this.Nj("ytp-info-panel-detail"),"click",function(D){D.stopPropagation()});
g.y(this,this.D);this.J.createServerVe(this.element,this,!0);this.W(Q,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",Q.getVideoData());this.hide()};
G7n=function(Q,W){Q=g.V(Q.itemData);for(var x=Q.next();!x.done;x=Q.next())x=x.value,x.J.logVisibility(x.element,W)};
ARO=function(Q,W){g.L.call(this,{K:"div",Y:"ytp-info-panel-preview",Z:{"aria-live":"assertive","aria-atomic":"true","aria-owns":W.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.d5(Q.C()))},V:[{K:"div",Y:"ytp-info-panel-preview-text",m3:"{{text}}"},{K:"div",Y:"ytp-info-panel-preview-chevron",m3:"{{chevron}}"}]});var x=this;this.J=Q;this.WV=this.B=this.videoId=null;this.N=this.showControls=this.U=!1;this.W(this.element,"click",function(){Q.logClick(x.element);Q.rq();fq(W)});
this.D=new g.Wi(this,250,!1,100);g.y(this,this.D);this.J.createServerVe(this.element,this,!0);this.W(Q,"videodatachange",this.onVideoDataChange);this.W(Q,"presentingplayerstatechange",this.Jg);this.W(this.J,"paidcontentoverlayvisibilitychange",this.vB);this.W(this.J,"infopaneldetailvisibilitychange",this.vB);var D=Q.getVideoData()||{};d$a(D)&&ix4(this,D);this.W(Q,"onShowControls",this.Q2);this.W(Q,"onHideControls",this.fW)};
ix4=function(Q,W){if(!W.eK||!Q.J.vM()){var x=W.Et||1E4,D=d$a(W);Q.B?W.videoId&&W.videoId!==Q.videoId&&(g.t2(Q.B),Q.videoId=W.videoId,D?(Hx4(Q,x,W),Q.jt()):(Q.X0(),Q.B.dispose(),Q.B=null)):D&&(W.videoId&&(Q.videoId=W.videoId),Hx4(Q,x,W),Q.jt())}};
d$a=function(Q){var W,x,D,K;return!!((W=Q.J2)==null?0:(x=W.title)==null?0:x.content)||!!((D=Q.J2)==null?0:(K=D.bodyText)==null?0:K.content)};
Hx4=function(Q,W,x){Q.B&&Q.B.dispose();Q.B=new g.O3(Q.VK7,W,Q);g.y(Q,Q.B);var D;W=((D=x.J2)==null?void 0:D.trackingParams)||null;Q.J.setTrackingParams(Q.element,W);var K;var l,M;if(x==null?0:(l=x.J2)==null?0:(M=l.title)==null?0:M.content){var w;D=(K=x.J2)==null?void 0:(w=K.title)==null?void 0:w.content;var S,b;if((S=x.J2)==null?0:(b=S.bodyText)==null?0:b.content)D+=" \u2022 ";K=D}else K="";var z,k;x=((z=x.J2)==null?void 0:(k=z.bodyText)==null?void 0:k.content)||"";Q.update({text:K+x,chevron:g.VK()})};
U$n=function(Q,W){Q.B&&(g.r(W,8)?(Q.U=!0,Q.jt(),Q.B.start()):(g.r(W,2)||g.r(W,64))&&Q.videoId&&(Q.videoId=null))};
sy=function(Q){var W=null;try{W=Q.toLocaleString("en",{style:"percent"})}catch(x){W=Q.toLocaleString(void 0,{style:"percent"})}return W};
z0=function(Q,W){var x=0;Q=g.V(Q);for(var D=Q.next();!(D.done||D.value.startTime>W);D=Q.next())x++;return x===0?x:x-1};
qnv=function(Q,W){for(var x=0,D=g.V(Q),K=D.next();!K.done;K=D.next()){K=K.value;if(W<K.timeRangeStartMillis)return null;if(W>=K.timeRangeStartMillis&&W<K.timeRangeStartMillis+K.B)break;x++}x+1<Q.length&&Q[x+1].timeRangeStartMillis<=W&&x++;return x<Q.length?x:null};
BbD=function(Q,W){W=z0(Q,W)+1;return W<Q.length?W:-1};
$$Q=function(Q,W){return z0(Q,W)-1};
IBz=function(Q,W){return new g.jz(Q,W,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+Q})};
Nbh=function(Q,W,x,D,K,l,M,w){g.I0.call(this);var S=this;this.api=Q;this.contextMenu=x;this.s4=D;this.XY=K;this.B=l;this.X=M;this.progressBar=w;this.L=new g.O3(function(){m$a(S,!1)},1E3);
this.U="";this.D={HC:!1};this.N=!1;g.y(this,this.L);this.W(W,"mousedown",function(){ku(S,!1)});
this.W(x.element,"mousedown",function(){ku(S,!1)});
this.W(W,"keydown",this.Lk);this.W(x.element,"keydown",this.Lk);this.W(W,"keyup",this.EK);this.W(x.element,"keyup",this.EK)};
cRh=function(Q,W){return W<0?0:Math.floor(Math.min(W,Q.api.getDuration())*1E3)};
XO=function(Q,W,x){var D=Q.api.getCurrentTime(),K=cRh(Q,D);Q=cRh(Q,D+W);return{startMediaTimeMs:K,endMediaTimeMs:Q,seekSource:x}};
g5D=function(Q){var W,x=(W=Q.api.getVideoData())==null?void 0:W.aQ();return Q.api.getPresentingPlayerType(x)!==2};
ku=function(Q,W){Q.N=W;g.S$(Q.api.getRootNode(),"ytp-probably-keyboard-focus",W);g.S$(Q.contextMenu.element,"ytp-probably-keyboard-focus",W)};
uv=function(Q,W,x,D){var K=g.GZ(Q.api.x6());if(K&&K.loaded){var l=Q.api.getSubtitlesUserSettings();K=void 0;for(var M=0;M<g.oW.length;M++){var w=g.oW[M];if(w.option===W){K=w.options;break}}M=void 0;for(w=0;w<K.length;w++)K[w].option===l[W]&&(M=w);if(D)if(x){if(M===0)return}else if(M===K.length-1)return;D={};D[W]=K[(M+(x?K.length-1:1))%K.length].option;Q.api.updateSubtitlesUserSettings(D);m$a(Q,!0);Q.L.start()}};
m$a=function(Q,W){g.GZ(Q.api.x6())&&Q.api.setOption("captions","sampleSubtitles",W)};
g.Yu=function(Q,W){g.L.call(this,{K:"button",lj:["ytp-button","ytp-overflow-button"],Z:{title:"More","aria-haspopup":"true","aria-owns":W.element.id},V:[{K:"div",Y:"ytp-overflow-icon",V:[{K:"svg",Z:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},V:[{K:"path",Z:{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 x=this;this.J=Q;this.uf=W;this.B=this.visible=!1;Q.createClientVe(this.element,
this,16499);this.W(Q,"videoplayerreset",this.Yf);this.W(Q,"appresize",this.Yf);this.W(Q,"fullscreentoggled",this.Yf);this.W(Q,"presentingplayerstatechange",this.Yf);this.Yf();Jo(Q,this.element,this);this.listen("click",function(){Q.logClick(x.element);fq(W,x.element,!1)});
this.W(W.closeButton,"click",function(){x.focus()})};
yR5=function(Q){g.y0.call(this,Q,{K:"div",Y:"ytp-overflow-panel",Z:{id:wn(),role:"dialog"},V:[{K:"div",Y:"ytp-overflow-panel-content",V:[{K:"div",Y:"ytp-overflow-panel-action-buttons",m3:"{{buttons}}"}]},{K:"button",lj:["ytp-overflow-panel-close","ytp-button"],Z:{title:"Close"},V:[g.P4()]}]},250);this.actionButtons=[];this.B=this.Nj("ytp-overflow-panel-content");this.closeButton=this.Nj("ytp-overflow-panel-close");this.W(this.closeButton,"click",this.X0);Jo(Q,this.closeButton,this);this.listen("click",
this.XC);this.W(Q,"videoplayerreset",this.hide);this.W(Q,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
ee1=function(Q,W){Q.actionButtons.includes(W)||(Q.actionButtons.push(W),Q.updateValue("buttons",Q.actionButtons))};
fBn=function(Q,W){Q=g.V(Q.actionButtons);for(var x=Q.next();!x.done;x=Q.next())x.value.rG(W)};
ZxF=function(Q,W,x){var D=g.uX(W,x),K=D.ue("default.jpg");g.L.call(this,{K:"a",lj:["ytp-video-menu-item","ytp-button"],Z:{role:"menuitemradio","aria-label":D.title,href:Q.C().getVideoUrl(D.videoId,W.listId?W.listId.toString():null)},V:[{K:"div",Y:"ytp-video-menu-item-index",m3:String(x+1)},{K:"div",Y:"ytp-video-menu-item-now-playing",m3:"\u25b6"},{K:"div",Y:"ytp-video-menu-item-thumbnail",Z:{style:K?"background-image: url("+K+");":void 0}},{K:"div",Y:"ytp-video-menu-item-title",m3:D.title},{K:"div",
Y:"ytp-video-menu-item-author",m3:D.author}]});this.api=Q;this.index=x;this.listen("click",this.onClick)};
LCl=function(Q){g.y0.call(this,Q,{K:"div",Y:"ytp-playlist-menu",Z:{role:"dialog",id:wn()},V:[{K:"div",Y:"ytp-playlist-menu-header",V:[{K:"div",Y:"ytp-playlist-menu-title",V:[Q.C().D?{K:"span",Y:"ytp-playlist-menu-title-name",m3:"{{title}}"}:{K:"a",Y:"ytp-playlist-menu-title-name",Z:{href:"{{playlisturl}}"},m3:"{{title}}"},{K:"button",lj:["ytp-playlist-menu-close","ytp-button"],Z:{"aria-label":"Close"},V:[g.P4()]}]},{K:"div",Y:"ytp-playlist-menu-subtitle",m3:"{{subtitle}}"}]},{K:"div",Y:"ytp-playlist-menu-items",
Z:{role:"menu"}}]},250);this.api=Q;this.D=this.selected=this.N=this.playlist=null;this.items=this.Nj("ytp-playlist-menu-items");this.B=new g.I0(this);this.playlistData=[];this.W(this.Nj("ytp-playlist-menu-close"),"click",this.X0);var W=this.Nj("ytp-playlist-menu-title-name");Q.C().D||(this.D=this.W(W,"click",this.Dx3));g.y(this,this.B);this.hide()};
nc=function(Q,W){g.L.call(this,{K:"button",lj:["ytp-playlist-menu-button","ytp-button"],Z:{title:"{{title}}","aria-owns":String(W.element.id),"aria-haspopup":"true","aria-label":"Playlist"},V:[{K:"div",Y:"ytp-playlist-menu-button-icon",V:[{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Z:{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"}}]}]},{K:"div",Y:"ytp-playlist-menu-button-text",m3:"{{text}}"}]});var x=this;this.api=Q;this.playlist=null;this.visible=!1;Q.createClientVe(this.element,this,70344);this.W(Q,"videodatachange",this.B);this.W(Q,"videoplayerreset",this.B);this.W(Q,"onPlaylistUpdate",this.B);this.W(Q,"presentingplayerstatechange",this.Yf);this.W(Q,"appresize",this.Yf);this.hide();this.B();Jo(Q,this.element,this);this.listen("click",function(){Q.logClick(x.element);fq(W,x.element,!1)})};
rRv=function(Q,W){g.L.call(this,{K:"div",Y:"ytp-promotooltip-wrapper",V:[{K:"div",Y:"ytp-promotooltip-container",V:[{K:"div",Y:"ytp-promotooltip-content",V:[{K:"div",Y:"ytp-promotooltip-title",m3:"{{title}}"},{K:"div",Y:"ytp-promotooltip-details",m3:"{{details}}"}]},{K:"div",Y:"ytp-promotooltip-buttons",V:[{K:"div",Y:"ytp-promotooltip-dismiss-button",m3:"{{dismissButtonText}}",Z:{tabindex:"0"}},{K:"div",Y:"ytp-promotooltip-accept-button",m3:"{{acceptButtonText}}",Z:{tabindex:"0","aria-haspopup":"true"}}]}]},
{K:"div",Y:"ytp-promotooltip-pointer"}]});var x=this;this.tooltipRenderer=Q;this.J=W;this.B=this.D=null;this.title=this.Nj("ytp-promotooltip-title");this.details=this.Nj("ytp-promotooltip-details");this.acceptButton=this.Nj("ytp-promotooltip-accept-button");this.dismissButton=this.Nj("ytp-promotooltip-dismiss-button");this.U=this.X=!1;this.N=!0;this.uj=this.G=this.T=this.S=!1;this.by={Vz:function(D){x.Vz(D)}};
this.hO(!1);Q=this.tooltipRenderer.trackingParams||null;if(this.U=!!Q)this.J.createServerVe(this.element,this,!0),this.J.setTrackingParams(this.element,Q);this.W(W,"onShowControls",this.LW);this.W(W,"onHideControls",this.l2);this.W(W,"resize",this.OV);this.W(this.acceptButton,"click",this.Wdf);this.W(this.dismissButton,"click",this.XDj);this.W(document,"click",this.E$)};
Tbz=function(Q){var W=document.querySelectorAll('[data-tooltip-target-id="'+Q.tooltipRenderer.targetId+'"]');W=W.length>0?W[0]:null;var x=g.rS("ytp-chrome-bottom"),D=g.rS("ytp-ad-module");Q.N=!(x==null||!x.contains(W));Q.S=!(D==null||!D.contains(W));Q.T=!(W==null||!W.hasAttribute("data-tooltip-target-fixed"));return W};
FCz=function(Q,W,x){if(!Q.X){if(W){Q.tooltipRenderer=W;W=Q.tooltipRenderer.text;var D=!1,K;(W==null?0:(K=W.runs)==null?0:K.length)&&W.runs[0].text&&(Q.update({title:W.runs[0].text.toString()}),D=!0);g.vR(Q.title,D);W=Q.tooltipRenderer.detailsText;K=!1;var l;if((W==null?0:(l=W.runs)==null?0:l.length)&&W.runs[0].text){D=W.runs[0].text.toString();l=D.indexOf("$TARGET_ICON");if(l>-1)if(Q.tooltipRenderer.targetId){W=[];D=D.split("$TARGET_ICON");var M=new g.St({K:"span",Y:"ytp-promotooltip-details-icon",
V:[Oxh[Q.tooltipRenderer.targetId]]});g.y(Q,M);for(var w=[],S=g.V(D),b=S.next();!b.done;b=S.next())b=new g.St({K:"span",Y:"ytp-promotooltip-details-component",m3:b.value}),g.y(Q,b),w.push(b);D.length===2?(W.push(w[0].element),W.push(M.element),W.push(w[1].element)):D.length===1&&(l===0?(W.push(M.element),W.push(w[0].element)):(W.push(w[0].element),W.push(M.element)));l=W.length?W:null}else l=null;else l=D;if(l){if(typeof l!=="string")for(g.Df(Q.details),K=g.V(l),l=K.next();!l.done;l=K.next())Q.details.appendChild(l.value);
else Q.update({details:l});K=!0}}g.vR(Q.details,K);K=Q.tooltipRenderer.acceptButton;l=!1;var z,k,X;((z=g.e(K,g.IQ))==null?0:(k=z.text)==null?0:(X=k.runs)==null?0:X.length)&&g.e(K,g.IQ).text.runs[0].text&&(Q.update({acceptButtonText:g.e(K,g.IQ).text.runs[0].text.toString()}),l=!0);g.vR(Q.acceptButton,l);z=Q.tooltipRenderer.dismissButton;k=!1;var u,Y,v;((u=g.e(z,g.IQ))==null?0:(Y=u.text)==null?0:(v=Y.runs)==null?0:v.length)&&g.e(z,g.IQ).text.runs[0].text&&(Q.update({dismissButtonText:g.e(z,g.IQ).text.runs[0].text.toString()}),
k=!0);g.vR(Q.dismissButton,k)}x&&(Q.D=x);Q.B=Tbz(Q);Q.G=!1;Q.J.C().j("web_player_hide_nitrate_promo_tooltip")||Q.hO(!0);E5n(Q);Q.md&&!Q.uj&&(Q.uj=!0,Q.by.Vz(0));Q.U&&Q.J.logVisibility(Q.element,Q.md)}};
VL=function(Q){Q.hO(!1);Q.U&&Q.J.logVisibility(Q.element,Q.md)};
tUD=function(Q){var W,x,D,K=((W=g.e(Q.acceptButton,g.IQ))==null?void 0:(x=W.text)==null?void 0:(D=x.runs)==null?void 0:D.length)&&!!g.e(Q.acceptButton,g.IQ).text.runs[0].text,l,M,w;W=((l=g.e(Q.dismissButton,g.IQ))==null?void 0:(M=l.text)==null?void 0:(w=M.runs)==null?void 0:w.length)&&!!g.e(Q.dismissButton,g.IQ).text.runs[0].text;return K||W};
E5n=function(Q){var W;if(!(W=!Q.B)){W=Q.B;var x=window.getComputedStyle(W);W=x.display==="none"||x.visibility==="hidden"||W.getAttribute("aria-hidden")==="true"}if(W||Q.J.isMinimized())Q.hO(!1);else if(W=g.PR(Q.B),W.width&&W.height){Q.J.CF(Q.element,Q.B);var D=Q.J.hf().getPlayerSize().height;x=g.PR(Q.Nj("ytp-promotooltip-container")).height;Q.N?Q.element.style.top=D-x-W.height-12+"px":Q.T||(D=Q.J.Lv().height-x-W.height-12,Q.element.style.top=D+"px");D=Q.Nj("ytp-promotooltip-pointer");var K=g.np(Q.B,
Q.J.getRootNode()),l=Number(Q.element.style.left.replace(/[^\d\.]/g,""));Q=Q.J.isFullscreen()?18:12;D.style.left=K.x-l+W.width/2-Q+"px";D.style.top=x+"px"}else Q.hO(!1)};
PN=function(Q){g.L.call(this,{K:"button",lj:["ytp-replay-button","ytp-button"],Z:{title:"Replay"},V:[g.ad()]});this.J=Q;this.W(Q,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.wE(Q.getPlayerStateObject());Jo(this.J,this.element,this)};
vN=function(Q,W){W=W===void 0?240:W;g.L.call(this,{K:"button",lj:["ytp-button","ytp-search-button"],Z:{title:"Search","data-tooltip-opaque":String(g.d5(Q.C()))},V:[{K:"div",Y:"ytp-search-icon",m3:"{{icon}}"},{K:"div",Y:"ytp-search-title",m3:"Search"}]});this.api=Q;this.U=W;this.visible=!1;this.updateValue("icon",{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",Y:"ytp-svg-fill",Z:{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"}}]});
Q.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.B();this.W(Q,"appresize",this.B);this.W(Q,"videodatachange",this.B);Jo(Q,this.element,this)};
g.Cc=function(Q,W,x,D){D=D===void 0?240:D;g.L.call(this,{K:"button",lj:["ytp-button","ytp-share-button"],Z:{title:"Share","aria-haspopup":"true","aria-owns":x.element.id,"data-tooltip-opaque":String(g.d5(Q.C()))},V:[{K:"div",Y:"ytp-share-icon",m3:"{{icon}}"},{K:"div",Y:"ytp-share-title",m3:"Share"}]});this.api=Q;this.B=W;this.D=x;this.N=D;this.U=this.visible=!1;this.tooltip=this.B.Vp();Q.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.W(Q,"videodatachange",this.Yf);
this.W(Q,"videoplayerreset",this.Yf);this.W(Q,"appresize",this.Yf);this.W(Q,"presentingplayerstatechange",this.Yf);this.Yf();this.addOnDisposeCallback(g.Cq(this.tooltip,this.element))};
QVD=function(Q){var W=Q.api.C(),x=Q.api.getVideoData(),D=g.d5(W)&&g.iL(Q.api)&&g.r(Q.api.getPlayerStateObject(),128);W=W.D||W.disableSharing&&Q.api.getPresentingPlayerType()!==2||!x.showShareButton||x.FV||D||g.xW(x)||Q.U;D=Q.api.hf().getPlayerSize().width;return!!x.videoId&&D>=Q.N&&!W};
Wt4=function(Q,W){W.name!=="InvalidStateError"&&W.name!=="AbortError"&&(W.name==="NotAllowedError"?(Q.B.rq(),fq(Q.D,Q.element,!1)):g.ql(W))};
Di2=function(Q,W){var x=wn(),D=Q.C();x={K:"div",Y:"ytp-share-panel",Z:{id:wn(),role:"dialog","aria-labelledby":x},V:[{K:"div",Y:"ytp-share-panel-inner-content",V:[{K:"div",Y:"ytp-share-panel-title",Z:{id:x},m3:"Share"},{K:"a",lj:["ytp-share-panel-link","ytp-no-contextmenu"],Z:{href:"{{link}}",target:D.T,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},m3:"{{linkText}}"},{K:"label",Y:"ytp-share-panel-include-playlist",V:[{K:"input",Y:"ytp-share-panel-include-playlist-checkbox",Z:{type:"checkbox",
checked:"true"}},"Include playlist"]},{K:"div",Y:"ytp-share-panel-loading-spinner",V:[wz()]},{K:"div",Y:"ytp-share-panel-service-buttons",m3:"{{buttons}}"},{K:"div",Y:"ytp-share-panel-error",m3:"An error occurred while retrieving sharing information. Please try again later."}]},{K:"button",lj:["ytp-share-panel-close","ytp-button"],Z:{title:"Close"},V:[g.P4()]}]};g.y0.call(this,Q,x,250);var K=this;this.moreButton=null;this.api=Q;this.tooltip=W.Vp();this.D=[];this.X=this.Nj("ytp-share-panel-inner-content");
this.closeButton=this.Nj("ytp-share-panel-close");this.W(this.closeButton,"click",this.X0);this.addOnDisposeCallback(g.Cq(this.tooltip,this.closeButton));this.N=this.Nj("ytp-share-panel-include-playlist-checkbox");this.W(this.N,"click",this.Yf);this.B=this.Nj("ytp-share-panel-link");this.addOnDisposeCallback(g.Cq(this.tooltip,this.B));this.api.createClientVe(this.B,this,164503);this.W(this.B,"click",function(l){l.preventDefault();K.api.logClick(K.B);var M=K.api.getVideoUrl(!0,!0,!1,!1);M=xiO(K,M);
g.RY(M,K.api,l)&&K.api.Wt("SHARE_CLICKED")});
this.listen("click",this.vu);this.W(Q,"videoplayerreset",this.hide);this.W(Q,"fullscreentoggled",this.onFullscreenToggled);this.W(Q,"onLoopRangeChange",this.QW9);this.hide()};
lpQ=function(Q,W){Kt2(Q);for(var x=W.links||W.shareTargets,D=0,K={},l=0;l<x.length&&D<2;K={Ub:void 0,Cv:void 0},l++){K.Ub=x[l];a:switch(K.Ub.img||K.Ub.iconId){case "facebook":var M={K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{K:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",Z:{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":M={K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{K:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",Z:{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:M=null}if(M){var w=K.Ub.sname||K.Ub.serviceName;K.Cv=new g.L({K:"a",lj:["ytp-share-panel-service-button","ytp-button"],Z:{href:K.Ub.url,target:"_blank",title:w},V:[M]});K.Cv.listen("click",function(z){return function(k){var X=z.Ub.url;if(g.pb(k)){var u=u===void 0?{}:u;u.target=u.target||"YouTube";u.width=u.width||"600";u.height=u.height||"600";var Y=u;Y||(Y={});u=window;var v=X instanceof Gm?X:g.HI(typeof X.href!="undefined"?X.href:String(X));var J=self.crossOriginIsolated!==
void 0,h="strict-origin-when-cross-origin";window.Request&&(h=(new Request("/")).referrerPolicy);var G=Y.noreferrer;if(J&&G&&h==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");J=G&&!J;X=Y.target||X.target;h=[];G=[];for(var H in Y){var I=Y[H];switch(H){case "width":case "height":case "top":case "left":h.push(H+"="+I);break;case "target":break;case "noopener":case "noreferrer":I?G.push(H):G.push(H+"=false");break;
case "attributionsrc":h.push(H+(I?"="+I:""));break;default:h.push(H+"="+(I?1:0))}}["_blank","_self","_top","_parent",""].includes(X);H=h.join(",");Z7()&&u.navigator&&u.navigator.standalone&&X&&X!="_self"?(H=g.Qz("A"),g.qZ(H,v),H.target=X,J&&(H.rel="noreferrer"),((Y=Y.attributionsrc)||Y==="")&&H.setAttribute("attributionsrc",Y),Y=document.createEvent("MouseEvent"),Y.initMouseEvent("click",!0,!0,u,1),H.dispatchEvent(Y),u=bZl()):J?(u=g.mO(u,"",X,H),Y=g.dX(v),u&&(u.opener=null,Y===""&&(Y="javascript:''"),
Y=$c('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Fa(Y)+'">'),(v=u.document)&&v.write&&(v.write(Ix(Y)),v.close()))):((u=g.mO(u,v,X,H))&&Y.noopener&&(u.opener=null),u&&Y.noreferrer&&(u.opener=null));u&&(u.opener||(u.opener=window),u.focus());k.preventDefault()}}}(K));
K.Cv.addOnDisposeCallback(g.Cq(Q.tooltip,K.Cv.element));w==="Facebook"?Q.api.createClientVe(K.Cv.element,K.Cv,164504):w==="Twitter"&&Q.api.createClientVe(K.Cv.element,K.Cv,164505);Q.W(K.Cv.element,"click",function(z){return function(){Q.api.logClick(z.Cv.element)}}(K));
Q.api.logVisibility(K.Cv.element,!0);Q.D.push(K.Cv);D++}}var S=W.more||W.moreLink,b=new g.L({K:"a",lj:["ytp-share-panel-service-button","ytp-button"],V:[{K:"span",Y:"ytp-share-panel-service-button-more",V:[{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{K:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",Z:{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"}}]}]}],Z:{href:S,target:"_blank",title:"More"}});b.listen("click",function(z){var k=S;Q.api.logClick(Q.moreButton.element);k=xiO(Q,k);g.RY(k,Q.api,z)&&Q.api.Wt("SHARE_CLICKED")});
b.addOnDisposeCallback(g.Cq(Q.tooltip,b.element));Q.api.createClientVe(b.element,b,164506);Q.W(b.element,"click",function(){Q.api.logClick(b.element)});
Q.api.logVisibility(b.element,!0);Q.D.push(b);Q.moreButton=b;Q.updateValue("buttons",Q.D)};
xiO=function(Q,W){var x={};g.d5(Q.api.C())&&(g.bL(Q.api,"addEmbedsConversionTrackingParams",[x]),W=g.ya(W,x));return W};
Kt2=function(Q){for(var W=g.V(Q.D),x=W.next();!x.done;x=W.next())x=x.value,x.detach(),g.w1(x);Q.D=[]};
Jw=function(Q){return Q===void 0||Q.startSec===void 0||Q.endSec===void 0?!1:!0};
jV5=function(Q,W){Q.startSec+=W;Q.endSec+=W};
R2l=function(Q){ir.call(this,Q);this.U=this.B=this.isContentForward=this.G=!1;MI2(this);this.W(this.J,"changeProductsInVideoVisibility",this.mrj);this.W(this.J,"videodatachange",this.onVideoDataChange)};
wUO=function(Q){Q.X&&Q.LS.element.removeChild(Q.X.element);Q.X=void 0};
boD=function(Q,W){return W.map(function(x){var D,K;if((x=(D=g.e(x,SK1))==null?void 0:(K=D.thumbnail)==null?void 0:K.thumbnails)&&x.length!==0)return x[0].url}).filter(function(x){return x!==void 0}).map(function(x){x=new g.L({K:"img",
Y:"ytp-suggested-action-product-thumbnail",Z:{alt:"",src:x}});g.y(Q,x);return x})};
sV5=function(Q,W){Q.isContentForward=W;g.S$(Q.badge.element,"ytp-suggested-action-badge-content-forward",W)};
pc=function(Q){var W=Q.isContentForward&&!Q.cq();g.S$(Q.badge.element,"ytp-suggested-action-badge-preview-collapsed",W&&Q.B);g.S$(Q.badge.element,"ytp-suggested-action-badge-preview-expanded",W&&Q.U)};
hw=function(Q,W,x){return new g.jz(Q*1E3,W*1E3,{priority:9,namespace:x})};
z2O=function(Q){Q.J.jQ("shopping_overlay_visible");Q.J.jQ("shopping_overlay_preview_collapsed");Q.J.jQ("shopping_overlay_preview_expanded");Q.J.jQ("shopping_overlay_expanded")};
MI2=function(Q){Q.W(Q.J,g.Ru("shopping_overlay_visible"),function(){Q.PZ(!0)});
Q.W(Q.J,g.wt("shopping_overlay_visible"),function(){Q.PZ(!1)});
Q.W(Q.J,g.Ru("shopping_overlay_expanded"),function(){Q.pS=!0;dd(Q)});
Q.W(Q.J,g.wt("shopping_overlay_expanded"),function(){Q.pS=!1;dd(Q)});
Q.W(Q.J,g.Ru("shopping_overlay_preview_collapsed"),function(){Q.B=!0;pc(Q)});
Q.W(Q.J,g.wt("shopping_overlay_preview_collapsed"),function(){Q.B=!1;pc(Q)});
Q.W(Q.J,g.Ru("shopping_overlay_preview_expanded"),function(){Q.U=!0;pc(Q)});
Q.W(Q.J,g.wt("shopping_overlay_preview_expanded"),function(){Q.U=!1;pc(Q)})};
ofa=function(Q){g.L.call(this,{K:"div",Y:"ytp-shorts-title-channel",V:[{K:"a",Y:"ytp-shorts-title-channel-logo",Z:{href:"{{channelLink}}",target:Q.C().T,"aria-label":"{{channelLogoLabel}}"}},{K:"div",Y:"ytp-shorts-title-expanded-heading",V:[{K:"div",Y:"ytp-shorts-title-expanded-title",V:[{K:"a",m3:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:Q.C().T,tabIndex:"0"}}]}]}]});var W=this;this.api=Q;this.B=this.Nj("ytp-shorts-title-channel-logo");this.channelName=this.Nj("ytp-shorts-title-expanded-title");
this.subscribeButton=null;Q.createClientVe(this.B,this,36925);this.W(this.B,"click",function(x){W.api.logClick(W.B);g.mO(window,kBD(W));x.preventDefault()});
Q.createClientVe(this.channelName,this,37220);this.W(this.channelName,"click",function(x){W.api.logClick(W.channelName);g.mO(window,kBD(W));x.preventDefault()});
XUa(this);this.W(Q,"videodatachange",this.Yf);this.W(Q,"videoplayerreset",this.Yf);this.Yf()};
XUa=function(Q){if(!Q.api.C().Cn){var W=Q.api.getVideoData(),x=new g.WN("Subscribe",null,"Subscribed",null,!0,!1,W.ZS,W.subscribed,"channel_avatar",null,Q.api,!0);Q.api.createServerVe(x.element,Q);var D;Q.api.setTrackingParams(x.element,((D=W.subscribeButtonRenderer)==null?void 0:D.trackingParams)||null);Q.W(x.element,"click",function(){Q.api.logClick(x.element)});
Q.subscribeButton=x;g.y(Q,Q.subscribeButton);Q.subscribeButton.Qj(Q.element)}};
kBD=function(Q){var W=Q.api.C(),x=Q.api.getVideoData();x=g.K1(W)+x.fn;if(!g.d5(W))return x;W={};g.bL(Q.api,"addEmbedsConversionTrackingParams",[W]);return g.ya(x,W)};
aW=function(Q){g.y0.call(this,Q,{K:"button",lj:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{K:"div",Y:"ytp-skip-intro-button-text",m3:"Skip Intro"}]},100);var W=this;this.D=!1;this.B=new g.O3(function(){W.hide()},5E3);
this.gH=this.Qx=NaN;g.y(this,this.B);this.G=function(){W.show()};
this.X=function(){W.hide()};
this.N=function(){var x=W.J.getCurrentTime();x>W.Qx/1E3&&x<W.gH/1E3&&W.show()};
this.W(this.J,"videodatachange",function(x,D){W.Lu(x,D)});
this.W(this.element,"click",function(){W.J.seekTo(W.gH/1E3)});
this.hide()};
G0=function(Q){g.L.call(this,{K:"button",lj:["ytp-airplay-button","ytp-button"],Z:{title:"AirPlay","data-priority":"10"},m3:"{{icon}}"});this.J=Q;this.listen("click",this.onClick);this.W(Q,"airplayactivechange",this.Yf);this.W(Q,"airplayavailabilitychange",this.Yf);this.Yf();Jo(Q,this.element,this)};
YKF=function(Q){g.L.call(this,{K:"div",Y:"ytp-gradient-bottom"});this.U=g.Qz("CANVAS");this.B=this.U.getContext("2d",{willReadFrequently:!0});this.D=NaN;this.U.width=1;ubv(this,Q.hf().getPlayerSize().height)};
ubv=function(Q,W){if(Q.B){W=Math.floor(W*.4);W=Math.max(W,47);var x=W+2;if(Q.D!==x){Q.D=x;Q.U.height=x;Q.B.clearRect(0,0,1,x);var D=Q.B.createLinearGradient(0,2,0,2+W),K=W-42;D.addColorStop(0,"rgba(0, 0, 0, 0)");D.addColorStop(K/W,"rgba(0, 0, 0, 0.3)");D.addColorStop(1,"rgba(0, 0, 0, 0.68)");Q.B.fillStyle=D;Q.B.fillRect(0,2,1,W);Q.element.style.height=x+"px";try{Q.element.style.backgroundImage="url("+Q.U.toDataURL()+")"}catch(l){}}}};
d_=function(Q,W,x,D){g.L.call(this,{K:"div",Y:"ytp-chapter-container",V:[{K:"button",lj:["ytp-chapter-title","ytp-button"],V:[{K:"span",Z:{"aria-hidden":"true"},Y:"ytp-chapter-title-prefix",m3:"\u2022"},{K:"div",Y:"ytp-chapter-title-content",m3:"{{title}}",Z:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:D}},{K:"div",Y:"ytp-chapter-title-chevron",V:[{K:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",Z:{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.J=Q;this.N=W;this.X="";this.currentIndex=0;this.U=void 0;this.D=!0;this.uj=this.Nj("ytp-chapter-container");this.B=this.Nj("ytp-chapter-title");this.pS=this.Nj("ytp-chapter-title-content");this.updateVideoData("newdata",this.J.getVideoData());this.W(Q,"videodatachange",this.updateVideoData);this.W(this.uj,"click",this.onClick);this.W(Q,g.Ru(x),this.QA);this.W(Q,"onLoopRangeChange",this.QA);this.W(Q,"innertubeCommand",this.onClickCommand);(Q=g.IO(this.J.C()))&&g.S$(this.B,
"ytp-profile-page",!0);this.J.j("web_player_updated_entrypoint")&&g.S$(this.element,"ytp-xs-mono-button-style",!0);g.d5(this.J.C())||Q||Jo(this.J,this.pS,this)};
iv=function(Q,W){d_.call(this,Q,W,"chapterCueRange","View chapter");this.G=""};
nf2=function(Q,W,x,D,K){var l=W.Xo/W.rows,M=Math.min(x/(W.ri/W.columns),D/l),w=W.ri*M,S=W.Xo*M;w=Math.floor(w/W.columns)*W.columns;S=Math.floor(S/W.rows)*W.rows;var b=w/W.columns,z=S/W.rows,k=-W.column*b,X=-W.row*z;K&&l<=45&&(z-=1/M);b-=2/M;Q=Q.style;Q.width=b+"px";Q.height=z+"px";K||(D=(D-z)/2,x=(x-b)/2,Q.marginTop=Math.floor(D)+"px",Q.marginBottom=Math.ceil(D)+"px",Q.marginLeft=Math.floor(x)+"px",Q.marginRight=Math.ceil(x)+"px");Q.background="url("+W.url+") "+k+"px "+X+"px/"+w+"px "+S+"px"};
Aw=function(Q,W){g.L.call(this,{K:"div",Y:"ytp-storyboard-framepreview",V:[{K:"div",Y:"ytp-storyboard-framepreview-timestamp",m3:"{{timestamp}}"},{K:"div",Y:"ytp-storyboard-framepreview-img"}]});this.api=Q;this.N=this.Nj("ytp-storyboard-framepreview-img");this.U=null;this.D=NaN;this.events=new g.I0(this);this.B=new g.Wi(this,100);g.y(this,this.events);g.y(this,this.B);this.W(this.api,"presentingplayerstatechange",this.X);W&&this.W(this.element,"click",function(){W.fq()})};
VIF=function(Q,W){var x=!!Q.U;Q.U=W;Q.U?(x||(Q.events.W(Q.api,"videodatachange",function(){VIF(Q,Q.api.Vv())}),Q.events.W(Q.api,"progresssync",Q.E4),Q.events.W(Q.api,"appresize",Q.G)),Q.D=NaN,PEs(Q),Q.B.show(200)):(x&&g.d3(Q.events),Q.B.hide(),Q.B.stop())};
PEs=function(Q){var W=Q.U,x=Q.api.getCurrentTime(),D=Q.api.hf().getPlayerSize(),K=$S(W,D.width);K=vOQ(W,K,x);Q.update({timestamp:g.JI(x)});K!==Q.D&&(Q.D=K,VN5(W,K,D.width),W=YSh(W,K,D.width),nf2(Q.N,W,D.width,D.height))};
vfs=function(Q,W){g.L.call(this,{K:"button",lj:["ytp-fullscreen-button","ytp-button"],Z:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"11","data-title-no-tooltip":"{{data-title-no-tooltip}}"},m3:"{{icon}}"});this.J=Q;this.U=W;this.message=null;this.B=g.Cq(this.U.Vp(),this.element);this.D=new g.O3(this.Ro,2E3,this);g.y(this,this.D);this.W(Q,"fullscreentoggled",this.Cu);this.W(Q,"presentingplayerstatechange",this.Yf);this.W(Q,"resize",this.Yf);this.listen("click",this.onClick);g.uy()&&
(W=this.J.hf(),this.W(W,EB1(),this.H_),this.W(W,O8O(document),this.zo));Q.C().fn||Q.C().S||this.disable();Q.createClientVe(this.element,this,139117);this.Yf();this.Cu(Q.isFullscreen())};
HN=function(Q,W){g.L.call(this,{K:"button",lj:["ytp-button","ytp-jump-button"],Z:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[W>0?{K:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",lj:["ytp-circle-arrow","ytp-svg-fill"],Z:{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"}},
{K:"text",lj:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"7.05",y:"15.05"}}]}:{K:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",lj:["ytp-circle-arrow","ytp-svg-fill"],Z:{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"}},
{K:"text",lj:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"6.5",y:"15"}}]}]});var x=this;this.J=Q;this.B=W;this.U=new g.O3(function(){x.D?(x.D=!1,x.U.start()):x.element.classList.remove("ytp-jump-spin","backwards")},250);
this.D=!1;(W=W>0)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var D=g.nD(W?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.B).toString()});this.update({title:D,"data-title-no-tooltip":D,"aria-keyshortcuts":W?"\u2192":"\u2190"});this.N=this.element.querySelector(".ytp-jump-button-text");this.N.textContent=Math.abs(this.B).toString();this.listen("click",this.onClick,this);Jo(Q,this.element,
this)};
CEO=function(Q,W){W?Q.element.classList.add("ytp-jump-button-enabled"):Q.element.classList.remove("ytp-jump-button-enabled");Q.J.logVisibility(Q.element,W);Q.J.hA()};
Uy=function(Q,W){d_.call(this,Q,W,"timedMarkerCueRange","View key moments");this.W(Q,g.wt("timedMarkerCueRange"),this.QA);this.W(Q,"updatemarkervisibility",this.updateVideoData)};
J15=function(Q){var W,x=(W=Q.J.getVideoData())==null?void 0:W.Vj;if(x)for(Q=Q.N.g7,x=g.V(x),W=x.next();!W.done;W=x.next())if(W=Q[W.value]){var D=void 0,K=void 0,l=void 0;if(((D=W.onTap)==null?void 0:(K=D.innertubeCommand)==null?void 0:(l=K.changeEngagementPanelVisibilityAction)==null?void 0:l.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return W}};
qR=function(Q){var W=Q.j("web_enable_pip_on_miniplayer");g.L.call(this,{K:"button",lj:["ytp-miniplayer-button","ytp-button"],Z:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[W?{K:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},V:[{K:"g",Z:{transform:"translate(96, -96) scale(0.8)"},V:[{K:"path",Tn:!0,Z:{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"}}]}]}:
m5F()]});this.J=Q;this.visible=!1;this.listen("click",this.onClick);this.W(Q,"fullscreentoggled",this.Yf);this.updateValue("title",g.pq(Q,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});Jo(Q,this.element,this);Q.createClientVe(this.element,this,62946);this.Yf()};
BN=function(Q,W,x){x=x===void 0?!1:x;g.L.call(this,{K:"button",lj:["ytp-mute-button","ytp-button"],Z:Q.C().g7?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},m3:"{{icon}}"});this.J=Q;this.fS=x;this.B=null;this.N=this.T=this.X=this.pS=NaN;this.F3=this.G=null;this.D=[];this.U=[];this.visible=!1;this.S=null;Q.j("delhi_modern_web_player")&&this.update({"data-priority":3});
x=this.J.C();this.updateValue("icon",ie());this.tooltip=W.Vp();this.B=new g.St({K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"defs",V:[{K:"clipPath",Z:{id:"ytp-svg-volume-animation-mask"},V:[{K:"path",Z:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{K:"path",Z:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{K:"path",Y:"ytp-svg-volume-animation-mover",Z:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{K:"clipPath",Z:{id:"ytp-svg-volume-animation-slash-mask"},
V:[{K:"path",Y:"ytp-svg-volume-animation-mover",Z:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{K:"path",Tn:!0,lj:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Z:{"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"}},{K:"path",Tn:!0,lj:["ytp-svg-fill","ytp-svg-volume-animation-hider"],Z:{"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.y(this,this.B);this.G=this.B.Nj("ytp-svg-volume-animation-speaker");this.F3=this.G.getAttribute("d");this.D=g.eD("ytp-svg-volume-animation-mover",this.B.element);this.U=g.eD("ytp-svg-volume-animation-hider",this.B.element);this.KS=new KM;g.y(this,this.KS);this.uj=new KM;g.y(this,this.uj);this.listen("click",this.tt3);this.W(Q,"appresize",this.F7);this.W(Q,"onVolumeChange",this.onVolumeChange);var D=null;x.g7?this.addOnDisposeCallback(g.Cq(W.Vp(),
this.element)):(W="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),D=new g.y0(Q,{K:"span",lj:["ytp-popup","ytp-generic-popup"],Z:{tabindex:"0"},V:[W[0],{K:"a",Z:{href:"https://support.google.com/youtube/?p=noaudio",target:x.T},m3:W[2]},W[4]]},100,!0),g.y(this,D),D.hide(),D.subscribe("show",function(K){Q.Cm(D,K)}),g.qf(Q,D.element,4));
this.message=D;Q.createClientVe(this.element,this,28662);this.F7(Q.hf().getPlayerSize());this.setVolume(Q.getVolume(),Q.isMuted())};
ap2=function(Q,W){Q.pS=W;var x=Q.F3;W&&(x+=T_1(pUF,h2a,W));Q.G.setAttribute("d",x)};
GBh=function(Q,W){Q.T=W;for(var x=20*W,D=0;D<Q.D.length;D++)Q.D[D].setAttribute("transform","translate("+x+", "+x+")");var K;W===1?K=ie():K=Q.B;for(x=0;x<Q.U.length;x++){D=Q.U[x];var l=void 0;if((l=D)==null?0:l.style)D.style.display=W===0?"none":""}K!==Q.S&&(Q.updateValue("icon",K),Q.S=K)};
g.$u=function(Q,W){g.L.call(this,{K:"button",lj:["ytp-play-button","ytp-button"],Z:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},m3:"{{icon}}"});this.J=Q;this.B=null;this.transition=new KM;this.tooltip=W.Vp();g.y(this,this.transition);Q.createClientVe(this.element,this,36842);Q.j("embeds_use_parent_visibility_in_ve_logging")?Q.logVisibility(this.element,this.L):Q.logVisibility(this.element,!0);this.W(Q,"fullscreentoggled",this.onVideoDataChange);this.W(Q,
"presentingplayerstatechange",this.onStateChange);this.W(Q,"videodatachange",this.onVideoDataChange);this.wE(Q.getPlayerStateObject());this.listen("click",this.Aq,this);this.addOnDisposeCallback(g.Cq(W.Vp(),this.element))};
din=function(Q){switch(Q){case 1:return h_();case 2:return $54();case 3:return g.ad();case 4:return c4n();default:return null}};
g.IW=function(Q,W,x){g.L.call(this,{K:"a",lj:[x?"ytp-next-button":"ytp-prev-button","ytp-button"],Z:{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}}"},V:[x?CV():NV5()]});var D=this;this.J=Q;this.B=x;this.playlist=this.videoData=null;this.G=
!1;this.N=this.X=this.U=null;this.D=!1;this.tooltip=W.Vp();x?Q.createClientVe(this.element,this,6193):Q.createClientVe(this.element,this,6194);this.W(Q,"fullscreentoggled",this.onVideoDataChange);this.W(Q,"videodatachange",this.onVideoDataChange);this.W(Q,"onPlaylistUpdate",this.onVideoDataChange);this.W(Q,"onLoopRangeChange",this.onVideoDataChange);this.B||this.W(Q,"appresize",this.C6);this.W(Q,"mdxpreviousnextchange",function(){ioO(D);D.C6()});
this.onVideoDataChange()};
A15=function(Q){Q.playlist&&Q.playlist.unsubscribe("shuffle",Q.onVideoDataChange,Q)};
Hoa=function(Q){return!!Q.playlist&&!Q.B&&!!Q.videoData&&!Q.videoData.isLivePlayback&&Q.J.getCurrentTime()>=3&&Q.J.getPresentingPlayerType()!==2};
Uil=function(Q){var W=dZ(Q.J.x6());return W?Q.B?W.EG():W.y_():!1};
ioO=function(Q){var W={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},x=Q.playlist!=null&&Q.playlist.EG();x=g.iL(Q.J)&&(!Q.B||x);var D=Q.B&&g.Bd(Q.J),K=Uil(Q),l=Q.B&&Q.J.getPresentingPlayerType()===5,M=g.pq(Q.J,"Next","SHIFT+n"),w=g.pq(Q.J,"Previous","SHIFT+p");if(l)W.title="Start video";else if(Q.D)W.title="Replay";else if(x){var S=null;Q.playlist&&(S=g.uX(Q.playlist,Q.B?dvz(Q.playlist):i71(Q.playlist)));if(S){if(S.videoId){var b=Q.playlist.listId;
W.url=Q.J.C().getVideoUrl(S.videoId,b?b.toString():void 0)}W.text=S.title;W.duration=S.lengthText?S.lengthText:S.lengthSeconds?g.JI(S.lengthSeconds):null;W.preview=S.ue("mqdefault.jpg")}Q.B?(W.title=M,W["data-title-no-tooltip"]="Next",W["aria-keyshortcuts"]="SHIFT+n"):(W.title=w,W["data-title-no-tooltip"]="Previous",W["aria-keyshortcuts"]="SHIFT+p")}else if(D){if(w=(S=Q.videoData)==null?void 0:g.Q9(S))W.url=w.lk(),W.text=w.title,W.duration=w.lengthText?w.lengthText:w.lengthSeconds?g.JI(w.lengthSeconds):
null,W.preview=w.ue("mqdefault.jpg");W.title=M;W["data-title-no-tooltip"]="Next";W["aria-keyshortcuts"]="SHIFT+n"}W.disabled=!D&&!x&&!K&&!l;Q.update(W);Q.G=!!W.url;D||x||Q.D||K||l?Q.U||(Q.U=g.Cq(Q.tooltip,Q.element),Q.X=Q.listen("click",Q.onClick,Q)):Q.U&&(Q.U(),Q.U=null,Q.mJ(Q.X),Q.X=null);Q.tooltip.hA();g.S$(Q.element,"ytp-playlist-ui",Q.B&&x)};
BPa=function(Q,W){g.L.call(this,{K:"div",Y:"ytp-fine-scrubbing",V:[{K:"div",Y:"ytp-fine-scrubbing-draggable",V:[{K:"div",Y:"ytp-fine-scrubbing-thumbnails",Z:{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}}"}}]},{K:"div",Z:{"aria-hidden":"true"},Y:"ytp-fine-scrubbing-cursor"},{K:"div",Y:"ytp-fine-scrubbing-seek-time",Z:{"aria-hidden":"true"},
m3:"{{seekTime}}"},{K:"div",Y:"ytp-fine-scrubbing-play",V:[h_()],Z:{title:"Play from this position",role:"button"}},{K:"div",Y:"ytp-fine-scrubbing-dismiss",V:[g.P4()],Z:{title:"Exit precise seeking",role:"button"}}]});var x=this;this.api=Q;this.X=this.Nj("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Nj("ytp-fine-scrubbing-dismiss");this.F3=this.Nj("ytp-fine-scrubbing-draggable");this.playButton=this.Nj("ytp-fine-scrubbing-play");this.thumbnails=[];this.U=[];this.X3=this.B=0;this.LS=void 0;
this.uj=NaN;this.g7=this.T=this.D=this.S=0;this.N=[];this.interval=this.frameCount=0;this.G=160;this.scale=1;this.eZ=0;this.isEnabled=this.fS=!1;qKl(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Cq(W,this.dismissButton));this.addOnDisposeCallback(g.Cq(W,this.playButton));this.KS=new g.ZA(this.F3,!0);this.KS.subscribe("dragstart",this.AT,this);this.KS.subscribe("dragmove",this.P7,this);this.KS.subscribe("dragend",this.jq,this);this.W(Q,"SEEK_COMPLETE",this.E9);Q.j("web_fix_fine_scrubbing_false_play")&&
this.W(Q,"rootnodemousedown",function(D){x.pS=D});
this.X.addEventListener("keydown",function(){});
g.y(this,this.KS);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.X,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
qKl=function(Q,W){var x=g.JI(W),D=g.nD("Seek to $PROGRESS",{PROGRESS:g.JI(W,!0)});Q.update({ariamin:0,ariamax:Math.floor(Q.api.getDuration()),arianow:Math.floor(W),arianowtext:D,seekTime:x})};
$i2=function(Q){Q.uj=NaN;Q.T=0;Q.S=Q.D};
NPQ=function(Q){var W=Q.api.Vv();if(W){var x=90*Q.scale,D=$S(W,160*Q.scale);if(W=W.levels[D]){Q.G=W.width;if(!Q.N.length){D=[];for(var K=If(W,W.bR()),l=W.columns*W.rows,M=W.frameCount,w=0;w<=K;w++)for(var S=M<l?Math.ceil(M/W.columns):W.rows,b=0;b<W.rows;b++){var z=M<W.columns?M:W.columns,k={url:W.cV(w),column:0,columns:z,row:b,rows:S,ri:W.width*z,Xo:W.height*S};D.push(k);M-=z;if(M<=1)break}Q.N=D;Q.frameCount=W.VQ();Q.interval=W.B/1E3||Q.api.getDuration()/Q.frameCount}for(;Q.thumbnails.length>Q.N.length;)D=
void 0,(D=Q.thumbnails.pop())==null||D.dispose();for(;Q.thumbnails.length<Q.N.length;)D=new Ip1,Q.thumbnails.push(D),D.Qj(Q.X),g.y(Q,D);for(D=0;D<Q.N.length;D++)K=Q.thumbnails[D].element,l=Q.N[D],M=Q.G*Q.scale,w=l.Xo/l.rows,S=x/w,K.style.background="url("+l.url+") 0 "+-l.row*l.Xo/l.rows*S+"px/"+M*W.columns+"px "+w*l.rows*S+"px",K.style.width=M*l.columns+"px",K.style.height=x+"px";mo(Q,Q.api.getCurrentTime());for(x=Q.api.getVideoData().SU;Q.U.length>x.length;)D=void 0,(D=Q.U.pop())==null||D.dispose();
for(;Q.U.length<x.length;)D=new mi5,Q.U.push(new mi5),g.y(Q,D);for(D=0;D<x.length;D++)K=x[D],Q.U[D].update({chapterTitle:K.title}),K=Math.round(K.startTime/W.B),l=Math.floor(K/W.rows),g.SZ(Q.U[D].element,"transform","translateX("+K%W.rows*Q.G*Q.scale+"px)"),l<Q.thumbnails.length&&Q.thumbnails[l]&&Q.U[D].Qj(Q.thumbnails[l].element);Q.fS=!0}}};
mo=function(Q,W){Q.pS&&(Q.pS.XN=!0);Q.update({seekTime:g.JI(W)});var x=Q.G*Q.scale;W=W<Q.interval/2?-W*x/Q.interval*2+Q.B/2:-W*x/Q.interval-x/2+Q.B/2;W=g.wS(W,c11(Q),Q.B/2);Q.S=W;Q.D=Q.S;g.SZ(Q.F3,"transform","translateX("+(Q.S-Q.B/2)+"px)");g.SZ(Q.F3,"padding","0px "+Q.B/2+"px");g.SZ(Q.X,"position","relative")};
gf5=function(Q,W){var x=Q.G*Q.scale;W-=Q.B/2;return W>-x?-W/x*Q.interval*.5:-(W+x/2)/x*Q.interval};
c11=function(Q){return-((Q.X.offsetWidth||(Q.frameCount-1)*Q.G*Q.scale)-Q.B/2)};
Ip1=function(){g.L.call(this,{K:"div",Y:"ytp-fine-scrubbing-thumbnail"})};
mi5=function(){g.L.call(this,{K:"div",Y:"ytp-fine-scrubbing-chapter-title",V:[{K:"div",Y:"ytp-fine-scrubbing-chapter-title-content",m3:"{{chapterTitle}}"}]})};
y1D=function(Q){g.L.call(this,{K:"div",Y:"ytp-heat-map-chapter",V:[{K:"svg",Y:"ytp-heat-map-svg",Z:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{K:"defs",V:[{K:"clipPath",Z:{id:"{{id}}"},V:[{K:"path",Y:"ytp-heat-map-path",Z:{d:"",fill:"white"}}]},{K:"linearGradient",Z:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},V:[{K:"stop",Z:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{K:"stop",Z:{offset:"100%",
"stop-color":"white","stop-opacity":"0"}}]}]},{K:"rect",Y:"ytp-heat-map-graph",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",Y:"ytp-heat-map-hover",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",Y:"ytp-heat-map-play",Z:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{K:"path",Y:"ytp-modern-heat-map",Z:{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=Q;this.S=this.Nj("ytp-heat-map-svg");this.X=this.Nj("ytp-heat-map-path");this.N=this.Nj("ytp-heat-map-graph");this.G=this.Nj("ytp-heat-map-play");this.B=this.Nj("ytp-heat-map-hover");this.D=this.Nj("ytp-modern-heat-map");this.ET=!1;this.U=60;Q=""+g.Ol(this);this.update({id:Q});Q="url(#"+Q+")";this.N.setAttribute("clip-path",Q);this.G.setAttribute("clip-path",Q);this.B.setAttribute("clip-path",
Q)};
e22=function(Q,W){W>0&&(Q.U=W,Q.S.style.height=Q.U+"px")};
NR=function(){g.L.call(this,{K:"div",Y:"ytp-chapter-hover-container",V:[{K:"div",Y:"ytp-progress-bar-padding"},{K:"div",Y:"ytp-progress-list",V:[{K:"div",lj:["ytp-play-progress","ytp-swatch-background-color"]},{K:"div",Y:"ytp-progress-linear-live-buffer"},{K:"div",Y:"ytp-load-progress"},{K:"div",Y:"ytp-hover-progress"},{K:"div",Y:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.U=this.Nj("ytp-progress-list");this.X=this.Nj("ytp-progress-linear-live-buffer");
this.N=this.Nj("ytp-ad-progress-list");this.G=this.Nj("ytp-load-progress");this.S=this.Nj("ytp-play-progress");this.D=this.Nj("ytp-hover-progress");this.B=this.Nj("ytp-chapter-hover-container")};
cN=function(Q,W){g.SZ(Q.B,"width",W)};
fpv=function(Q,W){g.SZ(Q.B,"margin-right",W+"px")};
ZoD=function(){this.U=this.position=this.D=this.B=this.N=this.width=NaN};
Ltl=function(){g.L.call(this,{K:"div",Y:"ytp-timed-marker"});this.B=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.yL=function(Q,W){g.ze.call(this,{K:"div",Y:"ytp-progress-bar-container",Z:{"aria-disabled":"true"},V:[{K:"div",lj:["ytp-heat-map-container"],V:[{K:"div",Y:"ytp-heat-map-edu"}]},{K:"div",lj:["ytp-progress-bar"],Z:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{K:"div",Y:"ytp-chapters-container"},{K:"div",Y:"ytp-timed-markers-container"},{K:"div",Y:"ytp-clip-start-exclude"},
{K:"div",Y:"ytp-clip-end-exclude"},{K:"div",Y:"ytp-scrubber-container",V:[{K:"div",lj:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{K:"div",Y:"ytp-scrubber-pull-indicator"},{K:"img",lj:["ytp-decorated-scrubber-button"]}]}]}]},{K:"div",lj:["ytp-fine-scrubbing-container"],V:[{K:"div",Y:"ytp-fine-scrubbing-edu"}]},{K:"div",Y:"ytp-bound-time-left",m3:"{{boundTimeLeft}}"},{K:"div",Y:"ytp-bound-time-right",m3:"{{boundTimeRight}}"},{K:"div",Y:"ytp-clip-start",Z:{title:"{{clipstarttitle}}"},m3:"{{clipstarticon}}"},
{K:"div",Y:"ytp-clip-end",Z:{title:"{{clipendtitle}}"},m3:"{{clipendicon}}"}]});this.api=Q;this.J2=!1;this.vZ=this.xN=this.s3=this.X=this.eK=0;this.IU=null;this.b6=!1;this.X3={};this.Gn={};this.clipEnd=Infinity;this.fn=this.Nj("ytp-clip-end");this.Cn=new g.ZA(this.fn,!0);this.WN=this.Nj("ytp-clip-end-exclude");this.Sk=this.Nj("ytp-clip-start-exclude");this.clipStart=0;this.Y6=this.Nj("ytp-clip-start");this.yA=new g.ZA(this.Y6,!0);this.T=this.SZ=0;this.progressBar=this.Nj("ytp-progress-bar");this.Vj=
{};this.g7={};this.O3=this.Nj("ytp-chapters-container");this.YY=this.Nj("ytp-timed-markers-container");this.B=[];this.G=[];this.kX={};this.gH=null;this.F3=-1;this.tf=this.KS=0;this.RQ=this.S=null;this.uG=this.Nj("ytp-scrubber-button");this.cD=this.Nj("ytp-decorated-scrubber-button");this.SU=this.Nj("ytp-scrubber-container");this.Pt=new g.k6;this.jE=new ZoD;this.D=new UH(0,0);this.k6=null;this.uj=this.QN=!1;this.ra=null;this.pS=this.Nj("ytp-heat-map-container");this.UT=this.Nj("ytp-heat-map-edu");
this.N=[];this.heatMarkersDecorations=[];this.I5=this.Nj("ytp-fine-scrubbing-container");this.gE=this.Nj("ytp-fine-scrubbing-edu");this.U=void 0;this.fS=this.hn=this.LS=!1;this.tooltip=W.Vp();this.addOnDisposeCallback(g.Cq(this.tooltip,this.fn));g.y(this,this.Cn);this.Cn.subscribe("hoverstart",this.dW,this);this.Cn.subscribe("hoverend",this.lL,this);this.W(this.fn,"click",this.Wa);this.addOnDisposeCallback(g.Cq(this.tooltip,this.Y6));g.y(this,this.yA);this.yA.subscribe("hoverstart",this.dW,this);
this.yA.subscribe("hoverend",this.lL,this);this.W(this.Y6,"click",this.Wa);r14(this);this.W(Q,"resize",this.OV);this.W(Q,"presentingplayerstatechange",this.k1f);this.W(Q,"videodatachange",this.Lu);this.W(Q,"videoplayerreset",this.K3Z);this.W(Q,"cuerangesadded",this.nNf);this.W(Q,"cuerangesremoved",this.kyZ);this.W(Q,"onLoopRangeChange",this.Dj);this.W(Q,"innertubeCommand",this.onClickCommand);this.W(Q,g.Ru("timedMarkerCueRange"),this.FUj);this.W(Q,"updatemarkervisibility",this.Gj);this.W(Q,"serverstitchedvideochange",
this.bA5);this.updateVideoData(Q.getVideoData(),!0);this.Dj(Q.getLoopRange());g_(this)&&!this.U&&(this.U=new BPa(this.api,this.tooltip),Q=g.Yg(this.element).x||0,this.U.OV(Q,this.X),this.U.Qj(this.I5),g.y(this,this.U),this.W(this.U.dismissButton,"click",this.fq),this.W(this.U.playButton,"click",this.eX),this.W(this.U.element,"dblclick",this.eX));this.api.createClientVe(this.pS,this,139609,!0);this.api.createClientVe(this.UT,this,140127,!0);this.api.createClientVe(this.gE,this,151179,!0);this.api.createClientVe(this.progressBar,
this,38856,!0)};
r14=function(Q){if(Q.B.length===0){var W=new NR;Q.B.push(W);g.y(Q,W);W.Qj(Q.O3,0)}for(;Q.B.length>1;)Q.B.pop().dispose();cN(Q.B[0],"100%");Q.B[0].startTime=0;Q.B[0].title=""};
TPn=function(Q){var W=W===void 0?NaN:W;var x=new y1D(Q.api);Q.N.push(x);g.y(Q,x);x.Qj(Q.pS);W>=0&&(x.element.style.width=W+"px")};
Oo1=function(Q){for(;Q.G.length;)Q.G.pop().dispose()};
FtD=function(Q){var W,x,D,K,l;return(l=g.e((K=g.e((W=Q.getWatchNextResponse())==null?void 0:(x=W.playerOverlays)==null?void 0:(D=x.playerOverlayRenderer)==null?void 0:D.decoratedPlayerBarRenderer,hQ))==null?void 0:K.playerBar,Efl))==null?void 0:l.chapters};
tIs=function(Q){for(var W=Q.B,x=[],D=0;D<W.length;D++)if(!isNaN(W[D].startTime)){var K=W[D].startTime;K=new g.jz(K,D===W.length-1?Infinity:W[D+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+K});x.push(K)}Q.api.jQ("chapterCueRange");Q.api.HV(x)};
MF2=function(Q,W){var x,D=(x=Q.Vj[W])==null?void 0:x.chapters;D&&(QRO(Q,D),Q.api.getVideoData().SU=Q.B,tIs(Q));var K;if((x=(K=Q.Vj[W])==null?void 0:K.markers)&&W!=="HEATSEEKER"){Oo1(Q);K=g.V(x);for(x=K.next();!x.done;x=K.next())if(D=x.value,x=new Ltl,D=g.e(D,g.WEz)){var l=void 0;x.title=((l=D.title)==null?void 0:l.simpleText)||"";l=void 0;x.timeRangeStartMillis=(l=D.timeRangeStartMillis)!=null?l:NaN;var M=l=void 0;x.onActiveCommand=(M=(l=D)==null?void 0:l.onActiveCommand)!=null?M:void 0;xC2(Q,x)}DCD(Q,
Q.G);K=Q.G;x=Q.kX;D=[];for(l=0;l<K.length;l++)!isNaN(K[l].timeRangeStartMillis)&&K[l].onActiveCommand&&(M=IBz(K[l].timeRangeStartMillis,l===K.length-1?Infinity:K[l+1].timeRangeStartMillis),D.push(M),x[M.id]=K[l].onActiveCommand);Q.api.HV(D)}var w;if(W=g.e((w=Q.Vj[W])==null?void 0:w.heatmap,KED)){w=W.heatMarkers||[];var S;K=(S=W.minHeightDp)!=null?S:0;var b;S=(b=W.maxHeightDp)!=null?b:60;b=Q.B.length;x=null;for(D=0;D<b;D++){M=Q.B[D].startTime;var z=D===b-1?Infinity:Q.B[D+1].startTime;D===Q.N.length&&
TPn(Q);l=[];x&&l.push(x);for(var k=g.V(w),X=k.next();!X.done;X=k.next()){X=X.value;var u=void 0,Y=void 0,v=(Y=(u=g.e(X,lZv))==null?void 0:u.timeRangeStartMillis)!=null?Y:-1;v>=M&&v<=z&&l.push(X)}S>0&&(Q.pS.style.height=S+"px");M=Q.N[D];z=l;X=K;Y=S;v=D===0;v=v===void 0?!1:v;e22(M,Y);k=z;u=M.U;v=v===void 0?!1:v;var J=1E3/k.length,h=[];h.push({x:0,y:100});for(var G=0;G<k.length;G++){var H=void 0,I=((H=g.e(k[G],lZv))==null?void 0:H.heatMarkerIntensityScoreNormalized)||0;H=(G+.5)*J;I=100-g.wS(I*100,X/
u*100,Y/u*100);G!==0||v||h.push({x:0,y:I});h.push({x:H,y:I});G===k.length-1&&h.push({x:1E3,y:I})}h.push({x:1E3,y:100});k=h;z=z.length===0?"":wp5(k);M.api.j("delhi_modern_web_player")?M.D.setAttribute("d",z):M.X.setAttribute("d",z);M.ET=z!=="";g.S$(M.api.getRootNode(),"ytp-heat-map",M.ET);g.S$(M.api.getRootNode(),"ytp-heat-map-played_bar",M.api.j("web_player_heat_map_played_bar")&&z!=="");M.api.j("delhi_modern_web_player")&&(M.D.style.display="block",M.N.style.display="none",M.B.style.display="none");
l.length>0&&(x=l[l.length-1])}g.e3(Q);w=[];W=g.V(W.heatMarkersDecorations||[]);for(K=W.next();!K.done;K=W.next())if(K=g.e(K.value,jR5))S=K.label,D=x=b=void 0,w.push({visibleTimeRangeStartMillis:(b=K.visibleTimeRangeStartMillis)!=null?b:-1,visibleTimeRangeEndMillis:(x=K.visibleTimeRangeEndMillis)!=null?x:-1,decorationTimeMillis:(D=K.decorationTimeMillis)!=null?D:NaN,label:S?g.od(S):""});Q.heatMarkersDecorations=w}};
xC2=function(Q,W){Q.G.push(W);g.y(Q,W);W.Qj(Q.YY,Q.YY.children.length)};
DCD=function(Q,W){W=g.V(W);for(var x=W.next();!x.done;x=W.next()){x=x.value;var D=fc(Q,x.timeRangeStartMillis/(Q.D.B*1E3),Zo(Q));g.SZ(x.element,"transform","translateX("+D+"px) scaleX(0.6)")}};
QRO=function(Q,W){var x=0,D=!1;W=g.V(W);for(var K=W.next();!K.done;K=W.next()){K=K.value;if(g.e(K,RAa)){K=g.e(K,RAa);var l={startTime:NaN,title:null,onActiveCommand:void 0},M=K.title;l.title=M?g.od(M):"";M=K.timeRangeStartMillis;M!=null&&(l.startTime=M);l.onActiveCommand=K.onActiveCommand;K=l;x===0&&K.startTime!==0&&(Q.B[x].startTime=0,Q.B[x].title="",Q.B[x].onActiveCommand=K.onActiveCommand,x++,D=!0);Q.B.length<=x&&(l=new NR,Q.B.push(l),g.y(Q,l),l.Qj(Q.O3,Q.O3.children.length));Q.B[x].startTime=
K.startTime;Q.B[x].title=K.title?K.title:"";Q.B[x].onActiveCommand=K.onActiveCommand;Q.B[x].index=D?x-1:x}x++}for(;x<Q.B.length;)Q.B.pop().dispose();g.e3(Q);Lc(Q)};
g.e3=function(Q){Q.KS=Q.B.length-1;Q.tf=0;wAz(Q,!0)&&wAz(Q,!1);for(var W=0,x=0;x<Q.B.length;x++)if(Q.B[x].width===0){if(x===Q.B.length-1)for(var D=Q.B.length-1;D>=0;D--)if(Q.B[D].width>0){fpv(Q.B[D],0);var K=Math.floor(Q.B[D].width);Q.B[D].width=K;cN(Q.B[D],K+"px");break}Q.B[x].width=0;cN(Q.B[x],"0")}else x===Q.B.length-1?(D=Math.floor(Q.B[x].width+W),Q.B[x].width=D,cN(Q.B[x],D+"px")):(W=Q.B[x].width+W,D=Math.round(W),W-=D,Q.B[x].width=D,cN(Q.B[x],D+"px"));x=0;if(Q.N.length===Q.B.length)for(W=0;W<
Q.N.length;W++)D=Q.B[W].width,Q.N[W].element.style.width=D+"px",Q.N[W].element.style.left=x+"px",x+=D+r_(Q);Q.api.j("delhi_modern_web_player")&&(Q.B.length===1?Q.B[0].U.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(Q.B[0].U.classList.remove("ytp-progress-bar-end"),Q.B[0].U.classList.add("ytp-progress-bar-start"),Q.B[Q.B.length-1].U.classList.add("ytp-progress-bar-end")))};
wAz=function(Q,W){var x=0,D=!1,K=Q.B.length,l=Q.D.B*1E3;l===0&&(l=Q.api.getProgressState().seekableEnd*1E3);if(l>0&&Q.X>0){for(var M=Q.X-r_(Q)*Q.KS,w=Q.tf===0?3:M*Q.tf,S=g.V(Q.B),b=S.next();!b.done;b=S.next())b.value.width=0;for(;x<K;){S=l-Q.B[x].startTime;x<K-1&&(S=Q.B[x+1].startTime-Q.B[x].startTime,fpv(Q.B[x],r_(Q)));g.S$(Q.B[x].B,"ytp-exp-chapter-hover-container",Q.B.length>1);b=(l===0?0:S/l*M)+Q.B[x].width;if(b>w)Q.B[x].width=b;else{Q.B[x].width=0;var z=Q,k=x,X=z.B[k-1];X!==void 0&&X.width>0?
X.width+=b:k<z.B.length-1&&(z.B[k+1].width+=b);fpv(z.B[k],0);W&&(Q.KS--,S/l>Q.tf&&(Q.tf=S/l),D=!0)}x++}}return D};
Lc=function(Q){if(Q.X){var W=Q.api.getProgressState(),x=Q.api.getVideoData();if(!(x&&x.enableServerStitchedDai&&x.enablePreroll)||isFinite(W.current)){var D;if(((D=Q.api.getVideoData())==null?0:Wd(D))&&W.airingStart&&W.airingEnd)var K=T0(Q,W.airingStart,W.airingEnd);else if(Q.api.getPresentingPlayerType()===2&&Q.api.C().j("show_preskip_progress_bar_for_skippable_ads")){var l,M,w;K=(x=(K=Q.api.getVideoData())==null?void 0:(l=K.getPlayerResponse())==null?void 0:(M=l.playerConfig)==null?void 0:(w=M.webPlayerConfig)==
null?void 0:w.skippableAdProgressBarDuration)?T0(Q,W.seekableStart,x/1E3):T0(Q,W.seekableStart,W.seekableEnd)}else K=T0(Q,W.seekableStart,W.seekableEnd);l=qr(K,W.loaded,0);W=qr(K,W.current,0);M=Q.D.U!==K.U||Q.D.B!==K.B;Q.D=K;Oy(Q,W,l);M&&SA5(Q);bE5(Q)}}};
T0=function(Q,W,x){return sRn(Q)?new UH(Math.max(W,Q.k6.startTimeMs/1E3),Math.min(x,Q.k6.endTimeMs/1E3)):new UH(W,x)};
zAQ=function(Q,W){var x;if(((x=Q.k6)==null?void 0:x.type)==="repeatChapter"||(W==null?void 0:W.type)==="repeatChapter")W&&(W=Q.B[z0(Q.B,W.startTimeMs)],g.S$(W.B,"ytp-repeating-chapter",!1)),Q.k6&&(W=Q.B[z0(Q.B,Q.k6.startTimeMs)],g.S$(W.B,"ytp-repeating-chapter",!0)),Q.B.forEach(function(D){g.S$(D.B,"ytp-exp-chapter-hover-container",!Q.k6)})};
FO=function(Q,W){var x=Q.D;x=x.U+W.U*x.getLength();if(Q.B.length>1){x=Ey(Q,W.D,!0);for(var D=0,K=0;K<x;K++)Q.B[K].width>0&&(D+=Q.B[K].width,D+=r_(Q));x=(Q.B[x].startTime+(W.D-D)/Q.B[x].width*((x===Q.B.length-1?Q.D.B*1E3:Q.B[x+1].startTime)-Q.B[x].startTime))/1E3||0}return x};
tw=function(Q,W,x,D,K){W=W<0?0:Math.floor(Math.min(W,Q.api.getDuration())*1E3);x=x<0?0:Math.floor(Math.min(x,Q.api.getDuration())*1E3);Q=Q.progressBar.visualElement;D={seekData:{startMediaTimeMs:W,endMediaTimeMs:x,seekSource:D}};(W=g.ph())&&g.tx(tb)(void 0,W,Q,K,D,void 0)};
kX5=function(Q,W,x){if(x>=Q.B.length)return!1;var D=Q.X-r_(Q)*Q.KS;return Math.abs(W-Q.B[x].startTime/1E3)/Q.D.B*D<4};
SA5=function(Q){Q.uG.style.removeProperty("height");for(var W=g.V(Object.keys(Q.X3)),x=W.next();!x.done;x=W.next())XAO(Q,x.value);Qi(Q);Oy(Q,Q.T,Q.SZ)};
Zo=function(Q){var W=Q.Pt.x;W=g.wS(W,0,Q.X);Q.jE.update(W,Q.X);return Q.jE};
x3=function(Q){return(Q.uj?135:90)-Wy(Q)};
Wy=function(Q){var W=48,x=Q.api.C();Q.uj?W=54:g.d5(x)&&!x.U?W=40:Q.api.j("delhi_modern_web_player")&&(W=68);return W};
Oy=function(Q,W,x){Q.T=W;Q.SZ=x;var D=Zo(Q),K=Q.D.B;var l=Q.D;l=l.U+Q.T*l.getLength();var M=g.nD("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.JI(l,!0),DURATION:g.JI(K,!0)}),w=z0(Q.B,l*1E3);w=Q.B[w].title;Q.update({ariamin:Math.floor(Q.D.U),ariamax:Math.floor(K),arianow:Math.floor(l),arianowtext:w?w+" "+M:M});K=Q.clipStart;l=Q.clipEnd;Q.k6&&Q.api.getPresentingPlayerType()!==2&&(K=Q.k6.startTimeMs/1E3,l=Q.k6.endTimeMs/1E3);K=qr(Q.D,K,0);w=qr(Q.D,l,1);M=Q.api.getVideoData();l=g.wS(W,K,w);x=(M==null?
0:g.tf(M))?1:g.wS(x,K,w);W=fc(Q,W,D);g.SZ(Q.SU,"transform","translateX("+W+"px)");Q.api.j("delhi_modern_web_player")&&oTF(Q,W);D$(Q,D,K,l,"PLAY_PROGRESS");(M==null?0:Wd(M))?(W=Q.api.getProgressState().seekableEnd)&&D$(Q,D,l,qr(Q.D,W),"LIVE_BUFFER"):D$(Q,D,K,x,"LOAD_PROGRESS");if(Q.api.j("web_player_heat_map_played_bar")){var S;(S=Q.N[0])!=null&&S.G.setAttribute("width",(l*100).toFixed(2)+"%")}};
oTF=function(Q,W){if(Q.api.getPresentingPlayerType()!==1)Q.O3.style.removeProperty("clip-path");else{W||(W=fc(Q,Q.T,Zo(Q)));var x=Q.b6?36:28,D=W-x/2;W+=x/2;Q.O3.style.clipPath='path("M 0 0 L 0 8 L '+(D+" 8 C "+(D+6+" 8 "+(D+6)+" 0 "+D+" 0 L 0 0 M ")+(W+" 0 L ")+(Q.X+" 0 L ")+(Q.X+" 8 L ")+(W+" 8 C ")+(W-6+" 8 "+(W-6)+" 0 "+W+' 0")'))}};
D$=function(Q,W,x,D,K){var l=Q.B.length,M=W.B-Q.KS*r_(Q),w=x*M;x=Ey(Q,w);var S=D*M;M=Ey(Q,S);K==="HOVER_PROGRESS"&&(M=Ey(Q,W.B*D,!0),S=W.B*D-uEl(Q,W.B*D)*r_(Q));D=Math.max(w-YA5(Q,x),0);for(w=x;w<l;w++)Q.B[w].yh(K).style.left=x===w?D+"px":"0";W=fc(Q,Q.T,W);for(l=x;l<M;l++){w=Q.B[l].yh(K);var b=Q.B[l].width,z=l===x?b-D:b;K7(Q,w,z,b);nTl(Q,w,z,b,l,W,K)}l=Q.B[M].width;S=g.wS(S-YA5(Q,M),0,l);x===M&&(S-=D);D=Q.B[M].yh(K);K7(Q,D,S,l);nTl(Q,D,S,l,M,W,K);S=Q.B.length;for(M+=1;M<S;M++)VFa(Q,M,K);for(M=0;M<
x;M++)VFa(Q,M,K)};
YA5=function(Q,W){if(W>=Q.B.length)return Q.X;for(var x=0,D=0;D<W;)x+=Q.B[D].width,D++;return x};
VFa=function(Q,W,x){x=Q.B[W].yh(x);K7(Q,x,0,Q.B[W].width)};
nTl=function(Q,W,x,D,K,l,M){M==="PLAY_PROGRESS"&&(x=!D||Q.api.C().U?1:x/D,Q.Sk.clientWidth>0||Q.WN.clientWidth>0?(l=W.clientWidth/x,Q=-1*Q.Sk.clientWidth/x):(l/=x,Q=-1*Q.B[K].element.offsetLeft/x),g.SZ(W,"background-size",l+"px"),g.SZ(W,"background-position-x",Q+"px"))};
K7=function(Q,W,x,D,K){K||Q.api.C().U?W.style.width=x+"px":g.SZ(W,"transform","scalex("+(D?x/D:0)+")")};
Ey=function(Q,W,x){var D=0;(x===void 0?0:x)&&(W-=uEl(Q,W)*r_(Q));x=g.V(Q.B);for(var K=x.next();!K.done;K=x.next()){K=K.value;if(W>K.width)W-=K.width;else break;D++}return D===Q.B.length?D-1:D};
fc=function(Q,W,x){var D=W*Q.D.B*1E3;for(var K=-1,l=g.V(Q.B),M=l.next();!M.done;M=l.next())M=M.value,D>M.startTime&&M.width>0&&K++;D=K<0?0:K;K=x.B-r_(Q)*Q.KS;return W*K+r_(Q)*D+x.N};
uEl=function(Q,W){for(var x=Q.B.length,D=0,K=g.V(Q.B),l=K.next();!l.done;l=K.next())if(l=l.value,l.width!==0)if(W>l.width)W-=l.width,W-=r_(Q),D++;else break;return D===x?x-1:D};
g.PhF=function(Q,W,x,D){var K=Q.X!==x,l=Q.uj!==D;Q.eK=W;Q.X=x;Q.uj=D;g_(Q)&&(W=Q.U)!=null&&(W.scale=D?1.5:1);SA5(Q);Q.B.length===1&&(Q.B[0].width=x||0);K&&g.e3(Q);Q.U&&l&&g_(Q)&&(Q.U.isEnabled&&(x=Q.uj?135:90,D=x-Wy(Q),Q.I5.style.height=x+"px",g.SZ(Q.pS,"transform","translateY("+-D+"px)"),g.SZ(Q.progressBar,"transform","translateY("+-D+"px)")),NPQ(Q.U))};
Qi=function(Q){var W=!!Q.k6&&Q.api.getPresentingPlayerType()!==2,x=Q.clipStart,D=Q.clipEnd,K=!0,l=!0;W&&Q.k6?(x=Q.k6.startTimeMs/1E3,D=Q.k6.endTimeMs/1E3):(K=x>Q.D.U,l=Q.D.B>0&&D<Q.D.B);var M,w;if(((M=Q.k6)==null?0:M.postId)||((w=Q.k6)==null?void 0:w.type)==="repeatChapter")l=K=!1;g.S$(Q.element,"ytp-loop-range-enabled",W);g.S$(Q.element,"ytp-clip-start-enabled",K);g.S$(Q.element,"ytp-clip-end-enabled",l);W=K?qr(Q.D,x,0):0;D=l?qr(Q.D,D,1):1;Q.Y6.style.left=Math.round(W*1E3)/10+"%";Q.fn.style.left=
Math.round(D*1E3)/10+"%";Q.Sk.style.width=Math.round(W*1E3)/10+"%";Q.WN.style.left=Math.round(D*1E3)/10+"%";Q.WN.style.width=Math.round((1-D)*1E3)/10+"%"};
bE5=function(Q){var W;if((W=Q.api.getVideoData())==null||!Wd(W)){W=Zo(Q);D$(Q,W,Q.T,Math.max(W.U,Q.T),"HOVER_PROGRESS");for(var x=Ey(Q,W.B*Q.T,!0),D=Ey(Q,W.D,!0),K=x;K<=D;K++)g.S$(Q.B[K].D,"ytp-hover-progress-light",W.U>Q.T);g.S$(Q.uG,"ytp-scrubber-button-hover",x===D&&Q.B.length>1);if(Q.api.j("web_player_heat_map_played_bar")){var l;(l=Q.N[0])!=null&&l.B.setAttribute("width",(W.U*100).toFixed(2)+"%")}}};
XAO=function(Q,W){var x=Q.X3[W];W=Q.Gn[W];var D=Zo(Q),K=qr(Q.D,x.start/1E3,0),l=o_D(x,Q.uj)/D.width;var M=qr(Q.D,x.end/1E3,1);l!==Number.POSITIVE_INFINITY&&(K=g.wS(K,0,M-l));M=Math.min(M,K+l);x.color&&(W.style.background=x.color);x=K;W.style.left=Math.max(x*D.B+D.N,0)+"px";K7(Q,W,g.wS((M-x)*D.B+D.N,0,D.width),D.width,!0)};
vT5=function(Q,W){var x=W.getId();Q.X3[x]===W&&(g.lo(Q.Gn[x]),delete Q.X3[x],delete Q.Gn[x])};
g_=function(Q){var W=g.ET(Q.api.C())&&(Q.api.j("web_shorts_pip")||Q.api.j("web_watch_pip")),x;return!((x=Q.api.getVideoData())==null?0:x.isLivePlayback)&&!Q.api.isMinimized()&&!Q.api.isInline()&&(!Q.api.J4()||!W)};
lD=function(Q){Q.U&&(Q.U.disable(),Q.s3=0,Q.pS.style.removeProperty("transform"),Q.progressBar.style.removeProperty("transform"),Q.I5.style.removeProperty("height"),Q.element.parentElement&&Q.element.parentElement.style.removeProperty("height"))};
Ch5=function(Q,W){var x=W/x3(Q)*Wy(Q);g.SZ(Q.progressBar,"transform","translateY("+-W+"px)");g.SZ(Q.pS,"transform","translateY("+-W+"px)");g.SZ(Q.I5,"transform","translateY("+x+"px)");Q.I5.style.height=W+x+"px";Q.element.parentElement&&(Q.element.parentElement.style.height=Wy(Q)-x+"px")};
J64=function(Q,W){W?Q.S||(Q.element.removeAttribute("aria-disabled"),Q.S=new g.ZA(Q.progressBar,!0),Q.S.subscribe("hovermove",Q.Drt,Q),Q.S.subscribe("hoverend",Q.Fm3,Q),Q.S.subscribe("dragstart",Q.yr3,Q),Q.S.subscribe("dragmove",Q.Kmp,Q),Q.S.subscribe("dragend",Q.NPf,Q),Q.api&&Q.api.j("delhi_modern_web_player")&&(Q.RQ=new g.ZA(Q.progressBar,!0),Q.RQ.subscribe("hoverstart",function(){Q.b6=!0;oTF(Q)},Q),Q.RQ.subscribe("hoverend",function(){Q.b6=!1;
oTF(Q)},Q)),Q.ra=Q.listen("keydown",Q.Gk)):Q.S&&(Q.element.setAttribute("aria-disabled","true"),Q.mJ(Q.ra),Q.S.cancel(),Q.S.dispose(),Q.S=null)};
r_=function(Q){return Q.api.j("delhi_modern_web_player")?4:Q.uj?3:2};
sRn=function(Q){var W;return!((W=Q.k6)==null||!W.postId)&&Q.api.getPresentingPlayerType()!==2};
jA=function(Q,W){g.L.call(this,{K:"button",lj:["ytp-remote-button","ytp-button"],Z:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},m3:"{{icon}}"});this.J=Q;this.F0=W;this.B=null;this.W(Q,"onMdxReceiversChange",this.Yf);this.W(Q,"presentingplayerstatechange",this.Yf);this.W(Q,"appresize",this.Yf);Q.createClientVe(this.element,this,139118);this.Yf();this.listen("click",this.U,this);Jo(Q,this.element,this)};
Mv=function(Q,W){g.L.call(this,{K:"button",lj:["ytp-button","ytp-settings-button"],Z:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":wn(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},V:[g.Ge()]});this.J=Q;this.F0=W;this.U=!0;this.listen("click",this.D);this.W(Q,"onPlaybackQualityChange",this.updateBadge);this.W(Q,"videodatachange",this.updateBadge);this.W(Q,"webglsettingschanged",this.updateBadge);this.W(Q,"appresize",this.B);Jo(Q,this.element,this);this.J.createClientVe(this.element,
this,28663);this.updateBadge();this.B(Q.hf().getPlayerSize())};
pAs=function(Q,W){Q.U=!!W;Q.B(Q.J.hf().getPlayerSize())};
R7=function(Q,W){ln.call(this,"Annotations",g.bn.uJ);this.J=Q;this.F0=W;this.B=!1;Q.j("web_settings_menu_icons")&&this.setIcon({K:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{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.W(Q,"videodatachange",this.Yf);this.W(Q,"onApiChange",this.Yf);this.subscribe("select",this.onSelect,this);this.Yf()};
wH=function(Q,W){g.yh.call(this,"Audio track",g.bn.AUDIO,Q,W);this.J=Q;this.tracks={};g.j$(this.element,"ytp-audio-menu-item");this.countLabel=new g.L({K:"div",V:[{K:"span",m3:"Audio track"},{K:"span",Y:"ytp-menuitem-label-count",m3:"{{content}}"}]});Q.j("web_settings_menu_icons")&&this.setIcon({K:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{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.y(this,this.countLabel);g.Lq(this,this.countLabel);this.W(Q,"videodatachange",this.Yf);this.W(Q,"onPlaybackAudioChange",this.Yf);this.Yf()};
SA=function(Q,W){ln.call(this,"Autoplay",g.bn.DD);this.J=Q;this.F0=W;this.B=!1;this.D=[];this.W(Q,"presentingplayerstatechange",this.U);this.subscribe("select",this.onSelect,this);Q.createClientVe(this.element,this,113682);this.U()};
hAz=function(Q,W){g.rZ.call(this,g.T4({"aria-haspopup":"false"}),0,"More options");this.J=Q;this.F0=W;this.W(this.element,"click",this.onClick);this.F0.XE(this)};
aZ2=function(Q,W){var x;g.ET(Q.C())&&(x={K:"div",Y:"ytp-panel-footer-content",V:[{K:"span",m3:"Adjust download quality from your "},{K:"a",Y:"ytp-panel-footer-content-link",m3:"Settings",Z:{href:"/account_downloads"}}]});g.yh.call(this,"Quality",g.bn.Tk,Q,W,void 0,void 0,x);this.J=Q;this.F3={};this.T={};this.N={};this.KS=new Set;this.B=this.X=!1;this.G="unknown";this.uj="";this.pS=new g.rq;g.y(this,this.pS);this.X=this.J.j("web_player_use_new_api_for_quality_pullback");this.B=this.J.j("web_player_enable_premium_hbr_playback_cap");
Q.j("web_settings_menu_icons")&&this.setIcon({K:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{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.j$(this.U.element,"ytp-quality-menu");this.W(Q,"videodatachange",this.QB);this.W(Q,"videoplayerreset",this.QB);this.W(Q,"onPlaybackQualityChange",this.Nh);this.QB();Q.createClientVe(this.element,this,137721)};
dC1=function(Q,W,x){var D=Q.F3[W],K=g.cl[W];return GXn(Q,D?D.qualityLabel:K?K+"p":"Auto",W,x)};
iE1=function(Q,W,x,D,K){var l=(W=Q.B?Q.N[W]:Q.T[W])&&W.quality,M=W&&W.qualityLabel;M=M?M:"Auto";D&&(M="("+M);Q=GXn(Q,M,l||"",K);D&&Q.V.push(")");(D=(D=W&&W.paygatedQualityDetails)&&D.paygatedIndicatorText)&&x&&Q.V.push({K:"div",Y:"ytp-premium-label",m3:D});return Q};
GXn=function(Q,W,x,D){W={K:"span",lj:D,V:[W]};var K;D="ytp-swatch-color";if(Q.X||Q.B)D="ytp-swatch-color-white";x==="highres"?K="8K":x==="hd2880"?K="5K":x==="hd2160"?K="4K":x.indexOf("hd")===0&&x!=="hd720"&&(K="HD");K&&(W.V.push(" "),W.V.push({K:"sup",Y:D,m3:K}));return W};
bD=function(Q,W,x,D,K,l){l=l===void 0?!1:l;var M={K:"div",lj:["ytp-input-slider-section"],V:[{K:"input",Y:"ytp-input-slider",Z:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};K&&M.V.unshift(K);l&&M.lj.push("ytp-vertical-slider");g.L.call(this,M);this.D=Q;this.N=W;this.G=x;this.initialValue=D;this.header=K;this.B=this.Nj("ytp-input-slider");this.U=D?D:Q;this.init();this.W(this.B,"input",this.S);this.W(this.B,"keydown",
this.X)};
HEF=function(Q,W){Q.U=W;Q.updateValue("slidervalue",Q.U);Q.B.valueAsNumber=Q.U;A6F(Q,W)};
A6F=function(Q,W){Q.B.style.setProperty("--yt-slider-shape-gradient-percent",(W-Q.D)/(Q.N-Q.D)*100+"%")};
sD=function(Q){bD.call(this,Q.getAvailablePlaybackRates()[0],Q.getAvailablePlaybackRates()[Q.getAvailablePlaybackRates().length-1],.05,Q.getPlaybackRate(),{K:"div",Y:"ytp-speedslider-indicator-container",V:[{K:"div",Y:"ytp-speedslider-badge"},{K:"p",Y:"ytp-speedslider-text"}]});this.J=Q;this.uj=Tcv(this.pS,this);g.j$(this.B,"ytp-speedslider");this.T=this.Nj("ytp-speedslider-text");this.KS=this.Nj("ytp-speedslider-badge");UCs(this);this.W(this.B,"change",this.F3)};
UCs=function(Q){Q.T.textContent=Q.U+"x";Q.KS.classList.toggle("ytp-speedslider-premium-badge",Q.U>2&&Q.J.j("enable_web_premium_varispeed"))};
zH=function(Q,W,x,D,K,l,M){g.L.call(this,{K:"div",Y:"ytp-slider-section",Z:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{K:"div",Y:"ytp-slider",V:[{K:"div",Y:"ytp-slider-handle"}]}]});this.S=Q;this.T=W;this.U=x;this.D=D;this.uj=K;this.fS=l;this.range=this.D-this.U;this.LS=this.Nj("ytp-slider-section");this.N=this.Nj("ytp-slider");this.pS=this.Nj("ytp-slider-handle");this.G=new g.ZA(this.N,
!0);this.B=M?M:x;g.y(this,this.G);this.G.subscribe("dragmove",this.eq,this);this.W(this.element,"keydown",this.s$);this.W(this.element,"wheel",this.Y8);this.init()};
k3=function(Q){zH.call(this,.05,.05,Q.getAvailablePlaybackRates()[0],Q.getAvailablePlaybackRates()[Q.getAvailablePlaybackRates().length-1],150,20,Q.getPlaybackRate());this.J=Q;this.X=g.Qz("P");this.KS=Tcv(this.F3,this);g.j$(this.N,"ytp-speedslider");g.j$(this.X,"ytp-speedslider-text");Q=this.X;var W=this.N;W.parentNode&&W.parentNode.insertBefore(Q,W.nextSibling);qAs(this);this.W(this.J,"onPlaybackRateChange",this.updateValues)};
qAs=function(Q){Q.X.textContent=Bos(Q,Q.B)+"x"};
Bos=function(Q,W){Q=Number(g.wS(W,Q.U,Q.D).toFixed(2));W=Math.floor((Q+.001)*100%5+2E-15);var x=Q;W!==0&&(x=Q-W*.01);return Number(x.toFixed(2))};
$Cv=function(Q){g.ze.call(this,{K:"div",Y:"ytp-speedslider-component"});Q.j("web_settings_use_input_slider")?this.B=new sD(Q):this.B=new k3(Q);g.y(this,this.B);this.element.appendChild(this.B.element)};
IZh=function(Q){var W=new $Cv(Q);AE.call(this,Q,W,"Custom");g.y(this,W)};
mCz=function(Q,W){var x=new IZh(Q);g.yh.call(this,"Playback speed",g.bn.x0,Q,W,X7(Q)?void 0:"Custom",X7(Q)?void 0:function(){g.B2(W,x)});
var D=this;this.X=!1;g.y(this,x);this.G=new sD(Q);g.y(this,this.G);Q.j("web_settings_menu_icons")&&this.setIcon({K:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{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.J=Q;this.X=!1;this.uj=null;X7(Q)?(this.B=g.nD("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.N=this.J.getPlaybackRate()):this.N=this.B=null;this.T=this.J.getAvailablePlaybackRates();this.W(Q,"presentingplayerstatechange",this.Yf);var K;((K=this.J.getVideoData())==null?0:K.aQ())&&this.W(Q,"serverstitchedvideochange",this.Yf);this.W(this.G.B,"change",function(){D.X=!0;D.Yf()});
this.Yf()};
c65=function(Q,W){var x=No1(W);Q.B&&(Q.X||W===Q.N)?(Q.ND(Q.B),Q.iy(W.toString())):Q.ND(x)};
y65=function(Q){Q.ZV(Q.T.map(No1));Q.B=null;Q.N=null;var W=Q.J.getPlaybackRate();if(!Q.T.includes(W)||X7(Q.J))gT1(Q,W),Q.ND(Q.B)};
gT1=function(Q,W){Q.N=W;Q.B=g.nD("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:W.toString()});W=Q.T.map(No1);W.unshift(Q.B);Q.ZV(W)};
No1=function(Q){return Q.toString()};
X7=function(Q){return Q.j("web_settings_menu_surface_custom_playback")};
eA5=function(Q){return Q.j("web_settings_menu_surface_custom_playback")&&Q.j("web_settings_use_input_slider")};
ZE5=function(Q,W,x,D){var K=new g.H2(W,void 0,"Video Override");g.yh.call(this,D.text||"",Q,W,x,"Video Override",function(){g.B2(x,K)});
var l=this;g.j$(this.element,"ytp-subtitles-options-menu-item");this.setting=D.option.toString();Q=D.options;this.settings=g.uZ(Q,this.Kb,this);this.X=K;g.y(this,this.X);W=new g.rZ({K:"div",Y:"ytp-menuitemtitle",m3:"Allow for a different caption style if specified by the video."},0);g.y(this,W);this.X.XE(W,!0);this.N=new g.rZ({K:"div",Y:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},V:[{K:"div",Y:"ytp-menuitem-label",m3:"On"}]},-1);g.y(this,this.N);this.X.XE(this.N,!0);this.W(this.N.element,
"click",function(){fZh(l,!0)});
this.B=new g.rZ({K:"div",Y:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},V:[{K:"div",Y:"ytp-menuitem-label",m3:"Off"}]},-2);g.y(this,this.B);this.X.XE(this.B,!0);this.W(this.B.element,"click",function(){fZh(l,!1)});
this.ZV(g.pm(Q,this.Kb))};
fZh=function(Q,W){Q.publish("settingChange",Q.setting+"Override",!W);Q.F0.tv()};
o7=function(Q,W){g.H2.call(this,Q,void 0,"Options");var x=this;this.QE={};for(var D=0;D<g.oW.length;D++){var K=g.oW[D],l=new ZE5(-D,Q,W,K);g.y(this,l);l.subscribe("settingChange",this.oI,this);this.QE[K.option.toString()]=l;this.XE(l,!0)}Q=new g.rZ(g.T4(),-g.oW.length,"Reset");g.y(this,Q);Q.listen("click",function(){x.oI("reset",!0)});
this.XE(Q,!0)};
uD=function(Q,W){g.yh.call(this,"Auto-translate",0,Q,W);this.J=Q;this.languages={};Q.createClientVe(this.element,this,127301);Q.logVisibility(this.element,!0)};
LE4=function(Q,W){Q.languages=g.uZ(W,Q.B,Q);Q.ZV(g.pm(W,Q.B))};
Tov=function(Q,W){var x=new o7(Q,W),D=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],K;g.ET(Q.C())&&(K={K:"div",Y:"ytp-panel-footer-content",V:[{K:"span",m3:D[0]},{K:"a",Y:"ytp-panel-footer-content-link",m3:"Settings",Z:{href:"/account_playback"}},{K:"span",m3:D[1]}]});g.yh.call(this,"Subtitles/CC",g.bn.SUBTITLES,Q,W,"Options",function(){g.B2(W,x)},K);
var l=this;this.J=Q;this.F0=W;this.tracks={};this.G=new g.O3(function(){r6l(l,!1)},3E3);
g.y(this,this.G);this.countLabel=new g.L({K:"div",V:[{K:"span",m3:"Subtitles/CC"},{K:"span",Y:"ytp-menuitem-label-count",m3:"{{content}}"}]});g.y(this,this.countLabel);g.Lq(this,this.countLabel);Q.j("web_settings_menu_icons")&&this.setIcon(bJF.includes("en")?{K:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{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"}}]}:{K:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{K:"path",Z:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.B=new uD(Q,W);g.y(this,this.B);this.B.subscribe("select",this.zk,this);this.X=x;g.y(this,this.X);this.X.subscribe("settingChange",this.oI,this);W.subscribe("show",this.ST7,this);this.W(Q,"videodatachange",this.Yf);this.W(Q,"onApiChange",this.Yf);this.W(Q,"onCaptionsTrackListChanged",
this.Yf);this.W(Q,"captionschanged",this.Yf);Q.createClientVe(this.element,this,127300);this.Yf()};
OE4=function(Q){return Object.values(Q.tracks).find(function(W){return W.languageCode==="en"&&W.kind==="asr"})};
Y3=function(Q,W){Q.J.setOption("captions","track",W)};
r6l=function(Q,W){Q.J.setOption("captions","sampleSubtitles",W)};
ETF=function(Q){g.qF.call(this,Q,"ytp-settings-menu");var W=this;this.Ar=new g.H2(this.J);this.iq=this.settingsButton=null;this.isInitialized=this.Ff=!1;g.y(this,this.Ar);this.hide();g.B2(this,this.Ar);Q.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(x){W.PZ(x)});
this.W(Q,"highlightSettingsMenu",function(){W.Ff=!0;W.jt()});
this.W(Q,"openSettingsMenuItem",function(x){if(x&&(W.Ff=!0,W.jt(),x==="menu_item_video_quality_advanced")){var D;(D=W.iq)==null||D.open()}})};
FE5=function(Q,W){Q.settingsButton=W;Q.element.id=W.element.getAttribute("aria-controls")};
tF2=function(Q,W){g.L.call(this,{K:"button",lj:["ytp-subtitles-button","ytp-button"],Z:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"4","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[sm2()]});this.J=Q;this.tooltip=W.Vp();this.W(Q,"videodatachange",this.Yf);this.W(Q,"appresize",this.Yf);this.W(Q,"promotooltipacceptbuttonclicked",this.NH5);this.W(Q,"onApiChange",this.Yf);this.W(Q,"onCaptionsTrackListChanged",this.Yf);this.W(Q,"captionschanged",this.Yf);
this.J.createClientVe(this.element,this,127299);this.Yf();this.listen("click",this.onClick);this.addOnDisposeCallback(g.Cq(W.Vp(),this.element))};
Qsa=function(Q){return g.GZ(Q.J.x6())!=null?g.GZ(Q.J.x6()).Pp()?!!Q.J.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
g.n7=function(Q,W,x){x=x===void 0?350:x;g.L.call(this,{K:"div",lj:["ytp-time-display","notranslate"],V:[{K:"span",Y:"ytp-time-wrapper",V:[{K:"span",Y:"ytp-time-clip-icon",m3:"{{clipicon}}",Z:{"aria-label":"Clip"}},{K:"span",Y:"ytp-time-current",m3:"{{currenttime}}"},{K:"span",Y:"ytp-time-separator",m3:" / "},{K:"span",Y:"ytp-time-duration",m3:"{{duration}}"}]},{K:"span",Y:"ytp-clip-watch-full-video-button-separator",m3:"\u2022"},{K:"span",Y:"ytp-clip-watch-full-video-button",m3:"{{watchfullvideo}}"}]});
var D=this;this.api=Q;this.T=x;this.liveBadge=new g.L({K:"button",lj:["ytp-live-badge","ytp-button"],Z:{disabled:"true"},m3:"{{content}}"});this.B=null;this.SB=this.U=!1;this.S=this.G=null;this.isPremiere=!1;this.X=this.N=null;this.D=!1;this.k6=null;this.uj=this.Nj("ytp-clip-watch-full-video-button");this.api.j("web_player_updated_entrypoint")&&g.S$(this.element,"ytp-xs-mono-button-style",!0);this.liveBadge.iy("Live");g.y(this,this.liveBadge);this.api.j("web_player_updated_entrypoint")||this.api.j("delhi_modern_web_player")?
this.liveBadge.Qj(this.element.querySelector(".ytp-time-wrapper")):this.liveBadge.Qj(this.element);this.tooltip=W.Vp();this.liveBadge.listen("click",this.onClick.bind(this));this.api.j("delhi_modern_web_player")&&this.W(this.Nj("ytp-time-current"),"click",this.fXf);this.W(this.uj,"click",this.lJf);this.W(this.api,"serverstitchedvideochange",function(){Wu5(D,D.api.getProgressState().isAtLiveHead)});
this.W(Q,"presentingplayerstatechange",this.QA);this.W(Q,"appresize",this.QA);this.W(Q,"onLoopRangeChange",this.onLoopRangeChange);this.W(Q,"videodatachange",this.onVideoDataChange);(W=Q.getVideoData())&&this.updateVideoData(W);this.QA();xwQ(this,Q.getLoopRange())};
Wu5=function(Q,W){var x=Q.liveBadge.element,D=Q.api.isLifaAdPlaying();x.disabled=D||W;!Vi(Q)||Q.S===W&&Q.G===Q.isPremiere||(Q.S=W,Q.G=Q.isPremiere,Q.QA(),W?x.classList.add("ytp-live-badge-is-livehead"):x.classList.remove("ytp-live-badge-is-livehead"),Q.liveBadge.iy(Q.isPremiere?"Premiere":"Live"),W?Q.B&&(Q.B(),Q.B=null,x.removeAttribute("title")):(x.title="Skip ahead to live broadcast.",Q.B=g.Cq(Q.tooltip,Q.liveBadge.element)))};
xwQ=function(Q,W){var x=Q.k6!==W;Q.k6=W;x&&Dwn(Q)};
Dwn=function(Q){Q.updateValue("clipicon",{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{K:"path",Z:{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"}}]});
Q.SB&&!Q.U?Q.updateValue("watchfullvideo","Watch live stream"):Q.updateValue("watchfullvideo","Watch full video");g.S$(Q.element,"ytp-clip",Py(Q));g.S$(Q.element,"ytp-live",Vi(Q))};
Vi=function(Q){var W=Q.api.C().j("enable_linear_program_progress"),x=!Q.api.j("clean_player_style_fix_on_web")||Q.api.getPresentingPlayerType()!==2;return Q.SB&&!Py(Q)&&(!W||!Q.U)&&x};
Py=function(Q){return!!Q.k6&&!!Q.k6.postId&&Q.api.getPresentingPlayerType()!==2&&(!Q.k6.type||Q.k6.type==="clips")};
lc4=function(Q,W){g.L.call(this,{K:"div",Y:"ytp-volume-panel",Z:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{K:"div",Y:"ytp-volume-slider",V:[{K:"div",Y:"ytp-volume-slider-handle"}]}]});var x=this;this.api=Q;this.G=W;this.rY=!1;this.T=this.volume=0;this.X=null;this.U=this.B=this.isDragging=!1;this.G=W;this.D=Q.eU();this.S=this.Nj("ytp-volume-slider");this.uj=this.Nj("ytp-volume-slider-handle");
this.N=new g.ZA(this.S,!0);g.y(this,this.N);this.N.subscribe("dragstart",this.be7,this);this.N.subscribe("dragmove",this.MZ,this);this.N.subscribe("dragend",this.nDj,this);this.W(Q,"onVolumeChange",this.onVolumeChange);this.W(Q,"appresize",this.kz);this.W(Q,"fullscreentoggled",this.zo);this.W(Q,"onShowControls",this.HG);this.W(Q,"onHideControls",this.HG);this.W(this.element,"keydown",this.RL);this.W(this.element,"focus",function(){vy(x,x.B,x.isDragging,!0,x.api.rY())});
this.W(this.element,"blur",function(){vy(x,x.B,x.isDragging,!1,x.api.rY())});
this.kz(Q.hf().getPlayerSize());KuF(this,Q.getVolume(),Q.isMuted());Jo(Q,this.element,this)};
KuF=function(Q,W,x){var D=Math.floor(W),K=D+"% volume"+(x?" muted":"");x=x?0:W/100;Q.updateValue("valuenow",D);Q.updateValue("valuetext",K);Q.uj.style.left=(Q.D?60:40)*x+"px";Q.volume=W};
js5=function(Q,W){g.S$(Q.element,"ytp-volume-control-hover",W);vy(Q,W,Q.isDragging,Q.U,Q.api.rY())};
vy=function(Q,W,x,D,K){var l=Q.B||Q.isDragging||Q.U||Q.rY;Q.B=W;Q.isDragging=x;Q.U=D;Q.rY=K;W=Q.B||Q.isDragging||Q.U||Q.rY;l!==W&&(W?Q.X=Q.W(Q.element,"wheel",Q.ws):(Q.mJ(Q.X),Q.X=null),g.S$(Q.G,"ytp-volume-slider-active",W))};
C7=function(Q,W){var x=Q.C(),D=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];x.D&&D.push("no-link");var K={title:"{{title}}",target:x.T,"data-priority":"5","data-sessionlink":"feature=player-button"};x.D||(K.href="{{url}}");g.L.call(this,{K:"a",lj:D,Z:K,m3:"{{logoSvg}}"});this.B=null;this.api=Q;this.visible=!1;x.D||(this.B=this.listen("click",this.onClick));this.W(Q,"videodatachange",this.onVideoDataChange);this.W(Q,"videoplayerreset",this.onVideoDataChange);this.W(Q,"onLoopRangeChange",
this.onVideoDataChange);this.W(Q,"appresize",this.OV);this.onVideoDataChange();x.D||this.addOnDisposeCallback(g.Cq(W.Vp(),this.element));this.OV()};
Mc1=function(Q,W,x){g.I0.call(this);var D=this;this.J=Q;this.KS=W;this.s4=x;this.tf=NaN;this.pS=this.I5=this.playButton=this.L=this.X=this.s3=this.g7=this.uj=this.T=this.B=this.Pt=this.SZ=null;this.D=new ETF(this.J);this.progressBar=new g.yL(this.J,this.KS);this.fS=new g.n7(this.J,this.KS);this.F3=new vfs(this.J,this.KS);this.S=new g.Td(this.IL,null,this);x=Q.C();this.s4.subscribe("autohideupdate",this.Qn,this);var K=!Q.getPlayerStateObject().isCued(),l;Q.C().j("html5_player_dynamic_bottom_gradient")?
this.Pt=l=new YKF(Q):l=new g.L({K:"div",Y:"ytp-gradient-bottom"});g.y(this,l);g.qf(Q,l.element,9);this.X3=new g.Wi(l,250,K,100);g.y(this,this.X3);this.N=new g.L({K:"div",Y:"ytp-chrome-bottom",V:[{K:"div",Y:"ytp-chrome-controls"}]});g.y(this,this.N);g.qf(Q,this.N.element,9);this.LS=new g.Wi(this.N,250,K,100);g.y(this,this.LS);this.eZ=this.N.element.children[0];g.y(this,this.D);g.qf(Q,this.D.element,6);this.D.subscribe("show",function(w){D.J.pG(!w);Q.Gh(D.D,w)});
g.y(this,this.progressBar);this.progressBar.Qj(this.N.element,0);K=new Aw(Q,W);g.y(this,K);g.qf(Q,K.element,4);K=new g.St({K:"div",Y:"ytp-left-controls"});g.y(this,K);K.Qj(this.eZ);Q.j("delhi_modern_web_player")||(l=new g.IW(Q,W,!1),g.y(this,l),l.Qj(K.element));Q.j("web_render_jump_buttons")&&(this.T=new HN(Q,g.X0(Q.C().experiments,"web_jump_button_backward_amount")||-10),g.y(this,this.T),this.T.Qj(K.element));x.X3||(this.playButton=new g.$u(Q,W),g.y(this,this.playButton),this.playButton.Qj(K.element));
Q.j("web_render_jump_buttons")&&(this.uj=new HN(Q,g.X0(Q.C().experiments,"web_jump_button_forward_amount")||10),g.y(this,this.uj),this.uj.Qj(K.element));Q.j("delhi_modern_web_player_remove_nav_buttons")||(Q.j("delhi_modern_web_player")&&(l=new g.IW(Q,W,!1),g.y(this,l),l.Qj(K.element)),l=new g.IW(Q,W,!0),g.y(this,l),l.Qj(K.element));if(!Q.j("delhi_modern_web_player")&&(l=new g.L({K:"span",Y:"ytp-volume-area"}),g.y(this,l),l.Qj(K.element),!x.cD&&(this.B=new BN(Q,W),g.y(this,this.B),this.B.Qj(l.element),
x.g7&&!x.S))){var M=new lc4(Q,this.N.element);this.I5=M;g.y(this,M);M.Qj(l.element);l=new g.ZA(l.element);g.y(this,l);l.subscribe("hoverstart",function(){var w;(w=D.I5)==null||js5(w,!0)});
l=new g.ZA(K.element);g.y(this,l);l.subscribe("hoverend",function(){var w;(w=D.I5)==null||js5(w,!1)})}g.y(this,this.fS);
this.fS.Qj(K.element);this.g7=new iv(Q,this.progressBar);g.y(this,this.g7);this.g7.Qj(K.element);x.j("web_key_moments_markers")&&(this.s3=new Uy(Q,this.progressBar),g.y(this,this.s3),this.s3.Qj(K.element));Q.j("delhi_modern_web_player")?(this.U=new g.St({K:"div",Y:"ytp-right-controls",V:[{K:"div",Y:Jk.RIGHT_CONTROLS_LEFT},{K:"div",Y:Jk.RIGHT_CONTROLS_RIGHT}]}),Q.j("delhi_modern_web_player_right_controls_separate")&&g.j$(this.U.element,"ytp-right-controls-separate")):this.U=new g.St({K:"div",Y:"ytp-right-controls"});
g.y(this,this.U);this.U.Qj(this.eZ);Q.j("delhi_modern_web_player")&&(this.B=new BN(Q,W),g.y(this,this.B),this.B.Qj(this.U.Nj(Jk.RIGHT_CONTROLS_LEFT)));this.O3=new tF2(Q,W);g.y(this,this.O3);p7(this,this.O3,"RIGHT_CONTROLS_LEFT");this.settingsButton=new Mv(Q,this.D);g.y(this,this.settingsButton);FE5(this.D,this.settingsButton);p7(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");K=Q.getVideoData();if(x.Tc||K.HZ&&x.controlsType==="1")this.X=new C7(Q,W),g.y(this,this.X),this.X.Qj(this.U.element);x.showMiniplayerButton&&
(this.L=new qR(Q),g.y(this,this.L),p7(this,this.L,"RIGHT_CONTROLS_RIGHT"));x.oH&&(W=new jA(Q,this.D),g.y(this,W),p7(this,W,"RIGHT_CONTROLS_RIGHT"));x.UG&&(W=new G0(Q),g.y(this,W),p7(this,W,"RIGHT_CONTROLS_RIGHT"));g.y(this,this.F3);p7(this,this.F3,"RIGHT_CONTROLS_RIGHT");g.y(this,this.S);this.W(Q,"appresize",this.OV);this.W(Q,"fullscreentoggled",this.OV);this.W(Q,"presentingplayerstatechange",this.HE);this.W(Q,"videodatachange",this.onVideoDataChange);this.OV()};
R7n=function(Q,W){if(Q.J.getPlayerStateObject().isCued()||W){if(W){Q.LS.hide();Q.X3.hide();Q.B&&Q.B.rG(!1);Q.X&&Q.X.rG(!1);Q.L&&Q.L.rG(!1);if(Q.J.j("embeds_use_parent_visibility_in_ve_logging")){var x;(x=Q.F3)==null||x.rG(!1);var D;(D=Q.settingsButton)==null||D.rG(!1);var K;(K=Q.playButton)==null||K.rG(!1)}Q.J.mC(Q.yh())}}else if(!W){Q.LS.show();Q.X3.show();Q.B&&Q.B.rG(!0);Q.X&&Q.X.rG(!0);Q.L&&Q.L.rG(!0);if(Q.J.j("embeds_use_parent_visibility_in_ve_logging")){var l;(l=Q.F3)==null||l.rG(!0);var M;
(M=Q.O3)==null||M.rG(!0);var w;(w=Q.playButton)==null||w.rG(!0)}Q.Qn()}};
SZl=function(Q){var W=Q.J.hf().getPlayerSize().width;return Math.max(W-wY5(Q)*2,100)};
wY5=function(Q){var W=Q.J.eU(),x=Q.J.getVideoData().HZ,D=0;Q.J.eU()&&Q.J.isEmbedsShortsMode()&&(D=(Q.J.hf().getPlayerSize().width-Q.J.getVideoContentRect().width)/2);return 12*(x?0:W?2:1)+D};
bW5=function(Q){var W=Q.J.eU()?72:50;Q=Q.J.C();g.ET(Q)&&(W=Q.j("delhi_modern_web_player")?78:62,g.BL(Q)&&(W=54));return W};
p7=function(Q,W,x){Q.J.j("delhi_modern_web_player")?W.Qj(Q.U.Nj(Jk[x])):W.Qj(Q.U.element)};
ss1=function(Q){ir.call(this,Q,!1);var W=this;this.suggestedActions={};this.W(this.J,"videodatachange",this.onVideoDataChange);this.W(this.J,g.Ru("suggested_action_button_visible"),function(x){x=x.id;W.text=x;wNQ(W);W.onClickCommand=W.suggestedActions[x];W.enabled=!0;W.PZ()});
this.W(this.J,g.wt("suggested_action_button_visible"),function(x){W.enabled=!1;W.PZ();W.J.removeCueRange(x.id)})};
z7n=function(Q){Q.suggestedActions={};Q.J.jQ("suggested_action_button_visible")};
a7=function(Q){g.L.call(this,{K:"div",Y:hk.TITLE,V:[{K:"div",Y:hk.TEXT,V:[{K:"a",lj:[hk.LINK,hk.SESSIONLINK],Z:{target:Q.C().T,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},m3:"{{title}}"},{K:"div",Y:hk.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=Q;this.B=null;this.link=this.Nj(hk.LINK);Q.createClientVe(this.element,this,23851);this.W(Q,"videodatachange",this.Yf);this.W(Q,"videoplayerreset",this.Yf);this.Yf()};
kqO=function(Q){Q.updateValue("channelLink","");Q.updateValue("channelName","");g.BL(Q.api.C())?Q.updateValue("channelTitleFocusable","0"):Q.updateValue("channelTitleFocusable","-1")};
g.GH=function(Q,W){g.L.call(this,{K:"div",V:[{K:"div",Y:"ytp-tooltip-text-wrapper",Z:{"aria-hidden":"{{ariaHidden}}"},V:[{K:"div",Y:"ytp-tooltip-edu",V:[{K:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Z:{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"}}]},{K:"span",m3:"{{eduText}}"}]},{K:"div",Y:"ytp-tooltip-image"},{K:"div",Y:"ytp-tooltip-title",V:[{K:"span",m3:"{{title}}"},{K:"div",Y:"ytp-tooltip-keyboard-shortcut",
m3:"{{keyBoardShortcut}}"}]},{K:"div",Y:"ytp-tooltip-bottom-text",V:[{K:"span",Y:"ytp-tooltip-text",m3:"{{text}}"},{K:"div",Y:"ytp-tooltip-keyboard-shortcut",m3:"{{keyBoardShortcut}}"}]}]},{K:"div",Y:"ytp-tooltip-bg",V:[{K:"div",Y:"ytp-tooltip-duration",m3:"{{duration}}"}]}]});var x=this;this.api=Q;this.X3=W;this.uj=function(D){(D=D.relatedTarget)&&g.jh(x.B,D)||x.TC()};
this.X=function(D){x.type===3&&x.TC();(D=D.currentTarget)&&D.nodeType===1&&!x.type&&(D.removeEventListener("mouseover",x.X),D.addEventListener("mouseout",x.uj),D.removeEventListener("focus",x.X),D.addEventListener("blur",x.uj),XYD(x,D,2))};
this.pS=function(){x.TC()};
this.type=this.B=null;this.T=!1;this.U=null;this.D="";this.S=!0;this.scale=1;this.env=this.api.C();this.fS=this.env.U;this.wrapper=this.Nj("ytp-tooltip-text-wrapper");this.bg=this.Nj("ytp-tooltip-bg");this.LS=this.Nj("ytp-tooltip-edu");this.image=this.Nj("ytp-tooltip-image");this.text=this.Nj("ytp-tooltip-text");this.bottomText=this.Nj("ytp-tooltip-bottom-text");this.title=this.Nj("ytp-tooltip-title");this.G=new g.Wi(this,100);this.N=NaN;this.fb=this.api.hf().getPlayerSize().width;this.F3=new g.O3(this.pNS,
250,this);this.KS=new g.O3(this.TC,5E3,this);g.y(this,this.G);g.y(this,this.F3);g.y(this,this.KS);hC&&(Q=this.Nj("ytp-tooltip-text"),Q.setAttribute("role","text"),Q.setAttribute("aria-live","polite"))};
g.Cq=function(Q,W){if(Q.fS)return function(){};
W.addEventListener("mouseover",Q.X);W.addEventListener("focus",Q.X);var x=W.getAttribute("title");x&&!W.hasAttribute("aria-label")&&W.setAttribute("aria-label",x);return function(){Q.B===W&&Q.TC();W.removeEventListener("mouseover",Q.X);W.removeEventListener("focus",Q.X)}};
XYD=function(Q,W,x,D){if(W&&!W.hasAttribute)Q=new g.Lw("showElementTooltip called with non-element.",W.toString()),g.ql(Q);else{isNaN(Q.N)||(Q.N=NaN,Q.bg.style.background="");Q.B=W;Q.T=!!D;D?Q.D=D:(Q.D=W.getAttribute("title"),W.removeAttribute("title"));g.KT(Q.element,"ytp-tooltip");var K=W.getAttribute("data-tooltip-image");K&&(Q.image.style.backgroundImage="url("+K+")");D?Q.update({ariaHidden:"false"}):Q.update({ariaHidden:"true"});g.S$(Q.element,"ytp-tooltip-image-enabled",!!K);W=W.getAttribute("data-tooltip-opaque");
g.S$(Q.element,"ytp-tooltip-opaque",!!W);Q.type=x;Q.api.addEventListener("appresize",Q.pS);Q.S&&(ob2(Q),Q.G.show(0))}};
ob2=function(Q){if(Q.B){var W=Q.B.getAttribute("data-tooltip-text");if(Q.D&&Q.B.getAttribute("aria-label")!==Q.D)var x=Q.D;var D=Q.B.getAttribute("aria-keyshortcuts"),K=Q.B.getAttribute("data-title-no-tooltip");D&&K&&(x=g.nD("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:K,SHORTCUT_KEY:D}));x&&Q.B.setAttribute("aria-label",x);if(W&&!Q.T){D=Q.B;Q.updateValue("text",W);x=D.getAttribute("data-duration");Q.update({title:Q.D,duration:x});D=D.getAttribute("data-preview");K=243*Q.scale;var l=
141*Q.scale;Q.bg.style.width=K+"px";Q.bg.style.height=l+"px";Q.bg.style.backgroundImage=D?"url("+D+")":"";Q.bg.style.backgroundSize=K+"px "+l+"px";Q.wrapper.style.width=K+"px";g.Mh(Q.element,["ytp-text-detail","ytp-preview"]);g.S$(Q.element,"ytp-has-duration",!!x)}else Q.updateValue("text",Q.D),D&&Q.env.j("delhi_modern_web_player")&&(Q.updateValue("text",K),Q.updateValue("keyBoardShortcut",D.toUpperCase())),g.wk(Q.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);uyz(Q,!!W)}};
uyz=function(Q,W,x,D){var K=Math.min(Q.fb,300*Q.scale);Q.element.style.maxWidth=W?"":K+"px";Q.X3.CF(Q.element,Q.B,x,Q.type===1,D);Q.element.style.top?g.j$(Q.element,"ytp-bottom"):Q.element.style.bottom&&g.j$(Q.element,"ytp-top");Q.type===3&&Q.KS.start()};
YZ5=function(Q,W){g.S$(Q.element,"ytp-preview",W>=0);if(!(W<0||W===Q.N)){Q.N=W;W=243*Q.scale;var x=141*Q.scale,D=YSh(Q.U,Q.N,W);nf2(Q.bg,D,W,x,!0);Q.F3.start()}};
nb2=function(Q){var W=Q.B;Q.type===3&&Q.KS.stop();Q.api.removeEventListener("appresize",Q.pS);Q.T||W.setAttribute("title",Q.D);Q.D="";Q.B=null;Q.updateValue("keyBoardShortcut","");Q.wrapper.style.width=""};
PUv=function(Q){g.L.call(this,{K:"button",lj:["ytp-watch-later-button","ytp-button"],Z:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.d5(Q.C()))},V:[{K:"div",Y:"ytp-watch-later-icon",m3:"{{icon}}"},{K:"div",Y:"ytp-watch-later-title",m3:"Watch later"}]});this.J=Q;this.icon=null;this.visible=this.isRequestPending=this.B=!1;T7h(Q);Q.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.W(Q,"videoplayerreset",this.onReset);this.W(Q,"appresize",
this.Xu);this.W(Q,"videodatachange",this.Xu);this.W(Q,"presentingplayerstatechange",this.Xu);this.Xu();Q=this.J.C();var W=g.qW("yt-player-watch-later-pending");Q.N&&W?(NOQ(),Vc5(this)):this.Yf(2);g.S$(this.element,"ytp-show-watch-later-title",g.d5(Q));Jo(this.J,this.element,this)};
vbv=function(Q){var W=Q.J.getPlayerSize(),x=Q.J.C(),D=Q.J.getVideoData(),K=g.d5(x)&&g.iL(Q.J)&&g.r(Q.J.getPlayerStateObject(),128),l=x.D;return x.vZ&&W.width>=240&&!D.isAd()&&D.vZ&&!K&&!g.xW(D)&&!Q.J.isEmbedsShortsMode()&&!l};
CUQ=function(Q,W){eSF(g.Zj(Q.J.C()),"wl_button",function(){NOQ({videoId:W});window.location.reload()})};
Vc5=function(Q){if(!Q.isRequestPending){Q.isRequestPending=!0;Q.Yf(3);var W=Q.J.getVideoData();W=Q.B?W.removeFromWatchLaterCommand:W.addToWatchLaterCommand;var x=Q.J.XZ(),D=Q.B?function(){Q.B=!1;Q.isRequestPending=!1;Q.Yf(2);Q.J.C().G&&Q.J.Wt("WATCH_LATER_VIDEO_REMOVED")}:function(){Q.B=!0;
Q.isRequestPending=!1;Q.Yf(1);Q.J.C().U&&Q.J.FL(Q.element);Q.J.C().G&&Q.J.Wt("WATCH_LATER_VIDEO_ADDED")};
rK(x,W).then(D,function(){Q.isRequestPending=!1;Q.Yf(4,"An error occurred. Please try again later.");Q.J.C().G&&Q.J.Wt("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}};
JN2=function(Q,W){if(W!==Q.icon){switch(W){case 3:var x=wz();break;case 1:x=Y_();break;case 2:x={K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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:x={K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",
Tn:!0,Z:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}Q.updateValue("icon",x);Q.icon=W}};
g.dH=function(){g.LM.apply(this,arguments);this.MF=(this.hE=g.d5(this.api.C()))&&(this.api.C().U||QB()||F5());this.zZ=48;this.wl=69;this.YP=this.fA=null;this.Xh=[];this.eh=this.FZ=this.zg=this.D0=this.XY=null;this.Y2=[];this.contextMenu=this.jK=this.overflowButton=this.uf=this.qC=this.searchButton=this.copyLinkButton=this.shareButton=this.kJ=this.SK=this.title=this.channelAvatar=this.Ib=this.tooltip=null;this.QX=!1;this.cA=this.ub=this.qL=this.uH=null;this.lq=this.Zr=this.hc=!1};
pY5=function(Q){var W=Q.api.C(),x=g.r(Q.api.getPlayerStateObject(),128);return W.N&&x&&!Q.api.isFullscreen()};
h7Q=function(Q){if(Q.AK()&&!Q.api.isEmbedsShortsMode()&&Q.uf){var W=Q.api.j("web_player_hide_overflow_button_if_empty_menu");!Q.kJ||W&&!vbv(Q.kJ)||ee1(Q.uf,Q.kJ);!Q.shareButton||W&&!QVD(Q.shareButton)||ee1(Q.uf,Q.shareButton);!Q.copyLinkButton||W&&!lB4(Q.copyLinkButton)||ee1(Q.uf,Q.copyLinkButton)}else{if(Q.uf){W=Q.uf;for(var x=g.V(W.actionButtons),D=x.next();!D.done;D=x.next())D.value.detach();W.actionButtons=[]}Q.searchButton&&!g.jh(Q.SK.element,Q.searchButton.element)&&Q.searchButton.Qj(Q.SK.element);
Q.kJ&&!g.jh(Q.SK.element,Q.kJ.element)&&Q.kJ.Qj(Q.SK.element);Q.shareButton&&!g.jh(Q.SK.element,Q.shareButton.element)&&Q.shareButton.Qj(Q.SK.element);Q.copyLinkButton&&!g.jh(Q.SK.element,Q.copyLinkButton.element)&&Q.copyLinkButton.Qj(Q.SK.element)}};
ac1=function(Q,W,x){W=x?W.lastElementChild:W.firstElementChild;for(var D=null;W;){if(zJ(W,"display")!=="none"&&W.getAttribute("aria-hidden")!=="true"){var K=void 0;W.tabIndex>=0?K=W:K=ac1(Q,W,x);K&&(D?x?K.tabIndex>D.tabIndex&&(D=K):K.tabIndex<D.tabIndex&&(D=K):D=K)}W=x?W.previousElementSibling:W.nextElementSibling}return D};
GqO=function(Q,W,x){if(Q.api.j("web_player_nitrate_promo_tooltip")&&Q.api.getPresentingPlayerType(!0)!==2){var D=Q.api.getVideoData(1);if(D==null?0:D.tooltipRenderer){D=D.tooltipRenderer;var K;if(K=!Q.cA){if(!(W=!W)){var l,M,w;W=((l=D.tooltipDisplayStrategy)==null?void 0:l.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((M=D.promoConfig)==null?void 0:M.promoId)!=="dtip-edu-player-iseecaptions"&&((w=D.promoConfig)==null?void 0:w.promoId)!=="dtip-edu-player-tc-m2"}K=W}K&&(Q.cA=new rRv(D,Q.api),
g.y(Q,Q.cA),g.qf(Q.api,Q.cA.element,9));var S;(S=Q.cA)==null||FCz(S,D,x)}}};
g.iD=function(Q){g.V1.call(this,Q);this.chrome=null;this.load()};
dws=function(){for(var Q=Ak.length;Q<4;Q++){var W=g.Qz("VIDEO");W.load();Ak.push(new g.Q1(W))}};
iWa=function(Q,W,x,D){var K=x.getVideoData(),l=W.getVideoData();if(x.getPlayerState().isError())return{msg:"player-error"};var M=l.D;if(W.cZ()>D/1E3+1)return{msg:"in-the-past"};if(l.isLivePlayback&&!isFinite(D))return{msg:"live-infinite"};(D=W.DG())&&D.isView()&&(D=D.mediaElement);if(D&&D.gk().length>12&&g.V9(K))return{msg:"played-ranges"};if(!K.D)return null;if(!M)return{msg:"no-pvd-formats"};if(!K.D.B||!M.B)return{msg:"non-dash"};D=M.videoInfos[0];var w=K.D.videoInfos[0];Q.G&&KQ(l)&&(D=W.eM(),w=
x.eM());if(!D||!w)return{msg:"no-video-info"};if(Q.D&&(OC(D)||OC(w)))return{msg:"av1"};W=Q.B&&l.c9()&&nS();if(w.containerType!==D.containerType)if(W)l.qj("sgap",{ierr:"container"});else return{msg:"container"};if(Q.U&&!W&&(w.CS!==D.CS||w.CS===""||D.CS===""))return{msg:"codec"};if(Q.N&&w.video&&D.video&&Math.abs(w.video.width/w.video.height-D.video.width/D.video.height)>.01)return{msg:"ratio"};if(g.V9(l)&&g.V9(K))return{msg:"content-protection"};M=M.B[0];K=K.D.B[0];x=M.audio;var S=K.audio;if(x.sampleRate!==
S.sampleRate&&!g.UC)if(W)l.qj("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:M.itag,cr:x.sampleRate,ni:K.itag,nr:S.sampleRate};return(x.numChannels||2)!==(S.numChannels||2)?{msg:"channel-count"}:Q.L&&l.c9()&&D.video.fps!==w.video.fps?{msg:"fps"}:null};
AN1=function(Q,W,x){var D=Q.getVideoData(),K=W.getVideoData();if(!D.C().supportsGaplessShorts())return{nq:"env"};if(x.X){if(D.g5&&!D.isAd()||K.g5&&!K.isAd())return{nq:"autoplay"}}else if(D.g5||K.g5)return{nq:"autoplay"};if(!D.S)return{nq:"client"};if(!Q.PK())return{nq:"no-empty"};Q=iWa(x,Q,W,Infinity);return Q!=null?{nq:Q.msg}:null};
Hy=function(Q){g.N.call(this);this.app=Q;this.L=this.N=this.U=this.B=null;this.D=1;this.events=new g.I0(this);this.events.W(this.app.G1,g.wt("gaplessshortslooprange"),this.S);g.y(this,this.events)};
HWs=function(){this.N=this.X=this.D=this.G=this.L=this.U=this.B=!1};
Uwh=function(Q){var W=new HWs;W.B=Q.j("h5_gapless_support_types_diff");W.L=Q.j("h5_gapless_error_on_fps_diff");W.G=Q.j("html5_gapless_use_format_info_fix");W.D=Q.j("html5_gapless_disable_on_av1")&&!Q.j("html5_gapless_enable_on_av1");W.U=Q.j("html5_gapless_check_codec_diff_strictly");W.X=Q.j("html5_gapless_on_ad_autoplay");W.N=Q.j("html5_gapless_disable_diff_aspect_radio");return W};
g.UD=function(Q,W,x,D){D=D===void 0?!1:D;Q4.call(this);this.mediaElement=Q;this.start=W;this.end=x;this.B=D};
qZs=function(Q,W,x,D,K,l){l=l===void 0?0:l;g.N.call(this);var M=this;this.policy=Q;this.B=W;this.U=x;this.L_=K;this.L=l;this.N=this.D=null;this.currentVideoDuration=this.X=-1;this.G=!1;this.Tz=new th;this.tX=D-W.aW()*1E3;this.Tz.then(void 0,function(){});
this.timeout=new g.O3(function(){M.tK("timeout")},1E4);
g.y(this,this.timeout);this.S=isFinite(D);this.status={status:0,error:null}};
Icv=function(Q){var W,x,D,K,l,M,w,S,b,z;return g.U(function(k){if(k.B==1){if(Q.d7())return k.return(Promise.reject(Error(Q.status.error||"disposed")));Q.timeout.start();W=g.qv.Xa();return g.A(k,Q.Tz,2)}g.qv.Wd("gtfta",W);x=Q.B.DG();if(x.isEnded())return Q.tK("ended_in_finishTransition"),k.return(Promise.reject(Error(Q.status.error||"")));if(!Q.N||!LS(Q.N))return Q.tK("next_mse_closed"),k.return(Promise.reject(Error(Q.status.error||"")));if(Q.U.fv()!==Q.N)return Q.tK("next_mse_mismatch"),k.return(Promise.reject(Error(Q.status.error||
"")));D=BC5(Q);K=D.Fd;l=D.xK;M=D.m0;Q.B.GK(!1,!0);w=$wF(x,K,M,!Q.U.getVideoData().isAd());Q.U.setMediaElement(w);(S=Q.B.jr())&&Q.U.k5(S.Ww,S.Cj);Q.S&&(Q.U.seekTo(Q.U.getCurrentTime()+.001,{IK:!0,XO:3,N7:"gapless_pseudo"}),w.play(),Uk());b=x.AO();b.cpn=Q.B.getVideoData().clientPlaybackNonce;b.st=""+K;b.et=""+M;Q.U.qj("gapless",b);Q.B.qj("gaplessTo",{cpn:Q.U.getVideoData().clientPlaybackNonce});z=Q.B.getPlayerType()===Q.U.getPlayerType();Q.B.IJ(l,!0,!1,z,Q.U.getVideoData().clientPlaybackNonce);Q.U.IJ(Q.U.getCurrentTime(),
!0,!0,z,Q.B.getVideoData().clientPlaybackNonce);Q.U.yy();g.wv(function(){!Q.U.getVideoData().F3&&Q.U.getPlayerState().isOrWillBePlaying()&&Q.U.zd()});
By(Q,6);Q.dispose();return k.return(Promise.resolve())})};
gbn=function(Q){if(Q.U.getVideoData().D){var W=Q.L_.C().j("html5_gapless_suspend_next_loader")&&Q.L===1;Q.U.bQ(Q.N,W,mw4(Q));By(Q,3);NCs(Q);var x=cNh(Q);W=x.Hp;x=x.LD;W.subscribe("updateend",Q.qI,Q);x.subscribe("updateend",Q.qI,Q);Q.qI(W);Q.qI(x)}};
NCs=function(Q){Q.B.unsubscribe("internalvideodatachange",Q.D5,Q);Q.U.unsubscribe("internalvideodatachange",Q.D5,Q);Q.L_.C().j("html5_gapless_use_format_info_fix")&&(Q.B.unsubscribe("internalvideoformatchange",Q.D5,Q),Q.U.unsubscribe("internalvideoformatchange",Q.D5,Q));Q.B.unsubscribe("mediasourceattached",Q.D5,Q);Q.U.unsubscribe("statechange",Q.QY,Q)};
$wF=function(Q,W,x,D){Q=Q.isView()?Q.mediaElement:Q;return new g.UD(Q,W,x,D)};
By=function(Q,W){W<=Q.status.status||(Q.status={status:W,error:null},W===5&&Q.Tz.resolve())};
mw4=function(Q){return Q.L_.C().j("html5_gapless_no_clear_buffer_timeline")&&Q.L===1&&MJ(Q.B.getVideoData())};
BC5=function(Q){var W=Q.B.DG();W=W.isView()?W.start:0;var x=Q.B.getVideoData().isLivePlayback?Infinity:Q.B.uW(!0);x=Math.min(Q.tX/1E3,x)+W;var D=Q.S?100:0;Q=x-Q.U.cZ()+D;return{K4:W,Fd:Q,xK:x,m0:Infinity}};
cNh=function(Q){return{Hp:Q.D.B.PD,LD:Q.D.U.PD}};
$3=function(Q){g.N.call(this);var W=this;this.app=Q;this.L=this.U=this.B=null;this.S=!1;this.D=this.N=null;this.G=Uwh(this.app.C());this.X=function(){g.wv(function(){yNn(W)})}};
e7h=function(Q,W,x,D,K){D=D===void 0?0:D;K=K===void 0?0:K;Q.PK()||I7(Q);Q.N=new th;Q.B=W;var l=x,M=K===0;M=M===void 0?!0:M;var w=Q.app.w7(),S=w.getVideoData().isLivePlayback?Infinity:w.uW(!0)*1E3;l>S&&(l=S-200,Q.S=!0);M&&w.getCurrentTime()>=l/1E3?Q.X():(Q.U=w,M&&(M=l,l=Q.U,Q.app.G1.addEventListener(g.Ru("vqueued"),Q.X),M=isFinite(M)||M/1E3>l.getDuration()?M:0x8000000000000,Q.L=new g.jz(M,0x8000000000000,{namespace:"vqueued"}),l.addCueRange(Q.L)));M=D/=1E3;l=W.getVideoData().B;D&&l&&Q.U&&(w=D,S=0,
W.getVideoData().isLivePlayback&&(M=Math.min(x/1E3,Q.U.uW(!0)),S=Math.max(0,M-Q.U.getCurrentTime()),w=Math.min(D,W.uW()+S)),M=S0l(l,w)||D,M!==D&&Q.B.qj("qvaln",{st:D,at:M,rm:S,ct:w}));W=M;D=Q.B;D.getVideoData().RQ=!0;D.getVideoData().S=!0;D.A7(!0);l={};Q.U&&(l=Q.U.Mz(),M=Q.U.getVideoData().clientPlaybackNonce,l={crt:(l*1E3).toFixed(),cpn:M});D.qj("queued",l);W!==0&&D.seekTo(W+.01,{IK:!0,XO:3,N7:"videoqueuer_queued"});Q.D=new qZs(Q.G,Q.app.w7(),Q.B,x,Q.app,K);x=Q.D;x.status.status!==Infinity&&(By(x,
1),x.B.subscribe("internalvideodatachange",x.D5,x),x.U.subscribe("internalvideodatachange",x.D5,x),x.L_.C().j("html5_gapless_use_format_info_fix")&&(x.B.subscribe("internalvideoformatchange",x.D5,x),x.U.subscribe("internalvideoformatchange",x.D5,x)),x.B.subscribe("mediasourceattached",x.D5,x),x.U.subscribe("statechange",x.QY,x),x.B.subscribe("newelementrequired",x.Ya,x),x.D5());return Q.N};
yNn=function(Q){var W,x,D,K,l,M,w,S,b;g.U(function(z){switch(z.B){case 1:if(Q.d7()||!Q.N||!Q.B)return z.return();Q.S&&Q.app.w7().Kd(!0,!1);x=Q.app.C().j("html5_force_csdai_gapful_transition")&&((W=Q.app.w7())==null?void 0:W.getVideoData().isDaiEnabled());D=null;if(!Q.D||x){z.kf(2);break}g.P5(z,3);return g.A(z,Icv(Q.D),5);case 5:g.Cs(z,2);break;case 3:D=K=g.Jv(z);case 2:if(!Q.B)return z.return();g.qv.Op("vqsp",function(){Q.app.Ie(Q.B)});
if(!Q.B)return z.return();l=Q.B.DG();Q.app.C().j("html5_gapless_seek_on_negative_time")&&l&&l.getCurrentTime()<-.01&&Q.B.seekTo(0);g.qv.Op("vqpv",function(){Q.app.playVideo()});
if(D||x)Q.B?(M=D?D.message:"forced",(w=Q.U)==null||w.qj("gapfulfbk",{r:M}),Q.B.O1(M)):(S=Q.U)==null||S.qj("gapsp",{});b=Q.N;I7(Q);b&&b.resolve();return z.return(Promise.resolve())}})};
I7=function(Q,W){W=W===void 0?!1:W;if(Q.U){if(Q.L){var x=Q.U;Q.app.G1.removeEventListener(g.Ru("vqueued"),Q.X);x.removeCueRange(Q.L)}Q.U=null;Q.L=null}Q.D&&(Q.D.status.status!==6&&(x=Q.D,x.status.status!==Infinity&&x.L!==1&&x.tK("Canceled")),Q.D=null);Q.N=null;Q.B&&!W&&Q.B!==Q.app.Zp()&&Q.B!==Q.app.w7()&&gZ(Q.B);Q.B&&W&&Q.B.j6();Q.B=null;Q.S=!1};
fcs=function(Q){var W;return((W=Q.D)==null?void 0:W.currentVideoDuration)||-1};
ZWa=function(Q,W,x){if(Q.PK())return"qie";if(Q.B==null||Q.B.xf.d7()||Q.B.getVideoData()==null)return"qpd";if(W.videoId!==Q.B.XX())return"vinm";if(fcs(Q)<=0)return"ivd";if(x!==1)return"upt";if((x=Q.D)==null)Q=void 0;else if(x.getStatus().status!==5)Q="niss";else if(iWa(x.policy,x.B,x.U,x.tX)!=null)Q="pge";else{W=cNh(x);Q=W.Hp;var D=W.LD;W=g.X0(x.L_.C().experiments,"html5_shorts_gapless_next_buffer_in_seconds");x=x.X+W;D=Se(D.dP(),x);Q=Se(Q.dP(),x);Q=!(W>0)||D&&Q?null:"neb"}return Q!=null?Q:null};
Lu5=function(){g.Rd.call(this);var Q=this;this.fullscreen=0;this.N=this.D=this.pictureInPicture=this.B=this.U=this.inline=!1;this.L=function(){Q.PZ()};
ZG5(this.L);this.X=this.getVisibilityState(this.m$(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.J4(),this.e1(),this.Wo(),this.cz())};
Xj=function(Q){return!(Q.isMinimized()||Q.isInline()||Q.isBackground()||Q.J4()||Q.e1()||Q.Wo()||Q.cz())};
rN2=function(){};
g.m1=function(Q,W){g.N.call(this);this.B=new rN2;this.b_=this.N=this.L=null;this.U=Q;this.D=W};
tcv=function(Q){var W=Q.experiments,x=W.ij.bind(W);TC4=x("html5_use_async_stopVideo");OWs=x("html5_pause_for_async_stopVideo");EbQ=x("html5_not_reset_media_source");x("html5_listen_for_audio_output_changed")&&(cIF=!0);rg=x("html5_not_reset_media_source");FuO=x("html5_not_reset_media_source");u9=x("html5_retain_source_buffer_appends_for_debugging");$Rv=x("web_watch_pip");x("html5_mediastream_applies_timestamp_offset")&&(vn=!0);var D=g.X0(W,"html5_cobalt_override_quic");D&&PG("QUIC",+(D>0));(D=g.X0(W,
"html5_cobalt_audio_write_ahead_ms"))&&PG("Media.AudioWriteDurationLocal",D);(D=x("html5_cobalt_enable_decode_to_texture"))&&PG("Media.PlayerConfiguration.DecodeToTexturePreferred",D?1:0);(Q.jk()||x("html5_log_cpu_info"))&&yY5();Error.stackTraceLimit=50;var K=g.X0(W,"html5_idle_rate_limit_ms");K&&Object.defineProperty(window,"requestIdleCallback",{value:function(l){return window.setTimeout(l,K)}});
NE4(Q.L);GO=x("html5_use_ump_request_slicer");dyz=x("html5_record_now");x("html5_disable_streaming_xhr")&&(ta=!1);x("html5_byterate_constraints")&&(MD=!0);x("html5_use_non_active_broadcast_for_post_live")&&(TI=!0);x("html5_sunset_aac_high_codec_family")&&(f3["141"]="a");x("html5_enable_encrypted_av1")&&(Tu=!0)};
QnD=function(Q){return Q.slice(12).replace(/_[a-z]/g,function(W){return W.toUpperCase().replace("_","")}).replace("Dot",".")};
W84=function(Q){var W={},x;for(x in Q.experiments.flags)if(x.startsWith("cobalt_h5vcc")){var D=QnD(x),K=g.X0(Q.experiments,x);D&&K&&(W[D]=PG(D,K))}return W};
Nv=function(Q,W,x,D,K){K=K===void 0?[]:K;g.N.call(this);this.bj=Q;this.gG=W;this.N=x;this.segments=K;this.B=void 0;this.U=new Map;K.length&&(this.B=K[0])};
xX1=function(Q){if(!(Q.segments.length<2)){var W=Q.segments.shift();if(W){var x=W.B,D=[];if(x.size){x=g.V(x.values());for(var K=x.next();!K.done;K=x.next()){K=g.V(K.value);for(var l=K.next();!l.done;l=K.next()){l=l.value;for(var M=g.V(l.segments),w=M.next();!w.done;w=M.next())(w=cy(w.value))&&D.push(w);l.removeAll()}}}(x=cy(W))&&D.push(x);D=g.V(D);for(x=D.next();!x.done;x=D.next())Q.U.delete(x.value);W.dispose()}}};
gH=function(Q,W,x,D){if(!Q.B||W>x)return!1;W=new Nv(Q.bj,W,x,Q.B,D);D=g.V(D);for(x=D.next();!x.done;x=D.next()){x=x.value;var K=cy(x);K&&K!==cy(Q.B)&&Q.U.set(K,[x])}Q=Q.B;Q.B.has(W.UQ())?Q.B.get(W.UQ()).push(W):Q.B.set(W.UQ(),[W]);return!0};
EF=function(Q,W){return Q.U.get(W)};
DXQ=function(Q,W,x){Q.U.set(W,x)};
yi=function(Q,W,x,D,K,l){return new K8l(x,x+(D||0),!D,W,Q,K,l)};
K8l=function(Q,W,x,D,K,l,M){g.N.call(this);this.gG=Q;this.D=W;this.U=x;this.type=D;this.N=K;this.videoData=l;this.Bf=M;this.B=new Map;pQ(l)};
cy=function(Q){return Q.videoData.clientPlaybackNonce};
lzh=function(Q){if(Q.B.size)for(var W=g.V(Q.B.values()),x=W.next();!x.done;x=W.next()){x=g.V(x.value);for(var D=x.next();!D.done;D=x.next())D.value.dispose()}Q.B.clear()};
jn4=function(Q){this.end=this.start=Q};
g.eA=function(){this.B=new Map;this.D=new Map;this.U=new Map};
g.f7=function(Q,W,x,D){g.N.call(this);var K=this;this.api=Q;this.bj=W;this.playback=x;this.app=D;this.X3=new g.eA;this.U=new Map;this.X=[];this.L=[];this.D=new Map;this.WN=new Map;this.G=new Map;this.O3=null;this.Gn=NaN;this.Kn=this.Y6=null;this.fn=new g.O3(function(){MKF(K,K.Gn,K.Y6||void 0)});
this.events=new g.I0(this);this.Vj=15E3;this.fS=new g.O3(function(){K.LS=!0;K.playback.Wb(K.Vj);Raa(K);K.Gi(!1)},this.Vj);
this.LS=!1;this.S=new Map;this.SZ=[];this.F3=null;this.b6=new Set;this.g7=[];this.Cn=[];this.gE=[];this.cD=[];this.B=void 0;this.KS=0;this.s3=!0;this.T=!1;this.eZ=[];this.Pt=new Set;this.RQ=new Set;this.UT=new Set;this.DL=0;this.I5=new Set;this.yA=0;this.Nk=this.Sk=!1;this.UV=this.N="";this.pS=null;this.logger=new g.MP("dai");this.by={quj:function(){return K.U},
Q47:function(){return K.X},
prZ:function(){return K.D},
Iy:function(l){K.onCueRangeEnter(K.U.get(l))},
VG3:function(l){K.onCueRangeExit(K.U.get(l))},
KWZ:function(l,M){K.U.set(l,M)},
fTS:function(l){K.UV=l},
l$:function(){return K.l$()},
uV7:function(l){return K.G.get(l)},
URt:function(){return K.pS}};
this.playback.getPlayerType();this.playback.wD(this);this.tf=this.bj.jk();g.y(this,this.fn);g.y(this,this.events);g.y(this,this.fS);this.events.W(this.api,g.Ru("serverstitchedcuerange"),this.onCueRangeEnter);this.events.W(this.api,g.wt("serverstitchedcuerange"),this.onCueRangeExit)};
sn1=function(Q,W,x,D,K,l,M,w){var S=wwa(Q,l,l+K);Q.LS&&Q.T1({adaftto:1});x||Q.T1({missadcon:1,enter:l,len:K,aid:w});Q.uj&&!Q.uj.eV&&(Q.uj.eV=w);Q.Nk&&Q.T1({adfbk:1,enter:l,len:K,aid:w});var b=Q.playback;M=M===void 0?l+K:M;l===M&&!K&&Q.bj.j("html5_allow_zero_duration_ads_on_timeline")&&Q.T1({attl0d:1});l>M&&Z$(Q,{reason:"enterTime_greater_than_return",gG:l,VA:M});var z=b.Jn()*1E3;l<z&&Z$(Q,{reason:"enterTime_less_than_minSeekableTime",enterMs:l,minSkMs:z},Q.bj.j("html5_report_ssdai_timeline_error_as_fatal"));
b=b.getDuration()*1E3;M>b&&Z$(Q,{reason:"parent_return_greater_than_content_duration",VA:M,V67:b});b=null;z=g.wl(Q.L,{VA:l},function(k,X){return k.VA-X.VA});
z>=0&&(b=Q.L[z],b.VA>l&&S8z(Q,W.video_id||"",l,M,b));if(S&&b)for(z=0;z<Q.g7.length;z++){if(Q.g7[z].identifier===S.identifier){Q.g7.splice(z,1);break}}else if(S)return Q.T1({rejectAttl:1}),w&&!dM(Q.cD,function(k){return k===w})&&(Q.T1({rejectAdBreakAttl:w},!0),Q.cD.push(w)),L7(Q),"";
S="ss_childplayback_"+bFF++;Q.bj.j("html5_enable_ssap_entity_id")?(W=new g.f1(Q.bj,W),z=W.clientPlaybackNonce):(W.cpn||(W.cpn=g.Cu(16)),z=W.cpn,W=new g.f1(Q.bj,W));W.Ox=S;x={Ox:S,playerType:D,durationMs:K,gG:l,VA:M,cpn:z,videoData:W,errorCount:0,ssdaiAdsConfig:x};g.zS(Q.L,x,function(k,X){return k.gG===X.gG?k.durationMs-X.durationMs:k.gG-X.gG});
Q.D.set(z,x);Q.WN.set(S,x);Q.T1({attlDone:M-l,acpn:z,et:l,prt:M});w?x.pR=w:b?x.pR=b.pR:x.pR=x.cpn;if(l=x.pR)(D=Q.G.get(l))?(D.push(x),g.bZ(D,function(k,X){return k.gG-X.gG})):Q.G.set(l,[x]);
Q.fS.isActive()&&(Q.LS=!1,Q.fS.stop(),Raa(Q),Q.Gi(!0));return S};
rH=function(Q,W,x){return{ssvc:W,cpn:(x==null?void 0:x.cpn)||"",vid:(x==null?void 0:x.videoData.videoId)||"",ct:(Q.playback.getCurrentTime()||0).toFixed(3),cmt:(Q.playback.cZ()||0).toFixed(3)}};
TH=function(Q,W){var x=Q.app;E_(x.sx())&&x.Gt.ek(2)&&Q.logger.B(360717806,"SSTM lingering playback");Q.api.Xq();Q.api.publish("serverstitchedvideochange",W.Ox,W.Uc)};
ED=function(Q,W,x){var D=Q.T,K=Q.l$(),l=Q.N;Q.N="";var M=W.L3-x.L3;Math.abs(M)>.5&&Q.T1({ttdtb:1,delta:M,cpn:K.cpn,enter:W.adCpn,exit:x.adCpn,seek:D,skip:l});Q.api.j("html5_ssdai_enable_media_end_cue_range")&&Q.api.tq();if(W.isAd&&x.isAd){K=!!l;if(W.adCpn&&x.adCpn){var w=Q.D.get(W.adCpn);var S=Q.D.get(x.adCpn)}K?Q.T1({igtransskip:1,enter:W.adCpn,exit:x.adCpn,seek:D,skip:l}):OD(Q,S,w,x.L3,W.L3,D,K)}else if(!W.isAd&&x.isAd){Q.UV=K.cpn;Q.api.publish("serverstitchedvideochange");w=rH(Q,"a2c");Q.T1(w);
Q.DL=0;if(w=x.Jr)Q.KS=w.end;var b;x.adCpn&&(b=Q.D.get(x.adCpn));b&&Q.playback.bV(b,K,x.L3,W.L3,D,!!l)}else if(W.isAd&&!x.isAd){var z;W.adCpn&&(z=Q.D.get(W.adCpn));z&&(Q.KS=0,Q.UV=z.cpn,TH(Q,z),b=rH(Q,"c2a",z),Q.T1(b),Q.DL=1,Q.playback.bV(K,z,x.L3,W.L3,D,!!l))}};
F7=function(Q,W,x){x=x===void 0?0:x;var D=g.wl(Q.L,{gG:(W+x)*1E3},function(w,S){return w.gG-S.gG});
D=D<0?(D+2)*-1:D;if(D>=0)for(var K=W*1E3,l=D;l<=D+1&&l<Q.L.length;l++){var M=Q.L[l];if(K>=M.gG-x*1E3&&K<=M.VA+x*1E3)return{Fy:M,lU:W}}return{Fy:void 0,lU:W}};
kcD=function(Q,W){var x="";(W=zav(Q,W))&&(x=W.getId());return x?Q.D.get(x):void 0};
zav=function(Q,W){if(Q.UV){var x=Q.U.get(Q.UV);if(x&&x.start-200<=W&&x.end+200>=W)return x}Q=g.V(Q.U.values());for(x=Q.next();!x.done;x=Q.next())if(x=x.value,x.start<=W&&x.end>=W)return x};
MKF=function(Q,W,x){var D=Q.Kn||Q.app.w7().getPlayerState();tk(Q,!0);Q.playback.seekTo(W,x);Q=Q.app.w7();W=Q.getPlayerState();D.isOrWillBePlaying()&&!W.isOrWillBePlaying()?Q.playVideo():D.isPaused()&&!W.isPaused()&&Q.pauseVideo()};
tk=function(Q,W){Q.Gn=NaN;Q.Y6=null;Q.fn.stop();Q.O3&&W&&Q.O3.nm();Q.Kn=null;Q.O3=null};
Xwn=function(Q){var W=W===void 0?-1:W;var x=x===void 0?Infinity:x;for(var D=[],K=g.V(Q.L),l=K.next();!l.done;l=K.next())l=l.value,(l.gG<W||l.VA>x)&&D.push(l);Q.L=D;D=g.V(Q.U.values());for(K=D.next();!K.done;K=D.next())K=K.value,K.start>=W&&K.end<=x&&(Q.playback.removeCueRange(K),Q.U.delete(K.getId()),Q.T1({rmAdCR:1}));D=F7(Q,W/1E3);W=D.Fy;D=D.lU;if(W&&(D=D*1E3-W.gG,K=W.gG+D,W.durationMs=D,W.VA=K,D=Q.U.get(W.cpn))){K=g.V(Q.X);for(l=K.next();!l.done;l=K.next())l=l.value,l.start===D.end?l.start=W.gG+
W.durationMs:l.end===D.start&&(l.end=W.gG);D.start=W.gG;D.end=W.gG+W.durationMs}if(W=F7(Q,x/1E3).Fy){var M;D="playback_timelinePlaybackId_"+W.Ox+"_video_id_"+((M=W.videoData)==null?void 0:M.videoId)+"_durationMs_"+W.durationMs+"_enterTimeMs_"+W.gG+"_parentReturnTimeMs_"+W.VA;Q.Av("Invalid_clearEndTimeMs_"+x+"_that_falls_during_"+D+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
oxD=function(Q){Q.X3.clearAll();Q.U.clear();Q.X=[];Q.L=[];Q.D.clear();Q.WN.clear();Q.G.clear();Q.S.clear();Q.SZ=[];Q.F3=null;Q.b6.clear();Q.g7=[];Q.Cn=[];Q.gE=[];Q.cD=[];Q.eZ=[];Q.Pt.clear();Q.RQ.clear();Q.UT.clear();Q.I5.clear();Q.LS=!1;Q.B=void 0;Q.KS=0;Q.s3=!0;Q.T=!1;Q.DL=0;Q.yA=0;Q.Sk=!1;Q.Nk=!1;Q.N="";Q.fS.isActive()&&L7(Q)};
Y8Q=function(Q,W,x,D,K,l){if(!Q.Nk)if(g.uM5(Q,x))Q.T1({gdu:"undec",seg:x,itag:K});else if(W=Qq(Q,W,x,D,l),!(Q.playback.getVideoData().aQ()&&(W==null?0:W.Oq)))return W};
Qq=function(Q,W,x,D,K){var l=Q.S.get(x);if(!l){if(l=nxz(Q,W))return l;W=Q.ul(x-1,D!=null?D:2);if(K)return Q.T1({misscue:K,sq:x,type:D,prevsstate:W==null?void 0:W.Bv,prevrecord:Q.S.has(x-1)}),Q.S.get(x-1);if((W==null?void 0:W.Bv)===2)return Q.T1({adnf:1,sq:x,type:D,prevrecord:Q.S.has(x-1)}),Q.S.get(x-1)}return l};
nxz=function(Q,W){W+=Q.X4();if(Q.playback.getVideoData().aQ())a:{var x=1;x=x===void 0?0:x;var D=W*1E3;Q=g.V(Q.L);for(var K=Q.next();!K.done;K=Q.next()){K=K.value;var l=K.Uc?K.Uc*1E3:K.gG;if(D>=K.gG-x*1E3&&D<=l+K.durationMs+x*1E3){D={Fy:K,lU:W};break a}}D={Fy:void 0,lU:W}}else D=F7(Q,W),((x=D)==null?0:x.Fy)||(D=F7(Q,W,1));var M;return(M=D)==null?void 0:M.Fy};
VK4=function(Q,W){W=W===void 0?"":W;var x=w5(W)||void 0;if(!W||!x){var D;Q.T1({adcfg:(D=W)==null?void 0:D.length,dcfg:x==null?void 0:x.length})}return x};
P4O=function(Q){if(Q.eZ.length)for(var W=g.V(Q.eZ),x=W.next();!x.done;x=W.next())Q.onCueRangeExit(x.value);W=g.V(Q.U.values());for(x=W.next();!x.done;x=W.next())Q.playback.removeCueRange(x.value);W=g.V(Q.X);for(x=W.next();!x.done;x=W.next())Q.playback.removeCueRange(x.value);Q.U.clear();Q.X=[];Q.X3.clearAll();Q.B||(Q.s3=!0)};
OD=function(Q,W,x,D,K,l,M){if(W&&x){Q.UV=x.cpn;TH(Q,x);var w=rH(Q,"a2a",x);Q.T1(w);Q.DL++;Q.playback.bV(W,x,D||0,K||0,!!l,!!M)}else Q.T1({misspbkonadtrans:1,enter:(x==null?void 0:x.cpn)||"",exit:(W==null?void 0:W.cpn)||"",seek:l,skip:M})};
C4l=function(Q,W,x,D){if(D)for(D=0;D<Q.X.length;){var K=Q.X[D];if(K.start<W&&K.end>x){var l=K.end;K.end=W;vx2(Q,x,l)}else if(K.start>=W&&K.start<x&&K.end>x)K.start=x;else if(K.end>W&&K.end<=x&&K.start<W)K.end=W;else if(K.start>=W&&K.end<=x){Q.playback.removeCueRange(K);if(Q.eZ.includes(K))Q.onCueRangeExit(K);Q.X.splice(D,1);continue}D++}else vx2(Q,W,x)};
vx2=function(Q,W,x){W=Q.GO(W,x);x=!0;g.zS(Q.X,W,function(M,w){return M.start-w.start});
for(var D=0;D<Q.X.length;){if(D>0){var K=Q.X[D],l=Q.X[D-1];if(Math.round(l.end/1E3)>=Math.round(K.start/1E3)){l.end=K.end;K!==W?Q.playback.removeCueRange(K):x=!1;Q.X.splice(D,1);continue}}D++}if(x)for(Q.playback.addCueRange(W),W=Q.playback.jA("serverstitchedcuerange",36E5),W=g.V(W),x=W.next();!x.done;x=W.next())Q.U.delete(x.value.getId())};
W8=function(Q,W,x){if(x===void 0||!x){x=g.V(Q.SZ);for(var D=x.next();!D.done;D=x.next()){D=D.value;if(W>=D.start&&W<=D.end)return;if(W===D.end+1){D.end+=1;return}}Q.SZ.push(new jn4(W))}};
g.uM5=function(Q,W){Q=g.V(Q.SZ);for(var x=Q.next();!x.done;x=Q.next())if(x=x.value,W>=x.start&&W<=x.end)return!0;return!1};
DY=function(Q,W,x){var D;if(D=Q.playback.getVideoData().aQ()&&Q.bj.j("html5_lifa_extent_last_unfinished_ad_cue_range")||Q.bj.j("html5_ssdai_extent_last_unfinished_ad_cue_range"))D=(D=Q.D.get(W))&&D.pR?(Q=Q.G.get(D==null?void 0:D.pR))&&Q.slice(-1)[0].cpn===W:!1;return D&&x===2?1E3:0};
S8z=function(Q,W,x,D,K){var l;W={reason:"overlapping_playbacks",P_f:W,gG:x,VA:D,Spj:K.Ox,am7:((l=K.videoData)==null?void 0:l.videoId)||"",AsZ:K.durationMs,hq3:K.gG,tGS:K.VA};Z$(Q,W)};
Z$=function(Q,W,x){Q.playback.C8(W,x)};
J9h=function(Q,W){var x=[];Q=Q.G.get(W);if(!Q)return[];Q=g.V(Q);for(W=Q.next();!W.done;W=Q.next())W=W.value,W.cpn&&x.push(W.cpn);return x};
pw1=function(Q,W,x){var D=0;Q=Q.G.get(x);if(!Q)return-1;Q=g.V(Q);for(x=Q.next();!x.done;x=Q.next()){if(x.value.cpn===W)return D;D++}return-1};
hal=function(Q,W){var x=0;Q=Q.G.get(W);if(!Q)return 0;Q=g.V(Q);for(W=Q.next();!W.done;W=Q.next())W=W.value,W.durationMs!==0&&W.VA!==W.gG&&x++;return x};
az1=function(Q,W,x){var D=!1;if(x&&(x=Q.G.get(x))){x=g.V(x);for(var K=x.next();!K.done;K=x.next())K=K.value,K.durationMs!==0&&K.VA!==K.gG&&(K=K.cpn,W===K&&(D=!0),D&&!Q.RQ.has(K)&&(Q.T1({decoratedAd:K}),Q.RQ.add(K)))}};
Raa=function(Q){Q.tf&&Q.T1({adf:"0_"+((new Date).getTime()/1E3-Q.yA)+"_isTimeout_"+Q.LS})};
wwa=function(Q,W,x){if(Q.g7.length)for(var D=g.V(Q.g7),K=D.next(),l={};!K.done;l={sH:void 0},K=D.next()){l.sH=K.value;K=l.sH.startSecs*1E3;var M=l.sH.eE*1E3+K;if(W>K&&W<M||x>K&&x<M)return dM(Q.gE,function(w){return function(S){return S.identifier===w.sH.identifier}}(l))||(Q.T1({adskip:W}),Q.gE.push(l.sH)),l.sH}};
L7=function(Q){Q.LS=!1;Q.fS.isActive()&&Raa(Q);Q.fS.stop();Q.Gi(!1)};
Gc1=function(){g.f7.apply(this,arguments);this.hn=0};
dXO=function(Q,W,x){Q.playback.QI();Q.playback.seekTo(W,x);Q.playback.playVideo()};
iFn=function(Q,W,x,D){W={jX:W,lA:x,L$:Q.playback.getCurrentTime(),UCS:D};Q.Pk(W)};
A9a=function(Q,W){if(Q.playback.getVideoData().aQ()){var x=Q.G.get(W);if(x){x=g.V(x);for(var D=x.next();!D.done;D=x.next())Q.tZ(D.value);Q.S.clear();Q.G.delete(W)}}};
BU4=function(Q,W,x){g.N.call(this);var D=this;this.api=Q;this.timeline=W;this.playback=x;this.kI=new Map;this.xW=new Map;this.j7=new Map;this.events=new g.I0(this);this.DL=0;this.SC=this.UV="";this.FS=[];this.vz=new Set;this.YM=new g.O3(function(){D.api.playVideo(1,D.api.j("html5_ssap_keep_media_on_finish_segment"));D.api.qj("ssap",{nve:""+D.UV});HF5(D,4)},3E4);
this.Ld="";this.DR=new Set;this.o9=!0;this.RT=new Map;this.l4=new Set;this.El=this.ke=!1;this.dR="";this.Z2=null;this.by={cE7:function(){return D.xW},
Iy:function(K){if(K=D.xW.get(K))D.onCueRangeEnter(K)},
onCueRangeEnter:function(K){D.onCueRangeEnter(K)},
pxj:function(){return D.ke}};
this.playback.getPlayerType();UX5(this);W.D=void 0;this.events.W(this.api,g.Ru("ssap"),this.onCueRangeEnter);this.events.W(this.api,"internalAbandon",this.Wk);this.api.j("html5_ssap_timeline_handle_error_and_abandon")&&this.events.W(this.api,"presentingplayerstatechange",this.qD);g.y(this,this.YM);this.IA3=g.X0(Q.C().experiments,"html5_ssap_segment_end_media_threshold_ms")||200;this.dK=Q.j("html5_disable_ssap_append_pause");this.ke=q81(this)};
$X5=function(Q,W,x,D){for(var K=g.V(D),l=K.next();!l.done;l=K.next()){var M=l.value;M.U||((l=cy(M),M=M.getVideoData(),l&&M&&Q.playback.xf.Tf().KO(l,M,2),M)?l||(M=void 0,Q.api.qj("ssap",{macac:l,maccc:(M=Q.timeline.B)==null?void 0:cy(M)})):(M=void 0,Q.api.qj("ssap",{mvac:l,mvcc:(M=Q.timeline.B)==null?void 0:cy(M)})))}return gH(Q.timeline,W,x,D)};
mXh=function(Q,W){if(!Q.vz.has(Q.UV)){var x=0,D=0,K=EF(Q.timeline,Q.UV);if(K==null?0:K.length)for(K=g.V(K),K=K.next();!K.done;K=K.next()){D=K.value;x=D.UQ();D=D.cK();break}if(!(D>0&&D>W*1E3+Q.IA3)&&(D=Izh(Q,x))){W=!1;x=void 0;D=g.V(D.segments);for(K=D.next();!K.done;K=D.next()){K=K.value;if(W){x=K;break}cy(K)===Q.UV&&(W=!0)}D=void 0;if(x)D=cy(x);else if(W){var l;D=(l=Q.timeline.B)==null?void 0:cy(l)}if(D)Q.finishSegmentByCpn(Q.UV,D,2,void 0);else{var M;Q.api.qj("ssap",{mfnc:1,mfncc:(M=Q.timeline.B)==
null?void 0:cy(M)})}}}};
q81=function(Q){return Q.api.j("html5_force_ssap_gapful_switch")||Q.api.j("html5_ssap_enable_legacy_browser_logic")&&!nS()};
gxs=function(Q,W,x,D){Q.j7.set(W,D);NUn(Q,W,x);c9O(Q,x)};
$2=function(Q,W){Q=EF(Q.timeline,W);return(Q==null?0:Q.length)?Q[0].UQ():0};
IY=function(Q,W){var x=x===void 0?!1:x;var D=Q.timeline.B;if(!D)return{clipId:"",wm:0};var K=y9s(Q,W,x);if(K)return{clipId:cy(K)||"",wm:K.UQ()};Q.api.qj("mci",{cs:cy(D),mt:W,tl:jH(Q),invt:!!x});return{clipId:"",wm:0}};
rY=function(Q){var W=Q.timeline.B;if(!W)return 0;Q=0;if(W.B.size===0)return(W.cK()-W.UQ())/1E3;W=W.B.values();W=g.V(W);for(var x=W.next();!x.done;x=W.next()){x=g.V(x.value);for(var D=x.next();!D.done;D=x.next())D=D.value,Q+=(D.cK()-D.UQ())/1E3}return Q};
fz1=function(Q,W){return(Q=ean(Q,W*1E3))?Q.UQ():0};
ZFs=function(Q,W){var x=EF(Q.timeline,W);W=0;if(x==null?0:x.length)for(Q=g.V(x),x=Q.next();!x.done;x=Q.next())x=x.value,W+=(x.cK()-x.UQ())/1E3;else return rY(Q);return W};
ean=function(Q,W){if(Q=EF(Q.timeline,Q.UV)){Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next())if(x=x.value,x.UQ()<=W&&x.cK()>=W)return x}};
L8Q=function(Q){var W=Q.playback.getVideoData();Q.UV&&(Q=Q.kI.get(Q.UV))&&(W=Q);return W};
Izh=function(Q,W,x){x=x===void 0?!1:x;var D=Q.timeline.B;if(D){D=D.B;var K=Array.from(D.keys());g.bZ(K);W=g.wl(K,W);W=D.get(K[W<0?(W+2)*-1:W]);if(!x&&W){x=g.V(W);for(W=x.next();!W.done;W=x.next())if(W=W.value,W.UQ()!==W.cK())return W;return Q.timeline}return W&&W.length>0?W[W.length-1]:void 0}};
y9s=function(Q,W,x){x=x===void 0?!1:x;var D=Izh(Q,W,x);if(D){if(Q=D.segments,Q.length){for(var K=g.V(Q),l=K.next();!l.done;l=K.next())if(l=l.value,l.UQ()<=W&&l.cK()>W)return l;if(x&&D.UQ()===D.cK())return Q[0]}}else Q.api.qj("ssap",{ctnf:1})};
HF5=function(Q,W){var x;if(Q.Ld)for(x=Q.FS.shift();x&&x!==Q.Ld;)x=Q.FS.shift();else x=Q.FS.shift();if(x){if(Q.vz.has(x))r9a(Q,x);else if(W===3||W===4)Q.YM.stop(),Q.api.playVideo(1,Q.api.j("html5_ssap_keep_media_on_finish_segment"));Q.j7.set(Q.UV,W);Q.api.qj("ssap",{onvftn:1});c9O(Q,x);return!1}Q.api.qj("ssap",{onvftv:1});Q.YM.stop();return!0};
r9a=function(Q,W){W=EF(Q.timeline,W);if(W==null?0:W.length)Q.api.pauseVideo(),Q.YM.start(W[0].Bf)};
c9O=function(Q,W){var x=Q.playback.getVideoData(),D=x.clientPlaybackNonce;Q.Z2&&(Q.events.mJ(Q.Z2),Q.Z2=null,Q.playback.q1());var K=Q.UV,l=!1;if(K==="")K=D,l=!0;else if(K===void 0){var M=Q.playback.xf.Tf().Rz;M&&Q.timeline.U.has(M)&&(K=M);Q.api.qj("ssap",{mcc:K+";"+W});Q.playback.zt(new Gu("ssap.timelineerror",{e:"missing_current_cpn",pcpn:K,ccpn:W}))}if(K===W)l&&x&&TUn(Q,x,l);else{M=Q.j7.get(K);if(!l&&(!M||M!==3&&M!==5&&M!==6&&M!==7)){var w=Q.api.tq(Q.UV);Q.api.qj("ssap",{nmec:w,cpc:Q.UV,ec:W})}M&&
M!==2||Q.Wx();Q.UV=W;Q.Wx();W=EF(Q.timeline,Q.UV);if(W==null?0:W.length){W=W[0];w=W.getType();K!==D&&(Q.SC=K,x=Q.kI.get(K));M?Q.j7.delete(K):M=l?1:2;Q.api.j("html5_ssap_pacf_qoe_ctmp")&&w===2&&!W.U&&(Q.Z2=Q.events.W(Q.api,"onVideoProgress",Q.XZj));Q.api.qj("ssapt",{ostro:M,pcpn:K,ccpn:Q.UV});a:{var S=Q.UV;if(!Q.xW.has(S))for(var b=g.V(Q.xW),z=b.next();!z.done;z=b.next()){var k=g.V(z.value);z=k.next().value;k=k.next().value;if(k.getId().includes(S)){S=z;break a}}}z=S;b=Q.api.C().j("html5_ssap_insert_su_before_nonvideo")&&
z!==Q.UV;k=Q.playback.xf.Tf();if(k.Rz!==z){var X=k.oW(k.Rz);S=k.oW(z);k.Rz=z;S!==X&&(X.qoe&&(z=X.qoe,z.provider.bj.jk()&&z.qj("ssap",{qoesus:"1",vid:z.provider.videoData.videoId}),b&&(b=g.n9(z.provider),DHs(z,b,"SU")),isNaN(z.X)||g.nl(z.X)),S.resume())}b=Math.max(0,Ki(Q,K));S=Q.playback.getCurrentTime();z=Math.max(0,S-$2(Q,Q.UV)/1E3);S=W.getVideoData();k=M===3||M===5||M===6||M===7;Q.api.j("html5_ssap_skip_illegal_seeking")&&(X=Q.playback.getPlayerState(),X=!g.r(X,8)&&g.r(X,16),k=k||X,X&&Q.api.qj("ssap",
{iis:1}));X=Q.playback;var u=K,Y=Q.UV,v=Q.playback.getPlayerState();X.xf.Tf().Pk(u,Y,b,z,!1,k,v,!0);Q.api.qj("ssapt",{ostri:M,pcpn:K,ccpn:Q.UV});var J;b=K;z=Q.UV;k=(J=Q.RT.get(K))!=null?J:(0,g.a8)();pys(b,z,D,S,k,x);Q.RT.delete(K);l?x=void 0:x||Q.api.qj("ssap",{pvdm:K+";"+Q.UV,pvdmc:Q.UV===D?"1":"0"});Q.api.qj("ssap",{tpac:K+";"+Q.UV,tpcc:D,tpv:(S==null?0:S.ET())?"1":"0"},!1,1);Q.api.C().j("html5_ssap_cleanup_player_switch_ad_player")&&Q.api.Xq();Q.api.publish("videodatachange","newdata",S,w,x,M);
W.U||Q.playback.getVideoData().publish("dataupdated");Q.vz.delete(K);Q.Ld="";S&&w===1?TUn(Q,S):Q.playback.qj("ssap",{nis:Q.UV});w===2?Q.DL++:Q.DL=0}}};
TUn=function(Q,W,x){x=x===void 0?!1:x;if(W.startSeconds&&Q.o9){var D=W.startSeconds;W=EF(Q.timeline,W.clientPlaybackNonce);if(W==null?0:W.length)D+=W[0].UQ()/1E3,Q.api.j("htm5_ssap_ignore_initial_seek_if_too_big")&&D>=Q.yM()||(Q.playback.seekTo(D,{Va:!0}),Q.o9=!1,Q.playback.qj("ssap",{is:Q.UV,co:x?"1":"0",tse:D.toFixed()}))}};
NUn=function(Q,W,x){W=EF(Q.timeline,W);if(W!=null&&W.length&&(W=Izh(Q,W[0].UQ()))){W=g.V(W.segments);for(var D=W.next();!D.done;D=W.next()){D=D.value;if(cy(D)===x)break;if(D=cy(D)){var K=Q.xW.get(D);K&&Q.playback.removeCueRange(K);Q.xW.delete(D)}}}};
mv=function(Q){return Q.playback.getVideoData().clientPlaybackNonce};
fvv=function(Q,W){if(Q.ke&&Q.UV!==W)return!1;if(Q.dK)return!0;if(W=Q.xW.get(W))if(W=W.getId().split(","),W.length>1)for(var x=0;x<W.length;x++){var D=x<W.length-1?W[x+1]:"";if(Q.vz.has(W[x]))return W[x]===Q.UV&&!Q.vz.has(D)}return!0};
AEz=function(Q,W,x){y9s(Q,W)||Q.playback.qj("ssap",{ilgsk:W.toFixed(),mep:x?"1":"0",tl:jH(Q)})};
Ki=function(Q,W){W=W||Q.UV;var x=Q.kI.get(W);return x?x.s3:W!==mv(Q)?0:Q.playback.getVideoData().s3};
jH=function(Q){var W=Q.UV;W||(W=Q.playback.getVideoData().clientPlaybackNonce);var x,D,K=Array.from((D=(x=Q.timeline.B)==null?void 0:x.B.values())!=null?D:[]);x=[];if(K==null?0:K.length)for(D=g.V(K),K=D.next();!K.done;K=D.next())if(K=K.value,K.length&&K[0]&&(K=K[0].segments,K.length)){K=g.V(K);for(var l=K.next();!l.done;l=K.next()){var M=l.value;l="st."+M.UQ()+";";l+="et."+M.cK()+";";var w=cy(M);w&&(l+="cpn."+w+";",l+="a."+(W===w?1:0)+";");if(M=M.getVideoData())w=void 0,l+="vid."+((w=M.videoId)!=
null?w:"nvd");x.push(l)}}return(x.length?x.join(","):"empty."+W)+";cpcpn."+Q.fu()};
UX5=function(Q){Q.playback.Bg(Array.from(Q.xW.values()));Q.xW.clear()};
Exv=function(Q,W,x,D){g.N.call(this);var K=this;this.api=Q;this.bj=W;this.B=x;this.app=D;this.L=new Map;this.U=[];this.D=this.G=null;this.uj=NaN;this.X=this.N=this.T=null;this.S=new g.O3(function(){OF1(K,K.uj,K.T||void 0)});
this.pS=[];this.F3=new g.O3(function(){var l=K.pS.pop();if(l){var M=l.Ox,w=l.playerVars;l=l.playerType;w&&(w.prefer_gapless=!0,K.api.preloadVideoByPlayerVars(w,l,NaN,"",M),K.pS.length&&g.E3(K.F3,4500))}});
this.events=new g.I0(this);this.by={KDp:function(){return K.U}};
this.B.getPlayerType();g.y(this,this.S);g.y(this,this.F3);g.y(this,this.events);this.events.W(this.api,g.Ru("childplayback"),this.onCueRangeEnter);this.events.W(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.W(this.api,"presentingplayerstatechange",this.qD)};
Wzh=function(Q,W,x,D,K,l){var M=W.cpn,w=W.docid||W.video_id||W.videoId||W.id,S=Q.B;l=l===void 0?K+D:l;if(K>l)return lk(Q,"enterAfterReturn enterTimeMs="+K+" is greater than parentReturnTimeMs="+l.toFixed(3),M,w),"";var b=S.Jn()*1E3;if(K<b)return lk(Q,"enterBeforeMinSeekable enterTimeMs="+K+" is less than parentMinSeekableTimeMs="+b,M,w),"";b=S.getDuration()*1E3;if(l>b)return S="returnAfterDuration parentReturnTimeMs="+l.toFixed(3)+" is greater than parentDurationMs="+b+". And timestampOffset in seconds is "+
S.aW(),lk(Q,S,M,w),"";b=null;for(var z=g.V(Q.U),k=z.next();!k.done;k=z.next()){k=k.value;if(K>=k.gG&&K<k.VA)return lk(Q,"overlappingEnter",M,w),"";if(l<=k.VA&&l>k.gG)return lk(Q,"overlappingReturn",M,w),"";if(l===k.gG)return lk(Q,"outOfOrder",M,w),"";K===k.VA&&(b=k)}M="cs_childplayback_"+F8n++;w={Jr:jv(D,!0),tX:Infinity,target:null};var X={Ox:M,playerVars:W,playerType:x,durationMs:D,gG:K,VA:l,g8:w};Q.U=Q.U.concat(X).sort(function(v,J){return v.gG-J.gG});
b?tKO(Q,b,{Jr:jv(b.durationMs,!0),tX:b.g8.tX,target:X}):(W={Jr:jv(K,!1),tX:K,target:X},Q.L.set(W.Jr,W),S.addCueRange(W.Jr));W=!0;if(Q.B===Q.app.w7()&&(S=S.getCurrentTime()*1E3,S>=X.gG&&S<X.VA)){var u=Q.app.w7().getPlayerState(),Y=S-X.gG;Kr(function(){Q$Q(Q,X,Y/1E3,{},u)});
W=!1}W&&(Q.pS.unshift(X),g.E3(Q.F3,0));return M};
jv=function(Q,W){return new g.jz(Math.max(0,Q-5E3),W?0x8000000000000:Q-1,{namespace:"childplayback",priority:9})};
xVv=function(Q,W,x,D){Q.D=D;Q.api.sS(Q.B,x,W)};
DVz=function(Q,W,x,D){Q.D=D;D=W.Ox;var K=W.playerVars,l=W.playerType;Q.G=W;K&&(Q.bj.j("html5_enable_ssap_entity_id")&&(K.cached_load=!0),Q.api.enqueueVideoByPlayerVars(K,l,x,D))};
tKO=function(Q,W,x){var D=W.g8;W.g8=x;MK(Q,W)&&(x=Q.app.w7(),D.Jr===Q.D&&Ri(Q),x.removeCueRange(D.Jr),x.addCueRange(W.g8.Jr))};
Ri=function(Q){Q.G=null;Q.D=null;Q.api.PK()||Q.api.clearQueue()};
Kz1=function(Q,W){MK(Q,W)||lk(Q,"childPlaybackIsNotPresenting");return W.VA===W.gG+W.durationMs?W.gG+Q.app.w7().getCurrentTime()*1E3:W.VA};
lqs=function(Q,W){var x=0;Q=g.V(Q.U);for(var D=Q.next();!D.done;D=Q.next()){D=D.value;var K=D.gG/1E3+x,l=K+D.durationMs/1E3;if(K>W)break;if(l>W)return{Fy:D,lU:W-K};x=l-D.VA/1E3}return{Fy:null,lU:W-x}};
OF1=function(Q,W,x){x=x===void 0?{}:x;var D=Q.X||Q.app.w7().getPlayerState();wy(Q,!0);W=isFinite(W)?W:Q.B.Qk();var K=lqs(Q,W);W=K.lU;var l=(K=K.Fy)&&!MK(Q,K)||!K&&Q.B!==Q.app.w7(),M=W*1E3;M=Q.D&&Q.D.start<=M&&M<=Q.D.end;!l&&M||Ri(Q);K?Q$Q(Q,K,W,x,D):j$2(Q,W,x,D)};
j$2=function(Q,W,x,D){var K=Q.B;K!==Q.app.w7()&&Q.app.qP();K.seekTo(W,Object.assign({},{N7:"application_timelinemanager"},x));MRs(Q,D)};
Q$Q=function(Q,W,x,D,K){var l=MK(Q,W);if(!l){W.playerVars.prefer_gapless=!0;Q.bj.j("html5_enable_ssap_entity_id")&&(W.playerVars.cached_load=!0);var M=new g.f1(Q.bj,W.playerVars);M.Ox=W.Ox;Q.api.Fh(M,W.playerType)}M=Q.app.w7();l||M.addCueRange(W.g8.Jr);M.seekTo(x,Object.assign({},{N7:"application_timelinemanager"},D));MRs(Q,K)};
MRs=function(Q,W){Q=Q.app.w7();var x=Q.getPlayerState();W.isOrWillBePlaying()&&!x.isOrWillBePlaying()?Q.playVideo():W.isPaused()&&!x.isPaused()&&Q.pauseVideo()};
wy=function(Q,W){Q.uj=NaN;Q.T=null;Q.S.stop();Q.N&&W&&Q.N.nm();Q.X=null;Q.N=null};
MK=function(Q,W){Q=Q.app.w7();return!!Q&&Q.getVideoData().Ox===W.Ox};
Rgn=function(Q){var W=Q.U.find(function(K){return MK(Q,K)});
if(W){var x=Q.app.w7();Ri(Q);var D=new g.lW(8);W=Kz1(Q,W)/1E3;j$2(Q,W,{},D);x.qj("forceParentTransition",{childPlayback:1});Q.B.qj("forceParentTransition",{parentPlayback:1})}};
S41=function(Q,W,x){W=W===void 0?-1:W;x=x===void 0?Infinity:x;for(var D=W,K=x,l=g.V(Q.L),M=l.next();!M.done;M=l.next()){var w=g.V(M.value);M=w.next().value;w=w.next().value;w.tX>=D&&w.target&&w.target.VA<=K&&(Q.B.removeCueRange(M),Q.L.delete(M))}D=W;K=x;l=[];M=g.V(Q.U);for(w=M.next();!w.done;w=M.next())if(w=w.value,w.gG>=D&&w.VA<=K){var S=Q;S.G===w&&Ri(S);MK(S,w)&&S.app.qP()}else l.push(w);Q.U=l;D=lqs(Q,W/1E3);W=D.Fy;D=D.lU;W&&(D*=1E3,wz4(Q,W,D,W.VA===W.gG+W.durationMs?W.gG+D:W.VA));(W=lqs(Q,x/1E3).Fy)&&
lk(Q,"Invalid clearEndTimeMs="+x+" that falls during playback={timelinePlaybackId="+(W.Ox+" video_id="+W.playerVars.video_id+" durationMs="+W.durationMs+" enterTimeMs="+W.gG+" parentReturnTimeMs="+W.VA+"}.Child playbacks can only have duration updated not their start."))};
wz4=function(Q,W,x,D){W.durationMs=x;W.VA=D;D={Jr:jv(x,!0),tX:x,target:null};tKO(Q,W,D);MK(Q,W)&&Q.app.w7().getCurrentTime()*1E3>x&&(W=Kz1(Q,W)/1E3,x=Q.app.w7().getPlayerState(),j$2(Q,W,{},x))};
lk=function(Q,W,x,D){Q.B.qj("timelineerror",{e:W,cpn:x?x:void 0,videoId:D?D:void 0})};
s$Q=function(Q){Q&&Q!=="web"&&be4.includes(Q)};
sz=function(Q,W){g.N.call(this);var x=this;this.data=[];this.D=Q||NaN;this.U=W||null;this.B=new g.O3(function(){Sv(x);bk(x)});
g.y(this,this.B)};
zgQ=function(Q){Sv(Q);return Q.data.map(function(W){return W.value})};
Sv=function(Q){var W=(0,g.a8)();Q.data.forEach(function(x){x.expire<W&&zw(Q,x,!0)});
Q.data=g.Rv(Q.data,function(x){return!(x.expire<W)})};
zw=function(Q,W,x){x&&Q.U&&Q.U(W.value)};
bk=function(Q){Q.B.stop();var W=Infinity;for(var x=g.V(Q.data),D=x.next();!D.done;D=x.next())D=D.value,D.expire<W&&(W=D.expire);W&&isFinite(W)&&(W=Math.max(W-Date.now(),100),Q.B.start(W))};
ky=function(){g.N.call(this);this.B=new sz(5,null);g.y(this,this.B);this.U=new sz(15,null);g.y(this,this.U)};
M7s=function(Q,W){return W?!!Q.B.get(W):!1};
k9v=function(Q,W){Q.dataset.version=W};
ugO=function(Q){g.L.call(this,{K:"div",lj:["html5-video-player"],Z:{tabindex:Q.C().disableOrganicUi?"":"-1",id:Q.webPlayerContextConfig?Q.webPlayerContextConfig.rootElementId:Q.config.attrs.id},V:[{K:"div",Y:g.LJ.VIDEO_CONTAINER,Z:{"data-layer":"0"}}]});var W=this;this.app=Q;this.rf=this.Nj(g.LJ.VIDEO_CONTAINER);this.O9=new g.lq(0,0,0,0);this.tO=null;this.oJ=new g.lq(0,0,0,0);this.zD=this.bv=this.nx=NaN;this.ov=this.va=this.MG=this.Mv=!1;this.PX=NaN;this.zs=!1;this.EC=null;this.Rg=function(){W.element.focus({preventScroll:!0})};
this.xs=function(){W.app.G1.publish("playerUnderlayVisibilityChange","visible");W.tO.classList.remove(g.LJ.VIDEO_CONTAINER_TRANSITIONING);W.tO.removeEventListener(sG,W.xs);W.tO.removeEventListener("transitioncancel",W.xs)};
var x=this.element.addEventListener,D=this.element.removeEventListener;this.addEventListener=function(l,M,w){x.apply(W.element,[l,M,w])};
this.removeEventListener=function(l,M,w){D.apply(W.element,[l,M,w])};
var K=Q.C();K.transparentBackground&&this.yu("ytp-transparent");K.controlsType==="0"&&this.yu("ytp-hide-controls");g.j$(this.element,"ytp-exp-bottom-control-flexbox");g.j$(this.element,"ytp-modern-caption");K.j("enable_new_paid_product_placement")&&!g.tC(K)&&g.j$(this.element,"ytp-exp-ppp-update");K.j("html5_enable_ssap")&&g.j$(this.element,"ytp-ssap");g.j$(this.element,"ytp-livebadge-color");K.j("delhi_modern_web_player")&&g.j$(this.element,"ytp-delhi-modern");k9v(this.element,XzD(Q));this.jW=!1;
this.xU=new g.oZ(NaN,NaN);or4(this);this.W(Q.G1,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
or4=function(Q){function W(){Q.tO&&X$(Q);oi(Q)!==Q.zs&&Q.resize()}
function x(M,w){Q.Lu(M,w)}
function D(M){M.getVideoData()&&Q.updateVideoData(M.getVideoData())}
function K(){Q.oJ=new g.lq(0,0,0,0);Q.O9=new g.lq(0,0,0,0)}
var l=Q.app.G1;l.addEventListener("initializingmode",K);l.addEventListener("videoplayerreset",D);l.addEventListener("videodatachange",x);l.addEventListener("presentingplayerstatechange",W);Q.addOnDisposeCallback(function(){l.removeEventListener("initializingmode",K);l.removeEventListener("videoplayerreset",D);l.removeEventListener("videodatachange",x);l.removeEventListener("presentingplayerstatechange",W)})};
nr1=function(Q){var W=Q.app.w7(),x=W=W?W.getVideoData():null;if(W==null?0:g.TQ(W))x=Q.app.G1.getVideoData();if(x){if(g.iG(x)||g.Af(x)||g.HX(x))return 16/9;if(DM(x)&&x.D.B)return Q=x.D.videoInfos[0].video,Y41(Q.width,Q.height)}return(Q=Q.tO)?Y41(Q.videoWidth,Q.videoHeight):16/9};
VRF=function(Q,W,x,D){var K=x,l=Y41(W.width,W.height);Q.Mv?K=x<l?Infinity:0:isNaN(Q.zD)?isNaN(Q.bv)||(K=Q.bv):K=Q.zD;isFinite(K)||(K=Math.max(x,l));Q=K>l?{width:W.width,height:W.width/K,aspectRatio:K}:K<l?{width:W.height*K,height:W.height,aspectRatio:K}:{width:W.width,height:W.height,aspectRatio:l};D||isNaN(x)||(x>K?Q.width=Q.height*x:x<K&&(Q.height=Q.width/x),Q.aspectRatio=x);return Q};
Y41=function(Q,W){return Math.abs(P_v*W-Q)<1||Math.abs(P_v/Q-W)<1?P_v:Q/W};
oi=function(Q){if(Q.app.getAppState()===1)return!1;if(Q.app.getAppState()===6)return!0;var W=Q.app.w7();if(!W||W.vM())return!1;Q=Q.app.G1.getPlayerStateObject();W=!g.r(Q,2)||W&&W.getVideoData().S;var x=g.r(Q,1024);return Q&&W&&!x&&!Q.isCued()};
X$=function(Q){var W=Q.app.C().controlsType==="3"&&!Q.ov&&oi(Q)&&!Q.app.Dl||!1;Q.tO.controls=W;Q.tO.tabIndex=W?0:-1;Q.app.C().N&&(Q.tO.ariaHidden=W||Q.app.C().j("video_element_aria_hidden_ks")?"false":"true");W?Q.tO.removeEventListener("focus",Q.Rg):Q.tO.addEventListener("focus",Q.Rg)};
vra=function(Q){var W=Q.ZB(),x=1,D=!1,K=VRF(Q,W,Q.getVideoAspectRatio()),l=Q.app.C(),M=l.j("enable_desktop_player_underlay"),w=UnD(),S=g.X0(l.experiments,"player_underlay_min_player_width");S=M&&Q.MG&&Q.getPlayerSize().width>S;if(oi(Q)){var b=nr1(Q);var z=isNaN(b)||g.rV||Dg&&g.nX||S;LX&&!g.nP(601)?b=K.aspectRatio:z=z||l.controlsType==="3";z?S?(z=l.j("place_shrunken_video_on_left_of_player")?16:Q.getPlayerSize().width-W.width-16,b=Math.max((Q.getPlayerSize().height-W.height)/2,0),z=new g.lq(z,b,W.width,
W.height),Q.tO.style.setProperty("border-radius","12px")):z=new g.lq(0,0,W.width,W.height):(x=K.aspectRatio/b,z=new g.lq((W.width-K.width/x)/2,(W.height-K.height)/2,K.width/x,K.height),x===1&&g.nX&&(b=z.width-W.height*b,b>0&&(z.width+=b,z.height+=b)));g.S$(Q.element,"ytp-fit-cover-video",Math.max(z.width-K.width,z.height-K.height)<1);if(w||Q.jW)Q.tO.style.display="";Q.zs=!0}else{z=-W.height;LX?z*=window.devicePixelRatio:g.Q7&&(z-=window.screen.height);z=new g.lq(0,z,W.width,W.height);if(w||Q.jW)Q.tO.style.display=
"none";Q.zs=!1}MI(Q.oJ,z)||(Q.oJ=z,g.$h(l)?(Q.tO.style.setProperty("width",z.width+"px","important"),Q.tO.style.setProperty("height",z.height+"px","important")):g.VM(Q.tO,z.getSize()),D=new g.k6(z.left,z.top),g.oB(Q.tO,Math.round(D.x),Math.round(D.y)),D=!0);W=new g.lq((W.width-K.width)/2,(W.height-K.height)/2,K.width,K.height);MI(Q.O9,W)||(Q.O9=W,D=!0);g.SZ(Q.tO,"transform",x===1?"":"scaleX("+x+")");M&&S!==Q.va&&(S&&(Q.tO.addEventListener(sG,Q.xs),Q.tO.addEventListener("transitioncancel",Q.xs),Q.tO.classList.add(g.LJ.VIDEO_CONTAINER_TRANSITIONING)),
Q.va=S,Q.app.G1.publish("playerUnderlayVisibilityChange",Q.va?"transitioning":"hidden"));return D};
C_5=function(){this.csn=g.ph();this.clientPlaybackNonce=null;this.elements=new Set;this.D=new Set;this.B=new Set;this.U=new Set};
JMQ=function(Q){if(Q.csn!==g.ph())if(Q.csn==="UNDEFINED_CSN")Q.csn=g.ph();else{var W=g.ph(),x=g.Jb();if(W&&x){Q.csn=W;for(var D=g.V(Q.elements),K=D.next();!K.done;K=D.next())(K=K.value.visualElement)&&K.isClientVe()&&W&&x&&(g.Pb("combine_ve_grafts")?i3(GL(),K,x):g.tx(g.rN)(void 0,W,x,K))}if(W)for(Q=g.V(Q.B),x=Q.next();!x.done;x=Q.next())(x=x.value.visualElement)&&x.isClientVe()&&g.x_(W,x)}};
g.uk=function(Q,W,x,D){g.N.call(this);var K=this;this.logger=new g.MP("App");this.Dl=this.Nn=!1;this.Ys={};this.bx=[];this.ql=!1;this.Kx=null;this.intentionalPlayback=!1;this.Z0=!0;this.Cr=!1;this.jx=this.Ol=null;this.HQ=!0;this.mediaElement=this.k6=null;this.FT=NaN;this.Ut=!1;this.YD=this.RA=this.nS=this.oU=this.screenLayer=this.playlist=null;this.Lr=[];this.hL=0;this.by={kB:function(){return K.Gt},
zP:function(){return K.nS},
J6:function(M){K.nS=M},
BX:function(M,w){K.nS&&K.nS.BX(M,w)}};
this.logger.debug("constructor begin");this.config=jrQ(W||{});this.webPlayerContextConfig=x;nRs();W=this.config.args||{};this.bj=new eC(W,x,x?x.canaryState:this.config.assets.player_canary_state,D,this);g.y(this,this.bj);tcv(this.bj);D=W84(this.bj);this.bj.jk()&&this.Lr.push({key:"h5vcc",value:D});this.bj.experiments.ij("jspb_serialize_with_worker")&&QCz();this.bj.experiments.ij("gzip_gel_with_worker")&&ZvD();this.bj.U&&!pzD&&(window.addEventListener(hC?"touchstart":"click",dws,{capture:!0,passive:!0}),
pzD=!0);this.j("html5_onesie")&&(this.Ob=new AY(this.bj),g.y(this,this.Ob));this.rd=D0(AC(this.bj)&&!0,W.enablesizebutton);this.ej=D0(!1,W.player_wide);this.visibility=new Lu5;g.y(this,this.visibility);this.j("web_log_theater_mode_visibility")&&this.No(D0(!1,W.player_wide));this.Nn=D0(!1,W.external_list);this.events=new g.I0(this);g.y(this,this.events);this.j("start_client_gcf")&&(iu(q6(),{dQ:R_,PE:XvO()}),this.ao=q6().resolve(R_),YbQ(this.ao));this.THp=new sX;g.y(this,this.THp);this.AE=new C_5;D=
new z4;this.G1=new g.ho(this,D);g.y(this,this.G1);this.template=new ugO(this);g.y(this,this.template);this.appState=1;this.YS=hga(this);g.y(this,D);D={};this.DC=(D.internalvideodatachange=this.XT,D.playbackready=this.Znj,D.playbackstarted=this.TG3,D.statechange=this.n63,D);this.xj=new zZ(this.G1);this.Mr=aqQ(this);D=this.j("html5_load_wasm");W=this.j("html5_allow_asmjs");if(D&&G9l||W)this.bj.xN=oyD(this.Mr,W),Yv(u3(this.bj.xN,function(M){K.bj.n_=M;var w;(w=K.w7())==null||w.qj("wasm",{a:M.Q_})}),function(M){g.Bp(M);
M="message"in M&&M.message||M.toString()||"";var w;(w=K.w7())==null||w.qj("wasm",{e:M})});
else if(D&&!G9l){var l;(l=this.w7())==null||l.qj("wasm",{e:"wasm unavailable"})}this.Qh=new CD4(this.bj,this.Mr);this.G1.publish("csiinitialized");l=10;g.dO(this.bj)&&(l=3);F4(this.bj)&&(l=g.X0(this.bj.experiments,"tvhtml5_unplugged_preload_cache_size"));l=new sz(l,function(M){M!==K.ek(M.getPlayerType())&&gZ(M)});
g.y(this,l);this.Gt=new g.m1(l,{});l=dVa(this);this.Gt.Bq(l);iez(this);l={};this.G2=(l.airplayactivechange=this.onAirPlayActiveChange,l.airplayavailabilitychange=this.onAirPlayAvailabilityChange,l.beginseeking=this.LH,l.sabrCaptionsDataLoaded=this.j2,l.endseeking=this.r6,l.internalAbandon=this.Wk,l.internalaudioformatchange=this.kT,l.internalvideodatachange=this.onVideoDataChange,l.internalvideoformatchange=this.jO,l.liveviewshift=this.Mtp,l.playbackstalledatstart=this.uX1,l.progresssync=this.fG3,
l.onAbnormalityDetected=this.Qm,l.onSnackbarMessage=this.onSnackbarMessage,l.onLoadProgress=this.onLoadProgress,l.SEEK_COMPLETE=this.E9,l.SEEK_TO=this.Ar1,l.onVideoProgress=this.onVideoProgress,l.onLoadedMetadata=this.onLoadedMetadata,l.onAutoplayBlocked=this.onAutoplayBlocked,l.onPlaybackPauseAtStart=this.uYj,l.playbackready=this.pV9,l.statechange=this.pg,l.newelementrequired=this.zl,l.heartbeatparams=this.OC,l.videoelementevent=this.qT,l.drmoutputrestricted=this.onDrmOutputRestricted,l.signatureexpired=
this.TPZ,l.nonfatalerror=this.Vtj,l.reloadplayer=this.vDp,l);this.kc=new g.I0(this);g.y(this,this.kc);this.f0=new ky;g.y(this,this.f0);this.G_=this.OS=-1;this.aJ=new g.O3(this.template.resize,16,this.template);g.y(this,this.aJ);this.Ex=new Exv(this.G1,this.bj,this.Zp(),this);this.M5=new Nv(this.bj);this.O2=new $3(this);g.y(this,this.O2);this.Tg=new Hy(this);g.y(this,this.Tg);s$Q(this.bj.B.c);this.events.W(this.G1,g.Ru("appapi"),this.SVp);this.events.W(this.G1,g.wt("appapi"),this.ab3);this.events.W(this.G1,
g.Ru("appprogressboundary"),this.kx3);this.events.W(this.G1,g.wt("applooprange"),this.nX);this.events.W(this.G1,"presentingplayerstatechange",this.qD);this.events.W(this.G1,"resize",this.GxS);this.template.Qj(gS(document,Q));this.events.W(this.G1,"offlineslatestatechange",this.TEf);this.events.W(this.G1,"sabrCaptionsTrackChanged",this.OZj);this.events.W(this.G1,"sabrCaptionsBufferedRangesUpdated",this.HZ3);this.Mr.J.C().KR&&de(this.Mr,"offline");this.bj.SZ&&g.nM("ux",g.iD);Q=g.X0(this.bj.experiments,
"html5_defer_fetch_att_ms");this.fh=new g.O3(this.pIf,Q,this);g.y(this,this.fh);this.sx().ET()&&(g.$Y()&&this.sx().KS.push("remote"),AM2(this));this.Qh.tick("fs");Hen(this);this.bj.SZ&&de(this.Mr,"ux",!0);g.d5(this.Mr.J.C())&&de(this.Mr,"embed");this.j("web_player_sentinel_is_uniplayer")||g.Bp(new g.Lw("Player experiment flags missing","web_player_sentinel_is_uniplayer"));Q=this.j("web_player_sentinel_yt_experiments_sync");l=g.Pb("web_player_sentinel_yt_experiments_sync");Q!==l&&g.Bp(new g.Lw("b/195699950",
{yt:Q,player:l}));x||g.Bp(new g.Lw("b/179532961"));this.Lw=UV1(this);if(x=g.X0(this.bj.experiments,"html5_block_pip_safari_delay"))this.H0=new g.O3(this.ev,x,this),g.y(this,this.H0);qO=this.bj.yA;x=g.X0(this.bj.experiments,"html5_performance_impact_profiling_timer_ms");x>0&&(this.Kg=new g.v_(x),g.y(this,this.Kg),this.events.W(this.Kg,"tick",function(){K.kE&&q44.Wd("apit",K.kE);K.kE=q44.Xa()}));
this.G1.publish("applicationInitialized");this.logger.debug("constructor end")};
UV1=function(Q){function W(x){x.stack&&x.stack.indexOf("player")!==-1&&(Q.w7()||Q.Zp()).eJ(x)}
$C.subscribe("handleError",W);Eb.push(W);return function(){$C.unsubscribe("handleError",W);var x=Eb.indexOf(W);x!==-1&&Eb.splice(x,1)}};
dVa=function(Q){var W=new g.f1(Q.bj,Q.config.args);Q.G1.publish("initialvideodatacreated",W);return Yy(Q,1,W,!1)};
iez=function(Q){var W=Q.Zp();W.setPlaybackRate(Q.bj.N?1:BAn(Q,Number(g.qW("yt-player-playback-rate"))||1));W.xJ(Q.DC,Q);W.BH()};
aqQ=function(Q){var W="",x=XzD(Q);x.indexOf("//")===0&&(x=Q.bj.protocol+":"+x);var D=x.lastIndexOf("/base.js");D!==-1&&(W=x.substring(0,D+1));if(x=Error().stack)if(x=x.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))x=x[1],x.includes(W)||g.Bp(Error("Player module URL mismatch: "+(x+" vs "+W+".")));W=new tA1(Q.G1,W);$VO(Q,W);return W};
$VO=function(Q,W){var x={};x=(x.destroyed=function(){Q.onApiChange()},x);
W.D=x};
hga=function(Q){if(Q.bj.storeUserVolume){Q=g.qW("yt-player-volume")||{};var W=Q.volume;Q={volume:isNaN(W)?100:g.wS(Math.floor(W),0,100),muted:!!Q.muted}}else Q={volume:100,muted:Q.bj.mute};return Q};
ni=function(Q){Q.mediaElement=Q.bj.deviceIsAudioOnly?new g.Q1(g.Qz("AUDIO")):Ak.pop()||new g.Q1(g.Qz("VIDEO"));g.y(Q,Q.mediaElement);var W=Q.w7();W&&W.setMediaElement(Q.mediaElement);try{Q.bj.cD?(Q.RA&&Q.events.mJ(Q.RA),Q.RA=Q.events.W(Q.mediaElement,"volumechange",Q.Py5)):(Q.mediaElement.Uo(Q.YS.muted),Q.mediaElement.setVolume(Q.YS.volume/100))}catch(K){Q.tK("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(K&&typeof K==="object"&&"message"in K&&typeof K.message==="string"&&K.message.replace(/[;:,]/g,
"_")));return}g.d3(Q.kc);IqF(Q);W=Q.template;var x=Q.mediaElement.yh();W.tO=x;W.ov=!1;W.tO.parentNode||Ky(W.rf,W.tO,0);W.oJ=new g.lq(0,0,0,0);vra(W);X$(W);x=W.tO;g.j$(x,"video-stream");g.j$(x,g.LJ.MAIN_VIDEO);var D=W.app.C();D.wx&&x.setAttribute("data-no-fullscreen","true");D.j("html5_local_playsinline")?"playsInline"in A7()&&(x.playsInline=!0):D.BM&&(x.setAttribute("webkit-playsinline",""),x.setAttribute("playsinline",""));D.Jx&&W.tO&&W.W(x,"click",x.play,x);try{Q.mediaElement.activate()}catch(K){Q.tK("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(K&&typeof K==="object"&&"message"in K&&typeof K.message==="string"&&K.message.replace(/[;:,]/g,"_")))}};
NAQ=function(Q){if(!mVa(Q)){var W=Q.Zp().DG();W&&(W=W.Vl(),W instanceof Promise&&W.catch(function(){}));
Vq(Q,zp(Q.getPlayerStateObject()))}};
IqF=function(Q){var W=Q.mediaElement;Bl()?Q.kc.W(W,"webkitpresentationmodechanged",Q.Wm3):window.document.pictureInPictureEnabled&&(Q.kc.W(W,"enterpictureinpicture",function(){Q.Oy(!0)}),Q.kc.W(W,"leavepictureinpicture",function(){Q.Oy(!1)}));
Ok&&(Q.kc.W(W,"webkitbeginfullscreen",function(){Q.Cu(3)}),Q.kc.W(W,"webkitendfullscreen",function(){Q.Cu(0)}))};
cM5=function(Q,W){var x=W.getPlayerType(),D=Q.Gt.ek(x);W!==Q.Zp()&&W!==D&&(D==null||gZ(D),Q.Gt.D[x]=W)};
gr1=function(Q,W){W=W===void 0?!0:W;Q.logger.debug("start clear presenting player");var x;if(x=Q.YD){x=Q.YD;var D=Q.mediaElement;x=!!D&&D===x.mediaElement}x&&(Q.GK(),ni(Q));if(x=Q.w7())x.GK(!W),x.MP(Q.G2,Q),x.getPlayerType()!==1&&gZ(x);Q.Gt.N=null;Q.logger.debug("finish clear presenting player")};
g.yMa=function(Q,W,x,D){var K=Q.Qh;W===2&&(K=new CD4(Q.bj));return new g.br(Q.bj,W,K,Q.template,function(l,M,w){Q.G1.publish(l,M,w)},function(){return Q.G1.getVisibilityState()},Q.visibility,Q,x,D)};
Yy=function(Q,W,x,D,K){Q=g.yMa(Q,W,x,K);W=new g.cd(Q);Q.lz=W;D&&Q.BH();return W};
P8=function(Q,W){return Q.It(W)?Q.Zp():W};
v8=function(Q,W){var x=Q.w7(),D=Q.Zp();return x&&W===D&&Q.It(W)&&Q.It(x)?x:W};
Zel=function(Q){Q.logger.debug("start application playback");if(Q.Zp().getPlayerState().isError())Q.logger.debug("start application playback done, player in error state");else{var W=Ci(Q);Q.sx().isLoaded();W&&Q.CY(6);eg5(Q);w81(Q.Mr)||fql(Q)}};
fql=function(Q){if(!Ci(Q)){var W=AJ(Q.Mr);W&&!W.created&&QiQ(Q.Mr)&&(Q.logger.debug("reload ad module"),W.create())}};
eg5=function(Q){Q.logger.debug("start presenter playback");var W=Q.getVideoData(),x=Q.Mr;w81(x)||x.ac();!G9l&&x.J.j("html5_allow_asmjs")&&X8Q(x);de(x,"embed");de(x,"kids");de(x,"remote");de(x,"miniplayer");de(x,"offline");de(x,"unplugged");de(x,"ypc",!1,!0);de(x,"ypc_clickwrap",!1,!0);de(x,"yto",!1,!0);de(x,"webgl",!1,!0);SzO(x)||(de(x,"captions",!0),de(x,"endscreen"),x.Wp()||x.NE(),de(x,"creatorendscreen",!0));x.Zs();Q.G1.publish("videoready",W)};
JT=function(Q){Q=Q.sx();Q.ET();return NJ(Q)};
Hen=function(Q){Q.logger.debug("start prepare initial playback");Q.B0();var W=Q.config.args;ni(Q);var x=Q.sx();Q.G1.DJ("onVolumeChange",Q.YS);if(W&&GHs(W)){var D=r5(Q.bj);D&&!Q.Nn&&(W.fetch=0);var K=g.d5(Q.bj);K&&!Q.Nn&&(W.fetch=0);pi(Q,W);g.d5(Q.bj)&&Q.Qh.tick("ep_pr_s");if(!D||Q.Nn)if(K&&!Q.Nn)Lzz(Q);else if(!x.ET())Q.playlist.onReady(function(){hT(Q)})}Q.Ie(Q.Zp());
g.r(Q.Zp().getPlayerState(),128)||(W=Vih(!Q.bj.deviceIsAudioOnly),W==="fmt.noneavailable"?Q.tK("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):W==="html5.missingapi"?Q.tK(W,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):x&&x.ET()&&JT(Q)&&(Q.bj.ra||Q.bj.YY)?ai(Q):x.IE?Q.G1.mutedAutoplay({durationMode:x.mutedAutoplayDurationMode}):g.qW("yt-player-playback-on-reload")?(g.wV("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!Q.bj.F3}),g.Ud("yt-player-playback-on-reload",!1),
ai(Q)):xS(Q.bj)||rM5(Q),g.ET(Q.bj)||Fm(Q.bj)==="MWEB"?(g.Fw(g.QX(),function(){Gw(Q)}),g.Fw(g.QX(),function(){anz()})):(Gw(Q),anz()),Q.logger.debug("finish prepare initial playback"))};
Gw=function(Q){if(!Q.j("use_rta_for_player"))if(Q.j("fetch_att_independently"))g.E3(Q.fh);else{var W=Q.getVideoData().botguardData;W&&g.Ny(W,Q.bj,Q.getVideoData().lT||"")}};
rM5=function(Q){Q.logger.debug("start initialize to CUED mode");Q.G1.publish("initializingmode");Q.CY(2);Q.j("embeds_web_enable_defer_loading_remote_js")&&g.tC(Q.bj)?g.Fw(g.QX(),function(){de(Q.Mr,"remote")}):de(Q.Mr,"remote");
de(Q.Mr,"miniplayer");Q.logger.debug("initialized to CUED mode")};
ai=function(Q){Q.logger.debug("start initialize application playback");var W=Q.Zp();if(g.r(W.getPlayerState(),128))return!1;var x=W.getVideoData();JT(Q)&&Q.bj.YY&&(Ak.length&&Q.Dl?(dy(Q,{muted:!1,volume:Q.YS.volume},!1),ik(Q,!1)):Ak.length||Q.YS.muted||(dy(Q,{muted:!0,volume:Q.YS.volume},!1),ik(Q,!0)));JT(Q)&&g.d5(Q.bj)&&x.mutedAutoplay&&(dy(Q,{muted:!0,volume:Q.YS.volume},!1),ik(Q,!0));x.kM&&dy(Q,{muted:!0,volume:Q.YS.volume},!1);TA5(Q,1,x,!1);Q.G1.publish("initializingmode");Q.Ie(Q.Zp());Q.CY(3);
var D;if(!(D=!Q.bj.xI)){if(D=Q.YD){D=Q.YD;var K=Q.mediaElement;D=!!K&&K===D.mediaElement}D=D&&Q.ql}D&&(Q.GK(),ni(Q),W.setMediaElement(Q.mediaElement));W.Jl();if(g.r(W.getPlayerState(),128))return!1;x.A_||Vq(Q,3);return Q.ql=!0};
Ci=function(Q){Q=dZ(Q.Mr);return!!Q&&Q.loaded};
Oez=function(Q,W){if(!Q.k6)return!1;var x=Q.k6.startTimeMs*.001-1,D=Q.k6.endTimeMs*.001;Q.k6.type==="repeatChapter"&&D--;return Math.abs(W-x)<=1E-6||Math.abs(W-D)<=1E-6||W>=x&&W<=D};
tRh=function(Q){var W=Q.w7();W&&KQ(W.getVideoData())&&!W.G6()&&(W=Erv(Q)*1E3-Q.getVideoData().wC,Q.j("html5_gapless_new_slr")?(Q=Q.Tg,Fz4(Q.app,"gaplessshortslooprange"),W=new g.jz(0,W,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(Q=Q.app.w7())&&Q.addCueRange(W)):Q.setLoopRange({startTimeMs:0,endTimeMs:W,type:"shortsLoop"}))};
Qa2=function(Q){var W=Q.Zp();if(!(g.r(W.getPlayerState(),64)&&Q.sx().isLivePlayback&&Q.k6.startTimeMs<5E3)){if(Q.k6.type==="repeatChapter"){var x,D=(x=cz2(Q.x6()))==null?void 0:x.Q1(),K;x=(K=Q.getVideoData())==null?void 0:K.SU;D instanceof g.LM&&x&&(K=x[z0(x,Q.k6.startTimeMs)],D.renderChapterSeekingAnimation(0,K.title));isNaN(Number(Q.k6.loopCount))?Q.k6.loopCount=0:Q.k6.loopCount++;Q.k6.loopCount===1&&Q.G1.Wt("innertubeCommand",Q.getVideoData().sL)}D={N7:"application_loopRangeStart"};if(Q.k6.type===
"clips"||Q.k6.type==="shortsLoop")D.seekSource=58;W.seekTo(Q.k6.startTimeMs*.001,D)}};
BAn=function(Q,W){var x=Q.G1.getAvailablePlaybackRates();W=Number(W.toFixed(2));Q=x[0];x=x[x.length-1];W<=Q?W=Q:W>=x?W=x:(Q=Math.floor(W*100+.001)%5,W=Q===0?W:Math.floor((W-Q*.01)*100+.001)/100);return W};
Erv=function(Q,W){W=Q.ek(W);if(!W)return Q.Gt.B.uW();W=P8(Q,W);return AT(Q,W.uW(),W)};
AT=function(Q,W,x){if(Q.It(x)){x=x.getVideoData();if(H8(Q))x=W;else{Q=Q.Ex;for(var D=g.V(Q.U),K=D.next();!K.done;K=D.next())if(K=K.value,x.Ox===K.Ox){W+=K.gG/1E3;break}D=W;Q=g.V(Q.U);for(K=Q.next();!K.done;K=Q.next()){K=K.value;if(x.Ox===K.Ox)break;var l=K.gG/1E3;if(l<W)D+=K.durationMs/1E3+l-K.VA/1E3;else break}x=D}return x}return W};
Wks=function(Q,W){if(Q.getPresentingPlayerType()===3)return zp(Q.Gt.b_.getPlayerState());if((Q.getVideoData().enableServerStitchedDai||g.TQ(Q.getVideoData()))&&W===2){var x,D;return((x=Q.oU)==null?0:x.QD(Q.getCurrentTime()))||((D=Q.nS)==null?0:D.QD())?Q.OS:-1}return W!==2||Q.It()?Q.OS:Q.G_};
AM2=function(Q){Q.logger.debug("reset for new application playback");Uz(Q);Q.setLoopVideo(!1);Q.setLoopRange(null);Q.G1.publish("legacyadtrackingpingreset");Q.Ys={};Q.bx=[];hkQ(Q.Qh);if(Q.oU){var W=Q.oU,x=Q.Zp();x.getPlayerType();tk(W,!1);Xwn(W);oxD(W);W.playback=x}W=Q.Ex;Q=Q.Zp();Q.getPlayerType()!==1&&lk(W,"invalidParentVideoPlayerType");wy(W,!1);S41(W);W.B=Q};
Lzz=function(Q,W){var x=(W?W:Q.sx()).ut;Q.Qh.tick("ep_pr_r");if(x!=null&&(H7F(Q.playlist,x),Q.Cr))Q.playlist.onReady(function(){hT(Q,W)})};
pi=function(Q,W){Q.playlist&&(g.w1(Q.playlist),Q.playlist=null);W&&(Q.Nn&&(W.fetch=0),Q.playlist=new a$z(Q.bj,W))};
x01=function(Q){var W,x=Number((W=Q.getVideoData().progressBarEndPosition)==null?void 0:W.utcTimeMillis)/1E3;!isNaN(x)&&(W=Q.LZ())&&(W-=Q.getCurrentTime(),x=(x-W)*1E3,W=Q.Ys.progressEndBoundary,(W==null?void 0:W.start)!==x&&(W&&Q.Bg([W]),x=new g.jz(x,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),Q.Zp().addCueRange(x),Q.Ys.progressEndBoundary=x))};
Vq=function(Q,W){Q.logger.debug(function(){return"set external state "+W});
var x=Q.w7();if(x){var D=x.getPlayerType();if(D===2&&!Q.It()){Q.G_!==W&&(Q.G_=W,Q.G1.DJ("onAdStateChange",W));return}if(D===2&&Q.It()||D===5||D===6||D===7)if(W===-1||W===0||W===5)return}if(W===0){if(Q.k6)return;if((x==null?0:x.q5())&&g.dO(Q.bj)){Q.playVideo();return}}Q.OS!==W&&(Q.OS=W,Q.G1.DJ("onStateChange",W))};
D04=function(Q,W,x,D,K){D=D===void 0?Infinity:D;K=K===void 0?0:K;Q.logger.debug(function(){return"Enqueuing playerType="+x+" at time="+D+"\n        videoId="+W.videoId});
var l=Q.w7();x=x||l.getPlayerType();(l=TA5(Q,x,W,!0))||(l=Yy(Q,x,W,!0));var M=Q.Zp();if(x===2&&M){var w=l.getVideoData();M.vx(w.clientPlaybackNonce,w.Cn||"",w.breakType||0,w.wx,w.videoId||"")}Q.sS(l,D,0,K)};
Kkv=function(Q,W,x,D,K){var l="";l=Q.bj.j("html5_autonav_autoplay_in_preload_key")?qK(Q,x,W):B8(Q,x,W.videoId,W.Ox);Q.logger.debug(function(){return"start preload video "+l+", trigger="+K});
var M="",w=Q.w7();if(w&&(M=Q.bj.j("html5_autonav_autoplay_in_preload_key")?qK(Q,w.getPlayerType(),w.getVideoData()):B8(Q,w.getPlayerType(),w.getVideoData().videoId,w.getVideoData().Ox),l===M))return w.A7(!0),W.dispose(),null;W.RQ=!0;W=Yy(Q,x,W,!0);x===1&&F4(Q.bj)||W.A7(!0);Q.Gt.U.set(l,W,D||3600);return W};
lSv=function(Q,W,x,D){var K=RC(x);return B8(Q,W,K,D,x.autonav==="1"||x.autonav===!0,x.autoplay==="1"||x.autoplay===!0||x.autoplay===1)};
qK=function(Q,W,x){return B8(Q,W,x.videoId,x.Ox,x.isAutonav,x.TN)};
B8=function(Q,W,x,D,K,l){K=K===void 0?!1:K;l=l===void 0?!1:l;W=W+"_"+x+"_"+D;Q.bj.j("html5_autonav_autoplay_in_preload_key")&&(W+="_"+ +K+ +l);return W};
TA5=function(Q,W,x,D){var K=Q.bj.j("html5_autonav_autoplay_in_preload_key")?qK(Q,W,x):B8(Q,W,x.videoId,x.Ox);var l=Q.Gt.U.get(K)||null;if(!l||l.xf.d7())return null;Q.Gt.U.remove(K);if(g.r(l.getPlayerState(),128))return gZ(l),null;if(l===Q.ek(W))return Q.Qh.infoGel({isCacheHit:!0}),l;if((l.getVideoData().oauthToken||x.oauthToken)&&l.getVideoData().oauthToken!==x.oauthToken)return null;W===1&&Uz(Q);D||Q.Ie(l,!0);Q.Qh.infoGel({isCacheHit:!0});return l};
ja5=function(Q,W){var x;return W&&Q.bj.Ct&&!((x=Q.getVideoData())==null?0:x.backgroundable)};
M1h=function(Q,W){return ja5(Q,W)?(Q.H0?Q.H0.start():Q.ev(),!0):!1};
$y=function(Q,W,x){W&&(W=Q.ek(x))&&W===Q.Zp()&&(W.getVideoData().Ke=!0)};
Ii=function(Q,W,x){x=x===void 0?1:x;Q.logger.debug(function(){return"start cue video, vid "+W.videoId+", type "+x});
if(W.ET()){var D=Yy(Q,x,W,!1);Q.cancelPlayback(4,x);Q.Ie(D);D.BH();if(x===1){Q.CY(1);if(g.d5(Q.bj)&&!Q0(W)){W.dispose();gZ(Q.Zp());return}rM5(Q)}Q.logger.debug("finish cue video")}else Q.logger.debug(function(){return"invalid VideoData in cueVideo"}),W.dispose(),(D=Q.ek(x))&&gZ(D),E_(Q.sx())&&x===2&&Q.Xq()};
RHv=function(Q,W,x,D,K){W=IOl(W,x,D,K);(x=g.d5(Q.bj)&&!Q.bj.pS)&&!Q.Nn&&(W.fetch=0);pi(Q,W);g.d5(Q.bj)&&Q.Qh.tick("ep_a_pr_s");if(x&&!Q.Nn)x=Q.sx(),BHD(x,W).then(function(l){Q.Cr=!0;Lzz(Q,l)});
else Q.playlist.onReady(function(){hT(Q)});
g.d5(Q.bj)&&Q.Qh.tick("ep_a_pr_r")};
hT=function(Q,W){var x=g.d5(Q.bj)&&!Q.bj.pS,D=x&&W?W:g.uX(Q.playlist);W=x&&W?W:Q.getVideoData();D&&(W.g5&&(Q.bj.ra||Q.bj.YY)||!Q.Z0?(W=W.Ke,D=Q.Fh(D,1),W&&$y(Q,D)):Ii(Q,D,1));g.d5(Q.bj)&&Q.Qh.tick("ep_p_l");Q.Cr=!1;Q.G1.WD("onPlaylistUpdate")};
mVa=function(Q){if(Q.playlist&&g.BL(Q.bj)&&Q.mS()){var W=Q.bj.j("html5_player_autonav_logging");Q.nextVideo(!1,W);return!0}return!1};
wJ2=function(Q,W,x,D,K,l,M){W={id:W,namespace:M!=null?M:"appapi"};l==="chapter"?(W.style=ld.CHAPTER_MARKER,W.visible=!0):isNaN(K)||(l==="ad"?W.style=ld.AD_MARKER:(W.style=ld.TIME_MARKER,W.color=K),W.visible=!0);Q.FD([new g.jz(x*1E3,D*1E3,W)],1);return!0};
SiD=function(Q,W,x,D,K,l){l=l===void 0?!0:l;var M=Q.LZ();if(!M)return l&&Q.getVideoData().isLivePlayback&&Q.bx.push({id:W,UDf:x,B53:D}),!1;l=M-Q.getCurrentTime();return wJ2(Q,W,x-l,D-l,void 0,void 0,K)};
bLa=function(Q,W){Q.bx=g.Rv(Q.bx,function(M){return M.id!==W});
for(var x=Q.Zp(),D=x.Jv(),K=0;K<D.length;K++){var l=D[K];if(l.getId()===W)return x.removeCueRange(l),mM(Q,"cuerangesremoved",[l]),!0}return!1};
Fz4=function(Q,W,x){var D=Q.ek(x);D&&(W=D.jQ(W),x&&Q.getPresentingPlayerType()!==x||mM(Q,"cuerangesremoved",W))};
sav=function(Q){var W=(0,g.a8)(),x=Q.getCurrentTime();Q=Q.getVideoData();x=1E3*(x-Q.startSeconds);Q.isLivePlayback&&(x=0);return W-Math.max(x,0)};
dy=function(Q,W,x){Q.bj.g7&&(Q.YS=W,W.muted||ik(Q,!1),x&&Q.bj.storeUserVolume&&!Q.bj.cD&&(x={volume:Math.floor(W.volume),muted:W.muted},x.unstorable||(g.Ud("yt-player-volume",x),g.Ud("yt-player-volume",x,2592E3))),zHv(Q),x=g.UC&&Q.mediaElement&&!Q.mediaElement.aj(),Q.bj.cD&&!x||Q.G1.DJ("onVolumeChange",{muted:W.muted,volume:W.volume,unstorable:!Q.bj.storeUserVolume}))};
zHv=function(Q){var W=Q.getVideoData();if(!W.Wz){W=Q.bj.cD?1:uR4(W);var x=Q.mediaElement;x.Uo(Q.YS.muted);try{x.setVolume(Q.YS.volume*W/100)}catch(D){g.Bp(new g.Lw("b183742307","multiplier: "+W+", volume: "+Q.YS.volume))}}};
ik=function(Q,W){W!==Q.Dl&&(Q.Dl=W,Q.G1.WD("onMutedAutoplayChange",W))};
uL=function(Q){return Q.Dl&&Q.getVideoData().mutedAutoplay};
kgh=function(Q){var W=YY(!0);return W&&(W===Q.template.element||Q.mediaElement&&W===Q.mediaElement.yh())?W:null};
oo2=function(Q,W){var x=window.screen&&window.screen.orientation;if((Q.bj.j("lock_fullscreen2")||Q.bj.S)&&x&&x.lock&&(!g.UC||!XJv))if(W){W=x.type.indexOf("portrait")===0;var D=Q.template.getVideoAspectRatio(),K=W;D<1?K=!0:D>1&&(K=!1);if(!Q.Ut||K!==W){x=x.lock(K?"portrait":"landscape");if(x!=null)x["catch"](function(){});
Q.Ut=!0}}else Q.Ut&&(Q.Ut=!1,x.unlock())};
mM=function(Q,W,x){Q.G1.publish(W,x);var D=g.dO(Q.bj)||g.$h(Q.bj)||g.Il(Q.bj);if(x&&D){switch(W){case "cuerangemarkersupdated":var K="onCueRangeMarkersUpdated";break;case "cuerangesadded":K="onCueRangesAdded";break;case "cuerangesremoved":K="onCueRangesRemoved"}K&&Q.G1.Wt(K,x.map(function(l){return{getId:function(){return this.id},
end:l.end,id:l.getId(),namespace:l.namespace==="ad"?"ad":"",start:l.start,style:l.style,visible:l.visible}}))}};
NK=function(Q,W,x,D,K,l){x=x===void 0?!0:x;var M=Q.ek(K);M&&(M.getPlayerType()===2&&!Q.It(M)||g.Gr(M.getVideoData()))||(Q.getPresentingPlayerType()===3?dZ(Q.Mr).Hk("control_seek",W,x):(M&&M===Q.Zp()&&Q.k6&&!Oez(Q,W)&&Q.setLoopRange(null),Q.seekTo(W,x,D,K,l)))};
uLQ=function(Q,W,x,D){x&&(Q.GK(),ni(Q));x=Q.w7();x.Pb(W);var K=Q.getVideoData(),l={};l.video_id=K.videoId;l.adformat=K.adFormat;K.isLivePlayback||(l.start=x.getCurrentTime(),l.resume="1");K.isLivePlayback&&zr(K)&&g.aE(Q.bj)&&(l.live_utc_start=x.LZ(),l.resume="1");K.pS&&(l.vvt=K.pS);K.X&&(l.vss_credentials_token=K.X,l.vss_credentials_token_type=K.al);K.oauthToken&&(l.oauth_token=K.oauthToken);K.u$&&(l.force_gvi=K.u$);l.autoplay=1;l.reload_count=K.Sk+1;l.reload_reason=W;K.gZ&&(l.unplugged_partner_opt_out=
K.gZ);K.xN&&(l.ypc_is_premiere_trailer=K.xN);K.playerParams&&(l.player_params=K.playerParams);Q.loadVideoByPlayerVars(l,void 0,!0,void 0,void 0,D);W==="signature"&&Q.oU&&fql(Q)};
YiF=function(Q,W){Q.sx().autonavState=W;g.Ud("yt-player-autonavstate",W);Q.G1.publish("autonavchange",W)};
no4=function(Q){var W=Q.getVideoData().Wz,x=Q.bj.tf,D=Q.isInline()&&!Q.getVideoData().p6,K=Q.mediaElement;W||x||D?K.y8():(K.f$(),dy(Q,Q.YS))};
Uz=function(Q){var W=AJ(Q.x6());W&&W.created&&(Q.logger.debug("reset ad module"),W.destroy())};
H8=function(Q){return Q.getVideoData().enableServerStitchedDai&&!!Q.oU};
V1n=function(Q,W){W.bounds=Q.getBoundingClientRect();for(var x=g.V(["display","opacity","visibility","zIndex"]),D=x.next();!D.done;D=x.next())D=D.value,W[D]=zJ(Q,D);W.hidden=!!Q.hidden};
XzD=function(Q){if(Q.webPlayerContextConfig){var W=Q.webPlayerContextConfig.trustedJsUrl;return W?Jx(W).toString():Q.webPlayerContextConfig.jsUrl}return Q.config.assets&&Q.config.assets.js?Q.config.assets.js:""};
PHF=function(Q,W){var x=Q.ek(1);if(x){if(x.getVideoData().clientPlaybackNonce===W)return x;if((Q=Q.O2.B)&&Q.getVideoData().clientPlaybackNonce===W)return Q}return null};
voF=function(Q){return Q.name==="TypeError"&&Q.stack.includes("/s/player/")&&gm()<=105};
CHD=function(Q){return Q.isTimeout?"NO_BID":"ERR_BID"};
Ju2=function(){var Q=null;ep5().then(function(W){return Q=W},function(W){return Q=CHD(W)});
return Q};
pJh=function(){var Q=Jr(1E3,"NO_BID");return g.Va(QxO([ep5(),Q]).RH(CHD),function(){Q.cancel()})};
c8=function(Q){return Q.hn?g.g3(g.ck(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
gy=function(Q){this.player=Q;this.D=this.B=1};
GgO=function(Q,W,x,D,K,l){W.client||(W.client={});Q.player.C().j("h5_remove_url_for_get_ad_break")||(W.client.originalUrl=x);var M=Rc(x),w=g.$X(x)?!1:!0;(M||w)&&typeof Intl!=="undefined"&&(W.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);w=g.$X(x)?!1:!0;if(M||w||D!==""){var S={};x=x1(zG(D)).split("&");var b=new Map;x.forEach(function(z){z=z.split("=");z.length>1&&b.set(z[0].toString(),decodeURIComponent(z[1].toString()))});
b.has("bid")&&(S.bid=b.get("bid"));S.params=[];hHa.forEach(function(z){b.has(z)&&(z={key:z,value:b.get(z)},S.params.push(z))});
aSO(Q,S);W.adSignalsInfo=S}W.client.unpluggedAppInfo||(W.client.unpluggedAppInfo={});W.client.unpluggedAppInfo.enableFilterMode=!1;x=K.B.cosver;x!=null&&x!=="cosver"&&(W.client.osVersion=x);x=K.B.cplatform;x!=null&&x!=="cplatform"&&x!==""&&(W.client.platform=x);x=K.B.cmodel;x!=null&&x!=="cmodel"&&(W.client.deviceModel=x);x=K.B.cplayer;x!=null&&x!=="cplayer"&&(W.client.playerType=x);x=K.B.cbrand;x!=null&&x!=="cbrand"&&(W.client.deviceMake=x);W.user||(W.user={});W.user.lockedSafetyMode=!1;(K.j("embeds_web_enable_iframe_api_send_full_embed_url")||
K.j("embeds_enable_autoplay_and_visibility_signals"))&&g.BL(K)&&fuQ(W,l,Q.player.getPlayerState(1))};
Aua=function(Q,W){var x=!1;if(W==="")return x;W.split(",").forEach(function(D){var K={},l={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},M="ACTIVE";D[0]==="!"&&(D=D.substring(1),M="INACTIVE");D=D.split("-");D.length<3||(D[0]in d0h&&(l.clientName=d0h[D[0]]),D[1]in iL2&&(l.platform=iL2[D[1]]),l.applicationState=M,l.clientVersion=D.length>2?D[2]:"",K.remoteClient=l,Q.remoteContexts?Q.remoteContexts.push(K):Q.remoteContexts=[K],x=!0)});
return x};
U05=function(Q){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in HLl))return!1;Q=Q.split(RegExp("[:&]"));var W=HLl.FLAG_AUTO_CAPTIONS_DEFAULT_ON,x="f"+(1+Math.floor(W/31)).toString();W=1<<Math.floor(W%31);for(var D=0,K=Q.length;D<K;D++){var l=Q[D].split("=");if(l[0]===x&&parseInt("0x"+l[1],16)&W)return!0}return!1};
aSO=function(Q,W){Q=Q.player.C();if(g.Ts(Q)||F4(Q)){Q=g.TK("INNERTUBE_CONTEXT");var x,D;(Q==null?0:(x=Q.adSignalsInfo)==null?0:x.advertisingId)&&typeof(Q==null?void 0:(D=Q.adSignalsInfo)==null?void 0:D.limitAdTracking)!=="undefined"&&(W.advertisingId=Q.adSignalsInfo.advertisingId,W.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",W.limitAdTracking=Q.adSignalsInfo.limitAdTracking)}};
goD=function(Q,W,x,D,K){var l=x.DRIFT_FROM_HEAD_MS&&!Number.isNaN(x.DRIFT_FROM_HEAD_MS)?Math.trunc(x.DRIFT_FROM_HEAD_MS):0,M=qi2.exec(W);M=M!=null&&M.length>=2?M[1]:"";var w=B$2.test(W),S=$0h.exec(W);S=S!=null&&S.length>=2?S[1]:"";var b=ISQ.exec(W);b=b!=null&&b.length>=2&&!Number.isNaN(Number(b[1]))?Number(b[1]):1;var z=m0O.exec(W);z=z!=null&&z.length>=2?z[1]:"0";var k=cL(Q.player.C().n2),X=Q.player.getVideoData(1),u=g.EH(X.fS,!0),Y="BISCOTTI_ID"in x?x.BISCOTTI_ID:"";GgO(Q,u,W,Y.toString(),Q.player.C(),
X);X={splay:!1,lactMilliseconds:x.LACT.toString(),playerHeightPixels:Math.trunc(x.P_H),playerWidthPixels:Math.trunc(x.P_W),vis:Math.trunc(x.VIS),signatureTimestamp:20150,autonavState:c8(Q.player.C())};D&&(D={},Aua(D,x.YT_REMOTE)&&(X.mdxContext=D));if(D=N$l.includes(k)?void 0:g.Ic("PREF")){for(var v=D.split(RegExp("[:&]")),J=0,h=v.length;J<h;J++){var G=v[J].split("=");if((G[0].toUpperCase()==="SML"||G[0].toUpperCase()==="GSML")&&G.length>1&&G[1].toUpperCase()==="TRUE"){u.user.lockedSafetyMode=!0;break}}X.autoCaptionsDefaultOn=
U05(D)}W=cu2.exec(W);(W=W!=null&&W.length>=2?W[1]:"")&&S&&(u.user.credentialTransferTokens=[{token:W,scope:"VIDEO"}]);W={contentPlaybackContext:X};M={adBlock:Math.trunc(x.AD_BLOCK),params:M,breakIndex:b,breakPositionMs:z,clientPlaybackNonce:x.CPN,topLevelDomain:k,isProxyAdTagRequest:w,context:u,adSignalsInfoString:x1(zG(Y.toString())),overridePlaybackContext:W};K!==void 0&&(M.cueProcessedMs=Math.round(K).toString());S&&(M.videoId=S);x.LIVE_TARGETING_CONTEXT&&(M.liveTargetingParams=x.LIVE_TARGETING_CONTEXT);
x.AD_BREAK_LENGTH&&(M.breakLengthMs=Math.trunc(x.AD_BREAK_LENGTH*1E3).toString());l&&(M.driftFromHeadMs=l.toString());M.currentMediaTimeMs=Math.round(Q.player.getCurrentTime(1)*1E3);(Q=Q.player.getGetAdBreakContext())&&(M.getAdBreakContext=Q);return M};
yuv=function(){gy.apply(this,arguments)};
eHD=function(Q,W,x,D,K){var l=x.U7;var M=x.Jr;var w=Q.player.C().lF,S=0;x.cueProcessedMs&&M&&!l&&(x=M.end-M.start,x>0&&(S=Math.floor(x/1E3)));var b={AD_BLOCK:K,AD_BREAK_LENGTH:l?l.eE:S,AUTONAV_STATE:c8(Q.player.C()),CA_TYPE:"image",CPN:Q.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:Q.player.J9()*1E3,LACT:aK(),LIVE_INDEX:l?Q.D++:1,LIVE_TARGETING_CONTEXT:l&&l.context?l.context:"",MIDROLL_POS:M?Math.round(M.start/1E3):0,MIDROLL_POS_MS:M?Math.round(M.start):0,VIS:Q.player.getVisibilityState(),
P_H:Q.player.hf().ZB().height,P_W:Q.player.hf().ZB().width,YT_REMOTE:w?w.join(","):""},z=sk(bY);Object.keys(z).forEach(function(k){z[k]!=null&&(b[k.toUpperCase()]=z[k].toString())});
D!==""&&(b.BISCOTTI_ID=D);D={};SL(W)&&(D.sts="20150",(Q=Q.player.C().forcedExperiments)&&(D.forced_experiments=Q));return MO(g.ip(W,b),D)};
fS5=function(Q,W){var x=Q.player.C(),D,K=(D=Q.player.getVideoData(1))==null?void 0:D.oauthToken;return g.lb(x,K).then(function(l){if(l&&wm()){var M=mh();Nf(M,l)}return g.Ti(Q.player.XZ(M),W,"/youtubei/v1/player/ad_break").then(function(w){return w})})};
ZL4=function(Q){this.vt=Q};
Lk1=function(Q){this.J=Q};
ruz=function(Q){this.vt=Q};
OLs=function(Q){g.N.call(this);this.B=Q;this.Hu=T$h(this)};
T$h=function(Q){var W=new Pta(Q.B.Y3);g.y(Q,W);Q=g.V([new ZL4(Q.B.vt),new Lk1(Q.B.J),new ruz(Q.B.vt),new Ap(Q.B.GF,Q.B.i$),new Uv,new $t(Q.B.h2,Q.B.NH,Q.B.vt),new HE,new i1]);for(var x=Q.next();!x.done;x=Q.next())vCa(W,x.value);Q=g.V(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(x=Q.next();!x.done;x=Q.next())qb(W,x.value,function(){});
return W};
yq=function(Q){var W=Q.o5,x=Q.yj;Q=Q.PV;var D=new Ibs,K={HK:new YHz(W.get(),x),yj:x};return{vN:new KJ(x,Q,W,K),context:K,w1:D}};
ev=function(Q,W,x,D,K){g.N.call(this);this.U=W;this.Jf=x;this.o5=D;this.eQ=K;this.listeners=[];var l=new aC(this);g.y(this,l);l.W(Q,"internalAbandon",this.Wk);this.addOnDisposeCallback(function(){g.d3(l)})};
fi=function(Q){this.J=Q;this.adVideoId=this.B=this.videoId=this.adCpn=this.contentCpn=null;this.L=!0;this.U=this.D=!1;this.adFormat=null;this.N="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
Eoz=function(Q){Q.contentCpn=null;Q.adCpn=null;Q.videoId=null;Q.adVideoId=null;Q.adFormat=null;Q.N="AD_PLACEMENT_KIND_UNKNOWN";Q.actionType="unknown_type";Q.D=!1;Q.U=!1};
FkF=function(Q,W){Q=g.V(W);for(W=Q.next();!W.done;W=Q.next())if((W=W.value.renderer)&&(W.instreamVideoAdRenderer||W.linearAdSequenceRenderer||W.sandwichedLinearAdRenderer||W.instreamSurveyAdRenderer)){Nc("ad_i");g.co({isMonetized:!0});break}};
t1n=function(Q){var W;(W=Q.J.getVideoData(1))!=null&&W.F3&&(Q.U=!1,W={},Q.B&&Q.videoId&&(W.cttAuthInfo={token:Q.B,videoId:Q.videoId}),gK("video_to_ad",W))};
Lz=function(Q){Q.U=!1;var W={};Q.B&&Q.videoId&&(W.cttAuthInfo={token:Q.B,videoId:Q.videoId});gK("ad_to_video",W);Qhl(Q)};
Qhl=function(Q){if(Q.D)if(Q.N==="AD_PLACEMENT_KIND_START"&&Q.actionType==="video_to_ad")$n("video_to_ad");else{var W={adBreakType:Cz(Q.N),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:Q.videoStreamType};Q.actionType==="ad_to_video"?(Q.contentCpn&&(W.targetCpn=Q.contentCpn),Q.videoId&&(W.targetVideoId=Q.videoId)):(Q.adCpn&&(W.targetCpn=Q.adCpn),Q.adVideoId&&(W.targetVideoId=Q.adVideoId));Q.adFormat&&(W.adType=Q.adFormat);Q.contentCpn&&
(W.clientPlaybackNonce=Q.contentCpn);Q.videoId&&(W.videoId=Q.videoId);Q.adCpn&&(W.adClientPlaybackNonce=Q.adCpn);Q.adVideoId&&(W.adVideoId=Q.adVideoId);g.co(W,Q.actionType)}};
ZY=function(Q){g.N.call(this);this.J=Q;this.B=new Map;this.U=new aC(this);g.y(this,this.U);this.U.W(this.J,g.Ru("ad"),this.onCueRangeEnter,this);this.U.W(this.J,g.wt("ad"),this.onCueRangeExit,this)};
WV4=function(Q,W,x,D,K){g.jz.call(this,W,x,{id:Q,namespace:"ad",priority:K,visible:D})};
Li=function(Q){this.J=Q};
ry=function(Q){this.J=Q;g.X0(this.J.C().experiments,"tv_pacf_logging_sample_rate")};
p3=function(Q,W){W=W===void 0?!1:W;return Q.J.C().j("html5_ssap_force_ads_ctmp")?!0:(W||Q.J.C().jk())&&Q.J.C().j("html5_ssap_pacf_qoe_ctmp")};
Tw=function(Q){var W,x;return(x=(W=Q.J.getVideoData(1))==null?void 0:g.TQ(W))!=null?x:!1};
EL=function(Q,W){return Q.J.C().j(W)};
xe4=function(Q){return Q.J.C().j("substitute_ad_cpn_macro_in_ssdai")};
C_=function(Q){var W,x,D;return((W=Q.J.getVideoData(1).getPlayerResponse())==null?void 0:(x=W.playerConfig)==null?void 0:(D=x.daiConfig)==null?void 0:D.enableServerStitchedDai)||!1};
G6Q=function(Q){return Q.J.C().j("html5_enable_vod_slar_with_notify_pacf")};
Deh=function(Q){return Q.J.C().j("html5_recognize_predict_start_cue_point")};
We=function(Q){return Q.J.C().experiments.ij("enable_desktop_player_underlay")};
KVF=function(Q){return Q.J.C().experiments.ij("html5_load_empty_player_in_media_break_sub_lra")};
Ba=function(Q){return Q.J.C().experiments.ij("html5_load_ads_instead_of_cue")};
$a=function(Q){return Q.J.C().experiments.ij("html5_preload_ads")};
FR=function(Q){return Q.J.C().experiments.ij("enable_ads_control_flow_deterministic_id_generation")};
lU4=function(Q){return Q.J.C().experiments.ij("enable_desktop_discovery_video_abandon_pings")||g.Ts(Q.J.C())};
jhO=function(Q){return Q.J.C().experiments.ij("enable_progres_commands_lr_feeds")};
Oz=function(Q){return Q.J.C().experiments.ij("html5_cuepoint_identifier_logging")};
M6n=function(Q){switch(Q){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}};
RBh=function(){g.Rd.call(this);var Q=this;this.B={};this.addOnDisposeCallback(function(){for(var W=g.V(Object.keys(Q.B)),x=W.next();!x.done;x=W.next())delete Q.B[x.value]})};
Ez=function(){if(wKF===null){wKF=new RBh;Gk(vt).U="b";var Q=Gk(vt),W=XW(Q)=="h"||XW(Q)=="b",x=!(UW(),!1);W&&x&&(Q.L=!0,Q.X=new glD)}return wKF};
SMa=function(Q,W,x){Q.B[W]=x};
b65=function(Q){switch(Q){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}};
F$=function(Q,W,x){this.Jf=Q;this.J=W;this.yj=x;this.U=new Set;this.B=new Map;Ez().subscribe("adactiveviewmeasurable",this.rh,this);Ez().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Go,this);Ez().subscribe("adviewableimpression",this.YF,this);Ez().subscribe("adaudioaudible",this.ji,this);Ez().subscribe("adaudiomeasurable",this.oC,this)};
Qd=function(Q,W,x){var D=x.mW,K=x.CG,l=x.listener,M=x.K5;x=x.zN===void 0?!1:x.zN;if(Q.B.has(W))sH("Unexpected registration of layout in LidarApi");else{if(M){if(Q.U.has(M))return;Q.U.add(M)}Q.B.set(W,l);ju(UW().DX,"fmd",1);Fn5(Gk(vt),D);var w=x?W:void 0;SMa(Ez(),W,{q2:function(){if(!K)return{};var S=Q.J.getPresentingPlayerType(!0),b;return(b=Q.J.getVideoData(S))!=null&&b.isAd()?{currentTime:Q.Jf.get().getCurrentTimeSec(S,!1,w),duration:K,isPlaying:tT(Q.Jf.get(),S).isPlaying(),isVpaid:!1,isYouTube:!0,
volume:Q.Jf.get().isMuted()?0:Q.Jf.get().getVolume()/100}:{}}})}};
WS=function(Q,W){Q.B.has(W)?(Q.B.delete(W),delete Ez().B[W]):sH("Unexpected unregistration of layout in LidarApi")};
sh5=function(Q,W){if(Q.J.isLifaAdPlaying()){var x=Q.J.Lv(!0,!0);Q.xV(W,x.width*.5*1.1,x.height*.25*1.1,x.width*.5*.9,x.height*.5*.9)}};
XKQ=function(Q,W,x){var D={};zBs(Q,D,W,x);kxD(D);D.LACT=x5(function(){return aK().toString()});
D.VIS=x5(function(){return Q.getVisibilityState().toString()});
D.SDKV="h.3.0";D.VOL=x5(function(){return Q.isMuted()?"0":Math.round(Q.getVolume()).toString()});
D.VED="";return D};
oMD=function(Q,W){var x={};if(W)return x;if(!Q.kind)return g.ql(Error("AdPlacementConfig without kind")),x;if(Q.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||Q.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!Q.adTimeOffset||!Q.adTimeOffset.offsetStartMilliseconds)return g.ql(Error("malformed AdPlacementConfig")),x;x.MIDROLL_POS=x5(So(Math.round(WZ(Q.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else x.MIDROLL_POS=x5(So("0"));return x};
x5=function(Q){return{toString:function(){return Q()}}};
upQ=function(Q,W,x){function D(w,S){(S=x[S])&&(l[w]=S)}
function K(w,S){(S=x[S])&&(l[w]=M(S))}
if(!x||g.dS(x))return Q;var l=Object.assign({},Q),M=W?encodeURIComponent:function(w){return w};
K("DV_VIEWABILITY","doubleVerifyViewability");K("IAS_VIEWABILITY","integralAdsViewability");K("MOAT_INIT","moatInit");K("MOAT_VIEWABILITY","moatViewability");D("GOOGLE_VIEWABILITY","googleViewability");D("VIEWABILITY","viewability");return l};
zBs=function(Q,W,x,D){W.CPN=x5(function(){var K;(K=Q.getVideoData(1))?K=K.clientPlaybackNonce:(g.Bp(Error("Video data is null.")),K=null);return K});
W.AD_MT=x5(function(){if(D!=null)var K=D;else{var l=x;Q.C().j("html5_ssap_use_cpn_to_get_time")||(l=void 0);if(Q.C().j("enable_h5_shorts_ad_fill_ad_mt_macro")||Q.C().j("enable_desktop_discovery_pings_ad_mt_macro")||g.Ts(Q.C())){var M=Q.getPresentingPlayerType(!0),w;K=((w=Q.getVideoData(M))==null?0:w.isAd())?YM2(Q,M,l):0}else K=YM2(Q,2,l)}return Math.round(Math.max(0,K*1E3)).toString()});
W.MT=x5(function(){return Math.round(Math.max(0,Q.getCurrentTime(1,!1)*1E3)).toString()});
W.P_H=x5(function(){return Q.hf().ZB().height.toString()});
W.P_W=x5(function(){return Q.hf().ZB().width.toString()});
W.PV_H=x5(function(){return Q.hf().getVideoContentRect().height.toString()});
W.PV_W=x5(function(){return Q.hf().getVideoContentRect().width.toString()})};
kxD=function(Q){Q.CONN=x5(So("0"));Q.WT=x5(function(){return Date.now().toString()})};
YM2=function(Q,W,x){return x!==void 0?Q.getCurrentTime(W,!1,x):Q.getCurrentTime(W,!1)};
nMl=function(){};
V64=function(Q,W,x,D,K){var l,M,w,S,b,z,k,X,u,Y,v,J,h;g.U(function(G){switch(G.B){case 1:l=!!W.scrubReferrer;M=g.ip(W.baseUrl,upQ(x,l,D));w={};if(!W.headers){G.kf(2);break}S=Q.N();if(!S.B){b=S.getValue();G.kf(3);break}return g.A(G,S.B,4);case 4:b=G.U;case 3:z=b;k=g.V(W.headers);for(X=k.next();!X.done;X=k.next())switch(u=X.value,u.headerType){case "VISITOR_ID":g.TK("VISITOR_DATA")&&(w["X-Goog-Visitor-Id"]=g.TK("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.TK("EOM_VISITOR_DATA")&&(w["X-Goog-EOM-Visitor-Id"]=
g.TK("EOM_VISITOR_DATA"));break;case "USER_AUTH":z&&(w.Authorization="Bearer "+z);break;case "PLUS_PAGE_ID":(Y=Q.L())&&(w["X-Goog-PageId"]=Y);break;case "AUTH_USER":v=Q.B();!z&&v&&(w["X-Goog-AuthUser"]=v);break;case "DATASYNC_ID":if(J=void 0,(J=Q.D())==null?0:J.ij("enable_datasync_id_header_in_web_vss_pings"))h=Q.U(),Rc(M)&&g.TK("LOGGED_IN")&&h&&(w["X-YouTube-DataSync-Id"]=h)}"X-Goog-EOM-Visitor-Id"in w&&"X-Goog-Visitor-Id"in w&&delete w["X-Goog-Visitor-Id"];case 2:g.c3(M,void 0,l,Object.keys(w).length!==
0?w:void 0,"",!0,K),g.VF(G)}})};
PBa=function(Q,W,x,D,K){this.N=Q;this.L=W;this.B=x;this.U=D;this.D=K};
vMa=function(Q,W){this.B=Q;this.yj=W};
DB=function(Q,W,x,D,K,l,M){var w=w===void 0?new PBa(function(){var S=Q.C(),b=Q.getVideoData(1);return g.lb(S,b?g.ZM(b):"")},function(){return Q.C().pageId},function(){return Q.C().F3},function(){var S;
return(S=Q.C().datasyncId)!=null?S:""},function(){return Q.C().experiments}):w;
this.J=Q;this.U=W;this.BN=x;this.o5=D;this.vN=K;this.yj=l;this.w1=M;this.N=w;this.g0=null;this.B=new Map;this.D=new vMa(w,this.yj)};
J5h=function(Q,W,x,D,K){var l=Az(Q.U.get(),x);l?(x=AD(Q,CBa(l),l,void 0,void 0,D),W.hasOwnProperty("baseUrl")?Q.N.send(W,x):Q.D.send(W,x,{},K)):sH("Trying to ping from an unknown layout",void 0,void 0,{layoutId:x})};
aI5=function(Q,W,x,D,K,l){D=D===void 0?[]:D;var M=Az(Q.U.get(),W);if(M){var w=Q.BN.get().H3(W,x),S=AD(Q,CBa(M),M,K,l);D.forEach(function(b,z){b.baseUrl&&(Q.D.send(b.baseUrl,S,w,b.attributionSrcMode),b.serializedAdPingMetadata&&Q.vN.nN("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,M,new MgO(b,z),void 0,void 0,M.adLayoutLoggingData))})}else sH("Trying to track from an unknown layout.",void 0,void 0,{layoutId:W,
trackingType:x})};
JD=function(Q,W){Q.J.sendVideoStatsEngageEvent(W,void 0,2)};
Wj=function(Q,W){g.wV("adsClientStateChange",W)};
pK4=function(Q,W){Q.B.has(W.Za())?sH("Trying to register an existing AdErrorInfoSupplier."):Q.B.set(W.Za(),W)};
hBa=function(Q,W){Q.B.delete(W.Za())||sH("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
K$=function(Q,W,x){typeof x==="string"?Q.J.getVideoData(1).VO(W,x):Q.J.getVideoData(1).qj(W,x)};
CBa=function(Q){var W=RE(Q.clientMetadata,"metadata_type_ad_placement_config");Q=RE(Q.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:W,Z9:Q}};
AD=function(Q,W,x,D,K,l){var M=x?aUO(Q):{},w=x?Gxs(Q,x.layoutId):{},S=de2(Q),b,z=K!=null?K:(b=nz(Q.o5.get(),2))==null?void 0:b.clientPlaybackNonce;K=void 0;if(x){var k;if((k=Q.w1.B.get(x.layoutId))==null?0:k.zN)K=x.layoutId}k={};Q=Object.assign({},XKQ(Q.J,K,D),oMD(W.adPlacementConfig,(x==null?void 0:x.renderingContent)!==void 0),w,M,S,(k.FINAL=x5(function(){return"1"}),k.AD_CPN=x5(function(){return z||""}),k));
(x==null?void 0:x.renderingContent)!==void 0||(Q.SLOT_POS=x5(function(){return(W.Z9||0).toString()}));
x={};l=Object.assign({},Q,l);Q=g.V(Object.values(i6D));for(D=Q.next();!D.done;D=Q.next())D=D.value,M=l[D],M!=null&&M.toString()!=null&&(x[D]=M.toString());return x};
aUO=function(Q){var W={},x,D=(x=Q.g0)==null?void 0:x.TK/1E3;D!=null&&(W.SURVEY_ELAPSED_MS=x5(function(){return Math.round(D*1E3).toString()}));
W.SURVEY_LOCAL_TIME_EPOCH_S=x5(function(){return Math.round(Date.now()/1E3).toString()});
return W};
Gxs=function(Q,W){Q=Q.B.get(W);if(!Q)return{};Q=Q.Ov();if(!Q)return{};W={};return W.YT_ERROR_CODE=Q.B7.toString(),W.ERRORCODE=Q.iQ.toString(),W.ERROR_MSG=Q.errorMessage,W};
de2=function(Q){var W={},x=Q.J.getVideoData(1);W.ASR=x5(function(){var D;return(D=x==null?void 0:x.YV)!=null?D:null});
W.EI=x5(function(){var D;return(D=x==null?void 0:x.eventId)!=null?D:null});
return W};
Kx=function(Q,W,x){g.N.call(this);this.J=Q;this.CK=W;this.yj=x;this.listeners=[];this.Cx=null;this.pP=new Map;W=new g.I0(this);g.y(this,W);W.W(Q,"videodatachange",this.J23);W.W(Q,"serverstitchedvideochange",this.hOS);this.yr=nz(this)};
nz=function(Q,W){var x=Q.J.getVideoData(W);return x?Q.hN(x,W||Q.J.getPresentingPlayerType(!0)):null};
A52=function(Q,W,x){var D=Q.hN(W,x);Q.yr=D;Q.listeners.forEach(function(K){K.Zn(D)})};
H6s=function(Q){switch(Q){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}};
lw=function(Q,W,x){g.N.call(this);this.J=Q;this.o5=W;this.yj=x;this.listeners=[];this.jl=[];this.B=function(){sH("Called 'doUnlockPreroll' before it's initialized.")};
W=new aC(this);x=new g.I0(this);g.y(this,x);g.y(this,W);W.W(Q,"progresssync",this.QUt);W.W(Q,"presentingplayerstatechange",this.Ur3);W.W(Q,"fullscreentoggled",this.onFullscreenToggled);W.W(Q,"onVolumeChange",this.onVolumeChange);W.W(Q,"minimized",this.NC);W.W(Q,"overlayvisibilitychange",this.v9);W.W(Q,"shortsadswipe",this.j9);W.W(Q,"resize",this.OV);x.W(Q,g.Ru("appad"),this.LR)};
jU=function(Q){Tw(Q.yj.get())||Q.B()};
UeF=function(Q,W){Q.jl=Q.jl.filter(function(x){return x!==W})};
M$=function(Q,W,x){return Q.getCurrentTimeSec(W,x)};
qMO=function(Q,W){var x;W=(x=Q.o5.get().pP.get(W))!=null?x:null;if(W===null)return sH("Expected ad video start time on playback timeline"),0;Q=Q.J.getCurrentTime(2,!0);return Q<W?0:Q-W};
tT=function(Q,W){return Q.J.getPlayerStateObject(W)};
Bjn=function(Q){var W=Q.J.hf().ZB();Q=Q.J.Lv(!0,!0);return W.height-(Q.height+Q.top)};
$en=function(Q){Q.J.cueVideoByPlayerVars({videoId:"empty_video"},2)};
EZF=function(Q,W){var x=Q.J.C();g.q4(x)||x.controlsType!=="3"||Q.J.hf().UF(W)};
RM=function(Q,W){g.j$(Q.J.getRootNode(),W)};
wb=function(Q,W){g.Rr(Q.J.getRootNode(),W)};
IUl=function(Q,W,x,D,K){g.N.call(this);var l=this,M=eX(function(){return new Ef(l.yj)});
g.y(this,M);var w=eX(function(){return new tz(M,l.yj)});
g.y(this,w);var S=eX(function(){return new d7});
g.y(this,S);D=eX(function(){return new aP(Q)});
g.y(this,D);var b=eX(function(){return new Ql(M,w,l.yj)});
g.y(this,b);var z=eX(function(){return new l3});
g.y(this,z);this.JO=eX(function(){return new Zu(K)});
g.y(this,this.JO);this.FE=eX(function(){return new fi(W)});
g.y(this,this.FE);this.ly=eX(function(){return new ZY(W)});
g.y(this,this.ly);this.Y3=eX(function(){return new Li(W)});
g.y(this,this.Y3);this.yj=eX(function(){return new ry(W)});
g.y(this,this.yj);var k=eX(function(){return new oE(l.yj)});
g.y(this,k);var X=eX(function(){return new n_(M,b,w,l.yj,k,null,null,null,null)});
g.y(this,X);this.o5=eX(function(){return new Kx(W,z,l.yj)});
g.y(this,this.o5);var u=yq({o5:this.o5,yj:this.yj,PV:k}),Y=u.context,v=u.w1;this.vN=u.vN;this.Jf=eX(function(){return new lw(W,l.o5,l.yj)});
g.y(this,this.Jf);this.BN=eX(function(){return new F$(l.Jf,W,l.yj)});
g.y(this,this.BN);this.vt=eX(function(){return new DB(W,S,l.BN,l.o5,l.vN,l.yj,v)});
g.y(this,this.vt);this.pZ=new hz(D,X,x,this.yj,Q,this.o5,this.Jf,this.FE);g.y(this,this.pZ);var J=new ev(W,this.pZ,this.Jf,this.o5);this.kY=eX(function(){return J});
this.sb=J;this.oz=new Go(D,b,this.ly,this.kY,Y);g.y(this,this.oz);this.mm=new NB(this.yj,D,b,X,this.o5,this.oz,x);g.y(this,this.mm);this.Xi={GU:new Map,Yl:new Map,SD:new Map,C0:new Map,mN:new Map};this.listeners=[];this.aO={mm:this.mm,NH:this.yj.get(),R5:this.JO.get(),Rb:this.Jf.get(),pZ:this.pZ,RK:M.get(),k9:null,i$:{He:function(){}},
GF:S.get(),h2:this.o5.get()}};
SU=function(Q,W){g.N.call(this);this.H8=W;this.H8.get().addListener(this)};
bw=function(Q){this.B=Q};
men=function(Q,W){if(!Q)return{CU:[],adSlots:[],vU:!0,ssdaiAdsConfig:void 0};Q.trackingParams&&AB(Q.trackingParams);if(Q.adThrottled)return{CU:[],adSlots:[],vU:!0,ssdaiAdsConfig:void 0};var x,D=(x=Q.adSlots)!=null?x:[],K;x=(K=Q.playerAds)!=null?K:[];if(!(x&&x.length||D.length))return{CU:[],adSlots:D,vU:!1,ssdaiAdsConfig:void 0};K=x.map(function(M){return M.adPlacementRenderer}).filter(function(M){return!(!M||!M.renderer)});
if(!K.length&&!D.length)return{CU:[],adSlots:D,vU:!1,ssdaiAdsConfig:void 0};if(W.end>0){var l=W.end.toString();K.forEach(function(M){(M=M.config&&M.config.adPlacementConfig)&&M.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&M.adTimeOffset&&M.adTimeOffset.offsetEndMilliseconds==="-1"&&M.adTimeOffset.offsetEndMilliseconds!==l&&(M.adTimeOffset.offsetEndMilliseconds=l)});
D.map(function(M){return g.e(M,cD)}).forEach(function(M){var w;
(M=M==null?void 0:(w=M.slotEntryTrigger)==null?void 0:w.mediaTimeRangeTrigger)&&M.offsetEndMilliseconds==="-1"&&(M.offsetEndMilliseconds=l)})}return{CU:K,
adSlots:D,vU:!1,ssdaiAdsConfig:Q.ssdaiAdsConfig}};
sn=function(Q){g.N.call(this);this.J=Q;this.listeners=[];this.B=new aC(this);g.y(this,this.B);this.B.W(this.J,"aduxclicked",this.onAdUxClicked);this.B.W(this.J,"aduxmouseover",this.c_);this.B.W(this.J,"aduxmouseout",this.Ji);this.B.W(this.J,"muteadaccepted",this.AO9)};
Njs=function(Q,W,x){W=g.pm(W,function(D){return new r4Q(D,x,D.id)});
Q.J.Wt("onAdUxUpdate",W)};
z7=function(Q,W){Q=g.V(Q.listeners);for(var x=Q.next();!x.done;x=Q.next())W(x.value)};
k5=function(Q,W){this.U=Q;this.D=W===void 0?!1:W;this.B={}};
c55=function(Q,W){var x=Q.startSecs+Q.eE;x=x<=0?null:x;if(x===null)return null;switch(Q.event){case "start":case "continue":case "stop":break;case "predictStart":if(W)break;return null;default:return null}W=Math.max(Q.startSecs,0);return{Bn:new CT(W,x),W3t:new gQ(W,x-W,Q.context,Q.identifier,Q.event,Q.B)}};
gM2=function(){this.B=[]};
poz=function(Q,W,x){var D=g.wl(Q.B,W);if(D>=0)return W;W=-D-1;return W>=Q.B.length||Q.B[W]>x?null:Q.B[W]};
XQ=function(Q,W,x){g.N.call(this);this.J=Q;this.yj=W;this.vt=x;this.listeners=[];this.N=!1;this.oA=[];this.B=null;this.L=new k5(this,Deh(W.get()));this.D=new gM2;this.U=null};
y5s=function(Q,W){Q.oA.push(W);for(var x=!1,D=g.V(Q.listeners),K=D.next();!K.done;K=D.next())x=K.value.bq(W)||x;Q.N=x;Oz(Q.yj.get())&&K$(Q.vt.get(),"onci","cpi."+W.identifier+";cpe."+W.event+";cps."+W.startSecs+";cbi."+x)};
fUh=function(Q,W){Wj(Q.vt.get(),{cuepointTrigger:{event:eBs(W.event),cuepointId:W.identifier,totalCueDurationMs:W.eE*1E3,playheadTimeMs:W.B,cueStartTimeMs:W.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:Q.J.getVideoData(1).clientPlaybackNonce}})};
eBs=function(Q){switch(Q){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 Ma(Q,"Unexpected cuepoint event")}};
oM=function(Q){this.J=Q};
Z6F=function(Q,W){Q.J.cueVideoByPlayerVars(W,2)};
uw=function(Q){this.J=Q};
Y5=function(Q){this.J=Q};
LVD=function(Q){switch(Q){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:Ma(Q,"unknown transitionReason")}};
r52=function(Q){this.J=Q};
Tj1=function(Q,W,x,D,K){g.N.call(this);var l=this,M=eX(function(){return new Ef(l.yj)});
g.y(this,M);var w=eX(function(){return new tz(M,l.yj)});
g.y(this,w);var S=eX(function(){return new d7});
g.y(this,S);var b=eX(function(){return new aP(Q)});
g.y(this,b);var z=eX(function(){return new Ql(M,w,l.yj)});
g.y(this,z);var k=eX(function(){return new l3});
g.y(this,k);this.Vh=eX(function(){return new sn(W)});
g.y(this,this.Vh);this.JO=eX(function(){return new Zu(K)});
g.y(this,this.JO);this.FE=eX(function(){return new fi(W)});
g.y(this,this.FE);this.ly=eX(function(){return new ZY(W)});
g.y(this,this.ly);this.IQ=eX(function(){return new oM(W)});
g.y(this,this.IQ);this.Y3=eX(function(){return new Li(W)});
g.y(this,this.Y3);this.yj=eX(function(){return new ry(W)});
g.y(this,this.yj);var X=eX(function(){return new bw(D)});
g.y(this,X);var u=eX(function(){return new oE(l.yj)});
g.y(this,u);this.Xs=eX(function(){return new uw(W)});
g.y(this,this.Xs);this.H8=eX(function(){return new T_});
g.y(this,this.H8);this.o5=eX(function(){return new Kx(W,k,l.yj)});
g.y(this,this.o5);var Y=yq({o5:this.o5,yj:this.yj,PV:u}),v=Y.context,J=Y.w1;this.vN=Y.vN;this.eQ=eX(function(){return new XQ(W,l.yj,l.vt)});
g.y(this,this.eQ);this.x3=eX(function(){return new Y5(W)});
g.y(this,this.x3);this.Jf=eX(function(){return new lw(W,l.o5,l.yj)});
g.y(this,this.Jf);Y=eX(function(){return new n_(M,z,w,l.yj,u,"SLOT_TYPE_ABOVE_FEED",l.Jf,l.Bz,l.lG)});
g.y(this,Y);this.EQ=eX(function(){return new OL(l.yj)});
this.BN=eX(function(){return new F$(l.Jf,W,l.yj)});
g.y(this,this.BN);this.vt=eX(function(){return new DB(W,S,l.BN,l.o5,l.vN,l.yj,J)});
g.y(this,this.vt);this.s8=new p_(Jz,nx,function(G,H,I,c){return QE(w.get(),G,H,I,c)},b,z,w,u,this.yj,this.o5);
g.y(this,this.s8);this.pZ=new hz(b,Y,x,this.yj,Q,this.o5,this.Jf,this.FE);g.y(this,this.pZ);var h=new ev(W,this.pZ,this.Jf,this.o5,this.eQ);this.kY=eX(function(){return h});
this.sb=h;this.Bz=new ve(b,z,this.kY,this.eQ,this.Jf,this.yj,this.vt,this.x3);g.y(this,this.Bz);this.oz=new Go(b,z,this.ly,this.kY,v);g.y(this,this.oz);this.mm=new NB(this.yj,b,z,Y,this.o5,this.oz,x);g.y(this,this.mm);this.aH=eX(function(){return new XX(X,w,u,l.yj,l.vt,l.Jf,l.x3)});
g.y(this,this.aH);this.Tx=eX(function(){return new ou});
g.y(this,this.Tx);this.Ty=new $s(Q,this.Vh,this.yj);g.y(this,this.Ty);this.wG=new IP(Q);g.y(this,this.wG);this.qt=new mD(Q);g.y(this,this.qt);this.Er=new ce(Q,this.kY,v);g.y(this,this.Er);this.rH=new g7(Q,this.ly,this.Jf,this.o5,v);g.y(this,this.rH);this.yO=new yE(Q,this.o5);g.y(this,this.yO);this.lG=new ZO(Q,this.eQ,this.Jf,this.vt,this.kY);g.y(this,this.lG);this.xX=new es(Q);g.y(this,this.xX);this.fZ=new Of(Q);g.y(this,this.fZ);this.GH=new f_(Q);g.y(this,this.GH);this.Ga=new To(Q);g.y(this,this.Ga);
this.fZ=new Of(Q);g.y(this,this.fZ);this.aU=eX(function(){return new He});
g.y(this,this.aU);this.zH=eX(function(){return new Uf(l.Jf)});
g.y(this,this.zH);this.b8=eX(function(){return new r_F(l.Vh,l.vt,Q,S,l.BN)});
g.y(this,this.b8);this.S9=eX(function(){return new Q$(l.mm,b,M)});
g.y(this,this.S9);this.yD=eX(function(){return new DC(l.yj,l.vt,l.xX,l.BN)});
g.y(this,this.yD);this.eH=eX(function(){return new bP(Q,l.fZ,l.xX,l.o5,l.x3,l.Jf,l.vt,k,l.eQ,l.BN,l.EQ,l.IQ,l.ly,l.FE,l.Y3,l.JO,l.Xs,l.yj,S,v,J)});
g.y(this,this.eH);this.YL=eX(function(){return new RNh(l.Jf,l.vt,l.JO,l.yj,l.BN,l.o5)});
g.y(this,this.YL);this.aX=eX(function(){return new OAF(l.Vh,l.Jf,l.vt,S,l.BN,l.qt,l.Ga,l.JO,l.yj,x)});
g.y(this,this.aX);this.EE=eX(function(){return new Tnz(l.Vh,l.vt,S)});
g.y(this,this.EE);this.bM=new SU(Q,this.H8,M);g.y(this,this.bM);this.Xi={GU:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.mm],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Bz],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.s8],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.pZ],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oz]]),Yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aH],["SLOT_TYPE_ABOVE_FEED",this.Tx],["SLOT_TYPE_FORECASTING",this.Tx],
["SLOT_TYPE_IN_PLAYER",this.Tx],["SLOT_TYPE_PLAYER_BYTES",this.Tx],["SLOT_TYPE_PLAYER_UNDERLAY",this.Tx],["SLOT_TYPE_PLAYBACK_TRACKING",this.Tx],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Tx]]),SD:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ty],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Ty],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wG],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wG],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wG],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wG],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.wG],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wG],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wG],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.wG],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.wG],["TRIGGER_TYPE_CLOSE_REQUESTED",this.qt],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Er],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.rH],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.rH],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.rH],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.rH],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rH],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.rH],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.rH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.yO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.yO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xX],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.Er],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.GH],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Ga],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fZ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.lG],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.lG],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.lG],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.lG],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.lG]]),C0:new Map([["SLOT_TYPE_ABOVE_FEED",this.aU],
["SLOT_TYPE_AD_BREAK_REQUEST",this.aU],["SLOT_TYPE_FORECASTING",this.aU],["SLOT_TYPE_IN_PLAYER",this.aU],["SLOT_TYPE_PLAYER_BYTES",this.zH],["SLOT_TYPE_PLAYER_UNDERLAY",this.aU],["SLOT_TYPE_PLAYBACK_TRACKING",this.aU],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.aU]]),mN:new Map([["SLOT_TYPE_ABOVE_FEED",this.b8],["SLOT_TYPE_AD_BREAK_REQUEST",this.S9],["SLOT_TYPE_FORECASTING",this.yD],["SLOT_TYPE_PLAYER_BYTES",this.eH],["SLOT_TYPE_PLAYBACK_TRACKING",this.YL],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",
this.YL],["SLOT_TYPE_IN_PLAYER",this.aX],["SLOT_TYPE_PLAYER_UNDERLAY",this.EE]])};this.listeners=[S.get()];this.aO={mm:this.mm,NH:this.yj.get(),R5:this.JO.get(),Rb:this.Jf.get(),pZ:this.pZ,RK:M.get(),k9:this.H8.get(),i$:this.Ty,GF:S.get(),h2:this.o5.get()}};
O62=function(Q,W,x,D,K){g.N.call(this);var l=this,M=eX(function(){return new Ef(l.yj)});
g.y(this,M);var w=eX(function(){return new tz(M,l.yj)});
g.y(this,w);var S=eX(function(){return new d7});
g.y(this,S);var b=eX(function(){return new aP(Q)});
g.y(this,b);var z=eX(function(){return new Ql(M,w,l.yj)});
g.y(this,z);var k=eX(function(){return new l3});
g.y(this,k);this.Vh=eX(function(){return new sn(W)});
g.y(this,this.Vh);this.JO=eX(function(){return new Zu(K)});
g.y(this,this.JO);this.FE=eX(function(){return new fi(W)});
g.y(this,this.FE);this.ly=eX(function(){return new ZY(W)});
g.y(this,this.ly);this.IQ=eX(function(){return new oM(W)});
g.y(this,this.IQ);this.Y3=eX(function(){return new Li(W)});
g.y(this,this.Y3);this.yj=eX(function(){return new ry(W)});
g.y(this,this.yj);var X=eX(function(){return new bw(D)});
g.y(this,X);var u=eX(function(){return new oE(l.yj)});
g.y(this,u);var Y=eX(function(){return new n_(M,z,w,l.yj,u,null,null,l.Bz,l.lG)});
g.y(this,Y);this.Xs=eX(function(){return new uw(W)});
g.y(this,this.Xs);this.H8=eX(function(){return new T_});
g.y(this,this.H8);this.o5=eX(function(){return new Kx(W,k,l.yj)});
g.y(this,this.o5);var v=yq({o5:this.o5,yj:this.yj,PV:u}),J=v.context,h=v.w1;this.vN=v.vN;this.eQ=eX(function(){return new XQ(W,l.yj,l.vt)});
this.Jf=eX(function(){return new lw(W,l.o5,l.yj)});
g.y(this,this.Jf);this.BN=eX(function(){return new F$(l.Jf,W,l.yj)});
g.y(this,this.BN);this.vt=eX(function(){return new DB(W,S,l.BN,l.o5,l.vN,l.yj,h)});
g.y(this,this.vt);this.EQ=eX(function(){return new OL(l.yj)});
g.y(this,this.EQ);this.s8=new p_(Jz,nx,function(H,I,c,O){return QE(w.get(),H,I,c,O)},b,z,w,u,this.yj,this.o5);
g.y(this,this.s8);this.pZ=new hz(b,Y,x,this.yj,Q,this.o5,this.Jf,this.FE);g.y(this,this.pZ);var G=new ev(W,this.pZ,this.Jf,this.o5,this.eQ);this.kY=eX(function(){return G});
this.sb=G;this.Bz=new ve(b,z,this.kY,this.eQ,this.Jf,this.yj,this.vt);g.y(this,this.Bz);this.oz=new Go(b,z,this.ly,this.kY,J);g.y(this,this.oz);this.mm=new NB(this.yj,b,z,Y,this.o5,this.oz,x);g.y(this,this.mm);this.aH=eX(function(){return new XX(X,w,u,l.yj,l.vt,l.Jf)});
g.y(this,this.aH);this.Tx=eX(function(){return new ou});
g.y(this,this.Tx);this.Ty=new $s(Q,this.Vh,this.yj);g.y(this,this.Ty);this.wG=new IP(Q);g.y(this,this.wG);this.qt=new mD(Q);g.y(this,this.qt);this.Er=new ce(Q,this.kY,J);g.y(this,this.Er);this.rH=new g7(Q,this.ly,this.Jf,this.o5,J);g.y(this,this.rH);this.xX=new es(Q);g.y(this,this.xX);this.GH=new f_(Q);g.y(this,this.GH);this.Ga=new To(Q);g.y(this,this.Ga);this.x3=eX(function(){return new Y5(W)});
g.y(this,this.x3);this.fZ=new Of(Q);g.y(this,this.fZ);this.lG=new ZO(Q,this.eQ,this.Jf,this.vt,this.kY);g.y(this,this.lG);this.aU=eX(function(){return new He});
g.y(this,this.aU);this.zH=eX(function(){return new Uf(l.Jf)});
g.y(this,this.zH);this.S9=eX(function(){return new Q$(l.mm,b,M)});
g.y(this,this.S9);this.yD=eX(function(){return new DC(l.yj,l.vt,l.xX,l.BN)});
g.y(this,this.yD);this.aX=eX(function(){return new EnQ(l.Vh,l.Jf,l.vt,S,l.BN,l.qt,l.Ga,l.JO,l.yj,x)});
g.y(this,this.aX);this.eH=eX(function(){return new sj(Q,l.fZ,l.xX,l.vt,l.BN,l.EQ,l.IQ,l.o5,l.Jf,l.ly,l.FE,l.Y3,l.JO,l.Xs,l.yj,l.x3,J,h)});
g.y(this,this.eH);this.bM=new SU(Q,this.H8,M);g.y(this,this.bM);this.Xi={GU:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.mm],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Bz],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.s8],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.pZ],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oz]]),Yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aH],["SLOT_TYPE_FORECASTING",this.Tx],["SLOT_TYPE_IN_PLAYER",this.Tx],
["SLOT_TYPE_PLAYER_BYTES",this.Tx]]),SD:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ty],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wG],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wG],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wG],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wG],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wG],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wG],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wG],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.wG],["TRIGGER_TYPE_CLOSE_REQUESTED",this.qt],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Er],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.rH],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rH],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.rH],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xX],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Er],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.GH],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.Ga],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fZ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.lG],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.lG],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.lG],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.lG],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.lG]]),C0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aU],["SLOT_TYPE_FORECASTING",this.aU],["SLOT_TYPE_IN_PLAYER",this.aU],["SLOT_TYPE_PLAYER_BYTES",this.zH]]),
mN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.S9],["SLOT_TYPE_FORECASTING",this.yD],["SLOT_TYPE_IN_PLAYER",this.aX],["SLOT_TYPE_PLAYER_BYTES",this.eH]])};this.listeners=[S.get()];this.aO={mm:this.mm,NH:this.yj.get(),R5:this.JO.get(),Rb:this.Jf.get(),pZ:this.pZ,RK:M.get(),k9:this.H8.get(),i$:this.Ty,GF:S.get(),h2:this.o5.get()}};
EMO=function(Q,W,x,D,K){g.N.call(this);var l=this,M=eX(function(){return new Ef(l.yj)});
g.y(this,M);var w=eX(function(){return new tz(M,l.yj)});
g.y(this,w);var S=eX(function(){return new d7});
g.y(this,S);var b=eX(function(){return new aP(Q)});
g.y(this,b);var z=eX(function(){return new Ql(M,w,l.yj)});
g.y(this,z);var k=eX(function(){return new l3});
g.y(this,k);this.Vh=eX(function(){return new sn(W)});
g.y(this,this.Vh);this.JO=eX(function(){return new Zu(K)});
g.y(this,this.JO);this.FE=eX(function(){return new fi(W)});
g.y(this,this.FE);this.ly=eX(function(){return new ZY(W)});
g.y(this,this.ly);this.IQ=eX(function(){return new oM(W)});
g.y(this,this.IQ);this.Y3=eX(function(){return new Li(W)});
g.y(this,this.Y3);this.yj=eX(function(){return new ry(W)});
g.y(this,this.yj);var X=eX(function(){return new bw(D)});
g.y(this,X);var u=eX(function(){return new oE(l.yj)});
g.y(this,u);var Y=eX(function(){return new n_(M,z,w,l.yj,u,null,null,null,null)});
g.y(this,Y);this.Xs=eX(function(){return new uw(W)});
g.y(this,this.Xs);this.o5=eX(function(){return new Kx(W,k,l.yj)});
g.y(this,this.o5);var v=yq({o5:this.o5,yj:this.yj,PV:u}),J=v.context,h=v.w1;this.vN=v.vN;this.Jf=eX(function(){return new lw(W,l.o5,l.yj)});
g.y(this,this.Jf);this.BN=eX(function(){return new F$(l.Jf,W,l.yj)});
g.y(this,this.BN);this.vt=eX(function(){return new DB(W,S,l.BN,l.o5,l.vN,l.yj,h)});
g.y(this,this.vt);this.EQ=eX(function(){return new OL(l.yj)});
g.y(this,this.EQ);this.s8=new p_(Jz,nx,function(H,I,c,O){return QE(w.get(),H,I,c,O)},b,z,w,u,this.yj,this.o5);
g.y(this,this.s8);this.pZ=new hz(b,Y,x,this.yj,Q,this.o5,this.Jf,this.FE);g.y(this,this.pZ);var G=new ev(W,this.pZ,this.Jf,this.o5);this.kY=eX(function(){return G});
this.sb=G;this.oz=new Go(b,z,this.ly,this.kY,J);g.y(this,this.oz);this.mm=new NB(this.yj,b,z,Y,this.o5,this.oz,x);g.y(this,this.mm);this.aH=eX(function(){return new XX(X,w,u,l.yj,l.vt,l.Jf)});
g.y(this,this.aH);this.Tx=eX(function(){return new ou});
g.y(this,this.Tx);this.Ty=new $s(Q,this.Vh,this.yj);g.y(this,this.Ty);this.wG=new IP(Q);g.y(this,this.wG);this.Er=new ce(Q,this.kY,J);g.y(this,this.Er);this.rH=new g7(Q,this.ly,this.Jf,this.o5,J);g.y(this,this.rH);this.xX=new es(Q);g.y(this,this.xX);this.GH=new f_(Q);g.y(this,this.GH);this.x3=eX(function(){return new Y5(W)});
g.y(this,this.x3);this.fZ=new Of(Q);g.y(this,this.fZ);this.aU=eX(function(){return new He});
g.y(this,this.aU);this.zH=eX(function(){return new Uf(l.Jf)});
g.y(this,this.zH);this.S9=eX(function(){return new Q$(l.mm,b,M)});
g.y(this,this.S9);this.yD=eX(function(){return new DC(l.yj,l.vt,l.xX,l.BN)});
g.y(this,this.yD);this.Nw=eX(function(){return new Miz(l.Vh,l.Jf,l.vt,S,x,l.yj)});
g.y(this,this.Nw);this.eH=eX(function(){return new sj(Q,l.fZ,l.xX,l.vt,l.BN,l.EQ,l.IQ,l.o5,l.Jf,l.ly,l.FE,l.Y3,l.JO,l.Xs,l.yj,l.x3,J,h)});
g.y(this,this.eH);this.Xi={GU:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.mm],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.s8],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.pZ],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oz]]),Yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aH],["SLOT_TYPE_FORECASTING",this.Tx],["SLOT_TYPE_IN_PLAYER",this.Tx],["SLOT_TYPE_PLAYER_BYTES",this.Tx]]),SD:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ty],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.wG],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wG],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wG],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wG],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wG],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wG],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wG],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Er],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.rH],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.rH],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xX],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Er],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.GH],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fZ]]),C0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aU],["SLOT_TYPE_ABOVE_FEED",this.aU],["SLOT_TYPE_FORECASTING",this.aU],["SLOT_TYPE_IN_PLAYER",this.aU],["SLOT_TYPE_PLAYER_BYTES",this.zH]]),mN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.S9],["SLOT_TYPE_FORECASTING",this.yD],["SLOT_TYPE_IN_PLAYER",
this.Nw],["SLOT_TYPE_PLAYER_BYTES",this.eH]])};this.listeners=[S.get()];this.aO={mm:this.mm,NH:this.yj.get(),R5:this.JO.get(),Rb:this.Jf.get(),pZ:this.pZ,RK:M.get(),k9:null,i$:this.Ty,GF:S.get(),h2:this.o5.get()}};
FVn=function(Q,W,x,D,K){g.N.call(this);var l=this,M=eX(function(){return new Ef(l.yj)});
g.y(this,M);var w=eX(function(){return new tz(M,l.yj)});
g.y(this,w);var S=eX(function(){return new d7});
g.y(this,S);var b=eX(function(){return new aP(Q)});
g.y(this,b);var z=eX(function(){return new Ql(M,w,l.yj)});
g.y(this,z);var k=eX(function(){return new l3});
g.y(this,k);this.p7=eX(function(){return new r52(W)});
g.y(this,this.p7);this.Vh=eX(function(){return new sn(W)});
g.y(this,this.Vh);this.JO=eX(function(){return new Zu(K)});
g.y(this,this.JO);this.FE=eX(function(){return new fi(W)});
g.y(this,this.FE);this.ly=eX(function(){return new ZY(W)});
g.y(this,this.ly);this.IQ=eX(function(){return new oM(W)});
g.y(this,this.IQ);this.Y3=eX(function(){return new Li(W)});
g.y(this,this.Y3);this.yj=eX(function(){return new ry(W)});
g.y(this,this.yj);var X=eX(function(){return new bw(D)});
g.y(this,X);var u=eX(function(){return new oE(l.yj)});
g.y(this,u);var Y=eX(function(){return new n_(M,z,w,l.yj,u,null,null,null,null)});
g.y(this,Y);this.Xs=eX(function(){return new uw(W)});
g.y(this,this.Xs);this.o5=eX(function(){return new Kx(W,k,l.yj)});
g.y(this,this.o5);var v=yq({o5:this.o5,yj:this.yj,PV:u}),J=v.context,h=v.w1;this.vN=v.vN;this.Jf=eX(function(){return new lw(W,l.o5,l.yj)});
g.y(this,this.Jf);this.BN=eX(function(){return new F$(l.Jf,W,l.yj)});
g.y(this,this.BN);this.vt=eX(function(){return new DB(W,S,l.BN,l.o5,l.vN,l.yj,h)});
g.y(this,this.vt);this.EQ=eX(function(){return new OL(l.yj)});
g.y(this,this.EQ);this.s8=new p_(qQF,nx,function(H,I,c,O){return xpl(w.get(),H,I,c,O)},b,z,w,u,this.yj,this.o5);
g.y(this,this.s8);this.pZ=new hz(b,Y,x,this.yj,Q,this.o5,this.Jf,this.FE);g.y(this,this.pZ);var G=new ev(W,this.pZ,this.Jf,this.o5);this.kY=eX(function(){return G});
this.sb=G;this.oz=new Go(b,z,this.ly,this.kY,J);g.y(this,this.oz);this.mm=new NB(this.yj,b,z,Y,this.o5,this.oz,x);g.y(this,this.mm);this.aH=eX(function(){return new XX(X,w,u,l.yj,l.vt,l.Jf)});
g.y(this,this.aH);this.Tx=eX(function(){return new ou});
g.y(this,this.Tx);this.Ty=new $s(Q,this.Vh,this.yj);g.y(this,this.Ty);this.wG=new IP(Q);g.y(this,this.wG);this.Er=new ce(Q,this.kY,J);g.y(this,this.Er);this.rH=new g7(Q,this.ly,this.Jf,this.o5,J);g.y(this,this.rH);this.xX=new es(Q);g.y(this,this.xX);this.GH=new f_(Q);g.y(this,this.GH);this.x3=eX(function(){return new Y5(W)});
g.y(this,this.x3);this.fZ=new Of(Q);g.y(this,this.fZ);this.aU=eX(function(){return new He});
g.y(this,this.aU);this.zH=eX(function(){return new Uf(l.Jf)});
g.y(this,this.zH);this.S9=eX(function(){return new Q$(l.mm,b,M)});
g.y(this,this.S9);this.yD=eX(function(){return new DC(l.yj,l.vt,l.xX,l.BN)});
g.y(this,this.yD);this.eH=eX(function(){return new sj(Q,l.fZ,l.xX,l.vt,l.BN,l.EQ,l.IQ,l.o5,l.Jf,l.ly,l.FE,l.Y3,l.JO,l.Xs,l.yj,l.x3,J,h)});
g.y(this,this.eH);this.hp=eX(function(){return new tPn(l.Vh,l.Jf,l.vt,S,l.p7,x,l.o5)});
g.y(this,this.hp);this.Xi={GU:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.mm],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.s8],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.pZ],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oz]]),Yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aH],["SLOT_TYPE_FORECASTING",this.Tx],["SLOT_TYPE_IN_PLAYER",this.Tx],["SLOT_TYPE_PLAYER_BYTES",this.Tx]]),SD:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ty],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.wG],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wG],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wG],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wG],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wG],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wG],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wG],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Er],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.rH],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.rH],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xX],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Er],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.GH],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fZ]]),C0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aU],["SLOT_TYPE_FORECASTING",this.aU],["SLOT_TYPE_IN_PLAYER",this.aU],["SLOT_TYPE_PLAYER_BYTES",this.zH]]),mN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.S9],["SLOT_TYPE_FORECASTING",this.yD],["SLOT_TYPE_IN_PLAYER",this.hp],["SLOT_TYPE_PLAYER_BYTES",
this.eH]])};this.listeners=[S.get()];this.aO={mm:this.mm,NH:this.yj.get(),R5:this.JO.get(),Rb:this.Jf.get(),pZ:this.pZ,RK:M.get(),k9:null,i$:this.Ty,GF:S.get(),h2:this.o5.get()}};
t61=function(Q,W,x,D,K){g.N.call(this);var l=this,M=eX(function(){return new Ef(l.yj)});
g.y(this,M);var w=eX(function(){return new tz(M,l.yj)});
g.y(this,w);var S=eX(function(){return new d7});
g.y(this,S);var b=eX(function(){return new aP(Q)});
g.y(this,b);var z=eX(function(){return new Ql(M,w,l.yj)});
g.y(this,z);var k=eX(function(){return new l3});
g.y(this,k);this.p7=eX(function(){return new r52(W)});
g.y(this,this.p7);this.Vh=eX(function(){return new sn(W)});
g.y(this,this.Vh);this.JO=eX(function(){return new Zu(K)});
g.y(this,this.JO);this.FE=eX(function(){return new fi(W)});
g.y(this,this.FE);this.ly=eX(function(){return new ZY(W)});
g.y(this,this.ly);this.IQ=eX(function(){return new oM(W)});
g.y(this,this.IQ);this.Y3=eX(function(){return new Li(W)});
g.y(this,this.Y3);this.yj=eX(function(){return new ry(W)});
g.y(this,this.yj);var X=eX(function(){return new bw(D)});
g.y(this,X);var u=eX(function(){return new oE(l.yj)});
g.y(this,u);this.Xs=eX(function(){return new uw(W)});
g.y(this,this.Xs);this.o5=eX(function(){return new Kx(W,k,l.yj)});
g.y(this,this.o5);var Y=yq({o5:this.o5,yj:this.yj,PV:u}),v=Y.context,J=Y.w1;this.vN=Y.vN;this.eQ=eX(function(){return new XQ(W,l.yj,l.vt)});
g.y(this,this.eQ);this.x3=eX(function(){return new Y5(W)});
g.y(this,this.x3);this.Jf=eX(function(){return new lw(W,l.o5,l.yj)});
g.y(this,this.Jf);Y=eX(function(){return new n_(M,z,w,l.yj,u,null,l.Jf,l.Bz,l.lG,3)});
g.y(this,Y);this.EQ=eX(function(){return new OL(l.yj)});
this.BN=eX(function(){return new F$(l.Jf,W,l.yj)});
g.y(this,this.BN);this.vt=eX(function(){return new DB(W,S,l.BN,l.o5,l.vN,l.yj,J)});
g.y(this,this.vt);this.pZ=new hz(b,Y,x,this.yj,Q,this.o5,this.Jf,this.FE);g.y(this,this.pZ);var h=new ev(W,this.pZ,this.Jf,this.o5,this.eQ);this.kY=eX(function(){return h});
this.sb=h;this.s8=new p_(Baz,nx,function(G,H,I,c){return xpl(w.get(),G,H,I,c)},b,z,w,u,this.yj,this.o5);
g.y(this,this.s8);this.Bz=new ve(b,z,this.kY,this.eQ,this.Jf,this.yj,this.vt,this.x3);g.y(this,this.Bz);this.oz=new Go(b,z,this.ly,this.kY,v);g.y(this,this.oz);this.mm=new NB(this.yj,b,z,Y,this.o5,this.oz,x);g.y(this,this.mm);this.aH=eX(function(){return new XX(X,w,u,l.yj,l.vt,l.Jf,l.x3)});
g.y(this,this.aH);this.Tx=eX(function(){return new ou});
g.y(this,this.Tx);this.Ty=new $s(Q,this.Vh,this.yj);g.y(this,this.Ty);this.wG=new IP(Q);g.y(this,this.wG);this.Er=new ce(Q,this.kY,v);g.y(this,this.Er);this.rH=new g7(Q,this.ly,this.Jf,this.o5,v);g.y(this,this.rH);this.yO=new yE(Q,this.o5);g.y(this,this.yO);this.lG=new ZO(Q,this.eQ,this.Jf,this.vt,this.kY);g.y(this,this.lG);this.xX=new es(Q);g.y(this,this.xX);this.GH=new f_(Q);g.y(this,this.GH);this.fZ=new Of(Q);g.y(this,this.fZ);this.aU=eX(function(){return new He});
g.y(this,this.aU);this.zH=eX(function(){return new Uf(l.Jf)});
g.y(this,this.zH);this.S9=eX(function(){return new Q$(l.mm,b,M)});
g.y(this,this.S9);this.yD=eX(function(){return new DC(l.yj,l.vt,l.xX,l.BN)});
g.y(this,this.yD);this.eH=eX(function(){return new bP(Q,l.fZ,l.xX,l.o5,l.x3,l.Jf,l.vt,k,l.eQ,l.BN,l.EQ,l.IQ,l.ly,l.FE,l.Y3,l.JO,l.Xs,l.yj,S,v,J)});
g.y(this,this.eH);this.aX=eX(function(){return new Qth(l.Vh,l.Jf,l.vt,S,l.p7,x,l.yj,l.o5)});
g.y(this,this.aX);this.Xi={GU:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.mm],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Bz],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.s8],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.pZ],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oz]]),Yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aH],["SLOT_TYPE_FORECASTING",this.Tx],["SLOT_TYPE_IN_PLAYER",this.Tx],["SLOT_TYPE_PLAYER_BYTES",this.Tx]]),SD:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.Ty],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.wG],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.wG],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.wG],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.wG],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.wG],["TRIGGER_TYPE_SLOT_ID_EXITED",this.wG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.wG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.wG],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.wG],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Er],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.rH],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.yO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.yO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xX],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Er],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.GH],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fZ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.lG],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",
this.lG],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.lG],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.lG],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.lG]]),C0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aU],["SLOT_TYPE_FORECASTING",this.aU],["SLOT_TYPE_IN_PLAYER",this.aU],["SLOT_TYPE_PLAYER_BYTES",this.zH]]),mN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.S9],["SLOT_TYPE_FORECASTING",this.yD],["SLOT_TYPE_PLAYER_BYTES",this.eH],["SLOT_TYPE_IN_PLAYER",this.aX]])};this.listeners=[S.get()];
this.aO={mm:this.mm,NH:this.yj.get(),R5:this.JO.get(),Rb:this.Jf.get(),pZ:this.pZ,RK:M.get(),k9:null,i$:this.Ty,GF:S.get(),h2:this.o5.get()}};
WNn=function(Q,W,x,D){function K(){return l.U}
g.N.call(this);var l=this;Q.C().experiments.ij("html5_dispose_of_manager_before_dependency")?(this.B=QDa(K,Q,W,x,D),this.U=(new fd(this.B)).D(),g.y(this,this.U),g.y(this,this.B)):(this.B=QDa(K,Q,W,x,D),g.y(this,this.B),this.U=(new fd(this.B)).D(),g.y(this,this.U))};
Vd=function(Q){return Q.B.aO};
QDa=function(Q,W,x,D,K){try{var l=W.C();if(g.ET(l))var M=new Tj1(Q,W,x,D,K);else if(g.tC(l))M=new O62(Q,W,x,D,K);else if(yv(l))M=new EMO(Q,W,x,D,K);else if(g.Il(l))M=new FVn(Q,W,x,D,K);else if(g.$h(l))M=new t61(Q,W,x,D,K);else throw new TypeError("Unknown web interface");return M}catch(w){return M=W.C(),sH("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:M.B.cplatform,interface:M.B.c,dRj:M.B.cver,lU7:M.B.ctheme,XxS:M.B.cplayer,bfj:M.playerStyle}),new IUl(Q,W,x,D,K)}};
xxF=function(Q){et.call(this,Q)};
Dxa=function(Q,W,x,D,K){F3.call(this,Q,{K:"div",Y:"ytp-ad-timed-pie-countdown-container",V:[{K:"svg",Y:"ytp-ad-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},V:[{K:"circle",Y:"ytp-ad-timed-pie-countdown-background",Z:{r:"10",cx:"10",cy:"10"}},{K:"circle",Y:"ytp-ad-timed-pie-countdown-inner",Z:{r:"5",cx:"10",cy:"10"}},{K:"circle",Y:"ytp-ad-timed-pie-countdown-outer",Z:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",W,x,D,K);this.N=this.Nj("ytp-ad-timed-pie-countdown-container");this.D=this.Nj("ytp-ad-timed-pie-countdown-inner");
this.X=this.Nj("ytp-ad-timed-pie-countdown-outer");this.U=Math.ceil(2*Math.PI*5);this.hide()};
KNs=function(Q,W,x,D,K,l){k_.call(this,Q,{K:"div",Y:"ytp-ad-action-interstitial",Z:{tabindex:"0"},V:[{K:"div",Y:"ytp-ad-action-interstitial-background-container"},{K:"div",Y:"ytp-ad-action-interstitial-slot",V:[{K:"div",Y:"ytp-ad-action-interstitial-instream-info"},{K:"div",Y:"ytp-ad-action-interstitial-card",V:[{K:"div",Y:"ytp-ad-action-interstitial-image-container"},{K:"div",Y:"ytp-ad-action-interstitial-headline-container"},{K:"div",Y:"ytp-ad-action-interstitial-description-container"},{K:"div",
Y:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",W,x,D);this.Am=K;this.JQ=l;this.navigationEndpoint=this.B=this.skipButton=this.U=this.actionButton=null;this.g7=this.Nj("ytp-ad-action-interstitial-instream-info");this.X3=this.Nj("ytp-ad-action-interstitial-image-container");this.T=new NA(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,"ytp-ad-action-interstitial-image");g.y(this,this.T);this.T.Qj(this.X3);this.fS=this.Nj("ytp-ad-action-interstitial-headline-container");
this.X=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,"ytp-ad-action-interstitial-headline");g.y(this,this.X);this.X.Qj(this.fS);this.pS=this.Nj("ytp-ad-action-interstitial-description-container");this.D=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,"ytp-ad-action-interstitial-description");g.y(this,this.D);this.D.Qj(this.pS);this.Pt=this.Nj("ytp-ad-action-interstitial-background-container");this.s3=new NA(this.api,this.layoutId,this.interactionLoggingClientData,
this.R5,"ytp-ad-action-interstitial-background",!0);g.y(this,this.s3);this.s3.Qj(this.Pt);this.I5=this.Nj("ytp-ad-action-interstitial-action-button-container");this.slot=this.Nj("ytp-ad-action-interstitial-slot");this.GP=this.Nj("ytp-ad-action-interstitial-card");this.N=new aC;g.y(this,this.N);this.hide()};
l61=function(Q){var W=g.rS("html5-video-player");W&&g.S$(W,"ytp-ad-display-override",Q)};
wm4=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-ad-overlay-slot",V:[{K:"div",Y:"ytp-ad-overlay-container"}]},"invideo-overlay",W,x,D);this.T=[];this.Pt=this.fS=this.N=this.I5=this.g7=null;this.s3=!1;this.X=null;this.pS=0;Q=this.Nj("ytp-ad-overlay-container");this.X3=new Mr(Q,45E3,6E3,.3,.4);g.y(this,this.X3);this.D=jDQ(this);g.y(this,this.D);this.D.Qj(Q);this.U=Mfz(this);g.y(this,this.U);this.U.Qj(Q);this.B=R3h(this);g.y(this,this.B);this.B.Qj(Q);this.hide()};
jDQ=function(Q){var W=new g.ze({K:"div",Y:"ytp-ad-text-overlay",V:[{K:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{K:"div",Y:"ytp-ad-overlay-close-container",V:[{K:"button",Y:"ytp-ad-overlay-close-button",V:[A_(S9h)]}]},{K:"div",Y:"ytp-ad-overlay-title",m3:"{{title}}"},{K:"div",Y:"ytp-ad-overlay-desc",m3:"{{description}}"},{K:"div",lj:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],m3:"{{displayUrl}}"}]});Q.W(W.Nj("ytp-ad-overlay-title"),"click",function(x){PS(Q,W.element,x)});
Q.W(W.Nj("ytp-ad-overlay-link"),"click",function(x){PS(Q,W.element,x)});
Q.W(W.Nj("ytp-ad-overlay-close-container"),"click",Q.hT);W.hide();return W};
Mfz=function(Q){var W=new g.ze({K:"div",lj:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{K:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{K:"div",Y:"ytp-ad-overlay-close-container",V:[{K:"button",Y:"ytp-ad-overlay-close-button",V:[A_(S9h)]}]},{K:"div",Y:"ytp-ad-overlay-text-image",V:[{K:"img",Z:{src:"{{imageUrl}}"}}]},{K:"div",Y:"ytp-ad-overlay-title",m3:"{{title}}"},{K:"div",Y:"ytp-ad-overlay-desc",m3:"{{description}}"},{K:"div",lj:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
m3:"{{displayUrl}}"}]});Q.W(W.Nj("ytp-ad-overlay-title"),"click",function(x){PS(Q,W.element,x)});
Q.W(W.Nj("ytp-ad-overlay-link"),"click",function(x){PS(Q,W.element,x)});
Q.W(W.Nj("ytp-ad-overlay-close-container"),"click",Q.hT);Q.W(W.Nj("ytp-ad-overlay-text-image"),"click",Q.mxj);W.hide();return W};
R3h=function(Q){var W=new g.ze({K:"div",Y:"ytp-ad-image-overlay",V:[{K:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{K:"div",Y:"ytp-ad-overlay-close-container",V:[{K:"button",Y:"ytp-ad-overlay-close-button",V:[A_(S9h)]}]},{K:"div",Y:"ytp-ad-overlay-image",V:[{K:"img",Z:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});Q.W(W.Nj("ytp-ad-overlay-image"),"click",function(x){PS(Q,W.element,x)});
Q.W(W.Nj("ytp-ad-overlay-close-container"),"click",Q.hT);W.hide();return W};
bHv=function(Q,W){if(W){var x=g.e(W,BD)||null;x==null?g.ql(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(W=g.rS("video-ads ytp-ad-module")||null,W==null?g.ql(Error("Could not locate the root ads container element to attach the ad info dialog.")):(Q.fS=new g.ze({K:"div",Y:"ytp-ad-overlay-ad-info-dialog-container"}),g.y(Q,Q.fS),Q.fS.Qj(W),W=new Te(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.R5,Q.fS.element,!1),g.y(Q,W),W.init(jt("ad-info-hover-text-button"),x,Q.macros),
Q.X?(W.Qj(Q.X,0),W.subscribe("f",Q.CNj,Q),W.subscribe("e",Q.nH,Q),Q.W(Q.X,"click",Q.PNZ),Q.W(g.rS("ytp-ad-button",W.element),"click",function(){var D;if(g.e((D=g.e(x.button,g.IQ))==null?void 0:D.serviceEndpoint,Kxn))Q.s3=Q.api.getPlayerState(1)===2,Q.api.pauseVideo();else Q.api.onAdUxClicked("ad-info-hover-text-button",Q.layoutId)}),Q.Pt=W):g.ql(Error("Ad info button container within overlay ad was not present."))))}else g.Bp(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
z3s=function(Q,W){if(sDv(Q,vS)||Q.api.isMinimized())return!1;var x=X3(W.title),D=X3(W.description);if(g.p5(x)||g.p5(D))return!1;Q.createServerVe(Q.D.element,W.trackingParams||null);Q.D.updateValue("title",X3(W.title));Q.D.updateValue("description",X3(W.description));Q.D.updateValue("displayUrl",X3(W.displayUrl));W.navigationEndpoint&&g.lZ(Q.T,W.navigationEndpoint);Q.D.show();Q.X3.start();Q.logVisibility(Q.D.element,!0);Q.W(Q.D.element,"mouseover",function(){Q.pS++});
return!0};
kP4=function(Q,W){if(sDv(Q,vS)||Q.api.isMinimized())return!1;var x=X3(W.title),D=X3(W.description);if(g.p5(x)||g.p5(D))return!1;Q.createServerVe(Q.U.element,W.trackingParams||null);Q.U.updateValue("title",X3(W.title));Q.U.updateValue("description",X3(W.description));Q.U.updateValue("displayUrl",X3(W.displayUrl));Q.U.updateValue("imageUrl",vD5(W.image));W.navigationEndpoint&&g.lZ(Q.T,W.navigationEndpoint);Q.I5=W.imageNavigationEndpoint||null;Q.U.show();Q.X3.start();Q.logVisibility(Q.U.element,!0);
Q.W(Q.U.element,"mouseover",function(){Q.pS++});
return!0};
Xms=function(Q,W){if(Q.api.isMinimized())return!1;var x=CJv(W.image),D=x;x.width<vS.width&&(D=vS);if(x.width===0||x.height===0||sDv(Q,D))return!1;Q.createServerVe(Q.B.element,W.trackingParams||null);Q.B.updateValue("imageUrl",vD5(W.image));Q.B.updateValue("width",x.width);Q.B.updateValue("height",x.height);W.navigationEndpoint&&g.lZ(Q.T,W.navigationEndpoint);g.SZ(Q.B.Nj("ytp-ad-image-overlay"),"max-width",x.width+"px");Q.B.show();Q.logVisibility(Q.B.element,!0);Q.W(Q.B.element,"mouseover",function(){Q.pS++;
Q.api.c_("invideo-overlay",Q.layoutId)});
Q.W(Q.B.element,"mouseout",function(){Q.api.Ji("invideo-overlay",Q.layoutId)});
return!0};
sDv=function(Q,W){var x=Q.api.hf().ZB(),D=Q.api.Lv(!0,!1);return(W=oe(x,x.height-(D.height+D.top),W))?(Q.g7&&W&&(x=g.HZ(Q.macros),x.ERRORCODE=W.iQ.toString(),x.ERROR_MSG=W.errorMessage,Q.layoutId?rO(Q.R5,Q.g7,Q.layoutId,x):g.ql(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
PS=function(Q,W,x){var D=g.HZ(Q.macros),K=g.PR(W);D.AW={toString:function(){return K.width.toString()}};
D.AH={toString:function(){return K.height.toString()}};
var l=g.np(x,W).floor();D.I_X={toString:function(){return l.x.toString()}};
D.NX={toString:function(){return l.x.toString()}};
D.I_Y={toString:function(){return l.y.toString()}};
D.NY={toString:function(){return l.y.toString()}};
D.NM={toString:function(){return Q.pS.toString()}};
W=g.V(Q.T);for(x=W.next();!x.done;x=W.next())x=x.value,Q.layoutId?rO(Q.R5,x,Q.layoutId,D):g.ql(Error("Missing layoutId for invideo_overlay_ad."));Q.api.pauseVideo()};
o$n=function(Q,W){Q=Q.api.getRootNode();g.S$(Q,"ytp-ad-overlay-open",W);g.S$(Q,"ytp-ad-overlay-closed",!W)};
uvO=function(Q,W,x,D,K){F3.call(this,Q,{K:"div",Y:"ytp-ad-message-overlay",V:[{K:"div",Y:"ytp-ad-message-slot"}]},"ad-message",W,x,D,K);var l=this;this.X=-1;this.D=0;this.pS=!1;this.fS=this.Nj("ytp-ad-message-slot");this.U=new g.ze({K:"span",Y:"ytp-ad-message-container"});this.U.Qj(this.fS);g.y(this,this.U);this.messageText=new OP(this.api,this.layoutId,this.interactionLoggingClientData,D,"ytp-ad-message-text");g.y(this,this.messageText);this.messageText.Qj(this.U.element);this.N=new g.Wi(this.U,
400,!1,100,function(){l.hide()});
g.y(this,this.N);this.hide()};
Y9a=function(Q,W){Q=Q.api.getRootNode();g.S$(Q,"ytp-ad-overlay-open",W);g.S$(Q,"ytp-ad-overlay-closed",!W)};
n$O=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-ad-underlay-companion",V:[{K:"div",Y:"ytp-ad-underlay-side-container",V:[{K:"div",Y:"ytp-ad-underlay-image-container"},{K:"div",Y:"ytp-ad-underlay-description-container"},{K:"div",Y:"ytp-ad-underlay-headline-container"},{K:"div",Y:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",W,x,D);this.actionButton=null;this.fS=this.Nj("ytp-ad-underlay-image-container");this.D=new NA(this.api,this.layoutId,this.interactionLoggingClientData,
this.R5,"ytp-ad-underlay-image");g.y(this,this.D);this.D.Qj(this.fS);this.pS=this.Nj("ytp-ad-underlay-headline-container");this.U=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,"ytp-ad-underlay-headline");g.y(this,this.U);this.U.Qj(this.pS);this.T=this.Nj("ytp-ad-underlay-description-container");this.N=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,"ytp-ad-underlay-description");g.y(this,this.N);this.N.Qj(this.T);this.X=this.Nj("ytp-ad-underlay-action-button-container");
this.B=this.Nj("ytp-ad-underlay-side-container");this.hide()};
Vfv=function(Q){var W=g.rS("html5-video-player");W&&g.S$(W,"ytp-ad-display-override",Q)};
Cx=function(Q,W,x,D,K,l){l=l===void 0?function(){}:l;
k_.call(this,Q,{K:"div",Y:"ytp-ad-survey-answer"},"survey-answer",W,x,D);this.index=K;this.onSelected=l;this.B=null;this.toggledLoggingParams="";this.answer=this.Nj("ytp-ad-survey-answer");this.hide()};
PI1=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",W,x,D);this.button=null;this.B=this.Nj("ytp-ad-survey-none-of-the-above");this.hide()};
JR=function(Q,W,x,D){var K=["ytp-ad-survey-submit-button"];K.push("ytp-ad-survey-submit-button-rounded");H4.call(this,Q,W,x,D,K,"survey-submit")};
px=function(Q,W,x,D,K){k_.call(this,Q,{K:"div",Y:"ytp-ad-survey-player-overlay",V:[{K:"div",Y:"ytp-ad-survey-player-overlay-instream-info"},{K:"div",Y:"ytp-ad-survey-player-overlay-skip-preview-submit",V:[{K:"div",Y:"ytp-ad-survey-player-overlay-skip-or-preview"},{K:"div",Y:"ytp-ad-survey-player-overlay-submit"}]},{K:"div",Y:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",W,x,D);this.N=K;this.U=this.B=null;this.D=this.Nj("ytp-ad-survey-player-overlay-instream-info");
this.skipOrPreview=this.Nj("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Nj("ytp-ad-survey-player-overlay-submit");g.y(this,this.N);this.hide()};
hR=function(Q,W,x,D,K,l){l=l===void 0?function(){}:l;
k_.call(this,Q,{K:"div",Y:"ytp-ad-survey-question",V:[{K:"div",lj:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{K:"div",lj:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{K:"div",lj:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{K:"div",Y:"ytp-ad-survey-question-background"}]},K,W,x,D);this.fS=l;this.N=null;this.U=[];this.B=null;this.T=this.api.C().experiments.ij("a11y_h5_associate_survey_question");this.question=this.Nj("ytp-ad-survey-question");
this.X3=this.Nj("ytp-ad-survey-question-background");this.questionText=this.Nj("ytp-ad-survey-question-text");this.answers=this.Nj("ytp-ad-survey-answers");this.playerOverlay=this.Nj("ytp-ad-survey-question-player-overlay");this.D=Date.now()};
v$D=function(Q,W){W=g.od(W);g.MT(Q.questionText,W);Q.T&&Q.questionText.setAttribute("id",jt("survey-question-text"))};
CI5=function(Q,W,x,D){D=new Cx(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.R5,D,Q.fS);D.Qj(Q.answers);D.init(jt("survey-answer"),W,x);Q.T&&(W=Q.questionText.getAttribute("id"),W!=null&&(D.B!==null?D.B.U.setAttribute("aria-describedby",W):D.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",W)));Q.U.push(D)};
pmD=function(Q,W){if(W){var x=W.background;x&&g.e(x,Jq5)&&(x=(x=g.e(x,Jq5).image)&&mY(x)||"",g.p5(x)?g.Bp(Error("Found ThumbnailDetails without valid image URL")):g.SZ(Q.X3,"backgroundImage","url("+x+")"));if(W.durationMilliseconds==null||W.durationMilliseconds===void 0||W.durationMilliseconds===0)g.ql(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(W)));else{Q.D=g.QA();Q.B=new vi(Q.api,W.durationMilliseconds);g.y(Q,Q.B);if(Q.B&&W.instreamAdPlayerOverlay&&g.e(W.instreamAdPlayerOverlay,
qB))try{var D=new px(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.R5,Q.B);D.Qj(Q.playerOverlay);D.init(jt("survey-player-overlay"),g.e(W.instreamAdPlayerOverlay,qB),Q.macros);Q.N=D;g.y(Q,D);Q.iP()}catch(K){g.ql(Error("ISAPOR had an error when initializing. Error: "+(K+" SurveyAdQuestionCommon: "+JSON.stringify(W))))}else g.ql(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(W)));Q.B&&W.durationMilliseconds&&W.durationMilliseconds>0?(W=new Bi(Q.api,Q.B),W.Qj(Q.playerOverlay),
g.y(Q,W)):g.ql(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(W)))}}else g.ql(Error("addCommonComponents() needs to be called before starting countdown."))};
h3F=function(Q){function W(x){return{toString:function(){return x()}}}
Q.macros.SURVEY_LOCAL_TIME_EPOCH_S=W(function(){var x=new Date;return(Math.round(x.valueOf()/1E3)+-1*x.getTimezoneOffset()*60).toString()});
Q.macros.SURVEY_ELAPSED_MS=W(function(){return(Date.now()-Q.D).toString()})};
a6l=function(Q,W,x,D,K){hR.call(this,Q,W,x,D,"survey-question-multi-select");this.pS=K;this.noneOfTheAbove=null;this.submitEndpoints=[];this.X=null;this.hide()};
GPO=function(Q,W,x){Q.noneOfTheAbove=new PI1(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.R5);Q.noneOfTheAbove.Qj(Q.answers);Q.noneOfTheAbove.init(jt("survey-none-of-the-above"),W,x)};
iHv=function(Q){Q.U.forEach(function(W){W.B.toggleButton(!1)});
dxz(Q,!0)};
dxz=function(Q,W){var x=Q.N;Q=Aq5(Q);W=W===void 0?!1:W;x.B&&(Q?x.B.hide():x.B.show(),W&&x.B instanceof YZ&&!x.B.N&&zy5(x.B,!1));x.U&&(Q?x.U.show():x.U.hide())};
Aq5=function(Q){return Q.U.some(function(W){return W.B.isToggled()})||Q.noneOfTheAbove.button.isToggled()};
aM=function(Q,W,x,D,K){hR.call(this,Q,W,x,D,"survey-question-single-select",function(M){l.api.C().j("supports_multi_step_on_desktop")&&K([M])});
var l=this;this.hide()};
G7=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-ad-survey",V:[{K:"div",Y:"ytp-ad-survey-questions"}]},"survey",W,x,D);this.questions=[];this.U=[];this.conditioningRules=[];this.B=0;this.X=this.Nj("ytp-ad-survey-questions");this.api.C().j("fix_survey_color_contrast_on_destop")&&this.Nj("ytp-ad-survey").classList.add("color-contrast-fix");this.api.C().j("web_enable_speedmaster")&&this.Nj("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
q95=function(Q,W){var x=Q.U[W],D;(D=Q.D)==null||D.dispose();g.e(x,US)?HHh(Q,g.e(x,US),Q.macros):g.e(x,HD)&&UxF(Q,g.e(x,HD),Q.macros);Q.B=W};
HHh=function(Q,W,x){var D=new aM(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.R5,Q.N.bind(Q));D.Qj(Q.X);D.init(jt("survey-question-single-select"),W,x);Q.api.C().j("supports_multi_step_on_desktop")?Q.D=D:Q.questions.push(D);g.y(Q,D)};
UxF=function(Q,W,x){var D=new a6l(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.R5,Q.N.bind(Q));D.Qj(Q.X);D.init(jt("survey-question-multi-select"),W,x);Q.api.C().j("supports_multi_step_on_desktop")?Q.D=D:Q.questions.push(D);g.y(Q,D)};
db=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-ad-survey-interstitial",V:[{K:"div",Y:"ytp-ad-survey-interstitial-contents",V:[{K:"div",Y:"ytp-ad-survey-interstitial-logo",V:[{K:"div",Y:"ytp-ad-survey-interstitial-logo-image"}]},{K:"div",Y:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",W,x,D);this.B=this.actionButton=null;this.interstitial=this.Nj("ytp-ad-survey-interstitial");this.U=this.Nj("ytp-ad-survey-interstitial-contents");this.text=this.Nj("ytp-ad-survey-interstitial-text");
this.logoImage=this.Nj("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Wi(this,500,!1,300);g.y(this,this.transition)};
BDF=function(Q,W){W=W&&mY(W)||"";if(g.p5(W))g.Bp(Error("Found ThumbnailDetails without valid image URL"));else{var x=Q.style;Q=Q.style.cssText;var D=document.implementation.createHTMLDocument("").createElement("DIV");D.style.cssText=Q;Q=Egh(D.style);x.cssText=[Q,'background-image:url("'+W+'");'].join("")}};
$xD=function(Q){var W=g.rS("html5-video-player");W&&g.S$(W,"ytp-ad-display-override",Q)};
iw=function(Q,W,x,D,K,l){l=l===void 0?0:l;F3.call(this,Q,{K:"div",Y:"ytp-preview-ad",V:[{K:"div",Y:"ytp-preview-ad__text"}]},"preview-ad",W,x,D,K);var M=this;this.pS=l;this.U=0;this.N=-1;this.D=this.Nj("ytp-preview-ad__text");switch(this.pS){case 1:this.D.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Wi(this,400,!1,100,function(){M.hide()});
g.y(this,this.transition);this.hide()};
AR=function(Q,W,x,D){k_.call(this,Q,{K:"img",Y:"ytp-ad-avatar"},"ad-avatar",W,x,D);this.hide()};
I65=function(Q){switch(Q.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}};
HS=function(Q,W,x,D,K,l){K=K===void 0?!1:K;l=l===void 0?!1:l;k_.call(this,Q,{K:"button",Y:"ytp-ad-button-vm"},"ad-button",W,x,D);this.buttonText=this.buttonIcon=null;this.hide();this.B=K;this.U=l};
mxF=function(Q,W,x,D,K){F3.call(this,Q,{K:"div",lj:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{K:"div",Y:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{K:"div",Y:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",W,x,D,K);this.startMilliseconds=0;this.adAvatar=new AR(this.api,this.layoutId,this.interactionLoggingClientData,this.R5);g.y(this,this.adAvatar);Ky(this.element,this.adAvatar.element,0);this.headline=new ds(this.api,this.layoutId,
this.interactionLoggingClientData,this.R5);g.y(this,this.headline);this.headline.Qj(this.Nj("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.R5);g.y(this,this.description);this.description.Qj(this.Nj("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new HS(this.api,
this.layoutId,this.interactionLoggingClientData,this.R5);g.y(this,this.adButton);this.adButton.Qj(this.element);this.hide()};
Un=function(Q,W,x,D){k_.call(this,Q,{K:"button",Y:"ytp-skip-ad-button",V:[{K:"div",Y:"ytp-skip-ad-button__text"}]},"skip-button",W,x,D);var K=this;this.U=!1;this.N=this.Nj("ytp-skip-ad-button__text");this.transition=new g.Wi(this,500,!1,100,function(){K.hide()});
g.y(this,this.transition);this.B=new Mr(this.element,15E3,5E3,.5,.5,!0);g.y(this,this.B);this.hide()};
NDa=function(Q,W,x,D,K){F3.call(this,Q,{K:"div",Y:"ytp-skip-ad"},"skip-ad",W,x,D,K);this.skipOffsetMilliseconds=0;this.N=this.isSkippable=!1;var l;if((l=this.api.getVideoData())==null?0:l.isDaiEnabled())this.N=this.api.C().j("clean_player_style_fix_on_web");if(this.N||!this.api.C().experiments.ij("disable_ad_preview_for_instream_ads"))this.U=new iw(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.B),g.y(this,this.U),this.U.Qj(this.element);this.D=new Un(this.api,this.layoutId,
this.interactionLoggingClientData,this.R5);g.y(this,this.D);this.D.Qj(this.element);this.hide()};
q$=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-visit-advertiser-link"},"visit-advertiser-link",W,x,D);this.hide();this.api.j("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.j("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")};
BS=function(Q,W,x,D,K){k_.call(this,Q,{K:"div",Y:"ytp-ad-player-overlay-layout",V:[{K:"div",Y:"ytp-ad-player-overlay-layout__player-card-container"},{K:"div",Y:"ytp-ad-player-overlay-layout__ad-info-container",V:[Q.C().j("delhi_modern_web_player")?{K:"div",Y:"ytp-ad-player-overlay-layout__ad-info-container-left"}:null]},{K:"div",Y:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{K:"div",Y:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",W,x,D);this.D=
K;this.X3=this.Nj("ytp-ad-player-overlay-layout__player-card-container");this.B=this.Nj("ytp-ad-player-overlay-layout__ad-info-container");this.pS=this.Nj("ytp-ad-player-overlay-layout__skip-or-preview-container");this.fS=this.Nj("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");Q.C().j("delhi_modern_web_player")&&(this.N=this.Nj("ytp-ad-player-overlay-layout__ad-info-container-left"));this.hide()};
cq2=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-ad-grid-card-text",V:[{K:"div",Y:"ytp-ad-grid-card-text__metadata",V:[{K:"div",Y:"ytp-ad-grid-card-text__metadata__headline"},{K:"div",Y:"ytp-ad-grid-card-text__metadata__description",V:[{K:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"},{K:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{K:"div",Y:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",W,x,D);this.headline=new ds(this.api,this.layoutId,this.interactionLoggingClientData,
this.R5);g.y(this,this.headline);this.headline.Qj(this.Nj("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new HS(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,!0);g.y(this,this.moreInfoButton);this.moreInfoButton.Qj(this.Nj("ytp-ad-grid-card-text__button"))};
$5=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",W,x,D);this.B=[]};
IM=function(Q,W,x,D,K,l,M){F3.call(this,Q,l,M,W,x,D,K);this.playerProgressOffsetMs=0;this.U=!1};
g$a=function(Q){var W=g.rS("html5-video-player");W&&g.S$(W,"ytp-ad-display-override",Q)};
yq5=function(Q,W,x,D,K){IM.call(this,Q,W,x,D,K,{K:"div",Y:"ytp-display-underlay-text-grid-cards",V:[{K:"div",Y:"ytp-display-underlay-text-grid-cards__content_container",V:[{K:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header",V:[{K:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{K:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{K:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},
{K:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new $5(this.api,this.layoutId,this.interactionLoggingClientData,this.R5);g.y(this,this.adGridCardCollection);this.adGridCardCollection.Qj(this.Nj("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new HS(this.api,this.layoutId,this.interactionLoggingClientData,this.R5);g.y(this,this.adButton);this.adButton.Qj(this.Nj("ytp-display-underlay-text-grid-cards__content_container__ad_button"));
this.D=this.Nj("ytp-display-underlay-text-grid-cards__content_container");this.N=this.Nj("ytp-display-underlay-text-grid-cards__content_container__header")};
mC=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-ad-details-line"},"ad-details-line",W,x,D);this.B=[];this.hide()};
N$=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-image-background",V:[{K:"img",Y:"ytp-image-background-image"}]},"image-background",W,x,D);this.hide()};
e34=function(Q,W,x,D,K){F3.call(this,Q,{K:"svg",Y:"ytp-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},V:[{K:"circle",Y:"ytp-timed-pie-countdown__background",Z:{r:"10",cx:"10",cy:"10"}},{K:"circle",Y:"ytp-timed-pie-countdown__inner",Z:{r:"5",cx:"10",cy:"10"}},{K:"circle",Y:"ytp-timed-pie-countdown__outer",Z:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",W,x,D,K);this.D=this.Nj("ytp-timed-pie-countdown__inner");this.U=Math.ceil(2*Math.PI*5);this.hide()};
cS=function(Q,W,x,D){k_.call(this,Q,{K:"div",Y:"ytp-video-interstitial-buttoned-centered-layout",Z:{tabindex:"0"},V:[{K:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content",V:[{K:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{K:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",V:[{K:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{K:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"},
{K:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{K:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{K:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",W,x,D);this.U=null;this.N=this.Nj("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.D=new aC;g.y(this,this.D);this.hide()};
f6D=function(Q){var W=g.rS("html5-video-player");W&&g.S$(W,"ytp-ad-display-override",Q)};
ZHh=function(Q){if(!Q.adAvatar||!g.e(Q.adAvatar,gb))return g.ql(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!Q.headline)return g.ql(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!Q.adBadge||!g.e(Q.adBadge,yd))return g.ql(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!Q.adButton||!g.e(Q.adButton,eU))return g.ql(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!Q.adInfoRenderer||
!g.e(Q.adInfoRenderer,BD))return g.ql(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;Q=Q.durationMilliseconds||0;return typeof Q!=="number"||Q<=0?(g.ql(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+Q)),!1):!0};
fx=function(Q,W,x){et.call(this,Q);this.api=Q;this.R5=W;this.U={};Q=new g.L({K:"div",lj:["video-ads","ytp-ad-module"]});g.y(this,Q);xh&&g.j$(Q.element,"ytp-ads-tiny-mode");this.L=new nu(Q.element);g.y(this,this.L);g.qf(this.api,Q.element,4);We(x)&&(x=new g.L({K:"div",lj:["ytp-ad-underlay"]}),g.y(this,x),this.D=new nu(x.element),g.y(this,this.D),g.qf(this.api,x.element,0));g.y(this,y4Q())};
LN1=function(Q,W){Q=g.i0(Q.U,W.id,null);Q==null&&g.Bp(Error("Component not found for element id: "+W.id));return Q||null};
rq5=function(Q){g.V1.call(this,Q);var W=this;this.U=null;this.created=!1;this.D=Q.C().j("h5_use_refactored_get_ad_break")?new yuv(this.player):new gy(this.player);this.N=function(){if(W.U!=null)return W.U;var D=new OLs({i$:Vd(W.B).i$,h2:Vd(W.B).h2,J:W.player,NH:Vd(W.B).NH,vt:W.B.B.vt,GF:Vd(W.B).GF,Y3:W.B.B.Y3});W.U=D.Hu;return W.U};
this.B=new WNn(this.player,this,this.D,this.N);g.y(this,this.B);var x=Q.C();!G_(x)||g.$h(x)||yv(x)||(g.y(this,new fx(Q,Vd(this.B).R5,Vd(this.B).NH)),g.y(this,new xxF(Q)))};
TD5=function(Q){Q.created!==Q.loaded&&sH("Created and loaded are out of sync")};
FN2=function(Q){g.V1.prototype.load.call(Q);var W=Vd(Q.B).NH;try{Q.player.getRootNode().classList.add("ad-created")}catch(S){sH(S instanceof Error?S:String(S))}var x=Q.player.getVideoData(1),D=x&&x.videoId||"",K=x&&x.getPlayerResponse()||{},l=(!Q.player.C().experiments.ij("debug_ignore_ad_placements")&&K&&K.adPlacements||[]).map(function(S){return S.adPlacementRenderer}),M=((K==null?void 0:K.adSlots)||[]).map(function(S){return g.e(S,cD)});
K=K.playerConfig&&K.playerConfig.daiConfig&&K.playerConfig.daiConfig.enableDai||!1;x&&x.lN();l=OHl(l,M,W,Vd(Q.B).RK);M=x&&x.clientPlaybackNonce||"";x=x&&x.In||!1;if(p3(W,!0)&&x){var w;W={};(w=Q.player.getVideoData())==null||w.qj("p_cpb",(W.cc=M,W))}w=1E3*Q.player.getDuration(1);E$O(Q);Q.B.B.sb.E2(M,w,x,l.DF,l.U6,l.DF,K,D)};
E$O=function(Q){var W,x;if(x=(W=Q.player.getVideoData(1))==null||!W.In)W=Q.player.C(),x=G_(W)&&!g.aE(W)&&W.playerStyle==="desktop-polymer";x&&(Q=Q.player.getInternalApi(),Q.addEventListener("updateKevlarOrC3Companion",nEl),Q.addEventListener("updateEngagementPanelAction",VGD),Q.addEventListener("changeEngagementPanelVisibility",PNn),window.addEventListener("yt-navigate-start",CN2))};
ZB=function(Q,W){W===Q.UN&&(Q.UN=void 0)};
tfz=function(Q){var W=Vd(Q.B).pZ,x=W.N().E1("SLOT_TYPE_PLAYER_BYTES",1);W=nz(W.o5.get(),1).clientPlaybackNonce;var D=!1;x=g.V(x);for(var K=x.next();!K.done;K=x.next()){K=K.value;var l=K.slotType==="SLOT_TYPE_PLAYER_BYTES"&&K.slotEntryTrigger instanceof hK?K.slotEntryTrigger.n0:void 0;l&&l===W&&(D&&sH("More than 1 preroll playerBytes slot detected",K),D=!0)}D||jU(Vd(Q.B).Rb)};
Q1s=function(Q){if(Tw(Vd(Q.B).NH))return!0;var W="";Q=g.V(Vd(Q.B).GF.ZE.keys());for(var x=Q.next();!x.done;x=Q.next()){x=x.value;if(x.slotType==="SLOT_TYPE_PLAYER_BYTES"&&x.Mj==="core")return!0;W+=x.slotType+" "}Math.random()<.01&&sH("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:W});return!1};
Was=function(Q){Q=g.V(Vd(Q.B).GF.ZE.values());for(var W=Q.next();!W.done;W=Q.next())if(W.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
Usa=function(Q,W,x,D,K,l){x=x===void 0?[]:x;D=D===void 0?"":D;K=K===void 0?"":K;var M=Vd(Q.B).NH,w=Q.player.getVideoData(1);w&&w.getPlayerResponse();w&&w.lN();x=OHl(W,x,M,Vd(Q.B).RK);I1v(Vd(Q.B).mm,D,x.DF,x.U6,W,K,l)};
OHl=function(Q,W,x,D){W={DF:[],U6:W};Q=g.V(Q);for(var K=Q.next();!K.done;K=Q.next())if((K=K.value)&&K.renderer!=null){var l=K.renderer;if(!x.J.C().j("html5_enable_vod_lasr_with_notify_pacf")){var M=void 0,w=void 0,S=void 0,b=void 0,z=D;g.e((b=l.sandwichedLinearAdRenderer)==null?void 0:b.adVideoStart,Ys)?(M=g.e((S=l.sandwichedLinearAdRenderer)==null?void 0:S.adVideoStart,Ys),M=FG2(M,z),g.cp(l.sandwichedLinearAdRenderer.adVideoStart,Ys,M)):g.e((w=l.linearAdSequenceRenderer)==null?void 0:w.adStart,Ys)&&
(S=g.e((M=l.linearAdSequenceRenderer)==null?void 0:M.adStart,Ys),M=FG2(S,z),g.cp(l.linearAdSequenceRenderer.adStart,Ys,M))}W.DF.push(K)}return W};
g.Lx=function(Q){if(typeof DOMParser!="undefined")return Tm(new DOMParser,ZZ4(Q),"application/xml");throw Error("Your browser does not support loading xml documents");};
g.rb=function(Q){g.N.call(this);this.callback=Q;this.B=new Pg(0,0,.4,0,.2,1,1,1);this.delay=new g.Td(this.next,window,this);g.y(this,this.delay)};
g.xz1=function(Q){var W=Q.C();return W.gE&&!W.D&&g.d5(W)?Q.isEmbedsShortsMode()?(Q=Q.Lv(),Math.min(Q.width,Q.height)>=315):!Q.AK():!1};
g.T7=function(Q){g.L.call(this,{K:"div",Y:"ytp-more-videos-view",Z:{tabIndex:"-1"}});var W=this;this.api=Q;this.U=!0;this.D=new g.I0(this);this.B=[];this.suggestionData=[];this.columns=this.containerWidth=this.S=this.N=this.scrollPosition=0;this.title=new g.L({K:"h2",Y:"ytp-related-title",m3:"{{title}}"});this.previous=new g.L({K:"button",lj:["ytp-button","ytp-previous"],Z:{"aria-label":"Show previous suggested videos"},V:[g.nV()]});this.G=new g.rb(function(x){W.suggestions.element.scrollLeft=-x});
this.next=new g.L({K:"button",lj:["ytp-button","ytp-next"],Z:{"aria-label":"Show more suggested videos"},V:[g.VK()]});g.y(this,this.D);this.X=Q.C().N;g.y(this,this.title);this.title.Qj(this.element);this.suggestions=new g.L({K:"div",Y:"ytp-suggestions"});g.y(this,this.suggestions);this.suggestions.Qj(this.element);g.y(this,this.previous);this.previous.Qj(this.element);this.previous.listen("click",this.IN,this);g.y(this,this.G);Dz7(this);g.y(this,this.next);this.next.Qj(this.element);this.next.listen("click",
this.RN,this);this.D.W(this.api,"appresize",this.OV);this.D.W(this.api,"fullscreentoggled",this.zo);this.D.W(this.api,"videodatachange",this.onVideoDataChange);this.OV(this.api.hf().getPlayerSize());this.onVideoDataChange()};
Dz7=function(Q){for(var W={KE:0};W.KE<16;W={KE:W.KE},++W.KE){var x=new g.L({K:"a",Y:"ytp-suggestion-link",Z:{href:"{{link}}",target:Q.api.C().T,"aria-label":"{{aria_label}}"},V:[{K:"div",Y:"ytp-suggestion-image"},{K:"div",Y:"ytp-suggestion-overlay",Z:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{K:"div",Y:"ytp-suggestion-title",m3:"{{title}}"},{K:"div",Y:"ytp-suggestion-author",m3:"{{author_and_views}}"},{K:"div",Z:{"data-is-live":"{{is_live}}"},Y:"ytp-suggestion-duration",
m3:"{{duration}}"}]}]});g.y(Q,x);var D=x.Nj("ytp-suggestion-link");g.SZ(D,"transitionDelay",W.KE/20+"s");Q.D.W(D,"click",function(K){return function(l){var M=K.KE;if(Q.U){var w=Q.suggestionData[M],S=w.sessionData;Q.X&&Q.api.j("web_player_log_click_before_generating_ve_conversion_params")?(Q.api.logClick(Q.B[M].element),M=w.lk(),w={},g.Ao(Q.api,w),M=g.ya(M,w),g.RY(M,Q.api,l)):g.Md(l,Q.api,Q.X,S||void 0)&&Q.api.QT(w.videoId,S,w.playlistId)}else l.preventDefault(),document.activeElement.blur()}}(W));
x.Qj(Q.suggestions.element);Q.B.push(x);Q.api.createServerVe(x.element,x)}};
KaF=function(Q){if(Q.api.C().j("web_player_log_click_before_generating_ve_conversion_params"))for(var W=Math.floor(-Q.scrollPosition/(Q.N+8)),x=Math.min(W+Q.columns,Q.suggestionData.length)-1;W<=x;W++)Q.api.logVisibility(Q.B[W].element,!0)};
g.On=function(Q){var W=Q.api.eU()?32:16;W=Q.S/2+W;Q.next.element.style.bottom=W+"px";Q.previous.element.style.bottom=W+"px";W=Q.scrollPosition;var x=Q.containerWidth-Q.suggestionData.length*(Q.N+8);g.S$(Q.element,"ytp-scroll-min",W>=0);g.S$(Q.element,"ytp-scroll-max",W<=x)};
j1e=function(Q){for(var W=Q.suggestionData.length,x=0;x<W;++x){var D=void 0,K=void 0,l=void 0;D=Q;var M=D.api.C(),w=D.suggestionData[x],S=D.B[x];l=D.api.isEmbedsShortsMode()?w.shortViewCount||"":w.shortViewCount?w.author+" \u2022 "+w.shortViewCount:w.author;S.element.style.display="";g.SZ(S.Nj("ytp-suggestion-link"),"display","inline-block");l5p.test(w.title)&&(S.Nj("ytp-suggestion-title").dir="rtl");l5p.test(l)&&(S.Nj("ytp-suggestion-author").dir="rtl");K=w.isLivePlayback?"Live":w.lengthSeconds?
g.JI(w.lengthSeconds):"";var b=w.lk(D.api.isEmbedsShortsMode());if(g.d5(M)&&!M.j("web_player_log_click_before_generating_ve_conversion_params")){var z={};g.bL(D.api,"addEmbedsConversionTrackingParams",[z]);b=g.ya(b,z)}M.j("web_player_log_click_before_generating_ve_conversion_params")&&(M=(M=w.sessionData)&&M.itct)&&D.api.setTrackingParams(S.element,M);S.update({author_and_views:l,duration:K,link:b,title:w.title,aria_label:w.ariaLabel||w.title,is_live:w.isLivePlayback,aria_hidden:!!w.ariaLabel,blink_rendering_hack:g.UC||
g.aO?"will-change: opacity":void 0});K=S.Nj("ytp-suggestion-image");D=D.api.isEmbedsShortsMode()?w.ue("hq2.jpg"):w.ue();K.style.backgroundImage=D?"url("+D+")":""}if(W<16)for(;W<16;++W)g.SZ(Q.B[W].Nj("ytp-suggestion-link"),"display","none");g.On(Q)};
Q1l=[];Sn=typeof Object.defineProperties=="function"?Object.defineProperty:function(Q,W,x){if(Q==Array.prototype||Q==Object.prototype)return Q;Q[W]=x.value;return Q};
g.R1=xz4(this);sl("Symbol",function(Q){function W(l){if(this instanceof W)throw new TypeError("Symbol is not a constructor");return new x(D+(l||"")+"_"+K++,l)}
function x(l,M){this.B=l;Sn(this,"description",{configurable:!0,writable:!0,value:M})}
if(Q)return Q;x.prototype.toString=function(){return this.B};
var D="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",K=0;return W});
sl("Symbol.iterator",function(Q){if(Q)return Q;Q=Symbol("Symbol.iterator");for(var W="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x<W.length;x++){var D=g.R1[W[x]];typeof D==="function"&&typeof D.prototype[Q]!="function"&&Sn(D.prototype,Q,{configurable:!0,writable:!0,value:function(){return Dz5(Wal(this))}})}return Q});
var KaQ=typeof Object.create=="function"?Object.create:function(Q){function W(){}
W.prototype=Q;return new W},MnH=function(){function Q(){function x(){}
new x;Reflect.construct(x,[],function(){});
return new x instanceof x}
if(typeof Reflect!="undefined"&&Reflect.construct){if(Q())return Reflect.construct;var W=Reflect.construct;return function(x,D,K){x=W(x,D);K&&Reflect.setPrototypeOf(x,K.prototype);return x}}return function(x,D,K){K===void 0&&(K=x);
K=KaQ(K.prototype||Object.prototype);return Function.prototype.apply.call(x,K,D)||K}}(),RO7;
if(typeof Object.setPrototypeOf=="function")RO7=Object.setPrototypeOf;else{var w5J;a:{var SlY={a:!0},bs5={};try{bs5.__proto__=SlY;w5J=bs5.a;break a}catch(Q){}w5J=!1}RO7=w5J?function(Q,W){Q.__proto__=W;if(Q.__proto__!==W)throw new TypeError(Q+" is not extensible");return Q}:null}var zh=RO7,s11=typeof Object.assign=="function"?Object.assign:function(Q,W){for(var x=1;x<arguments.length;x++){var D=arguments[x];
if(D)for(var K in D)XD(D,K)&&(Q[K]=D[K])}return Q};
sl("Object.assign",function(Q){return Q||s11});
u2.prototype.S=function(Q){this.U=Q};
u2.prototype.return=function(Q){this.D={return:Q};this.B=this.L};
u2.prototype.kf=function(Q){this.B=Q};
sl("globalThis",function(Q){return Q||g.R1});
sl("Reflect",function(Q){return Q?Q:{}});
sl("Reflect.construct",function(){return MnH});
sl("Reflect.setPrototypeOf",function(Q){return Q?Q:zh?function(W,x){try{return zh(W,x),!0}catch(D){return!1}}:null});
sl("Promise",function(Q){function W(M){this.B=0;this.D=void 0;this.U=[];this.G=!1;var w=this.N();try{M(w.resolve,w.reject)}catch(S){w.reject(S)}}
function x(){this.B=null}
function D(M){return M instanceof W?M:new W(function(w){w(M)})}
if(Q)return Q;x.prototype.U=function(M){if(this.B==null){this.B=[];var w=this;this.D(function(){w.L()})}this.B.push(M)};
var K=g.R1.setTimeout;x.prototype.D=function(M){K(M,0)};
x.prototype.L=function(){for(;this.B&&this.B.length;){var M=this.B;this.B=[];for(var w=0;w<M.length;++w){var S=M[w];M[w]=null;try{S()}catch(b){this.N(b)}}}this.B=null};
x.prototype.N=function(M){this.D(function(){throw M;})};
W.prototype.N=function(){function M(b){return function(z){S||(S=!0,b.call(w,z))}}
var w=this,S=!1;return{resolve:M(this.F3),reject:M(this.L)}};
W.prototype.F3=function(M){if(M===this)this.L(new TypeError("A Promise cannot resolve to itself"));else if(M instanceof W)this.fS(M);else{a:switch(typeof M){case "object":var w=M!=null;break a;case "function":w=!0;break a;default:w=!1}w?this.pS(M):this.X(M)}};
W.prototype.pS=function(M){var w=void 0;try{w=M.then}catch(S){this.L(S);return}typeof w=="function"?this.LS(w,M):this.X(M)};
W.prototype.L=function(M){this.S(2,M)};
W.prototype.X=function(M){this.S(1,M)};
W.prototype.S=function(M,w){if(this.B!=0)throw Error("Cannot settle("+M+", "+w+"): Promise already settled in state"+this.B);this.B=M;this.D=w;this.B===2&&this.KS();this.T()};
W.prototype.KS=function(){var M=this;K(function(){if(M.uj()){var w=g.R1.console;typeof w!=="undefined"&&w.error(M.D)}},1)};
W.prototype.uj=function(){if(this.G)return!1;var M=g.R1.CustomEvent,w=g.R1.Event,S=g.R1.dispatchEvent;if(typeof S==="undefined")return!0;typeof M==="function"?M=new M("unhandledrejection",{cancelable:!0}):typeof w==="function"?M=new w("unhandledrejection",{cancelable:!0}):(M=g.R1.document.createEvent("CustomEvent"),M.initCustomEvent("unhandledrejection",!1,!0,M));M.promise=this;M.reason=this.D;return S(M)};
W.prototype.T=function(){if(this.U!=null){for(var M=0;M<this.U.length;++M)l.U(this.U[M]);this.U=null}};
var l=new x;W.prototype.fS=function(M){var w=this.N();M.xb(w.resolve,w.reject)};
W.prototype.LS=function(M,w){var S=this.N();try{M.call(w,S.resolve,S.reject)}catch(b){S.reject(b)}};
W.prototype.then=function(M,w){function S(X,u){return typeof X=="function"?function(Y){try{b(X(Y))}catch(v){z(v)}}:u}
var b,z,k=new W(function(X,u){b=X;z=u});
this.xb(S(M,b),S(w,z));return k};
W.prototype.catch=function(M){return this.then(void 0,M)};
W.prototype.xb=function(M,w){function S(){switch(b.B){case 1:M(b.D);break;case 2:w(b.D);break;default:throw Error("Unexpected state: "+b.B);}}
var b=this;this.U==null?l.U(S):this.U.push(S);this.G=!0};
W.resolve=D;W.reject=function(M){return new W(function(w,S){S(M)})};
W.race=function(M){return new W(function(w,S){for(var b=g.V(M),z=b.next();!z.done;z=b.next())D(z.value).xb(w,S)})};
W.all=function(M){var w=g.V(M),S=w.next();return S.done?D([]):new W(function(b,z){function k(Y){return function(v){X[Y]=v;u--;u==0&&b(X)}}
var X=[],u=0;do X.push(void 0),u++,D(S.value).xb(k(X.length-1),z),S=w.next();while(!S.done)})};
return W});
sl("Object.setPrototypeOf",function(Q){return Q||zh});
sl("Symbol.dispose",function(Q){return Q?Q:Symbol("Symbol.dispose")});
sl("SuppressedError",function(Q){function W(x,D,K){if(!(this instanceof W))return new W(x,D,K);K=Error(K);"stack"in K&&(this.stack=K.stack);this.message=K.message;this.error=x;this.suppressed=D}
if(Q)return Q;g.n(W,Error);W.prototype.name="SuppressedError";return W});
sl("Array.prototype.find",function(Q){return Q?Q:function(W,x){return kha(this,W,x).aT}});
sl("WeakMap",function(Q){function W(S){this.B=(w+=Math.random()+1).toString();if(S){S=g.V(S);for(var b;!(b=S.next()).done;)b=b.value,this.set(b[0],b[1])}}
function x(){}
function D(S){var b=typeof S;return b==="object"&&S!==null||b==="function"}
function K(S){if(!XD(S,M)){var b=new x;Sn(S,M,{value:b})}}
function l(S){var b=Object[S];b&&(Object[S]=function(z){if(z instanceof x)return z;Object.isExtensible(z)&&K(z);return b(z)})}
if(function(){if(!Q||!Object.seal)return!1;try{var S=Object.seal({}),b=Object.seal({}),z=new Q([[S,2],[b,3]]);if(z.get(S)!=2||z.get(b)!=3)return!1;z.delete(S);z.set(b,4);return!z.has(S)&&z.get(b)==4}catch(k){return!1}}())return Q;
var M="$jscomp_hidden_"+Math.random();l("freeze");l("preventExtensions");l("seal");var w=0;W.prototype.set=function(S,b){if(!D(S))throw Error("Invalid WeakMap key");K(S);if(!XD(S,M))throw Error("WeakMap key fail: "+S);S[M][this.B]=b;return this};
W.prototype.get=function(S){return D(S)&&XD(S,M)?S[M][this.B]:void 0};
W.prototype.has=function(S){return D(S)&&XD(S,M)&&XD(S[M],this.B)};
W.prototype.delete=function(S){return D(S)&&XD(S,M)&&XD(S[M],this.B)?delete S[M][this.B]:!1};
return W});
sl("Map",function(Q){function W(){var w={};return w.previous=w.next=w.head=w}
function x(w,S){var b=w[1];return Dz5(function(){if(b){for(;b.head!=w[1];)b=b.previous;for(;b.next!=b.head;)return b=b.next,{done:!1,value:S(b)};b=null}return{done:!0,value:void 0}})}
function D(w,S){var b=S&&typeof S;b=="object"||b=="function"?l.has(S)?b=l.get(S):(b=""+ ++M,l.set(S,b)):b="p_"+S;var z=w[0][b];if(z&&XD(w[0],b))for(w=0;w<z.length;w++){var k=z[w];if(S!==S&&k.key!==k.key||S===k.key)return{id:b,list:z,index:w,entry:k}}return{id:b,list:z,index:-1,entry:void 0}}
function K(w){this[0]={};this[1]=W();this.size=0;if(w){w=g.V(w);for(var S;!(S=w.next()).done;)S=S.value,this.set(S[0],S[1])}}
if(function(){if(!Q||typeof Q!="function"||!Q.prototype.entries||typeof Object.seal!="function")return!1;try{var w=Object.seal({x:4}),S=new Q(g.V([[w,"s"]]));if(S.get(w)!="s"||S.size!=1||S.get({x:4})||S.set({x:4},"t")!=S||S.size!=2)return!1;var b=S.entries(),z=b.next();if(z.done||z.value[0]!=w||z.value[1]!="s")return!1;z=b.next();return z.done||z.value[0].x!=4||z.value[1]!="t"||!b.next().done?!1:!0}catch(k){return!1}}())return Q;
var l=new WeakMap;K.prototype.set=function(w,S){w=w===0?0:w;var b=D(this,w);b.list||(b.list=this[0][b.id]=[]);b.entry?b.entry.value=S:(b.entry={next:this[1],previous:this[1].previous,head:this[1],key:w,value:S},b.list.push(b.entry),this[1].previous.next=b.entry,this[1].previous=b.entry,this.size++);return this};
K.prototype.delete=function(w){w=D(this,w);return w.entry&&w.list?(w.list.splice(w.index,1),w.list.length||delete this[0][w.id],w.entry.previous.next=w.entry.next,w.entry.next.previous=w.entry.previous,w.entry.head=null,this.size--,!0):!1};
K.prototype.clear=function(){this[0]={};this[1]=this[1].previous=W();this.size=0};
K.prototype.has=function(w){return!!D(this,w).entry};
K.prototype.get=function(w){return(w=D(this,w).entry)&&w.value};
K.prototype.entries=function(){return x(this,function(w){return[w.key,w.value]})};
K.prototype.keys=function(){return x(this,function(w){return w.key})};
K.prototype.values=function(){return x(this,function(w){return w.value})};
K.prototype.forEach=function(w,S){for(var b=this.entries(),z;!(z=b.next()).done;)z=z.value,w.call(S,z[1],z[0],this)};
K.prototype[Symbol.iterator]=K.prototype.entries;var M=0;return K});
sl("Set",function(Q){function W(x){this.B=new Map;if(x){x=g.V(x);for(var D;!(D=x.next()).done;)this.add(D.value)}this.size=this.B.size}
if(function(){if(!Q||typeof Q!="function"||!Q.prototype.entries||typeof Object.seal!="function")return!1;try{var x=Object.seal({x:4}),D=new Q(g.V([x]));if(!D.has(x)||D.size!=1||D.add(x)!=D||D.size!=1||D.add({x:4})!=D||D.size!=2)return!1;var K=D.entries(),l=K.next();if(l.done||l.value[0]!=x||l.value[1]!=x)return!1;l=K.next();return l.done||l.value[0]==x||l.value[0].x!=4||l.value[1]!=l.value[0]?!1:K.next().done}catch(M){return!1}}())return Q;
W.prototype.add=function(x){x=x===0?0:x;this.B.set(x,x);this.size=this.B.size;return this};
W.prototype.delete=function(x){x=this.B.delete(x);this.size=this.B.size;return x};
W.prototype.clear=function(){this.B.clear();this.size=0};
W.prototype.has=function(x){return this.B.has(x)};
W.prototype.entries=function(){return this.B.entries()};
W.prototype.values=function(){return this.B.values()};
W.prototype.keys=W.prototype.values;W.prototype[Symbol.iterator]=W.prototype.values;W.prototype.forEach=function(x,D){var K=this;this.B.forEach(function(l){return x.call(D,l,l,K)})};
return W});
sl("Math.log2",function(Q){return Q?Q:function(W){return Math.log(W)/Math.LN2}});
sl("Object.values",function(Q){return Q?Q:function(W){var x=[],D;for(D in W)XD(W,D)&&x.push(W[D]);return x}});
sl("Object.is",function(Q){return Q?Q:function(W,x){return W===x?W!==0||1/W===1/x:W!==W&&x!==x}});
sl("Array.prototype.includes",function(Q){return Q?Q:function(W,x){var D=this;D instanceof String&&(D=String(D));var K=D.length;x=x||0;for(x<0&&(x=Math.max(x+K,0));x<K;x++){var l=D[x];if(l===W||Object.is(l,W))return!0}return!1}});
sl("String.prototype.includes",function(Q){return Q?Q:function(W,x){return H5(this,W,"includes").indexOf(W,x||0)!==-1}});
sl("Array.from",function(Q){return Q?Q:function(W,x,D){x=x!=null?x:function(w){return w};
var K=[],l=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(typeof l=="function"){W=l.call(W);for(var M=0;!(l=W.next()).done;)K.push(x.call(D,l.value,M++))}else for(l=W.length,M=0;M<l;M++)K.push(x.call(D,W[M],M));return K}});
sl("Object.entries",function(Q){return Q?Q:function(W){var x=[],D;for(D in W)XD(W,D)&&x.push([D,W[D]]);return x}});
sl("Number.isFinite",function(Q){return Q?Q:function(W){return typeof W!=="number"?!1:!isNaN(W)&&W!==Infinity&&W!==-Infinity}});
sl("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
sl("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
sl("Number.isInteger",function(Q){return Q?Q:function(W){return Number.isFinite(W)?W===Math.floor(W):!1}});
sl("Number.isSafeInteger",function(Q){return Q?Q:function(W){return Number.isInteger(W)&&Math.abs(W)<=Number.MAX_SAFE_INTEGER}});
sl("String.prototype.startsWith",function(Q){return Q?Q:function(W,x){var D=H5(this,W,"startsWith");W+="";var K=D.length,l=W.length;x=Math.max(0,Math.min(x|0,D.length));for(var M=0;M<l&&x<K;)if(D[x++]!=W[M++])return!1;return M>=l}});
sl("String.prototype.endsWith",function(Q){return Q?Q:function(W,x){var D=H5(this,W,"endsWith");W+="";x===void 0&&(x=D.length);x=Math.max(0,Math.min(x|0,D.length));for(var K=W.length;K>0&&x>0;)if(D[--x]!=W[--K])return!1;return K<=0}});
sl("Array.prototype.entries",function(Q){return Q?Q:function(){return Ul(this,function(W,x){return[W,x]})}});
sl("Math.imul",function(Q){return Q?Q:function(W,x){W=Number(W);x=Number(x);var D=W&65535,K=x&65535;return D*K+((W>>>16&65535)*K+D*(x>>>16&65535)<<16>>>0)|0}});
sl("Math.trunc",function(Q){return Q?Q:function(W){W=Number(W);if(isNaN(W)||W===Infinity||W===-Infinity||W===0)return W;var x=Math.floor(Math.abs(W));return W<0?-x:x}});
sl("Math.clz32",function(Q){return Q?Q:function(W){W=Number(W)>>>0;if(W===0)return 32;var x=0;(W&4294901760)===0&&(W<<=16,x+=16);(W&4278190080)===0&&(W<<=8,x+=8);(W&4026531840)===0&&(W<<=4,x+=4);(W&3221225472)===0&&(W<<=2,x+=2);(W&2147483648)===0&&x++;return x}});
sl("Math.log10",function(Q){return Q?Q:function(W){return Math.log(W)/Math.LN10}});
sl("Number.isNaN",function(Q){return Q?Q:function(W){return typeof W==="number"&&isNaN(W)}});
sl("Array.prototype.keys",function(Q){return Q?Q:function(){return Ul(this,function(W){return W})}});
sl("Array.prototype.values",function(Q){return Q?Q:function(){return Ul(this,function(W,x){return x})}});
sl("Array.prototype.fill",function(Q){return Q?Q:function(W,x,D){var K=this.length||0;x<0&&(x=Math.max(0,K+x));if(D==null||D>K)D=K;D=Number(D);D<0&&(D=Math.max(0,K+D));for(x=Number(x||0);x<D;x++)this[x]=W;return this}});
sl("Int8Array.prototype.fill",qz);sl("Uint8Array.prototype.fill",qz);sl("Uint8ClampedArray.prototype.fill",qz);sl("Int16Array.prototype.fill",qz);sl("Uint16Array.prototype.fill",qz);sl("Int32Array.prototype.fill",qz);sl("Uint32Array.prototype.fill",qz);sl("Float32Array.prototype.fill",qz);sl("Float64Array.prototype.fill",qz);
sl("Object.fromEntries",function(Q){return Q?Q:function(W){var x={};if(!(Symbol.iterator in W))throw new TypeError(""+W+" is not iterable");W=W[Symbol.iterator].call(W);for(var D=W.next();!D.done;D=W.next()){D=D.value;if(Object(D)!==D)throw new TypeError("iterable for fromEntries should yield objects");x[D[0]]=D[1]}return x}});
sl("String.prototype.replaceAll",function(Q){return Q?Q:function(W,x){if(W instanceof RegExp&&!W.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return W instanceof RegExp?this.replace(W,x):this.replace(new RegExp(String(W).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),x)}});
sl("String.prototype.repeat",function(Q){return Q?Q:function(W){var x=H5(this,null,"repeat");if(W<0||W>1342177279)throw new RangeError("Invalid count value");W|=0;for(var D="";W;)if(W&1&&(D+=x),W>>>=1)x+=x;return D}});
sl("Promise.prototype.finally",function(Q){return Q?Q:function(W){return this.then(function(x){return Promise.resolve(W()).then(function(){return x})},function(x){return Promise.resolve(W()).then(function(){throw x;
})})}});
sl("String.prototype.padStart",function(Q){return Q?Q:function(W,x){var D=H5(this,null,"padStart");W-=D.length;x=x!==void 0?String(x):" ";return(W>0&&x?x.repeat(Math.ceil(W/x.length)).substring(0,W):"")+D}});
sl("Array.prototype.findIndex",function(Q){return Q?Q:function(W,x){return kha(this,W,x).Dd}});
sl("Math.sign",function(Q){return Q?Q:function(W){W=Number(W);return W===0||isNaN(W)?W:W>0?1:-1}});
sl("WeakSet",function(Q){function W(x){this.B=new WeakMap;if(x){x=g.V(x);for(var D;!(D=x.next()).done;)this.add(D.value)}}
if(function(){if(!Q||!Object.seal)return!1;try{var x=Object.seal({}),D=Object.seal({}),K=new Q([x]);if(!K.has(x)||K.has(D))return!1;K.delete(x);K.add(D);return!K.has(x)&&K.has(D)}catch(l){return!1}}())return Q;
W.prototype.add=function(x){this.B.set(x,!0);return this};
W.prototype.has=function(x){return this.B.has(x)};
W.prototype.delete=function(x){return this.B.delete(x)};
return W});
sl("Array.prototype.copyWithin",function(Q){function W(x){x=Number(x);return x===Infinity||x===-Infinity?x:x|0}
return Q?Q:function(x,D,K){var l=this.length;x=W(x);D=W(D);K=K===void 0?l:W(K);x=x<0?Math.max(l+x,0):Math.min(x,l);D=D<0?Math.max(l+D,0):Math.min(D,l);K=K<0?Math.max(l+K,0):Math.min(K,l);if(x<D)for(;D<K;)D in this?this[x++]=this[D++]:(delete this[x++],D++);else for(K=Math.min(K,l+D-x),x+=K-D;K>D;)--K in this?this[--x]=this[K]:delete this[--x];return this}});
sl("Int8Array.prototype.copyWithin",B5);sl("Uint8Array.prototype.copyWithin",B5);sl("Uint8ClampedArray.prototype.copyWithin",B5);sl("Int16Array.prototype.copyWithin",B5);sl("Uint16Array.prototype.copyWithin",B5);sl("Int32Array.prototype.copyWithin",B5);sl("Uint32Array.prototype.copyWithin",B5);sl("Float32Array.prototype.copyWithin",B5);sl("Float64Array.prototype.copyWithin",B5);sl("Array.prototype.at",function(Q){return Q?Q:$Q});
sl("Int8Array.prototype.at",I1);sl("Uint8Array.prototype.at",I1);sl("Uint8ClampedArray.prototype.at",I1);sl("Int16Array.prototype.at",I1);sl("Uint16Array.prototype.at",I1);sl("Int32Array.prototype.at",I1);sl("Uint32Array.prototype.at",I1);sl("Float32Array.prototype.at",I1);sl("Float64Array.prototype.at",I1);sl("String.prototype.at",function(Q){return Q?Q:$Q});
sl("Array.prototype.findLastIndex",function(Q){return Q?Q:function(W,x){return X5D(this,W,x).Dd}});
sl("Int8Array.prototype.findLastIndex",ma);sl("Uint8Array.prototype.findLastIndex",ma);sl("Uint8ClampedArray.prototype.findLastIndex",ma);sl("Int16Array.prototype.findLastIndex",ma);sl("Uint16Array.prototype.findLastIndex",ma);sl("Int32Array.prototype.findLastIndex",ma);sl("Uint32Array.prototype.findLastIndex",ma);sl("Float32Array.prototype.findLastIndex",ma);sl("Float64Array.prototype.findLastIndex",ma);sl("Number.parseInt",function(Q){return Q||parseInt});var TD,Th,oQQ;TD=TD||{};g.Nz=this||self;Th="closure_uid_"+(Math.random()*1E9>>>0);oQQ=0;g.n(lC,Error);g.N.prototype.y7=!1;g.N.prototype.d7=function(){return this.y7};
g.N.prototype.dispose=function(){this.y7||(this.y7=!0,this.U3())};
g.N.prototype[Symbol.dispose]=function(){this.dispose()};
g.N.prototype.addOnDisposeCallback=function(Q,W){this.y7?W!==void 0?Q.call(W):Q():(this.My||(this.My=[]),W&&(Q=Q.bind(W)),this.My.push(Q))};
g.N.prototype.U3=function(){if(this.My)for(;this.My.length;)this.My.shift()()};var vQ1;g.n(zR,g.N);zR.prototype.share=function(){if(this.d7())throw Error("E:AD");this.N++;return this};
zR.prototype.dispose=function(){--this.N||g.N.prototype.dispose.call(this)};
vQ1=Symbol.dispose;C25.prototype.HM=function(Q,W){this.B.HM("/client_streamz/bg/frs",Q,W)};
Jv5.prototype.HM=function(Q,W,x,D,K,l){this.B.HM("/client_streamz/bg/wrl",Q,W,x,D,K,l)};
p5l.prototype.B=function(Q,W){this.U.Vc("/client_streamz/bg/ec",Q,W)};
hOs.prototype.HM=function(Q,W,x,D){this.B.HM("/client_streamz/bg/el",Q,W,x,D)};
a54.prototype.B=function(Q,W,x){this.U.Vc("/client_streamz/bg/cec",Q,W,x)};
Ghz.prototype.B=function(Q,W,x){this.U.Vc("/client_streamz/bg/po/csc",Q,W,x)};
dzv.prototype.B=function(Q,W,x){this.U.Vc("/client_streamz/bg/po/ctav",Q,W,x)};
is5.prototype.B=function(Q,W,x){this.U.Vc("/client_streamz/bg/po/cwsc",Q,W,x)};g.Wu(n5,Error);n5.prototype.name="CustomError";var Kpv;var $L=void 0,BV,Ams=typeof TextDecoder!=="undefined",B4n,qlD=typeof String.prototype.isWellFormed==="function",Uz2=typeof TextEncoder!=="undefined";var GR=String.prototype.trim?function(Q){return Q.trim()}:function(Q){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(Q)[1]},A$z=/&/g,Hjv=/</g,UaD=/>/g,qrl=/"/g,BfQ=/'/g,$a4=/\x00/g,ij1=/[\x00&<>"']/;var zOs=en(1,!0),Hu=en(610401301,!1);en(899588437,!1);var khJ=en(725719775,!1);en(513659523,!1);en(651175828,!1);en(722764542,!1);en(2147483644,!1);en(2147483645,!1);en(2147483646,zOs);en(2147483647,!0);var Us=!!g.yF("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var qk,X5H=g.Nz.navigator;qk=X5H?X5H.userAgentData||null:null;var Osv,aX,dM;Osv=Array.prototype.indexOf?function(Q,W){return Array.prototype.indexOf.call(Q,W,void 0)}:function(Q,W){if(typeof Q==="string")return typeof W!=="string"||W.length!=1?-1:Q.indexOf(W,0);
for(var x=0;x<Q.length;x++)if(x in Q&&Q[x]===W)return x;return-1};
g.oQF=Array.prototype.lastIndexOf?function(Q,W){return Array.prototype.lastIndexOf.call(Q,W,Q.length-1)}:function(Q,W){var x=Q.length-1;
x<0&&(x=Math.max(0,Q.length+x));if(typeof Q==="string")return typeof W!=="string"||W.length!=1?-1:Q.lastIndexOf(W,x);for(;x>=0;x--)if(x in Q&&Q[x]===W)return x;return-1};
g.o3=Array.prototype.forEach?function(Q,W,x){Array.prototype.forEach.call(Q,W,x)}:function(Q,W,x){for(var D=Q.length,K=typeof Q==="string"?Q.split(""):Q,l=0;l<D;l++)l in K&&W.call(x,K[l],l,Q)};
g.Rv=Array.prototype.filter?function(Q,W,x){return Array.prototype.filter.call(Q,W,x)}:function(Q,W,x){for(var D=Q.length,K=[],l=0,M=typeof Q==="string"?Q.split(""):Q,w=0;w<D;w++)if(w in M){var S=M[w];
W.call(x,S,w,Q)&&(K[l++]=S)}return K};
g.pm=Array.prototype.map?function(Q,W,x){return Array.prototype.map.call(Q,W,x)}:function(Q,W,x){for(var D=Q.length,K=Array(D),l=typeof Q==="string"?Q.split(""):Q,M=0;M<D;M++)M in l&&(K[M]=W.call(x,l[M],M,Q));
return K};
aX=Array.prototype.reduce?function(Q,W,x){return Array.prototype.reduce.call(Q,W,x)}:function(Q,W,x){var D=x;
(0,g.o3)(Q,function(K,l){D=W.call(void 0,D,K,l,Q)});
return D};
dM=Array.prototype.some?function(Q,W){return Array.prototype.some.call(Q,W,void 0)}:function(Q,W){for(var x=Q.length,D=typeof Q==="string"?Q.split(""):Q,K=0;K<x;K++)if(K in D&&W.call(void 0,D[K],K,Q))return!0;
return!1};
g.h8=Array.prototype.every?function(Q,W,x){return Array.prototype.every.call(Q,W,x)}:function(Q,W,x){for(var D=Q.length,K=typeof Q==="string"?Q.split(""):Q,l=0;l<D;l++)if(l in K&&!W.call(x,K[l],l,Q))return!1;
return!0};Y8[" "]=function(){};var bq,Dg,XJv,uDC,Yls,nQs,hC,xh,Vnk;g.aO=mJ();g.kR=cvD();g.rV=$F("Edge");g.Q7=g.rV||g.kR;bq=$F("Gecko")&&!(aq(g.Ae(),"WebKit")&&!$F("Edge"))&&!($F("Trident")||$F("MSIE"))&&!$F("Edge");g.O6=aq(g.Ae(),"WebKit")&&!$F("Edge");Dg=L5();XJv=rvD();g.tS=La2();uDC=f5();Yls=$F("iPad");nQs=$F("iPod");hC=Z7();xh=aq(g.Ae(),"KaiOS");
a:{var P25="",vQq=function(){var Q=g.Ae();if(bq)return/rv:([^\);]+)(\)|;)/.exec(Q);if(g.rV)return/Edge\/([\d\.]+)/.exec(Q);if(g.kR)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Q);if(g.O6)return/WebKit\/(\S+)/.exec(Q);if(g.aO)return/(?:Version)[ \/]?(\S+)/.exec(Q)}();
vQq&&(P25=vQq?vQq[1]:"");if(g.kR){var En,C27=g.Nz.document;En=C27?C27.documentMode:void 0;if(En!=null&&En>parseFloat(P25)){Vnk=String(En);break a}}Vnk=P25}var RYl=Vnk,jq5={};var Ok,Ek;g.gr=cu();Ok=f5()||$F("iPod");Ek=$F("iPad");g.Gs=yva();g.UC=g1();g.nX=yA()&&!Z7();var Ss5={},CP=null,b5s=bq||g.O6||typeof g.Nz.btoa=="function";var Vp1=typeof Uint8Array!=="undefined",kRa=!g.kR&&typeof btoa==="function",YsO=/[-_.]/g,oF5={"-":"+",_:"/",".":"="},hm={};pP.prototype.isEmpty=function(){return this.B==null};
pP.prototype.sizeBytes=function(){var Q=GS(this);return Q?Q.length:0};
var vFO;var Je5=void 0;var Ug=typeof Symbol==="function"&&typeof Symbol()==="symbol",Jvu=H1("jas",void 0,!0),lg=H1(void 0,"1oa"),ZX=H1(void 0,Symbol()),o82=H1(void 0,"0actk"),O5s=H1(void 0,"8utk");Math.max.apply(Math,g.C(Object.values({Rsj:1,MeZ:2,wM3:4,Gc5:8,oRS:16,dkS:32,ORZ:64,xWj:128,aV9:256,S8j:512,sI9:1024,A8Z:2048,wz7:4096,ZRj:8192})));var q3=Ug?Jvu:"OS3",hY5={OS3:{value:0,configurable:!0,writable:!0,enumerable:!1}},puF=Object.defineProperties;var aL={},T3,p5s=[];$8(p5s,55);T3=Object.freeze(p5s);var PZD=Object.freeze({});var Aes=TS(function(Q){return typeof Q==="number"}),i5D=TS(function(Q){return typeof Q==="string"}),H52=TS(function(Q){return typeof Q==="boolean"}),Sb=TS(function(Q){return Q!=null&&typeof Q==="object"&&typeof Q.then==="function"}),wL=TS(function(Q){return!!Q&&(typeof Q==="object"||typeof Q==="function")});var Og=typeof g.Nz.BigInt==="function"&&typeof g.Nz.BigInt(0)==="bigint";var Cj=TS(function(Q){return Og?Q>=hO5&&Q<=a51:Q[0]==="-"?Uk4(Q,Ghk):Uk4(Q,dze)}),Ghk=Number.MIN_SAFE_INTEGER.toString(),hO5=Og?BigInt(Number.MIN_SAFE_INTEGER):void 0,dze=Number.MAX_SAFE_INTEGER.toString(),a51=Og?BigInt(Number.MAX_SAFE_INTEGER):void 0;var aX1=typeof Uint8Array.prototype.slice==="function",Ff=0,QR=0,xav;var uF=typeof BigInt==="function"?BigInt.asIntN:void 0,rea=typeof BigInt==="function"?BigInt.asUintN:void 0,VR=Number.isSafeInteger,Sj=Number.isFinite,nj=Math.trunc,mkD=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var iF;var Ur,zcO;g.R=p1z.prototype;g.R.init=function(Q,W,x,D){D=D===void 0?{}:D;this.R$=D.R$===void 0?!1:D.R$;Q&&(Q=CR(Q),this.U=Q.buffer,this.L=Q.Cq,this.N=W||0,this.D=x!==void 0?this.N+x:this.U.length,this.B=this.N)};
g.R.free=function(){this.clear();Aj.length<100&&Aj.push(this)};
g.R.clear=function(){this.U=null;this.L=!1;this.B=this.D=this.N=0;this.R$=!1};
g.R.reset=function(){this.B=this.N};
g.R.qr=function(){var Q=this.X;Q||(Q=this.U,Q=this.X=new DataView(Q.buffer,Q.byteOffset,Q.byteLength));return Q};
var Aj=[];HV.prototype.free=function(){this.B.clear();this.U=this.N=-1;FQ.length<100&&FQ.push(this)};
HV.prototype.reset=function(){this.B.reset();this.D=this.B.B;this.U=this.N=-1};
var FQ=[];g.R=mp.prototype;g.R.toJSON=function(){return A$(this)};
g.R.Rj=function(Q){return JSON.stringify(A$(this,Q))};
g.R.clone=function(){var Q=this.pn;return new this.constructor($V(Q,Q[q3]|0,!1))};
g.R.Cq=function(){return!!((this.pn[q3]|0)&2)};
g.R.KQ=aL;g.R.toString=function(){return this.pn.toString()};var qgl,$32;gc.prototype.length=function(){return this.B.length};
gc.prototype.end=function(){var Q=this.B;this.B=[];return Q};var OY=T1(),isu=T1(),AvA=T1(),HsH=T1(),UzC=T1(),qlH=T1(),B4p=T1(),$zF=T1();var LH4=Ft(function(Q,W,x,D,K){if(Q.U!==2)return!1;qu(Q,jE(W,D,x),K);return!0},ZPF),rmO=Ft(function(Q,W,x,D,K){if(Q.U!==2)return!1;
qu(Q,jE(W,D,x),K);return!0},ZPF),MZ=Symbol(),D_=Symbol(),OPQ=Symbol(),tJa=Symbol(),tj,Qw;var I5F=Sx(function(Q,W,x){if(Q.U!==1)return!1;sE(W,x,dc(Q.B));return!0},zm,B4p),mzR=Sx(function(Q,W,x){if(Q.U!==1)return!1;
Q=dc(Q.B);sE(W,x,Q===0?void 0:Q);return!0},zm,B4p),N4H=Sx(function(Q,W,x,D){if(Q.U!==1)return!1;
DJ(W,x,D,dc(Q.B));return!0},zm,B4p),cvH=Sx(function(Q,W,x){if(Q.U!==0)return!1;
sE(W,x,pR(Q.B));return!0},kc,UzC),gQs=Sx(function(Q,W,x){if(Q.U!==0)return!1;
Q=pR(Q.B);sE(W,x,Q===0?void 0:Q);return!0},kc,UzC),yvJ=Sx(function(Q,W,x,D){if(Q.U!==0)return!1;
DJ(W,x,D,pR(Q.B));return!0},kc,UzC),eO1=Sx(function(Q,W,x){if(Q.U!==0)return!1;
sE(W,x,hj(Q.B));return!0},Xa,HsH),f5C=Sx(function(Q,W,x){if(Q.U!==0)return!1;
Q=hj(Q.B);sE(W,x,Q===0?void 0:Q);return!0},Xa,HsH),Zs1=Sx(function(Q,W,x,D){if(Q.U!==0)return!1;
DJ(W,x,D,hj(Q.B));return!0},Xa,HsH),LaC=Sx(function(Q,W,x){if(Q.U!==1)return!1;
sE(W,x,G1(Q.B));return!0},function(Q,W,x){ecF(Q,x,T15(W))},qlH),rvH=b5(function(Q,W,x){if(Q.U!==1&&Q.U!==2)return!1;
W=FF(W,W[q3]|0,x,!1);if(Q.U==2)for(x=hj(Q.B)>>>0,x=Q.B.B+x;Q.B.B<x;)W.push(G1(Q.B));else W.push(G1(Q.B));return!0},function(Q,W,x){W=wX(T15,W,!1);
if(W!=null)for(var D=0;D<W.length;D++)ecF(Q,x,W[D])},qlH),T4F=Sx(function(Q,W,x){if(Q.U!==0)return!1;
sE(W,x,ig(Q.B));return!0},Da4,isu),Ose=Sx(function(Q,W,x,D){if(Q.U!==0)return!1;
DJ(W,x,D,ig(Q.B));return!0},Da4,isu),tR=Sx(function(Q,W,x){if(Q.U!==2)return!1;
sE(W,x,Ip(Q));return!0},KL5,AvA),EQY=b5(function(Q,W,x){if(Q.U!==2)return!1;
Q=Ip(Q);FF(W,W[q3]|0,x,!1).push(Q);return!0},function(Q,W,x){W=wX(pj,W,!0);
if(W!=null)for(var D=0;D<W.length;D++){var K=Q,l=x,M=W[D];M!=null&&rc(K,l,$zQ(M))}},AvA),FaY=Sx(function(Q,W,x,D){if(Q.U!==2)return!1;
DJ(W,x,D,Ip(Q));return!0},KL5,AvA),Qe,WU=void 0;
WU=WU===void 0?OY:WU;Qe=new EY(function(Q,W,x,D,K){if(Q.U!==2)return!1;D=B6(void 0,D,!0);FF(W,W[q3]|0,x,!0).push(D);qu(Q,D,K);return!0},function(Q,W,x,D,K){if(Array.isArray(W))for(var l=0;l<W.length;l++)l3Q(Q,W[l],x,D,K)},WU);
var xf=Ft(function(Q,W,x,D,K,l){if(Q.U!==2)return!1;WV(W,W[q3]|0,l,x);W=jE(W,D,x);qu(Q,W,K);return!0},l3Q),tn1=Sx(function(Q,W,x){if(Q.U!==2)return!1;
sE(W,x,HPh(Q));return!0},function(Q,W,x){W=EFh(W);
W!=null&&rc(Q,x,CR(W).buffer)},$zF),QqY=b5(function(Q,W,x){if(Q.U!==2)return!1;
Q=HPh(Q);FF(W,W[q3]|0,x,!1).push(Q);return!0},function(Q,W,x){W=wX(EFh,W,!1);
if(W!=null)for(var D=0;D<W.length;D++){var K=Q,l=x,M=W[D];M!=null&&rc(K,l,CR(M).buffer)}},$zF),Dp=Sx(function(Q,W,x){if(Q.U!==0)return!1;
sE(W,x,hj(Q.B)>>>0);return!0},function(Q,W,x){W=XF(W);
W!=null&&W!=null&&(LR(Q,x,0),eE(Q.B,W))},T1()),WJJ=Sx(function(Q,W,x){if(Q.U!==0)return!1;
sE(W,x,hj(Q.B));return!0},function(Q,W,x){W=z3(W);
W!=null&&(W=parseInt(W,10),LR(Q,x,0),m3l(Q.B,W))},T1());Mj5.prototype.register=function(){Y8(this)};g.n(w6s,mp);g.n(u5,mp);var vI=[1,2,3];var xk5=[0,vI,FaY,Zs1,Ose];var Dku=[0,Qe,[0,I5F,cvH]];g.n(Yc,mp);var PI=[1,2,3];var KJC=[0,PI,yvJ,N4H,xf,Dku];g.n(n0,mp);var l71=[0,Qe,xk5,KJC];var jqu=[0,[1,2,3],xf,[0,tR,-1,T4F],xf,[0,tR,-1,eO1,T4F],xf,[0,tR]];g.n(Vw,mp);Vw.prototype.zL=function(){var Q=rf(this,3,pj,3,!0);fP(Q);return Q[void 0]};Vw.prototype.B=RZD([0,tR,jqu,EQY,Qe,l71,LaC,rvH]);g.n(bj4,mp);var Vjs=globalThis.trustedTypes,C0;p0.prototype.toString=function(){return this.B+""};Gm.prototype.toString=function(){return this.B};
var CF5=new Gm("about:invalid#zClosurez");var pSa=Ai("tel"),Cwn=Ai("sms"),vVQ=[Ai("data"),Ai("http"),Ai("https"),Ai("mailto"),Ai("ftp"),new i5(function(Q){return/^[^:]*([/?#]|$)/.test(Q)})],J$n=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;BI.prototype.toString=function(){return this.B+""};cI.prototype.toString=function(){return this.B+""};f0.prototype.toString=function(){return this.B};var L0={};g.Mpq=String.prototype.repeat?function(Q,W){return Q.repeat(W)}:function(Q,W){return Array(W+1).join(Q)};g.R=x6.prototype;g.R.isEnabled=function(){if(!g.Nz.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{vk:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.R.set=function(Q,W,x){var D=!1;if(typeof x==="object"){var K=x.Y45;D=x.secure||!1;var l=x.domain||void 0;var M=x.path||void 0;var w=x.vk}if(/[;=\s]/.test(Q))throw Error('Invalid cookie name "'+Q+'"');if(/[;\r\n]/.test(W))throw Error('Invalid cookie value "'+W+'"');w===void 0&&(w=-1);x=l?";domain="+l:"";M=M?";path="+M:"";D=D?";secure":"";w=w<0?"":w==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+w*1E3)).toUTCString();this.B.cookie=Q+"="+W+x+M+w+D+(K!=null?";samesite="+
K:"")};
g.R.get=function(Q,W){for(var x=Q+"=",D=(this.B.cookie||"").split(";"),K=0,l;K<D.length;K++){l=GR(D[K]);if(l.lastIndexOf(x,0)==0)return l.slice(x.length);if(l==Q)return""}return W};
g.R.remove=function(Q,W,x){var D=this.get(Q)!==void 0;this.set(Q,"",{vk:0,path:W,domain:x});return D};
g.R.v8=function(){return Dw(this).keys};
g.R.dY=function(){return Dw(this).values};
g.R.isEmpty=function(){return!this.B.cookie};
g.R.clear=function(){for(var Q=Dw(this).keys,W=Q.length-1;W>=0;W--)this.remove(Q[W])};
var Bb=new x6(typeof document=="undefined"?null:document);KC.prototype.compress=function(Q){var W,x,D,K;return g.U(function(l){switch(l.B){case 1:return W=new CompressionStream("gzip"),x=(new Response(W.readable)).arrayBuffer(),D=W.writable.getWriter(),g.A(l,D.write((new TextEncoder).encode(Q)),2);case 2:return g.A(l,D.close(),3);case 3:return K=Uint8Array,g.A(l,x,4);case 4:return l.return(new K(l.U))}})};
KC.prototype.isSupported=function(Q){return Q<1024?!1:typeof CompressionStream!=="undefined"};g.n(l0,mp);jD.prototype.setInterval=function(Q){this.intervalMs=Q;this.rP&&this.enabled?(this.stop(),this.start()):this.rP&&this.stop()};
jD.prototype.start=function(){var Q=this;this.enabled=!0;this.rP||(this.rP=setTimeout(function(){Q.tick()},this.intervalMs),this.U=this.B())};
jD.prototype.stop=function(){this.enabled=!1;this.rP&&(clearTimeout(this.rP),this.rP=void 0)};
jD.prototype.tick=function(){var Q=this;if(this.enabled){var W=Math.max(this.B()-this.U,0);W<this.intervalMs*.8?this.rP=setTimeout(function(){Q.tick()},this.intervalMs-W):(this.rP&&(clearTimeout(this.rP),this.rP=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.rP=void 0};g.n(M9,mp);g.n(RZ,mp);g.R=g.k6.prototype;g.R.clone=function(){return new g.k6(this.x,this.y)};
g.R.yI=function(Q){return Q instanceof g.k6&&Xz(this,Q)};
g.R.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.R.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.R.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.R.scale=function(Q,W){this.x*=Q;this.y*=typeof W==="number"?W:Q;return this};g.R=g.oZ.prototype;g.R.clone=function(){return new g.oZ(this.width,this.height)};
g.R.aspectRatio=function(){return this.width/this.height};
g.R.isEmpty=function(){return!Y6(this)};
g.R.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.R.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.R.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.R.scale=function(Q,W){this.width*=Q;this.height*=typeof W==="number"?W:Q;return this};var Tf1="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");$6.prototype.toString=function(){return this.B};
var BZ={};new $6(BZ,"");var EVh=/^[a-z][a-z\d-]*$/i,FLn="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Qpn="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),xuz=["action","formaction","href"];var lJQ={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.R=m_.prototype;g.R.yh=function(Q){return gS(this.B,Q)};
g.R.getElementsByTagName=function(Q,W){return(W||this.B).getElementsByTagName(String(Q))};
g.R.Nj=function(Q){return g.rS(Q,this.B)};
g.R.setProperties=TM;g.R.createElement=function(Q){return Fz(this.B,Q)};
g.R.appendChild=g.xH;g.R.append=function(Q,W){wV5(N9(Q),Q,arguments,1)};
g.R.canHaveChildren=function(Q){if(Q.nodeType!=1)return!1;switch(Q.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.R.removeNode=g.lo;g.R.getChildren=function(Q){return Q.children!=void 0?Q.children:Array.prototype.filter.call(Q.childNodes,function(W){return W.nodeType==1})};
g.R.contains=g.jh;g.n(Sh,mp);Sh.prototype.NF=function(){return op(this,1)};g.n(bo,mp);g.n(sx,mp);g.n(zW,mp);var z8Q=["platform","platformVersion","architecture","model","uaFullVersion"],XN=new sx,kH=null;g.n(ow,mp);g.n(XV5,mp);g.n(uo,mp);g.n(YH,mp);YH.prototype.j=function(){return Mu(this,XV5,7)!==void 0};
YH.prototype.A$=function(){return Rp(this,l0,16)};g.n(ny,mp);ny.prototype.TM=function(Q){return VH(this,2,Q)};PO.prototype.TM=function(Q){this.B.TM(Q);return this};
PO.prototype.build=function(Q,W,x,D,K,l){W=W===void 0?0:W;x=x===void 0?0:x;D=D===void 0?null:D;K=K===void 0?0:K;l=l===void 0?0:l;var M=Rp(this.B,ow,1);if(Mu(M,zW,11)!==void 0){M=vO(this);var w=new Sh;w=VH(w,1,this.U);w=gf(w,2,wf(this.isFinal));x=gf(w,3,sr(x>0?x:void 0));x=gf(x,4,sr(K>0?K:void 0));x=gf(x,5,sr(l>0?l:void 0));K=x.pn;l=K[q3]|0;x=l&2?x:new x.constructor($V(K,l,!0));wc(M,Sh,10,x)}M=this.B.clone();x=Date.now().toString();M=gf(M,4,v6(x));Q=bg(M,YH,3,Q.slice());D&&(M=new M9,D=gf(M,13,sr(D)),
M=new RZ,D=wc(M,M9,2,D),M=new uo,D=wc(M,RZ,1,D),D=VH(D,2,9),wc(Q,uo,18,D));W&&ug(Q,14,W);return Q};var $uD=function(){if(!g.Nz.addEventListener||!Object.defineProperty)return!1;var Q=!1,W=Object.defineProperty({},"passive",{get:function(){Q=!0}});
try{var x=function(){};
g.Nz.addEventListener("test",x,W);g.Nz.removeEventListener("test",x,W)}catch(D){}return Q}();var Tyl=nLv("AnimationEnd"),sG=nLv("TransitionEnd");g.Cy.prototype.U=0;g.Cy.prototype.reset=function(){this.B=this.D=this.N;this.U=0};
g.Cy.prototype.getValue=function(){return this.D};g.n(VEQ,mp);var RYs=ox(VEQ);g.n(jLF,mp);var Ko=new Mj5;g.n(hg,g.N);g.R=hg.prototype;g.R.U3=function(){this.Yk();this.U.stop();this.fS.stop();g.N.prototype.U3.call(this)};
g.R.dispatch=function(Q){if(Q instanceof YH)this.log(Q);else try{var W=new YH,x=Q.Rj();var D=YL(W,8,x);this.log(D)}catch(K){}};
g.R.log=function(Q){if(this.LS){Q=Q.clone();var W=this.eZ++;Q=ug(Q,21,W);this.componentId&&YL(Q,26,this.componentId);W=Q;if(v85(W)==null){var x=Date.now();x=Number.isFinite(x)?x.toString():"0";gf(W,1,v6(x))}Z51(Na(W,15))!=null||ug(W,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(x=this.experimentIds.clone(),wc(W,l0,16,x));W=this.B.length-1E3+1;W>0&&(this.B.splice(0,W),this.N+=W);this.B.push(Q);this.RF||this.U.enabled||this.U.start()}};
g.R.flush=function(Q,W){var x=this;if(this.B.length===0)Q&&Q();else if(this.KS&&this.T)this.D.U=3,pVO(this);else{var D=Date.now();if(this.g7>D&&this.F3<D)W&&W("throttled");else{this.network&&(typeof this.network.NF==="function"?utQ(this.D,this.network.NF()):this.D.U=0);var K=this.D.build(this.B,this.N,this.X,this.Pl,this.pS,this.uj),l=this.Jz();if(l&&this.X3===l)W&&W("stale-auth-token");else{this.B=[];this.U.enabled&&this.U.stop();this.N=0;D=K.Rj();var M;this.G&&this.G.isSupported(D.length)&&(M=this.G.compress(D));
var w=Cgs(this,D,l),S=function(k){x.L.reset();x.U.setInterval(x.L.getValue());if(k){var X=null;try{var u=JSON.stringify(JSON.parse(k.replace(")]}'\n","")));X=RYs(u)}catch(J){}if(X){k=Number;var Y="-1";Y=Y===void 0?"0":Y;var v;u=(v=v85(X))!=null?v:Y;v=k(u);v>0&&(x.F3=Date.now(),x.g7=x.F3+v);X=Ko.B?Ko.U(X,Ko.B,175237375):Ko.U(X,175237375,null);if(X=X===null?void 0:X)X=Rq(X,1,-1),X!==-1&&(x.L=new g.Cy(X<1?1:X,3E5,.1),x.U.setInterval(x.L.getValue()))}}Q&&Q();x.X=0},b=function(k,X){var u=jp(K,YH,3);
var Y;var v=(Y=Z51(Na(K,14)))!=null?Y:void 0;g.Jg(x.L);x.U.setInterval(x.L.getValue());k===401&&l&&(x.X3=l);v&&(x.N+=v);X===void 0&&(X=x.isRetryable(k));X&&(x.B=u.concat(x.B),x.RF||x.U.enabled||x.U.start());W&&W("net-send-failed",k);++x.X},z=function(){x.network&&x.network.send(w,S,b)};
M?M.then(function(k){w.requestHeaders["Content-Encoding"]="gzip";w.requestHeaders["Content-Type"]="application/binary";w.body=k;w.Y0=2;z()},function(){z()}):z()}}}};
g.R.Yk=function(){this.D.isFinal=!0;this.flush();this.D.isFinal=!1};
g.R.isRetryable=function(Q){return 500<=Q&&Q<600||Q===401||Q===0};aw.prototype.send=function(Q,W,x){var D=this,K,l,M,w,S,b,z,k,X,u;return g.U(function(Y){switch(Y.B){case 1:return l=(K=D.D8?new AbortController:void 0)?setTimeout(function(){K.abort()},Q.timeoutMillis):void 0,g.P5(Y,2,3),M=Object.assign({},{method:Q.requestType,
headers:Object.assign({},Q.requestHeaders)},Q.body&&{body:Q.body},Q.withCredentials&&{credentials:"include"},{signal:Q.timeoutMillis&&K?K.signal:null}),g.A(Y,fetch(Q.url,M),5);case 5:w=Y.U;if(w.status!==200){(S=x)==null||S(w.status);Y.kf(3);break}if((b=W)==null){Y.kf(7);break}return g.A(Y,w.text(),8);case 8:b(Y.U);case 7:case 3:g.ps(Y);clearTimeout(l);g.hv(Y,0);break;case 2:z=g.Jv(Y);switch((k=z)==null?void 0:k.name){case "AbortError":(X=x)==null||X(408);break;default:(u=x)==null||u(400)}Y.kf(3)}})};
aw.prototype.NF=function(){return 4};g.n(GW,g.N);GW.prototype.UW=function(){this.L=!0;return this};
GW.prototype.build=function(){this.network||(this.network=new aw);var Q=new hg({logSource:this.logSource,Jz:this.Jz?this.Jz:eZs,sessionIndex:this.sessionIndex,qsZ:this.Lf,bU:this.N,RF:!1,UW:this.L,Lh:this.Lh,network:this.network});g.y(this,Q);if(this.U){var W=this.U,x=vO(Q.D);YL(x,7,W)}Q.G=new KC;this.componentId&&(Q.componentId=this.componentId);this.Pl&&(Q.Pl=this.Pl);this.pageId&&(Q.pageId=this.pageId);this.B&&((x=this.B)?(Q.experimentIds||(Q.experimentIds=new l0),W=Q.experimentIds,x=x.Rj(),YL(W,
4,x)):Q.experimentIds&&gf(Q.experimentIds,4));this.D&&(Q.KS=Q.T);YY4(Q.D);this.network.TM&&this.network.TM(this.logSource);this.network.Z23&&this.network.Z23(Q);return Q};g.n(dp,g.N);dp.prototype.flush=function(Q){Q=Q||[];if(Q.length){for(var W=new bj4,x=[],D=0;D<Q.length;D++){var K=Q[D],l=g.k34(K);x.push(l);K.clear()}bg(W,Vw,1,x);this.B.dispatch(W);this.B.flush()}};g.R=io.prototype;g.R.l1=function(Q){var W=g.i2.apply(1,arguments),x=this.Aa(W);x?x.push(new iR5(Q)):this.NS(Q,W)};
g.R.NS=function(Q){this.B.set(this.Om(g.i2.apply(1,arguments)),[new iR5(Q)])};
g.R.Aa=function(){var Q=this.Om(g.i2.apply(0,arguments));return this.B.has(Q)?this.B.get(Q):void 0};
g.R.Xc=function(){var Q=this.Aa(g.i2.apply(0,arguments));return Q&&Q.length?Q[0]:void 0};
g.R.clear=function(){this.B.clear()};
g.R.Om=function(){var Q=g.i2.apply(0,arguments);return Q?Q.join(","):"key"};g.n(Ag,io);Ag.prototype.D=function(Q){var W=g.i2.apply(1,arguments),x=0,D=this.Xc(W);D&&(x=D.B);this.NS(x+Q,W)};g.n(HO,io);HO.prototype.HM=function(Q){this.l1(Q,g.i2.apply(1,arguments))};g.Ux.prototype.stopPropagation=function(){this.U=!0};
g.Ux.prototype.preventDefault=function(){this.defaultPrevented=!0};g.Wu(qT,g.Ux);
qT.prototype.init=function(Q,W){var x=this.type=Q.type,D=Q.changedTouches&&Q.changedTouches.length?Q.changedTouches[0]:null;this.target=Q.target||Q.srcElement;this.currentTarget=W;W=Q.relatedTarget;W||(x=="mouseover"?W=Q.fromElement:x=="mouseout"&&(W=Q.toElement));this.relatedTarget=W;D?(this.clientX=D.clientX!==void 0?D.clientX:D.pageX,this.clientY=D.clientY!==void 0?D.clientY:D.pageY,this.screenX=D.screenX||0,this.screenY=D.screenY||0):(this.clientX=Q.clientX!==void 0?Q.clientX:Q.pageX,this.clientY=
Q.clientY!==void 0?Q.clientY:Q.pageY,this.screenX=Q.screenX||0,this.screenY=Q.screenY||0);this.button=Q.button;this.keyCode=Q.keyCode||0;this.key=Q.key||"";this.charCode=Q.charCode||(x=="keypress"?Q.keyCode:0);this.ctrlKey=Q.ctrlKey;this.altKey=Q.altKey;this.shiftKey=Q.shiftKey;this.metaKey=Q.metaKey;this.pointerId=Q.pointerId||0;this.pointerType=Q.pointerType;this.state=Q.state;this.B=Q;Q.defaultPrevented&&qT.t2.preventDefault.call(this)};
qT.prototype.stopPropagation=function(){qT.t2.stopPropagation.call(this);this.B.stopPropagation?this.B.stopPropagation():this.B.cancelBubble=!0};
qT.prototype.preventDefault=function(){qT.t2.preventDefault.call(this);var Q=this.B;Q.preventDefault?Q.preventDefault():Q.returnValue=!1};var AjO="closure_listenable_"+(Math.random()*1E6|0);var HR4=0;g.R=Iw.prototype;g.R.add=function(Q,W,x,D,K){var l=Q.toString();Q=this.listeners[l];Q||(Q=this.listeners[l]=[],this.B++);var M=NT(Q,W,D,K);M>-1?(W=Q[M],x||(W.bz=!1)):(W=new UuD(W,this.src,l,!!D,K),W.bz=x,Q.push(W));return W};
g.R.remove=function(Q,W,x,D){Q=Q.toString();if(!(Q in this.listeners))return!1;var K=this.listeners[Q];W=NT(K,W,x,D);return W>-1?($H(K[W]),g.te(K,W),K.length==0&&(delete this.listeners[Q],this.B--),!0):!1};
g.R.removeAll=function(Q){Q=Q&&Q.toString();var W=0,x;for(x in this.listeners)if(!Q||x==Q){for(var D=this.listeners[x],K=0;K<D.length;K++)++W,$H(D[K]);delete this.listeners[x];this.B--}return W};
g.R.cC=function(Q,W,x,D){Q=this.listeners[Q.toString()];var K=-1;Q&&(K=NT(Q,W,x,D));return K>-1?Q[K]:null};
g.R.hasListener=function(Q,W){var x=Q!==void 0,D=x?Q.toString():"",K=W!==void 0;return g.vZ(this.listeners,function(l){for(var M=0;M<l.length;++M)if(!(x&&l[M].type!=D||K&&l[M].capture!=W))return!0;return!1})};var rp="closure_lm_"+(Math.random()*1E6|0),Ox={},mu1=0,Ex="__closure_events_fn_"+(Math.random()*1E9>>>0);g.Wu(g.FN,g.N);g.FN.prototype[AjO]=!0;g.R=g.FN.prototype;g.R.addEventListener=function(Q,W,x,D){g.gp(this,Q,W,x,D)};
g.R.removeEventListener=function(Q,W,x,D){cj2(this,Q,W,x,D)};
g.R.dispatchEvent=function(Q){var W=this.L8;if(W){var x=[];for(var D=1;W;W=W.L8)x.push(W),++D}W=this.k0;D=Q.type||Q;if(typeof Q==="string")Q=new g.Ux(Q,W);else if(Q instanceof g.Ux)Q.target=Q.target||W;else{var K=Q;Q=new g.Ux(D,W);g.q9(Q,K)}K=!0;var l;if(x)for(l=x.length-1;!Q.U&&l>=0;l--){var M=Q.currentTarget=x[l];K=tg(M,D,!0,Q)&&K}Q.U||(M=Q.currentTarget=W,K=tg(M,D,!0,Q)&&K,Q.U||(K=tg(M,D,!1,Q)&&K));if(x)for(l=0;!Q.U&&l<x.length;l++)M=Q.currentTarget=x[l],K=tg(M,D,!1,Q)&&K;return K};
g.R.U3=function(){g.FN.t2.U3.call(this);this.Kv&&this.Kv.removeAll(void 0);this.L8=null};
g.R.listen=function(Q,W,x,D){return this.Kv.add(String(Q),W,!1,x,D)};
g.R.Jt=function(Q,W,x,D){return this.Kv.add(String(Q),W,!0,x,D)};
g.R.mJ=function(Q,W,x,D){this.Kv.remove(String(Q),W,x,D)};
g.R.cC=function(Q,W,x,D){return this.Kv.cC(String(Q),W,x,D)};
g.R.hasListener=function(Q,W){return this.Kv.hasListener(Q!==void 0?String(Q):void 0,W)};var xX=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(Q){return Q&&AsyncContext.Snapshot.wrap(Q)}:function(Q){return Q};Qa.prototype.get=function(){if(this.U>0){this.U--;var Q=this.B;this.B=Q.next;Q.next=null}else Q=this.D();return Q};var Dr;li.prototype.add=function(Q,W){var x=LpF.get();x.set(Q,W);this.U?this.U.next=x:this.B=x;this.U=x};
li.prototype.remove=function(){var Q=null;this.B&&(Q=this.B,this.B=this.B.next,this.B||(this.U=null),Q.next=null);return Q};
var LpF=new Qa(function(){return new jo},function(Q){return Q.reset()});
jo.prototype.set=function(Q,W){this.B=Q;this.scope=W;this.next=null};
jo.prototype.reset=function(){this.next=this.scope=this.B=null};var MU,Rj=!1,fJn=new li;ORn.prototype.reset=function(){this.context=this.U=this.D=this.B=null;this.N=!1};
var ELD=new Qa(function(){return new ORn},function(Q){Q.reset()});
g.Xk.prototype.then=function(Q,W,x){return R$1(this,xX(typeof Q==="function"?Q:null),xX(typeof W==="function"?W:null),x)};
g.Xk.prototype.$goog_Thenable=!0;g.R=g.Xk.prototype;g.R.finally=function(Q){var W=this;Q=xX(Q);return new Promise(function(x,D){DZ1(W,function(K){Q();x(K)},function(K){Q();
D(K)})})};
g.R.RH=function(Q,W){return R$1(this,null,xX(Q),W)};
g.R.catch=g.Xk.prototype.RH;g.R.cancel=function(Q){if(this.B==0){var W=new P_(Q);g.wv(function(){KO5(this,W)},this)}};
g.R.AA3=function(Q){this.B=0;kX(this,2,Q)};
g.R.hm3=function(Q){this.B=0;kX(this,3,Q)};
g.R.ST=function(){for(var Q;Q=l_5(this);)jxa(this,Q,this.B,this.G);this.X=!1};
var sx4=Pu;g.Wu(P_,n5);P_.prototype.name="cancel";g.Wu(g.v_,g.FN);g.R=g.v_.prototype;g.R.enabled=!1;g.R.rE=null;g.R.setInterval=function(Q){this.CA=Q;this.rE&&this.enabled?(this.stop(),this.start()):this.rE&&this.stop()};
g.R.em3=function(){if(this.enabled){var Q=g.QA()-this.o3;Q>0&&Q<this.CA*.8?this.rE=this.GQ.setTimeout(this.gS,this.CA-Q):(this.rE&&(this.GQ.clearTimeout(this.rE),this.rE=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.R.start=function(){this.enabled=!0;this.rE||(this.rE=this.GQ.setTimeout(this.gS,this.CA),this.o3=g.QA())};
g.R.stop=function(){this.enabled=!1;this.rE&&(this.GQ.clearTimeout(this.rE),this.rE=null)};
g.R.U3=function(){g.v_.t2.U3.call(this);this.stop();delete this.GQ};g.n(g.pr,g.N);g.R=g.pr.prototype;g.R.sendIsolatedPayload=function(Q){this.L=Q;this.D=1};
g.R.KG=function(){var Q=this.U.values();Q=[].concat(g.C(Q)).filter(function(W){return W.B.size});
Q.length&&this.G.flush(Q,this.L);XI5(Q);this.N=0;this.B.enabled&&this.B.stop()};
g.R.mu=function(Q){var W=g.i2.apply(1,arguments);this.U.has(Q)||this.U.set(Q,new Ag(Q,W))};
g.R.U0=function(Q){var W=g.i2.apply(1,arguments);this.U.has(Q)||this.U.set(Q,new HO(Q,W))};
g.R.Vc=function(Q){this.rF(Q,1,g.i2.apply(1,arguments))};
g.R.rF=function(Q,W){var x=g.i2.apply(2,arguments),D=kmF(this,Q);D&&D instanceof Ag&&(D.D(W,x),z$a(this))};
g.R.HM=function(Q,W){var x=g.i2.apply(2,arguments),D=kmF(this,Q);D&&D instanceof HO&&(D.HM(W,x),z$a(this))};g.n(hr,Error);hr.prototype.toString=function(){var Q="RpcError("+(uan(this.code)||String(this.code))+")";this.message&&(Q+=": "+this.message);return Q};o6l.prototype.Rj=function(Q){var W=[];GD(this,Q,W);return W.join("")};
var n6D={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Y6Q=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var wuC;g.Wu(dv,P0s);dv.prototype.B=function(){return new XMLHttpRequest};
wuC=new dv;var qU=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),awa=/#|$/,GMs=/[?&]($|#)/;g.Wu(g.Lr,g.FN);var BS5=/^https?$/i,Ssu=["POST","PUT"],iC4=[];g.R=g.Lr.prototype;g.R.OU=function(){this.dispose();g.Qn(iC4,this)};
g.R.send=function(Q,W,x,D){if(this.B)throw Error("[goog.net.XhrIo] Object is active with another request="+this.S+"; newUri="+Q);W=W?W.toUpperCase():"GET";this.S=Q;this.N="";this.U=0;this.pS=!1;this.D=!0;this.B=this.fS?this.fS.B():wuC.B();this.B.onreadystatechange=xX((0,g.FD)(this.PB,this));try{this.getStatus(),this.F3=!0,this.B.open(W,String(Q),!0),this.F3=!1}catch(M){this.getStatus();U9a(this,M);return}Q=x||"";x=new Map(this.headers);if(D)if(Object.getPrototypeOf(D)===Object.prototype)for(var K in D)x.set(K,
D[K]);else if(typeof D.keys==="function"&&typeof D.get==="function"){K=g.V(D.keys());for(var l=K.next();!l.done;l=K.next())l=l.value,x.set(l,D.get(l))}else throw Error("Unknown input type for opt_headers: "+String(D));D=Array.from(x.keys()).find(function(M){return"content-type"==M.toLowerCase()});
K=g.Nz.FormData&&Q instanceof g.Nz.FormData;!g.FH(Ssu,W)||D||K||x.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");W=g.V(x);for(D=W.next();!D.done;D=W.next())x=g.V(D.value),D=x.next().value,x=x.next().value,this.B.setRequestHeader(D,x);this.KS&&(this.B.responseType=this.KS);"withCredentials"in this.B&&this.B.withCredentials!==this.G&&(this.B.withCredentials=this.G);try{this.X&&(clearTimeout(this.X),this.X=null),this.uj>0&&(this.getStatus(),this.X=setTimeout(this.WW.bind(this),
this.uj)),this.getStatus(),this.T=!0,this.B.send(Q),this.T=!1}catch(M){this.getStatus(),U9a(this,M)}};
g.R.WW=function(){typeof TD!="undefined"&&this.B&&(this.N="Timed out after "+this.uj+"ms, aborting",this.U=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.R.abort=function(Q){this.B&&this.D&&(this.getStatus(),this.D=!1,this.L=!0,this.B.abort(),this.L=!1,this.U=Q||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),rv(this))};
g.R.U3=function(){this.B&&(this.D&&(this.D=!1,this.L=!0,this.B.abort(),this.L=!1),rv(this,!0));g.Lr.t2.U3.call(this)};
g.R.PB=function(){this.d7()||(this.F3||this.T||this.L?q62(this):this.XVp())};
g.R.XVp=function(){q62(this)};
g.R.isActive=function(){return!!this.B};
g.R.isComplete=function(){return g.O7(this)==4};
g.R.getStatus=function(){try{return g.O7(this)>2?this.B.status:-1}catch(Q){return-1}};
g.R.getResponseHeader=function(Q){if(this.B&&this.isComplete())return Q=this.B.getResponseHeader(Q),Q===null?void 0:Q};
g.R.getLastError=function(){return typeof this.N==="string"?this.N:String(this.N)};Wx.prototype.send=function(Q,W,x){W=W===void 0?function(){}:W;
x=x===void 0?function(){}:x;
AOO(Q.url,function(D){D=D.target;E7(D)?W(g.Fk(D)):x(D.getStatus())},Q.requestType,Q.body,Q.requestHeaders,Q.timeoutMillis,Q.withCredentials)};
Wx.prototype.NF=function(){return 1};D4.prototype.done=function(){this.logger.Nm(this.event,x7()-this.startTime)};
g.n(Kt,zR);g.n(jW,Kt);g.R=jW.prototype;g.R.l0=function(){};
g.R.g3=function(){};
g.R.Nm=function(){};
g.R.Av=function(){};
g.R.oe=function(){};
g.R.KF=function(Q,W,x){return x};
g.R.uC=function(){};
g.R.nB=function(){};
g.R.qA=function(){};
g.R.AQ=function(){};
g.n(MQ,Kt);g.R=MQ.prototype;g.R.update=function(Q){this.logger.dispose();this.logger=Q};
g.R.g3=function(Q){this.logger.g3(Q)};
g.R.Nm=function(Q,W){this.logger.Nm(Q,W)};
g.R.Av=function(Q){this.logger.Av(Q)};
g.R.oe=function(){this.logger.oe()};
g.R.KF=function(Q,W,x){return this.logger.KF(Q,W,x)};
g.R.uC=function(Q){this.logger.uC(Q)};
g.R.nB=function(Q){this.logger.nB(Q)};
g.R.qA=function(Q){this.logger.qA(Q)};
g.R.AQ=function(Q){this.logger.AQ(Q)};
g.R.RP=function(Q){this.logger instanceof SW&&this.logger.RP(Q)};
g.R.l0=function(Q){this.logger.l0(Q)};
g.n(Rk,g.N);g.n(w8,Kt);g.R=w8.prototype;g.R.RP=function(Q){this.iF=Q};
g.R.l0=function(Q){this.metrics.yAp.HM(Q,this.d5)};
g.R.g3=function(Q){this.metrics.eventCount.B(Q,this.d5)};
g.R.Nm=function(Q,W){this.metrics.tW.HM(W,Q,this.iF,this.d5)};
g.R.Av=function(Q){this.metrics.errorCount.B(Q,this.iF,this.d5)};
g.R.KF=function(Q,W,x){function D(M){if(!K.d7()){var w=x7()-l;K.metrics.N55.HM(w,Q,W,M,K.iF,K.d5)}}
var K=this,l=x7();x.then(function(){return void D(0)},function(M){return void D(M instanceof hr?M.code:-1)});
return x};
g.R.uC=function(Q){this.metrics.kKj.B(Q,this.iF,this.d5)};
g.R.nB=function(Q){this.metrics.sU.B(Q,this.iF,this.d5)};
g.R.qA=function(Q){this.metrics.KP3.B(Q,this.iF,this.d5)};
g.n(SW,w8);SW.prototype.AQ=function(Q){var W=this;this.B.dispose();this.U&&this.service.dispose();this.service=this.options.Eo("47",this.options.oX.concat(Q));this.B=new Rk(function(){return void W.service.KG()},this.options.bC);
this.metrics=Iw2(this.service);this.D=Q};
SW.prototype.oe=function(){NSO(this.B)};g.n(bz,mp);g.n(sO,mp);g.n(z2,mp);var OCO=ox(z2),g6n=function(Q){return TS(function(W){return W instanceof Q&&!((W.pn[q3]|0)&2)})}(z2);
z2.messageId="bfkj";g.n(Mk,mp);g.n(k7,mp);var yO5=ox(k7);g.n(ok,g.N);ok.prototype.snapshot=function(Q){if(this.d7())throw Error("Already disposed");this.logger.g3("n");var W=this.logger.share();return this.D.then(function(x){var D=x.j_;return new Promise(function(K){var l=new D4(W,"n");D(function(M){l.done();W.l0(M.length);W.oe();W.dispose();K(M)},[Q.Im,
Q.SP,Q.a8,Q.Zk])})})};
ok.prototype.xA=function(Q){var W=this;if(this.d7())throw Error("Already disposed");this.logger.g3("n");var x=lz(this.logger,function(){return W.N([Q.Im,Q.SP,Q.a8,Q.Zk])},"n");
this.logger.l0(x.length);this.logger.oe();return x};
ok.prototype.NT=function(Q){this.D.then(function(W){var x;(x=W.YQj)==null||x(Q)})};
ok.prototype.QJ=function(){return this.logger.share()};g.n(VS,mp);g.n(Px,mp);vx.prototype.ZQ=function(Q,W){return E6v(this,Q,W,new jW,0)};
vx.prototype.iz=function(Q){return Qwz(this,Q,new jW,0)};g.n(Ct,g.N);Ct.prototype.snapshot=function(Q){var W=this;return g.U(function(x){switch(x.B){case 1:if(W.d7())throw Error("Already disposed");if(W.U||W.G){x.kf(2);break}return g.A(x,W.L.promise,2);case 2:if(!W.U){x.kf(4);break}return g.A(x,W.U.snapshot(Q),5);case 5:return x.return(x.U);case 4:throw W.G;}})};
Ct.prototype.NT=function(Q){var W,x;(W=this.U)==null||(x=W.NT)==null||x.call(W,Q)};
Ct.prototype.handleError=function(Q){if(!this.d7()){this.G=Q;this.L.resolve();var W,x;(x=(W=this.options).jQ1)==null||x.call(W,Q)}};
Ct.prototype.QJ=function(){return this.logger.share()};
var DTQ={Baj:432E5,SW:3E5,qQ:10,Z8:1E4,qK:3E4,Ui3:3E4,b39:6E4,C4:1E3,Wn:6E4,Pn:6E5,hW:.25,iI:2,maxAttempts:10};var b55,swz=(b55=Math.imul)!=null?b55:function(Q,W){return Q*W|0},G2=[196,
200,224,18];d8.prototype.Rj=function(){return String(this.B)+","+this.U.join()};
d8.prototype.YN=function(Q,W){var x=void 0;if(this.U[this.B]!==Q){var D=this.U.indexOf(Q);D!==-1?(this.U.splice(D,1),D<this.B&&this.B--,this.U.splice(this.B,0,Q)):(x=this.U[this.B],this.U[this.B]=Q)}this.B=(this.B+1)%this.maxItems;Q=by5("iU5q-!O9@$",this.Rj());x&&Q&&W(x);return Q};var Cov={toString:function(Q){var W=[],x=0;Q-=-2147483648;W[x++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Q%52);for(Q=Math.floor(Q/52);Q>0;)W[x++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Q%62),Q=Math.floor(Q/62);return W.join("")}};var pOz;g.n(AG,g.N);AG.prototype.Bx=function(Q,W){var x=this.pK(Q);W==null||W(x);return lz(this.logger,function(){return g.Vn(x,2)},this.D)};
pOz=Symbol.dispose;g.n(qQ,AG);qQ.prototype.pK=function(Q,W){var x=this;this.logger.g3(this.B);++this.L>=this.X&&this.U.resolve();var D=Q();Q=lz(this.logger,function(){return x.N(D)},"C");
if(Q===void 0)throw new lC(17,"YNJ:Undefined");if(!(Q instanceof Uint8Array))throw new lC(18,"ODM:Invalid");W==null||W(Q);return Q};
g.n(Bx,AG);Bx.prototype.pK=function(){return this.N};
g.n(Ik,AG);Ik.prototype.pK=function(){var Q=this;return lz(this.logger,function(){return v1(Q.N)},"d")};
Ik.prototype.Bx=function(){return this.N};
g.n(mA,AG);mA.prototype.pK=function(){if(this.N)return this.N;this.N=hXl(this,function(Q){return"_"+Jgl(Q)});
return hXl(this,function(Q){return Q})};
g.n(cx,AG);cx.prototype.pK=function(Q){var W=Q();if(W.length>118)throw new lC(19,"DFO:Invalid");Q=Math.floor(Date.now()/1E3);var x=[Math.random()*255,Math.random()*255],D=x.concat([this.N&255,this.clientState],[Q>>24&255,Q>>16&255,Q>>8&255,Q&255]);Q=new Uint8Array(2+D.length+W.length);Q[0]=34;Q[1]=D.length+W.length;Q.set(D,2);Q.set(W,2+D.length);W=Q.subarray(2);for(D=x=x.length;D<W.length;++D)W[D]^=W[D%x];this.logger.uC(this.clientState);return Q};var UTl={po:3E4,F$j:2E4};g.n(g8,g.N);g8.prototype.VX=function(Q){if(!(Q>150))try{this.cache=new nH2(Q,this.logger)}catch(W){this.reportError(new lC(22,"GBJ:init",W))}};
g8.prototype.reportError=function(Q){this.logger.Av(Q.code);this.onError(Q);return Q};
g.n(Z4,g8);Z4.prototype.z_=function(){return this.N.promise};
Z4.prototype.pK=function(Q){return yS(this,Object.assign({},Q),!1)};
Z4.prototype.Bx=function(Q){return yS(this,Object.assign({},Q),!0)};
var qxD=function(Q){return TS(function(W){if(!wL(W))return!1;for(var x=g.V(Object.entries(Q)),D=x.next();!D.done;D=x.next()){var K=g.V(D.value);D=K.next().value;K=K.next().value;if(!(D in W)){if(K.vmf===!0)continue;return!1}if(!K(W[D]))return!1}return!0})}({RU:function(Q){return TS(function(W){return W instanceof Q})}(Ct)},"");g.n(r8,mp);var sqp=ox(r8);Ifn.prototype.getMetadata=function(){return this.metadata};T2.prototype.getMetadata=function(){return this.metadata};
T2.prototype.getStatus=function(){return this.status};OO.prototype.G=function(Q,W){W=W===void 0?{}:W;return new Ifn(Q,this,W)};
OO.prototype.getName=function(){return this.name};var zYe=new OO("/google.internal.waa.v1.Waa/Create",VS,r8,function(Q){return Q.Rj()},sqp);g.n(EO,mp);var tDO=new OO("/google.internal.waa.v1.Waa/GenerateIT",Px,EO,function(Q){return Q.Rj()},ox(EO));var sja=new Set(["SAPISIDHASH","APISIDHASH"]);g.n(FT,mp);FT.prototype.getValue=function(){var Q=Na(this,2);if(Array.isArray(Q)||Q instanceof mp)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Or(this,2)};g.n(tG,mp);tG.prototype.getMessage=function(){return Xt(this,2)};
var eX5=ox(tG);QU.prototype.FA=function(Q,W){Q=="data"?this.D.push(W):Q=="metadata"?this.L.push(W):Q=="status"?this.X.push(W):Q=="end"?this.N.push(W):Q=="error"&&this.U.push(W);return this};
QU.prototype.removeListener=function(Q,W){Q=="data"?lT(this.D,W):Q=="metadata"?lT(this.L,W):Q=="status"?lT(this.X,W):Q=="end"?lT(this.N,W):Q=="error"&&lT(this.U,W);return this};
QU.prototype.cancel=function(){this.B.abort()};
QU.prototype.cancel=QU.prototype.cancel;QU.prototype.removeListener=QU.prototype.removeListener;QU.prototype.on=QU.prototype.FA;g.n(NpF,Error);g.Wu(g.jr,P0s);g.jr.prototype.B=function(){var Q=new MM(this.N,this.D);this.U&&Q.setCredentialsMode(this.U);return Q};
g.jr.prototype.setCredentialsMode=function(Q){this.U=Q};
g.Wu(MM,g.FN);g.R=MM.prototype;g.R.open=function(Q,W){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.uj=Q;this.T=W;this.readyState=1;RH(this)};
g.R.send=function(Q){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.B=!0;var W={headers:this.S,method:this.uj,credentials:this.L,cache:void 0};Q&&(W.body=Q);(this.pS||g.Nz).fetch(new Request(this.T,W)).then(this.XtZ.bind(this),this.LB.bind(this))};
g.R.abort=function(){this.response=this.responseText="";this.S=new Headers;this.status=0;this.D&&this.D.cancel("Request was aborted.").catch(function(){});
this.readyState>=1&&this.B&&this.readyState!=4&&(this.B=!1,wB(this));this.readyState=0};
g.R.XtZ=function(Q){if(this.B&&(this.N=Q,this.U||(this.status=this.N.status,this.statusText=this.N.statusText,this.U=Q.headers,this.readyState=2,RH(this)),this.B&&(this.readyState=3,RH(this),this.B)))if(this.responseType==="arraybuffer")Q.arrayBuffer().then(this.Jf1.bind(this),this.LB.bind(this));else if(typeof g.Nz.ReadableStream!=="undefined"&&"body"in Q){this.D=Q.body.getReader();if(this.X){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');
this.response=[]}else this.response=this.responseText="",this.G=new TextDecoder;ffn(this)}else Q.text().then(this.cf5.bind(this),this.LB.bind(this))};
g.R.mjS=function(Q){if(this.B){if(this.X&&Q.value)this.response.push(Q.value);else if(!this.X){var W=Q.value?Q.value:new Uint8Array(0);if(W=this.G.decode(W,{stream:!Q.done}))this.response=this.responseText+=W}Q.done?wB(this):RH(this);this.readyState==3&&ffn(this)}};
g.R.cf5=function(Q){this.B&&(this.response=this.responseText=Q,wB(this))};
g.R.Jf1=function(Q){this.B&&(this.response=Q,wB(this))};
g.R.LB=function(){this.B&&wB(this)};
g.R.setRequestHeader=function(Q,W){this.S.append(Q,W)};
g.R.getResponseHeader=function(Q){return this.U?this.U.get(Q.toLowerCase())||"":""};
g.R.getAllResponseHeaders=function(){if(!this.U)return"";for(var Q=[],W=this.U.entries(),x=W.next();!x.done;)x=x.value,Q.push(x[0]+": "+x[1]),x=W.next();return Q.join("\r\n")};
g.R.setCredentialsMode=function(Q){this.L=Q};
Object.defineProperty(MM.prototype,"withCredentials",{get:function(){return this.L==="include"},
set:function(Q){this.setCredentialsMode(Q?"include":"same-origin")}});g.Sr.prototype.toString=function(){var Q=[],W=this.L;W&&Q.push(uT(W,kRJ,!0),":");var x=this.B;if(x||W=="file")Q.push("//"),(W=this.S)&&Q.push(uT(W,kRJ,!0),"@"),Q.push(g.OE(x).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),x=this.D,x!=null&&Q.push(":",String(x));if(x=this.U)this.B&&x.charAt(0)!="/"&&Q.push("/"),Q.push(uT(x,x.charAt(0)=="/"?XuA:oFu,!0));(x=this.N.toString())&&Q.push("?",x);(x=this.X)&&Q.push("#",uT(x,uHY));return Q.join("")};
g.Sr.prototype.resolve=function(Q){var W=this.clone(),x=!!Q.L;x?g.bT(W,Q.L):x=!!Q.S;x?W.S=Q.S:x=!!Q.B;x?g.s1(W,Q.B):x=Q.D!=null;var D=Q.U;if(x)g.zY(W,Q.D);else if(x=!!Q.U){if(D.charAt(0)!="/")if(this.B&&!this.U)D="/"+D;else{var K=W.U.lastIndexOf("/");K!=-1&&(D=W.U.slice(0,K+1)+D)}K=D;if(K==".."||K==".")D="";else if(g.he(K,"./")||g.he(K,"/.")){D=Je(K,"/");K=K.split("/");for(var l=[],M=0;M<K.length;){var w=K[M++];w=="."?D&&M==K.length&&l.push(""):w==".."?((l.length>1||l.length==1&&l[0]!="")&&l.pop(),
D&&M==K.length&&l.push("")):(l.push(w),D=!0)}D=l.join("/")}else D=K}x?W.U=D:x=Q.N.toString()!=="";x?kl(W,Q.N.clone()):x=!!Q.X;x&&(W.X=Q.X);return W};
g.Sr.prototype.clone=function(){return new g.Sr(this)};
var kRJ=/[#\/\?@]/g,oFu=/[#\?:]/g,XuA=/[#\?]/g,LX4=/[#\?@]/g,uHY=/#/g;g.R=oH.prototype;g.R.add=function(Q,W){VU(this);this.D=null;Q=P0(this,Q);var x=this.B.get(Q);x||this.B.set(Q,x=[]);x.push(W);this.U=this.U+1;return this};
g.R.remove=function(Q){VU(this);Q=P0(this,Q);return this.B.has(Q)?(this.D=null,this.U=this.U-this.B.get(Q).length,this.B.delete(Q)):!1};
g.R.clear=function(){this.B=this.D=null;this.U=0};
g.R.isEmpty=function(){VU(this);return this.U==0};
g.R.forEach=function(Q,W){VU(this);this.B.forEach(function(x,D){x.forEach(function(K){Q.call(W,K,D,this)},this)},this)};
g.R.v8=function(){VU(this);for(var Q=Array.from(this.B.values()),W=Array.from(this.B.keys()),x=[],D=0;D<W.length;D++)for(var K=Q[D],l=0;l<K.length;l++)x.push(W[D]);return x};
g.R.dY=function(Q){VU(this);var W=[];if(typeof Q==="string")Tph(this,Q)&&(W=W.concat(this.B.get(P0(this,Q))));else{Q=Array.from(this.B.values());for(var x=0;x<Q.length;x++)W=W.concat(Q[x])}return W};
g.R.set=function(Q,W){VU(this);this.D=null;Q=P0(this,Q);Tph(this,Q)&&(this.U=this.U-this.B.get(Q).length);this.B.set(Q,[W]);this.U=this.U+1;return this};
g.R.get=function(Q,W){if(!Q)return W;Q=this.dY(Q);return Q.length>0?String(Q[0]):W};
g.R.toString=function(){if(this.D)return this.D;if(!this.B)return"";for(var Q=[],W=Array.from(this.B.keys()),x=0;x<W.length;x++){var D=W[x],K=g.OE(D);D=this.dY(D);for(var l=0;l<D.length;l++){var M=K;D[l]!==""&&(M+="="+g.OE(D[l]));Q.push(M)}}return this.D=Q.join("&")};
g.R.clone=function(){var Q=new oH;Q.D=this.D;this.B&&(Q.B=new Map(this.B),Q.U=this.U);return Q};g.Wu(g.C4,g.N);var YsY=[];g.R=g.C4.prototype;g.R.listen=function(Q,W,x,D){Array.isArray(W)||(W&&(YsY[0]=W.toString()),W=YsY);for(var K=0;K<W.length;K++){var l=g.gp(Q,W[K],x||this.handleEvent,D||!1,this.U||this);if(!l)break;this.B[l.key]=l}return this};
g.R.Jt=function(Q,W,x,D){return FXQ(this,Q,W,x,D)};
g.R.mJ=function(Q,W,x,D,K){if(Array.isArray(W))for(var l=0;l<W.length;l++)this.mJ(Q,W[l],x,D,K);else x=x||this.handleEvent,D=g.r4(D)?!!D.capture:!!D,K=K||this.U||this,x=yz(x),D=!!D,W=BO(Q)?Q.cC(W,x,D,K):Q?(Q=Ly(Q))?Q.cC(W,x,D,K):null:null,W&&(TW(W),delete this.B[W.key])};
g.R.removeAll=function(){g.nC(this.B,function(Q,W){this.B.hasOwnProperty(W)&&TW(Q)},this);
this.B={}};
g.R.U3=function(){g.C4.t2.U3.call(this);this.removeAll()};
g.R.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};thO.prototype.isInputValid=function(){return this.D};JF.prototype.isInputValid=function(){return this.B!=3};
JF.prototype.ZJ=function(){return this.X};
JF.prototype.Yo=function(){return!0};
JF.prototype.parse=function(Q){function W(S){S&128&&p4(l,M,w,"invalid tag");(S&7)!=2&&p4(l,M,w,"invalid wire type");l.D=S>>>3;l.D!=1&&l.D!=2&&l.D!=15&&p4(l,M,w,"unexpected tag");l.B=1;l.U=0;l.N=0}
function x(S){l.N++;l.N==5&&S&240&&p4(l,M,w,"message length too long");l.U|=(S&127)<<(l.N-1)*7;S&128||(l.B=2,l.S=0,typeof Uint8Array!=="undefined"?l.L=new Uint8Array(l.U):l.L=Array(l.U),l.U==0&&K())}
function D(S){l.L[l.S++]=S;l.S==l.U&&K()}
function K(){if(l.D<15){var S={};S[l.D]=l.L;l.G.push(S)}l.B=0}
for(var l=this,M=Q instanceof Array?Q:new Uint8Array(Q),w=0;w<M.length;){switch(l.B){case 3:p4(l,M,w,"stream already broken");break;case 0:W(M[w]);break;case 1:x(M[w]);break;case 2:D(M[w]);break;default:throw Error("unexpected parser state: "+l.B);}l.T++;w++}Q=l.G;l.G=[];return Q.length>0?Q:null};hF.prototype.isInputValid=function(){return this.B===null};
hF.prototype.ZJ=function(){return this.B};
hF.prototype.Yo=function(){return!1};
hF.prototype.parse=function(Q){this.B!==null&&Wdv(this,Q,"stream already broken");var W=null;try{var x=this.D;x.D||Qj5(x,Q,"stream already broken");x.B+=Q;var D=Math.floor(x.B.length/4);if(D==0)var K=null;else{try{var l=zYv(x.B.slice(0,D*4))}catch(M){Qj5(x,x.B,M.message)}x.U+=D*4;x.B=x.B.slice(D*4);K=l}W=K===null?null:this.N.parse(K)}catch(M){Wdv(this,Q,M.message)}this.U+=Q.length;return W};var nFJ={INIT:0,AJ:1,ai:2,p9:3,Oo:4,HU:5,STRING:6,tT:7,Lb:8,HJ:9,OD:10,iE:11,Vw:12,Zz:13,TJ:14,xq:15,oG:16,Gr:17,Yz:18,ZN:19,SN:20};g.R=GY.prototype;g.R.isInputValid=function(){return this.L!=3};
g.R.ZJ=function(){return this.T};
g.R.done=function(){return this.L===2};
g.R.Yo=function(){return!1};
g.R.parse=function(Q){function W(){for(;X<Q.length;)if(aH(Q[X]))X++,l.D++;else break;return X<b}
function x(){for(var Y;;){Y=Q[X++];if(!Y)break;l.D++;switch(l.B){case S.INIT:Y==="{"?l.B=S.ai:Y==="["?l.B=S.Oo:aH(Y)||dB(l,Q,X);continue;case S.tT:case S.ai:if(aH(Y))continue;if(l.B===S.tT)M.push(S.Lb);else if(Y==="}"){K("{}");l.B=D();continue}else M.push(S.p9);Y==='"'?l.B=S.STRING:dB(l,Q,X);continue;case S.Lb:case S.p9:if(aH(Y))continue;Y===":"?(l.B===S.p9&&(M.push(S.p9),l.U++),l.B=S.AJ):Y==="}"?(l.U--,K(),l.B=D()):Y===","?(l.B===S.p9&&M.push(S.p9),l.B=S.tT):dB(l,Q,X);continue;case S.Oo:case S.AJ:if(aH(Y))continue;
if(l.B===S.Oo)if(l.U++,l.B=S.AJ,Y==="]"){l.U--;if(l.U===0){l.B=S.HU;return}K("[]");l.B=D();continue}else M.push(S.HU);Y==='"'?l.B=S.STRING:Y==="{"?l.B=S.ai:Y==="["?l.B=S.Oo:Y==="t"?l.B=S.HJ:Y==="f"?l.B=S.Vw:Y==="n"?l.B=S.oG:Y!=="-"&&("0123456789".indexOf(Y)!==-1?l.B=S.SN:dB(l,Q,X));continue;case S.HU:if(Y===",")M.push(S.HU),l.B=S.AJ,l.U===1&&(k=X);else if(Y==="]"){l.U--;if(l.U===0)return;K();l.B=D()}else if(aH(Y))continue;else dB(l,Q,X);continue;case S.STRING:var v=X;a:for(;;){for(;l.S>0;)if(Y=Q[X++],
l.S===4?l.S=0:l.S++,!Y)break a;if(Y==='"'&&!l.G){l.B=D();break}if(Y==="\\"&&!l.G&&(l.G=!0,Y=Q[X++],!Y))break;if(l.G)if(l.G=!1,Y==="u"&&(l.S=1),Y=Q[X++])continue;else break;w.lastIndex=X;Y=w.exec(Q);if(!Y){X=Q.length+1;break}X=Y.index+1;Y=Q[Y.index];if(!Y)break}l.D+=X-v;continue;case S.HJ:if(!Y)continue;Y==="r"?l.B=S.OD:dB(l,Q,X);continue;case S.OD:if(!Y)continue;Y==="u"?l.B=S.iE:dB(l,Q,X);continue;case S.iE:if(!Y)continue;Y==="e"?l.B=D():dB(l,Q,X);continue;case S.Vw:if(!Y)continue;Y==="a"?l.B=S.Zz:
dB(l,Q,X);continue;case S.Zz:if(!Y)continue;Y==="l"?l.B=S.TJ:dB(l,Q,X);continue;case S.TJ:if(!Y)continue;Y==="s"?l.B=S.xq:dB(l,Q,X);continue;case S.xq:if(!Y)continue;Y==="e"?l.B=D():dB(l,Q,X);continue;case S.oG:if(!Y)continue;Y==="u"?l.B=S.Gr:dB(l,Q,X);continue;case S.Gr:if(!Y)continue;Y==="l"?l.B=S.Yz:dB(l,Q,X);continue;case S.Yz:if(!Y)continue;Y==="l"?l.B=D():dB(l,Q,X);continue;case S.ZN:Y==="."?l.B=S.SN:dB(l,Q,X);continue;case S.SN:if("0123456789.eE+-".indexOf(Y)!==-1)continue;else X--,l.D--,l.B=
D();continue;default:dB(l,Q,X)}}}
function D(){var Y=M.pop();return Y!=null?Y:S.AJ}
function K(Y){l.U>1||(Y||(Y=k===-1?l.N+Q.substring(z,X):Q.substring(k,X)),l.uj?l.X.push(Y):l.X.push(JSON.parse(Y)),k=X)}
for(var l=this,M=l.pS,w=l.F3,S=nFJ,b=Q.length,z=0,k=-1,X=0;X<b;)switch(l.L){case 3:return dB(l,Q,X),null;case 2:return W()&&dB(l,Q,X),null;case 0:if(W()){var u=Q[X++];l.D++;if(u==="["){l.L=1;z=X;l.B=S.Oo;continue}else dB(l,Q,X)}return null;case 1:return x(),l.U===0&&l.B==S.HU?(l.L=2,l.N=Q.substring(X)):l.N=k===-1?l.N+Q.substring(z):Q.substring(k),l.X.length>0?(u=l.X,l.X=[],u):null}return null};iT.prototype.isInputValid=function(){return this.L===null};
iT.prototype.ZJ=function(){return this.L};
iT.prototype.Yo=function(){return!1};
iT.prototype.parse=function(Q){function W(S){l.U=6;l.L="The stream is broken @"+l.B+"/"+M+". Error: "+S+". With input:\n";throw Error(l.L);}
function x(){l.D=new GY({XFS:!0,cn:!0})}
function D(S){if(S)for(var b=0;b<S.length;b++){var z={};z[1]=S[b];l.N.push(z)}}
function K(S){if(S){(l.X||S.length>1)&&W("extra status: "+S);l.X=!0;var b={};b[2]=S[0];l.N.push(b)}}
for(var l=this,M=0;M<Q.length;){var w;if(w=l.U!==2){a:{for(;M<Q.length;){if(!aH(Q[M])){w=!0;break a}M++;l.B++}w=!1}w=!w}if(w)return null;switch(l.U){case 6:W("stream already broken");break;case 0:Q[M]==="["?(l.U=1,M++,l.B++):W("unexpected input token");break;case 1:Q[M]==="["?(l.U=2,x()):Q[M]===","||Q.slice(M,M+5)=="null,"?l.U=3:Q[M]==="]"?(l.U=5,M++,l.B++):W("unexpected input token");break;case 2:w=l.D.parse(Q.substring(M));D(w);l.D.done()?(l.U=3,w=l.D.N,l.B+=Q.length-M-w.length,Q=w,M=0):(l.B+=Q.length-
M,M=Q.length);break;case 3:Q[M]===","||Q.slice(M,M+5)=="null,"?(l.U=4,x(),l.D.parse("["),M+=Q[M]===","?1:5,l.B++):Q[M]==="]"&&(l.U=5,M++,l.B++);break;case 4:w=l.D.parse(Q.substring(M));K(w);l.D.done()?(l.U=5,w=l.D.N,l.B+=Q.length-M-w.length,Q=w,M=0):(l.B+=Q.length-M,M=Q.length);break;case 5:W("extra input after stream end")}}return l.N.length>0?(Q=l.N,l.N=[],Q):null};AF.prototype.s1=function(){return this.B};
AF.prototype.getStatus=function(){return this.L};
AF.prototype.uj=function(Q){Q=Q.target;try{if(Q==this.B)a:{var W=g.O7(this.B),x=this.B.U,D=this.B.getStatus(),K=g.Fk(this.B);Q=[];if(g.tr(this.B)instanceof Array){var l=g.tr(this.B);l.length>0&&l[0]instanceof Uint8Array&&(this.T=!0,Q=l)}if(!(W<3||W==3&&!K&&Q.length==0))if(D=D==200||D==206,W==4&&(x==8?H0(this,7):x==7?H0(this,8):D||H0(this,3)),this.U||(this.U=xUF(this.B),this.U==null&&H0(this,5)),this.L>2)IH(this);else{if(Q.length>this.D){var M=Q.length;x=[];try{if(this.U.Yo())for(var w=0;w<M;w++){var S=
this.U.parse(Array.from(Q[w]));S&&(x=x.concat(S))}else{S="";if(!this.X){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.X=new TextDecoder}for(w=0;w<M;w++)S+=this.X.decode(Q[w],{stream:W==4&&w==M-1});x=this.U.parse(S)}Q.splice(0,M);x&&this.N(x)}catch(z){H0(this,5);IH(this);break a}}else if(K.length>this.D){w=K.slice(this.D);this.D=K.length;try{var b=this.U.parse(w);b!=null&&this.N&&this.N(b)}catch(z){H0(this,5);IH(this);break a}}W==4?(K.length!=
0||this.T?H0(this,2):H0(this,4),IH(this)):H0(this,1)}}}catch(z){H0(this,6),IH(this)}};g.R=DUv.prototype;g.R.FA=function(Q,W){var x=this.U[Q];x||(x=[],this.U[Q]=x);x.push(W);return this};
g.R.addListener=function(Q,W){this.FA(Q,W);return this};
g.R.removeListener=function(Q,W){var x=this.U[Q];x&&g.Qn(x,W);(Q=this.B[Q])&&g.Qn(Q,W);return this};
g.R.once=function(Q,W){var x=this.B[Q];x||(x=[],this.B[Q]=x);x.push(W);return this};
g.R.QQf=function(Q){var W=this.U.data;W&&KdQ(Q,W);(W=this.B.data)&&KdQ(Q,W);this.B.data=[]};
g.R.pZ3=function(){switch(this.D.getStatus()){case 1:m6(this,"readable");break;case 5:case 6:case 4:case 7:case 3:m6(this,"error");break;case 8:m6(this,"close");break;case 2:m6(this,"end")}};lrQ.prototype.serverStreaming=function(Q,W,x,D){var K=this,l=Q.substring(0,Q.length-D.name.length);return jj2(function(M){var w=M.qM,S=M.getMetadata(),b=w_O(K,!1);S=S7F(K,S,b,l+w.getName());var z=brO(b,w.U,!0);M=w.B(M.hP);b.send(S,"POST",M);return z},this.N).call(this,D.G(W,x))};zVz.prototype.create=function(Q,W){return F_n(this.B,this.U+"/$rpc/google.internal.waa.v1.Waa/Create",Q,W||{},zYe)};var Vpq=1,L4=new WeakMap;g.n(NM,g.N);NM.prototype.signal=function(){var Q=new gB(!1);this.signals.add(Q);g.y(this,Q);return Q};
NM.prototype.Po=function(Q){return c0(this,Q).Po()};
g.n(gB,g.N);g.R=gB.prototype;g.R.N$=function(){var Q=this,W=Vpq++;yU(function(){kDz(Q,W)});
return W};
g.R.detach=function(Q){var W=this;yU(function(){var x=W.slots.get(Q);x&&x.py()})};
g.R.value=function(Q){return this.promise(!0,Q)};
g.R.Po=function(){return this.gR};
g.R.next=function(Q){return this.promise(!1,Q)};
g.R.promise=function(Q,W){var x=this,D=xZF();yU(function(){if(x.d7())D.reject(new P_("Signal initially disposed"));else if(W&&W.d7())D.reject(new P_("Owner initially disposed"));else if(Q&&x.GW&&x.eg)D.resolve(x.gR);else if(x.TU.add(D),g.Va(D.promise,function(){x.TU.delete(D)}),W){var K=function(){D.reject(new P_("Owner asynchronously disposed"))};
g.Va(D.promise,function(){var l=L4.get(W);l&&g.Qn(l,K)});
ukD(W,K)}});
return D.promise};
g.R.U3=function(){var Q=this;g.N.prototype.U3.call(this);yU(function(){for(var W=g.V(Q.slots.values()),x=W.next();!x.done;x=W.next())x=x.value.py,x();Q.slots.clear();W=g.V(Q.TU);for(x=W.next();!x.done;x=W.next())x.value.reject(new P_("Signal asynchronously disposed"));Q.TU.clear()})};
var f4=[],ZF=!1;g.n(rB,g.N);rB.prototype.start=function(){var Q=this;if(this.d7())throw new O1("Cannot start a disposed timer.");if(!this.X){this.N=0;if(this.G){var W=Date.now();this.handle=setInterval(function(){Q.N=Q.milliseconds>0?Math.trunc((Date.now()-W)/Q.milliseconds):Q.N+1;var x;(x=Q.U)==null||x.resolve();Q.U=void 0;if(Q.D){var D;(D=Q.B)!=null&&er(c0(D,Q.D),Q)}Q.uN.Ft(Q)},this.milliseconds)}else this.handle=setTimeout(function(){Q.state=3;
Q.handle=void 0;Q.N=1;var x;(x=Q.U)==null||x.resolve();Q.U=void 0;if(Q.D){var D;(D=Q.B)!=null&&er(c0(D,Q.D),Q)}Q.uN.Ft(Q)},this.milliseconds);
this.state=1}};
rB.prototype.cancel=function(){if(this.X){this.clear();this.state=2;var Q;(Q=this.U)==null||Q.reject(new TY);var W;(W=this.uN.Xd)==null||W.call(this);if(this.L){var x;(x=this.B)!=null&&er(c0(x,this.L))}}};
rB.prototype.U3=function(){this.clear();var Q;(Q=this.U)==null||Q.reject(new O1);this.state=4;g.N.prototype.U3.call(this)};
rB.prototype.clear=function(){this.G?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
g.R1.Object.defineProperties(rB.prototype,{X:{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.N}},
S:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.U!=null||(this.U=new g.XT),this.U.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new TY("Timer has been cancelled."));case 4:return Promise.reject(new O1("Timer has been disposed."));default:Ma(this.state)}}},
Ft:{configurable:!0,enumerable:!0,get:function(){if(this.d7())throw new O1("Cannot attach a signal to a disposed timer.");this.D||(this.B!=null||(this.B=new NM(this)),this.D=this.B.signal());return this.D}},
Xd:{configurable:!0,enumerable:!0,get:function(){if(this.d7())throw new O1("Cannot attach a signal to a disposed timer.");this.L||(this.B!=null||(this.B=new NM(this)),this.L=this.B.signal());return this.L}}});
g.n(TY,n5);g.n(O1,n5);g.n(E1,g8);g.R=E1.prototype;g.R.isReady=function(){return!!this.B};
g.R.ready=function(){var Q=this;return g.U(function(W){return g.A(W,Q.D.promise,0)})};
g.R.ZQ=function(Q){return Voa(this,this.logger.KF("c",Q===void 0?1:Q,this.kR.ZQ(Y7().B,null)),new lC(10,"JVZ:Timeout"))};
g.R.prefetch=function(){this.state===1&&(this.iH=this.ZQ())};
g.R.start=function(){if(this.state===1){this.state=2;var Q=new D4(this.logger,"r");this.ready().finally(function(){return void Q.done()});
vXF(this)}};
g.R.pK=function(Q){Cih(this,Q);return yS(this,nX1(Q),!1)};
g.R.Bx=function(Q){Cih(this,Q);return yS(this,nX1(Q),!0)};var ar2={NONE:0,Dq5:1},MWl={Lp:0,kNj:1,Kuj:2,f5j:3},q2={pp:"a",Bnf:"d",VIDEO:"v"};tF.prototype.isVisible=function(){return this.PR?this.l6>=.3:this.l6>=.5};var wu={CFt:0,GHS:1},l4F={NONE:0,Qh3:1,MHt:2};Q5.prototype.getValue=function(){return this.U};
g.n(WC,Q5);WC.prototype.D=function(Q){this.U===null&&g.aZ(this.N,Q)&&(this.U=Q)};
g.n(xG,Q5);xG.prototype.D=function(Q){this.U===null&&typeof Q==="number"&&(this.U=Q)};
g.n(Dm,Q5);Dm.prototype.D=function(Q){this.U===null&&typeof Q==="string"&&(this.U=Q)};Km.prototype.disable=function(){this.U=!1};
Km.prototype.enable=function(){this.U=!0};
Km.prototype.isEnabled=function(){return this.U};
Km.prototype.reset=function(){this.B={};this.U=!0;this.D={}};var AP=document,zk=window;var w0h=!g.kR&&!yA();Su.prototype.now=function(){return 0};
Su.prototype.U=function(){return 0};
Su.prototype.D=function(){return 0};
Su.prototype.B=function(){return 0};g.n(sW,Su);sW.prototype.now=function(){return bR()&&zk.performance.now?zk.performance.now():Su.prototype.now.call(this)};
sW.prototype.U=function(){return bR()&&zk.performance.memory?zk.performance.memory.totalJSHeapSize||0:Su.prototype.U.call(this)};
sW.prototype.D=function(){return bR()&&zk.performance.memory?zk.performance.memory.usedJSHeapSize||0:Su.prototype.D.call(this)};
sW.prototype.B=function(){return bR()&&zk.performance.memory?zk.performance.memory.jsHeapSizeLimit||0:Su.prototype.B.call(this)};var irn=s7(function(){var Q=!1;try{var W=Object.defineProperty({},"passive",{get:function(){Q=!0}});
g.Nz.addEventListener("test",null,W)}catch(x){}return Q});Arh.prototype.isVisible=function(){return oX(AP)===1};var UUh={GKS:"allow-forms",rv3:"allow-modals",Ys9:"allow-orientation-lock",etf:"allow-pointer-lock",ztj:"allow-popups",wKj:"allow-popups-to-escape-sandbox",ML1:"allow-presentation",Rt3:"allow-same-origin",IE9:"allow-scripts",HAS:"allow-top-navigation",OAj:"allow-top-navigation-by-user-activation"},Irh=s7(function(){return q7h()});var gXn=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");PC.prototype.cV=function(Q,W,x){Q=Q+"//"+W+x;var D=Zra(this)-x.length;if(D<0)return"";this.B.sort(function(b,z){return b-z});
x=null;W="";for(var K=0;K<this.B.length;K++)for(var l=this.B[K],M=this.U[l],w=0;w<M.length;w++){if(!D){x=x==null?l:x;break}var S=fr1(M[w],this.D,",$");if(S){S=W+S;if(D>=S.length){D-=S.length;Q+=S;W=this.D;break}x=x==null?l:x}}D="";x!=null&&(D=""+W+"trn="+x);return Q+D};du.prototype.setInterval=function(Q,W){return zk.setInterval(Q,W)};
du.prototype.clearInterval=function(Q){zk.clearInterval(Q)};
du.prototype.setTimeout=function(Q,W){return zk.setTimeout(Q,W)};
du.prototype.clearTimeout=function(Q){zk.clearTimeout(Q)};g.n(A8,mp);A8.prototype.B=RZD([0,mzR,gQs,-2,f5C]);var jkD={afS:1,Fg:2,kc3:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};Rnv.prototype.I_=function(Q){if(typeof Q==="string"&&Q.length!=0){var W=this.DX;if(W.U){Q=Q.split("&");for(var x=Q.length-1;x>=0;x--){var D=Q[x].split("="),K=decodeURIComponent(D[0]);D.length>1?(D=decodeURIComponent(D[1]),D=/^[0-9]+$/g.exec(D)?parseInt(D,10):D):D=1;(K=W.B[K])&&K.D(D)}}}};var lE=null;var IX=g.Nz.performance,PCF=!!(IX&&IX.mark&&IX.measure&&IX.clearMarks),BC=s7(function(){var Q;if(Q=PCF){var W=W===void 0?window:W;if(lE===null){lE="";try{Q="";try{Q=W.top.location.hash}catch(D){Q=W.location.hash}if(Q){var x=Q.match(/\bdeid=([\d,]+)/);lE=x?x[1]:""}}catch(D){}}W=lE;Q=!!W.indexOf&&W.indexOf("1337")>=0}return Q});
$G.prototype.disable=function(){this.B=!1;this.events!==this.U.google_js_reporting_queue&&(BC()&&g.o3(this.events,k2l),this.events.length=0)};
$G.prototype.start=function(Q,W){if(!this.B)return null;var x=skl()||bta();Q=new zns(Q,W,x);W="goog_"+Q.label+"_"+Q.uniqueId+"_start";IX&&BC()&&IX.mark(W);return Q};
$G.prototype.end=function(Q){if(this.B&&typeof Q.value==="number"){var W=skl()||bta();Q.duration=W-Q.value;W="goog_"+Q.label+"_"+Q.uniqueId+"_end";IX&&BC()&&IX.mark(W);!this.B||this.events.length>2048||this.events.push(Q)}};Xxs.prototype.Sj=function(Q,W,x,D,K){K=K||this.XW;try{var l=new PC;l.B.push(1);l.U[1]=vC("context",Q);W.error&&W.meta&&W.id||(W=new gu(y5(W)));if(W.msg){var M=W.msg.substring(0,512);l.B.push(2);l.U[2]=vC("msg",M)}var w=W.meta||{};if(this.mI)try{this.mI(w)}catch(u){}if(D)try{D(w)}catch(u){}D=[w];l.B.push(3);l.U[3]=D;var S=eVn();if(S.U){var b=S.U.url||"";l.B.push(4);l.U[4]=vC("top",b)}var z={url:S.B.url||""};if(S.B.url){var k=S.B.url.match(qU);var X=ii(k[1],null,k[3],k[4])}else X="";b=[z,{url:X}];l.B.push(5);
l.U[5]=b;wx5(this.B,K,l,x)}catch(u){try{wx5(this.B,K,{context:"ecmserr",rctx:Q,msg:y5(u),url:S&&S.B.url},x)}catch(Y){}}return this.aP};
g.n(gu,SOQ);var N2,cC,mn=new $G;N2=new function(){var Q="https:";zk&&zk.location&&zk.location.protocol==="http:"&&(Q="http:");this.U=Q;this.B=.01};
cC=new Xxs;zk&&zk.document&&(zk.document.readyState=="complete"?uTv():mn.B&&Xn(zk,"load",function(){uTv()}));var VW2=Date.now(),OW=-1,ru=-1,IFl,EW=-1,Tk=!1;g.R=Fn.prototype;g.R.getHeight=function(){return this.bottom-this.top};
g.R.clone=function(){return new Fn(this.top,this.right,this.bottom,this.left)};
g.R.contains=function(Q){return this&&Q?Q instanceof Fn?Q.left>=this.left&&Q.right<=this.right&&Q.top>=this.top&&Q.bottom<=this.bottom:Q.x>=this.left&&Q.x<=this.right&&Q.y>=this.top&&Q.y<=this.bottom:!1};
g.R.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.R.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.R.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.R.scale=function(Q,W){W=typeof W==="number"?W:Q;this.left*=Q;this.right*=Q;this.top*=W;this.bottom*=W;return this};xg.prototype.yI=function(Q,W){return!!Q&&(!(W===void 0?0:W)||this.volume==Q.volume)&&this.D==Q.D&&QM(this.B,Q.B)&&!0};Di.prototype.yh=function(){return this.G};
Di.prototype.yI=function(Q,W){return this.N.yI(Q.N,W===void 0?!1:W)&&this.G==Q.G&&QM(this.D,Q.D)&&QM(this.X,Q.X)&&this.B==Q.B&&this.L==Q.L&&this.U==Q.U&&this.S==Q.S};var vFY={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},pZ={u1:"start",oN:"firstquartile",Sq:"midpoint",p5:"thirdquartile",COMPLETE:"complete",ERROR:"error",hg:"metric",PAUSE:"pause",nW:"resume",b1:"skip",yF:"viewable_impression",V2:"mute",UU:"unmute",GI:"fullscreen",g$:"exitfullscreen",fp:"bufferstart",kO:"bufferfinish",r$:"fully_viewable_audible_half_duration_impression",Ag:"measurable_impression",qJ:"abandon",vS:"engagedview",w$:"impression",XI:"creativeview",Pu:"loaded",
nRS:"progress",CLOSE:"close",ILj:"collapse",wLZ:"overlay_resize",MDj:"overlay_unmeasurable_impression",RUf:"overlay_unviewable_impression",Hvp:"overlay_viewable_immediate_impression",IfZ:"overlay_viewable_end_of_session_impression",lJ:"custom_metric_viewable",BS:"audio_audible",FI:"audio_measurable",UL:"audio_impression"},Tu5="start firstquartile midpoint thirdquartile resume loaded".split(" "),OmQ=["start","firstquartile","midpoint","thirdquartile"],NBD=["abandon"],LZ={UNKNOWN:-1,u1:0,oN:1,Sq:2,
p5:3,COMPLETE:4,hg:5,PAUSE:6,nW:7,b1:8,yF:9,V2:10,UU:11,GI:12,g$:13,r$:14,Ag:15,qJ:16,vS:17,w$:18,XI:19,Pu:20,lJ:21,fp:22,kO:23,UL:27,FI:28,BS:29};var v7n={XKf:"addEventListener",IV3:"getMaxSize",HtZ:"getScreenSize",Otj:"getState",itj:"getVersion",y83:"removeEventListener",ISf:"isViewable"};g.R=g.lq.prototype;g.R.clone=function(){return new g.lq(this.left,this.top,this.width,this.height)};
g.R.contains=function(Q){return Q instanceof g.k6?Q.x>=this.left&&Q.x<=this.left+this.width&&Q.y>=this.top&&Q.y<=this.top+this.height:this.left<=Q.left&&this.left+this.width>=Q.left+Q.width&&this.top<=Q.top&&this.top+this.height>=Q.top+Q.height};
g.R.getSize=function(){return new g.oZ(this.width,this.height)};
g.R.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.R.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.R.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.R.scale=function(Q,W){W=typeof W==="number"?W:Q;this.left*=Q;this.width*=Q;this.top*=W;this.height*=W;return this};var hnn={};B8z.prototype.update=function(Q){Q&&Q.document&&(this.G=Kp(!1,Q,this.isMobileDevice),this.B=Kp(!0,Q,this.isMobileDevice),I4a(this,Q),$Q2(this,Q))};UB.prototype.cancel=function(){iR().clearTimeout(this.B);this.B=null};
UB.prototype.schedule=function(){var Q=this,W=iR(),x=UW().B.B;this.B=W.setTimeout(HC(x,fm(143,function(){Q.U++;Q.D.sample()})),Pza())};g.R=qI.prototype;g.R.yB=function(){return!1};
g.R.initialize=function(){return this.isInitialized=!0};
g.R.h$=function(){return this.B.fS};
g.R.wI=function(){return this.B.uj};
g.R.Os=function(Q,W){if(!this.uj||(W===void 0?0:W))this.uj=!0,this.fS=Q,this.S=0,this.B!=this||$g(this)};
g.R.getName=function(){return this.B.g7};
g.R.z5=function(){return this.B.Ad()};
g.R.Ad=function(){return{}};
g.R.Ou=function(){return this.B.S};
g.R.ih=function(){var Q=iq();Q.B=Kp(!0,this.D,Q.isMobileDevice)};
g.R.W6=function(){$Q2(iq(),this.D)};
g.R.Dy=function(){return this.N.B};
g.R.sample=function(){};
g.R.isActive=function(){return this.B.X};
g.R.Uq=function(Q){var W=this.B;this.B=Q.Ou()>=this.S?Q:this;W!==this.B?(this.X=this.B.X,$g(this)):this.X!==this.B.X&&(this.X=this.B.X,$g(this))};
g.R.WO=function(Q){if(Q.U===this.B){var W=!this.N.yI(Q,this.T);this.N=Q;W&&cGO(this)}};
g.R.WF=function(){return this.T};
g.R.dispose=function(){this.KS=!0};
g.R.d7=function(){return this.KS};g.R=IB.prototype;g.R.observe=function(){return!0};
g.R.unobserve=function(){};
g.R.xV=function(Q){this.L=Q};
g.R.dispose=function(){if(!this.d7()){var Q=this.U;g.Qn(Q.L,this);Q.T&&this.WF()&&N85(Q);this.unobserve();this.F3=!0}};
g.R.d7=function(){return this.F3};
g.R.z5=function(){return this.U.z5()};
g.R.Ou=function(){return this.U.Ou()};
g.R.h$=function(){return this.U.h$()};
g.R.wI=function(){return this.U.wI()};
g.R.Uq=function(){};
g.R.WO=function(){this.Kf()};
g.R.WF=function(){return this.KS};g.R=mf.prototype;g.R.Ou=function(){return this.B.Ou()};
g.R.h$=function(){return this.B.h$()};
g.R.wI=function(){return this.B.wI()};
g.R.create=function(Q,W,x){var D=null;this.B&&(D=this.Ll(Q,W,x),BR(this.B,D));return D};
g.R.CM=function(){return this.Fu()};
g.R.Fu=function(){return!1};
g.R.init=function(Q){return this.B.initialize()?(BR(this.B,this),this.N=Q,!0):!1};
g.R.Uq=function(Q){Q.Ou()==0&&this.N(Q.h$(),this)};
g.R.WO=function(){};
g.R.WF=function(){return!1};
g.R.dispose=function(){this.L=!0};
g.R.d7=function(){return this.L};
g.R.z5=function(){return{}};NI.prototype.add=function(Q,W,x){++this.D;Q=new yG1(Q,W,x);this.B.push(new yG1(Q.U,Q.B,Q.D+this.D/4096));this.U=!0;return this};rGQ.prototype.toString=function(){var Q="//pagead2.googlesyndication.com//pagead/gen_204",W=gM(this.B);W.length>0&&(Q+="?"+W);return Q};yM.prototype.update=function(Q,W,x){Q&&(this.B+=W,this.U+=W,this.N+=W,this.D=Math.max(this.D,this.N));if(x===void 0?!Q:x)this.N=0};var tWl=[1,.75,.5,.3,0];eZ.prototype.update=function(Q,W,x,D,K,l){l=l===void 0?!0:l;W=K?Math.min(Q,W):W;for(K=0;K<this.U.length;K++){var M=this.U[K],w=W>0&&W>=M;M=!(Q>0&&Q>=M)||x;this.B[K].update(l&&w,D,!l||M)}};OB.prototype.update=function(Q,W,x,D){this.G=this.G!=-1?Math.min(this.G,W.l6):W.l6;this.pS=Math.max(this.pS,W.l6);this.F3=this.F3!=-1?Math.min(this.F3,W.II):W.II;this.fS=Math.max(this.fS,W.II);this.SZ.update(W.II,x.II,W.B,Q,D);this.X3+=Q;W.l6===0&&(this.g7+=Q);this.U.update(W.l6,x.l6,W.B,Q,D);x=D||x.PR!=W.PR?x.isVisible()&&W.isVisible():x.isVisible();W=!W.isVisible()||W.B;this.s3.update(x,Q,W)};
OB.prototype.V7=function(){return this.s3.D>=this.Pt};if(AP&&AP.URL){var CCY=AP.URL,Je7;if(Je7=!!CCY){var puA;a:{if(CCY){var hYu=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var jI=hYu.exec(decodeURIComponent(CCY));if(jI){puA=jI[1]&&jI[1].length>1?jI[1].substring(1):"true";break a}}catch(Q){}}puA=""}Je7=puA.length>0}cC.aP=!Je7};var a75=new Fn(0,0,0,0);var Mrz=new Fn(0,0,0,0);g.n(WF,g.N);g.R=WF.prototype;
g.R.U3=function(){if(this.qq.B){if(this.BR.Uk){var Q=this.qq.B;Q.removeEventListener&&Q.removeEventListener("mouseover",this.BR.Uk,kG());this.BR.Uk=null}this.BR.B_&&(Q=this.qq.B,Q.removeEventListener&&Q.removeEventListener("mouseout",this.BR.B_,kG()),this.BR.B_=null)}this.XL&&this.XL.dispose();this.vV&&this.vV.dispose();delete this.Fz;delete this.aq;delete this.gp;delete this.qq.D7;delete this.qq.B;delete this.BR;delete this.XL;delete this.vV;delete this.DX;g.N.prototype.U3.call(this)};
g.R.RX=function(){return this.vV?this.vV.B:this.position};
g.R.I_=function(Q){UW().I_(Q)};
g.R.WF=function(){return!1};
g.R.uK=function(){return new OB};
g.R.kp=function(){return this.Fz};
g.R.Ve=function(Q){return b4s(this,Q,1E4)};
g.R.Yf=function(Q,W,x,D,K,l,M){this.Vu||(this.i9&&(Q=this.lM(Q,x,K,M),D=D&&this.bf.l6>=(this.PR()?.3:.5),this.M3(l,Q,D),this.LY=W,Q.l6>0&&-1===this.a9&&(this.a9=W),this.pw==-1&&this.V7()&&(this.pw=W),this.Pm==-2&&(this.Pm=tP(this.RX())?Q.l6:-1),this.bf=Q),this.aq(this))};
g.R.M3=function(Q,W,x){this.kp().update(Q,W,this.bf,x)};
g.R.N2=function(){return new tF};
g.R.lM=function(Q,W,x,D){x=this.N2();x.B=W;W=iR().U;W=oX(AP)===0?-1:W.isVisible()?0:1;x.U=W;x.l6=this.WX(Q);x.PR=this.PR();x.II=D;return x};
g.R.WX=function(Q){return this.opacity===0&&M2(this.DX,"opac")===1?0:Q};
g.R.PR=function(){return!1};
g.R.X8=function(){return this.tZ9||this.VZf};
g.R.dh=function(){Lm()};
g.R.FH=function(){Lm()};
g.R.Up=function(){return 0};
g.R.V7=function(){return this.Fz.V7()};
g.R.kH=function(){var Q=this.i9;Q=(this.hasCompleted||this.d7())&&!Q;var W=UW().U!==2||this.H35;return this.Vu||W&&Q?2:this.V7()?4:3};
g.R.P5=function(){return 0};g.DG.prototype.next=function(){return g.Mi};
g.Mi={done:!0,value:void 0};g.DG.prototype.qk=function(){return this};g.n(uAs,tF);var RV=nl5([void 0,1,2,3,4,8,16]),wP=nl5([void 0,4,8,16]),GRq={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:M7("p0",wP),p1:M7("p1",wP),p2:M7("p2",wP),p3:M7("p3",wP),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:jO("mtos1",[0,2,4],!1,wP),mtos2:jO("mtos2",[0,2,4],!1,wP),mtos3:jO("mtos3",[0,2,4],!1,wP),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:M7("a0",wP),a1:M7("a1",wP),a2:M7("a2",wP),a3:M7("a3",wP),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:M7("c0",wP),c1:M7("c1",wP),c2:M7("c2",wP),c3:M7("c3",wP),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:M7("qmtos",RV),qnc:M7("qnc",RV),qmv:M7("qmv",RV),qnv:M7("qnv",RV),
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:M7("ss0",wP),ss1:M7("ss1",wP),ss2:M7("ss2",wP),ss3:M7("ss3",wP),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"},dk5=Object.assign({},GRq,{avid:So("audio"),avas:"avas",vs:"vs"}),i5H={atos:"atos",avt:jO("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(Q,W){return function(x){return x[Q]===void 0&&W!==void 0?W:x[Q]}}("ss",0),
t:"t"};bx.prototype.getValue=function(){return this.U};
bx.prototype.update=function(Q,W){Q>=32||(this.B&1<<Q&&!W?this.U&=~(1<<Q):this.B&1<<Q||!W||(this.U|=1<<Q),this.B|=1<<Q)};g.n(sa,OB);
sa.prototype.update=function(Q,W,x,D){if(!W.paused){OB.prototype.update.call(this,Q,W,x,D);var K=lx(W)&&lx(x),l=(D?Math.min(W.l6,x.l6):x.l6)>=.5;JP(W.volume)&&(this.N=this.N!=-1?Math.min(this.N,W.volume):W.volume,this.X=Math.max(this.X,W.volume));l&&(this.KS+=Q,this.T+=K?Q:0);this.B.update(W.l6,x.l6,W.B,Q,D,K);this.D.update(!0,Q);this.L.update(K,Q);this.uj.update(x.fullscreen,Q);this.tf.update(K&&!l,Q);Q=Math.floor(W.mediaTime/1E3);this.LS.update(Q,W.isVisible());this.I5.update(Q,W.l6>=1);this.O3.update(Q,
lx(W))}};p0h.prototype.U=function(Q){this.D||(this.B(Q)?(Q=$2v(this.T,this.N,Q),this.L|=Q,Q=Q==0):Q=!1,this.D=Q)};g.n(kk,p0h);kk.prototype.B=function(){return!0};
kk.prototype.X=function(){return!1};
kk.prototype.getId=function(){var Q=this,W=GM(pZ,function(x){return x==Q.N});
return LZ[W].toString()};
kk.prototype.toString=function(){var Q="";this.X()&&(Q+="c");this.D&&(Q+="s");this.L>0&&(Q+=":"+this.L);return this.getId()+Q};g.n(XZ,kk);XZ.prototype.U=function(Q,W){W=W===void 0?null:W;W!=null&&this.G.push(W);kk.prototype.U.call(this,Q)};g.n(ov,h_2);ov.prototype.U=function(){return null};
ov.prototype.D=function(){return[]};g.n(ux,IB);g.R=ux.prototype;g.R.LP=function(){if(this.element){var Q=this.element,W=this.U.B.D;try{try{var x=Htn(Q.getBoundingClientRect())}catch(b){x=new Fn(0,0,0,0)}var D=x.right-x.left,K=x.bottom-x.top,l=dQ5(Q,W),M=l.x,w=l.y;var S=new Fn(Math.round(w),Math.round(M+D),Math.round(w+K),Math.round(M))}catch(b){S=a75.clone()}this.D=S;this.B=g72(this,this.D)}};
g.R.rS=function(){this.X=this.U.N.B};
g.R.Nl=function(Q){var W=M2(this.DX,"od")==1;return jHv(Q,this.X,this.element,W)};
g.R.YC=function(){this.timestamp=Lm()};
g.R.Kf=function(){this.YC();this.LP();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var Q=this.element;var W=new g.oZ(Q.videoWidth,Q.videoHeight);Q=this.B;var x=t8(Q),D=Q.getHeight(),K=W.width;W=W.height;K<=0||W<=0||x<=0||D<=0||(K/=W,W=x/D,Q=Q.clone(),K>W?(x/=K,D=(D-x)/2,D>0&&(D=Q.top+D,Q.top=Math.round(D),Q.bottom=Math.round(D+x))):(D*=K,x=Math.round((x-D)/2),x>0&&(x=Q.left+x,Q.left=Math.round(x),Q.right=Math.round(x+D))));this.B=Q}this.rS();
Q=this.B;x=this.X;Q=Q.left<=x.right&&x.left<=Q.right&&Q.top<=x.bottom&&x.top<=Q.bottom?new Fn(Math.max(Q.top,x.top),Math.min(Q.right,x.right),Math.min(Q.bottom,x.bottom),Math.max(Q.left,x.left)):new Fn(0,0,0,0);x=Q.top>=Q.bottom||Q.left>=Q.right?new Fn(0,0,0,0):Q;Q=this.U.N;W=K=D=0;if((this.B.bottom-this.B.top)*(this.B.right-this.B.left)>0)if(this.Nl(x))x=new Fn(0,0,0,0);else{D=iq().N;W=new Fn(0,D.height,D.width,0);var l;D=Qf(x,(l=this.L)!=null?l:this.B);K=Qf(x,iq().B);W=Qf(x,W)}l=x.top>=x.bottom||
x.left>=x.right?new Fn(0,0,0,0):WR(x,-this.B.left,-this.B.top);HR()||(K=D=0);this.T=new Di(Q,this.element,this.B,l,D,K,this.timestamp,W)};
g.R.getName=function(){return this.U.getName()};var Ae5=new Fn(0,0,0,0);g.n(Yk,ux);g.R=Yk.prototype;g.R.observe=function(){this.N();return!0};
g.R.WO=function(){ux.prototype.Kf.call(this)};
g.R.YC=function(){};
g.R.LP=function(){};
g.R.Kf=function(){this.N();ux.prototype.Kf.call(this)};
g.R.Uq=function(Q){Q=Q.isActive();Q!==this.S&&(Q?this.N():(iq().B=new Fn(0,0,0,0),this.B=new Fn(0,0,0,0),this.X=new Fn(0,0,0,0),this.timestamp=-1));this.S=Q};var SI={},$Mh=(SI.firstquartile=0,SI.midpoint=1,SI.thirdquartile=2,SI.complete=3,SI);g.n(Vf,WF);g.R=Vf.prototype;g.R.WF=function(){return!0};
g.R.wV=function(){return this.Lt==2};
g.R.Ve=function(Q){return b4s(this,Q,Math.max(1E4,this.D/3))};
g.R.Yf=function(Q,W,x,D,K,l,M){var w=this,S=this.G(this)||{};g.q9(S,K);this.D=S.duration||this.D;this.T=S.isVpaid||this.T;this.g7=S.isYouTube||this.g7;iR();this.SZ=!1;K=GY5(this,W);aFh(this)===1&&(l=K);WF.prototype.Yf.call(this,Q,W,x,D,S,l,M);this.xm&&this.xm.D&&g.o3(this.X,function(b){b.U(w)})};
g.R.M3=function(Q,W,x){WF.prototype.M3.call(this,Q,W,x);CZ(this).update(Q,W,this.bf,x);this.Pt=lx(this.bf)&&lx(W);this.fS==-1&&this.I5&&(this.fS=this.kp().D.B);this.zy.D=0;Q=this.V7();W.isVisible()&&SO(this.zy,"vs");Q&&SO(this.zy,"vw");JP(W.volume)&&SO(this.zy,"am");lx(W)?SO(this.zy,"a"):SO(this.zy,"mut");this.ll&&SO(this.zy,"f");W.U!=-1&&(SO(this.zy,"bm"),W.U==1&&(SO(this.zy,"b"),lx(W)&&SO(this.zy,"umutb")));lx(W)&&W.isVisible()&&SO(this.zy,"avs");this.Pt&&Q&&SO(this.zy,"avw");W.l6>0&&SO(this.zy,
"pv");JH(this,this.kp().D.B,!0)&&SO(this.zy,"gdr");rM(this.kp().U,1)>=2E3&&SO(this.zy,"pmx");this.SZ&&SO(this.zy,"tvoff")};
g.R.uK=function(){return new sa};
g.R.kp=function(){return this.Fz};
g.R.N2=function(){return new uAs};
g.R.lM=function(Q,W,x,D){Q=WF.prototype.lM.call(this,Q,W,x,D===void 0?-1:D);Q.fullscreen=this.ll;Q.paused=this.wV();Q.volume=x.volume;JP(Q.volume)||(this.Vj++,W=this.bf,JP(W.volume)&&(Q.volume=W.volume));x=x.currentTime;Q.mediaTime=x!==void 0&&x>=0?x:-1;return Q};
g.R.WX=function(Q){return iq(),this.ll?1:WF.prototype.WX.call(this,Q)};
g.R.Up=function(){return 1};
g.R.getDuration=function(){return this.D};
g.R.kH=function(){return this.Vu?2:i4n(this)?5:this.V7()?4:3};
g.R.P5=function(){return this.tf?this.kp().L.D>=2E3?4:3:2};
g.R.xV=function(Q){this.vV&&this.vV.xV(Q)};var H5C=g.QA();rFs.prototype.reset=function(){this.B=[];this.U=[]};
var ix=Gk(rFs);g.n(Ua,mf);g.R=Ua.prototype;g.R.getName=function(){return(this.U?this.U:this.B).getName()};
g.R.z5=function(){return(this.U?this.U:this.B).z5()};
g.R.Ou=function(){return(this.U?this.U:this.B).Ou()};
g.R.init=function(Q){var W=!1;(0,g.o3)(this.D,function(x){x.initialize()&&(W=!0)});
W&&(this.N=Q,BR(this.B,this));return W};
g.R.dispose=function(){(0,g.o3)(this.D,function(Q){Q.dispose()});
mf.prototype.dispose.call(this)};
g.R.CM=function(){return dM(this.D,function(Q){return Q.yB()})};
g.R.Fu=function(){return dM(this.D,function(Q){return Q.yB()})};
g.R.Ll=function(Q,W,x){return new ux(Q,this.B,W,x)};
g.R.WO=function(Q){this.U=Q.U};var D25={threshold:[0,.3,.5,.75,1]};g.n(q7,ux);g.R=q7.prototype;g.R.observe=function(){var Q=this;this.pS||(this.pS=Lm());if(n7a(298,function(){return Kns(Q)}))return!0;
this.U.Os("msf");return!1};
g.R.unobserve=function(){if(this.N&&this.element)try{this.N.unobserve(this.element),this.S?(this.S.unobserve(this.element),this.S=null):this.G&&(this.G.disconnect(),this.G=null)}catch(Q){}};
g.R.Kf=function(){var Q=BF(this);Q.length>0&&$k(this,Q);ux.prototype.Kf.call(this)};
g.R.LP=function(){};
g.R.Nl=function(){return!1};
g.R.rS=function(){};
g.R.z5=function(){var Q={};return Object.assign(this.U.z5(),(Q.niot_obs=this.pS,Q.niot_cbk=this.uj,Q))};
g.R.getName=function(){return"nio"};g.n(Iv,mf);Iv.prototype.getName=function(){return"nio"};
Iv.prototype.Fu=function(){return!iq().U&&this.B.B.D.IntersectionObserver!=null};
Iv.prototype.Ll=function(Q,W,x){return new q7(Q,this.B,W,x)};g.n(N7,qI);N7.prototype.Dy=function(){return iq().B};
N7.prototype.yB=function(){var Q=jX1();this.S!==Q&&(this.B!=this&&Q>this.B.S&&(this.B=this,$g(this)),this.S=Q);return Q==2};cF.prototype.sample=function(){eO(this,AH(),!1)};
cF.prototype.N=function(){var Q=HR(),W=Lm();Q?(Tk||(OW=W,g.o3(ix.B,function(x){var D=x.kp();D.eZ=zN(D,W,x.Lt!=1)})),Tk=!0):(this.G=bmD(this,W),Tk=!1,IFl=W,g.o3(ix.B,function(x){x.i9&&(x.kp().S=W)}));
eO(this,AH(),!Q)};
var gJ=Gk(cF);var zJh=null,zd="",s3=!1;var oGl=XCa().Wi,ZG=XCa().Ca;var nGa={r_j:"visible",y4f:"audible",ScS:"time",a57:"timetype"},Vuh={visible:function(Q){return/^(100|[0-9]{1,2})$/.test(Q)},
audible:function(Q){return Q=="0"||Q=="1"},
timetype:function(Q){return Q=="mtos"||Q=="tos"},
time:function(Q){return/^(100|[0-9]{1,2})%$/.test(Q)||/^([0-9])+ms$/.test(Q)}};
YW1.prototype.setTime=function(Q,W,x){W=="ms"?(this.D=Q,this.N=-1):(this.D=-1,this.N=Q);this.L=x===void 0?"tos":x;return this};g.n(Oa,kk);Oa.prototype.getId=function(){return this.G};
Oa.prototype.X=function(){return!0};
Oa.prototype.B=function(Q){var W=Q.kp(),x=Q.getDuration();return dM(this.S,function(D){if(D.B!=void 0)var K=vGn(D,W);else b:{switch(D.L){case "mtos":K=D.U?W.L.D:W.D.B;break b;case "tos":K=D.U?W.L.B:W.D.B;break b}K=0}K==0?D=!1:(D=D.D!=-1?D.D:x!==void 0&&x>0?D.N*x:-1,D=D!=-1&&K>=D);return D})};g.n(Ea,PT2);Ea.prototype.B=function(Q){var W=new Vra;W.B=wJ(Q,GRq);W.U=wJ(Q,i5H);return W};g.n(FZ,kk);FZ.prototype.B=function(Q){return i4n(Q)};g.n(tH,h_2);g.n(QP,kk);QP.prototype.B=function(Q){return Q.kp().V7()};g.n(Wt,XZ);Wt.prototype.B=function(Q){var W=g.FH(this.G,M2(UW().DX,"ovms"));return!Q.Vu&&(Q.Lt!=0||W)};g.n(xB,tH);xB.prototype.U=function(){return new Wt(this.B)};
xB.prototype.D=function(){return[new QP("viewable_impression",this.B),new FZ(this.B)]};g.n(DH,Yk);DH.prototype.N=function(){var Q=g.yF("ima.admob.getViewability"),W=M2(this.DX,"queryid");typeof Q==="function"&&W&&Q(W)};
DH.prototype.getName=function(){return"gsv"};g.n(K8,mf);K8.prototype.getName=function(){return"gsv"};
K8.prototype.Fu=function(){var Q=iq();UW();return Q.U&&!1};
K8.prototype.Ll=function(Q,W,x){return new DH(this.B,W,x)};g.n(lp,Yk);lp.prototype.N=function(){var Q=this,W=g.yF("ima.bridge.getNativeViewability"),x=M2(this.DX,"queryid");typeof W==="function"&&x&&W(x,function(D){g.dS(D)&&Q.G++;var K=D.opt_nativeViewVisibleBounds||{},l=D.opt_nativeViewHidden;Q.B=UQz(D.opt_nativeViewBounds||{});var M=Q.U.N;M.B=l?Ae5.clone():UQz(K);Q.timestamp=D.opt_nativeTime||-1;iq().B=M.B;D=D.opt_nativeVolume;D!==void 0&&(M.volume=D)})};
lp.prototype.getName=function(){return"nis"};g.n(jl,mf);jl.prototype.getName=function(){return"nis"};
jl.prototype.Fu=function(){var Q=iq();UW();return Q.U&&!1};
jl.prototype.Ll=function(Q,W,x){return new lp(this.B,W,x)};g.n(Mn,qI);g.R=Mn.prototype;g.R.yB=function(){return this.U.Oc!=null};
g.R.Ad=function(){var Q={};this.LS&&(Q.mraid=this.LS);this.F3&&(Q.mlc=1);Q.mtop=this.U.B1f;this.G&&(Q.mse=this.G);this.X3&&(Q.msc=1);Q.mcp=this.U.compatibility;return Q};
g.R.Ix=function(Q){var W=g.i2.apply(1,arguments);try{return this.U.Oc[Q].apply(this.U.Oc,W)}catch(x){Zm(538,x,.01,function(D){D.method=Q})}};
g.R.initialize=function(){var Q=this;if(this.isInitialized)return!this.wI();this.isInitialized=!0;if(this.U.compatibility===2)return this.G="ng",this.Os("w"),!1;if(this.U.compatibility===1)return this.G="mm",this.Os("w"),!1;iq().S=!0;this.D.document.readyState&&this.D.document.readyState=="complete"?hJs(this):F9(this.D,"load",function(){iR().setTimeout(fm(292,function(){return hJs(Q)}),100)},292);
return!0};
g.R.ih=function(){var Q=iq(),W=A8n(this,"getMaxSize");Q.B=new Fn(0,W.width,W.height,0)};
g.R.W6=function(){iq().N=A8n(this,"getScreenSize")};
g.R.dispose=function(){Gkz(this);qI.prototype.dispose.call(this)};var DQO=new function(Q,W){this.key=Q;this.defaultValue=W===void 0?!1:W;this.valueType="boolean"}("45378663");g.R=wx.prototype;g.R.LO=function(Q){xk(Q,!1);F6D(Q)};
g.R.KB=function(){};
g.R.oV=function(Q,W,x,D){var K=this;Q=new Vf(zk,Q,x?W:-1,7,this.TZ(),this.TW());Q.SL=D;p_4(Q.DX);ju(Q.DX,"queryid",Q.SL);Q.I_("");kYF(Q,function(){return K.dg.apply(K,g.C(g.i2.apply(0,arguments)))},function(){return K.dj7.apply(K,g.C(g.i2.apply(0,arguments)))});
(D=Gk(HF).B)&&S1O(Q,D);this.D&&(Q.xV(this.D),this.D=null);Q.qq.D7&&Gk(Mu1);return Q};
g.R.Uq=function(Q){switch(Q.Ou()){case 0:if(Q=Gk(HF).B)Q=Q.B,g.Qn(Q.L,this),Q.T&&this.WF()&&N85(Q);bp();break;case 2:yf()}};
g.R.WO=function(){};
g.R.WF=function(){return!1};
g.R.dj7=function(Q,W){Q.Vu=!0;switch(Q.Up()){case 1:Imz(Q,W);break;case 2:this.a_(Q)}};
g.R.Y35=function(Q){var W=Q.G(Q);W&&(W=W.volume,Q.tf=JP(W)&&W>0);UMl(Q,0);return hH(Q,"start",HR())};
g.R.rM=function(Q,W,x){eO(gJ,[Q],!HR());return this.mV(Q,W,x)};
g.R.mV=function(Q,W,x){return hH(Q,x,HR())};
g.R.gft=function(Q){return up(Q,"firstquartile",1)};
g.R.of3=function(Q){Q.I5=!0;return up(Q,"midpoint",2)};
g.R.e9S=function(Q){return up(Q,"thirdquartile",3)};
g.R.L3j=function(Q){var W=up(Q,"complete",4);PF(Q);return W};
g.R.Ef3=function(Q){Q.Lt=3;return hH(Q,"error",HR())};
g.R.a6=function(Q,W,x){W=HR();if(Q.wV()&&!W){var D=Q.kp(),K=Lm();D.S=K}eO(gJ,[Q],!W);Q.wV()&&(Q.Lt=1);return hH(Q,x,W)};
g.R.rfj=function(Q,W){W=this.rM(Q,W||{},"skip");PF(Q);return W};
g.R.j5j=function(Q,W){xk(Q,!0);return this.rM(Q,W||{},"fullscreen")};
g.R.vfS=function(Q,W){xk(Q,!1);return this.rM(Q,W||{},"exitfullscreen")};
g.R.jn=function(Q,W,x){W=Q.kp();var D=Lm();W.eZ=zN(W,D,Q.Lt!=1);eO(gJ,[Q],!HR());Q.Lt==1&&(Q.Lt=2);return hH(Q,x,HR())};
g.R.G13=function(Q){eO(gJ,[Q],!HR());return Q.U()};
g.R.A0=function(Q){eO(gJ,[Q],!HR());this.W4(Q);PF(Q);return Q.U()};
g.R.dg=function(){};
g.R.a_=function(){};
g.R.W4=function(){};
g.R.P6=function(){};
g.R.nP=function(){};
g.R.TW=function(){this.B||(this.B=this.nP());return this.B==null?new ov:new xB(this.B)};
g.R.TZ=function(){return new Ea};g.n(YB,kk);YB.prototype.B=function(Q){return Q.P5()==4};g.n(n8,XZ);n8.prototype.B=function(Q){Q=Q.P5();return Q==3||Q==4};g.n(VP,tH);VP.prototype.U=function(){return new n8(this.B)};
VP.prototype.D=function(){return[new YB(this.B)]};g.n(Pt,PT2);Pt.prototype.B=function(Q){Q&&(Q.e===28&&(Q=Object.assign({},Q,{avas:3})),Q.vs===4||Q.vs===5)&&(Q=Object.assign({},Q,{vs:3}));var W=new Vra;W.B=wJ(Q,dk5);W.U=wJ(Q,i5H);return W};gG4.prototype.U=function(){return g.yF(this.B)};g.n(vt,wx);g.R=vt.prototype;g.R.KB=function(Q,W){var x=this,D=Gk(HF);if(D.B!=null)switch(D.B.getName()){case "nis":var K=ZmD(this,Q,W);break;case "gsv":K=fm2(this,Q,W);break;case "exc":K=Lnz(this,Q)}K||(W.opt_overlayAdElement?K=void 0:W.opt_adElement&&(K=Nu1(this,Q,W.opt_adElement,W.opt_osdId)));K&&K.Up()==1&&(K.G==g.bi&&(K.G=function(l){return x.P6(l)}),eJD(this,K,W));
return K};
g.R.P6=function(Q){Q.U=0;Q.KS=0;if(Q.N=="h"||Q.N=="n"){UW();Q.O3&&(UW(),XW(this)!="h"&&XW(this));var W=g.yF("ima.common.getVideoMetadata");if(typeof W==="function")try{var x=W(Q.SL)}catch(K){Q.U|=4}else Q.U|=2}else if(Q.N=="b")if(W=g.yF("ytads.bulleit.getVideoMetadata"),typeof W==="function")try{x=W(Q.SL)}catch(K){Q.U|=4}else Q.U|=2;else if(Q.N=="ml")if(W=g.yF("ima.common.getVideoMetadata"),typeof W==="function")try{x=W(Q.SL)}catch(K){Q.U|=4}else Q.U|=2;else Q.U|=1;Q.U||(x===void 0?Q.U|=8:x===null?
Q.U|=16:g.dS(x)?Q.U|=32:x.errorCode!=null&&(Q.KS=x.errorCode,Q.U|=64));x==null&&(x={});W=x;Q.S=0;for(var D in vFY)W[D]==null&&(Q.S|=vFY[D]);c8a(W,"currentTime");c8a(W,"duration");JP(x.volume)&&JP()&&(x.volume*=NaN);return x};
g.R.nP=function(){UW();XW(this)!="h"&&XW(this);var Q=r8s(this);return Q!=null?new gG4(Q):null};
g.R.a_=function(Q){!Q.B&&Q.Vu&&ob(this,Q,"overlay_unmeasurable_impression")&&(Q.B=!0)};
g.R.W4=function(Q){Q.Gp&&(Q.V7()?ob(this,Q,"overlay_viewable_end_of_session_impression"):ob(this,Q,"overlay_unviewable_impression"),Q.Gp=!1)};
g.R.dg=function(){};
g.R.oV=function(Q,W,x,D){if(KAz()){var K=M2(UW().DX,"mm"),l={};(K=(l[q2.pp]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",l[q2.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",l)[K])&&Fn5(this,K);this.N==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Zm(1044,Error())}Q=wx.prototype.oV.call(this,Q,W,x,D);this.L&&(W=this.X,Q.L==null&&(Q.L=new X0s),W.B[Q.SL]=Q.L,Q.L.L=H5C);return Q};
g.R.LO=function(Q){Q&&Q.Up()==1&&this.L&&delete this.X.B[Q.SL];return wx.prototype.LO.call(this,Q)};
g.R.TW=function(){this.B||(this.B=this.nP());return this.B==null?new ov:this.N==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new VP(this.B):new xB(this.B)};
g.R.TZ=function(){return this.N==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Pt:new Ea};
g.R.xV=function(Q,W,x,D,K){W=new Fn(x,W+D,x+K,W);(Q=dJ(ix,Q))?Q.xV(W):this.D=W};
var Uk1=eu(193,QB4,void 0,m2z);g.g4("Goog_AdSense_Lidar_sendVastEvent",Uk1);var qsp=fm(194,function(Q,W){W=W===void 0?{}:W;Q=EG1(Gk(vt),Q,W);return tu5(Q)});
g.g4("Goog_AdSense_Lidar_getViewability",qsp);var B1F=eu(195,function(){return Fd5()});
g.g4("Goog_AdSense_Lidar_getUrlSignalsArray",B1F);var $kR=fm(196,function(){return JSON.stringify(Fd5())});
g.g4("Goog_AdSense_Lidar_getUrlSignalsList",$kR);var Wfa=(new Date("2024-01-01T00:00:00Z")).getTime();var KfO=kQ(["//ep2.adtrafficquality.google/sodar/",""]),li5=kQ(["//tpc.googlesyndication.com/sodar/",""]);g.n(dx,g.N);dx.prototype.z_=function(){return this.wpc.f()};
dx.prototype.VX=function(Q){this.wpc.c(Q)};
dx.prototype.pK=function(Q){return this.wpc.m(wRO(Q))};
dx.prototype.Bx=function(Q){return this.wpc.mws(wRO(Q))};
g.n(ab,g.N);ab.prototype.snapshot=function(Q){return this.RU.s(Object.assign({},Q.Im&&{c:Q.Im},Q.SP&&{s:Q.SP},Q.Zk!==void 0&&{p:Q.Zk}))};
ab.prototype.NT=function(Q){this.RU.e(Q)};
ab.prototype.QJ=function(){return this.RU.l()};var wth=(new Date).getTime();var sB2="://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(" "),z4l=/\bocr\b/;var XRa=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var ip4=0,dI2=0,APQ=0;var ogQ=Object.assign({},{attributes:{},handleError:function(Q){throw Q;}},{Rqf:!0,
HYj:!0,OYj:!1,Yh:!1,Gmj:!1,lmZ:!1,s77:!1,Imj:khJ});var Ht=null,qn=!1,aiO=1,Ib=Symbol("SIGNAL"),bE={version:0,rqt:0,jM:!1,pA:void 0,Qz:void 0,I7:void 0,oM:0,dn:void 0,mM:void 0,hI:!1,tI:!1,kind:"unknown",eI:function(){return!1},
sI:function(){},
Sv:function(){},
eqp:function(){}};var sK=Symbol("UNSET"),zB=Symbol("COMPUTING"),kf=Symbol("ERRORED");Object.assign({},bE,{value:sK,jM:!0,error:null,Sl:A2,kind:"computed",eI:function(Q){return Q.value===sK||Q.value===zB},
sI:function(Q){if(Q.value===zB)throw Error("Detected cycle in computations.");var W=Q.value;Q.value=zB;var x=VZv(Q),D=!1;try{var K=Q.S_();U3(null);D=W!==sK&&W!==kf&&K!==kf&&Q.Sl(W,K)}catch(l){K=kf,Q.error=l}finally{PqD(Q,x)}D?Q.value=W:(Q.value=K,Q.version++)}});var pRs=Object.assign({},bE,{Sl:A2,value:void 0,kind:"signal"});Object.assign({},bE,{value:sK,jM:!0,error:null,Sl:A2,eI:function(Q){return Q.value===sK||Q.value===zB},
sI:function(Q){if(Q.value===zB)throw Error("Detected cycle in computations.");var W=Q.value;Q.value=zB;var x=VZv(Q);try{var D=Q.source();var K=Q.S_(D,W===sK||W===kf?void 0:{source:Q.DC3,value:W});Q.DC3=D}catch(l){K=kf,Q.error=l}finally{PqD(Q,x)}W!==sK&&K!==kf&&Q.Sl(W,K)?Q.value=W:(Q.value=K,Q.version++)}});Object.assign({},bE,{tI:!0,hI:!1,Sv:function(Q){Q.schedule!==null&&Q.schedule(Q.B8j)},
kmj:!1,j7j:function(){}});var Hpv=Symbol("updater");g.n(Nn,g.FN);Nn.prototype.dispose=function(){window.removeEventListener("offline",this.D);window.removeEventListener("online",this.D);this.Rp.TA(this.L);delete Nn.instance};
Nn.prototype.yv=function(){return this.B};
Nn.prototype.KZ=function(){var Q=this;this.L=this.Rp.zK(function(){var W;return g.U(function(x){if(x.B==1)return Q.B?((W=window.navigator)==null?0:W.onLine)?x.kf(3):g.A(x,mi(Q),3):g.A(x,mi(Q),3);Q.KZ();g.VF(x)})},3E4)};gx.prototype.set=function(Q,W){W=W===void 0?!0:W;0<=Q&&Q<52&&Number.isInteger(Q)&&this.data[Q]!==W&&(this.data[Q]=W,this.B=-1)};
gx.prototype.get=function(Q){return!!this.data[Q]};var el;g.Wu(g.Td,g.N);g.R=g.Td.prototype;g.R.start=function(){this.stop();this.N=!1;var Q=$IO(this),W=Iih(this);Q&&!W&&this.U.mozRequestAnimationFrame?(this.B=g.gp(this.U,"MozBeforePaint",this.D),this.U.mozRequestAnimationFrame(null),this.N=!0):this.B=Q&&W?Q.call(this.U,this.D):this.U.setTimeout(rjF(this.D),20)};
g.R.stop=function(){if(this.isActive()){var Q=$IO(this),W=Iih(this);Q&&!W&&this.U.mozRequestAnimationFrame?TW(this.B):Q&&W?W.call(this.U,this.B):this.U.clearTimeout(this.B)}this.B=null};
g.R.isActive=function(){return this.B!=null};
g.R.Cz=function(){this.N&&this.B&&TW(this.B);this.B=null;this.X.call(this.L,g.QA())};
g.R.U3=function(){this.stop();g.Td.t2.U3.call(this)};g.Wu(g.O3,g.N);g.R=g.O3.prototype;g.R.DY=0;g.R.U3=function(){g.O3.t2.U3.call(this);this.stop();delete this.B;delete this.U};
g.R.start=function(Q){this.stop();this.DY=g.Cr(this.D,Q!==void 0?Q:this.CA)};
g.R.stop=function(){this.isActive()&&g.Nz.clearTimeout(this.DY);this.DY=0};
g.R.isActive=function(){return this.DY!=0};
g.R.AD=function(){this.DY=0;this.B&&this.B.call(this.U)};g.n(g.Qu,g.N);g.R=g.Qu.prototype;g.R.Ed=function(Q){this.D=arguments;this.rE||this.U?this.B=!0:Wg(this)};
g.R.stop=function(){this.rE&&(g.Nz.clearTimeout(this.rE),this.rE=null,this.B=!1,this.D=null)};
g.R.pause=function(){this.U++};
g.R.resume=function(){this.U--;this.U||!this.B||this.rE||(this.B=!1,Wg(this))};
g.R.U3=function(){g.N.prototype.U3.call(this);this.stop()};g.xR.prototype[Symbol.iterator]=function(){return this};
g.xR.prototype.next=function(){var Q=this.B.next();return{value:Q.done?void 0:this.U.call(void 0,Q.value),done:Q.done}};g.Wu(g.bf,g.FN);g.R=g.bf.prototype;g.R.isPlaying=function(){return this.B==1};
g.R.isPaused=function(){return this.B==-1};
g.R.IM=function(){this.Qd("begin")};
g.R.DU=function(){this.Qd("end")};
g.R.onFinish=function(){this.Qd("finish")};
g.R.onStop=function(){this.Qd("stop")};
g.R.Qd=function(Q){this.dispatchEvent(Q)};var I7F=s7(function(){var Q=g.Qz("DIV"),W=g.O6?"-webkit":bq?"-moz":null,x="transition:opacity 1s linear;";W&&(x+=W+"-transition:opacity 1s linear;");W=Wp2({style:x});if(Q.nodeType===1&&/^(script|style)$/i.test(Q.tagName))throw Error("");Q.innerHTML=Ix(W);return g.sB(Q.firstChild,"transition")!=""});g.Wu(sI,g.bf);g.R=sI.prototype;g.R.play=function(){if(this.isPlaying())return!1;this.IM();this.Qd("play");this.startTime=g.QA();this.B=1;if(I7F())return g.SZ(this.U,this.X),this.D=g.Cr(this.IJZ,void 0,this),!0;this.Y1(!1);return!1};
g.R.IJZ=function(){g.PR(this.U);cPh(this.U,this.G);g.SZ(this.U,this.N);this.D=g.Cr((0,g.FD)(this.Y1,this,!1),this.L*1E3)};
g.R.stop=function(){this.isPlaying()&&this.Y1(!0)};
g.R.Y1=function(Q){g.SZ(this.U,"transition","");g.Nz.clearTimeout(this.D);g.SZ(this.U,this.N);this.endTime=g.QA();this.B=0;if(Q)this.onStop();else this.onFinish();this.DU()};
g.R.U3=function(){this.stop();sI.t2.U3.call(this)};
g.R.pause=function(){};var yPF={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};zy("Element","attributes")||zy("Node","attributes");zy("Element","innerHTML")||zy("HTMLElement","innerHTML");zy("Node","nodeName");zy("Node","nodeType");zy("Node","parentNode");zy("Node","childNodes");zy("HTMLElement","style")||zy("Element","style");zy("HTMLStyleElement","sheet");var TM1=fi2("getPropertyValue"),Opz=fi2("setProperty");zy("Element","namespaceURI")||zy("Node","namespaceURI");var rPD={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Qvv,l5p,tZO,Ff1,WbO;Qvv=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]");l5p=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.mkH=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.XK=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]");tZO=/^http:\/\/.*/;g.N1R=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Ff1=/\s+/;WbO=/[\d\u06f0-\u06f9]/;uf.prototype.qk=function(){return new YR(this.U())};
uf.prototype[Symbol.iterator]=function(){return new nT(this.U())};
uf.prototype.B=function(){return new nT(this.U())};
g.n(YR,g.DG);YR.prototype.next=function(){return this.U.next()};
YR.prototype[Symbol.iterator]=function(){return new nT(this.U)};
YR.prototype.B=function(){return new nT(this.U)};
g.n(nT,uf);nT.prototype.next=function(){return this.D.next()};Pg.prototype.clone=function(){return new Pg(this.B,this.G,this.D,this.L,this.N,this.X,this.U,this.S)};
Pg.prototype.yI=function(Q){return this.B==Q.B&&this.G==Q.G&&this.D==Q.D&&this.L==Q.L&&this.N==Q.N&&this.X==Q.X&&this.U==Q.U&&this.S==Q.S};CT.prototype.clone=function(){return new CT(this.start,this.end)};
CT.prototype.getLength=function(){return this.end-this.start};(function(){if(XJv){var Q=/Windows NT ([0-9.]+)/;return(Q=Q.exec(g.Ae()))?Q[1]:"0"}return Dg?(Q=/1[0|1][_.][0-9_.]+/,(Q=Q.exec(g.Ae()))?Q[0].replace(/_/g,"."):"10"):g.tS?(Q=/Android\s+([^\);]+)(\)|;)/,(Q=Q.exec(g.Ae()))?Q[1]:""):uDC||Yls||nQs?(Q=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(Q=Q.exec(g.Ae()))?Q[1].replace(/_/g,"."):""):""})();var D7z=function(){if(g.gr)return JU(/Firefox\/([0-9.]+)/);if(g.kR||g.rV||g.aO)return RYl;if(g.UC){if(Z7()||L5()){var Q=JU(/CriOS\/([0-9.]+)/);if(Q)return Q}return JU(/Chrome\/([0-9.]+)/)}if(g.nX&&!Z7())return JU(/Version\/([0-9.]+)/);if(Ok||Ek){if(Q=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Ae()))return Q[1]+"."+Q[2]}else if(g.Gs)return(Q=JU(/Android\s+([0-9.]+)/))?Q:JU(/Version\/([0-9.]+)/);return""}();g.Wu(g.hU,g.N);g.R=g.hU.prototype;g.R.subscribe=function(Q,W,x){var D=this.U[Q];D||(D=this.U[Q]=[]);var K=this.X;this.B[K]=Q;this.B[K+1]=W;this.B[K+2]=x;this.X=K+3;D.push(K);return K};
g.R.unsubscribe=function(Q,W,x){if(Q=this.U[Q]){var D=this.B;if(Q=Q.find(function(K){return D[K+1]==W&&D[K+2]==x}))return this.Or(Q)}return!1};
g.R.Or=function(Q){var W=this.B[Q];if(W){var x=this.U[W];this.N!=0?(this.D.push(Q),this.B[Q+1]=function(){}):(x&&g.Qn(x,Q),delete this.B[Q],delete this.B[Q+1],delete this.B[Q+2])}return!!W};
g.R.publish=function(Q,W){var x=this.U[Q];if(x){var D=Array(arguments.length-1),K=arguments.length,l;for(l=1;l<K;l++)D[l-1]=arguments[l];if(this.G)for(l=0;l<x.length;l++)K=x[l],Kbl(this.B[K+1],this.B[K+2],D);else{this.N++;try{for(l=0,K=x.length;l<K&&!this.d7();l++){var M=x[l];this.B[M+1].apply(this.B[M+2],D)}}finally{if(this.N--,this.D.length>0&&this.N==0)for(;x=this.D.pop();)this.Or(x)}}return l!=0}return!1};
g.R.clear=function(Q){if(Q){var W=this.U[Q];W&&(W.forEach(this.Or,this),delete this.U[Q])}else this.B.length=0,this.U={}};
g.R.U3=function(){g.hU.t2.U3.call(this);this.clear();this.D.length=0};g.ar.prototype.set=function(Q,W){W===void 0?this.B.remove(Q):this.B.set(Q,g.aj(W))};
g.ar.prototype.get=function(Q){try{var W=this.B.get(Q)}catch(x){return}if(W!==null)try{return JSON.parse(W)}catch(x){throw"Storage: Invalid value was encountered";}};
g.ar.prototype.remove=function(Q){this.B.remove(Q)};g.Wu(Gy,g.ar);Gy.prototype.set=function(Q,W){Gy.t2.set.call(this,Q,jvO(W))};
Gy.prototype.U=function(Q){Q=Gy.t2.get.call(this,Q);if(Q===void 0||Q instanceof Object)return Q;throw"Storage: Invalid value was encountered";};
Gy.prototype.get=function(Q){if(Q=this.U(Q)){if(Q=Q.data,Q===void 0)throw"Storage: Invalid value was encountered";}else Q=void 0;return Q};g.Wu(dk,Gy);dk.prototype.set=function(Q,W,x){if(W=jvO(W)){if(x){if(x<g.QA()){dk.prototype.remove.call(this,Q);return}W.expiration=x}W.creation=g.QA()}dk.t2.set.call(this,Q,W)};
dk.prototype.U=function(Q,W){var x=dk.t2.U.call(this,Q);if(x)if(!W&&g.MOz(x))dk.prototype.remove.call(this,Q);else return x};g.Wu(g.AU,dk);g.Wu(Hg,Rb2);Hg.prototype[Symbol.iterator]=function(){return g.Vu(this.qk(!0)).B()};
Hg.prototype.clear=function(){var Q=Array.from(this);Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())this.remove(W.value)};g.Wu(UI,Hg);g.R=UI.prototype;g.R.isAvailable=function(){var Q=this.B;if(Q)try{Q.setItem("__sak","1");Q.removeItem("__sak");var W=!0}catch(x){W=x instanceof DOMException&&(x.name==="QuotaExceededError"||x.code===22||x.code===1014||x.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Q&&Q.length!==0}else W=!1;return this.U=W};
g.R.set=function(Q,W){qh(this);try{this.B.setItem(Q,W)}catch(x){if(this.B.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.R.get=function(Q){qh(this);Q=this.B.getItem(Q);if(typeof Q!=="string"&&Q!==null)throw"Storage mechanism: Invalid value was encountered";return Q};
g.R.remove=function(Q){qh(this);this.B.removeItem(Q)};
g.R.qk=function(Q){qh(this);var W=0,x=this.B,D=new g.DG;D.next=function(){if(W>=x.length)return g.Mi;var K=x.key(W++);if(Q)return g.KZ(K);K=x.getItem(K);if(typeof K!=="string")throw"Storage mechanism: Invalid value was encountered";return g.KZ(K)};
return D};
g.R.clear=function(){qh(this);this.B.clear()};
g.R.key=function(Q){qh(this);return this.B.key(Q)};g.Wu(Bg,UI);g.Wu(wF5,UI);g.Wu($R,Hg);$R.prototype.set=function(Q,W){this.U.set(this.B+Q,W)};
$R.prototype.get=function(Q){return this.U.get(this.B+Q)};
$R.prototype.remove=function(Q){this.U.remove(this.B+Q)};
$R.prototype.qk=function(Q){var W=this.U[Symbol.iterator](),x=this,D=new g.DG;D.next=function(){var K=W.next();if(K.done)return K;for(K=K.value;K.slice(0,x.B.length)!=x.B;){K=W.next();if(K.done)return K;K=K.value}return g.KZ(Q?K.slice(x.B.length):x.U.get(K))};
return D};mS.prototype.getValue=function(){return this.U};
mS.prototype.clone=function(){return new mS(this.B,this.U)};g.R=Nh.prototype;g.R.YN=function(Q,W){var x=this.B;x.push(new mS(Q,W));Q=x.length-1;W=this.B;for(x=W[Q];Q>0;){var D=Q-1>>1;if(W[D].B>x.B)W[Q]=W[D],Q=D;else break}W[Q]=x};
g.R.remove=function(){var Q=this.B,W=Q.length,x=Q[0];if(!(W<=0)){if(W==1)Q.length=0;else{Q[0]=Q.pop();Q=0;W=this.B;for(var D=W.length,K=W[Q];Q<D>>1;){var l=Q*2+1,M=Q*2+2;l=M<D&&W[M].B<W[l].B?M:l;if(W[l].B>K.B)break;W[Q]=W[l];Q=l}W[Q]=K}return x.getValue()}};
g.R.dY=function(){for(var Q=this.B,W=[],x=Q.length,D=0;D<x;D++)W.push(Q[D].getValue());return W};
g.R.v8=function(){for(var Q=this.B,W=[],x=Q.length,D=0;D<x;D++)W.push(Q[D].B);return W};
g.R.clone=function(){return new Nh(this)};
g.R.isEmpty=function(){return this.B.length===0};
g.R.clear=function(){this.B.length=0};g.n(cg,Nh);cg.prototype.enqueue=function(Q,W){this.YN(Q,W)};gk.Ur=void 0;gk.getInstance=function(){return gk.Ur?gk.Ur:gk.Ur=new gk};
gk.prototype.B=0;var yu={},ceR=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";yu.assign=function(Q){for(var W=Array.prototype.slice.call(arguments,1);W.length;){var x=W.shift();if(x){if(typeof x!=="object")throw new TypeError(x+"must be non-object");for(var D in x)Object.prototype.hasOwnProperty.call(x,D)&&(Q[D]=x[D])}}return Q};
yu.hm=function(Q,W){if(Q.length===W)return Q;if(Q.subarray)return Q.subarray(0,W);Q.length=W;return Q};
var gF7={Fq:function(Q,W,x,D,K){if(W.subarray&&Q.subarray)Q.set(W.subarray(x,x+D),K);else for(var l=0;l<D;l++)Q[K+l]=W[x+l]},
rO:function(Q){var W,x;var D=x=0;for(W=Q.length;D<W;D++)x+=Q[D].length;var K=new Uint8Array(x);D=x=0;for(W=Q.length;D<W;D++){var l=Q[D];K.set(l,x);x+=l.length}return K}},yee={Fq:function(Q,W,x,D,K){for(var l=0;l<D;l++)Q[K+l]=W[x+l]},
rO:function(Q){return[].concat.apply([],Q)}};
yu.Taj=function(){ceR?(yu.Cd=Uint8Array,yu.Nz=Uint16Array,yu.JG=Int32Array,yu.assign(yu,gF7)):(yu.Cd=Array,yu.Nz=Array,yu.JG=Array,yu.assign(yu,yee))};
yu.Taj();var eYk=!0;try{new Uint8Array(1)}catch(Q){eYk=!1};var kP={};kP=function(Q,W,x,D){var K=Q&65535|0;Q=Q>>>16&65535|0;for(var l;x!==0;){l=x>2E3?2E3:x;x-=l;do K=K+W[D++]|0,Q=Q+K|0;while(--l);K%=65521;Q%=65521}return K|Q<<16|0};for(var XP={},Xb,f7C=[],oV=0;oV<256;oV++){Xb=oV;for(var Z5q=0;Z5q<8;Z5q++)Xb=Xb&1?3988292384^Xb>>>1:Xb>>>1;f7C[oV]=Xb}XP=function(Q,W,x,D){x=D+x;for(Q^=-1;D<x;D++)Q=Q>>>8^f7C[(Q^W[D])&255];return Q^-1};var l$={};l$={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 FK=[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],Wv=[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],qan=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],CxO=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],wT=Array(576);e$(wT);var SS=Array(60);e$(SS);var Qo=Array(512);e$(Qo);var EI=Array(256);e$(EI);var tU=Array(29);e$(tU);var xP=Array(30);e$(xP);var AHa,HZD,U7a,iZ2=!1;var Vo;Vo=[new nv(0,0,0,0,function(Q,W){var x=65535;for(x>Q.Mk-5&&(x=Q.Mk-5);;){if(Q.IW<=1){o2(Q);if(Q.IW===0&&W===0)return 1;if(Q.IW===0)break}Q.Ni+=Q.IW;Q.IW=0;var D=Q.F4+x;if(Q.Ni===0||Q.Ni>=D)if(Q.IW=Q.Ni-D,Q.Ni=D,b$(Q,!1),Q.Gx.OT===0)return 1;if(Q.Ni-Q.F4>=Q.xp-262&&(b$(Q,!1),Q.Gx.OT===0))return 1}Q.YN=0;if(W===4)return b$(Q,!0),Q.Gx.OT===0?3:4;Q.Ni>Q.F4&&b$(Q,!1);return 1}),
new nv(4,4,8,4,u$),new nv(4,5,16,8,u$),new nv(4,6,32,32,u$),new nv(4,4,16,16,YP),new nv(8,16,32,32,YP),new nv(8,16,128,128,YP),new nv(8,32,128,256,YP),new nv(32,128,258,1024,YP),new nv(32,258,258,4096,YP)];var d72={};d72=function(){this.input=null;this.rr=this.mE=this.vl=0;this.output=null;this.dT=this.OT=this.Ng=0;this.msg="";this.state=null;this.p$=2;this.yp=0};var BJs=Object.prototype.toString;
Pv.prototype.push=function(Q,W){var x=this.Gx,D=this.options.chunkSize;if(this.ended)return!1;var K=W===~~W?W:W===!0?4:0;typeof Q==="string"?x.input=svQ(Q):BJs.call(Q)==="[object ArrayBuffer]"?x.input=new Uint8Array(Q):x.input=Q;x.vl=0;x.mE=x.input.length;do{x.OT===0&&(x.output=new yu.Cd(D),x.Ng=0,x.OT=D);Q=GND(x,K);if(Q!==1&&Q!==0)return this.DU(Q),this.ended=!0,!1;if(x.OT===0||x.mE===0&&(K===4||K===2))if(this.options.nY==="string"){var l=yu.hm(x.output,x.Ng);W=l;l=l.length;if(l<65537&&(W.subarray&&
eYk||!W.subarray))W=String.fromCharCode.apply(null,yu.hm(W,l));else{for(var M="",w=0;w<l;w++)M+=String.fromCharCode(W[w]);W=M}this.chunks.push(W)}else W=yu.hm(x.output,x.Ng),this.chunks.push(W)}while((x.mE>0||x.OT===0)&&Q!==1);if(K===4)return(x=this.Gx)&&x.state?(D=x.state.status,D!==42&&D!==69&&D!==73&&D!==91&&D!==103&&D!==113&&D!==666?Q=jS(x,-2):(x.state=null,Q=D===113?jS(x,-3):0)):Q=-2,this.DU(Q),this.ended=!0,Q===0;K===2&&(this.DU(0),x.OT=0);return!0};
Pv.prototype.DU=function(Q){Q===0&&(this.result=this.options.nY==="string"?this.chunks.join(""):yu.rO(this.chunks));this.chunks=[];this.err=Q;this.msg=this.Gx.msg};var Cv="@@redux/INIT"+vv(),gkO="@@redux/REPLACE"+vv();var yH4=typeof Symbol==="function"&&Symbol.observable||"@@observable";var LJY=[0,tn1,-3,Dp];g.n(hx,mp);hx.prototype.getType=function(){return op(this,11)};var DGa=function(){var Q=[0,WJJ,QqY,tR,tn1,tR,-1,Dp,tn1,Dp,-1,WJJ,Dp,QqY,Qe,LJY,tR,-1,Dp];return function(W,x){if(FQ.length){var D=FQ.pop();d3F(D,x);D.B.init(W,void 0,void 0,x);W=D}else W=new HV(W,x);try{var K=new hx,l=K.pn;l5(Q)(l,W);var M=K}finally{W.free()}return M}}();var Lbl=-383628134;var Kxn=new g.a2("adInfoDialogEndpoint");var Jb2=new g.a2("adPingingEndpoint");var ZbD=new g.a2("crossDeviceProgressCommand");var xO=new g.a2("actionCompanionAdRenderer");var b7=new g.a2("adActionInterstitialRenderer");var reJ=new g.a2("adDurationRemainingRenderer");var BD=new g.a2("adHoverTextButtonRenderer");var x8F=new g.a2("adInfoDialogRenderer");var Ys=new g.a2("adMessageRenderer");var $O=new g.a2("adPreviewRenderer");var KU=new g.a2("adsEngagementPanelRenderer");var Y2a=new g.a2("dismissablePanelTextPortraitImageRenderer");var owF=new g.a2("adsEngagementPanelSectionListViewModel");var T1u=new g.a2("flyoutCtaRenderer");var Dy=new g.a2("imageCompanionAdRenderer");var ww=new g.a2("instreamAdPlayerOverlayRenderer");var Jq5=new g.a2("instreamSurveyAdBackgroundImageRenderer");var qB=new g.a2("instreamSurveyAdPlayerOverlayRenderer");var X_=new g.a2("instreamSurveyAdRenderer"),US=new g.a2("instreamSurveyAdSingleSelectQuestionRenderer"),HD=new g.a2("instreamSurveyAdMultiSelectQuestionRenderer"),uE=new g.a2("instreamSurveyAdAnswerRenderer"),O55=new g.a2("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var zv=new g.a2("instreamVideoAdRenderer");var EFR=new g.a2("textOverlayAdContentRenderer"),FJs=new g.a2("enhancedTextOverlayAdContentRenderer"),tpR=new g.a2("imageOverlayAdContentRenderer");var Sm=new g.a2("playerOverlayLayoutRenderer");var sC=new g.a2("videoInterstitialButtonedCenteredLayoutRenderer");var Cl5=new g.a2("aboveFeedAdLayoutRenderer");var Jyz=new g.a2("belowPlayerAdLayoutRenderer");var vwO=new g.a2("inPlayerAdLayoutRenderer");var YO=new g.a2("playerBytesAdLayoutRenderer");var A3=new g.a2("playerBytesSequenceItemAdLayoutRenderer");var i6=new g.a2("playerUnderlayAdLayoutRenderer");var kO=new g.a2("adIntroRenderer");var b6=new g.a2("playerBytesSequentialLayoutRenderer");var xbF=new g.a2("slidingTextPlayerOverlayRenderer");var oQ=new g.a2("surveyTextInterstitialRenderer");var nU=new g.a2("videoAdTrackingRenderer");var Q37=new g.a2("simpleAdBadgeRenderer");var Re=new g.a2("skipAdRenderer"),WHJ=new g.a2("skipButtonRenderer");var cD=new g.a2("adSlotRenderer");var Gv=new g.a2("squeezebackPlayerSidePanelRenderer");var x3R=new g.a2("timedPieCountdownRenderer");var gb=new g.a2("adAvatarViewModel");var yd=new g.a2("adBadgeViewModel");var eU=new g.a2("adButtonViewModel");var D37=new g.a2("adDetailsLineViewModel");var KHJ=new g.a2("adDisclosureBannerViewModel");var lX1=new g.a2("adPodIndexViewModel");var j31=new g.a2("imageBackgroundViewModel");var MJk=new g.a2("adGridCardCollectionViewModel");var Rce=new g.a2("adGridCardTextViewModel");var w1J=new g.a2("adPreviewViewModel");var SgF=new g.a2("playerAdAvatarLockupCardButtonedViewModel");var bPJ=new g.a2("skipAdButtonViewModel");var s35=new g.a2("skipAdViewModel");var zcY=new g.a2("timedPieCountdownViewModel");var kSA=new g.a2("visitAdvertiserLinkViewModel");var l6=new g.a2("bannerImageLayoutViewModel");var jN=new g.a2("topBannerImageTextIconButtonedLayoutViewModel");var MB=new g.a2("adsEngagementPanelLayoutViewModel");var d9=new g.a2("displayUnderlayTextGridCardsLayoutViewModel");g.hf=new g.a2("browseEndpoint");var X1k=new g.a2("confirmDialogEndpoint");var W1v=new g.a2("commandContext");var hzF=new g.a2("rawColdConfigGroup");var pkD=new g.a2("rawHotConfigGroup");g.uK=new g.a2("commandExecutorCommand");g.n(OZF,mp);var wjO={cx9:0,YX9:1,Wb9:32,SX3:61,x57:67,Za7:103,VS3:86,ia7:42,Cu3:60,sn5:62,tSf:73,AxZ:76,Tz7:88,nJf:90,qp5:99,Haj:98,bY7:100,h1j:102,u$7:41,pFf:69,B3j:70,U5t:71,LC3:2,ER3:27,ANDROID:3,Cfp:54,Pff:14,bR3:91,Avj:55,htf:24,tLj:20,Sst:18,VL9:21,ZA3:104,q25:30,BxZ:29,Un3:28,gJp:101,mn3:34,xnj:36,aE3:38,IOS:5,c99:15,GF5:92,XMf:40,dHj:25,L11:17,EG5:19,vGZ:64,gG7:66,jh9:26,YGf:22,esj:33,sht:68,zsp:35,oG3:53,r93:37,lSf:39,pit:7,Bzf:57,UW3:43,yx3:59,mWj:93,p9j:74,Fb1:75,DW1:85,Nz7:65,kV3:80,fMp:8,qX3:10,
Jx1:58,Qn3:63,Kb3:72,uG1:23,FVZ:11,D5Z:13,w9j:12,u_S:16,OaS:56,aMZ:31,XL3:77,Wf3:84,Pu5:87,PmZ:89,Cmj:94,BYj:95};g.n(GK,mp);GK.prototype.Lo=function(){return Xt(this,3)};
GK.prototype.Yj=function(){return Xt(this,5)};
GK.prototype.zm=function(Q){return YL(this,5,Q)};g.n(dT,mp);g.n(Eks,mp);g.n(i$,mp);g.R=i$.prototype;g.R.getDeviceId=function(){return Xt(this,6)};
g.R.A$=function(Q){var W=rf(this,9,z3,3,!0);fP(W,Q);return W[Q]};
g.R.getPlayerType=function(){return op(this,36)};
g.R.setHomeGroupInfo=function(Q){return wc(this,Eks,81,Q)};
g.R.clearLocationPlayabilityToken=function(){return gf(this,89)};g.n(Ax,mp);Ax.prototype.getValue=function(){return Xt(this,KR(this,Cy5)===2?2:-1)};
var Cy5=[2,3,4,5,6];g.n(Hv,mp);Hv.prototype.setTrackingParams=function(Q){return gf(this,1,GR1(Q,!1))};g.n(Ub,mp);g.n(q1,mp);q1.prototype.A$=function(Q){var W=rf(this,5,XF,3,!0);fP(W,Q);return W[Q]};g.n(Bv,mp);Bv.prototype.getToken=function(){return z1(this,2)};
Bv.prototype.setToken=function(Q){return YL(this,2,Q)};g.n($P,mp);$P.prototype.setSafetyMode=function(Q){return VH(this,5,Q)};g.n(I2,mp);I2.prototype.Zv=function(Q){return wc(this,i$,1,Q)};var mF=new g.a2("thumbnailLandscapePortraitRenderer");g.o8C=new g.a2("changeEngagementPanelVisibilityAction");var G$F=new g.a2("continuationCommand");g.ufY=new g.a2("openPopupAction");g.Yf=new g.a2("webCommandMetadata");var mBh=new g.a2("metadataBadgeRenderer");var aVO=new g.a2("signalServiceEndpoint");var IG=new g.a2("innertubeCommand");var X3a=new g.a2("loggingDirectives");var $nh={QI3:"EMBEDDED_PLAYER_MODE_UNKNOWN",Kf9:"EMBEDDED_PLAYER_MODE_DEFAULT",fV9:"EMBEDDED_PLAYER_MODE_PFP",kH7:"EMBEDDED_PLAYER_MODE_PFL"};var b_1=new g.a2("channelThumbnailEndpoint");var SfF=new g.a2("embeddedPlayerErrorMessageRenderer");var jP1=new g.a2("embeddedPlayerOverlayVideoDetailsRenderer"),sPQ=new g.a2("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),zi1=new g.a2("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var B9h=new g.a2("embedsInfoPanelRenderer");var YgA=new g.a2("feedbackEndpoint");var n8F=new g.a2("callToActionButtonViewModel");var VJk=new g.a2("interactionLoggingCommandMetadata");var Hv5={IMf:"WEB_DISPLAY_MODE_UNKNOWN",z1S:"WEB_DISPLAY_MODE_BROWSER",MS9:"WEB_DISPLAY_MODE_MINIMAL_UI",R1t:"WEB_DISPLAY_MODE_STANDALONE",wif:"WEB_DISPLAY_MODE_FULLSCREEN"};g.n(cv,mp);cv.prototype.getPlayerType=function(){return op(this,7)};
cv.prototype.XX=function(){return Xt(this,19)};
cv.prototype.setVideoId=function(Q){return YL(this,19,Q)};g.n(gT,mp);g.n(yo,mp);g.n(eS,mp);
var PZH=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516];var v8u=new g.a2("loggingContext");g.n(fv,mp);g.n(Z9,mp);Z9.prototype.XX=function(){return z1(this,KR(this,S0)===1?1:-1)};
Z9.prototype.setVideoId=function(Q){return xL(this,1,S0,J$(Q))};
Z9.prototype.getPlaylistId=function(){return z1(this,KR(this,S0)===2?2:-1)};
var S0=[1,2];g.n(Fbh,mp);var WX=new g.a2("changeKeyedMarkersVisibilityCommand");var CZH=new g.a2("changeMarkersVisibilityCommand");var c3D=new g.a2("loadMarkersCommand");var JmC=new g.a2("suggestedActionDataViewModel");var MAO=new g.a2("timelyActionViewModel");var j7F=new g.a2("timelyActionsOverlayViewModel");var SK1=new g.a2("productListItemRenderer");var p1k=new g.a2("shoppingOverlayRenderer");var Ms1=new g.a2("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var hcR=new g.a2("adFeedbackEndpoint");var aXq=new g.a2("menuEndpoint");var JR5=new g.a2("phoneDialerEndpoint");var v5z=new g.a2("sendSmsEndpoint");var lOO=new g.a2("copyTextEndpoint");var GSs=new g.a2("shareEndpoint"),d3A=new g.a2("shareEntityEndpoint"),iPJ=new g.a2("shareEntityServiceEndpoint"),Am5=new g.a2("webPlayerShareEntityServiceEndpoint");g.$_=new g.a2("urlEndpoint");g.tQ=new g.a2("watchEndpoint");var HPR=new g.a2("watchPlaylistEndpoint");g.U35=new g.a2("offlineOrchestrationActionCommand");var rJh=new g.a2("compositeVideoOverlayRenderer");var qgs=new g.a2("miniplayerRenderer");var DSz=new g.a2("paidContentOverlayRenderer");var Bl7=new g.a2("playerMutedAutoplayOverlayRenderer"),$3C=new g.a2("playerMutedAutoplayEndScreenRenderer");var Eev=new g.a2("unserializedPlayerResponse"),IX7=new g.a2("unserializedPlayerResponse");var m3s=new g.a2("playlistEditEndpoint");var no;g.IQ=new g.a2("buttonRenderer");no=new g.a2("toggleButtonRenderer");var XQ2=new g.a2("counterfactualRenderer");var NlH=new g.a2("resolveUrlCommandMetadata");var cmR=new g.a2("modifyChannelNotificationPreferenceEndpoint");var CtF=new g.a2("pingingEndpoint");var g8p=new g.a2("unsubscribeEndpoint");g.a4=new g.a2("subscribeButtonRenderer");var ymk=new g.a2("subscribeEndpoint");var pc4=new g.a2("buttonViewModel");var uGh=new g.a2("qrCodeRenderer");var b$1={ZuS:"LIVING_ROOM_APP_MODE_UNSPECIFIED",SGp:"LIVING_ROOM_APP_MODE_MAIN",hs3:"LIVING_ROOM_APP_MODE_KIDS",aS9:"LIVING_ROOM_APP_MODE_MUSIC",Ve3:"LIVING_ROOM_APP_MODE_UNPLUGGED",A93:"LIVING_ROOM_APP_MODE_GAMING"};var HUv=new g.a2("autoplaySwitchButtonRenderer");var hQ,Efl,KF4,RAa;hQ=new g.a2("decoratedPlayerBarRenderer");Efl=new g.a2("chapteredPlayerBarRenderer");KF4=new g.a2("multiMarkersPlayerBarRenderer");RAa=new g.a2("chapterRenderer");g.WEz=new g.a2("markerRenderer");var ecA=new g.a2("decoratedPlayheadRenderer");var $Bv=new g.a2("desktopOverlayConfigRenderer");var nw4=new g.a2("engagementPanelSectionListRenderer");var qSl=new g.a2("gatedActionsOverlayViewModel");var lZv=new g.a2("heatMarkerRenderer");var KED=new g.a2("heatmapRenderer");var N91=new g.a2("watchToWatchTransitionRenderer");var Rin=new g.a2("playlistPanelRenderer");var fXF=new g.a2("productUpsellSuggestedActionViewModel");var ZPA=new g.a2("suggestedActionTimeRangeTrigger"),LH1=new g.a2("suggestedActionsRenderer"),rmY=new g.a2("suggestedActionRenderer");var jR5=new g.a2("timedMarkerDecorationRenderer");var P7l=new g.a2("cipher");var Fma=new g.a2("playerVars");var Tle=new g.a2("playerVars");var Ve=g.Nz.window,OPF,E8R,Lv=(Ve==null?void 0:(OPF=Ve.yt)==null?void 0:OPF.config_)||(Ve==null?void 0:(E8R=Ve.ytcfg)==null?void 0:E8R.data_)||{};g.g4("yt.config_",Lv);var Eb=[];var Rpn=/^[\w.]*$/,KiF={q:!0,search_query:!0},DnO=String(Wb);var bY=new function(){var Q=window.document;this.B=window;this.U=Q};
g.g4("yt.ads_.signals_.getAdSignalsString",function(Q){return x1(zG(Q))});g.QA();var S35="XMLHttpRequest"in g.Nz?function(){return new XMLHttpRequest}:null;var FHs="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.C(FHs);var kdn={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"},Xtn="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.C(FHs)),CpO=!1,sb4=oB4,Vln=pl;g.n(GG,n5);AS.prototype.then=function(Q,W,x){return this.B?this.B.then(Q,W,x):this.D===1&&Q?(Q=Q.call(x,this.U))&&typeof Q.then==="function"?Q:Uk(Q):this.D===2&&W?(Q=W.call(x,this.U))&&typeof Q.then==="function"?Q:Hb(Q):this};
AS.prototype.getValue=function(){return this.U};
AS.prototype.$goog_Thenable=!0;var qO=!1;var LX=Ok||Ek;var q35=/^([0-9\.]+):([0-9\.]+)$/;g.n(sd,n5);sd.prototype.name="BiscottiError";g.n(by,n5);by.prototype.name="BiscottiMissingError";var mnD={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},zT=null;var a3l=kQ(["data-"]),r22={};var tJJ=0,kY=g.O6?"webkit":bq?"moz":g.kR?"ms":g.aO?"o":"",QLe=g.yF("ytDomDomGetNextId")||function(){return++tJJ};
g.g4("ytDomDomGetNextId",QLe);var FiF={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};VB.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
VB.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
VB.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Pk=g.Nz.ytEventsEventsListeners||{};g.g4("ytEventsEventsListeners",Pk);var WS1=g.Nz.ytEventsEventsCounter||{count:0};g.g4("ytEventsEventsCounter",WS1);var lEh=s7(function(){var Q=!1;try{var W=Object.defineProperty({},"passive",{get:function(){Q=!0}});
window.addEventListener("test",null,W)}catch(x){}return Q}),xhh=s7(function(){var Q=!1;
try{var W=Object.defineProperty({},"capture",{get:function(){Q=!0}});
window.addEventListener("test",null,W)}catch(x){}return Q});var PU;PU=window;g.a8=PU.ytcsi&&PU.ytcsi.now?PU.ytcsi.now:PU.performance&&PU.performance.timing&&PU.performance.now&&PU.performance.timing.navigationStart?function(){return PU.performance.timing.navigationStart+PU.performance.now()}:function(){return(new Date).getTime()};g.Wu(hl,g.N);hl.prototype.T=function(Q){Q.B===void 0&&tl5(Q);var W=Q.B;Q.U===void 0&&tl5(Q);this.B=new g.k6(W,Q.U)};
hl.prototype.RX=function(){return this.B||new g.k6};
hl.prototype.uj=function(){if(this.B){var Q=(0,g.a8)();if(this.N!=0){var W=this.X,x=this.B,D=W.x-x.x;W=W.y-x.y;D=Math.sqrt(D*D+W*W)/(Q-this.N);this.U[this.D]=Math.abs((D-this.L)/this.L)>.5?1:0;for(x=W=0;x<4;x++)W+=this.U[x]||0;W>=3&&this.G();this.L=D}this.N=Q;this.X=this.B;this.D=(this.D+1)%4}};
hl.prototype.U3=function(){g.nl(this.S);g.Cw(this.pS)};g.n(aC,g.N);aC.prototype.W=function(Q,W,x,D,K){x=g.tx((0,g.FD)(x,D||this.Vj));x={target:Q,name:W,callback:x};var l;K&&lEh()&&(l={passive:!0});Q.addEventListener(W,x.callback,l);this.G.push(x);return x};
aC.prototype.mJ=function(Q){for(var W=0;W<this.G.length;W++)if(this.G[W]==Q){this.G.splice(W,1);Q.target.removeEventListener(Q.name,Q.callback);break}};
aC.prototype.U3=function(){g.d3(this);g.N.prototype.U3.call(this)};iy.prototype.clone=function(){var Q=new iy,W;for(W in this)if(this.hasOwnProperty(W)){var x=this[W];Q[W]=Z5(x)=="object"?g.HZ(x):x}return Q};var H_n=["att/get"],qDa=["embedded_player"],bh5=["account/get_setting_values"],WL1=["share/get_share_panel"],xae=["share/get_web_player_share_panel"],Da1=["feedback"],KLu=["notification/modify_channel_preference"],L32=["player"],l3F=["browse/edit_playlist"],kn4=["account/set_setting"],jLA=["subscription/subscribe"],Mju=["subscription/unsubscribe"],EqD=["next","unplugged/watch_next"];var Hk;g.Al=s7(function(){try{var Q=new Bg;var W=Q.isAvailable()?Q:null}catch(x){return null}return W?new g.AU(W):null});
Hk=s7(function(){var Q=new wF5;return Q.isAvailable()?new g.AU(Q):null});g.RZH=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.g4("yt.msgs_",g.RZH);me.prototype.Un=function(Q,W){Q={};var x=[];"USER_SESSION_ID"in Lv&&x.push({key:"u",value:g.TK("USER_SESSION_ID")});if(x=eZs(x))Q.Authorization=x,x=W=W==null?void 0:W.sessionIndex,x===void 0&&(x=Number(g.TK("SESSION_INDEX",0)),x=isNaN(x)?0:x),g.Pb("voice_search_auth_header_removal")||(Q["X-Goog-AuthUser"]=x.toString()),"INNERTUBE_HOST_OVERRIDE"in Lv||(Q["X-Origin"]=window.location.origin),W===void 0&&"DELEGATED_SESSION_ID"in Lv&&(Q["X-Goog-PageId"]=g.TK("DELEGATED_SESSION_ID"));return Q};var sh={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var yB=g.yF("ytglobal.prefsUserPrefsPrefs_")||{};g.g4("ytglobal.prefsUserPrefsPrefs_",yB);var NW;g.R=bTl.prototype;g.R.get=function(Q,W){Z0(Q);fw(Q);Q=yB[Q]!==void 0?yB[Q].toString():null;return Q!=null?Q:W?W:""};
g.R.set=function(Q,W){Z0(Q);fw(Q);if(W==null)throw Error("ExpectedNotNull");yB[Q]=W.toString()};
g.R.remove=function(Q){Z0(Q);fw(Q);delete yB[Q]};
g.R.save=function(){var Q=!0;g.Pb("web_secure_pref_cookie_killswitch")&&(Q=!1);g.$1(this.B,this.dump(),63072E3,this.U,Q)};
g.R.clear=function(){g.r$2(yB)};
g.R.dump=function(){var Q=[],W;for(W in yB)yB.hasOwnProperty(W)&&Q.push(W+"="+encodeURIComponent(String(yB[W])));return Q.join("&")};
g.R.parse=function(Q){Q=decodeURIComponent(Q).split("&");for(var W=0;W<Q.length;W++){var x=Q[W].split("="),D=x[0];(x=x[1])&&(yB[D]=x.toString())}};var kyn={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"},U1z={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},qb1={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},oRs={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.n(g.Lw,Error);Od.prototype.zK=function(Q,W){return Ed(Q,1,W)};
Od.prototype.wB=function(Q){(Q=this.B.get(Q))&&Q()};g.yF("yt.scheduler.instance.timerIdMap_");g.n(tl,Od);tl.prototype.TA=function(Q){if(Q===void 0||!Number.isNaN(Number(Q))){var W=g.yF("yt.scheduler.instance.cancelJob");W?W(Q):g.Y1(Q)}};
tl.prototype.start=function(){var Q=g.yF("yt.scheduler.instance.start");Q&&Q()};
tl.prototype.pause=function(){var Q=g.yF("yt.scheduler.instance.pause");Q&&Q()};
g.ct=g.QX();DL.prototype.set=function(Q,W,x,D){x=x||31104E3;this.remove(Q);if(this.B)try{this.B.set(Q,W,Date.now()+x*1E3);return}catch(l){}var K="";if(D)try{K=escape(g.aj(W))}catch(l){return}else K=escape(W);g.$1(Q,K,x,this.U)};
DL.prototype.get=function(Q,W){var x=void 0,D=!this.B;if(!D)try{x=this.B.get(Q)}catch(K){D=!0}if(D&&(x=g.Ic(Q))&&(x=unescape(x),W))try{x=JSON.parse(x)}catch(K){this.remove(Q),x=void 0}return x};
DL.prototype.remove=function(Q){this.B&&this.B.remove(Q);g.m2(Q,"/",this.U)};
DL.prototype.getCreationTime=function(Q){return this.B&&(Q=(this.B.U(Q)||{}).creation,typeof Q==="number")?Q:null};var KX=function(){var Q;return function(){Q||(Q=new DL("ytidb"));return Q}}();var SM=[],jM,bJ=!1;var vU={},V$F=(vU.AUTH_INVALID="No user identifier specified.",vU.EXPLICIT_ABORT="Transaction was explicitly aborted.",vU.IDB_NOT_SUPPORTED="IndexedDB is not supported.",vU.MISSING_INDEX="Index not created.",vU.MISSING_OBJECT_STORES="Object stores not created.",vU.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",vU.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",vU.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",vU.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",vU.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",vU.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",vU.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",vU),Co={},PfQ=(Co.AUTH_INVALID="ERROR",Co.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Co.EXPLICIT_ABORT="IGNORED",
Co.IDB_NOT_SUPPORTED="ERROR",Co.MISSING_INDEX="WARNING",Co.MISSING_OBJECT_STORES="ERROR",Co.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Co.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Co.QUOTA_EXCEEDED="WARNING",Co.QUOTA_MAYBE_EXCEEDED="WARNING",Co.UNKNOWN_ABORT="WARNING",Co.INCOMPATIBLE_DB_VERSION="WARNING",Co),J1={},vRl=(J1.AUTH_INVALID=!1,J1.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,J1.EXPLICIT_ABORT=!1,J1.IDB_NOT_SUPPORTED=!1,J1.MISSING_INDEX=!1,J1.MISSING_OBJECT_STORES=!1,J1.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,J1.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,J1.QUOTA_EXCEEDED=!1,J1.QUOTA_MAYBE_EXCEEDED=!0,J1.UNKNOWN_ABORT=!0,J1.INCOMPATIBLE_DB_VERSION=!1,J1);g.n(g.o8,g.Lw);g.n(uJ,g.o8);g.n(YD,Error);var Cf5=["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.CX.all=function(Q){return new g.CX(new vs(function(W,x){var D=[],K=Q.length;K===0&&W(D);for(var l={Ne:0};l.Ne<Q.length;l={Ne:l.Ne},++l.Ne)g.CX.resolve(Q[l.Ne]).then(function(M){return function(w){D[M.Ne]=w;K--;K===0&&W(D)}}(l)).catch(function(M){x(M)})}))};
g.CX.resolve=function(Q){return new g.CX(new vs(function(W,x){Q instanceof g.CX?Q.then(W,x):W(Q)}))};
g.CX.reject=function(Q){return new g.CX(new vs(function(W,x){x(Q)}))};
g.CX.prototype.then=function(Q,W){var x=this,D=Q!=null?Q:pg1,K=W!=null?W:JUO;return new g.CX(new vs(function(l,M){x.state.status==="PENDING"?(x.B.push(function(){hQ2(x,x,D,l,M)}),x.U.push(function(){aEl(x,x,K,l,M)})):x.state.status==="FULFILLED"?hQ2(x,x,D,l,M):x.state.status==="REJECTED"&&aEl(x,x,K,l,M)}))};
g.CX.prototype.catch=function(Q){return this.then(void 0,Q)};g.R=UhF.prototype;g.R.add=function(Q,W,x){return g.A4(this,[Q],{mode:"readwrite",dG:!0},function(D){return D.objectStore(Q).add(W,x)})};
g.R.clear=function(Q){return g.A4(this,[Q],{mode:"readwrite",dG:!0},function(W){return W.objectStore(Q).clear()})};
g.R.close=function(){this.B.close();var Q;((Q=this.options)==null?0:Q.closed)&&this.options.closed()};
g.R.count=function(Q,W){return g.A4(this,[Q],{mode:"readonly",dG:!0},function(x){return x.objectStore(Q).count(W)})};
g.R.delete=function(Q,W){return g.A4(this,[Q],{mode:"readwrite",dG:!0},function(x){return x.objectStore(Q).delete(W)})};
g.R.get=function(Q,W){return g.A4(this,[Q],{mode:"readonly",dG:!0},function(x){return x.objectStore(Q).get(W)})};
g.R.getAll=function(Q,W,x){return g.A4(this,[Q],{mode:"readonly",dG:!0},function(D){return D.objectStore(Q).getAll(W,x)})};
g.R.objectStoreNames=function(){return Array.from(this.B.objectStoreNames)};
g.R.getName=function(){return this.B.name};
g.R=Gj.prototype;g.R.add=function(Q,W){return pX(this.B.add(Q,W))};
g.R.autoIncrement=function(){return this.B.autoIncrement};
g.R.clear=function(){return pX(this.B.clear()).then(function(){})};
g.R.count=function(Q){return pX(this.B.count(Q))};
g.R.delete=function(Q){return Q instanceof IDBKeyRange?IEO(this,Q):pX(this.B.delete(Q))};
g.R.get=function(Q){return pX(this.B.get(Q))};
g.R.getAll=function(Q,W){return"getAll"in IDBObjectStore.prototype?pX(this.B.getAll(Q,W)):mhl(this,Q,W)};
g.R.index=function(Q){try{return new yUh(this.B.index(Q))}catch(W){if(W instanceof Error&&W.name==="NotFoundError")throw new YD(Q,this.B.name);throw W;}};
g.R.getName=function(){return this.B.name};
g.R.keyPath=function(){return this.B.keyPath};
q5.prototype.abort=function(){this.B.abort();this.U=!0;throw new g.o8("EXPLICIT_ABORT");};
q5.prototype.objectStore=function(Q){Q=this.B.objectStore(Q);var W=this.D.get(Q);W||(W=new Gj(Q),this.D.set(Q,W));return W};
g.R=yUh.prototype;g.R.count=function(Q){return pX(this.B.count(Q))};
g.R.delete=function(Q){return g.N5(this,{query:Q},function(W){return W.delete().then(function(){return g.I8(W)})})};
g.R.get=function(Q){return pX(this.B.get(Q))};
g.R.getAll=function(Q,W){return"getAll"in IDBIndex.prototype?pX(this.B.getAll(Q,W)):eQF(this,Q,W)};
g.R.keyPath=function(){return this.B.keyPath};
g.R.unique=function(){return this.B.unique};
cs.prototype.delete=function(){return pX(this.cursor.delete()).then(function(){})};
cs.prototype.getValue=function(){return this.cursor.value};
cs.prototype.update=function(Q){return pX(this.cursor.update(Q))};yX.prototype.U=function(Q,W,x){x=x===void 0?{}:x;return ZTn(Q,W,x)};
yX.prototype.delete=function(Q){Q=Q===void 0?{}:Q;return gV(this.name,Q)};
yX.prototype.open=function(){function Q(){var l,M,w,S,b,z,k,X,u,Y;return g.U(function(v){switch(v.B){case 1:return M=(l=Error().stack)!=null?l:"",g.P5(v,2),g.A(v,x.U(x.name,x.options.version,K),4);case 4:for(var J=w=v.U,h=x.options,G=[],H=g.V(Object.keys(h.mZ)),I=H.next();!I.done;I=H.next()){I=I.value;var c=h.mZ[I],O=c.Qzp===void 0?Number.MAX_VALUE:c.Qzp;!(J.B.version>=c.yd)||J.B.version>=O||J.B.objectStoreNames.contains(I)||G.push(I)}S=G;if(S.length===0){v.kf(5);break}b=Object.keys(x.options.mZ);
z=w.objectStoreNames();if(x.L<g.vb("ytidb_reopen_db_retries",0))return x.L++,w.close(),sU(new g.o8("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:x.name,expectedObjectStores:b,foundObjectStores:z})),v.return(Q());if(!(x.N<g.vb("ytidb_remake_db_retries",1))){v.kf(6);break}x.N++;return g.A(v,x.delete(),7);case 7:return sU(new g.o8("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:x.name,expectedObjectStores:b,foundObjectStores:z})),v.return(Q());case 6:throw new uJ(z,b);case 5:return v.return(w);case 2:k=
g.Jv(v);if(k instanceof DOMException?k.name!=="VersionError":"DOMError"in self&&k instanceof DOMError?k.name!=="VersionError":!(k instanceof Object&&"message"in k)||k.message!=="An attempt was made to open a database using a lower version than the existing version."){v.kf(8);break}return g.A(v,x.U(x.name,void 0,Object.assign({},K,{upgrade:void 0})),9);case 9:X=v.U;u=X.B.version;if(x.options.version!==void 0&&u>x.options.version+1)throw X.close(),x.D=!1,LS5(x,u);return v.return(X);case 8:throw W(),
k instanceof Error&&!g.Pb("ytidb_async_stack_killswitch")&&(k.stack=k.stack+"\n"+M.substring(M.indexOf("\n")+1)),VX(k,x.name,"",(Y=x.options.version)!=null?Y:-1);}})}
function W(){x.B===D&&(x.B=void 0)}
var x=this;if(!this.D)throw LS5(this);if(this.B)return this.B;var D,K={blocking:function(l){l.close()},
closed:W,GCf:W,upgrade:this.options.upgrade};return this.B=D=Q()};var fX=new yX("YtIdbMeta",{mZ:{databases:{yd:1}},upgrade:function(Q,W){W(1)&&g.dV(Q,"databases",{keyPath:"actualName"})}});var OU,Tj=new function(){}(new function(){});new g.XT;g.n(t4,yX);t4.prototype.U=function(Q,W,x){x=x===void 0?{}:x;return(this.options.shared?x1n:WgQ)(Q,W,Object.assign({},x))};
t4.prototype.delete=function(Q){Q=Q===void 0?{}:Q;return(this.options.shared?j25:D1s)(this.name,Q)};var w65={},R62=g.QV("ytGcfConfig",{mZ:(w65.coldConfigStore={yd:1},w65.hotConfigStore={yd:1},w65),shared:!1,upgrade:function(Q,W){W(1)&&(g.Bs(g.dV(Q,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Bs(g.dV(Q,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.n(xE,g.N);xE.prototype.U3=function(){for(var Q=g.V(this.U),W=Q.next();!W.done;W=Q.next()){var x=this.B;W=x.indexOf(W.value);W>=0&&x.splice(W,1)}this.U.length=0;g.N.prototype.U3.call(this)};R_.prototype.zm=function(Q){this.hotHashData=Q;g.g4("yt.gcf.config.hotHashData",this.hotHashData||null)};var SrJ=typeof TextEncoder!=="undefined"?new TextEncoder:null,EP1=SrJ?function(Q){return SrJ.encode(Q)}:function(Q){Q=g.C5(Q);
for(var W=new Uint8Array(Q.length),x=0;x<W.length;x++)W[x]=Q[x];return W};var MT2={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},w$h={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};z$.prototype.Rj=function(){return{version:this.version,args:this.args}};kE.prototype.toString=function(){return this.topic};var bj1=g.yF("ytPubsub2Pubsub2Instance")||new g.hU;g.hU.prototype.subscribe=g.hU.prototype.subscribe;g.hU.prototype.unsubscribeByKey=g.hU.prototype.Or;g.hU.prototype.publish=g.hU.prototype.publish;g.hU.prototype.clear=g.hU.prototype.clear;g.g4("ytPubsub2Pubsub2Instance",bj1);var uN=g.yF("ytPubsub2Pubsub2SubscribedKeys")||{};g.g4("ytPubsub2Pubsub2SubscribedKeys",uN);var YE=g.yF("ytPubsub2Pubsub2TopicToKeys")||{};g.g4("ytPubsub2Pubsub2TopicToKeys",YE);var I9Q=g.yF("ytPubsub2Pubsub2IsAsync")||{};
g.g4("ytPubsub2Pubsub2IsAsync",I9Q);g.g4("ytPubsub2Pubsub2SkipSubKey",null);var h0=void 0,pK=void 0;var rxQ=g.vb("max_body_size_to_compress",5E5),TT4=g.vb("min_body_size_to_compress",500),iN=!0,q8=0,Uh=0,Fgh=g.vb("compression_performance_threshold_lr",250),tSQ=g.vb("slow_compressions_before_abandon_count",4),G$=!1,dq=new Map,A0=1,OvF=!0;g.R=$E.prototype;g.R.writeThenSend=function(Q,W){var x=this;W=W===void 0?{}:W;if(B3(this)&&this.B){var D={url:Q,options:W,timestamp:this.now(),status:"NEW",sendCount:0};this.zC.set(D,this.YX).then(function(K){D.id=K;x.DB.yv()&&x.On(D)}).catch(function(K){x.On(D);
I_(x,K)})}else this.sendFn(Q,W)};
g.R.sendThenWrite=function(Q,W,x){var D=this;W=W===void 0?{}:W;if(B3(this)&&this.B){var K={url:Q,options:W,timestamp:this.now(),status:"NEW",sendCount:0};this.ij&&this.ij("nwl_skip_retry")&&(K.skipRetry=x);if(this.DB.yv()||this.ij&&this.ij("nwl_aggressive_send_then_write")&&!K.skipRetry){if(!K.skipRetry){var l=W.onError?W.onError:function(){};
W.onError=function(M,w){return g.U(function(S){if(S.B==1)return g.A(S,D.zC.set(K,D.YX).catch(function(b){I_(D,b)}),2);
l(M,w);g.VF(S)})}}this.sendFn(Q,W,K.skipRetry)}else this.zC.set(K,this.YX).catch(function(M){D.sendFn(Q,W,K.skipRetry);
I_(D,M)})}else x=this.ij&&this.ij("nwl_skip_retry")&&x,this.sendFn(Q,W,x)};
g.R.sendAndWrite=function(Q,W){var x=this;W=W===void 0?{}:W;if(B3(this)&&this.B){var D={url:Q,options:W,timestamp:this.now(),status:"NEW",sendCount:0},K=!1,l=W.onSuccess?W.onSuccess:function(){};
D.options.onSuccess=function(M,w){D.id!==void 0?x.zC.wf(D.id,x.YX):K=!0;x.DB.LF&&x.ij&&x.ij("vss_network_hint")&&x.DB.LF(!0);l(M,w)};
this.sendFn(D.url,D.options,void 0,!0);this.zC.set(D,this.YX).then(function(M){D.id=M;K&&x.zC.wf(D.id,x.YX)}).catch(function(M){I_(x,M)})}else this.sendFn(Q,W,void 0,!0)};
g.R.gM=function(){var Q=this;if(!B3(this))throw Error("IndexedDB is not supported: throttleSend");this.U||(this.U=this.Rp.zK(function(){var W;return g.U(function(x){if(x.B==1)return g.A(x,Q.zC.Z3("NEW",Q.YX),2);if(x.B!=3)return W=x.U,W?g.A(x,Q.On(W),3):(Q.jY(),x.return());Q.U&&(Q.U=0,Q.gM());g.VF(x)})},this.hk))};
g.R.jY=function(){this.Rp.TA(this.U);this.U=0};
g.R.On=function(Q){var W=this,x;return g.U(function(D){switch(D.B){case 1:if(!B3(W))throw Error("IndexedDB is not supported: immediateSend");if(Q.id===void 0){D.kf(2);break}return g.A(D,W.zC.JO3(Q.id,W.YX),3);case 3:(x=D.U)||W.mY(Error("The request cannot be found in the database."));case 2:if(W.tC(Q,W.Cg)){D.kf(4);break}W.mY(Error("Networkless Logging: Stored logs request expired age limit"));if(Q.id===void 0){D.kf(5);break}return g.A(D,W.zC.wf(Q.id,W.YX),5);case 5:return D.return();case 4:Q.skipRetry||
(Q=lss(W,Q));if(!Q){D.kf(0);break}if(!Q.skipRetry||Q.id===void 0){D.kf(8);break}return g.A(D,W.zC.wf(Q.id,W.YX),8);case 8:W.sendFn(Q.url,Q.options,!!Q.skipRetry),g.VF(D)}})};
g.R.tC=function(Q,W){Q=Q.timestamp;return this.now()-Q>=W?!1:!0};
g.R.V3=function(){var Q=this;if(!B3(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.zC.Z3("QUEUED",this.YX).then(function(W){W&&!Q.tC(W,Q.R6)?Q.Rp.zK(function(){return g.U(function(x){if(x.B==1)return W.id===void 0?x.kf(2):g.A(x,Q.zC.u3(W.id,Q.YX),2);Q.V3();g.VF(x)})}):Q.DB.yv()&&Q.gM()})};var mx;var dWO={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var sLR={},XbD=g.QV("ServiceWorkerLogsDatabase",{mZ:(sLR.SWHealthLog={yd:1},sLR),shared:!0,upgrade:function(Q,W){W(1)&&g.Bs(g.dV(Q,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var gq={},PYn=0;var yV;fK.prototype.requestComplete=function(Q,W){W&&(this.U=!0);Q=this.removeParams(Q);this.B.get(Q)||this.B.set(Q,W)};
fK.prototype.isEndpointCFR=function(Q){Q=this.removeParams(Q);return(Q=this.B.get(Q))?!1:Q===!1&&this.U?!0:null};
fK.prototype.removeParams=function(Q){return Q.split("?")[0]};
fK.prototype.removeParams=fK.prototype.removeParams;fK.prototype.isEndpointCFR=fK.prototype.isEndpointCFR;fK.prototype.requestComplete=fK.prototype.requestComplete;fK.getInstance=ZV;g.n(LK,g.FN);g.R=LK.prototype;g.R.yv=function(){return this.B.yv()};
g.R.LF=function(Q){this.B.B=Q};
g.R.bS3=function(){var Q=window.navigator.onLine;return Q===void 0?!0:Q};
g.R.rK=function(){this.U=!0};
g.R.listen=function(Q,W){return this.B.listen(Q,W)};
g.R.pJ=function(Q){Q=mi(this.B,Q);Q.then(function(W){g.Pb("use_cfr_monitor")&&ZV().requestComplete("generate_204",W)});
return Q};
LK.prototype.sendNetworkCheckRequest=LK.prototype.pJ;LK.prototype.listen=LK.prototype.listen;LK.prototype.enableErrorFlushing=LK.prototype.rK;LK.prototype.getWindowStatus=LK.prototype.bS3;LK.prototype.networkStatusHint=LK.prototype.LF;LK.prototype.isNetworkAvailable=LK.prototype.yv;LK.getInstance=JS4;g.n(g.rq,g.FN);g.rq.prototype.yv=function(){var Q=g.yF("yt.networkStatusManager.instance.isNetworkAvailable");return Q?Q.bind(this.U)():!0};
g.rq.prototype.LF=function(Q){var W=g.yF("yt.networkStatusManager.instance.networkStatusHint").bind(this.U);W&&W(Q)};
g.rq.prototype.pJ=function(Q){var W=this,x;return g.U(function(D){x=g.yF("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(W.U);return g.Pb("skip_network_check_if_cfr")&&ZV().isEndpointCFR("generate_204")?D.return(new Promise(function(K){var l;W.LF(((l=window.navigator)==null?void 0:l.onLine)||!0);K(W.yv())})):x?D.return(x(Q)):D.return(!0)})};var T$;g.n(Oh,$E);Oh.prototype.writeThenSend=function(Q,W){W||(W={});W=F8(Q,W);g.TT()||(this.B=!1);$E.prototype.writeThenSend.call(this,Q,W)};
Oh.prototype.sendThenWrite=function(Q,W,x){W||(W={});W=F8(Q,W);g.TT()||(this.B=!1);$E.prototype.sendThenWrite.call(this,Q,W,x)};
Oh.prototype.sendAndWrite=function(Q,W){W||(W={});W=F8(Q,W);g.TT()||(this.B=!1);$E.prototype.sendAndWrite.call(this,Q,W)};
Oh.prototype.awaitInitialization=function(){return this.D.promise};var dOF=g.Nz.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.g4("ytNetworklessLoggingInitializationOptions",dOF);g.t0.prototype.isReady=function(){!this.config_&&pvz()&&(this.config_=g.SG());return!!this.config_};var zZA,xi,Ku;zZA=g.Nz.ytPubsubPubsubInstance||new g.hU;xi=g.Nz.ytPubsubPubsubSubscribedKeys||{};Ku=g.Nz.ytPubsubPubsubTopicToKeys||{};g.Dn=g.Nz.ytPubsubPubsubIsSynchronous||{};g.hU.prototype.subscribe=g.hU.prototype.subscribe;g.hU.prototype.unsubscribeByKey=g.hU.prototype.Or;g.hU.prototype.publish=g.hU.prototype.publish;g.hU.prototype.clear=g.hU.prototype.clear;g.g4("ytPubsubPubsubInstance",zZA);g.g4("ytPubsubPubsubTopicToKeys",Ku);g.g4("ytPubsubPubsubIsSynchronous",g.Dn);
g.g4("ytPubsubPubsubSubscribedKeys",xi);var BmF={};g.n(ki,g.N);ki.prototype.append=function(Q){if(!this.U)throw Error("This does not support the append operation");Q=Q.yh();this.yh().appendChild(Q)};
g.n(nu,ki);nu.prototype.yh=function(){return this.B};g.n(Vc,g.N);Vc.prototype.onTouchStart=function(Q){this.G=!0;this.U=Q.touches.length;this.B.isActive()&&(this.B.stop(),this.L=!0);Q=Q.touches;this.X=mOs(this,Q)||Q.length!=1;var W=Q.item(0);this.X||!W?this.T=this.S=Infinity:(this.S=W.clientX,this.T=W.clientY);for(W=this.D.length=0;W<Q.length;W++){var x=Q.item(W);this.D.push(x.identifier)}};
Vc.prototype.onTouchMove=function(Q){Q=Q.changedTouches.item(0);var W;if(W=Z7()){W=g.Ae();var x="";if(rvD())x=/Windows (?:NT|Phone) ([0-9.]+)/,x=(W=x.exec(W))?W[1]:"0.0";else if(Z7())x=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,x=(W=x.exec(W))&&W[1].replace(/_/g,".");else if(L5())x=/Mac OS X ([0-9_.]+)/,x=(W=x.exec(W))?W[1].replace(/_/g,"."):"10";else if(aq(g.Ae(),"KaiOS"))x=/(?:KaiOS)\/(\S+)/i,x=(W=x.exec(W))&&W[1];else if(La2())x=/Android\s+([^\);]+)(\)|;)/,x=(W=x.exec(W))&&W[1];else if(ep()?qk.platform===
"Chrome OS":$F("CrOS"))x=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,x=(W=x.exec(W))&&W[1];W=!(g.iC(x||"",8)>=0)}if(W||Q&&Math.pow(Q.clientX-this.S,2)+Math.pow(Q.clientY-this.T,2)>25)this.N=!0};
Vc.prototype.onTouchEnd=function(Q){var W=Q.changedTouches;W&&this.G&&this.U==1&&!this.N&&!this.L&&!this.X&&mOs(this,W)&&(this.uj=Q,this.B.start());this.U=Q.touches.length;this.U===0&&(this.N=this.G=!1,this.D.length=0);this.L=!1};var P$=Date.now().toString();var hV={};var AV=Symbol("injectionDeps");Gb.prototype.toString=function(){return"InjectionToken("+this.name+")"};
g15.prototype.resolve=function(Q){return Q instanceof dh?H$(this,Q.key,[],!0):H$(this,Q,[])};var Uc;var B$=window;var N6=g.Pb("web_enable_lifecycle_monitoring")&&$i()!==0,Tm4=g.Pb("web_enable_lifecycle_monitoring");Zlv.prototype.cancel=function(){for(var Q=g.V(this.B),W=Q.next();!W.done;W=Q.next())W=W.value,W.jobId===void 0||W.Ge||this.scheduler.TA(W.jobId),W.Ge=!0;this.U.resolve()};g.R=c$.prototype;g.R.install=function(Q){this.plugins.push(Q);return this};
g.R.uninstall=function(){var Q=this;g.i2.apply(0,arguments).forEach(function(W){W=Q.plugins.indexOf(W);W>-1&&Q.plugins.splice(W,1)})};
g.R.transition=function(Q,W){var x=this;N6&&eIs(this.state);var D=this.transitions.find(function(l){return Array.isArray(l.from)?l.from.find(function(M){return M===x.state&&l.nY===Q}):l.from===x.state&&l.nY===Q});
if(D){this.U&&(L2O(this.U),this.U=void 0);OlO(this,Q,W);this.state=Q;N6&&IK(this.state);D=D.action.bind(this);var K=this.plugins.filter(function(l){return l[Q]}).map(function(l){return l[Q]});
D(rSD(this,K),W)}else throw Error("no transition specified from "+this.state+" to "+Q);};
g.R.gYt=function(Q){var W=g.i2.apply(1,arguments);g.QX();for(var x=g.V(Q),D=x.next(),K={};!D.done;K={Qi:void 0},D=x.next())K.Qi=D.value,YI5(function(l){return function(){yc(l.Qi.name);fu(function(){return l.Qi.callback.apply(l.Qi,g.C(W))});
eT(l.Qi.name)}}(K))};
g.R.vYj=function(Q){var W=g.i2.apply(1,arguments),x,D,K,l;return g.U(function(M){M.B==1&&(g.QX(),x=g.V(Q),D=x.next(),K={});if(M.B!=3){if(D.done)return M.kf(0);K.yE=D.value;K.Od=void 0;l=function(w){return function(){yc(w.yE.name);var S=fu(function(){return w.yE.callback.apply(w.yE,g.C(W))});
Sb(S)?w.Od=g.Pb("web_lifecycle_error_handling_killswitch")?S.then(function(){eT(w.yE.name)}):S.then(function(){eT(w.yE.name)},function(b){fsl(b);
eT(w.yE.name)}):eT(w.yE.name)}}(K);
YI5(l);return K.Od?g.A(M,K.Od,3):M.kf(3)}K={yE:void 0,Od:void 0};D=x.next();return M.kf(2)})};
g.R.Q$=function(Q){var W=g.i2.apply(1,arguments),x=this,D=Q.map(function(K){return{wU:function(){yc(K.name);fu(function(){return K.callback.apply(K,g.C(W))});
eT(K.name)},
priority:gh(x,K)}});
D.length&&(this.U=new Zlv(D))};
g.R1.Object.defineProperties(c$.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Lu;g.n(Zn,c$);Zn.prototype.L=function(Q,W){var x=this;this.B=g.Fw(0,function(){x.currentState==="application_navigating"&&x.transition("none")},5E3);
Q(W==null?void 0:W.event)};
Zn.prototype.X=function(Q,W){this.B&&(g.ct.TA(this.B),this.B=null);Q(W==null?void 0:W.event)};var YC=[];g.g4("yt.logging.transport.getScrapedGelPayloads",function(){return YC});rh.prototype.storePayload=function(Q,W){Q=Tb(Q);this.store[Q]?this.store[Q].push(W):(this.U={},this.store[Q]=[W]);this.B++;g.Pb("more_accurate_gel_parser")&&(W=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(W));return Q};
rh.prototype.smartExtractMatchingEntries=function(Q){if(!Q.keys.length)return[];for(var W=Ec(this,Q.keys.splice(0,1)[0]),x=[],D=0;D<W.length;D++)this.store[W[D]]&&Q.sizeLimit&&(this.store[W[D]].length<=Q.sizeLimit?(x.push.apply(x,g.C(this.store[W[D]])),delete this.store[W[D]]):x.push.apply(x,g.C(this.store[W[D]].splice(0,Q.sizeLimit))));this.B-=x.length;(Q==null?0:Q.sizeLimit)&&x.length<(Q==null?void 0:Q.sizeLimit)&&(Q.sizeLimit-=x.length,x.push.apply(x,g.C(this.smartExtractMatchingEntries(Q))));
return x};
rh.prototype.extractMatchingEntries=function(Q){Q=Ec(this,Q);for(var W=[],x=0;x<Q.length;x++)this.store[Q[x]]&&(W.push.apply(W,g.C(this.store[Q[x]])),delete this.store[Q[x]]);this.B-=W.length;return W};
rh.prototype.getSequenceCount=function(Q){Q=Ec(this,Q);for(var W=0,x=0;x<Q.length;x++){var D=void 0;W+=((D=this.store[Q[x]])==null?void 0:D.length)||0}return W};
rh.prototype.getSequenceCount=rh.prototype.getSequenceCount;rh.prototype.extractMatchingEntries=rh.prototype.extractMatchingEntries;rh.prototype.smartExtractMatchingEntries=rh.prototype.smartExtractMatchingEntries;rh.prototype.storePayload=rh.prototype.storePayload;var oYO=g.vb("initial_gel_batch_timeout",2E3),Xkh=g.vb("gel_queue_timeout_max_ms",6E4),uwO=g.vb("gel_min_batch_size",5),j0=void 0,GTa=new F1,a0l=new F1,kTh=new F1,zzv=new F1,RG,kC=!0,ut=1,Qb=new Map,sV=g.Nz.ytLoggingTransportTokensToCttTargetIds_||{};g.g4("ytLoggingTransportTokensToCttTargetIds_",sV);var bt=g.Nz.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.g4("ytLoggingTransportTokensToJspbCttTargetIds_",bt);var DD={},F25=!1;var nh=g.Nz.ytLoggingGelSequenceIdObj_||{};g.g4("ytLoggingGelSequenceIdObj_",nh);var MM4=[];var gY5,po=g.Nz.ytLoggingDocDocumentNonce_;po||(po=g.Cu(16),g.g4("ytLoggingDocDocumentNonce_",po));gY5=po;var mWF={Lp:0,opZ:1,PF3:2,aL:3,bt3:4,GVj:5,lff:6,SHARE:7,upf:8,J8j:9,lMZ:10,ivp: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 Al5=1;g.R=Pp.prototype;g.R.getAsJson=function(){var Q={};this.B.trackingParams!==void 0?Q.trackingParams=this.B.trackingParams:(Q.veType=this.B.veType,this.B.veCounter!==void 0&&(Q.veCounter=this.B.veCounter),this.B.elementIndex!==void 0&&(Q.elementIndex=this.B.elementIndex));this.B.dataElement!==void 0&&(Q.dataElement=this.B.dataElement.getAsJson());this.B.youtubeData!==void 0&&(Q.youtubeData=this.B.youtubeData);this.B.isCounterfactual&&(Q.isCounterfactual=!0);return Q};
g.R.getAsJspb=function(){var Q=new Hv;this.B.trackingParams!==void 0?Q.setTrackingParams(this.B.trackingParams):(this.B.veType!==void 0&&gf(Q,2,sr(this.B.veType)),this.B.veCounter!==void 0&&gf(Q,6,sr(this.B.veCounter)),this.B.elementIndex!==void 0&&gf(Q,3,sr(this.B.elementIndex)),this.B.isCounterfactual&&gf(Q,5,wf(!0)));if(this.B.dataElement!==void 0){var W=this.B.dataElement.getAsJspb();wc(Q,Hv,7,W)}this.B.youtubeData!==void 0&&wc(Q,OZF,8,this.B.jspbYoutubeData);return Q};
g.R.toString=function(){return JSON.stringify(this.getAsJson())};
g.R.isClientVe=function(){return!this.B.trackingParams&&!!this.B.veType};
g.R.getLoggingDirectives=function(){return this.B.loggingDirectives};g.g4("yt_logging_screen.getRootVeType",B32);g.g4("yt_logging_screen.getCurrentCsn",g.ph);g.g4("yt_logging_screen.getCttAuthInfo",aG);g.g4("yt_logging_screen.setCurrentScreen",ylv);var Zwh="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Wj5=[{Ts:function(Q){return"Cannot read property '"+Q.key+"'"},
KX:{Error:[{GA:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{GA:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{GA:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{GA:/\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"]},{GA:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{GA:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{GA:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{Ts:function(Q){return"Cannot call '"+Q.key+"'"},
KX:{TypeError:[{GA:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{GA:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{GA:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{GA:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{GA:/\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"]},
{GA:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{Ts:function(Q){return Q.key+" is not defined"},
KX:{ReferenceError:[{GA:/(.*) is not defined/,groups:["key"]},{GA:/Can't find variable: (.*)/,groups:["key"]}]}}];var Ow4={u_:[],Eu:[{callback:Len,weight:500}]};var dN;var $C=new g.hU;var x54=new Set,tYv=0,lLD=0,Kjz=0,Q82=[],j8Q=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var wsv=new g.a2("parallelCommand");var s84=new g.a2("performOnceCommand");var bXs=new g.a2("serialCommand");var m0=void 0;var k31=g.V(UI5({},"Z39Sdf"));k31.next();k31.next();var X6Y=g.V(UI5(null,"qqrkLd"));X6Y.next();X6Y.next();g.n(gN,z$);var $11=new kE("screen-created",gN),QK=[],kjO=nDF,W4=0,e0=new Map,fh=new Map,ZD=new Map;g.Wu(g.Rd,g.N);g.R=g.Rd.prototype;g.R.subscribe=function(Q,W,x){return this.d7()?0:this.oH.subscribe(Q,W,x)};
g.R.unsubscribe=function(Q,W,x){return this.d7()?!1:this.oH.unsubscribe(Q,W,x)};
g.R.Or=function(Q){return this.d7()?!1:this.oH.Or(Q)};
g.R.publish=function(Q,W){return this.d7()?!1:this.oH.publish.apply(this.oH,arguments)};
g.R.xJ=function(Q,W){for(var x in Q)this.subscribe(x,Q[x],W)};
g.R.MP=function(Q,W){for(var x in Q)this.unsubscribe(x,Q[x],W)};var P_v=16/9,h1=[.25,.5,.75,1,1.25,1.5,1.75,2],oVF=h1.concat([3,4,5,6,7,8,9,10,15]),uFF=h1.concat([2.5,3,3.5,4]),Yr1=h1.concat([2.5,3]);var VM2=1;g.n(g.St,g.N);g.R=g.St.prototype;
g.R.createElement=function(Q,W){W=W||Q.K==="svg";var x=Q.Y,D=Q.lj;if(W){var K=document.createElementNS("http://www.w3.org/2000/svg",Q.K);g.Q7&&(Q.Z||(Q.Z={}),Q.Z.focusable="false")}else K=g.Qz(Q.K);if(x){if(x=be(this,K,"class",x))sP(this,K,"class",x),this.Kn[x]=K}else if(D){x=g.V(D);for(var l=x.next();!l.done;l=x.next())this.Kn[l.value]=K;sP(this,K,"class",D.join(" "))}D=Q.m3;x=Q.V;if(D)W=be(this,K,"child",D),W!==void 0&&K.appendChild(g.WO(W));else if(x)for(D=0,x=g.V(x),l=x.next();!l.done;l=x.next())if(l=
l.value)if(typeof l==="string")l=be(this,K,"child",l),l!=null&&K.appendChild(g.WO(l));else if(l.element)K.appendChild(l.element);else{var M=l;l=this.createElement(M,W);K.appendChild(l);M.Tn&&(M=wn(),l.id=M,l=document.createElementNS("http://www.w3.org/2000/svg","use"),l.setAttribute("class","ytp-svg-shadow"),l.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+M),Ky(K,l,D++))}if(Q=Q.Z)for(W=K,D=g.V(Object.keys(Q)),x=D.next();!x.done;x=D.next())x=x.value,l=Q[x],sP(this,W,x,typeof l==="string"?
be(this,W,x,l):l);return K};
g.R.Nj=function(Q){return this.Kn[Q]};
g.R.Qj=function(Q,W){typeof W==="number"?Ky(Q,this.element,W):Q.appendChild(this.element)};
g.R.detach=function(){g.lo(this.element)};
g.R.update=function(Q){for(var W=g.V(Object.keys(Q)),x=W.next();!x.done;x=W.next())x=x.value,this.updateValue(x,Q[x])};
g.R.updateValue=function(Q,W){(Q=this.Ke["{{"+Q+"}}"])&&sP(this,Q[0],Q[1],W)};
g.R.U3=function(){this.Kn={};this.Ke={};this.detach();g.N.prototype.U3.call(this)};g.n(g.L,g.St);g.R=g.L.prototype;g.R.iy=function(Q,W){this.updateValue(W||"content",Q)};
g.R.show=function(){this.md||(g.SZ(this.element,"display",""),this.md=!0)};
g.R.hide=function(){this.md&&(g.SZ(this.element,"display","none"),this.md=!1)};
g.R.hO=function(Q){Q?this.show():this.hide()};
g.R.rG=function(Q){this.L=Q};
g.R.listen=function(Q,W,x){return this.W(this.element,Q,W,x)};
g.R.W=function(Q,W,x,D){x=(0,g.FD)(x,D||this);D={target:Q,type:W,listener:x};this.listeners.push(D);Q.addEventListener(W,x);return D};
g.R.mJ=function(Q){var W=this;this.listeners.forEach(function(x,D){x===Q&&(x=W.listeners.splice(D,1)[0],x.target.removeEventListener(x.type,x.listener))})};
g.R.focus=function(){this.element.focus()};
g.R.U3=function(){for(;this.listeners.length;){var Q=this.listeners.pop();Q&&Q.target.removeEventListener(Q.type,Q.listener)}g.St.prototype.U3.call(this)};g.n(g.ze,g.L);g.ze.prototype.subscribe=function(Q,W,x){return this.eZ.subscribe(Q,W,x)};
g.ze.prototype.unsubscribe=function(Q,W,x){return this.eZ.unsubscribe(Q,W,x)};
g.ze.prototype.Or=function(Q){return this.eZ.Or(Q)};
g.ze.prototype.publish=function(Q){return this.eZ.publish.apply(this.eZ,[Q].concat(g.C(g.i2.apply(1,arguments))))};var nV1=new WeakSet;g.n(k_,g.ze);g.R=k_.prototype;g.R.bind=function(Q){this.O3||Q.renderer&&this.init(Q.id,Q.renderer,{},Q);return Promise.resolve()};
g.R.init=function(Q,W,x){this.O3=Q;this.element.setAttribute("id",this.O3);this.tf&&g.j$(this.element,this.tf);this.uj=W&&W.adRendererCommands;this.LS=W.interaction;var D;((D=this.LS)==null?0:D.onTap)&&g.j$(this.element,"ytp-ad-component--clickable");this.macros=x;this.S=W.trackingParams||null;var K,l;this.G=(l=(K=g.e(W.rendererContext,v8u))==null?void 0:K.loggingDirectives)!=null?l:W.loggingDirectives;this.S!=null?this.createServerVe(this.element,this.S):this.G&&(Q=this.element,W=this.G,this.api.createServerVe(Q,
this,!0),this.api.setTrackingParams(Q,W.trackingParams||null))};
g.R.clear=function(){};
g.R.hide=function(){g.ze.prototype.hide.call(this);(this.S!=null||this.G)&&this.logVisibility(this.element,!1)};
g.R.show=function(){g.ze.prototype.show.call(this);if(!this.Vj){this.Vj=!0;var Q=this.uj&&this.uj.impressionCommand,W,x=(W=this.LS)==null?void 0:W.onFirstVisible;Q?this.CV(Q):x&&(Q=Nl(x))&&this.CV(Q)}(this.S!=null||this.G)&&this.logVisibility(this.element,!0)};
g.R.onClick=function(Q){if((this.S||this.G)&&!nV1.has(Q)){var W=this.element;this.api.hasVe(W)&&this.md&&this.api.logClick(W,this.interactionLoggingClientData);nV1.add(Q)}var x=this.uj&&this.uj.clickCommand,D;W=(D=this.LS)==null?void 0:D.onTap;if(x)W=this.z2(x),this.CV(W);else{if(D=W)a:{D=this.element;Q=Q.composedPath();Q=g.V(Q);for(x=Q.next();!x.done;x=Q.next()){x=x.value;if(x===D)break;if(x.className.indexOf("ytp-ad-component--clickable")>=0){D=!1;break a}}D=!0}D&&(W=Nl(W))&&this.CV(W)}};
g.R.z2=function(Q){return Q};
g.R.onTouchStart=function(Q){this.F3.onTouchStart(Q)};
g.R.onTouchMove=function(Q){this.F3.onTouchMove(Q)};
g.R.onTouchEnd=function(Q){if(this.F3)this.F3.onTouchEnd(Q)};
g.R.CV=function(Q){this.layoutId?this.R5.executeCommand(Q,this.layoutId):g.ql(new g.Lw("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
g.R.createServerVe=function(Q,W){this.api.createServerVe(Q,this);this.api.setTrackingParams(Q,W)};
g.R.logVisibility=function(Q,W){this.api.hasVe(Q)&&this.api.logVisibility(Q,W,this.interactionLoggingClientData)};
g.R.U3=function(){this.clear(null);this.mJ(this.SZ);for(var Q=g.V(this.KS),W=Q.next();!W.done;W=Q.next())this.mJ(W.value);g.ze.prototype.U3.call(this)};g.n(H4,k_);
H4.prototype.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);this.B=W;if(W.text==null&&W.icon==null)g.Bp(Error("ButtonRenderer did not have text or an icon set."));else{switch(W.style||null){case "STYLE_UNKNOWN":Q="ytp-ad-button-link";break;default:Q=null}Q!=null&&g.j$(this.element,Q);W.text!=null&&(Q=g.od(W.text),g.p5(Q)||(this.element.setAttribute("aria-label",Q),this.D=new g.ze({K:"span",Y:"ytp-ad-button-text",m3:Q}),g.y(this,this.D),this.D.Qj(this.element)));W.accessibilityData&&W.accessibilityData.accessibilityData&&
W.accessibilityData.accessibilityData.label&&!g.p5(W.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",W.accessibilityData.accessibilityData.label);W.icon!=null&&(W=A_(W.icon,this.N),W!=null&&(this.U=new g.ze({K:"span",Y:"ytp-ad-button-icon",V:[W]}),g.y(this,this.U)),this.X?Ky(this.element,this.U.element,0):this.U.Qj(this.element))}};
H4.prototype.clear=function(){this.hide()};
H4.prototype.onClick=function(Q){k_.prototype.onClick.call(this,Q);Q=g.V(gD2(this));for(var W=Q.next();!W.done;W=Q.next())W=W.value,this.layoutId?this.R5.executeCommand(W,this.layoutId):g.ql(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.n(UP,g.N);UP.prototype.U3=function(){this.U&&g.Cw(this.U);this.B.clear();qA=null;g.N.prototype.U3.call(this)};
UP.prototype.register=function(Q,W){W&&this.B.set(Q,W)};
var qA=null;g.n(Id,k_);
Id.prototype.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);Q=W.hoverText||null;W=W.button&&g.e(W.button,g.IQ)||null;W==null?g.ql(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new H4(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,void 0,void 0,void 0,void 0,this.D),g.y(this,this.button),this.button.init(jt("button"),W,this.macros),Q&&this.button.element.setAttribute("aria-label",g.od(Q)),this.button.Qj(this.element),this.T&&!g.lf(this.button.element,
"ytp-ad-clickable")&&g.j$(this.button.element,"ytp-ad-clickable"),this.D&&(g.j$(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.j("clean_player_style_fix_on_web")&&g.j$(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),Q&&(this.U=new g.ze({K:"div",Y:"ytp-ad-hover-text-container"}),this.X&&(W=new g.ze({K:"div",Y:"ytp-ad-hover-text-callout"}),W.Qj(this.U.element),g.y(this,W)),g.y(this,this.U),this.U.Qj(this.element),W=B4(Q),Ky(this.U.element,W,0)),
this.show())};
Id.prototype.hide=function(){this.button&&this.button.hide();this.U&&this.U.hide();k_.prototype.hide.call(this)};
Id.prototype.show=function(){this.button&&this.button.show();k_.prototype.show.call(this)};g.n(NA,k_);
NA.prototype.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);x=(Q=W.thumbnail)&&mY(Q)||"";g.p5(x)?Math.random()<.01&&g.Bp(Error("Found AdImage without valid image URL")):(this.B?g.SZ(this.element,"backgroundImage","url("+x+")"):TM(this.element,{src:x}),TM(this.element,{alt:Q&&Q.accessibility&&Q.accessibility.label||""}),W&&W.adRendererCommands&&W.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())};
NA.prototype.clear=function(){this.hide()};g.n(c4,k_);g.R=c4.prototype;g.R.hide=function(){k_.prototype.hide.call(this);this.D&&this.D.focus()};
g.R.show=function(){this.D=document.activeElement;k_.prototype.show.call(this);this.N.focus()};
g.R.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);this.U=W;W.dialogMessages||W.title!=null?W.confirmLabel==null?g.ql(Error("ConfirmDialogRenderer.confirmLabel was not set.")):W.cancelLabel==null?g.ql(Error("ConfirmDialogRenderer.cancelLabel was not set.")):ZXD(this,W):g.ql(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.R.clear=function(){g.d3(this.B);this.hide()};
g.R.Ek=function(){this.hide()};
g.R.eN=function(){var Q=this.U.cancelEndpoint;Q&&(this.layoutId?this.R5.executeCommand(Q,this.layoutId):g.ql(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.R.v_=function(){var Q=this.U.confirmNavigationEndpoint||this.U.confirmEndpoint;Q&&(this.layoutId?this.R5.executeCommand(Q,this.layoutId):g.ql(Error("Missing layoutId for confirm dialog.")));this.hide()};g.n(gn,k_);g.R=gn.prototype;
g.R.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);this.D=W;if(W.defaultText==null&&W.defaultIcon==null)g.ql(Error("ToggleButtonRenderer must have either text or icon set."));else if(W.defaultIcon==null&&W.toggledIcon!=null)g.ql(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(W.style){switch(W.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":Q="ytp-ad-toggle-button-default-style";break;default:Q=null}Q!=null&&g.j$(this.N,Q)}Q={};W.defaultText?
(x=g.od(W.defaultText),g.p5(x)||(Q.buttonText=x,this.api.C().experiments.ij("a11y_h5_associate_survey_question")||this.B.setAttribute("aria-label",x),this.api.C().experiments.ij("fix_h5_toggle_button_a11y")&&this.U.setAttribute("aria-label",x))):g.vR(this.fS,!1);W.defaultTooltip&&(Q.tooltipText=W.defaultTooltip,this.B.hasAttribute("aria-label")||this.U.setAttribute("aria-label",W.defaultTooltip));W.defaultIcon?(x=A_(W.defaultIcon),this.updateValue("untoggledIconTemplateSpec",x),W.toggledIcon?(this.pS=
!0,x=A_(W.toggledIcon),this.updateValue("toggledIconTemplateSpec",x)):(g.vR(this.T,!0),g.vR(this.X,!1)),g.vR(this.B,!1)):g.vR(this.U,!1);g.dS(Q)||this.update(Q);W.isToggled&&(g.j$(this.N,"ytp-ad-toggle-button-toggled"),this.toggleButton(W.isToggled));yK(this);this.W(this.element,"change",this.hD);this.show()}};
g.R.onClick=function(Q){this.KS.length>0&&(this.toggleButton(!this.isToggled()),this.hD());k_.prototype.onClick.call(this,Q)};
g.R.hD=function(){g.S$(this.N,"ytp-ad-toggle-button-toggled",this.isToggled());for(var Q=g.V(Ljn(this,this.isToggled())),W=Q.next();!W.done;W=Q.next())W=W.value,this.layoutId?this.R5.executeCommand(W,this.layoutId):g.ql(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);yK(this)};
g.R.clear=function(){this.hide()};
g.R.toggleButton=function(Q){g.S$(this.N,"ytp-ad-toggle-button-toggled",Q);this.B.checked=Q;yK(this)};
g.R.isToggled=function(){return this.B.checked};g.n(et,aC);et.prototype.X=function(Q){if(Array.isArray(Q)){Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())W=W.value,W instanceof r4Q&&this.N(W)}};g.n(fV,k_);g.R=fV.prototype;g.R.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);W.reasons?W.confirmLabel==null?g.ql(Error("AdFeedbackRenderer.confirmLabel was not set.")):(W.cancelLabel==null&&g.Bp(Error("AdFeedbackRenderer.cancelLabel was not set.")),W.title==null&&g.Bp(Error("AdFeedbackRenderer.title was not set.")),FjF(this,W)):g.ql(Error("AdFeedbackRenderer.reasons were not set."))};
g.R.clear=function(){Jl(this.X);Jl(this.T);this.N.length=0;this.hide()};
g.R.hide=function(){this.B&&this.B.hide();this.U&&this.U.hide();k_.prototype.hide.call(this);this.D&&this.D.focus()};
g.R.show=function(){this.B&&this.B.show();this.U&&this.U.show();this.D=document.activeElement;k_.prototype.show.call(this);this.X.focus()};
g.R.LL=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
g.R.Qt1=function(){this.hide()};
ZI.prototype.yh=function(){return this.B.element};
ZI.prototype.getCommand=function(){return this.U};
ZI.prototype.isChecked=function(){return this.D.checked};g.n(LV,c4);LV.prototype.Ek=function(Q){c4.prototype.Ek.call(this,Q);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
LV.prototype.eN=function(Q){c4.prototype.eN.call(this,Q);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
LV.prototype.v_=function(Q){c4.prototype.v_.call(this,Q);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.n(rn,k_);g.R=rn.prototype;
g.R.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);this.X=W;if(W.dialogMessage==null&&W.title==null)g.ql(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{W.confirmLabel==null&&g.Bp(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(Q=W.closeOverlayRenderer&&g.e(W.closeOverlayRenderer,g.IQ)||null)this.B=new H4(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.y(this,this.B),this.B.init(jt("button"),Q,this.macros),this.B.Qj(this.element);W.title&&(Q=g.od(W.title),this.updateValue("title",Q));if(W.adReasons)for(Q=W.adReasons,x=0;x<Q.length;x++){var D=B4(Q[x]);if(!g.p5(D.textContent)){var K=tO("LI");K.appendChild(D);this.X3.appendChild(K)}}else g.vR(this.X3,!1);W.dialogMessage&&(Q=B4(W.dialogMessage,!0),this.s3.appendChild(Q));W.confirmLabel&&(Q=g.od(W.confirmLabel),this.updateValue("confirmLabel",Q));W.muteAdRenderer&&(W=g.e(W.muteAdRenderer,g.IQ)||null)&&
(Q=W.navigationEndpoint&&g.e(W.navigationEndpoint,hcR)||null,x=W.navigationEndpoint&&g.e(W.navigationEndpoint,X1k)||null,Q==null&&x==null?g.Bp(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(Q?tMD(this,Q):x&&Q_5(this,x),this.D=new H4(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,["ytp-ad-info-dialog-mute-button"],"button",!0),g.y(this,this.D),this.D.init(jt("button"),W,this.macros),this.D.listen("click",
this.Sxj,this),this.D.Qj(this.I5)));WxD(this)}};
g.R.clear=function(){Jl(this.T);this.hide()};
g.R.hide=function(){this.U?this.U.hide():this.N&&this.N.hide();this.B&&this.B.hide();this.D&&this.D.hide();k_.prototype.hide.call(this);this.pS&&this.pS.focus()};
g.R.show=function(){this.B&&this.B.show();this.D&&this.D.show();if(!this.g7){for(var Q=g.V(this.X&&this.X.impressionEndpoints||[]),W=Q.next();!W.done;W=Q.next())W=W.value,this.layoutId?this.R5.executeCommand(W,this.layoutId):g.ql(Error("Missing layoutId for ad info dialog."));this.g7=!0}this.pS=document.activeElement;k_.prototype.show.call(this);this.T.focus()};
g.R.tD=function(){if(this.X&&this.X.confirmServiceEndpoint){var Q=this.X.confirmServiceEndpoint;this.layoutId?this.R5.executeCommand(Q,this.layoutId):g.ql(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
g.R.Sxj=function(){var Q=this.U?this.U:this.N;Q&&!Q.md&&(this.hide(),Q.show())};g.n(Te,Id);Te.prototype.init=function(Q,W,x){Id.prototype.init.call(this,Q,W,x);Q=W.button&&g.e(W.button,g.IQ)||null;Q!=null&&(j_n(this,Q,x),this.api.j("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-ad-info-hover-text-button--clean-player"),this.show())};
Te.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();Id.prototype.hide.call(this)};
Te.prototype.show=function(){this.button&&this.button.show();Id.prototype.show.call(this)};
Te.prototype.clear=function(){this.hide()};g.n(OP,k_);
OP.prototype.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);this.B=W;this.isTemplated()||g.MT(this.element,X3(this.B));if(W.backgroundImage&&(Q=(Q=W.backgroundImage.thumbnail)?mY(Q):"",x=(x=this.api.getVideoData(1))&&x.TH,Q&&x&&(this.element.style.backgroundImage="url("+Q+")",this.element.style.backgroundSize="100%"),W.style&&W.style.adTextStyle))switch(W.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(Q=g.ti(W.targetId))&&this.element.setAttribute("data-tooltip-target-id",Q);
W&&W.adRendererCommands&&W.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
OP.prototype.isTemplated=function(){return this.B.isTemplated||!1};
OP.prototype.clear=function(){this.hide()};var k$h={seekableStart:0,seekableEnd:1,current:0};g.n(F3,k_);F3.prototype.clear=function(){this.dispose()};g.n(g.Wi,g.N);g.R=g.Wi.prototype;g.R.show=function(Q){this.state!==1&&this.state!==2&&(this.state===4&&this.vj(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.B&&this.B()):this.element.md||(xZ(this,!0),this.state=1,Q?this.delay.start(Q):this.vj()))};
g.R.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.md&&(xZ(this,!0),this.state=4,this.delay.start(this.D)))};
g.R.vj=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:xZ(this,!1);this.state=3;this.delay.start(this.U);break;case 3:this.state=null;this.B&&this.B();break;case 4:this.element.hide();xZ(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
g.R.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.vj()};
g.R.U3=function(){this.element.d7()||this.element.element.removeAttribute("aria-hidden");g.N.prototype.U3.call(this)};g.n(De,F3);g.R=De.prototype;
g.R.init=function(Q,W,x){F3.prototype.init.call(this,Q,W,x);Q=W.durationMilliseconds;typeof Q==="number"&&Q<0&&g.ql(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+Q));this.Pt&&(this.N?g.j$(this.U.element,"modern-countdown-next-to-thumbnail"):g.j$(this.U.element,"countdown-next-to-thumbnail"));Q=W.durationMilliseconds;this.X3=Q==null||Q===0?this.B.hB():Q;if(W.templatedCountdown)var D=W.templatedCountdown.templatedAdText;else W.staticPreview&&(D=W.staticPreview);
this.D.init(jt("ad-text"),D,x);(D=this.api.getVideoData(1))&&D.TH&&W.thumbnail?this.X.init(jt("ad-image"),W.thumbnail,x):(this.pS.hide(),this.N&&this.Pt&&g.j$(this.D.element,"ytp-ad-preview-text-modern-postroll"))};
g.R.clear=function(){this.hide()};
g.R.hide=function(){this.U.hide();this.D.hide();this.X.hide();QZ(this);F3.prototype.hide.call(this)};
g.R.show=function(){t_(this);this.U.show();this.D.show();this.X.show();F3.prototype.show.call(this)};
g.R.Il=function(){this.hide()};
g.R.Ih=function(){if(this.B!=null){var Q=this.B.getProgressState();Q!=null&&Q.current!=null&&(Q=1E3*Q.current,!this.s3&&Q>=this.X3?(this.fS.hide(),this.s3=!0,this.publish("i")):this.D&&this.D.isTemplated()&&(Q=Math.max(0,Math.ceil((this.X3-Q)/1E3)),Q!=this.I5&&(EP(this.D,{TIME_REMAINING:String(Q)}),this.I5=Q)))}};g.n(lK,F3);g.R=lK.prototype;
g.R.init=function(Q,W,x){F3.prototype.init.call(this,Q,W,x);if(W.image&&W.image.thumbnail)if(W.headline)if(W.description)if((Q=W.actionButton&&g.e(W.actionButton,g.IQ))&&Q.navigationEndpoint){var D=this.api.getVideoData(2);if(D!=null)if(W.image&&W.image.thumbnail){var K=W.image.thumbnail.thumbnails;K!=null&&K.length>0&&g.p5(g.ti(K[0].url))&&(K[0].url=D.profilePicture)}else g.Bp(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.D.init(jt("ad-image"),W.image,x);this.X.init(jt("ad-text"),
W.headline,x);this.N.init(jt("ad-text"),W.description,x);this.U.init(jt("button"),Q,x);x=ZH(this.U.element);f8(this.U.element,x+" This link opens in new tab");this.pS=Q.navigationEndpoint;this.api.Ho()||this.show();this.api.C().j("enable_larger_flyout_cta_on_desktop")&&(this.Nj("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Nj("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Nj("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"),
this.Nj("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Nj("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Nj("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Nj("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large"));
this.api.addEventListener("playerUnderlayVisibilityChange",this.S0.bind(this));this.fS=W.startMs||0;t_(this)}else g.ql(Error("FlyoutCtaRenderer has no valid action button."));else g.ql(Error("FlyoutCtaRenderer has no description AdText."));else g.ql(Error("FlyoutCtaRenderer has no headline AdText."));else g.Bp(Error("FlyoutCtaRenderer has no image."))};
g.R.onClick=function(Q){F3.prototype.onClick.call(this,Q);this.api.pauseVideo();!g.jh(this.U.element,Q.target)&&this.pS&&(this.layoutId?this.R5.executeCommand(this.pS,this.layoutId):g.ql(Error("Missing layoutId for flyout cta.")))};
g.R.Ih=function(){if(this.B){var Q=this.B.getProgressState();(Q&&Q.current||this.X3)&&1E3*Q.current>=this.fS&&(QZ(this),g.Rr(this.element,"ytp-flyout-cta-inactive"),this.U.element.removeAttribute("tabIndex"))}};
g.R.Il=function(){this.clear()};
g.R.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.S0.bind(this))};
g.R.show=function(){this.U&&this.U.show();F3.prototype.show.call(this)};
g.R.hide=function(){this.U&&this.U.hide();F3.prototype.hide.call(this)};
g.R.S0=function(Q){Q=="hidden"?this.show():this.hide()};g.n(ji,k_);g.R=ji.prototype;
g.R.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);this.B=W;if(this.B.rectangle)for(Q=this.B.likeButton&&g.e(this.B.likeButton,no),W=this.B.dislikeButton&&g.e(this.B.dislikeButton,no),this.D.init(jt("toggle-button"),Q,x),this.U.init(jt("toggle-button"),W,x),this.W(this.element,"change",this.aR),this.N.show(100),this.show(),x=g.V(this.B&&this.B.impressionCommands||[]),Q=x.next();!Q.done;Q=x.next())Q=Q.value,this.layoutId?this.R5.executeCommand(Q,this.layoutId):g.ql(Error("Missing layoutId for instream user sentiment."))};
g.R.clear=function(){this.hide()};
g.R.hide=function(){this.D.hide();this.U.hide();k_.prototype.hide.call(this)};
g.R.show=function(){this.D.show();this.U.show();k_.prototype.show.call(this)};
g.R.aR=function(){NMn(this.element,"ytp-ad-instream-user-sentiment-selected");this.B.postMessageAction&&this.api.Wt("onYtShowToast",this.B.postMessageAction);this.N.hide()};
g.R.onClick=function(Q){this.KS.length>0&&this.aR();k_.prototype.onClick.call(this,Q)};g.n(Mr,g.N);g.R=Mr.prototype;g.R.U3=function(){this.reset();g.N.prototype.U3.call(this)};
g.R.reset=function(){g.d3(this.N);this.X=!1;this.B&&this.B.stop();this.L.stop();this.D&&(this.D=!1,this.G.play())};
g.R.start=function(){this.reset();this.N.W(this.U,"mouseover",this.Zg,this);this.N.W(this.U,"mouseout",this.Vg,this);this.uj&&(this.N.W(this.U,"focusin",this.Zg,this),this.N.W(this.U,"focusout",this.Vg,this));this.B?this.B.start():(this.X=this.D=!0,g.SZ(this.U,{opacity:this.T}))};
g.R.Zg=function(){this.D&&(this.D=!1,this.G.play());this.L.stop();this.B&&this.B.stop()};
g.R.Vg=function(){this.X?this.L.start():this.B&&this.B.start()};
g.R.JI=function(){this.D||(this.D=!0,this.S.play(),this.X=!0)};var Shn=[new Rl("b.f_",!1,0),new Rl("j.s_",!1,2),new Rl("r.s_",!1,4),new Rl("e.h_",!1,6),new Rl("i.s_",!0,8),new Rl("s.t_",!1,10),new Rl("p.h_",!1,12),new Rl("s.i_",!1,14),new Rl("f.i_",!1,16),new Rl("a.b_",!1,18),new Rl("a.o_",!1),new Rl("g.o_",!1,22),new Rl("p.i_",!1,24),new Rl("p.m_",!1),new Rl("i.k_",!0,28),new Rl("n.k_",!0,20),new Rl("i.f_",!1),new Rl("a.s_",!0),new Rl("m.c_",!1),new Rl("n.h_",!1,26),new Rl("o.p_",!1)].reduce(function(Q,W){Q[W.U]=W;return Q},{});g.n(ol,F3);g.R=ol.prototype;
g.R.init=function(Q,W,x){F3.prototype.init.call(this,Q,W,x);this.pS=W;(this.fS=s_Q(this))&&g.Bp(Error("hasAdControlInClickCommands_ is true."));if(!W||g.dS(W))g.ql(Error("SkipButtonRenderer was not specified or empty."));else if(!W.message||g.dS(W.message))g.ql(Error("SkipButtonRenderer.message was not specified or empty."));else{Q=this.X?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};W=A_(Q);W==null?g.ql(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+Q.iconType+".")):
(this.N=new g.ze({K:"button",lj:[this.X?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{K:"span",Y:this.X?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[W]}]}),g.y(this,this.N),this.N.Qj(this.D.element),this.U=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,"ytp-ad-skip-button-text"),this.X&&this.U.element.classList.add("ytp-ad-skip-button-text-centered"),this.U.init(jt("ad-text"),this.pS.message,x),g.y(this,this.U),Ky(this.N.element,this.U.element,
0));var D=D===void 0?null:D;x=this.api.C();!(this.KS.length>0)&&x.U&&(xh?0:"ontouchstart"in document.documentElement&&(HrF()||uR()))&&(this.mJ(this.SZ),D&&this.mJ(D),this.KS=[this.W(this.element,"touchstart",this.onTouchStart,this),this.W(this.element,"touchmove",this.onTouchMove,this),this.W(this.element,"touchend",this.onTouchEnd,this)])}};
g.R.clear=function(){this.X3.reset();this.hide()};
g.R.hide=function(){this.D.hide();this.U&&this.U.hide();QZ(this);F3.prototype.hide.call(this)};
g.R.onClick=function(Q){if(this.N!=null){if(Q){var W=Q||window.event;W.returnValue=!1;W.preventDefault&&W.preventDefault()}var x;if(Ryv(Q,{contentCpn:((x=this.api.getVideoData(1))==null?void 0:x.clientPlaybackNonce)||""})===0)this.api.Wt("onAbnormalityDetected");else if(F3.prototype.onClick.call(this,Q),this.publish("j"),this.api.Wt("onAdSkip"),this.s3||!this.fS)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.R.z2=function(Q){if(!this.s3)return this.fS&&sH("SkipButton click commands not pruned while ALC exist"),Q;var W,x=(W=g.e(Q,g.uK))==null?void 0:W.commands;if(!x)return Q;Q=[];for(W=0;W<x.length;W++){var D=x[W];D.adLifecycleCommand&&bK5(D.adLifecycleCommand)||D.pingingEndpoint||D.adPingingEndpoint||Q.push(D)}return{commandExecutorCommand:{commands:Q}}};
g.R.show=function(){this.X3.start();this.D.show();this.U&&this.U.show();t_(this);F3.prototype.show.call(this);this.I5&&this.api.C().j("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
g.R.Il=function(){this.publish("k")};
g.R.Ih=function(){};g.n(YZ,F3);g.R=YZ.prototype;
g.R.init=function(Q,W,x){F3.prototype.init.call(this,Q,W,x);Q=W&&W.preskipRenderer&&g.e(W.preskipRenderer,$O)||{};(Q=g.dS(Q)?null:Q)?(this.X=Q.durationMilliseconds!=null&&Q.durationMilliseconds!==void 0?Q.durationMilliseconds:5E3,this.U=new De(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.B,Qv(this.api.C().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&G_(this.api.C())),this.U.init(jt("preskip-component"),Q,x),Kb(this.U),g.y(this,this.U),this.U.Qj(this.element)):
W.skipOffsetMilliseconds&&(this.X=W.skipOffsetMilliseconds);Q=W&&W.skippableRenderer&&g.e(W.skippableRenderer,WHJ)||{};Q=g.dS(Q)?null:Q;Q==null?g.ql(Error("SkipButtonRenderer was not set in player response.")):(this.D=new ol(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.B,this.pS),this.D.init(jt("skip-button"),Q,x),g.y(this,this.D),this.D.Qj(this.element),this.api.C().experiments.ij("enable_skip_to_next_messaging")&&(W=g.ti(W.targetId))&&(x=this.D,x.N!=null&&(x.I5=!0,x.N.element.setAttribute("data-tooltip-target-id",
W),x.N.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.R.show=function(){this.N&&this.D?this.D.show():this.U&&this.U.show();t_(this);F3.prototype.show.call(this)};
g.R.Il=function(){};
g.R.clear=function(){this.U&&this.U.clear();this.D&&this.D.clear();QZ(this);F3.prototype.hide.call(this)};
g.R.hide=function(){this.U&&this.U.hide();this.D&&this.D.hide();QZ(this);F3.prototype.hide.call(this)};
g.R.Ih=function(){1E3*this.B.getProgressState().current>=this.X&&zy5(this,!0)};g.n(nb,H4);nb.prototype.init=function(Q,W,x){H4.prototype.init.call(this,Q,W,x);Q=!1;W.text!=null&&(Q=g.od(W.text),Q=!g.p5(Q));Q?W.navigationEndpoint==null?g.Bp(Error("No visit advertiser clickthrough provided in renderer,")):W.style!=="STYLE_UNKNOWN"?g.Bp(Error("Button style was not a link-style type in renderer,")):this.show():g.Bp(Error("No visit advertiser text was present in the renderer."))};g.n(VZ,k_);
VZ.prototype.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);Q=W.text;g.p5(X3(Q))?g.Bp(Error("SimpleAdBadgeRenderer has invalid or empty text")):(Q&&Q.text&&(W=Q.text,this.D&&!this.U&&(W=this.api.C(),W=Q.text+" "+(W&&W.U?"\u2022":"\u00b7")),W={text:W,isTemplated:Q.isTemplated},Q.style&&(W.style=Q.style),Q.targetId&&(W.targetId=Q.targetId),Q=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),Q.init(jt("simple-ad-badge"),W,x),Q.Qj(this.element),g.y(this,Q)),this.show())};
VZ.prototype.clear=function(){this.hide()};g.n(Pi,MA);g.n(vi,g.Rd);g.R=vi.prototype;g.R.hB=function(){return this.durationMs};
g.R.stop=function(){this.B&&this.St.mJ(this.B)};
g.R.QA=function(Q){this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:Q.current};this.publish("h")};
g.R.getProgressState=function(){return this.U};
g.R.PW=function(Q){g.XV(Q,2)&&this.publish("g")};g.n(Cb,g.Rd);g.R=Cb.prototype;g.R.hB=function(){return this.durationMs};
g.R.start=function(){this.B||(this.B=!0,this.rP.start())};
g.R.stop=function(){this.B&&(this.B=!1,this.rP.stop())};
g.R.QA=function(){this.TK+=100;var Q=!1;this.TK>this.durationMs&&(this.TK=this.durationMs,this.rP.stop(),Q=!0);this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.TK/1E3};this.publish("h");Q&&this.publish("g")};
g.R.getProgressState=function(){return this.U};g.n(hI,F3);g.R=hI.prototype;g.R.init=function(Q,W,x){F3.prototype.init.call(this,Q,W,x);var D;if(W==null?0:(D=W.templatedCountdown)==null?0:D.templatedAdText){Q=W.templatedCountdown.templatedAdText;if(!Q.isTemplated){g.Bp(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.U=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.R5);this.U.init(jt("ad-text"),Q,{});this.U.Qj(this.element);g.y(this,this.U)}this.show()};
g.R.clear=function(){this.hide()};
g.R.hide=function(){QZ(this);F3.prototype.hide.call(this)};
g.R.Il=function(){this.hide()};
g.R.Ih=function(){if(this.B!=null){var Q=this.B.getProgressState();if(Q!=null&&Q.current!=null&&this.U){var W=this.B instanceof vi?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:Q.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.B instanceof Cb?Q.seekableEnd:this.api.getDuration(2,!1);Q=Q.current;var x,D,K=((x=this.api.getVideoData())==null?0:(D=x.aQ)==null?0:D.call(x))?Math.max(W-Q,0):W-Q;EP(this.U,{FORMATTED_AD_DURATION_REMAINING:String(g.JI(K)),
TIME_REMAINING:String(Math.ceil(K))})}}};
g.R.show=function(){t_(this);F3.prototype.show.call(this)};g.n(al,OP);al.prototype.onClick=function(Q){OP.prototype.onClick.call(this,Q);this.api.onAdUxClicked(this.componentType)};g.n(ds,k_);ds.prototype.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});if(Q=W.content){g.MT(this.element,Q);var x,D;W=((x=W.interaction)==null?void 0:(D=x.accessibility)==null?void 0:D.label)||Q;this.element.setAttribute("aria-label",W)}else g.ql(Error("AdSimpleAttributedString does not have text content"))};
ds.prototype.clear=function(){this.hide()};
ds.prototype.onClick=function(Q){k_.prototype.onClick.call(this,Q)};g.n(iK,k_);
iK.prototype.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});(Q=W.label)&&Q.content&&!g.p5(Q.content)?(this.adBadgeText.init(jt("ad-simple-attributed-string"),new GV(Q)),(W=W.adPodIndex)&&W.content&&!g.p5(W.content)&&(this.B=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),this.B.Qj(this.element),g.y(this,this.B),this.B.element.classList.add("ytp-ad-badge__pod-index"),this.B.init(jt("ad-simple-attributed-string"),new GV(W))),this.element.classList.add(this.U?"ytp-ad-badge--stark-clean-player":
"ytp-ad-badge--stark"),this.show()):g.ql(Error("No label is returned in AdBadgeViewModel."))};
iK.prototype.show=function(){this.adBadgeText.show();var Q;(Q=this.B)==null||Q.show();k_.prototype.show.call(this)};
iK.prototype.hide=function(){this.adBadgeText.hide();var Q;(Q=this.B)==null||Q.hide();k_.prototype.hide.call(this)};g.n(AI,k_);
AI.prototype.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});(Q=W.adPodIndex)&&Q.content&&!g.p5(Q.content)&&(this.B=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),this.B.Qj(this.element),g.y(this,this.B),this.B.init(jt("ad-simple-attributed-string"),new GV(Q)),(this.api.C().j("clean_player_style_fix_on_web")?W.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.U||W.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.j("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()};
AI.prototype.show=function(){var Q;(Q=this.B)==null||Q.show();k_.prototype.show.call(this)};
AI.prototype.hide=function(){var Q;(Q=this.B)==null||Q.hide();k_.prototype.hide.call(this)};g.n(Hi,k_);
Hi.prototype.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});if(W!=null&&W.text){var x;if(((x=W.text)==null?0:x.content)&&!g.p5(W.text.content)){this.B=new g.ze({K:"div",Y:"ytp-ad-disclosure-banner__text",m3:W.text.content});g.y(this,this.B);this.B.Qj(this.element);var D,K;Q=((D=W.interaction)==null?void 0:(K=D.accessibility)==null?void 0:K.label)||W.text.content;this.element.setAttribute("aria-label",Q);var l;if((l=W.interaction)==null?0:l.onTap)this.U=new g.ze({K:"div",Y:"ytp-ad-disclosure-banner__chevron",V:[g.VK()]}),
g.y(this,this.U),this.U.Qj(this.element);this.show()}}else g.ql(Error("No banner text found in AdDisclosureBanner."))};
Hi.prototype.clear=function(){this.hide()};UH.prototype.getLength=function(){return this.B-this.U};g.n(Bi,g.ze);Bi.prototype.QA=function(){var Q=this.U.getProgressState(),W=Q.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.C().j("show_preskip_progress_bar_for_skippable_ads")&&(W=this.D?this.D/1E3:Q.seekableEnd);Q=qr(new UH(Q.seekableStart,W),Q.current,0);this.progressBar.style.width=Q*100+"%"};
Bi.prototype.onStateChange=function(){g.$h(this.api.C())||(this.api.getPresentingPlayerType()===2?this.B===-1&&(this.show(),this.B=this.U.subscribe("h",this.QA,this),this.QA()):this.B!==-1&&(this.hide(),this.U.Or(this.B),this.B=-1))};g.n($Z,k_);
$Z.prototype.init=function(Q,W,x,D){k_.prototype.init.call(this,Q,W,x);x=!0;if(W.skipOrPreviewRenderer){var K=W.skipOrPreviewRenderer;Q=g.e(K,Re);K=g.e(K,$O);Q?(K=new YZ(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.U,this.pS),K.Qj(this.T),K.init(jt("skip-button"),Q,this.macros),g.y(this,K)):K&&!this.api.C().experiments.ij("disable_ad_preview_for_instream_ads")&&(Q=new De(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.U,!1),Q.Qj(this.T),Q.init(jt("ad-preview"),K,
this.macros),Kb(Q),g.y(this,Q));if(Q=g.e(W.skipOrPreviewRenderer,Re)){x=!1;var l=Q.skipOffsetMilliseconds}}W.brandInteractionRenderer&&(Q=W.brandInteractionRenderer.brandInteractionRenderer,K=new ji(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),K.Qj(this.X3),K.init(jt("instream-user-sentiment"),Q,this.macros),g.y(this,K));if(Q=g.e(W,T1u))if(Q=g.e(Q,T1u))K=new lK(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.U,!!W.showWithoutLinkedMediaLayout),g.y(this,K),
K.Qj(this.X),K.init(jt("flyout-cta"),Q,this.macros);Q=(this.api.C().j("disable_ad_duration_remaining_for_instream_video_ads")||W.adPodIndex!==void 0)&&!1;D=D&&D.videoAdDurationSeconds;if(W.adBadgeRenderer){var M=W.adBadgeRenderer;K=g.e(M,yd);K!=null?(M=new iK(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,Q),g.y(this,M),M.Qj(this.B),M.init(jt("ad-badge"),K,this.macros),this.D=M.element):(K=M.simpleAdBadgeRenderer,K==null&&(K={text:{text:"Ad",isTemplated:!1}}),M=new VZ(this.api,this.layoutId,
this.interactionLoggingClientData,this.R5,!0),g.y(this,M),M.Qj(this.B),M.init(jt("simple-ad-badge"),K,this.macros))}W.adPodIndex&&(K=g.e(W.adPodIndex,lX1),K!=null&&(x=new AI(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,x),g.y(this,x),x.Qj(this.B),x.init(jt("ad-pod-index"),K)));W.adDurationRemaining&&!W.showWithoutLinkedMediaLayout&&(x=W.adDurationRemaining.adDurationRemainingRenderer,x==null&&(x={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),
D=new hI(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.U,D,Q),g.y(this,D),D.Qj(this.B),D.init(jt("ad-duration-remaining"),x,this.macros),Q&&D.element.classList.add("ytp-ad-duration-remaining-autohide"));W.adInfoRenderer&&(D=g.e(W.adInfoRenderer,BD))&&(x=new Te(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.element,void 0,Q),g.y(this,x),this.api.C().j("enable_ad_pod_index_autohide")&&this.D!==null?this.B.insertBefore(x.element,this.D.nextSibling):x.Qj(this.B),
x.init(jt("ad-info-hover-text-button"),D,this.macros));W.visitAdvertiserRenderer&&(x=g.e(W.visitAdvertiserRenderer,g.IQ))&&(K=oEv(this)&&this.N?this.N:this.B)&&(D=new nb(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),g.y(this,D),D.Qj(K),D.init(jt("visit-advertiser"),x,this.macros),yP(D.element),x=ZH(D.element),f8(D.element,x+" This link opens in new tab"));!(D=this.api.C())||g.q4(D)||D.controlsType!="3"&&!D.disableOrganicUi||(l=new Bi(this.api,this.U,l,Q),l.Qj(this.g7),g.y(this,
l));W.adDisclosureBannerRenderer&&(W=g.e(W.adDisclosureBannerRenderer,KHJ))&&(l=new Hi(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),l.Qj(this.fS),l.init(jt("ad-disclosure-banner"),W),g.y(this,l));this.api.C().j("enable_updated_html5_player_focus_style")&&g.j$(this.element,"ytp-ad-player-overlay-updated-focus-style");Q&&this.api.C().U&&this.B.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()};
$Z.prototype.clear=function(){this.hide()};ci.prototype.set=function(Q,W,x){x=x!==void 0?Date.now()+x:void 0;this.B.set(Q,W,x)};
ci.prototype.get=function(Q){return this.B.get(Q)};
ci.prototype.remove=function(Q){this.B.remove(Q)};var fb=null,Ze=null,Lb=null,vED=null;g.g4("yt.www.ads.eventcache.getLastCompanionData",function(){return fb});
g.g4("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.g4("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Ze});
g.g4("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Lb});
g.g4("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return vED});var J01=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);rs.prototype.handleResponse=function(Q,W){if(!W)throw Error("request needs to be passed into ConsistencyService");var x,D;W=((x=W.kQ.context)==null?void 0:(D=x.request)==null?void 0:D.consistencyTokenJars)||[];var K;(Q=(K=Q.responseContext)==null?void 0:K.consistencyTokenJar)&&this.replace(W,Q)};
rs.prototype.replace=function(Q,W){Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next())delete this.B[x.value.encryptedTokenJarContents];hyv(this,W)};var Vj5=window.location.hostname.split(".").slice(-2).join("."),aV;OH.getInstance=function(){aV=g.yF("yt.clientLocationService.instance");aV||(aV=new OH,g.g4("yt.clientLocationService.instance",aV));return aV};
g.R=OH.prototype;
g.R.setLocationOnInnerTubeContext=function(Q){Q.client||(Q.client={});if(this.B)Q.client.locationInfo||(Q.client.locationInfo={}),Q.client.locationInfo.latitudeE7=Math.floor(this.B.coords.latitude*1E7),Q.client.locationInfo.longitudeE7=Math.floor(this.B.coords.longitude*1E7),Q.client.locationInfo.horizontalAccuracyMeters=Math.round(this.B.coords.accuracy),Q.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.D||this.locationPlayabilityToken)Q.client.locationPlayabilityToken=this.D||
this.locationPlayabilityToken};
g.R.handleResponse=function(Q){var W;Q=(W=Q.responseContext)==null?void 0:W.locationPlayabilityToken;Q!==void 0&&(this.locationPlayabilityToken=Q,this.B=void 0,g.TK("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=TV(this))&&this.localStorage.set("yt-location-playability-token",Q,15552E3):g.$1("YT_CL",JSON.stringify({loctok:Q}),15552E3,Vj5,!0))};
g.R.clearLocationPlayabilityToken=function(Q){Q==="TVHTML5"?(this.localStorage=TV(this))&&this.localStorage.remove("yt-location-playability-token"):g.m2("YT_CL");this.D=void 0;this.U!==-1&&(clearTimeout(this.U),this.U=-1)};
g.R.getCurrentPositionFromGeolocation=function(){var Q=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var W=!1,x=1E4;g.TK("INNERTUBE_CLIENT_NAME")==="MWEB"&&(W=!0,x=15E3);return new Promise(function(D,K){navigator.geolocation.getCurrentPosition(function(l){Q.B=l;D(l)},function(l){K(l)},{enableHighAccuracy:W,
maximumAge:0,timeout:x})})};
g.R.createUnpluggedLocationInfo=function(Q){var W={};Q=Q.coords;if(Q==null?0:Q.latitude)W.latitudeE7=Math.floor(Q.latitude*1E7);if(Q==null?0:Q.longitude)W.longitudeE7=Math.floor(Q.longitude*1E7);if(Q==null?0:Q.accuracy)W.locationRadiusMeters=Math.round(Q.accuracy);return W};
g.R.createLocationInfo=function(Q){var W={};Q=Q.coords;if(Q==null?0:Q.latitude)W.latitudeE7=Math.floor(Q.latitude*1E7);if(Q==null?0:Q.longitude)W.longitudeE7=Math.floor(Q.longitude*1E7);return W};g.R=A0F.prototype;g.R.contains=function(Q){return Object.prototype.hasOwnProperty.call(this.B,Q)};
g.R.get=function(Q){if(this.contains(Q))return this.B[Q]};
g.R.set=function(Q,W){this.B[Q]=W};
g.R.v8=function(){return Object.keys(this.B)};
g.R.remove=function(Q){delete this.B[Q]};FV.prototype.getModuleId=function(Q){return Q.serviceId.getModuleId()};
FV.prototype.get=function(Q){a:{var W=this.mappings.get(Q.toString());switch(W.type){case "mapping":Q=W.value;break a;case "factory":W=W.value();this.mappings.set(Q.toString(),{type:"mapping",value:W});Q=W;break a;default:Q=Ma(W)}}return Q};
FV.prototype.registerService=function(Q,W){this.mappings.set(Q.toString(),{type:"mapping",value:W});return Q};
new FV;var GB={},HKv=(GB.WEB_UNPLUGGED="^unplugged/",GB.WEB_UNPLUGGED_ONBOARDING="^unplugged/",GB.WEB_UNPLUGGED_OPS="^unplugged/",GB.WEB_UNPLUGGED_PUBLIC="^unplugged/",GB.WEB_CREATOR="^creator/",GB.WEB_KIDS="^kids/",GB.WEB_EXPERIMENTS="^experiments/",GB.WEB_MUSIC="^music/",GB.WEB_REMIX="^music/",GB.WEB_MUSIC_EMBEDDED_PLAYER="^music/",GB.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",GB);Wo.prototype.L=function(Q,W,x){W=W===void 0?{}:W;x=x===void 0?sh:x;var D={context:g.EH(Q.clickTrackingParams,!1,this.N)};var K=this.U(Q);if(K){this.B(D,K,W);var l;W=g.Q_(this.D());(K=(l=g.e(Q.commandMetadata,g.Yf))==null?void 0:l.apiUrl)&&(W=K);l=dna(NO(W));Q=Object.assign({},{command:Q},void 0);D={input:l,Rx:cb(l),kQ:D,config:Q};D.config.AM?D.config.AM.identity=x:D.config.AM={identity:x};return D}g.ql(new g.Lw("Error: Failed to create Request from Command.",Q))};
g.R1.Object.defineProperties(Wo.prototype,{N:{configurable:!0,enumerable:!0,get:function(){return!1}}});
g.n(xn,Wo);g.n(Dx,xn);Dx.prototype.L=function(){return{input:"/getDatasyncIdsEndpoint",Rx:cb("/getDatasyncIdsEndpoint","GET"),kQ:{}}};
Dx.prototype.D=function(){return[]};
Dx.prototype.U=function(){};
Dx.prototype.B=function(){};var PFH={},sKv=(PFH.GET_DATASYNC_IDS=tI(Dx),PFH);var dP={},vVF=(dP["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",dP["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",dP["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",dP["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",dP["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",dP["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",dP["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",
dP["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",dP["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",dP["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",dP["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",dP["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",dP["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",dP["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",dP["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",
dP["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",dP["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",dP["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",dP["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",dP["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",dP["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",dP["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",
dP["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",dP.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",dP["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",dP["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",dP["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",dP["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",dP["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",dP["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",
dP["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",dP["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",dP["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",dP["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",dP["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",dP["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",dP["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",dP["dialog.copyright_strikes"]=
"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",dP["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",dP["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",dP.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",dP["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",dP["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",dP["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",dP["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",dP["owner.asset_groups"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",dP["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",dP["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",dP["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",dP["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",dP["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",dP["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",dP["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",dP["owner.delivery"]=
"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",dP["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",dP["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",dP["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",dP["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",dP["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",dP["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",dP["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",dP["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
dP["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",dP["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",dP["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",dP["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",dP["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",dP["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",dP["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",dP["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",dP["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
dP["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",dP["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",dP["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",dP["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",dP["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",dP["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",dP["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",dP["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",
dP),iE={},Nq1=(iE.auto_search="LATENCY_ACTION_AUTO_SEARCH",iE.ad_to_ad="LATENCY_ACTION_AD_TO_AD",iE.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",iE.app_startup="LATENCY_ACTION_APP_STARTUP",iE.browse="LATENCY_ACTION_BROWSE",iE.cast_splash="LATENCY_ACTION_CAST_SPLASH",iE.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",iE.channels="LATENCY_ACTION_CHANNELS",iE.chips="LATENCY_ACTION_CHIPS",iE.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",iE.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
iE.editor="LATENCY_ACTION_EDITOR",iE.embed="LATENCY_ACTION_EMBED",iE.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",iE.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",iE.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",iE.explore="LATENCY_ACTION_EXPLORE",iE.favorites="LATENCY_ACTION_FAVORITES",iE.home="LATENCY_ACTION_HOME",iE.inboarding="LATENCY_ACTION_INBOARDING",iE.library="LATENCY_ACTION_LIBRARY",iE.live="LATENCY_ACTION_LIVE",iE.live_pagination=
"LATENCY_ACTION_LIVE_PAGINATION",iE.management="LATENCY_ACTION_MANAGEMENT",iE.mini_app="LATENCY_ACTION_MINI_APP_PLAY",iE.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",iE.onboarding="LATENCY_ACTION_ONBOARDING",iE.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",iE.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",iE.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",iE.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",iE.prebuffer="LATENCY_ACTION_PREBUFFER",
iE.prefetch="LATENCY_ACTION_PREFETCH",iE.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",iE.profile_switcher="LATENCY_ACTION_LOGIN",iE.projects="LATENCY_ACTION_PROJECTS",iE.reel_watch="LATENCY_ACTION_REEL_WATCH",iE.results="LATENCY_ACTION_RESULTS",iE.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iE.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iE.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",iE.review="LATENCY_ACTION_REVIEW",iE.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",
iE.search_ui="LATENCY_ACTION_SEARCH_UI",iE.search_suggest="LATENCY_ACTION_SUGGEST",iE.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",iE.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",iE.seek="LATENCY_ACTION_PLAYER_SEEK",iE.settings="LATENCY_ACTION_SETTINGS",iE.store="LATENCY_ACTION_STORE",iE.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",iE.tenx="LATENCY_ACTION_TENX",iE.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",iE.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",iE.watch="LATENCY_ACTION_WATCH",
iE.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",iE["watch,watch7"]="LATENCY_ACTION_WATCH",iE["watch,watch7_html5"]="LATENCY_ACTION_WATCH",iE["watch,watch7ad"]="LATENCY_ACTION_WATCH",iE["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",iE.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",iE.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",iE.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",iE.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",iE.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",
iE.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",iE.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",iE.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",iE);Object.assign(Nq1,vVF);g.n(CA,z$);var QK2=new kE("aft-recorded",CA);var CFu=g.Nz.ytLoggingGelSequenceIdObj_||{};g.g4("ytLoggingGelSequenceIdObj_",CFu);var hd=g.Nz.ytLoggingLatencyUsageStats_||{};g.g4("ytLoggingLatencyUsageStats_",hd);Jd.prototype.tick=function(Q,W,x,D){ao(this,"tick_"+Q+"_"+W)||g.wV("latencyActionTicked",{tickName:Q,clientActionNonce:W},{timestamp:x,cttAuthInfo:D})};
Jd.prototype.info=function(Q,W,x){var D=Object.keys(Q).join("");ao(this,"info_"+D+"_"+W)||(Q=Object.assign({},Q),Q.clientActionNonce=W,g.wV("latencyActionInfo",Q,{cttAuthInfo:x}))};
Jd.prototype.jspbInfo=function(Q,W,x){for(var D="",K=0;K<A$(Q).length;K++)A$(Q)[K]!==void 0&&(D=K===0?D.concat(""+K):D.concat("_"+K));if(!ao(this,"info_"+D+"_"+W)){YL(Q,2,W);x={cttAuthInfo:x};W=g.Pb("jspb_sparse_encoded_pivot")?new eS([{}]):new eS;Q!=null?h$(Q,cv):Q=void 0;xL(W,7,PZH,Q);x=x===void 0?{}:x;Q=!1;g.TK("ytLoggingEventsDefaultDisabled",!1)&&(Q=!0);Q=Q?null:g.t0;x=x===void 0?{}:x;D=Math.round(x.timestamp||(0,g.a8)());ug(W,1,D<Number.MAX_SAFE_INTEGER?D:0);D=new yo;x.lact?ug(D,1,isFinite(x.lact)?
x.lact:-1):x.timestamp?ug(D,1,-1):(K=aK(),ug(D,1,isFinite(K)?K:-1));if(x.sequenceGroup&&!g.Pb("web_gel_sequence_info_killswitch")){K=x.sequenceGroup;var l=iwa(K),M=new gT;ug(M,2,l);YL(M,1,K);wc(D,gT,3,M);x.endOfSequence&&delete CFu[x.sequenceGroup]}wc(W,yo,33,D);(x.sendIsolatedPayload?MYO:Rzl)("latencyActionInfo",{endpoint:"log_event",payload:W,cttAuthInfo:x.cttAuthInfo,dangerousLogToVisitorSession:x.dangerousLogToVisitorSession},Q)}};
Jd.prototype.span=function(Q,W,x){var D=Object.keys(Q).join("");ao(this,"span_"+D+"_"+W)||(Q.clientActionNonce=W,g.wV("latencyActionSpan",Q,{cttAuthInfo:x}))};var A1=window,Gi=A1.performance||A1.mozPerformance||A1.msPerformance||A1.webkitPerformance||new c0h;var tGs=!1,eyF=!1,Io={'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"},x6l=(0,g.FD)(Gi.clearResourceTimings||Gi.webkitClearResourceTimings||Gi.mozClearResourceTimings||Gi.msClearResourceTimings||Gi.oClearResourceTimings||g.bi,Gi);var J$p=window;J$p.ytcsi&&(J$p.ytcsi.infoGel=g.co,J$p.ytcsi.tick=Nc);g.n(g.Zx,g.Lw);var Yc5="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),VT1=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var Cul=new Gb("INNERTUBE_TRANSPORT_TOKEN");g.n(O$,xn);O$.prototype.D=function(){return jLA};
O$.prototype.U=function(Q){return g.e(Q,ymk)||void 0};
O$.prototype.B=function(Q,W,x){x=x===void 0?{}:x;W.channelIds&&(Q.channelIds=W.channelIds);W.siloName&&(Q.siloName=W.siloName);W.params&&(Q.params=W.params);x.botguardResponse&&(Q.botguardResponse=x.botguardResponse);x.feature&&(Q.clientFeature=x.feature)};
g.R1.Object.defineProperties(O$.prototype,{N:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.n(E$,xn);E$.prototype.D=function(){return Mju};
E$.prototype.U=function(Q){return g.e(Q,g8p)||void 0};
E$.prototype.B=function(Q,W){W.channelIds&&(Q.channelIds=W.channelIds);W.siloName&&(Q.siloName=W.siloName);W.params&&(Q.params=W.params)};
g.R1.Object.defineProperties(E$.prototype,{N:{configurable:!0,enumerable:!0,get:function(){return!0}}});var p6Y=new Gb("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.n(Fl,xn);Fl.prototype.D=function(){return WL1};
Fl.prototype.U=function(Q){return g.e(Q,d3A)||g.e(Q,iPJ)||g.e(Q,GSs)};
Fl.prototype.B=function(Q,W){W.serializedShareEntity&&(Q.serializedSharedEntity=W.serializedShareEntity);if(W.clientParamIdentifier){var x;if((x=this.X)==null?0:x.B(W.clientParamIdentifier))Q.clientParams=this.X.U(W.clientParamIdentifier)}};
Fl[AV]=[p6Y];g.n(td,xn);td.prototype.D=function(){return Da1};
td.prototype.U=function(Q){return g.e(Q,YgA)||void 0};
td.prototype.B=function(Q,W,x){Q.feedbackTokens=[];W.feedbackToken&&Q.feedbackTokens.push(W.feedbackToken);if(W=W.cpn||x.cpn)Q.feedbackContext={cpn:W};Q.isFeedbackTokenUnencrypted=!!x.is_feedback_token_unencrypted;Q.shouldMerge=!1;x.extra_feedback_tokens&&(Q.shouldMerge=!0,Q.feedbackTokens=Q.feedbackTokens.concat(x.extra_feedback_tokens))};
g.R1.Object.defineProperties(td.prototype,{N:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.n(Qg,xn);Qg.prototype.D=function(){return KLu};
Qg.prototype.U=function(Q){return g.e(Q,cmR)||void 0};
Qg.prototype.B=function(Q,W){W.params&&(Q.params=W.params);W.secondaryParams&&(Q.secondaryParams=W.secondaryParams)};g.n(WQ,xn);WQ.prototype.D=function(){return l3F};
WQ.prototype.U=function(Q){return g.e(Q,m3s)||void 0};
WQ.prototype.B=function(Q,W){W.actions&&(Q.actions=W.actions);W.params&&(Q.params=W.params);W.playlistId&&(Q.playlistId=W.playlistId)};g.n(xw,xn);xw.prototype.D=function(){return xae};
xw.prototype.U=function(Q){return g.e(Q,Am5)};
xw.prototype.B=function(Q,W,x){x=x===void 0?{}:x;W.serializedShareEntity&&(Q.serializedSharedEntity=W.serializedShareEntity);x.includeListId&&(Q.includeListId=!0)};var hZ1=new Gb("FETCH_FN_TOKEN"),a3s=new Gb("PARSE_FN_TOKEN");var G3q=new Gb("NETWORK_SLI_TOKEN");D1.prototype.fetch=function(Q,W,x){var D=this,K,l,M;return g.U(function(w){K=Pu1(D,Q,W);M=(l=D.U)!=null?l:fetch;return w.return(M(K).then(function(S){return D.handleResponse(S,x)}).catch(function(S){g.Bp(S);
if((x==null?0:x.Yg)&&S instanceof g.Zx&&S.errorType===1)return Promise.reject(S)}))})};
D1.prototype.handleResponse=function(Q,W){var x,D=(x=this.D)!=null?x:JSON.parse;x=Q.text().then(function(K){if((W==null?0:W.T71)&&Q.ok)return U3s(W.T71,K);K=K.replace(")]}'","");if((W==null?0:W.Yg)&&K)try{var l=D(K)}catch(w){throw new g.Zx(1,"JSON parsing failed after fetch");}var M;return(M=l)!=null?M:D(K)});
Q.redirected||Q.ok?this.B&&this.B.success():(this.B&&this.B.T33(),x=x.then(function(K){g.Bp(new g.Lw("Error: API fetch failed",Q.status,Q.url,K));return Object.assign({},K,{errorMetadata:{status:Q.status}})}));
return x};
D1[AV]=[new dh(G3q),new dh(hZ1),new dh(a3s)];var vi4=new Gb("NETWORK_MANAGER_TOKEN");var KI;Ms.prototype.bindInnertubeChallengeFetcher=function(Q){this.B.bicf(Q)};
Ms.prototype.registerChallengeFetchedCallback=function(Q){this.B.bcr(Q)};
Ms.prototype.getLatestChallengeResponse=function(){return this.B.blc()};var hrQ=[],Rt=!1;zC.prototype.N=function(){var Q=this;return g.U(function(W){return W.B==1?g.A(W,Promise.race([Q.B,null]),2):W.return(!!W.U)})};
zC.prototype.D=function(Q,W,x){var D=this,K,l,M;return g.U(function(w){D.B===null&&Gbv(D,s2(D));K=!1;l={};M=function(){var S,b,z;return g.U(function(k){switch(k.B){case 1:return g.A(k,D.B,2);case 2:S=k.U;l.challenge=S.challenge;if(!S.RU){"c1a"in S.yc&&(l.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");k.kf(3);break}b=Object.assign({},{c:S.challenge,e:Q},W);g.P5(k,4);K=!0;if(g.Pb("attbs")&&!g.Pb("attmusi")){z=S.RU.xA({Im:b});k.kf(6);break}return g.A(k,S.RU.snapshot({Im:b}),7);case 7:z=k.U;case 6:z?l.webResponse=
z:l.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.Cs(k,3);break;case 4:g.Jv(k),l.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(Q==="ENGAGEMENT_TYPE_PLAYBACK"){var X=S.yc,u={};X.c6a&&(u.reportingStatus=String(Number(X.c)^wF()));X.c6b&&(u.broadSpectrumDetectionResult=String(Number(X.c)^Number(g.TK("CATSTAT",0))));l.adblockReporting=u}return k.return(l)}})};
return w.return(Promise.race([M(),Huh(x,function(){var S=Object.assign({},l);K&&(S.error="ATTESTATION_ERROR_VM_TIMEOUT");return S})]))})};var BhD=["APP_STATE","PI"];var ozO=[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,249107,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,
128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,
133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,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,250344,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,249295,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,249229,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,248381,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];XG.prototype.getState=function(){return this.store.getState()};
XG.prototype.dispatch=function(Q){return this.store.dispatch(Q)};
XG.prototype.subscribe=function(Q){return this.store.subscribe(Q)};
XG.prototype.replaceReducer=function(Q){return this.store.replaceReducer(Q)};
XG.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.R=ul.prototype;g.R.getLength=function(){return this.totalLength};
g.R.append=function(Q){if(m6l(this,Q)){var W=this.SE[this.SE.length-1];this.SE[this.SE.length-1]=new Uint8Array(W.buffer,W.byteOffset,W.length+Q.length);Vg(this)}else this.SE.push(Q);this.totalLength+=Q.length};
g.R.split=function(Q){for(var W=new ul,x=new ul,D=g.V(this.SE),K=D.next();!K.done;K=D.next())K=K.value,Q>=K.length?(W.append(K),Q-=K.length):Q?(W.append(new Uint8Array(K.buffer,K.byteOffset,Q)),x.append(new Uint8Array(K.buffer,K.byteOffset+Q,K.length-Q)),Q=0):x.append(K);return{gA:W,h9:x}};
g.R.isFocused=function(Q){return Q>=this.ZL&&Q<this.ZL+this.SE[this.B9].length};
g.R.focus=function(Q){if(!this.isFocused(Q)){for(Q<this.ZL&&Vg(this);this.ZL+this.SE[this.B9].length<=Q&&this.B9<this.SE.length;)this.ZL+=this.SE[this.B9].length,this.B9+=1;this.bH=void 0}};
g.R.er=function(Q,W){return Q+W<=this.totalLength};
g.R.qr=function(Q,W){Q=Q===void 0?0:Q;W=W===void 0?-1:W;if(!this.totalLength||!W)return new DataView(new ArrayBuffer(0));W<0&&(W=this.totalLength-Q);this.focus(Q);if(!PQ(this,Q,W)){var x=this.B9,D=this.ZL;this.focus(Q+W-1);D=new Uint8Array(this.ZL+this.SE[this.B9].length-D);for(var K=0,l=x;l<=this.B9;l++)D.set(this.SE[l],K),K+=this.SE[l].length;this.SE.splice(x,this.B9-x+1,D);Vg(this);this.focus(Q)}x=this.SE[this.B9];return new DataView(x.buffer,x.byteOffset+Q-this.ZL,W)};
g.R.Nq=function(Q,W){Q=this.qr(Q===void 0?0:Q,W===void 0?-1:W);return new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength)};
g.R.getUint8=function(Q){this.focus(Q);return this.SE[this.B9][Q-this.ZL]};var pI,CI,at;g.Ck=function(){function Q(D){for(var K=new Uint8Array(D.length),l=0;l<D.length;l++)K[l]=D[l];return K}
function W(D){return new Uint8Array(D)}
var x=new Uint8Array([1]);return x.length===1&&x[0]===1?W:Q}();
pI=Array(1024);CI=window.TextDecoder?new TextDecoder:void 0;at=window.TextEncoder?new TextEncoder:void 0;for(var rVl={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},LI1={},da5=g.V(Object.entries(rVl)),ijq=da5.next();!ijq.done;ijq=da5.next()){var A$k=g.V(ijq.value),Hje=A$k.next().value,UaH=A$k.next().value,qrs=Hje,BfF=UaH;BfF&&(LI1[BfF]=qrs)};var Ei5=!1,b1,zf,kt,XC,o9;g.n(u1,g.N);
u1.prototype.encrypt=function(Q){var W=Q.length;Q=new Uint8Array(Q.buffer.slice(Q.byteOffset,Q.byteOffset+W));for(var x=this.U,D=0;D<W&&this.B<16;)Q[D++]^=x[this.B++];for(var K=W-(W-D)%16;D<K;)FI5(this),Q[D++]^=x[0],Q[D++]^=x[1],Q[D++]^=x[2],Q[D++]^=x[3],Q[D++]^=x[4],Q[D++]^=x[5],Q[D++]^=x[6],Q[D++]^=x[7],Q[D++]^=x[8],Q[D++]^=x[9],Q[D++]^=x[10],Q[D++]^=x[11],Q[D++]^=x[12],Q[D++]^=x[13],Q[D++]^=x[14],Q[D++]^=x[15];if(D<W)for(FI5(this),this.B=0;D<W;)Q[D++]^=x[this.B++];return Q};var nB=!1;(function(){function Q(D){for(var K=new Uint8Array(D.length),l=0;l<D.length;l++)K[l]=D[l];return K}
function W(D){return new Uint8Array(D)}
var x=new Uint8Array([1]);return x.length===1&&x[0]===1?W:Q})();
var Vs;g.vE.prototype.encrypt=function(Q,W){var x=this,D,K;return g.U(function(l){if(l.B==1){D=PE();if(!D)return l.return(x.B(Q,W));g.P5(l,3);return g.A(l,x.U(Q,W,D),5)}if(l.B!=3)return l.return(l.U);K=g.Jv(l);g.Bp(K);nB=!0;return l.return(x.B(Q,W))})};
g.vE.prototype.U=function(Q,W,x){var D=this,K,l;return g.U(function(M){switch(M.B){case 1:if(D.L){M.kf(2);break}return g.A(M,x.importKey("raw",D.N,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:D.L=M.U;case 2:return K={name:"AES-CTR",counter:W,length:128},g.A(M,x.encrypt(K,D.L,Q),4);case 4:return l=M.U,M.return(new Uint8Array(l))}})};
g.vE.prototype.B=function(Q,W){this.D||(this.D=new u1(this.N));Yt(this.D,W);return this.D.encrypt(Q)};
g.vE.prototype.decrypt=function(Q,W){return this.encrypt(Q,W)};
g.CB.prototype.encrypt=function(Q,W){this.B||(this.B=new u1(this.U));Yt(this.B,W);return this.B.encrypt(Q)};
g.CB.prototype.decrypt=function(Q,W){return this.encrypt(Q,W)};Jp.prototype.reset=function(){QG5(this);this.update(this.D)};
Jp.prototype.update=function(Q){var W=0,x=Q.length;this.N+=x;this.U&&this.U+x>=64&&(this.X.set(Q.subarray(0,64-this.U),this.U),W=64-this.U,this.U=0,tTl(this,this.X,0));for(;W+64<=x;W+=64)tTl(this,Q,W);W<x&&(Q=Q.subarray(W),this.X.set(Q,this.U),this.U+=Q.length)};
var pB=[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 $a1;$a1={};g.I31=g.QV("yt-idb-pref-storage",{mZ:($a1.prefs={yd:1},$a1),shared:!1,upgrade:function(Q,W){W(1)&&g.Bs(g.dV(Q,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});var HU;HU={};g.map=(HU.INVALID_ENCODER_VERSION="Invalid encoder version",HU.KEY_CREATION_FAILED="Failed to create encoder key",HU.UNKNOWN_DECODE_ERROR="Failed to decode PES data",HU.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",HU.WRONG_DATA_TYPE="Encoder cannot process the data type",HU);g.Mb("","downloadsPageViewConfigurationEntity");g.Mb("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.UK=g.Mb("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.Mb("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.Mb("SMART_DOWNLOADS_ENABLED","settingEntity");g.Mb("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var YVa=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];g.R=a9.prototype;g.R.initialize=function(Q,W,x,D){this.n2=D;if(Q.program){var K;D=(K=Q.interpreterUrl)!=null?K:null;if(Q.interpreterSafeScript)K=eb4(Q.interpreterSafeScript);else{var l;K=(l=Q.interpreterScript)!=null?l:null}Q.interpreterSafeUrl&&(D=Jx(Q.interpreterSafeUrl).toString());ux1(this,K,D,Q.program,W,x)}else g.Bp(Error("Cannot initialize botguard without program"))};
g.R.isInitialized=function(){return this.hR()};
g.R.getState=function(){return this.state};
g.R.isLoading=function(){return this.state===2};
g.R.invoke=function(Q){Q=Q===void 0?{}:Q;return this.hR()?this.Ap({Im:Q}):null};
g.R.dispose=function(){this.M1(null);this.wE(8)};
g.R.hR=function(){return!!this.RU};
g.R.Ap=function(Q){return this.RU.xA(Q)};
g.R.M1=function(Q){g.w1(this.RU);this.RU=Q};
g.R.wE=function(Q){this.state=Q};g.n(dW,a9);dW.prototype.M1=function(Q){var W;(W=Gf())==null||W.bgvma();Q?(W={bgvma:Q.dispose.bind(Q),bgvmb:Q.snapshot.bind(Q),bgvmc:Q.xA.bind(Q)},g.g4("yt.abuse.playerAttLoader",W),g.g4("yt.abuse.playerAttLoaderRun",function(x){return Q.snapshot(x)})):(g.g4("yt.abuse.playerAttLoader",null),g.g4("yt.abuse.playerAttLoaderRun",null))};
dW.prototype.hR=function(){return!!Gf()};
dW.prototype.Ap=function(Q){return Gf().bgvmc(Q)};i1.prototype.zL=function(){return"crossDeviceProgressCommand"};
i1.prototype.iO=function(Q){if(Q.crossDevicePings){var W=[];Q=g.V(Q.crossDevicePings);for(var x=Q.next();!x.done;x=Q.next())W.push({baseUrl:x.value.baseUrl});g.wV("crossDeviceNotificationTransfer",{crossDevicePings:W})}};Ap.prototype.zL=function(){return"muteAdEndpoint"};
Ap.prototype.iO=function(Q,W){switch(Q.type){case "SKIP":nCl(this.GF,this.i$,W)}};HE.prototype.zL=function(){return"openPopupAction"};
HE.prototype.iO=function(){};Uv.prototype.zL=function(){return"pingingEndpoint"};
Uv.prototype.iO=function(){};var hwl={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.n(Pta,g.N);var i6D={Jvt:"FINAL",dD1:"AD_BREAK_LENGTH",LPt:"AD_CPN",ESj:"AH",vSS:"AD_MT",gS3:"ASR",oS3:"AW",eH3:"NM",sH3:"NX",zHf:"NY",HR7:"CONN",A4j:"CPN",y_7:"DV_VIEWABILITY",lV3:"ERRORCODE",vWp:"ERROR_MSG",jIj:"EI",A_7:"GOOGLE_VIEWABILITY",UH9:"IAS_VIEWABILITY",iu1:"LACT",Pk5:"LIVE_TARGETING_CONTEXT",xkS:"I_X",qBf:"I_Y",Uk7:"MT",yX9:"MIDROLL_POS",FCj:"MIDROLL_POS_MS",Dkt:"MOAT_INIT",NYf:"MOAT_VIEWABILITY",Cdj:"P_H",Pdt:"PV_H",AXj:"PV_W",hUj:"P_W",SBf:"TRIGGER_TYPE",dyj:"SDKV",I5f:"SLOT_POS",tyf:"SURVEY_LOCAL_TIME_EPOCH_S",
h3j:"SURVEY_ELAPSED_MS",Fg:"VIS",vJ5:"VIEWABILITY",jn7:"VED",oJZ:"VOL",rxf:"WT",N35:"YT_ERROR_CODE"};$t.prototype.zL=function(){return"urlEndpoint"};
$t.prototype.iO=function(Q,W,x){var D=this.vt.get(),K=Az(D.U.get(),W);K?W=AD(D,CBa(K),K,void 0,void 0,x):(sH("Trying to ping from an unknown layout",void 0,void 0,{layoutId:W}),W={});W=Object.assign({},W);EL(this.B,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(x=nz(this.h2,2))&&(W.AD_CPN=x.clientPlaybackNonce);W=g.ip(Q.url,W);g.ei(W,void 0,void 0,void 0,Q.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME")};I9.prototype.get=function(){return this.value};
g.n(m9,I9);m9.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.n(Nb,I9);Nb.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.n(cE,I9);cE.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.n(gW,I9);gW.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
g.n(ys,I9);ys.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.n(ed,I9);ed.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.n(fB,I9);fB.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.n(ZN,I9);ZN.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.n(LB,I9);LB.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
g.n(rW,I9);rW.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.n(Tf,I9);Tf.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.n(Ov,I9);Ov.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.n(Ev,I9);Ev.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.n(FC,I9);FC.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.n(tp,I9);tp.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.n(QD,I9);QD.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.n(Wr,I9);Wr.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.n(xj,I9);xj.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.n(Db,I9);Db.prototype.getType=function(){return"metadata_type_content_cpn"};
g.n(KY,I9);KY.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.n(la,I9);la.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
g.n(Mj,I9);Mj.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.n(RF,I9);RF.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.n(wa,I9);wa.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"};
g.n(Sa,I9);Sa.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.n(ba,I9);ba.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.n(sQ,I9);sQ.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.n(z6,I9);z6.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.n(kj,I9);kj.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.n(Xu,I9);Xu.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.n(oF,I9);oF.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.n(ua,I9);ua.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.n(Yj,I9);Yj.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.n(nY,I9);nY.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.n(VD,I9);VD.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.n(Pr,I9);Pr.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.n(vr,I9);vr.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.n(CY,I9);CY.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.n(JX,I9);JX.prototype.getType=function(){return"metadata_type_cue_point"};
g.n(pY,I9);pY.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.n(hX,I9);hX.prototype.getType=function(){return"metadata_type_player_vars"};
g.n(aF,I9);aF.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.n(G6,I9);G6.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.n(da,I9);da.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.n(ia,I9);ia.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.n(AX,I9);AX.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.n(Hr,I9);Hr.prototype.getType=function(){return"metadata_type_dai"};
g.n(UQ,I9);UQ.prototype.getType=function(){return"metadata_type_ad_intro"};
g.n(qj,I9);qj.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.n(Br,I9);Br.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.n(IF,I9);IF.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.n(mG,I9);mG.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.n(Nj,I9);Nj.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.n(cr,I9);cr.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.n(yD,I9);yD.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.n(ea,I9);ea.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.n(fY,I9);fY.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.n(Zb,I9);Zb.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.n(LY,I9);LY.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.n(ra,I9);ra.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.n(T6,I9);T6.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.n(OQ,I9);OQ.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.n(EQ,I9);EQ.prototype.getType=function(){return"metadata_type_active_view_identifier"};
g.n(Fu,I9);Fu.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.n(tX,I9);tX.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.n(Qm,I9);Qm.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
g.n(Wq,I9);Wq.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"};
g.n(xz,I9);xz.prototype.getType=function(){return"metadata_type_prefetch_metadata"};var NNl=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 TN1=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.n(jX,n5);g.n(E,n5);new Promise(function(){});var ih1=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"]]),Gnl=new Map([["normal",{yV:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",vg:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{yV:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",vg:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{yV:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",vg:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{yV:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",vg:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{yV:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",vg:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{yV:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",vg:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{yV:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",vg:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.n(uS,g.N);g.R=uS.prototype;g.R.E1=function(Q,W){return this.B.E1(Q,W)};
g.R.lS=function(Q,W){this.vN.o$("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",Q,W);for(var x=g.V(this.U),D=x.next();!D.done;D=x.next())D.value.lS(Q,W)};
g.R.mU=function(Q){if(vq(this.B,Q)){this.vN.t4("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",Q);this.B.mU(Q);for(var W=g.V(this.U),x=W.next();!x.done;x=W.next())x.value.mU(Q);qV5(this,Q)}};
g.R.yN=function(Q){if(vq(this.B,Q)){this.vN.t4("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",Q);this.B.yN(Q);for(var W=g.V(this.U),x=W.next();!x.done;x=W.next())x.value.yN(Q);vq(this.B,Q)&&Cd(this.B,Q).L&&Vm(this,Q,!1)}};
g.R.b4=function(Q){this.vN.t4("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",Q);vq(this.B,Q)&&(this.B.b4(Q),Vm(this,Q,!1))};
g.R.HN=function(Q,W){if(vq(this.B,Q)){this.vN.C3("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Q,W);for(var x=g.V(this.U),D=x.next();!D.done;D=x.next())D.value.HN(Q,W)}};
g.R.BD=function(Q,W,x){if(vq(this.B,Q)){this.vN.C3(dl5(x),Q,W);this.B.BD(Q,W);for(var D=g.V(this.U),K=D.next();!K.done;K=D.next())K.value.BD(Q,W,x);(x=$z(this.B,Q))&&W.layoutId===x.layoutId&&Zhs(this,Q,!1)}};
g.R.Ce=function(Q,W,x,D){x.yk&&D?(sH(x,Q,W,void 0,x.P2),this.vN.xR(D,x.yk,Q,W)):sH("adsClientErrorMessage is missing.",Q,W);Vm(this,Q,!0)};
g.R.U3=function(){var Q=rbz(this.B);Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())Vm(this,W.value,!1);g.N.prototype.U3.call(this)};
g.R.xY=function(Q,W){this.vN.C3("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",Q,W);this.vN.C3("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",Q,W);for(var x=g.V(this.U),D=x.next();!D.done;D=x.next())D=D.value,W&&D.xY(Q,W)};L0v.prototype.isActive=function(){switch(this.B){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.n(Np,g.N);g.R=Np.prototype;g.R.E1=function(Q,W){W=Bq(this,Q+"_"+W);Q=[];W=g.V(W.values());for(var x=W.next();!x.done;x=W.next())Q.push(x.value.slot);return Q};
g.R.vI=function(Q){Q=Cd(this,Q);Q.B!=="not_scheduled"&&IE(Q.slot,Q.B,"onSlotScheduled");Q.B="scheduled"};
g.R.TO=function(Q){Q=Cd(this,Q);Q.N="fill_requested";Q.G.TO()};
g.R.mU=function(Q){Q=Cd(this,Q);Q.B!=="enter_requested"&&IE(Q.slot,Q.B,"onSlotEntered");Q.B="entered"};
g.R.b4=function(Q){Cd(this,Q).N="fill_canceled"};
g.R.yN=function(Q){Q=Cd(this,Q);Q.B!=="exit_requested"&&IE(Q.slot,Q.B,"onSlotExited");Q.B="scheduled"};
g.R.BD=function(Q,W){Q=Cd(this,Q);Q.layout!=null&&Q.layout.layoutId===W.layoutId&&(Q.B!=="rendering_stop_requested"&&IE(Q.slot,Q.B,"onLayoutExited"),Q.B="entered")};g.n(ym,g.N);ym.prototype.get=function(){Math.random()<.001&&this.d7()&&sH("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.B());return this.instance};g.n(fd,g.N);fd.prototype.D=function(){return this.U};Zu.prototype.executeCommand=function(Q,W){BE(this.B(),Q,W)};T_.prototype.addListener=function(Q){this.listeners.add(Q)};
T_.prototype.removeListener=function(Q){this.listeners.delete(Q)};var qi={},ld=(qi.AD_MARKER="ytp-ad-progress",qi.CHAPTER_MARKER="ytp-chapter-marker",qi.TIME_MARKER="ytp-time-marker",qi);var QmO=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/)"),KY2=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]+)?/)"),
WTD=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),bVz=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)|$))"),
w44=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)|$))"),jd2=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/)"),
xy1=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Mt5=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)"),lIh=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/.*$)"),
l2F=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)"),
Km5=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)"),
Nfe=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.jz.prototype.getId=function(){return this.id};
g.jz.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+X45(this.start)+", "+X45(this.end)+"]"};
g.jz.prototype.contains=function(Q,W){return Q>=this.start&&(Q<this.end||Q===this.end&&this.start===this.end)&&(W==null||Q<W&&W<=this.end)};
var ke2=1;g.jz.prototype.getId=g.jz.prototype.getId;Sz.prototype.TO=function(){var Q=this,W=0;xAv(this.B,function(){var x=RE(Q.slot.clientMetadata,"metadata_type_ad_break_request_data");W=Date.now();K$(Q.vt.get(),"abrs","ct."+W+";cmt."+Q.Jf.get().getCurrentTimeSec(1,!1)+";sid."+Q.slot.slotId+";");return Q.U.get().fetch({Cc:x.getAdBreakUrl,qV:new g.jz(x.EJ,x.LK),U7:RE(Q.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:x.cueProcessedMs})},function(){u32(Q)},function(x){var D=Date.now()-W;
K$(Q.vt.get(),"abrr","ct."+(new Date).getTime()+";cmt."+Q.Jf.get().getCurrentTimeSec(1,!1)+";l."+D.toString()+";sid."+Q.slot.slotId+";");D=x.CU;D.length>=2&&x.ssdaiAdsConfig&&sH("Unexpected ad placement renderers length",Q.slot,null,{length:D.length});D.some(function(K){var l,M,w,S;return!!((l=K.renderer)==null?0:(M=l.linearAdSequenceRenderer)==null?0:(w=M.linearAds)==null?0:w.length)||!((S=K.renderer)==null||!S.instreamVideoAdRenderer)})||u32(Q)})};
Sz.prototype.vX=function(){DA5(this.B)};bd.prototype.TO=function(){var Q=this;xAv(this.U,function(){var W=RE(Q.slot.clientMetadata,"metadata_type_ad_break_request_data");return W.cueProcessedMs?Q.B.get().fetch({Cc:W.getAdBreakUrl,qV:new g.jz(W.EJ,W.LK),cueProcessedMs:W.cueProcessedMs}):Q.B.get().fetch({Cc:W.getAdBreakUrl,qV:new g.jz(W.EJ,W.LK)})})};
bd.prototype.vX=function(){DA5(this.U)};sp.prototype.TO=function(){var Q=this.slot.clientMetadata,W,x=(W=this.slot.fulfilledLayout)!=null?W:RE(Q,"metadata_type_fulfilled_layout");BNh(this.callback,this.slot,x)};
sp.prototype.vX=function(){Pq(this.callback,this.slot,new E("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")};k4.prototype.build=function(Q,W){return W.fulfilledLayout||z5(W,{xD:["metadata_type_fulfilled_layout"]})?new sp(Q,W):this.D(Q,W)};g.n(XX,k4);
XX.prototype.D=function(Q,W){if(z5(W,{xD:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Sz(Q,W,this.B,this.U,this.PV,this.yj,this.vt,this.Jf,this.x3);if(z5(W,{xD:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new bd(Q,W,this.B,this.U,this.PV,this.yj);throw new E("Unsupported slot with type: "+W.slotType+" and client metadata: "+wO(W.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.n(ou,k4);ou.prototype.D=function(Q,W){throw new E("Unsupported slot with type: "+W.slotType+" and client metadata: "+wO(W.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.R=YPO.prototype;g.R.sV=function(){return this.slot};
g.R.z1=function(){return this.layout};
g.R.init=function(){};
g.R.release=function(){};
g.R.startRendering=function(Q){if(Q.layoutId!==this.layout.layoutId)this.callback.Ce(this.slot,Q,new jX("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 W=RE(Q.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.HN(this.slot,Q),BFs(this.D,
this.slot,W)):sH("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,Q)}};
g.R.An=function(Q,W){Q.layoutId!==this.layout.layoutId?this.callback.Ce(this.slot,Q,new jX("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.BD(this.slot,Q,W),Vtz(this),PeO(this))};g.n(PP,g.Rd);g.R=PP.prototype;g.R.sV=function(){return this.U.slot};
g.R.z1=function(){return this.U.layout};
g.R.init=function(){this.D.get().addListener(this)};
g.R.release=function(){this.D.get().removeListener(this);this.dispose()};
g.R.He=function(){};
g.R.Rr=function(){};
g.R.M2=function(){};
g.R.XQ=function(){};
g.R.startRendering=function(Q){var W=this;V8(this.U,Q,function(){return void W.dj()})};
g.R.dj=function(){this.D.get().dj(this.B)};
g.R.An=function(Q,W){var x=this;V8(this.U,Q,function(){var D=x.D.get();Njs(D,x.B,3);x.B=[];x.callback.BD(x.slot,Q,W)})};
g.R.U3=function(){this.D.d7()||this.D.get().removeListener(this);g.Rd.prototype.U3.call(this)};
g.R1.Object.defineProperties(PP.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.U.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.U.layout}}});dt.prototype.H3=function(Q,W){W=W===void 0?!1:W;var x=(this.D.get(Q)||[]).concat();if(W=W&&p4v(Q)){var D=this.D.get(W);D&&x.push.apply(x,g.C(D))}HP(this,Q,x);this.B.add(Q);W&&this.B.add(W)};
dt.prototype.zn=function(Q,W){W=W===void 0?!1:W;if(!this.B.has(Q)){var x=W&&p4v(Q);x&&(W=!this.B.has(x));this.H3(Q,W)}};g.n(GeQ,MA);g.n(Iu,PP);g.R=Iu.prototype;g.R.TP=function(Q,W){pD("ads-engagement-panel-layout",Q,this.X.get().ZE,this.vt.get(),this.N,this.L,this.sV(),this.z1(),W)};
g.R.startRendering=function(Q){CD(this.Ht,this.sV(),this.z1(),g.e(this.z1().renderingContent,MB),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(W,x,D,K,l){return new GeQ(W,x,D,K,l)},this.B);
PP.prototype.startRendering.call(this,Q)};
g.R.HN=function(Q,W){this.L===W.layoutId&&(this.N===null?this.N=this.vt.get().jU():sH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.R.BD=function(){};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.U3=function(){nd(this.PN(),this);PP.prototype.U3.call(this)};g.n(iVQ,MA);g.n(ms,PP);g.R=ms.prototype;g.R.TP=function(Q,W){pD("banner-image",Q,this.X.get().ZE,this.vt.get(),this.N,this.L,this.sV(),this.z1(),W)};
g.R.startRendering=function(Q){CD(this.Ht,this.sV(),this.z1(),g.e(this.z1().renderingContent,l6),this.callback,"metadata_type_banner_image_layout_view_model",function(W,x,D,K,l){return new iVQ(W,x,D,K,l)},this.B);
PP.prototype.startRendering.call(this,Q)};
g.R.HN=function(Q,W){this.L===W.layoutId&&(this.N===null?this.N=this.vt.get().jU():sH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.R.BD=function(){};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.U3=function(){nd(this.PN(),this);PP.prototype.U3.call(this)};g.n(N_,MA);g.n(cP,PP);g.R=cP.prototype;g.R.TP=function(Q,W){pD("action-companion",Q,this.X.get().ZE,this.vt.get(),this.N,this.L,this.sV(),this.z1(),W)};
g.R.startRendering=function(Q){CD(this.Ht,this.sV(),this.z1(),g.e(this.z1().renderingContent,xO),this.callback,"metadata_type_action_companion_ad_renderer",function(W,x,D,K,l){return new N_(W,x,D,K,l)},this.B);
PP.prototype.startRendering.call(this,Q)};
g.R.HN=function(Q,W){W.layoutId===this.layout.layoutId?this.Ht.zn("impression"):this.L===W.layoutId&&(this.N===null?this.N=this.vt.get().jU():sH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.R.BD=function(){};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.U3=function(){nd(this.PN(),this);PP.prototype.U3.call(this)};g.n(UAD,MA);g.n(gt,PP);g.R=gt.prototype;g.R.TP=function(Q,W){pD("image-companion",Q,this.X.get().ZE,this.vt.get(),this.N,this.L,this.sV(),this.z1(),W)};
g.R.startRendering=function(Q){CD(this.Ht,this.sV(),this.z1(),g.e(this.z1().renderingContent,Dy),this.callback,"metadata_type_image_companion_ad_renderer",function(W,x,D,K,l){return new UAD(W,x,D,K,l)},this.B);
PP.prototype.startRendering.call(this,Q)};
g.R.HN=function(Q,W){W.layoutId===this.layout.layoutId?this.Ht.zn("impression"):this.L===W.layoutId&&(this.N===null?this.N=this.vt.get().jU():sH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.R.BD=function(){};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.U3=function(){nd(this.PN(),this);PP.prototype.U3.call(this)};g.n(BnQ,MA);g.n(y8,PP);g.R=y8.prototype;g.R.TP=function(Q,W){pD("shopping-companion",Q,this.X.get().ZE,this.vt.get(),this.N,this.L,this.sV(),this.z1(),W)};
g.R.startRendering=function(Q){CD(this.Ht,this.sV(),this.z1(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(W,x,D,K,l){return new BnQ(W,x,D,K,l)},this.B);
PP.prototype.startRendering.call(this,Q)};
g.R.HN=function(Q,W){W.layoutId===this.layout.layoutId?this.Ht.zn("impression"):this.L===W.layoutId&&(this.N===null?this.N=this.vt.get().jU():sH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.R.BD=function(){};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.U3=function(){nd(this.PN(),this);PP.prototype.U3.call(this)};g.n(fD,PP);g.R=fD.prototype;g.R.startRendering=function(Q){CD(this.Ht,this.sV(),this.z1(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(W,x,D,K,l){return new N_(W,x,D,K,l)},this.B);
PP.prototype.startRendering.call(this,Q)};
g.R.HN=function(){};
g.R.BD=function(){};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.U3=function(){nd(this.PN(),this);PP.prototype.U3.call(this)};
g.R.TP=function(){};g.R=g_D.prototype;g.R.sV=function(){return this.slot};
g.R.z1=function(){return this.layout};
g.R.init=function(){this.Jf.get().addListener(this);this.Jf.get().jl.push(this);var Q=RE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),W=RE(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");hD(this.layout.bN)&&Qd(this.BN.get(),this.layout.layoutId,{mW:W,CG:Q,listener:this})};
g.R.release=function(){this.Jf.get().removeListener(this);UeF(this.Jf.get(),this);hD(this.layout.bN)&&WS(this.BN.get(),this.layout.layoutId)};
g.R.startRendering=function(Q){this.callback.HN(this.slot,Q)};
g.R.An=function(Q,W){lU4(this.yj.get())&&!this.B&&(this.Ht.zn("abandon"),this.B=!0);this.callback.BD(this.slot,Q,W)};
g.R.LR=function(Q){switch(Q.id){case "part2viewed":this.Ht.zn("start");this.Ht.zn("impression");break;case "videoplaytime25":this.Ht.zn("first_quartile");break;case "videoplaytime50":this.Ht.zn("midpoint");break;case "videoplaytime75":this.Ht.zn("third_quartile");break;case "videoplaytime100":lU4(this.yj.get())?this.B||(this.Ht.zn("complete"),this.B=!0):this.Ht.zn("complete");$4(this.Ht)&&q_(this.Ht,Infinity,!0);jhO(this.yj.get())&&ez(this.U,Infinity,!0);break;case "engagedview":$4(this.Ht)||this.Ht.zn("progress");
break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:sH("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.R.onVolumeChange=function(){};
g.R.hv=function(){};
g.R.NC=function(){};
g.R.v9=function(){};
g.R.onFullscreenToggled=function(){};
g.R.L2=function(){};
g.R.LA=function(){};
g.R.g6=function(Q){jhO(this.yj.get())&&ez(this.U,Q*1E3,!1);$4(this.Ht)&&q_(this.Ht,Q*1E3,!1)};
g.R.j9=function(){};
g.R.rh=function(){this.Ht.zn("active_view_measurable")};
g.R.YF=function(){this.Ht.zn("active_view_viewable")};
g.R.Go=function(){this.Ht.zn("active_view_fully_viewable_audible_half_duration")};
g.R.oC=function(){this.Ht.zn("audio_measurable")};
g.R.ji=function(){this.Ht.zn("audio_audible")};g.n(Zk,PP);g.R=Zk.prototype;g.R.init=function(){PP.prototype.init.call(this);var Q=RE(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),W={adsClientData:this.layout.EV};this.B.push(new Pi(Q,this.layout.layoutId,RE(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),W,!0))};
g.R.o7=function(){this.N||this.Jf.get().resumeVideo(1)};
g.R.startRendering=function(Q){PP.prototype.startRendering.call(this,Q);RM(this.Jf.get(),"ad-showing");this.callback.HN(this.slot,Q);this.L.UN=this};
g.R.An=function(Q,W){PP.prototype.An.call(this,Q,W);wb(this.Jf.get(),"ad-showing");ZB(this.L,this)};
g.R.TP=function(Q){switch(Q){case "ad-info-icon-button":(this.N=this.Jf.get().wV(1))||this.Jf.get().pauseVideo();break;case "visit-advertiser":this.Jf.get().pauseVideo()}};
g.R.U3=function(){PP.prototype.U3.call(this)};g.n(LD,MA);g.n(rt,PP);g.R=rt.prototype;g.R.startRendering=function(Q){CD(this.Ht,this.sV(),this.z1(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(W,x,D,K,l){return new LD(W,x,D,K,l)},this.B);
PP.prototype.startRendering.call(this,Q)};
g.R.HN=function(){};
g.R.BD=function(){};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.U3=function(){nd(this.PN(),this);PP.prototype.U3.call(this)};
g.R.TP=function(){};g.n(T5,MA);g.n(Op,PP);Op.prototype.init=function(){PP.prototype.init.call(this);this.B.push(new T5(g.e(this.layout.renderingContent,d9),this.layout.layoutId,{adsClientData:this.layout.EV}))};
Op.prototype.TP=function(){i8(this.N.get(),this.L)&&JD(this.vt.get(),3)};
Op.prototype.startRendering=function(Q){PP.prototype.startRendering.call(this,Q);this.callback.HN(this.slot,Q)};
Op.prototype.U3=function(){PP.prototype.U3.call(this)};g.n(Ep,MA);g.n(FX,PP);FX.prototype.init=function(){PP.prototype.init.call(this);var Q=g.e(this.layout.renderingContent,b7)||RE(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),W=vP(this.Ht);this.B.push(new Ep(Q,W,this.layout.layoutId,{adsClientData:this.layout.EV},!0,!0))};
FX.prototype.startRendering=function(Q){PP.prototype.startRendering.call(this,Q);this.callback.HN(this.slot,Q)};
FX.prototype.TP=function(Q,W){if(W===this.layout.layoutId)switch(Q){case "skip-button":var x;(Q=(x=RE(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:x.current)&&Q.uo(this.sV(),this.layout)}};
FX.prototype.U3=function(){PP.prototype.U3.call(this)};Q$.prototype.build=function(Q,W,x,D){if(tD(D,{xD:["metadata_type_ad_break_response_data"],wP:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new YPO(Q,x,D,this.U,this.D,this.B);throw new jX("Unsupported layout with type: "+D.layoutType+" and client metadata: "+wO(D.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.n(fIs,MA);g.n(Wl,PP);g.R=Wl.prototype;g.R.TP=function(Q,W){pD("ads-engagement-panel",Q,this.X.get().ZE,this.vt.get(),this.N,this.L,this.sV(),this.z1(),W)};
g.R.startRendering=function(Q){CD(this.Ht,this.sV(),this.z1(),g.e(this.z1().renderingContent,KU),this.callback,"metadata_type_ads_engagement_panel_renderer",function(W,x,D,K,l){return new fIs(W,x,D,K,l)},this.B);
PP.prototype.startRendering.call(this,Q)};
g.R.HN=function(Q,W){W.layoutId===this.layout.layoutId?this.Ht.zn("impression"):this.L===W.layoutId&&(this.N===null?this.N=this.vt.get().jU():sH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.R.BD=function(){};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.U3=function(){nd(this.PN(),this);PP.prototype.U3.call(this)};g.n(xd,PP);g.R=xd.prototype;g.R.TP=function(Q,W){pD("top-banner-image-text-icon-buttoned",Q,this.X.get().ZE,this.vt.get(),this.N,this.L,this.sV(),this.z1(),W)};
g.R.startRendering=function(Q){CD(this.Ht,this.sV(),this.z1(),g.e(this.z1().renderingContent,jN),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(W,x,D,K,l){return new LD(W,x,D,K,l)},this.B);
PP.prototype.startRendering.call(this,Q)};
g.R.HN=function(Q,W){this.L===W.layoutId&&(this.N===null?this.N=this.vt.get().jU():sH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.R.BD=function(){};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.U3=function(){nd(this.PN(),this);PP.prototype.U3.call(this)};r_F.prototype.build=function(Q,W,x,D){if(tD(D,ZVv())||g.e(D.renderingContent,KU)!==void 0)return new Wl(Q,x,D,this.Vh,this.vt,this.PN,this.BN,this.B);if(tD(D,HV2())||g.e(D.renderingContent,xO)!==void 0)return new cP(Q,x,D,this.Vh,this.vt,this.PN,this.BN,this.B);if(tD(D,qPz())||g.e(D.renderingContent,Dy)!==void 0)return new gt(Q,x,D,this.Vh,this.vt,this.PN,this.BN,this.B);if(tD(D,$As()))return new y8(Q,x,D,this.Vh,this.vt,this.PN,this.BN,this.B);if(tD(D,c_5()))return new fD(Q,x,D,this.Vh,this.vt,this.PN,
this.BN,this.B);if(tD(D,A_4())||g.e(D.renderingContent,l6)!==void 0)return new ms(Q,x,D,this.Vh,this.vt,this.PN,this.BN,this.B);if(tD(D,LYQ())||g.e(D.renderingContent,jN)!==void 0)return new xd(Q,x,D,this.Vh,this.vt,this.PN,this.BN,this.B);if(tD(D,y_4()))return new rt(Q,x,D,this.Vh,this.vt,this.PN,this.BN,this.B);if(tD(D,dAD())||g.e(D.renderingContent,MB)!==void 0)return new Iu(Q,x,D,this.Vh,this.vt,this.PN,this.BN,this.B);throw new jX("Unsupported layout with type: "+D.layoutType+" and client metadata: "+
wO(D.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};Tnz.prototype.build=function(Q,W,x,D){if(tD(D,{xD:["metadata_type_linked_player_bytes_layout_id"],wP:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new Op(Q,x,D,this.Vh,this.vt,this.B);throw new jX("Unsupported layout with type: "+D.layoutType+" and client metadata: "+wO(D.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.R=OV2.prototype;g.R.sV=function(){return this.slot};
g.R.z1=function(){return this.layout};
g.R.init=function(){};
g.R.release=function(){};
g.R.startRendering=function(Q){Q.layoutId!==this.layout.layoutId?this.callback.Ce(this.slot,Q,new jX("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.HN(this.slot,Q),this.Ht.zn("impression"),rE(this.Es,Q,"normal"))};
g.R.An=function(Q,W){Q.layoutId!==this.layout.layoutId?this.callback.Ce(this.slot,Q,new jX("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.BD(this.slot,Q,W)};g.R=FY1.prototype;g.R.sV=function(){return this.slot};
g.R.z1=function(){return this.layout};
g.R.init=function(){};
g.R.release=function(){};
g.R.startRendering=function(Q){Q.layoutId!==this.layout.layoutId?this.callback.Ce(this.slot,Q,new jX("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.HN(this.slot,Q),this.Ht.zn("impression"),rE(this.Es,Q,"normal"))};
g.R.An=function(Q,W){Q.layoutId!==this.layout.layoutId?this.callback.Ce(this.slot,Q,new jX("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.BD(this.slot,Q,W)};DC.prototype.build=function(Q,W,x,D){if(!this.yj.get().J.C().j("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(tD(D,E_n()))return new OV2(Q,x,D,this.vt,this.Es)}else if(tD(D,{xD:[],wP:["LAYOUT_TYPE_FORECASTING"]}))return new FY1(Q,x,D,this.vt,this.Es);throw new jX("Unsupported layout with type: "+D.layoutType+" and client metadata: "+wO(D.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.n(W4n,MA);g.n(K3,PP);g.R=K3.prototype;g.R.init=function(){PP.prototype.init.call(this);var Q=g.e(this.layout.renderingContent,Sm)||RE(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),W={adsClientData:this.layout.EV};this.B.push(new W4n(Q,RE(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,W))};
g.R.o7=function(){this.N||this.Jf.get().resumeVideo(2)};
g.R.startRendering=function(Q){PP.prototype.startRendering.call(this,Q);this.callback.HN(this.slot,Q);this.L.UN=this};
g.R.An=function(Q,W){PP.prototype.An.call(this,Q,W);ZB(this.L,this)};
g.R.TP=function(Q){if(i8(this.X.get(),this.G))switch(Q){case "visit-advertiser-link":JD(this.vt.get(),3)}switch(Q){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.N||this.Jf.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.N=this.Jf.get().wV(2))||this.Jf.get().pauseVideo();break;case "visit-advertiser-link":this.Jf.get().pauseVideo();xrs(this).Pa();break;case "skip-button":if(Q=xrs(this),
this.layout.renderingContent&&!Du(this.layout.clientMetadata,"metadata_type_dai")||!Q.Iv){var W;(Q=(W=RE(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:W.current)&&Q.uo(this.sV(),this.layout)}else sH("Requesting to skip by LegacyPlayerBytes when components enabled"),Q.IC(this.sV(),this.layout)}};
g.R.U3=function(){PP.prototype.U3.call(this)};g.n(l7,PP);g.R=l7.prototype;g.R.init=function(){PP.prototype.init.call(this);var Q=g.e(this.layout.renderingContent,ww)||RE(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),W={adsClientData:this.layout.EV},x;(x=!!this.layout.renderingContent)||(x=!jm(this).Iv);this.B.push(new Pi(Q,this.layout.layoutId,RE(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),W,x))};
g.R.o7=function(){this.N||this.Jf.get().resumeVideo(2)};
g.R.startRendering=function(Q){PP.prototype.startRendering.call(this,Q);this.callback.HN(this.slot,Q);this.L.UN=this};
g.R.An=function(Q,W){PP.prototype.An.call(this,Q,W);ZB(this.L,this)};
g.R.TP=function(Q){if(i8(this.X.get(),this.G))switch(Q){case "visit-advertiser":JD(this.vt.get(),3)}switch(Q){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.N||this.Jf.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.N=this.Jf.get().wV(2))||this.Jf.get().pauseVideo();break;case "visit-advertiser":this.Jf.get().pauseVideo();jm(this).Pa();break;case "skip-button":if(Q=jm(this),this.layout.renderingContent&&
!Du(this.layout.clientMetadata,"metadata_type_dai")||!Q.Iv){var W;(Q=(W=RE(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:W.current)&&Q.uo(this.sV(),this.layout)}else sH("Requesting to skip by LegacyPlayerBytes"),Q.IC(this.sV(),this.layout)}};
g.R.U3=function(){PP.prototype.U3.call(this)};g.n(K4v,MA);g.n(Mq,PP);g.R=Mq.prototype;g.R.startRendering=function(Q){var W=this;V8(this.U,Q,function(){W.B.push(new K4v(RE(W.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),Q.layoutId,Q.EV));W.dj();W.callback.HN(W.slot,Q);g.r(tT(W.Jf.get(),1),512)&&W.callback.Ce(W.sV(),W.z1(),new jX("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.R.LA=function(){};
g.R.L2=function(Q){if(Q.state.isError()){var W;this.callback.Ce(this.sV(),this.z1(),new jX("A player error happened during adNotify",{playerErrorCode:(W=Q.state.HI)==null?void 0:W.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
g.R.onFullscreenToggled=function(){};
g.R.NC=function(){};
g.R.v9=function(){};
g.R.hv=function(){};
g.R.onVolumeChange=function(){};
g.R.LR=function(){};
g.R.j9=function(){};
g.R.TP=function(){};g.n(jls,MA);g.n(R0,PP);R0.prototype.init=function(){PP.prototype.init.call(this);var Q=g.e(this.layout.renderingContent,sC),W=vP(this.Ht);this.B.push(new jls(Q,W,this.layout.layoutId,{adsClientData:this.layout.EV}))};
R0.prototype.startRendering=function(Q){PP.prototype.startRendering.call(this,Q);this.callback.HN(this.slot,Q)};
R0.prototype.TP=function(Q,W){if(W===this.layout.layoutId)switch(Q){case "skip-button":var x;(Q=(x=RE(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:x.current)&&Q.uo(this.sV(),this.layout)}};
R0.prototype.U3=function(){PP.prototype.U3.call(this)};Miz.prototype.build=function(Q,W,x,D){if(Q=zu(Q,x,D,this.Vh,this.Jf,this.vt,this.U,this.B,this.yj))return Q;throw new jX("Unsupported layout with type: "+D.layoutType+" and client metadata: "+wO(D.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.R=o0.prototype;g.R.sV=function(){return this.slot};
g.R.z1=function(){return this.layout};
g.R.init=function(){this.Jf.get().addListener(this);this.Jf.get().jl.push(this);var Q=this.layout.renderingContent?nz(this.o5.get(),1).JP/1E3:RE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),W=g.e(this.layout.renderingContent,nU),x=W?au(W.pings):RE(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");W=W?J_Q(W.pings):RE(this.layout.clientMetadata,"metadata_type_active_view_identifier");hD(this.layout.bN)&&Qd(this.BN.get(),this.layout.layoutId,{mW:x,CG:Q,listener:this,
K5:W})};
g.R.release=function(){this.Jf.get().removeListener(this);UeF(this.Jf.get(),this);hD(this.layout.bN)&&WS(this.BN.get(),this.layout.layoutId)};
g.R.startRendering=function(Q){this.callback.HN(this.slot,Q)};
g.R.An=function(Q,W){u7(this,"abandon");this.callback.BD(this.slot,Q,W)};
g.R.LR=function(Q){switch(Q.id){case "part2viewed":this.Ht.zn("start");this.Ht.zn("impression");break;case "videoplaytime25":this.Ht.zn("first_quartile");break;case "videoplaytime50":this.Ht.zn("midpoint");break;case "videoplaytime75":this.Ht.zn("third_quartile");break;case "videoplaytime100":u7(this,"complete");$4(this.Ht)&&q_(this.Ht,Infinity,!0);break;case "engagedview":$4(this.Ht)||this.Ht.zn("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:sH("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
g.R.onVolumeChange=function(){};
g.R.hv=function(){};
g.R.NC=function(){};
g.R.v9=function(){};
g.R.onFullscreenToggled=function(){};
g.R.L2=function(Q){this.B||(g.XV(Q,4)&&!g.XV(Q,2)?Up(this.Ht,"pause"):kZ(Q,4)<0&&!(kZ(Q,2)<0)&&Up(this.Ht,"resume"))};
g.R.LA=function(){};
g.R.g6=function(Q){$4(this.Ht)&&q_(this.Ht,Q*1E3,!1)};
g.R.j9=function(){u7(this,"swipe")};
g.R.rh=function(){this.Ht.zn("active_view_measurable")};
g.R.YF=function(){this.Ht.zn("active_view_viewable")};
g.R.Go=function(){this.Ht.zn("active_view_fully_viewable_audible_half_duration")};
g.R.oC=function(){this.Ht.zn("audio_measurable")};
g.R.ji=function(){this.Ht.zn("audio_audible")};RNh.prototype.build=function(Q,W,x,D){if(x.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.e(D.renderingContent,nU)!==void 0)return new o0(Q,x,D,this.Jf,this.vt,this.yj,this.BN,this.o5);W=["metadata_type_ad_placement_config"];for(var K=g.V(id()),l=K.next();!l.done;l=K.next())W.push(l.value);if(tD(D,{xD:W,wP:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return x.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new o0(Q,x,D,this.Jf,this.vt,this.yj,this.BN,this.o5):new g_D(Q,x,D,this.Jf,this.vt,
this.JO,this.yj,this.BN);throw new jX("Unsupported layout with type: "+D.layoutType+" and client metadata: "+wO(D.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Pl={contentCpn:"",Qu:new Map};YHz.prototype.T1=function(Q,W){var x={};W=Object.assign({},W,(x.cc=this.h2.kG(),x));this.h2.J.qj(Q,W)};var c$5,BU;
c$5={iA3:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",FEt:"AUTHENTICATION_MALFORMED",Dn9:"AUTHENTICATION_MISSING",KE3:"BAD_REQUEST",lL3:"CAST_SESSION_DEVICE_MISMATCHED",dn3:"CAST_SESSION_VIDEO_MISMATCHED",LE7:"CAST_TOKEN_EXPIRED",Ep9:"CAST_TOKEN_FAILED",vpj:"CAST_TOKEN_MALFORMED",gp3:"CGI_PARAMS_MALFORMED",jHf:"CGI_PARAMS_MISSING",npf:"DEVICE_FALLBACK",dqS:"GENERIC_WITH_LINK_AND_CPN",Lfj:"ERROR_HDCP",EWt:"LICENSE",gWS:"VIDEO_UNAVAILABLE",ez3:"FORMAT_UNAVAILABLE",Rz3:"GEO_FAILURE",
buj:"HTML5_AUDIO_RENDERER_ERROR",xH9:"GENERIC_WITHOUT_LINK",qGZ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",u41:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",pMj:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Bmj:"HTML5_SPS_UMP_STATUS_REJECTED",J91:"INVALID_DRM_MESSAGE",xy5:"PURCHASE_NOT_FOUND",qcZ:"PURCHASE_REFUNDED",Fu9:"RENTAL_EXPIRED",QpZ:"RETRYABLE_ERROR",vI1:"SERVER_ERROR",z3S:"SIGNATURE_EXPIRED",i75:"STOPPED_BY_ANOTHER_PLAYBACK",Wut:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",C$3:"STREAMING_NOT_ALLOWED",
P$5:"STREAM_LICENSE_NOT_FOUND",Z7Z:"TOO_MANY_REQUESTS",TV3:"TOO_MANY_REQUESTS_WITH_LINK",nIZ:"TOO_MANY_STREAMS_PER_ENTITLEMENT",ba3:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",Lb3:"VIDEO_FORBIDDEN",EJ9:"VIDEO_NOT_FOUND",QH3:"BROWSER_OR_EXTENSION_ERROR"};BU={};
g.y1=(BU.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.",BU.DEVICE_FALLBACK="Sorry, this video is not available on this device.",BU.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",BU.LICENSE="Sorry, there was an error licensing this video.",BU.VIDEO_UNAVAILABLE=
"Video unavailable",BU.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",BU.GEO_FAILURE="This video isn't available in your country.",BU.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",BU.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",BU.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",BU.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",
BU.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",BU.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",BU.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",BU.PURCHASE_NOT_FOUND="This video requires payment.",BU.PURCHASE_REFUNDED="This video's purchase has been refunded.",BU.RENTAL_EXPIRED="This video's rental has expired.",BU.CAST_SESSION_DEVICE_MISMATCHED=
"The device in the cast session doesn't match the requested one.",BU.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",BU.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",BU.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",BU.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",BU.SERVER_ERROR="There was an internal server error. Please try again later.",BU.STOPPED_BY_ANOTHER_PLAYBACK=
"Your account is playing this video in another location. Please reload this page to resume watching.",BU.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",BU.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",BU.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",BU.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",BU.TOO_MANY_REQUESTS="Please log in to watch this video.",
BU.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",BU.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",BU.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",BU.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",BU.VIDEO_FORBIDDEN="Access to this video is forbidden.",BU.VIDEO_NOT_FOUND="This video can not be found.",BU.BROWSER_OR_EXTENSION_ERROR=
"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",BU);var gVH;var y$A=g.Ae(),eZ5=y$A.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!eZ5||eZ5.length<2)gVH=void 0;else{var f3s=y$A.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);gVH=f3s&&f3s.length===6?Number(f3s[5].replace("_",".")):0}var re=gVH,Ig=re>=0;g.n(g.I0,aC);g.I0.prototype.W=function(Q,W,x,D,K){return aC.prototype.W.call(this,Q,W,x,D,K)};var $f={},oI=($f.FAIRPLAY="fairplay",$f.PLAYREADY="playready",$f.WIDEVINE="widevine",$f.CLEARKEY=null,$f.FLASHACCESS=null,$f.UNKNOWN=null,$f.WIDEVINE_CLASSIC=null,$f);mQ.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var IV={},CN=(IV.WIDTH={name:"width",video:!0,valid:640,GN:99999},IV.HEIGHT={name:"height",video:!0,valid:360,GN:99999},IV.FRAMERATE={name:"framerate",video:!0,valid:30,GN:9999},IV.BITRATE={name:"bitrate",video:!0,valid:3E5,GN:2E9},IV.EOTF={name:"eotf",video:!0,valid:"bt709",GN:"catavision"},IV.CHANNELS={name:"channels",video:!1,valid:2,GN:99},IV.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",GN:"invalidformat"},IV.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
GN:"nope"},IV.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",GN:"av99.0.05M.08"},IV.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",GN:"invalid"},IV);var ZjH=["h","H"],LLF=["9","("],r$C=["9h","(h"],Tfq=["8","*"],Oje=["a","A"],EVR=["o","O"],FLp=["m","M"],tjp=["mac3","MAC3"],Qpp=["meac3","MEAC3"],mt={},Xaa=(mt.h=ZjH,mt.H=ZjH,mt["9"]=LLF,mt["("]=LLF,mt["9h"]=r$C,mt["(h"]=r$C,mt["8"]=Tfq,mt["*"]=Tfq,mt.a=Oje,mt.A=Oje,mt.o=EVR,mt.O=EVR,mt.m=FLp,mt.M=FLp,mt.mac3=tjp,mt.MAC3=tjp,mt.meac3=Qpp,mt.MEAC3=Qpp,mt),WpC=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),Mm1=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var F={},f3=(F["0"]="f",F["160"]="h",F["133"]="h",F["134"]="h",F["135"]="h",F["136"]="h",F["137"]="h",F["264"]="h",F["266"]="h",F["138"]="h",F["298"]="h",F["299"]="h",F["304"]="h",F["305"]="h",F["214"]="h",F["216"]="h",F["374"]="h",F["375"]="h",F["140"]="a",F["141"]="ah",F["327"]="sa",F["258"]="m",F["380"]="mac3",F["328"]="meac3",F["161"]="H",F["142"]="H",F["143"]="H",F["144"]="H",F["222"]="H",F["223"]="H",F["145"]="H",F["224"]="H",F["225"]="H",F["146"]="H",F["226"]="H",F["227"]="H",F["147"]="H",
F["384"]="H",F["376"]="H",F["385"]="H",F["377"]="H",F["149"]="A",F["261"]="M",F["381"]="MAC3",F["329"]="MEAC3",F["598"]="9",F["278"]="9",F["242"]="9",F["243"]="9",F["244"]="9",F["775"]="9",F["776"]="9",F["777"]="9",F["778"]="9",F["779"]="9",F["780"]="9",F["781"]="9",F["782"]="9",F["783"]="9",F["247"]="9",F["248"]="9",F["353"]="9",F["355"]="9",F["356"]="9",F["271"]="9",F["577"]="9",F["313"]="9",F["579"]="9",F["272"]="9",F["302"]="9",F["303"]="9",F["407"]="9",F["408"]="9",F["308"]="9",F["315"]="9",
F["330"]="9h",F["331"]="9h",F["332"]="9h",F["333"]="9h",F["334"]="9h",F["335"]="9h",F["336"]="9h",F["337"]="9h",F["338"]="so",F["600"]="o",F["250"]="o",F["251"]="o",F["774"]="o",F["194"]="*",F["195"]="*",F["220"]="*",F["221"]="*",F["196"]="*",F["197"]="*",F["279"]="(",F["280"]="(",F["317"]="(",F["318"]="(",F["273"]="(",F["274"]="(",F["357"]="(",F["358"]="(",F["275"]="(",F["359"]="(",F["360"]="(",F["276"]="(",F["583"]="(",F["584"]="(",F["314"]="(",F["585"]="(",F["561"]="(",F["277"]="(",F["361"]="(h",
F["362"]="(h",F["363"]="(h",F["364"]="(h",F["365"]="(h",F["366"]="(h",F["591"]="(h",F["592"]="(h",F["367"]="(h",F["586"]="(h",F["587"]="(h",F["368"]="(h",F["588"]="(h",F["562"]="(h",F["409"]="(",F["410"]="(",F["411"]="(",F["412"]="(",F["557"]="(",F["558"]="(",F["394"]="1",F["395"]="1",F["396"]="1",F["397"]="1",F["398"]="1",F["399"]="1",F["720"]="1",F["721"]="1",F["400"]="1",F["401"]="1",F["571"]="1",F["402"]="1",F["694"]="1h",F["695"]="1h",F["696"]="1h",F["697"]="1h",F["698"]="1h",F["699"]="1h",F["700"]=
"1h",F["701"]="1h",F["702"]="1h",F["703"]="1h",F["386"]="3",F["387"]="w",F["406"]="6",F["787"]="1",F["788"]="1",F["548"]="1e",F["549"]="1e",F["550"]="1e",F["551"]="1e",F["809"]="1e",F["810"]="1e",F["552"]="1e",F["811"]="1e",F["812"]="1e",F["553"]="1e",F["813"]="1e",F["814"]="1e",F["554"]="1e",F["815"]="1e",F["816"]="1e",F["555"]="1e",F["817"]="1e",F["818"]="1e",F["572"]="1e",F["556"]="1e",F["645"]="(",F["646"]="(",F["647"]="(",F["648"]="(",F["649"]="(",F["650"]="(",F["651"]="(",F["652"]="(",F["653"]=
"(",F["654"]="(",F["655"]="(",F["656"]="(",F["657"]="(",F["658"]="(",F["659"]="(",F["660"]="(",F["661"]="(",F["662"]="(",F["663"]="(",F["664"]="(",F["665"]="(",F["666"]="(",F["667"]="(",F["668"]="(",F["669"]="(",F["670"]="(",F["671"]="(",F["672"]="(",F["673"]="(",F["674"]="(h",F["675"]="(h",F["676"]="(h",F["677"]="(h",F["678"]="(h",F["679"]="(h",F["680"]="(h",F["681"]="(h",F["682"]="(h",F["683"]="(h",F["684"]="(h",F["685"]="(h",F["686"]="(h",F["687"]="(h",F["688"]="A",F["689"]="A",F["690"]="A",F["691"]=
"MEAC3",F["773"]="i",F["806"]="I",F["805"]="I",F["829"]="9",F["830"]="9",F["831"]="9",F["832"]="9",F["833"]="9",F["834"]="9",F["835"]="9",F["836"]="9",F["837"]="9",F["838"]="9",F["839"]="9",F["840"]="9",F["841"]="(",F["842"]="(",F["843"]="(",F["844"]="(",F["845"]="(",F["846"]="(",F["847"]="(",F["848"]="(",F["849"]="(",F["850"]="(",F["851"]="(",F["852"]="(",F["865"]="9",F["866"]="9",F["867"]="9",F["868"]="9",F["869"]="9",F["870"]="9",F["871"]="9",F["872"]="9",F["873"]="9",F["874"]="9",F["875"]="9",
F["876"]="9",F["877"]="(",F["878"]="(",F["879"]="(",F["880"]="(",F["881"]="(",F["882"]="(",F["883"]="(",F["884"]="(",F["885"]="(",F["886"]="(",F["887"]="(",F["888"]="(",F);var Ni={},OSl=(Ni.STEREO_LAYOUT_UNKNOWN=0,Ni.STEREO_LAYOUT_LEFT_RIGHT=1,Ni.STEREO_LAYOUT_TOP_BOTTOM=2,Ni);var cU,wQ;cU={};g.cl=(cU.auto=0,cU.tiny=144,cU.light=144,cU.small=240,cU.medium=360,cU.large=480,cU.hd720=720,cU.hd1080=1080,cU.hd1440=1440,cU.hd2160=2160,cU.hd2880=2880,cU.highres=4320,cU);wQ={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var y$="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");gw.prototype.isHdr=function(){return this.U==="smpte2084"||this.U==="arib-std-b67"};ZC.prototype.i6=function(){return this.containerType===2};
ZC.prototype.isEncrypted=function(){return!!this.Qp};
ZC.prototype.Mx=function(){return!!this.audio};
ZC.prototype.OQ=function(){return!!this.video};
var Tu=!1;g.n(oU,g.Rd);g.R=oU.prototype;g.R.appendBuffer=function(Q,W,x){if(this.PD.BC()!==this.appendWindowStart+this.start||this.PD.CO()!==this.appendWindowEnd+this.start||this.PD.aW()!==this.timestampOffset+this.start)this.PD.supports(1),this.PD.EA(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.PD.PL(this.timestampOffset+this.start);this.PD.appendBuffer(Q,W,x)};
g.R.abort=function(){this.PD.abort()};
g.R.remove=function(Q,W){this.PD.remove(Q+this.start,W+this.start)};
g.R.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.R.clear=function(){this.PD.clear()};
g.R.EA=function(Q,W){this.appendWindowStart=Q;this.appendWindowEnd=W};
g.R.YB=function(){return this.timestampOffset+this.start};
g.R.BC=function(){return this.appendWindowStart};
g.R.CO=function(){return this.appendWindowEnd};
g.R.PL=function(Q){this.timestampOffset=Q};
g.R.aW=function(){return this.timestampOffset};
g.R.dP=function(Q){Q=this.PD.dP(Q===void 0?!1:Q);return Xs(Q,this.start,this.end)};
g.R.X1=function(){return this.PD.X1()};
g.R.Q9=function(){return this.PD.Q9()};
g.R.ol=function(){return this.PD.ol()};
g.R.JL=function(){return this.PD.JL()};
g.R.df=function(){this.PD.df()};
g.R.bb=function(Q){return this.PD.bb(Q)};
g.R.Xm=function(){return this.PD.Xm()};
g.R.Tv=function(){return this.PD.Tv()};
g.R.aD=function(){return this.PD.aD()};
g.R.YA=function(Q,W,x){this.PD.YA(Q,W,x)};
g.R.zJ=function(Q,W,x){this.PD.zJ(Q,W,x)};
g.R.IV=function(Q,W){return this.PD.IV(Q,W)};
g.R.supports=function(Q){return this.PD.supports(Q)};
g.R.JY=function(){return this.PD.JY()};
g.R.isView=function(){return!0};
g.R.qE=function(){return this.PD.qE()?this.isActive:!1};
g.R.isLocked=function(){return this.SR&&!this.isActive};
g.R.AO=function(Q){Q=this.PD.AO(Q);Q.vw=this.start+"-"+this.end;return Q};
g.R.nO=function(){return this.PD.nO()};
g.R.S3=function(){return this.PD.S3()};
g.R.dN=function(){return this.PD.dN()};
g.R.U3=function(){this.PD.MP(this.gg);g.Rd.prototype.U3.call(this)};var vn=!1;g.n(YU,g.Rd);g.R=YU.prototype;g.R.appendBuffer=function(Q,W,x){this.JU=!1;x&&(this.F2=x);if(Q.length){var D;((D=this.Ln)==null?0:D.appendBuffer)?this.Ln.appendBuffer(Q):this.Ln?this.Ln.append(Q):this.JA&&this.JA.webkitSourceAppend(this.id,Q)}W&&(W.isEncrypted()&&(this.Hm=this.F2),W.type===3&&(this.iG=W),this.UC.push(W.Zb()),this.UC.length>4&&this.UC.shift());this.nj&&(this.nj.length>=2||Q.length>1048576?delete this.nj:this.nj.push(Q))};
g.R.abort=function(){try{this.Ln?this.Ln.abort():this.JA&&this.JA.webkitSourceAbort(this.id)}catch(Q){FuO&&g.ql(new g.Lw("Error while abort the source buffer: "+Q.name+", "+Q.message))}this.F2=this.iG=null};
g.R.remove=function(Q,W,x){this.JU=!1;var D;if((D=this.Ln)==null?0:D.remove)x&&x({b:RU(this.dP()),s:Q,e:W}),this.Ln.remove(Q,W)};
g.R.removeAll=function(){this.remove(this.BC(),this.CO())};
g.R.clear=function(){this.ol()||(this.abort(),this.removeAll(),this.Hm=this.F2=this.iG=null,this.appendWindowStart=this.timestampOffset=0,this.dl=MN([],[]),this.JU=!1,this.nj=u9?[]:void 0,this.mA=!0)};
g.R.BC=function(){if(vn&&this.OQ)return this.appendWindowStart;var Q;return((Q=this.Ln)==null?void 0:Q.appendWindowStart)||0};
g.R.CO=function(){var Q;return((Q=this.Ln)==null?void 0:Q.appendWindowEnd)||0};
g.R.EA=function(Q,W){this.Ln&&(vn&&this.OQ?(this.appendWindowStart=Q,this.Ln.appendWindowEnd=W):Q>this.BC()?(this.Ln.appendWindowEnd=W,this.Ln.appendWindowStart=Q):(this.Ln.appendWindowStart=Q,this.Ln.appendWindowEnd=W))};
g.R.YB=function(){return this.timestampOffset};
g.R.PL=function(Q){vn?this.timestampOffset=Q:this.supports(1)&&(this.Ln.timestampOffset=Q)};
g.R.aW=function(){return vn?this.timestampOffset:this.supports(1)?this.Ln.timestampOffset:0};
g.R.dP=function(Q){if(Q===void 0?0:Q)return this.JU||this.X1()||(this.dl=this.dP(!1),this.JU=!0),this.dl;try{return this.Ln?this.Ln.buffered:this.JA?this.JA.webkitSourceBuffered(this.id):MN([0],[Infinity])}catch(W){return MN([],[])}};
g.R.X1=function(){var Q;return((Q=this.Ln)==null?void 0:Q.updating)||!1};
g.R.ol=function(){return this.mA};
g.R.JL=function(){return!this.mA&&this.X1()};
g.R.df=function(){this.mA=!1};
g.R.bb=function(Q){var W=Q==null?void 0:Q.CS;Q=Q==null?void 0:Q.containerType;return!W&&!Q||W===this.CS&&Q===this.containerType};
g.R.Xm=function(){return this.F2};
g.R.Tv=function(){return this.Hm};
g.R.IV=function(Q,W){return this.containerType!==Q||this.CS!==W};
g.R.YA=function(Q,W,x){if(this.containerType!==Q||x&&this.IV(Q,x))this.supports(4),nS()&&this.Ln.changeType(W),x&&(this.CS=x);this.containerType=Q};
g.R.zJ=function(Q,W,x){this.containerType&&this.IV(Q,W)&&nS()&&this.Ln.changeType(x);this.containerType=Q;this.CS=W};
g.R.JY=function(){return this.iG};
g.R.isView=function(){return!1};
g.R.supports=function(Q){switch(Q){case 1:var W;return((W=this.Ln)==null?void 0:W.timestampOffset)!==void 0;case 0:var x;return!((x=this.Ln)==null||!x.appendBuffer);case 2:var D;return!((D=this.Ln)==null||!D.remove);case 3:var K,l;return!!(((K=this.Ln)==null?0:K.addEventListener)&&((l=this.Ln)==null?0:l.removeEventListener));case 4:return!(!this.Ln||!this.Ln.changeType);default:return!1}};
g.R.qE=function(){return!this.X1()};
g.R.isLocked=function(){return!1};
g.R.AO=function(Q){Q.to=this.aW();Q.up=this.X1();var W,x=((W=this.Ln)==null?void 0:W.appendWindowStart)||0,D;W=((D=this.Ln)==null?void 0:D.appendWindowEnd)||Infinity;Q.aw=x.toFixed(3)+"-"+W.toFixed(3);return Q};
g.R.Q9=function(){var Q;return((Q=this.Ln)==null?void 0:Q.writeHead)||0};
g.R.nO=function(){for(var Q={},W=0;W<this.UC.length;W++)Q["s"+W]=this.UC[W];return Q};
g.R.U3=function(){this.supports(3)&&(this.Ln.removeEventListener("updateend",this.St),this.Ln.removeEventListener("error",this.St));g.Rd.prototype.U3.call(this)};
g.R.S3=function(){return this.containerType};
g.R.aD=function(){return this.CS};
g.R.dN=function(){return this.nj};
var u9=!1,FuO=!1;Vy.prototype.dispose=function(){if(!this.d7()){if(this.B)try{URL.revokeObjectURL(this.Db)}catch(Q){}this.U=!0}};
Vy.prototype.d7=function(){return this.U};
Vy.prototype.yI=function(Q){return Q!==null&&Q.Db===this.Db};
Vy.prototype.toString=function(){return"MediaResource {"+this.Db+"}"};g.n(PT,g.N);g.R=PT.prototype;g.R.getDuration=function(){var Q;return((Q=this.r7)==null?void 0:Q.duration)||this.T};
g.R.PF=function(Q){try{this.r7?this.r7.duration=Q:(this.T=Q,this.JA.webkitSourceSetDuration(Q))}catch(W){}};
g.R.C2=function(){try{return Ew(this)==="closed"}catch(Q){return!0}};
g.R.X1=function(){return!!(this.B&&this.B.X1()||this.U&&this.U.X1())};
g.R.isAsync=function(){return this.B?!!this.B.supports(0):Fs()};
g.R.qQj=function(){!this.d7()&&LS(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.R.xxj=function(){this.dispose()};
g.R.A1=function(Q){if(rg&&!this.N&&Q.ol()&&Q.dP().length===0){var W;Tl(this.mediaElement,{l:"mswoue",sr:(W=this.mediaElement.xf)==null?void 0:W.s2()},!1);Q.df();this.ol()||(this.mediaElement.rA=!0,this.mediaElement.setCurrentTime(0))}};
g.R.XM=function(){return!!this.B.supports(2)};
g.R.clear=function(){drO(this,function(){});
var Q;(Q=this.B)==null||Q.clear();var W;(W=this.U)==null||W.clear()};
g.R.ol=function(){var Q,W;return((Q=this.U)==null?void 0:Q.ol())||((W=this.B)==null?void 0:W.ol())};
g.R.bb=function(Q,W){return!!this.B&&!!this.U&&this.B.bb(W)&&this.U.bb(Q)};
var rg=!1;th.prototype.then=function(Q,W){return this.promise.then(Q,W)};
th.prototype.resolve=function(Q){this.F9(Q)};
th.prototype.reject=function(Q){this.hZ(Q)};g.n(Q4,g.N);g.R=Q4.prototype;g.R.g4=function(){return this.Db};
g.R.activate=function(Q){var W="";Q&&(mrF(this,Q),W=Q.Db);if(!this.aj()||W)W&&this.aj()!==W&&(this.F8(W),delete this.U,this.D&&(this.D.reject(),delete this.D),!window.MediaSource&&window.ManagedMediaSource&&this.gD(!(Q==null||!Q.B))),Q&&Q.B||this.load(),this.G||(this.addEventListener("volumechange",this.O6),this.G=!0)};
g.R.fv=function(Q,W){if(this.U)if(EbQ&&Ow(this.U)&&!this.U.bb(Q,W)){var x;Tl(this,{l:"megms",sr:(x=this.xf)==null?void 0:x.s2()});$rO(this);this.stopVideo()}else return this.r7=this.U,this.U=void 0,this.r7;Q=window.MediaSource?new PT(this,new window.MediaSource,!1):window.ManagedMediaSource?new PT(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new PT(this,new window.WebKitMediaSource,!1):new PT(this,void 0,!1);this.activate(Q.D);this.r7=Q;this.rA=!1;return Q};
g.R.playVideo=function(){var Q=this;this.isEnded()&&this.seekTo(0);!this.aj()&&this.Db&&(g.ql(Error("playVideo without src")),this.F8(this.Db.Db),this.Db.B||this.load());var W=this.play(),x;((x=this.xf)==null?0:x.j("html5_remove_ios_7_hack_force_play"))||!W&&Ig&&(re||0)>=7&&nZD(this,function(){g.oc(function(){Iel(Q,Q.getCurrentTime(),0)},500)});
return W};
g.R.seekTo=function(Q){this.aI()>0&&(Ig&&re<4&&(Q=Math.max(.1,Q)),this.setCurrentTime(Q))};
g.R.WM=function(){if(!this.U&&this.r7)if(this.r7.L)try{var Q;Tl(this,{l:"mer",sr:(Q=this.xf)==null?void 0:Q.s2(),rs:Ew(this.r7)});this.r7.clear();this.U=this.r7;this.r7=void 0}catch(W){Q=new g.Lw("Error while clearing Media Source in MediaElement: "+W.name+", "+W.message),g.ql(Q),this.stopVideo()}else this.stopVideo()};
g.R.stopVideo=function(){var Q=this;if(!this.U){var W;(W=this.r7)==null||qH5(W);if(TC4){if(!this.D){var x=new th;x.then(void 0,function(){});
this.D=x;OWs&&this.pause();g.oc(function(){Q.D===x&&(DT(Q),x.resolve())},200)}}else DT(this)}};
g.R.xQ=function(){var Q=this.O4();return zl(Q)>0&&this.getDuration()?b9(Q,this.getCurrentTime()):0};
g.R.Lq=function(){var Q=this.getDuration();return Q===Infinity?1:Q?this.xQ()/Q:0};
g.R.AO=function(){try{var Q=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:RU(this.gk(),",",3),vbu:RU(this.O4()),vbs:RU(this.qe()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.aI(),vns:""+this.qF(),vec:""+this.g1(),vemsg:this.ZJ(),vvol:""+this.getVolume(),vdom:""+ +this.XK(),vsrc:""+ +!!this.aj(),vw:""+Q.width,vh:""+Q.height}}catch(W){return{}}};
g.R.hasError=function(){return this.g1()>0};
g.R.addEventListener=function(Q,W){this.N.listen(Q,W,!1,this);this.X6(Q)};
g.R.removeEventListener=function(Q,W){this.N.mJ(Q,W,!1,this)};
g.R.dispatchEvent=function(Q){if(this.D&&Q.type==="pause")return!1;if(EbQ){var W,x=((W=Q.B)==null?void 0:W.timeStamp)||Infinity;W=x>performance.now()?x-Date.now()+performance.now():x;x=this.U||this.r7;if((x==null?0:x.ol())||W<=((x==null?void 0:x.X)||0)){var D;Tl(this,{l:"mede",sr:(D=this.xf)==null?void 0:D.s2(),et:Q.type});return!1}if(this.rA)return Tl(this,{l:"medes",et:Q.type}),x&&Q.type==="seeking"&&(x.X=performance.now(),this.rA=!1),!1}return this.N.dispatchEvent(Q)};
g.R.f$=function(){this.X=!1};
g.R.y8=function(){this.X=!0;this.Uo(!0)};
g.R.O6=function(){this.X&&!this.xi()&&this.Uo(!0)};
g.R.yI=function(Q){return!!Q&&Q.yh()===this.yh()};
g.R.U3=function(){this.G&&this.removeEventListener("volumechange",this.O6);TC4&&DT(this);g.N.prototype.U3.call(this)};
var TC4=!1,OWs=!1,EbQ=!1,cIF=!1;g.R=g.lW.prototype;g.R.isPaused=function(){return g.r(this,4)};
g.R.isPlaying=function(){return g.r(this,8)&&!g.r(this,512)&&!g.r(this,64)&&!g.r(this,2)};
g.R.isOrWillBePlaying=function(){return g.r(this,8)&&!g.r(this,2)&&!g.r(this,1024)};
g.R.isCued=function(){return g.r(this,64)&&!g.r(this,8)&&!g.r(this,4)};
g.R.isBuffering=function(){return g.r(this,1)&&!g.r(this,2)};
g.R.isError=function(){return g.r(this,128)};
g.R.isSuspended=function(){return g.r(this,512)};
g.R.Vr=function(){return g.r(this,64)&&g.r(this,4)};
g.R.toString=function(){return"PSt."+this.state.toString(16)};
var gP={},ye=(gP.BUFFERING="buffering-mode",gP.CUED="cued-mode",gP.ENDED="ended-mode",gP.PAUSED="paused-mode",gP.PLAYING="playing-mode",gP.SEEKING="seeking-mode",gP.UNSTARTED="unstarted-mode",gP);g.n(XY,g.N);g.R=XY.prototype;g.R.L7=function(){return this.D};
g.R.sV=function(){return this.slot};
g.R.z1=function(){return this.layout};
g.R.init=function(){var Q=RE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),W=RE(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");hD(this.layout.bN)&&Qd(this.BN.get(),this.layout.layoutId,{mW:W,CG:Q,listener:this,zN:this.qx()});pK4(this.vt.get(),this);Q=this.w1;W=this.layout.layoutId;var x={zN:this.qx()};Q.B.set(W,x);this.Yi()};
g.R.j1=function(){};
g.R.release=function(){hD(this.layout.bN)&&WS(this.BN.get(),this.layout.layoutId);hBa(this.vt.get(),this);this.w1.B.delete(this.layout.layoutId);this.x5()};
g.R.Jq=function(){};
g.R.Ym=function(){};
g.R.startRendering=function(Q){J7(oA(this));if(uW(this,Q)){var W=this.B;p3(W.params.HK.yj.get(),!0)&&uV4(W,"p_sr",{});Ya(this);this.Eg(Q);this.qx()||this.AN(!1)}};
g.R.HN=function(Q,W){if(W.layoutId===this.layout.layoutId){this.iN="rendering";this.U=this.Jf.get().isMuted()||this.Jf.get().getVolume()===0;this.zn("impression");this.zn("start");if(this.Jf.get().isMuted()){JA(this,"mute");var x;Q=((x=ka(this))==null?void 0:x.muteCommands)||[];Ld(this.JO.get(),Q,this.layout.layoutId)}if(this.Jf.get().isFullscreen()){this.H3("fullscreen");var D;x=((D=ka(this))==null?void 0:D.fullscreenCommands)||[];Ld(this.JO.get(),x,this.layout.layoutId)}this.qx()||(D=this.FE.get(),
D.D&&!D.U&&(D.L=!1,D.U=!0,D.actionType!=="ad_to_video"&&(fA("pbs",void 0,D.actionType),g.Pb("finalize_all_timelines")&&lns(D.actionType))));this.HL(1);this.P_(W);var K;W=((K=ka(this))==null?void 0:K.impressionCommands)||[];Ld(this.JO.get(),W,this.layout.layoutId)}};
g.R.sz=function(Q,W,x){this.G={B7:3,iQ:Q==="load_timeout"?402:400,errorMessage:W.message};this.zn("error");var D;Q=((D=ka(this))==null?void 0:D.errorCommands)||[];Ld(this.JO.get(),Q,this.layout.layoutId);this.qx()||this.uu.Ce(this.slot,this.layout,W,x)};
g.R.NQ=function(){if(this.iN==="rendering"){JA(this,"pause");var Q,W=((Q=ka(this))==null?void 0:Q.pauseCommands)||[];Ld(this.JO.get(),W,this.layout.layoutId);this.HL(2)}};
g.R.Kw=function(){if(this.iN==="rendering"){JA(this,"resume");var Q,W=((Q=ka(this))==null?void 0:Q.resumeCommands)||[];Ld(this.JO.get(),W,this.layout.layoutId)}};
g.R.Y5=function(Q,W){W=W===void 0?!1:W;if(this.iN==="rendering"){var x={currentTimeSec:Q,flush:W};h7(this.B,"p_ip",x);q_(this.Ht,Q*1E3,W);this.U||q_(this.Ht,Q*1E3,W===void 0?!1:W);var D=this.VR();if(D){D/=1E3;if(Q>=D*.25||W)this.zn("first_quartile"),h7(this.B,"p_fq",x);if(Q>=D*.5||W)this.zn("midpoint"),h7(this.B,"p_sq",x);if(Q>=D*.75||W)this.zn("third_quartile"),h7(this.B,"p_tq",x);this.yj.get().J.C().experiments.ij("enable_progress_command_flush_on_kabuki")?ez(this.N,Q*1E3,W):ez(this.N,Q*1E3,L45(this)?
W:!1)}}};
g.R.kG=function(){var Q;return((Q=nz(this.o5.get(),1))==null?void 0:Q.clientPlaybackNonce)||""};
g.R.R1=function(Q,W){Q.layoutId!==this.layout.layoutId?this.uu.Ce(this.slot,Q,new jX("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"):W()};
g.R.BD=function(Q,W,x){if(W.layoutId===this.layout.layoutId)switch(this.iN="not_rendering",this.layoutExitReason=void 0,this.qx()||(Q=x!=="normal"||this.position+1===this.X)&&this.AN(Q),this.Du(x),this.HL(0),x){case "abandoned":if(BP(this.Ht,"impression")){var D,K=((D=ka(this))==null?void 0:D.abandonCommands)||[];Ld(this.JO.get(),K,this.layout.layoutId)}break;case "normal":D=((K=ka(this))==null?void 0:K.completeCommands)||[];Ld(this.JO.get(),D,this.layout.layoutId);break;case "skipped":var l;D=((l=
ka(this))==null?void 0:l.skipCommands)||[];Ld(this.JO.get(),D,this.layout.layoutId)}};
g.R.Za=function(){return this.layout.layoutId};
g.R.Ov=function(){return this.G};
g.R.rh=function(){if(this.iN==="rendering"){this.Ht.zn("active_view_measurable");var Q,W=((Q=ka(this))==null?void 0:Q.activeViewMeasurableCommands)||[];Ld(this.JO.get(),W,this.layout.layoutId)}};
g.R.Go=function(){if(this.iN==="rendering"){this.Ht.zn("active_view_fully_viewable_audible_half_duration");var Q,W=((Q=ka(this))==null?void 0:Q.activeViewFullyViewableAudibleHalfDurationCommands)||[];Ld(this.JO.get(),W,this.layout.layoutId)}};
g.R.YF=function(){if(this.iN==="rendering"){this.Ht.zn("active_view_viewable");var Q,W=((Q=ka(this))==null?void 0:Q.activeViewViewableCommands)||[];Ld(this.JO.get(),W,this.layout.layoutId)}};
g.R.ji=function(){if(this.iN==="rendering"){this.Ht.zn("audio_audible");var Q,W=((Q=ka(this))==null?void 0:Q.activeViewAudioAudibleCommands)||[];Ld(this.JO.get(),W,this.layout.layoutId)}};
g.R.oC=function(){if(this.iN==="rendering"){this.Ht.zn("audio_measurable");var Q,W=((Q=ka(this))==null?void 0:Q.activeViewAudioMeasurableCommands)||[];Ld(this.JO.get(),W,this.layout.layoutId)}};
g.R.AN=function(Q){this.FE.get().AN(RE(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,Q,this.position,this.X,!1)};
g.R.onFullscreenToggled=function(Q){if(this.iN==="rendering")if(Q){this.H3("fullscreen");var W,x=((W=ka(this))==null?void 0:W.fullscreenCommands)||[];Ld(this.JO.get(),x,this.layout.layoutId)}else this.H3("end_fullscreen"),W=((x=ka(this))==null?void 0:x.endFullscreenCommands)||[],Ld(this.JO.get(),W,this.layout.layoutId)};
g.R.onVolumeChange=function(){if(this.iN==="rendering")if(this.Jf.get().isMuted()){JA(this,"mute");var Q,W=((Q=ka(this))==null?void 0:Q.muteCommands)||[];Ld(this.JO.get(),W,this.layout.layoutId)}else JA(this,"unmute"),Q=((W=ka(this))==null?void 0:W.unmuteCommands)||[],Ld(this.JO.get(),Q,this.layout.layoutId)};
g.R.NC=function(){};
g.R.v9=function(){};
g.R.hv=function(){};
g.R.LR=function(){};
g.R.j9=function(){};
g.R.H3=function(Q){this.Ht.H3(Q,!this.U)};
g.R.zn=function(Q){this.Ht.zn(Q,!this.U)};
g.R.qx=function(){var Q=RE(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return Q===void 0?(sH("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.yj.get().qx(Q)};g.n(dE,XY);g.R=dE.prototype;g.R.Yi=function(){};
g.R.x5=function(){var Q=this.vt.get();Q.g0===this&&(Q.g0=null);this.rP.stop()};
g.R.Jq=function(){this.rP.stop();XY.prototype.NQ.call(this)};
g.R.Ym=function(){AA(this);XY.prototype.Kw.call(this)};
g.R.VR=function(){return RE(this.z1().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.R.An=function(Q,W){var x=this;this.R1(Q,function(){x.iN!=="rendering_stop_requested"&&(x.iN="rendering_stop_requested",x.layoutExitReason=W,V4(x,W),x.rP.stop())})};
g.R.QA=function(){var Q=Date.now(),W=Q-this.Wm;this.Wm=Q;this.TK+=W;this.TK>=this.VR()?this.J5():(this.Y5(this.TK/1E3),iW(this,this.TK))};
g.R.Du=function(){};
g.R.LA=function(){};
g.n(Ha,dE);g.R=Ha.prototype;g.R.L2=function(Q){if(this.iN!=="not_rendering"){Q=Pa(this,Q);var W=this.Jf.get().getPresentingPlayerType()===2;this.iN==="rendering_start_requested"?W&&kd(Q)&&this.DP():W?g.XV(Q,2)?sH("Receive player ended event during MediaBreak",this.sV(),this.z1()):va(this,Q):this.pE()}};
g.R.Eg=function(){feh(this);$en(this.Jf.get());this.vt.get().g0=this;y_("pbp")||y_("pbs")||fA("pbp");y_("pbp","watch")||y_("pbs","watch")||fA("pbp",void 0,"watch");this.DP()};
g.R.P_=function(Q){this.FE.get();var W=RE(Q.clientMetadata,"metadata_type_ad_placement_config").kind,x=this.position===0;Q=RE(Q.clientMetadata,"metadata_type_linked_in_player_layout_type");Q={adBreakType:Cz(W),adType:K7z(Q)};var D=void 0;x?W!=="AD_PLACEMENT_KIND_START"&&(D="video_to_ad"):D="ad_to_ad";Nc("ad_mbs",void 0,D);g.co(Q,D);AA(this)};
g.R.pE=function(){this.Ef()};
g.R.J5=function(){Tss(this);this.Ef()};
g.n(U0,dE);g.R=U0.prototype;g.R.L2=function(Q){this.iN!=="not_rendering"&&(Q=Pa(this,Q),va(this,Q))};
g.R.Eg=function(){sH("Not used in SSAP")};
g.R.P_=function(){AA(this)};
g.R.pE=function(){sH("Not used in SSAP")};
g.R.J5=function(){Tss(this);this.uu.Vn(this.sV(),this.z1(),"normal")};
g.n(qm,U0);qm.prototype.An=function(Q,W){var x=this;this.R1(Q,function(){n3(x.D,W)&&(x.iN="rendering_stop_requested",x.layoutExitReason=W,V4(x,W),x.rP.stop())})};
qm.prototype.startRendering=function(Q){J7(oA(this));uW(this,Q)&&(Ya(this),this.vt.get().g0=this)};g.n(IA,XY);g.R=IA.prototype;g.R.pE=function(){this.Ef()};
g.R.L2=function(Q){if(this.iN!=="not_rendering"){Q=Pa(this,Q);var W=this.Jf.get().getPresentingPlayerType()===2;this.iN==="rendering_start_requested"?W&&kd(Q)&&this.DP():!W||g.XV(Q,2)?this.Ef():va(this,Q)}};
g.R.Yi=function(){RE(this.z1().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=RE(this.z1().clientMetadata,"metadata_type_shrunken_player_bytes_config")};
g.R.x5=function(){RE(this.z1().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.gq){var Q=this.context.HK,W=this.gq,x=this.z1().layoutId;if(p3(Q.yj.get(),!0)){var D={};Q.T1("mccru",(D.cid=W,D.p_ac=x,D))}this.ly.get().removeCueRange(this.gq)}this.gq=void 0;var K;(K=this.NA)==null||K.dispose();this.U9&&this.U9.dispose()};
g.R.Eg=function(Q){var W=Ba(this.yj.get()),x=$a(this.yj.get());if(W&&x&&!this.qx()){x=RE(Q.clientMetadata,"metadata_type_preload_player_vars");var D=g.X0(this.yj.get().J.C().experiments,"html5_preload_wait_time_secs");x&&this.U9&&this.U9.start(D*1E3)}F4h(this,Q);feh(this);W?(x=this.IQ.get(),Q=RE(Q.clientMetadata,"metadata_type_player_vars"),x.J.loadVideoByPlayerVars(Q,!1,2)):Z6F(this.IQ.get(),RE(Q.clientMetadata,"metadata_type_player_vars"));var K;(K=this.NA)==null||K.start();W||this.IQ.get().J.playVideo(2)};
g.R.P_=function(){var Q;(Q=this.NA)==null||Q.stop();this.gq="adcompletioncuerange:"+this.z1().layoutId;this.ly.get().addCueRange(this.gq,0x7ffffffffffff,0x8000000000000,!1,this,2,2);Q=this.context.HK;var W=this.gq,x=this.z1().layoutId;if(p3(Q.yj.get(),!0)){var D={};Q.T1("mccr",(D.cid=W,D.p_ac=x,D))}(this.adCpn=eNs(this))||sH("Media layout confirmed started, but ad CPN not set.");this.Y3.get().dc("onAdStart",this.adCpn);this.BG=Date.now()};
g.R.VR=function(){var Q;return(Q=nz(this.o5.get(),2))==null?void 0:Q.JP};
g.R.Pa=function(){this.Ht.H3("clickthrough")};
g.R.An=function(Q,W){var x=this;this.R1(Q,function(){if(x.iN!=="rendering_stop_requested"){x.iN="rendering_stop_requested";x.layoutExitReason=W;V4(x,W);var D;(D=x.NA)==null||D.stop();x.U9&&x.U9.stop();tia(x)}})};
g.R.onCueRangeEnter=function(Q){if(Q!==this.gq)sH("Received CueRangeEnter signal for unknown layout.",this.sV(),this.z1(),{cueRangeId:Q});else{var W=this.context.HK,x=this.z1().layoutId;if(p3(W.yj.get(),!0)){var D={};W.T1("mccre",(D.cid=Q,D.p_ac=x,D))}this.ly.get().removeCueRange(this.gq);this.gq=void 0;EL(this.context.yj.get(),"html5_ssap_flush_at_stop_rendering")&&this.qx()||(Q=RE(this.z1().clientMetadata,"metadata_type_video_length_seconds"),this.Y5(Q,!0),this.zn("complete"))}};
g.R.Du=function(Q){Q!=="abandoned"&&this.Y3.get().dc("onAdComplete");this.Y3.get().dc("onAdEnd",this.adCpn)};
g.R.onCueRangeExit=function(){};
g.R.LA=function(Q){this.iN==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&Q>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Jf.get().As(!0),this.Y5(Q))};
g.R.Y5=function(Q,W){XY.prototype.Y5.call(this,Q,W===void 0?!1:W);W=Date.now()-this.BG;var x=Q*1E3,D={contentCpn:this.kG(),adCpn:eNs(this)};if(Q>=5&&!this.YH){var K=W<1E3?0:1;ws(K,"i.k_",{metadata:D,u8:W,ph:Math.floor(x/1E3)});rT("IKDSTAT",K);K===0&&QoO(this)&&this.Y3.get().dc("onAbnormalityDetected");this.YH=!0}Q-this.lZ>=5&&(K=W<x*.4?0:1,ws(K,"n.k_",{metadata:D,u8:W,ph:Math.floor(x/1E3)}),rT("NKDSTAT",K),K===0&&QoO(this)&&this.Y3.get().dc("onAbnormalityDetected"),this.lZ=Q)};g.n(mU,IA);mU.prototype.L2=function(Q){this.iN!=="not_rendering"&&(Q=Pa(this,Q),va(this,Q))};
mU.prototype.Eg=function(){sH("Not used in SSAP")};
g.n(Nm,mU);Nm.prototype.An=function(Q,W){var x=this;this.R1(Q,function(){if(n3(x.D,W)){x.iN="rendering_stop_requested";x.layoutExitReason=W;V4(x,W);if(EL(x.context.yj.get(),"html5_ssap_flush_at_stop_rendering")&&W==="normal"){var D=RE(x.z1().clientMetadata,"metadata_type_video_length_seconds");x.Y5(D,!0)}tia(x)}})};
Nm.prototype.startRendering=function(Q){J7(oA(this));uW(this,Q)&&(Ya(this),F4h(this,Q))};g.n(gE,g.N);g.R=gE.prototype;g.R.init=function(){var Q=RE(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=this);this.o5.get().addListener(this);this.M7.init();wiQ([this.layout],this.o5.get());this.yX()};
g.R.yX=function(){var Q=RE(this.M7.z1().clientMetadata,"metadata_type_player_vars");Q?this.IQ.get().addPlayerResponseForAssociation({playerVars:Q}):(Q=lxF(this.M7.z1()),this.IQ.get().addPlayerResponseForAssociation({QQ:Q}))};
g.R.Zn=function(){};
g.R.sV=function(){return this.slot};
g.R.z1=function(){return this.layout};
g.R.Jq=function(){this.M7.Jq()};
g.R.Ym=function(){this.M7.Ym()};
g.R.IC=function(){sH("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers")};
g.R.HN=function(Q,W){this.M7.HN(Q,W)};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.LA=function(Q){this.M7.LA(Q)};
g.R.onFullscreenToggled=function(Q){this.M7.onFullscreenToggled(Q)};
g.R.NC=function(Q){this.M7.NC(Q)};
g.R.hv=function(Q){this.M7.hv(Q)};
g.R.onVolumeChange=function(){this.M7.onVolumeChange()};
g.R.LR=function(){};
g.R.j9=function(){};
g.R.v9=function(){};
g.R.wA=function(){return this.Jf.get().getPresentingPlayerType()===2};
g.R.RB=function(Q){kVD({cpn:Q,h2:this.o5.get(),a4:!0});this.layout.layoutId===Q&&(Ej5(this.fZ,this.slot.slotId),this.Px.HN(this.slot,this.layout))};
g.R.startRendering=function(Q){if(Q.layoutId!==this.layout.layoutId)return void sH("wrong layout");this.Jf.get().addListener(this);Yz(this.PN(),this);this.M7.startRendering(this.layout)};
g.R.L2=function(Q){this.M7.L2(Q)};
g.R.BD=function(Q,W,x){this.M7.BD(Q,W,x)};
g.R.release=function(){this.o5.get().removeListener(this);this.M7.release();SHz();nd(this.PN(),this)};
g.R.iU=function(){return EL(this.params.context.yj.get(),"html5_ssap_exit_without_waiting_for_transition")};
g.R.An=function(Q,W){Q.layoutId!==this.layout.layoutId?sH("wrong layout"):this.iU()&&this.M7.L7().currentState>=2||(this.M7.An(this.layout,W),Q=EL(this.params.context.yj.get(),"html5_ssap_pass_transition_reason")&&W==="abandoned",this.wA()&&!Q&&(EL(this.params.context.yj.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(W)||sH("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:W})),this.x3.get().finishSegmentByCpn(this.layout.layoutId,
nz(this.o5.get(),1).clientPlaybackNonce,hA(W,this.params.context.yj))),this.Jf.get().removeListener(this),this.iU()&&V$(this.M7.L7())&&this.Px.BD(this.slot,this.layout,this.M7.L7().B))};
g.R.IB=function(Q,W,x){Xiv({cpn:Q,h2:this.o5.get(),a4:!0});this.z1().layoutId!==Q||EL(this.params.context.yj.get(),"html5_ssap_pass_transition_reason")&&x===5||(this.M7.L7().currentState<2&&(Q=aA(x,this.params.context.yj),Q==="error"?this.Px.Ce(this.slot,this.layout,new jX("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:x},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):rE(this.xX,
this.layout,Q)),EL(this.params.context.yj.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Px.BD(this.slot,this.layout,this.M7.L7().B))};g.n(y4,g.N);g.R=y4.prototype;g.R.sV=function(){return this.slot};
g.R.z1=function(){return this.layout};
g.R.Zn=function(){};
g.R.sQ=function(){return this.Ij[this.pm]};
g.R.Ku=function(){return this.pm};
g.R.Jq=function(Q,W){var x=this.sQ();W.layoutId!==fz(x,Q,W)?sH("pauseLayout for a PlayerBytes layout that is not currently active",Q,W):x.Jq()};
g.R.Ym=function(Q,W){var x=this.sQ();W.layoutId!==fz(x,Q,W)?sH("resumeLayout for a PlayerBytes layout that is not currently active",Q,W):x.Ym()};
g.R.IC=function(Q,W){var x=this.sQ();wo4(this,Q,W);S$D(x,Q,W)&&this.H5(x.sV(),x.z1(),"skipped")};
g.R.uo=function(Q,W){var x=this.sQ();bA1(this);soh(x,Q,W)&&(Q=zvQ(this,x,Q,W),Q!==void 0&&(this.qx()?sH("Should not happen. Should delete"):Xoh(this,x.sV(),x.z1(),Q)))};
g.R.nL=function(Q,W){var x=Object.assign({},e_(this),{layoutId:W.layoutId}),D=x.layoutId,K=x.a4;if(x.zN){var l={};C3(x.h2,"wrse",(l.ec=D,l.is=K,l.ctp=vl(D),l))}iS(this.bu,Q,W)};
g.R.HN=function(Q,W){var x;(x=this.sQ())==null||x.HN(Q,W)};
g.R.BD=function(Q,W,x){W.layoutId===this.z1().layoutId&&(this.HR=!1,nd(this.PN(),this));var D;(D=this.sQ())==null||D.BD(Q,W,x)};
g.R.LA=function(Q){var W;(W=this.sQ())==null||W.LA(Q)};
g.R.lK=function(Q,W,x){this.Ku()===-1&&(this.callback.HN(this.slot,this.layout),this.pm++);var D=this.sQ();D?(D.sz(Q,W,x),this.qx()&&this.callback.Ce(this.slot,this.layout,W,x)):sH("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Ku()),layoutId:this.z1().layoutId})};
g.R.onFullscreenToggled=function(Q){var W;(W=this.sQ())==null||W.onFullscreenToggled(Q)};
g.R.NC=function(Q){var W;(W=this.sQ())==null||W.NC(Q)};
g.R.hv=function(Q){var W;(W=this.sQ())==null||W.hv(Q)};
g.R.onVolumeChange=function(){var Q;(Q=this.sQ())==null||Q.onVolumeChange()};
g.R.CP=function(Q,W,x){As(this.bu,Q,W,x)};
g.R.BE=function(Q){Q.startRendering(Q.z1())};
g.R.init=function(){var Q=RE(this.z1().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=this);if(this.Ij.length<1)throw new E("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Ij.length)});if(Q=RE(this.z1().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))Q.current=this;Q=g.V(this.Ij);for(var W=Q.next();!W.done;W=Q.next())W=W.value,W.init(),$lF(this.bu,this.slot,W.z1()),IDD(this.bu,this.slot,W.z1());
if(this.qx())for(this.o5.get().addListener(this),wiQ(Rv5(this),this.o5.get()),Q=Rv5(this),Q=g.V(Q),W=Q.next();!W.done;W=Q.next())this.yX(W.value)};
g.R.yX=function(Q){var W=RE(Q.clientMetadata,"metadata_type_player_vars");W?(Q.layoutType!=="LAYOUT_TYPE_MEDIA"&&sH("Non-video ad contains playerVars",this.slot,Q),this.IQ.get().addPlayerResponseForAssociation({playerVars:W})):(Q=lxF(Q),this.IQ.get().addPlayerResponseForAssociation({QQ:Q}))};
g.R.release=function(){var Q=RE(this.z1().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=null);if(Q=RE(this.z1().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))Q.current=null;Q=g.V(this.Ij);for(var W=Q.next();!W.done;W=Q.next())W=W.value,mlz(this.bu,this.slot,W.z1()),W.release();this.qx()&&(this.o5.get().removeListener(this),SHz())};
g.R.R1=function(Q){return Q.layoutId!==this.z1().layoutId?(this.callback.Ce(this.sV(),Q,new jX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.z1().layoutId+("and LayoutType: "+this.z1().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
g.R.M8=function(){this.Jf.get().addListener(this);Yz(this.PN(),this)};
g.R.L2=function(Q){if(Q.state.isError()){var W,x;this.lK((W=Q.state.HI)==null?void 0:W.errorCode,new jX("There was a player error during this media layout.",{playerErrorCode:(x=Q.state.HI)==null?void 0:x.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(W=this.sQ())&&W.L2(Q)};
g.R.qx=function(){var Q=RE(this.sV().clientMetadata,"metadata_type_eligible_for_ssap");return Q===void 0?(sH("Expected SSAP eligibility in PlayerBytes slots",this.sV(),this.z1()),!1):this.yj.get().qx(Q)};
g.R.v9=function(){};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.LR=function(){};
g.R.j9=function(){};
g.n(Tp,y4);g.R=Tp.prototype;g.R.xE=function(Q,W,x){this.H5(Q,W,x)};
g.R.bP=function(Q,W){this.H5(Q,W,"error")};
g.R.H5=function(Q,W,x){var D=this;kil(this,Q,W,x,function(){ZT(D,D.Ku()+1)})};
g.R.startRendering=function(Q){this.R1(Q)&&(this.M8(),t1n(this.FE.get()),KVF(this.yj.get())||$en(this.Jf.get()),this.Ku()===-1&&ZT(this,this.Ku()+1))};
g.R.An=function(Q,W){var x=this;this.HR=!0;this.Ku()===this.Ij.length?this.callback.BD(this.slot,this.layout,W):(Q=this.sQ(),Q.An(Q.z1(),W),this.h5=function(){x.callback.BD(x.slot,x.layout,W)});
this.Jf.get().J.qP();Z6F(this.IQ.get(),{});Q=tT(this.Jf.get(),1);Q.isPaused()&&!g.r(Q,2)&&this.Jf.get().playVideo();this.Jf.get().removeListener(this);this.HR&&on4(this)};
g.R.IB=function(){};
g.R.RB=function(){};
g.R.Vn=function(){};
g.n(O0,y4);g.R=O0.prototype;g.R.xE=function(Q,W,x){Q=Object.assign({},e_(this),{layoutId:W.layoutId,layoutExitReason:x});W=Q.layoutId;x=Q.layoutExitReason;var D={};C3(Q.h2,"prse",(D.xc=W,D.ler=x,D.ctp=vl(W),D))};
g.R.bP=function(){sH("onSubLayoutError in SSAP")};
g.R.H5=function(){sH("exitSubLayoutAndPlayNext in SSAP")};
g.R.sQ=function(){return this.BZ};
g.R.Ku=function(){var Q=this;return this.Ij.findIndex(function(W){var x;return W.z1().layoutId===((x=Q.BZ)==null?void 0:x.z1().layoutId)})};
g.R.BE=function(Q){bK(this.BZ===void 0,"replacing another adapter");this.BZ=Q;Q.startRendering(Q.z1())};
g.R.CP=function(Q,W,x){As(this.bu,Q,W,x);var D;bK(W.layoutId===((D=this.BZ)==null?void 0:D.z1().layoutId),"currentAdapter does not match exiting layout",{slot:Q?"slot:  "+Q.slotType:"",subLayout:Si(W)})&&(this.BZ=void 0)};
g.R.release=function(){y4.prototype.release.call(this);bK(this.BZ===void 0,"currentAdapter is still active during release");this.BZ=void 0};
g.R.wA=function(){return this.Jf.get().getPresentingPlayerType()===2};
g.R.An=function(Q,W){function x(){E0(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(W)||sH("Composite stopRendering: Unexpected layout exit reason",this.slot,Q,{layoutExitReason:W}))}
function D(){this.BZ&&FY(this,this.BZ,W);if(this.wA()&&(!E0(this)||W!=="abandoned")){x.call(this);var l;var M=((l=this.o5.get().J.getVideoData())==null?void 0:l.clientPlaybackNonce)||"";l=nz(this.o5.get(),1).clientPlaybackNonce;this.x3.get().finishSegmentByCpn(M,l,hA(W,this.yj))}ul1(this,W)}
function K(){if(this.BZ){var l=this.BZ;l.L7().currentState<2&&l.An(l.z1(),W);l=E0(this)&&W==="abandoned";this.wA()&&!l&&(x.call(this),this.x3.get().finishSegmentByCpn(this.BZ.z1().layoutId,nz(this.o5.get(),1).clientPlaybackNonce,hA(W,this.yj)))}}
bK(Q.layoutId===this.z1().layoutId,"StopRendering for wrong layout")&&n3(this.cO.U,W)&&(this.iU()?D.call(this):K.call(this))};
g.R.BD=function(Q,W,x){y4.prototype.BD.call(this,Q,W,x);W.layoutId===this.z1().layoutId&&this.Jf.get().removeListener(this)};
g.R.kG=function(){return nz(this.o5.get(),1).clientPlaybackNonce};
g.R.IB=function(Q,W,x){Xiv(Object.assign({},e_(this),{cpn:Q}));if(!E0(this)||x!==5)if(this.iU()){if(this.BZ&&this.BZ.z1().layoutId!==W){var D=this.BZ.z1().layoutId;D!==Q&&sH("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:D,exitingCpn:Q,enteringCpn:W});Q=aA(x,this.yj);FY(this,this.BZ,Q)}else this.BZ&&sH("onClipExited: active layout is entering again");W===this.kG()&&nn5(this,x)}else{if(this.BZ&&this.BZ.z1().layoutId===Q)Y$1(this,this.BZ,x);else{var K;sH("Exiting cpn does not match active cpn",
this.slot,(D=this.BZ)==null?void 0:D.z1(),{exitingCpn:Q,transitionReason:x,activeCpn:(K=this.BZ)==null?void 0:K.z1().layoutId})}W===this.kG()&&(this.BZ!==void 0&&(sH("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Si(this.BZ.z1())}),Y$1(this,this.BZ,x)),nn5(this,x),ul1(this,this.cO.U.B))}};
g.R.iU=function(){return EL(this.yj.get(),"html5_ssap_exit_without_waiting_for_transition")};
g.R.startRendering=function(Q){this.R1(Q)&&(Q=this.cO,bK(Q.B===1,"tickStartRendering: state is not initial"),Q.B=2,this.M8())};
g.R.RB=function(Q){kVD(Object.assign({},e_(this),{cpn:Q}));var W=this.Ij.find(function(x){return x.z1().layoutId===Q});
W?(this.cO.B!==2&&(Ej5(this.fZ,this.slot.slotId),bK(this.cO.B===2,"Expect started"),this.callback.HN(this.slot,this.layout)),this.BE(W),iS(this.bu,this.slot,W.z1())):VPn(this,Q)};
g.R.IC=function(Q,W){wo4(this,Q,W);var x=this.sQ();x?S$D(x,Q,W)&&PsO(this,"skipped"):vnO(this,"onSkipRequested")};
g.R.uo=function(Q,W){var x;a:{if(x=this.sQ()){if(bA1(this),soh(x,Q,W)&&(Q=zvQ(this,x,Q,W),Q!==void 0)){x={NN:x,jjj:this.Ij[Q]};break a}}else vnO(this,"SkipWithAdPodSkip");x=void 0}if(Q=x)x=Q.NN,W=Q.jjj,Q=x.z1().layoutId,this.iU()?FY(this,x,"skipped"):x.An(x.z1(),"skipped"),x=W.z1().layoutId,this.x3.get().finishSegmentByCpn(Q,x,hA("skipped",this.yj))};
g.R.nL=function(){sH("Not used in html5_ssap_fix_layout_exit")};
g.R.L2=function(Q){var W;(W=this.sQ())==null||W.L2(Q)};
g.R.lK=function(){sH("Not used in html5_ssap_fix_layout_exit")};
g.R.Vn=function(Q,W,x){var D;if(((D=this.sQ())==null?void 0:D.z1().layoutId)!==W.layoutId)return void sH("requestToExitSubLayout: wrong layout");PsO(this,x)};g.n(tA,g.N);g.R=tA.prototype;g.R.sV=function(){return this.M7.sV()};
g.R.z1=function(){return this.M7.z1()};
g.R.init=function(){var Q=RE(this.z1().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=this);this.Yi()};
g.R.Yi=function(){this.M7.init()};
g.R.release=function(){var Q=RE(this.z1().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=null);this.x5()};
g.R.x5=function(){this.M7.release()};
g.R.Jq=function(){this.M7.Jq()};
g.R.Ym=function(){this.M7.Ym()};
g.R.IC=function(Q,W){sH("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.sV(),this.z1(),{requestingSlot:Q,requestingLayout:W})};
g.R.startRendering=function(Q){Q.layoutId!==this.z1().layoutId?this.callback.Ce(this.sV(),Q,new jX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.z1().layoutId+("and LayoutType: "+this.z1().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Jf.get().addListener(this),Yz(this.PN(),this),t1n(this.FE.get()),KVF(this.yj.get())||$en(this.Jf.get()),this.M7.startRendering(Q))};
g.R.An=function(Q,W){this.HR=!0;this.M7.An(Q,W);this.Jf.get().J.qP();Z6F(this.IQ.get(),{});Q=tT(this.Jf.get(),1);Q.isPaused()&&!g.r(Q,2)&&this.Jf.get().playVideo();this.Jf.get().removeListener(this);this.HR&&this.M7.pE()};
g.R.HN=function(Q,W){this.M7.HN(Q,W)};
g.R.BD=function(Q,W,x){W.layoutId===this.z1().layoutId&&(this.HR=!1,nd(this.PN(),this));this.M7.BD(Q,W,x);W.layoutId===this.z1().layoutId&&Lz(this.FE.get())};
g.R.LA=function(Q){this.M7.LA(Q)};
g.R.L2=function(Q){if(Q.state.isError()){var W,x;this.lK((W=Q.state.HI)==null?void 0:W.errorCode,new jX("There was a player error during this media layout.",{playerErrorCode:(x=Q.state.HI)==null?void 0:x.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.M7.L2(Q)};
g.R.lK=function(Q,W,x){this.M7.sz(Q,W,x)};
g.R.onFullscreenToggled=function(Q){this.M7.onFullscreenToggled(Q)};
g.R.NC=function(Q){this.M7.NC(Q)};
g.R.hv=function(Q){this.M7.hv(Q)};
g.R.onVolumeChange=function(){this.M7.onVolumeChange()};
g.R.v9=function(){};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.LR=function(){};
g.R.j9=function(){};g.R=QW.prototype;g.R.sV=function(){return this.slot};
g.R.z1=function(){return this.layout};
g.R.init=function(){this.eQ.get().addListener(this);this.Jf.get().addListener(this);var Q=RE(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var W=RE(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.N){var x=this.eQ.get().oA.slice(-1)[0];x!==void 0&&(Q=x.startSecs*1E3,W=(x.startSecs+x.eE)*1E3)}this.j1(Q,W);var D;x=(D=this.o5.get().yr)==null?void 0:D.clientPlaybackNonce;D=this.layout.EV.adClientDataEntry;Wj(this.vt.get(),{daiStateTrigger:{filledAdsDurationMs:W-Q,contentCpn:x,
adClientData:D}});var K=this.eQ.get();K=poz(K.D,Q,W);K!==null&&(Wj(this.vt.get(),{daiStateTrigger:{filledAdsDurationMs:K-Q,contentCpn:x,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:D}}),this.x3.get().lR(K,W))};
g.R.release=function(){this.x5();this.eQ.get().removeListener(this);this.Jf.get().removeListener(this)};
g.R.startRendering=function(){this.Eg();this.callback.HN(this.slot,this.layout)};
g.R.An=function(Q,W){this.Hs(W);this.driftRecoveryMs!==null&&(xe(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(hv4(this)-RE(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Jf.get().J.J9()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.BD(this.slot,this.layout,W)};
g.R.bq=function(){return!1};
g.R.jJ=function(Q){var W=RE(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),x=RE(this.layout.clientMetadata,"metadata_type_layout_exit_ms");Q*=1E3;if(W<=Q&&Q<x){var D;Wj(this.vt.get(),{daiStateTrigger:{filledAdsDurationMs:Q-W,contentCpn:(D=this.o5.get().yr)==null?void 0:D.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.EV.adClientDataEntry}});this.x3.get().lR(Q,x)}};
g.R.LA=function(Q){this.fL(Q);Q=M$(this.Jf.get(),2,!0);if(i8(this.L.get(),this.layout.layoutId)){var W=RE(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),x=this.driftRecoveryMs;if(!(x===null||Q*1E3<W+x)){this.driftRecoveryMs=null;var D=hv4(this),K=this.Jf.get().J.J9(),l=Math.min(Q+K,D/1E3);l<=Q?xe(this,{driftRecoveryMs:x.toString(),breakDurationMs:Math.round(D-W).toString(),driftFromHeadMs:Math.round(K*1E3).toString()}):(xe(this,{driftRecoveryMs:x.toString(),breakDurationMs:Math.round(D-
W).toString(),driftFromHeadMs:Math.round(K*1E3).toString(),appliedDriftRecoveryMs:Math.round(Q*1E3-W).toString(),destinationMs:Math.round(l*1E3-W).toString()}),this.Jf.get().J.seekTo(l,void 0,void 0,1))}}};
g.R.NC=function(){};
g.R.v9=function(){};
g.R.hv=function(){};
g.R.onVolumeChange=function(){};
g.R.LR=function(){};
g.R.j9=function(){};g.n(D2,QW);g.R=D2.prototype;g.R.j1=function(Q,W){this.o5.get().addListener(this);if(this.N){var x=Q,D=0,K=[];Q=this.D.slice();Q.sort(function(l,M){return RE(l.z1().clientMetadata,"metadata_type_media_sub_layout_index")-RE(M.z1().clientMetadata,"metadata_type_media_sub_layout_index")});
Q.forEach(function(l){var M=x,w=RE(l.z1().clientMetadata,"metadata_type_video_length_seconds"),S=Math.min(M+w*1E3,W);x=S;D++;K.push(w);l.j1(M,S)})}else this.D.forEach(function(l){l.init()});
this.U!=null&&K$(this.vt.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.U)};
g.R.x5=function(){this.o5.get().removeListener(this);this.B=null;this.D.forEach(function(Q){Q.release()})};
g.R.Eg=function(){if(this.B)sH("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.U)});else{var Q,W=(Q=this.o5.get().yr)==null?void 0:Q.layoutId;GiO(this,W)}};
g.R.Hs=function(Q){var W,x,D,K;(D=this.B)==null||(K=D.ud)==null||K.An((W=this.B)==null?void 0:(x=W.ud)==null?void 0:x.z1(),Q);this.B=null};
g.R.Zn=function(Q){var W=Q.videoId;Q=Q.layoutId;if(W==="nPpU29QrbiU"){var x,D;K$(this.vt.get(),"ads_ssmplra_opdcs","vid."+W+";lid."+this.layout.layoutId+";smlid."+this.U+";slrs."+!!this.B+";slrslid."+((x=this.B)==null?void 0:(D=x.ud)==null?void 0:D.z1().layoutId))}if(this.B){var K;if(((K=this.B.ud)==null?void 0:K.z1().layoutId)===Q)sH("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:Q});else{var l,M;(M=this.B.ud)==null||M.An((l=this.B.ud)==null?void 0:l.z1(),"normal");
GiO(this,Q)}}};
g.R.IB=function(){};
g.R.RB=function(){};
g.R.fL=function(){};
g.R.L2=function(){};
g.R.onFullscreenToggled=function(){};g.R=NK2.prototype;g.R.sV=function(){return this.slot};
g.R.z1=function(){return this.layout};
g.R.L7=function(){sH("Should not get exitStateMachine for DAI");return new Yd};
g.R.j1=function(Q,W){var x=this;RE(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.Ox=dcs(this.slot,this.layout,RE(this.layout.clientMetadata,"metadata_type_player_vars"),Q,W,RE(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.x3.get(),this.CK.get(),function(){var D=Object,K=D.assign,l=w2(x.layout);var M=RE(x.slot.clientMetadata,"metadata_type_fulfilled_layout")||x.slot.fulfilledLayout;var w=RE(M.clientMetadata,"metadata_type_sub_layouts")||
M.Zm;M=Object.assign({},w2(M),{adPlacementConfig:RE(M.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(w||[]).map(w2)});return K.call(D,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},l,{compositeLayout:M,hasSurveyOverlay:Du(x.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:RE(x.layout.clientMetadata,"metadata_type_survey_overlay")})},this.vt.get());
this.Jf.get().addListener(this);Q=RE(this.layout.clientMetadata,"metadata_type_video_length_seconds");W=RE(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");hD(this.layout.bN)&&Qd(this.BN.get(),this.layout.layoutId,{mW:W,CG:Q,listener:this});$lF(this.callback,this.slot,this.layout);IDD(this.callback,this.slot,this.layout)};
g.R.init=function(){var Q=RE(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),W=RE(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.j1(Q,W)};
g.R.release=function(){this.Jf.get().removeListener(this);hD(this.layout.bN)&&WS(this.BN.get(),this.layout.layoutId);this.yj.get();mlz(this.callback,this.slot,this.layout)};
g.R.startRendering=function(){var Q=this;Du(this.layout.clientMetadata,"metadata_type_survey_overlay")&&K$(this.vt.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.iN)sH("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:Du(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:RE(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.iN={Ip:null,Aw:!1};this.B=!1;if(xe4(this.yj.get())){var W;this.adCpn=
(W=nz(this.o5.get(),2))==null?void 0:W.clientPlaybackNonce}this.yj.get().J.C().experiments.ij("html5_disable_sodar_for_tvhtml5")||iAl(this.slot,this.layout,this.EQ.get());hD(this.layout.bN)&&sh5(this.BN.get(),this.layout.layoutId);this.Ht.zn("start");if(C_(this.yj.get())){W=tT(this.Jf.get());var x=RE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),D=M$(this.Jf.get(),2,!1);Adn(this.Ht,this.iN.Ip,W,x,D,function(){return void gn5(Q,"teois")},nz(this.o5.get(),1).aQ)}iS(this.callback,
this.slot,this.layout);
Du(this.layout.clientMetadata,"metadata_type_survey_overlay")&&K$(this.vt.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.R.An=function(Q,W){var x=this;if(this.iN){if(C_(this.yj.get()))if(this.Ox===null)sH("Unexpected media sub layout exited without a timeline playback ID");else{Q=RE(this.layout.clientMetadata,"metadata_type_video_length_seconds");var D=qMO(this.Jf.get(),this.Ox);xe4(this.yj.get())&&this.adCpn===void 0&&sH("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:RE(this.layout.clientMetadata,"metadata_type_content_cpn")});hsl(this.Ht,D,this.adCpn);jB(this.Ht,null,this.iN.Ip,Q,D,nz(this.o5.get(),
1).aQ,function(K){return void cd2(x,K,"fue")},xe4(this.yj.get()))}this.iN=null;
As(this.callback,this.slot,this.layout,this.B&&this.yj.get().J.C().j("dai_layout_log_skip_exit_reason")?"skipped":W)}else sH("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.R.sz=function(){};
g.R.pE=function(){};
g.R.LA=function(Q){var W=this;if(this.iN){if(BP(this.Ht,"impression")){var x=tT(this.Jf.get()),D=RE(this.layout.clientMetadata,"metadata_type_video_length_seconds");ME(this.Ht,x,Q,this.iN.Ip,D,function(K){return void cd2(W,K,"tpaqe")})}this.iN.Ip=Q}};
g.R.L2=function(Q){var W=this;if(this.iN){C_(this.yj.get())||this.iN.Aw||(this.iN.Aw=!0,Q=new g.zV(Q.state,new g.lW));var x=RE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),D=M$(this.Jf.get(),2,!1);lP(this.Ht,this.iN.Ip,Q,x,D,nz(this.o5.get(),1).aQ,!C_(this.yj.get()),function(){return void gn5(W,"teosc")})}};
g.R.onFullscreenToggled=function(Q){HAs(this.Ht,Q)};
g.R.NC=function(){};
g.R.v9=function(){};
g.R.hv=function(){};
g.R.IC=function(Q,W){var x;Q=this.vt.get();var D="ti."+BP(this.Ht,"impression")+";ts."+BP(this.Ht,"skip")+";hp.",K;var l=!((K=this.Ht.D.get("skip"))==null||!K.length);K$(Q,"ads_dsr",D+l+";cpn."+RE(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((x=nz(this.o5.get(),2))==null?void 0:x.clientPlaybackNonce)+";sl."+(RE(W.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));BP(this.Ht,"impression")&&this.Ht.zn("skip");W=nz(this.o5.get(),1).aQ;this.B=!0;
this.x3.get().n7(W)||(this.B=!1,sH("Unexpected failure to skip a server stitched ad",this.slot,this.layout))};
g.R.onVolumeChange=function(){};
g.R.HN=function(){};
g.R.BD=function(){};
g.R.Jq=function(){};
g.R.Ym=function(){};
g.R.Pa=function(){Ucv(this.Ht)};
g.R.rh=function(){q$Q(this.Ht)};
g.R.Go=function(){BK1(this.Ht)};
g.R.YF=function(){$c2(this.Ht)};
g.R.ji=function(){IxQ(this.Ht)};
g.R.oC=function(){mc4(this.Ht)};
g.R.LR=function(){};
g.R.j9=function(){};g.n(SB,QW);g.R=SB.prototype;
g.R.j1=function(){var Q=this;RE(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var W=RE(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),x=RE(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.Ox=dcs(this.slot,this.layout,RE(this.layout.clientMetadata,"metadata_type_player_vars"),W,x,RE(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.x3.get(),this.CK.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:W,
exitMs:x,adPlacementConfig:RE(Q.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.vt.get());
var D=RE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),K=RE(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");hD(this.layout.bN)&&Qd(this.BN.get(),this.layout.layoutId,{mW:K,CG:D,listener:this})};
g.R.x5=function(){hD(this.layout.bN)&&WS(this.BN.get(),this.layout.layoutId)};
g.R.Eg=function(){var Q=this;if(this.iN)sH("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.iN={Ip:null,Aw:!1},iAl(this.slot,this.layout,this.EQ.get()),this.Ht.zn("start"),C_(this.yj.get())){var W=tT(this.Jf.get()),x=RE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),D=M$(this.Jf.get(),2,!1);Adn(this.Ht,this.iN.Ip,W,x,D,function(){return void ydh(Q,"teois")},!1)}};
g.R.Hs=function(){var Q=this;if(this.iN){if(C_(this.yj.get()))if(this.Ox===null)sH("Unexpected single media layout exited without a timeline playback ID");else{var W=RE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),x=qMO(this.Jf.get(),this.Ox);hsl(this.Ht,x);jB(this.Ht,null,this.iN.Ip,W,x,!1,function(D){return void evs(Q,D,"fue")})}this.iN=null}else sH("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.R.fL=function(Q){var W=this;if(this.iN){if(BP(this.Ht,"impression")){var x=tT(this.Jf.get()),D=RE(this.layout.clientMetadata,"metadata_type_video_length_seconds");ME(this.Ht,x,Q,this.iN.Ip,D,function(K){return void evs(W,K,"tpaqe")})}this.iN.Ip=Q}};
g.R.L2=function(Q){var W=this;if(this.iN){C_(this.yj.get())||this.iN.Aw||(this.iN.Aw=!0,Q=new g.zV(Q.state,new g.lW));var x=RE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),D=M$(this.Jf.get(),2,!1);lP(this.Ht,this.iN.Ip,Q,x,D,!1,!C_(this.yj.get()),function(){return void ydh(W,"teosc")})}};
g.R.onFullscreenToggled=function(Q){HAs(this.Ht,Q)};
g.R.Pa=function(){Ucv(this.Ht)};
g.R.rh=function(){q$Q(this.Ht)};
g.R.Go=function(){BK1(this.Ht)};
g.R.YF=function(){$c2(this.Ht)};
g.R.ji=function(){IxQ(this.Ht)};
g.R.oC=function(){mc4(this.Ht)};bP.prototype.build=function(Q,W,x,D){if(Du(x.clientMetadata,"metadata_type_dai")){var K=RE(D.clientMetadata,"metadata_type_ad_placement_config");tD(D,{xD:"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(" "),wP:["LAYOUT_TYPE_MEDIA"]})&&K!==void 0?(K=new dt(D.bN,this.vt,K,D.layoutId,null),K=new SB(Q,x,D,this.o5,this.x3,this.CK,this.eQ,this.Jf,K,this.vt,this.EQ,
this.B,this.BN,this.yj)):K=null;if(K)return K;a:{var l,M=(l=D.Zm)!=null?l:RE(D.clientMetadata,"metadata_type_sub_layouts");K=RE(D.clientMetadata,"metadata_type_ad_placement_config");if(tD(D,{xD:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],wP:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&M!==void 0&&K!==void 0){l=[];M=g.V(M);for(var w=M.next();!w.done;w=M.next()){w=w.value;var S=RE(w.clientMetadata,"metadata_type_media_sub_layout_index");if(!tD(w,{xD:"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(" "),
wP:["LAYOUT_TYPE_MEDIA"]})||S===void 0){Q=null;break a}S=new dt(w.bN,this.vt,K,w.layoutId,S);l.push(new NK2(W,x,w,this.x3,S,this.Jf,this.CK,this.BN,this.EQ,this.yj,this.vt,this.o5))}W=new dt(D.bN,this.vt,K,D.layoutId);Q=new D2(Q,x,D,this.o5,this.x3,this.eQ,this.Jf,W,this.vt,this.B,l)}else Q=null}if(Q)return Q}else if(Q=Jdh(Q,W,x,D,this.PN,this.fZ,this.Es,this.vt,this.BN,this.EQ,this.IQ,this.o5,this.Jf,this.ly,this.FE,this.Y3,this.JO,this.Xs,this.yj,this.x3,this.context,this.w1))return Q;throw new jX("Unsupported layout with type: "+
D.layoutType+" and client metadata: "+wO(D.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};sj.prototype.build=function(Q,W,x,D){if(Q=Jdh(Q,W,x,D,this.PN,this.fZ,this.Es,this.vt,this.BN,this.EQ,this.IQ,this.o5,this.Jf,this.ly,this.FE,this.Y3,this.JO,this.Xs,this.yj,this.x3,this.context,this.w1))return Q;throw new jX("Unsupported layout with type: "+D.layoutType+" and client metadata: "+wO(D.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.n(fxD,MA);g.n(zE,PP);zE.prototype.startRendering=function(Q){var W=vP(this.Ht),x={adsClientData:this.layout.EV};this.B.push(new fxD(RE(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),W,this.z1().layoutId,x));PP.prototype.startRendering.call(this,Q);this.callback.HN(this.slot,Q)};
zE.prototype.TP=function(Q,W){W!==this.layout.layoutId||Q!=="survey-interstitial"&&Q!=="button"||((Q=RE(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?Q.IC(this.slot,this.layout):sH("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
zE.prototype.U3=function(){PP.prototype.U3.call(this)};var Xc=new g.oZ(320,63);g.n(Ye,MA);g.n(n$,PP);g.R=n$.prototype;g.R.LA=function(){};
g.R.L2=function(){};
g.R.onFullscreenToggled=function(){};
g.R.NC=function(Q){Q&&NS(this.N,this.layout)};
g.R.v9=function(){};
g.R.hv=function(Q){var W=uP(this.layout);if(this.G=oe(Q,Bjn(this.Jf.get())))W.onErrorCommand&&this.JO.get().executeCommand(W.onErrorCommand,this.layout.layoutId),NS(this.N,this.layout)};
g.R.onVolumeChange=function(){};
g.R.Za=function(){return this.z1().layoutId};
g.R.Ov=function(){return this.G};
g.R.TP=function(Q){this.L.TP(Q);Q==="in_video_overlay_close_button"&&NS(this.N,this.layout)};
g.R.XQ=function(Q){Q==="invideo-overlay"&&NS(this.N,this.layout)};
g.R.o7=function(){this.L.o7()};
g.R.startRendering=function(Q){PP.prototype.startRendering.call(this,Q);this.callback.HN(this.slot,Q);this.X.UN=this};
g.R.An=function(Q,W){PP.prototype.An.call(this,Q,W);ZB(this.X,this)};
g.R.init=function(){PP.prototype.init.call(this);pK4(this.vt.get(),this);this.Jf.get().addListener(this);this.B.push(new Ye(uP(this.layout),vP(this.Ht),this.layout.layoutId,{adsClientData:this.layout.EV}))};
g.R.release=function(){PP.prototype.release.call(this);this.Jf.get().removeListener(this);hBa(this.vt.get(),this)};
g.R.LR=function(){};
g.R.j9=function(){};g.n(VW,PP);g.R=VW.prototype;g.R.init=function(){PP.prototype.init.call(this);pK4(this.vt.get(),this);this.Jf.get().addListener(this);this.B.push(new Ye(uP(this.layout),vP(this.Ht),this.layout.layoutId,{adsClientData:this.layout.EV}))};
g.R.o7=function(){this.L.o7()};
g.R.startRendering=function(Q){PP.prototype.startRendering.call(this,Q);this.callback.HN(this.slot,Q);this.X.UN=this};
g.R.An=function(Q,W){PP.prototype.An.call(this,Q,W);ZB(this.X,this)};
g.R.TP=function(Q){this.L.TP(Q);Q==="in_video_overlay_close_button"&&NS(this.N,this.layout)};
g.R.Rr=function(Q){if(Q==="invideo-overlay"){Q=OYF(this.S,this.layout);Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())W.value.stop()}};
g.R.XQ=function(Q){Q==="invideo-overlay"&&NS(this.N,this.layout)};
g.R.M2=function(Q){if(Q==="invideo-overlay"){Q=OYF(this.S,this.layout);Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())W.value.start()}};
g.R.LA=function(){};
g.R.L2=function(){};
g.R.onFullscreenToggled=function(){};
g.R.NC=function(Q){Q&&NS(this.N,this.layout)};
g.R.v9=function(){};
g.R.hv=function(Q){var W=uP(this.layout),x=W.contentSupportedRenderer.imageOverlayAdContentRenderer,D=Bjn(this.Jf.get());a:{x=x.image;x=x===void 0?null:x;if(x!=null&&(x=x.thumbnail,x!=null&&x.thumbnails!=null&&x.thumbnails.length!=0&&x.thumbnails[0].width!=null&&x.thumbnails[0].height!=null)){x=new g.oZ(x.thumbnails[0].width||0,x.thumbnails[0].height||0);break a}x=new g.oZ(0,0)}if(this.G=oe(Q,D,x))W.onErrorCommand&&this.JO.get().executeCommand(W.onErrorCommand,this.layout.layoutId),NS(this.N,this.layout)};
g.R.onVolumeChange=function(){};
g.R.Za=function(){return this.z1().layoutId};
g.R.Ov=function(){return this.G};
g.R.release=function(){PP.prototype.release.call(this);this.Jf.get().removeListener(this);hBa(this.vt.get(),this)};
g.R.LR=function(){};
g.R.j9=function(){};Pj.prototype.TP=function(Q){Q==="ad-info-hover-text-button"&&((this.B=this.Jf.get().wV(1))||this.Jf.get().pauseVideo())};
Pj.prototype.o7=function(){this.B||this.Jf.get().resumeVideo(1)};g.n(TKl,MA);g.n(vj,PP);g.R=vj.prototype;g.R.init=function(){PP.prototype.init.call(this);this.Jf.get().addListener(this)};
g.R.startRendering=function(Q){var W=RE(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.B.push(new TKl(W,this.layout.layoutId,{adsClientData:this.layout.EV}));PP.prototype.startRendering.call(this,Q);this.callback.HN(this.slot,Q)};
g.R.HN=function(){};
g.R.TP=function(Q,W){W!==this.layout.layoutId||Q!=="ad-info-icon-button"&&Q!=="ad-info-dialog-close-button"||((W=RE(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?Q==="ad-info-icon-button"?W.Jq(this.slot,this.layout):Q==="ad-info-dialog-close-button"&&W.Ym(this.slot,this.layout):sH("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:Q}))};
g.R.hv=function(Q){Q.width<450&&NS(this.N,this.layout)};
g.R.onVolumeChange=function(){};
g.R.LA=function(){};
g.R.onFullscreenToggled=function(){};
g.R.NC=function(){};
g.R.v9=function(){};
g.R.L2=function(){};
g.R.LR=function(){};
g.R.j9=function(){};
g.R.U3=function(){PP.prototype.U3.call(this)};
g.R.release=function(){PP.prototype.release.call(this);this.Jf.get().removeListener(this)};OAF.prototype.build=function(Q,W,x,D){if(W=zu(Q,x,D,this.Vh,this.Jf,this.vt,this.N,this.B,this.yj))return W;if(tD(D,rd4()))return new VW(x,D,this.vt,this.BN,this.Vh,Q,this.U,this.D,this.Jf,this.JO,this.yj,this.B,new Pj(this.Jf));if(tD(D,L7v()))return new n$(x,D,this.vt,this.BN,this.Vh,Q,this.U,this.Jf,this.JO,this.yj,this.B,new Pj(this.Jf));if(tD(D,{xD:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],wP:["LAYOUT_TYPE_SURVEY"]}))return new vj(x,D,Q,this.Vh,this.U,this.Jf,this.yj);if(tD(D,
{xD:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],wP:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new zE(x,D,Q,this.Vh,this.vt);if(tD(D,lea()))return new Mq(x,D,Q,this.Vh,this.Jf,this.yj);throw new jX("Unsupported layout with type: "+D.layoutType+" and client metadata: "+wO(D.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};EnQ.prototype.build=function(Q,W,x,D){if(W=zu(Q,x,D,this.Vh,this.Jf,this.vt,this.N,this.B,this.yj))return W;if(tD(D,rd4()))return new VW(x,D,this.vt,this.BN,this.Vh,Q,this.U,this.D,this.Jf,this.JO,this.yj,this.B,new Pj(this.Jf));if(tD(D,L7v()))return new n$(x,D,this.vt,this.BN,this.Vh,Q,this.U,this.Jf,this.JO,this.yj,this.B,new Pj(this.Jf));throw new jX("Unsupported layout with type: "+D.layoutType+" and client metadata: "+wO(D.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");
};g.n(C$,l7);C$.prototype.startRendering=function(Q){l7.prototype.startRendering.call(this,Q);if(Q.renderingContent?Qll(Q,nz(this.o5.get(),2)||void 0):RE(this.layout.clientMetadata,"metadata_ad_video_is_listed"))Q=Q.renderingContent?ttl(Q,nz(this.o5.get(),2)||void 0):RE(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.p7.get().J.Wt("onAdMetadataAvailable",Q)};tPn.prototype.build=function(Q,W,x,D){if(tD(D,F7z())||D.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.e(D.renderingContent,ww)!==void 0)return new C$(Q,x,D,this.Vh,this.Jf,this.vt,this.U,this.p7,this.B,this.o5);throw new jX("Unsupported layout with type: "+D.layoutType+" and client metadata: "+wO(D.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};Qth.prototype.build=function(Q,W,x,D){if(tD(D,F7z()))return new C$(Q,x,D,this.Vh,this.Jf,this.vt,this.U,this.p7,this.B,this.o5);if(Q=zu(Q,x,D,this.Vh,this.Jf,this.vt,this.U,this.B,this.yj))return Q;throw new jX("Unsupported layout with type: "+D.layoutType+" and client metadata: "+wO(D.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};Z2.prototype.clone=function(Q){var W=this;return new Z2(function(){return W.triggerId},Q)};L$.prototype.clone=function(Q){var W=this;return new L$(function(){return W.triggerId},Q)};r2.prototype.clone=function(Q){var W=this;return new r2(function(){return W.triggerId},Q)};TE.prototype.clone=function(Q){var W=this;return new TE(function(){return W.triggerId},Q)};Oj.prototype.clone=function(Q){var W=this;return new Oj(function(){return W.triggerId},Q)};Ej.prototype.clone=function(Q){var W=this;return new Ej(function(){return W.triggerId},Q)};g.n(NB,g.N);var kfl={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 js={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],dE:[],layoutExitUserInputSubmittedTriggers:[]};var N4={Tm7:1,nG3:2,bvj:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.n(ve,g.N);g.R=ve.prototype;g.R.w6=function(Q){if(this.B)sH("Unexpected multiple fetch instructions for the current content");else{this.B=Q;Q=g.V(this.eQ.get().oA);for(var W=Q.next();!W.done;W=Q.next())HY2(this,this.B,W.value)}};
g.R.bq=function(Q){if(!this.B){var W;(W=this.x3)==null||W.get().gJ(Q.identifier);return!1}HY2(this,this.B,Q);return!0};
g.R.jJ=function(){};
g.R.E2=function(Q){this.B&&this.B.contentCpn!==Q&&(sH("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:Q,fetchInstructionsCpn:this.B.contentCpn}),this.B=null)};
g.R.sB=function(Q){this.B&&this.B.contentCpn!==Q&&sH("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:Q,fetchInstructionsCpn:this.B.contentCpn},!0);this.B=null};
g.R.U3=function(){g.N.prototype.U3.call(this);this.B=null};var nx=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],xuk=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.n(p_,g.N);g.R=p_.prototype;g.R.HN=function(Q,W){var x=this;if(W.layoutType==="LAYOUT_TYPE_MEDIA"&&(Kd(W,this.X)||Kd(W,xuk))){var D=nz(this.o5.get(),2),K=this.N(W,D||void 0);K?ud(this.D.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var l=[Jpn(x.B.get(),K.contentCpn,K.bT,function(M){return x.L(M.slotId,"core",K,kz(x.PV.get(),M))},K.inPlayerSlotId)];
K.instreamAdPlayerUnderlayRenderer&&We(x.yj.get())&&l.push($j5(x,K,K.instreamAdPlayerUnderlayRenderer));return l}):sH("Expected MediaLayout to carry valid opportunity on entered",Q,W)}};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.mU=function(){};
g.R.K3=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.BD=function(){};g.n(hz,g.N);hz.prototype.E2=function(Q,W,x,D,K,l,M){var w=this,S=nz(this.o5.get(),1);!EL(this.yj.get(),"html5_ssap_play_cached_preroll")&&S.In?jU(this.Jf.get()):(FkF(this.FE.get(),D),ud(this.U.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return $s1(w.B.get(),D,K,l,Q,W,M,S,"")}),tfz(this.D))};
hz.prototype.sB=function(){};g.n(aP,g.N);g.n(Go,g.N);Go.prototype.onCueRangeEnter=function(){};
Go.prototype.onCueRangeExit=function(Q){var W=this,x=this.B.get(Q);x&&(this.B.delete(Q),this.ly.get().removeCueRange(Q),ud(this.U.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var D=W.D.get();D=Y4(D.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},x,{slotId:D,slotEntryTrigger:x.slotEntryTrigger?KKs(x.slotId,D,x.slotEntryTrigger):void 0,slotFulfillmentTriggers:lu5(x.slotId,D,x.slotFulfillmentTriggers),slotExpirationTriggers:lu5(x.slotId,D,x.slotExpirationTriggers)})]},
x.slotId))};
Go.prototype.E2=function(){for(var Q=g.V(this.B.keys()),W=Q.next();!W.done;W=Q.next())W=W.value,this.ly.get().removeCueRange(W);this.B.clear()};
Go.prototype.sB=function(){};g.n(d7,g.N);g.R=d7.prototype;g.R.vI=function(){};
g.R.Qv=function(Q){var W=this;g.Fw(g.QX(),function(){var x=W.B.get(Q);x&&sH("Expected layouts to be properly unscheduled",Q,void 0,{slotType:Q.slotType,layoutTypes:[].concat(g.C(x)).map(function(D){return D.layoutType})})},0)};
g.R.mU=function(){};
g.R.K3=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(Q,W){this.B.has(Q)||this.B.set(Q,new Set);this.B.get(Q).add(W)};
g.R.xY=function(Q,W){this.ZE.has(Q)&&this.ZE.get(Q)===W&&sH("Unscheduled a Layout that is currently entered.",Q,W);if(this.B.has(Q)){var x=this.B.get(Q);x.has(W)?(x.delete(W),x.size===0&&this.B.delete(Q)):sH("Trying to unscheduled a Layout that was not scheduled.",Q,W)}else sH("Trying to unscheduled a Layout that was not scheduled.",Q,W)};
g.R.HN=function(Q,W){this.ZE.set(Q,W)};
g.R.BD=function(Q){this.ZE.delete(Q)};
g.R.lS=function(){};g.R=mjs.prototype;g.R.init=function(){};
g.R.sV=function(){return this.slot};
g.R.zv=function(){this.callback.mU(this.slot)};
g.R.RS=function(){this.callback.yN(this.slot)};
g.R.release=function(){};He.prototype.build=function(Q,W){return new mjs(Q,W)};g.R=Nah.prototype;g.R.init=function(){};
g.R.sV=function(){return this.slot};
g.R.zv=function(){RM(this.Jf.get(),"ad-showing");this.callback.mU(this.slot)};
g.R.RS=function(){this.callback.yN(this.slot);wb(this.Jf.get(),"ad-showing")};
g.R.release=function(){};g.R=cX1.prototype;g.R.init=function(){};
g.R.sV=function(){return this.slot};
g.R.zv=function(){RM(this.Jf.get(),"ad-showing");RM(this.Jf.get(),"ad-interrupting");this.U=this.Jf.get().isAtLiveHead();this.B=Math.ceil(Date.now()/1E3);this.callback.mU(this.slot)};
g.R.RS=function(){wb(this.Jf.get(),"ad-showing");wb(this.Jf.get(),"ad-interrupting");var Q=this.U?Infinity:M$(this.Jf.get(),1,!0)+Math.floor(Date.now()/1E3)-this.B;this.Jf.get().J.seekTo(Q,void 0,void 0,1);this.callback.yN(this.slot)};
g.R.release=function(){};g.R=gj5.prototype;g.R.init=function(){};
g.R.sV=function(){return this.slot};
g.R.zv=function(){RM(this.Jf.get(),"ad-showing");RM(this.Jf.get(),"ad-interrupting");this.callback.mU(this.slot)};
g.R.RS=function(){jU(this.Jf.get());wb(this.Jf.get(),"ad-showing");wb(this.Jf.get(),"ad-interrupting");this.callback.yN(this.slot)};
g.R.release=function(){jU(this.Jf.get())};Uf.prototype.build=function(Q,W){if(SX(W,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new Nah(Q,W,this.Jf);if(W.slotEntryTrigger instanceof Ie&&SX(W,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new cX1(Q,W,this.Jf);if(SX(W,[],"SLOT_TYPE_PLAYER_BYTES"))return new gj5(Q,W,this.Jf);throw new E("Unsupported slot with type "+W.slotType+" and client metadata: "+(wO(W.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.n(qS,g.N);qS.prototype.B=function(Q){for(var W=[],x=g.V(this.cN.values()),D=x.next();!D.done;D=x.next()){D=D.value;var K=D.trigger;K instanceof f$&&D.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&K.triggeringLayoutId===Q&&W.push(D)}W.length?Hq(this.zw(),W):sH("Mute requested but no registered triggers can be activated.")};g.n($s,qS);g.R=$s.prototype;g.R.TP=function(Q,W){if(W)if(Q==="skip-button"){Q=[];for(var x=g.V(this.cN.values()),D=x.next();!D.done;D=x.next()){D=D.value;var K=D.trigger;K instanceof f$&&D.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&K.triggeringLayoutId===W&&Q.push(D)}Q.length&&Hq(this.zw(),Q)}else EL(this.yj.get(),"supports_multi_step_on_desktop")?Q==="ad-action-submit-survey"&&Be(this,W):Q==="survey-submit"?Be(this,W):Q==="survey-single-select-answer-button"&&Be(this,W)};
g.R.He=function(Q){qS.prototype.B.call(this,Q)};
g.R.Mq=function(Q,W,x,D){if(this.cN.has(W.triggerId))throw new E("Tried to register duplicate trigger for slot.");if(!(W instanceof Fc||W instanceof f$))throw new E("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in AdUxUpdateTriggerAdapter.");this.cN.set(W.triggerId,new Q3(Q,W,x,D))};
g.R.O8=function(Q){this.cN.delete(Q.triggerId)};
g.R.Rr=function(){};
g.R.M2=function(){};
g.R.XQ=function(){};g.n(IP,g.N);g.R=IP.prototype;
g.R.Mq=function(Q,W,x,D){if(this.cN.has(W.triggerId))throw new E("Tried to register duplicate trigger for slot.");if(!(W instanceof Z2||W instanceof L$||W instanceof r2||W instanceof TE||W instanceof Oj||W instanceof Ej||W instanceof cj||W instanceof iP||W instanceof Hj||W instanceof AK||W instanceof NE||W instanceof d2))throw new E("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in AdsControlFlowEventTriggerAdapter");Q=new Q3(Q,W,x,D);this.cN.set(W.triggerId,Q);W instanceof
Oj&&this.L.has(W.triggeringSlotId)&&Hq(this.B(),[Q]);W instanceof Z2&&this.D.has(W.triggeringSlotId)&&Hq(this.B(),[Q]);W instanceof iP&&this.U.has(W.triggeringLayoutId)&&Hq(this.B(),[Q])};
g.R.O8=function(Q){this.cN.delete(Q.triggerId)};
g.R.vI=function(Q){this.L.add(Q.slotId);for(var W=[],x=g.V(this.cN.values()),D=x.next();!D.done;D=x.next())D=D.value,D.trigger instanceof Oj&&Q.slotId===D.trigger.triggeringSlotId&&W.push(D);W.length>0&&Hq(this.B(),W)};
g.R.Qv=function(Q){this.L.delete(Q.slotId);for(var W=[],x=g.V(this.cN.values()),D=x.next();!D.done;D=x.next()){D=D.value;var K=D.trigger;K instanceof Ej&&K.triggeringSlotId===Q.slotId&&W.push(D)}W.length>0&&Hq(this.B(),W)};
g.R.K3=function(Q){for(var W=[],x=g.V(this.cN.values()),D=x.next();!D.done;D=x.next()){D=D.value;var K=D.trigger;K instanceof cj&&K.slotType===Q.slotType&&K.B!==Q.slotId&&W.push(D)}W.length>0&&Hq(this.B(),W)};
g.R.mU=function(Q){this.D.add(Q.slotId);for(var W=[],x=g.V(this.cN.values()),D=x.next();!D.done;D=x.next())D=D.value,D.trigger instanceof Z2&&Q.slotId===D.trigger.triggeringSlotId&&W.push(D);W.length>0&&Hq(this.B(),W)};
g.R.yN=function(Q){this.D.delete(Q.slotId);this.N.add(Q.slotId);for(var W=[],x=g.V(this.cN.values()),D=x.next();!D.done;D=x.next())if(D=D.value,D.trigger instanceof L$)Q.slotId===D.trigger.triggeringSlotId&&W.push(D);else if(D.trigger instanceof d2){var K=D.trigger;Q.slotId===K.slotId&&this.U.has(K.triggeringLayoutId)&&W.push(D)}W.length>0&&Hq(this.B(),W)};
g.R.kN=function(Q){for(var W=[],x=g.V(this.cN.values()),D=x.next();!D.done;D=x.next())D=D.value,D.trigger instanceof r2&&Q.slotId===D.trigger.triggeringSlotId&&W.push(D);W.length>0&&Hq(this.B(),W)};
g.R.f3=function(Q){for(var W=[],x=g.V(this.cN.values()),D=x.next();!D.done;D=x.next())D=D.value,D.trigger instanceof TE&&Q.slotId===D.trigger.triggeringSlotId&&W.push(D);W.length>0&&Hq(this.B(),W)};
g.R.hK=function(Q,W){this.X.add(W.layoutId)};
g.R.xY=function(Q,W){this.X.delete(W.layoutId)};
g.R.HN=function(Q,W){this.U.add(W.layoutId);for(var x=[],D=g.V(this.cN.values()),K=D.next();!K.done;K=D.next())if(K=K.value,K.trigger instanceof iP)W.layoutId===K.trigger.triggeringLayoutId&&x.push(K);else if(K.trigger instanceof NE){var l=K.trigger;Q.slotType===l.slotType&&W.layoutType===l.layoutType&&W.layoutId!==l.B&&x.push(K)}else K.trigger instanceof d2&&(l=K.trigger,W.layoutId===l.triggeringLayoutId&&this.N.has(l.slotId)&&x.push(K));x.length>0&&Hq(this.B(),x)};
g.R.BD=function(Q,W,x){this.U.delete(W.layoutId);Q=[];for(var D=g.V(this.cN.values()),K=D.next();!K.done;K=D.next())if(K=K.value,K.trigger instanceof Hj&&W.layoutId===K.trigger.triggeringLayoutId&&Q.push(K),K.trigger instanceof AK){var l=K.trigger;W.layoutId===l.triggeringLayoutId&&l.B.includes(x)&&Q.push(K)}Q.length>0&&Hq(this.B(),Q)};
g.R.lS=function(){};
g.R.E2=function(){this.N.clear()};
g.R.sB=function(){};g.n(mD,g.N);mD.prototype.Mq=function(Q,W,x,D){if(this.cN.has(W.triggerId))throw new E("Tried to register duplicate trigger for slot.");if(!(W instanceof ae))throw new E("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in CloseRequestedTriggerAdapter");this.cN.set(W.triggerId,new Q3(Q,W,x,D))};
mD.prototype.O8=function(Q){this.cN.delete(Q.triggerId)};g.n(ce,g.N);ce.prototype.Mq=function(Q,W,x,D){if(this.cN.has(W.triggerId))throw new E("Tried to register duplicate trigger for slot.");if(!(W instanceof hK||W instanceof yW))throw new E("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.cN.set(W.triggerId,new Q3(Q,W,x,D))};
ce.prototype.O8=function(Q){this.cN.delete(Q.triggerId)};
ce.prototype.E2=function(Q){for(var W=[],x=W.push,D=x.apply,K=[],l=g.V(this.cN.values()),M=l.next();!M.done;M=l.next())M=M.value,M.trigger instanceof hK&&M.trigger.n0===Q&&K.push(M);D.call(x,W,g.C(K));x=W.push;D=x.apply;K=[];l=g.V(this.cN.values());for(M=l.next();!M.done;M=l.next())M=M.value,M.trigger instanceof yW&&M.trigger.B!==Q&&K.push(M);D.call(x,W,g.C(K));W.length&&Hq(this.B(),W)};
ce.prototype.sB=function(Q){for(var W=[],x=W.push,D=x.apply,K=[],l=g.V(this.cN.values()),M=l.next();!M.done;M=l.next()){M=M.value;var w=M.trigger;w instanceof yW&&w.B===Q&&K.push(M)}D.call(x,W,g.C(K));W.length&&Hq(this.B(),W)};g.n(g7,g.N);g.R=g7.prototype;g.R.Mq=function(Q,W,x,D){if(this.cN.has(W.triggerId))throw new E("Tried to register duplicate trigger for slot.");var K="adtriggercuerange:"+W.triggerId;if(W instanceof Ie)yXO(this,Q,W,x,D,K,W.B.start,W.B.end,W.n0,W.visible);else if(W instanceof GE)yXO(this,Q,W,x,D,K,0x7ffffffffffff,0x8000000000000,W.n0,W.visible);else throw new E("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in CueRangeTriggerAdapter");};
g.R.O8=function(Q){var W=this.cN.get(Q.triggerId);W&&this.ly.get().removeCueRange(W.cueRangeId);this.cN.delete(Q.triggerId)};
g.R.onCueRangeEnter=function(Q){var W=eq5(this,Q);if(W&&(W=this.cN.get(W)))if(g.r(tT(this.Jf.get()),32))this.B.add(W.cueRangeId);else{var x=W==null?void 0:W.fm.trigger;if(x instanceof Ie||x instanceof GE){if(p3(this.context.yj.get())){var D=W.fm.slot,K=W.fm.layout,l={};this.context.HK.T1("cre",(l.ca=W.fm.category,l.tt=x.triggerType,l.st=D.slotType,l.lt=K==null?void 0:K.layoutType,l.cid=Q,l))}Hq(this.U(),[W.fm])}}};
g.R.onCueRangeExit=function(Q){(Q=eq5(this,Q))&&(Q=this.cN.get(Q))&&this.B.delete(Q.cueRangeId)};
g.R.L2=function(Q){if(kZ(Q,16)<0){Q=g.V(this.B);for(var W=Q.next();!W.done;W=Q.next())this.onCueRangeEnter(W.value,!0);this.B.clear()}};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.HN=function(){};
g.R.BD=function(){};
g.R.lS=function(){};
g.R.LA=function(){};
g.R.onFullscreenToggled=function(){};
g.R.NC=function(){};
g.R.v9=function(){};
g.R.hv=function(){};
g.R.onVolumeChange=function(){};
g.R.LR=function(){};
g.R.j9=function(){};g.n(yE,g.N);g.R=yE.prototype;
g.R.Mq=function(Q,W,x,D){if(this.U.has(W.triggerId)||this.D.has(W.triggerId))throw new E("Tried to re-register the trigger.");Q=new Q3(Q,W,x,D);if(Q.trigger instanceof $e)this.U.set(Q.trigger.triggerId,Q);else if(Q.trigger instanceof Uj)this.D.set(Q.trigger.triggerId,Q);else throw new E("Incorrect TriggerType: Tried to register trigger of type "+Q.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.U.has(Q.trigger.triggerId)&&Q.slot.slotId===this.B&&Hq(this.N(),[Q])};
g.R.O8=function(Q){this.U.delete(Q.triggerId);this.D.delete(Q.triggerId)};
g.R.Zn=function(Q){Q=Q.slotId;if(this.B!==Q){var W=[];this.B!=null&&W.push.apply(W,g.C(fbl(this.D,this.B)));Q!=null&&W.push.apply(W,g.C(fbl(this.U,Q)));this.B=Q;W.length&&Hq(this.N(),W)}};
g.R.IB=function(){};
g.R.RB=function(){};g.n(es,g.N);g.R=es.prototype;g.R.Mq=function(Q,W,x,D){if(this.cN.has(W.triggerId))throw new E("Tried to register duplicate trigger for slot.");if(!(W instanceof g2))throw new E("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.cN.set(W.triggerId,new Q3(Q,W,x,D))};
g.R.O8=function(Q){this.cN.delete(Q.triggerId)};
g.R.HN=function(){};
g.R.BD=function(){};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};g.n(f_,g.N);g.R=f_.prototype;g.R.lS=function(Q,W){for(var x=[],D=g.V(this.cN.values()),K=D.next();!K.done;K=D.next()){K=K.value;var l=K.trigger;l.opportunityType===Q&&(l.associatedSlotId&&l.associatedSlotId!==W||x.push(K))}x.length&&Hq(this.B(),x)};
g.R.Mq=function(Q,W,x,D){if(this.cN.has(W.triggerId))throw new E("Tried to register duplicate trigger for slot.");if(!(W instanceof WYD))throw new E("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in OpportunityEventTriggerAdapter");this.cN.set(W.triggerId,new Q3(Q,W,x,D))};
g.R.O8=function(Q){this.cN.delete(Q.triggerId)};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.HN=function(){};
g.R.BD=function(){};g.n(ZO,g.N);g.R=ZO.prototype;g.R.Mq=function(Q,W,x,D){Q=new Q3(Q,W,x,D);if(W instanceof qE||W instanceof mm||W instanceof Bj||W instanceof eB||W instanceof WyF){if(this.cN.has(W.triggerId))throw new E("Tried to register duplicate trigger for slot.");this.cN.set(W.triggerId,Q);x=x.slotId;Q=this.D.has(x)?this.D.get(x):new Set;Q.add(W);this.D.set(x,Q)}else throw new E("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in PrefetchTriggerAdapter");};
g.R.O8=function(Q){this.cN.delete(Q.triggerId)};
g.R.vI=function(Q){var W=Q.slotId;if(this.D.has(W)){Q=0;var x=new Set;W=g.V(this.D.get(W));for(var D=W.next();!D.done;D=W.next())if(D=D.value,x.add(D.triggerId),D instanceof mm&&D.breakDurationMs){Q=D.breakDurationMs;break}L_(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",Q,x)}};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.HN=function(){};
g.R.BD=function(){};
g.R.lS=function(){};
g.R.bq=function(Q){if(this.B){this.U&&this.U.stop();this.N&&g.E3(this.N);Q=Q.eE*1E3+1E3;for(var W=0,x=g.V(this.cN.values()),D=x.next();!D.done;D=x.next())D=D.value.trigger,D instanceof qE&&D.breakDurationMs<=Q&&D.breakDurationMs>W&&(W=D.breakDurationMs);Q=W;if(Q>0)return L_(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",Q,new Set,!0),L_(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",Q,new Set,!1),!0}return!1};
g.R.jJ=function(){};
g.R.E2=function(Q){this.B&&this.B.contentCpn!==Q?(sH("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:Q,fetchInstructionsCpn:this.B.contentCpn}),r7(this)):LG5(this)};
g.R.sB=function(Q){this.B&&this.B.contentCpn!==Q&&sH("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:Q,fetchInstructionsCpn:this.B.contentCpn},!0);r7(this)};
g.R.w6=function(Q){var W=this;if(this.B)sH("Unexpected multiple fetch instructions for the current content");else{this.B=Q;Q=Ta2(Q);this.U=new g.O3(function(){LG5(W)},Q?Q:6E5);
this.U.start();this.N=new g.O3(function(){W.B&&(W.U&&(W.U.stop(),W.U.start()),ZY1(W,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},rX1(this.B));
Q=this.Jf.get().getCurrentTimeSec(1,!1);for(var x=g.V(this.eQ.get().oA),D=x.next();!D.done;D=x.next())D=D.value,K$(this.vt.get(),"nocache","ct."+Date.now()+";cmt."+Q+";d."+D.eE.toFixed(3)+";tw."+(D.startSecs-Q)+";cid."+D.identifier+";")}};
g.R.U3=function(){g.N.prototype.U3.call(this);r7(this)};g.n(To,g.N);g.R=To.prototype;g.R.Mq=function(Q,W,x,D){if(this.cN.has(W.triggerId))throw new E("Tried to register duplicate trigger for slot.");if(!(W instanceof tK))throw new E("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.cN.set(W.triggerId,new Q3(Q,W,x,D));Q=this.B.has(W.triggeringLayoutId)?this.B.get(W.triggeringLayoutId):new Set;Q.add(W);this.B.set(W.triggeringLayoutId,Q)};
g.R.O8=function(Q){this.cN.delete(Q.triggerId);if(!(Q instanceof tK))throw new E("Incorrect TriggerType: Tried to unregister trigger of type "+Q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var W=this.U.get(Q.triggerId);W&&(W.dispose(),this.U.delete(Q.triggerId));if(W=this.B.get(Q.triggeringLayoutId))W.delete(Q),W.size===0&&this.B.delete(Q.triggeringLayoutId)};
g.R.vI=function(){};
g.R.Qv=function(){};
g.R.K3=function(){};
g.R.mU=function(){};
g.R.yN=function(){};
g.R.kN=function(){};
g.R.f3=function(){};
g.R.hK=function(){};
g.R.xY=function(){};
g.R.lS=function(){};
g.R.HN=function(Q,W){var x=this;if(this.B.has(W.layoutId)){Q=this.B.get(W.layoutId);Q=g.V(Q);var D=Q.next();for(W={};!D.done;W={IT:void 0},D=Q.next())W.IT=D.value,D=new g.O3(function(K){return function(){var l=x.cN.get(K.IT.triggerId);Hq(x.D(),[l])}}(W),W.IT.durationMs),D.start(),this.U.set(W.IT.triggerId,D)}};
g.R.BD=function(){};g.n(Of,g.N);Of.prototype.Mq=function(Q,W,x,D){if(this.cN.has(W.triggerId))throw new E("Tried to register duplicate trigger for slot.");if(!(W instanceof JK))throw new E("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in VideoTransitionTriggerAdapter.");this.cN.set(W.triggerId,new Q3(Q,W,x,D))};
Of.prototype.O8=function(Q){this.cN.delete(Q.triggerId)};Ql.prototype.nf=function(Q){return Q.kind==="AD_PLACEMENT_KIND_START"};g.n(DQ,g.N);g.R=DQ.prototype;g.R.logEvent=function(Q){this.nN(Q)};
g.R.t4=function(Q,W,x){this.nN(Q,void 0,void 0,void 0,W,void 0,void 0,void 0,W.adSlotLoggingData,void 0,void 0,x)};
g.R.C3=function(Q,W,x,D){this.nN(Q,void 0,void 0,void 0,W,x?x:void 0,void 0,void 0,W.adSlotLoggingData,x?x.adLayoutLoggingData:void 0,void 0,D)};
g.R.wF=function(Q,W,x,D){EL(this.yj.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Q,"trigger:",x,"slot:",W,"layout:",D);z_(this.B.get())&&this.nN(Q,void 0,void 0,void 0,W,D?D:void 0,void 0,x,W.adSlotLoggingData,D?D.adLayoutLoggingData:void 0)};
g.R.o$=function(Q,W,x,D,K){this.nN(Q,W,x,D,void 0,void 0,void 0,void 0,void 0,void 0,void 0,K)};
g.R.xR=function(Q,W,x,D){this.nN("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,x,D,void 0,void 0,x.adSlotLoggingData,D?D.adLayoutLoggingData:void 0,{errorType:Q,errorMessage:W})};
g.R.nN=function(Q,W,x,D,K,l,M,w,S,b,z,k){var X=this;k=k===void 0?0:k;EL(this.yj.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Q,"slot:",K,"layout:",l,"ping:",M,"Opportunity:",{opportunityType:W,associatedSlotId:x,zX3:D,ITS:w,adSlotLoggingData:S,adLayoutLoggingData:b});try{var u=function(){if(!X.yj.get().J.C().j("html5_disable_client_tmp_logs")&&Q!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){Q||sH("Empty PACF event type",K,l);var Y=z_(X.B.get()),v={eventType:Q,eventOrder:++X.eventCount},J={};
K&&(J.slotData=sL(Y,K));l&&(J.layoutData=Aba(Y,l));M&&(J.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:M.B.serializedAdPingMetadata,pingIndex:M.index});w&&(J.triggerData=bS(w.trigger,w.category));W&&(J.opportunityData=Hhl(Y,W,x,D));Y={organicPlaybackContext:{contentCpn:nz(X.o5.get(),1).clientPlaybackNonce}};Y.organicPlaybackContext.isLivePlayback=nz(X.o5.get(),1).lN;var h;Y.organicPlaybackContext.isMdxPlayback=(h=nz(X.o5.get(),1))==null?void 0:h.isMdxPlayback;
var G;if((G=nz(X.o5.get(),1))==null?0:G.daiEnabled)Y.organicPlaybackContext.isDaiContent=!0;var H;if(h=(H=nz(X.o5.get(),2))==null?void 0:H.clientPlaybackNonce)Y.adVideoPlaybackContext={adVideoCpn:h};Y&&(J.externalContext=Y);v.adClientData=J;S&&(v.serializedSlotAdServingData=S.serializedSlotAdServingDataEntry);b&&(v.serializedAdServingData=b.serializedAdServingDataEntry);z&&(v.errorInfo=z);g.wV("adsClientStateChange",{adsClientEvent:v})}};
k&&k>0?g.Fw(g.QX(),function(){return u()},k):u()}catch(Y){EL(this.yj.get(),"html5_log_pacf_logging_errors")&&g.Fw(g.QX(),function(){sH(Y instanceof Error?Y:String(Y),K,l,{pacf_message:"exception during pacf logging"})})}};var DuH=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.n(KJ,DQ);g.R=KJ.prototype;
g.R.t4=function(Q,W,x){DQ.prototype.t4.call(this,Q,W,x);p3(this.yj.get())&&(x={},this.context.HK.T1("pacf",(x.et=Q,x.st=W.slotType,x.si=W.slotId,x)))};
g.R.C3=function(Q,W,x,D){var K=DuH.has(Q);DQ.prototype.C3.call(this,Q,W,x,D);p3(this.yj.get(),K)&&(D={},this.context.HK.T1("pacf",(D.et=Q,D.st=W.slotType,D.si=W.slotId,D.lt=x==null?void 0:x.layoutType,D.li=x==null?void 0:x.layoutId,D.p_ac=x==null?void 0:x.layoutId,D)))};
g.R.o$=function(Q,W,x,D,K){DQ.prototype.o$.call(this,Q,W,x,D,K);p3(this.yj.get())&&(x={},this.context.HK.T1("pacf",(x.et=Q,x.ot=W,x.ss=D==null?void 0:D.length,x)))};
g.R.wF=function(Q,W,x,D){DQ.prototype.wF.call(this,Q,W,x,D);if(p3(this.yj.get())){var K={};this.context.HK.T1("pacf",(K.et=Q,K.tt=x.trigger.triggerType,K.tc=x.category,K.st=W.slotType,K.si=W.slotId,K.lt=D==null?void 0:D.layoutType,K.li=D==null?void 0:D.layoutId,K.p_ac=D==null?void 0:D.layoutId,K))}};
g.R.xR=function(Q,W,x,D){DQ.prototype.xR.call(this,Q,W,x,D);if(p3(this.yj.get(),!0)){var K={};this.context.HK.T1("perror",(K.ert=Q,K.erm=W,K.st=x.slotType,K.si=x.slotId,K.lt=D==null?void 0:D.layoutType,K.li=D==null?void 0:D.layoutId,K.p_ac=D==null?void 0:D.layoutId,K))}};
g.R.nN=function(Q,W,x,D,K,l,M,w,S,b,z){if(g.dO(this.yj.get().J.C())){var k=this.yj.get();k=g.X0(k.J.C().experiments,"H5_async_logging_delay_ms")}else k=void 0;DQ.prototype.nN.call(this,Q,W,x,D,K,l,M,w,S,b,z,k)};l3.prototype.clear=function(){this.B.clear()};Rm.prototype.resolve=function(Q){jb(this,Q)};
Rm.prototype.reject=function(Q){My(this,Q)};
Rm.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}};
Rm.prototype.wait=function(){var Q=this;return function x(){return s14(x,function(D){if(D.B==1)return g.v5(D,2),g.A(D,{De:Q},4);if(D.B!=2)return D.return(D.U);g.ps(D);return g.hv(D,0)})}()};
var vaQ=TS(function(Q){return wL(Q)?Q instanceof Rm:!1});Object.freeze({hX3:function(Q){var W=zKh(Q);return u3(sE5(W,function(x){return W[x].currentState==="fail"}),function(x){return Number.isNaN(x)?W.map(function(D){return D.state().result}):W[x]})},
tA5:function(Q){var W=zKh(Q);return u3(sE5(W),function(){return W.map(function(x){return x.state()})})}});var Vl=window.KVj||"en";JB.prototype.Zv=function(Q){this.client=Q};
JB.prototype.B=function(){this.clear();this.csn=g.ph()};
JB.prototype.clear=function(){this.D.clear();this.U.clear();this.N.clear();this.csn=null};hB.prototype.Zv=function(Q){g.tx(pJ().Zv).bind(pJ())(Q)};
hB.prototype.clear=function(){g.tx(pJ().clear).bind(pJ())()};g.R=am.prototype;g.R.Zv=function(Q){this.client=Q};
g.R.nh=function(Q,W){var x=this;W=W===void 0?{}:W;g.tx(function(){var D,K,l,M=((D=g.e(Q==null?void 0:Q.commandMetadata,g.Yf))==null?void 0:D.rootVe)||((K=g.e(Q==null?void 0:Q.commandMetadata,VJk))==null?void 0:(l=K.screenVisualElement)==null?void 0:l.uiType);if(M){D=g.e(Q==null?void 0:Q.commandMetadata,NlH);if(D==null?0:D.parentTrackingParams){var w=g.vp(D.parentTrackingParams);if(D.parentCsn)var S=D.parentCsn}else W.clickedVisualElement?w=W.clickedVisualElement:Q.clickTrackingParams&&(w=g.vp(Q.clickTrackingParams));
a:{D=g.e(Q,g.tQ);K=g.e(Q,HPR);if(D){if(K=XqQ(D,"VIDEO")){D={token:K,videoId:D.videoId};break a}}else if(K&&(D=XqQ(K,"PLAYLIST"))){D={token:D,playlistId:K.playlistId};break a}D=void 0}W=Object.assign({},{cttAuthInfo:D,parentCsn:S},W);if(g.Pb("expectation_logging")){var b;W.loggingExpectations=((b=g.e(Q==null?void 0:Q.commandMetadata,VJk))==null?void 0:b.loggingExpectations)||void 0}dL(x,M,w,W)}else g.Bp(new g.Lw("Error: Trying to create a new screen without a rootVeType",Q))})()};
g.R.clickCommand=function(Q,W,x){Q=Q.clickTrackingParams;x=x===void 0?0:x;Q?(x=g.ph(x===void 0?0:x))?(YUF(this.client,x,g.vp(Q),W),W=!0):W=!1:W=!1;return W};
g.R.stateChanged=function(Q,W,x){this.visualElementStateChanged(g.vp(Q),W,x===void 0?0:x)};
g.R.visualElementStateChanged=function(Q,W,x){x=x===void 0?0:x;x===0&&this.U.has(x)?this.S.push([Q,W]):VXQ(this,Q,W,x)};Uu.prototype.fetch=function(Q,W,x){var D=this,K=CSF(Q,W,x);return new Promise(function(l,M){function w(){if(x==null?0:x.Yg)try{var b=D.handleResponse(Q,K.status,K.response,x);l(b)}catch(z){M(z)}else l(D.handleResponse(Q,K.status,K.response,x))}
K.onerror=w;K.onload=w;var S;K.send((S=W.body)!=null?S:null)})};
Uu.prototype.handleResponse=function(Q,W,x,D){x=x.replace(")]}'","");try{var K=JSON.parse(x)}catch(l){g.Bp(new g.Lw("JSON parsing failed after XHR fetch",Q,W,x));if((D==null?0:D.Yg)&&x)throw new g.Zx(1,"JSON parsing failed after XHR fetch");K={}}W!==200&&(g.Bp(new g.Lw("XHR API fetch failed",Q,W,x)),K=Object.assign({},K,{errorMetadata:{status:W}}));return K};qy.getInstance=function(){var Q=g.yF("ytglobal.storage_");Q||(Q=new qy,g.g4("ytglobal.storage_",Q));return Q};
qy.prototype.estimate=function(){var Q,W,x;return g.U(function(D){Q=navigator;return((W=Q.storage)==null?0:W.estimate)?D.return(Q.storage.estimate()):((x=Q.webkitTemporaryStorage)==null?0:x.queryUsageAndQuota)?D.return(JsF()):D.return()})};
g.g4("ytglobal.storageClass_",qy);M5.prototype.Av=function(Q){this.handleError(Q)};
M5.prototype.logEvent=function(Q,W){switch(Q){case "IDB_DATA_CORRUPTED":g.Pb("idb_data_corrupted_killswitch")||this.B("idbDataCorrupted",W);break;case "IDB_UNEXPECTEDLY_CLOSED":this.B("idbUnexpectedlyClosed",W);break;case "IS_SUPPORTED_COMPLETED":g.Pb("idb_is_supported_completed_killswitch")||this.B("idbIsSupportedCompleted",W);break;case "QUOTA_EXCEEDED":hK4(this,W);break;case "TRANSACTION_ENDED":this.D&&Math.random()<=.1&&this.B("idbTransactionEnded",W);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":Q=
Object.assign({},W,{hasWindowUnloaded:this.U}),this.B("idbTransactionAborted",Q)}};var eI={},RmF=g.QV("yt-player-local-media",{mZ:(eI.index={yd:2},eI.media={yd:2},eI.captions={yd:5},eI),shared:!1,upgrade:function(Q,W){W(2)&&(g.dV(Q,"index"),g.dV(Q,"media"));W(5)&&g.dV(Q,"captions");W(6)&&(iJ(Q,"metadata"),iJ(Q,"playerdata"))},
version:5});var Kpe={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},fo;a:{var Zp=g.Ae();Zp=Zp.toLowerCase();if(g.he(Zp,"android")){var lJF=Zp.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(lJF){var jpe=parseFloat(lJF[1]);if(jpe<100){fo=jpe;break a}}var MEs=Zp.match("("+Object.keys(Kpe).join("|")+")");fo=MEs?Kpe[MEs[0]]:0}else fo=void 0}var UT=fo,HL=UT>=0;var qFz=window;var aun=s7(function(){var Q,W;return(W=(Q=window).matchMedia)==null?void 0:W.call(Q,"(prefers-reduced-motion: reduce)").matches});var $v;g.Bc=new dW;$v=0;var Im={rb:function(Q,W){var x=Q[0];Q[0]=Q[W%Q.length];Q[W%Q.length]=x},
sF:function(Q,W){Q.splice(0,W)},
Mt:function(Q){Q.reverse()}};var rEa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var ta=BO4()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.rV?!0:!1;var je2={jm3:"adunit",TxS:"detailpage",Ff5:"editpage",Nnf:"embedded",W1f:"leanback",VD9:"previewpage",TYf:"profilepage",m6:"unplugged",tD9:"playlistoverview",O7p:"sponsorshipsoffer",r8S:"shortspage",hzj:"handlesclaiming",mHp:"immersivelivepage",t93:"creatormusic",y9S:"immersivelivepreviewpage",lE1:"admintoolyurt",GN3:"shortsaudiopivot",iRt:"consumption"};var Lo,R8q,Jk;Lo={};g.LJ=(Lo.STOP_EVENT_PROPAGATION="html5-stop-propagation",Lo.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Lo.IV_DRAWER_OPEN="ytp-iv-drawer-open",Lo.MAIN_VIDEO="html5-main-video",Lo.VIDEO_CONTAINER="html5-video-container",Lo.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Lo.HOUSE_BRAND="house-brand",Lo);R8q={};Jk=(R8q.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",R8q.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",R8q);var ys2={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var LsD={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},rD5={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"},flF={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var ay5={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.KN.prototype.getLanguageInfo=function(){return this.RW};
g.KN.prototype.getXtags=function(){if(!this.xtags){var Q=this.id.split(";");Q.length>1&&(this.xtags=Q[1])}return this.xtags};
g.KN.prototype.toString=function(){return this.RW.name};
g.KN.prototype.getLanguageInfo=g.KN.prototype.getLanguageInfo;lQ.prototype.yI=function(Q){return this.U===Q.U&&this.B===Q.B&&this.D===Q.D&&this.reason===Q.reason&&(!MD||this.a5===Q.a5)};
lQ.prototype.isLocked=function(){return this.D&&!!this.U&&this.U===this.B};
lQ.prototype.compose=function(Q){if(Q.D&&Ry(Q))return eQ;if(Q.D||Ry(this))return Q;if(this.D||Ry(Q))return this;var W=this.U&&Q.U?Math.max(this.U,Q.U):this.U||Q.U,x=this.B&&Q.B?Math.min(this.B,Q.B):this.B||Q.B;W=Math.min(W,x);var D=0;MD&&(D=this.a5!==0&&Q.a5!==0?Math.min(this.a5,Q.a5):this.a5===0?Q.a5:this.a5);return MD&&W===this.U&&x===this.B&&D===this.a5||!MD&&W===this.U&&x===this.B?this:MD?new lQ(W,x,!1,x===this.B&&D===this.a5?this.reason:Q.reason,D):new lQ(W,x,!1,x===this.B?this.reason:Q.reason)};
lQ.prototype.N=function(Q){return!Q.video||MD&&this.a5!==0&&this.a5<Q.a5?!1:OD2(this,Q.video.quality)};
var wVu=g.jw("auto","hd1080",!1,"l"),qJQ=g.jw("auto","large",!1,"l"),eQ=g.jw("auto","auto",!1,"p"),MD=!1;se.prototype.VT=function(Q){Q=Q||eQ;for(var W=g.Rv(this.videoInfos,function(M){return Q.N(M)}),x=[],D={},K=0;K<W.length;K++){var l=W[K].video;
D[l.quality]||(x.push(l),D[l.quality]=!0)}return x};
se.prototype.cR=function(Q){Q=Q||eQ;return g.Rv(this.videoInfos,function(W){return Q.N(W)})};
se.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var zMQ=new Set(["356"]);g.n(z8,g.N);z8.prototype.U3=function(){g.N.prototype.U3.call(this)};g.JW.prototype.set=function(Q,W){this.B[Q]!==W&&(this.B[Q]=W,this.url="")};
g.JW.prototype.get=function(Q){pN(this);return this.B[Q]||null};
g.JW.prototype.cV=function(){this.url||(this.url=ndO(this));return this.url};
g.JW.prototype.clone=function(){var Q=new g.JW(this.U,this.N);Q.scheme=this.scheme;Q.path=this.path;Q.D=this.D;Q.B=g.HZ(this.B);Q.url=this.url;return Q};
var YCl=[rHv];g.R=g.Hh.prototype;g.R.GX=function(Q){this.segments.push(Q)};
g.R.gY=function(Q){return!!this.Xp(Q)};
g.R.getDuration=function(Q){return(Q=this.Xp(Q))?Q.duration:0};
g.R.Hh=function(Q){return this.getDuration(Q)};
g.R.GR=function(){return 0};
g.R.Ec=function(){return this.segments.length?this.segments[0].E3:-1};
g.R.LZ=function(Q){return(Q=this.Xp(Q))?Q.ingestionTime:NaN};
g.R.oQ=function(){return this.segments.length?this.segments[this.segments.length-1].E3:-1};
g.R.nT=function(Q){return this.oQ()===Q&&!this.U&&Q>=0};
g.R.w8=function(){var Q=this.segments[this.segments.length-1];return Q?Q.endTime:NaN};
g.R.Jn=function(){return this.segments[0].startTime};
g.R.n9=function(){return this.segments.length};
g.R.JX=function(){return 0};
g.R.GC=function(Q){return(Q=this.iR(Q))?Q.E3:-1};
g.R.y9=function(Q){return(Q=this.Xp(Q))?Q.sourceURL:""};
g.R.getStartTime=function(Q){return(Q=this.Xp(Q))?Q.startTime:0};
g.R.S8=function(Q){return this.getStartTime(Q)+this.getDuration(Q)};
g.R.Dt=xQ(1);g.R.isLoaded=function(){return this.segments.length>0};
g.R.Xp=function(Q){if(this.B&&this.B.E3===Q)return this.B;Q=g.wl(this.segments,new AW(Q,0,0,0,""),function(W,x){return W.E3-x.E3});
return this.B=Q>=0?this.segments[Q]:null};
g.R.iR=function(Q){if(this.B&&this.B.startTime<=Q&&Q<this.B.startTime+this.B.duration)return this.B;Q=g.wl(this.segments,{startTime:Q},function(W,x){return W.startTime-x.startTime});
return this.B=Q>=0?this.segments[Q]:this.segments[Math.max(0,-Q-2)]};
g.R.append=function(Q){if(Q.length)if(Q=g.DX(Q),this.segments.length){var W=this.segments.length?g.r1(this.segments).endTime:0,x=Q[0].E3-this.oQ();x>1&&EQO(this.segments);for(x=x>0?0:-x+1;x<Q.length;x++){var D=Q[x];D.startTime=W;D.endTime=D.startTime+D.duration;W+=Q[x].duration;this.segments.push(Q[x])}}else this.segments=Q};
g.R.td=function(){return 0};Ue.prototype.skip=function(Q){this.B+=Q};J7z.prototype.Nq=function(){return new Uint8Array(this.data.buffer)};var rP={},SYs=(rP.predictStart="predictStart",rP.start="start",rP["continue"]="continue",rP.stop="stop",rP),plz={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};ew.prototype.ML=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"])};
ew.prototype.toString=function(){for(var Q="",W=g.V(Object.keys(this.data)),x=W.next();!x.done;x=W.next())x=x.value,Q+=x+":"+this.data[x]+";";return Q};Dt.prototype.ey=function(){var Q=this.pos;this.pos=0;var W=!1;try{ML(this,440786851)&&(this.pos=0,ML(this,408125543)&&(W=!0))}catch(x){if(x instanceof RangeError)this.pos=0,W=!1,g.Bp(x);else throw x;}this.pos=Q;return W};uM.prototype.set=function(Q,W){this.MD.get(Q);this.B[Q]=W;this.url=""};
uM.prototype.get=function(Q){return this.B[Q]||this.MD.get(Q)};
uM.prototype.cV=function(){this.url||(this.url=LQQ(this));return this.url};vM.prototype.H9=function(Q,W){return Q.WN?this.S?this.X=!0:this.X=Twz(this,Q,W):Twz(this,Q,W)};
vM.prototype.pB=function(Q){return this.D.get(Q)};
vM.prototype.Kt=function(Q,W){Q.MD===this.B&&(this.B=Ym(Q,W));Q.MD===this.N&&(this.N=Ym(Q,W))};
vM.prototype.nU=function(){return this.B!==this.N&&!this.X};GI.prototype.Fs=function(){return!!this.B&&this.index.isLoaded()};
GI.prototype.il=function(){return!1};
GI.prototype.TY=function(Q){return[Q]};
GI.prototype.Zl=function(Q){return[Q]};dR.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.R=Uq.prototype;g.R.lf=function(){return this.N&&this.B.index.nT(this.E3)};
g.R.isEncrypted=function(){return this.B.info.isEncrypted()};
g.R.yI=function(Q){return!(!Q||Q.B!==this.B||Q.type!==this.type||(this.range&&Q.range?Q.range.start!==this.range.start||Q.range.end!==this.range.end:Q.range!==this.range)||Q.E3!==this.E3||Q.U!==this.U||Q.D!==this.D)};
g.R.OQ=function(){return!!this.B.info.video};
g.R.Zb=function(){var Q=mZ(this),W="";g.nC(Q,function(x,D){W+=D+"_"+x+"_"});
return W.slice(0,-1)};cM.prototype.Pd=function(){return this.B?this.B.cV():""};
cM.prototype.isDecorated=function(){return!!(this.B||this.N&&this.N.WL)};
cM.prototype.K7=function(){return qL(this.Af[0])};
cM.prototype.Kt=function(Q,W){this.Db.Kt(Q,W);if(this.B){this.B=Ym(Q,W);W=g.V(["acpns","cpn","daistate","skipsq"]);for(var x=W.next();!x.done;x=W.next())this.B.set(x.value,null)}this.requestId=Q.get("req_id")};g.n(ff,GI);g.R=ff.prototype;g.R.Gc=function(){return!1};
g.R.Sr=function(){return!0};
g.R.z6=function(){return!1};
g.R.il=function(){return!this.L};
g.R.E7=function(){return new cM([new Uq(1,this,this.initRange,"getMetadataRequestInfo")],this.L)};
g.R.Ta=function(){return null};
g.R.Np=function(Q){this.uO(Q);return this.Sr()&&Q.D&&!Q.N?new cM([new Uq(Q.type,Q.B,Q.range,"liveGetNextRequestInfoBySegment",Q.E3,Q.startTime,Q.duration,Q.U+Q.D,NaN,!0)],this.index.y9(Q.E3)):this.BO(Iz(Q),!1)};
g.R.I4=function(Q,W){W=W===void 0?!1:W;Q=this.index.GC(Q);W&&(Q=Math.min(this.index.oQ(),Q+1));return this.BO(Q,!0)};
g.R.Ir=function(Q){lO(Q)};
g.R.uO=function(Q){return Q.D===0?!0:this.index.oQ()>Q.E3&&this.index.Ec()<=Q.E3+1};
g.R.update=function(Q,W,x){this.index.append(Q);vdh(this.index,x);Q=this.index;Q.U=W;Q.D="update"};
g.R.Fs=function(){return this.il()?!0:GI.prototype.Fs.call(this)};
g.R.BO=function(Q,W){var x=this.index.y9(Q),D=this.index.getStartTime(Q),K=this.index.getDuration(Q),l;W?K=l=0:l=this.info.a5>0?this.info.a5*K:1E3;return new cM([new Uq(3,this,void 0,"liveCreateRequestInfoForSegment",Q,D,K,0,l,!W)],x)};
g.R.D4=function(){return this.il()?0:this.initRange.length};
g.R.G8=function(){return!1};rR.prototype.update=function(Q){var W=void 0;this.U&&(W=this.U);var x=new rR,D=Array.from(Q.getElementsByTagName("S"));if(D.length){var K=+Zt(Q,"timescale")||1,l=(+D[0].getAttribute("t")||0)/K,M=+Zt(Q,"startNumber")||0;x.N=l;var w=W?W.startSecs+W.eE:0,S=Date.parse(XTQ(Zt(Q,"yt:segmentIngestTime")))/1E3;x.L=Q.parentElement.tagName==="SegmentTemplate";x.L&&(x.G=Zt(Q,"media"));Q=W?M-W.E3:1;x.X=Q>0?0:-Q+1;Q=g.V(D);for(D=Q.next();!D.done;D=Q.next()){D=D.value;for(var b=+D.getAttribute("d")/K,z=(+D.getAttribute("yt:sid")||
0)/K,k=+D.getAttribute("r")||0,X=0;X<=k;X++)if(W&&M<=W.E3)M++;else{var u=new zW5(M,w,b,S+z,l);x.B.push(u);var Y=D;var v=K,J=u.startSecs;u=Y.getAttribute("yt:cuepointTimeOffset");var h=Y.getAttribute("yt:cuepointDuration");if(u&&h){u=Number(u);J=-u/v+J;v=Number(h)/v;h=Y.getAttribute("yt:cuepointContext")||null;var G=Y.getAttribute("yt:cuepointIdentifier")||"";Y=Y.getAttribute("yt:cuepointEvent")||"";Y=new gQ(J,v,h,G,SYs[Y]||"unknown",u)}else Y=null;Y&&x.D.push(Y);M++;w+=b;l+=b;S+=b+z}}x.B.length&&
(x.U=g.r1(x.B))}this.X=x.X;this.U=x.U||this.U;g.lZ(this.B,x.B);g.lZ(this.D,x.D);this.L=x.L;this.G=x.G;this.N===-1&&(this.N=x.getStreamTimeOffset())};
rR.prototype.getStreamTimeOffset=function(){return this.N===-1?0:this.N};g.n(Oq,g.Hh);g.R=Oq.prototype;g.R.GR=function(){return this.K2};
g.R.gY=function(Q,W){Q=Eq(this,Q);return Q>=0&&(W||!this.segments[Q].pending)};
g.R.Ec=function(){return this.Fp?this.segments.length?this.iR(this.Jn()).E3:-1:g.Hh.prototype.Ec.call(this)};
g.R.Jn=function(){if(this.Nr)return 0;if(!this.Fp)return g.Hh.prototype.Jn.call(this);if(!this.segments.length)return 0;var Q=Math.max(g.r1(this.segments).endTime-this.o4,0);return this.bG>0&&this.iR(Q).E3<this.bG?this.Xp(this.bG).startTime:Q};
g.R.w8=function(){if(this.HH&&this.jD&&this.jD>0)return this.jD/1E3;if(!this.segments.length)return g.Hh.prototype.w8.call(this);var Q=this.oQ();if(!this.Fp||Q<=this.segments[this.segments.length-1].E3)Q=this.segments[this.segments.length-1];else{var W=this.segments[this.segments.length-1];Q=new AW(Q,Math.max(0,W.startTime-(W.E3-Q)*this.K2),this.K2,0,"sq/"+Q,void 0,void 0,!0)}return this.Nr?Math.min(this.o4,Q.endTime):Q.endTime};
g.R.n9=function(){return this.Fp?this.segments.length?this.oQ()-this.Ec()+1:0:g.Hh.prototype.n9.call(this)};
g.R.oQ=function(){var Q=Math.min(this.xS,Math.max(g.Hh.prototype.oQ.call(this),this.Dm)),W=this.o4*1E3;W=this.jD>0&&this.jD<W;this.Nr&&this.o4>0&&this.Dm>0&&!W&&(W=this.iR(this.o4))&&(Q=Math.min(W.E3-1,Q));return Q};
g.R.lY=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.R.GX=function(Q){var W=Eq(this,Q.E3);if(W>=0)this.segments[W]=Q;else if(this.segments.splice(-(W+1),0,Q),this.us&&Q.E3%(300/this.K2)===0){var x=this.segments[0].E3,D=Math.floor(this.us/this.K2);Q=Q.E3-D;W=-(W+1)-D;W>0&&Q>x&&(this.segments=this.segments.slice(W))}};
g.R.ZP=function(){return this.Dm};
g.R.nT=function(Q){return TI?!this.U&&Q>=0&&this.oQ()<=Q:g.Hh.prototype.nT.call(this,Q)};
g.R.iR=function(Q){if(!this.Fp)return g.Hh.prototype.iR.call(this,Q);if(!this.segments.length)return null;var W=this.segments[this.segments.length-1];if(Q<this.segments[0].startTime)W=Math.max(0,this.segments[0].E3-Math.ceil((this.segments[0].startTime-Q)/this.K2));else if(Q>=W.endTime)W=W.E3+Math.floor((Q-W.endTime)/this.K2+1);else{W=SJ(this.segments,function(D){return Q<D.startTime?-1:Q>=D.endTime?1:0});
if(W>=0)return this.segments[W];var x=-(W+1);W=this.segments[x-1];x=this.segments[x];W=Math.floor((Q-W.endTime)/((x.startTime-W.endTime)/(x.E3-W.E3-1))+1)+W.E3}return this.Xp(W)};
g.R.Xp=function(Q){if(!this.Fp)return g.Hh.prototype.Xp.call(this,Q);if(!this.segments.length)return null;var W=Eq(this,Q);if(W>=0)return this.segments[W];var x=-(W+1);W=this.K2;if(x===0)var D=Math.max(0,this.segments[0].startTime-(this.segments[0].E3-Q)*W);else x===this.segments.length?(D=this.segments[this.segments.length-1],D=D.endTime+(Q-D.E3-1)*W):(D=this.segments[x-1],W=this.segments[x],W=(W.startTime-D.endTime)/(W.E3-D.E3-1),D=D.endTime+(Q-D.E3-1)*W);return new AW(Q,D,W,0,"sq/"+Q,void 0,void 0,
!0)};
var TI=!1;g.n(FU,ff);g.R=FU.prototype;g.R.z6=function(){return!0};
g.R.Fs=function(){return!0};
g.R.uO=function(Q){return this.Sr()&&Q.D&&!Q.N||!Q.B.index.nT(Q.E3)};
g.R.E7=function(){};
g.R.I4=function(Q,W){return typeof Q!=="number"||isFinite(Q)?ff.prototype.I4.call(this,Q,W===void 0?!1:W):new cM([new Uq(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.zA,void 0,this.zA*this.info.a5)],"")};
g.R.BO=function(Q,W){var x=x===void 0?!1:x;if(this.index.gY(Q))return ff.prototype.BO.call(this,Q,W);var D=this.index.getStartTime(Q),K=Math.round(this.zA*this.info.a5),l=this.zA;W&&(l=K=0);return new cM([new Uq(x?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",Q,D,l,void 0,K,!W)],Q>=0?"sq/"+Q:"")};g.n(tZ,GI);g.R=tZ.prototype;g.R.Gc=function(){return!1};
g.R.Sr=function(){return!1};
g.R.z6=function(){return!1};
g.R.E7=function(){return new cM([new Uq(1,this,void 0,"otfInit")],this.L)};
g.R.Ta=function(){return null};
g.R.Np=function(Q){this.uO(Q);return C92(this,Iz(Q),!1)};
g.R.I4=function(Q,W){W=W===void 0?!1:W;Q=this.index.GC(Q);W&&(Q=Math.min(this.index.oQ(),Q+1));return C92(this,Q,!0)};
g.R.Ir=function(Q){Q.info.type===1&&(this.B||(this.B=vQ(Q.B)),Q.U&&Q.U.uri==="http://youtube.com/streaming/otf/durations/112015"&&Jh4(this,Q.U))};
g.R.uO=function(Q){return Q.D===0?!0:this.index.oQ()>Q.E3&&this.index.Ec()<=Q.E3+1};
g.R.D4=function(){return 0};
g.R.G8=function(){return!1};QY.prototype.qr=function(){return this.B.qr()};g.R=g.j8.prototype;g.R.gY=function(Q){return Q<=this.oQ()};
g.R.JX=function(Q){return this.offsets[Q]};
g.R.getStartTime=function(Q){return this.startTicks[Q]/this.B};
g.R.S8=function(Q){return this.getStartTime(Q)+this.getDuration(Q)};
g.R.Dt=xQ(0);g.R.LZ=function(){return NaN};
g.R.getDuration=function(Q){Q=this.Hh(Q);return Q>=0?Q/this.B:-1};
g.R.Hh=function(Q){return Q+1<this.count||this.U?this.startTicks[Q+1]-this.startTicks[Q]:-1};
g.R.GR=function(){return 0};
g.R.Ec=function(){return 0};
g.R.oQ=function(){return this.count-1};
g.R.nT=function(Q){return this.oQ()===Q&&Q>=0};
g.R.w8=function(){return this.U?this.startTicks[this.count]/this.B:NaN};
g.R.Jn=function(){return 0};
g.R.n9=function(){return this.count};
g.R.y9=function(){return""};
g.R.GC=function(Q){Q=g.wl(this.startTicks.subarray(0,this.count),Q*this.B);return Q>=0?Q:Math.max(0,-Q-2)};
g.R.isLoaded=function(){return this.oQ()>=0};
g.R.td=function(Q,W){if(Q>=this.oQ())return 0;var x=0;for(W=this.getStartTime(Q)+W;Q<this.oQ()&&W>this.getStartTime(Q);Q++)x=Math.max(x,UND(this,Q)/this.getDuration(Q));return x};
g.R.resize=function(Q){Q+=2;var W=this.offsets;this.offsets=new Float64Array(Q+1);var x=this.startTicks;this.startTicks=new Float64Array(Q+1);for(Q=0;Q<this.count+1;Q++)this.offsets[Q]=W[Q],this.startTicks[Q]=x[Q]};
g.R.cap=function(Q,W){MG(this);this.U=!0;this.startTicks[this.count]=W;this.offsets[this.count]=Q};g.n(RI,GI);g.R=RI.prototype;g.R.E7=function(Q,W){var x=new Uq(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,W),D=[new Uq(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,W),x];this.info.contentLength>0&&Q&&(x=x.range.end+1,Q=Math.min(Q,this.info.contentLength-x),Q>0&&D.push(new Uq(4,this,AZ(x,Q),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,W)));return new cM(D)};
g.R.Ir=function(Q){if(Q.info.type===1){if(this.B)return;this.B=vQ(Q.B)}else if(Q.info.type===2){if(this.L||this.index.oQ()>=0)return;if(g.t7(this.info)){var W=this.index,x=Q.qr();Q=Q.info.range.start;var D=g.LN(x,0,1936286840);x=qC4(D);W.B=x.timescale;var K=x.jT;W.offsets[0]=x.BP+Q+D.size;W.startTicks[0]=K;W.U=!0;Q=x.Dz.length;for(D=0;D<Q;D++){K=W;var l=x.us3[D],M=x.Dz[D];K.count++;MG(K);K.offsets[K.count]=K.offsets[K.count-1]+l;K.startTicks[K.count]=K.startTicks[K.count-1]+M}}else this.L=Q.qr()}if(this.info.i6()&&
this.B&&this.L){x=new DataView(this.B.buffer);W=this.index;D=this.L;Q=this.indexRange.end;K=new Dt(x);x=K;K=x.pos;l={V$:1E6,Zh:1E9,duration:0,pD:0,l3:0};if(ML(x,408125543))if(l.pD=Rz(x,!0),l.l3=x.start+x.pos,ML(x,357149030)){for(M=j2(x);!Kf(M);){var w=Rz(M,!1);w===2807729?l.V$=S2(M):w===2807730?l.Zh=S2(M):w===17545?l.duration=sq(M):bM(M)}x.pos=K;x=l}else x.pos=K,x=null;else x.pos=K,x=null;if(x!==null){W.B=x.Zh/x.V$;K=new Dt(D);D=K;M=x.l3;K=D.pos;l=[];if(ML(D,475249515)){for(w=j2(D);ML(w,187);){var S=
j2(w);if(ML(S,179)){var b=S2(S);if(ML(S,183)){S=j2(S);for(var z=M;ML(S,241);)z=S2(S)+M;l.push({FB:z,Ua:b})}}}if(l.length>0&&Q===l[0].FB)for(Q=0;Q<l.length;Q++)l[Q].FB+=1;D.pos=K;Q=l}else D.pos=K,Q=null;if(Q!==null){Q=g.V(Q);for(D=Q.next();!D.done;D=Q.next())l=D.value,D=W,K=l.FB,l=l.Ua,MG(D),D.offsets[D.count]=K,D.startTicks[D.count]=l,D.count++;W.cap(x.pD+x.l3,x.duration)}}this.L=null}};
g.R.vC=function(Q,W,x,D){for(var K=[],l=Q;l<=this.index.oQ();l++){var M=AZ(this.index.JX(l),UND(this.index,l)),w=this.index.getStartTime(l),S=this.index.getDuration(l),b=Math.max(0,W-M.start),z=Math.min(M.end+1,W+x)-(M.start+b);K.push(new Uq(3,this,M,"getRequestInfoForRange",l,w,S,b,z,void 0,void 0,D));if(M.start+b+z>=W+x)break}K.length||g.ql(new g.Lw("b189619593",""+Q,""+W,""+x));return new cM(K)};
g.R.TY=function(Q){for(var W=this.Zl(Q.info),x=Q.info.range.start+Q.info.U,D=[],K=0;K<W.length;K++){var l=nI(Q.B,W[K].range.start+W[K].U-x,W[K].D);D.push(new QY(W[K],l))}return D};
g.R.Zl=function(Q){for(var W=Q.range.start+Q.U,x=0;x<this.index.oQ()&&W>=this.index.JX(x+1);)x++;return this.vC(x,W,Q.D).Af};
g.R.uO=function(Q){Q.lf();return this.Fs()?!0:Q.range.end+1<this.info.contentLength};
g.R.Ta=function(Q,W){this.uO(Q);if(!this.Fs())return W=AZ(Q.range.end+1,W),W.end+1>this.info.contentLength&&(W=new dR(W.start,this.info.contentLength-1)),new cM([new Uq(4,Q.B,W,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q.clipId)]);Q.type===4&&(Q=this.Zl(Q),Q=Q[Q.length-1]);var x=0,D=Q.range.start+Q.U+Q.D;Q.type===3&&(Q.lf(),x=Q.E3,D===Q.range.end+1&&(x+=1));return this.vC(x,D,W)};
g.R.Np=function(){return null};
g.R.I4=function(Q,W,x){W=W===void 0?!1:W;Q=this.index.GC(Q);W&&(Q=Math.min(this.index.oQ(),Q+1));return this.vC(Q,this.index.JX(Q),0,x)};
g.R.Gc=function(){return!0};
g.R.Sr=function(){return!0};
g.R.z6=function(){return!1};
g.R.D4=function(){return this.indexRange.length+this.initRange.length};
g.R.G8=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var TB={},EUa=(TB.COLOR_PRIMARIES_BT709="bt709",TB.COLOR_PRIMARIES_BT2020="bt2020",TB.COLOR_PRIMARIES_UNKNOWN=null,TB.COLOR_PRIMARIES_UNSPECIFIED=null,TB),OK={},Bg4=(OK.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",OK.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",OK.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",OK.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",OK.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,OK.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,OK);g.wr.prototype.getName=function(){return this.name};
g.wr.prototype.getId=function(){return this.id};
g.wr.prototype.getIsDefault=function(){return this.isDefault};
g.wr.prototype.toString=function(){return this.name};
g.wr.prototype.getName=g.wr.prototype.getName;g.wr.prototype.getId=g.wr.prototype.getId;g.wr.prototype.getIsDefault=g.wr.prototype.getIsDefault;var Ngl=/action_display_post/;var chv,s5,zF;g.n(kK,g.Rd);g.R=kK.prototype;g.R.isLoading=function(){return this.state===1};
g.R.je=function(){return this.state===3};
g.R.jtj=function(Q){var W=Q.getElementsByTagName("Representation");if(Q.getElementsByTagName("SegmentList").length>0||Q.getElementsByTagName("SegmentTemplate").length>0){this.lN=this.U=!0;this.timeline||(this.timeline=new usa);P9n(this.timeline,Q);this.publish("refresh");for(Q=0;Q<W.length;Q++){var x=KU1(this,W[Q]);if(!this.B[x.id]){var D=nn(Lf(W[Q],"BaseURL").textContent),K=Lf(W[Q],"Initialization"),l=Zt(K,"sourceURL");K=iM(Zt(K,"range"));this.B[x.id]=new ff(D,x,l,K)}x=this.B[x.id];D=Zt(W[Q],"id",
"AdaptationSet");D=D!==""?D:Zt(W[Q],"mimetype","AdaptationSet");l=this.timeline;l=l.D[x.info.id]||l.U[D]||l.B||null;D=l.B;!this.G&&l.getStreamTimeOffset()&&(this.G=l.getStreamTimeOffset());if(l.L){K=[];D=g.V(D);for(var M=D.next();!M.done;M=D.next()){M=M.value;var w=x.info.id,S=x.info.a5*8,b=M.E3;var z=M.startSecs;var k=l.G.split("$$");for(var X=0;X<k.length;X++)k[X]=k[X].replace("$RepresentationID$",w),k[X]=k[X].replace("$Number$",b.toString()),k[X]=k[X].replace("$Bandwidth$",S.toString()),k[X]=k[X].replace("$Time$",
z.toString());K.push(new AW(M.E3,M.startSecs,M.eE,M.B,k.join("$"),null,M.U))}D=K}else{l=jJ(Lf(W[Q],"SegmentList").getElementsByTagName("SegmentURL"),l.X);K=[];for(M=0;M<l.length;M++){w=K;S=w.push;b=D[M];z=void 0;X=l[M];k=X.getAttribute("media");if(X=X.getAttribute("mediaRange")){var u=X.split("-");u[1]&&Number(u[1])>=0?z=iM(X):k=k+"?range="+X}S.call(w,new AW(b.E3,b.startSecs,b.eE,b.B,k,z,b.U))}D=K}x.update(D,this.isLive,this.O3)}vU5(this.timeline);return!0}this.duration=klh(Zt(Q,"mediaPresentationDuration"));
a:{for(Q=0;Q<W.length;Q++){l=W[Q];x=KU1(this,l);D=nn(Lf(l,"BaseURL").textContent);K=Lf(l,"SegmentBase");l=iM(K.attributes.getNamedItem("indexRange").value);K=iM(K.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);x=new RI(D,x,K,l);if(!x){W=!1;break a}bO(this,x)}W=!0}return W};
g.R.refresh=function(){if(!this.isLoading()&&!this.d7()){var Q=g.ya(this.sourceUrl,{start_seq:waa(this).toString()});jAa(this,Q).RH(function(){})}};
g.R.resume=function(){lTF(this)};
g.R.FY=function(){if(this.isManifestless&&this.N&&PB(this))return PB(this);var Q=this.B,W=!1,x=NaN,D=NaN,K;for(K in Q){var l=Q[K],M=l.index;M.isLoaded()&&!KS(l.info.mimeType)&&(l.N&&(W=!0),M=M.w8(),l.info.Mx()&&(isNaN(x)||M<x)?x=M:l.info.OQ()&&(isNaN(D)||M<D)&&(D=M))}return W||isNaN(D)?x:Math.min(x,D)};
g.R.Jn=function(){if(this.isManifestless){if(vB(this))return vB(this);if(this.yA){var Q=this.LZ(this.FY());if(Q&&(Q-=this.yA,Q>0))return this.FY()-Q}}Q=this.B;for(var W in Q){var x=Q[W].index;if(x.isLoaded()&&!KS(Q[W].info.mimeType))return x.Jn()}return 0};
g.R.getStreamTimeOffset=function(){return this.G};
g.R.LZ=function(Q){for(var W in this.B){var x=this.B[W].index;if(x.isLoaded()){var D=x.GC(Q),K=x.LZ(D);if(K)return K+Q-x.getStartTime(D)}}return NaN};
var GF=null,bRs,dr=!((bRs=navigator.mediaCapabilities)==null||!bRs.decodingInfo),Dm1={commentary:1,alternate:2,dub:3,main:4};var o5=new Set,iO=new Map;U5.prototype.clone=function(Q){return new U5(this.flavor,Q,this.U,this.experiments)};
U5.prototype.AO=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
U5.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 spp={},e8=(spp.playready=["com.youtube.playready","com.microsoft.playready"],spp.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],spp),EK={},XdQ=(EK.widevine="DRM_SYSTEM_WIDEVINE",EK.fairplay="DRM_SYSTEM_FAIRPLAY",EK.playready="DRM_SYSTEM_PLAYREADY",EK),Fb={},z8F=(Fb.widevine=1,Fb.fairplay=2,Fb.playready=3,Fb);Zv.prototype.HM=function(Q,W){W=W===void 0?1:W;this.Ny+=W;this.U+=Q;Q/=W;for(var x=0;x<fn.length&&!(Q<fn[x]);++x)this.B[x]+=W};
Zv.prototype.toString=function(){return""};
var fn=[20,100,500,2E3];g.R=naF.prototype;g.R.isActive=function(){return!0};
g.R.zb=function(Q,W){var x=this;if(W){var D={},K;for(K in W)D={FU:void 0,OI:void 0},W.hasOwnProperty(K)&&(D.FU=Q.prototype[K],D.OI=W[K],Q.prototype[K]=function(l){return function(){var M=g.i2.apply(0,arguments),w=(0,g.a8)();M=l.FU.apply(this,M);return Ln(x,M,l.OI,w)}}(D))}};
g.R.oO=function(Q,W){if(W){var x=this,D={},K;for(K in W)D={PG:void 0,xa:void 0},W.hasOwnProperty(K)&&(D.xa=Q.prototype[K],D.PG=W[K],Q.prototype[K]=function(l){return function(){var M=g.i2.apply(0,arguments),w=this,S=(0,g.a8)(),b=l.xa.apply(w,M);return Ln(x,b,null,S,function(z){return l.PG.apply(w,[z].concat(M))})}}(D))}};
g.R.IA=function(Q,W){var x=this;return function(){var D=g.i2.apply(0,arguments),K=(0,g.a8)();D=W.apply(null,D);return Ln(x,D,Q,K)}};
g.R.Xa=function(){return new Y0n};
g.R.Wd=function(Q,W,x){x=x===void 0?1:x;W instanceof Y0n&&(V_Q(this,Q,(0,g.a8)()-W.startTimeMs,x),W.B=!0)};
g.R.Op=function(Q,W){var x=(0,g.a8)();W=W();return Ln(this,W,Q,x)};
g.R.YK=function(){var Q={},W;for(W in this.B)if(this.B.hasOwnProperty(W)){var x=this.B[W];if(x.Ny===0)x=null;else{for(var D=Math.ceil(x.Ny).toFixed(0)+"."+x.U.toFixed(0),K=0;K<fn.length;++K)if(x.B[K]>0)D+="."+fn[K].toFixed(0)+"_"+x.B[K].toFixed(0);else break;x=D}x&&(Q[W]=x)}this.B=new uY2;return Q};
g.R.toString=function(){return""};g.R=CWv.prototype;g.R.isActive=function(){return!1};
g.R.zb=function(){};
g.R.oO=function(){};
g.R.IA=function(Q,W){return W};
g.R.Xa=function(){};
g.R.Wd=function(){};
g.R.Op=function(Q,W){return W()};
g.R.YK=function(){return{}};
g.R.toString=function(){return""};var t1,k1e,XV7,oLq,utF,YY1,QI,hJ,lc,q44,E5;t1=new CWv;k1e=!!+Ob("html5_enable_profiler");XV7=!!+Ob("html5_onesie_enable_profiler");oLq=!!+Ob("html5_offline_encryption_enable_profiler");utF=!!+Ob("html5_performance_impact_profiling_timer_ms");YY1=!!+Ob("html5_drm_enable_profiler");QI=k1e||XV7||oLq||utF||YY1?new naF:t1;g.qv=k1e?QI:t1;hJ=XV7?QI:t1;lc=oLq?QI:t1;q44=utF?QI:t1;E5=YY1?QI:t1;var O5;g.n(rr,g.N);
rr.prototype.initialize=function(Q,W){for(var x=this,D=g.V(Object.keys(Q)),K=D.next();!K.done;K=D.next()){K=g.V(Q[K.value]);for(var l=K.next();!l.done;l=K.next())if(l=l.value,l.Qp)for(var M=g.V(Object.keys(l.Qp)),w=M.next();!w.done;w=M.next()){var S=w.value;w=S;S=e8[S];!S&&this.j("html5_enable_vp9_fairplay")&&w==="fairplay"&&(S=["com.youtube.fairplay.sbdl"]);if(S){S=g.V(S);for(var b=S.next();!b.done;b=S.next())b=b.value,this.D[b]=this.D[b]||new U5(w,b,l.Qp[w],this.Dp.experiments),this.B[w]=this.B[w]||
{},this.B[w][l.mimeType]=!0}}}Zs()&&(this.D["com.youtube.fairplay"]=new U5("fairplay","com.youtube.fairplay","",this.Dp.experiments),this.j("html5_enable_vp9_fairplay")||(this.B.fairplay=this.B.fairplay||{},this.B.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.B.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.U=oas(W,this.useCobaltWidevine,this.j("html5_enable_safari_fairplay"),this.j("html5_enable_vp9_fairplay")).filter(function(z){return!!x.D[z]})};
rr.prototype.j=function(Q){return this.Dp.experiments.ij(Q)};var nLe={"":"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"};iza.prototype.j=function(Q){return this.experiments.ij(Q)};var RLs={RED:"red",m5j:"white"};AAa.prototype.ij=function(Q){Q=this.flags[Q];JSON.stringify(Q);return Q==="true"};var q0h=Promise.resolve(),mmn=window.queueMicrotask?window.queueMicrotask.bind(window):BEh;WL.prototype.canPlayType=function(Q,W){Q=Q.canPlayType?Q.canPlayType(W):!1;LX?Q=Q||VEF[W]:UT===2.2?Q=Q||PgC[W]:eL()&&(Q=Q||vLJ[W]);return!!Q};
WL.prototype.isTypeSupported=function(Q){return this.pS?window.cast.receiver.platform.canDisplayType(Q):qq(Q)};
var PgC={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},vLJ={"application/x-mpegURL":"maybe"},VEF={"application/x-mpegURL":"maybe"};g.n(jC,g.Rd);jC.prototype.add=function(Q,W){if(!this.items[Q]&&(W.B5||W.rl||W.Md)){var x=this.items,D=W;Object.isFrozen&&!Object.isFrozen(W)&&(D=Object.create(W),Object.freeze(D));x[Q]=D;this.publish("vast_info_card_add",Q)}};
jC.prototype.remove=function(Q){var W=this.get(Q);delete this.items[Q];return W};
jC.prototype.get=function(Q){return this.items[Q]||null};
jC.prototype.isEmpty=function(){return g.dS(this.items)};g.n(M4,g.vE);M4.prototype.B=function(Q,W){return g.vE.prototype.B.call(this,Q,W)};
M4.prototype.U=function(Q,W,x){var D=this;return g.U(function(K){return K.B==1?g.A(K,g.vE.prototype.U.call(D,Q,W,x),2):K.return(K.U)})};
g.n(RO,g.CB);RO.prototype.encrypt=function(Q,W){return g.CB.prototype.encrypt.call(this,Q,W)};var SC;bA.prototype.add=function(Q){if(this.pos+20>this.data.length){var W=new Uint8Array(this.data.length*2);W.set(this.data);this.data=W}for(;Q>31;)this.data[this.pos++]=SC[(Q&31)+32],Q>>=5;this.data[this.pos++]=SC[Q|0]};
bA.prototype.Rj=function(){return g.hy(this.data.subarray(0,this.pos))};
bA.prototype.reset=function(){this.pos=0};zs.prototype.w5=function(Q,W){var x=Math.pow(this.alpha,Q);this.B=W*(1-x)+x*this.B;this.U+=Q};
zs.prototype.iS=function(){return this.B/(1-Math.pow(this.alpha,this.U))};kh.prototype.w5=function(Q,W){for(var x=0;x<10;x++){var D=this.B[x],K=D+(x===0?Q:0),l=1*Math.pow(2,x);if(K<=l)break;D=Math.min(1,(K-l*.5)/D);for(K=0;K<16;K++)l=this.values[x*16+K]*D,this.values[(x+1)*16+K]+=l,this.B[x+1]+=l,this.values[x*16+K]-=l,this.B[x]-=l}D=x=0;K=8192;W>8192&&(x=Math.ceil(Math.log(W/8192)/Math.log(2)),D=8192*Math.pow(2,x-1),K=D*2);x+2>16?this.values[15]+=Q:(W=(W-D)/(K-D),this.values[x]+=Q*(1-W),this.values[x+1]+=Q*W);this.B[0]+=Q};
kh.prototype.iS=function(){var Q=Q===void 0?this.U:Q;var W=W===void 0?.02:W;var x=x===void 0?.98:x;for(var D=this.D,K=0;K<16;K++)D[K]=this.values[K];K=this.B[0];for(var l=1;l<11;l++){var M=this.B[l];if(M===0)break;for(var w=Math.min(1,(Q-K)/M),S=0;S<16;S++)D[S]+=this.values[l*16+S]*w;K+=M*w;if(w<1)break}for(l=Q=M=0;l<16;l++){w=M+D[l]/K;Q+=Math.max(0,Math.min(w,x)-Math.max(M,W))*(l>0?8192*Math.pow(2,l-1):0);if(w>x)break;M=w}return Q/(x-W)};X4.prototype.w5=function(Q,W){Q=Math.min(this.B,Math.max(1,Math.round(Q*this.resolution)));Q+this.U>=this.B&&(this.D=!0);for(;Q--;)this.values[this.U]=W,this.U=(this.U+1)%this.B;this.jM=!0};
X4.prototype.percentile=function(Q){var W=this;if(!this.D&&this.U===0)return 0;this.jM&&(g.bZ(this.L,function(x,D){return W.values[x]-W.values[D]}),this.jM=!1);
return this.values[this.L[Math.round(Q*((this.D?this.B:this.U)-1))]]||0};
X4.prototype.iS=function(){return this.X?(this.percentile(this.N-this.X)+this.percentile(this.N)+this.percentile(this.N+this.X))/3:this.percentile(this.N)};g.n(oO,g.N);oO.prototype.s3=function(){var Q;(Q=this.g7)==null||Q.start();if(JC(this)&&this.policy.S){var W;(W=this.L_)==null||W.gh()}};t_D.prototype.j=function(Q){return this.experiments.ij(Q)};g.n(Wma,g.N);var MBl="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),zL5={T5j:"caoe",nS7:"capsv",kA7:"cbrand",fL9:"cbr",J47:"cbrver",GA3:"cchip",M91:"ccappver",RHf:"ccrv",Y8f:"cfrmver",NmS:"c",fSp:"cver",kF3:"ctheme",K1Z:"cplayer",KCp:"cmodel",gR1:"cnetwork",slf:"cos",zU3:"cosver",WCp:"cplatform",NVp:"crqyear"};g.n(eC,g.N);g.R=eC.prototype;g.R.j=function(Q){return this.experiments.ij(Q)};
g.R.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
g.R.getVideoUrl=function(Q,W,x,D,K,l,M){W={list:W};x&&(K?W.time_continue=x:W.t=x);x=M?"music.youtube.com":g.Zj(this);K=x==="www.youtube.com";!l&&D&&K?l="https://youtu.be/"+Q:g.$h(this)?(l="https://"+x+"/fire",W.v=Q):(l&&K?(l=this.protocol+"://"+x+"/shorts/"+Q,D&&(W.feature="share")):(l=this.protocol+"://"+x+"/watch",W.v=Q),LX&&(Q=tO5())&&(W.ebc=Q));return g.ya(l,W)};
g.R.getVideoEmbedCode=function(Q,W,x,D){W="https://"+g.Zj(this)+"/embed/"+W;D&&(W=g.ya(W,{list:D}));D=x.width;x=x.height;W=Fa(W);Q=Fa(Q!=null?Q:"YouTube video player");return'<iframe width="'+D+'" height="'+x+'" src="'+W+'" title="'+(Q+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
g.R.supportsGaplessAudio=function(){return g.UC&&!LX&&gm()>=74||g.gr&&g.nP(68)?!0:!1};
g.R.supportsGaplessShorts=function(){return!this.j("html5_enable_short_gapless")||this.eZ||g.nX?!1:!0};
g.R.getPlayerType=function(){return this.B.cplayer};
g.R.jk=function(){return this.kX};
var uc1=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],se5=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Xj2=[19];var WA={},VBF=(WA["140"]={numChannels:2},WA["141"]={numChannels:2},WA["251"]={audioSampleRate:48E3,numChannels:2},WA["774"]={audioSampleRate:48E3,numChannels:2},WA["380"]={numChannels:6},WA["328"]={numChannels:6},WA["773"]={},WA),xT={},Yj5=(xT["1"]='video/mp4; codecs="av01.0.08M.08"',xT["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',xT["1e"]='video/mp4; codecs="av01.0.08M.08"',xT["9"]='video/webm; codecs="vp9"',xT["("]='video/webm; codecs="vp9"',xT["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',
xT.h='video/mp4; codecs="avc1.64001e"',xT.H='video/mp4; codecs="avc1.64001e"',xT.o='audio/webm; codecs="opus"',xT.a='audio/mp4; codecs="mp4a.40.2"',xT.ah='audio/mp4; codecs="mp4a.40.2"',xT.mac3='audio/mp4; codecs="ac-3"; channels=6',xT.meac3='audio/mp4; codecs="ec-3"; channels=6',xT.i='audio/mp4; codecs="iamf.001.001.Opus"',xT),DZ={},nea=(DZ["337"]={width:3840,height:2160,bitrate:3E7,fps:30},DZ["336"]={width:2560,height:1440,bitrate:15E6,fps:30},DZ["335"]={width:1920,height:1080,bitrate:75E5,fps:30},
DZ["702"]={width:7680,height:4320,bitrate:4E7,fps:60},DZ["701"]={width:3840,height:2160,bitrate:2E7,fps:60},DZ["700"]={width:2560,height:1440,bitrate:1E7,fps:60},DZ["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},DZ["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},DZ["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},DZ["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},
DZ["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},DZ["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},DZ["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},DZ["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},DZ["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},DZ["315"]={width:3840,height:2160,bitrate:2E7,fps:60},DZ["308"]={width:2560,
height:1440,bitrate:1E7,fps:60},DZ["303"]={width:1920,height:1080,bitrate:5E6,fps:60},DZ["302"]={width:1280,height:720,bitrate:25E5,fps:60},DZ["299"]={width:1920,height:1080,bitrate:75E5,fps:60},DZ["298"]={width:1280,height:720,bitrate:35E5,fps:60},DZ["571"]={width:7680,height:4320,bitrate:3E7,fps:60},DZ["401"]={width:3840,height:2160,bitrate:15E6,fps:60},DZ["400"]={width:2560,height:1440,bitrate:75E5,fps:60},DZ["399"]={width:1920,height:1080,bitrate:2E6,fps:60},DZ["398"]={width:1280,height:720,bitrate:1E6,
fps:60},DZ["397"]={width:854,height:480,bitrate:4E5,fps:30},DZ["396"]={width:640,height:360,bitrate:25E4,fps:30},DZ["787"]={width:1080,height:608,bitrate:2E5,fps:30},DZ["788"]={width:1080,height:608,bitrate:4E5,fps:30},DZ["572"]={width:7680,height:4320,bitrate:3E7,fps:60},DZ["555"]={width:3840,height:2160,bitrate:15E6,fps:60},DZ["554"]={width:2560,height:1440,bitrate:75E5,fps:60},DZ["553"]={width:1920,height:1080,bitrate:2E6,fps:60},DZ["552"]={width:1280,height:720,bitrate:1E6,fps:60},DZ["551"]={width:854,
height:480,bitrate:4E5,fps:30},DZ["550"]={width:640,height:360,bitrate:25E4,fps:30},DZ["313"]={width:3840,height:2160,bitrate:8E6,fps:30},DZ["271"]={width:2560,height:1440,bitrate:4E6,fps:30},DZ["248"]={width:1920,height:1080,bitrate:2E6,fps:30},DZ["247"]={width:1280,height:720,bitrate:15E5,fps:30},DZ["244"]={width:854,height:480,bitrate:52E4,fps:30},DZ["243"]={width:640,height:360,bitrate:28E4,fps:30},DZ["137"]={width:1920,height:1080,bitrate:4E6,fps:30},DZ["136"]={width:1280,height:720,bitrate:3E6,
fps:30},DZ["135"]={width:854,height:480,bitrate:1E6,fps:30},DZ["385"]={width:1920,height:1080,bitrate:6503313,fps:60},DZ["376"]={width:1280,height:720,bitrate:5706960,fps:60},DZ["384"]={width:1280,height:720,bitrate:3660979,fps:60},DZ["225"]={width:1280,height:720,bitrate:5805E3,fps:30},DZ["224"]={width:1280,height:720,bitrate:453E4,fps:30},DZ["145"]={width:1280,height:720,bitrate:2682052,fps:30},DZ);g.R=Rf.prototype;g.R.getInfo=function(){return this.B};
g.R.KI=function(){return null};
g.R.iB=function(){var Q=this.KI();return Q?(Q=g.lY(Q.Db),Number(Q.expire)):NaN};
g.R.dD=function(){};
g.R.getHeight=function(){return this.B.video.height};JKF.prototype.build=function(){a2Q(this);var Q=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],W={};a:if(this.B)var x=this.B;else{x="";for(var D=g.V(this.D),K=D.next();!K.done;K=D.next())if(K=K.value,K.RW){if(K.RW.getIsDefault()){x=K.RW.getId();break a}x||(x=K.RW.getId())}}D=g.V(this.D);for(K=D.next();!K.done;K=D.next())if(K=K.value,this.X||!K.RW||K.RW.getId()===x)W[K.itag]||(W[K.itag]=[]),W[K.itag].push(K);x=g.V(this.U);for(D=x.next();!D.done;D=x.next())if(D=D.value,K=W[D.B]){K=g.V(K);for(var l=K.next();!l.done;l=
K.next()){var M=Q,w=M.push;l=l.value;var S="#EXT-X-MEDIA:TYPE=AUDIO,",b="YES",z="audio";if(l.RW){z=l.RW;var k=z.getId().split(".")[0];k&&(S+='LANGUAGE="'+k+'",');(this.B?this.B===z.getId():z.getIsDefault())||(b="NO");z=z.getName()}k="";D!==null&&(k=D.itag.toString());k=SQ(this,l.url,k);S=S+('NAME="'+z+'",DEFAULT='+(b+',AUTOSELECT=YES,GROUP-ID="'))+(hL5(l,D)+'",URI="'+(k+'"'));w.call(M,S)}}x=g.V(this.L);for(D=x.next();!D.done;D=x.next())D=D.value,K=Cg5,D=(M=D.RW)?'#EXT-X-MEDIA:URI="'+SQ(this,D.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+K+'",LANGUAGE="'+M.getId()+'",NAME="'+M.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,D&&Q.push(D);x=this.L.length>0?Cg5:void 0;D=g.V(this.U);for(K=D.next();!K.done;K=D.next())K=K.value,w=W[K.B],M=void 0,((M=w)==null?void 0:M.length)>0&&(M=K,w=w[0],w="#EXT-X-STREAM-INF:BANDWIDTH="+(M.bitrate+w.bitrate)+',CODECS="'+(M.codecs+","+w.codecs+'",RESOLUTION=')+(M.width+"x"+M.height+',AUDIO="')+(hL5(w,M)+'",')+(x?'SUBTITLES="'+x+'",':"")+"CLOSED-CAPTIONS=NONE",M.fps>1&&(w+=
",FRAME-RATE="+M.fps),M.Mo&&(w+=",VIDEO-RANGE="+M.Mo),Q.push(w),Q.push(SQ(this,K.url,"")));return Q.join("\n")};
var Cg5="text";g.n(bb,Rf);bb.prototype.iB=function(){return this.expiration};
bb.prototype.KI=function(){if(!this.Db||this.Db.d7()){var Q=this.U.build();Q="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(Q);this.Db=new Vy(Q)}return this.Db};g.n(sN,Rf);sN.prototype.KI=function(){return new Vy(this.U.cV())};
sN.prototype.dD=function(){this.U=dQ(this.U)};g.n(zQ,Rf);zQ.prototype.KI=function(){return new Vy(this.U)};var KE={},I25=(KE.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",KE.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",KE.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",KE);g.R=g.kS.prototype;g.R.getId=function(){return this.id};
g.R.getName=function(){return this.name};
g.R.isServable=function(){return this.B};
g.R.cV=function(){return this.url};
g.R.getXtags=function(){return this.xtags};
g.R.toString=function(){return this.languageCode+": "+g.XS(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.R.yI=function(Q){return Q?this.toString()===Q.toString():!1};
g.R.ET=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var yK1={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},eLD={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},f2F=/^(\d*)_((\d*)_?(\d*))$/;var LmO={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},rK4={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var lh={},JjF=(lh.ALWAYS=1,lh.BY_REQUEST=3,lh.UNKNOWN=void 0,lh),jF={},pVY=(jF.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",jF.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",jF.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",jF.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",jF);var In1;
In1=function(Q){for(var W=Object.keys(Q),x={},D=0;D<W.length;D++){var K=W[D];typeof Q[K]==="function"&&(x[K]=Q[K])}var l=Object.keys(x);try{NJv(x)}catch(w){var M=w}return function(w,S){w=w===void 0?{}:w;if(M)throw M;for(var b=!1,z={},k=0;k<l.length;k++){var X=l[k],u=w[X],Y=(0,x[X])(u,S);if(typeof Y==="undefined")throw w=S&&S.type,Error("When called with an action of type "+(w?'"'+String(w)+'"':"(unknown type)")+', the slice reducer for key "'+X+'" 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.');z[X]=
Y;b=b||Y!==u}return(b=b||l.length!==Object.keys(w).length)?z:w}}({entities:function(Q,W){Q=Q===void 0?{}:Q;
return Ou4(Q,W)}});
g.xN=new XG;vW.prototype.toString=function(){return this.type+this.id};g.JQ.prototype.ue=function(Q){Q=Q||"hqdefault.jpg";var W=this.T[Q];if(W)return W;if(Q==="sddefault.jpg"||Q==="hq720.jpg"||Q==="maxresdefault.jpg")return W;if(this.B)return LO(this.Dp,this.B,Q)};
g.JQ.prototype.lk=function(){return this.Dp.getVideoUrl(this.videoId,this.playlistId)};g.p1.prototype.ue=function(Q){Q||(Q="hqdefault.jpg");var W=this.T[Q];return W?W:Q==="pop1.jpg"||Q==="pop2.jpg"||Q==="sddefault.jpg"||Q==="hq720.jpg"||Q==="maxresdefault.jpg"?W:LO(this.Dp,this.videoId,Q)};
g.p1.prototype.lk=function(Q){return this.watchUrl||this.Dp.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,Q)};var GQ=void 0;$6D("LMS",function(){return g.U(function(Q){return Q.return(g.d0())})});var UN;UN=0;g.oO2=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;$6D("LMDB",function(){var Q,W;return g.U(function(x){if(x.B==1)return g.A(x,g.Fi(),2);if(x.B!=3){Q=x.U;if(!Q)throw g.Ps("edd");return g.A(x,g.HW(Q),3)}W=x.U;return x.return(g.A4(W,["index","media","captions"],{mode:"readonly",dG:!0},function(D){var K={};D=[g.$D(D.objectStore("index"),{},function(l){K[l.cursor.key]=l.getValue();return g.I8(l)}),
cUh(D.objectStore("media")),cUh(D.objectStore("captions"))];return g.CX.all(D).then(function(l){var M=g.V(l);M.next();l=M.next().value;M=M.next().value;return{index:K,media:u_s(l||[]),captions:M}})}))})});g.n(BW,g.Rd);BW.prototype.U3=function(){this.B&&(this.B=this.B.onload=null);g.Rd.prototype.U3.call(this)};g.R=g.No.prototype;g.R.getHeight=function(){return this.height};
g.R.hd=xQ(2);g.R.VQ=function(){return this.frameCount};
g.R.isDefault=function(){return this.D.indexOf("default")!==-1};
g.R.isLoaded=function(Q){return this.loaded.has(Q)};
g.R.cV=function(Q){var W=this.N;W=W.replace("$N",this.D);W=W.replace("$L",this.level.toString());W=W.replace("$M",Q.toString());this.signature&&(W=g.ya(W,{sigh:this.signature}));return KD(W)};
g.R.r4=function(Q){var W=this.VQ()-1;return g.wS(this.B===0?Math.round(Q*this.frameCount/this.videoLength):Math.round(Q*1E3/this.B),0,W)};
g.R.bR=function(){return this.frameCount-1};
g.R.MX=function(){return this.frameCount?0:-1};
g.R.nM=function(){};g.n(cW,BW);cW.prototype.U=function(Q,W){var x=[];Q=Q.split("|");for(var D=Q[0],K=1;K<Q.length;K++){var l=this.L(K-1,D,Q[K],W);(this.G||l.getHeight()<180)&&x.push(l)}return x};
cW.prototype.L=function(Q,W,x,D){return new g.No(Q,W,x,D)};g.n(g0,g.No);g.R=g0.prototype;g.R.VQ=function(){return this.U.n9()};
g.R.r4=function(Q){var W=this.rows*this.columns*this.L,x=this.U,D=x.oQ();Q=x.GC(Q);return Q>D-W?-1:Q};
g.R.bR=function(){return this.U.oQ()};
g.R.MX=function(){return this.U.Ec()};
g.R.nM=function(Q){this.U=Q};g.n(y7,cW);y7.prototype.U=function(Q,W){return cW.prototype.U.call(this,"$N|"+Q,W)};
y7.prototype.L=function(Q,W,x){return new g0(Q,W,x,this.isLive)};var A3F=[],ON=new Set;g.n(g.f1,g.Rd);g.R=g.f1.prototype;
g.R.setData=function(Q){Q=Q||{};var W=Q.errordetail;W!=null&&(this.errorDetail=W);var x=Q.errorcode;x!=null?this.errorCode=x:Q.status==="fail"&&(this.errorCode="auth");var D=Q.reason;D!=null&&(this.errorReason=D);var K=Q.subreason;K!=null&&(this.J8=K);this.j("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=Q.cpn||(this.Dp.jk()?"r"+g.Cu(15):g.Cu(16)));this.Pt=D0(this.Dp.Pt,Q.livemonitor);J3v(this,Q);var l=Q.raw_player_response;if(l)this.tj=l;else{var M=Q.player_response;
M&&(l=JSON.parse(M))}if(this.j("html5_enable_ssap_entity_id")){var w=Q.cached_load;w&&(this.In=D0(this.In,w));if(!this.clientPlaybackNonce){var S=Q.cpn;S?(this.VO("ssei","shdc"),this.clientPlaybackNonce=S):this.clientPlaybackNonce=this.Dp.jk()?"r"+g.Cu(15):g.Cu(16)}}l&&(this.playerResponse=l);if(this.playerResponse){var b=this.playerResponse.annotations;if(b)for(var z=g.V(b),k=z.next();!k.done;k=z.next()){var X=k.value.playerAnnotationsUrlsRenderer;if(X){X.adsOnly&&(this.ez=!0);var u=X.loadPolicy;
u&&(this.annotationsLoadPolicy=JjF[u]);var Y=X.invideoUrl;Y&&(this.O3=KD(Y));break}}var v=this.playerResponse.attestation;v&&O$z(this,v);var J=this.playerResponse.cotn;J&&(this.cotn=J);var h=this.playerResponse.heartbeatParams;if(h){P8l(this)&&(this.uc=!0);var G=h.heartbeatToken;G&&(this.drmSessionId=h.drmSessionId||"",this.heartbeatToken=G,this.Bj=Number(h.intervalMilliseconds),this.Ud=Number(h.maxRetries),this.mO=!!h.softFailOnError,this.FF=!!h.useInnertubeHeartbeatsForDrm,this.EX=!0);this.heartbeatServerData=
h.heartbeatServerData;var H;this.h_=!((H=h.heartbeatAttestationConfig)==null||!H.requiresAttestation)}var I=this.playerResponse.messages;I&&QQv(this,I);var c=this.playerResponse.overlay;if(c){var O=c.playerControlsOverlayRenderer;if(O)if(xBD(this,O.controlBgHtml),O.mutedAutoplay){var T=g.e(O.mutedAutoplay,Bl7);if(T&&T.endScreen){var Ks=g.e(T.endScreen,$3C);Ks&&Ks.text&&(this.zr=g.od(Ks.text))}}else this.mutedAutoplay=!1}var Mz=this.playerResponse.playabilityStatus;if(Mz){var QF=Mz.backgroundability;
QF&&QF.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var f,t;if((f=Mz.offlineability)==null?0:(t=f.offlineabilityRenderer)==null?0:t.offlineable)this.offlineable=!0;var P=Mz.contextParams;P&&(this.contextParams=P);var Z=Mz.pictureInPicture;Z&&Z.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Mz.playableInEmbed&&(this.allowEmbed=!0);var c5=Mz.ypcClickwrap;if(c5){var vu=c5.playerLegacyDesktopYpcClickwrapRenderer,kF=c5.ypcRentalActivationRenderer;if(vu)this.Jx=vu.durationMessage||
"",this.eK=!0;else if(kF){var a1=kF.durationMessage;this.Jx=a1?g.od(a1):"";this.eK=!0}}var El=Mz.errorScreen;if(El){if(El.playerLegacyDesktopYpcTrailerRenderer){var D7=El.playerLegacyDesktopYpcTrailerRenderer;this.nK=D7.trailerVideoId||"";var uC=El.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var p=uC&&uC.ypcTrailerRenderer}else if(El.playerLegacyDesktopYpcOfferRenderer)D7=El.playerLegacyDesktopYpcOfferRenderer;else if(El.ypcTrailerRenderer){p=El.ypcTrailerRenderer;var a=p.fullVideoMessage;this.X_=
a?g.od(a):"";var d,q;this.nK=((d=g.e(p,IX7))==null?void 0:(q=d.videoDetails)==null?void 0:q.videoId)||""}D7&&(this.La=D7.itemTitle||"",D7.itemUrl&&(this.fU=D7.itemUrl),D7.itemBuyUrl&&(this.Nb=D7.itemBuyUrl),this.KU=D7.itemThumbnail||"",this.uR=D7.offerHeadline||"",this.jS=D7.offerDescription||"",this.UG=D7.offerId||"",this.Pg=D7.offerButtonText||"",this.nI=D7.offerButtonFormattedText||null,this.Tm=D7.overlayDurationMsec||NaN,this.X_=D7.fullVideoMessage||"",this.W9=!0);if(p){var m=g.e(p,IX7);if(m)this.m1=
{raw_player_response:m};else{var W5=g.e(p,Tle);this.m1=W5?Ds(W5):null}this.W9=!0}}}var l2=this.playerResponse.playbackTracking;if(l2){var jn=Q,B=V7(l2.googleRemarketingUrl);B&&(this.googleRemarketingUrl=B);var b2=V7(l2.youtubeRemarketingUrl);b2&&(this.youtubeRemarketingUrl=b2);var o1={},w4=V7(l2.ptrackingUrl);if(w4){var Av=PW(w4),XH=Av.oid;XH&&(this.Mh=XH);var Nk=Av.pltype;Nk&&(this.IG=Nk);var k8=Av.ptchn;k8&&(this.w2=k8);var fs=Av.ptk;fs&&(this.h3=encodeURIComponent(fs));var c1=Av.m;c1&&(this.W2=
c1)}var SE=V7(l2.qoeUrl);if(SE){for(var H6=g.lY(SE),fC=g.V(Object.keys(H6)),SD=fC.next();!SD.done;SD=fC.next()){var eh=SD.value,gl=H6[eh];H6[eh]=Array.isArray(gl)?gl.join(","):gl}this.ZF=H6;var fy=H6.cat;fy&&(this.j("html5_enable_qoe_cat_list")?this.zz=this.zz.concat(fy.split(",")):this.Vd=fy);var Vz=H6.live;Vz&&(this.PU=Vz);var b0=H6.drm_product;b0&&(this.P9=b0)}var H_=V7(l2.videostatsPlaybackUrl);if(H_){var kV=PW(H_),U7=kV.adformat;if(U7){jn.adformat=U7;var U1=this.C(),qM=Z$v(U7,this.FJ,U1.N,U1.G);
qM&&(this.adFormat=qM)}var hG=kV.aqi;hG&&(jn.ad_query_id=hG);var tm=kV.autoplay;tm&&(this.g5=tm=="1",this.TN=tm=="1",Da(this,"vss"));var Zf=kV.autonav;Zf&&(this.isAutonav=Zf=="1");var KP=kV.delay;KP&&(this.Y6=WZ(KP));var C8=kV.ei;C8&&(this.eventId=C8);if(kV.adcontext||U7)this.g5=!0,Da(this,"ad");var mg=kV.feature;mg&&(this.HF=mg);var Xf=kV.list;Xf&&(this.playlistId=Xf);var vT=kV.of;vT&&(this.VW=vT);var CS=kV.osid;CS&&(this.osid=CS);var Jh=kV.referrer;Jh&&(this.referrer=Jh);var ls=kV.sdetail;ls&&(this.Hg=
ls);var jZ=kV.ssrt;jZ&&(this.mD=jZ=="1");var jP=kV.subscribed;jP&&(this.subscribed=jP=="1",this.G.subscribed=jP);var Mc=kV.uga;Mc&&(this.userGenderAge=Mc);var pS=kV.upt;pS&&(this.Wg=pS);var hh=kV.vm;hh&&(this.videoMetadata=hh);o1.playback=kV}var aU=V7(l2.videostatsWatchtimeUrl);if(aU){var Gl=PW(aU),dg=Gl.ald;dg&&(this.G4=dg);o1.watchtime=Gl}var i9=V7(l2.atrUrl);if(i9){var gG=PW(i9);o1.atr=gG}var J2=V7(l2.engageUrl);if(J2){var y9=PW(J2);o1.engage=y9}this.X$=o1;if(l2.promotedPlaybackTracking){var Zw=
l2.promotedPlaybackTracking;Zw.startUrls&&(this.gr=Zw.startUrls);Zw.firstQuartileUrls&&(this.vy=Zw.firstQuartileUrls);Zw.secondQuartileUrls&&(this.ju=Zw.secondQuartileUrls);Zw.thirdQuartileUrls&&(this.Gq=Zw.thirdQuartileUrls);Zw.completeUrls&&(this.LI=Zw.completeUrls);Zw.engagedViewUrls&&(Zw.engagedViewUrls.length>1&&g.Bp(new g.Lw("There are more than one engaged_view_urls.")),this.lF=Zw.engagedViewUrls[0])}}var Ro=this.playerResponse.playerCueRanges;Ro&&Ro.length>0&&(this.cueRanges=Ro);var Ah=this.playerResponse.playerCueRangeSet;
Ah&&g.EN(this,Ah);a:{var wK=this.playerResponse.adPlacements;if(wK)for(var HT=g.V(wK),SP=HT.next();!SP.done;SP=HT.next()){var Uw=void 0,qN=void 0,BT=(Uw=SP.value.adPlacementRenderer)==null?void 0:(qN=Uw.renderer)==null?void 0:qN.videoAdTrackingRenderer;if(BT){var $U=BT;break a}}$U=null}var bs=$U;l2&&l2.promotedPlaybackTracking&&bs&&g.Bp(new g.Lw("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var nK;if(!(nK=bs))a:{for(var IU=g.V(this.playerResponse.adSlots||[]),
s$=IU.next();!s$.done;s$=IU.next()){var zi=g.e(s$.value,cD);if(zi===void 0||!pQF(zi))break;var m$=void 0,e4=(m$=zi.fulfillmentContent)==null?void 0:m$.fulfilledLayout,NN=g.e(e4,A3);if(NN&&aQ(NN)){nK=!0;break a}}nK=!1}nK&&(this.q8=!0);var cT=this.playerResponse.playerAds;if(cT)for(var fQ=Q,gg=g.V(cT),VV=gg.next();!VV.done;VV=gg.next()){var yy=VV.value;if(yy){var ee=yy.playerLegacyDesktopWatchAdsRenderer;if(ee){var h2=ee.playerAdParams;if(h2){h2.autoplay=="1"&&(this.TN=this.g5=!0);this.YV=h2.encodedAdSafetyReason||
null;h2.showContentThumbnail!==void 0&&(this.TH=!!h2.showContentThumbnail);fQ.enabled_engage_types=h2.enabledEngageTypes;break}}}}var vV=this.playerResponse.playerConfig;if(vV){var B0=vV.manifestlessWindowedLiveConfig;if(B0){var fS=Number(B0.minDvrSequence),kn=Number(B0.maxDvrSequence),P3=Number(B0.minDvrMediaTimeMs),v3=Number(B0.maxDvrMediaTimeMs),Xl=Number(B0.startWalltimeMs);fS&&(this.bG=fS);P3&&(this.X3=P3/1E3,this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&MJ(this)&&(this.xg=P3/
1E3));kn&&(this.xS=kn);v3&&(this.WN=v3/1E3,this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&MJ(this)&&(this.t_=v3/1E3));Xl&&(this.yA=Xl/1E3);(fS||P3)&&(kn||v3)&&(this.allowLiveDvr=this.isLivePlayback=this.LS=!0,this.Nr=!1)}var $l=vV.daiConfig;if($l){if($l.enableDai){this.It=!0;var CK=$l.enableServerStitchedDai;CK&&(this.enableServerStitchedDai=CK);var ZR=$l.enablePreroll;ZR&&(this.enablePreroll=ZR)}var LQ;if($l.daiType==="DAI_TYPE_SS_DISABLED"||((LQ=$l.debugInfo)==null?0:LQ.isDisabledUnpluggedChannel))this.zQ=
!0;$l.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.d2=!0)}var RB=vV.audioConfig;if(RB){var N1=RB.loudnessDb;N1!=null&&(this.wx=N1);var V9v=RB.trackAbsoluteLoudnessLkfs;V9v!=null&&(this.nG=V9v);var PL4=RB.loudnessTargetLkfs;PL4!=null&&(this.loudnessTargetLkfs=PL4);RB.audioMuted&&(this.Wz=!0);RB.muteOnStart&&(this.kM=!0);var V3=RB.loudnessNormalizationConfig;if(V3){V3.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);V3.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=
!0);var vW5=V3.minimumLoudnessTargetLkfs;vW5!=null&&(this.minimumLoudnessTargetLkfs=vW5);var CLz=V3.maxStatefulTimeThresholdSec;CLz!=null&&(this.maxStatefulTimeThresholdSec=CLz)}this.j("web_player_audio_playback_from_audio_config")&&RB.playAudioOnly&&(this.YY=!0)}var YEF=vV.playbackEndConfig;if(YEF){var Jo5=YEF.endSeconds,pdl=YEF.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(Jo5&&(this.endSeconds=Jo5),pdl&&(this.limitedPlaybackDurationInSeconds=pdl))}var bj=vV.fairPlayConfig;if(bj){var htv=
bj.certificate;htv&&(this.I5=w5(htv));var aa2=Number(bj.keyRotationPeriodMs);aa2>0&&(this.s7=aa2);var G4a=Number(bj.keyPrefetchMarginMs);G4a>0&&(this.Kq=G4a)}var TC=vV.playbackStartConfig;if(TC){this.lW=Number(TC.startSeconds);var dfQ=TC.liveUtcStartSeconds,iqs=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;dfQ&&!iqs&&(this.liveUtcStartSeconds=Number(dfQ));var ncF=TC.startPosition;if(ncF){var Aos=ncF.utcTimeMillis;Aos&&!iqs&&(this.liveUtcStartSeconds=Number(Aos)*.001);var HqD=ncF.streamTimeMillis;
HqD&&(this.IU=Number(HqD)*.001)}this.progressBarStartPosition=TC.progressBarStartPosition;this.progressBarEndPosition=TC.progressBarEndPosition}else{var Vxh=vV.skippableSegmentsConfig;if(Vxh){var Uf5=Vxh.introSkipDurationMs;Uf5&&(this.YJ=Number(Uf5)/1E3);var qXa=Vxh.outroSkipDurationMs;qXa&&(this.aA=Number(qXa)/1E3)}}var P52=vV.skippableIntroConfig;if(P52){var BZD=Number(P52.startMs),$fv=Number(P52.endMs);isNaN(BZD)||isNaN($fv)||(this.Qx=BZD,this.gH=$fv)}var IaQ=vV.streamSelectionConfig;IaQ&&(this.UT=
Number(IaQ.maxBitrate));var mfa=vV.vrConfig;mfa&&(this.RO=mfa.partialSpherical=="1");var PD=vV.webDrmConfig;if(PD){PD.skipWidevine&&(this.OE=!0);var NZv=PD.widevineServiceCert;NZv&&(this.BM=w5(NZv));PD.useCobaltWidevine&&(this.useCobaltWidevine=!0);PD.startWithNoQualityConstraint&&(this.A4=!0)}var L8=vV.mediaCommonConfig;if(L8){var sF=L8.dynamicReadaheadConfig;if(sF){this.maxReadAheadMediaTimeMs=sF.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=sF.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=
sF.readAheadGrowthRateMs||NaN;var co5,gWs=L8==null?void 0:(co5=L8.mediaUstreamerRequestConfig)==null?void 0:co5.videoPlaybackUstreamerConfig;gWs&&(this.DE=w5(gWs));var vca=L8==null?void 0:L8.sabrContextUpdates;if(vca&&vca.length>0)for(var yos=g.V(vca),C54=yos.next();!C54.done;C54=yos.next()){var X1=C54.value;if(X1.type&&X1.value){var BT5={type:X1.type,scope:X1.scope,value:w5(X1.value)||void 0,sendByDefault:X1.sendByDefault};this.sabrContextUpdates.set(X1.type,BT5)}}}var etQ=L8.serverPlaybackStartConfig;
etQ&&(this.serverPlaybackStartConfig=etQ);L8.useServerDrivenAbr&&(this.qH=!0);var fav=L8.requestPipeliningConfig;fav&&(this.requestPipeliningConfig=fav)}var Zqa=vV.inlinePlaybackConfig;Zqa&&(this.p6=!!Zqa.showAudioControls);var zt=vV.embeddedPlayerConfig;if(zt){this.embeddedPlayerConfig=zt;var Ji5=zt.embeddedPlayerMode;if(Ji5){var Lhs=this.C();Lhs.KS=Ji5;Lhs.D=Ji5==="EMBEDDED_PLAYER_MODE_PFL"}var ro4=zt.permissions;ro4&&(this.allowImaMonetization=!!ro4.allowImaMonetization)}var TZF=vV.ssapConfig;
TZF&&(this.Uw=TZF.ssapPrerollEnabled||!1);var kp=vV.webPlayerConfig;kp&&(kp.gatewayExperimentGroup&&(this.gatewayExperimentGroup=kp.gatewayExperimentGroup),kp.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var rx=this.playerResponse.streamingData;if(rx){var pIQ=rx.formats;if(pIQ){for(var vD=[],Oq2=g.V(pIQ),h$a=Oq2.next();!h$a.done;h$a=Oq2.next()){var a_F=h$a.value;vD.push(a_F.itag+"/"+a_F.width+"x"+a_F.height)}this.Ks=vD.join(",");vD=[];for(var EW5=g.V(pIQ),GmF=EW5.next();!GmF.done;GmF=EW5.next()){var CU=
GmF.value,J3={itag:CU.itag,type:CU.mimeType,quality:CU.quality},Fhz=CU.url;Fhz&&(J3.url=Fhz);var Xq=iQ(CU),$1q=Xq.l9,I9F=Xq.fG,m1p=Xq.s;Xq.G$&&(J3.url=$1q,J3.sp=I9F,J3.s=m1p);vD.push(g.gv(J3))}this.ra=vD.join(",")}var dZ5=rx.hlsFormats;if(dZ5){var t9D=vV||null,oS={};if(t9D){var i0h=t9D.audioPairingConfig;if(i0h&&i0h.pairs)for(var QYO=g.V(i0h.pairs),Ai4=QYO.next();!Ai4.done;Ai4=QYO.next()){var Wq2=Ai4.value,H0v=Wq2.videoItag;oS[H0v]||(oS[H0v]=[]);oS[H0v].push(Wq2.audioItag)}}for(var xdD={},Dda=g.V(dZ5),
UZ1=Dda.next();!UZ1.done;UZ1=Dda.next()){var Kq4=UZ1.value;xdD[Kq4.itag]=Kq4.bitrate}for(var l8s=[],jY5=g.V(dZ5),qE2=jY5.next();!qE2.done;qE2=jY5.next()){var W_=qE2.value,pp={itag:W_.itag,type:W_.mimeType,url:W_.url,bitrate:W_.bitrate,width:W_.width,height:W_.height,fps:W_.fps},uj=W_.audioTrack;if(uj){var MVD=uj.displayName;MVD&&(pp.name=MVD,pp.audio_track_id=uj.id,uj.audioIsDefault&&(pp.is_default="1"))}if(W_.drmFamilies){for(var R9s=[],w9F=g.V(W_.drmFamilies),BXs=w9F.next();!BXs.done;BXs=w9F.next())R9s.push(oI[BXs.value]);
pp.drm_families=R9s.join(",")}var Yp=oS[W_.itag];if(Yp&&Yp.length){pp.audio_itag=Yp.join(",");var SG5=xdD[Yp[0]];SG5&&(pp.bitrate+=SG5)}var baa=$NF(W_);baa&&(pp.eotf=baa);W_.audioChannels&&(pp.audio_channels=W_.audioChannels);l8s.push(g.gv(pp))}this.hlsFormats=l8s.join(",")}var $ZO=rx.licenseInfos;if($ZO&&$ZO.length>0){for(var sYn={},z9D=g.V($ZO),I_l=z9D.next();!I_l.done;I_l=z9D.next()){var kA4=I_l.value,X9n=kA4.drmFamily,o2F=kA4.url;X9n&&o2F&&(sYn[oI[X9n]]=o2F)}this.Qp=sYn}var ue1=rx.drmParams;ue1&&
(this.drmParams=ue1);var YGQ=rx.dashManifestUrl;YGQ&&(this.gE=g.ya(YGQ,{cpn:this.clientPlaybackNonce}));var n2l=rx.hlsManifestUrl;n2l&&(this.hlsvp=n2l);var VVD=rx.probeUrl;VVD&&(this.probeUrl=KD(g.ya(VVD,{cpn:this.clientPlaybackNonce})));var Pn5=rx.serverAbrStreamingUrl;Pn5&&(this.IH=new g.JW(Pn5,!0))}var v21=this.playerResponse.trackingParams;v21&&(this.fS=v21);var rl=this.playerResponse.videoDetails;if(rl){var hP=Q,mZh=rl.videoId;mZh&&(this.videoId=mZh,hP.video_id||(hP.video_id=mZh));var Cnz=rl.channelId;
Cnz&&(this.G.uid=Cnz.substring(2));var NXD=rl.title;NXD&&(this.title=NXD,hP.title||(hP.title=NXD));var cin=rl.lengthSeconds;cin&&(this.lengthSeconds=Number(cin),hP.length_seconds||(hP.length_seconds=cin));var Jch=rl.keywords;Jch&&(this.keywords=dBD(Jch));var gcs=rl.channelId;gcs&&(this.ZS=gcs,hP.ucid||(hP.ucid=gcs));var p92=rl.viewCount;p92&&(this.rawViewCount=Number(p92));var yis=rl.author;yis&&(this.author=yis,hP.author||(hP.author=yis));var h9Q=rl.shortDescription;h9Q&&(this.shortDescription=h9Q);
var a8Q=rl.isCrawlable;a8Q&&(this.isListed=a8Q);var GAa=rl.musicVideoType;GAa&&(this.musicVideoType=GAa);var e$2=rl.isLive;e$2!=null&&(this.isLivePlayback=e$2);if(e$2||rl.isUpcoming)this.isPremiere=!rl.isLiveContent;var dda=rl.thumbnail;dda&&(this.T=n1(dda));var ia4=rl.isExternallyHostedPodcast;ia4&&(this.isExternallyHostedPodcast=ia4);var f_2=rl.viewerLivestreamJoinPosition;if(f_2==null?0:f_2.utcTimeMillis)this.DH=WZ(f_2.utcTimeMillis);var Ac5=vV||null,Z0l=Q;rl.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=
!0);rl.isUpcoming&&(this.isUpcoming=!0);if(rl.isPostLiveDvr){this.Nr=!0;var Ha2=rl.latencyClass;Ha2&&(this.latencyClass=pVY[Ha2]||"UNKNOWN");rl.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var LOn=!1;this.Pt?(this.allowLiveDvr=Dj()?!0:Ek&&re<5?!1:!0,this.isLivePlayback=!0):rl.isLive?(Z0l.livestream="1",this.allowLiveDvr=rl.isLiveDvrEnabled?Dj()?!0:Ek&&re<5?!1:!0:!1,this.partnerId=27,LOn=!0):rl.isUpcoming&&(LOn=!0);if(rl.isLive||this.Pt&&this.j("html5_parse_live_monitor_flags")){rl.isLowLatencyLiveStream&&
(this.isLowLatencyLiveStream=!0);var Ud1=rl.latencyClass;Ud1&&(this.latencyClass=pVY[Ud1]||"UNKNOWN");var qGn=rl.liveChunkReadahead;qGn&&(this.liveChunkReadahead=qGn);var O2=Ac5&&Ac5.livePlayerConfig;if(O2){O2.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);O2.hasSubfragmentedWebm&&(this.RZ=!0);O2.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var Bzv=O2.liveExperimentalContentId;Bzv&&(this.liveExperimentalContentId=Number(Bzv));var $dQ=O2.isLiveHeadPlayable;this.j("html5_live_head_playable")&&
$dQ!=null&&(this.isLiveHeadPlayable=$dQ)}}LOn&&(this.isLivePlayback=!0,Z0l.adformat&&Z0l.adformat.split("_")[1]!=="8"||this.KS.push("heartbeat"),this.EX=!0)}var I8F=rl.isPrivate;I8F!==void 0&&(this.isPrivate=D0(this.isPrivate,I8F))}if(Mz){var mdl=rl||null,Nz4=!1,E2=Mz.errorScreen;Nz4=E2&&(E2.playerLegacyDesktopYpcOfferRenderer||E2.playerLegacyDesktopYpcTrailerRenderer||E2.ypcTrailerRenderer)?!0:mdl&&mdl.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Mz.status);if(!Nz4){this.errorCode=
mEl(Mz.errorCode)||"auth";var n2=E2&&E2.playerErrorMessageRenderer;if(n2){this.playerErrorMessageRenderer=n2;var cc5=n2.reason;cc5&&(this.errorReason=g.od(cc5));var rih=n2.subreason;rih&&(this.J8=g.od(rih),this.xF=rih)}else this.errorReason=Mz.reason||null;var TXO=Mz.status;if(TXO==="LOGIN_REQUIRED")this.errorDetail="1";else if(TXO==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(TXO==="AGE_CHECK_REQUIRED"){var g2F=Mz.errorScreen,ycQ=g2F&&g2F.playerKavRenderer;this.errorDetail=ycQ&&ycQ.kavUrl?
"4":"3"}else this.errorDetail=Mz.isBlockedInRestrictedMode?"5":"0"}}var e9s=this.playerResponse.interstitialPods;e9s&&tB4(this,e9s);this.O3&&this.eventId&&(this.O3=MO(this.O3,{ei:this.eventId}));var O0v=this.playerResponse.captions;if(O0v&&O0v.playerCaptionsTracklistRenderer)a:{var aB=O0v.playerCaptionsTracklistRenderer;this.captionTracks=[];if(aB.captionTracks)for(var f81=g.V(aB.captionTracks),EcO=f81.next();!EcO.done;EcO=f81.next()){var GJ=EcO.value,Za4=hma(GJ.baseUrl);if(!Za4)break a;var FOs={is_translateable:!!GJ.isTranslatable,
languageCode:GJ.languageCode,languageName:GJ.name&&g.od(GJ.name),url:Za4,vss_id:GJ.vssId,kind:GJ.kind};FOs.name=GJ.trackName;FOs.displayName=GJ.name&&g.od(GJ.name);this.captionTracks.push(new g.kS(FOs))}this.Hy=aB.audioTracks||[];this.rj=aB.defaultAudioTrackIndex||0;this.Mb=[];if(aB.translationLanguages)for(var Lq1=g.V(aB.translationLanguages),txF=Lq1.next();!txF.done;txF=Lq1.next()){var FG=txF.value,oK={};oK.languageCode=FG.languageCode;oK.languageName=g.od(FG.languageName);if(FG.translationSourceTrackIndices){oK.translationSourceTrackIndices=
[];for(var rcQ=g.V(FG.translationSourceTrackIndices),QZD=rcQ.next();!QZD.done;QZD=rcQ.next())oK.translationSourceTrackIndices.push(QZD.value)}if(FG.excludeAudioTrackIndices){oK.excludeAudioTrackIndices=[];for(var Tz4=g.V(FG.excludeAudioTrackIndices),W_1=Tz4.next();!W_1.done;W_1=Tz4.next())oK.excludeAudioTrackIndices.push(W_1.value)}this.Mb.push(oK)}this.ir=[];if(aB.defaultTranslationSourceTrackIndices)for(var Oas=g.V(aB.defaultTranslationSourceTrackIndices),x9F=Oas.next();!x9F.done;x9F=Oas.next())this.ir.push(x9F.value);
this.wX=!!aB.contribute&&!!aB.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.lW=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&WFa(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var E2n;this.compositeLiveIngestionOffsetToken=
(E2n=this.playerResponse.playbackTracking)==null?void 0:E2n.compositeLiveIngestionOffsetToken;var FqO;this.compositeLiveStatusToken=(FqO=this.playerResponse.playbackTracking)==null?void 0:FqO.compositeLiveStatusToken}L1(this,Q);Q.queue_info&&(this.queueInfo=Q.queue_info);var tVO=Q.hlsdvr;tVO!=null&&(this.allowLiveDvr=Number(tVO)===1?Dj()?!0:Ek&&re<5?!1:!0:!1);this.adQueryId=Q.ad_query_id||null;this.YV||(this.YV=Q.encoded_ad_safety_reason||null);this.iK=Q.agcid||null;this.oE=Q.ad_id||null;this.sR=
Q.ad_sys||null;this.b0=Q.encoded_ad_playback_context||null;this.Wz=D0(this.Wz,Q.infringe||Q.muted);this.EL=Q.authkey;this.NJ=Q.authuser;this.mutedAutoplay=D0(this.mutedAutoplay,Q&&Q.playmuted);this.mutedAutoplayDurationMode=ly(this.mutedAutoplayDurationMode,Q&&Q.muted_autoplay_duration_mode);this.IE=D0(this.IE,Q&&Q.mutedautoplay);var VJ=Q.length_seconds;VJ&&(this.lengthSeconds=typeof VJ==="string"?WZ(VJ):VJ);if(this.isAd()||this.Tc||!g.SY(g.mr(this.Dp)))this.endSeconds=ly(this.endSeconds,this.aA||
Q.end||Q.endSeconds);else{var NT5=g.mr(this.Dp),Pf=this.lengthSeconds;switch(NT5){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Pf>30?this.limitedPlaybackDurationInSeconds=30:Pf<30&&Pf>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=Pf*.2}}this.fS=jY(this.fS,Q.itct);this.V5=D0(this.V5,Q.noiba);this.TQ=D0(this.TQ,Q.is_live_destination);this.isLivePlayback=D0(this.isLivePlayback,Q.live_playback);
this.enableServerStitchedDai=this.enableServerStitchedDai&&this.lN();Q.isUpcoming&&(this.isUpcoming=D0(this.isUpcoming,Q.isUpcoming));this.Nr=D0(this.Nr,Q.post_live_playback);this.LS&&(this.Nr=!1);this.isMdxPlayback=D0(this.isMdxPlayback,Q.mdx);var vf=Q.mdx_control_mode;vf&&(this.mdxControlMode=typeof vf==="number"?vf:WZ(vf));this.isInlinePlaybackNoAd=D0(this.isInlinePlaybackNoAd,Q.is_inline_playback_no_ad);this.Sk=ly(this.Sk,Q.reload_count);this.reloadReason=jY(this.reloadReason,Q.reload_reason);
this.TH=D0(this.TH,Q.show_content_thumbnail);this.WU=D0(this.WU,Q.utpsa);this.cycToken=Q.cyc||null;this.Wy=Q.tkn||null;var Q6a=YS(Q);Object.keys(Q6a).length>0&&(this.T=Q6a);this.pS=jY(this.pS,Q.vvt);this.mdxEnvironment=jY(this.mdxEnvironment,Q.mdx_environment);Q.source_container_playlist_id&&(this.sourceContainerPlaylistId=Q.source_container_playlist_id);Q.serialized_mdx_metadata&&(this.serializedMdxMetadata=Q.serialized_mdx_metadata);this.jm=Q.osig;this.eventId||(this.eventId=Q.eventid);this.osid||
(this.osid=Q.osid);this.playlistId=jY(this.playlistId,Q.list);Q.index&&(this.playlistIndex=this.playlistIndex===void 0?ly(0,Q.index):ly(this.playlistIndex,Q.index));this.Ds=Q.pyv_view_beacon_url;this.NO=Q.pyv_quartile25_beacon_url;this.gO=Q.pyv_quartile50_beacon_url;this.fk=Q.pyv_quartile75_beacon_url;this.Bh=Q.pyv_quartile100_beacon_url;var Wls=Q.session_data;!this.H$&&Wls&&(this.H$=Wb(Wls,"&").feature);this.isFling=ly(this.isFling?1:0,Q.is_fling)===1;this.vnd=ly(this.vnd,Q.vnd);this.forceAdsUrl=
jY(this.forceAdsUrl,Q.force_ads_url);this.V1=jY(this.V1,Q.ctrl);this.Yp=jY(this.Yp,Q.ytr);this.uY=Q.ytrcc;this.cQ=Q.ytrexp;this.Yw=Q.ytrext;this.Cn=jY(this.Cn,Q.adformat);this.FJ=jY(this.FJ,Q.attrib);this.slotPosition=ly(this.slotPosition,Q.slot_pos);this.breakType=Q.break_type;this.mD=D0(this.mD,Q.ssrt);this.videoId=RC(Q)||this.videoId;this.X=jY(this.X,Q.vss_credentials_token);this.al=jY(this.al,Q.vss_credentials_token_type);this.YY=D0(this.YY,Q.audio_only);this.SZ=D0(this.SZ,Q.aac_high);this.ER=
D0(this.ER,Q.prefer_low_quality_audio);this.aE=D0(this.aE,Q.uncap_inline_quality);this.j("html5_enable_qoe_cat_list")?Q.qoe_cat&&(this.zz=this.zz.concat(Q.qoe_cat.split(","))):this.Vd=jY(this.Vd,Q.qoe_cat);this.xI=D0(this.xI,Q.download_media);var xPQ=Q.prefer_gapless;this.S=xPQ!=null?D0(this.S,xPQ):this.S?this.S:this.Dp.preferGapless&&this.Dp.supportsGaplessShorts();ta1(this.playerResponse)&&this.KS.push("ad");var DP5=Q.adaptive_fmts;DP5&&(this.adaptiveFormats=DP5,this.qj("adpfmts",{},!0));var Klv=
Q.allow_embed;Klv&&(this.allowEmbed=Number(Klv)===1);var lWs=Q.backgroundable;lWs&&(this.backgroundable=Number(lWs)===1);var j62=Q.autonav;j62&&(this.isAutonav=Number(j62)===1);var MqO=Q.autoplay;MqO&&(this.g5=this.TN=Number(MqO)===1,Da(this,"c"));var RPv=Q.iv_load_policy;RPv&&(this.annotationsLoadPolicy=Kw(this.annotationsLoadPolicy,RPv,N4));var w74=Q.cc_lang_pref;w74&&(this.captionsLanguagePreference=jY(w74,this.captionsLanguagePreference));var SmO=Q.cc_load_policy;SmO&&(this.dZ=Kw(this.dZ,SmO,
N4));var bkv;this.deviceCaptionsOn=(bkv=Q.device_captions_on)!=null?bkv:void 0;var s6Q;this.nJ=(s6Q=Q.device_captions_lang_pref)!=null?s6Q:"";var zPn;this.ZY=(zPn=Q.viewer_selected_caption_langs)!=null?zPn:[];if(!this.j("html5_enable_ssap_entity_id")){var kOz=Q.cached_load;kOz&&(this.In=D0(this.In,kOz))}if(Q.dash==="0"||Q.dash===0||Q.dash===!1)this.VB=!0;var X7a=Q.dashmpd;X7a&&(this.gE=g.ya(X7a,{cpn:this.clientPlaybackNonce}));var oAs=Q.delay;oAs&&(this.Y6=WZ(oAs));var D9l=this.aA||Q.end;if(this.cD?
D9l!=null:D9l!=void 0)this.clipEnd=ly(this.clipEnd,D9l);var ud5=Q.fmt_list;ud5&&(this.Ks=ud5);Q.heartbeat_preroll&&this.KS.push("heartbeat");this.Zf=-Math.floor(Math.random()*10);this.gX=-Math.floor(Math.random()*40);var Ym1=Q.is_listed;Ym1&&(this.isListed=D0(this.isListed,Ym1));var nA2=Q.is_private;nA2&&(this.isPrivate=D0(this.isPrivate,nA2));var VqO=Q.is_dni;VqO&&(this.HZ=D0(this.HZ,VqO));var Pc4=Q.dni_color;Pc4&&(this.hx=jY(this.hx,Pc4));var vAF=Q.pipable;vAF&&(this.pipable=D0(this.pipable,vAF));
this.tp=(this.WY=this.pipable&&this.Dp.EX)&&!this.Dp.showMiniplayerButton;var CcD=Q.paid_content_overlay_duration_ms;CcD&&(this.paidContentOverlayDurationMs=WZ(CcD));var JLl=Q.paid_content_overlay_text;JLl&&(this.paidContentOverlayText=JLl);var p7Q=Q.url_encoded_fmt_stream_map;p7Q&&(this.ra=p7Q);var hPF=Q.hls_formats;hPF&&(this.hlsFormats=hPF);var aW4=Q.hlsvp;aW4&&(this.hlsvp=aW4);var C2=Q.live_start_walltime;C2&&(this.hj=typeof C2==="number"?C2:WZ(C2));var JY=Q.live_manifest_duration;JY&&(this.Pz=
typeof JY==="number"?JY:WZ(JY));var GOh=Q.player_params;GOh&&(this.playerParams=GOh);var dP2=Q.partnerid;dP2&&(this.partnerId=ly(this.partnerId,dP2));var ik5=Q.probe_url;ik5&&(this.probeUrl=KD(g.ya(ik5,{cpn:this.clientPlaybackNonce})));var K_Q=Q.pyv_billable_url;K_Q&&Rs2(K_Q)&&(this.lF=K_Q);var lw5=Q.pyv_conv_url;lw5&&Rs2(lw5)&&(this.Rd=lw5);iUs(this,Q);this.startSeconds>0?this.j("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.lW||this.YJ||Q.start||Q.startSeconds)&&this.qj("lss",
{css:this.startSeconds,pcss:this.lW,iss:this.YJ,ps:Q.start||void 0,pss:Q.startSeconds||void 0}):this.Gn=this.startSeconds=ly(this.startSeconds,this.lW||this.YJ||Q.start||Q.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var AL1=Q.live_utc_start;if(AL1!=null)this.liveUtcStartSeconds=Number(AL1);else{var jZF=this.startSeconds;jZF&&isFinite(jZF)&&jZF>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Hk1=Q.utc_start_millis;
Hk1&&(this.liveUtcStartSeconds=Number(Hk1)*.001)}var UP5=Q.stream_time_start_millis;UP5&&(this.IU=Number(UP5)*.001);var MDF=this.YJ||Q.start;(this.cD?MDF==null||Number(Q.resume)===1:MDF==void 0||Q.resume=="1")||this.isLivePlayback||(this.clipStart=ly(this.clipStart,MDF));var qmF=Q.url_encoded_third_party_media;qmF&&(this.xG=Kl(qmF));var R15=Q.ypc_offer_button_formatted_text;if(R15){var B6D=JSON.parse(R15);this.nI=B6D!=null?B6D:null;this.xO=R15}var $P4=Q.ypc_offer_button_text;$P4&&(this.Pg=$P4);var IW5=
Q.ypc_offer_description;IW5&&(this.jS=IW5);var mPQ=Q.ypc_offer_headline;mPQ&&(this.uR=mPQ);var N6l=Q.ypc_full_video_message;N6l&&(this.X_=N6l);var cLz=Q.ypc_offer_id;cLz&&(this.UG=cLz);var gAz=Q.ypc_buy_url;gAz&&(this.Nb=gAz);var yL5=Q.ypc_item_thumbnail;yL5&&(this.KU=yL5);var ePz=Q.ypc_item_title;ePz&&(this.La=ePz);var fWO=Q.ypc_item_url;fWO&&(this.fU=fWO);var Zkh=Q.ypc_vid;Zkh&&(this.nK=Zkh);Q.ypc_overlay_timeout&&(this.Tm=Number(Q.ypc_overlay_timeout));var LlQ=Q.ypc_trailer_player_vars;LlQ&&(this.m1=
Ds(LlQ));var rLl=Q.ypc_original_itct;rLl&&(this.Wu=rLl);this.ZS=jY(this.ZS,Q.ucid);Q.baseUrl&&(this.G.baseUrl=Q.baseUrl);Q.uid&&(this.G.uid=Q.uid);Q.oeid&&(this.G.oeid=Q.oeid);Q.ieid&&(this.G.ieid=Q.ieid);Q.ppe&&(this.G.ppe=Q.ppe);Q.engaged&&(this.G.engaged=Q.engaged);Q.subscribed&&(this.G.subscribed=Q.subscribed);this.G.focEnabled=D0(this.G.focEnabled,Q.focEnabled);this.G.rmktEnabled=D0(this.G.rmktEnabled,Q.rmktEnabled);this.iV=Q.storyboard_spec||null;this.qm=Q.live_storyboard_spec||null;this.ea=
Q.iv_endscreen_url||null;this.EX=D0(this.EX,Q.ypc_license_checker_module);this.W9=D0(this.W9,Q.ypc_module);this.eK=D0(this.eK,Q.ypc_clickwrap_module);this.W9&&this.KS.push("ypc");this.eK&&this.KS.push("ypc_clickwrap");this.Cb={video_id:Q.video_id,eventid:Q.eventid,cbrand:Q.cbrand,cbr:Q.cbr,cbrver:Q.cbrver,c:Q.c,cver:Q.cver,ctheme:Q.ctheme,cplayer:Q.cplayer,cmodel:Q.cmodel,cnetwork:Q.cnetwork,cos:Q.cos,cosver:Q.cosver,cplatform:Q.cplatform,user_age:Q.user_age,user_display_image:Q.user_display_image,
user_display_name:Q.user_display_name,user_gender:Q.user_gender,csi_page_type:Q.csi_page_type,csi_service_name:Q.csi_service_name,enablecsi:Q.enablecsi,enabled_engage_types:Q.enabled_engage_types};pDF(this,Q);var T65=Q.cotn;T65&&(this.cotn=T65);if(ema(this))S4(this)&&(this.isLivePlayback&&this.gE&&(this.KR=!0),this.I5&&(this.eS=!0));else if(fyn(this))this.KR=!0;else{var Okn,EA1,Fl2=((Okn=this.playerResponse)==null?void 0:(EA1=Okn.streamingData)==null?void 0:EA1.adaptiveFormats)||[];if(Fl2.length>
0)var pU=y34(this,Fl2);else{var tqs=this.adaptiveFormats;if(tqs&&!S4(this)){bG(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(dr=!0);var ty=YN(tqs),wZ1=this.Qp,QTD=this.lengthSeconds,cxY=this.isLivePlayback,h3=this.Nr,Qs=this.Dp,gPC=F$2(ty);if(cxY||h3){var Wv4=Qs==null?void 0:Qs.experiments,$7=new kK("",Wv4,!0);$7.lN=!0;$7.isManifestless=!0;$7.U=!h3;$7.isLive=!h3;$7.Nr=h3;for(var xYh=g.V(ty),S6n=xYh.next();!S6n.done;S6n=xYh.next()){var WE=S6n.value,DY4=YK(WE,wZ1),uu=nn(WE.url,WE.sp,WE.s),
Kv2=uu.get("id");Kv2&&Kv2.includes("%7E")&&($7.T=!0);var lgh=void 0,yxH=(lgh=Wv4)==null?void 0:lgh.ij("html5_max_known_end_time_rebase"),e6k=Number(WE.target_duration_sec)||5,f9e=Number(WE.max_dvr_duration_sec)||14400,jTa=Number(uu.get("mindsq")||uu.get("min_sq")||"0"),MkO=Number(uu.get("maxdsq")||uu.get("max_sq")||"0")||Infinity;$7.bG=$7.bG||jTa;$7.xS=$7.xS||MkO;var ZvH=!KS(DY4.mimeType);uu&&bO($7,new FU(uu,DY4,{zA:e6k,Fp:ZvH,o4:f9e,bG:jTa,xS:MkO,us:300,Nr:h3,HH:yxH}))}var Roa=$7}else{if(gPC==="FORMAT_STREAM_TYPE_OTF"){var p2=
QTD;p2=p2===void 0?0:p2;var xt=new kK("",Qs==null?void 0:Qs.experiments,!1);xt.duration=p2||0;for(var wnQ=g.V(ty),bCz=wnQ.next();!bCz.done;bCz=wnQ.next()){var DN=bCz.value,sZ2=YK(DN,wZ1,xt.duration),z1s=nn(DN.url,DN.sp,DN.s);if(z1s)if(sZ2.streamType==="FORMAT_STREAM_TYPE_OTF")bO(xt,new tZ(z1s,sZ2,"sq/0"));else{var Lgs=iM(DN.init),rxF=iM(DN.index);bO(xt,new RI(z1s,sZ2,Lgs,rxF))}}xt.isOtf=!0;var SJ5=xt}else{var hY=QTD;hY=hY===void 0?0:hY;var aS=new kK("",Qs==null?void 0:Qs.experiments,!1);aS.duration=
hY||0;for(var bG1=g.V(ty),kMO=bG1.next();!kMO.done;kMO=bG1.next()){var KB=kMO.value,TT1=YK(KB,wZ1,aS.duration),OvA=iM(KB.init),EPq=iM(KB.index),sTh=nn(KB.url,KB.sp,KB.s);sTh&&bO(aS,new RI(sTh,TT1,OvA,EPq))}SJ5=aS}Roa=SJ5}var zon=Roa;if(ty.length>0){var kav=ty[0];if(this.C().playerStyle==="hangouts-meet"&&kav.url){var FgR=g.lY(kav.url);this.Dx=this.Dx||Number(FgR.expire)}}var tSF=this.isLivePlayback&&!this.Nr&&!this.LS&&!this.isPremiere;this.j("html5_live_head_playable")&&(!s_(this)&&tSF&&this.qj("missingLiveHeadPlayable",
{}),this.Dp.uj==="yt"&&(zon.s3=!0));pU=zon}else pU=null;this.qj("pafmts",{isManifestFilled:!!pU})}if(pU){X6(this,pU);var Xn1=!0}else Xn1=!1;Xn1?this.enableServerStitchedDai=this.enableServerStitchedDai&&zr(this):this.gE&&(this.Dp.uj==="yt"&&this.lN()&&this.j("drm_manifestless_unplugged")&&this.j("html5_deprecate_manifestful_fallback")?this.qj("deprecateMflFallback",{}):this.KR=!0)}var XZ2=Q.adpings;XZ2&&(this.rX=XZ2?Ds(XZ2):null);var o9F=Q.feature;o9F&&(this.HF=o9F);var uID=Q.referrer;uID&&(this.referrer=
uID);this.clientScreenNonce=jY(this.clientScreenNonce,Q.csn);this.WA=ly(this.WA,Q.root_ve_type);this.Pi=ly(this.Pi,Q.kids_age_up_mode);this.cD||Q.kids_app_info==void 0||(this.kidsAppInfo=Q.kids_app_info);this.cD&&Q.kids_app_info!=null&&(this.kidsAppInfo=Q.kids_app_info);this.U_=D0(this.U_,Q.upg_content_filter_mode);this.unpluggedFilterModeType=ly(this.unpluggedFilterModeType,Q.unplugged_filter_mode_type);var YJh=Q.unplugged_location_info;YJh&&(this.uj=YJh);var n9l=Q.unplugged_partner_opt_out;n9l&&
(this.gZ=jY("",n9l));this.iD=D0(this.iD,Q.disable_watch_next);this.rz=jY(this.rz,Q.internal_ip_override);this.ZR=!!Q.is_yto_interstitial;(this.interstitials.length||this.ZR)&&this.KS.push("yto");var Vkl=Q.eD;Vkl&&(this.eD=Vkl);var Pmn;this.eZ=(Pmn=Q.csi_timer)!=null?Pmn:"";this.u$=!!Q.force_gvi;Q.watchUrl&&(this.watchUrl=Q.watchUrl);var Yi=Q.watch_endpoint;this.j("html5_attach_watch_endpoint_ustreamer_config")&&Yi&&cKO(this,Yi);if(Yi==null?0:Yi.ustreamerConfig)this.Ka=w5(Yi.ustreamerConfig);var v9Q,
Cmz,JtF=Yi==null?void 0:(v9Q=Yi.loggingContext)==null?void 0:(Cmz=v9Q.qoeLoggingContext)==null?void 0:Cmz.serializedContextData;JtF&&(this.MJ=JtF);g.d5(this.Dp)&&this.Dp.h_&&(this.embedsRct=jY(this.embedsRct,Q.rct),this.embedsRctn=jY(this.embedsRctn,Q.rctn));this.A_=this.A_||!!Q.pause_at_start;Q.default_active_source_video_id&&(this.defaultActiveSourceVideoId=Q.default_active_source_video_id)};
g.R.C=function(){return this.Dp};
g.R.j=function(Q){return this.Dp.j(Q)};
g.R.Fi=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.R.hasSupportedAudio51Tracks=function(){var Q;return!((Q=this.QN)==null||!Q.tf)};
g.R.getUserAudio51Preference=function(){var Q=1;F4(this.Dp)&&this.j("html5_ytv_surround_toggle_default_off")?Q=0:g.Ts(this.Dp)&&this.isLivePlayback&&this.n3()&&(Q=0);var W;return(W=g.qW("yt-player-audio51"))!=null?W:Q};
g.R.gW=function(){this.d7()||(this.B.U||this.B.unsubscribe("refresh",this.gW,this),this.Id(-1))};
g.R.Id=function(Q){if(!this.isLivePlayback||!this.L||this.L.flavor!=="fairplay"){var W=QAn(this.B,this.CC);if(W.length>0){for(var x=g.V(W),D=x.next();!D.done;D=x.next())D=D.value,D.startSecs=Math.max(D.startSecs,this.Jn()),this.j("html5_cuepoint_identifier_logging")&&D.event==="start"&&this.qj("cuepoint",{pubCue:D.identifier,segNum:Q});this.publish("cuepointupdated",W,Q);this.CC+=W.length;if(zr(this)&&this.Dp.jk())for(W=g.V(W),x=W.next();!x.done;x=W.next())x=x.value,this.qj("cuepoint",{segNum:Q,event:x.event,
startSecs:x.startSecs,id:x.identifier.slice(-16)}),x.event==="start"&&(x=x.startSecs,this.rZ.start=this.s3,this.rZ.end=x+3)}}};
g.R.cw=function(){this.d7()||(this.loading=!1,this.publish("dataloaded"))};
g.R.n3=function(){return this.z4!==void 0?this.z4:this.z4=!!this.Qp||!!this.B&&uQ(this.B)};
g.R.hN=function(Q){var W=this;if(this.d7())return Hb();this.hn=this.tf=this.D=null;bG(this,"html5_high_res_logging_always")&&(this.Dp.kX=!0);return T9l(this,Q).then(void 0,function(){return EOD(W,Q)}).then(void 0,function(){return FFz(W)}).then(void 0,function(){return QPa(W)})};
g.R.ma=function(Q){this.D=Q;OUD(this,this.D.getAvailableAudioTracks());if(this.D){Q=g.V(this.D.videoInfos);for(var W=Q.next();!W.done;W=Q.next()){W=W.value;var x=W.containerType;x!==0&&(this.CI[x]=W.id)}}pQ(this);if(this.L&&this.D&&this.D.videoInfos&&!(this.D.videoInfos.length<=0)&&(Q=Qy(this.D.videoInfos[0]),this.L.flavor==="fairplay"!==Q))for(W=g.V(this.Ep),x=W.next();!x.done;x=W.next())if(x=x.value,Q===(x.flavor==="fairplay")){this.L=x;break}};
g.R.Vv=function(){if(this.cotn)return null;var Q=g.aE(this.Dp)||this.j("web_l3_storyboard");if(!this.im)if(this.playerResponse&&this.playerResponse.storyboards){var W=this.playerResponse.storyboards,x=W.playerStoryboardSpecRenderer;x&&x.spec?this.im=new cW(x.spec,this.lengthSeconds,void 0,!1,Q):(W=W.playerLiveStoryboardSpecRenderer)&&W.spec&&this.B&&(x=ZjD(this.B.B).index)&&(this.im=new y7(W.spec,this.B.isLive,x,Q))}else this.iV?this.im=new cW(this.iV,this.lengthSeconds,void 0,!1,Q):this.qm&&this.B&&
(W=ZjD(this.B.B).index)&&(this.im=new y7(this.qm,this.B.isLive,W,Q));return this.im};
g.R.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var Q=this.playerResponse.storyboards;return(Q=Q.playerStoryboardSpecRenderer||Q.playerLiveStoryboardSpecRenderer)&&Q.spec||null}return this.iV||this.qm};
g.R.FY=function(){return this.B&&!isNaN(this.B.FY())?this.B.FY():zr(this)?0:this.lengthSeconds};
g.R.Jn=function(){return this.B&&!isNaN(this.B.Jn())?this.B.Jn():0};
g.R.getPlaylistSequenceForTime=function(Q){if(this.B&&this.U){var W=this.B.B[this.U.id];if(!W)return null;var x=W.index.GC(Q);W=W.index.getStartTime(x);return{sequence:x,elapsed:Math.floor((Q-W)*1E3)}}return null};
g.R.ET=function(){return!this.d7()&&!(!this.videoId&&!this.xG)};
g.R.Yr=function(){var Q,W,x;return!!this.adaptiveFormats||!!((Q=this.playerResponse)==null?0:(W=Q.streamingData)==null?0:(x=W.adaptiveFormats)==null?0:x.length)};
g.R.isLoaded=function(){return Zd(this)&&!this.KR&&!this.eS};
g.R.ue=function(Q){Q||(Q="hqdefault.jpg");var W=this.T[Q];return W||this.Dp.pS||Q==="pop1.jpg"||Q==="pop2.jpg"||Q==="sddefault.jpg"||Q==="hq720.jpg"||Q==="maxresdefault.jpg"?W:LO(this.Dp,this.videoId,Q)};
g.R.lN=function(){return this.isLivePlayback||this.Nr||this.LS||!(!this.liveUtcStartSeconds||!this.Pz)};
g.R.isOtf=function(){return!!this.B&&(this.B.isOtf||!this.Nr&&!this.isLivePlayback&&this.B.U)};
g.R.getAvailableAudioTracks=function(){return this.D?this.D.getAvailableAudioTracks().length>0?this.D.getAvailableAudioTracks():this.h4||[]:[]};
g.R.getAudioTrack=function(){var Q=this;if(this.N&&!Qy(this.N))return g.Os(this.getAvailableAudioTracks(),function(D){return D.id===Q.N.id})||this.CR;
if(this.h4){if(!this.Br)for(var W=g.V(this.h4),x=W.next();!x.done;x=W.next())if(x=x.value,x.RW.getIsDefault()){this.Br=x;break}return this.Br||this.CR}return this.CR};
g.R.getPlayerResponse=function(){return this.playerResponse};
g.R.getWatchNextResponse=function(){return this.g7};
g.R.getHeartbeatResponse=function(){return this.zT};
g.R.lk=function(){return this.watchUrl?this.watchUrl:this.Dp.getVideoUrl(this.videoId)};
g.R.l5=function(){return!!this.B&&(eWl(this.B)||fRQ(this.B)||ZSh(this.B))};
g.R.getEmbeddedPlayerResponse=function(){return this.fA};
g.R.c9=function(){return(this.eventLabel||this.Dp.fS)==="shortspage"};
g.R.isAd=function(){return this.ix||!!this.adFormat};
g.R.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.R.aQ=function(){var Q,W,x;return this.isDaiEnabled()&&!!((Q=this.playerResponse)==null?0:(W=Q.playerConfig)==null?0:(x=W.daiConfig)==null?0:x.ssaEnabledPlayback)};
g.R.OA=function(){return P8l(this)?this.uc:this.EX||this.xN};
g.R.m5=function(){return this.W9||this.xN};
g.R.I$=function(){return bG(this,"html5_samsung_vp9_live")};
g.R.qj=function(Q,W,x){this.publish("ctmp",Q,W,x)};
g.R.VO=function(Q,W,x){this.publish("ctmpstr",Q,W,x)};
g.R.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.R.getGetAdBreakContext=function(Q,W){Q=Q===void 0?NaN:Q;W=W===void 0?NaN:W;var x={isSabr:MJ(this)},D,K=(D=this.getHeartbeatResponse())==null?void 0:D.adBreakHeartbeatParams;K&&(x.adBreakHeartbeatParams=K);if(this.j("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.B&&!isNaN(Q)&&!isNaN(W)){W=Q-W;for(var l in this.B.B)if(D=this.B.B[l],D.info.OQ()||D.info.Mx())if(D=D.index,D.isLoaded()){l=D.GC(W);D=D.LZ(l)+W-D.getStartTime(l);this.qj("gabc",{t:Q.toFixed(3),mt:W.toFixed(3),sg:l,igt:D.toFixed(3)});
x.livePlaybackPosition={utcTimeMillis:""+(D*1E3).toFixed(0)};break}}return x};
g.R.isEmbedsShortsMode=function(Q,W){if(!g.d5(this.Dp))return!1;var x;if(!this.j("embeds_enable_emc3ds_shorts")&&((x=this.Dp.getWebPlayerContextConfig())==null?0:x.embedsEnableEmc3ds)||(this.Dp.KS||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||W)return!1;var D,K;return!!(((D=this.embeddedPlayerConfig)==null?0:(K=D.embeddedPlayerFlags)==null?0:K.isShortsExperienceEligible)&&Q.width<=Q.height)};
g.R.U3=function(){g.Rd.prototype.U3.call(this);this.rX=null;delete this.d$;delete this.accountLinkingConfig;delete this.B;this.D=this.zT=this.playerResponse=this.g7=null;this.ra=this.adaptiveFormats="";delete this.botguardData;this.Vj=this.suggestions=this.s_=null;this.sabrContextUpdates.clear()};var GoO={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},dSs={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},hi4={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},C8h={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"},pen={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},Jz1={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"},aO5={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.n(Mf,g.N);g.R=Mf.prototype;g.R.handleExternalCall=function(Q,W,x){var D=this.state.G[Q],K=this.state.S[Q],l=D;if(K)if(x&&Q8(x,Nfe))l=K;else if(!D)throw Error('API call from an untrusted origin: "'+x+'"');this.logApiCall(Q,x);if(l){x=!1;D=g.V(W);for(K=D.next();!K.done;K=D.next())if(String(K.value).includes("javascript:")){x=!0;break}x&&g.Bp(Error('Dangerous call to "'+Q+'" with ['+W+"]."));return l.apply(this,W)}throw Error('Unknown API method: "'+Q+'".');};
g.R.logApiCall=function(Q,W,x){var D=this.app.C();D.YJ&&!this.state.T.has(Q)&&(this.state.T.add(Q),g.wV("webPlayerApiCalled",{callerUrl:D.loaderUrl,methodName:Q,origin:W||void 0,playerStyle:D.playerStyle||void 0,embeddedPlayerMode:D.KS,errorCode:x}))};
g.R.publish=function(Q){var W=g.i2.apply(1,arguments);this.state.D.publish.apply(this.state.D,[Q].concat(g.C(W)));if(Q==="videodatachange"||Q==="resize"||Q==="cardstatechange")this.state.U.publish.apply(this.state.U,[Q].concat(g.C(W))),this.state.N.publish.apply(this.state.N,[Q].concat(g.C(W)))};
g.R.Wt=function(Q){var W=g.i2.apply(1,arguments);this.state.D.publish.apply(this.state.D,[Q].concat(g.C(W)));this.state.U.publish.apply(this.state.U,[Q].concat(g.C(W)))};
g.R.WD=function(Q){var W=g.i2.apply(1,arguments);this.state.D.publish.apply(this.state.D,[Q].concat(g.C(W)));this.state.U.publish.apply(this.state.U,[Q].concat(g.C(W)));this.state.N.publish.apply(this.state.N,[Q].concat(g.C(W)))};
g.R.DJ=function(Q){var W=g.i2.apply(1,arguments);this.state.D.publish.apply(this.state.D,[Q].concat(g.C(W)));this.state.U.publish.apply(this.state.U,[Q].concat(g.C(W)));this.state.N.publish.apply(this.state.N,[Q].concat(g.C(W)));this.state.L.publish.apply(this.state.L,[Q].concat(g.C(W)))};
g.R.j=function(Q){return this.app.C().j(Q)};
g.R.U3=function(){if(this.state.element){var Q=this.state.element,W;for(W in this.state.B)this.state.B.hasOwnProperty(W)&&(Q[W]=null);this.state.element=null}g.N.prototype.U3.call(this)};g.n(sX,g.hU);sX.prototype.publish=function(Q){var W=g.i2.apply(1,arguments);if(this.L.has(Q))return this.L.get(Q).push(W),!0;var x=!1;try{for(W=[W],this.L.set(Q,W);W.length;)x=g.hU.prototype.publish.call.apply(g.hU.prototype.publish,[this,Q].concat(g.C(W.shift())))}finally{this.L.delete(Q)}return x};g.n(z4,g.N);z4.prototype.U3=function(){this.L.dispose();this.N.dispose();this.U.dispose();this.D.dispose();this.T=this.B=this.S=this.G=this.X=void 0};var $S1=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.n(Xh,Mf);g.R=Xh.prototype;g.R.getApiInterface=function(){return Array.from(this.state.X)};
g.R.EU=function(Q,W){this.state.L.subscribe(Q,W)};
g.R.Na1=function(Q,W){this.state.L.unsubscribe(Q,W)};
g.R.getPlayerState=function(Q){return Wks(this.app,Q)};
g.R.I0=function(){return Wks(this.app)};
g.R.MKj=function(Q,W,x){YW(this)&&($y(this.app,!0,1),NK(this.app,Q,W,x,1))};
g.R.getCurrentTime=function(Q,W,x){var D=this.getPlayerState(Q);if(this.app.getAppState()===2&&D===5){var K;return((K=this.app.getVideoData())==null?void 0:K.startSeconds)||0}return this.j("web_player_max_seekable_on_ended")&&D===0?Erv(this.app,Q):Q?this.app.getCurrentTime(Q,W,x):this.app.getCurrentTime(Q)};
g.R.vP=function(){return this.app.getCurrentTime(1)};
g.R.sj=function(){var Q=this.app.LZ(1);return isNaN(Q)?this.getCurrentTime(1):Q};
g.R.o0=function(){return this.app.getDuration(1)};
g.R.KJ=function(Q,W){Q=g.wS(Math.floor(Q),0,100);isFinite(Q)&&dy(this.app,{volume:Q,muted:this.isMuted()},W)};
g.R.nY5=function(Q){this.KJ(Q,!1)};
g.R.Ez=function(Q){dy(this.app,{muted:!0,volume:this.getVolume()},Q)};
g.R.Rwj=function(){this.Ez(!1)};
g.R.CJ=function(Q){uL(this.app)&&!this.j("embeds_enable_emc3ds_muted_autoplay")||dy(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},Q)};
g.R.Pe9=function(){uL(this.app)&&this.j("embeds_enable_emc3ds_muted_autoplay")||this.CJ(!1)};
g.R.getPlayerMode=function(){var Q={};this.app.getVideoData().HZ&&(Q.pfp={enableIma:g.xW(this.app.getVideoData())&&this.app.sx().allowImaMonetization,autoplay:NJ(this.app.sx()),mutedAutoplay:this.app.sx().mutedAutoplay});return Q};
g.R.r9=function(){var Q=this.app.getPresentingPlayerType();if(Q===2&&!this.app.It()){var W=AJ(this.app.x6());if(!Q1s(W)||Was(W))return}Q===3?dZ(this.app.x6()).Hk("control_play"):this.app.C().j("html5_ssap_ignore_play_for_ad")&&g.TQ(this.app.sx())&&Q===2||this.app.playVideo(Q)};
g.R.Rxj=function(){$y(this.app,!0,1);this.r9()};
g.R.pauseVideo=function(Q){var W=this.app.getPresentingPlayerType();if(W!==2||this.app.It()||Q1s(AJ(this.app.x6())))W===3?dZ(this.app.x6()).Hk("control_pause"):this.app.pauseVideo(W,Q)};
g.R.X33=function(){var Q=this.app,W=!1;Q.bj.Sk&&(Q.G1.publish("pageTransition"),W=!0);Q.stopVideo(W)};
g.R.clearVideo=function(){};
g.R.getAvailablePlaybackRates=function(){var Q=this.app.C();return Q.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(Q.N?Q.ancestorOrigins[0]:window.location.origin)||Q.eS?oVF:Q.supportsVarispeedExtendedFeatures?uFF:Q.j("web_remix_allow_up_to_3x_playback_rate")&&g.Il(Q)?Yr1:h1:[1]};
g.R.getPlaybackQuality=function(Q){return(Q=this.app.ek(Q))?Q.getPlaybackQuality():"unknown"};
g.R.tK9=function(){};
g.R.getAvailableQualityLevels=function(Q){return(Q=this.app.ek(Q))?(Q=g.pm(Q.VT(),function(W){return W.quality}),Q.length&&(Q[0]==="auto"&&Q.shift(),Q=Q.concat(["auto"])),Q):[]};
g.R.cP=function(){return this.getAvailableQualityLevels(1)};
g.R.PP=function(){return this.Kk()};
g.R.AV=function(){return 1};
g.R.getVideoLoadedFraction=function(Q){return this.app.getVideoLoadedFraction(Q)};
g.R.Kk=function(){return this.getVideoLoadedFraction()};
g.R.Sc=function(){return 0};
g.R.getSize=function(){var Q=this.app.hf().getPlayerSize();return{width:Q.width,height:Q.height}};
g.R.setSize=function(){this.app.hf().resize()};
g.R.loadVideoById=function(Q,W,x,D){if(!Q)return!1;Q=kW(Q,W,x);return this.app.loadVideoByPlayerVars(Q,D)};
g.R.mip=function(Q,W,x){Q=this.loadVideoById(Q,W,x,1);$y(this.app,Q,1)};
g.R.cueVideoById=function(Q,W,x,D){Q=kW(Q,W,x);this.app.cueVideoByPlayerVars(Q,D)};
g.R.yH=function(Q,W,x){this.cueVideoById(Q,W,x,1)};
g.R.loadVideoByUrl=function(Q,W,x,D){Q=B7h(Q,W,x);return this.app.loadVideoByPlayerVars(Q,D)};
g.R.Dij=function(Q,W,x){Q=this.loadVideoByUrl(Q,W,x,1);$y(this.app,Q,1)};
g.R.cueVideoByUrl=function(Q,W,x,D){Q=B7h(Q,W,x);this.app.cueVideoByPlayerVars(Q,D)};
g.R.N6=function(Q,W,x){this.cueVideoByUrl(Q,W,x,1)};
g.R.Ze=function(){var Q=this.app.C();if(Q.pS)return"";var W=this.app.sx(),x=void 0;W.isLivePlayback||(x=Math.floor(this.app.getCurrentTime(1)));return Q.getVideoUrl(W.videoId,this.getPlaylistId()||void 0,x)};
g.R.jc=function(){return this.app.getDebugText()};
g.R.getVideoEmbedCode=function(){var Q=this.app.C();if(Q.pS)return"";var W=this.app.sx();return Q.getVideoEmbedCode(W.isPrivate?"":W.title,this.app.sx().videoId,this.app.hf().getPlayerSize(),this.getPlaylistId()||void 0)};
g.R.dB=function(Q,W,x){return wJ2(this.app,Q,W,x)};
g.R.removeCueRange=function(Q){return bLa(this.app,Q)};
g.R.loadPlaylist=function(Q,W,x,D){this.app.loadPlaylist(Q,W,x,D)};
g.R.BG9=function(Q,W,x,D){this.loadPlaylist(Q,W,x,D);$y(this.app,!0,1)};
g.R.cuePlaylist=function(Q,W,x,D){this.app.cuePlaylist(Q,W,x,D)};
g.R.nextVideo=function(Q,W){this.app.nextVideo(Q,W)};
g.R.IbS=function(){this.nextVideo();$y(this.app,!0,1)};
g.R.previousVideo=function(Q){this.app.previousVideo(Q)};
g.R.aJ3=function(){this.previousVideo();$y(this.app,!0,1)};
g.R.playVideoAt=function(Q){this.app.playVideoAt(Q)};
g.R.ME3=function(Q){this.playVideoAt(Q);$y(this.app,!0,1)};
g.R.setShuffle=function(Q){var W=this.app.getPlaylist();W&&W.setShuffle(Q)};
g.R.setLoop=function(Q){var W=this.app.getPlaylist();W&&(W.loop=Q)};
g.R.Oj=function(){var Q=this.app.getPlaylist();if(!Q)return null;for(var W=[],x=0;x<Q.getLength();x++){var D=g.uX(Q,x);D&&W.push(D.videoId)}return W};
g.R.getPlaylistIndex=function(){var Q=this.app.getPlaylist();return Q?Q.index:-1};
g.R.getPlaylistId=function(){var Q=this.app.getPlaylist();return Q&&Q.listId?Q.listId.toString():null};
g.R.sO=function(Q){Q==="captions"&&(Q=g.GZ(this.app.x6()))&&!Q.loaded&&Q.load()};
g.R.vT=function(Q){Q==="captions"&&(Q=g.GZ(this.app.x6()))&&Q.loaded&&Q.Sr3()};
g.R.rD=function(Q,W,x){if(!W)return null;var D=this.app.x6();return Q==="captions"?(Q=g.GZ(D))&&Q.AA(W,x):null};
g.R.z7=function(Q,W,x){return this.app.Zp().getVideoData().isPrivate&&this.app.C().N?{}:this.rD(Q,W,x)};
g.R.Ki=function(Q){var W=this.app.x6();if(Q==="captions"){var x;return((x=g.GZ(W))==null?void 0:x.getOptions())||null}return Q?null:(Q=[],g.GZ(W)&&Q.push("captions"),Q)};
g.R.getVolume=function(){return this.app.YS.volume};
g.R.isMuted=function(){return this.app.YS.muted};
g.R.destroy=function(){this.app.dispose()};
g.R.logImaAdEvent=function(Q,W){var x=this.app.C();g.xW(this.app.getVideoData())&&this.app.sx().allowImaMonetization&&(Q={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:W,embedUrl:g.v6a(this.app.C().loaderUrl),eventType:Q,youtubeHost:g.$X(this.app.C().n2)||""},Q.embeddedPlayerMode=x.KS,g.wV("embedsAdEvent",Q))};
g.R.mutedAutoplay=function(Q){var W=this.app.C(),x,D,K;((x=W.getWebPlayerContextConfig())==null?0:(D=x.embedsHostFlags)==null?0:(K=D.allowMutedAutoplayDurationMode)==null?0:K.length)&&!W.D&&this.app.mutedAutoplay(Q)};
g.R.preloadVideoById=function(Q,W,x,D){var K,l;((K=this.app.C().getWebPlayerContextConfig())==null?0:(l=K.embedsHostFlags)==null?0:l.allowPreloadVideoById)&&Q&&(Q=kW(Q,W,x),this.app.preloadVideoByPlayerVars(Q,D))};
g.R.A27=function(Q,W,x){this.preloadVideoById(Q,W,x,1)};
g.R.setFauxFullscreen=function(Q){g.uy();this.app.Cu(Q?2:0)};
g.R.CSj=function(Q){var W,x;((W=this.app.C().getWebPlayerContextConfig())==null?0:(x=W.embedsHostFlags)==null?0:x.allowSetFauxFullscreen)&&this.setFauxFullscreen(Q)};
g.R.setCenterCrop=function(Q){var W,x;((W=this.app.C().getWebPlayerContextConfig())==null?0:(x=W.embedsHostFlags)==null?0:x.allowSetCenterCrop)&&this.app.hf().setCenterCrop(Q)};
g.R.wakeUpControls=function(){var Q=g.oN(this);Q&&Q.Z7()};var yzh="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.n(nq,Xh);g.R=nq.prototype;g.R.v1=function(Q,W){this.state.N.subscribe(Q,W)};
g.R.Kjj=function(Q,W){this.state.N.unsubscribe(Q,W)};
g.R.cueVideoByPlayerVars=function(Q,W){this.app.cueVideoByPlayerVars(Q,W)};
g.R.D_=function(Q,W){W=W===void 0?1:W;this.cueVideoByPlayerVars(V0(this,Q),W)};
g.R.loadVideoByPlayerVars=function(Q,W,x,D,K){this.app.loadVideoByPlayerVars(Q,x,W,D,K)};
g.R.Fdt=function(Q,W,x,D){x=x===void 0?1:x;this.loadVideoByPlayerVars(V0(this,Q),W,x,D)};
g.R.preloadVideoByPlayerVars=function(Q,W,x,D,K){x=x===void 0?NaN:x;this.app.preloadVideoByPlayerVars(Q,W,x,D===void 0?"":D,K===void 0?"":K)};
g.R.tEj=function(Q,W,x,D){W=W===void 0?1:W;this.preloadVideoByPlayerVars(V0(this,Q),W,x,D)};
g.R.wR=function(Q,W,x){this.loadVideoById(Q,W,x,1)};
g.R.Ml=function(Q,W,x){this.loadVideoByUrl(Q,W,x,1)};
g.R.HP=function(Q){return this.getPlayerState(Q)};
g.R.N4=function(Q){Q=Q===void 0?1:Q;var W=mSz(this,Q);if(Q=this.app.ek(Q)){Q=Q.getVideoData();W.backgroundable=Q.backgroundable;W.eventId=Q.eventId;W.cpn=Q.clientPlaybackNonce;W.isLive=Q.isLivePlayback;W.isWindowedLive=Q.LS;W.isManifestless=zr(Q);W.allowLiveDvr=Q.allowLiveDvr;W.isListed=Q.isListed;Q.liveUtcStartSeconds!=null&&(W.liveUtcStartSeconds=Q.liveUtcStartSeconds);Q.n3()&&(W.isEncrypted=!0);if(Q.D)for(var x=g.V(Q.D.videoInfos),D=x.next();!D.done;D=x.next()){var K=void 0;if((K=D.value.video)==
null?0:K.isHdr()){W.isHdr=!0;break}}var l,M;W.isMultiChannelAudio=!!((l=Q.N)==null?0:(M=l.audio)==null?0:M.isMultiChannelAudio())}return W};
g.R.seekBy=function(Q,W,x,D,K){YW(this)&&NK(this.app,this.app.getCurrentTime()+Q,W,x,K,D)};
g.R.z29=function(Q,W,x){this.seekBy(Q,W,x,void 0,1)};
g.R.seekTo=function(Q,W,x,D,K){YW(this)&&NK(this.app,Q,W,x,D,K)};
g.R.R23=function(Q,W,x,D){this.seekTo(Q,W,x,D===void 0?1:D)};
g.R.getStoryboardFormat=function(){var Q=this.app.getVideoData(),W=this.app.C();return W.j("embeds_enable_vfsyb")&&W.N&&Q.isPrivate?null:this.app.getStoryboardFormat()};
g.R.gb=function(Q,W){return this.getCurrentTime(Q===void 0?1:Q,W)};
g.R.UM=function(){var Q=this.app.getPresentingPlayerType(!0);Q===2&&this.app.It()&&(Q=1);return Q};
g.R.getDuration=function(Q,W){if(this.UM()===3){var x;return((x=dZ(this.app.x6()).getProgressState())==null?void 0:x.duration)||0}return Q?this.app.getDuration(Q,W):this.app.getDuration(Q)};
g.R.OW=function(Q,W){return this.getDuration(Q===void 0?1:Q,W)};
g.R.tV=function(Q){return this.getVideoLoadedFraction(Q)};
g.R.loadModule=function(Q){if(Q==="annotations_module"){var W=g.qt(this.app.x6());W&&!W.loaded&&W.load()}this.sO(Q)};
g.R.unloadModule=function(Q){if(Q==="annotations_module"){var W=g.qt(this.app.x6());W&&W.loaded&&W.unload()}this.vT(Q)};
g.R.getOption=function(Q,W,x,D){return(D=this.app.ek(D))&&D.getVideoData().isPrivate&&this.app.C().N?{}:this.setOption(Q,W,x)};
g.R.xH=function(Q,W,x){return this.getOption(Q,W,x,1)};
g.R.getOptions=function(Q){var W=this.app.x6();switch(Q){case "ad":var x,D;return((x=AJ(W))==null?void 0:(D=x.getOptions)==null?void 0:D.call(x))||null;case "remote":var K,l;return((K=dZ(W))==null?void 0:(l=K.getOptions)==null?void 0:l.call(K))||null;case "annotations_module":var M,w;return((M=g.qt(W))==null?void 0:(w=M.getOptions)==null?void 0:w.call(M))||null;case "creatorendscreen":var S,b;return((S=BH(W))==null?void 0:(b=S.getOptions)==null?void 0:b.call(S))||null;case "unplugged":var z,k;return((z=
g.HH(W))==null?void 0:(k=z.getOptions)==null?void 0:k.call(z))||null;case "kids":var X,u;return((X=zSQ(W))==null?void 0:(u=X.getOptions)==null?void 0:u.call(X))||null}if(!Q){Q=this.Ki();if(!Q)return Q;AJ(W)&&Q.push("ad");dZ(W)&&Q.push("remote");g.qt(W)&&Q.push("annotations_module");BH(W)&&Q.push("creatorendscreen");g.HH(W)&&Q.push("unplugged");zSQ(W)&&Q.push("kids");return Q}return this.Ki(Q)};
g.R.setOption=function(Q,W,x){if(!W)return null;var D=this.app.x6();switch(Q){case "ad":return(Q=AJ(D))&&Q.AA&&Q.AA(W,x);case "kids":return(Q=zSQ(D))&&Q.AA(W,x);case "remote":return(Q=dZ(D))&&Q.AA(W,x);case "unplugged":return(Q=g.HH(D))&&Q.AA(W,x);case "annotations_module":return(Q=g.qt(D))&&Q.AA(W,x);case "creatorendscreen":return(Q=BH(D))&&Q.AA(W,x)}return this.rD(Q,W,x)};
g.R.addCueRange=function(Q,W,x,D,K){return wJ2(this.app,Q,W,x,D,K)};
g.R.getDebugText=function(Q){return this.app.getDebugText(Q)};
g.R.getCurrentBroadcastId=function(){return null};
g.R.handleGlobalKeyDown=function(Q,W,x,D,K,l,M,w){W=W===void 0?!1:W;x=x===void 0?!1:x;D=D===void 0?!1:D;K=K===void 0?!1:K;var S=g.oN(this);S&&S.handleGlobalKeyDown(Q,W,x,D,K,l,M,w)};
g.R.handleGlobalKeyUp=function(Q,W,x,D,K,l,M){W=W===void 0?!1:W;x=x===void 0?!1:x;D=D===void 0?!1:D;K=K===void 0?!1:K;var w=g.oN(this);w&&w.handleGlobalKeyUp(Q,W,x,D,K,l,M)};
g.R.setSizeStyle=function(Q,W){this.app.setSizeStyle(Q,W)};
g.R.showControls=function(){var Q=g.oN(this);Q&&Q.showControls(!0)};
g.R.hideControls=function(){var Q=g.oN(this);Q&&Q.showControls(!1)};
g.R.getVideoContentRect=function(Q){Q=this.app.hf().getVideoContentRect(Q);return{left:Q.left,top:Q.top,width:Q.width,height:Q.height}};
g.R.toggleFullscreen=function(){function Q(x){g.Bp(x)}
var W=this.app.C();if(W.externalFullscreen){if(!g.tC(W))return this.isFullscreen()?nw(window.document.documentElement):oC(window.document.documentElement).catch(Q)}else if(g.uy()||W.S)return this.isFullscreen()?nw(YY()):W.controlsType!=="3"&&g.uy()?oC(this.app.hf().element).catch(Q):(W=this.app.DG().yh())?oC(W).catch(Q):Promise.reject(Error("Media element missing"));this.DJ("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.R.isFullscreen=function(){return this.app.isFullscreen()};
g.R.fY=function(){return this.app.fY()};
g.R.cancelPlayback=function(){var Q=AJ(this.app.x6());Q&&Q.created&&Q.destroy();(Q=this.app.w7())&&Q.stopVideo();(Q=this.app.x6().CZ.get("endscreen"))&&Q.PjZ()&&g.G4(this.app.G1,!0)};
g.R.getProgressState=function(Q){if(this.UM()===3)return dZ(this.app.x6()).getProgressState();var W=this.app.getVideoData(),x=this.app.ek(Q)||this.app.w7(),D=x.getPlayerType();a:{var K=this.app.getVideoData();var l;if((l=K.progressBarStartPosition)==null?0:l.utcTimeMillis)if(K=Number(K.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(K)){K=Pd(this,K,Q);break a}K=0}var M;a:{l=this.app.getVideoData();if((M=l.progressBarEndPosition)==null?0:M.utcTimeMillis)if(M=Number(l.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(M)){M=Pd(this,M,Q);break a}M=0}l=this.getCurrentTime(Q);Q=this.getDuration(Q);var w=this.app.LZ(D),S=this.app.isAtLiveHead(D),b=this.app.xQ();var z=this.app;var k=z.ek(D);k?(k=P8(z,k),z=AT(z,k.lH(),k)):z=z.Gt.B.lH();k=Erv(this.app,D);x=x.aW();var X=this.app.getVideoData().DH;D=!X||isNaN(X)?0:Pd(this,X,D);return{airingStart:K,airingEnd:M,allowSeeking:this.app.Fi(),clipEnd:W.clipEnd,clipStart:W.clipStart,current:l,displayedStart:-1,duration:Q,ingestionTime:w,isAtLiveHead:S,loaded:b,seekableStart:z,
seekableEnd:k,offset:x,viewerLivestreamJoinMediaTime:D}};
g.R.isInline=function(){return this.app.isInline()};
g.R.setInline=function(Q){this.app.setInline(Q)};
g.R.VK=function(){return this.app.Zp().AO(!0)};
g.R.toggleSubtitles=function(){var Q=g.GZ(this.app.x6());Q&&Q.w3j()};
g.R.getPlayerSize=function(){var Q=this.app.hf().getPlayerSize();return{width:Q.width,height:Q.height}};
g.R.setCenterCrop=function(Q){this.app.hf().setCenterCrop(Q)};
g.R.getLoopVideo=function(){return this.app.getLoopVideo()};
g.R.setLoopVideo=function(Q){this.app.setLoopVideo(Q)};
var gsa="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(" "),
fOQ="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 MC={},Z_1=(MC["api.invalidparam"]=2,MC.auth=150,MC["drm.auth"]=150,MC["heartbeat.net"]=150,MC["heartbeat.servererror"]=150,MC["heartbeat.stop"]=150,MC["html5.unsupportedads"]=5,MC["fmt.noneavailable"]=5,MC["fmt.decode"]=5,MC["fmt.unplayable"]=5,MC["html5.missingapi"]=5,MC["html5.unsupportedlive"]=5,MC["drm.unavailable"]=5,MC["mrm.blocked"]=151,MC["embedder.identity.denied"]=152,MC);g.n(g.vd,nq);g.R=g.vd.prototype;g.R.isExternalMethodAvailable=function(Q,W){return this.state.G[Q]?!0:!!(this.state.S[Q]&&W&&Q8(W,Nfe))};
g.R.getBandwidthEstimate=function(){return CO(this.app.C().schedule)};
g.R.reportPlaybackIssue=function(Q){Q=Q===void 0?"":Q;var W=this.app.w7();W&&(Q={gpu:(0,g.a5)(),d:Q},W.handleError(new Gu("feedback",Q)))};
g.R.getInternalApi=function(){return Object.assign({},this.state.B)};
g.R.getInternalApiInterface=function(){return g.pC(this.state.B)};
g.R.queueNextVideo=function(Q,W,x,D,K){x=x===void 0?NaN:x;this.app.queueNextVideo(Q,W,x,D===void 0?"":D,K===void 0?"":K)};
g.R.R0=function(Q){Q=this.app.getPlayerStateObject(Q);return{isBuffering:g.r(Q,1),isCued:Q.isCued(),isDomPaused:g.r(Q,1024),isEnded:g.r(Q,2),isError:g.r(Q,128),isOrWillBePlaying:Q.isOrWillBePlaying(),isPaused:Q.isPaused(),isPlaying:Q.isPlaying(),isSeeking:g.r(Q,16),isUiSeeking:g.r(Q,32),isUnstarted:g.r(Q,64)}};
g.R.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.R.startSeekCsiAction=function(){this.app.v3().N.B=(0,g.a8)()};
g.R.Ej=function(Q,W,x){return this.getCurrentTime(Q===void 0?1:Q,W,x)};
g.R.seekToStreamTime=function(Q,W,x,D){var K=this.app;W=W===void 0?!0:W;var l=K.ek(1),M=0;l&&l.getStreamTimeOffset()&&!l.aW()&&(M=l.getStreamTimeOffset());NK(K,Q-M,W,x,1,D)};
g.R.getStreamTimeOffset=function(){return this.app.Zp().getStreamTimeOffset()};
g.R.seekToLiveHead=function(Q,W){var x=this.app.Zp().getVideoData();x&&x.isLivePlayback&&NK(this.app,Infinity,Q,W,1)};
g.R.requestSeekToWallTimeSeconds=function(Q,W){this.app.Zp().MY(Q,W)};
g.R.wIp=function(Q,W,x,D,K){this.seekTo(Q,W,x,D===void 0?1:D,K)};
g.R.sz3=function(Q,W,x,D){this.seekBy(Q,W,x,D,1)};
g.R.setVolume=function(Q,W){this.KJ(Q,W===void 0?!0:W)};
g.R.mute=function(Q){this.Ez(Q===void 0?!0:Q)};
g.R.unMute=function(Q){this.CJ(Q===void 0?!0:Q)};
g.R.syncVolume=function(){var Q=hga(this.app);dy(this.app,{volume:Q.volume,muted:Q.muted},!1)};
g.R.getAvailableQualityLabels=function(){return g.pm(this.app.Zp().VT(),function(Q){return Q.qualityLabel})};
g.R.channelSubscribed=function(){this.Wt("SUBSCRIBE",this.app.sx().ZS)};
g.R.channelUnsubscribed=function(){this.Wt("UNSUBSCRIBE",this.app.sx().ZS)};
g.R.setScreenLayer=function(Q){this.app.setScreenLayer(Q)};
g.R.getCurrentPlaylistSequence=function(){return this.app.w7().getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.R.getPlaylistSequenceForTime=function(Q){return this.app.w7().getPlaylistSequenceForTime(Q)};
g.R.shouldSendVisibilityState=function(){return!0};
g.R.confirmYpcRental=function(){this.app.Zp().BI("ypc_clickwrap")};
g.R.setHomeGroupInfo=function(Q){this.app.C().homeGroupInfo=Q};
g.R.setConnectedRemoteApps=function(Q){this.app.C().lF=Q};
g.R.setLivingRoomAppMode=function(Q){this.app.C().livingRoomAppMode=Kw("LIVING_ROOM_APP_MODE_UNSPECIFIED",Q,b$1)};
g.R.setEnablePrivacyFilter=function(Q){this.app.C().enablePrivacyFilter=Q===void 0?!1:Q};
g.R.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.R.addUtcCueRange=function(Q,W,x,D,K){return SiD(this.app,Q,W,x,D,K)};
g.R.hV=function(Q){Q=Q===void 0?1:Q;var W=this.N4(Q);if(Q=this.app.ek(Q)){Q=Q.getVideoData();W.hasProgressBarBoundaries=Q.hasProgressBarBoundaries();W.isPremiere=Q.isPremiere;W.itct=Q.fS;W.playerResponseCpn=Q.playerResponseCpn;var x;var D=Q.hasProgressBarBoundaries()&&((x=Q.progressBarStartPosition)==null?0:x.utcTimeMillis)?WZ(Q.progressBarStartPosition.utcTimeMillis):null;W.progressBarStartPositionUtcTimeMillis=D;var K;x=Q.hasProgressBarBoundaries()&&((K=Q.progressBarEndPosition)==null?0:K.utcTimeMillis)?
WZ(Q.progressBarEndPosition.utcTimeMillis):null;W.progressBarEndPositionUtcTimeMillis=x;W.ypcOriginalItct=Q.Wu;W.ypcPreview=Q.ypcPreview;W.paidContentOverlayText=WD1(Q);W.paidContentOverlayDurationMs=xSn(Q);Q.B&&kJ(Q.B)&&(W.usingLocalMedia="true");W.transitionEndpointAtEndOfStream=Q.transitionEndpointAtEndOfStream}return W};
g.R.getAdState=function(){return this.app.getAdState()};
g.R.isNotServable=function(Q){if(Q!==this.app.config.args.video_id)return!1;var W=(Q=this.app.Zp().getPlayerState())?Q.HI:null;return!!(Q&&W&&g.r(Q,128)&&LD5(W.errorCode)===5)};
g.R.supportsGaplessAudio=function(){return this.app.C().supportsGaplessAudio()};
g.R.supportsGaplessShorts=function(){return this.app.C().supportsGaplessShorts()};
g.R.enqueueVideoByPlayerVars=function(Q,W,x,D){x=x===void 0?Infinity:x;this.app.enqueueVideoByPlayerVars(Q,W,x,D===void 0?"":D)};
g.R.clearQueue=function(){this.app.clearQueue()};
g.R.Q1=function(){return g.oN(this)};
g.R.sendAbandonmentPing=function(){var Q;(Q=this.app.w7())==null||Q.sendAbandonmentPing()};
g.R.setAutonavState=function(Q,W){W=W===void 0?!1:W;if(this.j("web_player_autonav_use_server_provided_state")&&!W&&(W=this.app.sx(),W==null?0:FS(W))){if(this.j("web_player_autonav_server_provided_state_pause_killswitch"))return;if(Q===3)W.autonavState!==3&&(W.wZ=W.autonavState);else if(W.wZ!==void 0)Q=W.wZ,W.wZ=void 0;else return}YiF(this.app,Q)};
g.R.setAutonav=function(Q,W){this.setAutonavState(Q?2:1,W===void 0?!1:W)};
g.R.setLoopRange=function(Q){this.app.setLoopRange(Q)};
g.R.getLoopRange=function(){return this.app.getLoopRange()};
g.R.hasSupportedAudio51Tracks=function(){return this.app.Zp().hasSupportedAudio51Tracks()};
g.R.setUserAudio51Preference=function(Q,W){this.app.Zp().setUserAudio51Preference(Q,W===void 0?!1:W)};
g.R.getUserAudio51Preference=function(){return this.app.Zp().getUserAudio51Preference()};
g.R.setProximaLatencyPreference=function(Q){this.app.Zp().setProximaLatencyPreference(Q)};
g.R.getProximaLatencyPreference=function(){return this.app.Zp().getProximaLatencyPreference()};
g.R.isProximaLatencyEligible=function(){return this.app.Zp().isProximaLatencyEligible()};
g.R.getAppState=function(){return this.app.getAppState()};
g.R.updateLastActiveTime=function(){JV()};
g.R.setBlackout=function(Q){this.app.setBlackout(Q)};
g.R.setUserEngagement=function(Q){this.app.C().nt!==Q&&(this.app.C().nt=Q,this.app.Zp().S6())};
g.R.updateSubtitlesUserSettings=function(Q,W){W=W===void 0?!0:W;g.GZ(this.app.x6()).sE(Q,W)};
g.R.getCaptionWindowContainerId=function(){var Q=g.GZ(this.app.x6());return Q?Q.getCaptionWindowContainerId():""};
g.R.toggleSubtitlesOn=function(){var Q=g.GZ(this.app.x6());Q&&Q.BT()};
g.R.isSubtitlesOn=function(){var Q=g.GZ(this.app.x6());return Q?Q.isSubtitlesOn():!1};
g.R.getPlayerResponse=function(Q){return(Q=this.app.ek(Q))?Q.getVideoData().getPlayerResponse():null};
g.R.MK=function(){return this.getPlayerResponse(1)};
g.R.getEmbeddedPlayerResponse=function(){return this.app.Zp().getVideoData().getEmbeddedPlayerResponse()};
g.R.getWatchNextResponse=function(Q){return(Q=this.app.ek(Q))?Q.getVideoData().getWatchNextResponse():null};
g.R.T7=function(){return this.getWatchNextResponse(1)};
g.R.getHeartbeatResponse=function(Q){return(Q=this.app.ek(Q))?Q.getVideoData().getHeartbeatResponse():null};
g.R.G7=function(){return this.getHeartbeatResponse(1)};
g.R.getStoryboardFrame=function(Q,W){var x=this.app.Vv();if(!x)return null;W=x.levels[W];return W?(Q=g.m5(W,Q))?{column:Q.column,columns:Q.columns,height:Q.Xo,row:Q.row,rows:Q.rows,url:Q.url,width:Q.ri}:null:null};
g.R.getStoryboardFrameIndex=function(Q,W){var x=this.app.Vv();if(!x)return-1;W=x.levels[W];if(!W)return-1;Q-=this.aW();return W.r4(Q)};
g.R.getStoryboardLevel=function(Q){var W=this.app.Vv();return W?(W=W.levels[Q])?{index:Q,intervalMs:W.B,maxFrameIndex:W.bR(),minFrameIndex:W.MX()}:null:null};
g.R.getNumberOfStoryboardLevels=function(){var Q=this.app.Vv();return Q?Q.levels.length:0};
g.R.NK=function(){return this.getAudioTrack(1)};
g.R.getAudioTrack=function(Q){return(Q=this.app.ek(Q))?Q.getAudioTrack():this.app.getVideoData().CR};
g.R.setAudioTrack=function(Q,W,x){this.UM()===3&&dZ(this.app.x6()).Hk("control_set_audio_track",Q);return(x=this.app.ek(x))?x.GJ(Q,W):!1};
g.R.i23=function(Q,W){return this.setAudioTrack(Q,W,1)};
g.R.JV=function(){return this.getAvailableAudioTracks(1)};
g.R.getAvailableAudioTracks=function(Q){return this.app.ek(Q).getAvailableAudioTracks()};
g.R.getMaxPlaybackQuality=function(){var Q=this.app.Zp();return Q.getVideoData().U?Sw(Q.GD()):"unknown"};
g.R.getUserPlaybackQualityPreference=function(){return this.app.Zp().getUserPlaybackQualityPreference()};
g.R.getSubtitlesUserSettings=function(){var Q=g.GZ(this.app.x6());return Q?Q.Co():null};
g.R.resetSubtitlesUserSettings=function(){g.GZ(this.app.x6()).d_9()};
g.R.setMinimized=function(Q){this.app.setMinimized(Q)};
g.R.setOverlayVisibility=function(Q){this.publish("overlayvisibilitychange",Q)};
g.R.setInlinePreview=function(Q){this.app.setInlinePreview(Q)};
g.R.setSqueezeback=function(Q){this.app.setSqueezeback(Q)};
g.R.setGlobalCrop=function(Q){this.app.hf().setGlobalCrop(Q)};
g.R.setAppFullscreen=function(Q){this.app.Cu(Q?4:0)};
g.R.fR=function(){return this.app.fR()};
g.R.getVisibilityState=function(){return this.fR().getVisibilityState(this.m$(),this.fY()||g.q4(this.app.C()),this.isMinimized(),this.isInline(),this.app.J4(),this.app.e1(),this.app.Wo(),this.app.cz())};
g.R.isMutedByMutedAutoplay=function(){return this.app.Dl};
g.R.isMutedByEmbedsMutedAutoplay=function(){return uL(this.app)};
g.R.setInternalSize=function(Q,W){this.app.hf().setInternalSize(new g.oZ(Q,W))};
g.R.aW=function(){var Q=this.app.ek();return Q?Q.aW():0};
g.R.isMinimized=function(){return this.app.isMinimized()};
g.R.J4=function(){return this.app.J4()};
g.R.m$=function(){var Q=this.app.w7();return!!Q&&Q.m$()};
g.R.setSafetyMode=function(Q){this.app.C().enableSafetyMode=Q};
g.R.canPlayType=function(Q){return this.app.canPlayType(Q)};
g.R.updatePlaylist=function(Q){if(Q){var W=this.getPlaylistId(),x=!1;W&&W!==Q.list&&(x=!0);Q.external_list!==void 0&&(this.app.Nn=D0(!1,Q.external_list));var D=Q.video;(W=this.app.getPlaylist())&&!x?this.isFullscreen()&&((x=D[W.index])&&x.encrypted_id!==g.uX(W).videoId||(Q.index=W.index)):pi(this.app,{list:Q.list,index:Q.index,playlist_length:D.length});H7F(this.app.getPlaylist(),Q);this.WD("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.R.updateVideoData=function(Q,W){g.r0(this.app.Zp().getVideoData(),Q,W)};
g.R.updateEnvironmentData=function(Q){g5(this.app.C(),Q,!1)};
g.R.O2S=function(Q){this.app.sendVideoStatsEngageEvent(Q,1)};
g.R.productsInVideoVisibilityUpdated=function(Q){this.publish("changeProductsInVideoVisibility",Q)};
g.R.isAtLiveHead=function(Q,W){return this.app.isAtLiveHead(Q,W===void 0?!0:W)};
g.R.getVideoAspectRatio=function(){return this.app.hf().getVideoAspectRatio()};
g.R.getPreferredQuality=function(){var Q=this.app.w7();return Q?Q.getPreferredQuality():"unknown"};
g.R.getPlaybackQualityLabel=function(Q){if(Q=this.app.ek(Q)){var W,x;return((x=(W=Q.getVideoData().U)==null?void 0:W.video)==null?void 0:x.qualityLabel)||""}return""};
g.R.setPlaybackQualityRange=function(Q,W,x,D){(D=this.app.ek(D))&&D.D2(g.jw(Q,W||Q,!0,"m"),!0,x)};
g.R.S45=function(Q,W,x){this.setPlaybackQualityRange(Q,W,x,1)};
g.R.onAdUxClicked=function(Q,W){this.publish("aduxclicked",Q,W)};
g.R.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.R.dispatchReduxAction=function(Q){g.xN.dispatch(Q)};
g.R.highlightSettingsMenuItem=function(Q){this.publish("highlightSettingsMenu",Q)};
g.R.openSettingsMenuItem=function(Q){this.publish("openSettingsMenuItem",Q)};
g.R.L5=function(Q,W){this.state.U.subscribe(Q,W)};
g.R.D_3=function(Q,W){this.state.U.unsubscribe(Q,W)};
g.R.FP=function(Q,W){this.cueVideoByPlayerVars(Q,W===void 0?1:W)};
g.R.yOt=function(Q,W,x,D){this.loadVideoByPlayerVars(Q,W,x===void 0?1:x,D)};
g.R.hx3=function(Q,W,x,D){this.preloadVideoByPlayerVars(Q,W===void 0?1:W,x,D)};
g.R.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.R.eU=function(){return g.oN(this).eU()};
g.R.AK=function(){return g.oN(this).AK()};
g.R.rY=function(){return g.oN(this).rY()};
g.R.Vp=function(){return this.Q1().Vp()};
g.R.mC=function(){var Q=g.i2.apply(0,arguments),W;(W=this.Vp()).mC.apply(W,g.C(Q))};
g.R.hA=function(){this.Vp().hA()};
g.R.b5=function(){this.Vp().b5()};
g.R.TC=function(){this.Vp().hide()};
g.R.LJ=function(Q,W,x,D,K,l,M,w){this.Vp().LJ(Q,W,x,D,K,l,M,w)};
g.R.FL=function(Q,W){this.Vp().FL(Q,W)};
g.R.CF=function(Q,W,x,D,K){this.Q1().CF(Q,W,x,D,K)};
g.R.pG=function(Q){this.Vp().setEnabled(Q)};
g.R.yR=function(Q,W){this.Q1().yR(Q,W)};
g.R.Cm=function(Q,W){this.Q1().Cm(Q,W)};
g.R.Hd=function(Q,W){this.Q1().Hd(Q,W)};
g.R.rq=function(){this.Q1().rq()};
g.R.Gh=function(Q,W){this.Q1().Gh(Q,W)};
g.R.mL=xQ(4);g.R.yW=xQ(6);g.R.Re=xQ(9);g.R.MR=xQ(12);g.R.renderChapterSeekingAnimation=function(Q,W,x){this.Q1().renderChapterSeekingAnimation(Q,W,x)};
g.R.fq=function(){this.Q1().fq()};
g.R.getWebPlayerContextConfig=function(){return this.app.C().getWebPlayerContextConfig()};
g.R.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
g.R.pY=function(){var Q=this.app.w7();return Q?Q.pY():""};g.n(g.ho,g.vd);g.R=g.ho.prototype;g.R.QT=function(Q,W,x,D,K,l,M){return this.app.QT(Q,W,x,D,K,l,M)};
g.R.mS=function(){return this.app.mS()};
g.R.eA=xQ(14);g.R.x6=function(){return this.app.x6()};
g.R.Rt=function(){var Q=this.x6().CZ.get("endscreen");return!!Q&&Q.Rt()};
g.R.getRootNode=function(){return this.hf().element};
g.R.C=function(){return this.app.C()};
g.R.wq=xQ(17);g.R.XZ=function(Q){return this.app.XZ(Q)};
g.R.Xy=function(){var Q;return((Q=g.oN(this))==null?void 0:Q.Xy())||null};
g.R.gI=function(){var Q;return(Q=this.app.w7())==null?void 0:Q.gI()};
g.R.getPlayerStateObject=function(Q){return this.app.getPlayerStateObject(Q)};
g.R.hf=function(){return this.app.hf()};
g.R.getPlaylist=function(){return this.app.getPlaylist()};
g.R.getVideoData=function(Q,W){W=W===void 0?!1:W;var x=this.app.ek(Q);if(!x)return null;x=x.getVideoData();if(W)var D=x;else if(x.enableServerStitchedDai&&Q===2||g.TQ(x)&&Q!==1)a:{x=this.app;W=x.getVideoData();if(x.oU){Q=x.oU;x=x.getCurrentTime();if(Q.Nk)var K=void 0;else{var l=void 0;Q.UV&&(l=Q.D.get(Q.UV));if(!l){l=kcD(Q,x*1E3);var M=(K=l)==null?void 0:K.cpn;Q.UV?M&&Q.UV!==M&&Q.T1({cpcnm:M+"_"+Q.UV,cmt:x.toFixed(3)}):Q.T1({cpcna:M,cmt:x.toFixed(3)})}K=(D=l)==null?void 0:D.videoData}W=K||W}else if(x.nS&&
x.w7()){D=x.nS.getVideoData(Q);break a}D=W}else D=x;return D};
g.R.oK=function(){var Q;return((Q=this.app.w7())==null?void 0:Q.oK())||null};
g.R.Vv=function(Q){return this.app.Vv(Q)};
g.R.cz=function(){return this.app.cz()};
g.R.isHdr=function(){var Q=this.app.w7();return Q?Q.isHdr():!1};
g.R.rU=function(){return this.app.rU()};
g.R.isEmbedsShortsMode=function(){var Q=g.oN(this),W=this.getVideoData();Q=Q?Q.eC:this.getPlayerSize();var x=!!this.getPlaylist();return!(!W||!W.isEmbedsShortsMode(new g.oZ(Q.width,Q.height),x))};
g.R.Fa=function(Q){this.app.Fa(Q)};
g.R.dH=function(Q,W,x,D,K){this.app.tK(Q,W,x,D,K)};
g.R.Hx=function(Q,W){this.app.Hx(Q,W)};
g.R.playVideo=function(Q,W){try{if(this.getPresentingPlayerType()===3){dZ(this.app.x6()).Hk("control_play");return}if(!Q&&this.getPresentingPlayerType()===2){var x=AJ(this.app.x6());if(x&&Was(x))return}}catch(D){g.ql(D)}this.app.playVideo(Q,W)};
g.R.stopVideo=function(Q){this.app.ek(Q).stopVideo()};
g.R.WM=function(Q){this.app.ek(Q).WM()};
g.R.addEventListener=function(Q,W){this.state.D.subscribe(Q,W)};
g.R.removeEventListener=function(Q,W){this.state.D.unsubscribe(Q,W)};
g.R.LV=function(Q){this.app.LV(Q)};
g.R.setPlaybackQuality=function(Q,W){this.setPlaybackQualityRange(Q,Q,W)};
g.R.VT=function(){var Q={},W=this.app.w7().VT();W=g.V(W);for(var x=W.next();!x.done;x=W.next())x=x.value,Q[x.quality]=x;return Q};
g.R.cR=function(){return this.app.w7().cR()};
g.R.Mc=xQ(22);g.R.hC=function(Q){this.app.hC(Q);Q&&YiF(this.app,Q)};
g.R.getVideoUrl=function(Q,W,x,D){var K=this.getPresentingPlayerType(),l=K===2;if(D&&l||K===3)l=!1,K=1;D=this.getVideoData(K);if(!D)return"";var M;Q||D.isLivePlayback||(M=Math.floor(this.getCurrentTime(K)));Q=l?void 0:this.getPlaylistId()||void 0;W&&Q==="WL"&&(Q=void 0);return this.app.getVideoUrl(D.videoId,Q,M,W,x)};
g.R.dI=xQ(24);g.R.jH=xQ(29);g.R.OG=function(Q){var W;(W=this.app.w7())==null||W.OG(Q)};
g.R.MC=xQ(34);g.R.jL=xQ(39);g.R.Vs=function(Q,W){this.x6().Vs(Q,W)};
g.R.Vx=function(){var Q=g.qt(this.x6());return!!Q&&Q.Vx()};
g.R.Rn=function(){var Q=g.qt(this.x6());return!!Q&&Q.Rn()};
g.R.BU=function(Q,W,x){var D=g.qt(this.x6());D&&D.BU(Q,W,x)};
g.R.pC=xQ(40);g.R.ZU=function(){var Q;(Q=this.app.w7())==null||Q.zf()};
g.R.UF=function(Q){this.WD("onVideoAreaChange");this.WD(Q?"onShowControls":"onHideControls")};
g.R.Lv=function(Q,W){var x=g.oN(this);if(x)return x.Lv(Q,W);Q=this.app.hf().ZB();return new g.lq(0,0,Q.width,Q.height)};
g.R.aZ=function(){var Q=this.x6().CZ.get("heartbeat");return!!Q&&Q.aZ()};
g.R.Fi=function(){var Q=this.C();if(Q.X3||Q.disableSeek)return!1;var W=this.app.w7();if(!W)return!1;var x=W.getVideoData();if(!x.ET()||g.Gr(x)||this.getPresentingPlayerType()===2&&!this.app.It()||x.aQ()&&this.getPresentingPlayerType(!0)===2||W.vM()&&this.getPresentingPlayerType()!==3)return!1;Q=g.mr(Q);return g.SY(Q)&&!x.Tc||uL(this.app)?!1:!0};
g.R.hY=function(){var Q=this.app.w7();return Q?Q.U1():!1};
g.R.isLifaAdPlaying=function(){var Q,W=(Q=this.getVideoData())==null?void 0:Q.aQ();return W?this.getPresentingPlayerType(W)===2:!1};
g.R.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.R.hs=function(){var Q;(Q=this.app.w7())==null||Q.hs()};
g.R.sendVideoStatsEngageEvent=function(Q,W,x){this.app.sendVideoStatsEngageEvent(Q,x,W)};
g.R.HV=function(Q,W,x){this.app.FD(Q,W,x)};
g.R.RI=function(Q,W){this.app.Bg(Q,W)};
g.R.jQ=function(Q,W){Fz4(this.app,Q,W)};
g.R.Cf=xQ(43);g.R.tq=function(Q){return this.app.tq(Q)};
g.R.BI=function(Q,W){var x;(x=this.app.ek(W))==null||x.BI(Q)};
g.R.vM=function(){var Q=this.app.ek();return Q?Q.vM():!0};
g.R.Yr=function(){var Q=this.getVideoData();return!!Q&&(Q.Yr()||!!Q.hlsFormats||!!Q.gE)};
g.R.getPlaybackRate=function(){return this.app.Zp().getPlaybackRate()};
g.R.setPlaybackRate=function(Q,W){this.app.setPlaybackRate(Q,W)};
g.R.DG=function(){return this.app.DG()};
g.R.v3=function(){return this.app.v3()};
g.R.jU=function(Q){return this.app.jU(Q)};
g.R.createClientVe=function(Q,W,x,D){this.C().s3&&this.app.AE.createClientVe(Q,W,x,D===void 0?!1:D)};
g.R.createServerVe=function(Q,W,x){this.C().s3&&this.app.AE.createServerVe(Q,W,x===void 0?!1:x)};
g.R.setTrackingParams=function(Q,W){this.C().s3&&this.app.AE.setTrackingParams(Q,W)};
g.R.logClick=function(Q,W){this.C().s3&&(this.app.AE.click(Q,W),this.publish("veClickLogged",Q))};
g.R.logVisibility=function(Q,W,x){this.C().s3&&this.app.AE.hO(Q,W,x)};
g.R.hasVe=function(Q){return this.C().s3?this.app.AE.hasVe(Q):!1};
g.R.destroyVe=function(Q){this.C().s3&&this.app.AE.destroyVe(Q)};
g.R.getPresentingPlayerType=function(Q){return this.app.getPresentingPlayerType(Q)};
g.R.qP=function(){this.app.qP()};
g.R.rL=xQ(45);g.R.CY=function(Q){this.app.CY(Q)};
g.R.xT=function(){this.app.xT()};
g.R.QM=function(){return this.app.QM()};
g.R.addPlayerResponseForAssociation=function(Q){this.app.addPlayerResponseForAssociation(Q)};
g.R.finishSegmentByCpn=function(Q,W,x){return this.app.finishSegmentByCpn(Q,W,x)};
g.R.Uf=function(Q,W,x,D,K,l,M){return this.app.Uf(Q,W,x,D,K,l,M)};
g.R.WC=function(Q,W,x,D,K,l,M){return this.app.WC(Q,W,x,D,K,l,M)};
g.R.Me=function(){return this.app.Me()};
g.R.gJ=function(Q){this.app.gJ(Q)};
g.R.lR=function(Q,W){W=W===void 0?Infinity:W;this.app.lR(Q===void 0?-1:Q,W)};
g.R.Pq=function(Q){var W;(W=g.GZ(this.x6()))==null||W.Pq(Q)};
g.R.Ru=function(Q,W,x){this.app.Ru(Q,W,x)};
g.R.J9=function(){return this.app.J9()};
g.R.sS=function(Q,W,x){this.app.sS(Q,W,x===void 0?0:x)};
g.R.PK=function(){return this.app.PK()};
g.R.It=function(){return this.app.It()};
g.R.Fh=function(Q,W,x){return this.app.Fh(Q,W,x)};
g.R.qj=function(Q,W,x,D){x=x===void 0?!1:x;var K;(K=this.app.ek(D))==null||K.qj(Q,W,x)};
g.R.c_=function(Q,W){this.publish("aduxmouseover",Q,W)};
g.R.Ji=function(Q,W){this.publish("aduxmouseout",Q,W)};
g.R.nH=function(Q,W){this.publish("muteadaccepted",Q,W)};
g.R.Ho=function(){return this.app.hf().Ho()};
g.R.As=function(Q){this.app.hf().As(Q)};
g.R.n7=function(Q){return Q?this.app.EF():(Q=this.app.w7())?Q.n7():!1};
g.R.Y4=function(Q){this.app.Y4(Q)};
g.R.F_=function(){this.app.Zp().F_()};
g.R.qb=function(){var Q;(Q=this.app.w7())==null||Q.qb()};
g.R.Xq=function(){this.app.Xq()};
g.R.getGetAdBreakContext=function(){var Q=this.app.Zp();return Q.getVideoData().getGetAdBreakContext(Q.getCurrentTime(),Q.aW())};
g.R.Zi=function(Q,W){var x;(x=this.app.w7())==null||x.Zi(Q,W)};
g.R.Vf=function(){var Q;return((Q=this.app.w7())==null?void 0:Q.Vf())||!1};
g.R.nV=xQ(47);g.R.Yv=xQ(49);var IN;g.n($W,me);$W.prototype.Un=function(Q,W){Q=me.prototype.Un.call(this,Q,W);return Object.assign({},Q,this.requestHeaders)};g.R=g.cd.prototype;g.R.addCueRange=function(Q){this.xf.addCueRange(Q)};
g.R.FD=function(Q,W){this.xf.FD(Q,W)};
g.R.Zc=function(){this.xf.Zc()};
g.R.XM=function(){return this.xf.XM()};
g.R.J$=function(){return this.xf.J$()};
g.R.zf=function(){this.xf.ZU()};
g.R.D6=function(Q,W){this.xf.D6(Q,W)};
g.R.jA=function(Q,W){return this.xf.jA(Q,W)};
g.R.nm=function(Q){this.xf.nm(Q)};
g.R.W0=function(){return this.xf.W0()};
g.R.getAudioTrack=function(){return this.xf.getAudioTrack()};
g.R.getAvailableAudioTracks=function(){return this.xf.getAvailableAudioTracks()};
g.R.VT=function(){return this.xf.VT()};
g.R.cR=function(){return this.xf.cR()};
g.R.Jv=function(){return this.xf.Jv()};
g.R.Fw=function(){return this.xf.Fw()};
g.R.cZ=function(){return this.xf.cZ()};
g.R.getCurrentTime=function(){return this.xf.getCurrentTime()};
g.R.D1=function(){return this.xf.D1()};
g.R.eM=function(){return this.xf.eM()};
g.R.AO=function(Q){return this.xf.AO(Q)};
g.R.getDuration=function(Q){return this.xf.getDuration(Q)};
g.R.Qk=function(){return this.xf.Qk()};
g.R.LZ=function(){return this.xf.LZ()};
g.R.U1=function(){return this.xf.U1()};
g.R.J9=function(){return this.xf.J9()};
g.R.xQ=function(){return this.xf.xQ()};
g.R.wq=xQ(16);g.R.Mz=function(){return this.xf.Mz()};
g.R.q5=function(){return this.xf.q5()};
g.R.uW=function(Q){return this.xf.uW(Q)};
g.R.DG=function(){return this.xf.DG()};
g.R.fv=function(){return this.xf.fv()};
g.R.Jn=function(){return this.xf.Jn()};
g.R.lH=function(){return this.xf.lH()};
g.R.QI=function(Q,W,x){return this.xf.QI(Q,W,x)};
g.R.Mc=xQ(21);g.R.getPlaybackQuality=function(){return this.xf.getPlaybackQuality()};
g.R.getPlaybackRate=function(){return this.xf.getPlaybackRate()};
g.R.getPlayerState=function(){return this.xf.getPlayerState()};
g.R.getPlayerType=function(){return this.xf.getPlayerType()};
g.R.getPlaylistSequenceForTime=function(Q){return this.xf.getPlaylistSequenceForTime(Q)};
g.R.jU=function(Q){return this.xf.jU(Q)};
g.R.pY=function(){return this.xf.pY()};
g.R.getPreferredQuality=function(){return this.xf.getPreferredQuality()};
g.R.jr=function(){return this.xf.jr()};
g.R.getProximaLatencyPreference=function(){return this.xf.getProximaLatencyPreference()};
g.R.GD=function(){return this.xf.GD()};
g.R.Vv=function(){return this.getVideoData().Vv()};
g.R.getStoryboardFormat=function(){return this.getVideoData().getStoryboardFormat()};
g.R.getStreamTimeOffset=function(){return this.xf.getStreamTimeOffset()};
g.R.X4=function(){return this.xf.X4()};
g.R.aW=function(){return this.xf.aW()};
g.R.gI=function(){return this.xf.gI()};
g.R.getUserAudio51Preference=function(){return this.xf.getUserAudio51Preference()};
g.R.getUserPlaybackQualityPreference=function(){return this.xf.getUserPlaybackQualityPreference()};
g.R.getVideoData=function(){return this.xf.getVideoData()};
g.R.oK=function(){return this.xf.oK()};
g.R.XX=function(){return this.xf.XX()};
g.R.getVideoLoadedFraction=function(){if(g.tf(this.getVideoData()))return 1;var Q=this.xf.DG();return Q?Q.Lq():0};
g.R.Gi=function(Q){this.xf.Gi(Q)};
g.R.handleError=function(Q){this.xf.handleError(Q)};
g.R.Bo=function(Q){this.xf.Bo(Q)};
g.R.O1=function(Q){this.xf.O1(Q)};
g.R.Cf=xQ(42);g.R.vM=function(){return this.xf.vM()};
g.R.hasSupportedAudio51Tracks=function(){return this.xf.hasSupportedAudio51Tracks()};
g.R.YI=function(){return this.xf.YI()};
g.R.m$=function(){return this.xf.m$()};
g.R.isAtLiveHead=function(Q,W){return this.xf.isAtLiveHead(Q,W)};
g.R.G6=function(){return this.xf.G6()};
g.R.isGapless=function(){return this.xf.isGapless()};
g.R.isHdr=function(){return this.xf.isHdr()};
g.R.Vr=function(){return this.xf.Vr()};
g.R.HY=function(){return this.xf.HY()};
g.R.Vf=function(){return this.xf.Vf()};
g.R.isProximaLatencyEligible=function(){return this.xf.isProximaLatencyEligible()};
g.R.PK=function(){return this.xf.PK()};
g.R.Z1=function(Q){var W;return!((W=this.xf.Bt)==null||!W.Z1(Q))};
g.R.CE=function(){return this.xf.CE()};
g.R.AL=function(){this.xf.AL()};
g.R.Bw=function(Q){this.xf.Bw(Q)};
g.R.lC=function(Q){this.xf.lC(Q)};
g.R.k$=function(){this.xf.k$()};
g.R.gh=function(){this.xf.gh()};
g.R.zd=function(){this.xf.zd()};
g.R.iC=function(){this.xf.iC()};
g.R.eJ=function(Q){this.xf.eJ(Q)};
g.R.W8=xQ(53);g.R.jH=xQ(28);g.R.yy=function(){this.xf.yy()};
g.R.pauseVideo=function(Q){this.xf.pauseVideo(Q)};
g.R.uQ=function(Q){this.xf.uQ(Q)};
g.R.qa=function(Q){this.xf.qa(Q)};
g.R.playVideo=function(Q,W){return this.xf.playVideo(Q,W)};
g.R.vx=function(Q,W,x,D,K){this.xf.vx(Q,W,x,D,K)};
g.R.MC=xQ(33);g.R.jL=xQ(38);g.R.IJ=function(Q,W,x,D,K){this.xf.IJ(Q,W,x,D,K)};
g.R.qj=function(Q,W,x){this.xf.qj(Q,W,x)};
g.R.OG=function(Q){this.xf.OG(Q)};
g.R.Zi=function(Q,W){this.xf.oW().Zi(Q,W)};
g.R.To=function(Q,W,x){this.xf.To(Q,W,x)};
g.R.zt=function(Q){this.xf.zt(Q)};
g.R.O5=function(Q,W,x){this.xf.O5(Q,W,x)};
g.R.Wb=function(Q){this.xf.Wb(Q)};
g.R.C8=function(Q,W){this.xf.C8(Q,W)};
g.R.bV=function(Q,W,x,D,K,l,M,w){this.xf.bV(Q,W,x,D,K,l,M,w)};
g.R.Pb=function(Q){this.xf.Pb(Q)};
g.R.WM=function(Q,W){this.xf.WM(Q,W)};
g.R.GM=function(Q,W){this.xf.GM(Q,W)};
g.R.removeCueRange=function(Q){this.xf.removeCueRange(Q)};
g.R.Bg=function(Q){this.xf.Bg(Q)};
g.R.jQ=function(Q){return this.xf.tA.jQ(Q)};
g.R.j6=function(Q){this.xf.j6(Q)};
g.R.GK=function(Q,W,x){this.xf.GK(Q,W,x)};
g.R.UA=function(){this.xf.UA()};
g.R.MY=function(Q,W){this.xf.MY(Q,W)};
g.R.q1=function(){this.xf.q1()};
g.R.seekTo=function(Q,W){this.xf.seekTo(Q,W)};
g.R.sendAbandonmentPing=function(){this.xf.sendAbandonmentPing()};
g.R.sendVideoStatsEngageEvent=function(Q,W){this.xf.sendVideoStatsEngageEvent(Q,W)};
g.R.Kd=function(Q,W){this.xf.Kd(Q,W)};
g.R.setLoop=function(Q){this.xf.setLoop(Q)};
g.R.oP=function(){this.xf.oP()};
g.R.setMediaElement=function(Q){this.xf.setMediaElement(Q)};
g.R.bQ=function(Q,W,x,D){this.xf.bQ(Q,W,x,D)};
g.R.setPlaybackRate=function(Q){this.xf.setPlaybackRate(Q)};
g.R.dH=function(Q,W,x,D,K,l){this.xf.dH(Q,W,x,D,K,l)};
g.R.k5=function(Q,W){this.xf.k5(Q,W)};
g.R.BI=function(Q){this.xf.BI(Q)};
g.R.setProximaLatencyPreference=function(Q){this.xf.setProximaLatencyPreference(Q)};
g.R.J6=function(Q){this.xf.J6(Q)};
g.R.BH=function(){this.xf.BH()};
g.R.wD=function(Q){this.xf.wD(Q)};
g.R.setUserAudio51Preference=function(Q,W){this.xf.setUserAudio51Preference(Q,W)};
g.R.D2=function(Q,W,x){this.xf.D2(Q,W,x)};
g.R.s2=function(){return this.xf.s2()};
g.R.hs=function(){this.xf.hs()};
g.R.n7=function(){return this.xf.n7()};
g.R.A7=function(Q){this.xf.A7(Q)};
g.R.Jl=function(){this.xf.Jl()};
g.R.cH=function(Q){this.xf.cH(Q)};
g.R.stopVideo=function(){this.xf.stopVideo()};
g.R.subscribe=function(Q,W,x){return this.xf.subscribe(Q,W,x)};
g.R.xJ=function(Q,W){this.xf.xJ(Q,W)};
g.R.togglePictureInPicture=function(){this.xf.togglePictureInPicture()};
g.R.tq=function(Q,W){return this.xf.tA.tq(Q,W)};
g.R.unsubscribe=function(Q,W,x){return this.xf.unsubscribe(Q,W,x)};
g.R.MP=function(Q,W){this.xf.MP(Q,W)};
g.R.GJ=function(Q,W){return this.xf.GJ(Q,W)};
g.R.F_=function(){this.xf.F_()};
g.R.S6=function(){this.xf.S6()};
g.R.Oh=function(Q){this.xf.Oh(Q)};
g.R.qb=function(){this.xf.qb()};
g.R.q9=function(){this.xf.q9()};g.n(g.y0,g.ze);g.R=g.y0.prototype;g.R.show=function(){var Q=this.J_();g.ze.prototype.show.call(this);this.KS&&(this.S.W(window,"blur",this.X0),this.S.W(e9(this),"click",this.h1));Q||this.publish("show",!0)};
g.R.hide=function(){var Q=this.J_();g.ze.prototype.hide.call(this);FDh(this);Q&&this.publish("show",!1)};
g.R.jt=function(Q,W){this.U=Q;this.uj.show();W?(this.T||(this.T=this.S.W(this.J,"appresize",this.Nv)),this.Nv()):this.T&&(this.S.mJ(this.T),this.T=void 0)};
g.R.sW=function(){this.U&&this.element&&(this.U.getAttribute("aria-haspopup"),this.U.setAttribute("aria-expanded","true"),this.focus())};
g.R.Nv=function(){var Q=g.oN(this.J);this.U&&Q.CF(this.element,this.U)};
g.R.X0=function(){var Q=this.J_();FDh(this);this.uj.hide();Q&&this.publish("show",!1)};
g.R.h1=function(Q){var W=pw(Q);W&&(g.jh(this.element,W)||this.U&&g.jh(this.U,W)||!g.pb(Q))||this.X0()};
g.R.J_=function(){return this.md&&this.uj.state!==4};g.n(Za,g.y0);Za.prototype.jt=function(){g.y0.prototype.jt.call(this);this.dialog.focus()};g.n(g.rZ,g.ze);g.rZ.prototype.setIcon=function(Q){this.updateValue("icon",Q)};
g.rZ.prototype.updateValue=function(Q,W){g.ze.prototype.updateValue.call(this,Q,W);this.publish("size-change")};g.bn={qN:15,my9:14,Myj:13,aL:12,B1:11,DD:10,cS:9,uJ:8,AUDIO:7,SUBTITLES:6,SLEEP_TIMER:5,x0:4,Tk:3,Ckj:2,REMOTE:1,WEj: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.n(OX,g.rZ);OX.prototype.rG=function(Q){this.U&&this.J.logVisibility(this.element,this.B&&Q)};
OX.prototype.N=function(){var Q,W,x=(Q=this.J.getVideoData())==null?void 0:(W=Q.accountLinkingConfig)==null?void 0:W.linked;if(x&&!this.B){var D;Q=(D=this.J.getVideoData())==null?void 0:D.accountLinkingConfig;this.setIcon(v4());var K;g.Lq(this,EX(Q==null?void 0:(K=Q.menuData)==null?void 0:K.connectedMenuLabel));var l,M,w;this.D=new Za(this.J,EX(Q==null?void 0:(l=Q.menuData)==null?void 0:l.connectedDialogTitle),EX(Q==null?void 0:(M=Q.menuData)==null?void 0:M.connectedDialogMessage),EX(Q==null?void 0:
(w=Q.menuData)==null?void 0:w.confirmButtonText));g.y(this,this.D);var S;D=(Q==null?void 0:(S=Q.menuData)==null?void 0:S.trackingParams)||null;(this.U=!!D)&&this.J.setTrackingParams(this.element,D);this.F0.XE(this);this.B=!0}else!x&&this.B&&(this.F0.le(this),this.B=!1)};
OX.prototype.onClick=function(){this.U&&this.J.logClick(this.element);this.F0.X0();this.D&&this.D.jt()};g.n(Fh,g.N);Fh.prototype.j=function(Q){return this.api.j(Q)};g.n(to,Fh);to.prototype.onVideoDataChange=function(Q){if(!Q.accountLinkingConfig){var W,x=(W=Q.getPlayerResponse())==null?void 0:W.accountLinkingConfig;Q.accountLinkingConfig=x}var D;if(W=(D=Q.accountLinkingConfig)==null?void 0:D.alsParam)Q.Cl=W};
to.prototype.setAccountLinkState=function(Q){this.api.getVideoData().Cl=Q;this.api.ZU()};
to.prototype.updateAccountLinkingConfig=function(Q){var W=this.api.getVideoData(),x=W.accountLinkingConfig;x&&(x.linked=Q);this.api.publish("videodatachange","dataupdated",W,this.api.getPresentingPlayerType())};g.n(W9,Fh);
W9.prototype.U=function(Q){var W=Q.getId(),x=this.api.getVideoData(1),D=!this.api.isInline();if(!x.inlineMetricEnabled||D){if(W==="part2viewed"){if(x.Ds&&g.c3(x.Ds),x.lr&&x2(this,x.lr),x.gr)for(var K={CPN:this.api.getVideoData().clientPlaybackNonce},l=g.V(x.gr),M=l.next();!M.done;M=l.next())x2(this,g.ip(M.value,K))}else W==="conversionview"?this.api.F_():W==="engagedview"&&x.lF&&(K={CPN:this.api.getVideoData().clientPlaybackNonce},g.c3(g.ip(x.lF,K)));x.Rd&&(K=x.Rd,l=Q.getId(),K=jL(K,{label:l}),g.c3(K));
switch(W){case "videoplaytime25":x.Sa&&x2(this,x.Sa);x.vy&&D8(this,x.vy);x.NO&&g.c3(x.NO);break;case "videoplaytime50":x.aG&&x2(this,x.aG);x.ju&&D8(this,x.ju);x.gO&&g.c3(x.gO);break;case "videoplaytime75":x.VY&&x2(this,x.VY);x.Gq&&D8(this,x.Gq);x.fk&&g.c3(x.fk);break;case "videoplaytime100":x.Ay&&x2(this,x.Ay),x.LI&&D8(this,x.LI),x.Bh&&g.c3(x.Bh)}(K=this.api.getVideoData().rX)&&Dyv(this,K,Q.getId())&&Dyv(this,K,Q.getId()+"gaia")}if(x.inlineMetricEnabled&&!D)switch(W){case "videoplaybackstart":var w,
S=(w=x.wr)==null?void 0:w.B;S&&x2(this,S);break;case "videoplayback2s":(w=(S=x.wr)==null?void 0:S.D)&&x2(this,w);break;case "videoplayback10s":var b;(w=(b=x.wr)==null?void 0:b.U)&&x2(this,w)}this.api.RI([Q],1)};g.n(lQD,Fh);g.n(Ka,g.L);g.R=Ka.prototype;
g.R.fI=function(){var Q;if(Q=this.J.getPresentingPlayerType()!==3&&g.Bd(this.J)&&this.J.hf().getPlayerSize().width>=400)if(Q=this.sx(),this.J.C().j("client_respect_autoplay_switch_button_renderer"))Q=!!Q.autoplaySwitchButtonRenderer;else{var W,x,D,K;Q=!!((W=Q.getWatchNextResponse())==null?0:(x=W.contents)==null?0:(D=x.twoColumnWatchNextResults)==null?0:(K=D.autoplay)==null?0:K.autoplay)!==!1}if(Q)this.B||(this.B=!0,this.hO(this.B),this.J.C().j("web_player_autonav_toggle_always_listen")||jmD(this),
W=this.sx(),this.bE(W.autonavState),this.J.logVisibility(this.element,this.B));else if(this.B=!1,this.hO(this.B),!this.J.C().j("web_player_autonav_toggle_always_listen"))for(this.J.C().j("web_player_autonav_toggle_always_listen"),W=g.V(this.U),x=W.next();!x.done;x=W.next())this.mJ(x.value)};
g.R.bE=function(Q){RUv(this)?this.isChecked=Q!==1:((Q=Q!==1)||(g.ck(),Q=g.Pb("web_autonav_allow_off_by_default")&&!g.g3(0,141)&&g.TK("AUTONAV_OFF_BY_DEFAULT")?!1:!g.g3(0,140)),this.isChecked=Q);Mbn(this)};
g.R.onClick=function(){this.isChecked=!this.isChecked;this.J.hC(this.isChecked?2:1);Mbn(this);if(RUv(this)){var Q=this.sx().autoplaySwitchButtonRenderer;this.isChecked&&(Q==null?0:Q.onEnabledCommand)?this.J.Wt("innertubeCommand",Q.onEnabledCommand):!this.isChecked&&(Q==null?0:Q.onDisabledCommand)&&this.J.Wt("innertubeCommand",Q.onDisabledCommand)}this.J.logClick(this.element)};
g.R.getValue=function(){return this.isChecked};
g.R.sx=function(){return this.J.getVideoData(1)};g.n(wc1,Fh);g.n(ln,g.rZ);ln.prototype.onClick=function(){this.enabled&&(jV(this,!this.checked),this.publish("select",this.checked))};
ln.prototype.getValue=function(){return this.checked};
ln.prototype.setEnabled=function(Q){(this.enabled=Q)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var bJF=["en-CA","en","es-MX","fr-CA"];g.n(zA,ln);zA.prototype.Yf=function(Q){Q?this.B||(this.F0.XE(this),this.B=!0):this.B&&(this.F0.le(this),this.B=!1);this.B&&jV(this,G_4())};
zA.prototype.N=function(){g.Rr(this.element,"ytp-menuitem-highlight-transition-enabled")};
zA.prototype.D=function(Q){var W=G_4();Q!==W&&(W=g.ck(),eY(190,Q),eY(192,!0),W.save(),this.J.Wt("cinematicSettingsToggleChange",Q))};
zA.prototype.U3=function(){this.B&&this.F0.le(this);ln.prototype.U3.call(this)};g.n(k2,Fh);k2.prototype.updateCinematicSettings=function(Q){this.B=Q;var W;(W=this.menuItem)==null||W.Yf(Q);this.api.publish("onCinematicSettingsVisibilityChange",Q)};g.n(Xe,Fh);Xe.prototype.XT=function(Q,W){W=W.clipConfig;Q==="dataloaded"&&W&&W.startTimeMs!=null&&W.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(W.startTimeMs)),endTimeMs:Math.floor(Number(W.endTimeMs)),postId:W.postId,type:"clips"})};g.n(oY,Fh);oY.prototype.setCreatorEndscreenVisibility=function(Q){var W;(W=BH(this.api.x6()))==null||W.hO(Q)};
oY.prototype.B=function(Q){function W(D){D==="creatorendscreen"&&(D=BH(x.api.x6()))&&D.AK7(x.hideButton)}
var x=this;this.hideButton=Q;this.events.W(this.api,"modulecreated",W);W("creatorendscreen")};g.n(un,ln);un.prototype.D=function(Q){this.N(Q?1:0)};
un.prototype.U=function(){var Q=this.hasDrcAudioTrack(),W=this.B()===1&&Q;jV(this,W);this.setEnabled(Q)};
un.prototype.U3=function(){this.F0.le(this);ln.prototype.U3.call(this)};g.n(Y2,Fh);Y2.prototype.getDrcUserPreference=function(){return this.B};
Y2.prototype.setDrcUserPreference=function(Q){g.Ud("yt-player-drc-pref",Q,31536E3);Q!==this.B&&(this.B=Q,this.updateEnvironmentData(),this.U()&&this.api.qb())};
Y2.prototype.updateEnvironmentData=function(){this.api.C().J2=this.B===1};
Y2.prototype.U=function(){var Q,W,x=(Q=this.api.getVideoData())==null?void 0:(W=Q.D)==null?void 0:W.B;if(!x)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.j("mta_drc_mutual_exclusion_removal")){var D=this.api.getAudioTrack().RW.id;return dM(x,function(K){var l;return K.audio.B&&((l=K.RW)==null?void 0:l.id)===D})}return dM(x,function(K){var l;
return((l=K.audio)==null?void 0:l.B)===!0})};g.n(na,Fh);na.prototype.onVideoDataChange=function(){var Q=this,W=this.api.getVideoData();this.api.jQ("embargo",1);var x=W==null?void 0:W.zq.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(x==null?0:x.length)?XcO(this,x.filter(function(D){return kL1(Q,D)})):(W==null?0:W.cueRanges)&&XcO(this,W.cueRanges.filter(function(D){return kL1(Q,D)}))};
na.prototype.U=function(Q){return Q.embargo!==void 0};
na.prototype.U3=function(){Fh.prototype.U3.call(this);this.B={}};g.n(V2,Fh);
V2.prototype.addEmbedsConversionTrackingParams=function(Q){var W=this.api.C(),x=W.widgetReferrer,D=W.I5,K=this.B,l="",M=W.getWebPlayerContextConfig();M&&(l=M.embedsIframeOriginParam||"");x.length>0&&(Q.embeds_widget_referrer=x);D.length>0&&(Q.embeds_referring_euri=D);W.N&&l.length>0&&(Q.embeds_referring_origin=l);M&&M.embedsFeature&&(Q.feature=M.embedsFeature);K.length>0&&(W.j("embeds_web_enable_lite_experiment_control_arm_logging")?K.unshift(28572):g.SY(g.mr(W))&&K.unshift(159628),W=K.join(","),W=
g.fl()?W:g.P1(W,4),Q.source_ve_path=W);this.B.length=0};g.n(ovs,Fh);g.n(uJ4,Fh);g.n(P9,g.N);P9.prototype.U3=function(){g.N.prototype.U3.call(this);this.B=null;this.U&&this.U.disconnect()};g.n(nvQ,Fh);g.n(v9,g.L);v9.prototype.show=function(){g.L.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
v9.prototype.onVideoDataChange=function(Q){var W,x,D=(W=this.api.getVideoData())==null?void 0:(x=W.getPlayerResponse())==null?void 0:x.playabilityStatus;D&&(W=VbD(D),g.r(this.api.getPlayerStateObject(),128)||Q==="dataloaderror"||!W?(this.U=0,Ca(this),this.hide()):(Q=(W.remainingTimeSecs||0)*1E3,Q>0&&(this.show(),this.updateValue("label",vc(W.label)),vvv(this,Q))))};
v9.prototype.U3=function(){Ca(this);g.L.prototype.U3.call(this)};g.n(C34,Fh);g.n(Jc,g.L);Jc.prototype.onClick=function(){this.G1.logClick(this.element);this.G1.Wt("onFullerscreenEduClicked")};
Jc.prototype.Yf=function(){this.G1.isFullscreen()?this.U?this.B.hide():this.B.show():this.hide();this.G1.logVisibility(this.element,this.G1.isFullscreen()&&!this.U)};g.n(pa,Fh);pa.prototype.updateFullerscreenEduButtonSubtleModeState=function(Q){var W;(W=this.B)!=null&&(g.S$(W.element,"ytp-fullerscreen-edu-button-subtle",Q),Q&&!W.D&&(W.element.setAttribute("title","Scroll for details"),Jo(W.G1,W.element,W),W.D=!0))};
pa.prototype.updateFullerscreenEduButtonVisibility=function(Q){var W;(W=this.B)!=null&&(W.U=Q,W.Yf())};g.n(JBs,g.L);g.n(aQa,Fh);g.n(hc,Fh);hc.prototype.getSphericalProperties=function(){var Q=g.Hd(this.api.x6());return Q?Q.getSphericalProperties():{}};
hc.prototype.setSphericalProperties=function(Q){if(Q){var W=g.Hd(this.api.x6());W&&W.setSphericalProperties(Q,!0)}};g.n(aY,Fh);g.R=aY.prototype;g.R.createClientVe=function(Q,W,x,D){this.api.createClientVe(Q,W,x,D===void 0?!1:D)};
g.R.createServerVe=function(Q,W,x){this.api.createServerVe(Q,W,x===void 0?!1:x)};
g.R.setTrackingParams=function(Q,W){this.api.setTrackingParams(Q,W)};
g.R.logClick=function(Q,W){this.api.logClick(Q,W)};
g.R.logVisibility=function(Q,W,x){this.api.logVisibility(Q,W,x)};
g.R.hasVe=function(Q){return this.api.hasVe(Q)};
g.R.destroyVe=function(Q){this.api.destroyVe(Q)};var dyz=!1;dz.prototype.setPlaybackRate=function(Q){this.playbackRate=Math.max(1,Q)};
dz.prototype.getPlaybackRate=function(){return this.playbackRate};B9.prototype.Xw=function(Q){var W=g.WT(Q.info.B.info,this.jZ.lN),x=Q.info.E3+this.N,D=Q.info.startTime*1E3;if(this.policy.O3)try{D=this.policy.O3?g.xK(Q)*1E3:Q.info.startTime*1E3}catch(M){Math.random()>.99&&this.logger&&(D=vQ(Q.B).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:Q.info.Zb(),encodedDataView:g.Vn(D,4)})),D=Q.info.startTime*1E3}var K=Q.info.clipId,l=this.policy.O3?g.Gls(Q)*1E3:Q.info.duration*1E3;this.policy.O3&&(D<0||l<0)&&(this.logger&&(this.logger({missingSegInfo:Q.info.Zb(),
startTimeMs:D,durationMs:l}),this.policy.xI||(D<0&&(D=Q.info.startTime*1E3),l<0&&(l=Q.info.duration*1E3))),this.policy.xI&&(D<0&&(D=Q.info.startTime*1E3),l<0&&(l=Q.info.duration*1E3)));return{formatId:W,E3:x,startTimeMs:D,clipId:K,gK:l}};
B9.prototype.PL=function(Q){this.timestampOffset=Q};mq.prototype.seek=function(Q,W){Q!==this.B&&(this.seekCount=0);this.B=Q;var x=this.videoTrack.U,D=this.audioTrack.U,K=this.audioTrack.Ln,l=rB4(this,this.videoTrack,Q,this.videoTrack.Ln,W);W=rB4(this,this.audioTrack,this.policy.vZ?Q:l,K,W);Q=Math.max(Q,l,W);this.L=!0;this.jZ.isManifestless&&(yBF(this,this.videoTrack,x),yBF(this,this.audioTrack,D));return Q};
mq.prototype.isSeeking=function(){return this.L};
mq.prototype.sA=function(Q){this.D=Q};
var LTh=2/24;var Ev1=0;g.R=OG.prototype;g.R.Yc=function(){this.T=this.now();Ozv(this.p_,this.T);this.uN.Yc()};
g.R.fK=function(Q,W){var x=this.policy.U?(0,g.a8)():0;EG(this,Q,W);Q-this.X<10&&this.U>0||this.v2(Q,W);this.uN.fK(Q,W);this.policy.U&&(Q=(0,g.a8)()-x,this.fn+=Q,this.SZ=Math.max(Q,this.SZ))};
g.R.v2=function(Q,W){var x=(Q-this.X)/1E3,D=W-this.D;this.Ax||(PL(this.p_,x,D),this.wJ(x,D));this.X=Q;this.D=W};
g.R.P8=function(){this.KS&&FTs(this);this.uN.P8()};
g.R.NR=function(Q){this.KS||(this.KS=this.L-this.Gn+Q,this.Cn=this.L,this.Sk=this.G)};
g.R.z3=function(Q,W){Q=Q===void 0?this.G:Q;W=W===void 0?this.L:W;this.U>0||(this.S=Q,this.U=W,this.uj=this.isActive=!0)};
g.R.bK=function(){return this.K2||2};
g.R.H4=function(){};
g.R.XV=function(){var Q,W={rn:this.requestNumber,rt:(this.G-this.B).toFixed(),lb:this.L,stall:(1E3*this.N).toFixed(),ht:(this.T-this.B).toFixed(),elt:(this.S-this.B).toFixed(),elb:this.U,d:(Q=this.fS)==null?void 0:Q.Rj()};this.url&&GLs(W,this.url);this.policy.U&&(W.mph=this.SZ.toFixed(),W.tph=this.fn.toFixed());W.ulb=this.LS;W.ult=this.pS;W.abw=this.I5;return W};
g.R.now=function(){return(0,g.a8)()};
g.R.deactivate=function(){this.isActive&&(this.isActive=!1)};g.n(tc,OG);g.R=tc.prototype;g.R.XV=function(){var Q=OG.prototype.XV.call(this);Q.pb=this.OH;Q.pt=(1E3*this.tf).toFixed();Q.se=this.WN;return Q};
g.R.ZM=function(){var Q=this.uN;this.O3||(this.O3=Q.ZM?Q.ZM():1);return this.O3};
g.R.Yx=function(){return this.sG?this.ZM()!==1:!1};
g.R.KH=function(Q,W,x){if(!this.Y6){this.Y6=!0;if(!this.Ax){EG(this,Q,W);this.v2(Q,W);var D=this.ZM();this.WN=x;if(!this.Ax)if(D===2){D=Q-this.S<this.bK()*1E3+50;x=this.pS?this.LS/(this.pS/1E3):Math.max(this.policy.uj,x||this.I5);var K=this.zF*1.3;D&&x<K||(this.pS?uA(this.p_,this.pS/1E3,this.LS,this.eZ||this.policy.F3):uA(this.p_,W/x,W,.01));nO(this.p_,W,D?0:this.N)}else D===1&&(D=(Q-this.B)/1E3,!(D<=this.policy.N)&&this.policy.N||this.Vj||this.policy.T||!(this.U>0)||Qj(this,D,W),this.U>0&&nO(this.p_,
W,this.N));Q=(Q-this.B)/1E3||.01;this.policy.S&&!(this.U>0)||Yh(this.p_,Q,this.D,Qyn(this),this.K7)}this.deactivate()}};
g.R.ox=function(Q,W,x){x&&(this.O3=2);Q<0&&this.K2&&(Q=this.K2);W?this.s3+=Q:this.eZ+=Q};
g.R.bK=function(){return this.eZ||this.s3||OG.prototype.bK.call(this)};
g.R.v2=function(Q,W){var x=(Q-this.X)/1E3,D=W-this.D,K=this.ZM();this.isActive?K===1&&((D>0||this.policy.L)&&(x>.2||D<1024)?(this.N+=x,D>0&&x>.2&&Qj(this,this.zF?x:.05,D),this.Vj=!0):D>0&&(Qj(this,x,D),this.Vj=!0)):W&&W>=this.policy.B&&this.z3(Q,W);OG.prototype.v2.call(this,Q,W)};
g.R.wu=function(Q){if(!this.Ax){EG(this,Q,this.L);var W=(Q-this.B)/1E3;this.ZM()!==2&&this.U>0&&(this.N+=(Q-this.X)/1E3,nO(this.p_,this.D,this.N));Yh(this.p_,W,this.D,Qyn(this),this.K7,!0);Q=(Q-this.X)/1E3;PL(this.p_,Q,0);this.wJ(Q,0)}};
g.R.z3=function(Q,W){Q=Q===void 0?this.G:Q;W=W===void 0?this.L:W;if(!(this.U>0)&&(OG.prototype.z3.call(this,Q,W),this.ZM()===1)){W=(this.T-this.B)/1E3;var x=(Q-this.T)/1E3;this.sG&&W7(this,this.now());this.Kn||this.Ax||(this.K2&&(x=Math.max(0,x-this.K2)),Q=this.p_,Q.S.w5(1,W),Q.fS.w5(1,x))}};
g.R.pk=function(){this.sG&&W7(this,this.now());return this.g7};
g.R.aK=function(){var Q;if(Q=this.D>this.Xt)Q=(Q=this.D)?Q>=this.policy.B:!1;return Q};
g.R.mT=function(){return this.Pt};
g.R.Vy=function(Q){Q=Q===void 0?this.now():Q;if(this.sG){W7(this,Q);if(this.O3?this.Yx():this.F3!==this.X3){var W=this.X3;if(Q<W){this.Pt=this.X3;return}}else W=this.F3;W=Math.max(W,this.g7)}else W=this.g7;var x=this.OH-this.D;x<0&&(x=0);x=(x*this.snapshot.stall+x/this.snapshot.byterate)*1E3;this.Pt=x=this.U>0?x+Q:x+Math.max(Q,W)};
g.R.tB=function(){return this.now()-this.S};
g.R.J0=function(){return(this.D-this.U)*1E3/this.tB()||0};
g.R.B$=function(){return this.S};xA.prototype.feed=function(Q){Yw(this.B,Q);this.KZ()};
xA.prototype.KZ=function(){if(this.N){if(!this.B.getLength())return;var Q=this.B.split(this.D-this.U),W=Q.gA;Q=Q.h9;if(!this.uN.NR(this.N,W,this.U,this.D))return;this.U+=W.getLength();this.B=Q;this.U===this.D&&(this.N=this.D=this.U=void 0)}for(;;){var x=0;Q=g.V(Kwl(this.B,x));W=Q.next().value;x=Q.next().value;x=g.V(Kwl(this.B,x));Q=x.next().value;x=x.next().value;if(W<0||Q<0)break;if(!this.B.er(x,Q)){if(!this.uN.NR||!this.B.er(x,1))break;x=this.B.split(x).h9;this.uN.NR(W,x,0,Q)&&(this.N=W,this.U=
x.getLength(),this.D=Q,this.B=new ul([]));break}Q=this.B.split(x).h9.split(Q);x=Q.h9;this.uN.gy(W,Q.gA);this.B=x}};
xA.prototype.dispose=function(){this.B=new ul};g.R=DW.prototype;g.R.SX=function(){return 0};
g.R.ZP=function(){return null};
g.R.Ph=function(){return null};
g.R.qY=function(){return this.state>=1};
g.R.isComplete=function(){return this.state>=3};
g.R.je=function(){return this.state===5};
g.R.onStateChange=function(){};
g.R.wE=function(Q){var W=this.state;this.state=Q;this.onStateChange(W);this.callback&&this.callback(this,W)};
g.R.Kj=function(Q){Q&&this.state<Q?this.wE(Q):this.callback&&this.callback(this,this.state)};
g.R.d7=function(){return this.state===-1};
g.R.Zb=function(){var Q="";this.info.Af.forEach(function(W){Q+=W.Zb()+"."});
return Q.slice(0,-1)};
g.R.dispose=function(){this.d7()||(this.info.Af[0].B.D=!1,this.wE(-1))};
g.R.gN=function(){return 0};g.R=Kk.prototype;g.R.XH=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.uN.Yc()};
g.R.onError=function(){this.D=!0;this.onDone()};
g.R.onDone=function(){this.d7||(this.N=!0,this.uN.P8())};
g.R.PO=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.R.getResponseHeader=function(Q){try{return this.xhr.getResponseHeader(Q)}catch(W){return""}};
g.R.yf=function(){return+this.getResponseHeader("content-length")};
g.R.Qc=function(){return this.U};
g.R.Si=function(){return this.status>=200&&this.status<300&&!!this.U};
g.R.gm=function(){return this.B.getLength()>0};
g.R.cg=function(){var Q=this.B;this.B=new ul;return Q};
g.R.Q3=function(){return this.B};
g.R.abort=function(){this.d7=!0;this.xhr.abort()};
g.R.t7=function(){return!0};
g.R.ze=function(){return this.D};
g.R.ZJ=function(){return""};g.R=RR4.prototype;g.R.getResponseHeader=function(Q){return Q==="content-type"?this.B.get("type"):""};
g.R.abort=function(){};
g.R.PO=function(){return!0};
g.R.yf=function(){return this.range.length};
g.R.Qc=function(){return this.loaded};
g.R.Si=function(){return!!this.loaded};
g.R.gm=function(){return!!this.U.getLength()};
g.R.cg=function(){var Q=this.U;this.U=new ul;return Q};
g.R.Q3=function(){return this.U};
g.R.t7=function(){return!0};
g.R.ze=function(){return!!this.error};
g.R.ZJ=function(){return this.error};g.R=Se5.prototype;g.R.start=function(Q){var W={credentials:"include",cache:"no-store"};Object.assign(W,this.G);this.N&&(W.signal=this.N.signal);Q=new Request(Q,W);fetch(Q).then(this.T,this.onError).then(void 0,R8)};
g.R.onDone=function(){this.d7()||this.uN.P8()};
g.R.getResponseHeader=function(Q){return this.responseHeaders?this.responseHeaders.get(Q):null};
g.R.PO=function(){return!!this.responseHeaders};
g.R.Qc=function(){return this.U};
g.R.yf=function(){return+this.getResponseHeader("content-length")};
g.R.Si=function(){return this.status>=200&&this.status<300&&!!this.U};
g.R.gm=function(){return!!this.B.getLength()};
g.R.cg=function(){this.gm();var Q=this.B;this.B=new ul;return Q};
g.R.Q3=function(){this.gm();return this.B};
g.R.d7=function(){return this.L};
g.R.abort=function(){this.D&&this.D.cancel().catch(function(){});
this.N&&this.N.abort();this.L=!0};
g.R.t7=function(){return!0};
g.R.ze=function(){return this.X};
g.R.ZJ=function(){return this.errorMessage};g.R=bNn.prototype;g.R.onDone=function(){if(!this.d7){this.status=this.xhr.status;try{this.response=this.xhr.response,this.U=this.response.byteLength}catch(Q){}this.B=!0;this.uN.P8()}};
g.R.XH=function(){this.xhr.readyState===2&&this.uN.Yc()};
g.R.E4=function(Q){this.d7||(this.status=this.xhr.status,this.B||(this.U=Q.loaded),this.uN.fK((0,g.a8)(),Q.loaded))};
g.R.PO=function(){return this.xhr.readyState>=2};
g.R.getResponseHeader=function(Q){try{return this.xhr.getResponseHeader(Q)}catch(W){return g.Bp(Error("Could not read XHR header "+Q)),""}};
g.R.yf=function(){return+this.getResponseHeader("content-length")};
g.R.Qc=function(){return this.U};
g.R.Si=function(){return this.status>=200&&this.status<300&&this.B&&!!this.U};
g.R.gm=function(){return this.B&&!!this.response&&!!this.response.byteLength};
g.R.cg=function(){this.gm();var Q=this.response;this.response=void 0;return new ul([new Uint8Array(Q)])};
g.R.Q3=function(){this.gm();return new ul([new Uint8Array(this.response)])};
g.R.abort=function(){this.d7=!0;this.xhr.abort()};
g.R.t7=function(){return!1};
g.R.ze=function(){return!1};
g.R.ZJ=function(){return""};g.MP.prototype.info=function(){};
g.MP.prototype.debug=function(){};
g.MP.prototype.B=function(Q){R6.apply(null,[5,this.tag,Q].concat(g.C(g.i2.apply(1,arguments))))};
var k8z=new Map,uBv=new Map,Xha=new function(){var Q=this;this.B=new Map;this.by={FD1:function(){return Q.B}}};g.n(w6,g.N);w6.prototype.PM=function(){if(!this.Le.length)return[];var Q=this.Le;this.Le=[];this.D=g.r1(Q).info;return Q};
w6.prototype.yz=function(){return this.Le};
w6.prototype.U3=function(){g.N.prototype.U3.call(this);this.B=null;this.Le.length=0;this.Af.length=0;this.D=null};g.n(bc,g.N);g.R=bc.prototype;
g.R.JKj=function(){if(!this.d7()){var Q=(0,g.a8)(),W=!1;if(this.policy.bk){Q=Q-(this.timing.U>0?this.timing.S:this.timing.B)-this.timing.bK()*1E3;var x=Vr(sm(this),!1);Q>=2E3*x?W=!0:Q>=this.policy.jS*x&&(this.B=this.policy.Pz)}else if(this.timing.U>0){if(this.L){this.policy.cD&&(this.B=0);return}var D=this.timing.mT();this.timing.Vy();var K=this.timing.mT();K-D>=this.policy.ra*.8?(this.B++,this.logger.debug(function(){return"Mispredicted by "+(K-D).toFixed(0)}),W=this.B>=5):this.B=0}else{var l=Q-
this.timing.pk();
this.policy.Pz&&l>0&&(this.B+=1);W=Vr(sm(this),!1)*this.policy.ju;(W=l>W*1E3)&&this.logger.debug(function(){return"Elbow late by "+l.toFixed(3)})}this.B>0&&this.uN.We();
W?this.T3():this.U.start()}};
g.R.T3=function(){this.N=!0;this.uN.Bd();this.lastError="net.timeout";kA(this)};
g.R.canRetry=function(Q){var W=sm(this);Q=Q?this.policy.U_:this.policy.y7;return W.timedOut<this.policy.FJ&&W.B<Q};
g.R.g1=function(){return this.lastError};
g.R.R4=function(){return this.B};
g.R.dispose=function(){this.U.dispose();g.N.prototype.dispose.call(this)};var RR={},mDD=(RR["1h"]=8,RR["9h"]=4,RR["1"]=8,RR["9"]=4,RR["("]=4,RR.h=2,RR.H=2,RR),wo={},NQv=(wo.o=3,wo.O=3,wo.so=3,wo.a=1,wo.ah=1,wo.A=1,wo.m=1,wo.M=1,wo.sa=1,wo.mac3=7,wo.MAC3=7,wo.meac3=5,wo.MEAC3=5,wo),SF={},gJ5=(SF.o=0,SF.O=0,SF.a=0,SF.ah=0,SF.A=0,SF.m=1,SF.M=1,SF.mac3=1,SF.MAC3=1,SF.meac3=1,SF.MEAC3=1,SF.so=4,SF.sa=4,SF);var fKz={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 nk,YA,Vj=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],HN5=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],UDQ=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],qez=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],BQl=["412","359"],$D5=[["140"],["251"],["380"],["328"]],bh={},dDh=(bh["398"]="397 396 395 394 788 787".split(" "),
bh["247"]=["780","779","244","243","242"],bh["136"]=["135","134","133","160"],bh["141"]=["140"],bh["251"]=["250"],bh["774"]=["251","250"],bh),sA={},iN2=(sA["135"]=["134","133","160"],sA["243"]=["242"],sA["781"]=["780","779"],sA["777"]=["776","775"],sA["396"]=["395","394"],sA["141"]=["140"],sA["251"]=["250"],sA),zX={},AWD=(zX["274"]=["317","273","318","280","279"],zX["145"]=["144","222","223","143","142"],zX["141"]=["149"],zX["140"]=["149"],zX["380"]=["381"],zX["328"]=["329"],zX),kT={},aKn=(kT["133"]=
240,kT["134"]=360,kT["135"]=480,kT["136"]=720,kT["137"]=1080,kT["242"]=240,kT["243"]=360,kT["244"]=480,kT["247"]=720,kT["248"]=1080,kT["298"]=720,kT["299"]=1080,kT["302"]=720,kT["303"]=1080,kT["395"]=240,kT["396"]=360,kT["397"]=480,kT["398"]=720,kT["399"]=1080,kT);var yWO={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.n(c9,DW);g.R=c9.prototype;g.R.cL=function(){return this.timing.requestNumber};
g.R.cV=function(){return this.BV.cV()};
g.R.TV=function(){var Q=JWz(this.f_);if(this.Se){var W=this.Se,x=W.B.getLength();Q.ulen=x;x>0&&(W=W.B.getUint8(0),Q.ubyte=W,x===1&&W===0&&(Q.b248180278=!0))}this.cI&&(Q.rc=this.policy.Zf?this.cI:this.cI.toString());this.policy.hn&&this.x7&&(Q.tr=this.x7);Q.itag=this.info.Af[0].B.info.itag;Q.ml=""+ +this.info.Af[0].B.Fs();Q.sq=""+this.info.Af[0].E3;this.BV&&(Q.ifi=""+ +G8(this.info.Db.D));this.cI!==410&&this.cI!==500&&this.cI!==503||(Q.fmt_unav="true");var D;(x=this.errorMessage||((D=this.xhr)==null?
void 0:D.ZJ()))&&(Q.msg=x);this.lQ&&(Q.smb="1");this.info.isDecorated()&&(Q.sdai="1");return Q};
g.R.Is=function(){return Ww5(this.timing)};
g.R.ZJ=function(){return this.xhr.ZJ()||""};
g.R.aK=function(){return this.isComplete()||this.timing.aK()};
g.R.fK=function(){!this.d7()&&this.xhr&&(this.cI=this.xhr.status,this.policy.G4&&this.q_&&this.EB(!1),this.Rl()?this.Kj(2):!this.M4&&this.aK()&&(this.Kj(),this.M4=!0))};
g.R.Yc=function(){if(!this.d7()&&this.xhr){if(!this.gf&&this.xhr.PO()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var Q=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.gf=((0,g.a8)()-Q)/1E3}this.xhr.PO()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Uw&&!cs4()&&g.Ud("yt-player-headers-readable",!0,2592E3);Q=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var W=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),x;(x=this.J7)==null||x.stop();this.Dm=Q||this.Dm;
this.jD=W||this.jD}};
g.R.P8=function(){var Q=this.xhr;if(!this.d7()&&Q){this.cI=Q.status;Q=this.h0(Q);if(this.policy.hn){var W;(W=this.J7)==null||W.stop()}Q===5?kA(this.f_):this.wE(Q);this.f_.U.stop()}};
g.R.h0=function(Q){var W=this;ONn(this);if(Xd(this.f_,this.xhr.status,this.vO?this.timing.uj||this.Wq:this.xhr.Si(),!1,this.Ti))return 5;var x="";o6(this.f_,this.xhr)&&(x=CQ1(this.f_,this.xhr));if(x)return nf(sm(this.f_)),this.info.Kt(this.BV,x),3;x=Q.Qc();if(this.Se){this.EB(!0);ONn(this);if(Xd(this.f_,this.xhr.status,this.timing.uj||this.Wq,!1,this.Ti))return 5;if(!this.X5){if(this.Wq)return nf(sm(this.f_)),3;this.f_.lastError="net.closed";return 5}}else{if(Xd(this.f_,this.xhr.status,this.xhr.Si(),
!1,this.Ti))return 5;var D=this.info.D;if(D&&D!==x||Q.ze())return this.f_.lastError="net.closed",5;this.EB(!0)}D=lK4(this)?Q.getResponseHeader("X-Bandwidth-Est"):0;if(Q=lK4(this)?Q.getResponseHeader("X-Bandwidth-Est3"):0)this.y$=!0,this.policy.iK&&(D=Q);PQ4(this.f_,x,D?Number(D):0,this.info.Af[0].type===5);this.logger.debug(function(){var K=W.timing;return"Succeeded, rtpd="+(K.tf*1E3+K.B-Date.now()).toFixed(0)});
return 4};
g.R.canRetry=function(){this.d7();var Q=this.info.isDecorated();return this.f_.canRetry(Q)};
g.R.onStateChange=function(){this.isComplete()&&(this.policy.X_?this.Bd():this.timing.deactivate())};
g.R.T3=function(){this.f_.T3()};
g.R.We=function(){this.callback&&this.callback(this,this.state)};
g.R.R4=function(){return this.f_.R4()};
g.R.dispose=function(){DW.prototype.dispose.call(this);this.f_.dispose();var Q;(Q=this.J7)==null||Q.dispose();this.policy.X_||this.Bd()};
g.R.Bd=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
g.R.PM=function(){if(!this.yz().length)return[];this.Sw=!0;return this.q_.PM()};
g.R.Rl=function(){if(this.state<1)return!1;if(this.q_&&this.q_.Le.length)return!0;var Q;return((Q=this.xhr)==null?0:Q.gm())?!0:!1};
g.R.yz=function(){this.EB(!1);return this.q_?this.q_.yz():[]};
g.R.EB=function(Q){try{if(Q||this.xhr.PO()&&this.xhr.gm()&&!o6(this.f_,this.xhr)&&!this.zU)this.q_||(this.q_=new w6(this.policy,this.info.Af)),this.xhr.gm()&&(this.Se?this.Se.feed(this.xhr.cg()):Sq(this.q_,this.xhr.cg(),Q&&!this.xhr.gm()))}catch(W){this.Se?Lw5(this,W):g.Bp(W)}};
g.R.gy=function(Q,W){switch(Q){case 21:Q=W.split(1).h9;rWa(this,Q);break;case 22:this.X5=!0;Sq(this.q_,new ul([]),!0);break;case 43:if(Q=$w(new il(W),1))this.info.Kt(this.BV,Q),this.Wq=!0;break;case 45:W=DK(new il(W));Q=W.Kr;W=W.Qa;Q&&W&&(this.VU=Q/W);break;case 44:this.xe=NtO(new il(W));var x,D,K;!this.timing.uj&&((x=this.xe)==null?void 0:x.action)===4&&((D=this.xe)==null?0:(K=D.xZ)==null?0:K.vO)&&(this.vO=this.xe.xZ.vO);break;case 53:this.policy.hn&&(Q=$_O(new il(W)).jG)&&(this.J7||(this.jG=Q,this.J7=
new g.O3(this.Sx,Q,this)),this.J7.start());break;case 60:this.S1=xJ(new il(W));break;case 58:if(Q=k55(new il(W)))this.V_=Q,Q.V_===3&&(this.Ti=!0)}};
g.R.NR=function(Q,W,x,D){x||this.timing.NR(D);if(Q!==21)return!1;if(Q=this.policy.G4)if(D=W.getLength()+x===D,Q*=this.info.Af[0].B.info.a5,!D&&W.getLength()<Q)return!1;if(!x){if(W.getLength()===1)return!0;W=W.split(1).h9}rWa(this,W);return!0};
g.R.Qc=function(){return this.xhr.Qc()};
g.R.SX=function(){return this.gf};
g.R.ZM=function(){return this.Yx()?2:1};
g.R.Yx=function(){if(!this.policy.S.bF||!isNaN(this.info.B3)&&this.info.B3>0)return!1;if(!this.xhr.PO())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Se)var Q=!this.info.D;else this.xhr.yf()?Q=!1:(Q=this.xhr.getResponseHeader("content-type"),Q=Q==="audio/mp4"||Q==="video/mp4"||Q==="video/webm");if(!Q)return!1;if(isNaN(this.info.B3)){Q=this.xhr.getResponseHeader("x-head-seqnum");var W=this.timing.policy.G?1:0;if(!Q)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");
else if(Number(Q)>this.info.Af[0].E3+W)return!1}return!0};
g.R.gN=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.R.ZP=function(){this.xhr&&(this.Dm=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Dm};
g.R.Ph=function(){this.xhr&&(this.jD=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.jD};
g.R.g1=function(){return this.f_.g1()};
g.R.Sx=function(){if(!this.d7()&&this.xhr){this.x7="heartbeat";var Q=this.f_;Q.B+=2;this.We()}};g.n(JL,OG);g.R=JL.prototype;g.R.v2=function(Q,W){var x=(Q-this.X)/1E3,D=W-this.D;this.U>0?D>0&&(this.F3&&(x>.2||D<1024?(this.N+=x,x>.2&&EJO(this,.05,D)):EJO(this,x,D)),this.X3&&(this.g7+=D,this.eZ+=x)):W>this.policy.B&&this.z3(Q,W);OG.prototype.v2.call(this,Q,W)};
g.R.KH=function(Q,W){EG(this,Q,W);this.v2(Q,W);this.F3&&(W=this.D*this.snapshot.stall+this.D/this.snapshot.byterate,this.U>0&&nO(this.p_,this.g7,this.N),Q=(Q-this.B)/1E3||.01,this.policy.S&&!(this.U>0)||Yh(this.p_,Q,this.D,W,!1))};
g.R.wu=function(Q){EG(this,Q,this.L);var W=(Q-this.X)/1E3;PL(this.p_,W,0);this.wJ(W,0);!this.F3&&this.U>0||(W=this.D*this.snapshot.stall+this.D/this.snapshot.byterate,this.U>0&&(this.N+=(Q-this.X)/1E3,nO(this.p_,this.g7,this.N)),Yh(this.p_,((Q-this.B)/1E3||.01)*this.policy.pS,this.D,W,!1,!0))};
g.R.pV=function(Q){Q=Q.cX||2147483647;(Q&2)!==2&&(this.X3=!1);(Q&1)===1&&(this.F3=!0)};
g.R.Cs=function(Q){Q=Q.cX||2147483647;(Q&2)===2&&(this.X3=!1);(Q&1)===1&&(this.F3=!1)};
g.R.B$=function(){return this.S};
g.R.tB=function(){var Q=this.X3?this.now()-this.X:0;return Math.max(this.eZ*1E3+Q,1)};
g.R.J0=function(){return this.g7*1E3/this.tB()};
g.R.z3=function(Q,W){Q=Q===void 0?this.G:Q;W=W===void 0?this.L:W;this.U>0||(OG.prototype.z3.call(this,Q,W),W=this.p_,Q=(Q-this.T)/1E3,W.S.w5(1,(this.T-this.B)/1E3),W.fS.w5(1,Q))};
g.R.H4=function(Q){this.s3=Q};
g.R.XV=function(){var Q=OG.prototype.XV.call(this);Q.rbw=this.J0();Q.rbe=+this.X3;Q.gbe=+this.F3;Q.ackt=(this.s3-this.B).toFixed();return Q};
g.R.Vy=function(){};
g.R.mT=function(){return NaN};
g.R.pk=function(){return this.B+this.snapshot.delay*1E3};pk.prototype.gy=function(Q,W){W.getLength();switch(Q){case 20:Q=new il(W);Q={N5:U2(Q,1),videoId:$w(Q,2),itag:U2(Q,3),lmt:U2(Q,4),xtags:$w(Q,5),qo:U2(Q,6),ey:qs(Q,8),Z5:U2(Q,9),wFt:U2(Q,10),startMs:U2(Q,11),durationMs:U2(Q,12),sJ:U2(Q,14),timeRange:It(Q,15,FK1),e9:U2(Q,16),MA:U2(Q,17),clipId:$w(Q,1E3)};this.Vm(Q);break;case 21:this.SJ(W,!1);break;case 22:this.r3(W);break;case 31:Q=cQ(W,G5D);this.Ey(Q);break;case 52:Q=cQ(W,IkQ);this.Lj(Q);break;default:this.zB(Q,W)}};
pk.prototype.Vm=function(){};
pk.prototype.zB=function(){};g.n(hL,pk);g.R=hL.prototype;
g.R.zB=function(Q,W){W.getLength();switch(Q){case 35:this.YQ(W);break;case 44:this.ZO(W);break;case 43:this.uq(W);break;case 53:this.xL(W);break;case 55:Q=new il(W);(Q={timeline:It(Q,1,g4F),oY9:It(Q,2,fkl)},Q.timeline)&&Q.timeline.Tp&&this.uN.Dq(Q.timeline.Tp,Q.timeline.p39,Q.oY9);break;case 56:this.aB();break;case 57:this.Mm(W);break;case 42:this.Ig(W);break;case 45:this.eG(W);break;case 59:this.Vi(W);break;case 51:this.xv(W);break;case 49:this.pV(W);break;case 50:this.Cs(W);break;case 47:this.TT(W);
break;case 58:this.G3(W);break;case 61:this.uN.ZX.H4((0,g.a8)());break;case 66:this.KK(W);break;case 46:this.At(W);break;case 67:this.onSnackbarMessage(W)}};
g.R.xv=function(Q){Q=new il(Q);Q={Dcp:Ns(Q,1,QC),FWt:Ns(Q,2,QC)};this.uN.xv(Q)};
g.R.Vi=function(Q){var W=new il(Q);Q=my(W,1);var x=my(W,2);W=my(W,3);this.uN.Vi(Q,x,W)};
g.R.eG=function(Q){Q=DK(new il(Q));this.uN.eG(Q)};
g.R.TT=function(Q){Q=cQ(Q,AD1);this.uN.TT(Q)};
g.R.Ig=function(Q){Q=new il(Q);Q={videoId:$w(Q,1),formatId:It(Q,2,QC),endTimeMs:U2(Q,3),CWf:U2(Q,4),mimeType:$w(Q,5),xd:It(Q,6,v42),indexRange:It(Q,7,v42),RD:It(Q,8,CdF)};this.uN.Ig(Q)};
g.R.Mm=function(Q){Q=fkl(new il(Q));this.uN.Mm(Q)};
g.R.aB=function(){this.uN.aB()};
g.R.YQ=function(Q){Q=d_O(new il(Q));this.uN.YQ(Q)};
g.R.xL=function(Q){Q=$_O(new il(Q));this.uN.xL(Q)};
g.R.ZO=function(Q){Q=NtO(new il(Q));this.uN.ZO(Q)};
g.R.uq=function(Q){Q={redirectUrl:$w(new il(Q),1)};this.uN.uq(Q)};
g.R.SJ=function(Q){var W=Q.getUint8(0);if(Q.getLength()!==1){Q=Q.split(1).h9;var x=this.U[W]||null;x&&Um(this.uN.WZ,W,x,Q)}};
g.R.r3=function(Q){Q=Q.getUint8(0);var W=this.U[Q]||null;W&&this.uN.r3(Q,W)};
g.R.Lj=function(Q){this.uN.Lj(Q)};
g.R.Vm=function(Q){var W=Q.N5,x=Q.ey,D=Q.qo,K=Q.MA,l=Q.e9,M=Q.Z5,w=Q.startMs,S=Q.durationMs,b=Q.timeRange,z=Q.sJ,k=Q.clipId,X=az(Q);Q=WpC.has(f3[""+Q.itag]);this.U[W]=X;this.uN.ox(X,Q,{N5:W,ey:!!x,qo:D!=null?D:-1,Z5:M!=null?M:-1,startMs:w!=null?w:-1,durationMs:S!=null?S:-1,sJ:z,MA:K,e9:l,clipId:k,timeRange:b})};
g.R.pV=function(Q){Q={cX:U2(new il(Q),1)};this.uN.pV(Q)};
g.R.Cs=function(Q){Q={cX:U2(new il(Q),1)};this.uN.Cs(Q)};
g.R.Ey=function(Q){this.uN.Ey(Q)};
g.R.G3=function(Q){Q=k55(new il(Q));this.uN.G3(Q)};
g.R.KK=function(Q){Q={AY:It(new il(Q),1,qp1)};this.uN.KK(Q)};
g.R.onSnackbarMessage=function(Q){Q=U2(new il(Q),1);this.uN.onSnackbarMessage(Q)};
g.R.At=function(Q){Q={reloadPlaybackParams:It(new il(Q),1,z5Q)};this.uN.At(Q)};g.n(a6,g.N);g.R=a6.prototype;g.R.sN=function(){return Array.from(this.vD.keys())};
g.R.OJ=function(Q){Q=this.vD.get(Q);var W=Q.Le;Q.QR+=W.getLength();Q.Le=new ul;return W};
g.R.C2=function(Q){return this.vD.get(Q).C2};
g.R.iY=function(Q){return this.vD.get(Q).iY};
g.R.ox=function(Q,W,x,D){this.vD.get(Q)||xLs(this,Q,W);W=this.vD.get(Q);if(this.jZ){Q=KZl(this,Q,x);if(D)for(var K=g.V(Q),l=K.next();!l.done;l=K.next()){l=l.value;var M=D;l.T=M;l.startTime+=M;l.kD+=M;l.Nx+=M}DLh(this,x.N5,W,Q)}else x.ey?W.bZ=x.sJ:W.oB.push(x),W.Xb.push(x)};
g.R.BF=function(Q){var W;return((W=this.vD.get(Q))==null?void 0:W.Af)||[]};
g.R.Kj=function(){for(var Q=g.V(this.vD.values()),W=Q.next();!W.done;W=Q.next())W=W.value,W.Hb&&(W.E4&&W.E4(),W.Hb=!1)};
g.R.r3=function(Q,W){this.logger.debug(function(){return"[onMediaEnd] formatId: "+W});
var x=this.vD.get(W);if(GO){if(x&&!x.C2){if(x.XG.get(Q))x.XG.get(Q).Az=!0;else{var D;((D=this.HD)==null?0:D.UT)&&x.XG.set(Q,{data:new ul,a$:0,Az:!0})}x.iY=!0}}else x&&!x.iY&&(x.iY=!0)};
g.R.PM=function(Q){if(GO){var W=this.vD.get(Q);if(W)for(var x=g.V(W.XG),D=x.next();!D.done;D=x.next()){var K=g.V(D.value);D=K.next().value;K=K.next().value;var l=W.Na.get(D);if(qL(l[0])){if(!K.Az)continue;var M=l,w=K.data;w.getLength();l=0;var S=[];M=g.V(M);for(var b=M.next();!b.done;b=M.next()){b=b.value;var z=b.D,k=nI(w,l,z);l+=z;S.push(new QY(b,k))}W.J3.push.apply(W.J3,g.C(S))}else if(K.data.getLength()>0||!l[0].range&&K.Az)w=void 0,l=l[0],S=K.a$,M=K.data,l.range||(w=K.Az),b=M.getLength(),w=new QY(RW4(l,
l.U+S,b,w),M),K.a$+=w.info.D,W.J3.push(w);W.XG.get(D).data=new ul;K.Az&&W.XG.delete(D)}Q=this.vD.get(Q);if(!Q)return[];W=Q.J3;Q.J3=[];x=g.V(W);for(D=x.next();!D.done;D=x.next())Q.QR+=D.value.info.D;return W||[]}x=(W=this.vD.get(Q))==null?void 0:W.q_;if(!x)return[];this.EB(Q,x);return x.PM()};
g.R.Rl=function(Q){if(GO)return H7(this,Q);var W,x,D;return!!((x=(W=this.vD.get(Q))==null?void 0:W.q_)==null?0:(D=x.yz())==null?0:D.length)||H7(this,Q)};
g.R.EB=function(Q,W){for(;H7(this,Q);){var x=this.OJ(Q);var D=Q;D=this.vD.get(D).C2&&!AL(this,D);Sq(W,x,D&&WZO(this,Q))}};
g.R.U3=function(){g.N.prototype.U3.call(this);for(var Q=g.V(this.vD.keys()),W=Q.next();!W.done;W=Q.next())d6(this,W.value);var x;if((x=this.HD)==null?0:x.TH)for(Q=g.V(this.vD.values()),W=Q.next();!W.done;W=Q.next())W=W.value,W.XG.clear(),W.Na.clear(),W.J3.length=0,W.Af.length=0,W.Xb.length=0,W.oB.length=0;this.vD.clear()};
var GO=!1;g.n(qP,g.N);g.R=qP.prototype;g.R.fK=function(){!this.d7()&&this.xhr&&(this.EB(!1),OF(this.uN,this))};
g.R.Yc=function(){};
g.R.P8=function(){if(!this.d7()&&this.xhr){var Q=this.h0();Q===5?kA(this.f_):this.wE(Q);this.f_.U.stop();var W;(W=this.wQ)==null||W.stop()}};
g.R.h0=function(){var Q="";o6(this.f_,this.xhr)&&(Q=CQ1(this.f_,this.xhr));if(Q)return this.info.Db.Kt(this.BV,Q),3;this.EB(!0);if(Xd(this.f_,this.xhr.status,this.xhr.Si(),this.info.tE(),this.Ti))return 5;if(this.qS)return 3;PQ4(this.f_,this.xhr.Qc(),0,this.tE());this.policy.gE&&O1v(this.uN);return 4};
g.R.EB=function(Q){var W=this.xhr;if((Q||!o6(this.f_,this.xhr))&&W.gm()){Q=W.cg();var x=Q.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+x});
this.Se.feed(Q)}};
g.R.gy=function(Q,W){this.xhr.t7()&&Q===21&&RxF(this);this.uX.gy(Q,W)};
g.R.NR=function(Q,W,x,D){x||(this.ZX.NR(D),this.policy.wr&&Q===21&&RxF(this));if(Q!==21)return!1;this.ZX.uj=!0;Q=W.getLength();x||(this.uA=W.getUint8(0),W=W.split(1).h9);var K=this.policy.zq,l=this.uX.U[this.uA],M=this.jZ.D.get(l);if(K&&M&&(K*=M.info.a5,Q+x!==D&&Q<K))return!1;Um(this.WZ,this.uA,l,W);return!0};
g.R.YQ=function(Q){this.uN.YQ(Q)};
g.R.xL=function(Q){if(this.policy.enableServerDrivenRequestCancellation){var W;(W=this.wQ)==null||W.dispose();this.Zq=Q;Q.jI&&(this.wQ=new g.O3(this.tF,Q.jI,this));this.tF()}};
g.R.tF=function(){var Q;if((Q=this.Zq)!=null&&Q.items){var W;(W=this.wQ)==null||W.start();if(this.ZX.U>0){this.policy.bk&&this.f_.U.stop();Q=this.ZX.tB();W=this.ZX.J0();var x=wMa(this,Q);if(!(W>x.Je||x.qB>0&&this.info.n$()>x.qB)){this.T8=(0,g.a8)();var D;(D=this.wQ)==null||D.stop();this.policy.gE&&(D=this.uN,Q={ZH:Math.round(W*Q/1E3),o1:Q},D.policy.gE&&(D.fS=Q,D.iW++));this.T3()}}}};
g.R.T3=function(){this.f_.T3()};
g.R.ZO=function(Q){this.uN.ZO(Q,this.cL())};
g.R.uq=function(Q){this.qS=!0;this.info.Db.Kt(this.BV,Q.redirectUrl)};
g.R.pV=function(Q){this.ZX instanceof JL&&this.ZX.pV(Q)};
g.R.Cs=function(Q){this.ZX instanceof JL&&this.ZX.Cs(Q)};
g.R.Dq=function(Q,W,x){this.uN.Dq(Q,W,x,this.cL())};
g.R.Ig=function(Q){var W=Q.formatId,x=az({itag:W.itag,lmt:W.lmt,xtags:W.xtags}),D,K,l=new dR(((D=Q.xd)==null?void 0:D.first)||0,((K=Q.xd)==null?void 0:K.XR)||0),M,w;D=new dR(((M=Q.indexRange)==null?void 0:M.first)||0,((w=Q.indexRange)==null?void 0:w.XR)||0);if(!this.jZ.D.get(x)){x=Q.RD||{};if(this.policy.Br){var S,b;Q=(S=Q.mimeType)!=null?S:"";S=(b=W.itag)!=null?b:0;b=f3[""+S];x.mimeType=b!=="9"&&b!=="9h"?Q:'video/webm; codecs="'+["vp09",b==="9h"?"02":"00","51",b==="9h"?"10":"08","01.01.01.01.00"].join(".")+
'"'}else x.mimeType=Q.mimeType;x.itag=W.itag;x.lastModified=""+(W.lmt||0);x.xtags=W.xtags;W=this.jZ;b=nn("");S=uO(x,null);bO(W,new RI(b,S,l,D))}};
g.R.eG=function(Q){this.uN.eG(Q)};
g.R.onSnackbarMessage=function(Q){if(this.policy.Et)this.uN.onSnackbarMessage(Q)};
g.R.Ey=function(Q){this.Te=Q;this.rW=(0,g.a8)();this.uN.Ey(Q)};
g.R.Vi=function(Q,W,x){this.uN.Vi(Q,W,x)};
g.R.Mm=function(Q){Q.scope===2&&(this.GyS=Q);this.uN.Mm(Q)};
g.R.aB=function(){this.Kh=!0;this.uN.aB()};
g.R.xv=function(Q){this.policy.uG&&this.uN.xv(Q)};
g.R.TT=function(Q){this.uN.TT(Q,this.cL())};
g.R.G3=function(Q){Q.V_===3&&(this.Ti=!0);this.uN.G3(Q)};
g.R.KK=function(Q){this.uN.KK(Q)};
g.R.At=function(Q){this.uN.At(Q)};
g.R.canRetry=function(){this.d7();return this.f_.canRetry(!1)};
g.R.dispose=function(){if(!this.d7()){g.N.prototype.dispose.call(this);this.f_.dispose();var Q;(Q=this.wQ)==null||Q.dispose();this.wE(-1);this.Bd()}};
g.R.wE=function(Q){this.state=Q;OF(this.uN,this)};
g.R.tE=function(){return this.info.tE()};
g.R.E0=function(){return this.Kh};
g.R.Li=function(){return this.GyS};
g.R.ox=function(Q,W,x){x.clipId&&(this.clipId=x.clipId);this.policy.L&&!W&&(this.BK=x.Z5,this.Hc=x.startMs);var D=0;this.policy.Qx&&this.V6&&this.clipId&&(D=$2(this.V6,this.clipId)/1E3);this.WZ.ox(Q,W,x,D);this.policy.nt&&this.Te&&this.ZX instanceof tc&&(D=this.Te.IZ,this.ZX.ox(x.durationMs/1E3,W,D>0&&x.Z5+1>=D));this.WZ.vD.get(Q).u9=!0};
g.R.r3=function(Q,W){this.WZ.r3(Q,W)};
g.R.Lj=function(Q){this.requestIdentifier=Q};
g.R.PM=function(Q){return this.WZ.PM(Q)};
g.R.BF=function(Q){return this.WZ.BF(Q)};
g.R.Rl=function(Q){return this.WZ.Rl(Q)};
g.R.sN=function(){return this.WZ.sN()};
g.R.ZM=function(){return 1};
g.R.cL=function(){return this.ZX.requestNumber};
g.R.Xj=function(){return this.requestIdentifier};
g.R.MO=function(){return this.clipId};
g.R.cV=function(){return this.BV.cV()};
g.R.Qb=function(){this.Bd()};
g.R.Bd=function(){this.ZX.deactivate();var Q;(Q=this.xhr)==null||Q.abort()};
g.R.isComplete=function(){return this.state>=3};
g.R.f1=function(){return this.state===3};
g.R.je=function(){return this.state===5};
g.R.Q6=function(){return this.state===4};
g.R.t0=function(){return this.isComplete()};
g.R.qY=function(){return this.state>=1};
g.R.R4=function(){return this.policy.cD?this.f_.R4():0};
g.R.We=function(){this.policy.cD&&OF(this.uN,this)};
g.R.UK=function(){return Gsn(this.info)};
g.R.g1=function(){return this.f_.g1()};
g.R.TV=function(){var Q=JWz(this.f_);Object.assign(Q,iO5(this.info));Q.req="sabr";Q.rn=this.cL();var W;if((W=this.xhr)==null?0:W.status)Q.rc=this.policy.Zf?this.xhr.status:this.xhr.status.toString();var x;(W=(x=this.xhr)==null?void 0:x.ZJ())&&(Q.msg=W);this.T8&&(x=wMa(this,this.T8-this.ZX.B$()),Q.letm=x.bnf,Q.mrbps=x.Je,Q.mram=x.qB);return Q};
g.R.Fk=function(){return{BK:this.BK,Hc:this.Hc,isDecorated:this.info.isDecorated()}};SqO.prototype.tick=function(Q,W){this.ticks[Q]=W?window.performance.timing.navigationStart+W:(0,g.a8)()};g.n($A,g.Rd);g.R=$A.prototype;
g.R.aM=function(Q,W,x,D){var K=!1;this.policy.I5&&(K=x?this.KS===Q.E3:this.F3===Q.E3);if(this.X&&D&&!K){D=[];K=[];var l=[],M=void 0,w=0;W&&(D=W.B,K=W.U,l=W.D,M=W.N,w=W.Bv,this.qj("sdai",{sq:Q.E3,ssvicpns:D.join("."),ssvid:K.join(".")}));this.policy.I5&&(x?this.KS=Q.E3:this.F3=Q.E3);this.X.RC(Q.E3,Q.startTime,this.U,D,K,l,x,w,M)}if(this.policy.I5){if(x||this.policy.A_){this.U===1&&ml(this,5,"noad");var S;Q.E3!==((S=this.B)==null?void 0:S.E3)&&(vmv(this,Q,W,x),isNaN(Q.startTime)||NP(this,Q.E3,yj(this,
Q.startTime,Q.E3),!!W,this.X))}}else x&&vmv(this,Q,W)};
g.R.Zo=function(Q,W,x){var D=this.videoTrack.B.index.oQ()<=W;this.B={VN:Q,E3:W,ML:x};D&&I6(this,Q,W)};
g.R.rk=function(){this.X&&this.X.rk()};
g.R.qj=function(Q,W,x){(Q!=="sdai"||this.policy.Jx||(x===void 0?0:x))&&this.Bt.qj(Q,W)};
g.R.n7=function(Q,W){var x=this.videoTrack.B.index.GC(Q);if(x>=0){var D;var K=((D=W.Ex.ul(x,2))==null?void 0:D.Fm)||"";if(this.policy.L||K)return W.i_(Q,x),c7(this.Bt,Q,Q,x),this.qj("sdai",{cmskpad:1,t:Q.toFixed(3),sq:x}),!0}this.qj("sdai",{cmskpad:0,t:Q.toFixed(3),sq:x});return!1};g.n(Lk,g.N);Lk.prototype.yT=function(Q,W,x){x=x===void 0?{}:x;this.policy.U2=HB(Q,x,this.N,W===void 0?!1:W)};Fd.prototype.Pf=function(Q){var W=this;if(this.policy.b0){var x=new Set(Q);x.size===this.fS.size&&[].concat(g.C(x)).every(function(D){return W.fS.has(D)})||(this.Bt.qj("lwnmow",{itagDenylist:[].concat(g.C(Q)).join(",")}),this.Bt.Ug(!!x.size),this.T=-1,this.fS=x,tL(this,this.B),this.g7=!0)}};
Fd.prototype.yT=function(Q,W,x){x=x===void 0?{}:x;var D=this.policy.U2;this.L.yT(Q,W===void 0?!1:W,x);if(D!==this.policy.U2){tL(this,this.B);QQ(this);var K,l;D>this.policy.U2&&((K=this.D)==null?0:OC(K.info))&&((l=this.nextVideo)==null||!OC(l.info))&&(this.uj=!0)}};KG.prototype.PL=function(Q){this.timestampOffset=Q;this.flush()};
KG.prototype.flush=function(){if(this.B.pos>0){var Q={a:this.track.Mx(),u:this.B.Rj(),pd:Math.round(this.N),ad:Math.round(this.D)},W=this.U;if(W){var x=W.B.info;Q.itag=x.itag;x.B&&(Q.xtags=x.B);Q.sq=W.E3;Q.st=W.startTime;Q.sd=W.duration;this.track.policy.LI&&(Q.si=W.Zb());W.N&&(Q.esl=W.U+W.D);W.lf()&&(Q.eos=1)}isNaN(this.timestampOffset)||(Q.to=this.timestampOffset);var D;if(W=(D=this.track.Ln)==null?void 0:D.AO({})){for(var K in W)this.X[K]!==W[K]&&(Q["sb_"+K]=W[K]);this.X=W}this.track.qj("sbu",
Q);this.B.reset();this.buffered=[];this.L=this.D=this.N=0;this.timestampOffset=this.U=void 0}};jk.prototype.dispose=function(){this.pS=!0};
jk.prototype.d7=function(){return this.pS};
g.n(sJ,Error);var iM2=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]);XI.prototype.skip=function(Q){this.offset+=Q};
XI.prototype.JX=function(){return this.offset};g.R=S5Q.prototype;g.R.uw=function(){return this.U};
g.R.h8=function(){return this.U.length?this.U[this.U.length-1]:null};
g.R.kS=function(){this.U=[];VQ(this);Y9(this)};
g.R.OJ=function(Q){this.eZ=this.U.shift().info;Q.info.yI(this.eZ)};
g.R.BF=function(){return g.pm(this.U,function(Q){return Q.info})};
g.R.Mx=function(){return!!this.X.info.audio};
g.R.getDuration=function(){return this.X.index.w8()};g.n(Nd,DW);g.R=Nd.prototype;g.R.onStateChange=function(){this.d7()&&(ic(this.WZ,this.formatId),this.B.dispose())};
g.R.TV=function(){var Q=Qz5(this.WZ,this.formatId),W;var x=((W=this.WZ.vD.get(this.formatId))==null?void 0:W.bytesReceived)||0;var D;W=((D=this.WZ.vD.get(this.formatId))==null?void 0:D.QR)||0;return{expected:Q,received:x,bytesShifted:W,sliceLength:AL(this.WZ,this.formatId),isAnyMediaEndReceived:this.WZ.iY(this.formatId)}};
g.R.Is=function(){return 0};
g.R.aK=function(){return!0};
g.R.PM=function(){return this.WZ.PM(this.formatId)};
g.R.yz=function(){return[]};
g.R.Rl=function(){return this.WZ.Rl(this.formatId)};
g.R.g1=function(){return this.lastError};
g.R.R4=function(){return 0};g.n(Jt,g.N);g.R=Jt.prototype;g.R.Mx=function(){return!!this.B.info.audio};
g.R.h8=function(){return this.N.h8()};
g.R.OJ=function(Q){this.N.OJ(Q);var W;(W=this.S)!=null&&(W.L.add(Q.info.E3),W.B=$ya(W,W.Mi,W.wY,Q,W.B),W.D=Q,W.X=(0,g.a8)());this.a5=Math.max(this.a5,Q.info.B.info.a5||0)};
g.R.getDuration=function(){if(this.policy.U){var Q=this.Bt.zP();if(Q)return rY(Q)}return this.B.index.w8()};
g.R.kS=function(){gz(this);this.N.kS()};
g.R.Fj=function(){return this.N};
g.R.isRequestPending=function(Q){return this.D.length?Q===this.D[this.D.length-1].info.Af[0].E3:!1};
g.R.PL=function(Q){var W;(W=this.S)==null||W.PL(Q);var x;(x=this.T)==null||x.PL(Q)};
g.R.qj=function(Q,W){this.Bt.qj(Q,W)};
g.R.Mz=function(){return this.Bt.Mz()};
g.R.dispose=function(){var Q;(Q=this.T)==null||Q.flush();g.N.prototype.dispose.call(this)};g.n(OJ,g.N);OJ.prototype.D=function(){this.U++>15||(this.B=!this.B,new WrD(this.Bt,this.policy,this.p_,this.Db,this.B),this.delay.start())};
g.R=WrD.prototype;g.R.Yc=function(){};
g.R.fK=function(){};
g.R.P8=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Qc()===this.size)this.Bt.qj("rqs",this.getInfo());else{var Q="net.connect";this.xhr.status>200?Q="net.badstatus":this.xhr.PO()&&(Q="net.closed");this.onError(Q)}};
g.R.onError=function(Q){var W=this;this.Bt.handleError(Q,this.getInfo());GA("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(x){W.Bt.qj("pathprobe",x)},function(x){W.Bt.handleError(x.errorCode,x.details)})};
g.R.getInfo=function(){var Q=this.timing.XV();Q.shost=hW(this.location.MD);Q.pb=this.size;return Q};g.n(EJ,g.N);
EJ.prototype.G=function(Q,W){if(Q.G){this.jZ.isLive?(Q=this.jZ.bG&&this.jZ.N?Q.B.BO(this.jZ.bG,!1):Q.B.I4(Infinity),Q.B3=this.B3):Q=Q.B.BO(0,!1);if(this.uj){var x=this.uj;Q.B3===0&&(Q.L=x.S)}else Q.L=this.T;return Q}x=Q.U;if(!x.B.Fs())return x.B.Gc()?(Q=H9(this.L,Q.B.info.a5,W.B.info.a5,0),Q=x.B.Ta(x,Q)):Q=x.B.Np(x),Q;var D=x.Nx-this.Bt.getCurrentTime(),K=!x.range||x.D===0&&x.U===0?0:x.range.length-(x.U+x.D),l=x.B;this.Gs(Q,D)&&K===0&&(this.jZ.isManifestless?l=Q.B:(l=x.startTime+DP,x.D&&(l+=x.duration),
fa(Q,l),x=Q.U,l=x.B));l.Gc()?(K=this.D,W=H9(this.L,l.info.a5,W.B.info.a5,D,K.N.length>0&&K.S===0&&this.Bt.SM),D=cn(Q),Q=x.B.Ta(x,W),(W=Q.D)&&Q.Af.length>1&&(D||Q.Db.U||Q.Af[0].B!==x.B?Q=x.B.Ta(x,Q.Af[0].D):(D=Q.Af[Q.Af.length-1],l=D.D/W,!D.N&&l<.4&&(Q=x.B.Ta(x,W-D.D))))):(x.E3<0&&(W=mZ(x),W.pr=""+Q.D.length,this.Bt.isSeeking()&&(W.sk="1"),W.snss=x.L,this.Bt.qj("nosq",W)),Q=l.Np(x));if(this.policy.KS)for(x=g.V(Q.Af),W=x.next();!W.done;W=x.next())W.value.type=6;return Q};
EJ.prototype.Gs=function(Q,W){if(!cn(Q)||!Q.B.Fs())return!1;var x=this.D.g7||IvD(Q)||W<=this.policy.vy||this.D.uj;this.logger.debug(function(){return"ready to adapt: "+x+", upgrade pending: "+IvD(Q)+", health: "+W});
return x};
EJ.prototype.U3=function(){g.N.prototype.U3.call(this)};
var DP=2/24;g.n(K2,g.N);K2.prototype.CQ=function(Q,W,x){var D;var K=((D=this.U)==null?void 0:D.reason)==="m"?"m":this.U&&u4h(this,this.U)?this.U.reason:"a";this.Bt.CQ(new ZW(Q,K,x));xp(this.Bt,W,Q,!0)};
K2.prototype.Bs=function(Q,W){for(var x=g.V(this.KS),D=x.next();!D.done;D=x.next())if(D=D.value,D.id===Q)return this.HD.xG||(this.D=[D]),this.X=this.jZ.B[Q],rI(this.HD)&&(this.uj=!0),Q=new ZW(this.X,W?"t":"m"),this.HD.QN&&W&&(this.L=!0),Q;this.D=[];return null};
K2.prototype.yT=function(Q,W,x){x=x===void 0?{}:x;this.B.yT(Q,W===void 0?!1:W,x)};Mg.prototype.setData=function(Q,W,x,D){var K=this;D=D===void 0?{}:D;if(x==null?0:x.WN)this.xu=M2a(this,x,D),Q.nU=this.Db.nU();if(this.tE())return!0;this.data=Q;this.B=hul(Q,W,function(l,M){var w;(w=K.uN)==null||w.T1(l,M)},x==null?void 0:x.D);
if(!this.B)return!1;this.U=g.l1(this.B,Ypl);return!0};
Mg.prototype.tE=function(){return this.requestType===1};
Mg.prototype.n$=function(){var Q;return((Q=this.uN)==null?void 0:Q.n$())||0};
Mg.prototype.isDecorated=function(){var Q;return!((Q=this.data)==null||!Q.WL)};RS.prototype.encrypt=function(Q){this.n_.exports.AES128CTRCipher_encrypt(this.cipher,Q.byteOffset,Q.byteLength);return Q};
RS.prototype.d7=function(){return this.cipher===0};
RS.prototype.dispose=function(){this.n_.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};wY.prototype.encrypt=function(Q,W){return b3(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:W},this.key,Q).catch(function(x){return Promise.reject(x.name+": "+x.message)}).then(function(x){return new Uint8Array(x)}))};
wY.prototype.d7=function(){return this.B};
wY.prototype.dispose=function(){this.B=!0};
hJ.oO(wY,{encrypt:HO4("oan2")});SH.prototype.encrypt=function(Q,W){Yt(this.U,W);return b3(this.U.encrypt(Q))};
SH.prototype.d7=function(){return this.B};
SH.prototype.dispose=function(){this.B=!0};
hJ.oO(SH,{encrypt:HO4("oap")});Gt.prototype.encrypt=function(Q,W){var x=this.n_.oF(W),D=this.B;D.n_.exports.AES128CTRCipher_setCounter(D.cipher,(x!=null?x:W).byteOffset);W=this.n_.oF(Q);this.B.encrypt(W!=null?W:Q);x&&this.n_.free(x.byteOffset);return W?b3(this.n_.ym(W)):b3(Q)};
Gt.prototype.d7=function(){return this.B.d7()};
Gt.prototype.dispose=function(){this.B.dispose()};
hJ.oO(Gt,{encrypt:HO4("oalw")});dY.prototype.encrypt=function(Q,W){var x=this,D=kv("");Q.length<=this.au&&this.B&&!this.N&&(D=Yv(D,function(){return x.B?x.B.encrypt(Q,W):kv("wasm unavailable")}));
Q.length<=this.x9&&(this.B&&this.N&&(D=Yv(D,function(){return x.B?x.B.encrypt(Q,W):kv("wasm unavailable")})),D=Yv(D,function(){return B5a(x,Q,W)}));
return Yv(Yv(D,function(){return $4z(x,Q,W)}),function(){return B5a(x,Q,W)})};
dY.prototype.d7=function(){return this.L};
dY.prototype.dispose=function(){this.L=!0;var Q;(Q=this.D)==null||u3(Q,g.w1);g.w1(this.B);g.w1(this.U)};ij.prototype.encrypt=function(Q){(0,g.a8)();return(new RO(this.B.B)).encrypt(Q,this.iv)};
ij.prototype.decrypt=function(Q,W){(0,g.a8)();return(new RO(this.B.B)).decrypt(Q,W)};
ij.prototype.d7=function(){return this.D};
ij.prototype.dispose=function(){this.D=!0;g.w1(this.U)};g.n(AY,g.N);AY.prototype.D=function(Q,W){if(W){W=W instanceof g.JW?W:Hf(this,W);var x;((x=this.B.get(Q))==null?void 0:hW(x.location))!==hW(W)&&this.B.set(Q,new Lr5(W,Q))}else this.B.delete(Q)};
AY.prototype.load=function(){var Q=this,W,x,D,K,l,M,w,S,b,z;return g.U(function(k){switch(k.B){case 1:W=Q.B.get(0);g.P5(k,2);var X;if(X=W&&!Q.U)X=hW(W.location),X=Q.U===zO(X);if(X){k.kf(4);break}return g.A(k,fjD(Q,Q.U?2:0),5);case 5:if(x=k.U)Q.D(0,x),G8(x)&&Q.D(1,dQ(x));case 4:g.Cs(k,3);break;case 2:D=g.Jv(k);g.Bp(D);if(!Q.U){k.kf(3);break}Q.U=!1;return g.A(k,Q.load(),7);case 7:return k.return();case 3:if(!Q.bj.experiments.ij("html5_onesie_probe_ec_hosts")){k.kf(0);break}g.P5(k,9);K=Q;l=K.D;M=3;return g.A(k,
fjD(Q,1),11);case 11:return l.call(K,M,k.U),w=Q,S=w.D,b=4,g.A(k,fjD(Q,2),12);case 12:S.call(w,b,k.U);g.Cs(k,0);break;case 9:z=g.Jv(k),g.Bp(z),g.VF(k)}})};
AY.prototype.G=function(){var Q=this,W,x;return g.U(function(D){g.E3(Q.S);W=g.X0(Q.bj.experiments,"html5_onesie_prewarm_max_lact_ms");if(aK()>=W)return D.return();(x=Q.B.get(0))&&euQ(Q,x);g.VF(D)})};
var gh5={Zv3:0,Lup:1,BVZ:2,EI3:3,V9f:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};rCa.prototype.decrypt=function(Q){var W=this,x,D,K,l,M,w;return g.U(function(S){switch(S.B){case 1:if(W.B.length&&!W.B[0].isEncrypted)return S.return();W.U=!0;W.zc.Tt("omd_s");x=new Uint8Array(16);PE()?D=new M4(Q):K=new RO(Q);case 2:if(!W.B.length||!W.B[0].isEncrypted){S.kf(4);break}l=W.B.shift();if(!D){M=K.decrypt(l.buffer.Nq(),x);S.kf(5);break}return g.A(S,D.decrypt(l.buffer.Nq(),x),6);case 6:M=S.U;case 5:w=M;for(var b=0;b<x.length;b++)if(x[b]===255)x[b]=0;else{x[b]+=1;break}b=W.zc;var z=l.videoId,
k=l.N5,X=l.formatId,u=new ul([w]),Y;(Y=qg(b.uy,z))==null||Um(Y,k,X,u);S.kf(2);break;case 4:W.zc.Tt("omd_c"),Bf(W),W.U=!1,W.zc.ag(),g.VF(S)}})};
rCa.prototype.enqueue=function(Q,W,x,D,K){this.B.push({videoId:Q,N5:W,formatId:x,buffer:D,isEncrypted:K});this.U||Bf(this)};var K5n=!!Uint8Array.prototype.copyWithin,$p=[],T5F=[],FrO=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],mR=[],IS=[],Ng=[],OOs=[];gY.prototype.Zy=function(Q){return g.DoQ(new g.EhO(Q))};
gY.prototype.T$=function(Q){function W(M){if(!M.done)return l.append(M.value),K.read().then(function(w){return W(w)})}
if(!("DecompressionStream"in window))return kv("native decompression unavailable");var x=new DecompressionStream("gzip"),D=x.writable.getWriter();D.write(Q).then(function(){return D.close()});
var K=x.readable.getReader(),l=new ul([]);return Yv(u3(u3(b3(K.read()),W),function(){return l.Nq()}),function(M){return kv(M.message)})};
gY.prototype.nk=function(Q,W){var x=void 0,D=W.oF(Q);D&&(x=D.byteOffset,Q=D);D=W.exports.getInflatedSize(Q.byteOffset,Q.length);if(D===0)return kv("bad compressed input");var K=W.malloc(D);if(W.exports.inflateGzip(Q.byteOffset,Q.length,K))return W.free(K),kv("inflateGzip failed");x&&W.free(x);return b3(new Uint8Array(W.exports.memory.buffer,K,D))};
hJ.oO(gY,{Zy:function(Q){return{profile:"gzjb",Ny:Math.ceil(Q.byteLength/16)}},
T$:function(Q){return{profile:"gznb",Ny:Math.ceil(Q.byteLength/16)}},
nk:function(Q){return{profile:"gzwb",Ny:Math.ceil(Q.byteLength/16)}}});g.n(SN2,pk);g.R=SN2.prototype;g.R.ag=function(){this.uy.ag()};
g.R.zB=function(Q,W){switch(Q){case 10:var x=cQ(W,h5F);Q=x.r2j;var D=!1;switch(Q){case 0:this.D=!x.dC.h9f;this.iv=x.dC.iv;break;case 2:break;case 23:var K=this.uy;x=x.o63;K.Tt("omp_r");x.videoId&&(K.e2=x.videoId);K.e2!==K.videoData.videoId&&(K.videoData.YO=K.e2,K.qj("ompp","vid."+K.e2));K.VL=!0;break;case 24:x=this.uy;x.Tt("omp_c");x.VL=!1;x.HA=!1;var l=(K=x.bS)==null?void 0:K.get(x.e2);x.notifySubscribers(x.e2);l!=null&&(l.B=!0);f2(x);break;default:D=!0}this.uy.vL&&this.uy.qj("ombup","id.10;pt."+
Q+";len."+W.getLength()+(D?";ignored.1":""));this.N=Q;break;case 11:zl4(this,W);break;case 12:this.SJ(W,!0);break;case 37:W=cQ(W,ak4);(W.GG||W.AR)&&W.videoId&&this.uy.wO.set(W.videoId,W);break;case 60:this.CH(W);break;case 47:this.j("html5_server_playback_start_policy")&&(W=cQ(W,AD1),this.uy.playbackStartPolicy=W);break;case 35:this.YQ(W);break;case 45:this.eG(W);break;case 66:this.KK(W);break;default:this.uy.vL&&this.uy.qj("ombup","id."+Q+";len."+W.getLength()+";ignored.1")}};
g.R.Ey=function(Q){this.uy.Ey(Q)};
g.R.CH=function(Q){Q=cQ(Q,xJ);this.uy.CH(Q)};
g.R.eG=function(Q){Q=cQ(Q,DK);this.uy.eG(Q)};
g.R.Vm=function(Q){var W=Q.N5,x=Q.ey,D=Q.qo,K=Q.e9,l=Q.Z5,M=Q.startMs,w=Q.durationMs,S=Q.timeRange,b=Q.sJ,z=az(Q),k=WpC.has(f3[""+Q.itag]);x&&this.Tt(k?"oais_r":"ovis_r");var X=this.B[z]!==void 0;this.uy.vL&&this.uy.qj("ombup","id.20;hid."+W+";fid."+z);var u=Q.videoId||"";this.U[W]=z;this.L[W]=u;X||(this.B[z]={videoId:u,rg:!1,Mx:k,headers:[]});this.B[z].headers.push(Q);this.uy.ox(u,z,k,{N5:W,ey:!!x,qo:D!=null?D:-1,Z5:l!=null?l:-1,startMs:M!=null?M:-1,durationMs:w!=null?w:-1,sJ:b!=null?b:0,e9:K,timeRange:S})};
g.R.SJ=function(Q,W){var x=Q.getUint8(0);this.uy.vL&&this.uy.qj("ombup","id."+(W?12:21)+";len."+Q.getLength()+";hid."+x);if(Q.getLength()!==1){Q=Q.split(1).h9;var D=this.U[x]||null,K=this.L[x]||"";D&&(this.U4(this.B[D].Mx?"oafs_r":"ovfs_r"),this.queue.enqueue(K,x,D,Q,W))}};
g.R.r3=function(Q){var W=Q.getUint8(0);this.uy.vL&&this.uy.qj("ombup","id.22;len."+Q.getLength()+";hid."+W);Q=this.U[W]||null;var x=this.L[W]||"";if(Q)if(this.j("html5_use_ump_request_slicer")){var D=this.queue;D.B.push({videoId:x,N5:W,formatId:Q,isEncrypted:!1,Fc:!0});D.U||Bf(D)}else this.uy.r3(x,W,Q)};
g.R.Lj=function(Q){this.uy.Lj(Q)};
g.R.VG=function(Q,W){var x=this,D,K,l,M,w,S,b,z,k,X;return g.U(function(u){switch(u.B){case 1:x.uy.VG();D=Q.Nq();if(!W){l=D;u.kf(2);break}return g.A(u,JQ5(x.uy,D,x.iv),3);case 3:l=u.U;case 2:K=l;if(!x.uy.enableCompression){u.kf(4);break}w=(M=performance)==null?void 0:M.now();return g.A(u,ldh(K),5);case 5:K=u.U,x.uy.qj("decompression",{ds:"DecompressionStream"in window,rt:((S=performance)==null?NaN:S.now())-w});case 4:try{b=cQ(K,su1)}catch(Y){return z=Y instanceof Error?{name:Y.name,message:Y.message}:
{},z.webcrypto=""+ +!!PE(),z.enc=""+ +x.D,k=new Gu("onesie.response.parse",z),u.return(Promise.reject(k))}wWF(b);X=g.hy(b.body);return u.return(X)}})};
g.R.YQ=function(Q){this.j("html5_consume_onesie_next_request_policy_for_sabr")&&(Q=cQ(Q,d_O),this.uy.YQ(Q))};
g.R.KK=function(Q){Q={AY:It(new il(Q),1,qp1)};this.uy.KK(Q)};
g.R.Tt=function(Q){this.uy.Tt(Q)};
g.R.U4=function(Q){return this.uy.U4(Q)};
g.R.j=function(Q){return this.uy.j(Q)};g.n(eH,g.N);g.R=eH.prototype;g.R.MO=function(){return""};
g.R.sN=function(Q){var W,x;return((x=(W=this.bS)==null?void 0:W.get(Q))==null?void 0:x.sN())||[]};
g.R.Rl=function(Q,W){var x;return!((x=qg(this,W))==null||!x.Rl(Q))};
g.R.PM=function(Q,W){var x;return((x=qg(this,W))==null?void 0:x.PM(Q))||[]};
g.R.BF=function(Q,W){var x;return((x=qg(this,W))==null?void 0:x.BF(Q))||[]};
g.R.wE=function(Q){this.state=Q;this.notifySubscribers()};
g.R.tE=function(){return!1};
g.R.E0=function(){return!1};
g.R.Li=function(){};
g.R.Tt=function(Q){this.xf.Tt(Q)};
g.R.U4=function(Q){return this.xf.U4(Q)};
g.R.NR=function(Q,W,x,D){x||this.ZX.NR(D);return!1};
g.R.gy=function(Q,W){this.zc.gy(Q,W)};
g.R.MB=function(){this.Tt("orfb");this.Rv=!0;if(pWO(this)&&this.xhr){var Q={rc:this.xhr.status,lb:this.xhr.Qc(),rt:(1E3*Ww5(this.ZX)).toFixed(),shost:g.$X(this.f8),trigger:"o1"};this.qj("pathprobe",a0(Q))}};
g.R.VG=function(){this.Tt("opr_r");this.wg=!0};
g.R.ox=function(Q,W,x,D){if(this.bS){if(!this.bS.has(Q)){var K=new a6(this);this.bS.set(Q,K);g.y(this,K)}var l;(l=this.bS.get(Q))==null||l.ox(W,x,D);f2(this);x||(this.BK=D.Z5,this.Hc=D.startMs)}else f2(this)};
g.R.Ey=function(Q){this.ex=Q;Q.Tb!=null&&this.xf.nF(Q.Tb)};
g.R.CH=function(Q){this.S1=Q};
g.R.YQ=function(Q){Q.videoId&&this.yb.set(Q.videoId,Q)};
g.R.ag=function(){if(this.bS)for(var Q=g.V(this.bS.keys()),W=Q.next();!W.done;W=Q.next()){var x=void 0;(x=this.bS.get(W.value))==null||x.Kj()}};
g.R.eG=function(Q){this.yC=Q};
g.R.KK=function(Q){if(Q==null?0:Q.AY)if(Q=Q.AY.zE){Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())W=W.value,W.videoId&&this.MV.set(W.videoId,W)}};
g.R.qj=function(Q,W,x){this.xf.qj(Q,W,x===void 0?!1:x)};
g.R.r3=function(Q,W,x){var D;(D=qg(this,Q))==null||D.r3(W,x)};
g.R.Lj=function(Q){this.AP.set(Q.videoId,Q)};
g.R.fetch=function(){var Q=this,W,x,D,K,l,M,w,S,b,z,k,X,u,Y,v,J,h,G,H,I,c;return g.U(function(O){switch(O.B){case 1:Q.logger.debug("Onesie fetch started.");Q.Iu?Q.eY.start():Q.BA.start();Q.Tt("or_i");W=Q.bj.experiments.ij("html5_onesie_verbose_timing");x={};D=(0,g.a8)();K=function(T){W&&(x[T]=(0,g.a8)()-D)};
K("loc_s");if(l=XWF(Q.videoData,Q.FN)){O.kf(2);break}K("loc_async");M=g.X0(Q.bj.experiments,"html5_onesie_redirector_timeout_ms");return g.A(O,oSD(Q.videoData,Q.FN,M),3);case 3:l=O.U;case 2:if(!l)return Q.logger.info("Onesie URL creation failed."),w={url:"0"},S=new Gu("onesie.unavailable.hotconfig",w),Q.Os(S),O.return(Q.Tz);Q.xu=hW(l);K("loc_e");b=g.lb(Q.bj,g.ZM(Q.videoData));z=!!b.B;if(!z){k=b.getValue();O.kf(4);break}return g.A(O,b.B,5);case 5:k=O.U;case 4:X=k;Q.j("html5_log_onesie_empty_oauth")&&
!X&&Q.qj("no_token",{async:z});K("oauth");u=YN5(Q.playerRequest,Q.bj,Q.videoData,X,zO(Q.xu));g.P5(O,6);if(!Cbs(Q,u)){K("or_s_sync");Q.Ba=VQ5(u,Q.ob,Q.bj,Q.xf,Q.xk.onesieUstreamerConfig,(Y=Q.videoData.kL)==null?void 0:Y.Ka);O.kf(8);break}K("or_s_async");return g.A(O,vSs(u,Q.ob,Q.bj,Q.xf,Q.xk.onesieUstreamerConfig,(v=Q.videoData.kL)==null?void 0:v.Ka),9);case 9:Q.Ba=O.U;case 8:g.Cs(O,7);break;case 6:return J=g.Jv(O),Q.logger.info("Failed to create OnesieRequestProto."),Q.Os(J),O.return(Q.Tz);case 7:return K("or_e"),
W&&Q.qj("oreqvt",x),Q.enableCompression=Q.Ba.Ns.Q8,Q.Tt("osor"),h=EK1(),G=g.l1(Q.Ba,rsl),H={method:"POST",body:G,headers:{"Content-Type":"text/plain",Referer:location.origin}},I=Q.j("html5_onesie_media_capabilities"),uSs(l,Q.videoData,ad5(Q),I),Q.logger.debug("Starting Onesie network request."),Q.vL&&Q.qj("ombrs","1"),c=Q.xf.C().schedule,Q.ZX=new tc(Q,{p_:c,Gv:Q.vL,wJ:function(T,Ks){Q.xf.jF(T,Ks)},
K7:!0}),l.set("rn",""+Q.ZX.requestNumber),Q.f8=l.cV(),Fe(Q.ZX,Q.f8),Q.Tt("or_p"),Q.xhr=jq(new uM(l),h,Q.ZX,ta,H),Q.B4.start(),O.return(Q.Tz)}})};
g.R.ZM=function(){return 2};
g.R.Yc=function(){this.Tt("orh_r")};
g.R.fK=function(){!this.Rv&&this.xhr.Qc()&&this.MB();if(this.Yy&&!this.Iu){var Q;(Q=this.pX)==null||Q.start()}this.EB()};
g.R.P8=function(Q){Q=Q===void 0?!1:Q;this.logger.debug("onXhrDone");this.EB();if(!(this.d7()||this.state>=4)){var W=yJ(this),x=this.xhr;W.rc=x.status;Q&&(W.ab=!0);if(x.ZJ()){var D="onesie.net";W.msg=x.ZJ()}else x.status>=400?D="onesie.net.badstatus":x.Si()?this.wg||(D="onesie.response.noplayerresponse"):D=x.status===204?"onesie.net.nocontent":"onesie.net.connect";D?this.Os(new Gu(D,W)):(this.Tt("or_fs"),this.ZX.KH((0,g.a8)(),x.Qc(),0),this.wE(4),this.vL&&this.qj("rqs",W));this.vL&&this.qj("ombre",
"ok."+ +!D);this.HA=!1;f2(this);b1h(this.zc);if(!this.Iu){this.BA.stop();var K;(K=this.pX)==null||K.stop()}var l;if(Q=(l=this.FN)==null?void 0:ZO5(l))for(l=0;l<Q.length;l++)this.qj("pathprobe",Q[l])}};
g.R.Qb=function(){if(this.playerResponse&&this.xhr&&this.bS)for(var Q=g.V(this.bS.entries()),W=Q.next();!W.done;W=Q.next())if(W=g.V(W.value),W.next(),W.next().value.U){this.xhr.abort();this.P8(!0);break}};
g.R.C=function(){return this.bj};
g.R.j=function(Q){return this.bj.j(Q)};
g.R.v63=function(){if(pWO(this)&&this.FN&&(!this.Rv||this.j("html5_onesie_probe_ec_hosts"))){var Q=this.FN;if(Q.bj.experiments.ij("html5_onesie_probe_ec_hosts")){var W,x=(W=Q.B.get(3))==null?void 0:hW(W.location);x&&UF(Q,x,"osc",this);var D;(x=(D=Q.B.get(4))==null?void 0:hW(D.location))&&UF(Q,x,"ocy",this)}else{var K;(D=(K=Q.B.get(1))==null?void 0:hW(K.location))&&UF(Q,D,"o2",this);(D=(x=Q.B.get(2))==null?void 0:hW(x.location))&&UF(Q,D,"o3",this)}}};
g.R.Io=function(){if(!this.d7()&&!this.isComplete()){if(this.Yy){if((0,g.a8)()-this.ZX.G>1E3){var Q;(Q=this.ZX)==null||Q.wu((0,g.a8)());Q=yJ(this);if(this.bj.jk()&&this.xhr instanceof Kk){var W=this.xhr;Q.xrs=W.xhr.readyState;Q.xpb=W.B.getLength();Q.xdc=W.N}this.Os(new Gu("net.timeout",Q))}}else(0,g.a8)()-this.ZX.B>1E4&&((W=this.ZX)==null||W.wu((0,g.a8)()),this.Pe());this.isComplete()||this.eY.start()}};
g.R.Pe=function(){this.logger.info("Onesie request timed out");this.HA=!1;if(!f2(this)){var Q=yJ(this);Q.timeout="1";this.Os(new Gu("onesie.request",Q))}};
g.R.Os=function(Q){var W=this;Q=i7(Q);this.Yy?this.xf.zt(Q):(this.Tz.reject(Q),this.Yy=!0);b1h(this.zc);this.Iu||this.BA.stop();this.Tt("or_fe");var x,D;(x=this.FN)==null||(D=ZO5(x))==null||D.forEach(function(K){W.qj("pathprobe",K)});
this.wE(5);this.dispose()};
g.R.isComplete=function(){return this.state>=3};
g.R.Q6=function(){return this.state===4};
g.R.t0=function(Q){var W,x;return this.isComplete()||!!((W=this.bS)==null?0:(x=W.get(Q))==null?0:x.B)};
g.R.f1=function(){return!1};
g.R.je=function(){return this.state===5};
g.R.notifySubscribers=function(Q){for(var W=0;W<this.LG.length;W++)Q&&this.LG[W].XX()!==Q||OF(this.LG[W],this)};
g.R.UK=function(){var Q,W;return((Q=this.Ba)==null?void 0:(W=Q.vr)==null?void 0:W.w9)||0};
g.R.U3=function(){this.playerResponse="";var Q;(Q=this.xhr)==null||Q.abort();b1h(this.zc);this.Se.dispose();var W;(W=this.pX)==null||W.dispose();this.wE(-1);this.LG=[];g.N.prototype.U3.call(this)};
g.R.EB=function(){try{var Q=this.xhr;Q.Qc()>102400&&!this.FR&&(this.Tt("or100k"),this.FR=!0);if(Q.gm()){var W=Q.cg(),x=W.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+x});
this.vL&&this.qj("ombrss","len."+x);this.Se.feed(W)}if(this.bS)for(var D=g.V(this.bS.keys()),K=D.next();!K.done;K=D.next()){var l=K.value;Q=void 0;(Q=this.bS.get(l))==null||Q.Kj();this.notifySubscribers(l)}}catch(M){this.Os(M)}};
g.R.cL=function(){return this.ZX.requestNumber};
g.R.Xj=function(Q){return this.AP.get(Q)};
g.R.Fk=function(){return{BK:this.BK,Hc:this.Hc,isDecorated:!1}};g.n(doh,g.N);g.R=doh.prototype;g.R.Gm=function(Q,W){this.pS=void 0;O1v(this);L5a(this,Q,W)};
g.R.gU=function(Q){if(this.B.length===0)return!1;var W=this.B[0];return W instanceof eH?Q===this.Bt.getCurrentTime()*1E3:!(W instanceof qP&&d4D(W.info))&&Math.abs(W.UK()-Q)<50};
g.R.YQ=function(Q){this.U=Q;this.pS=(0,g.a8)()+(Q.backoffTimeMs||0)};
g.R.ZO=function(Q,W){if(Q.action===void 0){var x=this.xf.vR();x!==void 0&&this.Bt.K0(x)}else if(Q.action!==0||!this.eZ)switch(Q.action===0&&this.policy.hJ&&(Q.action=2),x={},x.reason=Q.x_5,x.action=Q.action,x.rn=W,Q.action){case 1:this.policy.L&&this.N&&this.N.R2(void 0,void 0,x);break;case 0:this.eZ=!0;this.videoData.aQ()&&this.policy.L&&this.N&&this.N.R2(void 0,void 0,x,!1);this.Bt.F6(x);break;case 2:this.Bt.handleError("sabr.config",x,1);break;case 5:PXl(this.xf,!0);break;case 6:PXl(this.xf,!1);
break;case 3:this.policy.WN&&((Q=this.jZ.S)!=null&&(Q.S=!0),this.Bt.handleError("sabr.hostfallback",x))}};
g.R.Dq=function(Q,W,x,D){if(this.policy.U){this.Bt.qj("ssap",{rn:D,v:W,tl:F5v(Q)});var K=this.Bt.zP();Q={Qu:Q,context:x,version:W};rQn(this,x);K?T0n(this,K,Q):(this.Bt.qj("ssap",{cacheclips:1,rn:D,v:W}),this.S=Q)}};
g.R.Mm=function(Q){this.Bt.qj("ssap",{onsbrctxt:Q.type,dflt:Q.sendByDefault});rQn(this,Q);this.xf.Mm(Q)};
g.R.aB=function(){};
g.R.eG=function(Q){if(Q.Kr!==void 0&&Q.Qa){var W=Q.Kr/Q.Qa;this.audioTrack.G=!1;this.videoTrack.G=!1;if(this.policy.pS||this.policy.oH||this.policy.lW)this.Bt.M_.U=!1;this.Bt.MW(W,1);if(this.xf.getCurrentTime()!==W){var x={N7:"sabr_seek",Zx:!0,Va:!0};Q.seekSource&&(x.seekSource=Q.seekSource);rz(this.Bt,W+.1,x)}}};
g.R.onSnackbarMessage=function(Q){this.xf.publish("onSnackbarMessage",Q)};
g.R.Ey=function(Q){Q.IZ&&Q.vY&&ha(this.jZ,Q.IZ,Q.vY);this.policy.z4&&(Q.pL&&Q.BB&&(this.jZ.xg=Q.pL/Q.BB),Q.PQ&&Q.AF&&(this.jZ.t_=Q.PQ/Q.AF));Q.Tb!=null&&this.xf.nF(Q.Tb);this.policy.FV&&Q.So&&(Q=((0,g.a8)()-Q.So)/1E3,this.Bt.Lm.w5(1,Q))};
g.R.G3=function(Q){this.Bt.G3(Q)};
g.R.Z1=function(Q){return this.kW.has(Q)};
g.R.Vi=function(Q,W,x){this.policy.D&&this.Bt.qj("sabrctxtplc",{start:Q?Q.join("_"):"",stop:W?W.join("_"):"",discard:x?x.join("_"):""});if(Q){Q=g.V(Q);for(var D=Q.next();!D.done;D=Q.next())this.kW.add(D.value)}if(W)for(W=g.V(W),Q=W.next();!Q.done;Q=W.next())Q=Q.value,this.kW.has(Q)&&this.kW.delete(Q);if(x)for(x=g.V(x),W=x.next();!W.done;W=x.next())W=W.value,this.videoData.sabrContextUpdates.has(W)&&(this.videoData.sabrContextUpdates.delete(W),W===3&&(this.videoData.Og=""))};
g.R.xv=function(){};
g.R.Jk=function(Q){this.X=Q};
g.R.Dh=function(Q){this.X3=Q};
g.R.TT=function(Q,W){Ta(this.policy,Q,4,W)};
g.R.KK=function(Q){if(Q==null?0:Q.AY)if(Q=Q.AY.zE){Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())if(W=W.value,W.formatId){var x=this.jZ.D.get(az(W.formatId));x&&x.info&&(x.info.debugInfo=W.debugInfo)}}};
g.R.At=function(Q){(Q=Q==null?void 0:Q.reloadPlaybackParams)&&this.xf.publish("reloadplayer",Q)};
g.R.XX=function(){return this.xf.XX()||""};
g.R.n$=function(){var Q=qY(this.audioTrack,!0)*1E3,W=qY(this.videoTrack,!0)*1E3;return Math.min(Q,W)};
g.R.T1=function(Q,W){this.Bt.qj(Q,W)};
g.R.c$=function(Q){nNQ(this.Bt,Itz(this.O3,Q))};
g.R.U3=function(){g.N.prototype.U3.call(this);this.U=void 0;L5a(this,!0,"i");this.B=[]};Q44.prototype.KZ=function(Q,W){if(this.N)return lMn(this,W);if(W=TA(Q)){var x=W.U;x&&x.D&&x.B&&(Q=Q.D.length?Q.D[0]:null)&&Q.state>=2&&!Q.je()&&Q.info.B3===0&&(this.N=Q,this.G=x,this.U=W.info,this.X=this.startTimeSecs=Date.now()/1E3,this.L=this.U.startTime)}return NaN};
Q44.prototype.clear=function(){this.U=this.G=this.N=null;this.B=this.L=this.X=this.startTimeSecs=NaN;this.D=!1};g.n(g.QT,g.N);g.R=g.QT.prototype;g.R.initialize=function(Q,W,x){this.logger.debug(function(){return"Initialized, t="+Q});
Q=Q||0;this.policy.B||(W=NR5(this.B),vNs(this.xf,new ZW(W.video,W.reason)),this.xf.wh(new ZW(W.audio,W.reason)));this.jZ.isManifestless&&sOO(this.L);this.G&&xJh(this.G,this.videoTrack.B);W=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var D=!this.jZ.isManifestless;this.policy.H2&&(D=D||this.jZ.Nr);this.policy.fS||(this.currentTime=D?Q:W);this.policy.pS&&this.seek(this.getCurrentTime(),{}).RH(function(){});
if(this.policy.B){var K;((K=this.uj)==null?0:GQh(K,this.XX()||""))&&S_5(this)&&wXO(this,this.videoTrack)&&wXO(this,this.audioTrack)&&(ESF(this.D,this.uj),this.policy.X&&Rjn(this))}else this.pS&&(bQz(this,this.videoTrack),bQz(this,this.audioTrack),twO(this.pS),delete this.pS);x?(this.policy.KR?(this.fn=x,x0(this,x)):x0(this,!1),g.E3(this.nE)):(x=this.getCurrentTime()===0,QJ(this.L,this.videoTrack,this.videoTrack.B,x),QJ(this.L,this.audioTrack,this.audioTrack.B,x),this.policy.B&&H11(this.D,!0),this.policy.pS||
this.seek(this.getCurrentTime(),{}).RH(function(){}),this.timing.tick("gv"));
(this.jZ.bG||this.jZ.xS||this.jZ.X3||this.jZ.WN||this.jZ.yA)&&this.xf.gQ(this.jZ)};
g.R.resume=function(){if(this.isSuspended||this.SM){this.logger.debug("Resumed.");this.v5=this.SM=this.isSuspended=!1;try{this.KZ()}catch(Q){g.ql(Q)}}};
g.R.G6=function(){return!this.policy.fn};
g.R.MI=function(Q,W){Q=Q===void 0?!1:Q;W=W===void 0?!1:W;this.logger.debug("detaching media source");XXD(this);this.xf.s2()&&(this.X=NaN);Q?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.LS&&this.qj("loader",{setsmb:1}),this.policy.KS=!0,this.kS()):(this.policy.KR?x0(this,this.fn):x0(this,!1),W||this.kS())};
g.R.setAudioTrack=function(Q,W,x){x=x===void 0?!1:x;if(!this.d7()){var D=!isNaN(W);x&&D&&(this.audioTrack.pS=Date.now(),this.policy.J2&&(this.I5=!0));if(this.policy.B){var K=this.U.Bs(Q.id,D);this.logger.debug(function(){return"Logging new audio format: "+K.B.info.id});
this.xf.wh(K)}else{var l=$L1(this.B,Q.id,D);this.logger.debug(function(){return"Logging new audio format: "+l.audio.info.id});
this.xf.wh(new ZW(l.audio,l.reason))}if(D&&(x=this.audioTrack.B.index.GC(W),this.qj("setAudio",{id:Q.id,cmt:W,sq:x}),x>=0)){this.policy.B&&(this.policy.QN||(this.U.L=!0),this.Gm(!0,"mosaic"));Bn(this.audioTrack,x,NaN,NaN);!this.policy.kX&&this.jZ.isLive&&pn(this.jZ,x,!1);return}this.xf.Sy()}};
g.R.setPlaybackRate=function(Q){Q!==this.T.getPlaybackRate()&&this.T.setPlaybackRate(Q)};
g.R.uQ=function(Q){var W=this.D.X;this.D.Jk(Q);this.qj("scfidc",{curr:az(W),"new":az(Q)});Q&&az(Q)!==az(W)&&(this.Gm(!1,"caption change"),this.KZ())};
g.R.qa=function(Q){this.D.Dh(Q)};
g.R.CQ=function(Q){var W=Q.B.info.Mx();this.logger.debug(function(){return"New "+(W?"audio":"video")+" format from SABR: "+je(Q.B.info)});
W?this.xf.wh(Q):vNs(this.xf,Q)};
g.R.c$=function(Q){BM(Q.Af[Q.Af.length-1])&&nNQ(this,Itz(this.B,Q.Af[0].B))};
g.R.pY=function(){return this.xf.pY()};
g.R.BY=function(){return this.xf.BY()};
g.R.G3=function(Q){this.xf.C().jk()&&this.qj("sps",{status:Q.V_||""});if(Q.V_===1)this.xf.videoData.Mp=0;else if(Q.V_===2||Q.V_===3){var W=!1;if(Q.V_===3){W=this.xf.HO();var x;this.Sk=(x=Q.m_f)!=null?x:Infinity;this.xf.videoData.Mp=W+1;(W=bO1(this))&&this.Bw(!0)}this.xf.UZ(!0,W)}};
g.R.bl=function(){return this.xf.bl()};
g.R.Jv=function(){return this.xf.Jv()};
g.R.K8=function(Q){this.xf.K8(Q)};
g.R.WUt=function(){var Q,W=(Q=this.xf.DG())==null?void 0:Q.getCurrentTime();W?this.xf.qj("rms",{cta:W}):g.E3(this.WN)};
g.R.KZ=function(){Y_4(this);if(this.r7&&LS(this.r7)&&!this.r7.X1()&&(!this.policy.fS||isFinite(this.getCurrentTime()))){var Q=ht(this.videoTrack);Q=this.policy.S7&&Q&&Q.lf();this.jZ.isManifestless&&this.jZ.N&&PB(this.jZ)?(this.X=PB(this.jZ),this.r7.PF(this.X)):aI(this.jZ)&&!Q?isNaN(this.X)?(this.X=this.getCurrentTime()+3600,this.r7.PF(this.X)):this.X<=this.getCurrentTime()+1800&&(this.X=Math.max(this.X+1800,this.getCurrentTime()+3600),this.r7.PF(this.X)):this.r7.isView||(Q=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.X)||this.X!==Q)&&Q>0&&(this.r7.PF(Q),this.X=Q))}if(!this.d7())if(VY(this.jZ)&&this.jZ.je()){var W=this.jZ;this.handleError("manifest.net.retryexhausted",W.I5?{rc:W.cI}:{rc:W.cI.toString()},1)}else if(this.policy.B)a:{try{elF(this.D);this.jZ.isManifestless&&this.policy.X&&Z8(this.M_);if(kr5(this)&&this.r7&&!Ow(this.r7)&&this.videoTrack.g7&&this.audioTrack.g7){this.qj("ssap",{delaysb:1,v:this.videoTrack.B.info.id,vf:this.videoTrack.B.info.CS,a:this.audioTrack.B.info.id,
af:this.audioTrack.B.info.CS});var x=this.r7,D=this.videoTrack.B,K=this.audioTrack.B;!Ow(x)&&K&&D&&(AIO(x,D.info,K.info,this.policy.Ke),oNz(this,x))}var l;((l=this.r7)==null?0:Ow(l))&&this.Hw();this.policy.B||WG(this);H11(this.D)}catch(w){g.Bp(w);W=w;if(W.message.includes("changeType")){this.qj("ssap",{exp:W.name,msg:W.message,s:W.stack});break a}this.handleError("fmt.unplayable",{exp:W.name,msg:W.message,s:W.stack},1)}cf1(this);g.E3(this.s3)}else if(!this.jZ.U||!cas(this.videoTrack)&&!cas(this.audioTrack)||
(this.videoTrack.L||this.audioTrack.L)&&this.policy.Y6?x=!1:(this.kS(),this.xf.seekTo(Infinity,{N7:"checkLoaderTracksSync",MW:!0}),x=!0),!x){Y_4(this);this.jZ.isManifestless&&(gKs(this.videoTrack),gKs(this.audioTrack),Z8(this.M_),(x=TA(this.videoTrack))&&x.U&&(x=x.U.D&&!this.policy.U8,this.qj(x===this.policy.S.bF?"strm":"strmbug",{strm:x,sfmp4:this.policy.S.bF,dfs:this.policy.U8},!0)));if(this.r7)this.Hw();else if(this.policy.N){var M;x=!1;if(this.policy.sR)for(D=g.V([this.videoTrack,this.audioTrack]),
K=D.next();!K.done;K=D.next()){l=K.value;for(K=TA(l);K&&l.h8()!==ht(l);K=TA(l))l.OJ(K);x=x||!!K}else(W=TA(this.videoTrack))&&this.videoTrack.OJ(W),(M=TA(this.audioTrack))&&this.audioTrack.OJ(M);At(this.videoTrack)&&At(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(W||M||x)&&Tt(this)}WG(this);QJ(this.L,this.videoTrack,this.videoTrack.B,!1);QJ(this.L,this.audioTrack,this.audioTrack.B,!1);this.policy.Su||PG2(this,this.videoTrack,this.audioTrack);Krh(this.L,this.videoTrack,
this.audioTrack);Krh(this.L,this.audioTrack,this.videoTrack);cf1(this);this.G&&(W=this.G,W.N?(M=W.X+W.policy.yS,W.D||(M=Math.min(M,W.startTimeSecs+W.policy.BM)),W=Math.max(0,M*1E3-Date.now())):W=NaN,isNaN(W)||g.E3(this.yA,W));g.E3(this.s3)}};
g.R.F6=function(Q){this.xf.F6(Q)};
g.R.Hw=function(){var Q=this;if(this.r7){var W=this.r7.B,x=this.r7.U;ZQs(this,this.audioTrack);ZQs(this,this.videoTrack);var D=Jfh(this);if(D){if(this.policy.pN){if(!W.Xm()){var K=TA(this.audioTrack);if(K){if(!tY(this,this.audioTrack,W,K.info))return;aMn(this,this.audioTrack,W,K)}}if(!x.Xm()&&(K=TA(this.videoTrack))){if(!tY(this,this.videoTrack,x,K.info))return;aMn(this,this.videoTrack,x,K)}}this.wz||(this.wz=(0,g.a8)(),this.logger.debug(function(){return"Appends pause start "+Q.wz+" reason "+D}),
this.policy.D&&this.qj("apdps",{r:D}))}else if(this.wz&&(CGh(this,this.wz),this.wz=0),pX4(this),K=!1,this.policy.U&&ek(this.videoTrack)||!HQl(this,this.videoTrack,x)||(K=!0,zxa(this.timing),uUz(this.timing)),this.r7&&!this.r7.C2()&&(this.policy.U&&ek(this.audioTrack)||!HQl(this,this.audioTrack,W)||(K=!0,kIs(this.timing),YqF(this.timing)),!this.d7()&&this.r7)){if(!this.policy.fn&&At(this.videoTrack)&&At(this.audioTrack)&&LS(this.r7)&&!this.r7.X1()){x=!1;
x=ht(this.audioTrack);if(this.policy.U){var l;W=(l=this.nS)==null?void 0:IY(l,x.kD*1E3);x=!(!W||W.clipId!==x.clipId);this.qj("ssap",{eos:x})}else l=x.B,x=l===this.jZ.B[l.info.id];x&&(this.logger.debug("Setting EOS"),Hba(this.r7),Eas(this.schedule))}K&&!this.r7.isAsync()&&Tt(this)}}};
g.R.t1=function(Q){var W,x=Q===((W=this.r7)==null?void 0:W.B)?this.audioTrack:this.videoTrack,D;(D=x.fS)==null||D.stop();var K;if((K=TA(x))==null?0:K.isLocked){if(this.xf.C().jk()){var l;this.qj("eosl",{ounlock:(l=TA(x))==null?void 0:l.info.Zb()})}var M;mJh(this,Q===((M=this.r7)==null?void 0:M.B))}var w;if(this.policy.J2&&Q===((w=this.r7)==null?void 0:w.B)&&this.Pt){W=this.Pt-this.getCurrentTime();var S;this.xf.qj("asl",{l:W,xtag:(S=ht(this.audioTrack))==null?void 0:S.B.info.B});this.I5=!1;this.Pt=
0}Q.ol()&&Q.dP().length===0&&(Q.df(),this.r7&&!this.r7.ol()&&(this.xf.C().jk()&&this.xf.qj("rms",{ld:"seek"}),this.r7.X=performance.now(),this.xf.wv(),this.xf.C().jk()&&g.E3(this.WN)));var b;(b=x.T)!=null&&lm(b,0);this.policy.tf&&this.policy.Tm&&this.r7&&(x=Q.JY())&&x.lf()&&!Se(Q.dP(),Math.min(x.kD+DP,x.Nx))&&this.qj("sbunb",{st:x.kD,et:x.Nx});this.policy.yA?ST4(this):this.KZ()};
g.R.Vk3=function(Q){if(this.r7){var W=ht(Q===this.r7.B?this.audioTrack:this.videoTrack);if(Q=Q.dN())for(var x=0;x<Q.length;x++)this.qj("appendedbuffer",{i:x,b:g.Vn(Q[x].subarray(0,4096),3)});Q=void 0;W&&(Q=mZ(W),this.policy.U&&this.nS&&this.nS.fu()&&(Q.ccid=this.nS.fu()));this.handleError("fmt.unplayable",Q,1)}};
g.R.vc=function(Q){this.xf.vc(Q)};
g.R.aM=function(Q,W,x){if(this.jZ.isManifestless&&(Q=!!Q.info.video,hd5(this,W,x,Q,!0),this.policy.Cn)){Q=Q?this.videoTrack:this.audioTrack;Q.uj.push({BK:W.E3,JA3:x});Q.uj.length>5&&Q.uj.shift();W=W.E3;var D;this.policy.Cn&&((D=this.xf.getVideoData())==null?0:D.enableServerStitchedDai)&&(D=Trl(this.audioTrack,W),x=Trl(this.videoTrack,W),D!==0&&x!==0&&D!==x&&this.handleError("ssdai.avsync",{sq:W,a:D,v:x},0))}};
g.R.Zo=function(Q,W,x,D){Q.info.video&&this.N.Zo(W,x,D)};
g.R.Pf=function(Q){this.B.Pf(Q)};
g.R.rI=xQ(19);g.R.J6=function(Q){this.nS=Q;var W;(W=this.audioTrack.S)!=null&&(W.Ex=Q);(W=this.videoTrack.S)!=null&&(W.Ex=Q);W=this.D;W.S&&(W.Bt.qj("ssap",{addcacheclips:1,v:W.S.version,tl:F5v(W.S.Qu)}),T0n(W,Q,W.S),W.S=void 0)};
g.R.zP=function(){return this.nS};
g.R.TR=function(){return this.videoTrack.G||this.audioTrack.G};
g.R.seek=function(Q,W){if(this.d7())return YX();if(this.TR())return YX("seeking to head");if(this.policy.pS&&!isFinite(Q))return fQD(this.M_),g.ui(Infinity);Y_4(this);this.d3=(0,g.a8)();this.policy.B||WG(this,Q);this.r7&&this.r7.B&&this.r7.U&&!this.xf.getVideoData().Zt&&(this.r7.B.isLocked()||this.r7.U.isLocked())&&this.xf.Sy({reattachOnLockedBuffer:1,vsb:""+this.r7.U.isLocked(),asb:""+this.r7.B.isLocked()});var x=this.getCurrentTime(),D=this.M_.seek(Q,W);this.policy.fS||(this.currentTime=D);eq(this.N,
Q,x,this.policy.Og&&!W.Zx);Tt(this);return g.ui(D)};
g.R.gU=function(Q){return this.policy.B&&this.D.gU(Q)};
g.R.Z1=function(Q){return this.D.Z1(Q)};
g.R.Gm=function(Q,W){this.D.Gm(Q,W)};
g.R.getCurrentTime=function(){if(this.policy.fS){var Q=this.aW()||0;return this.xf.getCurrentTime()-Q}return this.currentTime};
g.R.T_=function(){return this.audioTrack.B.info};
g.R.eM=function(){return this.videoTrack.B.info};
g.R.Fw=function(){return this.audioTrack.B.info.CS};
g.R.D1=function(){return this.videoTrack.B.info.CS};
g.R.U3=function(){try{this.MI(),gz(this.audioTrack),gz(this.videoTrack),gI(this.audioTrack),gI(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.N.prototype.U3.call(this)}catch(Q){g.ql(Q)}};
g.R.handleError=function(Q,W,x){x=x===void 0?0:x;var D=dw(x);Q==="fmt.unplayable"&&this.jZ.isLive&&(this.policy.pN=!1,Ja(this.jZ));W=new Gu(Q,W,x);g.Ol(this);a0(W.details);this.xf.handleError(W);Q!=="html5.invalidstate"&&W.errorCode!=="fmt.unplayable"&&Q!=="fmt.unparseable"&&D&&this.dispose()};
g.R.AO=function(){var Q=ht(this.audioTrack),W=ht(this.videoTrack);Q={lct:this.getCurrentTime().toFixed(3),lsk:this.M_.isSeeking(),lmf:this.B.B.isLocked(),lbw:vL(this.schedule).toFixed(3),lhd:Vv(this.schedule).toFixed(3),lst:((this.schedule.G.iS()||0)*1E9).toFixed(3),laa:Q?Q.Zb():"",lva:W?W.Zb():"",lar:this.audioTrack.U?this.audioTrack.U.Zb():"",lvr:this.videoTrack.U?this.videoTrack.U.Zb():"",laq:""+Hn(this.audioTrack),lvq:""+Hn(this.videoTrack)};this.r7&&!this.r7.C2()&&this.r7.B&&this.r7.U&&(Q.lab=
RU(this.r7.B.dP()),Q.lvb=RU(this.r7.U.dP()));this.wz&&(Q.lapt=((0,g.a8)()-this.wz).toFixed(0),Q.lapr=Jfh(this));this.fS&&(Q.lapmabht=((0,g.a8)()-this.fS).toFixed(0),Q.lapmabh=eV(this,this.audioTrack).toFixed(0));this.X3&&(Q.lapmvbht=((0,g.a8)()-this.X3).toFixed(0),Q.lapmvbh=eV(this,this.videoTrack).toFixed(0));this.LS&&(Q.lapsdai=((0,g.a8)()-this.LS).toFixed(0));return Q};
g.R.kS=function(){try{this.policy.B&&this.D.Gm(!1,"pending"),this.audioTrack.kS(),this.videoTrack.kS()}catch(Q){g.ql(Q)}this.policy.N=""};
g.R.P0=function(){return Ac(this.T)};
g.R.qj=function(Q,W,x){this.xf.qj(Q,W,x===void 0?!1:x)};
g.R.XX=function(){return this.xf.XX()};
g.R.MW=function(Q,W){Q/=W;isNaN(this.timestampOffset)&&LWQ(this,Q-Math.min(Q,this.policy.Yw));return(Q-this.timestampOffset)*W};
g.R.aW=function(){return this.timestampOffset};
g.R.isSeeking=function(){return this.M_.isSeeking()};
g.R.rk=function(){this.N.rk()};
g.R.yT=function(Q,W,x){W=W===void 0?!1:W;x=x===void 0?{}:x;this.policy.B?this.U.yT(Q,W,x):this.B.yT(Q,W,x)};
g.R.PA=function(Q,W){if(!this.S)return!1;var x=this.videoTrack.B.index.GC(Q);return this.S.PA(Q,W,x)};
g.R.n7=function(Q,W){if(this.S&&this.N.n7(Q,this.S))return LWQ(this,this.timestampOffset-W),Tt(this),this.policy.L&&(Ja(this.jZ),gI(this.audioTrack),gI(this.videoTrack),this.kS()),!0;W=this.videoTrack.B.index.GC(Q);this.handleError("ad.skipfailed",{dec:!!this.S,t:Q.toFixed(3),sq:W});return!1};
g.R.getManifest=function(){return this.jZ};
g.R.isOffline=function(){return!!this.xf.getVideoData().cotn};
g.R.jF=function(Q,W){this.xf.jF(Q,W)};
g.R.MY=function(Q){if(this.policy.Dx)this.policy.B&&this.D.Gm(!0,"utc"),this.KZ();else{var W=this.xf.getVideoData().DE;if(W){var x=this.L;x.d1=Q;x.DE=W;Dl(this)}}};
g.R.K0=function(Q){this.videoTrack.G=!1;this.audioTrack.G=!1;this.M_.U=!1;this.xf.K0(Q)};
g.R.sA=function(Q){this.M_.sA(Q-this.aW())};
g.R.dL=function(){this.xf.dL()};
g.R.Bw=function(Q){Q!==this.policy.My&&((this.policy.My=Q)||this.KZ())};
g.R.GM=function(Q,W){var x=this.audioTrack.Ln,D=this.videoTrack.Ln;x&&D&&(x.remove(Q,W),D.remove(Q,W))};
g.R.Sy=function(Q){this.xf.Sy(Q)};
g.R.Ug=function(Q){this.xf.Ug(Q)};
g.R.HO=function(){return this.xf.HO()};
g.R.q9=function(){Ja(this.jZ);this.kS()};g.R=g.K9.prototype;g.R.Pd=function(Q,W,x,D,K,l){return this.Ex.Pd(Q,W,x,D,K,l)};
g.R.fB=function(Q,W,x,D,K,l){return this.Ex.fB(Q,W,x,D,K,l)};
g.R.jw=function(Q){return this.Ex.jw(Q)};
g.R.cY=function(Q){this.Ex.cY(Q)};
g.R.R2=function(Q,W,x,D){return this.Ex.R2(Q,W,x,D)};
g.R.rk=function(){this.Ex.rk()};
g.R.PA=function(Q,W,x){return this.Ex.PA(Q,W,x)};
g.R.i_=function(Q,W){this.Ex.i_(Q,W)};
g.R.Bp=function(){this.Ex.Bp()};
g.R.NL=xQ(55);g.R.Kt=function(Q,W,x){this.Ex.Kt(Q,W,x)};
g.R.bD=xQ(58);g.R.RC=function(Q,W,x,D,K,l,M,w,S){this.Ex.RC(Q,W,x,D,K,l,M,w,S)};
g.R.IP=function(Q){this.Ex.IP(Q)};
g.R.L0=function(Q){return this.Ex.L0(Q)};
g.R.K$=function(Q){return this.Ex.K$(Q)};g.n(lV,g.Rd);g.n(j5,lV);j5.prototype.X=function(Q,W){if(Q&&W){var x=Number(fr(Q,"cpi"))*1+1;isNaN(x)||x<=0||x<this.D?(this.N.stop(),this.U.stop(),this.D=-1,this.B={}):(x>this.D&&(this.D=x,g.dS(this.B)||(this.B={},this.N.stop(),this.U.stop())),this.B[W]=Q,g.E3(this.U))}};
j5.prototype.L=function(){for(var Q=g.V(Object.keys(this.B)),W=Q.next();!W.done;W=Q.next()){var x=W.value;W=this.publish;for(var D=this.D,K=this.B[x].match(qU),l=[],M=g.V(K[6].split("&")),w=M.next();!w.done;w=M.next())w=w.value,w.indexOf("cpi=")===0?l.push("cpi="+D.toString()):w.indexOf("ek=")===0?l.push("ek="+g.OE(x)):l.push(w);K[6]="?"+l.join("&");x="skd://"+K.slice(2).join("");K=x.length*2;D=new Uint8Array(K+4);D[0]=K%256;D[1]=(K-D[0])/256;for(K=0;K<x.length;++K)D[K*2+4]=x.charCodeAt(K);W.call(this,
"rotated_need_key_info_ready",new za(D,"fairplay",!0))}this.B={}};
j5.prototype.U3=function(){this.B={};lV.prototype.U3.call(this)};g.n(MH,lV);
MH.prototype.L=function(Q){var W;a:{if((W=Q.cryptoPeriodIndex)&&this.B.length>0)for(var x=g.V(this.B),D=x.next();!D.done;D=x.next())if(W===D.value.info.cryptoPeriodIndex){W=!0;break a}W=!1}if(!W){W=(0,g.a8)();a:{x=Q.cryptoPeriodIndex;if(!isNaN(x)){D=g.V(this.D.values());for(var K=D.next();!K.done;K=D.next())if(Math.abs(K.value.cryptoPeriodIndex-x)<=1){x=!0;break a}}x=!1}x?(x=Q.B,x=Math.max(0,Math.random()*((isNaN(x)?120:x)-30))*1E3):x=0;this.publish("log_qoe",{wvagt:"delay."+x,cpi:Q.cryptoPeriodIndex,reqlen:this.B.length,
ignore:this.N});x<=0?FW5(this,Q):this.N||(this.B.push({time:W+x,info:Q}),g.E3(this.U,x))}};
MH.prototype.U3=function(){this.B=[];lV.prototype.U3.call(this)};var XE={},Dfa=(XE.DRM_TRACK_TYPE_AUDIO="AUDIO",XE.DRM_TRACK_TYPE_SD="SD",XE.DRM_TRACK_TYPE_HD="HD",XE.DRM_TRACK_TYPE_UHD1="UHD1",XE);g.n(Wh5,g.N);g.n(laa,g.Rd);g.R=laa.prototype;g.R.Gz=function(Q){var W=this;this.d7()||Q.size<=0||(Q.forEach(function(x,D){var K=$K(W.U)?D:x;D=new Uint8Array($K(W.U)?x:D);$K(W.U)&&agQ(D);x=g.Vn(D,4);agQ(D);D=g.Vn(D,4);W.B[x]?W.B[x].status=K:W.B[D]?W.B[D].status=K:W.B[x]={type:"",status:K}}),uhD(this,","),R5(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))};
g.R.error=function(Q,W,x,D){this.d7()||(this.publish("licenseerror",Q,W,x,D),Q==="drm.provision"&&(Q=(Date.now()-this.X)/1E3,this.X=NaN,this.publish("ctmp","provf",{et:Q.toFixed(3)})));dw(W)&&this.dispose()};
g.R.shouldRetry=function(Q,W){return!Q&&this.requestNumber===W.requestNumber};
g.R.U3=function(){this.B={};g.Rd.prototype.U3.call(this)};
g.R.AO=function(){var Q={ctype:this.S.contentType||"",length:this.S.initData.length,requestedKeyIds:this.F3,cryptoPeriodIndex:this.cryptoPeriodIndex};this.D&&(Q.keyStatuses=this.B);return Q};
g.R.getInfo=function(){var Q=this.N.join();if(wi(this)){var W=new Set,x;for(x in this.B)this.B[x].status!=="usable"&&W.add(this.B[x].type);Q+="/UKS."+Array.from(W)}return Q+="/"+this.cryptoPeriodIndex};
g.R.cV=function(){return this.url};g.n(S5,g.N);g.R=S5.prototype;g.R.S4=function(Q){if(this.L){var W=Q.messageType||"license-request";this.L(new Uint8Array(Q.message),W)}};
g.R.Gz=function(){this.G&&this.G(this.B.keyStatuses)};
g.R.onClosed=function(){this.d7()||g.yk("xboxone")&&this.D&&this.D("closed")};
g.R.Oi=function(Q){this.L&&this.L(Q.message,"license-request")};
g.R.HB=function(Q){if(this.D){if(this.U){var W=this.U.error.code;Q=this.U.error.systemCode}else W=Q.errorCode,Q=Q.systemCode;this.D("t.prefixedKeyError;c."+W+";sc."+Q,W,Q)}};
g.R.Ik=function(){this.X&&this.X()};
g.R.update=function(Q){var W=this;if(this.B)return(E5.isActive()?E5.Op("emeupd",function(){return W.B.update(Q)}):this.B.update(Q)).then(null,CJ(function(x){dYO(W,"t.update",x)}));
this.U?this.U.update(Q):this.element.addKey?this.element.addKey(this.S.keySystem,Q,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,Q,this.initData,this.sessionId);return Uk()};
g.R.U3=function(){this.B&&(this.T?this.B.close().catch(g.Bp):this.B.close());this.element=null;g.N.prototype.U3.call(this)};g.n(bV,g.N);g.R=bV.prototype;g.R.N$=function(){var Q=this;if(this.B.keySystemAccess)return(E5.isActive()?E5.Op("emenew",function(){return Q.B.keySystemAccess.createMediaKeys()}):this.B.keySystemAccess.createMediaKeys()).then(function(x){if(!Q.d7())if(Q.U=x,E5.isActive())E5.Op("emeset",function(){return Q.element.setMediaKeys(x)});
else{var D;(D=Q.element)==null||D.setMediaKeys(x)}});
if(BB(this.B))this.D=new (qG())(this.B.keySystem);else if(II(this.B)){this.D=new (qG())(this.B.keySystem);var W;(W=this.element)==null||W.webkitSetMediaKeys(this.D)}else E5.isActive()&&this.qj("emev",{v:"01b"}),GT(this.L,this.element,["keymessage","webkitkeymessage"],this.Zw),GT(this.L,this.element,["keyerror","webkitkeyerror"],this.V0),GT(this.L,this.element,["keyadded","webkitkeyadded"],this.aY);return null};
g.R.setServerCertificate=function(){return this.U.setServerCertificate?this.B.flavor==="widevine"&&this.B.BM?this.U.setServerCertificate(this.B.BM):NG(this.B)&&this.B.I5?this.U.setServerCertificate(this.B.I5):null:null};
g.R.createSession=function(Q,W){var x=Q.initData;if(this.B.keySystemAccess){W&&W("createsession");var D=this.U.createSession();mB(this.B)?x=iGF(x,this.B.I5):NG(this.B)&&(x=EN2(x)||new Uint8Array(0));W&&W("genreq");var K=E5.isActive()?E5.Op("emegen",function(){return D.generateRequest(Q.contentType,x)}):D.generateRequest(Q.contentType,x);
var l=new S5(null,null,null,D,null,this.G);K.then(function(){W&&W("genreqsuccess")},CJ(function(w){dYO(l,"t.generateRequest",w)}));
return l}if(BB(this.B))return HGs(this,x);if(II(this.B))return AtO(this,x);if((K=this.element)==null?0:K.generateKeyRequest)this.element.generateKeyRequest(this.B.keySystem,x);else{var M;(M=this.element)==null||M.webkitGenerateKeyRequest(this.B.keySystem,x)}return this.N=new S5(this.element,this.B,x,null,null,this.G)};
g.R.Zw=function(Q){var W=UYD(this,Q);W&&W.Oi(Q)};
g.R.V0=function(Q){var W=UYD(this,Q);W&&W.HB(Q)};
g.R.aY=function(Q){var W=UYD(this,Q);W&&W.Ik(Q)};
g.R.getMetrics=function(){if(this.U&&this.U.getMetrics)try{var Q=this.U.getMetrics()}catch(W){}return Q};
g.R.U3=function(){this.D=this.U=null;var Q;(Q=this.N)==null||Q.dispose();Q=g.V(Object.values(this.X));for(var W=Q.next();!W.done;W=Q.next())W.value.dispose();this.X={};g.N.prototype.U3.call(this);delete this.element};g.R=zz.prototype;g.R.get=function(Q){Q=this.findIndex(Q);return Q!==-1?this.values[Q]:null};
g.R.remove=function(Q){Q=this.findIndex(Q);Q!==-1&&(this.keys.splice(Q,1),this.values.splice(Q,1))};
g.R.removeAll=function(){this.keys=[];this.values=[]};
g.R.set=function(Q,W){var x=this.findIndex(Q);x!==-1?this.values[x]=W:(this.keys.push(Q),this.values.push(W))};
g.R.findIndex=function(Q){return g.Es(this.keys,function(W){return g.sg(Q,W)})};g.n($YF,g.Rd);g.R=$YF.prototype;g.R.v3f=function(Q){this.uF({onecpt:1});Q.initData&&NIF(this,new Uint8Array(Q.initData),Q.initDataType)};
g.R.aX5=function(Q){this.uF({onndky:1});NIF(this,Q.initData,Q.contentType)};
g.R.vc=function(Q){this.uF({onneedkeyinfo:1});this.bj.j("html5_eme_loader_sync")&&(this.G.get(Q.initData)||this.G.set(Q.initData,Q));mYl(this,Q)};
g.R.yP=function(Q){this.D.push(Q);k0(this)};
g.R.createSession=function(Q){var W=g9v(this)?lvl(Q):g.Vn(Q.initData);this.U.get(W);this.KS=!0;Q=new laa(this.videoData,this.bj,Q,this.drmSessionId);this.U.set(W,Q);Q.subscribe("ctmp",this.Hf,this);Q.subscribe("keystatuseschange",this.Gz,this);Q.subscribe("licenseerror",this.Ae,this);Q.subscribe("newlicense",this.wW,this);Q.subscribe("newsession",this.MM,this);Q.subscribe("sessionready",this.ZI,this);Q.subscribe("fairplay_next_need_key_info",this.jd,this);this.bj.j("html5_enable_vp9_fairplay")&&Q.subscribe("qualitychange",
this.WE,this);this.bj.j("html5_enable_sabr_drm_hd720p")&&Q.subscribe("sabrlicenseconstraint",this.iZj,this);wd5(Q,this.N)};
g.R.wW=function(Q){this.d7()||(this.uF({onnelcswhb:1}),Q&&!this.heartbeatParams&&(this.heartbeatParams=Q,this.publish("heartbeatparams",Q)))};
g.R.MM=function(){this.d7()||(this.uF({newlcssn:1}),this.D.shift(),this.KS=!1,k0(this))};
g.R.ZI=function(){if(BB(this.B)&&(this.uF({onsnrdy:1}),this.X3--,this.X3===0)){var Q=this.uj,W,x;(W=Q.element)==null||(x=W.msSetMediaKeys)==null||x.call(W,Q.D)}};
g.R.Gz=function(Q){if(!this.d7()){!this.LS&&this.videoData.j("html5_log_drm_metrics_on_key_statuses")&&(ytD(this),this.LS=!0);this.uF({onksch:1});var W=this.WE;if(!wi(Q)&&g.rV&&Q.U.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var x="large";else{x=[];var D=!0;if(wi(Q))for(var K=g.V(Object.keys(Q.B)),l=K.next();!l.done;l=K.next())l=l.value,Q.B[l].status==="usable"&&x.push(Q.B[l].type),Q.B[l].status!=="unknown"&&(D=!1);if(!wi(Q)||D)x=Q.N;x=oWQ(x)}W.call(this,x);this.publish("keystatuseschange",
Q)}};
g.R.Hf=function(Q,W){this.d7()||this.publish("ctmp",Q,W)};
g.R.jd=function(Q,W){this.d7()||this.publish("fairplay_next_need_key_info",Q,W)};
g.R.Ae=function(Q,W,x,D){this.d7()||(this.videoData.j("html5_log_drm_metrics_on_error")&&ytD(this),this.publish("licenseerror",Q,W,x,D))};
g.R.dk=function(){return this.S};
g.R.WE=function(Q){var W=g.jw("auto",Q,!1,"l");if(this.videoData.A4){if(this.S.yI(W))return}else if(OD2(this.S,Q))return;this.S=W;this.publish("qualitychange");this.uF({updtlq:Q})};
g.R.iZj=function(Q){this.videoData.sabrLicenseConstraint=Q};
g.R.U3=function(){this.B.keySystemAccess&&this.element&&(this.F3?this.element.setMediaKeys(null).catch(g.Bp):this.element.setMediaKeys(null));this.element=null;this.D=[];for(var Q=g.V(this.U.values()),W=Q.next();!W.done;W=Q.next())W=W.value,W.unsubscribe("ctmp",this.Hf,this),W.unsubscribe("keystatuseschange",this.Gz,this),W.unsubscribe("licenseerror",this.Ae,this),W.unsubscribe("newlicense",this.wW,this),W.unsubscribe("newsession",this.MM,this),W.unsubscribe("sessionready",this.ZI,this),W.unsubscribe("fairplay_next_need_key_info",
this.jd,this),this.bj.j("html5_enable_vp9_fairplay")&&W.unsubscribe("qualitychange",this.WE,this),W.dispose();this.U.clear();this.X.removeAll();this.G.removeAll();this.heartbeatParams=null;g.Rd.prototype.U3.call(this)};
g.R.AO=function(){for(var Q={systemInfo:this.B.AO(),sessions:[]},W=g.V(this.U.values()),x=W.next();!x.done;x=W.next())Q.sessions.push(x.value.AO());return Q};
g.R.getInfo=function(){return this.U.size<=0?"no session":""+this.U.values().next().value.getInfo()+(this.L?"/KR":"")};
g.R.uF=function(Q,W){W=W===void 0?!1:W;this.d7()||(a0(Q),(this.bj.jk()||W)&&this.publish("ctmp","drmlog",Q))};g.n(rtn,g.N);g.R=rtn.prototype;g.R.Yb=function(){return!!this.Nu};
g.R.CE=function(){return this.U};
g.R.handleError=function(Q){var W=this;QS2(this,Q);if((Q.errorCode!=="html5.invalidstate"&&Q.errorCode!=="fmt.unplayable"&&Q.errorCode!=="fmt.unparseable"||!tk5(this,Q.errorCode,Q.details))&&!KR1(this,Q)){if(this.Dp.uj!=="yt"&&xg5(this,Q)&&this.videoData.Dx&&(0,g.a8)()/1E3>this.videoData.Dx&&this.Dp.uj==="hm"){var x=Object.assign({e:Q.errorCode},Q.details);x.stalesigexp="1";x.expire=this.videoData.Dx;x.init=this.videoData.WJ/1E3;x.now=(0,g.a8)()/1E3;x.systelapsed=((0,g.a8)()-this.videoData.WJ)/1E3;
Q=new Gu(Q.errorCode,x,2);this.xf.dH(Q.errorCode,2,"SIGNATURE_EXPIRED",a0(Q.details))}if(dw(Q.severity)){var D;x=(D=this.xf.Bt)==null?void 0:D.B.B;if(this.Dp.j("html5_use_network_error_code_enums"))if(WR2(Q)&&x&&x.isLocked())var K="FORMAT_UNAVAILABLE";else if(this.Dp.X||Q.errorCode!=="auth"||Q.details.rc!==429)Q.errorCode==="ump.spsrejectfailure"&&(K="HTML5_SPS_UMP_STATUS_REJECTED");else{K="TOO_MANY_REQUESTS";var l="6"}else WR2(Q)&&x&&x.isLocked()?K="FORMAT_UNAVAILABLE":this.Dp.X||Q.errorCode!=="auth"||
Q.details.rc!=="429"?Q.errorCode==="ump.spsrejectfailure"&&(K="HTML5_SPS_UMP_STATUS_REJECTED"):(K="TOO_MANY_REQUESTS",l="6");this.xf.dH(Q.errorCode,Q.severity,K,a0(Q.details),l)}else this.xf.publish("nonfatalerror",Q),D=/^pp/.test(this.videoData.clientPlaybackNonce),this.zt(Q.errorCode,Q.details),D&&Q.errorCode==="manifest.net.connect"&&(Q="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.a8)(),GA(Q,"manifest",function(M){W.X=!0;W.qj("pathprobe",M)},function(M){W.zt(M.errorCode,
M.details)}))}};
g.R.qj=function(Q,W){this.xf.oW().qj(Q,W)};
g.R.zt=function(Q,W){W=a0(W);this.xf.oW().zt(Q,W)};MH5.prototype.iA=function(Q,W){return(W===void 0?0:W)?{fg:Q?uV(this,Q):eQ,JW:Q?opn(this,Q):eQ,mCj:Q?ktn(this,Q):eQ,DDt:Q?vpF(this,Q.videoData):eQ,Ry:Q?CjQ(this,Q.videoData,Q):eQ,N11:Q?sSl(this,Q):eQ,Qjt:SF5(this)}:{fg:Q?uV(this,Q):eQ}};
MH5.prototype.j=function(Q){return this.bj.j(Q)};g.n(Y0,g.N);Y0.prototype.onError=function(Q){if(Q!=="player.fatalexception"||this.provider.j("html5_exception_to_health"))Q==="sabr.fallback"&&(this.encounteredSabrFallback=!0),Q.match(h8Y)?this.networkErrorCount++:this.nonNetworkErrorCount++};
Y0.prototype.send=function(){if(!(this.D||this.B<0)){hEa(this);var Q=g.n9(this.provider)-this.B,W="PLAYER_PLAYBACK_STATE_UNKNOWN",x=this.playerState.HI;this.playerState.isError()?W=x&&x.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.r(this.playerState,2)?W="PLAYER_PLAYBACK_STATE_ENDED":g.r(this.playerState,64)?W="PLAYER_PLAYBACK_STATE_UNSTARTED":g.r(this.playerState,16)||g.r(this.playerState,32)?W="PLAYER_PLAYBACK_STATE_SEEKING":g.r(this.playerState,1)&&g.r(this.playerState,
4)?W="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.r(this.playerState,1)?W="PLAYER_PLAYBACK_STATE_BUFFERING":g.r(this.playerState,4)?W="PLAYER_PLAYBACK_STATE_PAUSED":g.r(this.playerState,8)&&(W="PLAYER_PLAYBACK_STATE_PLAYING");x=nLe[vX(this.provider.videoData)];a:switch(this.provider.bj.playerCanaryState){case "canary":var D="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":D="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:D="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var K=al2(this.provider),
l=this.U<0?Q:this.U-this.B;Q=this.provider.bj.QN+36E5<(0,g.a8)();W={started:this.U>=0,stateAtSend:W,joinLatencySecs:l,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:D,playerCanaryStage:K,isAd:this.provider.videoData.isAd(),liveMode:x,hasDrm:!!g.V9(this.provider.videoData),isGapless:this.provider.videoData.S,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback,isSabr:MJ(this.provider.videoData)};Q||g.wV("html5PlayerHealthEvent",W);this.D=!0;this.dispose()}};
Y0.prototype.U3=function(){this.D||this.send();window.removeEventListener("error",this.Ju);window.removeEventListener("unhandledrejection",this.Ju);g.N.prototype.U3.call(this)};
var h8Y=/\bnet\b/;g.n(dgl,g.N);dgl.prototype.U3=function(){AY2(this);g.N.prototype.U3.call(this)};var H24=/[?&]cpn=/;g.n(VT,g.N);VT.prototype.flush=function(){var Q={};this.U&&(Q.pe=this.U);this.B.length>0&&(Q.pt=this.B.join("."));this.B=[];return Q};
VT.prototype.stop=function(){var Q=this,W,x,D;return g.U(function(K){if(K.B==1)return g.P5(K,2),g.A(K,(W=Q.N)==null?void 0:W.stop(),4);if(K.B!=2)return(x=K.U)&&Q.logTrace(x),g.Cs(K,0);D=g.Jv(K);Q.U=NYQ(D.message);g.VF(K)})};
VT.prototype.logTrace=function(Q){this.encoder.reset();this.encoder.add(1);this.encoder.add(Q.resources.length);for(var W=g.V(Q.resources),x=W.next();!x.done;x=W.next()){x=x.value.replace("https://www.youtube.com/s/","");this.encoder.add(x.length);for(var D=0;D<x.length;D++)this.encoder.add(x.charCodeAt(D))}this.encoder.add(Q.frames.length);W=g.V(Q.frames);for(x=W.next();!x.done;x=W.next()){x=x.value;this.encoder.add(x.name.length);for(D=0;D<x.name.length;D++)this.encoder.add(x.name.charCodeAt(D));
sT(this.encoder,x.resourceId);sT(this.encoder,x.line);sT(this.encoder,x.column)}this.encoder.add(Q.samples.length);W=g.V(Q.samples);for(x=W.next();!x.done;x=W.next())x=x.value,this.encoder.add(Math.trunc(x.timestamp)),sT(this.encoder,x.stackId);this.encoder.add(Q.stacks.length);Q=g.V(Q.stacks);for(W=Q.next();!W.done;W=Q.next())W=W.value,this.encoder.add(W.frameId),sT(this.encoder,W.parentId);Q=this.encoder.Rj();this.D+=Q.length;this.D<1E7&&this.B.push(Q)};
VT.prototype.U3=function(){this.stop();g.N.prototype.U3.call(this)};var gpl=[2,5,30];g.a5=s7(function(){var Q="";try{var W=g.Qz("CANVAS").getContext("webgl");W&&(W.getExtension("WEBGL_debug_renderer_info"),Q=W.getParameter(37446),Q=Q.replace(/[ :]/g,"_"))}catch(x){}return Q});g.n(g.Jn,g.N);g.R=g.Jn.prototype;g.R.Q57=function(){var Q=g.n9(this.provider);Z2l(this,Q)};
g.R.Qf=function(){return this.mx};
g.R.jr=function(){return{Ww:this.Ww,Cj:this.Cj}};
g.R.k5=function(Q,W){this.Ww=Q;this.Cj=W};
g.R.nF=function(Q){if(!this.Y6){this.Y6=!0;var W="";switch(Q){case 1:W="proximaui";break;case 2:W=r35(this.provider.videoData)?"proximawpcc":this.provider.videoData.j("html5_enable_proxima")||this.provider.videoData.j("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:W="proximaauto"}W!==""&&hn(this,W)}};
g.R.gQ=function(Q){this.B.lwc=[[Q.bG?Q.bG.toFixed():"",Q.xS?Q.xS.toFixed():"",Q.X3?(Q.X3*1E3).toFixed():"",Q.WN?(Q.WN*1E3).toFixed():"",Q.yA?(Q.yA*1E3).toFixed():""].join(":")]};
g.R.reportStats=function(Q){Q=Q===void 0?NaN:Q;if(!this.d7()&&(Q=Q>=0?Q:g.n9(this.provider),["PL","B","S"].indexOf(this.WV)>-1&&(!g.dS(this.B)||Q>=this.L+30)&&(g.C9(this,Q,"vps",[this.WV]),this.L=Q),!g.dS(this.B))){this.sequenceNumber===7E3&&g.Bp(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){p9(this,Q);var W=this.provider.xf.C$();W=g.V(W);for(var x=W.next();!x.done;x=W.next())x=x.value,this.qj(x.key,x.value);W=Q;x=this.provider.xf.eB();var D=x.droppedVideoFrames||0,K=x.totalVideoFrames||
0,l=D-this.Ww,M=K&&!this.Cj;D>x.totalVideoFrames||l>5E3?tHD(this,"html5.badframedropcount","df."+D+";tf."+x.totalVideoFrames):(l>0||M)&&g.C9(this,W,"df",[l]);this.Ww=D;this.Cj=K;this.T>0&&(g.C9(this,Q,"glf",[this.T]),this.T=0);QI.isActive()&&(Q=QI.YK(),Object.keys(Q).length>0&&this.qj("profile",Q));this.Kn&&hn(this,"lwnmow");this.provider.bj.jk()&&this.provider.j("html5_record_now")&&this.qj("now",{wt:(0,g.a8)()});Q={};this.provider.videoData.U&&(Q.fmt=this.provider.videoData.U.itag,(W=this.provider.videoData.N)&&
W.itag!==Q.fmt&&(Q.afmt=W.itag));Q.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(Q.adcpn=this.adCpn);this.uj&&(Q.addocid=this.uj);this.contentCpn&&(Q.ccpn=this.contentCpn);this.F3&&(Q.cdocid=this.F3);this.provider.videoData.cotn&&(Q.cotn=this.provider.videoData.cotn);Q.el=$N(this.provider.videoData);Q.content_v=mW(this.provider.videoData);Q.ns=this.provider.bj.uj;Q.fexp=Um2(this.provider.bj.experiments).toString();Q.cl=(732759002).toString();(W=this.provider.videoData.adFormat||this.adFormat)&&
(Q.adformat=W);(W=vX(this.provider.videoData))&&(Q.live=W);this.provider.videoData.n3()&&(Q.drm=1,this.provider.videoData.L&&(Q.drm_system=z8F[this.provider.videoData.L.flavor]||0),this.provider.videoData.P9&&(Q.drm_product=this.provider.videoData.P9));wm()&&this.provider.videoData.X&&(Q.ctt=this.provider.videoData.X,Q.cttype=this.provider.videoData.al,this.provider.videoData.mdxEnvironment&&(Q.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(Q.dai=
this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.ED&&(Q.dai_fallback="1")):this.provider.videoData.Ox?Q.dai="cs":this.provider.videoData.zQ&&(Q.dai="disabled");Q.seq=this.sequenceNumber++;if(this.provider.videoData.ZF){if(W=this.provider.videoData.ZF,Q&&W)for(W.ns==="3pp"&&(Q.ns="3pp"),this.hn.has(W.ns)&&hn(this,"hbps"),W.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=W.shbpslc),x=g.V(Object.keys(W)),D=x.next();!D.done;D=x.next())D=D.value,this.RQ.has(D)||
(Q[D]=W[D])}else Q.event="streamingstats",Q.docid=this.provider.videoData.videoId,Q.ei=this.provider.videoData.eventId;this.isEmbargoed&&(Q.embargoed="1");Object.assign(Q,this.provider.bj.B);if(W=Q.seq)W={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+W,serializedWatchEndpointLoggingContext:this.provider.videoData.MJ},this.serializedHouseBrandPlayerServiceLoggingContext&&(W.serializedHouseBrandPlayerServiceLoggingContext=v1(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),
this.provider.videoData.playerResponseCpn&&(W.playerResponseCpn=this.provider.videoData.playerResponseCpn),vG.length&&(W.decoderInfo=vG),this.provider.xf.zP()&&(W.transitionStitchType=4,this.KS&&(W.timestampOffsetMsecs=this.KS)),this.remoteControlMode&&(W.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(W.remoteConnectedDevices=this.remoteConnectedDevices),W=g.l1(W,Pd5),W=g.Vn(W,4),this.B.qclc=[W];Q=g.ya("//"+this.provider.bj.u$+"/api/stats/qoe",Q);x=W="";D=g.V(Object.keys(this.B));
for(K=D.next();!K.done;K=D.next())K=K.value,this.B[K]===null?g.Bp(new g.Lw("Stats report key has invalid value",K)):(K="&"+K+"="+this.B[K].join(","),K.length>100?x+=K:W+=K);TYv(this,Q+W,x.replace(/ /g,"%20"))}this.B={}}};
g.R.Ug=function(Q){this.Kn=Q};
g.R.kZ=function(){if(this.provider.videoData.L){var Q=this.provider.videoData.L;hn(this,"eme-"+(Q.keySystemAccess?"final":BB(Q)?"ms":mB(Q)?"ytfp":II(Q)?"safarifp":"nonfinal"))}};
g.R.jO=function(Q){var W=g.n9(this.provider);if(!this.provider.bj.experiments.ij("html5_refactor_sabr_video_format_selection_logging")||Q.B.id!==this.eZ){var x=[Q.B.id,Q.U,this.eZ,Q.reason];Q.token&&x.push(Q.token);g.C9(this,W,"vfs",x);this.eZ=Q.B.id;x=this.provider.xf.getPlayerSize();if(x.width>0&&x.height>0){x=[Math.round(x.width),Math.round(x.height)];var D=g.OT();D>1&&x.push(D);g.C9(this,W,"view",x)}this.Pt||(this.provider.bj.jk()&&hn(this,"rqs2"),this.provider.videoData.B&&kJ(this.provider.videoData.B)&&
(this.B.preload=["1"]));this.D=this.Pt=!0}Q.reason==="m"&&++this.b6===100&&Q54(this,2);g.C9(this,W,"vps",[this.WV]);this.reportStats(W)};
g.R.kT=function(Q){var W=g.n9(this.provider);if(this.provider.bj.experiments.ij("html5_refactor_sabr_audio_format_selection_logging")){W=Q.B;var x=[W.audio&&W.video?W.jb?W.jb:"":W.id];W.RW&&W.RW.id&&x.push(W.RW.id);W=x.join(";");W!==this.G&&(x=[W,this.G,Q.reason],Q.token&&x.push(Q.token),g.C9(this,g.n9(this.provider),"afs",x),this.G=W)}else Q.B.id!==this.G&&(x=[Q.B.id,this.G,Q.reason],Q.token&&x.push(Q.token),g.C9(this,W,"afs",x),this.G=Q.B.id)};
g.R.W8=xQ(52);g.R.OG=function(Q){this.isEmbargoed=Q};
g.R.MC=xQ(32);g.R.jL=xQ(37);g.R.onPlaybackRateChange=function(Q){var W=g.n9(this.provider);Q&&Q!==this.yA&&(g.C9(this,W,"rate",[Q]),this.yA=Q);this.reportStats(W)};
g.R.jH=xQ(27);g.R.getPlayerState=function(Q){if(g.r(Q,128))return"ER";if(g.r(Q,2048))return"B";if(g.r(Q,512))return"SU";if(g.r(Q,16)||g.r(Q,32))return"S";if(Q.isOrWillBePlaying()&&g.r(Q,64))return"B";var W=aJs[zp(Q)];g.dO(this.provider.bj)&&W==="B"&&this.provider.xf.getVisibilityState()===3&&(W="SU");W==="B"&&g.r(Q,4)&&(W="PB");return W};
g.R.U3=function(){g.N.prototype.U3.call(this);g.nl(this.X);g.nl(this.Gn)};
g.R.Ha=function(Q){this.isOffline=Q;g.C9(this,g.n9(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.R.qj=function(Q,W,x){var D=this.B.ctmp||[],K=this.UT.indexOf(Q)!==-1;K||this.UT.push(Q);if(!x||!K){var l=typeof W!=="string"?a0(W):W;l=WP1(l);if(!x&&!/^t[.]/.test(l)){var M=g.n9(this.provider)*1E3;l="t."+M.toFixed()+";"+l}D.push(Q+":"+l);this.logger.debug(function(){return"ctmp "+Q+" "+l});
this.B.ctmp=D;O2s(this);return M}};
g.R.To=function(Q,W,x){this.N={jzt:Number(this.qj("glrem",{nst:Q.toFixed(),rem:W.toFixed(),ca:+x})),DI:Q,yK5:W,isAd:x}};
g.R.vx=function(Q,W,x){g.C9(this,g.n9(this.provider),"ad_playback",[Q,W,x])};
g.R.Zi=function(Q,W){var x=g.n9(this.provider)*1E3,D=this.B.daism||[];D.push("t."+x.toFixed(0)+";smw."+(Q*1E3).toFixed(0)+";smo."+(W*1E3).toFixed(0));this.B.daism=D};
g.R.resume=function(){var Q=this;this.provider.bj.jk()&&this.qj("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.X)?EpO(this):this.X=g.uY(function(){Q.reportStats()},1E4)};
var oR={},aJs=(oR[5]="N",oR[-1]="N",oR[3]="B",oR[0]="EN",oR[2]="PA",oR[1]="PL",oR[-1E3]="ER",oR[1E3]="N",oR),vG=[];KPl.prototype.yM=function(){return this.B};
KPl.prototype.update=function(){if(this.G){var Q=this.provider.xf.AB(this.provider.videoData.clientPlaybackNonce)||0,W=g.n9(this.provider);Q>=this.provider.xf.getDuration()-.1&&(this.previouslyEnded=!0);if(Q!==this.B||M5z(this,Q,W)){var x;if(!(x=Q<this.B||Q-this.B>W-this.LY+2||M5z(this,Q,W))){x=this.provider.xf.getVolume();var D=x!==this.T,K=this.provider.xf.isMuted()?1:0;K!==this.S?(this.S=K,x=!0):(!D||this.N>=0||(this.T=x,this.N=W),x=W-this.N,this.N>=0&&x>2?(this.N=-1,x=!0):x=!1)}x&&(iV(this),this.D=
Q);this.LY=W;this.B=Q}}};RGn.prototype.send=function(Q){var W=this;if(!this.O3){var x=StO(this),D=g.ya(this.uri,x);this.bj.j("vss_through_gel_double")&&b9Q(D);this.F3&&!this.bj.j("html5_simplify_pings")?o0v(this,D):wG5(this,Q).then(function(K){W.F3&&(K=K||{},K.method="POST",K.postParams={atr:W.attestationResponse});$g1(D,K,{token:W.uj,cE:W.tf,mdxEnvironment:W.mdxEnvironment},W.bj,Q,W.KS,W.isFinal&&W.QN||W.fS||W.D&&W.J2)});
this.O3=!0}};
RGn.prototype.U=function(Q){Q===void 0&&(Q=NaN);return Number(Q.toFixed(3)).toString()};
var uh={},kzv=(uh.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,uh.LIVING_ROOM_APP_MODE_MAIN=1,uh.LIVING_ROOM_APP_MODE_KIDS=2,uh.LIVING_ROOM_APP_MODE_MUSIC=3,uh.LIVING_ROOM_APP_MODE_UNPLUGGED=4,uh.LIVING_ROOM_APP_MODE_GAMING=5,uh),nE={},zG5=(nE.EMBEDDED_PLAYER_MODE_UNKNOWN=0,nE.EMBEDDED_PLAYER_MODE_DEFAULT=1,nE.EMBEDDED_PLAYER_MODE_PFP=2,nE.EMBEDDED_PLAYER_MODE_PFL=3,nE);g.n(HG,g.N);g.R=HG.prototype;g.R.E4=function(){this.B.update();Jna(this)&&(Yt4(this),n02(this),this.F_())};
g.R.U3=function(){g.N.prototype.U3.call(this);BG(this);lP1(this.B)};
g.R.AO=function(){return StO(Ut(this,"playback"))};
g.R.F_=function(){this.provider.videoData.G.eventLabel=$N(this.provider.videoData);this.provider.videoData.G.playerStyle=this.provider.bj.playerStyle;this.provider.videoData.lF&&(this.provider.videoData.G.feature="pyv");this.provider.videoData.G.vid=this.provider.videoData.videoId;var Q=this.provider.videoData.G;var W=this.provider.videoData;W=W.isAd()||!!W.lF;Q.isAd=W};
g.R.jU=function(Q){var W=Ut(this,"engage");W.pS=Q;return s5n(W,i92(this.provider))};dHF.prototype.isEmpty=function(){return this.endTime===this.startTime};I5.prototype.j=function(Q){return this.bj.j(Q)};
I5.prototype.getCurrentTime=function(Q){if(this.j("html5_ssap_current_time_for_logging_refactor")){var W=this.xf.zP();if(W&&(Q=Q||W.fu()))return Ki(W,Q)}else if(g.TQ(this.videoData)){var x=this.xf.zP();if(x)return Q=this.xf.getCurrentTime(),x=(((W=IY(x,Q*1E3))==null?void 0:W.wm)||0)/1E3,Q-x}return this.xf.getCurrentTime()};
I5.prototype.cZ=function(Q){if(this.j("html5_ssap_current_time_for_logging_refactor")){var W=this.xf.zP();if(W&&(Q=Q||W.fu()))return Ki(W,Q)}else if(g.TQ(this.videoData)){var x=this.xf.zP();if(x)return Q=this.xf.cZ(),x=(((W=IY(x,Q*1E3))==null?void 0:W.wm)||0)/1E3,Q-x}return this.xf.cZ()};
var AnF={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.n(g.mP,g.N);g.R=g.mP.prototype;g.R.E4=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Rz){var Q;(Q=this.D.get(this.Rz))==null||Q.E4()}else this.B&&this.B.E4()};
g.R.OG=function(Q){this.qoe&&this.qoe.OG(Q)};
g.R.MC=xQ(31);g.R.jL=xQ(36);g.R.Zi=function(Q,W){this.qoe&&this.qoe.Zi(Q,W)};
g.R.zf=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Rz){var Q;(Q=this.D.get(this.Rz))!=null&&iV(Q.B)}else this.B&&iV(this.B.B)};
g.R.zt=function(Q,W){this.qoe&&tHD(this.qoe,Q,W);if(this.U)this.U.onError(Q)};
g.R.jO=function(Q){this.qoe&&this.qoe.jO(Q)};
g.R.kT=function(Q){this.qoe&&this.qoe.kT(Q)};
g.R.onPlaybackRateChange=function(Q){if(this.qoe)this.qoe.onPlaybackRateChange(Q);this.B&&iV(this.B.B)};
g.R.W8=xQ(51);g.R.qj=function(Q,W,x){this.qoe&&this.qoe.qj(Q,W,x)};
g.R.To=function(Q,W,x){this.qoe&&this.qoe.To(Q,W,x)};
g.R.nF=function(Q){var W;(W=this.qoe)==null||W.nF(Q)};
g.R.gQ=function(Q){var W;(W=this.qoe)==null||W.gQ(Q)};
g.R.Ug=function(Q){this.qoe&&this.qoe.Ug(Q)};
g.R.vx=function(Q,W,x){this.qoe&&this.qoe.vx(Q,W,x)};
g.R.jH=xQ(26);g.R.Qf=function(){if(this.qoe)return this.qoe.Qf()};
g.R.AO=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Rz){var Q,W;return(W=(Q=this.D.get(this.Rz))==null?void 0:Q.AO())!=null?W:{}}return this.B?this.B.AO():{}};
g.R.jr=function(){var Q;return(Q=this.qoe)==null?void 0:Q.jr()};
g.R.k5=function(Q,W){var x;(x=this.qoe)==null||x.k5(Q,W)};
g.R.jU=function(Q){return this.B?this.B.jU(Q):function(){}};
g.R.F_=function(){this.B&&this.B.F_()};
g.R.getVideoData=function(){return this.provider.videoData};
g.R.resume=function(){this.qoe&&this.qoe.resume()};g.n(cG,g.N);
cG.prototype.KO=function(Q,W,x){if(this.B.has(Q)){var D=this.B.get(Q);if(W.videoId&&!H91(D))this.U.qj("ssap",{rlc:Q}),yn4(this,Q);else return}if(!this.B.has(Q)){D=new I5(W,this.bj,this.xf);var K=Math.round(g.n9(this.U.provider)*1E3);D=new g.mP(D,K);H91(D)||this.U.qj("nqv",{vv:W.videoId});K=this.U.getVideoData();this.B.set(Q,D);if(D.qoe){var l=D.qoe,M=K.videoId||"";l.contentCpn=K.clientPlaybackNonce;l.F3=M}UHO(D);x===2&&(this.bj.j("html5_log_ad_playback_docid")?(x=this.U,x.qoe&&(x=x.qoe,D=W.Cn||"",
K=W.breakType||0,W=W.videoId||"",l=this.bj.uj||"yt",g.C9(x,g.n9(x.provider),"ad_playback",[Q,D,K,W,l]))):this.U.vx(Q,W.Cn||"",W.breakType||0))}};
cG.prototype.Pk=function(Q,W,x,D,K,l,M,w){if(Q!==W){var S=this.oW(Q),b=this.oW(W),z,k=Q===((z=S.getVideoData())==null?void 0:z.clientPlaybackNonce),X;z=W===((X=b.getVideoData())==null?void 0:X.clientPlaybackNonce);var u;X=k?((u=S.getVideoData())==null?void 0:u.videoId)||"":"nvd";var Y;u=z?((Y=b.getVideoData())==null?void 0:Y.videoId)||"":"nvd";k&&(S=S.qoe)!=null&&(Gz(S,4,l?4:K?2:0,W,u,x),S.reportStats());z&&(NH(b),(W=b.qoe)!=null&&(Gz(W,4,l?5:K?3:1,Q,X,D),W.reportStats()),$Hs(b,new g.zV(M,b.WV)),
qth(b));w&&yn4(this,Q)}};
cG.prototype.oW=function(Q){Q=Q||this.Rz;return this.B.get(Q)||this.U};g.n(g.gi,g.N);g.R=g.gi.prototype;
g.R.HV=function(Q,W){this.sync();W&&this.B.array.length>=2E3&&this.jA("captions",1E4);W=this.B;if(Q.length>1&&Q.length>W.array.length)W.array=W.array.concat(Q),W.array.sort(W.B);else for(var x=g.V(Q),D=x.next();!D.done;D=x.next())D=D.value,!W.array.length||W.B(D,W.array[W.array.length-1])>0?W.array.push(D):g.zS(W.array,D,W.B);Q=g.V(Q);for(W=Q.next();!W.done;W=Q.next())W=W.value,W.namespace==="ad"&&this.N("ssap",{acrsid:W.getId(),acrsst:W.start,acrset:W.end,acrscpt:W.playerType});this.D=NaN;this.sync()};
g.R.RI=function(Q){Q.length>1E4&&g.Bp(new g.Lw("Over 10k cueRanges removal occurs with a sample: ",Q[0]));if(!this.d7()){for(var W=g.V(Q),x=W.next();!x.done;x=W.next())(x=x.value)&&x.namespace==="ad"&&this.N("ssap",{rcrid:x.getId(),rcst:x.start,rcet:x.end,rcpt:x.playerType});var D=new Set(Q);this.U=this.U.filter(function(K){return!D.has(K)});
O9F(this.B,D);this.sync()}};
g.R.jA=function(Q,W){var x=(isNaN(this.D)?g.r(this.X(),2)?0x8000000000000:this.T()*1E3:this.D)-W;W=this.Jv().filter(function(D){return D.namespace===Q&&D.end<x});
this.RI(W);return W};
g.R.Jv=function(){return this.d7()?[]:this.B.array};
g.R.reset=function(){this.started=!1;this.L.stop();this.B.array=[];this.U=[];this.sync()};
g.R.jQ=function(Q){var W=this.Jv().filter(function(x){return x.namespace===Q});
this.RI(W);return W};
g.R.Cf=xQ(41);
g.R.tq=function(Q,W){var x=[],D=LP5(this.B,0x7ffffffffffff),K=[];this.N("ssap",{mecrs:D.length,cpn:W});D=g.V(D);for(var l=D.next();!l.done;l=D.next())l=l.value,l.active&&(this.N("ssap",{acre:l.id,st:l.start,et:l.end,cpn:W,cpt:l.playerType,pt:Q}),W&&W===l.D?(K.push(l),this.N("ssap",{acrec:l.id,st:l.start,et:l.end,pt:Q})):l.playerType===Q&&(K.push(l),this.N("ssap",{acret:l.id,st:l.start,et:l.end})));x=x.concat(this.ME(K));t5z(this,x);x=[];W=[];D=g.V(this.U);for(l=D.next();!l.done;l=D.next())l=l.value,
l.active&&l.playerType===Q&&l.start===0x7ffffffffffff&&W.push(l);x=x.concat(this.IS(W));t5z(this,x);return K.length};
g.R.ME=function(Q){var W=[];if(!Q.length)return W;for(var x=0;x<Q.length;x++){var D=Q[x];D.active&&this.U.indexOf(D)===-1&&(this.U.push(D),W.push([1,D]))}return W};
g.R.IS=function(Q){var W=[];if(!Q.length)return W;Q.sort(g.M_);Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next())x=x.value,this.U.splice(this.U.indexOf(x),1),W.push([2,x]);return W};
g.R.sync=function(){this.G=!0;if(!this.S){for(var Q=3;this.G&&Q;)this.G=!1,this.S=!0,this.y6(),this.S=!1,Q--;this.X().isPlaying()&&(Q=TiQ(this.B,this.D),!isNaN(Q)&&Q<0x7ffffffffffff&&(Q=(Q-this.D)/this.F3(),this.L.start(Q)))}};
g.R.y6=function(){if(this.started&&!this.d7()){this.L.stop();var Q=this.X();g.r(Q,32)&&this.pS.start();for(var W=g.r(this.X(),2)?0x8000000000000:this.T()*1E3,x=g.r(Q,2),D=[],K=[],l=g.V(this.U),M=l.next();!M.done;M=l.next())M=M.value,M.active&&(x?M.end<0x8000000000000:!M.contains(W))&&K.push(M);D=D.concat(this.IS(K));l=K=null;x?(Q=LP5(this.B,0x7ffffffffffff),K=Q.filter(function(w){return w.end<0x8000000000000}),l=rnl(this.B)):Q=this.D<=W&&s0(Q)?Z9a(this.B,this.D,W):LP5(this.B,W);
D=D.concat(this.ME(Q));K&&(D=D.concat(this.IS(K)));l&&(D=D.concat(this.ME(l)));this.D=W;t5z(this,D)}};
g.R.U3=function(){this.U=[];this.B.array=[];g.N.prototype.U3.call(this)};
g.qv.zb(g.gi,{HV:"crmacr",ME:"crmncr",IS:"crmxcr",y6:"crmis",RI:"crmrcr"});e5.prototype.add=function(Q){this.B=(this.B+1)%this.data.length;this.data[this.B]=Q};
e5.prototype.forEach=function(Q){for(var W=this.B+1;W<this.data.length;W++)Q(this.data[W]||0);for(W=0;W<=this.B;W++)Q(this.data[W]||0)};
e5.prototype.clear=function(){for(var Q=this.data.length,W=0;W<Q;W++)this.data[W]=0;this.U=this.B=this.data.length-1};g.n(ZP,g.Rd);ZP.prototype.cF=function(){return this.S};
ZP.prototype.Qk=function(){return this.policy.T&&this.videoData.B?this.videoData.B.t_:Math.max(this.X()-ri(this)*this.B,this.videoData.Jn())};g.n(Et,g.N);Et.prototype.KZ=function(){var Q=this,W=this.xf.DG(),x=this.xf.getPlayerState();if(W&&!x.isError()){var D=W.getCurrentTime(),K=x.state===8&&D>this.B,l=g.r(x,8)&&g.r(x,16),M=this.xf.fR().isBackground()||x.isSuspended();Fj(this,this.SZ,l&&!M,K,"qoe.slowseek",function(){},"timeout");
var w=isFinite(this.B);w=l&&w&&Nsh(W,this.B);var S=!D||Math.abs(D-this.B)>10,b=this.bj.j("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),z=D===0&&this.U&&[11,10].includes(this.U);Fj(this,this.tf,w&&S&&!M&&(!b||!z),K,"qoe.slowseek",function(){W.seekTo(Q.B)},"set_cmt");
S=w&&Se(W.O4(),this.B);var k=this.xf.Bt;w=!k||k.G6();var X=function(){W.seekTo(Q.B+.001)};
Fj(this,this.eZ,S&&w&&!M,K,"qoe.slowseek",X,"jiggle_cmt");w=function(){return Q.xf.QI()};
Fj(this,this.O3,S&&!M,K,"qoe.slowseek",w,"new_elem");S=s0(x);b=x.isBuffering();var u=W.O4(),Y=wg(u,D),v=Y>=0&&u.end(Y)>D+5,J=S&&b&&v;z=this.xf.getVideoData();Fj(this,this.s3,D<.002&&this.B<.002&&l&&g.dO(this.bj)&&g.I4(z)&&!M,K,"qoe.slowseek",w,"slow_seek_shorts");Fj(this,this.uj,z.c9()&&l&&!M&&!z.F3,K,"qoe.slowseek",w,"slow_seek_gapless_shorts");Fj(this,this.F3,J&&!M,S&&!b,"qoe.longrebuffer",X,"jiggle_cmt");Fj(this,this.KS,J&&!M,S&&!b,"qoe.longrebuffer",w,"new_elem_nnr");if(k){var h=k.getCurrentTime();
l=W.gk();l=aeD(l,h);l=!k.isSeeking()&&D===l;Fj(this,this.Gn,S&&b&&l&&!M,S&&!b&&!l,"qoe.longrebuffer",function(){W.seekTo(h)},"seek_to_loader")}l={};
X=wg(u,Math.max(D-3.5,0));J=X>=0&&D>u.end(X)-1.1;var G=X>=0&&X+1<u.length?u.start(X+1)-u.end(X):9999;l.mindex=Y;l.disIndex=X;l.isdisc=X>=0&&J&&G<11;l.close2edge=J;l.gapsize=G;l.buflen=u.length;this.U&&(l.seekSour=this.U);if(X=this.xf.zP()){J=X.fu();G=J!==IY(X,D*1E3).clipId;var H=g.X0(this.bj.experiments,"html5_ssap_skip_seeking_offset_ms"),I=($2(X,J)+H)/1E3;Fj(this,this.LS,G&&S&&b&&!M,S&&!b,"qoe.longrebuffer",function(){W.seekTo(I)},"ssap_clip_not_match")}Fj(this,this.fS,S&&b&&!M,S&&!b,"qoe.longrebuffer",
function(){},"timeout",l);
l=x.isSuspended();l=this.xf.YI()&&!l;Fj(this,this.G,l,!l,"qoe.start15s",function(){Q.xf.BI("ad")},"ads_preroll_timeout");
X=D-this.N<.5;var c;l=!((c=this.xf.zP())==null||!c.QD());G=(J=z.isAd()||l&&this.bj.experiments.ij("html5_ssap_skip_slow_ad"))&&S&&!b&&X;c=function(){var O=Q.xf,T=g.TQ(O.videoData)&&O.nS,Ks=O.L_.getVideoData();(Ks&&O.videoData.isAd()&&Ks.Ox===O.getVideoData().Ox||!O.videoData.It)&&!T?O.dH("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+O.videoData.videoId):bG(O.videoData,"html5_ssap_skip_slow_ad")&&T&&O.nS.QD()&&(O.zt(new Gu("ssap.transitionfailure",{cpn:IY(O.nS,O.cZ()).clipId,pcpn:O.nS.fu(),
cmt:O.cZ()})),O=O.nS,T=O.playback.cZ(),(T=ean(O,T))&&mXh(O,T.cK()/1E3))};
Fj(this,this.Vj,G,!G,"ad.rebuftimeout",c,"skip_slow_ad");X=J&&b&&Se(W.O4(),D+5)&&X;Fj(this,this.Kn,X&&!M,!X,"ad.rebuftimeout",c,"skip_slow_ad_buf");c=x.isOrWillBePlaying()&&g.r(x,64)&&!M;Fj(this,this.fn,c,K,"qoe.start15s",function(){},"timeout");
c=!!k&&!k.r7&&x.isOrWillBePlaying();Fj(this,this.X3,c,K,"qoe.start15s",w,"newElemMse");c=kU(u,0);X=g.r(x,16)||g.r(x,32);X=!M&&x.isOrWillBePlaying()&&b&&!X&&(g.r(x,64)||D===0)&&c>5;Fj(this,this.Pt,g.I4(z)&&X,S&&!b,"qoe.longrebuffer",function(){Q.xf.Sy()},"reset_media_source");
Fj(this,this.I5,g.I4(z)&&X,S&&!b,"qoe.longrebuffer",w,"reset_media_element");this.N===0&&(this.X=D);X=b&&this.B===0&&D>1&&D===this.X;Fj(this,this.g7,g.I4(z)&&X,S&&!b,"qoe.slowseek",function(){W.seekTo(0)},"reseek_after_time_jump");
M=x.isOrWillBePlaying()&&!M;v=this.xf.uW()-D<6&&!v&&this.xf.ZT();Fj(this,this.S,z.c9()&&M&&b&&v,S&&!b,"qoe.longrebuffer",function(){Q.xf.QI(!1,!0)},"handoff_end_long_buffer_reload");
k=(k==null?void 0:TGD(k))||NaN;k=u.length>1||!isNaN(k)&&k-.1<=D;Fj(this,this.T,KQ(z)&&M&&b&&k,S&&!b,"qoe.longrebuffer",w,"gapless_slice_append_stuck");k=Y>=0&&u.end(Y)>=2;M=KQ(z)&&this.xf.MS&&k&&!z.F3&&M&&(b||g.r(x,8)&&g.r(x,16));Fj(this,this.pS,M,K,"qoe.start15s",w,"gapless_slow_start");x=!!(l&&c>5&&x.isPlaying()&&D<.1);Fj(this,this.Y6,x,D>.5&&S,"qoe.longrebuffer",w,"ssap_stuck_in_ad_beginning");this.N=D;this.L.start()}};
Et.prototype.zt=function(Q,W,x){W=this.AO(W);W.wn=x;W.wdup=this.D[Q]?"1":"0";this.xf.zt(new Gu(Q,W));this.D[Q]=!0};
Et.prototype.AO=function(Q){Q=Object.assign(this.xf.AO(!0),Q.AO());this.B&&(Q.stt=this.B.toFixed(3));this.xf.getVideoData().isLivePlayback&&(Q.ct=this.xf.getCurrentTime().toFixed(3),Q.to=this.xf.aW().toFixed(3));delete Q.uga;delete Q.euri;delete Q.referrer;delete Q.fexp;delete Q.vm;return Q};
Tz.prototype.reset=function(){this.B=this.U=this.D=this.startTimestamp=0;this.N=!1};
Tz.prototype.test=function(Q){if(!this.L||this.U)return!1;if(!Q)return this.reset(),!1;Q=(0,g.a8)();if(!this.startTimestamp)this.startTimestamp=Q,this.D=0;else if(this.D>=this.L)return this.U=Q,!0;this.D+=1;return!1};
Tz.prototype.AO=function(){var Q={},W=(0,g.a8)();this.startTimestamp&&(Q.wsd=(W-this.startTimestamp).toFixed());this.U&&(Q.wtd=(W-this.U).toFixed());this.B&&(Q.wssd=(W-this.B).toFixed());return Q};g.n(urF,g.N);g.R=urF.prototype;g.R.setMediaElement=function(Q){(this.mediaElement=Q)?(this.mediaElement&&(this.L||this.N||!this.mediaElement.b3()||this.seekTo(.01,{N7:"seektimeline_setupMediaElement"})),tn(this)):W2(this)};
g.R.getCurrentTime=function(){if(Qh(this.xf)){if(!isNaN(this.U))return this.U}else if(!isNaN(this.U)&&isFinite(this.U))return this.U;return this.mediaElement&&igs(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.N||0};
g.R.vR=function(){return this.I5};
g.R.cZ=function(){return this.getCurrentTime()-this.aW()};
g.R.Qk=function(){return this.B?this.B.Qk():Infinity};
g.R.isAtLiveHead=function(Q){if(!this.B)return!1;Q===void 0&&(Q=this.getCurrentTime());return L9(this.B,Q)};
g.R.cF=function(){return!!this.B&&this.B.cF()};
g.R.seekTo=function(Q,W){var x=W===void 0?{}:W;W=x.w0===void 0?!1:x.w0;var D=x.jo===void 0?0:x.jo;var K=x.IK===void 0?!1:x.IK;var l=x.XO===void 0?0:x.XO;var M=x.N7===void 0?"":x.N7;var w=x.seekSource===void 0?void 0:x.seekSource;var S=x.MW===void 0?!1:x.MW;var b=x.Zx===void 0?!1:x.Zx;x=x.Va===void 0?!1:x.Va;S&&(Q+=this.aW());MJ(this.videoData)&&this.j("html5_sabr_enable_utc_seek_requests")&&w===29&&(this.I5=void 0);S=Q<this.X3&&!!this.Bt;var z=MJ(this.videoData)&&b;if(S&&!z&&(this.xf.qj("sdai",{sk2bk:Q.toFixed(3),
mt:(Q-this.timestampOffset).toFixed(3),lstadj:this.X3.toFixed(3)}),this.X3=NaN,this.timestampOffset-=1E3,(z=this.Bt)!=null)){LWQ(z,z.timestampOffset-1E3);var k=z.jZ,X=new Set;for(v in k.B){var u=k.B[v].index,Y=u.lY();Y&&!X.has(Y)&&(Y.startTime+=1E3,Y.endTime=Y.startTime+Y.duration,X.add(Y));u.segments.length&&(Y=u.segments[u.segments.length-1],u.segments=[],u.segments.push(Y))}z.S&&z.S.Bp();eq(z.N,0,0,!0)}var v=Q;(z=MJ(this.videoData))&&b?v=!0:(k=this.j("html5_always_allow_sqless_sync")&&this.videoData.lN(),
(z||k)&&M==="chunkSelectorSynchronize"?v=!0:(z=!isFinite(v)||(this.B?L9(this.B,v):v>=this.FY())||!g.Gr(this.videoData),z||(v={st:v,mst:this.FY()},this.B&&this.j("html5_high_res_seek_logging")&&(v.ht=this.B.Qk(),v.adft=w2Q(this.B)),this.xf.qj("seeknotallowed",v)),v=z));if(!v)return this.D&&(this.D=null,GU5(this)),g.ui(this.getCurrentTime());v=.005;b&&this.j("html5_sabr_seek_no_shift_tolerance")&&(v=0);if(Math.abs(Q-this.U)<=v&&this.pS)return this.L;M&&(v=Q,(this.bj.jk()||this.j("html5_log_seek_reasons"))&&
this.xf.qj("seekreason",{reason:M,tgt:v}));w&&(this.KS.U=w);this.pS&&W2(this);this.L||(this.L=new th);Q&&!isFinite(Q)&&Prv(this,!1);(M=x||S)||(M=Q,M=!(this.videoData.isLivePlayback&&this.videoData.D&&!this.videoData.D.B&&!(this.mediaElement&&this.mediaElement.aI()>0&&Wa(this.mediaElement)>0)||zr(this.videoData)&&this.Jn()===this.FY(!1)?0:isFinite(M)||!zr(this.videoData)));M||(Q=DA(this,Q,K));Q&&!isFinite(Q)&&Prv(this,!1);this.N=Q;this.eZ=l;this.U=Q;this.X=0;this.B&&(K=this.B,l=Q,SRs(K,l,!1),sJD(K,
l));K=this.xf;l=Q;M={w0:W,seekSource:w};K.K_.N=l;x=K.kP;x.mediaTime=l;x.B=!0;M.w0&&K.cH(M);M=l>K.videoData.endSeconds&&l>K.videoData.limitedPlaybackDurationInSeconds;K.GL&&M&&isFinite(l)&&wH1(K);l<K.FY()-.01&&(M=wE(K.playerState,2),g.r(M,8)&&(M=wE(M,4)),K.q7(M));K.publish("SEEK_TO",K,l);this.L&&(W?D&&this.s3.start(D):(W={Zx:b,seekSource:w},this.pS=!0,oq5(this,W)));(W=this.xf.GL)&&Q>W.start&&wH1(this.xf);return this.L};
g.R.FY=function(Q){if(!this.videoData.isLivePlayback)return $tO(this.xf);var W;return Wd(this.videoData)&&((W=this.mediaElement)==null?0:W.isPaused())&&this.videoData.B?(Q=this.getCurrentTime(),nsh(this.LZ(Q)*1E3)+Q):this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&MJ(this.videoData)&&this.videoData.B?Q?this.videoData.B.pS||0:this.videoData.B.t_||0:zr(this.videoData)&&this.videoData.LS&&this.videoData.B?this.videoData.B.FY()+this.timestampOffset:this.videoData.D&&this.videoData.D.B?!Q&&
this.B?this.B.Qk():$tO(this.xf)+this.timestampOffset:this.mediaElement?Zs()?nsh(this.mediaElement.jV().getTime()):Wa(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.R.Jn=function(){if(g.TQ(this.videoData)){var Q=this.xf;g.TQ(Q.videoData);var W,x;return(x=(W=Q.nS)==null?void 0:W.Jn())!=null?x:Q.videoData.Jn()}if(this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&MJ(this.videoData)){var D;return((D=this.videoData.B)==null?void 0:D.xg)||0}W=this.videoData?this.videoData.Jn()+this.timestampOffset:this.timestampOffset;return Wd(this.videoData)&&this.videoData.B&&(x=Number((Q=this.videoData.progressBarStartPosition)==null?void 0:Q.utcTimeMillis)/1E3,Q=
this.getCurrentTime(),Q=this.LZ(Q)-Q,!isNaN(x)&&!isNaN(Q))?Math.max(W,x-Q):W};
g.R.wv=function(){this.L||this.seekTo(this.N,{N7:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.R.TR=function(){return this.pS&&!isFinite(this.U)};
g.R.U3=function(){vqs(this,null);this.KS.dispose();g.N.prototype.U3.call(this)};
g.R.AO=function(){var Q={};this.Bt&&Object.assign(Q,this.Bt.AO());this.mediaElement&&Object.assign(Q,this.mediaElement.AO());return Q};
g.R.NG=function(Q){this.timestampOffset=Q};
g.R.getStreamTimeOffset=function(){return zr(this.videoData)?0:this.videoData.B?this.videoData.B.getStreamTimeOffset():0};
g.R.aW=function(){return this.timestampOffset};
g.R.LZ=function(Q){return this.videoData&&this.videoData.B?this.videoData.B.LZ(Q-this.timestampOffset):NaN};
g.R.Lq=function(){if(!this.mediaElement)return 0;if(dG(this.videoData)){var Q=this.mediaElement,W=Q.O4();Q=(zl(W)>0&&Q.getDuration()?W.end(W.length-1):0)+this.timestampOffset-this.Jn();W=this.FY()-this.Jn();return Math.max(0,Math.min(1,Q/W))}return this.mediaElement.Lq()};
g.R.wh=function(Q){this.G&&(this.G.B=Q)};
g.R.MY=function(Q,W){this.xf.qj("requestUtcSeek",{time:Q});MJ(this.videoData)&&this.j("html5_sabr_enable_utc_seek_requests")&&(this.I5=Q);var x;(x=this.Bt)==null||x.MY(Q);W&&(this.F3=W)};
g.R.K0=function(Q){MJ(this.videoData)&&this.j("html5_sabr_enable_utc_seek_requests")&&(this.I5=void 0);if(this.F3)this.xf.qj("utcSeekingFallback",{source:"streamTime",timeSeconds:this.F3}),this.xf.seekTo(this.F3,{N7:"utcSeekingFallback_streamTime"}),this.F3=0;else{var W=this.getCurrentTime();isNaN(W)||(Q=this.LZ(W)-Q,W-=Q,this.xf.qj("utcSeekingFallback",{source:"estimate",timeSeconds:W}),this.xf.seekTo(W,{N7:"utcSeekingFallback_estimate"}))}};
g.R.dL=function(){this.F3=0};
g.R.j=function(Q){return this.bj&&this.bj.j(Q)};g.n(Kg,g.N);Kg.prototype.start=function(){this.U.start()};
Kg.prototype.stop=function(){this.U.stop()};
Kg.prototype.clear=function(){for(var Q=g.V(this.B.values()),W=Q.next();!W.done;W=Q.next())W.value.clear()};
Kg.prototype.sample=function(){for(var Q=g.V(this.D),W=Q.next();!W.done;W=Q.next()){var x=g.V(W.value);W=x.next().value;x=x.next().value;this.B.has(W)||this.B.set(W,new $FQ(G1J.has(W)));this.B.get(W).update(x())}this.U.start()};
var G1J=new Set(["networkactivity"]);$FQ.prototype.update=function(Q){this.B?(this.buffer.add(Q-this.Po||0),this.Po=Q):this.buffer.add(Q)};
$FQ.prototype.clear=function(){this.buffer.clear();this.Po=0};MF.prototype.qY=function(){return this.started};
MF.prototype.start=function(){this.started=!0};
MF.prototype.reset=function(){this.finished=this.started=!1};var gq5=!1;g.n(g.br,g.Rd);g.R=g.br.prototype;g.R.U3=function(){this.logger.debug("dispose");g.nl(this.Xf);LvO(this.PZ);this.visibility.unsubscribe("visibilitystatechange",this.PZ);Wc4(this);kq(this);g.ct.TA(this.A3);this.GK();this.A2=null;g.w1(this.videoData);g.w1(this.DS);g.w1(this.kt);g.w1(this.fP);g.Sp(this.in3);this.GL=null;g.Rd.prototype.U3.call(this)};
g.R.vx=function(Q,W,x,D,K){if(this.bj.j("html5_log_ad_playback_docid")){var l=this.oW();if(l.qoe){l=l.qoe;var M=this.bj.uj||"yt";g.C9(l,g.n9(l.provider),"ad_playback",[Q,W,x,K,M])}}else this.oW().vx(Q,W,x);this.j("html5_log_media_perf_info")&&this.qj("adloudness",{ld:D.toFixed(3),cpn:Q})};
g.R.Fw=function(){var Q;return(Q=this.Bt)==null?void 0:Q.Fw()};
g.R.D1=function(){var Q;return(Q=this.Bt)==null?void 0:Q.D1()};
g.R.eM=function(){var Q;return(Q=this.Bt)==null?void 0:Q.eM()};
g.R.T_=function(){var Q;return(Q=this.Bt)==null?void 0:Q.T_()};
g.R.n3=function(){return this.videoData.n3()};
g.R.s2=function(){return this.j("html5_not_reset_media_source")&&!this.n3()&&!this.videoData.isLivePlayback&&g.I4(this.videoData)&&!this.bj.supportsGaplessShorts()};
g.R.BH=function(){if(this.videoData.S){var Q;if(!(Q=this.videoData.jz)){var W;Q=(W=this.L_.w7())==null?void 0:W.Fw()}this.videoData.jz=Q;if(!(Q=this.videoData.oa)){var x;Q=(x=this.L_.w7())==null?void 0:x.D1()}this.videoData.oa=Q}if(wen(this.videoData)||!Q0(this.videoData))x=this.videoData.errorDetail,this.dH(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),x,x,this.videoData.J8||void 0);this.j("html5_generate_content_po_token")&&this.Ye();this.j("html5_enable_d6de4")&&this.Ma();
if(this.j("html5_ssap_cleanup_player_switch_ad_player")||this.j("html5_ssap_cleanup_ad_player_on_new_data"))if(x=this.L_.sx())this.kC=x.clientPlaybackNonce};
g.R.Tf=function(){return this.T6};
g.R.KO=function(){!this.Zd||this.Zd.d7();this.Zd=new g.mP(new I5(this.videoData,this.bj,this));this.T6=new cG(this.bj,this,this.Zd)};
g.R.getVideoData=function(){return this.videoData};
g.R.C=function(){return this.bj};
g.R.iA=function(Q){return this.YW.iA(this.A2,Q===void 0?!1:Q)};
g.R.oW=function(Q){if(Q)a:{for(var W=this.T6,x=g.V(W.B.values()),D=x.next();!D.done;D=x.next())if(D=D.value,D.getVideoData().videoId===Q){Q=D;break a}Q=W.U}else Q=this.T6.oW();return Q};
g.R.fR=function(){return this.visibility};
g.R.oK=function(){return this.mediaElement&&this.mediaElement.E_()?this.mediaElement.yh():null};
g.R.DG=function(){return this.mediaElement};
g.R.J$=function(){if(this.j("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.C().X&&this.C().houseBrandUserStatus&&this.qj("hbut",{status:this.C().houseBrandUserStatus});if(this.videoData.ET())return!0;this.dH("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.R.A7=function(Q){(Q=Q===void 0?!1:Q)||g.TQ(this.videoData)||NH(this.oW());this.T5=Q;!this.J$()||this.XA.qY()?g.dO(this.bj)&&this.videoData.isLivePlayback&&this.XA.qY()&&!this.XA.finished&&!this.T5&&this.s0():(this.XA.start(),Q=this.oW(),g.n9(Q.provider),Q.qoe&&EpO(Q.qoe),this.s0())};
g.R.s0=function(){if(this.videoData.isLoaded()){var Q=this.DS;g.X0(Q.Dp.experiments,"html5_player_min_build_cl")>0&&g.X0(Q.Dp.experiments,"html5_player_min_build_cl")>732759002&&Dg1(Q,"oldplayer");lh4(this)}else this.videoData.KR||this.videoData.eS?this.T5&&g.dO(this.bj)&&this.videoData.isLivePlayback||(this.videoData.KR?LFz(this.videoData):(Q=this.oW(),Q.qoe&&(Q=Q.qoe,hn(Q,"protected"),Q.provider.videoData.L?Q.kZ():Q.provider.videoData.subscribe("dataloaded",Q.kZ,Q)),gO1(this.videoData))):!this.videoData.loading&&
this.zG&&xtO(this)};
g.R.wD=function(Q){this.Ex=Q;this.Bt&&(yfs(this.Bt,new g.K9(Q)),this.qj("sdai",{sdsstm:1}))};
g.R.J6=function(Q){this.nS=Q;this.Bt&&this.Bt.J6(Q)};
g.R.wq=xQ(15);g.R.isFullscreen=function(){return this.visibility.isFullscreen()};
g.R.isBackground=function(){return this.visibility.isBackground()};
g.R.qb=function(){var Q=this;this.logger.debug("Updating for format change");sR(this).then(function(){return Sy(Q)});
this.playerState.isOrWillBePlaying()&&this.playVideo()};
g.R.Jl=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.A7();this.J$()&&!g.r(this.playerState,128)&&(this.l_.qY()||(this.l_.start(),this.videoData.A_?this.q7(RA(this.playerState,4)):this.q7(RA(RA(this.playerState,8),1))),Dt1(this))};
g.R.HY=function(){return this.XA.finished};
g.R.sendAbandonmentPing=function(){g.r(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.qd(!0),Wc4(this),g.ct.TA(this.A3))};
g.R.Kd=function(Q,W){Q=Q===void 0?!0:Q;(W===void 0||W)&&this.mediaElement&&this.mediaElement.pause();this.q7(Q?new g.lW(14):new g.lW)};
g.R.ZU=function(){this.oW().zf()};
g.R.dH=function(Q,W,x,D,K,l){this.logger.debug(function(){return"set player error: ec="+Q+", detail="+K});
var M,w;g.aZ(c$5,x)?M=x:x?w=x:M="GENERIC_WITHOUT_LINK";D=(D||"")+(";a6s."+wF());if(Q==="auth"||Q==="drm.auth"||Q==="heartbeat.stop")x&&(D+=";r."+x.replaceAll(" ","_")),l&&(D+="sr."+l.replaceAll(" ","_"));W={errorCode:Q,errorDetail:K,errorMessage:w||g.y1[M]||"",Ev:M,J8:l||"",s5:D,aF:W,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=Q;zU(this,"dataloaderror");this.q7(Mm(this.playerState,128,W));g.ct.TA(this.A3);kq(this);this.WM()};
g.R.BI=function(Q){this.w3=this.w3.filter(function(W){return Q!==W});
this.logger.debug(function(){return"set preroll ready for "+Q});
g.TQ(this.videoData)&&!this.vM()&&this.Qh.U4("pl_pr");this.l_.qY()&&Dt1(this)};
g.R.vM=function(){var Q;(Q=!!this.w3.length)||(Q=this.tA.B.array[0],Q=!!Q&&Q.start<=-0x8000000000000);return Q};
g.R.cF=function(){return this.K_.cF()};
g.R.isPlaying=function(){return this.playerState.isPlaying()};
g.R.Vr=function(){return this.playerState.Vr()&&this.videoData.A_};
g.R.getPlayerState=function(){return this.playerState};
g.R.uQ=function(Q){var W;(W=this.Bt)==null||W.uQ(Q)};
g.R.qa=function(Q){var W;(W=this.Bt)==null||W.qa(Q)};
g.R.getPlayerType=function(){return this.playerType};
g.R.getPreferredQuality=function(){if(this.A2){var Q=this.A2;Q=Q.videoData.mp.compose(Q.videoData.fJ);Q=Sw(Q)}else Q="auto";return Q};
g.R.Mc=xQ(20);g.R.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.R.setMediaElement=function(Q){this.logger.debug("set media element");if(this.mediaElement&&Q.yh()===this.mediaElement.yh()&&(Q.isView()||this.mediaElement.isView())){if(Q.isView()||!this.mediaElement.isView())g.d3(this.wM),this.mediaElement=Q,this.mediaElement.xf=this,vIh(this),this.K_.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.GK();if(!this.playerState.isError()){var W=wE(this.playerState,512);g.r(W,8)&&!g.r(W,2)&&(W=RA(W,1));Q.isView()&&(W=wE(W,64));this.q7(W)}this.mediaElement=
Q;this.mediaElement.xf=this;!g.dO(this.bj)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);vIh(this);this.K_.setMediaElement(this.mediaElement);this.j("html5_prewarm_media_source")&&!this.DS.Yb()&&Bss(this.mediaElement)}};
g.R.GK=function(Q,W,x){Q=Q===void 0?!1:Q;W=W===void 0?!1:W;x=x===void 0?!1:x;this.logger.debug("remove media element");if(this.mediaElement){var D=this.getCurrentTime();D>0&&(this.K_.N=D);this.K_.setMediaElement(null);!Q&&this.s2()?oI2(this):this.j6(x);this.Bt&&(Tt(this.Bt),Yq(this,W));this.Fo.stop();if(this.mediaElement&&(!this.l_.qY()&&!this.YI()||this.playerState.isError()||g.r(this.playerState,2)||this.q7(RA(this.playerState,512)),this.mediaElement)){g.d3(this.wM);if(Q||!this.mediaElement.isView())this.Qh.ax("mesv_s"),
this.mediaElement.stopVideo(),ng(this);this.mediaElement=this.mediaElement.xf=null}}};
g.R.playVideo=function(Q,W){Q=Q===void 0?!1:Q;W=W===void 0?!1:W;var x=this,D,K,l,M,w,S;return g.U(function(b){if(b.B==1){x.logger.debug("start play video");var z=window.google_image_requests;z&&z.length>10&&(window.google_image_requests=z.slice(-10));if(g.r(x.playerState,128))return b.return();if(x.DS.CE())return x.publish("signatureexpired"),b.return();x.mediaElement&&NH(x.oW());x.Jl();(g.r(x.playerState,64)||Q)&&x.q7(RA(x.playerState,8));return x.l_.finished&&x.mediaElement?x.A2||!x.m8?b.kf(2):
g.A(b,x.m8,3):b.return()}if(b.B!=2&&g.r(x.playerState,128))return b.return();if(!x.videoData.D)return x.videoData.isLivePlayback&&!g.KO(x.bj.L,!0)?(D="html5.unsupportedlive",K=2):(D=x.videoData.n3()?"fmt.unplayable":"fmt.noneavailable",K=1),g.Bp(Error("selectableFormats")),x.dH(D,K,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),b.return();if(x.m$()&&x.videoData.D.B)return x.logger.debug("rebuild playbackData for airplay"),b.return(sR(x));if(Qh(x))z=x.K_,s_(z.videoData)?!z.isAtLiveHead(z.getCurrentTime())&&
z.cF()&&z.xf.seekTo(Infinity,{N7:"seektimeline_peggedToLive",seekSource:34}):g.TQ(z.videoData)&&z.getCurrentTime()<z.Jn()&&z.xf.seekTo(z.Jn(),{N7:"seektimeline_outOfWindow"});else if(s_(x.videoData)){if(l=x.getCurrentTime()<x.Jn()-15,M=g.Gr(x.videoData)&&x.playerState.isPaused(),w=g.r(x.playerState,1024),z=x.K_,z.videoData.lN()&&F6(z.videoData)||w||!l&&!M||(M?(x.logger.debug("seek to head for live because of live-only"),x.seekTo(Infinity,{N7:"videoplayer_unpauseLiveOnly",seekSource:102})):(x.logger.debug("seek to min seekable for live because of out of window"),
x.seekTo(x.Jn(),{N7:"videoplayer_outOfWindow",seekSource:102}))),!x.isAtLiveHead(void 0,!0)&&x.cF()&&(x.logger.debug("seek to head for live because pegged to live"),S={N7:"videoplayer_peggedToLive",seekSource:34},x.seekTo(Infinity,S)),g.r(x.playerState,256)&&x.videoData.F3&&x.K_.TR())return x.q7(S_(x.playerState,8,4)),b.return()}else g.TQ(x.videoData)&&x.getCurrentTime()<x.Jn()-0&&x.seekTo(x.Jn(),{N7:"videoplayer_outOfWindow"});g.r(x.playerState,4)&&g.r(x.playerState,16)&&x.q7(S_(x.playerState,9,
4));if(Sy(x,W))return GZ2(x),b.return();ahQ(x);g.VF(b)})};
g.R.Sy=function(Q){this.logger.debug("reset media source");Q&&this.zt(new Gu("qoe.restart",Q));this.q7(RA(this.playerState,2048));this.j6();Q=this.videoData.B&&uQ(this.videoData.B);var W=this.mediaElement&&this.mediaElement.isView();Q||W?(this.Bt&&zj5(this.Bt),this.QI()):(Sy(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
g.R.VT=function(){if(!this.A2)return[];var Q=wfQ(this.YW,this.A2,this.dk());return this.A2.B.VT(Q)};
g.R.cR=function(){if(!this.A2)return[];var Q=wfQ(this.YW,this.A2,this.dk());return this.A2.B.cR(Q)};
g.R.dk=function(){var Q=this.sT?this.sT.dk():DM(this.videoData)&&this.videoData.B&&uQ(this.videoData.B)?this.videoData.A4?eQ:qJQ:eQ;this.Fb&&(Q=Q.compose(wVu));return Q};
g.R.GD=function(){return this.A2?wfQ(this.YW,this.A2,this.dk()):eQ};
g.R.aS=function(){var Q=this.XX(),W=this.L_.sx().videoId;return this.L_.f0.aS(Q)||this.L_.f0.aS(W)};
g.R.D2=function(Q,W,x){var D;if((D=this.oW().qoe)!=null){var K=Q.B,l=g.n9(D.provider);g.C9(D,l,"vfi",[K===0?"":""+K,K===0?"A":"M"])}this.videoData.mp=Q;if(this.A2&&W&&(W=this.YW,D=this.A2,D.B.B)){var M=D.B.videoInfos[0].video.B;K=M!==0&&Q.B===M;l=cc()>M;M=W.j("html5_dont_save_under_1080")&&M<1080;if(!K||!l&&!M){var w;K=b2v(W,(w=D.B)==null?void 0:w.videoInfos);w=W.xf.getPlaybackRate();w>1&&K&&(w=ITs(W.bj.L,D.B.videoInfos,w),Q.B!==0&&w<Q.B&&W.xf.setPlaybackRate(1));var S,b;Q=g.cl[Sw(Q)];w=((S=D.videoData.U)==
null?void 0:(b=S.video)==null?void 0:b.B)||0;g.Ud("yt-player-quality",{quality:Q,previousQuality:w},31104E3);W.bj.schedule.policy.N=cc()>=480;if(W.j("html5_exponential_memory_for_sticky")){S=W.bj.uG;b=1;var z=z===void 0?!1:z;xEl(S,"sticky-lifetime");S.values["sticky-lifetime"]&&S.iT["sticky-lifetime"]||(S.values["sticky-lifetime"]=0,S.iT["sticky-lifetime"]=0);z&&pO(S,"sticky-lifetime")>.0625&&(b=S.iT["sticky-lifetime"]*2);S.values["sticky-lifetime"]+=1*Math.pow(2,S.B/b);S.iT["sticky-lifetime"]=b;
S.N.start()}if(W.j("html5_perf_cap_override_sticky")){z=W.D;S=W.j("html5_perserve_av1_perf_cap");S=S===void 0?!1:S;if(S===void 0?0:S){b=yl();W=g.V(Object.keys(b));for(Q=W.next();!Q.done;Q=W.next())Q=Q.value,Q.indexOf("1")!==0&&delete b[Q];g.Ud("yt-player-performance-cap",b,2592E3)}else g.Bk("yt-player-performance-cap");mpF(S);if(S){S=g.V(iO.keys());for(b=S.next();!b.done;b=S.next())b=b.value,b.startsWith("1")||iO.delete(b);S=g.V(o5.values());for(b=S.next();!b.done;b=S.next())b=b.value,b.startsWith("1")||
o5.delete(b);S=g.V(z.keys());for(b=S.next();!b.done;b=S.next())b=b.value,b.startsWith("1")||z.delete(b)}else iO.clear(),o5.clear(),z.clear()}}}this.Bt&&(z=this.Bt,x=x||"",z.policy.B?Om(z.U.B,x):Om(z.B.L,x));this.S6()};
g.R.getUserPlaybackQualityPreference=function(){return this.videoData.D&&!this.videoData.D.B?Sw(this.videoData.mp):wQ[cc()]};
g.R.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.R.setUserAudio51Preference=function(Q,W){this.getUserAudio51Preference()!==Q&&(this.qj("toggle51",{pref:Q}),g.Ud("yt-player-audio51",Q,W?31536E3:2592E3),this.qb())};
g.R.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()};
g.R.setProximaLatencyPreference=function(Q){var W=this.getProximaLatencyPreference();this.qj("proxima",{pref:Q});g.Ud("yt-player-proxima-pref",Q,31536E3);W!==Q&&(Q=this.K_,Q.Pt=!0,Q.xf.seekTo(Infinity,{N7:"seektimeline_proximaSeekToHead",seekSource:34}))};
g.R.getProximaLatencyPreference=function(){var Q;return(Q=gL())!=null?Q:0};
g.R.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.R.Ye=function(){this.videoData.videoId?this.L_.Ye(this.videoData):this.qj("povid",{})};
g.R.Ma=function(){this.videoData.videoId?this.L_.Ma(this.videoData):this.qj("piavid",{})};
g.R.S6=function(){if(!this.d7()&&!g.r(this.playerState,128)&&this.videoData.D){if(this.videoData.D.B)wd(this);else{var Q=ur(this),W=this.videoData;a:{var x=this.videoData.hn;if(Q.B){for(var D=g.V(x),K=D.next();!K.done;K=D.next()){K=K.value;var l=K.getInfo(),M=g.cl[l.video.quality];if((!Q.D||l.video.quality!=="auto")&&M<=Q.B){x=K;break a}}x=x[x.length-1]}else x=x[0]}W.tf=x;Soa(this,Q.reason,pH4(this,this.videoData.tf))}if(this.j("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.K_.S=
!1,this.playVideo()}};
g.R.GJ=function(Q,W){if(this.d7()||g.r(this.playerState,128))return!1;var x,D=!((x=this.videoData.D)==null||!x.B);x=D&&W?this.getCurrentTime()-this.aW():NaN;if(this.bj.experiments.ij("html5_record_audio_format_intent")){var K=this.oW();if(K.qoe){K=K.qoe;var l=[Q.RW.id,isNaN(x)?"m":"t"];g.C9(K,g.n9(K.provider),"afi",l)}}if(D)return W&&(D=JEh(this.K_),this.qj("aswh",{id:Q.id,xtags:Q.xtags,bh:D.toFixed(3)})),this.Bt.setAudioTrack(Q,x,W),!0;if(sgl(this)){a:{W=this.mediaElement.audioTracks();for(D=0;D<
W.length;++D)if(x=W[D],x.label===Q.RW.getName()){if(x.enabled){W=!1;break a}W=x.enabled=!0;break a}W=void 0}W&&this.qj("hlsaudio",{id:Q.id})}else{a:if(W=this.videoData,W.N&&!Qy(W.N)||Q===W.Br||!W.hn||W.hn.length<=0)W=!1;else{D=g.V(W.hn);for(x=D.next();!x.done;x=D.next()){x=x.value;if(!(x instanceof bb)){W=!1;break a}K=Q.RW.getId();x.U&&(pj5(x.U,K),x.Db=null)}W.Br=Q;W=!0}W&&Sy(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.qj("hlsaudio",{id:Q.id}))}return!0};
g.R.getAvailableAudioTracks=function(){return g.TQ(this.videoData)&&this.nS?L8Q(this.nS).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()};
g.R.getAudioTrack=function(){if(sgl(this)){var Q=kZF(this);if(Q)return Q}return this.videoData.getAudioTrack()};
g.R.gh=function(){if(this.videoData.j("html5_trigger_loader_when_idle_network")&&!this.videoData.lN()&&MJ(this.videoData)){var Q;(Q=this.Bt)!=null&&Q.KZ()}};
g.R.k$=function(){if(KQ(this.videoData)&&this.videoData.j("html5_gapless_append_early")){var Q;(Q=this.Bt)!=null&&Q.KZ()}};
g.R.MI=function(Q){Q=Q===void 0?!1:Q;if(this.Bt){var W=this.Bt,x=W.MI;var D=this.videoData;D=D.j("html5_ssdai_use_post_for_media")&&D.enableServerStitchedDai?!1:zr(D)&&D.It&&!D.isAd();x.call(W,D,Q)}};
g.R.j6=function(Q){Q=Q===void 0?!1:Q;this.r7&&(this.logger.debug("remove media source"),qH5(this.r7),this.MI(Q),this.r7.dispose(),this.r7=null)};
g.R.fv=function(){return this.r7};
g.R.bQ=function(Q,W,x,D){function K(M){try{V7a(l,M,W,x)}catch(w){g.Bp(w),l.handleError(new Gu("fmt.unplayable",{msi:"1",ename:w&&typeof w==="object"&&"name"in w?String(w.name):void 0},1))}}
var l=this;W=W===void 0?!1:W;x=x===void 0?!1:x;Yo1(this,D===void 0?!1:D);this.r7=Q;this.s2()&&Ew(this.r7)==="open"?K(this.r7):drO(this.r7,K)};
g.R.vc=function(Q){this.logger.debug("onNeedKeyInfo");this.wy.set(Q.initData,Q);this.sT&&(this.sT.vc(Q),this.j("html5_eme_loader_sync")||this.wy.remove(Q.initData))};
g.R.K8=function(Q){this.videoData.yS=g.jw("auto",Q,!1,"u");wd(this)};
g.R.wh=function(Q){var W=Q.reason,x=Q.B.info,D=Q.token,K=Q.videoId,l=this.oW(K),M=g.TQ(this.videoData)?l.getVideoData():this.videoData;if(x!==M.N){var w=!M.N;M.N=x;W!=="m"&&W!=="t"&&(W=w?"i":"a");var S=W==="m"||W==="t";this.bj.experiments.ij("html5_refactor_sabr_audio_format_selection_logging")?this.yl=new jS5(M,x,W,"",D,K):l.kT(new jS5(M,x,W,"",D));this.publish("internalaudioformatchange",M,!w&&S)}this.K_.wh(Q.B.index)};
g.R.Sb=function(Q){this.publish("localmediachange",Q)};
g.R.yT=function(Q){Q=Q===void 0?{}:Q;var W;(W=this.Bt)==null||W.yT(this.bj,j4(this.videoData),Q)};
g.R.CE=function(){return this.DS.CE()};
g.R.Pb=function(Q){this.zt(new Gu("staleconfig",{reason:Q}))};
g.R.handleError=function(Q){this.DS.handleError(Q)};
g.R.Yb=function(){return this.DS.Yb()};
g.R.K0=function(Q){this.K_.K0(Q)};
g.R.QI=function(Q,W,x){Q=Q===void 0?!1:Q;W=W===void 0?!1:W;x=x===void 0?!1:x;var D=this,K,l,M;return g.U(function(w){if(w.B==1){D.Bt&&D.Bt.rk();D.Bt&&D.Bt.d7()&&kq(D);if(D.j("html5_enable_vp9_fairplay")&&D.n3()&&(K=D.videoData.B)!=null)for(var S in K.B)K.B.hasOwnProperty(S)&&(K.B[S].B=null,K.B[S].D=!1);D.q7(RA(D.playerState,2048));D.j("html5_ssap_keep_media_on_finish_segment")&&g.TQ(D.videoData)?D.publish("newelementrequired",x):D.publish("newelementrequired");return Q?g.A(w,sR(D),2):w.kf(2)}D.videoData.lN()&&
((l=D.Bt)==null?0:l.F3)&&!Qh(D)&&((M=D.isAtLiveHead())&&s_(D.videoData)?D.seekTo(Infinity,{N7:"videoPlayer_getNewElement"}):D.videoData.Nr&&D.Bt&&(S=D.Bt,S.jZ.lN&&(S.jZ.Nr||S.jZ.N||S.jZ.isPremiere?(S.seek(0,{N7:"loader_resetSqless"}),S.videoTrack.G=!0,S.audioTrack.G=!0,S.videoTrack.L=!0,S.audioTrack.L=!0):aI(S.jZ)&&Dl(S))));W&&D.seekTo(0,{seekSource:105});g.r(D.playerState,8)&&(D.j("html5_ssap_keep_media_on_finish_segment")&&g.TQ(D.videoData)?D.playVideo(!1,x):D.playVideo());g.VF(w)})};
g.R.Bo=function(Q){this.qj("hgte",{ne:+Q});this.videoData.S=!1;Q&&this.QI();this.Bt&&zj5(this.Bt)};
g.R.O1=function(Q){this.qj("newelem",{r:Q});this.QI()};
g.R.pauseVideo=function(Q){Q=Q===void 0?!1:Q;if((g.r(this.playerState,64)||g.r(this.playerState,2))&&!Q)if(g.r(this.playerState,8))this.q7(S_(this.playerState,4,8));else if(this.Vr())Sy(this);else return;g.r(this.playerState,128)||(Q?this.q7(RA(this.playerState,256)):this.q7(S_(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.Gr(this.videoData)&&this.Bt&&Yq(this,!1)};
g.R.stopVideo=function(){this.pauseVideo();this.Bt&&(Yq(this,!1),this.Bt.kS())};
g.R.WM=function(Q,W){Q=Q===void 0?!1:Q;W=W===void 0?!1:W;if(this.s2()&&W){var x;(x=this.mediaElement)==null||x.WM()}else{var D;(D=this.mediaElement)==null||D.stopVideo()}ng(this);kq(this);g.r(this.playerState,128)||(Q?this.q7(wE(wE(RA(this.playerState,4),8),16)):this.q7(Mm(this.playerState)));this.videoData.videoId&&this.bj.LS.remove(this.videoData.videoId)};
g.R.seekTo=function(Q,W){W=W===void 0?{}:W;this.logger.debug(function(){return"SeekTo "+Q+", "+JSON.stringify(W)});
g.r(this.playerState,2)&&Sy(this);W.M6Z&&this.q7(RA(this.playerState,2048));W.seekSource!==58&&W.seekSource!==60||!this.j("html5_update_vss_during_gapless_seeking")||Bi4(this.oW(),W.seekSource);this.K_.seekTo(Q,W);this.tA.sync()};
g.R.cH=function(Q){this.Qh.N.LH();g.r(this.playerState,32)||(this.q7(RA(this.playerState,32,Q==null?void 0:Q.seekSource)),g.r(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.QA()};
g.R.nm=function(Q){Q=Q==null?void 0:Q.seekSource;g.r(this.playerState,32)?(this.q7(S_(this.playerState,16,32,Q)),this.publish("endseeking",this)):g.r(this.playerState,2)||this.q7(RA(this.playerState,16,Q));this.Qh.N.r6(this.videoData,this.playerState.isPaused())};
g.R.Bb=function(Q){this.nm(Q)};
g.R.p8=function(){this.publish("SEEK_COMPLETE")};
g.R.Qm=function(){this.publish("onAbnormalityDetected")};
g.R.Mm=function(Q){var W=this.L_,x=this.videoData.clientPlaybackNonce,D=this.playerType;if(Q.scope===4){var K=Q.type;if(K){var l=W.Zp(),M=l.getVideoData().clientPlaybackNonce;D===1&&(M=x);(W=PHF(W,M))?(x=W.getVideoData())&&(Q.writePolicy===2&&x.sabrContextUpdates.has(K)||x.sabrContextUpdates.set(K,Q)):l.qj("scuset",{ncpf:"1",ccpn:M,crcpn:x})}else g.Bp(Error("b/380308491: contextUpdateType is undefined"))}};
g.R.V8=function(){if(this.playerType===2)return this.L_.V8("")};
g.R.getCurrentTime=function(){return this.K_.getCurrentTime()};
g.R.vR=function(){return this.K_.vR()};
g.R.cZ=function(){return this.K_.cZ()};
g.R.AB=function(Q){return this.nS&&(Q=Q||this.nS.fu())?Ki(this.nS,Q):this.cZ()};
g.R.Qk=function(){return this.K_.Qk()};
g.R.getPlaylistSequenceForTime=function(Q){return this.videoData.getPlaylistSequenceForTime(Q-this.aW())};
g.R.xQ=function(){var Q=NaN;this.mediaElement&&(Q=this.mediaElement.xQ());return Q>=0?Q:this.getCurrentTime()};
g.R.LZ=function(){var Q;return((Q=this.videoData.B)==null?0:Q.LZ)?this.videoData.B.LZ(this.getCurrentTime()-this.aW()):this.mediaElement&&(Q=this.mediaElement.jV())&&(Q=Q.getTime(),!isNaN(Q))?Q/1E3+this.getCurrentTime():NaN};
g.R.getDuration=function(Q){return g.TQ(this.videoData)&&this.nS?Q?ZFs(this.nS,Q):rY(this.nS):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.aW():this.FY()?this.FY():0};
g.R.jB=function(){var Q=new g0D;if(this.Bt){var W=this.bj.schedule,x=this.bj.jk();x=x===void 0?!1:x;Q.hq=W.F3;Q.VE=W.eZ;Q.bandwidthEstimate=CO(W);if(x){x=(W.S.iS()*1E3).toFixed();var D=(W.fS.iS()*1E3).toFixed(),K=Vv(W).toFixed(2),l=((W.G.iS()||0)*1E9).toFixed(2),M=W.D.iS().toFixed(0),w=W.LS.iS().toFixed(0),S=W.T.percentile(.5).toFixed(2),b=W.T.percentile(.92).toFixed(2),z=W.T.percentile(.96).toFixed(2),k=W.T.percentile(.98).toFixed(2);W.B?W.B.reset():W.B=new bA;W.B.add(W.KS);W.B.add(W.interruptions.length);
for(var X=0,u=W.interruptions.length-1;u>=0;u--){var Y=W.interruptions[u];W.B.add(Y-X);X=Y}X=0;for(u=W.N.length-1;u>=0;u--){Y=W.N[u];var v=Y.stamp/36E5;W.B.add(v-X);X=v;W.B.add(Y.net/1E3);W.B.add(Y.max)}W=W.B.Rj();Q.B={ttr:x,ttm:D,d:K,st:l,bw:M,abw:w,v50:S,v92:b,v96:z,v98:k,"int":W}}gN4(this.Bt,Q)}else this.mediaElement&&(Q.VS=xa(this.mediaElement));Q.hq=this.hq;Q.VE=this.VE;Q.D=this.isAtLiveHead()&&this.isPlaying()?tyQ(this):NaN;return Q};
g.R.jF=function(Q,W){this.VE+=Q;this.hq+=W};
g.R.Lq=function(){return this.mediaElement?g.Gr(this.videoData)?1:dG(this.videoData)?this.isAtLiveHead()||this.cF()?1:this.K_.Lq():this.mediaElement.Lq():0};
g.R.gI=function(){var Q=this.getCurrentTime();if(this.sT){var W="IT/"+(this.sT.B.getInfo()+"/"+Sw(this.dk()));W+="/"+this.sT.getInfo()}else W="";var x=this.isGapless(),D=this.PK(),K=this.Qf(),l=g.oJ(this),M=this.getPlayerState(),w=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var S=0;var b="";if(this.Ex){if(this.Ex.Nk){b="D,";break a}S=this.Ex.Z6();b=this.Ex.fu().substring(0,4)}else this.nS&&(S=this.nS.Z6(),b=this.nS.fu().substring(0,4));S>0?(S="AD"+S+", ",b&&(S+=b+", "),b=S):b=""}return{currentTime:Q,
j8:W,isGapless:x,PK:D,mx:K,gXZ:l,playerState:M,iej:w,fBZ:this.yw,nD:b,mD3:this.eB()}};
g.R.AO=function(Q){var W={};if(Q===void 0?0:Q){Object.assign(W,this.oW().AO());this.mediaElement&&(Object.assign(W,this.mediaElement.AO()),Object.assign(W,this.eB()));this.Bt&&Object.assign(W,this.Bt.AO());this.sT&&(W.drm=JSON.stringify(this.sT.AO()));W.state=this.playerState.state.toString(16);g.r(this.playerState,128)&&(W.debug_error=JSON.stringify(this.playerState.HI));this.vM()&&(W.prerolls=this.w3.join(","));this.videoData.UT&&(W.ismb=this.videoData.UT);this.videoData.latencyClass!=="UNKNOWN"&&
(W.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(W.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)W.is_mosaic=1;this.videoData.cotn&&(W.is_offline=1,W.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(W.playerResponseCpn=this.videoData.playerResponseCpn);this.L_.isOrchestrationLeader()&&(W.leader=1);this.videoData.isLivePlayback&&(this.videoData.B&&
Cn(this.videoData.B)&&(W.segduration=Cn(this.videoData.B)),Q=this.K_,W.lat=Q.G?DF2(Q.G.N):0,W.liveutcstart=this.videoData.liveUtcStartSeconds);W.relative_loudness=this.videoData.wx.toFixed(3);if(Q=g.oJ(this))W.optimal_format=Q.video.qualityLabel;W.user_qual=cc();W.release_version="youtube.player.web_20250302_00_RC00";g.TQ(this.videoData)&&this.nS&&(W.ssap=jH(this.nS))}W.debug_videoId=this.videoData.videoId;return W};
g.R.addCueRange=function(Q){this.FD([Q])};
g.R.removeCueRange=function(Q){this.tA.RI([Q])};
g.R.iC=function(){this.tA.sync()};
g.R.jA=function(Q,W){return this.tA.jA(Q,W)};
g.R.FD=function(Q,W){this.tA.HV(Q,W)};
g.R.Bg=function(Q){this.tA.RI(Q)};
g.R.lC=function(Q){var W=this.tA;Q.length<=0||W.d7()||(Q=W.B,Q.array.sort(Q.B))};
g.R.Jv=function(){return this.tA.Jv()||[]};
g.R.U1=function(){return this.hY};
g.R.m$=function(){return this.visibility.m$()};
g.R.hs=function(){this.mediaElement&&this.mediaElement.hs()};
g.R.c2Z=function(){zU(this)};
g.R.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.R.WB=function(){this.QA();this.publish("onLoadProgress",this,this.Lq())};
g.R.qT=function(Q){var W=Q.target.aj();if(this.mediaElement&&this.mediaElement.aj()&&this.mediaElement.aj()===W){UtO(this,Q.type);switch(Q.type){case "error":var x=Kz(this.mediaElement)||"",D=this.mediaElement.ZJ();if(x==="capability.changed"){this.j("html5_restart_on_capability_change")?(this.qj("capchg",{msg:D}),this.QI(!0)):sR(this);return}if(this.mediaElement.hasError()&&(tk5(this.DS,x,{msg:D})||g.TQ(this.videoData)&&this.nS&&(D=this.playerState.HI,this.nS.handleError(x,D==null?void 0:D.aF))))return;
if(this.isBackground()&&this.mediaElement.g1()===4){this.WM();Xr(this,"unplayable");return}break;case "durationchange":x=this.mediaElement.getDuration();isFinite(x)&&(!this.r7||x>0)&&x!==1&&this.PF(x);break;case "ratechange":this.Bt&&this.Bt.setPlaybackRate(this.mediaElement.getPlaybackRate());E0D(this.tA);this.oW().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Bea(this);this.publish("onLoadedMetadata");JJ5(this);x=this.LZ();this.videoData.DH&&(this.videoData.DH=x);break;
case "loadstart":JJ5(this);break;case "progress":case "suspend":g.X0(this.bj.experiments,"html5_progress_event_throttle_ms")>0?this.CL.Ed():this.WB();break;case "playing":this.Qh.ax("plev");this.Jm&&!Qh(this)&&(this.Jm=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{N7:"videoplayer_onPlaying"})));break;case "timeupdate":x=this.mediaElement&&!this.mediaElement.getCurrentTime();D=this.mediaElement&&this.mediaElement.aI()===0;if(x&&(!this.eb||D))return;
this.eb=this.eb||!!this.mediaElement.getCurrentTime();CXD(this);this.QA();if(!this.mediaElement||this.mediaElement.aj()!==W)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.gk().length>0&&this.mediaElement.O4().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.Bt)return;this.j("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.aI()>2||!this.mediaElement.isSeeking()&&
Se(this.mediaElement.O4(),this.mediaElement.getCurrentTime()))&&(x=this.mediaElement.AO(),x.bh=xa(this.mediaElement).toFixed(3),this.qj("uwe",x));g.TQ(this.videoData)&&this.nS&&mXh(this.nS,this.mediaElement.getCurrentTime());break;case "resize":Bea(this);this.videoData.U&&this.videoData.U.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.l8&&g.r(this.playerState,8)&&!g.r(this.playerState,1024)&&this.getCurrentTime()===0&&g.nX){Xr(this,"safari_autoplay_disabled");
return}}if(this.mediaElement&&this.mediaElement.aj()===W){UFD(this.K_,Q,this.nS||void 0);this.publish("videoelementevent",Q);W=this.playerState;D=this.kP;var K=this.mediaElement;x=this.videoData.clientPlaybackNonce;var l=g.TQ(this.videoData)&&this.nS?rY(this.nS):void 0;if(!g.r(W,128)){var M=W.state;K=K?K:Q.target;var w=K.getCurrentTime();if(!g.r(W,64)||Q.type!=="ended"&&Q.type!=="pause"){l=l||K.getDuration();l=K.isEnded()||w>1&&Math.abs(w-l)<1.1;var S=Q.type==="pause"&&K.isEnded();w=Q.type==="ended"||
Q.type==="waiting"||Q.type==="timeupdate"&&!g.r(W,4)&&!yT(D,w);if(S||l&&w)K.qF()>0&&K.aj()&&(M=14);else switch(Q.type){case "error":Kz(K)&&(M|=128);break;case "pause":g.r(W,256)?(M^=256)||(M=64):g.r(W,32)||g.r(W,2)||g.r(W,4)||(M=4,g.r(W,1)&&g.r(W,8)&&(M|=1));break;case "playing":w=M;M=(M|8)&-1093;w&4?(M|=1,j_(D,K,!0)):yT(D,K.getCurrentTime())&&(M&=-2);g.r(W,1)&&j_(D,K)&&(M|=1);break;case "seeking":M|=16;g.r(W,8)&&(M|=1);M&=-3;break;case "seeked":M&=-17;j_(D,K,!0);break;case "waiting":g.r(W,2)||(M|=
1);j_(D,K);break;case "timeupdate":w=g.r(W,16),l=g.r(W,4),(g.r(W,8)||w)&&!l&&yT(D,K.getCurrentTime())&&(M=8),j_(D,K)&&(M|=1)}}D=M;M=null;D&128&&(M=Q.target,K=Kz(M),w=1,K?(K==="capability.changed"&&(w=2),l="GENERIC_WITHOUT_LINK",S=M.AO(),S.mediaElem="1",/AUDIO_RENDERER/.test(M.ZJ())&&(l="HTML5_AUDIO_RENDERER_ERROR"),M={errorCode:K,errorMessage:g.y1[l]||"",Ev:l,s5:a0(S),aF:w,cpn:W.HI?W.HI.cpn:""}):M=null,M&&(M.cpn=x));W=Mm(W,D,M)}!g.r(this.playerState,1)&&g.r(W,1)&&HMs(this,"evt"+Q.type);this.q7(W)}}};
g.R.hw3=function(Q){Q=Q.B.availability==="available";Q!==this.hY&&(this.hY=Q,this.publish("airplayavailabilitychange"))};
g.R.tkp=function(){var Q=(0,g.a8)(),W=this.mediaElement.m$();this.qj("airplay",{ia:W});!W&&!isNaN(this.PY)&&Q-this.PY<2E3||(this.PY=Q,W!==this.m$()&&(Q=this.visibility,Q.B!==W&&(Q.B=W,Q.PZ()),this.qj("airplay",{rbld:W}),this.qb()),this.publish("airplayactivechange"))};
g.R.Gi=function(Q){if(this.Bt){var W=this.Bt,x=W.N,D=W.getCurrentTime(),K=Date.now()-x.T;x.T=NaN;x.qj("sdai",{adfetchdone:Q,d:K});Q&&!isNaN(x.G)&&x.U!==3&&c7(x.Bt,D,x.G,x.L);x.policy.L?x.D=NaN:x.N=NaN;ml(x,4,x.U===3?"adfps":"adf");Tt(W)}};
g.R.zd=function(){g.nl(this.Xf);this.Fo.stop();this.videoData.F3=!0;this.bj.rz=!0;this.bj.Gn=0;var Q=this.DS;if(Q.videoData.U){var W=Q.Dp.L,x=Q.videoData.U.CS;W.U.has(x)&&(W.U.delete(x),lA(W))}Q.B.stop();this.Zc();g.r(this.playerState,8)&&this.q7(wE(this.playerState,65));this.T5=!1;qth(this.oW());g.E3(this.kt);this.publish("playbackstarted");(Q=g.yF("yt.scheduler.instance.clearPriorityThreshold"))?Q():xD(0,0)};
g.R.Zc=function(){var Q=this.L_.sx(),W={},x={};!y_("pbs",this.Qh.timerName)&&Gi.measure&&Gi.getEntriesByName&&(Gi.getEntriesByName("mark_nr")[0]?jK5("mark_nr"):jK5());Q.videoId&&(W.videoId=Q.videoId);Q.clientPlaybackNonce&&!this.j("web_player_early_cpn")&&(W.clientPlaybackNonce=Q.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(x.isPausedOnLoad=!0);x.itag=Q.U?Number(Q.U.itag):-1;Q.RQ&&(x.preloadType=String(this.Rf?2:1));W.liveStreamMode=nLe[vX(Q)];W.playerInfo=x;this.Qh.infoGel(W);
if(this.Bt){Q=this.Bt.timing;window&&window.performance&&window.performance.getEntriesByName&&(Q.D&&(W=window.performance.getEntriesByName(Q.D),W.length&&(W=W[0],Q.tick("vri",W.fetchStart),Q.tick("vdns",W.domainLookupEnd),Q.tick("vreq",W.requestStart),Q.tick("vrc",W.responseEnd))),Q.U&&(W=window.performance.getEntriesByName(Q.U),W.length&&(W=W[0],Q.tick("ari",W.fetchStart),Q.tick("adns",W.domainLookupEnd),Q.tick("areq",W.requestStart),Q.tick("arc",W.responseEnd))));Q=Q.ticks;for(var D in Q)Q.hasOwnProperty(D)&&
this.Qh.tick(D,Q[D])}};
g.R.O5=function(Q,W,x){Q=(Q+(this.JB===3?.3:0))/W;W=Math.floor(Q*4);W>this.JB&&(this.qj("vpq",{q:W,cpn:x||this.videoData.clientPlaybackNonce,ratio:Q.toFixed(3)}),this.JB=W)};
g.R.q1=function(){this.JB=-1};
g.R.QA=function(Q){var W=this;Q=Q===void 0?!1:Q;if(this.mediaElement&&this.videoData){p2F(this.K_,this.isPlaying());var x=this.getCurrentTime();!this.Bt||g.r(this.playerState,4)&&g.Gr(this.videoData)||g.r(this.playerState,32)&&MJ(this.videoData)||ejl(this.Bt,x);this.j("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.O5(x,this.videoData.lengthSeconds);x>5&&(this.K_.N=x);var D=g.Ws();D?g.ct.TA(this.A3):g.Y1(this.A3);var K=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!K||Wd(this.videoData))&&
!g.r(this.playerState,128)){var l=function(){if(W.mediaElement&&!g.r(W.playerState,128)){W.bj.jk()&&UtO(W,"pfx");var M=W.getCurrentTime();W.j("html5_buffer_underrun_transition_fix")&&(M-=W.aW());var w=xa(W.mediaElement),S=g.r(W.playerState,8),b=yT(W.kP,M),z=gZ4(W.kP,M,(0,g.a8)(),w);S&&b?W.q7(wE(W.playerState,1)):S&&z?(S=W.getDuration(),b=s_(W.videoData),S&&Math.abs(S-M)<1.1?(W.qj("setended",{ct:M,bh:w,dur:S,live:b}),W.mediaElement.q5()?(W.logger.debug("seek to 0 because of looping"),W.seekTo(0,{N7:"videoplayer_loop",
seekSource:37})):W.Kd()):(W.playerState.isBuffering()||HMs(W,"progress_fix"),W.q7(RA(W.playerState,1)))):(S&&!b&&!z&&M>0&&(S=(Date.now()-W.Nu)/1E3,b=W.getDuration(),M>b-1&&W.qj("misspg",{t:M.toFixed(2),d:b.toFixed(2),r:S.toFixed(2),bh:w.toFixed(2)})),W.playerState.isPaused()&&W.playerState.isBuffering()&&xa(W.mediaElement)>5&&W.q7(wE(W.playerState,1)));W.QA()}};
this.mediaElement.gk().length===0?this.A3=D?g.ct.zK(l,100):g.oc(l,100):this.A3=D?g.ct.zK(l,500):g.oc(l,500)}this.videoData.s3=x;this.nS&&this.nS.Wx();!Q&&this.isPlaying()&&hC2(this);Pjn(this.YW,this.A2,this.DG(),this.isBackground())&&wd(this);this.publish("progresssync",this,Q);K&&Wd(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}};
g.R.u3j=function(){this.dH("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.R.Qf=function(){return this.oW().Qf()};
g.R.P0=function(){return this.Bt?this.Bt.P0():CO(this.bj.schedule,!0)};
g.R.q7=function(Q){if(!g.bW(this.playerState,Q)){this.logger.debug(function(){return"Setting state "+Q.toString()});
var W=new g.zV(Q,this.playerState);this.playerState=Q;qoQ(this);var x=!this.E5.length;this.E5.push(W);var D=this.mediaElement&&this.mediaElement.isSeeking();D=W.oldState.state===8&&!D;g.XV(W,1)&&D&&g.r(this.playerState,8)&&!g.r(this.playerState,64)&&this.Bt&&(s4s(this.Bt),this.mediaElement&&xa(this.mediaElement)>=5&&npQ(this.YW,this.A2)&&wd(this));(D=g.X0(this.bj.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.r(Q,1)&&(g.r(Q,8)||g.r(Q,16))?this.n6.start(D):this.n6.stop();(kZ(W,8)<0||
g.XV(W,1024))&&this.Fo.stop();!g.XV(W,8)||this.videoData.F3||g.r(W.state,1024)||this.Fo.start();g.r(W.state,8)&&kZ(W,16)<0&&!g.r(W.state,32)&&!g.r(W.state,2)&&this.playVideo();g.r(W.state,2)&&dG(this.videoData)&&(this.PF(this.getCurrentTime()),this.QA(!0));g.XV(W,2)&&(this.qd(!0),this.bj.jk()&&this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&MJ(this.videoData)&&this.videoData.B&&(D={minst:""+this.videoData.B.xg,cminst:""+(this.videoData.B.Jn()+this.aW()),maxst:""+this.videoData.B.t_,
hts:""+this.videoData.B.pS,cmaxst:""+(this.videoData.B.FY()+this.aW())},this.qj("sabrSeekableBoundaries",D)));g.XV(W,128)&&this.WM();this.videoData.B&&this.videoData.isLivePlayback&&!this.rp&&(kZ(W,8)<0?RTD(this.videoData.B):g.XV(W,8)&&this.videoData.B.resume());Crh(this.K_,W);$Hs(this.oW(),W);if(x&&!this.d7())try{for(var K=g.V(this.E5),l=K.next();!l.done;l=K.next()){var M=l.value;FP5(this.tA,M);this.publish("statechange",M)}}finally{this.E5.length=0}}};
g.R.qG=function(){this.Qh.tick("qoes")};
g.R.wv=function(){this.K_.wv()};
g.R.Ae=function(Q,W,x,D){a:{var K=this.DS;D=D===void 0?"LICENSE":D;x=x.substring(0,256);var l=dw(W);Q==="drm.keyerror"&&this.sT&&this.sT.U.keys.length>1&&K.N<96&&(Q="drm.sessionlimitexhausted",l=!1);if(l)if(K.videoData.U&&K.videoData.U.video.isHdr())ll4(K,Q);else{if(K.xf.dH(Q,W,D,x),OG2(K,{detail:x}))break a}else K.zt(Q,{detail:x});Q==="drm.sessionlimitexhausted"&&(K.qj("retrydrm",{sessionLimitExhausted:1}),K.N++,AJv(K.xf))}};
g.R.wDj=function(){var Q=this,W=g.X0(this.bj.experiments,"html5_license_constraint_delay"),x=Wk();W&&x?(W=new g.O3(function(){Q.S6();zU(Q)},W),g.y(this,W),W.start()):(this.S6(),zU(this))};
g.R.OC=function(Q){this.publish("heartbeatparams",Q)};
g.R.Gz=function(Q){this.qj("keystatuses",YXO(Q));var W="auto",x=!1;this.videoData.U&&(W=this.videoData.U.video.quality,x=this.videoData.U.video.isHdr());if(this.j("html5_drm_check_all_key_error_states")){var D=nWQ(W,x);D=wi(Q)?pn2(Q,D):Q.N.includes(D)}else{a:{W=nWQ(W,x);for(D in Q.B)if(Q.B[D].status==="output-restricted"){var K=Q.B[D].type;if(W===""||K==="AUDIO"||W===K){D=!0;break a}}D=!1}D=!D}if(this.j("html5_enable_vp9_fairplay")){if(x)if(Q.G){var l;if((l=this.sT)==null?0:NG(l.B))if((x=this.sT)==
null)x=0;else{W=l=void 0;K=g.V(x.U.values());for(var M=K.next();!M.done;M=K.next())M=M.value,l||(l=hoh(M,"SD")),W||(W=hoh(M,"AUDIO"));x.uF({sd:l,audio:W});x=l==="output-restricted"||W==="output-restricted"}else x=!D;if(x){this.qj("drm",{dshdr:1});ll4(this.DS);return}}else{this.videoData.Tq||(this.videoData.Tq=!0,this.qj("drm",{dphdr:1}),this.QI(!0));return}var w;if((w=this.sT)==null?0:NG(w.B))return}else if(w=Q.G&&D,x&&!w){ll4(this.DS);return}D||pn2(Q,"AUDIO")&&pn2(Q,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),
Q=YXO(Q),this.Fb?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.j("html5_report_fatal_drm_restricted_error_killswitch")||this.dH("drm.keyerror",2,void 0,"info."+Q)):(this.Fb=!0,this.zt(new Gu("qoe.restart",Object.assign({},{retrydrm:1},Q))),wd(this),AJv(this)))};
g.R.Rh9=function(){if(!this.videoData.F3&&this.mediaElement&&!this.isBackground()){var Q="0";this.mediaElement.aI()>0&&xa(this.mediaElement)>=5&&this.videoData.D&&this.videoData.D.B&&(this.q7(RA(this.playerState,1)),HMs(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),Q="1");qoQ(this);var W=this.videoData.D;Q={restartmsg:Q,mfmt:!DM(this.videoData),mdrm:!(!(W&&W.videoInfos&&W.videoInfos.length&&W.videoInfos[0].Qp)||this.sT),mfmtinfo:!this.videoData.U,prerolls:this.vM()?this.w3.join(","):
"0"};if(this.sT){W=this.sT;if(W.U.size<=0){var x="ns;";W.T||(x+="nr;");W=x+="ql."+W.D.length}else W=YXO(W.U.values().next().value),W=a0(W);Q.drmp=W}var D;Object.assign(Q,((D=this.Bt)==null?void 0:D.AO())||{});var K;Object.assign(Q,((K=this.mediaElement)==null?void 0:K.AO())||{});this.oW().zt("qoe.start15s",a0(Q));this.publish("loadsofttimeout")}};
g.R.PF=function(Q){this.videoData.lengthSeconds!==Q&&(this.videoData.lengthSeconds=Q,zU(this))};
g.R.qd=function(Q,W){var x=this;Q=Q===void 0?!1:Q;if(!this.Wj)if(y_("att_s","player_att")||fA("att_s",void 0,"player_att"),this.j("use_rta_for_player"))(function(){var K,l,M,w;return g.U(function(S){switch(S.B){case 1:if(!(K=Q)){S.kf(2);break}return g.A(S,g.qcn(),3);case 3:K=!S.U;case 2:if(K)return S.return();g.P5(S,4);l=Nia(x.oW());if(!l)throw Error();M={};return g.A(S,g.U61((M.cpn=x.videoData.clientPlaybackNonce,M.encryptedVideoId=x.videoData.videoId||"",M),3E4),6);case 6:w=S.U;if(x.Wj)throw Error();
if(!w.challenge)throw g.Bp(Error("Not sending attestation ping; no attestation challenge string")),Error();x.Wj=!0;var b=[w.challenge];w.error?b.push("r1c="+w.error):w.webResponse&&b.push("r1a="+w.webResponse);var z;((z=w.adblockReporting)==null?void 0:z.reportingStatus)!==void 0&&b.push("r6a="+w.adblockReporting.reportingStatus);var k;((k=w.adblockReporting)==null?void 0:k.broadSpectrumDetectionResult)!==void 0&&b.push("r6b="+w.adblockReporting.broadSpectrumDetectionResult);l(b.join("&"));fA("att_f",
void 0,"player_att");g.Cs(S,0);break;case 4:g.Jv(S),fA("att_e",void 0,"player_att"),g.VF(S)}})})().then(function(){W==null||W()});
else{var D=new g.Up5(this.videoData);if("c1a"in D.yc&&!g.Bc.isInitialized()){fA("att_wb",void 0,"player_att");this.KP===2&&Math.random()<.01&&g.Bp(Error("Botguard not available after 2 attempts"));if(Q)return;if(this.KP<5){g.E3(this.fP);this.KP++;return}}(D=g.qLl(D))?(fA("att_f",void 0,"player_att"),mH5(this.oW(),D),this.Wj=!0):fA("att_e",void 0,"player_att")}};
g.R.uW=function(Q){Q=Q===void 0?!1:Q;if(s_(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.cF()||g.Gr(this.videoData)))Q=this.getCurrentTime();else if(g.TQ(this.videoData)&&this.nS){Q=this.nS;var W=this.getCurrentTime();Q=(Q=y9s(Q,W*1E3))?(Q.cK()-Q.UQ())/1E3:0}else Q=this.FY(Q);return Q};
g.R.lH=function(){return g.TQ(this.videoData)?this.videoData.Jn():this.Jn()};
g.R.FY=function(Q){return this.K_.FY(Q===void 0?!1:Q)};
g.R.Jn=function(){return this.K_.Jn()};
g.R.aW=function(){return this.K_?this.K_.aW():0};
g.R.getStreamTimeOffset=function(){return this.K_?this.K_.getStreamTimeOffset():0};
g.R.X4=function(){var Q=0;this.bj.j("web_player_ss_media_time_offset")&&(Q=this.getStreamTimeOffset()===0?this.aW():this.getStreamTimeOffset());return Q};
g.R.setPlaybackRate=function(Q){var W;this.playbackRate!==Q&&b2v(this.YW,(W=this.videoData.D)==null?void 0:W.videoInfos)&&(this.playbackRate=Q,wd(this));this.playbackRate=Q;this.mediaElement&&this.mediaElement.setPlaybackRate(Q)};
g.R.getPlaybackRate=function(){return this.playbackRate};
g.R.getPlaybackQuality=function(){var Q="unknown";if(this.videoData.U&&(Q=this.videoData.U.video.quality,Q==="auto"&&this.mediaElement)){var W=this.oK();W&&W.videoHeight>0&&(Q=Nq(W.videoWidth,W.videoHeight))}return Q};
g.R.isHdr=function(){return!!(this.videoData.U&&this.videoData.U.video&&this.videoData.U.video.isHdr())};
g.R.F_=function(){this.oW().F_()};
g.R.sendVideoStatsEngageEvent=function(Q,W){var x=this.oW();x.B?(x=Ut(x.B,"engage"),x.pS=Q,x.send(W)):W&&W()};
g.R.jU=function(Q){return this.oW().jU(Q)};
g.R.isAtLiveHead=function(Q,W){W=W===void 0?!1:W;return s_(this.videoData)&&(this.jg||W)?this.K_.isAtLiveHead(Q):!1};
g.R.J9=function(){var Q=this.FY(),W=this.getCurrentTime(),x;(x=!s_(this.videoData))||(x=this.K_,x=!(x.B&&x.B.D));return x||this.cF()||isNaN(Q)||isNaN(W)?0:Math.max(0,Q-W)};
g.R.Oh=function(Q){(this.jg=Q)||this.Fo.stop();this.videoData.B&&(Q?this.videoData.B.resume():RTD(this.videoData.B));if(this.Bt){var W=this.videoData.j("html5_disable_preload_for_ssdai_with_preroll")&&this.YI()&&this.videoData.isLivePlayback;Q&&!W?this.Bt.resume():Yq(this,!0)}g.r(this.playerState,2)||Q?g.r(this.playerState,512)&&Q&&this.q7(wE(this.playerState,512)):this.q7(RA(this.playerState,512));W=this.oW();W.qoe&&(W=W.qoe,g.C9(W,g.n9(W.provider),"stream",[Q?"A":"I"]))};
g.R.eJ=function(Q){Q={n:Q.name,m:Q.message};this.oW().zt("player.exception",a0(Q))};
g.R.jH=xQ(25);g.R.W8=xQ(50);g.R.OG=function(Q){this.oW().OG(Q)};
g.R.nF=function(Q){this.oW().nF(Q)};
g.R.Ug=function(Q){this.oW().Ug(Q)};
g.R.MC=xQ(30);g.R.jL=xQ(35);g.R.gQ=function(Q){this.oW().gQ(Q)};
g.R.AL=function(){this.qj("hidden",{},!0)};
g.R.eB=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.R.G6=function(){return this.Bt?this.Bt.G6():!0};
g.R.setLoop=function(Q){this.loop=Q;this.mediaElement&&!g.dO(this.bj)&&this.mediaElement.setLoop(Q);this.Bt&&this.j("html5_loop_skip_set_end_of_stream")&&(Q?this.Bt.policy.fn=!0:zj5(this.Bt))};
g.R.q5=function(){return this.mediaElement&&!g.dO(this.bj)?this.mediaElement.q5():this.loop};
g.R.NG=function(Q){this.qj("timestamp",{o:Q.toString()});this.K_.NG(Q)};
g.R.Tt=function(Q){this.Qh.tick(Q)};
g.R.U4=function(Q){return this.Qh.U4(Q)};
g.R.ax=function(Q){this.Qh.ax(Q)};
g.R.qj=function(Q,W,x){x=x===void 0?!1:x;this.oW().qj(Q,W,x)};
g.R.VO=function(Q,W,x){x=x===void 0?!1:x;this.oW().qj(Q,W,x)};
g.R.zt=function(Q){this.oW().zt(Q.errorCode,a0(Q.details));Q=Q.errorCode;if(this.videoData.isLivePlayback&&(Q==="qoe.longrebuffer"||Q==="qoe.slowseek")||Q==="qoe.restart"){Q=this.Bt?dGs(this.Bt.videoTrack):{};var W,x;this.qj("lasoe",Object.assign(this.Bt?dGs(this.Bt.audioTrack):{},(W=this.r7)==null?void 0:(x=W.B)==null?void 0:x.nO()));var D,K;this.qj("lvsoe",Object.assign(Q,(D=this.r7)==null?void 0:(K=D.U)==null?void 0:K.nO()))}};
g.R.To=function(Q,W,x){this.oW().To(Q,W,x)};
g.R.bV=function(Q,W,x,D,K,l,M,w){var S;if((S=this.videoData.B)!=null&&S.isLive){var b=W.playerType===2?W:Q,z=Q.videoData.videoId,k=W.videoData.videoId;if(z&&k){S=this.oW();if(S.qoe){var X=S.qoe,u=Q.cpn,Y=W.cpn,v=b.videoData.Cn,J=X.provider.videoData.clientPlaybackNonce,h=X.provider.videoData.videoId,G=Y!==J&&k!==h;J=u!==J&&z!==h;X.reportStats();X.adCpn&&X.adCpn!==u||(X.adCpn=J?u:"",X.uj=J?z:"",X.adFormat=J?v:void 0,Gz(X,2,l?4:K?2:0,Y,k,D),X.reportStats(),X.adCpn=G?Y:"",X.uj=G?k:"",X.adFormat=G?v:
void 0,Gz(X,2,l?5:K?3:1,u,z,x),X.reportStats())}x=Q.cpn;if(S.D.has(x)){if(K=S.D.get(x),$0(K,!0).send(),BG(K),x!==S.provider.videoData.clientPlaybackNonce){hGl(K);var H;(H=S.B)==null||PVl(H);S.D.delete(x)}}else S.Rz=S.provider.videoData.clientPlaybackNonce,S.Rz&&S.B&&(S.D.set(S.Rz,S.B),$0(S.B).send(),BG(S.B));H=W.cpn;b=b.videoData;D-=this.X4();if(S.D.has(H)){D=S.D.get(H);var I=D.D&&isNaN(D.L)?qH(D):NaN;D=pG5(D,!1);isNaN(I)||(D.G=I);D.send()}else D=cnQ(S,S.provider,b,D),S.D.set(H,D),aPv(D,new g.zV(RA(new g.lW,
8),new g.lW)),V5D(D),(I=S.B)==null||BG(I);S.Rz=H;this.j("html5_unify_csi_server_stitched_transition_logging")?pys(Q.cpn,W.cpn,this.videoData.clientPlaybackNonce,W.videoData,M,void 0,w):(S=this.Qh,D=this.videoData.clientPlaybackNonce,I=W.videoData,Q=(Q.cpn===D?"video":"ad")+"_to_"+(W.cpn===D?"video":"ad"),D={},I.X&&(D.cttAuthInfo={token:I.X,videoId:I.videoId}),M&&(D.startTime=M),gK(Q,D),g.co({targetVideoId:I.videoId,targetCpn:W.cpn,isSsdai:!0},Q),S.bj.j("html5_enable_ssdai_transition_with_only_enter_cuerange")?
M||Xo(w,Q):Xo(w,Q))}}else this.logger.B(360717806,"SSTEvent for nonSS")};
g.R.C$=function(){var Q=this.L_,W=Q.Lr;Q.Lr=[];return W};
g.R.F6=function(Q){this.videoData.xo=!0;this.zt(new Gu("sabr.fallback",Q));this.QI(!0)};
g.R.D6=function(Q,W){this.videoData.ED=!0;if(W===void 0||W)this.zt(new Gu("qoe.restart",Q)),this.QI(!0);this.videoData.aQ()&&this.j("html5_reload_caption_on_ssdai_fallback")&&this.L_.uV()};
g.R.Wb=function(Q){this.qj("sdai",{aftimeout:Q});this.zt(new Gu("ad.fetchtimeout",{timeout:Q}))};
g.R.C8=function(Q,W){this.qj("timelineerror",Q);Q=new Gu("dai.timelineerror",Q);W?this.dH("dai.timelineerror",1,"RETRYABLE_ERROR",a0(Q.details)):this.zt(Q)};
g.R.Mz=function(){return g.n9(this.oW().provider)};
g.R.getPlayerSize=function(){return this.QW.getPlayerSize()};
g.R.ZB=function(){return this.QW.ZB()};
g.R.v3=function(){return this.Qh};
g.R.Hr=function(){return this.L_.Hr()};
g.R.getVolume=function(){return this.L_.getVolume()};
g.R.fY=function(){return this.L_.fY()};
g.R.isMuted=function(){return this.L_.isMuted()};
g.R.C9=function(){return this.L_.C9()};
g.R.oP=function(){this.rp=!0};
g.R.j=function(Q){return this.bj.j(Q)};
g.R.IJ=function(Q,W,x,D,K){this.qj("xvt",{m:Q,g:W?1:0,tt:x?1:0,np:D?1:0,c:K})};
g.R.UA=function(){var Q;(Q=this.Bt)==null||Q.resume()};
g.R.YI=function(){return g.FH(this.w3,"ad")};
g.R.n7=function(){var Q=this.getCurrentTime(),W=Q-this.aW();var x=this.mediaElement?zl(this.mediaElement.O4()):0;x=Math.floor(Math.max(x-W,0))+100;var D;if(!this.j("html5_ssdai_disable_seek_to_skip")&&((D=this.Bt)==null?0:D.PA(W,this.FY())))return this.qj("sdai",{skipad:1,ct:W.toFixed(3),adj:0}),!0;var K;return((K=this.Bt)==null?0:K.n7(W,x))?(this.qj("sdai",{skipad:1,ct:W.toFixed(3),adj:x.toFixed(3)}),MJ(this.videoData)&&this.Bt.seek(W+x,{seekSource:89,N7:"videoplayer_skipServerStitchedAd"}),Bds(this.K_,
Q),!0):!1};
g.R.jk=function(){return this.bj.jk()};
g.R.pY=function(){if(this.j("html5_generate_content_po_token"))return this.videoData.OF||"";this.L_.I8();return this.bj.gH||""};
g.R.BY=function(){if(this.videoData.videoId)return this.videoData.hJ};
g.R.XX=function(){return this.videoData.videoId};
g.R.bl=function(){return this.L_.Ob};
g.R.Vf=function(){return this.T5};
g.R.ZT=function(){return this.L_.ZT()};
g.R.MY=function(Q,W){this.K_.MY(Q,W)};
g.R.dL=function(){this.K_.dL()};
g.R.UZ=function(Q,W){var x=this.j("html5_generate_content_po_token")?this.videoData:void 0;this.L_.UZ(Q,W,x)};
g.R.GM=function(Q,W){var x;(x=this.Bt)==null||x.GM(Q,W)};
g.R.XM=function(){var Q=this.fv();return!!Q&&Q.XM()};
g.R.zP=function(){return this.nS};
g.R.k5=function(Q,W){this.oW().k5(Q,W)};
g.R.jr=function(){return this.oW().jr()};
g.R.HO=function(){return this.videoData.Mp};
g.R.PK=function(){return this.L_.PK()};
g.R.jj=function(){return this.L_.jj(this)};
g.R.yy=function(){this.MS=!0};
g.R.W0=function(){return this.kC};
g.R.Bw=function(Q){var W;(W=this.Bt)==null||W.Bw(Q)};
g.R.q9=function(){var Q;(Q=this.Bt)==null||Q.q9()};g.n(Iha,Fh);g.n(mt2,Fh);g.R=mt2.prototype;g.R.seekToChapterWithAnimation=function(Q){var W=this;if(g.oN(this.api)&&!(Q<0)){var x=this.api.getVideoData(),D=x.SU;if(D&&Q<D.length){D=g.V(D);for(var K=D.next();!K.done;K=D.next())if(K=K.value,K.index===Q){NeQ(this,K.startTime,K.title);return}}this.j("web_key_moments_markers")&&(x=x.jC)&&Q<x.length&&x.forEach(function(l,M){M===Q&&NeQ(W,l.timeRangeStartMillis,l.title)})}};
g.R.seekToTimeWithAnimation=function(Q,W){g.oN(this.api)&&NeQ(this,Q,W)};
g.R.setMacroMarkers=function(Q,W){W={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:W}}}}}};Q=Q.getVideoData();Q.getWatchNextResponse();Q&&Q.getWatchNextResponse()==null&&(L1(Q,{raw_watch_next_response:W}),Q.publish("dataupdated"))};
g.R.changeMarkerVisibility=function(Q,W,x){var D=this.api.getVideoData();if(D){var K=!1;if(Q)for(Q=g.V(W),W=Q.next();!W.done;W=Q.next()){W=W.value;var l=D.Vj;if(l&&!l.includes(W))switch(x){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":gIQ(W,D)||(K=!0,l=void 0,(l=D.Vj)==null||l.push(W));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":l.length===0&&(K=!0,l=void 0,(l=D.Vj)==null||l.push(W));break;default:K=!0,l=void 0,(l=D.Vj)==null||l.push(W)}}else for(x=
g.V(W),Q=x.next();!Q.done;Q=x.next())Q=Q.value,D.visibleOnLoadKeys.includes(Q)||g.Qn(D.Vj,Q)&&(K=!0);K&&this.api.publish("updatemarkervisibility")}};
g.R.isSameMarkerTypeVisible=function(Q){var W=this.api.getVideoData();return W?gIQ(Q,W):!1};g.n(Vh,Fh);
Vh.prototype.updateMetadata=function(){var Q=this,W=this.api.getVideoData();if(W!=null&&W.ET()){var x=this.api.C(),D=[],K="";if(!x.pS){var l=fh5(this);g.Il(x)&&l?(D=ZMF(l.thumbnailDetails),l.album&&(K=vc(l.album))):D=[{src:W.ue("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var M;((M=this.api.getVideoData())==null?0:M.S)&&Lcs(this);yJa(this);eCn(this);navigator.mediaSession.metadata=new MediaMetadata({title:W.title,artist:W.author,artwork:D,album:K});x=W=null;g.iL(this.api)&&(W=function(){Q.api.nextVideo()},
x=function(){Q.api.previousVideo()});
P2("nexttrack",W);P2("previoustrack",x)}};
Vh.prototype.U3=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var Q=g.V("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),W=Q.next();!W.done;W=Q.next())P2(W.value,null);var x;((x=this.api.getVideoData())==null?0:x.S)&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});Fh.prototype.U3.call(this)};g.n(v2,Fh);v2.prototype.N=function(Q){return Q.compositeEmbargo!==void 0};
v2.prototype.U3=function(){Fh.prototype.U3.call(this);this.U.clear()};g.n(Fch,Fh);g.R=Fch.prototype;g.R.queueOfflineAction=function(Q,W,x,D){var K=this,l,M;return g.U(function(w){return w.B==1?(l=Uo(K.api.x6()))?g.A(w,l.Mw([Q],W,x,D),3):w.kf(2):w.B!=2&&(M=w.U,M.length)?w.return(M[0]):w.return(Promise.reject())})};
g.R.updateDownloadState=function(Q,W){var x=Uo(this.api.x6());return x?x.updateDownloadState(Q,W):Promise.reject()};
g.R.pauseVideoDownload=function(Q){var W=Uo(this.api.x6());W&&W.g9(Q)};
g.R.resumeVideoDownload=function(Q){var W=this,x;return g.U(function(D){return(x=Uo(W.api.x6()))?D.return(x.Ot(Q)):D.return(Promise.reject())})};
g.R.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
g.R.refreshAllStaleEntities=function(Q){Q===void 0&&(Q=14400);var W=Uo(this.api.x6());return W?W.refreshAllStaleEntities(Q):Promise.reject()};
g.R.setUpPositionSyncInterval=function(Q){var W=Uo(this.api.x6());W&&W.setUpPositionSyncInterval(Q)};g.n(Cg,Fh);Cg.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
Cg.prototype.getAvailableQualityData=function(){var Q=this.api.getVideoData();if(!Q)return[];var W=[],x,D,K=(x=Q.getPlayerResponse())==null?void 0:(D=x.playabilityStatus)==null?void 0:D.paygatedQualitiesMetadata;D=(K==null?void 0:K.qualityDetails)||[];x=new Map;x=g.r4(D)&&!Array.isArray(D)?new Map(Object.entries(D)):new Map(D.map(function(M){return[M.key,M.value]}));
if(D=K==null?void 0:K.restrictedAdaptiveFormats){K=[];D=g.V(D);for(var l=D.next();!l.done;l=D.next())l=l.value,l=l9(l.mimeType,l.quality,l.itag.toString(),l.width.toString(),l.height.toString(),l.qualityLabel),K.push(l);Q=g.R4(Q);nN(K);D=[];K=g.V(K);for(l=K.next();!l.done;l=K.next())l=l.value,oy(Q,l,this.api.C().L)===!0&&D.push(l);W=W.concat(t7a(D,!1,x))}Q=this.api.cR();W=W.concat(t7a(Q,!0,x));x=[];if(this.api.j("web_player_enable_premium_hbr_in_h5_api"))return W=WoD(W),QWO(W),W;Q={};W=g.V(W);for(K=
W.next();!K.done;K=W.next())K=K.value,D=K.quality,Q[D]||(K.formatId=void 0,x.push(K),Q[D]=!0);return x};var VI={},duC=(VI["internal-error"]=-1,VI["non-recoverable-error"]=-2,VI["api-disabled-by-application"]=-3,VI["invalid-argument"]=-4,VI["token-provider-invalid"]=-5,VI);g.n(JE,Fh);JE.prototype.Ma=function(Q){var W=this;if(DR5())if(!this.U&&this.B){jWa(this,Q);try{this.B.then(function(){loF(W,Q)},function(x){pg(x,"player_update");
W.handleError(x,Q)})}catch(x){pg(x,"player_update_catch"),this.handleError(x,Q)}}else this.U?loF(this,Q):this.api.qj("pf",{m:this.U?1:0,
p:this.B?1:0})};
JE.prototype.handleError=function(Q,W){g.Bp(Q);if(this.api.j("html5_enable_d6de4_cold_start_and_error")){var x=0;Q.mediaIntegrityErrorName?x||(x=duC[Q.mediaIntegrityErrorName]):Q.code&&(x=Q.code());W.hJ={zx3:{code:x}}}};g.n(hE,g.L);hE.prototype.Yf=function(Q){Q=Q?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":Q,title:Q});this.api.hA()};
hE.prototype.onClick=function(){this.api.togglePictureInPicture()};g.n(aJ,Fh);aJ.prototype.createButton=function(){var Q=this;this.button=new hE(this.api);g.y(this,this.button);this.api.yR(this.button);this.events.W(this.api,"videodatachange",function(){M32(Q)});
M32(this)};
aJ.prototype.setDocumentPictureInPicture=function(Q){this.api.fR().Oy(Q);Q=this.api.J4();var W=kwl(this.api.x6());W&&(Q?W.load():W.unload());this.api.publish("documentpictureinpicturechange")};g.n(RDF,Fh);g.n(ir,g.L);g.R=ir.prototype;g.R.wi=function(){};
g.R.dJ=function(){};
g.R.X9=function(){return!0};
g.R.K$j=function(){if(this.expanded){this.Pt.show();var Q=this.D.element.scrollWidth}else Q=this.D.element.scrollWidth,this.Pt.hide();this.Cn=this.eZ+Q;g.S$(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.eZ:this.Cn)+"px";this.I5.start()};
g.R.wK=function(){this.badge.element.style.width=(this.expanded?this.Cn:this.eZ)+"px";this.SZ.start()};
g.R.yG=function(){this.N&&this.J.logVisibility(this.badge.element,this.X9());this.uj&&this.J.logVisibility(this.dismissButton.element,this.X9()&&this.cq())};
g.R.Oz=function(Q){this.F3=Q;dd(this);GU(this);this.Vk()};
g.R.Z3f=function(){g.S$(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.R.cq=function(){return this.pS||this.F3||!this.S};
g.R.Vk=function(){this.X9()?this.T.show():this.T.hide();this.yG()};
g.R.xz=function(){this.enabled=!1;this.Vk()};
g.R.fF=function(Q){Q?this.uj&&this.J.logClick(this.dismissButton.element):this.N&&this.J.logClick(this.badge.element)};
g.R.VU3=function(){this.Vk()};
g.R.BE1=function(Q){this.fn=Q===1;this.Vk();g.S$(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.R.Gtj=function(){g.S$(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.Vk()};g.n(AE,g.ze);AE.prototype.Ei=function(){this.publish("size-change")};
AE.prototype.focus=function(){this.content.focus()};
AE.prototype.cB=function(){this.publish("back")};g.n(g.H2,AE);g.R=g.H2.prototype;g.R.XE=function(Q,W){if(W===void 0?0:W)this.items.push(Q),this.menuItems.element.appendChild(Q.element);else{W=g.wl(this.items,Q,Sy4);if(W>=0)return;W=~W;g.M3(this.items,W,0,Q);Ky(this.menuItems.element,Q.element,W)}Q.subscribe("size-change",this.TB,this);this.menuItems.publish("size-change")};
g.R.le=function(Q){Q.unsubscribe("size-change",this.TB,this);this.d7()||(g.Qn(this.items,Q),this.menuItems.element.removeChild(Q.element),this.menuItems.publish("size-change"))};
g.R.TB=function(){this.menuItems.publish("size-change")};
g.R.focus=function(){for(var Q=0,W=0;W<this.items.length;W++){var x=this.items[W].element;if(x.getAttribute("role")==="menuitemradio"){if(x.getAttribute("aria-checked")==="true"){Q=W;break}}else break}this.items[Q].focus()};
g.R.bW=function(){return this.items.length};g.n(g.qF,g.y0);g.R=g.qF.prototype;g.R.show=function(){g.y0.prototype.show.call(this);this.e7()};
g.R.hide=function(){g.y0.prototype.hide.call(this);this.B.length>1&&g.$q(this)};
g.R.e7=function(){zD5(this);this.md&&(bca(this),g.VM(this.element,this.size))};
g.R.tv=function(){var Q=this.B.pop();sWh(this,Q,this.B[this.B.length-1],!0)};
g.R.Tu=function(Q){if(!Q.defaultPrevented)switch(Q.keyCode){case 27:this.X0();Q.preventDefault();break;case 37:this.B.length>1&&this.tv();Q.preventDefault();break;case 39:Q.preventDefault()}};
g.R.focus=function(){this.B.length&&this.B[this.B.length-1].focus()};
g.R.U3=function(){g.y0.prototype.U3.call(this);this.X&&this.X.dispose();this.G&&this.G.dispose()};g.n(IJ,g.qF);IJ.prototype.open=function(Q,W){this.initialize(Q.items)&&this.jt(W,!!W)};
IJ.prototype.initialize=function(Q){g.UR(this.Ar);if(Q===void 0||Q.length===0)return!1;var W=Q.length;Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next())this.XE(x.value,W--);return!0};
IJ.prototype.XE=function(Q,W){Q.menuNavigationItemRenderer?ouQ(this,Q.menuNavigationItemRenderer,W):Q.menuServiceItemRenderer&&uOQ(this,Q.menuServiceItemRenderer,W)};g.n(m3,ir);g.R=m3.prototype;g.R.wi=function(Q){Q.target!==this.dismissButton.element&&Q.target!==this.overflowButton.element&&(this.fF(),this.onClickCommand&&this.J.Wt("innertubeCommand",this.onClickCommand))};
g.R.dJ=function(){this.enabled=!1;this.T.hide()};
g.R.X9=function(){return!!this.B&&this.enabled};
g.R.onVideoDataChange=function(Q,W){this.Fe(W);if(this.B){this.KD();a:if(!this.isCounterfactual){var x,D,K;this.banner.update({title:(x=this.B)==null?void 0:x.title,subtitle:(D=this.B)==null?void 0:D.subtitle,metadata:(K=this.B)==null?void 0:K.metadataText});var l;this.onClickCommand=g.e((l=this.B)==null?void 0:l.onTap,IG);var M;if(Q=g.e((M=this.B)==null?void 0:M.onOverflow,IG))this.G=g.e(Q,aXq);var w;if((w=this.B)==null?0:w.thumbnailImage){var S,b;M=((S=this.B)==null?void 0:(b=S.thumbnailImage)==
null?void 0:b.sources)||[];if(M.length===0)break a;this.thumbnailImage.update({url:M[0].url})}else{var z;if((z=this.B)==null?0:z.thumbnailIconName){var k;this.thumbnailIcon.update({icon:(k=this.B)==null?void 0:k.thumbnailIconName})}}var X;this.shouldShowOverflowButton=!((X=this.B)==null||!X.shouldShowOverflowButton);var u;this.shouldHideDismissButton=!((u=this.B)==null||!u.shouldHideDismissButton)}var Y;this.banner.element.setAttribute("aria-label",((Y=this.B)==null?void 0:Y.a11yLabel)||"");var v;
this.s3=(v=this.B)==null?void 0:v.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;nu5(this)}};
g.R.g3Z=function(){this.isVisible=!0;nu5(this)};
g.R.o31=function(){this.isVisible=!1;nu5(this)};
g.R.yG=function(){ir.prototype.yG.call(this);this.U&&this.J.logVisibility(this.banner.element,this.isVisible)};
g.R.fF=function(){ir.prototype.fF.call(this,!1);this.U&&this.J.logClick(this.banner.element)};
g.R.nz=function(Q){this.X||(this.X=new IJ(this.J),g.y(this,this.X));var W,x;if((W=this.G)==null?0:(x=W.menu)==null?0:x.menuRenderer)this.X.open(this.G.menu.menuRenderer,Q.target),Q.preventDefault()};
g.R.Fe=function(){};
g.R.KD=function(){};
g.R.U3=function(){this.J.jQ("suggested_action_view_model");ir.prototype.U3.call(this)};g.n(NF,m3);
NF.prototype.Fe=function(Q){var W,x,D;this.productUpsellSuggestedActionViewModel=g.e((W=Q.getWatchNextResponse())==null?void 0:(x=W.playerOverlays)==null?void 0:(D=x.playerOverlayRenderer)==null?void 0:D.suggestedActionViewModel,fXF);var K;if((K=this.productUpsellSuggestedActionViewModel)==null?0:K.content){var l;this.B=g.e((l=this.productUpsellSuggestedActionViewModel)==null?void 0:l.content,JmC)}var M,w;if(this.U=!!((M=this.productUpsellSuggestedActionViewModel)==null?0:(w=M.loggingDirectives)==null?
0:w.trackingParams)){var S,b;this.J.setTrackingParams(this.banner.element,((S=this.productUpsellSuggestedActionViewModel)==null?void 0:(b=S.loggingDirectives)==null?void 0:b.trackingParams)||null)}var z;this.isCounterfactual=!((z=this.productUpsellSuggestedActionViewModel)==null||!z.isCounterfactualServing)};
NF.prototype.KD=function(){var Q=[],W,x=g.V(((W=this.productUpsellSuggestedActionViewModel)==null?void 0:W.ranges)||[]);for(W=x.next();!W.done;W=x.next()){var D=W.value;D&&(W=Number(D.startTimeMilliseconds),D=Number(D.endTimeMilliseconds),isNaN(W)||isNaN(D)||Q.push(new g.jz(W,D,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.HV(Q)};g.n(V3F,Fh);g.n(c2,Fh);c2.prototype.onVideoDataChange=function(Q,W){var x=this;if(!Tr(W)&&(Q==="newdata"&&vuO(this),this.U&&Q==="dataloaded")){var D;u3(jQ(this.api.C(),(D=this.api.getVideoData())==null?void 0:g.ZM(D)),function(K){var l=aon(K);l&&(l=Cv2(x,x.B||l))&&x.api.setAudioTrack(l,!0);x.D&&(x.D=!1,dRF(x,K))})}};
c2.prototype.XZ=function(){var Q=this;if(g.dO(this.api.C())){var W,x=g.lb(this.api.C(),(W=this.api.getVideoData())==null?void 0:g.ZM(W));return u3(b3(x),function(D){var K=mh();Nf(K,D);return Q.api.XZ(K)})}return b3(this.api.XZ())};g.n(g.yh,g.rZ);g.R=g.yh.prototype;g.R.open=function(){g.B2(this.F0,this.U)};
g.R.ND=function(Q){ic4(this);var W=this.options[Q];W&&(W.element.setAttribute("aria-checked","true"),this.iy(this.VD(Q)),this.D=Q)};
g.R.ZV=function(Q){g.UR(this.U);for(var W={},x=!1,D=0;D<Q.length;D++){var K=Q[D],l=this.options[K],M=K===this.D;M&&(x=!0);l&&l.priority===-D?(g.Lq(this.options[K],this.VD(K,!0)),delete this.options[K]):l=this.f9(K,-D,M);W[K]=l;this.U.XE(l,!0)}x||(this.D=null);Q=g.V(Object.keys(this.options));for(x=Q.next();!x.done;x=Q.next())this.options[x.value].dispose();this.options=W};
g.R.f9=function(Q,W,x,D){var K=this;x={K:"div",lj:["ytp-menuitem",D?"ytp-menuitem-with-footer":""],Z:{tabindex:"0",role:"menuitemradio","aria-checked":x?"true":"false"},V:[{K:"div",lj:["ytp-menuitem-label"],m3:"{{label}}"}]};D&&(D={K:"div",Y:"ytp-menuitem-footer",V:[D]},x.V?x.V.push(D):x.V=[D]);W=new g.rZ(x,W,this.VD(Q,!0));W.listen("click",function(){K.Ri(Q)});
return W};
g.R.enable=function(Q){this.S?Q||(this.S=!1,this.xn(!1)):Q&&(this.S=!0,this.xn(!0))};
g.R.xn=function(Q){Q?this.F0.XE(this):this.F0.le(this)};
g.R.ZA=function(Q){this.publish("select",Q)};
g.R.Ri=function(Q){this.ZA(Q)};
g.R.VD=function(Q){return Q.toString()};
g.R.b2=function(Q){Q.defaultPrevented||Q.keyCode!==39||(this.open(),Q.preventDefault())};
g.R.U3=function(){this.S&&this.F0.le(this);g.rZ.prototype.U3.call(this);for(var Q=g.V(Object.keys(this.options)),W=Q.next();!W.done;W=Q.next())this.options[W.value].dispose()};g.n(Awn,g.yh);g.R=Awn.prototype;g.R.Yf=function(){var Q=this.t$("Off");this.J.getPresentingPlayerType()!==2?(Hcs(this),this.ND(this.X),this.B&&(this.X===Q?this.B="":this.setSleepTimerTimeLeft(this.B)),this.G&&this.setVideoTimeLeft(this.G),this.enable(!0)):(this.ZV([]),this.enable(!1))};
g.R.ZA=function(Q){UR5(this,Q);this.F0.tv()};
g.R.t$=function(Q){switch(Q){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(Q.toString()+" Minutes").toLowerCase()}};
g.R.onVideoDataChange=function(Q){Q==="dataloaded"&&Hcs(this)};
g.R.aGp=function(Q){this.J.logVisibility(this.element,Q)};
g.R.onClick=function(){this.J.logClick(this.element)};
g.R.resetSleepTimerMenuSettings=function(){UR5(this,this.t$("Off"))};
g.R.setSleepTimerTimeLeft=function(Q){this.B=Q;this.iy(Q)};
g.R.setVideoTimeLeft=function(Q){this.G=Q;this.N.iy(Q)};g.n(ey,Fh);ey.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
ey.prototype.setSleepTimerTimeLeft=function(Q){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(Q)};
ey.prototype.setVideoTimeLeft=function(Q){this.menuItem&&this.menuItem.setVideoTimeLeft(Q)};g.n(qyF,Fh);g.n(g.ZA,g.Rd);g.R=g.ZA.prototype;g.R.W=function(Q,W){this.N.W(this.S,Q,W,void 0,!this.B)};
g.R.cancel=function(){this.D&&(this.D=!1,this.publish("dragend",0,0,null));this.U&&(this.U=!1,this.publish("hoverend",0,0,null),Lg(this),fg(this))};
g.R.dh=function(Q){Lg(this);this.W(rd("move"),this.qh);this.W(rd("out"),this.FH);this.W("touchstart",this.H7);this.B&&this.W(rd("down"),this.Ii);var W=Q.target;Q=new g.k6(Q.pageX,Q.pageY);this.U=!0;this.publish("hoverstart",Q.x,Q.y,W);this.publish("hovermove",Q.x,Q.y,W)};
g.R.qh=function(Q){var W=Q.target;Q=new g.k6(Q.pageX,Q.pageY);if(this.L){var x=this.L;this.L=null;if(x.relatedTarget===W&&Xz(new g.k6(x.pageX,x.pageY),Q))return}this.publish("hovermove",Q.x,Q.y,W)};
g.R.FH=function(Q){var W=new g.k6(Q.pageX,Q.pageY),x=Q.relatedTarget;try{if(x&&g.jh(this.target,x)){this.L=Q;this.publish("hovermove",W.x,W.y,x);return}}catch(D){}Lg(this);fg(this);this.U=!1;this.publish("hoverend",W.x,W.y,x)};
g.R.wNf=function(Q){this.dh(Q);this.Ii(Q)};
g.R.Ii=function(Q){if(typeof Q.button!=="number"||Q.button===0){Lg(this);this.N.W(TU(Q.target),rd("move"),this.zw9);this.N.W(TU(Q.target),rd("up"),this.x8);var W=Q.target;if(g.O6)this.W("dragstart",this.L4);else if(Q.preventDefault(),(g.Q7||bq)&&W)a:{for(var x=W;x;){if(bRl(x)||x.getAttribute("tabindex")==="-1"){x.focus();break a}x=x.parentElement}TU(W).activeElement.blur()}this.D=!0;Q=new g.k6(Q.pageX,Q.pageY);this.publish("dragstart",Q.x,Q.y,W);this.publish("dragmove",Q.x,Q.y,W)}};
g.R.L4=function(Q){Q.preventDefault()};
g.R.zw9=function(Q){var W=Q.target;W===TU(Q.target)&&(W=null);Q=new g.k6(Q.pageX,Q.pageY);this.publish("hovermove",Q.x,Q.y,W);this.publish("dragmove",Q.x,Q.y,W)};
g.R.x8=function(Q){Lg(this);this.D=!1;var W=pw(Q),x=Q.target;Q=new g.k6(Q.pageX,Q.pageY);W&&g.jh(this.target,W)?(this.W(rd("move"),this.qh),this.W(rd("out"),this.FH),this.W(rd("down"),this.Ii),this.W("touchstart",this.H7),this.publish("dragend",Q.x,Q.y,x)):(fg(this),this.U=!1,this.publish("dragend",Q.x,Q.y,x),this.publish("hoverend",Q.x,Q.y,x))};
g.R.H7=function(Q){var W=Q.changedTouches[0];W&&(Lg(this),this.T||(this.W("touchmove",this.MUj),this.W("touchend",this.uE),this.W("touchcancel",this.uE),this.X=W.identifier,Q=Q.target,this.U||(this.U=!0,this.publish("hoverstart",W.pageX,W.pageY,Q)),this.publish("hovermove",W.pageX,W.pageY,Q),this.B&&(this.D=!0,this.publish("dragstart",W.pageX,W.pageY,Q),this.publish("dragmove",W.pageX,W.pageY,Q))))};
g.R.MUj=function(Q){var W=B_1(this,Q);W&&(this.B&&Q.preventDefault(),Q=Q.target,this.publish("hovermove",W.pageX,W.pageY,Q),this.B&&this.publish("dragmove",W.pageX,W.pageY,Q))};
g.R.uE=function(Q){var W=B_1(this,Q);if(W){Lg(this);fg(this);this.U=!1;var x=Q.target;this.B&&(this.G||Q.preventDefault(),this.D=!1,this.publish("dragend",W.pageX,W.pageY,x));this.publish("hoverend",W.pageX,W.pageY,x)}};
g.R.U3=function(){this.B&&(g.O6&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");Lg(this);g.Rd.prototype.U3.call(this)};
var $Rv=!1;g.n(Ioh,g.L);Ioh.prototype.TC=function(){g.SZ(this.element,"display","none");this.J.logVisibility(this.B,!1)};g.n(ER,Fh);ER.prototype.pS=function(Q,W){this.d7()||(this.S=[Q,W],this.B.subscribe("dragmove",this.X,this),this.B.subscribe("dragend",this.L,this),this.D||g.E3(this.delay))};
ER.prototype.fS=function(){if(this.N){this.D=!0;this.KS=this.api.getPlaybackRate();this.LS=this.api.getPlayerStateObject().isPaused();var Q=this.speedmasterUserEdu;g.SZ(Q.element,"display","");Q.J.logVisibility(Q.B,!0);this.api.setPlaybackRate(this.X3);this.api.hideControls();this.api.playVideo();this.G&&(this.G.XN=!0);this.uj&&(this.uj.HC=!0)}};
ER.prototype.X=function(Q,W){if(!this.D){Q=[Q,W];var x=this.S;x&&Q&&x.length===2&&Q.length===2?(W=Math.abs(x[0]-Q[0]),x=Math.abs(x[1]-Q[1]),W=Math.sqrt(W*W+x*x)):W=-1;W<this.F3?this.S=Q:Fr(this)}};
ER.prototype.L=function(){Fr(this)};g.n(N_D,Fh);N_D.prototype.onVideoDataChange=function(Q){Q==="newdata"&&this.api.x6().createSubtitlesModuleIfNeeded()};g.n(tE,g.Ux);tE.prototype.preventDefault=function(){g.Ux.prototype.preventDefault.call(this);this.B&&this.B.preventDefault()};
tE.prototype.stopPropagation=function(){g.Ux.prototype.stopPropagation.call(this);this.B&&this.B.stopPropagation()};g.n(g.Q1,Q4);g.R=g.Q1.prototype;g.R.E_=function(){return!0};
g.R.isView=function(){return!1};
g.R.b3=function(){return!1};
g.R.yh=function(){return this.B};
g.R.aj=function(){return this.B.src};
g.R.F8=function(Q){var W=this.getPlaybackRate();this.B.src=Q;this.setPlaybackRate(W)};
g.R.CX=function(){this.B.removeAttribute("src")};
g.R.getPlaybackRate=function(){try{return this.B.playbackRate>=0?this.B.playbackRate:1}catch(Q){return 1}};
g.R.setPlaybackRate=function(Q){this.getPlaybackRate()!==Q&&(this.B.playbackRate=Q);return Q};
g.R.q5=function(){return this.B.loop};
g.R.setLoop=function(Q){this.B.loop=Q};
g.R.canPlayType=function(Q,W){return this.B.canPlayType(Q,W)};
g.R.isPaused=function(){return this.B.paused};
g.R.isSeeking=function(){return this.B.seeking};
g.R.isEnded=function(){return this.B.ended};
g.R.xi=function(){return this.B.muted};
g.R.Uo=function(Q){$d();this.B.muted=Q};
g.R.gk=function(){return this.B.played||MN([],[])};
g.R.O4=function(){try{var Q=this.B.buffered}catch(W){}return Q||MN([],[])};
g.R.qe=function(){return this.B.seekable||MN([],[])};
g.R.jV=function(){var Q=this.B;return Q.getStartDate?Q.getStartDate():null};
g.R.getCurrentTime=function(){return this.B.currentTime};
g.R.setCurrentTime=function(Q){this.B.currentTime=Q};
g.R.getDuration=function(){return this.B.duration};
g.R.load=function(){var Q=this.B.playbackRate;try{this.B.load()}catch(W){}this.B.playbackRate=Q};
g.R.pause=function(){this.B.pause()};
g.R.play=function(){var Q=this.B.play();if(!Q||!Q.then)return null;Q.then(void 0,function(){});
return Q};
g.R.aI=function(){return this.B.readyState};
g.R.qF=function(){return this.B.networkState};
g.R.g1=function(){return this.B.error?this.B.error.code:null};
g.R.ZJ=function(){return this.B.error?this.B.error.message:""};
g.R.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.B instanceof window.HTMLVideoElement&&this.B.getVideoPlaybackQuality)return this.B.getVideoPlaybackQuality();if(this.B){var Q=this.B,W=Q.webkitDroppedFrameCount;if(Q=Q.webkitDecodedFrameCount)return{droppedVideoFrames:W||0,totalVideoFrames:Q}}return{}};
g.R.m$=function(){return!!this.B.webkitCurrentPlaybackTargetIsWireless};
g.R.hs=function(){return!!this.B.webkitShowPlaybackTargetPicker()};
g.R.togglePictureInPicture=function(){var Q=this.B,W=window.document;window.document.pictureInPictureEnabled?this.B!==W.pictureInPictureElement?Q.requestPictureInPicture():W.exitPictureInPicture():Bl()&&Q.webkitSetPresentationMode(Q.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
g.R.RX=function(){var Q=this.B;return new g.k6(Q.offsetLeft,Q.offsetTop)};
g.R.getSize=function(){return g.PR(this.B)};
g.R.setSize=function(Q){g.VM(this.B,Q)};
g.R.getVolume=function(){return this.B.volume};
g.R.setVolume=function(Q){$d();this.B.volume=Q};
g.R.X6=function(Q){this.L[Q]||(this.B.addEventListener(Q,this.listener),this.L[Q]=this.listener)};
g.R.setAttribute=function(Q,W){this.B.setAttribute(Q,W)};
g.R.removeAttribute=function(Q){this.B.removeAttribute(Q)};
g.R.hasAttribute=function(Q){return this.B.hasAttribute(Q)};
g.R.mF=xQ(60);g.R.Ee=xQ(62);g.R.vH=xQ(64);g.R.L9=xQ(66);g.R.Vl=function(){return nw(this.B)};
g.R.yu=function(Q){g.j$(this.B,Q)};
g.R.oZ=function(Q){return g.sB(this.B,Q)};
g.R.XK=function(){return g.jh(document.body,this.B)};
g.R.audioTracks=function(){var Q=this.B;if("audioTracks"in Q)return Q.audioTracks};
g.R.U3=function(){for(var Q=g.V(Object.keys(this.L)),W=Q.next();!W.done;W=Q.next())W=W.value,this.B.removeEventListener(W,this.L[W]);Q4.prototype.U3.call(this)};
g.R.gD=function(Q){this.B.disableRemotePlayback=Q};g.n(WH,g.L);g.n(Dh,g.L);Dh.prototype.show=function(){g.L.prototype.show.call(this);this.Yf();this.G1.j("html5_enable_moving_s4n_window")&&g.dO(this.G1.C())&&this.S()};
Dh.prototype.hide=function(){g.L.prototype.hide.call(this);this.delay.stop();this.N.stop()};
Dh.prototype.Yf=function(){var Q=(0,g.a8)(),W=gu1(this.G1);xI(this.B,W.bandwidth_samples);xI(this.G,W.network_activity_samples);xI(this.D,W.live_latency_samples);xI(this.U,W.buffer_health_samples);var x={};W=g.V(Object.entries(W));for(var D=W.next();!D.done;D=W.next()){var K=g.V(D.value);D=K.next().value;K=K.next().value;this.T[D]!==K&&(x[D]=" "+String(K));this.T[D]=K}this.update(x);Q=(0,g.a8)()-Q>25?5E3:500;this.delay.start(Q)};
Dh.prototype.S=function(){this.X?(this.position+=1,this.position>15&&(this.X=!1)):(--this.position,this.position<=0&&(this.X=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.N.start(2E4)};g.n(fov,Fh);g.n(KM,g.N);KM.prototype.B=function(){var Q=(0,g.a8)()-this.startTime;Q=Q<this.duration?Q/this.duration:1;this.U(vg(iRu,Q));Q<1&&this.delay.start()};
var iRu=new Pg(0,0,.4,0,.2,1,1,1),Eus=/[0-9.-]+|[^0-9.-]+/g;g.n(lX,g.L);lX.prototype.onClick=function(){var Q=this.api.app;var W=Q.j("web_log_theater_mode_visibility")?!Q.cz():!Q.ej;Q.G1.Wt("SIZE_CLICKED",W);this.api.logClick(this.element)};
lX.prototype.Yf=function(){this.hO(this.api.rU()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.md){var Q=this.api.cz();this.cz!==Q&&this.No(Q)}this.api.logVisibility(this.element,this.md)};
lX.prototype.No=function(Q){var W=Q?{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Z:{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"}}]}:{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Z:{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.cz==null?this.updateValue("icon",W):Och(this.transition,this.element,
W);this.cz=Q;W=g.pq(this.api,"Default view","t");var x=g.pq(this.api,"Theater mode","t");this.updateValue("title",Q?W:x);this.update({"data-title-no-tooltip":Q?"Default view":"Theater mode"});this.api.hA()};g.n(Fo2,Fh);g.n(xvn,Fh);g.R=xvn.prototype;g.R.onVideoDataChange=function(Q){this.RI();this.videoId=Q.videoId;this.U=this.B=void 0;this.timelyActions=Q7Q(Q);Dvv(this);this.clearTimeout();this.HV()};
g.R.qD=function(Q){var W=Q.oldState,x=Q.state,D=x.seekSource;!g.r(W,16)&&g.r(x,16)?this.Bb(D!=null?D:void 0):g.r(W,16)&&!g.r(x,16)&&this.p8();Q=Q.state;Q=!Q.isCued()&&!g.r(Q,1024);this.D.hO(Q)};
g.R.HV=function(){var Q=this.Jv();Q&&this.api.HV(Q)};
g.R.RI=function(){this.api.jQ("timelyAction",1);if(this.B!==void 0)this.onCueRangeExit(this.B)};
g.R.Jv=function(){if(this.timelyActions){for(var Q=[],W=g.V(this.timelyActions),x=W.next();!x.done;x=W.next())x=x.value,x=x.startTimeMilliseconds!=null&&x.endTimeMilliseconds!=null&&x.cueRangeId!=null?new g.jz(Number(x.startTimeMilliseconds),Number(x.endTimeMilliseconds),{id:x.cueRangeId,namespace:"timelyAction"}):void 0,x&&Q.push(x);return Q}};
g.R.onCueRangeEnter=function(Q){var W=j7(this,Q);W&&this.N[Q]!==void 0&&(W.maxShowCount===void 0||(W==null?void 0:W.maxShowCount)>this.N[Q])&&(this.B=Q,l$n(this))};
g.R.onCueRangeExit=function(Q){var W=K1n(this,Q);W&&this.B===Q&&this.api.Wt("innertubeCommand",W);this.clearTimeout();this.B=void 0};
g.R.onTimeout=function(Q){this.B!==void 0&&(Q==null?void 0:Q.cueRangeId)===this.B&&(Q=K1n(this,this.B))&&this.api.Wt("innertubeCommand",Q)};
g.R.Bb=function(Q){this.U=Q};
g.R.p8=function(){l$n(this);this.U=void 0};
g.R.setTimeout=function(Q){var W=this,x=Number(Q==null?void 0:Q.maxVisibleDurationMilliseconds);x&&(this.clearTimeout(),this.L=setTimeout(function(){W.onTimeout(Q)},x))};
g.R.clearTimeout=function(){this.L&&clearTimeout(this.L);this.L=void 0;this.G=!1};
g.R.U3=function(){this.timelyActions=this.U=this.B=this.videoId=void 0;this.N={};this.RI();this.clearTimeout();Fh.prototype.U3.call(this)};g.n(Rk5,Fh);var PA={},n3Q=(PA[1]="pot_ss",PA[2]="pot_sf",PA[3]="pot_se",PA[4]="pot_xs",PA[5]="pot_xf",PA[6]="pot_xe",PA),VAa=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.n(we,Fh);we.prototype.U3=function(){this.X&&(g.nl(this.X),this.X=void 0);Fh.prototype.U3.call(this)};
we.prototype.I8=function(){(this.B?!this.B.isReady():this.U)&&bX(this)};
we.prototype.vK=function(Q,W,x){var D=this;if(SDa(Q)){var K=x||"",l;if((l=this.B)==null?0:l.isReady())W=so(this,K),b7z(Q,W);else{var M=new g.XT;W.push(M.promise);this.N.promise.then(function(){var w=so(D,K);b7z(Q,w);M.resolve()})}}};
we.prototype.Ye=function(Q){var W=this;if(this.B||this.U)Q.OF=so(this,Q.videoId),this.B&&!this.B.isReady()&&(this.D=new th,this.N.promise.then(function(){W.Qh.U4("pot_if");Q.OF=so(W,Q.videoId)}))};g.n(v3v,Fh);g.n(zZ,g.N);zZ.prototype.B=function(){for(var Q=g.V(g.i2.apply(0,arguments)),W=Q.next();!W.done;W=Q.next())(W=W.value)&&this.features.push(W)};
zZ.prototype.U3=function(){for(var Q=this.features.length-1;Q>=0;Q--)this.features[Q].dispose();this.features.length=0;g.N.prototype.U3.call(this)};kI.prototype.LH=function(){this.U=(0,g.a8)()};
kI.prototype.reset=function(){this.B=this.U=NaN};
kI.prototype.r6=function(Q,W){if(Q.clientPlaybackNonce&&!isNaN(this.B)){if(Math.random()<.01){W=W?"pbp":"pbs";var x={startTime:this.B};Q.X&&(x.cttAuthInfo={token:Q.X,videoId:Q.videoId});gK("seek",x);g.co({clientPlaybackNonce:Q.clientPlaybackNonce},"seek");isNaN(this.U)||Nc("pl_ss",this.U,"seek");Nc(W,(0,g.a8)(),"seek")}this.reset()}};g.R=CD4.prototype;g.R.reset=function(){$n(this.timerName)};
g.R.tick=function(Q,W){Nc(Q,W,this.timerName)};
g.R.U4=function(Q){return eP(Q,this.timerName)};
g.R.ax=function(Q){Gp(Q,void 0,this.timerName)};
g.R.infoGel=function(Q){g.co(Q,this.timerName)};g.n(a$z,g.Rd);g.R=a$z.prototype;g.R.EG=function(Q){return this.loop||!!Q||this.index+1<this.length};
g.R.y_=function(Q){return this.loop||!!Q||this.index-1>=0};
g.R.setShuffle=function(Q){this.shuffle=Q;Q=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var W=0;W<this.items.length;W++)this.order.push(W);this.index=Q;this.U++;if(this.shuffle){Q=this.order[this.index];for(W=1;W<this.order.length;W++){var x=Math.floor(Math.random()*(W+1)),D=this.order[W];this.order[W]=this.order[x];this.order[x]=D}for(W=0;W<this.order.length;W++)this.order[W]===Q&&(this.index=W);this.U++}this.publish("shuffle")};
g.R.ue=function(Q){Q=Q||"hqdefault.jpg";var W=this.T[Q];if(W||this.Dp.pS||Q==="sddefault.jpg"||Q==="hq720.jpg"||Q==="maxresdefault.jpg")return W;if(this.D.length)return LO(this.Dp,this.D[0],Q)};
g.R.getLength=function(){return this.length};
g.R.findIndex=function(Q){if(Q&&(Q=Q.videoId,!this.items[this.index]||this.items[this.index].video_id!==Q))for(var W=0;W<this.items.length;W++)if(this.items[W].video_id===Q){this.index=W;break}};
g.R.onReady=function(Q){this.B=Q;this.loaded&&g.oc(this.B,0)};
g.R.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.R.lk=function(){return this.Dp.getVideoUrl(g.uX(this).videoId,this.getPlaylistId())};
g.R.U3=function(){this.B=null;g.Sp(this.items);g.Rd.prototype.U3.call(this)};var YI=new Map;g.n(g.V1,g.Rd);g.R=g.V1.prototype;g.R.create=function(){};
g.R.load=function(){this.loaded=!0};
g.R.unload=function(){this.loaded=!1};
g.R.AA=function(){};
g.R.AX=function(){return!0};
g.R.U3=function(){this.loaded&&this.unload();g.Rd.prototype.U3.call(this)};
g.R.AO=function(){return{}};
g.R.getOptions=function(){return[]};g.n(g.vH,g.N);g.R=g.vH.prototype;g.R.TL=xQ(69);g.R.Di=function(){};
g.R.UX=function(){};
g.R.ON=function(){return""};
g.R.R_=xQ(70);g.R.vK=function(Q,W){var x=this;if(this.G1.C().j("html5_dispatch_tracklist_loaded_event")){this.N&&(this.N.reject(),this.N=null);var D=[];this.G1.publish("trackListLoaded",this.U,D,W);D.length?(W=new g.XT,W.promise.then(Q.vK,function(){}),this.N=W,Promise.all(D).then(W.resolve,W.reject).finally(function(){x.N=null})):Q.vK()}else Q.vK()};
g.R.uV=function(){};
g.R.U3=function(){this.N&&(this.N.reject(),this.N=null);this.UX();g.N.prototype.U3.call(this)};g.n(g.CM,g.vH);g.CM.prototype.TL=xQ(68);g.CM.prototype.Di=function(Q){if(this.audioTrack)for(var W=g.V(this.audioTrack.captionTracks),x=W.next();!x.done;x=W.next())g.PH(this.U,x.value);this.vK(Q,this.videoData.videoId)};
g.CM.prototype.ON=function(Q,W){var x=Q.cV(),D={fmt:W};if(W==="srv3"||W==="3"||W==="json3")g.fl()?Object.assign(D,{xorb:2,xobt:1,xovt:1}):Object.assign(D,{xorb:2,xobt:3,xovt:3});Q.translationLanguage&&(D.tlang=g.ub(Q));this.D&&(D.xosf="1");Object.assign(D,this.G1.C().B);return jL(x,D)};
g.CM.prototype.UX=function(){this.B&&this.B.abort()};g.AjY=new Map;g.n(g.pM,g.vH);g.pM.prototype.TL=xQ(67);
g.pM.prototype.Di=function(Q){var W=this,x=this.D,D={type:"list",tlangs:1,v:this.videoId,vssids:1};this.Sg&&(D.asrs=1);x=jL(x,D);this.UX();this.B=g.hS(x,{format:"RAW",onSuccess:function(K){W.B=null;if((K=K.responseXML)&&K.firstChild){for(var l=K.getElementsByTagName("track"),M=0;M<l.length;M++){var w=l[M],S=w.getAttribute("lang_code"),b=w.getAttribute("lang_translated"),z=w.getAttribute("name"),k=w.getAttribute("kind"),X=w.getAttribute("id"),u=w.getAttribute("lang_default")==="true",Y=w.getAttribute("cantran")===
"true";w=w.getAttribute("vss_id");g.PH(W.U,new g.kS({languageCode:S,languageName:b,name:z,kind:k,id:X,is_servable:!0,is_translateable:Y,vss_id:w,is_default:u}))}K=K.getElementsByTagName("target");l=K.length;for(M=0;M<l;M++)S={languageCode:K[M].getAttribute("lang_code"),languageName:K[M].getAttribute("lang_translated"),languageOriginal:K[M].getAttribute("lang_original"),id:K[M].getAttribute("id"),isDefault:K[M].getAttribute("lang_default")==="true"},W.X[S.languageCode]=S.languageName,W.L.push(S)}W.vK(Q,
W.videoId)},
withCredentials:!0})};
g.pM.prototype.ON=function(Q,W){var x=this.D;W={v:this.videoId,type:"track",lang:Q.languageCode,name:Q.getName(),kind:Q.kind,fmt:W};var D=this.G1.C();D.j("captions_url_add_ei")&&(W.ei=this.eventId);Q.translationLanguage&&(W.tlang=g.ub(Q));Object.assign(W,D.B);return x=jL(x,W)};
g.pM.prototype.UX=function(){this.B&&this.B.abort()};NH1.prototype.D=function(){for(var Q=g.i2.apply(0,arguments),W=this,x=kv("empty"),D=[],K={Jh:0};K.Jh<this.U.length&&x.currentState!=="done";K={c8:void 0,Jh:K.Jh},K.Jh++)K.c8=this.U[K.Jh],K.c8.condition.apply(K.c8,g.C(Q))&&(x=Yv(Yv(x,function(l){return function(){if(!l.c8.condition.apply(l.c8,g.C(Q)))throw"condition failed";var M=l.c8.Qr.apply(l.c8,g.C(Q));return W.B===void 0||W.B===null?M:u3(b3(M),function(w){if(!W.B.apply(W,[w].concat(g.C(Q))))throw"verification failed";return w})}}(K)),function(l){return function(M){M!==
"empty"&&M!=="condition failed"&&M!=="verification failed"&&M!=="error"&&(l.c8.onFailure&&l.c8.onFailure.apply(l.c8,[M].concat(g.C(Q))),W.onFailure&&W.onFailure.apply(W,[M,
l.Jh,l.c8].concat(g.C(Q))),D.push(M));throw"error";}}(K)));
return Yv(x,function(){return kv(D)})};ag.prototype.preload=function(Q){Q=Q?ckF(this.capabilities,Q):this.capabilities;return Q.n_?u3(eks(this,Q),function(){}):b3()};
ag.prototype.compile=function(Q){return Yv(this.L.D(Q),function(W){throw Error("wasm module compile failure: "+W.map(function(x){return x.message}).join(", "),{cause:W});
})};
ag.prototype.instantiate=function(Q,W){return Yv(this.X.D(Q,W),function(x){throw Error("wasm module instantiation failure: "+x.map(function(D){return D.message}).join(", "),{cause:x});
})};rkF.prototype.emscripten_notify_memory_growth=function(){};var f$4;g.R=O75.prototype;g.R.malloc=function(Q){return this.B.malloc(Q)};
g.R.free=function(Q){this.B.free(Q)};
g.R.realloc=function(Q,W){return this.B.realloc(Q,W)};
g.R.oF=function(Q){if(Q.buffer!==this.exports.memory.buffer){var W=this.malloc(Q.byteLength);W=new Uint8Array(this.exports.memory.buffer,W,Q.byteLength);W.set(Q);return W}};
g.R.ym=function(Q){if(Q.buffer===this.exports.memory.buffer){var W=Q.slice();this.free(Q.byteOffset);return W}};
var G9l="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);hJ.oO(O75,{oF:function(Q){return{profile:"copyj2w",Ny:Q===void 0?0:Math.ceil(Q.byteLength/16)}},
ym:function(Q){return{profile:"copyw2j",Ny:Q===void 0?0:Math.ceil(Q.byteLength/16)}}});g.n(tA1,g.N);g.R=tA1.prototype;g.R.createSubtitlesModuleIfNeeded=function(){DKF(this)&&de(this,"captions");return!!g.GZ(this)};
g.R.Wp=function(){return g.TQ(this.J.getVideoData())&&!this.J.QM().D};
g.R.m5=function(){return this.J.getVideoData().m5()};
g.R.OA=function(){return this.J.getVideoData().OA()};
g.R.Zs=function(){var Q=this.CZ.get("heartbeat");de(this,"heartbeat",!1,!0,this.Zs);!Q&&this.CZ.has("heartbeat")&&this.J.publish("offlineslatestatechange")};
g.R.NE=function(){de(this,"annotations_module",!0,void 0,this.NE);var Q=this.CZ.get("annotations_module");if(Q)for(var W in this.D)if(this.D.hasOwnProperty(W)){var x=W;Q.subscribe(x,this.D[x])}};
g.R.ac=function(){if(!this.CZ.get("ad"))try{QiQ(this)?de(this,"ad",!1,!0,this.ac):this.J.BI("ad")}catch(Q){this.J.BI("ad"),g.ql(Q)}};
g.R.v3=function(){return this.U};
g.R.Hr=function(){var Q={},W=g.GZ(this);W&&Object.assign(Q,W.Hr());return Q};
g.R.Vs=function(Q,W){Object.assign(this.U,Q||null);Object.assign(this.fO,W||null)};
g.R.onVideoDataChange=function(){var Q=this.J.getVideoData();this.J.j("enable_wn_infocards")&&g.qJ(Q)&&!g.qt(this)&&this.NE()};
g.R.U3=function(){g.N.prototype.U3.call(this);iX(this,1,!0);for(var Q=g.V(Object.entries(u$4)),W=Q.next();!W.done;W=Q.next()){var x=g.V(W.value);W=x.next().value;x=x.next().value;this.N.has(x)&&YI.delete(W)}this.N.clear()};
var vA={},u$4=(vA.ad="ad.js",vA.annotations_module="annotations_module.js",vA.asmjs="asmjs.js",vA.creatorendscreen="annotations_module.js",vA.embed="embed.js",vA.endscreen="endscreen.js",vA.heartbeat="heartbeat.js",vA.kids="kids.js",vA.remote="remote.js",vA.miniplayer="miniplayer.js",vA.offline="offline.js",vA.captions="captions.js",vA.unplugged="unplugged.js",vA.ux="ux.js",vA.webgl="webgl.js",vA.ypc="ypc.js",vA.ypc_clickwrap="ypc_clickwrap.js",vA.yto="yto.js",vA),si4="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.n(nyl,g.Rd);g.R=nyl.prototype;g.R.qZ=function(Q){Q=new g.k6(Q.pageX,Q.pageY);if(!Xz(Q,this.N)){var W=2;this.X&&(W|=8);this.N=Q;$I(this,W,!0)}};
g.R.Mk9=function(){this.X&&$I(this,8,!0);$I(this,2,!1)};
g.R.dh=function(Q){var W=new g.k6(Q.pageX,Q.pageY);Xz(W,this.N)||(this.N=W,(Q=Q.target)&&this.pO(Q)&&($I(this,4,!0),this.B.mJ(this.D),this.D=this.B.W(this.target,"mouseover",this.FH),this.G=this.B.W(this.target,"mouseout",this.FH)))};
g.R.FH=function(Q){Q=Q.relatedTarget;Q&&this.pO(Q)||(this.N=new g.k6(NaN,NaN),Vvs(this))};
g.R.nfj=function(){$I(this,1,!0)};
g.R.Uj=function(Q){Q=Q.target;Q instanceof Element&&!(Q.tabIndex>0)||$I(this,1,!0)};
g.R.BJ=function(){this.X=!0;this.B.mJ(this.L);this.L=this.B.W(document,"mouseup",this.u2)};
g.R.u2=function(){this.X=!1;$I(this,8,!1);this.B.mJ(this.L);this.L=this.B.W(this.target,"mousedown",this.BJ)};
g.R.UD=function(Q){if(Q=(Q=Q.changedTouches)&&Q[0])this.F3=Q.identifier,this.B.mJ(this.S),this.S=this.B.W(this.target,"touchend",this.pW,void 0,!0),$I(this,1024,!0)};
g.R.pW=function(Q){if(Q=Q.changedTouches)for(var W=0;W<Q.length;W++){var x=Q[W];if(x.identifier===this.F3){var D=x;break}}D&&(this.B.mJ(this.S),this.S=this.B.W(this.target,"touchstart",this.UD,void 0,!0),$I(this,1024,!1))};
g.R.Z7=function(){$I(this,2,!0)};
g.R.resize=function(){g.UC&&Vvs(this)};
g.R.toString=function(){return g.Rd.prototype.toString.call(this)};g.n(g.mc,g.L);g.R=g.mc.prototype;g.R.aB3=function(){this.Yf()};
g.R.Yf=function(){var Q=this.api.getVideoData(),W=this.api.C(),x=!!this.api.isEmbedsShortsMode();g.S$(this.element,"ytp-shorts-mode",x);x?W=[{K:"svg",Z:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},V:[{K:"path",Z:{"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"}},{K:"path",Z:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.xW(Q)?W=[{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},V:[{K:"path",Y:"ytp-dni-large-play-button-bg",Z:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{K:"path",Z:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:Q.HZ&&Q.hx?W=[{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{K:"path",Y:"ytp-dni-large-play-button-bg",
Z:{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"}},{K:"path",Z:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:W.X?(g.S$(this.element,"ytp-touch-device",W.U),W=[W.X?{K:"svg",Z:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},V:[{K:"path",Y:"ytp-large-play-button-bg",Z:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{K:"path",Z:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{K:"path",Y:"ytp-large-play-button-bg",Z:{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"}},{K:"path",Z:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):W=[{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{K:"path",Y:"ytp-large-play-button-bg",Z:{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:"#f03"}},{K:"path",Z:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",W);Q.HZ&&Q.hx&&this.Nj("ytp-dni-large-play-button-bg").setAttribute("fill",Q.hx?Q.hx:"#1f1f1f")};
g.R.show=function(){g.L.prototype.show.call(this);this.api.C().j("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
g.R.ptf=function(){this.api.getVideoData().mutedAutoplay||(this.api.xT(),this.api.playVideo())};
g.R.SQ9=function(Q){this.api.getVideoData().mutedAutoplay||Q.preventDefault()};g.n(g.Nt,g.L);g.R=g.Nt.prototype;g.R.show=function(){var Q=this;this.md||(this.N.W(this.api,"videodatachange",function(){g.E3(Q.B)}),this.N.W(this.api,"videoplayerreset",function(){g.E3(Q.B)}));
g.L.prototype.show.call(this)};
g.R.hide=function(){this.N&&g.d3(this.N);g.L.prototype.hide.call(this)};
g.R.OV=function(){g.E3(this.B)};
g.R.onStateChange=function(){g.E3(this.B)};
g.R.vXj=function(){g.E3(this.B)};
g.R.onReset=function(){this.U.stop();this.hide();g.E3(this.B)};
g.R.Yf=function(){var Q=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(Q.isPlaying()||Q.isPaused()))var W=!0;else(W=this.api.x6().CZ.get("ypc"))&&W.y3?W=!0:(W=this.api.C(),W=g.r(Q,2)&&g.aN(this.api)&&W.jE?!0:!1);W?(W=!0,this.D.hide()):this.api.j("web_player_show_frame_zero_when_cued")&&Pk1(this)?(W=!0,this.D.hide()):(this.D.show(),W=Q.isCued()&&this.api.getPresentingPlayerType()!==2||g.r(Q,2)&&!g.aN(this.api)&&!this.api.mS()||g.r(Q,1024)?!0:!1);var x=this.api.getVideoData();
W&&!x.JH?(this.U.show(),this.xDt(this.api.getPlaylist(),x)):(this.U.hide(),g.r(Q,1)||this.U.stop())};
g.R.xDt=function(){var Q=g.i2.apply(0,arguments),W=this.api.C(),x,D=(x=this.api.getVideoData())==null?void 0:x.videoId;if(W.j("web_player_show_frame_zero_when_cued")&&D&&Pk1(this))var K="https://i.ytimg.com/vi/"+D+"/frame0.jpg";else for(Q=g.V(Q),x=Q.next();!x.done;x=Q.next())if(x=x.value,!(!x||x instanceof g.f1&&!x.videoId)){K=this.api.hf().getPlayerSize();var l=g.OT();D=K.width*l;l*=K.height;if(D>1280||l>720)if(K=x.ue("maxresdefault.jpg"))break;if(D>640||l>480)if(K=x.ue("maxresdefault.jpg"))break;
if(D>320||l>180)if(K=x.ue("sddefault.jpg")||x.ue("hqdefault.jpg")||x.ue("mqdefault.jpg"))break;if(K=x.ue("default.jpg"))break}g.tC(W)&&(W=new Image,W.addEventListener("load",function(){buF()}),W.src=K?K:"",this.api.v3().tick("ftr"));
this.X.style.backgroundImage=K?"url("+K+")":""};g.n(g.cH,g.L);g.cH.prototype.resize=function(){};
g.cH.prototype.U=function(Q){var W=this;this.D=!1;JT2(this);var x=Q.Ev,D=this.api.C();x!=="GENERIC_WITHOUT_LINK"||D.X?x==="TOO_MANY_REQUESTS"?(D=this.api.getVideoData(),this.iy(e7(this,"TOO_MANY_REQUESTS_WITH_LINK",D.lk(),void 0,void 0,void 0,!1))):x!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||D.X?this.api.C().j("html5_enable_bandaid_error_screen")&&x==="HTML5_SPS_UMP_STATUS_REJECTED"&&!D.X?(D=D.hostLanguage,Q="//support.google.com/youtube?p=videoError",D&&(Q=g.ya(Q,{hl:D})),this.iy(e7(this,"HTML5_SPS_UMP_STATUS_REJECTED",
Q))):this.api.C().j("enable_adb_handling_in_sabr")&&x==="BROWSER_OR_EXTENSION_ERROR"&&!D.X?(D=D.hostLanguage,Q="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",D&&(Q=g.ya(Q,{hl:D})),this.iy(e7(this,"BROWSER_OR_EXTENSION_ERROR",Q))):this.iy(g.ge(Q.errorMessage)):this.iy(e7(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(Q=D.hostLanguage,x="//support.google.com/youtube/?p=player_error1",Q&&(x=g.ya(x,
{hl:Q})),this.iy(e7(this,"GENERIC_WITH_LINK_AND_CPN",x,!0)),D.Sk&&!D.N&&Ck2(this,function(l){if(g.Md(l,W.api,!r5(W.api.C()))){l={as3:!1,html5:!0,player:!0,cpn:W.api.getVideoData().clientPlaybackNonce};var M=W.api;M.WD("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:l});M.isFullscreen()&&M.toggleFullscreen()}}));
if(this.D){var K=this.Nj("ytp-error-link");K&&(this.api.createClientVe(K,this,216104),this.api.logVisibility(K,!0),Ck2(this,function(){W.api.logClick(K)}))}};
var vyO=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.n(p8l,g.L);g.R=p8l.prototype;g.R.onClick=function(Q){this.innertubeCommand?(this.J.Wt("innertubeCommand",this.innertubeCommand),Q.preventDefault()):g.Md(Q,this.J,!0);this.J.logClick(this.element)};
g.R.onVideoDataChange=function(Q,W){aY2(this,W);this.WV&&Gwn(this,this.WV)};
g.R.Bu=function(Q){var W=this.J.getVideoData();this.videoId!==W.videoId&&aY2(this,W);this.B&&Gwn(this,Q.state);this.WV=Q.state};
g.R.jt=function(){this.N.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)};
g.R.X0=function(){this.N.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.n(fM,g.L);fM.prototype.hide=function(){this.B.stop();this.message.style.display="none";g.L.prototype.hide.call(this)};
fM.prototype.onStateChange=function(Q){this.wE(Q.state)};
fM.prototype.wE=function(Q){(g.r(Q,128)||this.api.Vf()?0:g.r(Q,16)||g.r(Q,1))?this.B.start():this.hide()};
fM.prototype.U=function(){this.message.style.display="block"};g.n(Zh,g.y0);Zh.prototype.onMutedAutoplayChange=function(Q){this.D&&(Q?(dKh(this),this.jt()):(this.B&&this.logClick(),this.X0()))};
Zh.prototype.qD=function(Q){this.api.isMutedByMutedAutoplay()&&g.XV(Q,2)&&this.X0()};
Zh.prototype.onClick=function(){this.api.unMute();this.logClick()};
Zh.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.n(g.LM,g.I0);g.R=g.LM.prototype;g.R.init=function(){var Q=this.api,W=Q.getPlayerStateObject();this.eC=Q.getPlayerSize();this.q7(W);this.uT();this.OV();this.api.publish("basechromeinitialized",this);this.rN()&&this.api.publish("standardControlsInitialized")};
g.R.onVideoDataChange=function(Q,W){var x=this.DO!==W.videoId;if(x||Q==="newdata"){Q=this.api;Q.isFullscreen()||(this.eC=Q.getPlayerSize());var D;((D=this.api.getVideoData(1))==null?0:g.TQ(D))&&this.qz()}x&&(this.DO=W.videoId,x=this.s4,x.KS=3E3,$I(x,512,!0),this.uT());this.api.j("web_render_jump_buttons")&&W.showSeekingControls&&(this.YZ=572)};
g.R.BP3=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.R.fC=function(){var Q=this.api.Vx()&&this.api.Rn(),W=this.api.Me();return this.hc||Q||this.Z4||W};
g.R.qz=function(){var Q=!this.fC();g.S$(this.api.getRootNode(),"ytp-menu-shown",!Q);var W;((W=this.api.getVideoData(1))==null?0:g.TQ(W))&&g.S$(this.api.getRootNode(),"ytp-hide-controls",!Q)};
g.R.pO=function(Q){try{if(!g.jh(this.api.getRootNode(),Q))return!1}catch(W){return!1}for(;Q&&!bRl(Q);)Q=Q===this.api.getRootNode()?null:Q.parentElement||null;return!!Q};
g.R.Qn=function(Q){var W=this.api.getRootNode();g.S$(W,"ytp-autohide",Q);g.S$(W,"ytp-autohide-active",!0);this.cG.start(Q?250:100);Q&&(this.wj=!1,g.Rr(W,"ytp-touch-mode"));this.SY=!Q;this.api.UF(!Q)};
g.R.d6=function(){var Q=this.api.getRootNode();g.S$(Q,"ytp-autohide-active",!1)};
g.R.IG3=function(){this.Lc=!0};
g.R.ROp=function(Q){if(this.api.C().j("player_doubletap_to_seek")||this.api.C().S)this.Lc=!1,this.Eh&&this.mJ(this.Eh),this.sC===0&&TZ(this,Q)?(this.TD(),this.gt.start(),this.Eh=this.W(this.api.hf(),"touchmove",this.IG3,void 0,!0)):this.gt.stop();UK2(this)&&TZ(this,Q)&&!this.api.C().S&&AT5(this);var W=this.o8.J_();if(!g.d5(this.api.C())&&hC&&qzD(this,Q))W&&Q.preventDefault();else if(this.wj=!0,g.j$(this.api.getRootNode(),"ytp-touch-mode"),this.s4.Z7(),this.api.C().j("player_doubletap_to_seek")||this.api.C().S)if(W=
this.api.getPlayerStateObject(),!(!this.api.Fi()||g.r(W,2)&&g.aN(this.api)||g.r(W,64))){W=Date.now()-this.vQ;this.sC+=1;if(W<=350){this.Hv=!0;W=this.api.getPlayerSize().width/3;var x=this.api.getRootNode().getBoundingClientRect(),D=Q.targetTouches[0].clientX-x.left;x=Q.targetTouches[0].clientY-x.top;var K=(this.sC-1)*10;D>0&&D<W?(this.eF(-1,D,x,K),this.api.seekBy(-10*this.api.getPlaybackRate())):D>W*2&&D<W*3&&(this.eF(1,D,x,K),this.api.seekBy(10*this.api.getPlaybackRate()));Q.preventDefault()}else Ig&&
this.api.C().S&&TZ(this,Q)&&Q.preventDefault();this.vQ=Date.now();this.tP.start()}};
g.R.MQ3=function(){this.du.XN=!1;this.api.publish("rootnodemousedown",this.du)};
g.R.eO7=function(Q){if(this.api.C().j("web_fix_fine_scrubbing_false_play")){if(qzD(this,Q)||this.du.XN)return}else if(this.du.XN||qzD(this,Q))return;UK2(this)||!TZ(this,Q)||this.gt.isActive()||(AT5(this),Q.preventDefault());this.Hv&&(this.Hv=!1)};
g.R.TD=function(){};
g.R.y5=function(){};
g.R.eF=function(){};
g.R.renderChapterSeekingAnimation=function(){};
g.R.Aq=function(){var Q=this.api.getPlayerStateObject();g.r(Q,2)&&g.aN(this.api)||(Q.isOrWillBePlaying()?this.api.pauseVideo():(this.f7&&(Q.isCued()||g.r(Q,1024))&&!this.api.C().j("embeds_play_button_state_check_ks")&&this.api.publish("largeplaybuttonclicked",this.f7.D.element),this.api.xT(),this.api.playVideo(),this.f7&&document.activeElement===this.f7.D.element&&((Q=this.rN())==null?Q=0:Q.playButton?(Q.playButton.focus(),Q=!0):Q=!1,Q||this.api.getRootNode().focus())))};
g.R.sU3=function(Q){var W=this,x=this.api.getPresentingPlayerType();if(!Hil(this,pw(Q)))if(Q=this.api.C(),(this.api.C().j("player_doubletap_to_seek")||this.api.C().S)&&this.Hv)this.Hv=!1;else if(Q.fn&&x!==3)try{this.api.toggleFullscreen().catch(function(D){W.zR(D)}),this.api.j("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.hf().element)}catch(D){this.zR(D)}};
g.R.zR=function(Q){String(Q).includes("fullscreen error")?g.Bp(Q):g.ql(Q)};
g.R.zO3=function(Q){Byv(this,.3,Q.scale);Q.preventDefault()};
g.R.wVt=function(Q){Byv(this,.1,Q.scale)};
g.R.OV=function(){var Q=this.api.hf().getPlayerSize(),W=this.api.getRootNode(),x=Q.width>=650;this.s4.resize();g.S$(W,"ytp-fullscreen",this.api.isFullscreen());g.S$(W,"ytp-large-width-mode",x);g.S$(W,"ytp-small-mode",this.AK());g.S$(W,"ytp-tiny-mode",this.OM());g.S$(W,"ytp-big-mode",this.eU());this.f2&&this.f2.resize(Q)};
g.R.qD=function(Q){this.q7(Q.state);this.uT()};
g.R.yW=xQ(5);g.R.Be=function(){var Q=!!this.DO&&!this.api.Rt()&&!this.d9,W=this.api.getPresentingPlayerType()===2,x=this.api.C();if(W){if(Yls&&x.j("enable_visit_advertiser_support_on_ipad_mweb"))return!1;W=AJ(this.api.x6());Q&&(W&&W.player?Q=(Q=W.player.getVideoData(2))?Q.isListed&&!g.aE(W.player.C()):!1:(sH("showInfoBarDuringAd: this is null"),Q=!1));return Q}return Q&&(x.Zf||this.api.isFullscreen()||x.IH)};
g.R.uT=function(){var Q=this.Be();this.rV!==Q&&(this.rV=Q,g.S$(this.api.getRootNode(),"ytp-hide-info-bar",!Q))};
g.R.q7=function(Q){var W=Q.isCued()||this.api.vM()&&this.api.getPresentingPlayerType()!==3;W!==this.isCued&&(this.isCued=W,this.vE&&this.mJ(this.vE),this.vE=this.W(this.api.hf(),"touchstart",this.ROp,void 0,W));var x=this.s4,D=Q.isPlaying()&&!g.r(Q,32)||this.api.aZ();$I(x,128,!D);x=this.s4;D=this.api.getPresentingPlayerType()===3;$I(x,256,D);x=this.api.getRootNode();g.r(Q,2)?D=[ye.ENDED]:(D=[],g.r(Q,8)?D.push(ye.PLAYING):g.r(Q,4)&&D.push(ye.PAUSED),g.r(Q,1)&&!g.r(Q,32)&&D.push(ye.BUFFERING),g.r(Q,
32)&&D.push(ye.SEEKING),g.r(Q,64)&&D.push(ye.UNSTARTED));g.sg(this.Tw,D)||(g.wk(x,this.Tw),this.Tw=D,g.Mh(x,D));D=this.api.C();var K=g.r(Q,2);a:{var l=this.api.C();var M=l.controlsType;switch(M){case "2":case "0":l=!1;break a}l=M==="3"&&!g.r(Q,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:Was(AJ(this.api.x6())))||this.api.Me()||g.d5(l)&&this.api.getPresentingPlayerType()===2?!1:!0}g.S$(x,"ytp-hide-controls",!l);g.S$(x,"ytp-native-controls",D.controlsType==="3"&&!W&&!K&&!this.Z4);g.r(Q,
128)&&!g.d5(D)?(this.f2||(this.f2=new g.cH(this.api),g.y(this,this.f2),g.qf(this.api,this.f2.element,4)),this.f2.U(Q.HI),this.f2.show()):this.f2&&(this.f2.dispose(),this.f2=null)};
g.R.rq=function(){return this.api.Vx()&&this.api.Rn()?(this.api.BU(!1,!1),!0):this.api.Rt()?(g.G4(this.api,!0),!0):!1};
g.R.onMutedAutoplayChange=function(Q){this.Z4=Q;this.qz()};
g.R.eU=function(){return!1};
g.R.AK=function(){return!this.eU()&&(this.api.getPlayerSize().width<this.YZ||this.api.getPlayerSize().height<290)};
g.R.OM=function(){return this.AK()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
g.R.rY=function(){return this.wj};
g.R.Xy=function(){return null};
g.R.Rs=function(){return null};
g.R.Lv=function(){var Q=this.api.hf().getPlayerSize();return new g.lq(0,0,Q.width,Q.height)};
g.R.handleGlobalKeyDown=function(){return!1};
g.R.handleGlobalKeyUp=function(){return!1};
g.R.CF=function(){};
g.R.showControls=function(Q){Q!==void 0&&this.api.hf().UF(Q)};
g.R.Z7=function(){};
g.R.rN=function(){return null};g.n(Oo,g.Rd);g.R=Oo.prototype;g.R.hB=function(){return 1E3*this.api.getDuration(this.NW,!1)};
g.R.stop=function(){this.B&&this.St.mJ(this.B)};
g.R.QA=function(){var Q=this.api.getProgressState(this.NW);this.U={seekableStart:Q.seekableStart,seekableEnd:Q.seekableEnd,current:this.api.getCurrentTime(this.NW,!1)};this.publish("h")};
g.R.getProgressState=function(){return this.U};
g.R.U$=function(Q){g.XV(Q,2)&&this.publish("g")};g.n(g.Eo,g.L);g.Eo.prototype.show=function(){g.L.prototype.show.call(this);g.E3(this.B)};
g.Eo.prototype.hide=function(){this.U.stop();g.L.prototype.hide.call(this)};
g.Eo.prototype.y5=function(Q){Q?g.r(this.J.getPlayerStateObject(),64)||Fo(this,h_(),"Play"):(Q=this.J.getVideoData(),Q.isLivePlayback&&!Q.allowLiveDvr?Fo(this,c4n(),"Stop live playback"):Fo(this,$54(),"Pause"))};g.n(mKO,g.L);g.R=mKO.prototype;g.R.pG=function(Q){Q?this.B=Jo(this.J,this.element,null):(this.B=this.B,this.B(),this.B=null)};
g.R.jt=function(){this.J.C().j("player_new_info_card_format")&&g.lf(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.d5(this.J.C())||(this.U.show(),g.M6("iv-button-shown"))};
g.R.X0=function(){g.M6("iv-button-hidden");this.U.hide()};
g.R.J_=function(){return this.md&&this.U.state!==4};
g.R.U3=function(){this.B&&this.B();g.L.prototype.U3.call(this)};
g.R.onHover=function(){g.M6("iv-button-mouseover")};
g.R.onClicked=function(Q){this.J.Vx();var W=g.lf(this.J.getRootNode(),"ytp-cards-teaser-shown");g.M6("iv-teaser-clicked",W);var x;if((x=this.J.getVideoData())==null?0:g.U_(x)){var D;Q=(D=this.J.getVideoData())==null?void 0:g.qJ(D);(Q==null?0:Q.onIconTapCommand)&&this.J.Wt("innertubeCommand",Q.onIconTapCommand)}else D=Q.screenX===0&&Q.screenY===0,this.J.BU(!this.J.Rn(),D,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.n(Ny5,g.L);g.R=Ny5.prototype;g.R.jf=function(){this.J.Vx()&&this.J.Rn()&&this.J_()&&this.X0()};
g.R.N3=function(){this.X0();!this.J.Vx()&&this.J.C().j("enable_error_corrections_infocards_icon_web")&&this.qC.X0();g.M6("iv-teaser-clicked",this.B!=null);if(this.onClickCommand)this.J.Wt("innertubeCommand",this.onClickCommand);else{var Q;((Q=this.J.getVideoData())==null?0:g.U_(Q))||this.J.BU(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.R.FC=function(){g.M6("iv-teaser-mouseover");this.B&&this.B.stop()};
g.R.Uxj=function(Q){this.J.C().j("player_new_info_card_format")&&!g.d5(this.J.C())?this.qC.X0():this.J.C().j("enable_error_corrections_infocards_icon_web")&&this.qC.jt();this.B||!Q||this.J.Rn()||this.U&&this.U.isActive()||(this.jt(Q),g.M6("iv-teaser-shown"))};
g.R.jt=function(Q){this.onClickCommand=Q.onClickCommand;this.updateValue("text",Q.teaserText);this.element.setAttribute("dir",g.or(Q.teaserText));this.N.show();this.U=new g.O3(function(){g.j$(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.j("player_new_info_card_format")&&!g.d5(this.J.C())&&this.qC.X0();this.Ow()},0,this);
this.U.start();this.qC.pG(!1);this.B=new g.O3(this.X0,580+Q.durationMs,this);this.B.start();this.X.push(this.listen("mouseover",this.yY,this));this.X.push(this.listen("mouseout",this.mz,this))};
g.R.Ow=function(){if(!this.J.C().j("player_new_info_card_format")&&g.d5(this.J.C())&&this.md){var Q=this.qC.element.offsetLeft,W=g.rS("ytp-cards-button-icon"),x=this.J.isFullscreen()?54:36;if(W){var D=Q+W.offsetLeft;this.element.style.marginRight=this.qC.element.offsetParent.offsetWidth-Q-W.offsetLeft-x+"px";this.element.style.marginLeft=D+"px"}}};
g.R.W1=function(){g.d5(this.J.C())&&this.J.AK()&&this.md&&this.T.start()};
g.R.yY=function(){this.G.stop();this.B&&this.B.isActive()&&this.S.start()};
g.R.mz=function(){this.S.stop();this.B&&!this.B.isActive()&&this.G.start()};
g.R.hh1=function(){this.B&&this.B.stop()};
g.R.Anj=function(){this.X0()};
g.R.mw=function(){this.X0()};
g.R.X0=function(){!this.B||this.D&&this.D.isActive()||(g.M6("iv-teaser-hidden"),this.N.hide(),g.Rr(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.D=new g.O3(function(){for(var Q=g.V(this.X),W=Q.next();!W.done;W=Q.next())this.mJ(W.value);this.X=[];this.B&&(this.B.dispose(),this.B=null);this.qC.pG(!0);!this.J.Vx()&&this.J.C().j("enable_error_corrections_infocards_icon_web")&&this.qC.X0()},330,this),this.D.start())};
g.R.J_=function(){return this.md&&this.N.state!==4};
g.R.U3=function(){var Q=this.J.getRootNode();Q&&g.Rr(Q,"ytp-cards-teaser-shown");g.Sp(this.U,this.D,this.B);g.L.prototype.U3.call(this)};var CE={},QL=(CE.BUTTON="ytp-button",CE.TITLE_NOTIFICATIONS="ytp-title-notifications",CE.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",CE.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",CE.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",CE);g.n(cTQ,g.L);cTQ.prototype.onClick=function(){this.api.logClick(this.element);var Q=!this.B;this.updateValue("label",Q?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",Q);gy5(this,Q)};g.g4("yt.pubsub.publish",g.M6);g.n(g.WN,g.L);g.WN.prototype.N=function(){window.location.reload()};
g.WN.prototype.B=function(){g.j$(this.element,"ytp-sb-subscribed")};
g.WN.prototype.U=function(){g.Rr(this.element,"ytp-sb-subscribed")};g.n(LMl,g.L);g.R=LMl.prototype;g.R.yn7=function(Q){this.api.logClick(this.U);var W=this.api.C();W.U||W.eZ?EyQ(this)&&(this.isExpanded()?this.HX():this.oD()):g.mO(window,Zi2(this));Q.preventDefault()};
g.R.x4=function(){Oi2(this);this.channel.classList.remove("ytp-title-expanded")};
g.R.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.R.oD=function(){if(EyQ(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.D&&this.D.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var Q=this.api.getVideoData();this.B&&Q.bk&&Q.subscribed&&(this.B.show(),
this.api.logVisibility(this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.R.HX=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.D&&this.D.start()};
g.R.Yf=function(){var Q=this.api.C();this.hO(!this.api.isEmbedsShortsMode());var W=this.api.getVideoData(),x=this.api.C(),D=this.api.getVideoData();this.N=!1;var K=!!D.videoId&&!!D.fn&&!!D.profilePicture;this.api.getPresentingPlayerType()===2?this.N=K&&!!D.isListed&&!!D.author:g.d5(x)&&(this.N=K&&!g.xW(D)&&!x.D&&!(x.S&&this.api.getPlayerSize().width<200));x=W.profilePicture;Q=g.d5(Q)?W.expandedTitle:W.author;x=x===void 0?"":x;Q=Q===void 0?"":Q;this.N?(this.G!==x&&(this.U.style.backgroundImage="url("+
x+")",this.G=x),this.updateValue("channelLogoLabel",g.nD("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:Q})),g.j$(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Rr(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.U,this.N&&this.L);this.subscribeButton&&(this.subscribeButton.channelId=W.ZS);this.updateValue("expandedTitle",W.expandedTitle);this.updateValue("expandedSubtitle",W.expandedSubtitle)};
g.R.rG=function(Q){g.L.prototype.rG.call(this,Q);this.api.logVisibility(this.U,this.N&&Q)};g.n(xu,g.rZ);xu.prototype.B=function(Q){Q.defaultPrevented||Q.keyCode!==39||(this.element.click(),Q.preventDefault())};g.n(FMl,g.L);g.R=FMl.prototype;g.R.show=function(){g.L.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.R.hide=function(){g.L.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.R.DN=function(Q){var W=pw(Q),x=g.jh(this.closeButton.element,W),D=g.jh(this.element,W);Q=this.B&&g.jh(this.B,W)&&g.pb(Q);W&&(D||Q)&&!x||this.hide()};
g.R.NZ=function(){eSF(g.Zj(this.G1.C()),"user_info_panel",function(){window.location.reload()})};
g.R.Yf=function(){var Q=this.G1.C(),W={USER_NAME:Q.userDisplayName,USER_EMAIL:Q.eK};this.updateValue("icon",ILz());this.updateValue("watchingAsUsername",g.nD("Watching as $USER_NAME",W));Q.eK?this.updateValue("watchingAsEmail",g.nD("($USER_EMAIL)",W)):this.updateValue("watchingAsEmail","")};g.n(QMn,g.H2);g.R=QMn.prototype;g.R.hS=function(){this.F0.X0()};
g.R.ktZ=function(){SV(this.Yn.element)};
g.R.rn3=function(){Kc(this,this.J.getDebugText(!0))&&Fo(this.XY,Y_())};
g.R.Yx7=function(){Kc(this,this.J.getVideoEmbedCode())&&Fo(this.XY,Gj5());this.J.logClick(this.dV.element);m4("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.R.ehj=function(){Kc(this,this.J.getVideoUrl(!0,!0))&&Fo(this.XY,v4());this.J.logClick(this.getVideoUrl.element);m4("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.R.sQ9=function(){Kc(this,this.J.getVideoUrl(!1,!0))&&Fo(this.XY,v4());this.J.logClick(this.gV.element);m4("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.R.onLoopChange=function(Q){var W;(W=this.YG)==null||jV(W,Q)};
g.R.H_Z=function(){this.J.setLoopVideo(this.YG.getValue());this.F0.X0();this.J.logClick(this.YG.element)};
g.R.oD1=function(Q){this.J.reportPlaybackIssue();if(g.Md(Q,this.J,!r5(this.J.C()))){Q=this.J;var W=Q.app.getFeedbackProductData();Q.WD("onFeedbackStartRequest",W);Q.isFullscreen()&&Q.toggleFullscreen()}this.F0.X0()};
g.R.ZZ7=function(){g.bL(this.J,"isVideoInfoVisible",[])?g.bL(this.J,"hideVideoInfo",[]):g.bL(this.J,"showVideoInfo",[]);this.F0.X0()};
g.R.VQt=function(){this.A9&&(this.Oe||(this.Oe=new FMl(this.J,this.A9.element),g.y(this,this.Oe),g.qf(this.J,this.Oe.element,4)),this.Oe.show(),this.F0.X0(),this.J.logClick(this.A9.element))};
g.R.onVideoDataChange=function(Q,W){this.Nd(W)};
g.R.Nd=function(Q){var W=this.J.C(),x=this.J.getPresentingPlayerType()===2,D=!x||Q.isListed;D=!W.pS&&!!Q.videoId&&D;W.playerStyle!=="play"?W="https://support.google.com/youtube/?p=report_playback":(W={contact_type:"playbackissue",html5:1,ei:Q.eventId,v:Q.videoId,p:"movies_playback"},Q.U&&(W.fmt=Q.U.itag),Q.clientPlaybackNonce&&(W.cpn=Q.clientPlaybackNonce),Q.partnerId&&(W.partnerid=Q.partnerId),W=g.ya("//support.google.com/googleplay/",W));this.dV.hO(D&&Q.allowEmbed);this.getVideoUrl.hO(D);this.gV.hO(D&&
!Q.isLivePlayback);this.zM.iy(W,"href");var K;(K=this.YG)==null||K.hO(!Q.isLivePlayback&&!x);var l;(l=this.A9)==null||l.hO(!x)};
g.R.rG=function(Q){g.H2.prototype.rG.call(this,Q);this.J.logVisibility(this.dV.element,Q);this.J.logVisibility(this.getVideoUrl.element,Q);this.J.logVisibility(this.gV.element,Q);this.YG&&this.J.logVisibility(this.YG.element,Q);this.A9&&this.J.logVisibility(this.A9.element,Q)};g.n(D$4,g.qF);g.R=D$4.prototype;g.R.onTouchStart=function(Q){var W=pw(Q);if(!(W&&(wp(W,"a")||wp(W,null,"ytp-no-contextmenu"))||this.md)){var x;this.F3=(Q=(x=Q.touches)==null?void 0:x.item(0))?new g.k6(Q.clientX,Q.clientY):new g.k6(0,0);this.pS.start()}};
g.R.qw=function(){this.pS.stop()};
g.R.KU5=function(){this.open(this.F3)};
g.R.sW=function(){if(this.D&&WC5(this.D)){var Q=WC5(this.D).element;Q.tabIndex=-1;Q.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.R.show=function(){this.D||(this.D=new QMn(this.J,this,this.XY),g.y(this,this.D),g.B2(this,this.D));this.D.onLoopChange(this.J.getLoopVideo());g.qF.prototype.show.call(this);this.J.logVisibility(this.element,!0);this.D.rG(!0)};
g.R.hide=function(){x$5(this);g.qF.prototype.hide.call(this);this.J.logVisibility(this.element,!1);this.D&&this.D.rG(!1)};
g.R.NE7=function(Q){var W=pw(Q);this.md||W&&(wp(W,"a")||wp(W,null,"ytp-no-contextmenu"))||(Q.preventDefault(),this.open(new g.k6(Q.pageX,Q.pageY)))};
g.R.jt=function(Q){if(Q){var W=Q.getBoundingClientRect();this.open(new g.k6(W.x,W.y))}g.qF.prototype.jt.call(this,Q)};
g.R.open=function(Q){KC5(this);var W=this.J.getVideoData();g.S$(this.element,"ytp-dni",W.HZ);this.element.style.left="";this.element.style.top="";Q.x++;Q.y++;g.qF.prototype.jt.call(this);var x=e9(this).body;W=new Fn(0,Infinity,Infinity,0);var D=cZ(x);for(var K=D.B.body,l=D.B.documentElement,M=MEl(D.B);x=a4F(x);)if((!g.O6||x.clientHeight!=0||x!=K)&&x!=K&&x!=l&&kg(x,"overflow")!="visible"){var w=g.Yg(x),S=new g.k6(x.clientLeft,x.clientTop);w.x+=S.x;w.y+=S.y;W.top=Math.max(W.top,w.y);W.right=Math.min(W.right,
w.x+x.clientWidth);W.bottom=Math.min(W.bottom,w.y+x.clientHeight);W.left=Math.max(W.left,w.x)}K=M.scrollLeft;M=M.scrollTop;W.left=Math.max(W.left,K);W.top=Math.max(W.top,M);D=jpv(D.B.defaultView||window);W.right=Math.min(W.right,K+D.width);W.bottom=Math.min(W.bottom,M+D.height);D=W.top>=0&&W.left>=0&&W.bottom>W.top&&W.right>W.left?W:null;W=this.size;Q=Q.clone();W=W.clone();D&&(M=W,K=5,(K&65)==65&&(Q.x<D.left||Q.x>=D.right)&&(K&=-2),(K&132)==132&&(Q.y<D.top||Q.y>=D.bottom)&&(K&=-5),Q.x<D.left&&K&1&&
(Q.x=D.left),K&16&&(l=Q.x,Q.x<D.left&&(Q.x=D.left),Q.x+M.width>D.right&&(M.width=Math.min(D.right-Q.x,l+M.width-D.left),M.width=Math.max(M.width,0))),Q.x+M.width>D.right&&K&1&&(Q.x=Math.max(D.right-M.width,D.left)),Q.y<D.top&&K&4&&(Q.y=D.top),K&32&&(l=Q.y,Q.y<D.top&&(Q.y=D.top),Q.y+M.height>D.bottom&&(M.height=Math.min(D.bottom-Q.y,l+M.height-D.top),M.height=Math.max(M.height,0))),Q.y+M.height>D.bottom&&K&4&&(Q.y=Math.max(D.bottom-M.height,D.top)));D=new g.lq(0,0,0,0);D.left=Q.x;D.top=Q.y;D.width=
W.width;D.height=W.height;g.oB(this.element,new g.k6(D.left,D.top));g.d3(this.N);this.N.W(e9(this),"contextmenu",this.lX7);this.N.W(this.J,"fullscreentoggled",this.onFullscreenToggled);this.N.W(this.J,"pageTransition",this.KW)};
g.R.lX7=function(Q){if(!Q.defaultPrevented){var W=pw(Q);g.jh(this.element,W)||this.X0();this.J.C().disableNativeContextMenu&&Q.preventDefault()}};
g.R.onFullscreenToggled=function(){this.X0();KC5(this)};
g.R.KW=function(){this.X0()};g.n(lv,g.L);lv.prototype.onClick=function(){var Q=this,W,x,D,K;return g.U(function(l){if(l.B==1)return W=Q.api.C(),x=Q.api.getVideoData(),D=Q.api.getPlaylistId(),K=W.getVideoUrl(x.videoId,D,void 0,!0),g.A(l,MUz(Q,K),2);l.U&&jMD(Q);Q.api.logClick(Q.element);g.VF(l)})};
lv.prototype.Yf=function(){this.updateValue("icon",{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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=lB4(this);g.S$(this.element,"ytp-copylink-button-visible",this.visible);
this.hO(this.visible);this.tooltip.hA();this.api.logVisibility(this.element,this.visible&&this.L)};
lv.prototype.rG=function(Q){g.L.prototype.rG.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)};
lv.prototype.U3=function(){g.L.prototype.U3.call(this);g.Rr(this.element,"ytp-copylink-button-visible")};g.n(j3,g.L);j3.prototype.show=function(){g.L.prototype.show.call(this);g.E3(this.U)};
j3.prototype.hide=function(){this.N.stop();this.D=0;this.Nj("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Rr(this.element,"ytp-chapter-seek");g.Rr(this.element,"ytp-time-seeking");g.L.prototype.hide.call(this)};
j3.prototype.eF=function(Q,W,x,D){this.D=Q===this.G?this.D+D:D;this.G=Q;var K=Q===-1?this.T:this.S;K&&this.J.logClick(K);this.X?this.U.stop():g.t2(this.U);this.N.start();this.element.setAttribute("data-side",Q===-1?"back":"forward");var l=3*this.J.hf().getPlayerSize().height;K=this.J.hf().getPlayerSize();K=K.width/3-3*K.height;this.B.style.width=l+"px";this.B.style.height=l+"px";Q===1?(this.B.style.left="",this.B.style.right=K+"px"):Q===-1&&(this.B.style.right="",this.B.style.left=K+"px");var M=l*
2.5;l=M/2;var w=this.Nj("ytp-doubletap-ripple");w.style.width=M+"px";w.style.height=M+"px";Q===1?(Q=this.J.hf().getPlayerSize().width-W+Math.abs(K),w.style.left="",w.style.right=Q-l+"px"):Q===-1&&(Q=Math.abs(K)+W,w.style.right="",w.style.left=Q-l+"px");w.style.top="calc((33% + "+Math.round(x)+"px) - "+l+"px)";if(x=this.Nj("ytp-doubletap-ripple"))x.classList.remove("ytp-doubletap-ripple"),x.classList.add("ytp-doubletap-ripple");ReD(this,this.X?this.D:D)};g.n(wSn,ir);g.R=wSn.prototype;g.R.k8=function(Q){this.X3||(this.X3=new IJ(this.J),g.y(this,this.X3));var W,x;if((W=this.Vj)==null?0:(x=W.menu)==null?0:x.menuRenderer)this.X3.open(this.Vj.menu.menuRenderer,Q.target),Q.preventDefault()};
g.R.X9=function(){return!!this.B};
g.R.cq=function(){return!!this.B};
g.R.wi=function(Q){Q.target===this.overflowButton.element?Q.preventDefault():(this.Sk&&this.J.Wt("innertubeCommand",this.Sk),this.fF(!1))};
g.R.dJ=function(){this.fF(!0);var Q,W;((Q=this.B)==null?0:(W=Q.bannerData)==null?0:W.dismissedStatusKey)&&this.Gn.push(this.B.bannerData.dismissedStatusKey);this.rQ()};
g.R.xz=function(){this.rQ();bv(this)};
g.R.PSf=function(Q){var W=this,x;if(Q.id!==((x=this.B)==null?void 0:x.identifier)){this.rQ();x=g.V(this.KS);for(var D=x.next();!D.done;D=x.next()){var K=D.value,l=void 0,M=void 0;if((D=(l=K)==null?void 0:(M=l.bannerData)==null?void 0:M.itemData)&&K.identifier===Q.id){M=l=void 0;var w=((l=K)==null?void 0:(M=l.bannerData)==null?void 0:M.dismissedStatusKey)||"";if(this.Gn.includes(w))break;this.B=K;this.banner.element.setAttribute("aria-label",D.accessibilityLabel||"");D.trackingParams&&(this.N=!0,this.J.setTrackingParams(this.badge.element,
D.trackingParams));this.T.show();dd(this);this.fS.hO(!D.stayInApp);Pw2(this);bxa(this);S3(this);this.Sk=g.e(D.onTapCommand,IG);if(K=g.e(D.menuOnTap,IG))this.Vj=g.e(K,aXq);K=void 0;this.banner.update({thumbnail:(K=(D.thumbnailSources||[])[0])==null?void 0:K.url,title:D.productTitle,price:D.priceReplacementText?D.priceReplacementText:D.price,salesOriginalPrice:k74(this),priceDropReferencePrice:XSD(this),promotionText:ze2(this),priceA11yText:o5l(this),affiliateDisclaimer:D.affiliateDisclaimer,vendor:uQD(this)});
w=M=l=K=void 0;((K=D)==null?0:(l=K.hiddenProductOptions)==null?0:l.showDropCountdown)&&((M=D)==null?0:(w=M.hiddenProductOptions)==null?0:w.dropTimestampMs)&&(this.Y6=new g.O3(function(){VUa(W)},1E3),this.fS.hide(),this.countdownTimer.show(),VUa(this));
this.J.j("web_player_enable_featured_product_banner_exclusives_on_desktop")&&SnF(this)&&(this.WN=new g.O3(function(){sMQ(W)},1E3),sMQ(this))}}}};
g.R.rQ=function(){this.B&&(this.B=void 0,this.Vk())};
g.R.onVideoDataChange=function(Q,W){var x=this;Q==="dataloaded"&&bv(this);var D,K,l;Q=g.e((D=W.getWatchNextResponse())==null?void 0:(K=D.playerOverlays)==null?void 0:(l=K.playerOverlayRenderer)==null?void 0:l.productsInVideoOverlayRenderer,p1k);this.overflowButton.show();this.dismissButton.hide();var M=Q==null?void 0:Q.featuredProductsEntityKey;this.trendingOfferEntityKey=Q==null?void 0:Q.trendingOfferEntityKey;this.KS.length||(n5F(this,M),S3(this));var w;(w=this.yA)==null||w.call(this);this.yA=g.xN.subscribe(function(){n5F(x,
M);S3(x)})};
g.R.U3=function(){bv(this);Pw2(this);bxa(this);ir.prototype.U3.call(this)};g.n(he1,g.L);he1.prototype.onClick=function(){this.J.logClick(this.element,this.U)};g.n(aBa,g.y0);g.R=aBa.prototype;g.R.show=function(){g.y0.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);G7n(this,!0)};
g.R.hide=function(){g.y0.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);G7n(this,!1)};
g.R.getId=function(){return this.N};
g.R.bW=function(){return this.itemData.length};
g.R.onVideoDataChange=function(Q,W){if(W){var x,D,K,l;this.update({title:((x=W.Ct)==null?void 0:(D=x.title)==null?void 0:D.content)||"",body:((K=W.Ct)==null?void 0:(l=K.bodyText)==null?void 0:l.content)||""});var M;Q=((M=W.Ct)==null?void 0:M.trackingParams)||null;this.J.setTrackingParams(this.element,Q);M=g.V(this.itemData);for(Q=M.next();!Q.done;Q=M.next())Q.value.dispose();this.itemData=[];var w;if((w=W.Ct)==null?0:w.ctaButtons)for(W=g.V(W.Ct.ctaButtons),w=W.next();!w.done;w=W.next())if(w=g.e(w.value,
n8F))w=new he1(this.J,w,this.B),w.ET&&(this.itemData.push(w),w.Qj(this.items))}};
g.R.U3=function(){this.hide();g.y0.prototype.U3.call(this)};g.n(ARO,g.L);g.R=ARO.prototype;g.R.onVideoDataChange=function(Q,W){ix4(this,W);this.WV&&U$n(this,this.WV)};
g.R.Jg=function(Q){var W=this.J.getVideoData();this.videoId!==W.videoId&&ix4(this,W);U$n(this,Q.state);this.WV=Q.state};
g.R.vB=function(Q){(this.N=Q)?this.hide():this.B&&this.show()};
g.R.Q2=function(){this.U||this.jt();this.showControls=!0};
g.R.fW=function(){this.U||this.X0();this.showControls=!1};
g.R.jt=function(){var Q;if((Q=this.J)==null?0:Q.j("embeds_web_enable_info_panel_sizing_fix")){var W;Q=(W=this.J)==null?void 0:W.getPlayerSize();W=Q.width<380;var x;Q=Q.height<(((x=this.J)==null?0:x.isEmbedsShortsMode())?400:280);var D,K;if((((D=this.J)==null?0:D.getPlayerStateObject().isCued())||((K=this.J)==null?0:g.r(K.getPlayerStateObject(),1024)))&&W&&Q)return}this.B&&!this.N&&(this.D.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))};
g.R.X0=function(){this.B&&!this.N&&(this.D.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))};
g.R.VK7=function(){this.U=!1;this.showControls||this.X0()};var HR1={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(HR1).reduce(function(Q,W){Q[HR1[W]]=W;return Q},{});
var UuH={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(UuH).reduce(function(Q,W){Q[UuH[W]]=W;return Q},{});
var qYJ={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(qYJ).reduce(function(Q,W){Q[qYJ[W]]=W;return Q},{});var Bc7,$uH;Bc7=[{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"}];$uH=[{option:0,text:sy(0)},{option:.25,text:sy(.25)},{option:.5,text:sy(.5)},{option:.75,text:sy(.75)},{option:1,text:sy(1)}];
g.oW=[{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:Bc7},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:sy(.5)},{option:-1,text:sy(.75)},{option:0,text:sy(1)},{option:1,text:sy(1.5)},{option:2,
text:sy(2)},{option:3,text:sy(3)},{option:4,text:sy(4)}]},{option:"background",text:"Background color",options:Bc7},{option:"backgroundOpacity",text:"Background opacity",options:$uH},{option:"windowColor",text:"Window color",options:Bc7},{option:"windowOpacity",text:"Window opacity",options:$uH},{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:sy(.25)},{option:.5,text:sy(.5)},{option:.75,text:sy(.75)},{option:1,text:sy(1)}]}];var IJp=[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.n(Nbh,g.I0);g.R=Nbh.prototype;
g.R.Lk=function(Q){Q.repeat||(this.D.HC=!1);var W=!1,x=Q.keyCode,D=pw(Q),K=!Q.altKey&&!Q.ctrlKey&&!Q.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||IJp.includes(x)),l=!1,M=!1,w=this.api.C();Q.defaultPrevented?(K=!1,M=!0):w.b6&&!this.api.isMutedByEmbedsMutedAutoplay()&&(K=!1);if(x===9)W=!0;else{if(D)switch(x){case 32:case 13:if(D.tagName==="BUTTON"||D.tagName==="A"||D.tagName==="INPUT")W=!0,K=!1;else if(K){var S=D.getAttribute("role");!S||S!=="option"&&S!=="button"&&S.indexOf("menuitem")!==0||
(W=!0,D.click(),l=!0)}break;case 37:case 39:case 36:case 35:W=D.getAttribute("role")==="slider";break;case 38:case 40:S=D.getAttribute("role"),D=x===38?D.previousSibling:D.nextSibling,S==="slider"?W=!0:K&&(S==="option"?(D&&D.getAttribute("role")==="option"&&D.focus(),l=W=!0):S&&S.indexOf("menuitem")===0&&(D&&D.hasAttribute("role")&&D.getAttribute("role").indexOf("menuitem")===0&&D.focus(),l=W=!0))}if(K&&!l)switch(x){case 38:l=Math.min(this.api.getVolume()+5,100);tJ(this.XY,l,!1);this.api.setVolume(l);
M=l=!0;break;case 40:l=Math.max(this.api.getVolume()-5,0);tJ(this.XY,l,!0);this.api.setVolume(l);M=l=!0;break;case 36:this.api.Fi()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),M=l=!0);break;case 35:this.api.Fi()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),M=l=!0)}}W&&ku(this,!0);(W||M)&&this.s4.Z7();(l||K&&this.handleGlobalKeyDown(x,Q.shiftKey,Q.ctrlKey,Q.altKey,Q.metaKey,Q.key,Q.code,Q.repeat))&&Q.preventDefault();w.G&&(Q={keyCode:Q.keyCode,
altKey:Q.altKey,ctrlKey:Q.ctrlKey,metaKey:Q.metaKey,shiftKey:Q.shiftKey,handled:Q.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.DJ("onKeyPress",Q))};
g.R.EK=function(Q){var W=Q.keyCode;(!this.api.j("web_player_spacebar_control_bugfix")||this.api.j("web_player_spacebar_control_bugfix")&&!this.N)&&this.handleGlobalKeyUp(W,Q.shiftKey,Q.ctrlKey,Q.altKey,Q.metaKey,Q.key,Q.code)&&Q.preventDefault()};
g.R.handleGlobalKeyUp=function(Q,W,x,D,K,l,M){this.api.publish("keyboardserviceglobalkeyup",{keyCode:Q,shiftKey:W,ctrlKey:x,altKey:D,metaKey:K,key:l,code:M});W=!1;if(this.D.HC)return W;(K=g.Hd(this.api.x6()))&&(K=K.Pc)&&K.md&&(K.lw(Q),W=!0);switch(Q){case 9:ku(this,!0);W=!0;break;case 32:if(this.api.j("web_speedmaster_spacebar_control")&&(!this.api.j("web_player_spacebar_control_bugfix")&&!this.N||this.api.j("web_player_spacebar_control_bugfix"))&&!this.api.C().b6){var w,S;Q=(w=this.progressBar)==
null?void 0:(S=w.U)==null?void 0:S.isEnabled;W=this.Aq(Q)}break;case 39:(Dg?D:x)&&this.api.j("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),w=(w=this.api.getVideoData())?w.SU:[],S=BbD(w,this.api.getCurrentTime()*1E3),S!==-1&&this.B!=null&&(RW(this.B,1,w[S].title),this.api.seekTo(w[S].startTime/1E3,void 0,void 0,void 0,52),W=!0))}return W};
g.R.handleGlobalKeyDown=function(Q,W,x,D,K,l,M,w){w||(this.D.HC=!1);var S=!1,b=this.api.C();if(b.b6&&!this.api.isMutedByEmbedsMutedAutoplay())return S;var z=g.Hd(this.api.x6());if(z&&(z=z.Pc)&&z.md)switch(Q){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:S=z.Xk(Q)}b.X||S||(S=l||String.fromCharCode(Q).toLowerCase(),this.U+=S,"awesome".indexOf(this.U)===0?(S=!0,7===this.U.length&&NMn(this.api.getRootNode(),"ytp-color-party")):(this.U=S,S="awesome".indexOf(this.U)===0));if(!S&&(!this.api.isMutedByEmbedsMutedAutoplay()||
IJp.includes(Q))){var k=this.api.getVideoData(),X,u;z=(X=this.progressBar)==null?void 0:(u=X.U)==null?void 0:u.isEnabled;X=k?k.SU:[];u=Dg?D:x;switch(Q){case 80:W&&!b.X3&&(Fo(this.XY,NV5(),"Previous"),this.api.previousVideo(),S=!0);break;case 78:W&&!b.X3&&(Fo(this.XY,CV(),"Next"),this.api.nextVideo(),S=!0);break;case 74:this.api.Fi()&&(this.api.startSeekCsiAction(),this.B?this.api.j("enable_key_press_seek_logging")?(S=XO(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),MR(this.B,
-1,10,S)):MR(this.B,-1,10):Fo(this.XY,{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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),S=!0);break;case 76:this.api.Fi()&&(this.api.startSeekCsiAction(),this.B?this.api.j("enable_key_press_seek_logging")?(S=XO(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),MR(this.B,1,10,S)):MR(this.B,1,10):Fo(this.XY,{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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),S=!0);break;case 37:this.api.Fi()&&(this.api.startSeekCsiAction(),u?(u=$$Q(X,this.api.getCurrentTime()*1E3),u!==-1&&this.B!=null&&(RW(this.B,-1,X[u].title),this.api.seekTo(X[u].startTime/1E3,void 0,void 0,void 0,53),S=!0)):(this.B?this.api.j("enable_key_press_seek_logging")?(S=XO(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),MR(this.B,-1,5,S)):MR(this.B,-1,5):Fo(this.XY,{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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),S=!0));break;case 39:this.api.Fi()&&(this.api.startSeekCsiAction(),u?this.api.j("web_enable_keyboard_shortcut_for_timely_actions")||(u=BbD(X,this.api.getCurrentTime()*1E3),u!==-1&&this.B!=null&&(RW(this.B,1,X[u].title),this.api.seekTo(X[u].startTime/1E3,void 0,void 0,void 0,52),S=!0)):(this.B!=null?this.api.j("enable_key_press_seek_logging")?(S=XO(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),MR(this.B,1,5,S)):MR(this.B,
1,5):Fo(this.XY,{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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),S=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),tJ(this.XY,this.api.getVolume(),!1)):(this.api.mute(),tJ(this.XY,0,!0));S=!0;break;case 32:S=this.api.j("web_speedmaster_spacebar_control")?!this.api.C().X3:this.Aq(z);break;case 75:S=this.Aq(z);break;case 190:W?b.enableSpeedOptions&&g5D(this)&&(S=this.api.getPlaybackRate(),this.api.setPlaybackRate(S+.25,!0),$KQ(this.XY,!1),S=!0):this.api.Fi()&&(this.step(1),S=!0);break;case 188:W?
b.enableSpeedOptions&&g5D(this)&&(S=this.api.getPlaybackRate(),this.api.setPlaybackRate(S-.25,!0),$KQ(this.XY,!0),S=!0):this.api.Fi()&&(this.step(-1),S=!0);break;case 70:Su2(this.api)&&(this.api.toggleFullscreen().catch(function(){}),S=!0);
break;case 27:z?(this.progressBar.fq(),S=!0):this.X()&&(S=!0)}if(b.controlsType!=="3")switch(Q){case 67:g.GZ(this.api.x6())&&(b=this.api.getOption("captions","track"),this.api.toggleSubtitles(),IYv(this.XY,!b||b&&!b.displayName),S=!0);break;case 79:uv(this,"textOpacity");break;case 87:uv(this,"windowOpacity");break;case 187:case 61:uv(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:uv(this,"fontSizeIncrement",!0,!0)}var Y;W||x||D||(Q>=48&&Q<=57?Y=Q-48:Q>=96&&Q<=105&&(Y=Q-96));Y!=null&&this.api.Fi()&&
(this.api.startSeekCsiAction(),b=this.api.getProgressState(),this.api.seekTo(Y/10*(b.seekableEnd-b.seekableStart)+b.seekableStart,void 0,void 0,void 0,81),S=!0);S&&this.s4.Z7()}this.N||this.api.publish("keyboardserviceglobalkeydown",{keyCode:Q,shiftKey:W,ctrlKey:x,altKey:D,metaKey:K,key:l,code:M,repeat:w},this.D);return S};
g.R.step=function(Q){this.api.Fi();if(this.api.getPlayerStateObject().isPaused()){var W=this.api.getVideoData().U;W&&(W=W.video)&&this.api.seekBy(Q/(W.fps||30),void 0,void 0,Q>0?77:78)}};
g.R.Aq=function(Q){if(!this.api.C().X3){var W;var x,D=(W=this.api.getVideoData())==null?void 0:(x=W.getPlayerResponse())==null?void 0:x.playabilityStatus;if(D){var K;W=((K=g.e(D.miniplayer,qgs))==null?void 0:K.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else W=!1;W&&this.api.Wt("onExpandMiniplayer");Q?this.progressBar.eX():(Q=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.XY.y5(Q),Q?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.R.U3=function(){g.t2(this.L);g.I0.prototype.U3.call(this)};g.n(g.Yu,g.L);g.Yu.prototype.MR=xQ(11);
g.Yu.prototype.Yf=function(){var Q=this.J.C(),W=Q.D||this.J.j("web_player_hide_overflow_button_if_empty_menu")&&this.uf.isEmpty();Q=g.d5(Q)&&g.iL(this.J)&&g.r(this.J.getPlayerStateObject(),128);var x=this.J.getPlayerSize();this.visible=this.J.AK()&&!Q&&x.width>=240&&!g.xW(this.J.getVideoData())&&!W&&!this.B&&!this.J.isEmbedsShortsMode();g.S$(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.hA();this.J.logVisibility(this.element,this.visible&&this.L)};
g.Yu.prototype.rG=function(Q){g.L.prototype.rG.call(this,Q);this.J.logVisibility(this.element,this.visible&&Q)};
g.Yu.prototype.U3=function(){g.L.prototype.U3.call(this);g.Rr(this.element,"ytp-overflow-button-visible")};g.n(yR5,g.y0);g.R=yR5.prototype;g.R.XC=function(Q){Q=pw(Q);g.jh(this.element,Q)&&(g.jh(this.B,Q)||g.jh(this.closeButton,Q)||fq(this))};
g.R.X0=function(){g.y0.prototype.X0.call(this);this.J.mC(this.element)};
g.R.show=function(){this.md&&this.J.publish("OVERFLOW_PANEL_OPENED");g.y0.prototype.show.call(this);this.element.setAttribute("aria-modal","true");fBn(this,!0)};
g.R.hide=function(){g.y0.prototype.hide.call(this);this.element.removeAttribute("aria-modal");fBn(this,!1)};
g.R.onFullscreenToggled=function(Q){!Q&&this.J_()&&fq(this)};
g.R.isEmpty=function(){return this.actionButtons.length===0};
g.R.focus=function(){for(var Q=g.V(this.actionButtons),W=Q.next();!W.done;W=Q.next())if(W=W.value,W.md){W.focus();break}};g.n(ZxF,g.L);ZxF.prototype.onClick=function(Q){g.Md(Q,this.api)&&this.api.playVideoAt(this.index)};g.n(LCl,g.y0);g.R=LCl.prototype;g.R.show=function(){g.y0.prototype.show.call(this);this.B.W(this.api,"videodatachange",this.W7);this.B.W(this.api,"onPlaylistUpdate",this.W7);this.W7()};
g.R.hide=function(){g.y0.prototype.hide.call(this);g.d3(this.B);this.updatePlaylist(null)};
g.R.W7=function(){this.updatePlaylist(this.api.getPlaylist());this.api.C().D&&(this.Nj("ytp-playlist-menu-title-name").removeAttribute("href"),this.D&&(this.mJ(this.D),this.D=null))};
g.R.S$=function(){var Q=this.playlist,W=Q.author,x=W?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",D={CURRENT_POSITION:String(Q.index+1),PLAYLIST_LENGTH:String(Q.getLength())};W&&(D.AUTHOR=W);this.update({title:Q.title,subtitle:g.nD(x,D),playlisturl:this.api.getVideoUrl(!0)});W=Q.U;if(W===this.N)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[Q.index];else{x=g.V(this.playlistData);for(D=x.next();!D.done;D=x.next())D.value.dispose();
x=Q.getLength();this.playlistData=[];for(D=0;D<x;D++){var K=new ZxF(this.api,Q,D);this.playlistData.push(K);K.Qj(this.items)}this.selected=this.playlistData[Q.index];this.N=W}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.R.Dx3=function(Q){var W=this.api.getVideoUrl(!0);g.RY(W,this.api,Q)};
g.R.updatePlaylist=function(Q){this.playlist!==Q?(this.playlist&&this.playlist.unsubscribe("shuffle",this.S$,this),this.playlist=Q,this.N=null,Q?(Q.subscribe("shuffle",this.S$,this),this.S$()):this.md&&this.hide()):this.playlist&&this.S$()};
g.R.focus=function(){this.selected.focus()};
g.R.U3=function(){this.hide();g.y0.prototype.U3.call(this)};g.n(nc,g.L);nc.prototype.hide=function(){g.L.prototype.hide.call(this);this.rG(!1);this.api.hA()};
nc.prototype.Yf=function(){var Q=g.d5(this.api.C());g.S$(this.element,"ytp-playlist-menu-button-tiny",this.api.hf().getPlayerSize().width<400&&!Q);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.nD("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.nD("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.md||(this.show(),
this.api.hA()),this.visible=!0,this.rG(!0)):this.md&&this.hide()};
nc.prototype.rG=function(Q){g.L.prototype.rG.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)};
nc.prototype.B=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Yf,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Yf,this);this.Yf()};g.n(rRv,g.L);g.R=rRv.prototype;g.R.LW=function(){this.N?FCz(this):E5n(this)};
g.R.l2=function(){this.N?(VL(this),this.G=!0):E5n(this)};
g.R.Wdf=function(){this.X=!0;this.Vz(1);this.J.publish("promotooltipacceptbuttonclicked",this.acceptButton);VL(this);this.U&&this.J.logClick(this.acceptButton)};
g.R.XDj=function(){this.X=!0;this.Vz(2);VL(this);this.U&&this.J.logClick(this.dismissButton)};
g.R.E$=function(Q){if(this.J.getPresentingPlayerType()===1||this.J.getPresentingPlayerType()===2&&this.S){var W=!0,x=g.rS("ytp-ad-overlay-ad-info-dialog-container"),D=g.rS("ytp-ad-player-overlay-layout"),K=pw(Q);if(this.D&&K&&g.jh(this.D,K))this.D=null;else{this.J.getPresentingPlayerType()===1&&K&&Array.from(K.classList).forEach(function(S){if(S.startsWith("ytp-ad")||S.startsWith("ytp-skip-ad"))W=!1});
var l=tUD(this.tooltipRenderer),M;if(((M=this.tooltipRenderer.dismissStrategy)==null?void 0:M.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")l&&(W=W&&!g.jh(this.element,K));else{var w;((w=this.tooltipRenderer.dismissStrategy)==null?void 0:w.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(W=l?!1:W&&g.jh(this.element,K))}this.B&&this.md&&!x&&!D&&(!K||W&&g.pb(Q))&&(this.X=!0,VL(this))}}};
g.R.Vz=function(Q){var W=this.tooltipRenderer.promoConfig;if(W){switch(Q){case 0:var x;if((x=W.impressionEndpoints)==null?0:x.length)var D=W.impressionEndpoints[0];break;case 1:D=W.acceptCommand;break;case 2:D=W.dismissCommand}var K;Q=(K=g.e(D,YgA))==null?void 0:K.feedbackToken;D&&Q&&(K={feedbackTokens:[Q]},Q=this.J.XZ(),(Q==null?0:d8v(D,Q.Ja))&&rK(Q,D,K))}};
g.R.OV=function(){this.G||(this.B||(this.B=Tbz(this)),FCz(this))};
var Oxh={"ytp-settings-button":g.Ge()};g.n(PN,g.L);PN.prototype.onStateChange=function(Q){this.wE(Q.state)};
PN.prototype.wE=function(Q){this.hO(g.r(Q,2))};
PN.prototype.onClick=function(){this.J.getPlayerStateObject().isOrWillBePlaying();this.J.playVideo()};g.n(vN,g.L);vN.prototype.onClick=function(Q){this.api.logClick(this.element);var W=g.ya(this.api.C().n2,{focusSearch:"true"}),x={};g.bL(this.api,"addEmbedsConversionTrackingParams",[x]);W=g.ya(W,x);var D;(x=(D=this.api.getVideoData().zI)==null?void 0:D.params)&&(W=g.ya(W,{bp:x}));g.mO(window,W);Q.preventDefault()};
vN.prototype.B=function(){if(this.api.j("embeds_web_enable_search_button")){var Q=this.api.C();var W=this.api.getVideoData(),x=this.api.hf().getPlayerSize().width;Q=g.d5(Q)&&x>=this.U&&!Q.D&&!W.isAd()&&!this.api.isEmbedsShortsMode()}else Q=!1;this.visible=Q;this.hO(this.visible);g.S$(this.element,"ytp-search-button-visible",this.visible);g.S$(this.element,"ytp-show-search-title",!this.api.AK());this.api.logVisibility(this.element,this.visible&&this.L)};
vN.prototype.rG=function(Q){g.L.prototype.rG.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)};g.n(g.Cc,g.L);g.R=g.Cc.prototype;g.R.Re=xQ(8);g.R.onClick=function(){var Q=this,W=this.api.C(),x=this.api.getVideoData(this.api.getPresentingPlayerType()),D=this.api.getPlaylistId();W=this.api.j("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):W.getVideoUrl(x.videoId,D,void 0,!0);if(navigator.share)try{var K=navigator.share({title:x.title,url:W});K instanceof Promise&&K.catch(function(l){Wt4(Q,l)})}catch(l){l instanceof Error&&Wt4(this,l)}else this.B.rq(),fq(this.D,this.element,!1);
this.api.logClick(this.element)};
g.R.Yf=function(){var Q=this.api.C(),W=this.api.isEmbedsShortsMode();g.S$(this.element,"ytp-show-share-title",g.d5(Q)&&!W);this.B.eU()&&W?(Q=(this.api.hf().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.SZ(this.element,"right",Q+"px")):W&&g.SZ(this.element,"right","0px");this.updateValue("icon",{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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=QVD(this);g.S$(this.element,"ytp-share-button-visible",this.visible);this.hO(this.visible);this.tooltip.hA();this.api.logVisibility(this.element,QVD(this)&&this.L)};
g.R.rG=function(Q){g.L.prototype.rG.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)};
g.R.U3=function(){g.L.prototype.U3.call(this);g.Rr(this.element,"ytp-share-button-visible")};g.n(Di2,g.y0);g.R=Di2.prototype;g.R.vu=function(Q){Q=pw(Q);g.jh(this.X,Q)||g.jh(this.closeButton,Q)||fq(this)};
g.R.X0=function(){g.y0.prototype.X0.call(this);this.tooltip.mC(this.element);this.api.logVisibility(this.B,!1);for(var Q=g.V(this.D),W=Q.next();!W.done;W=Q.next())W=W.value,this.api.hasVe(W.element)&&this.api.logVisibility(W.element,!1)};
g.R.show=function(){var Q=this.md;g.y0.prototype.show.call(this);this.Yf();Q||this.api.Wt("onSharePanelOpened")};
g.R.QW9=function(){this.md&&this.Yf()};
g.R.Yf=function(){var Q=this;g.j$(this.element,"ytp-share-panel-loading");g.Rr(this.element,"ytp-share-panel-fail");var W=this.api.getVideoData(),x=this.api.getPlaylistId()&&this.N.checked;W.getSharePanelCommand&&rK(this.api.XZ(),W.getSharePanelCommand,{includeListId:x}).then(function(D){Q.d7()||(g.Rr(Q.element,"ytp-share-panel-loading"),lpQ(Q,D))});
W=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",W);this.updateValue("linkText",W);this.updateValue("shareLinkWithUrl",g.nD("Share link $URL",{URL:W}));SV(this.B);this.api.logVisibility(this.B,!0)};
g.R.onFullscreenToggled=function(Q){!Q&&this.J_()&&fq(this)};
g.R.focus=function(){this.B.focus()};
g.R.U3=function(){g.y0.prototype.U3.call(this);Kt2(this)};g.n(R2l,ir);g.R=R2l.prototype;g.R.U3=function(){z2O(this);ir.prototype.U3.call(this)};
g.R.wi=function(Q){Q.target!==this.dismissButton.element&&(this.fF(!1),this.J.Wt("innertubeCommand",this.onClickCommand))};
g.R.dJ=function(){this.O3=!0;this.fF(!0);this.Vk()};
g.R.mrj=function(Q){this.G=Q;this.Vk()};
g.R.onVideoDataChange=function(Q,W){if(Q=!!W.videoId&&this.videoId!==W.videoId)this.videoId=W.videoId,this.O3=!1,this.F3=!0,this.S=this.pS=!1,z2O(this),sV5(this,!1),this.U=this.B=!1,pc(this),wUO(this);if(Q||!W.videoId)this.uj=this.N=!1;var x,D;if(W==null?0:(x=W.getPlayerResponse())==null?0:(D=x.videoDetails)==null?0:D.isLiveContent)this.PZ(!1);else{var K,l,M;W=g.e((K=W.getWatchNextResponse())==null?void 0:(l=K.playerOverlays)==null?void 0:(M=l.playerOverlayRenderer)==null?void 0:M.productsInVideoOverlayRenderer,
p1k);this.G=this.enabled=!1;if(W){if(K=W==null?void 0:W.featuredProductsEntityKey){l=g.xN.getState().entities;var w;if((w=wW(l,"featuredProductsEntity",K))==null?0:w.productsData){this.PZ(!1);return}}this.enabled=!0;if(!this.N){var S;w=(S=W.badgeInteractionLogging)==null?void 0:S.trackingParams;(this.N=!!w)&&this.J.setTrackingParams(this.badge.element,w||null)}if(!this.uj){var b;if(this.uj=!((b=W.dismissButton)==null||!b.trackingParams)){var z;this.J.setTrackingParams(this.dismissButton.element,((z=
W.dismissButton)==null?void 0:z.trackingParams)||null)}}W.isContentForward&&(S=W.productsData,sV5(this,!0),wUO(this),S=boD(this,S),b=[],S.length>0&&b.push(S[0]),S.length>1&&(z=new g.L({K:"div",Y:"ytp-suggested-action-more-products-icon"}),g.y(this,z),b.push(z),b.push.apply(b,g.C(S.slice(1)))),this.X=new g.L({K:"div",V:b,Y:"ytp-suggested-action-content-forward-container"}),g.y(this,this.X),this.LS.element.append(this.X.element));this.text=g.od(W.text);var k;if(S=(k=W.dismissButton)==null?void 0:k.a11yLabel)this.s3=
g.od(S);this.onClickCommand=W.onClickCommand;this.timing=W.timing;this.HV()}wNQ(this);dd(this);this.Vk()}};
g.R.X9=function(){return!this.G&&this.enabled&&!this.O3&&!this.J.AK()&&!this.fn&&(this.S||this.F3)};
g.R.Oz=function(Q){ir.prototype.Oz.call(this,Q);if(this.B||this.U)this.timing&&Jw(this.timing.preview)&&(this.B=!1,pc(this),this.U=!1,pc(this),this.J.jQ("shopping_overlay_preview_collapsed"),this.J.jQ("shopping_overlay_preview_expanded"),Q=hw(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Jw(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.jQ("shopping_overlay_expanded"),Q.end=this.timing.expanded.endSec*1E3),this.J.HV([Q])),
this.pS=!0,dd(this);pc(this)};
g.R.PZ=function(Q){(this.S=Q)?(GU(this),dd(this,!1)):(z2O(this),this.g7.start());this.Vk()};
g.R.HV=function(Q){var W=this.timing;Q=(Q===void 0?0:Q)+this.J.getCurrentTime();var x=[],D=W.visible,K=W.preview;W=W.expanded;Jw(D)&&(jV5(D,Q),x.push(hw(D.startSec,D.endSec,"shopping_overlay_visible")));Jw(K)&&(jV5(K,Q),D=K.startSec+1,x.push(hw(K.startSec,D,"shopping_overlay_preview_collapsed")),x.push(hw(D,K.endSec,"shopping_overlay_preview_expanded")));Jw(W)&&(jV5(W,Q),x.push(hw(W.startSec,W.endSec,"shopping_overlay_expanded")));this.J.HV(x)};g.n(ofa,g.L);
ofa.prototype.Yf=function(){var Q=this.api.C();this.hO(g.d5(Q)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.md);var W=this.api.getVideoData(),x=!1;this.api.getPresentingPlayerType()===2?x=!!W.videoId&&!!W.isListed&&!!W.author&&!!W.fn&&!!W.profilePicture:g.d5(Q)&&(x=!!W.videoId&&!!W.fn&&!!W.profilePicture&&!g.xW(W)&&!Q.D&&!(Q.S&&this.api.getPlayerSize().width<200));var D=W.profilePicture;Q=g.d5(Q)?W.expandedTitle:W.author;D=D===void 0?
"":D;Q=Q===void 0?"":Q;x?(this.U!==D&&(this.B.style.backgroundImage="url("+D+")",this.U=D),this.updateValue("channelLogoLabel",g.nD("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:Q})),g.j$(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Rr(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.B,x&&this.L);this.api.logVisibility(this.channelName,x&&this.L);this.subscribeButton&&(this.subscribeButton.channelId=W.ZS);this.updateValue("expandedTitle",W.expandedTitle)};g.n(aW,g.y0);aW.prototype.show=function(){g.y0.prototype.show.call(this);this.B.start()};
aW.prototype.hide=function(){g.y0.prototype.hide.call(this);this.B.stop()};
aW.prototype.Lu=function(Q,W){Q==="dataloaded"&&((this.Qx=W.Qx,this.gH=W.gH,isNaN(this.Qx)||isNaN(this.gH))?this.D&&(this.J.jQ("intro"),this.J.removeEventListener(g.Ru("intro"),this.G),this.J.removeEventListener(g.wt("intro"),this.X),this.J.removeEventListener("onShowControls",this.N),this.hide(),this.D=!1):(this.J.addEventListener(g.Ru("intro"),this.G),this.J.addEventListener(g.wt("intro"),this.X),this.J.addEventListener("onShowControls",this.N),Q=new g.jz(this.Qx,this.gH,{priority:9,namespace:"intro"}),
this.J.HV([Q]),this.D=!0))};g.n(G0,g.L);G0.prototype.onClick=function(){this.J.hs()};
G0.prototype.Yf=function(){var Q=!0;g.d5(this.J.C())&&(Q=Q&&this.J.hf().getPlayerSize().width>=480);this.hO(Q);this.updateValue("icon",this.J.m$()?{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Z:{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"}}]}:
{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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.n(YKF,g.L);YKF.prototype.U3=function(){this.B=null;g.L.prototype.U3.call(this)};g.n(d_,g.L);d_.prototype.onClick=function(){this.J.Wt("innertubeCommand",this.U)};
d_.prototype.T=function(Q){Q!==this.X&&(this.update({title:Q,ariaLabel:Q}),this.X=Q);Q?this.show():this.hide()};
d_.prototype.S=function(){this.B.disabled=this.U==null;g.S$(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.QA()};g.n(iv,d_);iv.prototype.onClickCommand=function(Q){g.e(Q,WX)&&this.QA()};
iv.prototype.updateVideoData=function(Q,W){var x,D,K;Q=g.e((x=W.getWatchNextResponse())==null?void 0:(D=x.playerOverlays)==null?void 0:(K=D.playerOverlayRenderer)==null?void 0:K.decoratedPlayerBarRenderer,hQ);x=g.e(Q==null?void 0:Q.playerBarActionButton,g.IQ);this.J.j("web_player_updated_entrypoint")&&(this.G=vc(x==null?void 0:x.text));this.U=x==null?void 0:x.command;d_.prototype.S.call(this)};
iv.prototype.QA=function(){var Q=this.J.j("web_player_updated_entrypoint")?this.G:"",W=this.N.B,x,D=((x=this.J.getLoopRange())==null?void 0:x.type)==="clips";if(W.length>1&&!D){Q=this.J.getProgressState().current*1E3;x=z0(W,Q);Q=W[x].title||"Chapters";if(x!==this.currentIndex||this.D)this.J.Wt("innertubeCommand",W[x].onActiveCommand),this.currentIndex=x;this.D=!1}else this.D=!0;d_.prototype.T.call(this,Q)};g.n(Aw,g.L);Aw.prototype.X=function(Q){g.r(Q.state,32)?VIF(this,this.api.Vv()):this.md&&(g.r(Q.state,16)||g.r(Q.state,1))||this.B.hide()};
Aw.prototype.E4=function(){var Q=this.api.getPlayerStateObject();(g.r(Q,32)||g.r(Q,16))&&PEs(this)};
Aw.prototype.G=function(){this.D=NaN;PEs(this)};
Aw.prototype.hide=function(){this.U&&VIF(this,null);g.L.prototype.hide.call(this)};g.n(vfs,g.L);g.R=vfs.prototype;g.R.onClick=function(){var Q=this;if(this.J.C().fn||this.J.C().S){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(W){Q.zR(W)})}catch(W){this.zR(W)}}else fq(this.message,this.element,!0)};
g.R.zR=function(Q){String(Q).includes("fullscreen error")?g.Bp(Q):g.ql(Q);this.H_()};
g.R.H_=function(){this.disable();this.message.jt(this.element,!0)};
g.R.zo=function(){YY()===this.J.getRootNode()?this.D.start():(this.D.stop(),this.message&&this.message.hide())};
g.R.Ro=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var Q=window.screen.width*.9,W=window.screen.height*.9,x=Math.max(window.outerWidth,window.innerWidth),D=Math.max(window.outerHeight,window.innerHeight);if(x>D!==Q>W){var K=x;x=D;D=K}Q>x&&W>D&&this.H_()}};
g.R.disable=function(){var Q=this;if(!this.message){var W=(Xw(["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.y0(this.J,{K:"div",lj:["ytp-popup","ytp-generic-popup"],Z:{role:"alert",tabindex:"0"},V:[W[0],{K:"a",Z:{href:"https://support.google.com/youtube/answer/6276924",
target:this.J.C().T},m3:W[2]},W[4]]},100,!0);this.message.hide();g.y(this,this.message);this.message.subscribe("show",function(x){Q.U.Cm(Q.message,x)});
g.qf(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.B)();this.B=null}};
g.R.Yf=function(){var Q=Su2(this.J),W=this.J.C().S&&this.J.getPlayerSize().width<250;this.hO(Q&&!W);var x;((x=this.J.C())==null?0:x.j("embeds_use_parent_visibility_in_ve_logging"))?this.J.logVisibility(this.element,this.md&&this.L):this.J.logVisibility(this.element,this.md)};
g.R.Cu=function(Q){if(Q){var W={K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"g",Y:"ytp-fullscreen-button-corner-2",V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",Y:"ytp-fullscreen-button-corner-3",V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{K:"g",Y:"ytp-fullscreen-button-corner-0",V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{K:"g",
Y:"ytp-fullscreen-button-corner-1",V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};Q=g.pq(this.J,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(x){g.Bp(x)})}else W={K:"svg",
Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"g",Y:"ytp-fullscreen-button-corner-0",V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{K:"g",Y:"ytp-fullscreen-button-corner-1",V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{K:"g",Y:"ytp-fullscreen-button-corner-2",V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",Y:"ytp-fullscreen-button-corner-3",
V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},Q=g.pq(this.J,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});Q=this.message?null:Q;this.update({title:Q,icon:W});this.U.Vp().hA()};
g.R.U3=function(){this.message||((0,this.B)(),this.B=null);g.L.prototype.U3.call(this)};
g.R.rG=function(Q){g.L.prototype.rG.call(this,Q);var W;((W=this.J.C())==null?0:W.j("embeds_use_parent_visibility_in_ve_logging"))&&this.J.logVisibility(this.element,this.md&&Q)};g.n(HN,g.L);HN.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.B,!0);var Q=this.B>0?1:-1,W=Math.abs(this.B),x=this.J.Q1().D0;x&&MR(x,Q,W);this.U.isActive()?this.D=!0:(Q=["ytp-jump-spin"],this.B<0&&Q.push("backwards"),this.element.classList.add.apply(this.element.classList,g.C(Q)),g.E3(this.U))};g.n(Uy,d_);Uy.prototype.onClickCommand=function(Q){g.e(Q,CZH)&&this.QA()};
Uy.prototype.updateVideoData=function(){var Q,W;this.U=(Q=J15(this))==null?void 0:(W=Q.onTap)==null?void 0:W.innertubeCommand;d_.prototype.S.call(this)};
Uy.prototype.QA=function(){var Q="",W=this.N.G,x,D=(x=J15(this))==null?void 0:x.headerTitle;x=D?g.od(D):"";var K;D=((K=this.J.getLoopRange())==null?void 0:K.type)==="clips";W.length>1&&!D&&(Q=this.J.getProgressState().current*1E3,K=qnv(W,Q),Q=K!=null?W[K].title:x,K!=null&&K!==this.currentIndex&&(this.J.Wt("innertubeCommand",W[K].onActiveCommand),this.currentIndex=K));d_.prototype.T.call(this,Q)};g.n(qR,g.L);qR.prototype.onClick=function(){this.J.Wt("onCollapseMiniplayer");this.J.logClick(this.element)};
qR.prototype.Yf=function(){this.visible=!this.J.isFullscreen();this.hO(this.visible);this.J.logVisibility(this.element,this.visible&&this.L)};
qR.prototype.rG=function(Q){g.L.prototype.rG.call(this,Q);this.J.logVisibility(this.element,this.visible&&Q)};g.n(BN,g.L);g.R=BN.prototype;g.R.F7=function(Q){this.visible=Q.width>=300||this.fS;this.hO(this.visible);this.J.logVisibility(this.element,this.visible&&this.L)};
g.R.tt3=function(){this.J.C().g7?this.J.isMuted()?this.J.unMute():this.J.mute():fq(this.message,this.element,!0);this.J.logClick(this.element)};
g.R.onVolumeChange=function(Q){this.setVolume(Q.volume,Q.muted)};
g.R.setVolume=function(Q,W){var x=this,D=W?0:Q/100,K=this.J.C();Q=D===0?1:Q>50?1:0;if(this.X!==Q){var l=this.pS;isNaN(l)?ap2(this,Q):rw1(this.KS,function(w){ap2(x,l+(x.X-l)*w)},250);
this.X=Q}D=D===0?1:0;if(this.N!==D){var M=this.T;isNaN(M)?GBh(this,D):rw1(this.uj,function(w){GBh(x,M+(x.N-M)*w)},250);
this.N=D}K.g7&&(K=g.pq(this.J,"Mute","m"),D=g.pq(this.J,"Unmute","m"),this.updateValue("title",W?D:K),this.update({"data-title-no-tooltip":W?"Unmute":"Mute"}),this.tooltip.hA())};
g.R.rG=function(Q){g.L.prototype.rG.call(this,Q);this.J.logVisibility(this.element,this.visible&&Q)};
var pUF=["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"],h2a=["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.n(g.$u,g.L);g.R=g.$u.prototype;g.R.onStateChange=function(Q){this.wE(Q.state);var W;((W=this.J.C())==null?0:W.j("embeds_use_parent_visibility_in_ve_logging"))&&this.J.logVisibility(this.element,this.md&&this.L)};
g.R.wE=function(Q){var W=g.Gr(this.J.getVideoData()),x=!1;Q.isOrWillBePlaying()?Q=W?4:2:g.r(Q,2)?(Q=3,x=W):Q=1;this.element.disabled=x;if(this.B!==Q){W=null;switch(Q){case 2:W=g.pq(this.J,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:W="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:W=g.pq(this.J,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:W="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}Q===
3?this.update({title:W,icon:din(Q)}):(this.update({title:W}),(W=din(Q))&&this.B&&this.B!==3?Och(this.transition,this.element,W):this.updateValue("icon",W));this.tooltip.hA();this.B=Q}};
g.R.onVideoDataChange=function(){g.S$(this.element,"ytp-play-button-playlist",g.iL(this.J))};
g.R.Aq=function(Q){this.J.logClick(this.element);if(this.J.getPlayerStateObject().isOrWillBePlaying())this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.getPlayerStateObject().isCued()){var W={},x;if((x=this.J.getVideoData())==null?0:x.X)W.cttAuthInfo={token:this.J.getVideoData().X,videoId:this.J.getVideoData().videoId};gK("direct_playback",W);this.J.v3().timerName="direct_playback"}else this.B!==3||this.J.C().j("html5_no_csi_on_replay")||og(this.J.v3());this.J.playVideo()}this.J.isMinimized()&&
(Q==null?void 0:Q.type)==="click"&&this.element.blur()};
g.R.rG=function(Q){g.L.prototype.rG.call(this,Q);var W;((W=this.J.C())==null?0:W.j("embeds_use_parent_visibility_in_ve_logging"))&&this.J.logVisibility(this.element,this.md&&Q)};g.n(g.IW,g.L);g.R=g.IW.prototype;g.R.onVideoDataChange=function(){A15(this);this.N&&(this.mJ(this.N),this.N=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.N=this.W(this.J,"progresssync",this.gs);this.D=Hoa(this);ioO(this);this.C6(this.J.hf().getPlayerSize())};
g.R.C6=function(Q){Q=Q===void 0?this.J.hf().getPlayerSize():Q;var W,x=((W=this.J.getLoopRange())==null?void 0:W.type)==="clips";Q=(g.iL(this.J)||this.B&&g.Bd(this.J)&&!this.J.j("web_hide_next_button")||Uil(this))&&!x&&(this.B||Q.width>=400);this.hO(Q);this.J.logVisibility(this.element,Q)};
g.R.onClick=function(Q){this.J.logClick(this.element);var W=!0;this.G?W=g.Md(Q,this.J):Q.preventDefault();W&&(this.B&&this.J.getPresentingPlayerType()===5?this.J.publish("ytoprerollinternstitialnext"):this.B?(og(this.J.v3()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.D?this.J.seekTo(0):(og(this.J.v3()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))};
g.R.gs=function(){var Q=Hoa(this);Q!==this.D&&(this.D=Q,ioO(this))};
g.R.U3=function(){this.U&&(this.U(),this.U=null);A15(this);g.L.prototype.U3.call(this)};g.n(BPa,g.L);g.R=BPa.prototype;g.R.oL=function(Q){this.AT(Q.pageX);this.P7(Q.pageX+Q.deltaX);$i2(this)};
g.R.AT=function(Q){this.uj=Q-this.X3};
g.R.P7=function(Q){Q-=this.X3;!isNaN(this.uj)&&this.thumbnails.length>0&&(this.T=Q-this.uj,this.thumbnails.length>0&&this.T!==0&&(this.D=this.S+this.T,Q=gf5(this,this.D),this.D<=this.B/2&&this.D>=c11(this)?(this.api.seekTo(Q,!1,void 0,void 0,25),g.SZ(this.F3,"transform","translateX("+(this.D-this.B/2)+"px)"),qKl(this,Q)):this.D=this.S))};
g.R.jq=function(){this.pS&&(this.pS.XN=!0);var Q=(0,g.a8)()-this.eZ<300;if(Math.abs(this.T)<5&&!Q){this.eZ=(0,g.a8)();Q=this.uj+this.T;var W=this.B/2-Q;this.AT(Q);this.P7(Q+W);$i2(this);this.api.logClick(this.X)}$i2(this)};
g.R.E9=function(){mo(this,this.api.getCurrentTime())};
g.R.play=function(Q){this.api.seekTo(gf5(this,this.D),void 0,void 0,void 0,26);this.api.playVideo();Q&&this.api.logClick(this.playButton)};
g.R.onExit=function(Q){this.api.seekTo(this.g7,void 0,void 0,void 0,63);this.api.playVideo();Q&&this.api.logClick(this.dismissButton)};
g.R.OV=function(Q,W){this.X3=Q;this.B=W;mo(this,this.api.getCurrentTime())};
g.R.enable=function(){this.isEnabled||(this.isEnabled=!0,this.g7=this.api.getCurrentTime(),qKl(this,this.g7),g.S$(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.LS=this.W(this.element,"wheel",this.oL),this.logVisibility(this.isEnabled))};
g.R.disable=function(){this.isEnabled=!1;this.hide();g.S$(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.LS&&this.mJ(this.LS);this.logVisibility(this.isEnabled)};
g.R.reset=function(){this.disable();this.N=[];this.fS=!1};
g.R.logVisibility=function(Q){this.api.logVisibility(this.element,Q);this.api.logVisibility(this.X,Q);this.api.logVisibility(this.dismissButton,Q);this.api.logVisibility(this.playButton,Q)};
g.R.U3=function(){for(;this.U.length;){var Q=void 0;(Q=this.U.pop())==null||Q.dispose()}g.L.prototype.U3.call(this)};
g.n(Ip1,g.L);g.n(mi5,g.L);g.n(y1D,g.L);g.n(NR,g.L);NR.prototype.yh=function(Q){return Q==="PLAY_PROGRESS"?this.S:Q==="LOAD_PROGRESS"?this.G:Q==="LIVE_BUFFER"?this.X:this.D};ZoD.prototype.update=function(Q,W,x,D){x=x===void 0?0:x;this.width=W;this.N=x;this.B=W-x-(D===void 0?0:D);this.position=g.wS(Q,x,x+this.B);this.D=this.position-x;this.U=this.D/this.B};g.n(Ltl,g.L);g.n(g.yL,g.ze);g.R=g.yL.prototype;
g.R.Gj=function(){var Q=!1,W=this.api.getVideoData();if(!W)return Q;this.api.jQ("timedMarkerCueRange");Oo1(this);for(var x=g.V(W.Vj),D=x.next();!D.done;D=x.next()){D=D.value;var K=void 0,l=(K=this.g7[D])==null?void 0:K.markerType;K=void 0;var M=(K=this.g7[D])==null?void 0:K.markers;if(!M)break;if(l==="MARKER_TYPE_TIMESTAMPS"){Q=g.V(M);for(l=Q.next();!l.done;l=Q.next()){K=l.value;l=new Ltl;M=void 0;l.title=((M=K.title)==null?void 0:M.simpleText)||"";l.timeRangeStartMillis=Number(K.startMillis);l.B=
Number(K.durationMillis);var w=M=void 0;l.onActiveCommand=(w=(M=K.onActive)==null?void 0:M.innertubeCommand)!=null?w:void 0;xC2(this,l)}DCD(this,this.G);Q=this.G;l=this.kX;K=[];M=null;for(w=0;w<Q.length;w++){var S=Q[w].timeRangeStartMillis;if(!isNaN(S)&&Q[w].onActiveCommand){var b=void 0,z=(b=Q[w].B)!=null?b:1E4;M&&M.end>S&&(M.end=S);S=IBz(S,S+z);K.push(S);M=S;l[S.id]=Q[w].onActiveCommand}}this.api.HV(K);this.gH=this.g7[D];Q=!0}else if(l==="MARKER_TYPE_HEATMAP"){D=this.g7[D];z=b=K=S=w=M=void 0;if(D&&
D.markers){l=(K=(z=D.markersMetadata)==null?void 0:(b=z.heatmapMetadata)==null?void 0:b.minHeightDp)!=null?K:0;K=(M=(S=D.markersMetadata)==null?void 0:(w=S.heatmapMetadata)==null?void 0:w.maxHeightDp)!=null?M:60;M=this.B.length;w=null;for(S=0;S<M;S++){z=this.B[S].startTime;var k=S===M-1?Infinity:this.B[S+1].startTime;S===this.N.length&&TPn(this);b=[];w&&b.push(w);for(var X=g.V(D.markers),u=X.next();!u.done;u=X.next()){u=u.value;var Y=Number(u.startMillis);Y>=z&&Y<=k&&b.push(u)}K>0&&(this.pS.style.height=
K+"px");z=this.N[S];k=b;u=l;var v=K,J=S===0;J=J===void 0?!1:J;e22(z,v);X=k;Y=z.U;J=J===void 0?!1:J;var h=1E3/X.length,G=[];G.push({x:0,y:100});for(var H=0;H<X.length;H++){var I=(H+.5)*h,c=100-g.wS((X[H].intensityScoreNormalized||0)*100,u/Y*100,v/Y*100);H!==0||J||G.push({x:0,y:c});G.push({x:I,y:c});H===X.length-1&&G.push({x:1E3,y:c})}G.push({x:1E3,y:100});X=G;k=k.length===0?"":wp5(X);z.api.j("delhi_modern_web_player")?z.D.setAttribute("d",k):z.X.setAttribute("d",k);z.ET=k!=="";g.S$(z.api.getRootNode(),
"ytp-heat-map",z.ET);z.api.j("delhi_modern_web_player")&&(z.D.style.display="block",z.N.style.display="none",z.B.style.display="none");b.length>0&&(w=b[b.length-1])}g.e3(this)}K=void 0;l=[];if(D=(K=D.markersDecoration)==null?void 0:K.timedMarkerDecorations)for(D=g.V(D),K=D.next();!K.done;K=D.next())K=K.value,S=w=M=void 0,l.push({visibleTimeRangeStartMillis:(M=K.visibleTimeRangeStartMillis)!=null?M:-1,visibleTimeRangeEndMillis:(w=K.visibleTimeRangeEndMillis)!=null?w:-1,decorationTimeMillis:(S=K.decorationTimeMillis)!=
null?S:NaN,label:K.label?g.od(K.label):""});D=l;this.heatMarkersDecorations=D}}W.jC=this.G;g.S$(this.element,"ytp-timed-markers-enabled",Q);return Q};
g.R.OV=function(){g.e3(this);Lc(this);DCD(this,this.G);if(this.U){var Q=g.Yg(this.element).x||0;this.U.OV(Q,this.X)}};
g.R.onClickCommand=function(Q){if(Q=g.e(Q,WX)){var W=Q.key;Q.isVisible&&W&&MF2(this,W)}};
g.R.FUj=function(Q){this.api.Wt("innertubeCommand",this.kX[Q.id])};
g.R.QA=function(){Lc(this);var Q=this.api.getCurrentTime();(Q<this.clipStart||Q>this.clipEnd)&&this.Wa()};
g.R.Gk=function(Q){if(!Q.defaultPrevented){var W=!1;switch(Q.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);W=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);W=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);W=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);W=!0;break;case 38:this.api.j("enable_key_press_seek_logging")&&tw(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);W=!0;break;case 40:this.api.j("enable_key_press_seek_logging")&&tw(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),W=!0}W&&Q.preventDefault()}};
g.R.Lu=function(Q,W){this.updateVideoData(W,Q==="newdata")};
g.R.K3Z=function(){this.Lu("newdata",this.api.getVideoData())};
g.R.updateVideoData=function(Q,W){W=W===void 0?!1:W;var x=!!Q&&Q.ET();if(x&&(Wd(Q)||sRn(this)?this.QN=!1:this.QN=Q.allowLiveDvr,g.S$(this.api.getRootNode(),"ytp-enable-live-buffer",!(Q==null||!Wd(Q))),this.api.j("enable_custom_playhead_parsing"))){var D,K,l,M=g.e((D=Q.getWatchNextResponse())==null?void 0:(K=D.playerOverlays)==null?void 0:(l=K.playerOverlayRenderer)==null?void 0:l.decoratedPlayerBarRenderer,hQ);if(M==null?0:M.progressColor)for(D=0;D<this.B.length;D++)this.B[D].yh("PLAY_PROGRESS").style.background=
g.Nr(M.progressColor);M=g.e(M==null?void 0:M.playhead,ecA);var w,S;D=(M==null?void 0:(w=M.playheadImage)==null?void 0:w.thumbnails)&&(M==null?void 0:(S=M.playheadImage)==null?void 0:S.thumbnails[0].url);g.S$(this.SU,"ytp-decorated-scrubber-container",!!D);var b;if(M==null?0:(b=M.loggingDirectives)==null?0:b.trackingParams){var z;this.api.setTrackingParams(this.cD,M==null?void 0:(z=M.loggingDirectives)==null?void 0:z.trackingParams);this.api.createServerVe(this.cD,this)}D&&(this.cD.src=D)}J64(this,
this.api.Fi());if(W){if(x){W=Q.clipEnd;this.clipStart=Q.clipStart;this.clipEnd=W;Qi(this);for(Oy(this,this.T,this.SZ);this.N.length>0;)this.N.pop().dispose();this.heatMarkersDecorations=[];this.Vj={};var k;(k=this.U)==null||k.reset();lD(this);g.S$(this.api.getRootNode(),"ytp-fine-scrubbing-exp",g_(this))}else this.Wa();this.TC()}if(Q){var X;k=((X=this.k6)==null?void 0:X.type)==="clips";if(X=!Q.isLivePlayback){X=this.api.getVideoData();W=g.af(X);x=FtD(X);var u;X=W!=null||x!=null&&x.length>0||((u=X.QO)==
null?void 0:u.length)>0}if(X&&!k){u=this.api.getVideoData();k=g.af(u);X=!1;if(k==null?0:k.markersMap){X=this.api.getVideoData();var Y;X.H2=((Y=k.visibleOnLoad)==null?void 0:Y.key)||X.H2;Y=g.V(k.markersMap);for(k=Y.next();!k.done;k=Y.next())k=k.value,k.key&&k.value&&(this.Vj[k.key]=k.value,k.value.onChapterRepeat&&(X.sL=k.value.onChapterRepeat));X.H2!=null&&MF2(this,X.H2);X=!0}var v;if(((v=u.QO)==null?void 0:v.length)>0){v=g.xN.getState().entities;Y=g.V(u.QO);for(k=Y.next();!k.done;k=Y.next())if(k=
k.value,x=void 0,W=(x=wW(v,"macroMarkersListEntity",k))==null?void 0:x.markersList,w=x=void 0,((x=W)==null?void 0:x.markerType)==="MARKER_TYPE_TIMESTAMPS"||((w=W)==null?void 0:w.markerType)==="MARKER_TYPE_HEATMAP")this.g7[k]=W;X=this.Gj()||X}!X&&(v=FtD(u))&&(QRO(this,v),u.SU=this.B,tIs(this));zAQ(this,null);Q.sD&&this.N.length===0&&(Q=Q.sD,v=Q.key,Q.isVisible&&v&&MF2(this,v))}else r14(this),Oo1(this)}Lc(this)};
g.R.k1f=function(Q){this.S&&!g.r(Q.state,32)&&this.api.getPresentingPlayerType()!==3&&this.S.cancel();var W;((W=this.U)==null?0:W.isEnabled)&&g.r(Q.state,8)&&this.api.pauseVideo();Q=this.api.getPresentingPlayerType()===2||!this.api.Fi()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.S$(this.uG,"ytp-hide-scrubber-button",Q)};
g.R.Dj=function(Q){var W=!!this.k6!==!!Q,x=this.k6;this.k6=Q;zAQ(this,x);(Q==null?void 0:Q.type)!=="clips"&&Q||(Q?(this.updateValue("clipstarticon",BVn()),this.updateValue("clipendicon",BVn()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",aLa()),this.updateValue("clipendicon",hf1()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),W&&(this.updateVideoData(this.api.getVideoData(),
!0),g.e3(this)),Qi(this));Oy(this,this.T,this.SZ)};
g.R.Drt=function(Q,W,x){var D=g.Yg(this.element),K=Zo(this).B,l=x?x.getAttribute("data-tooltip"):void 0,M=x?x.getAttribute("data-position"):void 0,w=x?x.getAttribute("data-offset-y"):void 0;w=w?Number(w):0;M&&(Q=qr(this.D,Number(x.getAttribute("data-position")),0)*K+g.Yg(this.progressBar).x);this.Pt.x=Q-D.x;this.Pt.y=W-D.y;Q=Zo(this);x=FO(this,Q);W=0;var S;if((S=this.api.getVideoData())==null?0:Wd(S))(S=this.api.getProgressState().seekableEnd)&&x>S&&(x=S,Q.position=qr(this.D,S)*Zo(this).B),W=this.D.U;
sRn(this)&&(W=this.D.U);S=l||g.JI(this.QN?x-this.D.B:x-W);W=Q.position+this.eK;x-=this.api.aW();var b;if((b=this.U)==null||!b.isEnabled)if(this.api.Vv()){if(this.B.length>1){b=Ey(this,this.Pt.x,!0);if(!this.k6)for(D=0;D<this.B.length;)g.S$(this.B[D].B,"ytp-exp-chapter-hover-effect",D===b),D++;if(this.N.length>1)for(D=0;D<this.B.length;D++)g.S$(this.N[D].element,"ytp-heatmap-hover",D===b)}if(this.G.length>0)for(b=this.Pt.x,D=g.V(this.G),K=D.next();!K.done;K=D.next())K=K.value,M=fc(this,K.timeRangeStartMillis/
(this.D.B*1E3),Zo(this)),g.S$(K.element,"ytp-timed-marker-hover",M<=b&&M+6>=b);D=this.tooltip.scale;w=(isNaN(w)?0:w)-45*D;this.api.j("web_key_moments_markers")?this.gH?(b=qnv(this.G,x*1E3),b=b!=null?this.G[b].title:""):(b=z0(this.B,x*1E3),b=this.B[b].title):(b=z0(this.B,x*1E3),b=this.B[b].title);b||(w+=16*D);this.tooltip.scale===.6&&(g.ET(this.api.C())?(w=this.api.hf().getPlayerSize().height-225,w=b?w+110:w+110+16):w=b?110:126);D=z0(this.B,x*1E3);this.F3=kX5(this,x,D)?D:kX5(this,x,D+1)?D+1:-1;g.S$(this.api.getRootNode(),
"ytp-progress-bar-snap",this.F3!==-1&&this.B.length>1);D=!1;K=g.V(this.heatMarkersDecorations);for(M=K.next();!M.done;M=K.next()){M=M.value;var z=x*1E3;z>=M.visibleTimeRangeStartMillis&&z<=M.visibleTimeRangeEndMillis&&(b=M.label,S=g.JI(M.decorationTimeMillis/1E3),D=!0)}this.hn!==D&&(this.hn=D,this.api.logVisibility(this.UT,this.hn));g.S$(this.api.getRootNode(),"ytp-progress-bar-decoration",D);D=160*this.tooltip.scale*2;K=b.length*(this.uj?8.55:5.7);K=K<=D?K:D;M=K<160*this.tooltip.scale;D=3;!M&&K/
2>Q.position&&(D=1);!M&&K/2>this.X-Q.position&&(D=2);this.api.C().S&&(w-=10);this.N.length&&this.N[0].ET&&(w-=14*(this.uj?2:1),this.LS||(this.LS=!0,this.api.logVisibility(this.pS,this.LS)));var k;if(g_(this)&&(((k=this.U)==null?0:k.isEnabled)||this.s3>0)){var X;w-=((X=this.U)==null?0:X.isEnabled)?x3(this):this.s3}k=void 0;g_(this)&&!this.api.j("web_player_hide_fine_scrubbing_edu")&&(k="Pull up for precise seeking",this.fS||(this.fS=!0,this.api.logVisibility(this.gE,this.fS)));this.tooltip.LJ(W,x,
S,!!l,w,b,D,k)}else this.tooltip.LJ(W,x,S,!!l,w);g.j$(this.api.getRootNode(),"ytp-progress-bar-hover");bE5(this)};
g.R.Fm3=function(){this.TC();g.Rr(this.api.getRootNode(),"ytp-progress-bar-hover");this.LS&&(this.LS=!1,this.api.logVisibility(this.pS,this.LS));this.fS&&(this.fS=!1,this.api.logVisibility(this.gE,this.fS))};
g.R.yr3=function(Q,W){g_(this)&&this.U&&(this.U.fS?mo(this.U,this.api.getCurrentTime()):NPQ(this.U),this.U.show(),g.S$(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.U.isEnabled));this.IU&&(this.IU.dispose(),this.IU=null);this.xN=W;this.vZ=this.api.getCurrentTime();this.B.length>1&&this.F3!==-1?this.api.seekTo(this.B[this.F3].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(FO(this,Zo(this)),!1,void 0,void 0,7);g.j$(this.element,"ytp-drag");(this.J2=this.api.getPlayerStateObject().isOrWillBePlaying())&&
this.api.pauseVideo()};
g.R.NPf=function(){if(g_(this)&&this.U){var Q=x3(this);this.s3>=Q*.5?(this.U.enable(),mo(this.U,this.api.getCurrentTime()),Ch5(this,Q)):lD(this)}if(g.r(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var W;if((W=this.U)==null?0:W.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.B.length>1&&this.F3!==-1)this.api.j("html5_enable_progress_bar_slide_seek_logging")&&tw(this,this.vZ,this.B[this.F3].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER",
"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.B[this.F3].startTime/1E3,void 0,void 0,void 0,7);else{Q=FO(this,Zo(this));this.api.j("html5_enable_progress_bar_slide_seek_logging")&&tw(this,this.vZ,Q,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(Q,void 0,void 0,void 0,7);W=g.V(this.heatMarkersDecorations);for(var x=W.next();!x.done;x=W.next())x=x.value,Q*1E3>=x.visibleTimeRangeStartMillis&&Q*1E3<=x.visibleTimeRangeEndMillis&&
this.api.logClick(this.UT)}g.Rr(this.element,"ytp-drag");this.J2&&!g.r(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
g.R.Kmp=function(Q,W){Q=Zo(this);Q=FO(this,Q);this.api.seekTo(Q,!1,void 0,void 0,7);var x;g_(this)&&((x=this.U)==null?0:x.fS)&&(mo(this.U,Q),this.U.isEnabled||(x=x3(this),this.s3=g.wS(this.xN-W-10,0,x),Ch5(this,this.s3)))};
g.R.TC=function(){this.tooltip.b5()};
g.R.dW=function(){this.k6||(this.updateValue("clipstarticon",ps4()),this.updateValue("clipendicon",ps4()),g.j$(this.element,"ytp-clip-hover"))};
g.R.lL=function(){this.k6||(this.updateValue("clipstarticon",aLa()),this.updateValue("clipendicon",hf1()),g.Rr(this.element,"ytp-clip-hover"))};
g.R.Wa=function(){this.clipStart=0;this.clipEnd=Infinity;Qi(this);Oy(this,this.T,this.SZ)};
g.R.nNf=function(Q){Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())if(W=W.value,W.visible){var x=W.getId();if(!this.X3[x]){var D=g.Qz("DIV");W.tooltip&&D.setAttribute("data-tooltip",W.tooltip);this.X3[x]=W;this.Gn[x]=D;g.KT(D,W.style);XAO(this,x);this.api.C().j("disable_ad_markers_on_content_progress_bar")||this.B[0].N.appendChild(D)}}else vT5(this,W)};
g.R.kyZ=function(Q){Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())vT5(this,W.value)};
g.R.fq=function(Q){this.U&&(this.U.onExit(Q!=null),lD(this))};
g.R.eX=function(Q){this.U&&(this.U.play(Q!=null),lD(this))};
g.R.bA5=function(){J64(this,this.api.Fi())};
g.R.U3=function(){J64(this,!1);g.ze.prototype.U3.call(this)};g.n(jA,g.L);jA.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
jA.prototype.Yf=function(){var Q=!1;this.J.getOptions().includes("remote")&&(Q=this.J.getOption("remote","receivers").length>1);this.hO(Q&&this.J.hf().getPlayerSize().width>=400);this.J.logVisibility(this.element,this.md);var W=1;Q&&this.isActive()&&(W=2);if(this.B!==W){this.B=W;switch(W){case 1:this.updateValue("icon",{K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{K:"path",Tn:!0,Z:{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.J44())}g.S$(this.element,"ytp-remote-button-active",this.isActive())}};
jA.prototype.U=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var Q=this.F0,W=this.element;if(Q.J_())Q.X0();else{Q.initialize();a:{var x=g.V(Q.Ar.items);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D.priority===1){x=D;break a}x=null}x&&(x.open(),Q.jt(W));Q.jt(W)}}this.J.logClick(this.element)};g.n(Mv,g.L);Mv.prototype.B=function(Q){var W=this.J.C(),x=400;this.J.j("web_player_small_hbp_settings_menu")&&W.X?x=300:W.S&&(x=200);Q=this.U&&Q.width>=x;this.hO(Q);this.J.j("embeds_use_parent_visibility_in_ve_logging")?this.J.logVisibility(this.element,Q&&this.L):this.J.logVisibility(this.element,Q)};
Mv.prototype.D=function(){if(this.F0.md)this.F0.X0();else{var Q=g.GZ(this.J.x6());Q&&!Q.loaded&&(Q.AA("tracklist",{includeAsr:!0}).length||Q.load());this.J.logClick(this.element);this.F0.jt(this.element)}};
Mv.prototype.updateBadge=function(){var Q=this.J.isHdr(),W=this.J.getPresentingPlayerType(),x=W!==2&&W!==3,D=g.UX(this.J),K=x&&!!g.Hd(this.J.x6());W=K&&D.displayMode===1;D=K&&D.displayMode===2;x=(K=W||D)||!x?null:this.J.getPlaybackQuality();g.S$(this.element,"ytp-hdr-quality-badge",Q);g.S$(this.element,"ytp-hd-quality-badge",!Q&&(x==="hd1080"||x==="hd1440"));g.S$(this.element,"ytp-4k-quality-badge",!Q&&x==="hd2160");g.S$(this.element,"ytp-5k-quality-badge",!Q&&x==="hd2880");g.S$(this.element,"ytp-8k-quality-badge",
!Q&&x==="highres");g.S$(this.element,"ytp-3d-badge-grey",!Q&&K&&W);g.S$(this.element,"ytp-3d-badge",!Q&&K&&D)};g.n(R7,ln);R7.prototype.isLoaded=function(){var Q=g.qt(this.J.x6());return Q!==void 0&&Q.loaded};
R7.prototype.Yf=function(){g.qt(this.J.x6())!==void 0&&this.J.getPresentingPlayerType()!==3?this.B||(this.F0.XE(this),this.B=!0):this.B&&(this.F0.le(this),this.B=!1);jV(this,this.isLoaded())};
R7.prototype.onSelect=function(Q){this.isLoaded();Q?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",Q)};
R7.prototype.U3=function(){this.B&&this.F0.le(this);ln.prototype.U3.call(this)};g.n(wH,g.yh);wH.prototype.Yf=function(){var Q=this.J.getAvailableAudioTracks();Q.length>1?(this.ZV(g.pm(Q,this.B)),this.tracks=g.uZ(Q,this.B,this),this.countLabel.iy(Q.length?" ("+Q.length+")":""),this.publish("size-change"),this.ND(this.B(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
wH.prototype.ZA=function(Q){g.yh.prototype.ZA.call(this,Q);this.J.setAudioTrack(this.tracks[Q]);this.F0.tv()};
wH.prototype.B=function(Q){return Q.toString()};g.n(SA,ln);
SA.prototype.U=function(){var Q=this.J.getPresentingPlayerType();if(Q!==2&&Q!==3&&g.Bd(this.J))this.B||(this.F0.XE(this),this.B=!0,this.D.push(this.W(this.J,"videodatachange",this.U)),this.D.push(this.W(this.J,"videoplayerreset",this.U)),this.D.push(this.W(this.J,"onPlaylistUpdate",this.U)),this.D.push(this.W(this.J,"autonavchange",this.N)),Q=this.J.getVideoData(),this.N(Q.autonavState),this.J.logVisibility(this.element,this.B));else if(this.B){this.F0.le(this);this.B=!1;Q=g.V(this.D);for(var W=Q.next();!W.done;W=
Q.next())this.mJ(W.value)}};
SA.prototype.N=function(Q){jV(this,Q!==1)};
SA.prototype.onSelect=function(Q){this.J.hC(Q?2:1);this.B&&(this.J.logVisibility(this.element,this.B),this.J.logClick(this.element))};
SA.prototype.U3=function(){this.B&&this.F0.le(this);ln.prototype.U3.call(this)};g.n(hAz,g.rZ);hAz.prototype.onClick=function(Q){Q.preventDefault();var W,x;(W=g.oN(this.J))==null||(x=W.Xy())==null||x.X0();var D,K;(D=g.oN(this.J))==null||(K=D.Rs())==null||K.jt(Q.target)};g.n(aZ2,g.yh);g.R=aZ2.prototype;
g.R.QB=function(){var Q=this.J.getPresentingPlayerType();if(Q!==2&&Q!==3){this.F3=this.J.VT();Q=this.J.getAvailableQualityLevels();if(this.B){this.N={};var W=g.bL(this.J,"getAvailableQualityData",[]);W=g.V(W);for(var x=W.next();!x.done;x=W.next())x=x.value,this.N[x.qualityLabel]=x;W=Object.keys(this.N);Q[Q.length-1]==="auto"&&W.push("auto");this.KS=new Set(Q)}else if(this.X){x=g.bL(this.J,"getAvailableQualityData",[]);W=[];x=g.V(x);for(var D=x.next();!D.done;D=x.next())D=D.value,this.T[D.quality]=
D,D.quality&&W.push(D.quality);Q[Q.length-1]==="auto"&&W.push("auto")}else W=Q;g.O_4(this.J)&&this.J.Yr()&&W.unshift("missing-qualities");Es5(this.J)&&W.unshift("inline-survey");this.ZV(W);Q=this.J.getVideoData().cotn?!0:!1;x=this.pS.yv();x=!g.ET(this.J.C())||!(Q===void 0?0:Q)||!(x===void 0||x);Q=this.U;x=x===void 0?!1:x;Q.sK&&g.S$(Q.Nj("ytp-panel-footer"),"ytp-panel-hide-footer",x===void 0?!1:x);if(W.length){this.Nh();this.enable(!0);return}}this.enable(!1)};
g.R.Nh=function(){if(this.B){var Q=this.J.getPreferredQuality();this.KS.has(Q)&&(this.G=this.J.getPlaybackQuality(),this.uj=this.J.getPlaybackQualityLabel(),Q==="auto"?(this.ND(Q),this.iy(this.VD(Q))):this.ND(this.uj))}else Q=this.J.getPreferredQuality(),this.options[Q]&&(this.G=this.J.getPlaybackQuality(),this.ND(Q),Q==="auto"&&this.iy(this.VD(Q)))};
g.R.ZA=function(Q){if(Q!=="missing-qualities"){g.yh.prototype.ZA.call(this,Q);var W=this.B?this.N[Q]:this.T[Q];var x=W==null?void 0:W.quality,D=W==null?void 0:W.formatId,K=W==null?void 0:W.paygatedQualityDetails;W=K==null?void 0:K.endpoint;if(K){var l;K=(l=this.options[Q])==null?void 0:l.element;this.J.logClick(K)}if(this.B){var M,w;if((M=g.e(W,g.ufY))==null?0:(w=M.popup)==null?0:w.notificationActionRenderer)this.J.Wt("innertubeCommand",W);else if(W){this.J.Wt("innertubeCommand",W);return}D?this.J.setPlaybackQuality(x,
D):this.J.setPlaybackQuality(x)}else{if(this.X){var S,b;if((S=g.e(W,g.ufY))==null?0:(b=S.popup)==null?0:b.notificationActionRenderer)this.J.Wt("innertubeCommand",W);else if(W){this.J.Wt("innertubeCommand",W);return}}this.J.setPlaybackQuality(Q)}this.F0.X0();this.QB()}};
g.R.open=function(){for(var Q=g.V(Object.values(this.options)),W=Q.next();!W.done;W=Q.next()){W=W.value;var x=void 0;this.J.hasVe((x=W)==null?void 0:x.element)&&(x=void 0,this.J.logVisibility((x=W)==null?void 0:x.element,!0))}g.yh.prototype.open.call(this);this.J.logClick(this.element)};
g.R.f9=function(Q,W,x){var D=this;if(Q==="missing-qualities")return new g.rZ({K:"a",lj:["ytp-menuitem"],Z:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.C().T,tabindex:"0",role:"menuitemradio"},V:[{K:"div",lj:["ytp-menuitem-label"],m3:"{{label}}"}]},W,this.VD(Q));if(Q!=="inline-survey"){var K,l=(K=this.B?this.N[Q]:this.T[Q])==null?void 0:K.paygatedQualityDetails;K=l==null?void 0:l.veType;l=l==null?void 0:l.trackingParams;W=g.yh.prototype.f9.call(this,Q,W,x);l?(this.J.createServerVe(W.element,
this,!0),this.J.setTrackingParams(W.element,l)):K&&this.J.createClientVe(W.element,this,K,!0);return W}Q=[{K:"span",m3:"Looks good?"}];x=g.V([!0,!1]);l=x.next();for(K={};!l.done;K={u5:void 0},l=x.next())K.u5=l.value,l=new g.L({K:"span",Y:"ytp-menuitem-inline-survey-response",V:[K.u5?qU2():d5l()],Z:{tabindex:"0",role:"button"}}),l.listen("click",function(M){return function(){var w=D.J.app.w7();w&&(w.qj("iqsr",{tu:M.u5}),w.getVideoData().yU=!0);D.F0.X0();D.QB()}}(K)),Q.push(l);
return new g.rZ({K:"div",Y:"ytp-menuitem",Z:{"aria-disabled":"true"},V:[{K:"div",lj:["ytp-menuitem-label"],V:Q}]},W)};
g.R.VD=function(Q,W){W=W===void 0?!1:W;if(Q==="missing-qualities")return{K:"div",m3:"Missing options?"};if(Q==="inline-survey")return"";var x=this.X||this.B?[iE1(this,Q,W,!1)]:[dC1(this,Q)];var D=this.J.getPreferredQuality();W||D!=="auto"||Q!=="auto"||(x.push(" "),this.B?x.push(iE1(this,this.uj,W,!0,["ytp-menu-label-secondary"])):this.X?x.push(iE1(this,this.G,W,!0,["ytp-menu-label-secondary"])):x.push(dC1(this,this.G,["ytp-menu-label-secondary"])));return{K:"div",V:x}};g.n(bD,g.L);bD.prototype.init=function(){this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.N);this.updateValue("stepvalue",this.G);this.updateValue("slidervalue",this.U);A6F(this,this.U)};
bD.prototype.S=function(){HEF(this,Number(this.B.value));this.B.focus()};
bD.prototype.X=function(Q){if(!Q.defaultPrevented){switch(Q.code){case "ArrowDown":Q=-this.G;break;case "ArrowUp":Q=this.G;break;default:return}HEF(this,Math.min(this.N,Math.max(Number((this.U+Q).toFixed(2)),this.D)))}};g.n(sD,bD);sD.prototype.S=function(){bD.prototype.S.call(this);this.T&&UCs(this)};
sD.prototype.F3=function(){this.uj()};
sD.prototype.pS=function(){this.J.setPlaybackRate(this.U,!0)};
sD.prototype.X=function(Q){bD.prototype.X.call(this,Q);this.uj();UCs(this);Q.preventDefault()};g.n(zH,g.L);g.R=zH.prototype;g.R.init=function(){this.QV(this.B);this.updateValue("minvalue",this.U);this.updateValue("maxvalue",this.D)};
g.R.s$=function(Q){if(!Q.defaultPrevented){switch(Q.keyCode){case 37:case 40:var W=-this.S;break;case 39:case 38:W=this.S;break;default:return}this.QV(this.B+W);Q.preventDefault()}};
g.R.Y8=function(Q){var W=this.B;W+=(Q.deltaX||-Q.deltaY)<0?-this.T:this.T;this.QV(W);Q.preventDefault()};
g.R.eq=function(Q){Q=(Q-g.Yg(this.N).x)/this.uj*this.range+this.U;this.QV(Q)};
g.R.QV=function(Q,W){W=W===void 0?"":W;Q=g.wS(Q,this.U,this.D);W===""&&(W=Q.toString());this.updateValue("valuenow",Q);this.updateValue("valuetext",W);this.pS.style.left=(Q-this.U)/this.range*(this.uj-this.fS)+"px";this.B=Q};
g.R.focus=function(){this.LS.focus()};g.n(k3,zH);k3.prototype.F3=function(){this.J.setPlaybackRate(this.B,!0)};
k3.prototype.QV=function(Q){zH.prototype.QV.call(this,Q,Bos(this,Q).toString());this.X&&(qAs(this),this.KS())};
k3.prototype.updateValues=function(){var Q=this.J.getPlaybackRate();Bos(this,this.B)!==Q&&(this.QV(Q),qAs(this))};g.n($Cv,g.ze);$Cv.prototype.focus=function(){this.B.focus()};g.n(IZh,AE);g.n(mCz,g.yh);g.R=mCz.prototype;g.R.VD=function(Q){return Q==="1"?"Normal":Q.toLocaleString()};
g.R.Yf=function(){var Q,W=(Q=this.J.getVideoData())==null?void 0:Q.aQ();Q=this.J.getPresentingPlayerType(W);this.enable(Q!==2&&Q!==3);y65(this)};
g.R.ZV=function(Q){g.yh.prototype.ZV.call(this,Q);this.G&&this.G.B.focus()};
g.R.xn=function(Q){g.yh.prototype.xn.call(this,Q);Q?(this.uj=this.W(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),y65(this),c65(this,this.J.getPlaybackRate())):(this.mJ(this.uj),this.uj=null)};
g.R.onPlaybackRateChange=function(Q){var W=this.J.getPlaybackRate();!this.X&&this.T.includes(W)||gT1(this,W);c65(this,Q)};
g.R.f9=function(Q,W,x){return Q===this.B&&eA5(this.J)?g.yh.prototype.f9.call(this,Q,W,x,{K:"div",Y:"ytp-speed-slider-menu-footer",V:[this.G]}):g.yh.prototype.f9.call(this,Q,W,x)};
g.R.ZA=function(Q){g.yh.prototype.ZA.call(this,Q);Q===this.B?this.J.setPlaybackRate(this.N,!0):this.J.setPlaybackRate(Number(Q),!0);eA5(this.J)&&Q===this.B||this.F0.tv()};
g.R.Ri=function(Q){var W=Q===this.B;this.X=!1;W&&X7(this.J)&&!eA5(this.J)?(Q=new IZh(this.J),g.B2(this.F0,Q)):g.yh.prototype.Ri.call(this,Q)};g.n(ZE5,g.yh);g.R=ZE5.prototype;g.R.ND=function(Q){g.yh.prototype.ND.call(this,Q)};
g.R.Kb=function(Q){return Q.option.toString()};
g.R.getOption=function(Q){return this.settings[Q]};
g.R.VD=function(Q){return this.getOption(Q).text||""};
g.R.ZA=function(Q){g.yh.prototype.ZA.call(this,Q);this.publish("settingChange",this.setting,this.settings[Q].option)};g.n(o7,g.H2);o7.prototype.mP=function(Q){for(var W=g.V(Object.keys(Q)),x=W.next();!x.done;x=W.next()){var D=x.value;if(x=this.QE[D]){var K=Q[D].toString();D=!!Q[D+"Override"];x.options[K]&&(x.ND(K),x.N.element.setAttribute("aria-checked",String(!D)),x.B.element.setAttribute("aria-checked",String(D)))}}};
o7.prototype.oI=function(Q,W){this.publish("settingChange",Q,W)};g.n(uD,g.yh);uD.prototype.B=function(Q){return Q.languageCode};
uD.prototype.VD=function(Q){return this.languages[Q].languageName||""};
uD.prototype.ZA=function(Q){this.publish("select",Q);this.J.logClick(this.element);g.$q(this.F0)};g.n(Tov,g.yh);g.R=Tov.prototype;g.R.JJ=function(Q){return g.dS(Q)?"__off__":Q.displayName};
g.R.VD=function(Q){return Q==="__off__"?"Off":Q==="__translate__"?"Auto-translate":Q==="__contribute__"?"Add subtitles/CC":Q==="__correction__"?"Suggest caption corrections":(Q==="__off__"?{}:this.tracks[Q]).displayName};
g.R.ZA=function(Q){if(Q==="__translate__")this.B.open();else if(Q==="__contribute__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var W=g.mT(this.J.C(),this.J.getVideoData());g.ei(W)}else if(Q==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var x=OE4(this);Y3(this,x);g.yh.prototype.ZA.call(this,this.JJ(x));var D,K;x=(W=this.J.getVideoData().getPlayerResponse())==null?void 0:(D=W.captions)==null?void 0:(K=D.playerCaptionsTracklistRenderer)==
null?void 0:K.openTranscriptCommand;this.J.Wt("innertubeCommand",x);this.F0.tv();this.N&&this.J.logClick(this.N)}else{if(Q==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();W=OE4(this);Y3(this,W);g.yh.prototype.ZA.call(this,this.JJ(W));var l,M;W=(x=this.J.getVideoData().getPlayerResponse())==null?void 0:(l=x.captions)==null?void 0:(M=l.playerCaptionsTracklistRenderer)==null?void 0:M.openTranscriptCommand;this.J.Wt("innertubeCommand",W)}else this.J.logClick(this.element),
Y3(this,Q==="__off__"?{}:this.tracks[Q]),g.yh.prototype.ZA.call(this,Q);this.F0.tv()}};
g.R.Yf=function(){var Q=this.J.getOptions();Q=Q&&Q.indexOf("captions")!==-1;var W=this.J.getVideoData(),x=W&&W.wX,D,K=!((D=this.J.getVideoData())==null||!g.tf(D));D={};if(Q||x){var l;if(Q){var M=this.J.getOption("captions","track");D=this.J.getOption("captions","tracklist",{includeAsr:!0});var w=K?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.uZ(D,this.JJ,this);K=g.pm(D,this.JJ);var S,b;OE4(this)&&((l=W.getPlayerResponse())==null?0:(S=l.captions)==null?0:(b=S.playerCaptionsTracklistRenderer)==
null?0:b.openTranscriptCommand)&&K.push("__correction__");if(w.length&&!g.dS(M)){if((l=M.translationLanguage)&&l.languageName){var z=l.languageName;l=w.findIndex(function(k){return k.languageName===z});
KJ2(w,l)}LE4(this.B,w);K.push("__translate__")}l=this.JJ(M)}else this.tracks={},K=[],l="__off__";K.unshift("__off__");this.tracks.__off__={};x&&K.unshift("__contribute__");this.tracks[l]||(this.tracks[l]=M,K.push(l));this.ZV(K);this.ND(l);M&&M.translationLanguage?this.B.ND(this.B.B(M.translationLanguage)):ic4(this.B);Q&&this.X.mP(this.J.getSubtitlesUserSettings());this.countLabel.iy(D&&D.length?" ("+D.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.R.zk=function(Q){var W=this.J.getOption("captions","track");W=g.HZ(W);W.translationLanguage=this.B.languages[Q];Y3(this,W)};
g.R.oI=function(Q,W){if(Q==="reset")this.J.resetSubtitlesUserSettings();else{var x={};x[Q]=W;this.J.updateSubtitlesUserSettings(x)}r6l(this,!0);this.G.start();this.X.mP(this.J.getSubtitlesUserSettings())};
g.R.ST7=function(Q){Q||g.t2(this.G)};
g.R.U3=function(){g.t2(this.G);g.yh.prototype.U3.call(this)};
g.R.open=function(){g.yh.prototype.open.call(this);this.options.__correction__&&!this.N&&(this.N=this.options.__correction__.element,this.J.createClientVe(this.N,this,167341),this.J.logVisibility(this.N,!0))};g.n(ETF,g.qF);g.R=ETF.prototype;
g.R.initialize=function(){if(!this.isInitialized){var Q=this.J.C();this.isInitialized=!0;try{this.iq=new aZ2(this.J,this)}catch(x){g.Bp(Error("QualityMenuItem creation failed"))}g.y(this,this.iq);var W=new Tov(this.J,this);g.y(this,W);Q.D||(W=new R7(this.J,this),g.y(this,W));Q.enableSpeedOptions&&(W=new mCz(this.J,this),g.y(this,W));(g.d5(Q)||Q.X)&&(Q.U||Q.eZ)&&(W=new hAz(this.J,this),g.y(this,W));Q.hn&&!Q.j("web_player_move_autonav_toggle")&&(Q=new SA(this.J,this),g.y(this,Q));Q=new wH(this.J,this);
g.y(this,Q);this.J.publish("settingsMenuInitialized");pAs(this.settingsButton,this.Ar.bW())}};
g.R.XE=function(Q){this.initialize();this.Ar.XE(Q);pAs(this.settingsButton,this.Ar.bW())};
g.R.le=function(Q){this.md&&this.Ar.bW()<=1&&this.hide();this.Ar.le(Q);pAs(this.settingsButton,this.Ar.bW())};
g.R.jt=function(Q){this.initialize();this.Ar.bW()>0&&g.qF.prototype.jt.call(this,Q)};
g.R.X0=function(){this.Ff?this.Ff=!1:g.qF.prototype.X0.call(this)};
g.R.show=function(){g.qF.prototype.show.call(this);g.j$(this.J.getRootNode(),"ytp-settings-shown")};
g.R.hide=function(){g.qF.prototype.hide.call(this);g.Rr(this.J.getRootNode(),"ytp-settings-shown")};
g.R.PZ=function(Q){this.J.logVisibility(this.element,Q);this.J.publish("settingsMenuVisibilityChanged",Q)};g.n(tF2,g.L);g.R=tF2.prototype;g.R.onClick=function(){if(Qsa(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var Q=!1,W=g.g3(g.ck(),65);g.ET(this.J.C())&&W!=null&&(Q=!W);Q&&this.J.C().j("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}};
g.R.NH5=function(Q){var W,x;(W=g.oN(this.J))==null||(x=W.Xy())==null||x.jt(Q)};
g.R.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
g.R.Yf=function(){var Q=Qsa(this),W=300;this.J.C().S&&(W=480);if(this.J.C().X){this.updateValue("title",g.pq(this.J,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var x=Q}else{if(Q)(x=this.Nj("ytp-subtitles-button-icon"))==null||x.setAttribute("fill-opacity","1"),this.updateValue("title",g.pq(this.J,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var D;(D=this.Nj("ytp-subtitles-button-icon"))==
null||D.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}x=!0}this.tooltip.hA();x=x&&this.J.hf().getPlayerSize().width>=W;this.hO(x);this.J.j("embeds_use_parent_visibility_in_ve_logging")?this.J.logVisibility(this.element,x&&this.L):this.J.logVisibility(this.element,x);Q?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};
g.R.rG=function(Q){g.L.prototype.rG.call(this,Q);this.J.C().j("embeds_use_parent_visibility_in_ve_logging")&&this.J.logVisibility(this.element,this.md&&Q)};g.n(g.n7,g.L);g.R=g.n7.prototype;
g.R.QA=function(){var Q=this.api.hf().getPlayerSize().width,W=this.T;this.api.C().S&&(W=400);W=Q>=W&&(!Vi(this)||!g.r(this.api.getPlayerStateObject(),64));this.hO(W);g.S$(this.element,"ytp-time-display-allow-autohide",W&&Q<400);Q=this.api.getProgressState();if(W){W=this.api.getPresentingPlayerType();var x=this.api.getCurrentTime(W,!1);this.U&&(x-=Q.airingStart);Py(this)&&(x-=this.k6.startTimeMs/1E3);Py(this)||Vi(this)||!this.D||(x=this.api.getDuration(W,!1)-x);x=g.JI(x);this.N!==x&&(this.updateValue("currenttime",
x),this.N=x);W=Py(this)?g.JI((this.k6.endTimeMs-this.k6.startTimeMs)/1E3):g.JI(this.api.getDuration(W,!1));this.X!==W&&(this.updateValue("duration",W),this.X=W)}Wu5(this,Q.isAtLiveHead);xwQ(this,this.api.getLoopRange())};
g.R.onLoopRangeChange=function(Q){var W=this.k6!==Q;this.k6=Q;W&&(this.QA(),Dwn(this))};
g.R.lJf=function(){this.api.setLoopRange(null)};
g.R.fXf=function(){this.D=!this.D;this.QA()};
g.R.onVideoDataChange=function(Q,W,x){this.updateVideoData((this.api.C().j("enable_topsoil_wta_for_halftime")||this.api.C().j("enable_topsoil_wta_for_halftime_live_infra"))&&x===2?this.api.getVideoData(1):W);this.QA();Dwn(this)};
g.R.updateVideoData=function(Q){this.SB=Q.isLivePlayback&&!Q.Pt;this.U=Wd(Q);this.isPremiere=Q.isPremiere;g.S$(this.element,"ytp-live",Vi(this))};
g.R.onClick=function(Q){Q.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
g.R.U3=function(){this.B&&this.B();g.L.prototype.U3.call(this)};g.n(lc4,g.L);g.R=lc4.prototype;g.R.zo=function(){var Q=this.api.eU();this.D!==Q&&(this.D=Q,KuF(this,this.api.getVolume(),this.api.isMuted()))};
g.R.kz=function(Q){this.hO(Q.width>=350)};
g.R.RL=function(Q){if(!Q.defaultPrevented){var W=Q.keyCode,x=null;W===37?x=this.volume-5:W===39?x=this.volume+5:W===36?x=0:W===35&&(x=100);x!==null&&(x=g.wS(x,0,100),x===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(x)),Q.preventDefault())}};
g.R.ws=function(Q){var W=Q.deltaX||-Q.deltaY;Q.deltaMode?this.api.setVolume(this.volume+(W<0?-10:10)):this.api.setVolume(this.volume+g.wS(W/10,-10,10));Q.preventDefault()};
g.R.be7=function(){vy(this,this.B,!0,this.U,this.api.rY());this.T=this.volume;this.api.isMuted()&&this.api.unMute()};
g.R.MZ=function(Q){var W=this.D?78:52,x=this.D?18:12;Q-=g.Yg(this.S).x;this.api.setVolume(g.wS((Q-x/2)/(W-x),0,1)*100)};
g.R.nDj=function(){vy(this,this.B,!1,this.U,this.api.rY());this.volume===0&&(this.api.mute(),this.api.setVolume(this.T))};
g.R.onVolumeChange=function(Q){KuF(this,Q.volume,Q.muted)};
g.R.HG=function(){vy(this,this.B,this.isDragging,this.U,this.api.rY())};
g.R.U3=function(){g.L.prototype.U3.call(this);g.Rr(this.G,"ytp-volume-slider-active")};g.n(C7,g.L);
C7.prototype.onVideoDataChange=function(){var Q=this.api.C();this.OV();this.visible=!!this.api.getVideoData().videoId&&!g.xW(this.api.getVideoData(1));this.hO(this.visible);this.api.logVisibility(this.element,this.visible&&this.L);if(this.visible){var W=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",W)}Q.D&&(this.B&&(this.mJ(this.B),this.B=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.j$(this.element,"no-link"));
W=this.api.C();Q=this.api.getVideoData();var x="";W.D||(W=g.Zj(W),W.indexOf("www.")===0&&(W=W.substring(4)),x=g.Kq(Q)?"Watch on YouTube Music":W==="youtube.com"?"Watch on YouTube":g.nD("Watch on $WEBSITE",{WEBSITE:W}));this.updateValue("title",x)};
C7.prototype.onClick=function(Q){this.api.j("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var W=this.api.C(),x=this.api.getVideoUrl(!g.pb(Q),!1,!0,!0);if(g.d5(W)){var D={};g.d5(W)&&g.bL(this.api,"addEmbedsConversionTrackingParams",[D]);x=g.ya(x,D)}g.RY(x,this.api,Q);this.api.j("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
C7.prototype.OV=function(){var Q={K:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{K:"path",Tn:!0,Y:"ytp-svg-fill",Z:{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 "}}]},
W=28666,x=this.api.getVideoData();this.api.isEmbedsShortsMode()?Q={K:"svg",Z:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{K:"path",Z:{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.Kq(x)&&(Q={K:"svg",Z:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{K:"path",Z:{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"}},{K:"path",Z:{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"}},{K:"path",Z:{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"}},{K:"path",Z:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{K:"path",Z:{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"}},{K:"path",Z:{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"}},{K:"path",Z:{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"}},{K:"path",Z:{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"}},{K:"path",Z:{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"}},{K:"path",Z:{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"}},{K:"path",Z:{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"}},{K:"path",Z:{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"}}]},W=216163);g.Kq(x)?g.j$(this.element,"ytp-youtube-music-button"):g.Rr(this.element,"ytp-youtube-music-button");Q.Z=Object.assign({},Q.Z,{"aria-hidden":"true"});this.updateValue("logoSvg",Q);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,W,!0)};
C7.prototype.rG=function(Q){g.L.prototype.rG.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)};g.n(Mc1,g.I0);g.R=Mc1.prototype;g.R.E4=function(){if(this.J.j("web_player_max_seekable_on_ended")||!g.r(this.J.getPlayerStateObject(),2))this.progressBar.QA(),this.fS.QA()};
g.R.Qn=function(){this.HE();this.s4.U?this.E4():this.progressBar.TC()};
g.R.IL=function(){this.E4();this.S.start()};
g.R.HE=function(){var Q;if(Q=!this.J.C().U){Q=this.progressBar;var W=2*g.OT()*Q.X;Q=Q.D.getLength()*1E3/Q.api.getPlaybackRate()/W<300}Q=Q&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;W=!Q;this.s4.U||(Q=W=!1);W?this.pS||(this.pS=this.W(this.J,"progresssync",this.E4)):this.pS&&(this.mJ(this.pS),this.pS=null);Q?this.S.isActive()||this.S.start():this.S.stop()};
g.R.OV=function(){var Q=this.J.eU(),W=this.J.hf().getPlayerSize(),x=wY5(this),D=Math.max(W.width-x*2,100);if(this.tf!==W.width||this.SZ!==Q){this.tf=W.width;this.SZ=Q;var K=SZl(this);this.N.element.style.width=K+"px";this.N.element.style.left=x+"px";g.PhF(this.progressBar,x,K,Q);this.J.Vp().fb=K}x=this.D;D=Math.min(570*(Q?1.5:1),D);Q=Math.min(413*(Q?1.5:1),Math.round((W.height-bW5(this))*.82));x.maxWidth=D;x.maxHeight=Q;x.e7();this.HE();this.J.C().j("html5_player_dynamic_bottom_gradient")&&ubv(this.Pt,
W.height)};
g.R.onVideoDataChange=function(){var Q=this.J.getVideoData();this.eZ.style.background=Q.HZ?Q.hx:"";this.uj&&CEO(this.uj,Q.showSeekingControls);this.T&&CEO(this.T,Q.showSeekingControls)};
g.R.yh=function(){return this.N.element};g.n(ss1,ir);g.R=ss1.prototype;g.R.wi=function(Q){Q.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.Wt("innertubeCommand",this.onClickCommand),this.dJ())};
g.R.dJ=function(){this.enabled=!1;this.T.hide()};
g.R.onVideoDataChange=function(Q,W){Q==="dataloaded"&&z7n(this);Q=[];var x,D,K,l;if(W=(l=g.e((x=W.getWatchNextResponse())==null?void 0:(D=x.playerOverlays)==null?void 0:(K=D.playerOverlayRenderer)==null?void 0:K.suggestedActionsRenderer,LH1))==null?void 0:l.suggestedActions)for(x=g.V(W),D=x.next();!D.done;D=x.next())(D=g.e(D.value,rmY))&&g.e(D.trigger,ZPA)&&Q.push(D);if(Q.length!==0){x=[];Q=g.V(Q);for(D=Q.next();!D.done;D=Q.next())if(D=D.value,K=g.e(D.trigger,ZPA))l=(l=D.title)?g.od(l):"View Chapters",
W=K.timeRangeStartMillis,K=K.timeRangeEndMillis,W!=null&&K!=null&&D.tapCommand&&(x.push(new g.jz(W,K,{priority:9,namespace:"suggested_action_button_visible",id:l})),this.suggestedActions[l]=D.tapCommand);this.J.HV(x)}};
g.R.X9=function(){return this.enabled};
g.R.PZ=function(){this.enabled?this.g7.start():GU(this);this.Vk()};
g.R.U3=function(){z7n(this);ir.prototype.U3.call(this)};var J6={},hk=(J6.CHANNEL_NAME="ytp-title-channel-name",J6.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",J6.LINK="ytp-title-link",J6.SESSIONLINK="yt-uix-sessionlink",J6.SUBTEXT="ytp-title-subtext",J6.TEXT="ytp-title-text",J6.TITLE="ytp-title",J6);g.n(a7,g.L);a7.prototype.onClick=function(Q){this.api.logClick(this.element);var W=this.api.C(),x=this.api.getVideoUrl(!g.pb(Q),!1,!0);g.d5(W)&&(W={},g.bL(this.api,"addEmbedsConversionTrackingParams",[W]),x=g.ya(x,W));g.RY(x,this.api,Q)};
a7.prototype.Yf=function(){var Q=this.api.getVideoData(),W=this.api.C();this.updateValue("title",Q.title);var x={K:"a",Y:hk.CHANNEL_NAME,Z:{href:"{{channelLink}}",target:"_blank"},m3:"{{channelName}}"};this.api.C().D&&(x={K:"span",Y:hk.CHANNEL_NAME,m3:"{{channelName}}",Z:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",x);kqO(this);this.api.getPresentingPlayerType()===2&&(x=this.api.getVideoData(),x.videoId&&x.isListed&&x.author&&x.fn&&x.profilePicture?(this.updateValue("channelLink",
x.fn),this.updateValue("channelName",x.author),this.updateValue("channelTitleFocusable","0")):kqO(this));x=W.externalFullscreen||!this.api.isFullscreen()&&W.IH;g.S$(this.link,hk.FULLERSCREEN_LINK,x);W.pS||!Q.videoId||x||g.xW(Q)||W.D?this.B&&(this.updateValue("url",null),this.mJ(this.B),this.B=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.B||(this.B=this.W(this.link,"click",this.onClick)));W.D&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.d5(W)?Q.expandedTitle:
Q.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.n(g.GH,g.L);g.R=g.GH.prototype;g.R.setEnabled=function(Q){if(this.type!=null)if(Q)switch(this.type){case 3:case 2:ob2(this);this.G.show();break;default:this.G.show()}else this.G.hide();this.S=Q};
g.R.LJ=function(Q,W,x,D,K,l,M,w){if(!this.fS||this.env.S){this.type===3&&this.TC();this.type!==1&&(g.KT(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.S&&this.G.show(),this.U&&this.U.dispose(),(this.U=this.api.Vv())&&this.U.subscribe("l",this.Gl,this));if(w){var S=g.PR(this.bg).height||141;this.LS.style.bottom=S+2+"px"}else this.LS.style.display="none";this.update({text:x,title:l!=null?l:"",eduText:w!=null?w:""});g.S$(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!l);this.api.isInline()&&
g.j$(this.bottomText,"ytp-modern-tooltip-text");g.S$(this.element,"ytp-text-detail",!!D);x=-1;this.U&&(x=$S(this.U,243*this.scale),this.env.j("web_l3_storyboard")&&this.U.levels.length===4&&(x=this.U.levels.length-1),x=vOQ(this.U,x,W));YZ5(this,x);if(M)switch(W=g.PR(this.element).width,M){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=W+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=W/2+"px",this.title.style.textAlign=
"center"}uyz(this,!!D,Q,K)}};
g.R.b5=function(){this.type===1&&this.TC()};
g.R.FL=function(Q,W){if(this.type)if(this.type===3)this.TC();else return;XYD(this,Q,3,W)};
g.R.hA=function(){this.B&&!this.T&&this.B.hasAttribute("title")&&(this.D=this.B.getAttribute("title")||"",this.B.removeAttribute("title"),this.S&&ob2(this))};
g.R.Gl=function(Q,W){Q<=this.N&&this.N<=W&&(Q=this.N,this.N=NaN,YZ5(this,Q))};
g.R.pNS=function(){VN5(this.U,this.N,243*this.scale)};
g.R.TC=function(){switch(this.type){case 2:var Q=this.B;Q.removeEventListener("mouseout",this.uj);Q.addEventListener("mouseover",this.X);Q.removeEventListener("blur",this.uj);Q.addEventListener("focus",this.X);nb2(this);break;case 3:nb2(this);break;case 1:this.U&&(this.U.unsubscribe("l",this.Gl,this),this.U=null),this.api.removeEventListener("videoready",this.pS),this.F3.stop()}this.type=null;this.S&&this.G.hide()};
g.R.mC=function(){if(this.B)for(var Q=0;Q<arguments.length;Q++)g.jh(arguments[Q],this.B)&&this.TC()};
g.R.U3=function(){this.type!=null&&this.TC();this.U&&this.U.dispose();g.L.prototype.U3.call(this)};g.n(PUv,g.L);g.R=PUv.prototype;g.R.Xu=function(){this.visible=vbv(this);this.hO(this.visible);this.icon&&JN2(this,this.icon);this.J.logVisibility(this.element,this.visible&&this.L)};
g.R.XX=function(){return this.J.getVideoData().videoId};
g.R.onClick=function(){this.J.logClick(this.element);var Q=this.J.C(),W=this.XX();Q.F3?Vc5(this):CUQ(this,W)};
g.R.onReset=function(){this.isRequestPending=this.B=!1;this.Yf(2);this.Xu()};
g.R.Yf=function(Q,W){var x=this.J.C();JN2(this,Q);W?this.update({title:W,image:null}):x.userDisplayName?(Q={USER_NAME:x.userDisplayName},this.update({title:this.B?g.nD("Added as $USER_NAME",Q):g.nD("Watch later as $USER_NAME",Q),image:Dd(x)})):this.update({title:"Watch later",image:null});this.J.hA()};
g.R.rG=function(Q){g.L.prototype.rG.call(this,Q);this.J.logVisibility(this.element,this.visible&&Q)};g.n(g.dH,g.LM);g.R=g.dH.prototype;
g.R.init=function(){var Q=this;this.XY=new g.Eo(this.api);this.D0=new j3(this.api);this.FZ=new g.L({K:"div",Y:"ytp-chrome-top"});this.tooltip=new g.GH(this.api,this);this.channelAvatar=new LMl(this.api);this.title=new a7(this.api);this.SK=new g.St({K:"div",Y:"ytp-chrome-top-buttons"});this.qC=new mKO(this.api,this.FZ.element);this.jK=this.api.C().controlsType==="1"?new Mc1(this.api,this,this.s4):null;this.contextMenu=new D$4(this.api,this.XY);this.uH=new g.L({K:"div",Z:{tabindex:"0"}});this.qL=new g.L({K:"div",
Z:{tabindex:"0"}});var W=this.api.hf(),x=this.api.C(),D=this.api.getVideoData();this.hE&&(g.j$(this.api.getRootNode(),"ytp-embed"),g.j$(this.api.getRootNode(),"ytp-embed-playlist"),this.MF&&(g.j$(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.j$(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.zZ=60,this.wl=89);this.api.C().D&&g.j$(this.api.getRootNode(),"ytp-embed-pfl");this.api.C().U&&(g.j$(this.api.getRootNode(),"ytp-mobile"),this.api.C().S&&g.j$(this.api.getRootNode(),"ytp-embed-mobile"));
D&&D.videoId&&(this.fA=D&&D.getEmbeddedPlayerResponse());g.y(this,this.XY);g.qf(this.api,this.XY.element,4);g.y(this,this.D0);g.qf(this.api,this.D0.element,4);D=new g.L({K:"div",Y:"ytp-gradient-top"});g.y(this,D);g.qf(this.api,D.element,1);this.zg=new g.Wi(D,250,!0,100);g.y(this,this.zg);g.y(this,this.FZ);g.qf(this.api,this.FZ.element,1);this.eh=new g.Wi(this.FZ,250,!0,100);g.y(this,this.eh);g.y(this,this.tooltip);g.qf(this.api,this.tooltip.element,4);var K=new LCl(this.api);g.y(this,K);g.qf(this.api,
K.element,5);K.subscribe("show",function(S){Q.Hd(K,S)});
this.Y2.push(K);this.Ib=new nc(this.api,K);g.y(this,this.Ib);!this.hE&&this.Ib.Qj(this.FZ.element);g.y(this,this.channelAvatar);this.channelAvatar.Qj(this.FZ.element);g.y(this,this.title);this.title.Qj(this.FZ.element);this.hE&&(D=new ofa(this.api),g.y(this,D),D.Qj(this.FZ.element));g.y(this,this.SK);this.SK.Qj(this.FZ.element);var l=new Di2(this.api,this);g.y(this,l);g.qf(this.api,l.element,5);l.subscribe("show",function(S){Q.Hd(l,S)});
this.Y2.push(l);this.searchButton=new vN(this.api);g.y(this,this.searchButton);this.searchButton.Qj(this.SK.element);this.kJ=new PUv(this.api);g.y(this,this.kJ);this.kJ.Qj(this.SK.element);this.shareButton=new g.Cc(this.api,this,l);g.y(this,this.shareButton);this.shareButton.Qj(this.SK.element);this.copyLinkButton=new lv(this.api,this);g.y(this,this.copyLinkButton);this.copyLinkButton.Qj(this.SK.element);this.hE&&this.Ib.Qj(this.SK.element);g.y(this,this.qC);this.qC.Qj(this.SK.element);x.X$&&(D=new aW(this.api),
g.y(this,D),g.qf(this.api,D.element,4));x.D||(D=new Ny5(this.api,this.qC),g.y(this,D),D.Qj(this.SK.element));this.uf=new yR5(this.api);g.y(this,this.uf);g.qf(this.api,this.uf.element,5);this.uf.subscribe("show",function(){Q.Hd(Q.uf,Q.uf.J_())});
this.Y2.push(this.uf);this.overflowButton=new g.Yu(this.api,this.uf);g.y(this,this.overflowButton);this.overflowButton.Qj(this.SK.element);this.jK&&g.y(this,this.jK);x.controlsType==="3"&&(D=new PN(this.api),g.y(this,D),g.qf(this.api,D.element,9));g.y(this,this.contextMenu);this.contextMenu.subscribe("show",this.wp,this);this.api.j("show_preskip_progress_bar_for_skippable_ads")||(D=new Bi(this.api,new Oo(this.api)),g.y(this,D),g.qf(this.api,D.element,4));this.uH.listen("focus",this.m9,this);g.y(this,
this.uH);this.qL.listen("focus",this.yK,this);g.y(this,this.qL);var M;(this.ub=x.h4?null:new Nbh(this.api,W,this.contextMenu,this.s4,this.XY,this.D0,function(){return Q.rq()},(M=this.jK)==null?void 0:M.progressBar))&&g.y(this,this.ub);
this.hE||(this.EW=new wSn(this.api),g.y(this,this.EW),g.qf(this.api,this.EW.element,4),this.EP=new R2l(this.api),g.y(this,this.EP),g.qf(this.api,this.EP.element,4));this.Ws=new ss1(this.api);g.y(this,this.Ws);g.qf(this.api,this.Ws.element,4);if(this.hE){var w=new aBa(this.api,this.api.C().eZ);g.y(this,w);g.qf(this.api,w.element,5);w.subscribe("show",function(S){Q.Hd(w,S)});
W=new ARO(this.api,w);g.y(this,W);g.qf(this.api,W.element,4)}this.e5.push(this.XY.element);this.W(this.api,"fullscreentoggled",this.zo);this.W(this.api,"offlineslatestatechange",function(){Q.api.aZ()&&$I(Q.s4,128,!1)});
this.W(this.api,"cardstatechange",function(){Q.qz()});
this.W(this.api,"resize",this.KJj);this.W(this.api,"videoplayerreset",this.onReset);this.W(this.api,"showpromotooltip",this.i_1);g.LM.prototype.init.call(this)};
g.R.Vp=function(){return this.tooltip};
g.R.rN=function(){return this.jK};
g.R.Hd=function(Q,W){W?this.YP=Q:this.YP=null;this.qz()};
g.R.Cm=function(Q,W){if(W)this.Xh.push(Q);else for(W=this.Xh.length;W>=0;W--)if(this.Xh[W]===Q){this.Xh.splice(W,1);break}$I(this.s4,64,this.Xh.length>0)};
g.R.fC=function(){this.api.Vx()&&this.api.Rn();return!!this.YP||pY5(this)||g.LM.prototype.fC.call(this)};
g.R.mL=xQ(3);g.R.Re=xQ(7);g.R.MR=xQ(10);
g.R.qz=function(){var Q=!this.fC(),W=Q&&this.api.Vx()&&!g.r(this.api.getPlayerStateObject(),2)&&!g.xW(this.api.getVideoData())&&!this.api.C().D&&!this.api.isEmbedsShortsMode(),x=this.hE&&g.iL(this.api)&&g.r(this.api.getPlayerStateObject(),128);Q||x?(this.eh.show(),this.zg.show()):(this.eh.hide(),this.zg.hide(),this.api.mC(this.FZ.element));W?this.qC.jt():this.qC.X0();this.jK&&R7n(this.jK,this.lq||!Q);this.api.j("web_player_hide_overflow_button_if_empty_menu")&&h7Q(this);g.LM.prototype.qz.call(this)};
g.R.CF=function(Q,W,x,D,K){Q.style.left="";Q.style.top="";Q.style.bottom="";var l=g.PR(Q),M=D||this.jK&&g.jh(this.jK.yh(),W),w=D=null;x!=null&&M||(D=g.PR(W),w=g.np(W,this.api.getRootNode()),x==null&&(x=w.x+D.width/2));x-=l.width/2;M?(W=this.jK,D=wY5(W),w=SZl(W),M=this.api.hf().getPlayerSize().height,x=g.wS(x,D,D+w-l.width),l=M-bW5(W)-l.height):g.jh(this.FZ.element,W)?(W=this.api.hf().getPlayerSize().width,x=g.wS(x,12,W-l.width-12),l=this.eU()?this.wl:this.zZ,this.api.C().playerStyle==="gvn"&&(l+=
20),this.hE&&(l-=this.eU()?26:18)):(W=this.api.hf().getPlayerSize(),x=g.wS(x,12,W.width-l.width-12),l=w.y>(W.height-D.height)/2?w.y-l.height-12:w.y+D.height+12);Q.style.top=l+(K||0)+"px";Q.style.left=x+"px"};
g.R.Qn=function(Q){Q&&(this.api.mC(this.FZ.element),this.jK&&this.api.mC(this.jK.yh()));this.MF&&(g.S$(this.contextMenu.element,"ytp-autohide",Q),g.S$(this.contextMenu.element,"ytp-autohide-active",!0));g.LM.prototype.Qn.call(this,Q)};
g.R.d6=function(){g.LM.prototype.d6.call(this);this.MF&&(g.S$(this.contextMenu.element,"ytp-autohide-active",!1),this.MF&&(this.contextMenu.hide(),this.uf&&this.uf.hide()))};
g.R.Lv=function(Q,W){var x=this.api.hf().getPlayerSize();x=new g.lq(0,0,x.width,x.height);if(Q||this.s4.U&&!this.fC()){if(this.api.C().Zf||W)Q=this.eU()?this.wl:this.zZ,x.top+=Q,x.height-=Q;this.jK&&(x.height-=bW5(this.jK))}return x};
g.R.zo=function(Q){var W=this.api.getRootNode();Q?W.parentElement?(W.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.C().externalFullscreen||(W.parentElement.insertBefore(this.uH.element,W),W.parentElement.insertBefore(this.qL.element,W.nextSibling))):g.ql(Error("Player not in DOM.")):(W.setAttribute("aria-label","YouTube Video Player"),this.uH.detach(),this.qL.detach());this.OV();this.uT()};
g.R.eU=function(){var Q=this.api.C();return this.api.isFullscreen()&&!Q.S||!1};
g.R.showControls=function(Q){this.hc=!Q;this.qz()};
g.R.OV=function(){var Q=this.eU();this.tooltip.scale=Q?1.5:1;this.contextMenu&&g.S$(this.contextMenu.element,"ytp-big-mode",Q);this.qz();this.api.j("web_player_hide_overflow_button_if_empty_menu")||h7Q(this);this.uT();var W=this.api.isEmbedsShortsMode();W&&Q?(Q=(this.api.hf().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.SZ(this.FZ.element,"padding-left",Q+"px"),g.SZ(this.FZ.element,"padding-right",Q+"px")):W&&(g.SZ(this.FZ.element,"padding-left",""),g.SZ(this.FZ.element,"padding-right",
""));g.LM.prototype.OV.call(this)};
g.R.Be=function(){if(pY5(this)&&!g.iL(this.api))return!1;var Q=this.api.getVideoData();return!g.d5(this.api.C())||this.api.getPresentingPlayerType()===2||!this.fA||((Q=this.fA||Q.fA)?(Q=Q.embedPreview)?(Q=Q.thumbnailPreviewRenderer,Q=Q.videoDetails&&g.e(Q.videoDetails,jP1)||null):Q=null:Q=null,Q&&Q.collapsedRenderer&&Q.expandedRenderer)?g.LM.prototype.Be.call(this):!1};
g.R.uT=function(){g.LM.prototype.uT.call(this);this.api.logVisibility(this.title.element,!!this.rV);this.Ib&&this.Ib.rG(!!this.rV);this.channelAvatar.rG(!!this.rV);this.overflowButton&&this.overflowButton.rG(this.AK()&&!!this.rV);this.shareButton&&this.shareButton.rG(!this.AK()&&!!this.rV);this.kJ&&this.kJ.rG(!this.AK()&&!!this.rV);this.searchButton&&this.searchButton.rG(!this.AK()&&!!this.rV);this.copyLinkButton&&this.copyLinkButton.rG(!this.AK()&&!!this.rV);if(!this.rV){this.api.mC(this.FZ.element);
for(var Q=0;Q<this.Y2.length;Q++){var W=this.Y2[Q];W.J_()&&W.X0()}}};
g.R.q7=function(Q){this.jK&&R7n(this.jK,this.fC());this.qz();g.LM.prototype.q7.call(this,Q)};
g.R.handleGlobalKeyDown=function(Q,W,x,D,K,l,M,w){return this.ub?this.ub.handleGlobalKeyDown(Q,W,x,D,K,l,M,w):!1};
g.R.handleGlobalKeyUp=function(Q,W,x,D,K,l,M){return this.ub?this.ub.handleGlobalKeyUp(Q,W,x,D,K,l,M):!1};
g.R.rq=function(){if(this.contextMenu.md)return this.contextMenu.X0(),!0;if(this.Xh.length)return this.Xh[this.Xh.length-1].X0(),!0;if(this.YP)return this.YP.X0(),!0;this.jK&&this.api.mC(this.jK.yh());this.SK&&this.api.mC(this.SK.element);return g.LM.prototype.rq.call(this)};
g.R.Gh=function(Q,W){this.Zr=W;this.Cm(Q,W);this.wp()};
g.R.wp=function(){var Q=this.Zr||this.contextMenu.J_();this.QX!==Q&&(this.QX=Q,this.api.Wt("onAutonavPauseRequest",this.QX))};
g.R.m9=function(){ac1(this,this.api.getRootNode(),!0).focus()};
g.R.yK=function(){ac1(this,this.api.getRootNode(),!1).focus()};
g.R.Xy=function(){return this.jK&&this.jK.D};
g.R.Z7=function(){this.s4.Z7()};
g.R.TD=function(){this.XY.hide()};
g.R.y5=function(Q){this.XY.y5(!Q.isOrWillBePlaying())};
g.R.eF=function(Q,W,x,D){this.D0.eF(Q,W,x,D)};
g.R.renderChapterSeekingAnimation=function(Q,W,x){RW(this.D0,Q,W,x)};
g.R.KJj=function(){GqO(this,!0)};
g.R.onReset=function(){h7Q(this)};
g.R.i_1=function(Q){GqO(this,!1,Q)};
g.R.Rs=function(){return this.contextMenu};
g.R.yR=function(Q,W){var x;if((x=this.jK)!=null){var D=Number(Q.element.getAttribute("data-priority"))||0,K=0,l=x.U.element;W&&x.J.j("delhi_modern_web_player")&&(l=x.U.Nj(Jk[W]));W=g.V(l.children);for(x=W.next();!(x.done||D<(Number(x.value.getAttribute("data-priority"))||0));x=W.next())K++;Q.Qj(l,K)}};
g.R.fq=function(){var Q,W=(Q=this.jK)==null?void 0:Q.progressBar;if(W){var x;((x=W.U)==null?0:x.isEnabled)&&W.fq()}};g.n(g.iD,g.V1);g.iD.prototype.AX=function(){return!1};
g.iD.prototype.create=function(){var Q=this.player.C();g.Il(Q)&&Q.U||Q.disableOrganicUi?this.chrome=new g.LM(this.player):this.chrome=new g.dH(this.player);g.y(this,this.chrome);this.chrome.init();this.player.BI("ux")};
g.iD.prototype.Q1=function(){return this.chrome};var Ak=[],pzD=!1;g.n(Hy,g.N);Hy.prototype.G=function(){this.B!=null&&this.app.getVideoData()!==this.B&&Zd(this.B)&&D04(this.app,this.B,void 0,void 0,this.D)};
Hy.prototype.X=function(){if(this.B!=null&&this.app.getVideoData()!==this.B&&this.U!=null&&this.N!=null&&this.L!=null&&Zd(this.B)){var Q=AN1(this.U,this.N,this.L);Q==null?D04(this.app,this.B,void 0,void 0,this.D):(this.U.qj("sgap",Q),this.U.getVideoData().S&&this.U.Bo(!1))}};
Hy.prototype.S=function(Q){var W=this.app.w7();if(W){var x=this.app.getCurrentTime();Math.abs(x-Q.end/1E3)>5&&W.qj("glrs",{cmt:x});W.seekTo(0,{seekSource:58});W.qj("glrre",{cmt:x})}};
Hy.prototype.U3=function(){this.B=null;g.N.prototype.U3.call(this)};g.n(g.UD,Q4);g.R=g.UD.prototype;g.R.isView=function(){return!0};
g.R.b3=function(){var Q=this.mediaElement.getCurrentTime();if(Q<this.start)try{var W=this.mediaElement.O4(),x=b9(W,Q);return!(this.start<x)}catch(D){}return!1};
g.R.gk=function(){return Xs(this.mediaElement.gk(),this.start,this.end)};
g.R.O4=function(){return Xs(this.mediaElement.O4(),this.start,this.end)};
g.R.qe=function(){return Xs(this.mediaElement.qe(),this.start,this.end)};
g.R.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.R.setCurrentTime=function(Q){this.mediaElement.setCurrentTime(Q+this.start)};
g.R.getDuration=function(){return isFinite(this.end)&&!this.B?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.R.play=function(){if(this.b3()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(Q){}}return this.mediaElement.play()};
g.R.AO=function(){var Q=Q4.prototype.AO.call(this);Q.view=this.start+"-"+this.end;return Q};
g.R.addEventListener=function(Q,W){this.mediaElement.addEventListener(Q,W)};
g.R.removeEventListener=function(Q,W){this.mediaElement.removeEventListener(Q,W)};
g.R.g4=function(){return this.mediaElement.g4()};
g.R.activate=function(Q){this.mediaElement.activate(Q)};
g.R.fv=function(){return this.mediaElement.fv()};
g.R.playVideo=function(){return this.mediaElement.playVideo()};
g.R.f$=function(){this.mediaElement.f$()};
g.R.y8=function(){this.mediaElement.y8()};
g.R.E_=function(){return this.mediaElement.E_()};
g.R.yh=function(){return this.mediaElement.yh()};
g.R.aj=function(){return this.mediaElement.aj()};
g.R.F8=function(Q){this.mediaElement.F8(Q)};
g.R.CX=function(){this.mediaElement.CX()};
g.R.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.R.setPlaybackRate=function(Q){return this.mediaElement.setPlaybackRate(Q)};
g.R.q5=function(){return this.mediaElement.q5()};
g.R.setLoop=function(Q){this.mediaElement.setLoop(Q)};
g.R.canPlayType=function(Q,W){return this.mediaElement.canPlayType(Q,W)};
g.R.isPaused=function(){return this.mediaElement.isPaused()};
g.R.isSeeking=function(){return this.mediaElement.isSeeking()};
g.R.isEnded=function(){return this.mediaElement.isEnded()};
g.R.xi=function(){return this.mediaElement.xi()};
g.R.Uo=function(Q){this.mediaElement.Uo(Q)};
g.R.jV=function(){return this.mediaElement.jV()};
g.R.load=function(){this.mediaElement.load()};
g.R.pause=function(){this.mediaElement.pause()};
g.R.aI=function(){return this.mediaElement.aI()};
g.R.qF=function(){return this.mediaElement.qF()};
g.R.g1=function(){return this.mediaElement.g1()};
g.R.ZJ=function(){return this.mediaElement.ZJ()};
g.R.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.R.m$=function(){return this.mediaElement.m$()};
g.R.hs=function(){return this.mediaElement.hs()};
g.R.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.R.RX=function(){return this.mediaElement.RX()};
g.R.getSize=function(){return this.mediaElement.getSize()};
g.R.setSize=function(Q){this.mediaElement.setSize(Q)};
g.R.getVolume=function(){return this.mediaElement.getVolume()};
g.R.setVolume=function(Q){this.mediaElement.setVolume(Q)};
g.R.setAttribute=function(Q,W){this.mediaElement.setAttribute(Q,W)};
g.R.removeAttribute=function(Q){this.mediaElement.removeAttribute(Q)};
g.R.hasAttribute=function(Q){return this.mediaElement.hasAttribute(Q)};
g.R.mF=xQ(59);g.R.Ee=xQ(61);g.R.vH=xQ(63);g.R.L9=xQ(65);g.R.Vl=function(){return this.mediaElement.Vl()};
g.R.yu=function(Q){this.mediaElement.yu(Q)};
g.R.oZ=function(Q){return this.mediaElement.oZ(Q)};
g.R.XK=function(){return this.mediaElement.XK()};
g.R.stopVideo=function(){this.mediaElement.stopVideo()};
g.R.X6=function(Q){this.mediaElement.X6(Q)};
g.R.audioTracks=function(){return this.mediaElement.audioTracks()};
g.R.gD=function(Q){this.mediaElement.gD(Q)};g.n(qZs,g.N);g.R=qZs.prototype;g.R.getStatus=function(){return this.status};
g.R.D5=function(){var Q=this.B.getVideoData(),W=this.U.getVideoData(),x;if((x=Q.D)&&!(x=!Q.B)){x=Q.B;for(var D=!1,K=!1,l=g.V(Object.values(x.B)),M=l.next();!M.done;M=l.next())M=M.value,M.info.audio&&M.index.isLoaded()&&(D=!0),M.info.video&&M.index.isLoaded()&&(K=!0);x.B["0"]&&(K=!0);x=D&&K}if(x)if(this.B.DG()){l=iWa(this.policy,this.B,this.U,this.tX);M=BC5(this);x=M.K4;K=M.Fd;D=M.xK;M=M.m0;if(!this.G){var w=this.U.cZ()*1E3,S=this.B.cZ();S=(D-x-S)*1E3;l&&l.msg==="in-the-past"&&(S=0);Q=Q.isAd();this.U.To(w,
S,Q);this.G=!0}l?(W="cannot_apply"+l.msg,delete l.msg,this.tK(W,l)):this.status.status===2?gbn(this):(Q=this.B.fv())&&Ow(Q)&&(!LS(Q)&&g.fl()?this.tK("mse_closed"):W.B&&uQ(W.B)&&Q.U&&!Q.U.Tv()?this.tK("encr_upgrade"):(W=this.B.DG(),W.isEnded()?this.tK("elem_ended"):K<0?this.tK("next_player_future"):(this.X=D,this.currentVideoDuration=D-x,this.D=Url(Q,x,D,!0),this.N=Url(Q,K,M,!1),Q=this.U.getVideoData().clientPlaybackNonce,this.B.qj("gaplessPrep",{cpn:Q}),this.B.bQ(this.D,!1,mw4(this),this.L_.C().j("html5_shorts_gapless_keep_pending_requests")&&
KQ(this.B.getVideoData())),this.B.setMediaElement($wF(W,x,D,!this.B.getVideoData().isAd())),By(this,2),gbn(this))))}else this.tK("no-elem")};
g.R.qI=function(Q){var W=Q===cNh(this).Hp,x=W?this.D.B:this.D.U;W=W?this.N.B:this.N.U;if(x.isActive&&!W.isActive){var D=this.X,K=this.L_.C().j("html5_gapless_disable_on_discontinuous_buffer")&&this.L!==0&&x.dP().length>1;Se(Q.dP(),D-.01)&&!K&&(By(this,4),x.isActive=!1,x.SR=x.SR||x.isActive,(this.L===1?this.B:this.U).qj("sbh",{}),W.isActive=!0,W.SR=W.SR||W.isActive,this.L!==0&&(this.B.getVideoData().Zt=!0));Q=this.N.U;if(this.N.B.isActive&&Q.isActive&&(By(this,5),this.L!==0)){Q=this.U.eM();x=this.B.eM();
this.B.qj("sbs",{citag:x==null?void 0:x.itag,nitag:Q==null?void 0:Q.itag});this.U.qj("gitags",{pitag:x==null?void 0:x.itag,citag:Q==null?void 0:Q.itag});var l;(l=this.U)==null||l.k$()}}};
g.R.Ya=function(){this.ZT()&&this.tK("player-reload-after-handoff")};
g.R.tK=function(Q,W){W=W===void 0?{}:W;if(!this.d7()&&this.status.status!==6){var x=this.status.status>=4&&Q!=="player-reload-after-handoff";this.status={status:Infinity,error:Q};if(this.B&&this.U){var D=this.U.getVideoData().clientPlaybackNonce;this.B.zt(new Gu("dai.transitionfailure",Object.assign(W,{cpn:D,transitionTimeMs:this.tX,msg:Q})));this.B.Bo(x)}this.Tz.reject(Q);this.dispose()}};
g.R.ZT=function(){return this.status.status>=4&&this.status.status<6};
g.R.U3=function(){NCs(this);this.B.unsubscribe("newelementrequired",this.Ya,this);if(this.D){var Q=this.D.U;this.D.B.PD.unsubscribe("updateend",this.qI,this);Q.PD.unsubscribe("updateend",this.qI,this)}g.N.prototype.U3.call(this)};
g.R.QY=function(Q){g.XV(Q,128)&&this.tK("player-error-event")};g.n($3,g.N);$3.prototype.clearQueue=function(Q,W){Q=Q===void 0?!1:Q;W=W===void 0?!1:W;this.N&&this.N.reject("Queue cleared");this.app.C().j("html5_gapless_fallback_on_qoe_restart_v2")||W&&this.U&&this.U.Bo(!1);I7(this,Q)};
$3.prototype.PK=function(){return!this.B};
$3.prototype.ZT=function(){var Q;return((Q=this.D)==null?void 0:Q.ZT())||!1};
$3.prototype.U3=function(){I7(this);g.N.prototype.U3.call(this)};g.n(Lu5,g.Rd);g.R=Lu5.prototype;g.R.getVisibilityState=function(Q,W,x,D,K,l,M,w){return Q?4:eo5()?3:W?2:x?1:D?5:K?7:l?8:M?9:w?10:0};
g.R.Cu=function(Q){this.fullscreen!==Q&&(this.fullscreen=Q,this.PZ())};
g.R.setMinimized=function(Q){this.U!==Q&&(this.U=Q,this.PZ())};
g.R.setInline=function(Q){this.inline!==Q&&(this.inline=Q,this.PZ())};
g.R.Oy=function(Q){this.pictureInPicture!==Q&&(this.pictureInPicture=Q,this.PZ())};
g.R.setSqueezeback=function(Q){this.D!==Q&&(this.D=Q,this.PZ())};
g.R.No=function(Q){this.N!==Q&&(this.N=Q,this.PZ())};
g.R.m$=function(){return this.B};
g.R.fY=function(){return this.fullscreen!==0};
g.R.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4};
g.R.fT=function(){return this.fullscreen};
g.R.isMinimized=function(){return this.U};
g.R.isInline=function(){return this.inline};
g.R.isBackground=function(){return eo5()};
g.R.J4=function(){return this.pictureInPicture};
g.R.e1=function(){return!1};
g.R.Wo=function(){return this.D};
g.R.cz=function(){return this.N};
g.R.PZ=function(){this.publish("visibilitychange");var Q=this.getVisibilityState(this.m$(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.J4(),this.e1(),this.Wo(),this.cz());Q!==this.X&&this.publish("visibilitystatechange");this.X=Q};
g.R.U3=function(){LvO(this.L);g.Rd.prototype.U3.call(this)};g.R=rN2.prototype;g.R.getCurrentTime=function(){return 0};
g.R.getDuration=function(){return 0};
g.R.LZ=function(){return 0};
g.R.J9=function(){return 0};
g.R.xQ=function(){return 0};
g.R.uW=function(){return 0};
g.R.lH=function(){return 0};
g.R.Vv=function(){return null};
g.R.getStoryboardFormat=function(){return null};
g.R.getVideoLoadedFraction=function(){return 0};
g.R.isAtLiveHead=function(){return!1};
g.R.pauseVideo=function(){};
g.R.playVideo=function(){return g.U(function(Q){return Q.return()})};g.n(g.m1,g.N);g.R=g.m1.prototype;g.R.Zp=function(){return this.L};
g.R.Bq=function(Q){this.L=Q};
g.R.w7=function(){return this.N};
g.R.Ie=function(Q){this.N=Q};
g.R.nV=xQ(46);g.R.Yv=xQ(48);g.R.ek=function(Q){return this.D[Q]||null};
g.R.U3=function(){for(var Q=g.V(Object.values(this.D)),W=Q.next();!W.done;W=Q.next())gZ(W.value);g.N.prototype.U3.call(this)};g.n(Nv,g.N);g.R=Nv.prototype;g.R.enqueue=function(Q,W){if(Q.N!==this)return!1;if(this.segments.length===0||(W===void 0?0:W))this.B=Q;this.segments.push(Q);return!0};
g.R.UQ=function(){return this.gG||0};
g.R.cK=function(){return this.N||0};
g.R.removeAll=function(){for(;this.segments.length;){var Q=void 0;(Q=this.segments.pop())==null||Q.dispose()}this.U.clear();this.D=void 0};
g.R.U3=function(){this.removeAll();g.N.prototype.U3.call(this)};
g.n(K8l,g.N);g.R=K8l.prototype;g.R.UQ=function(){return this.gG};
g.R.cK=function(){return this.D};
g.R.getType=function(){return this.type};
g.R.getVideoData=function(){return this.videoData};
g.R.Nd=function(Q){pQ(Q);this.videoData=Q};
g.R.U3=function(){lzh(this);g.N.prototype.U3.call(this)};g.eA.prototype.ul=function(Q,W){if(W===1)return this.B.get(Q);if(W===2)return this.D.get(Q);if(W===3)return this.U.get(Q)};
g.eA.prototype.bD=xQ(57);g.eA.prototype.RC=function(Q,W,x,D){x={Fm:D,Bv:x};W?this.D.set(Q,x):this.B.set(Q,x)};
g.eA.prototype.clearAll=function(){this.B.clear();this.D.clear();this.U.clear()};
g.n(g.f7,g.N);g.R=g.f7.prototype;g.R.GO=function(Q,W,x){return new g.jz(Q,W,{id:x,namespace:"serverstitchedcuerange",priority:9})};
g.R.tZ=function(Q){var W=Q.Uc?Q.Uc*1E3:Q.gG,x=this.U.get(Q.cpn);x&&this.playback.removeCueRange(x);this.U.delete(Q.cpn);this.D.delete(Q.cpn);x=this.L.indexOf(Q);x>=0&&this.L.splice(x,1);x=[];for(var D=g.V(this.X),K=D.next();!K.done;K=D.next())K=K.value,K.end<=W?this.playback.removeCueRange(K):x.push(K);this.X=x;vx2(this,0,W+Q.durationMs)};
g.R.onCueRangeEnter=function(Q){this.eZ.push(Q);var W=Q.getId();this.T1({oncueEnter:1,cpn:W,start:Q.start,end:Q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.cZ()||0).toFixed(3)});var x=W==="";this.I5.add(Q.U);var D=this.D.get(W);if(x){var K;if(this.playback.getVideoData().aQ()&&((K=this.B)==null?0:K.JS)&&this.N){this.DL=0;this.B=void 0;this.pS&&(this.events.mJ(this.pS),this.pS=null);this.N="";this.s3=!0;return}}else if(this.T1({enterAdCueRange:1}),this.playback.getVideoData().aQ()&&
(D==null?0:D.Oq))return;if(this.s3&&!this.B)this.s3=!1,!x&&D&&(x=this.playback.getCurrentTime(),ED(this,{Jr:Q,isAd:!0,Js:!0,L3:x,adCpn:W},{isAd:!1,Js:!1,L3:x}),this.UV=D.cpn,TH(this,D),Q=rH(this,"midab",D),this.T1(Q),this.DL=1),this.T=!1;else if(this.B){if(this.B.Js)this.T1({a_pair_of_same_transition_occurs_enter:1,acpn:this.B.adCpn,transitionTime:this.B.L3,cpn:W,currentTime:this.playback.getCurrentTime()}),D=this.playback.getCurrentTime(),Q={Jr:Q,isAd:!x,Js:!0,L3:D,adCpn:W},W={Jr:this.B.Jr,isAd:this.B.isAd,
Js:!1,L3:D,adCpn:this.B.adCpn},this.B.Jr&&this.I5.delete(this.B.Jr.U),ED(this,Q,W);else{if(this.B.Jr===Q){this.T1({same_cue_range_pair_enter:1,acpn:this.B.adCpn,transitionTime:this.B.L3,cpn:W,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:Q.start,cueRangeEndTime:Q.end});this.B=void 0;return}if(this.B.adCpn===W){W&&this.T1({dchtsc:W});this.B=void 0;return}Q={Jr:Q,isAd:!x,Js:!0,L3:this.playback.getCurrentTime(),adCpn:W};ED(this,Q,this.B)}this.B=void 0;this.T=!1}else this.B={Jr:Q,isAd:!x,
Js:!0,L3:this.playback.getCurrentTime(),adCpn:W}};
g.R.onCueRangeExit=function(Q){var W=Q.getId();this.T1({oncueExit:1,cpn:W,start:Q.start,end:Q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.cZ()||0).toFixed(3)});var x=W==="",D=this.D.get(W);if(this.playback.getVideoData().aQ()&&!x&&D){if(D.Oq)return;D.Oq=!0;this.S.clear();if(this.bj.j("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.XM()){var K=D.gG;this.playback.GM(K/1E3,(K+D.durationMs)/1E3)}else this.playback.qj("lifa",{remove:0})}if(this.I5.has(Q.U))if(this.I5.delete(Q.U),
this.eZ=this.eZ.filter(function(l){return l!==Q}),this.s3&&(this.T=this.s3=!1,this.T1({cref:1})),this.B){if(this.B.Js){if(this.B.Jr===Q){this.T1({same_cue_range_pair_exit:1,
acpn:this.B.adCpn,transitionTime:this.B.L3,cpn:W,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:Q.start,cueRangeEndTime:Q.end});this.B=void 0;return}if(this.B.adCpn===W){W&&this.T1({dchtsc:W});this.B=void 0;return}W={Jr:Q,isAd:!x,Js:!1,L3:this.playback.getCurrentTime(),adCpn:W};ED(this,this.B,W)}else if(this.T1({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.B.adCpn,transitionTime:this.B.L3,upcomingCpn:W,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}),
this.B.adCpn===W)return;this.B=void 0;this.T=!1}else this.B={Jr:Q,isAd:!x,Js:!1,L3:this.playback.getCurrentTime(),adCpn:W};else this.T1({ignore_single_exit:1})};
g.R.l$=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,gG:0,playerType:1,VA:0,videoData:this.playback.getVideoData(),errorCount:0}};
g.R.QD=function(){if(this.Nk)return!1;var Q=void 0;this.UV&&(Q=this.D.get(this.UV));return this.playback.getVideoData().aQ()?!!Q&&!Q.Oq:!!Q};
g.R.seekTo=function(Q,W,x,D){Q=Q===void 0?0:Q;W=W===void 0?{}:W;x=x===void 0?!1:x;D=D===void 0?null:D;if(this.playback.getVideoData().aQ()&&Q<=this.KS/1E3)this.playback.pauseVideo(),this.KS=0,this.T=!0,this.playback.QI(),this.playback.seekTo(Q),this.playback.playVideo();else if(this.T=!0,x)MKF(this,Q,W);else{x=this.app.w7();var K=x===this.O3?this.Kn:null;tk(this,!1);this.Gn=Q;this.Y6=W;D!=null&&this.fn.start(D);x&&(this.Kn=K||x.getPlayerState(),x.cH(),this.O3=x)}};
g.R.U3=function(){tk(this,!1);Xwn(this);oxD(this);g.N.prototype.U3.call(this)};
g.R.IP=function(Q){this.Sk=Q;this.T1({swebm:Q})};
g.R.Kt=function(Q,W,x){if(x&&W){var D=this.S.get(Q);if(D){D.locations||(D.locations=new Map);var K=Number(W.split(";")[0]);x=new g.JW(x);this.T1({hdlredir:1,itag:W,seg:Q,hostport:hW(x)});D.locations.set(K,x)}}};
g.R.fB=function(Q,W,x,D,K,l){var M=D===3,w=Y8Q(this,Q,W,D,x,l);if(!w){W8(this,W,M);var S=g.uM5(this,W)?"undec":"ncp";this.T1({gvprp:S,mt:Q,seg:W,tt:D,itag:x,ce:l});return null}M||this.S.set(W,w);l=w.pR;var b;D=((b=this.ul(W-1,D,K))==null?void 0:b.Fm)||"";D===""&&this.T1({eds:1});b=VK4(this,w.ssdaiAdsConfig);K=this.playback.getVideoData();var z;M=((z=K.U)==null?void 0:z.containerType)||0;z=K.CI[M];w=w.SG&&W>=w.SG?w.SG:void 0;z={UH:l?J9h(this,l):[],Fl:b,Fm:D,Th:w,ip:WZ(z.split(";")[0]),Cw:z.split(";")[1]||
""};w={WL:z};this.tf&&(Q={gvprpro:"v",sq:W,mt:Q.toFixed(3),itag:x,acpns:((S=z.UH)==null?void 0:S.join("_"))||"none",abid:l},this.T1(Q));return w};
g.R.jw=function(Q){a:{if(!this.Nk){var W=nxz(this,Q);if(!(this.playback.getVideoData().aQ()&&(W==null?0:W.Oq)))break a}W=void 0}var x=W;if(!x)return this.T1({gvprp:"ncp",mt:Q}),null;W=x.pR;var D=VK4(this,x.ssdaiAdsConfig);x=x.SG&&x.gj&&Q>=x.gj?x.SG:void 0;var K=this.playback.getVideoData(),l,M=((l=K.U)==null?void 0:l.containerType)||0;l=K.CI[M];l={UH:W?J9h(this,W):[],Fl:D,Th:x,ip:WZ(l.split(";")[0]),Cw:l.split(";")[1]||""};var w;Q={gvprpro:"v",mt:Q.toFixed(3),acpns:((w=l.UH)==null?void 0:w.join("_"))||
"none",abid:W};this.T1(Q);return l};
g.R.Pd=function(Q,W,x,D,K,l){var M=Number(x.split(";")[0]),w=D===3;Q=Y8Q(this,Q,W,D,x,l);this.T1({gdu:1,seg:W,itag:M,pb:""+!!Q});if(!Q)return W8(this,W,w),null;Q.locations||(Q.locations=new Map);if(!Q.locations.has(M)){var S,b;l=(S=Q.videoData.getPlayerResponse())==null?void 0:(b=S.streamingData)==null?void 0:b.adaptiveFormats;if(!l)return this.T1({gdu:"noadpfmts",seg:W,itag:M}),W8(this,W,w),null;S=l.find(function(X){return X.itag===M});
if(!S||!S.url){var z=Q.videoData.videoId;Q=[];var k=g.V(l);for(D=k.next();!D.done;D=k.next())Q.push(D.value.itag);this.T1({gdu:"nofmt",seg:W,vid:z,itag:M,fullitag:x,itags:Q.join(",")});W8(this,W,w);return null}Q.locations.set(M,new g.JW(S.url,!0))}l=Q.locations.get(M);if(!l)return this.T1({gdu:"nourl",seg:W,itag:M}),W8(this,W,w),null;l=new uM(l);this.Sk&&(l.get("dvc")?this.T1({dvc:l.get("dvc")||""}):l.set("dvc","webm"));(D=(k=this.ul(W-1,D,K))==null?void 0:k.Fm)&&l.set("daistate",D);Q.SG&&W>=Q.SG&&
l.set("skipsq",""+Q.SG);(k=this.playback.getVideoData().clientPlaybackNonce)&&l.set("cpn",k);k=[];Q.pR&&(k=J9h(this,Q.pR),k.length>0&&l.set("acpns",k.join(",")));w||this.S.set(W,Q);w=null;w=l.get("aids");D=l.cV();(D==null?void 0:D.length)>2048&&this.T1({urltoolong:1,sq:W,itag:M,len:D.length});this.tf&&(D&&(l=Q.cpn,K=Q.pR,az1(this,l,K),K&&!this.UT.has(K)&&(l=pw1(this,l,K),S=hal(this,K),this.T1({iofa:l}),this.T1({noawnzd:S-l}),this.T1({acpns:k.join("."),aids:(z=w)==null?void 0:z.replace(/,/g,".")}),
this.UT.add(K))),this.T1({gdu:"v",seg:W,itag:x,ast:Q.gG.toFixed(3),alen:Q.durationMs.toFixed(3),acpn:Q.cpn,avid:Q.videoData.videoId}));return D};
g.R.PA=function(Q,W,x){var D=Qq(this,Q,x);return(D=D?(D.gG+D.durationMs)/1E3:0)&&W>D?(this.i_(Q,x,!0),this.playback.seekTo(D),!0):!1};
g.R.i_=function(Q,W,x){x=x===void 0?!1:x;var D=Qq(this,Q,W);if(D){var K=void 0,l=D.pR;if(l){this.T1({skipadonsq:W,sts:x,abid:l,acpn:D.cpn,avid:D.videoData.videoId});x=this.G.get(l);if(!x)return;x=g.V(x);for(l=x.next();!l.done;l=x.next())l=l.value,l.SG=W,l.gj=Q,l.gG>D.gG&&(K=l)}this.N=D.cpn;P4O(this);Q=this.playback.getCurrentTime();OD(this,D,K,Q,Q,!1,!0)}};
g.R.Bp=function(){for(var Q=g.V(this.L),W=Q.next();!W.done;W=Q.next())W=W.value,W.SG=NaN,W.gj=NaN;P4O(this);this.T1({rsac:"resetSkipAd",sac:this.N});this.N=""};
g.R.ul=function(Q,W,x){return this.X3.ul(Q,W,x)};
g.R.bD=xQ(56);
g.R.RC=function(Q,W,x,D,K,l,M,w,S){D.length>0&&this.T1({onssinfo:1,sq:Q,start:W.toFixed(3),cpns:D.join(","),ds:K.join(","),isVideo:M?1:0});S&&this.X3.RC(Q,M,w,S);S=MJ(this.playback.getVideoData())&&this.bj.j("html5_process_all_cuepoints");if(M||S){if(D.length&&K.length)for(this.N&&this.N===D[0]&&this.T1({skipfail:1,sq:Q,acpn:this.N}),Q=W+this.X4(),M=0;M<D.length;M++){var b=D[M];S=Q;Q=S+K[M];if(b=this.D.get(b))S-=l[M],b.Uc=b.Uc!=null?Math.min(b.Uc,S):S}if(D.length&&K.length)for(W=(W+this.X4())*1E3,
x=0;x<D.length;x++)if(Q=D[x],M=K[x]*1E3,Q===this.playback.getVideoData().clientPlaybackNonce)C4l(this,W,W+M,!1),W+=M;else{this.Pt.has(Q)||(this.T1({adCpnFromEmsg:1}),this.Pt.add(Q));S=0;x<l.length&&(S=l[x]*1E3);b=this.U.get(Q);var z=!1;b?(b.start=W-S,b.end=W+M,x===D.length-1&&(b.end+=DY(this,Q,w)),this.playback.iC()):(b=this.GO(W-S,W+M,Q),this.U.set(Q,b),this.T1({newAdCR:1,cpn:Q,startTime:b.start,endTime:b.end}),z=!0,x===D.length-1&&(b.end+=DY(this,Q,w)));W=b.end;C4l(this,b.start,b.end,!0);if(z)for(this.playback.addCueRange(b),
Q=this.playback.jA("serverstitchedcuerange",36E5),Q=g.V(Q),M=Q.next();!M.done;M=Q.next())this.U.delete(M.value.getId())}else x!==5&&x!==4||C4l(this,(W+this.X4())*1E3,(W+this.X4())*1E3+5E3,!1)}};
g.R.NL=xQ(54);g.R.X4=function(){return this.playback.X4()};
g.R.Av=function(Q){this.playback.qj("timelineerror",{e:Q})};
g.R.Gi=function(Q){this.LS&&this.F3&&this.g7.push(this.F3);Q&&this.F3&&this.Cn.push(this.F3);this.F3=null;this.playback.Gi(Q)};
g.R.cY=function(Q){if(this.Nk||Q.identifier&&this.b6.has(Q.identifier))this.T1({startnoad:Q.identifier}),L7(this);else if(dM(this.g7,function(x){return x.identifier===Q.identifier}))this.T1({timedoutcp:1}),this.fS.start(0);
else if(dM(this.Cn,function(x){return x.identifier===Q.identifier}))this.T1({fetchedcp:1}),L7(this);
else if(this.fS.isActive()){var W;this.T1({racingcp:((W=this.F3)==null?void 0:W.identifier)+"_"+Q.identifier})}else this.yA=(new Date).getTime()/1E3,this.T1({adf:1}),(W=5E3,Q.event==="predictStart")&&(W-=Q.B),this.Vj=Math.max(W,15E3),this.LS=!1,this.fS.start(this.Vj),this.F3=Q,this.X3.clearAll(),this.SZ=[]};
g.R.R2=function(Q,W,x,D){x=x||{reason:"disablessdai"};if(Q&&W){if(!Qq(this,Q,W))return!1;x.sq=W}if(this.Nk)return!1;this.Nk=!0;this.DL>0&&(this.DL=0,this.UV="",this.api.publish("serverstitchedvideochange"));this.playback.D6(x,D);return!0};
g.R.rk=function(){this.T1({rstdaist:1});this.X3.clearAll()};
g.R.gJ=function(Q){var W;if(Q!==((W=this.F3)==null?void 0:W.identifier))this.T1({ignorenoad:Q});else{this.b6.add(Q);var x;((x=this.F3)==null?void 0:x.identifier)===Q&&L7(this)}};
g.R.Z6=function(){return this.DL};
g.R.fu=function(){return this.UV};
g.R.L0=function(Q){if(this.Nk)return this.T1({dai_disabled:Q.event}),!1;if(this.playback.getVideoData().aQ()&&(this.bj.j("html5_lifa_no_gab_on_predict_start")&&Q.event==="predictStart"||Q.event==="continue"||Q.event==="stop"))return this.T1({cuepoint_skipped:Q.event}),!1;var W=AJ(this.api.x6());if(W=W?W.L0(Q):!1)this.uj={p4:Q.identifier,zX:Q.startSecs};else if(this.uj&&this.uj.p4===Q.identifier&&Q.startSecs>this.uj.zX+1){this.T1({cueStChg:Q.identifier,oldSt:this.uj.zX.toFixed(3),newSt:Q.startSecs.toFixed(3),
abid:this.uj.eV});if(this.uj.eV){var x=Q.startSecs-this.uj.zX,D=this.G.get(this.uj.eV);if(D){D=g.V(D);for(var K=D.next();!K.done;K=D.next())K=K.value,K.gG>=0&&(K.gG+=x*1E3,this.bj.j("html5_ssdai_update_timeline_on_start_time_change")&&(K.VA+=x*1E3),this.T1({newApEt:K.gG,newApPrt:K.VA,acpn:K.cpn}))}}this.uj.zX=Q.startSecs}return W};
g.R.K$=function(Q){return this.Nk?!1:!!nxz(this,Q)};
g.R.EF=function(Q){var W=this;this.playback.pauseVideo();var x=this.playback.getCurrentTime(),D=this.bj.j("html5_lifa_reset_segment_index_on_skip"),K=D?x+this.playback.X4():x,l=this.D.get(this.UV),M=this.U.get(this.UV);if(l){this.N=this.UV;this.T=!1;l.Oq=!0;x=this.playback.getCurrentTime();this.B={Jr:M,isAd:!0,Js:!1,L3:x,adCpn:this.UV,JS:l,sX3:Q};this.playback.bV(l,this.l$(),x,this.playback.getCurrentTime(),!1,!0,Q,(0,g.a8)());D&&this.playback.q9();if(M==null?0:M.start)this.KS=x*1E3-M.start;this.S.clear();
this.playback.QI();this.UV=this.l$().cpn;this.api.publish("serverstitchedvideochange");this.playback.seekTo(K,{seekSource:89,N7:"lifa_skip"});this.playback.playVideo();this.pS||(this.pS=this.events.W(this.api,"progresssync",function(){W.tZ(l)}));
return!0}this.T1({skipFail:x},!0);return!1};
g.R.T1=function(Q,W){((W===void 0?0:W)||this.tf||this.playback.getVideoData().aQ())&&this.playback.qj("sdai",Q)};
var bFF=0;g.n(Gc1,g.f7);g.R=Gc1.prototype;g.R.onCueRangeEnter=function(Q){var W=Q.getId();this.playback.qj("sdai",{oncueEnter:1,cpn:W,start:Q.start,end:Q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.cZ()||0).toFixed(3)});Q=this.D.get(W);this.playback.qj("sdai",{enterAdCueRange:1});W=this.UV||this.l$().cpn;var x;W=(x=this.D.get(W))!=null?x:this.l$();Q&&(x={jX:W,lA:Q,L$:this.playback.getCurrentTime()},this.Pk(x))};
g.R.onCueRangeExit=function(Q){var W=this.playback.getCurrentTime()*1E3;Q=Q.getId();for(var x=g.V(this.U.values()),D=x.next();!D.done;D=x.next())if(D=D.value,D.getId()!==Q&&W>=D.start&&W<=D.end)return;if(W=this.D.get(Q))W={jX:W,lA:this.l$(),L$:this.playback.getCurrentTime()},this.Pk(W)};
g.R.Pk=function(Q){this.N||this.T||this.Wx(this.UV);var W=Q.jX,x=Q.lA;if(x.cpn===this.UV)this.playback.qj("sdai",{igtranssame:1,enter:x.cpn,exit:W.cpn});else{var D=this.T,K=!!this.N;this.N="";var l=Q.L$,M=W.playerType===2?W.gG/1E3+W.videoData.s3:this.l$().videoData.s3;if(W.playerType===2&&x.playerType===2)K?this.playback.qj("sdai",{igtransskip:1,enter:x.cpn,exit:W.cpn,seek:D,skip:this.N}):OD(this,W,x,M,l,D,K);else{this.UV=x.cpn;Q=Q.UCS;if(W.playerType===1&&x.playerType===2){this.KS=0;TH(this,x);var w=
rH(this,"c2a",x);this.playback.qj("sdai",w);this.DL++}else if(W.playerType===2&&x.playerType===1){w=W.videoData.s3;this.api.publish("serverstitchedvideochange");var S=rH(this,"a2c");this.playback.qj("sdai",S);this.DL=0;this.KS=w*1E3;this.hn=M;A9a(this,W.pR)}this.playback.bV(W,x,M,l,D,K,Q)}this.N="";this.T=!1}};
g.R.seekTo=function(Q,W,x,D){Q=Q===void 0?0:Q;W=W===void 0?{}:W;x=x===void 0?!1:x;D=D===void 0?null:D;this.Wx(this.UV);this.playback.getVideoData().aQ()&&Q<=this.hn?(this.playback.pauseVideo(),this.hn=this.KS=0,dXO(this,Q)):g.f7.prototype.seekTo.call(this,Q,W,x,D)};
g.R.i_=function(Q,W,x){x=x===void 0?!1:x;var D=Qq(this,Q,W);if(D){var K=void 0,l=D.pR;if(l){this.playback.qj("sdai",{skipadonsq:W,sts:x,abid:l,acpn:D.cpn,avid:D.videoData.videoId});x=this.G.get(l);if(!x)return;x=g.V(x);for(l=x.next();!l.done;l=x.next())l=l.value,l.SG=W,l.gj=Q,l.gG>D.gG&&(K=l)}this.Wx(this.UV);this.N=D.cpn;P4O(this);Q=this.playback.getCurrentTime();OD(this,D,K,Q,Q,!1,!0)}};
g.R.RC=function(Q,W,x,D,K,l,M,w,S){D.length>0&&this.playback.qj("sdai",{onssinfo:1,sq:Q,start:W.toFixed(3),cpns:D.join(","),ds:K.join(","),isVideo:M?1:0});S&&this.X3.RC(Q,M,w,S);x=MJ(this.playback.getVideoData())&&this.bj.j("html5_process_all_cuepoints");if(M||x){if(D.length&&K.length)for(this.N&&this.N===D[0]&&this.playback.qj("sdai",{skipfail:1,sq:Q,acpn:this.N}),Q=W+this.X4(),M=0;M<D.length;M++)if(S=D[M],x=Q,Q=x+K[M],S=this.D.get(S))x-=l[M],S.Uc=S.Uc!=null?Math.min(S.Uc,x):x;if(D.length&&K.length)for(M=
(W+this.X4())*1E3,W=0;W<D.length;W++)if(x=D[W],S=K[W]*1E3,x===this.playback.getVideoData().clientPlaybackNonce)M+=S;else{this.Pt.has(x)||(this.playback.qj("sdai",{adCpnFromEmsg:1}),this.Pt.add(x));var b=0;W<l.length&&(b=l[W]*1E3);if(Q=this.U.get(x))Q.start=M-b,Q.end=M+S,W===D.length-1&&(Q.end+=DY(this,x,w)),this.playback.iC();else for(Q=this.GO(M-b,M+S,x),this.U.set(x,Q),this.playback.qj("sdai",{newAdCR:1,cpn:x,startTime:Q.start,endTime:Q.end}),W===D.length-1&&(Q.end+=DY(this,x,w)),this.playback.addCueRange(Q),
M=this.playback.jA("serverstitchedcuerange",36E5),M=g.V(M),x=M.next();!x.done;x=M.next())this.U.delete(x.value.getId());M=Q.end}}};
g.R.EF=function(Q){var W=this;this.Wx(this.UV);this.playback.pauseVideo();var x=this.playback.getCurrentTime(),D=this.D.get(this.UV);if(!D)return this.playback.qj("sdai",{skipFail:x}),!1;this.N=this.UV;this.T=!1;A9a(this,D.pR);iFn(this,D,this.l$(),Q);dXO(this,x,{seekSource:89,N7:"lifa_skip"});this.pS||(this.pS=this.events.W(this.api,"progresssync",function(){Xo((0,g.a8)(),"ad_to_video");W.pS&&(W.events.mJ(W.pS),W.pS=null)}));
return!0};
g.R.tZ=function(Q){var W=this.U.get(Q.cpn);this.U.delete(Q.cpn);W&&this.playback.removeCueRange(W);this.D.delete(Q.cpn);Q=this.L.indexOf(Q);Q>=0&&this.L.splice(Q,1)};
g.R.Wx=function(Q){var W=Q||this.UV,x=this.D.get(W);if(x){Q=x.videoData;var D,K;W=x.Uc||((K=(D=this.U.get(W))==null?void 0:D.start)!=null?K:0)/1E3;D=this.playback.getCurrentTime()-W;Q.s3=D>0?D:0}else this.l$().videoData.s3=this.playback.getCurrentTime()};g.n(BU4,g.N);g.R=BU4.prototype;
g.R.BX=function(Q,W){W=W===void 0?"":W;if(this.timeline.D===W)return!0;var x=this.timeline.B,D=x==null?void 0:x.getVideoData();if(!x||!D)return this.api.qj("ssap",{htsm:x?0:1}),!1;if(this.api.j("html5_ssap_clear_timeline_before_update")){var K=this.timeline,l;(l=K.B)==null||lzh(l);K.U.clear()}K=cy(x);var M=!1;l=[];var w=new Map;x=[];var S=[],b=0,z=0,k=0,X=[];Q=g.V(Q);for(var u=Q.next();!u.done;u=Q.next())a:{var Y=void 0,v=void 0,J=u.value,h=J.clipId;if(h){if(J.Vo){k=J.Vo.R3||0;u=J.Vo.I3||1;var G=
Number(((J.Vo.Lg||0)/(J.Vo.v4||1)*1E3).toFixed(0));k=u=G+Number((k/u*1E3).toFixed(0))}else u=G=k,this.DR.has(h)||this.vz.add(h);var H=(v=w.get(h))!=null?v:0,I=this.timeline.D;v=!1;if(I&&this.api.j("html5_ssap_clear_timeline_before_update")){if(I=this.xW.get(h))I.start=G,I.end=u,v=!0}else{if(I){var c=h;I=G;var O=u,T=H,Ks=EF(this.timeline,c);if(Ks!=null&&Ks.length){T<Ks.length&&(Ks[T].gG=I,Ks[T].D=O);if(c=this.xW.get(c))c.start=I,c.end=O;I=!0}else I=!1}if(I){w.set(h,H+1);M=!0;break a}}X.push(h);!v&&
J.Vo&&(X=this.GO(G,u,X.join(",")),this.xW.set(h,X),x.push(X),X=[]);if(((Y=J.Vo)==null?void 0:Y.bJ)===D.videoId){v=Y=void 0;J=h;h=D;J!==h.clientPlaybackNonce&&this.api.qj("ssap",{cnm:1,cid:J,cpn:h.clientPlaybackNonce});if(this.api.j("html5_ssap_clear_timeline_before_update"))h.b6=G,J=yi(this.timeline,1,G,u-G,h),l.push(J),G=gH(this.timeline,G,u,[J]),M=M||G;else if(I=[],h&&(h.b6=G,I=(v=EF(this.timeline,J))!=null?v:[]),!this.timeline.D&&I.length&&H===0){M=I[0];M.gG=G;M.D=u;h=(Y=this.timeline.B)==null?
void 0:Y.B;if((Y=h==null?void 0:h.get(0))&&h)for(v=0;v<Y.length;v++)if(I=Y[v],I.UQ()!==I.cK()){I.gG=G;I.N=u;Y.splice(v,1);h.has(G)?h.get(G).push(I):h.set(G,[I]);break}l.push(M);w.set(J,H+1);M=!0}else J=yi(this.timeline,1,G,u-G,h),l.push(J),G=gH(this.timeline,G,u,[J]),M=M||G;S.length&&(S=$X5(this,b||0,z,S),M=M||S);z=b=u;S=[]}else H=void 0,Y=this.kI.get(h),v=Y!=null?Y:new g.f1(this.api.C(),{cpn:h}),v.ix=!0,this.vz.has(h)&&this.kI.set(h,v),b=Math.min(G,b),z=Math.max(u,z),this.api.qj("ssap",{e:G,d:u-
G,c:h,p:Y?1:0}),v.b6=G,u=yi(this.timeline,2,G,u-G,v,(H=J.NB)==null?void 0:H.Bf),S.push(u)}else this.api.qj("ssap",{cm:1})}S.length&&(D=$X5(this,b||0,z,S),M=M||D);K&&l.length&&(DXQ(this.timeline,K,l),this.api.j("html5_ssap_clear_timeline_before_update")&&(D=l[l.length-1].cK(),(K=this.timeline.B)!=null&&(K.D=D)));x.length&&this.playback.FD(x);if(M){this.timeline.D=W;D=this.playback.Jv();W=[];D=g.V(D);for(x=D.next();!x.done;x=D.next()){x=x.value;if(x.D){if(this.api.j("html5_ssap_fix_ad_completion_cue_range")&&
x.start===0x7ffffffffffff)continue;K=$2(this,x.D);if(K===x.wm)continue;x.start=x.start-x.wm+K;x.end=x.end-x.wm+K;x.wm=K;W.push(x)}this.api.j("html5_ssap_fix_cue_range_updates")||this.playback.lC(W)}this.api.j("html5_ssap_fix_cue_range_updates")&&this.playback.lC(W);this.api.qj("ssap",{tu:jH(this)});W=AJ(this.api.x6());this.api.qj("ssap",{am:W?1:0})}else this.api.qj("ssap",{tnu:1});return!0};
g.R.addPlayerResponseForAssociation=function(Q){var W=new g.f1(this.api.C(),Q.playerVars);W.playerResponseCpn?W.clientPlaybackNonce=W.playerResponseCpn:this.api.qj("ssap",{eim:this.playback.getVideoData().clientPlaybackNonce});W.ix=!0;if(Q=Q.QQ)W.QQ=Q,W.clientPlaybackNonce=Q.cpn;Q=W.clientPlaybackNonce;this.api.qj("ssap",{aprfa:Q+"_"+W.videoId});if(Q){this.kI.set(Q,W);var x=EF(this.timeline,Q),D=!1;if(x==null?0:x.length){x=g.V(x);for(var K=x.next();!K.done;K=x.next())K=K.value,W.b6=K.UQ(),K.Nd(W),
K.U&&(D=!0)}else D=!W.videoId;if(!D){if(!H91(this.playback.xf.oW(W.videoId))){var l;this.api.qj("ssap",{nlc:Q,nlcc:(l=this.timeline.B)==null?void 0:cy(l)})}this.playback.xf.Tf().KO(Q,W,2)}}};
g.R.Wk=function(){this.El=!0;this.api.j("html5_ssap_timeline_handle_error_and_abandon")&&this.finishSegmentByCpn(this.UV,mv(this),5)};
g.R.qD=function(Q){if(g.XV(Q,128)){var W;Q=(W=Q.state.HI)==null?void 0:W.errorCode;this.finishSegmentByCpn(this.UV,mv(this),7,Q)}};
g.R.finishSegmentByCpn=function(Q,W,x,D){if(this.UV===W)return[];this.El&&(x=5,this.El=!1);this.api.qj("ssap",{fsbc:Q+";"+W,fsbcr:x,fsbct:this.api.getCurrentTime().toFixed(),fsbce:D!=null?D:""});if(this.api.j("html5_ssap_timeline_handle_error_and_abandon")&&(x===5||x===7))return gxs(this,Q,W,x),[];this.Ld=W;var K=!1;if(this.vz.has(Q)&&(K=HF5(this,x),!K))return[Q];var l=EF(this.timeline,W);if(l){l.sort(function(S,b){return S.UQ()-b.UQ()});
var M=g.V(l);for(l=M.next();!l.done;l=M.next()){l=l.value;var w=this.playback.getCurrentTime()*1E3;if(l.UQ()>=w){this.j7.set(Q,x);NUn(this,Q,W);this.RT.set(Q,(0,g.a8)());if(x=this.xW.get(W))for(x=x.getId().split(","),x=g.V(x),M=x.next();!M.done;M=x.next())M=M.value,M!==W&&this.vz.has(M)&&(this.vz.delete(M),this.DR.add(M));this.Wx();W=l.UQ()/1E3;l=void 0;x=(l=g.X0(this.api.C().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?l:0;this.api.j("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(W+
x/1E3,{Zx:!0}):this.playback.seekTo(W+x/1E3);this.ke?(this.api.qj("ssap",{gpfreload:this.UV}),q81(this)||(this.ke=!1),this.playback.QI(!1,!1,this.api.j("html5_ssap_keep_media_on_finish_segment"))):D&&this.playback.QI(!1,!1,this.api.j("html5_ssap_keep_media_on_finish_segment"));K&&this.api.playVideo(1,this.api.j("html5_ssap_keep_media_on_finish_segment"));return[Q]}}}return[]};
g.R.yM=function(){var Q=this.timeline.B;if(!Q)return 0;var W=Q.cK();Q=g.V(Q.B.values());for(var x=Q.next();!x.done;x=Q.next()){x=g.V(x.value);for(var D=x.next();!D.done;D=x.next())D=D.value,D.cK()>W&&(W=D.cK())}return W/1E3};
g.R.Jn=function(){var Q=this.playback.getCurrentTime()*1E3;var W=ean(this,Q);if(!W){var x=EF(this.timeline,this.UV);if(x){x=g.V(x);for(var D=x.next();!D.done;D=x.next())D=D.value,D.UQ()>Q&&(W=D)}}return W&&W.getType()===1?W.UQ()/1E3:0};
g.R.getVideoData=function(Q){if(Q===2&&!this.QD()){if(this.SC&&this.kI.has(this.SC))return this.kI.get(this.SC);this.api.qj("ssap",{lpanf:""+mv(this)});return null}return L8Q(this)};
g.R.QD=function(){var Q=EF(this.timeline,this.UV);return(Q==null?0:Q.length)?Q[0].getType()===2:!1};
g.R.Me=function(){var Q=EF(this.timeline,this.UV);return(Q==null?0:Q.length)?Q[0].U:!1};
g.R.seekTo=function(Q,W){W=W===void 0?{}:W;var x=fz1(this,this.playback.getCurrentTime());this.playback.seekTo(Q+x/1E3,W)};
g.R.GO=function(Q,W,x){return new g.jz(Q,W,{id:x,namespace:"ssap",priority:9})};
g.R.onCueRangeEnter=function(Q){if(!this.l4.has(Q.getId())){this.api.qj("ssap",{oce:1,cpn:Q.getId(),st:Q.start,et:Q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.cZ()||0).toFixed(3)});for(var W=Q.getId().split(","),x=0;x<W.length&&this.Ld&&W[x]!==this.Ld;){var D=W[x];this.vz.has(D)&&(this.vz.delete(D),this.DR.add(D));x++}if(W.length>x+1)for(D=x+1;D<W.length;D++)this.FS.push(W[D]);W=W[x];this.vz.has(W)&&r9a(this,W);this.DR.has(W)||c9O(this,W);W=g.V(this.xW.values());for(x=
W.next();!x.done;x=W.next())x=x.value,x.start<=Q.start&&!this.l4.has(Q.getId())&&this.l4.add(x.getId())}};
g.R.Z6=function(){return this.DL};
g.R.fu=function(){return this.UV};
g.R.handleError=function(Q,W){W=W===void 0?0:W;if(Q!=="fmt.decode"&&Q!=="fmt.unplayable"||!this.QD()||this.dR===this.UV)return!1;this.dR=this.UV;if(this.api.j("html5_enable_ssap_gapful_switch"))this.ke=!0,this.api.qj("ssap",{gpfonerr:Q}),this.playback.QI();else{this.playback.qj("ssap",{skiperr:Q,acpn:this.UV});var x=this.playback.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.UV,x,W===1||W===2?7:6,Q)}return!0};
g.R.Wx=function(Q){var W=Q||this.UV;if(Q=this.kI.get(W)||this.playback.getVideoData())W=this.playback.getCurrentTime()-$2(this,W)/1E3,Q.s3=W>0?W:0};
g.R.XZj=function(Q){var W=this.kI.get(this.UV);W&&this.playback.O5(Q-W.b6/1E3,W.lengthSeconds,this.UV)};
g.R.U3=function(){this.api.C().jk()&&this.api.qj("ssap",{di:""+this.UV,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.kI.clear();this.vz.clear();this.l4.clear();this.j7.clear();this.RT.clear();this.DR.clear();this.FS=[];UX5(this);this.Ld="";g.d3(this.events);g.N.prototype.U3.call(this)};g.n(Exv,g.N);g.R=Exv.prototype;g.R.onCueRangeEnter=function(Q){if(this.B===this.app.w7()){var W=this.L.get(Q);W?DVz(this,W.target,W.tX,Q):this.zt("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:Q.toString()})}else if(W=this.U.find(function(K){return K.g8.Jr===Q})){var x=W.g8,D=x.target;
x=x.tX;D?DVz(this,D,x,Q):xVv(this,W.VA,x,Q)}};
g.R.onQueuedVideoLoaded=function(){var Q=this.G;Ri(this);if(Q){if(!MK(this,Q)){var W=this.app.w7();this.zt("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:W==null?void 0:W.getVideoData().clientPlaybackNonce,ccpn:""+Q.playerVars.cpn})}this.app.w7().addCueRange(Q.g8.Jr)}};
g.R.seekTo=function(Q,W,x,D){Q=Q===void 0?0:Q;W=W===void 0?{}:W;D=D===void 0?null:D;if(x===void 0?0:x)OF1(this,Q,W);else{x=this.app.w7()||null;var K=x===this.N?this.X:null;wy(this,!1);this.uj=Q;this.T=W;D!=null&&this.S.start(D);x&&(this.X=K||x.getPlayerState(),x.cH(),this.N=x)}};
g.R.qD=function(Q){g.XV(Q,128)&&Rgn(this)};
g.R.isManifestless=function(){return zr(this.B.getVideoData())};
g.R.U3=function(){wy(this,!1);S41(this);g.N.prototype.U3.call(this)};
g.R.zt=function(Q,W){this.B.zt(new Gu(Q,W))};
var F8n=0;var be4="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.n(sz,g.N);g.R=sz.prototype;g.R.get=function(Q){Sv(this);var W=this.data.find(function(x){return x.key===Q});
return W?W.value:null};
g.R.set=function(Q,W,x){this.remove(Q,!0);Sv(this);Q={key:Q,value:W,expire:Infinity};x&&isFinite(x)&&(x*=1E3,Q.expire=(0,g.a8)()+x);for(this.data.push(Q);this.data.length>this.D;)(x=this.data.shift())&&zw(this,x,!0);bk(this)};
g.R.remove=function(Q,W){W=W===void 0?!1:W;var x=this.data.find(function(D){return D.key===Q});
x&&(zw(this,x,W),g.W1(this.data,function(D){return D.key===Q}),bk(this))};
g.R.removeAll=function(Q){if(Q=Q===void 0?!1:Q)for(var W=g.V(this.data),x=W.next();!x.done;x=W.next())zw(this,x.value,Q);this.data=[];bk(this)};
g.R.U3=function(){var Q=this;g.N.prototype.U3.call(this);this.data.forEach(function(W){zw(Q,W,!0)});
this.data=[]};g.n(ky,g.N);ky.prototype.aS=function(Q){if(Q)return this.U.get(Q)};
ky.prototype.U3=function(){this.B.removeAll();this.U.removeAll();g.N.prototype.U3.call(this)};g.muq=s7(function(){var Q=window.AudioContext||window.webkitAudioContext;try{return new Q}catch(W){return W.name}});g.n(ugO,g.L);g.R=ugO.prototype;g.R.yu=function(){g.Mh(this.element,g.i2.apply(0,arguments))};
g.R.GK=function(){this.tO&&(this.tO.removeEventListener("focus",this.Rg),g.lo(this.tO),this.tO=null)};
g.R.B0=function(){this.d7();var Q=this.app.C();Q.xI||this.yu("tag-pool-enabled");Q.X&&this.yu(g.LJ.HOUSE_BRAND);Q.playerStyle==="gvn"&&(this.yu("ytp-gvn"),this.element.style.backgroundColor="transparent");Q.Sk&&(this.PX=g.lu("yt-dom-content-change",this.resize,this));this.W(window,"orientationchange",this.resize,this);this.W(window,"resize",this.resize,this)};
g.R.UF=function(Q){g.q4(this.app.C());this.ov=!Q;X$(this)};
g.R.resize=function(){if(this.tO){var Q=this.ZB();if(!Q.isEmpty()){var W=!g.u0(Q,this.O9.getSize()),x=vra(this);W&&(this.O9.width=Q.width,this.O9.height=Q.height);Q=this.app.C();(x||W||Q.Sk)&&this.app.G1.publish("resize",this.getPlayerSize())}}};
g.R.Lu=function(Q,W){this.updateVideoData(W)};
g.R.updateVideoData=function(Q){if(this.tO){var W=this.app.C();LX&&(this.tO.setAttribute("x-webkit-airplay","allow"),Q.title?this.tO.setAttribute("title",Q.title):this.tO.removeAttribute("title"));this.tO.setAttribute("controlslist","nodownload");W.jS&&Q.videoId&&(this.tO.poster=Q.ue("default.jpg"))}W=g.CQ(Q,"yt:bgcolor");this.rf.style.backgroundColor=W?W:"";this.nx=MW(g.CQ(Q,"yt:stretch"));this.bv=MW(g.CQ(Q,"yt:crop"),!0);g.S$(this.element,"ytp-dni",Q.HZ);this.resize()};
g.R.setGlobalCrop=function(Q){this.zD=MW(Q,!0);this.resize()};
g.R.setCenterCrop=function(Q){this.Mv=Q;this.resize()};
g.R.Cu=function(){};
g.R.getPlayerSize=function(){var Q=this.app.C(),W=this.app.G1.isFullscreen(),x=Q.externalFullscreen&&g.d5(Q);if(W&&eL()&&!x)return new g.oZ(window.outerWidth,window.outerHeight);x=!isNaN(this.xU.width)&&!isNaN(this.xU.height);var D=this.app.C().j("kevlar_player_enable_squeezeback_fullscreen_sizing");if(W&&!x&&D)return new g.oZ(this.element.clientWidth,this.element.clientHeight);if(W||Q.Ep){if(window.matchMedia){Q="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.EC&&this.EC.media===
Q||(this.EC=window.matchMedia(Q));var K=this.EC&&this.EC.matches}if(K)return new g.oZ(window.innerWidth,window.innerHeight)}else if(x)return this.xU.clone();return new g.oZ(this.element.clientWidth,this.element.clientHeight)};
g.R.ZB=function(){var Q=this.app.C().j("enable_desktop_player_underlay"),W=this.getPlayerSize(),x=g.X0(this.app.C().experiments,"player_underlay_min_player_width");return Q&&this.MG&&W.width>x?(Q=g.X0(this.app.C().experiments,"player_underlay_video_width_fraction"),new g.oZ(Math.min(W.height*this.getVideoAspectRatio(),W.width*Q),Math.min(W.height,W.width*Q/this.getVideoAspectRatio()))):W};
g.R.getVideoAspectRatio=function(){return isNaN(this.nx)?nr1(this):this.nx};
g.R.getVideoContentRect=function(Q){var W=this.ZB();Q=VRF(this,W,this.getVideoAspectRatio(),Q);return new g.lq((W.width-Q.width)/2,(W.height-Q.height)/2,Q.width,Q.height)};
g.R.As=function(Q){this.MG=Q;this.resize()};
g.R.Ho=function(){return this.va};
g.R.onMutedAutoplayChange=function(){X$(this)};
g.R.setInternalSize=function(Q){g.u0(this.xU,Q)||(this.xU=Q,this.resize())};
g.R.U3=function(){this.PX&&g.jT(this.PX);this.GK();g.L.prototype.U3.call(this)};g.R=C_5.prototype;g.R.click=function(Q,W){this.elements.has(Q);this.B.has(Q);var x=g.ph();x&&Q.visualElement&&g.le(x,Q.visualElement,W)};
g.R.createClientVe=function(Q,W,x,D){var K=this;D=D===void 0?!1:D;this.elements.has(Q);this.elements.add(Q);x=Hwh(x);Q.visualElement=x;var l=g.ph(),M=g.Jb();l&&M&&(g.Pb("combine_ve_grafts")?i3(GL(),x,M):g.tx(g.rN)(void 0,l,M,x));W.addOnDisposeCallback(function(){K.elements.has(Q)&&K.destroyVe(Q)});
D&&this.U.add(Q)};
g.R.createServerVe=function(Q,W,x){var D=this;x=x===void 0?!1:x;this.elements.has(Q);this.elements.add(Q);W.addOnDisposeCallback(function(){D.destroyVe(Q)});
x&&this.U.add(Q)};
g.R.destroyVe=function(Q){this.elements.has(Q);this.elements.delete(Q);this.D.delete(Q);this.B.delete(Q);this.U.delete(Q)};
g.R.nh=function(Q,W){this.clientPlaybackNonce!==W&&(this.clientPlaybackNonce=W,dL(GL(),Q),JMQ(this))};
g.R.setTrackingParams=function(Q,W){this.elements.has(Q);W&&(Q.visualElement=g.vp(W))};
g.R.hO=function(Q,W,x){this.elements.has(Q);W?this.B.add(Q):this.B.delete(Q);var D=g.ph(),K=Q.visualElement;this.U.has(Q)?D&&K&&(W?g.DI(D,[K]):g.KV(D,[K])):W&&!this.D.has(Q)&&(D&&K&&g.x_(D,K,void 0,x),this.D.add(Q))};
g.R.hasVe=function(Q){return this.elements.has(Q)};g.n(g.uk,g.N);g.uk.create=function(Q,W,x,D){try{var K=typeof Q==="string"?Q:"player"+g.Ol(Q),l=pE[K];if(l){try{l.dispose()}catch(w){g.ql(w)}pE[K]=null}var M=new g.uk(Q,W,x,D);M.addOnDisposeCallback(function(){pE[K]=null;M.Lw&&M.Lw()});
return pE[K]=M}catch(w){throw g.ql(w),(w&&w instanceof Error?w:Error(String(w))).stack;}};
g.R=g.uk.prototype;g.R.fR=function(){return this.visibility};
g.R.Bq=function(Q){var W=this.Zp();if(Q!==W){Q.getVideoData().autonavState=W.getVideoData().autonavState;W.MP(this.DC,this);var x=W.getPlaybackRate();gZ(W);this.Gt.Bq(Q);Q.setPlaybackRate(x);Q.xJ(this.DC,this);AM2(this)}};
g.R.XZ=function(){this.Kx||(this.Kx=g.ll(mh(),vz2()));return this.Kx};
g.R.GK=function(Q){if(this.mediaElement){this.RA&&(this.events.mJ(this.RA),this.RA=null);g.d3(this.kc);var W=this.w7();W&&W.GK(!0,!1,Q);this.template.GK();try{this.j("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.CX()}catch(x){g.Bp(x)}this.mediaElement=null}};
g.R.Ie=function(Q,W){if(Q!==this.w7()){this.logger.debug(function(){return"start set presenting player, type "+Q.getPlayerType()+", vid "+Q.getVideoData().videoId});
var x=null,D=this.w7();D&&(x=D.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),iX(this.Mr,3),mM(this,"cuerangesremoved",D.Jv()),this.O2&&!Q.isGapless()&&D.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),D=Q.s2()&&D.s2(),this.Qh.ax("iv_s"),gr1(this,D));Q.getPlayerType()===1&&this.Bq(Q);cM5(this,Q);this.Gt.Ie(Q);this.mediaElement&&Q.setMediaElement(this.mediaElement);Q.xJ(this.G2,this);Q.CE()?uLQ(this,"setPresenting",!1):(this.Lu("newdata",Q,Q.getVideoData()),
x&&!g.bW(x,Q.getPlayerState())&&this.pg(new g.zV(Q.getPlayerState(),x)),W=W&&this.j("html5_player_preload_ad_fix")&&Q.getPlayerType()===1,Q.HY()&&!W&&this.Lu("dataloaded",Q,Q.getVideoData()),(W=(W=Q.getVideoData().U)&&W.video)&&this.G1.DJ("onPlaybackQualityChange",W.quality),mM(this,"cuerangesadded",Q.Jv()),W=Q.getPlayerState(),g.r(W,2)?NAQ(this):g.r(W,8)?Q.playVideo():Q.Vr()&&Q.pauseVideo(),W=this.Zp(),Q.getPlayerType()===2&&(Q.getVideoData().ES=W.getVideoData().clientPlaybackNonce),Q.getPlayerType()!==
2||this.It()||(x=Q.getVideoData(),W.vx(x.clientPlaybackNonce,x.Cn||"",x.breakType||0,x.wx,x.videoId||"")),this.logger.debug("finish set presenting player"))}};
g.R.qP=function(){if(this.Zp()!==this.w7()){var Q=this.w7();this.logger.debug(function(){return"release presenting player, type "+(Q==null?void 0:Q.getPlayerType())+", vid "+(Q==null?void 0:Q.getVideoData().videoId)});
this.Ie(this.Zp())}};
g.R.kB=function(){return this.Gt};
g.R.ek=function(Q){if(Q)if(Q===1)Q=this.Zp();else if(this.getVideoData().enableServerStitchedDai&&Q===2)Q=this.getVideoData().enablePreroll?this.Gt.ek(2)||this.w7():this.w7();else if(g.TQ(this.getVideoData())&&Q===2){if(Q=this.j("html5_ssap_return_content_player_during_preroll"))if(Q=this.nS)Q=this.nS,Q=Q.UV===""?!0:Q.QD();Q=Q?this.w7():this.Gt.ek(2)||this.w7()}else Q=this.Gt.ek(Q)||null;else Q=this.w7();return Q};
g.R.Zp=function(){return this.Gt.Zp()};
g.R.w7=function(){return this.Gt.w7()};
g.R.rL=xQ(44);g.R.Znj=function(){Ci(this)||(this.logger.debug("application playback ready"),this.CY(5))};
g.R.pV9=function(Q){if(!Ci(this)){this.logger.debug("playback ready");zHv(this);var W=Q.getPlayerState();Q.Vr()?this.pauseVideo():W.isOrWillBePlaying()&&this.playVideo()}};
g.R.canPlayType=function(Q){return Hl(Q)};
g.R.C=function(){return this.bj};
g.R.getVideoData=function(){return this.w7().getVideoData()};
g.R.rI=xQ(18);g.R.sx=function(){return this.Zp().getVideoData()};
g.R.getVideoLoadedFraction=function(Q){return(Q=this.ek(Q))?Q.getVideoLoadedFraction():this.Gt.B.getVideoLoadedFraction()};
g.R.hf=function(){return this.template};
g.R.x6=function(){return this.Mr};
g.R.v3=function(){return this.Qh};
g.R.Fa=function(Q){var W=this.ek(1);W&&W.Kd(Q)};
g.R.Hr=function(){var Q=this.Mr.Hr();this.G1.publish("videoStatsPingCreated",Q);return Q};
g.R.getVolume=function(){return Math.round(this.G1.getVolume())};
g.R.isMuted=function(){return this.G1.isMuted()};
g.R.C9=function(){if(this.Zp()===this.w7()&&this.k6)return this.k6.postId};
g.R.pIf=function(){var Q=this;this.j("use_rta_for_player")||(g.dO(this.bj)?g.lb(this.bj,g.ZM(this.getVideoData())).then(function(W){Nf(mh(),W);qfa(Q.getVideoData(),Q.bj,Q.XZ())}):qfa(this.getVideoData(),this.bj,this.XZ()))};
g.R.Ye=function(Q){this.G1.publish("poTokenVideoBindingChange",Q)};
g.R.Ma=function(Q){this.G1.publish("d6de4videobindingchange",Q)};
g.R.I8=function(){this.gC&&this.gC.I8()};
g.R.Y4=function(Q){this.gC=Q};
g.R.LV=function(Q){if(Q===1){this.Qh.tick("vr");var W=this.w7();W.Zc();Jk1(this.Qh,W.getVideoData(),sav(this));bin(this.Mr)}W=this.bj;(xS(W)&&W.G||g.$h(W))&&(this.It()||this.G1.DJ("onAdStateChange",Q))};
g.R.setLoopVideo=function(Q){var W=this.w7();W===this.Zp()&&W.q5()!==Q&&(W.setLoop(Q),this.G1.Wt("onLoopChange",Q))};
g.R.getLoopVideo=function(){return this.w7().q5()};
g.R.setLoopRange=function(Q){var W=!1;!!this.k6!==!!Q?W=!0:this.k6&&Q&&(W=this.k6.startTimeMs!==Q.startTimeMs||this.k6.endTimeMs!==Q.endTimeMs||this.k6.postId!==Q.postId||this.k6.type!==Q.type);if(W){(W=this.w7())&&KQ(W.getVideoData())&&W.qj("slr",{et:(Q==null?void 0:Q.endTimeMs)||-1});W=this.Zp();W.jQ("applooprange");if(Q){var x=new g.jz(Q.startTimeMs,Q.endTimeMs,{id:"looprange",namespace:"applooprange"});W.addCueRange(x)}else{this.sx().clipConfig=void 0;var D;((x=this.k6)==null?void 0:x.type)!==
"repeatChapter"||isNaN(Number((D=this.k6)==null?void 0:D.loopCount))||(x={loopCount:String(this.k6.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.wV("repeatChapterLoopEvent",x))}this.k6=Q;this.G1.Wt("onLoopRangeChange",Q||void 0);this.Zp()===this.w7()&&(this.nX(),W.zf())}};
g.R.getLoopRange=function(){return this.k6};
g.R.nX=function(){var Q="",W=this.Zp();this.k6?W!==this.w7()?Q="pnea":Oez(this,W.getCurrentTime())&&(this.k6.loopCount=0,Q="ilr"):Q="nlr";var x=this.w7();if(x&&KQ(x.getVideoData()))if(this.j("html5_gapless_log_loop_range_info")){var D,K;x.qj("slrre",{rej:Q,ct:W.getCurrentTime(),lst:(D=this.k6)==null?void 0:D.startTimeMs,let:(K=this.k6)==null?void 0:K.endTimeMs})}else x.qj("slrre",{});Q||Qa2(this)};
g.R.setPlaybackRate=function(Q,W){if(!isNaN(Q)){Q=BAn(this,Q);var x=this.Zp();x.getPlaybackRate()!==Q&&(x.setPlaybackRate(Q),W&&!this.bj.N&&g.Ud("yt-player-playback-rate",Q),this.G1.DJ("onPlaybackRateChange",Q))}};
g.R.getCurrentTime=function(Q,W,x){W=W===void 0?!0:W;if(this.getPresentingPlayerType()===3)return this.Gt.b_.getCurrentTime();var D=Q===2&&this.getVideoData().enableServerStitchedDai,K=g.TQ(this.getVideoData());Q=D||K?this.w7():this.ek(Q);if(!Q)return this.Gt.B.getCurrentTime();if(K&&this.nS)return W=this.nS,Q=Q.getCurrentTime(),x?x=Ki(W,x):(x=fz1(W,Q),x=Q-x/1E3),x;if(W){if(D&&this.oU&&(x=this.oU.KS/1E3,x!==0))return x;x=v8(this,Q);return AT(this,x.getCurrentTime(),x)}D&&this.oU?(x=this.oU,Q=Q.getCurrentTime(),
x=(x=zav(x,Q*1E3))?Q-x.start/1E3:Q):x=Q.getCurrentTime();return x};
g.R.xQ=function(){var Q=this.ek();if(!Q)return this.Gt.B.xQ();Q=v8(this,Q);return AT(this,Q.xQ(),Q)};
g.R.getDuration=function(Q,W){W=W===void 0?!0:W;var x=this.getVideoData(),D=Q===2&&x.enableServerStitchedDai,K=g.TQ(x);var l=D||K?this.w7():this.ek(Q);if(!l)return this.Gt.B.getDuration();if(x.hasProgressBarBoundaries()&&!D&&!K){var M,w=Number((M=x.progressBarStartPosition)==null?void 0:M.utcTimeMillis),S;x=Number((S=x.progressBarEndPosition)==null?void 0:S.utcTimeMillis);if(!isNaN(w)&&!isNaN(x))return(x-w)/1E3}if(K&&this.nS)return W=ZFs(this.nS,this.nS.fu()),Q===1&&W===0?l.getDuration():W;if(W)return l=
P8(this,l),AT(this,l.getDuration(),l);D&&this.oU?(Q=this.oU,l=l.getCurrentTime(),l=(l=kcD(Q,l*1E3))?l.durationMs/1E3:0):l=l.getDuration();return l};
g.R.LZ=function(Q){var W=this.ek(Q);return W?this.It(W)?(W=P8(this,W),W.LZ()-W.getCurrentTime()+this.getCurrentTime(Q)):W.LZ():this.Gt.B.LZ()};
g.R.QM=function(){return this.M5};
g.R.addPlayerResponseForAssociation=function(Q){this.nS&&this.nS.addPlayerResponseForAssociation(Q)};
g.R.finishSegmentByCpn=function(Q,W,x){return this.nS?this.nS.finishSegmentByCpn(Q,W,x):[]};
g.R.B0=function(){this.template.B0();var Q=this.G1;Q.state.element=this.template.element;var W=Q.state.element,x;for(x in Q.state.B)Q.state.B.hasOwnProperty(x)&&(W[x]=Q.state.B[x]);(Q=O8O(this.template.element))&&this.events.W(this.template,Q,this.onFullscreenChange);this.events.W(window,"resize",this.rrt)};
g.R.getDebugText=function(Q){var W=this.Zp().AO(Q),x=this.w7(),D=this.Zp();if(x&&x!==D){x=x.AO(Q);D=g.V(Object.keys(x));for(var K=D.next();!K.done;K=D.next())K=K.value,W["ad"+K]=x[K];if(Q){x=W;D={};if(K=gS(document,"movie_player"))D.bounds=K.getBoundingClientRect(),D["class"]=K.className;K={};var l=g.rS("video-ads");l?(V1n(l,K),K.html=l.outerHTML):K.missing=1;l={};var M=g.rS("videoAdUiSkipContainer"),w=g.rS("ytp-ad-skip-button-container"),S=g.rS("ytp-skip-ad-button"),b=M||w||S;b?(V1n(b,l),l.ima=M?
1:0,l.bulleit=w?1:0,l.component=S?1:0):l.missing=1;D=JSON.stringify({player:D,videoAds:K,skipButton:l});x.ad_skipBtnDbgInfo=D}}Q&&this.mediaElement&&(W["0sz"]=""+(+Y6(this.mediaElement.getSize())===0),W.op=this.mediaElement.oZ("opacity"),x=this.mediaElement.RX().y+this.mediaElement.getSize().height,W.yof=""+(+x<=0),W.dis=this.mediaElement.oZ("display"));Q&&((Q=(0,g.a5)())&&(W.gpu=Q),(Q=this.bj.playerStyle)&&(W.ps=Q),this.bj.eZ&&(W.webview=1));W.debug_playbackQuality=this.G1.getPlaybackQuality(1);
W.debug_date=(new Date).toString();W.origin=window.origin;W.timestamp=Date.now();delete W.uga;delete W.q;return JSON.stringify(W,null,2)};
g.R.getFeedbackProductData=function(){var Q={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.C().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250302_00_RC00"},W=this.getPlayerStateObject().HI;W&&(Q.player_error_code=W.errorCode,Q.player_error_details=JSON.stringify(W.errorDetail));return Q};
g.R.getPresentingPlayerType=function(Q){if(this.appState===1)return 1;if(Ci(this))return 3;var W;if(Q&&((W=this.oU)==null?0:W.QD(this.getCurrentTime())))return 2;var x;return g.TQ(this.getVideoData())&&((x=this.nS)==null?0:x.QD())?2:this.w7().getPlayerType()};
g.R.Me=function(){return g.TQ(this.getVideoData())&&this.nS?this.nS.Me():!1};
g.R.getPlayerStateObject=function(Q){return this.getPresentingPlayerType()===3?this.Gt.b_.getPlayerState():this.ek(Q).getPlayerState()};
g.R.getAppState=function(){return this.appState};
g.R.qT=function(Q){switch(Q.type){case "loadedmetadata":this.aJ.start();Q=g.V(this.bx);for(var W=Q.next();!W.done;W=Q.next())W=W.value,SiD(this,W.id,W.UDf,W.B53,void 0,!1);this.bx=[];break;case "loadstart":this.Qh.ax("gv");break;case "progress":case "timeupdate":zl(Q.target.O4())>=2&&this.Qh.ax("l2s");break;case "playing":g.Q7&&this.aJ.start();if(g.dO(this.bj))Q=!1;else{var x=this.w7();W=g.Hd(this.x6());Q=this.mediaElement.oZ("display")==="none"||Y6(this.mediaElement.getSize())===0;var D=oi(this.template),
K=x.getVideoData();x=g.Il(this.bj);K=lG(K);W=!D||W||x||K||this.bj.tf;Q=Q&&!W}Q&&(Q=this.w7(),Q.AL(),this.getVideoData().Sk||(this.getVideoData().Sk=1,this.zl(),Q.playVideo()))}};
g.R.onLoadProgress=function(Q,W){this.G1.WD("onLoadProgress",W)};
g.R.uX1=function(){this.G1.publish("playbackstalledatstart")};
g.R.j2=function(Q,W){this.G1.publish("sabrCaptionsDataLoaded",Q,W)};
g.R.OZj=function(Q){var W;(W=this.w7())==null||W.uQ(Q)};
g.R.HZ3=function(Q){var W;(W=this.w7())==null||W.qa(Q)};
g.R.onVideoProgress=function(Q,W){Q=v8(this,Q.lz);W=AT(this,Q.getCurrentTime(),Q);this.G1.DJ("onVideoProgress",W);this.bj.qH&&ja5(this,this.visibility.J4())&&this.pauseVideo()};
g.R.onAutoplayBlocked=function(){this.G1.DJ("onAutoplayBlocked");var Q,W=(Q=this.w7())==null?void 0:Q.getVideoData();W&&(W.Gd=!0);this.j("embeds_enable_autoplay_and_visibility_signals")&&g.d5(this.bj)&&(Q={autoplayBrowserPolicy:rL(),autoplayIntended:TL(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.wV("embedsAutoplayStatusChanged",Q))};
g.R.fG3=function(){this.G1.publish("progresssync")};
g.R.uYj=function(){this.G1.WD("onPlaybackPauseAtStart")};
g.R.n63=function(Q){if(this.getPresentingPlayerType()===1){g.XV(Q,1)&&!g.r(Q.state,64)&&this.sx().isLivePlayback&&this.Zp().isAtLiveHead()&&this.G1.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.XV(Q,2)){if(this.k6&&this.k6.endTimeMs>=(this.getDuration()-1)*1E3){Qa2(this);return}NAQ(this)}if(g.r(Q.state,128)){var W=Q.state;this.cancelPlayback(5);W=W.HI;JSON.stringify({errorData:W,debugInfo:this.getDebugText(!0)});this.G1.DJ("onError",LD5(W.errorCode));this.G1.WD("onDetailedError",{errorCode:W.errorCode,
errorDetail:W.errorDetail,message:W.errorMessage,messageKey:W.Ev,cpn:W.cpn});(0,g.a8)()-this.bj.QN>6048E5&&this.G1.WD("onReloadRequired")}W={};if(Q.state.isPlaying()&&!Q.state.isBuffering()&&!y_("pbresume","ad_to_video")&&y_("_start","ad_to_video")){var x=this.getVideoData();W.clientPlaybackNonce=x.clientPlaybackNonce;x.videoId&&(W.videoId=x.videoId);g.co(W,"ad_to_video");Nc("pbresume",void 0,"ad_to_video");bin(this.Mr)}this.G1.publish("applicationplayerstatechange",Q)}};
g.R.pg=function(Q){this.getPresentingPlayerType()!==3&&this.G1.publish("presentingplayerstatechange",Q)};
g.R.qD=function(Q){Vq(this,zp(Q.state));g.r(Q.state,1024)&&this.G1.isMutedByMutedAutoplay()&&(dy(this,{muted:!1,volume:this.YS.volume},!1),ik(this,!1))};
g.R.XT=function(Q,W,x){Q==="newdata"&&AM2(this);this.G1.publish("applicationvideodatachange",Q,x)};
g.R.kT=function(Q,W){this.G1.WD("onPlaybackAudioChange",this.G1.getAudioTrack().RW.name);this.G1.publish("internalaudioformatchange",this.G1.getAudioTrack().RW.id,W)};
g.R.jO=function(Q){var W=this.w7().getVideoData();Q===W&&this.G1.DJ("onPlaybackQualityChange",Q.U.video.quality)};
g.R.Xq=function(){var Q=this.Gt.ek(2);if(Q){var W=Q.getVideoData();Q=Q.W0();var x;(x=this.w7())==null||x.qj("ssdai",{cleanaply:1,acpn:W==null?void 0:W.clientPlaybackNonce,avid:W.videoId,ccpn:Q,sccpn:this.sx().clientPlaybackNonce===Q?1:0,isDai:this.sx().enableServerStitchedDai?1:0});delete this.Gt.D[2]}};
g.R.onVideoDataChange=function(Q,W,x){this.Lu(Q,W.lz,x)};
g.R.Lu=function(Q,W,x){this.logger.debug(function(){return"on video data change "+Q+", player type "+W.getPlayerType()+", vid "+x.videoId});
this.bj.jk()&&W.qj("vdc",{type:Q,vid:x.videoId||"",cpn:x.clientPlaybackNonce||""});W===this.Zp()&&(this.bj.Qx=x.oauthToken);if(W===this.Zp()){this.getVideoData().enableServerStitchedDai&&!this.oU?(this.Zp().qj("sdai",{initSstm:1}),this.oU=this.j("html5_enable_ssdai_transition_with_only_enter_cuerange")?new Gc1(this.G1,this.bj,this.Zp(),this):new g.f7(this.G1,this.bj,this.Zp(),this)):!this.getVideoData().enableServerStitchedDai&&this.oU&&(this.oU.dispose(),this.oU=null);var D,K;!g.TQ(this.getVideoData())||
Q!=="newdata"&&Q!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((D=this.M5.B)==null?void 0:(K=D.getVideoData())==null?void 0:K.clientPlaybackNonce)?!g.TQ(this.getVideoData())&&this.nS&&(this.nS.dispose(),this.nS=null):(xX1(this.M5),this.j("html5_ssap_cleanup_ad_player_on_new_data")&&this.Xq(),D=yi(this.M5,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.M5.enqueue(D,!0),gH(this.M5,0,this.getDuration(1)*1E3,[D]),DXQ(this.M5,this.getVideoData().clientPlaybackNonce,[D]),this.nS&&(this.nS.dispose(),
this.nS=null),this.nS=new BU4(this.G1,this.M5,this.Zp()),this.Gt.Zp().J6(this.nS))}if(Q==="newdata")this.logger.debug("new video data, destroy modules"),iX(this.Mr,2),this.G1.publish("videoplayerreset",W);else{if(!this.mediaElement)return;Q==="dataloaded"&&(this.Zp()===this.w7()?(g5(x.Dp,x.Cb),Zel(this)):eg5(this));W.getPlayerType()===1&&(this.bj.g7&&no4(this),this.getVideoData().isLivePlayback&&!this.bj.La&&this.tK("html5.unsupportedlive",2,"DEVICE_FALLBACK"),x.isLoaded()&&((KD5(x)||this.getVideoData().rX)&&
this.G1.publish("legacyadtrackingpingchange",this.getVideoData()),x.hasProgressBarBoundaries()&&x01(this)));this.G1.publish("videodatachange",Q,x,W.getPlayerType())}this.G1.DJ("onVideoDataChange",{type:Q,playertype:W.getPlayerType()});this.nX();(D=x.WA)?this.AE.nh(D,x.clientPlaybackNonce):JMQ(this.AE)};
g.R.Rc=function(){pi(this,null);this.G1.WD("onPlaylistUpdate")};
g.R.kx3=function(Q){delete this.Ys[Q.getId()];this.Zp().removeCueRange(Q);a:{Q=this.getVideoData();var W,x,D,K,l,M,w,S,b,z,k=((W=Q.g7)==null?void 0:(x=W.contents)==null?void 0:(D=x.singleColumnWatchNextResults)==null?void 0:(K=D.autoplay)==null?void 0:(l=K.autoplay)==null?void 0:l.sets)||((M=Q.g7)==null?void 0:(w=M.contents)==null?void 0:(S=w.twoColumnWatchNextResults)==null?void 0:(b=S.autoplay)==null?void 0:(z=b.autoplay)==null?void 0:z.sets);if(k)for(W=g.V(k),x=W.next();!x.done;x=W.next())if(x=
x.value,K=D=void 0,x=x.autoplayVideo||((D=x.autoplayVideoRenderer)==null?void 0:(K=D.autoplayEndpointRenderer)==null?void 0:K.endpoint),D=g.e(x,g.tQ),l=K=void 0,x!=null&&((K=D)==null?void 0:K.videoId)===Q.videoId&&((l=D)==null?0:l.continuePlayback)){Q=x;break a}Q=null}(W=g.e(Q,g.tQ))&&this.G1.Wt("onPlayVideo",{sessionData:{autonav:"1",itct:Q==null?void 0:Q.clickTrackingParams},videoId:W.videoId,watchEndpoint:W})};
g.R.CY=function(Q){var W=this;Q!==this.appState&&(this.logger.debug(function(){return"app state change "+W.appState+" -> "+Q}),Q===2&&this.getPresentingPlayerType()===1&&(Vq(this,-1),Vq(this,5)),this.appState=Q,this.G1.publish("appstatechange",Q))};
g.R.tK=function(Q,W,x,D,K){this.Zp().dH(Q,W,x,D,K)};
g.R.Hx=function(Q,W){this.Zp().handleError(new Gu(Q,W))};
g.R.isAtLiveHead=function(Q,W){W=W===void 0?!1:W;var x=this.ek(Q);if(!x)return this.Gt.B.isAtLiveHead();Q=P8(this,x);x=v8(this,x);return Q!==x?Q.isAtLiveHead(AT(this,x.getCurrentTime(),x),!0):Q.isAtLiveHead(void 0,W)};
g.R.J9=function(){var Q=this.ek();return Q?P8(this,Q).J9():this.Gt.B.J9()};
g.R.seekTo=function(Q,W,x,D,K){W=W!==!1;if(D=this.ek(D))this.appState===2&&ai(this),this.It(D)?H8(this)?this.oU.seekTo(Q,{seekSource:K},W,x):this.Ex.seekTo(Q,{seekSource:K},W,x):g.TQ(this.getVideoData())&&this.nS?this.nS.seekTo(Q,{w0:!W,jo:x,N7:"application",seekSource:K}):D.seekTo(Q,{w0:!W,jo:x,N7:"application",seekSource:K})};
g.R.seekBy=function(Q,W,x,D){this.seekTo(this.getCurrentTime()+Q,W,x,D)};
g.R.E9=function(){this.G1.DJ("SEEK_COMPLETE")};
g.R.Qm=function(){this.G1.Wt("onAbnormalityDetected")};
g.R.onSnackbarMessage=function(Q){this.G1.Wt("onSnackbarMessage",Q)};
g.R.Ar1=function(Q,W){Q=Q.lz;var x=Q.getVideoData();if(this.appState===1||this.appState===2)x.startSeconds=W;this.appState===2?g.r(Q.getPlayerState(),512)||ai(this):this.G1.DJ("SEEK_TO",W)};
g.R.onAirPlayActiveChange=function(){this.G1.publish("airplayactivechange");this.bj.j("html5_external_airplay_events")&&this.G1.WD("onAirPlayActiveChange",this.G1.m$())};
g.R.onAirPlayAvailabilityChange=function(){this.G1.publish("airplayavailabilitychange");this.bj.j("html5_external_airplay_events")&&this.G1.WD("onAirPlayAvailabilityChange",this.G1.hY())};
g.R.showAirplayPicker=function(){var Q;(Q=this.w7())==null||Q.hs()};
g.R.LH=function(){this.G1.publish("beginseeking")};
g.R.r6=function(){this.G1.publish("endseeking")};
g.R.getStoryboardFormat=function(Q){return(Q=this.ek(Q))?P8(this,Q).getStoryboardFormat():this.Gt.B.getStoryboardFormat()};
g.R.Vv=function(Q){return(Q=this.ek(Q))?P8(this,Q).getVideoData().Vv():this.Gt.B.Vv()};
g.R.It=function(Q){Q=Q||this.w7();var W=!1;if(Q){Q=Q.getVideoData();if(H8(this))Q=Q===this.oU.playback.getVideoData();else a:if(W=this.Ex,Q===W.B.getVideoData()&&W.U.length)Q=!0;else{W=g.V(W.U);for(var x=W.next();!x.done;x=W.next())if(Q.Ox===x.value.Ox){Q=!0;break a}Q=!1}W=Q}return W};
g.R.Uf=function(Q,W,x,D,K,l,M){this.logger.debug(function(){return"Adding video to timeline id="+Q.video_id+"\n        lengthMs="+D+" enterTimeMs="+K});
var w="",S=H8(this),b;(b=this.w7())==null||b.qj("appattl",{sstm:this.oU?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:S});w=S?sn1(this.oU,Q,W,x,D,K,l,M):Wzh(this.Ex,Q,x,D,K,l);this.logger.debug(function(){return"Video added to timeline id="+Q.video_id+" timelinePlaybackId="+w});
return w};
g.R.WC=function(Q,W,x,D,K,l,M){if(H8(this)){var w=sn1(this.oU,Q,W,x,D,K,l,M);this.logger.debug(function(){return"Remaining video added to timeline id="+Q.video_id+" timelinePlaybackId="+w})}return""};
g.R.gJ=function(Q){var W;(W=this.oU)==null||W.gJ(Q)};
g.R.lR=function(Q,W){Q=Q===void 0?-1:Q;W=W===void 0?Infinity:W;H8(this)||S41(this.Ex,Q,W)};
g.R.Ru=function(Q,W,x){if(H8(this)){var D=this.oU,K=D.WN.get(Q);K?(x===void 0&&(x=K.VA),K.durationMs=W,K.VA=x):D.Av("Invalid_timelinePlaybackId_"+Q+"_specified")}else{D=this.Ex;K=null;for(var l=g.V(D.U),M=l.next();!M.done;M=l.next())if(M=M.value,M.Ox===Q){K=M;break}K?(x===void 0&&(x=K.VA),wz4(D,K,W,x)):lk(D,"InvalidTimelinePlaybackId timelinePlaybackId="+Q)}};
g.R.enqueueVideoByPlayerVars=function(Q,W,x,D){x=x===void 0?Infinity:x;D=D===void 0?"":D;this.It();Q=new g.f1(this.bj,Q);D&&(Q.Ox=D);D04(this,Q,W,x)};
g.R.queueNextVideo=function(Q,W,x,D,K){x=x===void 0?NaN:x;Q=this.preloadVideoByPlayerVars(Q,W===void 0?1:W,x,D===void 0?"":D,K===void 0?"":K);W=this.w7();Q&&W&&(this.j("html5_check_queue_on_data_loaded")?this.C().supportsGaplessShorts()&&W.getVideoData().S&&(x=this.Tg,D=this.O2.G,x.N!==Q&&(x.U=W,x.N=Q,x.D=1,x.B=Q.getVideoData(),x.L=D,x.B.isLoaded()?x.X():x.B.subscribe("dataloaded",x.X,x))):(x=AN1(W,Q,this.O2.G),x!=null?(W.qj("sgap",x),W.getVideoData().S&&W.Bo(!1)):(Q=Q.getVideoData(),W=this.Tg,W.B!==
Q&&(W.B=Q,W.D=1,Q.isLoaded()?W.G():W.B.subscribe("dataloaded",W.G,W)))))};
g.R.sS=function(Q,W,x,D){var K=this;x=x===void 0?0:x;D=D===void 0?0:D;var l=this.w7();l&&P8(this,l).oP();e7h(this.O2,Q,W,x,D).then(function(){K.G1.WD("onQueuedVideoLoaded")},function(){})};
g.R.PK=function(){return this.O2.PK()};
g.R.jj=function(Q){return this.O2.B===Q.lz};
g.R.clearQueue=function(Q,W){Q=Q===void 0?!1:Q;W=W===void 0?!1:W;this.logger.debug("Clearing queue");this.O2.clearQueue(Q,W)};
g.R.loadVideoByPlayerVars=function(Q,W,x,D,K,l){W=W===void 0?1:W;var M=this.Zp();if(W===2&&this.sx().enableServerStitchedDai&&M&&!M.YI())return M.qj("lvonss",{vid:(Q==null?void 0:Q.videoId)||"",ptype:W}),!1;var w=!1;M=new g.f1(this.bj,Q);M.reloadPlaybackParams=l;g.tC(this.bj)&&!M.g5&&og(this.Qh);var S;l=this.Qh;var b=(S=M.eZ)!=null?S:"";l.timerName=b;this.Qh.U4("pl_i");this.j("web_player_early_cpn")&&M.clientPlaybackNonce&&this.Qh.infoGel({clientPlaybackNonce:M.clientPlaybackNonce});if(i_h(M).supportsVp9Encoding===
!1){var z;(z=this.w7())==null||z.qj("noVp9",{})}if(this.C().supportsGaplessShorts()){S=ZWa(this.O2,M,W);if(S==null){Vq(this,-1);Q=this.O2;Q.app.C().j("html5_gapless_new_slr")?Fz4(Q.app,"gaplessshortslooprange"):Q.app.setLoopRange(null);Q.app.getVideoData().b9=!0;var k;(k=Q.B)==null||k.UA();var X;(X=Q.B)!=null&&NH(X.xf.oW());x={N7:"gapless_to_next_video",seekSource:60};D=g.X0(Q.app.C().experiments,"html5_gapless_seek_offset");var u;(u=Q.app.w7())==null||u.seekTo(fcs(Q)+D,x);if(!Q.app.getPlayerStateObject(W).isPlaying()){var Y;
(Y=Q.app.w7())==null||Y.playVideo(!0)}Q.X();return!0}u=this.j("html5_shorts_gapless_preload_fallback");Y=this.O2.B;u&&Y&&!Y.xf.d7()&&(k=Y.getVideoData(),k=this.bj.j("html5_autonav_autoplay_in_preload_key")?qK(this,W,k):B8(this,W,k.videoId,k.Ox),this.Gt.U.set(k,Y,3600));this.O2.clearQueue(u);var v;(v=this.w7())==null||v.qj("sgap",{f:S})}if(K){for(;M.eD.length&&M.eD[0].isExpired();)M.eD.shift();w=M.eD.length-1;w=w>0&&K.U(M.eD[w])&&K.U(M.eD[w-1]);M.eD.push(K)}x||(Q&&GHs(Q)?(r5(this.bj)&&!this.Nn&&(Q.fetch=
0),pi(this,Q)):this.playlist&&pi(this,null),Q&&(this.Nn=D0(!1,Q.external_list)));this.G1.publish("loadvideo");W=this.Fh(M,W,D);w&&this.tK("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+M.eD.join()).replace(/[;:,]/g,"_"));return W};
g.R.preloadVideoByPlayerVars=function(Q,W,x,D,K){W=W===void 0?1:W;x=x===void 0?NaN:x;D=D===void 0?"":D;K=K===void 0?"":K;var l="";if(this.bj.j("html5_autonav_autoplay_in_preload_key"))l=lSv(this,W,Q,K);else{var M=RC(Q);l=B8(this,W,M,K)}if(this.Gt.U.get(l))return this.logger.debug(function(){return"already preloaded "+l}),null;
Q=new g.f1(this.bj,Q);K&&(Q.Ox=K);return Kkv(this,Q,W,x,D)};
g.R.setMinimized=function(Q){this.visibility.setMinimized(Q);(Q=kwl(this.Mr))&&(this.isMinimized()?Q.load():Q.unload());this.G1.publish("minimized")};
g.R.setInline=function(Q){this.visibility.setInline(Q)};
g.R.setInlinePreview=function(Q){this.visibility.setInline(Q)};
g.R.Oy=function(Q){M1h(this,Q)||this.visibility.Oy(Q)};
g.R.setSqueezeback=function(Q){this.visibility.setSqueezeback(Q)};
g.R.ev=function(){var Q,W=(Q=this.mediaElement)==null?void 0:Q.yh();W&&(this.bj.FV&&document.exitFullscreen().catch(function(){}),nw(W).catch(function(x){g.Bp(x)}))};
g.R.Wm3=function(){this.mediaElement.yh();this.mediaElement.yh().webkitPresentationMode==="picture-in-picture"?this.Oy(!0):this.Oy(!1)};
g.R.togglePictureInPicture=function(){var Q=this.w7();Q&&Q.togglePictureInPicture()};
g.R.Fh=function(Q,W,x){W=W===void 0?1:W;this.logger.debug(function(){return"start load video, id "+Q.videoId+", type "+W});
y_("_start",this.Qh.timerName)||g.tx(Ho)(void 0,this.Qh.timerName);var D=!1,K=TA5(this,W,Q,!1);K?(D=!0,Q.dispose()):(K=Yy(this,W,Q,!0,x),(this.j("html5_onesie")||this.j("html5_load_before_stop"))&&K.J$()&&K.A7(),this.aJ.stop(),W===1&&W!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,W),this.Ie(K));K===this.Zp()&&(this.bj.Qx=Q.oauthToken);if(!K.J$())return!1;if(K===this.Zp())return this.CY(1),x=ai(this),D&&this.j("html5_player_preload_ad_fix")&&K.getPlayerType()===1&&
K.HY()&&this.Lu("dataloaded",K,K.getVideoData()),x;K.Jl();return!0};
g.R.cueVideoByPlayerVars=function(Q,W){var x=this;W=W===void 0?1:W;var D=this.Zp();if(this.sx().enableServerStitchedDai&&D&&!D.YI()&&Q&&Object.keys(Q).length>0)D.qj("qvonss",{vid:(Q==null?void 0:Q.videoId)||"",ptype:W});else if(Q&&GHs(Q))if(this.Z0=!0,pi(this,Q),(Q=g.uX(this.playlist))&&Q.ET())Ii(this,Q,W);else this.playlist.onReady(function(){hT(x)});
else{W||(W=this.getPresentingPlayerType());W===1&&this.Rc();D=new g.f1(this.bj,Q);var K=g.d5(this.bj)&&!this.bj.pS&&W===1&&!D.isAd()&&!D.Cn;this.G1.publish("cuevideo");K?(this.w7().getVideoData().loading=!0,BHD(D,Q?Q:{}).then(function(l){Ii(x,l,W)}),D.dispose()):Ii(this,D,W)}};
g.R.QT=function(Q,W,x,D,K,l,M){if(!Q&&!x)throw Error("Playback source is invalid");if(AC(this.bj)||g.aE(this.bj))return W=W||{},W.lact=aK(),W.vis=this.G1.getVisibilityState(),this.G1.Wt("onPlayVideo",{videoId:Q,watchEndpoint:l,sessionData:W,listId:x}),!1;hkQ(this.Qh);this.Qh.reset();Q={video_id:Q};D&&(Q.autoplay="1");D&&(Q.autonav="1");l&&(Q.player_params=l.playerParams);M&&(Q.oauth_token=M);x?(Q.list=x,this.loadPlaylist(Q)):this.loadVideoByPlayerVars(Q,1);return!0};
g.R.cuePlaylist=function(Q,W,x,D){this.Z0=!0;RHv(this,Q,W,x,D)};
g.R.loadPlaylist=function(Q,W,x,D){this.Z0=!1;RHv(this,Q,W,x,D)};
g.R.mS=function(){return this.G1.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.EG())};
g.R.eA=xQ(13);
g.R.nextVideo=function(Q,W){var x=g.Q9(this.Zp().getVideoData());g.Bd(this.G1)&&x?this.QT(x.videoId,W?x.hU:x.sessionData,x.playlistId,W,void 0,x.Xl||void 0):this.Nn?this.G1.WD("onPlaylistNext"):this.getPresentingPlayerType()===3?dZ(this.Mr).nextVideo():!this.playlist||r5(this.bj)&&!this.G1.isFullscreen()||(this.playlist.EG(Q)&&AkO(this.playlist,dvz(this.playlist)),this.playlist.loaded?(Q=W&&this.bj.j("html5_player_autonav_logging"),W&&this.G1.publish("playlistautonextvideo"),this.Fh(g.uX(this.playlist,void 0,
W,Q),1)):this.Z0=!1)};
g.R.previousVideo=function(Q){this.Nn?this.G1.WD("onPlaylistPrevious"):this.getPresentingPlayerType()===3?dZ(this.Mr).j$():!this.playlist||r5(this.bj)&&!this.G1.isFullscreen()||(this.playlist.y_(Q)&&AkO(this.playlist,i71(this.playlist)),this.playlist.loaded?this.Fh(g.uX(this.playlist),1):this.Z0=!1)};
g.R.playVideoAt=function(Q){this.Nn?this.G1.WD("onPlaylistIndex",Q):this.playlist&&(this.playlist.loaded?this.Fh(g.uX(this.playlist,Q),1):this.Z0=!1,AkO(this.playlist,Q))};
g.R.getPlaylist=function(){return this.playlist};
g.R.dI=xQ(23);g.R.SVp=function(Q){this.G1.DJ("onCueRangeEnter",Q.getId())};
g.R.ab3=function(Q){this.G1.DJ("onCueRangeExit",Q.getId())};
g.R.uV=function(){var Q=g.GZ(this.x6());Q&&Q.uV()};
g.R.FD=function(Q,W,x){var D=this.ek(W);if(D){var K=this.sx();if(g.TQ(K)){if(this.nS)if(this.j("html5_ssap_enable_cpn_triggered_media_end")&&D.getPlayerType()===2&&this.nS.QD()&&(D=this.Zp()),W===1)for(var l=$2(this.nS,K.clientPlaybackNonce),M=g.V(Q),w=M.next();!w.done;w=M.next())w=w.value,w.start+=l,w.end+=l,w.wm=l,w.D=K.clientPlaybackNonce;else if(this.j("html5_ssap_enable_cpn_triggered_media_end")&&W===2)for(this.getPresentingPlayerType(),K=g.V(Q),l=K.next();!l.done;l=K.next())l.value.D=this.nS.fu();
K=g.V(Q);for(l=K.next();!l.done;l=K.next())M=void 0,l.value.playerType=(M=W)!=null?M:1}D.FD(Q,x);W&&this.getPresentingPlayerType()!==W||mM(this,"cuerangesadded",Q)}};
g.R.Bg=function(Q,W){var x=this.ek(W);x&&(x.Bg(Q),W&&this.getPresentingPlayerType()!==W||mM(this,"cuerangesremoved",Q))};
g.R.tq=function(Q){var W=this.w7()||this.Zp(),x=this.getPresentingPlayerType();return this.j("html5_ssap_enable_cpn_triggered_media_end")?W.tq(x,Q):W.tq(x)};
g.R.TG3=function(){function Q(){var D=W.screenLayer||(W.isMinimized()?3:0),K=g.ph(D);if(K&&K!=="UNDEFINED_CSN"){var l=W.bj.j("web_player_attach_player_response_ve"),M=W.bj.j("web_playback_associated_ve");D={cpn:W.getVideoData().clientPlaybackNonce,csn:K};W.getVideoData().fS&&(l||M)&&(l=g.vp(W.getVideoData().fS),g.x_(K,l),M&&(D.playbackVe=l.getAsJson()));W.getVideoData().queueInfo&&(D.queueInfo=W.getVideoData().queueInfo);K={};W.j("web_playback_associated_log_ctt")&&W.getVideoData().X&&(K.cttAuthInfo=
{token:W.getVideoData().X,videoId:W.getVideoData().videoId});g.wV("playbackAssociated",D,K)}else g.Bp(new g.Lw("CSN Missing or undefined during playback association"))}
var W=this,x=this.w7();this.getPresentingPlayerType();Jk1(this.Qh,x.getVideoData(),sav(this));JT(this)&&this.bj.N&&$N(this.sx())==="embedded"&&this.HQ&&Math.random()<.01&&g.wV("autoplayTriggered",{intentional:this.intentionalPlayback});this.HQ=!1;bin(this.Mr);this.j("web_player_defer_ad")&&fql(this);this.G1.WD("onPlaybackStartExternal");(this.bj.j("mweb_client_log_screen_associated"),yv(this.bj))||Q();x={};this.getVideoData().X&&(x.cttAuthInfo={token:this.getVideoData().X,videoId:this.getVideoData().videoId});
x.sampleRate=20;gK("player_att",x);if(this.getVideoData().botguardData||this.j("fetch_att_independently"))g.ET(this.bj)||Fm(this.bj)==="MWEB"?g.Fw(g.QX(),function(){Gw(W)}):Gw(this);
this.nX();tRh(this);this.j("embeds_enable_autoplay_and_visibility_signals")&&g.d5(this.bj)&&(x={autoplayBrowserPolicy:rL(),autoplayIntended:TL(this.getVideoData()),autoplayStatus:eKO(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.wV("embedsAutoplayStatusChanged",x))};
g.R.Wk=function(){this.G1.publish("internalAbandon");Uz(this)};
g.R.onApiChange=function(){var Q=this.w7();this.bj.G&&Q?this.G1.DJ("onApiChange",Q.getPlayerType()):this.G1.DJ("onApiChange")};
g.R.Py5=function(){var Q=this.mediaElement;Q={volume:g.wS(Math.floor(Q.getVolume()*100),0,100),muted:Q.xi()};Q.muted||ik(this,!1);this.YS=g.HZ(Q);this.G1.DJ("onVolumeChange",Q)};
g.R.mutedAutoplay=function(Q){var W=this.getVideoData().videoId;isNaN(this.FT)&&(this.FT=this.getVideoData().startSeconds);if((Q==null?0:Q.videoId)||W)this.loadVideoByPlayerVars({video_id:(Q==null?0:Q.videoId)?Q==null?void 0:Q.videoId:W,playmuted:!0,start:this.FT,muted_autoplay_duration_mode:Q==null?void 0:Q.durationMode}),this.G1.WD("onMutedAutoplayStarts")};
g.R.onFullscreenChange=function(){var Q=kgh(this);this.Cu(Q?1:0);oo2(this,!!Q)};
g.R.Cu=function(Q){var W=!!Q,x=!!this.fT()!==W;this.visibility.Cu(Q);this.template.Cu(W);this.j("html5_media_fullscreen")&&!W&&this.mediaElement&&kgh(this)===this.mediaElement.yh()&&this.mediaElement.Vl();this.template.resize();x&&this.Qh.tick("fsc");x&&(this.G1.publish("fullscreentoggled",W),Q=this.sx(),W={fullscreen:W,videoId:Q.xP||Q.videoId,time:this.getCurrentTime()},this.G1.getPlaylistId()&&(W.listId=this.G1.getPlaylistId()),this.G1.DJ("onFullscreenChange",W))};
g.R.fY=function(){return this.visibility.fY()};
g.R.isFullscreen=function(){return this.visibility.isFullscreen()};
g.R.fT=function(){return this.visibility.fT()};
g.R.rrt=function(){if(this.w7()){var Q=this.fT();Q!==0&&Q!==1||this.Cu(kgh(this)?1:0);Q=window.screen.width*window.screen.height;var W=window.outerHeight*window.outerWidth;this.bj.Dx?(this.hL=Math.max(this.hL,Q,W),Q=W/this.hL<.33,this.visibility.Oy(Q),this.bj.xG&&M1h(this,Q)):this.mediaElement&&ja5(this,W/Q<.33)&&this.mediaElement.Vl()}};
g.R.Mtp=function(Q){this.getPresentingPlayerType()!==3&&this.G1.publish("liveviewshift",Q)};
g.R.playVideo=function(Q,W){this.logger.debug(function(){return"play video, player type "+Q});
var x=this.ek(Q);x?this.appState===2?(g.tC(this.bj)&&og(this.Qh),ai(this)):g.r(x.getPlayerState(),2)?(W=36,this.getVideoData().c9()&&(W=37),this.seekTo(0,void 0,void 0,void 0,W)):x.playVideo(!1,W):this.Gt.B.playVideo(!1,W)};
g.R.pauseVideo=function(Q,W){(Q=this.ek(Q))?Q.pauseVideo(W):this.Gt.B.pauseVideo(W)};
g.R.stopVideo=function(Q){Q=Q===void 0?!1:Q;this.logger.debug(function(){return"stop video"});
var W=this.Zp().getVideoData(),x=new g.f1(this.bj,{video_id:W.xP||W.videoId,oauth_token:W.oauthToken});x.T=g.HZ(W.T);var D;!Q||(D=this.webPlayerContextConfig)!=null&&D.disableStaleness||(x.JH=!0);this.cancelPlayback(6);Ii(this,x,1)};
g.R.cancelPlayback=function(Q,W){var x=this;this.logger.debug(function(){return"start cancel playback, type "+W});
var D=this.ek(W);D?W===2&&D.getPlayerType()===1&&(E_(this.sx())||g.TQ(this.getVideoData()))?D.qj("canclpb",{r:"no_adpb_ssdai"}):(this.bj.jk()&&D.qj("canclpb",{r:Q}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+x.appState}):(D===this.w7()&&(this.logger.debug("cancel playback, destroy modules"),iX(this.Mr,Q)),W===1&&(D.stopVideo(),Uz(this)),D.WM(void 0,Q!==6),mM(this,"cuerangesremoved",D.Jv()),D.xf.tA.reset(),this.O2&&D.isGapless()&&
(D.GK(!0),D.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
g.R.sendVideoStatsEngageEvent=function(Q,W,x){(W=this.ek(W))&&oes(this.bj,Q)?W.sendVideoStatsEngageEvent(Q,x):x&&x()};
g.R.jU=function(Q){var W=this.ek();return W&&oes(this.bj,Q)?W.jU(Q):null};
g.R.updatePlaylist=function(){!r5(this.bj)&&g.d5(this.bj)&&Lzz(this);this.G1.WD("onPlaylistUpdate")};
g.R.setSizeStyle=function(Q,W){this.rd=Q;this.j("web_log_theater_mode_visibility")?this.No(W):this.ej=W;this.G1.publish("sizestylechange",Q,W);this.template.resize()};
g.R.No=function(Q){this.visibility.No(Q)};
g.R.cz=function(){return this.j("web_log_theater_mode_visibility")?this.visibility.cz():this.ej};
g.R.isMinimized=function(){return this.visibility.isMinimized()};
g.R.isInline=function(){return this.visibility.isInline()};
g.R.J4=function(){return this.visibility.J4()};
g.R.e1=function(){return this.visibility.e1()};
g.R.Wo=function(){return this.visibility.Wo()};
g.R.rU=function(){return this.rd};
g.R.getAdState=function(){if(this.getPresentingPlayerType()===3)return dZ(this.Mr).getAdState();if(!this.It()){var Q=AJ(this.x6());if(Q)return Q.getAdState()}return-1};
g.R.GxS=function(Q){var W=this.template.getVideoContentRect();MI(this.jx,W)||(this.jx=W,(W=this.w7())&&W.S6(),(W=this.Zp())&&W===this.w7()&&W.S6(),this.fT()===1&&this.Ut&&oo2(this,!0));this.Ol&&g.u0(this.Ol,Q)||(this.G1.publish("appresize",Q),this.Ol=Q)};
g.R.Fi=function(){return this.G1.Fi()};
g.R.TPZ=function(){this.getPresentingPlayerType()===2&&this.Ex.isManifestless()?Rgn(this.Ex):(this.oU&&(Xwn(this.oU),Uz(this)),uLQ(this,"signature"))};
g.R.vDp=function(Q){Q&&uLQ(this,"reloadPlayerEvent",void 0,Q)};
g.R.zl=function(Q){this.GK(Q);ni(this)};
g.R.Vtj=function(Q){if(Q.errorCode==="manifest.net.badstatus"){var W=this.bj.experiments.ij("html5_use_network_error_code_enums")?401:"401";Q.details.rc===W&&this.G1.Wt("onPlayerRequestAuthFailed")}};
g.R.OC=function(Q){this.G1.publish("heartbeatparams",Q)};
g.R.hC=function(Q){this.G1.Wt("onAutonavChangeRequest",Q!==1)};
g.R.DG=function(){return this.mediaElement};
g.R.setBlackout=function(Q){if(this.bj.tf!==Q){this.bj.tf=Q;var W=this.w7();W&&(W.zf(),this.bj.g7&&no4(this),W.OG(Q))}};
g.R.TEf=function(){var Q=this.w7();if(Q){var W=!this.G1.aZ();Q.Oh(W)}};
g.R.onLoadedMetadata=function(){this.G1.WD("onLoadedMetadata")};
g.R.onDrmOutputRestricted=function(){this.G1.WD("onDrmOutputRestricted")};
g.R.xT=function(){this.intentionalPlayback=!0};
g.R.U3=function(){this.Mr.dispose();this.xj.dispose();this.Ex.dispose();this.oU&&this.oU.dispose();this.M5.removeAll();this.M5.dispose();this.nS&&this.nS.dispose();gZ(this.Zp());this.GK();this.Gt.dispose();g.Sp(this.playlist);g.N.prototype.U3.call(this)};
g.R.j=function(Q){return this.bj.j(Q)};
g.R.setScreenLayer=function(Q){this.screenLayer=Q};
g.R.getInternalApi=function(){return this.G1.getInternalApi()};
g.R.createSubtitlesModuleIfNeeded=function(){return this.Mr.createSubtitlesModuleIfNeeded()};
g.R.isOrchestrationLeader=function(){var Q=Uo(this.Mr);return Q?Q.isOrchestrationLeader():!1};
g.R.getVideoUrl=function(Q,W,x,D,K){if(this.k6&&this.k6.postId)return Q=this.bj.getVideoUrl(Q),Q=Zr(Q,"v"),Q.replace("/watch","/clip/"+this.k6.postId);var l=this.G1.isEmbedsShortsMode()||this.bj.fS==="shortspage",M=g.Kq(this.getVideoData());return this.bj.getVideoUrl(Q,W,x,D,K,l,M)};
g.R.ZT=function(){return this.O2.ZT()};
g.R.UZ=function(Q,W,x){this.G1.publish("spsumpreject",Q,W,x)};
g.R.gh=function(){try{for(var Q=g.V(Object.values(this.Gt.D)),W=Q.next();!W.done;W=Q.next()){var x=W.value;x.xf.d7()||x.gh()}if(this.j("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var D=g.V(zgQ(this.Gt.U)),K=D.next();!K.done;K=D.next()){var l=K.value;l.xf.d7()||l.gh()}this.Zp().gh()}catch(M){g.Bp(M)}};
g.R.EF=function(){if(this.oU){var Q=(0,g.a8)();return this.oU.EF(Q)}return!1};
g.R.V8=function(Q){var W=this.Zp();Q&&(W=PHF(this,Q));if(W){var x=W.getVideoData();Q=new Map;x=g.V(x.sabrContextUpdates);for(var D=x.next();!D.done;D=x.next()){var K=g.V(D.value);D=K.next().value;K=K.next().value;var l=void 0;K.scope===4&&((l=W)==null?0:l.Z1(D))&&Q.set(D,K)}return Q}this.Zp().qj("scuget",{ncpf:"1",ccpn:Q})};
var pE={};var NcY={u_:[{qR:/Unable to load player module/,weight:20},{qR:/Failed to fetch/,weight:500},{qR:/XHR API fetch failed/,weight:10},{qR:/JSON parsing failed after XHR fetch/,weight:10},{qR:/Retrying OnePlatform request/,weight:10},{qR:/CSN Missing or undefined during playback association/,weight:100},{qR:/Non-recoverable error. Do not retry./,weight:0},{qR:/Internal Error. Retry with an exponential backoff./,weight:0},{qR:/API disabled by application./,weight:0}],Eu:[{callback:voF,weight:500}]};var B$2=/[&\?]action_proxy=1/,qi2=/[&\?]token=([\w-]*)/,$0h=/[&\?]video_id=([\w-]*)/,ISQ=/[&\?]index=([\d-]*)/,m0O=/[&\?]m_pos_ms=([\d-]*)/,cu2=/[&\?]vvt=([\w-]*)/,hHa="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(" "),N$l="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(" "),d0h={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"},iL2={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},HLl={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};gy.prototype.Vs=function(Q){this.player.v3().tick(Q)};
gy.prototype.fetch=function(Q,W){var x=this;if(!Q.match(/\[BISCOTTI_ID\]/g))return this.U(Q,W);var D=this.B===1;D&&this.Vs("a_bid_s");var K=Ju2();if(K!==null)return D&&this.Vs("a_bid_f"),this.U(Q,W,K);K=pJh();D&&g.Va(K,function(){x.Vs("a_bid_f")});
return K.then(function(l){return x.U(Q,W,l)})};
gy.prototype.U=function(Q,W,x){var D=this,K=W===void 0?{}:W;W=K.U7;var l=K.Jr;var M=K.cueProcessedMs;x=x===void 0?"":x;var w=this.player.getVideoData(1);K=this.player.C().lF;var S=0;if(M&&l&&!W){var b=l.end-l.start;b>0&&(S=Math.floor(b/1E3))}S=W?W.eE:S;var z={AD_BLOCK:this.B++,AD_BREAK_LENGTH:S,AUTONAV_STATE:c8(this.player.C()),CA_TYPE:"image",CPN:w.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.J9()*1E3,LACT:aK(),LIVE_INDEX:W?this.D++:1,LIVE_TARGETING_CONTEXT:W&&W.context?W.context:"",MIDROLL_POS:l?
Math.round(l.start/1E3):0,MIDROLL_POS_MS:l?Math.round(l.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.hf().ZB().height,P_W:this.player.hf().ZB().width,YT_REMOTE:K?K.join(","):""},k=sk(bY);Object.keys(k).forEach(function(u){k[u]!=null&&(z[u.toUpperCase()]=k[u].toString())});
x!==""&&(z.BISCOTTI_ID=x);x={};SL(Q)&&(x.sts="20150",(W=this.player.C().forcedExperiments)&&(x.forced_experiments=W));var X=MO(g.ip(Q,z),x);return X.split("?").length!==2?YX(Error("Invalid AdBreakInfo URL")):g.lb(this.player.C(),w==null?void 0:w.oauthToken).then(function(u){if(u&&wm()){var Y=mh();Nf(Y,u)}u=D.player.XZ(Y);Y=goD(D,X,z,w.isMdxPlayback,M);return g.Ti(u,Y,"/youtubei/v1/player/ad_break").then(function(v){return v})})};
gy.prototype.reset=function(){this.D=this.B=1};g.n(yuv,gy);
yuv.prototype.U=function(Q,W,x){W=W===void 0?{}:W;var D=W.U7;var K=W.Jr;var l=W.cueProcessedMs;x=x===void 0?"":x;W=this.B;this.B++;var M=this.player.C().j("h5_disable_macro_substitution_in_get_ad_break")?Q:eHD(this,Q,{U7:D,Jr:K,cueProcessedMs:l},x,W);if(M.split("?").length!==2)return Math.random()<.1&&g.Bp(Error("Invalid AdBreakInfo URL")),YX(Error("Invalid AdBreakInfo URL"));var w=this.player.getVideoData(1).isMdxPlayback,S=x;x=qi2.exec(M);x=x!=null&&x.length>=2?x[1]:"";Q=B$2.test(M);var b=$0h.exec(M);
b=b!=null&&b.length>=2?b[1]:"";var z=ISQ.exec(M);z=z!=null&&z.length>=2&&!Number.isNaN(Number(z[1]))?Number(z[1]):1;var k=m0O.exec(M);k=k!=null&&k.length>=2?k[1]:"0";var X=cL(this.player.C().n2),u=g.EH(this.player.getVideoData(1).fS,!0);GgO(this,u,M,S===""?"":S,this.player.C(),this.player.getVideoData(1));S={splay:!1,lactMilliseconds:String(aK()),playerHeightPixels:Math.trunc(this.player.hf().ZB().height),playerWidthPixels:Math.trunc(this.player.hf().ZB().width),vis:Math.trunc(this.player.getVisibilityState()),
signatureTimestamp:20150,autonavState:c8(this.player.C())};if(w){w={};var Y=this.player.C().lF;Aua(w,Y?Y.join(","):"")&&(S.mdxContext=w)}if(w=N$l.includes(X)?void 0:g.Ic("PREF")){Y=w.split(RegExp("[:&]"));for(var v=0,J=Y.length;v<J;v++){var h=Y[v].split("=");if((h[0].toUpperCase()==="SML"||h[0].toUpperCase()==="GSML")&&h.length>1&&h[1].toUpperCase()==="TRUE"){u.user.lockedSafetyMode=!0;break}}S.autoCaptionsDefaultOn=U05(w)}M=cu2.exec(M);(M=M!=null&&M.length>=2?M[1]:"")&&b&&(u.user.credentialTransferTokens=
[{token:M,scope:"VIDEO"}]);M={contentPlaybackContext:S};S=this.player.getVideoData(1).getGetAdBreakContext();w=this.player.getVideoData(1).clientPlaybackNonce;Y=l!==void 0?Math.round(l).toString():void 0;v=(D==null?0:D.context)?D.context:void 0;J=0;l&&K&&!D&&(K=K.end-K.start,K>0&&(J=Math.floor(K/1E3)));D=(D=Math.trunc((D?D.eE:J)*1E3))?String(D):void 0;K=this.player.J9()*1E3;K=Number.isNaN(K)?0:Math.trunc(K);W={adBlock:W,params:x,breakIndex:z,breakPositionMs:k,clientPlaybackNonce:w,topLevelDomain:X,
isProxyAdTagRequest:Q,context:u,overridePlaybackContext:M,cueProcessedMs:Y,videoId:b?b:void 0,liveTargetingParams:v,breakLengthMs:D,driftFromHeadMs:K?String(K):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:S?S:void 0};return fS5(this,W)};var cjC={Dyf:"replaceUrlMacros",YBj:"onAboutThisAdPopupClosed",oWf:"executeCommand"};ZL4.prototype.zL=function(){return"adPingingEndpoint"};
ZL4.prototype.iO=function(Q,W,x){J5h(this.vt.get(),Q,W,x)};Lk1.prototype.zL=function(){return"changeEngagementPanelVisibilityAction"};
Lk1.prototype.iO=function(Q){this.J.Wt("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:Q})};ruz.prototype.zL=function(){return"loggingUrls"};
ruz.prototype.iO=function(Q,W,x){Q=g.V(Q);for(var D=Q.next();!D.done;D=Q.next())D=D.value,J5h(this.vt.get(),D.baseUrl,W,x,D.attributionSrcMode)};g.n(OLs,g.N);g.n(ev,g.N);g.R=ev.prototype;g.R.addListener=function(Q){this.listeners.push(Q)};
g.R.removeListener=function(Q){this.listeners=this.listeners.filter(function(W){return W!==Q})};
g.R.E2=function(Q,W,x,D,K,l,M,w){if(Q==="")sH("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(Q!==this.B||x){this.B=Q;this.Jf.get().E2(Q,W,x,D,K,l,M,w);this.o5.get().E2(Q,W,x,D,K,l,M,w);var S;(S=this.eQ)==null||S.get().E2(Q,W,x,D,K,l,M,w);this.U.E2(Q,W,x,D,K,l,M,w);S=g.V(this.listeners);for(var b=S.next();!b.done;b=S.next())b.value.E2(Q,W,x,D,K,l,M,w)}else sH("Duplicate content video loaded signal")};
g.R.Wk=function(){this.B&&this.sB(this.B)};
g.R.sB=function(Q){this.B=void 0;for(var W=g.V(this.listeners),x=W.next();!x.done;x=W.next())x.value.sB(Q)};fi.prototype.AN=function(Q,W,x,D,K){Eoz(this);this.L=!W&&x===0;var l=this.J.getVideoData(1),M=this.J.getVideoData(2);l&&(this.contentCpn=l.clientPlaybackNonce,this.videoId=l.videoId,this.B=l.X);M&&(this.adCpn=M.clientPlaybackNonce,this.adVideoId=M.videoId,this.adFormat=M.adFormat);this.N=Q;D<=0?(Eoz(this),this.L=!W&&x===0):(this.actionType=this.L?W?"unknown_type":"video_to_ad":W?"ad_to_video":"ad_to_ad",this.videoStreamType=K?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&
(this.D=!0,y_("_start",this.actionType)&&Qhl(this)))};
fi.prototype.reset=function(){return new fi(this.J)};g.n(ZY,g.N);ZY.prototype.addCueRange=function(Q,W,x,D,K,l,M){l=l===void 0?3:l;M=M===void 0?1:M;this.B.has(Q)?sH("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:Q}):(Q=new WV4(Q,W,x,D,l),this.B.set(Q.id,{Jr:Q,listener:K,NW:M}),this.J.HV([Q],M))};
ZY.prototype.removeCueRange=function(Q){var W=this.B.get(Q);W?(this.J.RI([W.Jr],W.NW),this.B.delete(W.Jr.id)):sH("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:Q})};
ZY.prototype.onCueRangeEnter=function(Q){if(this.B.has(Q.id))this.B.get(Q.id).listener.onCueRangeEnter(Q.id)};
ZY.prototype.onCueRangeExit=function(Q){if(this.B.has(Q.id))this.B.get(Q.id).listener.onCueRangeExit(Q.id)};
g.n(WV4,g.jz);Li.prototype.LV=function(Q){this.J.LV(Q)};
Li.prototype.dc=function(Q){var W=g.i2.apply(1,arguments);Q==="onAdStart"||Q==="onAdEnd"?this.J.DJ.apply(this.J,[Q].concat(g.C(W))):this.J.Wt.apply(this.J,[Q].concat(g.C(W)))};ry.prototype.qx=function(Q){return Q&&Tw(this)};var wKF=null;g.n(RBh,g.Rd);RBh.prototype.q2=function(Q){return this.B.hasOwnProperty(Q)?this.B[Q].q2():{}};
g.g4("ytads.bulleit.getVideoMetadata",function(Q){return Ez().q2(Q)});
g.g4("ytads.bulleit.triggerExternalActivityEvent",function(Q,W,x){var D=Ez();x=M6n(x);x!==null&&D.publish(x,{queryId:Q,viewabilityString:W})});g.R=F$.prototype;g.R.H3=function(Q,W){if(!this.B.has(Q))return{};if(W==="seek"){W=!1;W=W===void 0?!1:W;var x=Gk(vt).KB(Q,{});x?PF(x):W&&(Q=Gk(vt).oV(null,Lm(),!1,Q),Q.Lt=3,QXa([Q]));return{}}W=b65(W);if(W===null)return{};var D=this.J.oK();if(!D)return{};var K=this.J.getPresentingPlayerType(!0);if((x=this.J.getVideoData(K))==null||!x.isAd())return{};x={opt_adElement:D,opt_fullscreen:this.Jf.get().isFullscreen()};return QB4(W,Q,x)};
g.R.xV=function(Q,W,x,D,K){this.B.has(Q)&&(D<=0||K<=0||Gk(vt).xV(Q,W,x,D,K))};
g.R.rh=function(Q){var W;(W=this.B.get(Q.queryId))==null||W.rh()};
g.R.Go=function(Q){var W;(W=this.B.get(Q.queryId))==null||W.Go()};
g.R.YF=function(Q){var W;(W=this.B.get(Q.queryId))==null||W.YF()};
g.R.ji=function(Q){var W;(W=this.B.get(Q.queryId))==null||W.ji()};
g.R.oC=function(Q){var W;(W=this.B.get(Q.queryId))==null||W.oC()};nMl.prototype.send=function(Q,W,x,D){try{V64(this,Q,W,x,D===void 0?!1:D)}catch(K){}};g.n(PBa,nMl);vMa.prototype.send=function(Q,W,x,D){var K=!1;try{if(D==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||D==="ATTRIBUTION_SRC_MODE_XHR_OPTION")K=!0,Q=v1a(Q);D=K;var l=Q.match(qU);if(l[1]==="https")var M=Q;else l[1]="https",M=ii("https",l[2],l[3],l[4],l[5],l[6],l[7]);var w=kJz(M);l=[];var S=MlD(M)&&this.yj.get().J.C().experiments.ij("add_auth_headers_to_remarketing_google_dot_com_ping");if(SL(M)||S)l.push({headerType:"USER_AUTH"}),l.push({headerType:"PLUS_PAGE_ID"}),l.push({headerType:"VISITOR_ID"}),l.push({headerType:"EOM_VISITOR_ID"}),
l.push({headerType:"AUTH_USER"}),l.push({headerType:"DATASYNC_ID"});this.B.send({baseUrl:M,scrubReferrer:w,headers:l},W,x,D)}catch(b){}};DB.prototype.jU=function(){return this.J.jU(1)};g.n(Kx,g.N);g.R=Kx.prototype;g.R.kG=function(){return this.J.getVideoData(1).clientPlaybackNonce};
g.R.addListener=function(Q){this.listeners.push(Q)};
g.R.removeListener=function(Q){this.listeners=this.listeners.filter(function(W){return W!==Q})};
g.R.E2=function(){this.pP.clear();this.Cx=null;this.CK.get().clear()};
g.R.sB=function(){};
g.R.J23=function(Q,W,x,D,K){W.videoId==="nPpU29QrbiU"&&this.J.qj("ads_ssm_vdc_s",{pt:x,dvt:Q});C_(this.yj.get())&&Q!=="dataloaded"||A52(this,W,x);if(Tw(this.yj.get())&&Q==="newdata"&&K!==void 0){Q=this.kG();var l=W.clientPlaybackNonce,M={};C3(this,"rte",(M.ec=l,M.xc=D==null?void 0:D.clientPlaybackNonce,M.tr=K,M.pt=x,M.ia=l!==Q,M.ctp=vl(l),M));W=W.clientPlaybackNonce;D=D==null?void 0:D.clientPlaybackNonce;K=H6s(K);if(K!==1)if(D!==void 0)for(x=g.V(this.listeners),Q=x.next();!Q.done;Q=x.next())Q.value.IB(D,
W,K);else sH("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:W,transitionReason:String(K)});K=g.V(this.listeners);for(D=K.next();!D.done;D=K.next())D.value.RB(W)}};
g.R.hOS=function(Q,W){Q!==void 0&&(this.Cx=Q,W===void 0?sH("Expected ad video start time on SS video changed"):this.pP.set(Q,W));var x=this.J.getPresentingPlayerType(!0),D=this.J.getVideoData(x);this.J.getVideoData(1).qj("ads_ssvc",{pt:x,cpn:D==null?void 0:D.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:W});D?A52(this,D,x):sH("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:Q})};
g.R.hN=function(Q,W){var x=Q.author,D=Q.clientPlaybackNonce,K=Q.isListed,l=Q.Ox,M=Q.title,w=Q.V1,S=Q.Yp,b=Q.isMdxPlayback,z=Q.al,k=Q.mdxEnvironment,X=Q.isAutonav,u=Q.TN,Y=Q.g5,v=Q.In,J=Q.videoId||"",h=Q.profilePicture||"",G=Q.ZS||"",H=Q.c9()||!1,I=Q.aQ()||!1;Q=Q.uY||void 0;l=this.CK.get().B.get(l)||{layoutId:null,slotId:null};var c=this.J.getVideoData(1),O=c.lN();c=c.getPlayerResponse();W=1E3*this.J.getDuration(W);var T=1E3*this.J.getDuration(1),Ks,Mz,QF=(c==null?void 0:(Ks=c.playerConfig)==null?
void 0:(Mz=Ks.daiConfig)==null?void 0:Mz.enableDai)||!1,f,t;Ks=(c==null?void 0:(f=c.playerConfig)==null?void 0:(t=f.daiConfig)==null?void 0:t.enablePreroll)||!1;return Object.assign({},l,{videoId:J,author:x,clientPlaybackNonce:D,JP:W,FG:T,daiEnabled:QF,qO:Ks,isListed:K,lN:O,profilePicture:h,title:M,ZS:G,V1:w,Yp:S,uY:Q,isMdxPlayback:b,al:z,mdxEnvironment:k,isAutonav:X,TN:u,g5:Y,In:v,c9:H,aQ:I})};
g.R.U3=function(){this.listeners.length=0;this.yr=null;g.N.prototype.U3.call(this)};g.n(lw,g.N);g.R=lw.prototype;g.R.E2=function(){var Q=this;Tw(this.yj.get())||(this.B=zD(function(){Q.J.d7()||Q.J.BI("ad",1)}))};
g.R.sB=function(){};
g.R.addListener=function(Q){this.listeners.push(Q)};
g.R.removeListener=function(Q){this.listeners=this.listeners.filter(function(W){return W!==Q})};
g.R.g6=function(){};
g.R.playVideo=function(){this.J.playVideo()};
g.R.pauseVideo=function(){this.J.pauseVideo()};
g.R.resumeVideo=function(Q){this.wV(Q)&&this.J.playVideo()};
g.R.wV=function(Q){return this.J.getPlayerState(Q)===2};
g.R.getCurrentTimeSec=function(Q,W,x){var D=this.o5.get().Cx;if(Q===2&&!W&&D!==null)return qMO(this,D);EL(this.yj.get(),"html5_ssap_use_cpn_to_get_time")||(x=void 0);return x!==void 0?this.J.getCurrentTime(Q,W,x):this.J.getCurrentTime(Q,W)};
g.R.getVolume=function(){return this.J.getVolume()};
g.R.isMuted=function(){return this.J.isMuted()};
g.R.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)};
g.R.getPlayerState=function(Q){return this.J.getPlayerState(Q)};
g.R.isFullscreen=function(){return this.J.isFullscreen()};
g.R.isAtLiveHead=function(){return this.J.isAtLiveHead()};
g.R.As=function(Q){this.J.As(Q)};
g.R.QUt=function(){var Q=this.J.getPresentingPlayerType(!0),W=this.getCurrentTimeSec(Q,!1);if(Q===2){Q=g.V(this.listeners);for(var x=Q.next();!x.done;x=Q.next())x.value.LA(W)}else if(Q===1)for(Q=g.V(this.jl),x=Q.next();!x.done;x=Q.next())x.value.g6(W)};
g.R.Ur3=function(Q){for(var W=g.V(this.listeners),x=W.next();!x.done;x=W.next())x.value.L2(Q,this.getPresentingPlayerType())};
g.R.onFullscreenToggled=function(Q){for(var W=g.V(this.listeners),x=W.next();!x.done;x=W.next())x.value.onFullscreenToggled(Q)};
g.R.onVolumeChange=function(){for(var Q=g.V(this.listeners),W=Q.next();!W.done;W=Q.next())W.value.onVolumeChange()};
g.R.NC=function(){for(var Q=this.J.isMinimized(),W=g.V(this.listeners),x=W.next();!x.done;x=W.next())x.value.NC(Q)};
g.R.v9=function(Q){for(var W=g.V(this.listeners),x=W.next();!x.done;x=W.next())x.value.v9(Q)};
g.R.OV=function(){for(var Q=this.J.hf().ZB(),W=g.V(this.listeners),x=W.next();!x.done;x=W.next())x.value.hv(Q)};
g.R.LR=function(Q){for(var W=g.V(this.listeners),x=W.next();!x.done;x=W.next())x.value.LR(Q)};
g.R.j9=function(){for(var Q=g.V(this.listeners),W=Q.next();!W.done;W=Q.next())W.value.j9()};g.n(IUl,g.N);g.n(SU,g.N);SU.prototype.U3=function(){this.H8.d7()||this.H8.get().removeListener(this);g.N.prototype.U3.call(this)};bw.prototype.fetch=function(Q){var W=Q.qV;return this.B.fetch(Q.Cc,{U7:Q.U7===void 0?void 0:Q.U7,Jr:W,cueProcessedMs:Q.cueProcessedMs===void 0?0:Q.cueProcessedMs}).then(function(x){return men(x,W)})};g.n(sn,g.N);g.R=sn.prototype;g.R.addListener=function(Q){this.listeners.push(Q)};
g.R.removeListener=function(Q){this.listeners=this.listeners.filter(function(W){return W!==Q})};
g.R.dj=function(Q){Njs(this,Q,1)};
g.R.onAdUxClicked=function(Q,W){z7(this,function(x){x.TP(Q,W)})};
g.R.c_=function(Q){z7(this,function(W){W.Rr(Q)})};
g.R.Ji=function(Q){z7(this,function(W){W.M2(Q)})};
g.R.AO9=function(Q){z7(this,function(W){W.XQ(Q)})};k5.prototype.reduce=function(Q){switch(Q.event){case "unknown":return}var W=Q.identifier;var x=this.B[W];x?W=x:(x={sf:null,G9:-Infinity},W=this.B[W]=x);x=Q.startSecs+Q.B/1E3;if(!(x<W.G9))if(W.G9=x,W.sf){if(x<W.sf.end){a:{x=W.sf;switch(Q.event){case "start":case "continue":case "stop":break;default:Q=null;break a}Q=x.start+Q.eE;Q=x.end<=Q?null:Q}if(Q!==null)for(W.sf.end=Q,W=this.U,g.zS(W.D.B,Q*1E3),W=g.V(W.listeners),x=W.next();!x.done;x=W.next())x.value.jJ(Q)}}else if(Q=c55(Q,this.D))x=Q.W3t,W.sf=
Q.Bn,y5s(this.U,x)};
k5.prototype.updateTime=function(){};g.n(XQ,g.N);g.R=XQ.prototype;
g.R.E2=function(){this.L=new k5(this,Deh(this.yj.get()));this.D=new gM2;var Q=this.J.getVideoData(1);if(!Q.enableServerStitchedDai){var W=this.J.getVideoData(1),x;((x=this.U)==null?void 0:x.clientPlaybackNonce)!==W.clientPlaybackNonce&&(this.U!=null&&this.U.unsubscribe("cuepointupdated",this.GB,this),W.subscribe("cuepointupdated",this.GB,this),this.U=W)}this.oA.length=0;var D;W=((D=Q.B)==null?void 0:QAn(D,0))||[];D=g.V(W);for(W=D.next();!W.done;W=D.next())W=W.value,this.L0(W)&&(Oz(this.yj.get())&&
K$(this.vt.get(),"ocvl","cpi."+W.identifier+";cpe."+W.event+";cps."+W.startSecs),sH("Unexpected a GetAdBreak to go out without player waiting",void 0,void 0,{cuePointId:W.identifier,cuePointEvent:W.event,contentCpn:Q.clientPlaybackNonce}))};
g.R.sB=function(){};
g.R.addListener=function(Q){this.listeners.push(Q)};
g.R.removeListener=function(Q){this.listeners=this.listeners.filter(function(W){return W!==Q})};
g.R.L0=function(Q){fUh(this,Q);this.L.reduce(Q);Q=this.N;this.N=!1;return Q};
g.R.GB=function(Q){var W=this.J.getVideoData(1).isDaiEnabled();if(W||!g.aE(this.J.C())){Q=g.V(Q);for(var x=Q.next();!x.done;x=Q.next())if(x=x.value,fUh(this,x),Oz(this.yj.get())&&this.J.getCurrentTime(1)===0&&x.event==="start"&&K$(this.vt.get(),"ocuz","cpi."+x.identifier+";cpe."+x.event+";cps."+x.startSecs+";cpd."+x.eE),W)this.L.reduce(x);else if(this.J.getCurrentTime(1)!==0&&x.event==="start")if(this.yj.get().J.C().experiments.ij("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.B==null||
this.yj.get().J.C().experiments.ij("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.B.identifier!==x.identifier?0:x.startSecs+x.eE>=this.B.startSecs&&x.startSecs<=this.B.startSecs+this.B.eE)){var D=void 0;if(Oz(this.yj.get())&&x.identifier!==((D=this.B)==null?void 0:D.identifier)){var K=D=void 0,l=void 0,M=void 0;K$(this.vt.get(),"ocud","ccpi."+x.identifier+";ccpe."+x.event+";ccps."+x.startSecs+";\n               ccpd."+x.eE+";pcpi."+((D=this.B)==null?void 0:D.identifier)+";pcpe."+
((K=this.B)==null?void 0:K.event)+";\n               pcps."+((l=this.B)==null?void 0:l.startSecs)+";pcpd."+((M=this.B)==null?void 0:M.eE)+";")}D=void 0;x.identifier!==((D=this.B)==null?void 0:D.identifier)&&sH("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.B=x,y5s(this,x)}};
g.R.U3=function(){this.U!=null&&(this.U.unsubscribe("cuepointupdated",this.GB,this),this.U=null);this.listeners.length=0;this.oA.length=0;g.N.prototype.U3.call(this)};oM.prototype.addPlayerResponseForAssociation=function(Q){this.J.addPlayerResponseForAssociation(Q)};g.R=Y5.prototype;g.R.Uf=function(Q,W,x,D,K,l,M){return this.J.Uf(Q,W,x,D,K,l,M)};
g.R.lR=function(Q,W){this.J.lR(Q,W)};
g.R.Ru=function(Q,W,x){this.J.Ru(Q,W,x)};
g.R.gJ=function(Q){this.J.gJ(Q)};
g.R.WC=function(Q,W,x,D,K,l,M){this.J.WC(Q,W,x,D,K,l,M)};
g.R.n7=function(Q){return this.J.n7(Q)};
g.R.finishSegmentByCpn=function(Q,W,x){x=LVD(x);this.J.finishSegmentByCpn(Q,W,x)};g.n(Tj1,g.N);g.n(O62,g.N);g.n(EMO,g.N);g.n(FVn,g.N);g.n(t61,g.N);g.n(WNn,g.N);WNn.prototype.D=function(){return this.U};g.n(xxF,et);
xxF.prototype.N=function(Q){var W=Q.content;if(W.componentType==="shopping-companion")switch(Q.actionType){case 1:case 2:Q=this.B.getVideoData(1);this.B.Wt("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId,shoppingCompanionCarouselRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.B,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:this.B.Wt("updateKevlarOrC3Companion",{})}else if(W.componentType==="action-companion")switch(Q.actionType){case 1:case 2:Q=this.B.getVideoData(1);
this.B.Wt("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId,actionCompanionAdRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.B,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W.renderer&&(W=this.B.getVideoData(1),this.B.Wt("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId})),this.B.Wt("updateKevlarOrC3Companion",{})}else if(W.componentType==="image-companion")switch(Q.actionType){case 1:case 2:Q=this.B.getVideoData(1);this.B.Wt("updateKevlarOrC3Companion",
{contentVideoId:Q&&Q.videoId,imageCompanionAdRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.B,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W=this.B.getVideoData(1),this.B.Wt("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId}),this.B.Wt("updateKevlarOrC3Companion",{})}else if(W.componentType==="top-banner-image-text-icon-buttoned")switch(Q.actionType){case 1:case 2:Q=this.B.getVideoData(1);this.B.Wt("updateKevlarOrC3Companion",
{contentVideoId:Q&&Q.videoId,topBannerImageTextIconButtonedLayoutViewModel:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.B,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W.renderer&&(W=this.B.getVideoData(1),this.B.Wt("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId})),this.B.Wt("updateKevlarOrC3Companion",{})}else if(W.componentType==="banner-image")switch(Q.actionType){case 1:case 2:Q=this.B.getVideoData(1);this.B.Wt("updateKevlarOrC3Companion",
{contentVideoId:Q&&Q.videoId,bannerImageLayoutViewModel:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.B,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W=this.B.getVideoData(1),this.B.Wt("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId}),this.B.Wt("updateKevlarOrC3Companion",{})}else if(W.componentType==="ads-engagement-panel")switch(W=W.renderer,Q.actionType){case 1:case 2:this.B.Wt("updateEngagementPanelAction",W.addAction);this.B.Wt("changeEngagementPanelVisibility",
W.expandAction);break;case 3:this.B.Wt("changeEngagementPanelVisibility",W.hideAction),this.B.Wt("updateEngagementPanelAction",W.removeAction)}else if(W.componentType==="ads-engagement-panel-layout"){var x=W.renderer;switch(Q.actionType){case 1:case 2:this.B.Wt("updateEngagementPanelAction",{action:Nl(x.addAction),layoutId:W.layoutId,onLayoutVisibleCallback:W.B,interactionLoggingClientData:W.interactionLoggingClientData});this.B.Wt("changeEngagementPanelVisibility",Nl(x.expandAction));break;case 3:this.B.Wt("changeEngagementPanelVisibility",
Nl(x.hideAction)),this.B.Wt("updateEngagementPanelAction",{action:Nl(x.removeAction)})}}};g.n(Dxa,F3);g.R=Dxa.prototype;g.R.init=function(Q,W,x){F3.prototype.init.call(this,Q,W,x);g.SZ(this.D,"stroke-dasharray","0 "+this.U);this.D.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.X.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.N.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
g.R.clear=function(){this.hide()};
g.R.hide=function(){QZ(this);F3.prototype.hide.call(this)};
g.R.show=function(){t_(this);F3.prototype.show.call(this)};
g.R.Il=function(){this.hide()};
g.R.Ih=function(){if(this.B){var Q=this.B.getProgressState();Q!=null&&Q.current!=null&&g.SZ(this.D,"stroke-dasharray",Q.current/Q.seekableEnd*this.U+" "+this.U)}};g.n(KNs,k_);g.R=KNs.prototype;
g.R.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);if(W.image&&W.image.thumbnail)if(W.headline)if(W.description)if(W.backgroundImage&&W.backgroundImage.thumbnail)if(W.actionButton&&g.e(W.actionButton,g.IQ))if(Q=W.durationMilliseconds||0,typeof Q!=="number"||Q<=0)g.ql(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+Q));else if(W.navigationEndpoint){var D=this.api.getVideoData(2);if(D!=null){var K=W.image.thumbnail.thumbnails;K!=null&&
K.length>0&&g.p5(g.ti(K[0].url))&&(K[0].url=D.profilePicture,g.p5(g.ti(D.profilePicture))&&sy4("VideoPlayer",239976093,"Expected non-empty profile picture."));K=W.backgroundImage.thumbnail.thumbnails;K!=null&&K.length>0&&g.p5(g.ti(K[0].url))&&(K[0].url=D.ue());K=W.headline;K!=null&&g.p5(g.ti(K.text))&&(K.text=D.author)}this.T.init(jt("ad-image"),W.image,x);this.X.init(jt("ad-text"),W.headline,x);this.D.init(jt("ad-text"),W.description,x);this.s3.init(jt("ad-image"),W.backgroundImage,x);D=["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.X.element.classList.add("ytp-ad-action-interstitial-headline-light");this.D.element.classList.add("ytp-ad-action-interstitial-description-light");D.push("ytp-ad-action-interstitial-action-button-dark");this.api.C().U&&(D.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),D.push("ytp-ad-action-interstitial-action-button-dark"));this.api.C().j("enable_unified_action_endcap_on_web")&&
!this.api.C().U&&(D.push("ytp-ad-action-interstitial-action-button-unified"),this.I5.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.T.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Pt.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.GP.classList.add("ytp-ad-action-interstitial-card-unified"),this.pS.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-description-unified"),
this.fS.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.X3.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.g7.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new H4(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,D);g.y(this,this.actionButton);this.actionButton.Qj(this.I5);
this.actionButton.init(jt("button"),g.e(W.actionButton,g.IQ),x);yP(this.actionButton.element);D=ZH(this.actionButton.element);f8(this.actionButton.element,D+" This link opens in new tab");this.navigationEndpoint=W.navigationEndpoint;this.N.W(this.X3,"click",this.v0,this);this.N.W(this.pS,"click",this.v0,this);!this.api.C().j("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.C().U||this.N.W(this.fS,"click",this.v0,this);this.B=this.Am?new vi(this.api,Q):new Cb(Q);g.y(this,this.B);if(W.skipButton){(Q=
g.e(W.skipButton,WHJ))&&this.B&&(this.skipButton=new ol(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.B,this.JQ),g.y(this,this.skipButton),this.skipButton.Qj(this.element),this.skipButton.init(jt("skip-button"),Q,x));x=this.api.j("disable_ad_preview_for_instream_ads");if(Q=W.adBadgeRenderer)if(Q=g.e(Q,Q37))D=new VZ(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,!0,x),D.Qj(this.g7),D.init(jt("simple-ad-badge"),Q,this.macros),g.y(this,D);if(Q=W.adInfoRenderer)if(Q=
g.e(Q,BD))x=new Te(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.element,void 0,x),x.Qj(this.g7),x.init(jt("ad-info-hover-text-button"),Q,this.macros),g.y(this,x)}else W.nonskippableOverlayRenderer&&(Q=g.e(W.nonskippableOverlayRenderer,$O))&&this.B&&(this.U=new De(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.B,!1),g.y(this,this.U),this.U.Qj(this.element),this.U.init(jt("ad-preview"),Q,x));W.countdownRenderer&&(W=W.countdownRenderer,g.e(W,x3R)&&this.B&&
(x=new Dxa(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.B),g.y(this,x),x.Qj(this.element),x.init(jt("timed-pie-countdown"),g.e(W,x3R),this.macros)));this.show();this.element.focus()}else g.ql(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.ql(Error("AdActionInterstitialRenderer has no button."));else g.ql(Error("AdActionInterstitialRenderer has no background AdImage."));else g.ql(Error("AdActionInterstitialRenderer has no description AdText."));else g.ql(Error("AdActionInterstitialRenderer has no headline AdText."));
else g.ql(Error("AdActionInterstitialRenderer has no image."))};
g.R.clear=function(){g.d3(this.N);this.hide()};
g.R.show=function(){l61(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.U&&this.U.show();k_.prototype.show.call(this)};
g.R.hide=function(){l61(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.U&&this.U.hide();k_.prototype.hide.call(this)};
g.R.v0=function(){this.navigationEndpoint&&(this.layoutId?this.R5.executeCommand(this.navigationEndpoint,this.layoutId):g.ql(Error("Missing layoutId for ad action interstitial.")))};var S9h={iconType:"CLOSE"},vS=new g.oZ(320,63);g.n(wm4,k_);g.R=wm4.prototype;
g.R.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);this.N=W;this.T=g.DX(this.N.onClickCommands||[]);this.g7=this.N.onErrorCommand||null;if(Q=this.N.contentSupportedRenderer)Q=this.N.contentSupportedRenderer,W=this.N.adInfoRenderer||null,g.e(Q,EFR)?(this.X=g.rS("ytp-ad-overlay-ad-info-button-container",this.D.element),bHv(this,W),Q=z3s(this,g.e(Q,EFR))):g.e(Q,FJs)?(this.X=g.rS("ytp-ad-overlay-ad-info-button-container",this.U.element),bHv(this,W),Q=kP4(this,g.e(Q,FJs))):g.e(Q,tpR)?(this.X=
g.rS("ytp-ad-overlay-ad-info-button-container",this.B.element),bHv(this,W),Q=Xms(this,g.e(Q,tpR))):(g.ql(Error("InvideoOverlayAdRenderer content could not be initialized.")),Q=!1);Q&&(this.show(),o$n(this,!0))};
g.R.clear=function(){o$n(this,!1);this.X3.reset();this.pS=0;this.D.hide();this.logVisibility(this.D.element,!1);this.U.hide();this.logVisibility(this.U.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.hide();this.dispose()};
g.R.mxj=function(){this.I5&&(this.layoutId?this.R5.executeCommand(this.I5,this.layoutId):g.ql(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.R.hT=function(){a:{if(this.N&&this.N.closeButton&&this.N.closeButton.buttonRenderer){var Q=this.N.closeButton.buttonRenderer;if(Q.serviceEndpoint){Q=[Q.serviceEndpoint];break a}}Q=[]}Q=g.V(Q);for(var W=Q.next();!W.done;W=Q.next())W=W.value,this.layoutId?this.R5.executeCommand(W,this.layoutId):g.ql(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.R.CNj=function(){this.s3||this.api.getPlayerState(1)!==2||this.api.playVideo()};
g.R.nH=function(){this.s3||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.nH("invideo-overlay")};
g.R.PNZ=function(Q){Q.target===this.X&&g.rS("ytp-ad-button",this.Pt.element).click()};g.n(uvO,F3);g.R=uvO.prototype;g.R.init=function(Q,W,x){F3.prototype.init.call(this,Q,W,x);Q=W.durationMs;this.D=Q==null||Q===0?0:Q+this.B.getProgressState().current*1E3;if(W.text)var D=W.text.templatedAdText;else W.staticMessage&&(D=W.staticMessage);this.messageText.init(jt("ad-text"),D,x);this.messageText.Qj(this.U.element);this.N.show(100);this.show()};
g.R.clear=function(){this.hide()};
g.R.hide=function(){Y9a(this,!1);F3.prototype.hide.call(this);this.U.hide();this.messageText.hide();QZ(this)};
g.R.show=function(){Y9a(this,!0);F3.prototype.show.call(this);t_(this);this.U.show();this.messageText.show()};
g.R.Il=function(){this.hide()};
g.R.Ih=function(){if(this.B!=null){var Q=this.B.getProgressState();Q!=null&&Q.current!=null&&(Q=1E3*Q.current,!this.pS&&Q>=this.D?(this.N.hide(),this.pS=!0):this.messageText&&this.messageText.isTemplated()&&(Q=Math.max(0,Math.ceil((this.D-Q)/1E3)),Q!==this.X&&(EP(this.messageText,{TIME_REMAINING:String(Q)}),this.X=Q)))}};g.n(n$O,k_);g.R=n$O.prototype;
g.R.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,{});W.image&&W.image.thumbnail?W.headline?W.description?W.actionButton&&g.e(W.actionButton,g.IQ)?(this.D.init(jt("ad-image"),W.image,x),this.U.init(jt("ad-text"),W.headline,x),this.N.init(jt("ad-text"),W.description,x),Q=["ytp-ad-underlay-action-button"],this.api.C().j("use_blue_buttons_for_desktop_player_underlay")&&Q.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new H4(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,
Q),W.backgroundColor&&g.SZ(this.element,"background-color",g.Nr(W.backgroundColor)),g.y(this,this.actionButton),this.actionButton.Qj(this.X),this.actionButton.init(jt("button"),g.e(W.actionButton,g.IQ),x),W=g.X0(this.api.C().experiments,"player_underlay_video_width_fraction"),this.api.C().j("place_shrunken_video_on_left_of_player")?(x=this.B,g.Rr(x,"ytp-ad-underlay-left-container"),g.j$(x,"ytp-ad-underlay-right-container"),g.SZ(this.B,"margin-left",Math.round((W+.02)*100)+"%")):(x=this.B,g.Rr(x,"ytp-ad-underlay-right-container"),
g.j$(x,"ytp-ad-underlay-left-container")),g.SZ(this.B,"width",Math.round((1-W-.04)*100)+"%"),this.api.Ho()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.cJ.bind(this)),this.api.addEventListener("resize",this.Jy.bind(this))):g.ql(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.ql(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.ql(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.ql(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.R.show=function(){Vfv(!0);this.actionButton&&this.actionButton.show();k_.prototype.show.call(this)};
g.R.hide=function(){Vfv(!1);this.actionButton&&this.actionButton.hide();k_.prototype.hide.call(this)};
g.R.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.cJ.bind(this));this.api.removeEventListener("resize",this.Jy.bind(this));this.hide()};
g.R.onClick=function(Q){k_.prototype.onClick.call(this,Q);this.actionButton&&g.jh(this.actionButton.element,Q.target)&&this.api.pauseVideo()};
g.R.cJ=function(Q){Q==="transitioning"?(this.B.classList.remove("ytp-ad-underlay-clickable"),this.show()):Q==="visible"?this.B.classList.add("ytp-ad-underlay-clickable"):Q==="hidden"&&(this.hide(),this.B.classList.remove("ytp-ad-underlay-clickable"))};
g.R.Jy=function(Q){Q.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):Q.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.SZ(this.U.element,"font-size",Q.width/40+"px")};g.n(Cx,k_);
Cx.prototype.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);W.toggledLoggingParams&&(this.toggledLoggingParams=W.toggledLoggingParams);W.answer&&g.e(W.answer,g.IQ)?(Q=new H4(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),Q.Qj(this.answer),Q.init(jt("ytp-ad-survey-answer-button"),g.e(W.answer,g.IQ),x),Q.show()):W.answer&&g.e(W.answer,no)&&(this.B=new gn(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,
["ytp-ad-survey-answer-toggle-button"]),this.B.Qj(this.answer),g.y(this,this.B),this.B.init(jt("survey-answer-button"),g.e(W.answer,no),x));this.show()};
Cx.prototype.CV=function(Q){this.layoutId?rO(this.R5,Q,this.layoutId,this.macros):g.ql(new g.Lw("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
Cx.prototype.onClick=function(Q){k_.prototype.onClick.call(this,Q);if(this.api.C().j("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
Cx.prototype.clear=function(){this.hide()};g.n(PI1,k_);PI1.prototype.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);W.answer&&g.e(W.answer,no)&&(this.button=new gn(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Qj(this.B),this.button.init(jt("survey-none-of-the-above-button"),g.e(W.answer,no),x));this.show()};g.n(JR,H4);JR.prototype.init=function(Q,W,x){H4.prototype.init.call(this,Q,W,x);Q=!1;W.text&&(W=g.od(W.text),Q=!g.p5(W));Q||g.Bp(Error("No submit text was present in the renderer."))};
JR.prototype.onClick=function(Q){this.publish("l");H4.prototype.onClick.call(this,Q)};g.n(px,k_);
px.prototype.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);if(Q=W.skipOrPreviewRenderer)g.e(Q,Re)?(Q=g.e(Q,Re),x=new YZ(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.N,!0),x.Qj(this.skipOrPreview),x.init(jt("skip-button"),Q,this.macros),g.y(this,x),this.B=x):g.e(Q,$O)&&(Q=g.e(Q,$O),x=new De(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.N,!1),x.Qj(this.skipOrPreview),x.init(jt("ad-preview"),Q,this.macros),Kb(x),g.y(this,x),this.B=x);this.B==
null&&g.ql(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(W)));W.submitButton&&(Q=W.submitButton,g.e(Q,g.IQ)&&(Q=g.e(Q,g.IQ),x=new JR(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),x.Qj(this.submitButton),x.init(jt("survey-submit"),Q,this.macros),g.y(this,x),this.U=x));Q=this.api.j("disable_ad_preview_for_instream_ads");if(x=W.adBadgeRenderer){x=g.e(x,Q37);var D=new VZ(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,!0,
Q,!0);D.Qj(this.D);D.init(jt("simple-ad-badge"),x,this.macros);this.adBadge=D.element;g.y(this,D)}if(x=W.adDurationRemaining)x=g.e(x,reJ),D=new hI(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.N,void 0,Q),D.Qj(this.D),D.init(jt("ad-duration-remaining"),x,this.macros),g.y(this,D);(W=W.adInfoRenderer)&&g.e(W,BD)&&(x=new Te(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.element,void 0,Q),g.y(this,x),Q&&this.adBadge!==void 0?this.D.insertBefore(x.element,
this.adBadge.nextSibling):x.Qj(this.D),x.init(jt("ad-info-hover-text-button"),g.e(W,BD),this.macros));this.show()};
px.prototype.clear=function(){this.hide()};g.n(hR,k_);hR.prototype.init=function(Q,W,x){k_.prototype.init.call(this,Q,W,x);h3F(this)};
hR.prototype.show=function(){this.D=Date.now();k_.prototype.show.call(this)};
hR.prototype.iP=function(){};g.n(a6l,hR);g.R=a6l.prototype;g.R.init=function(Q,W,x){var D=this;hR.prototype.init.call(this,Q,W,x);W.questionText&&v$D(this,W.questionText);W.answers&&W.answers.forEach(function(K,l){g.e(K,uE)&&CI5(D,g.e(K,uE),x,l)});
this.X=new Set(this.U.map(function(K){return K.B.B}));
(Q=W.noneOfTheAbove)&&(Q=g.e(Q,O55))&&GPO(this,Q,x);W.surveyAdQuestionCommon&&pmD(this,W.surveyAdQuestionCommon);W.submitEndpoints&&(this.submitEndpoints=W.submitEndpoints);this.W(this.element,"change",this.onChange);this.show()};
g.R.iP=function(){dxz(this,!1);this.N.U.subscribe("l",this.BH3,this)};
g.R.onChange=function(Q){Q.target===this.noneOfTheAbove.button.B?iHv(this):this.X.has(Q.target)&&(this.noneOfTheAbove.button.toggleButton(!1),dxz(this,!0))};
g.R.BH3=function(){var Q=[],W=this.U.reduce(function(K,l,M){var w=l.toggledLoggingParams;l.B&&l.B.isToggled()&&w&&(K.push(w),Q.push(M));return K},[]).join("&"),x=this.submitEndpoints.map(function(K){if(!K.loggingUrls)return K;
K=g.U6(K);K.loggingUrls=K.loggingUrls.map(function(l){l.baseUrl&&(l.baseUrl=eo(l.baseUrl,W));return l});
return K});
if(x){x=g.V(x);for(var D=x.next();!D.done;D=x.next())D=D.value,this.layoutId?rO(this.R5,D,this.layoutId,this.macros):g.ql(Error("Missing layoutId for multi_select_question."))}this.api.C().j("supports_multi_step_on_desktop")&&this.pS(Q)};
g.R.clear=function(){this.api.C().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.n(aM,hR);aM.prototype.init=function(Q,W,x){var D=this;hR.prototype.init.call(this,Q,W,x);W.questionText&&v$D(this,W.questionText);W.answers&&W.answers.forEach(function(K,l){g.e(K,uE)&&CI5(D,g.e(K,uE),x,l)});
W.surveyAdQuestionCommon?pmD(this,W.surveyAdQuestionCommon):g.ql(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(W)));this.show()};
aM.prototype.clear=function(){this.api.C().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.n(G7,k_);G7.prototype.init=function(Q,W,x){var D=this;k_.prototype.init.call(this,Q,W,x);if(this.api.C().j("supports_multi_step_on_desktop")){var K;this.conditioningRules=(K=W.conditioningRules)!=null?K:[];var l;this.U=(l=W.questions)!=null?l:[];var M;((M=W.questions)==null?0:M.length)&&q95(this,0)}else(W.questions||[]).forEach(function(w){g.e(w,US)?HHh(D,g.e(w,US),x):g.e(w,HD)&&UxF(D,g.e(w,HD),x)});
this.show()};
G7.prototype.clear=function(){this.api.C().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
G7.prototype.N=function(Q){var W=this;if(this.api.C().j("supports_multi_step_on_desktop")){var x;if((x=this.conditioningRules)==null?0:x.length){var D;if(Q.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(K){return K.questionIndex===W.B})==null)g.ql(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
else if(this.conditioningRules.forEach(function(K){if(K.questionIndex===W.B)switch(K.condition){case "CONDITION_ALL_OF":var l;if((l=K.answerIndices)==null?0:l.every(function(w){return Q.includes(w)}))D=K.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var M;if((M=K.answerIndices)==null?0:M.some(function(w){return Q.includes(w)}))D=K.nextQuestionIndex;
break;default:g.ql(Error("Expected specified condition in survey conditioning rules."))}}),D!=null)q95(this,D);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.ql(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.n(db,k_);
db.prototype.init=function(Q,W,x){var D=this;k_.prototype.init.call(this,Q,W,x);Q=W.timeoutSeconds||0;if(typeof Q!=="number"||Q<0)g.ql(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+Q));else if(W.timeoutCommands)if(W.text)if(W.ctaButton&&g.e(W.ctaButton,g.IQ))if(W.brandImage)if(W.backgroundImage&&g.e(W.backgroundImage,mF)&&g.e(W.backgroundImage,mF).landscape){this.layoutId||g.ql(Error("Missing layoutId for survey interstitial."));BDF(this.interstitial,g.e(W.backgroundImage,
mF).landscape);BDF(this.logoImage,W.brandImage);g.MT(this.text,g.od(W.text));var K=["ytp-ad-survey-interstitial-action-button"];K.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new H4(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,K);g.y(this,this.actionButton);this.actionButton.Qj(this.U);this.actionButton.init(jt("button"),g.e(W.ctaButton,g.IQ),x);this.actionButton.show();this.B=new vi(this.api,Q*1E3);this.B.subscribe("g",function(){D.transition.hide()});
g.y(this,this.B);this.W(this.element,"click",function(l){var M=l.target===D.interstitial;l=D.actionButton.element.contains(l.target);if(M||l)if(D.transition.hide(),M)D.api.onAdUxClicked(D.componentType,D.layoutId)});
this.transition.show(100)}else g.ql(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.ql(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.ql(Error("SurveyTextInterstitialRenderer has no button."));else g.ql(Error("SurveyTextInterstitialRenderer has no text."));else g.ql(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
db.prototype.clear=function(){this.hide()};
db.prototype.show=function(){$xD(!0);k_.prototype.show.call(this)};
db.prototype.hide=function(){$xD(!1);k_.prototype.hide.call(this)};g.n(iw,F3);g.R=iw.prototype;
g.R.init=function(Q,W){F3.prototype.init.call(this,Q,W,{});if(W.durationMilliseconds){if(W.durationMilliseconds<0){g.ql(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+W.durationMilliseconds));return}this.U=W.durationMilliseconds}else this.U=this.B.hB();var x;if((x=W.previewText)==null||!x.text||g.p5(W.previewText.text))g.ql(Error("No text is returned for AdPreview."));else{this.X=W.previewText;W.previewText.isTemplated||g.MT(this.D,W.previewText.text);var D;
if(((D=this.api.getVideoData(1))==null?0:D.TH)&&W.previewImage){var K,l;(Q=((l=hp(((K=W.previewImage)==null?void 0:K.sources)||[],52,!1))==null?void 0:l.url)||"")&&Q.length?(this.previewImage=new g.ze({K:"img",Y:"ytp-preview-ad__image",Z:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",Q),g.y(this,this.previewImage),this.previewImage.Qj(this.element)):g.ql(Error("Failed to get imageUrl in AdPreview."))}else this.D.classList.add("ytp-preview-ad__text--padding--wide")}};
g.R.clear=function(){this.hide()};
g.R.hide=function(){QZ(this);F3.prototype.hide.call(this)};
g.R.show=function(){t_(this);F3.prototype.show.call(this)};
g.R.Il=function(){this.hide()};
g.R.Ih=function(){if(this.B){var Q=this.B.getProgressState();if(Q!=null&&Q.current)if(Q=1E3*Q.current,Q>=this.U)this.transition.hide();else{var W;if((W=this.X)==null?0:W.isTemplated)if(W=Math.max(0,Math.ceil((this.U-Q)/1E3)),W!==this.N){var x,D;(Q=(x=this.X)==null?void 0:(D=x.text)==null?void 0:D.replace("{TIME_REMAINING}",String(W)))&&g.MT(this.D,Q);this.N=W}}}};g.n(AR,k_);
AR.prototype.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});var x,D;if((Q=((D=hp(((x=W.image)==null?void 0:x.sources)||[],I65(W),!0))==null?void 0:D.url)||"")&&Q.length){x=this.Nj("ytp-ad-avatar");x.src=Q;var K,l;if(D=(K=W.interaction)==null?void 0:(l=K.accessibility)==null?void 0:l.label)x.alt=D;switch(W.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(W.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.ql(Error("Failed to get imageUrl in AdAvatar."))};
AR.prototype.clear=function(){this.hide()};
AR.prototype.onClick=function(Q){k_.prototype.onClick.call(this,Q)};g.n(HS,k_);
HS.prototype.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});var x;Q=(x=W.label)==null?void 0:x.content;if((x=Q!=null&&!g.p5(Q))||W.iconImage){x&&(this.buttonText=new g.ze({K:"span",Y:"ytp-ad-button-vm__text",m3:Q}),g.y(this,this.buttonText),this.buttonText.Qj(this.element));var D,K,l=((D=W.interaction)==null?0:(K=D.accessibility)==null?0:K.label)||x?Q:"";l&&f8(this.element,l+" This link opens in new tab");yP(this.element);if(W.iconImage){D=void 0;if(W.iconImage){a:{K=W.iconImage;if(K.sources)for(K=
g.V(K.sources),Q=K.next();!Q.done;Q=K.next())if(Q=Q.value,l=void 0,(l=Q.clientResource)==null?0:l.imageName){K=Q;break a}K=void 0}if(K){var M;D={iconType:(M=K.clientResource)==null?void 0:M.imageName}}}M=A_(D,!1,this.U);M!=null&&(this.buttonIcon=new g.ze({K:"span",Y:"ytp-ad-button-vm__icon",V:[M]}),g.y(this,this.buttonIcon),W.iconLeading?(Ky(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):x?(this.buttonIcon.Qj(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):
(this.buttonIcon.Qj(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(W.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.B?"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(W.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.Bp(Error("AdButton does not have label or an icon."))};
HS.prototype.clear=function(){this.hide()};
HS.prototype.onClick=function(Q){k_.prototype.onClick.call(this,Q)};g.n(mxF,F3);g.R=mxF.prototype;
g.R.init=function(Q,W){F3.prototype.init.call(this,Q,W,{});this.api.C().j("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Nj("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"),Ky(this.Nj("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(Q=g.e(W.avatar,gb)){var x=W.headline;if(x){var D=W.description;if(D){var K=g.e(W.button,eU);K?(this.adAvatar.init(jt("ad-avatar"),Q),this.headline.init(jt("ad-simple-attributed-string"),new GV(x)),this.description.init(jt("ad-simple-attributed-string"),new GV(D)),x.content&&x.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),
this.adButton.init(jt("ad-button"),K),this.startMilliseconds=W.startMs||0,this.api.Ho()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.X7.bind(this)),t_(this)):g.ql(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ql(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ql(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ql(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.R.Ih=function(){if(this.B){var Q=this.B.getProgressState();Q&&Q.current&&1E3*Q.current>=this.startMilliseconds&&(QZ(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.R.Il=function(){this.clear()};
g.R.onClick=function(Q){this.api.pauseVideo();F3.prototype.onClick.call(this,Q)};
g.R.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.X7.bind(this))};
g.R.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();F3.prototype.show.call(this)};
g.R.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();F3.prototype.hide.call(this)};
g.R.X7=function(Q){Q==="hidden"?this.show():this.hide()};g.n(Un,k_);g.R=Un.prototype;
g.R.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});if(!W.label||g.p5(W.label))g.ql(Error("No label is returned for SkipAdButton."));else if(g.MT(this.N,W.label),Q=A_({iconType:"SKIP_NEXT_NEW"}),Q==null)g.ql(Error("Unable to retrieve icon for SkipAdButton"));else if(this.D=new g.ze({K:"span",Y:"ytp-skip-ad-button__icon",V:[Q]}),g.y(this,this.D),this.D.Qj(this.element),this.api.C().experiments.ij("enable_skip_to_next_messaging")&&(W=g.ti(W.targetId)))this.U=!0,this.element.setAttribute("data-tooltip-target-id",W),
this.element.setAttribute("data-tooltip-target-fixed","")};
g.R.onClick=function(Q){Q&&Q.preventDefault();var W,x;Ryv(Q,{contentCpn:(x=(W=this.api.getVideoData(1))==null?void 0:W.clientPlaybackNonce)!=null?x:""})===0?this.api.Wt("onAbnormalityDetected"):(k_.prototype.onClick.call(this,Q),this.api.Wt("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))};
g.R.clear=function(){this.B.reset();this.hide()};
g.R.hide=function(){k_.prototype.hide.call(this)};
g.R.show=function(){this.B.start();k_.prototype.show.call(this);this.U&&this.api.C().experiments.ij("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.n(NDa,F3);g.R=NDa.prototype;
g.R.init=function(Q,W){F3.prototype.init.call(this,Q,W,{});Q=g.e(W.preskipState,w1J);if(this.N||!this.api.C().experiments.ij("disable_ad_preview_for_instream_ads")){if(!Q){g.ql(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var x;(x=this.U)==null||x.init(jt("preview-ad"),Q);(x=this.U)!=null&&(x.transition.show(100),x.show())}(x=g.e(W.skippableState,bPJ))?(W.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=W.skipOffsetMilliseconds:(g.Bp(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=
5E3),this.D.init(jt("skip-button"),x),this.show()):g.ql(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))};
g.R.show=function(){t_(this);F3.prototype.show.call(this)};
g.R.hide=function(){!this.isSkippable&&this.U?this.U.hide():this.D&&this.D.hide();QZ(this);F3.prototype.hide.call(this)};
g.R.clear=function(){var Q;(Q=this.U)==null||Q.clear();this.D&&this.D.clear();QZ(this);F3.prototype.hide.call(this)};
g.R.Il=function(){this.hide()};
g.R.Ih=function(){if(1E3*this.B.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var Q;(Q=this.U)!=null&&Q.transition.hide();(Q=this.D)!=null&&(Q.transition.show(),Q.show())}};g.n(q$,k_);
q$.prototype.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});if(W.label){var x;((x=W.label)==null?0:x.content)&&!g.p5(W.label.content)&&(this.linkText=new g.ze({K:"span",Y:"ytp-visit-advertiser-link__text",m3:W.label.content}),g.y(this,this.linkText),this.linkText.Qj(this.element));var D,K;if((D=W.interaction)==null?0:(K=D.accessibility)==null?0:K.label)f8(this.element,W.interaction.accessibility.label+" This link opens in new tab");else{var l;((l=W.label)==null?0:l.content)&&!g.p5(W.label.content)&&f8(this.element,
W.label.content+" This link opens in new tab")}yP(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.ql(Error("No label found in VisitAdvertiserLink."))};
q$.prototype.onClick=function(Q){k_.prototype.onClick.call(this,Q);this.api.onAdUxClicked(this.componentType,this.layoutId)};
q$.prototype.clear=function(){this.hide()};g.n(BS,k_);
BS.prototype.init=function(Q,W,x,D){k_.prototype.init.call(this,Q,W,{});if(W.skipOrPreview){x=W.skipOrPreview;Q=g.e(x,s35);x=g.e(x,w1J);var K,l=this.api.C().j("clean_player_style_fix_on_web")&&((K=this.api.getVideoData())==null?void 0:K.isDaiEnabled());Q?(this.i_=new NDa(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.D),g.y(this,this.i_),this.i_.Qj(this.pS),this.i_.init(jt("skip-ad"),Q)):!x||this.api.C().experiments.ij("disable_ad_preview_for_instream_ads")&&!l||(this.X=new iw(this.api,
this.layoutId,this.interactionLoggingClientData,this.R5,this.D,1),g.y(this,this.X),this.X.Qj(this.pS),this.X.init(jt("ad-preview"),x),K=this.X,K.transition.show(100),K.show());if(K=g.e(W.skipOrPreview,s35))var M=K.skipOffsetMilliseconds}W.playerAdCard&&(K=g.e(W.playerAdCard,SgF))&&(this.playerAdCard=new mxF(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.D),g.y(this,this.playerAdCard),this.playerAdCard.Qj(this.X3),this.playerAdCard.init(jt("ad-avatar-lockup-card"),K));K=this.api.C().j("disable_ad_duration_remaining_for_instream_video_ads")||
W.adPodIndex!==void 0;W.adBadgeRenderer&&((Q=g.e(W.adBadgeRenderer,yd))?(this.U=new iK(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,K),g.y(this,this.U),this.api.C().j("delhi_modern_web_player")?this.U.Qj(this.N):this.U.Qj(this.B),this.U.init(jt("ad-badge"),Q)):g.ql(Error("AdBadgeViewModel is not found in player overlay layout.")));W.adPodIndex&&(Q=g.e(W.adPodIndex,lX1))&&(this.adPodIndex=new AI(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,g.e(W.skipOrPreview,
s35)===void 0),g.y(this,this.adPodIndex),this.api.C().j("delhi_modern_web_player")?this.adPodIndex.Qj(this.N):this.adPodIndex.Qj(this.B),this.adPodIndex.init(jt("ad-pod-index"),Q));W.adInfoRenderer&&(Q=g.e(W.adInfoRenderer,BD))&&(this.adInfoButton=new Te(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.element,void 0,K),g.y(this,this.adInfoButton),x=(this.api.C().j("delhi_modern_web_player")||this.api.C().j("enable_ad_pod_index_autohide"))&&this.U!==void 0,l=this.api.C().j("delhi_modern_web_player")?
this.N:this.B,x?l.insertBefore(this.adInfoButton.element,this.U.element.nextSibling):this.adInfoButton.Qj(l),this.adInfoButton.init(jt("ad-info-hover-text-button"),Q,this.macros));var w;Q=this.api.C().j("clean_player_style_fix_on_web")&&((w=this.api.getVideoData())==null?void 0:w.isDaiEnabled());W.adDurationRemaining&&(!K||Q)&&(w=g.e(W.adDurationRemaining,reJ))&&(this.adDurationRemaining=new hI(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.D,D.videoAdDurationSeconds,K),g.y(this,
this.adDurationRemaining),D=this.api.C().j("delhi_modern_web_player")?this.N:this.B,(K||this.api.C().j("delhi_modern_web_player"))&&this.adPodIndex!==void 0?D.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?K||this.api.C().j("delhi_modern_web_player")?D.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling):this.B.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.Qj(this.B),
this.adDurationRemaining.init(jt("ad-duration-remaining"),w,this.macros),K&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));W.visitAdvertiserLink&&(D=g.e(W.visitAdvertiserLink,kSA))&&(this.visitAdvertiserLink=new q$(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),g.y(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Qj(this.B),this.visitAdvertiserLink.init(jt("visit-advertiser-link"),D));W.adDisclosureBanner&&(W=g.e(W.adDisclosureBanner,
KHJ))&&(this.adDisclosureBanner=new Hi(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),g.y(this,this.adDisclosureBanner),this.adDisclosureBanner.Qj(this.fS),this.adDisclosureBanner.init(jt("ad-disclosure-banner"),W));this.api.C().j("show_preskip_progress_bar_for_skippable_ads")&&(this.T=new Bi(this.api,this.D,M,K),g.y(this,this.T),g.qf(this.api,this.T.element,4));this.show()};
BS.prototype.clear=function(){this.hide()};g.n(cq2,k_);g.R=cq2.prototype;
g.R.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});if(W!=null&&W.title)if(Q=W.title)if(this.headline.init(jt("ad-simple-attributed-string"),new GV(Q)),Q=g.e(W.moreInfoButton,eU)){if(this.moreInfoButton.init(jt("ad-button"),Q),W.descriptions)W.descriptions.length>0&&(Q=W.descriptions[0])&&(this.B=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),g.y(this,this.B),this.B.Qj(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.B.init(jt("ad-simple-attributed-string"),
new GV(Q))),W.descriptions.length>1&&(W=W.descriptions[1])&&(this.U=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),g.y(this,this.U),this.U.Qj(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.U.init(jt("ad-simple-attributed-string"),new GV(W)))}else g.ql(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.ql(Error("No headline found in AdGridCardText."));else g.ql(Error("No headline found in AdGridCardText."))};
g.R.onClick=function(Q){k_.prototype.onClick.call(this,Q);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.R.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var Q;(Q=this.B)==null||Q.clear();var W;(W=this.U)==null||W.clear()};
g.R.hide=function(){this.headline.hide();this.moreInfoButton.hide();var Q;(Q=this.B)==null||Q.hide();var W;(W=this.U)==null||W.hide();k_.prototype.hide.call(this)};
g.R.show=function(){k_.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var Q;(Q=this.B)==null||Q.show();var W;(W=this.U)==null||W.show()};g.n($5,k_);$5.prototype.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});if(W!=null&&W.gridCards)if(W.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.ql(Error("Only single column style is currently supported in AdGridCardCollection."));else for(Q=g.V(W.gridCards),W=Q.next();!W.done;W=Q.next()){if(W=g.e(W.value,Rce)){var x=new cq2(this.api,this.layoutId,this.interactionLoggingClientData,this.R5);g.y(this,x);x.Qj(this.element);x.init(jt("ad-grid-card-text"),W);this.B.push(x)}}else g.ql(Error("No grid cards found in AdGridCardCollection."))};
$5.prototype.show=function(){for(var Q=g.V(this.B),W=Q.next();!W.done;W=Q.next())W.value.show();k_.prototype.show.call(this)};
$5.prototype.clear=function(){this.hide();for(var Q=g.V(this.B),W=Q.next();!W.done;W=Q.next())W.value.clear()};
$5.prototype.hide=function(){for(var Q=g.V(this.B),W=Q.next();!W.done;W=Q.next())W.value.hide();k_.prototype.hide.call(this)};g.n(IM,F3);g.R=IM.prototype;g.R.init=function(Q,W,x,D,K){K=K===void 0?0:K;F3.prototype.init.call(this,Q,W,x,D);this.playerProgressOffsetMs=K;t_(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.v$.bind(this));this.api.addEventListener("resize",this.lE.bind(this));this.api.Ho()?(this.U=!0,this.api.As(!0),this.show()):this.hide()};
g.R.Ih=function(){if(this.B){var Q=this.B.getProgressState();Q&&Q.current&&!this.U&&1E3*Q.current>=this.playerProgressOffsetMs&&(this.U=!0,this.api.As(!0),this.show())}};
g.R.Il=function(){this.U&&this.api.As(!1);this.hide()};
g.R.clear=function(){this.api.As(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.v$.bind(this));this.api.removeEventListener("resize",this.lE.bind(this));QZ(this);this.hide()};
g.R.hide=function(){g$a(!1);F3.prototype.hide.call(this)};
g.R.show=function(){g$a(!0);F3.prototype.show.call(this)};g.n(yq5,IM);g.R=yq5.prototype;
g.R.init=function(Q,W,x,D){if(W!=null&&W.adGridCardCollection)if(W!=null&&W.adButton){var K=Number(W.playerProgressOffsetMs||"0");isNaN(K)?IM.prototype.init.call(this,Q,W,x,D):IM.prototype.init.call(this,Q,W,x,D,K);Q=W.headline;x=g.e(W.adAvatar,gb);Q&&x?(this.headline=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),g.y(this,this.headline),this.headline.Qj(this.Nj("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(jt("ad-simple-attributed-string"),new GV(Q)),
this.adAvatar=new AR(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),g.y(this,this.adAvatar),this.adAvatar.Qj(this.Nj("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(jt("ad-avatar"),x)):this.N.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");Q=g.e(W.adGridCardCollection,MJk);this.adGridCardCollection.init(jt("ad-grid-card-collection"),Q);W=g.e(W.adButton,eU);this.adButton.init(jt("ad-button"),W);
this.hide()}else g.ql(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.ql(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))};
g.R.onClick=function(Q){(this.adButton&&g.jh(this.adButton.element,Q.target)||this.adAvatar&&g.jh(this.adAvatar.element,Q.target))&&this.api.pauseVideo();IM.prototype.onClick.call(this,Q);this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.R.lE=function(){};
g.R.clear=function(){this.hide();var Q;(Q=this.headline)==null||Q.clear();var W;(W=this.adAvatar)==null||W.clear();this.adGridCardCollection.clear();this.adButton.clear();IM.prototype.clear.call(this)};
g.R.show=function(){var Q;(Q=this.headline)==null||Q.show();var W;(W=this.adAvatar)==null||W.show();this.adGridCardCollection.show();this.adButton.show();IM.prototype.show.call(this)};
g.R.hide=function(){var Q;(Q=this.headline)==null||Q.hide();var W;(W=this.adAvatar)==null||W.hide();this.adGridCardCollection.hide();this.adButton.hide();IM.prototype.hide.call(this)};
g.R.v$=function(Q){Q==="transitioning"?(this.D.classList.remove("ytp-ad-underlay-clickable"),this.show()):Q==="visible"?this.D.classList.add("ytp-ad-underlay-clickable"):Q==="hidden"&&(this.hide(),this.D.classList.remove("ytp-ad-underlay-clickable"))};g.n(mC,k_);
mC.prototype.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});if(W.attributes===void 0)g.ql(Error("No attributes found in AdDetailsLineViewModel."));else if(W.style===void 0)g.ql(Error("No style found in AdDetailsLineViewModel."));else{Q=g.V(W.attributes);for(var x=Q.next();!x.done;x=Q.next())if(x=x.value,x.text!==void 0){x=x.text;var D=W.style,K=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.R5);g.y(this,K);K.Qj(this.element);a:switch(D){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":D="ytp-ad-details-line__text--style-responsive";
break a;default:D="ytp-ad-details-line__text--style-standard"}K.element.classList.add(D);K.init(jt("ad-simple-attributed-string"),new GV(x));this.B.push(K)}this.show()}};
mC.prototype.show=function(){this.B.forEach(function(Q){Q.show()});
k_.prototype.show.call(this)};
mC.prototype.clear=function(){this.hide()};
mC.prototype.hide=function(){this.B.forEach(function(Q){Q.hide()});
k_.prototype.hide.call(this)};g.n(N$,k_);N$.prototype.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});var x,D;(Q=((D=hp(((x=W.image)==null?void 0:x.sources)||[]))==null?void 0:D.url)||"")&&Q.length?(x=this.Nj("ytp-image-background-image"),g.SZ(x,"backgroundImage","url("+Q+")"),W.blurLevel!==void 0&&g.SZ(x,"filter","blur("+W.blurLevel+"px)"),W.gradient!==void 0&&(W=new g.L({K:"div",lj:["ytp-image-background--gradient-vertical"]}),g.y(this,W),W.Qj(this.element)),this.show()):g.ql(Error("Failed to get imageUrl in ImageBackground."))};
N$.prototype.clear=function(){this.hide()};g.n(e34,F3);g.R=e34.prototype;g.R.init=function(Q,W){F3.prototype.init.call(this,Q,W,{});g.SZ(this.D,"stroke-dasharray","0 "+this.U);this.show()};
g.R.clear=function(){this.hide()};
g.R.hide=function(){QZ(this);F3.prototype.hide.call(this)};
g.R.show=function(){t_(this);F3.prototype.show.call(this)};
g.R.Il=function(){this.hide()};
g.R.Ih=function(){if(this.B){var Q=this.B.getProgressState();Q!=null&&Q.current!=null&&g.SZ(this.D,"stroke-dasharray",Q.current/Q.seekableEnd*this.U+" "+this.U)}};g.n(cS,k_);
cS.prototype.init=function(Q,W){k_.prototype.init.call(this,Q,W,{});if(ZHh(W)){this.adAvatar=new AR(this.api,this.layoutId,this.interactionLoggingClientData,this.R5);g.y(this,this.adAvatar);this.adAvatar.Qj(this.Nj("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(jt("ad-avatar"),g.e(W.adAvatar,gb));this.headline=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.R5);g.y(this,this.headline);this.headline.Qj(this.Nj("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(jt("ad-simple-attributed-string"),new GV(W.headline));if(Q=g.e(W.adDetailsLine,D37))this.detailsLine=new mC(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),g.y(this,this.detailsLine),this.detailsLine.Qj(this.Nj("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(jt("ad-details-line"),Q);this.adButton=new HS(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,!0);g.y(this,this.adButton);
this.adButton.Qj(this.Nj("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(jt("ad-button"),g.e(W.adButton,eU));Q=this.api.j("disable_ad_preview_for_instream_ads");this.adBadge=new iK(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,Q);g.y(this,this.adBadge);this.adBadge.Qj(this.N);this.adBadge.init(jt("ad-badge"),g.e(W.adBadge,yd));this.adInfoButton=new Te(this.api,this.layoutId,this.interactionLoggingClientData,this.R5,this.element,
void 0,Q);g.y(this,this.adInfoButton);this.adInfoButton.Qj(this.N);this.adInfoButton.init(jt("ad-info-hover-text-button"),g.e(W.adInfoRenderer,BD),this.macros);if(Q=g.e(W.skipAdButton,bPJ))this.skipAdButton=new Un(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),g.y(this,this.skipAdButton),this.skipAdButton.Qj(this.element),this.skipAdButton.init(jt("skip-button"),Q);this.U=new Cb(W.durationMilliseconds);g.y(this,this.U);if(Q=g.e(W.countdownViewModel,zcY))this.B=new e34(this.api,
this.layoutId,this.interactionLoggingClientData,this.R5,this.U),g.y(this,this.B),this.B.Qj(this.Nj("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.B.init(jt("timed-pie-countdown"),Q);if(W=g.e(W.imageBackground,j31))this.imageBackground=new N$(this.api,this.layoutId,this.interactionLoggingClientData,this.R5),g.y(this,this.imageBackground),this.imageBackground.Qj(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),
this.imageBackground.init(jt("image-background"),W);this.show();this.element.focus()}};
cS.prototype.clear=function(){g.d3(this.D);this.hide()};
cS.prototype.show=function(){f6D(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();k_.prototype.show.call(this)};
cS.prototype.hide=function(){f6D(!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.B&&this.B.hide();this.imageBackground&&this.imageBackground.hide();k_.prototype.hide.call(this)};var gLu="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.n(fx,et);
fx.prototype.N=function(Q){var W=Q.id,x=Q.content,D=x.componentType;if(!gLu.includes(D))switch(Q.actionType){case 1:Q=this.api;var K=this.R5,l=x.layoutId,M=x.interactionLoggingClientData,w=x instanceof Ep?x.Am:!1,S=x instanceof Ep||x instanceof Pi?x.JQ:!1;M=M===void 0?{}:M;w=w===void 0?!1:w;S=S===void 0?!1:S;switch(D){case "invideo-overlay":Q=new wm4(Q,l,M,K);break;case "player-overlay":Q=new $Z(Q,l,M,K,new Oo(Q),S);break;case "player-overlay-layout":Q=new BS(Q,l,M,K,new Oo(Q));break;case "survey":Q=
new G7(Q,l,M,K);break;case "ad-action-interstitial":Q=new KNs(Q,l,M,K,w,S);break;case "video-interstitial-buttoned-centered":Q=new cS(Q,l,M,K);break;case "survey-interstitial":Q=new db(Q,l,M,K);break;case "ad-message":Q=new uvO(Q,l,M,K,new Oo(Q,1));break;case "player-underlay":Q=new n$O(Q,l,M,K);break;case "display-underlay-text-grid-cards":Q=new yq5(Q,l,M,K,new Oo(Q));break;default:Q=null}if(!Q){g.Bp(Error("No UI component returned from ComponentFactory for type: "+D));break}g.hO(this.U,W)?g.Bp(Error("Ad UI component already registered: "+
W)):this.U[W]=Q;Q.bind(x);x instanceof T5?this.D?this.D.append(Q.Dk):g.Bp(Error("Underlay view was not created but UnderlayRenderer was created")):this.L.append(Q.Dk);break;case 2:W=LN1(this,Q);if(W==null)break;W.bind(x);break;case 3:x=LN1(this,Q),x!=null&&(g.w1(x),g.hO(this.U,W)?(x=this.U,W in x&&delete x[W]):g.Bp(Error("Ad UI component does not exist: "+W)))}};
fx.prototype.U3=function(){g.Sp(Object.values(this.U));this.U={};et.prototype.U3.call(this)};g.n(rq5,g.V1);g.R=rq5.prototype;g.R.create=function(){try{TD5(this),this.load(),this.created=!0,TD5(this)}catch(Q){sH(Q instanceof Error?Q:String(Q))}};
g.R.load=function(){try{FN2(this)}finally{Tw(Vd(this.B).NH)&&this.player.BI("ad",1)}};
g.R.destroy=function(){var Q=this.player.getVideoData(1);this.B.B.sb.sB(Q&&Q.clientPlaybackNonce||"");this.unload();this.created=!1};
g.R.unload=function(){g.V1.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(W){sH(W instanceof Error?W:String(W))}if(this.U!=null){var Q=this.U;this.U=null;Q.dispose()}this.D.reset()};
g.R.AX=function(){return!1};
g.R.getAdState=function(){return-1};
g.R.getOptions=function(){return Object.values(cjC)};
g.R.AA=function(Q,W){W=W===void 0?{}:W;switch(Q){case "replaceUrlMacros":return Q=W,Q.url?(W=XKQ(this.player),Object.assign(W,Q.Jsj),Q=g.ip(Q.url,W)):Q=null,Q;case "onAboutThisAdPopupClosed":this.o7(W);break;case "executeCommand":Q=W;Q.command&&Q.layoutId&&this.executeCommand(Q);break;default:return null}};
g.R.L0=function(Q){var W;return!((W=this.B.B.eQ)==null||!W.get().L0(Q))};
g.R.o7=function(Q){Q.isMuted&&nCl(Vd(this.B).GF,Vd(this.B).i$,Q.layoutId);this.UN&&this.UN.o7()};
g.R.executeCommand=function(Q){Vd(this.B).R5.executeCommand(Q.command,Q.layoutId)};g.g4("yt.player.Application.create",g.uk.create);g.g4("yt.player.Application.createAlternate",g.uk.create);T3D(it(),NcY);var yjA=g.yF("ytcsi.tick");yjA&&yjA("pe");g.nM("ad",rq5);g.n(g.rb,g.N);g.rb.prototype.start=function(Q,W,x){this.config={from:Q,nY:W,duration:x,startTime:(0,g.a8)()};this.next()};
g.rb.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.rb.prototype.next=function(){if(this.config){var Q=this.config,W=Q.from,x=Q.nY,D=Q.duration;Q=Q.startTime;var K=(0,g.a8)()-Q;Q=this.B;D=x7s(Q,K/D);if(D==0)Q=Q.G;else if(D==1)Q=Q.S;else{K=zM(Q.G,Q.L,D);var l=zM(Q.L,Q.X,D);Q=zM(Q.X,Q.S,D);K=zM(K,l,D);l=zM(l,Q,D);Q=zM(K,l,D)}Q=g.wS(Q,0,1);this.callback(W+(x-W)*Q);Q<1&&this.delay.start()}};g.n(g.T7,g.L);g.R=g.T7.prototype;g.R.hasSuggestions=function(){return this.suggestionData.length>0};
g.R.RN=function(){this.U&&this.scrollTo(this.scrollPosition-this.containerWidth)};
g.R.show=function(){g.L.prototype.show.call(this);KaF(this)};
g.R.IN=function(){this.U&&this.scrollTo(this.scrollPosition+this.containerWidth)};
g.R.zo=function(){this.OV(this.api.hf().getPlayerSize())};
g.R.OV=function(Q){var W=this.api.isEmbedsShortsMode()?.5625:16/9,x=this.api.eU();Q=Q.width-(x?112:58);x=Math.ceil(Q/(x?320:192));var D=(Q-x*8)/x;W=Math.floor(D/W);for(var K=g.V(this.B),l=K.next();!l.done;l=K.next())l=l.value.Nj("ytp-suggestion-image"),l.style.width=D+"px",l.style.height=W+"px";this.suggestions.element.style.height=W+"px";this.N=D;this.S=W;this.containerWidth=Q;this.columns=x;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.On(this)};
g.R.onVideoDataChange=function(){var Q=this.api.C(),W=this.api.getVideoData();this.X=W.HZ?!1:Q.N;this.suggestionData=W.suggestions?g.Rv(W.suggestions,function(x){return x&&!x.playlistId}):[];
j1e(this);W.HZ?this.title.update({title:g.nD("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:W.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})};
g.R.scrollTo=function(Q){Q=g.wS(Q,this.containerWidth-this.suggestionData.length*(this.N+8),0);this.G.start(this.scrollPosition,Q,1E3);this.scrollPosition=Q;g.On(this);KaF(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/b191cf34/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.644342;s:15:"namelookup_time";d:0.049153;s:12:"connect_time";d:0.093113;s:16:"pretransfer_time";d:0.157618;s:11:"size_upload";d:0;s:13:"size_download";d:827068;s:14:"speed_download";d:1283585;s:12:"speed_upload";d:0;s:23:"download_content_length";d:827068;s:21:"upload_content_length";d:0;s:18:"starttransfer_time";d:0.19758;s:13:"redirect_time";d:0;s:12:"redirect_url";s:0:"";s:10:"primary_ip";s:15:"142.250.197.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:37724;}}}

ZeroDay Forums Mini