var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
var _yt_player={};(function(g){var window=this;/*

 (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.
*/
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var aa,baa,caa,ia,daa,eaa,faa,ka,ma,na,oa,jaa,kaa,va,wa,laa,maa,za,naa,Aa,Ba,Ca,Ga,Ia,paa,qaa,Ta,raa,Wa,Xa,Ya,Za,$a,saa,taa,gb,vaa,waa,xb,xaa,Bb,yaa,zaa,zb,Aaa,Baa,Caa,Eaa,Daa,Faa,Jb,Gaa,Kb,Mb,Pb,Ub,bc,hc,ic,jc,kc,nc,Oaa,oc,qc,pc,Paa,Qaa,Raa,rc,sc,Saa,uc,vc,wc,Taa,Uaa,yc,zc,Waa,Xaa,Zaa,Gc,Hc,bba,Ic,Lc,cba,dba,Oc,Tc,eba,hba,ad,cd,iba,jba,fd,oba,ld,lba,nba,id,hd,sd,td,pba,ud,qba,wd,xd,rba,Ad,Cd,Dd,Fd,vba,wba,Gd,yba,Bba,Kd,Dba,Hba,Nd,Qd,Rd,Jba,Iba,Oba,Pba,Ud,Qba,Sba,Tba,Uba,ae,ce,Yba,fe,
ge,ie,me,oe,re,se,Zba,$ba,aca,bca,ze,Ae,Fe,eca,gca,fca,Le,Ne,hca,Me,ica,ye,Ye,kca,af,Ze,xe,cf,lca,mca,df,ef,nca,pca,rca,mf,nf,of,vca,qf,wca,pf,Aca,jf,tca,Cca,zca,xca,yca,Dca,Bca,rf,zf,Fca,Gca,Hca,Ica,Jca,Kca,Lca,Bf,Mca,Qca,Rca,Wca,Ff,Vca,Sca,Hf,If,Zca,Kf,Lf,Nf,Mf,Pf,ada,bda,Qf,Rf,Sf,Uf,Wf,Xf,Yf,Zf,ag,cda,cg,dda,dg,fda,gda,fg,hda,ida,jda,kda,ig,mda,lg,oda,og,mg,rg,lda,pda,yg,J,zg,Ag,Bg,Cg,Dg,qda,Eg,Fg,Gg,Hg,Ig,Jg,Kg,rda,tda,sda,uda,Og,vda,wda,xda,yda,Pg,zda,Qg,Bda,Ada,Ug,Eda,Gda,ah,Hda,Ida,bh,Kda,
Lda,Nda,gh,Oda,hh,Pda,Qda,jh,Tda,Wda,Xda,Zda,$da,aea,bea,cea,Uda,Vda,eea,fea,gea,hea,th,iea,jea,kea,lea,ph,Yda,dea,nea,pea,tea,vea,wea,yea,xea,zea,Gh,Hh,Ih,Bea,Cea,Jh,Kh,Eea,Ph,Fea,Iea,Qh,Sh,Jea,Th,Uh,Lea,Mea,Yh,Zh,$h,Nea,bi,di,Oea,ei,fi,Rea,Tea,Uea,Wea,Vea,Xea,hi,Yea,mi,ui,vi,wi,cfa,xi,ffa,hfa,ifa,zi,kfa,lfa,mfa,ofa,nfa,pfa,jfa,yi,rfa,Ai,sfa,Bi,Ci,tfa,ufa,Di,Ei,Fi,Gi,Hi,vfa,wfa,xfa,yfa,Ji,zfa,Ii,Bfa,Ki,Cfa,Dfa,Li,Ni,Efa,Ffa,Oi,Gfa,Hfa,Pi,Jfa,Kfa,Mfa,Ri,Si,Ofa,Ti,Ui,Vi,Xi,Pfa,Rfa,Qfa,Sfa,Tfa,Ufa,
Yi,bj,cj,Vfa,Wfa,Yfa,ej,fj,gj,ij,Zfa,jj,kj,lj,mj,nj,fga,aga,qj,ega,rj,dga,pj,oj,tj,gga,vj,uj,hga,iga,Bj,Cj,Ej,lga,Dj,Hj,mga,Ij,jga,pga,qga,rga,Lj,Mj,Oj,sga,Pj,Qj,Rj,Sj,tga,Tj,Uj,Vj,uga,vga,Wj,wga,dj,zga,Aga,Bga,Cga,xga,bk,Dga,ck,dk,fk,gk,hk,ik,jk,kk,ek,lk,mk,Ega,Fga,Gga,Hga,Iga,Jga,Kga,Lga,nk,ok,pk,qk,rk,sk,tk,Mga,uk,vk,wk,Nga,Pga,Qga,yk,Ak,zk,Ck,Dk,Ek,Sga,Tga,Fk,Gk,Hk,Vga,Wga,Zga,Xga,$ga,dha,Ik,cha,aha,Jk,Kk,eha,Lk,fha,Mk,hha,gha,iha,jha,Pk,Qk,kha,lha,mha,Rk,Sk,nha,Tk,oha,pha,qha,uha,Uk,vha,wha,
xha,yha,zha,Yk,Aha,Bha,Cha,fl,el,cl,Dha,Eha,Fha,gl,hl,il,Hha,nl,ol,pl,tl,ul,vl,Jha,Kha,Lha,wl,yl,zl,Dl,El,Hl,Nha,Pha,Oha,Qha,Rha,Nl,Sha,Tha,Ol,Uha,Vha,Wha,Xha,Sl,Ql,Tl,Ul,Vl,Yha,Zha,$ha,Wl,Xl,Yl,aia,bia,cia,Zl,dia,$l,am,eia,fia,gia,hia,iia,jia,kia,cm,dm,em,gm,nia,hm,im,oia,mia,fm,pia,jm,km,lm,nm,mm,qia,ria,sia,om,uia,pm,wia,xia,yia,zia,Aia,Bia,Cia,Dia,sm,tm,um,Fia,Eia,wm,Gia,xm,Hia,ym,Iia,Jia,zm,Am,Bm,Kia,Cm,Dm,Em,Fm,Gm,Hm,Im,Jm,Km,Lia,Mia,Nia,Oia,Lm,Pia,Ria,Qia,Rm,Sm,Tia,Sia,Yia,Xia,Tm,Zia,$ia,aja,
cja,bja,dja,Um,eja,fja,Wm,gja,hja,ija,jja,Xm,kja,Ym,lja,Zm,$m,nja,an,oja,bn,cn,pja,qja,dn,fn,sja,gn,rja,tja,uja,wja,yja,hn,zja,ln,mn,Bja,Cja,Fja,Gja,nn,Hja,on,pn,qn,rn,sn,tn,un,vn,wn,xn,yn,zn,An,Lja,Kja,Mja,Oja,Nja,Qja,Jja,Pja,Ija,Bn,Cn,Sja,Tja,Uja,Gn,Hn,In,Dn,Wja,Jn,Rja,Yja,Zja,$ja,Xja,Kn,Ln,Mn,Nn,aka,Vja,bka,On,cka,dka,eka,fka,gka,jka,Qn,kka,Rn,lka,oka,Un,rka,qka,Tn,Wn,ska,tka,uka,co,vka,wka,eo,xka,po,mo,no,oo,yka,so,ro,zka,uo,Aka,Cka,Eo,Dka,Eka,Jka,Fka,Ho,Io,Oka,Jo,Ko,Lo,Qka,Oo,Rka,Ska,Po,Uka,
Ro,So,To,Vka,Vo,Wo,Xo,Yo,$o,ap,Xka,bp,Yka,dp,ep,fp,gp,hp,ip,Zka,$ka,ala,bla,dla,ela,jp,fla,qp,gla,hla,ila,rp,tp,up,vp,yp,zp,Ap,kla,Dp,Ep,Fp,lla,mla,Gp,nla,ola,Ip,wla,xla,Jp,yla,zla,Dla,Cla,Lp,Mp,Fla,Op,Pp,Qp,Rp,Sp,Tp,Up,Vp,Wp,Xp,Yp,Zp,$p,aq,bq,cq,dq,eq,fq,gq,hq,iq,jq,kq,lq,mq,nq,oq,pq,qq,rq,sq,tq,uq,vq,wq,xq,yq,zq,Aq,Bq,Cq,Dq,Eq,Fq,Gq,Mq,Nq,Oq,Pq,Qq,Rq,Sq,Tq,Uq,Vq,Wq,Xq,Yq,Zq,$q,ar,br,Qla,dr,er,fr,gr,hr,ir,jr,kr,lr,mr,nr,or,pr,qr,rr,sr,tr,ur,vr,wr,xr,yr,zr,Ar,Br,Cr,Dr,Er,Fr,Gr,Hr,Ir,Jr,Kr,Lr,Mr,Nr,
Or,Pr,Qr,Rr,Sr,Tr,Ur,Vr,Wr,Xr,Yr,Zr,$r,as,bs,cs,ds,es,fs,gs,hs,is,js,ks,ls,ms,ns,os,ps,qs,rs,ts,us,vs,ws,xs,ys,zs,As,Bs,Cs,Ds,Es,Fs,Gs,Hs,Is,Js,Ks,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ss,Ts,Us,Vs,Ws,Xs,Ys,Zs,$s,at,bt,ct,dt,et,ft,gt,ht,jt,kt,lt,mt,nt,ot,pt,qt,rt,tt,ut,vt,wt,xt,zt,At,Bt,Ct,Dt,Et,Ft,Gt,Ht,It,Jt,Kt,Lt,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,du,eu,fu,gu,hu,iu,ju,ku,lu,mu,nu,ou,pu,qu,ru,tu,uu,vu,wu,xu,yu,zu,Au,uma,Bu,vma,Cu,xma,Du,Eu,Fu,Gu,Hu,Iu,Ju,Ku,Mu,Lu,Nu,Ou,Pu,Qu,Ru,Su,Tu,Uu,Vu,Wu,Xu,Yu,Zu,$u,av,
bv,cv,dv,ev,fv,gv,hv,iv,jv,kv,Ima,Jma,mv,nv,qv,Kma,rv,Lma,wv,xv,yv,zv,Av,Cv,Dv,Pma,Ev,Fv,Gv,Mma,Hv,Sma,Vma,Iv,Xma,Zma,Nv,$ma,ana,bna,fna,dna,ena,Qv,Ov,Sv,Rv,gna,Uv,Vv,Wv,hna,ina,cw,jna,ew,fw,kna,gw,hw,iw,kw,mw,nw,bw,ow,mna,pw,qw,rw,tw,uw,vw,ww,xw,ona,yw,Bw,Aw,qna,tna,rna,sna,una,vna,Hw,Iw,Jw,wna,xna,Kw,yna,Ana,Cna,Lw,Ow,Mw,Rw,Vw,Xw,Dna,dx,ex,fx,gx,ix,jx,lx,Ina,Jna,nx,Kna,Lna,px,Mna,Nna,qx,rx,Ona,sx,Pna,vx,Rna,Sna,tx,Tna,Una,Wna,Vna,zx,Qna,Yna,Zna,$na,Cx,aoa,boa,Ex,Fx,coa,doa,Ix,eoa,foa,goa,hoa,Mx,
ioa,joa,koa,loa,moa,noa,ooa,poa,Ox,qoa,Qx,soa,toa,uoa,voa,woa,Vx,yoa,zoa,Aoa,Boa,xoa,Coa,Doa,Rx,Sx,Yx,Wx,Xx,Ux,Tx,Eoa,Loa,Foa,Goa,Hoa,Ioa,Joa,Poa,Koa,ay,cy,Roa,Uoa,dy,by,Soa,Toa,ey,fy,hy,Woa,ly,ky,gy,Xoa,zy,Zoa,$oa,apa,bpa,cpa,dpa,epa,Yoa,gpa,hpa,ipa,jpa,kpa,Cy,Dy,Fy,mpa,Gy,npa,opa,Jy,Ky,qpa,ppa,rpa,tpa,Oy,Py,vpa,wpa,zpa,Uy,Vy,Wy,Apa,$y,az,dz,cz,bz,fz,Dpa,Cpa,nz,oz,Fpa,pz,rz,Gpa,tz,uz,Hpa,wz,vz,Ipa,xz,Jpa,Kpa,Bz,Mpa,Npa,zz,Jz,Lpa,Kz,Lz,Spa,Rz,Rpa,Wpa,Xpa,Qpa,Vpa,Upa,yz,Sz,Iz,Pz,Tpa,Uz,bqa,aqa,gqa,
Zz,iqa,Xz,jqa,lqa,oqa,pqa,mqa,$z,cA,dA,rqa,bA,eA,fA,hA,tqa,uqa,vqa,jA,wqa,yqa,kA,zqa,lA,mA,nA,oA,qA,Bqa,Cqa,Dqa,Eqa,Fqa,Gqa,$w,Nqa,Pqa,wA,yA,Sqa,AA,BA,Tqa,Uqa,Wqa,Xqa,EA,Zqa,FA,cra,HA,era,dra,fra,JA,gra,KA,hra,IA,ira,NA,OA,PA,QA,RA,jra,kra,nra,qra,ora,aB,$A,rra,ZA,bB,cB,tra,vra,gB,hB,wra,xra,jB,Bra,yra,Ara,iB,Dra,kB,lB,mB,nB,oB,pB,qB,Era,rB,sB,tB,uB,Jra,Lra,Nra,Ora,wB,Qra,Rra,CB,DB,Sra,Tra,EB,HB,KB,Ura,Vra,LB,Wra,Xra,Yra,Zra,PB,OB,QB,RB,SB,TB,UB,MB,VB,WB,XB,$ra,csa,dsa,esa,YB,ZB,$B,fsa,aC,lsa,bC,
cC,eC,fC,jC,iC,vC,hC,osa,wC,xC,yC,gC,qsa,rsa,ssa,psa,tsa,AC,CC,FC,HC,vsa,IC,JC,zsa,Bsa,Asa,Dsa,QC,LC,Csa,ysa,xsa,wsa,PC,MC,OC,Isa,Jsa,Ksa,$C,aD,Lsa,bD,cD,ZC,Psa,Msa,Nsa,Qsa,dD,Rsa,fD,Ssa,gD,hD,iD,jD,Tsa,Usa,kD,Vsa,lD,Wsa,Xsa,mD,oD,sD,Ysa,tD,uD,vD,wD,xD,yD,zD,Zsa,AD,CD,ata,bta,BD,DD,eta,fta,ED,gta,HD,hta,ID,KD,ita,JD,LD,kta,ND,mta,nta,PD,QD,VD,pta,SD,WD,YD,qta,$D,UD,XD,rta,aE,sta,bE,tta,RD,TD,ota,ZD,cE,uta,vta,dE,wta,eE,xta,fE,gE,iE,yta,hE,jE,zta,Ata,kE,mE,lE,nE,oE,pE,Bta,qE,rE,Cta,sE,Dta,tE,uE,vE,
Eta,wE,Fta,Gta,Hta,yE,xE,Ita,Jta,Kta,Lta,zE,AE,BE,CE,Mta,Nta,Ota,Pta,EE,Qta,FE,GE,Rta,Sta,HE,Tta,Uta,Yta,Zta,Vta,Wta,Xta,IE,KE,JE,LE,ME,$ta,aua,NE,OE,bua,cua,PE,dua,fua,eua,RE,gua,hua,iua,jua,kua,lua,TE,UE,VE,mua,WE,YE,XE,mF,WC,nF,oF,VC,UC,pF,oua,qF,rF,sF,kF,tF,pua,wF,xF,zF,qua,AF,BF,CF,DF,EF,FF,rua,GF,HF,sua,IF,JF,LF,MF,NF,OF,tua,uua,vua,RF,PF,SF,TF,wua,xua,UF,VF,Fsa,NC,Bua,Cua,Dua,Eua,Fua,Gua,KC,WF,ZF,$F,Jua,Kua,Lua,aG,Pua,Mua,Nua,Rua,Sua,cG,Qua,Tua,dG,eG,fG,Uua,Vua,gG,Wua,bG,Xua,hG,XF,Yua,kG,Zua,
$ua,ava,mG,lG,bva,cva,dva,eva,gva,Gsa,Esa,nG,oG,qG,rG,sG,tG,RC,pG,xG,iva,zG,kva,AG,mva,lva,jva,nva,ova,pva,CG,rva,DG,Hsa,EG,sva,uva,SC,vva,wva,xva,yva,Ava,Bva,zva,GG,HG,NG,Dva,QG,SG,Eva,Fva,Gva,TG,UG,VG,YG,ZG,Hva,Jva,Iva,Kva,Lva,Mva,Nva,Ova,Pva,aH,bH,cH,Qva,Rva,dH,Sva,eH,fH,Tva,gH,Uva,iH,Vva,jH,kH,lH,mH,Wva,Xva,Zva,nH,$va,Yva,oH,KH,GH,MH,PH,QH,BG,awa,hza,HH,JH,TH,oza,vH,YH,uH,ZH,FH,bI,cI,dI,eI,fI,gI,qza,rza,hI,sza,tza,uza,vza,iI,wza,Bza,Aza,xza,zza,yza,jI,Cza,kI,Dza,Fza,Jza,pI,qI,Mza,rI,sI,Nza,Pza,
Sza,Tza,Uza,tI,Vza,Xza,Yza,Zza,$za,aAa,cAa,CI,EI,FI,GI,HI,eAa,II,JI,fAa,KI,gAa,LI,MI,NI,OI,PI,QI,hAa,iAa,RI,SI,VI,lAa,mAa,oAa,WI,pAa,cJ,zAa,tAa,uAa,BAa,CAa,dJ,DAa,FAa,EAa,GAa,fJ,iJ,HAa,eJ,jJ,kJ,IAa,MAa,JAa,LAa,xJ,DJ,FJ,nBa,YAa,rJ,GJ,mBa,ZAa,wJ,oBa,IJ,WAa,qBa,pBa,oJ,vJ,wBa,sBa,tBa,uBa,vBa,xBa,JJ,yBa,zBa,LJ,MJ,ABa,OJ,nJ,tJ,eBa,KAa,$Aa,jBa,iBa,RJ,uJ,rBa,YJ,ZJ,$J,aK,MBa,EJ,NBa,cK,OBa,PBa,XAa,eK,FBa,sJ,QBa,PAa,qJ,OAa,Oza,hK,iK,SBa,jK,kK,lK,nK,mK,oK,TBa,UBa,pK,rK,VBa,WBa,sK,tK,uK,vK,XBa,YBa,wK,ZBa,xK,yK,
zK,AK,BK,CK,$Ba,FK,aCa,GK,IK,dCa,HK,eCa,bCa,cCa,fCa,gCa,hCa,JK,KK,LK,jCa,MK,NK,lCa,SK,QK,oCa,nCa,pCa,VK,mCa,WK,RK,XK,UK,TK,PK,OK,ZK,$K,bL,dL,sCa,tCa,rCa,eL,fL,gL,hL,iL,uCa,jL,kL,vCa,lL,mL,nL,yCa,wCa,rL,zCa,ACa,sL,BCa,vL,wL,CCa,HCa,xL,ICa,yL,zL,JCa,AL,KCa,LCa,MCa,NCa,OCa,BL,CL,QCa,PCa,SCa,RCa,DL,EL,VCa,WCa,XCa,YCa,FL,ZCa,GL,$Ca,HL,JL,KL,LL,ML,QL,SL,TL,aDa,bDa,UL,cDa,dDa,VL,eDa,XL,fDa,gDa,hDa,cM,dM,lDa,mDa,fM,eM,nDa,jDa,kDa,oDa,gM,pDa,iM,hM,kM,lM,nM,oM,qDa,rDa,sDa,tDa,pM,rM,xDa,ADa,uDa,sM,JDa,tM,uM,
LDa,KDa,NDa,ODa,QDa,PDa,RDa,SDa,TDa,UDa,zM,AM,VDa,WDa,XDa,YDa,ZDa,$Da,HM,bEa,cEa,FM,GM,aEa,fEa,gEa,IM,jEa,hEa,lEa,kEa,mEa,JM,qCa,nEa,kCa,oEa,pEa,qEa,KM,wEa,sEa,tEa,uEa,xEa,LM,AEa,yEa,BEa,CEa,zEa,vEa,DEa,WL,FEa,GEa,EEa,MM,NM,HEa,IEa,OM,QM,KEa,RM,UM,VM,LEa,MEa,NEa,WM,PEa,QEa,REa,SEa,TEa,UEa,VEa,aN,WEa,bN,dN,XEa,YEa,ZEa,eN,$Ea,aFa,bFa,iN,jN,kN,cFa,lN,dFa,nN,fFa,eFa,oN,pN,qN,rN,gFa,sN,tN,hFa,uN,vN,lFa,iFa,kFa,jFa,wN,xN,yN,mFa,nFa,oFa,zN,qFa,tFa,sFa,AN,BN,CN,DN,EN,GN,HN,IN,JN,KN,LN,MN,vFa,uFa,ON,wFa,PN,
QN,RN,SN,TN,WN,XN,YN,ZN,$N,aO,bO,cO,yFa,AFa,zFa,dO,CFa,DFa,GFa,HFa,iO,JFa,kO,lO,mO,LFa,oO,QFa,OFa,NFa,MFa,SFa,pO,qO,rO,sO,tO,uO,vO,yO,VFa,XFa,AO,BO,CO,X,ZFa,DO,cGa,gGa,hGa,iGa,oGa,qGa,uGa,vGa,MGa,NGa,OGa,wGa,yGa,wHa,XGa,xHa,YGa,OO,zHa,BHa,DHa,CHa,AHa,$Ga,eHa,fHa,hHa,iHa,MHa,kHa,nHa,sHa,THa,QHa,RHa,VHa,XHa,WHa,YHa,ZHa,WO,$Ha,TO,dIa,XO,jIa,kIa,oIa,RIa,QIa,$O,VIa,Zw,XIa,WIa,aP,ZIa,YIa,$Ia,cP,dP,fP,bJa,cJa,dJa,aJa,hJa,gJa,oJa,qJa,rJa,sJa,nP,oP,uJa,FP,vJa,LP,MP,KP,rEa,wJa,xJa,yJa,RP,AJa,SP,BJa,CJa,DJa,
EJa,UP,FJa,VP,IJa,JJa,LJa,MJa,fQ,gQ,jQ,kQ,lQ,mQ,nQ,NJa,OJa,oQ,qQ,rQ,PJa,sQ,QJa,tQ,RJa,uQ,vQ,SJa,VJa,WJa,YJa,wQ,ZJa,$Ja,aKa,yQ,cKa,xQ,bKa,zQ,dKa,eKa,fKa,AQ,BQ,CQ,gKa,hKa,DQ,iKa,EQ,FQ,jKa,kKa,HQ,IQ,nKa,lKa,oKa,pKa,qKa,rKa,sKa,vKa,uKa,wKa,TQ,BKa,WQ,DKa,XQ,zKa,AKa,VQ,xKa,CKa,YQ,ZQ,$Q,ZP,PP,bR,dR,FKa,EKa,HKa,eR,hR,IKa,gR,JKa,KKa,LKa,nR,oR,pR,tR,NKa,OKa,uR,vR,PKa,QKa,RKa,SKa,wR,UKa,TKa,VKa,xR,yR,WKa,YKa,ZKa,BR,zR,$Ka,aLa,XKa,CR,DR,GR,bLa,cLa,FR,IR,HR,KR,MR,dLa,QR,fLa,gLa,eLa,jLa,hLa,PR,kLa,RR,lLa,mLa,UR,
VR,WR,YR,$R,nLa,oLa,pLa,bS,rLa,qLa,sLa,tLa,uLa,vLa,hS,iS,jS,wLa,kS,lS,zLa,nS,mS,ALa,BLa,CLa,oS,pS,DLa,ELa,FLa,GLa,qS,tS,ILa,HLa,uS,vS,wS,JLa,xS,yS,zS,AS,KLa,CS,DS,MLa,BS,ES,NLa,PLa,OLa,JS,HS,IS,QLa,RLa,SLa,KS,LS,MS,PS,NS,TLa,QS,RS,SS,ULa,VLa,WLa,VS,WS,XLa,YS,ZS,aT,YLa,bT,cT,dT,eT,ZLa,bMa,fT,$La,aMa,fMa,gMa,hT,hMa,iMa,jMa,kMa,jT,lT,mT,mMa,nT,oMa,nMa,lMa,oT,qMa,pMa,rMa,pT,qT,rT,sMa,sT,tT,tMa,wT,uMa,vMa,zT,yMa,xT,wMa,DMa,CT,EMa,GMa,HT,HMa,IMa,ET,BT,LT,KT,DT,MT,LMa,MMa,NT,GT,AT,KMa,JT,FMa,JMa,NMa,IT,
uT,PT,OMa,PMa,FT,QT,RT,ST,TT,UT,VT,WT,XT,ZT,$T,aU,RMa,dU,eU,fU,gU,hU,iU,TMa,jU,SMa,kU,lU,mU,nU,pU,oU,qU,rU,UMa,sU,VMa,XMa,WMa,tU,uU,YMa,vU,wU,ZMa,xU,yU,zU,$Ma,AU,aNa,BU,DU,GU,FU,JU,IU,bNa,HU,LU,dNa,eNa,MU,NU,OU,fNa,QU,gNa,NR,cNa,kNa,fS,hNa,SU,jNa,gS,iNa,lNa,UU,nNa,mNa,oNa,pNa,qNa,WU,rNa,YU,sNa,tNa,ZU,vNa,$U,xNa,aV,wNa,cV,zNa,yNa,bV,dV,eV,fV,ANa,BNa,CNa,DNa,iV,INa,LNa,JNa,FNa,kV,ENa,KNa,nV,NNa,MNa,oV,PNa,RNa,SNa,QNa,tV,TNa,UNa,VNa,$Na,AV,aOa,BV,DV,EV,FV,bOa,uV,GV,IV,cOa,eOa,JV,fOa,KV,LV,gOa,MV,YNa,
yV,hOa,iOa,jOa,kOa,lOa,vV,XNa,zV,wV,NV,qOa,PV,rOa,sOa,oOa,RV,tOa,SV,mOa,UV,pOa,uOa,TV,QV,vOa,VV,wOa,OV,yOa,YV,WV,ZV,XV,AOa,BOa,zOa,aW,DOa,bW,cW,EOa,dW,eW,fW,gW,FOa,hW,jW,HOa,IOa,JOa,mW,lW,kW,KOa,LOa,MOa,NOa,pW,qW,rW,sW,OOa,uW,POa,tW,vW,wW,QOa,SOa,WOa,TOa,UOa,VOa,XOa,YOa,CW,DW,ZOa,$Oa,aPa,EW,FW,GW,bPa,gPa,iPa,LW,MW,NW,OW,fPa,jPa,IW,cPa,kPa,HW,JW,dPa,ePa,KW,lPa,mPa,hPa,nPa,oPa,pPa,qPa,sAa,yAa,QW,rPa,RW,uPa,sPa,tPa,SW,vPa,TW,UW,VW,WW,wPa,xPa,yPa,XW,APa,BPa,ZW,CPa,$W,aX,DPa,FPa,GPa,cX,NPa,JPa,EPa,PPa,
KPa,LPa,IPa,MPa,dX,HPa,OPa,VPa,TPa,SPa,RPa,QPa,fX,WPa,gX,XPa,hX,iX,YPa,xW,aQa,lX,mX,bQa,dQa,cQa,eQa,fQa,BW,gQa,zW,AW,kQa,oX,pX,lQa,rX,nX,nQa,iQa,hQa,jQa,sX,oQa,pQa,mQa,yW,qX,qQa,rQa,sQa,tQa,uQa,vQa,tX,zQa,AQa,DQa,CQa,uX,BQa,HQa,EQa,vX,IQa,xQa,JQa,FQa,yQa,GQa,KQa,wX,LQa,NQa,MQa,PQa,OQa,QQa,RQa,xX,SQa,zX,TQa,yX,UQa,WQa,XQa,VQa,ZQa,YQa,bRa,$Qa,aRa,dRa,cRa,eRa,fRa,gRa,BX,hRa,iRa,jRa,kRa,lRa,CX,qRa,mRa,rRa,sRa,tRa,pRa,vRa,xRa,DX,EX,yRa,ARa,DRa,IRa,FRa,HRa,MRa,GX,NRa,ORa,PRa,HX,jX,QRa,$Pa,IX,SRa,JX,kX,
ZPa,TRa,URa,VRa,WRa,XRa,RRa,YRa,aSa,bSa,dSa,gSa,hSa,cSa,iSa,KX,eSa,fSa,jSa,kSa,mSa,tSa,sSa,QX,uSa,rSa,xSa,ySa,zSa,ASa,BSa,CSa,DSa,SX,LX,ESa,FSa,lSa,RX,HSa,ISa,UX,JSa,TX,LSa,MSa,KSa,NSa,OSa,PSa,QSa,TSa,SSa,RSa,VX,USa,WSa,XX,YX,XSa,ZSa,$Sa,aTa,cTa,uRa,wRa,$X,YSa,dTa,gTa,iTa,UPa,eTa,fTa,hTa,bX,nRa,jTa,kTa,lTa,mTa,VSa,nTa,aY,cY,dY,oTa,eY,pTa,qTa,rTa,sTa,tTa,vTa,uTa,xTa,yTa,BTa,zTa,ATa,CTa,gY,GTa,ETa,FTa,ITa,JTa,KTa,LTa,fY,MTa,DTa,hY,NTa,OTa,iY,QTa,RTa,STa,PTa,jY,VTa,UTa,YTa,XTa,WTa,ZTa,$Ta,kY,aUa,mY,
eUa,bUa,cUa,dUa,fUa,hUa,gUa,iUa,jUa,kUa,mUa,oUa,nUa,pUa,lUa,qUa,sUa,uUa,vUa,rUa,wUa,xUa,zUa,yUa,AUa,tUa,oY,BUa,CUa,EUa,GUa,HUa,IUa,LUa,KUa,MUa,NUa,OUa,QUa,PUa,TUa,rY,UUa,RUa,SUa,VUa,uY,XUa,WUa,YUa,ZUa,$Ua,bVa,aVa,eVa,vY,fVa,wY,hVa,yY,AY,iVa,xY,jVa,BY,lVa,gVa,mVa,nVa,zY,oVa,pVa,qVa,kVa,JUa,tY,sVa,tVa,uVa,vVa,wVa,xVa,yVa,AVa,BVa,CVa,zVa,DVa,EVa,DY,FVa,GVa,EY,FY,HVa,IVa,JVa,GY,MVa,IY,NVa,OVa,HY,LVa,KVa,LY,KY,MY,JY,PVa,TVa,VVa,XVa,YVa,RVa,WVa,ZVa,SVa,$Va,aWa,cWa,NY,dWa,bWa,OY,eWa,UVa,fWa,QVa,PY,lWa,iWa,
mWa,jWa,hWa,nWa,gWa,qWa,QY,rWa,tWa,UY,vWa,yWa,YK,WY,zWa,WNa,BWa,XY,nY,CWa,EWa,AWa,rV,wWa,FWa,GWa,bTa,ZX,cZ,GSa,xWa,aZ,RY,JWa,KWa,MWa,LWa,DWa,ZY,OWa,dZ,PWa,lV,QWa,lY,ONa,RWa,HV,YY,SWa,UWa,TWa,HNa,VWa,XWa,IWa,uWa,ZWa,YWa,$Y,SY,$Wa,fZ,mV,aXa,bXa,CV,cXa,dXa,eXa,fXa,GNa,eZ,NWa,gXa,qXa,kXa,jXa,sXa,tXa,iXa,iZ,sV,wXa,uXa,yXa,lZ,mZ,zXa,AXa,BXa,pXa,rZ,DXa,qZ,hZ,FXa,GXa,lXa,uZ,HXa,oXa,oZ,CXa,nZ,NXa,kZ,OXa,wZ,EXa,xZ,yZ,PXa,pZ,xXa,JXa,IXa,QXa,RXa,SXa,TXa,TP,UXa,sZ,VXa,XXa,jZ,zZ,YXa,vXa,ZXa,$Xa,nXa,vZ,tZ,aYa,mXa,
bYa,AZ,BZ,GOa,cYa,CZ,fB,DZ,EZ,eYa,gYa,hYa,FZ,iYa,HZ,jYa,kYa,IZ,GZ,lYa,JZ,KZ,LZ,mYa,MZ,NZ,OZ,PZ,QZ,RZ,oYa,nYa,SZ,TZ,pYa,UZ,VZ,qYa,rYa,sYa,WZ,XZ,YZ,ZZ,$Z,a_,b_,c_,tYa,d_,e_,f_,uYa,vYa,wYa,xYa,yYa,zYa,g_,h_,AYa,BYa,i_,j_,k_,CYa,l_,m_,DYa,n_,o_,p_,q_,r_,EYa,FYa,s_,t_,GYa,HYa,u_,v_,w_,IYa,JYa,x_,KYa,LYa,y_,MYa,NYa,OYa,ECa,FCa,GCa,xCa,PYa,TYa,UYa,VYa,uL,H_,oL,QYa,I_,YYa,ZYa,$Ya,aZa,RYa,cZa,A_,dZa,eZa,J_,E_,fZa,K_,C_,gZa,B_,bZa,L_,jZa,iZa,F_,G_,N_,M_,kZa,O_,mZa,lZa,nZa,Y,P_,Q_,R_,oZa,pZa,qZa,sZa,tZa,vZa,
zZa,T_,AZa,wZa,BZa,U_,DZa,EZa,CZa,GZa,HZa,KZa,NZa,LZa,RZa,$Za,ZZa,SZa,a_a,UZa,VZa,TZa,d_a,f_a,k_a,n_a,o_a,q_a,r_a,t_a,u_a,x_a,w_a,B_a,y_a,d0,e0,I_a,H_a,O_a,K_a,J_a,R_a,V_a,W_a,X_a,Y_a,j0,ura,a0a,Z_a,l0,eB,n0,o0,sra,p0,c0a,d0a,g0,b0,Y_,WZa,e0a,f0a,a0,S_,g0a,QZa,h0a,q0,i0a,Z_,$_,j_a,j0a,k0a,r0,G_a,f0,l0a,k0,i_a,h_a,JZa,l_a,p_a,s_a,C_a,S_a,m0a,b_a,XZa,n0a,s0,t0,o0a,u0,p0a,v0,w0,x0,y0,z0,A0,B0,rZa,r0a,q0a,IZa,m_a,s0a,U_a,D_a,F_a,v_a,g_a,PZa,MZa,yZa,xZa,uZa,c_a,YZa,L_a,z_a,A_a,M_a,N_a,e_a,v0a,t0a,C0,u0a,
D0,tL,D_,WYa,z_,m0,x0a,E0,F0,G0,H0,z0a,y0a,A0a,I0,J0,w0a,i0,K0,B0a,$_a,SYa,C0a,D0a,E0a,E_a,P_a,Q_a,L0,F0a,G0a,N0,O0,I0a,Q0,J0a,K0a,H0a,P0,L0a,M0a,N0a,R0,Q0a,P0a,S0,R0a,S0a,M0,T0a,U0a,V0a,T0,U0,W0a,V0,W0,X0a,Y0a,Z0a,$0a,a1a,b1a,c1a,d1a,e1a,f1a,X0,Y0,g1a,Z0,$0,a1,b1,c1,d1,e1,f1,i1a,g1,h1a,j1a,k1a,h1,l1a,m1a,i1,j1,k1,n1a,o1a,p1a,l1,q1a,m1,r1a,n1,s1a,o1,t1a,p1,u1a,w1a,q1,z1a,v1a,x1a,y1a,B1a,r1,C1a,D1a,E1a,t1,s1,v1,u1,w1,F1a,G1a,I1a,H1a,x1,J1a,K1a,M1a,L1a,y1,z1,b0a,N1a,A1,O1a,B1,Q1a,R1a,P1a,S1a,C1,T1a,
U1a,V1a,D1,E1,F1,W1a,G1,H1,I1,X1a,Y1a,J1,Z1a,$1a,K1,A1a,L1,M1,N1,DCa,O1,a2a,P1,b2a,Q1,R1,d2a,c2a,S1,T1,U1,e2a,f2a,g2a,V1,h2a,i2a,j2a,l2a,k2a,m2a,n2a,p2a,o2a,q2a,r2a,s2a,t2a,u2a,v2a,w2a,x2a,y2a,z2a,A2a,B2a,C2a,D2a,E2a,F2a,G2a,W1,X1,Y1,H2a,I2a,J2a,K2a,L2a,M2a,N2a,O2a,P2a,Q2a,R2a,S2a,T2a,U2a,V2a,Z1,W2a,X2a,$1,a2,Z2a,$2a,b2,a3a,c2,b3a,d2,c3a,e2,d3a,e3a,f3a,f2,g3a,h3a,i3a,j3a,k3a,l3a,h2,m3a,n3a,o3a,p3a,q3a,s3a,i2,r3a,t3a,u3a,v3a,w3a,A3a,x3a,y3a,z3a,C3a,E3a,F3a,G3a,D3a,j2,H3a,I3a,J3a,K3a,L3a,l2,M3a,m2,
n2,o2,N3a,P3a,Q3a,R3a,S3a,U3a,T3a,V3a,p2,q2,Y3a,W3a,X3a,r2,Z3a,$3a,s2,a4a,b4a,c4a,d4a,e4a,f4a,g4a,dB,h4a,i4a,m4a,o4a,aaa,fa,ii,Ma,oaa;aa=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.ca=function(a,b){return aaa[a]=b};
baa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
caa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ia=function(a,b){if(b)a:{var c=g.da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&fa(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
eaa=function(a){return a.raw=a};
g.t=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:baa(a)}};
faa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.u=function(a){return a instanceof Array?a:faa(g.t(a))};
ka=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.v=function(a,b){a.prototype=gaa(b.prototype);a.prototype.constructor=a;if(la)la(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.vf=b.prototype};
ma=function(){this.J=!1;this.C=null;this.u=void 0;this.j=1;this.D=this.I=0;this.Z=this.B=null};
na=function(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0};
oa=function(a,b){a.B={zR:b,RS:!0};a.j=a.I||a.D};
g.y=function(a,b,c){a.j=c;return{value:b}};
g.pa=function(a){a.j=0};
g.qa=function(a,b,c){a.I=b;void 0!=c&&(a.D=c)};
g.ra=function(a,b){a.j=b;a.I=0};
g.ua=function(a){a.I=0;var b=a.B.zR;a.B=null;return b};
g.haa=function(a){a.Z=[a.B];a.I=0;a.D=0};
g.iaa=function(a,b){var c=a.Z.splice(0)[0];(c=a.B=a.B||c)?c.RS?a.j=a.I||a.D:void 0!=c.Ia&&a.D<c.Ia?(a.j=c.Ia,a.B=null):a.j=a.D:a.j=b};
jaa=function(a){this.j=new ma;this.u=a};
kaa=function(a,b){na(a.j);var c=a.j.C;if(c)return va(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return wa(a)};
va=function(a,b,c,d){try{var e=b.call(a.j.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.J=!1,e;var f=e.value}catch(h){return a.j.C=null,oa(a.j,h),wa(a)}a.j.C=null;d.call(a.j,f);return wa(a)};
wa=function(a){for(;a.j.j;)try{var b=a.u(a.j);if(b)return a.j.J=!1,{value:b.value,done:!1}}catch(c){a.j.u=void 0,oa(a.j,c)}a.j.J=!1;if(a.j.B){b=a.j.B;a.j.B=null;if(b.RS)throw b.zR;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
laa=function(a){this.next=function(b){na(a.j);a.j.C?b=va(a,a.j.C.next,b,a.j.T):(a.j.T(b),b=wa(a));return b};
this.throw=function(b){na(a.j);a.j.C?b=va(a,a.j.C["throw"],b,a.j.T):(oa(a.j,b),b=wa(a));return b};
this.return=function(b){return kaa(a,b)};
this[Symbol.iterator]=function(){return this}};
maa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
g.A=function(a){return maa(new laa(new jaa(a)))};
g.ya=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
za=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
naa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,BW:f}}return{i:-1,BW:void 0}};
Aa=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Ba=function(a){return a?a:Array.prototype.fill};
Ca=function(a){return a?a:Array.prototype.copyWithin};
g.Da=function(a,b,c){a=a.split(".");c=c||g.D;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
g.Fa=function(a,b){a=a.split(".");b=b||g.D;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
Ga=function(a){a.Dg=void 0;a.getInstance=function(){return a.Dg?a.Dg:a.Dg=new a}};
Ia=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Ka=function(a){var b=Ia(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.La=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Na=function(a){return Object.prototype.hasOwnProperty.call(a,Ma)&&a[Ma]||(a[Ma]=++oaa)};
paa=function(a,b,c){return a.call.apply(a.bind,arguments)};
qaa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.Oa=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.Oa=paa:g.Oa=qaa;return g.Oa.apply(null,arguments)};
g.Qa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Ra=function(){return Date.now()};
g.Sa=function(a,b){function c(){}
c.prototype=b.prototype;a.vf=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.hj=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
Ta=function(a){return a};
raa=function(a){this.VQ=a};
Wa=function(a,b,c){this.u=a;this.C=b;this.j=c||[];this.Tw=new Map};
Xa=function(a,b){Wa.call(this,a,3,b)};
Ya=function(a,b){Wa.call(this,a,2,b)};
Za=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Za);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
$a=function(a,b){var c=Za.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<b.length?b[f]:"%s");c.call(Za,this,d+a[e])};
saa=function(){};
g.ab=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.bb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ka(d)?g.bb.apply(null,d):g.ab(d)}};
g.E=function(){this.aq=this.aq;this.Ul=this.Ul};
g.H=function(a,b){g.cb(a,g.Qa(g.ab,b))};
g.cb=function(a,b){a.aq?b():(a.Ul||(a.Ul=[]),a.Ul.push(b))};
g.eb=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
g.fb=function(a){return a[a.length-1]};
taa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.ib=function(a,b,c){b=gb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
gb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.jb=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.nb=function(a,b){return 0<=uaa(a,b)};
g.ob=function(a){return 0==a.length};
vaa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.qb=function(a,b){b=uaa(a,b);var c;(c=0<=b)&&g.pb(a,b);return c};
g.pb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.sb=function(a,b){b=gb(a,b);0<=b&&g.pb(a,b)};
waa=function(a,b){var c=0;taa(a,function(d,e){b.call(void 0,d,e,a)&&g.pb(a,e)&&c++})};
g.tb=function(a){return Array.prototype.concat.apply([],arguments)};
g.ub=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
g.wb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Ka(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.yb=function(a,b,c,d){Array.prototype.splice.apply(a,xb(arguments,1))};
xb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
xaa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.La(e)?"o"+g.Na(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.Ab=function(a,b,c){return yaa(a,c||zb,!1,b)};
Bb=function(a,b){return yaa(a,b,!0)};
yaa=function(a,b,c,d){for(var e=0,f=a.length,h;e<f;){var l=e+(f-e>>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0<m?e=l+1:(f=l,h=!m)}return h?e:-e-1};
g.Cb=function(a,b){a.sort(b||zb)};
zaa=function(a,b){var c=zb;g.Cb(a,function(d,e){return c(b(d),b(e))})};
g.Db=function(a,b){if(!g.Ka(a)||!g.Ka(b)||a.length!=b.length)return!1;for(var c=a.length,d=Aaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
zb=function(a,b){return a>b?1:a<b?-1:0};
Aaa=function(a,b){return a===b};
g.Eb=function(a,b,c){c=g.Ab(a,b,c);0>c&&g.yb(a,-(c+1),0,b)};
g.Gb=function(a,b,c){var d={};(0,g.Fb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Baa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
Caa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
Eaa=function(a){var b=g.Fa("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.D.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Daa(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,Hb[c])c=Hb[c];else{c=String(c);if(!Hb[c]){var f=/function\s+([^\(]+)/m.exec(c);Hb[c]=f?f[1]:"[Anonymous]"}c=Hb[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=
b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}};
Daa=function(a,b){b||(b={});b[Faa(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Faa(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Daa(a,b));return c};
Faa=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Jb=function(a,b){return 0==a.lastIndexOf(b,0)};
Gaa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
Kb=function(a,b){var c=String(b).toLowerCase();a=String(a.slice(0,b.length)).toLowerCase();return 0==(c<a?-1:c==a?0:1)};
g.Lb=function(a){return/^[\s\xa0]*$/.test(a)};
Mb=function(a){if(!Haa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Iaa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Jaa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Kaa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Laa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Maa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Naa,"&#0;"));return a};
g.Ob=function(a,b){return-1!=a.indexOf(b)};
Pb=function(a,b){return g.Ob(a.toLowerCase(),b.toLowerCase())};
g.Vb=function(a,b){var c=0;a=Tb(String(a)).split(".");b=Tb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=Ub(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||Ub(0==f[2].length,0==h[2].length)||Ub(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
Ub=function(a,b){return a<b?-1:a>b?1:0};
g.Wb=function(){var a=g.D.navigator;return a&&(a=a.userAgent)?a:""};
bc=function(a){return Xb?ac?ac.brands.some(function(b){return(b=b.brand)&&g.Ob(b,a)}):!1:!1};
hc=function(a){return g.Ob(g.Wb(),a)};
ic=function(){return Xb?!!ac&&0<ac.brands.length:!1};
jc=function(){return ic()?!1:hc("Opera")};
kc=function(){return ic()?!1:hc("Trident")||hc("MSIE")};
nc=function(){return ic()?!1:hc("Edge")};
Oaa=function(){return ic()?bc("Microsoft Edge"):hc("Edg/")};
oc=function(){return hc("Firefox")||hc("FxiOS")};
qc=function(){return hc("Safari")&&!(pc()||(ic()?0:hc("Coast"))||jc()||nc()||Oaa()||(ic()?bc("Opera"):hc("OPR"))||oc()||hc("Silk")||hc("Android"))};
pc=function(){return ic()?bc("Chromium"):(hc("Chrome")||hc("CriOS"))&&!nc()||hc("Silk")};
Paa=function(){return hc("Android")&&!(pc()||oc()||jc()||hc("Silk"))};
Qaa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});
return function(c){return b[c.find(function(d){return d in b})]||""}};
Raa=function(a){var b=g.Wb();if("Internet Explorer"===a){if(kc())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);
b=Qaa(c);switch(a){case "Opera":if(jc())return b(["Version","Opera"]);if(ic()?bc("Opera"):hc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(nc())return b(["Edge"]);if(Oaa())return b(["Edg"]);break;case "Chromium":if(pc())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&oc()||"Safari"===a&&qc()||"Android Browser"===a&&Paa()||"Silk"===a&&hc("Silk")?(b=c[2])&&b[1]||"":""};
rc=function(a){if(ic()&&"Silk"!==a){var b=ac.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Raa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
sc=function(){return Xb?!!ac&&!!ac.platform:!1};
Saa=function(){return sc()?"Android"===ac.platform:hc("Android")};
uc=function(){return hc("iPhone")&&!hc("iPod")&&!hc("iPad")};
vc=function(){return uc()||hc("iPad")||hc("iPod")};
wc=function(){return sc()?"macOS"===ac.platform:hc("Macintosh")};
Taa=function(){return sc()?"Windows"===ac.platform:hc("Windows")};
Uaa=function(){var a=g.Wb(),b="";if(Taa())b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0";else if(vc())b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".");else if(wc())b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10";else if(Pb(g.Wb(),"KaiOS"))b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1];else if(Saa())b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1];else if(sc()?"Chrome OS"===ac.platform:hc("CrOS"))b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
b=(a=b.exec(a))&&a[1];return b||""};
yc=function(a){yc[" "](a);return a};
zc=function(a,b){try{return yc(a[b]),!0}catch(c){}return!1};
Waa=function(a,b){var c=Vaa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
Xaa=function(){var a=g.D.document;return a?a.documentMode:void 0};
g.Bc=function(a){return Waa(a,function(){return 0<=g.Vb(Ac,a)})};
g.Cc=function(a){return Number(Yaa)>=a};
Zaa=function(a){return g.Fc?"webkit"+a:a.toLowerCase()};
Gc=function(a,b){g.eb.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.j=null;a&&this.init(a,b)};
Hc=function(a){return!(!a||!a[$aa])};
bba=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.md=e;this.key=++aba;this.removed=this.LD=!1};
Ic=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.md=null};
g.Jc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Kc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Lc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Mc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
cba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.Nc=function(a){for(var b in a)return b};
dba=function(a){for(var b in a)return a[b]};
Oc=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Pc=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Rc=function(a,b){return null!==a&&b in a};
g.Sc=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Tc=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
eba=function(a,b){return(b=Tc(a,b))&&a[b]};
g.Uc=function(a){for(var b in a)return!1;return!0};
g.fba=function(a){for(var b in a)delete a[b]};
g.Vc=function(a,b){b in a&&delete a[b]};
g.Wc=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.Xc=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
g.Yc=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Zc=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.Zc(a[c]);return b};
g.$c=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<gba.length;f++)c=gba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
hba=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
ad=function(a){this.src=a;this.listeners={};this.j=0};
g.bd=function(a,b){var c=b.type;c in a.listeners&&g.qb(a.listeners[c],b)&&(Ic(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
cd=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.md==d)return e}return-1};
g.gd=function(a,b,c,d,e){if(d&&d.once)return fd(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.gd(a,b[f],c,d,e);return null}c=hd(c);return Hc(a)?a.Qa(b,c,g.La(d)?!!d.capture:!!d,e):iba(a,b,c,!1,d,e)};
iba=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.La(e)?!!e.capture:!!e,l=id(a);l||(a[kd]=l=new ad(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=jba();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)kba||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(lba(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");mba++;return c};
jba=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=nba;return a};
fd=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)fd(a,b[f],c,d,e);return null}c=hd(c);return Hc(a)?a.qF(b,c,g.La(d)?!!d.capture:!!d,e):iba(a,b,c,!0,d,e)};
oba=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)oba(a,b[f],c,d,e);else d=g.La(d)?!!d.capture:!!d,c=hd(c),Hc(a)?a.Dc(b,c,d,e):a&&(a=id(a))&&(b=a.KA(b,c,d,e))&&ld(b)};
ld=function(a){if("number"!==typeof a&&a&&!a.removed){var b=a.src;if(Hc(b))g.bd(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(lba(c),d):b.addListener&&b.removeListener&&b.removeListener(d);mba--;(c=id(b))?(g.bd(c,a),0==c.j&&(c.src=null,b[kd]=null)):Ic(a)}}};
lba=function(a){return a in md?md[a]:md[a]="on"+a};
nba=function(a,b){if(a.removed)a=!0;else{b=new Gc(b,this);var c=a.listener,d=a.md||a.src;a.LD&&ld(a);a=c.call(d,b)}return a};
id=function(a){a=a[kd];return a instanceof ad?a:null};
hd=function(a){if("function"===typeof a)return a;a[nd]||(a[nd]=function(b){return a.handleEvent(b)});
return a[nd]};
g.rd=function(){g.E.call(this);this.B=new ad(this);this.Fb=this;this.Ma=null};
sd=function(a,b,c,d){b=a.B.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.removed&&h.capture==c){var l=h.listener,m=h.md||h.src;h.LD&&g.bd(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
td=function(a,b){this.B=a;this.C=b;this.u=0;this.j=null};
pba=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.j,a.j=b)};
ud=function(a){return function(){return a}};
g.vd=function(){};
qba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
wd=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
xd=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
rba=function(a,b){var c=0;return function(d){g.D.clearTimeout(c);var e=arguments;c=g.D.setTimeout(function(){a.apply(b,e)},50)}};
Ad=function(){if(void 0===yd){var a=null,b=g.D.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Ta,createScript:Ta,createScriptURL:Ta})}catch(c){g.D.console&&g.D.console.error(c.message)}yd=a}else yd=a}return yd};
Cd=function(a,b){this.j=a===sba&&b||"";this.u=tba};
Dd=function(a){return a instanceof Cd&&a.constructor===Cd&&a.u===tba?a.j:"type_error:Const"};
g.Ed=function(a){return new Cd(sba,a)};
Fd=function(a,b){this.j=b===uba?a:"";this.po=!0};
vba=function(a){return a instanceof Fd&&a.constructor===Fd?a.j:"type_error:SafeScript"};
wba=function(a){var b=Ad();a=b?b.createScript(a):a;return new Fd(a,uba)};
Gd=function(a,b){this.j=b===xba?a:""};
yba=function(a){return a instanceof Gd&&a.constructor===Gd?a.j:"type_error:TrustedResourceUrl"};
Bba=function(a,b){var c=Dd(a);if(!zba.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Aba,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof Cd?Dd(d):encodeURIComponent(String(d))});
return g.Jd(a)};
g.Jd=function(a){var b=Ad();a=b?b.createScriptURL(a):a;return new Gd(a,xba)};
Kd=function(a,b){this.j=b===Cba?a:""};
g.Ld=function(a){return a instanceof Kd&&a.constructor===Kd?a.j:"type_error:SafeUrl"};
Dba=function(a){var b=a.indexOf("#");0<b&&(a=a.substring(0,b));b=a.match(/[?&]body=/gi);if(!b)return!0;if(1<b.length)return!1;a=a.match(/[?&]body=([^&]*)/)[1];if(!a)return!0;try{decodeURIComponent(a)}catch(c){return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(a)};
g.Od=function(a){a instanceof Kd||(a="object"==typeof a&&a.po?a.jl():String(a),Eba.test(a)?a=Nd(a):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(Fba)?Nd(a):null));return a||Gba};
Hba=function(a){if(a instanceof Kd)return a;a="object"==typeof a&&a.po?a.jl():String(a);Eba.test(a)||(a="about:invalid#zClosurez");return Nd(a)};
Nd=function(a){return new Kd(a,Cba)};
Qd=function(a,b){this.j=b===Pd?a:"";this.po=!0};
Rd=function(a){return a instanceof Qd&&a.constructor===Qd?a.j:"type_error:SafeStyle"};
Jba=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?d.map(Iba).join(" "):Iba(d),b+=c+":"+d+";")}return b?new Qd(b,Pd):Sd};
Iba=function(a){if(a instanceof Kd)return'url("'+g.Ld(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof Cd)a=Dd(a);else{a=String(a);var b=a.replace(Kba,"$1").replace(Kba,"$1").replace(Lba,"url");if(Mba.test(b)){if(b=!Nba.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&Oba(a)}a=b?Pba(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new $a("Value does not allow [{;}], got: %s.",[a]);return a};
Oba=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Pba=function(a){return a.replace(Lba,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Od(d).jl();return c+f+b+f+e})};
Ud=function(a,b){this.j=b===Td?a:"";this.po=!0};
g.Vd=function(a){return a instanceof Ud&&a.constructor===Ud?a.j:"type_error:SafeHtml"};
Qba=function(a){return a instanceof Ud?a:g.Wd(Mb("object"==typeof a&&a.po?a.jl():String(a)))};
Sba=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=Qba(e),d.push(g.Vd(e).toString()))}
var c=Qba(Rba),d=[];a.forEach(b);return g.Wd(d.join(g.Vd(c).toString()))};
Tba=function(a){return Sba(Array.prototype.slice.call(arguments))};
g.Wd=function(a){var b=Ad();a=b?b.createHTML(a):a;return new Ud(a,Td)};
Uba=function(a,b){return new Qd(b,Pd)};
g.Wba=function(a,b){if(Vba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.Vd(b)};
g.Xd=function(a,b){b=b instanceof Kd?b:Hba(b);a.href=g.Ld(b)};
ae=function(a,b,c,d){a=a instanceof Kd?a:Hba(a);b=b||g.D;c=c instanceof Cd?Dd(c):c||"";return void 0!==d?b.open(g.Ld(a),c,d):b.open(g.Ld(a),c)};
ce=function(){a:{var a=g.D.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&Xba.test(a))break a;a=""}return a};
Yba=function(a,b){return a+Math.random()*(b-a)};
g.de=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.ee=function(a,b){a%=b;return 0>a*b?a+b:a};
fe=function(a,b,c){return a+c*(b-a)};
ge=function(a,b){return 1E-6>=Math.abs(a-b)};
g.he=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
ie=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.ke=function(a,b){this.width=a;this.height=b};
g.le=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
me=function(a){return a.width*a.height};
g.ne=function(a){return encodeURIComponent(String(a))};
oe=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.pe=function(a){return a=Mb(a)};
g.qe=function(a){return null==a?"":String(a)};
re=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
se=function(a){var b=Number(a);return 0==b&&g.Lb(a)?NaN:b};
Zba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
$ba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
aca=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
bca=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
ze=function(a){return a?new xe(ye(a)):cca||(cca=new xe)};
Ae=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.Be=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.De=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Ce(document,"*",a,b)};
g.Ee=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.Ce(c,"*",a,b)[0]||null}return a||null};
g.Ce=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.nb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
Fe=function(a,b){g.Jc(b,function(c,d){c&&"object"==typeof c&&c.po&&(c=c.jl());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:dca.hasOwnProperty(d)?a.setAttribute(dca[d],c):Jb(d,"aria-")||Jb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
eca=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.ke(a.clientWidth,a.clientHeight)};
gca=function(a){var b=fca(a);a=a.parentWindow||a.defaultView;return g.Je&&a.pageYOffset!=b.scrollTop?new g.he(b.scrollLeft,b.scrollTop):new g.he(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
fca=function(a){return a.scrollingElement?a.scrollingElement:g.Fc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Le=function(a){return a?a.parentWindow||a.defaultView:window};
Ne=function(a,b,c){var d=arguments,e=document,f=d[1],h=Me(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):Fe(h,f));2<d.length&&hca(e,h,d,2);return h};
hca=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Ka(f)||g.La(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.La(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.Fb(h?g.ub(f):f,e)}}};
g.Oe=function(a){return Me(document,a)};
Me=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Pe=function(a){return document.createTextNode(String(a))};
g.Qe=function(a,b){a.appendChild(b)};
g.Re=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Se=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Ue=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
ica=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.Ve=function(a){var b;if(jca&&(b=a.parentElement))return b;b=a.parentNode;return g.La(b)&&1==b.nodeType?b:null};
g.We=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
ye=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Xe=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else g.Re(a),a.appendChild(ye(a).createTextNode(String(b)))};
Ye=function(a){var b;if((b="A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!a.hasAttribute("tabindex")||kca(a)):a.hasAttribute("tabindex")&&kca(a))&&g.Je){var c;"function"!==typeof a.getBoundingClientRect||g.Je&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
kca=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
af=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return Ze(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.nb(e.className.split(/\s+/),c))},!0)};
Ze=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
xe=function(a){this.j=a||g.D.document||document};
cf=function(a){"function"!==typeof g.D.setImmediate||g.D.Window&&g.D.Window.prototype&&!nc()&&g.D.Window.prototype.setImmediate==g.D.setImmediate?(bf||(bf=lca()),bf(a)):g.D.setImmediate(a)};
lca=function(){var a=g.D.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!hc("Presto")&&(a=function(){var e=g.Oe("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Oa)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
if("undefined"!==typeof a&&!kc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.SQ;c.SQ=null;e()}};
return function(e){d.next={SQ:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.D.setTimeout(e,0)}};
mca=function(a){g.D.setTimeout(function(){throw a;},0)};
df=function(){this.u=this.j=null};
ef=function(){this.next=this.scope=this.fn=null};
g.hf=function(a,b){ff||nca();gf||(ff(),gf=!0);oca.add(a,b)};
nca=function(){if(g.D.Promise&&g.D.Promise.resolve){var a=g.D.Promise.resolve(void 0);ff=function(){a.then(pca)}}else ff=function(){cf(pca)}};
pca=function(){for(var a;a=oca.remove();){try{a.fn.call(a.scope)}catch(b){mca(b)}pba(qca,a)}gf=!1};
g.lf=function(a){this.j=0;this.J=void 0;this.C=this.u=this.B=null;this.D=this.I=!1;if(a!=g.vd)try{var b=this;a.call(void 0,function(c){jf(b,2,c)},function(c){jf(b,3,c)})}catch(c){jf(this,3,c)}};
rca=function(){this.next=this.context=this.onRejected=this.u=this.j=null;this.B=!1};
mf=function(a,b,c){var d=sca.get();d.u=a;d.onRejected=b;d.context=c;return d};
nf=function(a){if(a instanceof g.lf)return a;var b=new g.lf(g.vd);jf(b,2,a);return b};
of=function(a){return new g.lf(function(b,c){c(a)})};
g.uca=function(a,b,c){tca(a,b,c,null)||g.hf(g.Qa(b,a))};
vca=function(a){return new g.lf(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.uca(e,b,c)})};
qf=function(a,b){b=mf(b,b);b.B=!0;pf(a,b);return a};
wca=function(a,b){if(0==a.j)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,h=c.u;h&&(h.B||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?wca(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):xca(c),yca(c,e,3,b)))}a.B=null}else jf(a,3,b)};
pf=function(a,b){a.u||2!=a.j&&3!=a.j||zca(a);a.C?a.C.next=b:a.u=b;a.C=b};
Aca=function(a,b,c,d){var e=mf(null,null,null);e.j=new g.lf(function(f,h){e.u=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof rf?h(l):f(m)}catch(n){h(n)}}:h});
e.j.B=a;pf(a,e);return e.j};
jf=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,tca(c,a.V6,a.W6,a)||(a.J=c,a.j=b,a.B=null,zca(a),3!=b||c instanceof rf||Bca(a,c)))};
tca=function(a,b,c,d){if(a instanceof g.lf)return pf(a,mf(b||g.vd,c||null,d)),!0;if(a)try{var e=!!a.$goog_Thenable}catch(h){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(g.La(a))try{var f=a.then;if("function"===typeof f)return Cca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
Cca=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function h(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
zca=function(a){a.I||(a.I=!0,g.hf(a.l0,a))};
xca=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
yca=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.D;a=a.B)a.D=!1;if(b.j)b.j.B=null,Dca(b,c,d);else try{b.B?b.u.call(b.context):Dca(b,c,d)}catch(e){Eca.call(null,e)}pba(sca,b)};
Dca=function(a,b,c){2==b?a.u.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
Bca=function(a,b){a.D=!0;g.hf(function(){a.D&&Eca.call(null,b)})};
rf=function(a){Za.call(this,a)};
g.sf=function(a,b){g.rd.call(this);this.di=a||1;this.IC=b||g.D;this.NQ=(0,g.Oa)(this.I6,this);this.eT=g.Ra()};
g.tf=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.Oa)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.Oa)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.D.setTimeout(a,b||0)};
zf=function(a,b){var c=null;return(new g.lf(function(d,e){c=g.tf(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).Oj(function(d){g.D.clearTimeout(c);
throw d;})};
g.Af=function(a){this.J=a;this.j=new Map;this.I=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.sf(this.flushInterval);this.u.Qa("tick",this.UH,!1,this);this.D=!1};
Fca=function(a){a.u.enabled||a.u.start();a.B++;a.B>=a.C&&a.UH()};
Gca=function(a,b){return a.I.has(b)?void 0:a.j.get(b)};
Hca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Ica=function(a){this.j=a;this.j.CD("/client_streamz/po/w/rl",{Qg:3,Pg:"mn"},{Qg:2,Pg:"ac"},{Qg:2,Pg:"sc"},{Qg:3,Pg:"rk"})};
Jca=function(a){this.j=a;this.j.CD("/client_streamz/po/w/el",{Qg:3,Pg:"en"},{Qg:3,Pg:"rk"})};
Kca=function(a){this.j=a;this.j.In("/client_streamz/po/w/cec",{Qg:2,Pg:"ec"},{Qg:3,Pg:"rk"})};
Lca=function(a){this.j=a;this.j.In("/client_streamz/po/w/csc",{Qg:2,Pg:"cs"},{Qg:3,Pg:"rk"})};
Bf=function(){throw Error("Invalid UTF8");};
Mca=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
g.Pca=function(a){var b=!1;b=void 0===b?!1:b;if(Nca){if(b&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a))throw Error("Found an unpaired surrogate");a=(Oca||(Oca=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(128>f)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e<a.length){var h=a.charCodeAt(++e);if(56320<=h&&57343>=h){f=1024*(f-55296)+h-56320+65536;d[c++]=
f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a};
Qca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
Rca=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.Cf=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
g.Df=function(a,b){void 0===b&&(b=0);Sca();b=Tca[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
g.Ef=function(a,b){if(Uca&&!b)a=g.D.btoa(a);else{for(var c=[],d=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);255<f&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.Df(c,b)}return a};
Wca=function(a){var b=[];Vca(a,function(c){b.push(c)});
return b};
Ff=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.Ob("=.",a[b-1])&&(c=g.Ob("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Vca(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
Vca=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Gf[n];if(null!=p)return p;if(!g.Lb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Sca();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
Sca=function(){if(!Gf){Gf={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Tca[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Gf[f]&&(Gf[f]=e)}}}};
Hf=function(a){return Xca&&null!=a&&a instanceof Uint8Array};
If=function(){return Yca||(Yca=new Uint8Array(0))};
Zca=function(a){if(a!==Jf)throw Error("illegal external caller");};
Kf=function(a,b){Zca(b);this.Ed=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Lf=function(){return $ca||($ca=new Kf(null,Jf))};
Nf=function(a){return(a=Mf(a))?new Uint8Array(a):If()};
Mf=function(a){Zca(Jf);var b=a.Ed;b=null==b||Hf(b)?b:"string"===typeof b?Ff(b):null;return null==b?b:a.Ed=b};
Pf=function(a,b){if(Of)return a[Of]|=b;if(void 0!==a.uo)return a.uo|=b;Object.defineProperties(a,{uo:{value:b,configurable:!0,writable:!0,enumerable:!1}});return b};
ada=function(a,b){var c=Qf(a);(c&b)!==b&&(Object.isFrozen(a)&&(a=Array.prototype.slice.call(a)),Rf(a,c|b));return a};
bda=function(a,b){Of?a[Of]&&(a[Of]&=~b):void 0!==a.uo&&(a.uo&=~b)};
Qf=function(a){var b;Of?b=a[Of]:b=a.uo;return null==b?0:b};
Rf=function(a,b){Of?a[Of]=b:void 0!==a.uo?a.uo=b:Object.defineProperties(a,{uo:{value:b,configurable:!0,writable:!0,enumerable:!1}})};
Sf=function(a){Pf(a,1);return a};
g.Tf=function(a){return!!(Qf(a)&2)};
Uf=function(a){Pf(a,16);return a};
Wf=function(a,b){Rf(b,(a|0)&-51)};
Xf=function(a,b){Rf(b,(a|18)&-41)};
Yf=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
Zf=function(a,b,c){if(null==a){if(!c)throw Error();}else if("string"===typeof a)a=a?new Kf(a,Jf):Lf();else if(a.constructor!==Kf)if(Hf(a))a=a.length?new Kf(new Uint8Array(a),Jf):Lf();else{if(!b)throw Error();a=void 0}return a};
g.$f=function(a){if(g.Tf(a.Le))throw Error("Cannot mutate an immutable Message");};
ag=function(a){var b=a.length;(b=b?a[b-1]:void 0)&&Yf(b)?b.g=1:(b={},a.push((b.g=1,b)))};
cda=function(a,b){bg=b;a=new a(b);bg=void 0;return a};
cg=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of double field must be a number|null|undefined, found "+typeof a+": "+a);};
dda=function(a){return a.displayName||a.name||"unknown type name"};
dg=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+dda(b)+" but got "+(a&&dda(a.constructor)));return a};
g.eda=function(a,b,c){var d=!1;if(null!=a&&"object"===typeof a&&!(d=Array.isArray(a))&&a.AF===eg)return a;if(d)return new b(a);if(c)return new b};
fda=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a)if(Array.isArray(a)){if(0!==(Qf(a)&128))return a=Array.prototype.slice.call(a),ag(a),a}else{if(Hf(a))return g.Df(a);if(a instanceof Kf){var b=a.Ed;return null==b?"":"string"===typeof b?b:a.Ed=g.Df(b)}}}return a};
gda=function(a,b,c,d){if(null!=a){if(Array.isArray(a))a=fg(a,b,c,void 0!==d);else if(Yf(a)){var e={},f;for(f in a)e[f]=gda(a[f],b,c,d);a=e}else a=b(a,d);return a}};
fg=function(a,b,c,d){var e=Qf(a);d=d?!!(e&16):void 0;a=Array.prototype.slice.call(a);for(var f=0;f<a.length;f++)a[f]=gda(a[f],b,c,d);c(e,a);return a};
hda=function(a){return a.AF===eg?a.toJSON():fda(a)};
ida=function(a){if(!a)return a;if("object"===typeof a){if(Hf(a))return new Uint8Array(a);if(a.AF===eg)return a.clone()}return a};
jda=function(a,b){a&128&&ag(b)};
kda=function(a){var b=a.C+a.It;0<=b&&Number.isInteger(b);return a.ol||(a.ol=a.Le[b]={})};
g.gg=function(a,b,c){return-1===b?null:b>=a.C?a.ol?a.ol[b]:void 0:c&&a.ol&&(c=a.ol[b],null!=c)?c:a.Le[b+a.It]};
g.I=function(a,b,c,d){g.$f(a);return g.hg(a,b,c,d)};
g.hg=function(a,b,c,d){a.D&&(a.D=void 0);if(b>=a.C||d)return kda(a)[b]=c,a;a.Le[b+a.It]=c;(c=a.ol)&&b in c&&delete c[b];return a};
ig=function(a,b,c){return void 0!==lda(a,b,c,!1)};
g.kg=function(a,b,c,d,e){var f=g.gg(a,b,d);Array.isArray(f)||(f=jg);var h=Qf(f);h&1||Sf(f);if(e)h&2||Pf(f,2),c&1||Object.freeze(f);else{e=!(c&2);var l=h&2;c&1||!l?e&&h&16&&!l&&bda(f,16):(f=Sf(Array.prototype.slice.call(f)),g.hg(a,b,f,d))}return f};
mda=function(a,b){var c=g.gg(a,b);if(null==c)return c;if("number"===typeof c||"NaN"===c||"Infinity"===c||"-Infinity"===c){var d=Number(c);d!==c&&g.hg(a,b,d);return d}};
g.nda=function(a,b){a=g.gg(a,b);return null==a?a:!!a};
lg=function(a,b){var c=g.gg(a,b),d=Zf(c,!0,!0);null!=d&&d!==c&&g.hg(a,b,d);return d};
g.ng=function(a,b,c,d){var e=g.Tf(a.Le),f=g.kg(a,b,1,d,e),h=Qf(f);if(!(h&4)){Object.isFrozen(f)&&(f=Sf(f.slice()),g.hg(a,b,f,d));for(var l=0,m=0;l<f.length;l++){var n=c(f[l]);null!=n&&(f[m++]=n)}m<l&&(f.length=m);Pf(f,5);e&&(Pf(f,2),Object.freeze(f))}!e&&(h&2||Object.isFrozen(f))&&(f=Array.prototype.slice.call(f),Pf(f,5),mg(a,b,f,d));return f};
oda=function(a){return Zf(a,!0,!0)};
og=function(a,b){a=lg(a,b);return null==a?Lf():a};
mg=function(a,b,c,d){c=null==c?jg:ada(c,1);return g.I(a,b,c,d)};
rg=function(a,b,c,d){g.$f(a);c!==d?g.hg(a,b,c):g.hg(a,b,void 0,!1);return a};
g.tg=function(a,b,c,d){g.$f(a);b=g.kg(a,b,2,!1,!1);void 0!=d?b.splice(d,0,c):b.push(c);return a};
g.vg=function(a,b,c,d){g.$f(a);(c=g.ug(a,c))&&c!==b&&null!=d&&g.hg(a,c,void 0,!1);return g.hg(a,b,d)};
g.ug=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=g.gg(a,e)&&(0!==c&&g.hg(a,c,void 0,!1),c=e)}return c};
lda=function(a,b,c,d){var e=g.gg(a,c,d);b=g.eda(e,b);b!==e&&null!=b&&(g.hg(a,c,b,d),Pf(b.Le,Qf(a.Le)&18));return b};
g.xg=function(a,b,c,d){d=void 0===d?!1:d;b=lda(a,b,c,d);if(null==b)return b;if(!g.Tf(a.Le)){var e=g.wg(b);e!==b&&(b=e,g.hg(a,c,b,d))}return b};
pda=function(a,b,c,d,e,f){a.u||(a.u={});var h=a.u[c],l=g.kg(a,c,3,d,f);if(!h){var m=l;h=[];var n=!!(Qf(a.Le)&16);l=g.Tf(m);var p=m;!f&&l&&(m=Array.prototype.slice.call(m));for(var q=l,r=0;r<m.length;r++){var w=m[r];var x=b,z=!1;z=void 0===z?!1:z;w=Array.isArray(w)?new x(w):z?new x:void 0;if(void 0!==w){x=w.Le;var B=z=Qf(x);l&&(B|=2);n&&(B|=16);B!=z&&Rf(x,B);x=B;q=q||!!(2&x);h.push(w)}}a.u[c]=h;n=Qf(m);b=n|33;b=q?b&-9:b|8;n!=b&&(q=m,Object.isFrozen(q)&&(q=Array.prototype.slice.call(q)),Rf(q,b),m=q);
p!==m&&g.hg(a,c,m,d);(f||e&&l)&&Pf(h,2);e&&Object.freeze(h);return h}d=h;f||(Object.isFrozen(d)?e||(h=Array.prototype.slice.call(h),a.u[c]=h):e&&Object.freeze(d));return h};
yg=function(a,b,c,d){var e=g.Tf(a.Le);b=pda(a,b,c,d,e,e);a=g.kg(a,c,3,d,e);if(!(e||Qf(a)&8)){for(e=0;e<b.length;e++)c=b[e],d=g.wg(c),c!==d&&(b[e]=d,a[e]=d.Le);Pf(a,8)}return b};
J=function(a,b,c,d){g.$f(a);null!=d?dg(d,b):d=void 0;return g.hg(a,c,d)};
zg=function(a,b,c,d,e){g.$f(a);null!=e?dg(e,b):e=void 0;return g.vg(a,c,d,e)};
Ag=function(a,b,c){if(null!=c&&"number"!==typeof c)throw Error("Value of float field must be a number|null|undefined, found "+typeof c+": "+c);g.I(a,b,c)};
Bg=function(a,b,c){cg(c);g.I(a,b,c)};
Cg=function(a,b,c,d,e){g.$f(a);var f=null==d?jg:Sf([]);if(null!=d){for(var h=!1,l=0;l<d.length;l++){var m=d[l];dg(m,b);h=h||g.Tf(m.Le);f[l]=m.Le}f=ada(f,(h?0:8)|1);a.u||(a.u={});a.u[c]=d}else a.u&&(a.u[c]=void 0);return g.hg(a,c,f,e)};
Dg=function(a,b,c){g.I(a,b,Zf(c,!1,!0))};
qda=function(a,b,c,d,e){g.$f(a);var f=pda(a,c,b,void 0,!1,!1);c=null!=d?dg(d,c):new c;a=g.kg(a,b,2,void 0,!1);void 0!=e?(f.splice(e,0,c),a.splice(e,0,c.Le)):(f.push(c),a.push(c.Le));c.Pp()&&bda(a,8);return c};
Eg=function(a,b,c,d,e){qda(a,b,c,d,e);return a};
Fg=function(a,b,c){a=g.gg(a,b);return null==a?void 0===c?0:c:a};
Gg=function(a,b){a=g.gg(a,b);return null==a?0:a};
Hg=function(a,b){return g.gg(a,b)};
Ig=function(a,b){return null==a?b:a};
Jg=function(a,b){return Ig(g.gg(a,b),"")};
Kg=function(a,b){return Ig(g.gg(a,b),0)};
rda=function(a,b,c){c=void 0===c?Xf:c;if(null!=a){if(Xca&&a instanceof Uint8Array)return a.length?new Kf(new Uint8Array(a),Jf):Lf();if(Array.isArray(a)){var d=Qf(a);if(d&2)return a;if(b&&!(d&32)&&(d&16||0===d))return Rf(a,d|2),a;a=fg(a,rda,d&4?Xf:c,!0);b=Qf(a);b&4&&b&2&&Object.freeze(a);return a}return a.AF===eg?sda(a):a}};
tda=function(a,b,c,d,e,f,h){(a=a.u&&a.u[c])?(d=0<a.length?a[0].constructor:void 0,f=Qf(a),f&2||(a=g.Lg(a,sda),Xf(f,a),Object.freeze(a)),Cg(b,d,c,a,e)):g.I(b,c,rda(d,f,h),e)};
sda=function(a){if(g.Tf(a.Le))return a;a=uda(a,!0);Pf(a.Le,2);return a};
uda=function(a,b){var c=a.Le,d=Uf([]),e=a.constructor.j;e&&d.push(e);e=a.ol;if(e){d.length=c.length;d.fill(void 0,d.length,c.length);var f={};d[d.length-1]=f}0!==(Qf(c)&128)&&ag(d);b=b||a.Pp()?Xf:Wf;d=cda(a.constructor,d);a.Ur&&(d.Ur=a.Ur.slice());for(var h=!!(Qf(c)&16),l=e?c.length-1:c.length,m=0;m<l;m++)tda(a,d,m-a.It,c[m],!1,h,b);if(e)for(var n in e)c=e[n],l=+n,Number.isNaN(l)?f[l]=c:tda(a,d,l,c,!0,h,b);return d};
g.M=function(a,b,c){null==a&&(a=bg);bg=void 0;var d=this.constructor.u||0,e=0<d,f=this.constructor.j,h=!1;if(null==a){a=f?[f]:[];var l=!0;Rf(a,48)}else{if(!Array.isArray(a))throw Error();if(f&&f!==a[0])throw Error();var m=Pf(a,0),n=m;if(l=0!==(16&n))(h=0!==(32&n))||(n|=32);if(e)if(128&n)d=0;else{if(0<a.length){var p=a[a.length-1];if(Yf(p)&&"g"in p){d=0;n|=128;delete p.g;var q=!0,r;for(r in p){q=!1;break}q&&a.pop()}}}else if(128&n)throw Error();m!==n&&Rf(a,n)}this.It=(f?0:-1)-d;this.u=void 0;this.Le=
a;a:{f=this.Le.length;d=f-1;if(f&&(f=this.Le[d],Yf(f))){this.ol=f;this.C=d-this.It;break a}void 0!==b&&-1<b?(this.C=Math.max(b,d+1-this.It),this.ol=void 0):this.C=Number.MAX_VALUE}if(!e&&this.ol&&"g"in this.ol)throw Error('Unexpected "g" flag in sparse object of message that is not a group type.');if(c){b=l&&!h&&!0;e=this.C;var w;for(l=0;l<c.length;l++)h=c[l],h<e?(h+=this.It,(d=a[h])?vda(d,b):a[h]=jg):(w||(w=kda(this)),(d=w[h])?vda(d,b):w[h]=jg)}};
Og=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);return cda(a,Uf(b))};
g.wg=function(a){if(g.Tf(a.Le)){var b=uda(a,!1);b.D=a;a=b}return a};
vda=function(a,b){if(Array.isArray(a)){var c=Qf(a),d=1;!b||c&2||(d|=16);(c&d)!==d&&Rf(a,c|d)}};
wda=function(a,b){return fda(b)};
xda=function(a,b){b.Ur&&(a.Ur=b.Ur.slice());var c=b.u;if(c){b=b.ol;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),h=+d;if(Array.isArray(e)){if(e.length)for(f=yg(a,e[0].constructor,h,f),h=0;h<Math.min(f.length,e.length);h++)xda(f[h],e[h])}else throw Error("unexpected object: type: "+Ia(e)+": "+e);}}}};
yda=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Pg=function(){return Error("Failed to read varint, encoding is invalid.")};
zda=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
Qg=function(a){if("string"===typeof a)return{buffer:Ff(a),Pp:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Pp:!1};if(a.constructor===Uint8Array)return{buffer:a,Pp:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Pp:!1};if(a.constructor===Kf)return{buffer:Mf(a)||If(),Pp:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Pp:!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");
};
Bda=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.t(Ada(c,a)),b=c.next().value,a=c.next().value,c=b);g.Rg=c>>>0;g.Sg=a>>>0};
g.Dda=function(a){if(16>a.length)Bda(Number(a));else if(Cda)a=BigInt(a),g.Rg=Number(a&BigInt(4294967295))>>>0,g.Sg=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);g.Sg=g.Rg=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),g.Sg*=1E6,g.Rg=1E6*g.Rg+d,4294967296<=g.Rg&&(g.Sg+=g.Rg/4294967296|0,g.Rg%=4294967296);b&&(b=g.t(Ada(g.Rg,g.Sg)),a=b.next().value,b=b.next().value,g.Rg=a,g.Sg=b)}};
Ada=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
g.Tg=function(a){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.init(a,void 0,void 0,void 0)};
g.Vg=function(a){var b=0,c=0,d=0,e=a.u,f=a.j;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;Ug(a,f);if(128>h){a=b>>>0;h=c>>>0;if(c=h&2147483648)a=~a+1>>>0,h=~h>>>0,0==a&&(h=h+1>>>0);a=4294967296*h+(a>>>0);return c?-a:a}throw Pg();};
Ug=function(a,b){a.j=b;if(b>a.B)throw zda(a.B,b);};
g.Wg=function(a){var b=a.u,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Pg();Ug(a,c);return e};
g.Xg=function(a){var b=a.u,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
g.Yg=function(a){var b=g.Xg(a),c=g.Xg(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
g.Zg=function(a){for(var b=0,c=a.j,d=c+10,e=a.u;c<d;){var f=e[c++];b|=f;if(0===(f&128))return Ug(a,c),!!(b&127)}throw Pg();};
Eda=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.B)throw zda(b,a.B-c);a.j=d;return c};
Gda=function(a,b){if(0==b)return Lf();var c=Eda(a,b);a.ED&&a.D?c=a.u.subarray(c,c+b):(a=a.u,b=c+b,c=c===b?If():Fda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?Lf():new Kf(c,Jf)};
ah=function(a){if($g.length){var b=$g.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new g.Tg(a);this.j=a;this.B=this.j.j;this.u=this.C=-1;Hda(this)};
Hda=function(a){var b={};a.GJ=void 0===b.GJ?!1:b.GJ};
Ida=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=g.Wg(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw yda(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0};
bh=function(a){switch(a.u){case 0:0!=a.u?bh(a):g.Zg(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)bh(a);else{var b=g.Wg(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!Ida(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}bh(a)}while(1);break;default:throw yda(a.u,a.B);}};
g.ch=function(a,b,c){var d=a.j.B,e=g.Wg(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.B=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.B=d};
g.fh=function(a){var b=g.Wg(a.j)>>>0;a=a.j;var c=Eda(a,b);a=a.u;if(Jda){var d=a,e;(e=dh)||(e=dh=new TextDecoder("utf-8",{fatal:!0}));a=c+b;d=0===c&&a===d.length?d:d.subarray(c,a);try{var f=e.decode(d)}catch(n){if(void 0===eh){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),eh=!0}catch(p){eh=!1}}!eh&&(dh=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f<b;)l=a[f++],128>l?c.push(l):224>l?f>=b?Bf():(m=a[f++],194>l||128!==(m&192)?(f--,Bf()):c.push((l&31)<<6|m&
63)):240>l?f>=b-1?Bf():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,Bf()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?Bf():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,Bf()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Bf(),8192<=c.length&&(h=Mca(h,c),c.length=0);f=Mca(h,c)}return f};
Kda=function(a){var b=g.Wg(a.j)>>>0;return Gda(a.j,b)};
Lda=function(a,b){this.u=a>>>0;this.j=b>>>0};
Nda=function(a){if(!a)return Mda||(Mda=new Lda(0,0));if(!/^-?\d+$/.test(a))return null;g.Dda(a);return new Lda(g.Rg,g.Sg)};
gh=function(){this.j=[]};
Oda=function(a,b,c){for(;0<c||127<b;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)};
hh=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
Pda=function(a,b){if(0<=b)hh(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
g.ih=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)};
Qda=function(){this.B=[];this.u=0;this.j=new gh};
jh=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
g.Rda=function(a,b){g.kh(a,b,2);b=a.j.end();jh(a,b);b.push(a.u);return b};
g.Sda=function(a,b){var c=b.pop();for(c=a.u+a.j.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.u++;b.push(c);a.u++};
Tda=function(a,b){if(b=b.Ur){jh(a,a.j.end());for(var c=0;c<b.length;c++)jh(a,Mf(b[c])||If())}};
g.kh=function(a,b,c){hh(a.j,8*b+c)};
g.lh=function(a,b,c){g.kh(a,b,2);hh(a.j,c.length);jh(a,a.j.end());jh(a,c)};
Wda=function(a,b,c){if(c){var d={},e;for(e in c){var f=c[e],h=f.n7;h||(d.mz=f.F$a||f.N5.cH,f.LQ?(d.nH=Uda(f.LQ),h=function(l){return function(m,n,p){return l.mz(m,n,p,l.nH)}}(d)):f.tT?(d.mH=Vda(f.SJ.Ut,f.tT),h=function(l){return function(m,n,p){return l.mz(m,n,p,l.mH)}}(d)):h=d.mz,f.n7=h);
h(b,a,f.SJ);d={mz:d.mz,nH:d.nH,mH:d.mH}}}Tda(b,a)};
Xda=function(a,b,c){return a[oh]||(a[oh]=function(d,e){return b(d,e,c)})};
Zda=function(a){var b=a[oh];if(!b){var c=ph(a);b=function(d,e){return Yda(d,e,c)};
a[oh]=b}return b};
$da=function(a){var b=a.LQ;if(b)return Zda(b);if(b=a.E$a)return Xda(a.SJ.Ut,b,a.tT)};
aea=function(a){var b=$da(a),c=a.SJ,d=a.N5.Go;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
bea=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);return Array.isArray(c)&&(qh in c||rh in c||0<c.length&&"function"==typeof c[0])?c:void 0};
cea=function(a,b,c,d,e,f){b.Ut=a[0];var h=1;if(a.length>h&&"number"!==typeof a[h]){var l=a[h++];c(b,l)}for(;h<a.length;){c=a[h++];for(var m=h+1;m<a.length&&"number"!==typeof a[m];)m++;l=a[h++];m-=h;switch(m){case 0:d(b,c,l);break;case 1:(m=bea(a,h))?(h++,e(b,c,l,m)):d(b,c,l,a[h++]);break;case 2:m=h++;m=bea(a,m);e(b,c,l,m,a[h++]);break;case 3:f(b,c,l,a[h++],a[h++],a[h++]);break;case 4:f(b,c,l,a[h++],a[h++],a[h++],a[h++]);break;default:throw Error("unexpected number of binary field arguments: "+m);
}}return b};
Uda=function(a){var b=a[sh];if(!b){var c=th(a);b=function(d,e){return dea(d,e,c)};
a[sh]=b}return b};
Vda=function(a,b){var c=a[sh];c||(c=function(d,e){return Wda(d,e,b)},a[sh]=c);
return c};
eea=function(a,b){a.push(b)};
fea=function(a,b,c){a.push(b,c.cH)};
gea=function(a,b,c,d){var e=Uda(d),f=th(d).Ut,h=c.cH;a.push(b,function(l,m,n){return h(l,m,n,f,e)})};
hea=function(a,b,c,d,e,f){var h=Vda(d,f),l=c.cH;a.push(b,function(m,n,p){return l(m,n,p,d,h)})};
th=function(a){var b=a[rh];if(b)return b;b=cea(a,a[rh]=[],eea,fea,gea,hea);qh in a&&rh in a&&(a.length=0);return b};
iea=function(a,b){a[0]=b};
jea=function(a,b,c,d){var e=c.Go;a[b]=d?function(f,h,l){return e(f,h,l,d)}:e};
kea=function(a,b,c,d,e){var f=c.Go,h=Zda(d),l=ph(d).Ut;a[b]=function(m,n,p){return f(m,n,p,l,h,e)}};
lea=function(a,b,c,d,e,f,h){var l=c.Go,m=Xda(d,e,f);a[b]=function(n,p,q){return l(n,p,q,d,m,h)}};
ph=function(a){var b=a[qh];if(b)return b;b=cea(a,a[qh]={},iea,jea,kea,lea);qh in a&&rh in a&&(a.length=0);return b};
Yda=function(a,b,c){for(;Ida(b)&&4!=b.u;){var d=b.C,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=aea(f))}if(!e||!e(b,a,d))if(f=b,e=a,d=f.B,bh(f),!f.GJ){var h=f.j.j-d;f.j.j=d;d=Gda(f.j,h);(f=e.Ur)?f.push(d):e.Ur=[d]}}return a};
dea=function(a,b,c){for(var d=c.length,e=1==d%2,f=e?1:0;f<d;f+=2)(0,c[f+1])(b,a,c[f]);Wda(a,b,e?c[0]:void 0)};
g.vh=function(a,b){var c=new Qda;dea(a,c,th(b));jh(c,c.j.end());a=new Uint8Array(c.u);b=c.B;for(var d=b.length,e=0,f=0;f<d;f++){var h=b[f];a.set(h,e);e+=h.length}c.B=[a];return a};
g.wh=function(a,b){return{Go:a,cH:b}};
g.xh=function(a,b,c){b=mda(b,c);if(null!=b){g.kh(a,c,1);a=a.j;var d=+b;if(0===d)g.Sg=0<1/d?0:2147483648,g.Rg=0;else if(isNaN(d))g.Sg=2147483647,g.Rg=4294967295;else if(d=(c=0>d?-2147483648:0)?-d:d,1.7976931348623157E308<d)g.Sg=(c|2146435072)>>>0,g.Rg=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.Sg=(c|b/4294967296)>>>0,g.Rg=b>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);g.Sg=(c|b+1023<<20|1048576*d&1048575)>>>0;g.Rg=4503599627370496*
d>>>0}g.ih(a,g.Rg);g.ih(a,g.Sg)}};
g.yh=function(a,b,c){b=g.gg(b,c);null!=b&&("string"===typeof b&&Nda(b),null!=b&&(g.kh(a,c,0),"number"===typeof b?(a=a.j,Bda(b),Oda(a,g.Rg,g.Sg)):(c=Nda(b),Oda(a.j,c.u,c.j))))};
g.zh=function(a,b,c){b=g.gg(b,c);null!=b&&null!=b&&(g.kh(a,c,0),Pda(a.j,b))};
g.mea=function(a,b,c){b=g.gg(b,c);null!=b&&g.lh(a,c,g.Pca(b))};
nea=function(a){var b=this.Ut,c=this.j;return this.isRepeated?yg(a,b,c,!0):g.xg(a,b,c,!0)};
pea=function(a){g.M.call(this,a,-1,oea)};
g.Ah=function(a){g.M.call(this,a,-1,qea)};
g.Bh=function(a){g.M.call(this,a,-1,rea)};
g.Ch=function(a){g.M.call(this,a)};
g.Dh=function(a){g.M.call(this,a)};
tea=function(a){g.M.call(this,a,-1,sea)};
g.uea=function(a){var b=new g.Ah;b=g.I(b,1,a.u);for(var c=[],d=0;d<a.j.length;d++)c.push(a.j[d].Pg);if(null==c)b=g.I(b,3,jg);else{d=Qf(c);if(!(d&4)){if(d&2||Object.isFrozen(c))c=Array.prototype.slice.call(c);for(var e=0;e<c.length;e++)c[e]=c[e];Rf(c,d|5)}b=g.I(b,3,c)}c=[];d=[];e=g.t(a.Tw.keys());for(var f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];var h=a.C;for(var l=a.bK(f)||[],m=[],n=0;n<l.length;n++){var p=l[n],q=p&&p.VQ;p=new g.Dh;switch(h){case 3:g.vg(p,
1,g.Eh,Number(q));break;case 2:var r=p;q=Number(q);var w=g.Eh;cg(q);g.vg(r,2,w,q)}m.push(p)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new g.Bh;m=J(n,g.Dh,2,m);n=f;p=[];r=a;q=[];for(w=0;w<r.j.length;w++)q.push(r.j[w].Qg);r=q;for(q=0;q<r.length;q++){w=r[q];var x=n[q],z=new g.Ch;switch(w){case 3:g.vg(z,1,g.Fh,String(x));break;case 2:g.vg(z,2,g.Fh,Number(x));break;case 1:g.vg(z,3,g.Fh,"true"==x)}p.push(z)}Cg(m,g.Ch,1,p);c.push(m)}}Cg(b,g.Bh,4,c);return b};
vea=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==
c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
wea=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(q){for(var r=h,w=0;64>w;w+=4)r[w/4]=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3];for(w=16;80>w;w++)q=r[w-3]^r[w-8]^r[w-14]^r[w-16],r[w]=(q<<1|q>>>31)&4294967295;q=e[0];var x=e[1],z=e[2],B=e[3],C=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var G=B^x&(z^B);var F=1518500249}else G=x^z^B,F=1859775393;else 60>w?(G=x&z|B&(x|z),F=2400959708):(G=x^z^B,F=3395469782);G=((q<<5|q>>>27)&4294967295)+G+C+F+r[w]&4294967295;C=B;B=z;z=(x<<30|x>>>2)&4294967295;x=q;q=G}e[0]=e[0]+q&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+z&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+C&4294967295}
function c(q,r){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var w=[],x=0,z=q.length;x<z;++x)w.push(q.charCodeAt(x));q=w}r||(r=q.length);w=0;if(0==n)for(;w+64<r;)b(q.slice(w,w+64)),w+=64,p+=64;for(;w<r;)if(f[n++]=q[w++],p++,64==n)for(n=0,b(f);w+64<r;)b(q.slice(w,w+64)),w+=64,p+=64}
function d(){var q=[],r=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=r&255,r>>>=8;b(f);for(w=r=0;5>w;w++)for(var x=24;0<=x;x-=8)q[r++]=e[w]>>x&255;return q}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,W_:function(){for(var q=d(),r="",w=0;w<q.length;w++)r+="0123456789ABCDEF".charAt(Math.floor(q[w]/16))+"0123456789ABCDEF".charAt(q[w]%16);return r}}};
yea=function(a,b,c){var d=String(g.D.location.href);return d&&a&&b?[b,xea(vea(d),a,c||null)].join(" "):null};
xea=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Fb(d,function(l){e.push(l)}),zea(e.join(" "));
var f=[],h=[];g.Fb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.ob(f)?[c,b,a]:[f.join(":"),c,b,a];g.Fb(d,function(l){e.push(l)});
a=zea(e.join(" "));a=[c,a];g.ob(h)||a.push(h.join(""));return a.join("_")};
zea=function(a){var b=wea();b.update(a);return b.W_().toLowerCase()};
Gh=function(a){this.j=a||{cookie:""}};
Hh=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Tb(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
Ih=function(a){return!!Aea.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
Bea=function(a){a=void 0===a?!1:a;var b=g.D.__SAPISID||g.D.__APISID||g.D.__3PSAPISID||g.D.__OVERRIDE_SID;Ih(a)&&(b=b||g.D.__1PSAPISID);if(b)return!0;var c=new Gh(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");Ih(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
Cea=function(a,b,c,d){(a=g.D[a])||(a=(new Gh(document)).get(b));return a?yea(a,c,d):null};
Jh=function(a,b){b=void 0===b?!1:b;var c=vea(String(g.D.location.href)),d=[];if(Bea(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.D.__SAPISID:g.D.__APISID;e||(e=new Gh(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?yea(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Ih(b)&&((b=Cea("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Cea("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&
d.push(a))}return 0==d.length?null:d.join(" ")};
Kh=function(a){g.M.call(this,a,-1,Dea)};
g.Lh=function(a,b,c,d){this.C=a;this.D=b;this.j=this.B=a;this.I=c||0;this.J=d||2};
g.Nh=function(a){a.j=Math.min(a.D,a.j*a.J);a.B=Math.min(a.D,a.j+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.j):0));a.u++};
g.Oh=function(a){return(new Eea).El(a)};
Eea=function(){};
Ph=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Ph(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),Fea(d,c),c.push(":"),Ph(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Fea(b,c);break;case "number":c.push(isFinite(b)&&
!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
Fea=function(a,b){b.push('"',a.replace(Gea,function(c){var d=Hea[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Hea[c]=d);return d}),'"')};
Iea=function(a){switch(a){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"}};
Qh=function(){};
Sh=function(){};
Jea=function(a){if(!a.u&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.u=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.u};
Th=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l};
Uh=function(a){return a?decodeURI(a):a};
g.Wh=function(a,b){return b.match(Vh)[a]||null};
g.Xh=function(a){return Uh(g.Wh(3,a))};
g.Kea=function(a){a=a.match(Vh);return Th(a[1],a[2],a[3],a[4])};
Lea=function(a){a=a.match(Vh);return Th(a[1],null,a[3],a[4])};
Mea=function(a){a=a.match(Vh);return Th(null,null,null,null,a[5],a[6],a[7])};
Yh=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?oe(e):"")}}};
Zh=function(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
$h=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)$h(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.ne(b)))};
Nea=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)$h(a[b],a[b+1],c);return c.join("&")};
g.ai=function(a){var b=[],c;for(c in a)$h(c,a[c],b);return b.join("&")};
bi=function(a,b){var c=2==arguments.length?Nea(arguments[1],0):Nea(arguments,1);return Zh(a,c)};
g.ci=function(a,b){b=g.ai(b);return Zh(a,b)};
di=function(a,b,c){c=null!=c?"="+g.ne(c):"";return Zh(a,b+c)};
Oea=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
ei=function(a,b){var c=a.search(Pea),d=Oea(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return oe(a.slice(d,-1!==e?e:0))};
fi=function(a,b){for(var c=a.search(Pea),d=0,e,f=[];0<=(e=Oea(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Qea,"$1")};
Rea=function(a,b,c){return di(fi(a,b),b,c)};
g.gi=function(a){g.rd.call(this);this.headers=new Map;this.Z=a||null;this.C=!1;this.Aa=this.j=null;this.oa="";this.u=0;this.D="";this.I=this.Ka=this.ea=this.Ba=!1;this.T=0;this.ya=null;this.Pa="";this.Va=this.J=!1};
Tea=function(a,b,c,d,e,f,h){var l=new g.gi;Sea.push(l);b&&l.Qa("complete",b);l.qF("ready",l.D_);f&&(l.T=Math.max(0,f));h&&(l.J=h);l.send(a,c,d,e)};
Uea=function(a){return g.Je&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Wea=function(a,b){a.C=!1;a.j&&(a.I=!0,a.j.abort(),a.I=!1);a.D=b;a.u=5;Vea(a);hi(a)};
Vea=function(a){a.Ba||(a.Ba=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Xea=function(a){if(a.C&&"undefined"!=typeof ii)if(a.Aa[1]&&4==g.ji(a)&&2==a.getStatus())a.getStatus();else if(a.ea&&4==g.ji(a))g.tf(a.rU,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(mi(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.ji(a)?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Vea(a)}}finally{hi(a)}}};
hi=function(a,b){if(a.j){Yea(a);var c=a.j,d=a.Aa[0]?function(){}:null;
a.j=null;a.Aa=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Yea=function(a){a.j&&a.Va&&(a.j.ontimeout=null);a.ya&&(g.D.clearTimeout(a.ya),a.ya=null)};
mi=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=g.Wh(1,String(a.oa)),!a&&g.D.self&&g.D.self.location&&(a=g.D.self.location.protocol.slice(0,-1)),b=!Zea.test(a?a.toLowerCase():"");c=b}return c};
g.ji=function(a){return a.j?a.j.readyState:0};
g.ni=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.oi=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Pa){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
g.$ea=function(a){var b={};a=(a.j&&2<=g.ji(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.Lb(a[c])){var d=bca(a[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return Lc(b,function(h){return h.join(", ")})};
g.ti=function(a,b){return a.j?a.j.getResponseHeader(b):null};
ui=function(a){g.M.call(this,a)};
vi=function(a){g.M.call(this,a,-1,afa)};
wi=function(a){g.M.call(this,a)};
cfa=function(a){g.M.call(this,a,-1,bfa)};
xi=function(a){g.M.call(this,a,31,dfa)};
ffa=function(a){g.M.call(this,a,17,efa)};
hfa=function(a){g.M.call(this,a,6,gfa)};
ifa=function(a){g.M.call(this,a)};
zi=function(a,b,c,d,e,f,h,l,m,n,p){g.rd.call(this);var q=this;this.ea="";this.u=[];this.gb="";this.kb=this.Ka=-1;this.Wa=!1;this.T=this.C=null;this.J=0;this.Rb=1;this.timeoutMillis=0;this.Ba=!1;g.rd.call(this);this.Xa=b||function(){};
this.I=new jfa(a,f);this.tb=d;this.Va=p;this.Pb=g.Qa(Yba,0,1);this.ya=e||null;this.Z=c||null;this.Aa=h||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Pa=f||!1;!this.Pa&&(65<=rc("Chromium")||45<=rc("Firefox")||12<=rc("Safari")||vc()&&g.Vb(Uaa(),12));a=g.I(new wi,1,1);yi(this.I,a);this.D=new g.Lh(1E4,3E5,.1);this.j=new g.sf(this.D.getValue());g.H(this,this.j);n=kfa(this,n);g.gd(this.j,"tick",n,!1,this);this.oa=new g.sf(6E5);g.H(this,this.oa);g.gd(this.oa,"tick",n,!1,this);this.Aa||
this.oa.start();this.Pa||(g.gd(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.TJ()}),g.gd(document,"pagehide",this.TJ,!1,this))};
kfa=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
lfa=function(a){a.ya||(a.ya=.01>a.Pb()?"https://web.archive.org/web/20230104105643/https://www.google.com/log?format=json&hasfast=true":"https://web.archive.org/web/20230104105643/https://play.google.com/log?format=json&hasfast=true");return a.ya};
mfa=function(a,b){a.D=new g.Lh(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())};
ofa=function(a){nfa(a,function(b,c){b=di(b,"format","json");b=Le().navigator.sendBeacon(b,c.El());a.Ba&&!b&&(a.Ba=!1);return b})};
nfa=function(a,b){if(0!==a.u.length){var c=fi(lfa(a),"format");c=bi(c,"auth",a.Xa(),"authuser",a.Z||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.I.Re(e,a.J);if(!b(c,f))break;a.J=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}};
pfa=function(){g.eb.call(this,"event-logged",void 0)};
jfa=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new ffa;g.I(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));yi(this,new wi)};
yi=function(a,b){J(a.j,wi,1,b);g.gg(b,1)||g.I(b,1,1);a.B||(b=Ai(a),g.gg(b,5)||g.I(b,5,a.locale));a.u&&(b=Ai(a),g.xg(b,vi,9)||J(b,vi,9,a.u))};
rfa=function(a,b){var c=void 0===c?qfa:c;b(Le(),c).then(function(d){a.u=d;d=Ai(a);J(d,vi,9,a.u);return!0}).catch(function(){return!1})};
Ai=function(a){a=g.xg(a.j,wi,1);var b=g.xg(a,ui,11);b||(b=new ui,J(a,ui,11,b));return b};
sfa=function(a,b,c){Tea(a.url,function(d){d=d.target;mi(d)?b(g.ni(d)):c(d.getStatus())},a.requestType,a.body,a.wv,a.timeoutMillis,a.withCredentials)};
Bi=function(a){this.J=a;this.C="https://web.archive.org/web/20230104105643/https://play.google.com/log?format=json&hasfast=true";this.D=!1;this.T=sfa;this.j=""};
Ci=function(a,b,c,d,e,f){c=void 0===c?"":c;e=void 0===e?"":e;if(f)b=f;else{a=new Bi(void 0===a?-1:a);a.j=void 0===b?"":b;""!=c&&(a.C=c);if(void 0===d?0:d)a.D=!0;e&&(a.u=e);b=a.Re()}this.j=b};
tfa=function(a){switch(a){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}};
ufa=function(a){switch(a){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""}};
Di=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c};
Ei=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
Fi=function(a,b){this.logger=a;this.j=b;this.startMillis=Ei()};
Gi=function(){};
Hi=function(a,b){this.Wg=a;a=new Bi(1654);a.u="9";if(b){var c=new pea;b=mg(c,3,b);a.B=b}b=new Ci(1654,"","",!1,"",a.Re());b=new g.Af(b);this.clientError=new Kca(b);this.u=new Jca(b);this.B=new Ica(b);this.j=new Lca(b)};
vfa=function(a){this.j=a;this.j.In("/client_streamz/bg/fiec",{Qg:3,Pg:"rk"},{Qg:2,Pg:"ec"})};
wfa=function(a){this.j=a;this.j.CD("/client_streamz/bg/fil",{Qg:3,Pg:"rk"})};
xfa=function(a){this.j=a;this.j.In("/client_streamz/bg/fsc",{Qg:3,Pg:"rk"})};
yfa=function(a){this.j=a;this.j.CD("/client_streamz/bg/fsl",{Qg:3,Pg:"rk"})};
Ji=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15}
a=zfa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=Ii(a,l),d+=Ii(a,l+4),e+=Ii(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return Afa.toString(e)};
zfa=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
Ii=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
Bfa=function(a){this.J=Ki();this.D=new Ci(1828);this.j=new g.Af(this.D);this.I=new wfa(this.j);this.B=new xfa(this.j);this.C=new yfa(this.j);this.u=new vfa(this.j);this.Wg=Ji(a)};
Ki=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
Cfa=function(a){g.M.call(this,a)};
Dfa=function(a){g.M.call(this,a)};
Li=function(a){g.M.call(this,a)};
g.Mi=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Ni=function(a){var b=this;this.j=!1;if(a.challenge instanceof Li){var c=Jg(a.challenge,4);var d=Jg(a.challenge,5)}else c=a.program,d=a.globalName;if(a.O5){var e;this.kp=null!=(e=a.kp)?e:new Bfa(d)}var f=new g.Mi;this.u=f.promise;if(!g.D[d]){var h;null!=(h=this.kp)&&h.u.j.cn("/client_streamz/bg/fiec",h.Wg,1)}else if(!g.D[d].a){var l;null!=(l=this.kp)&&l.u.j.cn("/client_streamz/bg/fiec",l.Wg,2)}this.B=g.t((0,g.D[d].a)(c,function(m,n){Promise.resolve().then(function(){var p;null!=(p=b.kp)&&p.I.Nh(Ki()-
p.J,p.Wg);f.resolve({t_:m,q6:n})})},!0)).next().value;
this.o6=f.promise.then(function(){})};
Efa=function(a){g.Ed("From proto message. b/12014412");return g.Jd(g.gg(a,4)||"")};
Ffa=function(){};
Oi=function(a){this.j=a};
Gfa=function(a){return Rd(a)};
Hfa=function(a,b,c,d){if(0===a.length)throw Error("No prefixes are provided");a=a.map(function(f){if(f instanceof Oi)f=f.j;else throw Error("");return f});
var e=c.toLowerCase();if(a.every(function(f){return 0!==e.indexOf(f)}))throw Error('Attribute "'+c+'" does not match any of the allowed prefixes.');
b.setAttribute(c,d)};
Pi=function(a,b,c,d){this.j=a;this.B=b;this.u=c;this.C=d};
Jfa=function(a){a:if(Ifa){try{var b=new URL(a)}catch(c){b="https:";break a}b=b.protocol}else b:{b=document.createElement("a");try{b.href=a}catch(c){b=void 0;break b}b=b.protocol;b=":"===b||""===b?"https:":b}if("javascript:"!==b)return a};
Kfa=function(){this.changes=[];if(Qi!==Qi)throw Error("Bad secret");};
Mfa=function(){this.u=!1;this.j=Lfa};
Ri=function(a){this.isValid=a};
Si=function(a){return new Ri(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Ofa=function(a,b){b=void 0===b?Nfa:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Ri&&d.isValid(a))return Nd(a)}};
Ti=function(a,b){b=b instanceof Kd?g.Ld(b):Jfa(b);void 0!==b&&(a.href=b)};
Ui=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);};
Vi=function(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.Wi=function(a,b){a.src=yba(b);Vi(a)};
Xi=function(){this.j={};this.u=null};
Pfa=function(){Xi.instance||(Xi.instance=new Xi);return Xi.instance};
Rfa=function(a){var b=Pfa();return Qfa(b,g.xg(a,Cfa,1),g.xg(a,Dfa,2),Jg(a,3))};
Qfa=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return Sfa(b,c);var e;(e=a.j)[d]||(e[d]=new Promise(function(f,h){Sfa(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d];
h(l)})}));
return a.j[d]};
Sfa=function(a,b){return b?Tfa(b):a?Ufa(a):Promise.resolve()};
Tfa=function(a){return new Promise(function(b,c){var d=g.Oe("SCRIPT"),e=Efa(a);g.Wi(d,e);d.onload=function(){g.Ue(d);b()};
d.onerror=function(){g.Ue(d);c(Error("EWLS"))};
(g.Be("HEAD")[0]||document.documentElement).appendChild(d)})};
Ufa=function(a){return new Promise(function(b){var c=g.Oe("SCRIPT");if(a){var d=g.gg(a,6);d=null===d||void 0===d?null:wba(d)}else d=null;c.textContent=vba(d);Vi(c);(g.Be("HEAD")[0]||document.documentElement).appendChild(c);g.Ue(c);b()})};
Yi=function(a){g.M.call(this,a)};
bj=function(a){g.M.call(this,a)};
cj=function(a){g.M.call(this,a)};
Vfa=function(a,b,c){this.client=a;this.Wg=b;this.j=c};
Wfa=function(a){var b=Pfa().u,c,d,e,f,h;return g.A(function(l){if(1==l.j)return c=new Yi,rg(c,1,a.Wg,""),b&&rg(c,2,b,""),d=a.j(),g.y(l,a.client.create(c,d),2);e=l.u;f=Nf(og(e,2));if(f.length){var m=l.return;var n=new Uint8Array(f.length);for(var p=0;p<f.length;p++)n[p]=f[p]+97;if(g.D.TextDecoder)n=(new TextDecoder).decode(n);else if(8192>=n.length)n=String.fromCharCode.apply(null,n);else{p="";for(var q=0;q<n.length;q+=8192)p+=String.fromCharCode.apply(null,Array.prototype.slice.call(n,q,q+8192));
n=p}n=Og(Li,n);return m.call(l,n)}h=g.xg(e,Li,1);if(!h)throw Error("Missing field");return l.return(h)})};
Yfa=function(a,b){var c,d;return g.A(function(e){c=a.j();var f=new bj;f=rg(f,1,a.Wg,"");d=rg(f,2,b,"");f=e.return;var h=a.client;h=dj(h.j,h.u+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Xfa);return f.call(e,h)})};
ej=function(a){g.M.call(this,a)};
fj=function(a,b,c){this.j=a;this.B=b;this.u=c};
gj=function(a,b,c){c=void 0===c?{}:c;this.a6=a;this.j=c;this.u=b};
ij=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.u=e};
Zfa=function(a,b,c){c=void 0===c?{}:c;return new fj(b,a,c)};
jj=function(a){g.M.call(this,a)};
kj=function(a){g.M.call(this,a)};
lj=function(a){g.M.call(this,a)};
mj=function(a){g.M.call(this,a,-1,$fa)};
nj=function(a,b){this.J=a.u2;this.T=b;this.j=a.xhr;this.B=[];this.D=[];this.I=[];this.C=[];this.u=[];this.J&&aga(this)};
fga=function(a,b){g.gd(a.j,"complete",function(){if(mi(a.j)){var c=g.ni(a.j);if(b&&"text/plain"===a.j.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.T;var e=d(c,cga)}catch(f){oj(a,new Di(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}d=tfa(a.j.getStatus());pj(a,qj(a));0==d?dga(a,e):oj(a,new Di(d,"Xhr succeeded but the status code is not 200"))}else e=g.ni(a.j),c={},e?(c=ega(a,e),e=c.code,d=c.details,
c=c.metadata):(e=2,d="Rpc failed due to xhr error. error code: "+a.j.u+", error: "+a.j.getLastError()),pj(a,qj(a)),oj(a,new Di(e,d,c))})};
aga=function(a){a.J.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.T;var e=d(c,cga)}catch(f){oj(a,new Di(13,"Error when deserializing response data; error: "+f+(", response: "+c)))}e&&dga(a,e)}if("2"in b)for(b=ega(a,b["2"]),c=0;c<a.I.length;c++)a.I[c](b)});
a.J.on("end",function(){pj(a,qj(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.J.on("error",function(){if(0!=a.u.length){var b=a.j.u;0!==b||mi(a.j)||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.j.getStatus();d=tfa(c);break;default:d=14}pj(a,qj(a));b=Iea(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);oj(a,new Di(d,b))}})};
qj=function(a){var b={},c=g.$ea(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
ega=function(a,b){var c=2,d={};try{var e=Og(mj,b);c=Fg(e,1);var f=e.getMessage();yg(e,lj,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.oa)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
rj=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
dga=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
pj=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
oj=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
g.sj=function(a){this.I=a.m7||null;this.D=a.KV||!1;this.u=void 0};
tj=function(a,b){g.rd.call(this);this.ya=a;this.J=b;this.I=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.Z=new Headers;this.u=null;this.oa="GET";this.ea="";this.j=!1;this.T=this.C=this.D=null};
gga=function(a){a.C.read().then(a.O0.bind(a)).catch(a.RE.bind(a))};
vj=function(a){a.readyState=4;a.D=null;a.C=null;a.T=null;uj(a)};
uj=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
hga=function(a){if(a.ll&&"function"==typeof a.ll)return a.ll();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(g.Ka(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Oc(a)};
iga=function(a){if(a.Ap&&"function"==typeof a.Ap)return a.Ap();if(!a.ll||"function"!=typeof a.ll){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Ka(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.Pc(a)}}};
g.wj=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.Ka(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=iga(a),e=hga(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};
g.xj=function(a){this.j=this.T=this.D="";this.C=null;this.I=this.B="";this.J=!1;var b;a instanceof g.xj?(this.J=a.J,g.yj(this,a.D),this.T=a.T,g.zj(this,a.j),g.Aj(this,a.C),this.B=a.B,Bj(this,a.u.clone()),this.I=a.I):a&&(b=String(a).match(Vh))?(this.J=!1,g.yj(this,b[1]||"",!0),this.T=Cj(b[2]||""),g.zj(this,b[3]||"",!0),g.Aj(this,b[4]),this.B=Cj(b[5]||"",!0),Bj(this,b[6]||"",!0),this.I=Cj(b[7]||"")):(this.J=!1,this.u=new Dj(null,this.J))};
g.yj=function(a,b,c){a.D=c?Cj(b,!0):b;a.D&&(a.D=a.D.replace(/:$/,""))};
g.zj=function(a,b,c){a.j=c?Cj(b,!0):b};
g.Aj=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null};
Bj=function(a,b,c){b instanceof Dj?(a.u=b,jga(a.u,a.J)):(c||(b=Ej(b,kga)),a.u=new Dj(b,a.J))};
g.Fj=function(a,b,c){a.u.set(b,c)};
g.Gj=function(a){return a instanceof g.xj?a.clone():new g.xj(a)};
Cj=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Ej=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,lga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
lga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Dj=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b};
Hj=function(a){a.j||(a.j=new Map,a.u=0,a.B&&Yh(a.B,function(b,c){a.add(oe(b),c)}))};
mga=function(a,b){Hj(a);b=Ij(a,b);return a.j.has(b)};
g.nga=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.j.set(Ij(a,b),g.ub(c)),a.u=a.u+c.length)};
Ij=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
jga=function(a,b){b&&!a.C&&(Hj(a),a.B=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.nga(this,e,c))},a));
a.C=b};
g.oga=function(a){var b="";g.Jc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Jj=function(a,b,c){if(g.Uc(c))return a;c=g.oga(c);if("string"===typeof a)return di(a,g.ne(b),c);g.Fj(a,b,c);return a};
g.Kj=function(a){g.E.call(this);this.u=a;this.j={}};
pga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)pga(a,b,c[h],d,e,f);else{b=fd(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.j[b.key]=b}return a};
qga=function(){this.B=!0;this.u=0;this.j=""};
rga=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
Lj=function(){this.I=null;this.J=[];this.C=this.u=this.B=this.j=this.Z=0;this.D=null;this.T=0};
Mj=function(a,b,c,d){a.j=3;a.I="The stream is broken @"+a.Z+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.I);};
Oj=function(){this.j=null;this.u=0;this.B=new qga;this.C=new Lj};
sga=function(a,b,c){a.j="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Pj=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Qj=function(a){this.Z=null;this.I=[];this.C="";this.oa=[];this.B=this.u=0;this.J=!1;this.T=0;this.ya=/[\\"]/g;this.j=this.D=0;this.ea=!(!a||!a.V_)};
Rj=function(a,b,c){a.D=3;a.Z="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.Z);};
Sj=function(){this.D=this.B=null;this.u=this.j=0;this.C=[];this.I=!1};
tga=function(a){var b=g.ti(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Sj:new Qj:b.startsWith("application/x-protobuf")?(a=g.ti(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new Oj:null:new Lj:null};
Tj=function(a){this.j=a;this.u=null;this.C=this.B=0;this.Z=!1;this.D=this.J=this.I=null;this.T=new g.Kj(this);this.T.Qa(this.j,"readystatechange",this.ea)};
Uj=function(a,b){a.C!=b&&(a.C=b,a.J&&a.J())};
Vj=function(a){a.T.yg();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
uga=function(a){this.B=a;a=(0,g.Oa)(this.q3,this);this.B.D=a;a=(0,g.Oa)(this.Y4,this);this.B.J=a;this.u={};this.j={}};
vga=function(a,b){for(var c={},d=0;d<a.length;c={hH:c.hH},d++)c.hH=a[d],b.forEach(function(e){return function(f){try{f(e.hH)}catch(h){}}}(c))};
Wj=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
wga=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.D=a.vab||g.Fa("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Fa("withCredentials",a)||!1;this.C=a.uab||[];this.I=a.zab||[];this.j=a.Cab;this.B=a.Aab||!1};
dj=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return xga(function(h){return new yga(function(l,m){var n={},p=zga(a,h,f);p.on("error",function(q){return m(q)});
p.on("metadata",function(q){n=q});
p.on("data",function(q){var r=n;r=void 0===r?{}:r;l(new gj(q,h.CE(),r))})})},a.I).call(a,Zfa(e,c,d)).then(function(h){return h.a6})};
zga=function(a,b,c){var d=b.CE(),e=b.getMetadata(),f=Aga(a,!0);a=Bga(a,e,f,c+d.getName());c=Cga(f,d.u,!1);fga(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
Aga=function(a,b){b=a.B&&!b;return a.j||b?new g.gi(new g.sj({m7:a.j,KV:b})):new g.gi};
Bga=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.u)c.J=!0;if(a.D)d=g.Jj(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
Cga=function(a,b,c){if(c)if(a.isActive(),!g.Je||g.Cc(10)){c=new Tj(a);var d=new uga(c)}else d=null;return new nj({xhr:a,u2:d},b)};
xga=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
bk=function(){this.j=new wga;this.u="https://web.archive.org/web/20230104105643/https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
Dga=function(a){var b=new bk,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Vfa(b,a,function(){return c})};
ck=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=a;if(b instanceof Error){this.message=b.message;var d;this.stack=null!=(d=b.stack)?d:""}else this.message=String(b),this.stack="";Object.setPrototypeOf(this,ck.prototype)};
dk=function(a){g.E.call(this);this.logger=a;this.I=new g.Mi};
fk=function(a,b){ek(b).then(function(){a.I.resolve()})};
gk=function(a,b,c,d,e){dk.call(this,a);this.D=c;this.T=d;this.B="m";this.u="x";this.J=0;g.H(this,b);fk(this,e)};
hk=function(a,b,c){dk.call(this,a);this.D=b;this.B="f";this.u="z";fk(this,c)};
ik=function(a,b,c){dk.call(this,a);this.D=b;this.B="w";this.u="z";fk(this,c)};
jk=function(a,b){dk.call(this,a);this.B="e";this.u="y";b instanceof ck?(a=b.code+":"+b.message+":"+b.stack,b=b.code+":_"+Ji(b.message)+":_"+Ji(b.stack)):(a=b.message+":"+b.stack,b="_"+Ji(b.message)+":_"+Ji(b.stack||""));this.D=new Uint8Array(g.Cf(("WE:"+a).substring(0,2048)));this.J=new Uint8Array(g.Cf(("WE:"+b).substring(0,2048)))};
kk=function(a,b,c){dk.call(this,a);this.D=b;this.clientState=c;this.B="S";this.u="q"};
ek=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
lk=function(a,b){return Promise.race([a,ek(12E4).then(b)])};
mk=function(a){this.j=void 0;this.C=new g.Mi;this.state=1;this.B=0;this.u=void 0;this.ox=a.ox;this.cU=a.cU;this.onError=a.onError;this.logger=a.V$a?new Gi:new Hi(a.Wg,a.bR)};
Ega=function(a,b){var c=Dga(a);return new mk({Wg:a,ox:c,onError:b,bR:void 0})};
Fga=function(a,b,c){var d=window.webpocb;if(!d)throw new ck(4,Error("PMD:Undefined"));d=d(Nf(og(b,1)));if(!(d instanceof Function))throw new ck(16,Error("APF:Failed"));return new gk(a.logger,c,d,Gg(b,3),1E3*Gg(b,2))};
Gga=function(a,b){return lk(a.logger.sL("c",void 0===b?1:b,Wfa(a.ox)),function(){return Promise.reject(new ck(10,"JVZ:Timeout"))})};
Hga=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,w,x,z,B;return g.A(function(C){switch(C.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Lh(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){C.Ia(4);break}g.qa(C,5);a.state=3;a.B=e-1;return g.y(C,a.u&&1===e?a.u:Gga(a,e),7);case 7:return f=C.u,a.u=void 0,a.state=4,h=new Fi(a.logger,"b"),g.y(C,Rfa(f),8);case 8:return l=new Ni({challenge:f}),a.state=5,g.y(C,lk(l.snapshot({}),function(){return Promise.reject(new ck(15,"MDA:Timeout"))}),9);
case 9:return m=C.u,h.done(),a.state=6,g.y(C,lk(a.logger.sL("g",e,Yfa(a.ox,m)),function(){return Promise.reject(new ck(10,"BWB:Timeout"))}),10);
case 10:n=C.u;a.state=7;p=new Fi(a.logger,"i");if(Jg(n,4)){l.dispose();var G=new ik(a.logger,Jg(n,4),1E3*Gg(n,2))}else Gg(n,3)?G=Fga(a,n,l):(l.dispose(),G=new hk(a.logger,Nf(og(n,1)),1E3*Gg(n,2)));q=G;p.done();w=r=void 0;null==(w=(r=a).cU)||w.call(r,Nf(og(n,1)));a.state=8;return C.return(q);case 5:x=g.ua(C);b=x instanceof ck?x:x instanceof Di?new ck(11,x):new ck(12,x);a.logger.tB(b.code);B=z=void 0;null==(B=(z=a).onError)||B.call(z,b);a:{if(x instanceof Di)switch(x.code){case 2:case 13:case 14:case 4:break;
default:G=!1;break a}G=!0}if(!G)throw b;return g.y(C,ek(d.getValue()),11);case 11:g.Nh(d);case 3:e++;C.Ia(2);break;case 4:throw b;}})};
Iga=function(a){var b,c,d,e;g.A(function(f){switch(f.j){case 1:return b=void 0,g.qa(f,4),g.y(f,Hga(a),6);case 6:b=f.u;g.ra(f,5);break;case 4:if(c=g.ua(f),d=c instanceof Error?c:Error(String(c)),a.j){a.logger.tB(13);f.Ia(0);break}else a.logger.tB(14),b=new jk(a.logger,d);case 5:return e=void 0,null==(e=a.j)||e.dispose(),a.j=b,a.C.resolve(),g.y(f,a.j.I.promise,1)}})};
Jga=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.u=c}};
Kga=function(a,b,c,d,e){var f=window,h=c?"//web.archive.org/web/20230104105643/https://pagead2.googlesyndication.com/bg/"+g.pe(c)+".js":"";c=f.document;var l={};b&&(l._scs_=b);l._bgu_=h;l._bgp_=d;l._li_="v_h.3.0.0.0";e&&(l._upb_=e);(b=f.GoogleTyFxhY)&&"function"==typeof b.push||(b=f.GoogleTyFxhY=[]);b.push(l);f=ze(c).createElement("SCRIPT");f.type="text/javascript";f.async=!0;a=Bba(g.Ed("//web.archive.org/web/20230104105643/https://tpc.googlesyndication.com/sodar/%{path}"),{path:g.pe(a)+".js"});g.Wi(f,a);c.getElementsByTagName("head")[0].appendChild(f)};
Lga=function(a){var b={};g.Fb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
waa(a,function(c){return null===b[c.event]})};
nk=function(){this.Zd=0;this.j=!1;this.u=-1;this.Bu=!1;this.Kj=0};
ok=function(){this.Ed=null;this.j=!1};
pk=function(a){ok.call(this);this.u=a};
qk=function(){ok.call(this)};
rk=function(){ok.call(this)};
sk=function(){this.j={};this.u=!0;this.B={}};
tk=function(a,b,c){a.j[b]||(a.j[b]=new pk(c));return a.j[b]};
Mga=function(a){a.j.queryid||(a.j.queryid=new rk)};
uk=function(a,b,c){(a=a.j[b])&&a.setValue(c)};
vk=function(a,b){if(g.Rc(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()};
wk=function(a){var b={},c=g.Kc(a.j,function(d){return d.j});
g.Jc(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.Ed?String(d.Ed):"";0<d.length&&(b[e]=d)},a);
return b};
Nga=function(a){a=wk(a);var b=[];g.Jc(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Pga=function(a){tk(a,"od",Oga);tk(a,"opac",xk).j=!0;tk(a,"sbeos",xk).j=!0;tk(a,"prf",xk).j=!0;tk(a,"mwt",xk).j=!0;tk(a,"iogeo",xk)};
Qga=function(){this.j=this.ls=null};
yk=function(){};
Ak=function(){if(!zk())throw Error();};
zk=function(){return!(!Bk||!Bk.performance)};
Ck=function(a){return a?a.passive&&Rga()?a:a.capture||!1:!1};
Dk=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Ck(d)),!0):!1};
Ek=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Sga=function(){};
Tga=function(){return Xb&&ac?ac.mobile:!Fk()&&(hc("iPod")||hc("iPhone")||hc("Android")||hc("IEMobile"))};
Fk=function(){return Xb&&ac?!ac.mobile&&(hc("iPad")||hc("Android")||hc("Silk")):hc("iPad")||hc("Android")&&!hc("Mobile")||hc("Silk")};
Gk=function(a){try{return!!a&&null!=a.location.href&&zc(a,"foo")}catch(b){return!1}};
Hk=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
Vga=function(){var a=[];Hk(Uga,function(b){a.push(b)});
return a};
Wga=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
Zga=function(){var a=Xga("IFRAME"),b={};g.Fb(Yga(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
Xga=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
$ga=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Gk(a)&&(b=a);return b};
dha=function(a){a=a||Ik();for(var b=new aha(g.D.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&bha.test(f.url)&&(c=f);if(f.url&&!f.bL){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new cha(b,e,c)};
Ik=function(){var a=g.D,b=[],c=null;do{var d=a;if(Gk(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new aha(e||""));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.D;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.bL=!0);return b};
cha=function(a,b,c){this.j=a;this.u=b;this.B=c};
aha=function(a,b){this.url=a;this.bL=!!b;this.depth=null};
Jk=function(){this.B="&";this.u={};this.C=0;this.j=[]};
Kk=function(a,b){var c={};c[a]=b;return[c]};
eha=function(a,b,c,d,e){var f=[];Hk(a,function(h,l){(h=Lk(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Lk=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(Lk(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(eha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
fha=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1};
Mk=function(a,b){this.j=a;this.depth=b};
hha=function(){function a(l,m){return null==l?m:l}
var b=Ik(),c=Math.max(b.length-1,0),d=dha(b);b=d.j;var e=d.u,f=d.B,h=[];f&&h.push(new Mk([f.url,f.bL?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Mk([e.url,2],0));b.url&&b!=f&&h.push(new Mk([b.url,0],a(b.depth,c)));d=g.Lg(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=Wga(b.url))&&d.push([new Mk([e,1],a(b.depth,c))]);d.push([]);return g.Lg(d,function(l){return gha(c,l)})};
gha=function(a,b){g.Nk(b,function(e){return 0<=e.depth});
var c=Ok(b,function(e,f){return Math.max(e,f.depth)},-1),d=Baa(c+2);
d[0]=a;g.Fb(b,function(e){return d[e.depth+1]=e.j});
return d};
iha=function(){var a=void 0===a?hha():a;return a.map(function(b){return Lk(b)})};
jha=function(a){var b=!1;b=void 0===b?!1:b;Bk.google_image_requests||(Bk.google_image_requests=[]);var c=Xga("IMG",Bk.document);b&&(c.attributionsrc="");c.src=a;Bk.google_image_requests.push(c)};
Pk=function(a){var b="Dg";if(a.Dg&&a.hasOwnProperty(b))return a.Dg;var c=new a;a.Dg=c;a.hasOwnProperty(b);return c};
Qk=function(){this.u=new Sga;this.j=zk()?new Ak:new yk};
kha=function(){Rk();var a=Bk.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Bk.setInterval&&"function"===typeof Bk.clearInterval&&"function"===typeof Bk.setTimeout&&"function"===typeof Bk.clearTimeout)};
lha=function(){Rk();return iha()};
mha=function(){};
Rk=function(){return Pk(mha).getContext()};
Sk=function(a){g.M.call(this,a)};
nha=function(a){this.B=a;this.j=-1;this.u=this.C=0};
Tk=function(a,b){return function(){var c=g.ya.apply(0,arguments);if(-1<a.j)return b.apply(null,g.u(c));try{return a.j=a.B.j.now(),b.apply(null,g.u(c))}finally{a.C+=a.B.j.now()-a.j,a.j=-1,a.u+=1}}};
oha=function(a,b){this.u=a;this.B=b;this.j=new nha(a)};
pha=function(){this.j={}};
qha=function(){var a=Uk().flags.j[Vk.key];if("proto"===Vk.valueType){try{var b=JSON.parse(a);if(Array.isArray(b))return b}catch(c){}return Vk.defaultValue}return typeof a===typeof Vk.defaultValue?a:Vk.defaultValue};
uha=function(){this.B=void 0;this.u=this.I=0;this.D=-1;this.featureSet=new sk;tk(this.featureSet,"mv",rha).j=!0;tk(this.featureSet,"omid",xk);tk(this.featureSet,"epoh",xk).j=!0;tk(this.featureSet,"epph",xk).j=!0;tk(this.featureSet,"umt",xk).j=!0;tk(this.featureSet,"phel",xk).j=!0;tk(this.featureSet,"phell",xk).j=!0;tk(this.featureSet,"oseid",sha).j=!0;var a=this.featureSet;a.j.sloi||(a.j.sloi=new qk);a.j.sloi.j=!0;tk(this.featureSet,"mm",Wk);tk(this.featureSet,"ovms",tha).j=!0;tk(this.featureSet,
"xdi",xk).j=!0;tk(this.featureSet,"amp",xk).j=!0;tk(this.featureSet,"prf",xk).j=!0;tk(this.featureSet,"gtx",xk).j=!0;tk(this.featureSet,"mvp_lv",xk).j=!0;tk(this.featureSet,"ssmol",xk).j=!0;tk(this.featureSet,"fmd",xk).j=!0;this.j=new oha(Rk(),this.featureSet);this.C=!1;this.flags=new pha};
Uk=function(){return Pk(uha)};
vha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Jk)var e=c;else e=new Jk,Hk(c,function(h,l){var m=e,n=m.C++;h=Kk(l,h);m.j.push(n);m.u[n]=h});
var f=e.Se(a.u,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(Rk(),jha(f))}catch(h){}};
wha=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
xha=function(){var a=void 0===a?g.D:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Ra()};
yha=function(){var a=void 0===a?g.D:a;return(a=a.performance)&&a.now?a.now():null};
zha=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.taskId=this.slotId=void 0};
Yk=function(){var a=window;this.events=[];this.u=a||g.D;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.j=Xk()||(null!=b?b:1>Math.random())};
Aha=function(a){a&&Zk&&Xk()&&(Zk.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Zk.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Bha=function(){var a=$k;this.j=al;this.yR="jserror";this.xN=!0;this.RI=null;this.u=this.uL;this.Cc=void 0===a?null:a};
Cha=function(a,b,c){var d=bl;return Tk(Uk().j.j,function(){try{if(d.Cc&&d.Cc.j){var e=d.Cc.start(a.toString(),3);var f=b();d.Cc.end(e)}else f=b()}catch(l){var h=d.xN;try{Aha(e),h=d.u(a,new cl(el(l)),void 0,c)}catch(m){d.uL(217,m)}if(!h)throw l;}return f})()};
fl=function(a,b,c,d){return Tk(Uk().j.j,function(){var e=g.ya.apply(0,arguments);return Cha(a,function(){return b.apply(c,e)},d)})};
el=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b};
cl=function(a){wha.call(this,Error(a),{message:a})};
Dha=function(){Bk&&"undefined"!=typeof Bk.google_measure_js_timing&&(Bk.google_measure_js_timing||$k.disable())};
Eha=function(a){bl.RI=function(b){g.Fb(a,function(c){c(b)})}};
Fha=function(a,b){return Cha(a,b)};
gl=function(a,b){return fl(a,b)};
hl=function(a,b,c,d){bl.uL(a,b,c,d)};
il=function(){return Date.now()-Gha};
Hha=function(){var a=Uk().B,b=0<=jl?il()-jl:-1,c=kl?il()-ll:-1,d=0<=ml?il()-ml:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];hl(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
nl=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
ol=function(a){return a.right-a.left};
pl=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};
tl=function(a,b,c){b instanceof g.he?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
ul=function(a,b,c){var d=new nl(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c};
vl=function(a,b,c,d,e,f,h,l){this.C=a;this.J=b;this.B=c;this.I=d;this.j=e;this.D=f;this.u=h;this.T=l};
Jha=function(a){var b=a!==a.top,c=a.top===$ga(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),cba(Iha,function(h){return"function"===typeof f[h]})||(e=1));
return{Em:f,compatibility:e,s6:d}};
Kha=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
Lha=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.ke(b.innerWidth,b.innerHeight)).round():eca(b||window).round()}catch(d){return new g.ke(-12245933,-12245933)}};
wl=function(a,b,c){try{a&&(b=b.top);var d=Lha(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new nl(f,f,f,f);var h=gca(ze(b.document).j),l=h.x,m=h.y;return new nl(m,l+f,m+e,l)}catch(n){return new nl(-12245933,-12245933,-12245933,-12245933)}};
g.xl=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
yl=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
g.Al=function(a,b,c){if("string"===typeof b)(b=zl(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=zl(c,d);f&&(c.style[f]=e)}};
zl=function(a,b){var c=Mha[b];if(!c){var d=Zba(b);c=d;void 0===a.style[d]&&(d=(g.Fc?"Webkit":Bl?"Moz":g.Je?"ms":null)+aca(d),void 0!==a.style[d]&&(c=d));Mha[b]=c}return c};
g.Cl=function(a,b){var c=a.style[Zba(b)];return"undefined"!==typeof c?c:a.style[zl(a,b)]||""};
Dl=function(a,b){var c=ye(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
El=function(a,b){return Dl(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Gl=function(a,b,c){if(b instanceof g.he){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Fl(d,!1);a.style.top=g.Fl(b,!1)};
Hl=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Nha=function(a){if(g.Je&&!g.Cc(8))return a.offsetParent;var b=ye(a),c=El(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=El(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
g.Il=function(a){var b=ye(a),c=new g.he(0,0);var d=b?ye(b):document;d=!g.Je||g.Cc(9)||"CSS1Compat"==ze(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Hl(a);b=gca(ze(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Pha=function(a,b){var c=new g.he(0,0),d=Le(ye(a));if(!zc(d,"parent"))return c;do{var e=d==b?g.Il(a):Oha(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c};
g.Jl=function(a,b){a=Qha(a);b=Qha(b);return new g.he(a.x-b.x,a.y-b.y)};
Oha=function(a){a=Hl(a);return new g.he(a.left,a.top)};
Qha=function(a){if(1==a.nodeType)return Oha(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.he(a.clientX,a.clientY)};
g.Kl=function(a,b,c){if(b instanceof g.ke)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Fl(b,!0);a.style.height=g.Fl(c,!0)};
g.Fl=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Ll=function(a){var b=Rha;if("none"!=El(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a};
Rha=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Fc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Hl(a),new g.ke(a.right-a.left,a.bottom-a.top)):new g.ke(b,c)};
g.Ml=function(a,b){a.style.display=b?"":"none"};
Nl=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Sha=function(a){return new nl(a.top,a.right,a.bottom,a.left)};
Tha=function(a){var b=a.top||0,c=a.left||0;return new nl(b,c+(a.width||0),b+(a.height||0),c)};
Ol=function(a){return null!=a&&0<=a&&1>=a};
Uha=function(){var a=g.Wb();return a?Pl("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return Pb(a,b)})||Pb(a,"OMI/")&&!Pb(a,"XiaoMi/")?!0:Pb(a,"Presto")&&Pb(a,"Linux")&&!Pb(a,"X11")&&!Pb(a,"Android")&&!Pb(a,"Mobi"):!1};
Vha=function(){this.B=!Gk(Bk.top);this.isMobileDevice=Fk()||Tga();var a=Ik();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Xh(a[a.length-1].url)||"":"";this.j=new nl(0,0,0,0);this.C=new g.ke(0,0);this.D=new g.ke(0,0);this.J=new nl(0,0,0,0);this.I=0;this.T=!1;this.u=!(!Bk||!Jha(Bk).Em);this.update(Bk)};
Wha=function(a,b){b&&b.screen&&(a.C=new g.ke(b.screen.width,b.screen.height))};
Xha=function(a,b){var c=a.j?new g.ke(ol(a.j),a.j.getHeight()):new g.ke(0,0);b=void 0===b?Bk:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var r=new g.ke(e,d)}catch(w){r=new g.ke(-12245933,-12245933)}a.D=r};
Sl=function(){var a=Ql();if(0<a.I||a.T)return!0;a=Rk().u.isVisible();var b=0===Ek(Rl);return a||b};
Ql=function(){return Pk(Vha)};
Tl=function(a){this.B=a;this.u=0;this.j=null};
Ul=function(a,b,c){this.B=a;this.Pa=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new ul(-1,!0,this);this.j=this;this.T=b;this.ea=this.Z=!1;this.Ba="uk";this.Aa=!1;this.I=!0};
Vl=function(a,b){g.nb(a.D,b)||(a.D.push(b),b.Dx(a.j),b.Or(a.C),b.Ho()&&(a.Z=!0))};
Yha=function(a){a=a.j;a.AP();a.zP();var b=Ql();b.J=wl(!1,a.B,b.isMobileDevice);Xha(Ql(),a.B);a.C.j=a.dS()};
Zha=function(a){a.Z=a.D.length?Pl(a.D,function(b){return b.Ho()}):!1};
$ha=function(a){var b=g.ub(a.D);g.Fb(b,function(c){c.Or(a.C)})};
Wl=function(a){var b=g.ub(a.D);g.Fb(b,function(c){c.Dx(a.j)});
a.j!=a||$ha(a)};
Xl=function(a,b,c,d){this.element=a;this.j=new nl(0,0,0,0);this.C=new nl(0,0,0,0);this.u=b;this.featureSet=c;this.oa=d;this.ea=!1;this.timestamp=-1;this.J=new vl(b.C,this.element,this.j,new nl(0,0,0,0),0,0,il(),0)};
Yl=function(a){this.D=!1;this.j=a;this.C=function(){}};
aia=function(a,b,c){this.u=void 0===c?0:c;this.j=a;this.Ed=null==b?"":b};
bia=function(a){switch(Math.trunc(a.u)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
cia=function(a,b){return a.u<b.u?!0:a.u>b.u?!1:a.j<b.j?!0:a.j>b.j?!1:typeof a.Ed<typeof b.Ed?!0:typeof a.Ed>typeof b.Ed?!1:a.Ed<b.Ed};
Zl=function(){this.B=0;this.j=[];this.u=!1};
dia=function(a,b){(0,g.Fb)(b.j,function(c){a.add(c.j,c.Ed,bia(c))})};
$l=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Hk(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
am=function(a){var b=eia;a.u&&(g.Cb(a.j,function(c,d){return cia(d,c)?1:cia(c,d)?-1:0}),a.u=!1);
return Ok(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
eia=function(a){var b=a.j;a=a.Ed;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.nb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
fia=function(a){var b=void 0===b?!0:b;this.j=new Zl;void 0!==a&&dia(this.j,a);b&&this.j.add("v",bm,-16)};
gia=function(a){var b=[],c=[];g.Jc(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
return b.concat(c)};
hia=function(){if(bm&&"unreleased"!==bm)return bm};
iia=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=hia();a=c?a+"&v="+encodeURIComponent(c):a}b=a=a.substring(0,b);Rk();jha(b)};
jia=function(){this.j=0};
kia=function(a,b,c){(0,g.Fb)(a.B,function(d){var e=a.j;if(!d.j&&(d.B(b,c),d.C())){d.j=!0;var f=d.u(),h=new Zl;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.D);d=Pk(jia);h.add("i",d.j++);h.add("adk",e);$l(h,f);e=new fia(h);iia(e)}})};
cm=function(){this.u=this.B=this.C=this.j=0};
dm=function(a){this.u=a=void 0===a?lia:a;this.j=g.Lg(this.u,function(){return new cm})};
em=function(a,b){return mia(a,function(c){return c.j},void 0===b?!0:b)};
gm=function(a,b){return fm(a,b,function(c){return c.j})};
nia=function(a,b){return mia(a,function(c){return c.B},void 0===b?!0:b)};
hm=function(a,b){return fm(a,b,function(c){return c.B})};
im=function(a,b){return fm(a,b,function(c){return c.u})};
oia=function(a){g.Fb(a.j,function(b){b.u=0})};
mia=function(a,b,c){a=g.Lg(a.j,function(d){return b(d)});
return c?a:pia(a)};
fm=function(a,b,c){var d=g.jb(a.u,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
pia=function(a){return g.Lg(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
jm=function(){this.u=new dm;this.Pa=new cm;this.oa=this.J=-1;this.Xa=1E3;this.gb=new dm([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ba=this.ya=-1};
km=function(a,b){return nia(a.u,void 0===b?!0:b)};
lm=function(a,b,c,d){var e=void 0===e?!1:e;c=fl(d,c);Dk(a,b,c,{capture:e})};
nm=function(a,b){b=mm(b);return 0===b?0:mm(a)/b};
mm=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
qia=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.Ve(a)||a){var d=ye(a),e=d&&Le(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
ria=function(a,b,c){if(!a||!b)return!1;b=tl(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Gk(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Kha())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=ye(c))&&b.defaultView&&b.defaultView.frameElement)&&qia(b,a);var d=a===c;a=!d&&a&&Ze(a,function(e){return e===c});
return!(b||d||a)};
sia=function(a,b,c,d){return Ql().B?!1:0>=ol(a)||0>=a.getHeight()?!0:c&&d?Fha(208,function(){return ria(a,b,c)}):!1};
om=function(a,b,c){g.E.call(this);this.position=tia.clone();this.yF=this.FE();this.rL=-2;this.J6=Date.now();this.XV=-1;this.lastUpdateTime=b;this.pF=null;this.nA=!1;this.HF=null;this.opacity=-1;this.requestSource=c;this.Q6=!1;this.xL=function(){};
this.mW=function(){};
this.jj=new Qga;this.jj.ls=a;this.jj.j=a;this.Wr=!1;this.St={EL:null,DL:null};this.BV=!0;this.CC=null;this.Gx=this.I1=!1;Uk().I++;this.lh=this.nK();this.UV=-1;this.gf=null;this.hasCompleted=this.F1=!1;this.featureSet=new sk;Pga(this.featureSet);uia(this);1==this.requestSource?uk(this.featureSet,"od",1):uk(this.featureSet,"od",0)};
uia=function(a){a=a.jj.ls;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:via&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+$ba()):!!a.getAttribute("data-"+$ba());b&&(Ql().u=!0)};
pm=function(a,b){b!=a.Gx&&(a.Gx=b,a=Ql(),b?a.I++:0<a.I&&a.I--)};
wia=function(a,b){if(a.gf){if(b.getName()===a.gf.getName())return;a.gf.dispose();a.gf=null}b=b.create(a.jj.j,a.featureSet,a.Ho());if(b=null!=b&&b.VH()?b:null)a.gf=b};
xia=function(a,b,c){if(!a.pF||-1==a.lastUpdateTime||-1===b.u||-1===a.pF.u)return 0;a=b.u-a.pF.u;return a>c?0:a};
yia=function(a,b,c){if(a.gf){a.gf.Pq();var d=a.gf.J,e=d.C,f=e.j;if(null!=d.I){var h=d.B;a.HF=new g.he(h.left-f.left,h.top-f.top)}f=a.JG()?Math.max(d.j,d.D):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.XR(d);a.pF=d;a.La(f,b,c,!1,h,e,d.T)}};
zia=function(a){if(a.nA&&a.CC){var b=1==vk(a.featureSet,"od"),c=Ql().j,d=a.CC,e=a.gf?a.gf.getName():"ns",f=new g.ke(ol(c),c.getHeight());c=a.JG();a={y6:e,HF:a.HF,l7:f,JG:c,Zd:a.lh.Zd,e7:b};if(b=d.u){b.Pq();e=b.J;f=e.C.j;var h=null,l=null;null!=e.I&&f&&(h=e.B,h=new g.he(h.left-f.left,h.top-f.top),l=new g.ke(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={y6:b.getName(),HF:h,l7:l,JG:c,e7:!1,Zd:e}}else c=null;c&&kia(d,a,c)}};
Aia=function(a,b,c){b&&(a.xL=b);c&&(a.mW=c)};
g.qm=function(){};
g.rm=function(a){return{value:a,done:!1}};
Bia=function(){this.C=this.j=this.B=this.u=this.D=0};
Cia=function(a){var b={};var c=g.Ra()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
Dia=function(){nk.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
sm=function(a){return Ol(a.volume)&&0<a.volume};
tm=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return Eia(f,b,c)}};
um=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Fia=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
Eia=function(a,b,c){return void 0===c||c?g.vm(a,function(d,e){return g.nb(b,e)}):g.Lg(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
wm=function(){this.u=this.j=""};
Gia=function(){};
xm=function(a,b){var c={};if(void 0!==a)if(null!=b)for(var d in b){var e=b[d];d in Object.prototype||null!=e&&(c[d]="function"===typeof e?e(a):a[e])}else g.$c(c,a);return am($l(new Zl,c))};
Hia=function(){var a={};this.u=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a);this.j={};for(var b in this.u)0<this.u[b][1]&&(this.j[b]=0);this.B=0};
ym=function(a,b){var c=a.u[b],d=c[1];a.B+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
Iia=function(a){var b=g.Pc(a.u),c=0,d;for(d in a.j)g.nb(b,d)&&1==a.j[d]&&(c+=a.u[d][1],a.j[d]=2);return c};
Jia=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.u[c][1]}return b};
zm=function(){this.j=this.u=0};
Am=function(){jm.call(this);this.B=new cm;this.Ma=this.Z=this.Aa=0;this.T=-1;this.kb=new cm;this.D=new cm;this.j=new dm;this.I=this.C=-1;this.ea=new cm;this.Xa=2E3;this.Ka=new zm;this.Wa=new zm;this.Va=new zm};
Bm=function(a,b,c){var d=a.Ma;kl||c||-1==a.T||(d+=b-a.T);return d};
Kia=function(){this.B=!1};
Cm=function(a,b){this.B=!1;this.C=a;this.Z=b;this.D=0};
Dm=function(a,b){Cm.call(this,a,b);this.J=[]};
Em=function(a,b,c,d){Xl.call(this,a,b,c,d)};
Fm=function(a,b,c){Xl.call(this,null,a,b,c);this.I=a.isActive();this.D=0};
Gm=function(a){return[a.top,a.left,a.bottom,a.right]};
Hm=function(a,b,c,d,e,f,h){f=void 0===f?null:f;h=void 0===h?[]:h;om.call(this,b,c,d);this.xM=e;this.DJ=0;this.oh={};this.Ag=new Hia;this.EW={};this.Mh="";this.Wa=null;this.Fb=!1;this.j=[];this.Yp=f;this.I=h;this.C=null;this.B=-1;this.Ma=this.Z=void 0;this.oa=this.ea=0;this.Ba=-1;this.gb=this.Xa=!1;this.Aa=this.T=this.u=this.bz=this.tb=0;new dm;this.Ka=this.Pa=0;this.Va=-1;this.gi=0;this.J=g.vd;this.ya=[this.FE()];this.Rb=2;this.Jv={};this.Jv.pause="p";this.Jv.resume="r";this.Jv.skip="s";this.Jv.mute=
"m";this.Jv.unmute="um";this.Jv.exitfullscreen="ef";this.D=null;this.kb=!1};
Im=function(a){a.hasCompleted=!0;0!=a.gi&&(a.gi=3)};
Jm=function(a){return void 0===a?a:Number(a)?Nl(a,3):0};
Km=function(a,b){return a.ya[null!=b&&b<a.ya.length?b:a.ya.length-1]};
Lia=function(a){var b=!!vk(Uk().featureSet,"umt");return a.Z||!b&&!a.Ma?0:1};
Mia=function(a,b){a.Sp()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.J(a)||{};c=void 0!==c.currentTime?c.currentTime:a.ea;var d=c-a.ea,e=0;0<=d?(a.oa+=b,a.Ka+=Math.max(b-d,0),e=Math.min(d,a.oa)):a.Pa+=Math.abs(d);0!=d&&(a.oa=0);-1==a.Va&&0<d&&(a.Va=0<=ml?il()-ml:-1);a.ea=c;return e};
Nia=function(a,b){Pl(a.I,function(c){return c.C==b.C})||a.I.push(b)};
Oia=function(a){var b=gm(a.Mi().j,1);return Lm(a,b)};
Lm=function(a,b,c){return 15E3<=b?!0:a.Xa?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.Ba?b>=a.Ba:!1:!1};
Pia=function(a){var b=Nl(a.lh.Zd,2),c=a.Ag.B,d=a.lh,e=Km(a),f=Jm(e.C),h=Jm(e.I),l=Jm(d.volume),m=Nl(e.J,2),n=Nl(e.oa,2),p=Nl(d.Zd,2),q=Nl(e.ya,2),r=Nl(e.Ba,2);d=Nl(d.Kj,2);a=a.Ir().clone();a.round();e=km(e,!1);return{k7:b,gB:c,BF:f,vF:h,Tz:l,CF:m,wF:n,Zd:p,DF:q,xF:r,Kj:d,position:a,FF:e}};
Ria=function(a,b){Qia(a.j,b,function(){return{k7:0,gB:void 0,BF:-1,vF:-1,Tz:-1,CF:-1,wF:-1,Zd:-1,DF:-1,xF:-1,Kj:-1,position:void 0,FF:[]}});
a.j[b]=Pia(a)};
Qia=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Rm=function(a,b,c){var d=a.EW[b];if(null!=d)return d;d=Sia(a,b);var e=Tc(Qm,function(f){return f==b});
a=Tia(a,d,d,c,Uia[Qm[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Sm=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Tia=function(a,b,c,d,e){if(a.Wr)return{"if":0,vs:0};var f=a.Ir().clone();f.round();var h=Ql(),l=Uk(),m=a.Mi(),n=a.gf?a.gf.getName():"ns",p={};p["if"]=h.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.J6;p.p=[f.top,f.left,f.bottom,f.right];p.tos=em(m.u,!1);p.mtos=km(m);p.mcvt=m.Pa.B;p.ps=void 0;f=Bm(m,il(),a.Sp());p.vht=f;p.mut=m.kb.B;p.a=Jm(a.lh.volume);p.mv=Jm(m.I);p.fs=a.Gx?1:0;p.ft=m.ea.j;p.at=m.D.j;p.as=0<m.C?1:0;p.atos=em(m.j);p.ssb=em(m.gb,!1);p.amtos=nia(m.j,!1);p.uac=a.tb;p.vpt=m.B.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=Lm(a,m.B.j,!0)?1:0;p.efpf=a.Rb;if("gsv"==n||"nis"==n)n=a.gf,0<n.D&&(p.nnut=n.D);p.tcm=Lia(a);p.nmt=a.Pa;p.bt=a.Ka;p.pst=a.Va;p.vpaid=a.Z;p.dur=a.B;p.vmtime=a.ea;p.is=a.Ag.B;1<=a.j.length&&(p.i0=a.j[0].gB,p.a0=[a.j[0].Tz],p.c0=[a.j[0].Zd],p.ss0=[a.j[0].Kj],n=a.j[0].position,p.p0=n?Gm(n):void 0);2<=a.j.length&&(p.i1=a.j[1].gB,p.a1=Sm(a.j[1].BF,a.j[1].Tz,a.j[1].vF),p.c1=Sm(a.j[1].CF,a.j[1].Zd,a.j[1].wF),p.ss1=Sm(a.j[1].DF,a.j[1].Kj,a.j[1].xF),n=a.j[1].position,p.p1=n?
Gm(n):void 0,p.mtos1=a.j[1].FF);3<=a.j.length&&(p.i2=a.j[2].gB,p.a2=Sm(a.j[2].BF,a.j[2].Tz,a.j[2].vF),p.c2=Sm(a.j[2].CF,a.j[2].Zd,a.j[2].wF),p.ss2=Sm(a.j[2].DF,a.j[2].Kj,a.j[2].xF),n=a.j[2].position,p.p2=n?Gm(n):void 0,p.mtos2=a.j[2].FF);4<=a.j.length&&(p.i3=a.j[3].gB,p.a3=Sm(a.j[3].BF,a.j[3].Tz,a.j[3].vF),p.c3=Sm(a.j[3].CF,a.j[3].Zd,a.j[3].wF),p.ss3=Sm(a.j[3].DF,a.j[3].Kj,a.j[3].xF),n=a.j[3].position,p.p3=n?Gm(n):void 0,p.mtos3=a.j[3].FF);p.cs=Jia(a.Ag);b&&(p.ic=Iia(a.Ag),p.dvpt=m.B.u,p.dvs=im(m.u,
.5),p.dfvs=im(m.u,1),p.davs=im(m.j,.5),p.dafvs=im(m.j,1),c&&(m.B.u=0,oia(m.u),oia(m.j)),a.Tp()&&(p.dtos=m.Aa,p.dav=m.Z,p.dtoss=a.DJ+1,c&&(m.Aa=0,m.Z=0,a.DJ++)),p.dat=m.D.u,p.dft=m.ea.u,c&&(m.D.u=0,m.ea.u=0));p.ps=[h.D.width,h.D.height];p.bs=[ol(h.j),h.j.getHeight()];p.scs=[h.C.width,h.C.height];p.dom=h.domain;a.bz&&(p.vds=a.bz);if(0<a.I.length||a.Yp)b=g.ub(a.I),a.Yp&&b.push(a.Yp),p.pings=g.Lg(b,function(q){return q.toString()});
b=g.Lg(g.vm(a.I,function(q){return q.I()}),function(q){return q.getId()});
xaa(b);p.ces=b;a.u&&(p.vmer=a.u);a.T&&(p.vmmk=a.T);a.Aa&&(p.vmiec=a.Aa);p.avms=a.gf?a.gf.getName():"ns";a.gf&&g.$c(p,a.gf.Dr());d?(p.c=Nl(a.lh.Zd,2),p.ss=Nl(a.lh.Kj,2)):p.tth=il()-Via;p.mc=Nl(m.oa,2);p.nc=Nl(m.J,2);p.mv=Jm(m.I);p.nv=Jm(m.C);p.lte=Nl(a.rL,2);d=Km(a,e);km(m);p.qmtos=km(d);p.qnc=Nl(d.J,2);p.qmv=Jm(d.I);p.qnv=Jm(d.C);p.qas=0<d.C?1:0;p.qi=a.Mh;p.avms||(p.avms="geo");p.psm=m.Ka.j;p.psv=m.Ka.getValue();p.psfv=m.Wa.getValue();p.psa=m.Va.getValue();l=Nga(l.featureSet);l.length&&(p.veid=l);
a.D&&g.$c(p,Cia(a.D));p.avas=a.vE();p.vs=a.fS();return p};
Sia=function(a,b){if(g.nb(Wia,b))return!0;var c=a.oh[b];return void 0!==c?(a.oh[b]=!0,!c):!1};
Yia=function(){this.j={};var a=Le();Tm(this,a,document);var b=Xia();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Tm(this,c,c.document);Tm(this,a.top,a.top.document)}}catch(d){}};
Xia=function(){var a=document.documentElement;try{if(!Gk(Le().top))return"2";var b=[],c=Le(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
Tm=function(a,b,c){lm(c,"mousedown",function(){return Zia(a)},301);
lm(b,"scroll",function(){return $ia(a)},302);
lm(c,"touchmove",function(){return aja(a)},303);
lm(c,"mousemove",function(){return bja(a)},304);
lm(c,"keydown",function(){return cja(a)},305)};
Zia=function(a){g.Jc(a.j,function(b){1E5<b.B||++b.B})};
$ia=function(a){g.Jc(a.j,function(b){1E5<b.j||++b.j})};
aja=function(a){g.Jc(a.j,function(b){1E5<b.j||++b.j})};
cja=function(a){g.Jc(a.j,function(b){1E5<b.u||++b.u})};
bja=function(a){g.Jc(a.j,function(b){1E5<b.C||++b.C})};
dja=function(){this.j=[];this.u=[]};
Um=function(a,b){return g.ib(a.j,function(c){return c.Mh==b})};
eja=function(a,b){return b?g.ib(a.j,function(c){return c.jj.ls==b}):null};
fja=function(a,b){return g.ib(a.u,function(c){return 2==c.Un()&&c.Mh==b})};
Wm=function(){var a=Vm;return 0==a.j.length?a.u:0==a.u.length?a.j:g.tb(a.u,a.j)};
gja=function(a,b){a=1==b.Un()?a.j:a.u;var c=gb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.gf&&b.gf.Fz(),b.dispose(),!0):!1};
hja=function(a){var b=Vm;if(gja(b,a)){switch(a.Un()){case 0:var c=function(){return null};
case 2:c=function(){return fja(b,a.Mh)};
break;case 1:c=function(){return Um(b,a.Mh)}}for(var d=c();d;d=c())gja(b,d)}};
ija=function(a,b){var c=Vm;a=g.vm(a,(void 0===b?0:b)?function(d){return!Um(c,d.Mh)}:function(d){return!eja(c,d.jj.ls)});
c.j.push.apply(c.j,g.u(a))};
jja=function(a){var b=[];g.Fb(a,function(c){Pl(Vm.j,function(d){return d.jj.ls===c.jj.ls&&d.Mh===c.Mh})||(Vm.j.push(c),b.push(c))})};
Xm=function(){this.j=this.u=null};
kja=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.j=g.ib(a.u,function(d){return null!=d&&d.BP()});
a.j&&(a.j.init(c)?Yha(a.j.j):b(a.j.j.vx(),a.j));return null!=a.j};
Ym=function(a){a=lja(a);Yl.call(this,a.length?a[a.length-1]:new Ul(Bk,0));this.B=a;this.u=null};
lja=function(a){if(!a.length)return[];a=(0,g.vm)(a,function(c){return null!=c&&c.Ez()});
for(var b=1;b<a.length;b++)Vl(a[b-1],a[b]);return a};
Zm=function(a,b,c,d){Xl.call(this,a,b,c,d);this.Z=this.T=this.D=this.I=this.B=null};
$m=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
nja=function(a){if(!a.element)return!1;var b=a.element,c=a.u.j.B,d=Uk().j.j;a.B=new c.IntersectionObserver(Tk(d,function(e){return an(a,e)}),mja);
d=Tk(d,function(){a.B.unobserve(b);a.B.observe(b);an(a,$m(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.observe(b)):c.MutationObserver&&(a.D=new g.D.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);an(a,$m(a));return!0};
an=function(a,b){try{if(b.length){a.T||(a.T=il());var c=oja(b),d=Pha(a.element,a.u.j.B),e=d.x,f=d.y;a.j=new nl(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=Sha(c.intersectionRect);a.C=tl(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.Fz(),hl(299,l)}};
oja=function(a){return Ok(a,function(b,c){return b.time>c.time?b:c},a[0])};
bn=function(a){a=void 0===a?Bk:a;Yl.call(this,new Ul(a,2))};
cn=function(){var a=pja();Ul.call(this,Bk.top,a,"geo")};
pja=function(){Uk();var a=Ql();return a.B||a.u?0:2};
qja=function(){};
dn=function(){this.done=!1;this.j={d_:0,AQ:0,Y$a:0,tR:0,OK:-1,N_:0,M_:0,O_:0,x6:0};this.D=null;this.I=!1;this.B=null;this.J=0;this.u=new Tl(this)};
fn=function(){var a=en;a.I||(a.I=!0,rja(a,function(){return a.C.apply(a,g.u(g.ya.apply(0,arguments)))}),a.C())};
sja=function(){Pk(qja);var a=Pk(Xm);null!=a.j&&a.j.j?Yha(a.j.j):Ql().update(Bk)};
gn=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{sja();var d=il();Uk().D=d;if(null!=Pk(Xm).j)for(var e=0;e<b.length;e++)yia(b[e],d,c);for(d=0;d<b.length;d++)zia(b[d]);++a.j.tR}finally{c?g.Fb(b,function(f){f.lh.Zd=0}):a.u.schedule()}}};
rja=function(a,b){if(!a.D){b=fl(142,b);Rk();var c;Rl.visibilityState?c="visibilitychange":Rl.mozVisibilityState?c="mozvisibilitychange":Rl.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Dk(Rl,c,b,{capture:!1})&&(a.D=b)}};
tja=function(){var a=Pk(Xm);if(null!=a.j){var b=Wm(),c=a.j;g.Fb(b,function(d){return wia(d,c)})}};
uja=function(a,b){a=a.J;kl&&(a+=b-ll);return a};
wja=function(a){a=void 0===a?function(){return{}}:a;
bl.yR="av-js";al.j=.01;Eha([function(b){var c=Uk(),d={};d=(d.bin=c.u,d.type="error",d);c=wk(c.featureSet);if(!en.B){var e=en,f=Bk.document,h=0<=jl?il()-jl:-1,l=il();-1==e.j.OK&&(h=l);var m=Ql(),n=Uk(),p=wk(n.featureSet),q=Wm();try{if(0<q.length){var r=m.j;r&&(p.bs=[ol(r),r.getHeight()]);var w=m.D;w&&(p.ps=[w.width,w.height]);Bk.screen&&(p.scs=[Bk.screen.width,Bk.screen.height])}else p.url=encodeURIComponent(Bk.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=jl;p.bin=n.u;void 0!==Bk.google_osd_load_pub_page_exp&&(p.olpp=Bk.google_osd_load_pub_page_exp);p.deb=[1,e.j.d_,e.j.AQ,e.j.tR,e.j.OK,0,e.u.u,e.j.N_,e.j.M_,e.j.O_,e.j.x6,-1].join(";");p.tvt=uja(e,l);m.u&&(p.inapp=1);if(null!==Bk&&Bk!=Bk.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Bk.location.href.substring(0,512)));var x=m.J;p.is=[ol(x),x.getHeight()]}}catch(z){p.error=1}en.B=p}r=g.Yc(en.B);w=Uk().j;1==vk(w.B,"prf")?(x=new Sk,e=w.j,f=0,-1<e.j&&(f=e.B.j.now()-e.j),e=e.C+f,cg(e),
x=rg(x,1,e,0),e=w.j,x=rg(x,5,-1<e.j?e.u+1:e.u,0),x=rg(x,2,w.u.j.B(),0),x=rg(x,3,w.u.j.u(),0),w=rg(x,4,w.u.j.j(),0),x={},w=(x.pf=g.Df(g.vh(w,vja)),x)):w={};g.$c(r,w);g.$c(b,d,c,r,a());if(d=hia())c={},g.$c(b,(c.v=encodeURIComponent(d),c))}])};
yja=function(){var a=xja||Bk;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};
hn=function(){var a="youtube.player.web_20221218_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20221218_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20221218_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20221218_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20221218_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:null};
zja=function(){return"av.default_js".includes("ima_html5_sdk")?{Nn:"ima",Pn:null}:"av.default_js".includes("ima_native_sdk")?{Nn:"nima",Pn:null}:"av.default_js".includes("admob-native-video-javascript")?{Nn:"an",Pn:null}:"youtube.player.web_20221218_00_RC00".includes("cast_js_sdk")?{Nn:"cast",Pn:hn()}:"youtube.player.web_20221218_00_RC00".includes("youtube.player.web")?{Nn:"yw",Pn:hn()}:"youtube.player.web_20221218_00_RC00".includes("outstream_web_client")?{Nn:"out",Pn:hn()}:"youtube.player.web_20221218_00_RC00".includes("drx_rewarded_web")?
{Nn:"r",Pn:hn()}:"youtube.player.web_20221218_00_RC00".includes("gam_native_web_video")?{Nn:"n",Pn:hn()}:"youtube.player.web_20221218_00_RC00".includes("admob_interstitial_video")?{Nn:"int",Pn:hn()}:{Nn:"j",Pn:null}};
ln=function(a,b){var c={sv:"942"};null!==jn&&(c.v=jn);c.cb=Aja;c.nas=Vm.j.length;c.msg=a;void 0!==b&&(a=Bja(b))&&(c.e=kn[a]);return c};
mn=function(a){return Jb(a,"custom_metric_viewable")};
Bja=function(a){var b=mn(a)?"custom_metric_viewable":a.toLowerCase();return Tc(Qm,function(c){return c==b})};
Cja=function(){this.j=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
Fja=function(a){try{var b=a.split(",");return b.length>g.Pc(Dja).length?null:Ok(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Eja[d[0]]||!Eja[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
Gja=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?hm(b.j,a.j):hm(b.u,a.j);case "tos":return a.u?gm(b.j,a.j):gm(b.u,a.j)}return 0};
nn=function(a,b,c,d){Cm.call(this,b,d);this.J=a;this.T=c};
Hja=function(){};
on=function(){};
pn=function(){};
qn=function(a){Cm.call(this,"fully_viewable_audible_half_duration_impression",a)};
rn=function(a){this.j=a};
sn=function(a,b){Cm.call(this,a,b)};
tn=function(a){Dm.call(this,"measurable_impression",a)};
un=function(){rn.apply(this,arguments)};
vn=function(a,b,c){Fm.call(this,a,b,c)};
wn=function(a){a=void 0===a?Bk:a;Yl.call(this,new Ul(a,2))};
xn=function(a,b,c){Fm.call(this,a,b,c)};
yn=function(a){a=void 0===a?Bk:a;Yl.call(this,new Ul(a,2))};
zn=function(){Ul.call(this,Bk,2,"mraid");this.Ka=0;this.oa=this.ya=!1;this.J=null;this.u=Jha(this.B);this.C.j=new nl(0,0,0,0);this.Ma=!1};
An=function(a,b,c){a.Ms("addEventListener",b,c)};
Lja=function(a){Uk().C=!!a.Ms("isViewable");An(a,"viewableChange",Ija);"loading"===a.Ms("getState")?An(a,"ready",Jja):Kja(a)};
Kja=function(a){"string"===typeof a.u.Em.AFMA_LIDAR?(a.ya=!0,Mja(a)):(a.u.compatibility=3,a.J="nc",a.fail("w"))};
Mja=function(a){a.oa=!1;var b=1==vk(Uk().featureSet,"rmmt"),c=!!a.Ms("isViewable");(b?!c:1)&&Rk().setTimeout(gl(524,function(){a.oa||(Nja(a),hl(540,Error()),a.J="mt",a.fail("w"))}),500);
Oja(a);An(a,a.u.Em.AFMA_LIDAR,Pja)};
Oja=function(a){var b=1==vk(Uk().featureSet,"sneio"),c=void 0!==a.u.Em.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Em.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Em.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Em.AFMA_LIDAR_EXP_1=!b)};
Nja=function(a){a.Ms("removeEventListener",a.u.Em.AFMA_LIDAR,Pja);a.ya=!1};
Qja=function(a,b){if("loading"===a.Ms("getState"))return new g.ke(-1,-1);b=a.Ms(b);if(!b)return new g.ke(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.ke(-1,-1):new g.ke(a,b)};
Jja=function(){try{var a=Pk(zn);a.Ms("removeEventListener","ready",Jja);Kja(a)}catch(b){hl(541,b)}};
Pja=function(a,b){try{var c=Pk(zn);c.oa=!0;var d=a?new nl(a.y,a.x+a.width,a.y+a.height,a.x):new nl(0,0,0,0);var e=il(),f=Sl();var h=new ul(e,f,c);h.j=d;h.volume=b;c.Or(h)}catch(l){hl(542,l)}};
Ija=function(a){var b=Uk(),c=Pk(zn);a&&!b.C&&(b.C=!0,c.Ma=!0,c.J&&c.fail("w",!0))};
Bn=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.J=(a.start=this.n1,a.firstquartile=this.g1,a.midpoint=this.j1,a.thirdquartile=this.o1,a.complete=this.d1,a.error=this.e1,a.pause=this.wM,a.resume=this.iV,a.skip=this.m1,a.viewable_impression=this.Vn,a.mute=this.Uy,a.unmute=this.Uy,a.fullscreen=this.h1,a.exitfullscreen=this.f1,a.fully_viewable_audible_half_duration_impression=this.Vn,a.measurable_impression=this.Vn,a.abandon=this.wM,a.engagedview=this.Vn,a.impression=this.Vn,a.creativeview=
this.Vn,a.progress=this.Uy,a.custom_metric_viewable=this.Vn,a.bufferstart=this.wM,a.bufferfinish=this.iV,a.audio_measurable=this.Vn,a.audio_audible=this.Vn,a);a={};this.T=(a.overlay_resize=this.l1,a.abandon=this.EK,a.close=this.EK,a.collapse=this.EK,a.overlay_unmeasurable_impression=function(b){return Rm(b,"overlay_unmeasurable_impression",Sl())},a.overlay_viewable_immediate_impression=function(b){return Rm(b,"overlay_viewable_immediate_impression",Sl())},a.overlay_unviewable_impression=function(b){return Rm(b,
"overlay_unviewable_impression",Sl())},a.overlay_viewable_end_of_session_impression=function(b){return Rm(b,"overlay_viewable_end_of_session_impression",Sl())},a);
Uk().u=3;Rja(this);this.B=!1};
Cn=function(a,b,c,d){b=a.jC(null,d,!0,b);b.C=c;ija([b],a.B);return b};
Sja=function(a,b,c){Lga(b);var d=a.j;g.Fb(b,function(e){var f=g.Lg(e.criteria,function(h){var l=Fja(h);if(null==l)h=null;else if(h=new Cja,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Gaa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
Pl(f,function(h){return null==h})||Nia(c,new nn(e.id,e.event,f,d))})};
Tja=function(){var a=[],b=Uk();a.push(Pk(cn));vk(b.featureSet,"mvp_lv")&&a.push(Pk(zn));b=[new wn,new yn];b.push(new Ym(a));b.push(new bn(Bk));return b};
Uja=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=il(),c=Uk(),d=Ql();jl=b;c.B=79463069;"o"!==a.u&&(xja=$ga(Bk));if(kha()){en.j.AQ=0;en.j.OK=il()-b;var e=Tja(),f=Pk(Xm);f.u=e;kja(f,function(){Dn()})?en.done||(tja(),Vl(f.j.j,a),fn()):d.B?Dn():fn()}else En=!0}catch(h){throw Vm.reset(),h;
}}};
Gn=function(a){en.u.cancel();Fn=a;en.done=!0};
Hn=function(a){if(a.u)return a.u;var b=Pk(Xm).j;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
In=function(a,b,c){if(null==a.j)return b.bz|=4,!1;a=Vja(a.j,c,b);b.bz|=a;return 0==a};
Dn=function(){var a=[new bn(Bk)],b=Pk(Xm);b.u=a;kja(b,function(){Gn("i")})?en.done||(tja(),fn()):Gn("i")};
Wja=function(a,b){if(!a.Fb){var c=Rm(a,"start",Sl());c=a.xM.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="942";null!==jn&&(d.v=jn);Yh(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=yja();Yh(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//web.archive.org/web/20230104105643/https://pagead2.googlesyndication.com/pagead/gen_204?"+am($l(new Zl,d));iia(b);a.Fb=!0}};
Jn=function(a,b,c){gn(en,[a],!Sl());Ria(a,c);4!=c&&Qia(a.ya,c,a.FE);return Rm(a,b,Sl())};
Rja=function(a){wja(function(){var b=Xja();null!=a.u&&(b.sdk=a.u);var c=Pk(Xm);null!=c.j&&(b.avms=c.j.getName());return b})};
Yja=function(a,b,c,d){if(a.B)var e=Um(Vm,b);else e=eja(Vm,c),null!==e&&e.Mh!==b&&(a.iA(e),e=null);e||(b=a.jC(c,il(),!1,b),0==Vm.u.length&&(Uk().B=79463069),jja([b]),e=b,e.C=Hn(a),d&&(e.Wa=d));return e};
Zja=function(a){g.Fb(Vm.j,function(b){3==b.gi&&a.iA(b)})};
$ja=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
Xja=function(){var a=Ql(),b={},c={},d={};return Object.assign({},(b.sv="942",b),null!==jn&&(c.v=jn,c),(d["if"]=a.B?"1":"0",d.nas=String(Vm.j.length),d))};
Kn=function(a){Cm.call(this,"audio_audible",a)};
Ln=function(a){Dm.call(this,"audio_measurable",a)};
Mn=function(){rn.apply(this,arguments)};
Nn=function(){};
aka=function(a){this.j=a};
Vja=function(a,b,c){a=a.u();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==jn&&(d.v=jn,d),(e.sv="942",e.cb=Aja,e.e=bka(b),e));e=Rm(c,b,Sl());g.$c(d,e);c.EW[b]=e;d=2==c.Un()?gia(d).join("&"):c.xM.j(d).j;try{return a(c.Mh,d,b),0}catch(f){return 2}}else return 1};
bka=function(a){var b=mn(a)?"custom_metric_viewable":a;a=Tc(Qm,function(c){return c==b});
return kn[a]};
On=function(){Bn.call(this);this.I=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
cka=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&Sja(a,c,b)};
dka=function(a,b,c){var d=Um(Vm,b);d||(d=c.opt_nativeTime||-1,d=Cn(a,b,Hn(a),d),c.opt_osdId&&(d.Wa=c.opt_osdId));return d};
eka=function(a,b,c){var d=Um(Vm,b);d||(d=Cn(a,b,"n",c.opt_nativeTime||-1));return d};
fka=function(a,b){var c=Um(Vm,b);c||(c=Cn(a,b,"h",-1));return c};
gka=function(a){Uk();switch(Hn(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
jka=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.$c(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.ME(b,c);c=f?f.xM:a.yJ();if(e.opt_bounds)return c.j(ln("ol",d));if(void 0!==d)if(void 0!==Bja(d))if(En)b=ln("ue",d);else if(Uja(a),"i"==Fn)b=ln("i",d),b["if"]=0;else if(b=a.ME(b,e))if(a.B&&3==b.gi)b="stopped";else{b:{"i"==Fn&&(b.Wr=!0,a.hN());f=e.opt_fullscreen;void 0!==f&&pm(b,!!f);var h;if(f=!Ql().u)(f=Pb(g.Wb(),"CrKey")||Pb(g.Wb(),"PlayStation")||Pb(g.Wb(),"Roku")||Uha()||Pb(g.Wb(),"Xbox"))||
(f=g.Wb(),f=Pb(f,"AppleTV")||Pb(f,"Apple TV")||Pb(f,"CFNetwork")||Pb(f,"tvOS")),f||(f=g.Wb(),f=Pb(f,"sdk_google_atv_x86")||Pb(f,"Android TV")),f=!f;f&&(Rk(),f=0===Ek(Rl));if(h=f){switch(b.Un()){case 1:Wja(b,"pv");break;case 2:a.SM(b)}Gn("pv")}f=d.toLowerCase();if(h=!h)h=vk(Uk().featureSet,"ssmol")&&"loaded"===f?!1:g.nb(hka,f);if(h&&0==b.gi){"i"!=Fn&&(en.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;ml=h="number"===typeof h?h:il();b.nA=!0;var l=Sl();b.gi=1;b.oh={};b.oh.start=!1;b.oh.firstquartile=
!1;b.oh.midpoint=!1;b.oh.thirdquartile=!1;b.oh.complete=!1;b.oh.resume=!1;b.oh.pause=!1;b.oh.skip=!1;b.oh.mute=!1;b.oh.unmute=!1;b.oh.viewable_impression=!1;b.oh.measurable_impression=!1;b.oh.fully_viewable_audible_half_duration_impression=!1;b.oh.fullscreen=!1;b.oh.exitfullscreen=!1;b.DJ=0;l||(b.Mi().T=h);gn(en,[b],!l)}(h=b.Jv[f])&&ym(b.Ag,h);vk(Uk().featureSet,"fmd")||g.nb(ika,f)&&b.Yp&&b.Yp.u(b,null);switch(b.Un()){case 1:var m=mn(f)?a.J.custom_metric_viewable:a.J[f];break;case 2:m=a.T[f]}if(m&&
(d=m.call(a,b,e,d),vk(Uk().featureSet,"fmd")&&g.nb(ika,f)&&b.Yp&&b.Yp.u(b,null),void 0!==d)){e=ln(void 0,f);g.$c(e,d);d=e;break b}d=void 0}3==b.gi&&(a.B?b.gf&&b.gf.Fz():a.iA(b));b=d}else b=ln("nf",d);else b=void 0;else En?b=ln("ue"):f?(b=ln(),g.$c(b,Tia(f,!0,!1,!1))):b=ln("nf");return"string"===typeof b?a.B&&"stopped"===b?Pn:c.j():c.j(b)};
Qn=function(a,b){b&&(a.C=b)};
kka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.u,b};
Rn=function(a,b,c){c=void 0===c?{}:c;a=jka(Pk(On),b,c,a);return kka(a)};
lka=function(a,b){b=void 0===b?!1:b;var c=Pk(On).ME(a,{});c?Im(c):b&&(a=Pk(On).jC(null,il(),!1,a),a.gi=3,jja([a]))};
oka=function(a){if(g.Lb(g.qe(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.xj(a)}catch(c){return null!=g.ib(mka,function(d){return 0<a.search(d)})}return b.I.match(nka)?!0:null!=g.ib(mka,function(c){return null!=a.match(c)})};
g.Sn=function(a,b){return a.replace(pka,function(c,d){try{var e=g.Wc(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.Lb(g.qe(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Un=function(a){g.rd.call(this);var b=this;this.I=this.u=0;this.Cm=null!=a?a:{Uh:function(e,f){return setTimeout(e,f)},
Zl:function(e){clearTimeout(e)}};
var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.C=function(){return g.A(function(e){return g.y(e,Tn(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.I||qka(this)};
rka=function(){var a=g.Vn;Un.instance||(Un.instance=new Un(a));return Un.instance};
qka=function(a){a.I=a.Cm.Uh(function(){var b;return g.A(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ia(3):g.y(c,Tn(a),3):g.y(c,Tn(a),3);qka(a);g.pa(c)})},3E4)};
Tn=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.A(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,h=!1,g.qa(l,2,3),d&&(a.u=a.Cm.Uh(function(){d.abort()},b||2E4)),g.y(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.haa(l);a.D=void 0;a.u&&(a.Cm.Zl(a.u),a.u=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.iaa(l,0);break;case 2:g.ua(l),h=!1,l.Ia(3)}})})};
Wn=function(){this.data_=[];this.j=-1};
ska=function(a){-1===a.j&&(a.j=Ok(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.j};
g.Xn=function(a,b,c){g.E.call(this);this.j=null;this.C=!1;this.I=a;this.D=c;this.u=b||window;this.B=(0,g.Oa)(this.vY,this)};
g.Yn=function(a){a.isActive()||a.start()};
tka=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
uka=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.Zn=function(a,b,c){g.E.call(this);this.j=a;this.di=b||0;this.u=c;this.B=(0,g.Oa)(this.DP,this)};
g.$n=function(a,b){a.isActive()||a.start(b)};
g.ao=function(a){a.stop();a.DP()};
g.bo=function(a){a.isActive()&&g.ao(a)};
co=function(a,b){this.j=a[g.D.Symbol.iterator]();this.u=b};
vka=function(a,b){return new co(a,b)};
wka=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
eo=function(a){return a.classList?a.classList:wka(a).match(/\S+/g)||[]};
g.fo=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.go=function(a,b){return a.classList?a.classList.contains(b):g.nb(eo(a),b)};
g.ho=function(a,b){if(a.classList)a.classList.add(b);else if(!g.go(a,b)){var c=wka(a);g.fo(a,c+(0<c.length?" "+b:b))}};
g.io=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.ho(a,e)});
else{var c={};Array.prototype.forEach.call(eo(a),function(e){c[e]=!0});
Array.prototype.forEach.call(b,function(e){c[e]=!0});
b="";for(var d in c)b+=0<b.length?" "+d:d;g.fo(a,b)}};
g.jo=function(a,b){a.classList?a.classList.remove(b):g.go(a,b)&&g.fo(a,Array.prototype.filter.call(eo(a),function(c){return c!=b}).join(" "))};
g.ko=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.jo(a,c)}):g.fo(a,Array.prototype.filter.call(eo(a),function(c){return!g.nb(b,c)}).join(" "))};
g.lo=function(a,b,c){c?g.ho(a,b):g.jo(a,b)};
xka=function(a,b){var c=!g.go(a,b);g.lo(a,b,c)};
po=function(a){if(a instanceof mo||a instanceof no||a instanceof oo)return a;if("function"==typeof a.next)return new mo(function(){return a});
if("function"==typeof a[Symbol.iterator])return new mo(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Vj)return new mo(function(){return a.Vj()});
throw Error("Not an iterator or iterable.");};
mo=function(a){this.u=a};
no=function(a){this.u=a};
oo=function(a){mo.call(this,function(){return a});
this.B=a};
g.qo=function(a,b){this.u={};this.j=[];this.Xs=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof g.qo)for(c=a.Ap(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
yka=function(a,b){return a===b};
so=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];ro(a.u,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.size!=a.j.length){var e={};for(c=b=0;b<a.j.length;)d=a.j[b],ro(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
ro=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.to=function(){g.rd.call(this);this.j=0;this.endTime=this.startTime=null};
zka=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return"string"===typeof c?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
g.Al(a,"transition",b.join(","))};
uo=function(a,b,c,d,e){g.to.call(this);this.u=a;this.I=b;this.J=c;this.D=d;this.T=Array.isArray(e)?e:[e]};
Aka=function(a,b,c,d){return new uo(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Cka=function(a){a=Tb(a);if(""==a)return null;if(Kb(a,"url("))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;for(var b=/([\-\w]+)\(/g,c;c=b.exec(a);)if(!(c[1].toLowerCase()in Bka))return null}return a};
Eo=function(a,b){a=g.D[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
Dka=function(a){var b=g.D.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Eka=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Je&&10>document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)};
Jka=function(a){if(!a)return Sd;var b=document.createElement("div").style;Fka(a).forEach(function(c){var d=g.Fc&&c in Gka?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Jb(d,"--")||Jb(d,"var")||(c=Eka(Hka,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Cka(c),null!=c&&Eka(Ika,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return Uba(g.Ed("Output of CSS sanitizer"),b.cssText||"")};
Fka=function(a){g.Ka(a)?a=g.ub(a):(a=g.Pc(a),g.qb(a,"cssText"));return a};
g.Go=function(a){var b,c=b=0,d=!1;a=a.split(Kka);for(var e=0;e<a.length;e++){var f=a[e];g.Fo.test(f)?(b++,c++):Lka.test(f)?d=!0:Mka.test(f)?c++:Nka.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
Ho=function(a,b,c,d,e,f,h,l){this.j=a;this.J=b;this.B=c;this.D=d;this.C=e;this.I=f;this.u=h;this.T=l};
Io=function(a,b){if(0==b)return a.j;if(1==b)return a.u;var c=fe(a.j,a.B,b),d=fe(a.B,a.C,b);a=fe(a.C,a.u,b);c=fe(c,d,b);d=fe(d,a,b);return fe(c,d,b)};
Oka=function(a,b){var c=(b-a.j)/(a.u-a.j);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,h=0;8>h;h++){f=Io(a,c);var l=(Io(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(h=0;1E-6<Math.abs(f-b)&&8>h;h++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=Io(a,c);return c};
Jo=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Ko=function(a){return(a=a.exec(g.Wb()))?a[1]:""};
Lo=function(a){return 0<=g.Vb(Pka,a)};
g.Mo=function(a){g.E.call(this);this.I=1;this.B=[];this.C=0;this.j=[];this.u={};this.J=!!a};
Qka=function(a,b,c){g.hf(function(){a.apply(b,c)})};
g.No=function(a){this.j=a};
Oo=function(a){this.j=a};
Rka=function(a){this.data=a};
Ska=function(a){return void 0===a||a instanceof Rka?a:new Rka(a)};
Po=function(a){this.j=a};
g.Tka=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Ra()||!!b&&b>g.Ra()};
g.Qo=function(a){this.j=a};
Uka=function(){};
Ro=function(){};
So=function(a){this.j=a};
To=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
Vka=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
Vo=function(a,b){this.u=a;this.j=null;if(g.Je&&!g.Cc(9)){Uo||(Uo=new g.qo);this.j=Uo.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),Uo.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}};
Wo=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Wka[b]})};
Xo=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
Yo=function(a,b){this.u=a;this.j=b+"::"};
g.Zo=function(a){var b=new To;return b.isAvailable()?a?new Yo(b,a):b:null};
$o=function(a,b){this.j=a;this.Ed=b};
ap=function(a){this.j=[];if(a)a:{if(a instanceof ap){var b=a.Ap();a=a.ll();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new $o(b[d],a[d]));break a}}else b=g.Pc(a),a=Oc(a);for(c=0;c<b.length;c++)this.Dh(b[c],a[c])}};
Xka=function(){ap.apply(this,arguments)};
bp=function(){};
Yka=function(a){var b,c,d=a.length,e=0;for(b=0;b<d;b++){var f=a.charCodeAt(b);if(55296===(f&64512)&&b+1<d){var h=a.charCodeAt(b+1);56320===(h&64512)&&(f=65536+(f-55296<<10)+(h-56320),b++)}e+=128>f?1:2048>f?2:65536>f?3:4}var l=new cp.ot(e);for(b=c=0;c<e;b++)f=a.charCodeAt(b),55296===(f&64512)&&b+1<d&&(h=a.charCodeAt(b+1),56320===(h&64512)&&(f=65536+(f-55296<<10)+(h-56320),b++)),128>f?l[c++]=f:(2048>f?l[c++]=192|f>>>6:(65536>f?l[c++]=224|f>>>12:(l[c++]=240|f>>>18,l[c++]=128|f>>>12&63),l[c++]=128|f>>>
6&63),l[c++]=128|f&63);return l};
dp=function(a){for(var b=a.length;0<=--b;)a[b]=0};
ep=function(a,b,c,d,e){this.JV=a;this.q0=b;this.o0=c;this.d0=d;this.Z1=e;this.AS=a&&a.length};
fp=function(a,b){this.uR=a;this.Xx=0;this.Ts=b};
gp=function(a,b){a.Pf[a.pending++]=b&255;a.Pf[a.pending++]=b>>>8&255};
hp=function(a,b,c){a.Ah>16-c?(a.Ei|=b<<a.Ah&65535,gp(a,a.Ei),a.Ei=b>>16-a.Ah,a.Ah+=c-16):(a.Ei|=b<<a.Ah&65535,a.Ah+=c)};
ip=function(a,b,c){hp(a,c[2*b],c[2*b+1])};
Zka=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1};
$ka=function(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=Zka(d[e]++,e))};
ala=function(a){var b;for(b=0;286>b;b++)a.mj[2*b]=0;for(b=0;30>b;b++)a.Zt[2*b]=0;for(b=0;19>b;b++)a.Xh[2*b]=0;a.mj[512]=1;a.gq=a.Oy=0;a.ul=a.matches=0};
bla=function(a){8<a.Ah?gp(a,a.Ei):0<a.Ah&&(a.Pf[a.pending++]=a.Ei);a.Ei=0;a.Ah=0};
dla=function(a,b,c){bla(a);gp(a,c);gp(a,~c);cp.Qw(a.Pf,a.window,b,c,a.pending);a.pending+=c};
ela=function(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]};
jp=function(a,b,c){for(var d=a.Zf[c],e=c<<1;e<=a.Mp;){e<a.Mp&&ela(b,a.Zf[e+1],a.Zf[e],a.depth)&&e++;if(ela(b,d,a.Zf[e],a.depth))break;a.Zf[c]=a.Zf[e];c=e;e<<=1}a.Zf[c]=d};
fla=function(a,b,c){var d=0;if(0!==a.ul){do{var e=a.Pf[a.hA+2*d]<<8|a.Pf[a.hA+2*d+1];var f=a.Pf[a.iL+d];d++;if(0===e)ip(a,f,b);else{var h=kp[f];ip(a,h+256+1,b);var l=lp[h];0!==l&&(f-=mp[h],hp(a,f,l));e--;h=256>e?np[e]:np[256+(e>>>7)];ip(a,h,c);l=op[h];0!==l&&(e-=pp[h],hp(a,e,l))}}while(d<a.ul)}ip(a,256,b)};
qp=function(a,b){var c=b.uR,d=b.Ts.JV,e=b.Ts.AS,f=b.Ts.d0,h,l=-1;a.Mp=0;a.Fx=573;for(h=0;h<f;h++)0!==c[2*h]?(a.Zf[++a.Mp]=l=h,a.depth[h]=0):c[2*h+1]=0;for(;2>a.Mp;){var m=a.Zf[++a.Mp]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.gq--;e&&(a.Oy-=d[2*m+1])}b.Xx=l;for(h=a.Mp>>1;1<=h;h--)jp(a,c,h);m=f;do h=a.Zf[1],a.Zf[1]=a.Zf[a.Mp--],jp(a,c,1),d=a.Zf[1],a.Zf[--a.Fx]=h,a.Zf[--a.Fx]=d,c[2*m]=c[2*h]+c[2*d],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[2*h+1]=c[2*d+1]=m,a.Zf[1]=m++,jp(a,c,1);while(2<=
a.Mp);a.Zf[--a.Fx]=a.Zf[1];h=b.uR;m=b.Xx;d=b.Ts.JV;e=b.Ts.AS;f=b.Ts.q0;var n=b.Ts.o0,p=b.Ts.Z1,q,r=0;for(q=0;15>=q;q++)a.ip[q]=0;h[2*a.Zf[a.Fx]+1]=0;for(b=a.Fx+1;573>b;b++){var w=a.Zf[b];q=h[2*h[2*w+1]+1]+1;q>p&&(q=p,r++);h[2*w+1]=q;if(!(w>m)){a.ip[q]++;var x=0;w>=n&&(x=f[w-n]);var z=h[2*w];a.gq+=z*(q+x);e&&(a.Oy+=z*(d[2*w+1]+x))}}if(0!==r){do{for(q=p-1;0===a.ip[q];)q--;a.ip[q]--;a.ip[q+1]+=2;a.ip[p]--;r-=2}while(0<r);for(q=p;0!==q;q--)for(w=a.ip[q];0!==w;)d=a.Zf[--b],d>m||(h[2*d+1]!==q&&(a.gq+=(q-
h[2*d+1])*h[2*d],h[2*d+1]=q),w--)}$ka(c,l,a.ip)};
gla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];++h<l&&n===f||(h<m?a.Xh[2*n]+=h:0!==n?(n!==e&&a.Xh[2*n]++,a.Xh[32]++):10>=h?a.Xh[34]++:a.Xh[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
hla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];if(!(++h<l&&n===f)){if(h<m){do ip(a,n,a.Xh);while(0!==--h)}else 0!==n?(n!==e&&(ip(a,n,a.Xh),h--),ip(a,16,a.Xh),hp(a,h-3,2)):10>=h?(ip(a,17,a.Xh),hp(a,h-3,3)):(ip(a,18,a.Xh),hp(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
ila=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.mj[2*c])return 0;if(0!==a.mj[18]||0!==a.mj[20]||0!==a.mj[26])return 1;for(c=32;256>c;c++)if(0!==a.mj[2*c])return 1;return 0};
rp=function(a,b,c){a.Pf[a.hA+2*a.ul]=b>>>8&255;a.Pf[a.hA+2*a.ul+1]=b&255;a.Pf[a.iL+a.ul]=c&255;a.ul++;0===b?a.mj[2*c]++:(a.matches++,b--,a.mj[2*(kp[c]+256+1)]++,a.Zt[2*(256>b?np[b]:np[256+(b>>>7)])]++);return a.ul===a.sB-1};
tp=function(a,b){a.msg=sp[b];return b};
up=function(a){for(var b=a.length;0<=--b;)a[b]=0};
vp=function(a){var b=a.state,c=b.pending;c>a.oe&&(c=a.oe);0!==c&&(cp.Qw(a.Jj,b.Pf,b.TB,c,a.by),a.by+=c,b.TB+=c,a.UN+=c,a.oe-=c,b.pending-=c,0===b.pending&&(b.TB=0))};
yp=function(a,b){var c=0<=a.Xj?a.Xj:-1,d=a.wb-a.Xj,e=0;if(0<a.level){2===a.Td.BJ&&(a.Td.BJ=ila(a));qp(a,a.nF);qp(a,a.cE);gla(a,a.mj,a.nF.Xx);gla(a,a.Zt,a.cE.Xx);qp(a,a.MQ);for(e=18;3<=e&&0===a.Xh[2*jla[e]+1];e--);a.gq+=3*(e+1)+14;var f=a.gq+3+7>>>3;var h=a.Oy+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)hp(a,b?1:0,3),dla(a,c,d);else if(4===a.strategy||h===f)hp(a,2+(b?1:0),3),fla(a,wp,xp);else{hp(a,4+(b?1:0),3);c=a.nF.Xx+1;d=a.cE.Xx+1;e+=1;hp(a,c-257,5);hp(a,d-1,5);hp(a,e-4,4);for(f=0;f<e;f++)hp(a,
a.Xh[2*jla[f]+1],3);hla(a,a.mj,c-1);hla(a,a.Zt,d-1);fla(a,a.mj,a.Zt)}ala(a);b&&bla(a);a.Xj=a.wb;vp(a.Td)};
zp=function(a,b){a.Pf[a.pending++]=b};
Ap=function(a,b){a.Pf[a.pending++]=b>>>8&255;a.Pf[a.pending++]=b&255};
kla=function(a,b){var c=a.qT,d=a.wb,e=a.wk,f=a.ET,h=a.wb>a.Ai-262?a.wb-(a.Ai-262):0,l=a.window,m=a.Ys,n=a.Fo,p=a.wb+258,q=l[d+e-1],r=l[d+e];a.wk>=a.hS&&(c>>=2);f>a.Xb&&(f=a.Xb);do{var w=b;if(l[w+e]===r&&l[w+e-1]===q&&l[w]===l[d]&&l[++w]===l[d+1]){d+=2;for(w++;l[++d]===l[++w]&&l[++d]===l[++w]&&l[++d]===l[++w]&&l[++d]===l[++w]&&l[++d]===l[++w]&&l[++d]===l[++w]&&l[++d]===l[++w]&&l[++d]===l[++w]&&d<p;);w=258-(p-d);d=p-258;if(w>e){a.Vx=b;e=w;if(w>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&0!==
--c);return e<=a.Xb?e:a.Xb};
Dp=function(a){var b=a.Ai,c;do{var d=a.JW-a.Xb-a.wb;if(a.wb>=b+(b-262)){cp.Qw(a.window,a.window,b,b,0);a.Vx-=b;a.wb-=b;a.Xj-=b;var e=c=a.TE;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Fo[--e],a.Fo[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.Td.Di)break;e=a.Td;c=a.window;f=a.wb+a.Xb;var h=e.Di;h>d&&(h=d);0===h?c=0:(e.Di-=h,cp.Qw(c,e.input,e.Su,h,f),1===e.state.wrap?e.yd=Bp(e.yd,c,h,f):2===e.state.wrap&&(e.yd=Cp(e.yd,c,h,f)),e.Su+=h,e.Iv+=h,c=h);a.Xb+=c;if(3<=a.Xb+a.Dh)for(d=a.wb-a.Dh,
a.je=a.window[d],a.je=(a.je<<a.Jp^a.window[d+1])&a.Ip;a.Dh&&!(a.je=(a.je<<a.Jp^a.window[d+3-1])&a.Ip,a.Fo[d&a.Ys]=a.head[a.je],a.head[a.je]=d,d++,a.Dh--,3>a.Xb+a.Dh););}while(262>a.Xb&&0!==a.Td.Di)};
Ep=function(a,b){for(var c;;){if(262>a.Xb){Dp(a);if(262>a.Xb&&0===b)return 1;if(0===a.Xb)break}c=0;3<=a.Xb&&(a.je=(a.je<<a.Jp^a.window[a.wb+3-1])&a.Ip,c=a.Fo[a.wb&a.Ys]=a.head[a.je],a.head[a.je]=a.wb);0!==c&&a.wb-c<=a.Ai-262&&(a.Ae=kla(a,c));if(3<=a.Ae)if(c=rp(a,a.wb-a.Vx,a.Ae-3),a.Xb-=a.Ae,a.Ae<=a.tL&&3<=a.Xb){a.Ae--;do a.wb++,a.je=(a.je<<a.Jp^a.window[a.wb+3-1])&a.Ip,a.Fo[a.wb&a.Ys]=a.head[a.je],a.head[a.je]=a.wb;while(0!==--a.Ae);a.wb++}else a.wb+=a.Ae,a.Ae=0,a.je=a.window[a.wb],a.je=(a.je<<a.Jp^
a.window[a.wb+1])&a.Ip;else c=rp(a,0,a.window[a.wb]),a.Xb--,a.wb++;if(c&&(yp(a,!1),0===a.Td.oe))return 1}a.Dh=2>a.wb?a.wb:2;return 4===b?(yp(a,!0),0===a.Td.oe?3:4):a.ul&&(yp(a,!1),0===a.Td.oe)?1:2};
Fp=function(a,b){for(var c,d;;){if(262>a.Xb){Dp(a);if(262>a.Xb&&0===b)return 1;if(0===a.Xb)break}c=0;3<=a.Xb&&(a.je=(a.je<<a.Jp^a.window[a.wb+3-1])&a.Ip,c=a.Fo[a.wb&a.Ys]=a.head[a.je],a.head[a.je]=a.wb);a.wk=a.Ae;a.OU=a.Vx;a.Ae=2;0!==c&&a.wk<a.tL&&a.wb-c<=a.Ai-262&&(a.Ae=kla(a,c),5>=a.Ae&&(1===a.strategy||3===a.Ae&&4096<a.wb-a.Vx)&&(a.Ae=2));if(3<=a.wk&&a.Ae<=a.wk){d=a.wb+a.Xb-3;c=rp(a,a.wb-1-a.OU,a.wk-3);a.Xb-=a.wk-1;a.wk-=2;do++a.wb<=d&&(a.je=(a.je<<a.Jp^a.window[a.wb+3-1])&a.Ip,a.Fo[a.wb&a.Ys]=
a.head[a.je],a.head[a.je]=a.wb);while(0!==--a.wk);a.Ou=0;a.Ae=2;a.wb++;if(c&&(yp(a,!1),0===a.Td.oe))return 1}else if(a.Ou){if((c=rp(a,0,a.window[a.wb-1]))&&yp(a,!1),a.wb++,a.Xb--,0===a.Td.oe)return 1}else a.Ou=1,a.wb++,a.Xb--}a.Ou&&(rp(a,0,a.window[a.wb-1]),a.Ou=0);a.Dh=2>a.wb?a.wb:2;return 4===b?(yp(a,!0),0===a.Td.oe?3:4):a.ul&&(yp(a,!1),0===a.Td.oe)?1:2};
lla=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.Xb){Dp(a);if(258>=a.Xb&&0===b)return 1;if(0===a.Xb)break}a.Ae=0;if(3<=a.Xb&&0<a.wb&&(d=a.wb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.wb+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&d<e;);a.Ae=258-(e-d);a.Ae>a.Xb&&(a.Ae=a.Xb)}3<=a.Ae?(c=rp(a,1,a.Ae-3),a.Xb-=a.Ae,a.wb+=a.Ae,a.Ae=0):(c=rp(a,0,a.window[a.wb]),a.Xb--,a.wb++);if(c&&(yp(a,!1),0===a.Td.oe))return 1}a.Dh=0;return 4===
b?(yp(a,!0),0===a.Td.oe?3:4):a.ul&&(yp(a,!1),0===a.Td.oe)?1:2};
mla=function(a,b){for(var c;;){if(0===a.Xb&&(Dp(a),0===a.Xb)){if(0===b)return 1;break}a.Ae=0;c=rp(a,0,a.window[a.wb]);a.Xb--;a.wb++;if(c&&(yp(a,!1),0===a.Td.oe))return 1}a.Dh=0;return 4===b?(yp(a,!0),0===a.Td.oe?3:4):a.ul&&(yp(a,!1),0===a.Td.oe)?1:2};
Gp=function(a,b,c,d,e){this.J0=a;this.Y1=b;this.t2=c;this.X1=d;this.func=e};
nla=function(){this.Td=null;this.status=0;this.Pf=null;this.wrap=this.pending=this.TB=this.zl=0;this.wd=null;this.qm=0;this.method=8;this.Rx=-1;this.Ys=this.oO=this.Ai=0;this.window=null;this.JW=0;this.head=this.Fo=null;this.ET=this.hS=this.strategy=this.level=this.tL=this.qT=this.wk=this.Xb=this.Vx=this.wb=this.Ou=this.OU=this.Ae=this.Xj=this.Jp=this.Ip=this.JK=this.TE=this.je=0;this.mj=new cp.Wo(1146);this.Zt=new cp.Wo(122);this.Xh=new cp.Wo(78);up(this.mj);up(this.Zt);up(this.Xh);this.MQ=this.cE=
this.nF=null;this.ip=new cp.Wo(16);this.Zf=new cp.Wo(573);up(this.Zf);this.Fx=this.Mp=0;this.depth=new cp.Wo(573);up(this.depth);this.Ah=this.Ei=this.Dh=this.matches=this.Oy=this.gq=this.hA=this.ul=this.sB=this.iL=0};
ola=function(a,b){if(!a||!a.state||5<b||0>b)return a?tp(a,-2):-2;var c=a.state;if(!a.Jj||!a.input&&0!==a.Di||666===c.status&&4!==b)return tp(a,0===a.oe?-5:-2);c.Td=a;var d=c.Rx;c.Rx=b;if(42===c.status)if(2===c.wrap)a.yd=0,zp(c,31),zp(c,139),zp(c,8),c.wd?(zp(c,(c.wd.text?1:0)+(c.wd.Pr?2:0)+(c.wd.extra?4:0)+(c.wd.name?8:0)+(c.wd.comment?16:0)),zp(c,c.wd.time&255),zp(c,c.wd.time>>8&255),zp(c,c.wd.time>>16&255),zp(c,c.wd.time>>24&255),zp(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),zp(c,c.wd.os&255),
c.wd.extra&&c.wd.extra.length&&(zp(c,c.wd.extra.length&255),zp(c,c.wd.extra.length>>8&255)),c.wd.Pr&&(a.yd=Cp(a.yd,c.Pf,c.pending,0)),c.qm=0,c.status=69):(zp(c,0),zp(c,0),zp(c,0),zp(c,0),zp(c,0),zp(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),zp(c,3),c.status=113);else{var e=8+(c.oO-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.wb&&(e|=32);c.status=113;Ap(c,e+(31-e%31));0!==c.wb&&(Ap(c,a.yd>>>16),Ap(c,a.yd&65535));a.yd=1}if(69===c.status)if(c.wd.extra){for(e=c.pending;c.qm<
(c.wd.extra.length&65535)&&(c.pending!==c.zl||(c.wd.Pr&&c.pending>e&&(a.yd=Cp(a.yd,c.Pf,c.pending-e,e)),vp(a),e=c.pending,c.pending!==c.zl));)zp(c,c.wd.extra[c.qm]&255),c.qm++;c.wd.Pr&&c.pending>e&&(a.yd=Cp(a.yd,c.Pf,c.pending-e,e));c.qm===c.wd.extra.length&&(c.qm=0,c.status=73)}else c.status=73;if(73===c.status)if(c.wd.name){e=c.pending;do{if(c.pending===c.zl&&(c.wd.Pr&&c.pending>e&&(a.yd=Cp(a.yd,c.Pf,c.pending-e,e)),vp(a),e=c.pending,c.pending===c.zl)){var f=1;break}f=c.qm<c.wd.name.length?c.wd.name.charCodeAt(c.qm++)&
255:0;zp(c,f)}while(0!==f);c.wd.Pr&&c.pending>e&&(a.yd=Cp(a.yd,c.Pf,c.pending-e,e));0===f&&(c.qm=0,c.status=91)}else c.status=91;if(91===c.status)if(c.wd.comment){e=c.pending;do{if(c.pending===c.zl&&(c.wd.Pr&&c.pending>e&&(a.yd=Cp(a.yd,c.Pf,c.pending-e,e)),vp(a),e=c.pending,c.pending===c.zl)){f=1;break}f=c.qm<c.wd.comment.length?c.wd.comment.charCodeAt(c.qm++)&255:0;zp(c,f)}while(0!==f);c.wd.Pr&&c.pending>e&&(a.yd=Cp(a.yd,c.Pf,c.pending-e,e));0===f&&(c.status=103)}else c.status=103;103===c.status&&
(c.wd.Pr?(c.pending+2>c.zl&&vp(a),c.pending+2<=c.zl&&(zp(c,a.yd&255),zp(c,a.yd>>8&255),a.yd=0,c.status=113)):c.status=113);if(0!==c.pending){if(vp(a),0===a.oe)return c.Rx=-1,0}else if(0===a.Di&&(b<<1)-(4<b?9:0)<=(d<<1)-(4<d?9:0)&&4!==b)return tp(a,-5);if(666===c.status&&0!==a.Di)return tp(a,-5);if(0!==a.Di||0!==c.Xb||0!==b&&666!==c.status){d=2===c.strategy?mla(c,b):3===c.strategy?lla(c,b):Hp[c.level].func(c,b);if(3===d||4===d)c.status=666;if(1===d||3===d)return 0===a.oe&&(c.Rx=-1),0;if(2===d&&(1===
b?(hp(c,2,3),ip(c,256,wp),16===c.Ah?(gp(c,c.Ei),c.Ei=0,c.Ah=0):8<=c.Ah&&(c.Pf[c.pending++]=c.Ei&255,c.Ei>>=8,c.Ah-=8)):5!==b&&(hp(c,0,3),dla(c,0,0),3===b&&(up(c.head),0===c.Xb&&(c.wb=0,c.Xj=0,c.Dh=0))),vp(a),0===a.oe))return c.Rx=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(zp(c,a.yd&255),zp(c,a.yd>>8&255),zp(c,a.yd>>16&255),zp(c,a.yd>>24&255),zp(c,a.Iv&255),zp(c,a.Iv>>8&255),zp(c,a.Iv>>16&255),zp(c,a.Iv>>24&255)):(Ap(c,a.yd>>>16),Ap(c,a.yd&65535));vp(a);0<c.wrap&&(c.wrap=-c.wrap);return 0!==
c.pending?0:1};
Ip=function(a){if(!(this instanceof Ip))return new Ip(a);a=this.options=cp.assign({level:-1,method:8,chunkSize:16384,Zs:15,g2:8,strategy:0,to:""},a||{});a.raw&&0<a.Zs?a.Zs=-a.Zs:a.K0&&0<a.Zs&&16>a.Zs&&(a.Zs+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Td=new pla;this.Td.oe=0;var b=this.Td;var c=a.level,d=a.method,e=a.Zs,f=a.g2,h=a.strategy;if(b){var l=1;-1===c&&(c=6);0>e?(l=0,e=-e):15<e&&(l=2,e-=16);if(1>f||9<f||8!==d||8>e||15<e||0>c||9<c||0>h||4<h)b=tp(b,-2);else{8===e&&(e=9);var m=
new nla;b.state=m;m.Td=b;m.wrap=l;m.wd=null;m.oO=e;m.Ai=1<<m.oO;m.Ys=m.Ai-1;m.JK=f+7;m.TE=1<<m.JK;m.Ip=m.TE-1;m.Jp=~~((m.JK+3-1)/3);m.window=new cp.ot(2*m.Ai);m.head=new cp.Wo(m.TE);m.Fo=new cp.Wo(m.Ai);m.sB=1<<f+6;m.zl=4*m.sB;m.Pf=new cp.ot(m.zl);m.hA=1*m.sB;m.iL=3*m.sB;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.Iv=b.UN=0;b.BJ=2;c=b.state;c.pending=0;c.TB=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.yd=2===c.wrap?0:1;c.Rx=0;if(!qla){d=Array(16);for(f=h=0;28>f;f++)for(mp[f]=h,e=0;e<
1<<lp[f];e++)kp[h++]=f;kp[h-1]=f;for(f=h=0;16>f;f++)for(pp[f]=h,e=0;e<1<<op[f];e++)np[h++]=f;for(h>>=7;30>f;f++)for(pp[f]=h<<7,e=0;e<1<<op[f]-7;e++)np[256+h++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)wp[2*e+1]=8,e++,d[8]++;for(;255>=e;)wp[2*e+1]=9,e++,d[9]++;for(;279>=e;)wp[2*e+1]=7,e++,d[7]++;for(;287>=e;)wp[2*e+1]=8,e++,d[8]++;$ka(wp,287,d);for(e=0;30>e;e++)xp[2*e+1]=5,xp[2*e]=Zka(e,5);rla=new ep(wp,lp,257,286,15);sla=new ep(xp,op,0,30,15);tla=new ep([],ula,0,19,7);qla=!0}c.nF=new fp(c.mj,rla);
c.cE=new fp(c.Zt,sla);c.MQ=new fp(c.Xh,tla);c.Ei=0;c.Ah=0;ala(c);c=0}else c=tp(b,-2);0===c&&(b=b.state,b.JW=2*b.Ai,up(b.head),b.tL=Hp[b.level].Y1,b.hS=Hp[b.level].J0,b.ET=Hp[b.level].t2,b.qT=Hp[b.level].X1,b.wb=0,b.Xj=0,b.Xb=0,b.Dh=0,b.Ae=b.wk=2,b.Ou=0,b.je=0);b=c}}else b=-2;if(0!==b)throw Error(sp[b]);a.header&&(b=this.Td)&&b.state&&2===b.state.wrap&&(b.state.wd=a.header);if(a.jA){var n;"string"===typeof a.jA?n=Yka(a.jA):"[object ArrayBuffer]"===vla.call(a.jA)?n=new Uint8Array(a.jA):n=a.jA;a=this.Td;
f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.Xb)b=-2;else{1===b&&(a.yd=Bp(a.yd,f,h,0));n.wrap=0;h>=n.Ai&&(0===b&&(up(n.head),n.wb=0,n.Xj=0,n.Dh=0),c=new cp.ot(n.Ai),cp.Qw(c,f,h-n.Ai,n.Ai,0),f=c,h=n.Ai);c=a.Di;d=a.Su;e=a.input;a.Di=h;a.Su=0;a.input=f;for(Dp(n);3<=n.Xb;){f=n.wb;h=n.Xb-2;do n.je=(n.je<<n.Jp^n.window[f+3-1])&n.Ip,n.Fo[f&n.Ys]=n.head[n.je],n.head[n.je]=f,f++;while(--h);n.wb=f;n.Xb=2;Dp(n)}n.wb+=n.Xb;n.Xj=n.wb;n.Dh=n.Xb;n.Xb=0;n.Ae=n.wk=2;n.Ou=0;a.Su=
d;a.input=e;a.Di=c;n.wrap=b;b=0}else b=-2;if(0!==b)throw Error(sp[b]);this.j9a=!0}};
wla=function(){var a=g.ya.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.u(g.ya.apply(0,arguments))))}})};
xla=function(){var a=g.ya.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.u(g.ya.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=wla.apply(null,g.u(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
Jp=function(){return Math.random().toString(36).substring(7).split("").join(".")};
yla=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Kp}))throw Error('Reducer "'+b+"\" 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("undefined"===typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Jp()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(Kp+' 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.'));})};
zla=function(a,b,c,d){function e(){if(q)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 m}
function f(w){if("function"!==typeof w)throw Error("Expected the listener to be a function.");if(q)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 x=!0;p===n&&(p=n.slice());p.push(w);return function(){if(x){if(q)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.");
x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(w),1);n=null}}}
function h(w){if("object"!==typeof w||null===w)var x=!1;else{for(x=w;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(w)===x}if(!x)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof w.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,w)}finally{q=!1}x=n=p;for(var z=0;z<x.length;z++)(0,x[z])();
return w}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)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.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function.");return c(zla)(a,b)}if("function"!==typeof a)throw Error("Expected the reducer to be a function.");
var l=a,m=b,n=[],p=n,q=!1;h({type:Kp});a={};var r=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(w){if("function"!==typeof w)throw Error("Expected the nextReducer to be a function.");l=w;h({type:Ala});return r},a[Bla]=function(){var w={};
return w.subscribe=function(x){function z(){x.next&&x.next(e())}
if("object"!==typeof x||null===x)throw new TypeError("Expected the observer to be an object.");z();return{unsubscribe:f(z)}},w[Bla]=function(){return this},w},a);
return r};
Dla=function(a){a=Cla(a);return g.Jd(a)};
Cla=function(a){return null===a?"null":void 0===a?"undefined":a};
Lp=function(a){g.M.call(this,a,-1,Ela)};
Mp=function(a){g.M.call(this,a)};
Fla=function(a){var b=a.split(""),c=[-1090331728,-2138817396,null,1440710951,-1859149799,-1185901338,function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
-436199404,686585324,",}})}\\",b,function(d,e){d=(d%e.length+e.length)%e.length;e.splice(d,1)},
349598002,852249597,-770041773,1426062885,1613385684,-335915533,1800283006,-198643752,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
-519029033,function(){for(var d=64,e=[];++d-e.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}e.push(String.fromCharCode(d))}return e},
b,459973519,1968971545,594168238,function(d,e,f,h,l,m,n,p,q){return f(h,l,m,n,p,q)},
98966926,2061214507,1636924065,function(d,e,f,h,l){return e(f,h,l)},
-176069428,608193050,b,1366744521,668534943,-1202923071,-1661977722,1031604792,-1893189798,-82914077,459973519,283026725,"shift",-1202923071,-471937379,-1962077330,-1564525278,24255491,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.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 e},
399714127,1123509674,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
function(d,e,f){var h=f.length;d.forEach(function(l,m,n){this.push(n[m]=f[(f.indexOf(l)-f.indexOf(this[m])+m+h--)%f.length])},e.split(""))},
392431308,297886161,null,-2012936047,"else",function(d,e,f,h,l,m,n){return d(l,m,n)},
function(d,e,f,h,l,m,n){return d(l,m,n)},
function(d){d.reverse()},
1232619296,852249597,1440710951,-576738416,-1905317793,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
function(){for(var d=64,e=[];++d-e.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:e.push(String.fromCharCode(d))}return e},
342788075,function(){for(var d=64,e=[];++d-e.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}e.push(String.fromCharCode(d))}return e},
-787812172,",}})}\\",2061406551,-156883710,function(d,e,f,h,l,m){return e(h,l,m)},
function(d,e){e.splice(e.length,0,d)},
null,-982641188,392431308,14173405];c[2]=c;c[58]=c;c[79]=c;try{try{c[14]!==1+Math.pow(6,1)-6&&(((((0,c[69])(c[2],c[39]),c[39])(c[35],c[38]),((0,c[1290+Math.pow(8,5)+-34053])(c[56],c[77],(0,c[22])()),c[39])(c[35],c[new Date("Wednesday December 31 1969 19:00:31 CDT")/1E3]),c[44])(c[30],c[43]),c[39])(c[8],c[23]),c[6])(c[56]),(((0,c[13])(c[9]),c[44])(c[52],c[56]),c[39])(c[8],c[22518-180*Math.pow(5,3)])}catch(d){}try{-1!=c[30]&&((0,c[64])((0,c[7])(c[29],c[26]),c[38],c[52],c[67]),1)||(0,c[49])((0,c[4])(c[52],
c[53]),c[73],c[52],c[78],(0,c[5])()),0>c[70]&&((((0,c[74])(c[14]),c[29])(c[54],c[20]),(0,c[24])(c[52],c[47]),c[24])(c[41],c[33]),1)||(((0,c[38])(c[Math.pow(8,5)+2054+-34746],c[17]),c[49])((0,c[4])(c[0],c[61]),c[37],c[45],c[144-Math.pow(8,3)- -388]),c[16])(c[75],c[23]),c[50]<=new Date("Wednesday December 31 1969 23:59:59 UTC")/1E3&&(0!==c[34]&&((0,c[16])(c[6],c[56]),1)||(0,c[21])(c[60%Math.pow(3,5)+-3],c[20])),2!==c[38]&&(-1!==c[2]&&(((0,c[79])(c[12],c[24]),c[44])(c[57],c[43]),"6")||(0,c[64])((0,c[5])(c[56],
c[77],(0,c[1])()),c[53],c[35],c[54]))}catch(d){(0,c[44])(c[17],c[67]),(0,c[-5738-Math.pow(2,2)- -5747])(c[56],c[10],(0,c[55])()),((0,c[6])(c[67]),c[6])(c[29])}try{-3!==c[63]&&(c[16]!=-1118+140*Math.pow(8,1)&&((0,c[60])((0,c[64])((0,c[6])(c[56]),c[53],c[-3294-Math.pow(2,1)+3331],c[33]),((0,c[39])(c[56],c[23]),c[7])(c[67],c[63]),c[64],(0,c[64])((0,c[44])(c[21],c[56]),c[28],c[21],c[332%Math.pow(4,2)+17]),c[39],c[-5471+44*Math.pow(5,3)],c[61]),1)||(0,c[27])((0,c[64])((0,c[64])((0,c[64])((0,c[53])(c[67],
c[4851-Math.pow(4,3)+new Date("Wednesday December 31 1969 22:41:34 UTC")/1E3]),c[7],c[56],c[71]),c[Math.pow(5,2)-75+94],c[51],c[43]),c[5],c[67],c[77],(0,c[20])()),c[53],((0,c[39])(c[new Date("1969-12-31T19:00:35.000-05:00")/1E3],c[18+Math.pow(6,1)+21]),c[19])(c[29],c[9]),c[67],c[50])),(0,c[64])((0,c[7])(c[62],c[15]),c[19],c[67],c[66])}catch(d){-3<=c[72]&&(0,c[64])((0,c[7])(c[35],c[49]),c[75],c[65],c[73]),0!=c[14]&&(0,c[75])(c[79],c[50])}finally{2<c[21]&&(((0,c[43])(c[51],c[72]),c[62])(c[6],c[9]),
c[42])(c[52],c[63])}try{0<c[51]&&(0,c[46])(((0,c[30])(c[58],(0,c[58])(c[54],c[0]),(0,c[58])(c[2],c[0]),(0,c[30])(c[72],(0,c[25])(c[34]),(0,c[11])(c[8],c[62]),(0,c[59])(c[81],c[54],(0,c[42])()),c[81],c[30]),c[8],c[61]),c[45])(c[57+Math.pow(6,4)+-1332],c[74]),c[197%Math.pow(1,4)- -11],((0,c[45])(c[8],c[39]),c[57])(c[8],c[23]),c[8],c[64])}catch(d){(0,c[59])(c[81],c[71],(0,c[9])())}}catch(d){return"enhanced_except_kZcB7uj-_w8_"+a}return b.join("")};
g.Np=function(a){this.name=a};
Op=function(a){g.M.call(this,a)};
Pp=function(a){g.M.call(this,a)};
Qp=function(a){g.M.call(this,a)};
Rp=function(a){g.M.call(this,a)};
Sp=function(a){g.M.call(this,a,-1,Gla)};
Tp=function(a){g.M.call(this,a,-1,Hla)};
Up=function(a){g.M.call(this,a)};
Vp=function(a){g.M.call(this,a)};
Wp=function(a){g.M.call(this,a)};
Xp=function(a){g.M.call(this,a)};
Yp=function(a){g.M.call(this,a)};
Zp=function(a){g.M.call(this,a)};
$p=function(a){g.M.call(this,a)};
aq=function(a){g.M.call(this,a)};
bq=function(a){g.M.call(this,a)};
cq=function(a){g.M.call(this,a,-1,Ila)};
dq=function(a){g.M.call(this,a,-1,Jla)};
eq=function(a){g.M.call(this,a)};
fq=function(a){g.M.call(this,a)};
gq=function(a){g.M.call(this,a)};
hq=function(a){g.M.call(this,a)};
iq=function(a){g.M.call(this,a)};
jq=function(a){g.M.call(this,a)};
kq=function(a){g.M.call(this,a,-1,Kla)};
lq=function(a){g.M.call(this,a)};
mq=function(a){g.M.call(this,a,-1,Lla)};
nq=function(a){g.M.call(this,a)};
oq=function(a){g.M.call(this,a)};
pq=function(a){g.M.call(this,a)};
qq=function(a){g.M.call(this,a)};
rq=function(a){g.M.call(this,a)};
sq=function(a){g.M.call(this,a)};
tq=function(a){g.M.call(this,a)};
uq=function(a){g.M.call(this,a)};
vq=function(a){g.M.call(this,a)};
wq=function(a){g.M.call(this,a)};
xq=function(a){g.M.call(this,a)};
yq=function(a){g.M.call(this,a)};
zq=function(a){g.M.call(this,a,-1,Mla)};
Aq=function(a){g.M.call(this,a)};
Bq=function(a){g.M.call(this,a)};
Cq=function(a){g.M.call(this,a)};
Dq=function(a){g.M.call(this,a,-1,Nla)};
Eq=function(a){g.M.call(this,a)};
Fq=function(a){g.M.call(this,a,-1,Ola)};
Gq=function(a){g.M.call(this,a)};
Mq=function(a){g.M.call(this,a)};
Nq=function(a){g.M.call(this,a)};
Oq=function(a){g.M.call(this,a)};
Pq=function(a){g.M.call(this,a)};
Qq=function(a){g.M.call(this,a)};
Rq=function(a){g.M.call(this,a)};
Sq=function(a){g.M.call(this,a)};
Tq=function(a){g.M.call(this,a)};
Uq=function(a){g.M.call(this,a)};
Vq=function(a){g.M.call(this,a)};
Wq=function(a){g.M.call(this,a)};
Xq=function(a){g.M.call(this,a)};
Yq=function(a){g.M.call(this,a)};
Zq=function(a){g.M.call(this,a)};
$q=function(a){g.M.call(this,a)};
ar=function(a){g.M.call(this,a)};
br=function(a){g.M.call(this,a)};
Qla=function(a){g.M.call(this,a,-1,Pla)};
g.cr=function(a){g.M.call(this,a,-1,Rla)};
dr=function(a){g.M.call(this,a,-1,Sla)};
er=function(a){g.M.call(this,a,-1,Tla)};
fr=function(a){g.M.call(this,a)};
gr=function(a){g.M.call(this,a,-1,Ula)};
hr=function(a){g.M.call(this,a,-1,Vla)};
ir=function(a){g.M.call(this,a)};
jr=function(a){g.M.call(this,a)};
kr=function(a){g.M.call(this,a)};
lr=function(a){g.M.call(this,a)};
mr=function(a){g.M.call(this,a)};
nr=function(a){g.M.call(this,a)};
or=function(a){g.M.call(this,a)};
pr=function(a){g.M.call(this,a)};
qr=function(a){g.M.call(this,a)};
rr=function(a){g.M.call(this,a)};
sr=function(a){g.M.call(this,a,-1,Wla)};
tr=function(a){g.M.call(this,a,-1,Xla)};
ur=function(a){g.M.call(this,a)};
vr=function(a){g.M.call(this,a,-1,Yla)};
wr=function(a){g.M.call(this,a)};
xr=function(a){g.M.call(this,a,-1,Zla)};
yr=function(a){g.M.call(this,a,-1,$la)};
zr=function(a){g.M.call(this,a,-1,ama)};
Ar=function(a){g.M.call(this,a,-1,bma)};
Br=function(a){g.M.call(this,a)};
Cr=function(a){g.M.call(this,a,-1,cma)};
Dr=function(a){g.M.call(this,a)};
Er=function(a){g.M.call(this,a)};
Fr=function(a){g.M.call(this,a)};
Gr=function(a){g.M.call(this,a)};
Hr=function(a){g.M.call(this,a)};
Ir=function(a){g.M.call(this,a)};
Jr=function(a){g.M.call(this,a)};
Kr=function(a){g.M.call(this,a)};
Lr=function(a){g.M.call(this,a)};
Mr=function(a){g.M.call(this,a)};
Nr=function(a){g.M.call(this,a)};
Or=function(a){g.M.call(this,a)};
Pr=function(a){g.M.call(this,a)};
Qr=function(a){g.M.call(this,a)};
Rr=function(a){g.M.call(this,a)};
Sr=function(a){g.M.call(this,a)};
Tr=function(a){g.M.call(this,a)};
Ur=function(a){g.M.call(this,a)};
Vr=function(a){g.M.call(this,a)};
Wr=function(a){g.M.call(this,a)};
Xr=function(a){g.M.call(this,a)};
Yr=function(a){g.M.call(this,a)};
Zr=function(a){g.M.call(this,a)};
$r=function(a){g.M.call(this,a)};
as=function(a){g.M.call(this,a,-1,dma)};
bs=function(a){g.M.call(this,a,-1,ema)};
cs=function(a){g.M.call(this,a,-1,fma)};
ds=function(a){g.M.call(this,a)};
es=function(a){g.M.call(this,a)};
fs=function(a){g.M.call(this,a)};
gs=function(a){g.M.call(this,a)};
hs=function(a){g.M.call(this,a)};
is=function(a){g.M.call(this,a)};
js=function(a){g.M.call(this,a)};
ks=function(a){g.M.call(this,a)};
ls=function(a){g.M.call(this,a,-1,gma)};
ms=function(a){g.M.call(this,a,-1,hma)};
ns=function(a){g.M.call(this,a)};
os=function(a){g.M.call(this,a)};
ps=function(a){g.M.call(this,a)};
qs=function(a){g.M.call(this,a)};
rs=function(a){g.M.call(this,a)};
ts=function(a){g.M.call(this,a)};
us=function(a){g.M.call(this,a)};
vs=function(a){g.M.call(this,a)};
ws=function(a){g.M.call(this,a)};
xs=function(a){g.M.call(this,a,-1,ima)};
ys=function(a){g.M.call(this,a)};
zs=function(a){g.M.call(this,a,-1,jma)};
As=function(a){g.M.call(this,a)};
Bs=function(a){g.M.call(this,a)};
Cs=function(a){g.M.call(this,a,-1,kma)};
Ds=function(a){g.M.call(this,a)};
Es=function(a){g.M.call(this,a,-1,lma)};
Fs=function(a){g.M.call(this,a)};
Gs=function(a){g.M.call(this,a)};
Hs=function(a){g.M.call(this,a)};
Is=function(a){g.M.call(this,a)};
Js=function(a){g.M.call(this,a,-1,mma)};
Ks=function(a){g.M.call(this,a,-1,nma)};
Ls=function(a){g.M.call(this,a)};
Ms=function(a){g.M.call(this,a)};
Ns=function(a){g.M.call(this,a)};
Os=function(a){g.M.call(this,a)};
Ps=function(a){g.M.call(this,a)};
Qs=function(a){g.M.call(this,a)};
Rs=function(a){g.M.call(this,a)};
Ss=function(a){g.M.call(this,a)};
Ts=function(a){g.M.call(this,a)};
Us=function(a){g.M.call(this,a)};
Vs=function(a){g.M.call(this,a,-1,oma)};
Ws=function(a){g.M.call(this,a)};
Xs=function(a){g.M.call(this,a)};
Ys=function(a){g.M.call(this,a)};
Zs=function(a){g.M.call(this,a,-1,pma)};
$s=function(a){g.M.call(this,a)};
at=function(a){g.M.call(this,a)};
bt=function(a){g.M.call(this,a)};
ct=function(a){g.M.call(this,a)};
dt=function(a){g.M.call(this,a)};
et=function(a){g.M.call(this,a)};
ft=function(a){g.M.call(this,a)};
gt=function(a){g.M.call(this,a)};
ht=function(a){g.M.call(this,a)};
jt=function(a){g.M.call(this,a)};
kt=function(a){g.M.call(this,a)};
lt=function(a){g.M.call(this,a)};
mt=function(a){g.M.call(this,a)};
nt=function(a){g.M.call(this,a)};
ot=function(a){g.M.call(this,a)};
pt=function(a){g.M.call(this,a)};
qt=function(a){g.M.call(this,a)};
rt=function(a){g.M.call(this,a)};
tt=function(a){g.M.call(this,a)};
ut=function(a){g.M.call(this,a)};
vt=function(a){g.M.call(this,a)};
wt=function(a){g.M.call(this,a)};
xt=function(a){g.M.call(this,a)};
zt=function(a){g.M.call(this,a)};
At=function(a){g.M.call(this,a)};
Bt=function(a){g.M.call(this,a)};
Ct=function(a){g.M.call(this,a)};
Dt=function(a){g.M.call(this,a)};
Et=function(a){g.M.call(this,a,-1,qma)};
Ft=function(a){g.M.call(this,a,-1,rma)};
Gt=function(a){g.M.call(this,a)};
Ht=function(a){g.M.call(this,a)};
It=function(a){g.M.call(this,a)};
Jt=function(a){g.M.call(this,a)};
Kt=function(a){g.M.call(this,a)};
Lt=function(a){g.M.call(this,a)};
Mt=function(a){g.M.call(this,a)};
Nt=function(a){g.M.call(this,a)};
Ot=function(a){g.M.call(this,a)};
Pt=function(a){g.M.call(this,a)};
Qt=function(a){g.M.call(this,a)};
Rt=function(a){g.M.call(this,a)};
St=function(a){g.M.call(this,a,-1,sma)};
Tt=function(a){g.M.call(this,a)};
Ut=function(a){g.M.call(this,a)};
Vt=function(a){g.M.call(this,a)};
Wt=function(a){g.M.call(this,a)};
Xt=function(a){g.M.call(this,a)};
Yt=function(a){g.M.call(this,a)};
du=function(a){g.M.call(this,a)};
eu=function(a){g.M.call(this,a)};
fu=function(a){g.M.call(this,a)};
gu=function(a){g.M.call(this,a)};
hu=function(a){g.M.call(this,a)};
iu=function(a){g.M.call(this,a)};
ju=function(a){g.M.call(this,a)};
ku=function(a){g.M.call(this,a)};
lu=function(a){g.M.call(this,a)};
mu=function(a){g.M.call(this,a)};
nu=function(a){g.M.call(this,a)};
ou=function(a){g.M.call(this,a)};
pu=function(a){g.M.call(this,a)};
qu=function(a){g.M.call(this,a)};
ru=function(a){g.M.call(this,a)};
tu=function(a){g.M.call(this,a)};
uu=function(a){g.M.call(this,a)};
vu=function(a){g.M.call(this,a)};
wu=function(a){g.M.call(this,a)};
xu=function(a){g.M.call(this,a)};
yu=function(a){g.M.call(this,a)};
zu=function(a){g.M.call(this,a,-1,tma)};
Au=function(a){g.M.call(this,a)};
uma=function(a,b){return J(a,gt,1,b)};
Bu=function(a){g.M.call(this,a)};
vma=function(a,b){J(a,gt,1,b)};
Cu=function(a){g.M.call(this,a,-1,wma)};
xma=function(a,b){return J(a,gt,2,b)};
Du=function(a){g.M.call(this,a)};
Eu=function(a){g.M.call(this,a)};
Fu=function(a){g.M.call(this,a)};
Gu=function(a){g.M.call(this,a)};
Hu=function(a){g.M.call(this,a)};
Iu=function(a){g.M.call(this,a,-1,yma)};
Ju=function(a){g.M.call(this,a)};
Ku=function(a){g.M.call(this,a,-1,zma)};
Mu=function(a,b){Eg(a,68,Lu,b)};
Lu=function(a){g.M.call(this,a)};
Nu=function(a){g.M.call(this,a)};
Ou=function(a){g.M.call(this,a,-1,Ama)};
Pu=function(a){g.M.call(this,a,-1,Bma)};
Qu=function(a){g.M.call(this,a)};
Ru=function(a){g.M.call(this,a)};
Su=function(a){g.M.call(this,a)};
Tu=function(a){g.M.call(this,a,-1,Cma)};
Uu=function(a){g.M.call(this,a)};
Vu=function(a){g.M.call(this,a,-1,Dma)};
Wu=function(a){g.M.call(this,a)};
Xu=function(a){g.M.call(this,a)};
Yu=function(a){g.M.call(this,a)};
Zu=function(a){g.M.call(this,a,-1,Ema)};
$u=function(a){g.M.call(this,a)};
av=function(a){g.M.call(this,a,-1,Fma)};
bv=function(a){g.M.call(this,a,-1,Gma)};
cv=function(a){g.M.call(this,a)};
dv=function(a){g.M.call(this,a)};
ev=function(a){g.M.call(this,a)};
fv=function(a){g.M.call(this,a)};
gv=function(a){g.M.call(this,a,459)};
hv=function(a){g.M.call(this,a)};
iv=function(a){g.M.call(this,a)};
jv=function(a){g.M.call(this,a,-1,Hma)};
kv=function(a){g.M.call(this,a)};
Ima=function(){return g.Fa("yt.ads.biscotti.lastId_")||""};
Jma=function(a){g.Da("yt.ads.biscotti.lastId_",a)};
mv=function(){var a=arguments;1<a.length?lv[a[0]]=a[1]:1===a.length&&Object.assign(lv,a[0])};
g.O=function(a,b){return a in lv?lv[a]:b};
nv=function(a){var b=lv.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.ov=function(a){a=Kma(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.pv=function(a,b){a=Kma(a);return void 0===a&&void 0!==b?b:Number(a||0)};
qv=function(){return g.O("EXPERIMENTS_TOKEN","")};
Kma=function(a){var b=g.O("EXPERIMENTS_FORCED_FLAGS",{})||{};return void 0!==b[a]?b[a]:g.O("EXPERIMENT_FLAGS",{})[a]};
rv=function(){for(var a=[],b=g.O("EXPERIMENTS_FORCED_FLAGS",{}),c=g.t(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.O("EXPERIMENT_FLAGS",{});var e=g.t(Object.keys(c));for(d=e.next();!d.done;d=e.next())d=d.value,d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Lma=function(a){tv.forEach(function(b){return b(a)})};
g.vv=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.uv(b)}}:a};
g.uv=function(a,b,c,d){var e=g.Fa("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.O("ERRORS",[]),e.push([a,"ERROR",b,c,d]),mv("ERRORS",e));Lma(a)};
wv=function(a,b,c,d){var e=g.Fa("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.O("ERRORS",[]),e.push([a,"WARNING",b,c,d]),mv("ERRORS",e))};
xv=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=Mma(f[0]||""),l=Mma(f[1]||"");h in c?Array.isArray(c[h])?g.wb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(xv);m.args=[{key:n,value:f[1],query:a,method:Nma==p?"unchanged":p}];Oma.hasOwnProperty(n)||wv(m)}}return c};
yv=function(a){var b=[];g.Jc(a,function(c,d){var e=g.ne(d),f;Array.isArray(c)?f=c:f=[c];g.Fb(f,function(h){""==h?b.push(e):b.push(e+"="+g.ne(h))})});
return b.join("&")};
zv=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return xv(a,"&")};
Av=function(a){a=a.split(",");return a=a.map(function(b){return zv(b)})};
g.Bv=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),zv(1<a.length?a[1]:a[0])):{}};
Cv=function(a,b){return Pma(a,b||{},!0)};
Dv=function(a,b){return Pma(a,b||{},!1)};
Pma=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=zv(e[1]||"");for(var f in b)if(c||!g.Rc(e,f))e[f]=b[f];return g.ci(a,e)+d};
Ev=function(a){if(!b)var b=window.location.href;var c=g.Wh(1,a),d=g.Xh(a);c&&d?(a=a.match(Vh),b=b.match(Vh),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Xh(b)==d&&(Number(g.Wh(4,b))||null)==(Number(g.Wh(4,a))||null):!0;return a};
Fv=function(a){a||(a=document.location.href);a=g.Wh(1,a);return null!==a&&"https"==a};
Gv=function(a){a=g.Xh(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Mma=function(a){return a&&a.match(Qma)?a:oe(a)};
Hv=function(a){var b=Rma;a=void 0===a?Ima():a;var c=Object,d=c.assign,e=Sma(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(C){}try{var m=f.outerWidth;var n=f.outerHeight}catch(C){}try{var p=f.innerWidth;var q=f.innerHeight}catch(C){}try{var r=f.screenLeft;var w=f.screenTop}catch(C){}try{p=f.innerWidth,q=f.innerHeight}catch(C){}try{var x=f.screen.availWidth;var z=f.screen.availTop}catch(C){}f=[r,w,h,l,x,z,m,n,p,q];h=Lha(!1,b.j.top);l={};var B=void 0===B?g.D:B;m=new Wn;B.SVGElement&&B.document.createElementNS&&
m.set(0);n=Zga();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);B.crypto&&B.crypto.subtle&&m.set(3);B.TextDecoder&&B.TextEncoder&&m.set(4);B=ska(m);b=(l.bc=B,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Ek(b.u),l.wgl=!!Bk.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Sma=function(a){var b={};b.dt=Tma;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Bk:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Bk.screen)?void 0:f.height;var h;b.u_w=null==(h=Bk.screen)?void 0:h.width;var l;b.u_ah=null==(l=Bk.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Bk.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Bk.screen)?void 0:
n.colorDepth}catch(p){}return b};
Vma=function(){if(!Uma)return null;var a=Uma();return"open"in a?a:null};
g.Jv=function(a){switch(Iv(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Iv=function(a){return a&&"status"in a?a.status:-1};
g.Kv=function(a,b){"function"===typeof a&&(a=g.vv(a));return window.setTimeout(a,b)};
g.Lv=function(a,b){"function"===typeof a&&(a=g.vv(a));return window.setInterval(a,b)};
g.Mv=function(a){window.clearTimeout(a)};
Xma=function(a,b){b=void 0===b?{}:b;var c=Ev(a),d=g.ov("web_ajax_ignore_global_headers_if_set"),e;for(e in Wma){var f=g.O(Wma[e]);"X-Goog-Visitor-Id"!==e||f||(f=g.O("VISITOR_DATA"));!f||!c&&!Nv(a,e)||d&&void 0!==b[e]||(b[e]=f)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||Nv(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||Nv(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&
(b["X-YouTube-Time-Zone"]=h)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&!Nv(a,"X-YouTube-Ad-Signals")||(b["X-YouTube-Ad-Signals"]=yv(Hv()));return b};
Zma=function(a,b){var c=g.Xh(a);g.ov("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Ev(a)&&(c=document.location.hostname);var d=Uh(g.Wh(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=zv(b),f={};g.Fb(Yma,function(h){e[h]&&(f[h]=e[h])});
return Dv(a,f)};
Nv=function(a){return g.Xh(a)?!1:!0};
g.Pv=function(a,b){var c=b.format||"JSON";a=$ma(a,b);var d=ana(a,b),e=!1,f=Ov(a,function(m){if(!e){e=!0;l&&g.Mv(l);var n=g.Jv(m),p=null,q=400<=m.status&&500>m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=bna(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.D;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},
b.method,d,b.headers,b.responseType,b.withCredentials);
d=b.timeout||0;if(b.onTimeout&&0<d){var h=b.onTimeout;var l=g.Kv(function(){e||(e=!0,f.abort(),g.Mv(l),h.call(b.context||g.D,f))},d)}return f};
$ma=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.O("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=Cv(a,b);return a};
ana=function(a,b){var c=g.O("XSRF_FIELD_NAME"),d=g.O("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.O("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Xh(a)&&!b.withCredentials&&g.Xh(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.ov("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=zv(e),g.$c(e,f),e=b.postBodyFormat&&"JSON"==
b.postBodyFormat?JSON.stringify(e):g.ai(e));f=e||f&&!g.Uc(f);!cna&&f&&"POST"!=b.method&&(cna=!0,g.uv(Error("AJAX request with postData should use POST")));return e};
bna=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,wv(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?dna(a):null)e={},g.Fb(a.getElementsByTagName("*"),function(h){e[h.tagName]=ena(h)})}d&&fna(e);
return e};
fna=function(a){if(g.La(a))for(var b in a)"html_content"==b||Gaa(b,"_html")?a[b]=g.Wd(a[b]):fna(a[b])};
dna=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
ena=function(a){var b="";g.Fb(a.childNodes,function(c){b+=c.nodeValue});
return b};
Qv=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.Pv(a,b)};
Ov=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&g.vv(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Vma();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.ov("debug_forward_web_query_parameters")&&(a=Zma(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);h&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=Xma(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(c=!1);c&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
m.send(d);return m};
Sv=function(a,b){var c=g.Yc(b),d;return(new g.lf(function(e,f){c.onSuccess=function(h){g.Jv(h)?e(new gna(h)):f(new Rv("Request failed, status="+Iv(h),"net.badstatus",h))};
c.onError=function(h){f(new Rv("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new Rv("Request timed out","net.timeout",h))};
d=g.Pv(a,c)})).Oj(function(e){e instanceof rf&&d.abort();
return of(e)})};
g.Tv=function(a,b,c,d){function e(l,m,n){return l.Oj(function(p){if(0>=m||403===Iv(p.xhr))return of(new Rv("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<h?Math.min(h,p):p;return f(n).then(function(){return e(Sv(a,b),m-1,q)})})}
function f(l){return new g.lf(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(Sv(a,b),c-1,d)};
Rv=function(a,b,c){Za.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
gna=function(a){this.xhr=a};
Uv=function(a){this.j=void 0===a?null:a;this.u=0;this.Ed=null};
Vv=function(a){var b=new Uv;a=void 0===a?null:a;b.u=2;b.Ed=void 0===a?null:a;return b};
Wv=function(a){var b=new Uv;a=void 0===a?null:a;b.u=1;b.Ed=void 0===a?null:a;return b};
g.Zv=function(a,b,c,d,e){Xv||Yv.set(""+a,b,{uF:c,path:"/",domain:void 0===d?"youtube.com":d,g6:void 0===e?!1:e})};
g.$v=function(a,b){if(!Xv)return Yv.get(""+a,b)};
g.aw=function(a,b,c){Xv||Yv.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
hna=function(){if(!Yv.isEnabled())return!1;if(!Yv.isEmpty())return!0;Yv.set("TESTCOOKIESENABLED","1",{uF:60});if("1"!==Yv.get("TESTCOOKIESENABLED"))return!1;Yv.remove("TESTCOOKIESENABLED");return!0};
ina=function(){var a=/Chrome\/(\d+)/.exec(g.Wb());return a?parseFloat(a[1]):NaN};
cw=function(){return bw("android")&&bw("chrome")&&!(bw("trident/")||bw("edge/"))&&!bw("cobalt")};
jna=function(){return bw("armv7")||bw("aarch64")||bw("android")};
g.dw=function(){return bw("cobalt")};
ew=function(){return bw("cobalt")&&bw("appletv")};
fw=function(){return bw("(ps3; leanback shell)")||bw("ps3")&&g.dw()};
kna=function(){return bw("(ps4; leanback shell)")||bw("ps4")&&g.dw()};
g.lna=function(){return g.dw()&&(bw("ps4 vr")||bw("ps4 pro vr"))};
gw=function(){var a=/WebKit\/([0-9]+)/.exec(g.Wb());return!!(a&&600<=parseInt(a[1],10))};
hw=function(){var a=/WebKit\/([0-9]+)/.exec(g.Wb());return!!(a&&602<=parseInt(a[1],10))};
iw=function(){return bw("iemobile")||bw("windows phone")&&bw("edge")};
kw=function(){return jw&&bw("applewebkit")&&!bw("version")&&(!bw("safari")||bw("gsa/"))};
mw=function(){return g.lw&&bw("version/")};
nw=function(){return bw("smart-tv")&&bw("samsung")};
bw=function(a){var b=g.Wb();return b?0<=b.toLowerCase().indexOf(a):!1};
g.P=function(a,b){if(a)return a[b.name]};
ow=function(a){var b=g.O("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Mea(a)));return a};
mna=function(a,b){var c={};g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.O("INNERTUBE_API_KEY"));g.ov("json_condensed_response")&&(c.prettyPrint="false");return a=Dv(a,c)};
pw=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:Ev(a)?"same-origin":"cors",credentials:Ev(a)?"same-origin":"include"};b={};for(var d=g.t(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);0<Object.keys(b).length&&(a.headers=b);return a};
qw=function(){return Bea()||kw()||mw()?!0:g.O("EOM_VISITOR_DATA")?!1:!0};
rw=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
tw=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
uw=function(a,b){return void 0===b||null===b?a:Number(b)};
vw=function(a,b){return void 0===b||null===b?a:b.toString()};
ww=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(nna))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
xw=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.ov("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
ona=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===yw(a,!1)};
g.zw=function(a){return"EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"===a||"EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"===a?!0:!1};
yw=function(a,b){b=(void 0===b?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?tw(b,c.embeddedPlayerMode,pna):b};
Bw=function(a){Za.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Aw;this.isTimeout=a instanceof Rv&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof rf};
Aw=function(){Za.call(this,"Biscotti ID is missing from server")};
qna=function(){if(g.ov("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!qw())return Error("User has not consented - not fetching biscotti id.");var a=g.O("PLAYER_VARS",{});if("1"==g.Wc(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(ona(a))return Error("Biscotti id fetching has been disabled for pfl.")};
tna=function(){var a=qna();if(void 0!==a)return of(a);Cw||(Cw=Sv("//web.archive.org/web/20230104105643/https://googleads.g.doubleclick.net/pagead/id",Dw).then(rna).Oj(function(b){return sna(2,b)}));
return Cw};
rna=function(a){a=a.xhr.responseText;if(!Jb(a,")]}'"))throw new Aw;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new Aw;a=a.id;Jma(a);Cw=Wv(a);una(18E5,2);return a};
sna=function(a,b){b=new Bw(b);Jma("");Cw=Vv(b);0<a&&una(12E4,a-1);throw b;};
una=function(a,b){g.Kv(function(){Sv("//web.archive.org/web/20230104105643/https://googleads.g.doubleclick.net/pagead/id",Dw).then(rna,function(c){return sna(b,c)}).Oj(g.vd)},a)};
vna=function(){try{var a=g.Fa("yt.ads.biscotti.getId_");return a?a():tna()}catch(b){return of(b)}};
g.Fw=function(){this.j=g.O("ALT_PREF_COOKIE_NAME","PREF");this.u=g.O("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.$v(this.j);if(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(Ew[d]=c.toString())}}};
g.Gw=function(a,b){return!!((wna("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Hw=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=wna(c)||0;d=b?d|a:d&~a;0==d?delete Ew[c]:(b=d.toString(16),Ew[c]=b.toString())};
Iw=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Jw=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
wna=function(a){a=void 0!==Ew[a]?Ew[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
xna=function(a){var b=this;this.u=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.u=c});
a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
Kw=function(){if(!g.D.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.D.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.D.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.D.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.D.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
yna=function(){var a=g.D.navigator;return a?a.connection:void 0};
Ana=function(){var a=yna();if(a){var b=zna[a.type||"unknown"]||"CONN_UNKNOWN";a=zna[a.effectiveType||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===b&&"CONN_UNKNOWN"!==a&&(b=a);if("CONN_UNKNOWN"!==b)return b;if("CONN_UNKNOWN"!==a)return a}};
Cna=function(){var a=yna();if(null!=a&&a.effectiveType)return Bna.hasOwnProperty(a.effectiveType)?Bna[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
Lw=function(){this.j=new WeakMap};
g.Nw=function(a,b,c){return Mw(b,0,c)};
Ow=function(){Lw.apply(this,arguments)};
g.Pw=function(){Ow.instance||(Ow.instance=new Ow);return Ow.instance};
g.Qw=function(){return!!g.Fa("yt.scheduler.instance")};
Mw=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Fa("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Kv(a,c||0)};
Rw=function(a){var b=g.Fa("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
g.Sw=function(a){var b=g.ya.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.u(b))};
g.Uw=function(){try{return g.Tw(),!0}catch(a){return!1}};
g.Tw=function(a){if(void 0!==g.O("DATASYNC_ID"))return g.O("DATASYNC_ID");throw new g.Sw("Datasync ID not set",void 0===a?"unknown":a);};
Vw=function(a){var b;(b=g.Zo(a))||(a=new Vo(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new Po(a):null;this.u=document.domain||window.location.hostname};
Xw=function(){var a;return null==(a=Ww())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Dna=function(){var a={};for(Yw=new Zw(void 0===a.handleError?$w:a.handleError,void 0===a.logEvent?g.ax:a.logEvent);0<bx.length;)switch(a=bx.shift(),a.type){case "ERROR":Yw.uB(a.payload);break;case "EVENT":Yw.logEvent(a.eventType,a.payload)}};
dx=function(a){cx||(Yw?Yw.uB(a):(bx.push({type:"ERROR",payload:a}),10<bx.length&&bx.shift()))};
ex=function(a,b){cx||(Yw?Yw.logEvent(a,b):(bx.push({type:"EVENT",eventType:a,payload:b}),10<bx.length&&bx.shift()))};
fx=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
gx=function(a){return a.substr(0,a.indexOf(":"))||a};
g.hx=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?Ena[a]:c;d=void 0===d?Fna[a]:d;e=void 0===e?Gna[a]:e;g.Sw.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.hx.prototype)};
ix=function(a,b){g.hx.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Ena.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,ix.prototype)};
jx=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,jx.prototype)};
lx=function(a,b,c,d){b=gx(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.hx)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.hx("QUOTA_EXCEEDED",a);if(g.kx&&"UnknownError"===e.name)return new g.hx("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof jx)return new g.hx("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&Hna.some(function(f){return e.message.includes(f)}))return new g.hx("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.hx("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",SF:e.name})];e.level="WARNING";return e};
g.mx=function(a,b,c){var d=Xw();return new g.hx("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
Ina=function(a){if(!a)throw Error();throw a;};
Jna=function(a){return a};
nx=function(a){this.j=a};
g.ox=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.t(d.onRejected);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.t(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.state={status:"PENDING"};this.j=[];this.onRejected=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
Kna=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.ox?px(a,b,f,d,e):d(f)}catch(h){e(h)}};
Lna=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.ox?px(a,b,f,d,e):d(f)}catch(h){e(h)}};
px=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.ox?px(a,b,f,d,e):d(f)},function(f){e(f)})};
Mna=function(a,b,c){function d(){c(a.error);f()}
function e(){b(a.result);f()}
function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
Nna=function(a){return new Promise(function(b,c){Mna(a,b,c)})};
qx=function(a){return new g.ox(new nx(function(b,c){Mna(a,b,c)}))};
rx=function(a,b){return new g.ox(new nx(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
Ona=function(a,b){this.request=a;this.cursor=b};
sx=function(a){return qx(a).then(function(b){return b?new Ona(a,b):null})};
Pna=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.R)());this.u=!1};
g.ux=function(a,b,c){a=a.j.createObjectStore(b,c);return new tx(a)};
vx=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.yx=function(a,b,c){return g.wx(a,[b],{mode:"readwrite",Ub:!0},function(d){return g.xx(d.objectStore(b),c)})};
g.wx=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,w,x,z;return g.A(function(B){switch(B.j){case 1:var C={mode:"readonly",Ub:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?C.mode=c:Object.assign(C,c);e=C;a.transactionCount++;f=e.Ub?3:1;h=0;case 2:if(l){B.Ia(3);break}h++;m=Math.round((0,g.R)());g.qa(B,4);n=a.j.transaction(b,e.mode);C=new zx(n);C=Qna(C,d);return g.y(B,C,6);case 6:return p=B.u,q=Math.round((0,g.R)()),Rna(a,m,q,h,void 0,b.join(),e),B.return(p);case 4:r=g.ua(B);w=Math.round((0,g.R)());
x=lx(r,a.j.name,b.join(),a.j.version);if((z=x instanceof g.hx&&!x.j)||h>=f)Rna(a,m,w,h,x,b.join(),e),l=x;B.Ia(2);break;case 3:return B.return(Promise.reject(l))}})};
Rna=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.hx&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&ex("QUOTA_EXCEEDED",{dbName:gx(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.hx&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),ex("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),Sna(a,!1,d,f,b,h.tag),dx(e)):Sna(a,!0,d,
f,b,h.tag)};
Sna=function(a,b,c,d,e,f){ex("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
tx=function(a){this.j=a};
g.Ax=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
Tna=function(a,b){return g.Bx(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
Una=function(a,b,c){var d=[];return g.Bx(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
Wna=function(a){return"getAllKeys"in IDBObjectStore.prototype?qx(a.j.getAllKeys(void 0,void 0)):Vna(a)};
Vna=function(a){var b=[];return g.Xna(a,{query:void 0},function(c){b.push(c.HE());return c.continue()}).then(function(){return b})};
g.xx=function(a,b,c){return qx(a.j.put(b,c))};
g.Bx=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return Cx(a).then(function(d){return rx(d,c)})};
g.Xna=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return sx(a).then(function(e){return rx(e,c)})};
zx=function(a){var b=this;this.j=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()});
b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)});
b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.u){e=g.hx;for(var f=b.j.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
Qna=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(f){d(f)}).catch(e)}catch(f){e(f),a.abort()}});
return Promise.all([c,a.done]).then(function(d){return g.t(d).next().value})};
Yna=function(a){this.j=a};
Zna=function(a,b,c){var d=[];return g.Dx(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
g.Dx=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return Cx(a).then(function(d){return rx(d,c)})};
$na=function(a,b){this.request=a;this.cursor=b};
Cx=function(a){return qx(a).then(function(b){return b?new $na(a,b):null})};
aoa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new Pna(h.result,{closed:q}));return r}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.F6,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(w){try{if(null===w.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&"none"!==w.dataLoss&&ex("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:gx(a)});var x=f(),z=new zx(h.transaction);
p&&p(x,function(B){return w.oldVersion<B&&w.newVersion>=B},z);
z.done.catch(function(B){e(B)})}catch(B){e(B)}});
h.addEventListener("success",function(){var w=h.result;m&&w.addEventListener("versionchange",function(){m(f())});
w.addEventListener("close",function(){ex("IDB_UNEXPECTEDLY_CLOSED",{dbName:gx(a),dbVersion:w.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
boa=function(a,b,c){c=void 0===c?{}:c;return aoa(a,b,c)};
Ex=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.A(function(h){if(1==h.j)return g.qa(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.y(h,Nna(c),4);
if(2!=h.j)return g.ra(h,0);f=g.ua(h);throw lx(f,a,"",-1);})};
Fx=function(a,b){this.name=a;this.options=b;this.B=!0;this.D=this.C=0};
coa=function(a,b){return new g.hx("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.Gx=function(a,b){if(!b)throw g.mx("openWithToken",gx(a.name));return a.open()};
doa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.y(d,g.Gx(Hx,b),2);c=d.u;return d.return(g.wx(c,["databases"],{Ub:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.xx(f,a).then(function(){})})}))})};
Ix=function(a,b){var c;return g.A(function(d){if(1==d.j)return a?g.y(d,g.Gx(Hx,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
eoa=function(a,b){var c,d;return g.A(function(e){return 1==e.j?(c=[],g.y(e,g.Gx(Hx,b),2)):3!=e.j?(d=e.u,g.y(e,g.wx(d,["databases"],{Ub:!0,mode:"readonly"},function(f){c.length=0;return g.Bx(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
foa=function(a,b){return eoa(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)};
goa=function(){var a,b,c,d;return g.A(function(e){switch(e.j){case 1:a=Xw();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(jw&&gw()&&!hw()||g.Jx)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.qa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.y(e,doa(d,Kx),4);case 4:return g.y(e,Ix("yt-idb-test-do-not-use",Kx),5);case 5:return e.return(!0);case 2:return g.ua(e),e.return(!1)}})};
hoa=function(){if(void 0!==Lx)return Lx;cx=!0;return Lx=goa().then(function(a){cx=!1;var b;if(null!=(b=Ww())&&b.j){var c;b={hasSucceededOnce:(null==(c=Xw())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Ww())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
Mx=function(){return g.Fa("ytglobal.idbToken_")||void 0};
g.Nx=function(){var a=Mx();return a?Promise.resolve(a):hoa().then(function(b){(b=b?Kx:void 0)&&g.Da("ytglobal.idbToken_",b);return b})};
ioa=function(a){if(!g.Uw())throw a=new g.hx("AUTH_INVALID",{dbName:a}),dx(a),a;var b=g.Tw();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
joa=function(a,b,c,d){var e,f,h,l,m,n;return g.A(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.y(p,g.Nx(),2);case 2:h=p.u;if(!h)throw l=g.mx("openDbImpl",a,b),g.ov("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),dx(l),l;fx(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:ioa(a);g.qa(p,3);return g.y(p,doa(m,h),5);case 5:return g.y(p,boa(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.ua(p),g.qa(p,7),g.y(p,Ix(m.actualName,
h),9);case 9:g.ra(p,8);break;case 7:g.ua(p);case 8:throw n;}})};
koa=function(a,b,c){c=void 0===c?{}:c;return joa(a,b,!1,c)};
loa=function(a,b,c){c=void 0===c?{}:c;return joa(a,b,!0,c)};
moa=function(a,b){b=void 0===b?{}:b;var c,d;return g.A(function(e){if(1==e.j)return g.y(e,g.Nx(),2);if(3!=e.j){c=e.u;if(!c)return e.return();fx(a);d=ioa(a);return g.y(e,Ex(d.actualName,b),3)}return g.y(e,Ix(d.actualName,c),0)})};
noa=function(a,b,c){a=a.map(function(d){return g.A(function(e){return 1==e.j?g.y(e,Ex(d.actualName,b),2):g.y(e,Ix(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
ooa=function(a){var b=void 0===b?{}:b;var c,d;return g.A(function(e){if(1==e.j)return g.y(e,g.Nx(),2);if(3!=e.j){c=e.u;if(!c)return e.return();fx(a);return g.y(e,foa(a,c),3)}d=e.u;return g.y(e,noa(d,b,c),0)})};
poa=function(a,b){b=void 0===b?{}:b;var c;return g.A(function(d){if(1==d.j)return g.y(d,g.Nx(),2);if(3!=d.j){c=d.u;if(!c)return d.return();fx(a);return g.y(d,Ex(a,b),3)}return g.y(d,Ix(a,c),0)})};
Ox=function(a,b){Fx.call(this,a,b);this.options=b;fx(a)};
qoa=function(a,b){var c;return function(){c||(c=new Ox(a,b));return c}};
g.Px=function(a,b){return qoa(a,b)};
Qx=function(a){return g.Gx(roa(),a)};
soa=function(a,b,c,d){var e,f,h;return g.A(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.R)()},g.y(l,Qx(c),2);case 2:return f=l.u,g.y(l,f.clear("hotConfigStore"),3);case 3:return g.y(l,g.yx(f,"hotConfigStore",e),4);case 4:return h=l.u,l.return(h)}})};
toa=function(a,b,c,d,e){var f,h,l;return g.A(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.R)()},g.y(m,Qx(d),2);case 2:return h=m.u,g.y(m,h.clear("coldConfigStore"),3);case 3:return g.y(m,g.yx(h,"coldConfigStore",f),4);case 4:return l=m.u,m.return(l)}})};
uoa=function(a){var b,c;return g.A(function(d){return 1==d.j?g.y(d,Qx(a),2):3!=d.j?(b=d.u,c=void 0,g.y(d,g.wx(b,["coldConfigStore"],{mode:"readwrite",Ub:!0},function(e){return g.Dx(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
voa=function(a){var b,c;return g.A(function(d){return 1==d.j?g.y(d,Qx(a),2):3!=d.j?(b=d.u,c=void 0,g.y(d,g.wx(b,["hotConfigStore"],{mode:"readwrite",Ub:!0},function(e){return g.Dx(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
woa=function(){return g.A(function(a){return g.y(a,ooa("ytGcfConfig"),0)})};
Vx=function(){var a=this;this.C=!1;this.B=0;this.yf={r$a:function(){a.C=!0},
N9a:function(){return a.j},
eab:function(b){Rx(a,b)},
cab:function(b){Sx(a,b)},
B0:function(){return a.coldHashData},
C0:function(){return a.hotHashData},
W9a:function(){return a.u},
Q9a:function(){return Tx()},
S9a:function(){return Ux()},
R9a:function(){return g.Fa("yt.gcf.config.coldHashData")},
T9a:function(){return g.Fa("yt.gcf.config.hotHashData")},
xab:function(){xoa(a)},
W$a:function(){delete Vx.instance}}};
yoa=function(){Vx.instance||(Vx.instance=new Vx);return Vx.instance};
zoa=function(a){var b;g.A(function(c){if(1==c.j)return g.ov("gcf_config_store_enabled")||g.ov("delete_gcf_config_db")?g.ov("gcf_config_store_enabled")?g.y(c,g.Nx(),3):c.Ia(2):c.return();2!=c.j&&((b=c.u)&&g.Uw()&&!g.ov("delete_gcf_config_db")?(a.C=!0,xoa(a)):(Sx(a,g.O("RAW_COLD_CONFIG_GROUP")),Wx(a,g.O("SERIALIZED_COLD_HASH_DATA")),Xx(a,a.j.configData),Rx(a,g.O("RAW_HOT_CONFIG_GROUP")),Yx(a,g.O("SERIALIZED_HOT_HASH_DATA"))));return g.ov("delete_gcf_config_db")?g.y(c,woa(),0):c.Ia(0)})};
Aoa=function(a){var b,c,d,e,f,h;return g.A(function(l){switch(l.j){case 1:if(a.u)return l.return(Ux());if(!a.C)return b=g.mx("getHotConfig IDB not initialized"),wv(b),l.return(Promise.reject(b));c=Mx();d=g.O("TIME_CREATED_MS");if(!c){e=g.mx("getHotConfig token error");wv(e);l.Ia(2);break}return g.y(l,voa(c),3);case 3:if((f=l.u)&&f.timestamp>d)return Rx(a,f.config),Yx(a,f.hashData),l.return(Ux());case 2:Rx(a,g.O("RAW_HOT_CONFIG_GROUP"));Yx(a,g.O("SERIALIZED_HOT_HASH_DATA"));if(!(c&&a.u&&a.hotHashData)){l.Ia(4);
break}return g.y(l,soa(a.u,a.hotHashData,c,d),4);case 4:return a.u?l.return(Ux()):(h=new g.Sw("Config not available in ytConfig"),wv(h),l.return(Promise.reject(h)))}})};
Boa=function(a){var b,c,d,e,f,h;return g.A(function(l){switch(l.j){case 1:if(a.j)return l.return(Tx());if(!a.C)return b=g.mx("getColdConfig IDB not initialized"),wv(b),l.return(Promise.reject(b));c=Mx();d=g.O("TIME_CREATED_MS");if(!c){e=g.mx("getColdConfig");wv(e);l.Ia(2);break}return g.y(l,uoa(c),3);case 3:if((f=l.u)&&f.timestamp>d)return Sx(a,f.config),Xx(a,f.configData),Wx(a,f.hashData),l.return(Tx());case 2:Sx(a,g.O("RAW_COLD_CONFIG_GROUP"));Wx(a,g.O("SERIALIZED_COLD_HASH_DATA"));Xx(a,a.j.configData);
if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ia(4);break}return g.y(l,toa(a.j,a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(Tx()):(h=new g.Sw("Config not available in ytConfig"),wv(h),l.return(Promise.reject(h)))}})};
xoa=function(a){if(!a.u||!a.j){if(!Mx()){var b=g.mx("scheduleGetConfigs");wv(b)}a.B||(a.B=g.Vn.Uh(function(){return g.A(function(c){if(1==c.j)return g.y(c,Aoa(a),2);if(3!=c.j)return g.y(c,Boa(a),3);a.B&&(a.B=0);g.pa(c)})},100))}};
Coa=function(a,b,c){var d,e,f;return g.A(function(h){if(1==h.j){if(!g.ov("update_log_event_config"))return h.Ia(0);c&&Rx(a,c);Yx(a,b);return(d=Mx())?c?h.Ia(4):g.y(h,voa(d),5):h.Ia(0)}4!=h.j&&(e=h.u,c=null==(f=e)?void 0:f.config);return g.y(h,soa(c,b,d),0)})};
Doa=function(a,b,c){var d,e,f,h;return g.A(function(l){if(1==l.j){if(!g.ov("update_log_event_config"))return l.Ia(0);Wx(a,b);return(d=Mx())?c?l.Ia(4):g.y(l,uoa(d),5):l.Ia(0)}4!=l.j&&(e=l.u,c=null==(f=e)?void 0:f.config);if(!c)return l.Ia(0);h=c.configData;return g.y(l,toa(c,b,h,d),0)})};
Rx=function(a,b){a.u=b;g.Da("yt.gcf.config.hotConfigGroup",a.u)};
Sx=function(a,b){a.j=b;g.Da("yt.gcf.config.coldConfigGroup",a.j)};
Yx=function(a,b){a.hotHashData=b;g.Da("yt.gcf.config.hotHashData",a.hotHashData)};
Wx=function(a,b){a.coldHashData=b;g.Da("yt.gcf.config.coldHashData",a.coldHashData)};
Xx=function(a,b){a.configData=b;g.Da("yt.gcf.config.coldConfigData",a.configData)};
Ux=function(){return g.Fa("yt.gcf.config.hotConfigGroup")};
Tx=function(){return g.Fa("yt.gcf.config.coldConfigGroup")};
Eoa=function(){return"INNERTUBE_API_KEY"in lv&&"INNERTUBE_API_VERSION"in lv};
g.Zx=function(){return{innertubeApiKey:g.O("INNERTUBE_API_KEY"),innertubeApiVersion:g.O("INNERTUBE_API_VERSION"),bF:g.O("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),RK:g.O("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),IS:g.O("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.O("INNERTUBE_CONTEXT_CLIENT_VERSION"),TK:g.O("INNERTUBE_CONTEXT_HL"),SK:g.O("INNERTUBE_CONTEXT_GL"),JS:g.O("INNERTUBE_HOST_OVERRIDE")||"",KS:!!g.O("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),UK:!!g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.O("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.$x=function(a){var b={client:{hl:a.TK,gl:a.SK,clientName:a.RK,clientVersion:a.innertubeContextClientVersion,configInfo:a.bF}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.D.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=qv();""!==c&&(b.client.experimentsToken=c);c=rv();0<c.length&&(b.request={internalExperimentFlags:c});Foa(a,void 0,b);g.ov("enable_third_party_info")&&Goa(void 0,b);Hoa(void 0,b);Ioa(a,void 0,b);Joa(void 0,b);g.ov("start_sending_config_hash")&&
Koa(void 0,b);g.O("DELEGATED_SESSION_ID")&&!g.ov("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.O("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.t(Object.entries(zv(g.O("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.t(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=
c.call(a,d,e);return b};
Loa=function(a){var b=new hr,c=new g.cr;g.I(c,1,a.TK);g.I(c,2,a.SK);g.I(c,16,a.IS);g.I(c,17,a.innertubeContextClientVersion);if(a.bF){var d=a.bF,e=new Yq;d.coldConfigData&&g.I(e,1,d.coldConfigData);d.appInstallData&&g.I(e,6,d.appInstallData);d.coldHashData&&g.I(e,3,d.coldHashData);d.hotHashData&&g.I(e,5,d.hotHashData);J(c,Yq,62,e)}(d=g.D.devicePixelRatio)&&1!=d&&Ag(c,65,d);d=qv();""!==d&&g.I(c,54,d);d=rv();if(0<d.length){e=new dr;for(var f=0;f<d.length;f++){var h=new Xq;g.I(h,1,d[f].key);h.setValue(d[f].value);
Eg(e,15,Xq,h)}J(b,dr,5,e)}Foa(a,c);g.ov("enable_third_party_info")&&Goa(b);Hoa(c);Ioa(a,c);Joa(c);g.ov("start_sending_config_hash")&&Koa(c);g.O("DELEGATED_SESSION_ID")&&!g.ov("pageid_as_header_web")&&(a=new gr,g.I(a,3,g.O("DELEGATED_SESSION_ID")));a=g.t(Object.entries(zv(g.O("DEVICE",""))));for(d=a.next();!d.done;d=a.next())e=g.t(d.value),d=e.next().value,e=e.next().value,"cbrand"===d?g.I(c,12,e):"cmodel"===d?g.I(c,13,e):"cbr"===d?g.I(c,87,e):"cbrver"===d?g.I(c,88,e):"cos"===d?g.I(c,18,e):"cosver"===
d?g.I(c,19,e):"cplatform"===d&&g.I(c,42,e);b.B(c);return b};
Foa=function(a,b,c){a=a.RK;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=g.xg(b,br,96)||new br;var d=Kw();d=Object.keys(Moa).indexOf(d);d=-1===d?null:d;null!==d&&g.I(c,3,d);J(b,br,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=Kw())};
Goa=function(a,b){var c=g.Fa("yt.embedded_player.embed_url");c&&(a?(b=g.xg(a,er,7)||new er,g.I(b,4,c),J(a,er,7,b)):b&&(b.thirdParty={embedUrl:c}))};
Hoa=function(a,b){var c;if(g.ov("web_log_memory_total_kbytes")&&(null==(c=g.D.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.D.navigator)?void 0:d.deviceMemory;a?g.I(a,95,1E6*c):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
Ioa=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=g.xg(b,Yq,62))?d:new Yq;g.I(c,6,a.appInstallData);J(b,Yq,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Joa=function(a,b){var c=Ana();c&&(a?g.I(a,61,Noa[c]):b&&(b.client.connectionType=c));g.ov("web_log_effective_connection_type")&&(c=Cna())&&(a?g.I(a,94,Ooa[c]):b&&(b.client.effectiveConnectionType=c))};
Poa=function(a,b,c){c=void 0===c?{}:c;var d={};g.O("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.O("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.O("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.FQ||g.O("AUTHORIZATION"))||(a?b="Bearer "+g.Fa("gapi.auth.getToken")().access_token:b=Jh([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.O("SESSION_INDEX",0),g.ov("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.O("DELEGATED_SESSION_ID")));return d};
Koa=function(a,b){yoa();var c=g.Fa("yt.gcf.config.coldConfigData");var d=g.Fa("yt.gcf.config.hotHashData");var e=g.Fa("yt.gcf.config.coldHashData");if(c&&e&&d)if(a){var f;b=null!=(f=g.xg(a,Yq,62))?f:new Yq;g.I(b,1,c);g.I(b,3,e);g.I(b,5,d);J(a,Yq,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.coldConfigData=c,b.client.configInfo.coldHashData=e,b.client.configInfo.hotHashData=d)};
ay=function(a,b,c,d){try{var e=Qoa(b);var f=f||{};f.K0=!0;var h=new Ip(f);h.push(e,!0);if(h.err)throw h.msg||sp[h.err];var l=h.result;c.headers||(c.headers={});c.headers["Content-Encoding"]="gzip";c.postBody=l;c.postParams=void 0;d(a,c)}catch(m){wv(m),d(a,c)}};
cy=function(a){var b=this;this.ID=this.Mf=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.Ex=function(){};
this.now=Date.now;this.kA=!1;this.yf={dab:function(p){b.sf=p},
yab:function(){b.Ry()},
y_:function(){b.gJ()},
eB:function(p){return g.A(function(q){return g.y(q,b.eB(p),0)})},
xG:function(p,q){return b.xG(p,q)},
AG:function(){b.AG()}};
var c;this.TV=null!=(c=a.TV)?c:100;var d;this.lV=null!=(d=a.lV)?d:1;var e;this.eV=null!=(e=a.eV)?e:2592E6;var f;this.YU=null!=(f=a.YU)?f:12E4;var h;this.kV=null!=(h=a.kV)?h:5E3;var l;this.sf=null!=(l=a.sf)?l:void 0;this.gE=!!a.gE;var m;this.RD=null!=(m=a.RD)?m:.1;var n;this.eG=null!=(n=a.eG)?n:10;a.handleError&&(this.handleError=a.handleError);a.Ex&&(this.Ex=a.Ex);a.kA&&(this.kA=a.kA);a.ID&&(this.ID=a.ID);this.eb=a.eb;this.Cm=a.Cm;this.Ug=a.Ug;this.Hg=a.Hg;this.oq=a.oq;this.rM=a.rM;this.HL=a.HL;by(this)&&
(!this.eb||this.eb("networkless_logging"))&&Roa(this)};
Roa=function(a){by(a)&&!a.kA&&(a.Mf=!0,a.gE&&Math.random()<=a.RD&&a.Ug.C_(a.sf),a.AG(),a.Hg.Fh()&&a.Ry(),a.Hg.Qa(a.rM,a.Ry.bind(a)),a.Hg.Qa(a.HL,a.gJ.bind(a)))};
Uoa=function(a,b){if(!by(a))throw g.mx("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m,n;return g.A(function(p){switch(p.j){case 1:h=Soa(f);l=Toa(f);if(!(a.eb&&a.eb("nwl_consider_error_code")&&h||a.eb&&!a.eb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.eG)){p.Ia(2);break}if(!a.Hg.DG){p.Ia(3);break}return g.y(p,a.Hg.DG(),3);case 3:if(a.Hg.Fh()){p.Ia(2);break}c(e,f);if(!a.eb||!a.eb("nwl_consider_error_code")||void 0===(null==(m=b)?void 0:m.id)){p.Ia(6);break}return g.y(p,a.Ug.WM(b.id,a.sf,!1),6);case 6:return p.return();case 2:if(a.eb&&
a.eb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.eG)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.Ia(8);break}return b.sendCount<a.lV?g.y(p,a.Ug.WM(b.id,a.sf,!0,l?!1:void 0),12):g.y(p,a.Ug.jx(b.id,a.sf),8);case 12:a.Cm.Uh(function(){a.Hg.Fh()&&a.Ry()},a.kV);
case 8:c(e,f),g.pa(p)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.A(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ia(2):g.y(l,a.Ug.jx(b.id,a.sf),2);a.Hg.Ru&&a.eb&&a.eb("vss_network_hint")&&a.Hg.Ru(!0);d(e,f);g.pa(l)})};
return b};
dy=function(a,b){a.KW&&!a.Hg.Fh()?a.KW(b):a.handleError(b)};
by=function(a){return!!a.sf||a.ID};
Soa=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
Toa=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)};
ey=function(a,b){this.version=a;this.args=b};
fy=function(a,b){this.topic=a;this.j=b};
hy=function(a,b){var c=gy();c&&c.publish.call(c,a.toString(),a,b)};
Woa=function(a,b,c){var d=gy();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Fa("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(iy[e])try{if(h&&a instanceof fy&&a!=f)try{var m=a.j,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Xs){var p=new m;m.Xs=p.version}var q=m.Xs}catch(r){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.ub(n.args))}catch(r){throw r.message="yt.pubsub2.Data.deserialize(): "+r.message,r;}}catch(r){throw r.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+r.message,r;}b.call(c||window,h)}catch(r){g.uv(r)}},Voa[a.toString()]?g.Qw()?g.Vn.Uh(l):g.Kv(l,0):l())});
iy[e]=!0;jy[a.toString()]||(jy[a.toString()]=[]);jy[a.toString()].push(e);return e};
ly=function(a,b,c){var d=Woa(a,function(e){b.apply(c,arguments);ky(d)},c);
return d};
ky=function(a){var b=gy();b&&("number"===typeof a&&(a=[a]),g.Fb(a,function(c){b.unsubscribeByKey(c);delete iy[c]}))};
gy=function(){return g.Fa("ytPubsub2Pubsub2Instance")};
Xoa=function(){if(yy)return yy();var a={};yy=g.Px("LogsDatabaseV2",{bq:(a.LogsRequestsStore={Xl:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.ux(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.Ax(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&vx(b,"sapisid");c(9)&&vx(b,"SWHealthLog")},
version:9});return yy()};
zy=function(a){return g.Gx(Xoa(),a)};
Zoa=function(a,b){var c,d,e,f;return g.A(function(h){if(1==h.j)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.y(h,zy(b),2);if(3!=h.j)return d=h.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.y(h,g.yx(d,"LogsRequestsStore",e),3);f=h.u;c.N6=(0,g.R)();Yoa(c);return h.return(f)})};
$oa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.j)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.y(n,zy(b),2);if(3!=n.j)return d=n.u,e=g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.R)()],l=IDBKeyRange.bound(f,h),m=void 0,g.y(n,g.wx(d,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(p){return g.Dx(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&(m=q.getValue(),"NEW"===
a&&(m.status="QUEUED",q.update(m)))})}),3);
c.N6=(0,g.R)();Yoa(c);return n.return(m)})};
apa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.y(d,zy(b),2);c=d.u;return d.return(g.wx(c,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.xx(f,h).then(function(){return h})})}))})};
bpa=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.A(function(f){if(1==f.j)return g.y(f,zy(b),2);e=f.u;return f.return(g.wx(e,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),void 0!==d&&(m.options.compress=d),g.xx(l,m).then(function(){return m})):g.ox.resolve(void 0)})}))})};
cpa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.y(d,zy(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
dpa=function(a){var b,c;return g.A(function(d){if(1==d.j)return g.y(d,zy(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.y(d,g.wx(b,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(e){return g.Bx(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
epa=function(){g.A(function(a){return g.y(a,ooa("LogsDatabaseV2"),0)})};
Yoa=function(a){g.ov("nwl_csi_killswitch")||.01>=Math.random()&&hy("nwl_transaction_latency_payload",a)};
gpa=function(a){return g.Gx(fpa(),a)};
hpa=function(a){var b,c;g.A(function(d){if(1==d.j)return g.y(d,gpa(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.y(d,g.wx(b,["SWHealthLog"],{mode:"readwrite",Ub:!0},function(e){return g.Bx(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
ipa=function(a){var b;return g.A(function(c){if(1==c.j)return g.y(c,gpa(a),2);b=c.u;return g.y(c,b.clear("SWHealthLog"),0)})};
g.Ay=function(a,b,c,d,e,f){e=void 0===e?"":e;f=void 0===f?!1:f;if(a)if(c&&!g.dw()){if(a){a=g.Ld(g.Od(a));if("about:invalid#zClosurez"===a||a.startsWith("data"))a="";else{var h=void 0===h?{}:h;a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");h.S$a&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;"));h.R$a&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>"));h.T$a&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>'));h=g.Wd(a);a=g.ne(g.Oh(g.Vd(h).toString()))}g.Lb(a)||
(h=Ne("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),ye(h).body.appendChild(h))}}else if(e)Ov(a,b,"POST",e,d);else if(g.O("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Ov(a,b,"GET","",d,void 0,f);else{b:{try{var l=new Jga({url:a});if(l.B&&l.u||l.C){var m=Uh(g.Wh(5,a));var n=!(!m||!m.endsWith("/aclk")||"1"!==ei(a,"ri"));break b}}catch(p){}n=!1}n?jpa(a)?(b&&b(),h=!0):h=!1:h=!1;h||kpa(a,b)}};
jpa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
kpa=function(a,b){var c=new Image,d=""+lpa++;By[d]=c;c.onload=c.onerror=function(){b&&By[d]&&b();delete By[d]};
c.src=a};
Cy=function(){this.j=new Map;this.u=!1};
Dy=function(){if(!Cy.instance){var a=g.Fa("yt.networkRequestMonitor.instance")||new Cy;g.Da("yt.networkRequestMonitor.instance",a);Cy.instance=a}return Cy.instance};
Fy=function(){Ey||(Ey=new Vw("yt.offline"));return Ey};
mpa=function(a){if(g.ov("offline_error_handling")){var b=Fy().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Fy().set("errors",b,2592E3,!0)}};
Gy=function(){g.rd.call(this);var a=this;this.u=!1;this.j=rka();this.j.Qa("networkstatus-online",function(){if(a.u&&g.ov("offline_error_handling")){var b=Fy().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.Sw(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.uv(d)}Fy().set("errors",{},2592E3,!0)}}})};
npa=function(){if(!Gy.instance){var a=g.Fa("yt.networkStatusManager.instance")||new Gy;g.Da("yt.networkStatusManager.instance",a);Gy.instance=a}return Gy.instance};
g.Hy=function(a){a=void 0===a?{}:a;g.rd.call(this);var b=this;this.j=this.D=0;this.u=npa();var c=g.Fa("yt.networkStatusManager.instance.listen").bind(this.u);c&&(a.kG?(this.kG=a.kG,c("networkstatus-online",function(){opa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){opa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
opa=function(a,b){a.kG?a.j?(g.Vn.Zl(a.D),a.D=g.Vn.Uh(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.R)())},a.kG-((0,g.R)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.R)()):a.dispatchEvent(b)};
Jy=function(){var a=cy.call;Iy||(Iy=new g.Hy({C$a:!0,y9a:!0}));a.call(cy,this,{Ug:{C_:dpa,jx:cpa,YR:$oa,S1:apa,WM:bpa,set:Zoa},Hg:Iy,handleError:g.uv,Ex:wv,oq:ppa,now:g.R,KW:mpa,Cm:g.Pw(),rM:"publicytnetworkstatus-online",HL:"publicytnetworkstatus-offline",gE:!0,RD:.1,eG:g.pv("potential_esf_error_limit",10),eb:g.ov,kA:!(g.Uw()&&"www.youtube-nocookie.com"!==g.Xh(document.location.toString()))});this.u=new g.Mi;g.ov("networkless_immediately_drop_all_requests")&&epa();poa("LogsDatabaseV2")};
Ky=function(){var a=g.Fa("yt.networklessRequestController.instance");a||(a=new Jy,g.Da("yt.networklessRequestController.instance",a),g.ov("networkless_logging")&&g.Nx().then(function(b){a.sf=b;Roa(a);a.u.resolve();a.gE&&Math.random()<=a.RD&&a.sf&&hpa(a.sf);g.ov("networkless_immediately_drop_sw_health_store")&&qpa(a)}));
return a};
qpa=function(a){var b;g.A(function(c){if(!a.sf)throw b=g.mx("clearSWHealthLogsDb"),b;return c.return(ipa(a.sf).catch(function(d){a.handleError(d)}))})};
ppa=function(a,b,c){g.ov("use_cfr_monitor")&&rpa(a,b);if(g.ov("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.R)())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.R)())}c&&0===Object.keys(b).length?g.Ay(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),ay(a,b.postBody,b,g.Pv)):ay(a,JSON.stringify(b.postParams),b,Qv):g.Pv(a,b)};
rpa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){Dy().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){Dy().requestComplete(a,!0);d(e,f)}};
g.Ly=function(a){this.config_=null;a?this.config_=a:Eoa()&&(this.config_=g.Zx())};
g.My=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.zT.bypassNetworkless)f.method="POST",d.zT.writeThenSend?Ky().writeThenSend(n,f):Ky().sendAndWrite(n,f);else if(d.compress)if(f.postBody){var q=f.postBody;"string"!==typeof q&&(q=JSON.stringify(f.postBody));ay(n,q,f,g.Pv)}else ay(n,JSON.stringify(f.postParams),f,Qv);else g.ov("web_all_payloads_via_jspb")?g.Pv(n,f):Qv(n,f)}catch(r){if("InvalidAccessError"==r.name)wv(Error("An extension is blocking network request."));else throw r;
}}
!g.O("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&wv(new g.Sw("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Sw("innertube xhrclient not ready",b,c,d),g.uv(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)},
onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,q){if(d.onError)d.onError(q)},
onFetchError:function(p){if(d.onError)d.onError(p)},
timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.JS;h&&(c=h);h=Poa(a.config_.KS||!1,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.UK&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=Cv(""+c+b,l);g.Fa("ytNetworklessLoggingInitializationOptions")&&
spa.isNwlInitialized?hoa().then(function(p){e(p)}):e(!1)};
tpa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Ny+"VisibilityState";if(b in a)return a[b]};
Oy=function(a,b){var c;Pl(a,function(d){c=b[d];return!!c});
return c};
Py=function(a){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(a=a||window.event){this.event=a;for(var b in a)b in upa||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.u=a.pageY}}catch(e){}};
vpa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.u=a.clientY+b}};
wpa=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Tc(Qy,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.La(e[4])&&g.La(d)&&g.Xc(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.Ry=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=wpa(a,b,c,d);if(e)return e;e=++xpa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Py(l);if(!Ze(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Py(l);
l.currentTarget=a;return c.call(a,l)};
h=g.vv(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),ypa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);Qy[e]=[a,b,c,h,d];return e};
zpa=function(a,b){var c=document.body||document;return g.Ry(c,"click",function(d){var e=Ze(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.Sy=function(a){a&&("string"==typeof a&&(a=[a]),g.Fb(a,function(b){if(b in Qy){var c=Qy[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?ypa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Qy[b]}}))};
g.Ty=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Uy=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.Ty(a)};
Vy=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b};
Wy=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new g.he(b,c)};
g.Xy=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.Yy=function(a){a=a||window.event;return!1===a.returnValue||a.PS&&a.PS()};
g.Zy=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
Apa=function(a){return zpa(a,function(b){return g.go(b,"ytp-ad-has-logging-urls")})};
g.Bpa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Ry(a,b,function(){g.Sy(e);c.apply(a,arguments)},d)};
$y=function(a){for(var b in Qy)Qy[b][0]==a&&g.Sy(b)};
az=function(a){this.J=a;this.j=null;this.C=0;this.I=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.oa=g.Ry(window,"mousemove",(0,g.Oa)(this.Z,this));this.T=g.Lv((0,g.Oa)(this.ea,this),25)};
dz=function(){var a={},b=void 0===a.J5?!1:a.J5;a=void 0===a.f0?!0:a.f0;if(null==g.Fa("_lact",window)){var c=parseInt(g.O("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Da("_lact",c,window);g.Da("_fact",c,window);-1==c&&bz();g.Ry(document,"keydown",bz);g.Ry(document,"keyup",bz);g.Ry(document,"mousedown",bz);g.Ry(document,"mouseup",bz);b?g.Ry(window,"touchmove",function(){cz("touchmove",200)},{passive:!0}):(g.Ry(window,"resize",function(){cz("resize",200)}),a&&g.Ry(window,"scroll",function(){cz("scroll",
200)}));
new az(function(){cz("mouse",100)});
g.Ry(document,"touchstart",bz,{passive:!0});g.Ry(document,"touchend",bz,{passive:!0})}};
cz=function(a,b){ez[a]||(ez[a]=!0,g.Vn.Uh(function(){bz();ez[a]=!1},b))};
bz=function(){null==g.Fa("_lact",window)&&(dz(),g.Fa("_lact",window));var a=Date.now();g.Da("_lact",a,window);-1==g.Fa("_fact",window)&&g.Da("_fact",a,window);(a=g.Fa("ytglobal.ytUtilActivityCallback_"))&&a()};
fz=function(){var a=g.Fa("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
g.kz=function(a,b,c){var d=g.gz();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){hz[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.iz[a]?h():g.Kv(h,0)}catch(l){g.uv(l)}},c);
hz[e]=!0;jz[a]||(jz[a]=[]);jz[a].push(e);return e}return 0};
g.lz=function(a){var b=g.gz();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Fb(a,function(c){b.unsubscribeByKey(c);delete hz[c]}))};
g.mz=function(a,b){var c=g.gz();return c?c.publish.apply(c,arguments):!1};
Dpa=function(a){var b=g.gz();if(b)if(b.clear(a),a)Cpa(a);else for(var c in jz)Cpa(c)};
g.gz=function(){return g.D.ytPubsubPubsubInstance};
Cpa=function(a){jz[a]&&(a=jz[a],g.Fb(a,function(b){hz[b]&&delete hz[b]}),a.length=0)};
nz=function(a){this.name=a};
oz=function(){this.key=Epa};
Fpa=function(){this.providers=new Map;this.j=new Map};
pz=function(a,b){a.providers.set(b.IM,b)};
rz=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.j.has(b))return a.j.get(b);if(!a.providers.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.providers.get(b);c.push(b);if(d.kO)var e=d.kO;else if(d.d7)e=d[qz]?Gpa(a,d[qz],c):[],e=d.d7.apply(d,g.u(e));else if(d.yW){e=d.yW;var f=e[qz]?Gpa(a,e[qz],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.u(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.qab||a.j.set(b,
e);return e};
Gpa=function(a,b,c){return b?b.map(function(d){return d instanceof oz?rz(a,d.key,c,!0):rz(a,d,c)}):[]};
tz=function(){sz||(sz=new Fpa);return sz};
uz=function(){var a=this;this.store={};this.u=0;this.j={};this.yf={O9a:function(){return a.u}}};
Hpa=function(a,b){var c=vz(b);if(a.j[c])return a.j[c];var d=Object.keys(a.store)||[];if(1>=d.length&&vz(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(wz(b.auth,h[0])){var l=b.isJspb;wz(void 0===l?"undefined":l?"true":"false",h[1])&&wz(b.cttAuthInfo,h[2])&&e.push(d[f])}}return a.j[c]=e};
wz=function(a,b){return void 0===a||"undefined"===a?!0:a===b};
vz=function(a){return[void 0===a.auth?"undefined":a.auth,void 0===a.isJspb?"undefined":a.isJspb,void 0===a.cttAuthInfo?"undefined":a.cttAuthInfo].join("/")};
Ipa=function(){this.B=this.j=this.u=0};
xz=function(){var a=g.Fa("yt.logging.ims");a||(a=new uz,g.Da("yt.logging.ims",a));return a};
Jpa=function(a,b){g.ov("web_all_payloads_via_jspb")&&wv(new g.Sw("transport.log called for JSON in JSPB only experiment"));if("log_event"===a.endpoint){yz(a);var c=zz(a);if(g.ov("use_new_in_memory_storage")){Az[c]=!0;var d={cttAuthInfo:c,isJspb:!1};xz().storePayload(d,a.payload);Bz(b,[],c,!1,d)}else d=Cz.get(c)||[],Cz.set(c,d),d.push(a.payload),Bz(b,d,c)}};
Kpa=function(a,b){if("log_event"===a.endpoint){yz(void 0,a);var c=zz(a,!0);if(g.ov("use_new_in_memory_storage")){Az[c]=!0;var d={cttAuthInfo:c,isJspb:!0};xz().storePayload(d,a.payload.toJSON());Bz(b,[],c,!0,d)}else d=Dz.get(c)||[],Dz.set(c,d),a=a.payload.toJSON(),d.push(a),Bz(b,d,c,!0)}};
Bz=function(a,b,c,d,e){d=void 0===d?!1:d;a&&(Ez=new a);a=g.pv("tvhtml5_logging_max_batch_ads_fork")||g.pv("tvhtml5_logging_max_batch")||g.pv("web_logging_max_batch")||100;var f=(0,g.R)(),h=d?Fz.B:Gz.B;b=b.length;e&&(b=xz().getSequenceCount(e));b>=a?Hz||(Hz=Iz(function(){Jz({writeThenSend:!0},g.ov("flush_only_full_queue")?c:void 0,d);Hz=void 0},0)):10<=f-h&&(Lpa(d),d?Fz.B=f:Gz.B=f)};
Mpa=function(a,b){g.ov("web_all_payloads_via_jspb")&&wv(new g.Sw("transport.logIsolatedGelPayload called in JSPB only experiment"));if("log_event"===a.endpoint){yz(a);var c=zz(a),d=new Map;d.set(c,[a.payload]);b&&(Ez=new b);return new g.lf(function(e,f){Ez&&Ez.isReady()?Kz(d,Ez,e,f,{bypassNetworkless:!0},!0):e()})}};
Npa=function(a,b){if("log_event"===a.endpoint){yz(void 0,a);var c=zz(a,!0),d=new Map;d.set(c,[a.payload.toJSON()]);b&&(Ez=new b);return new g.lf(function(e){Ez&&Ez.isReady()?Lz(d,Ez,e,{bypassNetworkless:!0},!0):e()})}};
zz=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new iv;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.vg(d,2,Mz,c.playlistId);Nz[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Oz[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
Jz=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;!c&&g.ov("web_all_payloads_via_jspb")&&wv(new g.Sw("transport.flushLogs called for JSON in JSPB only experiment"));new g.lf(function(d,e){c?(Pz(Fz.u),Pz(Fz.j),Fz.j=0):(Pz(Gz.u),Pz(Gz.j),Gz.j=0);if(Ez&&Ez.isReady())if(g.ov("use_new_in_memory_storage")){var f=a,h=c,l=Ez;f=void 0===f?{}:f;h=void 0===h?!1:h;var m=new Map,n=new Map;if(void 0!==b)h?(e=xz().extractMatchingEntries({isJspb:h,cttAuthInfo:b}),m.set(b,e),Lz(m,l,d,f)):(m=xz().extractMatchingEntries({isJspb:h,
cttAuthInfo:b}),n.set(b,m),Kz(n,l,d,e,f));else if(h){e=g.t(Object.keys(Az));for(h=e.next();!h.done;h=e.next())n=h.value,h=xz().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0<h.length&&m.set(n,h),delete Az[n];Lz(m,l,d,f)}else{m=g.t(Object.keys(Az));for(h=m.next();!h.done;h=m.next()){h=h.value;var p=xz().extractMatchingEntries({isJspb:!1,cttAuthInfo:h});0<p.length&&n.set(h,p);delete Az[h]}Kz(n,l,d,e,f)}}else f=a,m=c,l=Ez,f=void 0===f?{}:f,m=void 0===m?!1:m,void 0!==b?m?(e=new Map,m=Dz.get(b)||
[],e.set(b,m),Lz(e,l,d,f),Dz.delete(b)):(m=new Map,n=Cz.get(b)||[],m.set(b,n),Kz(m,l,d,e,f),Cz.delete(b)):m?(Lz(Dz,l,d,f),Dz.clear()):(Kz(Cz,l,d,e,f),Cz.clear());else Lpa(c),d()})};
Lpa=function(a){a=void 0===a?!1:a;if(g.ov("web_gel_timeout_cap")&&(!a&&!Gz.j||a&&!Fz.j)){var b=Iz(function(){Jz({writeThenSend:!0},void 0,a)},Opa);
a?Fz.j=b:Gz.j=b}Pz(a?Fz.u:Gz.u);b=g.O("LOGGING_BATCH_TIMEOUT",g.pv("web_gel_debounce_ms",1E4));g.ov("shorten_initial_gel_batch_timeout")&&Qz&&(b=Ppa);b=Iz(function(){Jz({writeThenSend:!0},void 0,a)},b);
a?Fz.u=b:Gz.u=b};
Kz=function(a,b,c,d,e,f){e=void 0===e?{}:e;var h=Math.round((0,g.R)()),l=a.size,m={};a=g.t(a);for(var n=a.next();!n.done;m={ZC:m.ZC,gt:m.gt,pz:m.pz,bD:m.bD,aD:m.aD},n=a.next()){var p=g.t(n.value);n=p.next().value;p=p.next().value;m.gt=g.Zc({context:g.$x(b.config_||g.Zx())});if(!g.Ka(p)&&!g.ov("throw_err_when_logevent_malformed_killswitch")){d();break}m.gt.events=p;(p=Oz[n])&&Qpa(m.gt,n,p);delete Oz[n];m.pz="visitorOnlyApprovedKey"===n;Rpa(m.gt,h,m.pz);Spa(e);m.bD=function(q){g.ov("update_log_event_config")&&
g.Vn.Uh(function(){return g.A(function(r){return g.y(r,Tpa(q),0)})});
l--;l||c()};
m.ZC=0;m.aD=function(q){return function(){q.ZC++;if(e.bypassNetworkless&&1===q.ZC)try{g.My(b,"log_event",q.gt,Rz({writeThenSend:!0},q.pz,q.bD,q.aD,f)),Qz=!1}catch(r){g.uv(r),d()}l--;l||c()}}(m);
try{g.My(b,"log_event",m.gt,Rz(e,m.pz,m.bD,m.aD,f)),Qz=!1}catch(q){g.uv(q),d()}}};
Lz=function(a,b,c,d,e){d=void 0===d?{}:d;var f=Math.round((0,g.R)()),h=a.size,l=new Map([].concat(g.u(a)));l=g.t(l);for(var m=l.next();!m.done;m=l.next()){var n=g.t(m.value).next().value,p=a.get(n);m=new jv;var q=Loa(b.config_||g.Zx());J(m,hr,1,q);p=p?Upa(p):[];p=g.t(p);for(q=p.next();!q.done;q=p.next())Eg(m,3,gv,q.value);(p=Nz[n])&&Vpa(m,n,p);delete Nz[n];n="visitorOnlyApprovedKey"===n;Wpa(m,f,n);Spa(d);m=m.El();n=Rz(d,n,function(r){g.ov("update_log_event_config")&&g.Vn.Uh(function(){return g.A(function(w){return g.y(w,
Tpa(r),0)})});
h--;h||c()},function(){h--;
h||c()},e);
n.headers["Content-Type"]="application/json+protobuf";n.postBodyFormat="JSPB";n.postBody=m;g.My(b,"log_event","",n);Qz=!1}};
Spa=function(a){g.ov("always_send_and_write")&&(a.writeThenSend=!1)};
Rz=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,zT:a,dangerousLogToVisitorSession:b,o9a:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.ov("compress_gel")};Sz()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.R)())));return a};
Rpa=function(a,b,c){Sz()||(a.requestTimeMs=String(b));g.ov("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.O("EVENT_ID"))&&(c=Xpa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Wpa=function(a,b,c){Sz()||g.I(a,2,b);if(!c&&(b=g.O("EVENT_ID"))){c=Xpa();var d=new hv;g.I(d,1,b);g.I(d,2,c);J(a,hv,5,d)}};
Xpa=function(){var a=g.O("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Ypa/2));a++;a>Ypa&&(a=1);mv("BATCH_CLIENT_COUNTER",a);return a};
Qpa=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]};
Vpa=function(a,b,c){if(c.Yf())var d=1;else if(c.getPlaylistId())d=2;else return;J(a,iv,4,c);a=a.getContext()||new hr;c=g.xg(a,gr,3)||new gr;var e=new fr;e.setToken(b);g.I(e,1,d);Eg(c,12,fr,e);J(a,gr,3,c)};
Upa=function(a){for(var b=[],c=0;c<a.length;c++)try{b.push(new gv(a[c]))}catch(d){g.uv(new g.Sw("Transport failed to deserialize "+String(a[c])))}return b};
yz=function(a,b){if(g.Fa("yt.logging.transport.enableScrapingForTest")){var c=g.Fa("yt.logging.transport.scrapedPayloadsForTesting"),d=g.Fa("yt.logging.transport.payloadToScrape","");b&&(b=b.payload,(b=g.Fa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));a&&a.payload[d]&&c.push((null==a?void 0:a.payload)[d]);g.Da("yt.logging.transport.scrapedPayloadsForTesting",c)}};
Sz=function(){return g.ov("use_request_time_ms_header")||g.ov("lr_use_request_time_ms_header")};
Iz=function(a,b){return g.ov("transport_use_scheduler")?Mw(a,0,b):g.Kv(a,b)};
Pz=function(a){g.ov("transport_use_scheduler")?g.Vn.Zl(a):g.Mv(a)};
Tpa=function(a){var b,c,d,e,f,h,l,m,n,p;return g.A(function(q){return 1==q.j?(d=null==(b=a)?void 0:null==(c=b.responseContext)?void 0:c.globalConfigGroup,e=g.P(d,Zpa),h=null==(f=d)?void 0:f.hotHashData,l=g.P(d,$pa),n=null==(m=d)?void 0:m.coldHashData,p=tz().resolve(Vx),h?e?g.y(q,Coa(p,h,e),2):g.y(q,Coa(p,h),2):q.Ia(2)):n?l?g.y(q,Doa(p,n,l),0):g.y(q,Doa(p,n),0):q.Ia(0)})};
Uz=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.R)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;g.ov("enable_unknown_lact_fix_on_html5")&&dz();a=fz();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.ov("log_sequence_info_on_gel_web")&&d.sequenceGroup&&(a=e.context,b=d.sequenceGroup,b={index:aqa(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete Tz[d.sequenceGroup]);(d.sendIsolatedPayload?Mpa:Jpa)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,
dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},c)};
bqa=function(a){Jz(void 0,void 0,void 0===a?!1:a)};
aqa=function(a){Tz[a]=a in Tz?Tz[a]+1:0;return Tz[a]};
gqa=function(){var a=cqa,b=dqa;eqa||(eqa=!0);Vz=a;Wz=b;fqa=!1};
g.ax=function(a,b,c){c=void 0===c?{}:c;var d=hqa;g.O("ytLoggingEventsDefaultDisabled",!1)&&hqa===g.Ly&&(d=null);if(g.ov("web_all_payloads_via_jspb"))if(Vz&&Wz){var e=Vz[a];if(e)(e=e(Xz(b)))&&Wz[a]?(Wz[a](e,c,d||void 0),iqa()):wv(new g.Sw("Unable to call logFn for payload",a));else if(!g.ov("web_translate_player_logs"))wv(new g.Sw("Unable to translate payload to JSPB",a));else if(!1===fqa){var f=!1;d=ly("app_received_payload",function(){f=!0});
hy("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c});f||(ky(d),ly("app_has_initialized",function(){hy("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c})}))}}else Yz.push({payloadName:a,
payload:b,options:c});else Uz(a,b,d,c)};
Zz=function(){if(g.ov("web_fp_via_jspb")&&(bqa(!0),!g.ov("web_fp_via_jspb_and_json")))return;bqa()};
iqa=function(){var a=Yz;Yz=[];if(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())b=b.value,g.ax(b.payloadName,b.payload,b.options)}};
Xz=function(a){if(!g.ov("jspb_convert_payloads_to_lower_camel")||!g.La(a))return a;for(var b=Object.keys(a),c=0;c<b.length;c++){var d=jqa(b[c]);b[c]!==d&&(a[d]=a[b[c]],delete a[b[c]]);if("object"===typeof a[d]&&!g.Ka(a[d]))a[d]=Xz(a[d]);else if(g.Ka(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(Xz(e[h]));a[d]=f}}return a};
jqa=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
lqa=function(){var a=void 0===a?window.location.href:a;if(g.ov("kevlar_disable_theme_param"))return null;Uh(g.Wh(5,a));try{var b=g.Bv(a).theme;return kqa.get(b)||null}catch(c){}return null};
oqa=function(a,b,c){a&&(a.dataset?a.dataset[mqa(b)]=String(c):Hfa([new Oi(nqa[0].toLowerCase(),Qi)],a,"data-"+b,c.toString()))};
pqa=function(a){return a?a.dataset?a.dataset[mqa("loaded")]:a.getAttribute("data-loaded"):null};
mqa=function(a){return qqa[a]||(qqa[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
$z=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return a instanceof Promise?a:Promise.resolve()};
cA=function(a){var b;g.aA()?bA()==a&&(b=document):b=a;return b&&(a=Oy(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
dA=function(a){return g.ib(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
rqa=function(){var a=document;return g.ib(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.aA=function(){return!!Oy(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
bA=function(a){a=void 0===a?!1:a;var b=Oy(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
eA=function(a){g.E.call(this);this.J=[];this.gb=a||this};
fA=function(a,b,c,d){for(var e=0;e<c.length;e++)a.S(b,c[e],d)};
g.gA=function(a,b){for(;a.J.length;){var c=a.J.pop(),d=void 0;b&&sqa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
hA=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Yc(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Yc(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
tqa=function(a){a instanceof hA||(a=new hA(a));return a};
uqa=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
vqa=function(){this.Qq=[];this.Zp=[]};
jA=function(){if(!iA){var a=iA=new vqa;a.Zp.length=0;a.Qq.length=0;wqa(a,xqa)}return iA};
wqa=function(a,b){b.Zp&&a.Zp.push.apply(a.Zp,b.Zp);b.Qq&&a.Qq.push.apply(a.Qq,b.Qq)};
yqa=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=kA(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=kA(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=kA(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(d<c)};
kA=function(a){var b=a(),c=b&127;if(128>b)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity};
zqa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=lA(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=a[e];var h=b;var l=c;h="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=yqa(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?lA(e+".ve",f,h,l):0;d+=h;d+=lA(e,a[e],b,c);if(500<d)break}}else c[b]=mA(a),d+=c[b].length;else c[b]=mA(a),d+=c[b].length;return d};
lA=function(a,b,c,d){c+="."+a;a=mA(b);d[c]=a;return c.length+a.length};
mA=function(a){try{return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
nA=function(a,b,c){c=void 0===c?{}:c;var d=Math.round(c.timestamp||(0,g.R)());g.I(a,1,d<Number.MAX_SAFE_INTEGER?d:0);var e=fz();d=new fv;g.I(d,1,c.timestamp||!isFinite(e)?-1:e);if(g.ov("log_sequence_info_on_gel_web")&&c.sequenceGroup){e=c.sequenceGroup;var f=aqa(e),h=new ev;g.I(h,2,f);g.I(h,1,e);J(d,ev,3,h);c.endOfSequence&&delete Aqa[c.sequenceGroup]}J(a,fv,33,d);(c.sendIsolatedPayload?Npa:Kpa)({endpoint:"log_event",payload:a,cttAuthInfo:c.cttAuthInfo,dangerousLogToVisitorSession:c.dangerousLogToVisitorSession},
b)};
oA=function(a,b){b=void 0===b?{}:b;var c=!1;g.O("ytLoggingEventsDefaultDisabled",!1)&&(c=!0);nA(a,c?null:g.Ly,b)};
qA=function(a,b,c){var d=new gv;zg(d,Fu,72,pA,a);c?nA(d,c,b):oA(d,b)};
Bqa=function(a,b,c){var d=new gv;zg(d,Eu,73,pA,a);c?nA(d,c,b):oA(d,b)};
Cqa=function(a,b,c){var d=new gv;zg(d,Du,78,pA,a);c?nA(d,c,b):oA(d,b)};
Dqa=function(a,b,c){var d=new gv;zg(d,Gu,208,pA,a);c?nA(d,c,b):oA(d,b)};
Eqa=function(a,b,c){var d=new gv;zg(d,Au,156,pA,a);c?nA(d,c,b):oA(d,b)};
Fqa=function(a,b,c){var d=new gv;zg(d,vu,202,pA,a);c?nA(d,c,b):oA(d,b)};
Gqa=function(a,b,c){var d=new gv;zg(d,Cu,215,pA,a);c?nA(d,c,b):oA(d,b)};
$w=function(a){g.rA(a)};
g.sA=function(a){g.rA(a,"WARNING")};
g.rA=function(a,b){var c=void 0===c?{}:c;c.name=g.O("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.O("INNERTUBE_CONTEXT_CLIENT_VERSION");var d=c||{},e=void 0===b?"ERROR":b;e=void 0===e?"ERROR":e;if(a){a.hasOwnProperty("level")&&a.level&&(e=a.level);if(g.ov("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&f.push("Error args: "+JSON.stringify(a.args));f.push("File name: "+
a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),a)}if(!(5<=Hqa)){var h=Iqa,l=Eaa(a),m=l.message||"Unknown Error",n=l.name||"UnknownError",p=l.stack||a.u||"Not available";if(p.startsWith(n+": "+m)){var q=p.split("\n");q.shift();p=q.join("\n")}var r=l.lineNumber||"Not available",w=l.fileName||"Not available",x=p,z=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var B=0;B<a.args.length&&!(z=zqa(a.args[B],"params."+B,d,z),500<=z);B++);else if(a.hasOwnProperty("params")&&
a.params){var C=a.params;if("object"===typeof a.params)for(var G in C){if(C[G]){var F="params."+G,K=mA(C[G]);d[F]=K;z+=F.length+K.length;if(500<z)break}}else d.params=mA(C)}if(h.length)for(var L=0;L<h.length&&!(z=zqa(h[L],"params.context."+L,d,z),500<=z);L++);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d["device.vendor"]=navigator.vendor);var N={message:m,name:n,lineNumber:r,fileName:w,stack:x,params:d,sampleWeight:1},ba=Number(a.columnNumber);isNaN(ba)||(N.lineNumber=N.lineNumber+":"+ba);if("IGNORED"===
a.level)var T=0;else a:{for(var S=jA(),ea=g.t(S.Zp),Q=ea.next();!Q.done;Q=ea.next()){var sa=Q.value;if(N.message&&N.message.match(sa.xB)){T=sa.weight;break a}}for(var ha=g.t(S.Qq),ta=ha.next();!ta.done;ta=ha.next()){var Pa=ta.value;if(Pa.callback(N)){T=Pa.weight;break a}}T=1}N.sampleWeight=T;for(var vb=g.t(Jqa),xa=vb.next();!xa.done;xa=vb.next()){var Ja=xa.value;if(Ja.XF[N.name])for(var lc=g.t(Ja.XF[N.name]),rb=lc.next();!rb.done;rb=lc.next()){var cc=rb.value,tc=N.message.match(cc.Si);if(tc){N.params["params.error.original"]=
tc[0];for(var Rb=cc.groups,dc={},db=0;db<Rb.length;db++)dc[Rb[db]]=tc[db+1],N.params["params.error."+Rb[db]]=tc[db+1];N.message=Ja.AL(dc);break}}}N.params||(N.params={});var od=jA();N.params["params.errorServiceSignature"]="msg="+od.Zp.length+"&cb="+od.Qq.length;N.params["params.serviceWorker"]="false";g.D.document&&g.D.document.querySelectorAll&&(N.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.Ed("sample").constructor!==Cd&&(N.params["params.fconst"]=
"true");window.yterr&&"function"===typeof window.yterr&&window.yterr(N);if(0!==N.sampleWeight&&!Kqa.has(N.message)){if("ERROR"===e){tA.ma("handleError",N);if(g.ov("record_app_crashed_web")&&0===Lqa&&1===N.sampleWeight)if(Lqa++,g.ov("errors_via_jspb")){var pd=new Ls;g.I(pd,1,1);if(!g.ov("report_client_error_with_app_crash_ks")){var ec=new ts;g.I(ec,1,N.message);var jd=new us;J(jd,ts,3,ec);var dd=new vs;J(dd,us,5,jd);var Qc=new Ks;J(Qc,vs,9,dd);J(pd,Ks,4,Qc)}var Sb=new gv;zg(Sb,Ls,20,pA,pd);oA(Sb)}else{var Yb=
{appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.ov("report_client_error_with_app_crash_ks")||(Yb.systemHealth={crashData:{clientError:{logMessage:{message:N.message}}}});g.ax("appCrashed",Yb)}Mqa++}else"WARNING"===e&&tA.ma("handleWarning",N);if(g.ov("kevlar_gel_error_routing"))a:{var Ib=e;if(g.ov("errors_via_jspb")){if(Nqa())var Zb=void 0;else{var xc=new ps;g.I(xc,1,N.stack);N.fileName&&g.I(xc,4,N.fileName);var Dc=N.lineNumber&&N.lineNumber.split?N.lineNumber.split(":"):[];0!==Dc.length&&(1!==Dc.length||
isNaN(Number(Dc[0]))?2!==Dc.length||isNaN(Number(Dc[0]))||isNaN(Number(Dc[1]))||(g.I(xc,2,Number(Dc[0])),g.I(xc,3,Number(Dc[1]))):g.I(xc,2,Number(Dc[0])));var $b=new ts;g.I($b,1,N.message);g.I($b,3,N.name);g.I($b,6,N.sampleWeight);"ERROR"===Ib?g.I($b,2,2):"WARNING"===Ib?g.I($b,2,1):g.I($b,2,0);var ed=new rs;g.I(ed,1,!0);zg(ed,ps,3,uA,xc);var Va=new ms;g.I(Va,3,window.location.href);for(var te=g.O("FEXP_EXPERIMENTS",[]),uf=0;uf<te.length;uf++)Va.B(te[uf]);var kf=g.O("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!nv("web_disable_gel_stp_ecatcher_killswitch")&&kf)for(var ue=g.t(Object.keys(kf)),kb=ue.next();!kb.done;kb=ue.next()){var fc=kb.value,Yd=new ns;g.I(Yd,1,fc);Yd.setValue(String(kf[fc]));Va.j(Yd)}var qd=N.params;if(qd){var Ge=g.t(Object.keys(qd));for(kb=Ge.next();!kb.done;kb=Ge.next()){var vf=kb.value,Ec=new ns;g.I(Ec,1,"client."+vf);Ec.setValue(String(qd[vf]));Va.j(Ec)}}var mc=g.O("SERVER_NAME"),Zd=g.O("SERVER_VERSION");if(mc&&Zd){var lb=new ns;g.I(lb,1,"server.name");lb.setValue(mc);Va.j(lb);
var Nb=new ns;g.I(Nb,1,"server.version");Nb.setValue(Zd);Va.j(Nb)}var Hd=new us;J(Hd,ms,1,Va);J(Hd,rs,2,ed);J(Hd,ts,3,$b);Zb=Hd}var gc=Zb;if(!gc)break a;var Qb=new gv;zg(Qb,us,163,pA,gc);oA(Qb)}else{if(Nqa())var pg=void 0;else{var Id={stackTrace:N.stack};N.fileName&&(Id.filename=N.fileName);var je=N.lineNumber&&N.lineNumber.split?N.lineNumber.split(":"):[];0!==je.length&&(1!==je.length||isNaN(Number(je[0]))?2!==je.length||isNaN(Number(je[0]))||isNaN(Number(je[1]))||(Id.lineNumber=Number(je[0]),Id.columnNumber=
Number(je[1])):Id.lineNumber=Number(je[0]));var Vf={level:"ERROR_LEVEL_UNKNOWN",message:N.message,errorClassName:N.name,sampleWeight:N.sampleWeight};"ERROR"===Ib?Vf.level="ERROR_LEVEL_ERROR":"WARNING"===Ib&&(Vf.level="ERROR_LEVEL_WARNNING");var mh={isObfuscated:!0,browserStackInfo:Id},$d={pageUrl:window.location.href,kvPairs:[]};g.O("FEXP_EXPERIMENTS")&&($d.experimentIds=g.O("FEXP_EXPERIMENTS"));var wf=g.O("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!nv("web_disable_gel_stp_ecatcher_killswitch")&&
wf)for(var ki=g.t(Object.keys(wf)),He=ki.next();!He.done;He=ki.next()){var nh=He.value;$d.kvPairs.push({key:nh,value:String(wf[nh])})}var Mg=N.params;if(Mg){var Ie=g.t(Object.keys(Mg));for(He=Ie.next();!He.done;He=Ie.next()){var qg=He.value;$d.kvPairs.push({key:"client."+qg,value:String(Mg[qg])})}}var Zi=g.O("SERVER_NAME"),li=g.O("SERVER_VERSION");Zi&&li&&($d.kvPairs.push({key:"server.name",value:Zi}),$d.kvPairs.push({key:"server.version",value:li}));pg={errorMetadata:$d,stackTrace:mh,logMessage:Vf}}var xf=
pg;if(!xf)break a;g.ax("clientError",xf)}("ERROR"===Ib||g.ov("errors_flush_gel_always_killswitch"))&&Zz()}if(!g.ov("suppress_error_204_logging")){var Te=N.params||{},yf={urlParams:{a:"logerror",t:"jserror",type:N.name,msg:N.message.substr(0,250),line:N.lineNumber,level:e,"client.name":Te.name},postParams:{url:g.O("PAGE_NAME",window.location.href),file:N.fileName},method:"POST"};Te.version&&(yf["client.version"]=Te.version);if(yf.postParams){N.stack&&(yf.postParams.stack=N.stack);for(var Ua=g.t(Object.keys(Te)),
ve=Ua.next();!ve.done;ve=Ua.next()){var Ng=ve.value;yf.postParams["client."+Ng]=Te[Ng]}var we=g.O("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(we)for(var zd=g.t(Object.keys(we)),Mh=zd.next();!Mh.done;Mh=zd.next()){var Nj=Mh.value;yf.postParams[Nj]=we[Nj]}var $i=g.O("SERVER_NAME"),aj=g.O("SERVER_VERSION");$i&&aj&&(yf.postParams["server.name"]=$i,yf.postParams["server.version"]=aj)}g.Pv(g.O("ECATCHER_REPORT_HOST","")+"/error_204",yf)}try{Kqa.add(N.message)}catch(dl){}Hqa++}}}};
Nqa=function(){for(var a=g.t(Oqa),b=a.next();!b.done;b=a.next())if(bw(b.value.toLowerCase()))return!0;return!1};
Pqa=function(a){var b=g.ya.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.u(b))};
wA=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(f){}b=Array(a);for(c=0;c<a;c++){d=Date.now();for(var e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(vA)for(c=1,d=0;d<vA.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^vA.charCodeAt(d),c++;return b};
g.xA=function(a){a=wA(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Qqa=function(){return g.Lg(wA(16),function(a){return(a&15).toString(16)}).join("")};
yA=function(a){this.xf=a};
g.zA=function(a){return new yA({trackingParams:a})};
Sqa=function(a){var b=Rqa++;return new yA({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0})};
AA=function(a){a=void 0===a?0:a;return 0===a?"client-screen-nonce":"client-screen-nonce."+a};
BA=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Tqa=function(a){return g.O(BA(void 0===a?0:a))};
g.CA=function(a){return(a=Tqa(void 0===a?0:a))?new yA({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Uqa=function(){var a=g.O("csn-to-ctt-auth-info");a||(a={},mv("csn-to-ctt-auth-info",a));return a};
g.DA=function(a){a=g.O(AA(void 0===a?0:a));if(!a&&!g.O("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
Wqa=function(a){for(var b=g.t(Object.values(Vqa)),c=b.next();!c.done;c=b.next())if(g.DA(c.value)===a)return!0;return!1};
Xqa=function(a,b,c){var d=Uqa();(c=g.DA(c))&&delete d[c];b&&(d[a]=b)};
EA=function(a){return Uqa()[a]};
Zqa=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.O(AA(c))||b!==g.O(BA(c)))if(Xqa(a,d,c),mv(AA(c),a),mv(BA(c),b),b=function(){setTimeout(function(){if(a)if(g.ov("web_time_via_jspb")){var e=new mu;g.I(e,1,Yqa);g.I(e,2,a);var f=new gv;zg(f,mu,111,pA,e);oA(f)}else g.ax("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Yqa,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
FA=function(a){ey.call(this,1,arguments);this.csn=a};
cra=function(a,b,c,d,e,f,h){function l(){g.sA(new g.Sw("newScreen() parent element does not have a VE - rootVe",b))}
var m=$qa(),n=new yA({veType:b,youtubeData:f,jspbYoutubeData:void 0});f={sequenceGroup:m};e&&(f.cttAuthInfo=e);g.ov("il_via_jspb")?(e=uma((new Au).j(m),n.getAsJspb()),c&&c.visualElement?(n=new Bu,c.clientScreenNonce&&g.I(n,2,c.clientScreenNonce),vma(n,c.visualElement.getAsJspb()),h&&g.I(n,4,ara[h]),J(e,Bu,5,n)):c&&l(),d&&g.I(e,3,d),Eqa(e,f,a)):(e={csn:m,pageVe:n.getAsJson()},c&&c.visualElement?(e.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},h&&(e.implicitGesture.gestureType=
h)):c&&l(),d&&(e.cloneCsn=d),a?Uz("screenCreated",e,a,f):g.ax("screenCreated",e,f));hy(bra,new FA(m));return m};
HA=function(a,b,c,d){g.GA(a,b,c,[d])};
g.GA=function(a,b,c,d){var e=d.filter(function(m){m.csn!==b?(m.csn=b,m=!0):m=!1;return m}),f={cttAuthInfo:EA(b)||void 0,
sequenceGroup:b};d=g.t(d);for(var h=d.next();!h.done;h=d.next())h=h.value.getAsJson(),(g.Uc(h)||!h.trackingParams&&!h.veType)&&g.sA(Error("Child VE logged with no data"));if(g.ov("il_via_jspb")){var l=xma((new Cu).j(b),c.getAsJspb());g.Lg(e,function(m){m=m.getAsJspb();Eg(l,3,gt,m)});
"UNDEFINED_CSN"===b?IA("visualElementAttached",f,void 0,l):Gqa(l,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.Lg(e,function(m){return m.getAsJson()})},"UNDEFINED_CSN"===b?IA("visualElementAttached",f,c):a?Uz("visualElementAttached",c,a,f):g.ax("visualElementAttached",c,f)};
era=function(a,b,c,d,e,f){dra(a,b,c,e,f)};
dra=function(a,b,c,d,e){var f={cttAuthInfo:EA(b)||void 0,sequenceGroup:b};g.ov("il_via_jspb")?(d=(new Fu).j(b),c=c.getAsJspb(),c=J(d,gt,2,c),c=g.I(c,4,1),e&&J(c,zu,3,e),"UNDEFINED_CSN"===b?IA("visualElementShown",f,void 0,c):qA(c,f,a)):(e={csn:b,ve:c.getAsJson(),eventType:1},d&&(e.clientData=d),"UNDEFINED_CSN"===b?IA("visualElementShown",f,e):a?Uz("visualElementShown",e,a,f):g.ax("visualElementShown",e,f))};
fra=function(a,b){var c={cttAuthInfo:EA(a)||void 0,sequenceGroup:a};if(g.ov("il_via_jspb")){var d=(new Fu).j(a);b=b.getAsJspb();d=J(d,gt,2,b);d=g.I(d,4,4);"UNDEFINED_CSN"===a?IA("visualElementShown",c,void 0,d):qA(d,c)}else d={csn:a,ve:b.getAsJson(),eventType:4},"UNDEFINED_CSN"===a?IA("visualElementShown",c,d):g.ax("visualElementShown",d,c)};
JA=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f={cttAuthInfo:EA(b)||void 0,sequenceGroup:b,endOfSequence:d};g.ov("il_via_jspb")?(e=(new Eu).j(b),c=c.getAsJspb(),c=J(e,gt,2,c),g.I(c,4,d?16:8),"UNDEFINED_CSN"===b?IA("visualElementHidden",f,void 0,c):Bqa(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"===b?IA("visualElementHidden",f,d):a?Uz("visualElementHidden",d,a,f):g.ax("visualElementHidden",d,f))};
gra=function(a,b,c,d,e){KA(a,b,c,d,e)};
KA=function(a,b,c,d,e){var f={cttAuthInfo:EA(b)||void 0,sequenceGroup:b};g.ov("il_via_jspb")?(d=(new Du).j(b),c=c.getAsJspb(),c=J(d,gt,2,c),g.I(c,4,ara.INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK),e&&J(c,zu,3,e),"UNDEFINED_CSN"===b?IA("visualElementGestured",f,void 0,c):Cqa(c,f,a)):(e={csn:b,ve:c.getAsJson(),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"},d&&(e.clientData=d),"UNDEFINED_CSN"===b?IA("visualElementGestured",f,e):a?Uz("visualElementGestured",e,a,f):g.ax("visualElementGestured",
e,f))};
hra=function(){return g.ov("enable_web_96_bit_csn")?g.xA(16):g.Ef(Math.random()+"",3)};
IA=function(a,b,c,d){LA.push({payloadName:a,payload:c,Zr:d,options:b});MA||(MA=ly(bra,ira))};
ira=function(a){if(LA){for(var b=g.t(LA),c=b.next();!c.done;c=b.next())if(c=c.value,g.ov("il_via_jspb")&&c.Zr)switch(c.Zr.j(a.csn),c.payloadName){case "screenCreated":Eqa(c.Zr,c.options);break;case "visualElementAttached":Gqa(c.Zr,c.options);break;case "visualElementShown":qA(c.Zr,c.options);break;case "visualElementHidden":Bqa(c.Zr,c.options);break;case "visualElementGestured":Cqa(c.Zr,c.options);break;case "visualElementStateChanged":Dqa(c.Zr,c.options);break;default:g.sA(new g.Sw("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
(c.payload.csn=a.csn,g.ax(c.payloadName,c.payload,c.options));LA.length=0}MA=0};
NA=function(){this.C=new Set;this.j=new Set;this.D=new Map;this.client=g.Ly;this.csn=null};
OA=function(){NA.instance||(NA.instance=new NA);return NA.instance};
PA=function(){this.u=new Set;this.j=new Set;this.C=new Map;this.client=void 0;this.csn=null};
QA=function(){PA.instance||(PA.instance=new PA);return PA.instance};
RA=function(){this.u=new Set;this.j=new Set;this.C=new Map};
jra=function(){var a=RA.getInstance();g.ov("use_ts_visibilitylogger")?(a=QA(),g.ov("safe_logging_library_killswitch")?(a.clear(),a.csn=g.DA()):g.vv(OA().u).bind(OA())()):a.clear()};
g.UA=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.SA)():TA())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.VA=function(a){var b=TA(),c=(0,g.SA)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
kra=function(){var a=(0,g.SA)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.WA=function(a){try{var b=TA(),c=(0,g.SA)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.XA=function(){return g.VA("yt-remote-session-screen-id")};
g.YA=function(a,b,c){c=void 0===c?null:c;if(window.spf&&spf.script){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(lra,""),c=c.replace(mra,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else nra(a,b,c)};
nra=function(a,b,c){c=void 0===c?null:c;var d=ora(a),e=document.getElementById(d),f=e&&pqa(e),h=e&&!f;f?b&&b():(b&&(f=g.kz(d,b),b=""+g.Na(b),pra[b]=f),h||(e=qra(a,d,function(){pqa(e)||(oqa(e,"loaded","true"),g.mz(d),g.Kv(g.Qa(Dpa,d),0))},c)))};
qra=function(a,b,c,d){d=void 0===d?null:d;var e=g.Oe("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)};
e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
d&&e.setAttribute("nonce",d);g.Wi(e,Dla(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
ora=function(a){var b=document.createElement("a");g.Xd(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+re(a)};
aB=function(a){var b=g.ya.apply(1,arguments);if(!ZA(a)||b.some(function(d){return!ZA(d)}))throw Error("Only objects may be merged.");
b=g.t(b);for(var c=b.next();!c.done;c=b.next())$A(a,c.value);return a};
$A=function(a,b){for(var c in b)if(ZA(b[c])){if(c in a&&!ZA(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});$A(a[c],b[c])}else if(bB(b[c])){if(c in a&&!bB(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);rra(a[c],b[c])}else a[c]=b[c];return a};
rra=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,ZA(c)?a.push($A({},c)):bB(c)?a.push(rra([],c)):a.push(c);return a};
ZA=function(a){return"object"===typeof a&&!Array.isArray(a)};
bB=function(a){return"object"===typeof a&&Array.isArray(a)};
cB=function(a,b,c,d,e,f,h){g.E.call(this);this.Fa=a;this.Yb=b;this.Kb=c;this.Yd=d;this.Ta=e;this.u=f;this.j=h};
tra=function(a,b,c){if(c.Qy){if(a.Fa.get().G.V().N("h5_check_forecasting_renderer_for_throttled_midroll")){var d=c.Hn.filter(function(e){var f;return null!=(null==(f=e.renderer)?void 0:f.clientForecastingAdRenderer)});
0!==d.length?dB(a.j,d,b.slotId,c.ssdaiAdsConfig):eB(a.Yb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)}else eB(a.Yb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId);
sra(a.u,b)}else dB(a.j,c.Hn,b.slotId,c.ssdaiAdsConfig)};
vra=function(a,b,c,d,e){var f=a.Ta.get().Wf(1);eB(a.Yb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return ura(a.Yd.get(),c,d,f.clientPlaybackNonce,f.fR,f.daiEnabled,f,e)},b)};
gB=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.t(b);for(c=b.next();!c.done;c=b.next())if(!fB(a.Da,c.value))return!1;return!0};
hB=function(a,b){this.zq=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
wra=function(a){switch(a){case "b.f_":return 0;case "j.s_":return 2;case "r.s_":return 4;case "e.h_":return 6;case "i.s_":return 8;default:Ui(a,"Unknown method type")}};
xra=function(a){switch(a){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 1;case 5:return 1;default:Ui(a,"unknown result type")}};
jB=function(a,b){a={aW:a,metadata:b};yra(a);b=JSON.parse(JSON.stringify(zra));b.adPlacements&&b.playerAds&&b.playerResponse&&b.playerResponse.adPlacements&&b.playerResponse.playerAds?iB(2,"j.s_",a):iB(3,"j.s_",a);Ara(a);try{var c=document.createElement("ytd-display-ad-renderer");c.classList.add("ytd-companion-slot-renderer");c.setAttribute("id","masthead-ad");document.body.appendChild(c);iB("none"===getComputedStyle(c).display?3:2,"e.h_",a);document.body.removeChild(c)}catch(d){iB(1,"e.h_",a)}};
Bra=function(a){function b(d){iB(d,"i.s_",{aW:"sk",metadata:a})}
try{var c=document.querySelector(".ytp-ad-skip-button-slot");c?"none"===getComputedStyle(c).display?b(3):b(2):b(5)}catch(d){b(1)}};
yra=function(a){var b;g.A(function(c){b=function(d){iB(d,"b.f_",a)};
return g.y(c,(void 0!==qna()?of(Error("Biscotti id is disabled")):Sv("//web.archive.org/web/20230104105643/https://googleads.g.doubleclick.net/pagead/id",Dw)).then(function(){b(2)},function(d){"Biscotti id is disabled"===d.message?b(4):(g.sA("Failed fetching bid when "+a),b(3))}),0)})};
Ara=function(a){var b,c;g.A(function(d){if(1==d.j)return b=function(e){iB(e,"r.s_",a)},g.qa(d,2),g.y(d,(new Response('{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true}}',{status:200})).json(),4);
if(2!=d.j)return c=d.u,c.adPlacements&&c.playerAds&&c.playerResponse&&c.playerResponse.adPlacements&&c.playerResponse.playerAds?b(2):b(3),g.ra(d,0);g.ua(d);b(1);g.pa(d)})};
iB=function(a,b,c){var d={detected:3===a,source:b+(c.aW+("b.f_"===b&&4===a?"_known.failure":"r.s_"===b&&1===a?"_failure":"i.s_"===b&&5===a?"_skip_not_found":""))};c.metadata&&(d.contentCpn=c.metadata.contentCpn);g.ax("biscottiBasedDetection",d);a=xra(a);b=wra(b);mv("CATSTAT",Number(g.O("CATSTAT",0))&~(3<<b)|a<<b)};
Dra=function(a){Cra=void 0===a?!1:a};
kB=function(a,b,c,d,e){d=void 0===d?{}:d;Cra&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Sw(a);if(a.args)for(var f=g.t(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.slotType:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.sA(a)}};
lB=function(a,b,c,d,e,f,h){g.E.call(this);this.Yb=a;this.Yd=b;this.KI=c;this.Fa=d;this.j=e;this.Ta=f;this.Ha=h};
mB=function(){this.u=new Map;this.j=new Map;this.B=new Map};
nB=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.xA(16)};
oB=function(a,b,c){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.xA(16)};
pB=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.xA(16)};
qB=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
Era=function(a,b,c,d){this.B=a;this.Bf=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
rB=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.sA(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
sB=function(a,b){return b&&b.test(a)?!0:!1};
tB=function(a){return(a=Fra&&Fra.exec(a))?a[0]:""};
uB=function(a){var b=void 0===b?!1:b;return rB(sB(a,Gra),a,b,"Trusted Stream URL")};
g.vB=function(a){var b=void 0===b?!1:b;return rB(sB(a,Hra),a,b,"Trusted Image URL")};
Jra=function(a){var b=void 0===b?!1:b;return rB(sB(a,Ira),a,b,"Trusted Promoted Video Domain URL")};
Lra=function(a){var b=void 0===b?!1:b;return rB(sB(a,Kra),a,b,"Drm Licensor URL")};
Nra=function(a,b){b=void 0===b?!1:b;return rB(sB(a,Mra),a,b,"Captions URL")};
Ora=function(a){a=new g.xj(a);g.yj(a,document.location.protocol);g.zj(a,document.location.hostname);document.location.port&&g.Aj(a,document.location.port);return a.toString()};
wB=function(a){a=new g.xj(a);g.yj(a,document.location.protocol);return a.toString()};
g.yB=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=Pra++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||xB.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.Nk(d.thumbnails,function(e){return g.vB(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Qra=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Rra=function(a,b){switch(a.style){case xB.CHAPTER_MARKER:return b?8:5;case xB.AD_MARKER:return 6;case xB.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.zB=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
g.AB=function(a){return"crn_"+a};
g.BB=function(a){return"crx_"+a};
CB=function(a,b,c,d,e){g.yB.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.j=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
DB=function(a){return"AD_PLACEMENT_KIND_START"==a.j};
Sra=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j};
Tra=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Jo(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Jo(Math.max(0,b.B-b.j),0x7ffffffffffff):new Jo(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.B);if(c&&(d=a,a=Math.max(0,a-b.j),a==d))break;return new Jo(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.Bf;a=1E3*d.startSecs;if(c){if(a<b.u)return new Jo(a-4E3,a);c=Math.max(0,a-b.u-1E4);return new Jo(b.C?b.u:Math.floor(b.u+Math.random()*c),a)}return new Jo(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
EB=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.FB=function(a){a=void 0===a?!1:a;g.E.call(this);this.nj=new g.Mo(a);g.H(this,this.nj)};
g.GB=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
HB=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.IB=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.t(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.JB=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=Ne("B",null,h||l));d.italics&&(h=Ne("I",null,h||l));d.strikethrough&&(h=Ne("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=Ne("A",null,h||l),g.Xd(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||Ne("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:Ne("SPAN",null,b)};
KB=function(a,b,c,d){d=void 0===d?!1:d;Za.call(this,a);this.Jn=c;this.Gt=d;this.args=[];b&&this.args.push(b)};
Ura=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Nm:new Jo(-0x8000000000000,-0x8000000000000),dC:d},null!=c&&(d.ir=new Jo(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Nm:new Jo(0x7ffffffffffff,0x8000000000000),dC:d},null!=c&&(d.ir=new Jo(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||kB("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||kB("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new KB("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",e===b&&a-500<=e);d={Nm:new Jo(a,e),dC:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.ir=new Jo(a,e)}return d;
default:return new KB("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
Vra=function(a){var b=1E3*a.startSecs;return new Jo(b,b+1E3*a.durationSecs)};
LB=function(a,b){ey.call(this,1,arguments);this.timer=b};
Wra=function(a,b){ey.call(this,1,arguments);this.j=a;this.timer=b};
Xra=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Yra=function(a){var b=MB("aft",a);if(b)return b;b=g.O((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=MB(b[d],a);if(e)return e}return NaN};
Zra=function(){var a;if(g.ov("csi_use_performance_navigation_timing")||g.ov("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==NB?void 0:null==(a=NB.getEntriesByType)?void 0:null==(b=a.call(NB,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=OB(e.requestStart),e.responseEnd=OB(e.responseEnd),e.redirectStart=OB(e.redirectStart),e.redirectEnd=OB(e.redirectEnd),e.domainLookupEnd=OB(e.domainLookupEnd),e.connectStart=OB(e.connectStart),
e.connectEnd=OB(e.connectEnd),e.responseStart=OB(e.responseStart),e.secureConnectionStart=OB(e.secureConnectionStart),e.domainLookupStart=OB(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=NB.timing}else a=NB.timing;return a};
PB=function(){return(g.ov("csi_use_time_origin")||g.ov("csi_use_time_origin_tvhtml5"))&&NB.timeOrigin?Math.floor(NB.timeOrigin):NB.timing.navigationStart};
OB=function(a){return Math.round(PB()+a)};
QB=function(a,b){g.Da("ytglobal.timing"+(b||"")+"ready_",a)};
RB=function(a){return g.Fa("ytcsi."+(a||"")+"data_")||$ra(a)};
SB=function(a){a=RB(a);a.info||(a.info={});return a.info};
TB=function(a){a=RB(a);a.metadata||(a.metadata={});return a.metadata};
UB=function(a){a=RB(a);a.tick||(a.tick={});return a.tick};
MB=function(a,b){if(a=UB(b)[a])return"number"===typeof a?a:a[a.length-1]};
VB=function(a){a=RB(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
WB=function(a){a=VB(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
XB=function(a){var b=RB(a).nonce;b||(b=g.xA(16),RB(a).nonce=b);return b};
$ra=function(a){var b={tick:{},info:{}};g.Da("ytcsi."+(a||"")+"data_",b);return b};
csa=function(a){var b=MB("_start",a),c=Yra(a);b&&c&&!asa&&(hy(bsa,new LB(Math.round(c-b),a)),asa=!0)};
dsa=function(a,b){for(var c=g.t(Object.keys(b)),d=c.next();!d.done;d=c.next())if(d=d.value,!Object.keys(a).includes(d)||"object"===typeof b[d]&&!dsa(a[d],b[d]))return!1;return!0};
esa=function(){if(NB.getEntriesByType){var a=NB.getEntriesByType("paint");if(a=g.ib(a,function(b){return"first-paint"===b.name}))return OB(a.startTime)}a=NB.timing;
return a.q2?Math.max(0,a.q2):0};
YB=function(){var a=g.Fa("ytcsi.debug");a||(a=[],g.Da("ytcsi.debug",a),g.Da("ytcsi.reference",{}));return a};
ZB=function(a){a=a||"";var b=fsa();if(b[a])return b[a];var c=YB(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
$B=function(a){a=a||"";var b=fsa();b[a]&&delete b[a];var c=YB(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
fsa=function(){var a=g.Fa("ytcsi.reference");if(a)return a;YB();return g.Fa("ytcsi.reference")};
aC=function(a){return gsa[a]||"LATENCY_ACTION_UNKNOWN"};
lsa=function(a,b,c){c=VB(c);if(c.gelInfos)c.gelInfos[a]=!0;else{var d={};c.gelInfos=(d[a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in hsa){c=hsa[a];g.nb(isa,c)&&(b=!!b);a in jsa&&"string"===typeof b&&(b=jsa[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h<b.length-1;h++){var l=b[h];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return aB({},d)}g.nb(ksa,a)||g.sA(new g.Sw("Unknown label logged with GEL CSI",a))};
bC=function(){this.j=0};
cC=function(){bC.instance||(bC.instance=new bC);return bC.instance};
eC=function(a,b){dC[b]=dC[b]||{count:0};var c=dC[b];c.count++;c.time=(0,g.R)();a.j||(a.j=g.Nw(0,function(){var d=(0,g.R)(),e;for(e in dC)dC[e]&&6E4<d-dC[e].time&&delete dC[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.Sw("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.sA(c)),!0):!1};
fC=function(a){$ra(a);msa();a||(g.O("TIMING_ACTION")&&mv("PREVIOUS_ACTION",g.O("TIMING_ACTION")),mv("TIMING_ACTION",""))};
jC=function(a,b){b=void 0===b?{}:b;gC(a);$B(a);fC(a);RB(a).useGel=!0;ZB(a||"").info.actionType=a;b.cttAuthInfo&&(RB(a).cttAuthInfo=b.cttAuthInfo);mv(a+"TIMING_ACTION",a);hC("_start",b.startTime,a);b={actionType:aC(a)};var c=g.DA();c&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);iC(b,a);QB(!0,a)};
g.kC=function(a,b,c,d){if(null!==b){var e=SB(c);g.ov("skip_setting_info_in_csi_data_object")?"yt_lt"===a&&(e="string"===typeof b?b:""+b,TB(c).loadType=e):e[a]=b;(a=lsa(a,b,c))&&iC(a,c,d)}};
iC=function(a,b,c){if(!g.ov("web_csi_via_jspb")||(void 0===c?0:c))c=ZB(b||""),aB(c.info,a),g.ov("skip_setting_info_in_csi_data_object")&&a.loadType&&(c=a.loadType,TB(b).loadType=c),aB(WB(b),a),c=XB(b),b=RB(b).cttAuthInfo,cC().info(a,c,b);else{c=new Ku;var d=Object.keys(a);a=Object.values(a);for(var e=0;e<d.length;e++){var f=d[e];try{switch(f){case "actionType":g.I(c,1,U[a[e]]);break;case "clientActionNonce":g.I(c,2,a[e]);break;case "clientScreenNonce":g.I(c,4,a[e]);break;case "loadType":g.I(c,3,a[e]);
break;case "isPrewarmedLaunch":g.I(c,92,a[e]);break;case "isFirstInstall":g.I(c,55,a[e]);break;case "networkType":g.I(c,5,lC[a[e]]);break;case "connectionType":g.I(c,26,mC[a[e]]);break;case "detailedConnectionType":g.I(c,27,nC[a[e]]);break;case "isVisible":g.I(c,6,a[e]);break;case "playerType":g.I(c,7,oC[a[e]]);break;case "clientPlaybackNonce":g.I(c,8,a[e]);break;case "adClientPlaybackNonce":g.I(c,28,a[e]);break;case "previousCpn":g.I(c,77,a[e]);break;case "targetCpn":g.I(c,76,a[e]);break;case "isMonetized":g.I(c,
9,a[e]);break;case "isPrerollAllowed":g.I(c,16,a[e]);break;case "isPrerollShown":g.I(c,17,a[e]);break;case "adType":g.I(c,12,a[e]);break;case "adTypesAllowed":g.I(c,36,a[e]);break;case "adNetworks":g.I(c,37,a[e]);break;case "previousAction":g.I(c,13,U[a[e]]);break;case "isRedSubscriber":g.I(c,14,a[e]);break;case "serverTimeMs":g.I(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":g.I(c,20,a[e]);break;case "targetVideoId":g.I(c,78,a[e]);break;case "adBreakType":g.I(c,21,pC[a[e]]);
break;case "isNavigation":g.I(c,25,a[e]);break;case "viewportHeight":g.I(c,29,a[e]);break;case "viewportWidth":g.I(c,30,a[e]);break;case "screenHeight":g.I(c,84,a[e]);break;case "screenWidth":g.I(c,85,a[e]);break;case "browseId":g.I(c,31,a[e]);break;case "isCacheHit":g.I(c,32,a[e]);break;case "httpProtocol":g.I(c,33,a[e]);break;case "transportProtocol":g.I(c,34,a[e]);break;case "searchQuery":g.I(c,41,a[e]);break;case "isContinuation":g.I(c,42,a[e]);break;case "availableProcessors":g.I(c,43,a[e]);
break;case "sdk":g.I(c,44,a[e]);break;case "isLocalStream":g.I(c,45,a[e]);break;case "navigationRequestedSameUrl":g.I(c,64,a[e]);break;case "shellStartupDurationMs":g.I(c,70,a[e]);break;case "appInstallDataAgeMs":g.I(c,73,a[e]);break;case "latencyActionError":g.I(c,71,qC[a[e]]);break;case "actionStep":g.I(c,79,a[e]);break;case "jsHeapSizeLimit":g.I(c,80,a[e]);break;case "totalJsHeapSize":g.I(c,81,a[e]);break;case "usedJsHeapSize":g.I(c,82,a[e]);break;case "sourceVideoDurationMs":g.I(c,90,a[e]);break;
case "videoOutputFrames":g.I(c,93,a[e]);break;case "isResume":g.I(c,104,a[e]);break;case "debugTicksExcluded":g.I(c,105,a[e]);break;case "adPrebufferedTimeSecs":g.I(c,39,a[e]);break;case "isLivestream":g.I(c,47,a[e]);break;case "liveStreamMode":g.I(c,91,rC[a[e]]);break;case "adCpn2":g.I(c,48,a[e]);break;case "adDaiDriftMillis":g.I(c,49,a[e]);break;case "videoStreamType":g.I(c,53,sC[a[e]]);break;case "playbackRequiresTap":g.I(c,56,a[e]);break;case "performanceNavigationTiming":g.I(c,67,a[e]);break;
case "transactionType":g.I(c,74,tC[a[e]]);break;case "playerRotationType":g.I(c,101,uC[a[e]]);break;case "allowedPreroll":g.I(c,10,a[e]);break;case "shownPreroll":g.I(c,11,a[e]);break;case "getHomeRequestId":g.I(c,57,a[e]);break;case "getSearchRequestId":g.I(c,60,a[e]);break;case "getPlayerRequestId":g.I(c,61,a[e]);break;case "getWatchNextRequestId":g.I(c,62,a[e]);break;case "getBrowseRequestId":g.I(c,63,a[e]);break;case "getLibraryRequestId":g.I(c,66,a[e]);break;case "isTransformerEnabledForFeature":g.I(c,
106,a[e]);break;default:nsa.includes(f)&&g.uv(new g.Sw("Codegen laipb translator asked to translate message field",""+f))}}catch(h){g.uv(Error("Codegen laipb translator failed to set "+f))}}vC(c,b)}};
vC=function(a,b){if(g.ov("skip_setting_info_in_csi_data_object")){var c=Jg(a,3);c&&(TB(b).loadType=c)}else c=VB(b),c.jspbInfos||(c.jspbInfos=[]),c.jspbInfos.push(a.El());ZB(b||"").jspbInfo.push(a);c=XB(b);b=RB(b).cttAuthInfo;cC().jspbInfo(a,c,b)};
hC=function(a,b,c){if(!b&&"_"!==a[0]){var d=a;NB.mark&&(Jb(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),NB.mark(d))}d=ZB(c||"");d.tick[a]=b||(0,g.R)();if(d.callback&&d.callback[a]){d=g.t(d.callback[a]);for(var e=d.next();!e.done;e=d.next())e=e.value,e()}d=VB(c);d.gelTicks&&(d.gelTicks[a]=!0);e=UB(c);d=b||(0,g.R)();g.ov("log_repeated_ytcsi_ticks")?a in e||(e[a]=d):e[a]=d;e=XB(c);var f=RB(c).cttAuthInfo;"_start"===a?(a=cC(),eC(a,"baseline_"+e)||(b={timestamp:b,cttAuthInfo:f},g.ov("web_csi_via_jspb")?
(a=new Hu,g.I(a,1,e),e=new gv,zg(e,Hu,6,pA,a),oA(e,b)):g.ax("latencyActionBaselined",{clientActionNonce:e},b))):cC().tick(a,e,b,f);csa(c);return d};
osa=function(a){var b="above_the_fold";NB&&NB.measure&&(Jb(b,"measure_")||(b="measure_"+b),a?NB.measure(b,a):NB.measure(b))};
wC=function(a,b){b=UB(b);return a in b};
xC=function(a,b,c){wC("_start",c)&&!wC(a,c)&&hC(a,b,c)};
yC=function(){switch(tpa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
gC=function(a){wC("_start",a)&&hC("aa",void 0,a)};
qsa=function(a){var b=Zra(),c=PB(),d=g.O("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.ov("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(hC("srt",b.responseStart),1!==a.prerender&&hC("_start",c,void 0));a=esa();0<a&&hC("fpt",a);a=Zra();a.isPerformanceNavigationTiming&&iC({performanceNavigationTiming:!0});hC("nreqs",a.requestStart,void 0);hC("nress",a.responseStart,void 0);hC("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(hC("nrs",a.redirectStart,void 0),hC("nre",a.redirectEnd,
void 0));0<a.domainLookupEnd-a.domainLookupStart&&(hC("ndnss",a.domainLookupStart,void 0),hC("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(hC("ntcps",a.connectStart,void 0),hC("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=PB()&&0<a.connectEnd-a.secureConnectionStart&&(hC("nstcps",a.secureConnectionStart,void 0),hC("ntcpe",a.connectEnd,void 0));NB&&"getEntriesByType"in NB&&psa()};
rsa=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;"SCRIPT"===d?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):"LINK"===d&&(c=a.href);ce()&&a.setAttribute("nonce",ce());return c?(a=NB.getEntriesByName(c))&&a[0]&&(a=a[0],c=PB(),hC("rsf_"+b,c+Math.round(a.fetchStart)),hC("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
ssa=function(){var a=[];if(document.querySelector&&NB&&NB.getEntriesByName)for(var b in zC)if(zC.hasOwnProperty(b)){var c=zC[b];rsa(b,c)&&a.push(c)}return a};
psa=function(){var a=window.location.protocol,b=NB.getEntriesByType("resource");b=g.vm(b,function(c){return 0===c.name.indexOf(a+"//web.archive.org/web/20230104105643/https://fonts.gstatic.com/s/")});
(b=Ok(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(hC("wffs",OB(b.startTime)),hC("wffe",OB(b.responseEnd)))};
tsa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
AC=function(a){var b=g.P(a,usa)||a.signatureCipher;a={GK:!1,Ot:"",Fv:"",s:""};if(!b)return a;b=zv(b);a.GK=!0;a.Ot=b.url;a.Fv=b.sp;a.s=b.s;return a};
g.BC=function(a,b){this.id=a;this.Rc=b;this.captionTracks=[];this.j=this.C=null;this.xtags="";this.u=null;this.B="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
CC=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0};
g.EC=function(a,b,c,d){return new CC(g.DC[a]||0,g.DC[b]||0,c,d)};
FC=function(a){var b=g.DC.auto;return a.u===b&&a.j===b};
HC=function(a){return GC[a.j||a.u]||"auto"};
vsa=function(a,b){b=g.DC[b];return a.u<=b&&(!a.j||a.j>=b)};
IC=function(a,b){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;b=g.t(this.j);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Rc&&!a.has(c.Rc.id)){var d=new g.BC(c.id,c.Rc);a.add(c.Rc.id);this.audioTracks.push(d)}}};
JC=function(){g.E.apply(this,arguments);this.j=null};
zsa=function(a,b,c,d,e,f){if(a.j)return a.j;var h={},l=new Set,m={};if(KC(d)){for(var n in d.j)d.j.hasOwnProperty(n)&&(a=d.j[n],m[a.info.Hb]=[a.info]);return m}n=wsa(b,d,h);f&&e({aftsrt:LC(n)});for(var p={},q=g.t(Object.keys(n)),r=q.next();!r.done;r=q.next()){r=r.value;for(var w=g.t(n[r]),x=w.next();!x.done;x=w.next()){x=x.value;var z=x.itag,B=void 0,C=r+"_"+((null==(B=x.video)?void 0:B.fps)||0);p.hasOwnProperty(C)?!0===p[C]?m[r].push(x):h[z]=p[C]:(B=MC(b,x,c,d.isLive,l),!0!==B?(h[z]=B,"disablevp9hfr"===
B&&(p[C]="disablevp9hfr")):(m[r]=m[r]||[],m[r].push(x),p[C]=!0))}}f&&e({bfflt:LC(m)});for(var G in m)m.hasOwnProperty(G)&&(d=G,m[d]&&m[d][0].isVideo()&&(m[d]=m[d],m[d]=xsa(b,m[d],h),m[d]=ysa(m[d],h)));f&&e(h);b=g.t(l.values());for(d=b.next();!d.done;d=b.next())(d=c.u.get(d.value))&&--d.jV;f&&e({aftflt:LC(m)});a.j=g.Kc(m,function(F){return!!F.length});
return a.j};
Bsa=function(a,b,c,d,e,f,h){if(b.Ec&&h&&1<h.length&&!(0<b.C||b.oa)){for(var l=wsa(b,d),m=[],n=[],p={},q=0;q<h.length;q++){var r=h[q],w=d.ya.get(r);if(w&&w.info){var x=w.info;w=x.Hb;if(MC(b,x,c,d.isLive)){r=x.isVideo()?m:n;x=g.t(l[w]);for(var z=x.next();!z.done;z=x.next()){z=z.value;var B=void 0,C=w+"_"+((null==(B=z.video)?void 0:B.fps)||0);p.hasOwnProperty(C)?!0===p[C]&&r.push(z):MC(b,z,c,d.isLive)&&(r.push(z),p[C]=!0)}}else f({opfu:r})}}return m.length&&n.length?Wv(new IC(m,n)):Asa(a,b,c,d,e,f)}return Asa(a,
b,c,d,e,f)};
Asa=function(a,b,c,d,e,f){function h(w){return!!m[w]}
var l=b.B||!!e,m=zsa(a,b,c,d,f,l);NC(d)&&(m=Csa(c,m,e,l,f,b),l&&f({enflt:LC(m)}));b.Rb=Dsa(m,b);if(KC(d))return f=g.ib(Object.values(m),function(w){return!!w.length&&!!w[0].audio}),l=g.ib(Object.values(m),function(w){return!!w.length&&!!w[0].video}),f&&l||Vv(),Wv(new IC(l,f));
a=Esa(b);l&&f({audioPrefOrder:a.join("_")});a=g.ib(a,h);if(!a)return l&&f({noaudio:1}),Vv();a=m[a];m["9"]&&m.h&&d.Pd&&!b.Wa&&(l&&f({dltvp9:1}),delete m["9"]);var n=m["1h"]?"1h":"1";c=m["9h"]?"9h":"9";var p=m[n],q=m[c];p&&p.length&&(b.u.highestAv1Resolution=p[p.length-1].video.j);q&&q.length&&(b.u.highestVp9Resolution=q[q.length-1].video.j);e=[];var r=[];if(b.oa&&!b.j)for(r=Fsa(d)?m["1h"]||m["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],l&&f({newhybpref:r.join(".")}),p=g.t(r),q=p.next();!q.done;q=p.next())e=
e.concat(m[q.value]).filter(function(w){return w});
else 0<b.C&&q&&p&&(r=[n,c],e=p.concat(q).filter(function(w){return w}));
if(e.length&&!b.j){OC(e,r);if(l){l=[];b=g.t(e);for(d=b.next();!d.done;d=b.next())l.push(d.value.itag);f({hbdfmt:l.join(".")})}return Wv(new IC(e,a))}e=Gsa(b);e=g.ib(e,h);if(!e){if(m[n])return f=m[n],OC(f),Wv(new IC(f,a));l&&f({novideo:1});return Vv()}b.Ac&&("1"===e||"1h"===e)&&m[c]&&(n=PC(m[e]),PC(m[c])>n&&(e=c));"9"===e&&m.h&&PC(m.h)>PC(m["9"])&&(e="h");b.Pb&&d.isLive&&"("===e&&m.H&&1440>PC(m["("])&&(e="H");l&&f({vfmly:QC(e)});b=m[e];if(!b.length)return l&&f({novfmly:QC(e)}),Vv();OC(b);return Wv(new IC(b,
a))};
Dsa=function(a,b){var c=b.J&&!(!a.mac3&&!a.MAC3),d=b.T&&!(!a.meac3&&!a.MEAC3);return b.Aa&&!(!a.m&&!a.M)||c||d};
QC=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
LC=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(QC(d));d=g.t(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
Csa=function(a,b,c,d,e,f){var h={},l={};g.Jc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.Nd)return l[q]="noenc",!1;if((null==c?0:RC(c))&&!f.jd&&("(h"===p.Hb||"("===p.Hb&&p.video&&1080<p.video.j))return l[q]="cbchdr4k",!1;if("("===p.Hb||"(h"===p.Hb){if(a.B&&c&&"widevine"===c.flavor){var r=p.mimeType+"; experimental=allowed";(r=!!p.Nd[c.flavor]&&!!c.j[r])||(l[q]=p.Nd[c.flavor]?"unspt":"noflv");return r}if(!SC(a,TC.CRYPTOBLOCKFORMAT)&&!a.ya||a.ea)return l[q]=a.ea?"disvp":"vpsub",!1}return c&&
p.Nd[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.Nd[c.flavor]?"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
ysa=function(a,b){var c=Ok(a,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
Infinity>c&&(a=a.filter(function(d){if(32<d.video.fps||d.video.width<c)return!0;b[d.itag]="hfrfirst";return!1}));
fw()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
xsa=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.dc)return!0;c[d.itag]="maxquality";return!1})};
wsa=function(a,b,c){var d={},e;for(e in b.j)if(b.j.hasOwnProperty(e)){var f=b.j[e].info;if(a.ea&&f.video&&f.video.j<a.ea)c&&(c[f.itag]="min"+a.ea);else{var h=f.Hb;d[h]=d[h]||[];d[h].push(f)}}a=g.t(Object.keys(d));for(b=a.next();!b.done;b=a.next())OC(d[b.value]);return d};
PC=function(a){return Ok(a,function(b,c){return Math.max(b,c.video.j)},0)};
MC=function(a,b,c,d,e){e=void 0===e?new Set:e;if(""===b.Hb)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.kb)return"blk2khfr";if(a.Z&&b.video&&b.video.j>a.Z)return"max"+a.Z;if(a.Fb&&"h"===b.Hb&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.Hb&&!c.D)return"enchdr";if((void 0===d?0:d)&&UC(b)&&!a.Va)return"blk51live";if(VC(b)&&!a.Pa)return"blk51ugc";if(!a.Fd&&b.Nd&&b.Nd.fairplay&&("("===b.Hb||"(h"===b.Hb||"A"===b.Hb||"MEAC3"===b.Hb))return"cbc";if((d=c.u.get(b.Hb))&&0<d.jV)return e.add(b.Hb),
"byerr";var f;if(null==(f=b.video)?0:32<f.fps){if(!c.T||!c.oa&&!SC(c,TC.FRAMERATE))return"capHfr";if(a.tb&&4320<=b.video.j)return"blk8khfr";if(WC(b)&&a.Lc&&b.Nd&&1440<=b.video.j)return"disablevp9hfr"}a=Hsa(c,b);return!0!==a?a:!0};
OC=function(a,b){b=void 0===b?[]:b;g.Cb(a,function(c,d){var e=d.ac-c.ac;if(!c.isVideo()||!d.isVideo())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&0<b.length&&(c=b.indexOf(c.Hb)+1,d=b.indexOf(d.Hb)+1,f=0===c||0===d?d||-1:c-d);f||(f=e);return f})};
Isa=function(a){a=void 0===a?{}:a;var b=void 0===a.jo?!1:a.jo,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.IN?!1:a.IN;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e?3:2:c&&d?-1:1};
Jsa=function(a){return Isa({hasSubfragmentedFmp4:a.C.Pj,jo:a.C.Pj,defraggedFromSubfragments:a.vp,isManifestless:!0,IN:a.Pa})};
Ksa=function(a){a=a.split("");XC.UB(a,9);XC.tr(a,3);XC.IP(a,13);XC.UB(a,23);XC.UB(a,35);XC.UB(a,8);XC.tr(a,2);XC.IP(a,22);return a.join("")};
g.YC=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.j={};this.url=""};
$C=function(a){ZC(a);return a.C};
aD=function(a){return a.u?Jb(a.u,"local"):"local"===a.B};
Lsa=function(a){ZC(a);return g.Mc(a.j,function(b){return null!==b})};
bD=function(a){ZC(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
cD=function(a,b){b=void 0===b?!1:b;ZC(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Se();c=new g.xj(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&1<f.length&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.zj(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.YC(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")?
(g.zj(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.zj(c,"www.youtube.com"),d=c.toString()):d=Ora(d);c=new g.YC(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
ZC=function(a){if(a.u){if(!uB(a.u)&&!a.u.startsWith("local"))throw new g.Sw("Untrusted URL",a.u);var b=g.Gj(a.u);a.B=b.D;a.C=b.j+(null!=b.C?":"+b.C:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=Msa(c);Object.assign(a.j,
Nsa(b.u.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=Osa[0](b),a.set("n",b),Osa.length||Fla(""))}};
Psa=function(a){ZC(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(Lsa(a)){var c=[];g.Jc(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Msa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Qsa(c,a[b],a[b+1]);return c};
Nsa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Qsa(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
Qsa=function(a,b,c){if("cmo"===b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c};
dD=function(a,b,c,d,e,f,h,l,m){this.Na=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Bf=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.Bf=m||null};
g.eD=function(){this.segments=[];this.j=null;this.u=!0};
Rsa=function(a,b){if(b>a.od())a.segments=[];else{var c=gb(a.segments,function(d){return d.Na>=b},a);
0<c&&a.segments.splice(0,c)}};
fD=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.B=this.u=0;this.C=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
Ssa=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
gD=function(a,b){b=g.t(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
hD=function(a,b,c){return a.split(b).Fk.split(c).dB};
iD=function(a){a.C=void 0;a.u=0;a.B=0};
jD=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.j[a.u].length};
Tsa=function(a){if(!a.C){var b=a.j[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
Usa=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!jD(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.u-d+1,e);iD(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
kD=function(a,b,c){a=Usa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
Vsa=function(a){a=kD(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;c<a.length;c++)b[c]=a[c]}return b};
lD=function(a,b){a.focus(b);return a.j[a.u][b-a.B]};
Wsa=function(a,b){a.focus(b);return jD(a,b,4)?Tsa(a).getUint32(b-a.B):256*(256*(256*lD(a,b)+lD(a,b+1))+lD(a,b+2))+lD(a,b+3)};
Xsa=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
mD=function(a){return String.fromCharCode.apply(null,a)};
oD=function(a){return nD?nD.decode(a):mD(a)};
g.qD=function(a){if(!a.length)return"";try{if(nD)return nD.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(h){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;1024>e&&b<d;){var f=a[b++];if(128>f)pD[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;pD[e++]=55296|f>>10;f=56320|f&1023}pD[e++]=f}}f=String.fromCharCode.apply(String,pD);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
sD=function(a,b){var c;if(null==(c=rD)?0:c.encodeInto)return b=rD.encodeInto(a,b),b.read<a.length?4*a.length:b.written;for(var d=c=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1<a.length&&56320===(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c};
Ysa=function(a){if(rD)return rD.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=sD(a,b);b.length<c&&(b=new Uint8Array(c),c=sD(a,b));b.length>c&&(b=b.subarray(0,c));return b};
tD=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.u=e)?0:8;this.dataOffset=this.offset+this.j};
uD=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
vD=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
wD=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
xD=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
yD=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b};
zD=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.j+a.data.byteOffset,c-a.j);a.j=Math.min(c+1,a.size);return oD(b)};
Zsa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
AD=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.offset,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.offset+=d};
CD=function(a,b){this.data=a;this.uri=b||"https://web.archive.org/web/20230104105643/http://youtube.com/streaming/metadata/segment/102015";this.j=BD(this,"Sequence-Number");this.I=BD(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=BD(this,"Ingestion-Walltime-Us")/1E6;this.u=(BD(this,"First-Frame-Time-Us")+BD(this,"First-Frame-Uncertainty-Us"))/1E6;this.Nj=BD(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=BD(this,"Crypto-Period-Index");
this.B=BD(this,"Crypto-Period-Seconds")};
ata=function(a){return a.data["Cuepoint-Type"]?new qB(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",$sa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
bta=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
BD=function(a,b){return Number(a.data[b])||0};
DD=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.cta=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.dta=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
eta=function(a,b){this.j=a;this.duration=b};
fta=function(a,b,c,d,e){this.u=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
ED=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0===a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null};
gta=function(a,b){var c=g.FD(a,0,1952868452);a=g.FD(a,0,1953658222);if(c&&a){c.skip(1);var d=uD(c)<<16|vD(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=xD(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=uD(a)<<16|vD(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=xD(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.j,h=xD(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
HD=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.FD(a,0,1836476516))?g.GD(a):NaN};
hta=function(a){var b=g.FD(a,0,1937011556);if(!b)return null;b=ID(a,b.dataOffset+8,1635148593)||ID(a,b.dataOffset+8,1635135537);if(!b)return null;var c=ID(a,b.dataOffset+78,1936995172),d=ID(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),uD(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=ID(a,d.dataOffset,1886547818)){var h=ID(a,d.dataOffset,1886546020),l=ID(a,d.dataOffset,2037673328);if(!l&&(l=ID(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=wD(h)/65536,f=wD(h)/65536,e=wD(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new fta(b,c,f,e,a)}return null};
ID=function(a,b,c){for(;JD(a,b);){var d=KD(a,b);if(d.type===c)return d;b+=d.size}return null};
g.FD=function(a,b,c){for(;JD(a,b);){var d=KD(a,b);if(d.type===c)return d;b=LD(d.type)?b+8:b+d.size}return null};
g.MD=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
KD=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new tD(a,b,c,d)};
g.GD=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
ita=function(a){a=new tD(a.data,a.offset,a.size,a.type,a.u);var b=uD(a);a.skip(7);var c=xD(a);if(0===b){b=xD(a);var d=xD(a)}else b=yD(a),d=yD(a);a.skip(2);for(var e=vD(a),f=[],h=[],l=0;l<e;l++){var m=xD(a);f.push(m);h.push(xD(a));a.skip(4)}return{ON:c,b0:b,t0:d,P5:f,JN:h}};
JD=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;if(jta){for(c=4;8>c;c++){var d=a.getInt8(b+c);if(48>d||122<d)return!1}return!0}c=a.getUint32(b+4);if(1635148593===c||1635148611===c||1937126244===c||1936995172===c||1635135537===c||1635135811===c||1987076931===c||1399669869===c||1131367500===c)return!0;for(c=4;8>c;c++)if(d=a.getInt8(b+c),97>d||122<d)return!1;return!0};
LD=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
kta=function(a){a.skip(4);return{f6:zD(a,0),value:zD(a,0),ON:xD(a),Q$a:xD(a),A9a:xD(a),id:xD(a),uT:zD(a),offset:a.offset}};
g.lta=function(a){var b=ID(a,0,1701671783);if(!b)return null;var c=kta(b),d=c.f6;c=ED(c.uT);if(a=ID(a,b.offset+b.size,1701671783))if(a=kta(a),a=ED(a.uT),c&&a){b=g.t(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new CD(c,d):null};
ND=function(a,b){for(var c=ID(a,0,b);c;)c.markAsSkip(),c=ID(a,c.offset+c.size,b)};
g.OD=function(a,b){for(var c=0,d=[];JD(a,c);){var e=KD(a,c);e.type===b&&d.push(e);c=LD(e.type)?c+8:c+e.size}return d};
mta=function(a,b){var c=g.FD(a,0,1937011556),d=g.FD(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.FD(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(1701733217!==d&&1701733238!==d)return null;d=new Zsa(a.byteLength+b);AD(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;AD(d,a,c.offset+16,c.size-16);AD(d,e,e.byteOffset+f.dataOffset+8,b);AD(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.t([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.FD(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.FD(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
nta=function(a){var b=g.FD(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(1701733217!==c&&1701733238!==c)return null;b=ID(a,b.offset+24+(1701733217===c?28:78),1936289382);if(!b)return null;c=ID(a,b.offset+8,1935894637);if(!c||1667392371!==a.getUint32(c.offset+12))return null;b=ID(a,b.offset+8,1935894633);if(!b)return null;b=ID(a,b.offset+8,1952804451);if(!b)return null;c=new Uint8Array(16);for(var d=0;16>d;d++)c[d]=a.getInt8(b.offset+16+d);return c};
PD=function(a,b){this.j=a;this.pos=0;this.start=b||0};
QD=function(a){return a.pos>=a.j.byteLength};
VD=function(a,b,c){var d=new PD(c);if(!RD(d,a))return!1;d=SD(d);if(!TD(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=UD(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?ota(d-9,8):ota(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
pta=function(a){var b=new PD(a);b.Am();if(RD(b,[408125543,374648427,174,224]))b=SD(b);else return null;for(var c=a=null;!QD(b);){var d=UD(b,!1);if(21432===d)switch(WD(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=SD(b):XD(b)}if(!c)return null;for(var e,f=d=b=null;!QD(c);)switch(UD(c,!1)){case 30321:if(3!==WD(c))return null;break;case 30324:b=YD(c);break;case 30323:f=YD(c);break;case 30325:d=YD(c);break;case 30322:e=UD(c,!0);e=ZD(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:XD(c)}return e?new fta(a,b,f,d,e):null};
SD=function(a){var b=UD(a,!0),c=a.j.byteOffset+a.pos;c=new DataView(a.j.buffer,c,Math.min(b,a.j.buffer.byteLength-c));c=new PD(c,a.start+a.pos);a.pos+=b;return c};
WD=function(a){for(var b=UD(a,!0),c=$D(a),d=1;d<b;d++)c=256*c+$D(a);return c};
YD=function(a){var b=UD(a,!0),c=0;4===b?c=a.j.getFloat32(a.pos):8===b&&(c=a.j.getFloat64(a.pos));a.pos+=b;return c};
qta=function(a){var b=UD(a,!0);return oD(ZD(a,b))};
$D=function(a){return a.j.getUint8(a.pos++)};
UD=function(a,b){var c=$D(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+$D(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+$D(a),d*=128;return b?c-d:c};
XD=function(a){var b=UD(a,!0);a.pos+=b};
rta=function(a){if(!TD(a,440786851,!0))return null;var b=a.pos;UD(a,!1);var c=UD(a,!0)+a.pos-b;a.pos=b+c;if(!TD(a,408125543,!1))return null;UD(a,!0);if(!TD(a,357149030,!0))return null;var d=a.pos;UD(a,!1);var e=UD(a,!0)+a.pos-d;a.pos=d+e;if(!TD(a,374648427,!0))return null;var f=a.pos;UD(a,!1);var h=UD(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);
l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l};
aE=function(a){var b=a.pos;a.pos=0;var c=1E6;RD(a,[408125543,357149030,2807729])&&(c=WD(a));a.pos=b;return c};
sta=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!bE(a)||!TD(a,160))return a.pos=c,NaN;UD(a,!0);var d=a.pos;if(!TD(a,161))return a.pos=c,NaN;UD(a,!0);$D(a);var e=$D(a)<<8|$D(a);a.pos=d;if(!TD(a,155))return a.pos=c,NaN;d=WD(a);a.pos=c;return(e+d)*b/1E9};
bE=function(a){if(!tta(a)||!TD(a,524531317))return!1;UD(a,!0);return!0};
tta=function(a){if(a.Am()){if(!TD(a,408125543))return!1;UD(a,!0)}return!0};
RD=function(a,b){for(var c=0;c<b.length;c++){if(!TD(a,b[c]))return!1;c!==b.length-1&&UD(a,!0)}return!0};
TD=function(a,b,c){c=void 0===c?!1:c;if(QD(a))return!1;for(var d=a.pos;UD(a,!1)!==b;)if(XD(a),d=a.pos,QD(a))return!1;c&&(a.pos=d);return!0};
ota=function(a,b){b||(b=Math.ceil(Math.log(a+2)/Math.log(2)/7));for(var c=1<<8-b,d=[];d.length<b-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|c);return d};
ZD=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
cE=function(a){this.hj=a;this.j={};this.url=""};
uta=function(a,b){var c=b.indexOf("?");if(0<c){var d=Nsa(b.substr(c+1));g.Jc(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=Msa(b);g.Jc(b,function(e,f){this.set(f,e)},a)};
vta=function(a){var b=a.hj.Se(),c=[];g.Jc(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Lsa(a.hj)?"&":"?";return b+a+d};
dE=function(a,b){var c=new g.YC(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Jc(a.j,function(d,e){c.set(e,null)});
return c};
wta=function(){this.C=this.B=this.j=this.timedOut=this.started=this.D=this.u=0};
eE=function(a){a.D=(0,g.R)();a.started=0;a.timedOut=0;a.j=0};
xta=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.B);return Math.pow(b.Gd,d)};
fE=function(a,b){a[b]||(a[b]=new wta);return a[b]};
gE=function(a){this.J=this.I=this.D=this.u=0;this.j=a;this.B=a.clone()};
iE=function(a,b,c){if(aD(a.j))return!1;var d=fE(c,$C(a.j));if(1>d.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=hE(a,b);c=fE(c,$C(a));return c.timedOut+c.j+ +(b.Sk&&!c.D)<d};
yta=function(a,b,c){a=b?hE(a,c):a.j;return new cE(a)};
hE=function(a,b){b=b?b.zj:!1;a.C||(a.C=cD(a.B,b));return a.C};
jE=function(a,b,c){return $C(b?hE(a,c):a.j)};
zta=function(a,b,c){c=fE(c,jE(a,iE(a,b,c),b));c=Math.max(a.D,c.timedOut)+b.ww*(a.u-a.D)+.25*a.I;b=c>b.qf?1E3*Math.pow(b.Gd,c-b.qf):0;return 0===b?!0:a.J+b<(0,g.R)()};
Ata=function(a,b,c){a.j.set(b,c);a.B.set(b,c);a.C&&a.C.set(b,c)};
kE=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.D=!1;this.J=0;this.C=this.B=null;this.info=b;this.u=new gE(a)};
mE=function(a,b,c){a=lE(a,b);return(c||"")+";"+a.itag+";"+(a.lmt||0)+";"+a.xtags};
lE=function(a,b){var c=g.t(a.info.id.split(";")),d=c.next().value;c=c.next().value;return{itag:+d,lmt:b?0:a.info.lastModified,xtags:void 0===c?"":c}};
nE=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
oE=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new nE(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
pE=function(a,b){return new nE(a,a+b-1)};
Bta=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
qE=function(a){if(!a)return new nE(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new nE(b,a),0<b.length))return b};
rE=function(a,b,c,d,e,f,h,l,m,n){d=void 0===d?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.J=[];this.D="";this.Na=-1;this.D=d;this.Na=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Nb=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.cf=this.range?this.Nb+this.u===this.range.length:void 0===n?!!this.u:n;this.range?(this.B=this.startTime+this.duration*this.Nb/this.range.length,this.I=this.duration*this.u/this.range.length,this.C=this.B+this.I):Cta(this)};
Cta=function(a){a.B=a.startTime;a.I=a.duration;a.C=a.B+a.I};
sE=function(a){return a.cf&&a.j.index.cL(a.Na)};
Dta=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Na!==a.Na);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Nb+b.u===a.Nb+a.u:d};
tE=function(a){return 1===a.type||2===a.type};
uE=function(a){return 3===a.type||6===a.type};
vE=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Nb+a.u===b.range.start+b.Nb:a.Na===b.Na?a.Nb+a.u===b.Nb:a.Na+1===b.Na&&0===b.Nb&&a.cf:!1};
Eta=function(a,b){return vE(a,b)||ge(a.C,b.B)||a.Na+1===b.Na&&0===b.Nb&&a.cf?!0:!1};
wE=function(a){return a.Na+(a.cf?1:0)};
Fta=function(a){1===a.length||g.Nk(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new nE(a[0].range.start+a[0].Nb,b.range.start+b.Nb+b.u-1)};
Gta=function(a){for(var b=1;b<a.length;b++)if(!vE(a[b-1],a[b]))return!1;return!0};
Hta=function(a){var b=0;a=g.t(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;return b};
yE=function(a){a=xE(a);var b="";g.Jc(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
xE=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.D;b.seg=String(a.Na);a.range&&(b.range=""+(a.range.start+a.Nb)+"-"+(a.range.start+a.Nb+a.u-1));b.time=""+a.B.toFixed(1)+"-"+(a.B+a.I).toFixed(1);b.off=String(a.Nb);b.len=String(a.u);a.cf&&(b.end="1");sE(a)&&(b.eos="1");return b};
Ita=function(a){return new rE(a.type,a.j,a.range,"getEmptyStubBefore"+a.D,a.Na,a.startTime,0,a.Nb,0)};
Jta=function(a){return new rE(a.type,a.j,a.range,"getEmptyStubAfter"+a.D,a.Na,a.startTime+a.duration,0,a.Nb+a.u,0)};
Kta=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Nb>=b.range.start+b.Nb&&a.range.start+a.Nb+a.u<=b.range.start+b.Nb+b.u:a.Na===b.Na&&a.Nb>=b.Nb&&(a.Nb+a.u<=b.Nb+b.u||b.cf)};
Lta=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.vg()?(a=a.j.By(a),Pl(a,function(c){return Lta(c,b)})):a.Na===b.Na&&!!b.u&&b.Nb+b.u>a.Nb&&b.Nb+b.u<=a.Nb+a.u};
zE=function(a,b){var c=b.Na;a.D="updateWithSegmentInfo";a.Na=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Cta(a)};
AE=function(a,b){var c=this;this.Za=a;this.J=this.u=null;this.D=this.Cg=NaN;this.I=this.requestId=null;this.yf={g$a:function(){return c.range}};
this.j=a[0].j.u;this.C=b||"";this.Za[0].range&&0<this.Za[0].u&&(Gta(a)?(this.range=Fta(a),this.B=this.range.length):(this.range=this.Za[this.Za.length-1].range,this.B=Hta(a)))};
BE=function(a){return!tE(a.Za[a.Za.length-1])};
CE=function(a){return 4===a.Za[a.Za.length-1].type};
g.DE=function(a,b,c){c=null===a.I?iE(a.j,b,c):a.I;if(a.u){b=c?cD(a.u,b.zj):a.u;var d=new cE(b);d.get("alr")||d.set("alr","yes");a.C&&uta(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new cE(new g.YC(a.C)):(d=yta(a.j,c,b),a.C&&uta(d,a.C));(b=a.range)?d.set("range",b.toString()):a.Za[0].j.Cu()&&1===a.Za.length&&a.Za[0].Nb&&d.set("range",a.Za[0].Nb+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.Cg)||d.set("headm",a.Cg.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.Jc(a.urlParams,function(e,
f){d.set(f,e)});
return d};
Mta=function(a){if(a.range)return a.B;a=a.Za[0];return Math.round(a.I*a.j.info.ac)};
Nta=function(a,b){return Math.max(0,a.Za[0].B-b)};
Ota=function(a,b){if(0!==b.length){var c=[];b=g.t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,c.push(new rE(3,a.Za[0].j,pE(d.yv,d.Io),"extendWithMediaSegments",d.nq-1,d.startMs/1E3,d.durationMs/1E3));return new AE(a.Za.concat(c))}};
Pta=function(a,b){a=g.t(a.Za);for(var c=a.next();!c.done;c=a.next())if(c=c.value,3===c.type&&b>=c.B&&b<=c.C)return!0;return!1};
EE=function(a,b,c,d,e,f){f=void 0===f?0:f;kE.call(this,a,b,d,void 0);this.I=c;this.Nj=f;this.index=e||new g.eD};
Qta=function(a,b,c,d,e){this.Na=a;this.startSecs=b;this.durationSecs=c;this.j=d||NaN;this.u=e||NaN};
FE=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName===c)){var d=a.getAttribute(b);if(d)return d}return""};
GE=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
Rta=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(Number(b[2])|0)+60*(Number(b[4])|0)+(Number(b[6])|0):Number(a)|0};
Sta=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
HE=function(){this.j=[];this.u=null;this.I=0;this.B=[];this.D=!1;this.J="";this.C=-1};
Tta=function(a){var b=a.B;a.B=[];return b};
Uta=function(){this.C=[];this.j=null;this.u={};this.B={}};
Yta=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.t(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;"Period"===e.nodeName?f=Vta(a):"AdaptationSet"===e.nodeName?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=Wta(a,e)):"Representation"===e.nodeName&&(e=e.getAttribute("id")||"",f=Xta(a,e));if(null==f)return;f.update(d);g.wb(c,Tta(f))}g.wb(a.C,c);zaa(a.C,function(h){return 1E3*h.startSecs+h.j})};
Zta=function(a){a.j&&(a.j.j=[]);g.Jc(a.u,function(b){b.j=[]});
g.Jc(a.B,function(b){b.j=[]})};
Vta=function(a){a.j||(a.j=new HE);return a.j};
Wta=function(a,b){a.u[b]||(a.u[b]=new HE);return a.u[b]};
Xta=function(a,b){a.B[b]||(a.B[b]=new HE);return a.B[b]};
IE=function(a){var b=void 0===a?{}:a;a=void 0===b.Nj?0:b.Nj;var c=void 0===b.Yl?!1:b.Yl,d=void 0===b.Qn?0:b.Qn,e=void 0===b.Be?0:b.Be,f=void 0===b.Fg?Infinity:b.Fg,h=void 0===b.Wx?0:b.Wx;b=void 0===b.Ne?!1:b.Ne;g.eD.call(this);this.Lp=this.oo=-1;this.B=null;this.Xi=a;this.Qn=d;this.Yl=c;this.Be=e;this.Fg=f;this.Wx=h;this.Ne=b};
KE=function(a,b,c){b=JE(a,b);return 0<=b&&(c||!a.segments[b].pending)};
JE=function(a,b){return Bb(a.segments,function(c){return b-c.Na})};
LE=function(a,b,c){c=void 0===c?{}:c;EE.call(this,a,b,"",void 0,void 0,c.Nj||0);this.index=new IE(c)};
ME=function(a,b,c){kE.call(this,a,b);this.I=c;this.index=new g.eD;this.index.u=!1};
$ta=function(a,b,c){var d=a.index.JE(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.ac*f;return new AE([new rE(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
aua=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.I;b=b.J.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new dD(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
NE=function(a,b,c){this.info=a;this.j=b;this.B=c;this.u=null;this.D=-1;this.timestampOffset=0;this.I=!1;this.C=this.info.j.Px()&&!this.info.Nb};
OE=function(a){return Usa(a.j)};
bua=function(a,b){if(1!==a.info.j.info.containerType||a.info.Nb||!a.info.cf)return!0;a=OE(a);for(var c=0,d=0;c+4<a.byteLength;){d=a.getUint32(c);if(!d)return!1;c+=d}return c!==a.byteLength?(b&&(b.lastboxlen=d.toString(),4<=a.byteLength&&(b.lastbytes=a.getUint32(a.byteLength-4).toString()),b.boxlen=c.toString(),b.bytelen=a.byteLength.toString()),!1):!0};
cua=function(a,b){b=Math.min(b,a.info.u);var c=a.j.split(b);return[new NE(new rE(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Na,a.info.startTime,a.info.duration,a.info.Nb,b,!1),c.dB,a.B),new NE(new rE(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Na,a.info.startTime,a.info.duration,a.info.Nb+b,a.info.u-b,a.info.cf),c.Fk)]};
PE=function(a,b,c){var d;if(!(d=!vE(a.info,b.info)||a.info.cf)){if(c=void 0===c?!1:c)c=b.j,c=!(c.j.length?Ssa(a.j,c.j[0]):1);d=c}if(d)return null;c=new rE(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Na,a.info.startTime,a.info.duration,a.info.Nb,a.info.u,a.info.cf);d=b.info;c.u+=d.u;c.range&&(c.I+=d.I);c.C=d.C;c.cf=d.cf;d=new fD;gD(d,a.j);gD(d,b.j);c=new NE(c,d,a.B);c.u=b.u||a.u;return c};
dua=function(a){g.QE(a.info.j.info)||a.info.j.info.ze();if(-1!==a.D)return a.D;if(a.u&&bta(a.u))return a.D=bta(a.u),a.D;if(g.QE(a.info.j.info)){var b=OE(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;JD(b,f);){var h=KD(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.GD(h):1952867444===h.type&&isNaN(d)&&(d=g.MD(h));f=LD(h.type)?f+8:f+h.size}!e&&c&&(e=HD(c));b=d/e}else b=new PD(OE(a)),c=a.C?b:new PD(new DataView(a.info.j.j.buffer)),d=aE(c),c=b.pos,b.pos=0,bE(b)?TD(b,231)?
(d=WD(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.D=b||a.info.B;return a.D};
fua=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=dua(a)+b;eua(a,c);a.timestampOffset=b};
eua=function(a,b){g.QE(a.info.j.info)||a.info.j.info.ze();a.D=b;if(g.QE(a.info.j.info)){var c=OE(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;JD(c,f);){var h=KD(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.GD(h)));if(1952867444===h.type){!d&&a&&(d=HD(a));var l=g.MD(h);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(h.data.getUint8(h.dataOffset)){var m=h.data,n=h.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else h.data.setUint32(h.dataOffset+
4,l)}f=LD(h.type)?f+8:f+h.size}return!0}c=new PD(OE(a));a=a.C?c:new PD(new DataView(a.info.j.j.buffer));d=aE(a);a=c.pos;c.pos=0;if(bE(c)&&TD(c,231))if(e=UD(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
RE=function(a,b){b=void 0===b?!1:b;var c=gua(a);a=b?0:a.info.I;return c||a};
gua=function(a){g.QE(a.info.j.info)||a.info.j.info.ze();if(a.u&&6===a.info.type)return a.u.Nj;if(g.QE(a.info.j.info)){var b=OE(a);var c=0;b=g.OD(b,1936286840);b=g.t(b);for(var d=b.next();!d.done;d=b.next())d=ita(d.value),c+=d.JN[0]/d.ON;c=c||NaN;if(!(0<=c))a:{c=OE(a);b=a.info.j.j;for(var e=d=0,f=0;JD(c,d);){var h=KD(c,d);if(1836476516===h.type)e=g.GD(h);else if(1836019558===h.type){!e&&b&&(e=HD(b));if(!e){c=NaN;break a}var l=ID(h.data,h.dataOffset,1953653094),m=e,n=ID(l.data,l.dataOffset,1952868452);
l=ID(l.data,l.dataOffset,1953658222);var p=wD(n);wD(n);p&2&&wD(n);n=p&8?wD(n):0;var q=wD(l),r=q&1;p=q&4;var w=q&256,x=q&512,z=q&1024;q&=2048;var B=xD(l);r&&wD(l);p&&wD(l);for(var C=r=0;C<B;C++){var G=w?wD(l):n;x&&wD(l);p&&0===C||!z||wD(l);q&&wD(l);r+=G}f+=r/m}d=LD(h.type)?d+8:d+h.size}c=f||NaN}c||g.sA(new g.Sw("Missing duration while parsing bmff",yE(a.info)))}else c=new PD(OE(a)),a=a.C?c:new PD(new DataView(a.info.j.j.buffer)),c=sta(c,aE(a));return c};
hua=function(a){var b=OE(a);var c=(c=g.FD(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.FD(b,0,1836476516))?g.GD(b):a?HD(a):NaN);return c};
iua=function(a){return a.info.j.info.ze()&&160===lD(a.j,0)};
jua=function(a){if(!a.u){g.QE(a.info.j.info)||a.info.j.info.ze();if(g.QE(a.info.j.info))var b=g.lta(OE(a));else{b=new PD(OE(a));var c=b.pos;b.pos=0;var d=null,e=null;if(RD(b,[408125543,307544935]))for(var f=b.pos+UD(b,!0);b.pos<f;)if(29555!==UD(b,!1))XD(b);else for(var h=b.pos+UD(b,!0);b.pos<h;)if(26568!==UD(b,!1))XD(b);else for(var l=b.pos+UD(b,!0);b.pos<l;){var m=UD(b,!1);if(17543===m){if(m=qta(b),m=ED(m))if(e)for(var n=g.t(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=
m}else 17827===m?(m=qta(b),d||(d=m)):XD(b)}b.pos=c;b=e?new CD(e,d):null}a.u=b}};
kua=function(a){if(!a.I){if(g.QE(a.info.j.info)){var b=OE(a);var c=ID(b,0,1836019574);if(c){c=c.offset+c.size;var d=new Uint8Array(c);d.set(new Uint8Array(b.buffer,b.byteOffset,c));b=d}else b=null}else b=rta(new PD(OE(a)));b&&(a.info.j.j=b,a.I=!0)}};
g.SE=function(){this.count=0;this.u=1;this.B=!1;this.offsets=new Float64Array(128);this.j=new Float64Array(128)};
lua=function(a,b){return b+1<a.count||a.B?a.offsets[b+1]-a.offsets[b]:-1};
TE=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
UE=function(a,b,c,d){kE.call(this,a,b,c,d);var e=this;this.I=null;this.yf={QA:function(f,h,l){return e.QA(f,h,l)}};
this.index=new g.SE};
VE=function(a,b,c,d,e){this.sampleRate=void 0===a?0:a;this.numChannels=void 0===b?0:b;this.spatialAudioType=void 0===c?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=void 0===d?!1:d;this.u=void 0===e?0:e};
mua=function(a,b,c,d,e){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d;this.xtags=void 0===e?"":e};
WE=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return nua[a];return null};
YE=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||XE(a,b);this.j=g.DC[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&"UNKNOWN"!==d&&"RECTANGULAR"!==d?0:e;this.projectionType=d?"EQUIRECTANGULAR"===d&&2===e?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.DC[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+("EQUIRECTANGULAR"===c||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===c||"MESH"===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));
this.qualityLabel=a;this.u=l||"";this.primaries=m||""};
XE=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=ZE[0];for(var d=0;d<ZE.length;d++){var e=ZE[d],f=g.DC[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
mF=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.ac||(c.ac=16E3);Object.assign(this,c);a=g.t(this.id.split(";"));this.itag=a.next().value;this.u=a.next().value;this.containerType=kF(b);this.Hb=lF[this.itag]||""};
WC=function(a){return"9"===a.Hb||"("===a.Hb||"9h"===a.Hb||"(h"===a.Hb};
nF=function(a){return"9h"===a.Hb||"(h"===a.Hb};
oF=function(a){return"1"===a.Hb||"1h"===a.Hb};
VC=function(a){return"mac3"===a.Hb||"meac3"===a.Hb||"m"===a.Hb};
UC=function(a){return"MAC3"===a.Hb||"MEAC3"===a.Hb||"M"===a.Hb};
g.QE=function(a){return 1===a.containerType};
pF=function(a){return"application/x-mpegURL"===a.mimeType};
oua=function(a){var b=navigator.mediaCapabilities;if(null==b||!b.decodingInfo||"f"===a.Hb)return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:8*a.ac||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:8*a.ac||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.j=d})};
qF=function(a){return/(opus|mp4a|dtse|ac-3|ec-3)/.test(a)};
rF=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
sF=function(a){return a.includes("vtt")||a.includes("text/mp4")};
kF=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
tF=function(a,b,c,d,e,f){var h=new VE;b in g.DC||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.DC[b],d=Math.round(16*e/9));f=new YE(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new mF(c,a,{audio:h,video:f})};
pua=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.Kt)?void 0:c.toFixed(0))+", "+(null==(d=a.ac)?void 0:d.toFixed(0))+")"};
g.uF=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.vF=function(){eA.apply(this,arguments)};
wF=function(){var a=g.Fa("yt.player.utils.videoElement_");a||(a=g.Oe("VIDEO"),g.Da("yt.player.utils.videoElement_",a));return a};
xF=function(a){var b=wF();return!!(b&&b.canPlayType&&b.canPlayType(a))};
zF=function(a){if(/opus/.test(a)&&g.yF&&!Lo("38")&&!g.dw())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!kna())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!xF(a)};
qua=function(a){try{var b=zF('video/mp4; codecs="avc1.42001E"')||zF('video/webm; codecs="vp9"');return(zF('audio/mp4; codecs="mp4a.40.2"')||zF('audio/webm; codecs="opus"'))&&(b||!a)||xF('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
AF=function(){var a=wF();return!(!a.webkitSupportsPresentationMode||"function"!==typeof a.webkitSetPresentationMode)};
BF=function(){var a=wF();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
CF=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
DF=function(a,b,c){b=void 0===b?",":b;c=void 0===c?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
EF=function(a,b){if(!a)return-1;try{for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c}catch(d){}return-1};
FF=function(a,b){return 0<=EF(a,b)};
rua=function(a,b){if(!a)return NaN;b=EF(a,b);return 0<=b?a.start(b):NaN};
GF=function(a,b){if(!a)return NaN;b=EF(a,b);return 0<=b?a.end(b):NaN};
HF=function(a){return a&&a.length?a.end(a.length-1):NaN};
sua=function(a,b){a=GF(a,b);return 0<=a?a-b:0};
IF=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)a.end(f)<b||a.start(f)>c||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return CF(d,e)};
JF=function(a,b,c,d){g.FB.call(this);var e=this;this.Dd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.tS={error:function(){!e.isDisposed()&&e.isActive&&e.ma("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ma("updateend",e)}};
g.GB(this.Dd,this.tS);this.RC=this.isActive};
LF=function(a,b,c,d,e,f){g.FB.call(this);var h=this;this.yc=a;this.Ig=b;this.id=c;this.containerType=d;this.Hb=e;this.isVideo=f;this.lL=this.pB=this.tf=null;this.TD=!1;this.appendWindowStart=this.timestampOffset=0;this.dJ=CF([],[]);this.aA=!1;this.Cy=KF?[]:void 0;this.md=function(m){return h.ma(m.type,h)};
var l;if(null==(l=this.yc)?0:l.addEventListener)this.yc.addEventListener("updateend",this.md),this.yc.addEventListener("error",this.md)};
MF=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
NF=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1};
OF=function(a,b,c){c=void 0===c?!1:c;g.E.call(this);this.mediaElement=a;this.mediaSource=b;this.isView=c;this.D=0;this.C=!1;this.J=0;this.callback=null;this.mediaSource||(this.Ig=this.mediaElement.ub());this.events=new g.vF(this);g.H(this,this.events);this.B=new NF(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Ig.webkitMediaSourceURL,!0);a=this.mediaSource||this.Ig;fA(this.events,a,["sourceopen","webkitsourceopen"],this.W4);fA(this.events,a,["sourceclose","webkitsourceclose"],
this.V4);this.I={updateend:this.wY}};
tua=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
uua=function(a,b){PF(a)?g.hf(function(){b(a)}):a.callback=b};
vua=function(a,b,c){QF&&(g.GB(b,a.I,a),g.GB(c,a.I,a));a.j=b;a.u=c;g.H(a,b);g.H(a,c)};
RF=function(a){return!!a.j||!!a.u};
PF=function(a){try{return"open"===SF(a)}catch(b){return!1}};
SF=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Ig.webkitSourceState){case a.Ig.SOURCE_OPEN:return"open";case a.Ig.SOURCE_ENDED:return"ended";default:return"closed"}};
TF=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
wua=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Dd:a.j,f=a.u.isView()?a.u.Dd:a.u,h=new OF(a.mediaElement,a.mediaSource,!0);h.B=a.B;vua(h,new JF(e,b,c,d),new JF(f,b,c,d));PF(a)||a.j.GG(a.j.Ld());return h};
xua=function(a){return UF(function(b,c){return g.Tv(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.yua=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=oD(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
UF=function(a,b,c){b.match(zua);return a(b,c).then(function(d){var e=g.yua(d.xhr);return e?UF(a,e,c):d.xhr})};
VF=function(a,b,c,d){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.FB.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.videoId=d;this.Ba=this.duration=0;this.isPremiere=this.Ne=this.B=this.isLiveHeadPlayable=this.isLive=this.u=!1;this.Fg=this.Be=0;this.isOtf=this.Pd=!1;this.oa=(0,g.R)();this.I=Infinity;this.j={};this.ya=new Map;this.state=this.Tg=0;this.timeline=null;this.isManifestless=!1;this.J=[];this.C=null;this.T=0;this.Pa="";this.ea=NaN;this.Xd=this.Pb=this.xd=this.timestampOffset=
this.D=0;this.Z=!1;this.Ka=[];this.Aa=!!b&&b.eb("disable_html5_manifest_namespace_redux");this.Va=b&&b.eb("disable_html5_duration_caching")?Infinity:10;this.Wa=!!b&&b.eb("html5_live_head_playable");Aua=!!b&&b.eb("html5_modern_vp9_mime_type")};
Fsa=function(a){return g.Mc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
NC=function(a){return g.Mc(a.j,function(b){return!!b.info.Nd})};
Bua=function(a){return g.Mc(a.j,function(b){return sF(b.info.mimeType)})};
Cua=function(a){return g.Mc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
Dua=function(a){return g.Mc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
Eua=function(a){return g.Mc(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
Fua=function(a){return g.Mc(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Gua=function(a){return cba(a.j,function(b){return b.info.video?b.AM():!0})};
KC=function(a){return g.Mc(a.j,function(b){return aD(b.u.j)})};
WF=function(a,b){a.j[b.info.id]=b;var c=mE(b,a.Pd,a.videoId);a.ya.set(c,b)};
ZF=function(a,b,c){c=void 0===c?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(rF(d)){var h=a.width||640;e=a.height||360;var l=a.fps,m=a.qualityLabel,n=a.colorInfo,p=a.projectionType,q;a.stereoLayout&&(q=Hua[a.stereoLayout]);var r=WE(a)||void 0;if(null==n?0:n.primaries)var w=Iua[n.primaries]||void 0;h=new YE(h,e,l,p,q,void 0,m,r,w);d=XF(d,h,lF[a.itag||""])}var x;if(qF(d)){var z=a.audioSampleRate;q=a.audioTrack;z=new VE(z?+z:void 0,a.audioChannels,a.spatialAudioType,
a.isDrc,a.loudnessDb);q&&(w=q.displayName,e=q.id,q=q.audioIsDefault,w&&(x=new g.uF(w,e||"",!!q)))}var B;a.captionTrack&&(l=a.captionTrack,q=l.displayName,w=l.vssId,e=l.languageCode,l=l.kind,q&&w&&e&&(B=new mua(q,w,e,l,a.xtags)));q=Number(a.bitrate)/8;w=Number(a.contentLength);e=Number(a.lastModified);l=a.drmFamilies;a=a.type;c=c&&w?w/c:0;if(b&&l){var C={};l=g.t(l);for(m=l.next();!m.done;m=l.next())(m=YF[m.value])&&(C[m]=b[m])}return new mF(f,d,{audio:z,video:h,Rc:x,Nd:C,ac:q,Kt:c,contentLength:w,
lastModified:e,captionTrack:B,streamType:a})};
$F=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(rF(d)){var h=(a.size||"640x360").split("x");h=new YE(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=XF(d,h,lF[a.itag])}var l;if(qF(d)){var m=new VE(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.uF(a.name,a.audio_track_id,"1"===a.isDefault))}var n;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&
(n=new mua(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var r={};for(var w=g.t(a.drm_families.split(",")),x=w.next();!x.done;x=w.next())x=x.value,r[x]=b[x]}return new mF(e,d,{audio:m,video:h,Rc:l,Nd:r,ac:f,Kt:c,contentLength:p,lastModified:q,captionTrack:n,streamType:a.stream_type})};
Jua=function(a){return Pl(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
Kua=function(a){return Pl(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
Lua=function(a,b){return a.timeline?xb(a.timeline.C,b):a.J.length?xb(a.J,b):[]};
aG=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.YC(a,!0);a.set("alr","yes");c&&(c=Ksa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
Pua=function(a,b){var c=FE(b,"id");c=c.replace(":",";");var d=FE(b,"mimeType"),e=FE(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(FE(b,"bandwidth"))/8;var f=Number(GE(b,"BaseURL").getAttribute(bG(a,"contentLength"))),h=a.duration&&f?f/a.duration:0;if(rF(d)){var l=Number(FE(b,"width"));var m=Number(FE(b,"height")),n=Number(FE(b,"frameRate")),p=Mua(FE(b,bG(a,"projectionType")));a:switch(FE(b,bG(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q=
0}l=new YE(l,m,n,p,q)}if(qF(d)){var r=Number(FE(b,"audioSamplingRate"));var w=Number(FE(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=Nua(FE(b,bG(a,"spatialAudioType")));r=new VE(r,w,m);a:{w=FE(b,"lang")||"und";if(m=GE(b,"Role"))if(p=FE(m,"value")||"",g.Rc(Oua,p)){m=w+"."+Oua[p];n="main"===p;a=FE(b,bG(a,"langName"))||w+" - "+p;w=new g.uF(a,m,n);break a}w=void 0}}if(b=GE(b,"ContentProtection"))if("https://web.archive.org/web/20230104105643/http://youtube.com/drm/2012/10/10"===b.getAttribute("schemeIdUri")){var x={};for(b=
b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(x[a]=m.trim()))}else x=void 0;return new mF(c,d,{audio:r,video:l,Rc:w,Nd:x,ac:e,Kt:h,contentLength:f})};
Mua=function(a){switch(a){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"}};
Nua=function(a){switch(a){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"}};
Rua=function(a,b){b=void 0===b?"":b;a.state=1;a.oa=(0,g.R)();return xua(b||a.sourceUrl).then(function(c){if(!a.isDisposed()){a.Tg=c.status;var d=c.responseText;c=new DOMParser;d=g.Wd(Cla(d));c=c.parseFromString(g.Vd(d),"text/xml").getElementsByTagName("MPD")[0];a.I=1E3*Rta(FE(c,"minimumUpdatePeriod"))||Infinity;if(!a.Aa){b:{if(c.attributes){d=g.t(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"https://web.archive.org/web/20230104105643/http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];break b}}d=""}a.Pa=
d}a.isLive=Infinity>a.I&&a.isLivePlayback;a.Ba=Number(FE(c,bG(a,"earliestMediaSequence")))||0;if(d=Date.parse(Sta(FE(c,bG(a,"mpdResponseTime")))))a.T=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Nk(c.getElementsByTagName("Period"),a.A5,a);a.state=2;a.ma("loaded");Qua(a)}return a}).Oj(function(c){if(c instanceof Rv){var d=c.xhr;
a.Tg=d.status}a.state=3;a.ma("loaderror");return of(d)})};
Sua=function(a,b,c){return Rua(new VF(a,b,c),a)};
cG=function(a){return a.isLive&&(0,g.R)()-a.oa>=a.I};
Qua=function(a){var b=a.I;isFinite(b)&&(cG(a)?a.refresh():(b=Math.max(0,a.oa+b-(0,g.R)()),a.C||(a.C=new g.Zn(a.refresh,b,a),g.H(a,a.C)),a.C.start(b)))};
Tua=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.od()+1}return 0};
dG=function(a){return a.xd?a.xd-(a.D||a.timestampOffset):0};
eG=function(a){return a.Pb?a.Pb-(a.D||a.timestampOffset):0};
fG=function(a){if(!isNaN(a.ea))return a.ea;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.jm();c<=d.od();c++)b+=d.getDuration(c);b/=d.Bx();b=.5*Math.round(b/.5);d.Bx()>a.Va&&(a.ea=b);return b}if(a.isLive&&(d=b[c],d.Nj))return d.Nj}return NaN};
Uua=function(a,b){a=eba(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.ai(b);return a.getStartTime(c)===b?b:c<a.od()?a.getStartTime(c+1):NaN};
Vua=function(a,b){if(!a.j["0"]){var c=new mF("0","fakesb",{video:new YE(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new EE(new g.YC("https://web.archive.org/web/20230104105643/http://www.youtube.com/videoplayback"),c,"fake"):new UE(new g.YC("https://web.archive.org/web/20230104105643/http://www.youtube.com/videoplayback"),c,new nE(0,0),new nE(0,0))}};
gG=function(a,b,c){for(var d in a.j){var e=sF(a.j[d].info.mimeType)||a.j[d].info.isVideo();if(c===e){e=a.j[d].index;var f=JE(e,b);0<=f&&e.segments.splice(f,1)}}};
Wua=function(a){for(var b in a.j)Rsa(a.j[b].index,Infinity)};
bG=function(a,b){return a.Aa?"yt:"+b:a.Pa+":"+b};
Xua=function(a){a.Pb=0;a.xd=0;a.Xd=0};
hG=function(a){return a.Wa&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
XF=function(a,b,c){null===iG&&(iG=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(Aua&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return iG||"9"!==c&&"("!==c?iG||"9h"!==c&&"(h"!==c||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!iG&&!jG||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;c="00";var d="08",e="01",f="01",h="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(h=e="09"),"smpte2084"===b.u&&(f="16"),"arib-std-b67"===b.u&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
Yua=function(a){g.UA("yt-player-bandwidth",a,2592E3)};
kG=function(a){a=void 0===a?2592E3:a;if(0<a&&!(kra()>(0,g.R)()-1E3*a))return 0;a=g.VA("yt-player-quality");if("string"===typeof a){if(a=g.DC[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
Zua=function(){var a=g.VA("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality<a.previousQuality)return-1}return 0};
$ua=function(){var a={values:{},Gp:{}};try{var b=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);a.values=b.values;a.halfLives=b.halfLives}catch(c){}return a};
ava=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
mG=function(a,b){return+lG()[ava(a,b)]||8192};
lG=function(){return g.VA("yt-player-performance-cap")||{}};
bva=function(a){g.UA("yt-player-watch-later-pending",a)};
cva=function(){return!!g.VA("yt-player-headers-readable")};
dva=function(a){g.UA("yt-player-playback-on-reload",a)};
eva=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.fva=function(){var a=g.VA("yt-player-caption-language-preferences");return a?a:[]};
gva=function(a){this.D=a;this.zc=this.j=this.Ma=this.T=this.J=this.Aa=this.Ka=this.gb=this.Xa=!1;this.ea=this.Z=0;this.Fb=!1;this.kb=!0;this.tb=!1;this.C=0;this.Ba=!1;this.dc=Infinity;this.SI=!1;this.Ac=!0;this.Wa=this.Pa=this.Va=!1;this.u={};this.Pb=this.B=this.oa=!1;this.Fd=this.D.experiments.eb("html5_enable_vp9_fairplay");this.jd=this.D.experiments.eb("html5_enable_vp9_fairplay_uhd_hdr");this.Lc=this.D.N("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Ec=this.D.N("html5_account_onesie_format_selection_during_format_filter");
this.wj=0;this.Rb=!1};
Gsa=function(a){if(a.gb)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ba&&(b.unshift("1"),b.unshift("1h"));a.j&&b.unshift("h");a.ya&&(b=(hva[a.ya]||[a.ya]).concat(b));return b};
Esa=function(a){var b=["o","a","A"];1===a.wj&&(a.Aa&&(b=["m","M"].concat(b)),a.J&&(b=["mac3","MAC3"].concat(b)),a.T&&(b=["meac3","MEAC3"].concat(b)));a.Xa&&(b=["so","sa"].concat(b));!a.zc||a.Ma||a.I||b.unshift("a");a.Ka&&b.unshift("ah");a.I&&(b=(hva[a.I]||[a.I]).concat(b));return b};
nG=function(a,b,c){b=void 0===b?{}:b;if(a.N("html5_disable_av1"))return b.disabled=1,0;if(SC(a.B,TC.AV1_CODECS)&&SC(a.B,TC.HEIGHT)&&SC(a.B,TC.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=eva();if(d)return b.localPref=d}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;jna()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(h){return oF(h)}))?void 0:null==(f=e.j)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;e=Math.min(mG("1",c.fps),mG("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=mG("1",30),b.perfCap30=c,a=Math.min(a,c),c=mG("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
oG=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.j={};this.Xa=this.keySystemAccess=null;this.cw=this.ww=-1;this.Qk=null;this.B=!!d&&d.eb("edge_nonprefixed_eme")};
qG=function(a){return a.B?!1:!a.keySystemAccess&&!!pG()&&"com.microsoft.playready"===a.keySystem};
rG=function(a){return"com.microsoft.playready"===a.keySystem};
sG=function(a){return!a.keySystemAccess&&!!pG()&&"com.apple.fps.1_0"===a.keySystem};
tG=function(a){return"com.youtube.fairplay"===a.keySystem};
RC=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem};
g.uG=function(a){return"fairplay"===a.flavor};
pG=function(){var a=window,b=a.MSMediaKeys;gw()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
xG=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.yF&&!g.dw())return Lo("45");if(g.Jx||g.Je)return a.eb("edge_nonprefixed_eme");if(g.vG)return Lo("47");if(g.kx){if(a.eb("html5_enable_safari_fairplay"))return!1;if(a=g.wG(a,"html5_safari_desktop_eme_min_version"))return Lo(a)}return!0};
iva=function(a,b,c,d){var e=ew(),f=(c=e||c&&gw())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&f.unshift("com.youtube.widevine.l3");e&&d&&f.unshift("com.youtube.fairplay.sbdl");return c?f:a?[].concat(g.u(f),g.u(yG.playready)):[].concat(g.u(yG.playready),g.u(f))};
zG=function(a,b,c,d,e){d=void 0===d?!1:d;g.E.call(this);this.D=b;this.useCobaltWidevine=d;this.xa=e;this.u=[];this.B={};this.j={};this.callback=null;this.I=!1;this.C=[];this.initialize(a,!c)};
kva=function(a,b){a.callback=b;a.C=[];xG(a.D.experiments)?AG(a):jva(a)};
AG=function(a){if(!a.isDisposed())if(0===a.u.length)a.callback(a.C);else{var b=a.u[0],c=a.B[b],d=lva(a,c);navigator.requestMediaKeySystemAccess(b,d).then(g.vv(function(e){if(!a.isDisposed()){c.keySystemAccess=e;if(rG(c)){e=wF();for(var f=g.t(Object.keys(a.j[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.j[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.t(e.audioCapabilities),h=f.next();!h.done;h=f.next())mva(a,c,h.value);if(e.videoCapabilities)for(e=
g.t(e.videoCapabilities),f=e.next();!f.done;f=e.next())mva(a,c,f.value)}a.C.push(c);a.useCobaltWidevine?(a.u.shift(),AG(a)):a.callback(a.C)}}),g.vv(function(){a.I=!a.I&&"widevine"===a.B[a.u[0]].flavor;
a.I||a.u.shift();AG(a)}))}};
mva=function(a,b,c){a.N("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
lva=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.N("html5_enable_vp9_fairplay")&&tG(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];rG(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.t(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==
b.flavor||a.I?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.yF&&bw("windows nt")&&!a.N("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.N("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.N("html5_query_sw_secure_crypto_for_android")&&"MWEB"===BG(a.D)&&(mw()||cw())&&(a.xa("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
jva=function(a){if(pG()&&g.kx)a.C.push(new oG("fairplay","com.apple.fps.1_0","",a.D.experiments));else{var b=nva(),c=g.ib(a.u,function(d){var e=a.B[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.C.push(a.B[c]);a.u=[]}a.callback(a.C)};
nva=function(){var a=pG();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=wF();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
ova=function(){this.j=0};
pva=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=xv(b||"","&");a={};b=g.t(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.wG=function(a,b){return Number(a.flags[b])||0};
CG=function(a,b){return(a=a.flags[b])?a.toString():""};
rva=function(a){return qva.then(a)};
DG=function(a,b,c){this.experiments=a;this.oa=b;this.ya=void 0===c?!1:c;this.J=!!g.Fa("cast.receiver.platform.canDisplayType");this.I={};this.Z=!1;this.u=new Map;this.T=!0;this.D=!this.experiments.eb("html5_disable_protected_hdr");this.j=this.B=!1;this.ea=this.experiments.eb("html5_disable_vp9_encrypted");a=g.Fa("cast.receiver.platform.getValue");this.C=!this.J&&a&&a("max-video-resolution-vpx")||null};
Hsa=function(a,b,c){c=void 0===c?1:c;var d=b.itag;if("0"===d)return!0;var e=b.mimeType;if(b.ze()&&ew()&&a.experiments.eb("html5_appletv_disable_vp9"))return"dwebm";if(oF(b)&&a.Z)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(SC(a,TC.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.yF?Lo(53):g.vG&&Lo(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[TC.WIDTH.name]=b.video.width),b.video.height&&(c[TC.HEIGHT.name]=b.video.height),b.video.fps&&(c[TC.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[TC.EOTF.name]=b.video.u),b.ac&&(c[TC.BITRATE.name]=8*b.ac*f),"("===b.Hb&&(c[TC.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&(c[TC.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[TC.CHANNELS.name]=b.audio.numChannels);a.B&&WC(b)&&(c[TC.EXPERIMENTAL.name]="allowed");f=g.t(Object.keys(TC));for(var h=f.next();!h.done;h=f.next())if(h=TC[h.value],c[h.name]&&!(h===TC.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.eb("html5_ignore_h264_framerate_cap")&&h===TC.FRAMERATE&&("H"===b.Hb||"h"===b.Hb)))if(SC(a,h))if(a.C){if(a.C[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(nF(b)&&h===TC.EOTF)return"dvp92";!a.experiments.eb("disable_html5_cast_hdcp_filter2")&&
a.J&&b.video&&1080<b.video.j&&b.Nd&&(e+="; hdcp=2.2");return"227"===d?"hqcenc":"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.eb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
EG=function(a){var b=cw()&&!Lo(29),c=bw("google tv")&&bw("chrome")&&!Lo(30);a=ew()&&a.experiments.eb("apple_tv_cobalt_default_mse_killswitch");return b||c||a?!1:tua()};
sva=function(a,b,c){var d=480;b=g.t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;1080>=f&&f>d&&!0===Hsa(a,e,c)&&(d=f)}return d};
g.FG=function(a,b){b=void 0===b?!1:b;return EG(a)&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(wF(),"application/x-mpegURL")?!0:!1};
uva=function(a){tva(function(){for(var b=g.t(Object.keys(TC)),c=b.next();!c.done;c=b.next())SC(a,TC[c.value])})};
SC=function(a,b){b.name in a.I||(a.I[b.name]=vva(a,b));return a.I[b.name]};
vva=function(a,b){if(a.C)return!!a.C[b.name];if(b===TC.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===TC.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.invalid);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"',
a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.invalid)};
wva=function(a){a.T=!1;a.j=!0};
xva=function(a){a.B||(a.B=!0,a.j=!0)};
yva=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).r0);a.u.set(b,{r0:c+1,jV:Math.pow(2,c+1)});a.j=!0};
Ava=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;zva(a)}};
Bva=function(a){a.j||(tva(function(){zva(a)}),a.j=!0)};
zva=function(a){a.j=!1;if(a.queue.length&&!(a.u&&5>=a.queue.length&&15E3>(0,g.R)()-a.C)){var b=a.queue.shift(),c=b.url;b=b.options;b.timeout=1E4;g.Tv(c,b,3,1E3).then(a.B,a.B);a.u=!0;a.C=(0,g.R)();5<a.queue.length&&Bva(a)}};
GG=function(){g.FB.call(this);this.items={}};
HG=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
NG=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.j=16;if(!Cva){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);IG=new Uint8Array(256);JG=HG(256);KG=HG(256);LG=HG(256);MG=HG(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;IG[f]=e;b=e<<1^(e>>7&&283);var h=b^e;JG[f]=b<<24|e<<16|e<<8|h;KG[f]=h<<24|JG[f]>>>8;LG[f]=e<<24|KG[f]>>>8;MG[f]=e<<24|LG[f]>>>8}Cva=!0}e=HG(44);for(c=0;4>c;c++)e[c]=
a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(IG[a>>16&255]^d)<<24|IG[a>>8&255]<<16|IG[a&255]<<8|IG[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
Dva=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=JG[c>>>24]^KG[d>>16&255]^LG[e>>8&255]^MG[f&255]^b[n++],l=JG[d>>>24]^KG[e>>16&255]^LG[f>>8&255]^MG[c&255]^b[n++],m=JG[e>>>24]^KG[f>>16&255]^LG[c>>8&255]^MG[d&255]^b[n++],f=JG[f>>>24]^KG[c>>16&255]^LG[d>>8&255]^MG[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=IG[c>>>24]^h>>>24;a[1]=IG[d>>16&255]^h>>16&255;a[2]=IG[e>>8&255]^
h>>8&255;a[3]=IG[f&255]^h&255;h=b[41];a[4]=IG[d>>>24]^h>>>24;a[5]=IG[e>>16&255]^h>>16&255;a[6]=IG[f>>8&255]^h>>8&255;a[7]=IG[c&255]^h&255;h=b[42];a[8]=IG[e>>>24]^h>>>24;a[9]=IG[f>>16&255]^h>>16&255;a[10]=IG[c>>8&255]^h>>8&255;a[11]=IG[d&255]^h&255;h=b[43];a[12]=IG[f>>>24]^h>>>24;a[13]=IG[c>>16&255]^h>>16&255;a[14]=IG[d>>8&255]^h>>8&255;a[15]=IG[e&255]^h&255};
QG=function(){if(!OG&&!g.Jx){if(PG)return PG;var a;PG=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=PG)?0:b.importKey)&&(null==(c=PG)?0:c.sign)&&(null==(d=PG)?0:d.encrypt))return PG;PG=void 0}};
SG=function(){this.B=this.j=0;this.u=Array.from({length:RG.length}).fill(0)};
Eva=function(){};
Fva=function(a){this.name=a;this.startTimeMs=(0,g.R)();this.j=!1};
Gva=function(){this.profiles=new Eva};
TG=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new SG),a.profiles[b].Nh(c,d))};
UG=function(){};
VG=function(a,b){g.E.call(this);var c=this;this.j=a;this.cipher=this.j.AES128CTRCipher_create(b.byteOffset);g.cb(this,function(){c.j.AES128CTRCipher_release(c.cipher)})};
g.WG=function(a){this.C=a};
g.XG=function(a){this.u=a};
YG=function(a,b){this.j=a;this.D=b};
ZG=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.I=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()};
Hva=function(a,b,c){for(var d=a.J,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,w,x,z=0;64>z;)16>z?(d[z]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[z-2],w=d[z-15],x=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[z]=x),r=q+$G[z]+x+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),w=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+w,l+=r,z++,16>z?(d[z]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
d[z-2],w=d[z-15],x=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[z]=x),r=p+$G[z]+x+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),w=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+w,h+=r,z++,16>z?(d[z]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[z-2],w=d[z-15],x=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[z]=x),r=n+$G[z]+x+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),w=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+w,f+=r,z++,16>z?(d[z]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[z-2],w=d[z-15],x=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[z]=x),r=m+$G[z]+x+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),w=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),x=q,q=l,l=x,x=p,p=h,h=x,x=n,n=f,f=x,m=e+r,e=r+w,z++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]=
l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0};
Jva=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;Iva(a);return b};
Iva=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.J=[];a.J.length=64;a.C=0;a.u=0};
Kva=function(a){this.j=a};
Lva=function(a,b,c){a=new ZG(a.j);a.update(b);a.update(c);b=Jva(a);a.update(a.D);a.update(b);b=Jva(a);a.reset();return b};
Mva=function(a){this.u=a};
Nva=function(a,b,c,d){var e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(a.j){m.Ia(2);break}e=a;return g.y(m,d.importKey("raw",a.u,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.j=m.u;case 2:return f=new Uint8Array(b.length+c.length),f.set(b),f.set(c,b.length),h={name:"HMAC",hash:"SHA-256"},g.y(m,d.sign(h,a.j,f),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})};
Ova=function(a,b,c){a.B||(a.B=new Kva(a.u));return Lva(a.B,b,c)};
Pva=function(a,b,c){var d,e;return g.A(function(f){if(1==f.j){d=QG();if(!d)return f.return(Ova(a,b,c));g.qa(f,3);return g.y(f,Nva(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.ua(f);g.sA(e);OG=!0;return f.return(Ova(a,b,c))})};
aH=function(){g.WG.apply(this,arguments)};
bH=function(){g.XG.apply(this,arguments)};
cH=function(a,b){if(b.buffer!==a.memory.buffer){var c=new Uint8Array(a.memory.buffer,a.malloc(b.byteLength),b.byteLength);c.set(b)}YG.call(this,a,c||b);this.u=new Set;this.C=!1;c&&this.u.add(c.byteOffset)};
Qva=function(a,b,c){this.encryptedClientKey=b;this.D=c;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
Rva=function(a){a.u||(a.u=new aH(a.j));return a.u};
dH=function(a){try{return Ff(a)}catch(b){return null}};
Sva=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?dH(b.clientKey):null;var c=b.encryptedClientKey?dH(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.R)():null;a&&c&&d&&(this.j=new Qva(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=dH(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
eH=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
fH=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.u=!1;this.C=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a<this.j;a++)this.values[a]=Infinity;this.D=Tva(this);this.B=c;this.I=d};
Tva=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
gH=function(a,b){if(!a.u&&0===a.valueIndex)return 0;a.C&&(g.Cb(a.D,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
return a.values[a.D[Math.round(b*((a.u?a.j:a.valueIndex)-1))]]||0};
Uva=function(a){var b=new ova;this.policy=a;this.ya=b;this.Z=this.oa=0;this.D=-1;this.T=!1;this.ea=this.C=hH();this.J=new fH(4,1,.6,.4);this.j=new fH(10,1,.5,.4);this.B=a.C?new eH(a.j):new fH(a.j,20,.5,.4);this.I=new fH(5,1,.25);this.u=new fH(30,1,.5);a=g.VA("yt-player-bandwidth")||{};b=this.policy.u;0<a.byterate&&(b=a.byterate,this.T=!0);this.B.Vh(this.policy.D,b);0<a.delay&&this.J.Vh(1,Math.min(a.delay,2));0<a.stall&&this.j.Vh(1,a.stall);0<a.init&&(this.ea=Math.min(a.init,this.ea));this.D=hH()};
iH=function(a){a=a.J.Li();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
Vva=function(a,b,c){isNaN(c)||(a.Z+=c);isNaN(b)||(a.oa+=b)};
jH=function(a){a=a.B.Li();return 0<a?a:1};
kH=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=jH(a);d=1/((a.j.Li()||0)+1/d);var e=a.I.Li();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+iH(a);c=d*Math.min(1,c/(d*b));a.policy.B||(a=((gH(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
lH=function(a){return{delay:iH(a),stall:a.j.Li()||0,byterate:jH(a),init:a.ea}};
mH=function(a){-1<a.D&&3E4<hH()-a.D&&(Yua(lH(a)),a.D=hH(),a.T=!0)};
Wva=function(a){return 4E3<=hH()-a.C};
Xva=function(){this.j=17;this.u=13E4;this.D=.5;this.B=this.C=!1};
Zva=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.E.call(this);var c=this;this.values=a;this.Gp=b;this.u={};this.B=this.j=0;this.C=new g.Zn(function(){Yva(c)},1E4);
g.H(this,this.C)};
nH=function(a,b){$va(a,b);return a.values[b]&&a.Gp[b]?a.values[b]/Math.pow(2,a.j/a.Gp[b]):0};
$va=function(a,b){a.values[b]||(b=$ua(),a.values=b.values||{},a.Gp=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
Yva=function(a){var b=$ua();if(b.values){b=b.values;for(var c={},d=g.t(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.u[e]&&(a.values[e]+=b[e]-a.u[e]),c[e]=nH(a,e);a.u=c}b=a.Gp;c={};c.values=a.u;c.halfLives=b;g.UA("yt-player-memory",c,2592E3)};
oH=function(){var a=this;this.j=this.u=saa;this.promise=new g.lf(function(b,c){a.u=b;a.j=c})};
KH=function(a,b,c,d){g.E.call(this);this.webPlayerContextConfig=b;this.Ol=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Zh=this.Xd=this.Xa=this.fh=this.userDisplayName=this.userDisplayImage=this.Ak="";this.deviceParams={};this.controlsType="0";this.Fd=NaN;this.Md=!1;this.qf=(0,g.R)();this.Fb=0;this.Pl=this.jn=!1;this.Qk=!0;this.C=this.j=this.Nl=this.mf=!1;this.Gl=0;a=a?g.Yc(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);
this.experiments=new pva(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:vw("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)?b.cspNonce:vw("",a.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var e=document.location.toString()}catch(B){e=""}this.Oe=e;this.ancestorOrigins=(d=window.location.ancestorOrigins)?Array.from(d):[];this.u=rw(!1,b?b.isEmbed:a.is_embed);b&&b.device?(d=b.device,
d.brand&&(this.deviceParams.cbrand=d.brand),d.browser&&(this.deviceParams.cbr=d.browser),d.browserVersion&&(this.deviceParams.cbrver=d.browserVersion),this.deviceParams.c=d.interfaceName||"WEB",this.deviceParams.cver=d.interfaceVersion||"html5",d.interfaceTheme&&(this.deviceParams.ctheme=d.interfaceTheme),this.deviceParams.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&(this.deviceParams.cmodel=d.model),d.network&&(this.deviceParams.cnetwork=d.network),d.os&&(this.deviceParams.cos=d.os),d.osVersion&&
(this.deviceParams.cosver=d.osVersion),d.platform&&(this.deviceParams.cplatform=d.platform)):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");this.loaderUrl=b?this.u||awa(this)&&b.loaderUrl?b.loaderUrl||"":this.Oe:this.u||awa(this)&&a.loaderUrl?vw("",a.loaderUrl):this.Oe;this.u&&g.Da("yt.embedded_player.embed_url",this.loaderUrl);this.D=sB(this.loaderUrl,bwa);d=this.loaderUrl;var f=void 0===f?!1:f;this.Cn=rB(sB(d,cwa),d,f,"Trusted Ad Domain URL");
this.Wa=rw(!1,a.privembed);this.protocol=0===this.Oe.indexOf("http:")?"http":"https";this.Ba=tB((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||tB(this.Oe)||this.protocol+"://www.youtube.com/";f=b?b.eventLabel:a.el;d="detailpage";"adunit"===f?d=this.u?"embedded":"detailpage":"embedded"===f||this.D?d=tw(d,f,Iya):f&&(d="embedded");this.Aa=d;dz();f=null;d=b?b.playerStyle:a.ps;e=g.nb(Jya,d);!d||e&&!this.D||(f=d);this.playerStyle=f;this.oa=(this.J=g.nb(Jya,this.playerStyle))&&"play"!==this.playerStyle&&
"jamboard"!==this.playerStyle;this.Bn=!this.oa;this.Pa=rw(!1,a.disableplaybackui);this.disablePaidContentOverlay=rw(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=rw(!1,null==b?void 0:b.disableSeek);this.Xe=this.N("variable_playback_rate")?!0:wF().defaultPlaybackRate?pH||g.lw||qH?g.vG&&Lo("20")||g.yF&&Lo("4")||g.rH&&Lo("11")||hw():!(g.rH&&!bw("chrome")||pH||bw("android")||bw("silk")):!1;this.vn=rw(!1,a.enable_faster_speeds);this.isMobile=rw("blazer"===this.playerStyle,a.is_html5_mobile_device||
b&&b.isMobileDevice);this.Ac=kw()||mw();this.isMobile?f=!this.J:(f=Number(Date.now()/1E3),d=g.Fw.getInstance(),f=this.N("block_desktop_background_playback_with_mobile_cookie")&&d&&f>Number(d.get("dhmu",f.toString())));this.An=f;this.Ma=BF();this.gp=g.sH;this.Ql=rw(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.Z=!(!b||!b.embedsEnablePfpImaIntegration||this.N("embeds_pfp_ima_integration_killswitch"));this.Ka=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.N("embeds_web_enable_utm_params"));
this.yn=this.N("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var h;b?void 0!==b.hideInfo&&(h=!b.hideInfo):h=a.showinfo;this.Ok=g.tH(this)&&!this.Ql||rw(!uH(this)&&!vH(this)&&!this.J,h);this.Lk=b?!!b.mobileIphoneSupportsInlinePlayback:rw(!1,a.playsinline);h=this.isMobile&&wH&&null!=xH&&0<xH&&2.3>=xH;f=b?b.useNativeControls:a.use_native_controls;this.I=g.tH(this)&&this.isMobile;d=this.isMobile&&!this.I;f=g.yH(this)||!h&&rw(d,f)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType=
"0"!==d&&0!==d?f:"0";this.Ng=this.isMobile;this.color=tw("red",b?b.progressBarColor:a.color,Nya);this.Fn="3"===this.controlsType||rw(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.zc=!this.u;this.Pk=(f=!this.zc&&!vH(this)&&!this.oa&&!this.J&&!uH(this))&&!this.Fn&&"1"===this.controlsType;this.Gd=g.zH(this)&&f&&"0"===this.controlsType&&!this.Pk;this.Kp=this.Gn=h;this.Lc=("3"===this.controlsType||this.isMobile||rw(!1,a.use_media_volume))&&!this.I;this.Sk=AH&&!g.Bc(601)?!1:
!0;this.zn=this.u||!1;this.Ec=vH(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=vw("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.D||rw(!0,l);h=!0;b&&b.disableMdxCast&&(h=!1);this.Pb=this.N("enable_cast_for_web_unplugged")&&g.BH(this)&&h||this.N("enable_cast_on_music_web")&&g.CH(this)&&h||l&&h&&"1"===this.controlsType&&!this.isMobile&&(vH(this)||g.zH(this)||"profilepage"===this.Aa)&&!g.DH(this);this.tp=
!!window.document.pictureInPictureEnabled||AF();l=b?!!b.supportsAutoplayOverride:rw(!1,a.autoplayoverride);this.Rk=!this.isMobile&&!bw("nintendo wiiu")||l;l=b?!!b.enableMutedAutoplay:rw(!1,a.mutedautoplay);h=this.N("embeds_enable_muted_autoplay")&&g.tH(this);this.yk=l&&h&&this.Ma&&!g.yH(this);l=(vH(this)||uH(this))&&"blazer"===this.playerStyle;this.qj=b?!!b.disableFullscreen:!rw(!0,a.fs);this.tb=!this.qj&&(l||g.aA());this.Ll=this.N("uniplayer_block_pip")&&(cw()&&Lo(58)&&!mw()||jw);l=g.tH(this)&&!this.Ql;
var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.xd=l||rw(!this.J,m);this.Nk=rw(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.T=mw()&&0<xH&&4.4>=xH?"_top":"_blank";this.Mg="profilepage"===this.Aa;this.xk=rw("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;case "gac":m="ga";break;case "books":m="gb";break;case "docs":m="gd";break;case "duo":m="gu";break;case "google-live":m=
"gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.Va=m;this.authUser=vw("",b?b.authorizedUserIndex:a.authuser);this.nf=g.tH(this)&&(this.Wa||!hna()||this.Ac);var n;b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;this.pn=((m=!this.nf)||!!this.authUser&&m)&&rw(!this.oa,this.D?n:void 0);this.nj=b?b.isMobileDevice||!!b.disableKeyboardControls:
rw(!1,a.disablekb);this.loop=rw(!1,a.loop);this.pageId=vw("",b?b.initialDelegatedSessionId:a.pageid);this.hp=rw(!0,a.canplaylive);this.Rb=rw(!1,a.livemonitor);this.disableSharing=rw(this.J,b?b.disableSharing:a.ss);(n=b&&this.N("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(m=n.split("x"),2!==m.length?n=null:(n=Number(m[0]),m=Number(m[1]),n=isNaN(n)||isNaN(m)||0>=n*m?null:new g.ke(n,m))):n=null;this.Sl=n;this.mute=b?!!b.startMuted:rw(!1,a.mute);
this.storeUserVolume=!this.mute&&rw("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:tw(void 0,n,EH);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":vw("",a.cc_lang_pref);n=tw(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,EH);"3"===this.controlsType&&2===n&&(n=3);this.kb=n;this.eh=b?b.hl||"en_US":vw("en_US",a.hl);this.region=b?b.contentRegion||"US":vw("US",a.cr);
this.hostLanguage=b?b.hostLanguage||"en":vw("en",a.host_language);this.qn=!this.Wa&&Math.random()<g.wG(this.experiments,"web_player_api_logging_fraction");this.gb=!this.Wa;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.Fd=uw(this.Fd,a.ismb);this.Bn?(n=a.vss_host||"s.youtube.com","s.youtube.com"===n&&(n=FH(this.Ba)||"www.youtube.com")):n="video.google.com";this.Tl=n;GH(this,a,!0);this.ya=new GG;g.H(this,this.ya);m=b?b.innertubeApiKey:vw("",a.innertube_api_key);
l=b?b.innertubeApiVersion:vw("",a.innertube_api_version);n=b?b.innertubeContextClientVersion:vw("",a.innertube_context_client_version);m=g.O("INNERTUBE_API_KEY")||m;l=g.O("INNERTUBE_API_VERSION")||l;h=g.O("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");f=BG(this);d="number"===typeof this.deviceParams.c?Number(this.deviceParams.c):Object.keys(Pya).indexOf(this.deviceParams.c);this.wj={innertubeApiKey:m,innertubeApiVersion:l,bF:h,RK:f,IS:d,innertubeContextClientVersion:g.O("INNERTUBE_CONTEXT_CLIENT_VERSION")||
n,TK:this.hostLanguage,SK:this.region,JS:g.O("INNERTUBE_HOST_OVERRIDE")||"",KS:!!g.O("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),UK:!!g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Mk=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.B=new DG(this.experiments,this.N("html5_force_hfr_support")?!0:HH(this)||fw()||kna()||hza(this),g.yF&&g.Bc(56)||g.vG&&g.Bc(54)||hza(this));n=this.Fd;m=new Xva;g.IH(this)&&(m.C=!0,m.D=.1);n&&(m.u=n/8);m.B=480<=kG();this.schedule=new Uva(m);var p;this.enableSafetyMode=
null!=(p=null==b?void 0:b.initialEnableSafetyMode)?p:rw(!1,a.enable_safety_mode);p=this.Pa?!1:vH(this)&&"blazer"!==this.playerStyle;var q;b?null!=b.disableAutonav&&(q=!b.disableAutonav):q=a.allow_autonav;this.Wd=rw(p,!this.oa&&q);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:rw(!1,a.send_visitor_id_header);var r;"docs"===this.playerStyle&&(b?r=b.disableNativeContextMenu:r=a.disable_native_context_menu);this.disableNativeContextMenu=rw(!1,r);this.xn=HH(this)&&this.N("enable_skip_intro_button");
this.embedConfig=vw("",b?b.serializedEmbedConfig:a.embed_config);this.ea=yw(a,g.tH(this));this.j="EMBEDDED_PLAYER_MODE_PFL"===this.ea;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.dc=rw(!1,a.full_window);this.Sf=!g.BH(this)&&!JH(this)&&!g.DH(this)&&!0;var w;this.livingRoomAppMode=tw("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(null==b?void 0:null==(w=b.device)?void 0:w.livingRoomAppMode),lza);var x;q=uw(NaN,null==b?void 0:null==(x=b.device)?void 0:x.deviceYear);isNaN(q)||
(this.deviceYear=q);this.transparentBackground=b?!!b.transparentBackground:rw(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:rw(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:rw(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:rw(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=rw(!1,a.showbackbutton);var z;this.Qk=null!=(z=a.show_loop_video_toggle)?
z:!0;this.En=1E-4>Math.random();this.yj=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new Sva(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.lf=new Zva;g.H(this,this.lf);this.Nl=rw(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.O("DATASYNC_ID");this.Dn=g.O("LOGGED_IN",!1);this.Wh=(null==b?void 0:b.allowWoffleManagement)||!1;this.Hl=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;
this.N("html5_high_res_logging_always")?this.C=!0:this.C=100*Math.random()<(g.wG(this.experiments,"html5_ultra_high_res_logging_percent")||g.wG(this.experiments,"html5_high_res_logging_percent"));this.N("html5_ping_queue")&&(this.zj=new Ava);this.Gl=g.wG(this.experiments,"html5_defer_modules_delay_time_millis");this.jd=this.N("html5_remove_view_direction_logging")};
g.LH=function(a){if(a.Wa||a.J)return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.wG(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&a<mza.length?mza[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
GH=function(a,b,c){c=void 0===c?!1:c;a.Xd=vw(a.Xd,b.video_id);a.Xa=vw(a.Xa,b.eventid);a.Xa&&(vA=a.Xa);for(var d=[],e=g.t(Object.keys(nza)),f=e.next();!f.done;f=e.next()){f=nza[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.En&&(d.sort(),g.sA(new g.Sw("Player client parameters changed after startup",d)));a.userAge=uw(a.userAge,b.user_age);a.Ak=vw(a.Ak,b.user_display_email);a.userDisplayImage=vw(a.userDisplayImage,b.user_display_image);g.vB(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=vw(a.userDisplayName,b.user_display_name);a.fh=vw(a.fh,b.user_gender);a.csiPageType=vw(a.csiPageType,b.csi_page_type);a.csiServiceName=vw(a.csiServiceName,b.csi_service_name);a.xk=rw(a.xk,b.enablecsi);a.pageId=vw(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Rf=b.living_room_session_po_token.toString())};
MH=function(a,b){return!a.J&&cw()&&Lo(55)&&"3"===a.controlsType&&!b};
g.NH=function(a){a=FH(a.Ba);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.OH=function(a){return g.DH(a)?"music.youtube.com":g.NH(a)};
PH=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
QH=function(a){return vH(a)&&!g.BH(a)};
g.yH=function(a){return AH&&!a.Lk||bw("nintendo wiiu")?!0:!1};
g.DH=function(a){return"music-embed"===a.playerStyle};
BG=function(a){return a.deviceParams.c};
g.IH=function(a){return/^TVHTML5/.test(BG(a))?!0:"TV"===a.deviceParams.cplatform};
awa=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===BG(a)};
hza=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.RH=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
HH=function(a){return/web/i.test(BG(a))};
g.SH=function(a){return"WEB"===BG(a).toUpperCase()};
JH=function(a){return"WEB_KIDS"===BG(a)};
g.BH=function(a){return"WEB_UNPLUGGED"===BG(a)};
TH=function(a){return"TVHTML5_UNPLUGGED"===BG(a)};
g.UH=function(a){return g.BH(a)||"TV_UNPLUGGED_CAST"===BG(a)||TH(a)};
g.CH=function(a){return"WEB_REMIX"===BG(a)};
g.VH=function(a){return"WEB_EMBEDDED_PLAYER"===BG(a)};
g.XH=function(a){return(a.deviceIsAudioOnly||!g.yF||jw||"3"===a.controlsType?!1:g.lw?a.u&&g.Bc(51):!0)||(a.deviceIsAudioOnly||!g.vG||jw||"3"===a.controlsType?!1:g.lw?a.u&&g.Bc(48):g.Bc(38))||(a.deviceIsAudioOnly||!g.rH||jw||"3"===a.controlsType?!1:g.lw?a.u&&g.Bc(37):g.Bc(27))||!a.deviceIsAudioOnly&&g.WH&&!iw()&&g.Bc(11)||!a.deviceIsAudioOnly&&g.kx&&g.Bc("604.4")};
oza=function(a){if(g.zH(a)&&wH)return!1;if(g.vG){if(!g.Bc(47)||!g.Bc(52)&&g.Bc(51))return!1}else if(g.kx)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
vH=function(a){return"detailpage"===a.Aa};
g.zH=function(a){return"embedded"===a.Aa};
YH=function(a){return"leanback"===a.Aa};
uH=function(a){return"adunit"===a.Aa||"gvn"===a.playerStyle};
g.tH=function(a){return a.u&&g.zH(a)&&!uH(a)&&!a.J};
ZH=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.sA(new g.Sw("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.$H=function(a){var b=g.OH(a);!a.N("yt_embeds_disable_new_error_lozenge_url")&&pza.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.aI=function(a,b){b=void 0===b?"":b;if(a.N("kabuki_use_oauth_callback")&&a.Ol){var c=new oH,d,e=a.Ol();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.sA(new g.Sw("b189348328_oauth_callback_failed",{error:f}));
c.resolve(b)});
return void 0!==d?Wv(d):new Uv(c)}return Wv(b)};
FH=function(a){var b=g.Xh(a);return(a=Number(g.Wh(4,a))||null)?b+":"+a:b};
bI=function(a){var b=[];if(a){a=g.t(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.t(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d="boolean"===typeof d?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
cI=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
dI=function(a){return 1===a||2===a};
eI=function(a,b){b=void 0===b?0:b;if(a instanceof cI)return a;a=a&&a instanceof Error?a:Error(""+a);dI(b)?g.rA(a):g.sA(a);return new cI(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
fI=function(a){this.j=a};
gI=function(a,b,c){if(c)return Vv();c={};var d=wF();b=g.t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(d,e.ih().mimeType)){var f=e.j.video.quality;if(!c[f]||c[f].ih().ze())c[f]=e}a=[];c.auto&&a.push(c.auto);d=g.t(ZE);for(b=d.next();!b.done;b=d.next())(b=c[b.value])&&a.push(b);return a.length?Wv(a):Vv()};
qza=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.I=e;this.C=0;this.j=""};
rza=function(a,b){a.B.some(function(c){var d;return(null==(d=c.Rc)?void 0:d.getId())===b});
a.j=b};
hI=function(a,b,c){a.cpn&&(b=g.ci(b,{cpn:a.cpn}));c&&(b=g.ci(b,{K$a:c}));return b};
sza=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
tza=function(a){for(var b=[],c=[],d=g.t(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.u=b.concat(c)};
uza=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.u=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.fz=a.fz;this.Nd=a.Nd||"";this.Rc=a.Rc;this.audioChannels=a.audioChannels;this.j=""};
vza=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?{}:d;var e={};a=g.t(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
m=m?m[1]:"";f.audio_track_id&&(h=new g.uF(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new uza({itag:f.itag,url:f.url,codecs:m,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,fz:n?l[n]:void 0,Nd:f.drm_families,Rc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
iI=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.u=null};
wza=function(a,b){if(!(jw||gw()||ew()))return null;a=vza(b,a.N("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.t(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.t(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Rc&&(f=h.Rc.getId(),c[f]||(h=new g.BC(f,h.Rc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
Bza=function(a,b,c,d,e,f,h){if(!(jw||gw()||ew()))return Vv();var l={},m=xza(c),n=vza(c,a.N("html5_filter_fmp4_in_hls"),a.B.D,l);if(!n)return h({noplst:1}),Vv();yza(n);c={};var p=(c.fairplay="https://web.archive.org/web/20230104105643/https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],w=[],x=null,z="";d=d&&d.match(/hls_timedtext_playlist/)?new uza({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Rc:new g.uF("English","en",!1)}):null;for(var B=g.t(Object.keys(n)),C=B.next();!C.done;C=B.next())if(C=C.value,!a.N("html5_disable_drm_hfr_1080")||
"383"!==C&&"373"!==C){C=g.t(n[C]);for(var G=C.next();!G.done;G=C.next())if(G=G.value,G.width){for(var F=g.t(G.u),K=F.next();!K.done;K=F.next())if(K=K.value,n[K]){G.j=K;break}G.j||(G.j=zza(n,G));if(F=n[G.j])if(c.push(G),"fairplay"===G.Nd&&(q=p),K="","PQ"===G.fz?K="smpte2084":"HLG"===G.fz&&(K="arib-std-b67"),K&&(z=K),w.push(Aza(F,[G],d,f,G.itag,G.width,G.height,G.fps,m,void 0,void 0,q,K)),!x||G.width*G.height*G.fps>x.width*x.height*x.fps)x=G}else r.push(G)}else l[C]="disdrmhfr";w.reduce(function(L,
N){return N.ih().isEncrypted()&&L},!0)&&(q=p);
e=Math.max(e,0);p=x||{};n=void 0===p.fps?0:p.fps;x=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;B=a.N("html5_native_audio_track_switching");w.push(Aza(r,c,d,f,"93",x,p,n,m,"auto",e,q,z,B));Object.entries(l).length&&h(l);return gI(a.B,w,MH(a,b))};
Aza=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w){for(var x=0,z="",B=g.t(a),C=B.next();!C.done;C=B.next())C=C.value,z||(z=C.itag),C.audioChannels&&C.audioChannels>x&&(x=C.audioChannels,z=C.itag);e=new mF(e,"application/x-mpegURL",{audio:new VE(0,x),video:new YE(f,h,l,null,void 0,n,void 0,r),Nd:q,yT:z});a=new qza(a,b,c?[c]:[],d,!!w);a.C=p?p:1369843;return new iI(e,a,m)};
xza=function(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
zza=function(a,b){for(var c=g.t(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Nd===b.Nd&&!e.audioChannels)return d}return""};
yza=function(a){for(var b=new Set,c=g.t(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.t(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.t(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
jI=function(a,b){this.j=a;this.u=b};
Cza=function(a,b,c,d){var e=[];c=g.t(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.YC(h.url,!0);if(h.s){var l=h.sp,m=Ksa(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.t(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=tF(h.type,h.quality,h.itag,h.width,h.height);e.push(new jI(h,f))}}return gI(a.B,e,MH(a,b))};
kI=function(a,b){this.j=a;this.u=b};
Dza=function(a,b,c){var d=[];c=g.t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=tF(e.type,"medium","0");d.push(new kI(f,e.url))}return gI(a.B,d,MH(a,b))};
Fza=function(a){return a&&Eza[a]?Eza[a]:null};
g.lI=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||""};
g.nI=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.mI(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.xtags&&(b.xtags=a.xtags);a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
g.oI=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.mI=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
Jza=function(a,b,c,d){a||(a=b&&Gza.hasOwnProperty(b)&&Hza.hasOwnProperty(b)?Hza[b]+"_"+Gza[b]:void 0);b=a;if(!b)return null;a=b.match(Iza);if(!a||5!==a.length)return null;if(a=b.match(Iza)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null};
pI=function(a,b){for(var c={},d=g.t(Object.keys(Kza)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.vB(f)&&(c[Kza[e]]=f)}return c};
qI=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c=g.t(Object.keys(Lza)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Lza[e];for(var f=g.t(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Mza(h.url);g.vB(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Mza(a.url),g.vB(a)&&(b["maxresdefault.jpg"]=a));return b};
Mza=function(a){return a.startsWith("//")?"https:"+a:a};
rI=function(a){return a&&a.baseUrl||""};
sI=function(a){a=g.Bv(a);for(var b=g.t(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
Nza=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Wj=b)};
Pza=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.t(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=Oza(d.baseUrl);if(!e)return;d=new g.lI({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.IB(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.hJ=b.audioTracks||[];a.RQ=b.defaultAudioTrackIndex||0;a.iJ=b.translationLanguages?g.Lg(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.IB(f.languageName)}}):
[];
a.PD=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
Sza=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.P(h,Qza);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.P(h,Rza))return Object.assign({is_yto_interstitial:!0},zv(h))});
d=g.t(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,Vm:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Vm:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e,
Vm:0===f?5:7})}}};
Tza=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
Uza=function(a,b){b.subscribeCommand&&(a.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(a.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(a.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(a.getSharePanelCommand=b.getSharePanelCommand)};
tI=function(a,b){this.type=a||"";this.id=b||""};
g.uI=function(a){return new tI(a.substr(0,2),a.substr(2))};
g.vI=function(a,b){this.u=a;this.author="";this.pA=null;this.playlistLength=0;this.j=this.sessionData=null;this.ea={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=xv(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.ea=pI(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new tI("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.uI(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}};
g.wI=function(a,b){this.j=a;this.Nq=this.author="";this.pA=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Lu=this.lengthText="";this.sessionData=null;this.ea={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Nq=b.Nq||"";if(a=b.endscreen_autoplay_session_data)this.pA=xv(a,"&");this.qA=b.qA;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText=
b.lengthText||"";this.Lu=b.Lu||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=xv(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.ea=pI(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
Vza=function(a,b,c,d){d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){var e,f,h,l,m=null==(e=b.autoplay)?void 0:null==(f=e.autoplay)?void 0:null==(h=f.sets)?void 0:null==(l=h[0])?void 0:l.autoplayVideo;m&&((e=m.clickTrackingParams)&&(d.itct=e),e=g.P(m,g.xI))&&(a.IQ=e)}else if(c){var n,p;(e=null==(m=c.nextButton)?void 0:null==(n=m.buttonRenderer)?void 0:null==(p=n.navigationEndpoint)?void 0:p.clickTrackingParams)&&(d.itct=e)}d.itct||(d.feature="related-auto");a.pA=d};
Xza=function(a,b,c,d){var e=new g.wI(a.V());e.videoId=b.videoId;var f=b.videoTitle;f&&(e.title=g.IB(f),(f=f.accessibility)&&(f=f.accessibilityData)&&f.label&&(e.ariaLabel=f.label));if(f=b.byline)e.author=g.IB(f);if(f=b.publishedTimeText)e.publishedTimeText=g.IB(f);if(f=b.shortViewCountText)e.shortViewCount=g.IB(f);if(f=b.thumbnailOverlays){f=g.t(f);for(var h=f.next();!h.done;h=f.next())if(h=h.value.thumbnailOverlayTimeStatusRenderer)if("LIVE"===h.style){e.isLivePlayback=!0;break}else if("UPCOMING"===
h.style){e.isUpcoming=!0;break}else if("DEFAULT"===h.style&&h.text){e.lengthText=g.IB(h.text);(f=h.text.accessibility)&&(f=f.accessibilityData)&&f.label&&(e.Lu=f.label||"");break}}e.ea=qI(b.background);if(f=b.nextButton)if(f=f.buttonRenderer)if(f=f.navigationEndpoint)if(f=g.P(f,g.xI))e.qA=f;b.topBadges&&(f=b.topBadges[0])&&(f=g.P(f,Wza))&&"BADGE_STYLE_TYPE_PREMIUM"===f.style&&(e.LG=!0);if(f=b.alternativeTitle)e.Nq=g.IB(f);Vza(e,c,b,d);a.suggestions||(a.suggestions=[]);a.Vz=e;a.N("web_player_decouple_autonav")||
(a.suggestions[0]=e)};
Yza=function(a,b){var c,d,e;b=null==b?void 0:null==(c=b[0])?void 0:null==(d=c.endScreenVideoRenderer)?void 0:null==(e=d.navigationEndpoint)?void 0:e.clickTrackingParams;a=g.yI(a);b&&a&&(a.sessionData={itct:b})};
Zza=function(a,b,c,d,e){var f=[],h=!0;b=g.t(b);for(var l=b.next();!l.done;l=b.next()){var m=l.value,n=void 0;l=null;if(m.endScreenVideoRenderer){m=m.endScreenVideoRenderer;var p=m.title;l=new g.wI(a.V());l.videoId=m.videoId;l.lengthSeconds=m.lengthInSeconds||0;var q=m.publishedTimeText;q&&(l.publishedTimeText=g.IB(q));if(q=m.shortBylineText)l.author=g.IB(q);if(q=m.shortViewCountText)l.shortViewCount=g.IB(q);p&&(l.title=g.IB(p),(p=p.accessibility)&&(p=p.accessibilityData)&&p.label&&(l.ariaLabel=p.label));
if(q=m.navigationEndpoint)n=q.clickTrackingParams,p=g.P(q,g.xI),q=g.P(q,g.zI),p?l.qA=p:null!=q&&(l.watchUrl=q.url);if(p=m.thumbnailOverlays)for(p=g.t(p),q=p.next();!q.done;q=p.next())if(q=q.value.thumbnailOverlayTimeStatusRenderer)if("LIVE"===q.style){l.isLivePlayback=!0;break}else if("UPCOMING"===q.style){l.isUpcoming=!0;break}l.ea=qI(m.thumbnail)}else if(m.endScreenPlaylistRenderer){m=m.endScreenPlaylistRenderer;n=m.navigationEndpoint;if(!n)continue;l=g.P(n,g.xI);if(!l)continue;p=l.videoId;l=new g.vI(a.V());
l.playlistId=m.playlistId;l.playlistLength=Number(m.videoCount)||0;l.j=p||null;l.videoId=p;if(p=m.title)l.title=g.IB(p);if(p=m.shortBylineText)l.author=g.IB(p);n=n.clickTrackingParams;l.ea=qI(m.thumbnail)}l&&(n&&(l.sessionData={itct:n}),h?(a.N("web_player_decouple_autonav")?f.push(l):(Vza(l,c,d,e),f.splice(0,0,l)),h=!1):f.push(l))}a.suggestions=f};
$za=function(a,b,c){var d;if((null==(d=b.autoplay)?0:d.autoplay)&&!b.playlist){var e=b.autoplay.autoplay.sets;b={};d=new g.wI(a.V());var f=null;if(e){var h=g.t(e);for(var l=h.next();!l.done;l=h.next())if((l=l.value.autoplayVideoRenderer)&&l.compactVideoRenderer){f=l.compactVideoRenderer;break}if(h=e[0].autoplayVideo)(e=h.clickTrackingParams)&&(b.itct=e),b.autonav="1",b.playnext=String(c)}else b.feature="related-auto";c=g.P(h,g.xI);if(f){d.videoId=f.videoId;if(c=f.shortBylineText)d.author=g.IB(c);
if(c=f.title)d.title=g.IB(c)}else null!=c&&c.videoId&&(d.videoId=c.videoId);d.pA=b;a.N("web_player_decouple_autonav")?a.suggestions=[]:a.suggestions=[d];a.Vz=d}};
aAa=function(a){var b,c,d=null==(b=a.watchNextResponse)?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.watchNextResponse)?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:null==(l=h.endScreen)?void 0:null==(m=l.watchNextEndScreenRenderer)?void 0:m.results;if(!a){var n,p;a=null==d?void 0:null==(n=d.endScreen)?void 0:null==(p=n.endScreen)?void 0:p.results}return a};
g.BI=function(a){var b,c,d;a=g.P(null==(b=a.watchNextResponse)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,AI);return g.P(null==a?void 0:a.playerBar,bAa)};
cAa=function(a){this.j=a.playback_progress_0s_url;this.B=a.playback_progress_2s_url;this.u=a.playback_progress_10s_url};
CI=function(){var a=dAa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=wla.apply(null,[xla.apply(null,g.u(b))].concat(g.u(c)));this.store=zla(a,void 0,b)};
g.DI=function(a,b,c){for(var d=Object.assign({},a),e=g.t(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.u(h),g.u(l)):l;else if(!Array.isArray(l)&&g.La(l)&&!Array.isArray(h)&&g.La(h))d[f]=g.DI(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.Sw("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,J$a:h,updateValue:l}),g.rA(b),
a}return d};
EI=function(a){this.j=a;this.pos=0;this.u=-1};
FI=function(a){var b=lD(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=lD(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
GI=function(a,b){var c=a.u;for(a.u=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=FI(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:FI(a);break;case 1:a.pos+=8;break;case 2:d=FI(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
HI=function(a,b){if(GI(a,b))return FI(a)};
eAa=function(a,b){if(GI(a,b))return!!FI(a)};
II=function(a,b){if(GI(a,b)){b=FI(a);var c=kD(a.j,a.pos,b);a.pos+=b;return c}};
JI=function(a,b){if(a=II(a,b))return g.qD(a)};
fAa=function(a,b,c){if(a=II(a,b))return c(new EI(new fD([a])))};
KI=function(a,b){a=a instanceof Uint8Array?new fD([a]):a;return b(new EI(a))};
gAa=function(a){this.pos=0;this.u=[];this.j=new Uint8Array(void 0===a?4096:a);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
LI=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.j.subarray(0,a.pos));a.j=b;a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
MI=function(a,b){if(268435455<b){LI(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(LI(a,4);127<b;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
NI=function(a,b,c){void 0!==c&&(MI(a,b<<3|0),MI(a,c))};
OI=function(a,b,c){void 0!==c&&NI(a,b,c?1:0)};
PI=function(a,b,c){void 0!==c&&(MI(a,b<<3|2),b=c.length,MI(a,b),LI(a,b),a.j.set(c,a.pos),a.pos+=b)};
QI=function(a,b,c){void 0!==c&&(hAa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),LI(a,1.2*c.length),b=sD(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(LI(a,b),b=sD(c,a.j.subarray(a.pos))),a.pos+=b,iAa(a))};
hAa=function(a,b,c){c=void 0===c?2:c;MI(a,b<<3|2);a.u.push(a.pos);a.u.push(c);a.pos+=c};
iAa=function(a){for(var b=a.u.pop(),c=a.u.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
RI=function(a,b,c,d,e){c&&(hAa(a,b,void 0===e?3:e),d(a,c),iAa(a))};
SI=function(a,b){var c=new gAa(4096);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)};
g.TI=function(a){var b=new EI(new fD([Ff(decodeURIComponent(a))]));a=JI(b,2);b=HI(b,4);var c=jAa[b];if("undefined"===typeof c)throw a=new g.Sw("Failed to recognize field number",{name:"EntityKeyHelperError",I9a:b}),g.rA(a),a;return{k0:b,entityType:c,entityId:a}};
g.UI=function(a,b){var c=new gAa;PI(c,2,Ysa(a));a=kAa[b];if("undefined"===typeof a)throw b=new g.Sw("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.rA(b),b;NI(c,4,a);NI(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Df(b))};
VI=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
lAa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.DI(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
mAa=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.rA(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.rA(new g.Sw("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Nc(e.payload);
return VI(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.TI(e).entityType;l=VI(d,m,e)}catch(q){if(q instanceof Error)g.rA(new g.Sw("Failed to deserialize entity key",{entityKey:e,originalMessage:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.rA(new g.Sw("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Nc(e.payload);var n,p;return lAa(d,l,e.entityKey,e.payload[l],
null==(n=e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return VI(a,c.entityType,c.key,c.j0);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return VI(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,lAa(a,c.entityType,c.key,c.j0,c.D$a);default:return a}};
oAa=function(a,b){var c=g.Fa("ytDebugData.callbacks");c||(c={},g.Da("ytDebugData.callbacks",c));if(g.ov("web_dd_iu")||nAa.includes(a))c[a]=b};
WI=function(a){this.j=new Po(a)};
pAa=function(){if(void 0===XI){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Zo(g.Tw()+"::yt-player"))){XI=new WI(a);break a}XI=void 0}}return XI};
g.YI=function(){var a=pAa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.qAa=function(a){var b=pAa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.ZI=function(a){return g.YI()[a]||0};
g.$I=function(a,b){var c=g.YI();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.qAa(c))};
g.aJ=function(a){return g.A(function(b){return b.return(g.Gx(rAa(),a))})};
cJ=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,w;return g.A(function(x){switch(x.j){case 1:return m=g.ZI(a),4===m?x.return(4):g.y(x,g.Nx(),2);case 2:n=x.u;if(!n)throw g.mx("wiac");if(!l||void 0===h){x.Ia(3);break}return g.y(x,sAa(l,h),4);case 4:h=x.u;case 3:return p=c.lastModified||"0",g.y(x,g.aJ(n),5);case 5:return q=x.u,g.qa(x,6),bJ++,g.y(x,g.wx(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Ub:!0},function(z){if(void 0!==f&&void 0!==h){var B=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");B=g.xx(z.objectStore("media"),h,B)}else B=g.ox.resolve(void 0);var C=tAa(a,b.isVideo()),G=tAa(a,!b.isVideo()),F={fmts:uAa(d),format:c||{}};C=g.xx(z.objectStore("index"),F,C);var K=-1===d.downloadedEndTime;F=K?z.objectStore("index").get(G):g.ox.resolve(void 0);var L={fmts:"music",format:{}};z=K&&e&&!b.isVideo()?g.xx(z.objectStore("index"),L,G):g.ox.resolve(void 0);return g.ox.all([z,F,B,C]).then(function(N){N=g.t(N);N.next();N=N.next().value;bJ--;var ba=g.ZI(a);if(4!==ba&&K&&e||void 0!==N&&g.vAa(N.fmts))ba=
1,g.$I(a,ba);return ba})}),8);
case 8:return x.return(x.u);case 6:r=g.ua(x);bJ--;w=g.ZI(a);if(4===w)return x.return(w);g.$I(a,4);throw r;}})};
g.wAa=function(a){var b,c;return g.A(function(d){if(1==d.j)return g.y(d,g.Nx(),2);if(3!=d.j){b=d.u;if(!b)throw g.mx("ri");return g.y(d,g.aJ(b),3)}c=d.u;return d.return(g.wx(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return e.objectStore("index").getAll(f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
zAa=function(a,b,c,d,e){var f,h,l;return g.A(function(m){if(1==m.j)return g.y(m,g.Nx(),2);if(3!=m.j){f=m.u;if(!f)throw g.mx("rc");return g.y(m,g.aJ(f),3)}h=m.u;l=g.wx(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",Ub:xAa},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return yAa(e,n)}).catch(function(n){throw new g.Sw("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.vAa=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
tAa=function(a,b){return""+a+"|"+(b?"v":"a")};
uAa=function(a){var b={};return yv((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
BAa=function(a){var b={},c={};a=g.t(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.AAa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.t(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
return c};
CAa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.SC=dH(a.ustreamerConfig)||void 0)};
dJ=function(a){g.FB.call(this);this.j=null;this.B=new Xka;this.j=null;this.J=new Set;this.D=a||""};
DAa=function(a,b,c){for(c=eJ(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(fJ(d,b))&&(d=g.gJ(d,b)))return d;c--}return g.gJ(a.levels[0],b)};
FAa=function(a,b,c){c=eJ(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=fJ(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),d.B.Dh(f,{gT:f,wT:e}))}EAa(a)};
EAa=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=GAa(a,b)}};
GAa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=a.levels[b.gT].Se(b.wT);c.onload=function(){var d=b.gT,e=b.wT;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);EAa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.oD()-1);e=[e,d];a.ma("l",e[0],e[1])};
return c};
g.hJ=function(a,b,c,d){this.level=a;this.C=b;this.loaded=new Set;this.level=a;this.C=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.B=a[6];this.signature=a[7];this.videoLength=d};
fJ=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.gJ=function(a,b){b>=a.YH()&&a.pw();var c=fJ(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.pw()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:a.Se(c),column:b,columns:h,row:e,rows:d,yB:a.width*h,Pu:a.height*d}};
iJ=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;dJ.call(this,c);this.isLive=d;this.T=!!e;this.levels=this.u(a,b);this.C=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
HAa=function(a,b,c){return(a=a.levels[b])?a.pD(c):-1};
eJ=function(a,b){var c=a.C.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1};
jJ=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.hJ.call(this,a,b,c,0);this.u=null;this.D=d?2:0};
kJ=function(a,b,c,d){iJ.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].GP(c)};
IAa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.ci(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.mJ=function(a,b){g.FB.call(this);this.u=a;this.adModule=!1;this.adaptiveFormats="";this.IO=this.kz=this.adQueryId=this.jz=null;this.KN={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.Nd=null;this.qH=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Wa="";this.qO=this.lz=!1;this.KQ=null;this.Sf=this.zj=this.Kp=this.sI=!1;this.I=null;this.KO=this.Hl=!1;this.Rf=NaN;this.Lk=!1;this.yM=0;this.BO=!1;this.cO=this.cycToken=
null;this.author="";this.vL=0;this.Tl=!1;this.gL=null;this.pH=[];this.Nt=this.oH=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.lf=this.Xe="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.Fb=0;this.Qk=this.Xa=this.B=null;this.CH="";this.Ma=!1;this.Fd=this.Sl=0;this.pO=this.pipable=this.qq=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Rb=this.isShortsEligible=
this.isPrivate=this.isListed=this.mI=this.LO=this.mutedAutoplay=this.Do=!1;this.uI="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.pI=this.jd=this.Ne=!1;this.latencyClass="UNKNOWN";this.hQ=this.tQ=this.lI=this.enablePreroll=this.enableServerStitchedDai=this.bf=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Ec=0;this.reloadReason="";this.rI=this.vQ=this.xk=!1;this.keywords={};this.Ac="";this.zn=0;this.Kw=
!1;this.liveChunkReadahead=NaN;this.Ql=null;this.Ay=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.iQ=this.paygated=!1;this.vl=[];this.Ll=!1;this.Ba=[];this.vO=null;this.yO=this.racyCheckOk=!1;this.vT={};this.oC=0;this.C=null;this.autonavState=1;this.IQ=null;this.shortDescription="";this.Va=this.GL=!1;this.qj=this.zc=this.startSeconds=0;this.Lw=this.ZP=this.Pk=lJ;this.Vz=this.suggestions=null;this.Ty=this.Zy=void 0;this.Nk=null;this.KM=!1;this.expandedSubtitle=this.expandedTitle=
this.subtitle=this.title="";this.multiMarkersPlayerBarRenderer=this.aQ=void 0;this.suggestedActions=[];this.Vv=void 0;this.mf=[];this.yk=[];this.hlsFormats=this.Ok="";this.Aw=this.Iw=this.Gl=this.Gd=this.kb=this.Dn=this.yw=null;this.Qj="vvt";this.Mg=!1;this.tH=null;this.NO="";this.Hu=NaN;this.Ju=this.mE=this.tp=this.HD=this.zD=this.Rk=this.hp=this.mF=this.Gu=this.UE="";this.Sk=null;this.wO=!1;this.T={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.kQ=this.jQ=NaN;this.Wh=this.yn=
this.eh=this.sQ=this.oQ=!1;this.Fn=!0;this.ea={};this.captionTracks=[];this.hJ=[];this.RQ=0;this.iJ=[];this.PD=!1;this.bQ={};this.jn=new g.BC("und",new g.uF("Default","und",!0));this.tI=0;this.Z=null;this.Ew=[];this.yH=!1;this.Ng=[];this.yD=this.Md="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.watchNextResponse=this.yI=this.playerResponse=this.gQ=this.Dw=this.qn=this.Cf=this.wH=this.bO=this.MM=null;this.Xv=!1;this.oa=null;this.isInlinePlaybackNoAd=this.Nl=this.useCobaltWidevine=
this.zO=this.Mx=!1;this.uH=!0;this.nf=this.gh=NaN;this.defraggedFromSubfragments=this.jo=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.FL=this.rH=this.yj=!1;this.interstitials=[];this.D=this.nI=!1;this.Lc="";this.allowImaMonetization=!1;this.Bn=this.gS="";this.zI=[];this.Kc="";this.gb=this.rQ=!1;this.wj=0;this.qR=this.gp="";this.CI=this.AI=this.jI=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Gn=!1;this.Mk=
this.Ak=!0;this.errorDetail=this.userGenderAge="";this.rO=this.tO=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.fm=this.errorReason=this.errorCode=null;this.Uv=this.Tv="";this.pn=!1;this.sy=[];this.Xd=this.Pb=this.xd=this.Fg=this.Be=0;this.fetchType=null;this.DI=!0;this.transitionEndpointAtEndOfStream=void 0;this.Sv=this.uO=-1;this.Wd=this.dc=!1;this.Ol=null;this.Pa="";this.un=!1;this.watchUrl=
null;this.zw=[];this.visibleOnLoadKeys=[];this.GO=[];this.inlineMetricEnabled=this.An=!1;this.embedsRctn=this.embedsRct="";this.qQ=NaN;this.Pl=!1;this.dc=this.N("web_new_autonav_countdown");this.Wd=this.N("web_new_big_thumbnail_endscreen");JAa(this,b);this.Wv=new JC;g.H(this,this.Wv)};
g.pJ=function(a,b,c){b&&b.cpn&&g.sA(new g.Sw("CPN provided in VideoData update",{G$a:b.cpn,Yh:a.clientPlaybackNonce,q1:c}));c?(xw(b),JAa(a,b),nJ(a)&&oJ(a)):(b=b||{},KAa(a,b),LAa(a,b),MAa(a,b),a.ma("dataupdated"))};
MAa=function(a,b){a.fflags=vw(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Wa=wB(c));a.lz=rw(a.lz,b.iv_ads_only);a.qO=rw(a.qO,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.BZ=c;a.isPharma=rw(a.isPharma,b.is_pharma);a.author=vw(a.author,b.author);a.Xe=Oza(b.ttsurl)||a.Xe;a.Tl=rw(a.Tl,b.cc_asr);a.lf=vw(a.lf,b.channel_path);a.channelBanner=vw(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.profilePicture=vw(a.profilePicture,c);a.videoCountText=vw(a.videoCountText,b.video_count_text);
a.autonavState=tw(a.autonavState,b.autonav_state,NAa);a.clientPlaybackNonce=vw(a.clientPlaybackNonce,b.cpn);a.subscribed=rw(a.subscribed,b.subscribed);a.rawViewCount=uw(a.rawViewCount,b.view_count);a.shortViewCount=vw(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=vw(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=vw(a.lengthText||"",b.lengthText);a.Lu=vw(a.Lu||"",b.Lu);a.Nq=vw(a.Nq||"",b.Nq);a.title=vw(a.title,b.title);a.subtitle=vw(a.subtitle,b.subtitle);a.expandedTitle=
vw(a.expandedTitle,b.expanded_title);a.expandedSubtitle=vw(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=vw(a.ariaLabel,b.aria_label);a.ypcPreview=vw(a.ypcPreview,b.ypc_preview);a.vH=vw(a.vH,b.ypc_origin);a.Mg=rw(a.Mg,b.ypc_is_premiere_trailer);a.gp=vw(a.gp,b.ypc_clickwrap_message);a.paygated=rw(a.paygated,b.paygated);a.wO=rw(a.wO,b.requires_purchase);a.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")||(a.showShareButton=!rw(!a.showShareButton,b.ss),a.Ak=rw(a.Ak,b.showwatchlater));
a.Mk=rw(a.Mk,b.shownotifybutton);a.Gn=rw(a.Gn,b.copy_share);if(c=b.el)a.eventLabel=c;if(c=b.keywords)a.keywords=OAa(c.split(","));if(c=b.rvs)a.suggestions=Av(c).map(function(d){return d.playlist||d.list||d.api?new g.vI(a.u,d):new g.wI(a.u,d)}),a.N("web_player_decouple_autonav")||(a.Vz=a.suggestions[0]);
a.contentCheckOk=rw(a.contentCheckOk,b.cco);a.racyCheckOk=rw(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=rw(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=vw(a.oauthToken,b.oauth_token);a.Ac=vw(a.Ac,b.kpt);a.visitorData=vw(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=xv(c,"&");a.Zv=vw(a.Zv,b.endscreen_ad_tracking_data);a.JO=rw(a.JO,b.wait_for_vast_info_cards_xml);a.zM=rw(a.zM,b.suppress_creator_endscreen);a.uQ=rw(a.uQ,b.is_trueview_action);a.HO=vw(a.HO,b.tracking_list);
a.Tv=vw(a.Tv,b.clip);a.Uv=vw(a.Uv,b.clipt);PAa(a,b)};
JAa=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);var d=b.errorcode;null!=d?a.errorCode=d:"fail"==b.status&&(a.errorCode="auth");var e=b.reason;null!=e&&(a.errorReason=e);var f=b.subreason;null!=f&&(a.fm=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.xA(16));a.Rb=rw(a.u.Rb,b.livemonitor);KAa(a,b);var h=b.raw_player_response;if(h)a.yI=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}h&&(a.playerResponse=h);if(a.playerResponse){var m=a.playerResponse.annotations;
if(m)for(var n=g.t(m),p=n.next();!p.done;p=n.next()){var q=p.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(a.lz=!0);q.allowInPlaceSwitch&&(a.qO=!0);var r=q.loadPolicy;r&&(a.annotationsLoadPolicy=QAa[r]);var w=q.invideoUrl;w&&(a.Wa=wB(w));a.sI=!0;break}}var x=a.playerResponse.attestation;x&&Nza(a,x);var z=a.playerResponse.cotn;z&&(a.cotn=z);var B=a.playerResponse.heartbeatParams;if(B){var C=B.heartbeatToken;C&&(a.drmSessionId=B.drmSessionId||"",a.heartbeatToken=C,a.jQ=Number(B.intervalMilliseconds),
a.kQ=Number(B.maxRetries),a.oQ=!!B.softFailOnError,a.sQ=!!B.useInnertubeHeartbeatsForDrm,a.Kp=!0);a.heartbeatServerData=B.heartbeatServerData;var G;a.Lk=!(null==(G=B.heartbeatAttestationConfig)||!G.requiresAttestation)}var F=a.playerResponse.messages;F&&Tza(a,F);var K=a.playerResponse.multicamera;if(K){var L=K.playerLegacyMulticameraRenderer;if(L){var N=L.metadataList;N&&(a.qR=N,a.Ng=Av(N))}}var ba=a.playerResponse.overlay;if(ba){var T=ba.playerControlsOverlayRenderer;if(T){var S=T.controlBgHtml;
null!=S?(a.Lc=S,a.D=!0):(a.Lc="",a.D=!1);if(T.mutedAutoplay){var ea=g.P(T.mutedAutoplay,RAa);if(ea&&ea.endScreen){var Q=g.P(ea.endScreen,SAa);Q&&Q.text&&(a.gS=g.IB(Q.text))}}else a.mutedAutoplay=!1}}if(g.tH(a.u)&&a.u.N("embeds_web_enable_epm_dni_parity_fix")){var sa=a.V(),ha;void 0!==(null==ba?void 0:null==(ha=ba.playerControlsOverlayRenderer)?void 0:ha.controlBgHtml)?sa.ea="EMBEDDED_PLAYER_MODE_PFP":"EMBEDDED_PLAYER_MODE_PFP"===sa.ea&&(sa.ea="EMBEDDED_PLAYER_MODE_DEFAULT")}var ta=a.playerResponse.playabilityStatus;
if(ta){var Pa=ta.backgroundability;Pa&&Pa.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var vb,xa;if(null==(vb=ta.offlineability)?0:null==(xa=vb.offlineabilityRenderer)?0:xa.offlineable)a.offlineable=!0;var Ja=ta.contextParams;Ja&&(a.contextParams=Ja);var lc=ta.pictureInPicture;lc&&lc.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);ta.playableInEmbed&&(a.allowEmbed=!0);var rb=ta.ypcClickwrap;if(rb){var cc=rb.playerLegacyDesktopYpcClickwrapRenderer,tc=rb.ypcRentalActivationRenderer;
if(cc)a.gp=cc.durationMessage||"",a.Sf=!0;else if(tc){var Rb=tc.durationMessage;a.gp=Rb?g.IB(Rb):"";a.Sf=!0}}var dc=ta.errorScreen;if(dc){if(dc.playerLegacyDesktopYpcTrailerRenderer){var db=dc.playerLegacyDesktopYpcTrailerRenderer;a.Ju=db.trailerVideoId||"";var od=dc.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var pd=od&&od.ypcTrailerRenderer}else if(dc.playerLegacyDesktopYpcOfferRenderer)db=dc.playerLegacyDesktopYpcOfferRenderer;else if(dc.ypcTrailerRenderer){pd=dc.ypcTrailerRenderer;var ec=
pd.fullVideoMessage;a.hp=ec?g.IB(ec):"";var jd,dd;a.Ju=(null==(jd=g.P(pd,TAa))?void 0:null==(dd=jd.videoDetails)?void 0:dd.videoId)||""}db&&(a.tp=db.itemTitle||"",db.itemUrl&&(a.mE=db.itemUrl),db.itemBuyUrl&&(a.zD=db.itemBuyUrl),a.HD=db.itemThumbnail||"",a.mF=db.offerHeadline||"",a.Gu=db.offerDescription||"",a.Rk=db.offerId||"",a.UE=db.offerButtonText||"",a.tH=db.offerButtonFormattedText||null,a.Hu=db.overlayDurationMsec||NaN,a.hp=db.fullVideoMessage||"",a.zj=!0);if(pd){var Qc=g.P(pd,TAa);if(Qc)a.Sk=
{raw_player_response:Qc};else{var Sb=g.P(pd,UAa);a.Sk=Sb?zv(Sb):null}a.zj=!0}}}var Yb=a.playerResponse.playbackTracking;if(Yb){var Ib=b,Zb=rI(Yb.googleRemarketingUrl);Zb&&(a.googleRemarketingUrl=Zb);var xc=rI(Yb.youtubeRemarketingUrl);xc&&(a.youtubeRemarketingUrl=xc);var Dc=rI(Yb.ptrackingUrl);if(Dc){var $b=sI(Dc),ed=$b.oid;ed&&(a.ZS=ed);var Va=$b.pltype;Va&&(a.hT=Va);var te=$b.ptchn;te&&(a.YS=te);var uf=$b.ptk;uf&&(a.Cw=encodeURIComponent(uf));var kf=$b.m;kf&&(a.Yv=kf)}var ue=rI(Yb.ppvRemarketingUrl);
ue&&(a.ppvRemarketingUrl=ue);var kb=rI(Yb.qoeUrl);if(kb){for(var fc=g.Bv(kb),Yd=g.t(Object.keys(fc)),qd=Yd.next();!qd.done;qd=Yd.next()){var Ge=qd.value,vf=fc[Ge];fc[Ge]=Array.isArray(vf)?vf.join(","):vf}a.XP=fc;var Ec=fc.cat;Ec&&(a.Bn=Ec);var mc=fc.live;mc&&(a.uI=mc);var Zd=fc.drm_product;Zd&&(a.qH=Zd)}var lb=rI(Yb.remarketingUrl);if(lb){a.remarketingUrl=lb;var Nb=sI(lb);Nb.foc_id&&(a.T.focEnabled=!0);var Hd=Nb.data;Hd&&(a.T.rmktEnabled=!0,Hd.engaged&&(a.T.engaged="1"));a.T.baseUrl=Lea(lb)+Uh(g.Wh(5,
lb))}var gc=rI(Yb.videostatsPlaybackUrl);if(gc){var Qb=sI(gc);a.Oe=Qb;var pg=Qb.adformat;if(pg&&(Ib.adformat=pg,!a.N("process_video_data_ad_format_in_player_tracking_killswitch"))){var Id=a.V(),je=Jza(pg,a.yD,Id.u,Id.D);je&&(a.adFormat=je)}var Vf=Qb.aqi;Vf&&(Ib.ad_query_id=Vf);var mh=Qb.autoplay;mh&&(a.Do="1"==mh,a.qq="1"==mh);var $d=Qb.autonav;$d&&(a.isAutonav="1"==$d);var wf=Qb.delay;wf&&(a.Fb=se(wf));var ki=Qb.ei;ki&&(a.eventId=ki);"adunit"===Qb.el&&(a.Do=!0);var He=Qb.feature;He&&(a.Cn=He);var nh=
Qb.list;nh&&(a.playlistId=nh);var Mg=Qb.of;Mg&&(a.BI=Mg);var Ie=Qb.osid;Ie&&(a.osid=Ie);var qg=Qb.referrer;qg&&(a.referrer=qg);var Zi=Qb.sdetail;Zi&&(a.Hw=Zi);var li=Qb.sourceid;li&&(a.j6a=li);var xf=Qb.ssrt;xf&&(a.En="1"==xf);var Te=Qb.subscribed;Te&&(a.subscribed="1"==Te,a.T.subscribed=Te);var yf=Qb.uga;yf&&(a.userGenderAge=yf);var Ua=Qb.upt;Ua&&(a.Jw=Ua);var ve=Qb.vm;ve&&(a.videoMetadata=ve)}var Ng=rI(Yb.videostatsWatchtimeUrl);if(Ng){var we=sI(Ng).ald;we&&(a.iz=we)}if(Yb.promotedPlaybackTracking){var zd=
Yb.promotedPlaybackTracking;zd.startUrls&&(a.qf=zd.startUrls);zd.firstQuartileUrls&&(a.Fw=zd.firstQuartileUrls);zd.secondQuartileUrls&&(a.hL=zd.secondQuartileUrls);zd.thirdQuartileUrls&&(a.pL=zd.thirdQuartileUrls);zd.completeUrls&&(a.XJ=zd.completeUrls);zd.engagedViewUrls&&(1<zd.engagedViewUrls.length&&g.sA(new g.Sw("There are more than one engaged_view_urls.")),a.Zh=zd.engagedViewUrls[0])}}var Mh=a.playerResponse.playerCueRanges;Mh&&0<Mh.length&&(a.cueRanges=Mh);a:{var Nj=a.playerResponse.adPlacements;
if(Nj)for(var $i=g.t(Nj),aj=$i.next();!aj.done;aj=$i.next()){var dl=void 0,vo=void 0,Mm=null==(dl=aj.value.adPlacementRenderer)?void 0:null==(vo=dl.renderer)?void 0:vo.videoAdTrackingRenderer;if(Mm){var wo=Mm;break a}}wo=null}var Hq=wo;Yb&&Yb.promotedPlaybackTracking&&Hq&&g.sA(new g.Sw("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));Hq&&(a.iQ=!0);var Iq=a.playerResponse.playerAds;if(Iq)for(var xo=b,yo=g.t(Iq),zo=yo.next();!zo.done;zo=yo.next()){var Xj=zo.value;if(Xj){var Yj=
Xj.playerLegacyDesktopWatchAdsRenderer;if(Yj){var hj=Yj.playerAdParams;if(hj){"1"==hj.autoplay&&(a.Do=!0,a.qq=!0);a.kz=hj.encodedAdSafetyReason||null;void 0!==hj.showContentThumbnail&&(a.Fn=!!hj.showContentThumbnail);xo.enabled_engage_types=hj.enabledEngageTypes;break}}}}var Ke=a.playerResponse.playerConfig;if(Ke){var sg=Ke.manifestlessWindowedLiveConfig;if(sg){var Zj=Number(sg.minDvrSequence),Zt=Number(sg.maxDvrSequence),ql=Number(sg.minDvrMediaTimeMs),Ao=Number(sg.maxDvrMediaTimeMs),pi=Number(sg.startWalltimeMs);
Zj&&(a.Be=Zj);ql&&(a.Pb=ql/1E3);Zt&&(a.Fg=Zt);Ao&&(a.xd=Ao/1E3);pi&&(a.Xd=pi/1E3)}var $e=Ke.daiConfig;if($e){if($e.enableDai){a.bf=!0;var ak=$e.enableServerStitchedDai;ak&&(a.enableServerStitchedDai=ak);var $t=$e.enablePreroll;$t&&(a.enablePreroll=$t)}var Jq;if("DAI_TYPE_SS_DISABLED"===$e.daiType||(null==(Jq=$e.debugInfo)?0:Jq.isDisabledUnpluggedChannel))a.lI=!0}var Nm=Ke.audioConfig;if(Nm){var Kq=Nm.loudnessDb;null!=Kq&&(a.Rf=Kq);Nm.audioMuted&&(a.Hl=!0);Nm.muteOnStart&&(a.KO=!0)}var qi=Ke.playbackEndConfig;
if(qi){var rl=qi.endSeconds;rl&&a.mutedAutoplay&&(a.endSeconds=rl)}var Bo=Ke.fairPlayConfig;if(Bo){var Lq=Bo.certificate;Lq&&(a.Xa=dH(Lq));var ri=Number(Bo.keyRotationPeriodMs);0<ri&&(a.ww=ri);var Ha=Number(Bo.keyPrefetchMarginMs);0<Ha&&(a.cw=Ha)}var Co=Ke.playbackStartConfig;if(Co){a.CI=Number(Co.startSeconds);var Do=Co.liveUtcStartSeconds,au=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;Do&&!au&&(a.liveUtcStartSeconds=Number(Do));var my=Co.startPosition;if(my){var $E=my.utcTimeMillis;$E&&!au&&
(a.liveUtcStartSeconds=.001*Number($E));var aF=my.streamTimeMillis;aF&&(a.qj=.001*Number(aF))}a.progressBarStartPosition=Co.progressBarStartPosition;a.progressBarEndPosition=Co.progressBarEndPosition}else{var ny=Ke.skippableSegmentsConfig;if(ny){var bF=ny.introSkipDurationMs;bF&&(a.jI=Number(bF)/1E3);var Ea=ny.outroSkipDurationMs;Ea&&(a.AI=Number(Ea)/1E3)}}var Z5=Ke.skippableIntroConfig;if(Z5){var dwa=Number(Z5.startMs),ewa=Number(Z5.endMs);isNaN(dwa)||isNaN(ewa)||(a.gh=dwa,a.nf=ewa)}var fwa=Ke.streamSelectionConfig;
fwa&&(a.Fd=Number(fwa.maxBitrate));var gwa=Ke.vrConfig;gwa&&(a.Mx="1"==gwa.partialSpherical);var cF=Ke.webDrmConfig;if(cF){cF.skipWidevine&&(a.zO=!0);var hwa=cF.widevineServiceCert;hwa&&(a.Qk=dH(hwa));cF.useCobaltWidevine&&(a.useCobaltWidevine=!0);cF.startWithNoQualityConstraint&&(a.Nl=!0)}var pP=Ke.mediaCommonConfig;if(pP){var qP=pP.dynamicReadaheadConfig;if(qP){a.maxReadAheadMediaTimeMs=qP.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=qP.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=
qP.readAheadGrowthRateMs||NaN;var iwa,jwa=null==pP?void 0:null==(iwa=pP.mediaUstreamerRequestConfig)?void 0:iwa.videoPlaybackUstreamerConfig;jwa&&(a.vO=dH(jwa))}}var kwa=Ke.inlinePlaybackConfig;kwa&&(a.uH=!!kwa.showAudioControls);var dF=Ke.embeddedPlayerConfig;if(dF){a.embeddedPlayerConfig=dF;var $5=dF.embeddedPlayerMode;if($5){var lwa=a.V();lwa.ea=$5;lwa.j="EMBEDDED_PLAYER_MODE_PFL"===$5}var mwa=dF.isShortsExperienceEligible;void 0!==mwa&&(a.isShortsEligible=mwa);var nwa=dF.permissions;nwa&&(a.allowImaMonetization=
!!nwa.allowImaMonetization)}}var sl=a.playerResponse.streamingData;if(sl){var a6=sl.adaptiveFormats;if(a6){var owa=sl.streamingUrlTemplate;if(a.N("enable_streaming_url_template")&&owa)for(var pwa=g.t(a6),Rh=pwa.next();!Rh.done;Rh=pwa.next()){var rP=Rh.value;!rP.url&&rP.distinctParams&&(rP.url=owa+"&"+rP.distinctParams)}var qwa=[],rwa=g.t(a6);for(Rh=rwa.next();!Rh.done;Rh=rwa.next()){var Bd=Rh.value;if(!a.N("html5_remove_proto_to_string_conversion")){var swa=qwa,j6a=swa.push,b6=Bd.indexRange,c6=Bd.initRange,
be={itag:Bd.itag,url:Bd.url,index:b6?b6.start+"-"+b6.end:"0-0",bitrate:Bd.bitrate,init:c6?c6.start+"-"+c6.end:"0-0",type:Bd.mimeType,clen:Bd.contentLength,lmt:Bd.lastModified,xtags:Bd.xtags},sP=Bd.audioTrack;if(sP){var twa=sP.displayName;twa&&(be.name=twa,be.audio_track_id=sP.id,sP.audioIsDefault&&(be.isDefault="1"))}var eF=Bd.captionTrack;eF&&(be.caption_display_name=eF.displayName,be.caption_vss_id=eF.vssId,be.caption_language_code=eF.languageCode,be.caption_kind=eF.kind);var tP=AC(Bd),k6a=tP.Ot,
l6a=tP.Fv,m6a=tP.s;tP.GK&&(be.url=k6a,be.sp=l6a,be.s=m6a);var uwa=Bd.width,vwa=Bd.height;null!=uwa&&null!=vwa&&(be.size=uwa+"x"+vwa);var wwa=Bd.fps;wwa&&(be.fps=wwa);var xwa=Bd.type;xwa&&(be.stream_type=xwa);var ywa=Bd.projectionType;ywa&&(be.projection_type=ywa);var zwa=Bd.stereoLayout;zwa&&(be.stereo_layout=Hua[zwa]);var Awa=Bd.spatialAudioType;Awa&&(be.spatial_audio_type=Awa);var Bwa=Bd.drmFamilies;if(Bwa){for(var Cwa=[],Dwa=g.t(Bwa),d6=Dwa.next();!d6.done;d6=Dwa.next())Cwa.push(YF[d6.value]);
be.drm_families=Cwa.join(",")}var Ewa=Bd.qualityLabel;Ewa&&(be.quality_label=Ewa);var Fwa=Bd.targetDurationSec;Fwa&&(be.target_duration_sec=Fwa);var Gwa=Bd.maxDvrDurationSec;Gwa&&(be.max_dvr_duration_sec=Gwa);var Hwa=Bd.audioSampleRate;Hwa&&(be.audio_sample_rate=Hwa);var Iwa=Bd.audioChannels;Iwa&&(be.audio_channels=Iwa);var Jwa=WE(Bd);Jwa&&(be.eotf=Jwa);var Kwa=Bd.colorInfo;if(Kwa){var Lwa=Kwa.primaries;if(Lwa){var Mwa=Iua[Lwa];Mwa&&(be.primaries=Mwa)}}Bd.isDrc&&(be.drc="1");var n6a=g.ai(be);j6a.call(swa,
n6a)}}a.N("html5_remove_proto_to_string_conversion")||(a.adaptiveFormats=qwa.join(","))}var e6=sl.formats;if(e6){var fF=[],Nwa=g.t(e6);for(Rh=Nwa.next();!Rh.done;Rh=Nwa.next()){var f6=Rh.value;fF.push(f6.itag+"/"+f6.width+"x"+f6.height)}a.CH=fF.join(",");fF=[];var Owa=g.t(e6);for(Rh=Owa.next();!Rh.done;Rh=Owa.next()){var gF=Rh.value,hF={itag:gF.itag,type:gF.mimeType,quality:gF.quality},Pwa=gF.url;Pwa&&(hF.url=Pwa);var uP=AC(gF),o6a=uP.Ot,p6a=uP.Fv,q6a=uP.s;uP.GK&&(hF.url=o6a,hF.sp=p6a,hF.s=q6a);fF.push(g.ai(hF))}a.Ok=
fF.join(",")}var g6=sl.hlsFormats;if(g6){var Qwa=Ke||null,vP={};if(Qwa){var h6=Qwa.audioPairingConfig;if(h6&&h6.pairs)for(var Rwa=g.t(h6.pairs),i6=Rwa.next();!i6.done;i6=Rwa.next()){var Swa=i6.value,j6=Swa.videoItag;vP[j6]||(vP[j6]=[]);vP[j6].push(Swa.audioItag)}}for(var Twa={},Uwa=g.t(g6),bu=Uwa.next();!bu.done;bu=Uwa.next()){var Vwa=bu.value;Twa[Vwa.itag]=Vwa.bitrate}var Wwa=[],Xwa=g.t(g6);for(bu=Xwa.next();!bu.done;bu=Xwa.next()){var si=bu.value,Om={itag:si.itag,type:si.mimeType,url:si.url,bitrate:si.bitrate,
width:si.width,height:si.height,fps:si.fps},wP=si.audioTrack;if(wP){var Ywa=wP.displayName;Ywa&&(Om.name=Ywa,Om.audio_track_id=wP.id,wP.audioIsDefault&&(Om.is_default="1"))}if(si.drmFamilies){for(var Zwa=[],$wa=g.t(si.drmFamilies),k6=$wa.next();!k6.done;k6=$wa.next())Zwa.push(YF[k6.value]);Om.drm_families=Zwa.join(",")}var xP=vP[si.itag];if(xP&&xP.length){Om.audio_itag=xP.join(",");var axa=Twa[xP[0]];axa&&(Om.bitrate+=axa)}var bxa=WE(si);bxa&&(Om.eotf=bxa);si.audioChannels&&(Om.audio_channels=si.audioChannels);
Wwa.push(g.ai(Om))}a.hlsFormats=Wwa.join(",")}var l6=sl.licenseInfos;if(l6&&0<l6.length){for(var cxa={},dxa=g.t(l6),m6=dxa.next();!m6.done;m6=dxa.next()){var exa=m6.value,fxa=exa.drmFamily,gxa=exa.url;fxa&&gxa&&(cxa[YF[fxa]]=gxa)}a.Nd=cxa}var hxa=sl.drmParams;hxa&&(a.drmParams=hxa);var ixa=sl.dashManifestUrl;ixa&&(a.tb=g.ci(ixa,{cpn:a.clientPlaybackNonce}));var jxa=sl.hlsManifestUrl;jxa&&(a.hlsvp=jxa);var kxa=sl.probeUrl;kxa&&(a.probeUrl=wB(g.ci(kxa,{cpn:a.clientPlaybackNonce})));var lxa=sl.serverAbrStreamingUrl;
lxa&&(a.xO=new g.YC(lxa,!0))}var mxa=a.playerResponse.trackingParams;mxa&&(a.ya=mxa);var Md=a.playerResponse.videoDetails;if(Md){var Pm=b,n6=Md.videoId;n6&&(a.videoId=n6,Pm.video_id||(Pm.video_id=n6));var nxa=Md.channelId;nxa&&(a.T.uid=nxa.substr(2));var o6=Md.title;o6&&(a.title=o6,Pm.title||(Pm.title=o6));var p6=Md.lengthSeconds;p6&&(a.lengthSeconds=Number(p6),Pm.length_seconds||(Pm.length_seconds=p6));var oxa=Md.keywords;oxa&&(a.keywords=OAa(oxa));var q6=Md.channelId;q6&&(a.Kl=q6,Pm.ucid||(Pm.ucid=
q6));var pxa=Md.viewCount;pxa&&(a.rawViewCount=Number(pxa));var r6=Md.author;r6&&(a.author=r6,Pm.author||(Pm.author=r6));var qxa=Md.shortDescription;qxa&&(a.shortDescription=qxa);var rxa=Md.isCrawlable;rxa&&(a.isListed=rxa);var sxa=Md.musicVideoType;sxa&&(a.musicVideoType=sxa);var s6=Md.isLive;null!=s6&&(a.isLivePlayback=s6);if(s6||Md.isUpcoming)a.isPremiere=!Md.isLiveContent;var txa=Md.thumbnail;txa&&(a.ea=qI(txa));var uxa=Ke||null,t6=b;Md.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Md.isUpcoming&&
(a.isUpcoming=!0);if(Md.isPostLiveDvr)a.Ne=!0;else{var u6=!1;if(a.Rb)a.allowLiveDvr=qJ(a,!0),a.isLivePlayback=!0;else if(Md.isLive){t6.livestream="1";a.allowLiveDvr=qJ(a,!!Md.isLiveDvrEnabled);a.Aa=27;Md.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var vxa=Md.latencyClass;vxa&&(a.latencyClass=VAa[vxa]||"UNKNOWN");var wxa=Md.liveChunkReadahead;wxa&&(a.liveChunkReadahead=wxa);var oy=uxa&&uxa.livePlayerConfig;if(oy){oy.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);oy.hasSubfragmentedWebm&&
(a.jo=!0);oy.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var xxa=oy.liveExperimentalContentId;xxa&&(a.liveExperimentalContentId=Number(xxa));var yxa=oy.isLiveHeadPlayable;a.N("html5_live_head_playable")&&null!=yxa&&(a.isLiveHeadPlayable=yxa)}u6=!0}else Md.isUpcoming&&(u6=!0);u6&&(a.isLivePlayback=!0,t6.adformat&&"8"!==t6.adformat.split("_")[1]||a.Ba.push("heartbeat"),a.Kp=!0)}var zxa=Md.isPrivate;void 0!==zxa&&(a.isPrivate=rw(a.isPrivate,zxa))}if(ta){var Axa=Md||null,Bxa=!1,py=ta.errorScreen;
Bxa=py&&(py.playerLegacyDesktopYpcOfferRenderer||py.playerLegacyDesktopYpcTrailerRenderer||py.ypcTrailerRenderer)?!0:Axa&&Axa.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ta.status);if(!Bxa){a.errorCode=Fza(ta.errorCode)||"auth";var yP=py&&py.playerErrorMessageRenderer;if(yP){a.playerErrorMessageRenderer=yP;var Cxa=yP.reason;Cxa&&(a.errorReason=g.IB(Cxa));var w6=yP.subreason;w6&&(a.fm=g.IB(w6),a.xw=w6)}else a.errorReason=ta.reason||null;var x6=ta.status;if("LOGIN_REQUIRED"===
x6)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===x6)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===x6){var Dxa=ta.errorScreen,Exa=Dxa&&Dxa.playerKavRenderer;a.errorDetail=Exa&&Exa.kavUrl?"4":"3"}else a.errorDetail=ta.isBlockedInRestrictedMode?"5":"0"}}var Fxa=a.playerResponse.interstitialPods;Fxa&&Sza(a,Fxa);a.Wa&&a.eventId&&(a.Wa=Dv(a.Wa,{ei:a.eventId}));var y6=a.playerResponse.captions;y6&&y6.playerCaptionsTracklistRenderer&&Pza(a,y6.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;
a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.CI=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Uza(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}LAa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Gxa=b.hlsdvr;null!=Gxa&&(a.allowLiveDvr=qJ(a,"1"==Gxa));a.adQueryId=b.ad_query_id||null;a.kz||(a.kz=b.encoded_ad_safety_reason||
null);a.IO=b.agcid||null;a.MM=b.ad_id||null;a.bO=b.ad_sys||null;a.wH=b.encoded_ad_playback_context||null;a.Hl=rw(a.Hl,b.infringe||b.muted);a.authKey=b.authkey;a.authUser=b.authuser;a.mutedAutoplay=rw(a.mutedAutoplay,b&&b.playmuted)&&a.N("embeds_enable_muted_autoplay");var zP=b.length_seconds;zP&&(a.lengthSeconds="string"===typeof zP?se(zP):zP);var Hxa=!a.isAd()&&!a.Ll&&g.zw(g.LH(a.u));if(Hxa){var AP=a.lengthSeconds;switch(g.LH(a.u)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30<AP?a.endSeconds=
30:30>AP&&10<AP&&(a.endSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.endSeconds=.2*AP}}else a.endSeconds=uw(a.endSeconds,a.AI||b.end||b.endSeconds);a.limitedPlaybackDurationInSeconds=uw(a.limitedPlaybackDurationInSeconds,b.limited_playback_duration_in_seconds);a.ya=vw(a.ya,b.itct);a.mI=rw(a.mI,b.noiba);a.pI=rw(a.pI,b.is_live_destination);a.isLivePlayback=rw(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&
(a.isUpcoming=rw(a.isUpcoming,b.isUpcoming));a.Ne=rw(a.Ne,b.post_live_playback);a.isMdxPlayback=rw(a.isMdxPlayback,b.mdx);var BP=b.mdx_control_mode;BP&&(a.mdxControlMode="number"===typeof BP?BP:se(BP));a.isInlinePlaybackNoAd=rw(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Ec=uw(a.Ec,b.reload_count);a.reloadReason=vw(a.reloadReason,b.reload_reason);a.Fn=rw(a.Fn,b.show_content_thumbnail);a.rI=rw(a.rI,b.utpsa);a.KM=rw(a.KM,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.cO=b.tkn||null;var Ixa=
pI(b);0<Object.keys(Ixa).length&&(a.ea=Ixa);a.Ka=vw(a.Ka,b.vvt);a.mdxEnvironment=vw(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);a.JZ=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=vw(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?uw(0,b.index):uw(a.playlistIndex,b.index));a.xV=b.pyv_view_beacon_url;a.DW=b.pyv_quartile25_beacon_url;a.IW=b.pyv_quartile50_beacon_url;
a.LW=b.pyv_quartile75_beacon_url;a.fW=b.pyv_quartile100_beacon_url;var Jxa=b.remarketing_url;Jxa&&(a.remarketingUrl=Jxa);var Kxa=b.ppv_remarketing_url;Kxa&&(a.ppvRemarketingUrl=Kxa);var Lxa=b.session_data;!a.MW&&Lxa&&(a.MW=xv(Lxa,"&").feature);a.isFling=1==uw(a.isFling?1:0,b.is_fling);a.vnd=uw(a.vnd,b.vnd);a.forceAdsUrl=vw(a.forceAdsUrl,b.force_ads_url);a.Ti=vw(a.Ti,b.ctrl);a.Ui=vw(a.Ui,b.ytr);a.mp=b.ytrcc;a.NW=b.ytrexp;a.wL=b.ytrext;a.Md=vw(a.Md,b.adformat);a.yD=vw(a.yD,b.attrib);a.slotPosition=
uw(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.En=rw(a.En,b.ssrt);a.videoId=xw(b)||a.videoId;a.J=vw(a.J,b.vss_credentials_token);a.Qj=vw(a.Qj,b.vss_credentials_token_type);a.yj=rw(a.yj,b.audio_only);a.rH=rw(a.rH,b.aac_high);a.FL=rw(a.FL,b.prefer_low_quality_audio);a.Bn=vw(a.Bn,b.qoe_cat);a.pn=rw(a.pn,b.download_media);a.gb=rw(a.gb,b.prefer_gapless);a:{var z6=a.playerResponse;if(z6&&z6.adPlacements)for(var Mxa=g.t(z6.adPlacements),A6=Mxa.next();!A6.done;A6=Mxa.next()){var CP=A6.value.adPlacementRenderer;
if(null!=CP&&"AD_PLACEMENT_KIND_START"===(CP.config&&CP.config.adPlacementConfig&&CP.config.adPlacementConfig.kind)){var Nxa=!0;break a}}Nxa=!1}Nxa&&(a.adModule=!0,a.Ba.push("ad"));var Oxa=b.adaptive_fmts;!a.N("html5_remove_proto_to_string_conversion")&&Oxa&&(a.adaptiveFormats=Oxa,a.xa("adpfmts",{},!0));var Pxa=b.allow_embed;Pxa&&(a.allowEmbed="1"==Pxa);var Qxa=b.backgroundable;Qxa&&(a.backgroundable="1"==Qxa);var Rxa=b.autonav;Rxa&&(a.isAutonav="1"==Rxa);var B6=b.autoplay;B6&&(a.qq="1"==B6,a.Do=
"1"==B6);var Sxa=b.iv_load_policy;Sxa&&(a.annotationsLoadPolicy=tw(a.annotationsLoadPolicy,Sxa,EH));var Txa=b.cc_lang_pref;Txa&&(a.captionsLanguagePreference=vw(Txa,a.captionsLanguagePreference));var Uxa=b.cc_load_policy;Uxa&&(a.gL=tw(a.gL,Uxa,EH));var Vxa;a.deviceCaptionsOn=null!=(Vxa=b.device_captions_on)?Vxa:void 0;var Wxa;a.fQ=null!=(Wxa=b.device_captions_lang_pref)?Wxa:"";var Xxa;a.pH=null!=(Xxa=b.viewer_selected_caption_langs)?Xxa:[];var Yxa=b.cached_load;Yxa&&(a.Nt=rw(a.Nt,Yxa));"0"==b.dash&&
(a.oH=!0);var Zxa=b.dashmpd;Zxa&&(a.tb=g.ci(Zxa,{cpn:a.clientPlaybackNonce}));var $xa=b.delay;$xa&&(a.Fb=se($xa));var aya=a.AI||b.end;void 0!=aya&&(a.clipEnd=uw(a.clipEnd,aya));var bya=b.fmt_list;bya&&(a.CH=bya);b.heartbeat_preroll&&a.Ba.push("heartbeat");a.Sl=-Math.floor(10*Math.random());a.Ay=-Math.floor(40*Math.random());var cya=b.is_listed;cya&&(a.isListed=rw(a.isListed,cya));var dya=b.is_private;dya&&(a.isPrivate=rw(a.isPrivate,dya));var eya=b.is_dni;eya&&(a.D=rw(a.D,eya));var fya=b.dni_color;
fya&&(a.Lc=vw(a.Lc,fya));var gya=b.pipable;gya&&(a.pipable=rw(a.pipable,gya));a.pO=a.pipable&&a.u.tp;a.GL=a.pO&&!a.u.showMiniplayerButton;var hya=b.paid_content_overlay_duration_ms;hya&&(a.paidContentOverlayDurationMs=se(hya));var iya=b.paid_content_overlay_text;iya&&(a.paidContentOverlayText=iya);var jya=b.url_encoded_fmt_stream_map;jya&&(a.Ok=jya);var kya=b.hls_formats;kya&&(a.hlsFormats=kya);var lya=b.hlsvp;lya&&(a.hlsvp=lya);var DP=b.live_start_walltime;DP&&(a.wI="number"===typeof DP?DP:se(DP));
var EP=b.live_manifest_duration;EP&&(a.Ql="number"===typeof EP?EP:se(EP));var mya=b.player_params;mya&&(a.playerParams=mya);var nya=b.partnerid;nya&&(a.Aa=uw(a.Aa,nya));var oya=b.probe_url;oya&&(a.probeUrl=wB(g.ci(oya,{cpn:a.clientPlaybackNonce})));var C6=b.pyv_billable_url;C6&&Jra(C6)&&(a.Zh=C6);var D6=b.pyv_conv_url;D6&&Jra(D6)&&(a.SV=D6);PAa(a,b);Hxa?(a.startSeconds=0,a.zc=0):0<a.startSeconds||(a.startSeconds=uw(a.startSeconds,a.CI||a.jI||b.start||b.startSeconds),a.zc=a.startSeconds);if(!(a.liveUtcStartSeconds&&
0<a.liveUtcStartSeconds)){var pya=b.live_utc_start;if(null!=pya)a.liveUtcStartSeconds=Number(pya);else{var E6=a.startSeconds;E6&&isFinite(E6)&&1E9<E6&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var qya=b.utc_start_millis;qya&&(a.liveUtcStartSeconds=.001*Number(qya))}var rya=b.stream_time_start_millis;rya&&(a.qj=.001*Number(rya));var sya=a.jI||b.start;void 0==sya||"1"==b.resume||a.isLivePlayback||(a.clipStart=uw(a.clipStart,sya));var tya=b.url_encoded_third_party_media;
tya&&(a.Nk=Av(tya));var F6=b.ypc_offer_button_formatted_text;if(F6){var uya=JSON.parse(F6);a.tH=null!=uya?uya:null;a.NO=F6}var vya=b.ypc_offer_button_text;vya&&(a.UE=vya);var wya=b.ypc_offer_description;wya&&(a.Gu=wya);var xya=b.ypc_offer_headline;xya&&(a.mF=xya);var yya=b.ypc_full_video_message;yya&&(a.hp=yya);var zya=b.ypc_offer_id;zya&&(a.Rk=zya);var Aya=b.ypc_buy_url;Aya&&(a.zD=Aya);var Bya=b.ypc_item_thumbnail;Bya&&(a.HD=Bya);var Cya=b.ypc_item_title;Cya&&(a.tp=Cya);var Dya=b.ypc_item_url;Dya&&
(a.mE=Dya);var Eya=b.ypc_vid;Eya&&(a.Ju=Eya);b.ypc_overlay_timeout&&(a.Hu=Number(b.ypc_overlay_timeout));var Fya=b.ypc_trailer_player_vars;Fya&&(a.Sk=zv(Fya));var Gya=b.ypc_original_itct;Gya&&(a.UZ=Gya);a.Kl=vw(a.Kl,b.ucid);b.baseUrl&&(a.T.baseUrl=b.baseUrl);b.uid&&(a.T.uid=b.uid);b.oeid&&(a.T.oeid=b.oeid);b.ieid&&(a.T.ieid=b.ieid);b.ppe&&(a.T.ppe=b.ppe);b.engaged&&(a.T.engaged=b.engaged);b.subscribed&&(a.T.subscribed=b.subscribed);a.T.focEnabled=rw(a.T.focEnabled,b.focEnabled);a.T.rmktEnabled=rw(a.T.rmktEnabled,
b.rmktEnabled);a.Iw=b.storyboard_spec||null;a.Aw=b.live_storyboard_spec||null;a.KQ=b.iv_endscreen_url||null;a.sI=rw(a.sI,b.iv3_module);a.Kp=rw(a.Kp,b.ypc_license_checker_module);a.zj=rw(a.zj,b.ypc_module);a.Sf=rw(a.Sf,b.ypc_clickwrap_module);a.zj&&a.Ba.push("ypc");a.Sf&&a.Ba.push("ypc_clickwrap");a.vT={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,
user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};MAa(a,b);var Hya=b.cotn;Hya&&(a.cotn=Hya);if(WAa(a))rJ(a)&&(a.isLivePlayback&&a.tb&&(a.eh=!0),a.Xa&&(a.yn=!0));else if(XAa(a))a.eh=!0;else{var Kya,Lya,Mya=(null==(Kya=a.playerResponse)?void 0:null==(Lya=Kya.streamingData)?void 0:Lya.adaptiveFormats)||
[];if(0<Mya.length)var iF=YAa(a,Mya);else{var Oya=a.adaptiveFormats;if(Oya&&ZAa(a)){sJ(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(jG=!0);var qy=tJ(Oya),H6=a.Nd,Qya=a.lengthSeconds,s6a=a.isLivePlayback,jF=a.Ne,ry=a.u,I6=a.videoId,t6a=Jua(qy);if(s6a||jF){var uh=new VF("",null==ry?void 0:ry.experiments,!0,I6);uh.Pd=!0;uh.isManifestless=!0;uh.u=!jF;uh.isLive=!jF;uh.Ne=jF;for(var Rya=g.t(qy),J6=Rya.next();!J6.done;J6=Rya.next()){var sy=J6.value,Sya=$F(sy,H6),cu=aG(sy.url,sy.sp,sy.s),Tya=cu.get("id");
Tya&&Tya.includes("%7E")&&(uh.Z=!0);var u6a=Number(sy.target_duration_sec)||5,v6a=Number(sy.max_dvr_duration_sec)||14400,Uya=Number(cu.get("mindsq")||cu.get("min_sq")||"0"),Vya=Number(cu.get("maxdsq")||cu.get("max_sq")||"0")||Infinity;uh.Be=uh.Be||Uya;uh.Fg=uh.Fg||Vya;var w6a=!sF(Sya.mimeType);cu&&WF(uh,new LE(cu,Sya,{Nj:u6a,Yl:w6a,Qn:v6a,Be:Uya,Fg:Vya,Wx:300,Ne:jF}))}uh.B=!!uh.Be&&!!uh.Fg&&isFinite(uh.Fg);var Wya=uh}else{if("FORMAT_STREAM_TYPE_OTF"===t6a){var GP=Qya;GP=void 0===GP?0:GP;var ty=new VF("",
null==ry?void 0:ry.experiments,!1,I6);ty.duration=GP||0;for(var Xya=g.t(qy),K6=Xya.next();!K6.done;K6=Xya.next()){var uy=K6.value,L6=$F(uy,H6,ty.duration),M6=aG(uy.url,uy.sp,uy.s);if(M6)if("FORMAT_STREAM_TYPE_OTF"===L6.streamType)WF(ty,new ME(M6,L6,"sq/0"));else{var x6a=oE(uy.init),y6a=oE(uy.index);WF(ty,new UE(M6,L6,x6a,y6a))}}ty.isOtf=!0;var Yya=ty}else{var HP=Qya;HP=void 0===HP?0:HP;var IP=new VF("",null==ry?void 0:ry.experiments,!1,I6);IP.duration=HP||0;for(var Zya=g.t(qy),N6=Zya.next();!N6.done;N6=
Zya.next()){var vy=N6.value,z6a=$F(vy,H6,IP.duration),A6a=oE(vy.init),B6a=oE(vy.index),$ya=aG(vy.url,vy.sp,vy.s);$ya&&WF(IP,new UE($ya,z6a,A6a,B6a))}Yya=IP}Wya=Yya}var C6a=Wya;if(0<qy.length){var wy=qy[0];if(wy.url&&wy.sp&&wy.s){var D6a=aG(wy.url,wy.sp,wy.s),E6a=Number(D6a.get("max_sq"))||Infinity;isFinite(E6a)&&(a.jd=!0)}}var F6a=a.isLivePlayback&&!a.Ne&&!a.jd&&!a.isPremiere;a.N("html5_live_head_playable")&&!uJ(a)&&F6a&&a.xa("missingLiveHeadPlayable",{});iF=C6a}else iF=null;a.xa("pafmts",{isManifestFilled:!!iF})}if(iF){vJ(a,
iF);var aza=!0}else aza=!1;aza?a.enableServerStitchedDai=a.enableServerStitchedDai&&wJ(a):a.tb&&(a.eh=!0)}var P6=b.adpings;P6&&(a.jz=P6?zv(P6):null);var bza=b.feature;bza&&(a.Cn=bza);var cza=b.referrer;cza&&(a.referrer=cza);a.clientScreenNonce=vw(a.clientScreenNonce,b.csn);a.oC=uw(a.oC,b.root_ve_type);a.zn=uw(a.zn,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.Kw=rw(a.Kw,b.upg_content_filter_mode);var dza=b.unplugged_location_info;dza&&(a.oa=dza);var eza=b.unplugged_partner_opt_out;
eza&&(a.JM=vw("",eza));a.Xv=rw(a.Xv,b.disable_watch_next);a.xn=vw(a.xn,b.internal_ip_override);a.nI=!!b.is_yto_interstitial;(a.interstitials.length||a.nI)&&a.Ba.push("yto");var fza=b.vl;fza&&(a.vl=fza);b.LG&&(a.LG=b.LG);var gza;a.Pa=null!=(gza=b.csi_timer)?gza:"";a.un=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var JP=b.watch_endpoint;a.N("html5_attach_watch_endpoint_ustreamer_config")&&JP&&$Aa(a,JP);var iza,jza,kza=null==JP?void 0:null==(iza=JP.loggingContext)?void 0:null==(jza=iza.qoeLoggingContext)?
void 0:jza.serializedContextData;a.N("html5_add_qclc_to_qoe_ping")&&kza&&(a.QZ=kza);g.tH(a.u)&&(a.embedsRct=vw(a.embedsRct,b.rct),a.embedsRctn=vw(a.embedsRctn,b.rctn));a.An=a.An||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)};
LAa=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.watchNextResponse=c;if(!a.N("embeds_web_enable_video_data_refactoring_break_down_and_move_methods")){var e;(c=null==(e=a.watchNextResponse.contents)?void 0:e.singleColumnWatchNextResults)&&$za(a,c,uw(0,b.autoplay_count))}var f;e=null==(f=a.watchNextResponse.contents)?void 0:f.twoColumnWatchNextResults;if(!a.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var h;a.yZ=
!!(null==e?0:null==(h=e.autoplay)?0:h.autoplay)}f=a.watchNextResponse.playerOverlays;if(f&&(f=f.playerOverlayRenderer)){if(h=f.autonavToggle)a.autoplaySwitchButtonRenderer=g.P(h,aBa),a.N("web_player_autonav_use_server_provided_state")&&xJ(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1);h=f.endScreen;if(!a.N("embeds_web_enable_video_data_refactoring_break_down_and_move_methods")&&h&&(h=h.watchNextEndScreenRenderer))var l=h.results;if(h=f.videoDetails){var m=h.embeddedPlayerOverlayVideoDetailsRenderer;
if(c=h.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.BH=c.title,a.zH=c.byline;if(h=h.playerOverlayVideoDetailsRenderer)h.title&&(b.title=g.IB(h.title)),h.subtitle&&(b.subtitle=g.IB(h.subtitle))}if(!a.N("embeds_web_enable_video_data_refactoring_like_button_renderer")&&(h=f.actions))for(h=g.t(h),c=h.next();!c.done;c=h.next())c=c.value,c.likeButtonRenderer&&(a.likeButtonRenderer=c.likeButtonRenderer);if(!a.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var n;if(h=null==(n=
g.P(f.suggestedActionsRenderer,bBa))?void 0:n.suggestedActions)for(n=g.t(h),h=n.next();!h.done;h=n.next())(h=g.P(h.value,cBa))&&g.P(h.trigger,yJ)&&a.suggestedActions.push(h)}if(!a.N("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")&&(n=g.P(f.decoratedPlayerBarRenderer,AI))){a.multiMarkersPlayerBarRenderer=g.P(n.playerBar,bAa);var p;a.aQ=null==(p=g.P(n.playerBar,dBa))?void 0:p.chapters;a.KZ=g.P(n.playerBarActionButton,g.zJ)}!a.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")&&
g.zH(a.u)&&(a.Ak=!!f.addToMenu);eBa(a,f.shareButton);if(p=f.productsInVideoOverlayRenderer)a.shoppingOverlayRenderer=g.P(p,fBa);if(p=f.autoplay)var q=p.playerOverlayAutoplayRenderer;a.progressBarStartPosition=f.startPosition;a.progressBarEndPosition=f.endPosition;if(p=f.gatedActionsOverlayRenderer)a.wZ=g.P(p,gBa);(p=g.P(f.infoPanel,hBa))&&iBa(a,p)}!a.N("embeds_web_enable_video_data_refactoring_break_down_and_move_methods")&&!l&&e&&(p=e.endScreen&&e.endScreen.endScreen)&&(l=p.results);!a.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")&&
e&&(p=e.desktopOverlay&&g.P(e.desktopOverlay,AJ))&&(p.suppressShareButton&&(a.showShareButton=!1),p.suppressWatchLaterButton&&(a.Ak=!1));m&&jBa(a,b,m);m=uw(0,b.autoplay_count);if(a.N("embeds_web_enable_video_data_refactoring_break_down_and_move_methods")){q=a.watchNextResponse;var r;l=null==(r=q.contents)?void 0:r.twoColumnWatchNextResults;var w,x,z;r=null==(w=q.playerOverlays)?void 0:null==(x=w.playerOverlayRenderer)?void 0:null==(z=x.autoplay)?void 0:z.playerOverlayAutoplayRenderer;w=aAa(a);var B;
(x=null==(B=q.contents)?void 0:B.singleColumnWatchNextResults)&&$za(a,x,m);w&&Zza(a,w,l||null,r||null,m);if(r){a.DI=!!r.preferImmediateRedirect;a.dc=a.dc||!!r.webShowNewAutonavCountdown;a.Wd=a.Wd||!!r.webShowBigThumbnailEndscreen;(a.dc||a.Wd)&&Xza(a,r,l||null,m);null!=r.countDownSecs&&(a.uO=1E3*r.countDownSecs);null!=r.countDownSecsForFullscreen&&(a.Sv=0<=r.countDownSecsForFullscreen?1E3*r.countDownSecsForFullscreen:-1);var C;a.MO=null==(C=r.cancelButton)?void 0:C.buttonRenderer;a.N("web_autonav_color_transition")&&
r.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.P(r.watchToWatchTransitionRenderer,kBa))}(B=aAa(a))&&Yza(a,B)}else{l&&Zza(a,l,e||null,q||null,m);if(q){a.DI=!!q.preferImmediateRedirect;a.dc=a.dc||!!q.webShowNewAutonavCountdown;a.Wd=a.Wd||!!q.webShowBigThumbnailEndscreen;(a.dc||a.Wd)&&Xza(a,q,e||null,m);null!=q.countDownSecs&&(a.uO=1E3*q.countDownSecs);null!=q.countDownSecsForFullscreen&&(a.Sv=0<=q.countDownSecsForFullscreen?1E3*q.countDownSecsForFullscreen:-1);var G;a.MO=null==
(G=q.cancelButton)?void 0:G.buttonRenderer;a.N("web_autonav_color_transition")&&q.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.P(q.watchToWatchTransitionRenderer,kBa))}l&&Yza(a,l)}a.watchNextResponse.currentVideoThumbnail&&(a.ea=qI(a.watchNextResponse.currentVideoThumbnail));var F,K,L,N,ba;if((B=null==(F=a.watchNextResponse)?void 0:null==(K=F.contents)?void 0:null==(L=K.twoColumnWatchNextResults)?void 0:null==(N=L.results)?void 0:null==(ba=N.results)?void 0:ba.contents)&&B[1]){var T,
S,ea,Q;(F=null==(T=B[1].videoSecondaryInfoRenderer)?void 0:null==(S=T.owner)?void 0:null==(ea=S.videoOwnerRenderer)?void 0:null==(Q=ea.thumbnail)?void 0:Q.thumbnails)&&F.length&&(a.profilePicture=F[F.length-1].url)}if(T=a.watchNextResponse.onResponseReceivedEndpoints)for(T=g.t(T),S=T.next();!S.done;S=T.next())S=S.value,g.P(S,BJ)&&(a.XQ=g.P(S,BJ)),S=g.P(S,lBa),ea=void 0,a.N("web_key_moments_markers")&&(null==(ea=S)?0:ea.entityKeys)&&(a.zw=S.entityKeys,S.visibleOnLoadKeys&&(a.visibleOnLoadKeys=S.visibleOnLoadKeys));
a.N("web_key_moments_markers")&&(T=g.CJ.getState().entities,S=g.UI("visibility_override","markersVisibilityOverrideEntity"),T=T.markersVisibilityOverrideEntity?T.markersVisibilityOverrideEntity[S]||null:null,b=a.videoId||xw(b),a.mf=(null==T?void 0:T.videoId)===b&&(null==T?0:T.visibilityOverrideMarkersKey)?T.visibilityOverrideMarkersKey:a.visibleOnLoadKeys,a.visibleOnLoadKeys=[].concat(g.u(a.mf)));!a.N("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")&&(b=g.P(a.watchNextResponse.currentVideoEndpoint,
g.xI),null==b?0:b.playlistId)&&(a.HZ=b.playlistId)}};
xJ=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
DJ=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
FJ=function(a){var b=a.gb,c=!!a.j&&a.j.Pd,d=a.u,e=a.ZK(),f=EJ(a),h=a.rH,l=a.isOtf(),m=a.SI(),n=a.Rb,p=a.wj,q=new gva(d);if(d.C||d.N("html5_logging_format_selection"))q.B=!0;q.gb=f;q.Ka=h&&d.D;q.wj=p;bw("windows nt 5.1")&&!g.vG&&(q.j=!0);if(f=e)f=d.N("disable_html5_ambisonic_audio")||!g.XH(d)?!1:oza(d);f&&(q.Xa=!0);b&&(q.j=!0,q.zc=!0);l&&!d.N("html5_otf_prefer_vp9")&&(q.j=!0);l&&"picasaweb"===d.playerStyle&&(q.j=!1);n&&(q.j=!0);b=d.N("html5_ugc_vod_audio_51")&&!c;l=d.N("html5_ugc_live_audio_51")&&
c;q.Pa=b||l;SC(d.B,TC.CHANNELS)&&(d.N("html5_enable_aac51")&&(q.Aa=!0),d.N("html5_enable_ac3")&&(q.J=!0),d.N("html5_enable_eac3")&&(q.T=!0),d.N("html5_enable_ac3_gapless")&&(q.Ma=!0));d.N("html5_block_8k_hfr")&&(q.tb=!0);q.Z=g.wG(d.experiments,"html5_max_selectable_quality_ordinal");q.ea=g.wG(d.experiments,"html5_min_selectable_quality_ordinal");qH&&(q.dc=480);if(c||e)q.kb=!1;q.Fb=!1;c=nG(d,q.u);0<c&&2160>c&&(MF()||d.N("html5_format_hybridization"))&&(q.u.supportsChangeType=+MF(),q.C=c);2160<=c&&
(q.Ba=!0);eva()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.Ac=!1);q.SI=m;q.Wa=g.Jx||nw()&&!m?!1:!0;q.oa=d.N("html5_format_hybridization");q.Pb=d.N("html5_disable_encrypted_vp9_live_non_2k_4k");ew()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.J=!0,q.T=!0);a.gb&&a.isAd()&&(a.Zy&&(q.ya=a.Zy),a.Ty&&(q.I=a.Ty));q.Va=a.isLivePlayback&&a.zm()&&a.u.N("html5_drm_live_audio_51");return a.Ol=
q};
nBa=function(a){hC("drm_pb_s",void 0,a.Pa);a.Xa||a.j&&NC(a.j);var b={};a.j&&(b=zsa(a.Wv,FJ(a),a.u.B,a.j,function(c){return a.ma("ctmp","fmtflt",c)},!0));
b=new zG(b,a.u,a.zO,mBa(a),function(c,d){a.xa(c,d)});
g.H(a,b);a.yn=!1;a.Ma=!0;kva(b,function(c){hC("drm_pb_f",void 0,a.Pa);for(var d=g.t(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Xa=a.Xa;e.ww=a.ww;e.cw=a.cw;break;case "widevine":e.Qk=a.Qk}a.Ew=c;if(0<a.Ew.length&&(a.Z=a.Ew[0],a.u.C)){c={};d=g.t(Object.entries(a.Z.j));for(e=d.next();!e.done;e=d.next()){var f=g.t(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.xa("drmProbe",c)}oJ(a)})};
YAa=function(a,b){if(0===b.length||!ZAa(a))return null;sJ(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(jG=!0);var c=a.Nd;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.Ne,h=a.u,l=a.videoId,m=Kua(b);if(e||f){h=new VF("",h.experiments,!0,l);h.u=!f;h.Pd=!0;h.isManifestless=!0;h.isLive=!f;h.Ne=f;l=g.t(b);for(d=l.next();!d.done;d=l.next()){var n=d.value;d=ZF(n,c);e=AC(n);e=aG(e.Ot||n.url||"",e.Fv,e.s);(m=e.get("id"))&&m.includes("%7E")&&(h.Z=!0);m=Number(n.targetDurationSec||5);n=Number(n.maxDvrDurationSec||
14400);var p=Number(e.get("mindsq")||e.get("min_sq")||"0"),q=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.Be=h.Be||p;h.Fg=h.Fg||q;var r=!sF(d.mimeType);e&&WF(h,new LE(e,d,{Nj:m,Yl:r,Qn:n,Be:p,Fg:q,Wx:300,Ne:f}))}h.B=!!h.Be&&!!h.Fg&&isFinite(h.Fg);c=h}else if("FORMAT_STREAM_TYPE_OTF"===m){d=void 0===d?0:d;f=new VF("",h.experiments,!1,l);f.duration=d||0;h=g.t(b);for(l=h.next();!l.done;l=h.next())l=l.value,d=ZF(l,c,f.duration),e=AC(l),(e=aG(e.Ot||l.url||"",e.Fv,e.s))&&("FORMAT_STREAM_TYPE_OTF"===
d.streamType?WF(f,new ME(e,d,"sq/0")):WF(f,new UE(e,d,qE(l.initRange),qE(l.indexRange))));f.isOtf=!0;c=f}else{d=void 0===d?0:d;f=new VF("",h.experiments,!1,l);f.duration=d||0;h=g.t(b);for(l=h.next();!l.done;l=h.next())m=l.value,l=ZF(m,c,f.duration),d=qE(m.initRange),e=qE(m.indexRange),n=AC(m),(m=aG(n.Ot||m.url||"",n.Fv,n.s))&&WF(f,new UE(m,l,d,e));c=f}h=AC(b[0]);b=h.Ot;f=h.Fv;h=h.s;b&&f&&h&&(b=aG(b,f,h),b=Number(b.get("max_sq"))||Infinity,isFinite(b)&&(a.jd=!0));b=a.isLivePlayback&&!a.Ne&&!a.jd&&
!a.isPremiere;a.N("html5_live_head_playable")&&!uJ(a)&&b&&a.xa("missingLiveHeadPlayable",{});return c};
rJ=function(a){return ew()?!GJ(a):gw()?!(!a.Xa||!a.N("html5_enable_safari_fairplay")):!1};
GJ=function(a){return a.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
mBa=function(a){return a.N("html5_disable_tvos_widevine")||!a.useCobaltWidevine?!1:ew()?GJ(a):!1};
ZAa=function(a){return!a.N("html5_manifestless_unplugged")&&a.isLivePlayback&&g.UH(a.u)&&g.IH(a.u)?!1:!rJ(a)};
wJ=function(a){return!(!a.j||!a.j.isManifestless)};
oBa=function(a){return Isa({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,jo:a.jo,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:wJ(a),IN:HJ})};
IJ=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=fG(a.j)?21530001:a.liveExperimentalContentId};
WAa=function(a){return ew()&&GJ(a)?!1:rJ(a)&&g.UH(a.u)&&!a.isLivePlayback||!EG(a.u.B)||a.oH?!0:!1};
qBa=function(a){a.Ma=!0;a.eh=!1;if(XAa(a))g.wAa(a.videoId).then(function(c){pBa(a,c)}).then(function(){oJ(a)});
else{uB(a.tb)||g.sA(new g.Sw("DASH MPD Origin invalid: ",a.tb));var b=a.tb;b=g.ci(b,{mpd_version:g.wG(a.u.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.ci(b,{pacing:0}));Sua(b,a.u.experiments,a.isLivePlayback).then(function(c){a.isDisposed()||(vJ(a,c,!0),hC("mrc",void 0,a.Pa),oJ(a))},function(c){a.isDisposed()||(a.Ma=!1,a.ma("dataloaderror",new cI("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
hC("mrs",void 0,a.Pa)}};
pBa=function(a,b){var c=b.map(function(l){return l.itag}),d;
if(null!=(d=a.playerResponse)&&d.streamingData){d=[];for(var e={},f=g.t(a.playerResponse.streamingData.adaptiveFormats),h=f.next();!h.done;e={So:e.So},h=f.next())e.So=h.value,c.includes(e.So.itag)&&(e.So=Object.assign({},e.So),e.So.url=b.find(function(l){return function(m){return m.itag===l.So.itag}}(e)).url,e.So.signatureCipher="",d.push(e.So));
b=YAa(a,d);vJ(a,b);a.xa("dlr",{})}else a.xa("offsdm",{cotn:a.yI?a.yI.cotn:"0",cpn:a.clientPlaybackNonce})};
oJ=function(a){a.isDisposed()||(a.Ma=!1,a.ma("dataloaded"))};
vJ=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.H(a,b);b.Be=a.Be;b.Fg=a.Fg;b.Pb=a.Pb;b.xd=a.xd;b.Xd=a.Xd;a.xO&&(b.Ma=new gE(a.xO));rBa(a)&&a.Ba.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Ql=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.xa,a),c?b.subscribe("refresh",a.ZT,a):b.subscribe("cuepointsadded",a.YQ,a));NC(b)&&(a.yn=!0);b.isPremiere=a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
wBa=function(a,b){if(a.isDisposed())return Vv();a.C=null;a.kb=null;a.Gd=null;sJ(a,"html5_high_res_logging_always")&&(a.u.C=!0);return sBa(a,b).then(void 0,function(){return tBa(a,b)}).then(void 0,function(){return uBa(a)}).then(void 0,function(){return vBa(a)})};
sBa=function(a,b){var c=b||WAa(a);if(!a.j||c)return a.xa("skipDash",{dm:!!a.j,air:b,dd:a.oH,mss:EG(a.u.B)}),Vv();EJ(a)&&Vua(a.j,a.isLivePlayback);sJ(a,"html5_enable_cobalt_experimental_vp9_decoder")&&xva(a.u.B);return Wv().then(function(){return Bsa(a.Wv,FJ(a),a.u.B,a.j,a.Z,function(d){return a.ma("ctmp","fmtflt",d)},a.zI).then(function(d){xBa(a,d);
a.Wv.j=null;/^av/.test(a.clientPlaybackNonce)&&a.Ol&&a.xa("av1",a.Ol.u)})})};
tBa=function(a,b){if(b&&a.hlsvp)return Vv();if(a.hlsFormats){b=tJ(a.hlsFormats);var c;if((null==(c=a.Ol)?0:c.B)&&b){c=[];for(var d=g.t(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.xa("hlsfmt",{itags:c.join(".")})}a.yw=wza(a.u,b);c=a.clientPlaybackNonce;var f,h,l,m;return Bza(a.u,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(h=f.captions)?void 0:null==(l=h.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.Fd,c,function(n){return a.ma("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],r=g.t(n),w=r.next();!w.done;w=r.next()){w=w.value;
var x=void 0;q.push(null==(x=w.ih())?void 0:x.itag);var z=x=void 0;(null==(x=w.ih())?void 0:null==(z=x.audio)?void 0:z.numChannels)>p&&(p=w.ih().audio.numChannels)}2<p&&a.xa("hlschl",{mn:p});var B;(null==(B=a.Ol)?0:B.B)&&a.xa("hlsfmtaf",{itags:q.join(".")});JJ(a,n)})}return Vv()};
uBa=function(a){return a.Nk&&a.vQ?Dza(a.u,a.isAd(),a.Nk).then(function(b){JJ(a,b)}):Vv()};
vBa=function(a){var b=tJ(a.Ok,a.CH);if(a.hlsvp){var c=IAa(a.hlsvp,a.clientPlaybackNonce,a.Fd);b.push(c)}return Cza(a.u,a.isAd(),b,yBa(a)).then(function(d){JJ(a,d)})};
xBa=function(a,b){a.C=b;if(a.C){b=g.t(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;0!==d&&(a.bQ[d]=c.id)}}b=a.getAvailableAudioTracks();b=b.concat(a.jn);for(c=0;c<a.hJ.length;c++){d=a.hJ[c];for(var e=0;e<b.length;e++){var f=b[e],h=f.Rc.id==d.audioTrackId;if(f.Rc.isDefault&&c==a.RQ||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.j=a.captionTracks[d.defaultCaptionTrackIndex]);
void 0!==d.forcedCaptionTrackIndex&&(f.u=a.captionTracks[d.forcedCaptionTrackIndex]);f.B=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}if(a.Z&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=pF(a.C.videoInfos[0]),b!=("fairplay"==a.Z.flavor)))for(c=g.t(a.Ew),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.Z=d;break}};
JJ=function(a,b){a.Gd=b;xBa(a,new IC(g.Lg(a.Gd,function(c){return c.ih()})))};
yBa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver};a.Cw&&(b.ptk=a.Cw,b.oid=a.ZS,b.ptchn=a.YS,b.pltype=a.hT,a.Yv&&(b.m=a.Yv));return b};
g.KJ=function(a){return rJ(a)&&a.Xa?(a={},a.fairplay="https://web.archive.org/web/20230104105643/https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.Nd||null};
zBa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.IB(b.text):a.paidContentOverlayText};
LJ=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?se(b.durationMs):a.paidContentOverlayDurationMs};
MJ=function(a){var b="";if(a.uI)return a.uI;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.jd?"window":"live");a.Ne&&(b="post");return b};
g.NJ=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
ABa=function(a){return!!a.Zh||!!a.FI||!!a.qf||!!a.Gw||a.iQ||a.T.focEnabled||a.T.rmktEnabled};
OJ=function(a){return!!(a.tb||a.Ok||a.Nk||a.hlsvp||a.wu())};
nJ=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.nb(a.Ba,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Ma&&(OJ(a)||g.nb(a.Ba,"heartbeat")||b)};
tJ=function(a,b){a=Av(a);var c={};if(b){b=g.t(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.t(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a};
eBa=function(a,b){a.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")||(a.showShareButton=!!b);var c,d,e=(null==(c=g.P(b,g.zJ))?void 0:c.navigationEndpoint)||(null==(d=g.P(b,g.zJ))?void 0:d.command);e&&(a.Gn=!!g.P(e,BBa))};
KAa=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.Cf=c);if(a.Cf){a.embeddedPlayerConfig=a.Cf.embeddedPlayerConfig||null;if(c=a.Cf.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage),c.isShortsEligible&&(a.isShortsEligible=c.isShortsEligible);if(c=a.Cf.embedPreview){c=c.thumbnailPreviewRenderer;
d=c.controlBgHtml;if(a.N("embeds_web_enable_video_data_refactoring_embedded_player_response")){var e,f,h;(null==(e=a.Cf)?0:null==(f=e.embedPreview)?0:null==(h=f.thumbnailPreviewRenderer)?0:h.controlBgHtml)?a.u.N("embeds_web_enable_epm_dni_parity_fix")&&(a.u.ea="EMBEDDED_PLAYER_MODE_PFP"):a.u.N("embeds_web_enable_epm_dni_parity_fix")&&"EMBEDDED_PLAYER_MODE_PFP"===a.u.ea&&(a.u.ea="EMBEDDED_PLAYER_MODE_DEFAULT")}else null!=d?(a.Lc=d,a.D=!0,a.u.N("embeds_web_enable_epm_dni_parity_fix")&&(a.u.ea="EMBEDDED_PLAYER_MODE_PFP")):
(a.Lc="",a.D=!1,a.u.N("embeds_web_enable_epm_dni_parity_fix")&&"EMBEDDED_PLAYER_MODE_PFP"===a.u.ea&&(a.u.ea="EMBEDDED_PLAYER_MODE_DEFAULT"));if(e=c.defaultThumbnail)a.ea=qI(e),a.sampledThumbnailColor=e.sampledThumbnailColor;(e=g.P(null==c?void 0:c.videoDetails,CBa))&&jBa(a,b,e);if(e=g.P(null==c?void 0:c.videoDetails,DBa))a.BH=e.title,a.zH=e.byline,e.musicVideoType&&(a.musicVideoType=e.musicVideoType);a.N("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")||(a.Ak=!!c.addToWatchLaterButton);
eBa(a,c.shareButton);var l,m;if(e=g.P(null==c?void 0:null==(l=c.playButton)?void 0:null==(m=l.buttonRenderer)?void 0:m.navigationEndpoint,g.xI))$Aa(a,e),a.videoId=e.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=se(c.videoDurationSeconds));c.webPlayerActionsPorting&&Uza(a,c.webPlayerActionsPorting);if(l=g.P(null==c?void 0:c.playlist,EBa)){a.Ll=!0;m=[];e=Number(l.currentIndex);if(l.contents)for(f=0,h=l.contents.length;f<h;f++)if(d=l.contents[f].playlistPanelVideoRenderer){var n=d.shortBylineText?
g.IB(d.shortBylineText):"",p=d.title?g.IB(d.title):"";m.push({author:n,encrypted_id:d.videoId,title:p,channel_path:f===e?b.channel_path:"",profile_picture:f===e?b.profile_picture:"",is_private:f===e?a.isPrivate:!0,is_dni:f===e?a.D:!1,dni_color:f===e?a.Lc:""})}b={index:l.currentIndex,list:l.playlistId,playlist_length:l.totalVideos,video:m};l.titleText&&(b.title=g.IB(l.titleText));l.shortBylineText&&(b.author=g.IB(l.shortBylineText));a.gQ=b}(b=g.P(null==c?void 0:c.infoPanel,hBa))&&iBa(a,b)}if(a.Cf.previewPlayabilityStatus){if(a.Dw=
a.Cf.previewPlayabilityStatus,b=a.Dw,!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){a.errorCode=Fza(b.errorCode);c=b.errorScreen;if(l=null==c?void 0:c.playerErrorMessageRenderer){a.sH=l;if(m=l.reason)a.errorReason=g.IB(m);if(l=l.subreason)a.fm=g.IB(l)}else a.errorReason=b.reason||null;switch(b.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var q;(null==c?0:null==(q=c.playerKavRenderer)?0:q.kavUrl)?a.errorDetail=
"4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.Cf.playabilityStatus&&(a.qn=a.Cf.playabilityStatus,FBa(a)&&(a.errorDetail="0",a.qn&&((q=a.qn.embeddedPlayerErrorMessageRenderer)?a.sH=g.P(q,GBa):a.N("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.qn.reason||null))));(q=a.Cf.attestation)&&Nza(a,q);(q=a.Cf.permissions)&&q.allowImaMonetization&&(a.allowImaMonetization=!0)}};
$Aa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.CS=new CAa(b)};
jBa=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);var e;if(d=g.P(null==(e=g.P(null==c?void 0:c.channelThumbnailEndpoint,HBa))?void 0:e.urlEndpoint,g.zI))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.P(e,IBa)){if(d=e.title)b.title=g.IB(d);if(e=e.subtitle)b.subtitle=g.IB(e)}if(c=c.expandedRenderer)if(c=g.P(c,JBa)){if(e=c.title)b.expanded_title=g.IB(e);if(e=c.subtitle)b.expanded_subtitle=g.IB(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.P(c,g.PJ),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.Mk=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.tO=b.toggledServiceEndpoint||null,a.rO=b.defaultServiceEndpoint||
null):(a.tO=b.defaultServiceEndpoint||null,a.rO=b.toggledServiceEndpoint||null)))}};
iBa=function(a,b){a.qQ=Number(null==b?void 0:b.durationMs)||NaN;if(null==b?0:b.infoPanelOverviewViewModel)a.fh=null==b?void 0:b.infoPanelOverviewViewModel;if(null==b?0:b.infoPanelDetailsViewModel)a.vn=null==b?void 0:b.infoPanelDetailsViewModel};
g.QJ=function(a){return uJ(a)&&!a.allowLiveDvr};
RJ=function(a){return uJ(a)&&a.allowLiveDvr};
uJ=function(a){return a.N("html5_live_head_playable")&&wJ(a)?a.isLiveHeadPlayable:a.isLivePlayback};
g.SJ=function(a){return!!a.j&&Cua(a.j)};
g.TJ=function(a){return!!a.j&&Dua(a.j)};
rBa=function(a){return a.ZK()||g.UJ(a)};
g.VJ=function(a){return!!a.j&&Eua(a.j)};
g.UJ=function(a){return!!a.j&&Fua(a.j)};
g.KBa=function(a){if(a.zM)return null;var b=a.KQ;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.LBa=function(a){return a.zM?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.WJ=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.XJ=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.t(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
YJ=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.u.Aa};
ZJ=function(a){if(a.isAd()&&a.videoId!=a.u.Xd)return a.u.Xd};
$J=function(a){return a.Do||"detailpage"==YJ(a)||"shortspage"==YJ(a)||a.mutedAutoplay};
aK=function(a){if($J(a)){if("detailpage"==YJ(a)||"shortspage"==YJ(a))return a.isAutonav||0<a.Ec;if(("17_8"!==a.adFormat||a.isAutonav||g.VH(a.u)||a.qq)&&!(a.LO||"adunit"==YJ(a)&&a.Zh))return!0}return!1};
g.bK=function(a){return a.oauthToken||a.u.Zh};
MBa=function(a){var b=1,c=g.wG(a.u.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;c=(null==(d=a.I)?void 0:d.audio.u)||a.Rf;if(a.N("html5_stateful_audio_normalization")&&null!=c){if(a.BO)return Math.min(1,Math.pow(10,-a.yM/20))||b;d=0;a.N("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.u.Hl,g.wG(a.u.experiments,"html5_stateful_audio_min_adjustment_value")));a.yM=c}return Math.min(1,Math.pow(10,-c/20))||b};
EJ=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===BG(a.u)&&"MUSIC"===a.u.deviceParams.ctheme;!a.yj&&(g.CH(a.u)||c)&&b.includes(a.musicVideoType)&&(a.yj=!0);if(b=g.dw())b=/Starboard\/([0-9]+)/.exec(g.Wb()),b=10>(b?parseInt(b[1],10):NaN);c=a.u;c=("TVHTML5_CAST"===BG(c)||"TVHTML5"===BG(c)&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.u.deviceParams.ctheme;var d;if(d=!a.yj)c||(c=a.u,
c="TVHTML5"===BG(c)&&c.deviceParams.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.N("cast_prefer_audio_only_for_atv_and_uploads")||a.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.yj=!0);return a.u.deviceIsAudioOnly||a.yj&&a.u.D};
NBa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
cK=function(a){return!(!a.pn||!a.u.D)&&a.wu()};
OBa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
PBa=function(a){if(a.hQ||a.cotn||!a.j||a.j.isOtf)return!1;if(a.N("html5_use_sabr_requests_for_debugging"))return!0;var b=!a.j.Pd&&!a.zm(),c=b&&HJ&&a.N("html5_enable_sabr_vod_streaming_xhr");a=b&&!HJ&&a.N("html5_enable_sabr_vod_non_streaming_xhr");return c||a};
XAa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.ZI(b);return b&&!a.pn};
g.dK=function(a){if(!a.j||!a.B||!a.I)return!1;var b=a.j.j;return!!b[a.B.id]&&aD(b[a.B.id].u.j)&&!!b[a.I.id]&&aD(b[a.I.id].u.j)};
eK=function(a){return a.Dw?["OK","LIVE_STREAM_OFFLINE"].includes(a.Dw.status):!0};
FBa=function(a){return(a=a.qn)&&a.showError?a.showError:!1};
sJ=function(a,b){return a.N(b)?!0:(a.fflags||"").includes(b+"=true")};
QBa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
PAa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.Gw=new cAa(b));if(b=b.video_masthead_ad_quartile_urls)a.FI=b.quartile_0_url,a.fL=b.quartile_25_url,a.XU=b.quartile_50_url,a.mV=b.quartile_75_url,a.DT=b.quartile_100_url,a.qf=b.quartile_0_urls,a.Fw=b.quartile_25_urls,a.hL=b.quartile_50_urls,a.pL=b.quartile_75_urls,a.XJ=b.quartile_100_urls,a.Pl=!1};
qJ=function(a,b){return b?EG(a.u.B)?!0:fK&&5>gK?!1:!0:!1};
OAa=function(a){var b={};a=g.t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
Oza=function(a){if(a){if(Nra(a))return a;a=Ora(a);if(Nra(a,!0))return a}return""};
g.RBa=function(a){return a.captionsLanguagePreference||a.u.captionsLanguagePreference||g.NJ(a,"yt:cc_default_lang")||a.u.eh};
hK=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.yI=function(a){if(a.N("web_player_decouple_autonav")){var b;return a.Vz||(null==(b=a.suggestions)?void 0:b[0])||null}var c;return(null==(c=a.suggestions)?void 0:c[0])||null};
iK=function(a,b){this.j=a;this.ea=b||{};this.I=String(Math.floor(1E9*Math.random()));this.D={};this.Z=this.T=0};
SBa=function(a){return jK(a)&&1==a.getPlayerState(2)};
jK=function(a){a=a.Qc();return void 0!==a&&2==a.getPlayerType()};
kK=function(a){a=a.V();return HH(a)&&!g.UH(a)&&"desktop-polymer"==a.playerStyle};
lK=function(a,b){var c=a.V();g.yH(c)||"3"!=c.controlsType||a.fb().tC(b)};
nK=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.j=e;this.u=f;this.id=mK(a)};
mK=function(a){return a+(":"+(bp.getInstance().j++).toString(36))};
oK=function(a){this.Y=a};
TBa=function(a,b){if(0===b||1===b&&(a.Y.isMobile&&g.kx?0:a.Y.isMobile||g.UH(a.Y)||g.IH(a.Y)||JH(a.Y)||!g.kx))return!0;a=g.Ee("video-ads");return null!=a&&"none"!==Dl(a,"display")};
UBa=function(a){switch(a){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}};
pK=function(){g.FB.call(this);var a=this;this.j={};g.cb(this,function(){for(var b=g.t(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
rK=function(){if(null===qK){qK=new pK;Pk(On).u="b";var a=Pk(On),b="h"==Hn(a)||"b"==Hn(a),c=!(Uk(),!1);b&&c&&(a.D=!0,a.I=new Yia)}return qK};
VBa=function(a,b,c){a.j[b]=c};
WBa=function(){};
sK=function(a,b,c){this.j=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
tK=function(a){var b,c,d,e,f;return!(null==(b=a.get("active_view_viewable"))||!b.length)||!(null==(c=a.get("active_view_measurable"))||!c.length)||!(null==(d=a.get("active_view_fully_viewable_audible_half_duration"))||!d.length)||!(null==(e=a.get("audio_audible"))||!e.length)||!(null==(f=a.get("audio_measurable"))||!f.length)};
uK=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.activeViewTracking)?void 0:b.trafficType)?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
vK=function(a){var b,c;return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",(null==(b=a.activeViewTracking)?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",(null==(c=a.activeViewTracking)?void 0:c.activeViewAudioMeasurablePings)||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],
["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]],["unmuted_impression",a.unmutedImpressionPings||[]],["unmuted_error",a.unmutedErrorPings||[]],["unmuted_mute",a.unmutedMutePings||[]],["unmuted_unmute",a.unmutedUnmutePings||[]],["unmuted_pause",a.unmutedPausePings||[]],["unmuted_resume",a.unmutedResumePings||[]],["unmuted_close",a.unmutedClosePings||[]],["unmuted_progress",a.unmutedProgressPings||[]],["unmuted_clickthrough",a.unmutedClickthroughPings||
[]],["unmuted_fullscreen",a.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",a.unmutedEndFullscreenPings||[]],["unmuted_abandon",a.unmutedAbandonPings||[]],["unmuted_start",a.unmutedStartPings||[]],["unmuted_first_quartile",a.unmutedFirstQuartilePings||[]],["unmuted_midpoint",a.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",a.unmutedThirdQuartilePings||[]],["unmuted_complete",a.unmutedCompletePings||[]],["unmuted_skip",a.unmutedSkipPings||[]]])};
XBa=function(a){switch(a){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 "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}};
YBa=function(a){return(a=a.pings)?Object.fromEntries(vK(a)):{}};
wK=function(a,b,c,d,e){iK.call(this,a,YBa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ma=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new sK(0,[]);this.Aa=null;this.C={};this.ya=null;this.u=0;this.J=null;this.oa=e;this.Ka=null;c=this.j.skipOffsetMilliseconds||0;0<c&&(this.ya=c);this.C=zv(this.j.playerVars||"");this.J=this.j.externalVideoId||null;this.u=uw(this.u,this.C.length_seconds);this.oa&&this.J&&(this.Ka=this.oa(this.J));if(this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=
JSON.parse(this.C.cta_conversion_urls)}catch(f){g.rA(f)}this.Aa=this.j.clickthroughEndpoint||null;this.B=new sK(0,[this.u])};
ZBa=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.j);b.autoplay="1";return b};
xK=function(){this.j=[];this.u=0};
yK=function(a,b){b&&a.j.push(b)};
zK=function(a){if(!a)return[];var b=[];a=g.t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.t(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
AK=function(a){if(!a)return[];var b=[];a.forEach(function(c){c.command.loggingUrls.forEach(function(d){b.push({baseUrl:d.baseUrl,offsetMilliseconds:c.adVideoOffset.milliseconds})})});
return b};
BK=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
CK=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
$Ba=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=zK(a.impressionCommands)||[];b.error=zK(a.errorCommands)||[];b.mute=zK(a.muteCommands)||[];b.unmute=zK(a.unmuteCommands)||[];b.pause=zK(a.pauseCommands)||[];b.rewind=zK(a.rewindCommands)||[];b.resume=zK(a.resumeCommands)||[];b.skip=zK(a.skipCommands)||[];b.close=zK(a.closeCommands)||[];b.clickthrough=zK(a.clickthroughCommands)||[];b.fullscreen=zK(a.fullscreenCommands)||[];b.active_view_viewable=zK(a.activeViewViewableCommands)||
[];b.active_view_measurable=zK(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=zK(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=zK(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=zK(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=zK(a.endFullscreenCommands)||[];b.channel_clickthrough=zK(a.channelClickthroughCommands)||[];b.abandon=zK(a.abandonCommands)||
[];b.progress=AK(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=AK(a.progressCommands.filter(function(c){return CK(c)&&ge(BK(c),0)}));
b.first_quartile=AK(a.progressCommands.filter(function(c){return CK(c)&&ge(BK(c),.25)}));
b.midpoint=AK(a.progressCommands.filter(function(c){return CK(c)&&ge(BK(c),.5)}));
b.third_quartile=AK(a.progressCommands.filter(function(c){return CK(c)&&ge(BK(c),.75)}));
b.complete=AK(a.progressCommands.filter(function(c){return CK(c)&&ge(BK(c),1)}));
return b};
FK=function(a){iK.call(this,a,$Ba(a));a.questions&&a.questions.reduce(function(b,c){return(c=g.P(c,DK)||g.P(c,EK))?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0)};
aCa=function(a,b,c,d){this.id=b;this.C=d.Bf;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.B=(this.D=e.getAdBreakUrl||"")?0:2;d.j=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=Tra(b,d);if(null==f)d=new CB(b,new Jo(-1,-1),!1,"adcuerange:invalid",3),d.deactivate(),d=[null,d];else{e=":"+(bp.getInstance().j++).toString(36);
var h=d.daiEnabled||d.Bf;f=new CB(b,f,d.visible&&!h,"adcuerange:"+e,3);h=null;if(d.Bf||0<d.j)if(d=Tra(b,d,!0))h=new CB(b,d,!1,"prefetch:"+e,5),f.C=h,h.C=f;d=[h,f]}this.j=d[1];this.u=c;this.I=!1;this.T={};this.J=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
GK=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j.j||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.j.j};
IK=function(a,b){var c={};bCa(a,c,b);cCa(c);c.LACT=HK(function(){return fz().toString()});
c.VIS=HK(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=HK(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
dCa=function(a){var b={};if(!a.kind)return g.rA(Error("AdPlacementConfig without kind")),b;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.rA(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=HK(ud(Math.round(se(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=HK(ud("0"));return b};
HK=function(a){return{toString:function(){return a()}}};
eCa=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=h(m))}
if(!c||g.Uc(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
bCa=function(a,b,c){b.CPN=HK(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.sA(Error("Video data is null.")),d=null);return d});
b.AD_MT=HK(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=HK(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=HK(function(){return a.fb().uj().height.toString()});
b.P_W=HK(function(){return a.fb().uj().width.toString()});
b.PV_H=HK(function(){return a.fb().getVideoContentRect().height.toString()});
b.PV_W=HK(function(){return a.fb().getVideoContentRect().width.toString()})};
cCa=function(a){a.CONN=HK(ud("0"));a.WT=HK(function(){return Date.now().toString()})};
fCa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=GK(a)?HK(ud(Math.round(a.j.start/1E3).toString())):HK(ud("0"));return b};
gCa=function(a){var b={};b.SLOT_POS=HK(ud(a.B.j.toString()));return b};
hCa=function(a){var b=a&&g.Ob(a,"load_timeout")?"402":"400",c={};return c.YT_ERROR_CODE=(3).toString(),c.ERRORCODE=b,c.ERROR_MSG=a,c};
JK=function(a){for(var b={},c=g.t(iCa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
KK=function(){var a={};Object.assign.apply(Object,[a].concat(g.u(g.ya.apply(0,arguments))));return a};
LK=function(){};
jCa=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,w;g.A(function(x){switch(x.j){case 1:e=!!b.scrubReferrer;f=g.Sn(b.baseUrl,eCa(c,e,d));h={};if(!b.headers){x.Ia(2);break}l=g.t(b.headers);m=l.next();case 3:if(m.done){x.Ia(5);break}n=m.value;switch(n.headerType){case "VISITOR_ID":g.O("VISITOR_DATA")&&(h["X-Goog-Visitor-Id"]=g.O("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.O("EOM_VISITOR_DATA")&&(h["X-Goog-EOM-Visitor-Id"]=g.O("EOM_VISITOR_DATA"));break;case "USER_AUTH":return x.Ia(6);case "PLUS_PAGE_ID":(p=
a.u())&&(h["X-Goog-PageId"]=p);break;case "ATTRIBUTION_REPORTING_ELIGIBLE":h["Attribution-Reporting-Eligible"]="event-source"}x.Ia(4);break;case 6:q=a.j();if(!q.j){r=q.getValue();x.Ia(8);break}return g.y(x,q.j,9);case 9:r=x.u;case 8:(w=r)&&(h.Authorization="Bearer "+w);x.Ia(4);break;case 4:m=l.next();x.Ia(3);break;case 5:"X-Goog-EOM-Visitor-Id"in h&&"X-Goog-Visitor-Id"in h&&delete h["X-Goog-Visitor-Id"];case 2:g.Ay(f,void 0,e,0!==Object.keys(h).length?h:void 0,"",!0),g.pa(x)}})};
MK=function(a){this.Vq=a};
NK=function(a){this.Et=a};
lCa=function(a,b,c,d,e,f){e=void 0===e?new NK(new MK(d.getVideoData(1))):e;f=void 0===f?!1:f;g.E.call(this);this.ad=a;this.B=b;this.macros=c;this.j=d;this.Al=e;this.daiEnabled=f;this.u={xH:.25,vI:.5,xI:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.ea.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.ea.unmuted_progress||[]);this.unmutedProgressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
kCa(uK(a.j.pings))};
SK=function(a,b){OK(a)||(PK(a)?(QK(a,0,!0),mCa(a,b,b)):(QK(a,0,!0),nCa(a,0,0,!0)),RK(a,"complete"))};
QK=function(a,b,c){for(c=void 0===c?!1:c;a.ad.T<a.progressPings.length;){var d=TK(a,"progress"),e=a.progressPings[a.ad.T];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&UK(a,e,d),a.ad.T++;else break}};
oCa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.Z<a.unmutedProgressPings.length;){var d=TK(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.Z];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&UK(a,e,d),a.ad.Z++;else break}};
nCa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.xH||d)&&RK(a,"first_quartile");(b>=c*a.u.vI||d)&&RK(a,"midpoint");(b>=c*a.u.xI||d)&&RK(a,"third_quartile")};
pCa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.xH||d)&&RK(a,"unmuted_first_quartile");(b>=c*a.u.vI||d)&&RK(a,"unmuted_midpoint");(b>=c*a.u.xI||d)&&RK(a,"unmuted_third_quartile")};
VK=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;RK(a,b)};
mCa=function(a,b,c){if(0<c&&0<b){var d=a.j.Eb(a.j.getPresentingPlayerType());g.V(d,16)||g.V(d,32)||(VK(a,"first_quartile",b,c*a.u.xH),VK(a,"midpoint",b,c*a.u.vI),VK(a,"third_quartile",b,c*a.u.xI))}a.lastUpdatedTimeSecs=b};
WK=function(a,b){for(var c=TK(a,b),d=g.t(a.ad.ea[b]||[]),e=d.next();!e.done;e=d.next())(e=e.value.baseUrl)&&UK(a,e,c);a.ad.D[b]=!0};
RK=function(a,b){a.ad.D.hasOwnProperty(b)||WK(a,b)};
XK=function(a,b){return a.ad.D.hasOwnProperty(b)};
UK=function(a,b,c){for(var d=a.Al,e=d.send,f={},h=IK(a.j),l=g.t(Object.keys(h)),m=l.next();!m.done;m=l.next())m=m.value,f[m]=h[m].toString();if(h=a.j.getVideoData(2))f.AD_CPN=h.clientPlaybackNonce;a=Object.assign(f,a.macros);e.call(d,b,a,c)};
TK=function(a,b){var c=a.B;a=a.ad;if(a.jB())if(b=qCa(b),null==b)c={};else{var d;(d=a.Ba()())||(d=(d=c.G)&&d.Qc?(d=d.Qc())&&2==d.getPlayerType()?YK(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.G.isFullscreen()},c=Rn(b,a.I,c)):c={}}else c={};return c?Object.assign({},c):{}};
PK=function(a){return!a.j.V().N("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
OK=function(a){return PK(a)&&!XK(a,"impression")};
ZK=function(a){return PK(a)&&XK(a,"seek")};
$K=function(a,b){PK(a)?WK(a,b):RK(a,b)};
g.aL=function(a,b){this.state=a;this.ys=b};
bL=function(a,b){return g.V(a.state,b)&&!g.V(a.ys,b)?1:!g.V(a.state,b)&&g.V(a.ys,b)?-1:0};
g.cL=function(a,b){return 0<bL(a,b)};
dL=function(a,b,c,d,e,f){f=void 0===f?0:f;g.FB.call(this);this.G=a;this.j=d;this.u=e;this.u.j[b.I]=this;this.u.subscribe("adactiveviewmeasurable",this.QU,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.RU,this);this.u.subscribe("adoverlaymeasurableimpression",this.SU,this);this.u.subscribe("adoverlayunviewableimpression",this.TU,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.UU,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.VU,
this);this.u.subscribe("adviewableimpression",this.WU,this);this.ad=b;this.ya=[];this.macros=c;this.T=!1;this.Aa=!TBa(new oK(this.G.V()),f);this.C=!1};
sCa=function(a,b){g.wb(a.ya,b);rCa(a,b,1)};
tCa=function(a,b){if(a.T){var c=a.j,d=a.getDuration();!OK(c)&&0<d&&(QK(c,b),PK(c)?mCa(c,b,d):nCa(c,b,d,!1));a.C||(c=a.j,a=a.getDuration(),!OK(c)&&0<a&&(oCa(c,b),pCa(c,b,a,!1)))}};
rCa=function(a,b,c){0!=b.length&&(b=g.Lg(b,function(d){return new EB(d,c,d.id)}),a.ma("onAdUxUpdate",b))};
eL=function(a){var b={};b.abandon=a.abandonCommands&&zK(a.abandonCommands.commands)||[];iK.call(this,a,b)};
fL=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;nK.call(this,"ad-action-interstitial",a,b,c,d);this.j=d;this.uN=e;this.IG=f};
gL=function(a,b,c,d,e,f){dL.call(this,a,b,c,d,e,1);this.D=b;this.B=b.j.durationMilliseconds||0;this.Cc=null;this.I=f};
hL=function(a){iK.call(this,a);this.u=zv(this.j.playerVars||"")};
iL=function(){iK.apply(this,arguments)};
uCa=function(a,b,c,d){this.C=a;this.j=b;this.B=c;this.u=d};
jL=function(a,b,c,d,e){dL.call(this,a,b,c,d,e);var f=this;this.I=b;this.B=new g.Zn(function(){f.Yn("load_timeout")},1E4);
g.H(this,this.B);this.D=new eA(this);g.H(this,this.D)};
kL=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.t(b);for(c=b.next();!c.done;c=b.next())if(!fB(a.Da,c.value))return!1;return!0};
vCa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
lL=function(a){return!!(a.C1&&a.slot&&a.layout)};
mL=function(a,b,c){nK.call(this,"ad-message",a,void 0,b,c)};
nL=function(a,b,c,d,e,f,h,l){dL.call(this,a,b,c,d,e);var m=this;this.B=b;this.Z=b.j.durationMs||0;this.J=l;this.ea=!1;this.I=this.D=0;this.oa=function(){var n=m.G.getProgressState().current;n<m.D?m.Xn():n>m.I&&m.Sj()}};
yCa=function(a,b){if(a.J&&a.ea){a.ea=!1;var c=a.B.j;if(lL(c)){var d=c.slot;c=c.layout;b=wCa(b);a=g.t(a.J.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,h=c,l=b;oL(e.j(),f,h,l);xCa(e.j(),f)}}else g.sA(Error("adMessageRenderer is not augmented on termination"))}};
wCa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return g.sA(Error("AdNotify abandoned")),"abandoned";default:return g.sA(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
g.pL=function(a,b,c){void 0===c?delete a[b.name]:a[b.name]=c};
g.qL=function(a,b){for(var c={},d=g.t(Object.keys(b)),e=d.next();!e.done;c={kH:c.kH},e=d.next())e=e.value,c.kH=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.kH}}(c));
return a};
rL=function(a,b,c,d){this.j=a;this.C=b;this.u=IK(c);this.B=d};
zCa=function(a){for(var b={},c=g.t(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
ACa=function(a,b,c,d){new rL(a,b,c,d)};
sL=function(a,b,c,d,e,f,h,l,m){dL.call(this,a,b,c,d,e,1);var n=this;this.hF=!0;this.J=m;this.B=b;this.D=f;this.ea=new eA(this);g.H(this,this.ea);this.I=new g.Zn(function(){n.Yn("load_timeout")},1E4);
g.H(this,this.I);this.Z=h};
BCa=function(a){if(a.Z&&(a.G.V().experiments.eb("enable_topsoil_wta_for_halftime")||a.G.V().experiments.eb("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.rA(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.rA(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}};
vL=function(a,b){if(null!==a.J){var c=CCa(a);a=g.t(a.J.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.j||"aderror"!==f||(DCa(d,e,[],!1),ECa(d.B(),d.u),FCa(d.B(),d.u),GCa(d.B(),d.u),h=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}oL(d.B(),d.u,d.j,e);if(h){e=d.B();h=d.u;tL(e.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.t(e.Id);for(f=e.next();!f.done;f=e.next())f.value.Ij(h);xCa(d.B(),
d.u)}d.Fa.get().G.V().N("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&uL(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}};
wL=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""};
CCa=function(a){if(a=a.B.j.elementId)return a;g.rA(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
HCa=function(a){function b(h,l){h=a.G5;var m=Object.assign({},{});m.FINAL=HK(ud("1"));m.SLOT_POS=HK(ud("0"));return KK(h,JK(m),l)}
function c(h){return null==h?{create:function(){return null}}:{create:function(l,m,n){var p=b(l,m);
m=a.YN(l,p);l=h(l,p,m,n);g.H(l,m);return l}}}
var d=c(function(h,l,m){return new gL(a.G,h,l,m,a.uA,a.ib)}),e=c(function(h,l,m){return new nL(a.G,h,l,m,a.uA,a.ib,a.wm,a.Wp)}),f=c(function(h,l,m){return new jL(a.G,h,l,m,a.uA,a.ib)});
this.e_=new uCa({create:function(h,l){var m=KK(b(h,l),JK(gCa(h)));l=a.YN(h,m);h=new sL(a.G,h,m,l,a.uA,a.ib,a.daiEnabled,function(){return new ACa(a.ib,m,a.G,a.Al)},a.Xp,a.Ii);
g.H(h,l);return h}},d,e,f)};
xL=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b};
ICa=function(a,b){var c=a.startSecs+a.durationSecs;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{Q_:new Jo(b,c),B1:new qB(b,c-b,a.context,a.identifier,a.event,a.j)}};
yL=function(){this.j=[]};
zL=function(a,b,c){var d=g.Ab(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
JCa=function(){this.j=new yL};
AL=function(a){this.j=a};
KCa=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.t(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
LCa=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()};
MCa=function(a,b,c){a.j&&BL({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
NCa=function(a,b){a.j&&BL({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.s_}})};
OCa=function(a,b){BL({daiStateTrigger:{errorType:a,contentCpn:b}})};
BL=function(a){g.ax("adsClientStateChange",a)};
CL=function(a){this.G=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.Mf=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
QCa=function(a,b,c,d,e,f){f();var h=a.G.getVideoData(1),l=a.G.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.J);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.Mf=!0,(a.G.N("send_csi_info_for_ad_to_video_killswitch")||wC("_start",a.actionType))&&
PCa(a)))};
PCa=function(a){if(a.Mf)if(a.G.N("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.B&&"video_to_ad"===a.actionType)fC("video_to_ad");else if(a.G.N("web_csi_via_jspb")){var b=new Ku;g.I(b,21,RCa(a.B));g.I(b,7,4);var c=new Iu;g.I(c,8,2);J(b,Iu,22,c);g.I(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&g.I(b,76,a.contentCpn),a.videoId&&g.I(b,78,a.videoId)):(a.adCpn&&g.I(b,76,a.adCpn),a.adVideoId&&g.I(b,78,a.adVideoId));a.adFormat&&g.I(b,12,a.adFormat);a.contentCpn&&
g.I(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&g.I(b,28,a.adCpn);a.adVideoId&&g.I(b,20,a.adVideoId);vC(b,a.actionType)}else b={adBreakType:SCa(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType=
a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),iC(b,a.actionType)};
SCa=function(a){switch(a){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"}};
RCa=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return 1;case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return 2;case "AD_PLACEMENT_KIND_END":return 3;default:return 0}};
g.UCa=function(a){return(a=TCa[a.toString()])?a:"LICENSE"};
DL=function(){g.E.call(this);this.LK=!1;this.B=null;this.T=this.J=!1;this.D=new g.rd;g.H(this,this.D)};
EL=function(a){a=a.SA();return 1>a.length?NaN:a.end(a.length-1)};
VCa=function(a){!a.u&&tua()&&(a.C?a.C.then(function(){return VCa(a)}):a.qg()||(a.u=a.Fr()))};
WCa=function(a){a.u&&(a.u.dispose(),a.u=void 0)};
XCa=function(a,b,c){a.fp()||a.getCurrentTime()>b||10<c||(a.play(),g.Kv(function(){XCa(a,a.getCurrentTime(),c+1)},500))};
YCa=function(a,b){a.B&&a.B.equals(b)||(a.B&&a.B.dispose(),a.B=b)};
FL=function(a){return sua(a.Ch(),a.getCurrentTime())};
ZCa=function(a,b){if(0===a.Tj()||0<a.Df())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.SA(),a.length||!c)?FF(a,b):c};
GL=function(a){a.qg()&&(jw&&0<a.getCurrentTime()&&a.seekTo(0),a.tG(),a.load(),YCa(a,null));delete a.C};
$Ca=function(a){var b=a.Ch();return 0<HF(b)&&a.getDuration()?b.end(b.length-1):0};
HL=function(a){switch(a.Df()){case 2:return"progressive.net.retryexhausted";case 3:return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
g.IL=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
JL=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.IL(b,c)};
KL=function(a,b){return JL(a,a.state|b)};
LL=function(a,b){return JL(a,a.state&~b)};
ML=function(a,b,c){return JL(a,(a.state|b)&~c)};
g.V=function(a,b){return!!(a.state&b)};
g.NL=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.OL=function(a){return g.V(a,4)};
g.PL=function(a){return g.V(a,8)&&!g.V(a,2)&&!g.V(a,1024)};
QL=function(a){return a.Wc()&&!g.V(a,16)&&!g.V(a,32)};
g.RL=function(a){return g.V(a,1)&&!g.V(a,2)};
SL=function(a){return g.V(a,128)?-1:g.V(a,2)?0:g.V(a,64)?-1:g.V(a,1)&&!g.V(a,32)?3:g.V(a,8)?1:g.V(a,4)?2:-1};
TL=function(a,b,c,d,e,f,h,l){g.FB.call(this);this.Th=a;this.G=b;this.u=d;this.J=this.u.u instanceof iK?this.u.u:null;this.j=null;this.ea=!1;this.D=c;this.Z=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ya=0;this.Aa=!1;this.rp=e;this.ix=f;this.Ct=h;this.oa=!1;this.daiEnabled=l};
aDa=function(a){if(jK(a.G)){var b=a.G.getVideoData(2);b=a.u.T[b.Kc]||null;if(!b)return a.er(),!0;(!a.j||a.j&&a.j.ad!==b)&&a.Kz(b)}else if(1===a.G.getPresentingPlayerType()&&a.j)return a.er(),!0;return!1};
bDa=function(a,b){a.D.Sw(a.u.j.j,b,a.JR(),a.KR(),a.isLiveStream())};
UL=function(a){var b=a.Th,c=a.u.j;if(c instanceof CB){if(b.T&&Sra(c)&&g.V(b.j.Eb(1),64)){var d=1E3*b.j.getCurrentTime(1)||0;d!=c.start&&c.contains(d)&&c.deactivate()}b.B.has(c)?g.rA(Error(c.toString()+" has already been seen")):(b.Dt.add(c),b.B.set(c,a),DB(c)||b.j.Ge([c],1))}else g.rA(Error("Should use AdCueRange instead of CueRange"));a.daiEnabled&&!a.u.I&&(cDa(a,a.LR()),a.u.I=!0)};
cDa=function(a,b){for(var c=VL(a),d=a.u.j.start,e=[],f=g.t(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=dDa(h);e.push({externalVideoId:h.Yf(),originalMediaDurationMs:(1E3*h.u).toString(),trimmedMediaDurationMs:(parseInt(h.j.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.B.C=a.u.j.start;h.B.B=c;if(!eDa(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+dDa(p)},0);
MCa(a.rp,a.u.j.tx(),b);NCa(a.rp,{cueIdentifier:a.u.C&&a.u.C.identifier,s_:e})};
dDa=function(a){var b=1E3*a.u;return 0<parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10):b};
VL=function(a){var b=a.u.j.end;a=zL(a.ix,a.u.j.start,b);return Math.min(b,null===a?Infinity:a)};
eDa=function(a,b,c,d){var e=a.Ct.create(b,JK(fCa(a.u)),a.u.j.j);c=e.wR(c,d);g.ab(e);if(!c)return!1;a.u.T[c]=b;return!0};
XL=function(a,b){b=void 0===b?!1:b;a.ea=!0;g.ab(a.j);a.D.My();var c=a.u.J;if(null!==c){var d=a.rp,e=a.u.C&&a.u.C.identifier,f=a.u.j.start,h=VL(a);d.j&&BL({driftRecoveryInfo:{contentCpn:d.u,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(h-f).toString(),driftFromHeadMs:Math.round(1E3*d.B.Cr()).toString()}});a.u.J=null}b||a.daiEnabled?WL(a.Th,!0):a.Z&&a.wP()&&a.oB()?WL(a.Th,!1,fDa(a)):WL(a.Th,!1);bDa(a,!0)};
fDa=function(a){if(a.Aa)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Ra()/1E3)-a.ya;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
gDa=function(a,b,c){this.j=a;this.u=b;this.B=c};
hDa=function(a,b){var c,d;a=(null==(c=a.watchEndpointSupportedAuthorizationTokenConfig)?void 0:null==(d=c.videoAuthorizationToken)?void 0:d.credentialTransferTokens)||[];for(c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
g.YL=function(a,b,c){g.ov("safe_logging_library_killswitch")?HA(void 0,a,b,c):g.vv(HA)(void 0,a,b,c)};
g.ZL=function(a,b,c,d){g.ov("safe_logging_library_killswitch")?dra(void 0,a,b,d):g.vv(era)(void 0,a,b,c,d,void 0)};
g.$L=function(a,b){g.ov("safe_logging_library_killswitch")?g.Fb(b,function(c){fra(a,c)}):g.vv(function(){g.Fb(b,function(c){fra(a,c)})})()};
g.aM=function(a,b){g.ov("safe_logging_library_killswitch")?g.Fb(b,function(c){JA(void 0,a,c)}):g.vv(function(){g.Fb(b,function(c){JA(void 0,a,c)})})()};
g.bM=function(a,b,c){g.ov("safe_logging_library_killswitch")?KA(void 0,a,b,c):g.vv(gra)(void 0,a,b,c,void 0)};
cM=function(){this.I=[];this.J=[];this.j=[];this.D=[];this.T=[];this.u=new Set;this.Z=new Map};
dM=function(){cM.instance||(cM.instance=new cM);return cM.instance};
lDa=function(a,b,c,d){d=void 0===d?{}:d;Object.values(iDa).includes(b)||(g.sA(new g.Sw("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||a.j.push({rootVe:b,key:d.key||""});a.I=[];a.J=[];d.pR?jDa(a,b,c,d):kDa(a,b,c,d)};
mDa=function(a,b,c){c=void 0===c?0:c;b.then(function(d){a.u.has(c)&&a.C&&a.C();var e=g.DA(c),f=g.CA(c);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&HA(a.client,e,f,g.zA(d.response.trackingParams));var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&HA(a.client,e,f,g.zA(d.playerResponse.trackingParams))}})};
fM=function(a,b){eM(a,g.zA(b))};
eM=function(a,b,c,d){d=void 0===d?0:d;if(a.u.has(d))a.I.push([b,c]);else{var e=g.DA(d);c=c||g.CA(d);e&&c&&HA(a.client,e,c,b)}};
nDa=function(a,b,c,d){d=void 0===d?0:d;var e=g.DA(d);d=b||g.CA(d);e&&d&&(a=a.client,b={cttAuthInfo:EA(e)||void 0,sequenceGroup:e},g.ov("il_via_jspb")?(c=new Gu,c.j(e),d=d.getAsJspb(),J(c,gt,2,d),"UNDEFINED_CSN"===e?IA("visualElementStateChanged",b,void 0,c):Dqa(c,b,a)):(c={csn:e,ve:d.getAsJson(),clientData:c},"UNDEFINED_CSN"===e?IA("visualElementStateChanged",b,c):a?Uz("visualElementStateChanged",c,a,b):g.ax("visualElementStateChanged",c,b)))};
jDa=function(a,b,c,d){d=void 0===d?{}:d;a.u.add(d.layer||0);a.C=function(){kDa(a,b,c,d);var h=g.CA(d.layer);if(h){for(var l=g.t(a.I),m=l.next();!m.done;m=l.next())m=m.value,eM(a,m[0],m[1]||h,d.layer);h=g.t(a.J);for(l=h.next();!l.done;l=h.next())l=l.value,nDa(a,l[0],l[1])}};
c||g.DA(d.layer)||a.C();if(d.pR)for(var e=g.t(d.pR),f=e.next();!f.done;f=e.next())mDa(a,f.value,d.layer);else g.rA(Error("Delayed screen needs a data promise."))};
kDa=function(a,b,c,d){d=void 0===d?{}:d;var e=void 0;d.layer||(d.layer=0);e=void 0!==d.z5?d.z5:d.layer;var f=g.DA(e);e=g.CA(e);var h=c||e,l;h&&(void 0!==d.parentCsn?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&"UNDEFINED_CSN"!==f&&(l={clientScreenNonce:f,visualElement:h}));var m;h=g.O("EVENT_ID");"UNDEFINED_CSN"===f&&h&&(m={servletData:{serializedServletEventId:h}});try{var n=cra(a.client,b,l,d.lR,d.cttAuthInfo,m,d.p$a)}catch(r){Pqa(r,{oC:b,rootVe:e,parentVisualElement:c,v9a:f,M$a:l,lR:d.lR});
g.rA(r);return}Zqa(n,b,d.layer,d.cttAuthInfo);f&&"UNDEFINED_CSN"!==f&&e&&!Wqa(f)&&JA(a.client,f,e,!0);a.j[a.j.length-1]&&!a.j[a.j.length-1].csn&&(a.j[a.j.length-1].csn=n||"");iC({clientScreenNonce:n});jra();var p=g.CA(d.layer);f&&"UNDEFINED_CSN"!==f&&p&&(g.ov("web_mark_root_visible")||g.ov("music_web_mark_root_visible"))&&g.ZL(n,p);a.u.delete(d.layer||0);a.C=void 0;var q;null==(q=a.Z.get(d.layer))||q.forEach(function(r,w){r?eM(a,w,r,d.layer):p&&eM(a,w,p,d.layer)});
oDa(a)};
oDa=function(a){for(var b=0;b<a.D.length;b++){var c=a.D[b];try{c()}catch(d){g.rA(d)}}for(b=a.D.length=0;b<a.T.length;b++){c=a.T[b];try{c()}catch(d){g.rA(d)}}};
gM=function(){this.j={};if(this.u=hna()){var a=g.$v("CONSISTENCY");a&&pDa(this,{encryptedTokenJarContents:a})}};
pDa=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
a.u&&g.Zv("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
iM=function(){var a=g.O("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.O("INNERTUBE_CLIENT_NAME")&&(this.localStorage=hM(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
hM=function(a){return void 0===a.localStorage?new Vw("yt-client-location"):a.localStorage};
g.jM=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.O("INNERTUBE_CONTEXT");if(!d)return g.rA(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Zc(d);g.ov("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.O("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||
1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.Fw.getInstance();var h="USER_INTERFACE_THEME_LIGHT";g.Gw(0,165)?h="USER_INTERFACE_THEME_DARK":g.Gw(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.ov("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="USER_INTERFACE_THEME_DARK");f=f?h:lqa()||h;e.userInterfaceTheme=
f;if(!b){if(f=Ana())e.connectionType=f;g.ov("web_log_effective_connection_type")&&(f=Cna())&&(d.client.effectiveConnectionType=f)}var l;if(g.ov("web_log_memory_total_kbytes")&&(null==(l=g.D.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.D.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}m=g.Bv(g.D.location.href);!g.ov("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo=
{graftUrl:g.D.location.href},g.ov("kevlar_woffle")&&xna.instance&&(m=xna.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.u?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=Kw(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.ov("web_lr_app_quality_killswitch")&&(m=g.O("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.O("LIVING_ROOM_CERTIFICATION_SCOPE"))&&
(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.ov("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(C){}n=void 0}n&&(e.timeZone=n)}(n=qv())?e.experimentsToken=n:delete e.experimentsToken;n=rv();gM.instance||(gM.instance=new gM);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:Oc(gM.instance.j)});!g.ov("web_prequest_context_killswitch")&&
(n=g.O("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.Fw.getInstance();n=g.Gw(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.ov("warm_op_csn_cleanup")?c&&(b=g.DA())&&(d.clientScreenNonce=b):!b&&(b=g.DA())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Fa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;iM.getInstance().setLocationOnInnerTubeContext(d);try{var p=
Hv(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.t(Object.entries(p)),w=r.next();!w.done;w=r.next()){var x=g.t(w.value),z=x.next().value,B=x.next().value;p=z;q=B;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}}catch(C){g.rA(C)}return d};
kM=function(){this.PV=!0};
lM=function(){kM.apply(this,arguments);this.wv={}};
nM=function(){mM||(mM=new lM);return mM};
oM=function(a,b){b?a.wv.Authorization="Bearer "+b:delete a.wv.Authorization};
qDa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
rDa=function(){var a=null;vna().then(function(b){return a=b},function(b){return a=qDa(b)});
return a};
sDa=function(){var a=zf(1E3,"NO_BID");return qf(vca([vna(),a]).Oj(qDa),function(){a.cancel()})};
tDa=function(a){return a.Wd?g.Gw(g.Fw.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
pM=function(a){this.player=a;this.u=this.j=1};
rM=function(a,b,c,d){var e=void 0===c?{}:c;c=e.fA;e=e.qe;d=void 0===d?"":d;var f=a.player.getVideoData(1),h=a.player.V().un,l={AD_BLOCK:a.j++,AD_BREAK_LENGTH:c?c.durationSecs:0,AUTONAV_STATE:tDa(a.player.V()),CA_TYPE:"image",CPN:f.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Cr(),LACT:fz(),LIVE_INDEX:c?a.u++:1,LIVE_TARGETING_CONTEXT:c&&c.context?c.context:"",MIDROLL_POS:e?Math.round(e.start/1E3):0,MIDROLL_POS_MS:e?Math.round(e.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.fb().uj().height,
P_W:a.player.fb().uj().width,YT_REMOTE:h?h.join(","):""},m=Sma(Rma);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};Gv(b)&&(d.sts="19345",(c=a.player.V().forcedExperiments)&&(d.forced_experiments=c));var n=Dv(g.Sn(b,l),d);a.player.getVideoData();return 2!==n.split("?").length?of(Error("Invalid AdBreakInfo URL")):g.aI(a.player.V(),null==f?void 0:f.oauthToken).then(function(p){if(p&&Fv()){var q=nM();oM(q,p)}p=a.player.mm(q);q=uDa(a,n,l,f.isMdxPlayback);return g.qM(p,q,"/youtubei/v1/player/ad_break").then(function(r){return r})})};
xDa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=Ev(b),f=vDa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=vDa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=yv(Hv(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(h.bid=l.get("bid"));h.params=[];wDa.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},h.params.push(m))});
a.adSignalsInfo=h}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.deviceParams.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.deviceParams.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.deviceParams.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.deviceParams.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.deviceParams.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user=
{});a.user.lockedSafetyMode=!1};
ADa=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in yDa&&(f.clientName=yDa[d[0]]),d[1]in zDa&&(f.platform=zDa[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
uDa=function(a,b,c,d){var e=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,f=BDa.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=CDa.test(b),l=DDa.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=EDa.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=FDa.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=FH(a.player.V().Ba),q=g.jM(a.player.getVideoData(1).ya,!0),r="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";xDa(q,b,r.toString(),a.player.V());
var w={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19345,autonavState:tDa(a.player.V())};d&&(d={},ADa(d,c.YT_REMOTE)&&(w.mdxContext=d));if(d=GDa.includes(p)?void 0:g.$v("PREF")){for(var x=d.split(RegExp("[:&]")),z=0,B=x.length;z<B;z++){var C=x[z].split("=");if(("SML"===C[0].toUpperCase()||"GSML"===C[0].toUpperCase())&&1<C.length&&"TRUE"===C[1].toUpperCase()){q.user.lockedSafetyMode=!0;
break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in HDa)for(d=d.split(RegExp("[:&]")),z=HDa.FLAG_AUTO_CAPTIONS_DEFAULT_ON,x="f"+(1+Math.floor(z/31)).toString(),z=1<<Math.floor(z%31),B=0,C=d.length;B<C;B++){var G=d[B].split("=");if(G[0]===x&&parseInt("0x"+G[1],16)&z){d=!0;break a}}d=!1}w.autoCaptionsDefaultOn=d}b=IDa.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:w};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,
breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,isProxyAdTagRequest:h,context:q,adSignalsInfoString:yv(Hv(r.toString())),overridePlaybackContext:b};l&&(f.videoId=l);c.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());e&&(f.driftFromHeadMs=e.toString());f.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1));return f};
sM=function(a,b,c,d,e,f){g.FB.call(this);this.I=a;this.u=b;this.D=c;this.C=d;this.j=e;this.B=f};
JDa=function(a,b){var c={isEmpty:!0,WS:!1,Hn:[]};if(!b)return c;b&&b.trackingParams&&fM(dM(),b.trackingParams);if(b&&b.adThrottled)return c.WS=!0,c;b=b.playerAds;if(!b||!b.length)return c;b=b.map(function(e){return e.adPlacementRenderer}).filter(function(e){return e&&null!=e.renderer});
if(g.ob(b))return c;if(0<a.j.j.end){var d=a.j.j.end.toString();b.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==e.kind&&"-1"==e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!=d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}c.Hn=b;
c.isEmpty=!1;return c};
tM=function(){iK.apply(this,arguments)};
uM=function(a,b,c,d,e,f,h,l){TL.call(this,a,b,c,d,e,f,h,l);this.B=d.u;this.C=-1;this.I=null;this.T=KDa(this.GE())};
LDa=function(a){a.C++;var b=a.GE();b?(0<a.C&&a.D.BN(),a.Kz(b)):XL(a)};
KDa=function(a){return a?MDa.some(function(b){return a instanceof b}):!1};
NDa=function(a){this.j=new gDa(function(b){b=new TL(a.Th,a.G,a.kR(),b,a.rp,a.ix,a.Ct,a.daiEnabled);UL(b);return b},function(b){return new sM(a.KI,a.Th,a.G,a.Bt,b,a.rp)},function(b){b=new uM(a.Th,a.G,a.kR(),b,a.rp,a.ix,a.Ct,a.daiEnabled);
UL(b);return b})};
ODa=function(a,b){xK.call(this);a.adStart&&g.P(a.adStart,vM)&&(g.ax("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),yK(this,new iL(g.P(a.adStart,vM))));if(a.linearAds){var c=[];a=g.t(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(g.P(d,wM)){var e=b(g.P(d,wM));yK(this,e);c.push(e.u);g.P(d,wM).isCritical&&(this.u=1)}else g.P(d,xM)?(d=new eL(g.P(d,xM)),yK(this,d)):g.P(d,yM)&&(d=new hL(g.P(d,yM)),yK(this,d),this.u=1);this.j.filter(function(f){return f instanceof
wK}).forEach(function(f,h){f instanceof wK&&(h=new sK(h,c),f.B=h)})}}};
QDa=function(a,b){xK.call(this);yK(this,PDa(this,a.adVideoStart));var c=a.linearAd;b=c&&g.P(c,wM)?b(g.P(c,wM)):null;yK(this,b);(a=a.adVideoEnd)?g.P(a,xM)?(this.u=1,a=new eL(g.P(a,xM))):a=null:a=null;yK(this,a)};
PDa=function(a,b){return null==b?null:g.P(b,xM)?(a.u=1,new eL(g.P(b,xM))):g.P(b,vM)?(g.ax("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new iL(g.P(b,vM))):null};
RDa=function(a,b){this.B=new WBa;this.j=a;this.u=b};
SDa=function(a){this.j=a};
TDa=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.j.create(e,f):null;return new aCa(b,c,h,d)}catch(l){g.rA(l)}};
UDa=function(a){var b=new SDa(a.f_);return{IR:function(){return b}}};
zM=function(a){g.E.call(this);var b=this;this.u=a;this.j=null;g.cb(this,function(){return b.j=null});
var c=dA(a);if(c){var d=function(){b.j&&b.j(!!bA())};
this.u.addEventListener(c,d);g.cb(this,function(){b.u.removeEventListener(c,d)})}};
AM=function(a){g.E.call(this);this.j=a};
VDa=function(a){var b=window.document;return g.UH(a.V())?new zM(b):new AM(a)};
WDa=function(a){g.E.call(this);this.AY=new LCa(a.G,a.contentCpn,a.daiEnabled)};
XDa=function(a){BM=a&&a.data};
YDa=function(a){CM=a&&a.data};
ZDa=function(a){DM=a&&a.data};
$Da=function(){EM=DM=CM=BM=null};
HM=function(a){g.E.call(this);var b=this;this.ud=a;this.jf=new Map;this.j=new Map;FM(this,"commandExecutorCommand",function(c,d,e){b.pg(c.commands,d,e)});
GM(this,"commandExecutorCommand",function(c,d,e){aEa(b,c.commands,d,e)});
FM(this,"clickTrackingParams",function(){});
GM(this,"clickTrackingParams",function(){})};
bEa=function(a,b){FM(a,b.Tn(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
cEa=function(a,b){GM(a,b.Tn(),function(c,d,e){b.Hp(c,d,e)})};
FM=function(a,b,c){a.isDisposed();a.jf.get(b)&&g.rA(Error("Extension name "+b+" already registered"));a.jf.set(b,c)};
GM=function(a,b,c){a.isDisposed();a.j.get(b)&&g.rA(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
aEa=function(a,b,c,d){b=void 0===b?[]:b;a.isDisposed();var e=[],f=[],h=g.t(b);for(b=h.next();!b.done;b=h.next())b=b.value,g.P(b,dEa)||g.P(b,eEa)?e.push(b):f.push(b);e=g.t(e);for(b=e.next();!b.done;b=e.next())IM(a,b.value,c,d);f=g.t(f);for(b=f.next();!b.done;b=f.next())IM(a,b.value,c,d)};
fEa=function(a,b){a.ud.get().Oa("innertubeCommand",{openPopupAction:b})};
gEa=function(a,b){a.ud.get().Oa("innertubeCommand",{confirmDialogEndpoint:b})};
IM=function(a,b,c,d){a.isDisposed();b.loggingUrls&&hEa(a,"loggingUrls",b.loggingUrls,c,d);b=g.t(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.t(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?fEa(a,f):"confirmDialogEndpoint"===e?gEa(a,f):iEa.hasOwnProperty(e)||hEa(a,e,f,c,d)}};
jEa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.jf.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.rA(f)}else b=new g.Sw("Unhandled field",b),g.sA(b)};
hEa=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.rA(f)}else b=new g.Sw("Unhandled field",b),g.sA(b)};
lEa=function(a,b,c,d){for(var e=!1,f=g.t(b.Ek.entries()),h=f.next();!h.done;h=f.next())h=g.t(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.slotType&&"core"===h.bb&&(e=!0);e?(d=kEa(b,d))?c.CK(d):kB("No triggering layout ID available when attempting to mute."):g.hf(function(){a.er()})};
kEa=function(a,b){if(b)return b;a=g.t(a.Ek.entries());for(b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.slotType&&"core"===b.bb)return c.layoutId}};
mEa=function(a){var b=new MK(a.Vq),c=new NK(b);return{x0:function(){return b},
oK:function(){return c}}};
JM=function(a){CL.call(this,a)};
qCa=function(a){switch(a){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 "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}};
nEa=function(a){this.G=a;var b=Pk(On),c=a.bf();b.B!==c&&((b.B=c)||Zja(b));a.V().N("active_view_stop_starting_measurement_on_loaded")&&uk(Uk().featureSet,"ssmol",1)};
kCa=function(a){Qn(Pk(On),a)};
oEa=function(a){g.E.call(this);this.j=a;this.u=new nEa(a.G)};
pEa=function(a){return function(){return new JM(a.j.G)}};
qEa=function(a){return function(b,c){return new lCa(b,a.u,c,a.j.G,a.j.Al,a.j.daiEnabled)}};
KM=function(a,b,c,d,e){g.FB.call(this);var f=this;this.j=b;this.Ba=null;this.Xa=c;this.kb=e.Ii;this.Wa=e.Hs;this.u=null;this.B=new Map;c=this.j.V().experiments;var h=mEa({Vq:b.getVideoData(1)}),l=new oEa({Al:h.oK(),G:b,daiEnabled:!1});g.H(this,l);this.Dt=new Set;this.cF=-1;this.Z=[];this.ea=new Map;this.I=new Map;this.J=new Set;this.C=new eA(this);g.H(this,this.C);this.D=new eA(this);g.H(this,this.D);this.oa=this.Va=this.ya=!1;this.T=g.UH(b.V());this.tb=d;b=new WDa({contentCpn:this.j.getVideoData(1).clientPlaybackNonce,
u9a:this,daiEnabled:!1,G:this.j});g.H(this,b);this.gb=b.AY;this.Ma=(new JCa).j;var m=hba(JK(IK(this.j)));e=new HCa({ib:this,uA:rK(),Al:h.oK(),G:this.j,G5:m,YN:qEa(l),daiEnabled:!1,Xp:e.Xp,Ii:this.kb,wm:e.wm,Wp:e.Wp});this.Aa=(new NDa({Bt:this.Xa,Ct:e.e_,KI:a,Th:this,uA:rK(),kR:pEa(l),rp:this.gb,ix:this.Ma,G:this.j,sab:m,YN:function(n){return qEa(l)(n,m)},
daiEnabled:!1})).HR();this.Ka=UDa({f_:new RDa(c,function(n){return f.I.has(n)?f.I.get(n):null})}).IR();
this.Pa=VDa(this.j);g.H(this,this.Pa);this.Fb=YH(this.j.V())?this.j.V().experiments.eb("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.j.V().experiments.eb("align_ad_to_video_player_lifecycle_for_bulleit")};
wEa=function(a,b){if(a.j.getVideoData(1).Nt||g.O("SERVED_VIA_SPF_HISTORY"))LM(a);else{if(kK(a.j)){var c=rEa(a.j);c.addEventListener("updateKevlarOrC3Companion",XDa);c.addEventListener("updateEngagementPanelAction",YDa);c.addEventListener("changeEngagementPanelVisibility",ZDa);window.addEventListener("yt-navigate-start",$Da)}a.C.S(a.j,"applicationplayerstatechange",a.W2);a.C.S(a.j,g.AB("ad"),a.QL,a);a.C.S(a.j,g.BB("ad"),a.o3,a);a.C.S(a.j,"aduxclicked",a.K2);a.C.S(a.j,"videodatachange",a.p5);b=sEa(b);
b=tEa(a,b);b=uEa(a,b);0<b.length&&vEa(a,b);g.hf(a.b7,a)}};
sEa=function(a){return a.filter(function(b){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind||null)?(kB("Tries to extract CuePoint triggered AdPlacementRenderer."),!1):!0})};
tEa=function(a,b){a.ea=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.ea.set(c.elementId,c),!1):!0})};
uEa=function(a,b){a.I=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.I.set(c.hostElementId,c),!1):!0})};
xEa=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.rA(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof sM?!1:c instanceof TL?!c.Au():!0})};
LM=function(a){var b=yEa(a);if(0<b.length){var c=g.wG(a.j.V().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.T&&g.IH(a.j.V())?(c=new g.Zn(function(){zEa(a,b)},c),g.H(a,c),c.start()):g.hf(function(){zEa(a,b)})}};
AEa=function(a,b){if(!b)return{};(a=!!a.u&&a.u||null)?(a=a.j,b=a.ad.jB()?TK(a.j,b):{}):b={};return b};
yEa=function(a){for(var b=BEa(a),c=g.t(b),d=c.next();!d.done;d=c.next())a.Dt.delete(d.value);return b};
BEa=function(a){var b=[];a=g.t(a.Dt);for(var c=a.next();!c.done;c=a.next())c=c.value,DB(c)&&b.push(c);return b};
CEa=function(a,b){var c=null;c=void 0===c?null:c;var d=a.Ka,e=d.create;var f=1E3*a.j.getDuration(1);f=new Era(f,1E3*a.j.getCurrentTime(1)||0,!1,a.j.V().experiments.eb("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.Z.length,c);a.Z=a.Z.concat(b);return b};
zEa=function(a,b){if(!a.isDisposed()){b=g.t(b);for(var c=b.next();!c.done;c=b.next())a.QL(c.value)}};
vEa=function(a,b){b=CEa(a,b);0==b.length||b.map(function(c){return a.Aa.create(c)})};
DEa=function(a){a.ya||(a.D.S(a.j,"presentingplayerstatechange",a.BY),a.D.S(a.j,"internalAbandon",a.w2),a.D.S(a.j,"progresssync",a.s5),a.D.S(a.j,"onVolumeChange",a.t5),a.D.S(a.Pa,"fullscreentoggled",a.y3),a.ya=!0);g.ho(a.j.getRootNode(),"ad-showing");g.ho(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.eb("enable_html5_teal_ad_badge")&&kK(a.j)&&g.ho(a.j.getRootNode(),"ad-teal-design");a.j.cueVideoByPlayerVars({videoId:"workaround"},2)};
WL=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.Au()&&(jK(a.j)||!1);d=b&&d&&d.reset()||null;a.u&&EEa(a,a.u);a.u=null;a.cF=-1;e&&FEa(a,c);a.oa||a.Wa.Yt();b&&d&&(d.vP().B=!1,UL(d))};
FEa=function(a,b){g.gA(a.D);a.ya=!1;g.jo(a.j.getRootNode(),"ad-showing");a.Fb?(a.oa||a.Wa.Yt(),GEa(a),a.j.cueVideoByPlayerVars({},2)):(a.j.cueVideoByPlayerVars({},2),GEa(a));g.jo(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.eb("enable_html5_teal_ad_badge")&&g.jo(a.j.getRootNode(),"ad-teal-design");b&&b(a.j)};
GEa=function(a){if(a.Va)!a.T&&g.IH(a.j.V())&&a.j.kq();else if(a.j.kq(),!a.T){var b=a.j.Eb(1);g.OL(b)&&!g.V(b,2)&&a.j.playVideo()}};
EEa=function(a,b){a=a.B;for(var c=g.t(a),d=c.next();!d.done;d=c.next()){d=g.t(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.ab(b)};
MM=function(a){g.E.call(this);this.u=a};
NM=function(a){MM.call(this,!0);this.j=a};
HEa=function(a,b){g.E.call(this);var c=this;this.B=[];this.J=!1;this.u=0;this.D=this.I=this.C=!1;this.ea=null;var d=(0,g.Oa)(a,b);this.j=new g.Zn(function(){return d(c.ea)},300);
g.H(this,this.j);this.Z=this.T=Infinity};
IEa=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.B.includes(d.identifier))return!0}return!1};
OM=function(){var a="ytp-id-"+JEa.toString();JEa++;return a};
g.PM=function(a){g.E.call(this);this.zc={};this.mf={};this.element=this.createElement(a)};
QM=function(a,b,c,d){if("{{"===d.substr(0,2))a.mf[d]=[b,c];else return d};
KEa=function(a,b){var c=[];if(!b)return c;b=g.t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.F?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.Oe("BR"));c.push(g.Pe(f))}):c.push(g.Pe(d))}return c};
RM=function(a,b,c,d){if("child"===c){g.Re(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.F?[d]:d;c=KEa(a,e);c=g.t(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Al(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Ld(g.Od(a))),b.setAttribute(c,a))};
g.W=function(a){g.PM.call(this,a);this.sb=!0;this.ya=!1;this.listeners=[]};
g.SM=function(a,b){b?a.show():a.hide()};
g.TM=function(a){g.W.call(this,a);this.Wa=new g.FB;g.H(this,this.Wa)};
UM=function(a,b,c,d,e,f,h,l){l=void 0===l?null:l;g.TM.call(this,c);this.api=a;this.ib=b;this.macros={};this.componentType=d;this.J=null;this.tb=l;this.layoutId=e;this.j=f;this.jb=h;this.Va=null;this.ZM=new NM(this.element);g.H(this,this.ZM);this.kb=this.S(this.element,"click",this.onClick);this.Aa=[];this.oa=new HEa(this.onClick,this);g.H(this,this.oa);this.Fb=!1;this.Z=null};
VM=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.sA(Error("Got null or undefined adText object")),"";var c=g.qe(a.text);if(!a.isTemplated)return c;if(null==b)return g.sA(Error("Missing required parameters for a templated message")),c;a=g.t(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.t(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
LEa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].url)?"":g.qe(a.thumbnails[0].url)};
MEa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.ke(0,0):new g.ke(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
NEa=function(){return{F:"svg",X:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},W:[{F:"path",X:{d:"M22,20h-8v-1h7V5H3v3H2V4h20V20z M2,17.32V20h2.73C4.73,18.52,3.51,17.32,2,17.32z M2,13.75v1.79c2.51,0,4.55,2,4.55,4.46 h1.82C8.36,16.55,5.52,13.75,2,13.75z M2,10.18v1.79c4.52,0,8.18,3.6,8.18,8.03H12C12,14.57,7.52,10.18,2,10.18z",fill:"white"}}]}};
g.OEa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{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"}}]}};
WM=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{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.XM=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{F:"path",X:{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.YM=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{F:"path",X:{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"}}]}};
PEa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{F:"path",X:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{F:"path",X:{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"}}]}};
QEa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{F:"path",Tb:!0,X:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
REa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{F:"path",Tb:!0,X:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.ZM=function(){return{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{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"}}]}};
SEa=function(){return{F:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{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"}}]}};
TEa=function(){return{F:"svg",X:{viewBox:"0 0 24 24"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",X:{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"}}]}};
UEa=function(){return{F:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{F:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{F:"path",X:{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"}}]}};
VEa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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"}}]}};
g.$M=function(){return{F:"svg",X:{viewBox:"0 0 24 24"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",X:{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"}}]}};
aN=function(){return{F:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{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"}}]}};
WEa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{F:"path",Tb:!0,X:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
bN=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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.cN=function(){return{F:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{F:"path",X:{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"}}]}};
dN=function(){return{F:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{F:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{F:"path",X:{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"}}]}};
XEa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
YEa=function(){return{F:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",K:"ytp-svg-fill",X:{"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"}}]}};
ZEa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{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"}}]}};
eN=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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"}}]}};
$Ea=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.fN=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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.gN=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{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.hN=function(){return{F:"svg",X:{height:"100%",viewBox:"0 0 16 16",width:"100%"},W:[{F:"path",X:{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"}}]}};
aFa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
bFa=function(){return{F:"svg",X:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},W:[{F:"path",X:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M5,12v22h38V12H5z M15.21,27.29l-1.41,1.41L8.09,23l5.71-5.71l1.41,1.41L10.91,23  L15.21,27.29z M34.21,28.71l-1.41-1.41L37.09,23l-4.29-4.29l1.41-1.41L39.91,23L34.21,28.71z",fill:"white"}}]}};
iN=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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"}}]}};
jN=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return dN();case "CHECK_BOX":return{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",X:{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{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{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"}},{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.ZM();case "INFO_OUTLINE":return UEa();case "REMOVE_CIRCLE":return{F:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",X:{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 bN();case "LIKE":return g.$M();case "DISLIKE":return TEa();default:return g.sA(new g.Sw("Unexpected icon:",
a)),null}};
kN=function(a,b,c,d,e,f,h,l,m){f=void 0===f?[]:f;h=void 0===h?"button":h;l=void 0===l?!1:l;f={F:"button",Ga:["ytp-ad-button"].concat(f)};null!=m&&(f.X={tabindex:m});UM.call(this,a,b,f,h,c,d,e);this.u=this.B=this.C=null;this.D=l;this.hide()};
cFa=function(a){var b=null;null!=a.u&&(b=[a.u.serviceEndpoint,a.u.navigationEndpoint].filter(function(c){return null!=c}),a.u.command&&(b=b.concat(a.u.command)));
return b||[]};
lN=function(){g.E.call(this);var a=this;this.j=new Map;this.u=Apa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Ay(b[c])})};
dFa=function(){null==mN&&(mN=new lN);return mN};
nN=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=eFa(a))){b=Ne("SPAN",null,b);break a}b=g.Pe(a)}return b}var c=[];if(a.runs)for(var d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(fFa(e,b))}return 1==c.length?c[0]:Ne("SPAN",null,c)};
fFa=function(a,b){var c=null,d=a.text;b&&(d=eFa(d)||d);a.bold&&(c=Ne("B",null,c||d));a.italics&&(c=Ne("I",null,c||d));a.strikethrough&&(c=Ne("STRIKE",null,c||d));a.navigationEndpoint&&g.P(a.navigationEndpoint,g.zI)&&(b=g.P(a.navigationEndpoint,g.zI),c=Ne("A",null,c||d),g.Xd(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),dFa().register(c,a),g.ho(c,"ytp-ad-has-logging-urls"));
return c||Ne("SPAN",null,d)};
eFa=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(Ne("BR")),b.push(a[c]);return b}return null};
oN=function(a,b,c,d,e,f,h,l,m){h=void 0===h?!1:h;l=void 0===l?[]:l;m=void 0===m?"ad-hover-text-button":m;UM.call(this,a,b,{F:"span",Ga:["ytp-ad-hover-text-button"].concat(l)},m,c,d,e);this.button=this.B=null;this.I=h;this.D=f;this.hide()};
pN=function(a){return a&&a.thumbnails&&!g.ob(a.thumbnails||null)&&a.thumbnails[0].url?g.qe(a.thumbnails[0].url):""};
qN=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;UM.call(this,a,b,{F:"img",K:"ytp-ad-image"},"ad-image",c,d,e,void 0===f?null:f);this.u=h;this.hide()};
rN=function(a,b,c,d,e,f,h){f=void 0===f?[]:f;h=void 0===h?"confirm-dialog":h;UM.call(this,a,b,{F:"div",Ga:["ytp-ad-confirm-dialog-background"],W:[{F:"div",K:"ytp-ad-confirm-dialog-container",W:[{F:"div",Ga:["ytp-ad-confirm-dialog"].concat(f),X:{role:"dialog",tabindex:"-1"},W:[{F:"div",K:"ytp-ad-confirm-dialog-title",qa:"{{title}}"},{F:"div",K:"ytp-ad-confirm-dialog-messages"},{F:"div",K:"ytp-ad-confirm-dialog-confirm-container",W:[{F:"button",K:"ytp-ad-confirm-dialog-cancel-button",qa:"{{cancelLabel}}"},
{F:"button",K:"ytp-ad-confirm-dialog-confirm-button",qa:"{{confirmLabel}}"}]}]}]},{F:"button",Ga:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],W:[{F:"span",K:"ytp-ad-button-icon",W:[g.ZM()]}]}]},h,c,d,e);this.T=this.Ea("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Ea("ytp-ad-confirm-dialog-cancel-button");this.I=this.Ea("ytp-ad-confirm-dialog-confirm-button");this.ea=this.Ea("ytp-ad-confirm-dialog-messages");this.C=null;this.u=new eA;g.H(this,this.u);
this.B=null;this.hide()};
gFa=function(a,b){if(b.title){var c=g.IB(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.t(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=nN(d.value),a.ea.appendChild(d)}b.cancelLabel&&(c=g.IB(b.cancelLabel),a.updateValue("cancelLabel",c),a.u.S(a.D,"click",function(e){return a.ZH(e)}));
b.confirmLabel&&(b=g.IB(b.confirmLabel),a.updateValue("confirmLabel",b),a.u.S(a.I,"click",function(e){return a.OL(e)}));
a.u.S(a.T,"click",function(e){return a.NL(e)})};
sN=function(a,b,c,d,e,f,h){f=void 0===f?[]:f;h=void 0===h?"toggle-button":h;var l=mK("ytp-ad-toggle-button-input");UM.call(this,a,b,{F:"div",Ga:["ytp-ad-toggle-button"].concat(f),W:[{F:"label",K:"ytp-ad-toggle-button-label",X:{"for":l},W:[{F:"span",K:"ytp-ad-toggle-button-icon",X:{role:"button","aria-label":"{{tooltipText}}"},W:[{F:"span",K:"ytp-ad-toggle-button-untoggled-icon",qa:"{{untoggledIconTemplateSpec}}"},{F:"span",K:"ytp-ad-toggle-button-toggled-icon",qa:"{{toggledIconTemplateSpec}}"}]},
{F:"input",K:"ytp-ad-toggle-button-input",X:{id:l,type:"checkbox"}},{F:"span",K:"ytp-ad-toggle-button-text",qa:"{{buttonText}}"},{F:"span",K:"ytp-ad-toggle-button-tooltip",qa:"{{tooltipText}}"}]}]},h,c,d,e);this.C=this.Ea("ytp-ad-toggle-button");this.u=this.Ea("ytp-ad-toggle-button-input");this.Ea("ytp-ad-toggle-button-label");this.ea=this.Ea("ytp-ad-toggle-button-icon");this.I=this.Ea("ytp-ad-toggle-button-untoggled-icon");this.D=this.Ea("ytp-ad-toggle-button-toggled-icon");this.Ba=this.Ea("ytp-ad-toggle-button-text");
this.B=null;this.T=!1;this.hide()};
tN=function(a){a.T&&(a.isToggled()?(g.Ml(a.I,!1),g.Ml(a.D,!0)):(g.Ml(a.I,!0),g.Ml(a.D,!1)))};
hFa=function(a,b){var c=null;a.B&&(c=(b?[a.B.defaultServiceEndpoint,a.B.defaultNavigationEndpoint]:[a.B.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
uN=function(a){eA.call(this);this.j=a;this.S(this.j,"onAdUxUpdate",this.T)};
vN=function(a,b,c,d,e){UM.call(this,a,b,{F:"div",K:"ytp-ad-feedback-dialog-background",W:[{F:"div",K:"ytp-ad-feedback-dialog-container",W:[{F:"div",K:"ytp-ad-feedback-dialog-form",X:{role:"dialog",tabindex:"-1"},W:[{F:"div",K:"ytp-ad-feedback-dialog-title",W:[{F:"span",qa:"{{title}}"}]},{F:"span",K:"ytp-ad-info-dialog-feedback-options-title",qa:"{{reasonsTitle}}"},{F:"div",K:"ytp-ad-info-dialog-feedback-options"},{F:"div",K:"ytp-ad-feedback-dialog-confirm-container",W:[{F:"button",K:"ytp-ad-feedback-dialog-cancel-button",
qa:"{{cancelLabel}}"},{F:"button",K:"ytp-ad-feedback-dialog-confirm-button",qa:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d,e);this.D=[];this.u=null;this.I=this.Ea("ytp-ad-feedback-dialog-cancel-button");this.T=this.Ea("ytp-ad-feedback-dialog-confirm-button");this.ea=this.Ea("ytp-ad-info-dialog-feedback-options");this.Ba=this.Ea("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
lFa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new kN(a.api,a.ib,a.layoutId,a.j,a.jb,["ytp-ad-feedback-dialog-close-button"],"button"),g.H(a,a.u),a.u.init(mK("button"),c,a.macros),a.u.Qa("click",a.QT,a),a.u.Ca(a.element));b.title&&(c=g.IB(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.IB(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&iFa(a,b.reasons);b.cancelLabel&&(c=g.IB(b.cancelLabel),a.updateValue("cancelLabel",c),g.Ry(a.I,"click",
function(){return a.QT()}));
b.confirmLabel&&(c=g.IB(b.confirmLabel),a.updateValue("confirmLabel",c),g.Ry(a.T,"click",function(){return jFa(a)}));
b.undoRenderer&&kFa(a,b.undoRenderer)};
iFa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?g.sA(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.sA(Error("AdFeedbackReason.endpoint was not set.")):(c=new wN(c,d),g.H(a,c),d=c.ub(),a.ea.appendChild(d),a.D.push(c)))}};
kFa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new kN(a.api,a.ib,a.layoutId,a.j,a.jb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.H(a,a.B),a.B.init(mK("ad-feedback-undo-mute-button"),b,a.macros),a.B.Qa("click",a.o5,a),a.B.Ca(a.Ba)):g.sA(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
jFa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].u,a.layoutId?a.jb.executeCommand(b,a.layoutId):g.rA(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ma("a"),a.hide())};
wN=function(a,b){this.u=b;this.j=new g.TM({F:"label",K:"ytp-ad-feedback-dialog-reason-label",W:[{F:"input",K:"ytp-ad-feedback-dialog-reason-input",X:{type:"radio",name:"feedback-reason-group"}},{F:"span",K:"ytp-ad-feedback-dialog-reason-text",qa:g.IB(a)}]});this.B=this.j.Ea("ytp-ad-feedback-dialog-reason-input")};
xN=function(a,b,c,d,e){rN.call(this,a,b,c,d,e,[],"ad-mute-confirm-dialog")};
yN=function(a,b,c,d,e,f){UM.call(this,a,b,{F:"div",K:"ytp-ad-info-dialog-background",W:[{F:"div",K:"ytp-ad-info-dialog-container",W:[{F:"div",K:"ytp-ad-info-dialog-form",X:{role:"dialog",tabindex:"-1"},W:[{F:"div",K:"ytp-ad-info-dialog-title",qa:"{{title}}"},{F:"ul",K:"ytp-ad-info-dialog-ad-reasons"},{F:"div",K:"ytp-ad-info-dialog-message"},{F:"div",K:"ytp-ad-info-dialog-mute-container"},{F:"div",K:"ytp-ad-info-dialog-confirm-container",W:[{F:"button",K:"ytp-ad-info-dialog-confirm-button",qa:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d,e);this.u=this.B=null;this.T=this.Ea("ytp-ad-info-dialog-confirm-button");this.Xa=this.Ea("ytp-ad-info-dialog-mute-container");this.Pa=this.Ea("ytp-ad-info-dialog-message");this.Ka=this.Ea("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Ba=f;this.I=null;this.Ma=!1;this.ea=null;this.hide()};
mFa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new vN(a.api,a.ib,a.layoutId,a.j,a.jb),g.H(a,a.B),a.B.init(mK("ad-feedback-dialog"),b,a.macros),a.B.Ca(a.Ba),a.B.subscribe("a",function(){return a.ma("c")})};
nFa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new xN(a.api,a.ib,a.layoutId,a.j,a.jb),g.H(a,a.D),a.D.init(mK("ad-mute-confirm-dialog"),b,a.macros),a.D.Ca(a.Ba),a.D.subscribe("b",function(){return a.ma("c")})};
oFa=function(a){a.u&&a.u.Qa("click",a.JP,a);g.Ry(a.T,"click",function(){return a.JP()})};
zN=function(a,b,c,d,e,f,h){oN.call(this,a,b,c,d,e,void 0===h?!0:h,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.u=null;this.C=f;this.hide()};
qFa=function(a,b,c){b=b.dialog&&g.P(b.dialog,pFa)||null;null==b?g.rA(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.u=new yN(a.api,a.ib,a.layoutId,a.j,a.jb,a.C),g.H(a,a.u),a.u.init(mK("ad-info-dialog"),b,c),a.u.Ca(a.C),a.u.subscribe("d",function(){return a.ma("f")}),a.u.subscribe("c",function(){return a.ma("e")}))};
tFa=function(a,b,c){null==a.button?g.rA(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.ho(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.P(b.serviceEndpoint,rFa)||null)?(qFa(a,b,c),a.button.Qa("click",function(){a.u&&!a.u.sb&&(a.u.show(),sFa(a))})):a.button.Qa("click",function(){return sFa(a)}))};
sFa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
AN=function(a,b,c,d,e,f,h){UM.call(this,a,b,{F:"div",K:"ytp-ad-text"},void 0===h?"ad-text":h,c,d,e,void 0===f?null:f);this.u=null;this.hide()};
BN=function(a,b){b&&g.Xe(a.element,VM(a.u,b))};
CN=function(a,b,c,d,e,f,h,l){UM.call(this,a,b,c,d,e,f,h);this.u=l;g.H(this,this.u);this.Ka=this.I=-1};
DN=function(a){a.u&&-1===a.I&&(a.I=a.u.subscribe("h",a.Is,a),a.Ka=a.u.subscribe("g",a.hv,a),a.Is())};
EN=function(a){null!=a.u&&-1!==a.I&&(a.u.rh(a.I),a.u.rh(a.Ka),a.Ka=-1,a.I=-1)};
g.FN=function(a,b,c,d,e,f){g.E.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.j=f;this.u=e;this.delay=new g.Zn(this.vD,0,this);g.H(this,this.delay)};
GN=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
HN=function(a,b,c,d,e,f,h){CN.call(this,a,b,{F:"div",K:"ytp-ad-preview-slot"},"ad-preview",c,d,e,f);var l=this;this.Pa=-1;this.B=new g.TM({F:"span",K:"ytp-ad-preview-container"});g.H(this,this.B);this.C=new AN(this.api,this.ib,this.layoutId,this.j,this.jb,"ytp-ad-preview-text");g.H(this,this.C);this.C.Ca(this.B.element);this.T=new g.TM({F:"span",K:"ytp-ad-preview-image"});g.H(this,this.T);this.D=new qN(this.api,this.ib,this.layoutId,this.j,this.jb);g.H(this,this.D);this.D.Ca(this.T.element);this.T.Ca(this.B.element);
this.B.Ca(this.element);this.ea=new g.FN(this.B,400,!1,100,function(){return l.hide()});
g.H(this,this.ea);this.Ba=0;this.Ma=!1;this.Xa=h;this.hide()};
IN=function(a){a.ea.show(100);a.show()};
JN=function(a,b,c,d,e,f){CN.call(this,a,b,{F:"div",Ga:["ytp-flyout-cta","ytp-flyout-cta-inactive"],W:[{F:"div",K:"ytp-flyout-cta-icon-container"},{F:"div",K:"ytp-flyout-cta-body",W:[{F:"div",K:"ytp-flyout-cta-text-container",W:[{F:"div",K:"ytp-flyout-cta-headline-container"},{F:"div",K:"ytp-flyout-cta-description-container"}]},{F:"div",K:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e,f);this.C=new qN(this.api,this.ib,this.layoutId,this.j,this.jb,"ytp-flyout-cta-icon");g.H(this,this.C);
this.C.Ca(this.Ea("ytp-flyout-cta-icon-container"));this.api.V().N("web_rounded_thumbnails")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.T=new AN(this.api,this.ib,this.layoutId,this.j,this.jb,"ytp-flyout-cta-headline");g.H(this,this.T);this.T.Ca(this.Ea("ytp-flyout-cta-headline-container"));this.D=new AN(this.api,this.ib,this.layoutId,this.j,this.jb,"ytp-flyout-cta-description");g.H(this,this.D);this.D.Ca(this.Ea("ytp-flyout-cta-description-container"));a=["ytp-flyout-cta-action-button"];
this.api.V().N("web_modern_buttons")&&a.push("ytp-flyout-cta-action-button-rounded");this.B=new kN(this.api,this.ib,this.layoutId,this.j,this.jb,a);g.H(this,this.B);this.B.Ca(this.Ea("ytp-flyout-cta-action-button-container"));this.api.V().N("disable_tabbing_before_flyout_ad_elements_appear")&&this.B.element.setAttribute("tabIndex","-1");this.ea=null;this.Ba=0;this.hide()};
KN=function(a,b,c,d,e,f){UM.call(this,a,b,{F:"div",K:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,e,void 0===f?null:f);var h=this;this.u=null;this.C=new sN(this.api,this.ib,this.layoutId,this.j,this.jb,["ytp-ad-instream-user-sentiment-like-button"]);g.H(this,this.C);this.C.Ca(this.element);this.B=new sN(this.api,this.ib,this.layoutId,this.j,this.jb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.H(this,this.B);this.B.Ca(this.element);this.D=new g.FN(this,400,!1,500,
function(){return h.hide()});
g.H(this,this.D);this.hide()};
LN=function(a,b,c,d,e){e=void 0===e?0:e;g.E.call(this);this.B=a;this.u=!1;this.Z=d;this.I=!1;this.j=null;0<b&&(this.j=new g.Zn(this.GQ,b,this),g.H(this,this.j));this.D=new g.Zn(this.GQ,c,this);g.H(this,this.D);this.T=Aka(this.B,e,1,d);g.H(this,this.T);this.J=Aka(this.B,0,d,1);g.H(this,this.J);this.C=new eA;g.H(this,this.C)};
MN=function(a,b,c,d,e,f,h){CN.call(this,a,b,{F:"div",K:"ytp-ad-skip-button-slot"},"skip-button",c,d,e,f);var l=this;this.T=null;this.Ba=!1;this.Ma=h;this.Pa=!1;this.D=new g.TM({F:"span",Ga:["ytp-ad-skip-button-container"]});g.H(this,this.D);this.D.Ca(this.element);this.C=this.B=null;this.Xa=new g.FN(this.D,500,!1,100,function(){return l.hide()});
g.H(this,this.Xa);this.ea=new LN(this.D.element,15E3,5E3,.5,.5);g.H(this,this.ea);this.hide()};
vFa=function(a){a=a.T&&a.T.adRendererCommands;return(a&&a.clickCommand&&g.P(a.clickCommand,g.NN)&&g.P(a.clickCommand,g.NN).commands||[]).some(function(b){return b.adLifecycleCommand?uFa(b.adLifecycleCommand):!1})};
uFa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
ON=function(a,b,c,d,e,f,h){CN.call(this,a,b,{F:"div",K:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e,f);this.ea=h;this.D=!1;this.T=0;this.C=this.B=null;this.hide()};
wFa=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.ea.hide():a.B.hide()),b?(a=a.C,a.Xa.show(),a.show()):a.C.show())};
PN=function(a,b,c,d,e){kN.call(this,a,b,c,d,e,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
QN=function(a,b,c,d,e,f){f=void 0===f?!1:f;UM.call(this,a,b,{F:"span",K:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d,e);this.u=f;this.hide()};
RN=function(a,b,c,d,e){e=void 0===e?!1:e;nK.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.j=d;this.IG=e};
SN=function(a,b){g.FB.call(this);this.api=a;this.durationMs=b;this.j=null;this.md=new eA(this);g.H(this,this.md);this.u=xFa;this.md.S(this.api,"presentingplayerstatechange",this.qd);this.j=this.md.S(this.api,"onAdPlaybackProgress",this.uc)};
TN=function(a,b){g.FB.call(this);this.ib=b;this.u=!1;this.j=0;this.md=new eA(this);g.H(this,this.md);this.durationMs=a;this.timer=new g.sf(100);g.H(this,this.timer);this.md.S(this.timer,"tick",this.uc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.UN=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";0<d&&(b+=" "+d+" Days");if(0<d||0<e)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
g.VN=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)};
WN=function(a,b,c,d,e,f,h){CN.call(this,a,b,{F:"span",K:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=h;this.B=null;this.hide()};
XN=function(a,b,c,d,e){AN.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")};
YN=function(a,b){this.u=a;this.j=b};
ZN=function(a){return a.j-a.u};
$N=function(a,b){return a.u+b*ZN(a)};
aO=function(a,b,c){return ZN(a)?g.de((b-a.u)/ZN(a),0,1):null!=c?c:Infinity};
bO=function(a,b){g.TM.call(this,{F:"div",K:"ytp-ad-persistent-progress-bar-container",W:[{F:"div",K:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.H(this,this.u);this.Hc=this.Ea("ytp-ad-persistent-progress-bar");this.j=-1;this.S(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
cO=function(a,b,c,d,e,f,h){UM.call(this,a,b,{F:"div",K:"ytp-ad-player-overlay",W:[{F:"div",K:"ytp-ad-player-overlay-flyout-cta"},{F:"div",K:"ytp-ad-player-overlay-instream-info"},{F:"div",K:"ytp-ad-player-overlay-skip-or-preview"},{F:"div",K:"ytp-ad-player-overlay-progress-bar"},{F:"div",K:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d,e);this.T=h;this.D=this.Ea("ytp-ad-player-overlay-flyout-cta");this.api.V().N("web_rounded_thumbnails")&&this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.B=this.Ea("ytp-ad-player-overlay-instream-info");this.C=null;yFa(this)&&(a=Ne("div"),g.ho(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.B,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new XN(this.api,this.ib,this.layoutId,this.j,this.jb),c.Ca(a),c.init(mK("ad-title"),{text:b.title},this.macros),g.H(this,c)),this.C=a);this.I=this.Ea("ytp-ad-player-overlay-skip-or-preview");this.Ba=this.Ea("ytp-ad-player-overlay-progress-bar");this.ea=
this.Ea("ytp-ad-player-overlay-instream-user-sentiment");this.u=f;g.H(this,this.u);this.hide()};
yFa=function(a){a=a.api.V();return g.CH(a)&&a.isMobile};
AFa=function(a,b){var c=void 0===c?!0:c;var d=g.O("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Xh(window.location.href);e&&d.push(e);e=g.Xh(a);if(g.nb(d,e)||!e&&Jb(a,"/"))if(g.ov("autoescape_tempdata_url")&&(d=document.createElement("a"),g.Xd(d,a),a=d.href),a&&(a=Mea(a),d=a.indexOf("#"),a=0>d?a:a.slice(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.DA()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&zFa(a,b,f)}else zFa(a,b)};
zFa=function(a,b,c){a="ST-"+re(a).toString(36);b=b?g.ai(b):"";c=c||5;qw()&&g.Zv(a,b,c)};
dO=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.ci("/sharing_services",a);g.Ay(d)};
g.eO=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return 16>a?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)};
g.BFa=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.ci(a,b)+c;var e=void 0===e?Nfa:e;e=Ofa(a,e)||Gba;e=e instanceof Kd?g.Ld(e):Jfa(e);void 0!==e&&(d.href=e)};
g.fO=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.O("EVENT_ID");d&&(b.ei||(b.ei=d));b&&AFa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.BFa(a))};
g.gO=function(a,b,c,d){c&&AFa(a,c);c=g.Od(a);c=g.Ld(c);a!=c&&wv(Error("Unsafe window.open URL: "+a));a=c;b=b||re(a).toString(36);try{var e;if("2"===(null==(e=zv(a))?void 0:e.ase)){wv(Error("Queries for attributionsrc label registration when opening a window."));a=CFa(a);window.open(a,b,"attributionsrc");return}}catch(h){g.uv(h)}if(d){a=CFa(a);try{var f=encodeURIComponent(d);window.open(a,b,"attributionsrc="+f);return}catch(h){g.uv(h)}}window.open(a,b)};
CFa=function(a){if("www.googleadservices.com"!==g.Xh(a))return a;var b,c;return"function"===typeof(null==(b=document.featurePolicy)?void 0:b.features)&&(null==(c=document.featurePolicy)?0:c.features().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"};
g.hO=function(a,b,c){b=DFa(b,c);if(b=ae(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.kz("LOGGED_IN",function(d){g.lz(g.O("LOGGED_IN_PUBSUB_KEY"));mv("LOGGED_IN",!0);a(d)}),mv("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
DFa=function(a,b){var c="/signin?context=popup";b&&(c=document.location.protocol+"//"+b+c);b=bi(c,"next",document.location.protocol+"//"+document.domain+"/post_login");a&&(b=bi(b,"feature",a));return b};
GFa=function(a,b){if(!a)return!1;var c,d=null==(c=g.P(a,EFa))?void 0:c.signal;if(d&&b.Ev)return!!b.Ev[d];var e;if((c=null==(e=g.P(a,FFa))?void 0:e.request)&&b.tJ)return!!b.tJ[c];for(var f in a)if(b.qJ[f])return!0;return!1};
HFa=function(a,b){var c,d=null==(c=g.P(a,EFa))?void 0:c.signal;if(d&&b.Ev&&(c=b.Ev[d]))return c();var e;if((c=null==(e=g.P(a,FFa))?void 0:e.request)&&b.tJ&&(e=b.tJ[c]))return e();for(var f in a)if(b.qJ[f]&&(a=b.qJ[f]))return a()};
iO=function(a){return function(){return new a}};
JFa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=IFa[b];if(c){var d=new RegExp(c),e=g.t(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(IFa).forEach(function(h){var l=g.t(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
e=g.t(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.jO=function(a){return"/youtubei/v1/"+JFa(a)};
kO=function(){};
lO=function(){};
mO=function(a,b,c,d){this.KJ=a;this.Hg=b;this.j=c;this.C=d;this.B=void 0;this.u=new Map;a.Ev||(a.Ev={});a.Ev=Object.assign({},KFa,a.Ev)};
LFa=function(a,b,c,d){if(void 0!==mO.instance){if(d=mO.instance,a=[a!==d.KJ,b!==d.Hg,c!==d.j,!1,!1,void 0!==d.B],a.some(function(e){return e}))throw new g.Sw("InnerTubeTransportService is already initialized",a);
}else mO.instance=new mO(a,b,c,d)};
oO=function(a,b,c){var d=void 0===d?nO:d;var e=HFa(b,a.KJ);if(!e)return of(new g.Sw("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new g.lf(function(h){var l,m,n;return g.A(function(p){if(1==p.j)return m="cors"===(null==(l=f.Ls)?void 0:l.mode)?"cors":void 0,a.j.PV?(n=MFa(a,f.config,m),p.Ia(2)):g.y(p,NFa(a,f.config,m),3);2!=p.j&&(n=p.u);h(OFa(a,f,n));g.pa(p)})}):of(new g.Sw("Error: Failed to build request for command.",b))};
g.qM=function(a,b,c,d,e){e=void 0===e?{Jt:{identity:nO}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.jM(d,f));return new g.lf(function(h){var l,m,n,p,q;return g.A(function(r){if(1==r.j)return l=ow(c),m=Ev(l)?"same-origin":"cors",a.j.PV?(n=MFa(a,e,m),r.Ia(2)):g.y(r,NFa(a,e,m),3);2!=r.j&&(n=r.u);var w=n;p=mna(ow(c),w);q={input:p,Ls:pw(p),qo:b,config:e};h(OFa(a,q,n));g.pa(r)})})};
QFa=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.bab)?0:d.rab)&&a.C){d=g.t(PFa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.C[e]&&a.C[e].handleResponse(b,c)}};
OFa=function(a,b,c){var d,e,f,h,l,m,n,p,q,r,w,x,z,B,C,G,F,K,L,N,ba,T,S,ea,Q,sa,ha,ta;return g.A(function(Pa){switch(Pa.j){case 1:Pa.Ia(2);break;case 3:if((d=Pa.u)&&!d.isExpired())return Pa.return(Promise.resolve(d.j()));case 2:if(null==(e=b)?0:null==(f=e.qo)?0:f.context)for(h=g.t([]),l=h.next();!l.done;l=h.next())m=l.value,m.U$a(b.qo.context);if(null==(n=a.B)||!n.mab(b.input,b.qo)){Pa.Ia(4);break}return g.y(Pa,a.B.B$a(b.input,b.qo),5);case 5:return p=Pa.u,g.ov("kevlar_process_local_innertube_responses_killswitch")||
QFa(a,p,b),Pa.return(p);case 4:return(w=null==(r=b.config)?void 0:r.Wg)&&a.u.has(w)&&g.ov("web_memoize_inflight_requests")?q=a.u.get(w):(x=JSON.stringify(b.qo),C=null!=(B=null==(z=b.Ls)?void 0:z.headers)?B:{},b.Ls=Object.assign({},b.Ls,{headers:Object.assign({},C,c)}),G=Object.assign({},b.Ls),"POST"===b.Ls.method&&(G=Object.assign({},G,{body:x})),(null==(F=b.config)?0:F.Y5)&&hC(b.config.Y5),K=function(){return a.Hg.fetch(b.input,G,b.config)},q=K(),w&&a.u.set(w,q)),g.y(Pa,q,6);
case 6:if((L=Pa.u)&&"error"in L&&(null==(N=L)?0:null==(ba=N.error)?0:ba.details))for(T=L.error.details,S=g.t(T),ea=S.next();!ea.done;ea=S.next())Q=ea.value,(sa=Q["@type"])&&-1<RFa.indexOf(sa)&&(delete Q["@type"],L=Q);w&&a.u.has(w)&&a.u.delete(w);(null==(ha=b.config)?0:ha.b6)&&hC(b.config.b6);if(L||null==(ta=a.B)||!ta.p9a(b.input,b.qo)){Pa.Ia(7);break}return g.y(Pa,a.B.A$a(b.input,b.qo),8);case 8:L=Pa.u;case 7:return QFa(a,L,b),Pa.return(L||void 0)}})};
NFa=function(a,b,c){var d,e,f,h,l,m,n;return g.A(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.Jt)?void 0:e.identity)||nO;m=null==(h=b)?void 0:null==(l=h.Jt)?void 0:l.sessionIndex;var q=nf(a.j.wE(f,{sessionIndex:m}));return g.y(p,q,2)}n=p.u;return p.return(Promise.resolve(Object.assign({},SFa(c),n)))})};
MFa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Jt)?void 0:d.identity)||nO,f;b=null==b?void 0:null==(f=b.Jt)?void 0:f.sessionIndex;a=a.j.wE(e,{sessionIndex:b});return Object.assign({},SFa(c),a)};
SFa=function(a){var b={"Content-Type":"application/json"};g.O("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.O("EOM_VISITOR_DATA"):g.O("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.O("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.O("LOGGED_IN",!1);"cors"!==a&&((a=g.O("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.O("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.O("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.O("DOMAIN_ADMIN_STATE"))&&
(b["X-Youtube-Domain-Admin-State"]=a));return b};
pO=function(){};
qO=function(){};
rO=function(){};
sO=function(){};
tO=function(){};
uO=function(){};
vO=function(a){this.j=a};
g.xO=function(a,b){if(!wO){var c=tz();pz(c,{IM:TFa,yW:vO});var d={qJ:{feedbackEndpoint:iO(rO),modifyChannelNotificationPreferenceEndpoint:iO(sO),playlistEditEndpoint:iO(tO),subscribeEndpoint:iO(pO),unsubscribeEndpoint:iO(qO),webPlayerShareEntityServiceEndpoint:iO(uO)}},e=iM.getInstance(),f={};e&&(f.client_location=e);void 0===a&&(kM.instance||(kM.instance=new kM),a=kM.instance);void 0===b&&(b=c.resolve(TFa));LFa(d,b,a,f);pz(c,{IM:UFa,kO:mO.instance});wO=c.resolve(UFa)}return wO};
yO=function(){};
VFa=function(){yO.instance||(yO.instance=new yO);return yO.instance};
XFa=function(){if(!g.ov("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.ov("disable_biscotti_fetch_entirely_for_all_web_clients")&&qw()){var a=g.O("PLAYER_VARS",{});if("1"!=g.Wc(a,"privembed",!1)&&!ona(a)){var b=function(){zO=!0;"google_ad_status"in window?mv("DCLKSTAT",1):mv("DCLKSTAT",2)};
try{g.YA("//web.archive.org/web/20230104105643/https://static.doubleclick.net/instream/ad_status.js",b)}catch(c){}WFa.push(g.Vn.Uh(function(){if(!(zO||"google_ad_status"in window)){try{if(b){var c=""+g.Na(b),d=pra[c];d&&g.lz(d)}}catch(e){}zO=!0;mv("DCLKSTAT",3)}},5E3))}}};
AO=function(){var a=Number(g.O("DCLKSTAT",0));return isNaN(a)?0:a};
BO=function(a,b,c){if(!g.ov("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)c?a(c(b[d])):a(b[d]);else c?a(c(b)):a(b)};
CO=function(a,b,c){if(!g.ov("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)a(c[b[d]]);else a(c[b])};
X=function(a){g.ov("jspb_translator_log_errors")&&g.uv(a)};
ZFa=function(a){var b=new ds;try{return void 0!==a.eventType&&g.I(b,1,YFa[a.eventType]),void 0!==a.storedEventsCount&&g.I(b,2,a.storedEventsCount),void 0!==a.expiredEventsCount&&g.I(b,3,a.expiredEventsCount),void 0!==a.averageTimeBetweenDispatchesMs&&g.I(b,4,a.averageTimeBetweenDispatchesMs),void 0!==a.oldestStoredEventAgeMs&&g.I(b,5,a.oldestStoredEventAgeMs),void 0!==a.metricIntervalMs&&g.I(b,6,a.metricIntervalMs),void 0!==a.dispatchedEventCount&&g.I(b,7,a.dispatchedEventCount),void 0!==a.dispatchAttemptCount&&
g.I(b,8,a.dispatchAttemptCount),void 0!==a.withDiskSpaceMs&&g.I(b,9,a.withDiskSpaceMs),void 0!==a.withNetworkMs&&g.I(b,10,a.withNetworkMs),void 0!==a.foregroundMs&&g.I(b,11,a.foregroundMs),void 0!==a.activeMs&&g.I(b,12,a.activeMs),void 0!==a.condensedPageBcSlackCount&&g.I(b,13,a.condensedPageBcSlackCount),void 0!==a.persistedDeleteUsedCount&&g.I(b,14,a.persistedDeleteUsedCount),void 0!==a.persistedDeleteCount&&g.I(b,15,a.persistedDeleteCount),void 0!==a.eventDisabledCount&&g.I(b,16,a.eventDisabledCount),
void 0!==a.identityResolutionErrorCount&&g.I(b,17,a.identityResolutionErrorCount),void 0!==a.exceededMaxRetryCount&&g.I(b,18,a.exceededMaxRetryCount),void 0!==a.condensedPageBcPersistFailCount&&g.I(b,19,a.condensedPageBcPersistFailCount),void 0!==a.couldNotUnloadPageCount&&g.I(b,20,a.couldNotUnloadPageCount),void 0!==a.pageWasCorruptedCount&&g.I(b,24,a.pageWasCorruptedCount),void 0!==a.badEventIndexCount&&g.I(b,27,a.badEventIndexCount),void 0!==a.serializeErrorCount&&g.I(b,25,a.serializeErrorCount),
void 0!==a.payloadInfoNotSetCount&&g.I(b,21,a.payloadInfoNotSetCount),void 0!==a.requestEmptyErrorCount&&g.I(b,22,a.requestEmptyErrorCount),void 0!==a.clientEventNotSetCount&&g.I(b,23,a.clientEventNotSetCount),void 0!==a.differentIdCount&&g.I(b,26,a.differentIdCount),b}catch(c){X(c)}};
DO=function(a){var b=new gt;try{void 0!==a.trackingParams&&b.Ph(a.trackingParams);void 0!==a.veType&&g.I(b,2,a.veType);void 0!==a.elementIndex&&g.I(b,3,a.elementIndex);void 0!==a.veCounter&&g.I(b,6,a.veCounter);if(a.dataElement){var c=DO(a.dataElement);J(b,gt,7,c)}void 0!==a.isCounterfactual&&g.I(b,5,a.isCounterfactual);if(a.youtubeData){a:{var d=a.youtubeData,e=new Wq;try{if(d.channelData){b:{var f=d.channelData,h=new nq;try{void 0!==f.externalId&&Dg(h,1,f.externalId);var l=h;break b}catch(Ha){X(Ha)}l=
void 0}J(e,nq,2,l)}if(d.channelItem){b:{var m=d.channelItem,n=new oq;try{void 0!==m.externalId&&Dg(n,1,m.externalId);var p=n;break b}catch(Ha){X(Ha)}p=void 0}J(e,oq,5,p)}if(d.playlistItem){b:{var q=d.playlistItem,r=new pq;try{void 0!==q.externalPlaylistId&&Dg(r,5,q.externalPlaylistId);var w=r;break b}catch(Ha){X(Ha)}w=void 0}J(e,pq,6,w)}if(d.analyticsData){b:{var x=d.analyticsData,z=new qq;try{if(x.analysisVariant){c:{var B=x.analysisVariant,C=new aq;try{if(B.analysisSummary){d:{var G=B.analysisSummary,
F=new Op;try{void 0!==G.type&&g.I(F,1,$Fa[G.type]);void 0!==G.eligibility&&g.I(F,2,aGa[G.eligibility]);void 0!==G.sentiment&&g.I(F,3,bGa[G.sentiment]);var K=F;break d}catch(Ha){X(Ha)}K=void 0}J(C,Op,1,K)}if(B.videoPerformanceVariant){var L=cGa(B.videoPerformanceVariant);zg(C,Yp,2,EO,L)}if(B.videoOverviewVariant){d:{var N=B.videoOverviewVariant,ba=new Zp;try{void 0!==N.timePeriod&&g.I(ba,1,FO[N.timePeriod]);if(N.videoPerformanceVariant){var T=cGa(N.videoPerformanceVariant);J(ba,Yp,2,T)}void 0!==N.durationTimePeriod&&
g.I(ba,3,dGa[N.durationTimePeriod]);var S=ba;break d}catch(Ha){X(Ha)}S=void 0}zg(C,Zp,3,EO,S)}if(B.channelFluctuationVariant){d:{var ea=B.channelFluctuationVariant,Q=new Qp;try{void 0!==ea.views&&g.I(Q,1,GO[ea.views]);void 0!==ea.driver&&g.I(Q,2,eGa[ea.driver]);void 0!==ea.ctr&&g.I(Q,3,GO[ea.ctr]);void 0!==ea.impressions&&g.I(Q,4,GO[ea.impressions]);void 0!==ea.viewsPerVideo&&g.I(Q,5,GO[ea.viewsPerVideo]);var sa=Q;break d}catch(Ha){X(Ha)}sa=void 0}zg(C,Qp,4,EO,sa)}if(B.artistOverviewVariant){d:{var ha=
B.artistOverviewVariant,ta=new Pp;try{void 0!==ha.timePeriod&&g.I(ta,1,FO[ha.timePeriod]);void 0!==ha.variantType&&g.I(ta,2,fGa[ha.variantType]);var Pa=ta;break d}catch(Ha){X(Ha)}Pa=void 0}zg(C,Pp,5,EO,Pa)}if(B.monthlySubsVariant){var vb=gGa(B.monthlySubsVariant);zg(C,Up,6,EO,vb)}if(B.monthlyRevenueVariant){var xa=hGa(B.monthlyRevenueVariant);zg(C,Tp,7,EO,xa)}if(B.holisticMonthlyOverviewVariant){d:{var Ja=B.holisticMonthlyOverviewVariant,lc=new Vp;try{if(Ja.viewsPerformance){var rb=iGa(Ja.viewsPerformance);
J(lc,Sp,1,rb)}if(Ja.subsPerformance){var cc=gGa(Ja.subsPerformance);J(lc,Up,2,cc)}if(Ja.revenuePerformance){var tc=hGa(Ja.revenuePerformance);J(lc,Tp,3,tc)}var Rb=lc;break d}catch(Ha){X(Ha)}Rb=void 0}zg(C,Vp,8,EO,Rb)}if(B.personalizedChannelOverviewVariant){d:{var dc=B.personalizedChannelOverviewVariant,db=new Xp;try{void 0!==dc.timePeriod&&g.I(db,1,FO[dc.timePeriod]);if(dc.viewsPerformance){var od=iGa(dc.viewsPerformance);J(db,Sp,2,od)}var pd=db;break d}catch(Ha){X(Ha)}pd=void 0}zg(C,Xp,9,EO,pd)}if(B.channelNewReturningVariant){d:{var ec=
B.channelNewReturningVariant,jd=new Rp;try{void 0!==ec.uniqueViewers&&g.I(jd,1,GO[ec.uniqueViewers]);void 0!==ec.newViewers&&g.I(jd,2,GO[ec.newViewers]);void 0!==ec.returningViewers&&g.I(jd,3,GO[ec.returningViewers]);var dd=jd;break d}catch(Ha){X(Ha)}dd=void 0}zg(C,Rp,10,EO,dd)}if(B.lowReturningViewersDataStoryVariant){d:{var Qc=B.lowReturningViewersDataStoryVariant,Sb=new Wp;try{void 0!==Qc.videoListType&&g.I(Sb,1,jGa[Qc.videoListType]);var Yb=Sb;break d}catch(Ha){X(Ha)}Yb=void 0}zg(C,Wp,11,EO,Yb)}if(B.weeklyDataStoryVariant){d:{var Ib=
B.weeklyDataStoryVariant,Zb=new $p;try{void 0!==Ib.dateId&&g.I(Zb,1,Ib.dateId);var xc=Zb;break d}catch(Ha){X(Ha)}xc=void 0}zg(C,$p,12,EO,xc)}var Dc=C;break c}catch(Ha){X(Ha)}Dc=void 0}J(z,aq,12,Dc)}if(x.cardConfig){c:{var $b=x.cardConfig,ed=new eq;try{void 0!==$b.cardType&&g.I(ed,3,kGa[$b.cardType]);void 0!==$b.legacyMobileCardType&&g.I(ed,5,lGa[$b.legacyMobileCardType]);void 0!==$b.entityType&&g.I(ed,4,mGa[$b.entityType]);if($b.tableCardConfig){d:{var Va=$b.tableCardConfig,te=new dq;try{void 0!==
Va.dimension&&g.I(te,1,HO[Va.dimension]);void 0!==Va.metrics&&CO(te.j.bind(te),Va.metrics,HO);var uf=te;break d}catch(Ha){X(Ha)}uf=void 0}zg(ed,dq,1,nGa,uf)}if($b.keyMetricCardConfig){d:{var kf=$b.keyMetricCardConfig,ue=new cq;try{kf.metricTabConfigs&&BO(ue.j.bind(ue),kf.metricTabConfigs,oGa);var kb=ue;break d}catch(Ha){X(Ha)}kb=void 0}zg(ed,cq,2,nGa,kb)}var fc=ed;break c}catch(Ha){X(Ha)}fc=void 0}J(z,eq,13,fc)}void 0!==x.externalVideoId&&g.I(z,15,x.externalVideoId);void 0!==x.videoSid&&g.I(z,16,
x.videoSid);if(x.exploreConfig){c:{var Yd=x.exploreConfig,qd=new mq;try{void 0!==Yd.metrics&&CO(qd.j.bind(qd),Yd.metrics,HO);void 0!==Yd.dimension&&g.I(qd,2,HO[Yd.dimension]);void 0!==Yd.timePeriodType&&g.I(qd,3,FO[Yd.timePeriodType]);var Ge=qd;break c}catch(Ha){X(Ha)}Ge=void 0}J(z,mq,18,Ge)}var vf=z;break b}catch(Ha){X(Ha)}vf=void 0}J(e,qq,20,vf)}if(d.promotionData){b:{var Ec=d.promotionData,mc=new vq;try{void 0!==Ec.promotionId&&g.I(mc,1,Ec.promotionId);void 0!==Ec.placementType&&g.I(mc,9,pGa[Ec.placementType]);
var Zd=mc;break b}catch(Ha){X(Ha)}Zd=void 0}J(e,vq,21,Zd)}if(d.backstageItem){b:{var lb=d.backstageItem,Nb=new sq;try{void 0!==lb.stanzaId&&g.I(Nb,1,lb.stanzaId);void 0!==lb.likeCount&&g.I(Nb,7,lb.likeCount);void 0!==lb.backstageId&&g.I(Nb,9,lb.backstageId);void 0!==lb.wasPostScheduled&&g.I(Nb,14,lb.wasPostScheduled);var Hd=Nb;break b}catch(Ha){X(Ha)}Hd=void 0}J(e,sq,32,Hd)}if(d.adminSelfieData){b:{var gc=d.adminSelfieData,Qb=new rq;try{void 0!==gc.componentId&&g.I(Qb,1,gc.componentId);void 0!==gc.componentType&&
g.I(Qb,2,gc.componentType);if(gc.payload){c:{var pg=gc.payload,Id=new jq;try{if(pg.include){d:{var je=pg.include,Vf=new gq;try{void 0!==je.fragmentName&&g.I(Vf,1,je.fragmentName);var mh=Vf;break d}catch(Ha){X(Ha)}mh=void 0}zg(Id,gq,1,IO,mh)}if(pg.toolboxPage){d:{var $d=pg.toolboxPage,wf=new iq;try{void 0!==$d.fragmentName&&g.I(wf,1,$d.fragmentName);var ki=wf;break d}catch(Ha){X(Ha)}ki=void 0}zg(Id,iq,2,IO,ki)}if(pg.reviewQueuePage){d:{var He=pg.reviewQueuePage,nh=new hq;try{void 0!==He.queueId&&g.I(nh,
1,He.queueId);var Mg=nh;break d}catch(Ha){X(Ha)}Mg=void 0}zg(Id,hq,3,IO,Mg)}var Ie=Id;break c}catch(Ha){X(Ha)}Ie=void 0}J(Qb,jq,3,Ie)}var qg=Qb;break b}catch(Ha){X(Ha)}qg=void 0}J(e,rq,41,qg)}if(d.notificationState){b:{var Zi=d.notificationState,li=new Eq;try{if(Zi.inboxInteractionData){c:{var xf=Zi.inboxInteractionData,Te=new kq;try{xf.notifications&&BO(Te.j.bind(Te),xf.notifications,qGa);var yf=Te;break c}catch(Ha){X(Ha)}yf=void 0}J(li,kq,9,yf)}var Ua=li;break b}catch(Ha){X(Ha)}Ua=void 0}J(e,Eq,
59,Ua)}if(d.delegationContext){b:{var ve=d.delegationContext,Ng=new tq;try{void 0!==ve.externalChannelId&&g.I(Ng,1,ve.externalChannelId);void 0!==ve.externalOwnerId&&g.I(Ng,3,ve.externalOwnerId);void 0!==ve.artistId&&g.I(Ng,4,ve.artistId);if(ve.roleType){c:{var we=ve.roleType,zd=new fq;try{void 0!==we.channelRoleType&&g.vg(zd,1,JO,rGa[we.channelRoleType]);void 0!==we.artistRoleType&&g.vg(zd,2,JO,sGa[we.artistRoleType]);void 0!==we.contentOwnerRoleType&&g.vg(zd,3,JO,tGa[we.contentOwnerRoleType]);var Mh=
zd;break c}catch(Ha){X(Ha)}Mh=void 0}J(Ng,fq,5,Mh)}void 0!==ve.oacChannelId&&g.I(Ng,6,ve.oacChannelId);void 0!==ve.isInternalUser&&g.I(Ng,8,ve.isInternalUser);void 0!==ve.delegationContextSerialized&&Dg(Ng,9,ve.delegationContextSerialized);var Nj=Ng;break b}catch(Ha){X(Ha)}Nj=void 0}J(e,tq,63,Nj)}if(d.campaignData){b:{var $i=d.campaignData,aj=new uq;try{void 0!==$i.campaignName&&g.I(aj,1,$i.campaignName);void 0!==$i.campaignVersion&&g.I(aj,2,$i.campaignVersion);var dl=aj;break b}catch(Ha){X(Ha)}dl=
void 0}J(e,uq,64,dl)}if(d.scoringEventInfo){b:{var vo=d.scoringEventInfo,Mm=new wq;try{void 0!==vo.scoringTrackingParams&&Dg(Mm,1,vo.scoringTrackingParams);var wo=Mm;break b}catch(Ha){X(Ha)}wo=void 0}J(e,wq,77,wo)}if(d.servletData){b:{var Hq=d.servletData,Iq=new xq;try{void 0!==Hq.serializedServletEventId&&g.I(Iq,1,Hq.serializedServletEventId);var xo=Iq;break b}catch(Ha){X(Ha)}xo=void 0}J(e,xq,83,xo)}if(d.yoodleData){b:{var yo=d.yoodleData,zo=new yq;try{void 0!==yo.promoId&&g.I(zo,1,yo.promoId);var Xj=
zo;break b}catch(Ha){X(Ha)}Xj=void 0}J(e,yq,85,Xj)}if(d.videoRestrictionData){b:{var Yj=d.videoRestrictionData,hj=new zq;try{Yj.restrictions&&BO(hj.j.bind(hj),Yj.restrictions,uGa);void 0!==Yj.prechecksPending&&g.I(hj,2,Yj.prechecksPending);var Ke=hj;break b}catch(Ha){X(Ha)}Ke=void 0}J(e,zq,92,Ke)}if(d.creatorMusicData){b:{var sg=d.creatorMusicData,Zj=new Fq;try{if(sg.entity){var Zt=vGa(sg.entity);J(Zj,Rq,1,Zt)}sg.entities&&BO(Zj.j.bind(Zj),sg.entities,vGa);if(sg.track){var ql=wGa(sg.track);zg(Zj,
Gq,3,xGa,ql)}if(sg.collection){var Ao=yGa(sg.collection);zg(Zj,Mq,4,xGa,Ao)}var pi=Zj;break b}catch(Ha){X(Ha)}pi=void 0}J(e,Fq,96,pi)}if(d.creatorData){b:{var $e=d.creatorData,ak=new Sq;try{void 0!==$e.ttWizardTargetFeature&&g.vg(ak,1,zGa,AGa[$e.ttWizardTargetFeature]);void 0!==$e.ttWizardTargetLevel&&g.vg(ak,2,zGa,BGa[$e.ttWizardTargetLevel]);if($e.simpleWizardDetails){var $t=new Tq;zg(ak,Tq,3,KO,$t)}if($e.advancedWizardDetails){c:{var Jq=$e.advancedWizardDetails,Nm=new Uq;try{void 0!==Jq.isDoubleHop&&
g.I(Nm,1,Jq.isDoubleHop);var Kq=Nm;break c}catch(Ha){X(Ha)}Kq=void 0}zg(ak,Uq,4,KO,Kq)}if($e.blockedWizardDetails){c:{var qi=$e.blockedWizardDetails,rl=new Vq;try{void 0!==qi.loggableBlockedReason&&g.I(rl,1,CGa[qi.loggableBlockedReason]);var Bo=rl;break c}catch(Ha){X(Ha)}Bo=void 0}zg(ak,Vq,5,KO,Bo)}var Lq=ak;break b}catch(Ha){X(Ha)}Lq=void 0}J(e,Sq,98,Lq)}var ri=e;break a}catch(Ha){X(Ha)}ri=void 0}J(b,Wq,8,ri)}return b}catch(Ha){X(Ha)}};
cGa=function(a){var b=new Yp;try{return void 0!==a.views&&g.I(b,1,GO[a.views]),void 0!==a.driver&&g.I(b,2,DGa[a.driver]),void 0!==a.ctr&&g.I(b,3,GO[a.ctr]),void 0!==a.avd&&g.I(b,4,GO[a.avd]),void 0!==a.impressions&&g.I(b,5,GO[a.impressions]),void 0!==a.videoLength&&g.I(b,6,GO[a.videoLength]),b}catch(c){X(c)}};
gGa=function(a){var b=new Up;try{return void 0!==a.subsGrowth&&g.I(b,1,GO[a.subsGrowth]),void 0!==a.nonSubViews&&g.I(b,2,GO[a.nonSubViews]),void 0!==a.subsAddedPerNonSubViews&&g.I(b,3,GO[a.subsAddedPerNonSubViews]),void 0!==a.accountsClosed&&g.I(b,4,GO[a.accountsClosed]),void 0!==a.subsRemovedToAddedRatio&&g.I(b,5,GO[a.subsRemovedToAddedRatio]),void 0!==a.videosPublished&&g.I(b,6,GO[a.videosPublished]),b}catch(c){X(c)}};
hGa=function(a){var b=new Tp;try{return void 0!==a.revenue&&g.I(b,1,GO[a.revenue]),void 0!==a.revenueSource&&g.I(b,2,EGa[a.revenueSource]),void 0!==a.revenueDrivingMetrics&&CO(b.j.bind(b),a.revenueDrivingMetrics,FGa),void 0!==a.revenueChangeReason&&g.I(b,4,GGa[a.revenueChangeReason]),void 0!==a.revenueChangeFact&&g.I(b,5,HGa[a.revenueChangeFact]),void 0!==a.driverCountryCode&&g.I(b,6,a.driverCountryCode),b}catch(c){X(c)}};
iGa=function(a){var b=new Sp;try{return void 0!==a.views&&g.I(b,1,GO[a.views]),void 0!==a.drivers&&CO(b.j.bind(b),a.drivers,IGa),b}catch(c){X(c)}};
oGa=function(a){var b=new bq;try{return void 0!==a.metric&&g.I(b,1,HO[a.metric]),void 0!==a.comparisonMetric&&g.I(b,2,HO[a.comparisonMetric]),void 0!==a.includeCumulative&&g.I(b,3,a.includeCumulative),b}catch(c){X(c)}};
qGa=function(a){var b=new lq;try{return void 0!==a.attributionTag&&g.I(b,2,a.attributionTag),b}catch(c){X(c)}};
uGa=function(a){var b=new Aq;try{if(a.limitedAds){a:{var c=a.limitedAds,d=new Bq;try{void 0!==c.imposer&&g.I(d,1,JGa[c.imposer]);var e=d;break a}catch(q){X(q)}e=void 0}zg(b,Bq,1,LO,e)}if(a.copyright){a:{var f=a.copyright,h=new Cq;try{void 0!==f.policyType&&g.I(h,1,KGa[f.policyType]);var l=h;break a}catch(q){X(q)}l=void 0}zg(b,Cq,2,LO,l)}if(a.communityGuidelines){a:{var m=a.communityGuidelines,n=new Dq;try{void 0!==m.policyVerticals&&CO(n.j.bind(n),m.policyVerticals,LGa);var p=n;break a}catch(q){X(q)}p=
void 0}zg(b,Dq,3,LO,p)}return b}catch(q){X(q)}};
vGa=function(a){var b=new Rq;try{if(a.featuredCollection){var c=MGa(a.featuredCollection);zg(b,Nq,1,MO,c)}if(a.mood){var d=NGa(a.mood);zg(b,Oq,2,MO,d)}if(a.genre){var e=OGa(a.genre);zg(b,Pq,3,MO,e)}if(a.track){var f=wGa(a.track);zg(b,Gq,4,MO,f)}return b}catch(h){X(h)}};
MGa=function(a){var b=new Nq;try{return void 0!==a.id&&g.I(b,1,a.id),b}catch(c){X(c)}};
NGa=function(a){var b=new Oq;try{return void 0!==a.type&&g.I(b,1,PGa[a.type]),b}catch(c){X(c)}};
OGa=function(a){var b=new Pq;try{return void 0!==a.type&&g.I(b,1,QGa[a.type]),b}catch(c){X(c)}};
wGa=function(a){var b=new Gq;try{void 0!==a.artTrackId&&g.I(b,1,a.artTrackId);void 0!==a.assetId&&g.I(b,2,a.assetId);if(a.details){var c=new Qq;J(b,Qq,3,c)}if(a.parent){var d=yGa(a.parent);J(b,Mq,4,d)}return b}catch(e){X(e)}};
yGa=function(a){var b=new Mq;try{if(a.featuredCollection){var c=MGa(a.featuredCollection);zg(b,Nq,1,NO,c)}if(a.mood){var d=NGa(a.mood);zg(b,Oq,2,NO,d)}if(a.genre){var e=OGa(a.genre);zg(b,Pq,3,NO,e)}return b}catch(f){X(f)}};
wHa=function(a){var b=new Ft;try{void 0!==a.encryptedVideoId&&g.I(b,1,a.encryptedVideoId);void 0!==a.cotn&&g.I(b,20,a.cotn);void 0!==a.cpn&&g.I(b,30,a.cpn);void 0!==a.transferStatusType&&g.I(b,38,RGa[a.transferStatusType]);void 0!==a.statusType&&g.I(b,2,SGa[a.statusType]);void 0!==a.failureReason&&g.I(b,3,TGa[a.failureReason]);void 0!==a.transferFailureReason&&g.I(b,41,UGa[a.transferFailureReason]);void 0!==a.failureExceptionType&&g.I(b,37,a.failureExceptionType);void 0!==a.totalFetchedKbytes&&g.I(b,
4,a.totalFetchedKbytes);void 0!==a.diskAvailableKbytes&&g.I(b,5,a.diskAvailableKbytes);void 0!==a.totalContentKbytes&&g.I(b,21,a.totalContentKbytes);void 0!==a.alreadyDownloadedKbytes&&g.I(b,22,a.alreadyDownloadedKbytes);void 0!==a.fetchedFromCacheKbytes&&g.I(b,23,a.fetchedFromCacheKbytes);if(a.systemHealth){a:{var c=a.systemHealth,d=new Ks;try{void 0!==c.tag&&g.I(d,1,VGa[c.tag]);if(c.staticContext){b:{var e=c.staticContext,f=new Fs;try{void 0!==e.displayDensityDpi&&g.I(f,1,e.displayDensityDpi);void 0!==
e.heightPixels&&g.I(f,2,e.heightPixels);void 0!==e.widthPixels&&g.I(f,3,e.widthPixels);void 0!==e.memoryTotalKbytes&&g.I(f,4,e.memoryTotalKbytes);void 0!==e.osSdkVersion&&g.I(f,5,e.osSdkVersion);void 0!==e.osIncrementalVersion&&g.I(f,6,e.osIncrementalVersion);void 0!==e.hardwareArchitecture&&g.I(f,7,e.hardwareArchitecture);void 0!==e.appVersionCode&&g.I(f,8,e.appVersionCode);void 0!==e.devicePixelRatio&&Ag(f,9,e.devicePixelRatio);void 0!==e.buildFingerprint&&g.I(f,10,e.buildFingerprint);void 0!==
e.socManufacturer&&g.I(f,11,e.socManufacturer);void 0!==e.socModel&&g.I(f,12,e.socModel);void 0!==e.availableProcessors&&g.I(f,13,e.availableProcessors);void 0!==e.cpuCores&&g.I(f,14,e.cpuCores);void 0!==e.heightPoints&&g.I(f,15,e.heightPoints);void 0!==e.widthPoints&&g.I(f,16,e.widthPoints);void 0!==e.androidMediaPerformanceClass&&g.I(f,17,e.androidMediaPerformanceClass);var h=f;break b}catch(Ua){X(Ua)}h=void 0}J(d,Fs,2,h)}if(c.dynamicContext){b:{var l=c.dynamicContext,m=new zs;try{void 0!==l.screenOn&&
g.I(m,1,l.screenOn);void 0!==l.deviceRotation&&g.I(m,2,l.deviceRotation);void 0!==l.networkType&&g.I(m,3,l.networkType);void 0!==l.networkCoarseState&&g.I(m,4,l.networkCoarseState);void 0!==l.chargingStatus&&g.I(m,5,WGa[l.chargingStatus]);void 0!==l.isInForeground&&g.I(m,6,l.isInForeground);void 0!==l.viewportHeightPixels&&g.I(m,7,l.viewportHeightPixels);void 0!==l.viewportWidthPixels&&g.I(m,8,l.viewportWidthPixels);void 0!==l.hasCoarsePointer&&g.I(m,9,l.hasCoarsePointer);void 0!==l.hasFinePointer&&
g.I(m,10,l.hasFinePointer);void 0!==l.hasHoverSupport&&g.I(m,11,l.hasHoverSupport);void 0!==l.deviceFreeStorageMbytes&&g.I(m,12,l.deviceFreeStorageMbytes);void 0!==l.deviceStorageQuotaMbytes&&g.I(m,13,l.deviceStorageQuotaMbytes);void 0!==l.deviceStorageUsageMbytes&&g.I(m,14,l.deviceStorageUsageMbytes);void 0!==l.processUptimeMs&&g.I(m,15,l.processUptimeMs);void 0!==l.hasAppShell&&g.I(m,16,l.hasAppShell);void 0!==l.glVersion&&g.I(m,17,l.glVersion);void 0!==l.glRenderer&&g.I(m,18,l.glRenderer);l.srsDatapushBuildIds&&
BO(m.B.bind(m),l.srsDatapushBuildIds,XGa);l.playerDatapushBuildIds&&BO(m.j.bind(m),l.playerDatapushBuildIds,YGa);if(l.creationContext){c:{var n=l.creationContext,p=new ys;try{void 0!==n.activeFrontendUploadId&&g.I(p,1,n.activeFrontendUploadId);void 0!==n.inShortsCreation&&g.I(p,2,n.inShortsCreation);var q=p;break c}catch(Ua){X(Ua)}q=void 0}J(m,ys,21,q)}var r=m;break b}catch(Ua){X(Ua)}r=void 0}J(d,zs,3,r)}void 0!==c.serializedPrimesMetric&&Dg(d,4,c.serializedPrimesMetric);void 0!==c.serializedIosPrimesMetric&&
Dg(d,6,c.serializedIosPrimesMetric);if(c.webMetric){b:{var w=c.webMetric,x=new Hs;try{void 0!==w.currentHeapKbytes&&g.I(x,1,w.currentHeapKbytes);void 0!==w.navigationCount&&g.I(x,2,w.navigationCount);var z=x;break b}catch(Ua){X(Ua)}z=void 0}J(d,Hs,7,z)}if(c.crashData){b:{var B=c.crashData,C=new vs;try{void 0!==B.stackTrace&&g.I(C,1,B.stackTrace);void 0!==B.screenVeType&&g.I(C,2,B.screenVeType);if(B.compactStackTrace){var G=OO(B.compactStackTrace);J(C,cs,3,G)}void 0!==B.crashTimeMs&&g.I(C,4,B.crashTimeMs);
if(B.clientError){c:{var F=B.clientError,K=new us;try{if(F.errorMetadata){d:{var L=F.errorMetadata,N=new ms;try{void 0!==L.exceptionCategory&&g.I(N,1,ZGa[L.exceptionCategory]);if(L.serviceTrackingData){e:{var ba=L.serviceTrackingData,T=new ks;try{void 0!==ba.innertubeBuildChangelist&&g.I(T,1,ba.innertubeBuildChangelist);void 0!==ba.innertubeBuildExperimentsSourceVersion&&g.I(T,2,ba.innertubeBuildExperimentsSourceVersion);void 0!==ba.innertubeBuildLabel&&g.I(T,3,ba.innertubeBuildLabel);void 0!==ba.innertubeBuildTimestampSec&&
g.I(T,4,ba.innertubeBuildTimestampSec);void 0!==ba.innertubeBuildVariantsChecksum&&g.I(T,5,ba.innertubeBuildVariantsChecksum);void 0!==ba.innertubeJobName&&g.I(T,6,ba.innertubeJobName);var S=T;break e}catch(Ua){X(Ua)}S=void 0}J(N,ks,2,S)}void 0!==L.pageUrl&&g.I(N,3,L.pageUrl);L.kvPairs&&BO(N.j.bind(N),L.kvPairs,$Ga);L.experimentIds&&BO(N.B.bind(N),L.experimentIds);if(L.playerMetadata){e:{var ea=L.playerMetadata,Q=new ls;try{void 0!==ea.error&&CO(Q.j.bind(Q),ea.error,aHa);void 0!==ea.stackTrace&&g.I(Q,
2,ea.stackTrace);var sa=Q;break e}catch(Ua){X(Ua)}sa=void 0}J(N,ls,6,sa)}void 0!==L.exceptionType&&g.I(N,7,bHa[L.exceptionType]);void 0!==L.clientScreenNonce&&g.I(N,8,L.clientScreenNonce);if(L.blocksMethodExecutionInfo){e:{var ha=L.blocksMethodExecutionInfo,ta=new js;try{void 0!==ha.methodId&&g.I(ta,1,ha.methodId);void 0!==ha.blockTypeId&&g.I(ta,2,ha.blockTypeId);void 0!==ha.methodType&&g.I(ta,3,cHa[ha.methodType]);void 0!==ha.requestSize&&g.I(ta,4,ha.requestSize);void 0!==ha.responseSize&&g.I(ta,
5,ha.responseSize);void 0!==ha.statusCode&&g.I(ta,6,ha.statusCode);void 0!==ha.containerId&&g.I(ta,7,ha.containerId);void 0!==ha.moduleIdentifier&&g.I(ta,8,ha.moduleIdentifier);void 0!==ha.datapushBuildId&&g.I(ta,9,ha.datapushBuildId);var Pa=ta;break e}catch(Ua){X(Ua)}Pa=void 0}J(N,js,9,Pa)}var vb=N;break d}catch(Ua){X(Ua)}vb=void 0}J(K,ms,1,vb)}if(F.stackTrace){d:{var xa=F.stackTrace,Ja=new rs;try{void 0!==xa.isObfuscated&&g.I(Ja,1,xa.isObfuscated);if(xa.androidStackInfo){e:{var lc=xa.androidStackInfo,
rb=new os;try{void 0!==lc.serializedThrowable&&Dg(rb,1,lc.serializedThrowable);var cc=rb;break e}catch(Ua){X(Ua)}cc=void 0}zg(Ja,os,2,uA,cc)}if(xa.browserStackInfo){e:{var tc=xa.browserStackInfo,Rb=new ps;try{void 0!==tc.stackTrace&&g.I(Rb,1,tc.stackTrace);void 0!==tc.lineNumber&&g.I(Rb,2,tc.lineNumber);void 0!==tc.columnNumber&&g.I(Rb,3,tc.columnNumber);void 0!==tc.filename&&g.I(Rb,4,tc.filename);var dc=Rb;break e}catch(Ua){X(Ua)}dc=void 0}zg(Ja,ps,3,uA,dc)}if(xa.iosStackInfo){e:{var db=xa.iosStackInfo,
od=new qs;try{void 0!==db.stackTrace&&g.I(od,1,db.stackTrace);if(db.compactStackTrace){var pd=OO(db.compactStackTrace);J(od,cs,2,pd)}var ec=od;break e}catch(Ua){X(Ua)}ec=void 0}zg(Ja,qs,4,uA,ec)}var jd=Ja;break d}catch(Ua){X(Ua)}jd=void 0}J(K,rs,2,jd)}if(F.logMessage){d:{var dd=F.logMessage,Qc=new ts;try{void 0!==dd.message&&g.I(Qc,1,dd.message);void 0!==dd.level&&g.I(Qc,2,dHa[dd.level]);void 0!==dd.errorClassName&&g.I(Qc,3,dd.errorClassName);void 0!==dd.sourceMethodName&&g.I(Qc,4,dd.sourceMethodName);
void 0!==dd.sampleWeight&&g.I(Qc,6,dd.sampleWeight);var Sb=Qc;break d}catch(Ua){X(Ua)}Sb=void 0}J(K,ts,3,Sb)}var Yb=K;break c}catch(Ua){X(Ua)}Yb=void 0}J(C,us,5,Yb)}var Ib=C;break b}catch(Ua){X(Ua)}Ib=void 0}J(d,vs,9,Ib)}c.delayedEventMetrics&&BO(d.j.bind(d),c.delayedEventMetrics,ZFa);if(c.iosBatteryMetric){b:{var Zb=c.iosBatteryMetric,xc=new fs;try{void 0!==Zb.sampleDurationMs&&g.I(xc,1,Zb.sampleDurationMs);if(Zb.startSample){var Dc=eHa(Zb.startSample);J(xc,es,2,Dc)}if(Zb.endSample){var $b=eHa(Zb.endSample);
J(xc,es,3,$b)}var ed=xc;break b}catch(Ua){X(Ua)}ed=void 0}J(d,fs,11,ed)}if(c.androidBatteryMetric){b:{var Va=c.androidBatteryMetric,te=new Wr;try{void 0!==Va.sampleDurationMs&&g.I(te,1,Va.sampleDurationMs);if(Va.startSample){var uf=fHa(Va.startSample);J(te,Vr,2,uf)}if(Va.endSample){var kf=fHa(Va.endSample);J(te,Vr,3,kf)}var ue=te;break b}catch(Ua){X(Ua)}ue=void 0}J(d,Wr,12,ue)}if(c.webApiSupport){b:{var kb=c.webApiSupport,fc=new Gs;try{void 0!==kb.intersectionObserverPresent&&g.I(fc,1,kb.intersectionObserverPresent);
void 0!==kb.indexedDbPresent&&g.I(fc,2,kb.indexedDbPresent);void 0!==kb.serviceWorkerPresent&&g.I(fc,3,kb.serviceWorkerPresent);void 0!==kb.webSharePresent&&g.I(fc,4,kb.webSharePresent);void 0!==kb.fullScreenApiPresent&&g.I(fc,5,kb.fullScreenApiPresent);void 0!==kb.cacheStoragePresent&&g.I(fc,6,kb.cacheStoragePresent);void 0!==kb.storageEstimatePresent&&g.I(fc,7,kb.storageEstimatePresent);void 0!==kb.storagePersistPresent&&g.I(fc,8,kb.storagePersistPresent);void 0!==kb.webkitTemporaryStoragePresent&&
g.I(fc,9,kb.webkitTemporaryStoragePresent);void 0!==kb.idb2Present&&g.I(fc,10,kb.idb2Present);void 0!==kb.promiseRejectionEventPresent&&g.I(fc,11,kb.promiseRejectionEventPresent);void 0!==kb.subtleCryptoPresent&&g.I(fc,12,kb.subtleCryptoPresent);void 0!==kb.broadcastChannelPresent&&g.I(fc,13,kb.broadcastChannelPresent);void 0!==kb.webLocksApiPresent&&g.I(fc,14,kb.webLocksApiPresent);var Yd=fc;break b}catch(Ua){X(Ua)}Yd=void 0}J(d,Gs,13,Yd)}if(c.cpuProfiling){b:{var qd=c.cpuProfiling,Ge=new is;try{if(qd.profilingSamples){var vf=
OO(qd.profilingSamples);J(Ge,cs,1,vf)}if(qd.config){var Ec=Ge.setConfig;c:{var mc=qd.config,Zd=new hs;try{void 0!==mc.profilingIntervalSec&&Ag(Zd,1,mc.profilingIntervalSec);void 0!==mc.profilingDurationSec&&Ag(Zd,2,mc.profilingDurationSec);void 0!==mc.timerType&&g.I(Zd,3,gHa[mc.timerType]);void 0!==mc.profilingStartTimeSec&&Ag(Zd,4,mc.profilingStartTimeSec);void 0!==mc.fractionOfRunsToSample&&Ag(Zd,5,mc.fractionOfRunsToSample);var lb=Zd;break c}catch(Ua){X(Ua)}lb=void 0}Ec.call(Ge,lb)}var Nb=Ge;break b}catch(Ua){X(Ua)}Nb=
void 0}J(d,is,14,Nb)}if(c.stallStackTrace){var Hd=OO(c.stallStackTrace);J(d,cs,15,Hd)}if(c.memoryUsage){b:{var gc=c.memoryUsage,Qb=new Cs;try{void 0!==gc.totalMemoryUsageBytes&&g.I(Qb,1,gc.totalMemoryUsageBytes);gc.classMemoryUsage&&BO(Qb.j.bind(Qb),gc.classMemoryUsage,hHa);if(gc.config){var pg=Qb.setConfig;c:{var Id=gc.config,je=new Bs;try{void 0!==Id.maxStartTimeSec&&g.I(je,1,Id.maxStartTimeSec);void 0!==Id.durationTimeSec&&g.I(je,2,Id.durationTimeSec);void 0!==Id.intervalSec&&g.I(je,3,Id.intervalSec);
void 0!==Id.maxLogCount&&g.I(je,4,Id.maxLogCount);void 0!==Id.fractionOfRunsToSample&&Ag(je,5,Id.fractionOfRunsToSample);var Vf=je;break c}catch(Ua){X(Ua)}Vf=void 0}pg.call(Qb,Vf)}void 0!==gc.processUptimeMs&&g.I(Qb,4,gc.processUptimeMs);void 0!==gc.foregroundUptimeMs&&g.I(Qb,8,gc.foregroundUptimeMs);gc.viewAllocation&&BO(Qb.B.bind(Qb),gc.viewAllocation,hHa);void 0!==gc.entityStoreCount&&g.I(Qb,6,gc.entityStoreCount);void 0!==gc.entityStoreBytes&&g.I(Qb,7,gc.entityStoreBytes);var mh=Qb;break b}catch(Ua){X(Ua)}mh=
void 0}J(d,Cs,16,mh)}c.networkEvents&&BO(d.B.bind(d),c.networkEvents,iHa);if(c.threadUtilization){b:{var $d=c.threadUtilization,wf=new Js;try{void 0!==$d.userJourney&&g.I(wf,1,$d.userJourney);void 0!==$d.type&&g.I(wf,2,jHa[$d.type]);$d.threadPoolStats&&BO(wf.j.bind(wf),$d.threadPoolStats,kHa);void 0!==$d.totalThreadCount&&g.I(wf,4,$d.totalThreadCount);void 0!==$d.statsGenerateDurationMs&&g.I(wf,5,$d.statsGenerateDurationMs);var ki=wf;break b}catch(Ua){X(Ua)}ki=void 0}J(d,Js,18,ki)}if(c.androidBackgroundTask){b:{var He=
c.androidBackgroundTask,nh=new gs;try{void 0!==He.tag&&g.I(nh,1,He.tag);void 0!==He.isKnownTask&&g.I(nh,2,He.isKnownTask);void 0!==He.result&&g.I(nh,3,lHa[He.result]);var Mg=nh;break b}catch(Ua){X(Ua)}Mg=void 0}J(d,gs,19,Mg)}if(c.distributiveProfilingSpan){b:{var Ie=c.distributiveProfilingSpan,qg=new xs;try{void 0!==Ie.spanId&&g.I(qg,1,mHa[Ie.spanId]);void 0!==Ie.sampleRate&&Ag(qg,2,Ie.sampleRate);void 0!==Ie.spanDurationMs&&g.I(qg,3,Ie.spanDurationMs);void 0!==Ie.sampleFailureCount&&g.I(qg,4,Ie.sampleFailureCount);
Ie.sample&&BO(qg.Vh.bind(qg),Ie.sample,nHa);var Zi=qg;break b}catch(Ua){X(Ua)}Zi=void 0}J(d,xs,20,Zi)}var li=d;break a}catch(Ua){X(Ua)}li=void 0}J(b,Ks,6,li)}void 0!==a.detailedNetworkType&&g.I(b,7,PO[a.detailedNetworkType]);void 0!==a.isAd&&g.I(b,8,a.isAd);void 0!==a.offlineModeType&&g.I(b,9,oHa[a.offlineModeType]);void 0!==a.storageFormat&&g.I(b,24,pHa[a.storageFormat]);void 0!==a.offlineSourceVeType&&g.I(b,32,a.offlineSourceVeType);void 0!==a.listId&&g.I(b,10,a.listId);void 0!==a.offlineabilityFormatType&&
g.I(b,11,QO[a.offlineabilityFormatType]);void 0!==a.offlineAudioQuality&&g.I(b,29,qHa[a.offlineAudioQuality]);void 0!==a.softErrorCount&&g.I(b,12,a.softErrorCount);void 0!==a.pendingStateFlags&&g.I(b,13,a.pendingStateFlags);void 0!==a.unusedOfflineVideoPendingState&&g.I(b,14,rHa[a.unusedOfflineVideoPendingState]);void 0!==a.isRefresh&&g.I(b,15,a.isRefresh);void 0!==a.isNewPlayerResponse&&g.I(b,16,a.isNewPlayerResponse);void 0!==a.isOfflineShareable&&g.I(b,17,a.isOfflineShareable);void 0!==a.hasContentVerificationSignature&&
g.I(b,18,a.hasContentVerificationSignature);void 0!==a.isOfflineInterleaving&&g.I(b,19,a.isOfflineInterleaving);void 0!==a.blockSizeBytes&&g.I(b,25,a.blockSizeBytes);void 0!==a.streamVerificationStrategy&&g.I(b,26,RO[a.streamVerificationStrategy]);a.streamVerificationFailedBlocks&&BO(b.j.bind(b),a.streamVerificationFailedBlocks,sHa);if(a.spacecastInfo){a:{var xf=a.spacecastInfo,Te=new Ht;try{void 0!==xf.applianceId&&g.I(Te,1,xf.applianceId);void 0!==xf.transferredFromCache&&g.I(Te,2,tHa[xf.transferredFromCache]);
var yf=Te;break a}catch(Ua){X(Ua)}yf=void 0}J(b,Ht,28,yf)}void 0!==a.transferType&&g.I(b,33,uHa[a.transferType]);void 0!==a.onlyDownloadOnWifi&&g.I(b,34,a.onlyDownloadOnWifi);void 0!==a.appLifecycleStatus&&g.I(b,35,vHa[a.appLifecycleStatus]);void 0!==a.isDefaultDownloadToSdCard&&g.I(b,36,a.isDefaultDownloadToSdCard);void 0!==a.serializedLoggingParams&&Dg(b,39,a.serializedLoggingParams);void 0!==a.transferServiceStartedFromBackground&&g.I(b,40,a.transferServiceStartedFromBackground);void 0!==a.transferFirstStarted&&
g.I(b,42,a.transferFirstStarted);return b}catch(Ua){X(Ua)}};
XGa=function(a){var b=new ar;try{if(a.datapushBuild){var c=xHa(a.datapushBuild);J(b,Zq,1,c)}return b}catch(d){X(d)}};
xHa=function(a){var b=new Zq;try{return void 0!==a.buildId&&g.I(b,1,a.buildId),void 0!==a.clientExperimentId&&g.I(b,2,a.clientExperimentId),void 0!==a.accessType&&g.I(b,3,yHa[a.accessType]),b}catch(c){X(c)}};
YGa=function(a){var b=new $q;try{if(a.datapushBuild){var c=xHa(a.datapushBuild);J(b,Zq,1,c)}return b}catch(d){X(d)}};
OO=function(a){var b=new cs;try{return a.stackTraces&&BO(b.B.bind(b),a.stackTraces,zHa),a.allModules&&BO(b.j.bind(b),a.allModules,AHa),void 0!==a.appVersionCode&&g.I(b,3,a.appVersionCode),b}catch(c){X(c)}};
zHa=function(a){var b=new bs;try{if(a.mainThread){var c=BHa(a.mainThread);J(b,as,1,c)}a.backgroundThreads&&BO(b.j.bind(b),a.backgroundThreads,BHa);a.metaData&&BO(b.B.bind(b),a.metaData,CHa);return b}catch(d){X(d)}};
BHa=function(a){var b=new as;try{a.stackFrames&&BO(b.j.bind(b),a.stackFrames,DHa);void 0!==a.androidStack&&g.I(b,6,a.androidStack);void 0!==a.threadName&&g.I(b,2,a.threadName);void 0!==a.cpuUsage&&Ag(b,3,a.cpuUsage);void 0!==a.cpuTimeSec&&g.I(b,4,a.cpuTimeSec);if(a.iosThreadInfo){a:{var c=a.iosThreadInfo,d=new Zr;try{void 0!==c.state&&d.Fc(EHa[c.state]);void 0!==c.flag&&g.I(d,2,FHa[c.flag]);void 0!==c.currentPriority&&g.I(d,3,c.currentPriority);void 0!==c.priority&&g.I(d,4,c.priority);void 0!==c.maxPriority&&
g.I(d,5,c.maxPriority);void 0!==c.isCrashedThread&&g.I(d,6,c.isCrashedThread);var e=d;break a}catch(f){X(f)}e=void 0}J(b,Zr,5,e)}return b}catch(f){X(f)}};
DHa=function(a){var b=new $r;try{return void 0!==a.instructionOffset&&g.I(b,1,a.instructionOffset),void 0!==a.moduleIndex&&g.I(b,2,a.moduleIndex),b}catch(c){X(c)}};
CHa=function(a){var b=new Yr;try{return void 0!==a.clientTimestampMs&&g.I(b,1,a.clientTimestampMs),void 0!==a.sampleTimeCostMs&&Ag(b,2,a.sampleTimeCostMs),void 0!==a.numberOfBustedFrames&&g.I(b,3,a.numberOfBustedFrames),void 0!==a.droppedFrameDurationMs&&g.I(b,4,a.droppedFrameDurationMs),void 0!==a.deviceOrientation&&g.I(b,5,GHa[a.deviceOrientation]),void 0!==a.processUptimeMs&&g.I(b,6,a.processUptimeMs),void 0!==a.memoryUsageKbytes&&g.I(b,7,a.memoryUsageKbytes),void 0!==a.batteryPercentage&&Ag(b,
8,a.batteryPercentage),void 0!==a.exceptionName&&g.I(b,9,a.exceptionName),void 0!==a.exceptionReason&&g.I(b,10,a.exceptionReason),void 0!==a.signalNumber&&g.I(b,11,a.signalNumber),void 0!==a.signalCode&&g.I(b,12,a.signalCode),b}catch(c){X(c)}};
AHa=function(a){var b=new Xr;try{return void 0!==a.moduleUuid&&Dg(b,1,a.moduleUuid),void 0!==a.moduleName&&g.I(b,2,a.moduleName),void 0!==a.loadAddress&&g.I(b,3,a.loadAddress),b}catch(c){X(c)}};
$Ga=function(a){var b=new ns;try{return void 0!==a.key&&g.I(b,1,a.key),void 0!==a.value&&b.setValue(a.value),b}catch(c){X(c)}};
eHa=function(a){var b=new es;try{return void 0!==a.batteryLevelMicros&&g.I(b,1,a.batteryLevelMicros),void 0!==a.networkType&&g.I(b,2,PO[a.networkType]),void 0!==a.screenBrightness&&Ag(b,3,a.screenBrightness),void 0!==a.isLowPowerMode&&g.I(b,4,a.isLowPowerMode),void 0!==a.isBackground&&g.I(b,5,a.isBackground),void 0!==a.isStateTransition&&g.I(b,6,a.isStateTransition),void 0!==a.observedBackgroundFetchMethodCallback&&g.I(b,7,a.observedBackgroundFetchMethodCallback),void 0!==a.observedBackgroundTaskDidExpire&&
g.I(b,8,a.observedBackgroundTaskDidExpire),b}catch(c){X(c)}};
fHa=function(a){var b=new Vr;try{return void 0!==a.batteryLevelMicros&&g.I(b,1,a.batteryLevelMicros),void 0!==a.networkType&&g.I(b,2,PO[a.networkType]),void 0!==a.screenBrightness&&g.I(b,3,a.screenBrightness),void 0!==a.screenBrightnessMode&&g.I(b,4,HHa[a.screenBrightnessMode]),void 0!==a.lowPowerMode&&g.I(b,5,IHa[a.lowPowerMode]),void 0!==a.batteryHealth&&g.I(b,6,JHa[a.batteryHealth]),b}catch(c){X(c)}};
hHa=function(a){var b=new As;try{return void 0!==a.className&&g.I(b,1,a.className),void 0!==a.instanceNum&&g.I(b,2,a.instanceNum),void 0!==a.instanceSizeBytes&&g.I(b,3,a.instanceSizeBytes),void 0!==a.allocationNum&&g.I(b,4,a.allocationNum),void 0!==a.deallocationNum&&g.I(b,5,a.deallocationNum),b}catch(c){X(c)}};
iHa=function(a){var b=new Es;try{return void 0!==a.index&&g.I(b,1,a.index),void 0!==a.networkEventType&&g.I(b,2,KHa[a.networkEventType]),void 0!==a.path&&g.I(b,3,a.path),void 0!==a.failureReason&&g.I(b,4,LHa[a.failureReason]),void 0!==a.startTimeMs&&g.I(b,5,a.startTimeMs),void 0!==a.totalDurationMs&&g.I(b,6,a.totalDurationMs),void 0!==a.requestSize&&g.I(b,7,a.requestSize),void 0!==a.responseSize&&g.I(b,8,a.responseSize),a.networkRequestAttempt&&BO(b.j.bind(b),a.networkRequestAttempt,MHa),void 0!==
a.httpMethod&&g.I(b,10,NHa[a.httpMethod]),b}catch(c){X(c)}};
MHa=function(a){var b=new Ds;try{return void 0!==a.failureReason&&g.I(b,1,LHa[a.failureReason]),void 0!==a.startTimeMs&&g.I(b,5,a.startTimeMs),void 0!==a.durationMs&&g.I(b,2,a.durationMs),void 0!==a.networkAvailable&&g.I(b,3,OHa[a.networkAvailable]),b}catch(c){X(c)}};
kHa=function(a){var b=new Is;try{return void 0!==a.threadPoolName&&g.I(b,1,a.threadPoolName),void 0!==a.threadCount&&g.I(b,2,a.threadCount),void 0!==a.startedTaskCount&&g.I(b,3,a.startedTaskCount),void 0!==a.finishedTaskCount&&g.I(b,4,a.finishedTaskCount),void 0!==a.runningTimeMs&&g.I(b,5,a.runningTimeMs),void 0!==a.waitingTimeMs&&g.I(b,6,a.waitingTimeMs),void 0!==a.runCount&&g.I(b,7,a.runCount),void 0!==a.runningPercent&&g.I(b,8,a.runningPercent),b}catch(c){X(c)}};
nHa=function(a){var b=new ws;try{void 0!==a.curveTimestampMs&&g.I(b,1,a.curveTimestampMs);void 0!==a.curveWeight&&Ag(b,2,a.curveWeight);void 0!==a.realTimestampMs&&g.I(b,3,a.realTimestampMs);void 0!==a.sampleCostUsec&&g.I(b,4,a.sampleCostUsec);if(a.compactStackTraceSample){var c=OO(a.compactStackTraceSample);J(b,cs,5,c)}return b}catch(d){X(d)}};
sHa=function(a){var b=new Gt;try{return void 0!==a.itag&&g.I(b,1,a.itag),void 0!==a.startingByte&&g.I(b,2,a.startingByte),b}catch(c){X(c)}};
THa=function(a){var b=new Zu;try{void 0!==a.id&&g.I(b,1,a.id);void 0!==a.videoState&&g.I(b,2,PHa[a.videoState]);void 0!==a.pendingStateFlags&&g.I(b,3,a.pendingStateFlags);void 0!==a.totalBytes&&g.I(b,21,a.totalBytes);void 0!==a.downloadedBytes&&g.I(b,4,a.downloadedBytes);void 0!==a.selectedVideoQuality&&g.I(b,5,QO[a.selectedVideoQuality]);void 0!==a.selectedOfflineMode&&g.I(b,6,oHa[a.selectedOfflineMode]);void 0!==a.playerResponseSavedTimeMs&&g.I(b,7,a.playerResponseSavedTimeMs);void 0!==a.offlineStateUpdateTimeMs&&
g.I(b,8,a.offlineStateUpdateTimeMs);void 0!==a.offlineStateExpiresInS&&g.I(b,9,a.offlineStateExpiresInS);void 0!==a.durationInS&&g.I(b,10,a.durationInS);void 0!==a.isInPlaylist&&g.I(b,11,a.isInPlaylist);void 0!==a.addedNetworkType&&g.I(b,12,PO[a.addedNetworkType]);void 0!==a.downloadCompletedNetworkType&&g.I(b,13,PO[a.downloadCompletedNetworkType]);a.captions&&BO(b.j.bind(b),a.captions,QHa);void 0!==a.unusedOfflineVideoPendingState&&g.I(b,15,rHa[a.unusedOfflineVideoPendingState]);void 0!==a.lastPlaybackTimestampMs&&
g.I(b,16,a.lastPlaybackTimestampMs);a.offlineSuspendedStates&&BO(b.B.bind(b),a.offlineSuspendedStates,RHa);void 0!==a.streamInLocalStorage&&g.I(b,18,a.streamInLocalStorage);void 0!==a.streamInInternalStorage&&g.I(b,19,a.streamInInternalStorage);if(a.storageIdStates){a:{var c=a.storageIdStates,d=new Yu;try{void 0!==c.storageId&&g.I(d,1,c.storageId);void 0!==c.storageIdSourceType&&g.I(d,2,SHa[c.storageIdSourceType]);var e=d;break a}catch(n){X(n)}e=void 0}J(b,Yu,20,e)}void 0!==a.cotn&&g.I(b,22,a.cotn);
if(a.additionalVideoClientState){var f=new Wu;J(b,Wu,23,f)}if(a.offlineVideoEntityMigrationState){a:{var h=a.offlineVideoEntityMigrationState,l=new av;try{void 0!==h.isInOfflineStore&&g.I(l,1,h.isInOfflineStore);void 0!==h.isPlaybackDataEntityPresent&&g.I(l,2,h.isPlaybackDataEntityPresent);void 0!==h.wasPlaybackDataEntityUsedToFillVideoState&&g.I(l,3,h.wasPlaybackDataEntityUsedToFillVideoState);void 0!==h.isTransferEntityPresent&&g.I(l,4,h.isTransferEntityPresent);void 0!==h.wasTransferEntityUsedToFillVideoState&&
g.I(l,5,h.wasTransferEntityUsedToFillVideoState);void 0!==h.offlineStoreCaptionTrackCount&&g.I(l,6,h.offlineStoreCaptionTrackCount);void 0!==h.entityStoreCaptionTrackCount&&g.I(l,7,h.entityStoreCaptionTrackCount);void 0!==h.isMetadataEntityPresent&&g.I(l,8,h.isMetadataEntityPresent);var m=l;break a}catch(n){X(n)}m=void 0}J(b,av,24,m)}return b}catch(n){X(n)}};
QHa=function(a){var b=new $u;try{return void 0!==a.format&&g.I(b,1,a.format),void 0!==a.isDownloaded&&g.I(b,2,a.isDownloaded),b}catch(c){X(c)}};
RHa=function(a){var b=new Xu;try{return void 0!==a.totalDownloadedBytes&&g.I(b,1,a.totalDownloadedBytes),void 0!==a.totalSegmentCount&&g.I(b,2,a.totalSegmentCount),void 0!==a.backgroundTransitionCount&&g.I(b,3,a.backgroundTransitionCount),void 0!==a.totalDurationMs&&g.I(b,4,a.totalDurationMs),void 0!==a.downloadErrorCount&&g.I(b,5,a.downloadErrorCount),void 0!==a.totalDownloadedSizePercent&&g.I(b,6,a.totalDownloadedSizePercent),b}catch(c){X(c)}};
VHa=function(a){var b=new Vu;try{return void 0!==a.id&&g.I(b,1,a.id),a.videoIds&&BO(b.j.bind(b),a.videoIds),void 0!==a.videoCount&&g.I(b,3,a.videoCount),void 0!==a.successCount&&g.I(b,4,a.successCount),void 0!==a.failCount&&g.I(b,5,a.failCount),void 0!==a.pendingCount&&g.I(b,6,a.pendingCount),void 0!==a.disabledCount&&g.I(b,7,a.disabledCount),void 0!==a.deletedCount&&g.I(b,8,a.deletedCount),void 0!==a.selectedVideoQuality&&g.I(b,9,QO[a.selectedVideoQuality]),void 0!==a.isPlaylistOwner&&g.I(b,10,a.isPlaylistOwner),
void 0!==a.lastSyncTimeMs&&g.I(b,11,a.lastSyncTimeMs),void 0!==a.requestSource&&g.I(b,12,UHa[a.requestSource]),b}catch(c){X(c)}};
XHa=function(a){var b=new Pu;try{return void 0!==a.videoId&&b.setVideoId(a.videoId),void 0!==a.itag&&g.I(b,6,a.itag),void 0!==a.failureReason&&g.I(b,2,SO[a.failureReason]),void 0!==a.isCachedExternally&&g.I(b,3,a.isCachedExternally),void 0!==a.previousFailureReason&&g.I(b,4,SO[a.previousFailureReason]),void 0!==a.previousFailureReasonTimestampMs&&g.I(b,5,a.previousFailureReasonTimestampMs),void 0!==a.streamVerificationStrategy&&g.I(b,7,RO[a.streamVerificationStrategy]),void 0!==a.blockSizeBytes&&
g.I(b,8,a.blockSizeBytes),a.streamVerificationFailedBlocks&&BO(b.j.bind(b),a.streamVerificationFailedBlocks,WHa),void 0!==a.primaryVerificationStrategy&&g.I(b,10,RO[a.primaryVerificationStrategy]),void 0!==a.secondaryVerificationStrategy&&g.I(b,11,RO[a.secondaryVerificationStrategy]),void 0!==a.secondaryFailureReason&&g.I(b,12,SO[a.secondaryFailureReason]),b}catch(c){X(c)}};
WHa=function(a){var b=new Qu;try{return void 0!==a.itag&&g.I(b,1,a.itag),void 0!==a.startingByte&&g.I(b,2,a.startingByte),b}catch(c){X(c)}};
YHa=function(a){var b=new Ru;try{return void 0!==a.videoId&&b.setVideoId(a.videoId),void 0!==a.surrogateVideoId&&g.I(b,2,a.surrogateVideoId),b}catch(c){X(c)}};
ZHa=function(a){var b=new Su;try{return void 0!==a.externalVideoId&&g.I(b,1,a.externalVideoId),void 0!==a.videoSid&&g.I(b,2,a.videoSid),b}catch(c){X(c)}};
WO=function(a){var b=new Br;try{if(a.opportunityData){a:{var c=a.opportunityData,d=new wr;try{if(c.debugData){b:{var e=c.debugData,f=new xr;try{e.slots&&BO(f.j.bind(f),e.slots,$Ha);void 0!==e.associatedSlotId&&g.I(f,2,e.associatedSlotId);var h=f;break b}catch(Ja){X(Ja)}h=void 0}J(d,xr,2,h)}void 0!==c.opportunityType&&g.I(d,3,aIa[c.opportunityType]);var l=d;break a}catch(Ja){X(Ja)}l=void 0}J(b,wr,1,l)}if(a.slotData){var m=$Ha(a.slotData);J(b,ur,2,m)}if(a.layoutData){a:{var n=a.layoutData,p=new sr;
try{void 0!==n.type&&g.I(p,2,bIa[n.type]);if(n.debugData){b:{var q=n.debugData,r=new tr;try{void 0!==q.layoutId&&g.I(r,1,q.layoutId);q.exitNormalTriggerData&&BO(r.n_.bind(r),q.exitNormalTriggerData,TO);q.exitSkipTriggerData&&BO(r.o_.bind(r),q.exitSkipTriggerData,TO);q.exitMuteTriggerData&&BO(r.m_.bind(r),q.exitMuteTriggerData,TO);q.exitUserInputSubmittedTriggerData&&BO(r.q_.bind(r),q.exitUserInputSubmittedTriggerData,TO);q.exitUserCancelledTriggerData&&BO(r.p_.bind(r),q.exitUserCancelledTriggerData,
TO);var w=r;break b}catch(Ja){X(Ja)}w=void 0}J(p,tr,3,w)}void 0!==n.controlFlowManagerLayer&&g.I(p,4,cIa[n.controlFlowManagerLayer]);void 0!==n.pingTriggerTypes&&CO(p.j.bind(p),n.pingTriggerTypes,UO);var x=p;break a}catch(Ja){X(Ja)}x=void 0}J(b,sr,3,x)}if(a.triggerData){var z=TO(a.triggerData);J(b,rr,4,z)}if(a.pingData){a:{var B=a.pingData,C=new yr;try{void 0!==B.sourceTriggerType&&g.I(C,1,UO[B.sourceTriggerType]);B.debugData&&BO(C.j.bind(C),B.debugData,dIa);void 0!==B.pingCount&&g.I(C,3,B.pingCount);
void 0!==B.pingDispatchStatus&&g.I(C,4,eIa[B.pingDispatchStatus]);void 0!==B.serializedAdPingMetadata&&Dg(C,5,B.serializedAdPingMetadata);if(B.pingDebugData){b:{var G=B.pingDebugData,F=new Ar;try{void 0!==G.substitutedMacros&&CO(F.j.bind(F),G.substitutedMacros,VO);void 0!==G.unsubstitutedMacros&&CO(F.B.bind(F),G.unsubstitutedMacros,VO);var K=F;break b}catch(Ja){X(Ja)}K=void 0}J(C,Ar,6,K)}void 0!==B.pingIndex&&g.I(C,8,B.pingIndex);var L=C;break a}catch(Ja){X(Ja)}L=void 0}J(b,yr,6,L)}if(a.externalContext){a:{var N=
a.externalContext,ba=new or;try{if(N.organicPlaybackContext){b:{var T=N.organicPlaybackContext,S=new nr;try{void 0!==T.contentCpn&&g.I(S,1,T.contentCpn);void 0!==T.isLivePlayback&&g.I(S,2,T.isLivePlayback);void 0!==T.isOfflinePlayback&&g.I(S,3,T.isOfflinePlayback);void 0!==T.isMdxPlayback&&g.I(S,4,T.isMdxPlayback);void 0!==T.isDaiContent&&g.I(S,5,T.isDaiContent);void 0!==T.isPrefetchedPlayback&&g.I(S,6,T.isPrefetchedPlayback);var ea=S;break b}catch(Ja){X(Ja)}ea=void 0}J(ba,nr,1,ea)}if(N.html5ExperimentContext){b:{var Q=
N.html5ExperimentContext,sa=new mr;try{void 0!==Q.ytExperimentId&&g.I(sa,1,Q.ytExperimentId);var ha=sa;break b}catch(Ja){X(Ja)}ha=void 0}J(ba,mr,2,ha)}if(N.adVideoPlaybackContext){b:{var ta=N.adVideoPlaybackContext,Pa=new lr;try{void 0!==ta.adVideoCpn&&g.I(Pa,1,ta.adVideoCpn);var vb=Pa;break b}catch(Ja){X(Ja)}vb=void 0}J(ba,lr,3,vb)}var xa=ba;break a}catch(Ja){X(Ja)}xa=void 0}J(b,or,5,xa)}return b}catch(Ja){X(Ja)}};
$Ha=function(a){var b=new ur;try{void 0!==a.type&&g.I(b,2,fIa[a.type]);void 0!==a.entryTriggerType&&g.I(b,6,UO[a.entryTriggerType]);void 0!==a.slotPhysicalPosition&&g.I(b,8,a.slotPhysicalPosition);if(a.debugData){a:{var c=a.debugData,d=new vr;try{void 0!==c.slotId&&g.I(d,1,c.slotId);void 0!==c.entryTriggerTypes&&CO(d.B.bind(d),c.entryTriggerTypes,UO);void 0!==c.unscheduledDueToError&&g.I(d,3,c.unscheduledDueToError);c.entryTriggerData&&BO(d.j.bind(d),c.entryTriggerData,TO);if(c.slotEntryTriggerData){var e=
TO(c.slotEntryTriggerData);J(d,rr,7,e)}c.fulfillmentTriggerData&&BO(d.J.bind(d),c.fulfillmentTriggerData,TO);c.expirationTriggerData&&BO(d.I.bind(d),c.expirationTriggerData,TO);var f=d;break a}catch(h){X(h)}f=void 0}J(b,vr,3,f)}void 0!==a.externallyManaged&&g.I(b,4,a.externallyManaged);void 0!==a.controlFlowManagerLayer&&g.I(b,5,cIa[a.controlFlowManagerLayer]);return b}catch(h){X(h)}};
TO=function(a){var b=new rr;try{void 0!==a.type&&g.I(b,1,UO[a.type]);void 0!==a.category&&g.I(b,2,gIa[a.category]);if(a.layoutIdEnteredTriggerData){a:{var c=a.layoutIdEnteredTriggerData,d=new pr;try{void 0!==c.enteredLayoutId&&g.I(d,1,c.enteredLayoutId);var e=d;break a}catch(m){X(m)}e=void 0}zg(b,pr,3,hIa,e)}if(a.triggerSourceData){a:{var f=a.triggerSourceData,h=new qr;try{void 0!==f.associatedSlotId&&g.vg(h,1,iIa,f.associatedSlotId);void 0!==f.associatedLayoutId&&g.vg(h,2,iIa,f.associatedLayoutId);
var l=h;break a}catch(m){X(m)}l=void 0}zg(b,qr,4,hIa,l)}void 0!==a.shouldOnlyTriggerOnce&&g.I(b,5,a.shouldOnlyTriggerOnce);return b}catch(m){X(m)}};
dIa=function(a){var b=new zr;try{return void 0!==a.macros&&CO(b.j.bind(b),a.macros,VO),void 0!==a.success&&g.I(b,2,a.success),b}catch(c){X(c)}};
XO=function(a){var b=new Pr;try{return void 0!==a.startMs&&Bg(b,1,a.startMs),void 0!==a.endMs&&Bg(b,2,a.endMs),b}catch(c){X(c)}};
jIa=function(a){var b=new Dr;try{return void 0!==a.externalVideoId&&g.I(b,1,a.externalVideoId),void 0!==a.originalMediaDurationMs&&g.I(b,2,a.originalMediaDurationMs),void 0!==a.trimmedMediaDurationMs&&g.I(b,3,a.trimmedMediaDurationMs),b}catch(c){X(c)}};
kIa=function(a){var b=new Dt;try{return void 0!==a.orchestrationActionId&&g.I(b,1,a.orchestrationActionId),b}catch(c){X(c)}};
oIa=function(a){var b=new fu;try{if(a.itemId){a:{var c=a.itemId,d=new ir;try{void 0!==c.type&&g.I(d,1,YO[c.type]);void 0!==c.externalId&&g.I(d,2,c.externalId);var e=d;break a}catch(m){X(m)}e=void 0}J(b,ir,1,e)}void 0!==a.productType&&g.I(b,2,ZO[a.productType]);if(a.alcLoggingParams){a:{var f=a.alcLoggingParams,h=new eu;try{void 0!==f.purchaseOriginEntityType&&g.I(h,1,lIa[f.purchaseOriginEntityType]);void 0!==f.purchaseOriginPageType&&g.I(h,2,mIa[f.purchaseOriginPageType]);var l=h;break a}catch(m){X(m)}l=
void 0}zg(b,eu,3,nIa,l)}return b}catch(m){X(m)}};
RIa=function(a){var b=new Vs;try{if(a.dimensions){a:{var c=a.dimensions,d=new Ws;try{void 0!==c.csn&&g.I(d,1,c.csn);void 0!==c.userExperienceId&&g.I(d,2,c.userExperienceId);if(c.studio){b:{var e=c.studio,f=new Ss;try{void 0!==e.route&&g.I(f,1,e.route);void 0!==e.feature&&g.I(f,2,pIa[e.feature]);void 0!==e.topEntityType&&g.I(f,3,qIa[e.topEntityType]);void 0!==e.availability&&g.I(f,4,rIa[e.availability]);void 0!==e.isChannelDelegation&&g.I(f,5,e.isChannelDelegation);void 0!==e.isArtistDelegation&&g.I(f,
6,e.isArtistDelegation);void 0!==e.environment&&g.I(f,7,sIa[e.environment]);void 0!==e.networkConnectionStatus&&g.I(f,8,tIa[e.networkConnectionStatus]);var h=f;break b}catch(ha){X(ha)}h=void 0}J(d,Ss,3,h)}if(c.mweb){b:{var l=c.mweb,m=new Rs;try{void 0!==l.pageType&&g.I(m,1,uIa[l.pageType]);void 0!==l.navType&&g.I(m,2,vIa[l.navType]);var n=m;break b}catch(ha){X(ha)}n=void 0}J(d,Rs,4,n)}if(c.mainAppWeb){b:{var p=c.mainAppWeb,q=new Qs;try{void 0!==p.pageType&&g.I(q,1,wIa[p.pageType]);void 0!==p.requestType&&
g.I(q,2,xIa[p.requestType]);void 0!==p.isShellLoad&&g.I(q,3,p.isShellLoad);var r=q;break b}catch(ha){X(ha)}r=void 0}J(d,Qs,5,r)}if(c.survivalSli){b:{var w=c.survivalSli,x=new Os;try{void 0!==w.partitionMinute&&g.I(x,1,w.partitionMinute);void 0!==w.survivalStatus&&g.I(x,2,yIa[w.survivalStatus]);void 0!==w.survivalSessionType&&g.I(x,3,zIa[w.survivalSessionType]);var z=x;break b}catch(ha){X(ha)}z=void 0}J(d,Os,6,z)}if(c.tvhtml5){b:{var B=c.tvhtml5,C=new Ts;try{void 0!==B.authRefreshTokenFailureType&&
g.I(C,1,AIa[B.authRefreshTokenFailureType]);void 0!==B.networkErrorEndpoint&&g.I(C,2,BIa[B.networkErrorEndpoint]);void 0!==B.networkErrorResponseCode&&g.I(C,3,B.networkErrorResponseCode);void 0!==B.sessionSurvivalLengthMin&&g.I(C,4,B.sessionSurvivalLengthMin);void 0!==B.accountChangeType&&g.I(C,5,CIa[B.accountChangeType]);void 0!==B.accountChangeTrigger&&g.I(C,6,DIa[B.accountChangeTrigger]);void 0!==B.cpn&&g.I(C,7,B.cpn);void 0!==B.sessionSurvivalDidUserAgentChange&&g.I(C,8,B.sessionSurvivalDidUserAgentChange);
void 0!==B.adShownToPremiumUserCondition&&g.I(C,9,EIa[B.adShownToPremiumUserCondition]);void 0!==B.identityType&&g.I(C,10,FIa[B.identityType]);void 0!==B.identityDelegationType&&g.I(C,11,GIa[B.identityDelegationType]);void 0!==B.botguardServerEnvironment&&g.I(C,12,HIa[B.botguardServerEnvironment]);void 0!==B.accountEventTrigger&&g.I(C,13,IIa[B.accountEventTrigger]);void 0!==B.signInMethodType&&g.I(C,14,JIa[B.signInMethodType]);void 0!==B.accountEventErrorType&&g.I(C,15,KIa[B.accountEventErrorType]);
void 0!==B.hadRemoteDeviceConnected&&g.I(C,16,B.hadRemoteDeviceConnected);void 0!==B.hadVoiceInitiatedPlayback&&g.I(C,17,B.hadVoiceInitiatedPlayback);void 0!==B.restartLengthMin&&g.I(C,18,B.restartLengthMin);void 0!==B.restartReason&&g.I(C,19,LIa[B.restartReason]);void 0!==B.numberOfPersonaAccountsDelta&&g.I(C,20,B.numberOfPersonaAccountsDelta);var G=C;break b}catch(ha){X(ha)}G=void 0}J(d,Ts,7,G)}if(c.unpluggedWeb){b:{var F=c.unpluggedWeb,K=new Us;try{void 0!==F.unpluggedWebEntitlementType&&g.I(K,
1,MIa[F.unpluggedWebEntitlementType]);void 0!==F.unpluggedWebPurchaseType&&g.I(K,2,NIa[F.unpluggedWebPurchaseType]);var L=K;break b}catch(ha){X(ha)}L=void 0}J(d,Us,8,L)}void 0!==c.logEventStatus&&g.I(d,9,c.logEventStatus);if(c.kids){b:{var N=c.kids,ba=new Ps;try{void 0!==N.userType&&g.I(ba,1,OIa[N.userType]);var T=ba;break b}catch(ha){X(ha)}T=void 0}J(d,Ps,10,T)}void 0!==c.screen&&g.I(d,11,c.screen);if(c.navigation){b:{var S=c.navigation,ea=new Ns;try{void 0!==S.destinationScreen&&g.I(ea,1,S.destinationScreen);
void 0!==S.navType&&g.I(ea,2,PIa[S.navType]);var Q=ea;break b}catch(ha){X(ha)}Q=void 0}J(d,Ns,12,Q)}var sa=d;break a}catch(ha){X(ha)}sa=void 0}J(b,Ws,1,sa)}a.records&&BO(b.j.bind(b),a.records,QIa);return b}catch(ha){X(ha)}};
QIa=function(a){var b=new Xs;try{return void 0!==a.name&&g.I(b,1,SIa[a.name]),void 0!==a.status&&g.I(b,2,TIa[a.status]),void 0!==a.state&&b.Fc(UIa[a.state]),void 0!==a.sliId&&g.I(b,4,a.sliId),b}catch(c){X(c)}};
$O=function(){};
VIa=function(){var a=navigator;return new Promise(function(b,c){var d;null!=(d=a.webkitTemporaryStorage)&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
Zw=function(a,b){var c=this;this.handleError=a;this.j=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0});
this.B=Math.random()<=g.pv("ytidb_transaction_ended_event_rate_limit_session",.2)};
XIa=function(a,b){$O.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:WIa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:WIa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
WIa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
aP=function(){this.state=1;this.j=null};
ZIa=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Fc(2),g.YA(c,function(){if(window[h])YIa(a,d,h,e);else{a.Fc(3);var l=ora(c),m=document.getElementById(l);m&&(Dpa(l),m.parentNode.removeChild(m));g.sA(new g.Sw("Unable to load Botguard","from "+c))}},f)):b?(f=g.Oe("SCRIPT"),b instanceof Fd?(f.textContent=vba(b),Vi(f)):f.textContent=b,f.nonce=ce(),document.head.appendChild(f),document.head.removeChild(f),window[h]?YIa(a,d,h,e):(a.Fc(4),g.sA(new g.Sw("Unable to load Botguard from JS")))):g.sA(new g.Sw("Unable to load VM; no url or JS provided"))};
YIa=function(a,b,c,d){a.Fc(5);try{var e=new Ni({program:b,globalName:c,O5:g.ov("att_web_record_metrics")});e.o6.then(function(){a.Fc(6);d&&d(b)});
a.pN(e)}catch(f){a.Fc(7),f instanceof Error&&g.sA(f)}};
$Ia=function(a,b){var c=g.bP;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.QC()?Promise.race([new Promise(function(d,e){setTimeout(function(){setTimeout(function(){setTimeout(function(){e(Error("Timed out waiting for snapshot"))},0)},0)},b)}),
new Promise(function(d){c.QC()?c.FW({bx:a}).then(d):d(null)})]):Promise.resolve(null)};
cP=function(){var a=g.Fa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
dP=function(){aP.apply(this,arguments)};
fP=function(a){return!eP||(0,g.R)()-eP>a};
bJa=function(a,b){aJa(a.program,b.R5)&&(xC("bg_i",void 0,"player_att"),g.bP.initialize(a,function(){var c=a.serverEnvironment;xC("bg_l",void 0,"player_att");eP=(0,g.R)();for(var d=0;d<gP.length;d++){var e=gP[d];try{e(c)}catch(f){}}},b.cspNonce))};
cJa=function(a){a=void 0===a?{}:a;return g.bP.invoke(a)};
dJa=function(a){var b=g.pv("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return $Ia(a,b)};
aJa=function(a,b){return a?g.bP.isLoading()?!1:fP(b):!1};
g.hP=function(a,b){return a.Ba+"timedtext_video?ref=player&v="+b.videoId};
g.iP=function(a,b){a.feature=b;return a};
g.jP=function(a,b){b=g.Xh(b)||b;a.utm_source="yt-embeds-web";a.utm_medium=b};
g.eJa=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){var c=[];if(g.bP.isInitialized()){var d="";b.videoData&&b.videoData.Wj&&(d=b.videoData.Wj+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);xC("bg_v",void 0,"player_att");d=cJa(d);xC("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else xC("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.bP.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^AO())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.O("CATSTAT",0)))},a);
this.videoData&&this.videoData.Wj?this.j=zv(this.videoData.Wj):this.j={}};
g.fJa=function(a){if(a.videoData&&a.videoData.Wj){for(var b=[a.videoData.Wj],c=g.t(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.u[d]&&(d=a.u[d](a.j))&&b.push(d);return b.join("&")}return null};
hJa=function(a){var b={};Object.assign(b,a.u);g.ov("player_attestation_bg_async")&&(b.c1a=function(){return gJa(a)});
if(a.videoData&&a.videoData.Wj){for(var c=[a.videoData.Wj],d=g.t(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.j[e]&&b[e]&&(e=b[e](a.j))&&c.push(e);return new Promise(function(f,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
g.kP=function(a,b){bJa(a,{R5:g.wG(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
gJa=function(a){function b(e){return e+"&r1d="+g.bP.getState()}
if(!g.bP.isInitialized())return xC("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve(b("r1c=1")):Promise.resolve(b("r1c=4"));var c="";a.videoData&&a.videoData.Wj&&(c=a.videoData.Wj+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){xC("bg_v",void 0,"player_att");dJa(d).then(function(f){f?(xC("bg_s",void 0,"player_att"),e(b("r1a="+f))):(xC("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){xC("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
g.mP=function(a){var b=a.V(),c=g.lP(b),d=a.ya;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=YJ(a);"leanback"===f?e="WATCH":b.N("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Rb?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.zn)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:iJa[e]}});a.Kw&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.oa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Wh&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=jJa[b];c.request=d;d=c.user||{};if(b=a.Ka)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Ac)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c};
g.lP=function(a){var b=g.jM(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.t(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.deviceParams.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.N("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,
{deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Ec)b.thirdParty={embedUrl:a};return b};
oJa=function(a,b,c){var d=a.videoId,e=g.mP(a),f=a.V(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(fz()),referer:document.location.toString(),signatureTimestamp:19345};g.Fw.getInstance();a.isAutonav&&(h.autonav=!0);g.Gw(0,141)&&(h.autonavState=g.Gw(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Gw(0,66);aK(a)&&(h.autoplay=!0);f.D&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m=
{},n=[];l=l.split(",");l=g.t(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.t(q);for(var r=q.next();!r.done;r=q.next()){var w=g.t(r.value.split("="));r=w.next().value;w=faa(w);p[r]=w.join("=")}q=p.url;r=p.presetad;w=p.viralresponseurl;var x=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),r&&(m.presetAd=r),w&&(m.viralAdResponseUrl=w),x&&(m.viralCampaignId=
String(x));else if("video_ad"===p.adtype){var z={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=kJa[p.breaktype])z.breakType=p;q&&(z.url=q);r&&(z.presetAd=r);w&&(z.viralAdResponseUrl=w);x&&(z.viralCampaignId=String(x));n.push(z)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.wI;if(null!=m){m={startWalltime:String(m)};if(n=a.Ql)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.xk&&(h.splay=!0);m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.mp)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Ui){n=a.wL;l=[];p=g.t(p.split(","));for(q=p.next();!q.done;q=p.next())if(r=q.value)if((q=r.startsWith("!"))&&(r=r.substr(1)),r=r.split("-"),!(3>r.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:lJa[r[1]]||"UNKNOWN_FORM_FACTOR",clientName:mJa[r[0]]||"UNKNOWN_INTERFACE",
clientVersion:r[2]||"",platform:nJa[r[1]]||"UNKNOWN_PLATFORM"};r=void 0;if(n){w=void 0;try{w=JSON.parse(n)}catch(B){g.sA(B)}w&&(r={params:[{key:"ms",value:w.ms}]},q.osName=w.os_name,q.userAgent=w.user_agent,q.windowHeightPoints=w.window_height_points,q.windowWidthPoints=w.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});h.mdxContext=
m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.tH(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=
e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);e=a.V();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.Gw(g.Fw.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.SH(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.fQ&&(d.captionParams.deviceCaptionsLangPref=a.fQ);a.pH.length?d.captionParams.viewerSelectedCaptionLangs=a.pH:g.SH(e)&&(f=g.fva(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=
f);f="onesie"===a.fetchType&&a.N("html5_onesie_attach_po_token");h="onesie"!==a.fetchType&&a.N("html5_non_onesie_attach_po_token");if(f||h)a=a.V(),a.Rf&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Rf);e.N("fetch_att_independently")?(a=!e.N("html5_force_include_bg_data"),d.attestationRequest={omitBotguardData:a}):e.N("html5_exclude_bg_vm_data")&&(d.attestationRequest={omitBotguardData:!fP(g.wG(e.experiments,"bg_vm_reinit_threshold"))});return d};
qJa=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j)return c={context:g.lP(a.V()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.jO(pJa),g.y(f,g.qM(b,c,d),2);e=f.u;return f.return(e)})};
rJa=function(a,b,c){fP(g.wG(b.experiments,"bg_vm_reinit_threshold"))&&qJa(a,c).then(function(d){d&&(d=d.botguardData)&&g.kP(d,b)},function(d){a.isDisposed()||(d=eI(d),a.xa("attf",{error:d.errorCode}))})};
sJa=function(){this.Pw={}};
nP=function(a,b,c,d,e){b in a.Pw||(c=new g.yB(c,d,{id:b,priority:2,namespace:"appad"}),e.addCueRange(c),a.Pw[b]=c)};
oP=function(){g.E.apply(this,arguments);this.C=new Set;this.D={};this.J={};this.j={};this.I={};this.B={};this.u=void 0;this.T=new Set};
uJa=function(a){var b=void 0===b?5:b;return a?tJa[a]||b:b};
FP=function(a,b,c){g.E.call(this);this.app=a;this.state=b;this.playerType=c;this.j=!0;this.element=null};
vJa=function(a){KP(a,"getInternalApiInterface",a.getInternalApiInterface);KP(a,"cueVideoByPlayerVars",a.cueVideoByPlayerVars);KP(a,"loadVideoByPlayerVars",a.loadVideoByPlayerVars);KP(a,"preloadVideoByPlayerVars",a.preloadVideoByPlayerVars);KP(a,"getAdState",a.getAdState);KP(a,"sendAbandonmentPing",a.sendAbandonmentPing);KP(a,"setLoopRange",a.setLoopRange);KP(a,"getLoopRange",a.getLoopRange);KP(a,"setAutonavState",a.setAutonavState);KP(a,"seekToLiveHead",a.seekToLiveHead);KP(a,"seekToStreamTime",a.seekToStreamTime);
KP(a,"seekToChapterWithAnimation",a.seekToChapterWithAnimation);KP(a,"seekToTimeWithAnimation",a.seekToTimeWithAnimation);KP(a,"startSeekCsiAction",a.startSeekCsiAction);KP(a,"getStreamTimeOffset",a.getStreamTimeOffset);KP(a,"getVideoData",a.H0);KP(a,"setIsExternalPlaylist",a.setIsExternalPlaylist);KP(a,"setInlinePreview",a.setInlinePreview);KP(a,"downloadVideo",a.downloadVideo);KP(a,"updateDownloadState",a.updateDownloadState);KP(a,"queueOfflineAction",a.queueOfflineAction);KP(a,"pauseVideoDownload",
a.pauseVideoDownload);KP(a,"resumeVideoDownload",a.resumeVideoDownload);KP(a,"refreshAllVideos",a.refreshAllVideos);KP(a,"refreshAllStaleEntities",a.refreshAllStaleEntities);KP(a,"deleteVideos",a.deleteVideos);KP(a,"deleteAllVideos",a.deleteAllVideos);KP(a,"isOrchestrationLeader",a.isOrchestrationLeader);KP(a,"getAppState",a.getAppState);KP(a,"addInfoCardXml",a.addInfoCardXml);KP(a,"updateLastActiveTime",a.updateLastActiveTime);KP(a,"setBlackout",a.setBlackout);KP(a,"setUserEngagement",a.setUserEngagement);
KP(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);KP(a,"getPresentingPlayerType",a.getPresentingPlayerType);KP(a,"canPlayType",a.canPlayType);KP(a,"updatePlaylist",a.updatePlaylist);KP(a,"updateVideoData",a.updateVideoData);KP(a,"updateEnvironmentData",a.updateEnvironmentData);KP(a,"sendVideoStatsEngageEvent",a.sendVideoStatsEngageEvent);KP(a,"setCardsVisible",a.setCardsVisible);KP(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);KP(a,"setSafetyMode",a.setSafetyMode);
KP(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
KP(a,"getVideoAspectRatio",a.getVideoAspectRatio);KP(a,"getPreferredQuality",a.getPreferredQuality);KP(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);KP(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);KP(a,"onAdUxClicked",a.onAdUxClicked);KP(a,"getFeedbackProductData",a.getFeedbackProductData);KP(a,"getStoryboardFrame",a.getStoryboardFrame);KP(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);KP(a,"getStoryboardLevel",a.getStoryboardLevel);KP(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
KP(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);KP(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);KP(a,"addUtcCueRange",a.addUtcCueRange);KP(a,"showAirplayPicker",a.showAirplayPicker);KP(a,"addBgVersionChangeCallback",a.addBgVersionChangeCallback);KP(a,"dispatchReduxAction",a.dispatchReduxAction);KP(a,"getPlayerResponse",a.getPlayerResponse);KP(a,"changeMarkerVisibility",a.changeMarkerVisibility);KP(a,"setAutonav",a.setAutonav);KP(a,"isNotServable",a.isNotServable);KP(a,
"channelSubscribed",a.channelSubscribed);KP(a,"channelUnsubscribed",a.channelUnsubscribed);KP(a,"isPictureInPictureAllowed",a.isPictureInPictureAllowed);KP(a,"togglePictureInPicture",a.togglePictureInPicture);KP(a,"supportsGaplessAudio",a.supportsGaplessAudio);KP(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
KP(a,"clearQueue",a.clearQueue);KP(a,"isFastLoad",function(){return!1});
KP(a,"getAudioTrack",a.m0);KP(a,"setAudioTrack",a.setAudioTrack);KP(a,"getAvailableAudioTracks",a.n0);KP(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);KP(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);KP(a,"getStatsForNerds",a.getStatsForNerds);KP(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);KP(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);KP(a,"setMinimized",a.setMinimized);KP(a,"confirmYpcRental",a.confirmYpcRental);KP(a,"toggleSubtitlesOn",
a.toggleSubtitlesOn);KP(a,"handleExternalCall",a.handleExternalCall);KP(a,"logApiCall",a.logApiCall);KP(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);KP(a,"setScreenLayer",a.setScreenLayer);KP(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);KP(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);KP(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);KP(a,"setGlobalCrop",a.setGlobalCrop);KP(a,"syncVolume",a.syncVolume);KP(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);
KP(a,"getVisibilityState",a.getVisibilityState);KP(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);KP(a,"setInternalSize",a.setInternalSize)};
LP=function(a,b,c){a.state.D[b]=function(){return c.apply(a,g.ya.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||KP(a,b,c);a.state.C.add(b)};
MP=function(a,b,c){a.state.J[b]=function(){return c.apply(a,g.ya.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||KP(a,b,c);a.state.C.add(b)};
KP=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.ya.apply(0,arguments))}};
g.NP=function(a,b,c){return a.state.j[b].apply(a.state.j,g.u(c))};
rEa=function(a){a.state.u||(a.state.u={addEventListener:function(b,c){wJa(a,b,c)},
removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.Na(c));var d=a.state.B[c];d&&(a.app.yp.unsubscribe(b,d),g.Vc(a.state.B,c))}});
return a.state.u};
wJa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Na(c));if(!a.state.B[d]){var e;"string"===typeof c?e=function(){var h=g.ya.apply(0,arguments);g.Fa(c).apply(window,h)}:e=c;
var f=function(h){e({target:a.state.u,data:h})};
a.state.B[d]=f;a.app.yp.subscribe(b,f)}};
xJa=function(a,b){b=void 0===b?a.playerType:b;var c={};if(b=g.OP(a.app,b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=eK(b);c.errorCode=b.errorCode;if(b.B&&b.B.video){c.video_quality=b.B.video.quality;b=b.B.video;var d=[];32<b.fps&&d.push("hfr");b.isHdr()&&d.push("hdr");"bt2020"===b.primaries&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c};
g.QP=function(a){var b=PP(a.app.vb());if(b)return b.du();a=a.app.vb();a=g.DH(a.G.V())?a.Ue.get("music"):void 0;return a?a.du():null};
yJa=function(a,b,c){"string"===typeof a&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return RP(a)};
RP=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.t(zJa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
AJa=function(a,b,c,d){if(g.La(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
SP=function(a,b,c,d){FP.call(this,a,b,d);c&&(vJa(this),BJa(this))};
BJa=function(a){LP(a,"cueVideoById",a.cueVideoById);LP(a,"loadVideoById",a.loadVideoById);LP(a,"cueVideoByUrl",a.cueVideoByUrl);LP(a,"loadVideoByUrl",a.loadVideoByUrl);LP(a,"playVideo",a.playVideo);LP(a,"pauseVideo",a.pauseVideo);LP(a,"stopVideo",a.stopVideo);LP(a,"clearVideo",a.clearVideo);LP(a,"getVideoBytesLoaded",a.getVideoBytesLoaded);LP(a,"getVideoBytesTotal",a.getVideoBytesTotal);LP(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);LP(a,"getVideoStartBytes",a.getVideoStartBytes);LP(a,"cuePlaylist",
a.cuePlaylist);LP(a,"loadPlaylist",a.loadPlaylist);LP(a,"nextVideo",a.nextVideo);LP(a,"previousVideo",a.previousVideo);LP(a,"playVideoAt",a.playVideoAt);LP(a,"setShuffle",a.setShuffle);LP(a,"setLoop",a.setLoop);LP(a,"getPlaylist",a.E0);LP(a,"getPlaylistIndex",a.getPlaylistIndex);LP(a,"getPlaylistId",a.getPlaylistId);LP(a,"loadModule",a.loadModule);LP(a,"unloadModule",a.unloadModule);LP(a,"setOption",a.setOption);LP(a,"getOption",a.getOption);LP(a,"getOptions",a.getOptions);LP(a,"mute",a.mute);LP(a,
"unMute",a.unMute);LP(a,"isMuted",a.isMuted);LP(a,"setVolume",a.setVolume);LP(a,"getVolume",a.getVolume);LP(a,"seekTo",a.seekTo);LP(a,"getPlayerMode",a.getPlayerMode);LP(a,"getPlayerState",a.getPlayerState);LP(a,"getPlaybackRate",a.getPlaybackRate);LP(a,"setPlaybackRate",a.setPlaybackRate);LP(a,"getAvailablePlaybackRates",a.getAvailablePlaybackRates);LP(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
LP(a,"setPlaybackQuality",a.setPlaybackQuality);LP(a,"getAvailableQualityLevels",a.getAvailableQualityLevels);LP(a,"getCurrentTime",a.getCurrentTime);LP(a,"getDuration",a.getDuration);LP(a,"addEventListener",a.l_);LP(a,"removeEventListener",a.T5);LP(a,"getDebugText",a.getDebugText);LP(a,"getVideoData",function(){return xJa(a)});
LP(a,"addCueRange",a.addCueRange);LP(a,"removeCueRange",a.removeCueRange);LP(a,"setSize",a.setSize);LP(a,"getApiInterface",a.getApiInterface);LP(a,"destroy",a.destroy);LP(a,"showVideoInfo",a.showVideoInfo);LP(a,"hideVideoInfo",a.hideVideoInfo);LP(a,"isVideoInfoVisible",a.isVideoInfoVisible);LP(a,"getSphericalProperties",a.getSphericalProperties);LP(a,"setSphericalProperties",a.setSphericalProperties);var b=a.app.V();b.J||(LP(a,"getVideoEmbedCode",a.getVideoEmbedCode),LP(a,"getVideoUrl",a.getVideoUrl));
LP(a,"getMediaReferenceTime",a.getMediaReferenceTime);LP(a,"getSize",a.getSize);b.J||LP(a,"logImaAdEvent",a.logImaAdEvent)};
CJa=function(a,b,c){b=g.de(Math.floor(b),0,100);isFinite(b)&&TP(a.app,{volume:b,muted:a.isMuted()},c)};
DJa=function(a,b){TP(a.app,{muted:!0,volume:a.getVolume()},b)};
EJa=function(a,b){TP(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
UP=function(a,b,c,d){SP.call(this,a,b,!1,d);this.j=!1;c&&(vJa(this),FJa(this),BJa(this))};
FJa=function(a){MP(a,"cueVideoByPlayerVars",function(b,c){a.cueVideoByPlayerVars(VP(a,b),c)});
MP(a,"loadVideoByPlayerVars",function(b,c,d,e){a.loadVideoByPlayerVars(VP(a,b),c,d,e)});
MP(a,"preloadVideoByPlayerVars",function(b,c,d,e){return void a.preloadVideoByPlayerVars(VP(a,b),c,d,e)});
MP(a,"getVideoData",a.eS);MP(a,"seekBy",a.seekBy);MP(a,"mutedAutoplay",a.mutedAutoplay);MP(a,"showControls",a.showControls);MP(a,"hideControls",a.hideControls);MP(a,"cancelPlayback",a.cancelPlayback);MP(a,"getProgressState",a.getProgressState);MP(a,"isInline",a.isInline);MP(a,"setInline",a.setInline);MP(a,"setLoopVideo",a.setLoopVideo);MP(a,"getLoopVideo",a.getLoopVideo);MP(a,"getStoryboardFormat",a.getStoryboardFormat);MP(a,"getVideoContentRect",a.getVideoContentRect);MP(a,"toggleFullscreen",a.toggleFullscreen);
MP(a,"isFullscreen",a.isFullscreen);MP(a,"getVideoStats",a.getVideoStats);MP(a,"getPlayerSize",a.getPlayerSize);MP(a,"toggleSubtitles",a.toggleSubtitles);MP(a,"setCenterCrop",a.setCenterCrop);MP(a,"setFauxFullscreen",a.setFauxFullscreen);MP(a,"setSizeStyle",a.setSizeStyle);MP(a,"handleGlobalKeyDown",a.handleGlobalKeyDown);MP(a,"handleGlobalKeyUp",a.handleGlobalKeyUp);MP(a,"wakeUpControls",a.wakeUpControls)};
VP=function(a,b){var c={};if(a.app.V().oa){a=g.t(GJa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);b=c.raw_player_response;b||(a=c.player_response)&&(b=JSON.parse(a));delete c.player_response;delete c.raw_player_response;b&&(c.raw_player_response={streamingData:b.streamingData})}else for(a=g.t(HJa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
IJa=function(a){var b=g.LH(a.app.V()),c;a=null==(c=a.app.getVideoData())?void 0:c.Ll;return g.zw(b)&&!a?!1:!0};
JJa=function(a,b,c){var d=a.app.Ff(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
g.WP=function(a,b){UP.call(this,a,b,!1);this.aI=this.settingsMenu=null};
g.XP=function(a){a=a.vb();var b=a.Ue.get("endscreen");return b&&b.Cv()?!0:a.xC()||g.DH(a.G.V())};
g.YP=function(a,b){3===a.getPresentingPlayerType()?a.ma("mdxautoplaycancel"):a.ma("autonavcancel",b)};
g.$P=function(a){var b=ZP(a.vb());return a.app.Ji&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.ao()||!!a.getPlaylist()};
g.bQ=function(a){return(a=g.aQ(a.vb()))?a.KE():{}};
g.KJa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.cQ=function(a,b,c){a=a.fb().element;var d=Bb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.Se(a,b,d);b.setAttribute("data-layer",String(c))};
g.dQ=function(a){var b=a.V();if(!b.Wd)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!hK(c);d=c.isLivePlayback&&(!b.N("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.D&&f;return!c.ypcPreview&&
(!d||e)&&!g.nb(c.Ba,"ypc")&&!a&&(!g.tH(b)||f)};
LJa=function(a){a=g.OP(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.rQ)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.xa("iqss",{trigger:d},!0),!0):!1};
g.eQ=function(a,b,c,d){d=void 0===d?!1:d;g.TM.call(this,b);var e=this;this.G=a;this.Ba=d;this.J=new g.vF(this);this.Z=new g.FN(this,c,!0,void 0,void 0,function(){e.FR()});
g.H(this,this.J);g.H(this,this.Z)};
MJa=function(a){a.u&&(document.activeElement&&g.We(a.element,document.activeElement)&&(Ye(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.gA(a.J);a.T=void 0};
fQ=function(a,b,c){a.Ni()?a.yb():a.Pc(b,c)};
gQ=function(a,b,c,d){d=new g.W({F:"div",Ga:["ytp-linked-account-popup-button"],qa:d,X:{role:"button",tabindex:"0"}});b=new g.W({F:"div",K:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{F:"div",K:"ytp-linked-account-popup-title",qa:b},{F:"div",K:"ytp-linked-account-popup-description",qa:c},{F:"div",K:"ytp-linked-account-popup-buttons",W:[d]}]});g.eQ.call(this,a,{F:"div",K:"ytp-linked-account-popup-container",W:[b]},100);var e=this;this.dialog=b;g.H(this,this.dialog);
d.Qa("click",function(){e.yb()});
g.H(this,d);g.cQ(this.G,this.element,4);this.hide()};
g.hQ=function(a,b,c,d){g.TM.call(this,a);this.priority=b;c&&this.ph(c);d&&this.ke(d)};
g.iQ=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{F:c?"a":"div",Ga:b,X:a,W:[{F:"div",K:"ytp-menuitem-icon",qa:"{{icon}}"},{F:"div",K:"ytp-menuitem-label",qa:"{{label}}"},{F:"div",K:"ytp-menuitem-content",qa:"{{content}}"}]}};
jQ=function(a,b){a.updateValue("icon",b)};
kQ=function(a){g.hQ.call(this,g.iQ({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.G=a;this.u=this.j=!1;this.ob=a.nm();a.Og(this.element,this,!0);this.S(this.G,"settingsMenuVisibilityChanged",function(c){b.hc(c)});
this.S(this.G,"videodatachange",this.C);this.Qa("click",this.onClick);this.C()};
lQ=function(a){return a?g.IB(a):""};
mQ=function(a){g.E.call(this);this.api=a};
nQ=function(a){mQ.call(this,a);var b=this;KP(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
KP(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new kQ(b.api);g.H(b,b.menuItem)})};
NJa=function(a){mQ.call(this,a);this.events=new g.vF(a);g.H(this,this.events);a.N("fetch_bid_for_dclk_status")&&this.events.S(a,"videoready",function(b){var c,d={contentCpn:(null==(c=a.getVideoData(1))?void 0:c.clientPlaybackNonce)||""};2===a.getPresentingPlayerType()&&(d.adCpn=b.clientPlaybackNonce);g.Nw(g.Pw(),function(){jB("vr",d)})});
a.N("report_pml_debug_signal")&&this.events.S(a,"videoready",function(b){if(1===a.getPresentingPlayerType()){var c,d,e={playerDebugData:{pmlSignal:!!(null==(c=b.getPlayerResponse())?0:null==(d=c.adPlacements)?0:d.some(function(f){var h;return null==f?void 0:null==(h=f.adPlacementRenderer)?void 0:h.renderer})),
contentCpn:b.clientPlaybackNonce}};g.ax("adsClientStateChange",e)}})};
OJa=function(){g.Fw.getInstance();return g.Gw(0,192)?g.Gw(0,190):!g.ov("web_watch_cinematics_disabled_by_default")};
oQ=function(a,b){g.hQ.call(this,g.iQ({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{F:"div",K:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Qa("click",this.onClick)};
qQ=function(a){var b=a.N("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";oQ.call(this,b,13);var c=this;this.G=a;this.j=!1;this.u=new g.Zn(function(){g.jo(c.element,"ytp-menuitem-highlighted")},0);
this.ob=a.nm();jQ(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{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.C,this);this.Qa(pQ,this.B);g.H(this,this.u)};
rQ=function(a){mQ.call(this,a);var b=this;this.j=!1;var c;this.N("web_cinematic_watch_settings")&&(null==(c=a.V().webPlayerContextConfig)?0:c.cinematicSettingsAvailable)&&(a.addEventListener("settingsMenuInitialized",function(){PJa(b)}),a.addEventListener("highlightSettingsMenu",function(d){PJa(b);
var e=b.menuItem;"menu_item_cinematic_lighting"===d&&(g.ho(e.element,"ytp-menuitem-highlighted"),g.ho(e.element,"ytp-menuitem-highlight-transition-enabled"),e.u.start())}),KP(a,"updateCinematicSettings",function(d){b.updateCinematicSettings(d)}))};
PJa=function(a){a.menuItem||(a.menuItem=new qQ(a.api),g.H(a,a.menuItem),a.menuItem.La(a.j))};
sQ=function(a){mQ.call(this,a);var b=this;this.j={};this.events=new g.vF(a);g.H(this,this.events);this.N("enable_precise_embargos")&&!g.UH(this.api.V())&&(this.events.S(a,"videodatachange",function(){var c=b.api.getVideoData();b.api.Qf("embargo",1);(null==c?0:c.cueRanges)&&QJa(b,c)}),this.events.S(a,g.AB("embargo"),function(c){var d;
c=null!=(d=b.j[c.id])?d:[];d=g.t(c);for(c=d.next();!c.done;c=d.next()){var e=c.value;b.api.hideControls();b.api.Jg("heartbeat.stop",2,"This video isn't available in your current playback area");c=void 0;(e=null==(c=e.embargo)?void 0:c.onTrigger)&&b.api.Oa("innertubeCommand",e)}}))};
QJa=function(a,b){if(null!=b&&hK(b)||a.N("enable_discrete_live_precise_embargos")){var c;null==(c=b.cueRanges)||c.filter(function(d){var e;return null==(e=d.onEnter)?void 0:e.some(a.u)}).forEach(function(d){var e,f=Number(null==(e=d.playbackPosition)?void 0:e.utcTimeMillis)/1E3,h;
e=f+Number(null==(h=d.duration)?void 0:h.seconds);h="embargo_"+f;a.api.addUtcCueRange(h,f,e,"embargo",!1);d.onEnter&&(a.j[h]=d.onEnter.filter(a.u))})}};
tQ=function(a){mQ.call(this,a);var b=this;this.j=[];this.events=new g.vF(a);g.H(this,this.events);KP(a,"addEmbedsConversionTrackingParams",function(c){b.api.V().yn&&b.addEmbedsConversionTrackingParams(c)});
this.events.S(a,"veClickLogged",function(c){b.api.gk(c)&&(c=Fg(c.visualElement.getAsJspb(),2),b.j.push(c))})};
RJa=function(a){mQ.call(this,a);this.events=new g.vF(a);g.H(this,this.events);this.events.S(a,"initialvideodatacreated",function(b){var c=dM();if(b.Cf){var d,e=null==(d=b.Cf)?void 0:d.trackingParams;e&&fM(c,e)}if(b.watchNextResponse){var f;(b=null==(f=b.watchNextResponse)?void 0:f.trackingParams)&&fM(c,b)}})};
uQ=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-fullerscreen-edu-button","ytp-button"],W:[{F:"div",Ga:["ytp-fullerscreen-edu-text"],qa:"Scroll for details"},{F:"div",Ga:["ytp-fullerscreen-edu-chevron"],W:[{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ua=a;this.B=b;this.j=new g.FN(this,250,void 0,100);this.C=this.u=!1;a.qb(this.element,this,61214);this.B=b;g.H(this,this.j);this.S(a,
"fullscreentoggled",this.La);this.S(a,"presentingplayerstatechange",this.La);this.Qa("click",this.onClick);this.La()};
vQ=function(a){mQ.call(this,a);var b=this;this.events=new g.vF(a);g.H(this,this.events);KP(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
KP(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.V();a.N("external_fullscreen_with_edu")&&c.externalFullscreen&&QH(c)&&"1"===c.controlsType&&this.events.S(a,"basechromeinitialized",function(){var d=g.QP(a);b.j=new uQ(a,d);g.H(b,b.j);d.DD(b.j)})};
SJa=function(a){g.W.call(this,{F:"div",K:"ytp-gated-actions-overlay",W:[{F:"div",K:"ytp-gated-actions-overlay-background",W:[{F:"div",K:"ytp-gated-actions-overlay-background-overlay"}]},{F:"button",Ga:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},W:[g.ZM()]},{F:"div",K:"ytp-gated-actions-overlay-bar",W:[{F:"div",K:"ytp-gated-actions-overlay-text-container",W:[{F:"div",K:"ytp-gated-actions-overlay-title",qa:"{{title}}"},{F:"div",K:"ytp-gated-actions-overlay-subtitle",
qa:"{{subtitle}}"}]},{F:"div",K:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Ea("ytp-gated-actions-overlay-background");this.u=this.Ea("ytp-gated-actions-overlay-button-container");this.j=[];this.S(this.Ea("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.Oa("onCloseMiniplayer")});
this.hide()};
VJa=function(a,b){var c=0,d={};for(c=0;c<b.length;d={nz:d.nz},c++){var e=a.j[c],f=void 0,h=null==(f=e)?void 0:f.element;h||(h=new g.W({F:"button",K:"ytp-gated-actions-overlay-button",X:{tabindex:"0"},W:[{F:"div",K:"ytp-gated-actions-overlay-button-title",qa:"{{buttonText}}"}]}),g.H(a,h),h.Ca(a.u),e={element:h});d.nz=g.P(b[c],TJa);var l=f=void 0,m=void 0,n=(null==(f=d.nz)?void 0:f.title)||(null==(l=d.nz)?void 0:null==(m=l.titleFormatted)?void 0:m.content)||"";h.update({buttonText:n});e.listener&&h.Dc(e.listener);
e.listener=h.Qa("click",function(p){return function(){var q,r=g.P(null==(q=p.nz)?void 0:q.onTap,UJa);r&&a.api.Oa("innertubeCommand",r)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
WJa=function(a){mQ.call(this,a);var b=this;this.events=new g.vF(a);g.H(this,this.events);this.N("enable_courses_player_overlay_purchase")&&(this.j=new SJa(this.api),g.H(this,this.j),this.events.S(a,"videodatachange",function(){var c,d=null==(c=b.api.getVideoData())?void 0:c.wZ;c=b.j;if(d){var e,f,h=(null==(e=d.title)?void 0:e.content)||"";e=(null==(f=d.subtitle)?void 0:f.content)||"";c.update({title:h,subtitle:e});h=d.thumbnail;f="none";if(null==h?0:h.sources){e=0;h=g.t(h.sources);for(var l=h.next();!l.done;l=
h.next())l=l.value,l.width&&l.url&&l.width>e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;VJa(c,d.actionButtons||[]);c.show()}else c.hide()}),g.cQ(this.api,this.j.element,4))};
YJa=function(a){mQ.call(this,a);var b=this;this.events=new g.vF(a);g.H(this,this.events);this.events.S(a,"modulecreated",function(c){var d;a:{var e,f,h,l=null==(e=b.api.getVideoData())?void 0:null==(f=e.getPlayerResponse())?void 0:null==(h=f.overlay)?void 0:h.playerControlsOverlayRenderer;if(l&&(e=g.P(l.compositeVideoOverlay,XJa),null==e?0:null==(d=e.sources)?0:d.length))for(d=g.t(null==e?void 0:e.sources),e=d.next();!e.done;e=d.next())if(e=e.value,e.isActive){d=e;break a}d=void 0}"captions"===c&&
void 0!==(null==d?void 0:d.topLeftCornerX)&&void 0!==(null==d?void 0:d.topLeftCornerY)&&void 0!==(null==d?void 0:d.width)&&void 0!==(null==d?void 0:d.height)&&b.api.YG({top:d.topLeftCornerY,right:1-d.topLeftCornerX-d.width,bottom:1-d.topLeftCornerY-d.height,left:d.topLeftCornerX})})};
wQ=function(a){mQ.call(this,a);var b=this;KP(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()})};
ZJa=function(a,b,c){var d=[],e=b?156595:151874;a=g.t(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d};
$Ja=function(a){for(var b=0,c=0;c<a.length;c++)if(a[c].paygatedQualityDetails){var d=a[c];a.splice(c,1);a.splice(b,0,d);b++}};
aKa=function(a){var b=new Set,c=new Map,d={};a=g.t(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.quality,h=e.isPlayable,l=e.qualityLabel;l&&f&&(h&&c.has(f)&&c.get(f)!==l?b.add(f):h&&c.set(f,l),d[l]||(d[l]=e))}c=[];d=g.t(Object.values(d));for(e=d.next();!e.done;e=d.next())e=e.value,(a=e.quality)&&!b.has(a)&&(e.formatId=void 0),c.push(e);return c};
yQ=function(a){mQ.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.Cb=null;var c;this.useLivingRoomPoToken=!(null==(c=a.V().webPlayerContextConfig)||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Cb=a.Ki();try{if(b.N("html5_generate_session_po_token")&&!b.useLivingRoomPoToken)if(b.Cb.Yi("pot_isc"),b.N("html5_webpo_idle_priority_job")){if(b.N("html5_web_po_prefetch")){xQ(b);var d;null==(d=b.j)||d.prefetch()}g.Nw(g.Pw(),function(){b.N("html5_web_po_prefetch")||xQ(b);
bKa(b)})}else xQ(b),bKa(b)}catch(e){e instanceof Error&&g.sA(e)}});
a.mN(this)};
cKa=function(a,b){var c=a.N("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN";var d=a.N("html5_webpo_critical_experiment")?"6BW35shnjYbBdd0Xn55t":a.N("html5_webpo_critical_control")?"Av5DGcHDtt8bC80Ew9nc":a.N("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":a.N("html5_web_po_prefetch")?"0wjYMhvxbLZ78HRVBg8V":a.N("html5_web_po_cold_start_token")?"nJH2JWixsHocEBryELkG":"O43z0dpjhgX20SCx4KAo";b=g.IH(b)?c:d;a.N("html5_placeholder_po_tokens")&&
(b="2ZCPXHYZSpebQXqOYNtj");return b};
xQ=function(a){var b=cKa(a,a.api.V());a.j=Ega(b,function(c){g.sA(c)})};
bKa=function(a){var b=a.api.V();a.Cb.Yi("pot_ist");var c;null==(c=a.j)||c.start();if(!a.N("html5_generate_content_po_token")){a.N("html5_web_po_cold_start_token")&&zQ(a);var d;null==(d=a.j)||d.ready().then(function(){a.Cb.Yi("pot_if");zQ(a)});
b=g.wG(b.experiments,"html5_session_po_token_interval_time_ms")||0;0<b&&(a.u=g.Lv(function(){zQ(a)},b))}};
zQ=function(a){var b,c,d,e,f;g.A(function(h){if(!a.N("html5_generate_session_po_token")||!((null==(b=a.j)?0:b.isReady())||a.N("html5_web_po_cold_start_token"))||a.useLivingRoomPoToken)return h.return();c=a.api.V();d=g.O("EOM_VISITOR_DATA")||g.O("VISITOR_DATA");e=c.Dn?c.datasyncId:d;f=c.livingRoomPoTokenId||e;c.Rf=dKa(a,f);g.pa(h)})};
dKa=function(a,b){if(!a.j||!a.N("html5_web_po_cold_start_token")&&!a.j.isReady())return"";try{a.Cb.Yi("pot_cms");a:{var c=a.j;b={bx:b};var d,e=null!=(d=c.j)?d:new kk(c.logger,c.B,c.state),f=new Fi(c.logger,e.B);try{var h=e.C(b);break a}catch(n){f=new Fi(c.logger,"e");var l=n instanceof ck?n:new ck(5,n);c.logger.tB(l.code);var m;null==(m=c.onError)||m.call(c,l);e=new jk(c.logger,l);h=e.C(b);break a}finally{f.done()}h=void 0}a.Cb.Yi("pot_cmf");return h}catch(n){return g.sA(n),""}};
eKa=function(a){mQ.call(this,a);var b=this;this.freePreviewWatchedDuration=0;this.events=new g.vF(a);g.H(this,this.events);g.UH(a.V())&&(this.events.S(a,"heartbeatRequest",function(c){c.heartbeatRequestParams||(c.heartbeatRequestParams={});c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={});c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}}),KP(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=
c}))};
fKa=function(a){g.E.call(this);this.j=new nQ(a);g.H(this,this.j);this.ea=new wQ(a);g.H(this,this.ea);this.oa=new yQ(a);g.H(this,this.oa);this.C=new sQ(a);g.H(this,this.C);this.u=new NJa(a);g.H(this,this.u);this.Z=new YJa(a);g.H(this,this.Z);this.ya=new eKa(a);g.H(this,this.ya);this.B=new rQ(a);g.H(this,this.B);this.J=new vQ(a);g.H(this,this.J);this.T=new WJa(a);g.H(this,this.T);this.D=new tQ(a);g.H(this,this.D);this.I=new RJa(a);g.H(this,this.I)};
AQ=function(){this.u=this.j=NaN};
BQ=function(a,b,c){wC(a,c)||xC(a,b,c);wC(a,"video_to_ad")||xC(a,b,"video_to_ad");wC(a,"ad_to_video")||xC(a,b,"ad_to_video");wC(a,"ad_to_ad")||xC(a,b,"ad_to_ad")};
CQ=function(a,b){this.Y=a;this.timerName="";this.B=!1;this.u=NaN;this.C=new AQ;this.j=b||null;this.B=!1};
gKa=function(a,b){a.timerName=b};
hKa=function(a,b,c){var d=g.zH(b.u)&&!b.u.J;if(b.u.xk&&(vH(b.u)||"shortspage"===b.u.Aa||YH(b.u)||d)&&!a.B){a.B=!0;a.I=b.clientPlaybackNonce;g.O("TIMING_ACTION")||mv("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&mv("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.j){d=a.j.Ki();for(var e=g.t(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,hC(f,d[f],a.timerName);d=a.j.bE;e=g.t(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.kC(f,d[f],a.timerName);d=a.j;d.j={};d.bE={}}g.kC("yt_pvis",
yC(),a.timerName);g.kC("yt_pt","html5",a.timerName);a.D!==b.clientPlaybackNonce||Number.isNaN(a.u)||(wC("_start",a.timerName)?c=MB("_start",a.timerName)+a.u:g.sA(new g.Sw("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!wC("pbs",a.timerName)&&a.tick("pbs",c)}};
DQ=function(a){var b=void 0===b?{}:b;gC();$B();fC();QB(!1);b.cttAuthInfo&&(RB().cttAuthInfo=b.cttAuthInfo);mv("TIMING_AFT_KEYS",[]);b.w$a?iC({loadType:"hot"}):iC({loadType:"warm"});mv("TIMING_ACTION","");delete g.O("TIMING_INFO",{}).yt_lt;hC("_start",b.startTime,void 0);b=["pbs","pbu"];ZB("").info.actionType="watch";b&&mv("TIMING_AFT_KEYS",b);mv("TIMING_ACTION","watch");if(g.ov("web_csi_via_jspb")){b=g.O("TIMING_INFO",{});var c=new Ku;b=g.t(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=
g.t(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":var f=new Lu;g.I(f,1,d);g.I(f,2,String(e));Mu(c,f);break;case "GetGuide_rid":f=new Lu;g.I(f,1,d);g.I(f,2,String(e));Mu(c,f);break;case "GetHome_rid":f=new Lu;g.I(f,1,d);g.I(f,2,String(e));Mu(c,f);break;case "GetPlayer_rid":f=new Lu;g.I(f,1,d);g.I(f,2,String(e));Mu(c,f);break;case "GetSearch_rid":f=new Lu;g.I(f,1,d);g.I(f,2,String(e));Mu(c,f);break;case "GetSettings_rid":f=new Lu;g.I(f,1,d);g.I(f,2,String(e));Mu(c,f);break;
case "GetTrending_rid":f=new Lu;g.I(f,1,d);g.I(f,2,String(e));Mu(c,f);break;case "GetWatchNext_rid":f=new Lu;g.I(f,1,d);g.I(f,2,String(e));Mu(c,f);break;case "yt_red":g.I(c,14,!!e);break;case "yt_ad":g.I(c,9,!!e)}}vC(c);c=new Ku;c=g.I(c,25,!0);c=g.I(c,1,U[aC(g.O("TIMING_ACTION"))]);(b=g.O("PREVIOUS_ACTION"))&&g.I(c,13,U[aC(b)]);(b=g.O("CLIENT_PROTOCOL"))&&g.I(c,33,b);(b=g.O("CLIENT_TRANSPORT"))&&g.I(c,34,b);(b=g.DA())&&"UNDEFINED_CSN"!==b&&g.I(c,4,b);b=yC();1!==b&&-1!==b||g.I(c,6,!0);b=SB();d=!1;
g.ov("skip_setting_info_in_csi_data_object")&&(d="cold"===TB().loadType);d||(d="cold"===b.yt_lt);if(d&&(g.I(c,3,"cold"),qsa(b),b=ssa(),0<b.length))for(b=g.t(b),d=b.next();!d.done;d=b.next())d=d.value,e=new Ju,g.I(e,1,d),Eg(c,83,Ju,e);vC(c)}else{b=g.O("TIMING_INFO",{});for(c in b)b.hasOwnProperty(c)&&g.kC(c,b[c]);c={isNavigation:!0,actionType:aC(g.O("TIMING_ACTION"))};if(b=g.O("PREVIOUS_ACTION"))c.previousAction=aC(b);if(b=g.O("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.O("CLIENT_TRANSPORT"))c.transportProtocol=
b;(b=g.DA())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=yC();if(1===b||-1===b)c.isVisible=!0;b=!1;g.ov("skip_setting_info_in_csi_data_object")&&(b="cold"===TB().loadType);d=SB();b||(b="cold"===d.yt_lt);if(b&&(c.loadType="cold",qsa(SB()),b=ssa(),0<b.length))for(c.resourceInfo=[],b=g.t(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});iC(c)}c=SB();b=WB();if(!(g.ov("skip_setting_info_in_csi_data_object")&&"cold"!==TB().loadType||"cold"!==c.yt_lt&&"cold"!==b.loadType)){d=
UB();e=VB();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var h in d)if(!(h in e))if("number"===typeof d[h])hC(h,MB(h));else if(g.ov("log_repeated_ytcsi_ticks")){f=g.t(d[h]);for(var l=f.next();!l.done;l=f.next())hC(h.slice(1),l.value)}h={};d=!1;e=g.t(Object.keys(c));for(f=e.next();!f.done;f=e.next())f=f.value,(f=lsa(f,c[f]))&&!dsa(WB(),f)&&(aB(b,f),aB(h,f),d=!0);d&&iC(h)}QB(!0);h=g.O("TIMING_ACTION");g.Fa("ytglobal.timingready_")&&h&&wC("_start")&&Yra()&&csa();a.timerName=""};
iKa=function(a){if(a.j){var b=a.j;b.j={};b.bE={}}a.B=!1;a.D=void 0;a.u=NaN};
EQ=function(a,b){g.FB.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.ea={};this.B=0;if(a=b.session_data)this.sessionData=xv(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=
b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new tI("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.uI(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.t(a);for(c=a.next();!c.done;c=a.next())(c=
c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.ea=pI(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
FQ=function(a){return!!(a.playlist||a.list||a.api)};
jKa=function(a){var b=a.index+1;return b>=a.length?0:b};
kKa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.GQ=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.mJ(a.u,b),g.H(a,e),e.Ll=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
HQ=function(a,b){a.index=g.de(b,0,a.length-1);a.startSeconds=0};
IQ=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=g.GQ(a);a.items=[];for(var d=g.t(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}};
nKa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.j){c=g.xO();var p=a.V(),q={context:g.mP(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};p=p.embedConfig;var r=b.docid||b.video_id||b.videoId||b.id;if(!r){r=b.raw_embedded_player_response;if(!r&&!g.ov("parse_video_id_from_serialized_embedded_player_response_killswitch")){var w=b.embedded_player_response;w&&(r=JSON.parse(w))}if(r){var x,z,B,C,G,F;r=(null==(F=g.P(null==(x=r)?void 0:null==(z=x.embedPreview)?
void 0:null==(B=z.thumbnailPreviewRenderer)?void 0:null==(C=B.playButton)?void 0:null==(G=C.buttonRenderer)?void 0:G.navigationEndpoint,g.xI))?void 0:F.videoId)||null}else r=null}x=(x=r)?x:void 0;z=a.playlistId?a.playlistId:b.list;B=b.listType;if(z){var K;"user_uploads"===B?K={username:z}:K={playlistId:z};lKa(p,x,b,K);q.playlistRequest=K}else b.playlist?(K={templistVideoIds:b.playlist.toString().split(",")},lKa(p,x,b,K),q.playlistRequest=K):x&&(K={videoId:x},p&&(K.serializedThirdPartyEmbedConfig=
p),q.singleVideoRequest=K);d=q;e=g.jO(mKa);g.qa(n,2);return g.y(n,g.qM(c,d,e),4)}if(2!=n.j)return f=n.u,h=a.V(),b.raw_embedded_player_response=f,h.ea=yw(b,g.tH(h)),h.j="EMBEDDED_PLAYER_MODE_PFL"===h.ea,f&&(l=f,l.trackingParams&&(q=l.trackingParams,fM(dM(),q))),n.return(new g.mJ(h,b));m=g.ua(n);m instanceof Error||(m=Error("b259802748"));g.rA(m);return n.return(a)})};
lKa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.KQ=function(a,b){JQ.get(a);JQ.set(a,b)};
g.LQ=function(a){g.FB.call(this);this.loaded=!1;this.player=a};
oKa=function(){this.u=[];this.j=[]};
g.MQ=function(a,b){return b?a.j.concat(a.u):a.j};
g.NQ=function(a,b){switch(b.kind){case "asr":pKa(b,a.u);break;default:pKa(b,a.j)}};
pKa=function(a,b){g.ib(b,function(c){return a.equals(c)})||b.push(a)};
g.OQ=function(a){g.E.call(this);this.Y=a;this.j=new oKa;this.C=[]};
g.PQ=function(a,b,c){g.OQ.call(this,a);this.audioTrack=c;this.u=null;this.B=!1;this.C=b.iJ;this.B="shortspage"===YJ(b)};
qKa=function(){this.j=this.Pj=!1};
rKa=function(a){a=void 0===a?{}:a;var b=void 0===a.jo?!1:a.jo,c=new qKa;c.Pj=(void 0===a.hasSubfragmentedFmp4?!1:a.hasSubfragmentedFmp4)||b;return c};
g.QQ=function(a){this.j=a;this.C=new qKa;this.Tl=this.Sl=!1;this.Pl=2;this.T=20971520;this.oa=8388608;this.J=120;this.Ec=3145728;this.gb=62914560;this.Lc=10485760;this.Kp=this.j.N("html5_bmff_new_fourcc_check");this.Mk=g.wG(this.j.experiments,"html5_min_readbehind_secs");this.Sv=g.wG(this.j.experiments,"html5_min_readbehind_cap_secs");this.lz=g.wG(this.j.experiments,"html5_max_readbehind_secs");this.Iw=this.j.N("html5_trim_future_discontiguous_ranges");this.Ng=this.j.N("html5_reset_media_stream_on_unresumable_slices");
this.ac=NaN;this.yn=this.nj=this.Gn=2;this.ya=2097152;this.Xe=0;this.xn=1048576;this.dc=!1;this.xd=1800;this.Lk=this.Ol=5;this.Wa=15;this.lf=1;this.B=1.15;this.D=1.05;this.qj=1;this.Rk=!0;this.Pa=!1;this.zn=.8;this.Ak=this.Pb=!1;this.Fd=6;this.I=this.Ac=!1;this.fh=g.wG(this.j.experiments,"html5_static_abr_resolution_shelf");this.Nk=g.wG(this.j.experiments,"html5_min_startup_buffered_media_duration_secs");this.jn=g.wG(this.j.experiments,"html5_post_interrupt_readahead");this.Sk=!1;this.qn=g.wG(this.j.experiments,
"html5_probe_primary_delay_base_ms")||5E3;this.En=100;this.mf=10;this.Tv=g.wG(this.j.experiments,"html5_offline_failure_retry_limit")||2;this.zj=this.j.experiments.eb("html5_clone_original_for_fallback_location");this.qf=1;this.Gd=1.6;this.zc=!1;this.tb=g.wG(this.j.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Ul=g.wG(this.j.experiments,"html5_subsegment_readahead_timeout_secs");this.Fw=g.wG(this.j.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.gh=
g.wG(this.j.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.Gw=g.wG(this.j.experiments,"html5_subsegment_readahead_min_load_speed");this.Dn=g.wG(this.j.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.Hw=g.wG(this.j.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.nf=15;this.Hl=1;this.jd=!1;this.yw=this.j.N("html5_restrict_streaming_xhr_on_sqless_requests");this.jz=g.wG(this.j.experiments,"html5_max_headm_for_streaming_xhr");
this.Xv=this.j.N("html5_pipeline_manifestless_allow_nonstreaming");this.Yv=this.j.N("html5_prefer_server_bwe3");this.iz=this.j.N("html5_last_slice_transition");this.Dw=this.j.N("html5_store_xhr_headers_readable");this.vp=!1;this.un=0;this.Rf=2;this.Bn=this.yj=!1;this.Nl=g.wG(this.j.experiments,"html5_max_drift_per_track_secs");this.Pk=this.j.N("html5_no_placeholder_rollbacks");this.Ew=this.j.N("html5_subsegment_readahead_enable_mffa");this.Oe=this.j.N("html5_allow_video_keyframe_without_audio");this.Lw=
this.j.N("html5_webm_init_skipping");this.Wv=this.j.N("html5_enable_vp9_fairplay");this.Ok=this.j.N("html5_never_pause_appends");this.Rb=!0;this.Xd=this.Va=this.Fb=!1;this.aq=!0;this.Mg=!1;this.u="";this.sy=1048576;this.Wd=[];this.Ay=this.j.N("html5_woffle_resume");this.Zh=this.j.N("html5_abs_buffer_health");this.Wh=!1;this.Zy=this.j.N("html5_interruption_resets_seeked_time");this.kz=g.wG(this.j.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ma=!1;this.yk=this.j.N("html5_explicitly_dispose_xhr");
this.vn=!1;this.tp=!this.j.N("html5_encourage_array_coalescing");this.wj=!1;this.xw=this.j.N("html5_restart_on_unexpected_detach");this.ea=0;this.xk="";this.Ju=this.j.N("html5_disable_codec_for_playback_on_error");this.Sf=!1;this.Ty=this.j.N("html5_filter_non_efficient_formats_for_safari");this.j.N("html5_format_hybridization");this.gp=this.j.N("html5_abort_before_separate_init");this.Ll=g.wG(this.j.experiments,"html5_manifestless_seg_drift_limit_secs");this.zw=hw();this.Gl=!1;this.Cw=this.j.N("html5_serialize_server_stitched_ad_request");
this.Gu=this.j.N("html5_skip_buffer_check_seek_to_head");this.Md=!1;this.hp=this.j.N("html5_attach_po_token_to_bandaid");this.Ql=g.wG(this.j.experiments,"html5_max_redirect_response_length")||8192;this.eh=this.j.N("html5_rewrite_timestamps_for_webm");this.An=this.j.N("html5_rewrite_durations_for_webm");this.kb=this.j.N("html5_only_media_duration_for_discontinuities");this.ww=g.wG(this.j.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Jw=this.j.N("html5_onesie_live");this.Kw=this.j.N("html5_onesie_premieres");
this.Uv=g.wG(this.j.experiments,"html5_onesie_live_ttl_secs")||8;this.Qk=g.wG(this.j.experiments,"html5_attach_num_random_bytes_to_bandaid");this.Aw=this.j.N("html5_self_init_consolidation");this.Vv=g.wG(this.j.experiments,"html5_onesie_request_timeout_ms")||3E3;this.Xa=this.j.N("html5_ssdai_use_post_for_media")&&this.j.N("gab_return_sabr_ssdai_config");this.Fn=this.j.N("html5_use_post_for_media");this.useUmp=this.j.N("html5_use_ump");this.Ka=this.Z=!1;this.pn=this.j.N("html5_prefer_drc");this.cw=
this.j.N("html5_reset_primary_stats_on_redirector_failure");this.Zv=this.j.N("html5_remap_to_original_host_when_redirected");this.Aa=this.j.N("html5_consume_media_bytes_slice_infos");this.Ba=!1;this.Cn=g.wG(this.j.experiments,"html5_skip_sub_quantum_discontinuity_secs");this.Hu=this.j.N("html5_iterative_seeking_buffered_time")};
sKa=function(a,b){1080<b.video.j&&!a.Sl&&(a.T=36700160,a.oa=5242880,a.Ec=10485760,a.ya=Math.max(4194304,a.ya),a.Sl=!0);2160<b.video.j&&!a.Tl&&(a.T=104857600,a.ac=13107200,a.Tl=!0);b.isEncrypted()&&g.dw()&&bw("kant")&&(a.ac=1310720);b.ac&&(a.xn=Math.max(65536,Math.min(a.ya,5*b.ac)))};
g.RQ=function(a,b){return sF(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.tKa=function(a,b){if(null!=a.j&&g.UH(b.V())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.Pd())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.RQ(c,"386")});
a=!!a.j&&!a.j.isManifestless&&Bua(a.j);return b||a};
g.SQ=function(a,b,c,d,e){g.OQ.call(this,a);this.videoId=c;this.FS=e;this.D={};this.u=null;a=d||g.Bv(b).hl||"";a=a.split("_").join("-");this.B=Cv(b,{hl:a})};
vKa=function(){this.j=uKa(this)};
uKa=function(a){return{env:{emscripten_notify_memory_growth:function(){}},
wasi_snapshot_preview1:{proc_exit:function(){},
fd_write:function(b,c,d){b=new DataView(a.exports.memory.buffer);for(var e="",f=0,h=0;h<d;h++){var l=b.getUint32(c,!0),m=b.getUint32(c+4,!0);f+=m;e+=g.qD(new Uint8Array(a.exports.memory.buffer,l,m));c+=8}console.log(e);return f}}}};
wKa=function(a){var b,c;return g.A(function(d){if(1==d.j)return b=new vKa,g.y(d,WebAssembly.instantiateStreaming(fetch(a),b.j),2);c=d.u;b.module=c.module;b.instance=c.instance;b.exports=b.instance.exports;return d.return(b)})};
TQ=function(a,b){g.E.call(this);this.G=a;this.I=b;this.bE={};this.j={};this.u=null;this.J=this.G.N("web_player_defer_modules");this.C=new Set;this.B=this.G.V().Gl||0;this.Ue=new Map;0<this.B&&(this.D=new g.Zn(this.aE,this.B,this),g.H(this,this.D))};
g.UQ=function(a){return a.Ue.get("captions")};
BKa=function(a,b){switch(b){case "ad":return VQ(a);case "annotations_module":return a.isShortsModeEnabled()?a=!1:(b=a.G,a=b.V(),b=b.getVideoData(),a=a.j||b.uQ||"3"===a.controlsType?!1:a.ya.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Wa||!!g.WJ(b)||!!g.XJ(b):!0),a;case "creatorendscreen":return xKa(a);case "embed":return g.tH(a.G.V());case "endscreen":return g.yKa(a);case "heartbeat":return a.rN();case "inline_preview":return a.G.V().showInlinePreviewUi;case "kids":return JH(a.G.V());
case "remote":return a.G.V().Pb;case "miniplayer":return a.G.V().showMiniplayerUiWhenMinimized;case "music":return g.DH(a.G.V());case "offline":return a.G.V().Wh;case "captions":return zKa(a);case "unplugged":return g.BH(a.G.V());case "ux":return a.G.V().Sf;case "webgl":return AKa(a);case "ypc":return a.xC();case "ypc_clickwrap":return a=a.G.getVideoData(),a.Sf&&!a.nI;case "yto":return!!a.G.getVideoData().Ba.includes("yto");default:return g.rA(Error("Module descriptor "+b+" does not match")),!1}};
WQ=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Ue.get(b);if(!h||d)if(e||(e=function(){WQ(a,b,c,d)}),f||(f=function(){a.G.gg(b)}),h=h||CKa(a,b,BKa(a,b),e,f))a.Ue.set(b,h),h.create(),a.G.ma("modulecreated",b),c&&a.G.Oa("onApiChange")};
DKa=function(a){var b=a.G.getVideoData(),c=a.J&&!b.isInlinePlaybackNoAd;a.G.N("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
XQ=function(a){a=a.G.getVideoData();var b;if(b=a.N("web_player_defer_ad")){if(g.nb(a.Ba,"ad")||sJ(a,"disable_defer_admodule_on_advertiser_video")&&ABa(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=null==b?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.t(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=null==(e=d.config)?void 0:e.adPlacementConfig;e=void 0;if("AD_PLACEMENT_KIND_MILLISECONDS"===(null==(e=f)?void 0:e.kind)){var h=
e=void 0;f=Number(null==(e=f)?void 0:null==(h=e.adTimeOffset)?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number((null==(e=d.renderer)?void 0:null==(h=e.adBreakServiceRenderer)?void 0:h.prefetchMilliseconds)||0);d=f-d;d<b&&(b=d)}}b=b-5E3<=1E3*a}a=b?!1:!0}b=a}return b};
zKa=function(a){var b=a.G.getVideoData();return!!b.Xe||!!b.captionTracks.length||g.tKa(b,a.G)};
g.yKa=function(a){var b=a.G.V();if(b.j||YH(b)||b.J||!b.xd&&!b.Mg)return!1;var c=a.G.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.N("desktop_enable_autoplay");a=a.G.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.N("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");return!c||b};
g.aQ=function(a){return a.Ue.get("webgl")};
AKa=function(a){var b=a.G.getVideoData();a=a.G.V();var c=g.lna(),d=a.N("enable_spherical_kabuki"),e=g.XH(a);if(g.VJ(b))return c||d||e;if(g.SJ(b))return e||c||d;if(g.TJ(b))return e||c||!1;if(g.UJ(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.KJ(b)&&!c&&a.N("enable_webgl_noop")};
VQ=function(a){if(a.G.V().j)return!1;if(a=a.G.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
xKa=function(a){if(a.isShortsModeEnabled())return!1;a=a.G;var b=a.V();if(b.j||"3"===b.controlsType)return!1;if("creator-endscreen-editor"===b.playerStyle)return!0;a=a.getVideoData();return!!a&&(!!g.KBa(a)||!!g.LBa(a))};
CKa=function(a,b,c,d,e){try{if(c){var f=JQ.get(b);if(f)return new f(a.G);EKa(a,b,d,e)}else a.G.gg(b)}catch(h){a.G.gg(b),g.rA(h)}return null};
YQ=function(a,b,c){for(var d=g.t(a.Ue),e=d.next();!e.done;e=d.next()){var f=g.t(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Ck(b))&&(g.ab(f),a.Ue.delete(e))}};
ZQ=function(a){return a.Ue.get("ad")};
$Q=function(a){if(JH(a.G.V()))return a.Ue.get("kids")};
ZP=function(a){if(a.G.V().Pb)return a.Ue.get("remote")};
g.aR=function(a){if(g.BH(a.G.V()))return a.Ue.get("unplugged")};
PP=function(a){if(a.G.V().Sf)return a.Ue.get("ux")};
bR=function(a){if(a.G.V().Wh)return a.Ue.get("offline")};
g.cR=function(a){return a.Ue.get("annotations_module")};
dR=function(a){return a.Ue.get("creatorendscreen")};
FKa=function(a){a=a.I.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return wKa(a)};
EKa=function(a,b,c,d){if(a.I){var e=GKa[b];HKa(a,a.I+e,function(){a.C.add(e);c.call(a)},d)}};
HKa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.Be("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.Oe("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(z){cf(f);q&&q.apply(window,[z])};
var r=m.onerror;m.onerror=function(z){if(.01>Math.random()){var B=new g.Sw("Unable to load player module",b,document.location&&document.location.origin);g.rA(B)}cf(e);r&&r(z)};
var w=m,x=w.onreadystatechange;w.onreadystatechange=function(z){switch(w.readyState){case "loaded":case "complete":cf(f)}x&&x(z)};
l&&((h=a.G.V().cspNonce)&&m.setAttribute("nonce",h),g.Wi(m,Dla(b)),h=g.Be("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.cb(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
eR=function(a,b,c){g.eb.call(this,b,a);this.j=c};
g.fR=function(a){DL.call(this);var b=this;this.j=a;this.I={};this.listener=function(c){b.dispatchEvent(new eR(b,c.type,c))}};
hR=function(a,b,c,d,e){g.FB.call(this);var f=this;this.target=a;this.OD=b;this.u=0;this.I=!1;this.C=new g.he(NaN,NaN);this.j=new g.vF(this);this.ya=this.B=this.J=null;g.H(this,this.j);b=d||e?4E3:3E3;this.Z=new g.Zn(function(){gR(f,1,!1)},b,this);
g.H(this,this.Z);this.ea=new g.Zn(function(){gR(f,2,!1)},b,this);
g.H(this,this.ea);this.oa=new g.Zn(function(){gR(f,512,!1)},b,this);
g.H(this,this.oa);this.Aa=c&&0<c.Ng.length?5E3:3E3;d||(this.B=this.j.S(a,"mouseover",this.Qu),this.j.S(a,"mousemove",this.IY),this.j.S(a,"mouseleave",this.o2));Bl?this.j.S(a,"keypress",this.K1):this.j.S(a,"focusin",this.u0);this.D=this.j.S(a,"mousedown",this.MP);this.T=this.j.S(a,"touchstart",this.NP,void 0,!0);gR(this,640,!0)};
IKa=function(a){gR(a,4,!1);a.J&&(a.j.Dc(a.J),a.J=null,a.B=a.j.S(a.target,"mouseover",a.Qu));a.B&&(a.j.Dc(a.B),a.B=a.j.S(a.target,"mouseover",a.Qu))};
gR=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.Z.start(),b&2&&a.ea.start()):(a.u&=~b,b&1&&a.Z.stop(),b&2&&a.ea.stop(),b&512&&a.oa.stop());a.u&512&&!(a.u&128)&&g.$n(a.oa,a.Aa);b=!a.u;d!==b&&a.ma("autohideupdate",b)};
g.jR=function(a){g.W.call(this,{F:"button",Ga:["ytp-large-play-button","ytp-button"],X:{"aria-label":"Play"},W:["{{largePlayButtonChildren}}"]});this.api=a;this.S(a,"videodatachange",this.La);this.S(a,"basechromeinitialized",this.La);a=this.api.V();a.I&&iR&&(this.Qa("click",this.j,this),this.Qa("touchstart",this.u,this));g.zH(a)&&g.ho(this.element,"ytp-large-play-button-red-bg");this.api.qb(this.element,this,28572);this.La()};
g.kR=function(a){var b=a.V(),c=["ytp-cued-thumbnail-overlay"];b.J&&c.push("ytp-exp-contain-thumbnail");b.N("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.W.call(this,{F:"div",Ga:c,W:[{F:"div",K:"ytp-cued-thumbnail-overlay-image"}]});b=this.Ea("ytp-cued-thumbnail-overlay");c=new g.jR(a);g.H(this,c);c.Ca(b);this.B=new g.vF(this);g.H(this,this.B);this.api=a;this.D=this.Ea("ytp-cued-thumbnail-overlay-image");this.C=c;this.u=new g.FN(this,250);g.H(this,this.u);this.j=new g.Zn(this.La,
0,this);g.H(this,this.j);this.La();this.S(a,"appresize",this.Bb);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"ypcStateChanged",this.y5);vH(a.V())&&this.S(a,"videoplayerreset",this.LY)};
JKa=function(a){if(!a.api.N("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.Eb();a=g.V(a,64)&&g.V(a,1);return 0===b&&a};
KKa=function(a){var b=!a.V().qj&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.lR=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.VN(a))return g.Xy(a),!0;b.pauseVideo();a=e.getAttribute("href");g.fO(a,d,!0);return!1};
g.mR=function(a,b,c){if(QH(b.V())&&2!==b.getPresentingPlayerType()){if(g.VN(c))return b.isFullscreen()&&!b.V().externalFullscreen&&b.toggleFullscreen(),g.Xy(c),!0}else if(b.V().N("embeds_enable_webview_nonjs_navigation")&&g.tH(b.V())&&(mw()||kw()))b=c.target,b instanceof HTMLAnchorElement&&Ti(b,Ofa(a));else{var d=g.VN(c);d&&b.pauseVideo();g.fO(a,void 0,!0);d&&(g.gO(a),g.Xy(c))}return!1};
LKa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{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:"ytp-subtitles-button-icon"}};
nR=function(){return{F:"div",K:"ytp-spinner-container",W:[{F:"div",K:"ytp-spinner-rotator",W:[{F:"div",K:"ytp-spinner-left",W:[{F:"div",K:"ytp-spinner-circle"}]},{F:"div",K:"ytp-spinner-right",W:[{F:"div",K:"ytp-spinner-circle"}]}]}]}};
oR=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
pR=function(a,b,c){a=a.V();return a.N("desktop_player_button_tooltip_with_shortcut")&&!a.nj?g.qL("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.qR=function(a){g.W.call(this,{F:"div",Ga:["ytp-error"],X:{role:"alert"},W:[{F:"div",K:"ytp-error-content",W:[{F:"div",K:"ytp-error-icon-container",W:[{F:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},W:[{F:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{F:"path",X:{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"}}]}]},{F:"div",K:"ytp-error-content-wrap",
W:[{F:"div",K:"ytp-error-content-wrap-reason",qa:"{{content}}"},{F:"div",K:"ytp-error-content-wrap-subreason",qa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.rR=function(a){a=a.split(MKa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({F:"br"}),b.push(d[e]);c<a.length&&b.push({F:"a",X:{href:a[c],target:a[c+1]},qa:a[c+2]})}return{F:"span",W:b}};
tR=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.V().u);a=a.api.getVideoData();b=g.qL(g.sR[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({F:"h2",qa:f});d.push(b[0]);h&&d.push({F:"br"});d.push({F:"a",X:{href:c,target:e?"_blank":null},qa:b[2]});d.push(b[4]);return{F:"span",W:d}};
NKa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.S(c[d],"click",b);a.keys.push(e)}};
OKa=function(a){for(var b=0;b<a.keys.length;b++)a.Dc(a.keys[b]);a.keys=[]};
uR=function(a){g.vF.call(this);this.G=a;this.j=new Set;this.mediaSession=navigator.mediaSession;this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.ji);this.onVideoDataChange()};
vR=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.j.add(b)};
PKa=function(a){vR(a,"play",function(){a.G.playVideo()});
vR(a,"pause",function(){a.G.pauseVideo()});
vR(a,"seekbackward",function(){a.G.seekBy(-5*a.G.getPlaybackRate())});
vR(a,"seekforward",function(){a.G.seekBy(5*a.G.getPlaybackRate())})};
QKa=function(a){var b,c;a=a.G.getVideoData();a=a.watchNextResponse&&a.watchNextResponse.playerOverlays||null;return null==a?void 0:null==(b=a.playerOverlayRenderer)?void 0:null==(c=b.browserMediaSession)?void 0:c.browserMediaSessionRenderer};
RKa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.t(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||0>=c.width||!c.height||0>=c.height||g.vB(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
SKa=function(a){var b=a.G.Eb();b=b.isCued()||b.isError()?"none":g.PL(b)?"playing":"paused";a.mediaSession.playbackState=b};
wR=function(a){g.W.call(this,{F:"div",K:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.videoId=null;this.B=!1;this.Qd=this.j=null;var b=a.V();a.N("enable_new_paid_product_placement")&&!g.VH(b)?(this.u=new g.W({F:"a",K:"ytp-paid-content-overlay-link",X:{href:"{{href}}",target:"_blank"},W:[{F:"div",K:"ytp-paid-content-overlay-icon",qa:"{{icon}}"},{F:"div",K:"ytp-paid-content-overlay-text",qa:"{{text}}"},{F:"div",K:"ytp-paid-content-overlay-chevron",qa:"{{chevron}}"}]}),
this.S(this.u.element,"click",this.onClick)):this.u=new g.W({F:"div",Ga:["ytp-button","ytp-paid-content-overlay-text"],qa:"{{text}}"});this.C=new g.FN(this.u,250,!1,100);g.H(this,this.u);this.u.Ca(this.element);g.H(this,this.C);this.G.Og(this.element,this);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.qd)};
UKa=function(a,b){var c=zBa(b),d=LJ(b);b.Sf&&a.G.Zn()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.bo(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&TKa(a,d,c,b)):c&&d&&TKa(a,d,c,b))};
TKa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Zn(a.yb,b,a);g.H(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var h;f=null==b?void 0:null==(h=b.icon)?void 0:h.iconType;var l;h=null==(l=g.P(e,g.zI))?void 0:l.url;a.G.Ph(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{F:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 24 24",
width:"100%"},W:[{F:"path",X:{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:h?g.YM():null})};
VKa=function(a,b){a.j&&(g.V(b,8)&&a.B?(a.B=!1,a.Pc(),a.j.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))};
xR=function(a){g.W.call(this,{F:"div",K:"ytp-spinner",W:[nR(),{F:"div",K:"ytp-spinner-message",qa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Ea("ytp-spinner-message");this.j=new g.Zn(this.show,500,this);g.H(this,this.j);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"playbackstalledatstart",this.u);this.Fc(a.Eb())};
yR=function(a){var b=CG(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{F:"div",Ga:["ytp-unmute-icon"],W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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"}}]}]},
{F:"div",Ga:["ytp-unmute-text"],qa:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({F:"div",Ga:["ytp-unmute-box"],W:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.eQ.call(this,a,{F:"button",Ga:["ytp-unmute","ytp-popup","ytp-button"].concat(c),W:[{F:"div",K:"ytp-unmute-inner",W:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.qb(this.element,this,51663);this.S(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.S(a,"presentingplayerstatechange",
this.ji);this.Qa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.tH(this.api.V());g.SM(this,a);a&&WKa(this);this.B=a};
WKa=function(a){a.j||(a.j=!0,a.api.Sa(a.element,!0))};
g.AR=function(a){g.vF.call(this);var b=this;this.api=a;this.zL=!1;this.xo=null;this.ZD=!1;this.Vf=null;this.uJ=this.TG=!1;this.WN=this.XN=null;this.cT=NaN;this.VN=this.lA=!1;this.BB=0;this.HI=[];this.uM=!1;this.aF={height:0,width:0};var c=a.V(),d=a.fb();this.aF=a.getPlayerSize();this.HQ=new g.Zn(this.KL,0,this);g.H(this,this.HQ);g.DH(c)||(this.qp=new g.kR(a),g.H(this,this.qp),g.cQ(a,this.qp.element,4));if(XKa(this)){var e=new xR(a);g.H(this,e);e=e.element;g.cQ(a,e,4)}var f=a.getVideoData();this.Qe=
new hR(d,function(l){return b.OD(l)},f,c.Ng,!1);
g.H(this,this.Qe);this.Qe.subscribe("autohideupdate",this.Gm,this);if(!c.disablePaidContentOverlay){var h=new wR(a);g.H(this,h);g.cQ(a,h.element,4)}this.dO=new yR(a);g.H(this,this.dO);g.cQ(this.api,this.dO.element,2);this.KK=this.api.isMutedByMutedAutoplay();this.S(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.OG=new g.Zn(this.Sy,200,this);g.H(this,this.OG);this.qB=f.videoId;this.fV=new g.Zn(function(){b.BB=0},350);
g.H(this,this.fV);this.fE=new g.Zn(function(){b.VN||zR(b)},350,this);
g.H(this,this.fE);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.ho(f,"ytp-color-white")}g.DH(c)&&g.ho(f,"ytp-music-player");!a.N("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new uR(a),g.H(this,f));this.S(a,"appresize",this.Bb);this.S(a,"presentingplayerstatechange",this.ji);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"videoplayerreset",this.f4);this.S(a,"autonavvisibility",
function(){b.Oo()});
this.S(a,"sizestylechange",function(){b.Oo()});
this.S(d,"click",this.D4,this);this.S(d,"dblclick",this.E4,this);c.tb&&(this.S(d,"gesturechange",this.F4,this),this.S(d,"gestureend",this.G4,this));this.ws=[d.dA];this.qp&&this.ws.push(this.qp.element);e&&this.ws.push(e)};
YKa=function(a,b){if(!b)return!1;var c=a.api.ue();if(c.At()&&(c=c.ub())&&g.We(c,b))return c.controls;for(c=0;c<a.ws.length;c++)if(g.We(a.ws[c],b))return!1;return g.go(b,"ytp-player-content")||g.go(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
ZKa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.fb().VE||!1)&&a.api.V().isMobile&&iR&&11<=gK;a=a.api.V().I&&iR;return!(!b&&!a)};
BR=function(a,b){return!YKa(a,Uy(b))&&g.VN(b)};
zR=function(a){a.Qe.Mo();if(a.TG&&a.uJ)a.uJ=!1;else if(!a.api.V().Pa&&!a.fl()){var b=a.api.Eb();g.V(b,2)&&g.XP(a.api)||a.Dv(b);if(!a.api.V().tb||b.isCued()||g.V(b,1024)){var c=a.api.HG();g.ax("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.V(b,1024);c&&(b.isCued()||d)?(g.ax("embedsRequestStorageAccessState",{isCued:b.isCued(),v$a:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.ax("embedsRequestStorageAccessFailedState",{state:b.state}),a.Sy())}else a.OG.isActive()?
(a.WE(),a.OG.stop()):a.OG.start()}};
$Ka=function(a,b){return g.VN(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.Eb(),!g.V(b,4)||g.V(b,8)||g.V(b,2)||a.Sy(),!0):!1};
aLa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
XKa=function(a){a=cw()&&67<=ina()&&!a.api.V().I;return!bw("tizen")&&!qH&&!a&&!0};
CR=function(a,b){b=void 0===b?2:b;g.FB.call(this);this.api=a;this.j=null;this.md=new eA(this);g.H(this,this.md);this.u=xFa;this.md.S(this.api,"presentingplayerstatechange",this.qd);this.j=this.md.S(this.api,"progresssync",this.uc);this.Vm=b;1===this.Vm&&this.uc()};
DR=function(a){g.W.call(this,{F:"button",Ga:["ytp-button","ytp-back-button"],W:[{F:"div",K:"ytp-arrow-back-icon",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",Tb:!0,X:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.G=a;g.SM(this,a.V().showBackButton);this.Qa("click",this.onClick)};
g.ER=function(a){g.W.call(this,{F:"div",W:[{F:"div",K:"ytp-bezel-text-wrapper",W:[{F:"div",K:"ytp-bezel-text",qa:"{{title}}"}]},{F:"div",K:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},W:[{F:"div",K:"ytp-bezel-icon",qa:"{{icon}}"}]}]});this.G=a;this.u=new g.Zn(this.show,10,this);this.j=new g.Zn(this.hide,500,this);g.H(this,this.u);g.H(this,this.j);this.hide()};
GR=function(a,b,c){if(0>=b){c=iN();b="muted";var d=0}else c=c?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{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"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{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(b),b=d+"volume";FR(a,c,b,d+"%")};
bLa=function(a,b){b=b?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.G.getPlaybackRate(),d=g.qL("Speed is $RATE",{RATE:String(c)});FR(a,b,d,c+"x")};
cLa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";FR(a,LKa(),b)};
FR=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.bo(a.j);a.u.start();a.updateValue("title",d);g.lo(a.element,"ytp-bezel-text-hide",!d)};
IR=function(a,b,c){g.W.call(this,{F:"button",Ga:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.tH(a.V()))},W:[{F:"span",K:"ytp-cards-button-icon-default",W:[{F:"div",K:"ytp-cards-button-icon",W:[a.V().N("player_new_info_card_format")?VEa():{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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"}}]}]},
{F:"div",K:"ytp-cards-button-title",qa:"Info"}]},{F:"span",K:"ytp-cards-button-icon-shopping",W:[{F:"div",K:"ytp-cards-button-icon",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",K:"ytp-svg-shadow",X:{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"}},{F:"path",K:"ytp-svg-fill",X:{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"}},{F:"path",K:"ytp-svg-shadow-fill",X:{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"}}]}]},{F:"div",
K:"ytp-cards-button-title",qa:"Shopping"}]}]});this.G=a;this.B=b;this.C=c;this.j=null;this.u=new g.FN(this,250,!0,100);g.H(this,this.u);g.lo(this.C,"ytp-show-cards-title",g.tH(a.V()));this.hide();this.Qa("click",this.onClicked);this.Qa("mouseover",this.D3);HR(this,!0)};
HR=function(a,b){b?a.j=g.JR(a.B.Bc(),a.element):(a.j=a.j,a.j(),a.j=null)};
KR=function(a,b,c){g.W.call(this,{F:"div",K:"ytp-cards-teaser",W:[{F:"div",K:"ytp-cards-teaser-box"},{F:"div",K:"ytp-cards-teaser-text",W:a.V().N("player_new_info_card_format")?[{F:"button",K:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},W:[VEa()]},{F:"span",K:"ytp-cards-teaser-label",qa:"{{text}}"},{F:"button",K:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},W:[g.ZM()]}]:[{F:"span",K:"ytp-cards-teaser-label",qa:"{{text}}"}]}]});var d=this;this.G=a;this.Z=
b;this.Fi=c;this.C=new g.FN(this,250,!1,250);this.j=null;this.J=new g.Zn(this.Q3,300,this);this.I=new g.Zn(this.P3,2E3,this);this.D=[];this.u=null;this.T=new g.Zn(function(){d.element.style.margin="0"},250);
this.onClickCommand=this.B=null;g.H(this,this.C);g.H(this,this.J);g.H(this,this.I);g.H(this,this.T);a.V().N("player_new_info_card_format")?(g.ho(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.S(this.Ea("ytp-cards-teaser-close-button"),"click",this.Bo),this.S(this.Ea("ytp-cards-teaser-info-icon"),"click",this.LN),this.S(this.Ea("ytp-cards-teaser-label"),"click",this.LN)):this.Qa("click",this.LN);this.S(c.element,"mouseover",this.PP);this.S(c.element,"mouseout",this.OP);this.S(a,"cardsteasershow",
this.d5);this.S(a,"cardsteaserhide",this.yb);this.S(a,"cardstatechange",this.nW);this.S(a,"presentingplayerstatechange",this.nW);this.S(a,"appresize",this.jO);this.S(a,"onShowControls",this.jO);this.S(a,"onHideControls",this.F_);this.Qa("mouseenter",this.MY)};
MR=function(a){g.W.call(this,{F:"button",Ga:[LR.BUTTON,LR.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{F:"div",K:LR.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},W:[g.cN()]},{F:"div",K:LR.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},W:[{F:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{F:"path",X:{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=a;this.j=!1;a.qb(this.element,this,36927);this.Qa("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
dLa=function(a,b){a.j=b;a.element.classList.toggle(LR.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.tO:c.rO)?(a=a.api.mm())?oO(a,b):g.uv(Error("No innertube service available when updating notification preferences.")):g.uv(Error("No update preferences command available.")):g.uv(Error("No video data when updating notification preferences."))};
g.OR=function(a,b,c,d,e,f,h,l,m,n,p,q,r){r=void 0===r?null:r;f&&(a=a.charAt(0)+a.substring(1).toLowerCase());var w;if(f||(null==(w=r)?0:w.Me()))c=c.charAt(0)+c.substring(1).toLowerCase();if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var x=q.V();p=x.userDisplayName&&g.zH(x)&&!x.N("subscribe_tooltipkillswitch");g.W.call(this,{F:"div",Ga:["ytp-button","ytp-sb"],W:[{F:"div",K:"ytp-sb-subscribe",X:p?{title:g.qL("Subscribe as $USER_NAME",{USER_NAME:x.userDisplayName}),"aria-label":"Subscribe to channel",
"data-tooltip-image":ZH(x),"data-tooltip-opaque":String(g.tH(x)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},W:[{F:"div",K:"ytp-sb-text",W:[{F:"div",K:"ytp-sb-icon"},a]},b?{F:"div",K:"ytp-sb-count",qa:b}:""]},{F:"div",K:"ytp-sb-unsubscribe",X:p?{title:g.qL("Subscribed as $USER_NAME",{USER_NAME:x.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":ZH(x),"data-tooltip-opaque":String(g.tH(x)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},
W:[{F:"div",K:"ytp-sb-text",W:[{F:"div",K:"ytp-sb-icon"},c]},d?{F:"div",K:"ytp-sb-count",qa:d}:""]}],X:{"aria-live":"polite"}});var z=this;this.channelId=h;this.B=r;this.G=q;var B=this.Ea("ytp-sb-subscribe"),C=this.Ea("ytp-sb-unsubscribe");f&&g.ho(this.element,"ytp-sb-classic");if(e){x.N("web_rounded_containers")&&(g.ho(B,"ytp-sb-rounded"),g.ho(C,"ytp-sb-rounded"));l?this.j():this.u();var G=function(){if(x.authUser){var K=z.channelId;if(m||n){var L={c:K};if(q.V().N("embeds_botguard_with_subscribe_killswitch"))L=
"";else{var N;g.bP.isInitialized()&&(N=cJa(L));L=N||""}if(N=q.getVideoData())if(N=N.subscribeCommand){var ba=q.mm();ba?(oO(ba,N,{botguardResponse:L,feature:m}),q.Oa("SUBSCRIBE",K)):g.uv(Error("No innertube service available when updating subscriptions."))}else g.uv(Error("No subscribe command in videoData."));else g.uv(Error("No video data available when updating subscription."))}C.focus();C.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")}else g.hO(z.C,"sb_button",g.NH(z.G.V()))},
F=function(){var K=z.channelId;
if(m||n){var L=q.getVideoData();oO(q.mm(),L.unsubscribeCommand,{feature:m});q.Oa("UNSUBSCRIBE",K)}B.focus();B.removeAttribute("aria-hidden");C.setAttribute("aria-hidden","true")};
this.S(B,"click",G);this.S(C,"click",F);this.S(B,"keypress",function(K){13===K.keyCode&&G(K)});
this.S(C,"keypress",function(K){13===K.keyCode&&F(K)});
this.S(q,"SUBSCRIBE",this.j);this.S(q,"UNSUBSCRIBE",this.u);this.B&&p&&(this.tooltip=this.B.Bc(),NR(this.tooltip),g.cb(this,g.JR(this.tooltip,B)),g.cb(this,g.JR(this.tooltip,C)))}else g.ho(B,"ytp-sb-disabled"),g.ho(C,"ytp-sb-disabled")};
QR=function(a,b){g.W.call(this,{F:"div",K:"ytp-title-channel",W:[{F:"div",K:"ytp-title-beacon"},{F:"a",K:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.V().T,"aria-label":"{{channelLogoLabel}}"}},{F:"div",K:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{F:"div",K:"ytp-title-expanded-heading",W:[{F:"div",K:"ytp-title-expanded-title",W:[{F:"a",qa:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.V().T,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{F:"div",K:"ytp-title-expanded-subtitle",qa:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});this.api=a;this.C=b;this.channel=this.Ea("ytp-title-channel");this.j=this.Ea("ytp-title-channel-logo");this.D=this.Ea("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;a.qb(this.j,this,36925);PR(this)&&eLa(this);this.C.Me()&&fLa(this);this.S(a,"videodatachange",this.La);this.S(a,"videoplayerreset",this.La);
this.La()};
fLa=function(a){a.updateValue("flyoutUnfocusable","false");a.updateValue("channelTitleFocusable","0");a.S(a.j,"click",function(){a.api.rb(a.j)});
gLa(a)};
gLa=function(a){if(!a.api.V().nf){var b=a.api.getVideoData(),c=new g.OR("Subscribe",null,"Subscribed",null,!0,!1,b.Kl,b.subscribed,"channel_avatar",null,null,a.api,a.C);a.api.Og(c.element,a);var d;a.api.Ph(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.S(c.element,"click",function(){a.api.rb(c.element)});
a.subscribeButton=c;g.H(a,a.subscribeButton);a.subscribeButton.Ca(a.D);if(a.C.Me())a.api.Sa(a.subscribeButton.element,!0);else{a.subscribeButton.hide();var e=new MR(a.api);a.u=e;g.H(a,e);e.Ca(a.D);e.hide();a.S(a.api,"SUBSCRIBE",function(){b.Mk&&(e.show(),a.api.Sa(e.element,!0))});
a.S(a.api,"UNSUBSCRIBE",function(){b.Mk&&(e.hide(),a.api.Sa(e.element,!1),dLa(e,!1))})}}};
eLa=function(a){var b=a.api.V();gLa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.isMobile||b.Ac?a.S(a.j,"click",function(c){hLa(a)&&(c.preventDefault(),a.isExpanded()?a.pJ():a.QJ());a.api.rb(a.j)}):(a.S(a.channel,"mouseenter",a.QJ),a.S(a.channel,"mouseleave",a.pJ),a.S(a.channel,"focusin",a.QJ),a.S(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||
a.pJ()}),a.S(a.j,"click",function(){a.api.rb(a.j)}));
a.B=new g.Zn(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.Sa(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Sa(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.H(a,a.B);a.S(a.channel,iLa,function(){jLa(a)});
a.S(a.api,"onHideControls",a.VM);a.S(a.api,"appresize",a.VM);a.S(a.api,"fullscreentoggled",a.VM)};
jLa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
hLa=function(a){var b=a.api.getPlayerSize();return PR(a)&&524<=b.width};
PR=function(a){return g.tH(a.api.V())&&!a.C.Me()};
kLa=function(a,b){var c={};a.api.V().Ka&&g.jP(c,a.api.V().loaderUrl);g.NP(a.api,"addEmbedsConversionTrackingParams",[c]);return g.ci(b,g.iP(c,"emb_ch_name_ex"))};
RR=function(a,b,c,d,e,f){var h={F:"div",K:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={F:"div",K:"ytp-panel-header",W:[{F:"div",Ga:["ytp-panel-back-button-container"],W:[{X:{"aria-label":"Back to previous menu"},F:"button",Ga:["ytp-button",l]}]},{X:{tabindex:"0"},F:"span",Ga:[m],W:[c]}]};if(e){var p="ytp-panel-options";n.W.push({F:"button",Ga:["ytp-button",p],W:[d]})}h.W=[n]}d=!1;f&&(f={F:"div",K:"ytp-panel-footer",W:[f]},d=!0,h.W?h.W.push(f):h.W=[f]);g.TM.call(this,
h);this.content=b;d&&h.W?b.Ca(this.element,h.W.length-1):b.Ca(this.element);this.xS=!1;this.wS=d;c&&(c=this.Ea(l),m=this.Ea(m),this.S(c,"click",this.LT),this.S(m,"click",this.LT),this.xS=!0,e&&(p=this.Ea(p),this.S(p,"click",e)));b.subscribe("size-change",this.ST,this);this.S(a,"fullscreentoggled",this.ST);this.G=a};
lLa=function(a,b){var c=new g.TM({F:"div",K:"ytp-multi-item-panel"});a.content.Ca(c.element);b.Ca(c.element);a.content=c;c.Ca(a.element);g.H(a,c)};
g.SR=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.TM({F:"div",K:"ytp-panel-menu",X:h});RR.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.H(this,this.menuItems)};
g.TR=function(a){for(var b=g.t(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.eM,a);a.items=[];g.Re(a.menuItems.element);a.menuItems.ma("size-change")};
mLa=function(a,b){return b.priority-a.priority};
UR=function(a){var b=g.iQ({"aria-haspopup":"true"});g.hQ.call(this,b,a);this.Qa("keydown",this.j)};
VR=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
WR=function(a,b){g.W.call(this,{F:"div",K:"ytp-user-info-panel",X:{"aria-label":"User info"},W:a.V().authUser&&!a.N("embeds_web_always_enable_signed_out_state")?[{F:"div",K:"ytp-user-info-panel-icon",qa:"{{icon}}"},{F:"div",K:"ytp-user-info-panel-content",W:[{F:"div",K:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},qa:"{{watchingAsUsername}}"},{F:"div",K:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},qa:"{{watchingAsEmail}}"}]}]:[{F:"div",
K:"ytp-user-info-panel-icon",qa:"{{icon}}"},{F:"div",K:"ytp-user-info-panel-content",W:[{F:"div",W:[{F:"text",X:{tabIndex:"{{userInfoFocusable}}"},qa:"Signed out"}]},{F:"div",K:"ytp-user-info-panel-login",W:[{F:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},qa:a.V().nf?"":"Sign in on YouTube"}]}]}]});this.Ua=a;this.j=b;a.V().authUser||a.V().nf||(a=this.Ea("ytp-user-info-panel-login"),this.S(a,"click",this.PY));this.closeButton=new g.W({F:"button",Ga:["ytp-collapse","ytp-button"],X:{title:"Close"},
W:[g.hN()]});this.closeButton.Ca(this.element);g.H(this,this.closeButton);this.S(window,"blur",this.hide);this.S(document,"click",this.OY);this.La()};
YR=function(a,b,c,d){g.SR.call(this,a);this.ob=c;this.Nc=d;this.getVideoUrl=new UR(6);this.pm=new UR(5);this.hm=new UR(4);this.jc=new UR(3);this.lC=new g.hQ(g.iQ({href:"{{href}}",target:this.G.V().T},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.hQ(g.iQ(),1,"Stats for nerds");this.ex=new g.TM({F:"div",Ga:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},qa:"{{text}}"});this.gR=new RR(this.G,this.ex);this.MC=this.Rr=null;g.tH(this.G.V())&&this.G.N("embeds_web_enable_new_context_menu_triggering")&&
(this.closeButton=new g.W({F:"button",Ga:["ytp-collapse","ytp-button"],X:{title:"Close"},W:[g.hN()]}),this.closeButton.Ca(this.element),this.closeButton.Qa("click",this.J_,this));g.tH(this.G.V())&&(this.Dk=new g.hQ(g.iQ(),8,"Account"),g.H(this,this.Dk),this.Jc(this.Dk,!0),this.Dk.Qa("click",this.Q4,this),a.qb(this.Dk.element,this.Dk,137682));this.G.V().Qk&&(this.lk=new oQ("Loop",7),g.H(this,this.lk),this.Jc(this.lk,!0),this.lk.Qa("click",this.J3,this),a.qb(this.lk.element,this.lk,28661));g.H(this,
this.getVideoUrl);this.Jc(this.getVideoUrl,!0);this.getVideoUrl.Qa("click",this.B3,this);a.qb(this.getVideoUrl.element,this.getVideoUrl,28659);g.H(this,this.pm);this.Jc(this.pm,!0);this.pm.Qa("click",this.C3,this);a.qb(this.pm.element,this.pm,28660);g.H(this,this.hm);this.Jc(this.hm,!0);this.hm.Qa("click",this.A3,this);a.qb(this.hm.element,this.hm,28658);g.H(this,this.jc);this.Jc(this.jc,!0);this.jc.Qa("click",this.z3,this);g.H(this,this.lC);this.Jc(this.lC,!0);this.lC.Qa("click",this.z4,this);g.H(this,
this.showVideoInfo);this.Jc(this.showVideoInfo,!0);this.showVideoInfo.Qa("click",this.R4,this);g.H(this,this.ex);this.ex.Qa("click",this.n3,this);g.H(this,this.gR);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=rc("Chromium")&&(b=!0);40>=rc("Firefox")&&(b=!1);b&&(this.Rr=new g.W({F:"textarea",K:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.H(this,this.Rr),this.Rr.Ca(this.element));var e;null==(e=this.Dk)||jQ(e,YEa());var f;null==(f=this.lk)||jQ(f,{F:"svg",X:{fill:"none",
height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});jQ(this.jc,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{"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"}}]});jQ(this.lC,{F:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{"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"}}]});jQ(this.showVideoInfo,UEa());this.S(a,"onLoopChange",this.onLoopChange);this.S(a,"videodatachange",this.onVideoDataChange);nLa(this);this.oN(this.G.getVideoData())};
$R=function(a,b){var c=!1;if(a.Rr){var d=a.Rr.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.ob.yb():(a.ex.ke(b,"text"),g.ZR(a.ob,a.gR),oR(a.ex.element),a.Rr&&(a.Rr=null,nLa(a)));return c};
nLa=function(a){var b=!!a.Rr;a.jc.ph(b?"Copy debug info":"Get debug info");VR(a.jc,!b);a.hm.ph(b?"Copy embed code":"Get embed code");VR(a.hm,!b);a.getVideoUrl.ph(b?"Copy video URL":"Get video URL");VR(a.getVideoUrl,!b);a.pm.ph(b?"Copy video URL at current time":"Get video URL at current time");VR(a.pm,!b);jQ(a.hm,b?SEa():null);jQ(a.getVideoUrl,b?aN():null);jQ(a.pm,b?aN():null)};
oLa=function(a){return g.tH(a.G.V())?a.Dk:a.lk};
g.aS=function(a,b){g.eQ.call(this,a,{F:"div",Ga:["ytp-popup",b||""]},100,!0);this.j=[];this.I=this.D=null;this.wD=this.maxWidth=0;this.size=new g.ke(0,0);this.Qa("keydown",this.QY)};
pLa=function(a){var b=a.j[a.j.length-1];if(b){g.Kl(a.element,a.maxWidth||"100%",a.wD||"100%");g.Al(b.element,"width","");g.Al(b.element,"height","");g.Al(b.element,"maxWidth","100%");g.Al(b.element,"maxHeight","100%");g.Al(b.content.element,"height","");var c=g.Ll(b.element);c.width+=1;c.height+=1;g.Al(b.element,"width",c.width+"px");g.Al(b.element,"height",c.height+"px");g.Al(b.element,"maxWidth","");g.Al(b.element,"maxHeight","");var d=0;b.xS&&(d=b.Ea("ytp-panel-header"),d=g.Ll(d).height);var e=
0;b.wS&&(e=b.Ea("ytp-panel-footer"),g.Al(e,"width",c.width+"px"),e=g.Ll(e).height);g.Al(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,g.Al(b.element,"width",c.width+"px")));a.size=c}};
g.ZR=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);bS(a,c,b)};
g.cS=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];bS(a,b,c,!0)}};
bS=function(a,b,c,d){qLa(a);b&&(b.unsubscribe("size-change",a.Yy,a),b.unsubscribe("back",a.Ri,a));c.subscribe("size-change",a.Yy,a);c.subscribe("back",a.Ri,a);if(a.sb){g.ho(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ca(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;pLa(a);g.Kl(a.element,e);a.D=new g.Zn(function(){rLa(a,b,c,d)},20,a);
a.D.start()}else c.Ca(a.element),b&&b.detach()};
rLa=function(a,b,c,d){a.D.dispose();a.D=null;g.ho(a.element,"ytp-popup-animating");d?(g.ho(b.element,"ytp-panel-animate-forward"),g.jo(c.element,"ytp-panel-animate-back")):(g.ho(b.element,"ytp-panel-animate-back"),g.jo(c.element,"ytp-panel-animate-forward"));g.Kl(a.element,a.size);a.I=new g.Zn(function(){g.jo(a.element,"ytp-popup-animating");b.detach();g.ko(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
qLa=function(a){a.D&&g.ao(a.D);a.I&&g.ao(a.I)};
g.dS=function(a,b,c){g.aS.call(this,a);this.Aa=b;this.Nc=c;this.C=new g.vF(this);this.ea=new g.Zn(this.i5,1E3,this);this.oa=this.B=null;g.H(this,this.C);g.H(this,this.ea);a.qb(this.element,this,28656);g.ho(this.element,"ytp-contextmenu");sLa(this);this.hide()};
sLa=function(a){g.gA(a.C);var b=a.G.V();"gvn"===b.playerStyle||(b.isMobile||b.Ac)&&b.N("embeds_web_enable_new_context_menu_triggering")||(b=a.G.fb(),a.C.S(b,"contextmenu",a.l3),a.C.S(b,"touchstart",a.SY,null,!0),a.C.S(b,"touchmove",a.xU,null,!0),a.C.S(b,"touchend",a.xU,null,!0))};
tLa=function(a){a.G.isFullscreen()?g.cQ(a.G,a.element,10):a.Ca(document.body)};
g.eS=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{F:"button",Ga:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.tH(a.V()))},W:[{F:"div",K:"ytp-copylink-icon",qa:"{{icon}}"},{F:"div",K:"ytp-copylink-title",qa:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.Bc();b=a.V();NR(this.tooltip);g.lo(this.element,"ytp-show-copylink-title",g.tH(b)&&!g.DH(b));a.qb(this.element,this,86570);this.Qa("click",
this.onClick);this.S(a,"videodatachange",this.La);this.S(a,"videoplayerreset",this.La);this.S(a,"appresize",this.La);this.La();g.cb(this,g.JR(this.tooltip,this.element))};
uLa=function(a){a.updateValue("icon",WM());if(a.api.V().isMobile)fS(a.tooltip,a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");gS(a.tooltip);fS(a.tooltip,a.element);var b=a.Qa("mouseleave",function(){a.Dc(b);a.La();a.tooltip.Zk()})}};
vLa=function(a,b){return g.A(function(c){if(1==c.j)return g.qa(c,2),g.y(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.ua(c);var d=c.return,e=!1,f=g.Oe("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(jw){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f);
return d.call(c,e)})};
hS=function(a){g.W.call(this,{F:"div",K:"ytp-doubletap-ui-legacy",W:[{F:"div",K:"ytp-doubletap-fast-forward-ve"},{F:"div",K:"ytp-doubletap-rewind-ve"},{F:"div",K:"ytp-doubletap-static-circle",W:[{F:"div",K:"ytp-doubletap-ripple"}]},{F:"div",K:"ytp-doubletap-overlay-a11y"},{F:"div",K:"ytp-doubletap-seek-info-container",W:[{F:"div",K:"ytp-doubletap-arrows-container",W:[{F:"span",K:"ytp-doubletap-base-arrow"},{F:"span",K:"ytp-doubletap-base-arrow"},{F:"span",K:"ytp-doubletap-base-arrow"}]},{F:"div",
K:"ytp-doubletap-tooltip",W:[{F:"div",K:"ytp-chapter-seek-text-legacy",qa:"{{seekText}}"},{F:"div",K:"ytp-doubletap-tooltip-label",qa:"{{seekTime}}"}]}]}]});this.G=a;this.B=new g.Zn(this.show,10,this);this.u=new g.Zn(this.hide,700,this);this.j=this.Ea("ytp-doubletap-static-circle");g.H(this,this.B);g.H(this,this.u);this.hide();this.C=this.Ea("ytp-doubletap-fast-forward-ve");this.D=this.Ea("ytp-doubletap-rewind-ve");this.G.qb(this.C,this,28240);this.G.qb(this.D,this,28239);this.G.Sa(this.C,!0);this.G.Sa(this.D,
!0)};
iS=function(a,b,c){var d=a.G.fb().getPlayerSize();g.bo(a.u);a.B.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.ho(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";1===b?(a.j.style.right="",a.j.style.left=.8*d.width-30+"px"):-1===b&&(a.j.style.right="",a.j.style.left=.1*d.width-15+"px");a.j.style.top=.5*d.height+15+"px";wLa(a,c)};
jS=function(a,b,c){g.bo(a.u);a.B.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}a.element.setAttribute("data-side",b);a.j.style.width="0";a.j.style.height="0";g.ho(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
wLa=function(a,b){b=g.qL("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
kS=function(a,b,c){g.W.call(this,{F:"div",Ga:["ytp-info-panel-action-item"],W:[{F:"div",K:"ytp-info-panel-action-item-disclaimer",qa:"{{disclaimer}}"},{F:"a",Ga:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{F:"div",K:"ytp-info-panel-action-item-icon",qa:"{{icon}}"},{F:"div",K:"ytp-info-panel-action-item-label",qa:"{{label}}"}]}]});this.G=a;this.j=c;this.disclaimer=this.Ea("ytp-info-panel-action-item-disclaimer");this.button=
this.Ea("ytp-info-panel-action-item-button");this.isValid=!1;this.G.Og(this.element,this,!0);this.Qa("click",this.onClick);a="";c=g.P(null==b?void 0:b.onTap,UJa);var d=g.P(c,g.zI);this.isValid=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.isValid=!0,Ti(this.button,g.Od(a))):(d=g.P(c,xLa))&&!this.j?((a=d.phoneNumbers)&&0<a.length?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.isValid=!0,c=this.button,d=a,Kb(d,"sms:")&&Dba(d)||(d="about:invalid#zClosurez"),
Ti(c,Nd(d))):(c=g.P(c,yLa))&&!this.j&&(a=c.phoneNumber?"tel:"+c.phoneNumber:"",this.isValid=!0,c=a,Kb(c,"tel:")||(c="about:invalid#zClosurez"),Ti(this.button,Nd(c)));var e;if(c=null==(e=b.disclaimerText)?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:null==(f=b.bodyText)?void 0:f.content,icon:dN(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:null==(h=b.bodyText)?void 0:h.content,
icon:dN()})}this.G.Ph(this.element,b.trackingParams||null);this.isValid&&(this.u={externalLinkData:{url:a}})};
lS=function(a,b){var c=OM();g.eQ.call(this,a,{F:"div",K:"ytp-info-panel-detail-skrim",W:[{F:"div",K:"ytp-info-panel-detail",X:{role:"dialog",id:c},W:[{F:"div",K:"ytp-info-panel-detail-header",W:[{F:"div",K:"ytp-info-panel-detail-title",qa:"{{title}}"},{F:"button",Ga:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Close"},W:[g.ZM()]}]},{F:"div",K:"ytp-info-panel-detail-body",qa:"{{body}}"},{F:"div",K:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Ea("ytp-info-panel-detail-items");
this.B=new g.vF(this);this.itemData=[];this.C=c;b=this.Ea("ytp-info-panel-detail-close");this.S(b,"click",this.yb);b=this.Ea("ytp-info-panel-detail-skrim");this.S(b,"click",this.yb);b=this.Ea("ytp-info-panel-detail");this.S(b,"click",function(d){d.stopPropagation()});
g.H(this,this.B);this.G.Og(this.element,this,!0);this.S(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
zLa=function(a,b){a=g.t(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.G.Sa(c.element,b)};
nS=function(a,b,c){g.W.call(this,{F:"div",K:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":c.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.tH(a.V()))},W:[{F:"div",K:"ytp-info-panel-preview-text",qa:"{{text}}"},{F:"div",K:"ytp-info-panel-preview-chevron",qa:"{{chevron}}"}]});var d=this;this.G=a;this.Qd=this.j=this.videoId=null;this.C=this.showControls=this.u=!1;this.S(this.element,"click",function(){a.rb(d.element);b.fl();fQ(c)});
this.B=new g.FN(this,250,!1,100);g.H(this,this.B);this.G.Og(this.element,this,!0);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.qd);this.S(this.G,"paidcontentoverlayvisibilitychange",this.TT);this.S(this.G,"infopaneldetailvisibilitychange",this.TT);var e=a.getVideoData()||{};ALa(e)&&mS(this,e);this.S(a,"onShowControls",this.UY);this.S(a,"onHideControls",this.TY)};
mS=function(a,b){if(!b.Sf||!a.G.Zn()){var c=b.qQ||1E4,d=ALa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.bo(a.j),a.videoId=b.videoId,d?(BLa(a,c,b),a.Pc()):(a.yb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),BLa(a,c,b),a.Pc())}};
ALa=function(a){var b,c,d,e;return!!(null==(b=a.fh)?0:null==(c=b.title)?0:c.content)||!!(null==(d=a.fh)?0:null==(e=d.bodyText)?0:e.content)};
BLa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Zn(a.m6,b,a);g.H(a,a.j);var d;b=(null==(d=c.fh)?void 0:d.trackingParams)||null;a.G.Ph(a.element,b);var e;var f,h;if(null==c?0:null==(f=c.fh)?0:null==(h=f.title)?0:h.content){var l;d=null==(e=c.fh)?void 0:null==(l=e.title)?void 0:l.content;var m,n;if(null==(m=c.fh)?0:null==(n=m.bodyText)?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=(null==(p=c.fh)?void 0:null==(q=p.bodyText)?void 0:q.content)||"";a.update({text:e+c,chevron:g.YM()})};
CLa=function(a,b){a.j&&(g.V(b,8)?(a.u=!0,a.Pc(),a.j.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))};
oS=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
pS=function(a,b){var c=0;a=g.t(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
DLa=function(a,b){for(var c=0,d=g.t(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b<e.timeRangeStartMillis)return null;if(b>=e.timeRangeStartMillis&&b<e.timeRangeStartMillis+e.j)break;c++}c+1<a.length&&a[c+1].timeRangeStartMillis<=b&&c++;return c<a.length?c:null};
ELa=function(a,b){b=pS(a,b)+1;return b<a.length?b:-1};
FLa=function(a,b){return pS(a,b)-1};
GLa=function(a,b){return new g.yB(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
g.rS=function(a,b,c,d,e,f,h,l){g.vF.call(this);var m=this;this.api=a;this.contextMenu=c;this.Qe=d;this.Nc=e;this.j=f;this.C=h;this.Hc=l;this.B=new g.Zn(function(){HLa(m,!1)},1E3);
this.u="";g.H(this,this.B);this.S(b,"mousedown",function(){qS(m,!1)});
this.S(c.element,"mousedown",function(){qS(m,!1)});
this.S(b,"keydown",this.oS);this.S(c.element,"keydown",this.oS);this.S(b,"keyup",this.pS);this.S(c.element,"keyup",this.pS)};
qS=function(a,b){g.lo(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.lo(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
tS=function(a,b,c,d){var e=g.UQ(a.api.vb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.sS.length;h++){var l=g.sS[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);HLa(a,!0);a.B.start()}};
ILa=function(a,b){a.api.kh();if(g.OL(a.api.Eb())){var c=a.api.getVideoData().B;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
HLa=function(a,b){g.UQ(a.api.vb())&&a.api.setOption("captions","sampleSubtitles",b)};
uS=function(a,b,c){g.W.call(this,{F:"button",Ga:["ytp-button","ytp-overflow-button"],X:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},W:[{F:"div",K:"ytp-overflow-icon",W:[{F:"svg",X:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},W:[{F:"path",X:{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 d=this;this.G=a;this.j=b;this.visible=!1;this.tooltip=this.j.Bc();
a.qb(this.element,this,16499);this.S(a,"appresize",this.La);this.S(a,"fullscreentoggled",this.La);this.S(a,"presentingplayerstatechange",this.La);this.La();g.cb(this,g.JR(this.tooltip,this.element));this.Qa("click",function(){a.rb(d.element);fQ(c,d.element,!1)});
this.S(c.closeButton,"click",function(){d.focus()})};
vS=function(a,b){g.eQ.call(this,a,{F:"div",K:"ytp-overflow-panel",X:{id:OM(),role:"dialog"},W:[{F:"div",K:"ytp-overflow-panel-content",W:[{F:"div",K:"ytp-overflow-panel-action-buttons",qa:"{{buttons}}"}]},{F:"button",Ga:["ytp-overflow-panel-close","ytp-button"],X:{title:"Close"},W:[g.ZM()]}]},250);this.actionButtons=[];this.tooltip=b.Bc();this.j=this.Ea("ytp-overflow-panel-content");this.closeButton=this.Ea("ytp-overflow-panel-close");this.S(this.closeButton,"click",this.yb);g.cb(this,g.JR(this.tooltip,
this.closeButton));this.Qa("click",this.VY);this.S(a,"videoplayerreset",this.hide);this.S(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
wS=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
JLa=function(a,b){a=g.t(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.hc(b)};
xS=function(a,b,c){var d=g.GQ(b,c),e=a.V(),f=d.Xf("default.jpg");g.W.call(this,{F:"a",Ga:["ytp-video-menu-item","ytp-button"],X:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},W:[{F:"div",K:"ytp-video-menu-item-index",qa:String(c+1)},{F:"div",K:"ytp-video-menu-item-now-playing",qa:"\u25b6"},{F:"div",K:"ytp-video-menu-item-thumbnail",X:{style:f?"background-image: url("+f+");":void 0}},{F:"div",K:"ytp-video-menu-item-title",qa:d.title},{F:"div",
K:"ytp-video-menu-item-author",qa:d.author}]});this.api=a;this.index=c;this.Qa("click",this.onClick)};
yS=function(a){g.eQ.call(this,a,{F:"div",K:"ytp-playlist-menu",X:{role:"dialog",id:OM()},W:[{F:"div",K:"ytp-playlist-menu-header",W:[{F:"div",K:"ytp-playlist-menu-title",W:[a.V().j?{F:"span",K:"ytp-playlist-menu-title-name",qa:"{{title}}"}:{F:"a",K:"ytp-playlist-menu-title-name",X:{href:"{{playlisturl}}"},qa:"{{title}}"},{F:"button",Ga:["ytp-playlist-menu-close","ytp-button"],X:{"aria-label":"Close"},W:[g.ZM()]}]},{F:"div",K:"ytp-playlist-menu-subtitle",qa:"{{subtitle}}"}]},{F:"div",K:"ytp-playlist-menu-items",
X:{role:"menu"}}]},250);this.api=a;this.C=this.selected=this.D=this.playlist=null;this.items=this.Ea("ytp-playlist-menu-items");this.B=new g.vF(this);this.j=[];var b=this.Ea("ytp-playlist-menu-close");this.S(b,"click",this.yb);b=this.Ea("ytp-playlist-menu-title-name");a.V().j||(this.C=this.S(b,"click",this.h5));g.H(this,this.B);this.hide()};
zS=function(a,b,c){g.W.call(this,{F:"button",Ga:["ytp-playlist-menu-button","ytp-button"],X:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},W:[{F:"div",K:"ytp-playlist-menu-button-icon",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{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"}}]}]},{F:"div",K:"ytp-playlist-menu-button-text",qa:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.Bc();a.qb(this.element,this,70344);this.S(a,"videodatachange",this.j);this.S(a,"onPlaylistUpdate",this.j);this.S(a,"presentingplayerstatechange",this.La);this.S(a,"appresize",this.La);this.hide();this.j();g.cb(this,g.JR(this.tooltip,this.element));this.Qa("click",function(){a.rb(d.element);fQ(c,d.element,!1)})};
AS=function(a,b,c){g.W.call(this,{F:"div",K:"ytp-promotooltip-wrapper",W:[{F:"div",K:"ytp-promotooltip-container",W:[{F:"div",K:"ytp-promotooltip-content",W:[{F:"div",K:"ytp-promotooltip-title",qa:"{{title}}"},{F:"div",K:"ytp-promotooltip-details",qa:"{{details}}"}]},{F:"div",K:"ytp-promotooltip-buttons",W:[{F:"div",K:"ytp-promotooltip-dismiss-button",qa:"{{dismissButtonText}}",X:{tabindex:"0"}},{F:"div",K:"ytp-promotooltip-accept-button",qa:"{{acceptButtonText}}",X:{tabindex:"0","aria-haspopup":"true"}}]}]},
{F:"div",K:"ytp-promotooltip-pointer"}]});var d=this;this.tooltipRenderer=a;this.J=b;this.G=c;this.j=this.B=null;this.title=this.Ea("ytp-promotooltip-title");this.details=this.Ea("ytp-promotooltip-details");this.acceptButton=this.Ea("ytp-promotooltip-accept-button");this.dismissButton=this.Ea("ytp-promotooltip-dismiss-button");this.u=this.D=!1;this.C=!0;this.ea=this.I=this.Z=this.T=!1;this.yf={rC:function(e){d.rC(e)}};
g.SM(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.G.Og(this.element,this,!0),this.G.Ph(this.element,a);this.S(c,"onShowControls",this.XY);this.S(c,"onHideControls",this.WY);this.S(c,"resize",this.Bb);this.S(this.acceptButton,"click",this.z2);this.S(this.dismissButton,"click",this.t3);this.S(document,"click",this.YY);c.N("web_rounded_containers")&&g.ho(this.Ea("ytp-promotooltip-container"),"ytp-promotooltip-rounded")};
KLa=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.Ee("ytp-chrome-bottom"),d=g.Ee("ytp-ad-module");a.C=!(null==c||!c.contains(b));a.T=!(null==d||!d.contains(b));a.Z=!(null==b||!b.hasAttribute("data-tooltip-target-fixed"));return b};
CS=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(null==b?0:null==(e=b.runs)?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.Ml(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((null==b?0:null==(f=b.runs)?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(-1<f)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.PM({F:"span",K:"ytp-promotooltip-details-icon",
W:[LLa[a.tooltipRenderer.targetId]]});g.H(a,h);for(var l=[],m=g.t(d),n=m.next();!n.done;n=m.next())n=new g.PM({F:"span",K:"ytp-promotooltip-details-component",qa:n.value}),g.H(a,n),l.push(n);2===d.length?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):1===d.length&&(0===f?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if("string"!==typeof f)for(g.Re(a.details),e=g.t(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.Ml(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;(null==(p=g.P(e,g.zJ))?0:null==(q=p.text)?0:null==(r=q.runs)?0:r.length)&&g.P(e,g.zJ).text.runs[0].text&&(a.update({acceptButtonText:g.P(e,g.zJ).text.runs[0].text.toString()}),f=!0);g.Ml(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var w,x,z;(null==(w=g.P(p,g.zJ))?0:null==(x=w.text)?0:null==(z=x.runs)?0:z.length)&&g.P(p,g.zJ).text.runs[0].text&&(a.update({dismissButtonText:g.P(p,g.zJ).text.runs[0].text.toString()}),
q=!0);g.Ml(a.dismissButton,q)}c&&(a.B=c);a.j=KLa(a);a.I=!1;a.G.V().N("web_player_hide_nitrate_promo_tooltip")||g.SM(a,!0);BS(a);a.sb&&!a.ea&&(a.ea=!0,a.yf.rC(0));a.u&&a.G.Sa(a.element,a.sb)}};
DS=function(a){g.SM(a,!1);a.u&&a.G.Sa(a.element,a.sb)};
MLa=function(a){var b,c,d,e=(null==(b=g.P(a.acceptButton,g.zJ))?void 0:null==(c=b.text)?void 0:null==(d=c.runs)?void 0:d.length)&&!!g.P(a.acceptButton,g.zJ).text.runs[0].text,f,h,l;b=(null==(f=g.P(a.dismissButton,g.zJ))?void 0:null==(h=f.text)?void 0:null==(l=h.runs)?void 0:l.length)&&!!g.P(a.dismissButton,g.zJ).text.runs[0].text;return e||b};
BS=function(a){var b;if(!(b=!a.j)){b=a.j;var c=window.getComputedStyle(b);b="none"===c.display||"hidden"===c.visibility||"true"===b.getAttribute("aria-hidden")}if(b||a.G.cg())g.SM(a,!1);else if(b=g.Ll(a.j),b.width&&b.height){a.J.fv(a.element,a.j);var d=a.G.fb().getPlayerSize().height;c=g.Ll(a.Ea("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.Z||(d=a.J.dk().height-c-b.height-12,a.element.style.top=d+"px");d=a.Ea("ytp-promotooltip-pointer");var e=g.Jl(a.j,a.G.getRootNode()),
f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.G.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.SM(a,!1)};
ES=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-replay-button","ytp-button"],X:{title:"Replay"},W:[g.fN()]});this.G=a;this.S(a,"presentingplayerstatechange",this.onStateChange);this.Qa("click",this.onClick,this);this.Fc(a.Eb());g.JR(b.Bc(),this.element)};
g.FS=function(a,b,c,d){d=void 0===d?240:d;g.W.call(this,{F:"button",Ga:["ytp-button","ytp-share-button"],X:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.tH(a.V()))},W:[{F:"div",K:"ytp-share-icon",qa:"{{icon}}"},{F:"div",K:"ytp-share-title",qa:"Share"}]});this.api=a;this.j=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.j.Bc();this.u=!1;c=a.V();a.qb(this.element,this,28664);this.Qa("click",this.onClick);this.S(a,"videodatachange",this.La);this.S(a,
"videoplayerreset",this.La);this.S(a,"appresize",this.La);this.S(a,"presentingplayerstatechange",this.La);this.La();g.lo(this.element,"ytp-show-share-title",g.tH(c)&&!g.DH(c)&&!b.Me());g.cb(this,g.JR(this.tooltip,this.element))};
NLa=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.j.fl(),fQ(a.B,a.element,!1)):g.rA(b))};
g.GS=function(a,b){var c=OM(),d=a.V();c={F:"div",K:"ytp-share-panel",X:{id:OM(),role:"dialog","aria-labelledby":c},W:[{F:"div",K:"ytp-share-panel-inner-content",W:[{F:"div",K:"ytp-share-panel-title",X:{id:c},qa:"Share"},{F:"a",Ga:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.T,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},qa:"{{linkText}}"},{F:"label",K:"ytp-share-panel-include-playlist",W:[{F:"input",K:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox",
checked:!0}},"Include playlist"]},{F:"div",K:"ytp-share-panel-loading-spinner",W:[nR()]},{F:"div",K:"ytp-share-panel-service-buttons",qa:"{{buttons}}"},{F:"div",K:"ytp-share-panel-error",qa:"An error occurred while retrieving sharing information. Please try again later."}]},{F:"button",Ga:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},W:[g.ZM()]}]};g.eQ.call(this,a,c,250);var e=this;this.api=a;this.tooltip=b.Bc();this.B=[];this.D=this.Ea("ytp-share-panel-inner-content");this.closeButton=
this.Ea("ytp-share-panel-close");this.S(this.closeButton,"click",this.yb);g.cb(this,g.JR(this.tooltip,this.closeButton));this.C=this.Ea("ytp-share-panel-include-playlist-checkbox");this.S(this.C,"click",this.La);this.j=this.Ea("ytp-share-panel-link");g.cb(this,g.JR(this.tooltip,this.j));this.api.qb(this.j,this,164503);this.S(this.j,"click",function(){e.api.rb(e.j)});
this.Qa("click",this.ZY);this.S(a,"videoplayerreset",this.hide);this.S(a,"fullscreentoggled",this.onFullscreenToggled);this.S(a,"onLoopRangeChange",this.R1);this.hide()};
PLa=function(a,b){OLa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Cq:e.Cq,Rj:e.Rj},f++){e.Cq=c[f];a:switch(e.Cq.img||e.Cq.iconId){case "facebook":var h={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{F:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",X:{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":h={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{F:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",X:{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:h=null}if(h){var l=e.Cq.sname||e.Cq.serviceName;e.Rj=new g.W({F:"a",Ga:["ytp-share-panel-service-button","ytp-button"],X:{href:e.Cq.url,target:"_blank",title:l},W:[h]});e.Rj.Qa("click",function(p){return function(q){if(g.VN(q)){var r=p.Cq.url;var w=void 0===w?{}:w;w.target=w.target||"YouTube";w.width=w.width||"600";w.height=w.height||"600";var x=w;x||(x={});w=window;var z=r instanceof Kd?r:g.Od("undefined"!=typeof r.href?r.href:String(r));var B=void 0!==self.crossOriginIsolated,
C="strict-origin-when-cross-origin";window.Request&&(C=(new Request("/")).referrerPolicy);var G="unsafe-url"===C;C=x.noreferrer;if(B&&C){if(G)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");C=!1}r=x.target||r.target;B=[];for(var F in x)switch(F){case "width":case "height":case "top":case "left":B.push(F+"="+x[F]);break;case "target":case "noopener":case "noreferrer":break;default:B.push(F+"="+(x[F]?1:0))}F=B.join(",");vc()&&
w.navigator&&w.navigator.standalone&&r&&"_self"!=r?(x=g.Oe("A"),g.Xd(x,z),x.target=r,C&&(x.rel="noreferrer"),z=document.createEvent("MouseEvent"),z.initMouseEvent("click",!0,!0,w,1),x.dispatchEvent(z),w={}):C?(w=ae("",w,r,F),z=g.Ld(z),w&&(g.WH&&g.Ob(z,";")&&(z="'"+z.replace(/'/g,"%27")+"'"),w.opener=null,""===z&&(z="javascript:''"),g.Ed("b/12014412, meta tag with sanitized URL"),z='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.pe(z)+'">',z=g.Wd(z),(x=w.document)&&
x.write&&(x.write(g.Vd(z)),x.close()))):((w=ae(z,w,r,F))&&x.noopener&&(w.opener=null),w&&x.noreferrer&&(w.opener=null));w&&(w.opener||(w.opener=window),w.focus());g.Xy(q)}}}(e));
g.cb(e.Rj,g.JR(a.tooltip,e.Rj.element));"Facebook"===l?a.api.qb(e.Rj.element,e.Rj,164504):"Twitter"===l&&a.api.qb(e.Rj.element,e.Rj,164505);a.S(e.Rj.element,"click",function(p){return function(){a.api.rb(p.Rj.element)}}(e));
a.api.Sa(e.Rj.element,!0);a.B.push(e.Rj);d++}}var m=b.more||b.moreLink,n=new g.W({F:"a",Ga:["ytp-share-panel-service-button","ytp-button"],W:[{F:"span",K:"ytp-share-panel-service-button-more",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{F:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",X:{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"}}]}]}],X:{href:m,target:"_blank",title:"More"}});n.Qa("click",function(p){g.mR(m,a.api,p)&&a.api.Oa("SHARE_CLICKED")});
g.cb(n,g.JR(a.tooltip,n.element));a.api.qb(n.element,n,164506);a.S(n.element,"click",function(){a.api.rb(n.element)});
a.api.Sa(n.element,!0);a.B.push(n);a.updateValue("buttons",a.B)};
OLa=function(a){for(var b=g.t(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ab(c);a.B=[]};
JS=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{F:"div",K:"ytp-suggested-action"});var d=this;this.G=a;this.gb=b;this.Va=this.I=this.j=this.B=this.u=this.D=this.expanded=this.enabled=this.ea=!1;this.Ma=new g.Zn(function(){d.badge.element.style.width=""},200,this);
this.Z=new g.Zn(function(){HS(d);IS(d)},200,this);
this.dismissButton=new g.W({F:"button",Ga:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.H(this,this.dismissButton);this.C=new g.W({F:"div",K:"ytp-suggested-action-badge-expanded-content-container",W:[{F:"label",K:"ytp-suggested-action-badge-title",qa:"{{badgeLabel}}"},this.dismissButton]});g.H(this,this.C);this.badge=new g.W({F:"button",Ga:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],W:[c?{F:"div",K:"ytp-suggested-action-badge-icon"}:
"",this.C]});g.H(this,this.badge);this.badge.Ca(this.element);this.J=new g.FN(this.badge,250,!1,100);g.H(this,this.J);this.Aa=new g.FN(this.C,250,!1,100);g.H(this,this.Aa);this.Pa=new g.Xn(this.u6,null,this);g.H(this,this.Pa);this.oa=new g.Xn(this.h0,null,this);g.H(this,this.oa);g.H(this,this.Ma);g.H(this,this.Z);this.G.Og(this.badge.element,this.badge,!0);this.G.Og(this.dismissButton.element,this.dismissButton,!0);this.S(this.G,"onHideControls",function(){d.j=!1;IS(d);HS(d);d.Jl()});
this.S(this.G,"onShowControls",function(){d.j=!0;IS(d);HS(d);d.Jl()});
this.S(this.badge.element,"click",this.LL);this.S(this.dismissButton.element,"click",this.IF);this.S(this.G,"pageTransition",this.aZ);this.S(this.G,"appresize",this.Jl);this.S(this.G,"fullscreentoggled",this.x3);this.S(this.G,"cardstatechange",this.e3);this.S(this.G,"annotationvisibility",this.Y6,this);this.S(this.G,"offlineslatestatechange",this.Z6,this)};
HS=function(a){g.lo(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.D)};
IS=function(a,b){var c=a.I||a.j||!a.D;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Pa.stop(),a.oa.stop(),a.Ma.stop(),a.Pa.start()):(g.SM(a.C,a.expanded),g.lo(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),QLa(a))};
QLa=function(a){a.u&&a.G.Sa(a.badge.element,a.zC());a.B&&a.G.Sa(a.dismissButton.element,a.zC()&&(a.I||a.j||!a.D))};
RLa=function(a){var b=a.text||"";g.Xe(g.Ee("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Wa?a.Wa:"")};
SLa=function(a,b){b?a.B&&a.G.rb(a.dismissButton.element):a.u&&a.G.rb(a.badge.element)};
KS=function(a,b){JS.call(this,a,b);var c=this;this.T=this.Ba=this.Ka=!1;this.S(this.G,g.AB("shopping_overlay_visible"),function(){c.dg(!0)});
this.S(this.G,g.BB("shopping_overlay_visible"),function(){c.dg(!1)});
this.S(this.G,g.AB("shopping_overlay_expanded"),function(){c.I=!0;IS(c)});
this.S(this.G,g.BB("shopping_overlay_expanded"),function(){c.I=!1;IS(c)});
this.S(this.G,"changeProductsInVideoVisibility",this.h4);this.S(this.G,"videodatachange",this.onVideoDataChange);this.S(this.G,"paidcontentoverlayvisibilitychange",this.Z3)};
LS=function(a){a.G.Qf("shopping_overlay_visible");a.G.Qf("shopping_overlay_expanded")};
MS=function(a){g.eQ.call(this,a,{F:"button",Ga:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{F:"div",K:"ytp-skip-intro-button-text",qa:"Skip Intro"}]},100);var b=this;this.B=!1;this.j=new g.Zn(function(){b.hide()},5E3);
this.nf=this.gh=NaN;g.H(this,this.j);this.I=function(){b.show()};
this.D=function(){b.hide()};
this.C=function(){var c=b.G.getCurrentTime();c>b.gh/1E3&&c<b.nf/1E3&&b.show()};
this.S(this.G,"videodatachange",function(c,d){b.Nr(c,d)});
this.S(this.element,"click",function(){b.G.seekTo(b.nf/1E3)});
this.hide()};
g.OS=function(a,b,c,d){b=void 0===b?!1:b;d=void 0===d?!1:d;g.FB.call(this);this.J=!1;this.C=new eA(this);this.D=this.I=null;this.B=this.u=!1;g.H(this,this.C);this.target=a;this.j=b;this.T=c||a;this.J=d;b&&(g.Fc&&this.target.setAttribute("draggable","true"),this.target.style.touchAction="none");NS(this)};
PS=function(a){g.gA(a.C,!a.j)};
NS=function(a){a.D=null;a.I=null;a.S(QS("over"),a.Qu);a.S("touchstart",a.dI);a.j&&a.S(QS("down"),a.n2)};
TLa=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier===a.I)return d}return null};
QS=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
RS=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-airplay-button","ytp-button"],X:{title:"AirPlay"},qa:"{{icon}}"});this.G=a;this.Qa("click",this.onClick);this.S(a,"airplayactivechange",this.La);this.S(a,"airplayavailabilitychange",this.La);this.La();g.cb(this,g.JR(b.Bc(),this.element))};
SS=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},W:[{F:"div",K:"ytp-autonav-toggle-button-container",W:[{F:"div",K:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.G=a;this.u=[];this.j=!1;this.isChecked=!0;a.qb(this.element,this,113681);this.S(a,"presentingplayerstatechange",this.Lz);this.Qa("click",this.onClick);this.G.V().N("web_player_autonav_toggle_always_listen")&&ULa(this);
this.tooltip=b.Bc();g.cb(this,g.JR(b.Bc(),this.element));this.Lz()};
ULa=function(a){a.u.push(a.S(a.G,"videodatachange",a.Lz));a.u.push(a.S(a.G,"videoplayerreset",a.Lz));a.u.push(a.S(a.G,"onPlaylistUpdate",a.Lz));a.u.push(a.S(a.G,"autonavchange",a.SP))};
VLa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.updateValue("title",b);a.updateValue("label",b);gS(a.tooltip)};
WLa=function(a){return a.G.V().N("web_player_autonav_use_server_provided_state")&&xJ(a.Ad())};
g.US=function(a){g.W.call(this,{F:"div",K:"ytp-gradient-bottom"});this.j=g.Oe("CANVAS");this.ctx=this.j.getContext("2d");this.B=NaN;this.j.width=1;this.u=g.DH(a.V());g.TS(this,a.fb().getPlayerSize().height)};
g.TS=function(a,b){if(a.ctx){b=Math.floor(b*(a.u?1:.4));b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.j.height=c;a.ctx.clearRect(0,0,1,c);var d=a.ctx.createLinearGradient(0,2,0,2+b);if(a.u)d.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),d.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),d.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.ctx.fillStyle=d;a.ctx.fillRect(0,2,1,b);a.element.style.height=
c+"px";try{a.element.style.backgroundImage="url("+a.j.toDataURL()+")"}catch(f){}}}};
VS=function(a,b,c,d,e){g.W.call(this,{F:"div",K:"ytp-chapter-container",W:[{F:"button",Ga:["ytp-chapter-title","ytp-button"],W:[{F:"span",X:{"aria-hidden":"true"},K:"ytp-chapter-title-prefix",qa:"\u2022"},{F:"div",K:"ytp-chapter-title-content",qa:"{{title}}",X:{title:e,"aria-label":e}},{F:"div",K:"ytp-chapter-title-chevron",W:[{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{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.G=a;
this.C=c;this.D="";this.currentIndex=0;this.j=void 0;this.u=!0;this.T=this.Ea("ytp-chapter-container");this.B=this.Ea("ytp-chapter-title");this.Z=this.Ea("ytp-chapter-title-content");this.updateVideoData("newdata",this.G.getVideoData());this.S(a,"videodatachange",this.updateVideoData);this.S(this.T,"click",this.onClick);this.S(a,g.AB(d),this.uc);this.S(a,"onLoopRangeChange",this.uc);this.S(a,"innertubeCommand",this.onClickCommand);g.tH(this.G.V())||g.cb(this,g.JR(b.Bc(),this.Z))};
WS=function(a,b,c){VS.call(this,a,b,c,"chapterCueRange","View chapter")};
XLa=function(a,b,c,d,e){var f=b.Pu/b.rows,h=Math.min(c/(b.yB/b.columns),d/f),l=b.yB*h,m=b.Pu*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,r=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+r+"px/"+l+"px "+m+"px"};
g.XS=function(a,b){g.W.call(this,{F:"div",K:"ytp-storyboard-framepreview",W:[{F:"div",K:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Ea("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.vF(this);this.j=new g.FN(this,100);g.H(this,this.events);g.H(this,this.j);this.S(this.api,"presentingplayerstatechange",this.qd);b&&this.S(this.element,"click",function(){b.jr()})};
YS=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.S(a.api,"videodatachange",function(){YS(a,a.api.tj())}),a.events.S(a.api,"progresssync",a.De),a.events.S(a.api,"appresize",a.D)),a.B=NaN,ZS(a),a.j.show(200)):(c&&g.gA(a.events),a.j.hide(),a.j.stop())};
ZS=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.fb().getPlayerSize(),e=eJ(b,d.width);c=HAa(b,e,c);c!==a.B&&(a.B=c,FAa(b,c,d.width),b=DAa(b,c,d.width),XLa(a.C,b,d.width,d.height))};
g.$S=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"f","data-title-no-tooltip":"{{data-title-no-tooltip}}"},qa:"{{icon}}"});this.G=a;this.u=b;this.message=null;this.j=g.JR(this.u.Bc(),this.element);this.B=new g.Zn(this.A_,2E3,this);g.H(this,this.B);this.S(a,"fullscreentoggled",this.Fl);this.S(a,"presentingplayerstatechange",this.La);this.Qa("click",this.onClick);g.aA()&&(b=this.G.fb(),this.S(b,rqa(),this.VL),this.S(b,dA(document),
this.eq));a.V().tb||a.V().I||this.disable();a.qb(this.element,this,139117);this.La();this.Fl(a.isFullscreen())};
aT=function(a,b,c){VS.call(this,a,b,c,"timedMarkerCueRange","View key moments");this.S(a,g.BB("timedMarkerCueRange"),this.uc);this.S(a,"updatemarkervisibility",this.updateVideoData)};
YLa=function(a){var b,c=null==(b=a.G.getVideoData())?void 0:b.mf;if(c)for(a=a.C.Fd,c=g.t(c),b=c.next();!b.done;b=c.next())if(b=a[b.value]){var d=void 0,e=void 0,f=void 0;if("engagement-panel-macro-markers-problem-walkthroughs"!==(null==(d=b.onTap)?void 0:null==(e=d.innertubeCommand)?void 0:null==(f=e.changeEngagementPanelVisibilityAction)?void 0:f.targetId))return b}};
bT=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button","aria-keyshortcuts":"i","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[ZEa()]});this.G=a;this.visible=!1;this.Qa("click",this.onClick);this.S(a,"fullscreentoggled",this.La);this.updateValue("title",pR(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});g.cb(this,g.JR(b.Bc(),this.element));a.qb(this.element,this,62946);
this.La()};
cT=function(a,b,c){g.W.call(this,{F:"button",Ga:["ytp-multicam-button","ytp-button"],X:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.G=a;this.j=!1;this.u=new g.Zn(this.B,400,this);this.tooltip=b.Bc();NR(this.tooltip);g.H(this,this.u);this.Qa("click",function(){fQ(c,d.element,!1)});
this.S(a,"presentingplayerstatechange",function(){d.La(!1)});
this.S(a,"videodatachange",this.onVideoDataChange);this.La(!0);g.cb(this,g.JR(this.tooltip,this.element))};
dT=function(a){g.eQ.call(this,a,{F:"div",K:"ytp-multicam-menu",X:{role:"dialog"},W:[{F:"div",K:"ytp-multicam-menu-header",W:[{F:"div",K:"ytp-multicam-menu-title",W:["Switch camera",{F:"button",Ga:["ytp-multicam-menu-close","ytp-button"],X:{"aria-label":"Close"},W:[g.ZM()]}]}]},{F:"div",K:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.vF(this);this.items=this.Ea("ytp-multicam-menu-items");this.j=[];g.H(this,this.B);a=this.Ea("ytp-multicam-menu-close");this.S(a,"click",this.yb);this.hide()};
eT=function(){g.E.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Xn(this.j,null,this);g.H(this,this.delay)};
ZLa=function(a,b){if("path"===b.F)return b.X.d;if(b.W)for(var c=0;c<b.W.length;c++){var d=b.W[c];if(d&&"string"!==typeof d&&(d=ZLa(a,d)))return d}};
bMa=function(a,b,c){c=ZLa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=OM();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=$La(e),m=$La(c);fT(a,function(n){d.setAttribute("d",aMa(l,m,n))},200)};
fT=function(a,b,c){a.u=b;a.startTime=(0,g.R)();a.duration=c;a.j()};
$La=function(a){var b=[];a=a.match(cMa);for(var c=0;c<a.length;c++){var d=" "===a[c]?NaN:Number(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
aMa=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d="number"===typeof f?d+(f+(b[e]-f)*c):d+f}return d};
g.gT=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-mute-button","ytp-button"],X:a.V().Ma?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},qa:"{{icon}}"});this.G=a;this.j=null;this.C=this.T=this.D=this.ea=NaN;this.oa=this.I=null;this.B=[];this.u=[];this.visible=!1;this.J=null;var c=this.G.V();this.updateValue("icon",iN());this.tooltip=b.Bc();this.j=new g.PM({F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},W:[{F:"defs",W:[{F:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},W:[{F:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{F:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{F:"path",K:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{F:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},W:[{F:"path",K:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{F:"path",
Tb:!0,Ga:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"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"}},{F:"path",Tb:!0,Ga:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"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.H(this,this.j);this.I=this.j.Ea("ytp-svg-volume-animation-speaker");
this.oa=this.I.getAttribute("d");this.B=g.De("ytp-svg-volume-animation-mover",this.j.element);this.u=g.De("ytp-svg-volume-animation-hider",this.j.element);this.Aa=new eT;g.H(this,this.Aa);this.Z=new eT;g.H(this,this.Z);this.Qa("click",this.R3);this.S(a,"appresize",this.TP);this.S(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.Ma)g.cb(this,g.JR(b.Bc(),this.element));else{var e="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);d=
new g.eQ(a,{F:"span",Ga:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},W:[e[0],{F:"a",X:{href:"https://web.archive.org/web/20230104105643/https://support.google.com/youtube/?p=noaudio",target:c.T},qa:e[2]},e[4]]},100,!0);g.H(this,d);d.hide();d.subscribe("show",function(f){b.mx(d,f)});
g.cQ(a,d.element,4)}this.message=d;a.qb(this.element,this,28662);this.TP(a.fb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
fMa=function(a,b){a.ea=b;var c=a.oa;b&&(c+=aMa(dMa,eMa,b));a.I.setAttribute("d",c)};
gMa=function(a,b){a.T=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=iN():e=a.j;for(c=0;c<a.u.length;c++){d=a.u[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.J&&(a.updateValue("icon",e),a.J=e)};
hT=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-pip-button","ytp-button"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},W:[ZEa()]});this.G=a;this.updateValue("title","Picture in Picture");this.Qa("click",this.onClick);g.cb(this,g.JR(b.Bc(),this.element))};
g.iT=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-play-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},qa:"{{icon}}"});this.G=a;this.j=null;this.transition=new eT;this.tooltip=b.Bc();g.H(this,this.transition);a.qb(this.element,this,36842);a.Sa(this.element,!0);this.S(a,"fullscreentoggled",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"videodatachange",this.onVideoDataChange);this.Fc(a.Eb());
this.Qa("click",this.Sy,this);g.cb(this,g.JR(b.Bc(),this.element))};
hMa=function(a){switch(a){case 1:return eN();case 2:return XEa();case 3:return g.fN();case 4:return aFa();default:return null}};
g.kT=function(a,b,c){g.W.call(this,{F:"a",Ga:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],X:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},W:[c?bN():$Ea()]});var d=this;this.G=a;this.j=c;this.playlist=this.videoData=null;this.I=
!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.Bc();c?a.qb(this.element,this,6193):a.qb(this.element,this,6194);this.S(a,"fullscreentoggled",this.onVideoDataChange);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"onPlaylistUpdate",this.onVideoDataChange);this.S(a,"onLoopRangeChange",this.onVideoDataChange);this.j||this.S(a,"appresize",this.eI);this.S(a,"mdxpreviousnextchange",function(){jT(d);d.eI()});
this.onVideoDataChange()};
iMa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
jMa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.G.getCurrentTime()&&2!==a.G.getPresentingPlayerType()};
kMa=function(a){var b=ZP(a.G.vb());return b?a.j?b.hasNext():b.ao():!1};
jT=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=null!=a.playlist&&a.playlist.hasNext();c=g.$P(a.G)&&(!a.j||c);var d=a.j&&g.dQ(a.G),e=kMa(a),f=a.j&&5===a.G.getPresentingPlayerType(),h=pR(a.G,"Next","SHIFT+n"),l=pR(a.G,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.B)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.GQ(a.playlist,a.j?jKa(a.playlist):kKa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;
b.url=a.G.V().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.UN(m.lengthSeconds):null;b.preview=m.Xf("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="Next",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="Previous",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=null==(m=a.videoData)?void 0:g.yI(m))b.url=l.Wn(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.UN(l.lengthSeconds):
null,b.preview=l.Xf("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Next";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.I=!!b.url;d||c||a.B||e||f?a.u||(a.u=g.JR(a.tooltip,a.element),a.D=a.Qa("click",a.onClick,a)):a.u&&(a.u(),a.u=null,a.Dc(a.D),a.D=null);gS(a.tooltip)};
lT=function(a,b){g.W.call(this,{F:"div",K:"ytp-fine-scrubbing",W:[{F:"div",K:"ytp-fine-scrubbing-thumbnails",X:{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}}"}},{F:"div",X:{"aria-hidden":"true"},K:"ytp-fine-scrubbing-cursor"},{F:"div",K:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"},qa:"{{seekTime}}"},{F:"div",
K:"ytp-fine-scrubbing-play",W:[eN()],X:{title:"Play from this position",role:"button"}},{F:"div",K:"ytp-fine-scrubbing-dismiss",W:[g.ZM()],X:{title:"Exit precise seeking",role:"button"}}]});this.api=a;this.B=this.Ea("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Ea("ytp-fine-scrubbing-dismiss");this.playButton=this.Ea("ytp-fine-scrubbing-play");this.thumbnails=[];this.j=[];this.Aa=this.C=0;this.oa=void 0;this.T=NaN;this.Ka=this.J=this.u=this.I=0;this.D=[];this.interval=this.frameCount=0;
this.thumbnailWidth=160;this.scale=1;this.Ba=0;this.isEnabled=this.ea=!1;g.cb(this,g.JR(b,this.dismissButton));g.cb(this,g.JR(b,this.playButton));this.Z=new g.OS(this.B,!0);this.Z.subscribe("dragstart",this.gI,this);this.Z.subscribe("dragmove",this.fI,this);this.Z.subscribe("dragend",this.dZ,this);this.S(a,"SEEK_COMPLETE",this.oy);this.B.addEventListener("keydown",function(){});
g.H(this,this.Z);this.api.qb(this.element,this,153154);this.api.qb(this.B,this,152789);this.api.qb(this.dismissButton,this,153156);this.api.qb(this.playButton,this,153155)};
mT=function(a){a.T=NaN;a.J=0;a.I=a.u};
mMa=function(a){var b=a.api.tj();if(b){var c=90*a.scale,d=eJ(b,160*a.scale);if(b=b.levels[d]){a.thumbnailWidth=b.width;if(!a.D.length){d=[];for(var e=fJ(b,b.pw()),f=b.columns*b.rows,h=b.frameCount,l=0;l<=e;l++)for(var m=h<f?Math.ceil(h/b.columns):b.rows,n=0;n<b.rows;n++){var p=h<b.columns?h:b.columns,q={url:b.Se(l),column:0,columns:p,row:n,rows:m,yB:b.width*p,Pu:b.height*m};d.push(q);h-=p;if(1>=h)break}a.D=d;a.frameCount=b.oD();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>
a.D.length;)d=void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.length<a.D.length;)d=new lMa,a.thumbnails.push(d),d.Ca(a.B),g.H(a,d);for(d=0;d<a.D.length;d++)e=a.thumbnails[d].element,f=a.D[d],h=a.thumbnailWidth*a.scale,l=f.Pu/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.Pu/f.rows*m+"px/"+h*b.columns+"px "+l*f.rows*m+"px",e.style.width=h*f.columns+"px",e.style.height=c+"px";nT(a,a.api.getCurrentTime());for(c=a.api.getVideoData().yk;a.j.length>c.length;)d=void 0,null==
(d=a.j.pop())||d.dispose();for(;a.j.length<c.length;)d=new oT,a.j.push(new oT),g.H(a,d);c=g.t(c.entries());for(d=c.next();!d.done;d=c.next())e=g.t(d.value),d=e.next().value,e=e.next().value,a.j[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.Al(a.j[d].element,"transform","translateX("+e%b.rows*a.thumbnailWidth*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.j[d].Ca(a.thumbnails[f].element);a.ea=!0}}};
nT=function(a,b){a.update({seekTime:g.UN(b)});var c=a.thumbnailWidth*a.scale;b=b<a.interval/2?-b*c/a.interval*2+a.C/2:-b*c/a.interval-c/2+a.C/2;b=g.de(b,nMa(a),a.C/2);a.I=b;a.u=a.I;g.Al(a.B,"transform","translateX("+a.I+"px)")};
oMa=function(a,b){var c=a.thumbnailWidth*a.scale;b-=a.C/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
nMa=function(a){return-((a.B.offsetWidth||(a.frameCount-1)*a.thumbnailWidth*a.scale)-a.C/2)};
lMa=function(){g.W.call(this,{F:"div",K:"ytp-fine-scrubbing-thumbnail"})};
oT=function(){g.W.call(this,{F:"div",K:"ytp-fine-scrubbing-chapter-title",W:[{F:"div",K:"ytp-fine-scrubbing-chapter-title-content",qa:"{{chapterTitle}}"}]})};
qMa=function(a,b,c,d){d=void 0===d?!1:d;b=new pMa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.u:b.u)}};
pMa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y};
rMa=function(a){g.W.call(this,{F:"div",K:"ytp-heat-map-chapter",W:[{F:"svg",K:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{F:"defs",W:[{F:"clipPath",X:{id:"{{id}}"},W:[{F:"path",K:"ytp-heat-map-path",X:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{F:"rect",K:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{F:"rect",K:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",
height:"100%",x:"0",y:"0"}},{F:"rect",K:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.Ea("ytp-heat-map-svg");this.D=this.Ea("ytp-heat-map-path");this.C=this.Ea("ytp-heat-map-graph");this.B=this.Ea("ytp-heat-map-play");this.u=this.Ea("ytp-heat-map-hover");this.isValid=!1;this.j=60;a=""+g.Na(this);this.update({id:a});a="url(#"+a+")";this.C.setAttribute("clip-path",a);this.B.setAttribute("clip-path",a);this.u.setAttribute("clip-path",a)};
pT=function(){g.W.call(this,{F:"div",K:"ytp-chapter-hover-container",W:[{F:"div",K:"ytp-progress-bar-padding"},{F:"div",K:"ytp-progress-list",W:[{F:"div",Ga:["ytp-play-progress","ytp-swatch-background-color"]},{F:"div",K:"ytp-progress-linear-live-buffer"},{F:"div",K:"ytp-load-progress"},{F:"div",K:"ytp-hover-progress"},{F:"div",K:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Ea("ytp-progress-linear-live-buffer");this.B=this.Ea("ytp-ad-progress-list");
this.D=this.Ea("ytp-load-progress");this.I=this.Ea("ytp-play-progress");this.u=this.Ea("ytp-hover-progress");this.j=this.Ea("ytp-chapter-hover-container")};
qT=function(a,b){g.Al(a.j,"width",b)};
rT=function(a,b){g.Al(a.j,"margin-right",b+"px")};
sMa=function(){this.fraction=this.position=this.B=this.j=this.C=this.u=this.width=NaN};
sT=function(){g.W.call(this,{F:"div",K:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
tT=function(a){return a.N("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")};
g.vT=function(a,b){g.TM.call(this,{F:"div",K:"ytp-progress-bar-container",X:{"aria-disabled":"true"},W:[{F:"div",Ga:["ytp-heat-map-container"],W:[{F:"div",K:"ytp-heat-map-edu"}]},{F:"div",Ga:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{F:"div",K:"ytp-chapters-container"},{F:"div",K:"ytp-marker-crenellation-list"},{F:"div",K:"ytp-timed-markers-container"},
{F:"div",K:"ytp-clip-start-exclude"},{F:"div",K:"ytp-clip-end-exclude"},{F:"div",K:"ytp-scrubber-container",W:[{F:"div",Ga:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{F:"div",K:"ytp-scrubber-pull-indicator"}]}]}]},{F:"div",Ga:["ytp-fine-scrubbing-container"],W:[{F:"div",K:"ytp-fine-scrubbing-edu"}]},{F:"div",K:"ytp-bound-time-left",qa:"{{boundTimeLeft}}"},{F:"div",K:"ytp-bound-time-right",qa:"{{boundTimeRight}}"},{F:"div",K:"ytp-clip-start",X:{title:"{{clipstarttitle}}"},qa:"{{clipstarticon}}"},
{F:"div",K:"ytp-clip-end",X:{title:"{{clipendtitle}}"},qa:"{{clipendicon}}"}]});this.api=a;this.qf=!1;this.D=this.fh=0;this.Xa=1;this.Xe=this.Z=0;this.J=null;this.Ba=this.jd=0;this.kb=this.Ea("ytp-marker-crenellation-list");this.Va={};this.Lc={};this.clipEnd=Infinity;this.Ac=this.Ea("ytp-clip-end");this.Md=new g.OS(this.Ac,!0);this.Rf=this.Ea("ytp-clip-end-exclude");this.Wh=this.Ea("ytp-clip-start-exclude");this.clipStart=0;this.Ec=this.Ea("ytp-clip-start");this.Wd=new g.OS(this.Ec,!0);this.oa=this.Rb=
0;this.Hc=this.Ea("ytp-progress-bar");this.dc={};this.Fd={};this.Gd=this.Ea("ytp-chapters-container");this.gh=this.Ea("ytp-timed-markers-container");this.j=[];this.T=[];this.nf={};this.Sf=null;this.gb=-1;this.Pb=this.Ka=0;this.ea=null;this.lf=this.Ea("ytp-scrubber-button");this.Zh=this.Ea("ytp-scrubber-container");this.Fb=new g.he;this.Ng=new sMa;this.B=new YN(0,0);this.Ab=null;this.C=this.xd=!1;this.eh=null;this.tb=this.Ea("ytp-fine-scrubbing-container");this.Aa=this.Ea("ytp-heat-map-container");
this.Xd=this.Ea("ytp-heat-map-edu");this.Mg=this.Ea("ytp-fine-scrubbing-edu");this.I=[];this.Pa=this.Oe=this.Ma=!1;this.heatMarkersDecorations=[];this.u=void 0;this.tooltip=b.Bc();g.cb(this,g.JR(this.tooltip,this.Ac));g.H(this,this.Md);this.Md.subscribe("hoverstart",this.PT,this);this.Md.subscribe("hoverend",this.OT,this);this.S(this.Ac,"click",this.rG);g.cb(this,g.JR(this.tooltip,this.Ec));g.H(this,this.Wd);this.Wd.subscribe("hoverstart",this.PT,this);this.Wd.subscribe("hoverend",this.OT,this);this.S(this.Ec,
"click",this.rG);tMa(this);this.S(a,"resize",this.Bb);this.S(a,"presentingplayerstatechange",this.fZ);this.S(a,"videodatachange",this.Nr);this.S(a,"videoplayerreset",this.T0);this.S(a,"cuerangesadded",this.rW);this.S(a,"cuerangesremoved",this.U5);this.S(a,"cuerangemarkersupdated",this.rW);this.S(a,"onLoopRangeChange",this.UP);this.S(a,"innertubeCommand",this.onClickCommand);this.S(a,g.AB("timedMarkerCueRange"),this.g5);this.S(a,"updatemarkervisibility",this.pW);this.updateVideoData(a.getVideoData(),
!0);this.UP(a.getLoopRange());uT(this)&&!this.u&&(this.u=new lT(this.api,this.tooltip),a=g.Il(this.element).x||0,this.u.Bb(a,this.D),this.u.Ca(this.tb),g.H(this,this.u),this.S(this.u.dismissButton,"click",this.jr),this.S(this.u.playButton,"click",this.UJ),this.S(this.u.element,"dblclick",this.UJ));a=this.api.V();g.tH(a)&&a.isMobile&&g.ho(this.element,"ytp-no-contextmenu");this.api.qb(this.Aa,this,139609,!0);this.api.qb(this.Xd,this,140127,!0);this.api.qb(this.Mg,this,151179,!0);this.api.qb(this.kb,
this,145078,!0);this.api.N("web_modern_miniplayer")&&(this.element.hidden=!0)};
tMa=function(a){if(0===a.j.length){var b=new pT;a.j.push(b);g.H(a,b);b.Ca(a.Gd,0)}for(;1<a.j.length;)a.j.pop().dispose();qT(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
wT=function(a){for(;a.T.length;)a.T.pop().dispose()};
uMa=function(a){if(tT(a)){var b,c,d,e,f;return null==(f=g.P(null==(e=g.P(null==(b=a.watchNextResponse)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,AI))?void 0:e.playerBar,dBa))?void 0:f.chapters}return a.aQ};
vMa=function(a){for(var b=a.j,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.yB(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.Qf("chapterCueRange");a.api.Ge(c)};
zT=function(a,b){var c,d=null==(c=a.dc[b])?void 0:c.chapters;d&&(wMa(a,d),a.api.getVideoData().yk=a.j,vMa(a));var e;if((c=null==(e=a.dc[b])?void 0:e.markers)&&"HEATSEEKER"!==b){wT(a);e=g.t(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new sT,d=g.P(d,g.xMa)){var f=void 0;c.title=(null==(f=d.title)?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=null!=(f=d.timeRangeStartMillis)?f:NaN;var h=f=void 0;c.onActiveCommand=null!=(h=null==(f=d)?void 0:f.onActiveCommand)?h:void 0;yMa(a,c)}xT(a,
a.T);e=a.T;c=a.nf;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=GLa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.Ge(d)}var l;if(b=g.P(null==(l=a.dc[b])?void 0:l.heatmap,zMa)){l=b.heatMarkers||[];var m;e=null!=(m=b.minHeightDp)?m:0;var n;m=null!=(n=b.maxHeightDp)?n:60;n=a.j.length;c=null;for(d=0;d<n;d++){h=a.j[d].startTime;var p=d===n-1?Infinity:a.j[d+1].startTime;if(d===a.I.length){f=
void 0;var q=a;f=void 0===f?NaN:f;var r=new rMa(q.api);q.I.push(r);g.H(q,r);r.Ca(q.Aa);0<=f&&(r.element.style.width=f+"px")}f=[];c&&f.push(c);q=g.t(l);for(r=q.next();!r.done;r=q.next()){r=r.value;var w=void 0,x=void 0,z=null!=(x=null==(w=g.P(r,AMa))?void 0:w.timeRangeStartMillis)?x:-1;z>=h&&z<=p&&f.push(r)}0<m&&(a.Aa.style.height=m+"px");h=a.I[d];q=0===d;q=void 0===q?!1:q;p=h;0<m&&(p.j=m,p.I.style.height=p.j+"px");p=h.j;q=void 0===q?!1:q;r=1E3/f.length;w=[];w.push({x:0,y:100});x=g.t(f.entries());
for(z=x.next();!z.done;z=x.next()){var B=g.t(z.value);z=B.next().value;B=B.next().value;var C=void 0;B=(null==(C=g.P(B,AMa))?void 0:C.heatMarkerIntensityScoreNormalized)||0;C=(z+.5)*r;B=100-g.de(100*B,e/p*100,m/p*100);0!==z||q||w.push({x:0,y:B});w.push({x:C,y:B});z===f.length-1&&w.push({x:1E3,y:B})}w.push({x:1E3,y:100});p=w;if(0===f.length)p="";else{q="";r=g.t(p.entries());for(w=r.next();!w.done;w=r.next())x=g.t(w.value),w=x.next().value,x=x.next().value,0===w?w="M "+x.x.toFixed(1)+","+x.y.toFixed(1):
(z=qMa(p[w-1],p[w-2],x),w=qMa(x,p[w-1],p[w+1],!0),w=" C "+(z.x.toFixed(1)+","+z.y.toFixed(1)+" "+w.x.toFixed(1)+","+w.y.toFixed(1)+" "+x.x.toFixed(1)+","+x.y.toFixed(1))),q+=w;p=q}h.D.setAttribute("d",p);h.isValid=""!==p;g.lo(h.api.getRootNode(),"ytp-heat-map",h.isValid);g.lo(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.N("web_player_heat_map_played_bar")&&""!==p);0<f.length&&(c=f[f.length-1])}g.yT(a);l=[];b=g.t(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.P(e.value,
BMa))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:null!=(n=e.visibleTimeRangeStartMillis)?n:-1,visibleTimeRangeEndMillis:null!=(c=e.visibleTimeRangeEndMillis)?c:-1,decorationTimeMillis:null!=(d=e.decorationTimeMillis)?d:NaN,label:m?g.IB(m):""});a.heatMarkersDecorations=l}};
yMa=function(a,b){a.T.push(b);g.H(a,b);b.Ca(a.gh,a.gh.children.length)};
xT=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=AT(a,c.timeRangeStartMillis/(1E3*a.B.j),BT(a));g.Al(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
wMa=function(a,b){var c=0,d=!1;b=g.t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.P(e,CMa)){e=g.P(e,CMa);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.IB(h):"";h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new pT,a.j.push(f),g.H(a,f),f.Ca(a.Gd,a.Gd.children.length));a.j[c].startTime=
e.startTime;a.j[c].title=e.title?e.title:"";a.j[c].onActiveCommand=e.onActiveCommand;a.j[c].index=d?c-1:c}c++}for(;c<a.j.length;)a.j.pop().dispose();g.yT(a);CT(a)};
g.yT=function(a){a.Ka=a.j.length-1;a.Pb=0;DMa(a,!0)&&DMa(a,!1);for(var b=0,c=0;c<a.j.length;c++)if(0===a.j[c].width){if(c===a.j.length-1)for(var d=a.j.length-1;0<=d;d--)if(0<a.j[d].width){rT(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;qT(a.j[d],e+"px");break}a.j[c].width=0;qT(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,qT(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,qT(a.j[c],d+"px"));c=0;if(a.I.length===a.j.length)for(b=0;b<
a.I.length;b++)d=a.j[b].width,a.I[b].element.style.width=d+"px",a.I[b].element.style.left=c+"px",c+=d+(a.C?3:2)};
DMa=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.B.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.D){for(var h=a.D-(a.C?3:2)*a.Ka,l=0===a.Pb?3:h*a.Pb,m=g.t(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.j[c].startTime;c<e-1&&(m=a.j[c+1].startTime-a.j[c].startTime,rT(a.j[c],a.C?3:2));g.lo(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];void 0!==r&&0<r.width?
r.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);rT(p.j[q],0);b&&(a.Ka--,m/f>a.Pb&&(a.Pb=m/f),d=!0)}c++}}return d};
CT=function(a){if(a.D){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:hK(d))&&b.airingStart&&b.airingEnd?EMa(a,b.airingStart,b.airingEnd):EMa(a,b.seekableStart,b.seekableEnd);d=aO(c,b.loaded,0);b=aO(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;DT(a,b,d);e&&ET(a);FMa(a)}}};
EMa=function(a,b,c){return FT(a)?new YN(Math.max(b,a.Ab.startTimeMs/1E3),Math.min(c,a.Ab.endTimeMs/1E3)):new YN(b,c)};
GMa=function(a,b){var c;if("repeatChapter"===(null==(c=a.Ab)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[pS(a.j,b.startTimeMs)],g.lo(b.j,"ytp-repeating-chapter",!1)),a.Ab&&(b=a.j[pS(a.j,a.Ab.startTimeMs)],g.lo(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.lo(d.j,"ytp-exp-chapter-hover-container",!a.Ab)})};
HT=function(a,b){var c=$N(a.B,b.fraction);if(1<a.j.length){c=GT(a,b.B,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.C?3:2);c=(a.j[c].startTime+(b.B-d)/a.j[c].width*((c===a.j.length-1?1E3*a.B.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
HMa=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.D-(a.C?3:2)*a.Ka)};
IMa=function(a,b,c,d){b=g.de(b,0,a.C?60:40);a.Z=b;var e=a.Xa;a.Xa=b/(a.C?60:40)*(Math.max(ZN(a.B)/a.D,1)-1)+1;b=a.D*a.Xa;a.Ba=g.de(d*b-c,0,b-a.D);e!==a.Xa&&ET(a)};
ET=function(a){if(1!==a.j.length||IT(a))a.lf.style.removeProperty("height");else{var b=BT(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=ica(a.kb),f=0;if(a.Z>.2*(a.C?60:40)){for(var h=ZN(a.B)/60*d,l=Math.ceil(ZN(a.B)/60*c);l<h;l++){var m=e[f];m||(m=g.Oe("DIV"),a.kb.appendChild(m));f++;0===l%60?g.fo(m,"ytp-60m-progress"):0===l%30?g.fo(m,"ytp-30m-progress"):0===l%15?g.fo(m,"ytp-15m-progress"):g.fo(m,"ytp-1m-progress");m.style.left=(60*l/ZN(a.B)-c)*b.j+"px"}a.Pa||(a.Pa=!0,a.api.Sa(a.kb,a.Pa))}b=a.xd?a.B.j:0;a.update({boundTimeLeft:g.UN($N(a.B,
c)-b),boundTimeRight:g.UN($N(a.B,d)-b)});for(c=e.length-1;c>=f;c--)g.Ue(e[c]);a.element.style.height=a.Z+(a.C?8:5)+"px";a.ma("height-change",a.Z);a.lf.style.height=a.Z+(a.C?20:13)+"px"}e=g.t(Object.keys(a.Va));for(f=e.next();!f.done;f=e.next())JMa(a,f.value);JT(a);DT(a,a.oa,a.Rb)};
BT=function(a){var b=a.Fb.x,c=a.D*a.Xa;b=g.de(b,0,a.D);a.Ng.update(b,a.D,-a.Ba,-(c-a.Ba-a.D));return a.Ng};
LT=function(a){return(a.C?135:90)-KT(a)};
KT=function(a){var b=48,c=a.api.V();a.C?b=54:g.tH(c)&&!c.isMobile&&(b=40);return b};
DT=function(a,b,c){a.oa=b;a.Rb=c;var d=BT(a),e=a.B.j,f=$N(a.B,a.oa),h=g.qL("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.UN(f,!0),DURATION:g.UN(e,!0)}),l=pS(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Ab&&2!==a.api.getPresentingPlayerType()&&(e=a.Ab.startTimeMs/1E3,f=a.Ab.endTimeMs/1E3);e=aO(a.B,e,0);l=aO(a.B,f,1);h=a.api.getVideoData();f=g.de(b,e,l);c=(null==h?0:g.dK(h))?1:g.de(c,
e,l);b=AT(a,b,d);g.Al(a.Zh,"transform","translateX("+b+"px)");MT(a,d,e,f,"PLAY_PROGRESS");(null==h?0:hK(h))?(b=a.api.getProgressState().seekableEnd)&&MT(a,d,f,aO(a.B,b),"LIVE_BUFFER"):MT(a,d,e,c,"LOAD_PROGRESS");if(a.api.N("web_player_heat_map_played_bar")){var m;null!=(m=a.I[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}};
MT=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ka*(a.C?3:2),l=c*h;c=GT(a,l);var m=d*h;h=GT(a,m);"HOVER_PROGRESS"===e&&(h=GT(a,b.j*d,!0),m=b.j*d-KMa(a,b.j*d)*(a.C?3:2));b=Math.max(l-LMa(a,c),0);for(d=c;d<f;d++)a.j[d].ub(e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.j[f].ub(e),l=a.j[f].width,NT(a,d,f===c?l-b:l,l);f=a.j[h].width;m=g.de(m-LMa(a,h),0,f);c===h&&(m-=b);b=a.j[h].ub(e);NT(a,b,m,f);m=a.j.length;for(h+=1;h<m;h++)MMa(a,h,e);for(h=0;h<c;h++)MMa(a,h,e)};
LMa=function(a,b){if(b>=a.j.length)return a.D;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
MMa=function(a,b,c){c=a.j[b].ub(c);NT(a,c,0,a.j[b].width)};
NT=function(a,b,c,d,e){e||a.api.V().isMobile?b.style.width=c+"px":g.Al(b,"transform","scalex("+(d?c/d:0)+")")};
GT=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=KMa(a,b)*(a.C?3:2));c=g.t(a.j);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d};
AT=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.t(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.j-(a.C?3:2)*a.Ka)+(a.C?3:2)*(0>e?0:e)+c.u};
KMa=function(a,b){for(var c=a.j.length,d=0,e=g.t(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.C?3:2,d++;else break;return d===c?c-1:d};
g.OT=function(a,b,c,d){var e=a.D!==c,f=a.C!==d;a.fh=b;a.D=c;a.C=d;uT(a)&&null!=(b=a.u)&&(b.scale=d?1.5:1);ET(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.yT(a);a.u&&f&&uT(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-KT(a),a.tb.style.height=c+"px",g.Al(a.Aa,"transform","translateY("+-d+"px)"),g.Al(a.Hc,"transform","translateY("+-d+"px)")),mMa(a.u))};
JT=function(a){var b=!!a.Ab&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Ab?(c=a.Ab.startTimeMs/1E3,d=a.Ab.endTimeMs/1E3):(e=c>a.B.u,f=0<a.B.j&&d<a.B.j);var h,l;if((null==(h=a.Ab)?0:h.postId)||"repeatChapter"===(null==(l=a.Ab)?void 0:l.type))f=e=!1;g.lo(a.element,"ytp-loop-range-enabled",b);g.lo(a.element,"ytp-clip-start-enabled",e);g.lo(a.element,"ytp-clip-end-enabled",f);b=e?aO(a.B,c,0):0;d=f?aO(a.B,d,1):1;a.Ec.style.left=Math.round(1E3*b)/10+"%";a.Ac.style.left=
Math.round(1E3*d)/10+"%";a.Wh.style.width=Math.round(1E3*b)/10+"%";a.Rf.style.left=Math.round(1E3*d)/10+"%";a.Rf.style.width=Math.round(1E3*(1-d))/10+"%"};
FMa=function(a){var b;if(null==(b=a.api.getVideoData())||!hK(b)){b=BT(a);MT(a,b,a.oa,Math.max(b.fraction,a.oa),"HOVER_PROGRESS");for(var c=GT(a,b.j*a.oa,!0),d=GT(a,b.B,!0),e=c;e<=d;e++)g.lo(a.j[e].u,"ytp-hover-progress-light",b.fraction>a.oa);g.lo(a.lf,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.N("web_player_heat_map_played_bar")){var f;null!=(f=a.I[0])&&f.u.setAttribute("width",(100*b.fraction).toFixed(2)+"%")}}};
JMa=function(a,b){var c=a.Va[b];b=a.Lc[b];var d=BT(a),e=aO(a.B,c.start/1E3,0),f=Rra(c,a.C)/d.width;var h=aO(a.B,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.de(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;b.style.left=Math.max(c*d.j+d.u,0)+"px";NT(a,b,g.de((h-c)*d.j+d.u,0,d.width),d.width,!0)};
NMa=function(a,b){var c=b.getId();a.Va[c]===b&&(g.Ue(a.Lc[c]),delete a.Va[c],delete a.Lc[c])};
IT=function(a){return a.api.N("web_player_fine_scrubbing")};
uT=function(a){var b;return IT(a)&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.cg()&&!a.api.isInline()};
PT=function(a){a.u&&(a.u.disable(),a.Z=0,a.Aa.style.removeProperty("transform"),a.Hc.style.removeProperty("transform"),a.tb.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
OMa=function(a,b){var c=b/LT(a)*KT(a);g.Al(a.Hc,"transform","translateY("+-b+"px)");g.Al(a.Aa,"transform","translateY("+-b+"px)");g.Al(a.tb,"transform","translateY("+c+"px)");a.tb.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=KT(a)-c+"px")};
PMa=function(a,b){b?a.ea||(a.element.removeAttribute("aria-disabled"),a.ea=new g.OS(a.Hc,!0),a.ea.subscribe("hovermove",a.l4,a),a.ea.subscribe("hoverend",a.j4,a),a.ea.subscribe("dragstart",a.i4,a),a.ea.subscribe("dragmove",a.n4,a),a.ea.subscribe("dragend",a.m4,a),a.eh=a.Qa("keydown",a.gZ)):a.ea&&(a.element.setAttribute("aria-disabled","true"),a.Dc(a.eh),a.ea.cancel(),a.ea.dispose(),a.ea=null)};
g.QMa=function(a){var b=2*a.D*g.RH();return 1E3*ZN(a.B)/a.api.getPlaybackRate()/b};
FT=function(a){var b;return!(null==(b=a.Ab)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
QT=function(a,b,c){g.W.call(this,{F:"button",Ga:["ytp-remote-button","ytp-button"],X:{title:"Play on TV","aria-haspopup":"true"},qa:"{{icon}}"});this.G=a;this.ob=c;this.j=null;this.S(a,"onMdxReceiversChange",this.La);this.S(a,"presentingplayerstatechange",this.La);this.S(a,"appresize",this.La);a.qb(this.element,this,139118);this.La();this.Qa("click",this.u,this);g.cb(this,g.JR(b.Bc(),this.element))};
RT=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-button","ytp-screen-mode-button"],X:{"aria-haspopup":"true","aria-owns":OM(),title:"Viewing options","data-tooltip-target-id":"ytp-screen-mode-button"},W:[{F:"svg",X:{viewBox:"0 0 36 36"},W:[{F:"path",Tb:!0,X:{d:"M8 9v11.2h4v-1.6H9.6v-8h12.8V14H24V9Zm17.09 10.81h-5.81v4.36h5.81zM28 25.63V15.44c0-.8-.65-1.44-1.45-1.44h-13.09c-.8 0-1.45.64-1.45 1.44v10.19c0 .8.65 1.45 1.45 1.45h13.09c.8 0 1.45-.65 1.45-1.45Zm-1.45.01h-13.09V15.43h13.09z",fill:"#fff"}}]}]});
this.G=a;this.u=!0;this.ob=null;this.Qa("click",this.B);this.S(a,"appresize",this.j);g.cb(this,g.JR(b.Bc(),this.element));this.j(a.fb().getPlayerSize())};
ST=function(a,b,c,d,e){g.hQ.call(this,g.iQ(),a,b);this.ob=d;this.j=!1;this.u=null;e&&(this.u=new g.W({F:"div",W:[{F:"span",qa:"{{title}}"},{F:"span",K:"ytp-menuitem-keyboard-shortcut",qa:e}]}),this.ph(this.u),this.u.updateValue("title",b),g.H(this,this.u));this.Qa("click",this.onClick)};
TT=function(a,b){b&&!a.j?(a.ob.Jc(a),a.j=!0):!b&&a.j&&(a.ob.fg(a),a.j=!1)};
UT=function(a,b){ST.call(this,10,"Miniplayer",a,b,"(i)");this.G=a;jQ(this,{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Tb:!0,X:{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"}}]});this.S(a,"fullscreentoggled",this.La);a.qb(this.element,this,62946);this.La()};
VT=function(a,b,c){ST.call(this,12,"Connect to a device",a,b);this.G=a;this.C=c;this.B=null;this.S(a,"onMdxReceiversChange",this.La);this.S(a,"presentingplayerstatechange",this.La);this.S(a,"appresize",this.La);a.qb(this.element,this,139118);this.La()};
WT=function(a,b){ST.call(this,11,"Theater mode",a,b,"(t)");this.G=a;this.isWidescreen=null;this.S(a,"sizestylechange",this.La);this.S(a,"fullscreentoggled",this.La);this.S(a,"presentingplayerstatechange",this.La);a.qb(this.element,this,139116);this.La()};
XT=function(a,b,c){g.aS.call(this,a,"ytp-screen-mode-menu");this.settingsMenu=b;this.mq=c;this.zd=new g.SR(this.G);this.QG=0;g.H(this,this.zd);this.S(a,"minimized",this.hide);this.S(a,"sizestylechange",this.hide);this.S(a,"fullscreentoggled",this.hide);this.hide();g.ZR(this,this.zd);this.jN(c);a=this.G.V();a.Pb&&(b=new VT(this.G,this,this.settingsMenu),g.H(this,b),this.QG++);a.dc||(b=new WT(this.G,this),g.H(this,b),this.QG++);a.showMiniplayerButton&&(a=new UT(this.G,this),g.H(this,a),this.QG++)};
ZT=function(a,b,c){g.W.call(this,{F:"button",Ga:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":OM(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},W:[g.gN()]});this.G=a;this.ob=c;this.u=!0;this.Qa("click",this.B);this.S(a,"onPlaybackQualityChange",this.updateBadge);this.S(a,"videodatachange",this.updateBadge);this.S(a,"webglsettingschanged",this.updateBadge);this.S(a,"appresize",this.j);g.cb(this,g.JR(b.Bc(),this.element));
this.G.qb(this.element,this,28663);this.updateBadge();this.j(a.fb().getPlayerSize())};
$T=function(a,b){a.u=!!b;a.j(a.G.fb().getPlayerSize())};
aU=function(a,b){oQ.call(this,"Annotations",7);this.G=a;this.ob=b;this.j=!1;a.N("web_settings_menu_icons")&&jQ(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{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.S(a,"videodatachange",this.La);this.S(a,"onApiChange",this.La);this.subscribe("select",this.onSelect,this);this.La()};
g.bU=function(a,b,c,d,e,f,h){g.hQ.call(this,g.iQ({"aria-haspopup":"true"}),b,a);this.ob=d;this.D=!1;this.selectedKey=null;this.options={};this.u=new g.SR(c,void 0,a,e,f,h);g.H(this,this.u);this.Qa("keydown",this.hZ);this.Qa("click",this.open)};
RMa=function(a){if(a.selectedKey){var b=a.options[a.selectedKey];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.selectedKey=null}};
g.cU=function(a,b){g.TR(a.u);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.selectedKey;l&&(d=!0);h&&h.priority===-e?(a.options[f].ph(a.Vk(f,!0)),delete a.options[f]):h=a.cJ(f,-e,l);c[f]=h;a.u.Jc(h,!0)}d||(a.selectedKey=null);b=g.t(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
dU=function(a,b){g.bU.call(this,"Audio track",4,a,b);this.G=a;this.tracks={};this.j=new g.W({F:"div",W:[{F:"span",qa:"Audio track"},{F:"span",K:"ytp-menuitem-label-count",qa:"{{content}}"}]});a.N("web_settings_menu_icons")&&jQ(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{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.H(this,this.j);this.ph(this.j);this.S(a,"videodatachange",this.La);this.S(a,"onPlaybackAudioChange",this.La);this.La()};
eU=function(a,b){oQ.call(this,"Autoplay",8);this.G=a;this.ob=b;this.j=!1;this.B=[];this.S(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.onSelect,this);a.qb(this.element,this,113682);this.u()};
fU=function(a,b){g.hQ.call(this,g.iQ({"aria-haspopup":"false"}),0,"Context Menu");this.G=a;this.ob=b;this.S(this.element,"click",this.onClick);this.ob.Jc(this)};
gU=function(a,b,c){g.W.call(this,{F:"div",K:"ytp-screen-mode-settings-option",W:[{F:"div",K:"ytp-screen-mode-settings-label",qa:"{{label}}"}]});this.ob=c;this.mq=new g.TM({F:"button",Ga:["ytp-screen-mode-settings-button","ytp-button"],qa:"{{icon}}",X:{title:"{{title}}"}});this.mq.Ca(this.element,0);g.H(this,this.mq);this.mq.updateValue("icon",a);this.ph(b);this.Qa("click",this.onClick)};
hU=function(a,b,c){gU.call(this,{F:"svg",X:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},W:[{F:"path",X:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M43,26H26v10h17V26 M23,16v6.09l-6.68-6.68l-1.41,1.41L21.09,23H16v2h9v-9H23z",fill:"white"}}]},pR(b,"Miniplayer","i"),c);this.G=b;a.addButton(this);this.S(b,"fullscreentoggled",this.La);b.qb(this.element,this,62946);this.La()};
iU=function(a,b){var c;g.SH(a.V())&&(c={F:"div",K:"ytp-panel-footer-content",W:[{F:"span",qa:"Adjust download quality from your "},{F:"a",K:"ytp-panel-footer-content-link",qa:"Settings",X:{href:"/account_downloads"}}]});g.bU.call(this,"Quality",3,a,b,void 0,void 0,c);this.G=a;this.Z={};this.J={};this.B={};this.ea=new Set;this.j=this.C=!1;this.I="unknown";this.T="";this.C=this.G.N("web_player_use_new_api_for_quality_pullback");this.j=this.G.N("web_player_enable_premium_hbr_playback_cap");a.N("web_settings_menu_icons")&&
jQ(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{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.ho(this.u.element,"ytp-quality-menu");this.S(a,"videodatachange",this.Mz);this.S(a,"videoplayerreset",this.Mz);this.S(a,"onPlaybackQualityChange",this.VP);this.Mz();a.qb(this.element,this,137721)};
TMa=function(a,b,c){var d=a.Z[b],e=g.DC[b];return SMa(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)};
jU=function(a,b,c,d,e){var f=(b=a.j?a.B[b]:a.J[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Auto";d&&(h="("+h);a=SMa(a,h,f||"",e);d&&a.W.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.W.push({F:"div",K:"ytp-premium-label",qa:d});return a};
SMa=function(a,b,c,d){b={F:"span",Ga:d,W:[b]};var e;d="ytp-swatch-color";if(a.C||a.j)d="ytp-swatch-color-white";"highres"===c?e="8K":"hd2880"===c?e="5K":"hd2160"===c?e="4K":0===c.indexOf("hd")&&"hd720"!==c&&(e="HD");e&&(b.W.push(" "),b.W.push({F:"sup",K:d,qa:e}));return b};
kU=function(a,b,c){gU.call(this,NEa(),"Connect to a device",c);this.G=b;this.j=null;a.addButton(this);this.S(b,"onMdxReceiversChange",this.La);this.S(b,"presentingplayerstatechange",this.La);this.S(b,"appresize",this.La);b.qb(this.element,this,139118);this.Qa("click",this.onClick);this.La()};
lU=function(a,b){g.TM.call(this,{F:"div",K:"ytp-screen-mode-menu-item"});this.G=a;this.ob=b};
mU=function(a,b,c){gU.call(this,bFa(),pR(b,"Theater mode","t"),c);this.G=b;this.isWidescreen=null;a.addButton(this);this.S(b,"sizestylechange",this.La);this.S(b,"fullscreentoggled",this.La);this.S(b,"presentingplayerstatechange",this.La);b.qb(this.element,this,139116);this.La()};
nU=function(a,b,c,d,e,f,h){g.W.call(this,{F:"div",K:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{F:"div",K:"ytp-slider",W:[{F:"div",K:"ytp-slider-handle"}]}]});this.I=a;this.D=b;this.minimumValue=c;this.maximumValue=d;this.J=e;this.ea=f;this.range=this.maximumValue-this.minimumValue;this.oa=this.Ea("ytp-slider-section");this.u=this.Ea("ytp-slider");this.T=this.Ea("ytp-slider-handle");
this.C=new g.OS(this.u,!0);this.j=h?h:c;g.H(this,this.C);this.C.subscribe("dragmove",this.jZ,this);this.S(this.element,"keydown",this.kZ);this.S(this.element,"wheel",this.iZ);this.init()};
pU=function(a){nU.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.G=a;this.B=g.Oe("P");this.Aa=rba(this.Z,this);g.ho(this.u,"ytp-speedslider");g.ho(this.B,"ytp-speedslider-text");a=this.u;a.parentNode&&a.parentNode.insertBefore(this.B,a.nextSibling);oU(this);this.S(this.G,"onPlaybackRateChange",this.updateValues)};
oU=function(a){a.B.textContent=qU(a,a.j)+"x"};
qU=function(a,b){a=Number(g.de(b,a.minimumValue,a.maximumValue).toFixed(2));b=Math.floor(100*(a+.001)%5+2E-15);var c=a;0!==b&&(c=a-.01*b);return Number(c.toFixed(2))};
rU=function(a){g.TM.call(this,{F:"div",K:"ytp-speedslider-component"});this.j=new pU(a);g.H(this,this.j);this.element.appendChild(this.j.element)};
UMa=function(a){var b=new rU(a);RR.call(this,a,b,"Custom");g.H(this,b)};
sU=function(a,b){var c=new UMa(a);g.bU.call(this,"Playback speed",6,a,b,"Custom",function(){g.ZR(b,c)});
a.N("web_settings_menu_icons")&&jQ(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{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"}}]});g.H(this,c);this.G=a;this.B=this.j=this.I=null;this.C=this.G.getAvailablePlaybackRates();this.S(a,"presentingplayerstatechange",this.La);this.La()};
VMa=function(a,b){var c=tU(b);a.options[c]?a.dj(c):b===a.B&&a.j&&(a.dj(a.j),a.ke(b.toString()))};
XMa=function(a){g.cU(a,a.C.map(tU));a.j=null;a.B=null;var b=a.G.getPlaybackRate();a.C.includes(b)||(WMa(a,b),g.bU.prototype.Lg.call(a,a.j))};
WMa=function(a,b){a.B=b;a.j=g.qL("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.C.map(tU);b.unshift(a.j);g.cU(a,b)};
tU=function(a){return a.toString()};
uU=function(a,b,c,d){var e=new g.SR(b,void 0,"Video Override");g.bU.call(this,d.text||"",a,b,c,"Video Override",function(){g.ZR(c,e)});
var f=this;g.ho(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.Gb(a,this.getKey,this);this.C=e;g.H(this,this.C);b=new g.hQ({F:"div",K:"ytp-menuitemtitle",qa:"Allow for a different caption style if specified by the video."},0);g.H(this,b);this.C.Jc(b,!0);this.B=new g.hQ({F:"div",K:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},W:[{F:"div",K:"ytp-menuitem-label",qa:"On"}]},-1);g.H(this,this.B);this.C.Jc(this.B,!0);this.S(this.B.element,
"click",function(){YMa(f,!0)});
this.j=new g.hQ({F:"div",K:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},W:[{F:"div",K:"ytp-menuitem-label",qa:"Off"}]},-2);g.H(this,this.j);this.C.Jc(this.j,!0);this.S(this.j.element,"click",function(){YMa(f,!1)});
g.cU(this,g.Lg(a,this.getKey))};
YMa=function(a,b){a.ma("settingChange",a.setting+"Override",!b);a.ob.Ri()};
vU=function(a,b){g.SR.call(this,a,void 0,"Options");var c=this;this.us={};for(var d=0;d<g.sS.length;d++){var e=g.sS[d],f=new uU(-d,a,b,e);g.H(this,f);f.subscribe("settingChange",this.Gj,this);this.us[e.option.toString()]=f;this.Jc(f,!0)}a=new g.hQ(g.iQ(),-g.sS.length,"Reset");g.H(this,a);a.Qa("click",function(){c.Gj("reset",!0)});
this.Jc(a,!0)};
wU=function(a,b){g.bU.call(this,"Auto-translate",0,a,b);this.G=a;this.languages={};a.qb(this.element,this,127301);a.Sa(this.element,!0)};
ZMa=function(a,b){a.languages=g.Gb(b,a.getKey,a);g.cU(a,g.Lg(b,a.getKey))};
xU=function(a,b){var c=new vU(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.SH(a.V())&&(e={F:"div",K:"ytp-panel-footer-content",W:[{F:"span",qa:d[0]},{F:"a",K:"ytp-panel-footer-content-link",qa:"Settings",X:{href:"/account_playback"}},{F:"span",qa:d[1]}]});g.bU.call(this,"Subtitles/CC",5,a,b,"Options",function(){g.ZR(b,c)},e);
var f=this;this.G=a;this.ob=b;this.tracks={};this.I=new g.Zn(function(){$Ma(f,!1)},3E3);
g.H(this,this.I);this.J=new g.W({F:"div",W:[{F:"span",qa:"Subtitles/CC"},{F:"span",K:"ytp-menuitem-label-count",qa:"{{content}}"}]});g.H(this,this.J);this.ph(this.J);a.N("web_settings_menu_icons")&&jQ(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{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"}}]});this.j=new wU(a,b);g.H(this,this.j);this.j.subscribe("select",this.lZ,this);this.C=c;g.H(this,this.C);this.C.subscribe("settingChange",this.Gj,this);b.subscribe("show",this.P4,this);this.S(a,"videodatachange",this.La);this.S(a,"onApiChange",this.La);this.S(a,"onCaptionsTrackListChanged",this.La);this.S(a,"captionschanged",this.La);a.qb(this.element,this,127300);this.La()};
yU=function(a){return Object.values(a.tracks).find(function(b){return"en"===b.languageCode&&"asr"===b.kind})};
zU=function(a,b){a.G.setOption("captions","track",b)};
$Ma=function(a,b){a.G.setOption("captions","sampleSubtitles",b)};
AU=function(a){g.aS.call(this,a,"ytp-settings-menu");var b=this;this.zd=new g.SR(this.G);this.settingsButton=null;this.SG=0;this.isInitialized=this.sM=!1;g.H(this,this.zd);this.hide();g.ZR(this,this.zd);var c=this.G.V();if(c.N("web_screen_mode_menu_b")){var d=new lU(this.G,this);g.H(this,d);if(c.showMiniplayerButton){var e=new hU(d,this.G,this);g.H(this,e)}c.dc||(e=new mU(d,this.G,this),g.H(this,e),this.SG++);c.Pb&&(e=new kU(d,this.G,this),g.H(this,e),this.SG++);1<this.SG&&lLa(this.zd,d)}a.qb(this.element,
this,108341,!0);this.subscribe("show",function(f){b.dg(f)});
this.S(a,"highlightSettingsMenu",function(){b.sM=!0;b.Pc()});
c.N("web_rounded_containers")&&g.ho(this.element,"ytp-rounded-menu")};
aNa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
BU=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-size-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"t","data-title-no-tooltip":"{{data-title-no-tooltip}}"},qa:"{{icon}}"});this.G=a;this.isWidescreen=null;this.transition=new eT;this.tooltip=b.Bc();g.H(this,this.transition);this.S(a,"sizestylechange",this.La);this.S(a,"fullscreentoggled",this.La);this.S(a,"presentingplayerstatechange",this.La);a.qb(this.element,this,139116);this.La();this.Qa("click",this.onClick);g.cb(this,g.JR(this.tooltip,
this.element))};
g.CU=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-subtitles-button","ytp-button"],X:{"aria-pressed":"{{pressed}}",title:"{{title}}","aria-keyshortcuts":"c","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[LKa()]});this.G=a;this.tooltip=b.Bc();this.S(a,"videodatachange",this.La);this.S(a,"appresize",this.La);this.S(a,"promotooltipacceptbuttonclicked",this.j);this.S(a,"onApiChange",this.La);this.S(a,"onCaptionsTrackListChanged",this.La);this.S(a,"captionschanged",this.La);this.G.qb(this.element,
this,127299);this.La();this.Qa("click",this.onClick);g.cb(this,g.JR(b.Bc(),this.element))};
g.EU=function(a,b,c){c=void 0===c?350:c;g.W.call(this,{F:"div",Ga:["ytp-time-display","notranslate"],W:[{F:"span",K:"ytp-time-clip-icon",qa:"{{clipicon}}"},{F:"span",W:[{F:"span",K:"ytp-time-current",qa:"{{currenttime}}"},{F:"span",K:"ytp-time-separator",qa:" / "},{F:"span",K:"ytp-time-duration",qa:"{{duration}}"}]},{F:"span",K:"ytp-clip-watch-full-video-button-separator",qa:"\u2022"},{F:"span",K:"ytp-clip-watch-full-video-button",qa:"{{watchfullvideo}}"}]});this.api=a;this.J=c;this.liveBadge=new g.W({F:"button",
Ga:["ytp-live-badge","ytp-button"],X:{disabled:"true"},qa:"{{content}}"});this.j=null;this.isLiveVideo=this.u=!1;this.I=this.D=null;this.isPremiere=!1;this.Ab=this.C=this.B=null;this.T=this.Ea("ytp-clip-watch-full-video-button");this.liveBadge.ke("Live");g.H(this,this.liveBadge);this.liveBadge.Ca(this.element);this.tooltip=b.Bc();this.Qa("click",this.onClick);this.S(this.T,"click",this.u5);this.S(a,"presentingplayerstatechange",this.uc);this.S(a,"appresize",this.uc);this.S(a,"onLoopRangeChange",this.onLoopRangeChange);
this.S(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.uc();a=a.getLoopRange();b=this.Ab!==a;this.Ab=a;b&&DU(this);this.api.N("web_modern_miniplayer")&&(this.element.hidden=!0)};
DU=function(a){a.updateValue("clipicon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{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"}}]});
a.isLiveVideo&&!a.u?a.updateValue("watchfullvideo","Watch live stream"):a.updateValue("watchfullvideo","Watch full video");g.lo(a.element,"ytp-clip",FU(a));g.lo(a.element,"ytp-live",GU(a))};
GU=function(a){var b=a.api.V().N("enable_linear_program_progress");return a.isLiveVideo&&!FU(a)&&(!b||!a.u)};
FU=function(a){return!!a.Ab&&!!a.Ab.postId&&2!==a.api.getPresentingPlayerType()&&(!a.Ab.type||"clips"===a.Ab.type)};
JU=function(a,b,c){g.W.call(this,{F:"div",K:"ytp-volume-panel",X:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{F:"div",K:"ytp-volume-slider",W:[{F:"div",K:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.j=b;this.J=c;this.rl=!1;this.Z=this.volume=0;this.I=null;this.B=this.u=this.isDragging=!1;this.j=b;this.J=c;this.C=b.ag();this.T=this.Ea("ytp-volume-slider");this.ea=this.Ea("ytp-volume-slider-handle");
this.D=new g.OS(this.T,!0);g.H(this,this.D);this.D.subscribe("dragstart",this.U4,this);this.D.subscribe("dragmove",this.nZ,this);this.D.subscribe("dragend",this.T4,this);this.S(a,"onVolumeChange",this.onVolumeChange);this.S(a,"appresize",this.WP);this.S(a,"fullscreentoggled",this.eq);this.S(a,"onShowControls",this.ZQ);this.S(a,"onHideControls",this.ZQ);this.S(this.element,"keydown",this.oZ);this.S(this.element,"focus",function(){HU(d,d.u,d.isDragging,!0,d.j.rl())});
this.S(this.element,"blur",function(){HU(d,d.u,d.isDragging,!1,d.j.rl())});
this.WP(a.fb().getPlayerSize());IU(this,a.getVolume(),a.isMuted())};
IU=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.ea.style.left=(a.C?60:40)*c+"px";a.volume=b};
bNa=function(a,b){g.lo(a.element,"ytp-volume-control-hover",b);HU(a,b,a.isDragging,a.B,a.j.rl())};
HU=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.rl;a.u=b;a.isDragging=c;a.B=d;a.rl=e;b=a.u||a.isDragging||a.B||a.rl;f!==b&&(b?a.I=a.S(a.element,"wheel",a.mZ):(a.Dc(a.I),a.I=null),g.lo(a.J,"ytp-volume-slider-active",b))};
g.KU=function(a,b){var c=a.V(),d=g.OH(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.j&&e.push("no-link");g.DH(c)&&e.push("ytp-youtube-music-button");var f={target:c.T,"data-sessionlink":"feature=player-button",title:""};c.j||(f.title=g.qL("Watch on $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.W.call(this,{F:"a",Ga:e,X:f,qa:"{{logoSvg}}"});this.u=b;this.j=null;this.api=a;this.visible=!1;a.qb(this.element,this,28666);c.j||(this.j=this.Qa("click",
this.onClick));this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"onLoopRangeChange",this.onVideoDataChange);this.S(a,"appresize",this.Bb);this.onVideoDataChange();c.j||g.cb(this,g.JR(b.Bc(),this.element));this.Bb()};
LU=function(a,b,c){g.vF.call(this);var d=this;this.G=a;this.u=b;this.Qe=c;this.Va=NaN;this.Wa=this.Pa=null;this.settingsMenu=new AU(this.G);this.B=null;this.Hc=new g.vT(this.G,this.u);this.muteButton=null;this.Zi=new g.EU(this.G,this.u);this.Ka=this.Xa=this.I=this.D=this.Ba=this.Aa=null;this.Z=new hT(this.G,this.u);this.Ma=new g.$S(this.G,this.u);this.Ze=new g.Xn(this.Tu,null,this);this.T=null;c=a.V();this.Qe.subscribe("autohideupdate",this.Gm,this);var e=!a.Eb().isCued(),f=this.G.V().N("html5_player_bottom_linear_gradient");
f||!g.DH(c)&&!a.V().N("html5_player_dynamic_bottom_gradient")?f=f?new g.W({F:"div",K:"ytp-gradient-bottom-container",W:[{F:"div",K:"ytp-gradient-bottom-extension"},{F:"div",K:"ytp-gradient-bottom"}]}):new g.W({F:"div",K:"ytp-gradient-bottom"}):this.Wa=f=new g.US(a);g.H(this,f);g.cQ(a,f.element,9);this.oa=new g.FN(f,250,e,100);g.H(this,this.oa);this.C=new g.W({F:"div",K:"ytp-chrome-bottom",W:[{F:"div",K:"ytp-chrome-controls"}]});g.H(this,this.C);g.cQ(a,this.C.element,9);this.ea=new g.FN(this.C,250,
e,100);g.H(this,this.ea);this.ya=this.C.element.children[0];g.cb(this.settingsMenu,function(){a.nm()===d.settingsMenu&&(a.settingsMenu=null)});
g.H(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.cQ(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(n){cNa(d.u.Bc(),!n);b.uC(d.settingsMenu,n)});
g.H(this,this.Hc);this.Hc.Ca(this.C.element,0);e=new g.XS(a,b);g.H(this,e);g.cQ(a,e.element,4);e=new g.PM({F:"div",K:"ytp-left-controls"});g.H(this,e);e.Ca(this.ya);f=new g.kT(a,b,!1);g.H(this,f);f.Ca(e.element);c.Pa||(f=new g.iT(a,b),g.H(this,f),f.Ca(e.element));f=new g.kT(a,b,!0);g.H(this,f);f.Ca(e.element);f=new g.W({F:"span",K:"ytp-volume-area"});g.H(this,f);f.Ca(e.element);if(!c.Lc&&(this.muteButton=new g.gT(a,b),g.H(this,this.muteButton),this.muteButton.Ca(f.element),c.Ma&&!c.I)){var h=new JU(a,
b,this.C.element);this.Ka=h;g.H(this,h);h.Ca(f.element);f=new g.OS(f.element);g.H(this,f);f.subscribe("hoverstart",function(){var n;null==(n=d.Ka)||bNa(n,!0)});
f=new g.OS(e.element);g.H(this,f);f.subscribe("hoverend",function(){var n;null==(n=d.Ka)||bNa(n,!1)})}g.H(this,this.Zi);
this.Zi.Ca(e.element);this.j=new g.PM({F:"div",K:"ytp-right-controls"});g.H(this,this.j);this.Aa=new WS(a,b,this.Hc);g.H(this,this.Aa);this.Aa.Ca(e.element);c.N("web_key_moments_markers")&&(this.Ba=new aT(a,b,this.Hc),g.H(this,this.Ba),this.Ba.Ca(e.element));this.j.Ca(this.ya);a.V().Wd&&c.N("web_player_move_autonav_toggle")&&(e=new SS(a,b),g.H(this,e),e.Ca(this.j.element));e=new g.CU(a,b);g.H(this,e);e.Ca(this.j.element);e=new ZT(a,b,this.settingsMenu);g.H(this,e);aNa(this.settingsMenu,e);e.Ca(this.j.element);
if(c.N("web_screen_mode_menu_a")){var l=new RT(a,b);g.H(this,l);this.B=new XT(this.G,this.settingsMenu,l);l.ob=this.B;g.cb(this.B,function(){a.RA()===d.B&&(a.aI=null)});
g.H(this,this.B)}if(e=this.B&&1<this.B.QG)a.aI=this.B,g.cQ(a,this.B.element,7),this.B.subscribe("show",function(n){cNa(d.u.Bc(),!n);b.uC(d.B,n)}),l.Ca(this.j.element);
var m=new dT(a);g.H(this,m);g.cQ(a,m.element,5);m.subscribe("show",function(n){b.wp(m,n)});
l=new cT(a,b,m);g.H(this,l);l.Ca(this.j.element);l=a.getVideoData();if(c.Pk||l.D&&"1"===c.controlsType)this.D=new g.KU(a,b),g.H(this,this.D),this.D.Ca(this.j.element);g.H(this,this.Z);!e&&1>=this.settingsMenu.SG&&(c.showMiniplayerButton&&(this.I=new bT(a,b),g.H(this,this.I),this.I.Ca(this.j.element)),this.Z.Ca(this.j.element),l.GL||this.Z.hide(),c.dc||(l=new BU(a,b),g.H(this,l),l.Ca(this.j.element)),c.Pb&&(l=new QT(a,b,this.settingsMenu),g.H(this,l),l.Ca(this.j.element)),c.Mk&&(c=new RS(a,b),g.H(this,
c),c.Ca(this.j.element)));g.H(this,this.Ma);this.Ma.Ca(this.j.element);g.H(this,this.Ze);this.S(a,"appresize",this.Bb);this.S(a,"fullscreentoggled",this.Bb);this.S(a,"presentingplayerstatechange",this.hI);this.S(a,"videodatachange",this.onVideoDataChange);this.Bb()};
dNa=function(a,b){a.G.Eb().isCued()||b?b&&(a.ea.hide(),a.oa.hide(),a.muteButton&&a.muteButton.hc(!1),a.D&&a.D.hc(!1),a.I&&a.I.hc(!1),a.u.Bc().Zk(a.ub())):b||(a.ea.show(),a.oa.show(),a.muteButton&&a.muteButton.hc(!0),a.D&&a.D.hc(!0),a.I&&a.I.hc(!0),a.Gm())};
eNa=function(a){var b=a.G.fb().getPlayerSize().width;return Math.max(b-2*MU(a),100)};
MU=function(a){var b=a.u.ag(),c=a.G.getVideoData().D,d=0;a.u.ag()&&a.u.Me()&&(d=(a.G.fb().getPlayerSize().width-a.G.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
NU=function(a){var b=a.u.ag()?72:50;a=a.G.V();g.SH(a)&&(b=62,g.zH(a)&&(b=54));return b};
OU=function(a,b){JS.call(this,a,b,!1);var c=this;this.suggestedActions={};this.S(this.G,"videodatachange",this.onVideoDataChange);this.S(this.G,g.AB("suggested_action_button_visible"),function(d){c.jN(d.id);c.enabled=!0;c.dg()});
this.S(this.G,g.BB("suggested_action_button_visible"),function(){c.enabled=!1;c.dg()})};
fNa=function(a){a.suggestedActions={};a.G.Qf("suggested_action_button_visible")};
QU=function(a){g.W.call(this,{F:"div",K:PU.TITLE,W:[{F:"div",K:PU.TEXT,W:[{F:"a",Ga:[PU.LINK,PU.SESSIONLINK],X:{target:a.V().T,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},qa:"{{title}}"},{F:"div",K:PU.SUBTEXT,W:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Ea(PU.LINK);a.qb(this.element,this,23851);this.S(a,"videodatachange",this.La);this.S(a,"videoplayerreset",this.La);this.La()};
gNa=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");a.updateValue("channelTitleFocusable","-1")};
g.RU=function(a,b){g.W.call(this,{F:"div",W:[{F:"div",K:"ytp-tooltip-text-wrapper",X:{"aria-hidden":"{{ariaHidden}}"},W:[{F:"div",K:"ytp-tooltip-edu",W:[{F:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{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"}}]},{F:"span",qa:"{{eduText}}"}]},{F:"div",K:"ytp-tooltip-image"},{F:"div",K:"ytp-tooltip-title",W:[{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"g",
W:[{F:"rect",X:{fill:"none",height:"24",width:"24",x:"0"}}]},{F:"g",W:[{F:"g",W:[{F:"polygon",X:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{F:"polygon",X:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{F:"path",X:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{F:"span",qa:"{{title}}"}]},{F:"span",K:"ytp-tooltip-text",
qa:"{{text}}"}]},{F:"div",K:"ytp-tooltip-bg",W:[{F:"div",K:"ytp-tooltip-duration",qa:"{{duration}}"}]}]});var c=this;this.api=a;this.Ka=b;this.env=this.api.V();this.Ba=this.env.isMobile;this.bg=this.Ea("ytp-tooltip-bg");this.Ma=this.Ea("ytp-tooltip-edu");this.image=this.Ea("ytp-tooltip-image");this.text=this.Ea("ytp-tooltip-text");this.title=this.Ea("ytp-tooltip-title");this.Z=function(d){(d=Vy(d))&&g.We(c.j,d)||c.dn()};
this.D=function(d){3===c.type&&c.dn();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.D),d.addEventListener("mouseout",c.Z),d.removeEventListener("focus",c.D),d.addEventListener("blur",c.Z),hNa(c,d,2))};
this.ea=function(){c.dn()};
this.j=null;this.I=new g.FN(this,100);this.type=null;this.T=!1;this.u=null;this.C=NaN;this.B="";this.iI=this.api.fb().getPlayerSize().width;this.J=!0;this.scale=1;this.oa=new g.Zn(this.N1,250,this);this.Aa=new g.Zn(this.dn,5E3,this);g.H(this,this.I);g.H(this,this.oa);g.H(this,this.Aa);pH&&(a=this.Ea("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
NR=function(a){a.element.setAttribute("aria-live","polite")};
cNa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:SU(a);a.I.show();break;default:a.I.show()}else a.I.hide();a.J=b};
kNa=function(a,b,c,d,e,f,h,l,m){if(!a.Ba||a.env.I){3===a.type&&a.dn();1!==a.type&&(g.fo(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.J&&a.I.show(),a.u&&a.u.dispose(),a.u=a.api.tj(),a.u&&a.u.subscribe("l",a.bU,a));if(m){var n=g.Ll(a.bg).height||90;a.Ma.style.bottom=n+2+"px"}a.update({text:d,title:null!=h?h:"",eduText:null!=m?m:""});g.lo(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.lo(a.element,"ytp-text-detail",!!e);d=-1;a.u&&(d=eJ(a.u,160*a.scale),a.env.N("web_l3_storyboard")&&4===a.u.levels.length&&
(d=a.u.levels.length-1),d=HAa(a.u,d,c));iNa(a,d);if(l)switch(c=g.Ll(a.element).width,l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign="center"}jNa(a,!!e,b,f)}};
g.TU=function(a){1===a.type&&a.dn()};
g.JR=function(a,b){if(a.Ba)return function(){};
b.addEventListener("mouseover",a.D);b.addEventListener("focus",a.D);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.dn();b.removeEventListener("mouseover",a.D);b.removeEventListener("focus",a.D)}};
fS=function(a,b,c){if(a.type)if(3===a.type)a.dn();else return;hNa(a,b,3,c)};
hNa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Sw("showElementTooltip called with non-element.",b.toString()),g.rA(a);else{isNaN(a.C)||(a.C=NaN,a.bg.style.background="");a.j=b;a.T=!!d;d?a.B=d:(a.B=b.getAttribute("title"),b.removeAttribute("title"));g.fo(a.element,"ytp-tooltip");a.env.N("web_rounded_containers")&&g.ho(a.element,"ytp-rounded-tooltip");var e=b.getAttribute("data-tooltip-image");e&&(a.image.style.backgroundImage="url("+e+")");d?a.update({ariaHidden:"false"}):a.update({ariaHidden:"true"});
g.lo(a.element,"ytp-tooltip-image-enabled",!!e);b=b.getAttribute("data-tooltip-opaque");g.lo(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.ea);a.J&&(SU(a),a.I.show(0))}};
SU=function(a){if(a.j){var b=a.j.getAttribute("data-tooltip-text");if(a.B&&a.j.getAttribute("aria-label")!==a.B)var c=a.B;var d=a.j.getAttribute("aria-keyshortcuts"),e=a.j.getAttribute("data-title-no-tooltip");d&&e&&(c=g.qL("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.T){d=a.j;a.updateValue("text",b);c=d.getAttribute("data-duration");a.update({title:a.B,duration:c});d=d.getAttribute("data-preview");e=160*a.scale;var f=
90*a.scale,h=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=d?"url("+d+")":"";a.bg.style.backgroundPosition=(e-h)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=h+"px "+l+"px";g.io(a.element,["ytp-text-detail","ytp-preview"]);g.lo(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.B),g.ko(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);jNa(a,!!b)}};
jNa=function(a,b,c,d){var e=Math.min(a.iI,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ka.fv(a.element,a.j,c,1===a.type,d);a.element.style.top?g.ho(a.element,"ytp-bottom"):a.element.style.bottom&&g.ho(a.element,"ytp-top");3===a.type&&a.Aa.start()};
gS=function(a){a.j&&!a.T&&a.j.hasAttribute("title")&&(a.B=a.j.getAttribute("title")||"",a.j.removeAttribute("title"),a.J&&SU(a))};
iNa=function(a,b){g.lo(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.C)){a.C=b;b=160*a.scale;var c=160*a.scale,d=DAa(a.u,a.C,b);XLa(a.bg,d,b,c,!0);a.oa.start()}};
lNa=function(a){var b=a.j;3===a.type&&a.Aa.stop();a.api.removeEventListener("appresize",a.ea);a.T||b.setAttribute("title",a.B);a.B="";a.j=null};
UU=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.tH(a.V()))},W:[{F:"div",K:"ytp-watch-later-icon",qa:"{{icon}}"},{F:"div",K:"ytp-watch-later-title",qa:"Watch later"}]});this.G=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.Bc();NR(this.tooltip);a.qb(this.element,this,28665);this.Qa("click",this.onClick,this);this.S(a,"videoplayerreset",this.pZ);this.S(a,
"appresize",this.xD);this.S(a,"videodatachange",this.xD);this.S(a,"presentingplayerstatechange",this.xD);this.xD();a=this.G.V();var c=g.VA("yt-player-watch-later-pending");a.u&&c?(bva(),mNa(this)):this.La(2);g.lo(this.element,"ytp-show-watch-later-title",g.tH(a));g.cb(this,g.JR(b.Bc(),this.element))};
nNa=function(a,b){g.hO(function(){bva({videoId:b});window.location.reload()},"wl_button",g.NH(a.G.V()))};
mNa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.La(3);var b=a.G.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.mm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.La(2);a.G.V().D&&a.G.Oa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.La(1);a.G.V().isMobile&&fS(a.tooltip,a.element);a.G.V().D&&a.G.Oa("WATCH_LATER_VIDEO_ADDED")};
oO(c,b).then(d,function(){a.isRequestPending=!1;oNa(a,"An error occurred. Please try again later.")})}};
oNa=function(a,b){a.La(4,b);a.G.V().D&&a.G.Oa("WATCH_LATER_ERROR",b)};
pNa=function(a,b){var c=a.G.V();if(b!==a.icon){switch(b){case 3:var d=nR();break;case 1:d=WM();break;case 2:d={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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:d=c.N("watch_later_iconchange_killswitch")?{F:"svg",X:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",d);a.icon=
b}};
g.VU=function(a){g.AR.call(this,a);var b=this;this.eF=(this.Vr=g.tH(this.api.V()))&&(this.api.V().isMobile||mw()||kw());this.mJ=48;this.nJ=69;this.On=null;this.xs=[];this.Nc=new g.ER(this.api);this.mA=new hS(this.api);this.Yg=new g.W({F:"div",K:"ytp-chrome-top"});this.JC=[];this.tooltip=new g.RU(this.api,this);this.backButton=this.wy=null;this.channelAvatar=new QR(this.api,this);this.title=new QU(this.api,this);this.aj=new g.PM({F:"div",K:"ytp-chrome-top-buttons"});this.Gi=this.shareButton=this.Ro=
null;this.Fi=new IR(this.api,this,this.Yg.element);this.overflowButton=this.wi=null;this.hg="1"===this.api.V().controlsType?new LU(this.api,this,this.Qe):null;this.contextMenu=new g.dS(this.api,this,this.Nc);this.aJ=!1;this.pE=new g.W({F:"div",X:{tabindex:"0"}});this.oE=new g.W({F:"div",X:{tabindex:"0"}});this.aC=null;this.tM=this.zL=this.ZD=!1;var c=a.fb(),d=a.V(),e=a.getVideoData();this.Vr&&(g.ho(a.getRootNode(),"ytp-embed"),g.ho(a.getRootNode(),"ytp-embed-playlist"),this.eF&&(g.ho(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.ho(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.mJ=60,this.nJ=89);a.V().j&&g.ho(a.getRootNode(),"ytp-embed-pfl");this.api.V().isMobile&&(g.ho(a.getRootNode(),"ytp-mobile"),this.api.V().I&&g.ho(a.getRootNode(),"ytp-embed-mobile-exp"));this.Cf=e&&e.Cf;g.H(this,this.Nc);g.cQ(a,this.Nc.element,4);g.H(this,this.mA);g.cQ(a,this.mA.element,4);e=new g.W({F:"div",K:"ytp-gradient-top"});g.H(this,e);g.cQ(a,e.element,1);this.TN=new g.FN(e,250,!0,100);g.H(this,
this.TN);g.H(this,this.Yg);g.cQ(a,this.Yg.element,1);this.SN=new g.FN(this.Yg,250,!0,100);g.H(this,this.SN);g.H(this,this.tooltip);g.cQ(a,this.tooltip.element,4);var f=new yS(a);g.H(this,f);g.cQ(a,f.element,5);f.subscribe("show",function(n){b.wp(f,n)});
this.JC.push(f);this.wy=new zS(a,this,f);g.H(this,this.wy);d.showBackButton&&(this.backButton=new DR(a),g.H(this,this.backButton),this.backButton.Ca(this.Yg.element));this.Vr||this.wy.Ca(this.Yg.element);this.Me()?(g.H(this,this.title),this.title.Ca(this.Yg.element),g.H(this,this.channelAvatar),this.channelAvatar.Ca(this.Yg.element)):(g.H(this,this.channelAvatar),this.channelAvatar.Ca(this.Yg.element),g.H(this,this.title),this.title.Ca(this.Yg.element));g.H(this,this.aj);this.aj.Ca(this.Yg.element);
var h=new g.GS(a,this);g.H(this,h);g.cQ(a,h.element,5);h.subscribe("show",function(n){b.wp(h,n)});
this.JC.push(h);d.j||this.Me()||(this.Ro=new UU(a,this),g.H(this,this.Ro),this.Ro.Ca(this.aj.element));d.j||(this.shareButton=new g.FS(a,this,h),g.H(this,this.shareButton),this.shareButton.Ca(this.aj.element));d.j||this.Me()||(this.Gi=new g.eS(a,this),g.H(this,this.Gi),this.Gi.Ca(this.aj.element));this.Vr&&!this.Me()&&this.wy.Ca(this.aj.element);this.Me()||(g.H(this,this.Fi),this.Fi.Ca(this.aj.element));d.xn&&(e=new MS(a),g.H(this,e),g.cQ(a,e.element,4));d.j||(e=new KR(a,this,this.Fi),g.H(this,e),
e.Ca(this.aj.element));this.Me()||(this.wi=new vS(a,this),g.H(this,this.wi),g.cQ(a,this.wi.element,5),this.wi.subscribe("show",function(){b.wp(b.wi,b.wi.Ni())}),this.JC.push(this.wi),this.overflowButton=new uS(a,this,this.wi),g.H(this,this.overflowButton),this.overflowButton.Ca(this.aj.element));
this.hg&&g.H(this,this.hg);"3"===d.controlsType&&(e=new ES(a,this),g.H(this,e),g.cQ(a,e.element,9));g.H(this,this.contextMenu);this.contextMenu.subscribe("show",this.wW,this);e=new bO(a,new CR(a));g.H(this,e);g.cQ(a,e.element,4);this.pE.Qa("focus",this.v0,this);g.H(this,this.pE);this.oE.Qa("focus",this.w0,this);g.H(this,this.oE);var l;(this.Up=d.Ng?null:new g.rS(a,c,this.contextMenu,this.Qe,this.Nc,this.mA,function(){return b.fl()},null==(l=this.hg)?void 0:l.Hc))&&g.H(this,this.Up);
this.Vr||(this.zV=new KS(this.api,this),g.H(this,this.zV),g.cQ(a,this.zV.element,4));this.OV=new OU(this.api,this);g.H(this,this.OV);g.cQ(a,this.OV.element,4);if(this.Vr){var m=new lS(a,this.api.V().Ac);g.H(this,m);g.cQ(a,m.element,5);m.subscribe("show",function(n){b.wp(m,n)});
c=new nS(a,this,m);g.H(this,c);g.cQ(a,c.element,4)}this.ws.push(this.Nc.element);this.S(a,"fullscreentoggled",this.eq);this.S(a,"offlineslatestatechange",function(){b.api.kB()&&gR(b.Qe,128,!1)});
this.S(a,"cardstatechange",function(){b.Jk()});
this.S(a,"resize",this.m3);this.S(a,"showpromotooltip",this.L3)};
qNa=function(a){var b=a.api.V(),c=g.V(a.api.Eb(),128);return b.u&&c&&!a.api.isFullscreen()};
WU=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Dl(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=WU(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
rNa=function(a,b,c){if(a.api.V().N("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData(1);if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.aC){if(!(b=!b)){var f,h,l;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(h=d.promoConfig)?void 0:h.promoId)&&"dtip-edu-player-touchcaptions"!==(null==(l=d.promoConfig)?void 0:l.promoId)}e=b}e&&(a.aC=new AS(d,a,a.api),g.H(a,a.aC),g.cQ(a.api,
a.aC.element,9));var m;null==(m=a.aC)||CS(m,d,c)}}};
g.XU=function(a){g.LQ.call(this,a);this.chrome=null;this.load()};
YU=function(a,b,c,d){function e(h){var l=!(204!==h.status&&200!==h.status&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:(null==(m=h.response)?void 0:m.byteLength)||0,rt:((0,g.R)()-f).toFixed(),shost:g.Xh(a),trigger:b};sNa(h,a);c&&c(h);d&&!l&&d(new cI("pathprobe.net",h))}
var f=(0,g.R)();g.Pv(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
sNa=function(a,b){var c;(null==(c=window.performance)?0:c.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],a.pedns=(b.domainLookupEnd-b.startTime).toFixed(),a.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),a.perqs=(b.requestStart-b.connectEnd).toFixed())};
tNa=function(a){return new Promise(function(b){setTimeout(b,a)})};
ZU=function(a){g.E.call(this);var b=this;this.Y=a;this.j=new Map;this.C=[];this.u=this.Y.experiments.eb("html5_onesie_trusted_hosts_for_all")||!QG();this.ea=g.wG(this.Y.experiments,"html5_onesie_prewarm_interval_ms");this.Z=new g.Zn(this.T,this.ea,this);this.J=-1;this.yf={U9a:function(){return b.j},
Y9a:function(){return b.I},
V9a:function(){return uNa}};
g.H(this,this.Z);vNa(this,g.VA("yt-player-bandaid-host"));this.I=this.load();this.ea&&this.I.then(function(){b.T()})};
vNa=function(a,b){var c=null==b?void 0:b.primary;a.B(0,c);c=c?wNa(c):void 0;a.B(2,c);a.B(1,null==b?void 0:b.secondary)};
$U=function(a,b){return new g.YC("https://"+b+a.Y.yj.baseUrl)};
xNa=function(a,b){a="https://"+$C(b.location)+"/initplayback?c="+BG(a.Y)+"&owc=1";b.start();YU(a,"pw",function(c){b.end();c.ht=b.ES;b.M1=c})};
aV=function(a,b,c,d){YU("https://"+b+"/videoplayback?probe=1",c,function(e){!d.N("html5_onesie_host_racing")||d.videoData.isLivePlayback||d.N("html5_onesie_probe_ec_hosts")||d.gF||d.sS();a.C.push(e)},function(e){a.C.push(e.details)})};
wNa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
cV=function(a,b){var c,d,e,f,h,l;return g.A(function(m){if(1==m.j){c=$U(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(1E5*Math.random()));if(1===b||2===b)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");2===b&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.y(m,Sv(c.Se(),d),2)}e=m.u;if(200!==e.xhr.status||!e.xhr.responseText)return m.return(Promise.reject(new g.Sw("b204258371_no_host",c.Se(),e.xhr.status)));f=new g.YC(e.xhr.responseText);h=
$C(f);l=f.get("ms");f=$U(a,h);f.set("ms",l);return h&&yNa(h)?2!==b||bV(h)?m.return(f):m.return(Promise.reject(new g.Sw("b204258371_untrusted",h,l))):m.return(Promise.reject(new g.Sw("b204258371_invalid",h,l)))})};
zNa=function(a){var b=a.C;a.C=[];return b};
yNa=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
bV=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
dV=function(a,b){this.location=a;this.ES=b;this.endTimestamp=this.startTimestamp=-1};
eV=function(a){return a.endTimestamp<=a.startTimestamp?Infinity:a.endTimestamp-a.startTimestamp};
fV=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)};
ANa=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0));
c&&(b=String.fromCharCode.apply(String,g.u(new Uint8Array(c))));a.close()}return b};
BNa=function(){for(var a=gV.length;4>a;a++){var b=g.Oe("VIDEO");b.load();gV.push(new g.fR(b))}};
CNa=function(){};
g.hV=function(a,b,c,d){d=void 0===d?!1:d;DL.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
DNa=function(a,b,c){var d=b.getVideoData(),e=a.getVideoData();if(b.getPlayerState().isError())return{msg:"player-error"};b=e.C;if(a.Zj()>c/1E3+1)return{msg:"in-the-past"};if(e.isLivePlayback&&!isFinite(c))return{msg:"live-infinite"};(a=a.ue())&&a.isView()&&(a=a.mediaElement);if(a&&12<a.ou().length&&g.KJ(d))return{msg:"played-ranges"};if(!d.C)return null;if(!d.C.j||!b.j)return{msg:"non-dash"};if(d.C.videoInfos[0].containerType!==b.videoInfos[0].containerType)return{msg:"container"};if(g.KJ(e)&&g.KJ(d))return{msg:"content-protection"};
e=b.j[0];d=d.C.j[0];a=e.audio;c=d.audio;return a.sampleRate===c.sampleRate||g.yF?(a.numChannels||2)!==(c.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:e.itag,cr:a.sampleRate,ni:d.itag,nr:c.sampleRate}};
iV=function(a,b,c,d){g.E.call(this);var e=this;this.policy=a;this.j=b;this.u=c;this.C=this.B=null;this.D=-1;this.I=!1;this.Lo=new oH;this.Sm=d-1E3*b.Ld();this.Lo.then(void 0,function(){});
this.timeout=new g.Zn(function(){e.zg("timeout")},1E4);
g.H(this,this.timeout);this.J=isFinite(d);this.status={status:0,error:null}};
INa=function(a){var b,c,d,e,f,h,l,m,n;return g.A(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.jV.Rs("gtfta");return g.y(p,a.Lo,2)}g.jV.lr(b);c=a.j.ue();if(c.Eh())return a.zg("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!PF(a.C))return a.zg("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.Fr()!==a.C)return a.zg("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=ENa(a);e=d.BT;f=d.nR;h=d.AT;a.j.Vi(!1,!0);l=FNa(c,e,h,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.J&&(a.u.seekTo(a.u.getCurrentTime()+.001,{yu:!0,RN:3,Ee:"gapless_pseudo"}),l.play()||Wv());m=c.jc();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+h;a.u.xa("gapless",m);a.j.xa("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();GNa(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);GNa(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce);
g.hf(function(){!a.u.getVideoData().Va&&g.PL(a.u.getPlayerState())&&HNa(a.u)});
kV(a,6);a.dispose();return p.return(Promise.resolve())})};
LNa=function(a){if(a.u.getVideoData().C){lV(a.u,a.C);kV(a,3);JNa(a);var b=KNa(a),c=b.yV;b=b.p6;c.subscribe("updateend",a.uw,a);b.subscribe("updateend",a.uw,a);a.uw(c);a.uw(b)}};
JNa=function(a){a.j.unsubscribe("internalvideodatachange",a.Ht,a);a.u.unsubscribe("internalvideodatachange",a.Ht,a);a.j.unsubscribe("mediasourceattached",a.Ht,a);a.u.unsubscribe("statechange",a.qd,a)};
FNa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.hV(a,b,c,d)};
kV=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Lo.resolve(void 0))};
ENa=function(a){var b=a.j.ue();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:mV(a.j,!0);c=Math.min(a.Sm/1E3,c)+b;var d=a.J?100:0;a=c-a.u.Zj()+d;return{S_:b,BT:a,nR:c,AT:Infinity}};
KNa=function(a){return{yV:a.B.j.Dd,p6:a.B.u.Dd}};
nV=function(a){g.E.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.J=!1;this.C=null;this.T=new CNa;this.B=null;this.I=function(){g.hf(function(){MNa(b)})}};
NNa=function(a,b,c,d){d=void 0===d?0:d;a.Ox()||oV(a);a.C=new oH;a.j=b;var e=c,f=a.app.Qc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*mV(f,!0);e>h&&(e=h-200,a.J=!0);f.getCurrentTime()>=e/1E3?a.I():(a.u=f,f=e,e=a.u,a.app.Ua.addEventListener(g.AB("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.yB(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().j;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/1E3,
mV(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,mV(b)+l));f=Uua(e,h)||d;f!==d&&a.j.xa("qvaln",{st:d,at:f,rm:l,ct:h})}b=f;d=a.j;d.getVideoData().Wh=!0;d.getVideoData().gb=!0;g.pV(d,!0);e={};a.u&&(e=g.qV(a.u.wc.provider),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.xa("queued",e);0!==b&&d.seekTo(b+.01,{yu:!0,RN:3,Ee:"videoqueuer_queued"});a.B=new iV(a.T,a.app.Qc(),a.j,c);c=a.B;Infinity!==c.status.status&&(kV(c,1),c.j.subscribe("internalvideodatachange",c.Ht,
c),c.u.subscribe("internalvideodatachange",c.Ht,c),c.j.subscribe("mediasourceattached",c.Ht,c),c.u.subscribe("statechange",c.qd,c),c.j.subscribe("newelementrequired",c.gU,c),c.Ht());return a.C};
MNa=function(a){var b,c,d;g.A(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.J&&rV(a.app.Qc(),!0,!1);b=null;if(!a.B){e.Ia(2);break}g.qa(e,3);return g.y(e,INa(a.B),5);case 5:g.ra(e,2);break;case 3:b=c=g.ua(e);case 2:if(!a.j)return e.return();g.jV.OM("vqsp",function(){sV(a.app,a.j)});
g.jV.OM("vqpv",function(){a.app.playVideo()});
b&&ONa(a.j,b.message);d=a.C;oV(a);return e.return(d.resolve(void 0))}})};
oV=function(a){if(a.u){var b=a.u;a.app.Ua.removeEventListener(g.AB("vqueued"),a.I);b.removeCueRange(a.D);a.u=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.zg("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.OP(a.app,1)&&a.j!==a.app.Qc()&&a.j.dispose();a.j=null;a.J=!1};
PNa=function(){var a=tpa();return!(!a||"visible"===a)};
RNa=function(a){var b=QNa();b&&document.addEventListener(b,a,!1)};
SNa=function(a){var b=QNa();b&&document.removeEventListener(b,a,!1)};
QNa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Ny+"VisibilityState"])return"";a=Ny+"visibilitychange"}return a};
tV=function(){g.FB.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.dg()};
RNa(this.C);this.D=this.getVisibilityState(this.jh(),this.isFullscreen(),this.cg(),this.isInline(),this.Nx(),this.Jx())};
TNa=function(a,b){var c;if(b.JI)for(c=0;c<b.JI.length;c++)QI(a,1,b.JI[c]);PI(a,2,b.r_);QI(a,3,b.Xt);NI(a,4,b.t6);NI(a,5,b.i7);QI(a,6,b.j7)};
UNa=function(a,b){RI(a,6,b.i6,TNa,3)};
VNa=function(a){this.end=this.start=a};
g.xV=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.Y=b;this.va=c;this.gb="";this.Aa=new Map;this.Wa=new Map;this.Ba=new Map;this.C=new Map;this.B=[];this.T=[];this.u=new Map;this.Ac=new Map;this.Z=new Map;this.zc=NaN;this.Pb=this.tb=null;this.dc=new g.Zn(function(){uV(d,d.zc)});
this.events=new g.vF(this);this.isLiveNow=!0;this.Oe=g.wG(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.J=new g.Zn(function(){d.ya=!0;var e=d.va,f=d.Oe;e.xa("sdai",{aftimeout:f});e.Sd(new cI("ad.fetchtimeout",{timeout:f}));vV(d);d.ZA(!1)},this.Oe);
this.ya=!1;this.Ma=new Map;this.Rb=[];this.oa=null;this.Xd=new Set;this.Va=[];this.Ec=[];this.Gd=[];this.jd=[];this.j=void 0;this.kb=0;this.Xa=!0;this.D=!1;this.Ka=[];this.xd=new Set;this.Wd=new Set;this.Md=new Set;this.bl=0;this.ea=null;this.Fb=new Set;this.Fd=0;this.Yq=this.Lc=!1;this.I="";this.va.getPlayerType();WNa(this.va,this);this.Pa=this.Y.C;g.H(this,this.dc);g.H(this,this.events);g.H(this,this.J);wV(this)||(this.events.S(this.api,g.AB("serverstitchedcuerange"),this.onCueRangeEnter),this.events.S(this.api,
g.BB("serverstitchedcuerange"),this.onCueRangeExit))};
$Na=function(a,b,c,d,e,f,h,l){var m=XNa(a,f,f+e);a.ya&&a.va.xa("sdai",{adaftto:1});var n=a.va;h=void 0===h?f+e:h;f===h&&!e&&a.Y.N("html5_allow_zero_duration_ads_on_timeline")&&a.va.xa("sdai",{attl0d:1});f>h&&yV(a,{reason:"enterTime_greater_than_return",Oc:f,Bd:h});var p=1E3*n.Kd();f<p&&yV(a,{reason:"enterTime_less_than_minSeekableTime",Oc:f,N$a:p});n=1E3*n.getDuration();h>n&&yV(a,{reason:"parent_return_greater_than_content_duration",Bd:h,L$a:n});n=null;p=g.Ab(a.T,{Bd:f},function(w,x){return w.Bd-
x.Bd});
0<=p&&(n=a.T[p],n.Bd>f&&YNa(a,b.video_id||"",f,h,n));if(m&&n){p=g.t(a.Va.entries());for(var q=p.next();!q.done;q=p.next()){var r=g.t(q.value);q=r.next().value;r=r.next().value;if(r.identifier===m.identifier){a.Va.splice(q,1);break}}}else if(m)return a.va.xa("sdai",{rejectAttl:1}),l&&!Pl(a.jd,function(w){return w===l})&&(a.va.xa("sdai",{rejectAdBreakAttl:1}),a.jd.push(l)),zV(a),"";
m="ss_childplayback_"+ZNa++;b.cpn||(b.cpn=g.xA(16));p=b.cpn;b=new g.mJ(a.Y,b);b.Kc=m;c={Kc:m,playerType:d,durationMs:e,Oc:f,Bd:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.Eb(a.T,c,function(w,x){return w.Oc-x.Oc});
a.u.set(p,c);a.Ac.set(m,c);a.va.xa("sdai",{attlDone:h-f,acpn:p});l?c.Vl=l:n?c.Vl=n.Vl:c.Vl=c.cpn;if(f=c.Vl)(d=a.Z.get(f))?(d.push(c),g.Cb(d,function(w,x){return w.Oc-x.Oc})):a.Z.set(f,[c]);
a.J.isActive()&&(a.ya=!1,a.J.stop(),vV(a),a.ZA(!0));return m};
AV=function(a,b){return{ssvc:a,cpn:(null==b?void 0:b.cpn)||"",vid:(null==b?void 0:b.videoData.videoId)||""}};
aOa=function(a,b,c){return new g.yB(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
BV=function(a){return{cpn:a.va.getVideoData().clientPlaybackNonce,durationMs:0,Oc:0,playerType:1,Bd:0,videoData:a.va.getVideoData(),errorCount:0}};
DV=function(a,b,c){var d=a.D,e=BV(a),f=a.I;a.I="";var h=b.ah-c.ah;.5<Math.abs(h)&&a.va.xa("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var l=a.u.get(b.adCpn);var m=a.u.get(c.adCpn)}m&&l&&(a.api.ma("serverstitchedvideochange",l.Kc,l.Kq),a.va.xa("sdai",AV("a2a",l)),a.bl++,CV(a.va,m,l,c.ah,b.ah,d,!!f))}else if(!b.isAd&&c.isAd){a.api.ma("serverstitchedvideochange");a.va.xa("sdai",AV("a2c"));a.bl=0;if(h=c.qe)a.kb=h.end;var n;c.adCpn&&
(n=a.u.get(c.adCpn));n&&CV(a.va,n,e,c.ah,b.ah,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.u.get(b.adCpn));p&&(a.kb=0,a.api.ma("serverstitchedvideochange",p.Kc,p.Kq),a.va.xa("sdai",AV("c2a",p)),a.bl=1,CV(a.va,e,p,c.ah,b.ah,d,!!f))}};
EV=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.Ab(a.T,{Oc:c},function(e,f){return e.Oc-f.Oc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.T[d],a.Bd>=c)?{Mn:a,gy:b}:{Mn:void 0,gy:b}};
FV=function(a,b){var c="";wV(a)?(c=b/1E3-a.Dp(),c=a.va.Cx(c)):(b=bOa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0};
bOa=function(a,b){a=g.t(a.C.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
uV=function(a,b){var c=a.Pb||a.api.Qc().getPlayerState();GV(a,!0);a.va.seekTo(b);a=a.api.Qc();b=a.getPlayerState();g.PL(c)&&!g.PL(b)?a.playVideo():g.OL(c)&&!g.OL(b)&&a.pauseVideo()};
GV=function(a,b){a.zc=NaN;a.dc.stop();a.tb&&b&&HV(a.tb);a.Pb=null;a.tb=null};
IV=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.t(a.T),f=e.next();!f.done;f=e.next())f=f.value,(f.Oc<b||f.Bd>c)&&d.push(f);a.T=d;d=g.t(a.C.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.va.removeCueRange(e),a.C.delete(e.getId()),a.va.xa("sdai",{rmAdCR:1}));d=EV(a,b/1E3);b=d.Mn;d=d.gy;if(b&&(d=1E3*d-b.Oc,e=b.Oc+d,b.durationMs=d,b.Bd=e,d=a.C.get(b.cpn))){e=g.t(a.B);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=b.Oc+
b.durationMs:f.end===d.start&&(f.end=b.Oc);d.start=b.Oc;d.end=b.Oc+b.durationMs}if(b=EV(a,c/1E3).Mn){var h;d="playback_timelinePlaybackId_"+b.Kc+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Oc+"_parentReturnTimeMs_"+b.Bd;a.uB("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
cOa=function(a){a.gb="";a.Aa.clear();a.Wa.clear();a.Ba.clear();a.C.clear();a.B=[];a.T=[];a.u.clear();a.Ac.clear();a.Z.clear();a.Ma.clear();a.Rb=[];a.oa=null;a.Xd.clear();a.Va=[];a.Ec=[];a.Gd=[];a.jd=[];a.Ka=[];a.xd.clear();a.Wd.clear();a.Md.clear();a.Fb.clear();a.isLiveNow=!0;a.ya=!1;a.j=void 0;a.kb=0;a.Xa=!0;a.D=!1;a.bl=0;a.ea=null;a.Fd=0;a.Lc=!1;a.Yq=!1;a.I="";a.J.isActive()&&zV(a)};
eOa=function(a,b,c,d,e){if(!a.Yq)if(g.dOa(a,c))a.Pa&&a.va.xa("sdai",{gdu:"undec",seg:c,itag:e});else return JV(a,b,c,d)};
JV=function(a,b,c,d){var e=a.Ma.get(c);if(!e){b+=a.Dp();b=EV(a,b,1);var f;b.Mn||2!==(null==(f=KV(a,c-1,null!=d?d:2))?void 0:f.Qz)?e=b.Mn:e=a.Ma.get(c-1)}return e};
fOa=function(a){if(a.Ka.length)for(var b=g.t(a.Ka),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);c=g.t(a.C.values());for(b=c.next();!b.done;b=c.next())a.va.removeCueRange(b.value);c=g.t(a.B);for(b=c.next();!b.done;b=c.next())a.va.removeCueRange(b.value);a.C.clear();a.B=[];a.Aa.clear();a.Wa.clear();a.Ba.clear();a.j||(a.Xa=!0)};
KV=function(a,b,c,d){if(1===c){if(a.Y.N("html5_reset_daistate_on_audio_codec_change")&&d&&d!==a.gb&&(""!==a.gb&&(a.va.xa("sdai",{rstadaist:1,old:a.gb,"new":d}),a.Aa.clear()),a.gb=d),a.Aa.has(b))return a.Aa.get(b)}else{if(2===c&&a.Wa.has(b))return a.Wa.get(b);if(3===c&&a.Ba.has(b))return a.Ba.get(b)}};
LV=function(a,b,c,d){if(d)for(d=0;d<a.B.length;){var e=a.B[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;gOa(a,c,f)}else if(e.start>=b&&e.start<c&&e.end>c)e.start=c;else if(e.end>b&&e.end<=c&&e.start<b)e.end=b;else if(e.start>=b&&e.end<=c){a.va.removeCueRange(e);if(a.Ka.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else gOa(a,b,c)};
gOa=function(a,b,c){b=aOa(b,c);c=!0;g.Eb(a.B,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.B.length;){if(0<d){var e=a.B[d],f=a.B[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.va.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.va.addCueRange(b),b=a.va.tA("serverstitchedcuerange",36E5),b=g.t(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
MV=function(a,b,c){if(void 0===c||!c){c=g.t(a.Rb);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.Rb.push(new VNa(b))}};
g.dOa=function(a,b){a=g.t(a.Rb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
YNa=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",H$a:b,Oc:c,Bd:d,E9a:e.Kc,F9a:(null==(f=e.videoData)?void 0:f.videoId)||"",B9a:e.durationMs,C9a:e.Oc,D9a:e.Bd};yV(a,b)};
yV=function(a,b){a=a.va;a.xa("timelineerror",b);a.Sd(new cI("dai.timelineerror",b))};
hOa=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
iOa=function(a,b,c){var d=0;a=a.Z.get(c);if(!a)return-1;a=g.t(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
jOa=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.t(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c};
kOa=function(a,b){var c=0;a=a.Z.get(b);if(!a)return 0;a=g.t(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Bd!==b.Oc&&c++;return c};
lOa=function(a,b,c){var d=!1;if(c&&(c=a.Z.get(c))){c=g.t(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Bd!==e.Oc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Wd.has(e)&&(a.va.xa("sdai",{decoratedAd:e}),a.Wd.add(e)))}};
vV=function(a){a.Pa&&a.va.xa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Fd)+"_isTimeout_"+a.ya})};
XNa=function(a,b,c){if(a.Va.length)for(var d={},e=g.t(a.Va),f=e.next();!f.done;d={jt:d.jt},f=e.next()){d.jt=f.value;f=1E3*d.jt.startSecs;var h=1E3*d.jt.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return Pl(a.Gd,function(l){return function(m){return m.identifier===l.jt.identifier}}(d))||(a.va.xa("sdai",{adskip:b}),a.Gd.push(d.jt)),d.jt}};
zV=function(a){a.ya=!1;a.J.isActive()&&vV(a);a.J.stop();a.ZA(!1)};
wV=function(a){return a.Y.experiments.eb("html5_ssdai_use_new_ad_report")};
NV=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.Y=b;this.j=c;this.I=new Map;this.u=[];this.B=this.J=null;this.Z=NaN;this.D=this.C=null;this.T=new g.Zn(function(){mOa(d,d.Z)});
this.ea=[];this.oa=new g.Zn(function(){var e=d.ea.pop();if(e){var f=e.Kc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ea.length&&g.$n(d.oa,4500))}});
this.events=new g.vF(this);c.getPlayerType();g.H(this,this.T);g.H(this,this.oa);g.H(this,this.events);this.events.S(this.api,g.AB("childplayback"),this.onCueRangeEnter);this.events.S(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.S(this.api,"presentingplayerstatechange",this.ji)};
qOa=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return OV(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Kd();if(e<n)return OV(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=1E3*m.getDuration();if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.Ld(),OV(a,m,h,l),"";n=null;for(var p=g.t(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Oc&&e<q.Bd)return OV(a,"overlappingEnter",h,l),"";if(f<=q.Bd&&f>q.Oc)return OV(a,"overlappingReturn",h,l),"";if(f===q.Oc)return OV(a,"outOfOrder",h,l),"";e===q.Bd&&(n=q)}h="cs_childplayback_"+nOa++;l={qe:PV(d,!0),Sm:Infinity,target:null};var r={Kc:h,playerVars:b,playerType:c,durationMs:d,Oc:e,Bd:f,gr:l};a.u=a.u.concat(r).sort(function(z,B){return z.Oc-B.Oc});
n?oOa(a,n,{qe:PV(n.durationMs,!0),Sm:a.Y.N("timeline_manager_transition_killswitch")?Infinity:n.gr.Sm,target:r}):(b={qe:PV(e,!1),Sm:e,target:r},a.I.set(b.qe,b),m.addCueRange(b.qe));b=!0;if(a.j===a.api.Qc()&&(m=1E3*m.getCurrentTime(),m>=r.Oc&&m<r.Bd)){var w=a.api.Qc().getPlayerState(),x=m-r.Oc;cf(function(){pOa(a,r,x/1E3,w)});
b=!1}b&&(a.ea.unshift(r),g.$n(a.oa,0));return h};
PV=function(a,b){return new g.yB(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
rOa=function(a,b,c,d){a.B=d;a.api.hE(a.j,c,b)};
sOa=function(a,b,c,d){a.B=d;d=b.Kc;var e=b.playerVars,f=b.playerType;a.J=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
oOa=function(a,b,c){var d=b.gr;b.gr=c;QV(a,b)&&(c=a.api.Qc(),d.qe===a.B&&RV(a),c.removeCueRange(d.qe),c.addCueRange(b.gr.qe))};
RV=function(a){a.J=null;a.B=null;a.api.Ox()||a.api.clearQueue()};
tOa=function(a,b){QV(a,b)||OV(a,"childPlaybackIsNotPresenting");return b.Bd===b.Oc+b.durationMs?(a=a.api.Qc(),b.Oc+1E3*a.getCurrentTime()):b.Bd};
SV=function(a,b){var c=0;a=g.t(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Oc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Mn:d,gy:b-e};c=f-d.Bd/1E3}return{Mn:null,gy:b-c}};
mOa=function(a,b){var c=a.D||a.api.Qc().getPlayerState();TV(a,!0);b=isFinite(b)?b:a.j.lm();var d=SV(a,b);b=d.Mn;d=d.gy;var e=b&&!QV(a,b)||!b&&a.j!==a.api.Qc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||RV(a);b?pOa(a,b,d,c):UV(a,d,c)};
UV=function(a,b,c){var d=a.j,e=a.api.Qc();d!==e&&a.api.kq();d.seekTo(b,{Ee:"application_timelinemanager"});uOa(a,c)};
pOa=function(a,b,c,d){var e=QV(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.mJ(a.Y,b.playerVars);f.Kc=b.Kc;a.api.hs(f,b.playerType)}f=a.api.Qc();e||f.addCueRange(b.gr.qe);f.seekTo(c,{Ee:"application_timelinemanager"});uOa(a,d)};
uOa=function(a,b){a=a.api.Qc();var c=a.getPlayerState();g.PL(b)&&!g.PL(c)?a.playVideo():g.OL(b)&&!g.OL(c)&&a.pauseVideo()};
TV=function(a,b){a.Z=NaN;a.T.stop();a.C&&b&&HV(a.C);a.D=null;a.C=null};
QV=function(a,b){a=a.api.Qc();return!!a&&a.getVideoData().Kc===b.Kc};
vOa=function(a){var b=a.u.find(function(e){return QV(a,e)});
if(b){var c=a.api.Qc();RV(a);var d=new g.IL(8);b=tOa(a,b)/1E3;UV(a,b,d);c.xa("forceParentTransition",{childPlayback:1});a.j.xa("forceParentTransition",{parentPlayback:1})}};
VV=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.t(a.I),h=f.next();!h.done;h=f.next()){var l=g.t(h.value);h=l.next().value;l=l.next().value;l.Sm>=d&&l.target&&l.target.Bd<=e&&(a.j.removeCueRange(h),a.I.delete(h))}d=b;e=c;f=[];h=g.t(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Oc>=d&&l.Bd<=e){var m=a;m.J===l&&RV(m);QV(m,l)&&m.api.kq()}else f.push(l);a.u=f;d=SV(a,b/1E3);b=d.Mn;d=d.gy;b&&(d*=1E3,wOa(a,b,d,b.Bd===b.Oc+b.durationMs?b.Oc+d:b.Bd));(b=SV(a,c/1E3).Mn)&&
OV(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Kc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Oc+" parentReturnTimeMs="+b.Bd+"}.Child playbacks can only have duration updated not their start."))};
wOa=function(a,b,c,d){b.durationMs=c;b.Bd=d;d={qe:PV(c,!0),Sm:c,target:null};oOa(a,b,d);QV(a,b)&&1E3*a.api.Qc().getCurrentTime()>c&&(b=tOa(a,b)/1E3,c=a.api.Qc().getPlayerState(),UV(a,b,c))};
OV=function(a,b,c,d){a.j.xa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
yOa=function(a){a&&"web"!==a&&xOa.includes(a)};
YV=function(a,b){g.E.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.Zn(function(){WV(c);XV(c)});
g.H(this,this.j)};
WV=function(a){var b=(0,g.R)();a.data.forEach(function(c){c.expire<b&&ZV(a,c,!0)});
a.data=g.vm(a.data,function(c){return!(c.expire<b)})};
ZV=function(a,b,c){c&&a.u&&a.u(b.value)};
XV=function(a){a.j.stop();var b=Infinity;for(var c=g.t(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.j.start(b))};
g.$V=function(a){this.tag=a};
AOa=function(a,b){zOa.apply(null,[6,a,b].concat(g.u(g.ya.apply(2,arguments))))};
BOa=function(a,b){zOa.apply(null,[5,a,b].concat(g.u(g.ya.apply(2,arguments))))};
zOa=function(a,b,c){var d=g.ya.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.rA(new (Function.prototype.bind.apply(g.Sw,[null,f].concat(g.u(d)))),e);d.unshift(f);d=d.join(", ");e=COa.get(b);if(!e){e="ytplog."+b;f=5;try{window.localStorage&&!isNaN(+window.localStorage[e])&&(f=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(f=+window.sessionStorage[e])}catch(h){}COa.set(b,f);e=f}a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
aW=function(){g.E.call(this);this.j=new YV(5,null);g.H(this,this.j);this.u=new YV(15,null);g.H(this,this.u)};
DOa=function(a,b){return b?!!a.j.get(b):!1};
bW=function(){g.Mo.call(this);this.D=new Map};
cW=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.j=a-1};
EOa=function(a){return a.data[a.j]||0};
dW=function(a){g.E.call(this);this.B=a;this.j=new Map;this.u=new g.Zn(this.sample,250,this);g.H(this,this.u);this.start()};
eW=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.u!==a.j;)a.u=(a.u+1)%a.data.length,b.push(a.data[a.u]);a=b}return a||[]};
fW=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:EOa(c.buffer))||0};
gW=function(a){this.u=a;this.j=NaN;this.buffer=new cW(100)};
FOa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
hW=function(a){g.E.call(this);var b=this;this.j=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)};
jW=function(a){g.W.call(this,{F:"div",Ga:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},W:[{F:"div",K:g.iW.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.dA=this.Ea(g.iW.VIDEO_CONTAINER);this.yy=new g.xl(0,0,0,0);this.Qb=null;this.gG=new g.xl(0,0,0,0);this.wK=this.CL=this.BL=NaN;this.VE=this.dG=this.DM=this.WQ=!1;this.sJ=NaN;this.dL=!1;this.vB=null;this.UL=function(){b.element.focus()};
this.QF=function(){b.app.Ua.ma("playerUnderlayVisibilityChange","visible");b.Qb.classList.remove(g.iW.VIDEO_CONTAINER_TRANSITIONING);b.Qb.removeEventListener(pQ,b.QF);b.Qb.removeEventListener("transitioncancel",b.QF)};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.V();e.transparentBackground&&this.Lq("ytp-transparent");"0"===e.controlsType&&this.Lq("ytp-hide-controls");g.ho(this.element,"ytp-exp-bottom-control-flexbox");e.N("html5_player_bottom_linear_gradient")&&g.ho(this.element,"ytp-linear-gradient-bottom-experiment");e.N("enable_new_paid_product_placement")&&!g.VH(e)&&g.ho(this.element,"ytp-exp-ppp-update");oqa(this.element,"version",GOa(a));this.AV=!1;this.wA=new g.ke(NaN,NaN);HOa(this);this.S(a.Ua,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
HOa=function(a){function b(){a.Qb&&kW(a);lW(a)!==a.dL&&a.resize()}
function c(h,l){a.Nr(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.gG=new g.xl(0,0,0,0);a.yy=new g.xl(0,0,0,0)}
var f=a.app.Ua;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.cb(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
IOa=function(a){var b=g.OP(a.app);if(b=b?b.getVideoData():null){if(g.SJ(b)||g.TJ(b)||g.VJ(b))return 16/9;if(DJ(b)&&b.C.j)return a=b.C.videoInfos[0].video,mW(a.width,a.height)}return(a=a.Qb)?mW(a.videoWidth,a.videoHeight):16/9};
JOa=function(a,b,c,d){var e=c,f=mW(b.width,b.height);a.WQ?e=c<f?Infinity:0:isNaN(a.wK)?isNaN(a.CL)||(e=a.CL):e=a.wK;isFinite(e)||(e=Math.max(c,f));a=e>f?{width:b.width,height:b.width/e,aspectRatio:e}:e<f?{width:b.height*e,height:b.height,aspectRatio:e}:{width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?a.width=a.height*c:c<e&&(a.height=a.width/c),a.aspectRatio=c);return a};
mW=function(a,b){return 1>Math.abs(nW*b-a)||1>Math.abs(nW/a-b)?nW:a/b};
lW=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.OP(a.app);if(!b||b.Zn())return!1;a=a.app.Ua.Eb();b=!g.V(a,2)||b&&b.getVideoData().gb;var c=g.V(a,1024);return a&&b&&!c&&!a.isCued()};
kW=function(a){var b="3"===a.app.V().controlsType&&!a.VE&&lW(a)&&!a.app.zB||!1;a.Qb.controls=b;a.Qb.tabIndex=b?0:-1;b?a.Qb.removeEventListener("focus",a.UL):a.app.V().N("disable_focus_redirect")||a.Qb.addEventListener("focus",a.UL)};
KOa=function(a){var b=a.uj(),c=1,d=!1,e=JOa(a,b,a.getVideoAspectRatio()),f=a.app.V(),h=f.N("enable_desktop_player_underlay"),l=iw(),m=g.wG(f.experiments,"player_underlay_min_player_width");m=h&&a.DM&&a.getPlayerSize().width>m;if(lW(a)){var n=IOa(a);var p=isNaN(n)||g.Jx||oW&&g.kx||m;jw&&!g.Bc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.N("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.xl(p,0,b.width,b.height)):p=new g.xl(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.xl((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.kx&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));g.lo(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.AV)a.Qb.style.display="";a.dL=!0}else{p=-b.height;jw?p*=window.devicePixelRatio:g.WH&&(p-=window.screen.height);p=new g.xl(0,p,b.width,b.height);if(l||a.AV)a.Qb.style.display="none";a.dL=!1}yl(a.gG,p)||(a.gG=p,g.BH(f)?(a.Qb.style.setProperty("width",
p.width+"px","important"),a.Qb.style.setProperty("height",p.height+"px","important")):g.Kl(a.Qb,p.getSize()),d=new g.he(p.left,p.top),g.Gl(a.Qb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.xl((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);yl(a.yy,b)||(a.yy=b,d=!0);g.Al(a.Qb,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.dG&&(m&&(a.Qb.addEventListener(pQ,a.QF),a.Qb.addEventListener("transitioncancel",a.QF),a.Qb.classList.add(g.iW.VIDEO_CONTAINER_TRANSITIONING)),a.dG=m,a.app.Ua.ma("playerUnderlayVisibilityChange",
a.dG?"transitioning":"hidden"));return d};
LOa=function(){this.csn=g.DA();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set};
MOa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)};
NOa=function(a){if(a.csn!==g.DA())if("UNDEFINED_CSN"===a.csn)a.csn=g.DA();else{var b=g.DA(),c=g.CA();if(b&&c){a.csn=b;for(var d=g.t(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.YL(b,c,e)}if(b)for(a=g.t(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.ZL(b,c)}};
pW=function(a,b,c,d,e){g.W.call(this,{F:"div",K:"ytp-horizonchart"});this.D=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.u=this.ctx=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.D+"em"};
qW=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Oe("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.j*a.sampleCount;a.u=c;a.u.width=d;a.u.style.width=d+"px";a.element.appendChild(a.u)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c<a.sampleCount;c++)d=g.Oe("SPAN"),d.style.width=a.j+"px",d.style.left=a.j*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.ctx&&(c=1<(window.devicePixelRatio||1)?2:1,a.u.height=a.heightPx*
c,a.u.style.height=a.heightPx+"px",a.ctx.scale(1,c)));b=g.t(b);for(c=b.next();!c.done;c=b.next())a.setValue(a.index,c.value),a.index=(a.index+1)%a.sampleCount;b=a.index;a.ctx?a.ctx.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
rW=function(a){var b=null;b={F:"button",Ga:["html5-video-info-panel-close","ytp-button"],X:{title:"close"},qa:"[X]"};g.W.call(this,{F:"div",K:"html5-video-info-panel",W:[b,{F:"div",K:"html5-video-info-panel-content",W:[{F:"div",W:[{F:"div",qa:"Video ID / sCPN"},{F:"span",qa:"{{video_id_and_cpn}}",K:"ytp-sfn-cpn"}]},{F:"div",W:[{F:"div",qa:"Viewport / Frames"},{F:"span",qa:"{{dims_and_frames}}"}]},{F:"div",W:[{F:"div",qa:"Current / Optimal Res"},{F:"span",qa:"{{resolution}}"}]},{F:"div",W:[{F:"div",
qa:"Volume / Normalized"},{F:"span",qa:"{{volume}}"}]},{F:"div",W:[{F:"div",qa:"Codecs"},{F:"span",qa:"{{codecs}}"}]},{F:"div",X:{style:"{{shader_info_style}}"},W:[{F:"div",qa:"Shader Info"},{F:"span",qa:"{{shader_info}}"}]},{F:"div",X:{style:"{{color_style}}"},W:[{F:"div",qa:"Color"},{F:"span",qa:"{{color}}"}]},{F:"div",X:{style:"{{drm_style}}"},W:[{F:"div",qa:"Protected"},{F:"span",qa:"{{drm}}"}]},{F:"div",X:{style:"{{bandwidth_style}}"},W:[{F:"div",qa:"Connection Speed"},{F:"span",W:[{F:"span",
qa:"{{bandwidth_chart}}"},{F:"span",qa:"{{bandwidth_kbps}}"}]}]},{F:"div",X:{style:"{{network_activity_style}}"},W:[{F:"div",qa:"Network Activity"},{F:"span",W:[{F:"span",qa:"{{network_activity_chart}}"},{F:"span",qa:"{{network_activity_bytes}}"}]}]},{F:"div",W:[{F:"div",qa:"Buffer Health"},{F:"span",W:[{F:"span",qa:"{{buffer_health_chart}}"},{F:"span",qa:"{{buffer_health_seconds}}"}]}]},{F:"div",X:{style:"{{live_latency_style}}"},W:[{F:"div",qa:"Live Latency"},{F:"span",W:[{F:"span",qa:"{{live_latency_chart}}"},
{F:"span",qa:"{{live_latency_secs}}"}]}]},{F:"div",X:{style:"{{live_mode_style}}"},W:[{F:"div",qa:"Live Mode"},{F:"span",qa:"{{live_mode}}"}]},{F:"div",X:{style:"{{playback_categories_style}}"},W:[{F:"div",qa:"Playback Categories"},{F:"span",qa:"{{playback_categories}}"}]},{F:"div",W:[{F:"div",qa:"Mystery Text"},{F:"span",qa:"{{debug_info}}"}]},{F:"div",X:{style:"{{extra_debug_info_style}}"},W:[{F:"div",qa:""},{F:"span",W:[{F:"span",qa:"{{extra_debug_info}}"}]}]},{F:"div",W:[{F:"div",qa:"Date"},{F:"span",
qa:"{{date}}"}]},{F:"div",X:{style:"{{cotn_and_local_media_style}}"},W:[{F:"div",qa:"COTN / Local Media"},{F:"span",qa:"{{cotn_and_local_media}}"}]},{F:"div",X:{style:"{{release_style}}"},W:[{F:"div",qa:"Player Release"},{F:"span",qa:"{{release_name}}"}]}]}]});b?(b=this.Ea("html5-video-info-panel-close"),this.S(b,"click",this.hide)):this.S(this.element,"click",this.hide);b=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),
d=b.map(function(e){return e/4});
this.D={};this.j=new pW(300,1,150,b,c);g.H(this,this.j);this.updateValue("bandwidth_chart",this.j);this.B=new pW(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.H(this,this.B);this.updateValue("live_latency_chart",this.B);this.u=new pW(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.H(this,this.u);this.updateValue("buffer_health_chart",this.u);this.C=new pW(300,1,150,d,c);g.H(this,this.C);this.updateValue("network_activity_chart",
this.C);this.delay=new g.Zn(this.La,500,this);g.H(this,this.delay);this.Ua=a};
sW=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
OOa=function(a,b){var c=Math.min(2.5,iH(a.schedule));a=tW(a);return b-c*a};
uW=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Zh&&(d=Math.abs(d));d/=a.playbackRate;var f=1/kH(a.schedule);c=Math.max(.9*(d-3),iH(a.schedule)+2048*f)/f*a.policy.zn/(b+c);if(!a.policy.Xe||d)c=Math.min(c,d);a.policy.nf&&e&&(c=Math.max(c,a.policy.nf));return POa(a,c,b)};
POa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.yn*c),Math.min(Math.min(a.policy.ya,31*c),Math.ceil(b*c))))||65536};
tW=function(a){return kH(a.schedule,!a.policy.Ak,a.policy.xn)};
vW=function(a){return tW(a)/a.playbackRate};
wW=function(a,b,c,d,e){this.Ja=a;this.u=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.D=!1;this.B=this.u.isManifestless&&!this.u.Ne;this.C=null};
QOa=function(a,b){var c=a.j.index,d=a.u.Na;KE(c,d)||b&&b.Na===d?(a.D=!KE(c,d),a.T=!KE(c,d)):(a.D=!0,a.T=!0)};
SOa=function(a,b,c){if(!a.j.vg())return 0===b||a.B.length&&a.B[0]instanceof xW||yW(a),b;var d=zW(a,b);if(!isNaN(d))return d;a.Yj();return c&&(c=GF(c.Bg(),b),!isNaN(c))?(AW(a,c+ROa),b):AW(a,b)};
WOa=function(a,b,c,d){if(a.Rg()&&a.j){var e=TOa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.B=!0;g.hf(function(){a.Ja.xa("seekreason",{reason:"behindMinSq",tgt:e});UOa(a,e)});
return}}c?a.videoTrack.T=!1:a.audioTrack.T=!1;var f=a.policy.Gu||!a.B;0<=zW(a.videoTrack,a.j)&&0<=zW(a.audioTrack,a.j)&&f?((a.videoTrack.D||a.audioTrack.D)&&a.Ja.xa("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.D=!1,a.audioTrack.D=!1):d&&g.hf(function(){if(a.B||!a.policy.Rb)VOa(a);else{var h=b.startTime,l=b.duration,m=c?a.videoTrack.D:a.audioTrack.D,n=-1!==a.videoTrack.I&&-1!==a.audioTrack.I,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.T&&!a.audioTrack.T,r=a.policy.Hu&&zW(a.videoTrack,
h)&&zW(a.audioTrack,h);m&&n&&q&&(p||r?((c?a.videoTrack:a.audioTrack).D=!1,a.videoTrack.D||a.audioTrack.D||(a.Ja.xa("iterativeSeeking",{status:"done",target:h,count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Ja.xa("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j)):(a.Ja.xa("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ja.va.seekTo(h+
.1,{yu:!0,Ee:"chunkSelectorSynchronizeMedia",Mq:!0})))}})};
TOa=function(a,b,c){if(!a.Rg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.ai(a.j);return(KE(c,a.u.Be)||b.Na===a.u.Be)&&d<a.u.Be?a.u.Kd():-1};
UOa=function(a,b){a.B&&-1!==a.videoTrack.I&&-1!==a.audioTrack.I&&(a.B=!1,a.j=b,a.Ja.va.seekTo(b+.1,{yu:!0,Ee:"chunkSelectorSynchronize",Mq:!0}))};
VOa=function(a){var b=-1!==a.videoTrack.I,c=-1!==a.audioTrack.I;if(!b||!c)if(b=!b&&BW(a.videoTrack),c=!c&&BW(a.audioTrack),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.I=BW(c).info.Na,-1!==b.I){var d=Math.max(b.j.index.getStartTime(b.I),c.j.index.getStartTime(c.I));eG(a.u)&&432E3<Math.abs(d-eG(a.u))&&Xua(a.u);g.hf(function(){UOa(a,d)});
a.Ja.xa("initManifestlessSync",{st:d,a:a.audioTrack.I,v:a.videoTrack.I});a.C&&(a.C.resolve(d+.1),a.C=null)}};
XOa=function(a){this.j=a;this.ea=this.Ma=this.T=this.Ba=this.B=this.D=this.C=this.I=this.Z=this.Ka=this.ya=this.Aa=this.oa=0;this.ticks={}};
YOa=function(a){a.oa||(a.oa=(0,g.R)(),BQ("mb_s",a.oa,a.j))};
CW=function(a,b,c,d,e,f){g.FB.call(this);this.Ja=a;this.Aa=b;this.policy=c;this.T=d;this.Ka=e;this.oa=this.u=null;this.B=this.D=NaN;this.I=0;this.Z=NaN;this.C=null;this.ya=new Map;this.ea="";this.Ba=0;this.J=NaN;this.j=f?1:0};
DW=function(a,b,c){b.startSecs+=isNaN(a.I)?0:a.I;a=a.Aa;a.J.push(b);a.ma("cuepointsadded",c)};
ZOa=function(a,b,c){if(0!==a.j&&c&&b.Za[0].isVideo())if(b.Za[0].Na>a.B&&(a.B=NaN,a.D=NaN),a.u&&a.u.Na===b.Za[0].Na){var d=a.u,e=d.Bf,f=c.Bs(e);a.xa("sdai",{onqevt:e.event,sq:b.Za[0].Na,gab:f});f?"predictStart"!==e.event?d.cB?EW(a,4,"cue"):(a.B=b.Za[0].Na,a.D=b.Za[0].B,a.xa("sdai",{joinad:a.j,sg:a.B,st:a.D.toFixed(3)}),a.Z=Date.now(),EW(a,2,"join"),c.NE(d.Bf)):(a.J=b.Za[0].Na+Math.max(Math.ceil(-e.j/5E3),1),a.xa("sdai",{onpred:b.Za[0].Na,est:a.J}),a.Z=Date.now(),EW(a,3,"predict"),c.NE(d.Bf)):1===a.j&&
EW(a,5,"nogab")}else 1===a.j&&EW(a,5,"noad")};
$Oa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.D)?a.D:b};
aPa=function(a,b){if(a.u){var c=a.u.Bf.durationSecs-(b.startTime+a.I-a.u.Bf.startSecs);0>=c||(c=new qB(a.u.Bf.startSecs-(isNaN(a.I)?0:a.I),c,a.u.Bf.context,a.u.Bf.identifier,"stop",a.u.Bf.j+1E3*b.duration),a.xa("cuepointdiscontinuity",{segNum:b.Na}),DW(a,c,b.Na))}};
EW=function(a,b,c){a.j!==b&&(a.xa("sdai",{setsst:b,old:a.j,r:c}),a.j=b)};
FW=function(a,b,c,d){(void 0===d?0:d)?EW(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.j&&EW(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
GW=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
bPa=function(a,b,c,d,e,f){var h=this;f=void 0===f?[]:f;this.Ja=a;this.Aa=b;this.policy=c;this.D=d;this.I=e;this.kb=f;this.logger=new g.$V("dash/abr");this.B=lJ;this.j=this.J=null;this.Z=-1;this.Pa=!1;this.nextVideo=this.u=null;this.C=[];this.Ka={};this.videoIndex=0;this.Xa=this.ea=this.T=!1;this.Ba=0;this.Wa=new Set;this.gb=!1;this.ya=new Map;this.Va=0;this.tb=!1;this.Ma=null;this.yf={Z$a:function(){HW(h)}}};
gPa=function(a,b,c){IW(a,b);cPa(a,c);a.J=a.u;dPa(a);ePa(a);a.j=a.nextVideo;a.J=a.u;return fPa(a)};
iPa=function(a,b){if(hPa(a,b))return null;if("m"===b.reason&&b.isLocked())return IW(a,b),a.videoIndex=a.C.length-1,HW(a),JW(a),a.ea=a.ea||a.j!==a.nextVideo,a.j=a.nextVideo,new GW(a.u,a.j,b.reason);"r"===b.reason&&(a.Z=-1);IW(a,b);JW(a);if("r"===b.reason&&a.nextVideo===a.j)return new GW(a.u,a.nextVideo,b.reason);a.j&&a.nextVideo&&KW(a,a.j.info)<KW(a,a.nextVideo.info)&&(b=a.B.reason,a.T=a.T||"r"===b||"u"===b||"v"===b);return null};
LW=function(a,b,c){a.Va+=1;if(void 0===c?0:c)a.tb=!0;c=6E4*Math.pow(2,a.Va);a.ya.set(b.info.id,(0,g.R)()+c);a.Z=-1;IW(a,a.B)};
MW=function(a){if(a.ya.size){for(var b=(0,g.R)(),c=g.t(a.ya.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.ya.clear()}return!1};
NW=function(a,b){return new GW(a.J,a.j,b||a.B.reason)};
OW=function(a){return a.B.isLocked()};
fPa=function(a){a.Pa?a.Pa=!1:a.Z=(0,g.R)();a.T=!1;return new GW(a.J,a.j,a.B.reason)};
jPa=function(a,b){var c={};b=g.t(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],h=f&&oF(f)&&f.video.j>a.policy.ea,l=e<=a.policy.ea?oF(d):WC(d);if(!f||h||l)c[e]=d}return c};
IW=function(a,b){a.B=b;var c=a.I.videoInfos;if(!OW(a)){var d=(0,g.R)();c=g.vm(c,function(q){if(q.ac>this.policy.ac)return!1;var r=this.D.j[q.id],w=r.info.Hb;return this.policy.Ju&&this.Wa.has(w)||this.ya.get(q.id)>d||4<r.u.u||4<r.J?!1:!0},a);
a.tb&&MW(a)&&(c=g.vm(c,function(q){return 854>=q.video.width&&480>=q.video.height}))}c.length||(c=a.I.videoInfos);
var e=g.vm(c,b.C,b);if(OW(a)&&a.oa){var f=g.ib(c,function(q){return q.id===a.oa});
f?e=[f]:delete a.oa}f="m"===b.reason||"s"===b.reason;a.policy.Ty&&oW&&g.kx&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.j||q.j.powerEfficient)}));
if(0<e.length)if(MF()){var h=jPa(a,e);e=e.filter(function(q){return!!q&&!!q.video&&q.Hb===h[q.video.j].Hb})}else{var l,m,n=null==(l=e[0])?void 0:null==(m=l.video)?void 0:m.j;
if(n){b=e.filter(function(q){return!!q&&!!q.video&&q.video.j===n});
var p=jPa(a,b)[n].Hb;e=e.filter(function(q){return!!q&&!!q.video&&q.Hb===p})}}e.length||(e=[c[0]]);
e.sort(function(q,r){return KW(a,q)-KW(a,r)});
c={};for(b=1;b<e.length;c={UC:c.UC,TC:c.TC},b++)c.TC=e[b-1],c.UC=e[b],c.TC.video.width>c.UC.video.width?(g.pb(e,b),b--):KW(a,c.TC)*a.policy.B>KW(a,c.UC)&&(g.pb(e,b-1),b--);c=e[e.length-1];a.gb=!!a.j&&!!a.j.info&&a.j.info.Hb!==c.Hb;a.C=e;sKa(a.policy,c)};
cPa=function(a,b){b?a.u=a.D.j[b]:(b=g.ib(a.I.j,function(c){return!!c.Rc&&c.Rc.isDefault}),a.policy.pn&&!b&&(b=g.ib(a.I.j,function(c){return c.audio.j})),b=b||a.I.j[0],a.u=a.D.j[b.id]);
HW(a)};
kPa=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"===a.C[c].video.quality;)c++;var d=vW(a.Aa)/a.policy.B;return KW(a,b.info)+KW(a,a.C[c])>d};
HW=function(a){if(!a.u||!a.policy.u&&!a.u.info.Rc){var b=a.I.j;a.u&&a.policy.pn&&(b=b.filter(function(d){return d.audio.j===a.u.info.audio.j}),b.length||(b=a.I.j));
a.u=a.D.j[b[0].id];if(1<b.length){var c=!1;if(c=a.policy.Fb?!0:a.B.isLocked()?240>a.B.j:kPa(a,a.u))a.u=a.D.j[g.fb(b).id]}}};
JW=function(a){a.policy.Sf&&(a.Ma=a.Ma||new g.Zn(function(){a.policy.Sf&&a.j&&!MW(a)&&1===Math.floor(10*Math.random())?(LW(a,a.j),a.T=!0):a.Ma.start()},6E4),g.$n(a.Ma));
if(!a.nextVideo||!a.policy.u)if(OW(a))a.nextVideo=360>=a.B.j?a.D.j[a.C[0].id]:a.D.j[g.fb(a.C).id];else{for(var b=Math.min(a.videoIndex,a.C.length-1),c=vW(a.Aa),d=KW(a,a.u.info),e=c/a.policy.D-d;0<b&&!(KW(a,a.C[b])<=e);b--);for(var f=c/a.policy.B-d;b<a.C.length-1&&!(KW(a,a.C[b+1])>=f);b++);a.nextVideo=a.D.j[a.C[b].id];a.videoIndex!==b&&a.logger.info(function(){var h=a.B;return"Adapt to: "+pua(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+
f.toFixed(0)+", constraint: ["+(h.u+"-"+h.j+", override: "+(h.B+", reason: "+h.reason+"]"))});
a.videoIndex=b}};
dPa=function(a){var b=a.policy.D,c=vW(a.Aa),d=c/b-KW(a,a.u.info);b=g.jb(a.C,function(e){return KW(this,e)<d},a);
0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.D.j[a.C[b].id];a.logger.info(function(){return"Initial selected fmt: "+pua(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
ePa=function(a){if(a.kb.length){var b=a.kb,c=function(d,e){if("f"===d.info.Hb||b.includes(mE(d,a.D.Pd,a.Ja.Yf())))return d;for(var f={},h=0;h<e.length;f={XC:f.XC,cD:f.cD},h++){var l=a.D.j[e[h].id],m=mE(l,a.D.Pd,a.Ja.Yf());if(b.includes(m)){m=d.info.Hb;var n=l.info.Hb;if(m===n||MF()){if(d.info.u!==l.info.u)return a.Ja.xa("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.XC=d.info.itag;f.cD=l.info.itag;a.Ja.xa("ombifa",{f:f.XC,t:f.cD});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.XC+" to "+p.cD+" based on prefetched media."}}(f));
a.Pa=!0;return l}a.Ja.xa("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Ja.xa("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.I.videoInfos);a.u=c(a.u,a.I.j)}};
KW=function(a,b){if(!a.Ka[b.id]){var c=a.D.j[b.id].index.VR(a.Ba,15);c=b.Kt&&a.j&&a.j.index.isLoaded()?c||b.Kt:c||b.ac;a.Ka[b.id]=c}c=a.Ka[b.id];a.policy.fh&&b.video&&b.video.j>a.policy.fh&&(c*=1.5);return c};
lPa=function(a,b){a=eba(a.D.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
mPa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(Gua(a.D)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.C.length;c++)b.push(a.C[c].itag);b.reverse()}return b};
hPa=function(a,b){var c;return a.B.equals(b)&&(!a.oa||!OW(a)||(null==(c=a.nextVideo)?void 0:c.info.id)===a.oa)};
nPa=function(a){this.u=a;this.jp=[];this.j=-1};
oPa=function(a,b,c){var d=lE(c.info.j);var e=c.info.Na+(c.info.j.Lx()?0:1);var f=1E3*c.info.B,h=0<=b?a[b]:null;if(h){var l,m;var n=(null==(l=h.formatId)?void 0:l.itag)===(null==d?void 0:d.itag)&&(null==(m=h.formatId)?void 0:m.xtags)===(null==d?void 0:d.xtags);l=h.JJ===e||h.JJ+1===e;m=100>Math.abs(h.startTimeMs+h.durationMs-f);n=!(n&&l&&m)}else n=1;n&&(h={formatId:d,startTimeMs:f,durationMs:0,v6:e},b+=1,a.splice(b,0,h));h.durationMs+=1E3*c.info.I;h.JJ=e;return b};
pPa=function(a){var b=[];a.jp.forEach(function(e){b.push(Object.assign({},e))});
var c=a.j;a=g.t(a.u.bS());for(var d=a.next();!d.done;d=a.next())c=oPa(b,c,d.value);return b};
qPa=function(a,b){this.u=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
sAa=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j){if(!b)return f.return(b);c=PW.Rs("woe");d=new g.WG(a.u);return g.y(f,d.encrypt(b,a.j),2)}e=f.u;PW.lr(c,Math.ceil(b.byteLength/16));return f.return(e)})};
yAa=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j){if(!b)return f.return(b);c=PW.Rs("wod");d=new g.WG(a.u);return g.y(f,d.decrypt(b,a.j),2)}e=f.u;PW.lr(c,Math.ceil(b.byteLength/16));return f.return(e)})};
QW=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Aa=c;this.C=this.u=0;this.tf=null;this.ea=new Set;this.Z=[];this.indexRange=this.initRange=null;this.T=new oH;this.oa=this.ya=!1;this.yf={e$a:function(){return d.B},
M9a:function(){return d.chunkSize},
L9a:function(){return d.J},
K9a:function(){return d.I}};
(b=rPa(this))?(this.chunkSize=b.csz,this.B=Math.floor(b.clen/b.csz),this.J=b.ck,this.I=b.civ):(this.chunkSize=a.sy,this.B=0,this.J=g.xA(16),this.I=g.xA(16));this.D=new Uint8Array(this.chunkSize);this.J&&this.I&&(this.crypto=new qPa(this.J,this.I))};
rPa=function(a){if(a.policy.Wd&&a.policy.Ay)for(var b={},c=g.t(a.policy.Wd),d=c.next();!d.done;b={VC:b.VC,WC:b.WC},d=c.next())if(d=g.Bv(d.value),b.VC=+d.clen,b.WC=+d.csz,0<b.VC&&0<b.WC&&a.policy.u===d.docid&&a.j.info.id===d.fmtid&&a.j.info.lastModified===+d.lmt)return a={},a.clen=b.VC,a.csz=b.WC,a.ck=d.ck,a.civ=d.civ,a};
RW=function(a){return!!a.tf&&sE(a.tf)};
uPa=function(a,b){if(!RW(a)&&!a.isDisposed()){if(!(a.ya||(a.ya=!0,0<a.B))){var c=SW(a);c=cJ(a.policy.u,a.j.info,TW(a),c,a.policy.Ka);UW(a,c)}if(1===b.info.type){if(a.tf){VW(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=pE(0,b.j.totalLength)}else if(2===b.info.type)a.tf&&1===a.tf.type||VW(a,Error("Woffle: Index before init")),a.indexRange=pE(a.initRange.end+1,b.j.totalLength);else if(3===b.info.type){if(!a.tf){VW(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.tf.type&&!vE(a.tf,b.info)&&(a.Z=[],b.info.Na!==wE(a.tf)||0!==b.info.Nb))return;if(b.info.cf){c=g.t(a.Z);for(var d=c.next();!d.done;d=c.next())sPa(a,d.value);a.Z=[]}else{a.Z.push(b);a.tf=b.info;return}}else{VW(a,Error("Woffle: Unexpected slice type"));return}a.tf=b.info;sPa(a,b);tPa(a)}};
sPa=function(a,b){var c=0,d=kD(b.j);if(a.C<a.B){c=a.B*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.Nb;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.C=a.B;a.u=0}for(e={};c<d.length;){e.sz=Math.min(d.length-c,a.D.byteLength-a.u);f=new Uint8Array(d.buffer,d.byteOffset+c,e.sz);a.D.set(f,a.u);a.u+=e.sz;c+=e.sz;if(a.u===a.D.length){if(b.info===a.tf&&RW(a)&&c===d.length)break;f=SW(a);f=cJ(a.policy.u,a.j.info,TW(a),f,a.policy.Ka,a.C,a.D,a.crypto);a.ea.add(f);UW(a,
f);a.isDisposed()||(f=SW(a),a.Aa(TW(a),void 0!==f?(f.downloadedEndTime||0)*f.averageByteRate:f.maxKnownEndTime*f.averageByteRate,f.maxKnownEndTime*f.averageByteRate));a.D=new Uint8Array(a.chunkSize);a.u=0;a.C+=1}e={sz:e.sz}}};
tPa=function(a){if(RW(a))if(a.tf&&a.indexRange)if(a.u){var b=new Uint8Array(a.D.buffer,0,a.u),c=vPa(a),d=a.policy.u;Promise.all(a.ea).then(function(){var e=cJ(d,a.tf.j.info,TW(a,!0),c,a.policy.Ka,a.C,b,a.crypto);UW(a,e,!0)})}else VW(a,new WW("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else VW(a,new WW("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
SW=function(a){return{downloadedEndTime:Math.round(a.tf?a.tf.C:0),maxKnownEndTime:Math.round(a.j.index.Er()),averageByteRate:Math.round(a.j.info.Kt)}};
vPa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.Er()),averageByteRate:Math.round(a.j.info.Kt)}};
TW=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.tf||VW(a,new WW("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.u,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.C*a.chunkSize+a.u};a.crypto&&(b.ck=a.J,b.civ=a.I);var c="local://localhost/videoplayback?"+yv(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.ac,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:Bta(d),indexRange:null==(e=a.indexRange)?void 0:Bta(e),url:c};if(d=a.j.info.u)b.xtags=d;if(d=a.j.info.video)if(b.quality=d.quality,b.qualityLabel=d.qualityLabel,b.width=d.width,b.height=d.height,d=d.fps)b.fps=d;if(a=a.j.info.audio){if(d=a.sampleRate)b.audioSampleRate=String(d);if(a=a.numChannels)b.audioChannels=a}return b};
UW=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.ea.delete(b);(c||4===d)&&a.T.resolve(d)},function(d){a.T.reject(d)})};
VW=function(a,b){4!==g.ZI(a.policy.u)&&(g.$I(a.policy.u,4),g.sA(b),a.T.reject(new WW(b.message)))};
WW=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=void 0===b?!1:b};
wPa=function(a){a=g.OD(a,1886614376);for(var b=g.t(a),c=b.next();!c.done;c=b.next());return g.Lg(a,function(d){return new Uint8Array(d.data.buffer,d.offset+d.data.byteOffset,d.size)})};
xPa=function(a){var b=Ok(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
yPa=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.u=c;this.C=d;this.B=e;this.Qz=f};
XW=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.B=[];this.ze=!1;this.u=null;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.ze=!0};
APa=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{b:{var m=void 0,n=b.subarray(c+f,c+f+l);f=zPa;if(YW.length){var p=YW.pop();Hda(p);p.j.init(n,void 0,void 0,void 0);m=p}else m=new ah(n);try{var q=ph(f);var r=Yda(new q.Ut,m,q);break b}finally{m.free()}r=void 0}m=r;if(null!==m){var w=m;break a}}catch(x){}}c+=
e}w=null}catch(x){w=null}}if(null!=w)for(b=g.gg(w,7),null==b||a.ze||(a.cryptoPeriodIndex=b),b=g.gg(w,10),null!=b&&0<b&&!a.ze&&(a.j=b),w=g.t(g.ng(w,2,oda)),b=w.next();!b.done;b=w.next())a.B.push(g.Df(Nf(b.value),4))};
BPa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Df(a.initData):""+a.cryptoPeriodIndex};
ZW=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.ZB?void 0:d.ZB;d=void 0===d.XE?!1:d.XE;this.videoId=a;this.status=b;this.videoDuration=c;this.ZB=e;this.XE=d};
CPa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.u=c;this.bytesDownloaded=d;this.j=e};
$W=function(a){this.j=a;this.offset=0};
aX=function(a){if(a.offset>=a.j.totalLength)throw Error();return lD(a.j,a.offset++)};
DPa=function(a,b){b=void 0===b?!1:b;var c=aX(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=aX(a);-1===b&&255!==d&&(b=0);-1<b&&(b=256*b+d)}return b}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+aX(a),d*=128;return b?c:c-d};
FPa=function(a,b,c){var d=this;this.Ja=a;this.policy=b;this.I=c;this.logger=new g.$V("dash");this.u=[];this.j=null;this.ya=-1;this.Z=0;this.Ba=NaN;this.ea=0;this.B=NaN;this.T=this.Ma=0;this.Wa=-1;this.Ka=this.C=this.D=this.Aa=null;this.Xa=this.Va=NaN;this.J=this.oa=this.Pa=this.gb=null;this.kb=!1;this.timestampOffset=0;this.yf={bS:function(){return d.u}};
if(this.policy.u){var e=this.I,f=this.policy.u;this.policy.Ka&&a.xa("atv",{ap:this.policy.Ka});this.J=new QW(this.policy,e,function(h,l,m){bX(a,new ZW(d.policy.u,2,{ZB:new CPa(f,h,e.info,l,m)}))});
this.J.T.promise.then(function(h){d.J=null;1===h?bX(a,new ZW(d.policy.u,h)):d.Ja.xa("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof WW&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.Ja.xa("offlinenwerr",{em:l}),EPa(d),bX(a,new ZW(d.policy.u,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Ja.xa("dldbwerr",{em:l}),EPa(d),bX(a,new ZW(d.policy.u,4,{XE:!0})))})}};
GPa=function(a){return a.u.length?a.u[0]:null};
cX=function(a){return a.u.length?a.u[a.u.length-1]:null};
NPa=function(a,b,c,d){d=void 0===d?0:d;if(a.C){var e=a.C.Nb+a.C.u;if(0<c.info.Nb)if(c.info.Na===a.C.Na&&c.info.Nb<e){if(c.info.Nb+c.info.u<=e)return;c=cua(c,e-c.info.Nb)[1]}else if(0<=c.info.Na&&0<=a.C.Na&&!vE(a.C,c.info))throw new g.Sw("improper_continuation",yE(a.C),yE(c.info));e=a.C;var f=c.info;(e.Na!==f.Na&&f.Na!==e.Na+1||e.type!==f.type?0:vE(e,f)||(ge(e.B,f.B)&&e.Na===f.Na?0:Eta(e,f)))||HPa(a,"d")}else if(0<c.info.Nb)throw new g.Sw("continuation_of_null",yE(c.info));a.C=c.info;a.I=c.info.j;
if(0===c.info.Nb){if(a.j)if(a.policy.Ng)a.Ja.xa("slice_not_fully_processed",{buffered:yE(a.j.info),push:yE(c.info)});else throw new g.Sw("slice_not_fully_processed",yE(a.j.info),yE(c.info));dX(a);a.Ma=d}else{if(a.Ma&&d&&a.Ma!==d)throw a=new g.Sw("lmt_mismatch",c.info.Na,a.Ma,d),a.level="WARNING",a;!c.info.j.Bm()&&a.D&&(d=c.info,e=a.D.j,d.D="updateWithEmsg",d.Na=e)}if(a.j){d=PE(a.j,c);if(!d)throw new g.Sw("failed_to_merge",yE(a.j.info),yE(c.info));a.j=d}else a.j=c;a:{c=g.QE(a.j.info.j.info);if(3!==
a.j.info.type){if(!a.j.info.cf)break a;6===a.j.info.type?IPa(a,b,a.j):JPa(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.ya&&0===a.Z){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.totalLength;){var m=Wsa(h,l),n=Wsa(h,l+4);l+=m||1;if(1836019558===n)f=l;else if(1835295092===n){e=l;break}}0>e&&(f=-1)}else{h=new $W(h);for(m=l=!1;;){n=h.Bp();var p=h;try{var q=DPa(p,!0),r=DPa(p,!1);var w=q;var x=r}catch(B){x=w=-1}p=w;var z=x;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=z&&(e=h.Bp()+z,
m=!0);else{if(l&&(160===p||163===p)&&(0>f&&(f=n),m))break;163===p&&(f=Math.max(0,f),e=h.Bp()+z);if(160===p){0>f&&(e=f=h.Bp()+z);break}h.skip(z)}}0>f&&(e=-1)}if(0>f)break;a.ya=f;a.Z=e-f}if(a.ya>d)break;a.ya?(d=KPa(a,a.ya),d.C&&LPa(a,d),IPa(a,b,d),MPa(a,d),a.ya=0):a.Z&&(d=KPa(a,0>a.Z?Infinity:a.Z),a.Z-=d.j.totalLength,MPa(a,d))}}a.j&&a.j.info.cf&&(MPa(a,a.j),a.j=null)};
JPa=function(a,b){!b.info.j.Bm()&&0===b.info.Nb&&(g.QE(b.info.j.info)||b.info.j.info.ze())&&jua(b);if(1===b.info.type)try{LPa(a,b),OPa(a,b)}catch(d){g.rA(d);var c=xE(b.info);c.hms="1";a.Ja.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.BK(b);a.J&&uPa(a.J,b);c.vg()&&a.policy.Ba&&(a=a.Ja.Gb,a.Ka.push(lE(c,a.Pd)))};
EPa=function(a){var b;null==(b=a.J)||b.dispose();a.J=null};
PPa=function(a){var b=a.u.reduce(function(c,d){return c+d.j.totalLength},0);
a.j&&(b+=a.j.j.totalLength);return b};
KPa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=cua(c,b);a.j=c[1];return c[0]};
LPa=function(a,b){var c=OE(b);if(nF(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new PD(c);RD(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;WC(d)&&!nF(d)&&(d=OE(b),(new PD(d)).Am(),VD([408125543,374648427,174,224],21936,d));b.info.j.info.isVideo()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.QE(d.info)?d.B=hta(c):d.info.ze()&&(d.B=pta(c))));b.info.j.info.ze()&&
b.info.isVideo()&&(c=OE(b),(new PD(c)).Am(),VD([408125543,374648427,174,224],30320,c)&&VD([408125543,374648427,174,224],21432,c));if(a.policy.zw&&b.info.j.info.ze()){c=OE(b);var e=new PD(c);if(RD(e,[408125543,374648427,174,29637])){d=UD(e,!0);e=e.start+e.pos;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.ym()&&g.QE(b.info.j.info)){d=OE(b);c=g.FD(d,0,1701606260);f=g.FD(d,0,1836476516);if(c&&f){c.skip(2);var h=vD(c),l=xD(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(yD(c)),
e.push(yD(c)),m.push(vD(c)),n.push(vD(c));else for(h=0;h<l;++h)d.push(wD(c)),e.push(wD(c)),m.push(vD(c)),n.push(vD(c));c=g.GD(f);c=new eta(e[0]/c,d[0]/c)}else c=null;if(c){if(g.QE(b.info.j.info))for(d=OE(b),e=g.FD(d,0,1701082227);e;)e.markAsSkip(),e=g.FD(d,e.offset+e.size,1701082227);a.kb=!0;b.info.j.C=c}}b.info.j.Bm()||b.info.j.j||b.info.j.indexRange||kua(b)};
IPa=function(a,b,c){if(c.info.j.Bm()){if(a.kb&&QPa(c)&&(b=OE(c),b=g.FD(b,0,1953658222))){b.skip(1);var d=uD(b)<<16|vD(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=xD(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=xD(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.Aa&&!!a.Aa.I.C)if(b=c.info.isVideo())b=hua(c),h=a.Aa,eX?(l=1/b,b=fX(a,b)>=fX(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&QPa(c)&&(b=a.Aa,eX?(l=hua(c),h=1/l,l=fX(a,l),b=fX(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,gta(OE(c),b))}else{h=!1;a.D||(jua(c),c.u&&(a.D=c.u,h=!0,f=c.info,d=c.u.j,f.D="updateWithEmsg",f.Na=d,f=c.u,f.C&&(a.I.index.u=!f.C),f=c.info.j.info,d=OE(c),g.QE(f)?ND(d,1701671783):f.ze()&&VD([408125543],307544935,d)));a:if((f=RE(c,a.policy.kb))&&iua(c))l=a.policy.An?RPa(a,c):0,a.T+=l,f-=l,a.ea+=f,a.B=a.policy.eh?a.B+f:NaN;else{if(a.policy.Bn){if(d=m=a.Ja.Mq(dua(c),1),0<=a.B&&6!==c.info.type){if(a.policy.eh&&isNaN(a.Va)){g.sA(new g.Sw("Missing duration while processing previous chunk",
yE(c.info)));a.policy.Ng&&SPa(a,c,d);HPa(a,"m");break a}var n=m-a.B,p=n-a.T,q=c.info.Na,r=a.Ka?a.Ka.Na:-1,w=a.Xa,x=a.Va,z=a.policy.Nl&&n>a.policy.Nl,B=a.policy.Ll&&Math.abs(p)>a.policy.Ll,C=a.policy.Cn?Math.abs(a.B-d)<a.policy.Cn:!1;if(1E-4<Math.abs(p)){var G=null==(e=a.D)?void 0:DD(e);e={audio:""+ +a.ym(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:w,lastSliceDuration:x,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+z||B)};if(null==G?0:G.length)e.adCpn=
G[0];a.Ja.handleError("qoe.avsync",e);a.Wa=q}z||B||C||(d=a.B);e=RPa(a,c,m);f-=e;a.T=n+e;a.policy.I&&(p&&!C||e)&&(n=null==(l=a.D)?void 0:DD(l),a.Ja.xa("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Na,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(1E3*p).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.B)?c.info.startTime:a.B;SPa(a,c,d)&&(a.ea+=f,a.B=d+f)}a.Ka=c.info;a.Va=gua(c);
0<=c.D&&(a.Xa=c.D);if(h&&a.D){h=TPa(a,!0);zE(c.info,h);a.j&&zE(a.j.info,h);b=g.t(b);for(l=b.next();!l.done;l=b.next())zE(l.value,h);(c.info.cf||a.j&&a.j.info.cf)&&6!==c.info.type||(a.oa=h,b=a.Ja,b.Gb.isManifestless&&UPa(b,h,null,!!a.I.info.video),a.policy.Md||VPa(a))}}OPa(a,c);a.timestampOffset&&fua(c,a.timestampOffset)};
MPa=function(a,b){if(b.info.cf){a.gb=b.info;if(a.D){var c=a.D,d=TPa(a,!1),e=null;if(a.D.cB()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=DD(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.t(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.t(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=
m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.t(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new yPa(e,f,h,l,g.cta(c),g.dta(c))}a.Ja.dM(a.I,d,e);a.oa||a.policy.Md||VPa(a);a.oa=null}dX(a)}a.J&&uPa(a.J,b);if(c=cX(a))if(c=PE(c,b,a.policy.tp)){a.u.pop();a.u.push(c);return}a.u.push(b)};
dX=function(a){a.j=null;a.ya=-1;a.Z=0;a.D=null;a.Ba=NaN;a.ea=0;a.oa=null};
HPa=function(a,b){b={rst4disc:b,cd:a.T.toFixed(3),sq:a.Ka?a.Ka.Na:-1};a.B=NaN;a.T=0;a.Wa=-1;a.Ka=null;a.Xa=NaN;a.Va=NaN;a.Pa=null;a.Ja.xa("mdstm",b)};
OPa=function(a,b){if(a.I.info.Nd){if(b.info.j.info.ze()){var c=new PD(OE(b));if(RD(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=UD(c,!0);c=16!==d?null:ZD(c,d)}else c=null;d="webm"}else b.info.J=wPa(OE(b)),c=xPa(b.info.J),d="cenc";c&&c.length&&(c=new XW(c,d),a.policy.Wv&&g.QE(b.info.j.info)&&(d=nta(OE(b)))&&(c.u=d),c.ze=b.info.j.info.ze(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.B&&(c.j=b.u.B),a.Ja.jy(c))}};
VPa=function(a){var b=a.D,c=ata(b);c&&(c.startSecs+=a.Ba,a.Ja.cM(a.I,c,b.j,b.cB()))};
TPa=function(a,b){var c,d=a.D;if(c=ata(d))c.startSecs+=a.Ba;return new dD(d.j,a.Ba,b?d.Nj:a.ea,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
SPa=function(a,b,c){if(!eua(b,c))return b=xE(b.info),b.smst="1",a.Ja.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ba)&&(a.Ba=c);return!0};
RPa=function(a,b,c){var d=0;if(b.info.j.info.ze()&&(!a.policy.An||!iua(b)))return 0;if(a.Aa&&!a.ym()){var e=0;c&&g.QE(b.info.j.info)?e=c-a.B:b.info.j.info.ze()&&(e=a.T);var f=b.info.Na;c=RE(b,a.policy.kb);var h=a.Aa;var l=h.Wa;h=h.T;var m=.02<Math.abs(h-e);if((f===l||f>l&&f>a.Wa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.QE(b.info.j.info))gta(OE(b),d);else if(b.info.j.info.ze()&&(f=e-h,!g.QE(b.info.j.info)&&(b.info.j.info.ze(),d=new PD(OE(b)),l=b.C?d:new PD(new DataView(b.info.j.j.buffer)),
RE(b,!0)))){var n=1E3*f,p=aE(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||bE(d))if(TD(d,160))if(UD(d,!0),TD(d,155)){if(f=d.pos,m=UD(d,!0),d.pos=f,n=1E9*n/p,p=WD(d),n=p+Math.max(.7*-p,Math.min(p,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>m)){d.pos=f+1;for(f=m-1;0<=f;f--)d.j.setUint8(d.pos+f,n&255),n>>>=8;d.pos=l}}else d.pos=l;else d.pos=l;else d.pos=l}d=RE(b,a.policy.kb);d=c-d}d&&b.info.j.info.ze()&&a.Ja.xa("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+
d,audioDrift:h})}return d};
QPa=function(a){return a.info.j.Bm()&&a.info.Na===a.info.j.index.od()};
fX=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.I.C&&b&&(b+=a.I.C.j);return b+a.getDuration()};
WPa=function(a,b){0>b||(a.u.forEach(function(c){fua(c,b)}),a.timestampOffset=b)};
gX=function(a,b){this.info=a;this.callback=b;this.state=1;this.uy=this.SE=!1;this.rd=null};
XPa=function(a){return g.Nk(a.info.Za,function(b){return 3===b.type})};
hX=function(a,b,c){this.policy=a;this.Za=b;this.j=0;this.u=null;this.le=[];this.B=null;(this.length=c?c:0)?1!==this.Za.length||this.Za[0].u||(this.Za[0].u=this.length):1===this.Za.length||g.Nk(this.Za,function(d){return!!d.range})};
iX=function(a,b,c){a.u&&(gD(a.u,b),b=a.u,a.u=null);for(var d=!1,e=!1,f=0,h=0,l=g.t(a.Za),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.u<=a.j)f+=m.u;else{if(tE(m)&&!c&&a.j+b.totalLength-h<f+m.u){a.u=b.split(h).Fk;break}var n=3===m.type||4===m.type;a:{var p=a;var q=a.j-f,r=n&&d&&!e&&1===b.j.length,w=b.totalLength-h;m.range&&(w=Math.min(m.u-q,w));q=new rE(m.type,m.j,m.range,"reslice"+m.D,m.Na,m.startTime,m.duration,m.Nb+q,w,m.range?m.Nb+q+w===m.range.length:!!c);var x=hD(b,h,w),z=void 0;if(r)for(z=
new fD([]),r=0;r<p.le.length;r++)gD(z,p.le[r].j);r=new NE(q,x,z);if(p.policy.useUmp&&p.le.length&&(q=PE(p.le[p.le.length-1],r))){p.le[p.le.length-1]=q;p=w;break a}p.le.push(r);p=w}a.j+=p;h+=p;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);if(h===b.totalLength)break}};
YPa=function(a){return a.length-a.j+a.le.reduce(function(b,c){return b+c.j.totalLength},0)};
xW=function(a,b,c,d,e){gX.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.Te=d;this.lastError=null;this.j=new g.Zn(function(){f.isComplete()||(f.lastError="net.timeout",f.Fc(5))},this.policy.Vv);
this.De=function(){f.isDisposed()||(jX(f.Te,f.formatId)?(f.isComplete()||f.j.start(),kX(f.Te,f.formatId)&&f.ey(2),f.Te.Eg(f.formatId)&&(ZPa(f.Te,f.formatId)?f.Fc(4):(f.lastError="net.closed",f.Fc(5)))):(f.lastError="player.exception",f.Fc(5)))};
this.j.start();this.policy.Aa||(this.rd=new hX(this.policy,this.info.Za,this.info.B));$Pa(this.Te,this.formatId,this.De);g.hf(this.De)};
aQa=function(a,b,c,d){var e=this;this.Ja=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.$V("dash");this.B=[];this.u=this.yc=null;this.oa=this.ya=0;this.I=-1;this.T=!1;this.ea=-1;this.yf={lK:function(){return e.C},
d$a:function(){return e.B}};
this.C=new FPa(a,b,c);this.policy.Ba&&(this.Z=new nPa(this.C));this.ac=c.info.ac;this.J=c.Lx();this.isManifestless=c.Lx();this.D=this.J};
lX=function(a,b){b&&eX&&WPa(a.C,b.tK());var c;null!=(c=a.Z)&&(c.jp=[],c.j=-1);a.yc=b};
mX=function(a){return a.yc&&a.yc.BE()};
bQa=function(a,b){a.B.push(b);a.u=g.fb(b.info.Za)};
dQa=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();cQa(a,b);a.ya=b.NR()}a.B.length&&cQa(a,a.B[0])};
cQa=function(a,b){if(b.Bl()){var c=b.Lj();c=g.t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.I&&b instanceof xW&&a.Ja.xa("omblss",{s:yE(d.info)}),eQa(a,b.info.Za,d,b.rK())}};
eQa=function(a,b,c,d){d=void 0===d?0:d;switch(c.info.type){case 1:case 2:fQa(a,c);break;case 4:var e=c.info.j,f=e.EP(c),h;(null==(h=a.u)?0:4===h.type)&&Kta(c.info,a.u)&&(a.u=e.By(a.u).pop());c=g.t(f);for(e=c.next();!e.done;e=c.next())eQa(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.I||(e.I=(0,g.R)(),BQ("fvb",e.I,e.j),BQ("fvb_r",e.I,e.j))):(e=a.timing,e.C||(e.C=(0,g.R)(),BQ("avb",e.C,e.j),BQ("fab_r",e.C,e.j)));NPa(a.C,b,c,d);break;case 6:NPa(a.C,b,c,d),a.u=c.info}};
fQa=function(a,b){if(1===b.info.type)if(b.info.j.info.video){var c=a.timing;c.Ka||(c.Ka=(0,g.R)(),BQ("vis_r",c.Ka,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.R)(),BQ("ais_r",c.Z,c.j));JPa(a.C,b)};
BW=function(a){return GPa(a.C)};
gQa=function(a){var b;return(null==(b=a.Z)?void 0:pPa(b))||[]};
zW=function(a,b,c){c=void 0===c?!1:c;if(a.yc){var d=a.yc.Bg(),e=GF(d,b),f=NaN,h=mX(a);h&&(f=GF(d,h.j.index.getStartTime(h.Na)));if(e===f&&a.u&&a.u.u&&hQa(iQa(a),0))return b}a=jQa(a,b,c);return 0<=a?a:NaN};
AW=function(a,b){a.j.vg();var c=jQa(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.C;if(e.J)if(e=e.J,e.tf&&3===e.tf.type)e=e.tf.startTime;else if(0<e.B){var f=e.j.index;f=g.Ab(f.offsets.subarray(0,f.count),e.B*e.chunkSize);e=e.j.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);a.u=a.j.Cp(b).Za[0];nX(a)&&a.yc&&a.yc.abort();a.oa=0;return a.u.startTime};
kQa=function(a){a.J=!0;a.D=!0;a.I=-1;AW(a,Infinity)};
oX=function(a){for(var b=0,c=g.t(a.B),d=c.next();!d.done;d=c.next())d=d.value,d=d.rd&&d.rd.length?YPa(d.rd):Mta(d.info),b+=d;return b+=PPa(a.C)};
pX=function(a,b){b=void 0===b?!1:b;if(!a.yc)return 0;var c=mX(a);if(c&&sE(c))return c.C;c=a.Ja.getCurrentTime();if(b&&(b=cX(a.C)))return b.info.C-c;a=a.yc.Bg(!0);return sua(a,c)};
lQa=function(a,b,c,d){yW(a);for(var e=a.C,f=null,h=e.u.length-1;0<=h;h--){var l=e.u[h];l.info.Na>=b&&(e.u.pop(),e.B-=RE(l,e.policy.kb),f=l.info)}f&&(e.C=0<e.u.length?e.u[e.u.length-1].info:e.Pa,0!==e.u.length||e.C||HPa(e,"r"));e.Ja.xa("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Na:-1,sq:b,lastslc:e.C?e.C.Na:-1,lastfraget:e.B.toFixed(3)});d>c?AW(a,d):a.u=a.j.Jq(b-1,!1).Za[0]};
rX=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)qX(a,b);else{for(;c<a.B.length;)qX(a,a.B.pop());var d=mQa(a);d&&d.j.Cu()&&Pl(b.info.Za,function(e){return Lta(e,d)})?(a.u=d,a.policy.I&&a.Ja.xa("cer",{lsr:"lsp",
lsp:yE(d)})):(uE(b.info.Za[0])?(a.u=b.rd&&b.rd.B?Jta(b.rd.B):Ita(b.info.Za[0]),a.policy.I&&a.Ja.xa("cer",{lsr:yE(a.u),lsp:null==d?void 0:yE(d)})):(a.u=null,a.policy.I&&a.Ja.xa("cer",{lsr:"null",lsp:null==d?void 0:yE(d)})),a.policy.Ng&&qX(a,b,!0))}};
nX=function(a){var b;!(b="f"===a.j.info.Hb)&&(b=a.policy.u)&&(b=a.C,b=!!b.J&&RW(b.J));if(b)return!0;b=mX(a);if(!b)return!1;var c=sE(b)&&b.cf;return a.isManifestless&&0<a.ea?c||b.Na>=a.ea:c};
nQa=function(a){var b;return nX(a)||!(null==(b=cX(a.C))||!sE(b.info))};
iQa=function(a){var b=[],c=mX(a);c&&b.push(c);b=g.tb(b,a.C.Kr());c=g.t(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.t(d.info.Za),h=f.next();!h.done;e={Rv:e.Rv},h=f.next())e.Rv=h.value,d.SE&&(b=g.vm(b,function(l){return function(m){return!Kta(m,l.Rv)}}(e))),(uE(e.Rv)||4===e.Rv.type)&&b.push(e.Rv)}a.u&&!Dta(a.u,g.fb(b),a.u.j.Bm())&&b.push(a.u);
return b};
hQa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!Eta(a[b-1],a[b]))return!1;return!0};
jQa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=iQa(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.B<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:hQa(a,c?b:0)?a[b].startTime:NaN};
sX=function(a){return!(!a.u||a.u.j===a.j)};
oQa=function(a){return sX(a)&&a.j.vg()&&a.u.j.info.ac<a.j.info.ac};
pQa=function(a,b,c){return(a=mQa(a))&&!sE(a)?a.C>b&&a.C<b+c:!1};
mQa=function(a){var b=cX(a.C);return b?b.info:mX(a)};
yW=function(a){for(var b=g.t(a.B),c=b.next();!c.done;c=b.next())qX(a,c.value);a.B=[];a.u=null};
qX=function(a,b,c){c=void 0===c?!1:c;b.SE&&((void 0===c?0:c)||!b.info.Za[0].j.Cu())&&(a=a.C,a.oa&&!a.policy.Pk&&(c=a.Ja,c.Gb.isManifestless&&gG(c.Gb,a.oa.Na,!!a.I.info.video)),a.oa=null,a.D=null,a.C=a.gb,a.B=a.C?a.B-a.ea:NaN,dX(a));b.dispose()};
qQa=function(a){return!!a.u&&-1!==a.u.Na&&a.u.Na<a.j.index.jm()};
rQa=function(a){var b=a.u;b&&-1===b.Na&&(a=cX(a.C))&&uE(a.info)&&(a=a.info.Na,b.D="updateLastSliceRequested",b.Na=a)};
sQa=function(a){return Pl(a.B,function(b){return b.uy})};
tQa=function(a){a=void 0===a?{}:a;var b=a.Pj,c=a.Xi,d=a.od,e=a.fu;this.vp=a.vp;this.Pj=b;this.Xi=c;this.od=d;this.fu=e};
uQa=function(a,b){if(0>b)return!0;var c=a.od();return b<c||b===c&&!a.vp||b===c&&(a=a.fu())&&b===a.Na?!0:!1};
vQa=function(a,b,c){if(!uQa(a,b))return 0;if(!a.Pj||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.od();return b<c||b===c&&(a=a.fu())&&b===a.Na&&!a.pending?2:1};
tX=function(a,b){var c=b.yh,d=b.iC,e=void 0===b.sA?1:b.sA,f=void 0===b.TF?e:b.TF,h=void 0===b.Uq?!1:b.Uq,l=void 0===b.Qp?!1:b.Qp,m=void 0===b.IJ?!1:b.IJ,n=b.nk,p=b.Na;b=b.Cg;this.callbacks=a;this.requestNumber=++wQa;this.j=this.now();this.ya=this.Pa=NaN;this.Ka=0;this.C=this.j;this.u=0;this.Va=this.j;this.Aa=0;this.Wa=this.Ma=this.isActive=!1;this.B=0;this.ea=NaN;this.J=this.D=Infinity;this.T=NaN;this.Ba=!1;this.Z=NaN;this.I=void 0;this.yh=c;this.iC=d;this.policy=this.yh.ya;this.sA=e;this.TF=f;this.Uq=
h;this.Qp=l;m&&(this.I=[]);this.nk=n;this.Na=p;this.Cg=b;this.snapshot=lH(this.yh);xQa(this);yQa(this,this.j);this.ea=(this.Z-this.j)/1E3};
zQa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
AQa=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.j).toFixed(),lb:a.u,pt:(1E3*a.ea).toFixed(),pb:a.sA,stall:(1E3*a.B).toFixed(),hrt:(a.Pa-a.j).toFixed(),elt:(a.ya-a.j).toFixed(),elb:a.Ka};a.url&&sNa(b,a.url);return b};
DQa=function(a,b,c,d){if(!a.Ma){a.Ma=!0;if(!a.Qp){BQa(a,b,c);CQa(a,b,c);var e=a.yr();if(2===e&&d)uX(a,a.u/d,a.u);else if(2===e||1===e)d=(b-a.j)/1E3,(d<=a.policy.j||!a.policy.j)&&!a.Wa&&vX(a)&&uX(a,d,c),vX(a)&&(d=a.yh,d.j.Vh(1,a.B/Math.max(c,2048)),mH(d));c=a.yh;b=(b-a.j)/1E3||.05;d=a.ea;e=a.Uq;c.I.Vh(b,a.u/b);c.C=hH();e||c.u.Vh(1,b-d)}a.deactivate()}};
CQa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.yr();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&uX(a,.05,e)):uX(a,d,e),a.Wa=!0);else if(EQa(a,c)){if(1===f&&(f=(b-a.j)/1E3,!FQa(a)&&!a.Qp)){var h=a.yh;h.J.Vh(1,f);mH(h)}a.ya=b;a.Ka=c;a.isActive=!0}a.Qp||(Vva(a.yh,d,e),a.iC(d,e));a.C=b;a.u=c};
uX=function(a,b,c){a.Qp||(b=Math.max(b,.05),a=a.yh,a.B.Vh(b,c/b),a.C=hH())};
BQa=function(a,b,c){c=Math.round(c/1024);a.I&&a.I.push(GQa(b-a.Va,c-a.Aa));a.Va=b;a.Aa=c};
HQa=function(a){return a.I?a.I.join(""):""};
EQa=function(a,b){return b?a.jF()?!0:2048<=b:!1};
vX=function(a){return EQa(a,a.u)};
IQa=function(a){return(a.C-a.j)/1E3};
xQa=function(a){a.T=a.j+1E3*a.snapshot.delay;a.Ba=!1};
JQa=function(a,b){if(a.nk&&void 0!==a.Na&&void 0!==a.Cg){var c=Math,d=c.min,e=a.D;var f=a.nk;var h=a.j;if(uQa(f,a.Na))f=b;else{var l=0;f.Pj&&(l=.2);f=h+1E3*(f.Xi+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.J;f=a.nk;h=a.j;l=vQa(f,a.Na,a.Cg);2!==l&&(b=l?b:h+1E3*f.Xi,f.Pj&&(b+=1E3*f.Xi));a.J=d.call(c,e,b);a.D<=a.j?xQa(a):(a.T=a.D,a.Ba=!0)}};
FQa=function(a){a.nk&&JQa(a,a.now());return a.Ba};
yQa=function(a,b){b=void 0===b?a.now():b;if(a.nk){JQa(a,b);if(a.oa?a.jF():a.D!==a.J){var c=a.J;if(b<c){a.Z=a.J;return}}else c=a.D;c=Math.max(c,a.T)}else c=a.T;var d=a.sA-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=vX(a)?d+b:d+Math.max(b,c);a.Z=d};
GQa=function(a,b){for(var c="";4095<a;)c+=GQa(4095,0),a-=4095;for(;4095<b;)c+=GQa(a,4095),b-=4095,a=0;return c+("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))};
KQa=function(a,b){if(b+1<=a.totalLength){var c=lD(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=lD(a,b++);else if(2===c)c=lD(a,b++),a=lD(a,b++),a=(c&63)+64*a;else if(3===c){c=lD(a,b++);var d=lD(a,b++);a=lD(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=lD(a,b++);d=lD(a,b++);var e=lD(a,b++);a=lD(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),jD(a,c,4)?a=Tsa(a).getUint32(c-a.B,!0):(d=lD(a,c+2)+256*lD(a,c+3),a=lD(a,c)+256*(lD(a,c+1)+
256*d)),b+=5;return[a,b]};
wX=function(a){this.callbacks=a;this.j=new fD};
LQa=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.status=0;this.j=new fD;this.B=0;this.isDisposed=this.C=!1;this.D=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.t(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.ly()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.u&&e.j.append(e.u);e.policy.j?e.j.append(f):e.u=f;e.B+=f.length;f=(0,g.R)();10<f-e.D&&(e.callbacks.Gs(f,e.B),e.D=f)},function(){},d.body||null)};
NQa=function(a,b){var c=this;this.j=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=oE(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new fD;MQa(this).then(function(){c.callbacks.fq()},function(d){c.error=""+d||"unknown_err";
c.callbacks.fq()})};
MQa=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,w,x,z;return g.A(function(B){if(1==B.j){a.status=200;b=a.j.get("docid");c=oe(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new qPa(a.j.get("ck"),a.j.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(5!=B.j)return n<=m?g.y(B,zAa(b,c,d,n,f),5):B.Ia(0);p=B.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;r=(n+1)*e;
w=Math.max(0,h.start-q);x=Math.min(h.end+1,r)-(w+q);z=new Uint8Array(p.buffer,w,x);a.u.append(z);a.loaded+=x;a.loaded<h.length&&a.callbacks.Gs((0,g.R)(),a.loaded);n++;return B.Ia(2)})};
PQa=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.Z=d;this.status=0;this.response=void 0;this.T=this.u=0;this.I=this.J=!1;this.errorMessage="";this.oa=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.Go=f.body.getReader(),e.isDisposed()?e.Go.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.Wu(),OQa(e));
else e.onDone()};
this.ea=function(f){var h=(0,g.R)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.Go=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.policy.j?e.j.append(f):e.C=f,OQa(e),f=(0,g.R)(),10<f-e.T&&(e.T=f,e.callbacks.Gs(h,e.u))))};
this.onError=function(f){e.errorMessage=String(f);e.J=!0;e.onDone()};
this.j=new fD;this.B=window.AbortController?new AbortController:void 0;this.start(a)};
OQa=function(a){a.Go.read().then(a.ea,a.onError).then(void 0,$w)};
QQa=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.u=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.t(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.ly(f)};
a=g.vv(function(f){d.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",g.vv(function(f){d.De(f)}),!1)};
RQa=function(a,b,c,d,e){if(aD(a.hj))return new NQa(a,c);a=a.Se();return d?tsa()?new LQa(a,b,c,e):new PQa(a,b,c,e):new QQa(a,c,e)};
xX=function(a,b,c,d,e,f,h){g.E.call(this);this.callbacks=a;this.policy=b;this.We=c;this.B=d;this.timing=e;this.logger=f;this.C=h;this.lastError=null;this.u=0;this.j=new g.Zn(this.X5,this.policy.xd,this)};
SQa=function(a){a.B.J=(0,g.R)();a=yX(a);a.u=(0,g.R)();a.started+=1};
zX=function(a){if("net.timeout"===a.lastError){var b=a.timing,c=(0,g.R)();if(!b.Qp){BQa(b,c,1024*b.Aa);var d=(c-b.j)/1E3;if(2!==b.yr())if(vX(b)){b.B+=(c-b.C)/1E3;var e=b.yh,f=b.u;f=Math.max(f,2048);e.j.Vh(1,b.B/f);mH(e)}else FQa(b)||b.Qp||(e=b.yh,e.J.Vh(1,d),mH(e)),b.ya=c;e=b.yh;f=b.ea;var h=b.Uq;e.I.Vh(d,b.u/d);e.C=hH();h||e.u.Vh(1,d-f);Vva(b.yh,(c-b.C)/1E3,0)}}"net.nocontent"!==a.lastError?((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!aD(a.We.hj)?(c=
yX(a),c.timedOut+=1):(c=yX(a),c.j+=1),a.timing.u||(c=a.B,d=a.We,e=a.policy,f=a.C,++c.u,b&&++c.D,$C(d.hj).startsWith("redirector.")&&(c.j=c.B.clone(),delete c.C,e.cw&&delete f[$C(c.j)]))):++a.B.I;a.callbacks.Fc(5)};
TQa=function(a,b,c){return 400<=b.status?(a.lastError="net.badstatus",!0):b.eC()||void 0!==c&&c?!1:(a.lastError=204===b.status?"net.nocontent":"net.connect",!0)};
yX=function(a){return fE(a.C,$C(a.We.hj))};
UQa=function(a){var b=AQa(a.timing);b.shost=$C(a.We.hj);return b};
WQa=function(a,b){NI(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(MI(a,112),MI(a,c<<1^c>>31));NI(a,16,b.L1);NI(a,18,b.I_);NI(a,19,b.H_);NI(a,21,b.w6);NI(a,23,b.v_);NI(a,28,b.H5);NI(a,34,b.visibility);RI(a,38,b.mediaCapabilities,VQa,3);NI(a,39,b.K6);NI(a,40,b.vR);OI(a,46,b.Z_)};
XQa=function(a){for(var b=[];GI(a,2);)b.push(FI(a));return{ZI:b.length?b:void 0,videoId:JI(a,3),mO:HI(a,4)}};
VQa=function(a,b){var c;if(b.lO)for(c=0;c<b.lO.length;c++)RI(a,1,b.lO[c],YQa,1);if(b.YI)for(c=0;c<b.YI.length;c++)RI(a,2,b.YI[c],ZQa,1)};
ZQa=function(a,b){NI(a,1,b.u_);NI(a,2,b.numChannels);NI(a,3,b.T1)};
YQa=function(a,b){NI(a,1,b.h7);NI(a,3,b.U1);NI(a,4,b.V1);NI(a,11,b.maxFramerate);NI(a,12,b.T1)};
bRa=function(a){return{B5:HI(a,1),itag:JI(a,3),IU:fAa(a,4,$Qa),lmt:HI(a,5),G9a:HI(a,7),xtags:JI(a,15),f2:fAa(a,23,aRa)}};
$Qa=function(a){return{iv:II(a,5),E1:eAa(a,7)}};
aRa=function(a){return{videoId:JI(a,2)}};
dRa=function(a,b){RI(a,2,b.UD,WQa,3);RI(a,3,b.VK,cRa,3);PI(a,4,b.onesieUstreamerConfig);PI(a,9,b.SC)};
cRa=function(a,b){PI(a,2,b.encryptedOnesieInnertubeRequest);PI(a,5,b.encryptedClientKey);PI(a,6,b.iv);PI(a,7,b.hmac);OI(a,10,b.serializeResponseAsJson);OI(a,13,b.enableAdPlacementsPreroll);OI(a,14,b.enableCompressionResponseOnly);PI(a,16,b.unencryptedOnesieInnertubeRequest)};
eRa=function(a,b){QI(a,1,b.name);QI(a,2,b.value)};
fRa=function(a,b){QI(a,1,b.url);var c;if(b.httpHeaders)for(c=0;c<b.httpHeaders.length;c++)RI(a,2,b.httpHeaders[c],eRa,3);PI(a,3,b.postBody);OI(a,4,b.proxiedByTrustedBandaid);OI(a,6,b.skipResponseEncryption)};
gRa=function(a){return{onesieProxyStatus:HI(a,1),httpStatus:HI(a,2),body:II(a,4)}};
BX=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.VB?[]:h.VB;var l=void 0===h.DC?!1:h.DC,m=void 0===h.Mt?0:h.Mt,n=void 0===h.poToken?"":h.poToken,p=void 0===h.Xu?void 0:h.Xu;h=void 0===h.cC?"":h.cC;gX.call(this,b,e);var q=this;this.policy=a;this.logger=new g.$V("dash/request");this.Xw=this.Tg=0;this.tV=!1;this.Lp=this.oo=null;this.jW=this.iW=this.zS=!1;this.yf={Fc:function(r){q.Fc(r)},
j$a:function(){return q.rd},
jab:function(r){q.rd=r},
iab:function(r){q.Tg=r},
hab:function(r){q.Cd.lastError=r},
vK:function(){return q.xhr}};
this.timing=new tX(this,c);this.DC=l;this.We=g.DE(this.info,this.policy,d);this.We.set("rn",this.IE().toString());this.We.set("rbuf",(1E3*m).toFixed().toString());this.DC&&this.We.set("smb","1");this.policy.hp&&n&&this.We.set("pot",n);h&&this.We.set("bbs",h);this.policy.useUmp&&!aD(this.We.hj)&&(this.bj=new wX(this),this.We.set("ump","1"),this.We.set("srfvp","1"));this.Cd=new xX(this,this.policy,this.We,this.info.j,this.timing,this.logger,d);this.VB=f||null;this.Xu=p;this.uy=hRa(this);SQa(this.Cd);
a=void 0;if(this.policy.Fn||this.bj||this.policy.Xa){a={method:"POST"};b=(0,g.AX)([120,0]);if(this.bj||this.policy.Fn)a.body=b;this.policy.Xa&&(a.body=this.info.uu()||b)}try{this.xhr=RQa(this.We,this.policy.C,this.timing,this.policy.Pa?this.policy.yw&&!isNaN(this.info.Cg)&&this.info.Cg>this.policy.jz?!1:!0:!1,a),this.Cd.j.start(),g.hf(function(){})}catch(r){iRa(this,r,!0)}};
hRa=function(a){if(!(CE(a.info)&&a.info.Uq()&&a.policy.jd&&a.VB)||2<=a.info.j.u||0<kG()||!cva())return!1;var b=a.We.get("aitags");if(!b)return!1;b=oe(b).split(",");for(var c=[],d=g.t(a.VB),e=d.next();!e.done;e=d.next())e=e.value,g.nb(b,e)&&c.push(e);if(!c.length)return!1;a.We.set("altitags",g.ne(c.join(",")));return!0};
iRa=function(a,b,c){c=void 0===c?!1:c;g.rA(b);a.Cd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.hf(function(){zX(a.Cd)}):zX(a.Cd)};
jRa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.CA();c=!c||c<=a.policy.Ql;return(!a.xhr.Py()||!b||-1!==b.indexOf("text/plain"))&&c};
kRa=function(a,b,c,d){var e=a.Hr();if(a.isComplete()||!e||iE(a.info.j,b,c))return 0;var f=b.un;if(!d&&f&&e>=f)return 1;d=b.Rf;if(!d||e<d)return 0;a=fE(c,jE(a.info.j,!0,b));return a.j||a.timedOut||a.started?0:2};
lRa=function(a,b,c){if(!(b.qn&&a.isComplete()&&a.canRetry()&&iE(a.info.j,b,c)))return 0;a=fE(c,jE(a.info.j,!1,b));return a.u+b.qn*xta(a,b,!0)>(0,g.R)()?0:1};
CX=function(a,b,c,d,e,f,h,l,m,n,p,q){g.E.call(this);this.Ja=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.C=e;this.u=f;this.timing=h;this.I=l;this.schedule=m;this.j=n;this.D=p;this.oa=q;this.ya=!1;this.cC="";this.nk=null;this.T=0;this.Cg=NaN;this.ea=!1;this.B=null;this.Z=NaN;this.J=0;this.logger=new g.$V("dash");0<this.policy.Qk&&(this.cC=g.xA(this.policy.Qk))};
qRa=function(a,b,c){var d=b.u?b.u.j.u:b.j.u;var e=a.policy,f=a.C,h;if(h=!e.Zv)h=$C(d.j)===$C(d.B);h?d=!1:(f=fE(f,$C(d.B)),e=6E4*Math.pow(f.C,e.Gd),(0,g.R)()<f.u+e?d=!1:(f.u=(0,g.R)(),f.C+=1,d.j=d.B.clone(),d=!0));d&&a.Ja.xa("remapHost",{},!0);if(mRa(a,b,c)){if(b.J)a.j.isLive?(c=a.j.Be&&a.j.B?b.j.Jq(a.j.Be,!1):b.j.Cp(Infinity),c.Cg=a.Cg):c=b.j.Jq(0,!1),a.oa?0===c.Cg&&(c.D=a.oa.T):c.D=a.Z;else if(d=b.u,d.j.vg()){e=d.C-a.Ja.getCurrentTime();h=!d.range||0===d.u&&0===d.Nb?0:d.range.length-(d.Nb+d.u);f=
d.j;if(sX(b)&&b.j.vg()){var l=Math.min(15,.5*nRa(a.Ja,b,!0));l=oQa(b)||e<=l||a.D.T}else l=!1;l&&0===h&&(a.j.isManifestless?f=b.j:(f=d.startTime+oRa,d.u&&(f+=d.duration),AW(b,f),d=b.u,f=d.j));f.Bm()?(h=a.D,e=uW(a.I,f.info.ac,c.j.info.ac,e,0<h.C.length&&0===h.videoIndex&&a.Ja.mB),c=d,f=sX(b),d=c.j.ow(c,e),(e=d.B)&&1<d.Za.length&&(f||d.j.u||d.Za[0].j!==c.j?d=c.j.ow(c,d.Za[0].u):(f=d.Za[d.Za.length-1],h=f.u/e,!f.cf&&.4>h&&(d=c.j.ow(c,e-f.u)))),c=d):(0>d.Na&&(c=xE(d),c.pr=""+b.B.length,a.Ja.Rg()&&(c.sk=
"1"),c.snss=d.D,a.Ja.xa("nosq",c)),c=f.Iz(d));if(a.policy.Z)for(d=g.t(c.Za),e=d.next();!e.done;e=d.next())e.value.type=6}else d.j.Bm()?(c=uW(a.I,b.j.info.ac,c.j.info.ac,0),c=d.j.ow(d,c)):c=d.j.Iz(d);if(a.B){e=c.Za[0].j.info.id;d=a.u;f=c.Za[0].Na;d=0>f&&!isNaN(d.B)?d.B:f;f=$Oa(a.u,c.Za[0].B,d);h=b===a.audioTrack?1:2;var m=c.Za[0].j.info.Hb;l=e.split(";")[0];if(a.policy.Xa&&0!==a.u.j)e=a.B.uu(f,d,e,h,m),0>d&&2===h&&FW(a.u,0,0,!0),e&&(a.Ja.xa("sdai",{ssdaiinfo:"1",length:e.length,itag:l,f:m,sg:d,st:f.toFixed(3)}),
c.J=e);else if(e=a.B.Sn(f,d,e,h,m),0>d&&2===h&&FW(a.u,0,0,!0),e){f={dec_sq:d,itag:l,st:f.toFixed(3)};if(a.policy.Cw&&b.isRequestPending(d-1)){a.Ja.xa("sdai",{wt_daistate_on_sg:d-1});return}a.Ja.xa("sdai",f);e&&(c.u=new g.YC(e))}else 5!==a.u.j&&a.Ja.xa("sdai",{nodec_sq:d,itag:l,st:f.toFixed(3)})}a.policy.wj&&-1!==c.Za[0].Na&&c.Za[0].Na<a.j.Be&&(c=b.j.Jq(a.j.Be,!1));bQa(b,pRa(a,c));YOa(a.timing)}};
mRa=function(a,b,c){var d;var e=a.u,f=(null==(d=b.u)?void 0:d.Na)||-1;3===e.j&&f+1>=e.J?(e.xa("sdai",{haltrq:f+1,est:e.J}),d=!1):d=2!==e.j;if(!d||!zta(b.u?b.u.j.u:b.j.u,a.policy,a.C)||a.Ja.isSuspended&&(!Wva(a.schedule)||a.Ja.dE))return!1;if(a.policy.u&&5<=bJ)return g.$n(a.Ja.sF),!1;if(a.j.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Na||b.B.length>=a.policy.Hl||!a.policy.Xv&&0<b.B.length&&!a.policy.C.Pj)return!1;if(b.J)return!a.j.isLive||!isNaN(a.Cg)}if(sQa(b))return!1;if(!b.u){if(!b.j.vg())return!1;
AW(b,a.Ja.getCurrentTime())}e=(d=a.policy.Xe)&&!b.B.length&&pX(b,!0)<Math.min(d,pX(c));d=b.B.length+c.B.length;(e||b.B.length&&b.B[0].Du()||c.B.length&&c.B[0].Du()||a.j.isLive)&&--d;if(d+1>=a.policy.Pl)return!1;d=b.u;if(!d)return!0;4===d.type&&d.j.vg()&&(b.u=g.fb(d.j.By(d)),d=b.u);if(!sE(d)&&!d.j.Iq(d))return!1;f=a.j.Ne||a.j.B;if(a.j.isManifestless&&f){f=b.j.index.od();var h=c.j.index.od();f=Math.min(f,h);if(0<b.j.index.zE()&&0<f&&d.Na>=f)return b.ea=f,c.ea=f,!1}if(d.j.info.audio&&4===d.type)return!1;
if(oQa(b)&&!a.policy.dc)return!0;if(sE(d)||oX(b)&&oX(b)+oX(c)>a.policy.Ec)return!1;f=!b.D&&!c.D;if(e=!e)e=d.C,e=!!(c.u&&!sE(c.u)&&c.u.C<e);h=b===a.videoTrack&&a.policy.Z;return e&&(!a.j.isManifestless||c.u&&c.u.C&&d.C)&&f&&!h||a.policy.Rb&&!b.D&&c.D?!1:uE(d)&&d.C>rRa(a,b)?(rRa(a,b),!1):(a=b.yc)&&a.isLocked()?!1:!0};
rRa=function(a,b){var c=a.u;c=c.u?c.u.Bf:null;if(a.policy.Z&&c)return c.startSecs+c.durationSecs+15;b=nRa(a.Ja,b,!0);!OW(a.Ja.xe)&&0<a.policy.Wa&&(c=((0,g.R)()-a.T)/1E3,b=Math.min(b,a.policy.Wa+a.policy.lf*c));b=a.Ja.getCurrentTime()+b;return a.policy.jn&&(c=sRa(a)+a.policy.jn,c<b)?(a.Ja.xa("mrl",{ori:b,mod:c},!0),a.policy.Zy&&(a.T=(0,g.R)()),c):b};
sRa=function(a){var b=a.Ja.gm().filter(function(d){return"ad"===d.namespace});
b=g.t(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.Ja.getCurrentTime())return c.start/1E3;return Infinity};
tRa=function(a,b,c){if(0!==c){a:if(b=b.info,c=2===c,b.u)b=null;else{var d=b.Za[0];if(b.range)var e=pE(b.range.start,Math.min(4096,b.B));else{if(b.C&&0<=b.C.indexOf("/range/")||"1"===b.j.B.get("defrag")||"1"===b.j.B.get("otf")){b=null;break a}e=pE(0,4096)}e=new AE([new rE(5,d.j,e,"createProbeRequestInfo"+d.D,d.Na)],b.C);e.I=c;e.u=b.u;b=e}b&&pRa(a,b)}};
pRa=function(a,b){uRa(a.Ja,b);var c=Mta(b);c={yh:a.schedule,sA:c,TF:OOa(a.I,c),Uq:tE(b.Za[0]),Qp:aD(b.j.j),IJ:a.policy.I,iC:function(e,f){a.Ja.hC(e,f)}};
a.nk&&(c.Na=b.Za[0].Na,c.Cg=b.Cg,c.nk=a.nk);var d={Mt:Nta(b,a.Ja.getCurrentTime()),VB:a.policy.jd&&CE(b)&&b.Za[0].j.info.video?mPa(a.D):void 0,DC:a.policy.Z,poToken:a.Ja.sK(),Xu:a.Ja.LA(),cC:a.cC};return new BX(a.policy,b,c,a.C,function(e,f){try{a:{var h=e.info.Za[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.Hr()||!(!a.Ja.mediaSource||a.Ja.isSuspended||3<pX(l))){var m=kRa(e,a.policy,a.C,a.ea);1===m&&(a.ea=!0);tRa(a,e,m);if(e.isComplete()||e.isDisposed()&&3>f){if(a.policy.Ac){var n=
Object.assign(AQa(e.timing),{rst:e.state,strm:e.xhr.Py(),d:HQa(e.timing)});a.Ja.xa("rqs",n)}e.tV&&a.Ja.xa("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var p=a.timing,q=e.info.Za[0].j,r=!p.J&&q.info.video,w=!p.u&&q.info.audio;3===e.state?r?p.tick("vrr"):w&&p.tick("arr"):4===e.state?r?(p.J=e.Se(),g.Pw(),Rw(4)):w&&(p.u=e.Se()):e.Du()&&r&&(g.Pw(),Rw(4));if(3===e.state){rX(l,e);CE(e.info)&&DX(a,l,h,!0);if(a.B){var x=e.info.Sn();x&&a.B.ek(e.info.Za[0].Na,h.info.id,x)}a.Ja.Uj()}else if(e.isComplete()&&
5===e.info.Za[0].type){if(4===e.state){var z=(e.info.Za[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;z&&z instanceof BX&&z.Hr()&&z.UG(!0)}e.dispose()}else{if(!e.isFailed()&&e.uy&&2<=e.state&&3!==e.state){var B=e.xhr.getResponseHeader("X-Response-Itag");if(B){var C=lPa(a.D,B),G=e.info.B;if(G){var F=G-C.mK();C.D=!0;e.info.Za[0].j.D=!1;var K=C.Gr(F);e.info=K;if(e.rd){var L=e.rd,N=K.Za;(N.length!==L.Za.length||N.length<L.le.length)&&BOa("dash/request",260511119,""+N.length,""+L.Za.length,""+
L.le.length);L.Za=N;var ba=N[0].range,T=new fD;for(f=0;f<L.le.length;f++)gD(T,L.le[f].j);for(f=0;f<L.le.length;f++){L.le[f].info=N[f];var S=N[f].range;L.le[f].j=hD(T,S.start-ba.start,S.length);delete L.le[f].B}}e.uy=!1;var ea=a.videoTrack;ea.j!==C&&(ea.j=C);var Q=a.videoTrack;Q.u&&(Q.u.j=C);a.Ja.oM(C.info.video.quality);var sa=e.rK();sa&&C.info.lastModified&&C.info.lastModified!==+sa&&rX(a.videoTrack,e)}}else e.uy=!1}if(4===e.state)vRa(a,e),a.u&&ZOa(a.u,e.info,a.B);else if(a.policy.Pa&&e.Bl()&&!e.isComplete()&&
!vRa(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Mr(e);a.Ja.Uj();var ha=lRa(e,a.policy,a.C);tRa(a,e,ha)}}}}}catch(ta){C=a.ya?1:0,a.ya=!0,e=dI(C),C=eI(ta,C),a.Ja.handleError(C.errorCode,C.details,C.severity),e||a.Ja.Yj()}},d)};
vRa=function(a,b){if(a.policy.useUmp&&b.isDisposed())return!1;try{var c=b.info.Za[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.j.isManifestless&&d){a.J=0;d.J&&(b.isDisposed(),b.isComplete()||b.Bl(),d.J=!1);b.cK()&&a.Ja.VD.Vh(1,b.cK());var e=b.zE(),f=b.RR(),h=a.j,l;for(l in h.j){var m=h.j[l].index;m.Yl&&(e&&(m.oo=Math.max(m.oo,e)),f&&(m.Lp=Math.max(m.Lp||0,f)))}}if(b.info.Uq()&&!BE(b.info))for(var n=g.t(b.Lj()),p=n.next();!p.done;p=n.next())fQa(d,p.value);dQa(d,a.Ja.getCurrentTime());var q=!!BW(d);
if(q&&b instanceof xW)if(c.info.ym()){var r=a.timing;r.ya||(r.ya=(0,g.R)(),BQ("oafs_rp",r.ya,r.j))}else{var w=a.timing;w.Aa||(w.Aa=(0,g.R)(),BQ("ovfs_rp",w.Aa,w.j))}return q}catch(x){return b=b.Ar(),b.origin="hrhs",wRa(a.Ja,x,b),!1}};
xRa=function(a){var b=a.videoTrack.j.index;a.nk=new tQa({vp:a.policy.vp,Pj:a.policy.C.Pj,Xi:b.Xi,od:function(){return b.od()},
fu:function(){return b.fu()}})};
DX=function(a,b,c,d){if(!(c.vg()||c.Px()||c.D||!zta(c.u,a.policy,a.C)||"f"===c.info.Hb||a.policy.Ba)){if(d){d=a.I;var e=c.info;d=POa(d,e.video?d.policy.Gn:d.policy.nj,e.ac)}else d=0;d=c.Gr(d);a=pRa(a,d);BE(d)&&bQa(b,a);c.D=!0}};
EX=function(a){this.u={};this.logger=new g.$V(a)};
yRa=function(a){return(a.videoId||"")+";"+a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")};
ARa=function(a,b){var c=[];b=g.t(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=zRa[d]||0;a.j&&e>a.j||c.push(d)}return c};
DRa=function(a,b,c){b.push.apply(b,g.u(BRa[a]||[]));c.N("html5_early_media_for_drm")&&b.push.apply(b,g.u(CRa[a]||[]))};
IRa=function(a,b){var c=FJ(a),d=a.V().B;if(FX&&!d.j)return FX;for(var e=[],f=[],h={},l=g.t(ERa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.t(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=FRa(p);!q||!q.video||oF(q)&&!c.Ba&&q.video.j>c.C||(n?(e.push(p),DRa(p,e,a)):(q=MC(c,q,d),!0===q?(n=!0,e.push(p),DRa(p,e,a)):h[p]=q))}}l=g.t(GRa);for(n=l.next();!n.done;n=l.next())for(n=g.t(n.value),p=n.next();!p.done;p=n.next())if(m=p.value,(p=HRa(m))&&p.audio&&(a.N("html5_onesie_51_audio")||!VC(p)&&
!UC(p)))if(p=MC(c,p,d),!0===p){f.push(m);DRa(m,f,a);break}else h[m]=p;c.B&&b("orfmts",h);FX={video:e,audio:f};d.j=!1;return FX};
FRa=function(a){var b=lF[a],c=JRa[b],d=KRa[a];if(!d||!c)return null;var e=new YE(d.width,d.height,d.fps);c=XF(c,e,b);return new mF(a,c,{video:e,ac:d.bitrate/8})};
HRa=function(a){var b=JRa[lF[a]],c=LRa[a];return c&&b?new mF(a,b,{audio:new VE(c.audioSampleRate,c.numChannels)}):null};
MRa=function(a,b){RI(a,1,b.formatId,GX,3);NI(a,2,b.startTimeMs);NI(a,3,b.durationMs);NI(a,4,b.v6);NI(a,5,b.JJ)};
GX=function(a,b){NI(a,1,b.itag);NI(a,2,b.lmt);QI(a,3,b.xtags)};
NRa=function(a,b){PI(a,3,b.playbackCookie)};
ORa=function(a,b){RI(a,1,b.UD,WQa,1);var c;if(b.QK)for(c=0;c<b.QK.length;c++)RI(a,2,b.QK[c],GX,3);if(b.jp)for(c=0;c<b.jp.length;c++)RI(a,3,b.jp[c],MRa,3);PI(a,5,b.videoPlaybackUstreamerConfig);if(b.dN)for(c=0;c<b.dN.length;c++)RI(a,16,b.dN[c],GX,3);if(b.eN)for(c=0;c<b.eN.length;c++)RI(a,17,b.eN[c],GX,3);RI(a,19,b.z6,NRa,3)};
PRa=function(a){EX.call(this,"sabr");this.callbacks=a};
HX=function(a){g.E.call(this);var b=this;this.C=a;this.logger=new g.$V("onesie");this.Hd=new Map;this.B=!1;this.u=this.j=null;this.yf={k$a:function(c){var d;return null==(d=b.Hd.get(c))?void 0:d.rd}}};
jX=function(a,b){return a.Hd.has(b)};
QRa=function(a,b){return(a=a.Hd.get(b))?a.wB:[]};
$Pa=function(a,b,c){a.Hd.get(b).De=c};
IX=function(a,b){jX(a,b)&&(a.Hd.get(b).le=new fD,RRa(a,b))};
SRa=function(a){for(var b=g.t(a.Hd),c=b.next();!c.done;c=b.next()){var d=g.t(c.value);c=d.next().value;d=d.next().value;d.De||IX(a,c)}};
JX=function(a,b){b=a.Hd.get(b);if(!b)return 0;a=0;if(0<b.Za.length){b=g.t(b.Za);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=(null==(d=c.value.range)?void 0:d.length)||0}return a}if(0<b.wB.length)for(c=g.t(b.wB),d=c.next();!d.done;d=c.next())a+=d.value.Io||0;return a+b.GS};
kX=function(a,b){var c;return!(null==(c=a.Hd.get(b))||!c.le.totalLength)};
ZPa=function(a,b){var c=a.Hd.get(b),d=JX(a,b),e=!d&&!!c.bytesReceived;b=a.Eh(b);return e&&a.B&&void 0!==b?b:(e||c.bytesReceived===d)&&c.JD+c.le.totalLength===c.bytesReceived};
TRa=function(a,b){a=a.Hd.get(b);return a.Eg&&!a.le.totalLength};
URa=function(a,b,c,d){c.Za.push.apply(c.Za,g.u(d));if(c.rd){a=g.t(d);for(var e=a.next();!e.done;e=a.next())b=void 0,d=c.rd,e=e.value,d.Za.push(e),d.length+=(null==(b=e.range)?void 0:b.length)||0}else c.rd=new hX(a.u,[].concat(g.u(c.Za)),JX(a,b))};
VRa=function(a,b,c){var d,e=null==(d=a.j)?void 0:d.ya.get(b);if(!e)return[];if(c.Am){var f;return(null==(f=e.Gr(0))?void 0:f.Za)||[]}if(e.Bm())return 0>c.yv||0>c.nq||0>c.durationMs||0>c.startMs||0>c.Io?(IX(a,b),[]):[new rE(3,e,pE(c.yv,c.Io),"makeSliceInfosMediaBytes",c.nq-1,c.startMs/1E3,c.durationMs/1E3)];if(0>c.nq)return IX(a,b),[];var h;return(null==(h=a.j)?0:h.Pd)?(a=e.Nj,[new rE(3,e,void 0,"makeSliceInfosMediaBytes",c.nq,void 0,a,void 0,a*e.info.ac)]):[]};
WRa=function(a,b,c){a.j=b;a.u=c;b=g.t(a.Hd);for(c=b.next();!c.done;c=b.next()){var d=g.t(c.value);c=d.next().value;d=d.next().value;for(var e=g.t(d.pV),f=e.next();!f.done;f=e.next())f=VRa(a,c,f.value),URa(a,c,d,f)}};
XRa=function(a,b,c){(a=a.Hd.get(b))&&!a.Eg&&(gD(a.le,c),a.bytesReceived+=c.totalLength,a.GM=!0)};
RRa=function(a,b){if((b=a.Hd.get(b))&&!b.Eg){b.Eg=!0;b.De&&b.De();a:{b=g.t(a.Hd.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.Eg){b=!1;break a}b=!0}b&&a.C.JT()}};
YRa=function(a,b,c,d,e,f){g.E.call(this);this.policy=a;this.info=b;this.callbacks=e;this.logger=new g.$V("sabr");this.bj=new wX(this);this.d6=new PRa(this);this.Te=new HX(this);this.state=1;this.nV=!1;this.zk=new tX(this,f);e=this.policy;f=void 0===b.u?iE(b.j,e,d):b.u;e=yta(b.j,f,e);b.Fu()&&e.set("probe","1");this.We=e;this.We.set("rn",""+this.IE());WRa(this.Te,c,a);this.Cd=new xX(this,this.policy,this.We,b.j,this.zk,this.logger,d);SQa(this.Cd);a={method:"POST"};a.body=b.B;try{this.xhr=RQa(this.We,
this.policy.C,this.zk,HJ,a),this.Cd.j.start()}catch(h){g.sA(h)}};
aSa=function(a,b,c,d,e){e=void 0===e?0:e;var f={},h=kG(0);h&&(f.L1=h,f.lastManualDirection=Zua(),h=kra()||0,0<h&&(f.timeSinceLastManualFormatSelectionMs=(0,g.R)()-h));f.w6=kG();a.schedule.T&&(f.v_=kH(a.schedule,!0));h=g.RH();f.I_=c.width*h;f.H_=c.height*h;f.visibility=d;f.K6=fz();a.N("html5_onesie_media_capabilities")&&(f.vR=3);a.N("html5_onesie_audio_only_playback")&&EJ(b)&&(f.vR=1);if(a.N("html5_onesie_media_capabilities")){b=FJ(b);c=a.B;d=[];h=[];for(var l=g.t(ERa),m=l.next();!m.done;m=l.next()){m=
g.t(m.value);for(var n=m.next();!n.done;n=m.next()){n=n.value;var p=FRa(n);if(p&&p.video&&!0===MC(b,p,c)){d.push({h7:ZRa[lF[n]],V1:p.video.width,U1:p.video.height,maxFramerate:p.video.fps});break}}}l=g.t(GRa);for(m=l.next();!m.done;m=l.next())for(m=g.t(m.value),n=m.next();!n.done;n=m.next())if(n=n.value,(p=HRa(n))&&p.audio&&(a.N("html5_onesie_51_audio")||!VC(p)&&!UC(p))&&!0===MC(b,p,c)){h.push({u_:$Ra[lF[n]],numChannels:p.audio.numChannels});break}f.mediaCapabilities={lO:d,YI:h}}a.N("html5_prefer_drc")&&
(f.Z_=!0);0<e&&(f.H5=1E3*e);return f};
bSa=function(a,b,c,d,e){e=void 0===e?!1:e;var f=b.wj,h="https://web.archive.org/web/20230104105643/https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.UK&&d||(h=h+"?key="+f.innertubeApiKey);f=[{name:"Content-Type",value:"application/json"}];d&&f.push({name:"Authorization",value:"Bearer "+d});f.push({name:"User-Agent",value:g.Wb()});g.O("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.O("EOM_VISITOR_DATA")}):(c=c.visitorData||g.O("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=CG(b.experiments,
"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=Ysa(JSON.stringify(a));return{url:h,httpHeaders:f,postBody:a,proxiedByTrustedBandaid:e,skipResponseEncryption:e}};
dSa=function(a,b,c,d,e,f,h,l){var m=SI(a,fRa),n={encryptedClientKey:b.j.encryptedClientKey,serializeResponseAsJson:!0,enableAdPlacementsPreroll:!0,enableCompressionResponseOnly:cSa(c,!!a.skipResponseEncryption)};a.skipResponseEncryption?n.unencryptedOnesieInnertubeRequest=m:(a=b.encrypt(m),n.encryptedOnesieInnertubeRequest=a,(0,g.R)(),a=Lva(new Kva(b.j.B),a,b.iv),n.hmac=a,n.iv=b.iv);b=aSa(c,d,e,f);return{VK:n,UD:b,onesieUstreamerConfig:h,SC:l}};
gSa=function(a,b,c){var d,e,f;return g.A(function(h){if(1==h.j)return d=SI(b,fRa),g.y(h,eSa(c,d),2);if(3!=h.j)return e=h.u,g.y(h,fSa(c,e),3);f=h.u;return h.return({encryptedOnesieInnertubeRequest:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,hmac:f,serializeResponseAsJson:!0,enableAdPlacementsPreroll:!0,enableCompressionResponseOnly:cSa(a,!!b.skipResponseEncryption)})})};
hSa=function(a,b,c,d,e,f,h,l){var m,n;return g.A(function(p){if(1==p.j)return g.y(p,gSa(c,a,b),2);m=p.u;n=aSa(c,d,e,f);return p.return({VK:m,UD:n,onesieUstreamerConfig:h,SC:l})})};
cSa=function(a,b){a=kH(a.schedule,!0);b=b||!!QG()&&1572864<a;return"DecompressionStream"in window||!b};
iSa=function(a,b,c,d,e,f,h,l,m,n){this.requestType=a;this.C=b;this.videoData=c;this.I=d;this.visibilityState=e;this.D=f;this.T=h;this.currentTime=l;this.nextRequestPolicy=m;this.J=n;this.B=null;if(!this.Fu()){a=aSa(b,c,d,e,l);m={playbackCookie:null==m?void 0:m.playbackCookie};b=(b=null==n?void 0:n.audio)?[lE(b,f.Pd)]:[];n=(n=null==n?void 0:n.video)?[lE(n,f.Pd)]:[];if(c.vO)var p=c.vO;this.B=SI({UD:a,QK:f.Ka,jp:h,dN:b,eN:n,videoPlaybackUstreamerConfig:p,z6:m},ORa)}this.j=f.Ma};
KX=function(a,b){g.E.call(this);this.j=a;this.B=b;this.iv=(0,g.AX)(wA(16))};
eSa=function(a,b){var c;return g.A(function(d){(0,g.R)();c=Rva(a.j);return d.return(c.encrypt(b,a.iv))})};
fSa=function(a,b){var c;return g.A(function(d){(0,g.R)();var e=a.j;e.C||(e.C=new Mva(e.B));c=e.C;return d.return(Pva(c,b,a.iv))})};
jSa=function(a,b,c){var d;return g.A(function(e){(0,g.R)();d=Rva(a.j);return e.return(d.decrypt(b,c))})};
kSa=function(a){this.yl=a;this.u=!1;this.j=[]};
mSa=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.HN;if(b=b.buffer)lSa(a.yl.me,c,b);else if(b=a.yl,b.j[c].vS=!0,b=LX(b.me,c),null==b?0:jX(b,c))null==b||RRa(b,c)}};
g.pSa=function(a){this.data=a;this.j=0;this.C=!1;this.B=0;this.error=!1;this.register=this.u=0;if(0===MX.length){MX.length=288;MX.fill(8);for(a=144;280>a;a++)MX[a]=255>=a?9:7;nSa.length=32;nSa.fill(5);NX.length=286;NX.fill(0);for(a=261;285>a;a++)NX[a]=Math.floor((a-261)/4);OX[257]=3;for(a=258;285>a;a++){var b=OX[a-1];b+=1<<NX[a-1];OX[a]=b}OX[285]=258;for(a=0;30>a;a++)oSa[a]=3>=a?0:Math.floor((a-2)/2);for(a=PX[0]=1;30>a;a++)b=PX[a-1],b+=1<<oSa[a-1],PX[a]=b}a=100+7*this.data.length;31===this.data[0]&&
139===this.data[1]&&(a=(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.Jj=new Uint8Array(a)};
g.vSa=function(a){for(;!a.C&&!a.error;){var b=a;b.C=!!QX(b,1);switch(QX(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=QX(b,5)+257;var f=QX(b,5)+1;for(var h=QX(b,4)+4,l=0;l<h;l++)d[qSa[l]]=QX(b,3);d=rSa(d);for(h=e+f;c.length<h;){l=sSa(b,d);switch(l){case 16:l=c[c.length-1];var m=QX(b,2)+3;break;case 17:l=0;m=QX(b,3)+3;break;case 18:l=0;m=QX(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,tSa(b,c,f));break;case 1:tSa(b,MX,nSa);break;case 0:uSa(b,
b.j&7);c=QX(b,16);e=QX(b,16);65535!==(c^e)&&(b.error=!0);b.Jj.set(b.data.subarray(b.u,b.u+c),b.B);b.u+=c;b.B+=c;break;default:b.error=!0}a.B>a.Jj.length&&(a.Jj=new Uint8Array(2*a.B),a.B=0,a.u=0,a.C=!1,a.j=0,a.register=0)}a.Jj.length!==a.B&&(a.Jj=a.Jj.subarray(0,a.B));return a.error?new Uint8Array(0):a.Jj};
tSa=function(a,b,c){b=rSa(b);c=rSa(c);for(var d=a.data,e=a.Jj,f=a.B,h=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[h&127];if(0>n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.u=m,256<n){h=OX[n];h+=QX(a,NX[n]);m=sSa(a,c);l=PX[m];l+=QX(a,oSa[m]);if(wSa&&h<l)l=f-l,e.copyWithin(f,l,l+h);else for(m=f+h,n=f;n<m;n+=4)e[n]=e[n-l],e[n+1]=e[n-l+1],e[n+2]=e[n-l+2],e[n+3]=e[n-l+3];f+=
h;h=a.register;l=a.j;m=a.u}else break}a.B=f};
sSa=function(a,b){if(7>a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.u+=2;a.j+=16}c=b[a.register&127];if(0<=c)return uSa(a,c&15),c>>4;for(uSa(a,7);0>c;)c=b[QX(a,1)-c];return c>>4};
QX=function(a,b){for(;a.j<b;){if(a.u>=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
uSa=function(a,b){a.j-=b;a.register>>=b};
rSa=function(a){for(var b=[],c=g.t(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h<b.length;h++)b[h]?d=h:b[h]=0,e=e+b[h-1]<<1,c[h]=e,7<h&&(f+=b[h]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));for(f=0;f<a.length;f++)if(h=a[f]){for(var l=c[h]++,m=e=0;m<h;m++)e=e<<1|l>>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<<h|e]=l;else{m=e&127;h-=7;for(e>>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
xSa=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,w;return g.A(function(x){switch(x.j){case 1:if(b)try{c=b.exports.malloc(a.length);(new Uint8Array(b.exports.memory.buffer,c,a.length)).set(a);d=b.exports.getInflatedSize(c,a.length);e=b.exports.malloc(d);if(f=b.exports.inflateGzip(c,a.length,e))throw Error("inflateGzip="+f);h=new Uint8Array(d);h.set(new Uint8Array(b.exports.memory.buffer,e,d));b.exports.free(e);b.exports.free(c);return x.return(h)}catch(z){g.rA(z),b.reload()}if(!("DecompressionStream"in
window))return x.return(g.vSa(new g.pSa(a)));l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new fD([]);case 2:return g.y(x,n.read(),4);case 4:q=x.u;r=q.value;if(w=q.done){x.Ia(3);break}p.append(r);x.Ia(2);break;case 3:return x.return(kD(p))}})};
ySa=function(a){EX.call(this,"onesie");this.me=a;this.j={};this.C=!0;this.B=null;this.queue=new kSa(this)};
zSa=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.t(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())if(c=c.value,!a.j[c].vS){var d=a.queue;d.j.push({HN:c,isEncrypted:!1});d.u||mSa(d)}};
ASa=function(a,b){var c=b.totalLength,d=!1;switch(a.B){case 0:a.hM(b,a.C).then(function(e){var f=a.me;f.Tc("oprr");f.playerResponse=e;f.yL||(f.mC=!1);RX(f)},function(e){a.me.fail(e)});
break;case 2:a.Tc("ormk");b=kD(b);a.queue.decrypt(b);break;default:d=!0}a.me.fk&&a.me.xa("ombup","id.11;pt."+a.B+";len."+c+(d?";ignored.1":""));a.B=null};
BSa=function(a,b){var c=CG(b.Y.experiments,"debug_bandaid_hostname");if(c)b=$U(b,c);else if(c=b.j.get(0)){var d=c;if(b.Y.N("html5_onesie_host_racing_during_prewarming")){var e=b.j.values();e=g.t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,eV(f)<eV(d)&&(d=f);e=g.wG(b.Y.experiments,"html5_onesie_host_racing_cap_ms");0<e&&0!==d.ES&&eV(c)-eV(d)<=e&&(d=c);var h;b.D=null==(h=d)?void 0:h.M1}b=d.location.clone()}else b=void 0;if(b&&a.videoId){h=dH(a.videoId);a=[];if(h)for(h=g.t(h),c=h.next();!c.done;c=
h.next())a.push(c.value.toString(16).padStart(2,"0"));b.set("id",a.join(""));return b}};
CSa=function(a,b){return b.load().then(function(){return BSa(a,b)})};
DSa=function(a,b,c,d){d=void 0===d?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.V();a.set("por","1");QG()||a.set("onem","1");0<b.startSeconds&&a.set("osts",""+b.startSeconds);d||(c?(b=c.audio,a.set("pvi",c.video.join(",")),e.N("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),HJ||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad","0"),a.set("oavd","0")))};
SX=function(a,b){g.E.call(this);this.va=a;this.playerRequest=b;this.Y=this.va.V();this.videoData=this.va.getVideoData();this.logger=new g.$V("onesie");this.fk=this.Y.C;this.AJ=this.Y.yj;var c;this.QB=new KX(this.AJ.j,null==(c=this.Y.gh)?void 0:c.exports);this.xhr=null;this.state=1;this.Lo=new oH;this.yS=!1;this.playerResponse="";this.bj=new wX(this);this.yl=new ySa(this);this.qy=new g.Zn(this.sS,1E4,this);this.BU=new g.Zn(this.b2,2E3,this);this.qv="";this.gF=this.NS=!1;this.Qr=this.va.LA();this.qM=
"";this.mC=this.N("html5_onesie_wait_for_media_availability");this.enableCompression=this.yL=this.fF=!1;g.H(this.videoData,this);g.H(this,this.qy);g.H(this,this.BU);g.H(this,this.QB);a=EG(this.Y.B);HJ&&a&&(this.Gg=new Map);this.GR=new Map};
LX=function(a,b){if(a.Gg)return b=b.split(";")[0],a.Gg.get(b)};
ESa=function(a,b,c){var d;return g.A(function(e){if(1==e.j)return a.Tc("oprd_s"),QG()?g.y(e,jSa(a.QB,b,c),3):(d=a.QB.decrypt(b,c),e.Ia(2));2!=e.j&&(d=e.u);a.Tc("oprd_c");return e.return(d)})};
FSa=function(a){return a.N("html5_onesie_host_probing")||a.fk?HJ:!1};
lSa=function(a,b,c){var d;null==(d=LX(a,b))||XRa(d,b,c);var e;null==(e=a.callbacks)||TX(e,a)};
RX=function(a){if(!a.playerResponse)return!1;if(a.fF)return!0;var b=a.videoData.N("html5_onesie_audio_only_playback")&&EJ(a.videoData);if(a.Gg&&a.mC){if(!a.Gg.has(a.qv))return!1;var c=a.Gg.get(a.qv),d;if(d=c){d=!1;for(var e=g.t(c.Hd.keys()),f=e.next();!f.done;f=e.next())if(f=c.Hd.get(f.value))for(var h=g.t(f.wB),l=h.next();!l.done;l=h.next())0<l.value.Io&&(f.ym?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Tc("ofr");a.Lo.resolve(a.playerResponse);a.N("html5_onesie_time_out_after_resolving")?a.qy.start():a.qy.stop();
return a.fF=!0};
HSa=function(a){if(a.Gg&&!a.N("html5_onesie_media_capabilities")){a.Tc("ogsf_s");var b=IRa(a.va.getVideoData(),function(d,e){a.xa(d,e)}),c=GSa(a.va);
b.video=ARa(c,b.video);a.Tc("ogsf_c");if(b.video.length)return b;a.xa("ombspf","l."+c.u+";u."+c.j+";o."+c.B+";r."+c.reason)}};
ISa=function(a){if(!a.zk)return{};var b=AQa(a.zk);b.d=HQa(a.zk);b.shost=a.rV;b.ty="o";return b};
UX=function(a,b,c,d,e,f,h,l){g.E.call(this);var m=this;this.va=a;this.Ja=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.B=f;this.yh=h;this.J=l;this.j=[];this.C={};this.D=!1;this.yf={i$a:function(){return m.j},
q9a:function(){m.j.length=0}};
this.T=this.va.V();this.videoData=this.va.getVideoData()};
JSa=function(a,b){return new YRa(a.policy,b,a.B,a.C,a,{yh:a.yh,iC:function(c,d){a.va.hC(c,d)}})};
TX=function(a,b){if(!b.isDisposed())if(b.isComplete()&&b.Fu())b.dispose();else if(b.US()?KSa(a,b):b.isFailed()?a.Mr(b):LSa(a),!(b.isDisposed()||b instanceof SX)){if(b.isComplete())var c=lRa(b,a.policy,a.C);else c=kRa(b,a.policy,a.C,a.D),1===c&&(a.D=!0);0!==c&&(b=b.info,c=2===c,b=new iSa(1,b.C,b.videoData,b.I,b.visibilityState,b.D,b.T,b.currentTime,b.nextRequestPolicy,b.J),b.u=c,JSa(a,b))}a.Ja.Uj()};
LSa=function(a){for(;a.j.length&&a.j[0].VS();){var b=a.j.shift();MSa(a,b)}a.j.length&&MSa(a,a.j[0])};
MSa=function(a,b){var c=NW(a.J),d,e;var f=[(null==(d=c.video)?void 0:mE(d,a.B.Pd,a.va.Yf()))||"",(null==(e=c.audio)?void 0:mE(e,a.B.Pd,a.va.Yf()))||""];c=new Set(b.au(a.va.Yf()||""));f=g.t(f);for(d=f.next();!d.done;d=f.next())if(d=d.value,c.has(d)&&b.Bl(d)){e=b.Lj(d);e=g.t(e);for(var h=e.next();!h.done;h=e.next()){h=h.value;var l=b.Kr(d);eQa(h.info.j.info.ym()?a.audioTrack:a.videoTrack,l,h)}}};
KSa=function(a,b){a.j.pop();null==b||b.dispose()};
NSa=function(a,b){b&&(a.j.push(b),b.sC(a))};
OSa=function(a,b,c,d,e){this.Ja=a;this.policy=b;this.schedule=c;this.Xw=d;this.Z=e;this.ea=NaN;this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1;this.T=NaN};
PSa=function(a,b,c,d,e){return b.zc&&b.Oe&&3===Jsa(b)?new OSa(a,b,c,d,e):null};
QSa=function(a,b){if(a.policy.Ew){var c=b.info.ac,d=kH(a.schedule);b=b.index.Xi;c=Math.max(1,d/c);a.T=Math.round(1E3*Math.max(((c-1)*b+a.policy.tb)/c,b-a.policy.Ul))}};
TSa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.Dn,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.Gw&&(h=!0);a.I=c}c=d>=a.policy.Ul&&!a.B;if(!f&&!c&&RSa(a,b))return NaN;c&&(a.B=!0);a:{d=h;c=Date.now()/1E3-(a.Xw.Li()||0)-a.J.u-a.policy.tb;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){VX(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.gh;d<c&&(c=d)}else a.B&&(d=c+a.policy.tb-a.ea+a.policy.Hw,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.gh))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&RSa(a,b))return SSa(a,b),NaN;if(a.j<=a.u.startTime)return VX(a,NaN,"y",b),a.clear(),NaN;if(!a.Z(a.j,!1))return!SSa(a,b)&&h&&(VX(a,NaN,"t",b),a.clear()),NaN;h=a.j;VX(a,h,"s",b);a.clear();return h};
SSa=function(a,b){return a.Z(a.j,!0)?!1:(VX(a,NaN,"ns",b),a.clear(),!0)};
RSa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.B?a.policy.gh:a.policy.Fw)};
VX=function(a,b,c,d){var e=a.C.Ar();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.j).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=Date.now().toFixed(0);e.ssr_f=(1E3*a.J.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.Xw.Li()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.j.index;KE(b,a.u.Na,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Na)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Na)).toFixed(0));a.Ja.xa("ssr",e)};
USa=function(){var a={};if(window.performance){var b=window.performance.memory;b&&(a.jsTotal=b.totalJSHeapSize,a.jsUsed=b.usedJSHeapSize,a.msUsed=b.usedMediaSourceMemorySize)}var c;if(null==(c=window.h5vcc)?0:c.cVal)a.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),a.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used");return a};
g.WX=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.E.call(this);var p=this;this.va=a;this.schedule=b;this.policy=c;this.Gb=d;this.J=m;this.Wa=n;this.timing=new XOa(this.Wa);this.T=new sW(this.schedule,this.policy);this.mediaSource=null;this.Pa=new g.Zn(this.Uj,0,this);this.sF=new g.Zn(this.Uj,1E3,this);this.Va=new g.Zn(this.Uj,void 0,this);this.Ma=new g.Zn(this.Uj,1E4,this);this.D=this.currentTime=NaN;this.Z=0;this.mB=this.dE=this.isSuspended=!1;this.Aa="";this.VD=new eH(5);this.Xa={};this.timestampOffset=
NaN;this.Ka=!1;this.Ba=0;this.I=null;this.ea=NaN;this.logger=new g.$V("dash");this.yf={m$a:function(){return p.oa}};
jta=c.Kp;a=m&&m.au();m&&(this.policy.Aa&&WRa(m,this.Gb,this.policy),this.ea=Date.now());this.xe=new bPa(this,this.T,c,this.Gb,e,a);c=gPa(this.xe,f,h&&h.id);this.audioTrack=new aQa(this,this.policy,c.audio,this.timing);this.videoTrack=new aQa(this,this.policy,c.video,this.timing);this.videoTrack.C.Aa=this.audioTrack.lK();this.ya={updateend:this.qZ,error:this.S2};g.H(this,this.Pa);g.H(this,this.sF);g.H(this,this.Va);g.H(this,this.Ma);this.C=PSa(this,this.policy,this.schedule,this.VD,function(q,r){return VSa(p,
q,r)});
this.j=new CW(this,this.Gb,this.policy,this.videoTrack,this.audioTrack,l);this.u=new wW(this,this.Gb,this.videoTrack,this.audioTrack,this.policy);this.B=new CX(this,this.policy,this.videoTrack,this.audioTrack,this.Xa,this.j,this.timing,this.T,this.schedule,this.Gb,this.xe,this.C);g.H(this,this.B);this.oa=new UX(this.va,this,this.policy,this.audioTrack,this.videoTrack,this.Gb,this.schedule,this.xe);g.H(this,this.oa);this.gb=this.va.Tf.rs.ox};
WSa=function(a,b){var c=b.j,d=a.Gb.Pd;if(a.Gb.Pd){var e=a.va.getVideoData();e=e.zc||e.liveUtcStartSeconds||e.qj;if(a.Gb.Ne&&e){a.xa("ombplst",{});return}if(a.Gb.Z){a.xa("ombab",{});return}e=Date.now();if(hG(a.Gb)&&!isNaN(a.ea)&&e-a.ea>1E3*a.policy.Uv){a.xa("ombttl",{});return}if(a.Gb.Be&&a.Gb.B||!a.policy.Kw&&a.Gb.isPremiere)return}e=a.Yf();if(a.J&&jX(a.J,mE(c,d,e))){d=mE(c,d,e);if(a.policy.Aa){var f=a.J.Kr(d);if(0===f.length){a.xa("ombmsi",{});return}f=new AE(f);if(!Pta(f,a.currentTime)){a.xa("ostmf",
{ct:a.currentTime});return}}else if(e=QRa(a.J,d),!a.Gb.Pd||!a.policy.Jw){if(!c.indexRange||!c.initRange)return;if(!JX(a.J,d)){a.xa("ombooo",{});return}if(0<e.length){var h;if((f=null==(h=c.Gr(0))?void 0:Ota(h,e))&&!Pta(f,a.currentTime)){a.xa("ostmf",{ct:a.currentTime});return}}}else if(hG(a.Gb)||a.Gb.isPremiere||a.Gb.Ne)f=c.Cp(Infinity);f&&(h=function(l){try{if(l.isFailed())a.handleError(l.Df(),l.Ar()),rX(b,l),CE(l.info)&&DX(a.B,b,c,!0),a.Uj();else if(vRa(a.B,l)){var m;null==(m=a.j)||ZOa(m,l.info,
a.I);a.Uj()}}catch(n){l=eI(n),a.handleError(l.errorCode,l.details,l.severity),a.Yj()}},c.D=!0,BE(f)&&(bQa(b,new xW(a.policy,d,f,a.J,h)),YOa(a.timing)))}else a.xa("ombfmt",{})};
XX=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.xe;b=d.nextVideo&&d.nextVideo.index.ai(b)||0;d.Ba!==b&&(d.Ka={},d.Ba=b,IW(d,d.B));b=!OW(d)&&-1<d.Z&&8E3>(0,g.R)()-d.Z;var e=d.nextVideo&&3*KW(d,d.nextVideo.info)<vW(d.Aa);if(!b||e)HW(d),JW(d),d.ea=d.ea||d.nextVideo!==d.j;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.Ba=-1);d=d.nextVideo;c.j!==d&&(c.j=d);c=a.audioTrack;a=a.xe.u;c.j!==a&&(c.j=a)};
YX=function(a,b){a.dE=b;a.policy.Z||(a.isSuspended=!0)};
XSa=function(a,b,c,d){lQa(a.videoTrack,d,c,b);lQa(a.audioTrack,d,c,b);gG(a.Gb,d,!0);gG(a.Gb,d,!1);a.xa("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
ZSa=function(a){a.policy.Va=!1;try{YSa(a)}catch(b){g.rA(b)}};
$Sa=function(a){a.mediaSource&&a.mediaSource.j&&a.mediaSource.u&&(HB(a.mediaSource.j,a.ya,a),HB(a.mediaSource.u,a.ya,a));lX(a.audioTrack,null);lX(a.videoTrack,null);a.mediaSource&&(a.mediaSource.C=!1);a.mediaSource=null};
aTa=function(a){a.mediaSource&&a.mediaSource.Eg()&&(a.kx(),a.policy.xw&&a.handleError("fmt.unplayable",{unexpected:1},1))};
cTa=function(a,b){b&&a.va.LF(b);a.policy.Gl&&a.xe.Xa&&(b=NW(a.xe,"a"),bTa(a.va,b.reason,b.audio.info))};
uRa=function(a,b){if(uE(b.Za[b.Za.length-1])){a:{var c=a.xe;b=b.Za[0].j;if(b.info.video){if(c.j!==b){c.j=b;c=fPa(c);break a}}else c.Xa=c.J!==b,c.J=b;c=null}cTa(a,c)}};
wRa=function(a,b,c){if(b instanceof Error){c.msg||(c.msg=""+b.message);c.name||(c.name=""+b.name);if(b instanceof g.Sw&&b.args)for(var d=g.t(Object.entries(b.args)),e=d.next();!e.done;e=d.next()){var f=g.t(e.value);e=f.next().value;f=f.next().value;c["arg"+e]=""+f}g.sA(b);if("WARNING"===b.level){ZX(a.va,c);return}}a.handleError("fmt.unplayable",c,1)};
$X=function(a){g.$n(a.Pa)};
YSa=function(a){if(a.mediaSource){var b=a.mediaSource.j,c=a.mediaSource.u,d=dTa(a);if(d){if(a.policy.Pa){if(!b.Br()){var e=BW(a.audioTrack);e&&(eTa(a,a.audioTrack,b,e.info),fTa(a,b,e))}!c.Br()&&(b=BW(a.videoTrack))&&(eTa(a,a.videoTrack,c,b.info),fTa(a,c,b))}a.Z||(a.Z=(0,g.R)(),a.policy.I&&a.xa("apdps",{r:d}))}else{if(a.Z){d=(0,g.R)()-a.Z;e=pX(a.audioTrack,!0);var f=pX(a.videoTrack,!0);a.policy.I&&a.xa("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),vbuf:(1E3*f).toFixed()});a.Z=0}if(a.C){d=a.C;e=a.audioTrack;
f=HF(a.mediaSource.u.Bg());if(d.C)d=TSa(d,f);else{if(f=BW(e)){var h=f.u;h&&h.D&&h.u&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Cg&&(d.C=e,d.J=h,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.I=d.startTimeSecs,d.D=d.u.startTime)}d=NaN}d&&a.va.seekTo(d,{yu:!0,Ee:"pollSubsegmentReadahead",Mq:!0})}d=!1;gTa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.D||(e.D=(0,g.R)(),BQ("vda",e.D,e.j),e.B&&(g.Pw(),Rw(4))),e=a.timing,e.Ma||(e.Ma=(0,g.R)(),BQ("vrb_f",e.Ma,e.j)));if(a.mediaSource&&!a.mediaSource.Eg()&&
(gTa(a,a.audioTrack,b)&&(d=!0,e=a.timing,e.B||(e.B=(0,g.R)(),BQ("ada",e.B,e.j),e.D&&(g.Pw(),Rw(4))),e=a.timing,e.ea||(e.ea=(0,g.R)(),BQ("arb_f",e.ea,e.j))),!a.isDisposed()&&a.mediaSource)){!a.policy.Va&&nX(a.videoTrack)&&nX(a.audioTrack)&&PF(a.mediaSource)&&!a.mediaSource.Oi()&&(e=mX(a.audioTrack).j,e===a.Gb.j[e.info.id]&&(e=a.mediaSource,PF(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Ig.webkitSourceEndOfStream(e.Ig.EOS_NO_ERROR)),e=a.schedule,Yua(lH(e)),e.D=hH(),e.T=!0));e=a.policy.lz;f=a.policy.Iw;
d||!(0<e||f)||!PF(a.mediaSource)||nX(a.videoTrack)||nX(a.audioTrack)||(b.WG(a.currentTime,f,e),c.WG(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.j?c.j.supports(0):TF());c&&$X(a)}}}};
dTa=function(a){if(sQa(a.videoTrack))return"ssf";if(a.policy.Ok||nQa(a.audioTrack)||nQa(a.videoTrack)&&"f"!==a.videoTrack.j.info.Hb)return"";if(a.u.Rg()){var b=a.T;var c=a.videoTrack;var d=a.audioTrack;if(c.B.length||d.B.length){var e=c.j.info.ac+d.j.info.ac;e=10*(1-vW(b)/e);b=Math.max(e,b.policy.Nk);c=pX(d,!0)>=b&&pX(c,!0)>=b}else c=!0;if(!c)return"abr";c=a.videoTrack;if(0<c.B.length&&1===c.C.u.length&&GPa(c.C).info.I<c.ya)return"seek"}if(!a.mB||!a.policy.Fd||10>a.currentTime||360<a.videoTrack.j.info.video.j)return"";
c=pQa(a.videoTrack,a.currentTime,a.policy.Fd)||pQa(a.audioTrack,a.currentTime,a.policy.Fd);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||mRa(a.B,a.videoTrack,a.audioTrack)||mRa(a.B,a.audioTrack,a.videoTrack))&&c?"nord":""};
gTa=function(a,b,c){if(c.XK())return!0;if(!c.ND())return!1;var d=BW(b);if(!d||6===d.info.type)return!1;var e,f;(f=null==(e=a.j))||(f=1===e.j||2===e.j)||!(f=0!==e.j&&b===e.Ka)||(e=mQa(e.T),f=d.info.Na>(e?e.Na:-1));if(f)return a.u.Rg()&&$X(a),!1;eTa(a,b,c,d.info);if(a.Gb.u&&0===d.info.Nb){if(null==c.Br()){e=mX(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.J,f=d.info.J,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Db(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Br(),d.info.j.Px()&&kua(d),
f=d.info.j.j,e=e!==f&&!g.Db(e,f);e&&(f=mX(b),a.xa("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Na}));f=g.QE(d.info.j.info);(a.policy.Pb&&f||a.policy.Lw&&!f)&&!e&&(g.QE(d.info.j.info)?(ND(OE(d),1836019574),ND(OE(d),1718909296)):(e=new PD(OE(d)),tta(e),TD(e,524531317,!0),d.j=d.j.split(e.start+e.pos).Fk),d.C=!1)}a.policy.Mg?d.B=void 0:a.policy.Aw&&!c.Br()&&(e=d.info.j.j,1===d.j.j.length||0!==d.info.Nb||d.C||d.B||3!==d.info.type||!e||(f=new fD([e]),gD(f,d.j),f=kD(f),
e=(new fD([f])).split(e.length),d.B=e.dB,d.j=e.Fk));e=a.C&&!!a.C.C&&b.j.info.audio;f=a.Gb.isManifestless||d.B||d.C;if(!(a.Gb.u&&0!==d.info.Nb||f&&!e)&&fTa(a,c,d))return!0;if(e)return!1;e=a.currentTime+nRa(a,b,!1);if(!(e=d.info.B>e)){e=a.policy.Ma?(0,g.R)():0;f=d.C||d.B?d.info.j.j:null;h=d.j;d.B&&(h=new fD([]),gD(h,d.B),gD(h,d.j));var l=kD(h);h=a.policy.Ma?(0,g.R)():0;f=hTa(a,c,l,d.info,f);a.policy.Ma&&(!d.info.Nb||d.info.cf||10>d.info.B)&&a.xa("sba",c.jc({as:yE(d.info),pdur:Math.round(h-e),adur:Math.round((0,g.R)()-
h)}));"s"===f?(a.Ba=0,a=!0):("i"===f||"x"===f?iTa(a,"checked",f,d.info):("q"===f&&(d.info.isVideo()?(c=a.policy,c.T=Math.floor(.8*c.T),c.gb=Math.floor(.8*c.gb),c.J=Math.floor(.8*c.J)):(c=a.policy,c.oa=Math.floor(.8*c.oa),c.Lc=Math.floor(.8*c.Lc),c.J=Math.floor(.8*c.J)),LW(a.xe,d.info.j)),ZX(a.va,{reattachOnAppend:f})),a=!1);e=!a}if(e)return!1;b.Ns(d);return!0};
iTa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",d.j.info.video&&!MW(a.xe)&&LW(a.xe,d.j)):"i"===c&&(15>a.Ba?(a.Ba++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=xE(d);var h;d.mrs=null==(h=a.mediaSource)?void 0:SF(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
UPa=function(a,b,c,d,e){var f=a.Gb;var h=!1,l=-1;for(p in f.j){var m=sF(f.j[p].info.mimeType)||f.j[p].info.isVideo();if(d===m)if(h=f.j[p].index,KE(h,b.Na)){m=b;var n=h.Rn(m.Na);n&&n.startTime!==m.startTime?(h.segments=[],h.XH(m),h=!0):h=!1;h&&(l=b.Na)}else h.XH(b),h=!0}if(0<=l){var p={};f.ma("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;WOa(a.u,b,d,f);a.j.dM(b,c,d,e);b.Na===a.Gb.Be&&f&&eG(a.Gb)&&b.startTime>eG(a.Gb)&&(a.Gb.Pb=b.startTime+(isNaN(a.timestampOffset)?0:a.timestampOffset),a.u.Rg()&&
a.u.j<a.Gb.Kd()&&a.u.seek(a.Gb.Kd()))};
eTa=function(a,b,c,d){b=mX(b);!b||b.cf||vE(b,d)||c.abort();!c.IA()||MF()?c.fO(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.IA()&&a.xa("ctu",{ct:MF(),prev_c:c.IA(),curr_c:d.j.info.containerType});b=d.j.C;a.policy.aq&&b&&(d=0+b.duration,b=-b.j,0===c.zA()&&d===c.uE()||c.iN(0,d),b!==c.Ld()&&(c.GG(b),eX&&WPa(a.audioTrack.lK(),c.tK())))};
fTa=function(a,b,c){c.info.j.vg();var d=c.info.j.j;if(!d||!b.ND()||b.Br()===d)return!1;var e=d,f=b.AE();if(a.policy.Mg&&f&&b.isView()&&g.QE(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=mta(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.xa("fenc",{})}f=null;(h=c.info.j.Gr(0))&&(f=h.Za[0]);a.policy.Ma&&a.xa("sbi",b.jc({as:yE(c.info)}));a.policy.gp&&b.abort();d=hTa(a,b,e,f,d);if("s"!==d)return iTa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.Ba||
(a.Ba=(0,g.R)(),BQ("vis_a",a.Ba,a.j))):(a=a.timing,a.T||(a.T=(0,g.R)(),BQ("ais_a",a.T,a.j)));return b.Oi()};
hTa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:DF(b.Bg()).replace(/,/g,"_"),message:g.Ef(f.message,3),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},USa()),a.handleError("player.exception",b),"q";g.rA(f)}return"u"}return a.mediaSource.Eg()?"m":"s"};
bX=function(a,b){a.va.MF(b)};
nRa=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.oa:a.policy.T;!a.policy.dc&&OW(a.xe)&&(d=Math.max(d,b.j.info.audio?a.policy.Lc:a.policy.gb));c&&(d+=a.policy.Ec);c=OW(a.xe)?b.u?b.u.j.info.ac:b.j.info.ac:b.ac*a.policy.qj;d/=c;0<a.policy.Mk&&a.mediaSource&&PF(a.mediaSource)&&(b=b.j.info.video?a.mediaSource.u:a.mediaSource.j)&&!b.Oi()&&(b=b.Bg(),c=EF(b,a.currentTime),0<=c&&(b=a.currentTime-b.start(c),d+=Math.max(0,Math.min(b-a.policy.Mk,a.policy.Sv))));0<a.policy.J&&(d=Math.min(d,
a.policy.J));return d};
jTa=function(a,b){YU(b,"cms",function(c){a.policy.I&&a.xa("pathprobe",c)},function(c){a.va.handleError(c)})};
kTa=function(a,b){a.I=b;a.j&&(a.j.C=b);a.I.qN(a.videoTrack.j.info.ze());a.B.B=a.I};
lTa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.j,d=b;if(0!==c.j&&c.C){var e=c.Cx(d);e!==c.ea&&(c.C.lM(c.ea,e,c.Ba,d),c.ea=e);c.Ba=d}a.currentTime!==b&&a.resume();a.u.Rg()&&a.mediaSource&&!a.mediaSource.Eg()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=FF(a.mediaSource.u.Bg(),a.currentTime+oRa),c&&d&&(a.u.D=!1));a.u.Rg()||(a.currentTime=b);g.$n(a.sF)}};
mTa=function(a,b){var c=iQa(a.videoTrack).find(function(d){return d.startTime>=b&&VSa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
VSa=function(a,b,c){if(!(a.videoTrack.j.vg()&&a.audioTrack.j.vg()&&a.mediaSource&&a.mediaSource.u&&a.mediaSource.j))return!1;if(c&&a.Gb.isManifestless&&(-1===a.videoTrack.I||-1===a.audioTrack.I))return!0;var d=zW(a.videoTrack,b,c);if(isNaN(d))return!1;a=zW(a.audioTrack,a.policy.Oe?b:d,c);return isNaN(a)?!1:!0};
nTa=function(a){a.Yj();a.C&&QSa(a.C,a.videoTrack.j);$X(a);a=a.u;var b=Math.max(a.videoTrack.C.B||0,a.audioTrack.C.B||0);kQa(a.videoTrack);kQa(a.audioTrack);Wua(a.u);a.u.isManifestless&&(a.B=!0);a.Ja.currentTime=b;a.D=!0;a.C=new oH;return a.C};
aY=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.j.I=a.timestampOffset,a.va.nM(a.timestampOffset),a.Gb.isManifestless&&(a.Gb.timestampOffset=a.timestampOffset))};
g.bY=function(a){this.td=a};
cY=function(){g.FB.apply(this,arguments)};
dY=function(a,b,c,d){cY.call(this);var e=this;this.B=-1;this.j={};this.C=new g.Zn(this.D,0,this);g.H(this,this.C);this.u=new g.Zn(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
g.H(this,this.u);d.subscribe("fairplay_next_need_key_info",this.I,this)};
oTa=function(a){if(!(28>=a.length))for(var b=(0,g.AX)([60,0,75,0,73,0,68,0,62,0]),c=28;c<a.length;){a:if(a.length-c<b.length)var d=!1;else{for(d=0;d<b.length;++d)if(a[c+d]!==b[d]){d=!1;break a}d=!0}if(d){c+=b.length;if(a.length<=c+48)break;b=new Uint8Array(24);for(d=0;24>d;++d)b[d]=a[c+2*d];a=oD(b);a=Ff(a);if(!a)break;c=a[0];a[0]=a[3];a[3]=c;c=a[1];a[1]=a[2];a[2]=c;c=a[4];a[4]=a[5];a[5]=c;c=a[6];a[6]=a[7];a[7]=c;return a}c++}};
eY=function(a,b,c,d){cY.call(this);var e=this;this.D=a;this.C=b;this.B=c;this.j=[];this.u=new g.Zn(function(){e.ma("log_qoe",{wvagt:"timer",reqlen:e.j?e.j.length:-1});if(e.j){if(0<e.j.length){var f=e.j.shift();pTa(e,f.info)}0<e.j.length&&(f=e.j[0].time-(0,g.R)(),e.u.start(Math.max(0,f)))}},0);
g.H(this,this.u);d.subscribe("widevine_set_need_key_info",this.I,this)};
pTa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.B.size)c=!0;else{for(var d=g.t(a.B.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.ma("log_qoe",{wvagt:"reqnews",canskip:c});c||a.ma("rotated_need_key_info_ready",b)};
qTa=function(a){var b=a.interval,c=a.Dy;this.url=a.url;this.interval=b;this.Dy=c};
rTa=function(a,b){this.statusCode=a;this.message=b;this.j=this.heartbeatParams=this.errorMessage=null;this.u={};this.nextFairplayKeyId=null};
sTa=function(a){var b=mD(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1===c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e="string"===typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=ED(b.slice(d+2));if(null==b)return null;a=new rTa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.UCa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new qTa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Dy:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.j=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.t(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),2===e.length&&(c[e[1]]=e[0]);else c={};a.u=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
tTa=function(a,b,c){c=void 0===c?"":c;g.E.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.j=new g.Lh(5E3,2E4,.2)};
vTa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.isDisposed())if(0!==e.status&&e.response)if(hC("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=sTa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else uTa(a,e)},
onError:function(e){uTa(a,e)}};
c&&(b=Rea(b,"access_token",c));g.Pv(b,d)};
uTa=function(a,b){if(!a.isDisposed())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
xTa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){hC("drm_net_r",void 0,a.timer);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Ff(f.license)}catch(x){g.rA(x)}if(0!==h||l){l=new rTa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.t(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=wTa[q.trackType];if(r){"HD"===r&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");
h[r]||(m.push(r),h[r]=!0);var w=null;try{w=Ff(q.keyId)}catch(x){g.rA(x)}w&&(n[g.Df(w,4)]=r)}}l.j=m;l.u=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.isDisposed())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.FQ="Bearer "+d);g.My(c,"player/get_drm_license",b,e)};
yTa=function(a,b,c,d){g.FB.call(this);this.videoData=a;this.Y=b;this.T=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.J=this.ea=!1;this.B=null;this.Aa=[];this.D=[];this.oa=!1;this.j={};this.ya=NaN;this.status="";this.I=NaN;this.u=a.Z;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.Y.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ka&&(a.vvt=this.videoData.Ka,this.videoData.mdxEnvironment&&(a.mdx_environment=
this.videoData.mdxEnvironment));this.Y.authUser&&(a.authuser=this.Y.authUser);this.Y.pageId&&(a.pageid=this.Y.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Wb()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.C=a;this.C.session_id=d;this.Z=!0;"widevine"===this.u.flavor&&(this.C.hdr="1");"playready"===this.u.flavor&&(b=Number(CG(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.Z=!1);b="";
g.uG(this.u)?RC(this.u)?(d=c.u)&&(b="https://web.archive.org/web/20230104105643/https://www.youtube.com/api/drm/fps?ek="+Qca(d)):(b=c.initData.subarray(4),b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2),b=String.fromCharCode.apply(null,b).replace("skd://","https://")):b=this.u.u;this.baseUrl=b;this.fairplayKeyId=ei(this.baseUrl,"ek")||"";if(b=ei(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ba=this.videoData.N("html5_use_drm_retry");this.Aa=c.ze?[g.Df(c.initData,4)]:c.B;fY(this,{sessioninit:c.cryptoPeriodIndex});this.status=
"in"};
BTa=function(a,b){fY(a,{createkeysession:1});a.status="gr";hC("drm_gk_s",void 0,a.videoData.Pa);a.url=zTa(a);try{a.B=b.createSession(a.T,function(c){fY(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.ma("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(a.B.sC(function(c,d){ATa(a,c,d)},function(c,d,e){if(!a.isDisposed()){d=void 0;
var f=1;g.uG(a.u)&&g.BH(a.Y)&&a.Y.N("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.Y.N("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(fY(a,{onkyadd:1}),a.J||(a.ma("sessionready"),a.J=!0))},function(c){a.Es(c)}),g.H(a,a.B))};
zTa=function(a){var b=a.baseUrl;Lra(b)||a.error("drm.net",2,"t.x");if(!ei(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.Y.experiments.experiments[e]});
0<c.length&&(a.C.fexp=c.join())}c=g.t(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Rea(b,d,a.C[d]);return b};
ATa=function(a,b,c){if(!a.isDisposed())if(b){fY(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":CTa(a,b);return;default:a.ma("ctmp","message_type",{t:c,l:b.byteLength})}a.ea||(hC("drm_gk_f",void 0,a.videoData.Pa),a.ea=!0,a.ma("newsession",a));if(rG(a.u)&&(b=DTa(b),!b))return;g.uG(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=Xsa(g.Df(b)));b=new tTa(b,++a.requestNumber,a.videoData.Pa);b.sC(function(d){ETa(a,
d)},function(d,e,f){if(!a.isDisposed()){var h=0,l;
(l=3<=d.j.u)||(l=a.Ba&&36E4<(0,g.R)()-a.ya);l&&(h=1,e="drm.net.retryexhausted");fY(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(dI(h),d)&&FTa(a,d)}});
g.H(a,b);GTa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
CTa=function(a,b){fY(a,{sdpvrq:1});a.I=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",1,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.Y.deviceParams);c=g.ci("https://web.archive.org/web/20230104105643/https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:mD(b)}),responseType:"arraybuffer"};
g.Tv(c,b,3,500).then(g.vv(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=mD(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.ma("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.I)/1E3,a.I=NaN,a.ma("ctmp","provs",{et:f.toFixed(3)}),a.B&&a.B.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),g.vv(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
gY=function(a){var b;if(b=a.Z&&null!=a.B)a=a.B,b=!(!a.j||!a.j.keyStatuses);return b};
GTa=function(a,b){a.status="km";hC("drm_net_s",void 0,a.videoData.Pa);if(a.videoData.useInnertubeDrmService()){var c=new g.Ly(a.Y.wj),d={context:g.$x(c.config_||g.Zx())};d.drmSystem=HTa[a.u.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Df(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!(null==(e=a.videoData.B)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.Y.deviceParams)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Ka&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Ka,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Ac&&(d.context.user.kidsParent={oauthToken:a.videoData.Ac});g.uG(a.u)&&(d.fairplayKeyId=g.Df(Rca(a.fairplayKeyId)));g.aI(a.Y,g.bK(a.videoData)).then(function(l){xTa(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.aI(a.Y,g.bK(a.videoData)).then(function(l){vTa(b,a.url,l);
a.status="rs"})};
ETa=function(a,b){if(!a.isDisposed())if(fY(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{hC("drm_kr_s",void 0,a.videoData.Pa);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.N("outertube_streaming_data_always_use_staging_license_service")){var c=a.u.u.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.ma("newlicense",b.heartbeatParams);b.j&&(a.D=b.j,a.videoData.useInnertubeDrmService()&&
!a.videoData.yH&&a.ma("newlicense",new qTa({})),a.videoData.yH=!0,a.oa=Pl(a.D,function(d){return d.includes("HDR")}));
b.u&&(a.j=Lc(b.u,function(d){return{type:d,status:"unknown"}}));
sG(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=Ff(mD(b.message)):tG(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=Xsa(g.Df(b.message)));a.B&&(fY(a,{updtks:1}),a.status="ku",a.B.update(b.message).then(function(){hC("drm_kr_f",void 0,a.videoData.Pa);gY(a)||(fY(a,{ksApiUnsup:1}),a.ma("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Ef(d.message,3);
a.error("drm.keyerror",1,d)}));
a.J&&(a.ya=(0,g.R)());g.uG(a.u)&&a.ma("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId)}};
FTa=function(a,b){var c=b.j.getValue();c=new g.Zn(function(){GTa(a,b)},c);
g.H(a,c);c.start();g.Nh(b.j);fY(a,{rtyrq:1})};
ITa=function(a,b){for(var c=[],d=g.t(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)};
JTa=function(a){var b={};b[a.status]=gY(a)?ITa(a,"."):a.D.join(".");return b};
KTa=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a};
LTa=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
fY=function(a,b){var c=void 0===c?!1:c;bI(b);(c||a.Y.C)&&a.ma("ctmp","drmlog",b)};
MTa=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b};
DTa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=new DOMParser;b=g.Wd(b);b=a.parseFromString(g.Vd(b),"text/xml");return b?(b=b.querySelector("Challenge"))&&b.childNodes&&0!==b.childNodes.length?new Uint8Array((0,g.AX)(Wca(b.childNodes[0].nodeValue)).buffer):null:null};
hY=function(a,b,c,d,e){g.E.call(this);this.element=a;this.T=b;this.initData=c;this.j=d;this.u=e;this.sessionId="";this.J=this.I=this.B=this.D=null;this.C=new g.vF(this);g.H(this,this.C);NTa(this)};
NTa=function(a){a.j?(a.C.S(a.j,"message",a.rZ),a.C.S(a.j,"keystatuseschange",a.Es),a.j.closed&&a.j.closed.then(g.vv(function(){a.isDisposed()||bw("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(fA(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.oU),fA(a.C,a.u,["mskeyerror","webkitkeyerror"],a.nU),fA(a.C,a.u,["mskeyadded","webkitkeyadded"],a.mU))};
OTa=function(a,b,c){g.uv(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
iY=function(a,b){g.E.call(this);this.element=a;this.j=b;this.I={};this.C=null;this.D=new g.vF(this);this.B=this.u=null;g.H(this,this.D)};
QTa=function(a,b){b=PTa(b,a.j.Xa);a=a.B.createSession("video/mp4",b);return new hY(null,null,null,null,a)};
RTa=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new hY(null,null,null,null,a)};
STa=function(a,b){var c=a.I[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
PTa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
jY=function(){this.keys=[];this.values=[]};
VTa=function(a,b,c){g.FB.call(this);this.element=a;this.videoData=b;this.Y=c;this.j=this.videoData.Z;this.drmSessionId=this.videoData.drmSessionId||g.Qqa();this.u=new Map;this.I=new jY;this.J=new jY;this.B=[];this.Ka=2;this.oa=new g.vF(this);this.Ma=this.Aa=!1;this.heartbeatParams=null;this.ya=this.Z=!1;this.D=null;this.Ba=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||pG()||xG(c.experiments);c=this.videoData.Nl;this.T="fairplay"===this.j.flavor||c?lJ:TTa;this.C=new iY(this.element,this.j);g.H(this,
this.C);qG(this.j)&&(this.ea=new iY(this.element,this.j),g.H(this,this.ea));g.H(this,this.oa);c=this.element;this.j.keySystemAccess?this.oa.S(c,"encrypted",this.w3):fA(this.oa,c,qG(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.T3);UTa(this);a:switch(c=this.j,a=this.Y.experiments,b=this.u,c.flavor){case "fairplay":if(b=/\sCobalt\/(\S+)\s/.exec(g.Wb())){a=[];b=g.t(b[1].split("."));for(var d=b.next();!d.done;d=b.next())d=parseInt(d.value,10),0<=d&&a.push(d);a=parseFloat(a.join("."))}else a=
NaN;19.2999<a?(a=c.ww,c=c.cw,c>=a&&(c=.75*a),b=.5*(a-c),c=new dY(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new eY(a.eb("disable_license_delay"),!a.eb("h5_widevine_keyrotationagent_optimization_killswitch"),b,this);break a;default:c=null}if(this.D=c)g.H(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.BQ,this),this.D.subscribe("log_qoe",this.ej,this);xG(this.Y.experiments);this.ej({cks:this.j.ih()})};
UTa=function(a){var b=a.C.attach();b?b.then(g.vv(function(){WTa(a)}),g.vv(function(c){if(!a.isDisposed()){g.uv(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ma("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ej({mdkrdy:1}),a.Z=!0);
a.ea&&(b=a.ea.attach())};
YTa=function(a,b,c){a.Ma=!0;c=new XW(b,c);a.Y.N("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));XTa(a,c)};
XTa=function(a,b){if(!a.isDisposed()){a.ej({onInitData:1});if(a.Y.N("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.J.get(b.initData);b=a.I.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.I.remove(c);a.J.remove(c)}a.ej({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Aa&&!a.videoData.isLivePlayback)kY(a);else{if(!(a.Y.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.ze)){a.Aa=!0;c=b.cryptoPeriodIndex;var d=b.j;APa(b);b.ze||(d&&b.j!==d?a.ma("ctmp","cpsmm",
{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.ma("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.ma("widevine_set_need_key_info",b)}}else a.BQ(b)}};
WTa=function(a){if(!a.isDisposed())if(a.Y.N("html5_drm_set_server_cert")&&!g.IH(a.Y)||RC(a.j)){var b=a.C.setServerCertificate();b?b.then(g.vv(function(c){a.Y.C&&a.ma("ctmp","ssc",{success:c})}),g.vv(function(c){a.ma("ctmp","ssce",{n:c.name,
m:c.message})})).then(g.vv(function(){ZTa(a)})):ZTa(a)}else ZTa(a)};
ZTa=function(a){a.isDisposed()||(a.Z=!0,a.ej({onmdkrdy:1}),kY(a))};
$Ta=function(a){return"widevine"===a.j.flavor&&a.videoData.N("html5_drm_cpi_license_key")};
kY=function(a){if(a.Ma&&a.Z&&!a.ya){for(;a.B.length;){var b=a.B[0],c=$Ta(a)?BPa(b):g.Df(b.initData);if(RC(a.j)&&!b.u)a.B.shift();else{if(a.u.get(c))if("fairplay"!==a.j.flavor||RC(a.j)){a.B.shift();continue}else a.u.delete(c);APa(b);break}}a.B.length&&a.createSession(a.B[0])}};
aUa=function(a){var b;if(b=g.dw()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.qD(b),a.ma("ctmp","drm",{metrics:b}))};
mY=function(a){g.E.call(this);var b=this;this.va=a;this.j=this.va.V();this.videoData=this.va.getVideoData();this.rB=0;this.I=this.B=!1;this.D=0;this.C=g.wG(this.j.experiments,"html5_delayed_retry_count");this.u=new g.Zn(function(){lY(b.va)},g.wG(this.j.experiments,"html5_delayed_retry_delay_ms"));
g.H(this,this.u)};
eUa=function(a,b,c){var d=a.videoData.B,e=a.videoData.I;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.va.ri.D&&d&&"22"===d.itag)return a.va.ri.D=!0,a.Sd("qoe.restart",{reason:"fmt.unplayable.22"}),nY(a.va),!0;var f=!1,h=a.rB+3E4<(0,g.R)()||a.u.isActive();if(a.j.N("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Sd("auth",c),!0;var l;if(l=!h)l=a.va.Lr(),l=!!(l.cg()||l.isInline()||l.isBackground()||
l.Nx()||l.Jx());l&&(c.nonfg="paused",h=!0,a.va.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:VC(e)||UC(e))&&(yva(a.j.B,e.Hb),c.acfallexp=e.Hb,f=h=!0);!h&&0<a.C&&(a.u.start(),h=!0,c.delayed="1",--a.C);e=a.va.Ja;if(!h&&((null==d?0:oF(d))||(null==d?0:WC(d)))){var m;if(a.videoData.N("html5_disable_codec_for_playback_on_error")&&e){l=e.xe;var n=d.Hb;l.Wa.has(n)?l=!1:(l.Wa.add(n),l.Z=-1,IW(l,l.B),l=!0);l&&(m="cfallp")}else yva(a.j.B,d.Hb),m="cfallexp";m&&(f=h=!0,c[m]=d.Hb)}if(!h)return bUa(a,
c);a.rB=(0,g.R)();h=a.videoData;h.kb?(h=h.kb.FP(),m=Date.now()/1E3+1800,h=h<m):h=!1;c.e=b;h&&(c.staleprog="1");a.Sd("qoe.restart",c);if(h&&cUa(a))return dUa(a),!0;if(bw("philips")&&"GAME_CONSOLE"!==a.j.deviceParams.cplatform)try{window.close()}catch(p){}d&&oF(d)?(f=a.j.B,f.Z=!0,f=f.j=!0):e?(b=(b=mX(e.videoTrack)||e.videoTrack.u)?b.j:e.videoTrack.j,b.J+=1,LW(e.xe,b,!0)):a.videoData.kb&&a.videoData.kb.cN();a.u.isActive()||lY(a.va,f);return!0};
bUa=function(a,b){if(a.videoData.Va)return!1;a.j.Fb+=1;if(10>=a.j.Fb)return!1;b.exiled=""+a.j.Fb;a.Sd("qoe.start15s",b);a.va.ma("playbackstalledatstart");return!0};
cUa=function(a){return a.B?!0:"yt"!==a.j.Va?!1:a.videoData.Va?25>a.videoData.Ec:!a.videoData.Ec};
dUa=function(a){if(!a.B){a.B=!0;var b=a.va.getPlayerState();b=g.OL(b)||b.isSuspended();a.va.Om();b&&!cK(a.videoData)||a.va.ma("signatureexpired")}};
fUa=function(a,b){if((a=a.va.ue())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.Df();b.details.merr=c?c.toString():"0";b.details.mmsg=a.Ef()}};
hUa=function(a,b){if("403"===b.details.rc){var c=b.errorCode;c="net.badstatus"===c||"manifest.net.retryexhausted"===c}else c=!1;if(!c&&!a.B)return!1;b.details.sts="19345";if(cUa(a))return dI(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new cI("qoe.restart",b)),a.Sd(b.errorCode,b.details),dUa(a),!0;6048E5<(0,g.R)()-a.j.qf&&gUa(a,"signature");return!1};
gUa=function(a,b){try{window.location.reload(),a.Sd("qoe.restart",{detail:"pr."+b})}catch(c){}};
iUa=function(a,b){var c=a.j.B;c.D=!1;c.j=!0;a.Sd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});lY(a.va,!0)};
jUa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d};
kUa=function(a,b,c){this.Y=a;this.AC=b;this.va=c;this.Z=this.I=this.J=this.u=this.j=this.C=this.T=this.B=0;this.D=!1};
mUa=function(a,b,c){!a.Y.N("html5_tv_ignore_capable_constraint")&&g.IH(a.Y)&&(c=c.compose(lUa(a,b)));return c};
oUa=function(a,b){var c,d=nUa(a,null==(c=b.j)?void 0:c.videoInfos);c=a.va.getPlaybackRate();return 1<c&&d?(a=sva(a.Y.B,b.j.videoInfos,c),new CC(0,a,!0,"o")):new CC(0,0,!1,"o")};
nUa=function(a,b){return b&&g.IH(a.Y)?b.some(function(c){return 32<c.video.fps}):!1};
pUa=function(a,b){var c=a.va.yE();if(a.N("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.mO&&FC(b.videoData.Pk))a=c.mO,b.videoData.Pk=new CC(0,a,!1,"u");else{var d;if(c&&(null==(d=c.ZI)?0:d.length)&&FC(b.videoData.Pk)){a=new Map;d=g.t(b.j.videoInfos);for(var e=d.next();!e.done;e=d.next())e=e.value,a.set(+e.itag,e.video.j);d=[];c=g.t(c.ZI);for(e=c.next();!e.done;e=c.next())(e=a.get(e.value))&&d.push(e);a=Math.max.apply(Math,g.u(d));b.videoData.Pk=new CC(0,a,!1,"u")}}return b.videoData.Pk};
lUa=function(a,b){if(g.IH(a.Y)&&SC(a.Y.B,TC.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.yH(a.Y)&&(e=window.screen&&window.screen.width?new g.ke(window.screen.width,window.screen.height):null);e||(e=a.Y.Sl?a.Y.Sl.clone():a.AC.uj());(AH||oW||d)&&e.scale(g.RH());d=e;EJ(b.videoData)||cK(b.videoData);b=b.j.videoInfos;if(b.length){e=.85;var f=b[0].video;"MESH"!==f.projectionType&&"EQUIRECTANGULAR"!==f.projectionType&&"EQUIRECTANGULAR_THREED_TOP_BOTTOM"!==f.projectionType||wH||(e=
.45);a=g.wG(a.Y.experiments,"html5_viewport_undersend_maximum");for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c=new CC(0,"93"===c.itag?g.DC[XE(d.width,d.height)]:d.j,!1,"r")}else c=lJ;c=c.j}c&&(c=Math.max(c,360));return new CC(0,c,!1,"r")};
qUa=function(a){var b,c,d,e;return g.A(function(f){switch(f.j){case 1:return a.j.j&&"function"===typeof(null==(b=navigator.mediaCapabilities)?void 0:b.decodingInfo)?g.y(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.t(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ia(0);break}e=d.value;return g.y(f,oua(e),4);case 4:d=c.next(),f.Ia(3)}})};
sUa=function(a,b){if(!b.videoData.B||a.N("html5_disable_performance_downgrade"))return!1;6E4<g.Ra()-a.T&&(a.B=0);a.B++;a.T=g.Ra();if(4!==a.B)return!1;rUa(a,b.videoData.B);return!0};
uUa=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.wG(a.Y.experiments,"html5_df_downgrade_thresh"),f=a.N("html5_log_media_perf_info"),h=g.wG(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.R)()-a.C?0:f||0<e||0<h))return!1;var l=((0,g.R)()-a.C)/1E3;a.C=(0,g.R)();c=c.tD();if(!c)return!1;var m=c.droppedVideoFrames-a.I,n=c.totalVideoFrames-a.Z;a.I=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var p=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||
-1;f&&a.Y.C&&a.va.xa("ddf",{dr:c.droppedVideoFrames,de:c.totalVideoFrames,comp:p});if(d)return a.j=0,a.u=0,!1;d=60<n?m/n:0;0<d&&(a.J=d);a.u=0<h&&60*d>h?a.u+1:0;if(45<(n-m)/l||!e||g.IH(a.Y))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;rUa(a,b.videoData.B);a.va.xa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},tUa()));return!0};
vUa=function(a,b){return 0>=g.wG(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
rUa=function(a,b){var c=b.Hb,d=b.video.fps;b=b.video.j-1;var e=lG();c=ava(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.UA("yt-player-performance-cap",e,604800));a.va.Vy()};
wUa=function(a,b){if(!b.j.j)return a.D?new CC(0,360,!1,"b"):lJ;for(var c=!1,d=!1,e=g.t(b.j.videoInfos),f=e.next();!f.done;f=e.next())oF(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.wG(a.Y.experiments,"html5_performance_cap_floor");a=a.Y.isMobile?240:f;b=g.t(b.j.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!oF(e))if(f=mG(e.Hb,e.video.fps),e=e.video.j,Math.max(f,a)>=e){d=e;break}return new CC(0,d,!1,"b")};
xUa=function(a){a=a.va.Lr();return a.isInline()?new CC(0,480,!1,"v"):a.isBackground()&&60<fz()/1E3?new CC(0,360,!1,"v"):lJ};
zUa=function(a,b,c){if(a.Y.experiments.eb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.IH(a.Y)&&(1080<=kG(-1)||b.osid))return lJ;var d=g.wG(a.Y.experiments,"html5_autonav_quality_cap"),e=g.wG(a.Y.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&fz()/1E3>e?(c&&(d=yUa(a,c,d)),new CC(0,d,!1,"e")):lJ};
yUa=function(a,b,c){if(a.N("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b<a.length;b++)if(a[b].video.j<c)return a[b-1].video.j;return c};
AUa=function(a,b){a.N("html5_log_media_perf_info")&&(a.va.xa("perfdb",tUa()),a.va.xa("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.va.xa("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.j)?void 0:d.smooth)}).map(function(c){return c.itag}).join("-")}))};
tUa=function(){return Lc(lG(),function(a){return""+a})};
oY=function(a,b){g.E.call(this);this.provider=a;this.I=b;this.j=-1;this.D=!1;this.u=-1;this.playerState=new g.IL;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.C=0;this.delay=new g.Zn(this.send,6E4,this);this.B=!1;g.H(this,this.delay)};
BUa=function(a){0<=a.j||(3===a.provider.va.getVisibilityState()?a.D=!0:(a.j=g.qV(a.provider),a.delay.start()))};
CUa=function(a){if(!(0>a.u)){var b=g.qV(a.provider),c=b-a.C;a.C=b;8===a.playerState.state?a.playTimeSecs+=c:g.RL(a.playerState)&&!g.V(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
EUa=function(a,b){b?DUa.test(a):(a=g.Bv(a),Object.keys(a).includes("cpn"))};
GUa=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Ev(a)&&Fv()){if(h){var n;2!==(null==(n=FUa.uaChPolyfill)?void 0:n.state.type)?h=null:(h=FUa.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}(h=g.O("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.O("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.O("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);e&&(m.Authorization="Bearer "+e);h||m["X-Goog-Visitor-Id"]||e||c?l.withCredentials=!0:b.N("html5_send_cpn_with_options")&&DUa.test(a)&&(l.withCredentials=!0)}0<Object.keys(m).length&&(l.headers=m);f&&(l.onFinish=f);return 1<Object.keys(l).length?l:null};
HUa=function(a,b,c,d,e,f,h,l){Fv()&&c.token&&(a=Cv(a,{ctt:c.token,cttype:c.QN,mdx_environment:c.mdxEnvironment}));f||l&&d.N("nwl_skip_retry")?(null==b?b={}:EUa(a,d.N("html5_assert_cpn_with_regex")),h?Ky().sendAndWrite(a,b):Ky().sendThenWrite(a,b,l)):d.zj?(b=b||{},EUa(a,d.N("html5_assert_cpn_with_regex")),c=d.zj,c.queue.push({url:a,options:b}),Bva(c)):b?(EUa(a,d.N("html5_assert_cpn_with_regex")),g.Pv(a,b)):g.Ay(a,e)};
g.qY=function(a){g.E.call(this);var b=this;this.provider=a;this.logger=new g.$V("qoe");this.j={};this.sequenceNumber=1;this.kb=NaN;this.Qd="N";this.T=this.Pb=this.Fb=this.gb=this.C=0;this.Ba=this.dc="";this.Ka=this.J=NaN;this.tb=0;this.zc=-1;this.Rb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Wa=this.ya=this.isOffline=this.oa=!1;this.Ec=[];this.ea=null;this.Va=this.D=this.Pa=this.I=!1;this.u=-1;this.Ma=!1;this.Ac=new g.Zn(this.V0,750,this);this.Z=this.adCpn="";this.adFormat=void 0;this.Fd=0;
this.Lc=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));this.Xa=!1;this.yf={oG:function(c){b.oG(c)},
X9a:function(){return b.B}};
g.H(this,this.Ac);(a="function"===typeof navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.ea=c});
g.pY(this,0,"vps",["N"])};
g.pY=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
IUa=function(a,b){var c=a.provider.va.getCurrentTime();g.pY(a,b,"cmt",[c.toFixed(3)]);c=a.provider.va.Zj();if(a.B&&1E3*c>a.B.CT+100&&a.B){var d=a.B,e=d.isAd;c=1E3*c-d.CT;a.Aa=1E3*b-d.c6-c-d.S5;c=(0,g.R)()-c;b=a.Aa;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.J&&(h.cttAuthInfo={token:d.J,videoId:d.videoId});h.startTime=c-b;jC(f,h);iC({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);hC("pbs",c,f)}else c=a.provider.va.Ki(),c.I!==d.clientPlaybackNonce?
(c.D=d.clientPlaybackNonce,c.u=b):g.sA(new g.Sw("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.xa("gllat",{l:a.Aa.toFixed(),prev_ad:+e});delete a.B}};
LUa=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.qV(a.provider);var c=a.provider.va.TA();if(a.provider.Y.N("html5_report_accurate_bwm")){var d=c.Rm-(a.J||0);0<d&&g.pY(a,b,"bwm",[d,(c.yq-(a.Ka||0)).toFixed(3)])}else isNaN(a.J)||isNaN(c.Rm)||(d=c.Rm-a.J,0<d&&g.pY(a,b,"bwm",[d,(c.yq-a.Ka).toFixed(3)]));isNaN(a.J)&&c.Rm&&a.isOffline&&a.oG(!1);a.J=c.Rm;a.Ka=c.yq;isNaN(c.bandwidthEstimate)||g.pY(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.Y.C&&0!==Object.keys(c.j).length&&a.xa("bwinfo",c.j);if(a.provider.Y.C||
a.provider.Y.N("html5_log_meminfo"))d=USa(),Object.values(d).some(function(e){return void 0!==e})&&a.xa("meminfo",d);
a.ea&&g.pY(a,b,"bat",[a.ea.level,a.ea.charging?"1":"0"]);d=a.provider.va.getVisibilityState();a.zc!==d&&(g.pY(a,b,"vis",[d]),a.zc=d);IUa(a,b);(d=JUa(a.provider))&&d!==a.tb&&(g.pY(a,b,"conn",[d]),a.tb=d);KUa(a,b,c)};
KUa=function(a,b,c){if(!isNaN(c.Mt)){var d=c.Mt;c.u<d&&(d=c.u);g.pY(a,b,"bh",[d.toFixed(3)])}};
MUa=function(a,b,c){g.aI(a.provider.Y,g.bK(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.Y.N("kevlar_woffle")||a.provider.Y.N("qoe_nwl_downloads"))e=!0}else a.provider.Y.N("qoe_with_networkless")&&(e=!0);var f=a.provider.Y.N("qoe_send_and_write"),h=a.provider.Y;d=GUa(b,h,a.provider.Y.pageId,a.provider.Y.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.N("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,
HUa(b,d,{token:a.provider.videoData.J,QN:a.provider.videoData.Qj,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.ya)):e?(e=a.provider.Y.N("networkless_ajax"),h={method:"POST",postBody:c},f&&a.ya?Ky().sendAndWrite(b,h):e?g.Pv(b,{method:"POST",postBody:c}):Ky().sendThenWrite(b,h)):(f=c,f=void 0===f?"":f,jpa(b,f)||g.Ay(b,void 0,void 0,void 0,f))})};
NUa=function(a){for(var b=0,c=g.t(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(Ok(a.j[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.Zn(a.reportStats,0,a)).start()};
OUa=function(a){a.provider.videoData.Wh&&rY(a,"prefetch");a.provider.videoData.Ec&&a.xa("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Ec});a.provider.videoData.Rb&&rY(a,"monitor");a.provider.videoData.isLivePlayback&&rY(a,"live");a.provider.videoData.Ti&&a.xa("ctrl",{mode:a.provider.videoData.Ti},!0);if(a.provider.videoData.Ui){var b=a.provider.videoData.Ui.replace(/,/g,"_");a.xa("ytp",{type:b},!0)}a.provider.videoData.NW&&(b=a.provider.videoData.NW.replace(/,/g,"."),a.xa("ytrexp",
{ids:b},!0));var c=a.provider.videoData;b=a.provider.Y.N("enable_white_noise")||a.provider.Y.N("enable_webgl_noop");c=g.UJ(c)||g.SJ(c)||g.TJ(c)||g.VJ(c);(b||c)&&(b=(0,g.sY)())&&(a.j.gpu=[b]);cK(a.provider.videoData)&&g.pY(a,g.qV(a.provider),"dt",["1"]);a.provider.Y.C&&(b=(0,g.R)()-a.provider.Y.qf,a.xa("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.D=!0;a.kb=g.Lv(function(){a.reportStats()},1E4)};
QUa=function(a,b,c){var d=g.qV(a.provider);PUa(a,d,b,0,c);LUa(a,d);NUa(a)};
PUa=function(a,b,c,d,e){var f=a.provider.Y.deviceParams.cbrver;"Chrome"===a.provider.Y.deviceParams.cbr&&/^96[.]/.test(f)&&"net.badstatus"===c&&/rc\.500/.test(e||"")&&RUa(a,3);f=a.provider.va.getCurrentTime();d=1===d?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+AO());e&&c.push(SUa(e));g.pY(a,b,"error",c);a.D=!0};
TUa=function(a){0<=a.u||(a.provider.Y.mf||3!==a.provider.va.getVisibilityState()?a.u=g.qV(a.provider):a.Ma=!0)};
rY=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
UUa=function(a,b,c,d,e){var f=g.qV(a.provider);1!==b&&3!==b&&5!==b||g.pY(a,f,"vps",[a.Qd]);var h=a.j.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.j.xvt=h};
RUa=function(a,b){if(!a.Va){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.Va=!0}};
SUa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
VUa=function(a){this.provider=a;this.J=!1;this.j=0;this.C=-1;this.lastUpdateTime=NaN;this.u=0;this.segments=[];this.I=this.D=0;this.Z=this.provider.va.getVolume();this.T=this.provider.va.isMuted()?1:0;this.B=tY(this.provider)};
uY=function(a){a.B.startTime=a.u;a.B.endTime=a.j;a.segments.length&&g.fb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.B:a.segments.length&&a.B.isEmpty()||a.segments.push(a.B);a.D+=a.j-a.u;a.B=tY(a.provider);a.u=a.j};
XUa=function(a){WUa(a);a.I=g.Lv(function(){a.update()},100);
a.lastUpdateTime=g.qV(a.provider);a.B=tY(a.provider)};
WUa=function(a){window.clearInterval(a.I);a.I=NaN};
YUa=function(a,b,c){c-=a.lastUpdateTime;return b===a.j&&.5<c};
ZUa=function(a,b,c,d){this.Y=b;this.segments=[];this.experimentIds=[];this.Pa=this.Rb=this.isFinal=this.Wd=this.tb=this.Ac=this.autoplay=this.autonav=!1;this.dc="yt";this.D=this.I=null;this.sendVisitorIdHeader=this.Va=!1;this.pageId="";this.C="watchtime"===c;this.B="playback"===c;this.ea="delayplay"===c;this.Z="atr"===c;this.Xd="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.Z?"/api/stats/"+c:"//"+b.Tl+"/api/stats/"+c;this.qf=this.B&&b.Z&&a.D;d&&(this.Rb=d.fs,d.rtn&&(this.D=d.rtn),this.C?(this.playerState=
d.state,0<d.rti&&(this.I=d.rti)):(this.Xe=d.mos,this.nf=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.zc=d.inview),d.size&&(this.Wa=d.size));this.deviceParams=g.Yc(b.deviceParams);this.Md=b.Ec;this.experimentIds=b.experiments.experimentIds;this.Ma=b.eh;this.dc=b.Va;this.region=b.region;this.userAge=b.userAge;this.gb=b.fh;this.Lc=fz();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.oa=b.N("vss_pings_using_networkless")||b.N("kevlar_woffle");this.lf=
b.N("vss_final_ping_send_and_write");this.ya=b.N("vss_use_send_and_write");this.pageId=b.pageId;this.mf=b.N("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.xd=b.u&&b.N("embeds_append_synth_ch_headers");g.tH(b)&&(this.Ka=b.ea);this.accessToken=g.bK(a);a.Oe&&(this.Oe=a.Oe);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=aK(a);this.B&&(this.Ac=a.N("html5_enable_log_server_autoplay")&&a.qq&&"adunit"==YJ(a)?!0:!1);this.autonav=
a.isAutonav||this.autonav;this.Gd=ZJ(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.tb=a.D;a.J&&(this.J=a.J,this.kb=a.Qj);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.vL;this.Fb=a.Fb;a.B&&(this.videoFormat=a.B.itag,a.I&&a.I.itag!==this.videoFormat&&(this.audioFormat=a.I.itag));a.j&&KC(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.qf?"embedded_unbranded":YJ(a);this.Pa=a.xk;this.Fd=a.Sl;if(b=MJ(a))this.livePlaybackType=b;this.jd=a.Ay;this.Aa=a.Aa;this.eventId=
a.eventId;this.playlistId=a.HO||a.playlistId;this.Hw=a.Hw;this.Ti=a.Ti;this.Ui=a.Ui;this.En=a.En;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.BI=a.BI;this.referrer=a.referrer;this.Cn=a.MW||a.Cn;this.Xa=a.JM;this.Jw=a.Jw;this.userGenderAge=a.userGenderAge;this.iz=a.iz;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn};
$Ua=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.aI(a.Y,a.accessToken).then(function(d){return GUa(a.uri,a.Y,a.pageId,c,d,b,a.xd)})};
bVa=function(a,b){return function(){a.Y.N("html5_simplify_pings")?(a.j=a.Ba,a.Ec=b(),a.Lc=0,a.send()):$Ua(a).then(function(c){var d=a.uri,e=aVa(a),f=a.oa,h=a.ya;e.cmt=e.len;e.lact="0";var l=b().toFixed(3);e.rt=Number(l).toString();d=g.ci(d,e);f?(null==c&&(c={}),h?Ky().sendAndWrite(d,c):Ky().sendThenWrite(d,c)):c?g.Pv(d,c):g.Ay(d)})}};
aVa=function(a){var b={ns:a.dc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.u(a.j),fmt:a.videoFormat,fs:a.Rb?"1":"0",rt:a.u(a.Ec),adformat:a.adFormat,content_v:a.Gd,euri:a.Md,lact:a.Lc,live:a.livePlaybackType,cl:(496261446).toString(),mos:a.Xe,state:a.playerState,volume:a.nf};a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autoplay&&(b.autoplay="1");a.Ac&&(b.sautoplay="1");a.tb&&(b.dni="1");!a.C&&a.Ka&&(b.epm=cVa[a.Ka]);a.isFinal&&(b["final"]="1");a.Pa&&(b.splay="1");a.Fb&&
(b.delay=a.Fb);a.Ma&&(b.hl=a.Ma);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.gb&&(b.uga=a.gb+a.userAge);void 0!==a.Ba&&(b.len=a.u(a.Ba));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.D&&(b.rtn=a.u(a.D));a.Cn&&(b.feature=a.Cn);a.Ti&&(b.ctrl=a.Ti);a.Ui&&(b.ytr=a.Ui);a.audioFormat&&(b.afmt=a.audioFormat);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Pb&&(b.lio=a.u(a.Pb));a.C?(b.idpj=a.Fd,b.ldpj=a.jd,null!=
a.I&&(b.rti=a.u(a.I)),a.iz&&(b.ald=a.iz)):void 0!==a.adType&&(b.at=a.adType);a.Wa&&(a.B||a.ea||a.C)&&(b.size=a.Wa);null!=a.zc&&(a.B||a.ea||a.C)&&(b.inview=a.u(a.zc));a.C&&(b.volume=vY(a,g.Lg(a.segments,function(d){return d.volume})),b.st=vY(a,g.Lg(a.segments,function(d){return d.startTime})),b.et=vY(a,g.Lg(a.segments,function(d){return d.endTime})),Pl(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=vY(a,g.Lg(a.segments,function(d){return d.playbackRate}))),Pl(a.segments,function(d){return"-"!==
d.j})&&(b.als=g.Lg(a.segments,function(d){return d.j}).join(",")));
b.muted=vY(a,g.Lg(a.segments,function(d){return d.muted?1:0}));
Pl(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=vY(a,g.Lg(a.segments,function(d){return d.visibilityState})));
Pl(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=vY(a,g.Lg(a.segments,function(d){return d.connectionType})));
Pl(a.segments,function(d){return 0!==d.u})&&(b.blo=vY(a,g.Lg(a.segments,function(d){return d.u})));
Pl(a.segments,function(d){return"-"!==d.C})&&(b.cc=g.Lg(a.segments,function(d){return d.C}).join(","));
Pl(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Lg(a.segments,function(d){return d.clipId}).join(","));
if(Pl(a.segments,function(d){return!!d.B})){var c="au";
a.B&&(c="au_d");b[c]=g.Lg(a.segments,function(d){return d.B}).join(",")}Fv()&&a.J&&(b.ctt=a.J,b.cttype=a.kb,b.mdx_environment=a.mdxEnvironment);
a.Xd&&(b.etype=void 0!==a.T?a.T:0);a.Xa&&(b.uoo=a.Xa);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=dVa[a.livingRoomAppMode]||a.livingRoomAppMode);a.Oe?eVa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.BI,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.playlistId&&(b.list=a.playlistId),a.En&&(b.ssrt="1"),a.Jw&&(b.upt=a.Jw));if(a.B||a.ea)a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=
a.embedsRctn);return b};
eVa=function(a,b){if(b&&a.Oe)for(var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]),f=g.t(Object.keys(a.Oe)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Oe[h]||(b[h]=a.Oe[h])};
vY=function(a,b){return g.Lg(b,a.u).join(",")};
fVa=function(a,b){a.attestationResponse&&$Ua(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.oa?a.ya?Ky().sendAndWrite(b,c):Ky().sendThenWrite(b,c):g.Pv(b,c)})};
wY=function(a){g.E.call(this);this.provider=a;this.currentPlayerState="paused";this.C=NaN;this.I=[10,10,10,40];this.T=this.J=0;this.ya=this.oa=this.Ba=this.Aa=this.ea=this.Z=this.u=!1;this.B=this.D=NaN;this.j=new VUa(a)};
hVa=function(a){if(!a.u){a.provider.Y.N("disable_embedpage_playback_logging")||16623!==a.provider.videoData.oC||g.sA(Error("Playback for EmbedPage"));var b=xY(a,"playback");a:{if(a.provider.Y.N("web_player_use_server_vss_schedule")){var c,d=null==(c=a.provider.videoData.getPlayerResponse())?void 0:c.playbackTracking,e=null==d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null==d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.provider.videoData.Sl,h=a.provider.videoData.Ay,
l=-f;e=g.t(e);for(var m=e.next();!m.done;m=e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.I=c;break a}}a.I=[10+a.provider.videoData.Sl,10,10,40+a.provider.videoData.Ay-a.provider.videoData.Sl,40]}XUa(a.j);b.D=yY(a);0<a.B&&(b.j-=a.B);b.send();a.provider.videoData.Cw&&(b=a.provider.Y,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Cw,oid:d.ZS,ptchn:d.YS,pltype:d.hT,content_v:ZJ(d)},d.Yv&&Object.assign(c,{m:d.Yv}),b=g.ci(b.Ba+"ptracking",
c),zY(a,b));a.provider.videoData.Fb||gVa(a);a.u=!0;a=a.j;a.j=a.provider.va.Zj();a.lastUpdateTime=g.qV(a.provider);!(0===a.u&&5>a.j)&&2<a.j-a.u&&(a.u=a.j);a.J=!0}};
yY=function(a,b){b=void 0===b?NaN:b;var c=g.qV(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.I[a.J];a.J+1<a.I.length&&a.J++;var e=b+d;a.C=g.Kv(function(){if(!a.isDisposed()){a.C=NaN;var f=iVa(a),h=jVa(a,f);h.I=e;var l=1E3<a.T;!(1<f.length)&&f[0].isEmpty()||l||(h.D=yY(a,e));h.send();a.T++}},1E3*(e-c));
return a.D=e};
AY=function(a){g.Mv(a.C);a.C=NaN};
iVa=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.u||uY(a);var b=a.segments;a.segments=[];return b};
xY=function(a,b){var c=kVa(a.provider);Object.assign(c,{state:a.currentPlayerState});b=new ZUa(a.provider.videoData,a.provider.Y,b,c);b.j=a.provider.va.Zj();a.provider.videoData.isLivePlayback||(b.Ba=a.provider.va.getDuration());a.provider.videoData.j&&(c=a.provider.videoData.j.Ff(b.j))&&(b.Pb=c-b.j);b.Ec=g.qV(a.provider);b.segments=[tY(a.provider)];return b};
jVa=function(a,b){var c=xY(a,"watchtime");if(0<a.B){for(var d=g.t(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.B,e.endTime-=a.B;c.j-=a.B}else c.j=a.j.j;c.segments=b;return c};
BY=function(a,b){var c=lVa(a,!isNaN(a.D));b&&(a.D=NaN);return c};
lVa=function(a,b){var c=jVa(a,iVa(a));!isNaN(a.D)&&b&&(c.I=a.D);return c};
gVa=function(a){a.provider.videoData.remarketingUrl&&!a.Aa&&(zY(a,a.provider.videoData.remarketingUrl),a.Aa=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.Ba&&(zY(a,a.provider.videoData.youtubeRemarketingUrl),a.Ba=!0);a.provider.videoData.googleRemarketingUrl&&!a.oa&&(zY(a,a.provider.videoData.googleRemarketingUrl),a.oa=!0);a.provider.videoData.ppvRemarketingUrl&&!a.ya&&(zY(a,a.provider.videoData.ppvRemarketingUrl),a.ya=!0);a.Xy()};
mVa=function(a){if(!a.isDisposed()&&a.u){a.currentPlayerState="paused";var b=BY(a);b.isFinal=!0;b.send();a.dispose()}};
nVa=function(a,b,c){if(!a.Z){c||(c=xY(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.Z=!0}};
zY=function(a,b){var c=a.provider.Y;g.aI(a.provider.Y,g.bK(a.provider.videoData)).then(function(d){var e=a.provider.Y.pageId,f=a.provider.Y.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.Y.N("vss_pings_using_networkless")||a.provider.Y.N("kevlar_woffle"),l=a.provider.Y.N("allow_skip_networkless");d=GUa(b,c,e,f,d);HUa(b,d,{token:a.provider.videoData.J,QN:a.provider.videoData.Qj,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
oVa=function(){this.endTime=this.startTime=-1;this.C="-";this.playbackRate=1;this.visibilityState=0;this.B="";this.volume=this.connectionType=this.u=0;this.muted=!1;this.j=this.clipId="-"};
pVa=function(a,b,c){this.videoData=a;this.Y=b;this.va=c;this.j=void 0};
g.qV=function(a){return qVa(a)()};
qVa=function(a){if(!a.j){var b=g.Qa(function(d){var e=(0,g.R)();d&&631152E6>=e&&(a.va.xa("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.Y.N("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.va.jM()}return a.j};
kVa=function(a){var b=a.va.Ep()||{};b.fs=a.va.iB();b.volume=a.va.getVolume();b.muted=a.va.isMuted()?1:0;b.mos=b.muted;b.inview=a.va.HA();b.size=a.va.yA();b.clipid=a.va.sx();a=a.videoData;var c={};a.B&&(c.fmt=a.B.itag,a.I&&a.I.itag!=a.B.itag&&(c.afmt=a.I.itag));c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Hl&&(c.infringe=1);a.xk&&(c.splay=1);var d=MJ(a);d&&(c.live=d);a.qq&&(c.sautoplay=1);a.Do&&(c.autoplay=1);a.Hw&&(c.sdetail=a.Hw);a.Aa&&(c.partnerid=
a.Aa);a.osid&&(c.osid=a.osid);return Object.assign(b,c)};
JUa=function(a){if(navigator.connection&&navigator.connection.type)return rVa[navigator.connection.type]||rVa.other;if(g.IH(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
tY=function(a){var b=new oVa,c;b.C=(null==(c=kVa(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.va.getPlaybackRate();c=a.va.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.Md&&(b.u=1);c=a.va.getAudioTrack();c.Rc&&c.Rc.id&&"und"!==c.Rc.id&&(b.B=c.Rc.id);b.connectionType=JUa(a);b.volume=a.va.getVolume();b.muted=a.va.isMuted();b.clipId=a.va.sx()||"-";b.j=a.videoData.AO||"-";return b};
g.CY=function(a){g.E.call(this);var b=this;this.provider=a;this.qoe=this.j=null;this.Yh=void 0;this.u=new Map;this.provider.videoData.isValid()&&!this.provider.videoData.Nk&&(this.j=new wY(this.provider),g.H(this,this.j),this.qoe=new g.qY(this.provider),g.H(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Yh=this.provider.videoData.clientPlaybackNonce)&&this.u.set(this.Yh,this.j));this.B=new oY(this.provider,function(c){b.xa("h5h",c)});
g.H(this,this.B)};
sVa=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Yh){var b;null!=(b=a.u.get(a.Yh))&&uY(b.j)}else a.j&&uY(a.j.j)};
tVa=function(a){a.B.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Qd&&(b.Qd="N");var c=g.qV(b.provider);g.pY(b,c,"vps",[b.Qd]);b.I||(0<=b.u&&(b.j.user_intent=[b.u.toString()]),b.I=!0);b.provider.Y.C&&b.xa("finalized",{});b.ya=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.t(a.u.values()),c=b.next();!c.done;c=b.next())mVa(c.value);else a.j&&mVa(a.j);a.dispose()};
uVa=function(a,b){a.j&&nVa(a.j,b)};
vVa=function(a){if(!a.j)return null;var b=xY(a.j,"atr");return function(c){a.j&&nVa(a.j,c,b)}};
wVa=function(a,b,c,d){c.adFormat=c.Md;var e=b.va;b=new wY(new pVa(c,b.Y,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Zj:function(){return e.Zj()},
TA:function(){return e.TA()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
WA:function(){return e.WA()},
getVisibilityState:function(){return e.getVisibilityState()},
Ki:function(){return e.Ki()},
Ep:function(){return e.Ep()},
getVolume:function(){return e.getVolume()},
isMuted:function(){return e.isMuted()},
iB:function(){return e.iB()},
sx:function(){return e.sx()},
HA:function(){return e.HA()},
yA:function(){return e.yA()},
jM:function(){e.jM()},
JB:function(){e.JB()},
xa:function(f,h){e.xa(f,h)}}));
b.B=d;g.H(a,b);return b};
xVa=function(){this.Mt=0;this.B=this.yq=this.Rm=this.u=NaN;this.j={};this.bandwidthEstimate=NaN};
yVa=function(){this.j=g.zB;this.array=[]};
AVa=function(a,b,c){var d=[];for(b=zVa(a,b);b<a.array.length;++b){var e=a.array[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
BVa=function(a,b){var c=[];a=g.t(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
CVa=function(a){return a.array.slice(zVa(a,0x7ffffffffffff),a.array.length)};
zVa=function(a,b){a=Bb(a.array,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
DVa=function(a,b){var c=NaN;a=g.t(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
EVa=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
DY=function(a,b,c,d){g.E.call(this);this.T=a;this.oa=b;this.D=c;this.Z=d;this.u=NaN;this.I=this.J=this.started=!1;this.B=[];this.ea=new g.Zn(this.hn,250,this);g.H(this,this.ea);this.C=new g.Zn(this.hn,0,this);g.H(this,this.C);this.j=new yVa};
FVa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.Z(g.AB(d.namespace),d):a.Z(g.BB(d.namespace),d)}};
GVa=function(a){this.u=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.IH(a)&&(this.C=.01)};
EY=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
FY=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(0<b&&a.mediaTime===b)return c-a.u>(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1};
HVa=function(a,b){this.videoData=a;this.j=b};
IVa=function(a,b,c){return wBa(b,c).then(function(){return Wv(new HVa(b,b.C))},function(d){d instanceof Error&&wv(d);
var e=xF('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=zF('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.FG(a.B,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.wu(),d:!!b.tb,drm:b.zm(),f18:0<=b.Ok.indexOf("itag=18"),c18:e};b.j&&(b.zm()?(e.f142=!!b.j.j["142"],e.f149=!!b.j.j["149"],e.f279=!!b.j.j["279"]):(e.f133=!!b.j.j["133"],e.f140=!!b.j.j["140"],e.f242=!!b.j.j["242"]),e.cAAC=f,e.cAVC=zF('video/mp4; codecs="avc1.42001E"'),
e.cVP9=zF('video/webm; codecs="vp9"'));b.Z&&(e.drmsys=b.Z.keySystem,f=0,b.Z.j&&(f=Object.keys(b.Z.j).length),e.drmst=f);return new cI(d,e,h)})};
JVa=function(a){this.D=a;this.B=this.u=0;this.C=new cW(50)};
GY=function(a,b,c){g.FB.call(this);this.videoData=a;this.experiments=b;this.T=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.I=0;c=new KVa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.Rb?c.u=3:g.QJ(a)&&(c.u=2);"NORMAL"===a.latencyClass&&(c.T=!0);var d=oBa(a);c.D=2===d||-1===d;c.D&&(c.ea++,21530001===IJ(a)&&(c.I=g.wG(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(bw("trident/")||bw("edge/"))c.B=Math.max(c.B,g.wG(b,"html5_platform_minimum_readahead_seconds")||3);g.wG(b,"html5_minimum_readahead_seconds")&&
(c.B=g.wG(b,"html5_minimum_readahead_seconds"));g.wG(b,"html5_maximum_readahead_seconds")&&(c.Z=g.wG(b,"html5_maximum_readahead_seconds"));b.eb("html5_force_adaptive_readahead")&&(c.C=!0);switch(IJ(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.J=b.eb("html5_live_smoothly_extend_max_seekable_time")}this.policy=c;this.J=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Rb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(IJ(a)){case 21530001:b=
1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=LVa(this,b)};
MVa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.J&&3===oBa(a.videoData)&&--c;return HY(a)*c};
IY=function(a,b){var c=a.lm(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*HY(a);return b>=c-a};
NVa=function(a,b,c){b=IY(a,b);c||b?b&&(a.B=!0):a.B=!1;a.J=2===a.policy.u||3===a.policy.u&&a.B};
OVa=function(a,b){b=IY(a,b);a.D!==b&&a.ma("livestatusshift",b);a.D=b};
HY=function(a){return a.videoData.j?fG(a.videoData.j)||5:5};
LVa=function(a,b){b=Math.max(Math.max(a.policy.ea,Math.ceil(a.policy.B/HY(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.Z/HY(a))),b)};
KVa=function(){this.ea=1;this.B=0;this.Z=Infinity;this.C=!0;this.j=2;this.u=1;this.D=!1;this.I=NaN;this.J=this.T=!1};
LY=function(a){g.E.call(this);this.va=a;this.Y=this.va.V();this.C=this.j=0;this.B=new g.Zn(this.D,1E3,this);this.Ba=new JY({delayMs:g.wG(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.ea=new JY({delayMs:g.wG(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.Ka=KY(this,"html5_seek_set_cmt");this.ya=KY(this,"html5_seek_jiggle_cmt");this.Aa=KY(this,"html5_seek_new_elem");this.Wa=KY(this,"html5_unreported_seek_reseek");this.J=KY(this,"html5_long_rebuffer_jiggle_cmt");this.Z=new JY({delayMs:2E4});
this.T=KY(this,"html5_long_rebuffer_new_elem_shorts");this.I=KY(this,"html5_ads_preroll_lock_timeout");this.Ma=new JY({delayMs:g.wG(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,gx:!this.Y.N("html5_report_slow_ads_as_error")});this.Pa=new JY({delayMs:g.wG(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,gx:!this.Y.N("html5_skip_slow_buffering_ad")});this.Va=new JY({delayMs:g.wG(this.Y.experiments,"html5_slow_start_timeout_delay_ms")});this.oa=KY(this,"html5_slow_start_no_media_source");
this.u={};g.H(this,this.B)};
KY=function(a,b){var c=g.wG(a.Y.experiments,b+"_delay_ms");a=a.Y.N(b+"_cfl");return new JY({delayMs:c,gx:a})};
MY=function(a,b,c,d,e,f,h,l){PVa(b,c)?(a.Sd(e,b,h),b.gx||f()):(b.vG&&b.triggerTimestamp&&!b.B?(c=(0,g.R)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.triggerTimestamp>b.vG,c=b.j&&c-b.j>b.RM||f?b.B=!0:!1):c=!1,c&&(l=Object.assign({},a.jc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.va.xa("workaroundReport",l),d&&(b.reset(),a.u[e]=!1)))};
JY=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.RM?1E3:b.RM,d=void 0===b.vG?3E4:b.vG;b=void 0===b.gx?!1:b.gx;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.RM=c;this.vG=d;this.gx=b};
PVa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.R)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1};
TVa=function(a){g.E.call(this);var b=this;this.va=a;this.Y=this.va.V();this.videoData=this.va.getVideoData();this.policy=new QVa(this.Y);this.ea=new LY(this.va);this.playbackData=null;this.Pa=new g.vF;this.I=this.j=this.Ja=this.mediaElement=null;this.u=NaN;this.C=0;this.Aa=NaN;this.B=null;this.Ba=NaN;this.D=this.J=null;this.Z=this.T=!1;this.ya=new g.Zn(function(){RVa(b,!1)},2E3);
this.Xa=new g.Zn(function(){NY(b)});
this.Ma=new g.Zn(function(){b.T=!0;SVa(b)});
this.timestampOffset=0;this.Va=!0;this.Ka=0;this.Wa=NaN;this.oa=new g.Zn(function(){var c=b.Y.lf;c.j+=1E4/36E5;c.j-c.B>1/6&&(Yva(c),c.B=c.j);b.oa.start()},1E4);
g.H(this,this.ea);g.H(this,this.Pa);g.H(this,this.ya);g.H(this,this.Ma);g.H(this,this.Xa);g.H(this,this.oa)};
VVa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new JVa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(wJ(a.videoData)&&a.Ja){var c=a.Ja.VD.Li()||0;break a}if(a.videoData.j){c=a.videoData.j.T;break a}}c=0}return c}),a.j=new GY(a.videoData,a.Y.experiments,function(){return a.ge(!0)}));
UVa(a)||(a.C=a.C||a.videoData.startSeconds||0)};
XVa=function(a,b){(a.Ja=b)?WVa(a,!0):OY(a)};
YVa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.I&&d){var e=a.I;if(e.j&&!(c>=e.u&&c<e.B)){var f=e.j.ai(c);-1!==f&&(e.u=e.j.getStartTime(f),e.B=e.u+e.j.getDuration(f),f=Date.now()/1E3-e.j.Ff(f),f-=e.D(),e.C.add(f))}}a.j&&(d&&(d=a.j,e=a.mediaElement?FL(a.mediaElement):0,d.C++,3>d.C||3E3>g.Ra()-d.I||(d.I=g.Ra(),d.u.push(e),50<d.u.length&&d.u.shift())),d=a.j,NVa(d,c,void 0===b?!0:b),OVa(d,c),b&&RVa(a,!0))};
RVa=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!IY(c,d)&&c.Rp()?(c.policy.T&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.Kd()?Math.min(c.videoData.Kd()+10,c.lm()):NaN;if(!isNaN(c)){if(a.Ja&&b&&(b=a.ya.isActive(),d=a.j.lm(),(d=mTa(a.Ja,d-a.Ld()))&&!b)){a.ya.start();a.va.xa("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Ld()});a.seekTo(d+a.Ld(),{Ee:"playbacktimeline_inBufferSeek"});return}a.seekTo(c,{Ee:"playbacktimeline_pegToLive"})}}};
WVa=function(a,b){if(a.j&&a.Ja){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.j,b.u.length){c=b.j;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){var d=LVa(b,b.j-1);break b}if(b.policy.C){d=LVa(b,b.j+1);break b}}d=b.j}b.j=d;if(c=c!==b.j)b.u=[],b.C=0}else c=!1;c&&(c=a.va.wc,b=MVa(a.j),c.qoe&&(c=c.qoe,g.pY(c,g.qV(c.provider),"lra",[b]),c.xa("live-readahead-seconds",{v:b})));b=a.Ja;c=a.j.j;d=a.j;d=(d.j-1+
d.policy.j)*HY(d);var e=b.B;a=a.j.policy.I;e.Cg=Math.max(c-1,0);e.Z=a;b.C&&(b.C.ea=d)}};
ZVa=function(a,b){a.C=b};
SVa=function(a){$Va(a).then(void 0,function(){OY(a)});
aWa(a).then(function(c){bWa(a,c)},function(){OY(a)});
HV(a.va);if(a.Y.C){var b=a.jc();b["native"]=""+ +a.Z;b.tgt=""+a.u;a.va.xa("startSeek",b)}};
$Va=function(a){a.J||(a.Ja?isFinite(a.u)?a.J=a.Ja.seek(a.u-a.timestampOffset):(uJ(a.videoData),a.J=nTa(a.Ja),a.u=a.Ja.getCurrentTime()+a.timestampOffset):a.J=nf(a.u-a.timestampOffset));return a.J};
aWa=function(a){var b=a.B;b||(a.B=new oH,b=a.B,NY(a));return b};
cWa=function(a,b,c){return isNaN(b)?NaN:g.de(b,a.Kd(),a.ge(c))};
NY=function(a){if(a.B)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&0<a.mediaElement.Tj()&&0<EL(a.mediaElement)&&(a.u=cWa(a,a.u,!1)),!a.mediaElement||!dWa(a))a.Xa.start(750);else if(!isNaN(a.u)&&isFinite(a.u)&&a.Ba!==a.u-a.timestampOffset){var b=a.mediaElement.getCurrentTime()-a.u;if(Math.abs(b)<=a.Ka)a.B&&a.B.resolve(a.mediaElement.getCurrentTime());else if(!uJ(a.videoData)&&a.u>=a.ge()-.1)a.u=a.ge(),a.B.resolve(a.ge()),rV(a.va);else try{var c=a.u-a.timestampOffset;
a.mediaElement.seekTo(c);a.ea.j=c;a.Ba=c;a.C=a.u}catch(d){}}};
dWa=function(a){if(!a.mediaElement||0===a.mediaElement.Tj()||0<a.mediaElement.Df())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.zm())return b;if(0<=a.u){var c=a.mediaElement.SA();if(c.length||!b)return FF(c,a.u-a.timestampOffset)}return b};
bWa=function(a,b){a.D&&(a.D.resolve(b),a.va.ma("SEEK_COMPLETE"),a.Y.C&&(b=a.jc(),b["native"]=""+ +a.Z,a.va.xa("seekEnd",b)));OY(a)};
OY=function(a){a.u=NaN;a.Ba=NaN;a.B=null;a.J=null;a.D=null;a.T=!1;a.Z=!1;a.Ka=0;a.ya.stop();a.Ma.stop()};
eWa=function(a){if(a.mediaElement){for(var b=g.t(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Pa.S(a.mediaElement,c.value,function(d){var e=a.mediaElement;switch(d.type){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.B||a.Z&&d!==a.u)a.B=new oH,a.Ba=d,e=e.getCurrentTime(),a.ea.j=e,a.seekTo(d,{Ee:"playbacktimeline_mediaElementEvent"}),a.Z=!0;break;case "seeked":a.B&&a.B.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":if(a.Va){e=
"ss";d=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.zc&&!UVa(a)&&(e="mss",d=a.videoData.zc);a.N("html5_prioritize_st_start_seconds")&&!d&&a.videoData.qj&&(e="stss",d=a.videoData.qj);var f;if(f=!d)f=(RJ(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||UVa(a))&&!!a.videoData.j;f&&(d=a.videoData.liveUtcStartSeconds||a.videoData.zc,e="utc",d=a.ge()-a.Ff(a.ge())+d);!d&&a.videoData.qj&&(e="stss",d=a.videoData.qj);f={};if(d){if(d>a.ge()||d<a.Kd())f.minSeekableTime=
a.Kd(),f.maxSeekableTime=a.ge(),a.va.xa("startSecondsOutOfBounds",f),a.videoData.Pd()&&(d=cWa(a,d,!1));a.seekTo(d,{Ee:"playbacktimeline_startSeconds"});f[e]=d;a.va.xa("startSeconds",f);a.Va=!1}else a.videoData.zc&&(f[e]=a.videoData.zc+a.Ld(),a.va.xa("startSeconds",f))}NY(a);break;case "progress":NY(a)}});
a.D||a.C||!a.mediaElement.UM()||a.seekTo(.01,{Ee:"playbacktimeline_setupMediaElement"})}};
UVa=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds};
fWa=function(a,b){a.va.xa("sdai",{adj4t:b.toFixed(3)});a.Aa=b;b+=1;a.u=b;a.C=b;aWa(a).then(function(c){bWa(a,c)},function(){OY(a)})};
QVa=function(a){this.j=a.N("html5_live_smoothly_extend_max_seekable_time")};
PY=function(){this.finished=this.started=!1};
lWa=function(a){function b(e){return c.Nl&&(!d.pn||!d.u.D)||"yt"!==c.Va&&(38===d.Aa&&"books"===c.playerStyle||30===d.Aa&&"docs"===c.playerStyle||33===d.Aa&&"google-live"===c.playerStyle)?gWa(a,d,e):hWa(a,d).then(function(){QY(a,d)},function(f){QY(a,d,!0);
throw f;})}
var c=a.V(),d=a.getVideoData();d.isDisposed();d.Ma=!0;return iWa(a)?jWa(a,d).then(function(){QY(a,d)},function(e){e=eI(e);
if(dI(e.severity))return QY(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(kWa=!0);a.handleError(e);return b("onesie")}):b("gvi")};
iWa=function(a){var b=a.V();if(b.N("html5_disable_onesie")||!b.N("html5_onesie")||!b.N("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.Va)return!1;var c=b.yj;if(!c||!c.j)return a.handleError(new cI("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.D<(0,g.R)()&&(a.xa("okexp","1"),(c=a.LA())&&b.N("html5_prefer_trusted_host_on_key_expiration"))){c.u=!0;var d;(b=null==(d=c.j.get(0))?void 0:$C(d.location))&&!bV(b)&&c.j.delete(0)}if(kWa)return a.xa("ost3","1"),!1;d={};return 0<Object.keys(d).length?
(d.onesie="0",a.handleError(new cI("html5.missingapi",d)),!1):!0};
mWa=function(a){var b=nM();oM(b,a);return g.xO(b,VFa())};
jWa=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,w,x,z,B,C,G,F,K,L,N,ba,T,S,ea,Q;return g.A(function(sa){if(1==sa.j)return b.fetchType="onesie",c=oJa(b,a.getPlayerSize(),a.getVisibilityState()),d=new SX(a,c),g.y(sa,d.fetch(),2);e=sa.u;f={player_response:e};b.Ma=!1;h=a.Tf.rs;if(d.Gg){l=g.t(d.Gg.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.t(n),q=p.next().value,r=p.next().value,w=q,x=r,h.j.set(w,x,180),w===b.videoId&&(z=x.au(),b.zI=z);h.ox=d}B=g.t(d.GR.entries());for(C=B.next();!C.done;C=B.next())G=
C.value,F=g.t(G),K=F.next().value,L=F.next().value,N=K,ba=L,h.u.set(N,ba,180);g.pJ(b,f,!0);if(b.Ma||nJ(b))return sa.return(Promise.resolve());h.j.yg();h.u.yg();b.zI=[];T={};S="onesie.response";ea=0;b.errorCode?(S="auth",T.ec=b.errorCode,T.ed=b.errorDetail,T.es=b.fm||"",ea=2):(T.successButUnplayable="1",T.disposed=""+ +b.isDisposed(),T.afmts=""+ +/adaptiveFormats/.test(e),T.cpn=b.clientPlaybackNonce);Q=new cI(S,T,ea);return sa.return(Promise.reject(Q))})};
hWa=function(a,b){var c,d,e,f,h,l,m,n,p,q;return g.A(function(r){switch(r.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){r.Ia(4);break}if(!(0<f)){r.Ia(5);break}return g.y(r,zf(5E3),6);case 6:h=new g.Sw("Retrying OnePlatform request",{attempt:f}),g.sA(h);case 5:return g.qa(r,7),g.y(r,nWa(a,b),9);case 9:return r.return();case 7:l=g.ua(r);m=eI(l);n=m.errorCode;d&&"manifest.net.badstatus"===n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return r.return(Promise.reject(m));
a.handleError(m);if(dI(m.severity)){r.Ia(4);break}case 3:f++;r.Ia(2);break;case 4:return p=c?"auth":"manifest.net.retryexhausted",q=c?2:1,r.return(Promise.reject(new cI(p,{backend:"op"},q)))}})};
nWa=function(a,b){function c(T){2===T.readyState&&a.Tc("ps_c")}
var d,e,f,h,l,m,n,p,q,r,w,x,z,B,C,G,F,K,L,N,ba;return g.A(function(T){switch(T.j){case 1:b.fetchType="gp";d=a.V();e=g.aI(d,g.bK(b));if(!e.j){f=e.getValue();T.Ia(2);break}return g.y(T,e.j,3);case 3:f=T.u;case 2:return h=f,l=mWa(h),m=oJa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.jO(oWa),p=g.bK(b),q=(0,g.R)(),r=!1,w="empty",x=0,a.Tc("psns"),z={ly:c},g.y(T,g.qM(l,m,n,void 0,z),4);case 4:B=T.u;a.Tc("psnr");if(b.isDisposed())return T.return();B?"error"in B&&B.error?(r=!0,w="esf:"+B.error.message,
x=B.error.code):B.errorMetadata&&(r=!0,w="its",x=B.errorMetadata.status):r=!0;if(r)return C=0,G=((0,g.R)()-q).toFixed(),F={backend:"op",rc:""+x,rt:G,reason:w,has_kpt:b.Ac?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.Ka?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Ti||"",token_eq:p===g.bK(b)?"1":"0"},K="manifest.net.connect",429===x?(K="auth",C=2):200<
x&&(K="manifest.net.badstatus",400===x&&(C=2)),T.return(Promise.reject(new cI(K,F,C)));b.Ma=!1;g.pJ(b,{raw_player_response:B},!0);if(b.errorCode)return L={ec:b.errorCode,ed:b.errorDetail,es:b.fm||""},T.return(Promise.reject(new cI("auth",L,2)));if(!b.Ma&&!nJ(b))return N=b.isAd()?"auth":"manifest.net.retryexhausted",ba=b.isAd()?2:1,T.return(Promise.reject(new cI(N,{successButUnplayable:"1",hasMedia:OJ(b)?"1":"0"},ba)));g.pa(T)}})};
gWa=function(a,b,c){function d(){return!0}
function e(x){x=eI(x);if(dI(x.severity))return Promise.reject(x);a.handleError(x);return!1}
var f,h,l,m,n,p,q,r,w;return g.A(function(x){switch(x.j){case 1:var z=a.V(),B=a.getPlayerSize(),C=a.getVisibilityState();a.isFullscreen();var G=window.location.search;if(38===b.Aa&&"books"===z.playerStyle)G=b.videoId.indexOf(":"),G=g.ci("//web.archive.org/web/20230104105643/https://play.google.com/books/volumes/"+b.videoId.slice(0,G)+"/content/media",{aid:b.videoId.slice(G+1),sig:b.JZ});else if(30===b.Aa&&"docs"===z.playerStyle)G=g.ci("https://web.archive.org/web/20230104105643/https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.authKey,eurl:z.Ec});
else if(33===b.Aa&&"google-live"===z.playerStyle)G=g.ci("//web.archive.org/web/20230104105643/https://google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{"yt"!==z.Va&&g.rA(Error("getVideoInfoUrl for invalid namespace: "+z.Va));var F={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:z.Ec,ps:z.playerStyle,el:YJ(b),hl:z.eh,list:b.playlistId,agcid:b.IO,aqi:b.adQueryId,sts:19345,lact:fz()};Object.assign(F,z.deviceParams);z.forcedExperiments&&(F.forced_experiments=z.forcedExperiments);b.Ka?(F.vvt=b.Ka,b.mdxEnvironment&&
(F.mdx_environment=b.mdxEnvironment)):g.bK(b)&&(F.access_token=g.bK(b));b.adFormat&&(F.adformat=b.adFormat);0<=b.slotPosition&&(F.slot_pos=b.slotPosition);b.breakType&&(F.break_type=b.breakType);null!==b.MM&&(F.ad_id=b.MM);null!==b.bO&&(F.ad_sys=b.bO);null!==b.wH&&(F.encoded_ad_playback_context=b.wH);b.KM&&(F.tpra="1");z.captionsLanguagePreference&&(F.cc_lang_pref=z.captionsLanguagePreference);z.kb&&2!==z.kb&&(F.cc_load_policy=z.kb);var K=g.Gw(g.Fw.getInstance(),65);g.SH(z)&&null!=K&&!K&&(F.device_captions_on=
"1");z.mute&&(F.mute=z.mute);b.annotationsLoadPolicy&&2!==z.annotationsLoadPolicy&&(F.iv_load_policy=b.annotationsLoadPolicy);b.Zv&&(F.endscreen_ad_tracking=b.Zv);(K=z.ya.get(b.videoId))&&K.KC&&(F.ic_track=K.KC);b.ya&&(F.itct=b.ya);aK(b)&&(F.autoplay="1");b.mutedAutoplay&&(F.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(F.autonav="1");b.mI&&(F.noiba="1");b.isMdxPlayback&&(F.mdx="1",F.ytr=b.Ui);b.mdxControlMode&&(F.mdx_control_mode=b.mdxControlMode);b.mp&&(F.ytrcc=b.mp);b.rI&&(F.utpsa="1");b.isFling&&
(F.is_fling="1");b.isInlinePlaybackNoAd&&(F.mute="1");b.vnd&&(F.vnd=b.vnd);b.forceAdsUrl&&(K=3===b.forceAdsUrl.split("|").length,F.force_ad_params=K?b.forceAdsUrl:"||"+b.forceAdsUrl);b.Wh&&(F.preload=b.Wh);B.width&&(F.width=B.width);B.height&&(F.height=B.height);b.xk&&(F.splay="1");b.ypcPreview&&(F.ypc_preview="1");ZJ(b)&&(F.content_v=ZJ(b));b.Rb&&(F.livemonitor=1);z.authUser&&(F.authuser=z.authUser);z.pageId&&(F.pageid=z.pageId);z.Xa&&(F.ei=z.Xa);z.u&&(F.iframe="1");b.contentCheckOk&&(F.cco="1");
b.racyCheckOk&&(F.rco="1");z.D&&b.wI&&(F.live_start_walltime=b.wI);z.D&&b.Ql&&(F.live_manifest_duration=b.Ql);z.D&&b.playerParams&&(F.player_params=b.playerParams);z.D&&b.cycToken&&(F.cyc=b.cycToken);z.D&&b.cO&&(F.tkn=b.cO);0!==C&&(F.vis=C);z.enableSafetyMode&&(F.enable_safety_mode="1");b.Ac&&(F.kpt=b.Ac);b.zn&&(F.kids_age_up_mode=b.zn);b.kidsAppInfo&&(F.kids_app_info=b.kidsAppInfo);b.Kw&&(F.upg_content_filter_mode="1");z.widgetReferrer&&(F.widget_referrer=z.widgetReferrer.substring(0,128));b.oa?
(B=null!=b.oa.latitudeE7&&null!=b.oa.longitudeE7?b.oa.latitudeE7+","+b.oa.longitudeE7:",",B+=","+(b.oa.clientPermissionState||0)+","+(b.oa.locationRadiusMeters||"")+","+(b.oa.locationOverrideToken||"")):B=null;B&&(F.uloc=B);b.xn&&(F.internalipoverride=b.xn);z.embedConfig&&(F.embed_config=z.embedConfig);z.Nk&&(F.co_rel="1");0<z.ancestorOrigins.length&&(F.ancestor_origins=Array.from(z.ancestorOrigins).join(","));void 0!==z.homeGroupInfo&&(F.home_group_info=z.homeGroupInfo);void 0!==z.livingRoomAppMode&&
(F.living_room_app_mode=z.livingRoomAppMode);z.enablePrivacyFilter&&(F.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(F.is_living_room_deeplink="1");b.Tv&&b.Uv&&(F.clip=b.Tv,F.clipt=b.Uv);b.Xv&&(F.disable_watch_next="1");b.un&&(F.forced_by_var="1");for(var L in F)!pWa.has(L)&&F[L]&&512<String(F[L]).length&&(g.sA(Error("GVI param too long: "+L)),F[L]="");L=z.Ba;g.BH(z)&&(L=tB(L.replace(/\b(?:www|web)([.-])/,"tv$1"))||z.Ba);z=g.ci(L+"get_video_info",F);G&&(z=Zma(z,G));G=z}f=G;l=(h=b.isAd())?1:
3;m=0;case 2:if(!(m<l)){x.Ia(4);break}n=f;if(!(0<m)){x.Ia(5);break}return g.y(x,zf(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=Dv(f,p);case 5:return g.y(x,qWa(b,n).then(d,e),7);case 7:if(q=x.u)return x.return();m++;x.Ia(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";w=h?2:1;if(!h&&1E-4>Math.random())try{g.sA(new g.Sw("b/152131571",btoa(f)))}catch(N){}return x.return(Promise.reject(new cI(r,{backend:"gvi"},w)))}})};
qWa=function(a,b){function c(B){if(!a.isDisposed()){B=B?B.status:-1;var C=0,G=((0,g.R)()-p).toFixed();G={backend:"gvi",rc:""+B,rt:G};var F="manifest.net.connect";429===B?(F="auth",C=2):200<B&&(F="manifest.net.badstatus",400===B&&(C=2));return Promise.reject(new cI(F,G,C))}}
function d(B){return c(B.xhr)}
var e,f,h,l,m,n,p,q,r,w,x,z;return g.A(function(B){if(1==B.j){a.fetchType="gvi";e=a.V();var C={};a.wL&&(C.ytrext=a.wL);(l=g.Uc(C)?void 0:C)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Dv(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b);m={};e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData);(n=CG(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);0<Object.keys(m).length&&
(f.headers=m);p=(0,g.R)();return g.y(B,UF(Sv,h,f).then(void 0,d),2)}q=B.u;if(!q||!q.responseText)return B.return(c(q));a.Ma=!1;r=zv(q.responseText);g.pJ(a,r,!0);if(a.errorCode)return w={ec:a.errorCode,ed:a.errorDetail,es:a.fm||""},B.return(Promise.reject(new cI("auth",w,2)));if(!a.Ma&&!nJ(a))return x=a.isAd()?"auth":"manifest.net.retryexhausted",z=a.isAd()?2:1,B.return(Promise.reject(new cI(x,{successButUnplayable:"1"},z)));g.pa(B)})};
QY=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.A(function(l){if(1==l.j){d=a.V();if(c&&(!g.VH(d)||"embedded"!==YJ(b))||b.Xv||"adunit"!==YJ(b)&&(g.IH(d)||JH(d)||g.CH(d)||g.BH(d)||"WEB_CREATOR"===BG(d)))return l.return();e=g.aI(d,g.bK(b));return e.j?g.y(l,e.j,3):(f=e.getValue(),l.Ia(2))}2!=l.j&&(f=l.u);h=f;return l.return(rWa(a,b,h))})};
rWa=function(a,b,c){var d,e,f,h,l;return g.A(function(m){if(1==m.j){g.qa(m,2);d=mWa(c);var n=b.V();g.Fw.getInstance();var p={context:g.mP(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===YJ(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.Nk&&(p.showContentOwnerOnly=!0);b.yO&&(p.showShortsOnly=!0);g.Gw(0,141)&&(p.autonavState=g.Gw(0,140)?"STATE_OFF":"STATE_ON");if(g.SH(n)){n=g.Gw(0,65);n=
null!=n?!n:!1;var q=!!g.VA("yt-player-sticky-caption");p.captionsRequested=n&&q}e=p;f=g.jO(sWa);a.Tc("wn_s");return g.y(m,g.qM(d,e,f),4)}if(2!=m.j)return h=m.u,a.Tc("wn_r"),!h||"error"in h&&h.error||(l=h,g.zH(b.V())&&l.trackingParams&&(p=l.trackingParams,fM(dM(),p)),g.pJ(b,{raw_watch_next_response:h},!1)),g.ra(m,0);g.ua(m);g.pa(m)})};
tWa=function(a){a.Tc("vir");a.Tc("ps_s");xC("vir",void 0,"video_to_ad");var b=lWa(a);b.then(function(){a.Tc("virc");xC("virc",void 0,"video_to_ad");a.Tc("ps_r");xC("ps_r",void 0,"video_to_ad")},function(){a.Tc("virc");
xC("virc",void 0,"video_to_ad")});
return b};
g.TY=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.mJ(a):m;n=void 0===n?!0:n;g.FB.call(this);var p=this;this.Y=a;this.playerType=b;this.Cb=c;this.AC=d;this.getVisibilityState=f;this.visibility=h;this.Tf=l;this.videoData=m;this.x_=n;this.logger=new g.$V("VideoPlayer");this.Xz=new GVa(this.Y);this.Ye=null;this.vy=new jY;this.xp=null;this.ri=new kUa(this.Y,this.AC,this);this.uS=!0;this.mediaSource=this.Ja=null;this.Km=[];this.Eo=new PY;this.uf=this.SB=null;this.iq=new PY;this.ZF=null;this.IK=this.Xr=
!1;this.aG=NaN;this.playerState=new g.IL;this.cG=[];this.cz=new g.vF;this.cm=new mY(this);this.mediaElement=null;this.Nu=new g.Zn(this.H3,15E3,this);this.aN=this.GF=!1;this.ov=NaN;this.GD=!1;this.WI=0;this.XI=new g.Zn(this.fN,4500,this);this.hB=!1;this.oF=NaN;this.EN=new dW(new Map([["bufferhealth",function(){var q=p.fd;return q.mediaElement?FL(q.mediaElement):0}],
["bandwidth",function(){return p.aK()}],
["networkactivity",function(){return p.Y.schedule.Z}],
["livelatency",function(){return p.isAtLiveHead()&&p.Wc()?uWa(p):NaN}],
["rawlivelatency",function(){return uWa(p)}]]));
this.rB=0;this.loop=!1;this.playbackRate=1;this.aT=0;this.fd=new TVa(this);this.JQ=!1;this.bG=[];this.kL=this.HU=0;this.YM=this.qW=!1;this.yq=this.Rm=0;this.II=new g.Zn(this.L0,0,this);this.td=null;this.FT=new g.Zn(this.B_,0,this);this.hG=new g.Zn(this.dV,3E4,this);this.v2=[this.cz,this.II,this.Nu,this.hG,this.XI,this.EN,this.FT];this.dg=function(){var q=p.wc;q.provider.Y.mf||3===q.provider.va.getVisibilityState()||(q.provider.Y.mf=!0);sVa(q);var r=q.B;r.D&&0>r.j&&3!==r.provider.va.getVisibilityState()&&
BUa(r);q.qoe&&(q=q.qoe,q.Ma&&0>q.u&&q.provider.Y.mf&&TUa(q));p.Ja&&RY(p);p.Y.An&&!p.videoData.backgroundable&&p.mediaElement&&!p.jh()&&(p.isBackground()&&p.mediaElement.rD()?(p.xa("bgmobile",{suspend:1}),p.Om(!0,!0)):p.isBackground()||SY(p)&&p.xa("bgmobile",{resume:1}))};
this.Hi=new DY(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.AB("endcr")||g.V(p.playerState,32)||rV(p);
e(q,r,p.playerType)});
g.H(this,this.Hi);g.H(this,this.fd);vWa(this,m);this.videoData.subscribe("dataupdated",this.r5,this);this.videoData.subscribe("dataloaded",this.lJ,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.xa,this);this.videoData.subscribe("ctmpstr",this.PM,this);!this.wc||this.wc.isDisposed();this.wc=new g.CY(new pVa(this.videoData,this.Y,this));RNa(this.dg);this.visibility.subscribe("visibilitystatechange",this.dg)};
UY=function(a){return a.N("html5_not_reset_media_source")&&!a.zm()&&!a.videoData.isLivePlayback};
vWa=function(a,b){if(2===a.playerType||a.Y.Cn)b.vQ=!0;var c=Jza(b.Md,b.yD,a.Y.u,a.Y.D);c&&(b.adFormat=c);2===a.playerType&&(b.Do=!0);if(a.isFullscreen()||a.Y.u)c=g.VA("yt-player-autonavstate"),b.autonavState=c||(a.Y.u?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&wWa(a,b.endSeconds)};
yWa=function(a){if(a.videoData.gb){var b=a.Tf.Qc();a.videoData.Ty=a.videoData.Ty||(null==b?void 0:b.dK());a.videoData.Zy=a.videoData.Zy||(null==b?void 0:b.fK())}if(FBa(a.videoData)||!eK(a.videoData))b=a.videoData.errorDetail,a.Jg(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.fm||void 0);1===a.playerType&&VY.isActive()&&a.hG.start();a.videoData.wj=a.getUserAudio51Preference();a.N("html5_generate_content_po_token")&&xWa(a)};
YK=function(a){return a.mediaElement&&a.mediaElement.At()?a.mediaElement.ub():null};
WY=function(a){if(a.videoData.isValid())return!0;a.Jg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.pV=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.wc;BUa(c.B);c.qoe&&TUa(c.qoe)}a.Xr=b;!WY(a)||a.Eo.Yr()?g.IH(a.Y)&&a.videoData.isLivePlayback&&a.Eo.Yr()&&!a.Eo.isFinished()&&!a.Xr&&a.lJ():(a.Eo.start(),b=a.wc,g.qV(b.provider),b.qoe&&OUa(b.qoe),a.lJ())};
zWa=function(a){var b=a.videoData;tWa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=eI(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Jg(c.errorCode,2,unescape(a.videoData.errorReason),bI(c.details),a.videoData.errorDetail,a.videoData.fm||void 0):a.handleError(c))})};
WNa=function(a,b){a.td=b;a.Ja&&kTa(a.Ja,new g.bY(b))};
BWa=function(a){if(!g.V(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.Km=g.ub(a.videoData.Ba)),OJ(a.videoData)){a.Cb.tick("bpd_s");XY(a).then(function(){a.Cb.tick("bpd_c");if(!a.isDisposed()){a.Xr&&(a.kc(KL(KL(a.playerState,512),1)),SY(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&wWa(a,c.endSeconds);a.Eo.finished=!0;YY(a,"dataloaded");a.iq.Yr()&&AWa(a);AUa(a.ri,a.uf)}});
a.N("html5_log_media_perf_info")&&a.xa("loudness",{v:a.videoData.Rf.toFixed(3)},!0);var b=QBa(a.videoData);b&&a.xa("playerResponseExperiment",{id:b},!0);a.VI()}else YY(a,"dataloaded")};
XY=function(a){ZY(a);a.uf=null;var b=IVa(a.Y,a.videoData,a.jh());a.SB=b;a.SB.then(function(c){CWa(a,c)},function(c){a.isDisposed()||(c=eI(c),a.visibility.isBackground()?($Y(a,"vp_none_avail"),a.SB=null,a.Eo.reset()):(a.Eo.finished=!0,a.Jg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",bI(c.details))))});
return b};
nY=function(a){XY(a).then(function(){return SY(a)});
g.PL(a.playerState)&&a.playVideo()};
CWa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.uf=b;VVa(a.fd,a.uf);if(a.videoData.isLivePlayback){var c=DOa(a.Tf.rs,a.videoData.videoId)||a.Ja&&!isNaN(a.Ja.ea);c=a.N("html5_onesie_live")&&c;0<a.videoData.zc&&!wJ(a.videoData)||c||a.seekTo(a.ge(),{Ee:"videoplayer_playbackData"})}a.videoData.C.j?a.Ja?g.sA(Error("Duplicated Loader")):(c=g.wG(a.Y.experiments,"html5_onesie_defer_content_loader_ms"))&&g.nb(a.Km,"ad")&&DOa(a.Tf.rs,a.videoData.NZ)?g.Kv(function(){a.isDisposed()||a.Ja||
DWa(a)},c):DWa(a):!a.videoData.C.j&&cK(a.videoData)&&a.MF(new ZW(a.videoData.videoId||"",4));
aZ(a);qUa(b).then(function(){a.Vy();RY(a)})}};
EWa=function(a){a.mediaElement&&a.mediaElement.Nw();g.pV(a);if(WY(a)&&!g.V(a.playerState,128)){a.iq.Yr()||(a.iq.start(),a.videoData.An?a.kc(KL(a.playerState,4)):a.kc(KL(KL(a.playerState,8),1)));var b=a.Tf.Qc();b=b&&2===b.getPlayerType();a.N("html5_suspend_for_preroll_join_latency")&&b&&1===a.getPlayerType()&&!g.V(a.playerState,512)&&a.kc(KL(a.playerState,512));AWa(a)}};
AWa=function(a){a.isDisposed();if(!a.iq.isFinished()&&a.Eo.isFinished()&&!g.V(a.playerState,128)&&!a.Km.length){if(!a.Hi.started){var b=a.Hi;b.started=!0;b.hn()}if(!a.Zn()){a.Ja&&(b=a.Ja.timing,a.IK=!!b.u&&!!b.J);a.iq.isFinished()||(a.iq.finished=!0);b=a.N("html5_onesie_live")&&a.Ja&&!isNaN(a.Ja.ea);!a.videoData.isLivePlayback||0<a.videoData.zc&&!wJ(a.videoData)||b||(a.seekTo(Infinity,{Ee:"videoplayer_readying"}),a.isBackground()&&(a.aN=!0));b=a.wc;if(b.qoe){b=b.qoe;b.provider.videoData.Bn&&rY(b,
b.provider.videoData.Bn);if(b.provider.videoData.isLivePlayback){var c=b.provider.videoData.j;wJ(b.provider.videoData)&&rY(b,"manifestless");c&&fG(c)&&rY(b,"live-segment-"+fG(c).toFixed(1))}"yt"!==b.provider.Y.Va&&(b.j.len=[b.provider.videoData.lengthSeconds.toFixed(2)]);b.provider.videoData.cotn&&!cK(b.provider.videoData)&&b.oG(!0);b.provider.Y.C&&(c=ANa())&&b.xa("cblt",{m:c})}a.ma("playbackready",a);wC("pl_c",a.Cb.timerName)||(a.Cb.tick("pl_c"),xC("pl_c",void 0,"video_to_ad"));wC("pbr",a.Cb.timerName)||
(a.Cb.tick("pbr"),xC("pbr",void 0,"video_to_ad"))}}};
rV=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.kc(b?new g.IL(14):new g.IL)};
wWa=function(a,b){a.xp&&FWa(a);a.xp=new g.yB(1E3*b,0x7ffffffffffff);a.xp.namespace="endcr";a.addCueRange(a.xp)};
FWa=function(a){a.removeCueRange(a.xp);a.xp=null};
GWa=function(a,b,c,d){a.videoData.B=c;d&&bTa(a,b,d);d=g.bZ(a);a.wc.PB(new jUa(a.videoData,c,b,d?d.itag:""));c=a.ri;c.B=0;c.j=0;a.ma("internalvideoformatchange",a.videoData,"m"===b)};
g.bZ=function(a){var b=cZ(a);return FC(b)||!a.uf?null:g.ib(a.uf.j.videoInfos,function(c){return b.C(c)})};
bTa=function(a,b,c){if(c!==a.videoData.I){var d=!a.videoData.I;a.videoData.I=c;"m"!==b&&(b=d?"i":"a");a.wc.HB(new jUa(a.videoData,c,b,""));d||a.ma("internalaudioformatchange",a.videoData,"m"===b)}};
ZX=function(a,b){b&&a.Sd(new cI("qoe.restart",b));a.kc(KL(a.playerState,2048));dZ(a);b=a.videoData.j&&NC(a.videoData.j);var c=a.mediaElement&&a.mediaElement.isView();b||c?(a.Ja&&ZSa(a.Ja),lY(a)):(SY(a),g.PL(a.playerState)&&a.playVideo())};
cZ=function(a){if(a.uf){var b=a.ri;var c=a.uf;a=a.ju();if(b.va.Lr().isInline())var d=lJ;else b.N("html5_exponential_memory_for_sticky")?d=.5>nH(b.Y.lf,"sticky-lifetime")?"auto":GC[kG()]:d=GC[kG()],d=g.EC("auto",d,!1,"s");if(FC(d)){d=lUa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.t(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.j)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;jna()&&!g.IH(b.Y)&&WC(c.j.videoInfos[0])&&
(f=Math.min(f,g.DC.large));d=e.call(d,new CC(0,f,!1,"o"));e=d.compose;f=4320;!b.Y.isMobile||g.zH(b.Y)||iw()||b.Y.N("hls_for_vod")||b.Y.N("mweb_remove_360p_cap")||(f=g.DC.medium);(h=g.wG(b.Y.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.Ti&&!c.videoData.Nd&&(f=Math.min(f,h));h=g.wG(b.Y.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.wG(b.Y.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.t(l.videoInfos),
m=l.next();!m.done;m=l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.wG(b.Y.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=yUa(b,c,f);d=e.call(d,new CC(0,4320===f?0:f,!1,"d")).compose(xUa(b)).compose(zUa(b,c.videoData,c)).compose(wUa(b,c)).compose(pUa(b,c)).compose(oUa(b,c))}else b.N("html5_perf_cap_override_sticky")&&(d=d.compose(wUa(b,c))),b.N("html5_ustreamer_cap_override_sticky")&&(d=d.compose(pUa(b,c)));d=d.compose(oUa(b,
c));b=c.videoData.Lw.compose(d).compose(c.videoData.ZP).compose(a)}else b=lJ;return b};
GSa=function(a){var b=a.ri;a=a.videoData;var c=xUa(b);b.N("html5_disable_client_autonav_cap_for_onesie")||c.compose(zUa(b,a));return c};
g.HWa=function(a,b,c,d){a.videoData.Lw=b;if(a.uf&&c){c=a.ri;var e=a.uf;if(e.j.j){var f=kG(),h=e.j.videoInfos[0].video.j;if(!(f>h&&0!==h&&b.j===h)){var l;f=nUa(c,null==(l=e.j)?void 0:l.videoInfos);l=c.va.getPlaybackRate();1<l&&f&&(l=sva(c.Y.B,e.j.videoInfos,l),0!==b.j&&l<b.j&&c.va.setPlaybackRate(1));var m,n;e=(null==(m=e.videoData.B)?void 0:null==(n=m.video)?void 0:n.j)||0;g.UA("yt-player-quality",{quality:g.DC[HC(b)],previousQuality:e},31104E3);c.Y.schedule.policy.B=480<=kG();if(c.N("html5_exponential_memory_for_sticky")){b=
c.Y.lf;m=1;var p=void 0===p?!1:p;$va(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Gp["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Gp["sticky-lifetime"]=0);p&&.0625<nH(b,"sticky-lifetime")&&(m=2*b.Gp["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.j/m);b.Gp["sticky-lifetime"]=m;b.C.start()}if(c.N("html5_perf_cap_override_sticky"))if(c.N("html5_perserve_av1_perf_cap")){p=lG();c=g.t(Object.keys(p));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(p[b]=0);
g.UA("yt-player-performance-cap",p,604800)}else g.WA("yt-player-performance-cap")}}}a.Ja&&(a.Ja.xe.oa=d||"");aZ(a)};
xWa=function(a){a.videoData.videoId?a.Tf.YJ(a.videoData.videoId).then(function(b){a.videoData.b5a=b}):a.xa("pomvid",{})};
aZ=function(a){if(!a.isDisposed()&&!g.V(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)RY(a);else{var b=cZ(a),c=a.videoData;a:{var d=a.videoData.Gd;if(b.j){for(var e=g.t(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.ih(),l=g.DC[h.video.quality];if((!b.B||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.kb=d;GWa(a,b.reason,IWa(a,a.videoData.kb))}if(a.N("html5_check_unstarted")?g.PL(a.playerState):a.Wc())a.fd.Va=!1,a.playVideo()}};
RY=function(a){if(a.videoData.C&&a.videoData.C.j){var b=cZ(a);if(a.Ja&&(a=a.Ja,!a.isDisposed()&&!hPa(a.xe,b)&&a.videoTrack)){var c=a.xe.B;cTa(a,iPa(a.xe,b));XX(a);var d=OW(a.xe)&&"m"===b.reason&&a.xe.ea,e=a.policy.yj&&"l"===b.reason&&sX(a.videoTrack);b=c.j>b.j&&"b"===b.reason;c=a.xe.gb&&!MF();d||e||b||c?ZX(a.va,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):$X(a)}}};
JWa=function(a){var b;return!!(a.N("html5_native_audio_track_switching")&&g.kx&&(null==(b=a.videoData.B)?0:pF(b)))};
KWa=function(a){if(!JWa(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
MWa=function(a){var b=LWa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Rc.getName()===b})};
LWa=function(a){var b;if(a=null==(b=a.mediaElement)?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
DWa=function(a){for(var b=a.videoData.j,c=g.t(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.Y.deviceParams.c,cver:a.Y.deviceParams.cver})),d=c.next();!d.done;d=c.next()){var e=g.t(d.value);d=e.next().value;e=e.next().value;for(var f=g.t(Object.values(b.j)),h=f.next();!h.done;h=f.next())Ata(h.value.u,d,e);f=void 0;null==(f=b.Ma)||Ata(f,d,e)}c=a.Y;d=a.videoData;b=new g.QQ(c);e=rKa({hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,jo:d.jo});b.C=e;b.J=d.maxReadAheadMediaTimeMs/1E3||b.J;e=c.schedule;
e.B.Li()===e.policy.u?b.Wa=10:b.Wa=d.minReadAheadMediaTimeMs/1E3||b.Wa;b.lf=d.readAheadGrowthRateMs/1E3||b.lf;Bl&&(b.gb=41943040);b.dc=!TF();g.IH(c)||!TF()?(e=c.experiments,b.T=8388608,b.oa=524288,b.nj=5,b.Ec=2097152,b.ya=1048576,b.yn=1.5,b.Rk=!1,b.ac=4587520,fw()&&(b.ac=786432),b.B*=1.1,b.D*=1.1,b.Pb=!0,b.gb=b.T,b.Lc=b.oa,b.Xd=e.eb("persist_disable_player_preload_on_tv")||e.eb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.isMobile&&(b.B*=1.3,b.D*=1.3);g.yF&&bw("crkey")&&(e="CHROMECAST/ANCHOVY"===
c.deviceParams.cmodel,b.T=20971520,b.oa=1572864,e&&(b.ac=812500,b.xd=1E3,b.Gn=5,b.ya=2097152));g.vG&&(b.Pb=!0);c.supportsGaplessAudio()||(b.aq=!1);qH&&(b.Fb=!0);b.jd=c.N("html5_peak_shave");"onesie"===d.fetchType&&c.N("html5_disable_peak_shave_for_onesie")&&(b.jd=!1);var l;e=null==(l=d.j)?void 0:NC(l);if(wJ(d)){b.Md=!0;b.Ak=!0;b.kb=!0;b.eh=!0;b.Bn=!0;if("ULTRALOW"===d.latencyClass||"LOW"===d.latencyClass&&!c.N("html5_disable_low_pipeline"))b.Hl=2,b.Pl=4;b.vp=d.defraggedFromSubfragments;if(d.bf||c.N("html5_publish_all_cuepoints"))b.vn=
!0;g.QJ(d)&&(b.Rb=!1);b.wj=g.UH(c)}b.C.j=b.useUmp;d.isAd()&&(b.Fd=0,b.nf=0,b.Nk=g.wG(c.experiments,"html5_min_startup_buffered_ad_media_duration_secs"));HJ&&(b.Pa=!0,c.N("html5_aggressive_timeout_for_streaming_xhr")&&(b.xd=400,b.Lk=10,b.un=1,b.Sk=!0,b.Rf=5,b.Ol=2,b.qf=3,b.Gd=1.4),c.N("html5_streaming_xhr_expand_request_size")&&(b.ya=10485760,b.Xe=3));b.zc=c.N("html5_enable_subsegment_readahead_v3")||c.N("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===d.latencyClass;b.Ac=c.C;b.I=b.Ac&&
(/^rq[a-f]/.test(d.clientPlaybackNonce)||c.C);nw()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.deviceParams.cmodel)&&!c.N("html5_disable_move_pssh_to_moov")&&e&&(b.Pb=!1);f=0;c.N("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,d.isLivePlayback&&(f=g.wG(c.experiments,"ULTRALOW"===d.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":d.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||f));l=c.schedule;l.ya.j=wJ(d)?
.5:0;if(!l.policy.C&&f&&(l=l.B,f=Math.round(f*l.resolution),f!==l.j)){h=Array(f);var m=Math.min(f,l.u?l.j:l.valueIndex),n=l.valueIndex-m;0>n&&(n+=l.j);for(var p=0;p<m;++p)h[p]=l.values[(n+p)%l.j];for(;p<f;++p)h[p]=Infinity;l.j=f;l.values=h;l.valueIndex=m%f;l.u=m===f;l.C=!0;l.D=Tva(l)}b.Ok=d.isLivePlayback;switch(IJ(d)){case 21530001:b.Wh=c.N("html5_live_smoothly_extend_max_seekable_time");b.zc=!0;"LOW"===d.latencyClass?b.tb=g.wG(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===
d.latencyClass&&(b.tb=g.wG(c.experiments,"html5_jumbo_ull_subsegment_readahead_target"));b.Pk=!0;break;case 2153E4:b.zc=!1}d.Pd()&&(b.qj=1.3);b.Fb=b.Fb||d.FL;b.Va=d.gb;c.C&&(b.Ma=!0);d.gb&&!e&&(b.Mg=!0);d.gb&&d.isAd()&&(b.B*=1.6,b.D*=1.6);cK(d)&&(b.u=d.videoId,b.Zh=!0,b.En=4,d.sy&&0<d.sy.length&&(b.Wd=d.sy));b.yj=d.Nl;b.ea=nG(c,{},d.C||void 0);b.Ka=EJ(d)&&g.CH(c);b.Ba=PBa(d);l=480<=kG();d=g.wG(c.experiments,"html5_deadzone_multiplier")||1;b.B*=d;b.D*=d;if(d=g.wG(c.experiments,"html5_request_sizing_multiplier"))b.zn=
d;SC(c.B,TC.BITRATE)&&(b.ac=NaN);c.B.B&&(b.xk="; "+TC.EXPERIMENTAL.name+"=allowed");l&&(b.fh=0);c.N("debug_html5_random_stun_format")&&(b.Sf=!0);c.N("html5_log_audio_abr")&&(b.Gl=!0);c=a.getAudioTrack();c=c.Rc.isDefault?void 0:c;a.vy.yg();a:{l=a.Tf.rs;if(d=a.videoData.videoId)if(e=l.j.get(d)){l.j.remove(d);l=e;break a}l=void 0}a.Ja=new g.WX(a,a.Y.schedule,b,a.videoData.j,a.videoData.C,cZ(a),c,a.videoData.enableServerStitchedDai,l,a.videoData.Pa);b=NWa(a)?!0:a.Xr&&g.IH(a.Y)&&a.videoData.isLivePlayback;
a.Ja.initialize(a.getCurrentTime(),cZ(a),b);a.videoData.probeUrl&&(a.Ja.Aa=a.videoData.probeUrl);!a.Km.length&&!a.Xr||!a.N("woffle_disable_suspend_loader_killswitch")&&a.videoData.cotn||eZ(a,!1);XVa(a.fd,a.Ja);a.td&&kTa(a.Ja,new g.bY(a.td));g.dK(a.videoData)&&(b=a.Ja,b.policy.mf=b.policy.Tv,a.N("html5_offline_retry_index_db_read")&&(xAa=!0))};
ZY=function(a){a.Ja&&(a.Ja.dispose(),a.Ja=null,XVa(a.fd,null));UY(a)?OWa(a):dZ(a)};
OWa=function(a){if(a.mediaSource){a.kx();try{a.mediaSource.clear();var b;null!=(b=a.mediaElement)&&(b.u=a.mediaSource);a.mediaSource=null}catch(c){b=eI(c),a.handleError(b),dZ(a)}}};
dZ=function(a){a.mediaSource&&(a.kx(),a.mediaSource.dispose(),a.mediaSource=null)};
PWa=function(a){if(a.mediaSource)return a.mediaSource.B;a:{try{g.dw()&&a.videoData.ZK()&&WCa(a.mediaElement);var b=a.mediaElement.Fr(a.gK(),a.eK())}catch(d){if(eUa(a.cm,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Jg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}lV(a,b)}var c;return(null==(c=a.Fr())?void 0:c.B)||null};
lV=function(a,b){function c(d){try{if(a.mediaSource&&(!d||a.mediaSource===d)){var e=a.getDuration();!e&&wJ(a.videoData)&&(e=25200);a.mediaSource.isView?(d=e,d>a.mediaSource.getDuration()&&a.mediaSource.Bk(d)):a.mediaSource.Bk(e);var f=a.Ja,h=a.mediaSource;f.policy.Z&&(f.Yj(),f.policy.Z=!1);$Sa(f);if(!RF(h)){var l=BW(f.videoTrack),m=BW(f.audioTrack),n=(l?l.info.j:f.videoTrack.j).info,p=(m?m.info.j:f.audioTrack.j).info,q=f.policy.xk,r=n.mimeType+(void 0===q?"":q),w=p.mimeType,x=n.Hb,z=p.Hb,B,C=null==
(B=h.mediaSource)?void 0:B.addSourceBuffer(w),G,F="fakesb"===r.split(";")[0]?void 0:null==(G=h.mediaSource)?void 0:G.addSourceBuffer(r);h.Ig&&(h.Ig.webkitSourceAddId("0",w),h.Ig.webkitSourceAddId("1",r));var K=new LF(C,h.Ig,"0",kF(w),z,!1),L=new LF(F,h.Ig,"1",kF(r),x,!0);vua(h,K,L)}lX(f.videoTrack,h.u||null);lX(f.audioTrack,h.j||null);f.mediaSource=h;f.mediaSource.C=!0;f.resume();g.GB(h.j,f.ya,f);g.GB(h.u,f.ya,f);try{f.Uj()}catch(N){g.rA(N)}a.ma("mediasourceattached")}}catch(N){g.sA(N),a.handleError(new cI("fmt.unplayable",
{msi:"1",ename:N.name},1))}}
QWa(a);a.mediaSource=b;UY(a)&&"open"===SF(a.mediaSource)?c(a.mediaSource):uua(a.mediaSource,c)};
QWa=function(a){a.Ja?a.Ja.seek(a.getCurrentTime()-a.Ld()).Oj(function(){}):DWa(a)};
lY=function(a,b){b=void 0===b?!1:b;return g.A(function(c){if(1==c.j)return a.Ja&&a.Ja.vu(),a.Ja&&a.Ja.isDisposed()&&ZY(a),a.kc(KL(a.playerState,2048)),a.ma("newelementrequired"),b?g.y(c,XY(a),2):c.Ia(2);g.V(a.playerState,8)&&a.playVideo();g.pa(c)})};
ONa=function(a,b){a.xa("newelem",{r:b});lY(a)};
RWa=function(a){a.Cb.C.ML();g.V(a.playerState,32)||(a.kc(KL(a.playerState,32)),g.V(a.playerState,8)&&a.pauseVideo(!0),a.ma("beginseeking",a));a.uc()};
HV=function(a){g.V(a.playerState,32)?(a.kc(ML(a.playerState,16,32)),a.ma("endseeking",a)):g.V(a.playerState,2)||a.kc(KL(a.playerState,16));a.Cb.C.RL(a.videoData,g.OL(a.playerState))};
YY=function(a,b){a.ma("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
SWa=function(a){for(var b=g.t("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.cz.S(a.mediaElement,c.value,a.pM,a);a.Y.Mk&&a.mediaElement.At()&&(a.cz.S(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.N2,a),a.cz.S(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.O2,a))};
UWa=function(a){window.clearInterval(a.aG);TWa(a)||(a.aG=g.Lv(function(){return TWa(a)},100))};
TWa=function(a){var b=a.mediaElement;b&&a.GF&&!a.videoData.Va&&!wC("vfp",a.Cb.timerName)&&2<=b.Tj()&&!b.Eh()&&0<HF(b.Ch())&&a.Cb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Va&&0<b.getDuration()&&(!wC("pbp",a.Cb.timerName)&&b.fp()&&2<=b.Tj()&&0<HF(b.Ch())&&a.Cb.tick("pbp"),b=b.getCurrentTime(),EY(a.Xz,b))?(HNa(a),!0):!1};
HNa=function(a){window.clearInterval(a.aG);a.Nu.stop();a.videoData.Va=!0;a.Y.jn=!0;a.Y.Fb=0;var b=a.cm;if(b.videoData.B){var c=b.j.B;c.u.delete(b.videoData.B.Hb);c.j=!0}b.u.stop();a.Y.Hl=a.videoData.yM;a.videoData.BO=!0;VWa(a);g.V(a.playerState,8)&&a.kc(LL(a.playerState,65));a.Xr=!1;b=a.wc;b.j&&hVa(b.j);b=b.B;c=g.qV(b.provider);0>b.j&&(b.j=c,b.delay.start());b.u=c;b.C=c;g.$n(a.XI);a.ma("playbackstarted");g.Qw()&&((a=g.Fa("yt.scheduler.instance.clearPriorityThreshold"))?a():Rw(0))};
VWa=function(a){var b=a.getCurrentTime(),c=a.Tf.Ad();!wC("pbs",a.Cb.timerName)&&NB.measure&&NB.getEntriesByName&&(NB.getEntriesByName("mark_nr")[0]?osa("mark_nr"):osa());c.videoId&&a.Cb.info("docid",c.videoId);c.eventId&&a.Cb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.N("web_player_early_cpn")&&a.Cb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Cb.info("start",c.startSeconds.toString());if(a.mediaElement&&a.mediaElement.fp())if(a.Y.experiments.eb("web_csi_via_jspb")){var d=new Iu;g.I(d,
6,!0);var e=new Ku;J(e,Iu,22,d);vC(e,a.Cb.timerName)}else a.Cb.info("paused",1);a.Y.experiments.eb("web_csi_via_jspb")?(d=new Iu,c.B?g.I(d,1,Number(c.B.itag)):g.I(d,1,-1),e=new Ku,J(e,Iu,22,d),vC(e,a.Cb.timerName)):c.B?a.Cb.info("fmt",c.B.itag):a.Cb.info("fmt","-1");c.Wh&&(e=a.IK?2:1,a.Y.experiments.eb("web_csi_via_jspb")?(d=new Iu,g.I(d,8,e),e=new Ku,J(e,Iu,22,d),vC(e,a.Cb.timerName)):a.Cb.info("yt_pre",String(a.IK?2:1)));a.isFullscreen()&&a.Cb.info("yt_fs","1");iC({liveStreamMode:WWa[MJ(c)]},a.Cb.timerName);
a.Cb.info("cmt",b.toFixed(3));if(a.Ja){b=a.Ja.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.J&&(c=window.performance.getEntriesByName(b.J),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("vrc",c.responseEnd))),b.u&&(c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",c.requestStart),b.tick("arc",c.responseEnd))));b=b.ticks;
for(var f in b)b.hasOwnProperty(f)&&a.Cb.tick(f,b[f])}};
XWa=function(a){a.wc.De();if(uJ(a.videoData)&&Date.now()>a.aT+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&cG(a.videoData.j))){var b=a.wc;if(b.qoe){b=b.qoe;var c=b.provider.va.TA(),d=g.qV(b.provider);KUa(b,d,c);c=c.B;isNaN(c)||g.pY(b,d,"e2el",[c.toFixed(3)])}}g.UH(a.Y)&&a.xa("rawlat",{l:fW(a.EN,"rawlivelatency").toFixed(3)});a.aT=Date.now()}a.videoData.B&&pF(a.videoData.B)&&(b=YK(a))&&b.videoHeight!==a.kL&&(a.kL=b.videoHeight,GWa(a,"a",IWa(a,a.videoData.kb)))};
IWa=function(a,b){if("auto"===b.j.video.quality&&pF(b.ih())&&a.videoData.Gd)for(var c=g.t(a.videoData.Gd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.kL&&"auto"!==d.j.video.quality)return d.ih();return b.ih()};
uWa=function(a){if(!uJ(a.videoData))return NaN;var b=0;a.Ja&&a.videoData.j&&(b=wJ(a.videoData)?a.Ja.VD.Li()||0:a.videoData.j.T);return Date.now()/1E3-a.Ff()-b};
ZWa=function(a){a.mediaElement&&a.mediaElement.jh()&&(a.oF=(0,g.R)());a.Y.gp?g.Kv(function(){YWa(a)},0):YWa(a)};
YWa=function(a){var b;if(null==(b=a.mediaSource)||!b.ql()){if(a.mediaElement)try{a.ZF=a.mediaElement.playVideo()}catch(d){$Y(a,"err."+d)}if(a.ZF){var c=a.ZF;c.then(void 0,function(d){if(!(g.V(a.playerState,4)||g.V(a.playerState,256)||a.ZF!==c||d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))){var e="promise";d&&d.name&&(e+=";m."+d.name);$Y(a,e);a.JQ=!0;a.videoData.LO=!0}})}}};
$Y=function(a,b){g.V(a.playerState,128)||(a.kc(ML(a.playerState,1028,9)),a.xa("dompaused",{r:b}),a.ma("onAutoplayBlocked"))};
SY=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=PWa(a);var d;null==(d=a.Ja)||d.resume()}else ZY(a),a.videoData.kb&&(c=a.videoData.kb.Jz());b=c;d=a.mediaElement.rD();c=!1;d&&d.equals(b)||($Wa(a,b),c=!0);g.V(a.playerState,2)||(b=a.fd,b.D||!(0<b.C)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||b.seekTo(b.C,{Ee:"playbacktimeline_resumeTime"}));a:if(b=c,g.KJ(a.videoData)&&a.mediaElement)if((d=a.videoData.Z)&&a.mediaElement.At()){var e=a.mediaElement.ub();
if(a.Ye)if(e!==a.Ye.element)fZ(a);else if(b&&"fairplay"===d.flavor&&!ew())fZ(a);else break a;if(a.N("html5_report_error_for_unsupported_tvos_widevine")&&ew()&&"widevine"===d.flavor)a.Jg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Ye=new VTa(e,a.videoData,a.Y);a.Ye.subscribe("licenseerror",a.KF,a);a.Ye.subscribe("qualitychange",a.F3,a);a.Ye.subscribe("heartbeatparams",a.KB,a);a.Ye.subscribe("keystatuseschange",a.Es,a);a.Ye.subscribe("ctmp",a.xa,a);b=g.t(a.vy.keys);
for(d=b.next();!d.done;d=b.next())d=a.vy.get(d.value),a.Ye.jy(d);a.N("html5_eme_loader_sync")||a.vy.yg()}}else a.Jg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
$Wa=function(a,b){a.Cb.tick("vta");xC("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&ZVa(a.fd,a.getCurrentTime());a.mediaElement.Nw(b);a.mediaSource&&Rw(4);!a.videoData.Va&&g.PL(a.playerState)&&a.Nu.start();if(JWa(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.ma("internalaudioformatchange",a.videoData,!0)}}};
fZ=function(a){a.Ye&&(a.Ye.dispose(),a.Ye=null)};
mV=function(a,b){b=void 0===b?!1:b;return uJ(a.videoData)&&(a.isAtLiveHead()&&!g.OL(a.playerState)||a.Rp()||g.QJ(a.videoData))?a.getCurrentTime():a.ge(b)};
aXa=function(a){a.mediaElement&&(a.mediaSource?(fZ(a),dZ(a),PWa(a)):(a.videoData.kb&&a.videoData.kb.cN(),a.mediaElement.stopVideo()),a.playVideo())};
bXa=function(a,b){a.Y.N("html5_log_rebuffer_reason")&&a.xa("bufreason",{r:b,lact:fz()})};
CV=function(a,b,c,d,e,f,h){var l;if(null==(l=a.videoData.j)?0:l.isLive){l=2===c.playerType?c:b;var m=b.videoData.videoId,n=c.videoData.videoId;if(m&&n){var p=a.wc;if(p.qoe){p=p.qoe;var q=b.cpn,r=c.cpn,w=l.videoData.Md,x=p.provider.videoData.clientPlaybackNonce,z=p.provider.videoData.videoId,B=r!==x&&n!==z;x=q!==x&&m!==z;p.reportStats();p.adCpn&&p.adCpn!==q||(p.adCpn=x?q:"",p.Z=x?m:"",p.adFormat=x?w:void 0,UUa(p,h?4:f?2:0,r,n,e),p.reportStats(),p.adCpn=B?r:"",p.Z=B?n:"",p.adFormat=B?w:void 0,UUa(p,
h?5:f?3:1,q,m,d),p.reportStats())}d=a.wc;f=b.cpn;if(d.u.has(f)){if(h=d.u.get(f),BY(h,!0).send(),AY(h),f!==d.provider.videoData.clientPlaybackNonce){mVa(h);var C;null==(C=d.j)||iVa(C);d.u.delete(f)}}else d.Yh=d.provider.videoData.clientPlaybackNonce,d.Yh&&d.j&&(d.u.set(d.Yh,d.j),BY(d.j).send(),AY(d.j));C=a.wc;d=c.cpn;l=l.videoData;f=e-a.Dp();if(C.u.has(d)){l=C.u.get(d);var G=l.u&&isNaN(l.C)?yY(l):NaN;l=lVa(l,!1);isNaN(G)||(l.D=G);l.send()}else l=wVa(C,C.provider,l,f),C.u.set(d,l),l.qd(new g.aL(KL(new g.IL,
8),new g.IL)),hVa(l),null==(G=C.j)||AY(G);C.Yh=d;G=a.videoData.clientPlaybackNonce;a=c.videoData;b=(b.cpn===G?"video":"ad")+"_to_"+(c.cpn===G?"video":"ad");G={};a.J&&(G.cttAuthInfo={token:a.J,videoId:a.videoId});G.startTime=e;jC(b,G);iC({targetVideoId:a.videoId,targetCpn:c.cpn},b);hC("pbs",e,b)}}};
cXa=function(a,b){a.Sd(new cI("qoe.restart",b));lY(a,!0)};
dXa=function(a,b){if(a.Y.C){var c=g.wG(a.Y.experiments,"html5_log_rebuffer_events");if(c&&a.mediaElement){var d=a.mediaElement.jc();d.rt=(1E3*g.qV(a.wc.provider)).toFixed();d.e=b.substr(0,3);a.bG[a.HU++%c]=d}}};
eXa=function(a){if(a.Y.C){a.bG.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.t(a.bG),c=b.next();!c.done;c=b.next())c=c.value,a.xa("vpe",Object.assign({t:c.rt},c));a.bG=[];a.HU=0}};
fXa=function(a){if(bw("cobalt")&&bw("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.xa("nxdock",{d:b})}};
GNa=function(a,b,c,d,e){a.xa("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
eZ=function(a,b){var c;null==(c=a.Ja)||YX(c,b||NWa(a))};
NWa=function(a){return a.N("disable_prefetch_when_ad_pending_for_living_room")&&g.IH(a.Y)&&g.nb(a.Km,"ad")};
gXa=function(a,b){a=a.mediaElement?HF(a.mediaElement.Ch()):0;return Math.floor(Math.max(a-b,0))+100};
g.gZ=function(a,b,c,d){g.E.call(this);var e=this;this.logger=new g.$V("App");this.zB=this.Ji=!1;this.Kv={};this.Pw=new sJa;this.iG={};this.Ey=[];this.HS=!1;this.WK=null;this.LS=!1;this.Eu=!0;this.tN=!1;this.dT=this.mL=null;this.jT=!0;this.mediaElement=this.Ab=null;this.RB=!1;this.Fe=this.oV=this.bC=this.Jb=this.playlist=null;this.yC=void 0;this.Ws=0;this.Vd=this.gz=this.Ml=null;this.config=tqa(b||{});this.webPlayerContextConfig=c;Dna();b=this.config.args||{};this.Y=new KH(b,c,c?c.canaryState:this.config.assets.player_canary_state,
d);g.H(this,this.Y);this.VI();this.Y.experiments.eb("web_player_all_payloads_via_jspb")&&gqa();this.Y.isMobile&&!hXa&&(window.addEventListener(pH?"touchstart":"click",BNa,{capture:!0,passive:!0}),hXa=!0);this.N("html5_onesie")&&(this.Xu=new ZU(this.Y),g.H(this,this.Xu));this.CV=rw(vH(this.Y)&&!0,b.enablesizebutton);this.eL=rw(!1,b.player_wide);this.visibility=new tV;g.H(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.vF(this);g.H(this,this.events);this.N("start_client_gcf")&&
(pz(tz(),{IM:Vx,kO:yoa()}),this.L_=tz().resolve(Vx),zoa(this.L_));this.jq=new bW;g.H(this,this.jq);this.yp=new bW;g.H(this,this.yp);this.Tr=new LOa;d=new oP;this.Ua=new g.WP(this,d);g.H(this,this.Ua);this.template=new jW(this);g.H(this,this.template);this.appState=1;this.zi=iXa(this);this.G=this.Y.D?new UP(this,d,!0,1):new SP(this,d,!0,1);g.H(this,this.G);g.H(this,d);d={};this.UI=(d.internalvideodatachange=this.R2,d.playbackready=this.T2,d.playbackstarted=this.U2,d.statechange=this.V2,d);this.s0=
new fKa(this.Ua);g.H(this,this.s0);this.Gc=jXa(this);this.N("html5_load_wasm")&&"WebAssembly"in window&&FKa(this.Gc).then(function(f){e.Y.gh=f},function(f){g.sA(f)});
this.l2=new g.vF(this);g.H(this,this.l2);this.Cb=new CQ(this.Y,this.Gc);this.Ua.ma("csiinitialized");this.xb=kXa(this);this.xb.setPlaybackRate(this.Y.u?1:lXa(this,Number(g.VA("yt-player-playback-rate"))||1));g.GB(this.xb,this.UI,this);yWa(this.xb);d={};this.LU=(d.airplayactivechange=this.onAirPlayActiveChange,d.airplayavailabilitychange=this.onAirPlayAvailabilityChange,d.beginseeking=this.ML,d.endseeking=this.RL,d.internalAbandon=this.XL,d.internalaudioformatchange=this.HB,d.internalvideodatachange=
this.onVideoDataChange,d.internalvideoformatchange=this.PB,d.liveviewshift=this.G3,d.playbackstalledatstart=this.X4,d.progresssync=this.p4,d.onLoadProgress=this.onLoadProgress,d.SEEK_COMPLETE=this.oy,d.SEEK_TO=this.M4,d.onVideoProgress=this.onVideoProgress,d.onLoadedMetadata=this.onLoadedMetadata,d.onAutoplayBlocked=this.onAutoplayBlocked,d.playbackready=this.e4,d.statechange=this.AU,d.connectionissue=this.JB,d.newelementrequired=this.hU,d.heartbeatparams=this.KB,d.videoelementevent=this.pM,d.drmoutputrestricted=
this.onDrmOutputRestricted,d.signatureexpired=this.S4,d.nonfatalerror=this.U3,d);this.qs=new g.vF(this);g.H(this,this.qs);d=10;g.IH(this.Y)&&(d=3);TH(this.Y)&&(d=g.wG(this.Y.experiments,"tvhtml5_unplugged_preload_cache_size"));this.rs=new aW;g.H(this,this.rs);this.XB=new YV(d,function(f){f!==g.OP(e,f.getPlayerType())&&f.dispose()});
g.H(this,this.XB);this.RJ=this.lE=-1;this.zG=new g.Zn(this.template.resize,16,this.template);g.H(this,this.zG);mXa(this);this.td=new NV(this.Ua,this.Y,this.xb);this.ez=new nV(this);g.H(this,this.ez);yOa(this.Y.deviceParams.c);this.events.S(this.Ua,g.AB("appapi"),this.P2);this.events.S(this.Ua,g.BB("appapi"),this.Q2);this.events.S(this.Ua,g.AB("appad"),this.IT);this.events.S(this.Ua,g.BB("appad"),this.IT);this.events.S(this.Ua,g.AB("appprogressboundary"),this.o4);this.events.S(this.Ua,g.BB("applooprange"),
this.CG);this.events.S(this.Ua,"presentingplayerstatechange",this.ji);this.events.S(this.Ua,"resize",this.A4);this.template.Ca(Ae(document,a));this.events.S(this.Ua,"offlineslatestatechange",this.W3);this.nO=nXa(this,this.template.element);g.H(this,this.nO);this.Gc.G.V().Wh&&WQ(this.Gc,"offline");this.Y.Sf&&g.KQ("ux",g.XU);this.DQ=new g.Zn(this.Q5,g.wG(this.Y.experiments,"html5_defer_fetch_att_ms"),this);g.H(this,this.DQ);this.Ad().isValid()&&(g.XA()&&this.Ad().Ba.push("remote"),oXa(this));this.Cb.tick("fs");
pXa(this);this.Y.Sf&&WQ(this.Gc,"ux",!0);g.DH(this.Gc.G.V())&&WQ(this.Gc,"music");g.tH(this.Gc.G.V())&&WQ(this.Gc,"embed");this.N("web_player_sentinel_is_uniplayer")||g.sA(new g.Sw("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.N("web_player_sentinel_yt_experiments_sync");d=g.ov("web_player_sentinel_yt_experiments_sync");a!==d&&g.sA(new g.Sw("b/195699950",{yt:a,player:d}));c||g.sA(new g.Sw("b/179532961"));this.kW=qXa(this);if(c=g.wG(this.Y.experiments,"html5_block_pip_safari_delay"))this.WJ=
new g.Zn(this.QQ,c,this),g.H(this,this.WJ);Xv=this.Y.Wa;c=g.wG(this.Y.experiments,"html5_performance_impact_profiling_timer_ms");0<c&&(this.DU=new g.sf(c),g.H(this,this.DU),this.events.S(this.DU,"tick",function(){e.EU&&rXa.lr(e.EU);e.EU=rXa.Rs("apit")}))};
qXa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.Jb||a.xb).wc.Sd("player.exception",bI({n:c.name,m:c.message}))}
tA.subscribe("handleError",b);tv.push(b);return function(){tA.unsubscribe("handleError",b);var c=tv.indexOf(b);-1!==c&&tv.splice(c,1)}};
kXa=function(a){var b=new g.mJ(a.Y,a.config.args);a.Ua.ma("initialvideodatacreated",b);return a.hx(1,b)};
jXa=function(a){var b="",c=GOa(a);0===c.indexOf("//")&&(c=a.Y.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.sA(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new TQ(a.Ua,b);sXa(a,b);return b};
sXa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
tXa=function(a,b){var c=a.isVideoInfoVisible();a.Ml||(a.Ml=new rW(a.Ua),g.H(a,a.Ml),g.cQ(a.Ua,a.Ml.element,4));g.SM(a.Ml,b);hZ(a)&&c!==b&&ZP(a.Gc).PN();a=a.Jb;b&&a&&a.xa("sfn",{},!0)};
iXa=function(a){if(a.Y.storeUserVolume){a=g.VA("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.de(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.Y.mute};return a};
iZ=function(a){a.mediaElement=a.Y.deviceIsAudioOnly?new g.fR(g.Oe("AUDIO")):gV.pop()||new g.fR(g.Oe("VIDEO"));g.H(a,a.mediaElement);a.Jb&&a.Jb.setMediaElement(a.mediaElement);try{a.Y.Lc?(a.gz&&a.events.Dc(a.gz),a.gz=a.events.S(a.mediaElement,"volumechange",a.O3)):(a.mediaElement.Gy(a.zi.muted),a.mediaElement.setVolume(a.zi.volume/100))}catch(d){a.zg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.gA(a.qs);uXa(a);var b=a.template,
c=a.mediaElement.ub();b.Qb=c;b.VE=!1;b.Qb.parentNode||g.Se(b.dA,b.Qb,0);b.gG=new g.xl(0,0,0,0);KOa(b);kW(b);g.ho(b.Qb,"video-stream");g.ho(b.Qb,g.iW.MAIN_VIDEO);c=b.app.V();c.qj&&b.Qb.setAttribute("data-no-fullscreen","true");c.Lk&&(b.Qb.setAttribute("webkit-playsinline",""),b.Qb.setAttribute("playsinline",""));c.Gn&&b.Qb&&b.S(b.Qb,"click",b.Qb.play,b.Qb);try{a.mediaElement.Nw()}catch(d){a.zg("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
sV=function(a,b,c){if(a.Jb!==b){var d=null;if(a.Jb){d=a.Jb.getPlayerState();YQ(a.Gc,3);jZ(a,"cuerangesremoved",a.Jb.gm());a.ez&&!b.isGapless()&&a.Jb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=UY(b)&&UY(a.Jb);e=void 0===e?!0:e;var f;if(f=a.Vd)f=a.mediaElement,f=!!f&&f===a.Vd.mediaElement;f&&(a.Vi(),iZ(a));a.Jb&&(a.Jb.Vi(!e),HB(a.Jb,a.LU,a),1!==a.Jb.getPlayerType()&&a.Jb.dispose());a.Jb=null}1===b.getPlayerType()&&a.xb!==b&&(b.getVideoData().autonavState=a.xb.getVideoData().autonavState,
HB(a.xb,a.UI,a),e=a.xb.getPlaybackRate(),a.xb.dispose(),a.xb=b,a.xb.setPlaybackRate(e),g.GB(b,a.UI,a),oXa(a));e=b.getPlayerType();if(b!==a.xb&&b!==a.Kv[e]){var h;null==(h=a.Kv[e])||h.dispose();a.Kv[e]=b}a.Jb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.GB(b,a.LU,a);if(b.lF())vXa(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",b,b.getVideoData());d&&!g.NL(d,b.getPlayerState())&&a.AU(new g.aL(b.getPlayerState(),d));c=c&&a.G.N("html5_player_preload_ad_fix")&&1===b.getPlayerType();if(b.Eo.isFinished()&&
!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ua.Oa("onPlaybackQualityChange",c.quality);jZ(a,"cuerangesadded",a.Jb.gm());c=b.getPlayerState();g.V(c,2)?wXa(a):g.V(c,8)?b.playVideo():b.lB()&&b.pauseVideo();!a.N("html5_load_ads_instead_of_cue")&&!a.N("html5_move_ads_logging")||2!==b.getPlayerType()||a.bf()||(b=b.getVideoData(),a.xb.uv(b.clientPlaybackNonce,b.Md||"",b.breakType||0,b.Rf))}}};
wXa=function(a){if(!xXa(a)){var b=a.xb.ue();b&&(b=b.rA(),b instanceof Promise&&b.catch(function(){}));
kZ(a,SL(a.Eb()))}};
uXa=function(a){var b=a.mediaElement;AF()?a.qs.S(b,"webkitpresentationmodechanged",a.J4):window.document.pictureInPictureEnabled&&(a.qs.S(b,"enterpictureinpicture",function(){a.Iy(!0)}),a.qs.S(b,"leavepictureinpicture",function(){a.Iy(!1)}));
AH&&(a.qs.S(b,"webkitbeginfullscreen",function(){a.Fl(3)}),a.qs.S(b,"webkitendfullscreen",function(){a.Fl(0)}))};
g.OP=function(a,b){return b?1===b?a.xb:a.getVideoData().enableServerStitchedDai&&2===b?a.getVideoData().enablePreroll?a.Kv[2]||a.Jb:a.Jb:a.Kv[b]||null:a.Jb};
yXa=function(a,b,c,d){a=a.hx(b,c,d);yWa(a);return a};
lZ=function(a,b){return a.bf(b)?a.xb:b};
mZ=function(a,b){var c=a.Jb;return c&&b===a.xb&&a.bf(b)&&a.bf(c)?c:b};
zXa=function(a){if(!hZ(a)){var b=ZQ(a.Gc);b&&!b.created&&VQ(a.Gc)&&b.create()}};
AXa=function(a){var b=a.getVideoData(),c=a.Gc;XQ(c)||c.vJ();WQ(c,"embed");WQ(c,"inline_preview");WQ(c,"kids");WQ(c,"remote");WQ(c,"miniplayer");WQ(c,"music");WQ(c,"offline");WQ(c,"unplugged");WQ(c,"ypc",!1,!0);WQ(c,"ypc_clickwrap",!1,!0);WQ(c,"yto",!1,!0);WQ(c,"webgl",!1,!0);DKa(c)?0<c.B&&c.D&&c.D.start():(WQ(c,"captions",!0),WQ(c,"endscreen"),c.wJ(),WQ(c,"creatorendscreen",!0));c.hR();a.Ua.ma("videoready",b)};
BXa=function(a){a=a.Ad();a.isValid();return $J(a)};
pXa=function(a){a.CJ();var b=a.config.args;iZ(a);var c=a.Ad();a.Ua.Oa("onVolumeChange",a.zi);if(b&&FQ(b)){var d=QH(a.Y);d&&!a.Ji&&(b.fetch=0);var e=g.tH(a.Y);e&&!a.Ji&&(b.fetch=0);nZ(a,b);g.tH(a.Y)&&a.Cb.tick("ep_pr_s");if(d&&!a.Ji)oZ(a);else if(e&&!a.Ji)CXa(a);else if(!c.isValid())a.playlist.onReady(function(){pZ(a)})}sV(a,a.xb);
g.V(a.xb.getPlayerState(),128)||(b=qua(!a.Y.deviceIsAudioOnly),"fmt.noneavailable"===b?a.zg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.zg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&BXa(a)&&(a.Y.Rk||a.Y.yk)?qZ(a):g.VA("yt-player-playback-on-reload")?(g.ax("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.Y.authUser}),dva(!1),qZ(a)):YH(a.Y)||DXa(a),g.SH(a.Y)||"MWEB"===BG(a.Y)?(g.Nw(g.Pw(),function(){rZ(a)}),g.Nw(g.Pw(),
function(){XFa()})):(rZ(a),XFa()))};
rZ=function(a){if(a.N("fetch_att_independently"))g.$n(a.DQ);else{var b=a.getVideoData().botguardData;b&&g.kP(b,a.Y,a.getVideoData().Wj||"")}};
DXa=function(a){a.Ua.ma("initializingmode");a.Jo(2);WQ(a.Gc,"remote");a.Y.N("player_cued_miniplayer_module_killswitch")||WQ(a.Gc,"miniplayer")};
qZ=function(a){if(g.V(a.xb.getPlayerState(),128))return!1;BXa(a)&&a.Y.yk&&(gV.length&&a.zB?(TP(a,{muted:!1,volume:a.zi.volume},!1),sZ(a,!1)):gV.length||a.zi.muted||(TP(a,{muted:!0,volume:a.zi.volume},!1),sZ(a,!0)));var b=a.xb.getVideoData();b.KO&&TP(a,{muted:!0,volume:a.zi.volume},!1);EXa(a,1,b,!1);a.Ua.ma("initializingmode");sV(a,a.xb);a.Jo(3);var c;if(!(c=!a.Y.Sk)){if(c=a.Vd)c=a.mediaElement,c=!!c&&c===a.Vd.mediaElement;c=c&&a.HS}c&&(a.Vi(),iZ(a),a.xb.setMediaElement(a.mediaElement));EWa(a.xb);
if(g.V(a.xb.getPlayerState(),128))return!1;b.An||kZ(a,3);return a.HS=!0};
hZ=function(a){a=ZP(a.Gc);return!!a&&a.loaded};
FXa=function(a,b){if(!a.Ab)return!1;var c=.001*a.Ab.startTimeMs-1,d=.001*a.Ab.endTimeMs;"repeatChapter"===a.Ab.type&&d--;return ge(b,c)||ge(b,d)||b>=c&&b<=d};
GXa=function(a){if(!(g.V(a.xb.getPlayerState(),64)&&a.Ad().isLivePlayback&&5E3>a.Ab.startTimeMs)){if("repeatChapter"===a.Ab.type){var b,c=null==(b=PP(a.vb()))?void 0:b.du(),d;b=null==(d=a.getVideoData())?void 0:d.yk;c instanceof g.AR&&b&&(d=b[pS(b,a.Ab.startTimeMs)],c.QM(0,d.title));isNaN(Number(a.Ab.loopCount))?a.Ab.loopCount=0:a.Ab.loopCount++;1===a.Ab.loopCount&&a.G.Oa("innertubeCommand",a.getVideoData().OZ)}a.xb.seekTo(.001*a.Ab.startTimeMs,{Ee:"application_loopRangeStart"})}};
lXa=function(a,b){var c=a.Ua.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b};
uZ=function(a,b,c){if(a.bf(c)){c=c.getVideoData();if(tZ(a))c=b;else{a=a.td;for(var d=g.t(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Kc===e.Kc){b+=e.Oc/1E3;break}d=b;a=g.t(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Kc===e.Kc)break;var f=e.Oc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Bd/1E3;else break}c=d}return c}return b};
HXa=function(a,b){if(3===a.getPresentingPlayerType())return SL(ZP(a.Gc).Qd);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.Fe)?0:c.isAdPlaying(a.getCurrentTime()))?a.lE:-1}return 2!==b||a.bf()?a.lE:a.RJ};
oXa=function(a){vZ(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Pw.Pw={};a.iG={};a.Ey=[];iKa(a.Cb);if(a.Fe){var b=a.Fe,c=a.xb;c.getPlayerType();GV(b,!1);IV(b);cOa(b);b.va=c}b=a.td;a=a.xb;1!==a.getPlayerType()&&OV(b,"invalidParentVideoPlayerType");TV(b,!1);VV(b);b.j=a};
oZ=function(a){var b=IXa();if(b)if(!b.list)a.Uw();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ua.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.GQ(a.playlist).videoId||(b.index=a.playlist.index));IQ(a.playlist,b);a.bC&&JXa(a,a.bC)}else a.bC=null};
CXa=function(a,b){var c=(b?b:a.Ad()).gQ;a.Cb.tick("ep_pr_r");if(null!=c&&(IQ(a.playlist,c),a.tN))a.playlist.onReady(function(){pZ(a,b)})};
nZ=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Uw,a),g.ab(a.playlist),a.playlist=null);b&&(a.Ji&&(b.fetch=0),a.playlist=new EQ(a.Y,b),a.playlist.subscribe("error",a.Uw,a))};
NXa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.getVideoData().clientPlaybackNonce};c=g.Sn(c,d);d=void 0;d=void 0===d?!1:d;(d=rB(sB(c,KXa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=rB(sB(c,LXa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=rB(sB(c,MXa),c,d,"Nielsen OCR URL"));g.Ay(c,void 0,d)}return!0};
kZ=function(a,b){if(a.Jb){var c=a.Jb.getPlayerType();if(2===c&&!a.bf()){a.RJ!==b&&(a.RJ=b,a.Ua.Oa("onAdStateChange",b));return}if(2===c&&a.bf()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}0===b&&a.Ab||a.lE===b||(a.lE=b,a.Ua.Oa("onStateChange",b))};
OXa=function(a,b,c){return wZ(a,b,c.videoId,c.Kc,c.isAutonav,c.qq)};
wZ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;b=b+"_"+c+"_"+d;a.Y.N("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
EXa=function(a,b,c,d){var e=a.Y.N("html5_autonav_autoplay_in_preload_key")?OXa(a,b,c):wZ(a,b,c.videoId,c.Kc);var f=a.XB.get(e);if(!f)return null;a.XB.remove(e);if(g.V(f.getPlayerState(),128))return f.dispose(),null;if(f===g.OP(a,b))return iC({isCacheHit:!0},a.Cb.timerName),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||sV(a,f,!0);iC({isCacheHit:!0},a.Cb.timerName);return f};
xZ=function(a,b,c){c=g.OP(a,c);b&&c===a.xb&&(c.getVideoData().xk=!0)};
yZ=function(a,b,c){c=void 0===c?1:c;if(!b.isValid()||a.N("embeds_web_enable_cue_video_unplayable_fix")&&g.tH(a.Y)&&!eK(b))b.dispose(),g.ab(g.OP(a,c)),OBa(a.Ad())&&2===c&&delete a.Kv[2];else{var d=a.hx(c,b);a.cancelPlayback(4,c);sV(a,d);yWa(d);2!==c||a.N("html5_load_ads_instead_of_cue")||a.N("html5_move_ads_logging")||a.xb.uv(b.clientPlaybackNonce,b.Md||"",b.breakType||0,b.Rf);1===c&&(a.Jo(1),DXa(a))}};
PXa=function(a,b,c,d,e){b=AJa(b,c,d,e);(c=g.tH(a.Y)&&!a.Y.oa)&&!a.Ji&&(b.fetch=0);nZ(a,b);g.tH(a.Y)&&a.Cb.tick("ep_a_pr_s");if(c&&!a.Ji)c=a.Ad(),nKa(c,b).then(function(f){a.tN=!0;CXa(a,f)});
else a.playlist.onReady(function(){pZ(a)});
g.tH(a.Y)&&a.Cb.tick("ep_a_pr_r")};
pZ=function(a,b){var c=g.tH(a.Y)&&!a.Y.oa,d=c&&b?b:g.GQ(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Do&&(a.Y.Rk||a.Y.yk)||!a.Eu?(b=b.xk,d=a.hs(d,1),b&&xZ(a,d)):yZ(a,d,1));g.tH(a.Y)&&a.Cb.tick("ep_p_l");a.tN=!1;a.Ua.Oa("onPlaylistUpdate")};
xXa=function(a){if(a.playlist&&g.zH(a.Y)&&a.AA()){var b=a.Y.N("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
JXa=function(a,b){var c=g.Fa(b);c?((b=IXa())&&b.list&&c(),a.bC=null):a.bC=b};
IXa=function(){var a=g.Fa("yt.www.watch.lists.getState");return a?a():null};
QXa=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=xB.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=xB.AD_MARKER:(b.style=xB.TIME_MARKER,b.color=e),b.visible=!0);a.Rz([new g.yB(1E3*c,1E3*d,b)],1);return!0};
RXa=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.Ff();if(!h)return f&&a.getVideoData().isLivePlayback&&a.Ey.push({id:b,g7:c,f7:d}),!1;f=h-a.getCurrentTime();return QXa(a,b,c-f,d-f,void 0,void 0,e)};
SXa=function(a,b){a.Ey=g.vm(a.Ey,function(f){return f.id!==b});
for(var c=a.xb.gm(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.xb.removeCueRange(e),jZ(a,"cuerangesremoved",[e]),!0}return!1};
TXa=function(a){var b=(0,g.R)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
TP=function(a,b,c){a.Y.Ma&&(a.zi=b,b.muted||sZ(a,!1),c&&a.Y.storeUserVolume&&!a.Y.Lc&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.UA("yt-player-volume",c),g.UA("yt-player-volume",c,2592E3))),UXa(a),c=g.yF&&a.mediaElement&&!a.mediaElement.qg(),a.Y.Lc&&!c||a.Ua.Oa("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.Y.storeUserVolume}))};
UXa=function(a){var b=a.getVideoData();if(!b.Hl){b=a.Y.Lc?1:MBa(b);var c=a.mediaElement;c.Gy(a.zi.muted);try{c.setVolume(a.zi.volume*b/100)}catch(d){g.sA(new g.Sw("b183742307","multiplier: "+b+", volume: "+a.zi.volume))}}};
sZ=function(a,b){b!==a.zB&&(a.zB=b,a.Ua.Oa("onMutedAutoplayChange",b))};
VXa=function(a){var b=bA(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.ub())?b:null};
XXa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.Y.N("lock_fullscreen2")||a.Y.I)&&c&&c.lock&&(!g.yF||!WXa))if(b){b=0===c.type.indexOf("portrait");var d=a.template.getVideoAspectRatio(),e=b;1>d?e=!0:1<d&&(e=!1);if(!a.RB||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.RB=!0}}else a.RB&&(a.RB=!1,c.unlock())};
jZ=function(a,b,c){a.Ua.ma(b,c);var d=g.IH(a.Y)||g.BH(a.Y)||g.CH(a.Y);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.Oa(e,c.map(function(f){return{getId:function(){return this.id},
end:f.end,id:f.getId(),namespace:"ad"===f.namespace?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
zZ=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.OP(a,e);if(!h||(2!==h.getPlayerType()||a.bf(h)||f)&&!g.QJ(h.getVideoData()))3===a.getPresentingPlayerType()?ZP(a.Gc).Co("control_seek",b,c):(h===a.xb&&a.Ab&&!FXa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
YXa=function(a){a.Ua.Oa("SIZE_CLICKED",!a.eL)};
vXa=function(a,b,c){c&&(a.Vi(),iZ(a));c=g.OP(a);c.Sd(new cI("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?wJ(d)&&g.UH(a.Y)&&(e.live_utc_start=c.Ff(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.Ka&&(e.vvt=d.Ka);d.J&&(e.vss_credentials_token=d.J,e.vss_credentials_token_type=d.Qj);d.oauthToken&&(e.oauth_token=d.oauthToken);d.un&&(e.force_gvi=d.un);e.autoplay=1;e.reload_count=d.Ec+1;e.reload_reason=b;d.JM&&(e.unplugged_partner_opt_out=
d.JM);d.Mg&&(e.ypc_is_premiere_trailer=d.Mg);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.Fe&&zXa(a)};
ZXa=function(a,b){a.Ad().autonavState=b;g.UA("yt-player-autonavstate",b);a.Ua.ma("autonavchange",b)};
$Xa=function(a){var b=a.getVideoData().Hl,c=a.Y.Md,d=a.isInline()&&!a.getVideoData().uH,e=a.mediaElement;b||c||d?e.EJ():(e.HJ(),TP(a,a.zi))};
nXa=function(a,b){return a.Y.N("html5_enable_embedded_player_visibility_signals")&&g.tH(a.Y)?new hW(b):null};
vZ=function(a){(a=ZQ(a.vb()))&&a.created&&a.destroy()};
tZ=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.Fe};
aYa=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.t(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Dl(a,d);b.hidden=!!a.hidden};
mXa=function(a){var b=a.Y,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.N("embeds_enable_request_storage_access_safari_itp")&&g.kx&&d&&b.u?kw()||b.Wa?(g.ax("embedsStorageAccessNotChecked",{isIosWebview:kw(),isPemPlayer:b.Wa}),a.yC=!1):c.hasStorageAccess().then(function(e){g.ax("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.yC=!e},function(e){g.ax("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.sA(Error("Embeds ITP Error: "+e));a.yC=!1}):a.yC=!1};
bYa=function(a,b){return g.IH(a.Y)&&Gv(b)&&Fv(b)?g.aI(a.Y,g.bK(a.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):Wv()};
AZ=function(a,b){bYa(a,b).then(function(c){g.Ay(b,void 0,void 0,c)})};
BZ=function(a,b){b.forEach(function(c){AZ(a,c)})};
GOa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
cYa=function(a,b,c,d){var e=1E3*a.getCurrentTime()<c?1:-1;b.QM(e,d);zZ(a,c/1E3)};
CZ=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
fB=function(a,b){return a.j.has(b)};
DZ=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
EZ=function(a){return Array.from(a.j.keys())};
eYa=function(a){var b;return(null==(b=dYa.get(a))?void 0:b.Gv)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
gYa=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:fYa.get(b.bb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Sb&&(c.entryTriggerType=b.Sb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Sb)c.debugData.slotEntryTriggerData=FZ(a);a=b.qc;c.debugData.fulfillmentTriggerData=[];a=g.t(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(FZ(d.value));b=b.vc;c.debugData.expirationTriggerData=
[];b=g.t(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(FZ(a.value))}return c};
hYa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:fYa.get(b.bb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
FZ=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Rh&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Rh);null!=a.jg&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.jg);return c};
iYa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Lg(d||[],function(e){return gYa(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
HZ=function(a,b){return function(c){return jYa(GZ(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.bb,b.Sb,b.qc,b.vc,c.layoutId,c.layoutType,c.bb)}};
jYa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:gYa(a,{slotId:b,slotType:c,slotPhysicalPosition:d,bb:e,Sb:f,qc:h,vc:l,Da:new CZ([])}),layoutData:hYa(a,{layoutId:m,layoutType:n,bb:p,Rd:[],Zc:[],Xc:[],Yc:[],bd:[],Zb:new Map,Da:new CZ([]),Ic:{}})}}};
kYa=function(){return!0};
IZ=function(a){this.u=kYa;this.Fa=a;a=Math.random();var b=this.Fa.get();b=g.wG(b.G.V().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
GZ=function(a){return a.j||a.Fa.get().G.V().N("html5_force_debug_data_for_client_tmp_logs")};
lYa=function(a,b){var c={slotId:nB(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Sb:void 0,qc:[],vc:[],bb:"surface",Da:new CZ([])},d=Object,e=d.assign;b=oB(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Zb:new Map,Rd:[],Zc:[],Xc:[],Yc:[],bd:[],bb:"surface",Da:new CZ([]),Ic:jYa(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.bb,c.Sb,c.qc,c.vc,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},
a,{C1:!0,slot:c,layout:b})};
JZ=function(a){this.eA=a};
KZ=function(a){this.eA=a};
LZ=function(a,b,c){this.eA=a;this.Aj=b;this.wl=c};
mYa=function(a,b,c){var d=a.eA();switch(b.type){case "SKIP":lEa(d,a.Aj,a.wl,c)}};
MZ=function(){};
NZ=function(){};
OZ=function(a,b,c){this.Lm=a;this.F5=b;this.Ra=c};
PZ=function(a,b){this.Et=a;this.Ra=b};
QZ=function(a){this.G=a};
RZ=function(a,b){this.Al=a;this.Ra=b};
oYa=function(a){g.E.call(this);this.j=a;this.vZ=nYa(this)};
nYa=function(a){var b=new HM(a.j.ud);g.H(a,b);a=g.t([new JZ(a.j.h_),new PZ(a.j.Et,a.j.Ra),new QZ(a.j.G),new RZ(a.j.Al,a.j.Ra),new LZ(a.j.s2,a.j.Aj,a.j.wl),new KZ(a.j.E_),new NZ,new OZ(a.j.Lm,a.j.Ii,a.j.Ra),new MZ]);for(var c=a.next();!c.done;c=a.next())c=c.value,bEa(b,c),cEa(b,c);a=g.t(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())c=c.value,FM(b,c,function(){}),GM(b,c,function(){});
return b};
SZ=function(a){this.value=a};
TZ=function(a){this.value=a};
pYa=function(a){this.value=a};
UZ=function(a){this.value=a};
VZ=function(a){this.value=a};
qYa=function(){SZ.apply(this,arguments)};
rYa=function(a){this.value=a};
sYa=function(a){this.value=a};
WZ=function(a){this.value=a};
XZ=function(a){this.value=a};
YZ=function(a){this.value=a};
ZZ=function(a){this.value=a};
$Z=function(a){this.value=a};
a_=function(a){this.value=a};
b_=function(a){this.value=a};
c_=function(){SZ.apply(this,arguments)};
tYa=function(){SZ.apply(this,arguments)};
d_=function(a){this.value=a};
e_=function(a){this.value=a};
f_=function(a){this.value=a};
uYa=function(a){this.value=a};
vYa=function(a){this.value=a};
wYa=function(a){this.value=a};
xYa=function(a){this.value=a};
yYa=function(a){this.value=a};
zYa=function(a){this.value=a};
g_=function(a){this.value=a};
h_=function(a){this.value=a};
AYa=function(a){this.value=a};
BYa=function(a){this.value=a};
i_=function(a){this.value=a};
j_=function(a){this.value=a};
k_=function(a){this.value=a};
CYa=function(a){this.value=a};
l_=function(a){this.value=a};
m_=function(a){this.value=a};
DYa=function(a){this.value=a};
n_=function(a){this.value=a};
o_=function(a){this.value=a};
p_=function(a){this.value=a};
q_=function(a){this.value=a};
r_=function(a){this.value=a};
EYa=function(a){this.value=a};
FYa=function(a){this.value=a};
s_=function(a){this.value=a};
t_=function(a){this.value=a};
GYa=function(a){this.value=a};
HYa=function(a){this.value=a};
u_=function(a){this.value=a};
v_=function(a){this.value=a};
w_=function(a){this.value=a};
IYa=function(){SZ.apply(this,arguments)};
JYa=function(a){this.value=a};
x_=function(){SZ.apply(this,arguments)};
KYa=function(){SZ.apply(this,arguments)};
LYa=function(){SZ.apply(this,arguments)};
y_=function(){SZ.apply(this,arguments)};
MYa=function(a){this.value=a};
NYa=function(a,b){switch(a){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 b(a),8}};
OYa=function(a,b,c,d){g.E.call(this);this.Id=b;this.Wb=c;this.Fa=d;this.j=a(this,this,this,this,this);g.H(this,this.j);a=g.t(b);for(b=a.next();!b.done;b=a.next())g.H(this,b.value)};
ECa=function(a,b){tL(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b)};
FCa=function(a,b){tL(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.t(a.Id);for(var c=a.next();!c.done;c=a.next())c.value.oi(b)};
GCa=function(a,b){tL(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.t(a.Id);for(var c=a.next();!c.done;c=a.next())c.value.wg(b)};
xCa=function(a,b){tL(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.t(a.Id);for(var c=a.next();!c.done;c=a.next())c.value.xg(b)};
PYa=function(a,b,c,d){kB(c,b,void 0,void 0,c.Gt);c.Jn?z_(a.Wb,d,c.Jn,b):kB("adsClientErrorMessage is missing.",b);A_(a,b,!0)};
TYa=function(a,b,c){if(B_(a.j,b))if(C_(a.j,b).C=c?"filled":"not_filled",null===c){D_(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.t(a.Id);for(var d=c.next();!d.done;d=c.next())d.value.rk(b);A_(a,b,!1)}else{D_(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);D_(a.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);if(d=DZ(c.Da,"metadata_type_sub_layouts")){d=g.t(d);for(var e=d.next();!e.done;e=d.next())D_(a.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value)}e=g.t(a.Id);for(d=e.next();!d.done;d=
e.next())d.value.vk(b);if(B_(a.j,b))if(C_(a.j,b).D)A_(a,b,!1);else{D_(a.Wb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!C_(f,b))throw new E_("Unknown slotState for onLayout");if(!f.jf.Vp.get(b.slotType))throw new E_("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType);if(g.ob(c.Rd)&&g.ob(c.Zc)&&g.ob(c.Xc)&&g.ob(c.Yc)&&g.ob(c.bd))throw new E_("Layout has no exit triggers.");F_(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Rd);F_(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Zc);F_(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Xc);F_(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Yc);F_(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.bd)}catch(n){a.Vg(b,c,n);A_(a,b,!0);return}C_(a.j,b).I=!0;try{var h=a.j,l=C_(h,b),m=h.jf.Vp.get(b.slotType).get().Re(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new E_("Already had LayoutRenderingAdapter registered for slot");l.B=m;G_(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Rd);G_(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Zc);G_(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Xc);G_(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Yc);G_(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.bd)}catch(n){QYa(a,b);A_(a,b,!0);a.Vg(b,c,n);return}D_(a.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.t(a.Id);for(d=f.next();!d.done;d=f.next())d.value.Fj(b,c);QYa(a,b);RYa(a,b)}else SYa(a.Fa.get())&&kB("slot is unscheduled after been fulfilled.",b,c)}};
UYa=function(a,b,c){"core"!==b.bb&&D_(a.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
VYa=function(a,b,c){D_(a.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.t(a.Id);for(var d=a.next();!d.done;d=a.next())d.value.Fj(b,c)};
uL=function(a,b,c){a=g.t(a.Id);for(var d=a.next();!d.done;d=a.next())d.value.Gh(b,c)};
H_=function(a,b,c){D_(a.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.t(a.Id);for(var d=a.next();!d.done;d=a.next())d.value.Vc(b,c)};
oL=function(a,b,c,d){D_(a.Wb,eYa(d),b,c);a=g.t(a.Id);for(var e=a.next();!e.done;e=a.next())e.value.pd(b,c,d)};
QYa=function(a,b){if(B_(a.j,b)){C_(a.j,b).I=!1;var c=I_;b=C_(a.j,b);var d=[].concat(g.u(b.T));vaa(b.T);c(a,d)}};
I_=function(a,b){b.sort(function(f,h){function l(m){kB("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):NYa(f.category,l)-NYa(h.category,l)});
var c=new Map;b=g.t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,B_(a.j,d.slot))if(C_(a.j,d.slot).I)C_(a.j,d.slot).T.push(d);else{WYa(a.Wb,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.t(XYa);for(d=b.next();!d.done;d=b.next())e=g.t(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&YYa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&ZYa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&$Ya(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
aZa(a,c)};
YYa=function(a,b,c){b=g.t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&bZa(a.j,d.slot)&&cZa(a,d.slot,d.layout,c)};
ZYa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next())A_(a,c.value.slot,!1)};
$Ya=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(C_(a.j,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(tL(a.Wb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.vA(c.slot))}};
aZa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;tL(a.Wb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.t(a.Id),e=d.next();!e.done;e=d.next())e.value.Hj(c.slot);try{var f=a.j,h=c.slot,l=C_(f,h);if(!l)throw new KB("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.u)throw new KB("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if("scheduled"!==l.j)throw new KB("Tried to enter a slot from stage: "+
l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(J_(l))throw new KB("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.t(K_(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&J_(p))throw new KB("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.j},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(q){q instanceof KB&&q.Jn?(z_(a.Wb,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
q.Jn,c.slot),kB(q,c.slot,L_(a.j,c.slot),void 0,q.Gt)):kB(q,c.slot);A_(a,c.slot,!0);continue}c=C_(a.j,c.slot);"scheduled"!==c.j&&M_(c.slot,c.j,"enterSlot");c.j="enter_requested";c.u.iE()}};
RYa=function(a,b){if(B_(a.j,b)&&J_(C_(a.j,b))&&L_(a.j,b)&&!bZa(a.j,b)){var c;D_(a.Wb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=L_(a.j,b))?c:void 0);a=C_(a.j,b);"entered"!==a.j&&M_(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.B.startRendering(a.layout)}};
cZa=function(a,b,c,d){if(B_(a.j,b)){var e=a.Wb,f;var h=(null==(f=dYa.get(d))?void 0:f.vv)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";D_(e,h,b,c);a=C_(a.j,b);"rendering"!==a.j&&M_(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.B.Kg(c,d)}};
A_=function(a,b,c){if(B_(a.j,b)){a:switch(C_(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(C_(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(C_(a.j,b).D=!0,!c))return;if(J_(C_(a.j,b)))C_(a.j,b).D=!0,dZa(a,b,c);else{a:switch(C_(a.j,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)C_(a.j,b).D=!0,B_(a.j,b)&&(tL(a.Wb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=C_(a.j,b),b.C="fill_cancel_requested",b.J.fJ());else{c=
L_(a.j,b);d=a.Fa.get().G.V().experiments.eb("h5_enable_layout_unscheduling_events");c&&d&&a.Gh(b,c);tL(a.Wb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=C_(a.j,b),f=b.Sb,h=e.ya.get(f.triggerId);h&&(h.Il(f),e.ya.delete(f.triggerId));f=g.t(b.qc);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.ea.get(h.triggerId);l&&(l.Il(h),e.ea.delete(h.triggerId))}f=g.t(b.vc);for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.Z.get(h.triggerId))l.Il(h),e.Z.delete(h.triggerId);null!=e.layout&&(f=
e.layout,N_(e,f.Rd),N_(e,f.Zc),N_(e,f.Xc),N_(e,f.Yc),N_(e,f.bd));e.J=void 0;null!=e.u&&(e.u.release(),e.u=void 0);null!=e.B&&(e.B.release(),e.B=void 0);e=a.j;C_(e,b)&&(e=K_(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);tL(a.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.t(a.Id);for(e=a.next();!e.done;e=a.next())e=e.value,e.Ij(b),c&&!d&&e.Gh(b,c)}}}};
dZa=function(a,b,c){if(B_(a.j,b)&&J_(C_(a.j,b))){var d=L_(a.j,b);if(d&&bZa(a.j,b))cZa(a,b,d,c?"error":"abandoned");else{tL(a.Wb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=C_(a.j,b);if(!e)throw new KB("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&M_(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.u)throw e.j="scheduled",new KB("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.u.kE()}catch(f){f instanceof KB&&f.Jn?(z_(a.Wb,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.Jn,b),kB(f,b,void 0,void 0,f.Gt)):kB(f,b)}}}};
eZa=function(a){this.slot=a;this.ya=new Map;this.ea=new Map;this.Z=new Map;this.oa=new Map;this.B=this.layout=this.u=this.J=void 0;this.I=this.D=!1;this.T=[];this.j="not_scheduled";this.C="not_filled"};
J_=function(a){return"enter_requested"===a.j||a.isActive()};
E_=function(a,b,c){c=void 0===c?!1:c;Za.call(this,a);this.Gt=c;this.args=[];b&&this.args.push(b)};
fZa=function(a,b,c,d,e,f){g.E.call(this);this.jf=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Fa=f;this.j=new Map};
K_=function(a,b){return(a=a.j.get(b))?a:new Map};
C_=function(a,b){return K_(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
gZa=function(a){var b=[];a.j.forEach(function(c){c=g.t(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
B_=function(a,b){return null!=C_(a,b)};
bZa=function(a,b){a=C_(a,b);if(b=null!=a.layout)a:switch(a.j){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
L_=function(a,b){(a=C_(a,b))?null!=a.layout&&!a.layout&&kB("Unexpected empty layout",b):kB("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
jZa=function(a,b,c){if(g.ob(c))throw new KB("No "+hZa.get(b)+" triggers found for slot.",void 0,iZa(b));c=g.t(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.jf.Ik.get(d.triggerType))throw new KB("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
iZa=function(a){switch(a){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"}};
F_=function(a,b,c){c=g.t(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.jf.Ik.get(d.triggerType))throw new E_("No trigger adapter registered for "+hZa.get(b)+" trigger of type: "+d.triggerType);};
G_=function(a,b,c,d){d=g.t(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.jf.Ik.get(e.triggerType);f.Dl(c,e,b.slot,b.layout?b.layout:null);b.oa.set(e.triggerId,f)}};
N_=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.oa.get(c.triggerId);d&&(d.Il(c),a.oa.delete(c.triggerId))}};
M_=function(a,b,c){kB("Slot stage was "+b+" when calling method "+c,a)};
kZa=function(a){return O_(a.Yu).concat(O_(a.Ik)).concat(O_(a.zp)).concat(O_(a.wq)).concat(O_(a.Vp))};
O_=function(a){var b=[];a=g.t(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.xj&&b.push(c);return b};
mZa=function(a){g.E.call(this);this.j=a;this.u=lZa(this)};
lZa=function(a){var b=new OYa(function(c,d,e,f){return new fZa(a.j.jf,c,d,e,f,a.j.Fa)},new Set(kZa(a.j.jf).concat(a.j.listeners)),a.j.Wb,a.j.Fa);
g.H(a,b);return b};
nZa=function(a){g.E.call(this);var b=this;this.j=a;this.instance=null;g.cb(this,function(){g.ab(b.instance);b.instance=null})};
Y=function(a){return new nZa(a)};
P_=function(a){this.j=a};
Q_=function(a,b,c,d){(a=a.j())||kB("Could not initiate a command router instance.");IM(a,b,c,d)};
R_=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
oZa=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
pZa=function(a){return null!=a.linearAds&&R_(a.adLayoutMetadata)};
qZa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
sZa=function(a,b,c,d,e,f,h){b=Ura(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof KB?b:rZa(a,d,e,b,c);return a instanceof KB?a:[a]};
tZa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
vZa=function(a,b,c,d,e,f,h,l){return null===b?new KB("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[uZa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new CZ([new TZ(d),new YZ(e)]);n=oB(c.Ya.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Zb:new Map,
Rd:[new S_(c.j,h)],Zc:[],Xc:[],Yc:[],bd:[],bb:"core",Da:q,Ic:m(r),adLayoutLoggingData:p}})]};
zZa=function(a,b,c,d,e){b=g.t(b);for(var f=b.next();!f.done;f=b.next())f=f.value,T_(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return wZa(p)});
b=[];f={};for(var h=g.t(a),l=h.next();!l.done;f={Bq:f.Bq},l=h.next()){f.Bq=l.value;l={};for(var m=g.t(f.Bq.NI),n=m.next();!n.done;l={Kk:l.Kk},n=m.next())l.Kk=n.value,n=function(p,q){return function(r){return p.Kk.xJ(r,q.Bq.instreamVideoAdRenderer.elementId,p.Kk.MI)}}(l,f),l.Kk.isContentVideoCompanion?b.push(xZa(c,d,e,f.Bq.instreamVideoAdRenderer.elementId,l.Kk.associatedCompositePlayerBytesLayoutId,l.Kk.adSlotLoggingData,n)):1<a.length?b.push(yZa(c,d,e,f.Bq.instreamVideoAdRenderer.elementId,l.Kk.adSlotLoggingData,
function(p,q){return function(r){return p.Kk.xJ(r,q.Bq.instreamVideoAdRenderer.elementId,p.Kk.MI,p.Kk.associatedCompositePlayerBytesLayoutId)}}(l,f))):b.push(yZa(c,d,e,f.Bq.instreamVideoAdRenderer.elementId,l.Kk.adSlotLoggingData,n))}return b};
T_=function(a,b,c){if(b=AZa(b)){b=g.t(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=BZa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.dF=c)}else kB("InstreamVideoAdRenderer without externalVideoId")}};
AZa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.P(a.sandwichedLinearAdRenderer.linearAd,wM);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.t(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.P(c,wM)&&b.push(g.P(c,wM));return b}return null};
wZa=function(a){if(void 0===a.instreamVideoAdRenderer)return kB("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.t(a.NI),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.xJ)return!1;if(void 0===c.MI)return kB("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.dF||void 0===c.BD||a.dF!==c.BD&&"AD_PLACEMENT_KIND_SELF_START"!==c.BD)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return kB("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.dF,"matching APSR kind":c.BD}),!1}return!0};
BZa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,dF:void 0,adVideoId:b,NI:[]});return a.get(b)};
U_=function(a,b,c,d,e,f,h,l,m){e?BZa(a,e).NI.push({k9a:b,BD:c,isContentVideoCompanion:d,MI:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,xJ:m}):kB("Companion AdPlacementSupportedRenderer without adVideoId")};
DZa=function(a,b){var c;if(null==(c=a.questions)||!c.length||!a.playbackCommands||(void 0===b||!b)&&1!==a.questions.length)return!1;a=g.t(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=(null==(c=g.P(b,EK))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.P(b,DK))?void 0:d.surveyAdQuestionCommon);if(!CZa(e))return!1}return!0};
EZa=function(a,b){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var c;if(a)if(a.playbackCommands&&a.questions&&1===a.questions.length)if(b){var d,e=(null==(c=g.P(a.questions[0],EK))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.P(a.questions[0],DK))?void 0:d.surveyAdQuestionCommon);c=CZa(e)}else c=null==(e=g.P(a.questions[0],EK))?void 0:e.surveyAdQuestionCommon,c=CZa(c);else c=!1;else c=!1;return c};
CZa=function(a){if(!a)return!1;a=g.P(a.instreamAdPlayerOverlay,FZa);var b=g.P(null==a?void 0:a.skipOrPreviewRenderer,V_),c=g.P(null==a?void 0:a.adInfoRenderer,W_);return(g.P(null==a?void 0:a.skipOrPreviewRenderer,X_)||b)&&c?!0:!1};
GZa=function(a){var b=0;a=g.t(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.P(c,EK)||g.P(c,DK)){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
HZa=function(a){var b,c,d,e,f=(null==(c=g.P(null==(b=a.questions)?void 0:b[0],EK))?void 0:c.surveyAdQuestionCommon)||(null==(e=g.P(null==(d=a.questions)?void 0:d[0],DK))?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.u((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.u((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,w,x,z,B,C,G,F,K,L,N,ba,T,S,ea;return{impressionCommands:null==(l=a.playbackCommands)?void 0:l.impressionCommands,errorCommands:null==(m=a.playbackCommands)?
void 0:m.errorCommands,muteCommands:null==(n=a.playbackCommands)?void 0:n.muteCommands,unmuteCommands:null==(p=a.playbackCommands)?void 0:p.unmuteCommands,pauseCommands:null==(q=a.playbackCommands)?void 0:q.pauseCommands,rewindCommands:null==(r=a.playbackCommands)?void 0:r.rewindCommands,resumeCommands:null==(w=a.playbackCommands)?void 0:w.resumeCommands,skipCommands:null==(x=a.playbackCommands)?void 0:x.skipCommands,progressCommands:null==(z=a.playbackCommands)?void 0:z.progressCommands,r9a:null==
(B=a.playbackCommands)?void 0:B.clickthroughCommands,fullscreenCommands:null==(C=a.playbackCommands)?void 0:C.fullscreenCommands,activeViewViewableCommands:null==(G=a.playbackCommands)?void 0:G.activeViewViewableCommands,activeViewMeasurableCommands:null==(F=a.playbackCommands)?void 0:F.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(K=a.playbackCommands)?void 0:K.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null==(L=a.playbackCommands)?
void 0:null==(N=L.activeViewTracking)?void 0:N.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(ba=a.playbackCommands)?void 0:null==(T=ba.activeViewTracking)?void 0:T.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(S=a.playbackCommands)?void 0:S.endFullscreenCommands,abandonCommands:null==(ea=a.playbackCommands)?void 0:ea.abandonCommands,completeCommands:b}};
KZa=function(a,b,c,d,e,f,h){return function(l,m){return IZa(a,m.slotId,l,f,function(n,p){n=h(n);return JZa(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new yYa(c),d],c.adLayoutLoggingData)})}};
NZa=function(a,b,c,d,e,f,h){if(!LZa(a))return new KB("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[MZa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=oB(e.Ya.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",bb:"core"},q=new Y_(e.j,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Zb:new Map,Rd:[q],Zc:[],
Xc:[],Yc:[],bd:[],bb:"core",Da:new CZ([new zYa(l)]),Ic:n(p)}})]};
LZa=function(a){a=g.P(null==a?void 0:a.additionalPlayerOverlay,OZa);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
RZa=function(a,b,c,d,e,f){var h;if(null==(h=a.playerOverlay)||!h.instreamSurveyAdRenderer)return function(){return[]};
if(!EZa(a,f))return function(){return new KB("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var l=a.playerOverlay.instreamSurveyAdRenderer,m=GZa(l);return 0>=m?function(){return new KB("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:l})}:function(n,p){var q=PZa(n,c,d,function(r){var w=p(r),x=r.slotId;
r=HZa(l);x=oB(e.Ya.get(),"LAYOUT_TYPE_SURVEY",x);var z={layoutId:x,layoutType:"LAYOUT_TYPE_SURVEY",bb:"core"},B=new Y_(e.j,d),C=new Z_(e.j,x),G=new $_(e.j,x),F=new QZa(e.j);return{layoutId:x,layoutType:"LAYOUT_TYPE_SURVEY",Zb:new Map,Rd:[B,F],Zc:[C],Xc:[],Yc:[G],bd:[],bb:"core",Da:new CZ([new xYa(l),new YZ(b),new v_(m/1E3),new x_(r)]),Ic:w(z),adLayoutLoggingData:l.adLayoutLoggingData}});
n=NZa(a,c,q.slotId,d,e,n,p);return n instanceof KB?n:[q].concat(g.u(n))}};
$Za=function(a,b,c,d,e,f,h){var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(z){z=SZa(z.slotId,c,b,e(z),d,f,h);m=z.D6;return z.T_};
else if(c.renderer.instreamVideoAdRenderer)n=function(z){var B=z.slotId;z=e(z);var C=c.config.adPlacementConfig,G=TZa(C),F=G.xR;G=G.AR;var K=c.renderer.instreamVideoAdRenderer,L;if(null==K?0:null==(L=K.playerOverlay)?0:L.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var N=UZa(K);L=Math.min(F+1E3*N.videoLengthSeconds,G);G=new sK(0,[N.videoLengthSeconds],L);var ba=N.videoLengthSeconds,T=N.playerVars,S=N.instreamAdPlayerOverlayRenderer,ea=N.adVideoId,
Q=VZa(c),sa=N.Zb;N=N.zQ;var ha=null==K?void 0:K.adLayoutLoggingData;K=null==K?void 0:K.sodarExtensionData;B=oB(b.Ya.get(),"LAYOUT_TYPE_MEDIA",B);var ta={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",bb:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",Zb:sa,Rd:[new WZa(b.j)],Zc:[],Xc:[],Yc:[],bd:[],bb:"core",Da:new CZ([new d_(d),new l_(ba),new m_(T),new o_(F),new p_(L),S&&new e_(S),new YZ(C),new c_(ea),new ZZ(G),new s_(Q),K&&new n_(K),new i_({current:null}),new r_({}),new y_(N)].filter(XZa)),Ic:z(ta),
adLayoutLoggingData:ha}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=YZa(a,d,n);l.push(p);for(var q=g.t(m),r=q.next();!r.done;r=q.next()){var w=r.value,x=w(a,e);if(x instanceof KB)return x;l.push.apply(l,g.u(x))}}catch(z){return new KB(z,{errorMessage:z.message,AdPlacementRenderer:c,numberOfSurveyRenderers:ZZa(c)})}return l};
ZZa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.P(b,wM))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
SZa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=TZa(l),n=m.xR,p=m.AR;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],r={LV:n,MV:0,A6:q};m=m.map(function(x){return a_a(a,x,r,c,d,l,e,p,h)}).map(function(x,z){z=new sK(z,q,p);
return x(z)});
var w=m.map(function(x){return x.U_});
return{T_:b_a(c,a,n,w,l,VZa(b),d,p,f),D6:m.map(function(x){return x.C6})}};
a_a=function(a,b,c,d,e,f,h,l,m){var n=UZa(g.P(b,wM)),p=c.LV,q=c.MV,r=Math.min(p+1E3*n.videoLengthSeconds,l);c.LV=r;c.MV++;c.A6.push(n.videoLengthSeconds);var w,x,z=null==(w=g.P(b,wM))?void 0:null==(x=w.playerOverlay)?void 0:x.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==z)throw new TypeError("Survey slate media has no survey overlay");return function(B){var C=n.playerVars;2<=B.u&&(C.slot_pos=B.j);C.autoplay="1";var G,F;C=n.videoLengthSeconds;var K=n.playerVars,L=n.Zb,N=n.zQ,ba=n.instreamAdPlayerOverlayRenderer,
T=n.adVideoId,S=null==(G=g.P(b,wM))?void 0:G.adLayoutLoggingData;G=null==(F=g.P(b,wM))?void 0:F.sodarExtensionData;F=oB(d.Ya.get(),"LAYOUT_TYPE_MEDIA",a);var ea={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",bb:"adapter"};B={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",Zb:L,Rd:[],Zc:[],Xc:[],Yc:[],bd:[],bb:"adapter",Da:new CZ([new d_(h),new l_(C),new m_(K),new o_(p),new p_(r),new q_(q),new i_({current:null}),ba&&new e_(ba),new YZ(f),new c_(T),new ZZ(B),G&&new n_(G),z&&new LYa(z),new r_({}),new y_(N)].filter(XZa)),
Ic:e(ea),adLayoutLoggingData:S};C=RZa(g.P(b,wM),f,h,B.layoutId,d,m);return{U_:B,C6:C}}};
UZa=function(a){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=zv(a.playerVars),c=Number(b.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(a.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=a.playerOverlay||{};d=void 0===d.instreamAdPlayerOverlayRenderer?null:d.instreamAdPlayerOverlayRenderer;var e=b.video_id;e||
(e=(e=a.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");return{playerVars:b,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:d,adVideoId:e,Zb:a.pings?vK(a.pings):new Map,zQ:uK(a.pings)}};
VZa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
TZa=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{xR:b,AR:a}};
d_a=function(a,b,c,d,e,f,h){var l=c.pings;return l?[c_a(a,f,e,function(m){var n=m.slotId;m=h(m);var p=c.adLayoutLoggingData;n=oB(b.Ya.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",bb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Zb:vK(l),Rd:[new S_(b.j,f)],Zc:[],Xc:[],Yc:[],bd:[],bb:"core",Da:new CZ([new YZ(d)]),Ic:m(q),adLayoutLoggingData:p}})]:new KB("VideoAdTrackingRenderer without VideoAdTracking pings filled.",
{videoAdTrackingRenderer:c})};
f_a=function(a,b,c,d,e,f,h,l){a=e_a(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=oB(b.Ya.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",bb:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Zb:q,Rd:[new a0(b.j,n)],Zc:[],Xc:[],Yc:[],bd:[],bb:"core",Da:new CZ([new FYa(e),new YZ(c)]),Ic:m(p)}});
return a instanceof KB?a:[a]};
k_a=function(a,b,c,d,e,f,h,l){a=g_a(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=oB(b.Ya.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=h_a(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,i_a(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=oB(b.Ya.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=h_a(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,i_a(b,n,p))):q.imageOverlayAdContentRenderer?(q=oB(b.Ya.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=i_a(b,n,p),n.push(new j_a(b.j,q)),n=h_a(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new E_("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new E_("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof KB?a:[a]};
n_a=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new KB("Expected valid duration for AdActionInterstitialRenderer."):function(p){return l_a(b,p.slotId,c,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return m_a(a,q,e,function(r,w){var x=r.slotId;r=h(r);x=oB(b.Ya.get(),"LAYOUT_TYPE_ENDCAP",
x);return JZa(b,x,w,c,r,"LAYOUT_TYPE_ENDCAP",[new vYa(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
o_a=function(a,b,c,d){if(!c.playerVars)return new KB("No playerVars available in AdIntroRenderer.");var e=zv(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=oB(a.Ya.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",bb:"adapter"};return{Mj:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Zb:new Map,Rd:[],Zc:[],Xc:[],Yc:[],bd:[],bb:"adapter",Da:new CZ([new EYa({}),new YZ(b),new i_({current:null}),new m_(e)]),Ic:f(l)},al:[new b0(a.j,h,["error"])],ij:[],Zw:[],
Yw:[]}}};
q_a=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=GZa(e);if(!DZa(e,n))return new KB("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new KB("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=KZa(a,b,e,f,c,d,h);return q instanceof KB?q:function(r){return p_a(b,r.slotId,c,p,HZa(e),h(r),q,l,m)}};
r_a=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.P(a.ctaButton,g.zJ)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.P(a.backgroundImage,c0)&&(null==(b=g.P(a.backgroundImage,c0))?0:b.landscape)?!0:!1};
t_a=function(a,b,c,d,e,f,h,l){function m(q){return m_a(a,q,d,n)}
function n(q,r){var w=q.slotId;q=h(q);w=oB(b.Ya.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",w);return JZa(b,w,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new wYa(e),f],e.adLayoutLoggingData)}
if(!r_a(e))return new KB("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},w=h(q);q=s_a(b,q.slotId,c,p,r,new Map,w,m);r=new h_(q.UF);w=new $Z(l);return{Mj:{layoutId:q.layoutId,layoutType:q.layoutType,Zb:q.Zb,Rd:[],Zc:[],Xc:[],Yc:[],bd:[],bb:q.bb,Da:new CZ([].concat(g.u(q.Ww),[r,w])),Ic:q.Ic,adLayoutLoggingData:q.adLayoutLoggingData},
al:[],ij:q.Xc,Zw:q.Yc,Yw:q.bd,eg:q.eg}}};
u_a=function(a){var b,c=null==(b=DZ(a.Da,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=DZ(a.Da,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=DZ(a.Da,"metadata_type_content_cpn"),f=DZ(a.Da,"metadata_type_instream_ad_player_overlay_renderer"),h=DZ(a.Da,"metadata_type_player_underlay_renderer"),l=DZ(a.Da,"metadata_type_ad_placement_config"),m=DZ(a.Da,"metadata_type_video_length_seconds");var n=fB(a.Da,"metadata_type_layout_enter_ms")&&fB(a.Da,
"metadata_type_layout_exit_ms")?(DZ(a.Da,"metadata_type_layout_exit_ms")-DZ(a.Da,"metadata_type_layout_enter_ms"))/1E3:void 0;return{No:d,contentCpn:e,BM:c,OI:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,zF:n,YE:DZ(a.Da,"metadata_type_linked_in_player_layout_id"),ZE:DZ(a.Da,"metadata_type_linked_in_player_slot_id")}};
x_a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,x){d=nB(d,"SLOT_TYPE_PLAYER_BYTES");a=v_a(e,a,h,c,d,m,n);if(a instanceof KB)return a;var z;n=null==(z=DZ(a.Da,"metadata_type_fulfilled_layout"))?void 0:z.layoutId;if(!n)return new KB("Invalid adNotify layout");b=w_a(n,e,f,c,l,b,m,p,q,r,w,x,h);return b instanceof KB?b:[a].concat(g.u(b))};
w_a=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=y_a(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof KB)return c;a=z_a(b,a,h,e,c);return a instanceof KB?a:[].concat(g.u(a.nh),[a.ev])};
B_a=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=y_a(a,b,c,e,f,l,m,n,p,q,r);if(b instanceof KB)return b;a=A_a(a,c,f,h,d,l.Pd,b);return a instanceof KB?a:a.nh.concat(a.ev)};
y_a=function(a,b,c,d,e,f,h,l,m,n,p){var q=d0(d);return q instanceof E_?new KB(q):n.G.V().experiments.eb("html5_refactor_in_player_slot_generation")?function(r){var w=new sK(0,[q.Ft]);r=C_a(b,q.Um,c,e0(q.playerVars,q.lG,f,m,w),q.Ft,e,w,h(r),l.get(q.Um.externalVideoId));w=[];if(q.Um.playerOverlay.instreamAdPlayerOverlayRenderer){var x=u_a(r);if(!x)return kB("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,r),{layout:r,nh:[]};w=[D_a(a,x.contentCpn,
x.No,function(B){return f0(b,B.slotId,"core",x,HZ(p,B))},x.ZE)].concat(g.u(w));
if(x.instreamAdPlayerUnderlayRenderer&&E_a(n)){var z=x.instreamAdPlayerUnderlayRenderer;w=[F_a(a,x.contentCpn,x.No,function(B){return G_a(b,B.slotId,z,x.adPlacementConfig,x.No,HZ(p,B))})].concat(g.u(w))}}return{layout:r,
nh:w}}:function(r){var w=new sK(0,[q.Ft]);
return{layout:C_a(b,q.Um,c,e0(q.playerVars,q.lG,f,m,w),q.Ft,e,w,h(r),l.get(q.Um.externalVideoId)),nh:[]}}};
d0=function(a){if(!a.playerVars)return new E_("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(b=a.playerOverlay)?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new E_("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=zv(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,kB("Expected valid length seconds in player vars but got NaN"));
return{Um:a,playerVars:b,lG:a.playerVars,Ft:c}};
e0=function(a,b,c,d,e){a.iv_load_policy=d;b=zv(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){kB(f)}c.Ti&&(a.ctrl=c.Ti);c.Ui&&(a.ytr=c.Ui);c.mp&&(a.ytrcc=c.mp);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Qj&&(a.vss_credentials_token_type=c.Qj),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a};
I_a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,x,z){a=nB(a,"SLOT_TYPE_PLAYER_BYTES");d=v_a(b,h,d,e,a,n,p);if(d instanceof KB)return d;var B;h=null==(B=DZ(d.Da,"metadata_type_fulfilled_layout"))?void 0:B.layoutId;if(!h)return new KB("Invalid adNotify layout");b=H_a(h,b,c,e,f,m,l,n,q,r,w,x,z);return b instanceof KB?b:[d].concat(g.u(b))};
H_a=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=J_a(b,c,d,f,h,l,m,n,p,q,r);K_a(f)?(d=L_a(b,a),a=nB(b.Ya.get(),"SLOT_TYPE_IN_PLAYER"),f=oB(b.Ya.get(),"LAYOUT_TYPE_SURVEY",a),l=M_a(b,d,l),b=[].concat(g.u(l.vc),[new g0(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,Sb:l.Sb,qc:l.qc,vc:b,bb:l.bb},{slotId:a,layoutId:f}),e=a instanceof KB?a:{ev:Object.assign({},l,{vc:b,Da:new CZ([new t_(a.layout)]),adSlotLoggingData:e}),nh:a.nh}):e=z_a(b,a,l,e,c);return e instanceof
KB?e:[].concat(g.u(e.nh),[e.ev])};
O_a=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=J_a(a,b,c,e,f,h,m,n,p,q,r);K_a(e)?(c=N_a(a,c,h,l),c instanceof KB?d=c:(e=nB(a.Ya.get(),"SLOT_TYPE_IN_PLAYER"),h=oB(a.Ya.get(),"LAYOUT_TYPE_SURVEY",e),a=[].concat(g.u(c.vc),[new g0(a.j,h)]),e=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,bb:c.bb,Sb:c.Sb,qc:c.qc,vc:a},{slotId:e,layoutId:h}),d=e instanceof KB?e:{ev:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,Sb:c.Sb,qc:c.qc,vc:a,bb:c.bb,
Da:new CZ([new t_(e.layout)]),adSlotLoggingData:d},nh:e.nh})):d=A_a(a,c,h,l,d,m.Pd,b);return d instanceof KB?d:d.nh.concat(d.ev)};
K_a=function(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())if(g.P(b.value,h0))return!0;return!1};
J_a=function(a,b,c,d,e,f,h,l,m,n,p){return function(q,r){if(P_a(p)&&Q_a(p))a:{var w=R_a(d);if(w instanceof KB)r=w;else{for(var x=0,z=[],B=[],C=[],G=[],F=[],K=[],L=new j_({current:null}),N=new b_({current:null}),ba=!1,T=[],S=0,ea=[],Q=g.t(d.entries()),sa=Q.next();!sa.done;sa=Q.next()){var ha=g.t(sa.value);sa=ha.next().value;ha=ha.next().value;var ta=g.P(ha,wM);if(ta){ta=d0(ta);if(ta instanceof E_){r=new KB(ta);break a}var Pa=new sK(S,w),vb=e0(ta.playerVars,ta.lG,h,n,Pa);S++;ea[sa]={renderer:ha,data:ta,
i_:Pa,EQ:vb}}}S=-1;w=g.t(d.entries());for(Q=w.next();!Q.done;Q=w.next())if(sa=g.t(Q.value),Q=sa.next().value,sa=sa.next().value,ha=g.P(sa,yM)){Q=o_a(b,c,ha,l);if(Q instanceof KB){r=Q;break a}Q=Q(q);z.push(Q.Mj);B=[].concat(g.u(Q.al),g.u(B));C=[].concat(g.u(Q.ij),g.u(C));Q.eg&&(T=[Q.eg].concat(g.u(T)))}else if(g.P(sa,wM))ha=ea[Q],S=ha.data,sa=ha.i_,ha=ha.EQ,Q=ea[Q+1],ta=void 0,Q&&(ta=Q.EQ),Q=S_a(b,S.Um,c,ha,S.Ft,f,sa,l(q),N,m.get(S.Um.externalVideoId),ta),x++,z.push(Q.Mj),B=[].concat(g.u(Q.al),g.u(B)),
C=[].concat(g.u(Q.ij),g.u(C)),ba||(K.push(N),ba=!0),S=(S=S.Um.adPodSkipTarget)&&0<S?S:-1;else if(Q=g.P(sa,xM)){Q=n_a(a,b,c,Q,f,x,l,N,S);if(Q instanceof KB){r=Q;break a}Q=Q(q);z.push(Q.Mj);B=[].concat(g.u(Q.al),g.u(B));C=[].concat(g.u(Q.ij),g.u(C));Q.eg&&(T=[Q.eg].concat(g.u(T)))}else if(Q=g.P(sa,h0)){if(void 0===r){r=new KB("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Q});break a}Q=q_a(a,b,c,f,Q,L,l,r,x,i0(p,"supports_multi_step_on_desktop"));
if(Q instanceof KB){r=Q;break a}Q=Q(q);z.push(Q.Mj);Q.eg&&T.push(Q.eg);B=[].concat(g.u(Q.al),g.u(B));C=[].concat(g.u(Q.ij),g.u(C));G=[].concat(g.u(Q.Zw),g.u(G));F=[].concat(g.u(Q.Yw),g.u(F));K=[L].concat(g.u(K))}else if(Q=g.P(sa,T_a)){Q=t_a(a,b,c,f,Q,L,l,x);if(Q instanceof KB){r=Q;break a}Q=Q(q);z.push(Q.Mj);Q.eg&&T.push(Q.eg);C=[].concat(g.u(Q.ij),g.u(C))}else{r=new KB("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}r={NV:z,Zc:B,Yc:G,bd:F,Xc:C,Ww:K,nh:T}}}else a:if(x=R_a(d),x instanceof
KB)r=x;else{z=0;B=[];C=[];G=[];F=[];K=[];L=[];N=new j_({current:null});ba=new b_({current:null});T=!1;ea=[];S=-1;w=g.t(d);for(Q=w.next();!Q.done;Q=w.next())if(Q=Q.value,g.P(Q,yM)){Q=o_a(b,c,g.P(Q,yM),l);if(Q instanceof KB){r=Q;break a}Q=Q(q);B.push(Q.Mj);C=[].concat(g.u(Q.al),g.u(C));G=[].concat(g.u(Q.ij),g.u(G));Q.eg&&(ea=[Q.eg].concat(g.u(ea)))}else if(g.P(Q,wM)){S=d0(g.P(Q,wM));if(S instanceof E_){r=new KB(S);break a}Q=new sK(z,x);Q=S_a(b,S.Um,c,e0(S.playerVars,S.lG,h,n,Q),S.Ft,f,Q,l(q),ba,m.get(S.Um.externalVideoId));
z++;B.push(Q.Mj);C=[].concat(g.u(Q.al),g.u(C));G=[].concat(g.u(Q.ij),g.u(G));T||(L.push(ba),T=!0);S=(S=S.Um.adPodSkipTarget)&&0<S?S:-1}else if(g.P(Q,xM)){Q=n_a(a,b,c,g.P(Q,xM),f,z,l,ba,S);if(Q instanceof KB){r=Q;break a}Q=Q(q);B.push(Q.Mj);C=[].concat(g.u(Q.al),g.u(C));G=[].concat(g.u(Q.ij),g.u(G));Q.eg&&(ea=[Q.eg].concat(g.u(ea)))}else if(g.P(Q,h0)){if(void 0===r){r=new KB("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.P(Q,h0)});break a}Q=
q_a(a,b,c,f,g.P(Q,h0),N,l,r,z,i0(p,"supports_multi_step_on_desktop"));if(Q instanceof KB){r=Q;break a}Q=Q(q);B.push(Q.Mj);Q.eg&&ea.push(Q.eg);C=[].concat(g.u(Q.al),g.u(C));G=[].concat(g.u(Q.ij),g.u(G));F=[].concat(g.u(Q.Zw),g.u(F));K=[].concat(g.u(Q.Yw),g.u(K));L=[N].concat(g.u(L))}else if(g.P(Q,T_a)){Q=t_a(a,b,c,f,g.P(Q,T_a),N,l,z);if(Q instanceof KB){r=Q;break a}Q=Q(q);B.push(Q.Mj);Q.eg&&ea.push(Q.eg);G=[].concat(g.u(Q.ij),g.u(G))}else{r=new KB("Unsupported linearAd found in LinearAdSequenceRenderer.");
break a}r={NV:B,Zc:C,Yc:F,bd:K,Xc:G,Ww:L,nh:ea}}r instanceof KB?q=r:(K=q.slotId,x=r.NV,z=r.Zc,B=r.Xc,C=r.Yc,G=r.Ww,q=l(q),F=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",K=e?e.layoutId:oB(b.Ya.get(),F,K),L={layoutId:K,layoutType:F,bb:"core"},q={layout:{layoutId:K,layoutType:F,Zb:new Map,Rd:[new a0(b.j,K)],Zc:z,Xc:B,Yc:C,bd:[],bb:"core",Da:new CZ([new k_(x)].concat(g.u(G))),Ic:q(L)},nh:r.nh});return q}};
R_a=function(a){var b=[];a=g.t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,g.P(c,wM)){c=d0(g.P(c,wM));if(c instanceof E_)return new KB(c);b.push(c.Ft)}return b};
V_a=function(a,b,c,d,e,f,h,l){if(!DZa(c,void 0===l?!1:l))return new KB("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=GZa(c);if(0>=m)return new KB("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new j_({current:null}),p=KZa(a,b,c,n,d,f,h);return U_a(a,d,f,m,e,function(q,r){var w=q.slotId,x=HZa(c);q=h(q);w=oB(b.Ya.get(),"LAYOUT_TYPE_MEDIA_BREAK",w);var z={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
bb:"core"},B=p(w,r);DZ(B.Da,"metadata_type_fulfilled_layout")||kB("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");x=[new YZ(d),new w_(m),new x_(x),n];return{e2:{layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Zb:new Map,Rd:[new a0(b.j,w)],Zc:[new Z_(b.j,r.layoutId)],Xc:[],Yc:[new $_(b.j,r.layoutId)],bd:[],bb:"core",Da:new CZ(x),Ic:q(z)},v1:B}})};
W_a=function(a){if(!qZa(a))return!1;var b=g.P(a.adVideoStart,vM);return b?g.P(a.linearAd,wM)&&lL(b)?!0:(kB("Invalid Sandwich with notify"),!1):!1};
X_a=function(a){if(null==a.linearAds)return!1;a=g.P(a.adStart,vM);return a?lL(a)?!0:(kB("Invalid LASR with notify"),!1):!1};
Y_a=function(a){if(!pZa(a))return!1;a=g.P(a.adStart,vM);return a?lL(a)?!0:(kB("Invalid LASR with notify"),!1):!1};
j0=function(a,b,c,d,e,f,h,l){this.Ya=a;this.Kb=b;this.zb=c;this.Fa=d;this.Lb=e;this.j=f;this.lj=h;this.loadPolicy=void 0===l?1:l};
ura=function(a,b,c,d,e,f,h,l){var m=[];if(0===b.length&&0===c.length)return m;b=b.filter(oZa);for(var n=c.filter(oZa),p=new Map,q=new Map,r=g.t(b),w=r.next();!w.done;w=r.next())(w=w.value.renderer.remoteSlotsRenderer)&&w.hostElementId&&q.set(w.hostElementId,w);r=g.t(b);for(w=r.next();!w.done;w=r.next()){w=w.value;var x=Z_a(a,p,w,d,e,f,h,q,l);x instanceof KB?kB(x,void 0,void 0,{renderer:w.renderer,config:w.config.adPlacementConfig,kind:w.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):m.push.apply(m,
g.u(x))}$_a(a.Fa.get())||(e=a0a(a,n,d,h,q,p),m.push.apply(m,g.u(e)));if(null===a.j||f&&!h.oR){var z,B,C;a=h.Pd&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(z=b[0].config)?void 0:null==(B=z.adPlacementConfig)?void 0:B.kind)&&(null==(C=b[0].renderer)?void 0:C.adBreakServiceRenderer);if(!m.length&&!a){var G,F,K,L;kB("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,"first APR kind":null==(G=b[0])?void 0:null==
(F=G.config)?void 0:null==(K=F.adPlacementConfig)?void 0:K.kind,renderer:null==(L=b[0])?void 0:L.renderer})}return m}z=c.filter(oZa);m.push.apply(m,g.u(zZa(p,z,a.Kb.get(),a.j,d)));if(!m.length){var N,ba,T,S;kB("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f.toString(),"first APR kind":null==(N=b[0])?void 0:null==(ba=N.config)?void 0:null==(T=ba.adPlacementConfig)?void 0:T.kind,renderer:null==(S=b[0])?void 0:S.renderer})}return m};
a0a=function(a,b,c,d,e,f){function h(r){return HZ(a.Lb.get(),r)}
var l=[];b=g.t(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&W_a(p)?(q=g.P(p.adVideoStart,vM),p=g.P(p.linearAd,wM),T_(f,n,m.config.adPlacementConfig.kind),n=void 0,q=w_a(null==(n=q)?void 0:n.layout.layoutId,a.Kb.get(),a.zb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Fa.get(),a.Lb.get()),q instanceof KB?kB(q):l.push.apply(l,g.u(q))):q&&(!q.adLayoutMetadata&&X_a(q)||q.adLayoutMetadata&&
Y_a(q))&&(T_(f,n,m.config.adPlacementConfig.kind),n=void 0,p=H_a(null==(n=g.P(q.adStart,vM))?void 0:n.layout.layoutId,a.Kb.get(),a.zb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,R_(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Fa.get()),p instanceof KB?kB(p):l.push.apply(l,g.u(p)))}return l};
Z_a=function(a,b,c,d,e,f,h,l,m){function n(z){return HZ(a.Lb.get(),z)}
var p=c.renderer,q=c.config.adPlacementConfig,r=q.kind,w=c.adSlotLoggingData,x=h.oR&&"AD_PLACEMENT_KIND_START"===r;x=f&&!x;if(null!=p.adsEngagementPanelRenderer)return U_(b,c.elementId,r,p.adsEngagementPanelRenderer.isContentVideoEngagementPanel,p.adsEngagementPanelRenderer.adVideoId,p.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(z,B,C,G){var F=a.zb.get(),K=p.adsEngagementPanelRenderer,L=HZ(a.Lb.get(),z);return k0(F,z.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new pYa(K),B,C,K.impressionPings,L,p.adsEngagementPanelRenderer.adLayoutLoggingData,G)}),[];
if(null!=p.actionCompanionAdRenderer){if(p.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return vZa(a.Kb.get(),a.j,a.zb.get(),p.actionCompanionAdRenderer,q,w,d,n);U_(b,c.elementId,r,p.actionCompanionAdRenderer.isContentVideoCompanion,p.actionCompanionAdRenderer.adVideoId,p.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(z,B,C,G){var F=a.zb.get(),K=p.actionCompanionAdRenderer,L=HZ(a.Lb.get(),z);return k0(F,z.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new TZ(K),
B,C,K.impressionPings,L,p.actionCompanionAdRenderer.adLayoutLoggingData,G)})}else if(p.imageCompanionAdRenderer)U_(b,c.elementId,r,p.imageCompanionAdRenderer.isContentVideoCompanion,p.imageCompanionAdRenderer.adVideoId,p.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(z,B,C,G){var F=a.zb.get(),K=p.imageCompanionAdRenderer,L=HZ(a.Lb.get(),z);
return k0(F,z.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new rYa(K),B,C,K.impressionPings,L,p.imageCompanionAdRenderer.adLayoutLoggingData,G)});
else if(p.shoppingCompanionCarouselRenderer)U_(b,c.elementId,r,p.shoppingCompanionCarouselRenderer.isContentVideoCompanion,p.shoppingCompanionCarouselRenderer.adVideoId,p.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(z,B,C,G){var F=a.zb.get(),K=p.shoppingCompanionCarouselRenderer,L=HZ(a.Lb.get(),z);return k0(F,z.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new sYa(K),B,C,K.impressionPings,L,p.shoppingCompanionCarouselRenderer.adLayoutLoggingData,G)});
else if(p.adBreakServiceRenderer){if(!tZa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==r)return sZa(a.Kb.get(),q,w,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.lj)return new KB("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");h.Pd||kB("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:r,adPlacementConfig:q,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(h.Pd),clientPlaybackNonce:h.clientPlaybackNonce});
b0a(a.lj,{adPlacementRenderer:c,contentCpn:d,fR:e})}else{if(p.clientForecastingAdRenderer)return f_a(a.Kb.get(),a.zb.get(),q,w,p.clientForecastingAdRenderer,d,e,n);if(p.invideoOverlayAdRenderer)return k_a(a.Kb.get(),a.zb.get(),q,w,p.invideoOverlayAdRenderer,d,e,n);if((p.linearAdSequenceRenderer||p.instreamVideoAdRenderer)&&x)return $Za(a.Kb.get(),a.zb.get(),c,d,n,m,a.Fa.get().G.V().experiments.eb("html5_ytvlr_enable_single_select_survey"));if(p.linearAdSequenceRenderer&&!x){T_(b,p,r);if(p.linearAdSequenceRenderer.adLayoutMetadata){if(!pZa(p.linearAdSequenceRenderer))return new KB("Received invalid LinearAdSequenceRenderer.")}else if(null==
p.linearAdSequenceRenderer.linearAds)return new KB("Received invalid LinearAdSequenceRenderer.");if(g.P(p.linearAdSequenceRenderer.adStart,vM)){b=g.P(p.linearAdSequenceRenderer.adStart,vM);if(!vCa(b))return new KB("Invalid AdMessageRenderer.");c=p.linearAdSequenceRenderer.linearAds;return I_a(a.Ya.get(),a.Kb.get(),a.zb.get(),a.Lb.get(),q,w,b,R_(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,h,n,l,a.loadPolicy,a.Fa.get())}return O_a(a.Kb.get(),
a.zb.get(),q,w,p.linearAdSequenceRenderer.linearAds,R_(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,h,n,l,a.loadPolicy,a.Fa.get())}if(!p.remoteSlotsRenderer||f){if(p.instreamVideoAdRenderer&&!x)return T_(b,p,r),B_a(a.Kb.get(),a.zb.get(),q,w,p.instreamVideoAdRenderer,d,e,h,n,l,a.loadPolicy,a.Fa.get(),a.Lb.get());if(p.instreamSurveyAdRenderer)return V_a(a.Kb.get(),a.zb.get(),p.instreamSurveyAdRenderer,q,w,d,n,i0(a.Fa.get(),"supports_multi_step_on_desktop"));
if(null!=p.sandwichedLinearAdRenderer)return qZa(p.sandwichedLinearAdRenderer)?g.P(p.sandwichedLinearAdRenderer.adVideoStart,vM)?(b=g.P(p.sandwichedLinearAdRenderer.adVideoStart,vM),vCa(b)?(c=g.P(p.sandwichedLinearAdRenderer.linearAd,wM))?x_a(b,c,q,a.Ya.get(),a.Kb.get(),a.zb.get(),a.Lb.get(),w,d,e,h,n,l,a.loadPolicy,a.Fa.get()):new KB("Missing IVAR from Sandwich"):new KB("Invalid AdMessageRenderer.")):O_a(a.Kb.get(),a.zb.get(),q,w,[p.sandwichedLinearAdRenderer.adVideoStart,p.sandwichedLinearAdRenderer.linearAd],
void 0,d,e,h,n,l,a.loadPolicy,a.Fa.get()):new KB("Received invalid SandwichedLinearAdRenderer.");if(null!=p.videoAdTrackingRenderer)return d_a(a.Kb.get(),a.zb.get(),p.videoAdTrackingRenderer,q,w,d,n)}}return[]};
l0=function(a){g.E.call(this);this.j=a};
eB=function(a,b,c,d){a.j().Pi(b,d);c=c();a=a.j();m0(a.Wb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.t(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;tL(d.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);tL(d.Wb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.Lb(c.slotId))throw new KB("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(C_(e,c))throw new KB("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Sb.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.jf.zp.has(c.slotType))throw new KB("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.jf.wq.has(c.slotType))throw new KB("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");jZa(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Sb?[c.Sb]:[]);jZa(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.qc);jZa(e,
"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.vc);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=K_(f,h);if(C_(f,c))throw new KB("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new eZa(c));f.j.set(h,l)}catch(T){T instanceof KB&&T.Jn?(z_(d.Wb,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",T.Jn,c),kB(T,c,void 0,void 0,T.Gt)):kB(T,c);break a}C_(d.j,c).I=!0;try{var m=d.j,n=C_(m,c),p=c.Sb,q=m.jf.Ik.get(p.triggerType);q&&(q.Dl("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,
null),n.ya.set(p.triggerId,q));for(var r=g.t(c.qc),w=r.next();!w.done;w=r.next()){var x=w.value,z=m.jf.Ik.get(x.triggerType);z&&(z.Dl("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.ea.set(x.triggerId,z))}for(var B=g.t(c.vc),C=B.next();!C.done;C=B.next()){var G=C.value,F=m.jf.Ik.get(G.triggerType);F&&(F.Dl("TRIGGER_CATEGORY_SLOT_EXPIRATION",G,c,null),n.Z.set(G.triggerId,F))}var K=m.jf.zp.get(c.slotType).get().Re(m.B,c);n.J=K;var L=m.jf.wq.get(c.slotType).get().Re(m.D,c);L.init();n.u=L}catch(T){T instanceof
KB&&T.Jn?(z_(d.Wb,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",T.Jn,c),kB(T,c,void 0,void 0,T.Gt)):kB(T,c);A_(d,c,!0);break a}tL(d.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.oi(c);for(var N=g.t(d.Id),ba=N.next();!ba.done;ba=N.next())ba.value.oi(c);QYa(d,c)}};
n0=function(a,b,c,d){this.zq=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
o0=function(a,b,c,d){g.E.call(this);var e=this;this.Yb=a;this.Kb=b;this.pc=c;this.j=new Map;d.get().addListener(this);g.cb(this,function(){d.get().removeListener(e)})};
sra=function(a,b){var c=0x8000000000000;for(var d=0,e=g.t(b.qc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof n0?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):kB("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Jo(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.pc.get().addCueRange(d,c.start,c.end,!1,a)};
p0=function(){g.E.apply(this,arguments);this.xj=!0;this.Ek=new Map;this.j=new Map};
c0a=function(a,b){a=g.t(a.Ek.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
d0a=function(a,b){a=g.t(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.t(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}kB("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Lb(b)),layoutId:b})};
g0=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
b0=function(a,b,c){this.jg=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
Y_=function(a,b){this.jg=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
WZa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
e0a=function(a,b){this.j=b;this.slotType="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
f0a=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
a0=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
S_=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
g0a=function(a,b){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=b;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=a(this.triggerType)};
QZa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
h0a=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
q0=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
i0a=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
Z_=function(a,b){this.jg=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
$_=function(a,b){this.jg=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
j_a=function(a,b){this.durationMs=45E3;this.jg=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
j0a=function(a){var b=[new g_(a.No),new e_(a.instreamAdPlayerOverlayRenderer),new BYa(a.BM),new YZ(a.adPlacementConfig),new l_(a.videoLengthSeconds),new v_(a.zF)];a.OI&&b.push(new b_(a.OI));return b};
k0a=function(a,b,c,d,e,f){a=c.YE?c.YE:oB(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Zb:new Map,Rd:[new Y_(function(l){return pB(f,l)},c.No)],
Zc:[],Xc:[],Yc:[],bd:[],bb:b,Da:d,Ic:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
r0=function(a){var b=this;this.Ya=a;this.j=function(c){return pB(b.Ya.get(),c)}};
G_a=function(a,b,c,d,e,f){c=new CZ([new f_(c),new YZ(d)]);b=oB(a.Ya.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",bb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Zb:new Map,Rd:[new Y_(function(h){return pB(a.Ya.get(),h)},e)],
Zc:[],Xc:[],Yc:[],bd:[],bb:"core",Da:c,Ic:f(d),adLayoutLoggingData:void 0}};
f0=function(a,b,c,d,e){var f=j0a(d);return k0a(b,c,d,new CZ(f),e,a.Ya.get())};
l0a=function(a,b,c,d,e){var f=j0a(d);f.push(new WZ(d.g_));f.push(new XZ(d.j_));return k0a(b,c,d,new CZ(f),e,a.Ya.get())};
k0=function(a,b,c,d,e,f,h,l,m,n){b=oB(a.Ya.get(),c,b);var p={layoutId:b,layoutType:c,bb:"core"},q=new Map;h&&q.set("impression",h);h=[new e0a(a.j,e)];n&&h.push(new b0(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Zb:q,Rd:h,Zc:[],Xc:[],Yc:[],bd:[],bb:"core",Da:new CZ([d,new YZ(f),new g_(e)]),Ic:l(p),adLayoutLoggingData:m}};
i_a=function(a,b,c){var d=[];d.push(new f0a(a.j,c));b&&d.push(b);return d};
h_a=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,bb:"core"};return{layoutId:b,layoutType:c,Zb:new Map,Rd:h,Zc:[new g0(a.j,b)],Xc:[],Yc:[],bd:[],bb:"core",Da:new CZ([new qYa(d),new YZ(e)]),Ic:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
JZa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,bb:"core"};return{layoutId:b,layoutType:f,Zb:new Map,Rd:[new Y_(a.j,c)],Zc:[],Xc:[],Yc:[],bd:[],bb:"core",Da:new CZ([new YZ(d)].concat(g.u(h))),Ic:e(m),adLayoutLoggingData:l}};
l_a=function(a,b,c,d,e,f,h,l,m,n,p,q){a=s_a(a,b,c,d,e,f,h,l,p,q);b=a.Ww;c=new h_(a.UF);d=a.Zc;0<m&&(b.push(c),b.push(new a_(m)),d=[]);b.push(new $Z(n));return{Mj:{layoutId:a.layoutId,layoutType:a.layoutType,Zb:a.Zb,Rd:[],Zc:[],Xc:[],Yc:[],bd:[],bb:a.bb,Da:new CZ(b),Ic:a.Ic,adLayoutLoggingData:a.adLayoutLoggingData},al:d,ij:a.Xc,Zw:a.Yc,Yw:a.bd,eg:a.eg}};
p_a=function(a,b,c,d,e,f,h,l,m){b=s_a(a,b,c,d,e,new Map,f,function(n){return h(n,l)});
a=new $_(a.j,b.UF);c=new h_(b.UF);m=new $Z(m);return{Mj:{layoutId:b.layoutId,layoutType:b.layoutType,Zb:b.Zb,Rd:[],Zc:[],Xc:[],Yc:[],bd:[],bb:b.bb,Da:new CZ([].concat(g.u(b.Ww),[c,m])),Ic:b.Ic,adLayoutLoggingData:b.adLayoutLoggingData},al:b.Zc,ij:b.Xc,Zw:[].concat(g.u(b.Yc),[a]),Yw:b.bd,eg:b.eg}};
s_a=function(a,b,c,d,e,f,h,l,m,n){b=oB(a.Ya.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",bb:"adapter"};l=l(b);var q=DZ(l.Da,"metadata_type_fulfilled_layout");q||kB("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new YZ(c),new w_(d),new x_(e)];n&&c.push(new q_(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Zb:f,Rd:[],Zc:[new Z_(a.j,q)],Xc:[],Yc:[],bd:[],bb:"adapter",
Ww:c,Ic:h(p),adLayoutLoggingData:m,eg:l,UF:q}};
C_a=function(a,b,c,d,e,f,h,l,m){a=m0a(a,"core",b,c,d,e,f,h,l,m);return{layoutId:a.layoutId,layoutType:a.layoutType,Zb:a.Zb,Rd:a.Rd,Zc:a.Zc,Xc:a.Xc,Yc:a.Yc,bd:a.bd,bb:a.bb,Da:new CZ(a.cR),Ic:a.Ic,adLayoutLoggingData:a.adLayoutLoggingData}};
S_a=function(a,b,c,d,e,f,h,l,m,n,p){c=m0a(a,"adapter",b,c,d,e,f,h,l,n,p);d=c.Zc;e=c.cR;b.adPodSkipTarget&&0<b.adPodSkipTarget&&(e.push(m),e.push(new a_(b.adPodSkipTarget)),d=[]);e.push(new $Z(h.j));b.isCritical&&(d=[new b0(a.j,c.layoutId,["error"])].concat(g.u(d)));return{Mj:{layoutId:c.layoutId,layoutType:c.layoutType,Zb:c.Zb,Rd:[],Zc:[],Xc:[],Yc:[],bd:[],bb:c.bb,Da:new CZ(e),Ic:c.Ic,adLayoutLoggingData:c.adLayoutLoggingData},al:d,ij:c.Xc,Zw:c.Yc,Yw:c.bd}};
m0a=function(a,b,c,d,e,f,h,l,m,n,p){var q=c.elementId,r={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",bb:b};d=[new YZ(d),new ZZ(l),new c_(c.externalVideoId),new d_(h),new e_(c.playerOverlay.instreamAdPlayerOverlayRenderer),new x_({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new m_(e),new i_({current:null}),new l_(f)];p&&d.push(new DYa(p));(p=c.playerUnderlay)&&d.push(new f_(p));p=nB(a.Ya.get(),"SLOT_TYPE_IN_PLAYER");e=(e=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
e:oB(a.Ya.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",p);d.push(new h_(e));d.push(new AYa(p));d.push(new q_(l.j));c.adNextParams&&d.push(new UZ(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new uYa(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new VZ(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new IYa(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new n_(c.sodarExtensionData));n&&d.push(new u_(n));d.push(new y_(uK(c.pings)));return{layoutId:q,
layoutType:"LAYOUT_TYPE_MEDIA",Zb:vK(c.pings),Rd:[new a0(a.j,q)],Zc:c.skipOffsetMilliseconds?[new Z_(a.j,e)]:[],Xc:[new Z_(a.j,e)],Yc:[],bd:[],bb:b,cR:d,Ic:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
b_a=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return kL(p,[],["LAYOUT_TYPE_MEDIA"])})||kB("Unexpect subLayout type for DAI composite layout");
b=oB(a.Ya.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Zb:new Map,Rd:[new WZa(a.j)],Zc:[],Xc:[],Yc:[],bd:[],bb:"core",Da:new CZ([new o_(c),new p_(l),new k_(d),new YZ(e),new s_(f),new r_({}),new MYa(m)]),Ic:h(n)}};
XZa=function(a){return null!=a};
n0a=function(a,b,c){this.zq=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
s0=function(a,b,c){this.jg=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
t0=function(a,b){this.jg=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
o0a=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
u0=function(a,b,c,d,e){this.zq=b;this.j=c;this.visible=d;this.layoutId=e;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=a(this.triggerType)};
p0a=function(a,b,c){this.zq=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
v0=function(a,b){this.Rh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
w0=function(a,b){this.Rh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
x0=function(a,b){this.Rh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
y0=function(a,b){this.Rh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
z0=function(a,b){this.Rh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
A0=function(a,b){this.Rh=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
B0=function(a,b,c){var d=this;this.Ya=a;this.zb=b;this.Fa=c;this.j=function(e){return pB(d.Ya.get(),e)}};
rZa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=nB(a.Ya.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.ir&&d.ir.start!==d.Nm.start&&l.push(new n0(a.j,c,new Jo(d.ir.start,d.Nm.start),!1));l.push(new n0(a.j,c,new Jo(d.Nm.start,d.Nm.end),d.dC));d={getAdBreakUrl:b.getAdBreakUrl,aV:d.Nm.start,ZU:d.Nm.end};b=new y0(a.j,h);f=[new GYa(d)].concat(g.u(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Sb:b,qc:l,vc:[new S_(a.j,c),new w0(a.j,h),new x0(a.j,h)],bb:"core",Da:new CZ(f),
adSlotLoggingData:e}};
r0a=function(a,b,c){var d=[];c=g.t(c);for(var e=c.next();!e.done;e=c.next())d.push(q0a(a,b,e.value));return d};
q0a=function(a,b,c){return null!=c.Rh&&c.Rh===a?c.clone(b):c};
IZa=function(a,b,c,d,e){return s0a(a,b,c,d,e)};
m_a=function(a,b,c,d){var e=nB(a.Ya.get(),"SLOT_TYPE_IN_PLAYER");return s0a(a,e,b,c,d)};
s0a=function(a,b,c,d,e){var f=new t0(a.j,c),h=[new v0(a.j,b)];a=[new w0(a.j,b),new S_(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Sb:f,qc:h,vc:a,bb:"core",Da:new CZ([new t_(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",Sb:f,qc:h,vc:a},c))]),adSlotLoggingData:void 0}};
U_a=function(a,b,c,d,e,f){var h=nB(a.Ya.get(),"SLOT_TYPE_PLAYER_BYTES"),l=nB(a.Ya.get(),"SLOT_TYPE_IN_PLAYER"),m=oB(a.Ya.get(),"LAYOUT_TYPE_SURVEY",l);b=C0(a,b,c,d);d=[new v0(a.j,h)];a=[new w0(a.j,h),new S_(a.j,c),new g0(a.j,m)];if(b instanceof KB)return b;f=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,bb:"core",Sb:b,qc:d,vc:a},{slotId:l,layoutId:m});l=f.v1;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Sb:b,qc:d,vc:a,bb:"core",Da:new CZ([new t_(f.e2)]),
adSlotLoggingData:e},l]};
D_a=function(a,b,c,d,e){e=e?e:nB(a.Ya.get(),"SLOT_TYPE_IN_PLAYER");c=new t0(a.j,c);var f=[new v0(a.j,e)];a=[new S_(a.j,b),new w0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Sb:c,qc:f,vc:a,bb:"core",Da:new CZ([new t_(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",Sb:c,qc:f,vc:a}))])}};
F_a=function(a,b,c,d){var e=nB(a.Ya.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new t0(a.j,c);var f=[new v0(a.j,e)];a=[new S_(a.j,b),new w0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Sb:c,qc:f,vc:a,bb:"core",Da:new CZ([new t_(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,bb:"core",Sb:c,qc:f,vc:a}))])}};
v_a=function(a,b,c,d,e,f,h){var l=nB(a.Ya.get(),"SLOT_TYPE_IN_PLAYER"),m=oB(a.Ya.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=t0a(a,d,f,h,m);if(d instanceof KB)return d;h=[new v0(a.j,l)];e=[new S_(a.j,f),new v0(a.j,e),new A0(a.j,e)];c=HZ(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",Sb:d,qc:h,vc:e});a=a.zb.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",bb:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Zb:new Map,Rd:[new h0a(a.j,m,
b.durationMs)],Zc:[new i0a(a.j,m,b.durationMs)],bd:[new q0(a.j,m)],Xc:[],Yc:[],bb:"core",Da:new CZ([new JYa(b)]),Ic:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",Sb:d,qc:h,vc:e,Da:new CZ([new t_(b)])}};
g_a=function(a,b,c,d,e,f){b=C0(a,b,c,d);if(b instanceof KB)return b;var h=b instanceof n0?new p0a(a.j,c,b.j):null;d=nB(a.Ya.get(),"SLOT_TYPE_IN_PLAYER");var l=[new v0(a.j,d)];a=[new S_(a.j,c),new w0(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",Sb:b,qc:l,vc:a},h);return f instanceof E_?new KB(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Sb:b,qc:l,vc:a,bb:"core",Da:new CZ([new t_(f)]),adSlotLoggingData:e}};
PZa=function(a,b,c,d){var e=nB(a.Ya.get(),"SLOT_TYPE_IN_PLAYER");c=new t0(a.j,c);var f=[new v0(a.j,e)],h=[new w0(a.j,e),new S_(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",Sb:c,qc:f,vc:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Sb:c,qc:[new v0(a.j,e)],vc:[new S_(a.j,b),new w0(a.j,e)],bb:"core",Da:new CZ([new t_(d(f))])}};
MZa=function(a,b,c,d,e){var f=nB(a.Ya.get(),"SLOT_TYPE_IN_PLAYER");c=new s0(a.j,d,c);d=[new v0(a.j,f)];a=[new S_(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Sb:c,qc:d,vc:a,bb:"core",Da:new CZ([new t_(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",Sb:c,qc:d,vc:a}))])}};
yZa=function(a,b,c,d,e,f){var h=nB(a.Ya.get(),b);return u0a(a,h,b,new t0(a.j,d),[new S_(a.j,c),new w0(a.j,h),new b0(a.j,d,["error"])],e,f)};
xZa=function(a,b,c,d,e,f,h){var l=nB(a.Ya.get(),b);return u0a(a,l,b,new b0(a.j,e,["normal"]),[new S_(a.j,c),new w0(a.j,l),new b0(a.j,d,["error"])],f,h)};
uZa=function(a,b,c,d,e){var f=nB(a.Ya.get(),b);return u0a(a,f,b,new hB(a.j,c),[new S_(a.j,c),new w0(a.j,f)],d,e)};
c_a=function(a,b,c,d){var e=nB(a.Ya.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new hB(a.j,b);var f=[new v0(a.j,e)];a=[new w0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Sb:b,qc:f,vc:a,bb:"core",Da:new CZ([new t_(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,bb:"core",Sb:b,qc:f,vc:a}))]),adSlotLoggingData:c}};
YZa=function(a,b,c){var d=nB(a.Ya.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new o0a(a.j),f=[new z0(a.j,d)];a=[new S_(a.j,b)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Sb:e,qc:f,vc:a,bb:"core",Da:new CZ([new t_(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,bb:"core",Sb:e,qc:f,vc:a})),new r_({})])}};
L_a=function(a,b){return $_a(a.Fa.get())?new b0(a.j,b,["normal","error","skipped"]):new b0(a.j,b,["normal"])};
z_a=function(a,b,c,d,e){b=L_a(a,b);a=M_a(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Sb:a.Sb,qc:a.qc,vc:a.vc,bb:a.bb});return e instanceof KB?e:{ev:Object.assign({},a,{Da:new CZ([new t_(e.layout)]),adSlotLoggingData:d}),nh:e.nh}};
A_a=function(a,b,c,d,e,f,h){a=N_a(a,b,c,d);if(a instanceof KB)return a;h=h({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Sb:a.Sb,qc:a.qc,vc:a.vc,bb:a.bb});if(h instanceof KB)return h;b=[new t_(h.layout)];f&&b.push(new KYa({}));return{ev:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Sb:a.Sb,qc:a.qc,vc:a.vc,bb:a.bb,Da:new CZ(b),adSlotLoggingData:e},nh:h.nh}};
M_a=function(a,b,c){var d=nB(a.Ya.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new v0(a.j,d)];a=[new w0(a.j,d),new S_(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Sb:b,qc:e,vc:a,bb:"core"}};
N_a=function(a,b,c,d){b=C0(a,b,c,d);return b instanceof KB?b:M_a(a,b,c)};
e_a=function(a,b,c,d,e,f){var h=nB(a.Ya.get(),"SLOT_TYPE_FORECASTING");b=C0(a,b,c,d);if(b instanceof KB)return b;d=[new v0(a.j,h)];a=[new w0(a.j,h),new S_(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Sb:b,qc:d,vc:a,bb:"core",Da:new CZ([new t_(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,bb:"core",Sb:b,qc:d,vc:a}))]),adSlotLoggingData:e}};
v0a=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new hB(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=Ura(b,d),a instanceof KB?a:e(a.Nm,f);case "AD_PLACEMENT_KIND_END":return new n0a(a.j,c,f);default:return new KB("Cannot construct entry trigger",{kind:b.kind})}};
t0a=function(a,b,c,d,e){return v0a(a,b,c,d,function(f,h){return new u0(a.j,c,f,h,e)})};
C0=function(a,b,c,d){return v0a(a,b,c,d,function(e,f){return new n0(a.j,c,e,f)})};
u0a=function(a,b,c,d,e,f,h){a=[new z0(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,Sb:d,qc:a,vc:e,bb:"core",Da:new CZ([new t_(h({slotId:b,slotType:c,slotPhysicalPosition:1,bb:"core",Sb:d,qc:a,vc:e}))]),adSlotLoggingData:f}};
D0=function(a,b){g.E.call(this);this.Fa=a;this.j=b;this.eventCount=0};
tL=function(a,b,c){m0(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
D_=function(a,b,c,d){m0(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
WYa=function(a,b,c,d){GZ(a.j.get())&&m0(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
z_=function(a,b,c,d){m0(a,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,d,void 0,void 0,d.adSlotLoggingData,void 0,{errorType:b,errorMessage:c})};
m0=function(a,b,c,d,e,f,h,l,m,n,p){try{if(w0a(a.Fa.get())){var q=g.wG(a.Fa.get().G.V().experiments,"H5_async_logging_delay_ms");g.Nw(g.Pw(),function(){return void x0a(a,b,c,d,e,f,h,l,m,n,p)},q)}else x0a(a,b,c,d,e,f,h,l,m,n,p)}catch(r){i0(a.Fa.get(),"html5_log_pacf_logging_errors")&&g.Nw(g.Pw(),function(){kB(r instanceof Error?r:String(r),f,h,{pacf_message:"exception during pacf logging"})})}};
x0a=function(a,b,c,d,e,f,h,l,m,n,p){if(a.u()&&("ADS_CLIENT_EVENT_TYPE_ERROR"!==b||a.sN())&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){b||kB("Empty PACF event type",f,h);var q=GZ(a.j.get());b={eventType:b,eventOrder:++a.eventCount};var r={};f&&(r.slotData=gYa(q,f));h&&(r.layoutData=hYa(q,h));l&&(r.triggerData=FZ(l.trigger,l.category));c&&(r.opportunityData=iYa(q,c,d,e));c={organicPlaybackContext:{contentCpn:a.Ta.get().Wf(1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=a.Ta.get().Wf(1).Pd;
var w;c.organicPlaybackContext.isMdxPlayback=null==(w=a.Ta.get().Wf(1))?void 0:w.isMdxPlayback;var x;if(w=null==(x=a.Ta.get().Wf(2))?void 0:x.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:w};c&&(r.externalContext=c);b.adClientData=r;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);p&&(b.errorInfo=p);m={adsClientEvent:b};i0(a.Fa.get(),"tvh5_pacf_disable_gel_log_action")||g.ax("adsClientStateChange",m)}};
E0=function(a,b,c){D0.call(this,a,b);this.Fa=a;this.Ta=c};
F0=function(){this.j=new Map};
G0=function(a,b,c,d,e){g.E.call(this);this.G=a;this.u=b;this.Ha=c;this.Ta=d;this.rf=e;this.listeners=[];var f=new eA(this);g.H(this,f);f.S(a,"internalAbandon",this.XL);g.cb(this,function(){g.gA(f)})};
H0=function(a){g.E.call(this);this.G=a;this.j=new Map;this.u=new eA(this);g.H(this,this.u);this.u.S(this.G,g.AB("ad"),this.onCueRangeEnter,this);this.u.S(this.G,g.BB("ad"),this.onCueRangeExit,this)};
z0a=function(a,b){(b=a.j.get(b))&&y0a(a,b)};
y0a=function(a,b){a.G.Oh([b.qe],b.Vm);a.j.delete(b.qe.id)};
A0a=function(a,b,c,d,e){g.yB.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
I0=function(a){this.G=a};
J0=function(a){this.G=a;this.j=Math.random()<g.wG(this.G.V().experiments,"tv_pacf_logging_sample_rate")};
w0a=function(a){return g.IH(a.G.V())&&i0(a,"H5_use_async_logging")};
i0=function(a,b){return a.G.V().N(b)};
K0=function(a){var b,c,d;return(null==(b=a.G.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
B0a=function(a){return a.G.V().N("html5_enable_vod_lasr_with_notify_pacf")};
$_a=function(a){return a.G.V().N("html5_enable_vod_slar_with_notify_pacf")};
SYa=function(a){if(g.UH(a.G.V())||HH(a.G.V())||g.IH(a.G.V()))return!0;kB("Composite VOD on legacy path.");return!1};
C0a=function(a){return a.G.V().N("html5_recognize_predict_start_cue_point")};
D0a=function(a){return a.G.V().N("enable_lr_home_infeed_ads_inline_playback_progress_pings")};
E0a=function(a){return a.G.V().N("enable_player_logging_lr_home_infeed_ads")};
E_a=function(a){return a.G.V().experiments.eb("enable_desktop_player_underlay")};
P_a=function(a){return a.G.V().experiments.eb("html5_load_ads_instead_of_cue")};
Q_a=function(a){return a.G.V().experiments.eb("html5_preload_ads")};
L0=function(a,b){this.Ha=a;this.G=b;this.j=new Map;rK().subscribe("adactiveviewmeasurable",this.FB,this);rK().subscribe("adfullyviewableaudiblehalfdurationimpression",this.EB,this);rK().subscribe("adviewableimpression",this.GB,this);rK().subscribe("adaudioaudible",this.CB,this);rK().subscribe("adaudiomeasurable",this.DB,this)};
F0a=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?kB("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),uk(Uk().featureSet,"fmd",1),Qn(Pk(On),c),VBa(rK(),b,{FA:function(){return d?{currentTime:a.Ha.get().getCurrentTimeSec(2,!1),duration:d,Wc:2===a.Ha.get().getPresentingPlayerType()&&1===M0(a.Ha.get(),2),x$a:!1,y$a:!0,volume:a.Ha.get().isMuted()?0:a.Ha.get().getVolume()/100}:{}}}))};
G0a=function(a,b){a.j.has(b)?(a.j.delete(b),delete rK().j[b]):kB("Unexpected unregistration of layout in LidarApi")};
N0=function(a,b){this.B=a;this.C=b};
O0=function(a,b,c,d){var e=void 0===e?new N0(function(){var f=a.V(),h=a.getVideoData(1);return g.aI(f,h?g.bK(h):"")},function(){return a.V().pageId}):e;
this.G=a;this.u=b;this.Mb=c;this.Ta=d;this.Et=e;this.MG=null;this.j=new Map;this.Al=new NK(e)};
I0a=function(a,b,c,d){var e=d0a(a.u.get(),c);e?(c=P0(a,H0a(e),e,void 0,d),b.hasOwnProperty("baseUrl")?a.Et.send(b,c):a.Al.send(b,c,{})):kB("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
Q0=function(a,b){g.ax("adsClientStateChange",b)};
J0a=function(a,b){a.j.has(b.yx())?kB("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.yx(),b)};
K0a=function(a,b){a.j.delete(b.yx())||kB("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
H0a=function(a){var b=DZ(a.Da,"metadata_type_ad_placement_config");a=DZ(a.Da,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,rT:a}};
P0=function(a,b,c,d,e){var f=c?L0a(a):{};c=c?M0a(a,c.layoutId):{};var h=N0a(a),l,m=null==(l=a.Ta.get().Wf(2))?void 0:l.clientPlaybackNonce;a.G.V().N("enable_player_logging_lr_home_infeed_ads")&&!m&&(m=a.Ta.get().Wf(1).clientPlaybackNonce);l={};var n={};d=Object.assign({},IK(a.G,d),dCa(b.adPlacementConfig),(l.SLOT_POS=HK(function(){return(b.rT||0).toString()}),l),c,f,h,(n.FINAL=HK(function(){return"1"}),n.AD_CPN=HK(function(){return m||""}),n));
a={};e=Object.assign({},d,e);d=g.t(Object.values(O0a));for(f=d.next();!f.done;f=d.next())f=f.value,c=e[f],null!=c&&null!=c.toString()&&(a[f]=c.toString());return a};
L0a=function(a){var b={},c,d=null==(c=a.MG)?void 0:c.Xm/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=HK(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=HK(function(){return Math.round(Date.now()/1E3).toString()});
return b};
M0a=function(a,b){a=a.j.get(b);if(!a)return{};a=a.ZJ();if(!a)return{};b={};return b.YT_ERROR_CODE=a.dH.toString(),b.ERRORCODE=a.NC.toString(),b.ERROR_MSG=a.errorMessage,b};
N0a=function(a){var b={},c=a.G.getVideoData(1);b.ASR=HK(function(){var d;return null!=(d=null==c?void 0:c.kz)?d:null});
b.EI=HK(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
R0=function(a,b,c){g.E.call(this);this.G=a;this.Ud=b;this.Fa=c;this.listeners=[];this.oL=null;this.QI=new Map;b=new g.vF(this);g.H(this,b);b.S(a,"videodatachange",this.q5);b.S(a,"serverstitchedvideochange",this.N4);this.Wt=this.Wf()};
Q0a=function(a,b,c){var d=P0a(a,b,c);a.Wt=d;a.listeners.forEach(function(e){e.lU(d)})};
P0a=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,h=b.Kc,l=b.title,m=b.Ti,n=b.Ui,p=b.isMdxPlayback,q=b.Qj,r=b.mdxEnvironment,w=b.isAutonav,x=b.qq,z=b.Do,B=b.Nt,C=b.videoId||"",G=b.profilePicture||"",F=b.Kl||"";b=b.mp||void 0;h=a.Ud.get().j.get(h)||{layoutId:null,slotId:null};var K=a.G.getVideoData(1),L=K.Pd();K=K.getPlayerResponse();c=1E3*a.G.getDuration(c);a=1E3*a.G.getDuration(1);var N,ba,T=(null==K?void 0:null==(N=K.playerConfig)?void 0:null==(ba=N.daiConfig)?void 0:ba.enableDai)||
!1,S,ea;N=(null==K?void 0:null==(S=K.playerConfig)?void 0:null==(ea=S.daiConfig)?void 0:ea.enablePreroll)||!1;return Object.assign({},h,{videoId:C,author:d,clientPlaybackNonce:e,playbackDurationMs:c,fR:a,daiEnabled:T,oR:N,isListed:f,Pd:L,profilePicture:G,title:l,Kl:F,Ti:m,Ui:n,mp:b,isMdxPlayback:p,Qj:q,mdxEnvironment:r,isAutonav:w,qq:x,Do:z,Nt:B})};
S0=function(a,b,c){g.E.call(this);this.G=a;this.Ta=b;this.Fa=c;this.listeners=[];this.YD=[];this.Yt=function(){kB("Called 'doUnlockPreroll' before it's initialized.")};
b=new eA(this);c=new g.vF(this);g.H(this,c);g.H(this,b);b.S(a,"progresssync",this.q4);b.S(a,"presentingplayerstatechange",this.g4);b.S(a,"fullscreentoggled",this.onFullscreenToggled);b.S(a,"onVolumeChange",this.onVolumeChange);b.S(a,"minimized",this.Hh);b.S(a,"resize",this.Bb);c.S(a,g.AB("appad"),this.xl)};
R0a=function(a,b){a.YD=a.YD.filter(function(c){return c!==b})};
S0a=function(a,b){var c;b=null!=(c=a.Ta.get().QI.get(b))?c:null;if(null===b)return kB("Expected ad video start time on playback timeline"),0;a=a.G.getCurrentTime(2,!0);return a<b?0:a-b};
M0=function(a,b){return a.G.Eb(b)};
T0a=function(a){var b=a.G.fb().uj();a=a.G.dk(!0,!0);return b.height-(a.height+a.top)};
U0a=function(a){a.G.cueVideoByPlayerVars({videoId:"empty_video"},2)};
V0a=function(a,b){var c=a.G.V();g.yH(c)||"3"!==c.controlsType||a.G.fb().tC(b)};
T0=function(a,b){g.ho(a.G.getRootNode(),b)};
U0=function(a,b){g.jo(a.G.getRootNode(),b)};
W0a=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ya=Y(function(){return new mB});
g.H(this,this.Ya);this.zb=Y(function(){return new r0(f.Ya)});
g.H(this,this.zb);this.Mc=Y(function(){return new p0});
g.H(this,this.Mc);this.Yb=Y(function(){return new l0(a)});
g.H(this,this.Yb);this.Kb=Y(function(){return new B0(f.Ya,f.zb,f.Fa)});
g.H(this,this.Kb);this.Ud=Y(function(){return new F0});
g.H(this,this.Ud);this.Ob=Y(function(){return new P_(e)});
this.pc=Y(function(){return new H0(b)});
g.H(this,this.pc);this.ud=Y(function(){return new I0(b)});
g.H(this,this.ud);this.Fa=Y(function(){return new J0(b)});
g.H(this,this.Fa);this.Lb=Y(function(){return new IZ(f.Fa)});
g.H(this,this.Lb);this.Yd=Y(function(){return new j0(f.Ya,f.Kb,f.zb,f.Fa,f.Lb,null,null)});
g.H(this,this.Yd);this.Ta=Y(function(){return new R0(b,f.Ud,f.Fa)});
g.H(this,this.Ta);this.Wb=new E0(this.Fa,this.Lb,this.Ta);g.H(this,this.Wb);this.Ha=Y(function(){return new S0(b,f.Ta,f.Fa)});
g.H(this,this.Ha);this.Mb=Y(function(){return new L0(f.Ha,b)});
g.H(this,this.Mb);this.Ra=Y(function(){return new O0(b,f.Mc,f.Mb,f.Ta)});
g.H(this,this.Ra);this.Sc=new lB(this.Yb,this.Yd,c,this.Fa,a,this.Ta,this.Ha);g.H(this,this.Sc);var h=new G0(b,this.Sc,this.Ha,this.Ta);this.Uf=Y(function(){return h});
this.As=h;this.kf=new o0(this.Yb,this.Kb,this.pc,this.Uf);g.H(this,this.kf);this.Uc=new cB(this.Fa,this.Yb,this.Kb,this.Yd,this.Ta,this.kf,c);g.H(this,this.Uc);this.jf={Yu:new Map,zp:new Map,Ik:new Map,wq:new Map,Vp:new Map};this.listeners=[];this.Ku={Uc:this.Uc,Xp:null,Ii:this.Fa.get(),jb:this.Ob.get(),Hs:this.Ha.get(),Sc:this.Sc,wm:this.Ya.get(),Wp:null,wl:{CK:function(){}},
Aj:this.Mc.get(),Lm:this.Ta.get()}};
V0=function(){this.listeners=new Set};
W0=function(){};
X0a=function(a,b){a=b.bgp&&b.bgub;var c=b.upb;b.siub&&b.scs&&(a||c)&&Kga(b.siub,b.scs,b.bgub,b.bgp,c)};
Y0a=function(a,b,c,d,e){this.callback=a;this.slot=b;this.zb=c;this.Lb=d;this.Fa=e;this.j=null};
Z0a=function(a,b,c,d){a.j&&kB("Currently active request ongoing for slot. This should never happen",a.slot);a.j=b();a.j.then(function(e){a.j=null;d&&d(e);var f=e.Qy?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.zb.get(),l=a.slot.slotId,m=HZ(a.Lb.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,bb:a.slot.bb,Sb:a.slot.Sb,qc:a.slot.qc,vc:a.slot.vc}),n=oB(h.Ya.get(),f,l),p={layoutId:n,layoutType:f,bb:"core"};e={layoutId:n,
layoutType:f,Zb:new Map,Rd:[new g0a(h.j,l)],Zc:[],Xc:[],Yc:[],bd:[],bb:"core",Da:new CZ([new HYa(e)]),Ic:m(p)};TYa(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof rf||PYa(a.callback,a.slot,new KB(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")});
i0(a.Fa.get(),"fetch_bid_for_dclk_status")&&jB("abr fetch")};
$0a=function(a){if(null==a.j)a.callback.PF(a.slot);else try{a.j.cancel(),a.j=null,a.callback.PF(a.slot)}catch(b){a.j=null,PYa(a.callback,a.slot,new KB(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
a1a=function(a,b,c,d,e,f,h){this.slot=b;this.zf=c;this.hf=h;this.j=new Y0a(a,b,d,e,f)};
b1a=function(a){var b;null==(b=a.hf)||b.get().Fs(DZ(a.slot.Da,"metadata_type_cue_point").identifier)};
c1a=function(a,b,c,d,e,f){this.slot=b;this.zf=c;this.j=new Y0a(a,b,d,e,f)};
d1a=function(a,b){this.callback=a;this.slot=b};
e1a=function(a,b){return gB(a,b.He,b.slotType)?!0:!1};
f1a=function(){};
X0=function(a,b,c,d,e){this.zf=a;this.zb=b;this.Lb=c;this.Fa=d;this.hf=e};
Y0=function(){};
g1a=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.j=d};
Z0=function(a,b){return kL(a,b.He,b.Nf)?!0:!1};
$0=function(a){this.j=a};
a1=function(a,b,c,d,e){e=void 0===e?null:e;this.B=a;this.Ra=b;this.layoutId=d;this.C=0;this.D=null;this.j=new Set;this.u=Array.from(this.B.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.I={adPlacementConfig:c,rT:e}};
b1=function(){return["metadata_type_ad_placement_config"]};
c1=function(a){var b=a.Ra.get();return P0(b,a.I)};
d1=function(a,b,c){c=void 0===c?!1:c;if(!a.j.has(b)){var d=c&&XBa(b);d&&(c=!a.j.has(d));a.Zg(b,c)}};
e1=function(a,b,c){for(c=void 0===c?!1:c;a.C<a.u.length;){var d=a.u[a.C];if(d.offsetMilliseconds<=b||c)h1a(a,"progress",[d]),a.C++;else break}};
f1=function(a,b){return a.j.has(b)};
i1a=function(a){return a.u.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
g1=function(a,b){var c;return!(null==(c=a.B.get(b))||!c.length)};
h1a=function(a,b,c){var d,e=a.Ra.get(),f=a.layoutId;a=null!=(d=a.D)?d:void 0;c=void 0===c?[]:c;if(d=d0a(e.u.get(),f))for(b=e.Mb.get().Zg(f,b),f=P0(e,H0a(d),d,a),c=g.t(c),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&e.Al.send(d.baseUrl,f,b);else kB("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
j1a=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.j=e;a=DZ(this.layout.Da,"metadata_type_ad_placement_config");this.u=new a1(c.Zb,this.Ra,a,c.layoutId)};
k1a=function(){var a=["metadata_type_client_forecasting_ad_renderer"];b1().forEach(function(b){a.push(b)});
return{He:a,Nf:["LAYOUT_TYPE_FORECASTING"]}};
h1=function(a,b,c){this.Ra=a;this.j=b;this.Mb=c};
l1a=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
m1a=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.Vg(a.slot,b,new E_("Unknown layout received. Required LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType))):c()};
i1=function(a,b,c,d){g.FB.call(this);this.callback=a;this.B=d;this.j=[];this.u=new l1a(a,b,c)};
j1=function(a,b,c,d,e,f,h){e=DZ(c.Da,e);a=c1(a);var l=xd(function(){d.Vc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.Ic},function(){l()}))};
k1=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.t(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.G.sendVideoStatsEngageEvent(1,void 0,2):e?e():kB("Tried to call engagePingCallback but it is null",h,l)}}else kB("Companion AdUxClick received without a layoutId",h,l)};
n1a=function(a,b,c,d,e){nK.call(this,"action-companion",a,b,c,d,e)};
o1a=function(a,b,c,d,e,f,h,l){i1.call(this,a,b,c,d);this.Ra=e;this.Pe=f;this.J=l;this.xj=!0;this.C=null;this.D=DZ(c.Da,"metadata_type_linked_player_bytes_layout_id");this.Pe().Id.add(this);a=DZ(c.Da,"metadata_type_ad_placement_config");this.I=new a1(c.Zb,this.Ra,a,c.layoutId)};
p1a=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];b1().forEach(function(b){a.push(b)});
return{He:a,Nf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
l1=function(a,b,c,d,e){i1.call(this,a,b,c,d);a=DZ(c.Da,"metadata_type_ad_placement_config");this.C=new a1(c.Zb,e,a,c.layoutId)};
q1a=function(){var a=["metadata_type_ad_action_interstitial_renderer"];b1().forEach(function(b){a.push(b)});
return{He:a,Nf:["LAYOUT_TYPE_ENDCAP"]}};
m1=function(a,b,c,d,e,f,h,l){i1.call(this,a,b,c,d);this.Ha=e;this.Ra=f;this.I=h;this.D=l;this.C=!1;this.J=DZ(this.layout.Da,"metadata_type_linked_player_bytes_layout_id")};
r1a=function(){return{He:["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"],Nf:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
n1=function(a,b,c,d,e,f){i1.call(this,c,a,b,d);this.Ha=e;this.Fa=f};
s1a=function(){return{He:["metadata_type_valid_ad_message_renderer"],Nf:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
o1=function(a,b,c,d,e,f,h,l,m){return Z0(c,r1a())?new m1(a,b,c,d,e,f,h,l):Z0(c,q1a())?new l1(a,b,c,d,f):Z0(c,s1a())?new n1(b,c,a,d,e,m):null};
t1a=function(a,b,c,d,e,f){this.lc=a;this.Ha=b;this.Ra=c;this.u=d;this.j=e;this.Fa=f};
p1=function(a,b,c,d,e,f){g.E.call(this);this.callback=a;this.Je=b;this.Ha=c;this.pe=d;this.Pe=e;this.Fa=f;this.xj=!0;this.MK=!1};
u1a=function(a,b,c,d,e,f,h,l,m,n){p1.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=h;this.I=l;this.u=[];this.j=-1;this.C=!1};
w1a=function(a,b,c){var d=a.u[a.j];if(c.layoutId!==q1(d,b,c))kB("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.kd(),d.Ib(),{requestingSlot:b,requestingLayout:c});else{var e=DZ(d.Ib().Da,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.u.length){for(var f=e;f<a.u.length;){if(e===DZ(a.u[f].Ib().Da,"metadata_type_ad_pod_skip_index")){v1a(a,d.kd(),d.Ib(),f);return}f++}kB("Skip-to-index was requested but target index was not found",d.kd(),d.Ib(),{requestingSlot:b,
requestingLayout:c})}else kB("Invalid ad pod skip target index",d.kd(),d.Ib(),{requestingSlot:b,requestingLayout:c})}};
q1=function(a,b,c){var d=DZ(a.Ib().Da,"metadata_type_linked_in_player_layout_id");return d?d:(kB("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.kd(),a.Ib(),{requestingSlot:b,requestingLayout:c}),null)};
z1a=function(a,b,c,d){x1a(a,b,c,d,function(){y1a(a,a.j+1)})};
v1a=function(a,b,c,d){x1a(a,b,c,"skipped",function(){y1a(a,d)})};
x1a=function(a,b,c,d,e){if(!a.C){var f=a.u[a.j];f?(f.Ib().layoutId!==c.layoutId&&kB("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.Ib().layoutId}),a.C=!0,f.Kg(f.Ib(),d),oL(a.B,b,c,d),a.C=!1,a.D?(a.D(),a.pe.get().My()):e()):kB("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
y1a=function(a,b){if(a.j===a.u.length-1)a.j++,A1a(a.I,a.layout),a.pe.get().My();else{if(-1===a.j&&(a.callback.Vc(a.slot,a.layout),0<b)){kB("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.j=b;b=a.u[a.j];0<a.j&&a.pe.get().BN();b.startRendering(b.Ib())}};
B1a=function(a){return!a.ys.Wc()&&a.state.Wc()};
r1=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
C1a=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.percent)};
D1a=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
E1a=function(a,b,c,d){this.Ob=a;this.layoutId=c;this.D=d;this.u=[];this.j=[];this.B=this.C=0;a=g.t(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,null==(c=b.adVideoOffset)?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":C1a(b)?this.u.push(b):kB("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":D1a(b)?this.j.push(b):kB("Invalid AdVideoProgressMillisecondsCommand");break;default:kB("Unknown or invalid AdVideoProgressOffSet kind")}this.u.sort(function(e,
f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
this.j.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
t1=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w){g.E.call(this);var x=this;this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.Mb=e;this.Ha=f;this.pe=h;this.Jf=l;this.Ob=m;this.I=n;this.position=q;this.ya=r;this.Fa=w;this.xj=!0;this.oa=!1;this.j="not_rendering";this.D=!1;a=DZ(this.layout.Da,"metadata_type_ad_placement_config");this.u=new a1(c.Zb,this.Ra,a,c.layoutId);var z;a=(null==(z=s1(this))?void 0:z.progressCommands)||[];this.Ba=new E1a(m,a,c.layoutId,function(){return x.xx()});
this.ea=xd(function(){x.callback.Vc(x.slot,x.layout)});
this.T=xd(function(){"rendering_stop_requested"!==x.j&&p(x);x.Z?x.callback.pd(x.slot,x.layout,x.Z):kB("Received layout exit signal when not in layout exit flow.",x.slot,x.layout)})};
s1=function(a){return DZ(a.layout.Da,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
v1=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.j){e1(a.u,1E3*b,c);a.D||e1(a.u,1E3*b,void 0===c?!1:c);var d=a.xx();if(d&&(d/=1E3,(b>=.25*d||c)&&u1(a,"first_quartile"),(b>=.5*d||c)&&u1(a,"midpoint"),(b>=.75*d||c)&&u1(a,"third_quartile"),a=a.Ba,b*=1E3,c=a.D())){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.Ob.get().executeCommand(d.command,a.layoutId),a.C++;else break;for(;a.B<a.j.length;)if(c=a.j[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.Ob.get().executeCommand(c.command,
a.layoutId),a.B++;else break}}};
u1=function(a,b){d1(a.u,b,!a.D)};
w1=function(a,b){var c=a.u;a=!a.D;a=void 0===a?!1:a;c.j.has(b)?h1a(c,b,[]):d1(c,b,a)};
F1a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,x){t1.call(this,a,b,c,d,e,f,h,m,n,p,q,r,w,x);var z=this;this.ud=l;this.hF=!0;this.B=this.Xm=0;this.timer=new g.sf(200);this.timer.Qa("tick",function(){z.uc()});
g.H(this,this.timer)};
G1a=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.t(b1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{He:a,Nf:["LAYOUT_TYPE_MEDIA_BREAK"]}};
I1a=function(a){a.B=Date.now();H1a(a,a.Xm);a.timer.start()};
H1a=function(a,b){b={current:b/1E3,duration:a.xx()/1E3};a.ud.get().Oa("onAdPlaybackProgress",b)};
x1=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,x,z,B,C,G,F){t1.call(this,a,b,c,d,e,m,p,r,w,z,B,C,G,F);var K=this;this.Ve=f;this.Je=h;this.Ta=l;this.pc=n;this.ud=q;this.Of=x;this.adCpn="";this.J=new g.Zn(function(){K.AB("load_timeout",new E_("Media layout load timeout.",{},!0))},1E4);
a=P_a(this.Fa.get());F=Q_a(F.get());a&&F&&(this.C=new g.Zn(function(){var L=DZ(c.Da,"metadata_type_preload_player_vars");L&&K.Je.get().G.preloadVideoByPlayerVars(L,2,300)}))};
J1a=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.t(b1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{He:a,Nf:["LAYOUT_TYPE_MEDIA"]}};
K1a=function(a,b,c,d,e,f,h){p1.call(this,a,b,c,d,f,h);this.j=e};
M1a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,x,z,B,C,G){if(Z0(d,{He:["metadata_type_sub_layouts"],Nf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var F=DZ(d.Da,"metadata_type_sub_layouts");a=new u1a(a,n,q,w,b,c,d,f,e,G);e=[];for(b={kt:0};b.kt<F.length;b={kt:b.kt},b.kt++){var K=L1a({Vc:a.Z4.bind(a),pd:a.b5.bind(a),Vg:a.a5.bind(a)},c,F[b.kt],h,l,m,n,p,q,r,w,x,z,B,C,function(L){return function(N){N.Kg(F[L.kt],"normal")}}(b),b.kt,F.length,G);
if(!K)return;e.push(K)}a.u=e;return a}if(Z0(d,{He:[],Nf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=L1a({Vc:a.Vc.bind(a),pd:a.pd.bind(a),Vg:a.Vg.bind(a)},c,d,h,l,m,n,p,q,r,w,x,z,B,C,function(){A1a(f,d)},0,1,G))?new K1a(a,n,q,w,c,e,G):c};
L1a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,x,z,B,C,G){if(Z0(c,G1a()))return new F1a(a,b,c,d,e,m,p,q,r,w,function(){},z,B,C,G);
if(Z0(c,J1a()))return fB(c.Da,"metadata_type_ad_intro")?new x1(a,b,c,d,e,f,h,l,m,n,p,q,r,w,x,function(F){q.get().Oa("onAdIntroStateChange",F)},z,B,C,G):new x1(a,b,c,d,e,f,h,l,m,n,p,q,r,w,x,function(F){q.get().Cl(F)},z,B,C,G)};
y1=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,x){this.Pe=a;this.j=b;this.Ra=c;this.Mb=d;this.Ve=e;this.Je=f;this.Ta=h;this.Ha=l;this.pc=m;this.pe=n;this.ud=p;this.Jf=q;this.Ob=r;this.Of=w;this.Fa=x};
z1=function(a,b,c,d,e,f,h,l){g.E.call(this);var m=this;this.Yb=a;this.Kb=b;this.rf=d;this.Ha=e;this.Fa=f;this.Ra=h;this.hf=l;this.j=null;c.get().addListener(this);g.cb(this,function(){c.get().removeListener(m)});
d.get().addListener(this);g.cb(this,function(){d.get().removeListener(m)})};
b0a=function(a,b){if(a.j)kB("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.t(a.rf.get().VG);for(var c=b.next();!c.done;c=b.next())N1a(a,a.j,c.value)}};
N1a=function(a,b,c){var d=a.Ha.get().getCurrentTimeSec(1,!1);a.Fa.get().G.V().experiments.eb("html5_high_res_logging")&&a.Ra.get().Cj("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.durationSecs.toFixed(3));eB(a.Yb.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.Kb.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=K0(a.Fa.get());if(e.Fa.get().G.V().experiments.eb("enable_smearing_expansion_dai")){var n=
g.wG(e.Fa.get().G.V().experiments,"max_prefetch_window_sec_for_livestream_optimization");var p=g.wG(e.Fa.get().G.V().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Nm:Vra(c),dC:!1};var q=c.startSecs+c.durationSecs;if(0===d)m.ir=new Jo(0,1E3*q);else{p=c.startSecs-p;var r=p-d;m.ir=0>=r?new Jo(1E3*p,1E3*q):new Jo(1E3*Math.floor(d+Math.random()*Math.min(r,n)),1E3*q)}n=m}else n={Nm:Vra(c),dC:!1},q=c.startSecs+c.durationSecs,c.startSecs<=d?m=new Jo(1E3*(c.startSecs-4),1E3*q):(p=Math.max(0,
c.startSecs-d-10),m=new Jo(1E3*Math.floor(d+Math.random()*(m?0===d?0:Math.min(p,5):p)),1E3*q)),n.ir=m;return[rZa(e,f,h,n,l,[new CYa(c)])]})};
A1=function(a,b,c,d,e,f,h,l,m){g.E.call(this);this.j=a;this.B=b;this.u=c;this.Yb=d;this.Kb=e;this.zb=f;this.Lb=h;this.Fa=l;this.Ta=m;this.xj=!0};
O1a=function(a,b,c){return F_a(a.Kb.get(),b.contentCpn,b.No,function(d){return G_a(a.zb.get(),d.slotId,c,b.adPlacementConfig,b.No,HZ(a.Lb.get(),d))})};
B1=function(a){var b,c=null==(b=DZ(a.Da,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=DZ(a.Da,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=DZ(a.Da,"metadata_type_content_cpn"),f=DZ(a.Da,"metadata_type_instream_ad_player_overlay_renderer"),h=DZ(a.Da,"metadata_type_player_underlay_renderer"),l=DZ(a.Da,"metadata_type_ad_placement_config"),m=DZ(a.Da,"metadata_type_video_length_seconds");var n=fB(a.Da,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?
DZ(a.Da,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):fB(a.Da,"metadata_type_layout_enter_ms")&&fB(a.Da,"metadata_type_layout_exit_ms")?(DZ(a.Da,"metadata_type_layout_exit_ms")-DZ(a.Da,"metadata_type_layout_enter_ms"))/1E3:void 0;return{No:d,contentCpn:e,BM:c,OI:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,zF:n,YE:DZ(a.Da,"metadata_type_linked_in_player_layout_id"),ZE:DZ(a.Da,"metadata_type_linked_in_player_slot_id")}};
Q1a=function(a,b){return P1a(a,b)};
R1a=function(a,b){b=P1a(a,b);if(!b)return null;var c;b.zF=null==(c=DZ(a.Da,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
P1a=function(a,b){var c,d=null==(c=DZ(a.Da,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;fB(a.Da,"metadata_ad_video_is_listed")?c=DZ(a.Da,"metadata_ad_video_is_listed"):b?c=b.isListed:(kB("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);fB(a.Da,"metadata_type_ad_info_ad_metadata")?b=DZ(a.Da,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Kl,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(kB("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{g_:b,adPlacementConfig:DZ(a.Da,"metadata_type_ad_placement_config"),j_:c,contentCpn:DZ(a.Da,"metadata_type_content_cpn"),YE:DZ(a.Da,"metadata_type_linked_in_player_layout_id"),ZE:DZ(a.Da,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:DZ(a.Da,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,zF:void 0,BM:d,No:a.layoutId,videoLengthSeconds:DZ(a.Da,"metadata_type_video_length_seconds")}};
S1a=function(a,b){this.callback=a;this.slot=b};
C1=function(){};
T1a=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
U1a=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c;this.u=!1;this.j=0};
V1a=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
D1=function(a){this.Ha=a};
E1=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
F1=function(a){g.E.call(this);this.DH=a;this.Vb=new Map};
W1a=function(a,b){for(var c=[],d=g.t(a.Vb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof $_&&f.jg===b&&c.push(e)}c.length?I_(a.DH(),c):kB("Survey is submitted but no registered triggers can be activated.")};
G1=function(a,b){F1.call(this,a);var c=this;b.get().addListener(this);g.cb(this,function(){b.get().removeListener(c)})};
H1=function(a){g.E.call(this);this.j=a;this.xj=!0;this.Vb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.I=new Set;this.u=new Set};
I1=function(a,b){g.E.call(this);var c=this;this.j=a;this.Vb=new Map;b.get().addListener(this);g.cb(this,function(){b.get().removeListener(c)})};
X1a=function(a,b,c,d){var e=[];a=g.t(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof S_){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(kB("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
Y1a=function(a){return a instanceof h0a||a instanceof i0a||a instanceof q0};
J1=function(a,b,c,d){g.E.call(this);var e=this;this.u=a;this.pc=b;this.Ha=c;this.Ta=d;this.xj=!0;this.Vb=new Map;this.j=new Set;c.get().addListener(this);g.cb(this,function(){c.get().removeListener(e)})};
Z1a=function(a,b,c,d,e,f,h,l,m,n){if(a.Ta.get().Wf(1).clientPlaybackNonce!==m)throw new KB("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Vb.set(c.triggerId,{bundle:new E1(b,c,d,e),Vt:f});a.pc.get().addCueRange(f,h,l,n,a)};
$1a=function(a,b){a=g.t(a.Vb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.t(c.value);c=d.next().value;d=d.next().value;if(b===d.Vt)return c}return""};
K1=function(a){g.E.call(this);this.j=a;this.xj=!0;this.Vb=new Map};
A1a=function(a,b){b=b.layoutId;for(var c=[],d=g.t(a.Vb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof a0){var f;if(f=e.trigger.layoutId===b)f=(f=XYa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&I_(a.j(),c)};
L1=function(a){g.E.call(this);this.j=a;this.xj=!0;this.Vb=new Map};
M1=function(a,b,c){g.E.call(this);this.j=a;this.zo=b;this.Ya=c;this.zo.get().addListener(this)};
N1=function(a,b,c,d,e,f){g.E.call(this);this.B=a;this.df=b;this.Lb=c;this.Ta=d;this.Ya=e;this.Fa=f;this.j=this.u=null;this.C=!1;this.df.get().addListener(this)};
DCa=function(a,b,c,d,e){var f=nB(a.Ya.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Sb:void 0,qc:[],vc:[],bb:"surface",Da:new CZ([])};a.j={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Zb:new Map,Rd:[],Zc:[],Xc:[],Yc:[],bd:[],bb:"surface",Da:new CZ(c),Ic:jYa(GZ(a.Lb.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};UYa(a.B(),a.u,a.j);d&&(VYa(a.B(),a.u,a.j),a.C=!0,H_(a.B(),a.u,a.j))};
O1=function(a){this.Bt=a};
a2a=function(a,b){if(!a)return{Hn:[],Qy:!0,ssdaiAdsConfig:void 0};a.trackingParams&&fM(dM(),a.trackingParams);if(a.adThrottled)return{Hn:[],Qy:!0,ssdaiAdsConfig:void 0};var c=a.playerAds;if(!c||!c.length)return{Hn:[],Qy:!1,ssdaiAdsConfig:void 0};c=c.map(function(e){return e.adPlacementRenderer}).filter(function(e){return!(!e||!e.renderer)});
if(!c.length)return{Hn:[],Qy:!1,ssdaiAdsConfig:void 0};if(0<b.end){var d=b.end.toString();c.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===e.kind&&e.adTimeOffset&&"-1"===e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!==d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}return{Hn:c,
Qy:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
P1=function(a){g.E.call(this);this.G=a;this.listeners=[];this.j=new eA(this);g.H(this,this.j);this.j.S(this.G,"aduxclicked",this.onAdUxClicked);this.j.S(this.G,"aduxmouseover",this.JL);this.j.S(this.G,"aduxmouseout",this.IL);this.j.S(this.G,"muteadaccepted",this.L2)};
b2a=function(a,b,c){b=g.Lg(b,function(d){return new EB(d,c,d.id)});
a.G.Oa("onAdUxUpdate",b)};
Q1=function(a,b){a=g.t(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
R1=function(a,b,c){g.E.call(this);this.G=a;this.Fa=b;this.Ra=c;this.listeners=[];this.B=!1;this.VG=[];this.C=new xL(this,C0a(b.get()));this.u=new yL;this.j=null};
d2a=function(a,b){Q0(a.Ra.get(),{cuepointTrigger:{event:c2a(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.durationSecs,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.G.getVideoData(1).clientPlaybackNonce}})};
c2a=function(a){switch(a){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 Ui(a,"Unexpected cuepoint event")}};
S1=function(a){this.G=a};
T1=function(a){this.G=a};
U1=function(){this.listeners=[]};
e2a=function(a){this.G=a};
f2a=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.Ha=d;this.Ra=e;this.Fa=f;this.u=!1;a=DZ(c.Da,"metadata_type_ad_placement_config");this.j=new a1(c.Zb,this.Ra,a,c.layoutId);this.u=!1};
g2a=function(a,b,c){this.Ha=a;this.Ra=b;this.Fa=c};
V1=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ta=d;this.hf=e;this.rf=f;this.Ha=h;this.j=l;this.Ra=m;this.D=n;this.driftRecoveryMs=DZ(this.layout.Da,"metadata_type_drift_recovery_ms")||null};
h2a=function(a){var b=DZ(a.layout.Da,"metadata_type_layout_enter_ms"),c=DZ(a.layout.Da,"metadata_type_layout_exit_ms");a=a.rf.get();b=zL(a.u,b,c);return Math.min(c,null!==b?b:Infinity)};
i2a=function(a,b){var c;Q0(a.Ra.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Ta.get().Wt)?void 0:c.clientPlaybackNonce,adClientData:a.layout.Ic.adClientDataEntry},b)})};
j2a=function(a,b,c,d,e,f,h,l,m,n,p){V1.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.u=null;a=g.t(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,fB(b.Ib().Da,"metadata_type_survey_overlay")&&(this.B=b.Ib().layoutId)};
l2a=function(a,b){var c=k2a(a,b);a.u={Wk:c};c?c.startRendering(c.Ib()):b===a.B&&kB("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
k2a=function(a,b){return null==b?null:a.C.find(function(c){return c.Ib().layoutId===b})||null};
m2a=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=fB(b.Da,"metadata_type_survey_overlay"),r,w=(null==(r=DZ(a.Da,"metadata_type_fulfilled_layout"))?void 0:DZ(r.Da,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.fB(c,w,2,f,d,e,a.slotId),n.Cj("ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.Ow(c,w,2,f,d,e,a.slotId);n.Cj("ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return kB("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&kB("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):kB("Invalid timeline playback ID");d+f>e&&h.Wy(p,e-d);return p};
n2a=function(a,b){var c=DZ(b.Da,"metadata_type_sodar_extension_data");if(c)try{X0a(0,c)}catch(d){kB("Unexpected error when loading Sodar",a,b,{error:d})}};
p2a=function(a,b,c,d,e,f){o2a(a,b,new g.aL(c,new g.IL),d,e,!1,f)};
o2a=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;B1a(c)&&r1(e,0,null)&&(!f1(a,"impression")&&h&&h(),d1(a,"impression"));f1(a,"impression")&&(g.cL(c,4)&&!g.cL(c,2)&&a.Zg("pause"),0>bL(c,4)&&!(0>bL(c,2))&&a.Zg("resume"),g.cL(c,16)&&.5<=e&&a.Zg("seek"),f&&g.cL(c,2)&&q2a(a,c.state,b,d,e))};
q2a=function(a,b,c,d,e,f){if(f1(a,"impression")){var h=1>=Math.abs(d-e);r2a(a,b,h?d:e,c,d,f);h&&d1(a,"complete")}};
r2a=function(a,b,c,d,e,f){e1(a,1E3*c);0>=e||0>=c||(null==b?0:g.V(b,16))||(null==b?0:g.V(b,32))||(r1(c,.25*e,d)&&(f&&!f1(a,"first_quartile")&&f("first"),d1(a,"first_quartile")),r1(c,.5*e,d)&&(f&&!f1(a,"midpoint")&&f("second"),d1(a,"midpoint")),r1(c,.75*e,d)&&(f&&!f1(a,"third_quartile")&&f("third"),d1(a,"third_quartile")))};
s2a=function(a,b){f1(a,"impression")&&a.Zg(b?"fullscreen":"end_fullscreen")};
t2a=function(a){f1(a,"impression")&&a.Zg("clickthrough")};
u2a=function(a){a.Zg("active_view_measurable")};
v2a=function(a){f1(a,"impression")&&!f1(a,"seek")&&a.Zg("active_view_fully_viewable_audible_half_duration")};
w2a=function(a){f1(a,"impression")&&!f1(a,"seek")&&a.Zg("active_view_viewable")};
x2a=function(a){f1(a,"impression")&&!f1(a,"seek")&&a.Zg("audio_audible")};
y2a=function(a){f1(a,"impression")&&!f1(a,"seek")&&a.Zg("audio_measurable")};
z2a=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.hf=d;this.j=e;this.Ha=f;this.Ud=h;this.Mb=l;this.Ve=m;this.Fa=n;this.Ra=p;this.Ta=q;this.hF=!0;this.Kc=this.u=null};
A2a=function(a,b,c){var d;a.Ra.get().Cj("ads_qua","cpn."+DZ(a.layout.Da,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ta.get().Wf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
B2a=function(a,b){var c,d;a.Ra.get().Cj("ads_imp","cpn."+DZ(a.layout.Da,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Ta.get().Wf(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.P(null==(d=DZ(a.layout.Da,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,V_))};
C2a=function(a){return{enterMs:DZ(a.Da,"metadata_type_layout_enter_ms"),exitMs:DZ(a.Da,"metadata_type_layout_exit_ms")}};
D2a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w){V1.call(this,a,b,c,d,e,h,l,m,n,q);this.Ud=f;this.Ve=p;this.Mb=r;this.Fa=w;this.Kc=this.u=null};
E2a=function(a,b){var c;a.Ra.get().Cj("ads_imp","acpn."+(null==(c=a.Ta.get().Wf(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
F2a=function(a,b,c){var d;a.Ra.get().Cj("ads_qua","cpn."+DZ(a.layout.Da,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ta.get().Wf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
G2a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,x,z,B,C,G){this.Pe=a;this.u=b;this.Ta=c;this.hf=d;this.Ha=e;this.Ra=f;this.Ud=h;this.rf=l;this.Mb=m;this.Ve=n;this.Je=p;this.pc=q;this.pe=r;this.ud=w;this.Jf=x;this.Ob=z;this.Of=B;this.Fa=C;this.j=G};
W1=function(a){g.E.call(this);this.j=a;this.Vb=new Map};
X1=function(a,b){for(var c=[],d=g.t(a.Vb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&I_(a.j(),c)};
Y1=function(a,b){g.E.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.cb(this,function(){b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().Wt)?void 0:d.slotId)||null};
H2a=function(a,b){var c=[];a=g.t(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
I2a=function(a){this.G=a};
J2a=function(a,b,c,d,e){nK.call(this,"image-companion",a,b,c,d,e)};
K2a=function(a,b,c,d,e,f,h,l){i1.call(this,a,b,c,d);this.Ra=e;this.Pe=f;this.J=l;this.xj=!0;this.C=null;this.D=DZ(c.Da,"metadata_type_linked_player_bytes_layout_id");this.Pe().Id.add(this);a=DZ(c.Da,"metadata_type_ad_placement_config");this.I=new a1(c.Zb,this.Ra,a,c.layoutId)};
L2a=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];b1().forEach(function(b){a.push(b)});
return{He:a,Nf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
M2a=function(a,b,c,d,e){nK.call(this,"shopping-companion",a,b,c,d,e)};
N2a=function(a,b,c,d,e,f,h,l){i1.call(this,a,b,c,d);this.Ra=e;this.Pe=f;this.J=l;this.xj=!0;this.C=null;this.D=DZ(c.Da,"metadata_type_linked_player_bytes_layout_id");this.Pe().Id.add(this);a=DZ(c.Da,"metadata_type_ad_placement_config");this.I=new a1(c.Zb,this.Ra,a,c.layoutId)};
O2a=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];b1().forEach(function(b){a.push(b)});
return{He:a,Nf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
P2a=function(a,b,c,d,e,f){i1.call(this,a,b,c,d);this.Ra=e;this.Pe=f;this.xj=!0;this.Pe().Id.add(this);a=DZ(c.Da,"metadata_type_ad_placement_config");this.C=new a1(c.Zb,this.Ra,a,c.layoutId)};
Q2a=function(){var a=["metadata_type_action_companion_ad_renderer"];b1().forEach(function(b){a.push(b)});
return{He:a,Nf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
R2a=function(a,b,c,d,e){nK.call(this,"ads-engagement-panel",a,b,c,d,e)};
S2a=function(a,b,c,d,e,f,h,l){i1.call(this,a,b,c,d);this.Ra=e;this.Pe=f;this.J=l;this.xj=!0;this.C=null;this.D=DZ(c.Da,"metadata_type_linked_player_bytes_layout_id");this.Pe().Id.add(this);a=DZ(c.Da,"metadata_type_ad_placement_config");this.I=new a1(c.Zb,this.Ra,a,c.layoutId)};
T2a=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];b1().forEach(function(b){a.push(b)});
return{He:a,Nf:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
U2a=function(a,b,c,d,e){this.lc=a;this.Ra=b;this.Pe=c;this.j=d;this.Mb=e};
V2a=function(a,b,c){nK.call(this,"player-underlay",a,{},b,c);this.j=c};
Z1=function(a,b,c,d){i1.call(this,a,b,c,d)};
W2a=function(a){this.lc=a};
X2a=function(a,b,c,d){nK.call(this,"survey-interstitial",a,b,c,d)};
$1=function(a,b,c,d,e){i1.call(this,c,a,b,d);this.Ra=e;a=DZ(b.Da,"metadata_type_ad_placement_config");this.C=new a1(b.Zb,e,a,b.layoutId)};
a2=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
Z2a=function(a,b,c){c=void 0===c?Y2a:c;c.width<Y2a.width&&(c=Y2a);if(a.width<c.width||a.height<c.height)return{dH:3,NC:501,errorMessage:"ad("+a2(c)+") larger than container("+a2(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{dH:3,NC:501,errorMessage:"ad("+a2(c)+") to container("+a2(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{dH:3,NC:501,errorMessage:"ad("+a2(c)+") covers container("+a2(a)+") center."}};
$2a=function(a,b){var c=DZ(a.Da,"metadata_type_ad_placement_config");return new a1(a.Zb,b,c,a.layoutId)};
b2=function(a){return DZ(a.Da,"metadata_type_invideo_overlay_ad_renderer")};
a3a=function(a,b,c,d){nK.call(this,"invideo-overlay",a,b,c,d);this.j=d};
c2=function(a,b,c,d,e,f,h,l,m,n,p,q){i1.call(this,f,a,b,e);this.Ra=c;this.C=h;this.Ha=l;this.Ob=m;this.Fa=n;this.I=p;this.D=q;this.T=$2a(b,c)};
b3a=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];b1().forEach(function(b){a.push(b)});
return{He:a,Nf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
d2=function(a,b,c,d,e,f,h,l,m,n,p,q,r){i1.call(this,f,a,b,e);this.Ra=c;this.C=h;this.T=l;this.Ha=m;this.Ob=n;this.Fa=p;this.I=q;this.D=r;this.Z=$2a(b,c)};
c3a=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.t(b1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{He:a,Nf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
e2=function(a){this.Ha=a;this.j=!1};
d3a=function(a,b,c){nK.call(this,"survey",a,{},b,c)};
e3a=function(a,b,c,d,e,f,h){i1.call(this,c,a,b,d);this.C=e;this.Ha=f;this.Fa=h};
f3a=function(a,b,c,d,e,f,h,l,m,n){this.lc=a;this.Ha=b;this.Ra=c;this.C=d;this.Mb=e;this.u=f;this.B=h;this.Ob=l;this.Fa=m;this.j=n};
f2=function(a){g.E.call(this);this.B=a;this.xj=!0;this.Vb=new Map;this.j=new Map;this.u=new Map};
g3a=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.t(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c};
h3a=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ya=Y(function(){return new mB});
g.H(this,this.Ya);this.zb=Y(function(){return new r0(f.Ya)});
g.H(this,this.zb);this.Mc=Y(function(){return new p0});
g.H(this,this.Mc);this.Yb=Y(function(){return new l0(a)});
g.H(this,this.Yb);this.Kb=Y(function(){return new B0(f.Ya,f.zb,f.Fa)});
g.H(this,this.Kb);this.Ud=Y(function(){return new F0});
g.H(this,this.Ud);this.Jf=Y(function(){return new oK(b.V())});
g.H(this,this.Jf);this.lc=Y(function(){return new P1(b)});
g.H(this,this.lc);this.Ob=Y(function(){return new P_(e)});
g.H(this,this.Ob);this.pe=Y(function(){return new CL(b)});
g.H(this,this.pe);this.pc=Y(function(){return new H0(b)});
g.H(this,this.pc);this.Je=Y(function(){return new S1(b)});
g.H(this,this.Je);this.ud=Y(function(){return new I0(b)});
g.H(this,this.ud);this.Fa=Y(function(){return new J0(b)});
g.H(this,this.Fa);this.zf=Y(function(){return new O1(d)});
g.H(this,this.zf);this.Lb=Y(function(){return new IZ(f.Fa)});
g.H(this,this.Lb);this.Yd=Y(function(){return new j0(f.Ya,f.Kb,f.zb,f.Fa,f.Lb,"SLOT_TYPE_ABOVE_FEED",f.lj)});
g.H(this,this.Yd);this.Of=Y(function(){return new T1(b)});
g.H(this,this.Of);this.df=Y(function(){return new U1});
g.H(this,this.df);this.zo=Y(function(){return new V0});
g.H(this,this.zo);this.Ta=Y(function(){return new R0(b,f.Ud,f.Fa)});
g.H(this,this.Ta);this.Wb=new E0(this.Fa,this.Lb,this.Ta);g.H(this,this.Wb);this.rf=Y(function(){return new R1(b,f.Fa,f.Ra)});
g.H(this,this.rf);this.hf=Y(function(){return new I2a(b)});
g.H(this,this.hf);this.Ha=Y(function(){return new S0(b,f.Ta,f.Fa)});
g.H(this,this.Ha);this.Ve=Y(function(){return new W0});
this.Mb=Y(function(){return new L0(f.Ha,b)});
g.H(this,this.Mb);this.Ra=Y(function(){return new O0(b,f.Mc,f.Mb,f.Ta)});
g.H(this,this.Ra);this.Kh=new A1(B1,g2,function(l,m,n,p){return f0(f.zb.get(),l,m,n,p)},this.Yb,this.Kb,this.zb,this.Lb,this.Fa,this.Ta);
g.H(this,this.Kh);this.Sc=new lB(this.Yb,this.Yd,c,this.Fa,a,this.Ta,this.Ha);g.H(this,this.Sc);var h=new G0(b,this.Sc,this.Ha,this.Ta,this.rf);this.Uf=Y(function(){return h});
this.As=h;this.lj=new z1(this.Yb,this.Kb,this.Uf,this.rf,this.Ha,this.Fa,this.Ra,this.hf);g.H(this,this.lj);this.kf=new o0(this.Yb,this.Kb,this.pc,this.Uf);g.H(this,this.kf);this.Uc=new cB(this.Fa,this.Yb,this.Kb,this.Yd,this.Ta,this.kf,c);g.H(this,this.Uc);this.wh=Y(function(){return new X0(f.zf,f.zb,f.Lb,f.Fa,f.hf)});
g.H(this,this.wh);this.Od=Y(function(){return new Y0});
g.H(this,this.Od);this.Af=new G1(a,this.lc);g.H(this,this.Af);this.Db=new H1(a);g.H(this,this.Db);this.Rt=new W1(a);g.H(this,this.Rt);this.Kf=new I1(a,this.Uf);g.H(this,this.Kf);this.Ie=new J1(a,this.pc,this.Ha,this.Ta);g.H(this,this.Ie);this.Mu=new Y1(a,this.Ta);g.H(this,this.Mu);this.Ce=new K1(a);g.H(this,this.Ce);this.Ih=new L1(a);g.H(this,this.Ih);this.Hv=new f2(a);g.H(this,this.Hv);this.Jd=Y(function(){return new C1});
g.H(this,this.Jd);this.Lh=Y(function(){return new D1(f.Ha)});
g.H(this,this.Lh);this.yQ=Y(function(){return new U2a(f.lc,f.Ra,a,f.Mc,f.Mb)});
g.H(this,this.yQ);this.uh=Y(function(){return new $0(f.Uc)});
g.H(this,this.uh);this.Bh=Y(function(){return new h1(f.Ra,f.Ce,f.Mb)});
g.H(this,this.Bh);this.Jh=Y(function(){return new G2a(a,f.Ce,f.Ta,f.hf,f.Ha,f.Ra,f.Ud,f.rf,f.Mb,f.Ve,f.Je,f.pc,f.pe,f.ud,f.Jf,f.Ob,f.Of,f.Fa,f.Mc)});
g.H(this,this.Jh);this.GU=Y(function(){return new g2a(f.Ha,f.Ra,f.Fa)});
g.H(this,this.GU);this.xm=Y(function(){return new f3a(f.lc,f.Ha,f.Ra,f.Mc,f.Mb,f.Rt,f.Hv,f.Ob,f.Fa,c)});
g.H(this,this.xm);this.lW=Y(function(){return new W2a(f.lc)});
g.H(this,this.lW);this.LI=new M1(a,this.zo,this.Ya);g.H(this,this.LI);this.Mm=new N1(a,this.df,this.Lb,this.Ta,this.Ya,this.Fa);g.H(this,this.Mm);this.jf={Yu:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Uc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.lj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kf]]),zp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.wh],["SLOT_TYPE_ABOVE_FEED",this.Od],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",this.Od],["SLOT_TYPE_PLAYER_UNDERLAY",this.Od],["SLOT_TYPE_PLAYBACK_TRACKING",this.Od]]),Ik:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Af],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Af],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Db],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Db],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Db],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Db],
["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Db],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Db],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Db],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Db],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Db],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Db],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Db],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Rt],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Kf],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Ie],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Ie],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Ie],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ie],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ie],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Ie],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ie],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Mu],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Mu],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",
this.Ce],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Kf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ih],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Hv]]),wq:new Map([["SLOT_TYPE_ABOVE_FEED",this.Jd],["SLOT_TYPE_AD_BREAK_REQUEST",this.Jd],["SLOT_TYPE_FORECASTING",this.Jd],["SLOT_TYPE_IN_PLAYER",this.Jd],["SLOT_TYPE_PLAYER_BYTES",this.Lh],["SLOT_TYPE_PLAYER_UNDERLAY",this.Jd],["SLOT_TYPE_PLAYBACK_TRACKING",this.Jd]]),Vp:new Map([["SLOT_TYPE_ABOVE_FEED",this.yQ],["SLOT_TYPE_AD_BREAK_REQUEST",
this.uh],["SLOT_TYPE_FORECASTING",this.Bh],["SLOT_TYPE_PLAYER_BYTES",this.Jh],["SLOT_TYPE_PLAYBACK_TRACKING",this.GU],["SLOT_TYPE_IN_PLAYER",this.xm],["SLOT_TYPE_PLAYER_UNDERLAY",this.lW]])};this.listeners=[this.Mc.get()];this.Ku={Uc:this.Uc,Xp:this.df.get(),Ii:this.Fa.get(),jb:this.Ob.get(),Hs:this.Ha.get(),Sc:this.Sc,wm:this.Ya.get(),Wp:this.zo.get(),wl:this.Af,Aj:this.Mc.get(),Lm:this.Ta.get()}};
i3a=function(a,b,c,d,e,f,h,l,m,n){this.lc=a;this.Ha=b;this.Ra=c;this.C=d;this.Mb=e;this.u=f;this.B=h;this.Ob=l;this.Fa=m;this.j=n};
j3a=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ya=Y(function(){return new mB});
g.H(this,this.Ya);this.zb=Y(function(){return new r0(f.Ya)});
g.H(this,this.zb);this.Mc=Y(function(){return new p0});
g.H(this,this.Mc);this.Yb=Y(function(){return new l0(a)});
g.H(this,this.Yb);this.Kb=Y(function(){return new B0(f.Ya,f.zb,f.Fa)});
g.H(this,this.Kb);this.Ud=Y(function(){return new F0});
g.H(this,this.Ud);this.Jf=Y(function(){return new oK(b.V())});
g.H(this,this.Jf);this.lc=Y(function(){return new P1(b)});
g.H(this,this.lc);this.Ob=Y(function(){return new P_(e)});
g.H(this,this.Ob);this.pe=Y(function(){return new CL(b)});
g.H(this,this.pe);this.pc=Y(function(){return new H0(b)});
g.H(this,this.pc);this.Je=Y(function(){return new S1(b)});
g.H(this,this.Je);this.ud=Y(function(){return new I0(b)});
g.H(this,this.ud);this.Fa=Y(function(){return new J0(b)});
g.H(this,this.Fa);this.zf=Y(function(){return new O1(d)});
g.H(this,this.zf);this.Lb=Y(function(){return new IZ(f.Fa)});
g.H(this,this.Lb);this.Yd=Y(function(){return new j0(f.Ya,f.Kb,f.zb,f.Fa,f.Lb,null,f.lj)});
g.H(this,this.Yd);this.Of=Y(function(){return new T1(b)});
g.H(this,this.Of);this.df=Y(function(){return new U1});
g.H(this,this.df);this.zo=Y(function(){return new V0});
g.H(this,this.zo);this.Ta=Y(function(){return new R0(b,f.Ud,f.Fa)});
g.H(this,this.Ta);this.Wb=new E0(this.Fa,this.Lb,this.Ta);g.H(this,this.Wb);this.rf=Y(function(){return new R1(b,f.Fa,f.Ra)});
this.Ha=Y(function(){return new S0(b,f.Ta,f.Fa)});
g.H(this,this.Ha);this.Mb=Y(function(){return new L0(f.Ha,b)});
g.H(this,this.Mb);this.Ra=Y(function(){return new O0(b,f.Mc,f.Mb,f.Ta)});
g.H(this,this.Ra);this.Ve=Y(function(){return new W0});
g.H(this,this.Ve);this.Kh=new A1(B1,g2,function(l,m,n,p){return f0(f.zb.get(),l,m,n,p)},this.Yb,this.Kb,this.zb,this.Lb,this.Fa,this.Ta);
g.H(this,this.Kh);this.Sc=new lB(this.Yb,this.Yd,c,this.Fa,a,this.Ta,this.Ha);g.H(this,this.Sc);var h=new G0(b,this.Sc,this.Ha,this.Ta,this.rf);this.Uf=Y(function(){return h});
this.As=h;this.lj=new z1(this.Yb,this.Kb,this.Uf,this.rf,this.Ha,this.Fa,this.Ra);g.H(this,this.lj);this.kf=new o0(this.Yb,this.Kb,this.pc,this.Uf);g.H(this,this.kf);this.Uc=new cB(this.Fa,this.Yb,this.Kb,this.Yd,this.Ta,this.kf,c);g.H(this,this.Uc);this.wh=Y(function(){return new X0(f.zf,f.zb,f.Lb,f.Fa)});
g.H(this,this.wh);this.Od=Y(function(){return new Y0});
g.H(this,this.Od);this.Af=new G1(a,this.lc);g.H(this,this.Af);this.Db=new H1(a);g.H(this,this.Db);this.Rt=new W1(a);g.H(this,this.Rt);this.Kf=new I1(a,this.Uf);g.H(this,this.Kf);this.Ie=new J1(a,this.pc,this.Ha,this.Ta);g.H(this,this.Ie);this.Ce=new K1(a);g.H(this,this.Ce);this.Ih=new L1(a);g.H(this,this.Ih);this.Hv=new f2(a);g.H(this,this.Hv);this.Jd=Y(function(){return new C1});
g.H(this,this.Jd);this.Lh=Y(function(){return new D1(f.Ha)});
g.H(this,this.Lh);this.uh=Y(function(){return new $0(f.Uc)});
g.H(this,this.uh);this.Bh=Y(function(){return new h1(f.Ra,f.Ce,f.Mb)});
g.H(this,this.Bh);this.xm=Y(function(){return new i3a(f.lc,f.Ha,f.Ra,f.Mc,f.Mb,f.Rt,f.Hv,f.Ob,f.Fa,c)});
g.H(this,this.xm);this.Jh=Y(function(){return new y1(a,f.Ce,f.Ra,f.Mb,f.Ve,f.Je,f.Ta,f.Ha,f.pc,f.pe,f.ud,f.Jf,f.Ob,f.Of,f.Fa)});
g.H(this,this.Jh);this.LI=new M1(a,this.zo,this.Ya);g.H(this,this.LI);this.Mm=new N1(a,this.df,this.Lb,this.Ta,this.Ya,this.Fa);g.H(this,this.Mm);this.jf={Yu:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Uc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.lj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kf]]),zp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.wh],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",this.Od]]),Ik:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Af],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Db],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Db],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Db],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Db],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Db],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Db],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Db],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.Db],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Db],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Db],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Rt],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Kf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ie],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ie],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ie],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ce],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Kf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",
this.Ih],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Hv]]),wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Jd],["SLOT_TYPE_FORECASTING",this.Jd],["SLOT_TYPE_IN_PLAYER",this.Jd],["SLOT_TYPE_PLAYER_BYTES",this.Lh]]),Vp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.uh],["SLOT_TYPE_FORECASTING",this.Bh],["SLOT_TYPE_IN_PLAYER",this.xm],["SLOT_TYPE_PLAYER_BYTES",this.Jh]])};this.listeners=[this.Mc.get()];this.Ku={Uc:this.Uc,Xp:this.df.get(),Ii:this.Fa.get(),jb:this.Ob.get(),Hs:this.Ha.get(),Sc:this.Sc,
wm:this.Ya.get(),Wp:this.zo.get(),wl:this.Af,Aj:this.Mc.get(),Lm:this.Ta.get()}};
k3a=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ya=Y(function(){return new mB});
g.H(this,this.Ya);this.zb=Y(function(){return new r0(f.Ya)});
g.H(this,this.zb);this.Mc=Y(function(){return new p0});
g.H(this,this.Mc);this.Yb=Y(function(){return new l0(a)});
g.H(this,this.Yb);this.Kb=Y(function(){return new B0(f.Ya,f.zb,f.Fa)});
g.H(this,this.Kb);this.Ud=Y(function(){return new F0});
g.H(this,this.Ud);this.Jf=Y(function(){return new oK(b.V())});
g.H(this,this.Jf);this.lc=Y(function(){return new P1(b)});
g.H(this,this.lc);this.Ob=Y(function(){return new P_(e)});
g.H(this,this.Ob);this.pe=Y(function(){return new CL(b)});
g.H(this,this.pe);this.pc=Y(function(){return new H0(b)});
g.H(this,this.pc);this.Je=Y(function(){return new S1(b)});
g.H(this,this.Je);this.ud=Y(function(){return new I0(b)});
g.H(this,this.ud);this.Fa=Y(function(){return new J0(b)});
g.H(this,this.Fa);this.zf=Y(function(){return new O1(d)});
g.H(this,this.zf);this.Lb=Y(function(){return new IZ(f.Fa)});
g.H(this,this.Lb);this.Yd=Y(function(){return new j0(f.Ya,f.Kb,f.zb,f.Fa,f.Lb,null,null)});
g.H(this,this.Yd);this.Of=Y(function(){return new T1(b)});
g.H(this,this.Of);this.df=Y(function(){return new U1});
g.H(this,this.df);this.Ta=Y(function(){return new R0(b,f.Ud,f.Fa)});
g.H(this,this.Ta);this.Wb=new E0(this.Fa,this.Lb,this.Ta);g.H(this,this.Wb);this.Ha=Y(function(){return new S0(b,f.Ta,f.Fa)});
g.H(this,this.Ha);this.Mb=Y(function(){return new L0(f.Ha,b)});
g.H(this,this.Mb);this.Ra=Y(function(){return new O0(b,f.Mc,f.Mb,f.Ta)});
g.H(this,this.Ra);this.Ve=Y(function(){return new W0});
g.H(this,this.Ve);this.Kh=new A1(B1,g2,function(l,m,n,p){return f0(f.zb.get(),l,m,n,p)},this.Yb,this.Kb,this.zb,this.Lb,this.Fa,this.Ta);
g.H(this,this.Kh);this.Sc=new lB(this.Yb,this.Yd,c,this.Fa,a,this.Ta,this.Ha);g.H(this,this.Sc);var h=new G0(b,this.Sc,this.Ha,this.Ta);this.Uf=Y(function(){return h});
this.As=h;this.kf=new o0(this.Yb,this.Kb,this.pc,this.Uf);g.H(this,this.kf);this.Uc=new cB(this.Fa,this.Yb,this.Kb,this.Yd,this.Ta,this.kf,c);g.H(this,this.Uc);this.wh=Y(function(){return new X0(f.zf,f.zb,f.Lb,f.Fa)});
g.H(this,this.wh);this.Od=Y(function(){return new Y0});
g.H(this,this.Od);this.Af=new G1(a,this.lc);g.H(this,this.Af);this.Db=new H1(a);g.H(this,this.Db);this.Kf=new I1(a,this.Uf);g.H(this,this.Kf);this.Ie=new J1(a,this.pc,this.Ha,this.Ta);g.H(this,this.Ie);this.Ce=new K1(a);g.H(this,this.Ce);this.Ih=new L1(a);g.H(this,this.Ih);this.Jd=Y(function(){return new C1});
g.H(this,this.Jd);this.Lh=Y(function(){return new D1(f.Ha)});
g.H(this,this.Lh);this.uh=Y(function(){return new $0(f.Uc)});
g.H(this,this.uh);this.Bh=Y(function(){return new h1(f.Ra,f.Ce,f.Mb)});
g.H(this,this.Bh);this.CU=Y(function(){return new t1a(f.lc,f.Ha,f.Ra,f.Mc,c,f.Fa)});
g.H(this,this.CU);this.Jh=Y(function(){return new y1(a,f.Ce,f.Ra,f.Mb,f.Ve,f.Je,f.Ta,f.Ha,f.pc,f.pe,f.ud,f.Jf,f.Ob,f.Of,f.Fa)});
g.H(this,this.Jh);this.Mm=new N1(a,this.df,this.Lb,this.Ta,this.Ya,this.Fa);g.H(this,this.Mm);this.jf={Yu:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Uc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kf]]),zp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wh],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",
this.Od]]),Ik:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Af],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Db],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Db],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Db],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Db],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Db],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Db],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Db],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Db],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Db],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Kf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ie],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ie],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ce],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Kf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ih]]),wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Jd],["SLOT_TYPE_ABOVE_FEED",this.Jd],["SLOT_TYPE_FORECASTING",this.Jd],["SLOT_TYPE_IN_PLAYER",this.Jd],["SLOT_TYPE_PLAYER_BYTES",this.Lh]]),Vp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.uh],["SLOT_TYPE_FORECASTING",this.Bh],["SLOT_TYPE_IN_PLAYER",this.CU],["SLOT_TYPE_PLAYER_BYTES",this.Jh]])};this.listeners=[this.Mc.get()];this.Ku={Uc:this.Uc,Xp:this.df.get(),Ii:this.Fa.get(),jb:this.Ob.get(),Hs:this.Ha.get(),Sc:this.Sc,wm:this.Ya.get(),Wp:null,wl:this.Af,Aj:this.Mc.get(),Lm:this.Ta.get()}};
l3a=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ya=Y(function(){return new mB});
g.H(this,this.Ya);this.zb=Y(function(){return new r0(f.Ya)});
g.H(this,this.zb);this.Mc=Y(function(){return new p0});
g.H(this,this.Mc);this.Yb=Y(function(){return new l0(a)});
g.H(this,this.Yb);this.Kb=Y(function(){return new B0(f.Ya,f.zb,f.Fa)});
g.H(this,this.Kb);this.Ud=Y(function(){return new F0});
g.H(this,this.Ud);this.Jf=Y(function(){return new oK(b.V())});
g.H(this,this.Jf);this.lc=Y(function(){return new P1(b)});
g.H(this,this.lc);this.Ob=Y(function(){return new P_(e)});
g.H(this,this.Ob);this.pe=Y(function(){return new CL(b)});
g.H(this,this.pe);this.pc=Y(function(){return new H0(b)});
g.H(this,this.pc);this.Je=Y(function(){return new S1(b)});
g.H(this,this.Je);this.ud=Y(function(){return new I0(b)});
g.H(this,this.ud);this.Fa=Y(function(){return new J0(b)});
g.H(this,this.Fa);this.zf=Y(function(){return new O1(d)});
g.H(this,this.zf);this.Lb=Y(function(){return new IZ(f.Fa)});
g.H(this,this.Lb);this.Yd=Y(function(){return new j0(f.Ya,f.Kb,f.zb,f.Fa,f.Lb,null,null)});
g.H(this,this.Yd);this.Of=Y(function(){return new T1(b)});
g.H(this,this.Of);this.df=Y(function(){return new U1});
g.H(this,this.df);this.Ta=Y(function(){return new R0(b,f.Ud,f.Fa)});
g.H(this,this.Ta);this.Wb=new E0(this.Fa,this.Lb,this.Ta);g.H(this,this.Wb);this.Ha=Y(function(){return new S0(b,f.Ta,f.Fa)});
g.H(this,this.Ha);this.Mb=Y(function(){return new L0(f.Ha,b)});
g.H(this,this.Mb);this.Ra=Y(function(){return new O0(b,f.Mc,f.Mb,f.Ta)});
g.H(this,this.Ra);this.Ve=Y(function(){return new W0});
g.H(this,this.Ve);this.Kh=new A1(B1,g2,function(l,m,n,p){return f0(f.zb.get(),l,m,n,p)},this.Yb,this.Kb,this.zb,this.Lb,this.Fa,this.Ta);
g.H(this,this.Kh);this.Sc=new lB(this.Yb,this.Yd,c,this.Fa,a,this.Ta,this.Ha);g.H(this,this.Sc);var h=new G0(b,this.Sc,this.Ha,this.Ta);this.Uf=Y(function(){return h});
this.As=h;this.kf=new o0(this.Yb,this.Kb,this.pc,this.Uf);g.H(this,this.kf);this.Uc=new cB(this.Fa,this.Yb,this.Kb,this.Yd,this.Ta,this.kf,c);g.H(this,this.Uc);this.wh=Y(function(){return new X0(f.zf,f.zb,f.Lb,f.Fa)});
g.H(this,this.wh);this.Od=Y(function(){return new Y0});
g.H(this,this.Od);this.Af=new G1(a,this.lc);g.H(this,this.Af);this.Db=new H1(a);g.H(this,this.Db);this.Kf=new I1(a,this.Uf);g.H(this,this.Kf);this.Ie=new J1(a,this.pc,this.Ha,this.Ta);g.H(this,this.Ie);this.Ce=new K1(a);g.H(this,this.Ce);this.Ih=new L1(a);g.H(this,this.Ih);this.Jd=Y(function(){return new C1});
g.H(this,this.Jd);this.Lh=Y(function(){return new D1(f.Ha)});
g.H(this,this.Lh);this.uh=Y(function(){return new $0(f.Uc)});
g.H(this,this.uh);this.Bh=Y(function(){return new h1(f.Ra,f.Ce,f.Mb)});
g.H(this,this.Bh);this.xm=Y(function(){return new t1a(f.lc,f.Ha,f.Ra,f.Mc,c,f.Fa)});
g.H(this,this.xm);this.Jh=Y(function(){return new y1(a,f.Ce,f.Ra,f.Mb,f.Ve,f.Je,f.Ta,f.Ha,f.pc,f.pe,f.ud,f.Jf,f.Ob,f.Of,f.Fa)});
g.H(this,this.Jh);this.Mm=new N1(a,this.df,this.Lb,this.Ta,this.Ya,this.Fa);g.H(this,this.Mm);this.jf={Yu:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Uc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kf]]),zp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wh],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",
this.Od]]),Ik:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Af],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Db],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Db],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Db],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Db],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Db],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Db],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Db],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Db],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Db],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Kf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ie],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ce],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Kf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ih]]),wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Jd],["SLOT_TYPE_FORECASTING",this.Jd],["SLOT_TYPE_IN_PLAYER",this.Jd],["SLOT_TYPE_PLAYER_BYTES",this.Lh]]),Vp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.uh],["SLOT_TYPE_FORECASTING",this.Bh],["SLOT_TYPE_IN_PLAYER",this.xm],["SLOT_TYPE_PLAYER_BYTES",
this.Jh]])};this.listeners=[this.Mc.get()];this.Ku={Uc:this.Uc,Xp:this.df.get(),Ii:this.Fa.get(),jb:this.Ob.get(),Hs:this.Ha.get(),Sc:this.Sc,wm:this.Ya.get(),Wp:null,wl:this.Af,Aj:this.Mc.get(),Lm:this.Ta.get()}};
h2=function(a,b,c,d,e,f,h,l,m){m1.call(this,a,b,c,d,e,f,h,m);this.Wl=l};
m3a=function(){var a=r1a();a.He.push("metadata_type_ad_info_ad_metadata");return a};
n3a=function(a,b,c,d,e,f){this.lc=a;this.Ha=b;this.Ra=c;this.u=d;this.Wl=e;this.j=f};
o3a=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ya=Y(function(){return new mB});
g.H(this,this.Ya);this.zb=Y(function(){return new r0(f.Ya)});
g.H(this,this.zb);this.Mc=Y(function(){return new p0});
g.H(this,this.Mc);this.Yb=Y(function(){return new l0(a)});
g.H(this,this.Yb);this.Kb=Y(function(){return new B0(f.Ya,f.zb,f.Fa)});
g.H(this,this.Kb);this.Ud=Y(function(){return new F0});
g.H(this,this.Ud);this.Wl=Y(function(){return new e2a(b)});
g.H(this,this.Wl);this.Jf=Y(function(){return new oK(b.V())});
g.H(this,this.Jf);this.lc=Y(function(){return new P1(b)});
g.H(this,this.lc);this.Ob=Y(function(){return new P_(e)});
g.H(this,this.Ob);this.pe=Y(function(){return new CL(b)});
g.H(this,this.pe);this.pc=Y(function(){return new H0(b)});
g.H(this,this.pc);this.Je=Y(function(){return new S1(b)});
g.H(this,this.Je);this.ud=Y(function(){return new I0(b)});
g.H(this,this.ud);this.Fa=Y(function(){return new J0(b)});
g.H(this,this.Fa);this.zf=Y(function(){return new O1(d)});
g.H(this,this.zf);this.Lb=Y(function(){return new IZ(f.Fa)});
g.H(this,this.Lb);this.Yd=Y(function(){return new j0(f.Ya,f.Kb,f.zb,f.Fa,f.Lb,null,null)});
g.H(this,this.Yd);this.Of=Y(function(){return new T1(b)});
g.H(this,this.Of);this.df=Y(function(){return new U1});
g.H(this,this.df);this.Ta=Y(function(){return new R0(b,f.Ud,f.Fa)});
g.H(this,this.Ta);this.Wb=new E0(this.Fa,this.Lb,this.Ta);g.H(this,this.Wb);this.Ha=Y(function(){return new S0(b,f.Ta,f.Fa)});
g.H(this,this.Ha);this.Mb=Y(function(){return new L0(f.Ha,b)});
g.H(this,this.Mb);this.Ra=Y(function(){return new O0(b,f.Mc,f.Mb,f.Ta)});
g.H(this,this.Ra);this.Ve=Y(function(){return new W0});
g.H(this,this.Ve);this.Kh=new A1(Q1a,g2,function(l,m,n,p){return l0a(f.zb.get(),l,m,n,p)},this.Yb,this.Kb,this.zb,this.Lb,this.Fa,this.Ta);
g.H(this,this.Kh);this.Sc=new lB(this.Yb,this.Yd,c,this.Fa,a,this.Ta,this.Ha);g.H(this,this.Sc);var h=new G0(b,this.Sc,this.Ha,this.Ta);this.Uf=Y(function(){return h});
this.As=h;this.kf=new o0(this.Yb,this.Kb,this.pc,this.Uf);g.H(this,this.kf);this.Uc=new cB(this.Fa,this.Yb,this.Kb,this.Yd,this.Ta,this.kf,c);g.H(this,this.Uc);this.wh=Y(function(){return new X0(f.zf,f.zb,f.Lb,f.Fa)});
g.H(this,this.wh);this.Od=Y(function(){return new Y0});
g.H(this,this.Od);this.Af=new G1(a,this.lc);g.H(this,this.Af);this.Db=new H1(a);g.H(this,this.Db);this.Kf=new I1(a,this.Uf);g.H(this,this.Kf);this.Ie=new J1(a,this.pc,this.Ha,this.Ta);g.H(this,this.Ie);this.Ce=new K1(a);g.H(this,this.Ce);this.Ih=new L1(a);g.H(this,this.Ih);this.Jd=Y(function(){return new C1});
g.H(this,this.Jd);this.Lh=Y(function(){return new D1(f.Ha)});
g.H(this,this.Lh);this.uh=Y(function(){return new $0(f.Uc)});
g.H(this,this.uh);this.Bh=Y(function(){return new h1(f.Ra,f.Ce,f.Mb)});
g.H(this,this.Bh);this.Jh=Y(function(){return new y1(a,f.Ce,f.Ra,f.Mb,f.Ve,f.Je,f.Ta,f.Ha,f.pc,f.pe,f.ud,f.Jf,f.Ob,f.Of,f.Fa)});
g.H(this,this.Jh);this.HW=Y(function(){return new n3a(f.lc,f.Ha,f.Ra,f.Mc,f.Wl,c)});
g.H(this,this.HW);this.Mm=new N1(a,this.df,this.Lb,this.Ta,this.Ya,this.Fa);g.H(this,this.Mm);this.jf={Yu:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Uc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kf]]),zp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wh],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",
this.Od]]),Ik:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Af],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Db],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Db],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Db],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Db],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Db],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Db],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Db],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Db],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Db],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Kf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ie],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ie],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ce],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Kf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ih]]),wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Jd],["SLOT_TYPE_FORECASTING",this.Jd],["SLOT_TYPE_IN_PLAYER",this.Jd],["SLOT_TYPE_PLAYER_BYTES",this.Lh]]),Vp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.uh],["SLOT_TYPE_FORECASTING",
this.Bh],["SLOT_TYPE_IN_PLAYER",this.HW],["SLOT_TYPE_PLAYER_BYTES",this.Jh]])};this.listeners=[this.Mc.get()];this.Ku={Uc:this.Uc,Xp:this.df.get(),Ii:this.Fa.get(),jb:this.Ob.get(),Hs:this.Ha.get(),Sc:this.Sc,wm:this.Ya.get(),Wp:null,wl:this.Af,Aj:this.Mc.get(),Lm:this.Ta.get()}};
p3a=function(a,b,c,d,e,f,h){this.lc=a;this.Ha=b;this.Ra=c;this.u=d;this.Wl=e;this.j=f;this.Fa=h};
q3a=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ya=Y(function(){return new mB});
g.H(this,this.Ya);this.zb=Y(function(){return new r0(f.Ya)});
g.H(this,this.zb);this.Mc=Y(function(){return new p0});
g.H(this,this.Mc);this.Yb=Y(function(){return new l0(a)});
g.H(this,this.Yb);this.Kb=Y(function(){return new B0(f.Ya,f.zb,f.Fa)});
g.H(this,this.Kb);this.Ud=Y(function(){return new F0});
g.H(this,this.Ud);this.Wl=Y(function(){return new e2a(b)});
g.H(this,this.Wl);this.Jf=Y(function(){return new oK(b.V())});
g.H(this,this.Jf);this.lc=Y(function(){return new P1(b)});
g.H(this,this.lc);this.Ob=Y(function(){return new P_(e)});
g.H(this,this.Ob);this.pe=Y(function(){return new CL(b)});
g.H(this,this.pe);this.pc=Y(function(){return new H0(b)});
g.H(this,this.pc);this.Je=Y(function(){return new S1(b)});
g.H(this,this.Je);this.ud=Y(function(){return new I0(b)});
g.H(this,this.ud);this.Fa=Y(function(){return new J0(b)});
g.H(this,this.Fa);this.zf=Y(function(){return new O1(d)});
g.H(this,this.zf);this.Lb=Y(function(){return new IZ(f.Fa)});
g.H(this,this.Lb);this.Yd=Y(function(){return new j0(f.Ya,f.Kb,f.zb,f.Fa,f.Lb,null,f.lj,3)});
g.H(this,this.Yd);this.Of=Y(function(){return new T1(b)});
g.H(this,this.Of);this.df=Y(function(){return new U1});
g.H(this,this.df);this.Ta=Y(function(){return new R0(b,f.Ud,f.Fa)});
g.H(this,this.Ta);this.Wb=new E0(this.Fa,this.Lb,this.Ta);g.H(this,this.Wb);this.rf=Y(function(){return new R1(b,f.Fa,f.Ra)});
g.H(this,this.rf);this.hf=Y(function(){return new I2a(b)});
g.H(this,this.hf);this.Ha=Y(function(){return new S0(b,f.Ta,f.Fa)});
g.H(this,this.Ha);this.Ve=Y(function(){return new W0});
this.Mb=Y(function(){return new L0(f.Ha,b)});
g.H(this,this.Mb);this.Ra=Y(function(){return new O0(b,f.Mc,f.Mb,f.Ta)});
g.H(this,this.Ra);this.Sc=new lB(this.Yb,this.Yd,c,this.Fa,a,this.Ta,this.Ha);g.H(this,this.Sc);var h=new G0(b,this.Sc,this.Ha,this.Ta,this.rf);this.Uf=Y(function(){return h});
this.As=h;this.Kh=new A1(R1a,g2,function(l,m,n,p){return l0a(f.zb.get(),l,m,n,p)},this.Yb,this.Kb,this.zb,this.Lb,this.Fa,this.Ta);
g.H(this,this.Kh);this.lj=new z1(this.Yb,this.Kb,this.Uf,this.rf,this.Ha,this.Fa,this.Ra,this.hf);g.H(this,this.lj);this.kf=new o0(this.Yb,this.Kb,this.pc,this.Uf);g.H(this,this.kf);this.Uc=new cB(this.Fa,this.Yb,this.Kb,this.Yd,this.Ta,this.kf,c);g.H(this,this.Uc);this.wh=Y(function(){return new X0(f.zf,f.zb,f.Lb,f.Fa,f.hf)});
g.H(this,this.wh);this.Od=Y(function(){return new Y0});
g.H(this,this.Od);this.Af=new G1(a,this.lc);g.H(this,this.Af);this.Db=new H1(a);g.H(this,this.Db);this.Kf=new I1(a,this.Uf);g.H(this,this.Kf);this.Ie=new J1(a,this.pc,this.Ha,this.Ta);g.H(this,this.Ie);this.Mu=new Y1(a,this.Ta);g.H(this,this.Mu);this.Ce=new K1(a);g.H(this,this.Ce);this.Ih=new L1(a);g.H(this,this.Ih);this.Jd=Y(function(){return new C1});
g.H(this,this.Jd);this.Lh=Y(function(){return new D1(f.Ha)});
g.H(this,this.Lh);this.uh=Y(function(){return new $0(f.Uc)});
g.H(this,this.uh);this.Bh=Y(function(){return new h1(f.Ra,f.Ce,f.Mb)});
g.H(this,this.Bh);this.Jh=Y(function(){return new G2a(a,f.Ce,f.Ta,f.hf,f.Ha,f.Ra,f.Ud,f.rf,f.Mb,f.Ve,f.Je,f.pc,f.pe,f.ud,f.Jf,f.Ob,f.Of,f.Fa,f.Mc)});
g.H(this,this.Jh);this.xm=Y(function(){return new p3a(f.lc,f.Ha,f.Ra,f.Mc,f.Wl,c,f.Fa)});
g.H(this,this.xm);this.Mm=new N1(a,this.df,this.Lb,this.Ta,this.Ya,this.Fa);g.H(this,this.Mm);this.jf={Yu:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Uc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.lj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kf]]),zp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wh],["SLOT_TYPE_FORECASTING",this.Od],
["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",this.Od]]),Ik:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Af],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Db],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Db],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Db],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Db],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Db],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Db],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Db],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Db],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.Db],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Kf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ie],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ie],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Mu],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Mu],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ce],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Kf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ih]]),wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Jd],["SLOT_TYPE_FORECASTING",
this.Jd],["SLOT_TYPE_IN_PLAYER",this.Jd],["SLOT_TYPE_PLAYER_BYTES",this.Lh]]),Vp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.uh],["SLOT_TYPE_FORECASTING",this.Bh],["SLOT_TYPE_PLAYER_BYTES",this.Jh],["SLOT_TYPE_IN_PLAYER",this.xm]])};this.listeners=[this.Mc.get()];this.Ku={Uc:this.Uc,Xp:this.df.get(),Ii:this.Fa.get(),jb:this.Ob.get(),Hs:this.Ha.get(),Sc:this.Sc,wm:this.Ya.get(),Wp:null,wl:this.Af,Aj:this.Mc.get(),Lm:this.Ta.get()}};
s3a=function(a,b,c,d){g.E.call(this);var e=this;this.j=r3a(function(){return e.u},a,b,c,d);
g.H(this,this.j);this.u=(new mZa(this.j)).B();g.H(this,this.u)};
i2=function(a){return a.j.Ku};
r3a=function(a,b,c,d,e){try{var f=b.V();if(g.SH(f))var h=new h3a(a,b,c,d,e);else if(g.VH(f))h=new j3a(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===BG(f))h=new l3a(a,b,c,d,e);else if(JH(f))h=new k3a(a,b,c,d,e);else if(g.CH(f))h=new o3a(a,b,c,d,e);else if(g.BH(f))h=new q3a(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.V(),kB("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.deviceParams.cplatform,interface:h.deviceParams.c,
u$a:h.deviceParams.cver,t$a:h.deviceParams.ctheme,s$a:h.deviceParams.cplayer,O$a:h.playerStyle}),new W0a(a,b,c,d,e)}};
t3a=function(a){uN.call(this,a)};
u3a=function(a,b,c,d,e,f){CN.call(this,a,b,{F:"div",K:"ytp-ad-timed-pie-countdown-container",W:[{F:"svg",K:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},W:[{F:"circle",K:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{F:"circle",K:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{F:"circle",K:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e,f);this.C=this.Ea("ytp-ad-timed-pie-countdown-inner");this.D=this.Ea("ytp-ad-timed-pie-countdown-outer");
this.B=Math.ceil(10*Math.PI);this.hide()};
v3a=function(a,b,c,d,e,f,h){UM.call(this,a,b,{F:"div",K:"ytp-ad-action-interstitial",X:{tabindex:"0"},W:[{F:"div",K:"ytp-ad-action-interstitial-background-container"},{F:"div",K:"ytp-ad-action-interstitial-slot",W:[{F:"div",K:"ytp-ad-action-interstitial-card",W:[{F:"div",K:"ytp-ad-action-interstitial-image-container"},{F:"div",K:"ytp-ad-action-interstitial-headline-container"},{F:"div",K:"ytp-ad-action-interstitial-description-container"},{F:"div",K:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d,e);this.uN=f;this.IG=h;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.ea=this.Ea("ytp-ad-action-interstitial-image-container");this.T=new qN(this.api,this.ib,this.layoutId,this.j,this.jb,"ytp-ad-action-interstitial-image");g.H(this,this.T);this.T.Ca(this.ea);this.Ma=this.Ea("ytp-ad-action-interstitial-headline-container");this.I=new AN(this.api,this.ib,this.layoutId,this.j,this.jb,"ytp-ad-action-interstitial-headline");g.H(this,this.I);
this.I.Ca(this.Ma);this.Ka=this.Ea("ytp-ad-action-interstitial-description-container");this.D=new AN(this.api,this.ib,this.layoutId,this.j,this.jb,"ytp-ad-action-interstitial-description");g.H(this,this.D);this.D.Ca(this.Ka);this.Pa=this.Ea("ytp-ad-action-interstitial-background-container");this.Ba=new qN(this.api,this.ib,this.layoutId,this.j,this.jb,"ytp-ad-action-interstitial-background",!0);g.H(this,this.Ba);this.Ba.Ca(this.Pa);this.Xa=this.Ea("ytp-ad-action-interstitial-action-button-container");
this.slot=this.Ea("ytp-ad-action-interstitial-slot");this.C=new eA;g.H(this,this.C);this.hide()};
w3a=function(a){var b=g.Ee("html5-video-player");b&&g.lo(b,"ytp-ad-display-override",a)};
A3a=function(a,b,c,d,e){UM.call(this,a,b,{F:"div",K:"ytp-ad-overlay-slot",W:[{F:"div",K:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d,e);this.T=[];this.gb=this.Ba=this.D=this.Xa=this.Ma=null;this.Pa=!1;this.I=null;this.ea=0;b=this.Ea("ytp-ad-overlay-container");this.Ka=new LN(b,45E3,6E3,.3,.4);g.H(this,this.Ka);this.C=x3a(this);g.H(this,this.C);this.C.Ca(b);this.B=y3a(this);g.H(this,this.B);this.B.Ca(b);this.u=z3a(this);g.H(this,this.u);this.u.Ca(b);a.N("web_rounded_containers")&&g.ho(b,"ytp-rounded-overlay-ad");
this.hide()};
x3a=function(a){var b=new g.TM({F:"div",K:"ytp-ad-text-overlay",W:[{F:"div",K:"ytp-ad-overlay-ad-info-button-container"},{F:"div",K:"ytp-ad-overlay-close-container",W:[{F:"button",K:"ytp-ad-overlay-close-button",W:[jN(B3a)]}]},{F:"div",K:"ytp-ad-overlay-title",qa:"{{title}}"},{F:"div",K:"ytp-ad-overlay-desc",qa:"{{description}}"},{F:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],qa:"{{displayUrl}}"}]});a.S(b.Ea("ytp-ad-overlay-title"),"click",function(c){j2(a,b.element,c)});
a.S(b.Ea("ytp-ad-overlay-link"),"click",function(c){j2(a,b.element,c)});
a.S(b.Ea("ytp-ad-overlay-close-container"),"click",a.Bo);b.hide();return b};
y3a=function(a){var b=new g.TM({F:"div",Ga:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{F:"div",K:"ytp-ad-overlay-ad-info-button-container"},{F:"div",K:"ytp-ad-overlay-close-container",W:[{F:"button",K:"ytp-ad-overlay-close-button",W:[jN(B3a)]}]},{F:"div",K:"ytp-ad-overlay-text-image",W:[{F:"img",X:{src:"{{imageUrl}}"}}]},{F:"div",K:"ytp-ad-overlay-title",qa:"{{title}}"},{F:"div",K:"ytp-ad-overlay-desc",qa:"{{description}}"},{F:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
qa:"{{displayUrl}}"}]});a.S(b.Ea("ytp-ad-overlay-title"),"click",function(c){j2(a,b.element,c)});
a.S(b.Ea("ytp-ad-overlay-link"),"click",function(c){j2(a,b.element,c)});
a.S(b.Ea("ytp-ad-overlay-close-container"),"click",a.Bo);a.S(b.Ea("ytp-ad-overlay-text-image"),"click",a.e5);b.hide();return b};
z3a=function(a){var b=new g.TM({F:"div",K:"ytp-ad-image-overlay",W:[{F:"div",K:"ytp-ad-overlay-ad-info-button-container"},{F:"div",K:"ytp-ad-overlay-close-container",W:[{F:"button",K:"ytp-ad-overlay-close-button",W:[jN(B3a)]}]},{F:"div",K:"ytp-ad-overlay-image",W:[{F:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.S(b.Ea("ytp-ad-overlay-image"),"click",function(c){j2(a,b.element,c)});
a.S(b.Ea("ytp-ad-overlay-close-container"),"click",a.Bo);b.hide();return b};
C3a=function(a,b){if(b){var c=g.P(b,W_)||null;if(null==c)g.rA(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Ee("video-ads ytp-ad-module")||null,null==b)g.rA(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ba=new g.TM({F:"div",K:"ytp-ad-overlay-ad-info-dialog-container"}),g.H(a,a.Ba),a.Ba.Ca(b),b=new zN(a.api,a.ib,a.layoutId,a.j,a.jb,a.Ba.element,!1),g.H(a,b),b.init(mK("ad-info-hover-text-button"),c,a.macros),a.I){b.Ca(a.I,
0);b.subscribe("f",a.E2,a);b.subscribe("e",a.fM,a);a.S(a.I,"click",a.F2);var d=g.Ee("ytp-ad-button",b.element);a.S(d,"click",function(){var e;if(g.P(null==(e=g.P(c.button,g.zJ))?void 0:e.serviceEndpoint,rFa))a.Pa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.gb=b}else g.rA(Error("Ad info button container within overlay ad was not present."))}else g.sA(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
E3a=function(a,b){if(D3a(a,k2)||a.api.cg())return!1;var c=VM(b.title),d=VM(b.description);if(g.Lb(c)||g.Lb(d))return!1;a.Og(a.C.element,b.trackingParams||null);a.C.updateValue("title",VM(b.title));a.C.updateValue("description",VM(b.description));a.C.updateValue("displayUrl",VM(b.displayUrl));b.navigationEndpoint&&g.wb(a.T,b.navigationEndpoint);a.C.show();a.Ka.start();a.Sa(a.C.element,!0);a.S(a.C.element,"mouseover",function(){a.ea++});
return!0};
F3a=function(a,b){if(D3a(a,k2)||a.api.cg())return!1;var c=VM(b.title),d=VM(b.description);if(g.Lb(c)||g.Lb(d))return!1;a.Og(a.B.element,b.trackingParams||null);a.B.updateValue("title",VM(b.title));a.B.updateValue("description",VM(b.description));a.B.updateValue("displayUrl",VM(b.displayUrl));a.B.updateValue("imageUrl",LEa(b.image));b.navigationEndpoint&&g.wb(a.T,b.navigationEndpoint);a.Xa=b.imageNavigationEndpoint||null;a.B.show();a.Ka.start();a.Sa(a.B.element,!0);a.S(a.B.element,"mouseover",function(){a.ea++});
return!0};
G3a=function(a,b){if(a.api.cg())return!1;var c=MEa(b.image),d=c;c.width<k2.width&&(d=k2);if(0===c.width||0===c.height||D3a(a,d))return!1;a.Og(a.u.element,b.trackingParams||null);a.u.updateValue("imageUrl",LEa(b.image));a.u.updateValue("width",c.width);a.u.updateValue("height",c.height);b.navigationEndpoint&&g.wb(a.T,b.navigationEndpoint);b=a.u.Ea("ytp-ad-image-overlay");g.Al(b,"max-width",c.width+"px");a.u.show();a.Sa(a.u.element,!0);a.S(a.u.element,"mouseover",function(){a.ea++;a.api.JL("invideo-overlay",
a.layoutId)});
a.S(a.u.element,"mouseout",function(){a.api.IL("invideo-overlay",a.layoutId)});
return!0};
D3a=function(a,b){var c=a.api.fb().uj(),d=a.api.dk(!0,!1);return(b=Z2a(c,c.height-(d.height+d.top),b))?(a.Ma&&b&&(c=g.Yc(a.macros),c.ERRORCODE=b.NC.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?Q_(a.jb,a.Ma,a.layoutId,c):g.rA(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
j2=function(a,b,c){var d=g.Yc(a.macros),e=g.Ll(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Jl(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.ea.toString()}};
b=g.t(a.T);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?Q_(a.jb,c,a.layoutId,d):g.rA(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
H3a=function(a,b){a=a.api.getRootNode();g.lo(a,"ytp-ad-overlay-open",b);g.lo(a,"ytp-ad-overlay-closed",!b)};
I3a=function(a,b,c,d,e,f){CN.call(this,a,b,{F:"div",K:"ytp-ad-message-overlay",W:[{F:"div",K:"ytp-ad-message-slot"}]},"ad-message",c,d,e,f);var h=this;this.ea=-1;this.C=0;this.T=!1;this.Ba=this.Ea("ytp-ad-message-slot");this.B=new g.TM({F:"span",K:"ytp-ad-message-container"});this.B.Ca(this.Ba);g.H(this,this.B);this.messageText=new AN(this.api,this.ib,this.layoutId,this.j,e,"ytp-ad-message-text");g.H(this,this.messageText);this.messageText.Ca(this.B.element);this.D=new g.FN(this.B,400,!1,100,function(){h.hide()});
g.H(this,this.D);this.hide()};
J3a=function(a,b){a=a.api.getRootNode();g.lo(a,"ytp-ad-overlay-open",b);g.lo(a,"ytp-ad-overlay-closed",!b)};
K3a=function(a,b,c,d,e){UM.call(this,a,b,{F:"div",K:"ytp-ad-underlay-companion",W:[{F:"div",K:"ytp-ad-underlay-side-container",W:[{F:"div",K:"ytp-ad-underlay-image-container"},{F:"div",K:"ytp-ad-underlay-description-container"},{F:"div",K:"ytp-ad-underlay-headline-container"},{F:"div",K:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",c,d,e);this.actionButton=null;this.Ba=this.Ea("ytp-ad-underlay-image-container");this.C=new qN(this.api,this.ib,this.layoutId,this.j,this.jb,"ytp-ad-underlay-image");
g.H(this,this.C);this.C.Ca(this.Ba);this.ea=this.Ea("ytp-ad-underlay-headline-container");this.B=new AN(this.api,this.ib,this.layoutId,this.j,this.jb,"ytp-ad-underlay-headline");g.H(this,this.B);this.B.Ca(this.ea);this.T=this.Ea("ytp-ad-underlay-description-container");this.D=new AN(this.api,this.ib,this.layoutId,this.j,this.jb,"ytp-ad-underlay-description");g.H(this,this.D);this.D.Ca(this.T);this.I=this.Ea("ytp-ad-underlay-action-button-container");this.u=this.Ea("ytp-ad-underlay-side-container");
this.hide()};
L3a=function(a){var b=g.Ee("html5-video-player");b&&g.lo(b,"ytp-ad-display-override",a)};
l2=function(a,b,c,d,e,f){f=void 0===f?!1:f;UM.call(this,a,b,{F:"div",K:"ytp-ad-survey-answer"},"survey-answer",c,d,e);this.B=f;this.u=null;this.toggledLoggingParams="";this.answer=this.Ea("ytp-ad-survey-answer");this.hide()};
M3a=function(a,b,c,d,e){UM.call(this,a,b,{F:"div",K:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d,e);this.button=null;this.u=this.Ea("ytp-ad-survey-none-of-the-above");this.hide()};
m2=function(a,b,c,d,e){var f=["ytp-ad-survey-submit-button"];a.V().N("web_modern_buttons_bl_survey")&&f.push("ytp-ad-survey-submit-button-rounded");kN.call(this,a,b,c,d,e,f,"survey-submit")};
n2=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;UM.call(this,a,b,{F:"div",K:"ytp-ad-survey-player-overlay",W:[{F:"div",K:"ytp-ad-survey-player-overlay-instream-info"},{F:"div",K:"ytp-ad-survey-player-overlay-skip-preview-submit",W:[{F:"div",K:"ytp-ad-survey-player-overlay-skip-or-preview"},{F:"div",K:"ytp-ad-survey-player-overlay-submit"}]},{F:"div",K:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d,e);this.C=f;this.T=h;this.B=this.u=null;this.D=this.Ea("ytp-ad-survey-player-overlay-instream-info");
this.I=this.Ea("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Ea("ytp-ad-survey-player-overlay-submit");g.H(this,this.C);this.hide()};
o2=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;UM.call(this,a,b,{F:"div",K:"ytp-ad-survey-question",W:[{F:"div",Ga:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{F:"div",Ga:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{F:"div",Ga:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{F:"div",K:"ytp-ad-survey-question-background"}]},f,c,d,e);this.I=h;this.D=null;this.B=[];this.u=null;this.question=this.Ea("ytp-ad-survey-question");this.ea=
this.Ea("ytp-ad-survey-question-background");this.questionText=this.Ea("ytp-ad-survey-question-text");this.answers=this.Ea("ytp-ad-survey-answers");this.playerOverlay=this.Ea("ytp-ad-survey-question-player-overlay");this.C=g.Ra()};
N3a=function(a,b,c){var d=new l2(a.api,a.ib,a.layoutId,a.j,a.jb,a.I);d.Ca(a.answers);d.init(mK("survey-answer"),b,c);a.B.push(d)};
P3a=function(a,b){if(b){var c=b.background;c&&g.P(c,O3a)&&(c=(c=g.P(c,O3a).image)&&pN(c)||"",g.Lb(c)?g.sA(Error("Found ThumbnailDetails without valid image URL")):g.Al(a.ea,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.rA(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Ra();a.u=new SN(a.api,b.durationMilliseconds);g.H(a,a.u);if(a.u&&b.instreamAdPlayerOverlay&&g.P(b.instreamAdPlayerOverlay,
FZa))try{var d=new n2(a.api,a.ib,a.layoutId,a.j,a.jb,a.u,a.I);d.Ca(a.playerOverlay);d.init(mK("survey-player-overlay"),g.P(b.instreamAdPlayerOverlay,FZa),a.macros);a.D=d;g.H(a,d);a.bV()}catch(e){g.rA(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.rA(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.u&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new bO(a.api,a.u),b.Ca(a.playerOverlay),
g.H(a,b)):g.rA(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.rA(Error("addCommonComponents() needs to be called before starting countdown."))};
Q3a=function(a){function b(c){return{toString:function(){return c()}}}
a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()).toString()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.Ra()-a.C).toString()})};
R3a=function(a,b,c,d,e,f){o2.call(this,a,b,c,d,e,"survey-question-multi-select",void 0===f?!1:f);this.noneOfTheAbove=null;this.submitEndpoints=[];this.T=null;this.hide()};
S3a=function(a,b,c){a.noneOfTheAbove=new M3a(a.api,a.ib,a.layoutId,a.j,a.jb);a.noneOfTheAbove.Ca(a.answers);a.noneOfTheAbove.init(mK("survey-none-of-the-above"),b,c)};
U3a=function(a){a.B.forEach(function(b){b.u.toggleButton(!1)});
T3a(a,!0)};
T3a=function(a,b){var c=a.D;a=V3a(a);b=void 0===b?!1:b;c.u&&(a?c.u.hide():c.u.show(),b&&c.u instanceof ON&&!c.u.D&&wFa(c.u,!1));c.B&&(a?c.B.show():c.B.hide())};
V3a=function(a){return a.B.some(function(b){return b.u.isToggled()})||a.noneOfTheAbove.button.isToggled()};
p2=function(a,b,c,d,e,f){o2.call(this,a,b,c,d,e,"survey-question-single-select",void 0===f?!1:f);this.hide()};
q2=function(a,b,c,d,e){UM.call(this,a,b,{F:"div",K:"ytp-ad-survey",W:[{F:"div",K:"ytp-ad-survey-questions"}]},"survey",c,d,e);this.questions=[];this.B=this.Ea("ytp-ad-survey-questions");this.api.V().N("supports_multi_step_on_desktop")&&this.S(a,"aduxclicked",this.rg);this.hide()};
Y3a=function(a,b){var c;null==(c=a.u)||c.dispose();g.P(b,DK)?W3a(a,g.P(b,DK),a.macros):g.P(b,EK)&&X3a(a,g.P(b,EK),a.macros)};
W3a=function(a,b,c){var d=new p2(a.api,a.ib,a.layoutId,a.j,a.jb,!1);d.Ca(a.B);d.init(mK("survey-question-single-select"),b,c);a.api.V().N("supports_multi_step_on_desktop")?a.u=d:a.questions.push(d);g.H(a,d)};
X3a=function(a,b,c){var d=new R3a(a.api,a.ib,a.layoutId,a.j,a.jb,!1);d.Ca(a.B);d.init(mK("survey-question-multi-select"),b,c);a.api.V().N("supports_multi_step_on_desktop")?a.u=d:a.questions.push(d);g.H(a,d)};
r2=function(a,b,c,d,e){UM.call(this,a,b,{F:"div",K:"ytp-ad-survey-interstitial",W:[{F:"div",K:"ytp-ad-survey-interstitial-contents",W:[{F:"div",K:"ytp-ad-survey-interstitial-logo",W:[{F:"div",K:"ytp-ad-survey-interstitial-logo-image"}]},{F:"div",K:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d,e);this.u=this.actionButton=null;this.interstitial=this.Ea("ytp-ad-survey-interstitial");this.B=this.Ea("ytp-ad-survey-interstitial-contents");this.text=this.Ea("ytp-ad-survey-interstitial-text");
this.logoImage=this.Ea("ytp-ad-survey-interstitial-logo-image");this.transition=new g.FN(this,500,!1,300);g.H(this,this.transition)};
Z3a=function(a,b){b=b&&pN(b)||"";if(g.Lb(b))g.sA(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Je&&10>document.documentMode)c=Sd;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.Oe("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Jka(d.style)}b=new Qd([c,Jba({"background-image":'url("'+b+'")'})].map(Gfa).join(""),Pd);a.style.cssText=Rd(b)}};
$3a=function(a){var b=g.Ee("html5-video-player");b&&g.lo(b,"ytp-ad-display-override",a)};
s2=function(a,b,c,d){uN.call(this,a);this.api=a;this.jb=c;this.u={};this.I=b;a=new g.W({F:"div",Ga:["video-ads","ytp-ad-module"]});g.H(this,a);qH&&g.ho(a.element,"ytp-ads-tiny-mode");this.D=new NM(a.element);g.H(this,this.D);g.cQ(this.api,a.element,4);E_a(d)&&(d=new g.W({F:"div",Ga:["ytp-ad-underlay"]}),g.H(this,d),this.B=new NM(d.element),g.H(this,this.B),g.cQ(this.api,d.element,0));g.H(this,dFa())};
a4a=function(a,b){a=g.Wc(a.u,b.id,null);null==a&&g.sA(Error("Component not found for element id: "+b.id));return a||null};
b4a=function(a){g.LQ.call(this,a);var b=this;this.u=this.ib=null;this.created=!1;this.Bt=new pM(this.player);this.B=function(){function d(){return b.ib}
if(null!=b.u)return b.u;var e=mEa({Vq:a.getVideoData(1)});e=new oYa({h_:d,Et:e.x0(),E_:d,s2:d,wl:i2(b.j).wl,Al:e.oK(),Lm:i2(b.j).Lm,G:b.player,Ii:i2(b.j).Ii,Ra:b.j.j.Ra,Aj:i2(b.j).Aj,ud:b.j.j.ud});b.u=e.vZ;return b.u};
this.j=new s3a(this.player,this,this.Bt,this.B);g.H(this,this.j);var c=a.V();!HH(c)||g.BH(c)||JH(c)||(g.H(this,new s2(a,function(){return b.ib},i2(this.j).jb,i2(this.j).Ii)),g.H(this,new t3a(a)))};
c4a=function(a){a.created!==a.loaded&&kB("Created and loaded are out of sync")};
d4a=function(a,b){b===a.Mw&&(a.Mw=void 0)};
e4a=function(a){a.ib?i2(a.j).Sc.HK()||a.ib.HK()||i2(a.j).Hs.Yt():kB("AdService is null when calling maybeUnlockPrerollIfReady")};
f4a=function(a){a=g.t(i2(a.j).Aj.Ek.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.bb)return!0;return!1};
g4a=function(a){a=g.t(i2(a.j).Aj.Ek.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
dB=function(a,b,c,d){c=void 0===c?"":c;d=void 0===d?"":d;var e=i2(a.j).Ii,f=a.player.getVideoData(1),h=f&&f.getPlayerResponse()||{};h=h&&h.playerConfig&&h.playerConfig.daiConfig&&h.playerConfig.daiConfig.enableDai||!1;f=f&&f.Pd()||!1;e=h4a(b,e,h,f,i2(a.j).wm);vra(i2(a.j).Uc,c,e.WF,b,d);a.ib&&0<e.Yz.length&&(a=a.ib,b=e.Yz,b=tEa(a,b),b=uEa(a,b),vEa(a,b))};
h4a=function(a,b,c,d,e){var f={Yz:[],WF:[]};a=g.t(a);for(var h=a.next();!h.done;h=a.next())if((h=h.value)&&null!=h.renderer){var l=h.renderer;if(!B0a(b)){var m=void 0,n=void 0,p=void 0,q=void 0,r=e;g.P(null==(q=l.sandwichedLinearAdRenderer)?void 0:q.adVideoStart,vM)?(m=g.P(null==(p=l.sandwichedLinearAdRenderer)?void 0:p.adVideoStart,vM),r=lYa(m,r),g.pL(l.sandwichedLinearAdRenderer.adVideoStart,vM,r)):g.P(null==(n=l.linearAdSequenceRenderer)?void 0:n.adStart,vM)&&(p=g.P(null==(m=l.linearAdSequenceRenderer)?
void 0:m.adStart,vM),r=lYa(p,r),g.pL(l.linearAdSequenceRenderer.adStart,vM,r))}r=b;m=d;c||null!=l.instreamSurveyAdRenderer||null!=l.sandwichedLinearAdRenderer&&null!=l.sandwichedLinearAdRenderer.linearAd&&null!=g.P(l.sandwichedLinearAdRenderer.linearAd,h0)||null!=l.videoAdTrackingRenderer||null!=l.clientForecastingAdRenderer||null!=l.actionCompanionAdRenderer||null!=l.imageCompanionAdRenderer||null!=l.shoppingCompanionCarouselRenderer||null!=l.adsEngagementPanelRenderer||null!=l.invideoOverlayAdRenderer||
null!=l.adBreakServiceRenderer?l=!0:null!=l.instreamVideoAdRenderer||null!=l.remoteSlotsRenderer?(l=m)||(g.UH(r.G.V())||HH(r.G.V())||g.IH(r.G.V())?l=!0:(kB("Single VOD on legacy path."),l=!1)):l=l.linearAdSequenceRenderer&&l.linearAdSequenceRenderer.linearAds?l.linearAdSequenceRenderer.adStart?B0a(r):m||SYa(r):null!=l.sandwichedLinearAdRenderer?$_a(r):!1;l?f.WF.push(h):f.Yz.push(h)}return f};
i4a=function(){if(!g.Je)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.k4a=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=g.Wd(a);return b.parseFromString(g.Vd(a),"application/xml")}if(j4a){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.t2=function(a){g.E.call(this);this.callback=a;this.j=new Ho(0,0,.4,0,.2,1,1,1);this.delay=new g.Xn(this.next,window,this);g.H(this,this.delay)};
g.l4a=function(a){var b=a.V();if(!b.xd||b.j||!g.tH(b))return!1;a=g.QP(a);return a.Me()?(a=a.dk(),315<=Math.min(a.width,a.height)):a.hk()?!1:!a.Sg()};
g.u2=function(a,b){g.W.call(this,{F:"div",K:"ytp-more-videos-view",X:{tabIndex:"-1"}});var c=this;this.api=a;this.C=b;this.u=!0;this.B=new g.vF(this);this.D=[];this.suggestionData=[];this.containerWidth=this.T=this.tileWidth=this.j=0;this.title=new g.W({F:"h2",K:"ytp-related-title",qa:"{{title}}"});this.previous=new g.W({F:"button",Ga:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},W:[g.XM()]});this.J=new g.t2(function(d){c.suggestions.element.scrollLeft=-d});
this.next=new g.W({F:"button",Ga:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},W:[g.YM()]});g.H(this,this.B);this.I=a.V().u;g.H(this,this.title);this.title.Ca(this.element);this.suggestions=new g.W({F:"div",K:"ytp-suggestions"});g.H(this,this.suggestions);this.suggestions.Ca(this.element);g.H(this,this.previous);this.previous.Ca(this.element);this.previous.Qa("click",this.rX,this);g.H(this,this.J);m4a(this);g.H(this,this.next);this.next.Ca(this.element);this.next.Qa("click",
this.qX,this);this.B.S(this.api,"appresize",this.Bb);this.B.S(this.api,"fullscreentoggled",this.eq);this.B.S(this.api,"videodatachange",this.onVideoDataChange);this.Bb(this.api.fb().getPlayerSize());this.onVideoDataChange()};
m4a=function(a){for(var b={Nv:0};16>b.Nv;b={Nv:b.Nv},++b.Nv){var c=new g.W({F:"a",K:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.V().T,"aria-label":"{{aria_label}}"},W:[{F:"div",K:"ytp-suggestion-image"},{F:"div",K:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{F:"div",K:"ytp-suggestion-title",qa:"{{title}}"},{F:"div",K:"ytp-suggestion-author",qa:"{{author_and_views}}"},{F:"div",X:{"data-is-live":"{{is_live}}"},K:"ytp-suggestion-duration",
qa:"{{duration}}"}]}]});g.H(a,c);var d=c.Ea("ytp-suggestion-link");g.Al(d,"transitionDelay",b.Nv/20+"s");a.B.S(d,"click",function(e){return function(f){if(a.u){var h=a.suggestionData[e.Nv],l=h.sessionData;g.lR(f,a.api,a.I,l||void 0)&&a.api.Wm(h.videoId,l,h.playlistId)}else g.Xy(f),document.activeElement.blur()}}(b));
c.Ca(a.suggestions.element);a.D.push(c)}};
g.v2=function(a){var b=a.C.ag()?32:16;b=a.T/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.j;var c=a.containerWidth-a.suggestionData.length*(a.tileWidth+8);g.lo(a.element,"ytp-scroll-min",0<=b);g.lo(a.element,"ytp-scroll-max",b<=c)};
o4a=function(a){for(var b=a.suggestionData.length,c=0;c<b;++c){var d=void 0,e=void 0,f=void 0,h=a;d=h.suggestionData[c];var l=h.D[c];f=h.isShortsModeEnabled()?d.shortViewCount||"":d.shortViewCount?d.author+" \u2022 "+d.shortViewCount:d.author;l.element.style.display="";n4a.test(d.title)&&(l.Ea("ytp-suggestion-title").dir="rtl");n4a.test(f)&&(l.Ea("ytp-suggestion-author").dir="rtl");e=d.isLivePlayback?"Live":d.lengthSeconds?g.UN(d.lengthSeconds):"";var m=h.C.Me(),n=d.Wn(m);if(g.tH(h.api.V())){var p=
{},q=h.api.V();q.Ka&&g.jP(p,q.loaderUrl);g.NP(h.api,"addEmbedsConversionTrackingParams",[p]);n=g.ci(n,g.iP(p,"emb_rel_pause"))}l.update({author_and_views:f,duration:e,link:n,title:d.title,aria_label:d.ariaLabel||d.title,is_live:d.isLivePlayback,aria_hidden:!(!d.ariaLabel||h.api.V().N("embeds_rv_aria_hidden_killswitch")),blink_rendering_hack:g.yF||g.rH?"will-change: opacity":void 0});e=l.Ea("ytp-suggestion-image");d=m?d.Xf("hq2.jpg"):d.Xf();e.style.backgroundImage=d?"url("+d+")":""}g.v2(a)};
g.w2=function(a,b){g.W.call(this,{F:"button",Ga:["ytp-miniplayer-expand-watch-page-button","ytp-button","ytp-miniplayer-button-top-left"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button","aria-keyshortcuts":"i","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[{F:"svg",X:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},W:[{F:"g",X:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},W:[{F:"g",X:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},
W:[{F:"path",X:{d:"M19,19 L5,19 L5,5 L12,5 L12,3 L5,3 C3.89,3 3,3.9 3,5 L3,19 C3,20.1 3.89,21 5,21 L19,21 C20.1,21 21,20.1 21,19 L21,12 L19,12 L19,19 Z M14,3 L14,5 L17.59,5 L7.76,14.83 L9.17,16.24 L19,6.41 L19,10 L21,10 L21,3 L14,3 Z",fill:"#fff","fill-rule":"nonzero"}}]}]}]}]});this.G=a;this.Qa("click",this.onClick,this);this.updateValue("title",pR(a,"Expand","i"));this.update({"data-title-no-tooltip":"Expand"});g.cb(this,g.JR(b.Bc(),this.element))};
aaa=[];fa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
g.da=caa(this);ia("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,h){this.j=f;fa(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
ia("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=g.da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var p4a="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ka(d,e)&&(a[e]=d[e])}return a};
ia("Object.assign",function(a){return a||p4a});
var gaa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},q4a=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=gaa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),r4a;
if("function"==typeof Object.setPrototypeOf)r4a=Object.setPrototypeOf;else{var s4a;a:{var t4a={a:!0},u4a={};try{u4a.__proto__=t4a;s4a=u4a.a;break a}catch(a){}s4a=!1}r4a=s4a?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var la=r4a;
ma.prototype.T=function(a){this.u=a};
ma.prototype.return=function(a){this.B={return:a};this.j=this.D};
ma.prototype.Ia=function(a){this.j=a};
ia("Reflect",function(a){return a?a:{}});
ia("Reflect.construct",function(){return q4a});
ia("Reflect.setPrototypeOf",function(a){return a?a:la?function(b,c){try{return la(b,c),!0}catch(d){return!1}}:null});
ia("Promise",function(a){function b(h){this.j=0;this.B=void 0;this.u=[];this.J=!1;var l=this.C();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.j=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.u=function(h){if(null==this.j){this.j=[];var l=this;this.B(function(){l.D()})}this.j.push(h)};
var e=g.da.setTimeout;c.prototype.B=function(h){e(h,0)};
c.prototype.D=function(){for(;this.j&&this.j.length;){var h=this.j;this.j=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.C(n)}}}this.j=null};
c.prototype.C=function(h){this.B(function(){throw h;})};
b.prototype.C=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.ya),reject:h(this.D)}};
b.prototype.ya=function(h){if(h===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ba(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.oa(h):this.I(h)}};
b.prototype.oa=function(h){var l=void 0;try{l=h.then}catch(m){this.D(m);return}"function"==typeof l?this.Ka(l,h):this.I(h)};
b.prototype.D=function(h){this.T(2,h)};
b.prototype.I=function(h){this.T(1,h)};
b.prototype.T=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.B=l;2===this.j&&this.Aa();this.Z()};
b.prototype.Aa=function(){var h=this;e(function(){if(h.ea()){var l=g.da.console;"undefined"!==typeof l&&l.error(h.B)}},1)};
b.prototype.ea=function(){if(this.J)return!1;var h=g.da.CustomEvent,l=g.da.Event,m=g.da.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=g.da.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.B;return m(h)};
b.prototype.Z=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.u(this.u[h]);this.u=null}};
var f=new c;b.prototype.Ba=function(h){var l=this.C();h.MD(l.resolve,l.reject)};
b.prototype.Ka=function(h,l){var m=this.C();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(r,w){return"function"==typeof r?function(x){try{n(r(x))}catch(z){p(z)}}:w}
var n,p,q=new b(function(r,w){n=r;p=w});
this.MD(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.MD=function(h,l){function m(){switch(n.j){case 1:h(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.u?f.u(m):this.u.push(m);this.J=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.t(h),p=n.next();!p.done;p=n.next())d(p.value).MD(l,m)})};
b.all=function(h){var l=g.t(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(x){return function(z){r[x]=z;w--;0==w&&n(r)}}
var r=[],w=0;do r.push(void 0),w++,d(m.value).MD(q(r.length-1),p),m=l.next();while(!m.done)})};
return b});
ia("Object.setPrototypeOf",function(a){return a||la});
ia("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.t(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!ka(m,h)){var n=new c;fa(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!ka(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&ka(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&ka(m,h)&&ka(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&ka(m,h)&&ka(m[h],this.j)?delete m[h][this.j]:!1};
return b});
ia("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.j;return daa(function(){if(n){for(;n.head!=l.j;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&ka(l.data_,n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this.data_={};this.j=b();this.size=0;if(l){l=g.t(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.t([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.data_[n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this.j,previous:this.j.previous,head:this.j,key:l,value:m},n.list.push(n.entry),this.j.previous.next=n.entry,this.j.previous=n.entry,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.data_={};this.j=this.j.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).entry};
e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
ia("Array.prototype.keys",function(a){return a?a:function(){return za(this,function(b){return b})}});
ia("Array.prototype.find",function(a){return a?a:function(b,c){return naa(this,b,c).BW}});
ia("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Aa(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
ia("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Aa(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
ia("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ia("String.prototype.repeat",function(a){return a?a:function(b){var c=Aa(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ia("Set",function(a){function b(c){this.j=new Map;if(c){c=g.t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this};
b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c};
b.prototype.clear=function(){this.j.clear();this.size=0};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.entries=function(){return this.j.entries()};
b.prototype.values=function(){return this.j.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ia("Array.prototype.values",function(a){return a?a:function(){return za(this,function(b,c){return c})}});
ia("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
ia("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ia("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ia("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ia("Array.prototype.entries",function(a){return a?a:function(){return za(this,function(b,c){return[b,c]})}});
ia("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
ia("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
ia("Int8Array.prototype.fill",Ba);ia("Uint8Array.prototype.fill",Ba);ia("Uint8ClampedArray.prototype.fill",Ba);ia("Int16Array.prototype.fill",Ba);ia("Uint16Array.prototype.fill",Ba);ia("Int32Array.prototype.fill",Ba);ia("Uint32Array.prototype.fill",Ba);ia("Float32Array.prototype.fill",Ba);ia("Float64Array.prototype.fill",Ba);ia("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ka(b,d)&&c.push([d,b[d]]);return c}});
ia("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ia("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
ia("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Aa(this,b,"includes").indexOf(b,c||0)}});
ia("globalThis",function(a){return a||g.da});
ia("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
})})}});
ia("Array.prototype.findIndex",function(a){return a?a:function(b,c){return naa(this,b,c).i}});
ia("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ka(b,d)&&c.push(b[d]);return c}});
ia("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}});
ia("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ia("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Aa(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
ia("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
ia("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.j.set(c,!0);return this};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.delete=function(c){return this.j.delete(c)};
return b});
ia("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
ia("Int8Array.prototype.copyWithin",Ca);ia("Uint8Array.prototype.copyWithin",Ca);ia("Uint8ClampedArray.prototype.copyWithin",Ca);ia("Int16Array.prototype.copyWithin",Ca);ia("Uint16Array.prototype.copyWithin",Ca);ia("Int32Array.prototype.copyWithin",Ca);ia("Uint32Array.prototype.copyWithin",Ca);ia("Float32Array.prototype.copyWithin",Ca);ia("Float64Array.prototype.copyWithin",Ca);ia("Number.parseInt",function(a){return a||parseInt});
ii=ii||{};g.D=this||self;Ma="closure_uid_"+(1E9*Math.random()>>>0);oaa=0;g.k=Wa.prototype;g.k.k_=function(a){var b=g.ya.apply(1,arguments),c=this.bK(b);c?c.push(new raa(a)):this.uV(a,b)};
g.k.uV=function(a){this.Tw.set(this.UR(g.ya.apply(1,arguments)),[new raa(a)])};
g.k.bK=function(){var a=this.UR(g.ya.apply(0,arguments));return this.Tw.has(a)?this.Tw.get(a):void 0};
g.k.A0=function(){var a=this.bK(g.ya.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.Tw.clear()};
g.k.UR=function(){var a=g.ya.apply(0,arguments);return a?a.join(","):"key"};g.v(Xa,Wa);Xa.prototype.B=function(a){var b=g.ya.apply(1,arguments),c=0,d=this.A0(b);d&&(c=d.VQ);this.uV(c+a,b)};g.v(Ya,Wa);Ya.prototype.Nh=function(a){this.k_(a,g.ya.apply(1,arguments))};g.Sa(Za,Error);Za.prototype.name="CustomError";var cca;g.Sa($a,Za);$a.prototype.name="AssertionError";g.E.prototype.aq=!1;g.E.prototype.isDisposed=function(){return this.aq};
g.E.prototype.dispose=function(){this.aq||(this.aq=!0,this.ra())};
g.E.prototype.ra=function(){if(this.Ul)for(;this.Ul.length;)this.Ul.shift()()};g.eb.prototype.stopPropagation=function(){this.u=!0};
g.eb.prototype.preventDefault=function(){this.defaultPrevented=!0};var uaa,Ok,Pl;uaa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.v4a=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.Fb=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.vm=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Lg=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
Ok=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Fb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Pl=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
g.Nk=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};var Hb={};var kba=function(){if(!g.D.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.D.addEventListener("test",function(){},b),g.D.removeEventListener("test",function(){},b)}catch(c){}return a}();var Xb=!!g.Fa("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Tb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Iaa=/&/g,Jaa=/</g,Kaa=/>/g,Laa=/"/g,Maa=/'/g,Naa=/\x00/g,Haa=/[\x00&<>"']/;var ac,w4a=g.D.navigator;ac=w4a?w4a.userAgentData||null:null;yc[" "]=function(){};var Bl,oW,WXa,x4a,y4a,z4a,pH,qH,A4a;g.rH=jc();g.Je=kc();g.Jx=hc("Edge");g.WH=g.Jx||g.Je;Bl=hc("Gecko")&&!(Pb(g.Wb(),"WebKit")&&!hc("Edge"))&&!(hc("Trident")||hc("MSIE"))&&!hc("Edge");g.Fc=Pb(g.Wb(),"WebKit")&&!hc("Edge");oW=wc();WXa=Taa();g.lw=Saa();x4a=uc();y4a=hc("iPad");z4a=hc("iPod");pH=vc();qH=Pb(g.Wb(),"KaiOS");
a:{var B4a="",C4a=function(){var a=g.Wb();if(Bl)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Jx)return/Edge\/([\d\.]+)/.exec(a);if(g.Je)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Fc)return/WebKit\/(\S+)/.exec(a);if(g.rH)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
C4a&&(B4a=C4a?C4a[1]:"");if(g.Je){var D4a=Xaa();if(null!=D4a&&D4a>parseFloat(B4a)){A4a=String(D4a);break a}}A4a=B4a}var Ac=A4a,Vaa={},E4a;if(g.D.document&&g.Je){var F4a=Xaa();E4a=F4a?F4a:parseInt(Ac,10)||void 0}else E4a=void 0;var Yaa=E4a;var iLa=Zaa("AnimationEnd"),pQ=Zaa("TransitionEnd");g.Sa(Gc,g.eb);var G4a={2:"touch",3:"pen",4:"mouse"};
Gc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?Bl&&(zc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:G4a[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&Gc.vf.preventDefault.call(this)};
Gc.prototype.stopPropagation=function(){Gc.vf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Gc.prototype.preventDefault=function(){Gc.vf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var $aa="closure_listenable_"+(1E6*Math.random()|0);var aba=0;var gba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");ad.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=cd(a,b,d,e);-1<h?(b=a[h],c||(b.LD=!1)):(b=new bba(b,this.src,f,!!d,e),b.LD=c,a.push(b));return b};
ad.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=cd(e,b,c,d);return-1<b?(Ic(e[b]),g.pb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
ad.prototype.yg=function(){var a=0,b;for(b in this.listeners){for(var c=this.listeners[b],d=0;d<c.length;d++)++a,Ic(c[d]);delete this.listeners[b];this.j--}};
ad.prototype.KA=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=cd(a,b,c,d));return-1<e?a[e]:null};var kd="closure_lm_"+(1E6*Math.random()|0),md={},mba=0,nd="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Sa(g.rd,g.E);g.rd.prototype[$aa]=!0;g.k=g.rd.prototype;g.k.addEventListener=function(a,b,c,d){g.gd(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){oba(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.Ma;if(b){var c=[];for(var d=1;b;b=b.Ma)c.push(b),++d}b=this.Fb;d=a.type||a;if("string"===typeof a)a=new g.eb(a,b);else if(a instanceof g.eb)a.target=a.target||b;else{var e=a;a=new g.eb(d,b);g.$c(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=sd(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=sd(h,d,!0,a)&&e,a.u||(e=sd(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=sd(h,d,!1,a)&&e;return e};
g.k.ra=function(){g.rd.vf.ra.call(this);this.B&&this.B.yg();this.Ma=null};
g.k.Qa=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.k.qF=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.k.Dc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.k.KA=function(a,b,c,d){return this.B.KA(String(a),b,c,d)};td.prototype.get=function(){if(0<this.u){this.u--;var a=this.j;this.j=a.next;a.next=null}else a=this.B();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var jca=g.Je||g.Fc;var H4a={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var yd;Cd.prototype.po=!0;Cd.prototype.jl=function(){return this.j};
var tba={},sba={};g.Ed("");var uba={};Fd.prototype.toString=function(){return this.j.toString()};
Fd.prototype.jl=function(){return this.j.toString()};Gd.prototype.toString=function(){return this.j+""};
Gd.prototype.po=!0;Gd.prototype.jl=function(){return this.j.toString()};
var Aba=/%{(\w+)}/g,zba=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),xba={};Kd.prototype.toString=function(){return this.j.toString()};
Kd.prototype.po=!0;Kd.prototype.jl=function(){return this.j.toString()};
var Fba=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Eba=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Cba={},Gba=Nd("about:invalid#zClosurez");var Pd={};Qd.prototype.jl=function(){return this.j};
Qd.prototype.toString=function(){return this.j.toString()};
var Sd=new Qd("",Pd),Mba=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Lba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Kba=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),Nba=/\/\*/;var Td={};Ud.prototype.jl=function(){return this.j.toString()};
Ud.prototype.toString=function(){return this.j.toString()};
var I4a=/^[a-zA-Z0-9-]+$/,J4a={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},K4a={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Rba=new Ud(g.D.trustedTypes&&g.D.trustedTypes.emptyHTML||"",Td);var Vba=wd(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.Vd(Rba);return!b.parentElement}),Xba=/^[\w+/_-]+[=]{0,2}$/;g.k=g.he.prototype;g.k.clone=function(){return new g.he(this.x,this.y)};
g.k.equals=function(a){return a instanceof g.he&&ie(this,a)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.ke.prototype;g.k.clone=function(){return new g.ke(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!me(this)};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.L4a=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var dca={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.k=xe.prototype;g.k.ub=function(a){return Ae(this.j,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Ea=function(a){return g.Ee(a,this.j)};
g.k.createElement=function(a){return Me(this.j,a)};
g.k.appendChild=g.Qe;g.k.append=function(a,b){hca(ye(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.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.k.removeNode=g.Ue;g.k.contains=g.We;var bf;df.prototype.add=function(a,b){var c=qca.get();c.set(a,b);this.u?this.u.next=c:this.j=c;this.u=c};
df.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.u=null),a.next=null);return a};
var qca=new td(function(){return new ef},function(a){return a.reset()});
ef.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};
ef.prototype.reset=function(){this.next=this.scope=this.fn=null};var ff,gf=!1,oca=new df;rca.prototype.reset=function(){this.context=this.onRejected=this.u=this.j=null;this.B=!1};
var sca=new td(function(){return new rca},function(a){a.reset()});
g.lf.prototype.then=function(a,b,c){return Aca(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.lf.prototype.$goog_Thenable=!0;g.k=g.lf.prototype;g.k.Oj=function(a,b){return Aca(this,null,a,b)};
g.k.catch=g.lf.prototype.Oj;g.k.cancel=function(a){if(0==this.j){var b=new rf(a);g.hf(function(){wca(this,b)},this)}};
g.k.V6=function(a){this.j=0;jf(this,2,a)};
g.k.W6=function(a){this.j=0;jf(this,3,a)};
g.k.l0=function(){for(var a;a=xca(this);)yca(this,a,this.j,this.J);this.I=!1};
var Eca=mca;g.Sa(rf,Za);rf.prototype.name="cancel";g.Sa(g.sf,g.rd);g.k=g.sf.prototype;g.k.enabled=!1;g.k.Cc=null;g.k.setInterval=function(a){this.di=a;this.Cc&&this.enabled?(this.stop(),this.start()):this.Cc&&this.stop()};
g.k.I6=function(){if(this.enabled){var a=g.Ra()-this.eT;0<a&&a<.8*this.di?this.Cc=this.IC.setTimeout(this.NQ,this.di-a):(this.Cc&&(this.IC.clearTimeout(this.Cc),this.Cc=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Cc||(this.Cc=this.IC.setTimeout(this.NQ,this.di),this.eT=g.Ra())};
g.k.stop=function(){this.enabled=!1;this.Cc&&(this.IC.clearTimeout(this.Cc),this.Cc=null)};
g.k.ra=function(){g.sf.vf.ra.call(this);this.stop();delete this.IC};g.k=g.Af.prototype;g.k.sendIsolatedPayload=function(a){this.D=a;this.C=1};
g.k.UH=function(){var a=this.j.values();a=[].concat(g.u(a)).filter(function(b){return b.Tw.size});
a.length&&this.J.flush(a,this.D);Hca(a);this.B=0;this.u.enabled&&this.u.stop()};
g.k.In=function(a){var b=g.ya.apply(1,arguments);this.j.has(a)||this.j.set(a,new Xa(a,b))};
g.k.CD=function(a){var b=g.ya.apply(1,arguments);this.j.has(a)||this.j.set(a,new Ya(a,b))};
g.k.cn=function(a){this.TH.apply(this,[a,1].concat(g.u(g.ya.apply(1,arguments))))};
g.k.TH=function(a,b){var c=g.ya.apply(2,arguments),d=Gca(this,a);d&&d instanceof Xa&&(d.B(b,c),Fca(this))};
g.k.Nh=function(a,b){var c=g.ya.apply(2,arguments),d=Gca(this,a);d&&d instanceof Ya&&(d.Nh(b,c),Fca(this))};Ica.prototype.Nh=function(a,b,c,d,e){this.j.Nh("/client_streamz/po/w/rl",a,b,c,d,e)};
Jca.prototype.Nh=function(a,b,c){this.j.Nh("/client_streamz/po/w/el",a,b,c)};var cga={};var eh=void 0,dh,Jda="undefined"!==typeof TextDecoder,Oca,Nca="undefined"!==typeof TextEncoder;var AH,fK;g.vG=oc();AH=uc()||hc("iPod");fK=hc("iPad");g.sH=Paa();g.yF=pc();g.kx=qc()&&!vc();var Tca={},Gf=null,Uca=Bl||g.Fc||"function"==typeof g.D.btoa;var Xca="undefined"!==typeof Uint8Array,Yca,Jf={};var $ca;Kf.prototype.isEmpty=function(){return null==this.Ed};
Kf.prototype.sizeBytes=function(){var a=Mf(this);return a?a.length:0};var Of="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;var eg={},M4a,jg,N4a=[];Rf(N4a,23);jg=Object.freeze(N4a);var bg;g.k=g.M.prototype;g.k.toArray=function(){return this.toJSON()};
g.k.toJSON=function(){var a=this.Le;return M4a?a:fg(a,hda,jda)};
g.k.El=function(){M4a=!0;try{return JSON.stringify(this.toJSON(),wda)}finally{M4a=!1}};
g.k.clone=function(){var a=fg(this.Le,ida,Wf);Uf(a);bg=a;a=new this.constructor(a);bg=void 0;xda(a,this);return a};
g.k.isMutable=function(){return!g.Tf(this.Le)};
g.k.Pp=function(){return g.Tf(this.Le)};
g.k.AF=eg;g.k.toString=function(){return this.Le.toString()};var Fda,Cda;Fda="function"===typeof Uint8Array.prototype.slice;g.Rg=0;g.Sg=0;Cda="function"===typeof BigInt;g.k=g.Tg.prototype;g.k.init=function(a,b,c,d){d=void 0===d?{}:d;this.ED=void 0===d.ED?!1:d.ED;a&&(a=Qg(a),this.u=a.buffer,this.D=a.Pp,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)};
g.k.free=function(){this.clear();100>$g.length&&$g.push(this)};
g.k.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.ED=!1};
g.k.reset=function(){this.j=this.C};
g.k.advance=function(a){Ug(this,this.j+a)};
g.k.mD=aa(0);var $g=[];ah.prototype.free=function(){this.j.clear();this.u=this.C=-1;100>YW.length&&YW.push(this)};
ah.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1};
ah.prototype.advance=function(a){this.j.advance(a)};
var YW=[];var Mda;gh.prototype.length=function(){return this.j.length};
gh.prototype.end=function(){var a=this.j;this.j=[];return a};var oh,sh,rh,qh,O4a,P4a,R4a,z2,S4a,A2,T4a;oh=Symbol();sh=Symbol();rh=Symbol();qh=Symbol();O4a=g.wh(function(a,b,c){if(1!==a.u)return!1;a=g.Yg(a.j);cg(a);rg(b,c,a,0);return!0},g.xh);
P4a=g.wh(function(a,b,c){if(0!==a.u)return!1;a=g.Vg(a.j);rg(b,c,a,0);return!0},g.yh);
g.Q4a=g.wh(function(a,b,c){if(0!==a.u)return!1;g.I(b,c,g.Wg(a.j));return!0},g.zh);
R4a=g.wh(function(a,b,c){if(0!==a.u)return!1;a=g.Wg(a.j);rg(b,c,a,0);return!0},g.zh);
g.x2=g.wh(function(a,b,c){if(2!==a.u)return!1;g.I(b,c,g.fh(a));return!0},g.mea);
g.y2=g.wh(function(a,b,c,d,e){if(2!==a.u)return!1;g.ch(a,qda(b,c,d),e);return!0},function(a,b,c,d,e){b=yg(b,d,c);
if(null!=b)for(d=0;d<b.length;d++){var f=g.Rda(a,c);e(b[d],a);g.Sda(a,f)}});
z2=g.wh(function(a,b,c){if(2!==a.u)return!1;g.I(b,c,Kda(a));return!0},function(a,b,c){b=lg(b,c);
null!=b&&g.lh(a,c,Qg(b).buffer)});
S4a=g.wh(function(a,b,c){if(2!==a.u)return!1;a=Kda(a);g.tg(b,c,Zf(a,!1,!1));return!0},function(a,b,c){b=g.ng(b,c,oda);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&g.lh(a,c,Qg(e).buffer)}});
A2=g.wh(function(a,b,c){if(0!==a.u)return!1;g.I(b,c,g.Wg(a.j)>>>0);return!0},function(a,b,c){b=g.gg(b,c);
null!=b&&null!=b&&(g.kh(a,c,0),hh(a.j,b))});
T4a=g.wh(function(a,b,c){if(0!==a.u)return!1;g.I(b,c,g.Wg(a.j));return!0},function(a,b,c){b=g.gg(b,c);
null!=b&&(b=parseInt(b,10),g.kh(a,c,0),Pda(a.j,b))});g.v(pea,g.M);var oea=[1,2,3,4];var qea,rea;g.v(g.Ah,g.M);g.v(g.Bh,g.M);g.v(g.Ch,g.M);g.v(g.Dh,g.M);qea=[3,6,4];rea=[1];g.Fh=[1,2,3];g.Eh=[1,2,3];g.v(tea,g.M);var sea=[1];var Aea={};g.k=Gh.prototype;g.k.isEnabled=function(){if(!g.D.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{uF:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.X$a;d=c.g6||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.uF}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+
e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Tb(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{uF:0,path:b,domain:c});return d};
g.k.Ap=function(){return Hh(this).keys};
g.k.ll=function(){return Hh(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=Hh(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Yv=new Gh("undefined"==typeof document?null:document);g.v(Kh,g.M);var Dea=[2];g.Lh.prototype.u=0;g.Lh.prototype.reset=function(){this.j=this.B=this.C;this.u=0};
g.Lh.prototype.getValue=function(){return this.B};Eea.prototype.El=function(a){var b=[];Ph(this,a,b);return b.join("")};
var Hea={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Gea=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Qh.prototype.B=null;Qh.prototype.getOptions=function(){return this.B||(this.B=this.C())};var U4a;g.Sa(Sh,Qh);Sh.prototype.j=function(){var a=Jea(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Sh.prototype.C=function(){var a={};Jea(this)&&(a[0]=!0,a[1]=!0);return a};
U4a=new Sh;var Vh=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Pea=/#|$/,Qea=/[?&]($|#)/;g.Sa(g.gi,g.rd);var Zea=/^https?$/i,V4a=["POST","PUT"],Sea=[];g.k=g.gi.prototype;g.k.D_=function(){this.dispose();g.qb(Sea,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.oa+"; newUri="+a);b=b?b.toUpperCase():"GET";this.oa=a;this.D="";this.u=0;this.Ba=!1;this.C=!0;this.j=this.Z?this.Z.j():U4a.j();this.Aa=this.Z?this.Z.getOptions():U4a.getOptions();this.j.onreadystatechange=(0,g.Oa)(this.rU,this);try{this.getStatus(),this.Ka=!0,this.j.open(b,String(a),!0),this.Ka=!1}catch(h){this.getStatus();Wea(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.t(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
e=g.D.FormData&&a instanceof g.D.FormData;!g.nb(V4a,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.t(c);for(d=b.next();!d.done;d=b.next())c=g.t(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.Pa&&(this.j.responseType=this.Pa);"withCredentials"in this.j&&this.j.withCredentials!==this.J&&(this.j.withCredentials=this.J);try{Yea(this),0<this.T&&(this.Va=Uea(this.j),this.getStatus(),this.Va?(this.j.timeout=this.T,this.j.ontimeout=(0,g.Oa)(this.yP,
this)):this.ya=g.tf(this.yP,this.T,this)),this.getStatus(),this.ea=!0,this.j.send(a),this.ea=!1}catch(h){this.getStatus(),Wea(this,h)}};
g.k.yP=function(){"undefined"!=typeof ii&&this.j&&(this.D="Timed out after "+this.T+"ms, aborting",this.u=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.I=!0,this.j.abort(),this.I=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),hi(this))};
g.k.ra=function(){this.j&&(this.C&&(this.C=!1,this.I=!0,this.j.abort(),this.I=!1),hi(this,!0));g.gi.vf.ra.call(this)};
g.k.rU=function(){this.isDisposed()||(this.Ka||this.ea||this.I?Xea(this):this.s4())};
g.k.s4=function(){Xea(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.ji(this)};
g.k.getStatus=function(){try{return 2<g.ji(this)?this.j.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.D?this.D:String(this.D)};g.v(ui,g.M);g.v(vi,g.M);var afa=[1];var qfa=["platform","platformVersion","architecture","model","uaFullVersion"];new vi;g.v(wi,g.M);g.v(cfa,g.M);var bfa=[1,2,3,4,5];g.v(xi,g.M);xi.prototype.N=function(){return ig(this,cfa,7)};
xi.prototype.bR=function(){return g.I(this,16,void 0,!1)};
var dfa=[3,20,27];g.v(ffa,g.M);var efa=[3,5];g.v(hfa,g.M);var gfa=[5];g.v(ifa,g.M);var W4a;W4a=new function(a,b,c){this.j=a;this.fieldName=b;this.Ut=c;this.isRepeated=0;this.u=nea}(175237375,{z$a:0},ifa);g.v(zi,g.rd);g.k=zi.prototype;g.k.ra=function(){this.TJ();g.rd.prototype.ra.call(this)};
g.k.dispatch=function(a){if(a instanceof xi)this.log(a);else{var b=new xi;a=a.El();b=g.I(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.Rb++;g.I(a,21,b);this.ea&&g.I(a,26,this.ea);if(!g.gg(a,1)){b=a;var c=Date.now().toString();g.I(b,1,c)}null==g.gg(a,15)&&g.I(a,15,60*(new Date).getTimezoneOffset());this.C&&(b=this.C.clone(),J(a,Kh,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.J;this.u.push(a);this.dispatchEvent(new pfa(a));this.Aa||this.j.enabled||this.j.start()};
g.k.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.Ba)ofa(this);else{var d=Date.now();if(this.kb>d&&this.Ka<d)b&&b("throttled");else{var e=this.I.Re(this.u,this.J);d={};var f=this.Xa();f&&(d.Authorization=f);var h=lfa(this);this.Z&&(d["X-Goog-AuthUser"]=this.Z,h=di(h,"authuser",this.Z));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=di(h,"pageId",this.pageId));if(f&&this.gb===f)b&&b("stale-auth-token");else{this.u=[];this.j.enabled&&this.j.stop();this.J=0;var l=e.El(),m;this.T&&
this.T.isSupported(l.length)&&(m=this.T.compress(l));var n={url:h,body:l,w_:1,wv:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(w){c.D.reset();c.j.setInterval(c.D.getValue());if(w){var x=null;try{var z=JSON.parse(w.replace(")]}'\n",""));x=new hfa(z)}catch(B){}x&&(w=Number(Ig(g.gg(x,1),"-1")),0<w&&(c.Ka=Date.now(),c.kb=c.Ka+w),x=W4a.u(x))&&(x=Fg(x,1,-1),-1!=x&&(c.Wa||mfa(c,x)))}a&&a()},q=function(w,x){var z=yg(e,xi,3);
g.Nh(c.D);c.j.setInterval(c.D.getValue());401===w&&f&&(c.gb=f);void 0===x&&(x=500<=w&&600>w||401===w||0===w);x&&(c.u=z.concat(c.u),c.Aa||c.j.enabled||c.j.start());b&&b("net-send-failed",w)},r=function(){c.Va?c.Va.send(n,p,q):c.tb(n,p,q)};
m?m.then(function(w){n.wv["Content-Encoding"]="gzip";n.wv["Content-Type"]="application/binary";n.body=w;n.w_=2;r()},function(){r()}):r()}}}};
g.k.TJ=function(){this.flush()};
g.v(pfa,g.eb);jfa.prototype.Re=function(a,b){b=void 0===b?0:b;var c=this.j.clone();var d=Date.now().toString();c=g.I(c,4,d);a=Cg(c,xi,3,a);b&&g.I(a,14,b);return a};Bi.prototype.Re=function(){var a=new zi(this.J,this.ya?this.ya:Jh,"0",this.T,this.C,this.D,!1,this.Ka,void 0,void 0,this.Z?this.Z:void 0);this.ea&&yi(a.I,this.ea);if(this.u){var b=this.u,c=Ai(a.I);g.I(c,7,b)}this.I&&(a.T=this.I);this.j&&(a.ea=this.j);this.B&&((b=this.B)?(a.C||(a.C=new Kh),b=b.El(),g.I(a.C,4,b)):a.C&&g.I(a.C,4,void 0,!1));this.Aa&&(b=this.Aa,a.C||(a.C=new Kh),mg(a.C,2,b));this.oa&&(b=this.oa,a.Wa=!0,mfa(a,b));this.Ba&&rfa(a.I,this.Ba);return a};Ci.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new tea,c=[],d=0;d<a.length;d++){var e=a[d],f=g.uea(e);c.push(f);e.clear()}Cg(b,g.Ah,1,c);this.j.dispatch(b);this.j.flush()}};g.v(Di,Error);Di.prototype.toString=function(){var a="RpcError("+(ufa(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};
Di.prototype.name="RpcError";Fi.prototype.done=function(){this.logger.lT(this.j,Ei()-this.startMillis)};
Gi.prototype.tB=function(){};
Gi.prototype.lT=function(){};
Gi.prototype.sL=function(a,b,c){return c};
Gi.prototype.kT=function(){};
Hi.prototype.tB=function(a){this.clientError.j.cn("/client_streamz/po/w/cec",a,this.Wg)};
Hi.prototype.lT=function(a,b){this.u.Nh(b,a,this.Wg)};
Hi.prototype.sL=function(a,b,c){function d(h){var l=Ei()-f;e.B.Nh(l,a,b,h,e.Wg)}
var e=this,f=Ei();c.then(function(){d(0)},function(h){h instanceof Di?d(h.code):d(-1)});
return c};
Hi.prototype.kT=function(a){this.j.j.cn("/client_streamz/po/w/csc",a,this.Wg)};wfa.prototype.Nh=function(a,b){this.j.Nh("/client_streamz/bg/fil",a,b)};
yfa.prototype.Nh=function(a,b){this.j.Nh("/client_streamz/bg/fsl",a,b)};var Afa={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0<a;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.v(Cfa,g.M);g.v(Dfa,g.M);g.v(Li,g.M);Li.j="bfkj";Ni.prototype.snapshot=function(a){var b=this;if(this.j)throw Error("Already disposed");var c=Ki(),d;null!=(d=this.kp)&&d.B.j.cn("/client_streamz/bg/fsc",d.Wg);return this.u.then(function(e){var f=e.t_;return new Promise(function(h){f(function(l){var m;null!=(m=b.kp)&&m.C.Nh(Ki()-c,m.Wg);h(l)},[a.bx,
a.r6])})})};
Ni.prototype.EV=function(a){if(this.j)throw Error("Already disposed");var b=Ki(),c;null!=(c=this.kp)&&c.B.j.cn("/client_streamz/bg/fsc",c.Wg);a=this.B([a.bx,a.r6]);var d;null!=(d=this.kp)&&d.C.Nh(Ki()-b,d.Wg);return a};
Ni.prototype.dispose=function(){var a;null!=(a=this.kp)&&a.j.UH();this.j=!0;this.u.then(function(b){(b=b.q6)&&b()})};
Ni.prototype.isDisposed=function(){return this.j};var Qi={};g.v(Oi,Ffa);Oi.prototype.toString=function(){return this.j};var Lfa=new Pi(new Set("ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER".split(" ")),new Map([["A",
new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:2,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:2}]])],["IMG",new Map([["src",{policyAction:2}]])],["VIDEO",new Map([["src",{policyAction:2}]])],["AUDIO",new Map([["src",{policyAction:2}]])]]),
new Set("title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked color cols colspan controls datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" ")),
new Map([["dir",{policyAction:3,conditions:new Map([["dir",new Set(["auto","ltr","rtl"])]])}],["async",{policyAction:3,conditions:new Map([["async",new Set(["async"])]])}],["cite",{policyAction:2}],["loading",{policyAction:3,conditions:new Map([["loading",new Set(["eager","lazy"])]])}],["poster",{policyAction:2}],["target",{policyAction:3,conditions:new Map([["target",new Set(["_self","_blank"])]])}]]));var X4a;try{new URL("s://g"),X4a=!0}catch(a){X4a=!1}var Ifa=X4a;new Kfa;Mfa.prototype.Re=function(){if(this.u)throw Error("this sanitizer has already called build");this.u=!0;return new Kfa};var Nfa=[Si("data"),Si("http"),Si("https"),Si("mailto"),Si("ftp"),new Ri(function(a){return/^[^:]*([/?#]|$)/.test(a)})];var B2=new Mfa,Y4a=new Map(B2.j.C);Y4a.set("style",{policyAction:4});B2.j=new Pi(B2.j.j,B2.j.B,B2.j.u,Y4a);var Z4a=new Map(B2.j.C);Z4a.set("class",{policyAction:1});B2.j=new Pi(B2.j.j,B2.j.B,B2.j.u,Z4a);var $4a=new Map(B2.j.C);$4a.set("id",{policyAction:1});B2.j=new Pi(B2.j.j,B2.j.B,B2.j.u,$4a);B2.Re();g.v(Yi,g.M);g.v(bj,g.M);g.v(cj,g.M);Vfa.prototype.ping=function(a,b){var c=this,d,e;return g.A(function(f){d=c.j();e=b||new cj;var h=g.I(e,1,c.Wg);g.I(h,2,a);return g.y(f,c.client.ping(e,d),0)})};g.v(ej,g.M);fj.prototype.CE=function(){return this.B};
fj.prototype.getMetadata=function(){return this.u};gj.prototype.getMetadata=function(){return this.j};
gj.prototype.CE=function(){return this.u};
gj.prototype.getStatus=function(){return null};ij.prototype.getName=function(){return this.name};
ij.prototype.getName=ij.prototype.getName;var a5a=new ij("/google.internal.waa.v1.Waa/Create",Yi,ej,function(a){return a.El()},function(a){return Og(ej,a)});g.v(jj,g.M);var Xfa=new ij("/google.internal.waa.v1.Waa/GenerateIT",bj,jj,function(a){return a.El()},function(a){return Og(jj,a)});g.v(kj,g.M);var b5a=new ij("/google.internal.waa.v1.Waa/Ping",cj,kj,function(a){return a.El()},function(a){return Og(kj,a)});var yga=Promise;g.v(lj,g.M);lj.prototype.getValue=function(){if(Array.isArray(g.gg(this,2)))throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return og(this,2)};
lj.prototype.setValue=function(a){if(null==a)a=this;else if(Array.isArray(a))a=g.I(this,2,fg(a,ida,Wf));else if("string"===typeof a||a instanceof Kf||Hf(a))g.$f(this),a=Zf(a,!1,!0),null==a||a.isEmpty()?g.hg(this,2,void 0,!1):g.hg(this,2,a),a=this;else throw Error("invalid value in Any.value field: "+a+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");return a};g.v(mj,g.M);mj.prototype.getMessage=function(){return Jg(this,2)};
var $fa=[3];nj.prototype.on=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.I.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
nj.prototype.removeListener=function(a,b){"data"==a?rj(this.B,b):"metadata"==a?rj(this.D,b):"status"==a?rj(this.I,b):"end"==a?rj(this.C,b):"error"==a&&rj(this.u,b);return this};
nj.prototype.cancel=function(){this.j.abort()};
nj.prototype.cancel=nj.prototype.cancel;nj.prototype.removeListener=nj.prototype.removeListener;nj.prototype.on=nj.prototype.on;g.Sa(g.sj,Qh);g.sj.prototype.j=function(){var a=new tj(this.I,this.D);this.u&&a.setCredentialsMode(this.u);return a};
g.sj.prototype.C=ud({});g.sj.prototype.setCredentialsMode=function(a){this.u=a};
g.Sa(tj,g.rd);g.k=tj.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.oa=a;this.ea=b;this.readyState=1;uj(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.Z,method:this.oa,credentials:this.I,cache:void 0};a&&(b.body=a);(this.ya||g.D).fetch(new Request(this.ea,b)).then(this.Y0.bind(this),this.RE.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,vj(this));this.readyState=0};
g.k.Y0=function(a){if(this.j&&(this.D=a,this.u||(this.status=this.D.status,this.statusText=this.D.statusText,this.u=a.headers,this.readyState=2,uj(this)),this.j&&(this.readyState=3,uj(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.W0.bind(this),this.RE.bind(this));else if("undefined"!==typeof g.D.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.J){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.T=new TextDecoder;gga(this)}else a.text().then(this.X0.bind(this),this.RE.bind(this))};
g.k.O0=function(a){if(this.j){if(this.J&&a.value)this.response.push(a.value);else if(!this.J){var b=a.value?a.value:new Uint8Array(0);if(b=this.T.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?vj(this):uj(this);3==this.readyState&&gga(this)}};
g.k.X0=function(a){this.j&&(this.response=this.responseText=a,vj(this))};
g.k.W0=function(a){this.j&&(this.response=a,vj(this))};
g.k.RE=function(){this.j&&vj(this)};
g.k.setRequestHeader=function(a,b){this.Z.append(a,b)};
g.k.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
g.k.setCredentialsMode=function(a){this.I=a};
Object.defineProperty(tj.prototype,"withCredentials",{get:function(){return"include"===this.I},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.xj.prototype.toString=function(){var a=[],b=this.D;b&&a.push(Ej(b,c5a,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.T)&&a.push(Ej(b,c5a,!0),"@"),a.push(g.ne(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,null!=c&&a.push(":",String(c));if(c=this.B)this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(Ej(c,"/"==c.charAt(0)?d5a:e5a,!0));(c=this.u.toString())&&a.push("?",c);(c=this.I)&&a.push("#",Ej(c,f5a));return a.join("")};
g.xj.prototype.resolve=function(a){var b=this.clone(),c=!!a.D;c?g.yj(b,a.D):c=!!a.T;c?b.T=a.T:c=!!a.j;c?g.zj(b,a.j):c=null!=a.C;var d=a.B;if(c)g.Aj(b,a.C);else if(c=!!a.B){if("/"!=d.charAt(0))if(this.j&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");-1!=e&&(d=b.B.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.Ob(e,"./")||g.Ob(e,"/.")){d=Jb(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),
d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=""!==a.u.toString();c?Bj(b,a.u.clone()):c=!!a.I;c&&(b.I=a.I);return b};
g.xj.prototype.clone=function(){return new g.xj(this)};
var c5a=/[#\/\?@]/g,e5a=/[#\?:]/g,d5a=/[#\?]/g,kga=/[#\?@]/g,f5a=/#/g;g.k=Dj.prototype;g.k.add=function(a,b){Hj(this);this.B=null;a=Ij(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.k.remove=function(a){Hj(this);a=Ij(this,a);return this.j.has(a)?(this.B=null,this.u=this.u-this.j.get(a).length,this.j.delete(a)):!1};
g.k.clear=function(){this.j=this.B=null;this.u=0};
g.k.isEmpty=function(){Hj(this);return 0==this.u};
g.k.forEach=function(a,b){Hj(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.Ap=function(){Hj(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.k.ll=function(a){Hj(this);var b=[];if("string"===typeof a)mga(this,a)&&(b=b.concat(this.j.get(Ij(this,a))));else{a=Array.from(this.j.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.k.set=function(a,b){Hj(this);this.B=null;a=Ij(this,a);mga(this,a)&&(this.u=this.u-this.j.get(a).length);this.j.set(a,[b]);this.u=this.u+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.ll(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.B)return this.B;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.ne(d);d=this.ll(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.ne(d[f]));a.push(h)}}return this.B=a.join("&")};
g.k.clone=function(){var a=new Dj;a.B=this.B;this.j&&(a.j=new Map(this.j),a.u=this.u);return a};
g.k.extend=function(a){for(var b=0;b<arguments.length;b++)g.wj(arguments[b],function(c,d){this.add(d,c)},this)};g.Sa(g.Kj,g.E);var g5a=[];g.k=g.Kj.prototype;g.k.Qa=function(a,b,c,d){Array.isArray(b)||(b&&(g5a[0]=b.toString()),b=g5a);for(var e=0;e<b.length;e++){var f=g.gd(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.j[f.key]=f}return this};
g.k.qF=function(a,b,c,d){return pga(this,a,b,c,d)};
g.k.Dc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Dc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.La(d)?!!d.capture:!!d,e=e||this.u||this,c=hd(c),d=!!d,b=Hc(a)?a.KA(b,c,d,e):a?(a=id(a))?a.KA(b,c,d,e):null:null,b&&(ld(b),delete this.j[b.key])};
g.k.yg=function(){g.Jc(this.j,function(a,b){this.j.hasOwnProperty(b)&&ld(a)},this);
this.j={}};
g.k.ra=function(){g.Kj.vf.ra.call(this);this.yg()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};qga.prototype.isInputValid=function(){return this.B};Lj.prototype.isInputValid=function(){return 3!=this.j};
Lj.prototype.Ef=function(){return this.I};
Lj.prototype.AD=function(){return!0};
Lj.prototype.parse=function(a){function b(m){m&128&&Mj(f,h,l,"invalid tag");2!=(m&7)&&Mj(f,h,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&Mj(f,h,l,"unexpected tag");f.j=1;f.u=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&Mj(f,h,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.T=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.u):f.D=Array(f.u),0==f.u&&e())}
function d(m){f.D[f.T++]=m;f.T==f.u&&e()}
function e(){if(15>f.B){var m={};m[f.B]=f.D;f.J.push(m)}f.j=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.j){case 3:Mj(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.Z++;l++}a=f.J;f.J=[];return 0<a.length?a:null};Oj.prototype.isInputValid=function(){return null===this.j};
Oj.prototype.Ef=function(){return this.j};
Oj.prototype.AD=function(){return!1};
Oj.prototype.parse=function(a){null!==this.j&&sga(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||rga(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(0==d)var e=null;else{try{var f=Wca(c.j.slice(0,4*d))}catch(h){rga(c,c.j,h.message)}c.u+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(h){sga(this,a,h.message)}this.u+=a.length;return b};var h5a={INIT:0,Nz:1,qI:2,Bw:3,wz:4,vz:5,STRING:6,kI:7,YP:8,lQ:9,mQ:10,nQ:11,CO:12,DO:13,EO:14,FO:15,cQ:16,dQ:17,eQ:18,IZ:19,oI:20};g.k=Qj.prototype;g.k.isInputValid=function(){return 3!=this.D};
g.k.Ef=function(){return this.Z};
g.k.done=function(){return 2===this.D};
g.k.AD=function(){return!1};
g.k.parse=function(a){function b(){for(;r<a.length;)if(Pj(a[r]))r++,f.B++;else break;return r<n}
function c(){for(var x;;){x=a[r++];if(!x)break;f.B++;switch(f.j){case m.INIT:"{"===x?f.j=m.qI:"["===x?f.j=m.wz:Pj(x)||Rj(f,a,r);continue;case m.kI:case m.qI:if(Pj(x))continue;if(f.j===m.kI)h.push(m.YP);else if("}"===x){e("{}");f.j=d();continue}else h.push(m.Bw);'"'===x?f.j=m.STRING:Rj(f,a,r);continue;case m.YP:case m.Bw:if(Pj(x))continue;":"===x?(f.j===m.Bw&&(h.push(m.Bw),f.u++),f.j=m.Nz):"}"===x?(f.u--,e(),f.j=d()):","===x?(f.j===m.Bw&&h.push(m.Bw),f.j=m.kI):Rj(f,a,r);continue;case m.wz:case m.Nz:if(Pj(x))continue;
if(f.j===m.wz)if(f.u++,f.j=m.Nz,"]"===x){f.u--;if(0===f.u){f.j=m.vz;return}e("[]");f.j=d();continue}else h.push(m.vz);'"'===x?f.j=m.STRING:"{"===x?f.j=m.qI:"["===x?f.j=m.wz:"t"===x?f.j=m.lQ:"f"===x?f.j=m.CO:"n"===x?f.j=m.cQ:"-"!==x&&(-1!=="0123456789".indexOf(x)?f.j=m.oI:Rj(f,a,r));continue;case m.vz:if(","===x)h.push(m.vz),f.j=m.Nz,1===f.u&&(q=r);else if("]"===x){f.u--;if(0===f.u)return;e();f.j=d()}else if(Pj(x))continue;else Rj(f,a,r);continue;case m.STRING:var z=r;a:for(;;){for(;0<f.T;)if(x=a[r++],
4===f.T?f.T=0:f.T++,!x)break a;if('"'===x&&!f.J){f.j=d();break}if("\\"===x&&!f.J&&(f.J=!0,x=a[r++],!x))break;if(f.J)if(f.J=!1,"u"===x&&(f.T=1),x=a[r++])continue;else break;l.lastIndex=r;x=l.exec(a);if(!x){r=a.length+1;break}r=x.index+1;x=a[x.index];if(!x)break}f.B+=r-z;continue;case m.lQ:if(!x)continue;"r"===x?f.j=m.mQ:Rj(f,a,r);continue;case m.mQ:if(!x)continue;"u"===x?f.j=m.nQ:Rj(f,a,r);continue;case m.nQ:if(!x)continue;"e"===x?f.j=d():Rj(f,a,r);continue;case m.CO:if(!x)continue;"a"===x?f.j=m.DO:
Rj(f,a,r);continue;case m.DO:if(!x)continue;"l"===x?f.j=m.EO:Rj(f,a,r);continue;case m.EO:if(!x)continue;"s"===x?f.j=m.FO:Rj(f,a,r);continue;case m.FO:if(!x)continue;"e"===x?f.j=d():Rj(f,a,r);continue;case m.cQ:if(!x)continue;"u"===x?f.j=m.dQ:Rj(f,a,r);continue;case m.dQ:if(!x)continue;"l"===x?f.j=m.eQ:Rj(f,a,r);continue;case m.eQ:if(!x)continue;"l"===x?f.j=d():Rj(f,a,r);continue;case m.IZ:"."===x?f.j=m.oI:Rj(f,a,r);continue;case m.oI:if(-1!=="0123456789.eE+-".indexOf(x))continue;else r--,f.B--,f.j=
d();continue;default:Rj(f,a,r)}}}
function d(){var x=h.pop();return null!=x?x:m.Nz}
function e(x){1<f.u||(x||(x=-1===q?f.C+a.substring(p,r):a.substring(q,r)),f.ea?f.I.push(x):f.I.push(JSON.parse(x)),q=r)}
for(var f=this,h=f.oa,l=f.ya,m=h5a,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.D){case 3:return Rj(f,a,r),null;case 2:return b()&&Rj(f,a,r),null;case 0:if(b()){var w=a[r++];f.B++;if("["===w){f.D=1;p=r;f.j=m.wz;continue}else Rj(f,a,r)}return null;case 1:return c(),0===f.u&&f.j==m.vz?(f.D=2,f.C=a.substring(r)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.I.length?(w=f.I,f.I=[],w):null}return null};Sj.prototype.isInputValid=function(){return null===this.D};
Sj.prototype.Ef=function(){return this.D};
Sj.prototype.AD=function(){return!1};
Sj.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new Qj({m9a:!0,V_:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
function e(m){if(m){(f.I||1<m.length)&&b("extra status: "+m);f.I=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.u){a:{for(;h<a.length;){if(!Pj(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.u=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.u=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.u=3:"]"===a[h]?(f.u=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(h));d(l);f.B.done()?(f.u=3,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-
h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.u=4,c(),f.B.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.u=5,h++,f.j++);break;case 4:l=f.B.parse(a.substring(h));e(l);f.B.done()?(f.u=5,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.C.length?(a=f.C,f.C=[],a):null};Tj.prototype.vK=function(){return this.j};
Tj.prototype.getStatus=function(){return this.C};
Tj.prototype.ea=function(a){a=a.target;try{if(a==this.j)a:{var b=g.ji(this.j),c=this.j.u,d=this.j.getStatus(),e=g.ni(this.j);a=[];if(g.oi(this.j)instanceof Array){var f=g.oi(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.Z=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Uj(this,7):7==c?Uj(this,8):d||Uj(this,3)),this.u||(this.u=tga(this.j),null==this.u&&Uj(this,5)),2<this.C)Vj(this);else{if(a.length>this.B){var h=a.length;c=[];try{if(this.u.AD())for(var l=0;l<h;l++){var m=
this.u.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.I){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.I=new TextDecoder}for(l=0;l<h;l++)m+=this.I.decode(a[l],{stream:4==b&&l==h-1});c=this.u.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){Uj(this,5);Vj(this);break a}}else if(e.length>this.B){l=e.slice(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){Uj(this,5);Vj(this);break a}}4==b?(0!=e.length||
this.Z?Uj(this,2):Uj(this,4),Vj(this)):Uj(this,1)}}}catch(p){Uj(this,6),Vj(this)}};g.k=uga.prototype;g.k.on=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.on(a,b);return this};
g.k.removeListener=function(a,b){var c=this.u[a];c&&g.qb(c,b);(a=this.j[a])&&g.qb(a,b);return this};
g.k.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this};
g.k.q3=function(a){var b=this.u.data;b&&vga(a,b);(b=this.j.data)&&vga(a,b);this.j.data=[]};
g.k.Y4=function(){switch(this.B.getStatus()){case 1:Wj(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Wj(this,"error");break;case 8:Wj(this,"close");break;case 2:Wj(this,"end")}};wga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return xga(function(h){var l=h.CE(),m=h.getMetadata(),n=Aga(e,!1);m=Bga(e,m,n,f+l.getName());var p=Cga(n,l.u,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.C).call(this,Zfa(d,b,c))};bk.prototype.create=function(a,b){return dj(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},a5a)};
bk.prototype.ping=function(a,b){return dj(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},b5a)};g.v(ck,Error);g.v(dk,g.E);dk.prototype.C=function(a){var b=this.j(a);a=new Fi(this.logger,this.u);b=g.Df(b,2);a.done();return b};
g.v(gk,dk);gk.prototype.j=function(a){++this.J>=this.T&&this.I.resolve();var b=new Fi(this.logger,"C");a=this.D(a.bx);b.done();if(void 0===a)throw new ck(17,Error("YNJ:Undefined"));if(!(a instanceof Uint8Array))throw new ck(18,Error("ODM:Invalid"));return a};
g.v(hk,dk);hk.prototype.j=function(){return this.D};
g.v(ik,dk);ik.prototype.j=function(){return Ff(this.D)};
ik.prototype.C=function(){return this.D};
g.v(jk,dk);jk.prototype.j=function(){if(this.D){var a=this.D;this.D=void 0;return a}return this.J};
g.v(kk,dk);kk.prototype.j=function(a){var b;a=g.Cf(null!=(b=a.bx)?b:"");if(118<a.length)throw new ck(19,Error("DFO:Invalid"));var c=Date.now()/1E3|0;b=[255*Math.random()|0,255*Math.random()|0];a=b.concat([this.D&255,this.clientState],[c>>24&255,c>>16&255,c>>8&255,c&255],a);for(c=b=b.length;c<a.length;++c)a[c]^=a[c%b];this.logger.kT(this.clientState);b=new Uint8Array(a.length+2);b[0]=34;b[1]=a.length;for(c=2;c<b.length;++c)b[c]=a[c-2];return b};
mk.prototype.isReady=function(){return!!this.j};
mk.prototype.ready=function(){var a=this;return g.A(function(b){return g.y(b,a.C.promise,0)})};
mk.prototype.prefetch=function(){1===this.state&&(this.u=Gga(this))};
mk.prototype.start=function(){if(1===this.state){this.state=2;var a=new Fi(this.logger,"r");this.ready().finally(function(){return void a.done()});
Iga(this)}};var HIa={xUa:0,uUa:1,rUa:2,sUa:3,tUa:4,wUa:5,vUa:6};var bm;bm=["av.default","js","unreleased"].slice(-1)[0];var Vk=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");var Rl=document,Bk=window;var Oga={NONE:0,Wpa:1},tha={dX:0,sTa:1,rTa:2,tTa:3},Wk={QW:"a",zpa:"d",VIDEO:"v"};nk.prototype.isVisible=function(){return this.Bu?.3<=this.Zd:.5<=this.Zd};var xk={yja:0,rua:1},rha={NONE:0,fza:1,Ewa:2};ok.prototype.getValue=function(){return this.Ed};
g.v(pk,ok);pk.prototype.setValue=function(a){if(null!==this.Ed||!g.Sc(this.u,a))return!1;this.Ed=a;return!0};
g.v(qk,ok);qk.prototype.setValue=function(a){if(null!==this.Ed||"number"!==typeof a)return!1;this.Ed=a;return!0};
g.v(rk,ok);rk.prototype.setValue=function(a){if(null!==this.Ed||"string"!==typeof a)return!1;this.Ed=a;return!0};sk.prototype.disable=function(){this.u=!1};
sk.prototype.enable=function(){this.u=!0};
sk.prototype.isEnabled=function(){return this.u};
sk.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var via=!g.Je&&!qc();yk.prototype.now=function(){return 0};
yk.prototype.u=function(){return 0};
yk.prototype.B=function(){return 0};
yk.prototype.j=function(){return 0};g.v(Ak,yk);Ak.prototype.now=function(){return zk()&&Bk.performance.now?Bk.performance.now():yk.prototype.now.call(this)};
Ak.prototype.u=function(){return zk()&&Bk.performance.memory?Bk.performance.memory.totalJSHeapSize||0:yk.prototype.u.call(this)};
Ak.prototype.B=function(){return zk()&&Bk.performance.memory?Bk.performance.memory.usedJSHeapSize||0:yk.prototype.B.call(this)};
Ak.prototype.j=function(){return zk()&&Bk.performance.memory?Bk.performance.memory.jsHeapSizeLimit||0:yk.prototype.j.call(this)};var Rga=wd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.D.addEventListener("test",null,b)}catch(c){}return a});Sga.prototype.isVisible=function(){return 1===Ek(Rl)};g.Ed("csi.gstatic.com");g.Ed("googleads.g.doubleclick.net");g.Ed("partner.googleadservices.com");g.Ed("pubads.g.doubleclick.net");g.Ed("securepubads.g.doubleclick.net");g.Ed("tpc.googlesyndication.com");var Uga={Cba:"allow-forms",Dba:"allow-modals",Eba:"allow-orientation-lock",Fba:"allow-pointer-lock",Gba:"allow-popups",Hba:"allow-popups-to-escape-sandbox",Iba:"allow-presentation",Jba:"allow-same-origin",Kba:"allow-scripts",Lba:"allow-top-navigation",Mba:"allow-top-navigation-by-user-activation"},Yga=wd(function(){return Vga()});var bha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Jk.prototype.Se=function(a,b,c){a=a+"//"+b+c;var d=fha(this)-c.length;if(0>d)return"";this.j.sort(function(n,p){return n-p});
c=null;b="";for(var e=0;e<this.j.length;e++)for(var f=this.j[e],h=this.u[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=eha(h[l],this.B,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.B;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};Qk.prototype.setInterval=function(a,b){return Bk.setInterval(a,b)};
Qk.prototype.clearInterval=function(a){Bk.clearInterval(a)};
Qk.prototype.setTimeout=function(a,b){return Bk.setTimeout(a,b)};
Qk.prototype.clearTimeout=function(a){Bk.clearTimeout(a)};mha.prototype.getContext=function(){if(!this.j){if(!Bk)throw Error("Context has not been set and window is undefined.");this.j=Pk(Qk)}return this.j};g.v(Sk,g.M);var vja=[Sk,1,O4a,2,P4a,3,P4a,4,P4a,5,R4a];var sha={wRa:1,a_:2,CJa:3};uha.prototype.FM=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1<d.length?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.setValue(d)}}}};var C2=null;var Zk=g.D.performance,i5a=!!(Zk&&Zk.mark&&Zk.measure&&Zk.clearMarks),Xk=wd(function(){var a;if(a=i5a){var b;if(null===C2){C2="";try{a="";try{a=g.D.top.location.hash}catch(c){a=g.D.location.hash}a&&(C2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=C2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
Yk.prototype.disable=function(){this.j=!1;this.events!=this.u.google_js_reporting_queue&&(Xk()&&g.Fb(this.events,Aha),this.events.length=0)};
Yk.prototype.start=function(a,b){if(!this.j)return null;var c=yha()||xha();a=new zha(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Zk&&Xk()&&Zk.mark(b);return a};
Yk.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=yha()||xha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Zk&&Xk()&&Zk.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};Bha.prototype.uL=function(a,b,c,d,e){e=e||this.yR;try{var f=new Jk;f.j.push(1);f.u[1]=Kk("context",a);b.error&&b.meta&&b.id||(b=new cl(el(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.u[2]=Kk("msg",h)}var l=b.meta||{};if(this.RI)try{this.RI(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.u[3]=b;var m=dha();if(m.u){var n=m.u.url||"";f.j.push(4);f.u[4]=Kk("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?Lea(m.j.url):""}];f.j.push(5);f.u[5]=p;vha(this.j,e,f,c)}catch(q){try{vha(this.j,
e,{context:"ecmserr",rctx:a,msg:el(q),url:m&&m.j.url},c)}catch(r){}}return this.xN};
g.v(cl,wha);var al,bl,$k=new Yk;al=new function(){var a="https:";Bk&&Bk.location&&"http:"===Bk.location.protocol&&(a="http:");this.u=a;this.j=.01};
bl=new Bha;Bk&&Bk.document&&("complete"==Bk.document.readyState?Dha():$k.j&&Dk(Bk,"load",function(){Dha()}));var Gha=Date.now(),ll=-1,jl=-1,Via,ml=-1,kl=!1;g.k=nl.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new nl(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof nl?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.k.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.k.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.k.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.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};ul.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&pl(this.j,a.j)&&!0};vl.prototype.ub=function(){return this.J};
vl.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.J==a.J&&pl(this.B,a.B)&&pl(this.I,a.I)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.T==a.T};var j5a={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Qm={TZ:"start",iX:"firstquartile",EZ:"midpoint",VZ:"thirdquartile",YW:"complete",ERROR:"error",DZ:"metric",PAUSE:"pause",PZ:"resume",RZ:"skip",ZZ:"viewable_impression",GZ:"mute",YZ:"unmute",jX:"fullscreen",fX:"exitfullscreen",WW:"bufferstart",VW:"bufferfinish",kX:"fully_viewable_audible_half_duration_impression",CZ:"measurable_impression",OW:"abandon",eX:"engagedview",oX:"impression",aX:"creativeview",AZ:"loaded",wSa:"progress",
CLOSE:"close",Sia:"collapse",bPa:"overlay_resize",cPa:"overlay_unmeasurable_impression",dPa:"overlay_unviewable_impression",fPa:"overlay_viewable_immediate_impression",ePa:"overlay_viewable_end_of_session_impression",cX:"custom_metric_viewable",hOa:"verification_debug",RW:"audio_audible",TW:"audio_measurable",SW:"audio_impression"},hka="start firstquartile midpoint thirdquartile resume loaded".split(" "),ika=["start","firstquartile","midpoint","thirdquartile"],Wia=["abandon"],kn={UNKNOWN:-1,TZ:0,
iX:1,EZ:2,VZ:3,YW:4,DZ:5,PAUSE:6,PZ:7,RZ:8,ZZ:9,GZ:10,YZ:11,jX:12,fX:13,kX:14,CZ:15,OW:16,eX:17,oX:18,aX:19,AZ:20,cX:21,WW:22,VW:23,SW:27,TW:28,RW:29};var Iha={p8:"addEventListener",Gwa:"getMaxSize",Hwa:"getScreenSize",Iwa:"getState",Jwa:"getVersion",hTa:"removeEventListener",bAa:"isViewable"};g.k=g.xl.prototype;g.k.clone=function(){return new g.xl(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.he?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.k.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
g.k.getSize=function(){return new g.ke(this.width,this.height)};
g.k.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.k.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.k.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.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var Mha={};Vha.prototype.update=function(a){a&&a.document&&(this.J=wl(!1,a,this.isMobileDevice),this.j=wl(!0,a,this.isMobileDevice),Xha(this,a),Wha(this,a))};Tl.prototype.cancel=function(){Rk().clearTimeout(this.j);this.j=null};
Tl.prototype.schedule=function(){var a=this,b=Rk(),c=Uk().j.j;this.j=b.setTimeout(Tk(c,gl(143,function(){a.u++;a.B.sample()})),Hha())};g.k=Ul.prototype;g.k.Ez=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.vx=function(){return this.j.Ba};
g.k.bB=function(){return this.j.ea};
g.k.fail=function(a,b){if(!this.ea||(void 0===b?0:b))this.ea=!0,this.Ba=a,this.T=0,this.j!=this||Wl(this)};
g.k.getName=function(){return this.j.Pa};
g.k.Dr=function(){return this.j.SR()};
g.k.SR=function(){return{}};
g.k.Fp=function(){return this.j.T};
g.k.zP=function(){var a=Ql();a.j=wl(!0,this.B,a.isMobileDevice)};
g.k.AP=function(){Wha(Ql(),this.B)};
g.k.dS=function(){return this.C.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.I};
g.k.Dx=function(a){var b=this.j;this.j=a.Fp()>=this.T?a:this;b!==this.j?(this.I=this.j.I,Wl(this)):this.I!==this.j.I&&(this.I=this.j.I,Wl(this))};
g.k.Or=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.Z);this.C=a;b&&$ha(this)}};
g.k.Ho=function(){return this.Z};
g.k.dispose=function(){this.Aa=!0};
g.k.isDisposed=function(){return this.Aa};g.k=Xl.prototype;g.k.VH=function(){return!0};
g.k.Fz=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.qb(a.D,this);a.Z&&this.Ho()&&Zha(a);this.Fz();this.ea=!0}};
g.k.isDisposed=function(){return this.ea};
g.k.Dr=function(){return this.u.Dr()};
g.k.Fp=function(){return this.u.Fp()};
g.k.vx=function(){return this.u.vx()};
g.k.bB=function(){return this.u.bB()};
g.k.Dx=function(){};
g.k.Or=function(){this.Pq()};
g.k.Ho=function(){return this.oa};g.k=Yl.prototype;g.k.Fp=function(){return this.j.Fp()};
g.k.vx=function(){return this.j.vx()};
g.k.bB=function(){return this.j.bB()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.nD(a,b,c),Vl(this.j,d));return d};
g.k.BP=function(){return this.Gz()};
g.k.Gz=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(Vl(this.j,this),this.C=a,!0):!1};
g.k.Dx=function(a){0==a.Fp()&&this.C(a.vx(),this)};
g.k.Or=function(){};
g.k.Ho=function(){return!1};
g.k.dispose=function(){this.D=!0};
g.k.isDisposed=function(){return this.D};
g.k.Dr=function(){return{}};Zl.prototype.add=function(a,b,c){++this.B;a=new aia(a,b,c);this.j.push(new aia(a.j,a.Ed,a.u+this.B/4096));this.u=!0;return this};fia.prototype.toString=function(){var a="//web.archive.org/web/20230104105643/https://pagead2.googlesyndication.com//pagead/gen_204",b=am(this.j);0<b.length&&(a+="?"+b);return a};cm.prototype.update=function(a,b,c){a&&(this.j+=b,this.u+=b,this.C+=b,this.B=Math.max(this.B,this.C));if(void 0===c?!a:c)this.C=0};var lia=[1,.75,.5,.3,0];dm.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var h=this.u[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};jm.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Zd):b.Zd;this.oa=Math.max(this.oa,b.Zd);this.ya=-1!=this.ya?Math.min(this.ya,b.Kj):b.Kj;this.Ba=Math.max(this.Ba,b.Kj);this.gb.update(b.Kj,c.Kj,b.j,a,d);this.u.update(b.Zd,c.Zd,b.j,a,d);c=d||c.Bu!=b.Bu?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Pa.update(c,a,b)};
jm.prototype.Tp=function(){return this.Pa.B>=this.Xa};if(Rl&&Rl.URL){var k5a=Rl.URL,l5a;if(l5a=!!k5a){var m5a;a:{if(k5a){var n5a=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var D2=n5a.exec(decodeURIComponent(k5a));if(D2){m5a=D2[1]&&1<D2[1].length?D2[1].substring(1):"true";break a}}catch(a){}}m5a=""}l5a=0<m5a.length}bl.xN=!l5a};var o5a=new nl(0,0,0,0);var tia=new nl(0,0,0,0);g.v(om,g.E);g.k=om.prototype;
g.k.ra=function(){if(this.jj.j){if(this.St.EL){var a=this.jj.j;a.removeEventListener&&a.removeEventListener("mouseover",this.St.EL,Ck());this.St.EL=null}this.St.DL&&(a=this.jj.j,a.removeEventListener&&a.removeEventListener("mouseout",this.St.DL,Ck()),this.St.DL=null)}this.CC&&this.CC.dispose();this.gf&&this.gf.dispose();delete this.yF;delete this.xL;delete this.mW;delete this.jj.ls;delete this.jj.j;delete this.St;delete this.CC;delete this.gf;delete this.featureSet;g.E.prototype.ra.call(this)};
g.k.Ir=function(){return this.gf?this.gf.j:this.position};
g.k.FM=function(a){Uk().FM(a)};
g.k.Ho=function(){return!1};
g.k.FE=function(){return new jm};
g.k.Mi=function(){return this.yF};
g.k.XR=function(a){return xia(this,a,1E4)};
g.k.La=function(a,b,c,d,e,f,h){this.Wr||(this.nA&&(a=this.bJ(a,c,e,h),d=d&&this.lh.Zd>=(this.Bu()?.3:.5),this.iO(f,a,d),this.lastUpdateTime=b,0<a.Zd&&-1===this.UV&&(this.UV=b),-1==this.XV&&this.Tp()&&(this.XV=b),-2==this.rL&&(this.rL=mm(this.Ir())?a.Zd:-1),this.lh=a),this.xL(this))};
g.k.iO=function(a,b,c){this.Mi().update(a,b,this.lh,c)};
g.k.nK=function(){return new nk};
g.k.bJ=function(a,b,c,d){c=this.nK();c.j=b;b=Rk().u;b=0===Ek(Rl)?-1:b.isVisible()?0:1;c.u=b;c.Zd=this.rJ(a);c.Bu=this.Bu();c.Kj=d;return c};
g.k.rJ=function(a){return 0===this.opacity&&1===vk(this.featureSet,"opac")?0:a};
g.k.Bu=function(){return!1};
g.k.JG=function(){return this.F1||this.I1};
g.k.Qu=function(){il()};
g.k.Zx=function(){il()};
g.k.Un=function(){return 0};
g.k.Tp=function(){return this.yF.Tp()};
g.k.fS=function(){var a=this.nA;a=(this.hasCompleted||this.isDisposed())&&!a;var b=2!==Uk().u||this.Q6;return this.Wr||b&&a?2:this.Tp()?4:3};
g.k.vE=function(){return 0};g.qm.prototype.next=function(){return g.E2};
g.E2={done:!0,value:void 0};g.qm.prototype.Vj=function(){return this};g.v(Dia,nk);var F2=Fia([void 0,1,2,3,4,8,16]),G2=Fia([void 0,4,8,16]),p5a={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:um("p0",G2),p1:um("p1",G2),p2:um("p2",G2),p3:um("p3",G2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:tm("mtos1",[0,2,4],!1,G2),mtos2:tm("mtos2",[0,2,4],!1,G2),mtos3:tm("mtos3",[0,2,4],!1,G2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:um("a0",G2),a1:um("a1",G2),a2:um("a2",G2),a3:um("a3",G2),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:um("c0",G2),c1:um("c1",G2),c2:um("c2",G2),c3:um("c3",G2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:um("qmtos",F2),qnc:um("qnc",F2),qmv:um("qmv",F2),qnv:um("qnv",F2),
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:um("ss0",G2),ss1:um("ss1",G2),ss2:um("ss2",G2),ss3:um("ss3",G2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},
q5a=Object.assign({},p5a,{avid:ud("audio"),avas:"avas",vs:"vs"}),r5a={atos:"atos",avt:tm("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return void 0===c[a]&&void 0!==b?b:c[a]}}("ss",0),
t:"t"};zm.prototype.getValue=function(){return this.u};
zm.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.u&=~(1<<a):this.j&1<<a||!b||(this.u|=1<<a),this.j|=1<<a)};g.v(Am,jm);
Am.prototype.update=function(a,b,c,d){if(!b.paused){jm.prototype.update.call(this,a,b,c,d);var e=sm(b)&&sm(c),f=.5<=(d?Math.min(b.Zd,c.Zd):c.Zd);Ol(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.Aa+=a,this.Z+=e?a:0);this.j.update(b.Zd,c.Zd,b.j,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.ea.update(c.fullscreen,a);this.kb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ka.update(a,b.isVisible());this.Wa.update(a,1<=b.Zd);this.Va.update(a,
sm(b))}};Kia.prototype.u=function(a){this.B||(this.j(a)?(a=Vja(this.Z,this.C,a),this.D|=a,a=0==a):a=!1,this.B=a)};g.v(Cm,Kia);Cm.prototype.j=function(){return!0};
Cm.prototype.I=function(){return!1};
Cm.prototype.getId=function(){var a=this,b=Tc(Qm,function(c){return c==a.C});
return kn[b].toString()};
Cm.prototype.toString=function(){var a="";this.I()&&(a+="c");this.B&&(a+="s");0<this.D&&(a+=":"+this.D);return this.getId()+a};g.v(Dm,Cm);Dm.prototype.u=function(a,b){b=void 0===b?null:b;null!=b&&this.J.push(b);Cm.prototype.u.call(this,a)};g.v(Em,Xl);g.k=Em.prototype;g.k.eJ=function(){if(this.element){var a=this.element,b=this.u.j.B;try{try{var c=Sha(a.getBoundingClientRect())}catch(n){c=new nl(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Pha(a,b),h=f.x,l=f.y;var m=new nl(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=o5a.clone()}this.j=m}};
g.k.OQ=function(){this.C=this.u.C.j};
g.k.QS=function(a){var b=1==vk(this.featureSet,"od");return sia(a,this.C,this.element,b)};
g.k.PQ=function(){this.timestamp=il()};
g.k.Pq=function(){this.PQ();this.eJ();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.ke(a.videoWidth,a.videoHeight);a=this.j;var c=ol(a),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.OQ();
a=this.j;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new nl(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new nl(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new nl(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.QS(c)?c=new nl(0,0,0,0):(d=Ql().C,b=new nl(0,d.height,d.width,0),d=nm(c,this.j),e=nm(c,Ql().j),b=nm(c,b)));c=c.top>=c.bottom||c.left>=c.right?new nl(0,0,0,
0):tl(c,-this.j.left,-this.j.top);Sl()||(e=d=0);this.J=new vl(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.u.getName()};var s5a=new nl(0,0,0,0);g.v(Fm,Em);g.k=Fm.prototype;g.k.VH=function(){this.B();return!0};
g.k.Or=function(){Em.prototype.Pq.call(this)};
g.k.PQ=function(){};
g.k.eJ=function(){};
g.k.Pq=function(){this.B();Em.prototype.Pq.call(this)};
g.k.Dx=function(a){a=a.isActive();a!==this.I&&(a?this.B():(Ql().j=new nl(0,0,0,0),this.j=new nl(0,0,0,0),this.C=new nl(0,0,0,0),this.timestamp=-1));this.I=a};var H2={},Uia=(H2.firstquartile=0,H2.midpoint=1,H2.thirdquartile=2,H2.complete=3,H2);g.v(Hm,om);g.k=Hm.prototype;g.k.Ho=function(){return!0};
g.k.Sp=function(){return 2==this.gi};
g.k.XR=function(a){return xia(this,a,Math.max(1E4,this.B/3))};
g.k.La=function(a,b,c,d,e,f,h){var l=this,m=this.J(this)||{};g.$c(m,e);this.B=m.duration||this.B;this.Z=m.isVpaid||this.Z;this.Ma=m.isYouTube||this.Ma;e=Mia(this,b);1===Lia(this)&&(f=e);om.prototype.La.call(this,a,b,c,d,m,f,h);this.Yp&&this.Yp.B&&g.Fb(this.I,function(n){n.u(l)})};
g.k.iO=function(a,b,c){om.prototype.iO.call(this,a,b,c);Km(this).update(a,b,this.lh,c);this.gb=sm(this.lh)&&sm(b);-1==this.Ba&&this.Xa&&(this.Ba=this.Mi().B.j);this.Ag.B=0;a=this.Tp();b.isVisible()&&ym(this.Ag,"vs");a&&ym(this.Ag,"vw");Ol(b.volume)&&ym(this.Ag,"am");sm(b)?ym(this.Ag,"a"):ym(this.Ag,"mut");this.Gx&&ym(this.Ag,"f");-1!=b.u&&(ym(this.Ag,"bm"),1==b.u&&(ym(this.Ag,"b"),sm(b)&&ym(this.Ag,"umutb")));sm(b)&&b.isVisible()&&ym(this.Ag,"avs");this.gb&&a&&ym(this.Ag,"avw");0<b.Zd&&ym(this.Ag,
"pv");Lm(this,this.Mi().B.j,!0)&&ym(this.Ag,"gdr");2E3<=hm(this.Mi().u,1)&&ym(this.Ag,"pmx")};
g.k.FE=function(){return new Am};
g.k.Mi=function(){return this.yF};
g.k.nK=function(){return new Dia};
g.k.bJ=function(a,b,c,d){a=om.prototype.bJ.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Gx;a.paused=this.Sp();a.volume=c.volume;Ol(a.volume)||(this.tb++,b=this.lh,Ol(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.rJ=function(a){return Ql(),this.Gx?1:om.prototype.rJ.call(this,a)};
g.k.Un=function(){return 1};
g.k.getDuration=function(){return this.B};
g.k.fS=function(){return this.Wr?2:Oia(this)?5:this.Tp()?4:3};
g.k.vE=function(){return this.kb?2E3<=this.Mi().D.B?4:3:2};var t5a=g.Ra();dja.prototype.reset=function(){this.j=[];this.u=[]};
var Vm=Pk(dja);g.v(Ym,Yl);g.k=Ym.prototype;g.k.getName=function(){return(this.u?this.u:this.j).getName()};
g.k.Dr=function(){return(this.u?this.u:this.j).Dr()};
g.k.Fp=function(){return(this.u?this.u:this.j).Fp()};
g.k.init=function(a){var b=!1;(0,g.Fb)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,Vl(this.j,this));return b};
g.k.dispose=function(){(0,g.Fb)(this.B,function(a){a.dispose()});
Yl.prototype.dispose.call(this)};
g.k.BP=function(){return Pl(this.B,function(a){return a.Ez()})};
g.k.Gz=function(){return Pl(this.B,function(a){return a.Ez()})};
g.k.nD=function(a,b,c){return new Em(a,this.j,b,c)};
g.k.Or=function(a){this.u=a.u};var mja={threshold:[0,.3,.5,.75,1]};g.v(Zm,Em);g.k=Zm.prototype;g.k.VH=function(){var a=this;this.Z||(this.Z=il());if(Fha(298,function(){return nja(a)}))return!0;
this.u.fail("msf");return!1};
g.k.Fz=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.k.Pq=function(){var a=$m(this);0<a.length&&an(this,a);Em.prototype.Pq.call(this)};
g.k.eJ=function(){};
g.k.QS=function(){return!1};
g.k.OQ=function(){};
g.k.Dr=function(){var a={};return Object.assign(this.u.Dr(),(a.niot_obs=this.Z,a.niot_cbk=this.T,a))};
g.k.getName=function(){return"nio"};g.v(bn,Yl);bn.prototype.getName=function(){return"nio"};
bn.prototype.Gz=function(){return!Ql().u&&null!=this.j.j.B.IntersectionObserver};
bn.prototype.nD=function(a,b,c){return new Zm(a,this.j,b,c)};g.v(cn,Ul);cn.prototype.dS=function(){return Ql().j};
cn.prototype.Ez=function(){var a=pja();this.T!==a&&(this.j!=this&&a>this.j.T&&(this.j=this,Wl(this)),this.T=a);return 2==a};dn.prototype.sample=function(){gn(this,Wm(),!1)};
dn.prototype.C=function(){var a=Sl(),b=il();a?(kl||(ll=b,g.Fb(Vm.j,function(c){var d=c.Mi();d.Ma=Bm(d,b,1!=c.gi)})),kl=!0):(this.J=uja(this,b),kl=!1,Via=b,g.Fb(Vm.j,function(c){c.nA&&(c.Mi().T=b)}));
gn(this,Wm(),!a)};
var en=Pk(dn);var xja=null,Fn="",En=!1;var Aja=zja().Nn,jn=zja().Pn;var Dja={tua:"visible",ffa:"audible",K0a:"time",O0a:"timetype"},Eja={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
audible:function(a){return"0"==a||"1"==a},
timetype:function(a){return"mtos"==a||"tos"==a},
time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};
Cja.prototype.setTime=function(a,b,c){"ms"==b?(this.B=a,this.C=-1):(this.B=-1,this.C=a);this.D=void 0===c?"tos":c;return this};g.v(nn,Cm);nn.prototype.getId=function(){return this.J};
nn.prototype.I=function(){return!0};
nn.prototype.j=function(a){var b=a.Mi(),c=a.getDuration();return Pl(this.T,function(d){if(void 0!=d.j)var e=Gja(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.j;break b;case "tos":e=d.u?b.D.j:b.B.j;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0<c?d.C*c:-1,d=-1!=d&&e>=d);return d})};g.v(on,Hja);on.prototype.u=function(){return null};
on.prototype.B=function(){return[]};g.v(pn,Gia);pn.prototype.j=function(a){var b=new wm;b.j=xm(a,p5a);b.u=xm(a,r5a);return b};g.v(qn,Cm);qn.prototype.j=function(a){return Oia(a)};g.v(rn,Hja);g.v(sn,Cm);sn.prototype.j=function(a){return a.Mi().Tp()};g.v(tn,Dm);tn.prototype.j=function(a){var b=g.nb(this.J,vk(Uk().featureSet,"ovms"));return!a.Wr&&(0!=a.gi||b)};g.v(un,rn);un.prototype.u=function(){return new tn(this.j)};
un.prototype.B=function(){return[new sn("viewable_impression",this.j),new qn(this.j)]};g.v(vn,Fm);vn.prototype.B=function(){var a=g.Fa("ima.admob.getViewability"),b=vk(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
vn.prototype.getName=function(){return"gsv"};g.v(wn,Yl);wn.prototype.getName=function(){return"gsv"};
wn.prototype.Gz=function(){var a=Ql();Uk();return a.u&&!1};
wn.prototype.nD=function(a,b,c){return new vn(this.j,b,c)};g.v(xn,Fm);xn.prototype.B=function(){var a=this,b=g.Fa("ima.bridge.getNativeViewability"),c=vk(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Uc(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Tha(d.opt_nativeViewBounds||{});var h=a.u.C;h.j=f?s5a.clone():Tha(e);a.timestamp=d.opt_nativeTime||-1;Ql().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
xn.prototype.getName=function(){return"nis"};g.v(yn,Yl);yn.prototype.getName=function(){return"nis"};
yn.prototype.Gz=function(){var a=Ql();Uk();return a.u&&!1};
yn.prototype.nD=function(a,b,c){return new xn(this.j,b,c)};g.v(zn,Ul);g.k=zn.prototype;g.k.Ez=function(){return null!=this.u.Em};
g.k.SR=function(){var a={};this.Ka&&(a.mraid=this.Ka);this.ya&&(a.mlc=1);a.mtop=this.u.s6;this.J&&(a.mse=this.J);this.Ma&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.k.Ms=function(a){var b=g.ya.apply(1,arguments);try{return this.u.Em[a].apply(this.u.Em,b)}catch(c){hl(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.bB();this.isInitialized=!0;if(2===this.u.compatibility)return this.J="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.J="mm",this.fail("w"),!1;Ql().T=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?Lja(this):lm(this.B,"load",function(){Rk().setTimeout(gl(292,function(){return Lja(a)}),100)},292);
return!0};
g.k.zP=function(){var a=Ql(),b=Qja(this,"getMaxSize");a.j=new nl(0,b.width,b.height,0)};
g.k.AP=function(){Ql().C=Qja(this,"getScreenSize")};
g.k.dispose=function(){Nja(this);Ul.prototype.dispose.call(this)};g.k=Bn.prototype;g.k.iA=function(a){pm(a,!1);hja(a)};
g.k.ME=function(){};
g.k.jC=function(a,b,c,d){var e=this;b=c?b:-1;c=this.iR();a=new Hm(Bk,a,b,7,this.yJ(),c.u(),c.B());a.Mh=d;Mga(a.featureSet);uk(a.featureSet,"queryid",a.Mh);a.FM("");Aia(a,function(){return e.nS.apply(e,g.u(g.ya.apply(0,arguments)))},function(){return e.b1.apply(e,g.u(g.ya.apply(0,arguments)))});
(d=Pk(Xm).j)&&wia(a,d);a.jj.ls&&Pk(qja);return a};
g.k.Dx=function(a){switch(a.Fp()){case 0:if(a=Pk(Xm).j)a=a.j,g.qb(a.D,this),a.Z&&this.Ho()&&Zha(a);Dn();break;case 2:fn()}};
g.k.Or=function(){};
g.k.Ho=function(){return!1};
g.k.b1=function(a,b){a.Wr=!0;switch(a.Un()){case 1:Wja(a,b);break;case 2:this.SM(a)}this.hN()};
g.k.n1=function(a){var b=a.J(a);b&&(b=b.volume,a.kb=Ol(b)&&0<b);Ria(a,0);return Rm(a,"start",Sl())};
g.k.Uy=function(a,b,c){gn(en,[a],!Sl());return this.Vn(a,b,c)};
g.k.Vn=function(a,b,c){return Rm(a,c,Sl())};
g.k.g1=function(a){return Jn(a,"firstquartile",1)};
g.k.j1=function(a){a.Xa=!0;return Jn(a,"midpoint",2)};
g.k.o1=function(a){return Jn(a,"thirdquartile",3)};
g.k.d1=function(a){var b=Jn(a,"complete",4);Im(a);return b};
g.k.e1=function(a){a.gi=3;return Rm(a,"error",Sl())};
g.k.iV=function(a,b,c){b=Sl();if(a.Sp()&&!b){var d=il();a.Mi().T=d}gn(en,[a],!b);a.Sp()&&(a.gi=1);return Rm(a,c,b)};
g.k.m1=function(a,b){b=this.Uy(a,b||{},"skip");Im(a);return b};
g.k.h1=function(a,b){pm(a,!0);return this.Uy(a,b||{},"fullscreen")};
g.k.f1=function(a,b){pm(a,!1);return this.Uy(a,b||{},"exitfullscreen")};
g.k.wM=function(a,b,c){b=a.Mi();var d=il();b.Ma=Bm(b,d,1!=a.gi);gn(en,[a],!Sl());1==a.gi&&(a.gi=2);return Rm(a,c,Sl())};
g.k.l1=function(a){gn(en,[a],!Sl());return a.u()};
g.k.EK=function(a){gn(en,[a],!Sl());this.cV(a);Im(a);return a.u()};
g.k.nS=function(){};
g.k.SM=function(){};
g.k.cV=function(){};
g.k.CP=function(){};
g.k.hN=function(){};
g.k.zJ=function(){};
g.k.iR=function(){this.j||(this.j=this.zJ());return null==this.j?new on:new un(this.j)};
g.k.yJ=function(){return new pn};g.v(Kn,Cm);Kn.prototype.j=function(a){return 4==a.vE()};g.v(Ln,Dm);Ln.prototype.j=function(a){a=a.vE();return 3==a||4==a};g.v(Mn,rn);Mn.prototype.u=function(){return new Ln(this.j)};
Mn.prototype.B=function(){return[new Kn(this.j)]};g.v(Nn,Gia);Nn.prototype.j=function(a){a&&(28===a.e&&(a=Object.assign({},a,{avas:3})),4===a.vs||5===a.vs)&&(a=Object.assign({},a,{vs:3}));var b=new wm;b.j=xm(a,q5a);b.u=xm(a,r5a);return b};aka.prototype.u=function(){return g.Fa(this.j)};g.v(On,Bn);g.k=On.prototype;g.k.ME=function(a,b){var c=this,d=Pk(Xm);if(null!=d.j)switch(d.j.getName()){case "nis":var e=eka(this,a,b);break;case "gsv":e=dka(this,a,b);break;case "exc":e=fka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Yja(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Un()&&(e.J==g.vd&&(e.J=function(f){return c.CP(f)}),cka(this,e,b));
return e};
g.k.CP=function(a){a.u=0;a.Aa=0;if("h"==a.C||"n"==a.C){Uk();a.Wa&&(Uk(),"h"!=Hn(this)&&Hn(this));var b=g.Fa("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Mh)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Fa("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Mh)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Fa("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Mh)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===c?a.u|=8:null===
c?a.u|=16:g.Uc(c)?a.u|=32:null!=c.errorCode&&(a.Aa=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.T=0;for(var d in j5a)null==b[d]&&(a.T|=j5a[d]);$ja(b,"currentTime");$ja(b,"duration");Ol(c.volume)&&Ol()&&(c.volume*=NaN);return c};
g.k.zJ=function(){Uk();"h"!=Hn(this)&&Hn(this);var a=gka(this);return null!=a?new aka(a):null};
g.k.SM=function(a){!a.j&&a.Wr&&In(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.cV=function(a){a.BV&&(a.Tp()?In(this,a,"overlay_viewable_end_of_session_impression"):In(this,a,"overlay_unviewable_impression"),a.BV=!1)};
g.k.nS=function(){};
g.k.hN=function(){};
g.k.jC=function(a,b,c,d){if(qha()){var e=vk(Uk().featureSet,"mm"),f={};(e=(f[Wk.QW]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[Wk.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Qn(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&hl(1044,Error())}a=Bn.prototype.jC.call(this,a,b,c,d);this.D&&(b=this.I,null==a.D&&(a.D=new Bia),b.j[a.Mh]=a.D,a.D.D=t5a);return a};
g.k.iA=function(a){a&&1==a.Un()&&this.D&&delete this.I.j[a.Mh];return Bn.prototype.iA.call(this,a)};
g.k.iR=function(){this.j||(this.j=this.zJ());return null==this.j?new on:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Mn(this.j):new un(this.j)};
g.k.yJ=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Nn:new pn};
var Pn=new wm;Pn.j="stopped";Pn.u="stopped";var u5a=fl(193,Rn,void 0,Xja);g.Da("Goog_AdSense_Lidar_sendVastEvent",u5a);var v5a=gl(194,function(a,b){b=void 0===b?{}:b;a=jka(Pk(On),a,b);return kka(a)});
g.Da("Goog_AdSense_Lidar_getViewability",v5a);var w5a=fl(195,function(){return lha()});
g.Da("Goog_AdSense_Lidar_getUrlSignalsArray",w5a);var x5a=gl(196,function(){return JSON.stringify(lha())});
g.Da("Goog_AdSense_Lidar_getUrlSignalsList",x5a);var Tma=(new Date).getTime();var y5a="client_dev_domain client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[].concat(g.u(y5a),["client_dev_set_cookie"]);var mka="://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(" "),nka=/\bocr\b/;var pka=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;"undefined"!==typeof TextDecoder&&new TextDecoder;var z5a="undefined"!==typeof TextEncoder?new TextEncoder:null,Qoa=z5a?function(a){return z5a.encode(a)}:function(a){a=g.Cf(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};g.v(Un,g.rd);Un.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Cm.Zl(this.I);delete Un.instance};
Un.prototype.Fh=function(){return this.j};Wn.prototype.set=function(a,b){b=void 0===b?!0:b;Number.isInteger(a);0<=a&&52>a&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.j=-1)};
Wn.prototype.get=function(a){return!!this.data_[a]};g.Sa(g.Xn,g.E);g.k=g.Xn.prototype;g.k.start=function(){this.stop();this.C=!1;var a=tka(this),b=uka(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.gd(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.j=a&&b?a.call(this.u,this.B):this.u.setTimeout(qba(this.B),20)};
g.k.stop=function(){if(this.isActive()){var a=tka(this),b=uka(this);a&&!b&&this.u.mozRequestAnimationFrame?ld(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return null!=this.j};
g.k.vY=function(){this.C&&this.j&&ld(this.j);this.j=null;this.I.call(this.D,g.Ra())};
g.k.ra=function(){this.stop();g.Xn.vf.ra.call(this)};g.Sa(g.Zn,g.E);g.k=g.Zn.prototype;g.k.Hz=0;g.k.ra=function(){g.Zn.vf.ra.call(this);this.stop();delete this.j;delete this.u};
g.k.start=function(a){this.stop();this.Hz=g.tf(this.B,void 0!==a?a:this.di)};
g.k.stop=function(){this.isActive()&&g.D.clearTimeout(this.Hz);this.Hz=0};
g.k.isActive=function(){return 0!=this.Hz};
g.k.DP=function(){this.Hz=0;this.j&&this.j.call(this.u)};co.prototype[Symbol.iterator]=function(){return this};
co.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};mo.prototype.Vj=function(){return new no(this.u())};
mo.prototype[Symbol.iterator]=function(){return new oo(this.u())};
mo.prototype.j=function(){return new oo(this.u())};
g.v(no,g.qm);no.prototype.next=function(){return this.u.next()};
no.prototype[Symbol.iterator]=function(){return new oo(this.u)};
no.prototype.j=function(){return new oo(this.u)};
g.v(oo,mo);oo.prototype.next=function(){return this.B.next()};g.k=g.qo.prototype;g.k.ll=function(){so(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.u[this.j[b]]);return a};
g.k.Ap=function(){so(this);return this.j.concat()};
g.k.has=function(a){return ro(this.u,a)};
g.k.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||yka;so(this);for(var c,d=0;c=this.j[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.u={};this.Xs=this.size=this.j.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return ro(this.u,a)?(delete this.u[a],--this.size,this.Xs++,this.j.length>2*this.size&&so(this),!0):!1};
g.k.get=function(a,b){return ro(this.u,a)?this.u[a]:b};
g.k.set=function(a,b){ro(this.u,a)||(this.size+=1,this.j.push(a),this.Xs++);this.u[a]=b};
g.k.forEach=function(a,b){for(var c=this.Ap(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.qo(this)};
g.k.transpose=function(){for(var a=new g.qo,b=0;b<this.j.length;b++){var c=this.j[b];a.set(this.u[c],c)}return a};
g.k.keys=function(){return po(this.Vj(!0)).j()};
g.k.values=function(){return po(this.Vj(!1)).j()};
g.k.entries=function(){var a=this;return vka(this.keys(),function(b){return[b,a.get(b)]})};
g.k.Vj=function(a){so(this);var b=0,c=this.Xs,d=this,e=new g.qm;e.next=function(){if(c!=d.Xs)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.E2;var f=d.j[b++];return g.rm(a?f:d.u[f])};
return e};g.Sa(g.to,g.rd);g.k=g.to.prototype;g.k.Wc=function(){return 1==this.j};
g.k.JF=function(){this.dl("begin")};
g.k.cq=function(){this.dl("end")};
g.k.onFinish=function(){this.dl("finish")};
g.k.dl=function(a){this.dispatchEvent(a)};var A5a=wd(function(){if(g.Je)return!0;var a=g.Oe("DIV"),b=g.Fc?"-webkit":Bl?"-moz":g.Je?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!I4a.test("div"))throw Error("");if("DIV"in K4a)throw Error("");b=void 0;var d="";if(c)for(h in c)if(Object.prototype.hasOwnProperty.call(c,h)){if(!I4a.test(h))throw Error("");var e=c[h];if(null!=e){var f=h;if(e instanceof Cd)e=Dd(e);else if("style"==f.toLowerCase()){if(!g.La(e))throw Error("");e instanceof
Qd||(e=Jba(e));e=Rd(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in J4a)if(e instanceof Gd)e=yba(e).toString();else if(e instanceof Kd)e=g.Ld(e);else if("string"===typeof e)e=g.Od(e).jl();else throw Error("");}e.po&&(e=e.jl());f=f+'="'+Mb(String(e))+'"';d+=" "+f}}var h="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===H4a.div?h+=">":(b=Tba(b),h+=">"+g.Vd(b).toString()+"</div>");h=g.Wd(h);g.Wba(a,h);return""!=g.Cl(a.firstChild,"transition")});g.Sa(uo,g.to);g.k=uo.prototype;g.k.play=function(){if(this.Wc())return!1;this.JF();this.dl("play");this.startTime=g.Ra();this.j=1;if(A5a())return g.Al(this.u,this.J),this.C=g.tf(this.E5,void 0,this),!0;this.WH(!1);return!1};
g.k.E5=function(){g.Ll(this.u);zka(this.u,this.T);g.Al(this.u,this.D);this.C=g.tf((0,g.Oa)(this.WH,this,!1),1E3*this.I)};
g.k.stop=function(){this.Wc()&&this.WH(!0)};
g.k.WH=function(a){g.Al(this.u,"transition","");g.D.clearTimeout(this.C);g.Al(this.u,this.D);this.endTime=g.Ra();this.j=0;if(a)this.dl("stop");else this.onFinish();this.cq()};
g.k.ra=function(){this.stop();uo.vf.ra.call(this)};
g.k.pause=function(){};var Bka={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};Eo("Element","attributes")||Eo("Node","attributes");Eo("Element","innerHTML")||Eo("HTMLElement","innerHTML");Eo("Node","nodeName");Eo("Node","nodeType");Eo("Node","parentNode");Eo("Node","childNodes");Eo("HTMLElement","style")||Eo("Element","style");Eo("HTMLStyleElement","sheet");var Hka=Dka("getPropertyValue"),Ika=Dka("setProperty");Eo("Element","namespaceURI")||Eo("Node","namespaceURI");var Gka={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Mka,n4a,Lka,Kka,Nka;Mka=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]");n4a=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.B5a=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.Fo=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]");Lka=/^http:\/\/.*/;g.C5a=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Kka=/\s+/;Nka=/[\d\u06f0-\u06f9]/;Ho.prototype.clone=function(){return new Ho(this.j,this.J,this.B,this.D,this.C,this.I,this.u,this.T)};
Ho.prototype.equals=function(a){return this.j==a.j&&this.J==a.J&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.I==a.I&&this.u==a.u&&this.T==a.T};Jo.prototype.clone=function(){return new Jo(this.start,this.end)};(function(){if(WXa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Wb()))?a[1]:"0"}return oW?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Wb()))?a[0].replace(/_/g,"."):"10"):g.lw?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Wb()))?a[1]:""):x4a||y4a||z4a?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Wb()))?a[1].replace(/_/g,"."):""):""})();var Pka=function(){if(g.vG)return Ko(/Firefox\/([0-9.]+)/);if(g.Je||g.Jx||g.rH)return Ac;if(g.yF){if(vc()||wc()){var a=Ko(/CriOS\/([0-9.]+)/);if(a)return a}return Ko(/Chrome\/([0-9.]+)/)}if(g.kx&&!vc())return Ko(/Version\/([0-9.]+)/);if(AH||fK){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Wb()))return a[1]+"."+a[2]}else if(g.sH)return(a=Ko(/Android\s+([0-9.]+)/))?a:Ko(/Version\/([0-9.]+)/);return""}();g.Sa(g.Mo,g.E);g.k=g.Mo.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.I;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.I=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.rh(a)}return!1};
g.k.rh=function(a){var b=this.j[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.j[a+1]=function(){}):(c&&g.qb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.k.ma=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.J)for(e=0;e<c.length;e++){var h=c[e];Qka(this.j[h+1],this.j[h+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.rh(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.rh,this),delete this.u[a])}else this.j.length=0,this.u={}};
g.k.ra=function(){g.Mo.vf.ra.call(this);this.clear();this.B.length=0};g.No.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.Oh(b))};
g.No.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.No.prototype.remove=function(a){this.j.remove(a)};g.Sa(Oo,g.No);Oo.prototype.set=function(a,b){Oo.vf.set.call(this,a,Ska(b))};
Oo.prototype.u=function(a){a=Oo.vf.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Oo.prototype.get=function(a){if(a=this.u(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Sa(Po,Oo);Po.prototype.set=function(a,b,c){if(b=Ska(b)){if(c){if(c<g.Ra()){Po.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Ra()}Po.vf.set.call(this,a,b)};
Po.prototype.u=function(a,b){var c=Po.vf.u.call(this,a);if(c)if(!b&&g.Tka(c))Po.prototype.remove.call(this,a);else return c};g.Sa(g.Qo,Po);g.Sa(Ro,Uka);Ro.prototype[Symbol.iterator]=function(){return po(this.Vj(!0)).j()};
Ro.prototype.clear=function(){var a=Array.from(this);a=g.t(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.Sa(So,Ro);g.k=So.prototype;g.k.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.j.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeItem(a)};
g.k.Vj=function(a){var b=0,c=this.j,d=new g.qm;d.next=function(){if(b>=c.length)return g.E2;var e=c.key(b++);if(a)return g.rm(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.rm(e)};
return d};
g.k.clear=function(){this.j.clear()};
g.k.key=function(a){return this.j.key(a)};g.Sa(To,So);g.Sa(Vka,So);g.Sa(Vo,Ro);var Wka={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Uo=null;g.k=Vo.prototype;g.k.isAvailable=function(){return!!this.j};
g.k.set=function(a,b){this.j.setAttribute(Wo(a),b);Xo(this)};
g.k.get=function(a){a=this.j.getAttribute(Wo(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeAttribute(Wo(a));Xo(this)};
g.k.Vj=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.qm;d.next=function(){if(b>=c.length)return g.E2;var e=c[b++];if(a)return g.rm(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.rm(e)};
return d};
g.k.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Xo(this)};g.Sa(Yo,Ro);Yo.prototype.set=function(a,b){this.u.set(this.j+a,b)};
Yo.prototype.get=function(a){return this.u.get(this.j+a)};
Yo.prototype.remove=function(a){this.u.remove(this.j+a)};
Yo.prototype.Vj=function(a){var b=this.u[Symbol.iterator](),c=this,d=new g.qm;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.j.length)!=c.j;){e=b.next();if(e.done)return e;e=e.value}return g.rm(a?e.slice(c.j.length):c.u.get(e))};
return d};$o.prototype.getKey=function(){return this.j};
$o.prototype.getValue=function(){return this.Ed};
$o.prototype.clone=function(){return new $o(this.j,this.Ed)};g.k=ap.prototype;g.k.Dh=function(a,b){var c=this.j;c.push(new $o(a,b));a=c.length-1;b=this.j;for(c=b[a];0<a;){var d=a-1>>1;if(b[d].getKey()>c.getKey())b[a]=b[d],a=d;else break}b[a]=c};
g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.ll=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.Ap=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new ap(this)};
g.k.isEmpty=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.v(Xka,ap);Ga(bp);bp.prototype.j=0;var cp={},D5a="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;cp.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!==typeof c)throw new TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a};
cp.wN=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var E5a={Qw:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var f=0;f<d;f++)a[e+f]=b[c+f]},
DR:function(a){var b,c;var d=c=0;for(b=a.length;d<b;d++)c+=a[d].length;var e=new Uint8Array(c);d=c=0;for(b=a.length;d<b;d++){var f=a[d];e.set(f,c);c+=f.length}return e}},F5a={Qw:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
DR:function(a){return[].concat.apply([],a)}};
cp.n6=function(){D5a?(cp.ot=Uint8Array,cp.Wo=Uint16Array,cp.XW=Int32Array,cp.assign(cp,E5a)):(cp.ot=Array,cp.Wo=Array,cp.XW=Array,cp.assign(cp,F5a))};
cp.n6();var G5a=!0;try{new Uint8Array(1)}catch(a){G5a=!1}for(var H5a=new cp.ot(256),I2=0;256>I2;I2++)H5a[I2]=252<=I2?6:248<=I2?5:240<=I2?4:224<=I2?3:192<=I2?2:1;H5a[254]=H5a[254]=1;var Bp={};Bp=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;0!==c;){f=2E3<c?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var Cp={},J2,I5a=[],K2=0;256>K2;K2++){J2=K2;for(var J5a=0;8>J5a;J5a++)J2=J2&1?3988292384^J2>>>1:J2>>>1;I5a[K2]=J2}Cp=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^I5a[(a^b[d])&255];return a^-1};var sp={};sp={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 lp=[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],op=[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],ula=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],jla=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],wp=Array(576);dp(wp);var xp=Array(60);dp(xp);var np=Array(512);dp(np);var kp=Array(256);dp(kp);var mp=Array(29);dp(mp);var pp=Array(30);dp(pp);var rla,sla,tla,qla=!1;var Hp;Hp=[new Gp(0,0,0,0,function(a,b){var c=65535;for(c>a.zl-5&&(c=a.zl-5);;){if(1>=a.Xb){Dp(a);if(0===a.Xb&&0===b)return 1;if(0===a.Xb)break}a.wb+=a.Xb;a.Xb=0;var d=a.Xj+c;if(0===a.wb||a.wb>=d)if(a.Xb=a.wb-d,a.wb=d,yp(a,!1),0===a.Td.oe)return 1;if(a.wb-a.Xj>=a.Ai-262&&(yp(a,!1),0===a.Td.oe))return 1}a.Dh=0;if(4===b)return yp(a,!0),0===a.Td.oe?3:4;a.wb>a.Xj&&yp(a,!1);return 1}),
new Gp(4,4,8,4,Ep),new Gp(4,5,16,8,Ep),new Gp(4,6,32,32,Ep),new Gp(4,4,16,16,Fp),new Gp(8,16,32,32,Fp),new Gp(8,16,128,128,Fp),new Gp(8,32,128,256,Fp),new Gp(32,128,258,1024,Fp),new Gp(32,258,258,4096,Fp)];var pla={};pla=function(){this.input=null;this.Iv=this.Di=this.Su=0;this.Jj=null;this.UN=this.oe=this.by=0;this.msg="";this.state=null;this.BJ=2;this.yd=0};var vla=Object.prototype.toString;
Ip.prototype.push=function(a,b){var c=this.Td,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=Yka(a):"[object ArrayBuffer]"===vla.call(a)?c.input=new Uint8Array(a):c.input=a;c.Su=0;c.Di=c.input.length;do{0===c.oe&&(c.Jj=new cp.ot(d),c.by=0,c.oe=d);a=ola(c,e);if(1!==a&&0!==a)return this.cq(a),this.ended=!0,!1;if(0===c.oe||0===c.Di&&(4===e||2===e))if("string"===this.options.to){var f=cp.wN(c.Jj,c.by);b=f;f=f.length;if(65537>f&&(b.subarray&&G5a||
!b.subarray))b=String.fromCharCode.apply(null,cp.wN(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=cp.wN(c.Jj,c.by),this.chunks.push(b)}while((0<c.Di||0===c.oe)&&1!==a);if(4===e)return(c=this.Td)&&c.state?(d=c.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=tp(c,-2):(c.state=null,a=113===d?tp(c,-3):0)):a=-2,this.cq(a),this.ended=!0,0===a;2===e&&(this.cq(0),c.oe=0);return!0};
Ip.prototype.cq=function(a){0===a&&(this.result="string"===this.options.to?this.chunks.join(""):cp.DR(this.chunks));this.chunks=[];this.err=a;this.msg=this.Td.msg};var Kp="@@redux/INIT"+Jp(),Ala="@@redux/REPLACE"+Jp();var Bla="function"===typeof Symbol&&Symbol.observable||"@@observable";g.v(Lp,g.M);Lp.prototype.getType=function(){return Kg(this,11)};
g.v(Mp,g.M);Mp.prototype.getKey=function(){return lg(this,3)};
var Ela=[2,13,14],zPa=[Lp,2,S4a,4,z2,7,A2,9,A2,10,A2,11,T4a,12,A2,13,S4a,14,g.y2,[Mp,1,z2,2,z2,3,z2,4,z2,5,A2],15,g.x2,16,g.x2,17,A2,1,T4a,3,g.x2,5,g.x2,6,g.x2,8,z2];var rFa=new g.Np("adInfoDialogEndpoint");var eEa=new g.Np("adPingingEndpoint");var xM=new g.Np("adActionInterstitialRenderer");var K5a=new g.Np("adDurationRemainingRenderer");var W_=new g.Np("adHoverTextButtonRenderer");var pFa=new g.Np("adInfoDialogRenderer");var vM=new g.Np("adMessageRenderer");var X_=new g.Np("adPreviewRenderer");var L5a=new g.Np("flyoutCtaRenderer");var M5a=new g.Np("instreamAdPlayerUnderlayRenderer");var O3a=new g.Np("instreamSurveyAdBackgroundImageRenderer");var FZa=new g.Np("instreamSurveyAdPlayerOverlayRenderer");var h0=new g.Np("instreamSurveyAdRenderer"),DK=new g.Np("instreamSurveyAdSingleSelectQuestionRenderer"),EK=new g.Np("instreamSurveyAdMultiSelectQuestionRenderer"),L2=new g.Np("instreamSurveyAdAnswerRenderer"),N5a=new g.Np("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var wM=new g.Np("instreamVideoAdRenderer");var O5a=new g.Np("textOverlayAdContentRenderer"),P5a=new g.Np("enhancedTextOverlayAdContentRenderer"),Q5a=new g.Np("imageOverlayAdContentRenderer");var yM=new g.Np("adIntroRenderer");var OZa=new g.Np("slidingTextPlayerOverlayRenderer");var T_a=new g.Np("surveyTextInterstitialRenderer");var R5a=new g.Np("simpleAdBadgeRenderer");var V_=new g.Np("skipAdRenderer"),S5a=new g.Np("skipButtonRenderer");var T5a=new g.Np("timedPieCountdownRenderer");var aGa={Tba:0,Rba:1,Sba:2};var bGa={Xba:0,Wba:1,Vba:2,Uba:3};var fGa={Qea:0,Pea:1,Oea:2};var GO={sha:0,tha:1,qha:2,pha:3,nha:4,rha:5,oha:6,mha:7};var eGa={dia:0,cia:1,Yha:2,Uha:3,bia:4,eia:5,Xha:6,Tha:7,Wha:8,aia:9,Zha:10,fia:11,Vha:12,gia:13};var IGa={wia:0,jia:1,mia:2,xia:3,kia:4,lia:5,sia:6,uia:7,pia:8,iia:9,ria:10,via:11,qia:12,oia:13,tia:14};var dGa={Hpa:0,Fpa:1,Gpa:2};var HGa={ETa:0,DTa:1,CTa:2,BTa:3};var GGa={LTa:0,FTa:1,GTa:5,HTa:6,JTa:2,KTa:3,ITa:4};var FGa={OTa:0,PTa:1,NTa:2,MTa:3};var EGa={TTa:0,RTa:1,STa:2};var DGa={E6a:0,t6a:1,A6a:2,u6a:3,B6a:4,x6a:5,C6a:6,y6a:7,w6a:8,v6a:9,z6a:10,D6a:11,s6a:12};g.v(Op,g.M);Op.prototype.getType=function(){return g.gg(this,1)};g.v(Pp,g.M);g.v(Qp,g.M);g.v(Rp,g.M);g.v(Sp,g.M);Sp.prototype.j=function(a,b){return g.tg(this,2,a,b)};
var Gla=[2];g.v(Tp,g.M);Tp.prototype.j=function(a,b){return g.tg(this,3,a,b)};
var Hla=[3];g.v(Up,g.M);g.v(Vp,g.M);g.v(Wp,g.M);g.v(Xp,g.M);g.v(Yp,g.M);g.v(Zp,g.M);g.v($p,g.M);g.v(aq,g.M);var EO=[2,3,4,5,6,7,8,9,10,11,12];var kGa={ida:0,yca:2,kda:3,zca:4,xca:5,bda:6,dda:58,Kca:17,rca:18,eda:15,hda:7,Oca:8,gca:10,hca:26,tca:45,vca:11,Jca:14,mda:16,cca:19,ica:20,dca:21,oda:22,jca:23,nda:24,wca:25,Yba:27,Zba:53,Nca:28,sca:30,Sca:31,pca:32,kca:33,Qca:34,Lca:35,Gca:36,eca:37,Yca:38,Xca:39,Cca:41,Hca:42,Eca:43,Dca:44,fca:40,Uca:46,Tca:49,Vca:50,Fca:51,Ica:52,lda:54,fda:55,gda:56,lca:57,Zca:60,qca:67,aca:64,uca:65,mca:68,bca:69,Pca:70,Bca:71,Aca:72,oca:73,nca:75,jda:76,Rca:77,Mca:78,cda:79,Wca:80};var jGa={Cda:0,Bda:1,Ada:2};var lGa={QEa:0,JEa:1,MEa:2,mEa:3,OEa:4,ZDa:5,FEa:6,pEa:7,PEa:8,iEa:9,CEa:10,jEa:11,HEa:12,KDa:13,tEa:14,rEa:15,sEa:16,GEa:17,vEa:18,EEa:19,DEa:20,zEa:21,eEa:22,LDa:23,qEa:24,xEa:25,gEa:26,fEa:27,wEa:28,MDa:29,AEa:30,lEa:31,NEa:32,YDa:33,yEa:34,XDa:35,aEa:36,bEa:37,hEa:38,dEa:39,cEa:40,BEa:41,uEa:42,IEa:43,nEa:44,KEa:45,LEa:46,oEa:47,kEa:70,UDa:48,RDa:49,WDa:50,VDa:51,TDa:52,QDa:53,NDa:54,SDa:55,PDa:56,ODa:57,IDa:58,HDa:59,GDa:60,ADa:61,FDa:62,BDa:63,CDa:64,zDa:65,DDa:66,JDa:67,EDa:68,yDa:69};var $Fa={gha:0,dha:1,cha:18,Yga:2,Rga:3,Xga:9,Sga:10,Vga:14,Tga:4,Qga:5,Uga:6,hha:11,Wga:12,Pga:13,Oga:15,aha:16,eha:17,fha:19,iha:20,bha:21,Zga:7};var mGa={yda:0,zda:1,tda:2,uda:3,vda:4,rda:5,sda:6,wda:7,xda:8};var FO={Xda:0,Mda:1,Wda:3,Uda:4,Tda:5,Nda:25,Yda:6,Kda:7,Eda:8,Pda:9,Dda:12,Oda:22,Rda:23,Vda:24,Sda:13,Zda:14,Qda:15,Fda:16,Ida:17,Gda:18,Hda:19,Jda:20,Lda:21};g.v(bq,g.M);g.v(cq,g.M);cq.prototype.j=function(a,b){return Eg(this,1,bq,a,b)};
var Ila=[1];g.v(dq,g.M);dq.prototype.j=function(a,b){return g.tg(this,2,a,b)};
var Jla=[2];g.v(eq,g.M);var nGa=[1,2];var U5a=new g.Np("confirmDialogEndpoint");var $pa=new g.Np("rawColdConfigGroup");var Zpa=new g.Np("rawHotConfigGroup");var KGa={uRa:0,tRa:1,pRa:2,nRa:3,qRa:4,oRa:5,sRa:6,rRa:7};g.NN=new g.Np("commandExecutorCommand");g.v(fq,g.M);var JO=[1,2,3];g.v(gq,g.M);g.v(hq,g.M);g.v(iq,g.M);g.v(jq,g.M);var IO=[1,2,3];g.v(kq,g.M);kq.prototype.j=function(a,b){return Eg(this,1,lq,a,b)};
g.v(lq,g.M);var Kla=[1];g.v(mq,g.M);mq.prototype.j=function(a,b){return g.tg(this,1,a,b)};
var Lla=[1];g.v(nq,g.M);g.v(oq,g.M);g.v(pq,g.M);g.v(qq,g.M);g.v(rq,g.M);g.v(sq,g.M);g.v(tq,g.M);g.v(uq,g.M);g.v(vq,g.M);g.v(wq,g.M);g.v(xq,g.M);g.v(yq,g.M);g.v(zq,g.M);zq.prototype.j=function(a,b){return Eg(this,1,Aq,a,b)};
g.v(Aq,g.M);g.v(Bq,g.M);g.v(Cq,g.M);g.v(Dq,g.M);Dq.prototype.j=function(a,b){return g.tg(this,1,a,b)};
g.v(Eq,g.M);g.v(Fq,g.M);Fq.prototype.j=function(a,b){return Eg(this,2,Rq,a,b)};
g.v(Gq,g.M);g.v(Mq,g.M);g.v(Nq,g.M);Nq.prototype.getId=function(){return g.gg(this,1)};
g.v(Oq,g.M);Oq.prototype.getType=function(){return g.gg(this,1)};
g.v(Pq,g.M);Pq.prototype.getType=function(){return g.gg(this,1)};
g.v(Qq,g.M);g.v(Rq,g.M);g.v(Sq,g.M);g.v(Tq,g.M);g.v(Uq,g.M);g.v(Vq,g.M);var Mla=[1],LO=[1,2,3],Nla=[1],Ola=[2],xGa=[3,4],NO=[1,2,3],MO=[1,2,3,4],zGa=[1,2],KO=[3,4,5];g.v(Wq,g.M);g.v(Xq,g.M);Xq.prototype.getKey=function(){return g.gg(this,1)};
Xq.prototype.getValue=function(){return Hg(this,2===g.ug(this,V5a)?2:-1)};
Xq.prototype.setValue=function(a){return g.vg(this,2,V5a,a)};
var V5a=[2,3,4,5,6];g.v(Yq,g.M);Yq.prototype.B0=function(){return g.gg(this,3)};
Yq.prototype.C0=function(){return g.gg(this,5)};var Pya={i5a:0,r7a:1,D7a:32,I7a:61,N7a:67,K7a:86,C7a:42,E7a:60,v7a:62,H7a:73,G7a:76,L7a:88,M7a:90,O7a:41,P7a:69,Q7a:70,R7a:71,wKa:2,RKa:27,ANDROID:3,fea:54,gea:14,oea:91,hea:55,iea:24,jea:20,lea:18,nea:21,qea:30,tea:29,uea:28,vea:34,pea:36,mea:38,IOS:5,mza:15,wza:92,nza:40,pza:25,qza:17,rza:19,sza:64,tza:66,uza:26,yza:22,Kza:33,Lza:68,Mza:35,vza:53,xza:37,oza:39,s3a:7,l4a:57,A4a:43,L4a:59,B4a:93,sea:74,S4a:75,T4a:85,U4a:65,W4a:80,X4a:8,q3a:10,a5a:58,Z4a:63,V4a:72,rea:23,m8a:11,n8a:13,Jia:12,r3a:16,
B7a:56,J7a:31,aKa:77,Kwa:84,F7a:87,Mwa:89,Lwa:94,OIa:95};var W5a={WZ:0,CLASSIC:1,xZ:2,pX:3,bX:4,FZ:5,lX:6,pQ:7};g.v(Zq,g.M);g.v($q,g.M);g.v(ar,g.M);g.v(br,g.M);g.v(Qla,g.M);var Pla=[2];g.v(g.cr,g.M);g.cr.prototype.zr=aa(1);g.cr.prototype.getPlayerType=function(){return g.gg(this,36)};
g.cr.prototype.setHomeGroupInfo=function(a){return J(this,Qla,81,a)};
g.cr.prototype.clearLocationPlayabilityToken=function(){return g.I(this,89,void 0,!1)};
var Rla=[9,66,24,32,86,100,101];g.v(dr,g.M);var Sla=[15,26,28];g.v(er,g.M);var Tla=[5];g.v(fr,g.M);fr.prototype.setToken=function(a){return g.I(this,2,a)};g.v(gr,g.M);gr.prototype.setSafetyMode=function(a){return g.I(this,5,a)};
var Ula=[12];g.v(hr,g.M);hr.prototype.B=function(a){return J(this,g.cr,1,a)};
var Vla=[12];var c0=new g.Np("thumbnailLandscapePortraitRenderer");var QGa={CZa:0,BZa:1,cZa:2,dZa:3,eZa:4,fZa:5,gZa:6,hZa:7,iZa:8,jZa:9,kZa:10,lZa:11,mZa:12,nZa:13,oZa:14,pZa:15,qZa:16,rZa:17,sZa:18,tZa:19,uZa:20,xZa:21,vZa:22,wZa:23,yZa:24,zZa:25,AZa:26};var PGa={MZa:0,DZa:1,EZa:2,FZa:3,GZa:4,HZa:5,IZa:6,JZa:7,KZa:8,LZa:9,NZa:10};var AGa={Mha:0,zha:1,Nha:2,Kha:3,wha:4,xha:5,Iha:6,yha:7,Gha:8,Hha:13,Bha:9,Dha:10,Fha:11,Oha:12,Aha:14,Eha:15,Cha:16,Lha:17,Jha:18};var BGa={Sha:0,Rha:1,Qha:2,Pha:3};var LGa={f1a:0,d1a:1,e1a:2};var sGa={Xea:0,Vea:4,Uea:2,Sea:5,Tea:8,Wea:9,Rea:3,Yea:6,Zea:7};var tGa={uja:0,rja:1,sja:2,vja:3,wja:4,tja:5};var rGa={Yja:0,Wja:8,Uja:2,Sja:5,Tja:9,Vja:3,Rja:4,Zja:6,aka:7,Xja:10};var JGa={K6a:0,J6a:1,L6a:2};var X5a={N6a:0,M6a:1};var yHa={u7:0,s7:1,r7:2,t7:3};g.Y5a=new g.Np("changeEngagementPanelVisibilityAction");var FFa=new g.Np("continuationCommand");g.Z5a=new g.Np("openPopupAction");g.M2=new g.Np("webCommandMetadata");var Wza=new g.Np("metadataBadgeRenderer");var EFa=new g.Np("signalServiceEndpoint");var lIa={uba:0,vba:1,pba:2,tba:3,qba:4,rba:5};var mIa={Aba:0,yba:1,wba:2,zba:3,Bba:4,xba:5};g.v(ir,g.M);ir.prototype.getType=function(){return Kg(this,1)};var YO={iAa:0,jAa:1,hAa:2,dAa:3,fAa:4,gAa:5,kAa:6,eAa:7};var $5a={PJa:0,HJa:1,IJa:2,OJa:3,JJa:4,NJa:6,MJa:7,KJa:8,LJa:9};var a6a={FLa:0,CLa:1,ELa:2,DLa:3,BLa:4};var b6a={YPa:0,JPa:1,ZPa:2,XPa:3,WPa:4,VPa:5,UPa:6,MPa:7,KPa:8,QPa:9,dQa:10,LPa:11,SPa:12,bQa:13,cQa:14,TPa:15,PPa:16,OPa:17,RPa:18,NPa:19,aQa:20};var pGa={pQa:0,oQa:86};var ZO={qSa:0,pSa:1,iSa:2,fSa:3,hSa:4,rSa:5,oSa:6,dSa:7,sSa:8,bSa:9,mSa:10,tSa:11,nSa:12,eSa:13,aSa:14,gSa:15,kSa:16,jSa:17,lSa:18,cSa:19};var UJa=new g.Np("innertubeCommand");var pna={cqa:"EMBEDDED_PLAYER_MODE_UNKNOWN",Zpa:"EMBEDDED_PLAYER_MODE_DEFAULT",bqa:"EMBEDDED_PLAYER_MODE_PFP",aqa:"EMBEDDED_PLAYER_MODE_PFL"};var HBa=new g.Np("channelThumbnailEndpoint");var GBa=new g.Np("embeddedPlayerErrorMessageRenderer");var CBa=new g.Np("embeddedPlayerOverlayVideoDetailsRenderer"),IBa=new g.Np("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),JBa=new g.Np("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var hBa=new g.Np("embedsInfoPanelRenderer");var CGa={QFa:0,EFa:1,NFa:2,PFa:3,FFa:4,IFa:5,KFa:6,GFa:7,HFa:8,MFa:9,OFa:10,JFa:11,LFa:12};var c6a=new g.Np("feedbackEndpoint");var d6a=new g.Np("callToActionButtonViewModel");var e6a={yAa:0,zAa:1,xAa:2,sAa:3,rAa:4,tAa:5,vAa:6,uAa:7,wAa:8};var f6a={UAa:0,IAa:1,TAa:2,SAa:3,DAa:4,FAa:5,GAa:6,EAa:7,MAa:8,JAa:9,KAa:10,LAa:16,BAa:11,VAa:12,CAa:13,QAa:14,HAa:15,RAa:17,NAa:18,OAa:19,PAa:20};var g6a={ZAa:0,WAa:1,YAa:2,XAa:3};var h6a={Rxa:0,yxa:1,Sxa:8,Jxa:16,Kxa:17,Nxa:2,Lxa:3,Mxa:4,Bxa:5,zxa:6,Axa:7,Qxa:9,Oxa:10,Pxa:11,Ixa:12,Fxa:13,Hxa:14,Gxa:15,Exa:18,Cxa:19,Dxa:20,xxa:21};var i6a={mPa:0,nPa:1,kPa:2};var r6a={APa:0,wPa:1,yPa:2,vPa:3,xPa:4,zPa:5};var G6a={oga:0,lga:1,nga:2};var H6a={rga:0,pga:1,tga:2,qga:3};var Moa={A7a:"WEB_DISPLAY_MODE_UNKNOWN",w7a:"WEB_DISPLAY_MODE_BROWSER",y7a:"WEB_DISPLAY_MODE_MINIMAL_UI",z7a:"WEB_DISPLAY_MODE_STANDALONE",x7a:"WEB_DISPLAY_MODE_FULLSCREEN"};var IIa={c8:0,F7:1,O7:2,S7:3,Y7:4,Z7:5,d8:6,T7:7,E7:8,L7:9,K7:10,v7:11,N7:12,C7:14,H7:15,R7:16,Q7:17,M7:18,G7:29,I7:19,z7:20,D7:21,b8:22,w7:23,e8:24,J7:25,A7:26,V7:27,B7:28,W7:30,X7:31,P7:32,a8:33,x7:34,U7:35,f8:36,y7:37};var I6a={hja:0,gja:1,fja:2};g.v(jr,g.M);g.v(kr,g.M);var J6a={m$:0,t9:1,e$:4,f$:14,g9:15,g$:17,U8:6,X8:7,Z8:8,Y8:9,e9:5,G9:16,D9:101,d$:20,c$:26,U9:28,k9:104,G8:105,n$:50,b$:88,X9:89,Z9:90,Y9:91,l9:2,x9:92,y9:19,J8:25,W8:29,o9:93,q9:94,p9:95,k$:30,E9:31,v9:3,r9:82,n9:83,m9:84,u9:85,W9:11,o$:27,H9:10,D8:12,F8:13,E8:49,S8:18,C9:21,b9:22,C8:23,a$:24,v8:32,B9:33,y8:34,v$:35,O8:36,O9:37,i9:38,j$:39,h$:40,i$:41,q$:42,T8:43,l$:44,h9:45,a9:46,I9:47,F9:48,s9:51,f9:52,V8:53,V9:54,j9:55,I8:56,N8:57,P8:99,H8:58,L9:59,c9:60,M9:61,J9:62,A9:63,u$:64,r$:65,p$:66,t$:67,
s$:68,u8:69,K9:70,P9:71,Q9:72,S9:73,T9:74,R9:75,L8:76,M8:77,A8:78,Q8:79,w9:80,d9:81,K8:86,B8:87,x8:97,w8:103,z9:98,N9:100,z8:102};var K6a={K$:0,E$:1,G$:2,I$:3,C$:4,x$:5,z$:6,B$:7,H$:8,y$:9,A$:10,F$:13,J$:14,w$:11,D$:12};var L6a={Jaa:0,N$:1,O$:2,Q$:3,X$:4,Daa:42,vaa:9,Eaa:10,V$:11,Baa:12,Aaa:13,faa:43,uaa:14,haa:15,Haa:47,jaa:46,qaa:16,paa:17,R$:18,yaa:19,U$:20,zaa:21,Iaa:22,Faa:23,Gaa:24,T$:25,P$:26,Caa:27,naa:28,saa:38,taa:39,raa:49,xaa:5,iaa:6,W$:7,baa:8,oaa:29,waa:30,maa:31,L$:32,caa:33,aaa:34,Y$:35,Laa:36,eaa:37,Kaa:40,daa:41,M$:44,Z$:45,S$:48};var eIa={Paa:0,Oaa:1,Maa:2,Naa:3};var cIa={Dja:0,Aja:1,zja:2,Cja:3,Bja:4};var M6a={zna:0,xna:1,una:2,yna:3,vna:4,wna:5};var N6a={Cna:0,Ana:1,Bna:2};var O6a={Jna:0,Ina:1,Gna:2,Hna:3,Fna:4};var P6a={Mna:0,Kna:1,Lna:2,Nna:3};var Q6a={Tna:0,Ona:1,Sna:2,Rna:3,Qna:4,Pna:5};var R6a={Zna:0,Yna:1,Una:2};var S6a={Xna:0,Vna:1,Wna:2};var T6a={coa:0,aoa:1,boa:2};var U6a={qoa:0,moa:1,loa:2,goa:3,koa:4,eoa:5,foa:6,noa:7,hoa:8,ooa:9,joa:10,doa:11,ioa:12,poa:13};var V6a={voa:0,toa:1,uoa:2,soa:3,roa:4};var bIa={TCa:0,wCa:1,xCa:2,MBa:3,nCa:4,yCa:5,oCa:6,NBa:7,zCa:8,FBa:9,GBa:10,TBa:11,LBa:12,OBa:13,qCa:14,RBa:15,EBa:16,KCa:17,lCa:18,PBa:19,tCa:20,rCa:21,sCa:22,DBa:23,RCa:25,JCa:26,uDa:61,eCa:35,WBa:36,UBa:37,aCa:38,ZBa:93,cCa:39,bCa:40,iCa:41,QCa:97,fCa:42,dCa:43,jCa:44,kCa:45,IBa:24,JBa:27,KBa:28,nDa:29,pDa:75,oDa:30,kDa:89,qDa:31,rDa:86,lDa:32,mDa:91,YCa:51,aDa:52,jDa:62,cDa:70,gDa:63,eDa:64,ZCa:65,iDa:66,bDa:71,fDa:67,dDa:68,hDa:69,tDa:33,gCa:46,hCa:47,LCa:49,MCa:50,NCa:94,GCa:77,BCa:78,ACa:79,
CCa:80,pCa:53,UCa:54,WCa:55,VCa:56,HCa:57,ICa:96,XCa:58,uCa:59,vCa:60,DCa:72,FCa:84,ECa:92,QBa:73,OCa:74,HBa:76,SCa:81,VBa:82,PCa:83,XBa:85,YBa:95,sDa:87,mCa:88,SBa:90};var VO={ZW:0,Oia:1,BBa:2,pja:3,LZ:4,MZ:5,pTa:6,hUa:7,MQa:8,b_:9,Pia:10,Saa:11,Uaa:12,i7a:13,kba:14,mba:15,cba:16,dba:17,Vaa:18,Yfa:19,Tqa:20,uya:21,dza:22,c_:23,N0a:24,Raa:25,jJa:26,iJa:47,SZ:27,Sfa:28,oTa:29,Qua:30,tya:31,eja:32,i6a:33,a6a:34,X5a:35,g6a:36,h6a:37,d6a:38,e6a:39,f6a:40,Z5a:41,Y5a:42,kga:43,zZ:44,vfa:45,PW:46,i8:48,mX:49,F0a:50,Epa:51,jFa:52,i9a:53};var W6a={wOa:0,lOa:1,qOa:2,oOa:3,pOa:4,kOa:5,uOa:6,vOa:7,jOa:8,sOa:9,mOa:10,nOa:11,rOa:12,tOa:13};var X6a={BOa:0,COa:1,xOa:2,yOa:3,AOa:4,zOa:5};var aIa={YOa:0,UOa:1,QOa:2,ROa:3,MOa:4,HOa:5,JOa:6,IOa:7,LOa:8,XOa:9,GOa:10,WOa:11,VOa:12,TOa:13,SOa:20,NOa:14,POa:15,OOa:16,FOa:17,EOa:19,KOa:18};var fIa={xYa:0,tYa:1,uYa:14,wYa:15,iYa:2,pYa:3,mYa:4,nYa:5,fYa:6,qYa:7,lYa:8,jYa:9,hYa:10,sYa:11,oYa:12,rYa:13,gYa:16,vYa:17,kYa:18};var gIa={c2a:0,Z1a:1,b2a:2,a2a:3,T1a:4,X1a:5,W1a:6,V1a:8,U1a:9,Y1a:7};var UO={m3a:0,d2a:1,D2a:2,g3a:3,b3a:4,l2a:5,N2a:6,t2a:7,Q2a:8,K2a:9,a3a:10,d3a:11,S2a:12,m2a:13,L2a:14,r2a:15,j2a:16,I2a:17,R2a:18,c3a:19,p2a:20,w2a:21,k3a:22,j3a:57,v2a:23,o2a:24,k2a:25,l3a:26,G2a:27,e3a:28,f3a:29,O2a:30,i3a:31,q2a:32,T2a:33,A2a:34,C2a:35,J2a:36,H2a:37,V2a:38,M2a:39,n3a:40,x2a:41,y2a:42,z2a:43,i2a:44,h2a:45,g2a:46,e2a:58,f2a:59,Y2a:47,Z2a:48,s2a:49,U2a:50,X2a:51,W2a:52,F2a:53,n2a:54,h3a:55,B2a:56,P2a:60,E2a:61,u2a:62};g.v(lr,g.M);g.v(mr,g.M);g.v(nr,g.M);g.v(or,g.M);g.v(pr,g.M);g.v(qr,g.M);var iIa=[1,2];g.v(rr,g.M);rr.prototype.getType=function(){return g.gg(this,1)};
var hIa=[3,4];g.v(sr,g.M);sr.prototype.getType=function(){return g.gg(this,2)};
sr.prototype.j=function(a,b){return g.tg(this,5,a,b)};
g.v(tr,g.M);g.k=tr.prototype;g.k.yx=function(){return g.gg(this,1)};
g.k.n_=function(a,b){return Eg(this,2,rr,a,b)};
g.k.o_=function(a,b){return Eg(this,3,rr,a,b)};
g.k.m_=function(a,b){return Eg(this,4,rr,a,b)};
g.k.q_=function(a,b){return Eg(this,5,rr,a,b)};
g.k.p_=function(a,b){return Eg(this,6,rr,a,b)};
var Wla=[5],Xla=[2,3,4,5,6];g.v(ur,g.M);ur.prototype.getType=function(){return g.gg(this,2)};
g.v(vr,g.M);vr.prototype.B=function(a,b){return g.tg(this,2,a,b)};
vr.prototype.j=function(a,b){return Eg(this,4,rr,a,b)};
vr.prototype.J=function(a,b){return Eg(this,5,rr,a,b)};
vr.prototype.I=function(a,b){return Eg(this,6,rr,a,b)};
var Yla=[2,4,5,6];g.v(wr,g.M);g.v(xr,g.M);xr.prototype.j=function(a,b){return Eg(this,1,ur,a,b)};
var Zla=[1];g.v(yr,g.M);yr.prototype.j=function(a,b){return Eg(this,2,zr,a,b)};
g.v(zr,g.M);zr.prototype.j=function(a,b){return g.tg(this,1,a,b)};
g.v(Ar,g.M);Ar.prototype.j=function(a,b){return g.tg(this,1,a,b)};
Ar.prototype.B=function(a,b){return g.tg(this,2,a,b)};
var $la=[2],ama=[1],bma=[1,2];g.v(Br,g.M);g.v(Cr,g.M);Cr.prototype.j=function(a,b){return Eg(this,3,Dr,a,b)};
g.v(Dr,g.M);var cma=[3];g.v(Er,g.M);Er.prototype.Df=function(){return g.gg(this,1)};g.v(Fr,g.M);Fr.prototype.Ef=function(){return g.gg(this,2)};g.v(Gr,g.M);g.v(Hr,g.M);g.v(Ir,g.M);Ir.prototype.getType=function(){return g.gg(this,1)};g.v(Jr,g.M);g.v(Kr,g.M);g.v(Lr,g.M);g.v(Mr,g.M);Mr.prototype.xA=function(){return g.gg(this,4)};g.v(Nr,g.M);g.v(Or,g.M);g.v(Pr,g.M);g.v(Qr,g.M);g.v(Rr,g.M);g.v(Sr,g.M);g.v(Tr,g.M);g.v(Ur,g.M);var N2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];g.v(Vr,g.M);g.v(Wr,g.M);g.v(Xr,g.M);g.v(Yr,g.M);g.v(Zr,g.M);Zr.prototype.getState=function(){return Kg(this,1)};
Zr.prototype.Fc=function(a){return g.I(this,1,a)};g.v($r,g.M);g.v(as,g.M);as.prototype.j=function(a,b){return Eg(this,1,$r,a,b)};
var dma=[1];g.v(bs,g.M);bs.prototype.j=function(a,b){return Eg(this,2,as,a,b)};
bs.prototype.B=function(a,b){return Eg(this,3,Yr,a,b)};
var ema=[2,3];g.v(cs,g.M);cs.prototype.B=function(a,b){return Eg(this,1,bs,a,b)};
cs.prototype.j=function(a,b){return Eg(this,2,Xr,a,b)};
var fma=[1,2];g.v(ds,g.M);g.v(es,g.M);g.v(fs,g.M);g.v(gs,g.M);g.v(hs,g.M);g.v(is,g.M);is.prototype.setConfig=function(a){return J(this,hs,2,a)};g.v(js,g.M);g.v(ks,g.M);g.v(ls,g.M);ls.prototype.j=function(a,b){return g.tg(this,1,a,b)};
var gma=[1];g.v(ms,g.M);ms.prototype.j=function(a,b){return Eg(this,4,ns,a,b)};
ms.prototype.B=function(a,b){return g.tg(this,5,a,b)};
g.v(ns,g.M);ns.prototype.getKey=function(){return Jg(this,1)};
ns.prototype.getValue=function(){return Jg(this,2)};
ns.prototype.setValue=function(a){return g.I(this,2,a)};
var hma=[4,5];g.v(os,g.M);g.v(ps,g.M);g.v(qs,g.M);g.v(rs,g.M);var uA=[2,3,4];g.v(ts,g.M);ts.prototype.getMessage=function(){return Jg(this,1)};g.v(us,g.M);g.v(vs,g.M);g.v(ws,g.M);g.v(xs,g.M);xs.prototype.Vh=function(a,b){return Eg(this,5,ws,a,b)};
var ima=[5];g.v(ys,g.M);g.v(zs,g.M);zs.prototype.B=function(a,b){return Eg(this,19,ar,a,b)};
zs.prototype.j=function(a,b){return Eg(this,20,$q,a,b)};
var jma=[19,20];g.v(As,g.M);g.v(Bs,g.M);g.v(Cs,g.M);Cs.prototype.j=function(a,b){return Eg(this,2,As,a,b)};
Cs.prototype.setConfig=function(a){return J(this,Bs,3,a)};
Cs.prototype.B=function(a,b){return Eg(this,5,As,a,b)};
var kma=[2,5];g.v(Ds,g.M);Ds.prototype.tx=function(){return Ig(g.gg(this,2),0)};g.v(Es,g.M);Es.prototype.j=function(a,b){return Eg(this,9,Ds,a,b)};
var lma=[9];g.v(Fs,g.M);g.v(Gs,g.M);g.v(Hs,g.M);g.v(Is,g.M);g.v(Js,g.M);Js.prototype.getType=function(){return Kg(this,2)};
Js.prototype.j=function(a,b){return Eg(this,3,Is,a,b)};
var mma=[3];g.v(Ks,g.M);Ks.prototype.j=function(a,b){return Eg(this,10,ds,a,b)};
Ks.prototype.B=function(a,b){return Eg(this,17,Es,a,b)};
var nma=[10,17];g.v(Ls,g.M);var vHa={Kea:0,Jea:1,Gea:2,Hea:3,Iea:4};g.v(Ms,g.M);Ms.prototype.qg=function(){return Jg(this,2)};
Ms.prototype.xA=function(){return Jg(this,7)};var cHa={hga:0,gga:1,Zfa:2,aga:3,cga:4,dga:5,ega:6,fga:7};var dHa={Pqa:0,Qqa:3,Rqa:1,Oqa:2};var ZGa={Jra:0,Zqa:1,cra:2,fra:3,gra:4,hra:5,jra:6,kra:7,lra:8,mra:9,nra:10,qra:11,rra:12,sra:13,tra:14,ura:15,vra:16,yra:17,zra:18,Ara:19,Bra:20,Cra:21,Dra:22,Era:23,Fra:24,Kra:25,Lra:26,wra:27,Gra:28,xra:29,pra:30,ira:31,ora:32,Mra:33,Nra:34,Yqa:35,ara:36,Hra:37,Ira:38,dra:39};var bHa={Xta:0,Zra:1,kta:2,Tta:3,kua:4,gta:5,lta:6,esa:7,gsa:8,fsa:9,wta:10,fta:11,eta:12,Eta:13,Ita:14,Uta:15,iua:16,dsa:17,Tra:18,xsa:19,ksa:20,jta:21,qta:22,Vta:23,Ura:24,Vra:25,Bta:26,msa:116,Asa:27,Bsa:28,vta:29,bsa:30,usa:31,ita:32,uta:33,Rra:34,Sra:35,Pra:36,Qra:37,mta:38,nta:39,Hta:40,csa:41,jua:42,zta:43,tta:44,xta:45,hta:46,yta:47,nsa:48,hsa:49,oua:50,zsa:51,ysa:52,isa:53,jsa:54,Rta:55,Qta:56,Pta:57,Sta:58,lsa:59,qsa:60,hua:61,Dta:62,Ata:63,Cta:64,pta:65,Lta:66,Jta:67,Kta:117,Mta:68,vsa:69,
wsa:121,nua:70,tsa:71,Nta:72,Ota:73,Fta:74,Gta:75,ssa:76,rsa:77,sta:78,Wta:79,rta:80,Ora:81,Yra:115,Wra:120,Xra:122,Esa:82,Gsa:83,Vsa:84,Hsa:85,bta:86,Fsa:87,Jsa:88,Psa:89,Ssa:90,Xsa:91,Usa:92,Wsa:93,Dsa:94,Ksa:95,Tsa:96,Msa:97,Lsa:98,Csa:99,Isa:100,Ysa:101,Qsa:102,dta:103,Zsa:104,Nsa:105,ata:106,Rsa:107,Osa:118,Zta:108,fua:109,eua:110,cua:111,gua:112,aua:113,Yta:114};var Y6a={Nia:0,Mia:1,Kia:2,Lia:3};var SIa={xWa:0,cXa:1,hXa:2,RWa:3,SWa:4,TWa:5,jXa:39,kXa:6,fXa:7,bXa:50,iXa:69,dXa:70,eXa:71,UWa:32,VWa:44,WWa:33,gXa:8,XWa:9,YWa:10,aXa:11,ZWa:12,yWa:56,zWa:57,AWa:58,BWa:59,CWa:60,DWa:61,FXa:13,GXa:14,HXa:15,PXa:16,KXa:17,RXa:18,QXa:19,MXa:20,NXa:21,IXa:34,OXa:35,LXa:36,JXa:49,HWa:37,IWa:38,KWa:40,MWa:41,LWa:42,NWa:43,OWa:51,JWa:52,GWa:67,EWa:22,FWa:23,oXa:24,tXa:25,uXa:62,sXa:26,qXa:27,nXa:48,lXa:53,mXa:63,vXa:66,pXa:54,rXa:68,wXa:72,QWa:64,PWa:65,xXa:28,AXa:29,zXa:30,yXa:31,CXa:45,EXa:46,DXa:47,
BXa:55};var PIa={TXa:0,UXa:1,SXa:2};var UIa={XXa:0,WXa:1,VXa:2};var TIa={eYa:0,cYa:1,aYa:2,dYa:3,YXa:4,ZXa:5,bYa:6};var zIa={y0a:0,x0a:1,w0a:2};var yIa={C0a:0,A0a:1,z0a:2,B0a:3};g.v(Ns,g.M);g.v(Os,g.M);g.v(Ps,g.M);g.v(Qs,g.M);g.v(Rs,g.M);g.v(Ss,g.M);Ss.prototype.getFeature=function(){return Kg(this,2)};
Ss.prototype.hasFeature=function(){return null!=g.gg(this,2)};g.v(Ts,g.M);g.v(Us,g.M);g.v(Vs,g.M);Vs.prototype.j=function(a,b){return Eg(this,2,Xs,a,b)};
g.v(Ws,g.M);Ws.prototype.getScreen=function(){return Fg(this,11)};
Ws.prototype.hasScreen=function(){return null!=g.gg(this,11)};
g.v(Xs,g.M);Xs.prototype.getName=function(){return Kg(this,1)};
Xs.prototype.getStatus=function(){return Kg(this,2)};
Xs.prototype.getState=function(){return Kg(this,3)};
Xs.prototype.Fc=function(a){return g.I(this,3,a)};
var oma=[2];g.v(Ys,g.M);g.v(Zs,g.M);Zs.prototype.j=function(a,b){return Eg(this,1,Vs,a,b)};
Zs.prototype.B=function(a,b){return Eg(this,2,Vs,a,b)};
var pma=[1,2];var OIa={wBa:0,uBa:1,vBa:2};var wIa={iGa:0,cGa:1,fGa:2,jGa:3,dGa:4,eGa:5,gGa:6,hGa:7};var xIa={mGa:0,lGa:1,kGa:2};var vIa={yKa:0,zKa:1,xKa:2};var uIa={PKa:0,CKa:1,LKa:2,QKa:3,NKa:4,FKa:5,BKa:6,DKa:7,EKa:8,OKa:9,MKa:10,GKa:11,JKa:12,KKa:13,IKa:14,HKa:15,AKa:16};var rIa={h_a:0,d_a:1,g_a:2,f_a:3,e_a:4};var qIa={l_a:0,j_a:1,k_a:2,i_a:3};var sIa={s_a:0,o_a:1,q_a:2,m_a:3,r_a:4,n_a:5,p_a:6};var pIa={z_a:0,B_a:1,A_a:2,v_a:3,t_a:4,u_a:5,C_a:6,w_a:7,D_a:8,x_a:9,y_a:10};var tIa={G_a:0,F_a:1,E_a:2};var DIa={C3a:0,A3a:1,z3a:2,u3a:3,w3a:4,x3a:5,t3a:6,v3a:7,B3a:8,D3a:9,y3a:10};var CIa={F3a:0,E3a:1};var KIa={b4a:0,G3a:1,a4a:2,Z3a:3,f4a:4,e4a:5,Y3a:19,K3a:6,M3a:7,U3a:8,L3a:24,X3a:25,V3a:20,O3a:21,I3a:22,W3a:23,H3a:9,J3a:10,N3a:11,P3a:12,Q3a:13,R3a:14,T3a:15,S3a:16,c4a:17,d4a:18};var EIa={j4a:0,i4a:1,k4a:2,g4a:3,h4a:4};var AIa={z4a:0,s4a:1,n4a:2,w4a:3,r4a:4,y4a:5,m4a:6,o4a:7,t4a:8,p4a:9,u4a:10,v4a:11,q4a:12,x4a:13};var GIa={G4a:0,E4a:1,C4a:2,D4a:3,F4a:4};var FIa={K4a:0,H4a:1,I4a:2,J4a:3};var BIa={O4a:0,N4a:1,M4a:2};var LIa={R4a:0,P4a:1,Q4a:2};var MIa={D5a:0,C5a:1,B5a:2,z5a:3,A5a:4};var NIa={H5a:0,F5a:1,E5a:2,G5a:3};var Z6a={bja:0,Yia:1,Zia:2,Wia:3,aja:4,Xia:5};var YFa={XZ:0,Iya:1,Bwa:2,Cwa:3,xBa:4,mLa:5,efa:6};var PO={cpa:0,Joa:101,Poa:102,Eoa:103,Hoa:104,Moa:105,Noa:106,Qoa:107,Roa:108,Toa:109,Uoa:110,bpa:111,Ooa:112,Koa:113,Soa:114,Woa:115,dpa:116,Goa:117,Loa:118,epa:119,Xoa:120,Yoa:121,Ioa:122,Foa:123,Voa:124,apa:125,Zoa:126};var GHa={npa:0,kpa:1,lpa:2,ipa:3,jpa:4,hpa:5,mpa:6};var $6a={hqa:0,gqa:1,eqa:2,fqa:3};var a7a={sqa:0,qqa:1,jqa:2,pqa:3,iqa:4,mqa:5,oqa:6,rqa:7,nqa:8,lqa:9,kqa:10};var b7a={uqa:0,vqa:1,tqa:2};g.v($s,g.M);g.v(at,g.M);g.v(bt,g.M);bt.prototype.getState=function(){return Fg(this,1)};
bt.prototype.Fc=function(a){return g.I(this,1,a)};g.v(ct,g.M);g.v(dt,g.M);g.v(et,g.M);g.v(ft,g.M);g.v(gt,g.M);gt.prototype.Ph=function(a){Dg(this,1,a)};g.v(ht,g.M);ht.prototype.gk=function(){return ig(this,gt,2)};g.v(jt,g.M);jt.prototype.getFeature=function(){return Kg(this,1)};
jt.prototype.hasFeature=function(){return null!=g.gg(this,1)};g.v(kt,g.M);g.v(lt,g.M);lt.prototype.qg=function(){return Kg(this,2)};
g.v(mt,g.M);var c7a=[1];g.v(nt,g.M);g.v(ot,g.M);g.v(pt,g.M);pt.prototype.getVideoAspectRatio=function(){var a=void 0===a?0:a;return Ig(mda(this,2),a)};g.v(qt,g.M);g.v(rt,g.M);rt.prototype.setDescription=function(a){return g.I(this,1,a)};g.v(tt,g.M);g.v(ut,g.M);g.v(vt,g.M);vt.prototype.setBroadcastConferenceType=function(a){return g.I(this,4,a)};g.v(wt,g.M);g.v(xt,g.M);g.v(zt,g.M);g.v(At,g.M);g.v(Bt,g.M);Bt.prototype.getId=function(){return Jg(this,1)};g.v(Ct,g.M);g.v(Dt,g.M);g.v(Et,g.M);Et.prototype.j=function(a,b){return Eg(this,5,Dt,a,b)};
var qma=[5];g.v(Ft,g.M);Ft.prototype.j=function(a,b){return Eg(this,27,Gt,a,b)};
g.v(Gt,g.M);g.v(Ht,g.M);var rma=[27];g.v(It,g.M);g.v(Jt,g.M);g.v(Kt,g.M);g.v(Lt,g.M);var O2=[1,2,3,4];g.v(Mt,g.M);g.v(Nt,g.M);g.v(Ot,g.M);g.v(Pt,g.M);g.v(Qt,g.M);g.v(Rt,g.M);g.v(St,g.M);St.prototype.j=function(a,b){return g.tg(this,1,a,b)};
var sma=[1];g.v(Tt,g.M);Tt.prototype.qg=function(){return Kg(this,3)};g.v(Ut,g.M);g.v(Vt,g.M);g.v(Wt,g.M);g.v(Xt,g.M);Xt.prototype.Yf=function(){return g.xg(this,Vt,2===g.ug(this,P2)?2:-1)};
Xt.prototype.setVideoId=function(a){return zg(this,Vt,2,P2,a)};
Xt.prototype.getPlaylistId=function(){return g.xg(this,Ut,4===g.ug(this,P2)?4:-1)};
var P2=[2,3,4,5];g.v(Yt,g.M);Yt.prototype.getType=function(){return Kg(this,1)};
Yt.prototype.Yf=function(){return Jg(this,3)};
Yt.prototype.setVideoId=function(a){return g.I(this,3,a)};g.v(du,g.M);g.v(eu,g.M);g.v(fu,g.M);var nIa=[3];g.v(gu,g.M);g.v(hu,g.M);g.v(iu,g.M);g.v(ju,g.M);g.v(ku,g.M);g.v(lu,g.M);g.v(mu,g.M);g.v(nu,g.M);g.v(ou,g.M);g.v(pu,g.M);pu.prototype.getStarted=function(){return Ig(g.nda(this,1),!1)};g.v(qu,g.M);g.v(ru,g.M);g.v(tu,g.M);tu.prototype.getDuration=function(){return Fg(this,2)};
tu.prototype.Bk=function(a){g.I(this,2,a)};g.v(uu,g.M);g.v(vu,g.M);g.v(wu,g.M);g.v(xu,g.M);g.v(yu,g.M);g.v(zu,g.M);zu.prototype.Wf=function(){return g.xg(this,xu,8)};
zu.prototype.q1=function(){return ig(this,xu,8)};
zu.prototype.getVideoData=function(){return g.xg(this,yu,15)};
zu.prototype.oN=function(a){J(this,yu,15,a)};
var tma=[4];g.v(Au,g.M);Au.prototype.j=function(a){return g.I(this,2,a)};
g.v(Bu,g.M);g.v(Cu,g.M);Cu.prototype.j=function(a){return g.I(this,1,a)};
var wma=[3];g.v(Du,g.M);Du.prototype.j=function(a){return g.I(this,1,a)};
Du.prototype.gk=function(){return ig(this,gt,2)};g.v(Eu,g.M);Eu.prototype.j=function(a){return g.I(this,1,a)};
Eu.prototype.gk=function(){return ig(this,gt,2)};g.v(Fu,g.M);Fu.prototype.j=function(a){return g.I(this,1,a)};
Fu.prototype.gk=function(){return ig(this,gt,2)};g.v(Gu,g.M);Gu.prototype.j=function(a){return g.I(this,1,a)};
Gu.prototype.gk=function(){return ig(this,gt,2)};g.v(Hu,g.M);g.v(Iu,g.M);Iu.prototype.getVisibilityState=function(){return Kg(this,5)};
var yma=[16];g.v(Ju,g.M);g.v(Ku,g.M);Ku.prototype.getPlayerType=function(){return Kg(this,7)};
Ku.prototype.Yf=function(){return Jg(this,19)};
Ku.prototype.setVideoId=function(a){return g.I(this,19,a)};
g.v(Lu,g.M);Lu.prototype.getId=function(){return Jg(this,2)};
var zma=[83,68];g.v(Nu,g.M);g.v(Ou,g.M);Ou.prototype.j=function(a,b){return Eg(this,3,Pu,a,b)};
g.v(Pu,g.M);Pu.prototype.Yf=function(){return Jg(this,1)};
Pu.prototype.setVideoId=function(a){return g.I(this,1,a)};
Pu.prototype.j=function(a,b){return Eg(this,9,Qu,a,b)};
g.v(Qu,g.M);var Ama=[3],Bma=[9];g.v(Ru,g.M);Ru.prototype.Yf=function(){return Jg(this,1)};
Ru.prototype.setVideoId=function(a){return g.I(this,1,a)};g.v(Su,g.M);g.v(Tu,g.M);Tu.prototype.j=function(a,b){return Eg(this,1,Ru,a,b)};
Tu.prototype.B=function(a,b){return Eg(this,2,Su,a,b)};
var Cma=[1,2];g.v(Uu,g.M);g.v(Vu,g.M);Vu.prototype.getId=function(){return Jg(this,1)};
Vu.prototype.j=function(a,b){return g.tg(this,2,a,b)};
var Dma=[2];g.v(Wu,g.M);g.v(Xu,g.M);g.v(Yu,g.M);g.v(Zu,g.M);Zu.prototype.getId=function(){return Jg(this,1)};
Zu.prototype.j=function(a,b){return Eg(this,14,$u,a,b)};
Zu.prototype.B=function(a,b){return Eg(this,17,Xu,a,b)};
g.v($u,g.M);g.v(av,g.M);var Ema=[14,17],Fma=[9];g.v(bv,g.M);bv.prototype.B=function(a,b){return Eg(this,1,Zu,a,b)};
bv.prototype.j=function(a,b){return Eg(this,2,Vu,a,b)};
var Gma=[1,2];g.v(cv,g.M);g.v(dv,g.M);dv.prototype.getOrigin=function(){return Jg(this,3)};g.v(ev,g.M);g.v(fv,g.M);g.v(gv,g.M);gv.prototype.getContext=function(){return g.xg(this,fv,33)};
var pA=[23,24,11,6,7,5,2,3,13,20,21,22,28,32,37,229,241,45,59,225,288,72,73,78,208,156,202,215,74,76,79,80,111,85,91,97,100,102,105,119,126,127,136,146,148,151,157,158,159,163,164,168,444,176,222,383,177,178,179,458,411,184,188,189,190,191,193,194,195,196,197,198,199,200,201,402,320,203,204,205,206,258,259,260,261,327,209,219,226,227,232,233,234,240,244,247,248,249,251,256,257,266,254,255,270,272,278,291,293,300,304,308,309,310,311,313,314,319,321,323,324,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,388,389,403,410,412,429,413,414,415,416,417,418,430,423,424,425,426,427,431,117,439,441,448];var d7a={vva:0,hva:1,kva:2,iva:3,ova:4,jva:5,Xua:6,sva:7,eva:8,Sua:9,fva:10,pva:11,mva:12,Zua:13,Vua:14,Yua:15,uva:16,Tua:17,Uua:18,tva:19,ava:20,Wua:21,rva:22,Ava:23,zva:24,wva:25,gva:26,nva:27,Bva:28,bva:29,Rua:30,yva:31,xva:32,dva:33,Dva:34,cva:35,qva:36,Cva:37};var e7a={hwa:0,Tva:1,Wva:2,Uva:3,Zva:4,Vva:5,Lva:6,ewa:7,Qva:8,Fva:9,Rva:10,bwa:11,Xva:12,Nva:13,Jva:14,Mva:15,gwa:16,Hva:17,Iva:18,fwa:19,Ova:20,Kva:21,dwa:22,lwa:23,kwa:24,iwa:25,Sva:26,Yva:27,mwa:28,Pva:29,Eva:30,jwa:31,Gva:32,owa:33,cwa:34,nwa:35};var f7a={kya:0,jya:1,lya:2};var g7a={jxa:0,hxa:1,dxa:3,fxa:4,gxa:5,ixa:6,exa:7};var h7a={pxa:0,mxa:1,oxa:2,nxa:3,lxa:4,kxa:5};var i7a={eya:0,aya:1,bya:2,cya:3,dya:4};var j7a={qya:0,rya:1,sya:2,pya:3,nya:4,oya:5};var ara={Yya:0,Jya:1,Pya:2,Qya:4,Vya:8,Rya:16,Sya:32,Xya:64,Wya:128,Lya:256,Nya:512,Uya:1024,Mya:2048,Oya:4096,Kya:8192,Tya:16384};var FHa={Dza:0,Cza:1,Bza:2,Aza:4};var EHa={Iza:0,Fza:1,Gza:2,Jza:3,Hza:4,Eza:5};var k7a={wua:0,vua:1,uua:2};var l7a={rHa:0,qHa:1,pHa:2};var m7a={jIa:0,RHa:1,hIa:2,THa:3,ZHa:4,lIa:5,iIa:6,HHa:7,GHa:8,FHa:9,LHa:10,QHa:11,PHa:12,IHa:13,aIa:14,VHa:15,XHa:16,xHa:17,gIa:18,BHa:19,WHa:20,wHa:21,YHa:22,OHa:23,yHa:24,AHa:25,dIa:26,kIa:27,eIa:28,UHa:29,JHa:30,MHa:31,NHa:32,EHa:33,mIa:34,CHa:35,KHa:36,bIa:37,zHa:38,vHa:39,DHa:41,SHa:42,cIa:43,fIa:44};var n7a={vIa:0,uIa:1,tIa:2,sIa:3};var OHa={Vpa:0,Tpa:1,Upa:2,Qpa:3,Rpa:4,Spa:5};var rHa={KNa:0,CNa:1,LNa:2,JNa:4,GNa:8,FNa:16,ENa:32,HNa:64,DNa:128,INa:256};var PHa={dOa:0,YNa:1,cOa:2,VNa:3,NNa:4,TNa:5,ONa:6,PNa:7,RNa:8,WNa:9,aOa:10,ZNa:11,bOa:12,QNa:13,SNa:14,UNa:15,XNa:16,MNa:17};var pHa={nNa:0,kNa:1,lNa:2,mNa:3};var uHa={wNa:0,yNa:1,vNa:2,rNa:3,xNa:4,sNa:5,tNa:6,uNa:7};var TGa={g5a:0,jja:1,WFa:2,sLa:3,uLa:4,vLa:5,pLa:6,V0a:7,LLa:8,KLa:9,qLa:10,tLa:11,D1a:12,Xaa:13,fba:14,Yaa:15,JQa:16,dNa:17,MLa:18,QLa:19,ANa:20,OLa:21,qNa:22,eOa:23,ZLa:24,pNa:25,rLa:26,S0a:27,WZa:28,yTa:29,Ega:30,g9a:31,oNa:32};var SGa={k5a:0,j8:1,gOa:2,fOa:3,SUCCESS:4,D0a:5,xua:6,gTa:7,cxa:9,kja:10,Boa:11,CANCELLED:12,xTa:13,XZa:14,c_a:15,b6a:16};var RGa={R1a:0,I1a:1,N1a:2,M1a:3,J1a:4,K1a:5,E1a:6,Q1a:7,P1a:8,H1a:9,G1a:10,L1a:11,O1a:12,F1a:13};var aHa={yQa:0,vQa:1,xQa:2,wQa:3};var o7a={ORa:0,NRa:1,MRa:2};var p7a={RRa:0,PRa:1,QRa:2};var q7a={OUa:0,PUa:1};var r7a={WUa:0,UUa:1,VUa:2,XUa:3};var s7a={BYa:0,zYa:1,AYa:2};var t7a={b0a:0,X_a:1,Y_a:2,Z_a:3,a0a:4};var tHa={EYa:0,CYa:1,DYa:2};var SHa={bZa:0,YYa:1,ZYa:2,aZa:3};var lHa={eea:0,dea:1,bea:2,cea:3};var JHa={Ofa:0,Ifa:1,Lfa:2,Mfa:3,Kfa:4,Nfa:5,Pfa:6,Jfa:7};var gHa={Oja:0,Nja:1,Pja:2};var WGa={e5a:0,zia:1,Aia:2,yia:3,Bia:4};var VGa={f5a:0,ERa:1,eQa:2};var LHa={Gua:0,Cua:1,yua:2,Fua:3,Aua:4,Dua:5,Bua:6,zua:7,Eua:8};var NHa={hya:0,gya:1,fya:2};var IHa={VFa:0,UFa:1,TFa:2};var KHa={YKa:0,XKa:1,WKa:2};var HHa={dUa:0,bUa:1,cUa:2};var jHa={I0a:0,H0a:1,G0a:2};var u7a={qFa:0,mFa:1,nFa:2,oFa:3,pFa:4,rFa:5};var v7a={HQa:0,EQa:1,CQa:2,zQa:3,DQa:4,FQa:5,AQa:6,BQa:7,GQa:8,IQa:9};var w7a={m1a:0,l1a:1,n1a:2};var x7a={N8a:0,z8a:1,F8a:2,E8a:3,y8a:4,O8a:5,L8a:6,A8a:7,B8a:8,D8a:9,C8a:12,v8a:10,M8a:11,H8a:13,I8a:14,P8a:15,G8a:16,J8a:17,w8a:18,K8a:19,x8a:20,Q8a:21};g.v(hv,g.M);g.v(iv,g.M);iv.prototype.Yf=function(){return Hg(this,1===g.ug(this,Mz)?1:-1)};
iv.prototype.setVideoId=function(a){return g.vg(this,1,Mz,a)};
iv.prototype.getPlaylistId=function(){return Hg(this,2===g.ug(this,Mz)?2:-1)};
var Mz=[1,2];g.v(jv,g.M);jv.prototype.getContext=function(){return g.xg(this,hr,1)};
var Hma=[3];var BJ=new g.Np("changeKeyedMarkersVisibilityCommand");var y7a=new g.Np("changeMarkersVisibilityCommand");var lBa=new g.Np("loadMarkersCommand");var fBa=new g.Np("shoppingOverlayRenderer");var DBa=new g.Np("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var z7a=new g.Np("adFeedbackEndpoint");var yLa=new g.Np("phoneDialerEndpoint");var xLa=new g.Np("sendSmsEndpoint");var BBa=new g.Np("copyTextEndpoint");var A7a=new g.Np("webPlayerShareEntityServiceEndpoint");g.zI=new g.Np("urlEndpoint");g.xI=new g.Np("watchEndpoint");var B7a=new g.Np("watchPlaylistEndpoint");var SO={Dga:0,Cga:1,Bga:2,zga:3,Aga:4};var qHa={JLa:0,HLa:1,ILa:2,GLa:3};var C7a={eMa:0,dMa:1,bMa:2,cMa:3};var D7a={iMa:0,fMa:1,gMa:2,hMa:3,jMa:4};var E7a={ZMa:0,UMa:1,aNa:2,WMa:3,NMa:4,FMa:37,qMa:5,nMa:36,sMa:38,AMa:39,BMa:40,wMa:41,YMa:42,tMa:27,KMa:31,MMa:6,OMa:7,PMa:8,QMa:9,RMa:10,SMa:11,VMa:29,uMa:30,LMa:32,EMa:12,DMa:13,pMa:14,JMa:15,kMa:16,mMa:35,rMa:43,vMa:28,HMa:17,GMa:18,IMa:19,XMa:20,zMa:25,oMa:33,bNa:21,CMa:22,yMa:26,TMa:23,lMa:24,xMa:34};var UHa={hNa:0,fNa:1,eNa:2,gNa:3};var RO={b_a:0,YZa:1,a_a:2,ZZa:3};var UGa={C1a:0,q1a:1,p1a:2,v1a:3,B1a:4,s1a:5,y1a:6,w1a:7,x1a:8,t1a:9,z1a:10,u1a:11,A1a:12};var oHa={zNa:0,aMa:1,NLa:2,VLa:3,WLa:4,TLa:5,ULa:6};var F7a={FUa:0,EUa:1};var G7a={e0a:0,d0a:1,c0a:2,f0a:3};var H7a={j0a:0,i0a:1,h0a:2};var I7a={s0a:0,n0a:1,o0a:2,p0a:5,r0a:7,t0a:8,q0a:9};var J7a={m0a:0,l0a:1,k0a:2};var XJa=new g.Np("compositeVideoOverlayRenderer");var RAa=new g.Np("playerMutedAutoplayOverlayRenderer"),SAa=new g.Np("playerMutedAutoplayEndScreenRenderer");var Qza=new g.Np("unserializedPlayerResponse"),TAa=new g.Np("unserializedPlayerResponse");var K7a=new g.Np("playlistEditEndpoint");g.v(kv,g.M);var L7a=[kv,1,g.x2,2,g.Q4a,3,g.x2];var Q2;g.zJ=new g.Np("buttonRenderer");Q2=new g.Np("toggleButtonRenderer");var QO={h5a:0,vDa:4,fUa:1,Ywa:2,rfa:3,wDa:5,iUa:6,Zwa:7,axa:8,bxa:9};var M7a=new g.Np("resolveUrlCommandMetadata");var N7a=new g.Np("modifyChannelNotificationPreferenceEndpoint");var dEa=new g.Np("pingingEndpoint");var O7a=new g.Np("unsubscribeEndpoint");var P7a={QVa:0,SVa:1,KVa:2,CVa:3,OVa:4,PVa:5,TVa:6,vVa:7,wVa:8,AVa:9,LVa:10,DVa:11,HVa:12,FVa:13,GVa:14,IVa:15,JVa:19,yVa:16,NVa:17,MVa:18,zVa:20,EVa:21,xVa:22,RVa:23,BVa:24};g.PJ=new g.Np("subscribeButtonRenderer");var Q7a=new g.Np("subscribeEndpoint");var mHa={IYa:0,GYa:1,HYa:2};var TJa=new g.Np("buttonViewModel");var JIa={tWa:0,uWa:1,sWa:2,oWa:3,rWa:4,pWa:5,nWa:6,qWa:7};var lza={AFa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",xFa:"LIVING_ROOM_APP_MODE_MAIN",wFa:"LIVING_ROOM_APP_MODE_KIDS",yFa:"LIVING_ROOM_APP_MODE_MUSIC",zFa:"LIVING_ROOM_APP_MODE_UNPLUGGED",vFa:"LIVING_ROOM_APP_MODE_GAMING"};var aBa=new g.Np("autoplaySwitchButtonRenderer");var AI,dBa,bAa,CMa;AI=new g.Np("decoratedPlayerBarRenderer");dBa=new g.Np("chapteredPlayerBarRenderer");bAa=new g.Np("multiMarkersPlayerBarRenderer");CMa=new g.Np("chapterRenderer");g.xMa=new g.Np("markerRenderer");var AJ=new g.Np("desktopOverlayConfigRenderer");var gBa=new g.Np("gatedActionsOverlayViewModel");var AMa=new g.Np("heatMarkerRenderer");var zMa=new g.Np("heatmapRenderer");var kBa=new g.Np("watchToWatchTransitionRenderer");var EBa=new g.Np("playlistPanelRenderer");var yJ=new g.Np("suggestedActionTimeRangeTrigger"),bBa=new g.Np("suggestedActionsRenderer"),cBa=new g.Np("suggestedActionRenderer");var BMa=new g.Np("timedMarkerDecorationRenderer");var R7a={c8a:0,Y7a:1,Z7a:2,b8a:3,a8a:4,X7a:5,W7a:6,S7a:7,U7a:8,V7a:9,T7a:10};var HO={XZ:0,USER:74,Mea:459,TRACK:344,Nea:493,afa:419,Yza:494,yga:337,lJa:237,Txa:236,zoa:3,d8a:78,g8a:248,DJa:79,ESa:246,o8a:247,yLa:382,xLa:383,wLa:384,M0a:235,VIDEO:4,l8a:186,xja:126,V_a:127,Ija:117,ySa:125,XTa:151,qja:6,Nwa:132,Swa:154,Qwa:222,Rwa:155,Owa:221,Pwa:156,U_a:209,T_a:210,W6a:7,USa:124,FYa:96,hLa:97,n7a:93,o7a:275,Afa:110,zfa:120,LRa:121,wya:72,Q6a:351,YVa:495,O6a:377,R6a:378,Lua:496,Mua:497,ZVa:498,Bfa:381,P6a:386,p7a:387,Fea:410,eza:437,Wqa:338,yfa:380,h8:352,sQa:113,tQa:114,g1a:82,
h1a:112,ypa:354,b1a:21,Lpa:375,Zaa:302,Lja:136,xya:85,oba:22,q8a:23,k1a:252,j1a:253,xfa:254,Waa:165,S_a:304,Kpa:408,Tza:421,a1a:422,X6a:423,QTa:463,PLAYLIST:63,U6a:27,T6a:28,V6a:29,J_a:30,M_a:31,L_a:324,N_a:32,Rfa:398,P_a:399,Q_a:400,kLa:411,jLa:413,lLa:414,oLa:415,NSa:39,OSa:143,SSa:144,JSa:40,KSa:145,MSa:146,I6a:504,RSa:325,YQa:262,aRa:263,ZQa:264,dRa:355,eRa:249,gRa:250,fRa:251,Tia:46,KUa:49,MUa:50,Qaa:62,QIa:105,Uza:242,VZa:397,VRa:83,rQa:135,Cea:87,Eea:153,Dea:187,xea:89,wea:88,yea:139,Aea:91,
zea:104,Bea:137,Eia:99,J5a:100,fLa:326,ppa:148,opa:149,H_a:150,I_a:395,gfa:166,mfa:199,lfa:167,ifa:168,pfa:169,qfa:170,jfa:171,kfa:172,nfa:179,ofa:180,k6a:200,K5a:476,l6a:213,cfa:191,cRa:192,UQa:305,VQa:306,iRa:329,TYa:327,UYa:328,PQa:195,QQa:197,uQa:301,KQa:223,LQa:224,Sza:227,lza:396,Zza:356,Wza:490,aAa:394,Gga:230,sfa:297,q6a:298,Rza:342,Apa:346,pua:245,i1a:261,Aya:265,Fya:266,Bya:267,yya:268,zya:269,Eya:270,Cya:271,Dya:272,kFa:303,aFa:391,bFa:503,eFa:277,tFa:499,uFa:500,iFa:501,lFa:278,cFa:489,
Dqa:332,Fqa:333,Bqa:334,Eqa:335,Cqa:336,Dia:340,Oza:341,G6a:349,F6a:420,QSa:281,LSa:282,LUa:286,K_a:288,PSa:291,TSa:292,XEa:295,O_a:296,WEa:299,bba:417,cAa:308,r8a:309,s8a:310,t8a:311,Nba:350,n6a:418,Uxa:424,W5a:425,zLa:429,gLa:430,Xza:426,RZa:460,eLa:427,ATa:428,zTa:461,WYa:464,WIa:431,UIa:432,bJa:433,TIa:434,YIa:435,ZIa:436,VIa:438,aJa:439,cJa:453,XIa:454,RIa:472,DRa:440,FRa:441,JRa:442,BRa:448,CRa:449,GRa:450,KRa:451,IRa:491,POST:445,yRa:446,HRa:447,YRa:456,ALa:483,XRa:458,QUa:480,RUa:502,TUa:481,
SUa:482,Pza:452,bWa:465,cWa:466,Coa:467,WRa:468,Hqa:469,Ria:470,Qia:471,Vza:474,Nza:475,bka:477,Qza:478,Xwa:479,jRa:484,hRa:485,SQa:486,RQa:487,hba:488,Ypa:492,Iqa:505,Jpa:506,Y6a:507};var usa=new g.Np("cipher");var Rza=new g.Np("playerVars");var UAa=new g.Np("playerVars");var R2=g.D.window,S7a,T7a,lv=(null==R2?void 0:null==(S7a=R2.yt)?void 0:S7a.config_)||(null==R2?void 0:null==(T7a=R2.ytcfg)?void 0:T7a.data_)||{};g.Da("yt.config_",lv);var tv=[];var Qma=/^[\w.]*$/,Oma={q:!0,search_query:!0},Nma=String(xv);var Rma=new function(){var a=window.document;this.j=window;this.u=a};
g.Da("yt.ads_.signals_.getAdSignalsString",function(a){return yv(Hv(a))});g.Ra();var Uma="XMLHttpRequest"in g.D?function(){return new XMLHttpRequest}:null;var Wma={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-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},Yma="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.u(y5a)),cna=!1,vDa=Nv;g.v(Rv,Za);Uv.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):1===this.u&&a?(a=a.call(c,this.Ed))&&"function"===typeof a.then?a:Wv(a):2===this.u&&b?(a=b.call(c,this.Ed))&&"function"===typeof a.then?a:Vv(a):this};
Uv.prototype.getValue=function(){return this.Ed};
Uv.prototype.$goog_Thenable=!0;var Xv=!1;var jw=AH||fK;var nna=/^([0-9\.]+):([0-9\.]+)$/;g.v(Bw,Za);Bw.prototype.name="BiscottiError";g.v(Aw,Za);Aw.prototype.name="BiscottiMissingError";var Dw={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Cw=null;var Ew=g.Fa("ytglobal.prefsUserPrefsPrefs_")||{};g.Da("ytglobal.prefsUserPrefsPrefs_",Ew);g.k=g.Fw.prototype;g.k.get=function(a,b){Jw(a);Iw(a);a=void 0!==Ew[a]?Ew[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){Jw(a);Iw(a);if(null==b)throw Error("ExpectedNotNull");Ew[a]=b.toString()};
g.k.remove=function(a){Jw(a);Iw(a);delete Ew[a]};
g.k.save=function(){var a=!0;g.ov("web_secure_pref_cookie_killswitch")&&(a=!1);g.Zv(this.j,this.dump(),63072E3,this.u,a)};
g.k.clear=function(){g.fba(Ew)};
g.k.dump=function(){var a=[],b;for(b in Ew)a.push(b+"="+encodeURIComponent(String(Ew[b])));return a.join("&")};
Ga(g.Fw);var zna={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"},Noa={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_INVALID:31},Ooa={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},Bna={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};Lw.prototype.Uh=function(a,b){return Mw(a,1,b)};
Lw.prototype.y_=function(a){(a=this.j.get(a))&&a()};g.v(Ow,Lw);Ow.prototype.Zl=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Fa("yt.scheduler.instance.cancelJob");b?b(a):g.Mv(a)}};
Ow.prototype.start=function(){var a=g.Fa("yt.scheduler.instance.start");a&&a()};
Ow.prototype.pause=function(){var a=g.Fa("yt.scheduler.instance.pause");a&&a()};
g.Vn=g.Pw();g.v(g.Sw,Error);Vw.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.j)try{this.j.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Oh(b))}catch(f){return}else e=escape(b);g.Zv(a,e,c,this.u)};
Vw.prototype.get=function(a,b){var c=void 0,d=!this.j;if(!d)try{c=this.j.get(a)}catch(e){d=!0}if(d&&(c=g.$v(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
Vw.prototype.remove=function(a){this.j&&this.j.remove(a);g.aw(a,"/",this.u)};var Ww=function(){var a;return function(){a||(a=new Vw("ytidb"));return a}}();var bx=[],Yw,cx=!1;var S2={},Ena=(S2.AUTH_INVALID="No user identifier specified.",S2.EXPLICIT_ABORT="Transaction was explicitly aborted.",S2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",S2.MISSING_INDEX="Index not created.",S2.MISSING_OBJECT_STORES="Object stores not created.",S2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",S2.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",S2.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",S2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",S2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",S2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",S2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",S2),T2={},Fna=(T2.AUTH_INVALID="ERROR",T2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",T2.EXPLICIT_ABORT="IGNORED",
T2.IDB_NOT_SUPPORTED="ERROR",T2.MISSING_INDEX="WARNING",T2.MISSING_OBJECT_STORES="ERROR",T2.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",T2.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",T2.QUOTA_EXCEEDED="WARNING",T2.QUOTA_MAYBE_EXCEEDED="WARNING",T2.UNKNOWN_ABORT="WARNING",T2.INCOMPATIBLE_DB_VERSION="WARNING",T2),U2={},Gna=(U2.AUTH_INVALID=!1,U2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,U2.EXPLICIT_ABORT=!1,U2.IDB_NOT_SUPPORTED=!1,U2.MISSING_INDEX=!1,U2.MISSING_OBJECT_STORES=!1,U2.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,U2.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,U2.QUOTA_EXCEEDED=!1,U2.QUOTA_MAYBE_EXCEEDED=!0,U2.UNKNOWN_ABORT=!0,U2.INCOMPATIBLE_DB_VERSION=!1,U2);g.v(g.hx,g.Sw);g.v(ix,g.hx);g.v(jx,Error);var Hna=["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.ox.all=function(a){return new g.ox(new nx(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Mv:0};f.Mv<a.length;f={Mv:f.Mv},++f.Mv)g.ox.resolve(a[f.Mv]).then(function(h){return function(l){d[h.Mv]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.ox.resolve=function(a){return new g.ox(new nx(function(b,c){a instanceof g.ox?a.then(b,c):b(a)}))};
g.ox.reject=function(a){return new g.ox(new nx(function(b,c){c(a)}))};
g.ox.prototype.then=function(a,b){var c=this,d=null!=a?a:Jna,e=null!=b?b:Ina;return new g.ox(new nx(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){Kna(c,c,d,f,h)}),c.onRejected.push(function(){Lna(c,c,e,f,h)})):"FULFILLED"===c.state.status?Kna(c,c,d,f,h):"REJECTED"===c.state.status&&Lna(c,c,e,f,h)}))};
g.ox.prototype.catch=function(a){return this.then(void 0,a)};g.k=Ona.prototype;g.k.advance=function(a){this.cursor.advance(a);return sx(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return sx(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return sx(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.HE=function(){return this.cursor.primaryKey};var V2;V2=window;g.R=V2.ytcsi&&V2.ytcsi.now?V2.ytcsi.now:V2.performance&&V2.performance.timing&&V2.performance.now&&V2.performance.timing.navigationStart?function(){return V2.performance.timing.navigationStart+V2.performance.now()}:function(){return(new Date).getTime()};g.k=Pna.prototype;g.k.add=function(a,b,c){return g.wx(this,[a],{mode:"readwrite",Ub:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.wx(this,[a],{mode:"readwrite",Ub:!0},function(b){return b.objectStore(a).clear()})};
g.k.close=function(){this.j.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return g.wx(this,[a],{mode:"readonly",Ub:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.wx(this,[a],{mode:"readwrite",Ub:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.wx(this,[a],{mode:"readonly",Ub:!0},function(c){return c.objectStore(a).get(b)})};
g.k.getAll=function(a,b,c){return g.wx(this,[a],{mode:"readonly",Ub:!0},function(d){return d.objectStore(a).getAll(b,c)})};
g.k.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
g.k.getName=function(){return this.j.name};
g.k=tx.prototype;g.k.add=function(a,b){return qx(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return qx(this.j.clear()).then(function(){})};
g.k.count=function(a){return qx(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Tna(this,a):qx(this.j.delete(a))};
g.k.get=function(a){return qx(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?qx(this.j.getAll(a,b)):Una(this,a,b)};
g.k.index=function(a){try{return new Yna(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new jx(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
zx.prototype.abort=function(){this.j.abort();this.u=!0;throw new g.hx("EXPLICIT_ABORT");};
zx.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.B.get(a);b||(b=new tx(a),this.B.set(a,b));return b};
g.k=Yna.prototype;g.k.count=function(a){return qx(this.j.count(a))};
g.k.delete=function(a){return g.Dx(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return qx(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?qx(this.j.getAll(a,b)):Zna(this,a,b)};
g.k.getKey=function(a){return qx(this.j.getKey(a))};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
g.k=$na.prototype;g.k.advance=function(a){this.cursor.advance(a);return Cx(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return Cx(this.request)};
g.k.delete=function(){return qx(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.HE=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return qx(this.cursor.update(a))};Fx.prototype.u=function(a,b,c){c=void 0===c?{}:c;return boa(a,b,c)};
Fx.prototype.delete=function(a){a=void 0===a?{}:a;return Ex(this.name,a)};
Fx.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,w,x;return g.A(function(z){switch(z.j){case 1:return h=null!=(f=Error().stack)?f:"",g.qa(z,2),g.y(z,c.u(c.name,c.options.version,e),4);case 4:l=z.u;for(var B=c.options,C=[],G=g.t(Object.keys(B.bq)),F=G.next();!F.done;F=G.next()){F=F.value;var K=B.bq[F],L=void 0===K.W5?Number.MAX_VALUE:K.W5;!(l.j.version>=K.Xl)||l.j.version>=L||l.j.objectStoreNames.contains(F)||C.push(F)}m=C;if(0===m.length){z.Ia(5);break}n=Object.keys(c.options.bq);p=l.objectStoreNames();
if(c.D<g.pv("ytidb_reopen_db_retries",0))return c.D++,l.close(),dx(new g.hx("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),z.return(a());if(!(c.C<g.pv("ytidb_remake_db_retries",1))){z.Ia(6);break}c.C++;return g.y(z,c.delete(),7);case 7:return dx(new g.hx("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),z.return(a());case 6:throw new ix(p,n);case 5:return z.return(l);case 2:q=g.ua(z);if(q instanceof
DOMException?"VersionError"!==q.name:"DOMError"in self&&q instanceof DOMError?"VersionError"!==q.name:!(q instanceof Object&&"message"in q)||"An attempt was made to open a database using a lower version than the existing version."!==q.message){z.Ia(8);break}return g.y(z,c.u(c.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:r=z.u;w=r.j.version;if(void 0!==c.options.version&&w>c.options.version+1)throw r.close(),c.B=!1,coa(c,w);return z.return(r);case 8:throw b(),q instanceof Error&&!g.ov("ytidb_async_stack_killswitch")&&
(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),lx(q,c.name,"",null!=(x=c.options.version)?x:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.B)throw coa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,F6:b,upgrade:this.options.upgrade};return this.j=d=a()};var Hx=new Fx("YtIdbMeta",{bq:{databases:{Xl:1}},upgrade:function(a,b){b(1)&&g.ux(a,"databases",{keyPath:"actualName"})}});var Lx,Kx=new function(){}(new function(){});new g.Mi;g.v(Ox,Fx);Ox.prototype.u=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?loa:koa)(a,b,Object.assign({},c))};
Ox.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?poa:moa)(this.name,a)};var U7a={},roa=g.Px("ytGcfConfig",{bq:(U7a.coldConfigStore={Xl:1},U7a.hotConfigStore={Xl:1},U7a),shared:!1,upgrade:function(a,b){b(1)&&(g.Ax(g.ux(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Ax(g.ux(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.k=cy.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(by(this)&&this.Mf){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Ug.set(d,this.sf).then(function(e){d.id=e;c.Hg.Fh()&&c.eB(d)}).catch(function(e){c.eB(d);
dy(c,e)})}else this.oq(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(by(this)&&this.Mf){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.eb&&this.eb("nwl_skip_retry")&&(e.skipRetry=c);if(this.Hg.Fh()||this.eb&&this.eb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.A(function(m){if(1==m.j)return g.y(m,d.Ug.set(e,d.sf).catch(function(n){dy(d,n)}),2);
f(h,l);g.pa(m)})}}this.oq(a,b,e.skipRetry)}else this.Ug.set(e,this.sf).catch(function(h){d.oq(a,b,e.skipRetry);
dy(d,h)})}else this.oq(a,b,this.eb&&this.eb("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(by(this)&&this.Mf){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(h,l){void 0!==d.id?c.Ug.jx(d.id,c.sf):e=!0;c.Hg.Ru&&c.eb&&c.eb("vss_network_hint")&&c.Hg.Ru(!0);f(h,l)};
this.oq(d.url,d.options);this.Ug.set(d,this.sf).then(function(h){d.id=h;e&&c.Ug.jx(d.id,c.sf)}).catch(function(h){dy(c,h)})}else this.oq(a,b)};
g.k.Ry=function(){var a=this;if(!by(this))throw g.mx("throttleSend");this.j||(this.j=this.Cm.Uh(function(){var b;return g.A(function(c){if(1==c.j)return g.y(c,a.Ug.YR("NEW",a.sf),2);if(3!=c.j)return b=c.u,b?g.y(c,a.eB(b),3):(a.gJ(),c.return());a.j&&(a.j=0,a.Ry());g.pa(c)})},this.TV))};
g.k.gJ=function(){this.Cm.Zl(this.j);this.j=0};
g.k.eB=function(a){var b=this,c,d;return g.A(function(e){switch(e.j){case 1:if(!by(b))throw c=g.mx("immediateSend"),c;if(void 0===a.id){e.Ia(2);break}return g.y(e,b.Ug.S1(a.id,b.sf),3);case 3:if(d=e.u){if(b.eb&&!b.eb("nwl_send_from_memory_when_online")||void 0===b.eb)a=d}else b.Ex(Error("The request cannot be found in the database."));case 2:if(b.xG(a,b.eV)){e.Ia(4);break}b.Ex(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Ia(5);break}return g.y(e,b.Ug.jx(a.id,
b.sf),5);case 5:return e.return();case 4:a.skipRetry||(a=Uoa(b,a));if(!a){e.Ia(0);break}if(!a.skipRetry||void 0===a.id){e.Ia(8);break}return g.y(e,b.Ug.jx(a.id,b.sf),8);case 8:b.oq(a.url,a.options,!!a.skipRetry),g.pa(e)}})};
g.k.xG=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
g.k.AG=function(){var a=this;if(!by(this))throw g.mx("retryQueuedRequests");this.Ug.YR("QUEUED",this.sf).then(function(b){b&&!a.xG(b,a.YU)?a.Cm.Uh(function(){return g.A(function(c){if(1==c.j)return void 0===b.id?c.Ia(2):g.y(c,a.Ug.WM(b.id,a.sf),2);a.AG();g.pa(c)})}):a.Hg.Fh()&&a.Ry()})};ey.prototype.El=function(){return{version:this.version,args:this.args}};fy.prototype.toString=function(){return this.topic};var V7a=g.Fa("ytPubsub2Pubsub2Instance")||new g.Mo;g.Mo.prototype.subscribe=g.Mo.prototype.subscribe;g.Mo.prototype.unsubscribeByKey=g.Mo.prototype.rh;g.Mo.prototype.publish=g.Mo.prototype.ma;g.Mo.prototype.clear=g.Mo.prototype.clear;g.Da("ytPubsub2Pubsub2Instance",V7a);var iy=g.Fa("ytPubsub2Pubsub2SubscribedKeys")||{};g.Da("ytPubsub2Pubsub2SubscribedKeys",iy);var jy=g.Fa("ytPubsub2Pubsub2TopicToKeys")||{};g.Da("ytPubsub2Pubsub2TopicToKeys",jy);var Voa=g.Fa("ytPubsub2Pubsub2IsAsync")||{};
g.Da("ytPubsub2Pubsub2IsAsync",Voa);g.Da("ytPubsub2Pubsub2SkipSubKey",null);var yy;var W7a={},fpa=g.Px("ServiceWorkerLogsDatabase",{bq:(W7a.SWHealthLog={Xl:1},W7a),shared:!0,upgrade:function(a,b){b(1)&&g.Ax(g.ux(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var By={},lpa=0;Cy.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
Cy.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null};
Cy.prototype.removeParams=function(a){return a.split("?")[0]};
Cy.prototype.removeParams=Cy.prototype.removeParams;Cy.prototype.isEndpointCFR=Cy.prototype.isEndpointCFR;Cy.prototype.requestComplete=Cy.prototype.requestComplete;Cy.getInstance=Dy;var Ey;g.v(Gy,g.rd);g.k=Gy.prototype;g.k.Fh=function(){return this.j.Fh()};
g.k.Ru=function(a){this.j.j=a};
g.k.I0=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.e0=function(){this.u=!0};
g.k.Qa=function(a,b){return this.j.Qa(a,b)};
g.k.DG=function(a){a=Tn(this.j,a);a.then(function(b){g.ov("use_cfr_monitor")&&Dy().requestComplete("generate_204",b)});
return a};
Gy.prototype.sendNetworkCheckRequest=Gy.prototype.DG;Gy.prototype.listen=Gy.prototype.Qa;Gy.prototype.enableErrorFlushing=Gy.prototype.e0;Gy.prototype.getWindowStatus=Gy.prototype.I0;Gy.prototype.networkStatusHint=Gy.prototype.Ru;Gy.prototype.isNetworkAvailable=Gy.prototype.Fh;Gy.getInstance=npa;g.v(g.Hy,g.rd);g.Hy.prototype.Fh=function(){var a=g.Fa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.u)():!0};
g.Hy.prototype.Ru=function(a){var b=g.Fa("yt.networkStatusManager.instance.networkStatusHint").bind(this.u);b&&b(a)};
g.Hy.prototype.DG=function(a){var b=this,c;return g.A(function(d){c=g.Fa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.u);return g.ov("skip_network_check_if_cfr")&&Dy().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Ru((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Fh())})):c?d.return(c(a)):d.return(!0)})};var Iy;g.v(Jy,cy);Jy.prototype.writeThenSend=function(a,b){b||(b={});g.Uw()||(this.Mf=!1);cy.prototype.writeThenSend.call(this,a,b)};
Jy.prototype.sendThenWrite=function(a,b,c){b||(b={});g.Uw()||(this.Mf=!1);cy.prototype.sendThenWrite.call(this,a,b,c)};
Jy.prototype.sendAndWrite=function(a,b){b||(b={});g.Uw()||(this.Mf=!1);cy.prototype.sendAndWrite.call(this,a,b)};
Jy.prototype.awaitInitialization=function(){return this.u.promise};var spa=g.D.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Da("ytNetworklessLoggingInitializationOptions",spa);g.Ly.prototype.isReady=function(){!this.config_&&Eoa()&&(this.config_=g.Zx());return!!this.config_};var X7a=0,Ny=g.Fc?"webkit":Bl?"moz":g.Je?"ms":g.rH?"o":"",Y7a=g.Fa("ytDomDomGetNextId")||function(){return++X7a};
g.Da("ytDomDomGetNextId",Y7a);var upa={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};Py.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Py.prototype.PS=function(){return this.event?!1===this.event.returnValue:!1};
Py.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Py.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Qy=g.D.ytEventsEventsListeners||{};g.Da("ytEventsEventsListeners",Qy);var xpa=g.D.ytEventsEventsCounter||{count:0};g.Da("ytEventsEventsCounter",xpa);var sqa=wd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),ypa=wd(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var hH=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.Sa(az,g.E);az.prototype.Z=function(a){void 0===a.j&&vpa(a);var b=a.j;void 0===a.u&&vpa(a);this.j=new g.he(b,a.u)};
az.prototype.Ir=function(){return this.j||new g.he};
az.prototype.ea=function(){if(this.j){var a=hH();if(0!=this.C){var b=this.I,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5<Math.abs((d-this.D)/this.D)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.J();this.D=d}this.C=a;this.I=this.j;this.B=(this.B+1)%4}};
az.prototype.ra=function(){window.clearInterval(this.T);g.Sy(this.oa)};var ez={};var Z7a,hz,jz;Z7a=g.D.ytPubsubPubsubInstance||new g.Mo;hz=g.D.ytPubsubPubsubSubscribedKeys||{};jz=g.D.ytPubsubPubsubTopicToKeys||{};g.iz=g.D.ytPubsubPubsubIsSynchronous||{};g.Mo.prototype.subscribe=g.Mo.prototype.subscribe;g.Mo.prototype.unsubscribeByKey=g.Mo.prototype.rh;g.Mo.prototype.publish=g.Mo.prototype.ma;g.Mo.prototype.clear=g.Mo.prototype.clear;g.Da("ytPubsubPubsubInstance",Z7a);g.Da("ytPubsubPubsubTopicToKeys",jz);g.Da("ytPubsubPubsubIsSynchronous",g.iz);
g.Da("ytPubsubPubsubSubscribedKeys",hz);var qz=Symbol("injectionDeps");nz.prototype.toString=function(){return"InjectionToken("+this.name+")"};
Fpa.prototype.resolve=function(a){return a instanceof oz?rz(this,a.key,[],!0):rz(this,a,[])};var sz;uz.prototype.storePayload=function(a,b){a=vz(a);this.store[a]?this.store[a].push(b):(this.j={},this.store[a]=[b]);this.u++;return a};
uz.prototype.extractMatchingEntries=function(a){a=Hpa(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.u(this.store[a[c]])),delete this.store[a[c]]);this.u-=b.length;return b};
uz.prototype.getSequenceCount=function(a){a=Hpa(this,a);for(var b=0,c=0;c<a.length;c++)b+=this.store[a[c]].length||0;return b};
uz.prototype.getSequenceCount=uz.prototype.getSequenceCount;uz.prototype.extractMatchingEntries=uz.prototype.extractMatchingEntries;uz.prototype.storePayload=uz.prototype.storePayload;var Ppa=g.pv("initial_gel_batch_timeout",2E3),Opa=g.pv("gel_queue_timeout_max_ms",6E4),Ypa=Math.pow(2,16)-1,Ez=void 0,Gz=new Ipa,Fz=new Ipa,Hz,Qz=!0,Cz=g.D.ytLoggingTransportGELQueue_||new Map;g.Da("ytLoggingTransportGELQueue_",Cz);var Dz=g.D.ytLoggingTransportGELProtoQueue_||new Map;g.Da("ytLoggingTransportGELProtoQueue_",Dz);var Oz=g.D.ytLoggingTransportTokensToCttTargetIds_||{};g.Da("ytLoggingTransportTokensToCttTargetIds_",Oz);var Nz=g.D.ytLoggingTransportTokensToJspbCttTargetIds_||{};
g.Da("ytLoggingTransportTokensToJspbCttTargetIds_",Nz);var Az={};var Tz=g.D.ytLoggingGelSequenceIdObj_||{};g.Da("ytLoggingGelSequenceIdObj_",Tz);var Vz,Wz,fqa,hqa=g.Ly,eqa=!1,Yz=[];var kqa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var nqa=eaa(["data-"]),qqa={};g.v(eA,g.E);eA.prototype.S=function(a,b,c,d,e){c=g.vv((0,g.Oa)(c,d||this.gb));c={target:a,name:b,callback:c};var f;e&&sqa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.J.push(c);return c};
eA.prototype.Dc=function(a){for(var b=0;b<this.J.length;b++)if(this.J[b]==a){this.J.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
eA.prototype.ra=function(){g.gA(this);g.E.prototype.ra.call(this)};hA.prototype.clone=function(){var a=new hA,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Ia(c)?g.Yc(c):c}return a};var pJa=["att/get"],mKa=["embedded_player"],$7a=["share/get_web_player_share_panel"],a8a=["feedback"],b8a=["notification/modify_channel_preference"],oWa=["player"],c8a=["browse/edit_playlist"],d8a=["subscription/subscribe"],e8a=["subscription/unsubscribe"],sWa=["next","unplugged/watch_next"];var iDa={hia:3611,o7:27686,q7:85013,g8:23462,l8:157557,m8:42016,n8:62407,o8:26926,k8:43781,q8:51236,r8:79148,s8:50160,t8:77504,Pba:153587,pda:87907,qda:18630,Lea:54445,bfa:80935,dfa:152172,Cfa:105675,Dfa:150723,Efa:37521,Ffa:147285,Gfa:47786,Qfa:98349,Tfa:168271,Ufa:168954,Vfa:168277,Wfa:168273,Xfa:168270,iga:123695,xga:6827,Fga:29434,uha:7282,vha:124448,Via:32276,Uia:76278,cja:147868,dja:147869,ija:93911,lja:106531,mja:27259,nja:27262,oja:27263,Fja:21759,Gja:27107,Hja:62936,Jja:160866,Kja:49568,
Qja:160789,cka:38408,dka:80637,fka:68727,gka:68728,hka:80353,ika:80356,jka:74610,kka:45707,lka:83962,mka:83970,nka:46713,oka:166591,pka:89711,qka:74612,rka:155792,ska:93265,tka:74611,uka:131380,wka:128979,xka:139311,yka:128978,vka:131391,zka:105350,Bka:139312,Cka:134800,Aka:131392,Eka:113533,Fka:93252,Gka:99357,Ika:94521,Jka:114252,Kka:113532,Lka:94522,Hka:94583,Mka:88E3,Nka:139580,Oka:93253,Pka:93254,Qka:94387,Rka:94388,Ska:93255,Tka:97424,Dka:72502,Uka:110111,Vka:76019,Xka:117092,Yka:117093,Wka:89431,
Zka:110466,ala:77240,dla:60508,ela:148123,fla:148124,gla:137401,hla:137402,ila:137046,jla:73393,kla:113534,lla:92098,mla:131381,nla:84517,ola:83759,qla:162711,rla:162712,sla:80357,tla:86113,ula:72598,vla:168413,wla:72733,xla:107349,yla:124275,zla:118203,Ala:133275,Bla:160157,Cla:152569,Dla:156651,Ela:133274,Fla:160159,Gla:160158,Hla:133272,Ila:133273,Jla:133276,Kla:144507,Lla:143247,Mla:156652,Nla:143248,Ola:143249,Pla:143250,Qla:143251,Rla:156653,Sla:144401,Ula:117431,Tla:133797,Vla:153964,Wla:128572,
Xla:133405,Yla:117429,Zla:117430,ama:117432,bma:120080,cma:117259,ema:156655,fma:156654,gma:121692,hma:145656,jma:156656,kma:145655,lma:145653,mma:145654,nma:145657,oma:132972,pma:133051,qma:133658,rma:132971,tma:97615,vma:143359,uma:143356,xma:143361,wma:143358,zma:143360,yma:143357,Ama:142303,Bma:143353,Cma:143354,Dma:144479,Ema:143355,Fma:31402,Hma:133624,Ima:146477,Jma:133623,Kma:133622,Gma:133621,Lma:84774,Nma:160801,Mma:95117,Oma:150497,Pma:98930,Qma:98931,Rma:98932,Sma:153320,Tma:153321,Uma:43347,
Vma:129889,Wma:149123,Xma:45474,Yma:100352,Zma:84758,ana:98443,bna:117985,cna:74613,dna:155911,ena:74614,fna:64502,gna:136032,hna:74615,ina:74616,jna:122224,kna:74617,lna:77820,mna:74618,nna:93278,ona:93274,pna:93275,qna:93276,rna:22110,sna:29433,woa:133798,Aoa:132295,Doa:120541,rpa:82047,spa:113550,tpa:75836,upa:75837,Bpa:42352,Mpa:84512,Npa:76065,Ppa:75989,wqa:51879,xqa:16623,yqa:32594,zqa:27240,Gqa:32633,sua:74858,Hua:156999,Jua:3945,Iua:16989,Kua:45520,Nua:25488,Oua:25492,Pua:25494,qwa:55760,
rwa:14057,swa:18451,twa:57204,uwa:57203,vwa:17897,wwa:57205,xwa:18198,ywa:17898,zwa:17909,Awa:43980,Dwa:46220,Twa:11721,Vwa:147994,qxa:49954,vxa:96369,wxa:3854,iya:151633,vya:56251,nX:159108,Gya:25624,Hya:152036,gza:16906,hza:99999,jza:68172,kza:27068,lAa:47973,mAa:72773,nAa:26970,oAa:26971,pAa:96805,qAa:17752,AAa:73233,aBa:109512,bBa:22256,cBa:14115,dBa:22696,eBa:89278,fBa:89277,gBa:109513,hBa:43278,iBa:43459,jBa:43464,kBa:89279,lBa:43717,mBa:55764,nBa:22255,oBa:147912,pBa:89281,qBa:40963,rBa:43277,
sBa:167701,tBa:43442,zBa:91824,CBa:120137,REa:96367,SEa:36850,TEa:72694,UEa:37414,VEa:36851,ZEa:124863,YEa:121343,dFa:73491,fFa:54473,gFa:166861,hFa:43375,sFa:46674,XFa:143815,YFa:139095,ZFa:144402,aGa:149968,bGa:149969,nGa:32473,oGa:72901,pGa:72906,qGa:50947,rGa:50612,sGa:50613,tGa:50942,uGa:84938,vGa:84943,wGa:84939,xGa:84941,yGa:84944,zGa:84940,AGa:84942,BGa:35585,CGa:51926,DGa:79983,EGa:63238,FGa:18921,GGa:63241,HGa:57893,IGa:41182,JGa:135732,KGa:33424,LGa:22207,MGa:42993,NGa:36229,OGa:22206,
PGa:22205,QGa:18993,RGa:19001,SGa:18990,TGa:18991,UGa:18997,VGa:18725,WGa:19003,XGa:36874,YGa:44763,ZGa:33427,aHa:67793,bHa:22182,cHa:37091,dHa:34650,eHa:50617,fHa:47261,gHa:22287,hHa:25144,iHa:97917,kHa:62397,lHa:150871,mHa:150874,nHa:125598,oHa:137935,sHa:36961,tHa:108035,uHa:27426,nIa:27857,oIa:27846,pIa:27854,qIa:69692,rIa:61411,wIa:39299,xIa:38696,yIa:62520,zIa:36382,AIa:108701,BIa:50663,CIa:36387,DIa:14908,EIa:37533,FIa:105443,GIa:61635,HIa:62274,IIa:161670,JIa:133818,KIa:65702,LIa:65703,MIa:65701,
NIa:76256,SIa:166382,dJa:37671,eJa:49953,oJa:36216,pJa:28237,qJa:39553,rJa:29222,sJa:26107,tJa:38050,uJa:26108,wJa:120745,vJa:26109,xJa:26110,yJa:66881,zJa:28236,AJa:14586,FJa:160598,QJa:57929,SJa:74723,TJa:44098,UJa:44099,XJa:23528,YJa:61699,VJa:134104,WJa:134103,ZJa:59149,bKa:101951,cKa:97346,dKa:118051,eKa:95102,fKa:64882,gKa:119505,hKa:63595,iKa:63349,jKa:95101,kKa:75240,lKa:27039,mKa:68823,nKa:21537,oKa:83464,pKa:75707,qKa:170215,rKa:83113,sKa:101952,tKa:101953,vKa:79610,aLa:125755,bLa:24402,
cLa:24400,dLa:32925,nLa:57173,iLa:156421,PLa:122502,RLa:145268,SLa:138480,XLa:64423,YLa:64424,cNa:33986,iNa:100828,jNa:129089,BNa:21409,jPa:135155,lPa:135156,oPa:135157,pPa:135158,qPa:158225,rPa:135159,sPa:135160,tPa:167651,uPa:135161,CPa:135162,DPa:135163,BPa:158226,EPa:158227,FPa:135164,GPa:135165,HPa:135166,gPa:11070,hPa:11074,iPa:17880,IPa:14001,gQa:30709,hQa:30707,iQa:30711,jQa:30710,kQa:30708,fQa:26984,lQa:146143,mQa:63648,nQa:63649,TQa:111059,XQa:5754,bRa:20445,lRa:151308,mRa:151152,ARa:130975,
zRa:130976,xRa:167637,SRa:110386,ZRa:113746,uSa:66557,CSa:17310,DSa:28631,HSa:21589,VSa:164817,WSa:168011,XSa:154946,YSa:68012,ZSa:162617,aTa:60480,bTa:138664,cTa:141121,dTa:164502,eTa:31571,fTa:141978,kTa:150105,lTa:150106,mTa:150107,nTa:150108,qTa:76980,uTa:41577,vTa:45469,YTa:38669,ZTa:13768,aUa:13777,jUa:141842,kUa:62985,lUa:4724,mUa:59369,oUa:43927,pUa:43928,AUa:12924,CUa:100355,HUa:56219,IUa:27669,JUa:10337,GUa:47896,NUa:122629,bVa:139723,aVa:139722,cVa:121258,dVa:107598,eVa:127991,fVa:96639,
gVa:107536,hVa:130169,iVa:96661,jVa:145188,kVa:96658,lVa:116646,mVa:159428,nVa:121122,oVa:96660,pVa:127738,qVa:127083,rVa:155281,sVa:162959,tVa:163566,uVa:147842,UVa:104443,VVa:96659,WVa:147595,XVa:106442,dWa:162776,eWa:134840,jWa:63667,kWa:63668,lWa:63669,mWa:130686,yYa:147036,KYa:78314,LYa:147799,VYa:148649,OZa:55761,PZa:127098,QZa:134841,R_a:96368,W_a:67374,g0a:48992,E0a:146176,J0a:49956,Q0a:31961,R0a:26388,Y0a:23811,Z0a:5E4,o1a:126250,S1a:96370,o3a:47355,p3a:47356,Y4a:37935,c5a:45521,d5a:21760,
j5a:83769,l5a:49977,m5a:49974,n5a:93497,o5a:93498,p5a:34325,q5a:140759,r5a:115803,s5a:123707,t5a:100081,u5a:35309,v5a:68314,w5a:25602,x5a:100339,y5a:143516,L5a:59018,M5a:18248,N5a:50625,O5a:9729,P5a:37168,Q5a:37169,R5a:21667,S5a:16749,T5a:18635,U5a:39305,V5a:18046,o6a:53969,p6a:8213,H6a:93926,a7a:102852,b7a:110099,c7a:22678,d7a:69076,e7a:137575,g7a:139224,h7a:100856,k7a:154430,l7a:17736,m7a:3832,q7a:147111,t7a:55759,u7a:64031,h8a:93044,j8a:93045,u8a:34388,p8a:167841,R8a:17657,S8a:17655,T8a:39579,
U8a:39578,V8a:77448,W8a:8196,X8a:11357,Y8a:69877,Z8a:8197,a9a:168501,b9a:156512,c9a:161613,d9a:156509,e9a:161612,f9a:161614,h9a:82039};var Jqa=[{AL:function(a){return"Cannot read property '"+a.key+"'"},
XF:{Error:[{Si:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Si:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Si:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Si:/\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"]},{Si:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Si:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Si:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{AL:function(a){return"Cannot call '"+a.key+"'"},
XF:{TypeError:[{Si:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Si:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Si:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Si:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Si:/\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"]},
{Si:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{AL:function(a){return a.key+" is not defined"},
XF:{ReferenceError:[{Si:/(.*) is not defined/,groups:["key"]},{Si:/Can't find variable: (.*)/,groups:["key"]}]}}];var xqa={Zp:[],Qq:[{callback:uqa,weight:500}]};var iA;var tA=new g.Mo;var Aqa=g.D.ytLoggingGelSequenceIdObj_||{};g.Da("ytLoggingGelSequenceIdObj_",Aqa);var Kqa=new Set,Hqa=0,Mqa=0,Lqa=0,Iqa=[],Oqa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var vA=Date.now().toString();var Rqa=1;yA.prototype.getAsJson=function(){var a={};void 0!==this.xf.trackingParams?a.trackingParams=this.xf.trackingParams:(a.veType=this.xf.veType,void 0!==this.xf.veCounter&&(a.veCounter=this.xf.veCounter),void 0!==this.xf.elementIndex&&(a.elementIndex=this.xf.elementIndex));void 0!==this.xf.dataElement&&(a.dataElement=this.xf.dataElement.getAsJson());void 0!==this.xf.youtubeData&&(a.youtubeData=this.xf.youtubeData);return a};
yA.prototype.getAsJspb=function(){var a=new gt;void 0!==this.xf.trackingParams?a.Ph(this.xf.trackingParams):(void 0!==this.xf.veType&&g.I(a,2,this.xf.veType),void 0!==this.xf.veCounter&&g.I(a,6,this.xf.veCounter),void 0!==this.xf.elementIndex&&g.I(a,3,this.xf.elementIndex));if(void 0!==this.xf.dataElement){var b=this.xf.dataElement.getAsJspb();J(a,gt,7,b)}void 0!==this.xf.youtubeData&&J(a,Wq,8,this.xf.jspbYoutubeData);return a};
yA.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
yA.prototype.isClientVe=function(){return!this.xf.trackingParams&&!!this.xf.veType};var W2=g.D.ytLoggingDocDocumentNonce_;W2||(W2=g.xA(16),g.Da("ytLoggingDocDocumentNonce_",W2));var Yqa=W2;var Vqa={dX:0,Cia:1,Eja:2,kJa:3,qpa:4,f7a:5,uKa:6,DUa:7,BSa:8,UTa:9,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"};g.Da("yt_logging_screen.getRootVeType",Tqa);g.Da("yt_logging_screen.getCurrentCsn",g.DA);g.Da("yt_logging_screen.getCttAuthInfo",EA);g.Da("yt_logging_screen.setCurrentScreen",Zqa);g.v(FA,ey);var bra=new fy("screen-created",FA),LA=[],$qa=hra,MA=0;NA.prototype.B=function(a){this.client=a};
NA.prototype.u=function(){this.clear();this.csn=g.DA()};
NA.prototype.clear=function(){this.C.clear();this.j.clear();this.D.clear();this.csn=null};PA.prototype.B=function(a){g.ov("safe_logging_library_killswitch")?this.client=a:g.vv(OA().B).bind(OA())(a)};
PA.prototype.clear=function(){g.ov("safe_logging_library_killswitch")?(this.u.clear(),this.j.clear(),this.C.clear(),this.csn=null):g.vv(OA().clear).bind(OA())()};RA.prototype.B=function(a){g.ov("use_ts_visibilitylogger")&&QA().B(a)};
RA.prototype.clear=function(){g.ov("use_ts_visibilitylogger")?QA().clear():(this.u.clear(),this.j.clear(),this.C.clear())};
Ga(RA);var TA;g.SA=wd(function(){var a=new To;return a.isAvailable()?new g.Qo(a):null});
TA=wd(function(){var a=new Vka;return a.isAvailable()?new g.Qo(a):null});var lra=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,mra=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,pra={};g.v(cB,g.E);var zra={adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0}};var Cra=!1;g.v(lB,g.E);lB.prototype.HK=function(){var a=this.j().qK("SLOT_TYPE_PLAYER_BYTES",1),b=this.Ta.get().Wf(1).clientPlaybackNonce,c=!1;a=g.t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.slotType&&d.Sb instanceof hB?d.Sb.zq:void 0;e&&e===b&&(c&&kB("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
lB.prototype.Ej=function(a,b,c,d,e,f){var h=this,l=this.Ta.get().Wf(1);l.Nt?this.Ha.get().Yt():(eB(this.Yb.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return ura(h.Yd.get(),d,e,a,b,f,l,"")}),e4a(this.KI),i0(this.Fa.get(),"fetch_bid_for_dclk_status")&&jB("video loaded"))};
lB.prototype.Hm=function(){};var X2={},xB=(X2.AD_MARKER="ytp-ad-progress",X2.CHAPTER_MARKER="ytp-chapter-marker",X2.TIME_MARKER="ytp-time-marker",X2);var KXa=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/)"),Fra=RegExp("^http://0\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.l2gfe\\.[a-z0-9_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?/|^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?://((?:uytfe\\.corp|dev-uytfe\\.corp|uytfe\\.sandbox)\\.google\\.com/|([-\\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-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/|m?web-ppg\\.corp\\.google\\.com/)"),
LXa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Mra=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)|$))"),
Kra=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)|$))"),Hra=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.googleusercontent)|(work\\.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)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth)?\\.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)?))\\/|^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/)"),
MXa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Ira=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)"),Gra=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.googleusercontent)|(work\\.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)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth)?\\.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)?))\\/|^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-gz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
cwa=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)"),
bwa=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://canvastester-3fd0b\\.appspot\\.com(/|$)|^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|books\\.googleusercontent\\.com|play\\-books\\-autopush\\-sandbox\\.googleusercontent\\.com|play\\-books\\-canary\\-sandbox\\.googleusercontent\\.com|play\\-books\\-internal\\-sandbox\\.googleusercontent\\.com|play\\-books\\-staging\\-sandbox\\.googleusercontent\\.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|stadia\\.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)"),
f8a=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://stadia\\.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|canary|internal|staging)-sandbox)\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^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.yB.prototype.getId=function(){return this.id};
g.yB.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Qra(this.start)+", "+Qra(this.end)+"]"};
g.yB.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(null==b||a<b&&b<=this.end)};
var Pra=1;g.yB.prototype.getId=g.yB.prototype.getId;g.v(CB,g.yB);CB.prototype.deactivate=function(){this.B=!0};
CB.prototype.tx=function(){return this.end-this.start};g.Sa(g.FB,g.E);g.FB.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.nj.subscribe(a,b,c)};
g.FB.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.nj.unsubscribe(a,b,c)};
g.FB.prototype.rh=function(a){return this.isDisposed()?!1:this.nj.rh(a)};
g.FB.prototype.ma=function(a,b){return this.isDisposed()?!1:this.nj.ma.apply(this.nj,arguments)};var g8a;var h8a=g.Wb(),i8a=h8a.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!i8a||2>i8a.length)g8a=void 0;else{var j8a=h8a.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);g8a=j8a&&6==j8a.length?Number(j8a[5].replace("_",".")):0}var gK=g8a,iR=0<=gK;iR&&0<=g.Wb().search("Safari")&&g.Wb().search("Version");g.v(KB,Za);g.v(LB,ey);g.v(Wra,ey);var bsa=new fy("aft-recorded",LB),k8a=new fy("timing-sent",Wra);var Y2=window,NB=Y2.performance||Y2.mozPerformance||Y2.msPerformance||Y2.webkitPerformance||new Xra;var asa=!1,zC={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'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"},
msa=(0,g.Oa)(NB.clearResourceTimings||NB.webkitClearResourceTimings||NB.mozClearResourceTimings||NB.msClearResourceTimings||NB.oClearResourceTimings||g.vd,NB);var Z2={},gsa=(Z2.auto_search="LATENCY_ACTION_AUTO_SEARCH",Z2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Z2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Z2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Z2.app_startup="LATENCY_ACTION_APP_STARTUP",Z2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Z2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Z2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Z2["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",
Z2.browse="LATENCY_ACTION_BROWSE",Z2.cast_splash="LATENCY_ACTION_CAST_SPLASH",Z2.channels="LATENCY_ACTION_CHANNELS",Z2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Z2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Z2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Z2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Z2["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Z2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",
Z2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",Z2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Z2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Z2["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Z2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Z2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Z2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Z2["channel.live_streaming"]=
"LATENCY_ACTION_CREATOR_LIVE_STREAMING",Z2.chips="LATENCY_ACTION_CHIPS",Z2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Z2["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Z2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Z2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",Z2.embed="LATENCY_ACTION_EMBED",Z2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Z2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",
Z2.explore="LATENCY_ACTION_EXPLORE",Z2.home="LATENCY_ACTION_HOME",Z2.library="LATENCY_ACTION_LIBRARY",Z2.live="LATENCY_ACTION_LIVE",Z2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Z2.onboarding="LATENCY_ACTION_ONBOARDING",Z2.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Z2["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Z2["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Z2["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Z2["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",
Z2["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Z2["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Z2["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Z2["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Z2["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Z2["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",Z2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Z2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",
Z2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Z2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Z2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Z2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Z2.prebuffer="LATENCY_ACTION_PREBUFFER",Z2.prefetch="LATENCY_ACTION_PREFETCH",Z2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Z2.profile_switcher="LATENCY_ACTION_LOGIN",Z2.reel_watch="LATENCY_ACTION_REEL_WATCH",Z2.results="LATENCY_ACTION_RESULTS",Z2["promotion.edit"]=
"LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Z2.search_ui="LATENCY_ACTION_SEARCH_UI",Z2.search_suggest="LATENCY_ACTION_SUGGEST",Z2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Z2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Z2.seek="LATENCY_ACTION_PLAYER_SEEK",Z2.settings="LATENCY_ACTION_SETTINGS",Z2.store="LATENCY_ACTION_STORE",Z2.tenx="LATENCY_ACTION_TENX",Z2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Z2.watch="LATENCY_ACTION_WATCH",Z2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Z2["watch,watch7"]=
"LATENCY_ACTION_WATCH",Z2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Z2["watch,watch7ad"]="LATENCY_ACTION_WATCH",Z2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Z2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Z2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Z2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Z2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Z2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",Z2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",Z2["video.editor_async"]=
"LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",Z2["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Z2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Z2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Z2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",Z2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Z2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Z2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",
Z2),$2={},hsa=($2.ad_allowed="adTypesAllowed",$2.yt_abt="adBreakType",$2.ad_cpn="adClientPlaybackNonce",$2.ad_docid="adVideoId",$2.yt_ad_an="adNetworks",$2.ad_at="adType",$2.aida="appInstallDataAgeMs",$2.browse_id="browseId",$2.p="httpProtocol",$2.t="transportProtocol",$2.cs="commandSource",$2.cpn="clientPlaybackNonce",$2.ccs="creatorInfo.creatorCanaryState",$2.ctop="creatorInfo.topEntityType",$2.csn="clientScreenNonce",$2.docid="videoId",$2.GetHome_rid="requestIds",$2.GetSearch_rid="requestIds",
$2.GetPlayer_rid="requestIds",$2.GetWatchNext_rid="requestIds",$2.GetBrowse_rid="requestIds",$2.GetLibrary_rid="requestIds",$2.is_continuation="isContinuation",$2.is_nav="isNavigation",$2.b_p="kabukiInfo.browseParams",$2.is_prefetch="kabukiInfo.isPrefetch",$2.is_secondary_nav="kabukiInfo.isSecondaryNav",$2.nav_type="kabukiInfo.navigationType",$2.prev_browse_id="kabukiInfo.prevBrowseId",$2.query_source="kabukiInfo.querySource",$2.voz_type="kabukiInfo.vozType",$2.yt_lt="loadType",$2.mver="creatorInfo.measurementVersion",
$2.yt_ad="isMonetized",$2.nr="webInfo.navigationReason",$2.nrsu="navigationRequestedSameUrl",$2.pnt="performanceNavigationTiming",$2.prt="playbackRequiresTap",$2.plt="playerInfo.playbackType",$2.pis="playerInfo.playerInitializedState",$2.paused="playerInfo.isPausedOnLoad",$2.yt_pt="playerType",$2.fmt="playerInfo.itag",$2.yt_pl="watchInfo.isPlaylist",$2.yt_pre="playerInfo.preloadType",$2.yt_ad_pr="prerollAllowed",$2.pa="previousAction",$2.yt_red="isRedSubscriber",$2.rce="mwebInfo.responseContentEncoding",
$2.rc="resourceInfo.resourceCache",$2.scrh="screenHeight",$2.scrw="screenWidth",$2.st="serverTimeMs",$2.ssdm="shellStartupDurationMs",$2.br_trs="tvInfo.bedrockTriggerState",$2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",$2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",$2.label="tvInfo.label",$2.is_mdx="tvInfo.isMdx",$2.preloaded="tvInfo.isPreloaded",$2.aac_type="tvInfo.authAccessCredentialType",$2.upg_player_vis="playerInfo.visibilityState",$2.query="unpluggedInfo.query",$2.upg_chip_ids_string=
"unpluggedInfo.upgChipIdsString",$2.yt_vst="videoStreamType",$2.vph="viewportHeight",$2.vpw="viewportWidth",$2.yt_vis="isVisible",$2.rcl="mwebInfo.responseContentLength",$2.GetSettings_rid="requestIds",$2.GetTrending_rid="requestIds",$2.GetMusicSearchSuggestions_rid="requestIds",$2.REQUEST_ID="requestIds",$2),isa="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),
a3={},jsa=(a3.ccs="CANARY_STATE_",a3.mver="MEASUREMENT_VERSION_",a3.pis="PLAYER_INITIALIZED_STATE_",a3.yt_pt="LATENCY_PLAYER_",a3.pa="LATENCY_ACTION_",a3.ctop="TOP_ENTITY_TYPE_",a3.yt_vst="VIDEO_STREAM_TYPE_",a3),ksa="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var U={LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC:203,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,
LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170,LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,
LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158,LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,
LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,
LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,
LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CONNECT_TO_SESSION:190,
LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_GALLERY:107,
LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_PRODUCER_EXPORT_PROJECT:193,LATENCY_ACTION_PRODUCER_EDITOR:192,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,
LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,
LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,
LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,
LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CMS_VIDEOS:202,LATENCY_ACTION_CREATOR_CMS_REPORTS:201,LATENCY_ACTION_CREATOR_CMS_ISSUES:191,LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING:200,LATENCY_ACTION_CREATOR_CMS_DASHBOARD:199,LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY:198,LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS:197,LATENCY_ACTION_CREATOR_CMS_CHANNELS:196,LATENCY_ACTION_CREATOR_CMS_ASSETS:195,LATENCY_ACTION_CREATOR_CMS_ANALYTICS:194,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,
LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_DOWNLOADS:98,
LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_DIRECT_PLAYBACK:132,
LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_HOME:1,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_USER_ACTION:189,LATENCY_ACTION_INFRASTRUCTURE:188,LATENCY_ACTION_PAGE_NAVIGATION:187,LATENCY_ACTION_UNKNOWN:0};U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";
U[U.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";U[U.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";U[U.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";U[U.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";
U[U.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";U[U.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";U[U.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC";U[U.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";U[U.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";U[U.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";
U[U.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";U[U.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";U[U.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";U[U.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";U[U.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";U[U.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";
U[U.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";U[U.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";U[U.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";U[U.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";U[U.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";
U[U.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";U[U.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";U[U.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";U[U.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";U[U.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";U[U.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";
U[U.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";U[U.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";U[U.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";U[U.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";U[U.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";U[U.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";U[U.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";
U[U.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";U[U.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";U[U.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";U[U.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";U[U.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";U[U.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";
U[U.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";U[U.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";U[U.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";U[U.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";U[U.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";U[U.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";
U[U.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";U[U.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";U[U.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";U[U.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";U[U.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";U[U.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";U[U.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";
U[U.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";U[U.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";U[U.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";U[U.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";U[U.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";U[U.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";
U[U.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";U[U.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";U[U.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";U[U.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";U[U.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";U[U.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";U[U.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";
U[U.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";U[U.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";U[U.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";U[U.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";U[U.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";U[U.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";U[U.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";U[U.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";
U[U.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";U[U.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";U[U.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";U[U.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";U[U.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";U[U.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";U[U.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";
U[U.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";U[U.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";U[U.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";U[U.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";U[U.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";
U[U.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";U[U.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";U[U.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";U[U.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";U[U.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";U[U.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";U[U.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";
U[U.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";U[U.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";U[U.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";U[U.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";U[U.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";
U[U.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";U[U.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";U[U.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";U[U.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";U[U.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";U[U.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";U[U.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";
U[U.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";U[U.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";U[U.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";U[U.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";U[U.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";U[U.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";
U[U.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";
U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";U[U.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";U[U.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";
U[U.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";U[U.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";U[U.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";U[U.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";
U[U.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";
U[U.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";U[U.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS";U[U.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";
U[U.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";U[U.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD";U[U.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";U[U.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS";U[U.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS";
U[U.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";U[U.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";U[U.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";
U[U.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";U[U.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";U[U.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";U[U.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";U[U.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";U[U.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";
U[U.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";U[U.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";U[U.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";U[U.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";U[U.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";U[U.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";U[U.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";U[U.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";
U[U.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";U[U.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";U[U.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";U[U.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";U[U.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";U[U.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";
U[U.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";U[U.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";U[U.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";U[U.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";U[U.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";U[U.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";U[U.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";
U[U.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";U[U.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";U[U.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";U[U.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";U[U.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";U[U.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";U[U.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";U[U.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";U[U.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";
U[U.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";U[U.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";U[U.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var lC={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};lC[lC.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";lC[lC.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";lC[lC.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";
var mC={CONN_INVALID:31,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};mC[mC.CONN_INVALID]="CONN_INVALID";mC[mC.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";mC[mC.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";mC[mC.CONN_WIFI_METERED]="CONN_WIFI_METERED";mC[mC.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";
mC[mC.CONN_DISCO]="CONN_DISCO";mC[mC.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";mC[mC.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";mC[mC.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";mC[mC.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";mC[mC.CONN_WIFI]="CONN_WIFI";mC[mC.CONN_NONE]="CONN_NONE";mC[mC.CONN_UNKNOWN]="CONN_UNKNOWN";mC[mC.CONN_DEFAULT]="CONN_DEFAULT";
var nC={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113,
DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};nC[nC.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
nC[nC.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";nC[nC.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";nC[nC.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";nC[nC.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";nC[nC.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";nC[nC.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
nC[nC.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";nC[nC.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";nC[nC.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";nC[nC.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";nC[nC.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";nC[nC.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";nC[nC.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";nC[nC.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
nC[nC.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";nC[nC.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";nC[nC.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";nC[nC.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";nC[nC.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";nC[nC.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";nC[nC.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";nC[nC.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
nC[nC.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";nC[nC.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";nC[nC.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";nC[nC.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var oC={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0};
oC[oC.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";oC[oC.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";oC[oC.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";oC[oC.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";oC[oC.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";oC[oC.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";oC[oC.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";oC[oC.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var pC={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};pC[pC.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";pC[pC.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";pC[pC.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";pC[pC.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var qC={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
qC[qC.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";qC[qC.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var rC={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};rC[rC.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";rC[rC.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";rC[rC.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
rC[rC.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";rC[rC.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";rC[rC.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var sC={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};sC[sC.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";sC[sC.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";sC[sC.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";sC[sC.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var tC={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};tC[tC.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";tC[tC.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";tC[tC.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var uC={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};uC[uC.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
uC[uC.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";uC[uC.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var nsa="actionVisualElement spinnerInfo resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo".split(" ");var dC=g.D.ytLoggingLatencyUsageStats_||{};g.Da("ytLoggingLatencyUsageStats_",dC);bC.prototype.tick=function(a,b,c,d){eC(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.ov("web_csi_via_jspb")?(d=new Nu,g.I(d,1,a),g.I(d,2,b),a=new gv,zg(a,Nu,5,pA,d),oA(a,c)):g.ax("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
bC.prototype.info=function(a,b,c){var d=Object.keys(a).join("");eC(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.ax("latencyActionInfo",a,{cttAuthInfo:c}))};
bC.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<a.toJSON().length;e++)void 0!==a.toJSON()[e]&&(d=0===e?d.concat(""+e):d.concat("_"+e));eC(this,"info_"+d+"_"+b)||(g.I(a,2,b),b={cttAuthInfo:c},c=new gv,zg(c,Ku,7,pA,a),oA(c,b))};
bC.prototype.span=function(a,b,c){var d=Object.keys(a).join("");eC(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.ax("latencyActionSpan",a,{cttAuthInfo:c}))};var l8a=window;l8a.ytcsi&&(l8a.ytcsi.info=g.kC,l8a.ytcsi.tick=hC);var NAa={wpa:1,Aqa:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var HJ=tsa()?!0:"function"!==typeof window.fetch||!window.ReadableStream||!window.AbortController||g.Jx||g.vG?!1:!0;var b3={},YF=(b3.FAIRPLAY="fairplay",b3.PLAYREADY="playready",b3.WIDEVINE="widevine",b3.CLEARKEY=null,b3.FLASHACCESS=null,b3.UNKNOWN=null,b3.WIDEVINE_CLASSIC=null,b3);var m8a=["h","H"],n8a=["9","("],o8a=["9h","(h"],p8a=["8","*"],q8a=["a","A"],r8a=["o","O"],s8a=["m","M"],t8a=["mac3","MAC3"],u8a=["meac3","MEAC3"],c3={},hva=(c3.h=m8a,c3.H=m8a,c3["9"]=n8a,c3["("]=n8a,c3["9h"]=o8a,c3["(h"]=o8a,c3["8"]=p8a,c3["*"]=p8a,c3.a=q8a,c3.A=q8a,c3.o=r8a,c3.O=r8a,c3.m=s8a,c3.M=s8a,c3.mac3=t8a,c3.MAC3=t8a,c3.meac3=u8a,c3.MEAC3=u8a,c3);g.BC.prototype.getLanguageInfo=function(){return this.Rc};
g.BC.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1<a.length&&(this.xtags=a[1])}return this.xtags};
g.BC.prototype.toString=function(){return this.Rc.name};
g.BC.prototype.getLanguageInfo=g.BC.prototype.getLanguageInfo;var d3,GC;d3={};g.DC=(d3.auto=0,d3.tiny=144,d3.light=144,d3.small=240,d3.medium=360,d3.large=480,d3.hd720=720,d3.hd1080=1080,d3.hd1440=1440,d3.hd2160=2160,d3.hd2880=2880,d3.highres=4320,d3);GC={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};CC.prototype.equals=function(a){return this.u===a.u&&this.j===a.j&&this.B===a.B&&this.reason===a.reason};
CC.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.j};
CC.prototype.compose=function(a){if(a.B&&FC(a))return lJ;if(a.B||FC(this))return a;if(this.B||FC(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);return b===this.u&&c===this.j?this:new CC(b,c,!1,c===this.j?this.reason:a.reason)};
CC.prototype.C=function(a){return a.video?vsa(this,a.video.quality):!1};
var v8a=g.EC("auto","hd1080",!1,"l"),TTa=g.EC("auto","large",!1,"l"),lJ=g.EC("auto","auto",!1,"p");IC.prototype.xr=function(a){a=a||lJ;for(var b=g.vm(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
IC.prototype.BA=function(a){a=a||lJ;return g.vm(this.videoInfos,function(b){return a.C(b)})};
IC.prototype.getAvailableAudioTracks=function(){return this.audioTracks};g.v(JC,g.E);JC.prototype.ra=function(){g.E.prototype.ra.call(this)};var XC={IP:function(a){a.reverse()},
UB:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
tr:function(a,b){a.splice(0,b)}};g.YC.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.YC.prototype.get=function(a){ZC(this);return this.j[a]||null};
g.YC.prototype.Se=function(){this.url||(this.url=Psa(this));return this.url};
g.YC.prototype.clone=function(){var a=new g.YC(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.j=g.Yc(this.j);a.url=this.url;return a};
var Osa=[Fla];g.k=g.eD.prototype;g.k.XH=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.Rn(a))?a.duration:0};
g.k.OR=function(a){return this.getDuration(a)};
g.k.jm=function(){return this.segments.length?this.segments[0].Na:-1};
g.k.Ff=function(a){return(a=this.Rn(a))?a.ingestionTime:NaN};
g.k.od=function(){return this.segments.length?this.segments[this.segments.length-1].Na:-1};
g.k.cL=function(a){return this.od()===a&&!this.u&&0<=a};
g.k.Er=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.Kd=function(){return this.segments[0].startTime};
g.k.Bx=function(){return this.segments.length};
g.k.Bp=function(){return 0};
g.k.ai=function(a){return(a=this.qx(a))?a.Na:-1};
g.k.JE=function(a){return(a=this.Rn(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.Rn(a))?a.startTime:0};
g.k.LE=aa(3);g.k.isLoaded=function(){return 0<this.segments.length};
g.k.Rn=function(a){if(this.j&&this.j.Na===a)return this.j;a=g.Ab(this.segments,new dD(a,0,0,0,""),function(b,c){return b.Na-c.Na});
return this.j=0<=a?this.segments[a]:null};
g.k.qx=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.Ab(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.j=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.ub(a),this.segments.length){var b=this.segments.length?g.fb(this.segments).endTime:0,c=a[0].Na-this.od();1<c&&vaa(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.VR=function(){return 0};fD.prototype.append=function(a){if(Ssa(this,a)){var b=this.j[this.j.length-1];this.j[this.j.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);iD(this)}else this.j.push(a);this.totalLength+=a.length};
fD.prototype.split=function(a){for(var b=new fD,c=new fD,d=g.t(this.j),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{dB:b,Fk:c}};
fD.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.j[this.u].length};
fD.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&iD(this);this.B+this.j[this.u].length<=a&&this.u<this.j.length;)this.B+=this.j[this.u].length,this.u+=1;this.C=void 0}};var pD,nD,rD;g.AX=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}();
pD=Array(1024);nD=window.TextDecoder?new TextDecoder:void 0;rD=window.TextEncoder?new TextEncoder:void 0;tD.prototype.skip=function(a){this.j+=a};
tD.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var e3={},w8a=(e3.predictStart="predictStart",e3.start="start",e3["continue"]="continue",e3.stop="stop",e3),$sa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};CD.prototype.cB=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"])};
CD.prototype.toString=function(){for(var a="",b=g.t(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};var f3={},Hua=(f3.STEREO_LAYOUT_UNKNOWN=0,f3.STEREO_LAYOUT_LEFT_RIGHT=1,f3.STEREO_LAYOUT_TOP_BOTTOM=2,f3);var jta=!1;PD.prototype.Am=function(){var a=this.pos;this.pos=0;var b=!1;try{TD(this,440786851)&&(this.pos=0,TD(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.sA(c);else throw c;}this.pos=a;return b};cE.prototype.set=function(a,b){this.hj.get(a);this.j[a]=b;this.url=""};
cE.prototype.get=function(a){return this.j[a]||this.hj.get(a)};
cE.prototype.Se=function(){this.url||(this.url=vta(this));return this.url};gE.prototype.ek=function(a,b){a.hj===this.j&&(this.j=dE(a,b));a.hj===this.C&&(this.C=dE(a,b))};kE.prototype.vg=function(){return!!this.j&&this.index.isLoaded()};
kE.prototype.Px=function(){return!1};
kE.prototype.EP=function(a){return[a]};
kE.prototype.By=function(a){return[a]};nE.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};rE.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
rE.prototype.equals=function(a){return!(!a||a.j!==this.j||a.type!==this.type||(this.range&&a.range?a.range.start!==this.range.start||a.range.end!==this.range.end:a.range!==this.range)||a.Na!==this.Na||a.Nb!==this.Nb||a.u!==this.u)};
rE.prototype.isVideo=function(){return!!this.j.info.video};AE.prototype.Sn=function(){return this.u?this.u.Se():""};
AE.prototype.uu=function(){return this.J};
AE.prototype.Uq=function(){return tE(this.Za[0])};
AE.prototype.ek=function(a,b){this.j.ek(a,b);if(this.u){this.u=dE(a,b);b=g.t(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.u.set(c.value,null)}this.requestId=a.get("req_id")};g.v(EE,kE);g.k=EE.prototype;g.k.Bm=function(){return!1};
g.k.Cu=function(){return!0};
g.k.Lx=function(){return!1};
g.k.Px=function(){return!this.I};
g.k.Gr=function(){return new AE([new rE(1,this,this.initRange,"getMetadataRequestInfo")],this.I)};
g.k.ow=function(){return null};
g.k.Iz=function(a){this.Iq(a);return this.Cu()&&a.u&&!a.cf?new AE([new rE(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Na,a.startTime,a.duration,a.Nb+a.u,NaN,!0)],this.index.JE(a.Na)):this.Jq(wE(a),!1)};
g.k.Cp=function(a,b){b=void 0===b?!1:b;a=this.index.ai(a);b&&(a=Math.min(this.index.od(),a+1));return this.Jq(a,!0)};
g.k.BK=function(a){this.j=new Uint8Array(OE(a).buffer)};
g.k.Iq=function(a){return 0===a.u?!0:this.index.od()>a.Na&&this.index.jm()<=a.Na+1};
g.k.update=function(a,b,c){this.index.append(a);Rsa(this.index,c);this.index.u=b};
g.k.vg=function(){return this.Px()?!0:kE.prototype.vg.call(this)};
g.k.Jq=function(a,b){var c=this.index.JE(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.ac?this.info.ac*e:1E3;return new AE([new rE(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.mK=function(){return this.Px()?0:this.initRange.length};
g.k.AM=function(){return!1};HE.prototype.update=function(a){var b=void 0;this.u&&(b=this.u);var c=new HE,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+FE(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+FE(a,"startNumber")||0;c.C=f;var l=b?b.startSecs+b.durationSecs:0,m=Date.parse(Sta(FE(a,"yt:segmentIngestTime")))/1E3;c.D="SegmentTemplate"===a.parentElement.tagName;c.D&&(c.J=FE(a,"media"));a=b?h-b.Na:1;c.I=0<a?0:-a+1;a=g.t(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,
p=(+d.getAttribute("yt:sid")||0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Na)h++;else{var w=new Qta(h,l,n,m+p,f);c.j.push(w);var x=w.startSecs;w=d.getAttribute("yt:cuepointTimeOffset");var z=d.getAttribute("yt:cuepointDuration");if(w&&z){w=Number(w);x=-w/e+x;z=Number(z)/e;var B=d.getAttribute("yt:cuepointContext")||null,C=d.getAttribute("yt:cuepointIdentifier")||"",G=d.getAttribute("yt:cuepointEvent")||"";w=new qB(x,z,B,C,w8a[G]||"unknown",w)}else w=null;w&&c.B.push(w);h++;l+=n;f+=n;m+=
n+p}}c.j.length&&(c.u=g.fb(c.j))}this.I=c.I;this.u=c.u||this.u;g.wb(this.j,c.j);g.wb(this.B,c.B);this.D=c.D;this.J=c.J;-1===this.C&&(this.C=c.getStreamTimeOffset())};
HE.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.v(IE,g.eD);g.k=IE.prototype;g.k.jm=function(){return this.Yl?this.segments.length?this.qx(this.Kd()).Na:-1:g.eD.prototype.jm.call(this)};
g.k.Kd=function(){if(this.Ne)return 0;if(!this.Yl)return g.eD.prototype.Kd.call(this);if(!this.segments.length)return 0;var a=Math.max(g.fb(this.segments).endTime-this.Qn,0);return 0<this.Be&&this.qx(a).Na<this.Be?this.Rn(this.Be).startTime:a};
g.k.Er=function(){if(!this.segments.length)return g.eD.prototype.Er.call(this);var a=this.od();if(!this.Yl||a<=this.segments[this.segments.length-1].Na)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new dD(a,Math.max(0,b.startTime-(b.Na-a)*this.Xi),this.Xi,0,"sq/"+a,void 0,void 0,!0)}return null!==this.B&&a.pending&&3===this.B?this.Ne?Math.min(this.Qn,a.startTime):a.startTime:this.Ne?Math.min(this.Qn,a.endTime):a.endTime};
g.k.Bx=function(){return this.Yl?this.segments.length?this.od()-this.jm()+1:0:g.eD.prototype.Bx.call(this)};
g.k.od=function(){var a=Math.min(this.Fg,Math.max(g.eD.prototype.od.call(this),this.oo)),b=1E3*this.Qn;b=0<this.Lp&&this.Lp<b;this.Ne&&0<this.Qn&&0<this.oo&&!b&&(b=this.qx(this.Qn))&&(a=Math.min(b.Na-1,a));return a};
g.k.fu=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.XH=function(a){var b=JE(this,a.Na);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.Wx&&0===a.Na%(300/this.Xi)){var c=this.segments[0].Na,d=Math.floor(this.Wx/this.Xi);a=a.Na-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.zE=function(){return this.oo};
g.k.qx=function(a){if(!this.Yl)return g.eD.prototype.qx.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Na-Math.ceil((this.segments[0].startTime-a)/this.Xi));else if(a>=b.endTime)b=b.Na+Math.floor((a-b.endTime)/this.Xi+1);else{b=Bb(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Na-b.Na-1))+1)+b.Na}return this.Rn(b)};
g.k.Rn=function(a){if(!this.Yl)return g.eD.prototype.Rn.call(this,a);if(!this.segments.length)return null;var b=JE(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Xi;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Na-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Na-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Na-d.Na-1),d=d.endTime+(a-d.Na-1)*b);return new dD(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.v(LE,EE);g.k=LE.prototype;g.k.Lx=function(){return!0};
g.k.vg=function(){return!0};
g.k.Iq=function(a){return this.Cu()&&a.u&&!a.cf||!a.j.index.cL(a.Na)};
g.k.Gr=function(){};
g.k.Cp=function(a,b){return"number"!==typeof a||isFinite(a)?EE.prototype.Cp.call(this,a,void 0===b?!1:b):new AE([new rE(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Nj,void 0,this.Nj*this.info.ac)],"")};
g.k.Jq=function(a,b){var c=void 0===c?!1:c;if(KE(this.index,a))return EE.prototype.Jq.call(this,a,b);var d=this.index.getStartTime(a);return new AE([new rE(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,b?0:this.Nj*this.info.ac,!b)],0<=a?"sq/"+a:"")};g.v(ME,kE);g.k=ME.prototype;g.k.Bm=function(){return!1};
g.k.Cu=function(){return!1};
g.k.Lx=function(){return!1};
g.k.Gr=function(){return new AE([new rE(1,this,void 0,"otfInit")],this.I)};
g.k.ow=function(){return null};
g.k.Iz=function(a){this.Iq(a);return $ta(this,wE(a),!1)};
g.k.Cp=function(a,b){b=void 0===b?!1:b;a=this.index.ai(a);b&&(a=Math.min(this.index.od(),a+1));return $ta(this,a,!0)};
g.k.BK=function(a){1===a.info.type&&(this.j||(this.j=Vsa(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&aua(this,a.u))};
g.k.Iq=function(a){return 0===a.u?!0:this.index.od()>a.Na&&this.index.jm()<=a.Na+1};
g.k.mK=function(){return 0};
g.k.AM=function(){return!1};NE.prototype.verify=function(a){if(this.info.u!==this.j.totalLength)return a.slength=this.info.u.toString(),a.range=this.j.totalLength.toString(),!1;if(1===this.info.j.info.containerType){if(8>this.info.u||4===this.info.type)return!0;var b=OE(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2===this.info.type)return c===this.info.u&&1936286840===b;if(3===this.info.type&&0===this.info.Nb)return 1836019558===b||1936286840===
b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.j.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=OE(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Nb)return 524531317===c||440786851===c}return!0};g.k=g.SE.prototype;g.k.Bp=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.j[a]/this.u};
g.k.LE=aa(2);g.k.Ff=function(){return NaN};
g.k.getDuration=function(a){a=this.OR(a);return 0<=a?a/this.u:-1};
g.k.OR=function(a){return a+1<this.count||this.B?this.j[a+1]-this.j[a]:-1};
g.k.jm=function(){return 0};
g.k.od=function(){return this.count-1};
g.k.cL=function(a){return this.od()===a&&0<=a};
g.k.Er=function(){return this.B?this.j[this.count]/this.u:NaN};
g.k.Kd=function(){return 0};
g.k.Bx=function(){return this.count};
g.k.JE=function(){return""};
g.k.ai=function(a){a=g.Ab(this.j.subarray(0,this.count),a*this.u);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.od()};
g.k.VR=function(a,b){if(a>=this.od())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.od()&&b>this.getStartTime(a);a++)c=Math.max(c,lua(this,a)/this.getDuration(a));return c};
g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.j;this.j=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.j[a]=c[a]};
g.k.cap=function(a,b){TE(this);this.B=!0;this.j[this.count]=b;this.offsets[this.count]=a};g.v(UE,kE);g.k=UE.prototype;g.k.Gr=function(a){var b=new rE(2,this,this.indexRange,"indexInfo"),c=[new rE(1,this,this.initRange,"initInfo"),b];0<this.info.contentLength&&a&&(b=b.range.end+1,a=Math.min(a,this.info.contentLength-b),0<a&&c.push(new rE(4,this,pE(b,a),"tbdRange")));return new AE(c)};
g.k.BK=function(a){if(1===a.info.type){if(this.j)return;this.j=Vsa(a.j)}else if(2===a.info.type){if(this.I||0<=this.index.od())return;if(g.QE(this.info)){var b=this.index,c=OE(a);a=a.info.range.start;var d=g.FD(c,0,1936286840);c=ita(d);b.u=c.ON;var e=c.b0;b.offsets[0]=c.t0+a+d.size;b.j[0]=e;b.B=!0;a=c.JN.length;for(d=0;d<a;d++){e=b;var f=c.P5[d],h=c.JN[d];e.count++;TE(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.j[e.count]=e.j[e.count-1]+h}}else this.I=OE(a)}if(this.info.ze()&&this.j&&this.I){c=
new DataView(this.j.buffer);b=this.index;d=this.I;a=this.indexRange.end;e=new PD(c);c=e;e=c.pos;f={VV:1E6,WV:1E9,duration:0,qV:0,bN:0};if(TD(c,408125543))if(f.qV=UD(c,!0),f.bN=c.start+c.pos,TD(c,357149030)){for(h=SD(c);!QD(h);){var l=UD(h,!1);2807729===l?f.VV=WD(h):2807730===l?f.WV=WD(h):17545===l?f.duration=YD(h):XD(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(null!==c){b.u=c.WV/c.VV;e=new PD(d);d=e;h=c.bN;e=d.pos;f=[];if(TD(d,475249515)){for(l=SD(d);TD(l,187);){var m=SD(l);if(TD(m,
179)){var n=WD(m);if(TD(m,183)){m=SD(m);for(var p=h;TD(m,241);)p=WD(m)+h;f.push({XD:p,R_:n})}}}if(0<f.length&&a===f[0].XD)for(a=0;a<f.length;a++)f[a].XD+=1;d.pos=e;a=f}else d.pos=e,a=null;if(null!==a){a=g.t(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.XD,f=f.R_,TE(d),d.offsets[d.count]=e,d.j[d.count]=f,d.count++;b.cap(c.qV+c.bN,c.duration)}}this.I=null}};
g.k.QA=function(a,b,c){for(var d=[],e=a;e<=this.index.od();e++){var f=pE(this.index.Bp(e),lua(this.index,e)),h=this.index.getStartTime(e),l=this.index.getDuration(e),m=Math.max(0,b-f.start),n=Math.min(f.end+1,b+c)-(f.start+m);d.push(new rE(3,this,f,"getRequestInfoForRange",e,h,l,m,n));if(f.start+m+n>=b+c)break}d.length||g.rA(new g.Sw("b189619593",""+a,""+b,""+c));return new AE(d)};
g.k.EP=function(a){for(var b=this.By(a.info),c=a.info.range.start+a.info.Nb,d=a.B,e=[],f=0;f<b.length;f++){var h=hD(a.j,b[f].range.start+b[f].Nb-c,b[f].u);e.push(new NE(b[f],h,d));d=void 0}return e};
g.k.By=function(a){for(var b=a.range.start+a.Nb,c=0;c<this.index.od()&&b>=this.index.Bp(c+1);)c++;return this.QA(c,b,a.u).Za};
g.k.Iq=function(a){sE(a);return this.vg()?!0:a.range.end+1<this.info.contentLength};
g.k.ow=function(a,b){this.Iq(a);if(!this.vg())return b=pE(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new nE(b.start,this.info.contentLength-1)),new AE([new rE(4,a.j,b,"getNextRequestInfoByLength")]);4===a.type&&(a=this.By(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Nb+a.u;3===a.type&&(sE(a),c=a.Na,d===a.range.end+1&&(c+=1));return this.QA(c,d,b)};
g.k.Iz=function(){return null};
g.k.Cp=function(a,b){b=void 0===b?!1:b;a=this.index.ai(a);b&&(a=Math.min(this.index.od(),a+1));return this.QA(a,this.index.Bp(a),0)};
g.k.Bm=function(){return!0};
g.k.Cu=function(){return!0};
g.k.Lx=function(){return!1};
g.k.mK=function(){return this.indexRange.length+this.initRange.length};
g.k.AM=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};VE.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var g3={},Iua=(g3.COLOR_PRIMARIES_BT709="bt709",g3.COLOR_PRIMARIES_BT2020="bt2020",g3.COLOR_PRIMARIES_UNKNOWN=null,g3.COLOR_PRIMARIES_UNSPECIFIED=null,g3),h3={},nua=(h3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",h3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",h3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",h3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",h3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,h3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,h3);var i3={},TC=(i3.WIDTH={name:"width",video:!0,valid:640,invalid:99999},i3.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},i3.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},i3.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},i3.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},i3.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},i3.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},i3.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},i3.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},i3.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},i3);var Z={},lF=(Z["0"]="f",Z["160"]="h",Z["133"]="h",Z["134"]="h",Z["135"]="h",Z["136"]="h",Z["137"]="h",Z["264"]="h",Z["266"]="h",Z["138"]="h",Z["298"]="h",Z["299"]="h",Z["304"]="h",Z["305"]="h",Z["214"]="h",Z["216"]="h",Z["374"]="h",Z["375"]="h",Z["140"]="a",Z["141"]="ah",Z["327"]="sa",Z["258"]="m",Z["380"]="mac3",Z["328"]="meac3",Z["161"]="H",Z["142"]="H",Z["143"]="H",Z["144"]="H",Z["222"]="H",Z["223"]="H",Z["145"]="H",Z["224"]="H",Z["225"]="H",Z["146"]="H",Z["226"]="H",Z["227"]="H",Z["147"]="H",
Z["384"]="H",Z["376"]="H",Z["385"]="H",Z["377"]="H",Z["149"]="A",Z["261"]="M",Z["381"]="MAC3",Z["329"]="MEAC3",Z["598"]="9",Z["278"]="9",Z["242"]="9",Z["243"]="9",Z["244"]="9",Z["247"]="9",Z["248"]="9",Z["353"]="9",Z["355"]="9",Z["356"]="9",Z["271"]="9",Z["577"]="9",Z["313"]="9",Z["579"]="9",Z["272"]="9",Z["302"]="9",Z["303"]="9",Z["407"]="9",Z["408"]="9",Z["308"]="9",Z["315"]="9",Z["330"]="9h",Z["331"]="9h",Z["332"]="9h",Z["333"]="9h",Z["334"]="9h",Z["335"]="9h",Z["336"]="9h",Z["337"]="9h",Z["338"]=
"so",Z["600"]="o",Z["250"]="o",Z["251"]="o",Z["194"]="*",Z["195"]="*",Z["220"]="*",Z["221"]="*",Z["196"]="*",Z["197"]="*",Z["279"]="(",Z["280"]="(",Z["317"]="(",Z["318"]="(",Z["273"]="(",Z["274"]="(",Z["357"]="(",Z["358"]="(",Z["275"]="(",Z["359"]="(",Z["360"]="(",Z["276"]="(",Z["583"]="(",Z["584"]="(",Z["314"]="(",Z["585"]="(",Z["561"]="(",Z["277"]="(",Z["361"]="(h",Z["362"]="(h",Z["363"]="(h",Z["364"]="(h",Z["365"]="(h",Z["366"]="(h",Z["591"]="(h",Z["592"]="(h",Z["367"]="(h",Z["586"]="(h",Z["587"]=
"(h",Z["368"]="(h",Z["588"]="(h",Z["562"]="(h",Z["409"]="(",Z["410"]="(",Z["411"]="(",Z["412"]="(",Z["557"]="(",Z["558"]="(",Z["394"]="1",Z["395"]="1",Z["396"]="1",Z["397"]="1",Z["398"]="1",Z["399"]="1",Z["400"]="1",Z["401"]="1",Z["571"]="1",Z["402"]="1",Z["694"]="1h",Z["695"]="1h",Z["696"]="1h",Z["697"]="1h",Z["698"]="1h",Z["699"]="1h",Z["700"]="1h",Z["701"]="1h",Z["702"]="1h",Z["703"]="1h",Z["386"]="3",Z["387"]="w",Z["406"]="6",Z["645"]="(",Z["646"]="(",Z["647"]="(",Z["648"]="(",Z["649"]="(",Z["650"]=
"(",Z["651"]="(",Z["652"]="(",Z["653"]="(",Z["654"]="(",Z["655"]="(",Z["656"]="(",Z["657"]="(",Z["658"]="(",Z["659"]="(",Z["660"]="(",Z["661"]="(",Z["662"]="(",Z["663"]="(",Z["664"]="(",Z["665"]="(",Z["666"]="(",Z["667"]="(",Z["668"]="(",Z["669"]="(",Z["670"]="(",Z["671"]="(",Z["672"]="(",Z["673"]="(",Z["674"]="(h",Z["675"]="(h",Z["676"]="(h",Z["677"]="(h",Z["678"]="(h",Z["679"]="(h",Z["680"]="(h",Z["681"]="(h",Z["682"]="(h",Z["683"]="(h",Z["684"]="(h",Z["685"]="(h",Z["686"]="(h",Z["687"]="(h",Z["688"]=
"A",Z["689"]="A",Z["690"]="A",Z["691"]="MEAC3",Z);var ZE="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");YE.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};mF.prototype.ze=function(){return 2===this.containerType};
mF.prototype.isEncrypted=function(){return!!this.Nd};
mF.prototype.ym=function(){return!!this.audio};
mF.prototype.isVideo=function(){return!!this.video};g.uF.prototype.getName=function(){return this.name};
g.uF.prototype.getId=function(){return this.id};
g.uF.prototype.getIsDefault=function(){return this.isDefault};
g.uF.prototype.toString=function(){return this.name};
g.uF.prototype.getName=g.uF.prototype.getName;g.uF.prototype.getId=g.uF.prototype.getId;g.uF.prototype.getIsDefault=g.uF.prototype.getIsDefault;g.v(g.vF,eA);g.vF.prototype.S=function(a,b,c,d,e){return eA.prototype.S.call(this,a,b,c,d,e)};g.v(JF,g.FB);g.k=JF.prototype;g.k.appendBuffer=function(a,b,c){if(this.Dd.zA()!==this.appendWindowStart+this.start||this.Dd.uE()!==this.appendWindowEnd+this.start||this.Dd.Ld()!==this.timestampOffset+this.start)this.Dd.supports(1),this.Dd.iN(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Dd.GG(this.timestampOffset+this.start);this.Dd.appendBuffer(a,b,c)};
g.k.abort=function(){this.Dd.abort()};
g.k.remove=function(a,b){this.Dd.remove(a+this.start,b+this.start)};
g.k.yg=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.Dd.clear()};
g.k.iN=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.tK=function(){return this.timestampOffset+this.start};
g.k.zA=function(){return this.appendWindowStart};
g.k.uE=function(){return this.appendWindowEnd};
g.k.GG=function(a){this.timestampOffset=a};
g.k.Ld=function(){return this.timestampOffset};
g.k.Bg=function(a){a=this.Dd.Bg(void 0===a?!1:a);return IF(a,this.start,this.end)};
g.k.Oi=function(){return this.Dd.Oi()};
g.k.ql=function(){return this.Dd.ql()};
g.k.XK=function(){return this.Dd.XK()};
g.k.SD=function(){this.Dd.SD()};
g.k.Qx=function(a){return this.Dd.Qx(a)};
g.k.Br=function(){return this.Dd.Br()};
g.k.AE=function(){return this.Dd.AE()};
g.k.fO=function(a,b){this.Dd.fO(a,b)};
g.k.supports=function(a){return this.Dd.supports(a)};
g.k.BE=function(){return this.Dd.BE()};
g.k.isView=function(){return!0};
g.k.WG=function(a,b,c){return this.isActive?this.Dd.WG(a,b,c):!1};
g.k.ND=function(){return this.Dd.ND()?this.isActive:!1};
g.k.isLocked=function(){return this.RC&&!this.isActive};
g.k.jc=function(a){a=this.Dd.jc(a);a.vw=this.start+"-"+this.end;return a};
g.k.IA=function(){return this.Dd.IA()};
g.k.pK=function(){return this.Dd.pK()};
g.k.ra=function(){HB(this.Dd,this.tS);g.FB.prototype.ra.call(this)};var eX=!1;g.v(LF,g.FB);g.k=LF.prototype;g.k.appendBuffer=function(a,b,c){this.aA=!1;c&&(this.pB=c);b&&(b.isEncrypted()&&(this.lL=this.pB),3===b.type&&(this.tf=b));if(a.length){this.Cy&&(2<=this.Cy.length||1048576<a.length?delete this.Cy:this.Cy.push(a));var d;(null==(d=this.yc)?0:d.appendBuffer)?this.yc.appendBuffer(a):this.yc?this.yc.append(a):this.Ig&&this.Ig.webkitSourceAppend(this.id,a)}};
g.k.abort=function(){try{this.yc?this.yc.abort():this.Ig&&this.Ig.webkitSourceAbort(this.id)}catch(a){}this.pB=this.tf=null};
g.k.remove=function(a,b){this.aA=!1;var c;(null==(c=this.yc)?0:c.remove)&&this.yc.remove(a,b)};
g.k.yg=function(){this.remove(this.zA(),this.uE())};
g.k.clear=function(){this.ql()||(this.abort(),this.TD=!0,this.yg(),this.lL=this.pB=this.tf=null,this.appendWindowStart=this.timestampOffset=0,this.dJ=CF([],[]),this.aA=!1,this.Cy=KF?[]:void 0)};
g.k.zA=function(){if(eX&&this.isVideo)return this.appendWindowStart;var a;return(null==(a=this.yc)?void 0:a.appendWindowStart)||0};
g.k.uE=function(){var a;return(null==(a=this.yc)?void 0:a.appendWindowEnd)||0};
g.k.iN=function(a,b){this.yc&&(eX&&this.isVideo?(this.appendWindowStart=a,this.yc.appendWindowEnd=b):a>this.zA()?(this.yc.appendWindowEnd=b,this.yc.appendWindowStart=a):(this.yc.appendWindowStart=a,this.yc.appendWindowEnd=b))};
g.k.tK=function(){return this.timestampOffset};
g.k.GG=function(a){eX?this.timestampOffset=a:this.supports(1)&&(this.yc.timestampOffset=a)};
g.k.Ld=function(){return eX?this.timestampOffset:this.supports(1)?this.yc.timestampOffset:0};
g.k.Bg=function(a){if(void 0===a?0:a)return this.aA||this.Oi()||(this.dJ=this.Bg(!1),this.aA=!0),this.dJ;try{return this.yc?this.yc.buffered:this.Ig?this.Ig.webkitSourceBuffered(this.id):CF([0],[Infinity])}catch(b){return CF([],[])}};
g.k.Oi=function(){var a;return(null==(a=this.yc)?void 0:a.updating)||!1};
g.k.ql=function(){return this.TD};
g.k.XK=function(){return!this.TD&&this.Oi()};
g.k.SD=function(){this.TD=!1};
g.k.Qx=function(a){var b=null==a?void 0:a.Hb;a=null==a?void 0:a.containerType;return!b&&!a||b===this.Hb&&a===this.containerType};
g.k.Br=function(){return this.pB};
g.k.AE=function(){return this.lL};
g.k.fO=function(a,b){this.containerType!==a&&(this.supports(4),MF()&&this.yc.changeType(b));this.containerType=a};
g.k.BE=function(){return this.tf};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.yc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.yc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.yc)||!d.remove);case 3:var e,f;return!!((null==(e=this.yc)?0:e.addEventListener)&&(null==(f=this.yc)?0:f.removeEventListener));case 4:return!(!this.yc||!this.yc.changeType);default:return!1}};
g.k.ND=function(){return!this.Oi()};
g.k.isLocked=function(){return!1};
g.k.jc=function(a){a.to=this.Ld();a.up=this.Oi();var b,c=(null==(b=this.yc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.yc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=DF(this.Bg())}catch(e){}return a};
g.k.ra=function(){this.supports(3)&&(this.yc.removeEventListener("updateend",this.md),this.yc.removeEventListener("error",this.md));g.FB.prototype.ra.call(this)};
g.k.WG=function(a,b,c){if(!this.supports(2)||this.Oi())return!1;var d=this.Bg(),e=EF(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.remove(0,l),!0}catch(m){}return!1};
g.k.IA=function(){return this.containerType};
g.k.pK=function(){return this.Cy};
var KF=!1;NF.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.j)}catch(a){}this.B=!0}};
NF.prototype.isDisposed=function(){return this.B};
NF.prototype.equals=function(a){return null!==a&&a.j===this.j};
NF.prototype.toString=function(){return"MediaResource {"+this.j+"}"};g.v(OF,g.E);g.k=OF.prototype;g.k.getDuration=function(){var a;return(null==(a=this.mediaSource)?void 0:a.duration)||this.J};
g.k.Bk=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.J=a,this.Ig.webkitSourceSetDuration(a))}catch(b){}};
g.k.Eg=function(){try{return"closed"===SF(this)}catch(a){return!0}};
g.k.Oi=function(){return!!(this.j&&this.j.Oi()||this.u&&this.u.Oi())};
g.k.W4=function(){!this.isDisposed()&&PF(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.V4=function(){this.dispose()};
g.k.wY=function(a){QF&&!this.C&&a.ql()&&0===a.Bg().length&&(a.SD(),this.ql()||(this.mediaElement.LK=!0,this.mediaElement.setCurrentTime(0)))};
g.k.clear=function(){uua(this,function(){});
var a;null==(a=this.j)||a.clear();var b;null==(b=this.u)||b.clear()};
g.k.ql=function(){var a,b;return!!this.u&&(null==(a=this.u)?void 0:a.ql())||!!this.j&&(null==(b=this.j)?void 0:b.ql())};
g.k.Qx=function(a,b){return!!this.j&&!!this.u&&this.j.Qx(b)&&this.u.Qx(a)};
var QF=!1;var zua=/action_display_post/;var Aua;g.v(VF,g.FB);g.k=VF.prototype;g.k.isLoading=function(){return 1===this.state};
g.k.isFailed=function(){return 3===this.state};
g.k.A5=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Pd=this.u=!0;this.timeline||(this.timeline=new Uta);Yta(this.timeline,a);this.ma("refresh");for(a=0;a<b.length;a++){var c=Pua(this,b[a]);if(!this.j[c.id]){var d=aG(GE(b[a],"BaseURL").textContent),e=GE(b[a],"Initialization"),f=FE(e,"sourceURL");e=oE(FE(e,"range"));this.j[c.id]=new EE(d,c,f,e)}c=this.j[c.id];d=FE(b[a],"id","AdaptationSet");
d=""!==d?d:FE(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.B[c.info.id]||f.u[d]||f.j||null;d=f.j;!this.D&&f.getStreamTimeOffset()&&(this.D=f.getStreamTimeOffset());if(f.D){e=[];d=g.t(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=8*c.info.ac,n=h.Na;var p=h.startSecs;var q=f.J.split("$$");for(var r=0;r<q.length;r++)q[r]=q[r].replace("$RepresentationID$",l),q[r]=q[r].replace("$Number$",n.toString()),q[r]=q[r].replace("$Bandwidth$",m.toString()),q[r]=q[r].replace("$Time$",
p.toString());e.push(new dD(h.Na,h.startSecs,h.durationSecs,h.j,q.join("$"),null,h.u))}d=e}else{f=xb(GE(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.I);e=[];for(h=0;h<f.length;h++){l=e;m=l.push;n=d[h];p=void 0;r=f[h];q=r.getAttribute("media");if(r=r.getAttribute("mediaRange")){var w=r.split("-");w[1]&&0<=Number(w[1])?p=oE(r):q=q+"?range="+r}m.call(l,new dD(n.Na,n.startSecs,n.durationSecs,n.j,q,p,n.u))}d=e}c.update(d,this.isLive,this.Ba)}Zta(this.timeline);return!0}this.duration=Rta(FE(a,
"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){f=b[a];c=Pua(this,f);d=aG(GE(f,"BaseURL").textContent);e=GE(f,"SegmentBase");f=oE(e.attributes.getNamedItem("indexRange").value);e=oE(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new UE(d,c,e,f);if(!c){b=!1;break a}WF(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.isDisposed()){var a=g.ci(this.sourceUrl,{start_seq:Tua(this).toString()});Rua(this,a).Oj(function(){})}};
g.k.resume=function(){Qua(this)};
g.k.ge=function(){if(this.isManifestless&&this.B&&dG(this))return dG(this);var a=this.j,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.C&&(b=!0),h=h.Er(),f.info.ym()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.Kd=function(){if(this.isManifestless){if(eG(this))return eG(this);if(this.Xd){var a=this.Ff(this.ge());if(a&&(a-=this.Xd,0<a))return this.ge()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Kd()}return 0};
g.k.getStreamTimeOffset=function(){return this.D};
g.k.Ff=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.ai(a),e=c.Ff(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var iG=null,x8a,jG=!(null==(x8a=navigator.mediaCapabilities)||!x8a.decodingInfo),Oua={commentary:1,alternate:2,dub:3,main:4};oG.prototype.clone=function(a){return new oG(this.flavor,a,this.u,this.experiments)};
oG.prototype.jc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
oG.prototype.ih=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 y8a={},yG=(y8a.playready=["com.youtube.playready","com.microsoft.playready"],y8a.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],y8a),j3={},HTa=(j3.widevine="DRM_SYSTEM_WIDEVINE",j3.fairplay="DRM_SYSTEM_FAIRPLAY",j3.playready="DRM_SYSTEM_PLAYREADY",j3),k3={},z8a=(k3.widevine=1,k3.fairplay=2,k3.playready=3,k3);g.v(zG,g.E);
zG.prototype.initialize=function(a,b){for(var c=this,d=g.t(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.t(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.Nd)for(var h=g.t(Object.keys(f.Nd)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=yG[m];!m&&this.N("html5_enable_vp9_fairplay")&&"fairplay"===l&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.t(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.B[n]=this.B[n]||new oG(l,n,f.Nd[l],this.D.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}ew()&&(this.B["com.youtube.fairplay"]=new oG("fairplay","com.youtube.fairplay","",this.D.experiments),this.N("html5_enable_vp9_fairplay")||(this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.u=iva(b,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay"),this.N("html5_enable_vp9_fairplay")).filter(function(p){return!!c.B[p]})};
zG.prototype.N=function(a){return this.D.experiments.eb(a)};var WWa={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};var A8a={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},l3;a:{var m3=g.Wb();m3=m3.toLowerCase();if(g.Ob(m3,"android")){var B8a=m3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(B8a){var C8a=parseFloat(B8a[1]);if(100>C8a){l3=C8a;break a}}var D8a=m3.match("("+g.Pc(A8a).join("|")+")");l3=D8a?A8a[D8a[0]]:0}else l3=void 0}var xH=l3,wH=0<=xH;var Nya={RED:"red",i8a:"white"};var Iya={lba:"adunit",fpa:"detailpage",Opa:"editpage",Xpa:"embedded",dqa:"embedded_unbranded",xDa:"leanback",TRa:"previewpage",vSa:"profilepage",pQ:"unplugged",WQa:"playlistoverview",MYa:"sponsorshipsoffer",aWa:"shortspage",Uwa:"handlesclaiming",nX:"immersivelivepage"};pva.prototype.eb=function(a){return"true"===this.flags[a]};var qva=Promise.resolve(),tva=window.queueMicrotask?window.queueMicrotask.bind(window):rva;DG.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;jw?a=a||E8a[b]:2.2===xH?a=a||F8a[b]:cw()&&(a=a||G8a[b]);return!!a};
DG.prototype.isTypeSupported=function(a){return this.J?window.cast.receiver.platform.canDisplayType(a):zF(a)};
var F8a={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},G8a={"application/x-mpegURL":"maybe"},E8a={"application/x-mpegURL":"maybe"};Ava.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Pv(a.url,a.options)}};g.v(GG,g.FB);GG.prototype.add=function(a,b){!this.items[a]&&(b.cA||b.QD||b.KC)&&(this.items[a]=hba(b),this.ma("vast_info_card_add",a))};
GG.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
GG.prototype.get=function(a){return this.items[a]||null};
GG.prototype.isEmpty=function(){return g.Uc(this.items)};var EH={BFa:1,CFa:2,DFa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var Cva=!1,IG,JG,KG,LG,MG;NG.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)Dva(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(Dva(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};
NG.prototype.EG=function(a){for(var b=0;4>b;b++)this.counter[b]=a[4*b]<<24|a[4*b+1]<<16|a[4*b+2]<<8|a[4*b+3];this.j=16};var OG=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a})();
var PG;SG.prototype.Nh=function(a,b){var c=this;b=void 0===b?1:b;this.j+=b;this.B+=a;var d=a/b;RG.forEach(function(e,f){d<e||(c.u[f]+=b)})};
SG.prototype.toString=function(){return""};
var RG=[20,100,500,2E3];g.k=Gva.prototype;g.k.isActive=function(){return!0};
g.k.Hx=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.iH=a.prototype[e],d.lH=b[e],a.prototype[e]=function(f){return function(){var h=g.ya.apply(0,arguments),l=(0,g.R)();h=f.iH.apply(this,h);TG(c,f.lH,(0,g.R)()-l);return h}}(d)),d={iH:d.iH,
lH:d.lH}}};
g.k.Rs=function(a){return new Fva(a)};
g.k.lr=function(a,b){b=void 0===b?1:b;a instanceof Fva&&(TG(this,a.name,(0,g.R)()-a.startTimeMs,b),a.j=!0)};
g.k.OM=function(a,b){var c=void 0===c?1:c;var d=(0,g.R)();b();TG(this,a,(0,g.R)()-d,c)};
g.k.ER=function(){var a={},b;for(b in this.profiles)if(this.profiles.hasOwnProperty(b)){var c=this.profiles[b];if(0===c.j)c=null;else{for(var d=c.j.toString()+"."+Math.round(c.B).toString(),e=0;e<RG.length;++e)if(0<c.u[e])d+="."+RG[e].toString()+"_"+Math.round(c.u[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new Eva;return a};
g.k.toString=function(){return""};g.k=UG.prototype;g.k.isActive=function(){return!1};
g.k.Hx=function(){};
g.k.Rs=function(){};
g.k.lr=function(){};
g.k.OM=function(a,b){b()};
g.k.ER=function(){return{}};
g.k.toString=function(){return""};var n3,VY,o3,PW,rXa;n3=new UG;VY=nv("html5_enable_profiler")||nv("html5_onesie_enable_profiler")||nv("html5_offline_encryption_enable_profiler")||0<nv("html5_performance_impact_profiling_timer_ms")?new Gva:new UG;g.jV=nv("html5_enable_profiler")?VY:n3;o3=nv("html5_onesie_enable_profiler")?VY:n3;PW=nv("html5_offline_encryption_enable_profiler")?VY:n3;rXa=nv("html5_performance_impact_profiling_timer_ms")?VY:n3;g.v(VG,g.E);VG.prototype.encrypt=function(a){this.j.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a};
VG.prototype.EG=function(a){this.j.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)};g.WG.prototype.encrypt=function(a,b){var c=this,d,e;return g.A(function(f){if(1==f.j){d=QG();if(!d)return f.return(c.j(a,b));g.qa(f,3);return g.y(f,c.u(a,b,d),5)}if(3!=f.j)return f.return(f.u);e=g.ua(f);g.sA(e);OG=!0;return f.return(c.j(a,b))})};
g.WG.prototype.u=function(a,b,c){var d=this,e,f,h;return g.A(function(l){switch(l.j){case 1:if(d.D){l.Ia(2);break}e=d;return g.y(l,c.importKey("raw",d.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.D=l.u;case 2:return f={name:"AES-CTR",counter:b,length:128},g.y(l,c.encrypt(f,d.D,a),4);case 4:return h=l.u,l.return(new Uint8Array(h))}})};
g.WG.prototype.j=function(a,b){this.B||(this.B=new NG(this.C));this.B.EG(b);return this.B.encrypt(a)};
g.WG.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.XG.prototype.encrypt=function(a,b){this.j||(this.j=new NG(this.u));this.j.EG(b);return this.j.encrypt(a)};
g.XG.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
YG.prototype.encrypt=function(a,b){this.B||(this.B=new VG(this.j,this.D));this.B.EG(b);return this.B.encrypt(a)};
YG.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
o3.Hx(YG,{encrypt:"oaw",decrypt:"oaw"});ZG.prototype.reset=function(){Iva(this);this.update(this.B)};
ZG.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.I.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,Hva(this,this.I,0));for(;b+64<=c;b+=64)Hva(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.u),this.u+=a.length)};
var $G=[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 H8a;H8a={};g.I8a=g.Px("yt-idb-pref-storage",{bq:(H8a.prefs={Xl:1},H8a),shared:!1,upgrade:function(a,b){b(1)&&g.Ax(g.ux(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});g.v(aH,g.WG);aH.prototype.j=function(a,b){var c=o3.Rs("oap");b=g.WG.prototype.j.call(this,a,b);o3.lr(c,Math.ceil(a.length/16));return b};
aH.prototype.u=function(a,b,c){var d=this,e,f;return g.A(function(h){if(1==h.j)return e=o3.Rs("oan2"),g.y(h,g.WG.prototype.u.call(d,a,b,c),2);f=h.u;o3.lr(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.v(bH,g.XG);bH.prototype.encrypt=function(a,b){var c=o3.Rs("oap");b=g.XG.prototype.encrypt.call(this,a,b);o3.lr(c,Math.ceil(a.byteLength/16));return b};
g.v(cH,YG);cH.prototype.encrypt=function(a,b){if(a.buffer!==this.j.memory.buffer){var c=new Uint8Array(this.j.memory.buffer,this.j.malloc(a.byteLength),a.byteLength);this.u.add(c.byteOffset);c.set(a)}if(b.buffer!==this.j.memory.buffer){var d=new Uint8Array(this.j.memory.buffer,this.j.malloc(b.byteLength),b.byteLength);this.u.add(d.byteOffset);d.set(b)}return YG.prototype.encrypt.call(this,c||a,d||b)};
cH.prototype.isDisposed=function(){return this.C};
cH.prototype.dispose=function(){this.C=!0;for(var a=g.t(this.u),b=a.next();!b.done;b=a.next())this.j.free(b.value);this.u.clear()};
o3.Hx(cH,{encrypt:"oawc",decrypt:"oawc"});eH.prototype.Vh=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.u+=a};
eH.prototype.Li=function(){return this.j/(1-Math.pow(this.alpha,this.u))};fH.prototype.Vh=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.j&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.j;this.C=!0};
fH.prototype.Li=function(){return this.I?(gH(this,this.B-this.I)+gH(this,this.B)+gH(this,this.B+this.I))/3:gH(this,this.B)};g.v(Zva,g.E);oH.prototype.then=function(a,b){return this.promise.then(a,b)};
oH.prototype.resolve=function(a){this.u(a)};
oH.prototype.reject=function(a){this.j(a)};var Jya="blogger gac books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),nza={jga:"cbrand",vga:"cbr",wga:"cbrver",Zya:"c",cza:"cver",bza:"ctheme",aza:"cplayer",BJa:"cmodel",VKa:"cnetwork",ZOa:"cos",aPa:"cosver",qQa:"cplatform"};g.v(KH,g.E);g.k=KH.prototype;g.k.N=function(a){return this.experiments.eb(a)};
g.k.getVideoUrl=function(a,b,c,d,e,f){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.OH(this);e="www.youtube.com"===c;f=f&&this.N("embeds_enable_shorts_links_for_eligible_shorts");!f&&d&&e?f="https://web.archive.org/web/20230104105643/https://youtu.be/"+a:g.BH(this)?(f="https://"+c+"/fire",b.v=a):(f&&e?(f=this.protocol+"://"+c+"/shorts/"+a,d&&(b.feature="share")):(f=this.protocol+"://"+c+"/watch",b.v=a),jw&&(a=Ima())&&(b.ebc=a));return g.ci(f,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.OH(this)+"/embed/"+b;d&&(b=g.ci(b,{list:d}));d=c.width;c=c.height;b=g.pe(b);return'<iframe width="'+d+'" height="'+c+'" src="'+b+'" title="'+((null!=a?a:"YouTube video player")+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')};
g.k.supportsGaplessAudio=function(){return g.yF&&!jw&&74<=ina()||g.vG&&g.Bc(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
var pza=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],mza=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"];g.k=fI.prototype;g.k.ih=function(){return this.j};
g.k.Jz=function(){return null};
g.k.FP=function(){var a=this.Jz();return a?(a=g.Bv(a.j),Number(a.expire)):NaN};
g.k.cN=function(){};
g.k.getHeight=function(){return this.j.video.height};qza.prototype.Re=function(){tza(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.t(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Rc){if(e.Rc.getIsDefault()){c=e.Rc.getId();break a}c||(c=e.Rc.getId())}}d=g.t(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.I||!e.Rc||e.Rc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.t(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.t(e),f=e.next();!f.done;f=
e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Rc){p=f.Rc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=hI(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(sza(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.t(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=J8a,d=(h=d.Rc)?'#EXT-X-MEDIA:URI="'+hI(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.D.length?J8a:void 0;d=g.t(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,h=b[e.j],l=void 0,0<(null==(l=h)?void 0:l.length)&&(h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(sza(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
e.fps),e.fz&&(h+=",VIDEO-RANGE="+e.fz),a.push(h),a.push(hI(this,e.url,"")));return a.join("\n")};
var J8a="text";g.v(iI,fI);iI.prototype.FP=function(){return this.expiration};
iI.prototype.Jz=function(){if(!this.u||this.u.isDisposed()){var a=this.B.Re();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new NF(a)}return this.u};g.v(jI,fI);jI.prototype.Jz=function(){return new NF(this.u.Se())};
jI.prototype.cN=function(){this.u=cD(this.u)};g.v(kI,fI);kI.prototype.Jz=function(){return new NF(this.u)};var K8a={},Eza=(K8a.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",K8a.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",K8a);g.k=g.lI.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.Se=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.mI(this)+" - "+this.vssId};
g.k.equals=function(a){return a?this.toString()===a.toString():!1};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Gza={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Hza={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Iza=/^(\d*)_((\d*)_?(\d*))$/;var Kza={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Lza={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var p3={},QAa=(p3.ALWAYS=1,p3.BY_REQUEST=3,p3.UNKNOWN=void 0,p3),q3={},VAa=(q3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",q3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",q3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",q3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",q3);tI.prototype.toString=function(){return this.type+this.id};g.vI.prototype.Xf=function(a){a=a||"hqdefault.jpg";var b=this.ea[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return PH(this.u,this.j,a)};
g.vI.prototype.Wn=function(){return this.u.getVideoUrl(this.videoId,this.playlistId)};g.wI.prototype.Xf=function(a){a||(a="hqdefault.jpg");var b=this.ea[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:PH(this.j,this.videoId,a)};
g.wI.prototype.Wn=function(a){return this.watchUrl||this.j.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};CI.prototype.getState=function(){return this.store.getState()};
CI.prototype.dispatch=function(a){return this.store.dispatch(a)};
CI.prototype.subscribe=function(a){return this.store.subscribe(a)};
CI.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
CI.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var kAa={buttonEntity:358,captionTrack:225,channelHandle:275,commerceCartListEntity:236,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,emojiFountainDataEntity:393,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,flowStateEntity:252,iconBadgeEntity:229,liveChatPollStateEntity:217,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,
mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,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,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,refresh:148,settingEntity:297,transfer:120,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},jAa={},L8a=g.t(Object.entries(kAa)),
M8a=L8a.next();!M8a.done;M8a=L8a.next()){var N8a=g.t(M8a.value),O8a=N8a.next().value,P8a=N8a.next().value,Q8a=O8a,R8a=P8a;R8a&&(jAa[R8a]=Q8a)};var r3;r3={};g.S8a=(r3.INVALID_ENCODER_VERSION="Invalid encoder version",r3.KEY_CREATION_FAILED="Failed to create encoder key",r3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",r3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",r3.WRONG_DATA_TYPE="Encoder cannot process the data type",r3);var dAa;
dAa=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];"function"===typeof a[e]&&(c[e]=a[e])}var f=Object.keys(c);try{yla(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var r=f[q],w=l[r],x=(0,c[r])(w,m);if("undefined"===typeof x)throw l=m&&m.type,Error("Given "+(l&&'action "'+String(l)+'"'||"an action")+', reducer "'+r+'" 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.');p[r]=
x;n=n||x!==w}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
return mAa(a,b)}});
g.CJ=new CI;var nAa=["APP_STATE","PI"];var s3={},rAa=g.Px("yt-player-local-media",{bq:(s3.index={Xl:2},s3.media={Xl:2},s3.captions={Xl:5},s3),shared:!1,upgrade:function(a,b){b(2)&&(g.ux(a,"index"),g.ux(a,"media"));b(5)&&g.ux(a,"captions");b(6)&&(vx(a,"metadata"),vx(a,"playerdata"))},
version:5});WI.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
WI.prototype.get=function(a){return this.j.get(a)};
WI.prototype.remove=function(a){this.j.remove(a)};var XI=void 0;oAa("LMS",function(){return g.A(function(a){return a.return(g.YI())})});var bJ,xAa;bJ=0;xAa=!1;g.AAa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;oAa("LMDB",function(){var a,b;return g.A(function(c){if(1==c.j)return g.y(c,g.Nx(),2);if(3!=c.j){a=c.u;if(!a)throw g.mx("edd");return g.y(c,g.aJ(a),3)}b=c.u;return c.return(g.wx(b,["index","media","captions"],{mode:"readonly",Ub:!0},function(d){var e={};d=[g.Bx(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
Wna(d.objectStore("media")),Wna(d.objectStore("captions"))];return g.ox.all(d).then(function(f){var h=g.t(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:BAa(f||[]),captions:h}})}))})});g.v(dJ,g.FB);dJ.prototype.ra=function(){this.j&&(this.j=this.j.onload=null);g.FB.prototype.ra.call(this)};g.k=g.hJ.prototype;g.k.getHeight=function(){return this.height};
g.k.TR=aa(4);g.k.oD=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.B.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.Se=function(a){var b=this.C;b=b.replace("$N",this.B);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.ci(b,{sigh:this.signature}));return wB(b)};
g.k.pD=function(a){var b=this.oD()-1;return g.de(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.pw=function(){return this.frameCount-1};
g.k.YH=function(){return this.frameCount?0:-1};
g.k.GP=function(){};g.v(iJ,dJ);iJ.prototype.u=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.I(e-1,d,a[e],b);(this.T||180>f.getHeight())&&c.push(f)}return c};
iJ.prototype.I=function(a,b,c,d){return new g.hJ(a,b,c,d)};g.v(jJ,g.hJ);g.k=jJ.prototype;g.k.oD=function(){return this.u.Bx()};
g.k.pD=function(a){var b=this.rows*this.columns*this.D,c=this.u,d=c.od();a=c.ai(a);return a>d-b?-1:a};
g.k.pw=function(){return this.u.od()};
g.k.YH=function(){return this.u.jm()};
g.k.GP=function(a){this.u=a};g.v(kJ,iJ);kJ.prototype.u=function(a,b){return iJ.prototype.u.call(this,"$N|"+a,b)};
kJ.prototype.I=function(a,b,c){return new jJ(a,b,c,this.isLive)};g.v(g.mJ,g.FB);g.k=g.mJ.prototype;g.k.V=function(){return this.u};
g.k.N=function(a){return this.u.N(a)};
g.k.kh=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Ol)||!a.Rb)};
g.k.ZT=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.ZT,this),this.YQ(-1))};
g.k.YQ=function(a){if(!this.isLivePlayback||!this.Z||"fairplay"!=this.Z.flavor){var b=Lua(this.j,this.tI);if(0<b.length){for(var c=g.t(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Kd());this.ma("cuepointupdated",b,a);this.tI+=b.length;if(wJ(this)&&this.u.C)for(b=g.t(b),d=b.next();!d.done;d=b.next())c=d.value,this.xa("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.KN.start=this.vL,this.KN.end=
c+3)}}};
g.k.zm=function(){return this.Nd?!0:!!this.j&&NC(this.j)};
g.k.tj=function(){if(this.cotn)return null;var a=g.UH(this.u)||this.N("web_l3_storyboard");if(!this.Gl)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Gl=new iJ(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=dba(this.j.j).index)&&(this.Gl=new kJ(b.spec,this.j.isLive,c,a))}else this.Iw?this.Gl=new iJ(this.Iw,this.lengthSeconds,void 0,!1,a):this.Aw&&this.j&&
(b=dba(this.j.j).index)&&(this.Gl=new kJ(this.Aw,this.j.isLive,b,a));return this.Gl};
g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Iw||this.Aw};
g.k.ge=function(){return this.j&&!isNaN(this.j.ge())?this.j.ge():wJ(this)?0:this.lengthSeconds};
g.k.Kd=function(){return this.j&&!isNaN(this.j.Kd())?this.j.Kd():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.B){var b=this.j.j[this.B.id];if(!b)return null;var c=b.index.ai(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Nk)};
g.k.wu=function(){var a,b,c;return!!this.adaptiveFormats||!!(null==(a=this.playerResponse)?0:null==(b=a.streamingData)?0:null==(c=b.adaptiveFormats)?0:c.length)};
g.k.isLoaded=function(){return nJ(this)&&!this.eh&&!this.yn};
g.k.Xf=function(a){if(30==this.Aa)return(a=this.ea["default.jpg"])?a:this.videoId?g.ci("//web.archive.org/web/20230104105643/https://docs.google.com/vt",{id:this.videoId,authuser:this.authUser,authkey:this.authKey}):"//web.archive.org/web/20230104105643/https://docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.ea[a];return b||this.u.oa||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:PH(this.u,this.videoId,a)};
g.k.Pd=function(){return this.isLivePlayback||this.Ne||this.jd||!(!this.liveUtcStartSeconds||!this.Ql)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Ne&&!this.isLivePlayback&&this.j.u)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.yw||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.I&&!pF(this.I))return g.ib(this.getAvailableAudioTracks(),function(d){return d.id==a.I.id})||this.jn;
if(this.yw){if(!this.Dn)for(var b=g.t(this.yw),c=b.next();!c.done;c=b.next())if(c=c.value,c.Rc.getIsDefault()){this.Dn=c;break}return this.Dn||this.jn}return this.jn};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.Wn=function(){return this.watchUrl?this.watchUrl:this.u.getVideoUrl(this.videoId)};
g.k.ZK=function(){return!!this.j&&(Cua(this.j)||Dua(this.j)||Eua(this.j))};
g.k.isAd=function(){return!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.rN=function(){return this.Kp||this.Mg};
g.k.xC=function(){return this.zj||this.Mg};
g.k.SI=function(){return sJ(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.xa=function(a,b,c){this.ma("ctmp",a,b,c)};
g.k.PM=function(a,b,c){this.ma("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.ra=function(){g.FB.prototype.ra.call(this);this.jz=null;delete this.BZ;delete this.accountLinkingConfig;delete this.j;this.C=this.playerResponse=this.watchNextResponse=null;this.Ok=this.adaptiveFormats="";delete this.botguardData;this.mf=this.suggestions=this.Vz=null};iK.prototype.jB=function(){return!1};
iK.prototype.Ba=function(){return function(){return null}};var qK=null;g.v(pK,g.FB);pK.prototype.FA=function(a){return this.j.hasOwnProperty(a)?this.j[a].FA():{}};
g.Da("ytads.bulleit.getVideoMetadata",function(a){return rK().FA(a)});
g.Da("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=rK();c=UBa(c);null!==c&&d.ma(c,{queryId:a,viewabilityString:b})});g.v(wK,iK);g.k=wK.prototype;g.k.Kx=function(){return!0};
g.k.zt=function(){return!1};
g.k.isSkippable=function(){return null!=this.ya};
g.k.Yf=function(){return this.J};
g.k.getVideoUrl=function(){return null};
g.k.jB=function(){return!0};g.v(FK,iK);FK.prototype.Kx=function(){return!0};
FK.prototype.zt=function(){return!1};
FK.prototype.jB=function(){return!0};
FK.prototype.Ba=function(){return function(){return g.Ee("video-ads")}};aCa.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.j.j};var O0a={p7:"FINAL",PW:"AD_BREAK_LENGTH",Taa:"AD_CPN",aba:"AH",eba:"AD_MT",jba:"ASR",nba:"AW",Gia:"NM",Hia:"NX",Iia:"NY",ZW:"CONN",Mja:"CPN",Ipa:"DV_VIEWABILITY",Lqa:"ERRORCODE",Uqa:"ERROR_MSG",Xqa:"EI",mX:"GOOGLE_VIEWABILITY",mya:"IAS_VIEWABILITY",ABa:"LACT",zZ:"LIVE_TARGETING_CONTEXT",RFa:"I_X",SFa:"I_Y",PIa:"MT",gJa:"MIDROLL_POS",hJa:"MIDROLL_POS_MS",mJa:"MOAT_INIT",nJa:"MOAT_VIEWABILITY",LZ:"P_H",NQa:"PV_H",OQa:"PV_W",MZ:"P_W",kRa:"TRIGGER_TYPE",gUa:"SDKV",SZ:"SLOT_POS",v0a:"SURVEY_LOCAL_TIME_EPOCH_S",
u0a:"SURVEY_ELAPSED_MS",a_:"VIS",S6a:"VIEWABILITY",Z6a:"VED",b_:"VOL",j7a:"WT",c_:"YT_ERROR_CODE"};var iCa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];LK.prototype.send=function(a,b,c){try{jCa(this,a,b,c)}catch(d){}};g.v(MK,LK);MK.prototype.j=function(){return this.Vq?g.aI(this.Vq.V(),g.bK(this.Vq)):Wv("")};
MK.prototype.u=function(){return this.Vq?this.Vq.V().pageId:""};var T8a=eaa(["attributionsrc"]);
NK.prototype.send=function(a,b,c){var d=!1;try{var e=new g.xj(a);if("2"===e.u.get("ase"))g.sA(Error("Queries for attributionsrc label registration when sending pings.")),d=!0;else if("1"===e.u.get("ase")&&"video_10s_engaged_view"===e.u.get("label")){var f=document.createElement("img");Hfa([new Oi(T8a[0].toLowerCase(),Qi)],f,"attributionsrc",a+"&asr=1")}var h=a.match(Vh);if("https"===h[1])var l=a;else h[1]="https",l=Th("https",h[2],h[3],h[4],h[5],h[6],h[7]);a=l;var m=oka(a);l=[];Gv(a)&&(l.push({headerType:"USER_AUTH"}),
l.push({headerType:"PLUS_PAGE_ID"}),l.push({headerType:"VISITOR_ID"}),l.push({headerType:"EOM_VISITOR_ID"}));d&&l.push({headerType:"ATTRIBUTION_REPORTING_ELIGIBLE"});this.Et.send({baseUrl:a,scrubReferrer:m,headers:l},b,c)}catch(n){}};g.v(lCa,g.E);g.v(dL,g.FB);g.k=dL.prototype;g.k.FA=function(){return{}};
g.k.hV=function(){};
g.k.Xg=function(a){this.Pt();this.ma(a)};
g.k.Pt=function(){rCa(this,this.ya,3);this.ya=[]};
g.k.getDuration=function(){return this.G.getDuration(2,!1)};
g.k.XA=function(){var a=this.j;OK(a)||!XK(a,"impression")&&!XK(a,"start")||XK(a,"abandon")||XK(a,"complete")||XK(a,"skip")||$K(a,"pause");this.C||(a=this.j,OK(a)||!XK(a,"unmuted_impression")&&!XK(a,"unmuted_start")||XK(a,"unmuted_abandon")||XK(a,"unmuted_complete")||$K(a,"unmuted_pause"))};
g.k.YA=function(){this.Aa||this.T||this.tm()};
g.k.Sj=function(){SK(this.j,this.getDuration());if(!this.C){var a=this.j;this.getDuration();OK(a)||(oCa(a,0,!0),pCa(a,0,0,!0),RK(a,"unmuted_complete"))}};
g.k.Xn=function(){var a=this.j;!XK(a,"impression")||XK(a,"skip")||XK(a,"complete")||WK(a,"abandon");this.C||(a=this.j,XK(a,"unmuted_impression")&&!XK(a,"unmuted_complete")&&WK(a,"unmuted_abandon"))};
g.k.yK=function(){var a=this.j;PK(a)?RK(a,"skip"):!XK(a,"impression")||XK(a,"abandon")||XK(a,"complete")||RK(a,"skip")};
g.k.tm=function(){if(!this.T){var a=this.xA();this.j.macros.AD_CPN=a;a=this.j;if(PK(a)){var b=a.j.getCurrentTime(2,!1);VK(a,"impression",b,0)}else RK(a,"impression");RK(a,"start");OK(a)||a.j.isFullscreen()&&WK(a,"fullscreen");this.T=!0;this.C=this.G.isMuted()||0==this.G.getVolume();this.C||(a=this.j,RK(a,"unmuted_impression"),RK(a,"unmuted_start"),OK(a)||a.j.isFullscreen()&&WK(a,"unmuted_fullscreen"))}};
g.k.Yn=function(a){a=a||"";var b="",c="",d="";jK(this.G)&&(b=this.G.Eb(2).state,this.G.ue()&&(c=this.G.ue().Tj(),null!=this.G.ue().Df()&&(d=this.G.ue().Df())));var e=this.j;e.macros=KK(e.macros,hCa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));RK(e,"error");this.C||(e=this.j,e.macros=KK(e.macros,hCa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))),RK(e,"unmuted_error"))};
g.k.rg=function(){};
g.k.QU=function(){this.ma("adactiveviewmeasurable")};
g.k.RU=function(){this.ma("adfullyviewableaudiblehalfdurationimpression")};
g.k.SU=function(){this.ma("adoverlaymeasurableimpression")};
g.k.TU=function(){this.ma("adoverlayunviewableimpression")};
g.k.UU=function(){this.ma("adoverlayviewableendofsessionimpression")};
g.k.VU=function(){this.ma("adoverlayviewableimmediateimpression")};
g.k.WU=function(){this.ma("adviewableimpression")};
g.k.dispose=function(){this.isDisposed()||(this.Pt(),this.u.unsubscribe("adactiveviewmeasurable",this.QU,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.RU,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.SU,this),this.u.unsubscribe("adoverlayunviewableimpression",this.TU,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.UU,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.VU,this),this.u.unsubscribe("adviewableimpression",
this.WU,this),delete this.u.j[this.ad.I],g.FB.prototype.dispose.call(this))};
g.k.xA=function(){var a=this.G.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.wR=function(){return""};g.v(eL,iK);eL.prototype.Kx=function(){return!0};
eL.prototype.zt=function(){return!1};g.v(fL,nK);g.v(gL,dL);g.k=gL.prototype;g.k.qD=function(){0<this.B&&this.tm()};
g.k.tm=function(){var a=this;this.Cc=new g.Zn(function(){a.Sj();for(var b=g.t(a.D.j.completionCommands||[]),c=b.next();!c.done;c=b.next())a.I.executeCommand(c.value,a.macros);a.Xg("adended")},this.B,this);
g.H(this,this.Cc);this.Cc.start();sCa(this,[new fL(this.D.j,this.macros)]);dL.prototype.tm.call(this)};
g.k.Xn=function(){dL.prototype.Xn.call(this);this.Xg("adabandoned")};
g.k.Sj=function(){dL.prototype.Sj.call(this)};
g.k.Xg=function(a){this.Cc&&this.Cc.stop();dL.prototype.Xg.call(this,a)};g.v(hL,iK);hL.prototype.Kx=function(){return!0};
hL.prototype.zt=function(){return!1};g.v(iL,iK);iL.prototype.Kx=function(){return!0};
iL.prototype.zt=function(){return!1};uCa.prototype.create=function(a,b){return a instanceof wK?this.C.create(a,b):a instanceof eL?this.j.create(a,b):a instanceof iL?this.B.create(a,b):a instanceof hL?this.u.create(a,b):null};g.v(jL,dL);g.k=jL.prototype;g.k.Xn=function(){dL.prototype.Xn.call(this);this.Xg("adabandoned")};
g.k.XA=function(){dL.prototype.XA.call(this);this.ma("adpause",2)};
g.k.YA=function(){dL.prototype.YA.call(this);this.ma("adplay",1)};
g.k.tm=function(){dL.prototype.tm.call(this);this.B.stop();this.D.S(this.G,g.AB("bltplayback"),this.xY);var a=new g.yB(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.Ge([a],2);this.ma("adplay",1)};
g.k.Sj=function(){dL.prototype.Sj.call(this);this.Xg("adended")};
g.k.Yn=function(a){dL.prototype.Yn.call(this,a);this.Xg("aderror")};
g.k.qD=function(){lK(this.G,!1);var a=this.I.u||{};a.autoplay="1";this.G.cueVideoByPlayerVars(a,2);this.B.start();this.G.playVideo(2);this.G.Oa("onAdIntroStateChange",1)};
g.k.Xg=function(a){this.B.stop();lK(this.G,!0);"adabandoned"!=a&&this.G.Oa("onAdComplete");this.G.Oa("onAdEnd");this.ma(a);this.G.Oa("onAdIntroStateChange",0)};
g.k.xY=function(a){"bltcompletion"==a.getId()&&(this.G.Qf("bltplayback",2),SK(this.j,this.getDuration()))};var XYa=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"]]);g.v(mL,nK);g.v(nL,dL);g.k=nL.prototype;g.k.qD=function(){if(this.J){var a=this.B.j;if(!lL(a)){g.sA(Error("adMessageRenderer is not augmented on playAd"));return}a=a.slot;for(var b=g.t(this.J.listeners),c=b.next();!c.done;c=b.next()){var d=c.value;c=a;ECa(d.j(),c);FCa(d.j(),c);d=d.j();d=g.t(d.Id);for(var e=d.next();!e.done;e=d.next())e.value.Hj(c)}}0>=this.Z&&(g.rA(Error("durationMs was specified incorrectly with a value of: "+this.Z)),this.Sj());this.tm();this.G.addEventListener("progresssync",this.oa)};
g.k.Xn=function(){dL.prototype.Xn.call(this);this.Xg("adabandonedreset",!0)};
g.k.tm=function(){var a=this.G.V();xC("apbs",void 0,"video_to_ad");dL.prototype.tm.call(this);this.D=a.N("disable_rounding_ad_notify")?this.G.getCurrentTime():Math.floor(this.G.getCurrentTime());this.I=this.D+this.Z/1E3;g.IH(a)?this.G.Oa("onAdMessageChange",{renderer:this.B.j,startTimeSecs:this.D}):sCa(this,[new mL(this.B.j)]);a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.DA(),c=this.B.j.videoAdBreakOffsetMsInt64;b&&g.ax("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*
this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.J){this.ea=!0;b=this.B.j;if(!lL(b)){g.sA(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.t(this.J.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;GCa(d.j(),e);H_(d.j(),e,f)}}g.V(this.G.Eb(1),512)&&(g.sA(Error("player stuck during adNotify")),a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.DA(),c=this.B.j.videoAdBreakOffsetMsInt64,
b&&g.ax("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Sj())};
g.k.Sj=function(){dL.prototype.Sj.call(this);this.Xg("adended",!0)};
g.k.Yn=function(a){g.sA(new g.Sw("Player error during adNotify.",{errorCode:a}));dL.prototype.Yn.call(this,a);this.Xg("aderror",!0)};
g.k.Xg=function(a,b){(void 0===b?0:b)||g.sA(Error("TerminateAd directly called from other class during adNotify."));this.G.removeEventListener("progresssync",this.oa);this.Pt();yCa(this,a);"adended"===a||"aderror"===a?this.ma("adnotifyexitednormalorerror"):this.ma(a)};
g.k.dispose=function(){this.G.removeEventListener("progresssync",this.oa);yCa(this);dL.prototype.dispose.call(this)};
g.k.Pt=function(){g.IH(this.G.V())?this.G.Oa("onAdMessageChange",{renderer:null,startTimeSecs:this.D}):dL.prototype.Pt.call(this)};rL.prototype.sendAdsPing=function(a){this.B.send(a,zCa(this),{})};
rL.prototype.pg=function(a){var b=this;if(a){var c=zCa(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};g.v(sL,dL);g.k=sL.prototype;g.k.FA=function(){return{currentTime:this.G.getCurrentTime(2,!1),duration:this.B.u,isPlaying:SBa(this.G),isVpaid:!1,isYouTube:!0,volume:this.G.isMuted()?0:this.G.getVolume()/100}};
g.k.qD=function(){var a=this.B.j.legacyInfoCardVastExtension,b=this.B.Yf();a&&b&&this.G.V().ya.add(b,{cA:a});try{var c=this.B.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{Kga(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.Ed("//web.archive.org/web/20230104105643/https://tpc.googlesyndication.com/sodar/%{path}");g.sA(new g.Sw("Load Sodar Error.",d instanceof Cd,d.constructor===Cd,{Message:e.message,"Escaped injector basename":g.pe(c.siub),"BG vm basename":c.bgub}));if(d.constructor===Cd)throw e;}}catch(e){g.rA(e)}lK(this.G,!1);
a=ZBa(this.B);b=this.G.V();a.iv_load_policy=b.isMobile||g.IH(b)||g.UH(b)?3:1;b=this.G.getVideoData(1);b.Ti&&(a.ctrl=b.Ti);b.Ui&&(a.ytr=b.Ui);b.mp&&(a.ytrcc=b.mp);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.Qj&&(a.vss_credentials_token_type=b.Qj),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ma("adunstarted",-1);this.Z?this.I.start():(this.G.cueVideoByPlayerVars(a,2),this.I.start(),this.G.playVideo(2))};
g.k.XA=function(){dL.prototype.XA.call(this);this.ma("adpause",2)};
g.k.YA=function(){dL.prototype.YA.call(this);this.ma("adplay",1)};
g.k.tm=function(){dL.prototype.tm.call(this);this.I.stop();this.ea.S(this.G,g.AB("bltplayback"),this.yY);var a=new g.yB(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.Ge([a],2);a=wL(this);this.D.Ba=a;if(this.G.isMuted()){a=this.j;var b=this.G.isMuted();PK(a)||RK(a,b?"mute":"unmute")}this.ma("adplay",1);if(null!==this.J){a=null!==this.D.j.getVideoData(1)?this.D.j.getVideoData(1).clientPlaybackNonce:"";b=CCa(this);for(var c=this.B,d=BCa(this),e=g.t(this.J.listeners),
f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.Yf(),q=l.getVideoUrl();p&&n.push(new c_(p));q&&n.push(new tYa(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new e_(q)),(q=q.elementId)&&n.push(new h_(q))):kB("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new f_(p));l.j.adNextParams&&n.push(new UZ(l.j.adNextParams||""));(p=l.Aa)&&n.push(new VZ(p));(p=f.Ta.get().Wf(2))?(n.push(new WZ({channelId:p.Kl,
channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new XZ(p.isListed))):kB("Expected meaningful PlaybackData on ad started.");n.push(new ZZ(l.B));n.push(new l_(l.u));n.push(new d_(a));n.push(new i_({current:this}));p=l.Ma;null!=p.kind&&n.push(new YZ(p));(p=l.Ka)&&n.push(new u_(p));void 0!==m&&n.push(new v_(m));f.j?kB(f.j.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):DCa(f,h,n,!0,l.j.adLayoutLoggingData)}}this.G.Oa("onAdStart",
wL(this));a=g.t(this.B.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.yY=function(a){"bltcompletion"==a.getId()&&(this.G.Qf("bltplayback",2),SK(this.j,this.getDuration()),vL(this,"adended"))};
g.k.Sj=function(){dL.prototype.Sj.call(this);this.Xg("adended");for(var a=g.t(this.B.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.Xn=function(){dL.prototype.Xn.call(this);this.Xg("adabandoned")};
g.k.uG=function(){var a=this.j;OK(a)||WK(a,"clickthrough");this.C||(a=this.j,OK(a)||WK(a,"unmuted_clickthrough"))};
g.k.OB=function(){this.yK()};
g.k.yK=function(){dL.prototype.yK.call(this);this.Xg("adended")};
g.k.Yn=function(a){dL.prototype.Yn.call(this,a);this.Xg("aderror")};
g.k.Xg=function(a){this.I.stop();lK(this.G,!0);"adabandoned"!=a&&this.G.Oa("onAdComplete");vL(this,a);this.G.Oa("onAdEnd",wL(this));this.ma(a)};
g.k.Pt=function(){var a=this.G.V();g.IH(a)&&(g.UH(a)||a.N("enable_topsoil_wta_for_halftime")||a.N("enable_topsoil_wta_for_halftime_live_infra")||g.IH(a))?this.G.Oa("onAdInfoChange",null):dL.prototype.Pt.call(this)};
g.k.hV=function(){this.J1&&this.G.playVideo()};
g.k.J1=function(){return 2==this.G.getPlayerState(2)};
g.k.wR=function(a,b){if(!Number.isFinite(a))return g.rA(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.rA(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=ZBa(this.B);d=this.G.Ow(d,"",2,c,a,b);a+c>b&&this.G.Wy(d,b-a);return d};
g.k.dispose=function(){SBa(this.G)&&!this.Z&&this.G.stopVideo(2);vL(this,"adabandoned");dL.prototype.dispose.call(this)};xL.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.j[b];c?b=c:(c={gA:null,fT:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.fT))if(b.fT=c,b.gA){if(c<b.gA.end){a:{c=b.gA;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start||c.end<=a?null:a}null!==a&&(b.gA.end=a,this.u.XT(a))}}else if(a=ICa(a,
this.B))c=a.B1,b.gA=a.Q_,this.u.gM(c)};
xL.prototype.updateTime=function(){};AL.prototype.Oh=function(a){var b=this.j;g.hf(function(){return b.Oh(a,1)})};g.k=CL.prototype;g.k.Sw=function(a,b,c,d,e){var f=this;QCa(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.B="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.Mf=!1;f.u=!1;f.C=!b&&0===c})};
g.k.AN=function(){var a=this.G.getVideoData(1);if(!this.G.N("html5_no_video_to_ad_on_preroll")||null!=a&&a.Va)this.u=!1,a={},this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId}),jC("video_to_ad",a)};
g.k.BN=function(){this.u=!1;var a={};this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});jC("ad_to_ad",a)};
g.k.My=function(){this.u=!1;var a={};this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});jC("ad_to_video",a);this.G.N("send_csi_info_for_ad_to_video_killswitch")||PCa(this)};
g.k.gN=function(){if(this.Mf&&!this.u&&(this.C=!1,this.u=!0,"ad_to_video"!==this.actionType&&(this.G.N("html5_no_video_to_ad_on_preroll")?(xC("apbs",void 0,this.actionType),xC("pbs",void 0,this.actionType)):(hC("apbs",void 0,this.actionType),hC("pbs",void 0,this.actionType)),g.ov("finalize_all_timelines")))){var a=this.actionType;gC(a);$B(a);fC(a)}};
g.k.reset=function(){return new CL(this.G)};var U8a,t3,TCa;
U8a={Oba:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",tfa:"AUTHENTICATION_MALFORMED",ufa:"AUTHENTICATION_MISSING",Hfa:"BAD_REQUEST",Jga:"CAST_SESSION_DEVICE_MISMATCHED",Kga:"CAST_SESSION_VIDEO_MISMATCHED",Lga:"CAST_TOKEN_EXPIRED",Mga:"CAST_TOKEN_FAILED",Nga:"CAST_TOKEN_MALFORMED",jha:"CGI_PARAMS_MALFORMED",lha:"CGI_PARAMS_MISSING",gpa:"DEVICE_FALLBACK",Mqa:"GENERIC_WITH_LINK_AND_CPN",Nqa:"ERROR_HDCP",Sqa:"LICENSE",Vqa:"VIDEO_UNAVAILABLE",pwa:"FORMAT_UNAVAILABLE",Fwa:"GEO_FAILURE",
Vxa:"HTML5_AUDIO_RENDERER_ERROR",Wxa:"GENERIC_WITHOUT_LINK",Xxa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Yxa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Zxa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",iza:"INVALID_DRM_MESSAGE",zSa:"PURCHASE_NOT_FOUND",ASa:"PURCHASE_REFUNDED",iTa:"RENTAL_EXPIRED",wTa:"RETRYABLE_ERROR",yUa:"SERVER_ERROR",XYa:"STOPPED_BY_ANOTHER_PLAYBACK",SZa:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",TZa:"STREAMING_NOT_ALLOWED",UZa:"STREAM_LICENSE_NOT_FOUND",T0a:"TOO_MANY_REQUESTS",
U0a:"TOO_MANY_REQUESTS_WITH_LINK",W0a:"TOO_MANY_STREAMS_PER_ENTITLEMENT",X0a:"TOO_MANY_STREAMS_PER_USER",I5a:"UNSUPPORTED_DEVICE",m6a:"VIDEO_FORBIDDEN",r6a:"VIDEO_NOT_FOUND"};t3={};
g.sR=(t3.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.",t3.DEVICE_FALLBACK="Sorry, this video is not available on this device.",t3.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",t3.LICENSE="Sorry, there was an error licensing this video.",t3.VIDEO_UNAVAILABLE=
"Video unavailable",t3.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",t3.GEO_FAILURE="This video isn't available in your country.",t3.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",t3.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",t3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",t3.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",
t3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",t3.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",t3.PURCHASE_NOT_FOUND="This video requires payment.",t3.PURCHASE_REFUNDED="This video's purchase has been refunded.",t3.RENTAL_EXPIRED="This video's rental has expired.",t3.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",t3.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
t3.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",t3.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",t3.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",t3.SERVER_ERROR="There was an internal server error. Please try again later.",t3.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",t3.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
t3.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",t3.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",t3.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",t3.TOO_MANY_REQUESTS="Please log in to watch this video.",t3.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",t3.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
t3.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",t3.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",t3.VIDEO_FORBIDDEN="Access to this video is forbidden.",t3.VIDEO_NOT_FOUND="This video can not be found.",t3);
TCa={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};g.v(DL,g.E);g.k=DL.prototype;g.k.rD=function(){return this.B};
g.k.Nw=function(a){var b="";a&&(YCa(this,a),b=a.j);if(!this.qg()||b)b&&this.qg()!==b&&(this.uD(b),delete this.u,this.C&&(this.C.reject(),delete this.C)),a&&a.u||this.load(),this.T||(this.addEventListener("volumechange",this.aR),this.T=!0)};
g.k.Fr=function(a,b){if(this.u)if(V8a&&RF(this.u)&&!this.u.Qx(a,b))WCa(this),this.stopVideo();else return this.mediaSource=this.u,this.u=void 0,this.mediaSource;a=window.MediaSource?new OF(this,new window.MediaSource,!1):window.WebKitMediaSource?new OF(this,new window.WebKitMediaSource,!1):new OF(this,void 0,!1);this.Nw(a.B);return this.mediaSource=a};
g.k.playVideo=function(){var a=this;this.Eh()&&this.seekTo(0);!this.qg()&&this.B&&(g.uv(Error("playVideo without src")),this.uD(this.B.j),this.B.u||this.load());var b=this.play();!b&&iR&&7<=(gK||0)&&g.Bpa(this,"playing",function(){g.Kv(function(){XCa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.Tj()&&(iR&&4>gK&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
g.k.Om=function(){if(!this.u&&this.mediaSource)try{this.mediaSource.clear(),this.u=this.mediaSource,this.mediaSource=void 0}catch(a){g.uv(a),this.stopVideo()}};
g.k.stopVideo=function(){var a=this;if(!this.u)if(W8a){if(!this.C){var b=new oH;b.then(void 0,function(){});
this.C=b;X8a&&this.pause();g.Kv(function(){a.C===b&&(GL(a),b.resolve())},200)}}else GL(this)};
g.k.zx=function(){var a=this.Ch();return 0<HF(a)&&this.getDuration()?GF(a,this.getCurrentTime()):0};
g.k.mu=function(){var a=this.getDuration();return Infinity===a?1:a?this.zx()/a:0};
g.k.jc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:DF(this.ou(),",",3),vbu:DF(this.Ch()),vpa:""+ +this.fp(),vsk:""+ +this.Rg(),ven:""+ +this.Eh(),vpr:""+this.getPlaybackRate(),vrs:""+this.Tj(),vns:""+this.EE(),vec:""+this.Df(),vemsg:this.Ef(),vvol:""+this.getVolume(),vdom:""+ +this.YK(),vsrc:""+ +!!this.qg(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.D.Qa(a,b,!1,this);this.LJ(a)};
g.k.removeEventListener=function(a,b){this.D.Dc(a,b,!1,this)};
g.k.dispatchEvent=function(a){if(this.C&&"pause"===a.type)return!1;if(V8a){var b,c=(null==(b=a.j)?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.u||this.mediaSource;if((null==c?0:c.ql())||b<=((null==c?void 0:c.D)||0))return!1;if(this.LK)return c&&"seeking"===a.type&&(c.D=performance.now(),this.LK=!1),!1}return this.D.dispatchEvent(a)};
g.k.HJ=function(){this.J=!1};
g.k.EJ=function(){this.J=!0;this.Gy(!0)};
g.k.aR=function(){this.J&&!this.DE()&&this.Gy(!0)};
g.k.equals=function(a){return!!a&&a.ub()===this.ub()};
g.k.ra=function(){this.T&&this.removeEventListener("volumechange",this.aR);W8a&&GL(this);g.E.prototype.ra.call(this)};
var W8a=!1,X8a=!1,V8a=!1;g.k=g.IL.prototype;g.k.getData=function(){return this.stateData};
g.k.Wc=function(){return g.V(this,8)&&!g.V(this,512)&&!g.V(this,64)&&!g.V(this,2)};
g.k.isCued=function(){return g.V(this,64)&&!g.V(this,8)&&!g.V(this,4)};
g.k.isError=function(){return g.V(this,128)};
g.k.isSuspended=function(){return g.V(this,512)};
g.k.lB=function(){return g.V(this,64)&&g.V(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var u3={},v3=(u3.BUFFERING="buffering-mode",u3.CUED="cued-mode",u3.ENDED="ended-mode",u3.PAUSED="paused-mode",u3.PLAYING="playing-mode",u3.SEEKING="seeking-mode",u3.UNSTARTED="unstarted-mode",u3);g.v(TL,g.FB);g.k=TL.prototype;g.k.Au=function(){var a=this.u;return a.u instanceof wK||a.u instanceof FK||a.u instanceof xK};
g.k.RH=function(){return this.u.u.zt()};
g.k.vP=function(){return this.u.j};
g.k.SH=function(){return"AD_PLACEMENT_KIND_START"==this.u.j.j};
g.k.wP=function(){return GK(this.u)};
g.k.iS=function(a){if(!DB(a)){this.Z&&(this.Aa=this.G.isAtLiveHead(),this.ya=Math.ceil(g.Ra()/1E3));var b=new AL(this.Th);a=KCa(a);b.Oh(a)}this.xP()};
g.k.SS=function(){return!0};
g.k.oB=function(){return this.J instanceof wK};
g.k.xP=function(){var a=this.Th;this.SS()&&(a.u&&WL(a,!1),a.u=this,this.Au()&&DEa(a));this.D.AN();this.FU()};
g.k.FU=function(){this.J?this.Kz(this.J):XL(this)};
g.k.onAdEnd=function(a,b){b=void 0===b?!1:b;this.Cl(0);XL(this,b)};
g.k.GT=function(){this.onAdEnd()};
g.k.A2=function(){RK(this.j.j,"active_view_measurable")};
g.k.D2=function(){var a=this.j.j;OK(a)||ZK(a)||RK(a,"active_view_fully_viewable_audible_half_duration")};
g.k.G2=function(){};
g.k.H2=function(){};
g.k.I2=function(){};
g.k.J2=function(){};
g.k.M2=function(){var a=this.j.j;OK(a)||ZK(a)||RK(a,"active_view_viewable")};
g.k.B2=function(){var a=this.j.j;OK(a)||ZK(a)||RK(a,"audio_audible")};
g.k.C2=function(){var a=this.j.j;OK(a)||ZK(a)||RK(a,"audio_measurable")};
g.k.LR=function(){return this.oB()?[this.GE()]:[]};
g.k.qd=function(a){if(null!==this.j){this.oa||(a=new g.aL(a.state,new g.IL),this.oa=!0);var b=a.state;if(g.cL(a,2))this.j.Sj();else{var c=a;(this.G.V().experiments.eb("html5_bulleit_handle_gained_playing_state")?c.state.Wc()&&!c.ys.Wc():c.state.Wc())?(this.D.gN(),this.j.YA()):b.isError()?this.j.Yn(b.getData().errorCode):g.cL(a,4)&&(this.ea||this.j.XA())}if(null!==this.j){if(g.cL(a,16)&&(b=this.j.j,!(OK(b)||.5>b.j.getCurrentTime(2,!1)))){c=b.ad;if(c.jB()){var d=b.B.G.V().N("html5_dai_enable_active_view_creating_completed_adblock");
lka(c.I,d)}b.ad.D.seek=!0}0>bL(a,4)&&!(0>bL(a,2))&&(b=this.j,c=b.j,OK(c)||$K(c,"resume"),b.C||(b=b.j,OK(b)||$K(b,"unmuted_resume")));!this.G.V().experiments.eb("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.cL(a,512)&&!g.RL(a.state)&&this.D.My()}}};
g.k.onVideoDataChange=function(){return this.daiEnabled?aDa(this):!1};
g.k.resume=function(){this.j&&this.j.hV()};
g.k.nx=function(){this.j&&this.j.Xg("adended")};
g.k.er=function(){this.nx()};
g.k.Cl=function(a){this.Th.Cl(a)};
g.k.zY=function(a){this.Th.j.Oa("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.j.rg(a)};
g.k.JR=function(){return 0};
g.k.KR=function(){return 1};
g.k.ZN=function(a){this.daiEnabled&&this.u.I&&this.u.j.start<=a&&a<VL(this)&&this.G.Qt(a,this.u.j.end)};
g.k.Kz=function(a){g.ab(this.j);this.j=a=this.Ct.create(a,JK(fCa(this.u)),this.u.j.j);this.qL(a);a.Aa?a.Yn("ui_unstable"):a.qD();bDa(this,!1)};
g.k.qL=function(a){a.subscribe("adabandoned",g.Qa(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Qa(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.A2,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.GT,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.D2,this);a.subscribe("adoverlaymeasurableimpression",this.G2,this);a.subscribe("adoverlayunviewableimpression",this.H2,this);a.subscribe("adoverlayviewableendofsessionimpression",
this.I2,this);a.subscribe("adoverlayviewableimmediateimpression",this.J2,this);a.subscribe("adpause",this.DK,this);a.subscribe("adplay",this.DK,this);a.subscribe("adunstarted",this.DK,this);a.subscribe("onAdUxUpdate",this.zY,this);a.subscribe("adviewableimpression",this.M2,this);a.subscribe("adaudioaudible",this.B2,this);a.subscribe("adaudiomeasurable",this.C2,this)};
g.k.DK=function(a){this.Cl(a)};
g.k.GE=function(){return this.J};
g.k.isLiveStream=function(){return this.Z};
g.k.reset=function(){return new TL(this.Th,this.G,this.D.reset(),this.u,this.rp,this.ix,this.Ct,this.daiEnabled)};
g.k.ra=function(){g.ab(this.j);this.j=null;g.FB.prototype.ra.call(this)};gDa.prototype.create=function(a){return(a.u instanceof xK?this.B:""===a.D?this.j:this.u)(a)};cM.prototype.B=function(a){this.client=a};
cM.prototype.jR=function(a,b){b=void 0===b?{}:b;var c,d=null==(c=g.P(null==a?void 0:a.commandMetadata,g.M2))?void 0:c.rootVe;if(d){c=g.P(null==a?void 0:a.commandMetadata,M7a);if(null==c?0:c.parentTrackingParams){var e=g.zA(c.parentTrackingParams);if(c.parentCsn)var f=c.parentCsn}else b.G_?e=b.G_:a.clickTrackingParams&&(e=g.zA(a.clickTrackingParams));a:{c=g.P(a,g.xI);a=g.P(a,B7a);if(c){if(a=hDa(c,"VIDEO")){a={token:a,videoId:c.videoId};break a}}else if(a&&(c=hDa(a,"PLAYLIST"))){a={token:c,playlistId:a.playlistId};
break a}a=void 0}b=Object.assign({},{cttAuthInfo:a,parentCsn:f},b);lDa(this,d,e,b)}else g.sA(new g.Sw("Error: Trying to create a new screen without a rootVeType",a))};
cM.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.DA(void 0===c?0:c))?(KA(this.client,c,g.zA(a),b),b=!0):b=!1:b=!1;return b};
cM.prototype.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.u.has(c)?this.J.push([a,b]):nDa(this,a,b,c)};gM.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.qo.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
gM.prototype.replace=function(a,b){a=g.t(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];pDa(this,b)};var Y8a=window.location.hostname.split(".").slice(-2).join("."),w3;iM.getInstance=function(){w3=g.Fa("yt.clientLocationService.instance");w3||(w3=new iM,g.Da("yt.clientLocationService.instance",w3));return w3};
g.k=iM.prototype;
g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(1E7*this.j.coords.latitude),a.client.locationInfo.longitudeE7=Math.floor(1E7*this.j.coords.longitude),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
g.k.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.O("INNERTUBE_CLIENT_NAME")?(this.localStorage=hM(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.Zv("YT_CL",JSON.stringify({loctok:a}),15552E3,Y8a,!0))};
g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=hM(this))&&this.localStorage.remove("yt-location-playability-token"):g.aw("YT_CL")};
g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;"MWEB"===g.O("INNERTUBE_CLIENT_NAME")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};kM.prototype.wE=function(a,b){a={};var c=Jh([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.O("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.ov("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in lv||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in lv&&(a["X-Goog-PageId"]=g.O("DELEGATED_SESSION_ID")));return a};var mM;g.v(lM,kM);lM.prototype.wE=function(a,b){a=kM.prototype.wE.call(this,a,b);return Object.assign({},a,this.wv)};var CDa=/[&\?]action_proxy=1/,BDa=/[&\?]token=([\w-]*)/,DDa=/[&\?]video_id=([\w-]*)/,EDa=/[&\?]index=([\d-]*)/,FDa=/[&\?]m_pos_ms=([\d-]*)/,IDa=/[&\?]vvt=([\w-]*)/,wDa="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(" "),GDa="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(" "),yDa={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"},zDa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},HDa={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};pM.prototype.Ux=function(a){this.player.Ki().tick(a)};
pM.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return rM(this,a,b);var d=1===this.j;d&&this.Ux("a_bid_s");var e=rDa();if(null!==e)return d&&this.Ux("a_bid_f"),rM(this,a,b,e);e=sDa();d&&qf(e,function(){c.Ux("a_bid_f")});
return e.then(function(f){return rM(c,a,b,f)})};
pM.prototype.reset=function(){this.u=this.j=1};g.v(sM,g.FB);g.k=sM.prototype;g.k.vP=function(){return this.j.j};
g.k.SH=function(){return"AD_PLACEMENT_KIND_START"==this.j.j.j};
g.k.wP=function(){return GK(this.j)};
g.k.Au=function(){return!1};
g.k.RH=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.iS=function(a){var b=this;kB("Fetching logic is still in use while live midroll is on PACF");if(1!==this.j.B&&2!==this.j.B){var c=[];this.SH()||(c=KCa(a));this.j.B=1;qf(this.C.fetch(this.j.D,{fA:this.j.C||void 0,qe:this.j.j}).then(function(d){if(!b.isDisposed()){var e=c;b.D.isFullscreen();d=JDa(b,d);var f=b.B;f.j&&d.isEmpty&&OCa("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.u);d.WS||(b.j.B=2,(new AL(b.u)).Oh(e),d.isEmpty||dB(b.I,d.Hn))}},function(){(new AL(b.u)).Oh(c);
var d=b.B;d.j&&OCa("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.j.B&&(b.j.B=0);
b.SH()&&LM(b.u)})}};
g.k.xP=function(){};
g.k.ZN=function(){};g.v(tM,iK);tM.prototype.Kx=function(){return!0};
tM.prototype.zt=function(){return!1};var MDa=Object.freeze([eL,hL,FK,tM,wK]);g.v(uM,TL);g.k=uM.prototype;g.k.LR=function(){for(var a=this.B.j,b=g.t(a),c=b.next();!c.done;c=b.next());return a};
g.k.SS=function(){return(0>=this.C?this.B.j:this.B.j.slice(this.C)).some(function(a){return a.Kx()})};
g.k.oB=function(){return this.I instanceof wK||this.I instanceof hL};
g.k.FU=function(){this.daiEnabled?jK(this.G)&&aDa(this):LDa(this)};
g.k.Kz=function(a){var b=KDa(a);this.I&&b&&this.T!==b&&(b?DEa(this.Th):FEa(this.Th),this.T=b);this.I=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a}));
TL.prototype.Kz.call(this,a)};
g.k.qL=function(a){var b=this;TL.prototype.qL.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void XL(b)})};
g.k.er=function(){this.C=this.B.j.length;this.j&&this.j.Xg("adended");XL(this)};
g.k.nx=function(){this.onAdEnd()};
g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Cl(0),a?XL(this,b):LDa(this))};
g.k.GT=function(){if(1==this.B.u)this.I instanceof iL&&g.sA(Error("AdNotify error with FailureMode.TERMINATING")),XL(this);else this.onAdEnd()};
g.k.GE=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0<a.length?a[0]:null};
g.k.Au=function(){return this.T};
g.k.RH=function(){return this.B.j.every(function(a){return a.zt()})};
g.k.reset=function(){return new uM(this.Th,this.G,this.D.reset(),this.u,this.rp,this.ix,this.Ct,this.daiEnabled)};
g.k.JR=function(){return this.C};
g.k.KR=function(){return this.B.j.length};NDa.prototype.HR=function(){return this.j};g.v(ODa,xK);g.v(QDa,xK);RDa.prototype.create=function(a,b){function c(h){return new wK(h,d.B,b,d.j,d.u)}
var d=this,e=a.instreamVideoAdRenderer,f=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new QDa(f,c,this.j):null!=a?new ODa(a,c):null};SDa.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.t(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=b,l=new Era(h.B,h.u,h.daiEnabled,h.C),m=h.Bf;m&&(l.Bf=new qB(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.j));h.j&&(l.j=h.j);l.visible=h.visible;h=l;h.Bf=f;e.push(TDa(this,a[0],c,h));c++}}else for(a=g.t(a),d=a.next();!d.done;d=a.next())e.push(TDa(this,d.value,c,b)),c++;return e};g.v(zM,g.E);zM.prototype.addEventListener=function(a,b){this.j=b};
zM.prototype.removeEventListener=function(){this.j=null};
g.v(AM,g.E);AM.prototype.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};
AM.prototype.removeEventListener=function(a,b){this.j.removeEventListener(a,b)};g.v(WDa,g.E);var BM=null,CM=null,DM=null,EM=null;g.Da("yt.www.ads.eventcache.getLastCompanionData",function(){return BM});
g.Da("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Da("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return CM});
g.Da("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return DM});
g.Da("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return EM});var iEa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.v(HM,g.E);HM.prototype.ra=function(){this.jf.clear();g.E.prototype.ra.call(this)};
HM.prototype.pg=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.t(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
HM.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&jEa(this,"loggingUrls",a.loggingUrls,b,c);a=g.t(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.t(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?fEa(this,e):"confirmDialogEndpoint"===d?gEa(this,e):iEa.hasOwnProperty(d)||jEa(this,d,e,b,c)}};g.v(JM,CL);g.k=JM.prototype;g.k.Sw=function(){};
g.k.AN=function(){};
g.k.BN=function(){};
g.k.My=function(){};
g.k.gN=function(){};
g.k.reset=function(){return new JM(this.G)};g.v(oEa,g.E);g.v(KM,g.FB);g.k=KM.prototype;g.k.HK=function(){return!xEa(this,BEa(this))};
g.k.xA=function(){return this.Ba};
g.k.ra=function(){this.oa=!0;g.gA(this.C);if(kK(this.j)){var a=rEa(this.j);a.removeEventListener("updateKevlarOrC3Companion",XDa);a.removeEventListener("updateEngagementPanelAction",YDa);a.removeEventListener("changeEngagementPanelVisibility",ZDa);window.removeEventListener("yt-navigate-start",$Da);EM=DM=CM=BM=null}a=g.t(this.B.values());for(var b=a.next();!b.done;b=a.next())EEa(this,b.value);WL(this,!1);this.Dt.clear();this.Z=[];this.J.clear();g.ab(this.ea);this.ea=new Map;g.ab(this.I);this.I=new Map;
this.B.clear();g.FB.prototype.ra.call(this)};
g.k.QL=function(a){if(a instanceof CB&&!a.B&&(!Sra(a)||a.contains(1E3*this.j.getCurrentTime(1)||0)))if(g.V(this.j.Eb(1),32))this.J.add(a);else{var b=this.B.get(a);b&&((this.j.V().experiments.eb("enable_eviction_protection_for_bulleit")?this.u?this.u.RH():1:1)?b.iS(a):a.deactivate())}};
g.k.o3=function(a){a instanceof CB&&(a.B&&(a.B=!1),this.J.delete(a))};
g.k.gM=function(){};
g.k.XT=function(a){var b=1E3*a;this.u&&this.u.ZN(b);for(var c=g.t(this.B.values()),d=c.next();!d.done;d=c.next())d.value.ZN(b);g.Eb(this.Ma.j,1E3*a)};
g.k.Co=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.oB()&&a.G.Qc().playVideo());break;case "control_pause":this.u&&(a=this.u,a.oB()&&a.G.Qc().pauseVideo())}};
g.k.BY=function(a){this.u&&this.u.qd(a)};
g.k.W2=function(a){0>bL(a,16)&&(this.J.forEach(this.QL,this),this.J.clear())};
g.k.p5=function(){if(this.u)this.u.onVideoDataChange()};
g.k.s5=function(){if(jK(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&tCa(b.j,a)}};
g.k.w2=function(){this.Va=!0;if(this.u){var a=this.u;a.j&&a.j.Xn()}};
g.k.K2=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.k.t5=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.j,c=a.G.isMuted();PK(b)||RK(b,c?"mute":"unmute");a.C||(b=a.G.isMuted(),RK(a.j,b?"unmuted_mute":"unmuted_unmute"))}};
g.k.y3=function(a){if(this.u){var b=this.u.j,c=b.j;OK(c)||WK(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.j,OK(b)||WK(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.k.Oh=function(a,b){this.j.Oh(a,b);a=g.t(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Dt.delete(b),this.B.delete(b)};
g.k.b7=function(){for(var a=[],b=g.t(this.Dt),c=b.next();!c.done;c=b.next())c=c.value,DB(c)||a.push(c);this.j.gO(a,1)};
g.k.Cl=function(a){this.j.Cl(a);switch(a){case 1:this.cF=1;break;case 0:this.cF=0}};
g.k.vN=function(){var a=this.j.getVideoData(2);return a?a.isListed&&!this.T:!1};
g.k.nx=function(){this.u&&this.u.Au()&&this.u.nx()};
g.k.er=function(){this.u&&this.u.Au()&&this.u.er()};
g.k.uc=function(a){if(this.u){var b=this.u;b.j&&tCa(b.j,a)}};
g.k.executeCommand=function(a,b,c){this.tb.executeCommand(a,b,AEa(this,void 0===c?null:c))};
g.k.isDaiEnabled=function(){return!1};
g.k.HR=function(){return this.Aa};
g.k.IR=function(){return this.Ka};g.v(MM,g.E);MM.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");a=a.ub();this.ub().appendChild(a)};
g.v(NM,MM);NM.prototype.ub=function(){return this.j};g.v(HEa,g.E);var nW=16/9,Z8a=[.25,.5,.75,1,1.25,1.5,1.75,2],$8a=Z8a.concat([3,4,5,6,7,8,9,10,15]);var JEa=1;g.v(g.PM,g.E);g.k=g.PM.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.F;var c=a.K,d=a.Ga;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.F);g.WH&&(a.X||(a.X={}),a.X.focusable="false")}else e=g.Oe(a.F);if(c){if(c=QM(this,e,"class",c))RM(this,e,"class",c),this.zc[c]=e}else if(d){c=g.t(d);for(var f=c.next();!f.done;f=c.next())this.zc[f.value]=e;RM(this,e,"class",d.join(" "))}d=a.qa;c=a.W;if(d)b=QM(this,e,"child",d),void 0!==b&&e.appendChild(g.Pe(b));else if(c)for(d=0,c=g.t(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=QM(this,e,"child",f),null!=f&&e.appendChild(g.Pe(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Tb&&(h=OM(),f.id=h,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+h),g.Se(e,f,d++))}if(a=a.X)for(b=e,d=g.t(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],RM(this,b,c,"string"===typeof f?
QM(this,b,c,f):f);return e};
g.k.Ea=function(a){return this.zc[a]};
g.k.Ca=function(a,b){"number"===typeof b?g.Se(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.Ue(this.element)};
g.k.update=function(a){for(var b=g.t(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.updateValue(c,a[c])};
g.k.updateValue=function(a,b){(a=this.mf["{{"+a+"}}"])&&RM(this,a[0],a[1],b)};
g.k.ra=function(){this.zc={};this.mf={};this.detach();g.E.prototype.ra.call(this)};g.v(g.W,g.PM);g.k=g.W.prototype;g.k.ke=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.sb||(g.Al(this.element,"display",""),this.sb=!0)};
g.k.hide=function(){this.sb&&(g.Al(this.element,"display","none"),this.sb=!1)};
g.k.hc=function(a){this.ya=a};
g.k.Qa=function(a,b,c){return this.S(this.element,a,b,c)};
g.k.S=function(a,b,c,d){c=(0,g.Oa)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Dc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
g.k.focus=function(){var a=this.element;Ye(a);a.focus()};
g.k.ra=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.PM.prototype.ra.call(this)};g.v(g.TM,g.W);g.TM.prototype.subscribe=function(a,b,c){return this.Wa.subscribe(a,b,c)};
g.TM.prototype.unsubscribe=function(a,b,c){return this.Wa.unsubscribe(a,b,c)};
g.TM.prototype.rh=function(a){return this.Wa.rh(a)};
g.TM.prototype.ma=function(a){return this.Wa.ma.apply(this.Wa,[a].concat(g.u(g.ya.apply(1,arguments))))};var a9a=new WeakSet;g.v(UM,g.TM);g.k=UM.prototype;g.k.bind=function(a){this.Va||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
g.k.init=function(a,b,c){this.Va=a;this.element.setAttribute("id",this.Va);this.tb&&g.ho(this.element,this.tb);this.Z=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.Og(this.element,this.J)};
g.k.clear=function(){};
g.k.hide=function(){g.TM.prototype.hide.call(this);null!=this.J&&this.Sa(this.element,!1)};
g.k.show=function(){g.TM.prototype.show.call(this);if(!this.Fb){this.Fb=!0;var a=this.Z&&this.Z.impressionCommand;a&&this.BG(a,null)}null!=this.J&&this.Sa(this.element,!0)};
g.k.onClick=function(a){if(this.J&&!a9a.has(a)){var b=this.element;this.api.gk(b)&&this.sb&&this.api.rb(b,this.j);a9a.add(a)}if(a=this.Z&&this.Z.clickCommand)a=this.PU(a),this.BG(a,this.MR())};
g.k.PU=function(a){return a};
g.k.MR=function(){return null};
g.k.EY=function(a){var b=this.oa;b.J=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.I=IEa(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.T=Infinity,b.Z=Infinity):(b.T=c.clientX,b.Z=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.k.DY=function(a){var b=this.oa;a=a.changedTouches.item(0);if(vc()&&!(0<=g.Vb(Uaa(),8))||a&&Math.pow(a.clientX-b.T,2)+Math.pow(a.clientY-b.Z,2)>Math.pow(5,2))b.C=!0};
g.k.CY=function(a){if(this.oa){var b=this.oa,c=a.changedTouches;c&&b.J&&1==b.u&&!b.C&&!b.D&&!b.I&&IEa(b,c)&&(b.ea=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.J=!1,b.C=!1,b.B.length=0);b.D=!1}};
g.k.BG=function(a){this.layoutId?this.jb.executeCommand(a,this.layoutId):g.rA(new g.Sw("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
g.k.Og=function(a,b){this.api.Og(a,this);this.api.Ph(a,b)};
g.k.Sa=function(a,b){this.api.gk(a)&&this.api.Sa(a,b,this.j)};
g.k.ra=function(){this.clear(null);this.Dc(this.kb);for(var a=g.t(this.Aa),b=a.next();!b.done;b=a.next())this.Dc(b.value);g.TM.prototype.ra.call(this)};g.v(kN,UM);
kN.prototype.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)g.sA(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.ho(this.element,a);null!=b.text&&(a=g.IB(b.text),g.Lb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.TM({F:"span",K:"ytp-ad-button-text",qa:a}),g.H(this,this.C),this.C.Ca(this.element)));this.api.V().N("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.Lb(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=jN(b.icon),null!=b&&(this.B=new g.TM({F:"span",K:"ytp-ad-button-icon",W:[b]}),g.H(this,this.B)),this.D?g.Se(this.element,this.B.element,0):this.B.Ca(this.element))}};
kN.prototype.clear=function(){this.hide()};
kN.prototype.onClick=function(a){UM.prototype.onClick.call(this,a);a=g.t(cFa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.rA(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(lN,g.E);lN.prototype.ra=function(){this.u&&g.Sy(this.u);this.j.clear();mN=null;g.E.prototype.ra.call(this)};
lN.prototype.register=function(a,b){b&&this.j.set(a,b)};
var mN=null;g.v(oN,UM);
oN.prototype.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.P(b.button,g.zJ)||null;null==b?g.rA(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new kN(this.api,this.ib,this.layoutId,this.j,this.jb),g.H(this,this.button),this.button.init(mK("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.IB(a)),this.button.Ca(this.element),this.I&&!g.go(this.button.element,"ytp-ad-clickable")&&g.ho(this.button.element,"ytp-ad-clickable"),
a&&(this.B=new g.TM({F:"div",K:"ytp-ad-hover-text-container"}),this.D&&(b=new g.TM({F:"div",K:"ytp-ad-hover-text-callout"}),b.Ca(this.B.element),g.H(this,b)),g.H(this,this.B),this.B.Ca(this.element),b=nN(a),g.Se(this.B.element,b,0)),this.show())};
oN.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();UM.prototype.hide.call(this)};
oN.prototype.show=function(){this.button&&this.button.show();UM.prototype.show.call(this)};g.v(qN,UM);
qN.prototype.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&pN(a)||"";g.Lb(c)?(this.api.V().N("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.sA(Error("Found AdImage without valid image URL")):(this.u?g.Al(this.element,"backgroundImage","url("+c+")"):Fe(this.element,{src:c}),Fe(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),
this.show())};
qN.prototype.clear=function(){this.hide()};g.v(rN,UM);g.k=rN.prototype;g.k.hide=function(){UM.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;UM.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.rA(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.rA(Error("ConfirmDialogRenderer.cancelLabel was not set.")):gFa(this,b):g.rA(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.gA(this.u);this.hide()};
g.k.NL=function(){this.hide()};
g.k.ZH=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.jb.executeCommand(a,this.layoutId):g.rA(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.k.OL=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.jb.executeCommand(a,this.layoutId):g.rA(Error("Missing layoutId for confirm dialog.")));this.hide()};g.v(sN,UM);g.k=sN.prototype;
g.k.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.rA(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.rA(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.ho(this.C,a)}a={};b.defaultText?
(c=g.IB(b.defaultText),g.Lb(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Ml(this.Ba,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.ea.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=jN(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.T=!0,c=jN(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Ml(this.I,!0),g.Ml(this.D,!1)),g.Ml(this.u,!1)):g.Ml(this.ea,!1);g.Uc(a)||this.update(a);
b.isToggled&&(g.ho(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));tN(this);this.S(this.element,"change",this.HP);this.show()}};
g.k.onClick=function(a){0<this.Aa.length&&(this.toggleButton(!this.isToggled()),this.HP());UM.prototype.onClick.call(this,a)};
g.k.HP=function(){g.lo(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.t(hFa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.rA(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);tN(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.lo(this.C,"ytp-ad-toggle-button-toggled",a);this.u.checked=a;tN(this)};
g.k.isToggled=function(){return this.u.checked};g.v(uN,eA);uN.prototype.T=function(a){if(Array.isArray(a)){a=g.t(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof EB&&this.C(b)}};g.v(vN,UM);g.k=vN.prototype;g.k.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.rA(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.sA(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.sA(Error("AdFeedbackRenderer.title was not set.")),lFa(this,b)):g.rA(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){$y(this.I);$y(this.T);this.D.length=0;this.hide()};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();UM.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.u&&this.u.show();this.B&&this.B.show();this.C=document.activeElement;UM.prototype.show.call(this);this.I.focus()};
g.k.QT=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ma("a");this.hide()};
g.k.o5=function(){this.hide()};
wN.prototype.ub=function(){return this.j.element};
wN.prototype.isChecked=function(){return this.B.checked};g.v(xN,rN);xN.prototype.NL=function(a){rN.prototype.NL.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
xN.prototype.ZH=function(a){rN.prototype.ZH.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
xN.prototype.OL=function(a){rN.prototype.OL.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ma("b")};g.v(yN,UM);g.k=yN.prototype;
g.k.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.rA(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.sA(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.P(b.closeOverlayRenderer,g.zJ)||null)this.u=new kN(this.api,this.ib,this.layoutId,this.j,this.jb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.H(this,this.u),
this.u.init(mK("button"),a,this.macros),this.u.Ca(this.element);b.title&&(a=g.IB(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=nN(a[c]);if(!g.Lb(d.textContent)){var e=Ne("LI");e.appendChild(d);this.Ka.appendChild(e)}}else g.Ml(this.Ka,!1);b.dialogMessage&&(a=nN(b.dialogMessage,!0),this.Pa.appendChild(a));b.confirmLabel&&(a=g.IB(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.P(b.muteAdRenderer,g.zJ)||null)&&(a=b.navigationEndpoint&&
g.P(b.navigationEndpoint,z7a)||null,c=b.navigationEndpoint&&g.P(b.navigationEndpoint,U5a)||null,null==a&&null==c?g.sA(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?mFa(this,a):c&&nFa(this,c),this.C=new kN(this.api,this.ib,this.layoutId,this.j,this.jb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.H(this,this.C),this.C.init(mK("button"),b,this.macros),this.C.Qa("click",this.S3,this),this.C.Ca(this.Xa)));oFa(this)}};
g.k.clear=function(){$y(this.T);this.hide()};
g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.u&&this.u.hide();this.C&&this.C.hide();UM.prototype.hide.call(this);this.ea&&this.ea.focus()};
g.k.show=function(){this.u&&this.u.show();this.C&&this.C.show();if(!this.Ma){for(var a=g.t(this.I&&this.I.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.rA(Error("Missing layoutId for ad info dialog."));this.Ma=!0}this.ea=document.activeElement;UM.prototype.show.call(this);this.T.focus()};
g.k.JP=function(){if(this.I&&this.I.confirmServiceEndpoint){var a=this.I.confirmServiceEndpoint;this.layoutId?this.jb.executeCommand(a,this.layoutId):g.rA(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ma("d");this.hide()};
g.k.S3=function(){var a=this.B?this.B:this.D;a&&!a.sb&&(this.hide(),a.show())};g.v(zN,oN);zN.prototype.init=function(a,b,c){oN.prototype.init.call(this,a,b,c);a=b.button&&g.P(b.button,g.zJ)||null;null!=a&&(tFa(this,a,c),this.show())};
zN.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();oN.prototype.hide.call(this)};
zN.prototype.show=function(){this.button&&this.button.show();oN.prototype.show.call(this)};
zN.prototype.clear=function(){this.hide()};g.v(AN,UM);
AN.prototype.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.Xe(this.element,VM(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?pN(a):"",c=(c=this.api.getVideoData(1))&&c.Fn,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(a=g.qe(b.targetId))&&this.element.setAttribute("data-tooltip-target-id",a);
b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
AN.prototype.isTemplated=function(){return this.u.isTemplated||!1};
AN.prototype.clear=function(){this.hide()};var xFa={seekableStart:0,seekableEnd:1,current:0};g.v(CN,UM);CN.prototype.clear=function(){this.dispose()};g.v(g.FN,g.E);g.k=g.FN.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.vD(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.sb||(GN(this,!0),this.state=1,a?this.delay.start(a):this.vD()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.sb&&(GN(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.vD=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:GN(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.j&&this.j();break;case 4:this.element.hide();GN(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.vD()};
g.k.ra=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.E.prototype.ra.call(this)};g.v(HN,CN);g.k=HN.prototype;
g.k.init=function(a,b,c){CN.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.rA(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Xa&&g.ho(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Ba=null==a||0===a?this.u.tx():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(mK("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Fn&&b.thumbnail?this.D.init(mK("ad-image"),b.thumbnail,c):this.T.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.C.hide();this.D.hide();EN(this);CN.prototype.hide.call(this)};
g.k.show=function(){DN(this);this.B.show();this.C.show();this.D.show();CN.prototype.show.call(this)};
g.k.hv=function(){this.hide()};
g.k.Is=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ma&&a>=this.Ba?(this.ea.hide(),this.Ma=!0,this.ma("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Ba-a)/1E3)),a!=this.Pa&&(BN(this.C,{TIME_REMAINING:String(a)}),this.Pa=a)))}};g.v(JN,CN);g.k=JN.prototype;
g.k.init=function(a,b,c){CN.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.P(b.actionButton,g.zJ))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;null!=e&&0<e.length&&g.Lb(g.qe(e[0].url))&&(e[0].url=d.profilePicture)}else g.sA(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(mK("ad-image"),b.image,c);this.T.init(mK("ad-text"),
b.headline,c);this.D.init(mK("ad-text"),b.description,c);this.B.init(mK("button"),a,c);this.ea=a.navigationEndpoint;this.api.iF()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.KP.bind(this));this.Ba=b.startMs||0;DN(this)}else g.rA(Error("FlyoutCtaRenderer has no valid action button."));else g.rA(Error("FlyoutCtaRenderer has no description AdText."));else g.rA(Error("FlyoutCtaRenderer has no headline AdText."));else g.sA(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){CN.prototype.onClick.call(this,a);this.api.pauseVideo();!g.We(this.B.element,a.target)&&this.ea&&(this.layoutId?this.jb.executeCommand(this.ea,this.layoutId):g.rA(Error("Missing layoutId for flyout cta.")))};
g.k.Is=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.Ba&&(EN(this),g.jo(this.element,"ytp-flyout-cta-inactive"),this.api.V().N("disable_tabbing_before_flyout_ad_elements_appear")&&this.B.element.removeAttribute("tabIndex"))}};
g.k.hv=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.KP.bind(this))};
g.k.show=function(){this.B&&this.B.show();CN.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();CN.prototype.hide.call(this)};
g.k.KP=function(a){"hidden"==a?this.show():this.hide()};g.v(KN,UM);g.k=KN.prototype;
g.k.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);this.u=b;if(this.u.rectangle)for(a=this.u.likeButton&&g.P(this.u.likeButton,Q2),b=this.u.dislikeButton&&g.P(this.u.dislikeButton,Q2),this.C.init(mK("toggle-button"),a,c),this.B.init(mK("toggle-button"),b,c),this.S(this.element,"change",this.LP),this.D.show(100),this.show(),c=g.t(this.u&&this.u.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.jb.executeCommand(a,this.layoutId):g.rA(Error("Missing layoutId for instream user sentiment."))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();UM.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();UM.prototype.show.call(this)};
g.k.LP=function(){xka(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.Oa("onYtShowToast",this.u.postMessageAction);this.D.hide()};
g.k.onClick=function(a){0<this.Aa.length&&this.LP();UM.prototype.onClick.call(this,a)};g.v(LN,g.E);g.k=LN.prototype;g.k.ra=function(){this.reset();g.E.prototype.ra.call(this)};
g.k.reset=function(){g.gA(this.C);this.I=!1;this.j&&this.j.stop();this.D.stop();this.u&&(this.u=!1,this.J.play())};
g.k.start=function(){this.reset();this.C.S(this.B,"mouseover",this.GY,this);this.C.S(this.B,"mouseout",this.FY,this);this.j?this.j.start():(this.I=this.u=!0,g.Al(this.B,{opacity:this.Z}))};
g.k.GY=function(){this.u&&(this.u=!1,this.J.play());this.D.stop();this.j&&this.j.stop()};
g.k.FY=function(){this.I?this.D.start():this.j&&this.j.start()};
g.k.GQ=function(){this.u||(this.u=!0,this.T.play(),this.I=!0)};g.v(MN,CN);g.k=MN.prototype;
g.k.init=function(a,b,c){CN.prototype.init.call(this,a,b,c);this.T=b;this.Ba=vFa(this);if(!b||g.Uc(b))g.rA(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Uc(b.message))g.rA(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=jN(a);null==b?g.rA(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):(this.B=new g.TM({F:"button",Ga:["ytp-ad-skip-button","ytp-button"],W:[{F:"span",K:"ytp-ad-skip-button-icon",
W:[b]}]}),g.H(this,this.B),this.B.Ca(this.D.element),this.C=new AN(this.api,this.ib,this.layoutId,this.j,this.jb,"ytp-ad-skip-button-text"),this.C.init(mK("ad-text"),this.T.message,c),g.H(this,this.C),g.Se(this.B.element,this.C.element,0));var d=void 0===d?null:d;c=this.api.V();!(0<this.Aa.length)&&c.isMobile&&(qH?0:"ontouchstart"in document.documentElement&&(Tga()||Fk()))&&(this.Dc(this.kb),d&&this.Dc(d),this.Aa=[this.S(this.element,"touchstart",this.EY,this),this.S(this.element,"touchmove",this.DY,
this),this.S(this.element,"touchend",this.CY,this)])}};
g.k.clear=function(){this.ea.reset();this.hide()};
g.k.hide=function(){this.D.hide();this.C&&this.C.hide();EN(this);CN.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.B){a&&g.Xy(a);CN.prototype.onClick.call(this,a);if(this.api.V().N("fetch_bid_for_dclk_status")){var b;a={contentCpn:(null==(b=this.api.getVideoData(1))?void 0:b.clientPlaybackNonce)||""};Bra(a)}this.ma("j");if(this.Ma||!this.Ba)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.k.PU=function(a){if(!this.Ma)return this.Ba&&kB("SkipButton click commands not pruned while ALC exist"),a;var b,c=null==(b=g.P(a,g.NN))?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&uFa(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.MR=function(){return"skip"};
g.k.BG=function(a,b){b=AEa(this.ib,b);var c=eCa(this.macros,!1,b);g.Uc(b)&&g.Uc(c)||g.sA(Error("Non-empty viewabilityData or macros when executing command for skip button."));this.layoutId?Q_(this.jb,a,this.layoutId,c):g.rA(Error("Missing layoutId for skip button."))};
g.k.show=function(){this.ea.start();this.D.show();this.C&&this.C.show();DN(this);CN.prototype.show.call(this);this.Pa&&this.api.V().N("enable_skip_to_next_messaging")&&this.api.ma("showpromotooltip",this.element)};
g.k.hv=function(){this.ma("k")};
g.k.Is=function(){};g.v(ON,CN);g.k=ON.prototype;
g.k.init=function(a,b,c){CN.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.P(b.preskipRenderer,X_)||{};(a=g.Uc(a)?null:a)?(this.T=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.B=new HN(this.api,this.ib,this.layoutId,this.j,this.jb,this.u,"countdown_next_to_thumbnail"==CG(this.api.V().experiments,"preskip_button_style_ads_backend")&&HH(this.api.V())),this.B.init(mK("preskip-component"),a,c),IN(this.B),g.H(this,this.B),this.B.Ca(this.element)):
b.skipOffsetMilliseconds&&(this.T=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.P(b.skippableRenderer,S5a)||{};a=g.Uc(a)?null:a;null==a?g.rA(Error("SkipButtonRenderer was not set in player response.")):(this.C=new MN(this.api,this.ib,this.layoutId,this.j,this.jb,this.u,this.ea),this.C.init(mK("skip-button"),a,c),g.H(this,this.C),this.C.Ca(this.element),this.api.V().experiments.eb("enable_skip_to_next_messaging")&&(b=g.qe(b.targetId))&&(c=this.C,null!=c.B&&(c.Pa=!0,c.B.element.setAttribute("data-tooltip-target-id",
b),c.B.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.k.show=function(){this.D&&this.C?this.C.show():this.B&&this.B.show();DN(this);CN.prototype.show.call(this)};
g.k.hv=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();EN(this);CN.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();EN(this);CN.prototype.hide.call(this)};
g.k.Is=function(){1E3*this.u.getProgressState().current>=this.T&&wFa(this,!0)};g.v(PN,kN);PN.prototype.init=function(a,b,c){kN.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.IB(b.text),a=!g.Lb(a));a?null==b.navigationEndpoint?g.sA(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.sA(Error("Button style was not a link-style type in renderer,")):this.show():g.sA(Error("No visit advertiser text was present in the renderer."))};g.v(QN,UM);QN.prototype.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);a=b.text;g.Lb(VM(a))?g.sA(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.u&&(b=this.api.V(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new AN(this.api,this.ib,this.layoutId,this.j,this.jb),a.init(mK("simple-ad-badge"),b,c),a.Ca(this.element),g.H(this,a)),this.show())};
QN.prototype.clear=function(){this.hide()};g.v(RN,nK);g.v(SN,g.FB);g.k=SN.prototype;g.k.tx=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.md.Dc(this.j)};
g.k.uc=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ma("h")};
g.k.getProgressState=function(){return this.u};
g.k.qd=function(a){g.cL(a,2)&&this.ma("g")};g.v(TN,g.FB);g.k=TN.prototype;g.k.tx=function(){return this.durationMs};
g.k.start=function(){this.u||(this.u=!0,this.timer.start())};
g.k.stop=function(){this.u&&(this.u=!1,this.timer.stop())};
g.k.uc=function(){this.j+=100;var a=!1;this.j>this.durationMs&&(this.j=this.durationMs,this.timer.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.j/1E3};this.ib&&this.ib.uc(this.B.current);this.ma("h");a&&this.ma("g")};
g.k.getProgressState=function(){return this.B};g.v(WN,CN);g.k=WN.prototype;g.k.init=function(a,b,c){CN.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){wv(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new AN(this.api,this.ib,this.layoutId,this.j,this.jb);this.B.init(mK("ad-text"),a,{});this.B.Ca(this.element);g.H(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){EN(this);CN.prototype.hide.call(this)};
g.k.hv=function(){this.hide()};
g.k.Is=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.u instanceof SN?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof TN?a.seekableEnd:this.api.getDuration(2,!1))-a.current,BN(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.UN(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){DN(this);CN.prototype.show.call(this)};g.v(XN,AN);XN.prototype.onClick=function(a){AN.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(bO,g.TM);bO.prototype.uc=function(){var a=this.u.getProgressState();this.Hc.style.width=100*aO(new YN(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
bO.prototype.onStateChange=function(){g.BH(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.uc,this),this.uc()):-1!==this.j&&(this.hide(),this.u.rh(this.j),this.j=-1))};g.v(cO,UM);
cO.prototype.init=function(a,b,c,d){UM.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.P(c,V_),c=g.P(c,X_),a?(c=new ON(this.api,this.ib,this.layoutId,this.j,this.jb,this.u,this.T),c.Ca(this.I),c.init(mK("skip-button"),a,this.macros),g.H(this,c)):c&&(a=new HN(this.api,this.ib,this.layoutId,this.j,this.jb,this.u,!1),a.Ca(this.I),a.init(mK("ad-preview"),c,this.macros),IN(a),g.H(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new KN(this.api,this.ib,this.layoutId,this.j,this.jb),c.Ca(this.ea),c.init(mK("instream-user-sentiment"),a,this.macros),g.H(this,c));if(a=g.P(b,L5a))if(a=g.P(a,L5a))c=new JN(this.api,this.ib,this.layoutId,this.j,this.jb,this.u),g.H(this,c),c.Ca(this.D),c.init(mK("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new QN(this.api,this.ib,this.layoutId,this.j,this.jb,!0),g.H(this,c),
c.Ca(this.B),c.init(mK("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new WN(this.api,this.ib,this.layoutId,this.j,this.jb,this.u,d),g.H(this,d),d.Ca(this.B),d.init(mK("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.P(b.adInfoRenderer,W_))&&(a=new zN(this.api,this.ib,this.layoutId,this.j,this.jb,this.element),
g.H(this,a),a.Ca(this.B),a.init(mK("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(b=g.P(b.visitAdvertiserRenderer,g.zJ))&&(d=yFa(this)&&this.C?this.C:this.B)&&(a=new PN(this.api,this.ib,this.layoutId,this.j,this.jb),g.H(this,a),a.Ca(d),a.init(mK("visit-advertiser"),b,this.macros));(b=this.api.V())&&!g.yH(b)&&"3"==b.controlsType&&(b=new bO(this.api,this.u),b.Ca(this.Ba),g.H(this,b));this.api.V().N("enable_updated_html5_player_focus_style")&&g.ho(this.element,"ytp-ad-player-overlay-updated-focus-style");
this.show()};
cO.prototype.clear=function(){this.hide()};g.Da("yt.pubsub.publish",g.mz);var nO={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var x3={},IFa=(x3.WEB_UNPLUGGED="^unplugged/",x3.WEB_UNPLUGGED_ONBOARDING="^unplugged/",x3.WEB_UNPLUGGED_OPS="^unplugged/",x3.WEB_UNPLUGGED_PUBLIC="^unplugged/",x3.WEB_CREATOR="^creator/",x3.WEB_KIDS="^kids/",x3.WEB_EXPERIMENTS="^experiments/",x3.WEB_MUSIC="^music/",x3.WEB_REMIX="^music/",x3.WEB_MUSIC_EMBEDDED_PLAYER="^music/",x3.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",x3);kO.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?nO:c;var d={context:g.jM(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.jO(this.B());(e=null==(f=g.P(a.commandMetadata,g.M2))?void 0:f.apiUrl)&&(b=e);f=mna(ow(b));a=Object.assign({},{command:a},void 0);d={input:f,Ls:pw(f),qo:d,config:a};d.config.Jt?d.config.Jt.identity=c:d.config.Jt={identity:c};return d}g.rA(new g.Sw("Error: Failed to create Request from Command.",a))};
g.da.Object.defineProperties(kO.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.v(lO,kO);lO.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",Ls:pw("/getDatasyncIdsEndpoint","GET"),qo:{}}};
lO.prototype.B=function(){return[]};
lO.prototype.j=function(){};
lO.prototype.u=function(){};var b9a={},KFa=(b9a.GET_DATASYNC_IDS=iO(lO),b9a);var PFa="tokens consistency mss client_location entities response_received_commands store PLAYER_PRELOAD".split(" "),RFa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse"];var UFa=new nz("INNERTUBE_TRANSPORT_TOKEN");g.v(pO,kO);pO.prototype.B=function(){return d8a};
pO.prototype.j=function(a){return g.P(a,Q7a)||void 0};
pO.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
g.da.Object.defineProperties(pO.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(qO,kO);qO.prototype.B=function(){return e8a};
qO.prototype.j=function(a){return g.P(a,O7a)||void 0};
qO.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.da.Object.defineProperties(qO.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(rO,kO);rO.prototype.B=function(){return a8a};
rO.prototype.j=function(a){return g.P(a,c6a)||void 0};
rO.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
g.da.Object.defineProperties(rO.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(sO,kO);sO.prototype.B=function(){return b8a};
sO.prototype.j=function(a){return g.P(a,N7a)||void 0};
sO.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(tO,kO);tO.prototype.B=function(){return c8a};
tO.prototype.j=function(a){return g.P(a,K7a)||void 0};
tO.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.v(uO,kO);uO.prototype.B=function(){return $7a};
uO.prototype.j=function(a){return g.P(a,A7a)};
uO.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var Epa=new nz("NETWORK_SLI_TOKEN");vO.prototype.fetch=function(a,b){var c=this,d,e;return g.A(function(f){c.j&&(d=Uh(g.Wh(5,fi(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=new window.Request(a,b);return g.ov("web_fetch_promise_cleanup_killswitch")?f.return(Promise.resolve(fetch(e).then(function(h){return c.handleResponse(h)}).catch(function(h){g.sA(h)}))):f.return(fetch(e).then(function(h){return c.handleResponse(h)}).catch(function(h){g.sA(h)}))})};
vO.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.failure(),b=b.then(function(c){g.sA(new g.Sw("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};
vO[qz]=[new oz];var TFa=new nz("NETWORK_MANAGER_TOKEN");var wO;yO.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f=new XMLHttpRequest;f.onerror=function(){e(d.handleResponse(a,f.status,f.response))};
f.onload=function(){e(d.handleResponse(a,f.status,f.response))};
if(null==c?0:c.ly)f.onreadystatechange=function(p){c.ly(f,p)};
var h;f.open(null!=(h=b.method)?h:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){h=g.t(Object.entries(b.headers));for(var l=h.next();!l.done;l=h.next()){var m=g.t(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})};
yO.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.sA(new g.Sw("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.sA(new g.Sw("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};g.UI("","downloadsPageViewConfigurationEntity");g.UI("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.y3=g.UI("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.UI("SMART_DOWNLOADS_ENABLED","settingEntity");g.UI("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var WFa=[],zO=!1;var cqa={adNotify:function(a){var b=new kr;try{return void 0!==a.adMediaTimeSec&&g.I(b,1,a.adMediaTimeSec),void 0!==a.adMediaTimeMs&&g.I(b,6,a.adMediaTimeMs),void 0!==a.timeToAdBreakSec&&g.I(b,2,a.timeToAdBreakSec),void 0!==a.clientScreenNonce&&g.I(b,3,a.clientScreenNonce),void 0!==a.clientPlaybackNonce&&g.I(b,4,a.clientPlaybackNonce),void 0!==a.videoAdBreakOffsetSec&&g.I(b,5,a.videoAdBreakOffsetSec),void 0!==a.videoAdBreakOffsetMs&&g.I(b,7,a.videoAdBreakOffsetMs),b}catch(c){X(c)}},
biscottiBasedDetection:function(a){var b=new Ms;try{return void 0!==a.detected&&g.I(b,1,a.detected),void 0!==a.source&&g.I(b,2,a.source),void 0!==a.contentCpn&&g.I(b,3,a.contentCpn),void 0!==a.contentCsn&&g.I(b,4,a.contentCsn),void 0!==a.method&&g.I(b,5,a.method),void 0!==a.result&&g.I(b,6,a.result),b}catch(c){X(c)}},
adNotifyFilled:function(a){var b=new jr;try{return void 0!==a.notifyCompositeType&&g.I(b,1,I6a[a.notifyCompositeType]),b}catch(c){X(c)}},
idbTransactionEnded:function(a){var b=new tu;try{return void 0!==a.objectStoreNames&&g.I(b,1,a.objectStoreNames),void 0!==a.duration&&b.Bk(a.duration),void 0!==a.isSuccessful&&g.I(b,3,a.isSuccessful),void 0!==a.connectionHasUnknownAbortedTransaction&&g.I(b,4,a.connectionHasUnknownAbortedTransaction),void 0!==a.tryCount&&g.I(b,5,a.tryCount),void 0!==a.tag&&g.I(b,6,j7a[a.tag]),b}catch(c){X(c)}},
idbUnexpectedlyClosed:function(a){var b=new uu;try{return void 0!==a.dbName&&g.I(b,1,a.dbName),void 0!==a.dbVersion&&g.I(b,2,a.dbVersion),b}catch(c){X(c)}},
flowEvent:function(a){var b=new lu;try{void 0!==a.flowNonce&&g.I(b,1,a.flowNonce);if(a.flowEventType){a:{var c=a.flowEventType,d=new ku;try{void 0!==c.flowEventNamespace&&g.I(d,1,d7a[c.flowEventNamespace]);void 0!==c.flowEventType&&g.I(d,2,c.flowEventType);var e=d;break a}catch(Ea){X(Ea)}e=void 0}J(b,ku,2,e)}if(a.flowMetadata){a:{var f=a.flowMetadata,h=new ju;try{if(f.notaireContext){b:{var l=f.notaireContext,m=new Ct;try{if(l.serverInfo){c:{var n=l.serverInfo,p=new Bt;try{void 0!==n.id&&g.I(p,1,
n.id);void 0!==n.forceLog&&g.I(p,2,n.forceLog);var q=p;break c}catch(Ea){X(Ea)}q=void 0}J(m,Bt,1,q)}if(l.clientInfo){c:{var r=l.clientInfo,w=new At;try{void 0!==r.timeSinceReceivedMs&&g.I(w,1,r.timeSinceReceivedMs);var x=w;break c}catch(Ea){X(Ea)}x=void 0}J(m,At,2,x)}var z=m;break b}catch(Ea){X(Ea)}z=void 0}J(h,Ct,1,z)}if(f.offlineTransferStatusChangedContext){b:{var B=f.offlineTransferStatusChangedContext,C=new It;try{if(B.offlineTransferStatusChanged){var G=wHa(B.offlineTransferStatusChanged);J(C,
Ft,1,G)}var F=C;break b}catch(Ea){X(Ea)}F=void 0}J(h,It,2,F)}if(f.offlineOrchestrationContext){b:{var K=f.offlineOrchestrationContext,L=new Et;try{void 0!==K.entityType&&g.I(L,1,K.entityType);void 0!==K.entityId&&g.I(L,7,K.entityId);void 0!==K.offlineOrchestrationActionType&&g.I(L,6,D7a[K.offlineOrchestrationActionType]);void 0!==K.offlineOrchestrationActionResult&&g.I(L,2,C7a[K.offlineOrchestrationActionResult]);void 0!==K.offlineOrchestrationFailureReason&&g.I(L,10,E7a[K.offlineOrchestrationFailureReason]);
void 0!==K.isRetryable&&g.I(L,3,K.isRetryable);void 0!==K.isRestored&&g.I(L,11,K.isRestored);if(K.orchestrationAction){var N=kIa(K.orchestrationAction);J(L,Dt,4,N)}K.additionalOrchestrationActions&&BO(L.j.bind(L),K.additionalOrchestrationActions,kIa);void 0!==K.intervalSinceEnqueuedMs&&g.I(L,8,K.intervalSinceEnqueuedMs);void 0!==K.executionIntervalMs&&g.I(L,9,K.executionIntervalMs);var ba=L;break b}catch(Ea){X(Ea)}ba=void 0}J(h,Et,3,ba)}if(f.shortsCreationContext){b:{var T=f.shortsCreationContext,
S=new St;try{void 0!==T.shortsCreationSurfaces&&CO(S.j.bind(S),T.shortsCreationSurfaces,P7a);var ea=S;break b}catch(Ea){X(Ea)}ea=void 0}J(h,St,4,ea)}if(f.mdxConnectionContext){b:{var Q=f.mdxConnectionContext,sa=new wt;try{void 0!==Q.isReconnection&&g.I(sa,1,Q.isReconnection);void 0!==Q.disconnectReason&&g.I(sa,2,m7a[Q.disconnectReason]);void 0!==Q.isRetry&&g.I(sa,3,Q.isRetry);var ha=sa;break b}catch(Ea){X(Ea)}ha=void 0}J(h,wt,5,ha)}if(f.premiumMultiStepPurchaseContext){b:{var ta=f.premiumMultiStepPurchaseContext,
Pa=new Pt;try{if(ta.selectedOption){c:{var vb=ta.selectedOption,xa=new Ot;try{void 0!==vb.offerType&&g.I(xa,1,$5a[vb.offerType]);void 0!==vb.itemType&&g.I(xa,2,YO[vb.itemType]);void 0!==vb.itemExternalId&&g.I(xa,3,vb.itemExternalId);var Ja=xa;break c}catch(Ea){X(Ea)}Ja=void 0}J(Pa,Ot,1,Ja)}void 0!==ta.itemType&&g.I(Pa,2,YO[ta.itemType]);void 0!==ta.productType&&g.I(Pa,3,ZO[ta.productType]);void 0!==ta.landingPageVariantId&&g.I(Pa,4,ta.landingPageVariantId);void 0!==ta.experimentStatus&&g.I(Pa,5,o7a[ta.experimentStatus]);
void 0!==ta.themeKey&&g.I(Pa,6,ta.themeKey);void 0!==ta.signupType&&g.I(Pa,7,p7a[ta.signupType]);var lc=Pa;break b}catch(Ea){X(Ea)}lc=void 0}J(h,Pt,6,lc)}if(f.mdxReceiverConnectionContext){b:{var rb=f.mdxReceiverConnectionContext,cc=new xt;try{void 0!==rb.isFromAppLaunch&&g.I(cc,1,rb.isFromAppLaunch);void 0!==rb.dialServerType&&g.I(cc,2,l7a[rb.dialServerType]);void 0!==rb.supportsSmoothPairing&&g.I(cc,3,rb.supportsSmoothPairing);void 0!==rb.hasManuallyPairedRemotesOnAppStartup&&g.I(cc,4,rb.hasManuallyPairedRemotesOnAppStartup);
void 0!==rb.mismatchedTheme&&g.I(cc,5,W5a[rb.mismatchedTheme]);void 0!==rb.mdxSenderConnectedCounter&&g.I(cc,6,rb.mdxSenderConnectedCounter);void 0!==rb.externalRouteSource&&g.I(cc,7,k7a[rb.externalRouteSource]);void 0!==rb.appReloadCount&&g.I(cc,8,rb.appReloadCount);var tc=cc;break b}catch(Ea){X(Ea)}tc=void 0}J(h,xt,7,tc)}if(f.parentToolsOnboardingContext){b:{var Rb=f.parentToolsOnboardingContext,dc=new Kt;try{void 0!==Rb.triggerPoint&&g.I(dc,1,r6a[Rb.triggerPoint]);if(Rb.kidsFlowInfo){c:{var db=
Rb.kidsFlowInfo,od=new Jt;try{void 0!==db.kidsFlowVersion&&g.I(od,1,g6a[db.kidsFlowVersion]);void 0!==db.flowLabel&&g.I(od,2,db.flowLabel);void 0!==db.hostClientName&&g.I(od,3,h6a[db.hostClientName]);void 0!==db.hostClientVersion&&g.I(od,4,db.hostClientVersion);void 0!==db.kidsFlowType&&g.I(od,5,f6a[db.kidsFlowType]);var pd=od;break c}catch(Ea){X(Ea)}pd=void 0}J(dc,Jt,2,pd)}void 0!==Rb.kidsCorpusPreferenceNew&&g.I(dc,3,e6a[Rb.kidsCorpusPreferenceNew]);void 0!==Rb.appChoice&&g.I(dc,4,i6a[Rb.appChoice]);
void 0!==Rb.isKidSignedIn&&g.I(dc,5,Rb.isKidSignedIn);void 0!==Rb.alreadyOnboardedYtk&&g.I(dc,6,Rb.alreadyOnboardedYtk);void 0!==Rb.alreadyOnboardedSupex&&g.I(dc,7,Rb.alreadyOnboardedSupex);var ec=dc;break b}catch(Ea){X(Ea)}ec=void 0}J(h,Kt,8,ec)}if(f.hashtagAutoCompleteContext){b:{var jd=f.hashtagAutoCompleteContext,dd=new kt;try{void 0!==jd.suggestionSelected&&g.I(dd,1,jd.suggestionSelected);var Qc=dd;break b}catch(Ea){X(Ea)}Qc=void 0}J(h,kt,9,Qc)}if(f.liveStreamingContext){b:{var Sb=f.liveStreamingContext,
Yb=new vt;try{void 0!==Sb.broadcastSource&&g.I(Yb,1,H6a[Sb.broadcastSource]);void 0!==Sb.isAutoDashboard&&g.I(Yb,2,Sb.isAutoDashboard);void 0!==Sb.externalVideoId&&g.I(Yb,3,Sb.externalVideoId);void 0!==Sb.broadcastConferenceType&&Yb.setBroadcastConferenceType(G6a[Sb.broadcastConferenceType]);if(Sb.eventData){c:{var Ib=Sb.eventData,Zb=new ut;try{if(Ib.webrtcHandshakeOffer){d:{var xc=Ib.webrtcHandshakeOffer,Dc=new tt;try{void 0!==xc.localVideoSsrc&&g.I(Dc,1,xc.localVideoSsrc);void 0!==xc.localAudioSsrc&&
g.I(Dc,2,xc.localAudioSsrc);void 0!==xc.participantId&&g.I(Dc,3,xc.participantId);var $b=Dc;break d}catch(Ea){X(Ea)}$b=void 0}J(Zb,tt,1,$b)}if(Ib.webrtcHandshakeAnswer){d:{var ed=Ib.webrtcHandshakeAnswer,Va=new qt;try{void 0!==ed.remoteVideoSsrc&&g.I(Va,1,ed.remoteVideoSsrc);void 0!==ed.remoteAudioSsrc&&g.I(Va,2,ed.remoteAudioSsrc);var te=Va;break d}catch(Ea){X(Ea)}te=void 0}J(Zb,qt,2,te)}if(Ib.webrtcHandshakeError){d:{var uf=Ib.webrtcHandshakeError,kf=new rt;try{void 0!==uf.description&&kf.setDescription(uf.description);
var ue=kf;break d}catch(Ea){X(Ea)}ue=void 0}J(Zb,rt,3,ue)}if(Ib.costreamStartNotification){d:{var kb=Ib.costreamStartNotification,fc=new nt;try{void 0!==kb.broadcastStartTimeMs&&g.I(fc,1,kb.broadcastStartTimeMs);var Yd=fc;break d}catch(Ea){X(Ea)}Yd=void 0}J(Zb,nt,4,Yd)}if(Ib.remoteParticipant){d:{var qd=Ib.remoteParticipant,Ge=new ot;try{void 0!==qd.videoSsrc&&g.I(Ge,1,qd.videoSsrc);void 0!==qd.audioSsrc&&g.I(Ge,2,qd.audioSsrc);var vf=Ge;break d}catch(Ea){X(Ea)}vf=void 0}J(Zb,ot,5,vf)}if(Ib.webcamEventData){d:{var Ec=
Ib.webcamEventData,mc=new pt;try{void 0!==Ec.videoFrameRate&&Bg(mc,1,Ec.videoFrameRate);void 0!==Ec.videoAspectRatio&&Bg(mc,2,Ec.videoAspectRatio);void 0!==Ec.videoHeight&&g.I(mc,3,Ec.videoHeight);void 0!==Ec.videoWidth&&g.I(mc,4,Ec.videoWidth);void 0!==Ec.videoCaptureCursor&&g.I(mc,5,Ec.videoCaptureCursor);void 0!==Ec.videoCaptureSurface&&g.I(mc,6,Ec.videoCaptureSurface);void 0!==Ec.videoCaptureAudioEnabled&&g.I(mc,7,Ec.videoCaptureAudioEnabled);var Zd=mc;break d}catch(Ea){X(Ea)}Zd=void 0}J(Zb,pt,
6,Zd)}var lb=Zb;break c}catch(Ea){X(Ea)}lb=void 0}J(Yb,ut,5,lb)}void 0!==Sb.isMonetizationOn&&g.I(Yb,6,Sb.isMonetizationOn);void 0!==Sb.sharedmdeEnabled&&g.I(Yb,7,Sb.sharedmdeEnabled);var Nb=Yb;break b}catch(Ea){X(Ea)}Nb=void 0}J(h,vt,10,Nb)}if(f.touAppealContext){b:{var Hd=f.touAppealContext,gc=new Xt;try{void 0!==Hd.scope&&g.I(gc,1,Hd.scope);if(Hd.videoId){var Qb=gc.setVideoId;c:{var pg=Hd.videoId,Id=new Vt;try{void 0!==pg.externalVideoId&&g.I(Id,1,pg.externalVideoId);var je=Id;break c}catch(Ea){X(Ea)}je=
void 0}Qb.call(gc,je)}if(Hd.videoThumbnailId){c:{var Vf=Hd.videoThumbnailId,mh=new Wt;try{void 0!==Vf.externalVideoId&&g.I(mh,1,Vf.externalVideoId);void 0!==Vf.thumbnailVersion&&g.I(mh,3,Vf.thumbnailVersion);void 0!==Vf.checksum&&g.I(mh,4,Vf.checksum);var $d=mh;break c}catch(Ea){X(Ea)}$d=void 0}zg(gc,Wt,3,P2,$d)}if(Hd.playlistId){c:{var wf=Hd.playlistId,ki=new Ut;try{void 0!==wf.externalPlaylistId&&g.I(ki,1,wf.externalPlaylistId);var He=ki;break c}catch(Ea){X(Ea)}He=void 0}zg(gc,Ut,4,P2,He)}void 0!==
Hd.urlHostname&&g.vg(gc,5,P2,Hd.urlHostname);void 0!==Hd.encodedTouViolativeContentId&&g.I(gc,6,Hd.encodedTouViolativeContentId);void 0!==Hd.encodedChannelTouViolativeContentId&&g.I(gc,7,Hd.encodedChannelTouViolativeContentId);var nh=gc;break b}catch(Ea){X(Ea)}nh=void 0}J(h,Xt,11,nh)}if(f.dragAndDropContext){b:{var Mg=f.dragAndDropContext,Ie=new ht;try{if(Mg.rootVe){var qg=DO(Mg.rootVe);J(Ie,gt,1,qg)}if(Mg.ve){var Zi=DO(Mg.ve);J(Ie,gt,2,Zi)}var li=Ie;break b}catch(Ea){X(Ea)}li=void 0}J(h,ht,12,li)}if(f.socialSuggestionsContext){b:{var xf=
f.socialSuggestionsContext,Te=new Tt;try{void 0!==xf.socialSuggestionsType&&g.I(Te,1,s7a[xf.socialSuggestionsType]);void 0!==xf.suggestionSelected&&g.I(Te,2,xf.suggestionSelected);void 0!==xf.source&&g.I(Te,3,t7a[xf.source]);var yf=Te;break b}catch(Ea){X(Ea)}yf=void 0}J(h,Tt,13,yf)}if(f.featureEnablementContext){b:{var Ua=f.featureEnablementContext,ve=new jt;try{void 0!==Ua.feature&&g.I(ve,1,AGa[Ua.feature]);var Ng=ve;break b}catch(Ea){X(Ea)}Ng=void 0}J(h,jt,14,Ng)}if(f.iapContext){b:{var we=f.iapContext,
zd=new lt;try{if(we.playIapProduct){c:{var Mh=we.playIapProduct,Nj=new mt;try{void 0!==Mh.packageId&&g.I(Nj,1,Mh.packageId);void 0!==Mh.productId&&g.I(Nj,2,Mh.productId);var $i=Nj;break c}catch(Ea){X(Ea)}$i=void 0}zg(zd,mt,1,c7a,$i)}void 0!==we.source&&g.I(zd,2,f7a[we.source]);void 0!==we.attributionId&&g.I(zd,3,we.attributionId);void 0!==we.externalVideoId&&g.I(zd,4,we.externalVideoId);void 0!==we.externalChannelId&&g.I(zd,5,we.externalChannelId);var aj=zd;break b}catch(Ea){X(Ea)}aj=void 0}J(h,lt,
15,aj)}if(f.shoppingCheckoutContext){b:{var dl=f.shoppingCheckoutContext,vo=new Rt;try{if(dl.shoppingFlowParams){c:{var Mm=dl.shoppingFlowParams,wo=new Qt;try{void 0!==Mm.ypcCallerPage&&g.I(wo,1,x7a[Mm.ypcCallerPage]);void 0!==Mm.useCase&&g.I(wo,2,r7a[Mm.useCase]);var Hq=wo;break c}catch(Ea){X(Ea)}Hq=void 0}J(vo,Qt,1,Hq)}void 0!==dl.shoppingCheckoutErrorReason&&g.I(vo,2,q7a[dl.shoppingCheckoutErrorReason]);var Iq=vo;break b}catch(Ea){X(Ea)}Iq=void 0}J(h,Rt,16,Iq)}if(f.ypcCancellationContext){b:{var xo=
f.ypcCancellationContext,yo=new hu;try{void 0!==xo.itemType&&g.I(yo,1,YO[xo.itemType]);void 0!==xo.productType&&g.I(yo,2,ZO[xo.productType]);var zo=yo;break b}catch(Ea){X(Ea)}zo=void 0}J(h,hu,17,zo)}if(f.ypcBrowseOffersContext){b:{var Xj=f.ypcBrowseOffersContext,Yj=new gu;try{if(Xj.commerceFlowLoggingParams){var hj=oIa(Xj.commerceFlowLoggingParams);J(Yj,fu,1,hj)}void 0!==Xj.offerType&&g.I(Yj,2,a6a[Xj.offerType]);void 0!==Xj.entityType&&g.I(Yj,3,Z6a[Xj.entityType]);var Ke=Yj;break b}catch(Ea){X(Ea)}Ke=
void 0}J(h,gu,18,Ke)}if(f.mdxStreamTransferContext){b:{var sg=f.mdxStreamTransferContext,Zj=new zt;try{void 0!==sg.completedReason&&g.I(Zj,1,n7a[sg.completedReason]);var Zt=Zj;break b}catch(Ea){X(Ea)}Zt=void 0}J(h,zt,19,Zt)}if(f.pdgBuyFlowContext){b:{var ql=f.pdgBuyFlowContext,Ao=new Nt;try{void 0!==ql.productType&&g.I(Ao,1,ZO[ql.productType]);if(ql.entryPointClickedContext){c:{var pi=ql.entryPointClickedContext,$e=new Lt;try{void 0!==pi.superVodBuyFlowEntryPoint&&g.vg($e,1,O2,I7a[pi.superVodBuyFlowEntryPoint]);
void 0!==pi.superChatBuyFlowEntryPoint&&g.vg($e,2,O2,G7a[pi.superChatBuyFlowEntryPoint]);void 0!==pi.sharedPdgBuyFlowEntryPoint&&g.vg($e,3,O2,F7a[pi.sharedPdgBuyFlowEntryPoint]);void 0!==pi.superStickerBuyFlowEntryPoint&&g.vg($e,4,O2,H7a[pi.superStickerBuyFlowEntryPoint]);var ak=$e;break c}catch(Ea){X(Ea)}ak=void 0}J(Ao,Lt,2,ak)}if(ql.itemSelectionPageDisplayedContext){c:{var $t=ql.itemSelectionPageDisplayedContext,Jq=new Mt;try{void 0!==$t.superStickerBuyFlowType&&g.I(Jq,1,J7a[$t.superStickerBuyFlowType]);
var Nm=Jq;break c}catch(Ea){X(Ea)}Nm=void 0}J(Ao,Mt,3,Nm)}var Kq=Ao;break b}catch(Ea){X(Ea)}Kq=void 0}J(h,Nt,20,Kq)}if(f.ypcPurchaseContext){b:{var qi=f.ypcPurchaseContext,rl=new iu;try{if(qi.commerceFlowLoggingParams){var Bo=oIa(qi.commerceFlowLoggingParams);J(rl,fu,1,Bo)}void 0!==qi.offerType&&g.I(rl,2,a6a[qi.offerType]);void 0!==qi.transactionType&&g.I(rl,3,w7a[qi.transactionType]);void 0!==qi.paymentProcessor&&g.I(rl,4,b6a[qi.paymentProcessor]);var Lq=rl;break b}catch(Ea){X(Ea)}Lq=void 0}J(h,
iu,21,Lq)}if(f.webViewContext){b:{var ri=f.webViewContext,Ha=new du;try{void 0!==ri.hostname&&g.I(Ha,1,ri.hostname);void 0!==ri.webViewUseCase&&g.I(Ha,2,R7a[ri.webViewUseCase]);void 0!==ri.isLoaded&&g.I(Ha,3,ri.isLoaded);void 0!==ri.webViewEngagementSec&&g.I(Ha,4,ri.webViewEngagementSec);var Co=Ha;break b}catch(Ea){X(Ea)}Co=void 0}J(h,du,22,Co)}if(f.videoSuggestionsContext){b:{var Do=f.videoSuggestionsContext,au=new Yt;try{void 0!==Do.type&&g.I(au,1,X5a[Do.type]);void 0!==Do.serializedSuggestionData&&
Dg(au,2,Do.serializedSuggestionData);void 0!==Do.videoId&&au.setVideoId(Do.videoId);var my=au;break b}catch(Ea){X(Ea)}my=void 0}J(h,Yt,23,my)}if(f.actionSheetContext){b:{var $E=f.actionSheetContext,aF=new ft;try{void 0!==$E.parentScreenUiType&&g.I(aF,1,$E.parentScreenUiType);var ny=aF;break b}catch(Ea){X(Ea)}ny=void 0}J(h,ft,24,ny)}var bF=h;break a}catch(Ea){X(Ea)}bF=void 0}J(b,ju,3,bF)}void 0!==a.flowType&&g.I(b,4,e7a[a.flowType]);void 0!==a.flowEventStatus&&g.I(b,5,a.flowEventStatus);void 0!==a.csn&&
g.I(b,6,a.csn);void 0!==a.can&&g.I(b,7,a.can);return b}catch(Ea){X(Ea)}},
idbQuotaExceeded:function(a){var b=new qu;try{return void 0!==a.deviceStorageUsageMbytes&&g.I(b,1,a.deviceStorageUsageMbytes),void 0!==a.deviceStorageQuotaMbytes&&g.I(b,2,a.deviceStorageQuotaMbytes),void 0!==a.isIframe&&g.I(b,3,a.isIframe),void 0!==a.isSw&&g.I(b,4,a.isSw),void 0!==a.dbName&&g.I(b,5,a.dbName),void 0!==a.objectStoreNames&&g.I(b,6,a.objectStoreNames),void 0!==a.transactionCount&&g.I(b,7,a.transactionCount),void 0!==a.transactionMode&&g.I(b,8,a.transactionMode),b}catch(c){X(c)}},
idbTransactionAborted:function(a){var b=new ru;try{return void 0!==a.objectStoreNames&&g.I(b,1,a.objectStoreNames),void 0!==a.hasWindowUnloaded&&g.I(b,2,a.hasWindowUnloaded),void 0!==a.transactionCount&&g.I(b,3,a.transactionCount),void 0!==a.transactionDuration&&g.I(b,4,a.transactionDuration),void 0!==a.dbDuration&&g.I(b,5,a.dbDuration),b}catch(c){X(c)}},
streamzIncremented:function(a){var b=new cv;try{return void 0!==a.serializedIncrementBatch&&Dg(b,1,a.serializedIncrementBatch),b}catch(c){X(c)}},
sliEventBatch:function(a){var b=new Zs;try{a.loggedEvents&&BO(b.j.bind(b),a.loggedEvents,RIa);a.unloggedEvents&&BO(b.B.bind(b),a.unloggedEvents,RIa);void 0!==a.playerClientVersion&&g.I(b,3,a.playerClientVersion);void 0!==a.playerCanaryState&&g.I(b,4,Y6a[a.playerCanaryState]);if(a.dimensions){a:{var c=a.dimensions,d=new Ys;try{void 0!==c.playerClientVersion&&g.I(d,1,c.playerClientVersion);void 0!==c.playerCanaryState&&g.I(d,2,Y6a[c.playerCanaryState]);var e=d;break a}catch(f){X(f)}e=void 0}J(b,Ys,
5,e)}return b}catch(f){X(f)}},
playbackAssociated:function(a){var b=new vu;try{void 0!==a.cpn&&g.I(b,1,a.cpn);if(a.playbackVe){var c=DO(a.playbackVe);J(b,gt,2,c)}void 0!==a.csn&&g.I(b,3,a.csn);if(a.queueInfo){a:{var d=a.queueInfo,e=new wu;try{if(d.enqueueingVe){var f=DO(d.enqueueingVe);J(e,gt,1,f)}void 0!==d.enqueueingCsn&&g.I(e,2,d.enqueueingCsn);void 0!==d.clientEnqueueingTimeMs&&g.I(e,3,d.clientEnqueueingTimeMs);var h=e;break a}catch(l){X(l)}h=void 0}J(b,wu,4,h)}return b}catch(l){X(l)}},
autoplayTriggered:function(a){var b=new at;try{return void 0!==a.intentional&&g.I(b,1,a.intentional),b}catch(c){X(c)}},
webPlayerApiCalled:function(a){var b=new dv;try{return void 0!==a.callerUrl&&g.I(b,1,a.callerUrl),void 0!==a.methodName&&g.I(b,2,a.methodName),void 0!==a.origin&&g.I(b,3,a.origin),void 0!==a.playerStyle&&g.I(b,4,a.playerStyle),b}catch(c){X(c)}},
embedsAdEvent:function(a){var b=new $s;try{return void 0!==a.eventType&&g.I(b,1,a7a[a.eventType]),void 0!==a.breakType&&g.I(b,2,$6a[a.breakType]),void 0!==a.packageName&&g.I(b,3,a.packageName),void 0!==a.embedUrl&&g.I(b,4,a.embedUrl),void 0!==a.adSource&&g.I(b,5,b7a[a.adSource]),void 0!==a.youtubeHost&&g.I(b,6,a.youtubeHost),b}catch(c){X(c)}},
embedsShouldRequestStorageAccessResult:function(a){var b=new dt;try{return void 0!==a.result&&g.I(b,1,a.result),void 0!==a.returnsUndefined&&g.I(b,2,a.returnsUndefined),b}catch(c){X(c)}},
embedsRequestStorageAccessState:function(a){var b=new ct;try{return void 0!==a.isCued&&g.I(b,1,a.isCued),void 0!==a.isAutoplayBlocked&&g.I(b,2,a.isAutoplayBlocked),b}catch(c){X(c)}},
embedsRequestStorageAccessFailedState:function(a){var b=new bt;try{return void 0!==a.state&&b.Fc(a.state),b}catch(c){X(c)}},
heartbeatActionPlayerHalted:function(a){var b=new nu;try{return void 0!==a.serializedServerContext&&Dg(b,1,a.serializedServerContext),void 0!==a.enforcedPolicyToHaltOnNetworkFailure&&g.I(b,2,a.enforcedPolicyToHaltOnNetworkFailure),b}catch(c){X(c)}},
heartbeatActionPlayerTransitioned:function(a){var b=new ou;try{return void 0!==a.reason&&g.I(b,1,g7a[a.reason]),void 0!==a.trigger&&g.I(b,2,h7a[a.trigger]),void 0!==a.serializedServerContext&&Dg(b,3,a.serializedServerContext),b}catch(c){X(c)}},
embedsItpWatchLaterResult:function(a){var b=new et;try{return void 0!==a.accepted&&g.I(b,1,a.accepted),b}catch(c){X(c)}},
html5PlayerHealthEvent:function(a){var b=new pu;try{return void 0!==a.started&&g.I(b,1,a.started),void 0!==a.stateAtSend&&g.I(b,2,v7a[a.stateAtSend]),void 0!==a.joinLatencySecs&&Ag(b,4,a.joinLatencySecs),void 0!==a.playTimeSecs&&Ag(b,5,a.playTimeSecs),void 0!==a.rebufferTimeSecs&&Ag(b,6,a.rebufferTimeSecs),void 0!==a.playerCanaryType&&g.I(b,7,i7a[a.playerCanaryType]),void 0!==a.isAd&&g.I(b,8,a.isAd),void 0!==a.liveMode&&g.I(b,9,u7a[a.liveMode]),void 0!==a.isGapless&&g.I(b,10,a.isGapless),void 0!==
a.hasDrm&&g.I(b,11,a.hasDrm),void 0!==a.seekCount&&g.I(b,12,a.seekCount),void 0!==a.networkErrorCount&&g.I(b,13,a.networkErrorCount),void 0!==a.nonNetworkErrorCount&&g.I(b,14,a.nonNetworkErrorCount),void 0!==a.isServerStitchedDai&&g.I(b,15,a.isServerStitchedDai),b}catch(c){X(c)}},
adsClientStateChange:function(a){var b=new Ur;try{if(a.cuepointTrigger){a:{var c=a.cuepointTrigger,d=new Ir;try{void 0!==c.type&&g.I(d,1,N6a[c.type]);void 0!==c.event&&g.I(d,2,M6a[c.event]);void 0!==c.cuepointId&&g.I(d,3,c.cuepointId);void 0!==c.totalCueDurationMs&&Bg(d,4,c.totalCueDurationMs);void 0!==c.playheadTimeMs&&Bg(d,5,c.playheadTimeMs);void 0!==c.cueStartTimeMs&&Bg(d,6,c.cueStartTimeMs);void 0!==c.cuepointReceivedTimeMs&&Bg(d,7,c.cuepointReceivedTimeMs);void 0!==c.contentCpn&&g.I(d,8,c.contentCpn);
void 0!==c.externalChannelId&&g.I(d,9,c.externalChannelId);var e=d;break a}catch(Va){X(Va)}e=void 0}zg(b,Ir,1,N2,e)}if(a.daiStateTrigger){a:{var f=a.daiStateTrigger,h=new Nr;try{void 0!==f.contentCpn&&g.I(h,1,f.contentCpn);void 0!==f.totalCueDurationMs&&Bg(h,2,f.totalCueDurationMs);void 0!==f.filledAdsDurationMs&&Bg(h,3,f.filledAdsDurationMs);void 0!==f.cueStartChange&&g.I(h,4,T6a[f.cueStartChange]);void 0!==f.cueDurationChange&&g.I(h,5,R6a[f.cueDurationChange]);void 0!==f.cueDurationChangeReason&&
g.I(h,6,S6a[f.cueDurationChangeReason]);void 0!==f.errorType&&g.I(h,7,U6a[f.errorType]);void 0!==f.externalChannelId&&g.I(h,8,f.externalChannelId);if(f.adClientData){var l=WO(f.adClientData);J(h,Br,9,l)}var m=h;break a}catch(Va){X(Va)}m=void 0}zg(b,Nr,2,N2,m)}if(a.daiAdBreakCriticalError){a:{var n=a.daiAdBreakCriticalError,p=new Jr;try{void 0!==n.contentCpn&&g.I(p,1,n.contentCpn);void 0!==n.errorType&&g.I(p,2,U6a[n.errorType]);void 0!==n.externalChannelId&&g.I(p,3,n.externalChannelId);void 0!==n.msg&&
g.I(p,4,n.msg);void 0!==n.cueIdentifier&&g.I(p,5,n.cueIdentifier);var q=p;break a}catch(Va){X(Va)}q=void 0}zg(b,Jr,3,N2,q)}if(a.daiAdBreakWarning){a:{var r=a.daiAdBreakWarning,w=new Lr;try{void 0!==r.contentCpn&&g.I(w,1,r.contentCpn);void 0!==r.errorType&&g.I(w,2,U6a[r.errorType]);void 0!==r.externalChannelId&&g.I(w,3,r.externalChannelId);void 0!==r.msg&&g.I(w,4,r.msg);void 0!==r.cueIdentifier&&g.I(w,5,r.cueIdentifier);var x=w;break a}catch(Va){X(Va)}x=void 0}zg(b,Lr,4,N2,x)}if(a.daiAdBreakInfo){a:{var z=
a.daiAdBreakInfo,B=new Kr;try{void 0!==z.contentCpn&&g.I(B,1,z.contentCpn);void 0!==z.totalCueDurationMs&&g.I(B,2,z.totalCueDurationMs);void 0!==z.filledAdsDurationMs&&g.I(B,3,z.filledAdsDurationMs);void 0!==z.cueStartChange&&g.I(B,4,T6a[z.cueStartChange]);void 0!==z.cueDurationChange&&g.I(B,5,R6a[z.cueDurationChange]);void 0!==z.cueDurationChangeReason&&g.I(B,6,S6a[z.cueDurationChangeReason]);void 0!==z.externalChannelId&&g.I(B,7,z.externalChannelId);void 0!==z.cueIdentifier&&g.I(B,8,z.cueIdentifier);
void 0!==z.infoType&&g.I(B,9,V6a[z.infoType]);void 0!==z.msg&&g.I(B,10,z.msg);void 0!==z.filledAdCount&&g.I(B,11,z.filledAdCount);var C=B;break a}catch(Va){X(Va)}C=void 0}zg(b,Kr,5,N2,C)}if(a.visibilityErrorDebugInfo){a:{var G=a.visibilityErrorDebugInfo,F=new Tr;try{void 0!==G.elementName&&g.I(F,1,G.elementName);void 0!==G.contentVideoPlaybackEventId&&g.I(F,2,G.contentVideoPlaybackEventId);void 0!==G.errorList&&g.I(F,3,G.errorList);void 0!==G.htmlDump&&g.I(F,4,G.htmlDump);var K=F;break a}catch(Va){X(Va)}K=
void 0}zg(b,Tr,6,N2,K)}if(a.playbackTimelineAdBreakStateTrigger){a:{var L=a.playbackTimelineAdBreakStateTrigger,N=new Rr;try{void 0!==L.cueIdentifier&&g.I(N,1,L.cueIdentifier);void 0!==L.timestampUnixEpochSec&&g.I(N,2,L.timestampUnixEpochSec);void 0!==L.adRequestState&&g.I(N,3,O6a[L.adRequestState]);void 0!==L.segmentState&&g.I(N,4,P6a[L.segmentState]);void 0!==L.timestampUnixEpochMs&&g.I(N,5,L.timestampUnixEpochMs);var ba=N;break a}catch(Va){X(Va)}ba=void 0}zg(b,Rr,7,N2,ba)}if(a.extraLongAdBreakDebugInfo){a:{var T=
a.extraLongAdBreakDebugInfo,S=new Qr;try{void 0!==T.contentVideoPlaybackEventId&&g.I(S,1,T.contentVideoPlaybackEventId);if(T.adPlacementKindCuepointInitiatedCueRange){var ea=XO(T.adPlacementKindCuepointInitiatedCueRange);J(S,Pr,2,ea)}if(T.adPlacementConfigImpliedCueRange){var Q=XO(T.adPlacementConfigImpliedCueRange);J(S,Pr,3,Q)}if(T.adPlacementKindMillisecondsInitiatedCueRange){var sa=XO(T.adPlacementKindMillisecondsInitiatedCueRange);J(S,Pr,4,sa)}void 0!==T.cueIdentifier&&g.I(S,5,T.cueIdentifier);
var ha=S;break a}catch(Va){X(Va)}ha=void 0}zg(b,Qr,8,N2,ha)}if(a.comparePyvAdTagInfo){a:{var ta=a.comparePyvAdTagInfo,Pa=new Hr;try{void 0!==ta.pyvAdTagUrlFromPlayer&&g.I(Pa,1,ta.pyvAdTagUrlFromPlayer);void 0!==ta.pyvAdTagUrlFromWatchNext&&g.I(Pa,2,ta.pyvAdTagUrlFromWatchNext);var vb=Pa;break a}catch(Va){X(Va)}vb=void 0}zg(b,Hr,9,N2,vb)}if(a.driftRecoveryInfo){a:{var xa=a.driftRecoveryInfo,Ja=new Or;try{void 0!==xa.contentCpn&&g.I(Ja,1,xa.contentCpn);void 0!==xa.cueIdentifier&&g.I(Ja,2,xa.cueIdentifier);
void 0!==xa.driftRecoveryMs&&g.I(Ja,3,xa.driftRecoveryMs);void 0!==xa.breakDurationMs&&g.I(Ja,4,xa.breakDurationMs);void 0!==xa.driftFromHeadMs&&g.I(Ja,5,xa.driftFromHeadMs);void 0!==xa.appliedDriftRecoveryMs&&g.I(Ja,6,xa.appliedDriftRecoveryMs);void 0!==xa.destinationMs&&g.I(Ja,7,xa.destinationMs);if(xa.adClientData){var lc=WO(xa.adClientData);J(Ja,Br,8,lc)}var rb=Ja;break a}catch(Va){X(Va)}rb=void 0}zg(b,Or,10,N2,rb)}if(a.adsClientEvent){a:{var cc=a.adsClientEvent,tc=new Gr;try{void 0!==cc.eventType&&
g.I(tc,1,L6a[cc.eventType]);if(cc.adClientData){var Rb=WO(cc.adClientData);J(tc,Br,3,Rb)}void 0!==cc.serializedAdServingData&&Dg(tc,4,cc.serializedAdServingData);void 0!==cc.eventOrder&&g.I(tc,5,cc.eventOrder);void 0!==cc.serializedSlotAdServingData&&Dg(tc,6,cc.serializedSlotAdServingData);if(cc.errorInfo){b:{var dc=cc.errorInfo,db=new Fr;try{void 0!==dc.errorType&&g.I(db,1,K6a[dc.errorType]);void 0!==dc.errorMessage&&g.I(db,2,J6a[dc.errorMessage]);var od=db;break b}catch(Va){X(Va)}od=void 0}J(tc,
Fr,7,od)}var pd=tc;break a}catch(Va){X(Va)}pd=void 0}zg(b,Gr,11,N2,pd)}if(a.daiAdStateTracking){a:{var ec=a.daiAdStateTracking,jd=new Mr;try{void 0!==ec.eventType&&g.I(jd,1,Q6a[ec.eventType]);void 0!==ec.contentCpn&&g.I(jd,2,ec.contentCpn);void 0!==ec.externalChannelId&&g.I(jd,3,ec.externalChannelId);void 0!==ec.adCpn&&g.I(jd,4,ec.adCpn);void 0!==ec.adCount&&g.I(jd,5,ec.adCount);void 0!==ec.msg&&g.I(jd,6,ec.msg);var dd=jd;break a}catch(Va){X(Va)}dd=void 0}zg(b,Mr,12,N2,dd)}if(a.adTrimmingInfo){a:{var Qc=
a.adTrimmingInfo,Sb=new Cr;try{void 0!==Qc.contentCpn&&g.I(Sb,1,Qc.contentCpn);void 0!==Qc.cueIdentifier&&g.I(Sb,2,Qc.cueIdentifier);Qc.adMediaInfo&&BO(Sb.j.bind(Sb),Qc.adMediaInfo,jIa);var Yb=Sb;break a}catch(Va){X(Va)}Yb=void 0}zg(b,Cr,13,N2,Yb)}if(a.adsAttributionEvent){a:{var Ib=a.adsAttributionEvent,Zb=new Er;try{void 0!==Ib.errorCode&&g.I(Zb,1,W6a[Ib.errorCode]);void 0!==Ib.attributionStep&&g.I(Zb,2,X6a[Ib.attributionStep]);void 0!==Ib.innerErrorDomain&&g.I(Zb,3,Ib.innerErrorDomain);void 0!==
Ib.innerErrorCode&&g.I(Zb,4,Ib.innerErrorCode);var xc=Zb;break a}catch(Va){X(Va)}xc=void 0}zg(b,Er,14,N2,xc)}if(a.playerDebugData){a:{var Dc=a.playerDebugData,$b=new Sr;try{void 0!==Dc.pmlSignal&&g.I($b,1,Dc.pmlSignal);void 0!==Dc.contentCpn&&g.I($b,2,Dc.contentCpn);var ed=$b;break a}catch(Va){X(Va)}ed=void 0}zg(b,Sr,15,N2,ed)}return b}catch(Va){X(Va)}},
offlineTransferStatusChanged:wHa,offlineStateSnapshot:function(a){var b=new bv;try{a.offlineVideos&&BO(b.B.bind(b),a.offlineVideos,THa);a.offlinePlaylists&&BO(b.j.bind(b),a.offlinePlaylists,VHa);void 0!==a.freeDiskSpaceBytes&&g.I(b,3,a.freeDiskSpaceBytes);void 0!==a.lastOfflineUsageTimeMs&&g.I(b,4,a.lastOfflineUsageTimeMs);void 0!==a.lastOfflinePlaybackTimeMs&&g.I(b,5,a.lastOfflinePlaybackTimeMs);void 0!==a.lastOfflineSaveTimeMs&&g.I(b,6,a.lastOfflineSaveTimeMs);void 0!==a.lastOfflineDownloadSuccessTimeMs&&
g.I(b,7,a.lastOfflineDownloadSuccessTimeMs);void 0!==a.isBatteryCharging&&g.I(b,8,a.isBatteryCharging);void 0!==a.detailedNetworkType&&g.I(b,9,PO[a.detailedNetworkType]);void 0!==a.batteryLevelPercentage&&g.I(b,10,a.batteryLevelPercentage);void 0!==a.isPostMigrationState&&g.I(b,11,a.isPostMigrationState);if(a.offlineCacheVerificationFailure){a:{var c=a.offlineCacheVerificationFailure,d=new Ou;try{void 0!==c.numUncachedVideos&&g.I(d,1,c.numUncachedVideos);void 0!==c.numTotalCompletedVideos&&g.I(d,
2,c.numTotalCompletedVideos);c.uncachedVideos&&BO(d.j.bind(d),c.uncachedVideos,XHa);var e=d;break a}catch(q){X(q)}e=void 0}J(b,Ou,12,e)}if(a.additionalOfflineClientState){a:{var f=a.additionalOfflineClientState,h=new Uu;try{if(f.mainAppAdditionalOfflineClientState){b:{var l=f.mainAppAdditionalOfflineClientState,m=new Tu;try{l.downloadRecsVideos&&BO(m.j.bind(m),l.downloadRecsVideos,YHa);l.smartDownloadVideos&&BO(m.B.bind(m),l.smartDownloadVideos,ZHa);var n=m;break b}catch(q){X(q)}n=void 0}J(h,Tu,1,
n)}var p=h;break a}catch(q){X(q)}p=void 0}J(b,Uu,13,p)}return b}catch(q){X(q)}}},dqa={adNotify:function(a,b,c){var d=new gv;
zg(d,kr,184,pA,a);c?nA(d,c,b):oA(d,b)},
biscottiBasedDetection:function(a,b,c){var d=new gv;zg(d,Ms,439,pA,a);c?nA(d,c,b):oA(d,b)},
adNotifyFilled:function(a,b,c){var d=new gv;zg(d,jr,300,pA,a);c?nA(d,c,b):oA(d,b)},
idbTransactionEnded:function(a,b,c){var d=new gv;zg(d,tu,352,pA,a);c?nA(d,c,b):oA(d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=new gv;zg(d,uu,348,pA,a);c?nA(d,c,b):oA(d,b)},
flowEvent:function(a,b,c){var d=new gv;zg(d,lu,304,pA,a);c?nA(d,c,b):oA(d,b)},
idbQuotaExceeded:function(a,b,c){var d=new gv;zg(d,qu,351,pA,a);c?nA(d,c,b):oA(d,b)},
idbTransactionAborted:function(a,b,c){var d=new gv;zg(d,ru,353,pA,a);c?nA(d,c,b):oA(d,b)},
streamzIncremented:function(a,b,c){var d=new gv;zg(d,cv,126,pA,a);c?nA(d,c,b):oA(d,b)},
sliEventBatch:function(a,b,c){var d=new gv;zg(d,Zs,344,pA,a);c?nA(d,c,b):oA(d,b)},
playbackAssociated:Fqa,autoplayTriggered:function(a,b,c){var d=new gv;zg(d,at,209,pA,a);c?nA(d,c,b):oA(d,b)},
webPlayerApiCalled:function(a,b,c){var d=new gv;zg(d,dv,76,pA,a);c?nA(d,c,b):oA(d,b)},
embedsAdEvent:function(a,b,c){var d=new gv;zg(d,$s,327,pA,a);c?nA(d,c,b):oA(d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=new gv;zg(d,dt,251,pA,a);c?nA(d,c,b):oA(d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=new gv;zg(d,ct,256,pA,a);c?nA(d,c,b):oA(d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=new gv;zg(d,bt,257,pA,a);c?nA(d,c,b):oA(d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=new gv;zg(d,nu,332,pA,a);c?nA(d,c,b):oA(d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=new gv;zg(d,ou,330,pA,a);c?nA(d,c,b):oA(d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=new gv;zg(d,et,266,pA,a);c?nA(d,c,b):oA(d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=new gv;zg(d,pu,293,pA,a);c?nA(d,c,b):oA(d,b)},
adsClientStateChange:function(a,b,c){var d=new gv;zg(d,Ur,197,pA,a);c?nA(d,c,b):oA(d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=new gv;zg(d,Ft,2,pA,a);c?nA(d,c,b):oA(d,b)},
offlineStateSnapshot:function(a,b,c){var d=new gv;zg(d,bv,22,pA,a);c?nA(d,c,b):oA(d,b)}};$O.getInstance=function(){var a=g.Fa("ytglobal.storage_");a||(a=new $O,g.Da("ytglobal.storage_",a));return a};
$O.prototype.estimate=function(){var a,b,c;return g.A(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(VIa()):d.return()})};
g.Da("ytglobal.storageClass_",$O);Zw.prototype.uB=function(a){this.handleError(a)};
Zw.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.ov("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.ov("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":XIa(this,b);break;case "TRANSACTION_ENDED":this.B&&Math.random()<=g.pv("ytidb_transaction_ended_event_rate_limit_transaction",.1)&&this.j("idbTransactionEnded",
b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};g.k=aP.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterUrl)?d:null;if(a.interpreterSafeScript)d=a.interpreterSafeScript,g.Ed("From proto message. b/166824318"),d=wba(d.privateDoNotAccessOrElseSafeScriptWrappedValue||"");else{var f;d=null!=(f=a.interpreterScript)?f:null}a.interpreterSafeUrl&&(e=a.interpreterSafeUrl,g.Ed("From proto message. b/166824318"),e=g.Jd(e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());ZIa(this,d,e,a.program,b,c)}else g.sA(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.QC()};
g.k.getState=function(){return this.state};
g.k.isLoading=function(){return 2===this.state};
g.k.invoke=function(a){a=void 0===a?{}:a;return this.QC()?this.GW({bx:a}):null};
g.k.dispose=function(){this.ra()};
g.k.ra=function(){this.pN(null);this.Fc(8)};
g.k.QC=function(){return!!this.j};
g.k.FW=function(a){return this.j.snapshot(a)};
g.k.GW=function(a){return this.j.EV(a)};
g.k.pN=function(a){g.ab(this.j);this.j=a};
g.k.Fc=function(a){this.state=a};g.v(dP,aP);g.k=dP.prototype;g.k.ra=function(){this.Fc(8)};
g.k.pN=function(a){var b;null==(b=cP())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.EV.bind(a)},g.Da("yt.abuse.playerAttLoader",b),g.Da("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Da("yt.abuse.playerAttLoader",null),g.Da("yt.abuse.playerAttLoaderRun",null))};
g.k.QC=function(){return!!cP()};
g.k.FW=function(a){return cP().bgvmb(a)};
g.k.GW=function(a){return cP().bgvmc(a)};var eP,gP;g.bP=new dP;eP=0;gP=[];var pWa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var lJa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},mJa={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"},nJa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},kJa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},iJa={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"},jJa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.v(oP,g.E);oP.prototype.ra=function(){this.T=this.u=this.B=this.I=this.j=this.J=this.D=this.C=void 0};var z3={},tJa=(z3["api.invalidparam"]=2,z3.auth=150,z3["drm.auth"]=150,z3["heartbeat.net"]=150,z3["heartbeat.servererror"]=150,z3["heartbeat.stop"]=150,z3["html5.unsupportedads"]=5,z3["fmt.noneavailable"]=5,z3["fmt.decode"]=5,z3["fmt.unplayable"]=5,z3["html5.missingapi"]=5,z3["html5.unsupportedlive"]=5,z3["drm.unavailable"]=5,z3["mrm.blocked"]=151,z3);g.v(FP,g.E);g.k=FP.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.D[a],e=this.state.J[a],f=d;if(e)if(c&&sB(c,f8a))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.t(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.sA(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.k.isExternalMethodAvailable=function(a,b){return this.state.D[a]?!0:!!(this.state.J[a]&&b&&sB(b,f8a))};
g.k.getBandwidthEstimate=function(){return kH(this.app.V().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.OP(this.app);b&&(a={gpu:(0,g.sY)(),d:a},b.handleError(new cI("feedback",a)))};
g.k.getInternalApiInterface=function(){return g.Pc(this.state.j)};
g.k.logApiCall=function(a,b){var c=this.app.V();c.qn&&!this.state.T.has(a)&&(this.state.T.add(a),g.ax("webPlayerApiCalled",{callerUrl:c.loaderUrl,methodName:a,origin:b||void 0,playerStyle:c.playerStyle||void 0}))};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.k.seekToTimeWithAnimation=function(a,b){var c,d=null==(c=PP(this.app.vb()))?void 0:c.du();d&&cYa(this.app,d,a,b)};
g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.k.startSeekCsiAction=function(){this.app.Ki().C.j=(0,g.R)()};
g.k.seekToStreamTime=function(a,b,c){this.j&&xZ(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var h=g.OP(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Ld()&&(l=h.getStreamTimeOffset());zZ(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.OP(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.OP(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&zZ(this.app,Infinity,a,b,this.playerType)};
g.k.syncVolume=function(){var a=iXa(this.app);TP(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.getAvailableQualityLabels=function(){var a=g.OP(this.app,this.playerType);return a?g.Lg(a.xr(),function(b){return b.qualityLabel}):[]};
g.k.channelSubscribed=function(){this.Oa("SUBSCRIBE",this.app.Ad().Kl)};
g.k.channelUnsubscribed=function(){this.Oa("UNSUBSCRIBE",this.app.Ad().Kl)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.OP(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.OP(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.OP(this.app,this.playerType);a&&a.gg("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.V().un=a};
g.k.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=tw("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,lza)};
g.k.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return this.app.Ad().pO};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.addUtcCueRange=function(a,b,c,d,e){return RXa(this.app,a,b,c,d,e)};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.H0=function(a){a=void 0===a?this.playerType:a;var b=this.eS(a);if(a=g.OP(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.ya;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?se(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?se(a.progressBarEndPosition.utcTimeMillis):
null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.UZ;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=zBa(a);b.paidContentOverlayDurationMs=LJ(a);a.j&&KC(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b};
g.k.eS=function(a){a=void 0===a?this.playerType:a;var b=xJa(this,a);if(a=g.OP(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.isLive=a.isLivePlayback;b.isWindowedLive=a.jd;b.isManifestless=wJ(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.zm()&&(b.isEncrypted=!0);if(a.C)for(var c=g.t(a.C.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if(null==
(e=d.value.video)?0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!(null==(f=a.I)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}return b};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.OP(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.V(a,128)&&5===uJa(b.errorCode))};
g.k.supportsGaplessAudio=function(){return this.app.V().supportsGaplessAudio()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.sendAbandonmentPing=function(){var a=g.OP(this.app);a&&a.sendAbandonmentPing()};
g.k.downloadVideo=function(a,b){return this.app.downloadVideo(a,b)};
g.k.updateDownloadState=function(a,b){return this.app.updateDownloadState(a,b)};
g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.A(function(l){return 1==l.j?(f=bR(e.app.vb()))?g.y(l,f.LM([a],b,c,d),3):l.Ia(2):2!=l.j&&(h=l.u,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){this.app.pauseVideoDownload(a)};
g.k.resumeVideoDownload=function(a){var b=this;return g.A(function(c){return c.return(b.app.resumeVideoDownload(a))})};
g.k.refreshAllVideos=function(a){return this.app.refreshAllVideos(a)};
g.k.refreshAllStaleEntities=function(a){return this.app.refreshAllStaleEntities(a)};
g.k.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.k.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.setAutonavState=function(a,b){b=void 0===b?!1:b;if(this.N("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Ad(),null==b?0:xJ(b))){if(this.N("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.sO=b.autonavState);else if(void 0!==b.sO)a=b.sO,b.sO=void 0;else return}ZXa(this.app,a)};
g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,void 0===b?!1:b)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.OP(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a){var b=g.OP(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.OP(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.k.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.addInfoCardXml=function(a,b,c){this.app.V().ya.add(a,{QD:b,KC:c})};
g.k.updateLastActiveTime=function(){bz()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.V().Pl!==a&&(this.app.V().Pl=a,(a=g.OP(this.app,this.playerType))&&aZ(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.UQ(this.app.vb()).tW(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.UQ(this.app.vb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.UQ(this.app.vb());a&&a.YV()};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.bf()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.OP(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.tj();if(!c)return null;b=c.levels[b];return b?(a=g.gJ(b,a))?{column:a.column,columns:a.columns,height:a.Pu,row:a.row,rows:a.rows,url:a.url,width:a.yB}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.tj();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Ld();return b.pD(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.tj();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.pw(),minFrameIndex:b.YH()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.tj();return a?a.levels.length:0};
g.k.m0=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.OP(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().jn};
g.k.setAudioTrack=function(a,b){3===this.getPresentingPlayerType()&&ZP(this.app.vb()).Co("control_set_audio_track",a);var c=g.OP(this.app,this.playerType);if(c&&!c.isDisposed()&&!g.V(c.playerState,128)){var d;if(null==(d=c.videoData.C)?0:d.j)if(b){b=c.getCurrentTime();d=b-c.Ld();var e=gXa(c,d);c.Ja.setAudioTrack(a,d,e)&&fWa(c.fd,b)}else c.Ja.setAudioTrack(a,NaN,NaN);else if(KWa(c)){a:{b=c.mediaElement.audioTracks();for(d=0;d<b.length;++d)if(e=b[d],e.label===a.Rc.getName()){if(e.enabled){b=!1;break a}b=
e.enabled=!0;break a}b=void 0}b&&c.xa("hlsaudio",{id:a.id})}else{a:if(b=c.videoData,b.I&&!pF(b.I)||a==b.Dn||!b.Gd||0>=b.Gd.length)b=!1;else{d=g.t(b.Gd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof iI)){b=!1;break a}var f=a.Rc.getId();e.B&&(rza(e.B,f),e.u=null)}b.Dn=a;b=!0}b&&SY(c)&&(c.ma("internalaudioformatchange",c.videoData,!0),c.xa("hlsaudio",{id:a.id}))}}};
g.k.n0=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.OP(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.OP(this.app,this.playerType);return a&&a.getVideoData().B?HC(a.uf?mUa(a.ri,a.uf,a.ju()):lJ):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.OP(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.UQ(this.app.vb());return a?a.G0():null};
g.k.resetSubtitlesUserSettings=function(){g.UQ(this.app.vb()).Z5()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setGlobalCrop=function(a){this.app.fb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.cg();return this.app.getVisibilityState(this.jh(),this.isFullscreen()||g.yH(this.app.V()),a,this.isInline(),this.app.Nx(),this.app.Jx())};
g.k.isMutedByMutedAutoplay=function(){return this.app.zB};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.fb().setInternalSize(new g.ke(a,b))};
g.k.Ld=function(){var a=g.OP(this.app);return a?a.Ld():0};
g.k.cg=function(){return this.app.cg()};
g.k.jh=function(){var a=g.OP(this.app,this.playerType);return!!a&&a.jh()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.V().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;b&&b!==a.list&&(c=!0);void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.GQ(b).videoId||(a.index=b.index)):nZ(this.app,{list:a.list,index:a.index,playlist_length:d.length});IQ(this.app.getPlaylist(),a);this.Oa("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.OP(this.app,this.playerType||1);c&&g.pJ(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){GH(this.app.V(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.cR(this.app.vb());d&&d.gj()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ma("changeProductsInVideoVisibility",a)};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.fb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.OP(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.getPlaybackQualityLabel=function(a){if(a=g.OP(this.app,a)){var b,c;return(null==(c=null==(b=a.getVideoData().B)?void 0:b.video)?void 0:c.qualityLabel)||""}return""};
g.k.setPlaybackQualityRange=function(a,b,c){var d=g.OP(this.app,this.playerType);d&&g.HWa(d,g.EC(a,b||a,!0,"m"),!0,c)};
g.k.onAdUxClicked=function(a,b){this.ma("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.addBgVersionChangeCallback=function(a){this.app.addBgVersionChangeCallback(a)};
g.k.dispatchReduxAction=function(a){g.CJ.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.mf.includes(e)||(c.mf.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.qb(c.mf,e)&&(d=!0)});
d&&this.ma("updatemarkervisibility")};
g.k.highlightSettingsMenuItem=function(a){this.ma("highlightSettingsMenu",a)};
g.k.ma=function(a){var b=g.ya.apply(1,arguments);this.app.V().D&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.yp.ma.apply(this.app.yp,[a].concat(g.u(b)));this.app.jq.ma.apply(this.app.jq,[a].concat(g.u(b)))};
g.k.Oa=function(a){var b=g.ya.apply(1,arguments);this.app.yp.ma.apply(this.app.yp,[a].concat(g.u(b)));this.app.jq.ma.apply(this.app.jq,[a].concat(g.u(b)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.N=function(a){return this.app.V().N(a)};
g.k.ra=function(){if(this.element){var a=this.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.element=null}g.E.prototype.ra.call(this)};var zJa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.v(SP,FP);g.k=SP.prototype;g.k.getApiInterface=function(){return Array.from(this.state.C)};
g.k.l_=function(a,b){if("string"===typeof b){var c=function(){var d=g.ya.apply(0,arguments);g.Fa(b).apply(window,d)};
this.state.I[b]=c}else c=b;this.app.yp.subscribe(a,c)};
g.k.T5=function(a,b){if("string"===typeof b){var c=this.state.I[b];g.Vc(this.state.I,b);b=c}this.app.yp.unsubscribe(a,b)};
g.k.getPlayerState=function(){return HXa(this.app)};
g.k.seekTo=function(a,b,c){var d=g.LH(this.app.V()),e=this.app.getVideoData().Ll;if(!g.zw(d)||e)this.j&&xZ(this.app,!0,this.playerType),zZ(this.app,a,b,c,this.playerType)};
g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.k.getMediaReferenceTime=function(){var a=this.app.Ff(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.zi.volume};
g.k.setVolume=function(a){CJa(this,a)};
g.k.isMuted=function(){return this.app.zi.muted};
g.k.mute=function(){DJa(this)};
g.k.unMute=function(){EJa(this)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().D&&(a.pfp={enableIma:this.app.V().Z&&this.app.Ad().allowImaMonetization,autoplay:$J(this.app.Ad()),mutedAutoplay:this.app.Ad().mutedAutoplay});return a};
g.k.playVideo=function(){this.j&&xZ(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.bf()){var b=ZQ(this.app.vb());if(!f4a(b)){b.Co("control_play");return}if(g4a(b))return}3===a?ZP(this.app.vb()).Co("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.bf()){var b=ZQ(this.app.vb());if(!f4a(b)){b.Co("control_pause");return}}3===a?ZP(this.app.vb()).Co("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.Y.zc&&a.Ua.ma("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.OP(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.V();return a.Xe?["https://web.archive.org/web/20230104105643/https://admin.youtube.com","https://web.archive.org/web/20230104105643/https://viacon.corp.google.com","https://web.archive.org/web/20230104105643/https://yurt.corp.google.com"].includes(a.u?a.ancestorOrigins[0]:window.location.origin)||a.vn?$8a:Z8a:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.OP(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.OP(this.app,this.playerType);return a?(a=g.Lg(a.xr(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.k.getVideoBytesTotal=function(){return 1};
g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.k.getVideoStartBytes=function(){return 0};
g.k.getSize=function(){var a=this.app.fb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.fb().resize()};
g.k.loadModule=function(a){"captions"===a&&(a=g.UQ(this.app.vb()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.UQ(this.app.vb()))&&a.loaded&&a.X6()};
g.k.loadVideoById=function(a,b,c){a&&(a=RP(a,b,c),a=this.app.loadVideoByPlayerVars(a,this.playerType),this.j&&xZ(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){a=RP(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=yJa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&xZ(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=yJa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.V();if(a.oa)return"";var b=this.app.Ad(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.getDebugText=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.V();if(a.oa)return"";var b=this.app.Ad();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Ad().videoId,this.app.fb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return QXa(this.app,a,b,c)};
g.k.removeCueRange=function(a){return SXa(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&xZ(this.app,!0,this.playerType)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(){this.app.nextVideo();this.j&&xZ(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.j&&xZ(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&xZ(this.app,!0,this.playerType)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.E0=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.GQ(a,c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.vb();return"captions"===a?(a=g.UQ(d))&&a.hh(b,c):null};
g.k.getOption=function(a,b,c){var d=g.OP(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.V().u?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.vb();if("captions"===a){var c;return(null==(c=g.UQ(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.UQ(b)&&a.push("captions"),a)};
g.k.showVideoInfo=function(){tXa(this.app,!0)};
g.k.hideVideoInfo=function(){tXa(this.app,!1)};
g.k.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.k.getSphericalProperties=function(){var a=g.aQ(this.app.vb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.aQ(this.app.vb());b&&b.setSphericalProperties(a,!0)}};
g.k.destroy=function(){this.app.dispose()};
g.k.logImaAdEvent=function(a,b){this.app.V().Z&&this.app.Ad().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Kea(this.app.V().loaderUrl),eventType:a,youtubeHost:g.Xh(this.app.V().Ba)||""},g.ax("embedsAdEvent",a))};g.v(UP,SP);g.k=UP.prototype;g.k.addCueRange=function(a,b,c,d,e){return QXa(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return HXa(this.app,a)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.seekBy=function(a,b,c){IJa(this)&&zZ(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){IJa(this)&&zZ(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.getCurrentTime=function(a,b){if(2===this.app.getAppState()&&5===this.getPlayerState()){var c;return(null==(c=this.app.getVideoData())?void 0:c.startSeconds)||0}return a?this.app.getCurrentTime(a,b):SP.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=ZP(this.app.vb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):SP.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return ZP(this.app.vb()).getProgressState();var b=this.app.getVideoData(),c=g.OP(this.app,a)||g.OP(this.app),d=c.getPlayerType();a:{var e=this.app.getVideoData();var f;if(null==(f=e.progressBarStartPosition)?0:f.utcTimeMillis)if(e=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(e)){e=JJa(this,e,a);break a}e=0}var h;a:{f=this.app.getVideoData();if(null==(h=f.progressBarEndPosition)?0:h.utcTimeMillis)if(h=Number(f.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(h)){h=JJa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.Ff(d),m=this.app.isAtLiveHead(d),n=this.app.zx(),p=this.app.Kd(d);var q=this.app;(d=g.OP(q,d))?(d=lZ(q,d),d=uZ(q,mV(d),d)):d=0;c=c.Ld();return{airingStart:e,airingEnd:h,allowSeeking:this.app.kh(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:f,displayedStart:-1,duration:a,ingestionTime:l,isAtLiveHead:m,loaded:n,seekableStart:p,seekableEnd:d,offset:c}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){return null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.QP(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,h)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.QP(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.k.showControls=function(){var a=g.QP(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.QP(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.fb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.setFauxFullscreen=function(a){g.aA();this.app.Fl(a?2:0)};
g.k.toggleFullscreen=function(){function a(c){g.sA(c)}
var b=this.app.V();if(b.externalFullscreen){if(!g.VH(b))return this.isFullscreen()?cA(window.document.documentElement):$z(window.document.documentElement).catch(a)}else if(g.aA()||b.I)return this.isFullscreen()?cA(bA()):"3"!==b.controlsType&&g.aA()?$z(this.app.fb().element).catch(a):(b=this.app.ue().ub())?$z(b).catch(a):Promise.reject(Error("Media element missing"));this.Oa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=ZQ(this.app.vb());a&&a.created&&a.destroy();(a=g.OP(this.app))&&a.stopVideo();(a=this.app.vb().Ue.get("endscreen"))&&a.D1()&&g.YP(this.app.Ua,!0)};
g.k.stopVideo=function(){var a=this.app.V();!a.N("disable_new_pause_state3")&&QH(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():SP.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.OP(this.app,this.playerType).jc(!0)};
g.k.toggleSubtitles=function(){var a=g.UQ(this.app.vb());a&&a.L6()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.aQ(this.app.vb());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.aQ(this.app.vb());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){CJa(this,a,b)};
g.k.mute=function(a){DJa(this,a)};
g.k.unMute=function(a){EJa(this,a)};
g.k.mutedAutoplay=function(){this.N("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.cR(this.app.vb());b&&!b.loaded&&b.load()}SP.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.cR(this.app.vb());b&&b.loaded&&b.unload()}SP.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.vb();switch(a){case "ad":return(a=ZQ(d))&&a.hh&&a.hh(b,c);case "kids":return(a=$Q(d))&&a.hh(b,c);case "remote":return(a=ZP(d))&&a.hh(b,c);case "unplugged":return(a=g.aR(d))&&a.hh(b,c);case "annotations_module":return(a=g.cR(d))&&a.hh(b,c);case "creatorendscreen":return(a=dR(d))&&a.hh(b,c)}return SP.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.vb();switch(a){case "ad":var c,d;return(null==(c=ZQ(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=ZP(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.cR(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=dR(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.aR(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var r,w;return(null==(r=$Q(b))?void 0:null==(w=r.getOptions)?void 0:w.call(r))||null}if(!a){a=SP.prototype.getOptions.call(this);if(!a)return a;ZQ(b)&&a.push("ad");ZP(b)&&a.push("remote");g.cR(b)&&a.push("annotations_module");dR(b)&&a.push("creatorendscreen");g.aR(b)&&a.push("unplugged");$Q(b)&&a.push("kids");return a}return SP.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.fb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.QP(this);a&&a.Mo()};
g.k.setCenterCrop=function(a){this.app.fb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var GJa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable player_response playsinline plid post_live_playback postid ps public 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(" "),
HJa="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(" ");g.v(g.WP,UP);g.k=g.WP.prototype;g.k.Wm=function(a,b,c,d,e,f,h){return this.app.Wm(a,b,c,d,e,f,h)};
g.k.AA=function(){return this.app.AA()};
g.k.wr=aa(6);g.k.vb=function(){return this.app.vb()};
g.k.Gf=function(){var a=this.vb().Ue.get("endscreen");return!!a&&a.Gf()};
g.k.getRootNode=function(){return this.fb().element};
g.k.V=function(){return this.app.V()};
g.k.Ax=aa(8);g.k.mm=function(a){return this.app.mm(a)};
g.k.nm=function(){return this.settingsMenu};
g.k.RA=function(){return this.aI};
g.k.Eb=function(a){return this.app.Eb(a)};
g.k.fb=function(){return this.app.fb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.OP(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Fe))b=void 0;else{var d=a.getCurrentTime();b=b.Yq?void 0:null==(c=FV(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c};
g.k.tj=function(a){return this.app.tj(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.isHdr=function(){var a=g.OP(this.app);return a?a.isHdr():!1};
g.k.nB=function(){return this.app.nB()};
g.k.Jy=function(a){this.app.Jy(a)};
g.k.Jg=function(a,b,c,d,e){this.app.zg(a,b,c,d,e)};
g.k.uq=function(a,b){this.app.uq(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){ZP(this.app.vb()).Co("control_play");return}if(2===this.getPresentingPlayerType()){var b=ZQ(this.app.vb());if(b&&g4a(b))return}}catch(c){g.rA(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.OP(this.app,a).stopVideo()};
g.k.Om=function(a){g.OP(this.app,a).Om()};
g.k.addEventListener=function(a,b){this.app.jq.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.jq.unsubscribe(a,b)};
g.k.ma=function(a){UP.prototype.ma.call.apply(UP.prototype.ma,[this,a].concat(g.u(g.ya.apply(1,arguments))))};
g.k.Cl=function(a){this.app.Cl(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.xr=function(){var a={},b=g.OP(this.app).xr();b=g.t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.BA=function(){return g.OP(this.app).BA()};
g.k.MA=aa(12);g.k.wG=function(a){this.app.wG(a);a&&ZXa(this.app,a)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.NA=aa(14);g.k.Im=aa(18);g.k.Ux=function(a,b){this.vb().Ux(a,b)};
g.k.gj=function(){var a=g.cR(this.vb());return!!a&&a.gj()};
g.k.Kn=function(){var a=g.cR(this.vb());return!!a&&a.Kn()};
g.k.setCardsVisible=function(a,b,c){var d=g.cR(this.vb());d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ma("changeProductsInVideoVisibility",a)};
g.k.Fy=aa(19);g.k.Lv=function(){var a=g.OP(this.app);a&&a.Lv()};
g.k.tC=function(a){this.Oa("onVideoAreaChange");this.Oa(a?"onShowControls":"onHideControls")};
g.k.dk=function(a,b){var c=g.QP(this);if(c)return c.dk(a,b);a=this.app.fb().uj();return new g.xl(0,0,a.width,a.height)};
g.k.Lr=function(){return this.app.Lr()};
g.k.kB=function(){var a=this.vb().Ue.get("heartbeat");return!!a&&a.kB()};
g.k.kh=function(){var a=this.V();if(a.Pa||a.disableSeek)return!1;var b=g.OP(this.app);if(!b)return!1;var c=b.getVideoData();return!c.isValid()||g.QJ(c)||2===this.getPresentingPlayerType()&&!this.app.bf()||b.Zn()&&3!==this.getPresentingPlayerType()||g.zw(g.LH(a))&&!c.Ll?!1:!0};
g.k.hB=function(){var a;return(null==(a=g.OP(this.app))?void 0:a.hB)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.Ps=function(){var a=g.OP(this.app);a&&a.Ps()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.Ge=function(a,b,c){this.app.Rz(a,b,c)};
g.k.Oh=function(a,b){this.app.sG(a,b)};
g.k.Qf=function(a,b){var c=this.app,d=g.OP(c,b);d&&(a=d.Hi.Qf(a),b&&c.getPresentingPlayerType()!==b||jZ(c,"cuerangesremoved",a))};
g.k.gO=function(a,b){var c=this.app;b&&c.getPresentingPlayerType()!==b||jZ(c,"cuerangemarkersupdated",a)};
g.k.gg=function(a,b){(b=g.OP(this.app,b))&&b.gg(a)};
g.k.Zn=function(){var a=g.OP(this.app);return a?a.Zn():!0};
g.k.wu=function(){var a=this.getVideoData();return!!a&&(a.wu()||!!a.hlsFormats||!!a.tb)};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.de(a,0,100);TP(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){TP(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){TP(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.ue=function(){return this.app.ue()};
g.k.Ki=function(){return this.app.Ki()};
g.k.sj=function(a){return this.app.sj(a)};
g.k.getBandwidthEstimate=function(){return kH(this.V().schedule)};
g.k.qb=function(a,b,c,d){this.V().gb&&this.app.Tr.qb(a,b,c,void 0===d?!1:d)};
g.k.Og=function(a,b,c){this.V().gb&&this.app.Tr.Og(a,b,void 0===c?!1:c)};
g.k.Ph=function(a,b){this.V().gb&&this.app.Tr.Ph(a,b)};
g.k.rb=function(a,b){this.V().gb&&(this.app.Tr.click(a,b),this.ma("veClickLogged",a))};
g.k.Sa=function(a,b,c){if(this.V().gb){var d=this.app.Tr;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.DA(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.$L(e,[f]):g.aM(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.ZL(e,f,void 0,c),d.B.add(a))}};
g.k.gk=function(a){return this.V().gb?this.app.Tr.gk(a):!1};
g.k.Qc=function(){return g.OP(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.kq=function(){this.app.kq()};
g.k.hx=function(a,b){return this.app.hx(a,b)};
g.k.Jo=function(a){this.app.Jo(a)};
g.k.tF=function(){this.app.tF()};
g.k.Ow=function(a,b,c,d,e,f,h){return this.app.Ow(a,b,c,d,e,f,h)};
g.k.fB=function(a,b,c,d,e,f,h){return this.app.fB(a,b,c,d,e,f,h)};
g.k.Fs=function(a){this.app.Fs(a)};
g.k.Qt=function(a,b){b=void 0===b?Infinity:b;this.app.Qt(void 0===a?-1:a,b)};
g.k.YG=function(a){var b;null==(b=g.UQ(this.vb()))||b.YG(a)};
g.k.Wy=function(a,b,c){this.app.Wy(a,b,c)};
g.k.Cr=function(){return this.app.Cr()};
g.k.hE=function(a,b,c){this.app.hE(a,b,void 0===c?0:c)};
g.k.Ox=function(){return this.app.Ox()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.bf=function(){return this.app.bf()};
g.k.hs=function(a,b,c){return this.app.hs(a,b,c)};
g.k.xa=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.OP(this.app,d))||e.xa(a,b,c)};
g.k.HG=function(){return this.app.HG()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.JL=function(a,b){this.ma("aduxmouseover",a,b)};
g.k.IL=function(a,b){this.ma("aduxmouseout",a,b)};
g.k.fM=function(a,b){this.ma("muteadaccepted",a,b)};
g.k.iF=function(){return this.app.fb().iF()};
g.k.Ky=function(a){this.app.fb().Ky(a)};
g.k.Ko=function(){var a=g.OP(this.app);return a?a.Ko():!1};
g.k.mN=function(a){this.app.mN(a)};g.v(g.eQ,g.TM);g.k=g.eQ.prototype;g.k.show=function(){var a=this.Ni();g.TM.prototype.show.call(this);this.Ba&&(this.J.S(window,"blur",this.yb),this.J.S(document,"click",this.HY));a||this.ma("show",!0)};
g.k.hide=function(){var a=this.Ni();g.TM.prototype.hide.call(this);MJa(this);a&&this.ma("show",!1)};
g.k.Pc=function(a,b){this.u=a;this.Z.show();b?(this.T||(this.T=this.J.S(this.G,"appresize",this.CQ)),this.CQ()):this.T&&(this.J.Dc(this.T),this.T=void 0)};
g.k.FR=function(){this.u&&this.element&&(this.u.getAttribute("aria-haspopup"),this.u.setAttribute("aria-expanded","true"),this.focus())};
g.k.CQ=function(){var a=g.QP(this.G);this.u&&a.fv(this.element,this.u)};
g.k.yb=function(){var a=this.Ni();MJa(this);this.Z.hide();a&&this.ma("show",!1)};
g.k.HY=function(a){var b=Uy(a);b&&(g.We(this.element,b)||this.u&&g.We(this.u,b)||!g.VN(a))||this.yb()};
g.k.Ni=function(){return this.sb&&4!==this.Z.state};g.v(gQ,g.eQ);gQ.prototype.Pc=function(){g.eQ.prototype.Pc.call(this);this.dialog.focus()};g.v(g.hQ,g.TM);g.hQ.prototype.ph=function(a){this.updateValue("label",a)};
g.hQ.prototype.updateValue=function(a,b){g.TM.prototype.updateValue.call(this,a,b);this.ma("size-change")};g.v(kQ,g.hQ);kQ.prototype.hc=function(a){this.u&&this.G.Sa(this.element,this.j&&a)};
kQ.prototype.C=function(){var a,b,c=null==(a=this.G.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.G.getVideoData())?void 0:d.accountLinkingConfig;jQ(this,aN());var e;this.ph(lQ(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.B=new gQ(this.G,lQ(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),lQ(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),lQ(null==a?void 0:null==
(l=a.menuData)?void 0:l.confirmButtonText));g.H(this,this.B);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.u=!!d)&&this.G.Ph(this.element,d);this.ob.Jc(this);this.j=!0}else!c&&this.j&&(this.ob.fg(this),this.j=!1)};
kQ.prototype.onClick=function(){this.u&&this.G.rb(this.element);this.ob.yb();this.B&&this.B.Pc()};g.v(mQ,g.E);mQ.prototype.N=function(a){return this.api.N(a)};g.v(nQ,mQ);nQ.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=null==(b=a.getPlayerResponse())?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=null==(d=a.accountLinkingConfig)?void 0:d.alsParam)a.AO=b};
nQ.prototype.setAccountLinkState=function(a){this.api.getVideoData().AO=a;this.api.Lv()};
nQ.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.ma("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.v(NJa,mQ);g.v(oQ,g.hQ);oQ.prototype.onClick=function(){this.setValue(!this.checked);this.ma("select",this.checked)};
oQ.prototype.getValue=function(){return this.checked};
oQ.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.v(qQ,oQ);qQ.prototype.La=function(a){a?this.j||(this.ob.Jc(this),this.j=!0):this.j&&(this.ob.fg(this),this.j=!1);this.j&&this.setValue(OJa())};
qQ.prototype.B=function(){g.jo(this.element,"ytp-menuitem-highlight-transition-enabled")};
qQ.prototype.C=function(a){var b=OJa();a!==b&&(b=g.Fw.getInstance(),Hw(190,a),Hw(192,!0),b.save(),this.G.Oa("cinematicSettingsToggleChange",a))};
qQ.prototype.ra=function(){this.j&&this.ob.fg(this);oQ.prototype.ra.call(this)};g.v(rQ,mQ);rQ.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.La(a);this.api.ma("onCinematicSettingsVisibilityChange",a)};g.v(sQ,mQ);sQ.prototype.u=function(a){return void 0!==a.embargo};
sQ.prototype.ra=function(){mQ.prototype.ra.call(this);this.j={}};g.v(tQ,mQ);tQ.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.V(),c=b.widgetReferrer,d=b.Ec,e=this.j,f="",h=b.webPlayerContextConfig;h&&(f=h.embedsIframeOriginParam||"");0<c.length&&(a.embeds_widget_referrer=c);0<d.length&&(a.embeds_euri=d);b.u&&0<f.length&&(a.embeds_origin=f);0<e.length&&(b=e.join(","),b=g.dw()?b:g.Ef(b,4),a.source_ve_path=b);this.j.length=0};g.v(RJa,mQ);g.v(uQ,g.W);uQ.prototype.onClick=function(){this.Ua.rb(this.element);this.Ua.Oa("onFullerscreenEduClicked")};
uQ.prototype.La=function(){this.Ua.isFullscreen()?this.u?this.j.hide():this.j.show():this.hide();this.Ua.Sa(this.element,this.Ua.isFullscreen()&&!this.u)};g.v(vQ,mQ);vQ.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.lo(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.cb(b,g.JR(b.B.Bc(),b.element)),b.C=!0))};
vQ.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.u=a,b.La())};g.v(SJa,g.W);g.v(WJa,mQ);g.v(YJa,mQ);g.v(wQ,mQ);wQ.prototype.getAvailableQualityData=function(){var a=this.api.getVideoData();if(!a)return[];var b=[],c,d,e=null==(c=a.getPlayerResponse())?void 0:null==(d=c.playabilityStatus)?void 0:d.paygatedQualitiesMetadata;c=new Map(((null==e?void 0:e.qualityDetails)||[]).map(function(h){return[h.key,h.value]}));
if(d=null==e?void 0:e.restrictedAdaptiveFormats){e=[];d=g.t(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=tF(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=FJ(a);OC(e);d=[];e=g.t(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===MC(a,f,this.api.V().B)&&d.push(f);b=b.concat(ZJa(d,!1,c))}a=this.api.BA();b=b.concat(ZJa(a,!0,c));c=[];if(this.api.N("web_player_enable_premium_hbr_playback_cap"))return b=aKa(b),$Ja(b),b;a={};b=g.t(b);for(e=
b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(c.push(e),a[d]=!0);return c};g.v(yQ,mQ);yQ.prototype.ra=function(){this.u&&(window.clearInterval(this.u),this.u=void 0);mQ.prototype.ra.call(this)};
yQ.prototype.YJ=function(a){var b=this;return g.A(function(c){return b.j?c.return(b.j.ready().then(function(){b.Cb.Yi("pot_if");return dKa(b,a)})):c.return(Promise.reject("web po not ready"))})};g.v(eKa,mQ);g.v(fKa,g.E);AQ.prototype.ML=function(){this.u=(0,g.R)()};
AQ.prototype.reset=function(){this.j=this.u=NaN};
AQ.prototype.RL=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.J&&(c.cttAuthInfo={token:a.J,videoId:a.videoId});jC("seek",c);g.kC("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||hC("pl_ss",this.u,"seek");hC(b,(0,g.R)(),"seek")}this.reset()}};CQ.prototype.reset=function(){fC(this.timerName)};
CQ.prototype.tick=function(a,b){hC(a,b,this.timerName)};
CQ.prototype.Yi=function(a){var b=this.timerName;wC(a,b)?a=!1:(hC(a,void 0,b),a=!0);return a};
CQ.prototype.info=function(a,b){g.kC(a,b,this.timerName)};g.v(EQ,g.FB);g.k=EQ.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.ao=function(a){return this.loop||!!a||0<=this.index-1};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.ma("shuffle")};
g.k.Xf=function(a){a=a||"hqdefault.jpg";var b=this.ea[a];if(b||this.u.oa||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return PH(this.u,this.C[0],a)};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.j=a;this.loaded&&g.Kv(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Wn=function(){return this.u.getVideoUrl(g.GQ(this).videoId,this.getPlaylistId())};
g.k.ra=function(){this.j=null;g.bb(this.items);g.FB.prototype.ra.call(this)};var JQ=new Map;g.v(g.LQ,g.FB);g.k=g.LQ.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.hh=function(){};
g.k.Ck=function(){return!0};
g.k.ra=function(){this.loaded&&this.unload();g.FB.prototype.ra.call(this)};
g.k.jc=function(){return{}};
g.k.getOptions=function(){return[]};g.v(g.OQ,g.E);g.k=g.OQ.prototype;g.k.gs=aa(22);g.k.Tx=function(){};
g.k.Aq=function(){};
g.k.pu=function(){return""};
g.k.EM=aa(23);g.k.ra=function(){this.Aq();g.E.prototype.ra.call(this)};g.v(g.PQ,g.OQ);g.PQ.prototype.gs=aa(21);g.PQ.prototype.Tx=function(a){if(this.audioTrack)for(var b=g.t(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.NQ(this.j,c.value);a()};
g.PQ.prototype.pu=function(a,b){var c=a.Se(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.dw()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.oI(a));this.Y.N("web_player_topify_subtitles_for_shorts")&&this.B&&(d.xosf="1");Object.assign(d,this.Y.deviceParams);return Cv(c,d)};
g.PQ.prototype.Aq=function(){this.u&&this.u.abort()};g.QQ.prototype.override=function(a){a=g.t(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;Object.defineProperty(this,b,{value:c})}};g.c9a=new Map;g.v(g.SQ,g.OQ);g.SQ.prototype.gs=aa(20);
g.SQ.prototype.Tx=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.FS&&(d.asrs=1);c=Cv(c,d);this.Aq();this.u=g.Pv(c,{format:"RAW",onSuccess:function(e){b.u=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),r=l.getAttribute("id"),w="true"===l.getAttribute("lang_default"),x="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.NQ(b.j,new g.lI({languageCode:m,languageName:n,name:p,kind:q,id:r,is_servable:!0,is_translateable:x,vss_id:l,is_default:w}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.SQ.prototype.pu=function(a,b){var c=this.B;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};a.translationLanguage&&(b.tlang=g.oI(a));Object.assign(b,this.Y.deviceParams);return c=Cv(c,b)};
g.SQ.prototype.Aq=function(){this.u&&this.u.abort()};vKa.prototype.reload=function(){var a=this,b;return g.A(function(c){if(1==c.j)return b=a,g.y(c,WebAssembly.instantiate(a.module,a.j),2);b.instance=c.u;a.exports=a.instance.exports;g.pa(c)})};g.v(TQ,g.E);g.k=TQ.prototype;g.k.createSubtitlesModuleIfNeeded=function(){zKa(this)&&WQ(this,"captions");return!!g.UQ(this)};
g.k.aE=function(){XQ(this)&&this.vJ();DKa(this)&&(WQ(this,"captions",!0),WQ(this,"endscreen"),this.wJ(),WQ(this,"creatorendscreen",!0))};
g.k.xC=function(){return this.G.getVideoData().xC()};
g.k.rN=function(){return this.G.getVideoData().rN()};
g.k.hR=function(){var a=this.Ue.get("heartbeat");WQ(this,"heartbeat",!1,!0,this.hR);!a&&this.Ue.has("heartbeat")&&this.G.ma("offlineslatestatechange")};
g.k.isShortsModeEnabled=function(){var a=this.G,b;return!(null==(b=g.QP(a))||!b.hk())&&a.V().N("embeds_enable_shorts_branded_ui")};
g.k.wJ=function(){WQ(this,"annotations_module",!0,void 0,this.wJ);var a=this.Ue.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.k.vJ=function(){if(!this.Ue.get("ad"))try{VQ(this)?WQ(this,"ad",!1,!0,this.vJ):this.G.gg("ad")}catch(a){this.G.gg("ad"),g.rA(a)}};
g.k.Ki=function(){return this.j};
g.k.Ep=function(){var a={},b=g.UQ(this);b&&Object.assign(a,b.Ep());return a};
g.k.Ux=function(a,b){Object.assign(this.j,a||null);Object.assign(this.bE,b||null)};
g.k.ra=function(){g.E.prototype.ra.call(this);YQ(this,1,!0);for(var a=g.t(Object.entries(GKa)),b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;this.C.has(c)&&JQ.delete(b)}this.C.clear()};
var A3={},GKa=(A3.ad="ad.js",A3.annotations_module="annotations_module.js",A3.creatorendscreen="annotations_module.js",A3.embed="embed.js",A3.endscreen="endscreen.js",A3.heartbeat="heartbeat.js",A3.inline_preview="inline_preview.js",A3.kids="kids.js",A3.remote="remote.js",A3.miniplayer="miniplayer.js",A3.music="music.js",A3.offline="offline.js",A3.captions="captions.js",A3.unplugged="unplugged.js",A3.ux="ux.js",A3.webgl="webgl.js",A3.ypc="ypc.js",A3.ypc_clickwrap="ypc_clickwrap.js",A3.yto="yto.js",
A3);g.v(eR,g.eb);eR.prototype.preventDefault=function(){g.eb.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
eR.prototype.stopPropagation=function(){g.eb.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.v(g.fR,DL);g.k=g.fR.prototype;g.k.At=function(){return!0};
g.k.isView=function(){return!1};
g.k.UM=function(){return!1};
g.k.ub=function(){return this.j};
g.k.qg=function(){return this.j.src};
g.k.uD=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.tG=function(){this.j.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.j.playbackRate?this.j.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.k.nu=function(){return this.j.loop};
g.k.setLoop=function(a){this.j.loop=a};
g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
g.k.fp=function(){return this.j.paused};
g.k.Rg=function(){return this.j.seeking};
g.k.Eh=function(){return this.j.ended};
g.k.DE=function(){return this.j.muted};
g.k.Gy=function(a){BF();this.j.muted=a};
g.k.ou=function(){return this.j.played||CF([],[])};
g.k.Ch=function(){try{var a=this.j.buffered}catch(b){}return a||CF([],[])};
g.k.SA=function(){return this.j.seekable||CF([],[])};
g.k.sD=function(){var a=this.j;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.j.currentTime};
g.k.setCurrentTime=function(a){this.j.currentTime=a};
g.k.getDuration=function(){return this.j.duration};
g.k.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a};
g.k.pause=function(){this.j.pause()};
g.k.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.Tj=function(){return this.j.readyState};
g.k.EE=function(){return this.j.networkState};
g.k.Df=function(){return this.j.error?this.j.error.code:null};
g.k.Ef=function(){return this.j.error?this.j.error.message:""};
g.k.tD=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.k.jh=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.Ps=function(){return!!this.j.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.j,b=window.document;window.document.pictureInPictureEnabled?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():AF()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Ir=function(){var a=this.j;return new g.he(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.Ll(this.j)};
g.k.setSize=function(a){g.Kl(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){BF();this.j.volume=a};
g.k.LJ=function(a){this.I[a]||(this.j.addEventListener(a,this.listener),this.I[a]=this.listener)};
g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.j.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.j.hasAttribute(a)};
g.k.Sz=aa(25);g.k.EC=aa(27);g.k.FC=aa(29);g.k.Vw=aa(31);g.k.rA=function(){return cA(this.j)};
g.k.Lq=function(a){g.ho(this.j,a)};
g.k.getStyle=function(a){return g.Cl(this.j,a)};
g.k.YK=function(){return g.We(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.ra=function(){for(var a=g.t(Object.keys(this.I)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.I[b]);DL.prototype.ra.call(this)};g.v(hR,g.FB);g.k=hR.prototype;g.k.IY=function(a){a=Wy(a);if(!ie(a,this.C)){var b=2;this.I&&(b|=8);this.C=a;gR(this,b,!0)}};
g.k.o2=function(){this.I&&gR(this,8,!0);gR(this,2,!1)};
g.k.Qu=function(a){var b=Wy(a);ie(b,this.C)||(this.C=b,(a=g.Ty(a))&&this.OD(a)&&(gR(this,4,!0),this.j.Dc(this.B),this.B=this.j.S(this.target,"mouseover",this.Zx),this.J=this.j.S(this.target,"mouseout",this.Zx)))};
g.k.Zx=function(a){a=Vy(a);a&&this.OD(a)||(this.C=new g.he(NaN,NaN),IKa(this))};
g.k.K1=function(){gR(this,1,!0)};
g.k.u0=function(a){a=g.Ty(a);a instanceof Element&&!(0<a.tabIndex)||gR(this,1,!0)};
g.k.MP=function(){this.I=!0;this.j.Dc(this.D);this.D=this.j.S(document,"mouseup",this.JY)};
g.k.JY=function(){this.I=!1;gR(this,8,!1);this.j.Dc(this.D);this.D=this.j.S(this.target,"mousedown",this.MP)};
g.k.NP=function(a){if(a=(a=a.changedTouches)&&a[0])this.ya=a.identifier,this.j.Dc(this.T),this.T=this.j.S(this.target,"touchend",this.KY,void 0,!0),gR(this,1024,!0)};
g.k.KY=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.ya){var d=c;break}}d&&(this.j.Dc(this.T),this.T=this.j.S(this.target,"touchstart",this.NP,void 0,!0),gR(this,1024,!1))};
g.k.Mo=function(){gR(this,2,!0)};
g.k.resize=function(){g.yF&&IKa(this)};
g.k.toString=function(){return g.FB.prototype.toString.call(this)};g.v(g.jR,g.W);
g.jR.prototype.La=function(){var a=this.api.getVideoData(),b=this.api.V(),c,d=!(null==(c=g.QP(this.api))||!c.hk());g.lo(this.element,"ytp-shorts-mode",d);var e,f,h;c=null==(e=a.Cf)?void 0:null==(f=e.embedPreview)?void 0:null==(h=f.thumbnailPreviewRenderer)?void 0:h.controlBgHtml;e=b.N("embeds_web_enable_video_data_refactoring_embedded_player_response")?!!c:a.D;a=b.N("embeds_web_enable_video_data_refactoring_embedded_player_response")?null!=c?c:"":a.Lc;d&&b.N("embeds_enable_shorts_branded_ui")?d=[{F:"svg",
X:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},W:[{F:"path",X:{"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"}},
{F:"path",X:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:e&&(a||b.Z)?d=b.Z?[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},W:[{F:"path",K:"ytp-dni-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{F:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{F:"path",K:"ytp-dni-large-play-button-bg",X:{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"}},{F:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.J?(g.lo(this.element,"ytp-touch-device",b.isMobile),d=[b.J?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},W:[{F:"path",K:"ytp-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{F:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{F:"path",K:"ytp-large-play-button-bg",
X:{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"}},{F:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):d=[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{F:"path",K:"ytp-large-play-button-bg",
X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}},{F:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",d);e&&(a||b.Z)&&(b=a?a:"#1f1f1f",this.Ea("ytp-dni-large-play-button-bg").setAttribute("fill",
b))};
g.jR.prototype.show=function(){g.W.prototype.show.call(this);this.api.V().N("embeds_web_enable_large_play_button_ve_logging")&&this.api.Sa(this.element,!0)};
g.jR.prototype.j=function(){this.api.tF();this.api.playVideo();this.api.getRootNode().focus()};
g.jR.prototype.u=function(a){g.Xy(a)};g.v(g.kR,g.W);g.k=g.kR.prototype;g.k.show=function(){var a=this;this.sb||(this.B.S(this.api,"videodatachange",function(){g.$n(a.j)}),this.B.S(this.api,"videoplayerreset",function(){g.$n(a.j)}));
g.W.prototype.show.call(this)};
g.k.hide=function(){this.B&&g.gA(this.B);g.W.prototype.hide.call(this)};
g.k.Bb=function(){g.$n(this.j)};
g.k.onStateChange=function(a){var b=this.api.V();b.N("disable_new_pause_state3")&&QH(b)&&(a=a.state.isCued()&&!a.ys.isCued()||g.$P(this.api)&&g.V(a.state,2),g.Al(this.element,"transition-delay",a?"2s":""));g.$n(this.j)};
g.k.y5=function(){g.$n(this.j)};
g.k.LY=function(){this.u.stop();this.hide();g.$n(this.j)};
g.k.La=function(){var a=this.api.Eb();if(3===this.api.getPresentingPlayerType()&&(a.Wc()||g.OL(a)))var b=!0;else(b=this.api.vb().Ue.get("ypc"))&&b.VF?b=!0:(b=this.api.V(),b=g.V(a,2)&&g.XP(this.api)&&b.Mg?!0:!1);b?(b=!0,this.C.hide()):this.api.N("web_player_show_frame_zero_when_cued")&&JKa(this)?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!this.api.V().N("disable_new_pause_state3"),b=!(!g.V(a,2)||g.XP(this.api)||b&&this.api.AA())||g.V(a,1024)?!0:!1));
b?(this.u.show(),a=this.api.getVideoData(),this.c7(this.api.getPlaylist(),a)):(this.u.hide(),g.V(a,1)||this.u.stop())};
g.k.c7=function(){var a=g.ya.apply(0,arguments),b=this.api.V(),c,d=null==(c=this.api.getVideoData())?void 0:c.videoId;if(b.N("web_player_show_frame_zero_when_cued")&&d&&JKa(this))var e="https://web.archive.org/web/20230104105643/https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.t(a),b=a.next();!b.done;b=a.next())if(b=b.value,!(!b||b instanceof g.mJ&&!b.videoId)){e=this.api.fb().getPlayerSize();d=g.RH();c=e.width*d;d*=e.height;if(1280<c||720<d)if(e=b.Xf("maxresdefault.jpg"))break;if(640<c||480<d)if(e=b.Xf("maxresdefault.jpg"))break;if(320<
c||180<d)if(e=b.Xf("sddefault.jpg")||b.Xf("hqdefault.jpg")||b.Xf("mqdefault.jpg"))break;if(e=b.Xf("default.jpg"))break}this.D.style.backgroundImage=e?"url("+e+")":""};g.v(g.qR,g.W);g.qR.prototype.resize=function(){};
g.qR.prototype.u=function(a){var b=this;OKa(this);var c=a.NJ,d=this.api.V();"GENERIC_WITHOUT_LINK"!==c||d.J?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.ke(tR(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Wn(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.J?this.ke(g.rR(a.errorMessage)):this.ke(tR(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//web.archive.org/web/20230104105643/https://www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//web.archive.org/web/20230104105643/https://support.google.com/youtube/?p=player_error1",a&&(c=
g.ci(c,{hl:a})),this.ke(tR(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.zc&&!d.u&&NKa(this,function(e){if(g.lR(e,b.api,!QH(b.api.V()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Oa("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var MKa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.v(uR,g.vF);uR.prototype.ji=function(){SKa(this)};
uR.prototype.onVideoDataChange=function(){var a=this,b=this.G.getVideoData();if(b.isValid()){var c=this.G.V(),d=[],e="";if(!c.oa){var f=QKa(this);c.N("enable_web_media_session_metadata_fix")&&g.CH(c)&&f?(d=RKa(f.thumbnailDetails),f.album&&(e=g.IB(f.album))):d=[{src:b.Xf("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}SKa(this);PKa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.$P(this.G)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"),
b=function(){a.G.nextVideo()},c=function(){a.G.previousVideo()});
vR(this,"nexttrack",b);vR(this,"previoustrack",c)}};
uR.prototype.ra=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.t(this.j),b=a.next();!b.done;b=a.next())vR(this,b.value,null);g.vF.prototype.ra.call(this)};g.v(wR,g.W);g.k=wR.prototype;g.k.onClick=function(a){g.lR(a,this.G,!0);this.G.rb(this.element)};
g.k.onVideoDataChange=function(a,b){UKa(this,b);this.Qd&&VKa(this,this.Qd)};
g.k.qd=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&UKa(this,b);this.j&&VKa(this,a.state);this.Qd=a.state};
g.k.Pc=function(){this.C.show();this.G.ma("paidcontentoverlayvisibilitychange",!0);this.G.Sa(this.element,!0)};
g.k.yb=function(){this.C.hide();this.G.ma("paidcontentoverlayvisibilitychange",!1);this.G.Sa(this.element,!1)};g.v(xR,g.W);xR.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
xR.prototype.onStateChange=function(a){this.Fc(a.state)};
xR.prototype.Fc=function(a){if(g.V(a,128))var b=!1;else{var c;b=(null==(c=this.api.Qc())?0:c.Xr)?!1:g.V(a,16)||g.V(a,1)?!0:!1}b?this.j.start():this.hide()};
xR.prototype.u=function(){this.message.style.display="block"};g.v(yR,g.eQ);yR.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(WKa(this),this.Pc()):(this.j&&this.rb(),this.yb()))};
yR.prototype.ji=function(a){this.api.isMutedByMutedAutoplay()&&g.cL(a,2)&&this.yb()};
yR.prototype.onClick=function(){this.api.unMute();this.rb()};
yR.prototype.rb=function(){this.clicked||(this.clicked=!0,this.api.rb(this.element))};g.v(g.AR,g.vF);g.k=g.AR.prototype;g.k.init=function(){var a=this.api,b=a.Eb();this.aF=a.getPlayerSize();this.kc(b);this.Oo();this.Bb();this.api.ma("basechromeinitialized",this)};
g.k.onVideoDataChange=function(a,b){var c=this.qB!==b.videoId;if(c||"newdata"===a)a=this.api,a.isFullscreen()||(this.aF=a.getPlayerSize());c&&(this.qB=b.videoId,c=this.Qe,c.Aa=b&&0<b.Ng.length?5E3:3E3,gR(c,512,!0),this.Oo())};
g.k.f4=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.Os=function(){var a=this.api.gj()&&this.api.Kn();return this.ZD||a||this.KK};
g.k.Jk=function(){var a=!this.Os();g.lo(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.OD=function(a){try{if(!g.We(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Ye(a);)a=a===this.api.getRootNode()?null:g.Ve(a);return!!a};
g.k.Gm=function(a){var b=this.api.getRootNode();g.lo(b,"ytp-autohide",a);g.lo(b,"ytp-autohide-active",!0);this.HQ.start(a?250:100);a&&(this.TG=!1,g.jo(b,"ytp-touch-mode"));this.uJ=!a;this.api.tC(!a)};
g.k.KL=function(){var a=this.api.getRootNode();g.lo(a,"ytp-autohide-active",!1)};
g.k.I4=function(){this.VN=!0};
g.k.H4=function(a){if(this.api.V().N("player_doubletap_to_seek")||this.api.V().I)this.VN=!1,this.WN&&this.Dc(this.WN),0===this.BB&&BR(this,a)?(this.WE(),this.fE.start(),this.WN=this.S(this.api.fb(),"touchmove",this.I4,void 0,!0)):this.fE.stop();ZKa(this)&&BR(this,a)&&!this.api.V().I&&zR(this);var b=this.dO.Ni();if(pH&&$Ka(this,a))b&&g.Xy(a);else if(this.TG=!0,g.ho(this.api.getRootNode(),"ytp-touch-mode"),this.Qe.Mo(),this.api.V().N("player_doubletap_to_seek")||this.api.N("embeds_web_enable_mobile_dtts")&&
this.api.V().I)if(b=this.api.Eb(),!(!this.api.kh()||g.V(b,2)&&g.XP(this.api)||g.V(b,64))){b=Date.now()-this.cT;this.BB+=1;if(350>=b){this.lA=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.BB-1);0<d&&d<b?(this.kC(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.kC(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Xy(a)}else iR&&this.api.N("embeds_web_enable_mobile_dtts")&&
this.api.V().I&&BR(this,a)&&g.Xy(a);this.cT=Date.now();this.fV.start()}};
g.k.D4=function(a){$Ka(this,a)||(ZKa(this)||!BR(this,a)||this.fE.isActive()||(g.VH(this.api.V())&&this.api.Eb().isCued()&&DQ(this.api.Ki()),zR(this),g.Xy(a)),this.lA&&(this.lA=!1))};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.ax("embedsRequestStorageAccessResult",{resolved:!0});dva(!0);Zz();window.location.reload()},function(){g.ax("embedsRequestStorageAccessResult",{resolved:!1});
a.Sy()})};
g.k.WE=function(){};
g.k.Dv=function(){};
g.k.kC=function(){};
g.k.QM=function(){};
g.k.Sy=function(){var a=this.api.Eb();g.V(a,2)&&g.XP(this.api)||(g.PL(a)?this.api.pauseVideo():(this.api.tF(),this.api.playVideo(),this.qp&&document.activeElement===this.qp.C.element&&this.api.getRootNode().focus()))};
g.k.E4=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!YKa(this,Uy(a)))if(a=this.api.V(),(this.api.V().N("player_doubletap_to_seek")||this.api.N("embeds_web_enable_mobile_dtts")&&this.api.V().I)&&this.lA)this.lA=!1;else if(a.tb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.aB(d)})}catch(d){this.aB(d)}};
g.k.aB=function(a){String(a).includes("fullscreen error")?g.sA(a):g.rA(a)};
g.k.F4=function(a){aLa(this,.3,a.scale);g.Xy(a)};
g.k.G4=function(a){aLa(this,.1,a.scale)};
g.k.Bb=function(){var a=this.api.fb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Qe.resize();g.lo(b,"ytp-fullscreen",this.api.isFullscreen());g.lo(b,"ytp-large-width-mode",c);g.lo(b,"ytp-small-mode",this.Sg());g.lo(b,"ytp-tiny-mode",this.kF());g.lo(b,"ytp-big-mode",this.ag());this.Vf&&this.Vf.resize(a)};
g.k.ji=function(a){this.kc(a.state);this.Oo()};
g.k.vC=aa(32);g.k.jK=function(){var a=!!this.qB&&!this.api.Gf()&&!this.uM,b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(y4a&&c.N("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=ZQ(this.api.vb());return a&&b.vN()}return a&&(c.Ok||this.api.isFullscreen()||c.dc)};
g.k.Oo=function(){var a=this.jK();this.xo!==a&&(this.xo=a,g.lo(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.kc=function(a){var b=a.isCued()||this.api.Zn()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.XN&&this.Dc(this.XN),this.XN=this.S(this.api.fb(),"touchstart",this.H4,void 0,b));var c=a.Wc()&&!g.V(a,32)||this.api.kB();gR(this.Qe,128,!c);c=3===this.api.getPresentingPlayerType();gR(this.Qe,256,c);c=this.api.getRootNode();if(g.V(a,2))var d=[v3.ENDED];else d=[],g.V(a,8)?d.push(v3.PLAYING):g.V(a,4)&&d.push(v3.PAUSED),g.V(a,1)&&!g.V(a,32)&&d.push(v3.BUFFERING),g.V(a,32)&&
d.push(v3.SEEKING),g.V(a,64)&&d.push(v3.UNSTARTED);g.Db(this.HI,d)||(g.ko(c,this.HI),this.HI=d,g.io(c,d));d=this.api.V();var e=g.V(a,2);a:{var f=this.api.V();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.V(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:g4a(ZQ(this.api.vb())))||g.tH(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.lo(c,"ytp-hide-controls",!f);g.lo(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.KK);g.V(a,128)&&!g.tH(d)?(this.Vf||
(this.Vf=new g.qR(this.api),g.H(this,this.Vf),g.cQ(this.api,this.Vf.element,4)),this.Vf.u(a.getData()),this.Vf.show()):this.Vf&&(this.Vf.dispose(),this.Vf=null)};
g.k.fl=function(){return this.api.gj()&&this.api.Kn()?(this.api.setCardsVisible(!1,!1),!0):this.api.Gf()?(g.YP(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.KK=a;this.Jk()};
g.k.ag=function(){return!1};
g.k.Sg=function(){return!this.ag()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.kF=function(){return this.Sg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.isShortsExperienceEligible=function(){var a=this.api.getVideoData();if(!a)return!1;var b=a.embeddedPlayerConfig;return b?!!b.isShortsExperienceEligible:!!a.isShortsEligible};
g.k.hk=function(){var a=this.api.V();if(!g.tH(a)||!a.N("embeds_enable_allow_watch_again_endscreen_for_eligible_shorts")||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(a.ea||"EMBEDDED_PLAYER_MODE_DEFAULT")||this.api.getPlaylist())return!1;a=this.aF;return this.isShortsExperienceEligible()&&a.width<=a.height};
g.k.rl=function(){return this.TG};
g.k.nm=function(){return null};
g.k.xE=function(){return null};
g.k.RA=function(){return null};
g.k.dk=function(){var a=this.api.fb().getPlayerSize();return new g.xl(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.fv=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.fb().tC(a)};
g.k.Mo=function(){};g.v(CR,g.FB);g.k=CR.prototype;g.k.tx=function(){return 1E3*this.api.getDuration(this.Vm,!1)};
g.k.stop=function(){this.j&&this.md.Dc(this.j)};
g.k.uc=function(){var a=this.api.getProgressState(this.Vm);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Vm,!1)};this.ma("h")};
g.k.getProgressState=function(){return this.u};
g.k.qd=function(a){g.cL(a,2)&&this.ma("g")};g.v(DR,g.W);DR.prototype.onClick=function(){this.G.Oa("BACK_CLICKED")};g.v(g.ER,g.W);g.ER.prototype.show=function(){g.W.prototype.show.call(this);g.$n(this.j)};
g.ER.prototype.hide=function(){this.u.stop();g.W.prototype.hide.call(this)};
g.ER.prototype.Dv=function(a){a?g.V(this.G.Eb(),64)||FR(this,eN(),"Play"):(a=this.G.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?FR(this,aFa(),"Stop live playback"):FR(this,XEa(),"Pause"))};g.v(IR,g.W);g.k=IR.prototype;g.k.Pc=function(){this.G.V().N("player_new_info_card_format")&&g.go(this.G.getRootNode(),"ytp-cards-teaser-shown")&&!g.tH(this.G.V())||(this.u.show(),g.mz("iv-button-shown"))};
g.k.yb=function(){g.mz("iv-button-hidden");this.u.hide()};
g.k.Ni=function(){return this.sb&&4!==this.u.state};
g.k.ra=function(){this.j&&this.j();g.W.prototype.ra.call(this)};
g.k.D3=function(){g.mz("iv-button-mouseover")};
g.k.onClicked=function(a){this.G.gj();var b=g.go(this.G.getRootNode(),"ytp-cards-teaser-shown");g.mz("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.G.setCardsVisible(!this.G.Kn(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(KR,g.W);g.k=KR.prototype;g.k.nW=function(){this.G.gj()&&this.G.Kn()&&this.Ni()&&this.yb()};
g.k.LN=function(){this.yb();!this.G.gj()&&this.G.V().N("enable_error_corrections_infocards_icon_web")&&this.Fi.yb();g.mz("iv-teaser-clicked",null!=this.j);this.onClickCommand?this.G.Oa("innertubeCommand",this.onClickCommand):this.G.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.MY=function(){g.mz("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.d5=function(a){this.G.V().N("player_new_info_card_format")&&!g.tH(this.G.V())?this.Fi.yb():this.G.V().N("enable_error_corrections_infocards_icon_web")&&this.Fi.Pc();this.j||!a||this.G.Kn()||this.u&&this.u.isActive()||(this.Pc(a),g.mz("iv-teaser-shown"))};
g.k.Pc=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Go(a.teaserText));this.C.show();this.u=new g.Zn(function(){g.ho(this.G.getRootNode(),"ytp-cards-teaser-shown");this.G.N("player_new_info_card_format")&&!g.tH(this.G.V())&&this.Fi.yb();this.jO()},0,this);
this.u.start();HR(this.Fi,!1);this.j=new g.Zn(this.yb,580+a.durationMs,this);this.j.start();this.D.push(this.Qa("mouseover",this.PP,this));this.D.push(this.Qa("mouseout",this.OP,this))};
g.k.jO=function(){if(!this.G.V().N("player_new_info_card_format")&&g.tH(this.G.V())&&this.sb){var a=this.Fi.element.offsetLeft,b=g.Ee("ytp-cards-button-icon"),c=this.G.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Fi.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.F_=function(){g.tH(this.G.V())&&this.Z.Sg()&&this.sb&&this.T.start()};
g.k.PP=function(){this.I.stop();this.j&&this.j.isActive()&&this.J.start()};
g.k.OP=function(){this.J.stop();this.j&&!this.j.isActive()&&this.I.start()};
g.k.Q3=function(){this.j&&this.j.stop()};
g.k.P3=function(){this.yb()};
g.k.Bo=function(){this.yb()};
g.k.yb=function(){!this.j||this.B&&this.B.isActive()||(g.mz("iv-teaser-hidden"),this.C.hide(),g.jo(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.Zn(function(){for(var a=g.t(this.D),b=a.next();!b.done;b=a.next())this.Dc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);HR(this.Fi,!0);!this.G.gj()&&this.G.V().N("enable_error_corrections_infocards_icon_web")&&this.Fi.yb()},330,this),this.B.start())};
g.k.Ni=function(){return this.sb&&4!==this.C.state};
g.k.ra=function(){var a=this.G.getRootNode();a&&g.jo(a,"ytp-cards-teaser-shown");g.bb(this.u,this.B,this.j);g.W.prototype.ra.call(this)};var B3={},LR=(B3.BUTTON="ytp-button",B3.TITLE_NOTIFICATIONS="ytp-title-notifications",B3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",B3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",B3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",B3);g.v(MR,g.W);MR.prototype.onClick=function(){this.api.rb(this.element);var a=!this.j;this.updateValue("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",a);dLa(this,a)};g.v(g.OR,g.W);g.OR.prototype.C=function(){window.location.reload()};
g.OR.prototype.j=function(){g.ho(this.element,"ytp-sb-subscribed")};
g.OR.prototype.u=function(){g.jo(this.element,"ytp-sb-subscribed")};g.v(QR,g.W);g.k=QR.prototype;g.k.VM=function(){jLa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.QJ=function(){PR(this);if(hLa(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.Sa(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Mk&&a.subscribed&&(this.u.show(),this.api.Sa(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");
this.channel.classList.add("ytp-title-show-expanded")}};
g.k.pJ=function(){PR(this);this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.B&&this.B.start()};
g.k.La=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.lf&&!!a.profilePicture:g.tH(b)&&(c=!!a.videoId&&!!a.lf&&!!a.profilePicture&&!(a.D&&b.Z)&&!b.j&&!(b.I&&200>this.api.getPlayerSize().width));var d=g.$H(this.api.V())+a.lf;g.tH(b)&&(d=kLa(this,d));var e=a.lf,f=a.profilePicture;b=g.tH(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;if(c){var h=this.api.V();e=g.$H(h)+e;
g.tH(h)&&(e=kLa(this,e));this.I!==f&&(this.j.style.backgroundImage="url("+f+")",this.I=f);this.updateValue("channelLink",e);this.updateValue("channelLogoLabel",g.qL("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b}));g.ho(this.api.getRootNode(),"ytp-title-enable-channel-logo")}else g.jo(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Sa(this.j,c&&this.ya);this.subscribeButton&&(this.subscribeButton.channelId=a.Kl);this.updateValue("expandedTitle",a.expandedTitle);this.updateValue("channelTitleLink",
d);this.updateValue("expandedSubtitle",a.expandedSubtitle)};g.v(RR,g.TM);RR.prototype.ST=function(){this.ma("size-change")};
RR.prototype.focus=function(){this.content.focus()};
RR.prototype.LT=function(){this.ma("back")};g.v(g.SR,RR);g.k=g.SR.prototype;g.k.Jc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Ab(this.items,a,mLa);if(0<=b)return;b=~b;g.yb(this.items,b,0,a);g.Se(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.eM,this);this.menuItems.ma("size-change")};
g.k.fg=function(a){a.unsubscribe("size-change",this.eM,this);this.isDisposed()||(g.qb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ma("size-change"))};
g.k.eM=function(){this.menuItems.ma("size-change")};
g.k.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if("true"===this.items[b].element.getAttribute("aria-checked")){a=b;break}this.items[a].focus()};
g.k.rj=function(){return this.items.length};g.v(UR,g.hQ);UR.prototype.j=function(a){g.Yy(a)||39!==g.Zy(a)||(this.element.click(),g.Xy(a))};g.v(WR,g.W);g.k=WR.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.k.hide=function(){g.W.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.k.OY=function(a){var b=Uy(a),c=g.We(this.closeButton.element,b),d=g.We(this.element,b);a=this.j&&g.We(this.j,b)&&g.VN(a);b&&(d||a)&&!c||this.hide()};
g.k.PY=function(){g.hO(function(){window.location.reload()},"user_info_panel",g.NH(this.Ua.V()))};
g.k.La=function(){var a=this.Ua.V();a={USER_NAME:a.userDisplayName,USER_EMAIL:a.Ak};this.updateValue("icon",YEa());this.updateValue("watchingAsUsername",g.qL("Watching as $USER_NAME",a));this.updateValue("watchingAsEmail",g.qL("($USER_EMAIL)",a))};g.v(YR,g.SR);g.k=YR.prototype;g.k.J_=function(){this.ob.yb()};
g.k.n3=function(){oR(this.ex.element)};
g.k.z3=function(){$R(this,this.G.getDebugText(!0))&&FR(this.Nc,WM())};
g.k.A3=function(){$R(this,this.G.getVideoEmbedCode())&&FR(this.Nc,SEa());this.G.rb(this.hm.element);dO("EMBED",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.B3=function(){$R(this,this.G.getVideoUrl(!0,!0))&&FR(this.Nc,aN());this.G.rb(this.getVideoUrl.element);dO("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.C3=function(){$R(this,this.G.getVideoUrl(!1,!0))&&FR(this.Nc,aN());this.G.rb(this.pm.element);dO("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.lk)||b.setValue(a)};
g.k.J3=function(){this.G.setLoopVideo(this.lk.getValue());this.ob.yb();this.G.rb(this.lk.element)};
g.k.z4=function(a){this.G.reportPlaybackIssue();if(g.lR(a,this.G,!QH(this.G.V()))){a=this.G;var b=a.app.getFeedbackProductData();a.Oa("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.ob.yb()};
g.k.R4=function(){this.G.isVideoInfoVisible()?this.G.hideVideoInfo():this.G.showVideoInfo();this.ob.yb()};
g.k.Q4=function(){this.Dk&&(this.MC||(this.MC=new WR(this.G,this.Dk.element),g.H(this,this.MC),g.cQ(this.G,this.MC.element,4)),this.MC.show(),this.ob.yb(),this.G.rb(this.Dk.element))};
g.k.onVideoDataChange=function(a,b){this.oN(b)};
g.k.oN=function(a){var b=this.G.V(),c=2===this.G.getPresentingPlayerType(),d=!c||a.isListed;d=!b.oa&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://web.archive.org/web/20230104105643/https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.B&&(b.fmt=a.B.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Aa&&(b.partnerid=a.Aa),b=g.ci("//web.archive.org/web/20230104105643/https://support.google.com/googleplay/",b));g.SM(this.hm,d&&a.allowEmbed);g.SM(this.getVideoUrl,d);g.SM(this.pm,d&&
!a.isLivePlayback);this.lC.ke(b,"href");var e;null==(e=this.lk)||g.SM(e,!a.isLivePlayback&&!c);var f;null==(f=this.Dk)||g.SM(f,!c)};
g.k.hc=function(a){g.SR.prototype.hc.call(this,a);this.G.Sa(this.hm.element,a);this.G.Sa(this.getVideoUrl.element,a);this.G.Sa(this.pm.element,a);this.lk&&this.G.Sa(this.lk.element,a);this.Dk&&this.G.Sa(this.Dk.element,a)};g.v(g.aS,g.eQ);g.k=g.aS.prototype;g.k.show=function(){g.eQ.prototype.show.call(this);this.Yy()};
g.k.hide=function(){g.eQ.prototype.hide.call(this);1<this.j.length&&g.cS(this)};
g.k.Yy=function(){qLa(this);this.sb&&(pLa(this),g.Kl(this.element,this.size))};
g.k.Ri=function(){var a=this.j.pop();bS(this,a,this.j[this.j.length-1],!0)};
g.k.QY=function(a){if(!g.Yy(a))switch(g.Zy(a)){case 27:this.yb();g.Xy(a);break;case 37:1<this.j.length&&this.Ri();g.Xy(a);break;case 39:g.Xy(a)}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.ra=function(){g.eQ.prototype.ra.call(this);this.D&&this.D.dispose();this.I&&this.I.dispose()};g.v(g.dS,g.aS);g.k=g.dS.prototype;g.k.SY=function(a){var b=Uy(a);if(!(b&&(af(b,"a")||af(b,null,"ytp-no-contextmenu"))||this.sb)){var c;this.oa=(a=null==(c=a.touches)?void 0:c.item(0))?new g.he(a.clientX,a.clientY):new g.he(0,0);this.ea.start()}};
g.k.xU=function(){this.ea.stop()};
g.k.i5=function(){this.open(this.oa)};
g.k.FR=function(){if(this.B&&oLa(this.B)){var a=oLa(this.B).element;a.tabIndex=-1;a.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.k.show=function(){this.B||(this.B=new YR(this.G,this.Aa,this,this.Nc),g.H(this,this.B),g.ZR(this,this.B));this.B.onLoopChange(this.G.getLoopVideo());g.aS.prototype.show.call(this);this.G.Sa(this.element,!0);this.B.hc(!0)};
g.k.hide=function(){sLa(this);g.aS.prototype.hide.call(this);this.G.Sa(this.element,!1);this.B&&this.B.hc(!1)};
g.k.l3=function(a){var b=Uy(a);this.sb||b&&(af(b,"a")||af(b,null,"ytp-no-contextmenu"))||(g.Xy(a),this.open(Wy(a)))};
g.k.Pc=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.he(b.x,b.y))}g.aS.prototype.Pc.call(this,a)};
g.k.open=function(a){tLa(this);var b=this.G.getVideoData();g.lo(this.element,"ytp-dni",b.D);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.aS.prototype.Pc.call(this);var c=document.body;b=new nl(0,Infinity,Infinity,0);var d=ze(c);for(var e=d.j.body,f=d.j.documentElement,h=fca(d.j);c=Nha(c);)if(!(g.Je&&0==c.clientWidth||g.Fc&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=El(c,"overflow")){var l=g.Il(c),m=new g.he(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,
l.y);b.right=Math.min(b.right,l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.j;d=eca(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x<d.left||a.x>=d.right)&&(e&=-2),132==(e&132)&&(a.y<
d.top||a.y>=d.bottom)&&(e&=-5),a.x<d.left&&e&1&&(a.x=d.left),e&16&&(f=a.x,a.x<d.left&&(a.x=d.left),a.x+h.width>d.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.y<d.top&&e&4&&(a.y=d.top),e&32&&(f=a.y,a.y<d.top&&(a.y=d.top),a.y+h.height>d.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top)));
d=new g.xl(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Gl(this.element,new g.he(d.left,d.top));g.gA(this.C);this.C.S(document,"contextmenu",this.u3);this.C.S(this.G,"fullscreentoggled",this.onFullscreenToggled);this.C.S(this.G,"pageTransition",this.RY)};
g.k.u3=function(a){if(!g.Yy(a)){var b=Uy(a);g.We(this.element,b)||this.yb();this.G.V().disableNativeContextMenu&&g.Xy(a)}};
g.k.onFullscreenToggled=function(){this.yb();tLa(this)};
g.k.RY=function(){this.yb()};g.v(g.eS,g.W);g.eS.prototype.onClick=function(){var a=this,b,c,d,e;return g.A(function(f){if(1==f.j)return b=a.api.V(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.y(f,vLa(a,e),2);f.u&&uLa(a);a.api.rb(a.element);g.pa(f)})};
g.eS.prototype.La=function(){var a=this.api.V(),b=this.api.getVideoData();this.updateValue("icon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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");var c=this.api.fb().getPlayerSize().width;
this.visible=!!b.videoId&&c>=this.u&&b.Gn&&!(b.D&&a.Z);g.lo(this.element,"ytp-copylink-button-visible",this.visible);g.SM(this,this.visible);gS(this.tooltip);this.api.Sa(this.element,this.visible&&this.ya)};
g.eS.prototype.hc=function(a){g.W.prototype.hc.call(this,a);this.api.Sa(this.element,this.visible&&a)};
g.eS.prototype.ra=function(){g.W.prototype.ra.call(this);g.jo(this.element,"ytp-copylink-button-visible")};g.v(hS,g.W);hS.prototype.show=function(){g.W.prototype.show.call(this);g.$n(this.u)};
hS.prototype.hide=function(){this.B.stop();g.jo(this.element,"ytp-chapter-seek");g.jo(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
hS.prototype.kC=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.G.rb(e);g.bo(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.G.fb().getPlayerSize().height;e=this.G.fb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var h=2.5*f;f=h/2;var l=this.Ea("ytp-doubletap-ripple");l.style.width=h+
"px";l.style.height=h+"px";1===a?(a=this.G.fb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Ea("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");wLa(this,d)};g.v(kS,g.W);kS.prototype.onClick=function(){this.G.rb(this.element,this.u)};g.v(lS,g.eQ);g.k=lS.prototype;g.k.show=function(){g.eQ.prototype.show.call(this);this.G.ma("infopaneldetailvisibilitychange",!0);this.G.Sa(this.element,!0);zLa(this,!0)};
g.k.hide=function(){g.eQ.prototype.hide.call(this);this.G.ma("infopaneldetailvisibilitychange",!1);this.G.Sa(this.element,!1);zLa(this,!1)};
g.k.getId=function(){return this.C};
g.k.rj=function(){return this.itemData.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.vn)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.vn)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.vn)?void 0:h.trackingParams)||null;this.G.Ph(this.element,a);h=g.t(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if(null==(l=b.vn)?0:l.ctaButtons)for(b=g.t(b.vn.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.P(l.value,d6a))l=new kS(this.G,
l,this.j),l.isValid&&(this.itemData.push(l),l.Ca(this.items))}};
g.k.ra=function(){this.hide();g.eQ.prototype.ra.call(this)};g.v(nS,g.W);g.k=nS.prototype;g.k.onVideoDataChange=function(a,b){mS(this,b);this.Qd&&CLa(this,this.Qd)};
g.k.qd=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&mS(this,b);CLa(this,a.state);this.Qd=a.state};
g.k.TT=function(a){(this.C=a)?this.hide():this.j&&this.show()};
g.k.UY=function(){this.u||this.Pc();this.showControls=!0};
g.k.TY=function(){this.u||this.yb();this.showControls=!1};
g.k.Pc=function(){this.j&&!this.C&&(this.B.show(),this.G.ma("infopanelpreviewvisibilitychange",!0),this.G.Sa(this.element,!0))};
g.k.yb=function(){this.j&&!this.C&&(this.B.hide(),this.G.ma("infopanelpreviewvisibilitychange",!1),this.G.Sa(this.element,!1))};
g.k.m6=function(){this.u=!1;this.showControls||this.yb()};var d9a={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(d9a).reduce(function(a,b){a[d9a[b]]=b;return a},{});
var e9a={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(e9a).reduce(function(a,b){a[e9a[b]]=b;return a},{});
var f9a={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(f9a).reduce(function(a,b){a[f9a[b]]=b;return a},{});var g9a,h9a;g9a=[{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"}];h9a=[{option:0,text:oS(0)},{option:.25,text:oS(.25)},{option:.5,text:oS(.5)},{option:.75,text:oS(.75)},{option:1,text:oS(1)}];
g.sS=[{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:g9a},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:oS(.5)},{option:-1,text:oS(.75)},{option:0,text:oS(1)},{option:1,text:oS(1.5)},{option:2,
text:oS(2)},{option:3,text:oS(3)},{option:4,text:oS(4)}]},{option:"background",text:"Background color",options:g9a},{option:"backgroundOpacity",text:"Background opacity",options:h9a},{option:"windowColor",text:"Window color",options:g9a},{option:"windowOpacity",text:"Window opacity",options:h9a},{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:oS(.25)},{option:.5,text:oS(.5)},{option:.75,text:oS(.75)},{option:1,text:oS(1)}]}];g.v(g.rS,g.vF);g.k=g.rS.prototype;
g.k.oS=function(a){var b=!1,c=g.Zy(a),d=Uy(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.V();g.Yy(a)?(e=!1,h=!0):l.nj&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),
d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);GR(this.Nc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);GR(this.Nc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.kh()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),h=f=!0);break;case 35:this.api.kh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&qS(this,!0);(b||h)&&this.Qe.Mo();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Xy(a);l.D&&(a={keyCode:g.Zy(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Yy(a),fullscreen:this.api.isFullscreen()},this.api.Oa("onKeyPress",a))};
g.k.pS=function(a){this.handleGlobalKeyUp(g.Zy(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.aQ(this.api.vb());c&&(c=c.Qs)&&c.sb&&(c.kS(a),b=!0);9===a&&(qS(this,!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.V();if(e.nj)return h;var l=g.aQ(this.api.vb());if(l&&(l=l.Qs)&&l.sb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.jS(a)}e.J||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&xka(this.api.getRootNode(),"ytp-color-party")):(this.u=h,h=0==="awesome".indexOf(this.u)));if(!h){l=this.api.getVideoData();var m,n;f=null==(m=this.Hc)?void 0:null==
(n=m.u)?void 0:n.isEnabled;m=l?l.yk:[];n=oW?d:c;switch(a){case 80:b&&!e.Pa&&(FR(this.Nc,$Ea(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.Pa&&(FR(this.Nc,bN(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.kh()&&(this.api.startSeekCsiAction(),this.j?iS(this.j,-1,10):FR(this.Nc,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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()),h=!0);break;case 76:this.api.kh()&&(this.api.startSeekCsiAction(),this.j?iS(this.j,1,10):FR(this.Nc,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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()),h=!0);break;case 37:this.api.kh()&&(this.api.startSeekCsiAction(),n?(n=FLa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(jS(this.j,-1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(this.j?iS(this.j,-1,5):FR(this.Nc,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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()),h=!0));break;case 39:this.api.kh()&&(this.api.startSeekCsiAction(),n?(n=ELa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(jS(this.j,1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(null!=this.j?iS(this.j,1,5):FR(this.Nc,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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()),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),GR(this.Nc,this.api.getVolume(),!1)):(this.api.mute(),GR(this.Nc,0,!0));h=!0;break;case 32:case 75:e.Pa||(f?this.Hc.UJ():(h=!g.PL(this.api.Eb()),this.Nc.Dv(h),h?this.api.playVideo():this.api.pauseVideo()),h=!0);break;case 190:b?e.Xe&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),bLa(this.Nc,!1),h=!0):this.api.kh()&&(ILa(this,1),h=!0);break;case 188:b?e.Xe&&(h=this.api.getPlaybackRate(),
this.api.setPlaybackRate(h-.25,!0),bLa(this.Nc,!0),h=!0):this.api.kh()&&(ILa(this,-1),h=!0);break;case 70:KKa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0);
break;case 27:f?(this.Hc.jr(),h=!0):this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.UQ(this.api.vb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),cLa(this.Nc,!e||e&&!e.displayName),h=!0);break;case 79:tS(this,"textOpacity");break;case 87:tS(this,"windowOpacity");break;case 187:case 61:tS(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:tS(this,"fontSizeIncrement",!0,!0)}var p;b||c||d||(48<=a&&57>=a?p=a-48:96<=a&&105>=a&&(p=a-96));null!=p&&this.api.kh()&&
(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(p/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.Qe.Mo()}return h};
g.k.ra=function(){g.bo(this.B);g.vF.prototype.ra.call(this)};g.v(uS,g.W);uS.prototype.La=function(){var a=this.G.V(),b=a.j,c=g.tH(a)&&g.$P(this.G)&&g.V(this.G.Eb(),128),d=this.G.getPlayerSize();this.visible=this.j.Sg()&&!c&&240<=d.width&&!(this.G.getVideoData().D&&a.Z)&&!b;g.lo(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&gS(this.tooltip);this.G.Sa(this.element,this.visible&&this.ya)};
uS.prototype.hc=function(a){g.W.prototype.hc.call(this,a);this.G.Sa(this.element,this.visible&&a)};
uS.prototype.ra=function(){g.W.prototype.ra.call(this);g.jo(this.element,"ytp-overflow-button-visible")};g.v(vS,g.eQ);g.k=vS.prototype;g.k.VY=function(a){a=Uy(a);g.We(this.element,a)&&(g.We(this.j,a)||g.We(this.closeButton,a)||fQ(this))};
g.k.yb=function(){g.eQ.prototype.yb.call(this);this.tooltip.Zk(this.element)};
g.k.show=function(){this.sb&&this.G.ma("OVERFLOW_PANEL_OPENED");g.eQ.prototype.show.call(this);this.element.setAttribute("aria-modal","true");JLa(this,!0)};
g.k.hide=function(){g.eQ.prototype.hide.call(this);this.element.removeAttribute("aria-modal");JLa(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.Ni()&&fQ(this)};
g.k.focus=function(){for(var a=g.t(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.sb){b.focus();break}};g.v(xS,g.W);xS.prototype.onClick=function(a){g.lR(a,this.api)&&this.api.playVideoAt(this.index)};g.v(yS,g.eQ);g.k=yS.prototype;g.k.show=function(){g.eQ.prototype.show.call(this);this.B.S(this.api,"videodatachange",this.bI);this.B.S(this.api,"onPlaylistUpdate",this.bI);this.bI()};
g.k.hide=function(){g.eQ.prototype.hide.call(this);g.gA(this.B);this.updatePlaylist(null)};
g.k.bI=function(){this.updatePlaylist(this.api.getPlaylist());this.api.V().j&&(this.Ea("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.Dc(this.C),this.C=null))};
g.k.yG=function(){var a=this.playlist,b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.qL(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.t(this.j);for(d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;
this.j=[];for(d=0;d<c;d++){var e=new xS(this.api,a,d);this.j.push(e);e.Ca(this.items)}this.selected=this.j[a.index];this.D=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.h5=function(a){var b=this.api.getVideoUrl(!0);g.mR(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.yG,this),this.playlist=a,this.D=null,a?(a.subscribe("shuffle",this.yG,this),this.yG()):this.sb&&this.hide()):this.playlist&&this.yG()};
g.k.focus=function(){this.selected.focus()};
g.k.ra=function(){this.hide();g.eQ.prototype.ra.call(this)};g.v(zS,g.W);
zS.prototype.La=function(){var a=g.tH(this.api.V());g.lo(this.element,"ytp-playlist-menu-button-tiny",400>this.api.fb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.qL("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.qL("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.sb||(this.show(),gS(this.tooltip)),this.visible=!0,this.hc(!0)):
this.sb&&(this.hide(),this.hc(!1),gS(this.tooltip))};
zS.prototype.hc=function(a){g.W.prototype.hc.call(this,a);this.api.Sa(this.element,this.visible&&a)};
zS.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.La,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.La,this);this.La()};g.v(AS,g.W);g.k=AS.prototype;g.k.XY=function(){this.C?CS(this):BS(this)};
g.k.WY=function(){this.C?(DS(this),this.I=!0):BS(this)};
g.k.z2=function(){this.D=!0;this.rC(1);this.G.ma("promotooltipacceptbuttonclicked",this.acceptButton);DS(this);this.u&&this.G.rb(this.acceptButton)};
g.k.t3=function(){this.D=!0;this.rC(2);DS(this);this.u&&this.G.rb(this.dismissButton)};
g.k.YY=function(a){if(1===this.G.getPresentingPlayerType()||2===this.G.getPresentingPlayerType()&&this.T){var b=!0,c=g.Ee("ytp-ad-overlay-ad-info-dialog-container"),d=Uy(a);if(this.B&&d&&g.We(this.B,d))this.B=null;else{1===this.G.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=MLa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.We(this.element,d));else{var h;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(h=this.tooltipRenderer.dismissStrategy)?void 0:h.type)&&(b=e?!1:b&&g.We(this.element,d))}this.j&&this.sb&&!c&&(!d||b&&g.VN(a))&&(this.D=!0,DS(this))}}};
g.k.rC=function(a){var b=this.tooltipRenderer.promoConfig;if(b){switch(a){case 0:var c;if(null==(c=b.impressionEndpoints)?0:c.length)var d=b.impressionEndpoints[0];break;case 1:d=b.acceptCommand;break;case 2:d=b.dismissCommand}var e;a=null==(e=g.P(d,c6a))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.G.mm(),(null==a?0:GFa(d,a.KJ))&&oO(a,d,e))}};
g.k.Bb=function(){this.I||(this.j||(this.j=KLa(this)),CS(this))};
var LLa={"ytp-settings-button":g.gN()};g.v(ES,g.W);ES.prototype.onStateChange=function(a){this.Fc(a.state)};
ES.prototype.Fc=function(a){g.SM(this,g.V(a,2))};
ES.prototype.onClick=function(){this.G.Eb();this.G.playVideo()};g.v(g.FS,g.W);g.k=g.FS.prototype;g.k.tq=aa(34);g.k.onClick=function(){var a=this,b=this.api.V(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();b=b.getVideoUrl(c.videoId,d,void 0,!0);if(navigator.share)try{var e=navigator.share({title:c.title,url:b});e instanceof Promise&&e.catch(function(f){NLa(a,f)})}catch(f){f instanceof Error&&NLa(this,f)}else this.j.fl(),fQ(this.B,this.element,!1);
this.api.rb(this.element)};
g.k.showShareButton=function(a){var b=!0;if(this.api.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var c,d,e=null==(c=a.Cf)?void 0:null==(d=c.embedPreview)?void 0:d.thumbnailPreviewRenderer;e&&(b=!!e.shareButton);var f,h;(c=null==(f=a.watchNextResponse)?void 0:null==(h=f.playerOverlays)?void 0:h.playerOverlayRenderer)&&(b=!!c.shareButton);var l,m,n,p;if(null==(p=g.P(null==(l=a.watchNextResponse)?void 0:null==(m=l.contents)?void 0:null==(n=m.twoColumnWatchNextResults)?void 0:
n.desktopOverlay,AJ))?0:p.suppressShareButton)b=!1}else b=a.showShareButton;return b};
g.k.La=function(){var a=this.api.V(),b=this.api.getVideoData(),c=g.tH(a)&&g.$P(this.api)&&g.V(this.api.Eb(),128),d=this.j.Me();this.j.ag()&&d?(d=(this.api.fb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Al(this.element,"right",d+"px")):d&&g.Al(this.element,"right","0px");this.updateValue("icon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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"}}]});
a=a.disableSharing&&2!==this.api.getPresentingPlayerType()||!this.showShareButton(b,a)||b.Gn||c||b.D&&a.Z||this.u;c=this.api.fb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.C&&!a;g.lo(this.element,"ytp-share-button-visible",this.visible);g.SM(this,this.visible);gS(this.tooltip);this.api.Sa(this.element,this.visible&&this.ya)};
g.k.hc=function(a){g.W.prototype.hc.call(this,a);this.api.Sa(this.element,this.visible&&a)};
g.k.ra=function(){g.W.prototype.ra.call(this);g.jo(this.element,"ytp-share-button-visible")};g.v(g.GS,g.eQ);g.k=g.GS.prototype;g.k.ZY=function(a){a=Uy(a);g.We(this.D,a)||g.We(this.closeButton,a)||fQ(this)};
g.k.yb=function(){g.eQ.prototype.yb.call(this);this.tooltip.Zk(this.element);this.api.Sa(this.j,!1);for(var a=g.t(this.B),b=a.next();!b.done;b=a.next())b=b.value,this.api.gk(b.element)&&this.api.Sa(b.element,!1)};
g.k.show=function(){var a=this.sb;g.eQ.prototype.show.call(this);this.La();a||this.api.Oa("onSharePanelOpened")};
g.k.R1=function(){this.sb&&this.La()};
g.k.La=function(){var a=this;g.ho(this.element,"ytp-share-panel-loading");g.jo(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&oO(this.api.mm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.jo(a.element,"ytp-share-panel-loading"),PLa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.DH(this.api.V())&&(b=g.ci(b,g.iP({},"emb_share")));this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.qL("Share link $URL",{URL:b}));oR(this.j);this.api.Sa(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.Ni()&&fQ(this)};
g.k.focus=function(){this.j.focus()};
g.k.ra=function(){g.eQ.prototype.ra.call(this);OLa(this)};g.v(JS,g.W);g.k=JS.prototype;g.k.LL=function(){};
g.k.IF=function(){};
g.k.zC=function(){return!0};
g.k.u6=function(){if(this.expanded){this.Aa.show();var a=this.C.element.scrollWidth}else a=this.C.element.scrollWidth,this.Aa.hide();this.Xa=34+a;g.lo(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Xa)+"px";this.oa.start()};
g.k.h0=function(){this.badge.element.style.width=(this.expanded?this.Xa:34)+"px";this.Ma.start()};
g.k.Z6=function(){g.lo(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.Jl=function(){this.zC()?this.J.show():this.J.hide();QLa(this)};
g.k.aZ=function(){this.enabled=!1;this.Jl()};
g.k.Y6=function(){this.Jl()};
g.k.e3=function(a){this.Va=1===a;this.Jl();g.lo(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.x3=function(){g.lo(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.Jl()};g.v(KS,JS);g.k=KS.prototype;g.k.ra=function(){LS(this);JS.prototype.ra.call(this)};
g.k.LL=function(a){a.target!==this.dismissButton.element&&(SLa(this,!1),this.G.Oa("innertubeCommand",this.onClickCommand))};
g.k.IF=function(){this.ea=!0;SLa(this,!0);this.Jl()};
g.k.h4=function(a){this.Ka=a;this.Jl()};
g.k.Z3=function(a){var b=this.G.getVideoData();b&&b.videoId===this.videoId&&this.Ba&&(this.T=a,a||(a=3+this.G.getCurrentTime(),this.Ge(a)))};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.ea=!1,this.j=!0,this.T=this.Ba=this.D=this.I=!1,LS(this);if(a||!b.videoId)this.B=this.u=!1;a=b.shoppingOverlayRenderer;this.Ka=this.enabled=!1;if(a){this.enabled=!0;if(!this.u){var c,d=null==(c=a.badgeInteractionLogging)?void 0:c.trackingParams;(this.u=!!d)&&this.G.Ph(this.badge.element,d||null)}if(!this.B){var e;if(this.B=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.G.Ph(this.dismissButton.element,
(null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.IB(a.text);var h;if(c=null==(h=a.dismissButton)?void 0:h.a11yLabel)this.Wa=g.IB(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;LJ(b)?this.T=this.Ba=!0:this.Ge()}RLa(this);IS(this);this.Jl()};
g.k.zC=function(){return!this.Ka&&this.enabled&&!this.ea&&!this.gb.Sg()&&!this.Va&&!this.T&&(this.D||this.j)};
g.k.dg=function(a){(this.D=a)?(HS(this),IS(this,!1)):(LS(this),this.Z.start());this.Jl()};
g.k.Ge=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.yB(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.yB(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.G.Ge(b)};g.v(MS,g.eQ);MS.prototype.show=function(){g.eQ.prototype.show.call(this);this.j.start()};
MS.prototype.hide=function(){g.eQ.prototype.hide.call(this);this.j.stop()};
MS.prototype.Nr=function(a,b){"dataloaded"===a&&((this.gh=b.gh,this.nf=b.nf,isNaN(this.gh)||isNaN(this.nf))?this.B&&(this.G.Qf("intro"),this.G.removeEventListener(g.AB("intro"),this.I),this.G.removeEventListener(g.BB("intro"),this.D),this.G.removeEventListener("onShowControls",this.C),this.hide(),this.B=!1):(this.G.addEventListener(g.AB("intro"),this.I),this.G.addEventListener(g.BB("intro"),this.D),this.G.addEventListener("onShowControls",this.C),a=new g.yB(this.gh,this.nf,{priority:9,namespace:"intro"}),
this.G.Ge([a]),this.B=!0))};g.v(g.OS,g.FB);g.k=g.OS.prototype;g.k.S=function(a,b){this.C.S(this.T,a,b,void 0,!this.j)};
g.k.cancel=function(){this.B&&(this.B=!1,this.ma("dragend",0,0,null));this.u&&(this.u=!1,this.ma("hoverend",0,0,null),PS(this),NS(this))};
g.k.Qu=function(a){PS(this);this.S(QS("move"),this.QP);this.S(QS("out"),this.Zx);this.S("touchstart",this.dI);this.j&&this.S(QS("down"),this.cI);var b=g.Ty(a);a=Wy(a);this.u=!0;this.ma("hoverstart",a.x,a.y,b);this.ma("hovermove",a.x,a.y,b)};
g.k.QP=function(a){var b=g.Ty(a);a=Wy(a);if(this.D){var c=this.D;this.D=null;if(Vy(c)===b&&ie(Wy(c),a))return}this.ma("hovermove",a.x,a.y,b)};
g.k.Zx=function(a){var b=Wy(a),c=Vy(a);try{if(c&&g.We(this.target,c)){this.D=a;this.ma("hovermove",b.x,b.y,c);return}}catch(d){}PS(this);NS(this);this.u=!1;this.ma("hoverend",b.x,b.y,c)};
g.k.n2=function(a){this.Qu(a);this.cI(a)};
g.k.cI=function(a){if("number"!==typeof a.button||0===a.button){PS(this);this.C.S(document,QS("move"),this.m2);this.C.S(document,QS("up"),this.bZ);var b=g.Ty(a);if(g.Fc)this.S("dragstart",this.X_);else if(g.Xy(a),(g.WH||Bl)&&b)a:{for(var c=b;c;){if(Ye(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=Wy(a);this.ma("dragstart",a.x,a.y,b);this.ma("dragmove",a.x,a.y,b)}};
g.k.X_=function(a){g.Xy(a)};
g.k.m2=function(a){var b=g.Ty(a);b===document&&(b=null);a=Wy(a);this.ma("hovermove",a.x,a.y,b);this.ma("dragmove",a.x,a.y,b)};
g.k.bZ=function(a){PS(this);this.B=!1;var b=Uy(a),c=g.Ty(a);a=Wy(a);b&&g.We(this.target,b)?(this.S(QS("move"),this.QP),this.S(QS("out"),this.Zx),this.S(QS("down"),this.cI),this.S("touchstart",this.dI),this.ma("dragend",a.x,a.y,c)):(NS(this),this.u=!1,this.ma("dragend",a.x,a.y,c),this.ma("hoverend",a.x,a.y,c))};
g.k.dI=function(a){var b=a.changedTouches[0];b&&(PS(this),this.S("touchmove",this.M6),this.S("touchend",this.RP),this.S("touchcancel",this.RP),this.I=b.identifier,a=g.Ty(a),this.u||(this.u=!0,this.ma("hoverstart",b.pageX,b.pageY,a)),this.ma("hovermove",b.pageX,b.pageY,a),this.j&&(this.B=!0,this.ma("dragstart",b.pageX,b.pageY,a),this.ma("dragmove",b.pageX,b.pageY,a)))};
g.k.M6=function(a){var b=TLa(this,a);b&&(this.j&&g.Xy(a),a=g.Ty(a),this.ma("hovermove",b.pageX,b.pageY,a),this.j&&this.ma("dragmove",b.pageX,b.pageY,a))};
g.k.RP=function(a){var b=TLa(this,a);if(b){PS(this);NS(this);this.u=!1;var c=g.Ty(a);this.j&&(this.J||g.Xy(a),this.B=!1,this.ma("dragend",b.pageX,b.pageY,c));this.ma("hoverend",b.pageX,b.pageY,c)}};
g.k.ra=function(){this.j&&(g.Fc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");PS(this);g.FB.prototype.ra.call(this)};g.v(RS,g.W);RS.prototype.onClick=function(){this.G.Ps()};
RS.prototype.La=function(){var a=!0;g.tH(this.G.V())&&(a=a&&480<=this.G.fb().getPlayerSize().width);g.SM(this,a);this.updateValue("icon",this.G.jh()?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{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"}}]}:
{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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"}}]})};new Vw("yt.autonav");g.v(SS,g.W);g.k=SS.prototype;
g.k.Lz=function(){var a;if(a=3!==this.G.getPresentingPlayerType()&&g.dQ(this.G)&&400<=this.G.fb().getPlayerSize().width){a=this.Ad();if(this.G.V().N("client_respect_autoplay_switch_button_renderer"))var b=!!a.autoplaySwitchButtonRenderer;else{if(this.G.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var c=!1;var d,e,f;if(null==(b=a.watchNextResponse)?0:null==(d=b.contents)?0:null==(e=d.twoColumnWatchNextResults)?0:null==(f=e.autoplay)?0:f.autoplay)c=!0}else c=a.yZ;b=!1!==c}a=
b}if(a)this.j||(this.j=!0,g.SM(this,this.j),this.G.V().N("web_player_autonav_toggle_always_listen")||ULa(this),b=this.Ad(),this.SP(b.autonavState),this.G.Sa(this.element,this.j));else if(this.j=!1,g.SM(this,this.j),!this.G.V().N("web_player_autonav_toggle_always_listen"))for(this.G.V().N("web_player_autonav_toggle_always_listen"),b=g.t(this.u),d=b.next();!d.done;d=b.next())this.Dc(d.value)};
g.k.SP=function(a){WLa(this)?this.isChecked=1!==a:((a=1!==a)||(g.Fw.getInstance(),a=g.ov("web_autonav_allow_off_by_default")&&!g.Gw(0,141)&&g.O("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Gw(0,140)),this.isChecked=a);VLa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.G.wG(this.isChecked?2:1);VLa(this);if(WLa(this)){var a=this.Ad().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.G.Oa("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.G.Oa("innertubeCommand",a.onDisabledCommand)}this.G.rb(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.Ea("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};
g.k.Ad=function(){return this.G.getVideoData(1)};g.v(g.US,g.W);g.US.prototype.ra=function(){this.ctx=null;g.W.prototype.ra.call(this)};g.v(VS,g.W);VS.prototype.onClick=function(){this.G.Oa("innertubeCommand",this.j)};
VS.prototype.J=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()};
VS.prototype.I=function(){this.B.disabled=null==this.j;g.lo(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.uc()};g.v(WS,VS);WS.prototype.onClickCommand=function(a){g.P(a,BJ)&&this.uc()};
WS.prototype.updateVideoData=function(a,b){var c;if(b.N("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")){var d,e;a=g.P(null==(c=b.watchNextResponse)?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,AI);c=g.P(null==a?void 0:a.playerBarActionButton,g.zJ)}else c=b.KZ;var f;this.j=null==(f=c)?void 0:f.command;VS.prototype.I.call(this)};
WS.prototype.uc=function(){var a="",b=this.C.j,c,d="clips"===(null==(c=this.G.getLoopRange())?void 0:c.type);if(1<b.length&&!d){a=1E3*this.G.getProgressState().current;c=pS(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.u)this.G.Oa("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.u=!1}else this.u=!0;VS.prototype.J.call(this,a)};g.v(g.XS,g.W);g.XS.prototype.qd=function(a){g.V(a.state,32)?YS(this,this.api.tj()):this.sb&&(g.V(a.state,16)||g.V(a.state,1))||this.j.hide()};
g.XS.prototype.De=function(){var a=this.api.Eb();(g.V(a,32)||g.V(a,16))&&ZS(this)};
g.XS.prototype.D=function(){this.B=NaN;ZS(this)};
g.XS.prototype.hide=function(){this.u&&YS(this,null);g.W.prototype.hide.call(this)};g.v(g.$S,g.W);g.k=g.$S.prototype;g.k.onClick=function(){var a=this;if(this.G.V().tb||this.G.V().I){this.G.rb(this.element);try{this.G.toggleFullscreen().catch(function(b){a.aB(b)})}catch(b){this.aB(b)}}else fQ(this.message,this.element,!0)};
g.k.aB=function(a){String(a).includes("fullscreen error")?g.sA(a):g.rA(a);this.VL()};
g.k.VL=function(){this.disable();this.message.Pc(this.element,!0)};
g.k.eq=function(){bA()===this.G.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.A_=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.VL()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Oy(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"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.eQ(this.G,{F:"div",Ga:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},W:[b[0],{F:"a",X:{href:"https://web.archive.org/web/20230104105643/https://support.google.com/youtube/answer/6276924",
target:this.G.V().T},qa:b[2]},b[4]]},100,!0);this.message.hide();g.H(this,this.message);this.message.subscribe("show",function(c){a.u.mx(a.message,c)});
g.cQ(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.k.La=function(){var a=KKa(this.G),b=this.G.V().I&&250>this.G.getPlayerSize().width;g.SM(this,a&&!b);this.G.Sa(this.element,this.sb)};
g.k.Fl=function(a){if(a){var b={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"g",K:"ytp-fullscreen-button-corner-2",W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",K:"ytp-fullscreen-button-corner-3",W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{F:"g",K:"ytp-fullscreen-button-corner-0",W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{F:"g",
K:"ytp-fullscreen-button-corner-1",W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=pR(this.G,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.G.getRootNode().focus()}else b={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"g",K:"ytp-fullscreen-button-corner-0",W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},
{F:"g",K:"ytp-fullscreen-button-corner-1",W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{F:"g",K:"ytp-fullscreen-button-corner-2",W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",K:"ytp-fullscreen-button-corner-3",W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=pR(this.G,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?
null:a;this.update({title:a,icon:b});gS(this.u.Bc())};
g.k.ra=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.ra.call(this)};g.v(aT,VS);aT.prototype.onClickCommand=function(a){g.P(a,y7a)&&this.uc()};
aT.prototype.updateVideoData=function(){var a,b;this.j=null==(a=YLa(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;VS.prototype.I.call(this)};
aT.prototype.uc=function(){var a="",b=this.C.T,c,d=null==(c=YLa(this))?void 0:c.headerTitle;c=d?g.IB(d):"";var e;d="clips"===(null==(e=this.G.getLoopRange())?void 0:e.type);1<b.length&&!d&&(a=1E3*this.G.getProgressState().current,e=DLa(b,a),a=null!=e?b[e].title:c,null!=e&&e!==this.currentIndex&&(this.G.Oa("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));VS.prototype.J.call(this,a)};g.v(bT,g.W);bT.prototype.onClick=function(){this.G.Oa("onCollapseMiniplayer");this.G.rb(this.element)};
bT.prototype.La=function(){this.visible=!this.G.isFullscreen();g.SM(this,this.visible);this.G.Sa(this.element,this.visible&&this.ya)};
bT.prototype.hc=function(a){g.W.prototype.hc.call(this,a);this.G.Sa(this.element,this.visible&&a)};g.v(cT,g.W);cT.prototype.onVideoDataChange=function(a){this.La("newdata"===a)};
cT.prototype.La=function(a){var b=this.G.getVideoData(),c=b.Ng,d=this.G.Eb();d=(g.PL(d)||g.OL(d))&&0<c.length;g.SM(this,d);a&&(this.j=!0);if(d){this.j&&g.$n(this.u);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.qL("Viewing $CAMERA_INDEX of $CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.Xf("default.jpg")});gS(this.tooltip)}else this.u.stop()};
cT.prototype.B=function(){fS(this.tooltip,this.element,"More cameras available");this.j=!1};g.v(dT,g.eQ);g.k=dT.prototype;g.k.show=function(){var a=this.sb;g.eQ.prototype.show.call(this);a||(this.B.S(this.api,"presentingplayerstatechange",this.La),this.B.S(this.api,"videodatachange",this.La),this.La())};
g.k.hide=function(){this.B&&(g.gA(this.B),g.eQ.prototype.hide.call(this))};
g.k.La=function(){var a=this,b=this.api.getVideoData(),c=b.Ng,d,e={};for(d=0;d<c.length;e={eH:e.eH},d++){var f=this.j[d];f||(f=new g.W({F:"button",Ga:["ytp-multicam-menu-item","ytp-button"],X:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},W:[{F:"div",K:"ytp-multicam-menu-item-title",qa:"{{cameraName}}"}]}),e.eH=d,f.Qa("click",function(n){return function(){var p=n.eH,q=a.api.getVideoData(),r=a.api,w=q.Ng[p];p=g.OP(r.app,1).getVideoData();q=r.getCurrentTime();w.id===p.videoId?(w=g.OP(r.app,
1),g.OP(r.app)!==w&&(r.app.kq(),p.isLivePlayback||r.seekTo(q))):r.app.loadVideoByPlayerVars({videoId:w.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.qR}}}},4)}}(e)),f.Ca(this.items),this.j[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=PH(this.api.V(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.j.length;)this.j.pop().dispose();d=this.api.Eb();b=c.length||!b.isLoaded();g.PL(d)||g.OL(d)||b||!this.Ni()||fQ(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Ng,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.j[c].focus();break}};
g.k.ra=function(){g.bb(this.j);g.eQ.prototype.ra.call(this)};g.v(eT,g.E);eT.prototype.j=function(){var a=(0,g.R)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(Io(i9a,a));1>a&&this.delay.start()};
var i9a=new Ho(0,0,.4,0,.2,1,1,1),cMa=/[0-9.-]+|[^0-9.-]+/g;g.v(g.gT,g.W);g.k=g.gT.prototype;g.k.TP=function(a){this.visible=300<=a.width;g.SM(this,this.visible);this.G.Sa(this.element,this.visible&&this.ya)};
g.k.R3=function(){this.G.V().Ma?this.G.isMuted()?this.G.unMute():this.G.mute():fQ(this.message,this.element,!0);this.G.rb(this.element)};
g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.G.V();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.ea;isNaN(f)?fMa(this,a):fT(this.Aa,function(l){fMa(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var h=this.T;isNaN(h)?gMa(this,d):fT(this.Z,function(l){gMa(c,h+(c.C-h)*l)},250);
this.C=d}e.Ma&&(e=pR(this.G,"Mute","m"),d=pR(this.G,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),gS(this.tooltip))};
g.k.hc=function(a){g.W.prototype.hc.call(this,a);this.G.Sa(this.element,this.visible&&a)};
var dMa=["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"],eMa=["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.v(hT,g.W);hT.prototype.onClick=function(){this.G.togglePictureInPicture()};g.v(g.iT,g.W);g.iT.prototype.onStateChange=function(a){this.Fc(a.state)};
g.iT.prototype.Fc=function(a){var b=g.QJ(this.G.getVideoData()),c=!1;g.PL(a)?a=b?4:2:g.V(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=pR(this.G,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:b="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:b=pR(this.G,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:b="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}3===a?this.update({title:b,
icon:hMa(a)}):(this.update({title:b}),(b=hMa(a))&&this.j&&3!==this.j?bMa(this.transition,this.element,b):this.updateValue("icon",b));gS(this.tooltip);this.j=a}};
g.iT.prototype.onVideoDataChange=function(){g.lo(this.element,"ytp-play-button-playlist",g.$P(this.G))};
g.iT.prototype.Sy=function(a){this.G.rb(this.element);if(g.PL(this.G.Eb()))this.G.pauseVideo();else{if(this.G.cg()&&this.G.Eb().isCued()){var b={},c;if(null==(c=this.G.getVideoData())?0:c.J)b.cttAuthInfo={token:this.G.getVideoData().J,videoId:this.G.getVideoData().videoId};jC("direct_playback",b);this.G.Ki().timerName="direct_playback"}else 3===this.j&&this.G.N("html5_watch_action_on_replay")&&DQ(this.G.Ki());this.G.playVideo()}this.G.cg()&&"click"===(null==a?void 0:a.type)&&this.element.blur()};g.v(g.kT,g.W);g.k=g.kT.prototype;g.k.onVideoDataChange=function(){iMa(this);this.C&&(this.Dc(this.C),this.C=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.S(this.G,"progresssync",this.cZ);this.B=jMa(this);jT(this);this.eI(this.G.fb().getPlayerSize())};
g.k.eI=function(a){a=void 0===a?this.G.fb().getPlayerSize():a;var b,c="clips"===(null==(b=this.G.getLoopRange())?void 0:b.type);a=(g.$P(this.G)||this.j&&g.dQ(this.G)||kMa(this))&&!c&&(this.j||400<=a.width);g.SM(this,a);this.G.Sa(this.element,a)};
g.k.onClick=function(a){this.G.rb(this.element);var b=!0;this.I?b=g.lR(a,this.G):g.Xy(a);b&&(this.j&&5===this.G.getPresentingPlayerType()?this.G.ma("ytoprerollinternstitialnext"):this.j?this.G.nextVideo(!0):this.B?this.G.seekTo(0):this.G.previousVideo(!0))};
g.k.cZ=function(){var a=jMa(this);a!==this.B&&(this.B=a,jT(this))};
g.k.ra=function(){this.u&&(this.u(),this.u=null);iMa(this);g.W.prototype.ra.call(this)};g.v(lT,g.W);g.k=lT.prototype;g.k.eZ=function(a){this.gI(a.pageX);this.fI(a.pageX+a.deltaX);mT(this)};
g.k.gI=function(a){this.T=a-this.Aa};
g.k.fI=function(a){a-=this.Aa;if(!isNaN(this.T)&&0<this.thumbnails.length&&(this.J=a-this.T,0<this.thumbnails.length&&0!==this.J))if(this.u=this.I+this.J,a=oMa(this,this.u),this.u<=this.C/2&&this.u>=nMa(this)){this.api.seekTo(a,!1);g.Al(this.B,"transform","translateX("+this.u+"px)");var b=g.UN(a),c=g.qL("Seek to $PROGRESS",{PROGRESS:g.UN(a,!0)});this.update({ariamin:0,ariamax:Math.floor(this.api.getDuration()),arianow:Math.floor(a),arianowtext:c,seekTime:b})}else this.u=this.I};
g.k.dZ=function(){var a=300>(0,g.R)()-this.Ba;if(5>Math.abs(this.J)&&!a){this.Ba=(0,g.R)();a=this.T+this.J;var b=this.C/2-a;this.gI(a);this.fI(a+b);mT(this);this.api.rb(this.B)}mT(this)};
g.k.oy=function(){nT(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(oMa(this,this.u));this.api.playVideo();a&&this.api.rb(this.playButton)};
g.k.Bb=function(a,b){this.Aa=a;this.C=b;nT(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ka=this.api.getCurrentTime(),g.lo(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.oa=this.S(this.element,"wheel",this.eZ),this.Sa(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.lo(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.oa&&this.Dc(this.oa);this.Sa(this.isEnabled)};
g.k.reset=function(){this.disable();this.D=[];this.ea=!1};
g.k.Sa=function(a){this.api.Sa(this.element,a);this.api.Sa(this.B,a);this.api.Sa(this.dismissButton,a);this.api.Sa(this.playButton,a)};
g.k.ra=function(){for(;this.j.length;){var a=void 0;null==(a=this.j.pop())||a.dispose()}g.W.prototype.ra.call(this)};
g.v(lMa,g.W);g.v(oT,g.W);g.v(rMa,g.W);g.v(pT,g.W);pT.prototype.ub=function(a){return"PLAY_PROGRESS"===a?this.I:"LOAD_PROGRESS"===a?this.D:"LIVE_BUFFER"===a?this.C:this.u};sMa.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.C=d;this.j=b-c-d;this.position=g.de(a,c,c+this.j);this.B=this.position-c;this.fraction=this.B/this.j};g.v(sT,g.W);g.v(g.vT,g.TM);g.k=g.vT.prototype;
g.k.pW=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.Qf("timedMarkerCueRange");wT(this);for(var c=g.t(b.mf),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Fd[d])?void 0:e.markers;if(f){a=g.t(f);for(e=a.next();!e.done;e=a.next()){f=e.value;e=new sT;var h=void 0;e.title=(null==(h=f.title)?void 0:h.simpleText)||"";e.timeRangeStartMillis=Number(f.startMillis);e.j=Number(f.durationMillis);var l=h=void 0;e.onActiveCommand=null!=(l=null==(h=f.onActive)?void 0:
h.innertubeCommand)?l:void 0;yMa(this,e)}xT(this,this.T);a=this.T;e=this.nf;f=[];h=null;for(l=0;l<a.length;l++){var m=a[l].timeRangeStartMillis;if(!isNaN(m)&&a[l].onActiveCommand){var n=void 0,p=null!=(n=a[l].j)?n:1E4;h&&h.end>m&&(h.end=m);m=GLa(m,m+p);f.push(m);h=m;e[m.id]=a[l].onActiveCommand}}this.api.Ge(f);this.Sf=this.Fd[d];a=!0}}b.GO=this.T;g.lo(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.Bb=function(){g.yT(this);CT(this);xT(this,this.T);if(this.u){var a=g.Il(this.element).x||0;this.u.Bb(a,this.D)}};
g.k.onClickCommand=function(a){if(a=g.P(a,BJ)){var b=a.key;a.isVisible&&b&&zT(this,b)}};
g.k.g5=function(a){this.api.Oa("innertubeCommand",this.nf[a.id])};
g.k.uc=function(){CT(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.rG()};
g.k.gZ=function(a){if(!g.Yy(a)){var b=!1;switch(g.Zy(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.Xy(a)}};
g.k.Nr=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.T0=function(){this.Nr("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(hK(a)||FT(this)?this.xd=!1:this.xd=a.allowLiveDvr,g.lo(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!hK(a))));PMa(this,this.api.kh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;JT(this);for(DT(this,this.oa,this.Rb);0<this.I.length;)this.I.pop().dispose();this.heatMarkersDecorations=[];this.dc={};var d;null==(d=this.u)||d.reset();PT(this);g.lo(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
uT(this))}else this.rG();g.TU(this.tooltip)}if(a){b=a.watchNextResponse;var e;d="clips"===(null==(e=this.Ab)?void 0:e.type);if(e=!a.isLivePlayback&&b)e=this.api.getVideoData(),b=tT(e)?g.BI(e):e.multiMarkersPlayerBarRenderer,c=uMa(e),e=null!=b||null!=c&&0<c.length||0<e.zw.length;if(e&&!d){e=this.api.getVideoData();b=tT(e)?g.BI(e):e.multiMarkersPlayerBarRenderer;d=!1;if(null==b?0:b.markersMap){d=this.api.getVideoData();var f;d.Vv=(null==(f=b.visibleOnLoad)?void 0:f.key)||d.Vv;f=g.t(b.markersMap);for(b=
f.next();!b.done;b=f.next())b=b.value,b.key&&b.value&&(this.dc[b.key]=b.value,b.value.onChapterRepeat&&(d.OZ=b.value.onChapterRepeat));null!=d.Vv&&zT(this,d.Vv);d=!0}if(this.api.V().N("web_key_moments_markers")&&0<e.zw.length){f=g.CJ.getState().entities;b=g.t(e.zw);for(c=b.next();!c.done;c=b.next()){c=c.value;var h=void 0,l=null==(h=f.macroMarkersListEntity?f.macroMarkersListEntity[c]||null:null)?void 0:h.markersList;h=void 0;"MARKER_TYPE_TIMESTAMPS"===(null==(h=l)?void 0:h.markerType)&&(this.Fd[c]=
l)}d=this.pW()||d}!d&&(f=uMa(e))&&(wMa(this,f),e.yk=this.j,vMa(this));GMa(this,null);a.XQ&&0===this.I.length&&(a=a.XQ,e=a.key,a.isVisible&&e&&zT(this,e))}else tMa(this),wT(this)}CT(this)};
g.k.fZ=function(a){this.ea&&!g.V(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.ea.cancel();var b;(null==(b=this.u)?0:b.isEnabled)&&g.V(a.state,8)&&this.api.pauseVideo()};
g.k.UP=function(a){var b=!!this.Ab!==!!a,c=this.Ab;this.Ab=a;GMa(this,c);"clips"!==(null==a?void 0:a.type)&&a||(a?(this.updateValue("clipstarticon",WEa()),this.updateValue("clipendicon",WEa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",REa()),this.updateValue("clipendicon",QEa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),
!0),g.yT(this)),JT(this));DT(this,this.oa,this.Rb)};
g.k.l4=function(a,b,c){var d=g.Il(this.element),e=BT(this).j,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=aO(this.B,Number(c.getAttribute("data-position")),0)*e+g.Il(this.Hc).x);this.Fb.x=a-d.x;this.Fb.y=b-d.y;a=BT(this);c=HT(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:hK(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,b=-this.Ba,m=aO(this.B,m)*BT(this).j+b,a.position=m),
b=this.B.u;FT(this)&&(b=this.B.u);m=f||g.UN(this.xd?c-this.B.j:c-b);b=a.position+this.fh;c-=this.api.Ld();var n;if(null==(n=this.u)||!n.isEnabled)if(this.api.tj()){if(1<this.j.length){n=GT(this,this.Fb.x,!0);if(!this.Ab)for(d=0;d<this.j.length;)g.lo(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.I.length)for(d=0;d<this.j.length;d++)g.lo(this.I[d].element,"ytp-heatmap-hover",d===n)}if(0<this.T.length)for(n=this.Fb.x,d=g.t(this.T),e=d.next();!e.done;e=d.next())e=e.value,h=AT(this,e.timeRangeStartMillis/
(1E3*this.B.j),BT(this)),g.lo(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.N("web_key_moments_markers")?this.Sf?(n=DLa(this.T,1E3*c),n=null!=n?this.T[n].title:""):(n=pS(this.j,1E3*c),n=this.j[n].title):(n=pS(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=pS(this.j,1E3*c);this.gb=HMa(this,c,d)?d:HMa(this,c,d+1)?d+1:-1;g.lo(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.gb&&1<this.j.length);d=!1;
e=g.t(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=1E3*c;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.UN(h.decorationTimeMillis/1E3),d=!0)}this.Oe!==d&&(this.Oe=d,this.api.Sa(this.Xd,this.Oe));g.lo(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.C?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.D-a.position&&(d=2);this.api.V().I&&(l-=10);
this.I.length&&this.I[0].isValid&&(l-=14*(this.C?2:1),this.Ma||(this.Ma=!0,this.api.Sa(this.Aa,this.Ma)));var q;if(uT(this)&&((null==(q=this.u)?0:q.isEnabled)||0<this.Z)){var r;l-=(null==(r=this.u)?0:r.isEnabled)?LT(this):this.Z}q=void 0;uT(this)&&(q="Pull up for precise seeking",this.api.Sa(this.Mg,!0));kNa(this.tooltip,b,c,m,!!f,l,n,d,q)}else kNa(this.tooltip,b,c,m,!!f,l);g.ho(this.api.getRootNode(),"ytp-progress-bar-hover");FMa(this)};
g.k.j4=function(){g.TU(this.tooltip);g.jo(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ma&&(this.Ma=!1,this.api.Sa(this.Aa,this.Ma))};
g.k.i4=function(a,b){uT(this)&&this.u&&(this.u.ea?nT(this.u,this.api.getCurrentTime()):mMa(this.u),this.u.show(),g.lo(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled));this.J&&(this.J.dispose(),this.J=null);this.Xe=b;1<this.j.length&&-1!==this.gb?this.api.seekTo(this.j[this.gb].startTime/1E3,!1):this.api.seekTo(HT(this,BT(this)),!1);g.ho(this.element,"ytp-drag");(this.qf=g.PL(this.api.Eb()))&&this.api.pauseVideo()};
g.k.m4=function(){var a=this;if(uT(this)&&this.u){var b=LT(this);this.Z>=.5*b?(this.u.enable(),nT(this.u,this.api.getCurrentTime()),OMa(this,b)):PT(this)}else if(this.jd=0,g.jo(this.element,"ytp-pull-ui"),g.jo(this.element,"ytp-pulling"),this.J&&(this.J.dispose(),this.J=null),0<this.Z){var c=(0,g.R)();this.J=new g.Xn(function(){var f=a.Z,h=BT(a).position,l=1-Math.pow(1-((0,g.R)()-c)/200,3);h+=l*(a.oa*a.D-h);if(0>l||1<l)l=1;IMa(a,(1-l)*f,h,a.oa);1>l&&a.J.start();a.Pa&&(a.Pa=!1,a.api.Sa(a.kb,a.Pa))});
this.J.start()}if(g.V(this.api.Eb(),32)||3===this.api.getPresentingPlayerType()){var d;if(null==(d=this.u)?0:d.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.gb)this.api.seekTo(this.j[this.gb].startTime/1E3);else{b=HT(this,BT(this));this.api.seekTo(b);d=g.t(this.heatMarkersDecorations);for(var e=d.next();!e.done;e=d.next())e=e.value,1E3*b>=e.visibleTimeRangeStartMillis&&1E3*b<=e.visibleTimeRangeEndMillis&&this.api.rb(this.Xd)}g.jo(this.element,"ytp-drag");
this.qf&&!g.V(this.api.Eb(),2)&&this.api.playVideo()}}};
g.k.n4=function(a,b){var c=this,d=!1,e=!1;a=BT(this);1===this.j.length&&!IT(this)&&3600<=ZN(this.B)&&(IMa(this,this.Xe-b-10,a.position,a.fraction),e=!0,d=this.Z>.1*(this.C?60:40),a=BT(this));g.lo(this.element,"ytp-pull-ui",e);d&&g.ho(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.C&&a.position>=a.width&&(d=1);if(this.jd!==d&&(this.jd=d,this.J&&(this.J.dispose(),this.J=null),d)){var f=(0,g.R)();this.J=new g.Xn(function(){var l=c.D*(c.Xa-1);c.Ba=g.de(c.Ba+c.jd*((0,g.R)()-f)*.3,0,l);ET(c);
c.api.seekTo(HT(c,BT(c)),!1);0<c.Ba&&c.Ba<l&&c.J.start()});
this.J.start()}a=HT(this,a);this.api.seekTo(a,!1);var h;uT(this)&&(null==(h=this.u)?0:h.ea)&&(nT(this.u,a),this.u.isEnabled||(this.Z=g.de(this.Xe-b-10,0,LT(this)),OMa(this,this.Z)))};
g.k.PT=function(){this.Ab||(this.updateValue("clipstarticon",PEa()),this.updateValue("clipendicon",PEa()),g.ho(this.element,"ytp-clip-hover"))};
g.k.OT=function(){this.Ab||(this.updateValue("clipstarticon",REa()),this.updateValue("clipendicon",QEa()),g.jo(this.element,"ytp-clip-hover"))};
g.k.rG=function(){this.clipStart=0;this.clipEnd=Infinity;JT(this);DT(this,this.oa,this.Rb)};
g.k.rW=function(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Va[c]){var d=g.Oe("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Va[c]=b;this.Lc[c]=d;g.fo(d,b.style);JMa(this,c);this.api.V().N("disable_ad_markers_on_content_progress_bar")||this.j[0].B.appendChild(d)}}else NMa(this,b)};
g.k.U5=function(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())NMa(this,b.value)};
g.k.jr=function(a){if(this.u){var b=this.u;a=null!=a;b.api.seekTo(b.Ka);b.api.playVideo();a&&b.api.rb(b.dismissButton);PT(this)}};
g.k.UJ=function(a){this.u&&(this.u.play(null!=a),PT(this))};
g.k.ra=function(){PMa(this,!1);g.TM.prototype.ra.call(this)};g.v(QT,g.W);QT.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
QT.prototype.La=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.SM(this,a&&400<=this.G.fb().getPlayerSize().width);this.G.Sa(this.element,this.sb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{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.OEa())}g.lo(this.element,"ytp-remote-button-active",this.isActive())}};
QT.prototype.u=function(){this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.ob.PG(this.element);this.G.rb(this.element)};g.v(RT,g.W);RT.prototype.j=function(a){g.SM(this,this.u&&400<=a.width)};
RT.prototype.B=function(){var a=this.ob;a.sb?a.yb():a.Pc(this.element)};g.v(ST,g.hQ);ST.prototype.onClick=function(){this.ob.yb()};g.v(UT,ST);UT.prototype.onClick=function(){ST.prototype.onClick.call(this);this.G.Oa("onCollapseMiniplayer");this.G.rb(this.element)};
UT.prototype.La=function(){var a=!this.G.isFullscreen();TT(this,a);this.G.Sa(this.element,this.j)};g.v(VT,ST);VT.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
VT.prototype.La=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);TT(this,a&&!this.G.isFullscreen());this.G.Sa(this.element,this.j);var b=1;a&&this.isActive()&&(b=2);if(this.B!==b)switch(this.B=b,b){case 1:this.updateValue("icon",{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Tb:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.updateValue("icon",{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Tb:!0,X:{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"}}]})}};
VT.prototype.onClick=function(){ST.prototype.onClick.call(this);this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.C.PG(this.element);this.G.rb(this.element)};g.v(WT,ST);WT.prototype.onClick=function(){ST.prototype.onClick.call(this);YXa(this.G.app);this.G.rb(this.element)};
WT.prototype.La=function(){var a=this.G.nB()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType();TT(this,a);this.j&&(a=this.G.isWidescreen(),this.isWidescreen!==a&&(jQ(this,a?{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Tb:!0,X:{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"}}]}:{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Tb:!0,X:{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.isWidescreen=a,this.u.updateValue("title",a?"Default view":"Theater mode")));this.G.Sa(this.element,this.j)};g.v(XT,g.aS);g.k=XT.prototype;g.k.jN=function(a){this.mq=a;this.element.id=a.element.getAttribute("aria-owns")};
g.k.Pc=function(a){0<this.zd.rj()&&g.aS.prototype.Pc.call(this,a)};
g.k.Jc=function(a){this.zd.Jc(a);a=this.mq;a.u=0<this.zd.rj();a.j(a.G.fb().getPlayerSize())};
g.k.fg=function(a){this.sb&&1>=this.zd.rj()&&this.hide();this.zd.fg(a);a=this.mq;a.u=0<this.zd.rj();a.j(a.G.fb().getPlayerSize())};
g.k.PG=function(){};g.v(ZT,g.W);ZT.prototype.j=function(a){var b=400;this.G.V().I&&(b=200);a=this.u&&a.width>=b;g.SM(this,a);this.G.Sa(this.element,a)};
ZT.prototype.B=function(){if(this.ob.sb)this.ob.yb();else{var a=g.UQ(this.G.vb());a&&!a.loaded&&(a.hh("tracklist",{includeAsr:!0}).length||a.load());this.G.rb(this.element);this.ob.Pc(this.element)}};
ZT.prototype.updateBadge=function(){var a=this.G.isHdr(),b=this.G.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.bQ(this.G),e=c&&!!g.aQ(this.G.vb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.G.getPlaybackQuality();g.lo(this.element,"ytp-hdr-quality-badge",a);g.lo(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.lo(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.lo(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.lo(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.lo(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.lo(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(aU,oQ);aU.prototype.isLoaded=function(){var a=g.cR(this.G.vb());return void 0!==a&&a.loaded};
aU.prototype.La=function(){void 0!==g.cR(this.G.vb())&&3!==this.G.getPresentingPlayerType()?this.j||(this.ob.Jc(this),this.j=!0):this.j&&(this.ob.fg(this),this.j=!1);this.setValue(this.isLoaded())};
aU.prototype.onSelect=function(a){this.isLoaded();a?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.ma("annotationvisibility",a)};
aU.prototype.ra=function(){this.j&&this.ob.fg(this);oQ.prototype.ra.call(this)};g.v(g.bU,g.hQ);g.k=g.bU.prototype;g.k.open=function(){g.ZR(this.ob,this.u)};
g.k.dj=function(a){RMa(this);this.options[a].element.setAttribute("aria-checked","true");this.ke(this.Vk(a));this.selectedKey=a};
g.k.cJ=function(a,b,c){var d=this;b=new g.hQ({F:"div",Ga:["ytp-menuitem"],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},W:[{F:"div",Ga:["ytp-menuitem-label"],qa:"{{label}}"}]},b,this.Vk(a,!0));b.Qa("click",function(){d.Lg(a)});
return b};
g.k.enable=function(a){this.D?a||(this.D=!1,this.qw(!1)):a&&(this.D=!0,this.qw(!0))};
g.k.qw=function(a){a?this.ob.Jc(this):this.ob.fg(this)};
g.k.Lg=function(a){this.ma("select",a)};
g.k.Vk=function(a){return a.toString()};
g.k.hZ=function(a){g.Yy(a)||39!==g.Zy(a)||(this.open(),g.Xy(a))};
g.k.ra=function(){this.D&&this.ob.fg(this);g.hQ.prototype.ra.call(this);for(var a=g.t(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.v(dU,g.bU);dU.prototype.La=function(){var a=this.G.getAvailableAudioTracks();1<a.length?(g.cU(this,g.Lg(a,this.B)),this.tracks=g.Gb(a,this.B,this),this.j.ke(a.length?" ("+a.length+")":""),this.ma("size-change"),this.dj(this.B(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)};
dU.prototype.Lg=function(a){g.bU.prototype.Lg.call(this,a);this.G.setAudioTrack(this.tracks[a]);this.ob.Ri()};
dU.prototype.B=function(a){return a.toString()};g.v(eU,oQ);
eU.prototype.u=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&g.dQ(this.G))this.j||(this.ob.Jc(this),this.j=!0,this.B.push(this.S(this.G,"videodatachange",this.u)),this.B.push(this.S(this.G,"videoplayerreset",this.u)),this.B.push(this.S(this.G,"onPlaylistUpdate",this.u)),this.B.push(this.S(this.G,"autonavchange",this.C)),a=this.G.getVideoData(),this.C(a.autonavState),this.G.Sa(this.element,this.j));else if(this.j){this.ob.fg(this);this.j=!1;a=g.t(this.B);for(var b=a.next();!b.done;b=a.next())this.Dc(b.value)}};
eU.prototype.C=function(a){this.setValue(1!==a)};
eU.prototype.onSelect=function(a){this.G.wG(a?2:1);this.j&&(this.G.Sa(this.element,this.j),this.G.rb(this.element))};
eU.prototype.ra=function(){this.j&&this.ob.fg(this);oQ.prototype.ra.call(this)};g.v(fU,g.hQ);fU.prototype.onClick=function(a){a.preventDefault();var b,c;null==(b=g.QP(this.G))||null==(c=b.nm())||c.yb();var d,e;null==(d=g.QP(this.G))||null==(e=d.xE())||e.Pc(a.target)};g.v(gU,g.W);gU.prototype.onClick=function(){this.ob.yb()};
gU.prototype.ph=function(a){this.updateValue("label",a);this.mq.updateValue("title",a)};g.v(hU,gU);hU.prototype.onClick=function(){gU.prototype.onClick.call(this);this.G.Oa("onCollapseMiniplayer");this.G.rb(this.element)};
hU.prototype.La=function(){var a=!this.G.isFullscreen();g.SM(this,a);this.G.Sa(this.element,a)};g.v(iU,g.bU);g.k=iU.prototype;
g.k.Mz=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a){this.Z=this.G.xr();a=this.G.getAvailableQualityLevels();if(this.j){this.B={};var b=g.NP(this.G,"getAvailableQualityData",[]);b=g.t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.B[c.qualityLabel]=c;b=Object.keys(this.B);"auto"===a[a.length-1]&&b.push("auto");this.ea=new Set(a)}else if(this.C){c=g.NP(this.G,"getAvailableQualityData",[]);b=[];c=g.t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.J[d.quality]=
d,d.quality&&b.push(d.quality);"auto"===a[a.length-1]&&b.push("auto")}else b=a;g.KJa(this.G)&&this.G.wu()&&b.unshift("missing-qualities");LJa(this.G)&&b.unshift("inline-survey");g.cU(this,b);a=this.G.getVideoData().cotn?!0:!1;c=!g.SH(this.G.V())||!(void 0===a?0:a);a=this.u;c=void 0===c?!1:c;c=void 0===c?!1:c;a.wS&&(a=a.Ea("ytp-panel-footer"),g.lo(a,"ytp-panel-hide-footer",c));if(b.length){this.VP();this.enable(!0);return}}this.enable(!1)};
g.k.VP=function(){if(this.j){var a=this.G.getPreferredQuality();this.ea.has(a)&&(this.I=this.G.getPlaybackQuality(),this.T=this.G.getPlaybackQualityLabel(),"auto"===a?(this.dj(a),this.ke(this.Vk(a))):this.dj(this.T))}else a=this.G.getPreferredQuality(),this.options[a]&&(this.I=this.G.getPlaybackQuality(),this.dj(a),"auto"===a&&this.ke(this.Vk(a)))};
g.k.Lg=function(a){if("missing-qualities"!==a){g.bU.prototype.Lg.call(this,a);var b=this.j?this.B[a]:this.J[a];var c=null==b?void 0:b.quality,d=null==b?void 0:b.formatId,e=null==b?void 0:b.paygatedQualityDetails;b=null==e?void 0:e.endpoint;if(e){var f;e=null==(f=this.options[a])?void 0:f.element;this.G.rb(e)}if(this.j){if(b){this.G.Oa("innertubeCommand",b);return}d?this.G.setPlaybackQuality(c,d):this.G.setPlaybackQuality(c)}else{if(this.C){var h,l;if(this.G.N("web_player_enable_early_warning_snackbar")&&
(null==(h=g.P(b,g.Z5a))?0:null==(l=h.popup)?0:l.notificationActionRenderer))this.G.Oa("innertubeCommand",b);else if(b){this.G.Oa("innertubeCommand",b);return}}this.G.setPlaybackQuality(a)}this.ob.yb();this.Mz()}};
g.k.open=function(){for(var a=g.t(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.G.gk(null==(c=b)?void 0:c.element)&&(c=void 0,this.G.Sa(null==(c=b)?void 0:c.element,!0))}g.bU.prototype.open.call(this);this.G.rb(this.element)};
g.k.cJ=function(a,b,c){var d=this;if("inline-survey"!==a){var e,f=null==(e=this.j?this.B[a]:this.J[a])?void 0:e.paygatedQualityDetails;e=null==f?void 0:f.veType;f=null==f?void 0:f.trackingParams;b=g.bU.prototype.cJ.call(this,a,b,c);f?(this.G.Og(b.element,this,!0),this.G.Ph(b.element,f)):e&&this.G.qb(b.element,this,e,!0);return b}a=[{F:"span",qa:"Looks good?"}];c={};e=g.t([!0,!1]);for(f=e.next();!f.done;c={YC:c.YC},f=e.next())c.YC=f.value,f=new g.W({F:"span",K:"ytp-menuitem-inline-survey-response",
W:[c.YC?g.$M():TEa()],X:{tabindex:"0",role:"button"}}),f.Qa("click",function(h){return function(){var l=h.YC,m=g.OP(d.G.app);m&&(m.xa("iqsr",{tu:l}),m.getVideoData().rQ=!0);d.ob.yb();d.Mz()}}(c)),a.push(f);
return new g.hQ({F:"div",K:"ytp-menuitem",X:{"aria-disabled":"true"},W:[{F:"div",Ga:["ytp-menuitem-label"],W:a}]},b)};
g.k.Vk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{F:"a",X:{href:"https://web.archive.org/web/20230104105643/https://support.google.com/youtube/?p=missing_quality",target:this.G.V().T},qa:"Missing options?"};if("inline-survey"===a)return"";var c=this.C||this.j?[jU(this,a,b,!1)]:[TMa(this,a)];var d=this.G.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(jU(this,this.T,b,!0,["ytp-menu-label-secondary"])):this.C?c.push(jU(this,this.I,b,!0,["ytp-menu-label-secondary"])):c.push(TMa(this,this.I,["ytp-menu-label-secondary"])));
return{F:"div",W:c}};g.v(kU,gU);kU.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
kU.prototype.La=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.SM(this,a);this.G.Sa(this.element,this.sb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b)switch(this.j=b,b){case 1:this.updateValue("icon",NEa());break;case 2:this.updateValue("icon",{F:"svg",X:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},W:[{F:"path",X:{d:"M22,20l-8-0.04L14,19l7,.04V5H3L2.99,8L2,8l0.02-4H22V20z M2,17.32V20h2.73C4.73,18.52,3.51,17.32,2,17.32z M2,13.75v1.79 c2.51,0,4.55,2,4.55,4.46h1.82C8.36,16.55,5.52,13.75,2,13.75z M2,10.18v1.79c4.52,0,8.18,3.6,8.18,8.03H12 C12,14.57,7.52,10.18,2,10.18z M5,7v1.39c4.21,1.09,7.52,4.39,8.61,8.61H19V7H5z",
fill:"white"}}]})}};
kU.prototype.onClick=function(){gU.prototype.onClick.call(this);this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.ob.PG(this.element);this.G.rb(this.element)};g.v(lU,g.TM);lU.prototype.addButton=function(a){this.element.appendChild(a.element)};
lU.prototype.removeButton=function(a){this.element.removeChild(a.element)};g.v(mU,gU);mU.prototype.onClick=function(){gU.prototype.onClick.call(this);YXa(this.G.app);this.G.rb(this.element)};
mU.prototype.La=function(){g.SM(this,this.G.nB()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.sb){var a=this.G.isWidescreen();this.isWidescreen!==a&&(this.mq.updateValue("icon",a?{F:"svg",X:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},W:[{F:"path",X:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M5,12v18h30V12H5z M10.21,26.71l-1.41-1.41L13.09,21l-4.29-4.29l1.41-1.41  L15.91,21L10.21,26.71z M31.21,25.29l-1.41,1.41L24.09,21l5.71-5.71l1.41,1.41L26.91,21L31.21,25.29z",
fill:"white"}}]}:bFa()),this.ph(pR(this.G,a?"Default view":"Theater mode","t")),this.isWidescreen=a)}this.G.Sa(this.element,this.sb)};g.v(nU,g.W);g.k=nU.prototype;g.k.init=function(){this.Av(this.j);this.updateValue("minvalue",this.minimumValue);this.updateValue("maxvalue",this.maximumValue)};
g.k.kZ=function(a){if(!g.Yy(a)){switch(g.Zy(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.Av(this.j+b);g.Xy(a)}};
g.k.iZ=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.Av(b);g.Xy(a)};
g.k.jZ=function(a){a=(a-g.Il(this.u).x)/this.J*this.range+this.minimumValue;this.Av(a)};
g.k.Av=function(a,b){b=void 0===b?"":b;a=g.de(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.T.style.left=(a-this.minimumValue)/this.range*(this.J-this.ea)+"px";this.j=a};
g.k.focus=function(){this.oa.focus()};g.v(pU,nU);pU.prototype.Z=function(){this.G.setPlaybackRate(this.j,!0)};
pU.prototype.Av=function(a){nU.prototype.Av.call(this,a,qU(this,a).toString());this.B&&(oU(this),this.Aa())};
pU.prototype.updateValues=function(){var a=this.G.getPlaybackRate();qU(this,this.j)!==a&&(this.Av(a),oU(this))};g.v(rU,g.TM);rU.prototype.focus=function(){this.j.focus()};g.v(UMa,RR);g.v(sU,g.bU);g.k=sU.prototype;g.k.Vk=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.La=function(){var a=this.G.getPresentingPlayerType();this.enable(2!==a&&3!==a);XMa(this)};
g.k.qw=function(a){g.bU.prototype.qw.call(this,a);a?(this.I=this.S(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),XMa(this),VMa(this,this.G.getPlaybackRate())):(this.Dc(this.I),this.I=null)};
g.k.onPlaybackRateChange=function(a){var b=this.G.getPlaybackRate();this.C.includes(b)||WMa(this,b);VMa(this,a)};
g.k.Lg=function(a){g.bU.prototype.Lg.call(this,a);a===this.j?this.G.setPlaybackRate(this.B,!0):this.G.setPlaybackRate(Number(a),!0);this.ob.Ri()};g.v(uU,g.bU);g.k=uU.prototype;g.k.dj=function(a){g.bU.prototype.dj.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Vk=function(a){return this.getOption(a).text||""};
g.k.Lg=function(a){g.bU.prototype.Lg.call(this,a);this.ma("settingChange",this.setting,this.settings[a].option)};g.v(vU,g.SR);vU.prototype.qh=function(a){for(var b=g.t(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.us[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.dj(e),c.B.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
vU.prototype.Gj=function(a,b){this.ma("settingChange",a,b)};g.v(wU,g.bU);wU.prototype.getKey=function(a){return a.languageCode};
wU.prototype.Vk=function(a){return this.languages[a].languageName||""};
wU.prototype.Lg=function(a){this.ma("select",a);this.G.rb(this.element);g.cS(this.ob)};g.v(xU,g.bU);g.k=xU.prototype;g.k.getKey=function(a){return g.Uc(a)?"__off__":a.displayName};
g.k.Vk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":"__correction__"===a?"Suggest caption corrections":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.Lg=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var b=g.hP(this.G.V(),this.G.getVideoData());g.gO(b)}else if("__correction__"===a){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var c=yU(this);zU(this,c);g.bU.prototype.Lg.call(this,this.getKey(c));var d,e;c=null==(b=this.G.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)?
void 0:e.openTranscriptCommand;this.G.Oa("innertubeCommand",c);this.ob.Ri();this.B&&this.G.rb(this.B)}else{if("__correction__"===a){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();b=yU(this);zU(this,b);g.bU.prototype.Lg.call(this,this.getKey(b));var f,h;b=null==(c=this.G.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.G.Oa("innertubeCommand",b)}else this.G.rb(this.element),zU(this,
"__off__"===a?{}:this.tracks[a]),g.bU.prototype.Lg.call(this,a);this.ob.Ri()}};
g.k.La=function(){var a=this.G.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.G.getVideoData(),c=b&&b.PD,d,e=!(null==(d=this.G.getVideoData())||!g.dK(d));d={};if(a||c){var f;if(a){var h=this.G.getOption("captions","track");d=this.G.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.Gb(d,this.getKey,this);e=g.Lg(d,this.getKey);var m=yU(this),n,p;b.N("suggest_caption_correction_menu_item")&&m&&(null==(f=b.getPlayerResponse())?
0:null==(n=f.captions)?0:null==(p=n.playerCaptionsTracklistRenderer)?0:p.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.Uc(h)){if((f=h.translationLanguage)&&f.languageName){var q=f.languageName;f=l.findIndex(function(r){return r.languageName===q});
Caa(l,f)}ZMa(this.j,l);e.push("__translate__")}f=this.getKey(h)}else this.tracks={},e=[],f="__off__";e.unshift("__off__");this.tracks.__off__={};c&&e.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=h,e.push(f));g.cU(this,e);this.dj(f);h&&h.translationLanguage?this.j.dj(this.j.getKey(h.translationLanguage)):RMa(this.j);a&&this.C.qh(this.G.getSubtitlesUserSettings());this.J.ke(d&&d.length?" ("+d.length+")":"");this.ma("size-change");this.G.Sa(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.lZ=function(a){var b=this.G.getOption("captions","track");b=g.Yc(b);b.translationLanguage=this.j.languages[a];zU(this,b)};
g.k.Gj=function(a,b){if("reset"===a)this.G.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.G.updateSubtitlesUserSettings(c)}$Ma(this,!0);this.I.start();this.C.qh(this.G.getSubtitlesUserSettings())};
g.k.P4=function(a){a||g.bo(this.I)};
g.k.ra=function(){g.bo(this.I);g.bU.prototype.ra.call(this)};
g.k.open=function(){g.bU.prototype.open.call(this);this.options.__correction__&&!this.B&&(this.B=this.options.__correction__.element,this.G.qb(this.B,this,167341),this.G.Sa(this.B,!0))};g.v(AU,g.aS);g.k=AU.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.G.V();this.isInitialized=!0;var b=new iU(this.G,this);g.H(this,b);b=new xU(this.G,this);g.H(this,b);a.j||(b=new aU(this.G,this),g.H(this,b));a.Xe&&(b=new sU(this.G,this),g.H(this,b));this.G.N("embeds_web_enable_new_context_menu_triggering")&&g.tH(a)&&(a.isMobile||a.Ac)&&(b=new fU(this.G,this),g.H(this,b));a.Wd&&!a.N("web_player_move_autonav_toggle")&&(a=new eU(this.G,this),g.H(this,a));a=new dU(this.G,this);g.H(this,a);this.G.ma("settingsMenuInitialized");
$T(this.settingsButton,this.zd.rj())}};
g.k.Jc=function(a){this.initialize();this.zd.Jc(a);$T(this.settingsButton,this.zd.rj())};
g.k.fg=function(a){this.sb&&1>=this.zd.rj()&&this.hide();this.zd.fg(a);$T(this.settingsButton,this.zd.rj())};
g.k.Pc=function(a){this.initialize();0<this.zd.rj()&&g.aS.prototype.Pc.call(this,a)};
g.k.yb=function(){this.sM?this.sM=!1:g.aS.prototype.yb.call(this)};
g.k.show=function(){g.aS.prototype.show.call(this);g.ho(this.G.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.aS.prototype.hide.call(this);g.jo(this.G.getRootNode(),"ytp-settings-shown")};
g.k.dg=function(a){this.G.Sa(this.element,a);this.G.ma("settingsMenuVisibilityChanged",a)};
g.k.PG=function(a){if(this.Ni())this.yb();else{this.initialize();a:{var b=g.t(this.zd.items);for(var c=b.next();!c.done;c=b.next())if(c=c.value,1===c.priority){b=c;break a}b=null}b&&(b.open(),this.Pc(a));this.Pc(a)}};g.v(BU,g.W);BU.prototype.onClick=function(){YXa(this.G.app);this.G.rb(this.element)};
BU.prototype.La=function(){g.SM(this,this.G.nB()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.sb){var a=this.G.isWidescreen();if(this.isWidescreen!==a){var b=a?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{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"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Tb:!0,X:{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"}}]};null==this.isWidescreen?this.updateValue("icon",b):bMa(this.transition,this.element,b);this.isWidescreen=a;b=pR(this.G,"Default view","t");var c=pR(this.G,"Theater mode","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Default view":"Theater mode"});gS(this.tooltip)}}this.G.Sa(this.element,this.sb)};g.v(g.CU,g.W);g.CU.prototype.onClick=function(){if(null!=g.UQ(this.G.vb())&&(this.G.toggleSubtitles(),this.G.rb(this.element),!this.isEnabled())){var a=!1,b=g.Gw(g.Fw.getInstance(),65);g.SH(this.G.V())&&null!=b&&(a=!b);a&&this.G.V().N("web_player_nitrate_promo_tooltip")&&this.G.ma("showpromotooltip",this.element)}};
g.CU.prototype.j=function(a){var b,c;null==(b=g.QP(this.G))||null==(c=b.nm())||c.Pc(a)};
g.CU.prototype.isEnabled=function(){return!!this.G.getOption("captions","track").displayName};
g.CU.prototype.La=function(){var a=null!=g.UQ(this.G.vb()),b=300;this.G.V().I&&(b=480);if(this.G.V().J){this.updateValue("title",pR(this.G,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)null==(c=this.Ea("ytp-subtitles-button-icon"))||c.setAttribute("fill-opacity","1"),this.updateValue("title",pR(this.G,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;null==(d=this.Ea("ytp-subtitles-button-icon"))||
d.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}c=!0}gS(this.tooltip);c=c&&this.G.fb().getPlayerSize().width>=b;g.SM(this,c);this.G.Sa(this.element,c);a&&this.updateValue("pressed",this.isEnabled())};g.v(g.EU,g.W);g.k=g.EU.prototype;
g.k.uc=function(){var a=this.api.fb().getPlayerSize().width,b=this.J;this.api.V().I&&(b=400);b=a>=b&&(!GU(this)||!g.V(this.api.Eb(),64));g.SM(this,b);g.lo(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);FU(this)&&(c-=this.Ab.startTimeMs/1E3);c=g.UN(c);this.B!==c&&(this.updateValue("currenttime",c),this.B=
c);b=FU(this)?g.UN((this.Ab.endTimeMs-this.Ab.startTimeMs)/1E3):g.UN(this.api.V().N("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.updateValue("duration",b),this.C=b)}a=a.isAtLiveHead;!GU(this)||this.I===a&&this.D===this.isPremiere||(this.I=a,this.D=this.isPremiere,this.uc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.ke(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",
this.j=g.JR(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Ab!==a;this.Ab=a;b&&DU(this)};
g.k.onLoopRangeChange=function(a){var b=this.Ab!==a;this.Ab=a;b&&(this.uc(),DU(this))};
g.k.u5=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().N("enable_topsoil_wta_for_halftime")||this.api.V().N("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.uc();DU(this)};
g.k.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.Rb;this.u=hK(a);this.isPremiere=a.isPremiere;g.lo(this.element,"ytp-live",GU(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.ra=function(){this.j&&this.j();g.W.prototype.ra.call(this)};g.v(JU,g.W);g.k=JU.prototype;g.k.eq=function(){var a=this.j.ag();this.C!==a&&(this.C=a,IU(this,this.api.getVolume(),this.api.isMuted()))};
g.k.WP=function(a){g.SM(this,350<=a.width)};
g.k.oZ=function(a){if(!g.Yy(a)){var b=g.Zy(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.de(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Xy(a))}};
g.k.mZ=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.de(b/10,-10,10));g.Xy(a)};
g.k.U4=function(){HU(this,this.u,!0,this.B,this.j.rl());this.Z=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.nZ=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Il(this.T).x;this.api.setVolume(100*g.de((a-c/2)/(b-c),0,1))};
g.k.T4=function(){HU(this,this.u,!1,this.B,this.j.rl());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Z))};
g.k.onVolumeChange=function(a){IU(this,a.volume,a.muted)};
g.k.ZQ=function(){HU(this,this.u,this.isDragging,this.B,this.j.rl())};
g.k.ra=function(){g.W.prototype.ra.call(this);g.jo(this.J,"ytp-volume-slider-active")};g.v(g.KU,g.W);g.KU.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.Z);g.SM(this,this.visible);this.api.Sa(this.element,this.visible&&this.ya);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a));b.j&&(this.j&&(this.Dc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.ho(this.element,"no-link"))};
g.KU.prototype.onClick=function(a){var b=this.api.V(),c=this.api.getVideoUrl(!g.VN(a),!1,!0,!0);if(g.tH(b)||g.DH(b)){var d={};b.Ka&&g.tH(b)&&g.jP(d,b.loaderUrl);g.tH(b)&&g.NP(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.ci(c,g.iP(d,"emb_logo"))}g.mR(c,this.api,a);this.api.rb(this.element)};
g.KU.prototype.Bb=function(){var a={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{F:"path",Tb:!0,K:"ytp-svg-fill",X:{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 "}}]};
if(g.DH(this.api.V())){var b=this.Ea("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{F:"svg",X:{fill:"none",height:"24",width:"24"},W:[{F:"circle",X:{cx:"12",cy:"12",fill:"red",r:"12"}},{F:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",X:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{F:"svg",X:{viewBox:"0 0 80 24"},W:[{F:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{F:"ellipse",X:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",X:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z",
fill:"#fff"}}]};g.lo(b,"ytp-youtube-music-logo-icon-only",c)}else this.u.Me()&&(a={F:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{F:"path",X:{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"}}]});a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a)};
g.KU.prototype.hc=function(a){g.W.prototype.hc.call(this,a);this.api.Sa(this.element,this.visible&&a)};g.v(LU,g.vF);g.k=LU.prototype;g.k.De=function(){this.Hc.uc();this.Zi.uc()};
g.k.Gm=function(){this.hI();if(this.Qe.u){this.De();var a;null==(a=this.Xa)||a.show()}else{g.TU(this.Hc.tooltip);var b;null==(b=this.Xa)||b.hide()}};
g.k.Tu=function(){this.De();this.Ze.start()};
g.k.hI=function(){var a=!this.G.V().isMobile&&300>g.QMa(this.Hc)&&this.G.Eb().Wc()&&!!window.requestAnimationFrame,b=!a;this.Qe.u||(a=b=!1);b?this.T||(this.T=this.S(this.G,"progresssync",this.De)):this.T&&(this.Dc(this.T),this.T=null);a?this.Ze.isActive()||this.Ze.start():this.Ze.stop()};
g.k.Bb=function(){var a=this.u.ag(),b=this.G.fb().getPlayerSize(),c=MU(this),d=Math.max(b.width-2*c,100);if(this.Va!==b.width||this.Pa!==a){this.Va=b.width;this.Pa=a;var e=eNa(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.OT(this.Hc,c,e,a);this.u.Bc().iI=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-NU(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.wD=e;c.Yy();this.hI();!this.G.V().N("html5_player_bottom_linear_gradient")&&this.G.V().N("html5_player_dynamic_bottom_gradient")&&
g.TS(this.Wa,b.height)};
g.k.onVideoDataChange=function(){var a=this.G.getVideoData(),b,c,d,e=null==(b=a.Cf)?void 0:null==(c=b.embedPreview)?void 0:null==(d=c.thumbnailPreviewRenderer)?void 0:d.controlBgHtml;b=a.N("embeds_web_enable_video_data_refactoring_embedded_player_response")?!!e:a.D;e=a.N("embeds_web_enable_video_data_refactoring_embedded_player_response")?null!=e?e:"":a.Lc;this.ya.style.background=b?e:"";g.SM(this.Z,a.GL)};
g.k.ub=function(){return this.C.element};g.v(OU,JS);g.k=OU.prototype;g.k.LL=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.Oa("innertubeCommand",this.onClickCommand),this.IF())};
g.k.IF=function(){this.enabled=!1;this.J.hide()};
g.k.jN=function(a){this.text=a;RLa(this);this.onClickCommand=this.suggestedActions[a]};
g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&fNa(this);if(this.G.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){a=[];var c,d,e,f;if(b=null==(f=g.P(null==(c=b.watchNextResponse)?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,bBa))?void 0:f.suggestedActions)for(c=g.t(b),d=c.next();!d.done;d=c.next())(d=g.P(d.value,cBa))&&g.P(d.trigger,yJ)&&a.push(d)}else a=b.suggestedActions;c=a;if(0!==c.length){a=[];c=g.t(c);
for(d=c.next();!d.done;d=c.next())if(d=d.value,e=g.P(d.trigger,yJ))f=(f=d.title)?g.IB(f):"View Chapters",b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(a.push(new g.yB(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.G.Ge(a)}};
g.k.zC=function(){return this.enabled};
g.k.dg=function(){this.enabled?this.Z.start():HS(this);this.Jl()};
g.k.ra=function(){fNa(this);JS.prototype.ra.call(this)};var C3={},PU=(C3.CHANNEL_NAME="ytp-title-channel-name",C3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",C3.LINK="ytp-title-link",C3.SESSIONLINK="yt-uix-sessionlink",C3.SUBTEXT="ytp-title-subtext",C3.TEXT="ytp-title-text",C3.TITLE="ytp-title",C3);g.v(QU,g.W);
QU.prototype.onClick=function(a){this.api.rb(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.VN(a),!1,!0);if(g.tH(b)){var d={};b.Ka&&g.jP(d,b.loaderUrl);g.NP(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.ci(c,g.iP(d,"emb_title"))}g.mR(c,this.api,a)};
QU.prototype.La=function(){var a=this.api.getVideoData(),b=this.api.V();this.updateValue("title",a.title);var c={F:"a",K:PU.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},qa:"{{channelName}}"};this.api.V().j&&(c={F:"span",K:PU.CHANNEL_NAME,qa:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);gNa(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.lf&&c.profilePicture?(this.updateValue("channelLink",
c.lf),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):gNa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.dc;g.lo(this.link,PU.FULLERSCREEN_LINK,c);b.oa||!a.videoId||c||a.D&&b.Z||b.j?this.j&&(this.updateValue("url",null),this.Dc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.S(this.link,"click",this.onClick)));b.j&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.tH(b)?a.expandedTitle:
a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.v(g.RU,g.W);g.k=g.RU.prototype;g.k.bU=function(a,b){a<=this.C&&this.C<=b&&(a=this.C,this.C=NaN,iNa(this,a))};
g.k.N1=function(){FAa(this.u,this.C,160*this.scale)};
g.k.dn=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.Z);a.addEventListener("mouseover",this.D);a.removeEventListener("blur",this.Z);a.addEventListener("focus",this.D);lNa(this);break;case 3:lNa(this);break;case 1:this.u&&(this.u.unsubscribe("l",this.bU,this),this.u=null),this.api.removeEventListener("videoready",this.ea),this.oa.stop()}this.type=null;this.J&&this.I.hide()};
g.k.Zk=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.We(arguments[a],this.j)&&this.dn()};
g.k.ra=function(){null!=this.type&&this.dn();this.u&&this.u.dispose();g.W.prototype.ra.call(this)};g.v(UU,g.W);g.k=UU.prototype;
g.k.xD=function(){var a=this.G.getPlayerSize(),b=this.G.V(),c=this.G.getVideoData(),d=g.tH(b)&&g.$P(this.G)&&g.V(this.G.Eb(),128);if(a=b.pn&&240<=a.width&&!c.isAd())if(c.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){a=!0;var e,f,h=null==(e=c.Cf)?void 0:null==(f=e.embedPreview)?void 0:f.thumbnailPreviewRenderer;h&&(a=!!h.addToWatchLaterButton);if(g.zH(c.V())){var l,m;(e=null==(l=c.watchNextResponse)?void 0:null==(m=l.playerOverlays)?void 0:m.playerOverlayRenderer)&&(a=!!e.addToMenu)}var n,
p,q,r;if(null==(r=g.P(null==(n=c.watchNextResponse)?void 0:null==(p=n.contents)?void 0:null==(q=p.twoColumnWatchNextResults)?void 0:q.desktopOverlay,AJ))?0:r.suppressWatchLaterButton)a=!1}else a=c.Ak;this.visible=a&&!d&&!(c.D&&b.Z);g.SM(this,this.visible);this.icon&&pNa(this,this.icon);this.G.Sa(this.element,this.visible&&this.ya)};
g.k.Yf=function(){return this.G.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.G.rb(this.element);var b=this.G.V(),c=this.Yf();b.authUser?mNa(this):this.G.HG()?this.G.requestStorageAccess(function(){g.ax("embedsItpWatchLaterResult",{accepted:!0});Zz();nNa(a,c)},function(){g.ax("embedsItpWatchLaterResult",{accepted:!1});
oNa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):nNa(this,c)};
g.k.pZ=function(){this.isRequestPending=this.j=!1;this.La(2)};
g.k.La=function(a,b){var c=this.G.V();pNa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.qL("Added as $USER_NAME",a):g.qL("Watch later as $USER_NAME",a),image:ZH(c)})):this.update({title:"Watch later",image:null});gS(this.tooltip)};
g.k.hc=function(a){g.W.prototype.hc.call(this,a);this.G.Sa(this.element,this.visible&&a)};g.v(g.VU,g.AR);g.k=g.VU.prototype;g.k.Bc=function(){return this.tooltip};
g.k.wp=function(a,b){b?this.On=a:this.On=null;this.Jk()};
g.k.mx=function(a,b){if(b)this.xs.push(a);else for(b=this.xs.length;0<=b;b--)if(this.xs[b]===a){this.xs.splice(b,1);break}gR(this.Qe,64,0<this.xs.length)};
g.k.Os=function(){this.api.gj()&&this.api.Kn();return!!this.On||qNa(this)||g.AR.prototype.Os.call(this)};
g.k.Hy=aa(35);g.k.tq=aa(33);g.k.Jk=function(){var a=!this.Os(),b=a&&this.api.gj()&&!g.V(this.api.Eb(),2)&&!(this.api.getVideoData().D&&this.api.V().Z)&&!this.api.V().j,c=this.Vr&&g.$P(this.api)&&g.V(this.api.Eb(),128);a||c?(this.SN.show(),this.TN.show()):(this.SN.hide(),this.TN.hide(),this.tooltip.Zk(this.Yg.element));b?this.Fi.Pc():this.Fi.yb();this.hg&&dNa(this.hg,this.tM||!a);g.AR.prototype.Jk.call(this)};
g.k.fv=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Ll(a),h=d||this.hg&&g.We(this.hg.ub(),b),l=d=null;null!=c&&h||(d=g.Ll(b),l=g.Jl(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.hg,d=MU(b),l=eNa(b),h=this.api.fb().getPlayerSize().height,c=g.de(c,d,d+l-f.width),f=h-NU(b)-f.height):g.We(this.Yg.element,b)?(b=this.api.fb().getPlayerSize().width,c=g.de(c,12,b-f.width-12),f=this.ag()?this.nJ:this.mJ,"gvn"===this.api.V().playerStyle&&(f+=20),
this.Vr&&(f-=this.ag()?26:18)):(b=this.api.fb().getPlayerSize(),c=g.de(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.k.Gm=function(a){a&&(this.tooltip.Zk(this.Yg.element),this.hg&&this.tooltip.Zk(this.hg.ub()));this.eF&&(g.lo(this.contextMenu.element,"ytp-autohide",a),g.lo(this.contextMenu.element,"ytp-autohide-active",!0));g.AR.prototype.Gm.call(this,a)};
g.k.KL=function(){g.AR.prototype.KL.call(this);this.eF&&(g.lo(this.contextMenu.element,"ytp-autohide-active",!1),this.eF&&(this.contextMenu.hide(),this.wi&&this.wi.hide()))};
g.k.Me=function(){return this.hk()&&this.api.N("embeds_enable_shorts_branded_ui")};
g.k.dk=function(a,b){var c=this.api.fb().getPlayerSize();c=new g.xl(0,0,c.width,c.height);if(a||this.Qe.u&&!this.Os()){if(this.api.V().Ok||b)a=this.ag()?this.nJ:this.mJ,c.top+=a,c.height-=a;this.hg&&(c.height-=NU(this.hg))}return c};
g.k.eq=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.V().externalFullscreen||(b.parentElement.insertBefore(this.pE.element,b),b.parentElement.insertBefore(this.oE.element,b.nextSibling))):g.uv(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.pE.detach(),this.oE.detach());this.Bb();this.Oo()};
g.k.ag=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.I||!1};
g.k.showControls=function(a){this.ZD=!a;this.Jk()};
g.k.Bb=function(){var a=this.ag();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.lo(this.contextMenu.element,"ytp-big-mode",a);this.Jk();if(this.Sg()&&this.wi)this.Ro&&wS(this.wi,this.Ro),this.shareButton&&wS(this.wi,this.shareButton),this.Gi&&wS(this.wi,this.Gi);else{if(this.wi){for(var b=this.wi,c=g.t(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}this.Ro&&!g.We(this.aj.element,this.Ro.element)&&this.Ro.Ca(this.aj.element);this.shareButton&&!g.We(this.aj.element,
this.shareButton.element)&&this.shareButton.Ca(this.aj.element);this.Gi&&!g.We(this.aj.element,this.Gi.element)&&this.Gi.Ca(this.aj.element)}this.Oo();(b=this.Me())&&a?(a=(this.api.fb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Al(this.Yg.element,"padding-left",a+"px"),g.Al(this.Yg.element,"padding-right",a+"px")):b&&(g.Al(this.Yg.element,"padding-left",""),g.Al(this.Yg.element,"padding-right",""));g.AR.prototype.Bb.call(this)};
g.k.jK=function(){if(qNa(this)&&!g.$P(this.api))return!1;var a=this.api.getVideoData();return!g.tH(this.api.V())||2===this.api.getPresentingPlayerType()||!this.Cf||((a=this.Cf||a.Cf)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.P(a.videoDetails,CBa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.AR.prototype.jK.call(this):!1};
g.k.Oo=function(){g.AR.prototype.Oo.call(this);this.api.Sa(this.title.element,!!this.xo);this.wy&&this.wy.hc(!!this.xo);this.channelAvatar.hc(!!this.xo);this.overflowButton&&this.overflowButton.hc(this.Sg()&&!!this.xo);this.shareButton&&this.shareButton.hc(!this.Sg()&&!!this.xo);this.Ro&&this.Ro.hc(!this.Sg()&&!!this.xo);this.Gi&&this.Gi.hc(!this.Sg()&&!!this.xo);if(!this.xo){this.tooltip.Zk(this.Yg.element);for(var a=0;a<this.JC.length;a++){var b=this.JC[a];b.Ni()&&b.yb()}}};
g.k.kc=function(a){this.hg&&dNa(this.hg,this.Os());this.Jk();g.AR.prototype.kc.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.Up?this.Up.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.Up?this.Up.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.fl=function(){if(this.contextMenu.sb)return this.contextMenu.yb(),!0;if(this.xs.length)return this.xs[this.xs.length-1].yb(),!0;if(this.On)return this.On.yb(),!0;this.hg&&this.tooltip.Zk(this.hg.ub());return g.AR.prototype.fl.call(this)};
g.k.uC=function(a,b){this.zL=b;this.mx(a,b);this.wW()};
g.k.wW=function(){var a=this.zL||this.contextMenu.Ni();this.aJ!==a&&(this.aJ=a,this.api.Oa("onAutonavPauseRequest",this.aJ))};
g.k.v0=function(){WU(this,this.api.getRootNode(),!0).focus()};
g.k.w0=function(){WU(this,this.api.getRootNode(),!1).focus()};
g.k.nm=function(){return this.hg&&this.hg.settingsMenu};
g.k.RA=function(){return this.hg&&this.hg.B};
g.k.Mo=function(){this.Qe.Mo()};
g.k.WE=function(){this.Nc.hide()};
g.k.Dv=function(a){this.Nc.Dv(!g.PL(a))};
g.k.kC=function(a,b,c,d){this.mA.kC(a,b,c,d)};
g.k.QM=function(a,b){jS(this.mA,a,b)};
g.k.m3=function(){rNa(this,!0)};
g.k.L3=function(a){rNa(this,!1,a)};
g.k.xE=function(){return this.contextMenu};
g.k.DD=function(a){var b;null!=(b=this.hg)&&a.Ca(b.j.element)};
g.k.jr=function(){var a,b=null==(a=this.hg)?void 0:a.Hc;if(b){var c;(null==(c=b.u)?0:c.isEnabled)&&b.jr()}};g.v(g.XU,g.LQ);g.XU.prototype.Ck=function(){return!1};
g.XU.prototype.create=function(){var a=this.player.V();g.CH(a)&&a.isMobile?this.chrome=new g.AR(this.player):this.chrome=new g.VU(this.player);g.H(this,this.chrome);this.chrome.init();this.player.gg("ux")};
g.XU.prototype.du=function(){return this.chrome};g.v(ZU,g.E);ZU.prototype.B=function(a,b){if(b){b=b instanceof g.YC?b:$U(this,b);var c;(null==(c=this.j.get(a))?void 0:$C(c.location))!==$C(b)&&this.j.set(a,new dV(b,a))}else this.j.delete(a)};
ZU.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.A(function(q){switch(q.j){case 1:b=a.j.get(0);g.qa(q,2);var r;if(r=b&&!a.u)r=$C(b.location),r=a.u===bV(r);if(r){q.Ia(4);break}return g.y(q,cV(a,a.u?2:0),5);case 5:if(c=q.u)a.B(0,c),bD(c)&&a.B(1,cD(c));case 4:g.ra(q,3);break;case 2:d=g.ua(q);g.sA(d);if(!a.u){q.Ia(3);break}a.u=!1;return g.y(q,a.load(),7);case 7:return q.return();case 3:if(!a.Y.experiments.eb("html5_onesie_probe_ec_hosts")){q.Ia(0);break}g.qa(q,9);e=a;f=e.B;h=3;return g.y(q,
cV(a,1),11);case 11:return f.call(e,h,q.u),l=a,m=l.B,n=4,g.y(q,cV(a,2),12);case 12:m.call(l,n,q.u);g.ra(q,0);break;case 9:p=g.ua(q),g.sA(p),g.pa(q)}})};
ZU.prototype.T=function(){var a=this,b,c,d,e,f,h,l;return g.A(function(m){if(1==m.j){g.$n(a.Z);b=g.wG(a.Y.experiments,"html5_onesie_prewarm_max_lact_ms");if(fz()>=b)return m.return();if(!a.Y.N("html5_onesie_host_racing_during_prewarming"))return(c=a.j.get(0))&&xNa(a,c),m.Ia(0);d=g.wG(a.Y.experiments,"html5_onesie_prewarm_cooldown_ms");e=a.j.values();f=g.t(e);h=f.next()}if(4!=m.j){if(h.done)return m.Ia(0);l=h.value;if(a.isDisposed())return m.return();xNa(a,l);return d?g.y(m,tNa(d),4):m.Ia(4)}h=f.next();
return m.Ia(3)})};
var uNa={URa:0,nUa:1,ISa:2,qUa:3,Ena:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};dV.prototype.start=function(){this.startTimestamp=(0,g.R)()};
dV.prototype.end=function(){this.endTimestamp=(0,g.R)()};var gV=[],hXa=!1;g.sY=wd(function(){var a="";try{var b=g.Oe("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.v(g.hV,DL);g.k=g.hV.prototype;g.k.isView=function(){return!0};
g.k.UM=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Ch(),c=GF(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.ou=function(){return IF(this.mediaElement.ou(),this.start,this.end)};
g.k.Ch=function(){return IF(this.mediaElement.Ch(),this.start,this.end)};
g.k.SA=function(){return IF(this.mediaElement.SA(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.k.setCurrentTime=function(a){this.mediaElement.setCurrentTime(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.j?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.k.play=function(){if(this.UM()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.jc=function(){var a=DL.prototype.jc.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.mediaElement.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.mediaElement.removeEventListener(a,b)};
g.k.rD=function(){return this.mediaElement.rD()};
g.k.Nw=function(a){this.mediaElement.Nw(a)};
g.k.Fr=function(){return this.mediaElement.Fr()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.HJ=function(){this.mediaElement.HJ()};
g.k.EJ=function(){this.mediaElement.EJ()};
g.k.At=function(){return this.mediaElement.At()};
g.k.ub=function(){return this.mediaElement.ub()};
g.k.qg=function(){return this.mediaElement.qg()};
g.k.uD=function(a){this.mediaElement.uD(a)};
g.k.tG=function(){this.mediaElement.tG()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.nu=function(){return this.mediaElement.nu()};
g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.k.fp=function(){return this.mediaElement.fp()};
g.k.Rg=function(){return this.mediaElement.Rg()};
g.k.Eh=function(){return this.mediaElement.Eh()};
g.k.DE=function(){return this.mediaElement.DE()};
g.k.Gy=function(a){this.mediaElement.Gy(a)};
g.k.sD=function(){return this.mediaElement.sD()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.Tj=function(){return this.mediaElement.Tj()};
g.k.EE=function(){return this.mediaElement.EE()};
g.k.Df=function(){return this.mediaElement.Df()};
g.k.Ef=function(){return this.mediaElement.Ef()};
g.k.tD=function(){return this.mediaElement.tD()};
g.k.jh=function(){return this.mediaElement.jh()};
g.k.Ps=function(){return this.mediaElement.Ps()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.Ir=function(){return this.mediaElement.Ir()};
g.k.getSize=function(){return this.mediaElement.getSize()};
g.k.setSize=function(a){this.mediaElement.setSize(a)};
g.k.getVolume=function(){return this.mediaElement.getVolume()};
g.k.setVolume=function(a){this.mediaElement.setVolume(a)};
g.k.setAttribute=function(a,b){this.mediaElement.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.mediaElement.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.mediaElement.hasAttribute(a)};
g.k.Sz=aa(24);g.k.EC=aa(26);g.k.FC=aa(28);g.k.Vw=aa(30);g.k.rA=function(){return this.mediaElement.rA()};
g.k.Lq=function(a){this.mediaElement.Lq(a)};
g.k.getStyle=function(a){return this.mediaElement.getStyle(a)};
g.k.YK=function(){return this.mediaElement.YK()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.LJ=function(a){this.mediaElement.LJ(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};g.v(iV,g.E);g.k=iV.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.Ht=function(){var a=this.j.getVideoData(),b=this.u.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.t(Object.values(c.j)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=d&&e}if(c)if(this.j.ue()){f=DNa(this.j,this.u,this.Sm);h=ENa(this);c=h.S_;e=h.BT;d=h.nR;h=h.AT;if(!this.I){var l=1E3*this.u.Zj(),m=this.j.Zj();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.u.gC(l,m,a);
this.I=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.zg(b,f)):2===this.status.status?LNa(this):(a=this.j.Fr())&&RF(a)&&(!PF(a)&&g.dw()?this.zg("mse_closed"):b.j&&NC(b.j)&&a.u&&!a.u.AE()?this.zg("encr_upgrade"):(b=this.j.ue(),b.Eh()?this.zg("elem_ended"):0>e?this.zg("next_player_future"):(this.D=d,this.B=wua(a,c,d,!0),this.C=wua(a,e,h,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.xa("gaplessPrep",{cpn:a}),lV(this.j,this.B),this.j.setMediaElement(FNa(b,c,d,!this.j.getVideoData().isAd())),
kV(this,2),LNa(this))))}else this.zg("no-elem")};
g.k.uw=function(a){var b=a===KNa(this).yV,c=b?this.B.j:this.B.u;b=b?this.C.j:this.C.u;if(c.isActive&&!b.isActive){var d=this.D;FF(a.Bg(),d-.01)&&(kV(this,4),c.isActive=!1,c.RC=c.RC||c.isActive,this.u.xa("sbh",{}),b.isActive=!0,b.RC=b.RC||b.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&kV(this,5)}};
g.k.gU=function(){4<=this.status.status&&6>this.status.status&&this.zg("player-reload-after-handoff")};
g.k.zg=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.j.Sd(new cI("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Sm,msg:a})));a=this.j;a.videoData.gb=!1;c&&lY(a);a.Ja&&ZSa(a.Ja)}this.Lo.reject(void 0);this.dispose()}};
g.k.ra=function(){JNa(this);this.j.unsubscribe("newelementrequired",this.gU,this);if(this.B){var a=this.B.u;this.B.j.Dd.unsubscribe("updateend",this.uw,this);a.Dd.unsubscribe("updateend",this.uw,this)}g.E.prototype.ra.call(this)};
g.k.qd=function(a){g.cL(a,128)&&this.zg("player-error-event")};g.v(nV,g.E);nV.prototype.clearQueue=function(){this.C&&this.C.reject("Queue cleared");oV(this)};
nV.prototype.Ox=function(){return!this.j};
nV.prototype.ra=function(){oV(this);g.E.prototype.ra.call(this)};g.v(tV,g.FB);g.k=tV.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:PNa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.Fl=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.dg())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.dg())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.dg())};
g.k.Iy=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.dg())};
g.k.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.dg())};
g.k.jh=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.wx=function(){return this.fullscreen};
g.k.cg=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return PNa()};
g.k.Nx=function(){return this.pictureInPicture};
g.k.Jx=function(){return this.u};
g.k.dg=function(){this.ma("visibilitychange");var a=this.getVisibilityState(this.jh(),this.isFullscreen(),this.cg(),this.isInline(),this.Nx(),this.Jx());a!==this.D&&this.ma("visibilitystatechange");this.D=a};
g.k.ra=function(){SNa(this.C);g.FB.prototype.ra.call(this)};g.v(g.xV,g.E);g.k=g.xV.prototype;
g.k.onCueRangeEnter=function(a){this.Ka.push(a);var b=a.getId(),c=""===b;this.Fb.add(a.u);c||this.va.xa("sdai",{enterAdCueRange:1});if(this.Xa&&!this.j){this.Xa=!1;if(!c){var d=this.u.get(b);d&&(c=this.va.getCurrentTime(),DV(this,{qe:a,isAd:!0,Op:!0,ah:c,adCpn:b},{isAd:!1,Op:!1,ah:c}),this.api.ma("serverstitchedvideochange",d.Kc,d.Kq),this.va.xa("sdai",AV("midab",d)),this.bl=1)}this.D=!1}else if(this.j){if(this.j.Op)this.va.xa("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.ah,
cpn:b,currentTime:this.va.getCurrentTime()}),d=this.va.getCurrentTime(),a={qe:a,isAd:!c,Op:!0,ah:d,adCpn:b},b={qe:this.j.qe,isAd:this.j.isAd,Op:!1,ah:d,adCpn:this.j.adCpn},this.j.qe&&this.Fb.delete(this.j.qe.u),DV(this,a,b);else{if(this.j.qe===a){this.va.xa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.ah,cpn:b,currentTime:this.va.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.va.xa("sdai",{dchtsc:b});
this.j=void 0;return}a={qe:a,isAd:!c,Op:!0,ah:this.va.getCurrentTime(),adCpn:b};DV(this,a,this.j)}this.j=void 0;this.D=!1}else this.j={qe:a,isAd:!c,Op:!0,ah:this.va.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){if(this.Fb.has(a.u)){this.Fb.delete(a.u);this.Ka=this.Ka.filter(function(d){return d!==a});
this.Xa&&(this.D=this.Xa=!1,this.va.xa("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.Op){if(this.j.qe===a){this.va.xa("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.ah,cpn:b,currentTime:this.va.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.va.xa("sdai",{dchtsc:b});this.j=void 0;return}c={qe:a,isAd:!c,Op:!1,ah:this.va.getCurrentTime(),adCpn:b};DV(this,this.j,c)}else this.va.xa("sdai",
{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.ah,upcomingCpn:b,contentCpn:this.va.getVideoData().clientPlaybackNonce,currentTime:this.va.getCurrentTime()});this.j=void 0;this.D=!1}else this.j={qe:a,isAd:!c,Op:!1,ah:this.va.getCurrentTime(),adCpn:b};this.Y.N("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.va.getCurrentTime()<this.va.lm()&&uV(this,Infinity))}else this.va.xa("sdai",{ignore_single_exit:1})};
g.k.isAdPlaying=function(a){return this.Yq?!1:wV(this)?!!this.ea:!!FV(this,1E3*a)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.D=!0;if(void 0===b?0:b)uV(this,a);else{b=this.api.Qc();var d=b===this.tb?this.Pb:null;GV(this,!1);this.zc=a;null!=c&&this.dc.start(c);b&&(this.Pb=d||b.getPlayerState(),RWa(b),this.tb=b)}};
g.k.ra=function(){GV(this,!1);IV(this);cOa(this);g.E.prototype.ra.call(this)};
g.k.qN=function(a){this.Lc=a;this.va.xa("sdai",{swebm:a})};
g.k.ek=function(a,b,c){if(c&&b){var d=this.Ma.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.YC(c);this.Pa&&this.va.xa("sdai",{hdlredir:1,itag:b,seg:a,hostport:$C(c)});d.locations.set(e,c)}}};
g.k.uu=function(a,b,c,d,e){var f=3===d;a=eOa(this,a,b,d,c);if(!a)return MV(this,b,f),null;f=a.Vl;var h;b=(null==(h=KV(this,b-1,d,e))?void 0:h.Xt)||"";h=dH(a.ssdaiAdsConfig||"")||void 0;d=this.va.getVideoData();var l;e=(null==(l=d.B)?void 0:l.containerType)||0;l=d.bQ[e];l={i6:{JI:f?hOa(this,f):[],r_:h,Xt:b,t6:a.BC,i7:se(l.split(";")[0]),j7:l.split(";")[1]||""}};return SI(l,UNa)};
g.k.Sn=function(a,b,c,d,e){var f=Number(c.split(";")[0]),h=3===d;a=eOa(this,a,b,d,c);this.Pa&&this.va.xa("sdai",{gdu:1,seg:b,itag:f,pb:""+!!a});if(!a)return MV(this,b,h),null;a.locations||(a.locations=new Map);if(!a.locations.has(f)){var l,m,n=null==(l=a.videoData.getPlayerResponse())?void 0:null==(m=l.streamingData)?void 0:m.adaptiveFormats;if(!n)return this.va.xa("sdai",{gdu:"noadpfmts",seg:b,itag:f}),MV(this,b,h),null;l=n.find(function(z){return z.itag===f});
if(!l||!l.url){var p=a.videoData.videoId;a=[];d=g.t(n);for(var q=d.next();!q.done;q=d.next())a.push(q.value.itag);this.va.xa("sdai",{gdu:"nofmt",seg:b,vid:p,itag:f,fullitag:c,itags:a.join(",")});MV(this,b,h);return null}a.locations.set(f,new g.YC(l.url,!0))}n=a.locations.get(f);if(!n)return this.va.xa("sdai",{gdu:"nourl",seg:b,itag:f}),MV(this,b,h),null;n=new cE(n);this.Lc&&(n.get("dvc")?this.va.xa("sdai",{dvc:n.get("dvc")||""}):n.set("dvc","webm"));var r;(e=null==(r=KV(this,b-1,d,e))?void 0:r.Xt)&&
n.set("daistate",e);a.BC&&b>=a.BC&&n.set("skipsq",""+a.BC);(e=this.va.getVideoData().clientPlaybackNonce)&&n.set("cpn",e);r=[];a.Vl&&(r=hOa(this,a.Vl),0<r.length&&n.set("acpns",r.join(",")));h||this.Ma.set(b,a);h=null;h=n.get("aids");var w;if(((null==(q=h)?void 0:null==(w=q.split(","))?void 0:w.length)||0)!==r.length)if(a.Vl){var x;this.va.xa("sdai",{acpns_aids_nm:1,ids:jOa(this,a.Vl).join("_"),acpns:r.join("_"),aids:null==(x=h)?void 0:x.replace(/,/g,"_"),cpn:e,trackType:d})}else this.va.xa("sdai",
{acpns_aids_nm:"noAdBreakId",cpn:e});d=n.Se();2048<(null==d?void 0:d.length)&&this.va.xa("sdai",{urltoolong:1,sq:b,itag:f,len:d.length});this.Pa&&(d&&(w=a.cpn,q=a.Vl,lOa(this,w,q),q&&!this.Md.has(q)&&(w=iOa(this,w,q),x=kOa(this,q),this.va.xa("sdai",{iofa:w}),this.va.xa("sdai",{noawnzd:x-w}),this.va.xa("sdai",{acpns:r.join("."),aids:null==(p=h)?void 0:p.replace(/,/g,".")}),this.Md.add(q))),this.va.xa("sdai",{gdu:"v",seg:b,itag:c,ast:a.Oc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
return d};
g.k.bA=function(a,b){return(a=JV(this,a,b))?(a.Oc+a.durationMs)/1E3:0};
g.k.yN=function(a,b){if(a=JV(this,a,b)){var c=a.Vl;if(c){this.va.xa("sdai",{skipadonsq:b,abid:c,acpn:a.cpn,avid:a.videoData.videoId});c=this.Z.get(c);if(!c)return;c=g.t(c);for(var d=c.next();!d.done;d=c.next())d.value.BC=b}this.I=a.cpn;fOa(this)}};
g.k.XM=function(){for(var a=g.t(this.T),b=a.next();!b.done;b=a.next())b.value.BC=NaN;fOa(this);this.I=""};
g.k.LC=aa(37);
g.k.mM=function(a,b,c,d,e,f,h,l,m){m&&(h?this.Wa.set(a,{Xt:m,Qz:l}):this.Aa.set(a,{Xt:m,Qz:l}));if(h){if(d.length&&e.length)for(this.I&&this.I===d[0]&&this.va.xa("sdai",{skipfail:1,sq:a,acpn:this.I}),a=b+this.Dp(),h=g.t(d.entries()),l=h.next();!l.done;l=h.next()){m=g.t(l.value);l=m.next().value;var n=m=m.next().value;m=a;a=m+e[l];if(n=this.u.get(n))l=m-f[l],n.Kq=null!=n.Kq?Math.min(n.Kq,l):l}if(!wV(this))if(d.length&&e.length)for(b=1E3*(b+this.Dp()),d=g.t(d.entries()),c=d.next();!c.done;c=d.next())if(c=
g.t(c.value),f=c.next().value,c=c.next().value,f=1E3*e[f],c===this.va.getVideoData().clientPlaybackNonce)LV(this,b,b+f,!1),b+=f;else if(this.xd.has(c)||(this.va.xa("sdai",{adCpnFromEmsg:1}),this.xd.add(c)),(a=this.C.get(c))&&a.start<=b&&a.end>=b+f)b=a.end;else{if(h=!1,a?b<a.start?a.start=b:a.end<b+f&&(a.end=b+f):(a=aOa(b,b+f,c),this.C.set(c,a),this.va.xa("sdai",{newAdCR:1,cpn:c,startTime:a.start,endTime:a.end}),h=!0),b=a.end,LV(this,a.start,a.end,!0),h)for(this.va.addCueRange(a),c=this.va.tA("serverstitchedcuerange",
36E5),c=g.t(c),f=c.next();!f.done;f=c.next())this.C.delete(f.value.getId())}else 5!==c&&4!==c||LV(this,1E3*(b+this.Dp()),1E3*(b+this.Dp())+5E3,!1)}};
g.k.DA=aa(39);g.k.Dp=function(){return this.va.Dp()};
g.k.uB=function(a){this.va.xa("timelineerror",{e:a})};
g.k.ZA=function(a){this.ya&&this.oa&&this.Va.push(this.oa);!this.Y.N("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.oa&&this.Ec.push(this.oa);this.oa=null;this.va.ZA(a)};
g.k.NE=function(a){if(this.Yq||a.identifier&&this.Xd.has(a.identifier))this.Pa&&this.va.xa("sdai",{startnoad:a.identifier}),zV(this);else if(Pl(this.Va,function(c){return c.identifier===a.identifier}))this.va.xa("sdai",{timedoutcp:1}),this.J.start(0);
else if(!this.Y.N("web_player_skip_fetched_cuepoint_killswitch")&&Pl(this.Ec,function(c){return c.identifier===a.identifier}))this.va.xa("sdai",{fetchedcp:1}),zV(this);
else if(this.J.isActive()){var b;this.va.xa("sdai",{racingcp:(null==(b=this.oa)?void 0:b.identifier)+"_"+a.identifier})}else this.Fd=(new Date).getTime()/1E3,this.Pa&&this.va.xa("sdai",{adf:1}),this.ya=!1,this.J.start(),this.oa=a,this.Aa.clear(),this.Wa.clear(),this.Ba.clear(),this.Y.N("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.Ma.clear(),this.Rb=[]};
g.k.Mr=function(a,b){a=JV(this,a,b);if(!this.Y.experiments.eb("disable_ssdai_on_errors")||!a||this.Yq)return!1;this.Yq=!0;0<this.bl&&(this.bl=0,this.ea=null,this.api.ma("serverstitchedvideochange"));this.va.eE({reason:"disablessdai",sq:b});return!0};
g.k.vu=function(){this.va.xa("sdai",{rstdaist:1});this.gb="";this.Aa.clear();this.Wa.clear();this.Ba.clear()};
g.k.Fs=function(a){this.Xd.add(a);var b;(null==(b=this.oa)?void 0:b.identifier)===a&&zV(this)};
g.k.lM=function(a,b,c,d){if(wV(this)){var e=this.va.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?BV(this):this.u.get(a),h=b===e?BV(this):this.u.get(b);f&&h?(c=this.D?c:d,CV(this.va,f,h,c,d,this.D,!!this.I),this.I="",b===e?(this.kb=1E3*c,this.bl=0,this.ea=null,this.va.xa("sdai",{adchg:this.bl}),this.api.ma("serverstitchedvideochange")):(this.kb=0,this.bl++,this.ea=h,this.va.xa("sdai",{adchg:this.bl,apid:this.ea.Kc,acpn:this.ea.cpn}),this.api.ma("serverstitchedvideochange",
h.Kc,h.Kq))):this.va.xa("sdai",{unknowntrans:"1",old:a,"new":b});this.D=!1}}};
g.k.Bs=function(a){var b=ZQ(this.api.vb());return b?b.Bs(a):!1};
var ZNa=0;g.v(NV,g.E);g.k=NV.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Qc()){var b=this.I.get(a);b?sOa(this,b.target,b.Sm,a):this.Sd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.u.find(function(e){return e.gr.qe===a})){var c=b.gr,d=c.target;
c=c.Sm;d?sOa(this,d,c,a):rOa(this,b.Bd,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.J;RV(this);if(a){if(!QV(this,a)){var b=this.api.Qc();this.Sd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Qc().addCueRange(a.gr.qe)}};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)mOa(this,a);else{b=this.api.Qc();var d=b===this.C?this.D:null;TV(this,!1);this.Z=a;null!=c&&this.T.start(c);b&&(this.D=d||b.getPlayerState(),RWa(b),this.C=b)}};
g.k.ji=function(a){g.cL(a,128)&&vOa(this)};
g.k.isManifestless=function(){return wJ(this.j.getVideoData())};
g.k.ra=function(){TV(this,!1);VV(this);g.E.prototype.ra.call(this)};
g.k.Sd=function(a,b){this.j.Sd(new cI(a,b))};
var nOa=0;var xOa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.v(YV,g.E);g.k=YV.prototype;g.k.get=function(a){WV(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
g.k.set=function(a,b,c){this.remove(a,!0);WV(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.R)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&ZV(this,c,!0);XV(this)};
g.k.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(ZV(this,c,b),g.sb(this.data,function(d){return d.key===a}),XV(this))};
g.k.yg=function(){var a;if(a=void 0===a?!1:a)for(var b=g.t(this.data),c=b.next();!c.done;c=b.next())ZV(this,c.value,a);this.data=[];XV(this)};
g.k.ra=function(){var a=this;g.E.prototype.ra.call(this);this.data.forEach(function(b){ZV(a,b,!0)});
this.data=[]};g.$V.prototype.info=function(){};
var COa=new Map;g.v(aW,g.E);aW.prototype.yE=function(a){if(a)return this.u.get(a)};
aW.prototype.ra=function(){this.j.yg();this.u.yg();g.E.prototype.ra.call(this)};g.v(bW,g.Mo);bW.prototype.ma=function(a){var b=g.ya.apply(1,arguments);if(this.D.has(a))return this.D.get(a).push(b),!0;var c=!1;try{for(b=[b],this.D.set(a,b);b.length;)c=g.Mo.prototype.ma.call.apply(g.Mo.prototype.ma,[this,a].concat(g.u(b.shift())))}finally{this.D.delete(a)}return c};cW.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
cW.prototype.forEach=function(a){for(var b=this.j+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.j;b++)a(this.data[b]||0)};
cW.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.j=this.data.length-1};g.v(dW,g.E);dW.prototype.start=function(){this.u.start()};
dW.prototype.stop=function(){this.u.stop()};
dW.prototype.clear=function(){for(var a=g.t(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
dW.prototype.sample=function(){for(var a=g.t(this.B),b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new gW(j9a.has(b)));this.j.get(b).update(c())}this.u.start()};
var j9a=new Set(["networkactivity"]);gW.prototype.update=function(a){this.u?(this.buffer.add(a-this.j||0),this.j=a):this.buffer.add(a)};
gW.prototype.clear=function(){this.buffer.clear();this.j=0};g.v(hW,g.E);hW.prototype.ra=function(){g.E.prototype.ra.call(this);this.j=null;this.u&&this.u.disconnect()};g.k9a=wd(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var D3;D3={};g.iW=(D3.STOP_EVENT_PROPAGATION="html5-stop-propagation",D3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",D3.IV_DRAWER_OPEN="ytp-iv-drawer-open",D3.MAIN_VIDEO="html5-main-video",D3.VIDEO_CONTAINER="html5-video-container",D3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",D3.HOUSE_BRAND="house-brand",D3);g.v(jW,g.W);g.k=jW.prototype;g.k.Lq=function(){g.io(this.element,g.ya.apply(0,arguments))};
g.k.Vi=function(){this.Qb&&(this.Qb.removeEventListener("focus",this.UL),g.Ue(this.Qb),this.Qb=null)};
g.k.CJ=function(){this.isDisposed();var a=this.app.V();a.Sk||this.Lq("tag-pool-enabled");a.J&&this.Lq(g.iW.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Lq("ytp-gvn"),this.element.style.backgroundColor="transparent");a.zc&&(this.sJ=g.kz("yt-dom-content-change",this.resize,this));this.S(window,"orientationchange",this.resize,this);this.S(window,"resize",this.resize,this)};
g.k.tC=function(a){this.VE=!a;kW(this)};
g.k.resize=function(){if(this.Qb){var a=this.uj();if(!a.isEmpty()){var b=!g.le(a,this.yy.getSize()),c=KOa(this);b&&(this.yy.width=a.width,this.yy.height=a.height);a=this.app.V();(c||b||a.zc)&&this.app.Ua.ma("resize",this.getPlayerSize())}}};
g.k.Nr=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Qb){var b=this.app.V();jw&&(this.Qb.setAttribute("x-webkit-airplay","allow"),a.title?this.Qb.setAttribute("title",a.title):this.Qb.removeAttribute("title"));rBa(a)?this.Qb.setAttribute("disableremoteplayback",""):this.Qb.removeAttribute("disableremoteplayback");this.Qb.setAttribute("controlslist","nodownload");b.Kp&&a.videoId&&(this.Qb.poster=a.Xf("default.jpg"))}b=g.NJ(a,"yt:bgcolor");this.dA.style.backgroundColor=b?b:"";this.BL=ww(g.NJ(a,"yt:stretch"));this.CL=
ww(g.NJ(a,"yt:crop"),!0);g.lo(this.element,"ytp-dni",a.D);this.resize()};
g.k.setGlobalCrop=function(a){this.wK=ww(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.WQ=a;this.resize()};
g.k.Fl=function(){};
g.k.getPlayerSize=function(){var a=this.app.V(),b=this.app.Ua.isFullscreen();if(b&&cw())return new g.ke(window.outerWidth,window.outerHeight);if(b||a.zn){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.vB&&this.vB.media===a||(this.vB=window.matchMedia(a));var c=this.vB&&this.vB.matches}if(c)return new g.ke(window.innerWidth,window.innerHeight)}else if(!isNaN(this.wA.width)&&!isNaN(this.wA.height))return this.wA.clone();return new g.ke(this.element.clientWidth,
this.element.clientHeight)};
g.k.uj=function(){var a=this.app.V().N("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.wG(this.app.V().experiments,"player_underlay_min_player_width");return a&&this.DM&&b.width>c?new g.ke(b.width*g.wG(this.app.V().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.BL)?IOa(this):this.BL};
g.k.getVideoContentRect=function(a){var b=this.uj();a=JOa(this,b,this.getVideoAspectRatio(),a);return new g.xl((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.Ky=function(a){this.DM=a;this.resize()};
g.k.iF=function(){return this.dG};
g.k.onMutedAutoplayChange=function(){kW(this)};
g.k.setInternalSize=function(a){g.le(this.wA,a)||(this.wA=a,this.resize())};
g.k.ra=function(){this.sJ&&g.lz(this.sJ);this.Vi();g.W.prototype.ra.call(this)};g.k=LOa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.DA();c&&a.visualElement&&g.bM(c,a.visualElement,b)};
g.k.qb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Sqa(c);a.visualElement=c;var f=g.DA(),h=g.CA();f&&h&&g.YL(f,h,c);g.cb(b,function(){MOa(e,a)});
d&&this.u.add(a)};
g.k.Og=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.cb(b,function(){MOa(d,a)});
c&&this.u.add(a)};
g.k.jR=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,lDa(dM(),a),NOa(this))};
g.k.Ph=function(a,b){this.elements.has(a);b&&(a.visualElement=g.zA(b))};
g.k.gk=function(a){return this.elements.has(a)};g.v(pW,g.W);
pW.prototype.setValue=function(a,b){for(var c=0;c+2<this.B.length&&this.B[c+1]<b;)c++;b=Math.min(1,(b-this.B[c])/(this.B[c+1]-this.B[c]));if(this.ctx)this.ctx.fillStyle=this.C[c],this.ctx.fillRect(a*this.j,0,this.j,this.heightPx),this.ctx.fillStyle=this.C[c+1],this.ctx.fillRect(a*this.j,this.heightPx*(1-b),this.j,this.heightPx);else{a=this.element.children[a];var d=window.devicePixelRatio||1;b=Math.min(this.heightPx,Math.round(this.heightPx*b*d)/d)||0;a.style.height=b+"px";a.style.backgroundColor=this.C[c+
1];a.style.borderTop="solid "+(this.heightPx-b)+"px "+this.C[c]}};g.v(rW,g.W);g.k=rW.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.La()};
g.k.hide=function(){g.W.prototype.hide.call(this);this.delay.stop()};
g.k.stop=function(){this.delay.stop()};
g.k.start=function(){this.delay.isActive()||this.La()};
g.k.La=function(){var a=(0,g.R)(),b=this.Ua.getStatsForNerds();qW(this.j,b.bandwidth_samples);qW(this.C,b.network_activity_samples);qW(this.B,b.live_latency_samples);qW(this.u,b.buffer_health_samples);var c={};b=g.t(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.t(d.value);d=e.next().value;e=e.next().value;this.D[d]!==e&&(c[d]=" "+String(e));this.D[d]=e}this.update(c);a=25<(0,g.R)()-a?5E3:500;this.delay.start(a)};sW.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
sW.prototype.getPlaybackRate=function(){return this.playbackRate};wW.prototype.seek=function(a){a!==this.j&&(this.seekCount=0);this.j=a;var b=this.videoTrack.u,c=this.audioTrack.u,d=this.audioTrack.yc,e=SOa(this.videoTrack,a,this.videoTrack.yc);d=SOa(this.audioTrack,this.policy.Oe?a:e,d);a=Math.max(a,e,d);this.D=!0;this.u.isManifestless&&(QOa(this.videoTrack,b),QOa(this.audioTrack,c));return a};
wW.prototype.Rg=function(){return this.D};
var ROa=2/24;XOa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.R)()};g.v(CW,g.FB);g.k=CW.prototype;
g.k.dM=function(a,b,c,d){if(this.C&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.u,f=b.C,h=b.B,l=b.Qz);this.C.mM(a.Na,a.startTime,this.j,d,e,f,c,l,h)}if(c){if(b&&!this.ya.has(a.Na)){c=a.startTime;d=[];e=g.t(b.j.entries());for(f=e.next();!f.done;f=e.next())h=g.t(f.value),f=h.next().value,h=h.next().value,l=c,c=l+b.u[f],d.push({startTime:l,endTime:c,adCpn:h});this.ya.set(a.Na,d)}this.policy.Md&&(c=this.oa&&a.Na===this.oa.Na+1,this.oa=a,d=this.u&&a.Na===this.u.Na+1,d=this.u&&c&&d&&"stop"!==this.u.Bf.event&&
"predictStart"!==this.u.Bf.event,e=a.Bf||null,f=this.T.j.index.od()<=a.Na,h=this.Aa.isManifestless&&this.policy.vn,e?(this.u={Bf:e,Na:a.Na,cB:!!b},f?DW(this,e,a.Na):h&&(c?d?DW(this,e,a.Na):"continue"===e.event||"stop"===e.event?aPa(this,a):DW(this,e,a.Na):DW(this,e,a.Na))):(d&&aPa(this,a),4===this.j&&EW(this,5,"qend")))}};
g.k.cM=function(a,b,c){var d=this.T.j.index.od()<=b;this.u={Bf:a,Na:b,cB:c};d&&DW(this,a,b)};
g.k.vu=function(){this.C&&this.C.vu()};
g.k.xa=function(a,b){this.Ja.xa(a,b)};
g.k.Ko=function(a,b){var c=this.T.j.index.ai(a),d;if(d=0<=c){var e;d=(null==(e=KV(b.td,c,2))?void 0:e.Xt)||""}if(d)return b.yN(a,c),XSa(this.Ja,a,a,c),this.xa("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.xa("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};
g.k.Cx=function(a){var b="",c=this.T.j.index.ai(a);if(c=this.ya.get(c)){c=g.t(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.startTime<=a&&a<d.endTime){b=d.adCpn;break}}return b};bPa.prototype.Vy=function(a){var b=this.policy.ea;this.policy.ea=nG(a,{},this.I);if(b!==this.policy.ea){IW(this,this.B);JW(this);var c,d;b>this.policy.ea&&(null==(c=this.j)?0:oF(c.info))&&(null==(d=this.nextVideo)||!oF(d.info))&&(this.T=!0)}};QW.prototype.dispose=function(){this.oa=!0};
QW.prototype.isDisposed=function(){return this.oa};
g.v(WW,Error);$W.prototype.skip=function(a){this.offset+=a};
$W.prototype.Bp=function(){return this.offset};g.k=FPa.prototype;g.k.bS=function(){return this.u};
g.k.Yj=function(){this.u=[];dX(this);EPa(this)};
g.k.Ns=function(a){this.Pa=this.u.shift().info;a.info.equals(this.Pa)};
g.k.Kr=function(){return g.Lg(this.u,function(a){return a.info})};
g.k.ym=function(){return!!this.I.info.audio};
g.k.getDuration=function(){return this.I.index.Er()};g.k=gX.prototype;g.k.cK=function(){return 0};
g.k.zE=function(){return null};
g.k.RR=function(){return null};
g.k.Yr=function(){return 1<=this.state};
g.k.isComplete=function(){return 3<=this.state};
g.k.isFailed=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.Fc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.ey=function(a){a&&this.state<a?this.Fc(a):this.callback&&this.callback(this,this.state)};
g.k.isDisposed=function(){return-1===this.state};
g.k.dispose=function(){this.isDisposed()||(this.info.Za[0].j.D=!1,this.Fc(-1))};
g.k.rK=function(){return 0};hX.prototype.Lj=function(){if(!this.le.length)return[];var a=this.le;this.le=[];this.B=g.fb(a).info;return a};
hX.prototype.hq=function(){return this.le};g.v(xW,gX);g.k=xW.prototype;g.k.onStateChange=function(){this.isDisposed()&&(IX(this.Te,this.formatId),this.j.dispose())};
g.k.Ar=function(){var a=JX(this.Te,this.formatId),b;var c=(null==(b=this.Te.Hd.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Te.Hd.get(this.formatId))?void 0:d.JD)||0;var e;d=(null==(e=this.Te.Hd.get(this.formatId))?void 0:e.le.totalLength)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:d,isEnded:this.Te.Eh(this.formatId)}};
g.k.NR=function(){return 0};
g.k.Du=function(){return!0};
g.k.Lj=function(){if(this.policy.Aa)return this.Te.Lj(this.formatId);this.vj();this.SE=!0;return this.rd.Lj()};
g.k.hq=function(){if(this.policy.Aa)return[];this.vj();return this.rd.hq()};
g.k.Bl=function(){if(this.policy.Aa)return this.Te.Bl(this.formatId);var a,b;return!!(null==(a=this.rd)?0:null==(b=a.hq())?0:b.length)||kX(this.Te,this.formatId)};
g.k.vj=function(){for(;kX(this.Te,this.formatId);)iX(this.rd,this.Te.Ns(this.formatId),TRa(this.Te,this.formatId)&&ZPa(this.Te,this.formatId))};
g.k.Df=function(){return this.lastError};
g.k.Hr=function(){return 0};g.k=aQa.prototype;g.k.Ns=function(a){this.C.Ns(a);var b;null!=(b=this.Z)&&(b.j=oPa(b.jp,b.j,a));this.ac=Math.max(this.ac,a.info.j.info.ac||0)};
g.k.getDuration=function(){return this.j.index.Er()};
g.k.Yj=function(){yW(this);this.C.Yj()};
g.k.lK=function(){return this.C};
g.k.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.Za[0].Na:!1};var wQa=0;g.k=tX.prototype;g.k.yr=function(){this.oa||(this.oa=this.callbacks.yr?this.callbacks.yr():1);return this.oa};
g.k.jF=function(){return this.nk?1!==this.yr():!1};
g.k.Wu=function(){this.Pa=this.now();this.callbacks.Wu()};
g.k.Gs=function(a,b){BQa(this,a,b);50>a-this.C&&vX(this)||CQa(this,a,b);this.callbacks.Gs(a,b)};
g.k.fq=function(){this.callbacks.fq()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
g.k.Du=function(){return this.u>this.TF&&EQa(this,this.u)};
g.k.now=function(){return(0,g.R)()};wX.prototype.feed=function(a){gD(this.j,a);a:{if(this.C){if(!this.j.totalLength)break a;var b=this.j.split(this.B-this.u);a=b.dB;b=b.Fk;this.callbacks.iM(this.C,a,this.u,this.B);this.u+=a.totalLength;this.j=b;this.u===this.B&&(this.C=this.B=this.u=void 0)}for(;;){var c=0;b=g.t(KQa(this.j,c));a=b.next().value;c=b.next().value;c=g.t(KQa(this.j,c));b=c.next().value;c=c.next().value;if(0>a||0>b)break;if(!(c+b<=this.j.totalLength)){if(!(this.callbacks.iM&&c+1<=this.j.totalLength))break;c=this.j.split(c).Fk;
this.callbacks.iM(a,c,0,b)&&(this.C=a,this.u=c.totalLength,this.B=b,this.j=new fD([]));break}b=this.j.split(c).Fk.split(b);c=b.Fk;this.callbacks.py(a,b.dB);this.j=c}}};
wX.prototype.dispose=function(){this.j=new fD};g.k=LQa.prototype;g.k.ly=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.Wu()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||(this.u&&(this.j.append(this.u),delete this.u),this.callbacks.fq())};
g.k.xu=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.k.CA=function(){return+this.getResponseHeader("content-length")};
g.k.il=function(){return this.B};
g.k.eC=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Np=function(){return 0<this.j.totalLength};
g.k.Bv=function(){var a=this.j;this.j=new fD;return a};
g.k.YF=function(){return this.j};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Py=function(){return!0};
g.k.mG=function(){return this.C};
g.k.Ef=function(){return""};g.k=NQa.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.xu=function(){return!0};
g.k.CA=function(){return this.range.length};
g.k.il=function(){return this.loaded};
g.k.eC=function(){return!!this.loaded};
g.k.Np=function(){return!!this.u.totalLength};
g.k.Bv=function(){var a=this.u;this.u=new fD;return a};
g.k.YF=function(){return this.u};
g.k.Py=function(){return!0};
g.k.mG=function(){return!!this.error};
g.k.Ef=function(){return this.error};g.k=PQa.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.Z);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.oa,this.onError).then(void 0,$w)};
g.k.onDone=function(){this.isDisposed()||this.callbacks.fq()};
g.k.getResponseHeader=function(a){return this.D?this.D.get(a):null};
g.k.xu=function(){return!!this.D};
g.k.il=function(){return this.u};
g.k.CA=function(){return+this.getResponseHeader("content-length")};
g.k.eC=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.k.Np=function(){return!!this.j.totalLength};
g.k.Bv=function(){var a=this.j;this.j=new fD;return a};
g.k.YF=function(){return this.j};
g.k.isDisposed=function(){return this.I};
g.k.abort=function(){this.Go&&this.Go.cancel().catch(function(){});
this.B&&this.B.abort();this.I=!0};
g.k.Py=function(){return!0};
g.k.mG=function(){return this.J};
g.k.Ef=function(){return this.errorMessage};g.k=QQa.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.callbacks.fq()}};
g.k.ly=function(){2===this.xhr.readyState&&this.callbacks.Wu()};
g.k.De=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.Gs((0,g.R)(),a.loaded))};
g.k.xu=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return wv(Error("Could not read XHR header "+a)),""}};
g.k.CA=function(){return+this.getResponseHeader("content-length")};
g.k.il=function(){return this.u};
g.k.eC=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u};
g.k.Np=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.Bv=function(){var a=this.response;this.response=void 0;return new fD([new Uint8Array(a)])};
g.k.YF=function(){return new fD([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Py=function(){return!1};
g.k.mG=function(){return!1};
g.k.Ef=function(){return""};g.v(xX,g.E);g.k=xX.prototype;g.k.X5=function(){if(!this.isDisposed()){var a=(0,g.R)(),b=!1;vX(this.timing)?(a=this.timing.Z,yQa(this.timing),this.timing.Z-a>=.8*this.policy.xd?(this.u++,b=this.u>=this.policy.Lk):this.u=0):(b=this.timing,b.nk&&JQa(b,b.now()),a-=b.T,this.policy.Rf&&0<a&&(this.u+=1),b=xta(yX(this),this.policy,!1)*this.policy.Ol,b=a>1E3*b);0<this.u&&this.callbacks.rS();b?this.UG(!1):this.j.start()}};
g.k.UG=function(a){a&&(a=yX(this),a.B+=1);this.callbacks.Oz();this.lastError="net.timeout";zX(this)};
g.k.canRetry=function(a){var b=yX(this);a=a?3:this.policy.mf;return b.timedOut<this.policy.En&&b.j<a};
g.k.Df=function(){return this.lastError};
g.k.Hr=function(){return this.u};
g.k.dispose=function(){this.j.dispose();g.E.prototype.dispose.call(this)};g.v(BX,gX);g.k=BX.prototype;g.k.IE=function(){return this.timing.requestNumber};
g.k.Se=function(){return this.We.Se()};
g.k.Ar=function(){var a=UQa(this.Cd);if(this.bj){var b=this.bj;a.ulen=b.j.totalLength;try{a.ubyte=lD(b.j,0)}catch(d){}}this.Tg&&(a.rc=this.Tg.toString());a.itag=this.info.Za[0].j.info.itag;a.ml=""+ +this.info.Za[0].j.vg();a.sq=""+this.info.Za[0].Na;this.We&&(a.ifi=""+ +bD(this.info.j.B));410!==this.Tg&&500!==this.Tg&&503!==this.Tg||(a.fmt_unav="true");var c;(b=this.errorMessage||(null==(c=this.xhr)?void 0:c.Ef()))&&(a.msg=b);this.DC&&(a.smb="1");this.rd&&(c=this.rd.hq(),c.length&&bua(c[0],a));this.info.Sn()&&
(a.sdai="1");return a};
g.k.NR=function(){return IQa(this.timing)};
g.k.Ef=function(){return this.xhr.Ef()||""};
g.k.Du=function(){return this.isComplete()||this.timing.Du()};
g.k.Gs=function(){!this.isDisposed()&&this.xhr&&(this.Tg=this.xhr.status,this.Bl()?this.ey(2):!this.zS&&this.Du()&&(this.ey(),this.zS=!0))};
g.k.Wu=function(){if(!this.isDisposed()&&this.xhr){if(!this.Xw&&this.xhr.xu()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Xw=((0,g.R)()-a)/1E3}this.xhr.xu()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Dw&&!cva()&&g.UA("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.oo=a||this.oo;this.Lp=b||this.Lp}};
g.k.fq=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.policy.useUmp||this.Cd.j.stop(),this.Tg=a.status,a=this.FK(a),5===a?zX(this.Cd):this.Fc(a),this.policy.useUmp&&this.Cd.j.stop())};
g.k.FK=function(a){if(TQa(this.Cd,this.xhr))return 5;var b="";if(jRa(this)){var c=a.YF();c.totalLength<=this.policy.Ql&&(b=kD(c),b=oD(b),b=uB(b)?b:"")}if(b)return eE(yX(this.Cd)),this.info.ek(this.We,b),3;b=a.il();if(this.bj){if(this.vj(!0),!this.iW){if(this.jW)return eE(yX(this.Cd)),3;this.Cd.lastError="net.closed";return 5}}else{if((c=this.info.B)&&c!==b||a.mG())return this.Cd.lastError="net.closed",5;this.vj(!0);if(!c&&this.rd&&(c=this.rd.hq(),c.length&&!bua(c[0])))return this.Cd.lastError="net.closed",
5}c=XPa(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=XPa(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.tV=!0,this.policy.Yv&&(c=a);a=this.Cd;c=c?Number(c):0;DQa(a.timing,(0,g.R)(),b,c);b=a.B;b.u=0;b.D=0;b.I=0;eE(yX(a));if(null!=(a=this.Xu)&&(b=this.We.hj,!((0,g.R)()<a.J+3E5||aD(b))&&(c=$C(b))&&yNa(c)&&a.u===bV(c))){var d;bD(b)&&(d=$C(cD(b)));g.UA("yt-player-bandaid-host",{primary:c,secondary:d},864E3);a.J=(0,g.R)();vNa(a,{primary:c,secondary:d})}return 4};
g.k.canRetry=function(){this.isDisposed();return this.Cd.canRetry(!!this.info.Sn())};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.yk?this.Oz():this.timing.deactivate())};
g.k.UG=function(a){this.Cd.UG(a)};
g.k.rS=function(){this.callback&&this.callback(this,this.state)};
g.k.Hr=function(){return this.Cd.Hr()};
g.k.dispose=function(){gX.prototype.dispose.call(this);this.Cd.dispose();this.policy.yk||this.Oz()};
g.k.Oz=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()};
g.k.Lj=function(){if(!this.hq().length)return[];this.SE=!0;return this.rd.Lj()};
g.k.Bl=function(){if(1>this.state)return!1;if(this.rd&&this.rd.le.length)return!0;var a;return(null==(a=this.xhr)?0:a.Np())?!0:!1};
g.k.hq=function(){this.vj(!1);return this.rd?this.rd.hq():[]};
g.k.vj=function(a){try{if(a||this.xhr.xu()&&this.xhr.Np()&&!jRa(this)&&!this.uy){if(!this.rd){var b;this.xhr.Py()||this.bj?b=this.info.B:b=this.xhr.il();this.rd=new hX(this.policy,this.info.Za,b)}this.xhr.Np()&&(this.bj?this.bj.feed(this.xhr.Bv()):iX(this.rd,this.xhr.Bv(),a&&!this.xhr.Np()))}}catch(c){this.bj?iRa(this,c):g.sA(c)}};
g.k.py=function(a,b){switch(a){case 21:a=b.split(1).Fk;iX(this.rd,a,!1);break;case 22:this.iW=!0;iX(this.rd,new fD([]),!0);break;case 43:if(a=JI(new EI(b),1))this.info.ek(this.We,a),this.jW=!0}};
g.k.iM=function(a,b,c){if(21!==a)return!1;if(!c){if(1===b.totalLength)return!0;b=b.split(1).Fk}iX(this.rd,b,!1);return!0};
g.k.il=function(){return this.xhr.il()};
g.k.cK=function(){return this.Xw};
g.k.yr=function(){return this.jF()?2:1};
g.k.jF=function(){if(!this.policy.C.Pj||!isNaN(this.info.Cg)&&0<this.info.Cg)return!1;if(!this.xhr.xu())return!0;if(this.bj)var a=!this.info.B;else this.xhr.CA()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a="audio/mp4"===a||"video/mp4"===a||"video/webm"===a);return!a||isNaN(this.info.Cg)&&(a=this.xhr.getResponseHeader("x-head-seqnum"))&&Number(a)>this.info.Za[0].Na?!1:!0};
g.k.rK=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.zE=function(){this.xhr&&(this.oo=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.oo};
g.k.RR=function(){this.xhr&&(this.Lp=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Lp};
g.k.Df=function(){return this.Cd.Df()};g.v(CX,g.E);
CX.prototype.Mr=function(a){var b=a.info.Za[0].j,c=a.Df();if(aD(b.u.j)){var d=g.Ef(a.Ef(),3);this.Ja.xa("dldbrerr",{em:d||"none"})}d=a.info.Za[0].Na;var e=$Oa(this.u,a.info.Za[0].B,d);"net.badstatus"===c&&(this.J+=1);if(a.canRetry()){if(!(3<=a.info.j.u&&this.B&&a.info.Sn()&&"net.badstatus"===a.Df()&&this.B.Mr(e,d))){d=(b.info.video&&1<b.u.u||410===a.Tg||500===a.Tg||503===a.Tg)&&!MW(this.D)&&!aD(b.u.j);e=a.Ar();var f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.Ja.handleError(c,e);
this.isDisposed()||(d&&LW(this.D,b),rX(f,a),this.Ja.Uj())}}else b=1,this.B&&a.info.Sn()&&"net.badstatus"===a.Df()&&this.B.Mr(e,d)&&(b=0),this.j.isLive&&"net.badstatus"===a.Df()&&this.J<=2*this.policy.mf?(Wua(this.j),this.j.Ne||this.j.isPremiere?this.Ja.va.seekTo(0,{Ee:"badStatusWorkaround"}):this.j.B?this.Ja.va.seekTo(this.j.Pb,{Ee:"badStatusWorkaround",Mq:!0}):nTa(this.Ja)):this.Ja.handleError(c,a.Ar(),b)};
CX.prototype.ra=function(){g.E.prototype.ra.call(this)};
var oRa=2/24;EX.prototype.py=function(a,b){switch(a){case 20:a=new EI(b);a={BS:HI(a,1),videoId:JI(a,2),itag:HI(a,3),lmt:HI(a,4),xtags:JI(a,5),yv:HI(a,6),Am:eAa(a,8),nq:HI(a,9),w9a:HI(a,10),startMs:HI(a,11),durationMs:HI(a,12),Io:HI(a,14),I$a:HI(a,17)};this.bM(a);break;case 21:this.ZL(b,!1);break;case 22:this.iy(b);break;default:this.SL(a,b)}};
EX.prototype.bM=function(){};
EX.prototype.SL=function(){};var FX,l9a=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),E3={},$Ra=(E3.a=1,E3.o=3,E3.meac3=5,E3.mac3=7,E3),F3={},ZRa=(F3["1h"]=8,F3["9h"]=4,F3["1"]=8,F3["9"]=4,F3.h=2,F3),ERa=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["571","401","400","399","398"],["313","271","248","247"],["137","136"]],GRa=[["140"],["251"],["380"],["328"]],G3={},CRa=(G3["303"]=["411"],G3["299"]=["385"],G3["302"]=["409","410"],G3["298"]=["384","376"],G3["248"]=["360"],G3["247"]=
"274 357 358 317 273 318 280 279".split(" "),G3["136"]="145 224 225 144 222 223 143 142".split(" "),G3["140"]=["149"],G3["380"]=["381"],G3["328"]=["329"],G3),H3={},BRa=(H3["398"]=["397","396","395","394"],H3["247"]=["244","243","242"],H3["136"]=["135","134","133","160"],H3["251"]=["250"],H3),I3={},LRa=(I3["140"]={numChannels:2},I3["251"]={audioSampleRate:48E3,numChannels:2},I3["380"]={numChannels:6},I3["328"]={numChannels:6},I3),J3={},KRa=(J3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},J3["336"]=
{width:2560,height:1440,bitrate:15E6,fps:30},J3["335"]={width:1920,height:1080,bitrate:75E5,fps:30},J3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},J3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},J3["700"]={width:2560,height:1440,bitrate:1E7,fps:60},J3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},J3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},J3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},J3["302"]={width:1280,height:720,bitrate:25E5,fps:60},J3["299"]={width:1920,height:1080,
bitrate:75E5,fps:60},J3["298"]={width:1280,height:720,bitrate:35E5,fps:60},J3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},J3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},J3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},J3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},J3["398"]={width:1280,height:720,bitrate:1E6,fps:60},J3["313"]={width:3840,height:2160,bitrate:8E6,fps:30},J3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},J3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},
J3["247"]={width:1280,height:720,bitrate:15E5,fps:30},J3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},J3["136"]={width:1280,height:720,bitrate:3E6,fps:30},J3),K3={},zRa=(K3["133"]=240,K3["134"]=360,K3["135"]=480,K3["136"]=720,K3["137"]=1080,K3["242"]=240,K3["243"]=360,K3["244"]=480,K3["247"]=720,K3["248"]=1080,K3["298"]=720,K3["299"]=1080,K3["302"]=720,K3["303"]=1080,K3["395"]=240,K3["396"]=360,K3["397"]=480,K3["398"]=720,K3["399"]=1080,K3),L3={},JRa=(L3["1"]='video/mp4; codecs="av01.0.08M.08"',
L3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',L3["9"]='video/webm; codecs="vp9"',L3["("]='video/webm; codecs="vp9"',L3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',L3.h='video/mp4; codecs="avc1.64001e"',L3.H='video/mp4; codecs="avc1.64001e"',L3.o='audio/webm; codecs="opus"',L3.a='audio/mp4; codecs="mp4a.40.2"',L3.mac3='audio/mp4; codecs="ac-3"; channels=6',L3.meac3='audio/mp4; codecs="ec-3"; channels=6',L3);g.v(PRa,EX);g.k=PRa.prototype;g.k.SL=function(a,b){switch(a){case 35:this.LB(b);break;case 44:this.NB(b);break;case 43:this.kM(b)}};
g.k.LB=function(a){a=new EI(a);a={targetAudioReadaheadMs:HI(a,1),targetVideoReadaheadMs:HI(a,2),backoffTimeMs:HI(a,4),playbackCookie:II(a,7)};this.callbacks.LB(a)};
g.k.NB=function(a){a=new EI(a);a={M5:JI(a,1),action:HI(a,2)};this.callbacks.NB(a)};
g.k.kM=function(a){a={redirectUrl:JI(new EI(a),1)};this.callbacks.kM(a)};
g.k.ZL=function(a){var b=lD(a,0);if(1!==a.totalLength&&(a=a.split(1).Fk,b=this.u[b]||null)){var c=this.callbacks;XRa(c.Te,b,a);TX(c.callbacks,c)}};
g.k.iy=function(){};
g.k.bM=function(a){var b=a.BS,c=a.Am,d=a.yv,e=a.nq,f=a.startMs,h=a.durationMs,l=a.Io,m=yRa(a);a=l9a.has(lF[""+a.itag]);this.u[b]=m;this.callbacks.Uu(m,a,{Am:!!c,yv:null!=d?d:-1,nq:null!=e?e:-1,startMs:null!=f?f:-1,durationMs:null!=h?h:-1,Io:l})};g.v(HX,g.E);g.k=HX.prototype;g.k.au=function(){return Array.from(this.Hd.keys())};
g.k.Ns=function(a){a=this.Hd.get(a);var b=a.le;a.JD+=b.totalLength;a.le=new fD;return b};
g.k.Eg=function(a){return this.Hd.get(a).Eg};
g.k.Eh=function(a){return this.Hd.get(a).Eh};
g.k.Uu=function(a,b,c){this.Hd.get(a)||this.Hd.set(a,{le:new fD,JD:0,bytesReceived:0,GS:0,GM:!1,Eg:!1,Eh:!1,ym:b,pV:[],Za:[],wB:[]});b=this.Hd.get(a);this.j?(c=VRa(this,a,c),URa(this,a,b,c)):(c.Am?b.GS=c.Io:b.wB.push(c),b.pV.push(c))};
g.k.Kr=function(a){var b;return(null==(b=this.Hd.get(a))?void 0:b.Za)||[]};
g.k.ey=function(){for(var a=g.t(this.Hd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.GM&&(b.De&&b.De(),b.GM=!1)};
g.k.iy=function(a){(a=this.Hd.get(a))&&!a.Eh&&(a.Eh=!0)};
g.k.Lj=function(a){var b,c=null==(b=this.Hd.get(a))?void 0:b.rd;if(!c)return[];this.vj(a,c);return c.Lj()};
g.k.Bl=function(a){var b,c,d;return!!(null==(c=null==(b=this.Hd.get(a))?void 0:b.rd)?0:null==(d=c.hq())?0:d.length)||kX(this,a)};
g.k.vj=function(a,b){for(;kX(this,a);)iX(b,this.Ns(a),TRa(this,a)&&ZPa(this,a))};
g.k.ra=function(){g.E.prototype.ra.call(this);for(var a=g.t(this.Hd.keys()),b=a.next();!b.done;b=a.next())RRa(this,b.value);this.Hd.clear()};g.v(YRa,g.E);g.k=YRa.prototype;g.k.Gs=function(){!this.isDisposed()&&this.xhr&&this.vj()};
g.k.Wu=function(){};
g.k.fq=function(){if(!this.isDisposed()&&this.xhr){var a=this.FK();5===a?zX(this.Cd):this.Fc(a)}};
g.k.FK=function(){if(TQa(this.Cd,this.xhr,this.info.Fu()))return 5;this.vj();if(this.nV)return 3;var a=this.Cd,b=this.xhr.il();DQa(a.timing,(0,g.R)(),b,0);b=a.B;b.u=0;b.D=0;b.I=0;eE(yX(a));this.Cd.j.stop();return 4};
g.k.vj=function(){var a=this.xhr;a.Np()&&(a=a.Bv(),this.bj.feed(a))};
g.k.py=function(a,b){this.d6.py(a,b)};
g.k.LB=function(a){this.callbacks.LB(a)};
g.k.NB=function(a){this.callbacks.NB(a)};
g.k.kM=function(a){this.nV=!0;this.info.j.ek(this.We,a.redirectUrl)};
g.k.canRetry=function(){this.isDisposed();return this.Cd.canRetry(!1)};
g.k.dispose=function(){this.isDisposed()||(g.E.prototype.dispose.call(this),this.Cd.dispose(),this.Fc(-1))};
g.k.Fc=function(a){this.state=a;TX(this.callbacks,this)};
g.k.Fu=function(){return this.info.Fu()};
g.k.Uu=function(a,b,c){this.Te.Uu(a,b,c)};
g.k.Lj=function(a){return this.Te.Lj(a)};
g.k.Kr=function(a){return this.Te.Kr(a)};
g.k.Bl=function(a){return this.Te.Bl(a)};
g.k.au=function(){return this.Te.au()};
g.k.yr=function(){return 1};
g.k.IE=function(){return this.zk.requestNumber};
g.k.JT=function(){this.Oz()};
g.k.Oz=function(){var a;null==(a=this.xhr)||a.abort();this.zk.deactivate()};
g.k.isComplete=function(){return 3<=this.state};
g.k.US=function(){return 3===this.state};
g.k.isFailed=function(){return 5===this.state};
g.k.VS=function(){return 4===this.state};
g.k.Yr=function(){return 1<=this.state};
g.k.Hr=function(){return this.Cd.Hr()};
g.k.rS=function(){};
g.k.Df=function(){return this.Cd.Df()};
g.k.Ar=function(){var a=UQa(this.Cd);a.req="sabr";a.rn=this.IE();var b;if(null==(b=this.xhr)?0:b.status){var c;a.rc=null==(c=this.xhr)?void 0:c.status}var d;(b=null==(d=this.xhr)?void 0:d.Ef())&&(a.msg=b);return a};iSa.prototype.Fu=function(){return 1===this.requestType};g.v(KX,g.E);KX.prototype.encrypt=function(a){(0,g.R)();if(this.u)var b=this.u;else this.B?(b=new cH(this.B,this.j.j),g.H(this,b),this.u=b):this.u=new bH(this.j.j),b=this.u;return b.encrypt(a,this.iv)};
KX.prototype.decrypt=function(a,b){(0,g.R)();return(new bH(this.j.j)).decrypt(a,b)};kSa.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;b.yl.Tc("omd_s");c=new Uint8Array(16);QG()?d=new aH(a):e=new bH(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ia(3);break}f=b.j.shift();if(!d){h=e.decrypt(kD(f.buffer),c);m.Ia(4);break}return g.y(m,d.decrypt(kD(f.buffer),c),5);case 5:h=m.u;case 4:l=h;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}n=new fD([l]);lSa(b.yl.me,
f.HN,n);m.Ia(2);break;case 3:b.yl.Tc("omdf"),b.yl.Tc("omd_c"),mSa(b),b.u=!1,b.yl.aM(),g.pa(m)}})};var wSa=!!Uint8Array.prototype.copyWithin,MX=[],nSa=[],qSa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],OX=[],NX=[],PX=[],oSa=[];g.v(ySa,EX);g.k=ySa.prototype;g.k.aM=function(){this.me.aM()};
g.k.SL=function(a,b){switch(a){case 10:var c=KI(b,bRa);a=c.B5;var d=!1;switch(a){case 0:this.C=!c.IU.E1;this.iv=c.IU.iv;break;case 2:break;case 23:var e=this.me;c=c.f2;e.Tc("omp_r");c.videoId&&(e.qv=c.videoId);e.qv!==e.videoData.videoId&&(e.videoData.NZ=e.qv,e.xa("ompp","vid."+e.qv));e.yL=!0;break;case 24:c=this.me;c.Tc("omp_c");c.yL=!1;c.mC=!1;var f;null!=(f=null==(e=c.Gg)?void 0:e.get(c.qv))&&(f.B=!0);RX(c);break;default:d=!0}this.me.fk&&this.me.xa("ombup","id.10;pt."+a+";len."+b.totalLength+(d?
";ignored.1":""));this.B=a;break;case 11:ASa(this,b);break;case 12:this.ZL(b,!0);break;case 37:b=KI(b,XQa);(b.ZI||b.mO)&&b.videoId&&this.me.GR.set(b.videoId,b);break;default:this.me.fk&&this.me.xa("ombup","id."+a+";len."+b.totalLength+";ignored.1")}};
g.k.bM=function(a){var b=a.BS,c=a.Am,d=a.yv,e=a.nq,f=a.startMs,h=a.durationMs,l=a.Io,m=yRa(a),n=l9a.has(lF[""+a.itag]);c&&this.Tc(n?"oais_r":"ovis_r");var p=void 0!==this.j[m];this.me.fk&&this.me.xa("ombup","id.20;hid."+b+";fid"+m);this.u[b]=m;p||(this.j[m]={vS:!1,ym:n,headers:[]});this.j[m].headers.push(a);this.me.Uu(m,n,{Am:!!c,yv:null!=d?d:-1,nq:null!=e?e:-1,startMs:null!=f?f:-1,durationMs:null!=h?h:-1,Io:null!=l?l:0})};
g.k.ZL=function(a,b){var c=lD(a,0);this.me.fk&&this.me.xa("ombup","id."+(b?12:21)+";len."+a.totalLength+";hid."+c);if(1!==a.totalLength&&(a=a.split(1).Fk,c=this.u[c]||null)){this.Yi(this.j[c].ym?"oafs_r":"ovfs_r");var d=this.queue;d.j.push({HN:c,buffer:a,isEncrypted:b});d.u||mSa(d)}};
g.k.iy=function(a){var b=lD(a,0);this.me.fk&&this.me.xa("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.u[b]||null)&&this.me.iy(a)};
g.k.hM=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r,w,x,z,B,C;return g.A(function(G){switch(G.j){case 1:c.me.hM();d=kD(a);if(!b){f=d;G.Ia(2);break}return g.y(G,ESa(c.me,d,c.iv),3);case 3:f=G.u;case 2:e=f;if(!c.me.enableCompression){G.Ia(4);break}h=c.me.V();m=null==(l=performance)?void 0:l.now();return g.y(G,xSa(e,h.gh),5);case 5:e=G.u,c.me.xa("decompression",{ds:"DecompressionStream"in window,wasm:!!h.gh,rt:(null==(n=performance)?NaN:n.now())-m});case 4:try{p=KI(e,gRa)}catch(F){return q=F instanceof
Error?{name:F.name,message:F.message}:{},q.webcrypto=""+ +!!QG(),q.enc=""+ +c.C,r=new cI("onesie.response.parse",q),G.return(Promise.reject(r))}if(1!==p.onesieProxyStatus)return w={st:p.onesieProxyStatus,webcrypto:""+ +!!QG(),textencoder:""+ +!!g.D.TextEncoder},x=new cI("onesie.response.badproxystatus",w),G.return(Promise.reject(x));if(200!==p.httpStatus)return z={st:p.httpStatus},B=new cI("onesie.response.badstatus",z),G.return(Promise.reject(B));C=g.qD(p.body);return G.return(C)}})};
g.k.Tc=function(a){this.me.Tc(a)};
g.k.Yi=function(a){return this.me.Yi(a)};g.v(SX,g.E);g.k=SX.prototype;g.k.au=function(a){var b,c;return(null==(c=null==(b=this.Gg)?void 0:b.get(a))?void 0:c.au())||[]};
g.k.Bl=function(a){var b;return!(null==(b=LX(this,a))||!b.Bl(a))};
g.k.Lj=function(a){var b;return(null==(b=LX(this,a))?void 0:b.Lj(a))||[]};
g.k.Kr=function(a){var b;return(null==(b=LX(this,a))?void 0:b.Kr(a))||[]};
g.k.Fc=function(a){this.state=a;var b;null==(b=this.callbacks)||TX(b,this)};
g.k.Fu=function(){return!1};
g.k.Tc=function(a){this.va.Tc(a)};
g.k.Yi=function(a){return this.va.Yi(a)};
g.k.py=function(a,b){this.yl.py(a,b)};
g.k.TL=function(){this.Tc("orfb");this.gF=!0;if(FSa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.il(),rt:(1E3*IQa(this.zk)).toFixed(),shost:g.Xh(this.qM),trigger:"o1"};this.xa("pathprobe",bI(a))}};
g.k.hM=function(){this.Tc("orpr");this.Tc("opr_r");this.yS=!0};
g.k.Uu=function(a,b,c){if(this.Gg){var d=a.split(";")[0];if(!this.Gg.has(d)){var e=new HX(this);this.Gg.set(d,e);g.H(this,e)}var f;null==(f=this.Gg.get(d))||f.Uu(a,b,c)}else null==(d=this.Te)||d.Uu(a,b,c);RX(this)};
g.k.aM=function(){if(this.Gg)for(var a=g.t(this.Gg.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Gg.get(b.value))||c.ey()}};
g.k.xa=function(a,b,c){this.va.xa(a,b,void 0===c?!1:c)};
g.k.iy=function(a){var b;null==(b=LX(this,a))||b.iy(a)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,w,x,z,B,C,G,F,K,L;return g.A(function(N){switch(N.j){case 1:a.qy.start();a.Tc("ogpd");a.Tc("or_i");b=a.Y.experiments.eb("html5_onesie_verbose_timing");c={};d=(0,g.R)();e=function(ba){b&&(c[ba]=(0,g.R)()-d)};
e("loc_s");if(f=BSa(a.videoData,a.Qr)){N.Ia(2);break}e("loc_async");return g.y(N,CSa(a.videoData,a.Qr),3);case 3:f=N.u;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),h={url:"0"},l=new cI("onesie.unavailable.hotconfig",h),a.fail(l),N.return(a.Lo);a.rV=$C(f);e("loc_e");n=g.aI(a.Y,g.bK(a.videoData));if(!n.j){p=n.getValue();N.Ia(4);break}return g.y(N,n.j,5);case 5:p=N.u;case 4:q=p;e("oauth");r=bSa(a.playerRequest,a.Y,a.videoData,q,bV(a.rV));g.qa(N,6);if(a.N("html5_onesie_sync_request_encryption")||
r.skipResponseEncryption||g.VH(a.Y)&&a.N("html5_embed_onesie_use_sync_encryption")||!QG()){e("or_s_sync");m=dSa(r,a.QB,a.Y,a.videoData,a.va.getPlayerSize(),a.va.getVisibilityState(),a.AJ.onesieUstreamerConfig,null==(w=a.videoData.CS)?void 0:w.SC);N.Ia(8);break}e("or_s_async");return g.y(N,hSa(r,a.QB,a.Y,a.videoData,a.va.getPlayerSize(),a.va.getVisibilityState(),a.AJ.onesieUstreamerConfig,null==(x=a.videoData.CS)?void 0:x.SC),9);case 9:m=N.u;case 8:g.ra(N,7);break;case 6:return z=g.ua(N),a.logger.info("Failed to create OnesieRequestProto."),
a.fail(z),N.return(a.Lo);case 7:return e("or_e"),b&&a.xa("oreqvt",c),a.enableCompression=m.VK.enableCompressionResponseOnly,a.Tc("osor"),B=rKa(),C=SI(m,dRa),G={method:"POST",body:C,headers:{"Content-Type":"text/plain",Referer:location.origin}},F=a.N("html5_onesie_media_capabilities"),DSa(f,a.videoData,HSa(a),F),a.fk&&a.xa("ombrs","1"),K=a.va.V().schedule,a.zk=new tX(a,{yh:K,IJ:a.fk,iC:function(ba,T){a.va.hC(ba,T)}}),f.set("rn",""+a.zk.requestNumber),a.qM=f.Se(),zQa(a.zk,a.qM),a.Tc("ocs"),a.Tc("or_p"),
a.xhr=RQa(new cE(f),B,a.zk,HJ,G),a.BU.start(),a.fk&&(null==(L=a.Qr)?0:L.D)&&a.xa("ombhr",a.Qr.D),N.return(a.Lo)}})};
g.k.Wu=function(){this.Tc("orh_r")};
g.k.Gs=function(){!this.gF&&this.xhr.il()&&this.TL();this.vj()};
g.k.fq=function(){this.vj();if(!this.isDisposed()){var a=ISa(this),b=this.xhr;a.rc=b.status;if(b.Ef()){var c="onesie.net";a.msg=b.Ef()}else 400<=b.status?c="onesie.net.badstatus":b.eC()?this.yS||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.fail(new cI(c,a)):(this.Tc("orf"),this.Tc("or_fs"),DQa(this.zk,(0,g.R)(),b.il(),0),this.Fc(4),this.fk&&this.xa("rqs",a));this.fk&&this.xa("ombre","ok."+ +!c);this.mC=!1;RX(this);zSa(this.yl);this.qy.stop();
var d;if(c=null==(d=this.Qr)?void 0:zNa(d))for(d=0;d<c.length;d++)this.xa("pathprobe",c[d])}};
g.k.JT=function(){if(this.playerResponse){var a;null==(a=this.xhr)||a.abort()}};
g.k.V=function(){return this.Y};
g.k.N=function(a){return this.Y.N(a)};
g.k.b2=function(){if(FSa(this)&&this.Qr&&(!this.gF||this.N("html5_onesie_probe_ec_hosts"))){var a=this.Qr;if(a.Y.experiments.eb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:$C(b.location);c&&aV(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:$C(d.location))&&aV(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:$C(e.location))&&aV(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:$C(c.location))&&aV(a,d,"o3",this)}}};
g.k.sS=function(){this.logger.info("Onesie request timed out");this.mC=!1;if(!RX(this)){var a=ISa(this);a.timeout="1";this.fail(new cI("onesie.request",a))}};
g.k.fail=function(a){var b=this;a=eI(a);this.fF?this.va.Sd(a):(this.Lo.reject(a),this.fF=!0);zSa(this.yl);this.qy.stop();this.Tc("ore");this.Tc("or_fe");var c,d;null==(c=this.Qr)||null==(d=zNa(c))||d.forEach(function(e){b.xa("pathprobe",e)});
this.Fc(5);this.dispose()};
g.k.isComplete=function(){return 3<=this.state};
g.k.VS=function(){return 4===this.state};
g.k.US=function(){return!1};
g.k.isFailed=function(){return 5===this.state};
g.k.sC=function(a){this.callbacks=a};
g.k.ra=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();zSa(this.yl);this.bj.dispose();g.E.prototype.ra.call(this)};
g.k.vj=function(){try{var a=this.xhr;102400<a.il()&&!this.NS&&(this.Tc("or100k"),this.NS=!0);if(a.Np()){var b=a.Bv(),c=b.totalLength;this.fk&&this.xa("ombrss","len."+c);this.bj.feed(b)}if(this.Gg)for(var d=g.t(this.Gg.keys()),e=d.next();!e.done;e=d.next())a=void 0,null==(a=this.Gg.get(e.value))||a.ey()}catch(f){this.fail(f)}};g.v(UX,g.E);UX.prototype.Mr=function(a){if(a instanceof SX)KSa(this,a);else{var b=1;a.canRetry()&&(KSa(this,a),b=0);this.Ja.handleError(a.Df(),a.Ar(),b)}};
UX.prototype.LB=function(a){this.u=a;this.I=(0,g.R)()+(a.backoffTimeMs||0)};
UX.prototype.NB=function(a){if(void 0!==a.action){var b={};b.reason=a.M5;b.action=a.action;1===a.action?this.Ja.eE(b):0===a.action&&this.Ja.FJ(b)}};
UX.prototype.ra=function(){g.E.prototype.ra.call(this);this.u=void 0;for(var a=g.t(this.j),b=a.next();!b.done;b=a.next())b.value.dispose()};OSa.prototype.clear=function(){this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1};g.v(g.WX,g.E);g.k=g.WX.prototype;
g.k.initialize=function(a,b,c){a=a||0;this.va.LF(NW(this.xe));if(this.Gb.isManifestless){if(this.policy.Wh){b=Jsa(this.policy);for(var d in this.Gb.j)this.Gb.j.hasOwnProperty(d)&&(this.Gb.j[d].index.B=b)}xRa(this.B)}this.C&&QSa(this.C,this.videoTrack.j);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.Gb.isManifestless?d:a;this.policy.Ba?NSa(this.oa,this.gb):this.J&&(WSa(this,this.videoTrack),WSa(this,this.audioTrack),SRa(this.J),delete this.J);c?(this.policy.Xd?(this.Ka=c,YX(this,
c)):YX(this,!1),g.$n(this.sF)):(a=0===this.currentTime,DX(this.B,this.videoTrack,this.videoTrack.j,a),DX(this.B,this.audioTrack,this.audioTrack.j,a),this.seek(this.currentTime).Oj(function(){}),this.timing.tick("gv"));
(this.Gb.Be||this.Gb.Fg||this.Gb.Pb||this.Gb.xd||this.Gb.Xd)&&this.xa("minMaxSq",{minSq:this.Gb.Be,maxSq:this.Gb.Fg,minDvrTime:this.Gb.Pb,maxDvrTime:this.Gb.xd,startWalltime:this.Gb.Xd})};
g.k.resume=function(){if(this.isSuspended||this.mB){this.dE=this.mB=this.isSuspended=!1;try{this.Uj()}catch(a){g.rA(a)}}};
g.k.kx=function(a){a=void 0===a?!1:a;$Sa(this);UY(this.va)&&(this.D=NaN);a?this.policy.Z=!0:this.policy.Xd?YX(this,this.Ka):YX(this,!1);this.Yj()};
g.k.setAudioTrack=function(a,b,c){if(this.isDisposed())return!1;var d=this.xe;d.u=d.D.j[a.id];d.J=d.u;d=new GW(d.J,d.j,"m");bTa(this.va,d.reason,d.audio.info);if(!isNaN(c)&&(d=this.audioTrack.j.index.ai(b)))return this.xa("sdai",{stadio:a.id,sq:d,mt:b.toFixed(3)}),XSa(this,b,b,d),aY(this,this.timestampOffset-c),$X(this),!0;ZX(this.va);return!1};
g.k.setPlaybackRate=function(a){a!==this.T.getPlaybackRate()&&this.T.setPlaybackRate(a)};
g.k.sK=function(){return this.va.sK()};
g.k.LA=function(){return this.va.LA()};
g.k.gm=function(){return this.va.gm()};
g.k.oM=function(a){this.va.oM(a)};
g.k.Uj=function(){aTa(this);if(this.mediaSource&&PF(this.mediaSource)&&!this.mediaSource.Oi()){var a=mX(this.videoTrack);a=this.policy.iz&&a&&sE(a);this.Gb.isManifestless&&this.Gb.B&&dG(this.Gb)?(this.D=dG(this.Gb),this.mediaSource.Bk(this.D)):hG(this.Gb)&&!a?isNaN(this.D)?(this.D=this.currentTime+3600,this.mediaSource.Bk(this.D)):this.D<=this.currentTime+1800&&(this.D=Math.max(this.D+1800,this.currentTime+3600),this.mediaSource.Bk(this.D)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.D)||this.D!==a)&&0<a&&(this.mediaSource.Bk(a),this.D=a))}if(!this.isDisposed())if(cG(this.Gb)&&this.Gb.isFailed())this.handleError("manifest.net.retryexhausted",{rc:this.Gb.Tg.toString()},1);else if(this.policy.Ba){LSa(this.oa);XX(this);a=this.oa;if(a.Ja.dE||a.Ja.isSuspended||a.I&&(0,g.R)()<a.I||0<a.j.length)var b=!1;else if(a.u){b=1E3*pX(a.audioTrack,!0);var c=1E3*pX(a.videoTrack,!0)>a.u.targetVideoReadaheadMs;b=!(b>a.u.targetAudioReadaheadMs)||!c}else b=
!0;b&&(b=gQa(a.audioTrack),c=gQa(a.videoTrack),b=[].concat(g.u(b),g.u(c)),b=new iSa(0,a.T,a.videoData,a.va.getPlayerSize(),a.va.getVisibilityState(),a.B,b,a.va.getCurrentTime(),a.u,NW(a.J)),a.j.push(JSa(a,b)));this.mediaSource&&YSa(this)}else if(!this.Gb.u||!qQa(this.videoTrack)&&!qQa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Rb?a=!1:(this.Yj(),this.va.seekTo(Infinity,{Ee:"checkLoaderTracksSync",Mq:!0}),a=!0),!a){aTa(this);if(!this.policy.useUmp)try{dQa(this.videoTrack);
if(this.isDisposed())return;dQa(this.audioTrack);if(this.isDisposed())return}catch(e){wRa(this,e,{origin:"pollSlice"})}this.Gb.isManifestless&&(rQa(this.videoTrack),rQa(this.audioTrack),VOa(this.u),(a=BW(this.videoTrack))&&a.u&&(a=a.u.D&&!this.policy.vp,this.xa(a===this.policy.C.Pj?"strm":"strmbug",{strm:a,sfmp4:this.policy.C.Pj,dfs:this.policy.vp},!0)));this.mediaSource?YSa(this):this.policy.u&&((a=BW(this.videoTrack))&&this.videoTrack.Ns(a),(b=BW(this.audioTrack))&&this.audioTrack.Ns(b),nX(this.videoTrack)&&
nX(this.audioTrack)||(a||b)&&$X(this));XX(this);DX(this.B,this.videoTrack,this.videoTrack.j,!1);DX(this.B,this.audioTrack,this.audioTrack.j,!1);a=this.videoTrack;var d=this.audioTrack;if((!this.mediaSource||PF(this.mediaSource)&&!this.policy.dc)&&!this.u.Rg()&&sX(a)&&a.j.vg()&&this.xe.T)a:{if(b=this.currentTime,c=this.T,d=uW(c,a.j.info.ac,d.j.info.ac,0),c=iH(c.schedule)+d/kH(c.schedule),b+=Math.max(c,c+10-d/a.j.info.ac),a.B.length){if(a.B[0].info.Za[0].startTime<=b)break a;yW(a)}c=a.C;for(d=c.u.length-
1;0<=d;d--)c.u[d].info.startTime>b&&c.u.pop();a.B.length?a.u=g.fb(g.fb(a.B).info.Za):a.C.u.length?a.u=cX(a.C).info:a.u=mX(a);a.u&&b<a.u.startTime&&(a.oa=0,a.j.vg()?a.u=a.j.Cp(b,!0).Za[0]:a.u=null)}qRa(this.B,this.videoTrack,this.audioTrack);qRa(this.B,this.audioTrack,this.videoTrack);this.policy.Rk&&this.Aa&&!this.isSuspended&&Wva(this.schedule)&&(jTa(this,this.Aa),this.Aa="");this.C&&(a=this.C,a.C?(b=a.I+a.policy.Dn,a.B||(b=Math.min(b,a.startTimeSecs+a.policy.Ul)),a=Math.max(0,1E3*b-Date.now())):
a=NaN,isNaN(a)||g.$n(this.Va,a));g.$n(this.Ma)}};
g.k.FJ=function(a){this.va.FJ(a)};
g.k.eE=function(a){this.va.eE(a)};
g.k.qZ=function(a){var b=this;a.ql()&&0===a.Bg().length&&(a.SD(),this.mediaSource&&!this.mediaSource.ql()&&(this.mediaSource.D=performance.now(),this.va.VJ()));if(this.policy.Ma&&this.mediaSource){var c=a===this.mediaSource.j,d=a.BE();d&&(d.Nb&&!d.cf||this.xa("sbu",a.jc({a:c})),d.cf&&!a.Oi()&&setTimeout(function(){var e=a.Bg(),f=EF(e,d.startTime+oRa),h=EF(e,b.currentTime);(0>f||f!==h)&&b.xa("sbu_mismatch",{b:DF(e),c:b.currentTime,s:yE(d)})},0))}this.Uj()};
g.k.S2=function(a){if(this.mediaSource){var b=mX(a===this.mediaSource.j?this.audioTrack:this.videoTrack);if(a=a.pK())for(var c=0;c<a.length;c++)this.xa("appendedbuffer",{i:c,b:g.Df(a[c].subarray(0,4096),3)});a=void 0;b&&(a=xE(b));this.handleError("fmt.unplayable",a,1)}};
g.k.jy=function(a){this.va.jy(a)};
g.k.dM=function(a,b,c){this.Gb.isManifestless&&UPa(this,b,c,!!a.info.video,!0)};
g.k.cM=function(a,b,c,d){a.info.video&&this.j.cM(b,c,d)};
g.k.UA=aa(10);g.k.seek=function(a){if(this.isDisposed())return of();if(this.videoTrack.J||this.audioTrack.J)return of("seeking to head");aTa(this);this.B.T=(0,g.R)();XX(this,a);this.mediaSource&&this.mediaSource.j&&this.mediaSource.u&&(this.mediaSource.j.isLocked()||this.mediaSource.u.isLocked())&&ZX(this.va,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.u.isLocked(),asb:""+this.mediaSource.j.isLocked()});var b=this.currentTime;this.currentTime=this.u.seek(a);FW(this.j,a,b);$X(this);return nf(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.eK=function(){return this.audioTrack.j.info};
g.k.gK=function(){return this.videoTrack.j.info};
g.k.dK=function(){return this.audioTrack.j.info.Hb};
g.k.fK=function(){return this.videoTrack.j.info.Hb};
g.k.ra=function(){try{this.kx();yW(this.audioTrack);yW(this.videoTrack);var a;null!=(a=this.audioTrack.Z)&&(a.jp=[],a.j=-1);var b;null!=(b=this.videoTrack.Z)&&(b.jp=[],b.j=-1);g.E.prototype.ra.call(this)}catch(c){g.rA(c)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=dI(c);if("fmt.unplayable"===a&&this.Gb.isLive){this.policy.Pa=!1;var e=this.Gb;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new cI(a,b,c);g.Na(this);bI(b.details);this.va.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.jc=function(){var a=mX(this.audioTrack),b=mX(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.u.Rg(),lmf:OW(this.xe),lbw:jH(this.schedule).toFixed(3),lhd:iH(this.schedule).toFixed(3),lst:(1E9*(this.schedule.j.Li()||0)).toFixed(3),laa:a?yE(a):"",lva:b?yE(b):"",lar:this.audioTrack.u?yE(this.audioTrack.u):"",lvr:this.videoTrack.u?yE(this.videoTrack.u):"",laq:""+oX(this.audioTrack),lvq:""+oX(this.videoTrack)};this.mediaSource&&!this.mediaSource.Eg()&&this.mediaSource.j&&this.mediaSource.u&&
(a.lab=DF(this.mediaSource.j.Bg()),a.lvb=DF(this.mediaSource.u.Bg()));this.Z&&(a.lapt=((0,g.R)()-this.Z).toFixed(0),a.lapr=dTa(this));return a};
g.k.Yj=function(){try{this.audioTrack.Yj(),this.videoTrack.Yj()}catch(a){g.rA(a)}this.policy.u=""};
g.k.aK=function(){return tW(this.T)};
g.k.xa=function(a,b,c){this.va.xa(a,b,void 0===c?!1:c)};
g.k.Yf=function(){return this.va.Yf()};
g.k.Mq=function(a,b){a/=b;isNaN(this.timestampOffset)&&aY(this,a-Math.min(a,this.policy.kz));return(a-this.timestampOffset)*b};
g.k.Rg=function(){return this.u.Rg()};
g.k.vu=function(){this.j.vu()};
g.k.Vy=function(a){this.xe.Vy(a)};
g.k.bA=function(a){if(!this.I)return 0;var b=this.videoTrack.j.index.ai(a);return this.I.bA(a,b)};
g.k.Ko=function(a,b){if(this.I&&this.j.Ko(a,this.I))return aY(this,this.timestampOffset-b),$X(this),!0;b=this.videoTrack.j.index.ai(a);this.handleError("ad.skipfailed",{dec:!!this.I,t:a.toFixed(3),sq:b});return!1};
g.k.Cx=function(a){return this.j.Cx(a)};
g.k.hC=function(a,b){this.va.hC(a,b)};g.k=g.bY.prototype;g.k.Sn=function(a,b,c,d,e){return this.td.Sn(a,b,c,d,e)};
g.k.uu=function(a,b,c,d,e){return this.td.uu(a,b,c,d,e)};
g.k.NE=function(a){this.td.NE(a)};
g.k.Mr=function(a,b){return this.td.Mr(a,b)};
g.k.vu=function(){this.td.vu()};
g.k.bA=function(a,b){return this.td.bA(a,b)};
g.k.yN=function(a,b){this.td.yN(a,b)};
g.k.XM=function(){this.td.XM()};
g.k.DA=aa(38);g.k.ek=function(a,b,c){this.td.ek(a,b,c)};
g.k.LC=aa(36);g.k.mM=function(a,b,c,d,e,f,h,l,m){this.td.mM(a,b,c,d,e,f,h,l,m)};
g.k.qN=function(a){this.td.qN(a)};
g.k.lM=function(a,b,c,d){this.td.lM(a,b,c,d)};
g.k.Bs=function(a){return this.td.Bs(a)};g.v(cY,g.FB);g.v(dY,cY);dY.prototype.I=function(a,b){if(a&&b){var c=1*Number(ei(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.j={}):(c>this.B&&(this.B=c,g.Uc(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.$n(this.u))}};
dY.prototype.D=function(){for(var a=g.t(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ma;for(var d=this.B,e=this.j[c].match(Vh),f=[],h=g.t(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.ne(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[2*e+4]=c.charCodeAt(e);b.call(this,
"rotated_need_key_info_ready",new XW(d,"fairplay",!0))}this.j={}};
dY.prototype.ra=function(){this.j={};cY.prototype.ra.call(this)};g.v(eY,cY);
eY.prototype.I=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.t(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}b=!b}if(b){b=(0,g.R)();if(!(c=this.D)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.t(this.B.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c=!c}c?c=0:(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.ma("log_qoe",{wvagt:"delay."+
c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});this.C&&0>=c?pTa(this,a):(this.j.push({time:b+c,info:a}),g.$n(this.u,c))}};
eY.prototype.ra=function(){this.j=[];cY.prototype.ra.call(this)};var M3={},wTa=(M3.DRM_TRACK_TYPE_AUDIO="AUDIO",M3.DRM_TRACK_TYPE_SD="SD",M3.DRM_TRACK_TYPE_HD="HD",M3.DRM_TRACK_TYPE_UHD1="UHD1",M3);g.v(tTa,g.E);tTa.prototype.sC=function(a,b){this.onSuccess=a;this.onError=b};g.v(yTa,g.FB);g.k=yTa.prototype;g.k.Es=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=rG(b.u)?d:c;d=new Uint8Array(rG(b.u)?c:d);rG(b.u)&&MTa(d);c=g.Df(d,4);MTa(d);d=g.Df(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),ITa(this,","),fY(this,{onkeystatuschange:1}),this.status="kc",this.ma("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.ma("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.ma("ctmp","provf",{et:a.toFixed(3)})));dI(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Ba&&this.J?!1:!a&&this.requestNumber===b.requestNumber};
g.k.ra=function(){this.j={};g.FB.prototype.ra.call(this)};
g.k.jc=function(){var a={ctype:this.T.contentType||"",length:this.T.initData.length,requestedKeyIds:this.Aa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a};
g.k.ih=function(){var a=this.D.join();if(gY(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.k.Se=function(){return this.url};g.v(hY,g.E);g.k=hY.prototype;g.k.sC=function(a,b,c,d){this.D=a;this.B=b;this.I=c;this.J=d};
g.k.rZ=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.k.Es=function(){this.J&&this.J(this.j.keyStatuses)};
g.k.oU=function(a){this.D&&this.D(a.message,"license-request")};
g.k.nU=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.mU=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.j)return this.j.update(a).then(null,g.vv(function(c){OTa(b,"t.update",c)}));
this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.T.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.T.keySystem,a,this.initData,this.sessionId);return Wv()};
g.k.ra=function(){this.j&&this.j.close();this.element=null;g.E.prototype.ra.call(this)};g.v(iY,g.E);g.k=iY.prototype;g.k.attach=function(){var a=this;if(this.j.keySystemAccess)return this.j.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))});
qG(this.j)?this.B=new (pG())(this.j.keySystem):sG(this.j)?(this.B=new (pG())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(fA(this.D,this.element,["keymessage","webkitkeymessage"],this.uZ),fA(this.D,this.element,["keyerror","webkitkeyerror"],this.tZ),fA(this.D,this.element,["keyadded","webkitkeyadded"],this.sZ));return null};
g.k.setServerCertificate=function(){return this.u.setServerCertificate?"widevine"===this.j.flavor&&this.j.Qk?this.u.setServerCertificate(this.j.Qk):RC(this.j)&&this.j.Xa?this.u.setServerCertificate(this.j.Xa):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();tG(this.j)?c=PTa(c,this.j.Xa):RC(this.j)&&(c=oTa(c)||new Uint8Array(0));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new hY(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},g.vv(function(f){OTa(e,"t.generateRequest",f)}));
return e}if(qG(this.j))return RTa(this,c);if(sG(this.j))return QTa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new hY(this.element,this.j,c,null,null)};
g.k.uZ=function(a){var b=STa(this,a);b&&b.oU(a)};
g.k.tZ=function(a){var b=STa(this,a);b&&b.nU(a)};
g.k.sZ=function(a){var b=STa(this,a);b&&b.mU(a)};
g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.k.ra=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.t(Object.values(this.I));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.I={};g.E.prototype.ra.call(this);delete this.element};g.k=jY.prototype;g.k.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
g.k.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
g.k.yg=function(){this.keys=[];this.values=[]};
g.k.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
g.k.findIndex=function(a){return g.jb(this.keys,function(b){return g.Db(a,b)})};g.v(VTa,g.FB);g.k=VTa.prototype;g.k.w3=function(a){this.ej({onecpt:1});a.initData&&YTa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.T3=function(a){this.ej({onndky:1});YTa(this,a.initData,a.contentType)};
g.k.jy=function(a){this.ej({onneedkeyinfo:1});this.Y.N("html5_eme_loader_sync")&&(this.J.get(a.initData)||this.J.set(a.initData,a));XTa(this,a)};
g.k.BQ=function(a){this.B.push(a);kY(this)};
g.k.createSession=function(a){var b=$Ta(this)?BPa(a):g.Df(a.initData);this.u.get(b);this.ya=!0;a=new yTa(this.videoData,this.Y,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.NT,this);a.subscribe("keystatuseschange",this.Es,this);a.subscribe("licenseerror",this.KF,this);a.subscribe("newlicense",this.iU,this);a.subscribe("newsession",this.jU,this);a.subscribe("sessionready",this.vU,this);a.subscribe("fairplay_next_need_key_info",this.aU,this);BTa(a,this.C)};
g.k.iU=function(a){this.isDisposed()||(this.ej({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ma("heartbeatparams",a)))};
g.k.jU=function(){this.isDisposed()||(this.ej({newlcssn:1}),this.B.shift(),this.ya=!1,kY(this))};
g.k.vU=function(){if(qG(this.j)&&(this.ej({onsnrdy:1}),this.Ka--,0===this.Ka)){var a=this.ea;a.element.msSetMediaKeys(a.B)}};
g.k.Es=function(a){if(!this.isDisposed()){!this.Ba&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(aUa(this),this.Ba=!0);this.ej({onksch:1});if(!gY(a)&&g.Jx&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(gY(a))for(var d=g.t(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.j[e].status&&b.push(a.j[e].type),"unknown"!==a.j[e].status&&(c=!1);if(!gY(a)||c)b=a.D;b=g.nb(b,"UHD2")||g.nb(b,"UHD2HDR")?
"highres":g.nb(b,"UHD1")||g.nb(b,"UHD1HDR")?"hd2160":g.nb(b,"HD")||g.nb(b,"HDHDR")?"hd1080":g.nb(b,"HD720")||g.nb(b,"HD720HDR")?"hd720":"large"}a:{c=g.EC("auto",b,!1,"l");if(this.videoData.Nl){if(this.T.equals(c))break a}else if(vsa(this.T,b))break a;this.T=c;this.ma("qualitychange");this.ej({updtlq:b})}this.ma("keystatuseschange",a)}};
g.k.NT=function(a,b){this.isDisposed()||this.ma("ctmp",a,b)};
g.k.aU=function(a,b){this.isDisposed()||this.ma("fairplay_next_need_key_info",a,b)};
g.k.KF=function(a,b,c,d){this.isDisposed()||(this.videoData.N("html5_log_drm_metrics_on_error")&&aUa(this),this.ma("licenseerror",a,b,c,d))};
g.k.ju=function(){return this.T};
g.k.ra=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.t(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.NT,this),b.unsubscribe("keystatuseschange",this.Es,this),b.unsubscribe("licenseerror",this.KF,this),b.unsubscribe("newlicense",this.iU,this),b.unsubscribe("newsession",this.jU,this),b.unsubscribe("sessionready",this.vU,this),b.unsubscribe("fairplay_next_need_key_info",this.aU,this),b.dispose();
this.u.clear();this.I.yg();this.J.yg();this.heartbeatParams=null;g.FB.prototype.ra.call(this)};
g.k.jc=function(){for(var a={systemInfo:this.j.jc(),sessions:[]},b=g.t(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.jc());return a};
g.k.ih=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.ih()+(this.D?"/KR":"")};
g.k.ej=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(bI(a),(this.Y.C||b)&&this.ma("ctmp","drmlog",a))};g.v(mY,g.E);mY.prototype.lF=function(){return this.B};
mY.prototype.handleError=function(a){var b=this;fUa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!eUa(this,a.errorCode,a.details))&&!hUa(this,a))if(dI(a.severity)){var c,d=null==(c=this.va.Ja)?void 0:c.xe.B;if("net.badstatus"===a.errorCode&&(1===a.severity||a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.j.J&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.va.Jg(a.errorCode,
a.severity,e,bI(a.details),f)}else this.va.ma("nonfatalerror",a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.Sd(a.errorCode,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://web.archive.org/web/20230104105643/https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.R)(),YU(a,"manifest",function(h){b.I=!0;b.xa("pathprobe",h)},function(h){b.Sd(h.errorCode,h.details)}))};
mY.prototype.xa=function(a,b){this.va.wc.xa(a,b)};
mY.prototype.Sd=function(a,b){b=bI(b);this.va.wc.Sd(a,b)};kUa.prototype.N=function(a){return this.Y.N(a)};g.v(oY,g.E);oY.prototype.qd=function(a){CUa(this);this.playerState=a.state;0<=this.u&&g.cL(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
oY.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.N("html5_exception_to_health"))a.match(m9a)?this.networkErrorCount++:this.nonNetworkErrorCount++};
oY.prototype.send=function(){if(!(this.B||0>this.j)){CUa(this);var a=g.qV(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.V(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.V(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.V(this.playerState,16)||g.V(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.V(this.playerState,1)&&
g.V(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.V(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.V(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.V(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=WWa[MJ(this.provider.videoData)];a:switch(this.provider.Y.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 e=
0>this.u?a:this.u-this.j;a=this.provider.Y.qf+36E5<(0,g.R)();b={started:0<=this.u,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.KJ(this.provider.videoData),isGapless:this.provider.videoData.gb,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai};
a||g.ax("html5PlayerHealthEvent",b);this.provider.N("html5_health_to_qoe")&&(b.muted=a,this.I(b));this.B=!0;this.dispose()}};
oY.prototype.ra=function(){this.B||this.send();g.E.prototype.ra.call(this)};
var m9a=/\bnet\b/;var FUa=window;var DUa=/[?&]cpn=/;g.v(g.qY,g.E);g.k=g.qY.prototype;g.k.V0=function(){var a=g.qV(this.provider);IUa(this,a)};
g.k.JA=function(){return this.Aa};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.qV(this.provider),-1<["PL","B","S"].indexOf(this.Qd)&&(!g.Uc(this.j)||a>=this.C+30)&&(g.pY(this,a,"vps",[this.Qd]),this.C=a),!g.Uc(this.j))){7E3===this.sequenceNumber&&g.sA(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){LUa(this,a);var b=a,c=this.provider.va.WA(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Fb,h=e&&!this.Pb;d>c.totalVideoFrames||5E3<f?QUa(this,"html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames):(0<f||h)&&g.pY(this,b,"df",[f]);this.Fb=d;this.Pb=e;!this.provider.Y.N("disable_webgl_reporting")&&0<this.T&&(g.pY(this,a,"glf",[this.T]),this.T=0);a={};this.provider.videoData.B&&(a.fmt=this.provider.videoData.B.itag,(b=this.provider.videoData.I)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.Z&&(a.addocid=this.Z);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=YJ(this.provider.videoData);
a.content_v=ZJ(this.provider.videoData);a.ns=this.provider.Y.Va;a.fexp=this.provider.Y.experiments.experimentIds.toString();a.cl=(496261446).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=MJ(this.provider.videoData))&&(a.live=b);this.provider.videoData.zm()&&(a.drm=1,this.provider.videoData.Z&&(a.drm_system=z8a[this.provider.videoData.Z.flavor]||0),this.provider.videoData.qH&&(a.drm_product=this.provider.videoData.qH));Fv()&&this.provider.videoData.J&&(a.ctt=this.provider.videoData.J,
a.cttype=this.provider.videoData.Qj,this.provider.videoData.mdxEnvironment&&(a.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(a.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.tQ&&(a.dai_fallback="1")):this.provider.videoData.Kc?a.dai="cs":this.provider.videoData.lI&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.XP){if(b=this.provider.videoData.XP,a&&b)for(c=g.t(Object.keys(b)),d=c.next();!d.done;d=
c.next())d=d.value,this.Lc.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;this.provider.Y.N("html5_add_qclc_to_qoe_ping")&&(b=this.provider.videoData.QZ,c=new kv,c=g.I(c,1,a.cpn),c=g.I(c,2,a.seq),b=g.I(c,3,b),a.qclc=g.Df(g.vh(b,L7a)));g.$c(a,this.provider.Y.deviceParams);a=g.ci("//"+this.provider.Y.Tl+"/api/stats/qoe",a);c=b="";d=g.t(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.j[e]?g.sA(new g.Sw("Stats report key has invalid value",
e)):(e="&"+e+"="+this.j[e].join(","),100<e.length?c+=e:b+=e);MUa(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.fC=function(a){0<a&&(this.j.aft=[a.toString()])};
g.k.vV=function(){if(this.provider.videoData.Z){var a=this.provider.videoData.Z;rY(this,"eme-"+(a.keySystemAccess?"final":qG(a)?"ms":tG(a)?"ytfp":sG(a)?"safarifp":"nonfinal"))}};
g.k.qd=function(a){var b=a.state,c=g.qV(this.provider);a=this.getPlayerState(a.state);a!==this.Qd&&(c<this.C||("PL"===this.Qd?this.playTimeSecs+=c-this.C:"B"===this.Qd&&this.oa&&(this.oa=!1,this.rebufferTimeSecs+=c-this.gb,!this.Wa&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.va.JB(),this.j.qoealert=["1"],this.Wa=!0)),"B"!==a||"PL"!==this.Qd&&"PB"!==this.Qd||(this.oa=!0),this.C=c),"PL"===this.Qd&&("B"===a||"S"===a)||this.provider.Y.C?LUa(this,c):(this.Xa||"PL"!==a||(this.Xa=
!0,KUa(this,c,this.provider.va.TA())),IUa(this,c)),"PL"===a&&g.$n(this.Ac),g.pY(this,c,"vps",[a]),this.Qd=a,this.C=this.gb=c,this.D=!0);a=b.getData();g.V(b,128)&&a&&(a.jG=a.jG||"",PUa(this,c,a.errorCode,a.jE,a.jG));(g.V(b,2)||g.V(b,128))&&this.reportStats(c);b.Wc()&&!this.I&&(0<=this.u&&(this.j.user_intent=[this.u.toString()]),this.I=!0);NUa(this)};
g.k.PB=function(a){var b=g.qV(this.provider);g.pY(this,b,"vfs",[a.j.id,a.u,this.dc,a.reason]);this.dc=a.j.id;var c=this.provider.va.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.RH();1<d&&c.push(d);g.pY(this,b,"view",c)}this.Pa||(this.provider.Y.C&&rY(this,"rqs"),this.provider.videoData.j&&KC(this.provider.videoData.j)&&(this.j.preload=["1"]));this.D=this.Pa=!0;"m"===a.reason&&100===++this.Fd&&RUa(this,2);g.pY(this,b,"vps",[this.Qd]);this.reportStats(b)};
g.k.HB=function(a){var b=g.qV(this.provider);a.j.id!==this.Ba&&(g.pY(this,b,"afs",[a.j.id,this.Ba,a.reason]),this.Ba=a.j.id)};
g.k.Ds=aa(42);g.k.Cs=aa(45);g.k.onPlaybackRateChange=function(a){var b=g.qV(this.provider);a&&a!==this.Rb&&(g.pY(this,b,"rate",[a]),this.Rb=a);this.reportStats(b)};
g.k.Im=aa(17);g.k.getPlayerState=function(a){if(g.V(a,128))return"ER";if(g.V(a,2048))return"B";if(g.V(a,512))return"SU";if(g.V(a,16)||g.V(a,32))return"S";if(g.PL(a)&&g.V(a,64))return"B";var b=n9a[SL(a)];g.IH(this.provider.Y)&&"B"===b&&3===this.provider.va.getVisibilityState()&&(b="SU");"B"===b&&g.V(a,4)&&(b="PB");return b};
g.k.ra=function(){g.E.prototype.ra.call(this);window.clearInterval(this.kb)};
g.k.oG=function(a){this.isOffline=a;g.pY(this,g.qV(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.k.xa=function(a,b,c){var d=this.j.ctmp||[],e=-1!==this.Ec.indexOf(a);e||this.Ec.push(a);if(!c||!e){b="string"!==typeof b?bI(b):b;b=SUa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.qV(this.provider);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.j.ctmp=d;NUa(this);return f}};
g.k.gC=function(a,b,c){this.B={c6:Number(this.xa("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),CT:a,S5:b,isAd:c}};
g.k.uv=function(a,b,c){g.pY(this,g.qV(this.provider),"ad_playback",[a,b,c])};
var N3={},n9a=(N3[5]="N",N3[-1]="N",N3[3]="B",N3[0]="EN",N3[2]="PA",N3[1]="PL",N3);VUa.prototype.update=function(){if(this.J){var a=this.provider.va.Zj()||0,b=g.qV(this.provider);if(a!==this.j||YUa(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.lastUpdateTime+2||YUa(this,a,b))){c=this.provider.va.getVolume();var d=c!==this.Z,e=this.provider.va.isMuted()?1:0;e!==this.T?(this.T=e,c=!0):(!d||0<=this.C||(this.Z=c,this.C=b),c=b-this.C,0<=this.C&&2<c?(this.C=-1,c=!0):c=!1)}c&&(uY(this),this.u=a);this.lastUpdateTime=b;this.j=a}}};ZUa.prototype.send=function(a){var b=this;if(!this.Va){var c=aVa(this),d=g.ci(this.uri,c);this.Z&&!this.Y.N("html5_simplify_pings")?fVa(this,d):$Ua(this,a).then(function(e){b.Z&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});HUa(d,e,{token:b.J,QN:b.kb,mdxEnvironment:b.mdxEnvironment},b.Y,a,b.oa,b.isFinal&&b.lf||b.ya||b.B&&b.mf)});
this.Va=!0}};
ZUa.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var O3={},dVa=(O3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,O3.LIVING_ROOM_APP_MODE_MAIN=1,O3.LIVING_ROOM_APP_MODE_KIDS=2,O3.LIVING_ROOM_APP_MODE_MUSIC=3,O3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,O3.LIVING_ROOM_APP_MODE_GAMING=5,O3),P3={},cVa=(P3.EMBEDDED_PLAYER_MODE_UNKNOWN=0,P3.EMBEDDED_PLAYER_MODE_DEFAULT=1,P3.EMBEDDED_PLAYER_MODE_PFP=2,P3.EMBEDDED_PLAYER_MODE_PFL=3,P3);g.v(wY,g.E);g.k=wY.prototype;g.k.De=function(){this.j.update();var a;if(a=this.provider.videoData.isLoaded()&&this.provider.videoData.Fb&&this.u&&!this.ea)a=this.j,a=a.D+a.provider.va.Zj()-a.u>=this.provider.videoData.Fb;a&&(this.u&&this.provider.videoData.Fb&&(a=xY(this,"delayplay"),a.Wd=!0,a.send(),this.ea=!0),gVa(this))};
g.k.qd=function(a){if(!this.isDisposed())if(g.V(a.state,2)||g.V(a.state,512))this.currentPlayerState="paused",(g.cL(a,2)||g.cL(a,512))&&this.u&&(AY(this),BY(this).send(),this.D=NaN);else if(g.V(a.state,8)){this.currentPlayerState="playing";var b=this.u&&isNaN(this.C)?yY(this):NaN;!isNaN(b)&&(0>bL(a,64)||0>bL(a,512))&&(a=lVa(this,!1),a.D=b,a.send())}else this.currentPlayerState="paused"};
g.k.ra=function(){g.E.prototype.ra.call(this);AY(this);WUa(this.j)};
g.k.jc=function(){return aVa(xY(this,"playback"))};
g.k.Xy=function(){this.provider.videoData.T.eventLabel=YJ(this.provider.videoData);this.provider.videoData.T.playerStyle=this.provider.Y.playerStyle;this.provider.videoData.Zh&&(this.provider.videoData.T.feature="pyv");this.provider.videoData.T.vid=this.provider.videoData.videoId;var a=this.provider.videoData.T;var b=this.provider.videoData;b=b.isAd()||!!b.Zh;a.isAd=b};
g.k.sj=function(a){var b=xY(this,"engage");b.T=a;return bVa(b,qVa(this.provider))};oVa.prototype.isEmpty=function(){return this.endTime===this.startTime};pVa.prototype.N=function(a){return this.Y.N(a)};
var rVa={other:1,none:2,wifi:3,cellular:7};g.v(g.CY,g.E);g.k=g.CY.prototype;g.k.qd=function(a){if(g.cL(a,1024)||g.cL(a,512)||g.cL(a,4)){var b=this.B;0<=b.u||(b.j=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.I||(b.u=-1))}if(this.provider.videoData.enableServerStitchedDai&&this.Yh){var c;null==(c=this.u.get(this.Yh))||c.qd(a)}else this.j&&this.j.qd(a);this.qoe&&this.qoe.qd(a);this.B.qd(a)};
g.k.De=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Yh){var a;null==(a=this.u.get(this.Yh))||a.De()}else this.j&&this.j.De()};
g.k.Sd=function(a,b){this.qoe&&QUa(this.qoe,a,b);this.B.onError(a)};
g.k.PB=function(a){this.qoe&&this.qoe.PB(a)};
g.k.HB=function(a){this.qoe&&this.qoe.HB(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.k.Ds=aa(41);g.k.xa=function(a,b,c){this.qoe&&this.qoe.xa(a,b,c)};
g.k.gC=function(a,b,c){this.qoe&&this.qoe.gC(a,b,c)};
g.k.fC=function(a){this.qoe&&this.qoe.fC(a)};
g.k.uv=function(a,b,c){this.qoe&&this.qoe.uv(a,b,c)};
g.k.Cs=aa(44);g.k.Im=aa(16);g.k.JA=function(){if(this.qoe)return this.qoe.JA()};
g.k.jc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Yh){var a;null==(a=this.u.get(this.Yh))||a.jc()}else if(this.j)return this.j.jc();return{}};
g.k.sj=function(a){return this.j?this.j.sj(a):function(){}};
g.k.Xy=function(){this.j&&this.j.Xy()};g.v(DY,g.E);g.k=DY.prototype;g.k.Ge=function(a,b){this.hn();b&&2E3<=this.j.array.length&&this.tA("captions",1E4);b=this.j;if(1<a.length&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0<b.j(c,b.array[b.array.length-1])?b.array.push(c):g.Eb(b.array,c,b.j)}this.u=NaN;this.hn()};
g.k.Oh=function(a){1E4<a.length&&g.sA(new g.Sw("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.isDisposed()){var b=new Set(a);this.B=this.B.filter(function(c){return!b.has(c)});
EVa(this.j,b);this.hn()}};
g.k.tA=function(a,b){var c=(isNaN(this.u)?g.V(this.D(),2)?0x8000000000000:1E3*this.T():this.u)-b;b=this.gm().filter(function(d){return d.namespace===a&&d.end<c});
this.Oh(b);return b};
g.k.gm=function(){return this.isDisposed()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.C.stop();this.j.array=[];this.B=[];this.hn()};
g.k.Qf=function(a){var b=this.gm().filter(function(c){return c.namespace===a});
this.Oh(b);return b};
g.k.qd=function(a){this.started&&(this.hn(),g.V(a.ys,16)&&(a=DVa(this.j,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.k.MJ=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
g.k.PJ=function(a){var b=[];if(!a.length)return b;a.sort(g.zB);a=g.t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.B.splice(this.B.indexOf(c),1),b.push([2,c]);return b};
g.k.hn=function(){this.I=!0;if(!this.J){for(var a=3;this.I&&a;)this.I=!1,this.J=!0,this.MS(),this.J=!1,a--;this.D().Wc()&&(a=DVa(this.j,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.oa(),this.C.start(a)))}};
g.k.MS=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.V(a,32)&&this.ea.start();for(var b=g.V(this.D(),2)?0x8000000000000:1E3*this.T(),c=g.V(a,2),d=[],e=[],f=g.t(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.PJ(e));f=e=null;c?(a=BVa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=CVa(this.j)):a=this.u<=b&&QL(a)?AVa(this.j,this.u,b):BVa(this.j,b);
d=d.concat(this.MJ(a));e&&(d=d.concat(this.PJ(e)));f&&(d=d.concat(this.MJ(f)));this.u=b;FVa(this,d)}};
g.k.ra=function(){this.B=[];this.j.array=[];g.E.prototype.ra.call(this)};
g.jV.Hx(DY,{Ge:"crmacr",MJ:"crmncr",PJ:"crmxcr",MS:"crmis",Oh:"crmrcr"});g.v(GY,g.FB);GY.prototype.Rp=function(){return this.J};
GY.prototype.lm=function(){return Math.max(this.T()-MVa(this,!0),this.videoData.Kd())};g.v(LY,g.E);LY.prototype.qd=function(){g.$n(this.B)};
LY.prototype.D=function(){var a=this,b=this.va.ue(),c=this.va.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.V(c,8)&&g.V(c,16),h=this.va.Lr().isBackground()||c.isSuspended();MY(this,this.Ba,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);l=f&&l&&ZCa(b,this.j);var m=!d||10<Math.abs(d-this.j);MY(this,this.Ka,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
var n=l&&FF(b.Ch(),this.j);l=this.va.Ja;m=!l||!l.policy.Va;var p=function(){b.seekTo(a.j+.001)};
MY(this,this.ya,n&&m&&!h,e,"qoe.slowseek",p,"jiggle_cmt");m=function(){return lY(a.va)};
MY(this,this.Aa,n&&!h,e,"qoe.slowseek",m,"new_elem");var q=QL(c);n=g.RL(c);var r=b.Ch(),w=EF(r,d),x=0<=w&&r.end(w)>d+5,z=q&&n&&x;x=f&&x;f=this.va.getVideoData();MY(this,this.T,0===d&&0===this.j&&(z||x)&&"shortspage"===YJ(f)&&!h,q&&!n,"qoe.longrebuffer",m,"new_elem_shorts");MY(this,this.J,z&&!h,q&&!n,"qoe.longrebuffer",p,"jiggle_cmt");MY(this,this.Z,z&&!h,q&&!n,"qoe.longrebuffer",m,"new_elem_nnr");if(l){var B=l.getCurrentTime();p=b.ou();p=rua(p,B);p=!l.Rg()&&d===p;MY(this,this.Wa,q&&n&&p&&!h,q&&!n&&
!p,"qoe.longrebuffer",function(){b.seekTo(B)},"seek_to_loader")}p={};
z=EF(r,Math.max(d-3.5,0));x=0<=z&&d>r.end(z)-1.1;var C=0<=z&&z+1<r.length?r.start(z+1)-r.end(z):9999;p.mindex=w;p.disIndex=z;p.isdisc=0<=z&&x&&11>C;p.close2edge=x;p.gapsize=C;p.buflen=r.length;MY(this,this.ea,q&&n&&!h,q&&!n,"qoe.longrebuffer",function(){},"timeout",p);
r=c.isSuspended();r=g.nb(this.va.Km,"ad")&&!r;MY(this,this.I,r,!r,"qoe.start15s",function(){a.va.gg("ad")},"ads_preroll_timeout");
r=.5>d-this.C;w=f.isAd()&&q&&!n&&r;q=function(){var G=a.va,F=G.Tf.Qc();(!F||!G.videoData.isAd()||F.getVideoData().Kc!==G.getVideoData().Kc)&&G.videoData.bf||G.Jg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+G.videoData.videoId)};
MY(this,this.Ma,w,!w,"ad.rebuftimeout",q,"skip_slow_ad");n=f.isAd()&&n&&FF(b.Ch(),d+5)&&r;MY(this,this.Pa,n,!n,"ad.rebuftimeout",q,"skip_slow_ad_buf");MY(this,this.Va,g.PL(c)&&g.V(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
MY(this,this.oa,!!l&&!l.mediaSource&&g.PL(c),e,"qoe.start15s",m,"newElemMse");this.C=d;this.B.start()}};
LY.prototype.Sd=function(a,b,c){b=this.jc(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.va.Sd(new cI(a,b));this.u[a]=!0};
LY.prototype.jc=function(a){a=Object.assign(this.va.jc(!0),a.jc());this.j&&(a.stt=this.j.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
JY.prototype.reset=function(){this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1};
JY.prototype.jc=function(){var a={},b=(0,g.R)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.v(TVa,g.E);g.k=TVa.prototype;g.k.setMediaElement=function(a){g.gA(this.Pa);(this.mediaElement=a)?(eWa(this),NY(this)):OY(this)};
g.k.qd=function(a){this.ea.qd(a);this.N("html5_exponential_memory_for_sticky")&&(a.state.Wc()?g.$n(this.oa):this.oa.stop());if(this.mediaElement)if(8===a.ys.state&&QL(a.state)&&g.RL(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Ch();var c=this.N("manifestless_post_live_ufph")||this.N("manifestless_post_live")?EF(b,Math.max(a-3.5,0)):EF(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1<b.length&&11>b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Wa-c)||(this.va.xa("seekover",{b:DF(b,
"_"),cmt:a}),this.Wa=c,this.seekTo(c,{yu:!0,Ee:"playbacktimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.Va&&0<this.videoData.limitedPlaybackDurationInSeconds&&wWa(this.va,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds)};
g.k.getCurrentTime=function(){return!isNaN(this.u)&&isFinite(this.u)?this.u:this.mediaElement&&dWa(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.Zj=function(){return this.getCurrentTime()-this.Ld()};
g.k.lm=function(){return this.j?this.j.lm():Infinity};
g.k.isAtLiveHead=function(a){if(!this.j)return!1;void 0===a&&(a=this.getCurrentTime());return IY(this.j,a)};
g.k.Rp=function(){return!!this.j&&this.j.Rp()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.gW?!1:c.gW;var d=void 0===c.hW?0:c.hW,e=void 0===c.yu?!1:c.yu,f=void 0===c.RN?0:c.RN,h=void 0===c.Ee?"":c.Ee;if(void 0===c.Mq?0:c.Mq)a+=this.Ld();if(c=a<this.Aa&&!!this.Ja){this.va.xa("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstadj:this.Aa.toFixed(3)});this.Aa=NaN;this.timestampOffset-=1E3;var l;if(null!=(l=this.Ja)){aY(l,l.timestampOffset-1E3);var m=l.Gb,n=new Set;for(r in m.j){var p=m.j[r].index,q=p.fu();q&&!n.has(q)&&
(q.startTime+=1E3,q.endTime=q.startTime+q.duration,n.add(q));p.segments.length&&(q=p.segments[p.segments.length-1],p.segments=[],p.segments.push(q))}l.I&&l.I.XM();FW(l.j,0,0,!0)}}var r=a;(l=!isFinite(r)||(this.j?IY(this.j,r):r>=this.ge())||!g.QJ(this.videoData))||this.va.xa("seeknotallowed",{st:r,mst:this.ge()});if(!l)return this.B&&(this.B=null,aWa(this)),nf(this.getCurrentTime());if(.005>Math.abs(a-this.u)&&this.T)return this.D;h&&(r=a,(this.Y.C||this.N("html5_log_seek_reasons"))&&this.va.xa("seekreason",
{reason:h,tgt:r}));this.T&&OY(this);this.D||(this.D=new oH);a&&!isFinite(a)&&WVa(this,!1);if(h=!c)h=a,h=this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&0<this.mediaElement.Tj()&&0<EL(this.mediaElement))||wJ(this.videoData)&&this.Kd()===this.ge(!1)?!1:isFinite(h)?!0:wJ(this.videoData)?!1:!0;h&&(a=cWa(this,a,e));a&&!isFinite(a)&&WVa(this,!1);this.C=a;this.Ka=f;this.u=a;this.j&&(e=this.j,f=a,NVa(e,f,!1),OVa(e,f));e=this.va;f=a;e.fd.C=f;h=e.Xz;h.mediaTime=f;
h.j=!0;b&&RWa(e);e.xp&&f>e.videoData.endSeconds&&isFinite(f)&&FWa(e);f<e.ge()-.01&&(h=LL(e.playerState,2),g.V(h,8)&&(h=LL(h,4)),e.kc(h));e.ma("SEEK_TO",e,f);this.D&&(b?d&&this.Ma.start(d):(this.T=!0,SVa(this)));(b=this.va.xp)&&a>b.start&&FWa(this.va);return this.D};
g.k.ge=function(a){if(!this.videoData.isLivePlayback)return this.videoData.ge();var b;if(hK(this.videoData)&&(null==(b=this.mediaElement)?0:b.fp())&&this.videoData.j)return a=this.getCurrentTime(),NBa(1E3*this.Ff(a))+a;if(wJ(this.videoData)&&this.videoData.jd&&this.videoData.j)return this.videoData.j.ge()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.j){if(!a&&this.j)return this.j.lm();a=this.videoData.ge();this.policy.j&&this.mediaElement&&(a=Math.max(a,$Ca(this.mediaElement)));return a+
this.timestampOffset}return this.mediaElement?ew()?NBa(this.mediaElement.sD().getTime()):EL(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.k.Kd=function(){var a=this.videoData?this.videoData.Kd()+this.timestampOffset:this.timestampOffset;if(hK(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.Ff(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a};
g.k.VJ=function(){this.D||this.seekTo(this.C,{Ee:"playbacktimeline_forceResumeTime_singleMediaSourceTransition"})};
g.k.ra=function(){XVa(this,null);this.ea.dispose();g.E.prototype.ra.call(this)};
g.k.jc=function(){var a={};this.Ja&&Object.assign(a,this.Ja.jc());this.mediaElement&&Object.assign(a,this.mediaElement.jc());return a};
g.k.nM=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return wJ(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Ld=function(){return this.timestampOffset};
g.k.Ff=function(a){return this.videoData.j.Ff(a-this.timestampOffset)};
g.k.mu=function(){if(!this.mediaElement)return 0;if(RJ(this.videoData)){var a=$Ca(this.mediaElement)+this.timestampOffset-this.Kd(),b=this.ge()-this.Kd();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.mu()};
g.k.LF=function(a){this.I&&(this.I.j=a.audio.index)};
g.k.N=function(a){return this.Y&&this.Y.N(a)};PY.prototype.Yr=function(){return this.started};
PY.prototype.isFinished=function(){return this.finished};
PY.prototype.start=function(){this.started=!0};
PY.prototype.reset=function(){this.finished=this.started=!1};var kWa=!1;g.v(g.TY,g.FB);g.k=g.TY.prototype;g.k.ra=function(){this.dV();this.hG.stop();window.clearInterval(this.aG);SNa(this.dg);this.visibility.unsubscribe("visibilitystatechange",this.dg);tVa(this.wc);g.ab(this.wc);ZY(this);g.Vn.Zl(this.ov);this.Vi();this.uf=null;g.ab(this.videoData);g.ab(this.cm);g.bb(this.v2);this.xp=null;g.FB.prototype.ra.call(this)};
g.k.fC=function(a){this.wc.fC(a)};
g.k.uv=function(a,b,c,d){this.wc.uv(a,b,c);this.N("html5_log_media_perf_info")&&this.xa("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.dK=function(){var a;return null==(a=this.Ja)?void 0:a.dK()};
g.k.fK=function(){var a;return null==(a=this.Ja)?void 0:a.fK()};
g.k.gK=function(){var a;return null==(a=this.Ja)?void 0:a.gK()};
g.k.eK=function(){var a;return null==(a=this.Ja)?void 0:a.eK()};
g.k.zm=function(){return this.videoData.zm()};
g.k.getVideoData=function(){return this.videoData};
g.k.V=function(){return this.Y};
g.k.Lr=function(){return this.visibility};
g.k.ue=function(){return this.mediaElement};
g.k.lJ=function(){if(this.videoData.isLoaded()){var a=this.cm;0<g.wG(a.j.experiments,"html5_player_min_build_cl")&&496261446<g.wG(a.j.experiments,"html5_player_min_build_cl")&&gUa(a,"oldplayer");BWa(this)}else this.videoData.eh||this.videoData.yn?this.Xr&&g.IH(this.Y)&&this.videoData.isLivePlayback||(this.videoData.eh?qBa(this.videoData):(a=this.wc,a.qoe&&(a=a.qoe,rY(a,"protected"),a.provider.videoData.Z?a.vV():a.provider.videoData.subscribe("dataloaded",a.vV,a)),nBa(this.videoData))):!this.videoData.Ma&&
this.x_&&zWa(this)};
g.k.Ax=aa(7);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.V(this.getPlayerState(),128)||(this.ma("internalAbandon"),this.fN(!0),tVa(this.wc),g.ab(this.wc),g.Vn.Zl(this.ov));var a;null==(a=this.Y.zj)||a.flush()};
g.k.Lv=function(){sVa(this.wc)};
g.k.Jg=function(a,b,c,d,e,f){var h,l;g.Sc(U8a,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+AO());b={errorCode:a,errorDetail:e,errorMessage:l||g.sR[h]||"",NJ:h,fm:f||"",jG:d,jE:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;YY(this,"dataloaderror");this.kc(JL(this.playerState,128,b));g.Vn.Zl(this.ov);ZY(this);this.Om()};
g.k.gg=function(a){this.Km=this.Km.filter(function(b){return a!==b});
this.iq.Yr()&&AWa(this)};
g.k.Zn=function(){var a;(a=!!this.Km.length)||(a=this.Hi.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.Rp=function(){return this.fd.Rp()};
g.k.Wc=function(){return this.playerState.Wc()};
g.k.lB=function(){return this.playerState.lB()&&this.videoData.An};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.uf){var a=this.uf;a=a.videoData.Lw.compose(a.videoData.ZP);a=HC(a)}else a="auto";return a};
g.k.MA=aa(11);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.k.setMediaElement=function(a){if(this.mediaElement&&a.ub()===this.mediaElement.ub()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.gA(this.cz),this.mediaElement=a,SWa(this),this.fd.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Vi();if(!this.playerState.isError()){var b=LL(this.playerState,512);g.V(b,8)&&!g.V(b,2)&&(b=KL(b,1));a.isView()&&(b=LL(b,64));this.kc(b)}this.mediaElement=a;this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);
SWa(this);this.fd.setMediaElement(this.mediaElement);this.N("html5_prewarm_media_source")&&!this.cm.rB&&VCa(this.mediaElement)}};
g.k.Vi=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.fd.C=c);this.fd.setMediaElement(null);!a&&UY(this)?OWa(this):dZ(this);this.Ja&&($X(this.Ja),eZ(this,b));this.Nu.stop();if(this.mediaElement&&(!this.iq.Yr()||this.playerState.isError()||g.V(this.playerState,2)||this.kc(KL(this.playerState,512)),this.mediaElement)){g.gA(this.cz);if(a||!this.mediaElement.isView())this.mediaElement.stopVideo(),fZ(this);this.mediaElement=null}}};
g.k.playVideo=function(){var a=this,b,c,d,e,f;return g.A(function(h){if(1==h.j){var l=window.google_image_requests;l&&10<l.length&&(window.google_image_requests=l.slice(-10));if(g.V(a.playerState,128))return h.return();if(a.cm.lF())return a.ma("signatureexpired"),h.return();a.mediaElement&&(l=a.wc,BUa(l.B),l.qoe&&TUa(l.qoe));EWa(a);g.V(a.playerState,64)&&a.kc(KL(a.playerState,8));return a.iq.isFinished()&&a.mediaElement?a.uf||!a.SB?h.Ia(2):g.y(h,a.SB,3):h.return()}if(2!=h.j&&g.V(a.playerState,128))return h.return();
if(!a.videoData.C)return a.videoData.isLivePlayback&&!g.FG(a.Y.B,!0)?(b="html5.unsupportedlive",c=2):(b=a.videoData.zm()?"fmt.unplayable":"fmt.noneavailable",c=1),g.sA(Error("selectableFormats")),a.Jg(b,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),h.return();if(a.jh()&&a.videoData.C.j)return h.return(XY(a));if(uJ(a.videoData)){d=a.getCurrentTime()<a.Kd()-15;e=g.QJ(a.videoData)&&g.OL(a.playerState);(f=g.V(a.playerState,1024))||!d&&!e||(e?a.seekTo(Infinity,{Ee:"videoplayer_unpauseLiveOnly"}):
a.seekTo(a.Kd(),{Ee:"videoplayer_outOfWindow"}));!a.isAtLiveHead(void 0,!0)&&a.Rp()&&a.seekTo(Infinity,{Ee:"videoplayer_peggedToLive"});if(l=g.V(a.playerState,256)&&a.videoData.Va)l=a.fd,l=l.T&&!isFinite(l.u);if(l)return a.kc(ML(a.playerState,8,4)),h.return()}g.V(a.playerState,4)&&g.V(a.playerState,16)&&a.kc(ML(a.playerState,9,4));if(SY(a))return ZWa(a),h.return();YWa(a);g.pa(h)})};
g.k.xr=function(){if(!this.uf)return[];var a=mUa(this.ri,this.uf,this.ju());return this.uf.j.xr(a)};
g.k.BA=function(){if(!this.uf)return[];var a=mUa(this.ri,this.uf,this.ju());return this.uf.j.BA(a)};
g.k.ju=function(){var a=this.Ye?this.Ye.ju():DJ(this.videoData)&&this.videoData.j&&NC(this.videoData.j)?this.videoData.Nl?lJ:TTa:lJ;this.YM&&(a=a.compose(v8a));return a};
g.k.yE=function(){var a=this.Yf(),b=this.Tf.Ad().videoId;return this.Tf.rs.yE(a)||this.Tf.rs.yE(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?HC(this.videoData.Lw):GC[kG()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a){this.videoData.wj!==a&&(this.xa("toggle51",{pref:a}),this.videoData.wj=a,g.UA("yt-player-audio51",a,2592E3),nY(this))};
g.k.getUserAudio51Preference=function(){var a=1;TH(this.Y)&&this.N("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.VA("yt-player-audio51"))?b:a};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(KWa(this)){var a=MWa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.kx=function(){if(this.Ja){var a=wJ(this.videoData)&&this.videoData.bf&&!this.videoData.isAd();this.Ja.kx(a)}};
g.k.Fr=function(){return this.mediaSource};
g.k.jy=function(a){this.vy.set(a.initData,a);this.Ye&&(this.Ye.jy(a),this.N("html5_eme_loader_sync")||this.vy.remove(a.initData))};
g.k.oM=function(a){this.videoData.Pk=g.EC("auto",a,!1,"u");RY(this)};
g.k.LF=function(a){GWa(this,a.reason,a.video.info,a.audio.info);this.fd.LF(a)};
g.k.MF=function(a){this.ma("localmediachange",a)};
g.k.Vy=function(){var a;null==(a=this.Ja)||a.Vy(this.Y)};
g.k.lF=function(){return this.cm.lF()};
g.k.handleError=function(a){this.cm.handleError(a)};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.V(this.playerState,64)||g.V(this.playerState,2))&&!a)if(g.V(this.playerState,8))this.kc(ML(this.playerState,4,8));else if(this.lB())SY(this);else return;g.V(this.playerState,128)||(a?this.kc(KL(this.playerState,256)):this.kc(ML(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.QJ(this.videoData)&&this.Ja&&eZ(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Ja&&(eZ(this,!1),this.Ja.Yj())};
g.k.Om=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(UY(this)&&b){var c;null==(c=this.mediaElement)||c.Om()}else{var d;null==(d=this.mediaElement)||d.stopVideo()}fZ(this);ZY(this);g.V(this.playerState,128)||(a?this.kc(LL(LL(KL(this.playerState,4),8),16)):this.kc(JL(this.playerState)));this.videoData.videoId&&this.Y.ya.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;g.V(this.playerState,2)&&SY(this);if(this.td){var c=this.td;isFinite(a)&&a<c.va.lm()?c.isLiveNow=!1:c.isLiveNow=!0}this.fd.seekTo(a,b);this.Hi.hn()};
g.k.getCurrentTime=function(){return this.fd.getCurrentTime()};
g.k.Zj=function(){return this.fd.Zj()};
g.k.lm=function(){return this.fd.lm()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Ld())};
g.k.zx=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.zx());return 0<=a?a:this.getCurrentTime()};
g.k.Ff=function(){var a;return(null==(a=this.videoData.j)?0:a.Ff)?this.videoData.j.Ff(this.getCurrentTime()-this.Ld()):this.mediaElement&&(a=this.mediaElement.sD())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Ld():this.ge()?this.ge():0};
g.k.TA=function(){var a=new xVa;if(this.Ja){var b=this.Y.schedule;a.Rm=b.Z;a.yq=b.oa;a.bandwidthEstimate=kH(b);a.j={d:iH(b).toFixed(2),st:(1E9*(b.j.Li()||0)).toFixed(2),bw:b.B.Li().toFixed(0),abw:b.I.Li().toFixed(0),v50:gH(b.u,.5).toFixed(2),v92:gH(b.u,.92).toFixed(2),v96:gH(b.u,.96).toFixed(2),v98:gH(b.u,.98).toFixed(2)};b=this.Ja;if(b.mediaSource&&!b.mediaSource.Eg()&&(a.Mt=pX(b.videoTrack),a.u=pX(b.audioTrack),b.policy.Ac)){var c=oX(b.videoTrack),d=oX(b.audioTrack),e=DF(b.mediaSource.u.Bg(),"_",
5),f=DF(b.mediaSource.j.Bg(),"_",5);Object.assign(a.j,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=tW(b.T)}else this.mediaElement&&(a.Mt=FL(this.mediaElement));this.N("html5_report_accurate_bwm")&&(a.Rm=this.Rm,a.yq=this.yq);a.B=this.isAtLiveHead()&&this.Wc()?uWa(this):NaN;return a};
g.k.hC=function(a,b){this.yq+=a;this.Rm+=b};
g.k.mu=function(){return this.mediaElement?g.QJ(this.videoData)?1:RJ(this.videoData)?this.isAtLiveHead()||this.Rp()?1:this.fd.mu():this.mediaElement.mu():0};
g.k.jc=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.wc.jc());this.mediaElement&&(Object.assign(b,this.mediaElement.jc()),Object.assign(b,this.WA()));this.Ja&&Object.assign(b,this.Ja.jc());this.Ye&&(b.drm=JSON.stringify(this.Ye.jc()));b.state=this.playerState.state.toString(16);g.V(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.Zn()&&(b.prerolls=this.Km.join(","));this.videoData.Fd&&(b.ismb=this.videoData.Fd);"UNKNOWN"!==this.videoData.latencyClass&&
(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.Tf.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&fG(this.videoData.j)&&(b.segduration=fG(this.videoData.j)),a=this.fd,b.lat=a.I?EOa(a.I.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Rf.toFixed(3);if(a=g.bZ(this))b.optimal_format=a.video.qualityLabel;
b.user_qual=kG();b.release_version="youtube.player.web_20221218_00_RC00"}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Rz([a])};
g.k.removeCueRange=function(a){this.Hi.Oh([a])};
g.k.tA=function(a,b){return this.Hi.tA(a,b)};
g.k.Rz=function(a,b){this.Hi.Ge(a,b)};
g.k.sG=function(a){this.Hi.Oh(a)};
g.k.gm=function(){return this.Hi.gm()||[]};
g.k.jh=function(){return this.visibility.jh()};
g.k.Ps=function(){this.mediaElement&&this.mediaElement.Ps()};
g.k.r5=function(){YY(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.pM=function(a){var b=a.target.qg();if(this.mediaElement&&this.mediaElement.qg()&&this.mediaElement.qg()===b){dXa(this,a.type);switch(a.type){case "error":var c=HL(this.mediaElement)||"";if("capability.changed"===c){XY(this);return}if(0<this.mediaElement.Df()&&eUa(this.cm,c,{msg:this.mediaElement.Ef()}))return;if(this.isBackground()&&4===this.mediaElement.Df()){this.Om();$Y(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.mediaSource||
0<c)&&1!==c&&this.Bk(c);break;case "ratechange":this.Ja&&this.Ja.setPlaybackRate(this.mediaElement.getPlaybackRate());c=this.Hi;c.started=!0;c.hn();this.wc.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":fXa(this);this.ma("onLoadedMetadata");UWa(this);break;case "loadstart":UWa(this);break;case "progress":case "suspend":this.uc();this.ma("onLoadProgress",this,this.mu());break;case "playing":BQ("plev",void 0,this.Cb.timerName);this.aN&&(this.aN=!1,this.isAtLiveHead()||this.seekTo(Infinity,
{Ee:"videoplayer_onPlaying"}));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();var d=this.mediaElement&&0===this.mediaElement.Tj();if(c&&(!this.GF||d))return;this.GF=this.GF||!!this.mediaElement.getCurrentTime();TWa(this);this.uc();if(!this.mediaElement||this.mediaElement.qg()!==b)return;this.ma("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.ou().length&&0===this.mediaElement.Ch().length&&0<this.mediaElement.getCurrentTime()&&
5>this.mediaElement.getCurrentTime()&&this.Ja)return;break;case "resize":fXa(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&this.ma("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.JQ&&g.V(this.playerState,8)&&!g.V(this.playerState,1024)&&0===this.getCurrentTime()&&g.kx){$Y(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.qg()===b){this.ma("videoelementevent",a);b=this.playerState;c=this.videoData.clientPlaybackNonce;if(!g.V(b,
128)){d=this.Xz;var e=this.mediaElement,f=b.state;e=e?e:a.target;var h=e.getCurrentTime();if(!g.V(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.Eh()||1<h&&1.1>Math.abs(h-e.getDuration()),m="pause"===a.type&&e.Eh();h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.V(b,4)&&!EY(d,h);if(m||l&&h)0<e.EE()&&e.qg()&&(f=14);else switch(a.type){case "error":HL(e)&&(f|=128);break;case "pause":g.V(b,256)?(f^=256)||(f=64):g.V(b,32)||g.V(b,2)||g.V(b,4)||(f=4,g.V(b,1)&&g.V(b,8)&&(f|=1));break;
case "playing":f=(f|8)&-1093;EY(d,e.getCurrentTime())&&(f&=-2);g.V(b,1)&&FY(d,e.getCurrentTime(),(0,g.R)(),FL(e))&&(f|=1);break;case "seeking":f|=16;g.V(b,8)&&(f|=1);f&=-3;break;case "seeked":f&=-17;break;case "waiting":g.V(b,2)||(f|=1);FY(d,e.getCurrentTime(),(0,g.R)(),FL(e));break;case "timeupdate":l=g.V(b,16),m=g.V(b,4),(g.V(b,8)||l)&&!m&&EY(d,e.getCurrentTime())&&(f=8),FY(d,e.getCurrentTime(),(0,g.R)(),FL(e))&&(f|=1)}}d=f;f=null;d&128&&(f=a.target,e=HL(f),l=1,e?("capability.changed"===e&&(l=2),
m="GENERIC_WITHOUT_LINK",h=f.jc(),h.mediaElem="1",/AUDIO_RENDERER/.test(f.Ef())&&(m="HTML5_AUDIO_RENDERER_ERROR"),f={errorCode:e,errorMessage:g.sR[m]||"",NJ:m,jG:bI(h),jE:l,cpn:b.stateData?b.stateData.cpn:""}):f=null,f&&(f.cpn=c));b=JL(b,d,f)}!g.V(this.playerState,1)&&g.V(b,1)&&bXa(this,"evt"+a.type);this.kc(b)}}};
g.k.N2=function(a){a="available"===a.j.availability;a!==this.hB&&(this.hB=a,this.ma("airplayavailabilitychange"))};
g.k.O2=function(){var a=(0,g.R)(),b=this.mediaElement.jh();this.xa("airplay",{ia:b});!b&&!isNaN(this.oF)&&2E3>a-this.oF||(this.oF=a,b!==this.jh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.dg()),this.xa("airplay",{rbld:b}),nY(this)),this.ma("airplayactivechange"))};
g.k.ZA=function(a){if(this.Ja){var b=this.Ja,c=b.j,d=b.currentTime,e=Date.now()-c.Z;c.Z=NaN;c.xa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&3!==c.j&&XSa(c.Ja,d,c.D,c.B);c.J=NaN;EW(c,4,3===c.j?"adfps":"adf");$X(b)}};
g.k.uc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){YVa(this.fd,this.Wc());var c=this.getCurrentTime();this.Ja&&(g.V(this.playerState,4)&&g.QJ(this.videoData)||lTa(this.Ja,c));5<c&&(this.fd.C=c);var d=g.Qw();d?g.Vn.Zl(this.ov):g.Mv(this.ov);var e=this.mediaElement.fp();if((g.RL(this.playerState)||!e||hK(this.videoData))&&!g.V(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.V(b.playerState,128)){b.Y.C&&g.wG(b.Y.experiments,"html5_log_rebuffer_events")&&
dXa(b,"pfx");var h=b.getCurrentTime(),l=FL(b.mediaElement),m=g.V(b.playerState,8),n=EY(b.Xz,h),p=FY(b.Xz,h,(0,g.R)(),l);m&&n?b.kc(LL(b.playerState,1)):m&&p?(m=b.getDuration(),n=uJ(b.videoData),m&&1.1>Math.abs(m-h)?(b.xa("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.nu()?b.seekTo(0,{Ee:"videoplayer_loop"}):rV(b)):(g.RL(b.playerState)||bXa(b,"progress_fix"),b.kc(KL(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-b.rB)/1E3,n=b.getDuration(),h>n-1&&b.xa("misspg",{t:h.toFixed(2),d:n.toFixed(2),
r:m.toFixed(2),bh:l.toFixed(2)})),g.OL(b.playerState)&&g.RL(b.playerState)&&5<FL(b.mediaElement)&&b.kc(LL(b.playerState,1)));b.uc()}};
0===this.mediaElement.ou().length?this.ov=d?g.Vn.Uh(f,100):g.Kv(f,100):this.ov=d?g.Vn.Uh(f,500):g.Kv(f,500)}this.videoData.vL=c;!a&&this.Wc()&&XWa(this);uUa(this.ri,this.uf,this.ue(),this.isBackground())&&RY(this);vUa(this.ri,this.videoData.B)&&(this.wc.Sd("qoe.restart","droprate."+this.ri.J),wva(this.Y.B),nY(this));this.ma("progresssync",this,a);e&&hK(this.videoData)&&this.ma("onVideoProgress",this,this.getCurrentTime())}};
g.k.L0=function(){this.Jg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.JA=function(){return this.wc.JA()};
g.k.aK=function(){return this.Ja?this.Ja.aK():kH(this.Y.schedule,!0)};
g.k.B_=function(){g.RL(this.playerState)&&sUa(this.ri,this.uf)&&RY(this)};
g.k.kc=function(a){if(!g.NL(this.playerState,a)){var b=new g.aL(a,this.playerState);this.playerState=a;eXa(this);var c=!this.cG.length;this.cG.push(b);var d=this.mediaElement&&this.mediaElement.Rg();g.cL(b,1)&&!g.V(b.ys,16)&&!d&&g.V(this.playerState,8)&&!g.V(this.playerState,64)&&this.Ja&&(this.Ja.mB=!0,this.mediaElement&&5<=FL(this.mediaElement)&&((d=g.wG(this.Y.experiments,"html5_non_network_rebuffer_duration_ms"))?this.FT.start(d):sUa(this.ri,this.uf)&&RY(this)));(d=g.wG(this.Y.experiments,"html5_ad_timeout_ms"))&&
this.videoData.isAd()&&g.V(a,1)&&(g.V(a,8)||g.V(a,16))?this.II.start(d):this.II.stop();(0>bL(b,8)||g.cL(b,1024))&&this.Nu.stop();!g.cL(b,8)||this.videoData.Va||g.V(b.state,1024)||this.Nu.start();g.V(b.state,8)&&0>bL(b,16)&&!g.V(b.state,32)&&!g.V(b.state,2)&&this.playVideo();g.V(b.state,2)&&RJ(this.videoData)&&(this.Bk(this.getCurrentTime()),this.uc(!0));g.cL(b,2)&&this.fN(!0);g.cL(b,128)&&this.Om();this.videoData.j&&this.videoData.isLivePlayback&&!this.qW&&(0>bL(b,8)?(a=this.videoData.j,a.C&&a.C.stop()):
g.cL(b,8)&&this.videoData.j.resume());this.fd.qd(b);this.wc.qd(b);if(c&&!this.isDisposed())try{for(var e=g.t(this.cG),f=e.next();!f.done;f=e.next()){var h=f.value;this.Hi.qd(h);this.ma("statechange",h)}}finally{this.cG.length=0}}};
g.k.JB=function(){this.videoData.isLivePlayback||this.N("html5_disable_connection_issue_event")||this.ma("connectionissue")};
g.k.jM=function(){this.Cb.tick("qoes")};
g.k.VJ=function(){this.fd.VJ()};
g.k.KF=function(a,b,c,d){a:{var e=this.cm;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=dI(b);"drm.keyerror"===a&&this.Ye&&1<this.Ye.u.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())iUa(e,a);else{if(e.va.Jg(a,b,d,c),bUa(e,{detail:c}))break a}else e.Sd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.xa("retrydrm",{sessionLimitExhausted:1}),e.D++,aXa(e.va))}};
g.k.F3=function(){var a=this,b=g.wG(this.Y.experiments,"html5_license_constraint_delay"),c=nw();b&&c?(b=new g.Zn(function(){aZ(a);YY(a)},b),g.H(this,b),b.start()):(aZ(this),YY(this))};
g.k.KB=function(a){this.ma("heartbeatparams",a)};
g.k.Es=function(a){this.xa("keystatuses",JTa(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.N("html5_drm_check_all_key_error_states")){var d=KTa(b,c);d=gY(a)?LTa(a,d):a.D.includes(d)}else{a:{b=KTa(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.oa&&d;c&&!b?iUa(this.cm):d||LTa(a,"AUDIO")&&LTa(a,"SD")||(a=JTa(a),this.YM?(this.ma("drmoutputrestricted"),
this.N("html5_report_fatal_drm_restricted_error_killswitch")||this.Jg("drm.keyerror",2,void 0,"info."+a)):(this.YM=!0,this.Sd(new cI("qoe.restart",Object.assign({},{retrydrm:1},a))),RY(this),aXa(this)))};
g.k.H3=function(){if(!this.videoData.Va&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.Tj()&&5<=FL(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.kc(KL(this.playerState,1)),bXa(this,"load_soft_timeout"),this.ma("playbackstalledatstart"),a="1");eXa(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!DJ(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].Nd)||this.Ye),mfmtinfo:!this.videoData.B,prerolls:this.Zn()?this.Km.join(","):
"0"};if(this.Ye){b=this.Ye;if(0>=b.u.size){var c="ns;";b.Z||(c+="nr;");b=c+="ql."+b.B.length}else b=JTa(b.u.values().next().value),b=bI(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.Ja)?void 0:d.jc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.jc())||{});this.wc.Sd("qoe.start15s",bI(a));this.ma("loadsofttimeout")}};
g.k.Bk=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,YY(this))};
g.k.fN=function(a){var b=this;a=void 0===a?!1:a;if(!this.GD){wC("att_s","player_att")||xC("att_s",void 0,"player_att");var c=new g.eJa(this.videoData);if("c1a"in c.j&&!g.bP.isInitialized()&&(xC("att_wb",void 0,"player_att"),2===this.WI&&.01>Math.random()&&g.sA(Error("Botguard not available after 2 attempts")),!a&&5>this.WI)){g.$n(this.XI);this.WI++;return}if("c1b"in c.j){var d=vVa(this.wc);d&&hJa(c).then(function(e){e&&!b.GD&&d?(xC("att_f",void 0,"player_att"),d(e),b.GD=!0):xC("att_e",void 0,"player_att")},
function(){xC("att_e",void 0,"player_att")})}else(a=g.fJa(c))?(xC("att_f",void 0,"player_att"),uVa(this.wc,a),this.GD=!0):xC("att_e",void 0,"player_att")}};
g.k.ge=function(a){return this.fd.ge(void 0===a?!1:a)};
g.k.Kd=function(){return this.fd.Kd()};
g.k.Ld=function(){return this.fd?this.fd.Ld():0};
g.k.getStreamTimeOffset=function(){return this.fd?this.fd.getStreamTimeOffset():0};
g.k.Dp=function(){var a=0;this.Y.N("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Ld():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&nUa(this.ri,null==(b=this.videoData.C)?void 0:b.videoInfos)&&RY(this);this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.mediaElement)){var b=YK(this);b&&0<b.videoHeight&&(a=XE(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())};
g.k.Xy=function(){this.wc.Xy()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.wc;c.j?(c=xY(c.j,"engage"),c.T=a,c.send(b)):b&&b()};
g.k.sj=function(a){return this.wc.sj(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return uJ(this.videoData)&&(this.uS||b)?this.fd.isAtLiveHead(a):!1};
g.k.Cr=function(){var a=this.ge(),b=this.getCurrentTime(),c;(c=!uJ(this.videoData))||(c=this.fd,c=!(c.j&&c.j.B));return c||this.Rp()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Im=aa(15);g.k.Ds=aa(40);g.k.Cs=aa(43);g.k.WA=function(){return this.mediaElement?this.mediaElement.tD():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&this.mediaElement.setLoop(a);this.Ja&&this.N("html5_loop_skip_set_end_of_stream")&&(a?this.Ja.policy.Va=!0:ZSa(this.Ja))};
g.k.nu=function(){return this.mediaElement?this.mediaElement.nu():this.loop};
g.k.nM=function(a){this.xa("timestamp",{o:a.toString()});this.fd.nM(a)};
g.k.Tc=function(a){this.Cb.tick(a)};
g.k.Yi=function(a){return this.Cb.Yi(a)};
g.k.xa=function(a,b,c){this.wc.xa(a,b,void 0===c?!1:c)};
g.k.PM=function(a,b,c){this.wc.xa(a,b,void 0===c?!1:c)};
g.k.Sd=function(a){this.wc.Sd(a.errorCode,bI(a.details))};
g.k.gC=function(a,b,c){this.wc.gC(a,b,c)};
g.k.FJ=function(a){this.videoData.hQ=!0;cXa(this,a)};
g.k.eE=function(a){this.videoData.tQ=!0;cXa(this,a)};
g.k.getPlayerSize=function(){return this.AC.getPlayerSize()};
g.k.uj=function(){return this.AC.uj()};
g.k.Ki=function(){return this.Cb};
g.k.Ep=function(){return this.Tf.Ep()};
g.k.getVolume=function(){return this.Tf.getVolume()};
g.k.iB=function(){return this.Tf.iB()};
g.k.isMuted=function(){return this.Tf.isMuted()};
g.k.sx=function(){return this.Tf.sx()};
g.k.HA=function(){return this.Tf.HA()};
g.k.yA=function(){return this.Tf.yA()};
g.k.N=function(a){return this.Y.N(a)};
g.k.VI=function(){if(sJ(this.videoData,"html5_set_debugging_opt_in")){var a=g.Fw.getInstance();g.Gw(0,183)||(Hw(183,!0),a.save())}};
g.k.dV=function(){if(g.PL(this.playerState)){var a=VY.ER();0!==Object.keys(a).length&&this.wc.xa("profile",a)}this.hG.start()};
g.k.Ko=function(){var a=this.getCurrentTime(),b=a-this.Ld(),c=gXa(this,b);if(this.N("html5_skippable_seek_if_behind_live_head")){var d,e=(null==(d=this.Ja)?void 0:d.bA(b))||0;if(0<e){if(this.ge()>e)return this.seekTo(e,{Ee:"skipServerStitchedAd"}),this.xa("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var f;if(null==(f=this.Ja)?0:f.Ko(b,c))return fWa(this.fd,a),this.xa("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),!0}}else if(null==(e=this.Ja)?0:e.Ko(b,c))return this.xa("sdai",{skipad:1,ct:b.toFixed(3),
adj:c.toFixed(3)}),fWa(this.fd,a),!0;return!1};
g.k.sK=function(){return this.Y.Rf||""};
g.k.Yf=function(){return this.videoData.videoId};
g.k.Cx=function(a){return this.Ja?this.Ja.Cx(a):""};
g.k.LA=function(){return this.Tf.Xu};g.v(g.gZ,g.E);g.gZ.create=function(a,b,c,d){try{var e="string"===typeof a?a:"player"+g.Na(a),f=Q3[e];if(f){try{f.dispose()}catch(l){g.rA(l)}Q3[e]=null}var h=new g.gZ(a,b,c,d);g.cb(h,function(){Q3[e]=null;h.kW&&h.kW()});
return Q3[e]=h}catch(l){throw g.rA(l),l.stack;}};
g.k=g.gZ.prototype;g.k.Lr=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.mm=function(){this.WK||(this.WK=g.xO(nM(),VFa()));return this.WK};
g.k.isVideoInfoVisible=function(){return!(!this.Ml||!this.Ml.sb)};
g.k.Vi=function(){if(this.mediaElement){this.gz&&(this.events.Dc(this.gz),this.gz=null);g.gA(this.qs);this.Jb&&this.Jb.Vi(!0);this.template.Vi();try{this.N("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.tG()}catch(a){g.sA(a)}this.mediaElement=null}};
g.k.Qc=function(){return this.Jb};
g.k.kq=function(){this.Jb!==this.xb&&sV(this,this.xb)};
g.k.hx=function(a,b,c){var d=this,e=this.Cb;2===a&&(e=new CQ(this.Y));return new g.TY(this.Y,a,e,this.template,function(f){return d.jq.ma.apply(d.jq,[f].concat(g.u(g.ya.apply(1,arguments))))},function(){return d.Ua.getVisibilityState()},this.visibility,this,b,c)};
g.k.setIsExternalPlaylist=function(a){this.Ji=rw(!1,a)};
g.k.T2=function(){hZ(this)||this.Jo(5)};
g.k.e4=function(a){if(!hZ(this)){UXa(this);var b=a.getPlayerState();a.lB()?this.pauseVideo():g.PL(b)&&this.playVideo()}};
g.k.canPlayType=function(a){return xF(a)};
g.k.V=function(){return this.Y};
g.k.getVideoData=function(){return this.Jb.getVideoData()};
g.k.UA=aa(9);g.k.Ad=function(){return this.xb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.OP(this,a);return a?g.dK(a.getVideoData())?1:(a=a.ue())?a.mu():0:0};
g.k.fb=function(){return this.template};
g.k.vb=function(){return this.Gc};
g.k.Ki=function(){return this.Cb};
g.k.Jy=function(a){var b=g.OP(this,1);b&&rV(b,a)};
g.k.Ep=function(){return this.Gc.Ep()};
g.k.getVolume=function(){return Math.round(this.Ua.getVolume())};
g.k.iB=function(){return this.Ua.isFullscreen()};
g.k.isMuted=function(){return this.Ua.isMuted()};
g.k.HA=function(){if(this.Y.N("html5_enable_embedded_player_visibility_signals")&&g.tH(this.Y)&&this.nO){var a=this.nO;a=null==a.j?null:Math.round(100*a.j)/100;if(null!=a)return a}};
g.k.yA=function(){if(this.Y.N("html5_enable_embedded_player_visibility_signals")&&g.tH(this.Y)){var a=this.template.getPlayerSize();if(0<a.height&&0<a.width){a=[Math.round(a.width),Math.round(a.height)];var b=g.RH();1<b&&a.push(b);return a.join(":")}}};
g.k.sx=function(){if(this.Jb===this.xb&&this.Ab)return this.Ab.postId};
g.k.Q5=function(){var a=this;g.IH(this.Y)?g.aI(this.Y,g.bK(this.getVideoData())).then(function(b){oM(nM(),b);rJa(a.getVideoData(),a.Y,a.mm())}):rJa(this.getVideoData(),this.Y,this.mm())};
g.k.addBgVersionChangeCallback=function(a){gP.push(a)};
g.k.YJ=function(a){var b=this;return g.A(function(c){return b.JU?c.return(b.JU.YJ(a)):c.return(Promise.reject("web po not available"))})};
g.k.mN=function(a){this.JU=a};
g.k.Cl=function(a){1===a&&(this.Cb.tick("vr"),this.Ws||(this.Ws=ly(k8a,this.UT,this)),VWa(this.Jb),hKa(this.Cb,this.Jb.getVideoData(),TXa(this)),this.Gc.aE());var b=this.Y;(YH(b)&&b.D||g.BH(b))&&(this.bf()||this.Ua.Oa("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.Jb===this.xb&&this.Jb.nu()!==a&&(this.Jb.setLoop(a),this.Ua.Oa("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.Jb.nu()};
g.k.setLoopRange=function(a){var b=!1;!!this.Ab!==!!a?b=!0:this.Ab&&a&&(b=this.Ab.startTimeMs!==a.startTimeMs||this.Ab.endTimeMs!==a.endTimeMs||this.Ab.postId!==a.postId||this.Ab.type!==a.type);if(b){this.xb.Hi.Qf("applooprange");if(a)b=new g.yB(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.xb.addCueRange(b);else{this.Ad().clipConfig=void 0;var c,d;"repeatChapter"!==(null==(c=this.Ab)?void 0:c.type)||isNaN(Number(null==(d=this.Ab)?void 0:d.loopCount))||(b={loopCount:String(this.Ab.loopCount),
cpn:this.getVideoData().clientPlaybackNonce},g.ax("repeatChapterLoopEvent",b))}this.Ab=a;this.Ua.Oa("onLoopRangeChange",a||void 0);this.Jb===this.xb&&(this.CG(),this.Jb.Lv())}};
g.k.getLoopRange=function(){return this.Ab};
g.k.CG=function(){this.Ab&&this.Jb===this.xb&&(FXa(this,this.xb.getCurrentTime())?this.Ab.loopCount=0:GXa(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=lXa(this,a),this.xb.getPlaybackRate()!==a&&(this.xb.setPlaybackRate(a),b&&!this.Y.u&&g.UA("yt-player-playback-rate",a),this.Ua.Oa("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return ZP(this.Gc).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.OP(this):g.OP(this,a);if(!a)return 0;if(b){if(c&&this.Fe&&(b=this.Fe.kb/1E3,0!==b))return b;a=mZ(this,a);return uZ(this,a.getCurrentTime(),a)}c&&this.Fe?(b=this.Fe,a=a.getCurrentTime(),wV(b)?(b=FV(b,1E3*a))&&b.Kq&&(a-=b.Kq):(b=bOa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.k.zx=function(){var a=g.OP(this);if(!a)return 0;a=mZ(this,a);return uZ(this,a.zx(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai;a=d?g.OP(this):g.OP(this,a);if(!a)return 0;if(c.hasProgressBarBoundaries()&&!d){var e,f=Number(null==(e=c.progressBarStartPosition)?void 0:e.utcTimeMillis),h;c=Number(null==(h=c.progressBarEndPosition)?void 0:h.utcTimeMillis);if(!isNaN(f)&&!isNaN(c))return(c-f)/1E3}if(b)return b=lZ(this,a),uZ(this,b.getDuration(),b);d&&this.Fe?(b=this.Fe,d=a.getCurrentTime(),b=wV(b)?b.ea?b.ea.durationMs/1E3:
0:(b=FV(b,1E3*d))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.Kd=function(a){a=g.OP(this,a);if(!a)return 0;a=lZ(this,a);return uZ(this,a.Kd(),a)};
g.k.Ff=function(a){var b=g.OP(this,a);return b?this.bf(b)?(b=lZ(this,b),b.Ff()-b.getCurrentTime()+this.getCurrentTime(a)):b.Ff():0};
g.k.CJ=function(){this.template.CJ();var a=this.G;a.element=this.template.element;var b=a.element,c;for(c in a.state.j)a.state.j.hasOwnProperty(c)&&(b[c]=a.state.j[c]);(a=dA(this.template.element))&&this.events.S(this.template,a,this.onFullscreenChange);this.events.S(window,"resize",this.B4)};
g.k.getDebugText=function(a){var b=this.xb.jc(a);if(this.Jb&&this.Jb!==this.xb){for(var c=this.Jb.jc(a),d=g.t(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=Ae(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.Ee("video-ads");f?(aYa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.Ee("videoAdUiSkipContainer"),l=g.Ee("ytp-ad-skip-button-container"),m=h||l;m?(aYa(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;
d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+me(this.mediaElement.getSize())),b.op=this.mediaElement.getStyle("opacity"),c=this.mediaElement.Ir().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.getStyle("display"));(a=a?(0,g.sY)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ua.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", ")},b=this.Eb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(hZ(this))return 3;var b;return a&&(null==(b=this.Fe)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.OP(this).getPlayerType()};
g.k.Eb=function(a){return 3===this.getPresentingPlayerType()?ZP(this.Gc).Qd:g.OP(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.pM=function(a){switch(a.type){case "loadedmetadata":this.zG.start();a=g.t(this.Ey);for(var b=a.next();!b.done;b=a.next())b=b.value,RXa(this,b.id,b.g7,b.f7,void 0,!1);this.Ey=[];break;case "loadstart":BQ("gv",void 0,this.Cb.timerName);break;case "progress":case "timeupdate":2<=HF(a.target.Ch())&&BQ("l2s",void 0,this.Cb.timerName);break;case "playing":g.WH&&this.zG.start();if(g.IH(this.Y))a=!1;else{b=g.aQ(this.vb());a="none"===this.mediaElement.getStyle("display")||0===me(this.mediaElement.getSize());
var c=lW(this.template),d=this.Jb.getVideoData(),e=g.CH(this.Y)||g.DH(this.Y);d=EJ(d);b=!c||b||e||d||this.Y.Md;a=a&&!b}a&&(this.Jb.xa("hidden",{},!0),this.getVideoData().Ec||(this.getVideoData().Ec=1,this.hU(null),this.Jb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Ua.Oa("onLoadProgress",b)};
g.k.X4=function(){this.Ua.ma("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=mZ(this,a);b=uZ(this,a.getCurrentTime(),a);this.Ua.Oa("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Ua.Oa("onAutoplayBlocked")};
g.k.p4=function(){this.Ua.ma("progresssync");if(!this.isInline()&&this.Y.experiments.eb("enable_lr_home_infeed_ads_inline_playback_progress_pings")&&"TVHTML5"===BG(this.Y)){var a=this.getVideoData();if(!a.Pl&&a.qf){for(var b={CPN:a.clientPlaybackNonce},c=g.t(a.qf),d=c.next();!d.done;d=c.next())AZ(this,g.Sn(d.value,b));a.Pl=!0}}};
g.k.V2=function(a){if(1===this.getPresentingPlayerType()){g.cL(a,1)&&!g.V(a.state,64)&&this.Ad().isLivePlayback&&this.xb.isAtLiveHead()&&1<this.Ua.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.cL(a,2)){if(this.Ab&&this.Ab.endTimeMs>=1E3*(this.getDuration()-1)){GXa(this);return}wXa(this)}if(g.V(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Oa("onError",uJa(b.errorCode));this.Ua.Oa("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.NJ,cpn:b.cpn});6048E5<(0,g.R)()-this.Y.qf&&this.Ua.Oa("onReloadRequired")}b={};if(a.state.Wc()&&!g.RL(a.state)&&!wC("pbresume","ad_to_video")&&wC("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);iC(b,"ad_to_video");hC("pbresume",void 0,"ad_to_video");this.Gc.aE()}this.Ua.ma("applicationplayerstatechange",a)}};
g.k.AU=function(a){3!==this.getPresentingPlayerType()&&this.Ua.ma("presentingplayerstatechange",a)};
g.k.ji=function(a){kZ(this,SL(a.state));g.V(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(TP(this,{muted:!1,volume:this.zi.volume},!1),sZ(this,!1))};
g.k.R2=function(a,b,c){"newdata"===a&&oXa(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};
g.k.HB=function(){this.Ua.Oa("onPlaybackAudioChange",this.Ua.getAudioTrack().Rc.name)};
g.k.PB=function(a){var b=this.Jb.getVideoData();a===b&&this.Ua.Oa("onPlaybackQualityChange",a.B.video.quality)};
g.k.onVideoDataChange=function(a,b,c){b===this.xb&&(this.Y.Zh=c.oauthToken);b===this.xb&&(this.getVideoData().enableServerStitchedDai&&!this.Fe?this.Fe=new g.xV(this.Ua,this.Y,this.xb):!this.getVideoData().enableServerStitchedDai&&this.Fe&&(this.Fe.dispose(),this.Fe=null));if("newdata"===a)YQ(this.Gc,2),this.Ua.ma("videoplayerreset",b);else{if(!this.mediaElement)return;if("dataloaded"===a)if(this.Jb===this.xb){if(GH(c.u,c.vT),!this.xb.getPlayerState().isError()){var d=hZ(this);this.Ad().isLoaded();
d&&this.Jo(6);AXa(this);XQ(this.Gc)||zXa(this)}}else AXa(this);if(1===b.getPlayerType()&&(this.Y.Ma&&$Xa(this),this.getVideoData().isLivePlayback&&!this.Y.hp&&this.zg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(ABa(c)||this.getVideoData().jz){d=this.Pw;var e=this.getVideoData(),f=this.xb;nP(d,"part2viewed",1,0x8000000000000,f);nP(d,"engagedview",Math.max(1,1E3*e.Fb),0x8000000000000,f);e.isLivePlayback||(e=1E3*e.lengthSeconds,nP(d,"videoplaytime25",.25*e,e,f),nP(d,"videoplaytime50",
.5*e,e,f),nP(d,"videoplaytime75",.75*e,e,f),nP(d,"videoplaytime100",e,0x8000000000000,f),nP(d,"conversionview",e,0x8000000000000,f),nP(d,"videoplaybackstart",1,e,f),nP(d,"videoplayback2s",2E3,e,f),nP(d,"videoplayback10s",1E4,e,f))}if(c.hasProgressBarBoundaries()){var h;d=Number(null==(h=this.getVideoData().progressBarEndPosition)?void 0:h.utcTimeMillis)/1E3;!isNaN(d)&&(h=this.Ff())&&(h-=this.getCurrentTime(),h=1E3*(d-h),d=this.iG.progressEndBoundary,(null==d?void 0:d.start)!==h&&(d&&this.sG([d]),
h=new g.yB(h,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.xb.addCueRange(h),this.iG.progressEndBoundary=h))}}this.Ua.ma("videodatachange",a,c,b.getPlayerType())}this.Ua.Oa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.CG();(a=c.oC)?this.Tr.jR(a,c.clientPlaybackNonce):NOa(this.Tr)};
g.k.Uw=function(){nZ(this,null);this.Ua.Oa("onPlaylistUpdate")};
g.k.IT=function(a){var b=a.getId(),c=this.Ad(),d=!this.isInline();if(!c.inlineMetricEnabled&&!this.Y.experiments.eb("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.xV&&g.Ay(c.xV),c.FI&&AZ(this,c.FI),c.qf){if(!this.Y.experiments.eb("enable_lr_home_infeed_ads_inline_playback_progress_pings"))for(var e={CPN:this.getVideoData().clientPlaybackNonce},f=g.t(c.qf),h=f.next();!h.done;h=f.next())AZ(this,g.Sn(h.value,e));else if(!c.Pl)for(e={CPN:this.getVideoData().clientPlaybackNonce},
f=g.t(c.qf),h=f.next();!h.done;h=f.next())AZ(this,g.Sn(h.value,e));c.Pl=!0}}else"conversionview"===b?this.xb.Xy():"engagedview"===b&&c.Zh&&(h={CPN:this.getVideoData().clientPlaybackNonce},g.Ay(g.Sn(c.Zh,h)));c.SV&&(h=a.getId(),h=Cv(c.SV,{label:h}),g.Ay(h));switch(b){case "videoplaytime25":c.fL&&AZ(this,c.fL);c.Fw&&BZ(this,c.Fw);c.DW&&g.Ay(c.DW);(c.fL||c.Fw)&&this.Y.experiments.eb("enable_lr_home_infeed_ads_inline_playback_progress_pings")&&(c.qf||g.sA(new g.Sw("empty promotedPlaybackQuartile0Urls but 25% quartile url exist in application.ts")),
c.Pl||g.sA(new g.Sw("promotedPlaybackQuartile0Urls did not get fired when the 25% quartile url is fired in application.ts")));break;case "videoplaytime50":c.XU&&AZ(this,c.XU);c.hL&&BZ(this,c.hL);c.IW&&g.Ay(c.IW);break;case "videoplaytime75":c.mV&&AZ(this,c.mV);c.pL&&BZ(this,c.pL);c.LW&&g.Ay(c.LW);break;case "videoplaytime100":c.DT&&AZ(this,c.DT),c.XJ&&BZ(this,c.XJ),c.fW&&g.Ay(c.fW)}(h=this.getVideoData().jz)&&NXa(this,h,a.getId())&&NXa(this,h,a.getId()+"gaia")}if(c.inlineMetricEnabled&&!d)switch(b){case "videoplaybackstart":var l,
m=null==(l=c.Gw)?void 0:l.j;m&&AZ(this,m);break;case "videoplayback2s":(l=null==(m=c.Gw)?void 0:m.B)&&AZ(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.Gw)?void 0:n.u)&&AZ(this,l)}this.xb.removeCueRange(a)};
g.k.o4=function(a){delete this.iG[a.getId()];this.xb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.watchNextResponse)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(h=a.watchNextResponse)?void 0:null==(l=h.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.t(q),c=b.next();!c.done;c=
b.next())if(c=c.value,e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),d=g.P(c,g.xI),f=e=void 0,null!=c&&(null==(e=d)?void 0:e.videoId)===a.videoId&&(null==(f=d)?0:f.continuePlayback)){a=c;break a}a=null}(b=g.P(a,g.xI))&&this.Ua.Oa("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.Jo=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(kZ(this,-1),kZ(this,5)),this.appState=a,this.Ua.ma("appstatechange",a))};
g.k.zg=function(a,b,c,d,e){this.xb.Jg(a,b,c,d,e)};
g.k.uq=function(a,b){this.xb.handleError(new cI(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.OP(this,a);if(!c)return!1;a=lZ(this,c);c=mZ(this,c);return a!==c?a.isAtLiveHead(uZ(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Cr=function(){var a=g.OP(this);return a?lZ(this,a).Cr():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.OP(this,d))2===this.appState&&qZ(this),this.bf(d)?tZ(this)?this.Fe.seekTo(a,b,c):this.td.seekTo(a,b,c):d.seekTo(a,{gW:!b,hW:c,Ee:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.oy=function(){this.Ua.Oa("SEEK_COMPLETE")};
g.k.M4=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.V(a.getPlayerState(),512)||qZ(this):this.Ua.Oa("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Ua.ma("airplayactivechange");this.Y.N("html5_external_airplay_events")&&this.Ua.Oa("onAirPlayActiveChange",this.Ua.jh())};
g.k.onAirPlayAvailabilityChange=function(){this.Ua.ma("airplayavailabilitychange");this.Y.N("html5_external_airplay_events")&&this.Ua.Oa("onAirPlayAvailabilityChange",this.Ua.hB())};
g.k.showAirplayPicker=function(){var a;null==(a=this.Jb)||a.Ps()};
g.k.ML=function(){this.Ua.ma("beginseeking")};
g.k.RL=function(){this.Ua.ma("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.OP(this,a))?lZ(this,a).getVideoData().getStoryboardFormat():null};
g.k.tj=function(a){return(a=g.OP(this,a))?lZ(this,a).getVideoData().tj():null};
g.k.bf=function(a){a=a||this.Jb;var b=!1;if(a){a=a.getVideoData();if(tZ(this))a=a===this.Fe.va.getVideoData();else a:if(b=this.td,a===b.j.getVideoData()&&b.u.length)a=!0;else{b=g.t(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Kc===c.value.Kc){a=!0;break a}a=!1}b=a}return b};
g.k.Ow=function(a,b,c,d,e,f,h){var l=tZ(this),m;null==(m=g.OP(this))||m.xa("appattl",{sstm:this.Fe?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:l});return l?$Na(this.Fe,a,b,c,d,e,f,h):qOa(this.td,a,c,d,e,f)};
g.k.fB=function(a,b,c,d,e,f,h){tZ(this)&&$Na(this.Fe,a,b,c,d,e,f,h);return""};
g.k.Fs=function(a){var b;null==(b=this.Fe)||b.Fs(a)};
g.k.Qt=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;tZ(this)||VV(this.td,a,b)};
g.k.Wy=function(a,b,c){if(tZ(this)){var d=this.Fe,e=d.Ac.get(a);e?(void 0===c&&(c=e.Bd),e.durationMs=b,e.Bd=c):d.uB("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.td;e=null;for(var f=g.t(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Kc===a){e=h;break}e?(void 0===c&&(c=e.Bd),wOa(d,e,b,c)):OV(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.bf();a=new g.mJ(this.Y,a);d&&(a.Kc=d);c=void 0===c?Infinity:c;d=b||this.Jb.getPlayerType();(b=EXa(this,d,a,!0))||(b=yXa(this,d,a));2===d&&this.xb&&(a=b.getVideoData(),this.xb.uv(a.clientPlaybackNonce,a.Md||"",a.breakType||0,a.Rf));this.hE(b,c)};
g.k.hE=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.OP(this);e&&(lZ(this,e).qW=!0);NNa(this.ez,a,b,c).then(function(){d.Ua.Oa("onQueuedVideoLoaded")},function(){})};
g.k.Ox=function(){return this.ez.Ox()};
g.k.clearQueue=function(){this.ez.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1;this.N("fetch_bid_for_dclk_status")&&g.Nw(g.Pw(),function(){jB("player")});
var h=new g.mJ(this.Y,a),l;gKa(this.Cb,null!=(l=h.Pa)?l:"");this.Cb.Yi("pl_i");this.N("web_player_early_cpn")&&h.clientPlaybackNonce&&this.Cb.info("cpn",h.clientPlaybackNonce);if(e){for(;h.vl.length&&h.vl[0].isExpired();)h.vl.shift();f=h.vl.length-1;f=0<f&&e.u(h.vl[f])&&e.u(h.vl[f-1]);h.vl.push(e)}c||(a&&FQ(a)?(QH(this.Y)&&!this.Ji&&(a.fetch=0),nZ(this,a)):this.playlist&&nZ(this,null),a&&this.setIsExternalPlaylist(a.external_list),QH(this.Y)&&!this.Ji&&oZ(this));a=this.hs(h,b,d);f&&this.zg("player.fatalexception",
1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+h.vl.join()).replace(/[;:,]/g,"_"));return a};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;if(this.Y.N("html5_autonav_autoplay_in_preload_key")){d=b;var f=e,h=xw(a);d=wZ(this,d,h,f,"1"===a.autonav||!0===a.autonav,"1"===a.autoplay||!0===a.autoplay||1===a.autoplay)}else d=xw(a),d=wZ(this,b,d,e);if(!this.XB.get(d))a:{a=new g.mJ(this.Y,a),e&&(a.Kc=e),e=this.Y.N("html5_autonav_autoplay_in_preload_key")?OXa(this,b,a):wZ(this,b,a.videoId,a.Kc);if(this.Jb&&(d=this.Y.N("html5_autonav_autoplay_in_preload_key")?
OXa(this,this.Jb.getPlayerType(),this.Jb.getVideoData()):wZ(this,this.Jb.getPlayerType(),this.Jb.getVideoData().videoId,this.Jb.getVideoData().Kc),e===d)){g.pV(this.Jb,!0);a.dispose();break a}a.Wh=!0;a=yXa(this,b,a);1===b&&TH(this.Y)||g.pV(a,!0);this.XB.set(e,a,c||3600)}};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Gc;a=a.G.V().showMiniplayerUiWhenMinimized?a.Ue.get("miniplayer"):void 0;a&&(this.cg()?a.load():a.unload());this.Ua.ma("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Gc;a=a.G.V().showInlinePreviewUi?a.Ue.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.Oa("onInlinePreviewModeChange"))};
g.k.Iy=function(a){var b=this.Y.N("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.Y.Ll&&this.Y.N("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.WJ&&b?this.WJ.start():this.QQ():this.visibility.Iy(a)};
g.k.QQ=function(){var a,b=null==(a=this.mediaElement)?void 0:a.ub();b&&cA(b).catch(function(c){return g.sA(c)})};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.J4=function(){this.mediaElement.ub();"picture-in-picture"===this.mediaElement.ub().webkitPresentationMode?this.Iy(!0):this.Iy(!1)};
g.k.togglePictureInPicture=function(){var a=g.OP(this);a&&a.togglePictureInPicture()};
g.k.hs=function(a,b,c){b=void 0===b?1:b;wC("_start",this.Cb.timerName)||(hC("_start",void 0,this.Cb.timerName),this.Cb.info("srt",0));var d=!1,e=EXa(this,b,a,!1);e?(d=!0,a.dispose()):(e=yXa(this,b,a,c),this.N("html5_onesie")&&WY(e)&&g.pV(e),this.zG.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),sV(this,e));e===this.xb&&(this.Y.Zh=a.oauthToken);if(!WY(e))return!1;if(e===this.xb){this.Jo(1);a=qZ(this);if(d&&this.G.N("html5_player_preload_ad_fix")&&
1===e.getPlayerType()&&e.Eo.isFinished())this.onVideoDataChange("dataloaded",e,e.getVideoData());return a}EWa(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&FQ(a))if(this.Eu=!0,nZ(this,a),(a=g.GQ(this.playlist))&&a.isValid())yZ(this,a,b);else this.playlist.onReady(function(){pZ(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.Uw();var d=new g.mJ(this.Y,a);!g.tH(this.Y)||this.Y.oa||1!==b||d.isAd()||d.Md?yZ(this,d,b):(this.Qc().getVideoData().Ma=!0,nKa(d,a?a:{}).then(function(e){yZ(c,e,b)}),d.dispose())}};
g.k.Wm=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(vH(this.Y)||g.UH(this.Y))return b=b||{},b.lact=fz(),b.vis=this.Ua.getVisibilityState(),this.Ua.Oa("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;iKa(this.Cb);this.Cb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");f&&(a.player_params=f.playerParams);h&&(a.oauth_token=h);c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
g.k.cuePlaylist=function(a,b,c,d){this.Eu=!0;PXa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Eu=!1;PXa(this,a,b,c,d)};
g.k.AA=function(){if(this.Ua.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;QH(this.Y)&&!this.Ji&&oZ(this);return!(!this.playlist||!this.playlist.hasNext())};
g.k.wr=aa(5);
g.k.nextVideo=function(a,b){var c=g.yI(this.xb.getVideoData());g.dQ(this.Ua)&&c?this.Wm(c.videoId,b?c.pA:c.sessionData,c.playlistId,b,void 0,c.IQ||void 0):this.Ji?this.Ua.Oa("onPlaylistNext"):3===this.getPresentingPlayerType()?ZP(this.Gc).nextVideo():this.playlist&&(QH(this.Y)&&!this.Ua.isFullscreen()?JXa(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&HQ(this.playlist,jKa(this.playlist)),this.playlist.loaded?(a=b&&this.Y.N("html5_player_autonav_logging"),this.hs(g.GQ(this.playlist,void 0,
b,a),1)):this.Eu=!1))};
g.k.previousVideo=function(a){this.Ji?this.Ua.Oa("onPlaylistPrevious"):3===this.getPresentingPlayerType()?ZP(this.Gc).fG():this.playlist&&(QH(this.Y)&&!this.Ua.isFullscreen()?JXa(this,"yt.www.watch.lists.prev"):(this.playlist.ao(a)&&HQ(this.playlist,kKa(this.playlist)),this.playlist.loaded?this.hs(g.GQ(this.playlist),1):this.Eu=!1))};
g.k.playVideoAt=function(a){this.Ji?this.Ua.Oa("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.hs(g.GQ(this.playlist,a),1):this.Eu=!1,HQ(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.NA=aa(13);g.k.P2=function(a){this.Ua.Oa("onCueRangeEnter",a.getId())};
g.k.Q2=function(a){this.Ua.Oa("onCueRangeExit",a.getId())};
g.k.Rz=function(a,b,c){var d=g.OP(this,b);d&&(d.Rz(a,c),b&&this.getPresentingPlayerType()!==b||jZ(this,"cuerangesadded",a))};
g.k.sG=function(a,b){var c=g.OP(this,b);c&&(c.sG(a),b&&this.getPresentingPlayerType()!==b||jZ(this,"cuerangesremoved",a))};
g.k.U2=function(){function a(){var d=g.DA(b.oV||(b.cg()?3:0));if(d&&"UNDEFINED_CSN"!==d){var e=b.Y.N("web_player_attach_player_response_ve"),f=b.Y.N("web_playback_associated_ve");if(b.Y.N("il_via_jspb")){var h=new vu;var l=b.getVideoData().clientPlaybackNonce;l=g.I(h,1,l);g.I(l,3,d);b.getVideoData().ya&&(e||f)&&(e=g.zA(b.getVideoData().ya),g.ZL(d,e),f&&(d=e.getAsJspb(),J(h,gt,2,d)));if(b.getVideoData().queueInfo){d=b.getVideoData().queueInfo;f=new wu;if(null==d?0:d.enqueueingVe)(null==d?0:d.enqueueingVe.trackingParams)?
(e=g.zA(d.enqueueingVe.trackingParams),e=e.getAsJspb(),J(f,gt,1,e)):g.sA(new g.Sw("Cannot map enqueueingVe from a client VE "));(null==d?0:d.enqueueingCsn)&&g.I(f,2,d.enqueueingCsn);(null==d?0:d.clientEnqueueingTimeMs)&&g.I(f,3,Number(d.clientEnqueueingTimeMs));J(h,wu,4,f)}d={};b.N("web_playback_associated_log_ctt")&&b.getVideoData().J&&(d.cttAuthInfo={token:b.getVideoData().J,videoId:b.getVideoData().videoId});Fqa(h,d)}else h={cpn:b.getVideoData().clientPlaybackNonce,csn:d},b.getVideoData().ya&&
(e||f)&&(e=g.zA(b.getVideoData().ya),g.ZL(d,e),f&&(h.playbackVe=e.getAsJson())),b.getVideoData().queueInfo&&(h.queueInfo=b.getVideoData().queueInfo),d={},b.N("web_playback_associated_log_ctt")&&b.getVideoData().J&&(d.cttAuthInfo={token:b.getVideoData().J,videoId:b.getVideoData().videoId}),g.ax("playbackAssociated",h,d)}else g.sA(new g.Sw("CSN Missing or undefined during playback association"))}
var b=this;this.getPresentingPlayerType();this.Ws||(this.Ws=ly(k8a,this.UT,this));hKa(this.Cb,this.Jb.getVideoData(),TXa(this));BXa(this)&&this.Y.u&&"embedded"===YJ(this.Ad())&&this.jT&&.01>Math.random()&&g.ax("autoplayTriggered",{intentional:this.LS});this.jT=!1;this.Gc.aE();this.N("web_player_defer_ad")&&zXa(this);this.Ua.Oa("onPlaybackStartExternal");(this.Y.N("mweb_client_log_screen_associated"),this.Y.N("kids_web_client_log_screen_associated")&&JH(this.Y))||a();var c={};this.getVideoData().J&&
(c.cttAuthInfo={token:this.getVideoData().J,videoId:this.getVideoData().videoId});jC("player_att",c);if(this.getVideoData().botguardData||this.N("fetch_att_independently"))g.SH(this.Y)||"MWEB"===BG(this.Y)?g.Nw(g.Pw(),function(){rZ(b)}):rZ(this);
this.CG()};
g.k.XL=function(){this.Ua.ma("internalAbandon");vZ(this)};
g.k.UT=function(a){a=a.j;!isNaN(a)&&0<a&&this.xb&&this.xb.fC(a)};
g.k.onApiChange=function(){this.Y.D&&this.Jb?this.Ua.Oa("onApiChange",this.Jb.getPlayerType()):this.Ua.Oa("onApiChange")};
g.k.O3=function(){var a=this.mediaElement;a={volume:g.de(Math.floor(100*a.getVolume()),0,100),muted:a.DE()};a.muted||sZ(this,!1);this.zi=g.Yc(a);this.Ua.Oa("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Ua.Oa("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=VXa(this);this.Fl(a?1:0);XXa(this,!!a)};
g.k.Fl=function(a){var b=!!a,c=!!this.wx()!==b;this.visibility.Fl(a);this.template.Fl(b);this.N("html5_media_fullscreen")&&!b&&this.mediaElement&&VXa(this)===this.mediaElement.ub()&&this.mediaElement.rA();this.template.resize();c&&this.Cb.tick("fsc");c&&(this.Ua.ma("fullscreentoggled",b),a=this.Ad(),b={fullscreen:b,videoId:a.vH||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.Oa("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.wx=function(){return this.visibility.wx()};
g.k.B4=function(){this.Jb&&(0!==this.wx()&&1!==this.wx()||this.Fl(VXa(this)?1:0),this.Y.Ll&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.rA())};
g.k.G3=function(a){3!==this.getPresentingPlayerType()&&this.Ua.ma("liveviewshift",a)};
g.k.playVideo=function(a){if(a=g.OP(this,a))2===this.appState?(this.N("html5_watch_action_on_play_video")&&g.VH(this.Y)&&DQ(this.Cb),qZ(this)):(null!=this.Ml&&this.Ml.sb&&this.Ml.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.OP(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){var a=this.xb.getVideoData(),b=new g.mJ(this.Y,{video_id:a.vH||a.videoId,oauth_token:a.oauthToken});b.ea=g.Yc(a.ea);this.cancelPlayback(6);yZ(this,b,1);null!=this.Ml&&this.Ml.stop()};
g.k.cancelPlayback=function(a,b){ky(this.Ws);this.Ws=0;var c=g.OP(this,b);c&&(2===b&&1===c.getPlayerType()&&OBa(this.Ad())?c.xa("canclpb",{r:"no_adpb_ssdai"}):(this.Y.N("html5_high_res_logging")&&c.xa("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Jb&&YQ(this.Gc,a),1===b&&(c.stopVideo(),vZ(this)),c.Om(void 0,!0),jZ(this,"cuerangesremoved",c.gm()),c.Hi.reset(),this.ez&&c.isGapless()&&(c.Vi(!0),c.setMediaElement(this.mediaElement)))))};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.OP(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.sj=function(a){var b=g.OP(this);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.sj(a):null};
g.k.updatePlaylist=function(){QH(this.Y)?oZ(this):g.tH(this.Y)&&CXa(this);this.Ua.Oa("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.CV=a;this.eL=b;this.Ua.ma("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.eL};
g.k.cg=function(){return this.visibility.cg()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.Nx=function(){return this.visibility.Nx()};
g.k.Jx=function(){return this.visibility.Jx()};
g.k.nB=function(){return this.CV};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return ZP(this.Gc).getAdState();if(!this.bf()){var a=ZQ(this.vb());if(a)return a.getAdState()}return-1};
g.k.A4=function(a){var b=this.template.getVideoContentRect();yl(this.dT,b)||(this.dT=b,this.Jb&&aZ(this.Jb),this.xb&&this.xb!==this.Jb&&aZ(this.xb),1===this.wx()&&this.RB&&XXa(this,!0));this.mL&&g.le(this.mL,a)||(this.Ua.ma("appresize",a),this.mL=a)};
g.k.kh=function(){return this.Ua.kh()};
g.k.S4=function(){2===this.getPresentingPlayerType()&&this.td.isManifestless()?vOa(this.td):(this.Fe&&(IV(this.Fe),vZ(this)),vXa(this,"signature"))};
g.k.hU=function(){this.Vi();iZ(this)};
g.k.U3=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ua.Oa("onPlayerRequestAuthFailed")};
g.k.JB=function(){this.Ua.Oa("CONNECTION_ISSUE")};
g.k.KB=function(a){this.Ua.ma("heartbeatparams",a)};
g.k.wG=function(a){this.Ua.Oa("onAutonavChangeRequest",1!==a)};
g.k.ue=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.Y.Md=a;this.Jb&&(this.Jb.Lv(),this.Y.Ma&&$Xa(this))};
g.k.W3=function(){var a=g.OP(this);if(a){var b=!this.Ua.kB();(a.uS=b)||a.Nu.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.C&&c.C.stop()}a.Ja&&(b?a.Ja.resume():eZ(a,!0));g.V(a.playerState,2)||b?g.V(a.playerState,512)&&b&&a.kc(LL(a.playerState,512)):a.kc(KL(a.playerState,512));a=a.wc;a.qoe&&(a=a.qoe,g.pY(a,g.qV(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Ua.Oa("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Ua.Oa("onDrmOutputRestricted")};
g.k.VI=function(){W8a=this.N("html5_use_async_stopVideo");X8a=this.N("html5_pause_for_async_stopVideo");V8a=this.N("html5_not_reset_media_source");QF=this.N("html5_not_reset_media_source");KF=this.N("html5_retain_source_buffer_appends_for_debugging");this.N("html5_mediastream_applies_timestamp_offset")&&(eX=!0);var a=g.wG(this.Y.experiments,"html5_cobalt_override_quic");a&&fV("QUIC",+(0<a));this.N("html5_cobalt_enable_min_processor_cnt_to_offload_algo")&&fV("MediaSource.MinimumProcessorCountToOffloadAlgorithm",
g.wG(this.Y.experiments,"html5_cobalt_min_processor_cnt_to_offload_algo"));(a=this.N("html5_cobalt_async_redn"))&&fV("MediaSource.EnableAsynchronousReduction",+a);if(a=g.wG(this.Y.experiments,"html5_cobalt_max_size_for_immed_job"))fV("MediaSource.MaxSizeForImmediateJob",a),fV("MediaSource.MinSizeForImmediateJob",a);Error.stackTraceLimit=25;var b=g.wG(this.Y.experiments,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
uva(this.Y.B)};
g.k.tF=function(){this.LS=!0};
g.k.ra=function(){this.Gc.dispose();this.td.dispose();this.Fe&&this.Fe.dispose();this.xb.dispose();this.Vi();g.bb(Oc(this.Kv),this.playlist);ky(this.Ws);this.Ws=0;g.E.prototype.ra.call(this)};
g.k.N=function(a){return this.Y.N(a)};
g.k.HG=function(){return this.yC};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.oV=a};
g.k.seekToChapterWithAnimation=function(a){var b=this,c,d=null==(c=PP(this.vb()))?void 0:c.du();if(d instanceof g.AR&&!(0>a)){var e;if((c=null==(e=this.getVideoData())?void 0:e.yk)&&a<c.length)for(e=g.t(c),c=e.next();!c.done;c=e.next())if(c=c.value,c.index===a){cYa(this,d,c.startTime,c.title);return}if(this.N("web_key_moments_markers")){var f;(e=null==(f=this.getVideoData())?void 0:f.GO)&&a<e.length&&e.forEach(function(h,l){l===a&&cYa(b,d,h.timeRangeStartMillis,h.title)})}}};
g.k.createSubtitlesModuleIfNeeded=function(){return this.Gc.createSubtitlesModuleIfNeeded()};
g.k.downloadVideo=function(a,b){var c=this,d,e,f;return g.A(function(h){if(1==h.j){d=bR(c.Gc);if(!d)return h.return(Promise.reject());b&&(e={ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:b}});return g.y(h,d.LM([a],"mainVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e),3)}f=h.u;return h.return(f[0])})};
g.k.updateDownloadState=function(a,b){var c=this,d;return g.A(function(e){return(d=bR(c.Gc))?e.return(d.updateDownloadState(a,b)):e.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){var b=bR(this.Gc);b&&b.vM(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.A(function(d){return(c=bR(b.Gc))?d.return(c.nC(a)):d.return(Promise.reject())})};
g.k.refreshAllVideos=function(a){void 0===a&&(a=14400);var b=bR(this.Gc);return b?b.pG(a):Promise.reject()};
g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=bR(this.Gc);return b?b.refreshAllStaleEntities(a):Promise.reject()};
g.k.deleteVideos=function(a){var b=bR(this.Gc);return b?b.LM(a,"mainVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"):Promise.reject()};
g.k.deleteAllVideos=function(){var a=bR(this.Gc);return a?a.deleteAll():Promise.reject()};
g.k.isOrchestrationLeader=function(){var a=bR(this.Gc);return a?a.isOrchestrationLeader():!1};
g.k.getStatsForNerds=function(){var a=this.Ua,b=g.OP(this),c=a.getVideoData(),d=a.ue(),e=d.ub(),f=b.WA(),h=b.EN,l=8*fW(h,"bandwidth")/1024,m=fW(h,"networkactivity")/1024,n=fW(h,"bufferhealth");if(b.Ye){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.Ye.j.ih()+"/"+HC(b.ju());p+="/"+b.Ye.ih()}else p="";var q=p,r=b.getPlayerState().state.toString(16),w=d.getCurrentTime().toFixed(2),x=DF(d.Ch(),",",3);p="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(p+=c.lI?"DS":"SS");p+="DAI, ";a:{if(b.td){if(b.td.Yq){var z=
"D,";break a}z=b.td.bl;if(0<z){z="AD"+z+", ";break a}}z=""}z&&(p+=z)}PBa(c)&&(p+="SABR, ");if(c.fetchType){switch(c.fetchType){case "onesie":z="o";break;case "gp":z="gp";break;default:z="gvi"}p+="vd:"+z+", "}p+="s:"+r+" t:"+w+" b:"+x+" ";d.Rg()&&(p+="S");d.fp()&&(p+="P");d.Eh()&&(p+="E");a.isOrchestrationLeader()&&(p+=" L");(d=b.JA())&&(p+=" l:"+d.toFixed());d=b.getCurrentTime();r=c.KN;d&&d>r.start&&d<r.end&&(p+=" as");d=p;p=MB("_start");r=[];w=g.t(["pl_i","vir","or_p","orfb","pbs"]);for(x=w.next();!x.done;x=
w.next())x=x.value,(z=MB(x))&&p&&(z-=p,r.push(x+":"+Math.round(z)));p=r.join(" ");r=g.RH();w=g.bQ(a).w1;x=c.C&&!c.C.j?"display:none":"";if((z=c.clientPlaybackNonce)&&16==z.length){for(var B=0,C="",G=0;10>G;G++)if(B=(B<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(z.charAt(G)),4==G%5){for(var F="",K=0;6>K;K++)F="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(B&31)+F,B>>=5;C+=F}z=C.substr(0,4)+" "+C.substr(4,4)+" "+C.substr(8,4)}else z="";l={video_id_and_cpn:c.videoId+" / "+
z,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:q?"":"display:none",drm:q,debug_info:d,extra_debug_info:"",bandwidth_style:x,network_activity_style:x,network_activity_bytes:m.toFixed(0)+" KB",shader_info:w,shader_info_style:w?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<r?"*"+r.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);
l.dims_and_frames=m+" / "+n;a=a.getVolume();f=MBa(c);var L;m=(null==(L=c.I)?0:L.audio.j)?"DRC":Math.round(a*f)+"%";L=Math.round(a)+"% / "+m;a=c.Rf.toFixed(1);isFinite(Number(a))&&(L+=" (content loudness "+a+"dB)");l.volume=L;l.resolution=e.videoWidth+"x"+e.videoHeight;if(L=c.B)if(e=L.video)a=e.fps,1<a&&(l.resolution+="@"+a),(a=g.bZ(b))&&a.video&&(l.resolution+=" / "+a.video.width+"x"+a.video.height,1<a.video.fps&&(l.resolution+="@"+a.video.fps)),l.codecs=FOa(L),!c.I||L.audio&&L.video?L.yT&&(l.codecs+=
" / "+L.yT+"A"):l.codecs+=" / "+FOa(c.I),e.u||e.primaries?(L=e.u||"unknown","smpte2084"===L?L+=" (PQ)":"arib-std-b67"===L&&(L+=" (HLG)"),l.color=L+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;L=c.Ne;l.live_mode_style=e||L?"":"display:none";l.live_latency_style=e?"":"display:none";if(L)l.live_mode="Post-Live"+(wJ(c)?" Manifestless":"");else if(e){L=fW(h,"livelatency");l.live_latency_secs=L.toFixed(2)+"s";e=wJ(c)?"Manifestless, ":"";c.jd&&(e+="Windowed, ");
a="Uncertain";if(0<=L&&120>L)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(L=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+L.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+=
"Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=eW(h,"bandwidth");l.network_activity_samples=eW(h,"networkactivity");l.live_latency_samples=eW(h,"livelatency");l.buffer_health_samples=eW(h,"bufferhealth");b=g.dK(c);if(c.cotn||b)l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";sJ(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20221218_00_RC00",l.release_style=
""):l.release_style="display:none";l.debug_info&&0<p.length&&60>=l.debug_info.length+p.length?l.debug_info+=" "+p:l.extra_debug_info=p;l.extra_debug_info_style=l.extra_debug_info&&0<l.extra_debug_info.length?"":"display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.Ab&&this.Ab.postId)return a=this.Y.getVideoUrl(a),a=fi(a,"v"),a.replace("/watch","/clip/"+this.Ab.postId);var f,h,l=null==(h=null==(f=PP(this.vb()))?void 0:f.du())?void 0:h.hk();return this.Y.getVideoUrl(a,b,c,d,e,l)};
var Q3={};g.Da("yt.player.Application.create",g.gZ.create);g.Da("yt.player.Application.createAlternate",g.gZ.create);wqa(jA(),{Zp:[{xB:/Unable to load player module/,weight:20},{xB:/Failed to fetch/,weight:500},{xB:/XHR API fetch failed/,weight:10},{xB:/JSON parsing failed after XHR fetch/,weight:10},{xB:/Retrying OnePlatform request/,weight:10}]});var o9a=g.Fa("ytcsi.tick");o9a&&o9a("pe");var fYa=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"]]),dYa=new Map([["normal",{vv:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Gv:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{vv:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Gv:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{vv:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Gv:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{vv:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Gv:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{vv:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Gv:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{vv:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Gv:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{vv:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Gv:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var p9a={jTa:"replaceUrlMacros",iOa:"onAboutThisAdPopupClosed",qua:"executeCommand"};JZ.prototype.Tn=function(){return"adLifecycleCommand"};
JZ.prototype.handle=function(a){var b=this.eA();g.sA("Unexpected AdLifecycleCommand");switch(a.action){case "END_LINEAR_AD":g.hf(function(){b.nx()});
break;case "END_LINEAR_AD_PLACEMENT":g.hf(function(){b.er()})}};
JZ.prototype.Hp=function(a){this.handle(a)};KZ.prototype.Tn=function(){return"clearCueRangesCommand"};
KZ.prototype.handle=function(){var a=this.eA();g.hf(function(){a.Oh(Array.from(a.Dt))})};
KZ.prototype.Hp=function(a){this.handle(a)};LZ.prototype.Tn=function(){return"muteAdEndpoint"};
LZ.prototype.handle=function(a){mYa(this,a)};
LZ.prototype.Hp=function(a,b){mYa(this,a,b)};MZ.prototype.Tn=function(){return"openPopupAction"};
MZ.prototype.handle=function(){};
MZ.prototype.Hp=function(a){this.handle(a)};NZ.prototype.Tn=function(){return"pingingEndpoint"};
NZ.prototype.handle=function(){};
NZ.prototype.Hp=function(a){this.handle(a)};OZ.prototype.Tn=function(){return"urlEndpoint"};
OZ.prototype.handle=function(){g.rA(Error("The deprecated handle method is called for url_endpoint_handler."))};
OZ.prototype.Hp=function(a,b,c){var d=this.Ra.get(),e=d0a(d.u.get(),b);e?b=P0(d,H0a(e),e,void 0,c):(kB("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);i0(this.F5,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=this.Lm.Wf(2))&&(b.AD_CPN=c.clientPlaybackNonce);a=g.Sn(a.url,b);"1"===(new g.xj(a)).u.get("ase")?g.gO(a,void 0,void 0,a+"&asr=1"):g.gO(a)};PZ.prototype.Tn=function(){return"adPingingEndpoint"};
PZ.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Et.send(a,b,c)};
PZ.prototype.Hp=function(a,b,c){I0a(this.Ra.get(),a,b,c)};QZ.prototype.Tn=function(){return"changeEngagementPanelVisibilityAction"};
QZ.prototype.handle=function(a){this.G.Oa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
QZ.prototype.Hp=function(a){this.handle(a)};RZ.prototype.Tn=function(){return"loggingUrls"};
RZ.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.t(a);for(var d=a.next();!d.done;d=a.next())this.Al.send(d.value.baseUrl,b,c)};
RZ.prototype.Hp=function(a,b,c){a=g.t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,I0a(this.Ra.get(),d.baseUrl,b,c)};g.v(oYa,g.E);SZ.prototype.get=function(){return this.value};
g.v(TZ,SZ);TZ.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.v(pYa,SZ);pYa.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.v(UZ,SZ);UZ.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.v(VZ,SZ);VZ.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.v(qYa,SZ);qYa.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.v(rYa,SZ);rYa.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.v(sYa,SZ);sYa.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.v(WZ,SZ);WZ.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.v(XZ,SZ);XZ.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.v(YZ,SZ);YZ.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.v(ZZ,SZ);ZZ.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.v($Z,SZ);$Z.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.v(a_,SZ);a_.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.v(b_,SZ);b_.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.v(c_,SZ);c_.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.v(tYa,SZ);tYa.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.v(d_,SZ);d_.prototype.getType=function(){return"metadata_type_content_cpn"};
g.v(e_,SZ);e_.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.v(f_,SZ);f_.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.v(uYa,SZ);uYa.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.v(vYa,SZ);vYa.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.v(wYa,SZ);wYa.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.v(xYa,SZ);xYa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.v(yYa,SZ);yYa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.v(zYa,SZ);zYa.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.v(g_,SZ);g_.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.v(h_,SZ);h_.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.v(AYa,SZ);AYa.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.v(BYa,SZ);BYa.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.v(i_,SZ);i_.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.v(j_,SZ);j_.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.v(k_,SZ);k_.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.v(CYa,SZ);CYa.prototype.getType=function(){return"metadata_type_cue_point"};
g.v(l_,SZ);l_.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.v(m_,SZ);m_.prototype.getType=function(){return"metadata_type_player_vars"};
g.v(DYa,SZ);DYa.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.v(n_,SZ);n_.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.v(o_,SZ);o_.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.v(p_,SZ);p_.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.v(q_,SZ);q_.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.v(r_,SZ);r_.prototype.getType=function(){return"metadata_type_dai"};
g.v(EYa,SZ);EYa.prototype.getType=function(){return"metadata_type_ad_intro"};
g.v(FYa,SZ);FYa.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.v(s_,SZ);s_.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.v(t_,SZ);t_.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.v(GYa,SZ);GYa.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.v(HYa,SZ);HYa.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.v(u_,SZ);u_.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.v(v_,SZ);v_.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.v(w_,SZ);w_.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.v(IYa,SZ);IYa.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.v(JYa,SZ);JYa.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.v(x_,SZ);x_.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.v(KYa,SZ);KYa.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.v(LYa,SZ);LYa.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.v(y_,SZ);y_.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.v(MYa,SZ);MYa.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};var hZa=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.v(OYa,g.E);g.k=OYa.prototype;g.k.qK=function(a,b){return this.j.qK(a,b)};
g.k.Pi=function(a,b){m0(this.Wb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.t(this.Id),d=c.next();!d.done;d=c.next())d.value.Pi(a,b)};
g.k.wg=function(a){if(B_(this.j,a)){tL(this.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.wg(a);for(var b=g.t(this.Id),c=b.next();!c.done;c=b.next())c.value.wg(a);RYa(this,a)}};
g.k.xg=function(a){if(B_(this.j,a)){tL(this.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.xg(a);for(var b=g.t(this.Id),c=b.next();!c.done;c=b.next())c.value.xg(a);B_(this.j,a)&&C_(this.j,a).D&&A_(this,a,!1)}};
g.k.PF=function(a){tL(this.Wb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);B_(this.j,a)&&(this.j.PF(a),A_(this,a,!1))};
g.k.Vc=function(a,b){if(B_(this.j,a)){D_(this.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.t(this.Id),d=c.next();!d.done;d=c.next())d.value.Vc(a,b)}};
g.k.pd=function(a,b,c){if(B_(this.j,a)){D_(this.Wb,eYa(c),a,b);this.j.pd(a,b);for(var d=g.t(this.Id),e=d.next();!e.done;e=d.next())e.value.pd(a,b,c);(c=L_(this.j,a))&&b.layoutId===c.layoutId&&dZa(this,a,!1)}};
g.k.Vg=function(a,b,c){kB(c,a,b,void 0,c.Gt);A_(this,a,!0)};
g.k.ra=function(){var a=gZa(this.j);a=g.t(a);for(var b=a.next();!b.done;b=a.next())A_(this,b.value,!1);g.E.prototype.ra.call(this)};
g.k.Gh=function(a,b){D_(this.Wb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);D_(this.Wb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.t(this.Id),d=c.next();!d.done;d=c.next())d=d.value,b&&d.Gh(a,b)};eZa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.v(E_,Za);g.v(fZa,g.E);g.k=fZa.prototype;g.k.qK=function(a,b){b=K_(this,a+"_"+b);a=[];b=g.t(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.oi=function(a){a=C_(this,a);"not_scheduled"!==a.j&&M_(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.vA=function(a){a=C_(this,a);a.C="fill_requested";a.J.vA()};
g.k.wg=function(a){a=C_(this,a);"enter_requested"!==a.j&&M_(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.PF=function(a){C_(this,a).C="fill_canceled"};
g.k.xg=function(a){a=C_(this,a);"exit_requested"!==a.j&&M_(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.pd=function(a,b){a=C_(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&M_(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.v(mZa,g.E);mZa.prototype.B=function(){return this.u};g.v(nZa,g.E);nZa.prototype.get=function(){this.isDisposed()&&kB("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.j());return this.instance};P_.prototype.executeCommand=function(a,b){IM(this.j(),a,b)};
P_.prototype.pg=function(a,b){aEa(this.j(),a,b)};g.v(l0,g.E);g.v(o0,g.E);o0.prototype.onCueRangeEnter=function(){};
o0.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.pc.get().removeCueRange(a),eB(this.Yb.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.Kb.get();d=nB(d.Ya.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,Sb:c.Sb?q0a(c.slotId,d,c.Sb):void 0,qc:r0a(c.slotId,d,c.qc),vc:r0a(c.slotId,d,c.vc)})]},c.slotId))};
o0.prototype.Ej=function(){for(var a=g.t(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.pc.get().removeCueRange(b);this.j.clear()};
o0.prototype.Hm=function(){};g.v(p0,g.E);g.k=p0.prototype;g.k.oi=function(){};
g.k.Ij=function(a){var b=this;g.Nw(g.Pw(),function(){var c=b.j.get(a);c&&kB("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.u(c)).map(function(d){return d.layoutType})})},0)};
g.k.wg=function(){};
g.k.Hj=function(){};
g.k.xg=function(){};
g.k.rk=function(){};
g.k.vk=function(){};
g.k.Fj=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.Gh=function(a,b){this.Ek.has(a)&&this.Ek.get(a)===b&&kB("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):kB("Trying to unscheduled a Layout that was not scheduled.",a,b)}else kB("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Vc=function(a,b){this.Ek.set(a,b)};
g.k.pd=function(a){this.Ek.delete(a)};
g.k.Pi=function(){};v0.prototype.clone=function(a){var b=this;return new v0(function(){return b.triggerId},a)};w0.prototype.clone=function(a){var b=this;return new w0(function(){return b.triggerId},a)};x0.prototype.clone=function(a){var b=this;return new x0(function(){return b.triggerId},a)};y0.prototype.clone=function(a){var b=this;return new y0(function(){return b.triggerId},a)};z0.prototype.clone=function(a){var b=this;return new z0(function(){return b.triggerId},a)};A0.prototype.clone=function(a){var b=this;return new A0(function(){return b.triggerId},a)};g.v(D0,g.E);D0.prototype.logEvent=function(a){m0(this,a)};
D0.prototype.u=function(){return!this.Fa.get().G.V().N("html5_disable_client_tmp_logs")};
D0.prototype.sN=function(){return this.Fa.get().sN()};g.v(E0,D0);E0.prototype.u=function(){var a=D0.prototype.u.call(this);if(i0(this.Fa.get(),"H5_enable_full_pacf_logging"))return a;var b=this.j.get().u();var c=this.Fa.get();c=g.IH(c.G.V())?c.j:!0;return a&&b&&c};F0.prototype.clear=function(){this.j.clear()};g.v(G0,g.E);g.k=G0.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.Ej=function(a,b,c,d,e,f,h){if(""===a)kB("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.G.V().N("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ha.get().Ej(a,b,c,d,e,f,h);this.Ta.get().Ej(a,b,c,d,e,f,h);var l;null==(l=this.rf)||l.get().Ej(a,b,c,d,e,f,h);this.u.Ej(a,b,c,d,e,f,h);l=g.t(this.listeners);for(var m=l.next();!m.done;m=l.next())m.value.Ej(a,b,c,d,e,f,h)}};
g.k.XL=function(){this.j&&this.Hm(this.j)};
g.k.Hm=function(a){this.j=void 0;for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.Hm(a)};g.v(H0,g.E);H0.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.j.has(a)?kB("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new A0a(a,b,c,d,f),this.j.set(a.id,{qe:a,listener:e,Vm:h}),this.G.Ge([a],h))};
H0.prototype.removeCueRange=function(a){var b=this.j.get(a);b?y0a(this,b):kB("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
H0.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
H0.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.v(A0a,g.yB);I0.prototype.Cl=function(a){this.G.Cl(a)};
I0.prototype.Oa=function(a){this.G.Oa.apply(this.G,[a].concat(g.u(g.ya.apply(1,arguments))))};J0.prototype.sN=function(){return this.G.V().experiments.eb("h5_enable_generic_error_logging_event")};g.k=L0.prototype;g.k.Zg=function(a,b){if(!this.j.has(a))return{};if("seek"===b)return b=this.G.V().N("html5_dai_enable_active_view_creating_completed_adblock"),lka(a,b),{};b=qCa(b);if(null===b||this.G.V().N("enable_server_stitched_dai")&&2!==this.G.getPresentingPlayerType(!0))return{};var c=this.G.Qc();c=c&&(this.G.V().N("enable_server_stitched_dai")||2===c.getPlayerType())&&YK(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ha.get().isFullscreen()};return Rn(b,a,c)};
g.k.FB=function(a){var b;null==(b=this.j.get(a.queryId))||b.FB()};
g.k.EB=function(a){var b;null==(b=this.j.get(a.queryId))||b.EB()};
g.k.GB=function(a){var b;null==(b=this.j.get(a.queryId))||b.GB()};
g.k.CB=function(a){var b;null==(b=this.j.get(a.queryId))||b.CB()};
g.k.DB=function(a){var b;null==(b=this.j.get(a.queryId))||b.DB()};g.v(N0,LK);N0.prototype.j=function(){return this.B()};
N0.prototype.u=function(){return this.C()};O0.prototype.sj=function(){var a=this.G.Qc();return a&&(a=a.sj(1))?a:null};
O0.prototype.Cj=function(a,b){"string"===typeof b?this.G.getVideoData(1).PM(a,b):this.G.getVideoData(1).xa(a,b)};g.v(R0,g.E);g.k=R0.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.Ej=function(){this.QI.clear();this.oL=null;this.Ud.get().clear()};
g.k.Hm=function(){};
g.k.Wf=function(a){var b=this.G.getVideoData(a);return b?P0a(this,b,a||this.G.getPresentingPlayerType(!0)):null};
g.k.q5=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Cj("ads_ssm_vdc_s",{pt:c,dvt:a});K0(this.Fa.get())&&"dataloaded"!==a||Q0a(this,b,c)};
g.k.N4=function(a,b){void 0!==a&&(this.oL=a,void 0===b?kB("Expected ad video start time on SS video changed"):this.QI.set(a,b));var c=this.G.getPresentingPlayerType(!0),d=this.G.getVideoData(c);this.G.getVideoData(1).xa("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:b});d?Q0a(this,d,c):kB("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.ra=function(){this.listeners.length=0;this.Wt=null;g.E.prototype.ra.call(this)};
g.k.Cj=function(a,b){this.G.getVideoData(1).xa(a,b)};g.v(S0,g.E);g.k=S0.prototype;g.k.Ej=function(){var a=this;this.Yt=xd(function(){a.G.isDisposed()||a.G.gg("ad",1)})};
g.k.Hm=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.RT=function(){};
g.k.playVideo=function(){this.G.playVideo()};
g.k.pauseVideo=function(){this.G.pauseVideo()};
g.k.resumeVideo=function(a){this.Sp(a)&&this.G.playVideo()};
g.k.Sp=function(a){return 2===this.G.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.Ta.get().oL;return 2!==a||b||null===c?this.G.getCurrentTime(a,b):S0a(this,c)};
g.k.getVolume=function(){return this.G.getVolume()};
g.k.isMuted=function(){return this.G.isMuted()};
g.k.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.G.getPlayerState(a)};
g.k.isFullscreen=function(){return this.G.isFullscreen()};
g.k.isAtLiveHead=function(){return this.G.isAtLiveHead()};
g.k.Ky=function(a){this.G.Ky(a)};
g.k.q4=function(){var a=this.G.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){var c=g.t(this.listeners);for(a=c.next();!a.done;a=c.next())a.value.Dj(b)}else if(1===a&&D0a(this.Fa.get()))for(c=g.t(this.YD),a=c.next();!a.done;a=c.next())a.value.RT(b)};
g.k.g4=function(a){for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.qk(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.t(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.Hh=function(){for(var a=this.G.cg(),b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.Hh(a)};
g.k.Bb=function(){for(var a=this.G.fb().uj(),b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.pk(a)};
g.k.xl=function(a){for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.xl(a)};g.v(W0a,g.E);V0.prototype.addListener=function(a){this.listeners.add(a)};
V0.prototype.removeListener=function(a){this.listeners.delete(a)};a1a.prototype.vA=function(){var a=this;Z0a(this.j,function(){var b=DZ(a.slot.Da,"metadata_type_ad_break_request_data");return a.zf.get().fetch({xW:b.getAdBreakUrl,mR:new g.yB(b.aV,b.ZU),fA:DZ(a.slot.Da,"metadata_type_cue_point")})},function(){b1a(a)},function(b){var c=b.Hn;
2<=c.length&&b.ssdaiAdsConfig&&kB("Unexpected ad placement renderers length",a.slot,null,{length:c.length});c.some(function(d){var e,f,h,l;return!!(null==(e=d.renderer)?0:null==(f=e.linearAdSequenceRenderer)?0:null==(h=f.linearAds)?0:h.length)||!(null==(l=d.renderer)||!l.instreamVideoAdRenderer)})||b1a(a)})};
a1a.prototype.fJ=function(){$0a(this.j)};c1a.prototype.vA=function(){var a=this;Z0a(this.j,function(){var b=DZ(a.slot.Da,"metadata_type_ad_break_request_data");return a.zf.get().fetch({xW:b.getAdBreakUrl,mR:new g.yB(b.aV,b.ZU)})})};
c1a.prototype.fJ=function(){$0a(this.j)};d1a.prototype.vA=function(){TYa(this.callback,this.slot,DZ(this.slot.Da,"metadata_type_fulfilled_layout"))};
d1a.prototype.fJ=function(){PYa(this.callback,this.slot,new KB("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")};f1a.prototype.Re=function(a,b){return e1a(b,{He:["metadata_type_fulfilled_layout"]})?new d1a(a,b):this.j(a,b)};g.v(X0,f1a);
X0.prototype.j=function(a,b){if(e1a(b,{He:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new a1a(a,b,this.zf,this.zb,this.Lb,this.Fa,this.hf);if(e1a(b,{He:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new c1a(a,b,this.zf,this.zb,this.Lb,this.Fa);throw new KB("Unsupported slot with type: "+b.slotType+" and client metadata: "+EZ(b.Da)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.v(Y0,f1a);Y0.prototype.j=function(a,b){throw new KB("Unsupported slot with type: "+b.slotType+" and client metadata: "+EZ(b.Da)+" in DefaultFulfillmentAdapterFactory.");};g.k=g1a.prototype;g.k.kd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Vg(this.slot,a,new E_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=DZ(a.Da,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Vc(this.slot,a),tra(this.j,this.slot,b)):kB("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.Kg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Vg(this.slot,a,new E_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.pd(this.slot,a,b)};$0.prototype.Re=function(a,b,c,d){if(Z0(d,{He:["metadata_type_ad_break_response_data"],Nf:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new g1a(a,c,d,this.j);throw new E_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+EZ(d.Da)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};a1.prototype.Zg=function(a,b){b=void 0===b?!1:b;var c=(this.B.get(a)||[]).concat();if(b=b&&XBa(a)){var d=this.B.get(b);d&&c.push.apply(c,g.u(d))}h1a(this,a,c);this.j.add(a);b&&this.j.add(b)};g.k=j1a.prototype;g.k.kd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Vg(this.slot,a,new E_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Vc(this.slot,a),d1(this.u,"impression"),A1a(this.j,a))};
g.k.Kg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Vg(this.slot,a,new E_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.pd(this.slot,a,b)};h1.prototype.Re=function(a,b,c,d){if(Z0(d,k1a()))return new j1a(a,c,d,this.Ra,this.j);throw new E_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+EZ(d.Da)+" in ForecastingLayoutRenderingAdapterFactory.");};g.v(i1,g.FB);g.k=i1.prototype;g.k.kd=function(){return this.u.slot};
g.k.Ib=function(){return this.u.layout};
g.k.init=function(){this.B.get().addListener(this)};
g.k.release=function(){this.B.get().removeListener(this);this.dispose()};
g.k.CK=function(){};
g.k.AK=function(){};
g.k.zK=function(){};
g.k.PE=function(){};
g.k.startRendering=function(a){var b=this;m1a(this.u,a,function(){return void b.KG()})};
g.k.KG=function(){this.B.get().KG(this.j)};
g.k.Kg=function(a,b){var c=this;m1a(this.u,a,function(){var d=c.B.get();b2a(d,c.j,3);c.j=[];c.callback.pd(c.slot,a,b)})};
g.k.ra=function(){this.B.get().removeListener(this);g.FB.prototype.ra.call(this)};
g.da.Object.defineProperties(i1.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.u.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.u.layout}}});g.v(n1a,nK);g.v(o1a,i1);g.k=o1a.prototype;g.k.rg=function(a,b){k1("action-companion",a,this.J.get().Ek,this.Ra.get(),this.C,this.D,this.kd(),this.Ib(),b)};
g.k.startRendering=function(a){j1(this.I,this.kd(),this.Ib(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new n1a(b,c,d,e,f)},this.j);
i1.prototype.startRendering.call(this,a)};
g.k.Vc=function(a,b){b.layoutId===this.layout.layoutId?d1(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ra.get().sj():kB("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.pd=function(){};
g.k.oi=function(){};
g.k.Ij=function(){};
g.k.Hj=function(){};
g.k.wg=function(){};
g.k.xg=function(){};
g.k.rk=function(){};
g.k.vk=function(){};
g.k.Fj=function(){};
g.k.Gh=function(){};
g.k.Pi=function(){};
g.k.ra=function(){this.Pe().Id.delete(this);i1.prototype.ra.call(this)};g.v(l1,i1);l1.prototype.init=function(){i1.prototype.init.call(this);var a=DZ(this.layout.Da,"metadata_type_ad_action_interstitial_renderer"),b=c1(this.C);this.j.push(new fL(a,b,this.layout.layoutId,{adsClientData:this.layout.Ic},!0,!0))};
l1.prototype.startRendering=function(a){i1.prototype.startRendering.call(this,a);this.callback.Vc(this.slot,a)};
l1.prototype.rg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=DZ(this.layout.Da,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&w1a(a,this.kd(),this.layout)}};
l1.prototype.ra=function(){i1.prototype.ra.call(this)};g.v(m1,i1);g.k=m1.prototype;g.k.init=function(){i1.prototype.init.call(this);var a=DZ(this.layout.Da,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Ic},c=!DZ(this.layout.Da,"metadata_type_player_bytes_callback").hF;this.j.push(new RN(a,this.layout.layoutId,DZ(this.layout.Da,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.zs=function(){this.C||this.Ha.get().resumeVideo(2)};
g.k.startRendering=function(a){i1.prototype.startRendering.call(this,a);this.callback.Vc(this.slot,a);this.D.Mw=this};
g.k.Kg=function(a,b){i1.prototype.Kg.call(this,a,b);d4a(this.D,this)};
g.k.rg=function(a){if(c0a(this.I.get(),this.J))switch(a){case "visit-advertiser":this.Ra.get().G.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.C||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":(this.C=this.Ha.get().Sp(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo();DZ(this.layout.Da,"metadata_type_player_bytes_callback").uG();
break;case "skip-button":if(a=DZ(this.layout.Da,"metadata_type_player_bytes_callback"),a.hF)a.OB(this.kd(),this.layout);else{var b;(a=null==(b=DZ(this.layout.Da,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&w1a(a,this.kd(),this.layout)}}};
g.k.ra=function(){i1.prototype.ra.call(this)};g.v(n1,i1);g.k=n1.prototype;g.k.startRendering=function(a){var b=this;m1a(this.u,a,function(){b.j.push(new mL(DZ(b.layout.Da,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.Ic));b.KG();b.callback.Vc(b.slot,a);g.V(M0(b.Ha.get(),1),512)&&b.callback.Vg(b.kd(),b.Ib(),new E_("player is stuck during adNotify"))})};
g.k.Dj=function(){};
g.k.qk=function(a){if(a.state.isError()){var b;this.callback.Vg(this.kd(),this.Ib(),new E_("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.getData())?void 0:b.errorCode}))}};
g.k.onFullscreenToggled=function(){};
g.k.Hh=function(){};
g.k.pk=function(){};
g.k.onVolumeChange=function(){};
g.k.xl=function(){};
g.k.rg=function(){};t1a.prototype.Re=function(a,b,c,d){if(a=o1(a,c,d,this.lc,this.Ha,this.Ra,this.u,this.j,this.Fa))return a;throw new E_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+EZ(d.Da)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.v(p1,g.E);g.k=p1.prototype;g.k.init=function(){var a=DZ(this.Ib().Da,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Sr()};
g.k.release=function(){var a=DZ(this.Ib().Da,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Ks()};
g.k.startRendering=function(a){a.layoutId!==this.Ib().layoutId?this.callback.Vg(this.kd(),a,new E_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Ib().layoutId+("and LayoutType: "+this.Ib().layoutType))):(this.Ha.get().addListener(this),this.Pe().Id.add(this),this.Fa.get().G.V().experiments.eb("html5_load_empty_player_in_media_break_sub_lra")||U0a(this.Ha.get()),this.pe.get().AN(),this.Ss(a))};
g.k.Kg=function(a,b){this.MK=!0;this.Us(a,b);this.Ha.get().G.kq();this.Je.get().G.cueVideoByPlayerVars({},2);a=M0(this.Ha.get(),1);g.OL(a)&&!g.V(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.MK&&this.pT()};
g.k.pd=function(a,b){b.layoutId===this.Ib().layoutId&&(this.MK=!1,this.Pe().Id.delete(this))};
g.k.qk=function(a,b){if(a.state.isError()){var c,d;this.Vg(null==(c=a.state.getData())?void 0:c.errorCode,new E_("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode}),b)}else this.pU(a)};
g.k.oi=function(){};
g.k.Ij=function(){};
g.k.Hj=function(){};
g.k.wg=function(){};
g.k.xg=function(){};
g.k.rk=function(){};
g.k.vk=function(){};
g.k.Fj=function(){};
g.k.Gh=function(){};
g.k.Pi=function(){};
g.k.xl=function(){};g.v(u1a,p1);g.k=u1a.prototype;g.k.kd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.Sr=function(){if(1>this.u.length)throw new KB("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});var a=DZ(this.Ib().Da,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.t(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),UYa(this.B,this.slot,b.Ib()),VYa(this.B,this.slot,b.Ib())};
g.k.Ks=function(){var a=DZ(this.Ib().Da,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.t(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,uL(this.B,this.slot,b.Ib()),b.release()};
g.k.bv=function(a,b){var c=this.u[this.j];b.layoutId!==q1(c,a,b)?kB("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.bv()};
g.k.xv=function(a,b){var c=this.u[this.j];b.layoutId!==q1(c,a,b)?kB("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.xv()};
g.k.OB=function(a,b){var c=this.u[this.j];b.layoutId!==q1(c,a,b)?kB("onSkipRequested for a PlayerBytes layout that is not currently active",c.kd(),c.Ib(),{requestingSlot:a,requestingLayout:b}):z1a(this,c.kd(),c.Ib(),"skipped")};
g.k.Ss=function(){-1===this.j&&y1a(this,this.j+1)};
g.k.Z4=function(a,b){H_(this.B,a,b)};
g.k.Us=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.Kg(a.Ib(),b),this.D=function(){c.callback.pd(c.slot,c.layout,b)}):this.callback.pd(this.slot,this.layout,b)};
g.k.Vc=function(a,b){var c=this.u[this.j];c&&c.Vc(a,b)};
g.k.pd=function(a,b,c){p1.prototype.pd.call(this,a,b,c);var d=this.u[this.j];d&&d.pd(a,b,c)};
g.k.pT=function(){var a=this.u[this.j];a&&a.OE()};
g.k.Dj=function(a){var b=this.u[this.j];b&&b.Dj(a)};
g.k.pU=function(a){var b=this.u[this.j];b&&b.qk(a)};
g.k.Vg=function(a,b){-1===this.j&&(this.callback.Vc(this.slot,this.layout),this.j++);var c=this.u[this.j];c?c.AB(a,b):kB("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Ib().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)};
g.k.Hh=function(a){var b=this.u[this.j];b&&b.Hh(a)};
g.k.pk=function(a){var b=this.u[this.j];b&&b.pk(a)};
g.k.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()};
g.k.b5=function(a,b,c){z1a(this,a,b,c)};
g.k.a5=function(a,b){z1a(this,a,b,"error")};g.v(t1,g.E);g.k=t1.prototype;g.k.kd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){var a=DZ(this.layout.Da,"metadata_type_video_length_seconds"),b=DZ(this.layout.Da,"metadata_type_active_view_traffic_type");tK(this.layout.Zb)&&F0a(this.Mb.get(),this.layout.layoutId,b,a,this);J0a(this.Ra.get(),this);this.Sr()};
g.k.release=function(){tK(this.layout.Zb)&&G0a(this.Mb.get(),this.layout.layoutId);K0a(this.Ra.get(),this);this.Ks()};
g.k.bv=function(){};
g.k.xv=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Vg(this.slot,a,new E_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.j="rendering_start_requested",TBa(this.Jf.get(),1)?(this.I(-1),this.Ss(a),this.Sw(!1)):this.AB("ui_unstable",new E_("Failed to render media layout because ad ui unstable.")))};
g.k.Vc=function(a,b){if(b.layoutId===this.layout.layoutId){this.j="rendering";this.D=this.Ha.get().isMuted()||0===this.Ha.get().getVolume();u1(this,"impression");u1(this,"start");if(this.Ha.get().isMuted()){w1(this,"mute");var c;a=(null==(c=s1(this))?void 0:c.muteCommands)||[];this.Ob.get().pg(a,this.layout.layoutId)}if(this.Ha.get().isFullscreen()){this.Zg("fullscreen");var d;c=(null==(d=s1(this))?void 0:d.fullscreenCommands)||[];this.Ob.get().pg(c,this.layout.layoutId)}this.pe.get().gN();this.I(1);
this.dU();var e;d=(null==(e=s1(this))?void 0:e.impressionCommands)||[];this.Ob.get().pg(d,this.layout.layoutId)}};
g.k.AB=function(a,b){this.Aa={dH:3,NC:"load_timeout"===a?402:400,errorMessage:b.message};u1(this,"error");var c;a=(null==(c=s1(this))?void 0:c.errorCommands)||[];this.Ob.get().pg(a,this.layout.layoutId);this.callback.Vg(this.slot,this.layout,b)};
g.k.OE=function(){this.T()};
g.k.lS=function(){if("rendering"===this.j){w1(this,"pause");var a,b=(null==(a=s1(this))?void 0:a.pauseCommands)||[];this.Ob.get().pg(b,this.layout.layoutId);this.I(2)}};
g.k.mS=function(){if("rendering"===this.j){w1(this,"resume");var a,b=(null==(a=s1(this))?void 0:a.resumeCommands)||[];this.Ob.get().pg(b,this.layout.layoutId)}};
g.k.Kg=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.Vg(this.slot,a,new E_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else if("rendering_stop_requested"!==this.j){this.j="rendering_stop_requested";this.Z=b;switch(b){case "normal":u1(this,"complete");break;case "skipped":u1(this,"skip");break;case "abandoned":f1(this.u,"impression")&&u1(this,"abandon")}this.Us(a,b)}};
g.k.pd=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.j="not_rendering",this.Z=void 0,(a="normal"!==c||this.position+1===this.ya)&&this.Sw(a),this.eU(c),this.I(0),c){case "abandoned":if(f1(this.u,"impression")){var d,e=(null==(d=s1(this))?void 0:d.abandonCommands)||[];this.Ob.get().pg(e,this.layout.layoutId)}break;case "normal":d=(null==(e=s1(this))?void 0:e.completeCommands)||[];this.Ob.get().pg(d,this.layout.layoutId);break;case "skipped":var f;d=(null==(f=s1(this))?void 0:f.skipCommands)||
[];this.Ob.get().pg(d,this.layout.layoutId)}};
g.k.yx=function(){return this.layout.layoutId};
g.k.ZJ=function(){return this.Aa};
g.k.qk=function(a){if("not_rendering"!==this.j){this.oa||(a=new g.aL(a.state,new g.IL),this.oa=!0);var b=2===this.Ha.get().getPresentingPlayerType();"rendering_start_requested"===this.j?b&&B1a(a)&&this.ea():b?g.cL(a,2)?this.OO():(B1a(a)?this.I(1):g.cL(a,4)&&!g.cL(a,2)&&this.lS(),0>bL(a,4)&&!(0>bL(a,2))&&this.mS()):this.OE()}};
g.k.FB=function(){if("rendering"===this.j){d1(this.u,"active_view_measurable");var a,b=(null==(a=s1(this))?void 0:a.activeViewMeasurableCommands)||[];this.Ob.get().pg(b,this.layout.layoutId)}};
g.k.EB=function(){if("rendering"===this.j){d1(this.u,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=s1(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Ob.get().pg(b,this.layout.layoutId)}};
g.k.GB=function(){if("rendering"===this.j){d1(this.u,"active_view_viewable");var a,b=(null==(a=s1(this))?void 0:a.activeViewViewableCommands)||[];this.Ob.get().pg(b,this.layout.layoutId)}};
g.k.CB=function(){if("rendering"===this.j){d1(this.u,"audio_audible");var a,b=(null==(a=s1(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Ob.get().pg(b,this.layout.layoutId)}};
g.k.DB=function(){if("rendering"===this.j){d1(this.u,"audio_measurable");var a,b=(null==(a=s1(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Ob.get().pg(b,this.layout.layoutId)}};
g.k.Sw=function(a){this.pe.get().Sw(DZ(this.layout.Da,"metadata_type_ad_placement_config").kind,a,this.position,this.ya,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.j)if(a){this.Zg("fullscreen");var b,c=(null==(b=s1(this))?void 0:b.fullscreenCommands)||[];this.Ob.get().pg(c,this.layout.layoutId)}else this.Zg("end_fullscreen"),b=(null==(c=s1(this))?void 0:c.endFullscreenCommands)||[],this.Ob.get().pg(b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.j)if(this.Ha.get().isMuted()){w1(this,"mute");var a,b=(null==(a=s1(this))?void 0:a.muteCommands)||[];this.Ob.get().pg(b,this.layout.layoutId)}else w1(this,"unmute"),a=(null==(b=s1(this))?void 0:b.unmuteCommands)||[],this.Ob.get().pg(a,this.layout.layoutId)};
g.k.Hh=function(){};
g.k.pk=function(){};
g.k.xl=function(){};
g.k.Zg=function(a){this.u.Zg(a,!this.D)};g.v(F1a,t1);g.k=F1a.prototype;g.k.Sr=function(){};
g.k.Ks=function(){var a=this.Ra.get();a.MG===this&&(a.MG=null);this.timer.stop()};
g.k.Ss=function(){U0a(this.Ha.get());this.Ra.get().MG=this;wC("pbp")||wC("pbs")||xC("pbp");wC("pbp","watch")||wC("pbs","watch")||xC("pbp",void 0,"watch");this.ea()};
g.k.dU=function(){I1a(this)};
g.k.OO=function(){};
g.k.bv=function(){this.timer.stop();t1.prototype.lS.call(this)};
g.k.xv=function(){I1a(this);t1.prototype.mS.call(this)};
g.k.xx=function(){return DZ(this.Ib().Da,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Us=function(){this.timer.stop()};
g.k.uc=function(){var a=Date.now(),b=a-this.B;this.B=a;this.Xm+=b;this.Xm>=this.xx()?(this.Xm=this.xx(),v1(this,this.Xm/1E3,!0),H1a(this,this.Xm),this.T()):(v1(this,this.Xm/1E3),H1a(this,this.Xm))};
g.k.eU=function(){};
g.k.Dj=function(){};g.v(x1,t1);g.k=x1.prototype;g.k.Sr=function(){DZ(this.Ib().Da,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=DZ(this.Ib().Da,"metadata_type_shrunken_player_bytes_config")};
g.k.Ks=function(){DZ(this.Ib().Da,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.pc.get().removeCueRange(this.B);this.B=void 0;this.J.dispose();this.C&&this.C.dispose()};
g.k.Ss=function(a){var b=P_a(this.Fa.get()),c=Q_a(this.Fa.get());if(b&&c){c=DZ(a.Da,"metadata_type_preload_player_vars");var d=g.wG(this.Fa.get().G.V().experiments,"html5_preload_wait_time_secs");c&&this.C&&this.C.start(1E3*d)}c=DZ(a.Da,"metadata_type_ad_video_id");d=DZ(a.Da,"metadata_type_legacy_info_card_vast_extension");c&&d&&this.Of.get().G.V().ya.add(c,{cA:d});(c=DZ(a.Da,"metadata_type_sodar_extension_data"))&&X0a(this.Ve.get(),c);V0a(this.Ha.get(),!1);b?(c=this.Je.get(),a=DZ(a.Da,"metadata_type_player_vars"),
c.G.loadVideoByPlayerVars(a,!1,2)):(c=this.Je.get(),a=DZ(a.Da,"metadata_type_player_vars"),c.G.cueVideoByPlayerVars(a,2));this.J.start();b||this.Je.get().G.playVideo(2)};
g.k.dU=function(){this.J.stop();this.B="adcompletioncuerange:"+this.Ib().layoutId;this.pc.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=this.Ta.get().Wf(2))?void 0:a.clientPlaybackNonce)||"")||kB("Media layout confirmed started, but ad CPN not set.");this.ud.get().Oa("onAdStart",this.adCpn)};
g.k.OO=function(){this.T()};
g.k.xx=function(){var a;return null==(a=this.Ta.get().Wf(2))?void 0:a.playbackDurationMs};
g.k.uG=function(){this.u.Zg("clickthrough")};
g.k.Us=function(){this.J.stop();this.C&&this.C.stop();V0a(this.Ha.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ha.get().Ky(!1)};
g.k.onCueRangeEnter=function(a){a!==this.B?kB("Received CueRangeEnter signal for unknown layout.",this.kd(),this.Ib(),{cueRangeId:a}):(this.pc.get().removeCueRange(this.B),this.B=void 0,a=DZ(this.Ib().Da,"metadata_type_video_length_seconds"),v1(this,a,!0),u1(this,"complete"))};
g.k.eU=function(a){"abandoned"!==a&&this.ud.get().Oa("onAdComplete");this.ud.get().Oa("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Dj=function(a){"rendering"===this.j&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ha.get().Ky(!0),v1(this,a))};g.v(K1a,p1);g.k=K1a.prototype;g.k.kd=function(){return this.j.kd()};
g.k.Ib=function(){return this.j.Ib()};
g.k.Sr=function(){this.j.init()};
g.k.Ks=function(){this.j.release()};
g.k.bv=function(){this.j.bv()};
g.k.xv=function(){this.j.xv()};
g.k.OB=function(a,b){kB("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.kd(),this.Ib(),{requestingSlot:a,requestingLayout:b})};
g.k.Ss=function(a){this.j.startRendering(a)};
g.k.Us=function(a,b){this.j.Kg(a,b)};
g.k.Vc=function(a,b){this.j.Vc(a,b)};
g.k.pd=function(a,b,c){p1.prototype.pd.call(this,a,b,c);this.j.pd(a,b,c);b.layoutId===this.Ib().layoutId&&this.pe.get().My()};
g.k.pT=function(){this.j.OE()};
g.k.Dj=function(a){this.j.Dj(a)};
g.k.pU=function(a){this.j.qk(a)};
g.k.Vg=function(a,b){this.j.AB(a,b)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.Hh=function(a){this.j.Hh(a)};
g.k.pk=function(a){this.j.pk(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};y1.prototype.Re=function(a,b,c,d){if(a=M1a(a,b,c,d,this.Pe,this.j,this.Ra,this.Mb,this.Ve,this.Je,this.Ta,this.Ha,this.pc,this.pe,this.ud,this.Jf,this.Ob,this.Of,this.Fa))return a;throw new E_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+EZ(d.Da)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(z1,g.E);g.k=z1.prototype;g.k.fU=function(a){if(!this.j){var b;null==(b=this.hf)||b.get().Fs(a.identifier);return!1}N1a(this,this.j,a);return!0};
g.k.VT=function(){};
g.k.Ej=function(a){this.j&&this.j.contentCpn!==a&&(kB("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.Hm=function(a){this.j&&this.j.contentCpn!==a&&kB("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null};
g.k.ra=function(){g.E.prototype.ra.call(this);this.j=null};g.v(A1,g.E);g.k=A1.prototype;g.k.Vc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&kL(b,this.B)){var d=this.Ta.get().Wf(2),e=this.j(b,d||void 0,this.Fa.get().G.V().experiments.eb("enable_post_ad_perception_survey_in_tvhtml5"));e?eB(this.Yb.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[D_a(c.Kb.get(),e.contentCpn,e.No,function(h){return c.u(h.slotId,"core",e,HZ(c.Lb.get(),h))},e.ZE)];
e.instreamAdPlayerUnderlayRenderer&&E_a(c.Fa.get())&&f.push(O1a(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):kB("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.oi=function(){};
g.k.Ij=function(){};
g.k.wg=function(){};
g.k.Hj=function(){};
g.k.xg=function(){};
g.k.rk=function(){};
g.k.vk=function(){};
g.k.Fj=function(){};
g.k.Gh=function(){};
g.k.Pi=function(){};
g.k.pd=function(){};var g2=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=S1a.prototype;g.k.init=function(){};
g.k.kd=function(){return this.slot};
g.k.iE=function(){this.callback.wg(this.slot)};
g.k.kE=function(){this.callback.xg(this.slot)};
g.k.release=function(){};C1.prototype.Re=function(a,b){return new S1a(a,b)};g.k=T1a.prototype;g.k.init=function(){};
g.k.kd=function(){return this.slot};
g.k.iE=function(){T0(this.Ha.get(),"ad-showing");this.callback.wg(this.slot)};
g.k.kE=function(){this.callback.xg(this.slot);U0(this.Ha.get(),"ad-showing")};
g.k.release=function(){};g.k=U1a.prototype;g.k.init=function(){};
g.k.kd=function(){return this.slot};
g.k.iE=function(){T0(this.Ha.get(),"ad-showing");T0(this.Ha.get(),"ad-interrupting");this.u=this.Ha.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.wg(this.slot)};
g.k.kE=function(){U0(this.Ha.get(),"ad-showing");U0(this.Ha.get(),"ad-interrupting");var a=this.u?Infinity:this.Ha.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ha.get().G.seekTo(a,void 0,void 0,1);this.callback.xg(this.slot)};
g.k.release=function(){};g.k=V1a.prototype;g.k.init=function(){};
g.k.kd=function(){return this.slot};
g.k.iE=function(){T0(this.Ha.get(),"ad-showing");T0(this.Ha.get(),"ad-interrupting");this.callback.wg(this.slot)};
g.k.kE=function(){this.Ha.get().Yt();U0(this.Ha.get(),"ad-showing");U0(this.Ha.get(),"ad-interrupting");this.callback.xg(this.slot)};
g.k.release=function(){this.Ha.get().Yt()};D1.prototype.Re=function(a,b){if(gB(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new T1a(a,b,this.Ha);if(b.Sb instanceof n0&&gB(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new U1a(a,b,this.Ha);if(gB(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new V1a(a,b,this.Ha);throw new KB("Unsupported slot with type "+b.slotType+" and client metadata: "+(EZ(b.Da)+" in PlayerBytesSlotAdapterFactory."));};g.v(F1,g.E);F1.prototype.j=function(a){for(var b=[],c=g.t(this.Vb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof Z_&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.jg===a&&b.push(d)}b.length?I_(this.DH(),b):kB("Mute requested but no registered triggers can be activated.")};g.v(G1,F1);g.k=G1.prototype;g.k.rg=function(a,b){if(b)if("survey-submit"===a)W1a(this,b);else if("skip-button"===a){a=[];for(var c=g.t(this.Vb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof Z_&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.jg===b&&a.push(d)}a.length&&I_(this.DH(),a)}else"survey-single-select-answer-button"===a&&W1a(this,b)};
g.k.CK=function(a){F1.prototype.j.call(this,a)};
g.k.Dl=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new KB("Tried to register duplicate trigger for slot.");if(!(b instanceof $_||b instanceof Z_))throw new KB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Vb.set(b.triggerId,new E1(a,b,c,d))};
g.k.Il=function(a){this.Vb.delete(a.triggerId)};
g.k.AK=function(){};
g.k.zK=function(){};
g.k.PE=function(){};g.v(H1,g.E);g.k=H1.prototype;
g.k.Dl=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new KB("Tried to register duplicate trigger for slot.");if(!(b instanceof v0||b instanceof w0||b instanceof x0||b instanceof y0||b instanceof z0||b instanceof A0||b instanceof f0a||b instanceof t0||b instanceof Y_||b instanceof b0||b instanceof e0a||b instanceof s0))throw new KB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new E1(a,b,c,d);this.Vb.set(b.triggerId,a);b instanceof
z0&&this.D.has(b.Rh)&&I_(this.j(),[a]);b instanceof v0&&this.B.has(b.Rh)&&I_(this.j(),[a]);b instanceof t0&&this.u.has(b.jg)&&I_(this.j(),[a])};
g.k.Il=function(a){this.Vb.delete(a.triggerId)};
g.k.oi=function(a){this.D.add(a.slotId);for(var b=[],c=g.t(this.Vb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof z0&&a.slotId===d.trigger.Rh&&b.push(d);0<b.length&&I_(this.j(),b)};
g.k.Ij=function(a){this.D.delete(a.slotId);for(var b=[],c=g.t(this.Vb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof A0&&e.Rh===a.slotId&&b.push(d)}0<b.length&&I_(this.j(),b)};
g.k.Hj=function(a){for(var b=[],c=g.t(this.Vb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof f0a&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&I_(this.j(),b)};
g.k.wg=function(a){this.B.add(a.slotId);for(var b=[],c=g.t(this.Vb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof v0&&a.slotId===d.trigger.Rh&&b.push(d);0<b.length&&I_(this.j(),b)};
g.k.xg=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.t(this.Vb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof w0)a.slotId===d.trigger.Rh&&b.push(d);else if(d.trigger instanceof s0){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.jg)&&b.push(d)}0<b.length&&I_(this.j(),b)};
g.k.rk=function(a){for(var b=[],c=g.t(this.Vb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof x0&&a.slotId===d.trigger.Rh&&b.push(d);0<b.length&&I_(this.j(),b)};
g.k.vk=function(a){for(var b=[],c=g.t(this.Vb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof y0&&a.slotId===d.trigger.Rh&&b.push(d);0<b.length&&I_(this.j(),b)};
g.k.Fj=function(a,b){this.I.add(b.layoutId)};
g.k.Gh=function(a,b){this.I.delete(b.layoutId)};
g.k.Vc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.t(this.Vb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof t0)b.layoutId===e.trigger.jg&&c.push(e);else if(e.trigger instanceof e0a){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof s0&&(f=e.trigger,b.layoutId===f.jg&&this.C.has(f.slotId)&&c.push(e));0<c.length&&I_(this.j(),c)};
g.k.pd=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.t(this.Vb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof Y_&&b.layoutId===e.trigger.jg&&a.push(e),e.trigger instanceof b0){var f=e.trigger;b.layoutId===f.jg&&f.j.includes(c)&&a.push(e)}0<a.length&&I_(this.j(),a)};
g.k.Pi=function(){};
g.k.Ej=function(){this.C.clear()};
g.k.Hm=function(){};g.v(I1,g.E);I1.prototype.Dl=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new KB("Tried to register duplicate trigger for slot.");if(!(b instanceof hB||b instanceof S_))throw new KB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Vb.set(b.triggerId,new E1(a,b,c,d))};
I1.prototype.Il=function(a){this.Vb.delete(a.triggerId)};
I1.prototype.Ej=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.t(this.Vb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof hB&&l.trigger.zq===a&&f.push(l);e.call(d,b,g.u(f));b.push.apply(b,g.u(X1a(this.Vb,a,!1,c)));b.length&&I_(this.j(),b)};
I1.prototype.Hm=function(a){var b=[];b.push.apply(b,g.u(X1a(this.Vb,a,!0,!1)));b.length&&I_(this.j(),b)};g.v(J1,g.E);g.k=J1.prototype;
g.k.Dl=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new KB("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(Y1a(b))this.Vb.set(b.triggerId,{bundle:new E1(a,b,c,d),Vt:e});else if(b instanceof n0||b instanceof u0)Z1a(this,a,b,c,d,e,b.j.start,b.j.end,b.zq,b.visible);else if(b instanceof p0a)Z1a(this,a,b,c,d,e,b.j.start,b.j.end,b.zq,!1);else if(b instanceof n0a)Z1a(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.zq,b.visible);else throw new KB("Incorrect TriggerType: Tried to register trigger of type "+
b.triggerType+" in CueRangeTriggerAdapter");};
g.k.Il=function(a){var b=this.Vb.get(a.triggerId);b&&this.pc.get().removeCueRange(b.Vt);this.Vb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a,b){b=void 0===b?!1:b;if(a=$1a(this,a))if(a=this.Vb.get(a))if(g.V(M0(this.Ha.get()),32))this.j.add(a.Vt);else{var c=null==a?void 0:a.bundle.trigger;b=b?c instanceof i0a:c instanceof h0a;(c instanceof n0||c instanceof u0||c instanceof n0a||c instanceof q0||b)&&I_(this.u(),[a.bundle])}};
g.k.onCueRangeExit=function(a){if(a=$1a(this,a))if(a=this.Vb.get(a))this.j.delete(a.Vt),a.bundle.trigger instanceof p0a&&I_(this.u(),[a.bundle])};
g.k.qk=function(a){if(0>bL(a,16)){a=g.t(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.oi=function(){};
g.k.Ij=function(){};
g.k.Hj=function(){};
g.k.wg=function(){};
g.k.xg=function(){};
g.k.rk=function(){};
g.k.vk=function(){};
g.k.Fj=function(){};
g.k.Gh=function(){};
g.k.Vc=function(a,b){a=g.t(this.Vb.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.bundle.trigger;c=c.Vt;if(Y1a(d)&&d.layoutId===b.layoutId){var e=1E3*this.Ha.get().getCurrentTimeSec(1,!1);d instanceof q0?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.pc.get().addCueRange(c,d,e,!1,this)}}};
g.k.pd=function(a,b,c){var d=this;a={};for(var e=g.t(this.Vb.values()),f=e.next();!f.done;a={oz:a.oz,Vo:a.Vo},f=e.next())f=f.value,a.Vo=f.bundle.trigger,a.oz=f.Vt,Y1a(a.Vo)&&a.Vo.layoutId===b.layoutId?z0a(this.pc.get(),a.oz):a.Vo instanceof u0&&a.Vo.layoutId===b.layoutId&&"user_cancelled"===c&&(this.pc.get().removeCueRange(a.oz),g.Nw(g.Pw(),function(h){return function(){d.pc.get().addCueRange(h.oz,h.Vo.j.start,h.Vo.j.end,h.Vo.visible,d)}}(a)))};
g.k.Pi=function(){};
g.k.Dj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Hh=function(){};
g.k.pk=function(){};
g.k.onVolumeChange=function(){};
g.k.xl=function(){};g.v(K1,g.E);g.k=K1.prototype;g.k.Dl=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new KB("Tried to register duplicate trigger for slot.");if(!(b instanceof a0))throw new KB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Vb.set(b.triggerId,new E1(a,b,c,d))};
g.k.Il=function(a){this.Vb.delete(a.triggerId)};
g.k.nx=function(){};
g.k.er=function(){};
g.k.Vc=function(){};
g.k.pd=function(){};
g.k.oi=function(){};
g.k.Ij=function(){};
g.k.Hj=function(){};
g.k.wg=function(){};
g.k.xg=function(){};
g.k.rk=function(){};
g.k.vk=function(){};
g.k.Fj=function(){};
g.k.Gh=function(){};
g.k.Pi=function(){};g.v(L1,g.E);g.k=L1.prototype;g.k.Pi=function(a,b){for(var c=[],d=g.t(this.Vb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&I_(this.j(),c)};
g.k.Dl=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new KB("Tried to register duplicate trigger for slot.");if(!(b instanceof g0a))throw new KB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Vb.set(b.triggerId,new E1(a,b,c,d))};
g.k.Il=function(a){this.Vb.delete(a.triggerId)};
g.k.oi=function(){};
g.k.Ij=function(){};
g.k.Hj=function(){};
g.k.wg=function(){};
g.k.xg=function(){};
g.k.rk=function(){};
g.k.vk=function(){};
g.k.Fj=function(){};
g.k.Gh=function(){};
g.k.Vc=function(){};
g.k.pd=function(){};g.v(M1,g.E);M1.prototype.ra=function(){this.zo.get().removeListener(this);g.E.prototype.ra.call(this)};g.v(N1,g.E);N1.prototype.ra=function(){this.df.get().removeListener(this);g.E.prototype.ra.call(this)};O1.prototype.fetch=function(a){var b=a.mR;return this.Bt.fetch(a.xW,{fA:void 0===a.fA?void 0:a.fA,qe:b}).then(function(c){return a2a(c,b)})};g.v(P1,g.E);g.k=P1.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.KG=function(a){b2a(this,a,1)};
g.k.onAdUxClicked=function(a,b){Q1(this,function(c){c.rg(a,b)})};
g.k.JL=function(a){Q1(this,function(b){b.AK(a)})};
g.k.IL=function(a){Q1(this,function(b){b.zK(a)})};
g.k.L2=function(a){Q1(this,function(b){b.PE(a)})};g.v(R1,g.E);g.k=R1.prototype;
g.k.Ej=function(){this.C=new xL(this,C0a(this.Fa.get()));this.u=new yL;var a=this.G.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.G.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.PL,this),b.subscribe("cuepointupdated",this.PL,this),this.j=b)}this.VG.length=0;var d;b=(null==(d=a.j)?void 0:Lua(d,0))||[];d=g.t(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Bs(b)&&kB("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.Hm=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.gM=function(a){this.VG.push(a);for(var b=!1,c=g.t(this.listeners),d=c.next();!d.done;d=c.next())b=d.value.fU(a)||b;this.B=b};
g.k.XT=function(a){g.Eb(this.u.j,1E3*a);for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.VT(a)};
g.k.Bs=function(a){d2a(this,a);this.C.reduce(a);a=this.B;this.B=!1;return a};
g.k.PL=function(a){var b=this.G.getVideoData(1).isDaiEnabled();if(b||!g.UH(this.G.V())){a=g.t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,d2a(this,c),b?this.C.reduce(c):0!==this.G.getCurrentTime(1)&&"start"===c.event&&this.gM(c)}};
g.k.ra=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.PL,this),this.j=null);this.listeners.length=0;this.VG.length=0;g.E.prototype.ra.call(this)};U1.prototype.addListener=function(a){this.listeners.push(a)};
U1.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=f2a.prototype;g.k.kd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().YD.push(this)};
g.k.release=function(){this.Ha.get().removeListener(this);R0a(this.Ha.get(),this)};
g.k.startRendering=function(a){this.callback.Vc(this.slot,a)};
g.k.Kg=function(a,b){this.callback.pd(this.slot,a,b)};
g.k.xl=function(a){switch(a.id){case "part2viewed":d1(this.j,"start");break;case "videoplaytime25":d1(this.j,"first_quartile");E0a(this.Fa.get())&&g1(this.j,"first_quartile")&&(g1(this.j,"progress")||kB("empty progresss_ping when the first quartile ping exists in discovery_layout_rendering_adapter.ts",this.slot,this.layout),this.u||kB("progress_pings did not get fired when the first quartile ping is fired",this.slot,this.layout));break;case "videoplaytime50":d1(this.j,"midpoint");break;case "videoplaytime75":d1(this.j,
"third_quartile");break;case "videoplaytime100":d1(this.j,"complete");break;case "engagedview":E0a(this.Fa.get())&&g1(this.j,"progress")&&(this.u=!0);if(!D0a(this.Fa.get())){d1(this.j,"progress");break}i1a(this.j)||d1(this.j,"progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:kB("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.pk=function(){};
g.k.Hh=function(){};
g.k.onFullscreenToggled=function(){};
g.k.qk=function(){};
g.k.Dj=function(){};
g.k.RT=function(a){D0a(this.Fa.get())&&i1a(this.j)&&e1(this.j,1E3*a,!1)};g2a.prototype.Re=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.t(b1()),f=e.next();!f.done;f=e.next())b.push(f.value);if(Z0(d,{He:b,Nf:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new f2a(a,c,d,this.Ha,this.Ra,this.Fa);throw new E_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+EZ(d.Da)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.k=V1.prototype;g.k.kd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){this.rf.get().addListener(this);this.Ha.get().addListener(this);this.Sr();var a=DZ(this.layout.Da,"metadata_type_layout_enter_ms"),b=DZ(this.layout.Da,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Ta.get().Wt)?void 0:c.clientPlaybackNonce;c=this.layout.Ic.adClientDataEntry;Q0(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.rf.get();e=zL(e.u,a,b);null!==e&&(Q0(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.hf.get().Qt(e,b))};
g.k.release=function(){this.Ks();this.rf.get().removeListener(this);this.Ha.get().removeListener(this)};
g.k.startRendering=function(){this.Ss();this.callback.Vc(this.slot,this.layout)};
g.k.Kg=function(a,b){this.Us(b);null!==this.driftRecoveryMs&&(i2a(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(h2a(this)-DZ(this.layout.Da,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ha.get().G.Cr()).toString()}),this.driftRecoveryMs=null);this.callback.pd(this.slot,this.layout,b)};
g.k.fU=function(){return!1};
g.k.VT=function(a){var b=DZ(this.layout.Da,"metadata_type_layout_enter_ms"),c=DZ(this.layout.Da,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;Q0(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Ta.get().Wt)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Ic.adClientDataEntry}});this.hf.get().Qt(a,c)}};
g.k.Dj=function(a){this.HT(a);a=this.Ha.get().getCurrentTimeSec(2,!0);if(c0a(this.D.get(),this.layout.layoutId)){var b=DZ(this.layout.Da,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=h2a(this),e=this.Ha.get().G.Cr(),f=Math.min(a+e,d/1E3);f<=a?i2a(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(i2a(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-
b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Ha.get().G.seekTo(f,void 0,void 0,1))}}};
g.k.Hh=function(){};
g.k.pk=function(){};
g.k.onVolumeChange=function(){};
g.k.xl=function(){};g.v(j2a,V1);g.k=j2a.prototype;g.k.Sr=function(){this.Ta.get().addListener(this);this.C.forEach(function(a){a.init()});
null!=this.B&&this.Ra.get().Cj("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.Ks=function(){this.Ta.get().removeListener(this);this.u=null;this.C.forEach(function(a){a.release()})};
g.k.Ss=function(){if(this.u)kB("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.Ta.get().Wt)?void 0:a.layoutId;l2a(this,b)}};
g.k.Us=function(a){var b,c,d,e;null==(d=this.u)||null==(e=d.Wk)||e.Kg(null==(b=this.u)?void 0:null==(c=b.Wk)?void 0:c.Ib(),a);this.u=null};
g.k.lU=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Ra.get().Cj("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.u+";slrslid."+(null==(c=this.u)?void 0:null==(d=c.Wk)?void 0:d.Ib().layoutId))}var e;if(this.u&&(null==(e=this.u.Wk)?void 0:e.Ib().layoutId)!==a){var f,h;null==(h=this.u.Wk)||h.Kg(null==(f=this.u.Wk)?void 0:f.Ib(),"normal");l2a(this,a)}};
g.k.HT=function(){};
g.k.qk=function(){};
g.k.onFullscreenToggled=function(){};g.k=z2a.prototype;g.k.kd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){var a=this;DZ(this.layout.Da,"metadata_type_player_bytes_callback_ref").current=this;this.Kc=m2a(this.slot,this.layout,DZ(this.layout.Da,"metadata_type_player_vars"),DZ(this.layout.Da,"metadata_type_layout_enter_ms"),DZ(this.layout.Da,"metadata_type_layout_exit_ms"),1E3*DZ(this.layout.Da,"metadata_type_video_length_seconds"),this.hf.get(),this.Ud.get(),function(){var d=Object,e=d.assign,f=C2a(a.layout);var h=DZ(a.slot.Da,"metadata_type_fulfilled_layout");h=Object.assign({},C2a(h),
{adPlacementConfig:DZ(h.Da,"metadata_type_ad_placement_config"),subLayouts:DZ(h.Da,"metadata_type_sub_layouts").map(C2a)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:fB(a.layout.Da,"metadata_type_survey_overlay"),surveyOverlay:DZ(a.layout.Da,"metadata_type_survey_overlay")})},this.Ra.get());
this.Ha.get().addListener(this);var b=DZ(this.layout.Da,"metadata_type_video_length_seconds"),c=DZ(this.layout.Da,"metadata_type_active_view_traffic_type");tK(this.layout.Zb)&&F0a(this.Mb.get(),this.layout.layoutId,c,b,this);UYa(this.callback,this.slot,this.layout);VYa(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ha.get().removeListener(this);tK(this.layout.Zb)&&G0a(this.Mb.get(),this.layout.layoutId);this.Fa.get().G.V().N("html5_unschedule_dai_media_sublayout_killswitch")||uL(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;fB(this.layout.Da,"metadata_type_survey_overlay")&&this.Ra.get().Cj("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.u)kB("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:fB(this.layout.Da,"metadata_type_survey_overlay"),surveyOverlay:DZ(this.layout.Da,"metadata_type_survey_overlay")});else{this.u={Dm:null,qC:!1};this.Fa.get().G.V().experiments.eb("html5_disable_sodar_for_tvhtml5")||n2a(this.slot,this.layout,
this.Ve.get());d1(this.j,"start");if(K0(this.Fa.get())){var b=M0(this.Ha.get()),c=DZ(this.layout.Da,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);p2a(this.j,this.u.Dm,b,c,d,function(){return void B2a(a,"teois")})}H_(this.callback,this.slot,this.layout);
fB(this.layout.Da,"metadata_type_survey_overlay")&&this.Ra.get().Cj("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.Kg=function(a,b){var c=this;if(this.u){if(K0(this.Fa.get()))if(null===this.Kc)kB("Unexpected media sub layout exited without a timeline playback ID");else{a=DZ(this.layout.Da,"metadata_type_video_length_seconds");var d=S0a(this.Ha.get(),this.Kc);this.j.D=d;q2a(this.j,null,this.u.Dm,a,d,function(e){return void A2a(c,e,"fue")})}this.u=null;
oL(this.callback,this.slot,this.layout,b)}else kB("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.AB=function(){};
g.k.OE=function(){};
g.k.Dj=function(a){var b=this;if(this.u){if(f1(this.j,"impression")){var c=M0(this.Ha.get()),d=DZ(this.layout.Da,"metadata_type_video_length_seconds");r2a(this.j,c,a,this.u.Dm,d,function(e){return void A2a(b,e,"tpaqe")})}this.u.Dm=a}};
g.k.qk=function(a){var b=this;if(this.u){K0(this.Fa.get())||this.u.qC||(this.u.qC=!0,a=new g.aL(a.state,new g.IL));var c=DZ(this.layout.Da,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);o2a(this.j,this.u.Dm,a,c,d,!K0(this.Fa.get()),function(){return void B2a(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){s2a(this.j,a)};
g.k.Hh=function(){};
g.k.pk=function(){};
g.k.OB=function(a,b){var c;this.Ra.get().Cj("ads_dsr","ti."+f1(this.j,"impression")+";ts."+f1(this.j,"skip")+";hp."+g1(this.j,"skip")+";cpn."+DZ(this.layout.Da,"metadata_type_content_cpn")+";acpn."+(null==(c=this.Ta.get().Wf(2))?void 0:c.clientPlaybackNonce)+";sl."+(DZ(b.Da,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));f1(this.j,"impression")&&d1(this.j,"skip");this.hf.get().Ko()||kB("Unexpected failure to skip a server stitched ad",this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Vc=function(){};
g.k.pd=function(){};
g.k.bv=function(){};
g.k.xv=function(){};
g.k.uG=function(){t2a(this.j)};
g.k.FB=function(){u2a(this.j)};
g.k.EB=function(){v2a(this.j)};
g.k.GB=function(){w2a(this.j)};
g.k.CB=function(){x2a(this.j)};
g.k.DB=function(){y2a(this.j)};
g.k.xl=function(){};g.v(D2a,V1);g.k=D2a.prototype;
g.k.Sr=function(){var a=this;DZ(this.layout.Da,"metadata_type_player_bytes_callback_ref").current=this;var b=DZ(this.layout.Da,"metadata_type_layout_enter_ms"),c=DZ(this.layout.Da,"metadata_type_layout_exit_ms");this.Kc=m2a(this.slot,this.layout,DZ(this.layout.Da,"metadata_type_player_vars"),b,c,1E3*DZ(this.layout.Da,"metadata_type_video_length_seconds"),this.hf.get(),this.Ud.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:DZ(a.layout.Da,"metadata_type_ad_placement_config")}},
this.Ra.get());
var d=DZ(this.layout.Da,"metadata_type_video_length_seconds"),e=DZ(this.layout.Da,"metadata_type_active_view_traffic_type");tK(this.layout.Zb)&&F0a(this.Mb.get(),this.layout.layoutId,e,d,this)};
g.k.Ks=function(){tK(this.layout.Zb)&&G0a(this.Mb.get(),this.layout.layoutId)};
g.k.Ss=function(){var a=this;if(this.u)kB("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u={Dm:null,qC:!1},n2a(this.slot,this.layout,this.Ve.get()),d1(this.j,"start"),K0(this.Fa.get())){var b=M0(this.Ha.get()),c=DZ(this.layout.Da,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);p2a(this.j,this.u.Dm,b,c,d,function(){return void E2a(a,"teois")})}};
g.k.Us=function(){var a=this;if(this.u){if(K0(this.Fa.get()))if(null===this.Kc)kB("Unexpected single media layout exited without a timeline playback ID");else{var b=DZ(this.layout.Da,"metadata_type_video_length_seconds"),c=S0a(this.Ha.get(),this.Kc);this.j.D=c;q2a(this.j,null,this.u.Dm,b,c,function(d){return void F2a(a,d,"fue")})}this.u=null}else kB("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.HT=function(a){var b=this;if(this.u){if(f1(this.j,"impression")){var c=M0(this.Ha.get()),d=DZ(this.layout.Da,"metadata_type_video_length_seconds");r2a(this.j,c,a,this.u.Dm,d,function(e){return void F2a(b,e,"tpaqe")})}this.u.Dm=a}};
g.k.qk=function(a){var b=this;if(this.u){K0(this.Fa.get())||this.u.qC||(this.u.qC=!0,a=new g.aL(a.state,new g.IL));var c=DZ(this.layout.Da,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);o2a(this.j,this.u.Dm,a,c,d,!K0(this.Fa.get()),function(){return void E2a(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){s2a(this.j,a)};
g.k.uG=function(){t2a(this.j)};
g.k.FB=function(){u2a(this.j)};
g.k.EB=function(){v2a(this.j)};
g.k.GB=function(){w2a(this.j)};
g.k.CB=function(){x2a(this.j)};
g.k.DB=function(){y2a(this.j)};G2a.prototype.Re=function(a,b,c,d){if(fB(c.Da,"metadata_type_dai")){var e=DZ(d.Da,"metadata_type_ad_placement_config");Z0(d,{He:"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(" "),Nf:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new a1(d.Zb,this.Ra,e,d.layoutId,null),e=new D2a(a,c,d,this.Ta,this.hf,this.Ud,this.rf,this.Ha,e,this.Ra,this.Ve,this.j,this.Mb,this.Fa)):
e=null;if(e)return e;a:{var f=DZ(d.Da,"metadata_type_sub_layouts"),h=DZ(d.Da,"metadata_type_ad_placement_config");if(Z0(d,{He:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Nf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=DZ(l.Da,"metadata_type_media_sub_layout_index");if(!Z0(l,{He:"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(" "),
Nf:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new a1(l.Zb,this.Ra,h,l.layoutId,m);e.push(new z2a(b,c,l,this.hf,m,this.Ha,this.Ud,this.Mb,this.Ve,this.Fa,this.Ra,this.Ta))}b=new a1(d.Zb,this.Ra,h,d.layoutId);a=new j2a(a,c,d,this.Ta,this.hf,this.rf,this.Ha,b,this.Ra,this.j,e)}else a=null}if(a)return a}else if(a=M1a(a,b,c,d,this.Pe,this.u,this.Ra,this.Mb,this.Ve,this.Je,this.Ta,this.Ha,this.pc,this.pe,this.ud,this.Jf,this.Ob,this.Of,this.Fa))return a;throw new E_("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+EZ(d.Da)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.v(W1,g.E);W1.prototype.Dl=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new KB("Tried to register duplicate trigger for slot.");if(!(b instanceof g0))throw new KB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Vb.set(b.triggerId,new E1(a,b,c,d))};
W1.prototype.Il=function(a){this.Vb.delete(a.triggerId)};g.v(Y1,g.E);
Y1.prototype.Dl=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new KB("Tried to re-register the trigger.");a=new E1(a,b,c,d);if(a.trigger instanceof o0a)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof WZa)this.B.set(a.trigger.triggerId,a);else throw new KB("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&I_(this.C(),[a])};
Y1.prototype.Il=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
Y1.prototype.lU=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.u(H2a(this.B,this.j)));null!=a&&b.push.apply(b,g.u(H2a(this.u,a)));this.j=a;b.length&&I_(this.C(),b)}};g.k=I2a.prototype;g.k.Ow=function(a,b,c,d,e,f,h){return this.G.Ow(a,b,c,d,e,f,h)};
g.k.Qt=function(a,b){this.G.Qt(a,b)};
g.k.Wy=function(a,b,c){this.G.Wy(a,b,c)};
g.k.Fs=function(a){this.G.Fs(a)};
g.k.fB=function(a,b,c,d,e,f,h){this.G.fB(a,b,c,d,e,f,h)};
g.k.Ko=function(){return this.G.Ko()};g.v(J2a,nK);g.v(K2a,i1);g.k=K2a.prototype;g.k.rg=function(a,b){k1("image-companion",a,this.J.get().Ek,this.Ra.get(),this.C,this.D,this.kd(),this.Ib(),b)};
g.k.startRendering=function(a){j1(this.I,this.kd(),this.Ib(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new J2a(b,c,d,e,f)},this.j);
i1.prototype.startRendering.call(this,a)};
g.k.Vc=function(a,b){b.layoutId===this.layout.layoutId?d1(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ra.get().sj():kB("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.pd=function(){};
g.k.oi=function(){};
g.k.Ij=function(){};
g.k.Hj=function(){};
g.k.wg=function(){};
g.k.xg=function(){};
g.k.rk=function(){};
g.k.vk=function(){};
g.k.Fj=function(){};
g.k.Gh=function(){};
g.k.Pi=function(){};
g.k.ra=function(){this.Pe().Id.delete(this);i1.prototype.ra.call(this)};g.v(M2a,nK);g.v(N2a,i1);g.k=N2a.prototype;g.k.rg=function(a,b){k1("shopping-companion",a,this.J.get().Ek,this.Ra.get(),this.C,this.D,this.kd(),this.Ib(),b)};
g.k.startRendering=function(a){j1(this.I,this.kd(),this.Ib(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new M2a(b,c,d,e,f)},this.j);
i1.prototype.startRendering.call(this,a)};
g.k.Vc=function(a,b){b.layoutId===this.layout.layoutId?d1(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ra.get().sj():kB("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.pd=function(){};
g.k.oi=function(){};
g.k.Ij=function(){};
g.k.Hj=function(){};
g.k.wg=function(){};
g.k.xg=function(){};
g.k.rk=function(){};
g.k.vk=function(){};
g.k.Fj=function(){};
g.k.Gh=function(){};
g.k.Pi=function(){};
g.k.ra=function(){this.Pe().Id.delete(this);i1.prototype.ra.call(this)};g.v(P2a,i1);g.k=P2a.prototype;g.k.startRendering=function(a){j1(this.C,this.kd(),this.Ib(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new n1a(b,c,d,e,f)},this.j);
i1.prototype.startRendering.call(this,a)};
g.k.Vc=function(){};
g.k.pd=function(){};
g.k.oi=function(){};
g.k.Ij=function(){};
g.k.Hj=function(){};
g.k.wg=function(){};
g.k.xg=function(){};
g.k.rk=function(){};
g.k.vk=function(){};
g.k.Fj=function(){};
g.k.Gh=function(){};
g.k.Pi=function(){};
g.k.ra=function(){this.Pe().Id.delete(this);i1.prototype.ra.call(this)};
g.k.rg=function(){};g.v(R2a,nK);g.v(S2a,i1);g.k=S2a.prototype;g.k.rg=function(a,b){k1("ads-engagement-panel",a,this.J.get().Ek,this.Ra.get(),this.C,this.D,this.kd(),this.Ib(),b)};
g.k.startRendering=function(a){j1(this.I,this.kd(),this.Ib(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new R2a(b,c,d,e,f)},this.j);
i1.prototype.startRendering.call(this,a)};
g.k.Vc=function(a,b){b.layoutId===this.layout.layoutId?d1(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ra.get().sj():kB("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.pd=function(){};
g.k.oi=function(){};
g.k.Ij=function(){};
g.k.Hj=function(){};
g.k.wg=function(){};
g.k.xg=function(){};
g.k.rk=function(){};
g.k.vk=function(){};
g.k.Fj=function(){};
g.k.Gh=function(){};
g.k.Pi=function(){};
g.k.ra=function(){this.Pe().Id.delete(this);i1.prototype.ra.call(this)};U2a.prototype.Re=function(a,b,c,d){if(Z0(d,T2a()))return new S2a(a,c,d,this.lc,this.Ra,this.Pe,this.Mb,this.j);if(Z0(d,p1a()))return new o1a(a,c,d,this.lc,this.Ra,this.Pe,this.Mb,this.j);if(Z0(d,L2a()))return new K2a(a,c,d,this.lc,this.Ra,this.Pe,this.Mb,this.j);if(Z0(d,O2a()))return new N2a(a,c,d,this.lc,this.Ra,this.Pe,this.Mb,this.j);if(Z0(d,Q2a()))return new P2a(a,c,d,this.lc,this.Ra,this.Pe,this.Mb,this.j);throw new E_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+EZ(d.Da)+
" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.v(V2a,nK);g.v(Z1,i1);Z1.prototype.init=function(){i1.prototype.init.call(this);var a=DZ(this.layout.Da,"metadata_type_player_underlay_renderer");this.j.push(new V2a(g.P(a,M5a),this.layout.layoutId,{adsClientData:this.layout.Ic}))};
Z1.prototype.rg=function(){};
Z1.prototype.startRendering=function(a){i1.prototype.startRendering.call(this,a);this.callback.Vc(this.slot,a)};
Z1.prototype.ra=function(){i1.prototype.ra.call(this)};W2a.prototype.Re=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.t(b1()),f=e.next();!f.done;f=e.next())b.push(f.value);if(Z0(d,{He:b,Nf:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new Z1(a,c,d,this.lc);throw new E_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+EZ(d.Da)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.v(X2a,nK);g.v($1,i1);$1.prototype.startRendering=function(a){var b=c1(this.C),c={adsClientData:this.layout.Ic};this.j.push(new X2a(DZ(this.layout.Da,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Ib().layoutId,c));i1.prototype.startRendering.call(this,a);this.callback.Vc(this.slot,a)};
$1.prototype.rg=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=DZ(this.layout.Da,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.OB(this.slot,this.layout):kB("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
$1.prototype.ra=function(){i1.prototype.ra.call(this)};var Y2a=new g.ke(320,63);g.v(a3a,nK);g.v(c2,i1);g.k=c2.prototype;g.k.Dj=function(){};
g.k.qk=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Hh=function(a){a&&X1(this.C,this.layout)};
g.k.pk=function(a){var b=b2(this.layout);if(this.J=Z2a(a,T0a(this.Ha.get())))b.onErrorCommand&&this.Ob.get().executeCommand(b.onErrorCommand,this.layout.layoutId),X1(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.yx=function(){return this.Ib().layoutId};
g.k.ZJ=function(){return this.J};
g.k.rg=function(a){this.D.rg(a);"in_video_overlay_close_button"===a&&X1(this.C,this.layout)};
g.k.PE=function(a){"invideo-overlay"===a&&X1(this.C,this.layout)};
g.k.zs=function(){this.D.zs()};
g.k.startRendering=function(a){i1.prototype.startRendering.call(this,a);this.callback.Vc(this.slot,a);this.I.Mw=this};
g.k.Kg=function(a,b){i1.prototype.Kg.call(this,a,b);d4a(this.I,this)};
g.k.init=function(){i1.prototype.init.call(this);J0a(this.Ra.get(),this);this.Ha.get().addListener(this);this.j.push(new a3a(b2(this.layout),c1(this.T),this.layout.layoutId,{adsClientData:this.layout.Ic}))};
g.k.release=function(){i1.prototype.release.call(this);this.Ha.get().removeListener(this);K0a(this.Ra.get(),this)};
g.k.xl=function(){};g.v(d2,i1);g.k=d2.prototype;g.k.init=function(){i1.prototype.init.call(this);J0a(this.Ra.get(),this);this.Ha.get().addListener(this);this.j.push(new a3a(b2(this.layout),c1(this.Z),this.layout.layoutId,{adsClientData:this.layout.Ic}))};
g.k.zs=function(){this.D.zs()};
g.k.startRendering=function(a){i1.prototype.startRendering.call(this,a);this.callback.Vc(this.slot,a);this.I.Mw=this};
g.k.Kg=function(a,b){i1.prototype.Kg.call(this,a,b);d4a(this.I,this)};
g.k.rg=function(a){this.D.rg(a);"in_video_overlay_close_button"===a&&X1(this.C,this.layout)};
g.k.AK=function(a){if("invideo-overlay"===a){a=g3a(this.T,this.layout);a=g.t(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.PE=function(a){"invideo-overlay"===a&&X1(this.C,this.layout)};
g.k.zK=function(a){if("invideo-overlay"===a){a=g3a(this.T,this.layout);a=g.t(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Dj=function(){};
g.k.qk=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Hh=function(a){a&&X1(this.C,this.layout)};
g.k.pk=function(a){var b=b2(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=T0a(this.Ha.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.ob(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.ke(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.ke(0,0)}if(this.J=Z2a(a,d,c))b.onErrorCommand&&this.Ob.get().executeCommand(b.onErrorCommand,this.layout.layoutId),X1(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.yx=function(){return this.Ib().layoutId};
g.k.ZJ=function(){return this.J};
g.k.release=function(){i1.prototype.release.call(this);this.Ha.get().removeListener(this);K0a(this.Ra.get(),this)};
g.k.xl=function(){};e2.prototype.rg=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ha.get().Sp(1))||this.Ha.get().pauseVideo())};
e2.prototype.zs=function(){this.j||this.Ha.get().resumeVideo(1)};g.v(d3a,nK);g.v(e3a,i1);g.k=e3a.prototype;g.k.init=function(){i1.prototype.init.call(this);this.Ha.get().addListener(this)};
g.k.startRendering=function(a){var b=DZ(this.layout.Da,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new d3a(b,this.layout.layoutId,{adsClientData:this.layout.Ic}));i1.prototype.startRendering.call(this,a);this.callback.Vc(this.slot,a)};
g.k.Vc=function(){};
g.k.rg=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=DZ(this.layout.Da,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.bv(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.xv(this.slot,this.layout):kB("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.pk=function(a){450>a.width&&X1(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Dj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Hh=function(){};
g.k.qk=function(){};
g.k.xl=function(){};
g.k.ra=function(){i1.prototype.ra.call(this)};
g.k.release=function(){i1.prototype.release.call(this);this.Ha.get().removeListener(this)};f3a.prototype.Re=function(a,b,c,d){if(b=o1(a,c,d,this.lc,this.Ha,this.Ra,this.C,this.j,this.Fa))return b;if(Z0(d,c3a()))return new d2(c,d,this.Ra,this.Mb,this.lc,a,this.u,this.B,this.Ha,this.Ob,this.Fa,this.j,new e2(this.Ha));if(Z0(d,b3a()))return new c2(c,d,this.Ra,this.Mb,this.lc,a,this.u,this.Ha,this.Ob,this.Fa,this.j,new e2(this.Ha));if(Z0(d,{He:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Nf:["LAYOUT_TYPE_SURVEY"]}))return new e3a(c,d,a,this.lc,this.u,this.Ha,this.Fa);if(Z0(d,
{He:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Nf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new $1(c,d,a,this.lc,this.Ra);if(Z0(d,s1a()))return new n1(c,d,a,this.lc,this.Ha,this.Fa);throw new E_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+EZ(d.Da)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(f2,g.E);g.k=f2.prototype;g.k.Dl=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new KB("Tried to register duplicate trigger for slot.");if(!(b instanceof j_a))throw new KB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Vb.set(b.triggerId,new E1(a,b,c,d));a=this.j.has(b.jg)?this.j.get(b.jg):new Set;a.add(b);this.j.set(b.jg,a)};
g.k.Il=function(a){this.Vb.delete(a.triggerId);if(!(a instanceof j_a))throw new KB("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.j.get(a.jg))b.delete(a),0===b.size&&this.j.delete(a.jg)};
g.k.oi=function(){};
g.k.Ij=function(){};
g.k.Hj=function(){};
g.k.wg=function(){};
g.k.xg=function(){};
g.k.rk=function(){};
g.k.vk=function(){};
g.k.Fj=function(){};
g.k.Gh=function(){};
g.k.Pi=function(){};
g.k.Vc=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.t(b);for(var d=b.next();!d.done;a={rz:a.rz},d=b.next())a.rz=d.value,d=new g.Zn(function(e){return function(){var f=c.Vb.get(e.rz.triggerId);I_(c.B(),[f])}}(a),a.rz.durationMs),d.start(),this.u.set(a.rz.triggerId,d)}};
g.k.pd=function(){};g.v(h3a,g.E);i3a.prototype.Re=function(a,b,c,d){if(b=o1(a,c,d,this.lc,this.Ha,this.Ra,this.C,this.j,this.Fa))return b;if(Z0(d,c3a()))return new d2(c,d,this.Ra,this.Mb,this.lc,a,this.u,this.B,this.Ha,this.Ob,this.Fa,this.j,new e2(this.Ha));if(Z0(d,b3a()))return new c2(c,d,this.Ra,this.Mb,this.lc,a,this.u,this.Ha,this.Ob,this.Fa,this.j,new e2(this.Ha));throw new E_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+EZ(d.Da)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v(j3a,g.E);g.v(k3a,g.E);g.v(l3a,g.E);g.v(h2,m1);h2.prototype.startRendering=function(a){m1.prototype.startRendering.call(this,a);DZ(this.layout.Da,"metadata_ad_video_is_listed")&&(a=DZ(this.layout.Da,"metadata_type_ad_info_ad_metadata"),this.Wl.get().G.Oa("onAdMetadataAvailable",a))};n3a.prototype.Re=function(a,b,c,d){if(Z0(d,m3a()))return new h2(a,c,d,this.lc,this.Ha,this.Ra,this.u,this.Wl,this.j);throw new E_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+EZ(d.Da)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(o3a,g.E);p3a.prototype.Re=function(a,b,c,d){if(Z0(d,m3a()))return new h2(a,c,d,this.lc,this.Ha,this.Ra,this.u,this.Wl,this.j);if(a=o1(a,c,d,this.lc,this.Ha,this.Ra,this.u,this.j,this.Fa))return a;throw new E_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+EZ(d.Da)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(q3a,g.E);g.v(s3a,g.E);s3a.prototype.B=function(){return this.u};g.v(t3a,uN);
t3a.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:this.j.Oa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Oa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Oa("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b=this.j.getVideoData(1),this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Oa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Oa("updateEngagementPanelAction",b.addAction);this.j.Oa("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.Oa("changeEngagementPanelVisibility",b.hideAction),this.j.Oa("updateEngagementPanelAction",b.removeAction)}};g.v(u3a,CN);g.k=u3a.prototype;g.k.init=function(a,b,c){CN.prototype.init.call(this,a,b,c);g.Al(this.C,"stroke-dasharray","0 "+this.B);this.api.V().N("endcap_modernization_dark")&&(this.C.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.D.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){EN(this);CN.prototype.hide.call(this)};
g.k.show=function(){DN(this);CN.prototype.show.call(this)};
g.k.hv=function(){this.hide()};
g.k.Is=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.Al(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.v(v3a,UM);g.k=v3a.prototype;
g.k.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&g.P(b.actionButton,g.zJ))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.rA(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=e&&
0<e.length&&g.Lb(g.qe(e[0].url))&&(e[0].url=d.profilePicture,g.Lb(g.qe(d.profilePicture))&&AOa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.Lb(g.qe(e[0].url))&&(e[0].url=d.Xf());e=b.headline;null!=e&&g.Lb(g.qe(e.text))&&(e.text=d.author)}(this.api.V().N("web_rounded_thumbnails")||this.api.V().N("endcap_modernization_dark"))&&this.ea.classList.add("ytp-ad-action-interstitial-image-container-circular");this.api.V().N("endcap_modernization_dark")&&
(this.Pa.classList.add("ytp-ad-action-interstitial-background-container-blur"),this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.I.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.D.element.classList.add("ytp-ad-action-interstitial-description-light"));this.T.init(mK("ad-image"),b.image,c);this.I.init(mK("ad-text"),b.headline,c);this.D.init(mK("ad-text"),b.description,c);this.Ba.init(mK("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button"];
(this.api.V().N("web_modern_buttons")||this.api.V().N("mweb_wil_modern_buttons")||this.api.V().N("endcap_modernization_dark"))&&d.push("ytp-ad-action-interstitial-action-button-rounded");this.api.V().N("endcap_modernization_dark")&&d.push("ytp-ad-action-interstitial-action-button-dark");this.actionButton=new kN(this.api,this.ib,this.layoutId,this.j,this.jb,d);g.H(this,this.actionButton);this.actionButton.Ca(this.Xa);this.actionButton.init(mK("button"),g.P(b.actionButton,g.zJ),c);this.navigationEndpoint=
b.navigationEndpoint;this.api.V().isMobile||(this.C.S(this.ea,"click",this.OJ,this),this.C.S(this.Ma,"click",this.OJ,this),this.C.S(this.Ka,"click",this.OJ,this));this.u=this.uN?new SN(this.api,a):new TN(a);g.H(this,this.u);b.skipButton?(a=g.P(b.skipButton,S5a))&&this.u&&(this.skipButton=new MN(this.api,this.ib,this.layoutId,this.j,this.jb,this.u,this.IG),g.H(this,this.skipButton),this.skipButton.Ca(this.element),this.skipButton.init(mK("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=g.P(b.nonskippableOverlayRenderer,
X_))&&this.u&&(this.B=new HN(this.api,this.ib,this.layoutId,this.j,this.jb,this.u,!1),g.H(this,this.B),this.B.Ca(this.element),this.B.init(mK("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.P(b,T5a)&&this.u&&(c=new u3a(this.api,this.ib,this.layoutId,this.j,this.jb,this.u),g.H(this,c),c.Ca(this.element),c.init(mK("timed-pie-countdown"),g.P(b,T5a),this.macros)));this.show();this.element.focus()}else g.rA(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.rA(Error("AdActionInterstitialRenderer has no button."));
else g.rA(Error("AdActionInterstitialRenderer has no background AdImage."));else g.rA(Error("AdActionInterstitialRenderer has no description AdText."));else g.rA(Error("AdActionInterstitialRenderer has no headline AdText."));else g.rA(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.gA(this.C);this.hide()};
g.k.show=function(){w3a(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();UM.prototype.show.call(this)};
g.k.hide=function(){w3a(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();UM.prototype.hide.call(this)};
g.k.OJ=function(){this.navigationEndpoint&&(this.layoutId?this.jb.executeCommand(this.navigationEndpoint,this.layoutId):g.rA(Error("Missing layoutId for ad action interstitial.")))};var B3a={iconType:"CLOSE"},k2=new g.ke(320,63);g.v(A3a,UM);g.k=A3a.prototype;
g.k.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);this.D=b;this.T=g.ub(this.D.onClickCommands||[]);this.Ma=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.P(a,O5a)?(this.I=g.Ee("ytp-ad-overlay-ad-info-button-container",this.C.element),C3a(this,b),a=E3a(this,g.P(a,O5a))):g.P(a,P5a)?(this.I=g.Ee("ytp-ad-overlay-ad-info-button-container",this.B.element),C3a(this,b),a=F3a(this,g.P(a,P5a))):g.P(a,Q5a)?(this.I=
g.Ee("ytp-ad-overlay-ad-info-button-container",this.u.element),C3a(this,b),a=G3a(this,g.P(a,Q5a))):(g.rA(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),H3a(this,!0))};
g.k.clear=function(){H3a(this,!1);this.Ka.reset();this.ea=0;this.C.hide();this.Sa(this.C.element,!1);this.B.hide();this.Sa(this.B.element,!1);this.u.hide();this.Sa(this.u.element,!1);this.hide();this.dispose()};
g.k.e5=function(){this.Xa&&(this.layoutId?this.jb.executeCommand(this.Xa,this.layoutId):g.rA(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.k.Bo=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.t(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.rA(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.E2=function(){this.Pa||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.fM=function(){this.Pa||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.fM("invideo-overlay")};
g.k.F2=function(a){a.target===this.I&&g.Ee("ytp-ad-button",this.gb.element).click()};g.v(I3a,CN);g.k=I3a.prototype;g.k.init=function(a,b,c){CN.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.u.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(mK("ad-text"),d,c);this.messageText.Ca(this.B.element);this.D.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){J3a(this,!1);CN.prototype.hide.call(this);this.B.hide();this.messageText.hide();EN(this)};
g.k.show=function(){J3a(this,!0);CN.prototype.show.call(this);DN(this);this.B.show();this.messageText.show()};
g.k.hv=function(){this.hide()};
g.k.Is=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.T&&a>=this.C?(this.D.hide(),this.T=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.ea&&(BN(this.messageText,{TIME_REMAINING:String(a)}),this.ea=a)))}};g.v(K3a,UM);g.k=K3a.prototype;
g.k.init=function(a,b,c){UM.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.P(b.actionButton,g.zJ)?(this.C.init(mK("ad-image"),b.image,c),this.B.init(mK("ad-text"),b.headline,c),this.D.init(mK("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.V().N("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new kN(this.api,this.ib,this.layoutId,this.j,this.jb,a),b.backgroundColor&&
g.Al(this.element,"background-color",g.eO(b.backgroundColor)),g.H(this,this.actionButton),this.actionButton.Ca(this.I),this.actionButton.init(mK("button"),g.P(b.actionButton,g.zJ),c),b=g.wG(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().N("place_shrunken_video_on_left_of_player")?(c=this.u,g.jo(c,"ytp-ad-underlay-left-container"),g.ho(c,"ytp-ad-underlay-right-container"),g.Al(this.u,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.u,g.jo(c,"ytp-ad-underlay-right-container"),
g.ho(c,"ytp-ad-underlay-left-container")),g.Al(this.u,"width",Math.round(100*(1-b-.04))+"%"),this.api.iF()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.PO.bind(this)),this.api.addEventListener("resize",this.qS.bind(this))):g.rA(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.rA(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.rA(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.rA(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){L3a(!0);this.actionButton&&this.actionButton.show();UM.prototype.show.call(this)};
g.k.hide=function(){L3a(!1);this.actionButton&&this.actionButton.hide();UM.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.PO.bind(this));this.api.removeEventListener("resize",this.qS.bind(this));this.hide()};
g.k.onClick=function(a){UM.prototype.onClick.call(this,a);this.actionButton&&g.We(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.PO=function(a){"transitioning"===a?(this.u.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.u.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.u.classList.remove("ytp-ad-underlay-clickable"))};
g.k.qS=function(a){1200<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):875<a.width?(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.Al(this.B.element,"font-size",a.width/40+"px")};g.v(l2,UM);
l2.prototype.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.P(b.answer,g.zJ)?(a=new kN(this.api,this.ib,this.layoutId,this.j,this.jb,["ytp-ad-survey-answer-button"],this.B?"multi-step-survey-answer-button":"survey-single-select-answer-button"),a.Ca(this.answer),a.init(mK("ytp-ad-survey-answer-button"),g.P(b.answer,g.zJ),c),a.show()):b.answer&&g.P(b.answer,Q2)&&(this.u=new sN(this.api,this.ib,this.layoutId,
this.j,this.jb,["ytp-ad-survey-answer-toggle-button"]),this.u.Ca(this.answer),g.H(this,this.u),this.u.init(mK("survey-answer-button"),g.P(b.answer,Q2),c));this.show()};
l2.prototype.BG=function(a){this.layoutId?Q_(this.jb,a,this.layoutId,this.macros):g.rA(new g.Sw("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
l2.prototype.clear=function(){this.hide()};g.v(M3a,UM);M3a.prototype.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);b.answer&&g.P(b.answer,Q2)&&(this.button=new sN(this.api,this.ib,this.layoutId,this.j,this.jb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ca(this.u),this.button.init(mK("survey-none-of-the-above-button"),g.P(b.answer,Q2),c));this.show()};g.v(m2,kN);m2.prototype.init=function(a,b,c){kN.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.IB(b.text),a=!g.Lb(b));a||g.sA(Error("No submit text was present in the renderer."))};
m2.prototype.onClick=function(a){this.ma("l");kN.prototype.onClick.call(this,a)};g.v(n2,UM);
n2.prototype.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.P(a,V_)?(a=g.P(a,V_),c=new ON(this.api,this.ib,this.layoutId,this.j,this.jb,this.C,!0),c.Ca(this.I),c.init(mK("skip-button"),a,this.macros),g.H(this,c),this.u=c):g.P(a,X_)&&(a=g.P(a,X_),c=new HN(this.api,this.ib,this.layoutId,this.j,this.jb,this.C,!1),c.Ca(this.I),c.init(mK("ad-preview"),a,this.macros),IN(c),g.H(this,c),this.u=c);null==this.u&&g.rA(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,g.P(a,g.zJ)&&(a=g.P(a,g.zJ),c=new m2(this.api,this.ib,this.layoutId,this.j,this.jb),c.Ca(this.submitButton),c.init(mK(this.T?"multi-step-survey-answer-button":"survey-submit"),a,this.macros),g.H(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.P(a,R5a),c=new QN(this.api,this.ib,this.layoutId,this.j,this.jb,!0),c.Ca(this.D),c.init(mK("simple-ad-badge"),a,this.macros),g.H(this,c);if(a=b.adDurationRemaining)a=g.P(a,K5a),c=new WN(this.api,this.ib,this.layoutId,this.j,this.jb,
this.C,void 0),c.Ca(this.D),c.init(mK("ad-duration-remaining"),a,this.macros),g.H(this,c);(b=b.adInfoRenderer)&&g.P(b,W_)&&(a=new zN(this.api,this.ib,this.layoutId,this.j,this.jb,this.element),g.H(this,a),a.Ca(this.D),a.init(mK("ad-info-hover-text-button"),g.P(b,W_),this.macros));this.show()};
n2.prototype.clear=function(){this.hide()};g.v(o2,UM);o2.prototype.init=function(a,b,c){UM.prototype.init.call(this,a,b,c);Q3a(this)};
o2.prototype.show=function(){this.C=g.Ra();UM.prototype.show.call(this)};
o2.prototype.bV=function(){};g.v(R3a,o2);g.k=R3a.prototype;g.k.init=function(a,b,c){var d=this;o2.prototype.init.call(this,a,b,c);b.questionText&&g.Xe(this.questionText,g.IB(b.questionText));b.answers&&b.answers.forEach(function(e){g.P(e,L2)&&N3a(d,g.P(e,L2),c)});
this.T=new Set(this.B.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=g.P(a,N5a))&&S3a(this,a,c);b.surveyAdQuestionCommon&&P3a(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.S(this.element,"change",this.onChange);this.show()};
g.k.bV=function(){T3a(this,!1);this.D.B.subscribe("l",this.c5,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.u?U3a(this):this.T.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),T3a(this,!0))};
g.k.c5=function(){var a=this.B.reduce(function(d,e){var f=e.toggledLoggingParams;e.u&&e.u.isToggled()&&f&&d.push(f);return d},[]).join("&"),b=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
d=g.Zc(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=di(e.baseUrl,a));return e});
return d});
if(b){b=g.t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.layoutId?Q_(this.jb,c,this.layoutId,this.macros):g.rA(Error("Missing layoutId for multi_select_question."))}};
g.k.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(p2,o2);p2.prototype.init=function(a,b,c){var d=this;o2.prototype.init.call(this,a,b,c);b.questionText&&g.Xe(this.questionText,g.IB(b.questionText));b.answers&&b.answers.forEach(function(e){g.P(e,L2)&&N3a(d,g.P(e,L2),c)});
b.surveyAdQuestionCommon?P3a(this,b.surveyAdQuestionCommon):g.rA(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
p2.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(q2,UM);q2.prototype.rg=function(){};
q2.prototype.init=function(a,b,c){var d=this;UM.prototype.init.call(this,a,b,c);if(this.api.V().N("supports_multi_step_on_desktop")){this.conditioningRules=b.conditioningRules;var e;(null==(e=b.questions)?0:e.length)&&Y3a(this,b.questions[0])}else(b.questions||[]).forEach(function(f){g.P(f,DK)?W3a(d,g.P(f,DK),c):g.P(f,EK)&&X3a(d,g.P(f,EK),c)});
this.show()};
q2.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.v(r2,UM);
r2.prototype.init=function(a,b,c){var d=this;UM.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.rA(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.P(b.ctaButton,g.zJ))if(b.brandImage)if(b.backgroundImage&&g.P(b.backgroundImage,c0)&&g.P(b.backgroundImage,c0).landscape){this.layoutId||g.rA(Error("Missing layoutId for survey interstitial."));Z3a(this.interstitial,g.P(b.backgroundImage,
c0).landscape);Z3a(this.logoImage,b.brandImage);g.Xe(this.text,g.IB(b.text));var e=["ytp-ad-survey-interstitial-action-button"];this.api.V().N("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new kN(this.api,this.ib,this.layoutId,this.j,this.jb,e);g.H(this,this.actionButton);this.actionButton.Ca(this.B);this.actionButton.init(mK("button"),g.P(b.ctaButton,g.zJ),c);this.actionButton.show();this.u=new SN(this.api,1E3*a);this.u.subscribe("g",
function(){d.transition.hide()});
g.H(this,this.u);this.S(this.element,"click",function(f){var h=f.target===d.interstitial;f=d.actionButton.element.contains(f.target);if(h||f)if(d.transition.hide(),h)d.api.onAdUxClicked(d.componentType,d.layoutId)});
this.transition.show(100)}else g.rA(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.rA(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.rA(Error("SurveyTextInterstitialRenderer has no button."));else g.rA(Error("SurveyTextInterstitialRenderer has no text."));else g.rA(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
r2.prototype.clear=function(){this.hide()};
r2.prototype.show=function(){$3a(!0);UM.prototype.show.call(this)};
r2.prototype.hide=function(){$3a(!1);UM.prototype.hide.call(this)};var q9a="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"]);g.v(s2,uN);
s2.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!q9a.includes(d))switch(a.actionType){case 1:a=this.I();var e=this.api,f=this.jb,h=c.layoutId,l=c.j,m=c instanceof fL?c.uN:!1,n=c instanceof fL||c instanceof RN?c.IG:!1;l=void 0===l?{}:l;m=void 0===m?!1:m;n=void 0===n?!1:n;switch(d){case "invideo-overlay":a=new A3a(e,a,h,l,f);break;case "player-overlay":a=new cO(e,a,h,l,f,new CR(e),n);break;case "survey":a=new q2(e,a,h,l,f);break;case "ad-action-interstitial":a=new v3a(e,a,h,l,
f,m,n);break;case "survey-interstitial":a=new r2(e,a,h,l,f);break;case "ad-message":a=new I3a(e,a,h,l,f,new CR(e,1));break;case "player-underlay":a=new K3a(e,a,h,l,f);break;default:a=null}if(!a){g.sA(Error("No UI component returned from ComponentFactory for type: "+d));break}g.Rc(this.u,b)?g.sA(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof V2a?this.B?this.B.append(a.ZM):g.rA(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.ZM);
break;case 2:b=a4a(this,a);if(null==b)break;b.bind(c);break;case 3:c=a4a(this,a),null!=c&&(g.ab(c),g.Rc(this.u,b)?g.Vc(this.u,b):g.sA(Error("Ad UI component does not exist: "+b)))}};
s2.prototype.ra=function(){g.bb(Object.values(this.u));this.u={};uN.prototype.ra.call(this)};g.v(b4a,g.LQ);g.k=b4a.prototype;g.k.create=function(){try{c4a(this),this.load(),this.created=!0,c4a(this)}catch(a){kB(a instanceof Error?a:String(a))}};
g.k.load=function(){g.LQ.prototype.load.call(this);var a=i2(this.j).Ii;Dra(a.G.V().N("html5_reduce_ecatcher_errors"));try{this.player.getRootNode().classList.add("ad-created")}catch(l){kB(l instanceof Error?l:String(l))}var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var h=c&&c.Pd()||!1;a=h4a(f,a,e,h,i2(this.j).wm);f=c&&c.clientPlaybackNonce||"";c=c&&c.Nt||!1;h=1E3*this.player.getDuration(1);this.ib=new KM(this,this.player,this.Bt,b,i2(this.j));wEa(this.ib,a.Yz);this.j.j.As.Ej(f,h,c,a.WF,a.WF.concat(a.Yz),e,d);LM(this.ib)};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.As.Hm(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.LQ.prototype.unload.call(this);Dra(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){kB(b instanceof Error?b:String(b))}if(null!==this.ib){var a=this.ib;this.ib=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Bt.reset()};
g.k.Ck=function(){return!1};
g.k.vN=function(){return null===this.ib?!1:this.ib.vN()};
g.k.Co=function(a){null!==this.ib&&this.ib.Co(a)};
g.k.getAdState=function(){return this.ib?this.ib.cF:-1};
g.k.getOptions=function(){return Object.values(p9a)};
g.k.hh=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=IK(this.player),Object.assign(b,a.l9a),this.ib&&!b.AD_CPN&&(b.AD_CPN=this.ib.xA()),a=g.Sn(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.zs(b);break;case "executeCommand":this.executeCommand(b);break;default:return null}};
g.k.Bs=function(a){var b;return!(null==(b=this.j.j.rf)||!b.get().Bs(a))};
g.k.zs=function(a){a.isMuted&&lEa(this.ib,i2(this.j).Aj,i2(this.j).wl,a.layoutId);this.Mw&&this.Mw.zs()};
g.k.executeCommand=function(a){i2(this.j).jb.executeCommand(a.command,a.layoutId)};g.KQ("ad",b4a);var j4a=g.Je&&i4a();g.v(g.t2,g.E);g.t2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.R)()};this.next()};
g.t2.prototype.next=function(){if(this.config){var a=this.config,b=a.from,c=a.to,d=a.duration;a=a.startTime;var e=(0,g.R)()-a;a=this.j;d=Oka(a,e/d);if(0==d)a=a.J;else if(1==d)a=a.T;else{e=fe(a.J,a.D,d);var f=fe(a.D,a.I,d);a=fe(a.I,a.T,d);e=fe(e,f,d);f=fe(f,a,d);a=fe(e,f,d)}a=g.de(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.v(g.u2,g.W);g.k=g.u2.prototype;g.k.qX=function(){this.u&&this.scrollTo(this.j-this.containerWidth)};
g.k.rX=function(){this.u&&this.scrollTo(this.j+this.containerWidth)};
g.k.eq=function(){this.Bb(this.api.fb().getPlayerSize())};
g.k.isShortsModeEnabled=function(){return!!this.C.hk()&&this.api.N("embeds_enable_shorts_branded_ui")};
g.k.Bb=function(a){var b=this.isShortsModeEnabled()?.5625:16/9,c=this.C.ag();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));c=(a-8*c)/c;b=Math.floor(c/b);for(var d=g.t(this.D),e=d.next();!e.done;e=d.next())e=e.value.Ea("ytp-suggestion-image"),e.style.width=c+"px",e.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.tileWidth=c;this.T=b;this.containerWidth=a;this.j=0;this.suggestions.element.scrollLeft=-0;g.v2(this)};
g.k.onVideoDataChange=function(){var a=this.api.V(),b=this.api.getVideoData();this.I=b.D?!1:a.u;this.suggestionData=b.suggestions?g.vm(b.suggestions,function(c){return c&&!c.playlistId}):[];
o4a(this);b.D?this.title.update({title:g.qL("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.isShortsModeEnabled()?"More shorts":"More videos"})};
g.k.scrollTo=function(a){a=g.de(a,this.containerWidth-this.suggestionData.length*(this.tileWidth+8),0);this.J.start(this.j,a,1E3);this.j=a;g.v2(this)};g.v(g.w2,g.W);g.w2.prototype.onClick=function(){this.G.Oa("onExpandMiniplayer")};})(_yt_player);

}

/*
     FILE ARCHIVED ON 10:56:43 Jan 04, 2023 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 22:31:22 Jul 22, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  capture_cache.get: 2.017
  load_resource: 1107.415 (2)
  PetaboxLoader3.resolve: 1000.095 (2)
  PetaboxLoader3.datanode: 76.568 (2)
*/