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;/*

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

 SPDX-License-Identifier: Apache-2.0
*/
/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
'use strict';var aa,baa,caa,ha,daa,ia,eaa,pa,ua,va,wa,gaa,haa,Fa,Ga,iaa,jaa,Ja,kaa,Ka,La,Pa,Ta,Wa,maa,naa,jb,oaa,nb,pb,sb,wb,xb,paa,qaa,Cb,saa,taa,Mb,uaa,Tb,vaa,waa,Pb,xaa,yaa,zaa,Baa,Aaa,Caa,bc,Daa,dc,hc,jc,sc,uc,xc,yc,zc,Ac,Laa,Bc,Ec,Cc,Maa,Naa,Oaa,Paa,Fc,Qaa,Gc,Hc,Ic,Raa,Jc,Kc,Taa,Uaa,Waa,Rc,Sc,Zaa,Tc,Yc,$aa,aba,dd,hd,bba,rd,td,eba,fba,ud,kba,zd,hba,jba,xd,wd,Ed,Fd,lba,Gd,mba,Id,Jd,nba,Md,Od,Pd,Qd,qba,sba,vba,Td,Aba,ae,Hba,Fba,Gba,Iba,Kba,Lba,Nba,Qba,Rba,ke,me,se,ve,we,Sba,Tba,Uba,Vba,He,Ie,Ne,
Yba,$ba,Zba,Xe,Ze,aca,Ye,mf,ye,rf,cca,tf,sf,xe,Cf,dca,Df,Ef,Ff,eca,gca,ica,Uf,Vf,Wf,mca,oca,Yf,pca,Xf,tca,Jf,kca,vca,sca,qca,rca,wca,uca,Zf,nca,bg,yca,zca,Aca,Bca,Cca,Dca,Eca,Fca,Gca,dg,Hca,Lca,Mca,Nca,Sca,rg,Rca,Oca,Uca,Wca,Yca,tg,ug,ada,wg,xg,cda,zg,yg,dda,Ag,eda,fda,Bg,Cg,Gg,gda,Hg,hda,ida,Ug,Dg,jda,Wg,Vg,Xg,Yg,Zg,$g,ah,kda,mda,ch,nda,oda,dh,eh,hh,qda,rda,tda,uda,wda,ih,xda,Ch,yda,Dh,zda,Eh,Fh,Ada,Gh,Hh,Ih,Bda,Lh,Cda,Dda,Nh,Oh,Fda,Ph,Qh,Rh,Sh,Gda,Hda,Uh,Vh,Ida,Jda,Kda,Lda,Wh,Xh,oi,Nda,pi,qi,ri,
Pda,ui,vi,Qda,Rda,ti,wi,Oda,si,xi,Sda,Tda,Uda,yi,zi,Ai,Bi,Vda,Ei,Gi,M,Yda,Xda,$da,aea,Zi,bea,cea,aj,bj,dj,cj,fj,ej,gj,jj,mj,eea,fea,lj,gea,hea,nj,oj,pj,Cj,Bj,iea,jea,Ej,Fj,Gj,Dj,Hj,dea,kea,lea,Jj,Kj,Lj,kj,Mj,Nj,mea,Oj,nea,oea,Pj,pea,Qj,Rj,qea,Sj,rea,Uj,sea,Vj,Wj,Xj,Yj,Zj,ak,N,xk,yk,O,zk,Q,tea,Ak,xea,Bk,Fk,Aea,Bea,Cea,zea,Dea,Hk,Hea,Iea,Jea,Ik,Kea,Lea,Ck,Mea,Gea,Lk,Mk,Nk,Ok,Pk,Qk,Oea,Pea,Rk,Qea,Sk,Tk,Uk,Vk,Wk,Xk,ql,Sea,Tea,Vea,Uea,Wea,tl,ul,vl,Yea,Zea,$ea,wl,xl,yl,zl,Cl,Dl,bfa,Hl,cfa,Il,Jl,Kl,dfa,
efa,Nl,ffa,Ol,vm,ifa,wm,xm,ym,zm,Am,Bm,Cm,Dm,Em,jfa,Hm,kfa,lfa,mfa,ofa,nfa,Fm,Gm,Lm,pfa,Jm,rfa,Im,Km,sfa,Nm,tfa,wfa,Om,Pm,xfa,zfa,Afa,Cfa,Bfa,Dfa,Rm,Efa,Um,Ym,Zm,sn,tn,Hfa,un,vn,wn,Ifa,Jfa,Kfa,xn,Mfa,yn,Nfa,Ofa,Rfa,Qfa,Pfa,Sfa,Tfa,An,Ufa,Vfa,Wfa,Zfa,Xfa,Bn,$fa,Cn,aga,cga,Dn,Fn,dga,Gn,Hn,In,fga,Kn,hga,iga,jga,kga,Nn,Pn,Qn,lga,Sn,mga,oga,nga,pga,qga,tga,Tn,Un,Vn,Wn,Xn,Yn,Zn,$n,uga,ao,bo,co,eo,fo,yga,vga,io,xga,jo,wga,ho,go,lo,Aga,no,mo,Bga,Cga,to,uo,wo,Fga,vo,$o,Gga,ap,Dga,Jga,Kga,Lga,dp,ep,fp,Mga,
gp,hp,ip,jp,Nga,kp,lp,mp,Oga,Pga,np,Qga,op,Tga,Uga,Vga,Wga,Rga,pp,qp,rp,sp,Yga,Zga,Xga,tp,$ga,aha,bha,xp,cha,yp,zp,eha,fha,Ap,Bp,Cp,Dp,Ep,Fp,Gp,Hp,gha,Ip,Jp,hha,jha,iha,Kp,kha,lha,mha,Lp,Mp,Np,Op,Pp,Qp,Rp,nha,Sp,Tp,Up,oha,qha,rha,$q,br,ar,dr,er,fr,tha,gr,uha,hr,ir,jr,wha,xha,Aha,yha,Bha,Fha,kr,Eha,Cha,lr,mr,Gha,nr,Hha,or,Jha,Iha,Kha,Lha,sr,Mha,Nha,Oha,tr,ur,Pha,vr,Qha,Rha,Tha,Xha,wr,Yha,Zha,$ha,aia,bia,zr,cia,dia,eia,Gr,Fr,Er,fia,gia,hia,Hr,Ir,Jr,jia,Or,Pr,Qr,Rr,Sr,Tr,lia,mia,nia,Ur,Wr,Xr,as,bs,es,
pia,ria,qia,sia,tia,ks,uia,via,ls,wia,xia,yia,zia,ps,ns,qs,rs,ts,Aia,Bia,Cia,us,vs,ws,Dia,Eia,Fia,xs,Gia,ys,zs,Hia,Iia,Jia,Kia,Lia,Mia,Js,Ks,Ls,Ns,Pia,Os,Ps,Qia,Oia,Ms,Ria,Qs,Rs,Ss,Us,Ts,Sia,Tia,Uia,Vs,Wia,Ws,Yia,Zia,$ia,aja,bja,cja,dja,eja,Zs,$s,at,gja,fja,hja,ija,ct,jja,dt,kja,lja,et,ft,gt,mja,ht,jt,nja,kt,lt,mt,nt,ot,pt,qt,rt,oja,pja,qja,rja,tt,sja,uja,tja,vt,wt,wja,vja,Bja,Aja,xt,Cja,Dja,Eja,Gja,Fja,Hja,zt,Ija,Jja,Bt,Kja,Lja,Mja,Nja,Ct,Oja,Dt,Pja,Et,Ft,Rja,Gt,Sja,Ht,It,Tja,Uja,Jt,Lt,Wja,Mt,Vja,
Xja,Yja,Zja,aka,Nt,bka,Qt,Rt,dka,eka,hka,ika,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,$t,au,bu,cu,du,mka,lka,nka,pka,oka,rka,kka,qka,jka,eu,fu,tka,uka,vka,ju,ku,lu,gu,xka,mu,ska,zka,Aka,yka,nu,ou,pu,qu,Bka,wka,Cka,ru,Dka,Eka,Fka,Gka,Hka,Kka,Lka,Mka,Nka,Oka,Rka,vu,Tka,uu,xu,Uka,yu,Au,Bu,Vka,Wka,Iu,Xka,Yka,Ju,Zka,Uu,Ru,Su,Tu,$ka,Xu,Wu,ala,Zu,bla,ela,$u,fla,gla,lla,hla,dv,ev,qla,fv,gv,hv,sla,kv,tla,ula,lv,wla,nv,ov,pv,qv,xla,tv,uv,vv,wv,yv,zv,zla,Ala,Cv,Dv,Ev,Fv,Gv,Hv,Bla,Cla,Dla,Ela,Fla,Gla,Iv,Hla,Pv,Ila,Jla,Kla,Qv,
Sv,Tv,Uv,Xv,Yv,Zv,Mla,bw,cw,dw,Nla,Ola,ew,Pla,Qla,gw,Yla,Zla,$la,hw,ama,bma,ema,gma,fma,kw,hma,mw,nw,ow,pw,qw,rw,tw,uw,vw,ww,xw,yw,zw,Aw,Bw,Cw,Dw,Ew,Fw,Gw,Hw,Iw,Jw,Kw,Lw,Mw,Nw,Ow,Pw,Qw,Rw,Sw,Tw,Uw,Vw,Ww,Xw,Yw,Zw,$w,ax,bx,cx,dx,ex,fx,gx,hx,ix,jx,kx,lx,nx,ima,ox,px,qx,rx,sx,tx,ux,vx,wx,xx,yx,zx,Ax,Bx,Cx,Dx,Ex,Fx,Gx,Hx,Ix,jma,Jx,Kx,Lx,Mx,Nx,Ox,Px,Qx,Rx,Sx,Ux,Vx,Wx,Xx,Yx,Zx,$x,ay,by,cy,dy,ey,fy,gy,hy,iy,jy,ky,ly,my,ny,oy,py,qy,ry,sy,ty,uy,vy,wy,yy,zy,Ay,By,Cy,Dy,Ey,Fy,Gy,Hy,Iy,Jy,Ky,Ly,My,Ny,Oy,Py,Qy,
Ry,Sy,Ty,Uy,Vy,Wy,Xy,Yy,Zy,$y,az,bz,cz,dz,ez,fz,gz,hz,iz,jz,kz,lz,mz,nz,oz,pz,qz,rz,sz,tz,uz,vz,wz,xz,Az,Bz,Cz,Dz,Ez,Fz,Gz,Hz,Iz,Jz,Kz,Lz,Mz,Nz,Oz,Pz,Qz,Rz,Sz,Tz,Uz,Vz,Wz,Xz,Yz,Zz,$z,aA,bA,cA,dA,eA,fA,gA,hA,iA,jA,kA,lA,mA,nA,oA,pA,qA,rA,sA,tA,uA,vA,wA,xA,yA,zA,EA,FA,GA,HA,IA,JA,KA,LA,MA,NA,kma,lma,OA,mma,nma,oma,pma,qma,rma,sma,tma,uma,vma,PA,wma,QA,RA,xma,yma,SA,zma,Ama,Bma,Cma,Dma,Ema,Fma,Gma,TA,Hma,Ima,Jma,UA,Kma,Lma,VA,WA,Mma,XA,YA,Nma,ZA,$A,Oma,aB,bB,Pma,Qma,cB,Rma,Sma,dB,Tma,Uma,Vma,Wma,Xma,
Yma,Zma,$ma,ana,bna,eB,cna,dna,fB,ena,gB,hB,fna,gna,iB,hna,ina,jB,jna,kB,kna,lB,mB,nB,oB,lna,pB,qB,rB,sB,mna,tB,uB,nna,ona,vB,wB,xB,pna,yB,qna,rna,sna,zB,tna,una,vna,AB,wna,xna,BB,CB,yna,DB,zna,Ana,EB,Bna,FB,Cna,Dna,Ena,HB,JB,Gna,Fna,Hna,Ina,PB,QB,RB,SB,Mna,UB,VB,Nna,WB,XB,Ona,Jna,YB,Rna,Una,ZB,Wna,Yna,eC,Zna,$na,boa,noa,loa,moa,ooa,aoa,hC,gC,poa,jC,kC,lC,roa,soa,toa,uoa,voa,woa,rC,xoa,tC,yoa,zoa,uC,Boa,Coa,xC,zC,Doa,Eoa,AC,BC,CC,DC,Goa,EC,Ioa,Hoa,Koa,GC,Loa,Poa,Noa,Ooa,Qoa,Roa,Toa,Soa,Woa,IC,Xoa,
LC,Yoa,Zoa,KC,MC,apa,bpa,epa,QC,fpa,gpa,RC,SC,TC,VC,ipa,kpa,aD,lpa,mpa,npa,opa,ppa,spa,tpa,upa,rpa,vpa,xpa,zpa,hD,Apa,kD,iD,nD,oD,Cpa,Fpa,tD,uD,vD,wD,Jpa,yD,Lpa,Mpa,Npa,BD,Ppa,Qpa,Opa,Rpa,Spa,Tpa,Upa,ED,Vpa,HD,Ypa,Zpa,Wpa,$pa,aqa,dqa,cqa,LD,Xpa,fqa,gqa,OD,hqa,iqa,QD,RD,jqa,lqa,TD,mqa,nqa,pqa,rqa,WD,sqa,tqa,uqa,vqa,wqa,xqa,yqa,zqa,YD,Aqa,$D,Cqa,Dqa,Eqa,Fqa,Gqa,Hqa,eE,Kqa,Nqa,fE,Oqa,Qqa,Jqa,Rqa,Sqa,Tqa,Lqa,Mqa,aE,Iqa,dE,Pqa,cE,bE,Uqa,Vqa,Wqa,Xqa,Yqa,Zqa,era,$qa,iE,jE,kE,hra,jra,ira,fra,kra,mra,nE,ora,
rra,qE,qra,Bra,sra,Ara,uE,Cra,Fra,vE,tE,Dra,Era,Gra,xE,Ira,Jra,Kra,Lra,Mra,Nra,Ora,Hra,Qra,Rra,Sra,Tra,Ura,Xra,zE,AE,BE,Zra,CE,$ra,asa,EE,FE,dsa,csa,esa,gsa,isa,hsa,lsa,psa,nsa,QE,ssa,usa,PE,tsa,RE,SE,vsa,wsa,xsa,UE,zsa,XE,WE,YE,ZE,$E,Bsa,Csa,bF,Dsa,cF,Fsa,Gsa,Hsa,Jsa,Ksa,Isa,fF,Msa,Lsa,Nsa,gF,Psa,hF,Rsa,iF,Tsa,jF,Ssa,kF,lF,Wsa,bta,dta,ata,$sa,cta,oF,eta,mta,ita,jta,kta,Vsa,vta,xta,uta,Ata,tta,nF,zta,hta,lta,wta,fta,Ysa,Xsa,Zsa,qF,sta,zF,Kta,Jta,Ota,Rta,Qta,Tta,BF,CF,Vta,Wta,Xta,Yta,Zta,$ta,aua,EF,
cua,dua,eua,fua,gua,hua,iua,kua,lua,IF,nua,pua,oua,qua,sua,tua,xua,vua,zua,yua,Bua,Aua,JF,Epa,Jua,Gua,Lua,PF,Nua,Pua,Qua,Rua,Xua,ava,bva,dva,cva,eva,VF,gva,UF,$ua,Zua,RF,bG,aG,eG,fG,hG,iva,iG,lG,mG,jva,kva,mva,nva,ova,pva,qva,rva,sva,tva,uva,vva,wva,sG,xva,yva,Ava,Bva,Cva,Dva,Eva,Fva,Iva,Jva,uG,vG,Kva,wG,Lva,yG,Nva,Mva,AG,BG,CG,DG,Ova,EG,Pva,Qva,Rva,FG,Sva,Wva,Tva,Vva,Uva,Xva,GG,Yva,Zva,$va,awa,HG,cwa,fwa,ewa,IG,gwa,JG,KG,LG,NG,OG,hwa,iwa,jwa,PG,kwa,lwa,QG,mwa,RG,UG,WG,owa,nwa,YG,pwa,qwa,ZG,$G,aH,
bH,eH,swa,fH,gH,hH,iH,twa,uwa,lH,vwa,mH,zwa,Bwa,Dwa,Fwa,Hwa,oH,Iwa,pH,Jwa,Mwa,Nwa,rH,Pwa,tH,uH,vH,wH,xH,yH,zH,Rwa,AH,Qwa,Swa,BH,Uwa,Twa,CH,$wa,axa,DH,EH,GH,bxa,cxa,IH,JH,LH,dxa,MH,XH,fxa,KH,ixa,jxa,mxa,nxa,oxa,qxa,lxa,rxa,sxa,txa,YH,hxa,wxa,kxa,ZH,yxa,Axa,bI,Bxa,Cxa,cI,Dxa,$H,Exa,dI,Fxa,zxa,eI,Hxa,fI,Mxa,Kxa,Jxa,Ixa,Oxa,hI,iI,jI,kI,lI,mI,nI,Txa,pI,Uxa,Wxa,Vxa,Xxa,Yxa,Zxa,aya,$xa,bya,eya,fya,rI,sI,tI,gya,uI,vI,wI,zI,iya,jya,xI,yI,hya,mya,nya,AI,qya,oya,BI,CI,DI,EI,rya,FI,GI,sya,tya,uya,vya,wya,xya,
HI,II,JI,KI,LI,MI,NI,OI,PI,QI,RI,yya,SI,zya,Aya,Bya,Cya,TI,UI,VI,WI,Dya,XI,YI,ZI,Eya,$I,aJ,bJ,cJ,dJ,eJ,fJ,gJ,hJ,Fya,iJ,jJ,kJ,Gya,lJ,mJ,nJ,oJ,Hya,pJ,qJ,Iya,rJ,Jya,sJ,Kya,uJ,vJ,Lya,wJ,xJ,yJ,tJ,zJ,AJ,BJ,Nya,Pya,Qya,CJ,Rya,DJ,Sya,FJ,Tya,Uya,Vya,Yya,Zya,$ya,aza,bza,cza,Wya,QJ,fza,gza,hza,iza,Xya,kza,HJ,lza,mza,SJ,nza,TJ,JJ,oza,IJ,jza,UJ,rza,qza,LJ,MJ,WJ,VJ,sza,XJ,tza,YJ,vza,uza,ZJ,$J,aK,bK,wza,xza,zza,Aza,dK,eK,Cza,fK,Gza,Iza,Kza,Lza,hK,Nza,Oza,Qza,Rza,Sza,Tza,Uza,Vza,mK,nK,Wza,Yza,Xza,Zza,$za,aAa,rK,
tK,uK,vK,wK,xK,bAa,yK,zK,sK,AK,BK,eAa,fAa,dAa,iAa,jAa,kAa,lAa,mAa,nAa,oAa,pAa,qAa,rAa,sAa,tAa,uAa,vAa,wAa,xAa,yAa,zAa,AAa,BAa,CAa,DAa,DK,EK,EAa,FK,GK,FAa,GAa,HAa,IAa,JAa,KAa,LAa,HK,MAa,NAa,OAa,PAa,IK,QAa,RAa,JK,SAa,TAa,UAa,KK,VAa,MK,XAa,YAa,ZAa,NK,$Aa,cBa,OK,dBa,fBa,aBa,bBa,PK,eBa,hBa,iBa,RK,SK,TK,UK,VK,lBa,WK,XK,$K,mBa,nBa,oBa,bL,dL,pBa,gL,hL,rBa,sBa,iL,tBa,jL,uBa,lL,mL,nL,vBa,wBa,xBa,oL,qBa,pL,qL,rL,sL,tL,uL,yBa,vL,wL,xL,yL,zL,AL,BL,CL,DL,ABa,BBa,DBa,EBa,IL,FL,JL,FBa,GBa,HBa,IBa,KL,LL,JBa,KBa,LBa,
GL,MBa,NBa,ML,OBa,QBa,RBa,OL,PL,QL,RL,SL,UBa,VL,XL,WL,WBa,YL,XBa,YBa,$Ba,ZBa,aM,aCa,bCa,eCa,cCa,dCa,bM,gCa,hCa,iCa,kCa,jCa,lCa,mCa,oCa,nCa,pCa,qCa,rCa,sCa,tCa,uCa,vCa,wCa,xCa,yCa,zCa,ACa,BCa,CCa,DCa,ECa,FCa,eM,GCa,fM,gM,ICa,JCa,hM,KCa,iM,LCa,jM,MCa,kM,NCa,OCa,PCa,QCa,lM,RCa,SCa,TCa,mM,nM,oM,pM,qM,UCa,rM,sM,tM,VCa,uM,WCa,XCa,YCa,vM,wM,ZCa,xM,$Ca,yM,zM,yza,aDa,bDa,AM,cDa,BM,CM,DM,EM,FM,GM,YM,ZM,dDa,$M,aN,eDa,fDa,gDa,hDa,bN,gN,jDa,oDa,rDa,pDa,tDa,uDa,sDa,wDa,xDa,yDa,pN,CDa,EDa,HDa,IDa,JDa,qN,LDa,MDa,
QDa,rN,RDa,NDa,SDa,sN,TDa,WDa,VDa,$Da,XDa,tN,uN,fEa,iEa,hEa,mEa,kEa,oEa,lEa,qEa,pEa,gEa,rEa,sEa,wN,jEa,tEa,xN,uEa,vEa,yEa,BEa,zEa,EEa,MEa,LEa,FEa,NEa,HEa,IEa,GEa,REa,TEa,VEa,ZEa,bFa,cFa,eFa,gFa,iFa,hFa,qFa,kFa,jFa,rFa,uFa,vFa,wFa,xFa,DN,DDa,AFa,yFa,FN,CFa,DFa,IN,GFa,HFa,FFa,JN,IFa,KN,LN,oK,MN,BDa,NN,JFa,gAa,KFa,ON,LFa,MFa,NFa,PN,QN,OFa,RN,SN,TN,UN,VN,PFa,QFa,WN,RFa,SFa,XN,TFa,YN,QK,ZN,$N,UFa,aO,VFa,WFa,FDa,EFa,bO,pK,cK,yN,XFa,YFa,cO,eEa,vN,ZFa,EN,BFa,YEa,XEa,xEa,zN,$Ea,dFa,fFa,aEa,sFa,$Fa,OEa,JEa,
dO,GDa,bGa,aGa,wEa,aFa,cGa,tFa,AN,bEa,dEa,UDa,WEa,UEa,DEa,AEa,PDa,ODa,KDa,QEa,KEa,lFa,YDa,ZDa,oFa,pFa,mFa,nFa,SEa,fGa,dGa,eO,eGa,fO,RJ,KJ,dza,GJ,gGa,gO,hO,iO,oO,iGa,qO,kGa,lGa,mGa,nGa,pGa,oGa,qGa,rGa,tO,wO,sGa,tGa,vGa,uGa,wGa,xGa,yGa,zGa,AGa,BGa,yO,zO,EGa,AO,BO,FGa,GGa,HGa,IGa,CO,JGa,DO,KGa,LGa,EO,GO,KO,MGa,LO,MO,NO,OO,PO,QO,RO,SO,TO,UO,VO,NGa,OGa,WO,XO,YO,ZO,$O,aP,PGa,QGa,bP,fP,TGa,UGa,gP,WGa,VGa,XGa,YGa,iP,jP,kP,Y,$Ga,lP,eHa,iHa,jHa,kHa,sHa,vHa,AHa,BHa,ZHa,$Ha,aIa,CHa,EHa,KHa,fIa,OHa,jIa,hIa,lIa,
mIa,iIa,nIa,mJa,uIa,nJa,vIa,wIa,tP,pJa,rJa,tJa,sJa,qJa,BIa,PIa,QIa,xJa,zJa,SIa,TIa,VIa,WIa,XIa,GJa,ZIa,bJa,iJa,OJa,KJa,LJa,QJa,TJa,SJa,UJa,VJa,cKa,WJa,wP,$Ja,iKa,jKa,kKa,lKa,mKa,pKa,uKa,YKa,XKa,AP,BP,CP,DP,EP,FP,eLa,HP,GP,gLa,cLa,dLa,hLa,fLa,IP,iLa,Dpa,kLa,jLa,mLa,oLa,qLa,rLa,sLa,pLa,tLa,yLa,xLa,LP,ALa,BLa,CLa,DLa,NP,MP,ELa,FLa,GLa,ILa,PP,RP,TP,JLa,UP,VP,KLa,OLa,QLa,PLa,SLa,ZLa,$La,XP,RLa,NLa,MLa,LLa,aQ,YP,$P,fQ,gQ,cMa,dMa,hQ,eQ,hMa,eMa,fMa,iMa,iQ,jQ,kMa,lMa,lQ,mQ,nQ,oQ,pQ,mMa,nMa,oMa,qQ,rQ,tQ,qMa,
rMa,sQ,sMa,vMa,wMa,uQ,xMa,xQ,yMa,yQ,AQ,AMa,zQ,BQ,BMa,DMa,EMa,FMa,DQ,EQ,JQ,IMa,GQ,KQ,MQ,JMa,NQ,IQ,LQ,KMa,OQ,LMa,PQ,MMa,FQ,HQ,GMa,HMa,QQ,NMa,OMa,PMa,RQ,SQ,TQ,QMa,UQ,VQ,RMa,WQ,SMa,XQ,YQ,ZQ,TMa,UMa,VMa,WMa,XMa,$Q,YMa,ZMa,$Ma,aNa,bNa,cNa,aR,bR,dNa,cR,hNa,iNa,jNa,kNa,lNa,eR,fR,dR,eNa,mNa,nNa,oNa,pNa,gR,hR,qNa,iR,jR,rNa,sNa,kR,tNa,uNa,yNa,zNa,vNa,wNa,xNa,ANa,lR,mR,nR,BNa,CNa,oR,pR,DNa,qR,ENa,GNa,FNa,rR,HNa,INa,JNa,KNa,LNa,MNa,ONa,PNa,sR,QNa,SNa,UNa,TNa,vR,XLa,ZP,YNa,ZNa,$Na,aOa,bOa,cOa,WP,uR,dOa,wR,iOa,
jOa,kOa,lOa,xR,pOa,mOa,nOa,rOa,sOa,tOa,uOa,qOa,vOa,yR,zR,AR,wOa,xOa,BR,yOa,zOa,AOa,CR,gOa,COa,YLa,TLa,EOa,ER,GR,HR,IR,JR,KR,FR,FOa,HOa,NR,KOa,IOa,MOa,NOa,LOa,JOa,OOa,POa,QOa,SR,ROa,SOa,UOa,VOa,bMa,TR,WOa,ZOa,bQ,$Oa,aPa,bPa,ULa,WLa,UR,VR,WR,YR,dPa,ePa,ZR,fPa,$R,aS,gPa,bS,hPa,cS,iPa,dS,eS,fS,gS,kPa,lPa,hS,mPa,nPa,jPa,iS,oPa,qPa,sPa,rPa,pPa,FPa,CPa,IPa,yS,zS,tPa,DPa,OJ,wS,CS,JPa,GS,LPa,oS,HS,nS,MPa,BPa,KS,LS,PPa,QPa,RPa,SPa,TPa,UPa,VPa,MS,WPa,aQa,$Pa,XPa,ZPa,YPa,NS,bQa,OS,cQa,dQa,fQa,gQa,hQa,mQa,TS,
US,pQa,VS,WS,qQa,tQa,uQa,vQa,wQa,XS,yQa,CQa,DQa,KQa,OQa,HQa,IQa,QQa,fT,RQa,TQa,SQa,UQa,hT,kT,VQa,gT,WQa,lT,XQa,aRa,YQa,dRa,$Qa,tRa,CRa,ET,DRa,FRa,qRa,sT,ERa,xT,FT,oRa,HRa,GRa,GT,pT,rRa,NRa,JRa,KRa,LRa,MRa,ORa,HT,PRa,RRa,SRa,JT,TRa,oT,uT,QRa,uRa,ZQa,yRa,OT,vT,IRa,VT,CT,XT,ZT,fSa,gSa,DT,aU,hSa,bU,iSa,wT,cU,pRa,jSa,YRa,tT,hRa,kSa,fRa,eRa,bRa,fU,tSa,vSa,wSa,xSa,ySa,iU,jU,lU,mU,kU,zSa,oU,ASa,BSa,pU,DSa,qU,FSa,GSa,ESa,HSa,JSa,ISa,NSa,PSa,QSa,SSa,RSa,wU,TSa,WSa,XSa,IU,ZSa,JU,$Sa,cTa,dTa,fTa,eTa,gTa,bTa,
iTa,hTa,lTa,jTa,kTa,oTa,pTa,qTa,rTa,nTa,tTa,uTa,sTa,mTa,vTa,wTa,xTa,yTa,zTa,ATa,CTa,DTa,BTa,KU,ETa,FTa,HTa,GTa,ITa,KTa,JTa,LTa,MTa,NTa,OTa,QTa,RTa,PTa,MU,TTa,UTa,OU,VTa,SU,TU,UU,VU,WU,WTa,YTa,XTa,ZTa,$Ta,aUa,XU,YU,bUa,dUa,eUa,fUa,bV,lUa,kUa,cV,nUa,eV,oUa,pUa,qUa,rUa,sUa,fV,uUa,tUa,vUa,wUa,gV,hV,xUa,zUa,AUa,BUa,iV,CUa,jV,DUa,GUa,kV,EUa,JUa,HUa,IUa,FUa,lV,NUa,LUa,MUa,OUa,mV,PUa,QUa,RUa,nV,SUa,TUa,UUa,qV,oV,VUa,rV,WUa,tV,uV,YUa,sV,$Ua,vV,xV,aVa,yV,zV,AV,bVa,eVa,dVa,CV,DV,EV,hVa,fVa,gVa,FV,iVa,mVa,kVa,
jVa,lVa,GV,oVa,pVa,HV,qVa,rVa,JV,vVa,tVa,uVa,KV,wVa,sVa,xVa,LV,MV,yVa,zVa,AVa,NV,BVa,CVa,DVa,EVa,FVa,GVa,HVa,KVa,IVa,LVa,MVa,NVa,OVa,QVa,XV,YV,RVa,SVa,WV,WVa,VVa,XVa,YVa,ZVa,$Va,aWa,bWa,cPa,cWa,dWa,jWa,bW,mWa,pWa,oWa,nWa,hWa,iWa,eWa,fWa,kWa,cW,dW,rWa,BU,MSa,fW,sWa,uWa,tWa,lWa,wWa,xWa,yWa,hW,zWa,oW,BWa,CWa,DWa,FWa,EWa,GWa,pW,qW,HWa,KWa,LWa,sW,JWa,MWa,NWa,IWa,tW,OWa,wW,PWa,QWa,vW,RWa,SWa,TWa,UWa,WWa,VWa,YWa,ZWa,XWa,bXa,$Wa,zW,AW,cXa,DW,EW,dXa,fXa,GW,eXa,gXa,hXa,iXa,kXa,jXa,mXa,lXa,nXa,JW,oXa,pXa,qXa,
KW,LW,sXa,rXa,OW,MW,NW,tXa,uXa,PW,QW,wXa,xXa,vXa,yXa,zXa,AXa,CXa,EXa,DXa,RW,FXa,GXa,BXa,LXa,MXa,NXa,QXa,PXa,OXa,RXa,SXa,SW,TW,TXa,UXa,VXa,WXa,YXa,UW,WW,XXa,ZXa,$Xa,aYa,bYa,cYa,YW,dYa,eYa,hYa,ZW,iYa,gYa,$W,aX,jYa,kYa,mYa,oYa,lYa,nYa,cX,pYa,rYa,sYa,uYa,vYa,dX,eX,wYa,qYa,XYa,WYa,fX,gX,hX,ZYa,YYa,iX,jX,$Ya,aZa,kX,bZa,cZa,dZa,lX,eZa,mX,fZa,nX,iZa,jZa,kZa,mZa,nZa,oZa,lZa,qZa,pZa,rZa,uZa,rX,wZa,vZa,sZa,tZa,xZa,yZa,sX,tX,zZa,AZa,BZa,CZa,DZa,EZa,GZa,HZa,PZa,KZa,LZa,IZa,SZa,yX,TZa,XZa,BX,YZa,UZa,xX,EX,DX,zX,
FX,a_a,b_a,GX,AX,QZa,$Za,CX,VZa,ZZa,d_a,uX,HX,e_a,f_a,WZa,IX,JX,g_a,KX,h_a,NX,OX,i_a,j_a,l_a,m_a,k_a,PX,QX,n_a,o_a,p_a,q_a,r_a,t_a,v_a,u_a,s_a,x_a,w_a,RX,SX,y_a,A_a,B_a,TX,z_a,C_a,D_a,E_a,VX,YX,XX,G_a,F_a,H_a,ZX,$X,I_a,J_a,L_a,K_a,M_a,N_a,O_a,bY,P_a,Q_a,R_a,S_a,T_a,U_a,W_a,X_a,Y_a,V_a,Z_a,$_a,a0a,b0a,c0a,fY,e0a,gY,g0a,hY,f0a,j0a,k0a,i0a,iY,l0a,jY,kY,lY,m0a,mY,p0a,q0a,r0a,nY,s0a,t0a,u0a,v0a,w0a,y0a,n0a,z0a,oY,A0a,B0a,C0a,D0a,qY,E0a,F0a,G0a,L0a,P0a,N0a,I0a,tY,H0a,O0a,vY,R0a,Q0a,wY,T0a,U0a,V0a,X0a,Y0a,
W0a,Z0a,ZUa,AY,$0a,a1a,BY,c1a,d1a,b1a,e1a,l1a,FY,m1a,GY,o1a,IY,HY,p1a,f1a,JY,r1a,s1a,u1a,KY,v1a,LY,x1a,w1a,MY,j1a,DY,y1a,z1a,A1a,B1a,C1a,g1a,i1a,EY,F1a,G1a,NY,PY,QY,H1a,I1a,J1a,K1a,OY,D1a,L1a,M1a,E1a,Q1a,U1a,UY,V1a,W1a,S1a,WY,X1a,Y1a,P1a,Z1a,T1a,$1a,XY,VY,a2a,c2a,b2a,TY,e2a,$Y,f2a,YY,aZ,ZY,bZ,g2a,h2a,k2a,j2a,m2a,n2a,l2a,eZ,dZ,p2a,q2a,r2a,s2a,t2a,v2a,u2a,w2a,gZ,hZ,x2a,iZ,y2a,A2a,D2a,B2a,C2a,oZ,E2a,rZ,F2a,G2a,H2a,I2a,J2a,K2a,L2a,M2a,N2a,O2a,sZ,Q2a,R2a,S2a,tZ,uZ,vZ,wZ,xZ,yZ,zZ,T2a,AZ,U2a,Z2a,b3a,c3a,
d3a,e3a,EZ,FZ,a3a,Y2a,f3a,CZ,V2a,g3a,BZ,DZ,W2a,X2a,GZ,h3a,i3a,$2a,j3a,k3a,o3a,l3a,p3a,q3a,m3a,n3a,r3a,s3a,t3a,GQa,NQa,v3a,u3a,IZ,A3a,y3a,z3a,w3a,B3a,JZ,x3a,KZ,LZ,C3a,D3a,E3a,MZ,G3a,H3a,NZ,I3a,OZ,J3a,K3a,L3a,M3a,O3a,P3a,W3a,S3a,N3a,Y3a,Z3a,T3a,U3a,R3a,V3a,QZ,Q3a,X3a,e4a,c4a,b4a,a4a,$3a,SZ,f4a,UZ,h4a,VZ,i4a,j4a,k4a,WZ,XZ,YZ,m4a,n4a,l4a,q4a,r4a,s4a,ZZ,$Z,t4a,u4a,v4a,x4a,w4a,y4a,z4a,a_,A4a,B4a,c_,d_,b_,C4a,kZ,D4a,E4a,F4a,G4a,H4a,I4a,J4a,jZ,K4a,f_,g_,L4a,M4a,N4a,h_,O4a,qZ,P4a,Q4a,mZ,nZ,U4a,j_,l_,V4a,W4a,
n_,k_,i_,o_,S4a,R4a,T4a,p_,Y4a,Z4a,X4a,$4a,lZ,a5a,m_,b5a,c5a,d5a,e5a,f5a,g5a,o4a,p4a,h5a,i5a,q_,l5a,j5a,m5a,o5a,r_,p5a,q5a,r5a,t_,v_,t5a,u5a,y5a,w5a,z5a,A5a,v5a,x5a,s5a,B5a,C5a,w_,F5a,H5a,J5a,M5a,R5a,T5a,U5a,S5a,V5a,W5a,X5a,y_,Z5a,c6a,e6a,f6a,z_,g6a,Y5a,h6a,i6a,A_,j6a,k6a,l6a,m6a,n6a,C_,u6a,t6a,H_,v6a,s6a,y6a,z6a,A6a,C6a,D6a,E6a,F6a,G6a,H6a,J6a,K6a,L6a,I6a,K_,B_,M6a,N6a,I_,P6a,B6a,J_,Q6a,R6a,U6a,V6a,S6a,T6a,Y6a,X6a,Z6a,$6a,W6a,a7a,b7a,L_,c7a,d7a,e7a,h7a,g7a,f7a,M_,i7a,k7a,l7a,m7a,P_,Q_,P2a,n7a,o7a,
r7a,q7a,p7a,s7a,u7a,v7a,t7a,R_,x7a,y7a,z7a,E7a,D7a,F7a,H7a,d4a,A7a,C7a,B7a,G7a,pZ,PZ,s_,I7a,J7a,K7a,L7a,M7a,j7a,S_,u_,N7a,n5a,U_,V_,O7a,W_,P7a,Q7a,R7a,S7a,T7a,U7a,W7a,V7a,Y7a,Z7a,c8a,$7a,b8a,d8a,Y_,h8a,f8a,g8a,k8a,l8a,m8a,n8a,o8a,X_,p8a,j8a,e8a,Z_,q8a,a8a,r8a,$_,t8a,u8a,v8a,s8a,a0,y8a,x8a,B8a,A8a,z8a,C8a,D8a,b0,E8a,F8a,K8a,H8a,I8a,J8a,L8a,M8a,N8a,P8a,O8a,Q8a,R8a,S8a,U8a,W8a,V8a,X8a,T8a,Y8a,$8a,b9a,Z8a,c9a,d9a,f9a,e9a,g9a,a9a,d0,h9a,i9a,j9a,l9a,n9a,o9a,q9a,r9a,s9a,t9a,w9a,x9a,v9a,y9a,z9a,A9a,C9a,B9a,
F9a,h0,RY,D9a,E9a,G9a,k0,I9a,H9a,J9a,L9a,M9a,P9a,N9a,S9a,l0,O9a,T9a,m0,V9a,o0,q0,W9a,n0,X9a,r0,$9a,Z9a,U9a,a$a,b$a,p0,c$a,s0,d$a,Y9a,u9a,j0,SY,f$a,N1a,g$a,O1a,h$a,i$a,j$a,k$a,u0,l$a,n$a,o$a,p$a,m$a,q$a,r$a,v0,s$a,t$a,u$a,w0,SBa,v$a,w$a,x$a,y0,A$a,B$a,A0,C$a,D$a,z$a,z0,x0,y$a,D0,C0,E0,B0,H$a,J$a,L$a,N$a,F$a,K$a,O$a,G$a,P$a,Q$a,S$a,F0,T$a,R$a,G0,V$a,U$a,W$a,I$a,X$a,M$a,E$a,H0,cab,$$a,dab,aab,Z$a,eab,Y$a,hab,I0,iab,kab,HL,mab,oab,pab,qab,N0,rab,h1a,tab,O0,G8a,uab,wab,sab,yY,M0,xab,yab,T0,O6a,nab,S0,
J0,Bab,Cab,Eab,Dab,vab,Q0,Fab,V0,Gab,M0a,Iab,Hab,w7a,c0,Jab,S0a,Kab,q1a,cVa,P0,Lab,Nab,Mab,K0a,Oab,Qab,Aab,lab,Sab,Rab,R0,K0,Uab,W0,uY,Wab,Xab,n1a,Yab,Zab,$ab,J0a,U0,O_,abb,lbb,gbb,nbb,fbb,obb,ebb,Y0,zY,tbb,pbb,rbb,qbb,vbb,a1,b1,ybb,xbb,wbb,d1,kbb,i1,Abb,h1,c1,Cbb,Ebb,Fbb,hbb,Dbb,l1,Gbb,jbb,f1,zbb,e1,Mbb,Nbb,$0,Obb,Qbb,Rbb,Pbb,o1,Bbb,p1,q1,Sbb,g1,ubb,Ibb,Hbb,Tbb,Ubb,Vbb,Wbb,j1,Xbb,k1,Ybb,$bb,Z0,r1,sbb,acb,bcb,ibb,n1,m1,ccb,dcb,s1,t1,i2a,ecb,fcb,gcb,hcb,u1,jcb,ncb,qcb,mcb,icb,v1,w1,x1,Acb,zcb,y1,z1,
Ccb,Dcb,Ecb,gBa,Bcb,VBa,Gcb,Fcb,A1,Icb,Hcb,Jcb,B1,C1,Kcb,D1,BN,Lcb,GN,zFa,Mcb,cEa,ZL,$L,Ncb,Ocb,Pcb,E1,Rcb,Scb,F1,H1,I1,Vcb,Wcb,J1,Xcb,Tcb,Ucb,Ycb,Zcb,K1,$cb,L1,adb,cAa,cM,bdb,cdb,hAa,CK,ddb,edb,fdb,M1,idb,hdb,N1,O1,jdb,kdb,G1,ldb,mdb,ndb,P1,Q1,odb,R1,S1,pdb,T1,U1,qdb,V1,W1,rdb,sdb,fCa,X1,tdb,vdb,udb,Y1,Z1,$1,wdb,xdb,ydb,zdb,Adb,Bdb,Cdb,Edb,b2,Ddb,c2,Fdb,Gdb,Hdb,Idb,Jdb,Ndb,Kdb,Ldb,Mdb,Pdb,Rdb,Sdb,Tdb,Qdb,f2,Udb,Vdb,Wdb,Xdb,Ydb,h2,Zdb,i2,j2,k2,$db,aeb,ceb,deb,eeb,feb,heb,geb,ieb,l2,m2,leb,jeb,keb,
n2,neb,oeb,o2,p2,peb,q2,reb,r2,seb,teb,ueb,s2,t2,u2,veb,web,xeb,Aeb,zeb,v2,Beb,Ceb,Deb,ADa,yeb,Eeb,Heb,Ieb,Keb,aaa,ea;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");};
ha=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&&ea(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
ia=function(a){return a.raw=a};
g.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:baa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");};
eaa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.oa=function(a){return a instanceof Array?a:eaa(g.u(a))};
pa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.w=function(a,b){a.prototype=faa(b.prototype);a.prototype.constructor=a;if(ra)ra(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.Lf=b.prototype};
ua=function(){this.N=!1;this.D=null;this.B=void 0;this.j=1;this.G=this.K=0;this.W=this.C=null};
va=function(a){if(a.N)throw new TypeError("Generator is already running");a.N=!0};
wa=function(a,b){a.C={PV:b,uX:!0};a.j=a.K||a.G};
g.z=function(a,b,c){a.j=c;return{value:b}};
g.xa=function(a){a.j=0};
g.ya=function(a,b,c){a.K=b;void 0!=c&&(a.G=c)};
g.za=function(a,b){a.j=b;a.K=0};
g.Aa=function(a){a.K=0;var b=a.C.PV;a.C=null;return b};
g.Ba=function(a){a.W=[a.C];a.K=0;a.G=0};
g.Da=function(a,b){var c=a.W.splice(0)[0];(c=a.C=a.C||c)?c.uX?a.j=a.K||a.G:void 0!=c.Ka&&a.G<c.Ka?(a.j=c.Ka,a.C=null):a.j=a.G:a.j=b};
gaa=function(a){this.j=new ua;this.B=a};
haa=function(a,b){va(a.j);var c=a.j.D;if(c)return Fa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return Ga(a)};
Fa=function(a,b,c,d){try{var e=b.call(a.j.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.N=!1,e;var f=e.value}catch(h){return a.j.D=null,wa(a.j,h),Ga(a)}a.j.D=null;d.call(a.j,f);return Ga(a)};
Ga=function(a){for(;a.j.j;)try{var b=a.B(a.j);if(b)return a.j.N=!1,{value:b.value,done:!1}}catch(c){a.j.B=void 0,wa(a.j,c)}a.j.N=!1;if(a.j.C){b=a.j.C;a.j.C=null;if(b.uX)throw b.PV;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
iaa=function(a){this.next=function(b){va(a.j);a.j.D?b=Fa(a,a.j.D.next,b,a.j.Z):(a.j.Z(b),b=Ga(a));return b};
this.throw=function(b){va(a.j);a.j.D?b=Fa(a,a.j.D["throw"],b,a.j.Z):(wa(a.j,b),b=Ga(a));return b};
this.return=function(b){return haa(a,b)};
this[Symbol.iterator]=function(){return this}};
jaa=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.Ha=function(a){return jaa(new iaa(new gaa(a)))};
g.Ia=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Ja=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};
kaa=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,w0:f}}return{i:-1,w0:void 0}};
Ka=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+""};
La=function(a){return a?a:Array.prototype.fill};
Pa=function(a){return a?a:Array.prototype.copyWithin};
g.Ra=function(a,b,c){a=a.split(".");c=c||g.Qa;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};
Ta=function(a,b){var c=g.Sa("CLOSURE_FLAGS");a=c&&c[a];return null!=a?a:b};
g.Sa=function(a,b){a=a.split(".");b=b||g.Qa;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
Wa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Ya=function(a){var b=Wa(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.$a=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.db=function(a){return Object.prototype.hasOwnProperty.call(a,ab)&&a[ab]||(a[ab]=++laa)};
maa=function(a,b,c){return a.call.apply(a.bind,arguments)};
naa=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.eb=function(a,b,c){g.eb=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?maa:naa;return g.eb.apply(null,arguments)};
g.fb=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.gb=function(){return Date.now()};
g.ib=function(a,b){function c(){}
c.prototype=b.prototype;a.Lf=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=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)}};
jb=function(a){return a};
oaa=function(a){this.j=a};
nb=function(a,b,c){this.C=a;this.G=b;this.B=c||[];this.j=new Map};
pb=function(a,b){nb.call(this,a,3,b)};
sb=function(a,b){nb.call(this,a,2,b)};
g.ub=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.vb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ya(d)?g.vb.apply(null,d):g.ub(d)}};
g.H=function(){this.Rx=this.Rx;this.Xm=this.Xm};
g.J=function(a,b){a.addOnDisposeCallback(g.fb(g.ub,b))};
wb=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,wb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
xb=function(a,b){var c=wb.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(wb,this,d+a[e])};
paa=function(){};
g.yb=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.B=!1};
g.zb=function(a){return a[a.length-1]};
qaa=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.Db=function(a,b,c){b=Cb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Cb=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.Eb=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.Fb=function(a,b){return 0<=raa(a,b)};
saa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.Hb=function(a,b){b=raa(a,b);var c;(c=0<=b)&&g.Gb(a,b);return c};
g.Gb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.Ib=function(a,b){b=Cb(a,b);0<=b&&g.Gb(a,b)};
taa=function(a,b){var c=0;qaa(a,function(d,e){b.call(void 0,d,e,a)&&g.Gb(a,e)&&c++})};
g.Jb=function(a){return Array.prototype.concat.apply([],arguments)};
g.Kb=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.Lb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Ya(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.Nb=function(a,b,c,d){Array.prototype.splice.apply(a,Mb(arguments,1))};
Mb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
uaa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.$a(e)?"o"+g.db(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.Rb=function(a,b,c){return vaa(a,c||Pb,!1,b)};
Tb=function(a,b){return vaa(a,b,!0)};
vaa=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.Ub=function(a,b){a.sort(b||Pb)};
waa=function(a,b){var c=Pb;g.Ub(a,function(d,e){return c(b(d),b(e))})};
g.Vb=function(a,b){if(!g.Ya(a)||!g.Ya(b)||a.length!=b.length)return!1;for(var c=a.length,d=xaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
Pb=function(a,b){return a>b?1:a<b?-1:0};
xaa=function(a,b){return a===b};
g.Wb=function(a,b,c){c=g.Rb(a,b,c);0>c&&g.Nb(a,-(c+1),0,b)};
g.$b=function(a,b,c){var d={};(0,g.Xb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
yaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
zaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
Baa=function(a){var b=g.Sa("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.Qa.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Aaa(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,ac[c])c=ac[c];else{c=String(c);if(!ac[c]){var f=/function\s+([^\(]+)/m.exec(c);ac[c]=f?f[1]:"[Anonymous]"}c=ac[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"}}return{message:a.message,
name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}};
Aaa=function(a,b){b||(b={});b[Caa(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Caa(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Aaa(a,b));return c};
Caa=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
bc=function(a,b){return 0==a.lastIndexOf(b,0)};
Daa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.cc=function(a){return/^[\s\xa0]*$/.test(a)};
dc=function(a){if(!Eaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Faa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Gaa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Haa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Iaa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Jaa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Kaa,"&#0;"));return a};
g.fc=function(a,b){return-1!=a.indexOf(b)};
hc=function(a,b){return g.fc(a.toLowerCase(),b.toLowerCase())};
g.kc=function(a,b){var c=0;a=ic(String(a)).split(".");b=ic(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=jc(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||jc(0==f[2].length,0==h[2].length)||jc(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
jc=function(a,b){return a<b?-1:a>b?1:0};
g.mc=function(){var a=g.Qa.navigator;return a&&(a=a.userAgent)?a:""};
sc=function(a){return oc||pc?qc?qc.brands.some(function(b){return(b=b.brand)&&g.fc(b,a)}):!1:!1};
uc=function(a){return g.fc(g.mc(),a)};
xc=function(){return oc||pc?!!qc&&0<qc.brands.length:!1};
yc=function(){return xc()?!1:uc("Opera")};
zc=function(){return xc()?!1:uc("Trident")||uc("MSIE")};
Ac=function(){return xc()?!1:uc("Edge")};
Laa=function(){return xc()?sc("Microsoft Edge"):uc("Edg/")};
Bc=function(){return uc("Firefox")||uc("FxiOS")};
Ec=function(){return uc("Safari")&&!(Cc()||(xc()?0:uc("Coast"))||yc()||Ac()||Laa()||(xc()?sc("Opera"):uc("OPR"))||Bc()||uc("Silk")||uc("Android"))};
Cc=function(){return xc()?sc("Chromium"):(uc("Chrome")||uc("CriOS"))&&!Ac()||uc("Silk")};
Maa=function(){return uc("Android")&&!(Cc()||Bc()||yc()||uc("Silk"))};
Naa=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})]||""}};
Oaa=function(a){var b=g.mc();if("Internet Explorer"===a){if(zc())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=Naa(c);switch(a){case "Opera":if(yc())return b(["Version","Opera"]);if(xc()?sc("Opera"):uc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Ac())return b(["Edge"]);if(Laa())return b(["Edg"]);break;case "Chromium":if(Cc())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Bc()||"Safari"===a&&Ec()||"Android Browser"===a&&Maa()||"Silk"===a&&uc("Silk")?(b=c[2])&&b[1]||"":""};
Paa=function(a){if(xc()&&"Silk"!==a){var b=qc.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Oaa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
Fc=function(){return oc||pc?!!qc&&!!qc.platform:!1};
Qaa=function(){return Fc()?"Android"===qc.platform:uc("Android")};
Gc=function(){return uc("iPhone")&&!uc("iPod")&&!uc("iPad")};
Hc=function(){return Gc()||uc("iPad")||uc("iPod")};
Ic=function(){return Fc()?"macOS"===qc.platform:uc("Macintosh")};
Raa=function(){return Fc()?"Windows"===qc.platform:uc("Windows")};
Jc=function(a){Jc[" "](a);return a};
Kc=function(a,b){try{return Jc(a[b]),!0}catch(c){}return!1};
Taa=function(a,b){var c=Saa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
Uaa=function(){var a=g.Qa.document;return a?a.documentMode:void 0};
g.Nc=function(a){return Taa(a,function(){return 0<=g.kc(Mc,a)})};
g.Oc=function(a){return Number(Vaa)>=a};
Waa=function(a){return g.Pc?"webkit"+a:a.toLowerCase()};
Rc=function(a,b){g.yb.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=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.timeStamp=0;this.j=null;a&&this.init(a,b)};
Sc=function(a){return!(!a||!a[Xaa])};
Zaa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Ad=e;this.key=++Yaa;this.removed=this.XG=!1};
Tc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Ad=null};
g.Wc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Xc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Yc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Zc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
$aa=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.cd=function(a){for(var b in a)return b};
aba=function(a){for(var b in a)return a[b]};
dd=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.ed=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.fd=function(a,b){return null!==a&&b in a};
g.gd=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
hd=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
bba=function(a,b){return(b=hd(a,b))&&a[b]};
g.id=function(a){for(var b in a)return!1;return!0};
g.cba=function(a){for(var b in a)delete a[b]};
g.jd=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.kd=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.ld=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.pd=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.pd(a[c]);return b};
g.qd=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<dba.length;f++)c=dba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
rd=function(a){this.src=a;this.listeners={};this.j=0};
g.sd=function(a,b){var c=b.type;c in a.listeners&&g.Hb(a.listeners[c],b)&&(Tc(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
td=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.Ad==d)return e}return-1};
g.vd=function(a,b,c,d,e){if(d&&d.once)return ud(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.vd(a,b[f],c,d,e);return null}c=wd(c);return Sc(a)?a.Ra(b,c,g.$a(d)?!!d.capture:!!d,e):eba(a,b,c,!1,d,e)};
eba=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.$a(e)?!!e.capture:!!e,l=xd(a);l||(a[yd]=l=new rd(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=fba();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)gba||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(hba(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");iba++;return c};
fba=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=jba;return a};
ud=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)ud(a,b[f],c,d,e);return null}c=wd(c);return Sc(a)?a.SI(b,c,g.$a(d)?!!d.capture:!!d,e):eba(a,b,c,!0,d,e)};
kba=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)kba(a,b[f],c,d,e);else d=g.$a(d)?!!d.capture:!!d,c=wd(c),Sc(a)?a.Nc(b,c,d,e):a&&(a=xd(a))&&(b=a.AD(b,c,d,e))&&zd(b)};
zd=function(a){if("number"!==typeof a&&a&&!a.removed){var b=a.src;if(Sc(b))g.sd(b.Xl,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(hba(c),d):b.addListener&&b.removeListener&&b.removeListener(d);iba--;(c=xd(b))?(g.sd(c,a),0==c.j&&(c.src=null,b[yd]=null)):Tc(a)}}};
hba=function(a){return a in Bd?Bd[a]:Bd[a]="on"+a};
jba=function(a,b){if(a.removed)a=!0;else{b=new Rc(b,this);var c=a.listener,d=a.Ad||a.src;a.XG&&zd(a);a=c.call(d,b)}return a};
xd=function(a){a=a[yd];return a instanceof rd?a:null};
wd=function(a){if("function"===typeof a)return a;a[Cd]||(a[Cd]=function(b){return a.handleEvent(b)});
return a[Cd]};
g.Dd=function(){g.H.call(this);this.Xl=new rd(this);this.n4=this;this.zQ=null};
Ed=function(a,b,c,d){b=a.Xl.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.Ad||h.src;h.XG&&g.sd(a.Xl,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Fd=function(a,b){this.C=a;this.D=b;this.B=0;this.j=null};
lba=function(a,b){a.D(b);100>a.B&&(a.B++,b.next=a.j,a.j=b)};
Gd=function(a){return function(){return a}};
g.Hd=function(){};
mba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Id=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Jd=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
nba=function(a,b){var c=0;return function(d){g.Qa.clearTimeout(c);var e=arguments;c=g.Qa.setTimeout(function(){a.apply(b,e)},50)}};
Md=function(){if(void 0===Ld){var a=null,b=g.Qa.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:jb,createScript:jb,createScriptURL:jb})}catch(c){g.Qa.console&&g.Qa.console.error(c.message)}Ld=a}else Ld=a}return Ld};
g.Nd=function(a,b){this.j=a===oba&&b||"";this.B=pba};
Od=function(a){return a instanceof g.Nd&&a.constructor===g.Nd&&a.B===pba?a.j:"type_error:Const"};
Pd=function(a){return new g.Nd(oba,a)};
Qd=function(a){this.j=a;this.Ip=!0};
qba=function(a){return a instanceof Qd&&a.constructor===Qd?a.j:"type_error:SafeScript"};
sba=function(a){var b=Md();a=b?b.createScript(a):a;return new Qd(a,rba)};
g.Rd=function(a){this.j=a};
g.Sd=function(a){return a instanceof g.Rd&&a.constructor===g.Rd?a.j:"type_error:TrustedResourceUrl"};
vba=function(a,b){var c=Od(a);if(!tba.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(uba,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 g.Nd?Od(d):encodeURIComponent(String(d))});
return Td(a)};
Td=function(a){var b=Md();a=b?b.createScriptURL(a):a;return new g.Rd(a,wba)};
g.Ud=function(a){this.j=a};
g.Vd=function(a){return a instanceof g.Ud&&a.constructor===g.Ud?a.j:"type_error:SafeUrl"};
g.Zd=function(a){if(a instanceof g.Ud)return a;a="object"==typeof a&&a.Ip?a.gm():String(a);xba.test(a)?a=new g.Ud(a,Yd):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(yba)?new g.Ud(a,Yd):null);return a};
Aba=function(a){if(a instanceof g.Ud)return a;a="object"==typeof a&&a.Ip?a.gm():String(a);a:{var b=a;if(zba){try{var c=new URL(b)}catch(d){b="https:";break a}b=c.protocol}else b:{c=document.createElement("a");try{c.href=b}catch(d){b=void 0;break b}b=c.protocol;b=":"===b||""===b?"https:":b}}"javascript:"!==b||(a="about:invalid#zClosurez");return new g.Ud(a,Yd)};
g.$d=function(a){this.j=a;this.Ip=!0};
ae=function(a){return a instanceof g.$d&&a.constructor===g.$d?a.j:"type_error:SafeStyle"};
Hba=function(a){if(a instanceof g.Ud)return'url("'+g.Vd(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof g.Nd)a=Od(a);else{a=String(a);var b=a.replace(Bba,"$1").replace(Bba,"$1").replace(Cba,"url");if(Dba.test(b)){if(b=!Eba.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&&Fba(a)}a=b?Gba(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new xb("Value does not allow [{;}], got: %s.",[a]);return a};
Fba=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};
Gba=function(a){return a.replace(Cba,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=(g.Zd(d)||g.be).gm();return c+f+b+f+e})};
g.ce=function(a){this.j=a;this.Ip=!0};
g.de=function(a){return a instanceof g.ce&&a.constructor===g.ce?a.j:"type_error:SafeHtml"};
Iba=function(a){return a instanceof g.ce?a:g.ee(dc("object"==typeof a&&a.Ip?a.gm():String(a)))};
Kba=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=Iba(e),d.push(g.de(e).toString()))}
var c=Iba(Jba),d=[];a.forEach(b);return g.ee(d.join(g.de(c).toString()))};
Lba=function(a){return Kba(Array.prototype.slice.call(arguments))};
g.ee=function(a){var b=Md();a=b?b.createHTML(a):a;return new g.ce(a,Mba)};
Nba=function(a){return ae(a)};
g.Pba=function(a,b){if(Oba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.de(b)};
Qba=function(a,b,c,d){a=a instanceof g.Ud?a:Aba(a);b=b||g.Qa;c=c instanceof g.Nd?Od(c):c||"";return void 0!==d?b.open(g.Vd(a),c,d):b.open(g.Vd(a),c)};
Rba=function(a,b){return a+Math.random()*(b-a)};
g.ie=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.je=function(a,b){a%=b;return 0>a*b?a+b:a};
ke=function(a,b,c){return a+c*(b-a)};
g.le=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
me=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.ne=function(a,b){this.width=a;this.height=b};
g.oe=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
g.pe=function(a){return encodeURIComponent(String(a))};
se=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.te=function(a){return a=dc(a)};
g.ue=function(a){return null==a?"":String(a)};
ve=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
we=function(a){var b=Number(a);return 0==b&&g.cc(a)?NaN:b};
Sba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
Tba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Uba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
Vba=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};
He=function(a){return a?new xe(ye(a)):Wba||(Wba=new xe)};
Ie=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.Je=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.Le=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Ke(document,"*",a,b)};
g.Me=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.Ke(c,"*",a,b)[0]||null}return a||null};
g.Ke=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.Fb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
Ne=function(a,b){g.Wc(b,function(c,d){c&&"object"==typeof c&&c.Ip&&(c=c.gm());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Xba.hasOwnProperty(d)?a.setAttribute(Xba[d],c):bc(d,"aria-")||bc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Yba=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.ne(a.clientWidth,a.clientHeight)};
$ba=function(a){var b=Zba(a);a=a.parentWindow||a.defaultView;return g.We&&a.pageYOffset!=b.scrollTop?new g.le(b.scrollLeft,b.scrollTop):new g.le(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Zba=function(a){return a.scrollingElement?a.scrollingElement:g.Pc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Xe=function(a){return a?a.parentWindow||a.defaultView:window};
Ze=function(a,b,c){var d=arguments,e=document,f=d[1],h=Ye(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):Ne(h,f));2<d.length&&aca(e,h,d,2);return h};
aca=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.Ya(f)||g.$a(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.$a(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.Xb(h?g.Kb(f):f,e)}}};
g.$e=function(a){return Ye(document,a)};
Ye=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.jf=function(a){return document.createTextNode(String(a))};
g.kf=function(a,b){a.appendChild(b)};
g.lf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
mf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.nf=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.of=function(a){var b;if(bca&&(b=a.parentElement))return b;b=a.parentNode;return g.$a(b)&&1==b.nodeType?b:null};
g.pf=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.qf=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.lf(a),a.appendChild(ye(a).createTextNode(String(b)))};
rf=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")||cca(a)):a.hasAttribute("tabindex")&&cca(a))&&g.We){var c;"function"!==typeof a.getBoundingClientRect||g.We&&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};
cca=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
tf=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return sf(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Fb(e.className.split(/\s+/),c))},!0)};
sf=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.Qa.document||document};
Cf=function(a){"function"!==typeof g.Qa.setImmediate||g.Qa.Window&&g.Qa.Window.prototype&&!Ac()&&g.Qa.Window.prototype.setImmediate==g.Qa.setImmediate?(Bf||(Bf=dca()),Bf(a)):g.Qa.setImmediate(a)};
dca=function(){var a=g.Qa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!uc("Presto")&&(a=function(){var e=g.$e("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.eb)(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&&!zc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.eV;c.eV=null;e()}};
return function(e){d.next={eV:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Qa.setTimeout(e,0)}};
Df=function(a){g.Qa.setTimeout(function(){throw a;},0)};
Ef=function(){this.B=this.j=null};
Ff=function(){this.next=this.scope=this.Ls=null};
g.If=function(a,b){Gf||eca();Hf||(Gf(),Hf=!0);fca.add(a,b)};
eca=function(){if(g.Qa.Promise&&g.Qa.Promise.resolve){var a=g.Qa.Promise.resolve(void 0);Gf=function(){a.then(gca)}}else Gf=function(){Cf(gca)}};
gca=function(){for(var a;a=fca.remove();){try{a.Ls.call(a.scope)}catch(b){Df(b)}lba(hca,a)}Hf=!1};
g.Kf=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Hd)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)}};
ica=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1};
Uf=function(a,b,c){var d=jca.get();d.C=a;d.B=b;d.context=c;return d};
Vf=function(a){if(a instanceof g.Kf)return a;var b=new g.Kf(g.Hd);Jf(b,2,a);return b};
Wf=function(a){return new g.Kf(function(b,c){c(a)})};
g.lca=function(a,b,c){kca(a,b,c,null)||g.If(g.fb(b,a))};
mca=function(a){return new g.Kf(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.lca(e,b,c)})};
oca=function(){var a,b,c=new g.Kf(function(d,e){a=d;b=e});
return new nca(c,a,b)};
Yf=function(a,b){b=Uf(b,b);b.D=!0;Xf(a,b);return a};
pca=function(a,b){if(0==a.j)if(a.C){var c=a.C;if(c.B){for(var d=0,e=null,f=null,h=c.B;h&&(h.D||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?pca(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):qca(c),rca(c,e,3,b)))}a.C=null}else Jf(a,3,b)};
Xf=function(a,b){a.B||2!=a.j&&3!=a.j||sca(a);a.D?a.D.next=b:a.B=b;a.D=b};
tca=function(a,b,c,d){var e=Uf(null,null,null);e.j=new g.Kf(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.B=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof Zf?h(l):f(m)}catch(n){h(n)}}:h});
e.j.C=a;Xf(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,kca(c,a.hca,a.ica,a)||(a.N=c,a.j=b,a.C=null,sca(a),3!=b||c instanceof Zf||uca(a,c)))};
kca=function(a,b,c,d){if(a instanceof g.Kf)return Xf(a,Uf(b||g.Hd,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.$a(a))try{var f=a.then;if("function"===typeof f)return vca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
vca=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)}};
sca=function(a){a.K||(a.K=!0,g.If(a.F5,a))};
qca=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b};
rca=function(a,b,c,d){if(3==c&&b.B&&!b.D)for(;a&&a.G;a=a.C)a.G=!1;if(b.j)b.j.C=null,wca(b,c,d);else try{b.D?b.C.call(b.context):wca(b,c,d)}catch(e){xca.call(null,e)}lba(jca,b)};
wca=function(a,b,c){2==b?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)};
uca=function(a,b){a.G=!0;g.If(function(){a.G&&xca.call(null,b)})};
Zf=function(a){wb.call(this,a)};
nca=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
g.$f=function(a,b){g.Dd.call(this);this.Yi=a||1;this.YF=b||g.Qa;this.YU=(0,g.eb)(this.Rba,this);this.HX=g.gb()};
g.ag=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.eb)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.eb)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.Qa.setTimeout(a,b||0)};
bg=function(a,b){var c=null;return(new g.Kf(function(d,e){c=g.ag(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).Al(function(d){g.Qa.clearTimeout(c);
throw d;})};
g.cg=function(a){g.H.call(this);this.N=a;this.C=0;this.D=100;this.G=!1;this.B=new Map;this.K=new Set;this.flushInterval=3E4;this.j=new g.$f(this.flushInterval);this.j.Ra("tick",this.Sx,!1,this);g.J(this,this.j)};
yca=function(a){a.j.enabled||a.j.start();a.C++;a.C>=a.D&&a.Sx()};
zca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)};
Aca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Bca=function(a){this.j=a;this.j.KG("/client_streamz/po/w/rl",{Ue:3,Te:"mn"},{Ue:2,Te:"ac"},{Ue:2,Te:"sc"},{Ue:3,Te:"rk"})};
Cca=function(a){this.j=a;this.j.KG("/client_streamz/po/w/el",{Ue:3,Te:"en"},{Ue:3,Te:"rk"})};
Dca=function(a){this.j=a;this.j.Fk("/client_streamz/po/w/cec",{Ue:2,Te:"ec"},{Ue:3,Te:"rk"})};
Eca=function(a){this.j=a;this.j.Fk("/client_streamz/po/w/csc",{Ue:2,Te:"cs"},{Ue:3,Te:"rk"})};
Fca=function(a){this.j=a;this.j.Fk("/client_streamz/po/w/ctav",{Ue:3,Te:"av"},{Ue:3,Te:"rk"})};
Gca=function(a){this.j=a;this.j.Fk("/client_streamz/po/w/cwsc",{Ue:3,Te:"su"},{Ue:3,Te:"rk"})};
dg=function(){throw Error("Invalid UTF8");};
Hca=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
Lca=function(a){var b=!1;b=void 0===b?!1:b;if(Ica){if(b&&(Jca?!a.j():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Found an unpaired surrogate");a=(Kca||(Kca=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};
Mca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
Nca=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.eg=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.fg=function(a,b){void 0===b&&(b=0);Oca();b=Pca[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.gg=function(a,b){if(Qca&&!b)a=g.Qa.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.fg(c,b)}return a};
Sca=function(a){var b=[];Rca(a,function(c){b.push(c)});
return b};
rg=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.fc("=.",a[b-1])&&(c=g.fc("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Rca(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
Rca=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=sg[n];if(null!=p)return p;if(!g.cc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Oca();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))}};
Oca=function(){if(!sg){sg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Pca[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===sg[f]&&(sg[f]=e)}}}};
Uca=function(a){if(!Tca)return g.fg(a);for(var b="",c=0,d=a.length-10240;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)};
Wca=function(a){return Vca[a]||""};
Yca=function(a){if(!Tca)return rg(a);Xca.test(a)&&(a=a.replace(Xca,Wca));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
tg=function(a){return Zca&&null!=a&&a instanceof Uint8Array};
ug=function(){return $ca||($ca=new Uint8Array(0))};
ada=function(a){if(a!==vg)throw Error("illegal external caller");};
wg=function(a,b){ada(b);this.Ud=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
xg=function(){return bda||(bda=new wg(null,vg))};
cda=function(a){var b=a.Ud;return null==b?"":"string"===typeof b?b:a.Ud=Uca(b)};
zg=function(a){return(a=yg(a))?new Uint8Array(a):ug()};
yg=function(a){ada(vg);var b=a.Ud;b=null==b||tg(b)?b:"string"===typeof b?Yca(b):null;return null==b?b:a.Ud=b};
dda=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Ag=function(){return Error("Failed to read varint, encoding is invalid.")};
eda=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
fda=function(a){return 0==a.length?xg():new wg(a,vg)};
Bg=function(a){if("string"===typeof a)return{buffer:Yca(a),Vv:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Vv:!1};if(a.constructor===Uint8Array)return{buffer:a,Vv:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Vv:!1};if(a.constructor===wg)return{buffer:yg(a)||ug(),Vv:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Vv:!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");
};
Cg=function(){return"function"===typeof BigInt};
Gg=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.u(Dg(c,a)),b=c.next().value,a=c.next().value,c=b);Eg=c>>>0;Fg=a>>>0};
gda=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=4294967296*b+(a>>>0);return c?-a:a};
Hg=function(a,b){b>>>=0;a>>>=0;if(2097151>=b)var c=""+(4294967296*b+a);else Cg()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+6777216*c+6710656*b,c+=8147497*b,b*=2,1E7<=a&&(c+=Math.floor(a/1E7),a%=1E7),1E7<=c&&(b+=Math.floor(c/1E7),c%=1E7),c=b+hda(c)+hda(a));return c};
hda=function(a){a=String(a);return"0000000".slice(a.length)+a};
ida=function(){var a=Eg,b=Fg;b&2147483648?Cg()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=g.u(Dg(a,b)),a=b.next().value,b=b.next().value,a="-"+Hg(a,b)):a=Hg(a,b);return a};
Ug=function(a){if(16>a.length)Gg(Number(a));else if(Cg())a=BigInt(a),Eg=Number(a&BigInt(4294967295))>>>0,Fg=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);Fg=Eg=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)),Fg*=1E6,Eg=1E6*Eg+d,4294967296<=Eg&&(Fg+=Math.trunc(Eg/4294967296),Fg>>>=0,Eg>>>=0);b&&(b=g.u(Dg(Eg,Fg)),a=b.next().value,b=b.next().value,Eg=a,Fg=b)}};
Dg=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
jda=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)};
Wg=function(a){var b=0,c=0,d=0,e=a.B,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;Vg(a,f);if(128>h)return gda(b>>>0,c>>>0);throw Ag();};
Vg=function(a,b){a.j=b;if(b>a.C)throw eda(a.C,b);};
Xg=function(a){var b=a.B,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 Ag();Vg(a,c);return e};
Yg=function(a){var b=a.B,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};
Zg=function(a){var b=Yg(a);return 4294967296*Yg(a)+(b>>>0)};
$g=function(a){var b=Yg(a),c=Yg(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)};
ah=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;c<d;){var f=e[c++];b|=f;if(0===(f&128))return Vg(a,c),!!(b&127)}throw Ag();};
kda=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.C)throw eda(b,a.C-c);a.j=d;return c};
mda=function(a,b){if(0==b)return xg();var c=kda(a,b);a.LG&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?ug():lda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return fda(c)};
ch=function(a,b){if(bh.length){var c=bh.pop();c.init(a,void 0,void 0,b);a=c}else a=new jda(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;nda(this,b)};
nda=function(a,b){b=void 0===b?{}:b;a.lN=void 0===b.lN?!1:b.lN};
oda=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=Xg(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw dda(c,a.C);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0};
dh=function(a){switch(a.B){case 0:0!=a.B?dh(a):ah(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.B)dh(a);else{var b=Xg(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.D;do{if(!oda(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.B){if(a.D!=b)throw Error("Unmatched end-group tag");break}dh(a)}while(1);break;default:throw dda(a.B,a.C);}};
eh=function(a,b,c){var d=a.j.C,e=Xg(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.C=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.C=d};
hh=function(a){var b=Xg(a.j)>>>0;a=a.j;var c=kda(a,b);a=a.B;if(pda){var d=a,e;(e=fh)||(e=fh=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=0===c&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if(void 0===gh){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),gh=!0}catch(p){gh=!1}}!gh&&(fh=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?dg():(m=a[f++],194>l||128!==(m&192)?(f--,dg()):c.push((l&31)<<6|m&63)):
240>l?f>=b-1?dg():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((e=a[f++])&192)?(f--,dg()):c.push((l&15)<<12|(m&63)<<6|e&63)):244>=l?f>=b-2?dg():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((e=a[f++])&192)||128!==((d=a[f++])&192)?(f--,dg()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):dg(),8192<=c.length&&(h=Hca(h,c),c.length=0);f=Hca(h,c)}return f};
qda=function(a){var b=Xg(a.j)>>>0;return mda(a.j,b)};
rda=function(a,b){this.B=a>>>0;this.j=b>>>0};
tda=function(a){if(!a)return sda||(sda=new rda(0,0));if(!/^\d+$/.test(a))return null;Ug(a);return new rda(Eg,Fg)};
uda=function(a,b){this.B=a>>>0;this.j=b>>>0};
wda=function(a){if(!a)return vda||(vda=new uda(0,0));if(!/^-?\d+$/.test(a))return null;Ug(a);return new uda(Eg,Fg)};
ih=function(){this.j=[]};
xda=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)};
Ch=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
yda=function(a,b){if(0<=b)Ch(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
Dh=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)};
zda=function(){this.C=[];this.B=0;this.j=new ih};
Eh=function(a,b){0!==b.length&&(a.C.push(b),a.B+=b.length)};
Fh=function(a,b,c){Ch(a.j,8*b+c)};
Ada=function(a,b,c){null!=c&&("string"===typeof c&&tda(c),Fh(a,b,1),"number"===typeof c?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,Eg=b,Fg=c,Dh(a,Eg),Dh(a,Fg)):(c=tda(c),a=a.j,b=c.j,Dh(a,c.B),Dh(a,b)))};
Gh=function(a,b,c){Fh(a,b,2);Ch(a.j,c.length);Eh(a,a.j.end());Eh(a,c)};
Hh=function(a,b,c,d){this.cL=a;this.dL=b;this.j=c;this.K0=d};
Ih=function(a){return Array.prototype.slice.call(a)};
Bda=function(a){var b=Jh(a);1!==(b&1)&&(Object.isFrozen(a)&&(a=Ih(a)),Kh(a,b|1))};
Lh=function(a,b,c){return c?a|b:a&~b};
Cda=function(){var a=[];Mh(a,1);return a};
Dda=function(a,b){Kh(b,(a|0)&-14591)};
Nh=function(a,b){Kh(b,(a|34)&-14557)};
Oh=function(a){a=a>>14&1023;return 0===a?536870912:a};
Fda=function(a){return!(!a||"object"!==typeof a||a.Kjb!==Eda)};
Ph=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
Qh=function(a,b,c,d){if(null==a){if(!c)throw Error();}else if("string"===typeof a)a=a?new wg(a,vg):xg();else if(a.constructor!==wg)if(tg(a))a=d?fda(a):a.length?new wg(new Uint8Array(a),vg):xg();else{if(!b)throw Error();a=void 0}return a};
Rh=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=Jh(a);if(d&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;Kh(a,d|1);return!0};
Sh=function(a){if(a&2)throw Error();};
Gda=function(a,b){if("number"!==typeof b||0>b||b>=a.length)throw Error();};
Hda=function(a,b){(b=Th?b[Th]:void 0)&&(a[Th]=Ih(b))};
Uh=function(a){a=Error(a);a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity="warning";return a};
Vh=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a};
Ida=function(a){if(null==a||"number"===typeof a)return a;if("NaN"===a||"Infinity"===a||"-Infinity"===a)return Number(a)};
Jda=function(a){return a.displayName||a.name||"unknown type name"};
Kda=function(a){if("boolean"!==typeof a)throw Error("Expected boolean but got "+Wa(a)+": "+a);return a};
Lda=function(a){if(null==a||"boolean"===typeof a)return a;if("number"===typeof a)return!!a};
Wh=function(a){var b=typeof a;return"number"===b?Number.isFinite(a):"string"!==b?!1:Mda.test(a)};
Xh=function(a){if(!Number.isFinite(a))throw Uh("enum");return a|0};
oi=function(a){return null==a?a:Number.isFinite(a)?a|0:void 0};
Nda=function(a){if("number"!==typeof a)throw Uh("int32");if(!Number.isFinite(a))throw Uh("int32");return a|0};
pi=function(a){return null==a?a:Nda(a)};
qi=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a|0:void 0};
ri=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a>>>0:void 0};
Pda=function(a,b){b=!!b;if(!Wh(a))throw Uh("int64");return"string"===typeof a?si(a):b?Oda(a):ti(a)};
ui=function(a){return null==a?a:Pda(a)};
vi=function(a){return"-"===a[0]?!1:20>a.length?!0:20===a.length&&184467>Number(a.substring(0,6))};
Qda=function(a){return"-"===a[0]?20>a.length?!0:20===a.length&&-922337<Number(a.substring(0,7)):19>a.length?!0:19===a.length&&922337>Number(a.substring(0,6))};
Rda=function(a){if(0>a){Gg(a);var b=Hg(Eg,Fg);a=Number(b);return Number.isSafeInteger(a)?a:b}if(vi(String(a)))return a;Gg(a);return 4294967296*Fg+(Eg>>>0)};
ti=function(a){Wh(a);a=Math.trunc(a);Number.isSafeInteger(a)||(Gg(a),a=gda(Eg,Fg));return a};
wi=function(a){Wh(a);a=Math.trunc(a);return 0<=a&&Number.isSafeInteger(a)?a:Rda(a)};
Oda=function(a){Wh(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);Qda(b)?a=b:(Gg(a),a=ida())}return a};
si=function(a){Wh(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));Qda(a)||(Ug(a),a=ida());return a};
xi=function(a){Wh(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b)&&0<=b)return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));vi(a)||(Ug(a),a=Hg(Eg,Fg));return a};
Sda=function(a){var b=!!b;if(!Wh(a))throw Uh("uint64");"string"===typeof a?a=xi(a):b?(Wh(a),a=Math.trunc(a),0<=a&&Number.isSafeInteger(a)?a=String(a):(b=String(a),vi(b)?a=b:(Gg(a),a=Hg(Eg,Fg)))):a=wi(a);return a};
Tda=function(a){if(null==a)return a;if(Wh(a)){if("string"===typeof a)return xi(a);if("number"===typeof a)return wi(a)}};
Uda=function(a){if(null==a||"string"==typeof a||tg(a)||a instanceof wg)return a};
yi=function(a){if("string"!==typeof a)throw Error();return a};
zi=function(a){if(null!=a&&"string"!==typeof a)throw Error();return a};
Ai=function(a){return null==a||"string"===typeof a?a:void 0};
Bi=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Jda(b)+" but got "+(a&&Jda(a.constructor)));return a};
Vda=function(a,b,c){if(null!=a&&"object"===typeof a&&a.fJ===Ci)return a;if(Array.isArray(a)){var d=Jh(a),e=d;0===e&&(e|=c&32);e|=c&2;e!==d&&Kh(a,e);return new b(a)}};
Ei=function(a,b){Di=b;a=new a(b);Di=void 0;return a};
Gi=function(a){switch(typeof a){case "boolean":return Fi||(Fi=[0,void 0,!0]);case "number":return 0<a?void 0:0===a?Wda||(Wda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
M=function(a,b,c){null==a&&(a=Di);Di=void 0;if(null==a){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error();d=Jh(a);if(d&64)return Hi&&delete a[Hi],a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error();a:{c=a;var e=c.length;if(e){var f=e-1;if(Ph(c[f])){d|=256;b=f-(+!!(d&512)-1);if(1024<=b)throw Error();d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(1024<b)throw Error();d=d&-16760833|(b&1023)<<14}}}Kh(a,d);return a};
Yda=function(a,b){return Xda(b)};
Xda=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a){if(Array.isArray(a))return Zda||!Rh(a,void 0,9999)?a:void 0;if(tg(a))return Uca(a);if(a instanceof wg)return cda(a)}}return a};
$da=function(a,b,c){var d=Ih(a),e=d.length,f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b<e;b++)d[b]=c(d[b]);if(f){b=d[b]={};for(var h in f)b[h]=c(f[h])}Hda(d,a);return d};
aea=function(a,b,c,d,e,f){if(null!=a){if(Array.isArray(a))a=e&&0==a.length&&Jh(a)&1?void 0:f&&Jh(a)&2?a:Zi(a,b,c,void 0!==d,e,f);else if(Ph(a)){var h={},l;for(l in a)h[l]=aea(a[l],b,c,d,e,f);a=h}else a=b(a,d);return a}};
Zi=function(a,b,c,d,e,f){var h=d||c?Jh(a):0;d=d?!!(h&32):void 0;for(var l=Ih(a),m=0;m<l.length;m++)l[m]=aea(l[m],b,c,d,e,f);c&&(Hda(l,a),c(h,l));return l};
bea=function(a){return a.fJ===Ci?a.toJSON():Xda(a)};
cea=function(a,b,c){c=void 0===c?Nh:c;if(null!=a){if(Zca&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=Jh(a);if(d&2)return a;b&&(b=0===d||!!(d&32)&&!(d&64||!(d&16)));return b?(Kh(a,(d|34)&-12293),a):Zi(a,cea,d&4?Nh:c,!0,!1,!0)}a.fJ===Ci&&(c=a.ea,d=$i(c),a=d&2?a:Ei(a.constructor,aj(c,d,!0)));return a}};
aj=function(a,b,c){var d=c||b&2?Nh:Dda,e=!!(b&32);a=$da(a,b,function(f){return cea(f,e,d)});
Mh(a,32|(c?2:0));return a};
bj=function(a){var b=a.ea,c=$i(b);return c&2?Ei(a.constructor,aj(b,c,!1)):a};
dj=function(a,b){a=a.ea;return cj(a,$i(a),b)};
cj=function(a,b,c,d){if(-1===c)return null;if(c>=Oh(b)){if(b&256)return a[a.length-1][c]}else{var e=a.length;if(d&&b&256&&(d=a[e-1][c],null!=d))return d;b=c+(+!!(b&512)-1);if(b<e)return a[b]}};
fj=function(a,b,c){var d=a.ea,e=$i(d);Sh(e);ej(d,e,b,c);return a};
ej=function(a,b,c,d,e){var f=Oh(b);if(c>=f||e){e=b;if(b&256)f=a[a.length-1];else{if(null==d)return e;f=a[f+(+!!(b&512)-1)]={};e|=256}f[c]=d;e!==b&&Kh(a,e);return e}a[c+(+!!(b&512)-1)]=d;b&256&&(a=a[a.length-1],c in a&&delete a[c]);return b};
gj=function(a,b,c){return void 0!==dea(a,b,c,!1)};
jj=function(a,b,c,d,e){var f=b&2,h=cj(a,b,c,e);Array.isArray(h)||(h=hj);var l=!(d&2);d=!(d&1);var m=!!(b&32),n=Jh(h);0!==n||!m||f||l?n&1||(n|=1,Kh(h,n)):(n|=33,Kh(h,n));f?(a=!1,n&2||(Mh(h,34),a=!!(4&n)),(d||a)&&Object.freeze(h)):(f=!!(2&n)||!!(2048&n),d&&f?(h=Ih(h),d=1,m&&!l&&(d|=32),Kh(h,d),ej(a,b,c,h,e)):l&&n&32&&!f&&ij(h,32));return h};
mj=function(a,b,c,d,e,f){a=a.ea;var h=$i(a);d=2&h?1:d;f=!!f;var l=eea(a,h,b,e),m=Jh(l);if(!(4&m)){if(4&m||Object.isFrozen(l))l=Ih(l),m=kj(m,h,f),h=ej(a,h,b,l,e);for(var n=0,p=0;n<l.length;n++){var q=c(l[n]);null!=q&&(l[p++]=q)}p<n&&(l.length=p);m=fea(m,h,f);m=Lh(m,20,!0);c=Lh(m,4096,!1);m=c=Lh(c,8192,!1);Kh(l,m);2&m&&Object.freeze(l)}lj(m)||(c=m,(n=1===d)?m=Lh(m,2,!0):f||(m=Lh(m,32,!1)),m!==c&&Kh(l,m),n&&Object.freeze(l));2===d&&lj(m)&&(l=Ih(l),m=kj(m,h,f),Kh(l,m),ej(a,h,b,l,e));return l};
eea=function(a,b,c,d){a=cj(a,b,c,d);return Array.isArray(a)?a:hj};
fea=function(a,b,c){0===a&&(a=kj(a,b,c));return a=Lh(a,1,!0)};
lj=function(a){return!!(2&a)&&!!(4&a)||!!(2048&a)};
gea=function(a){return Qh(a,!0,!0,!0)};
hea=function(a){return Qh(a,!0,!0,!1)};
nj=function(a,b){a=a.ea;var c=$i(a),d=cj(a,c,b),e=Qh(d,!0,!0,!!(c&34));null!=e&&e!==d&&ej(a,c,b,e);return null==e?xg():e};
oj=function(a,b,c,d){var e=a.ea,f=$i(e);Sh(f);if(null==c)return ej(e,f,b),a;var h=Jh(c),l=h,m=!!(2&h)||Object.isFrozen(c),n=!m&&!1;if(!(4&h))for(h=21,m&&(c=Ih(c),l=0,h=kj(h,f,!0)),m=0;m<c.length;m++)c[m]=d(c[m]);n&&(c=Ih(c),l=0,h=kj(h,f,!0));h!==l&&Kh(c,h);ej(e,f,b,c);return a};
pj=function(a,b,c,d){var e=a.ea,f=$i(e);Sh(f);ej(e,f,b,("0"===d?0===Number(c):c===d)?void 0:c);return a};
Cj=function(a,b,c,d,e){Bj(a.ea,b,c,d,e);return a};
Bj=function(a,b,c,d,e){var f=$i(a);Sh(f);a=jj(a,f,b,2);b=Jh(a);d=c(d,!!(4&b)&&!!(4096&b));void 0!=e?a.splice(e,0,d):a.push(d)};
iea=function(a){return a};
jea=function(a,b,c,d,e,f){Sh($i(a.ea));b=f(a,b,2,void 0,!0);if("number"!==typeof d||0>d||d>b.length)throw Error();f=Jh(b);b[d]=c(e,!!(4&f)&&!!(4096&f));return a};
Ej=function(a,b,c,d){var e=a.ea,f=$i(e);Sh(f);(c=Dj(e,f,c))&&c!==b&&null!=d&&(f=ej(e,f,c));ej(e,f,b,d);return a};
Fj=function(a,b,c,d){var e=$i(a);Sh(e);(c=Dj(a,e,c))&&c!==b&&(e=ej(a,e,c));ej(a,e,b,d)};
Gj=function(a,b,c){a=a.ea;return Dj(a,$i(a),b)===c?c:-1};
Dj=function(a,b,c){for(var d=0,e=0;e<c.length;e++){var f=c[e];null!=cj(a,b,f)&&(0!==d&&(b=ej(a,b,d)),d=f)}return d};
Hj=function(a,b,c,d){var e=$i(a);Sh(e);var f=cj(a,e,c,d),h;if(null!=f&&f.fJ===Ci)return b=bj(f),b!==f&&ej(a,e,c,b,d),b.ea;if(Array.isArray(f)){var l=Jh(f);l&2?h=aj(f,l,!1):h=f;h=M(h,b[0],b[1])}else h=M(void 0,b[0],b[1]);h!==f&&ej(a,e,c,h,d);return h};
dea=function(a,b,c,d){a=a.ea;var e=$i(a),f=cj(a,e,c,d);b=Vda(f,b,e);b!==f&&null!=b&&ej(a,e,c,b,d);return b};
g.Ij=function(a,b,c,d){d=void 0===d?!1:d;b=dea(a,b,c,d);if(null==b)return b;a=a.ea;var e=$i(a);if(!(e&2)){var f=bj(b);f!==b&&(b=f,ej(a,e,c,b,d))}return b};
kea=function(a,b,c,d,e,f){var h=!!(2&b),l=h?1:2,m=1===l;l=2===l;e=!!e;f&&(f=!h);h=eea(a,b,d);var n=Jh(h),p=!!(4&n);if(!p){n=fea(n,b,e);var q=h,r=b,t;(t=!!(2&n))&&(r=Lh(r,2,!0));for(var v=!t,x=!0,B=0,F=0;B<q.length;B++){var G=Vda(q[B],c,r);if(G instanceof c){if(!t){var I=!!(Jh(G.ea)&2);v&&(v=!I);x&&(x=I)}q[F++]=G}}F<B&&(q.length=F);n=Lh(n,4,!0);n=Lh(n,16,x);n=Lh(n,8,v);Kh(q,n);t&&Object.freeze(q)}c=!!(8&n)||m&&!h.length;if(f&&!c){lj(n)&&(h=Ih(h),n=kj(n,b,e),b=ej(a,b,d,h));f=h;c=n;for(q=0;q<f.length;q++)n=
f[q],r=bj(n),n!==r&&(f[q]=r);c=Lh(c,8,!0);c=Lh(c,16,!f.length);Kh(f,c);n=c}lj(n)||(f=n,m?n=Lh(n,!h.length||16&n&&(!p||32&n)?2:2048,!0):e||(n=Lh(n,32,!1)),n!==f&&Kh(h,n),m&&Object.freeze(h));l&&lj(n)&&(h=Ih(h),n=kj(n,b,e),Kh(h,n),ej(a,b,d,h));return h};
lea=function(a,b){a=a.ea;var c=$i(a);return kea(a,c,b,3,!1,!(2&c))};
Jj=function(a,b,c,d){null!=d?Bi(d,b):d=void 0;return fj(a,c,d)};
Kj=function(a,b,c,d,e){null!=e?Bi(e,b):e=void 0;return Ej(a,c,d,e)};
Lj=function(a,b,c,d){var e=a.ea,f=$i(e);Sh(f);if(null==d)return ej(e,f,c),a;for(var h=Jh(d),l=h,m=!!(2&h)||!!(2048&h),n=m||Object.isFrozen(d),p=!n&&!1,q=!0,r=!0,t=0;t<d.length;t++){var v=d[t];Bi(v,b);m||(v=!!(Jh(v.ea)&2),q&&(q=!v),r&&(r=v))}m||(h=Lh(h,5,!0),h=Lh(h,8,q),h=Lh(h,16,r));if(p||n&&h!==l)d=Ih(d),l=0,h=kj(h,f,!0);h!==l&&Kh(d,h);ej(e,f,c,d);return a};
kj=function(a,b,c){a=Lh(a,2,!!(2&b));a=Lh(a,32,!!(32&b)&&c);return a=Lh(a,2048,!1)};
Mj=function(a,b,c,d,e){var f=a.ea,h=$i(f);Sh(h);b=kea(f,h,c,b,!0);c=null!=d?Bi(d,c):new c;void 0!=e?b.splice(e,void 0,c):b.push(c);Jh(c.ea)&2?ij(b,8):ij(b,16);return a};
Nj=function(a,b){a=dj(a,b);var c;null==a?c=a:Wh(a)?"number"===typeof a?c=ti(a):c=si(a):c=void 0;return c};
mea=function(a){a=dj(a,1);var b=void 0===b?!1:b;b=null==a?a:Wh(a)?"string"===typeof a?si(a):b?Oda(a):ti(a):void 0;return b};
Oj=function(a,b){return Ai(dj(a,b))};
nea=function(a,b,c,d,e){return mj(a,b,Ai,c,d,e)};
oea=function(a,b,c,d,e){return mj(a,b,oi,c,d,e)};
Pj=function(a,b){return null!=a?a:b};
pea=function(a){return Qh(a,!1,!1,!1)};
Qj=function(a,b,c){c=void 0===c?0:c;return Pj(qi(dj(a,b)),c)};
Rj=function(a,b){var c=void 0===c?0:c;return Pj(ri(dj(a,b)),c)};
qea=function(a,b){var c=void 0===c?0:c;return Pj(Nj(a,b),c)};
Sj=function(a,b){var c=void 0===c?0:c;a=dj(a,b);a=null==a?a:Wh(a)?"number"===typeof a?wi(a):xi(a):void 0;return Pj(a,c)};
rea=function(a,b){var c=void 0===c?0:c;a=a.ea;var d=$i(a),e=cj(a,d,b),f=Ida(e);null!=f&&f!==e&&ej(a,d,b,f);return Pj(f,c)};
g.Tj=function(a,b){return Pj(Oj(a,b),"")};
Uj=function(a,b){var c=0;c=void 0===c?0:c;return Pj(oi(dj(a,b)),c)};
sea=function(a,b,c){a=oea(a,b,3,void 0,!0);Gda(a,c);return a[c]};
Vj=function(a,b,c){return fj(a,b,null==c?c:Kda(c))};
Wj=function(a,b,c){return fj(a,b,pi(c))};
Xj=function(a,b,c){if(null!=c){if("number"!==typeof c)throw Uh("uint32");if(!Number.isFinite(c))throw Uh("uint32");c>>>=0}fj(a,b,c)};
Yj=function(a,b,c){return fj(a,b,ui(c))};
Zj=function(a,b,c){fj(a,b,null==c?c:Sda(c))};
ak=function(a,b,c){return fj(a,b,Vh(c))};
N=function(a,b,c){return fj(a,b,zi(c))};
xk=function(a,b,c){return pj(a,b,zi(c),"")};
yk=function(a,b,c){return fj(a,b,Qh(c,!1,!0,!1))};
O=function(a,b,c){return fj(a,b,null==c?c:Xh(c))};
zk=function(a,b,c,d){Ej(a,b,c,null==d?d:Xh(d))};
Q=function(a,b,c){this.ea=M(a,b,c)};
tea=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);Mh(b,32);return Ei(a,b)};
Ak=function(a,b,c){var d=a.constructor.yb,e=$i(c?a.ea:b),f=Oh(e),h=!1;if(d&&Zda){if(!c){b=Ih(b);var l;if(b.length&&Ph(l=b[b.length-1]))for(h=0;h<d.length;h++)if(d[h]>=f){Object.assign(b[b.length-1]={},l);break}h=!0}f=b;c=!c;l=$i(a.ea);a=Oh(l);l=+!!(l&512)-1;for(var m,n,p=0;p<d.length;p++)if(n=d[p],n<a){n+=l;var q=f[n];null==q?f[n]=c?hj:Cda():c&&q!==hj&&Bda(q)}else m||(q=void 0,f.length&&Ph(q=f[f.length-1])?m=q:f.push(m={})),q=m[n],null==m[n]?m[n]=c?hj:Cda():c&&q!==hj&&Bda(q)}m=b.length;if(!m)return b;
var r;if(Ph(f=b[m-1])){a:{var t=f;c={};a=!1;for(var v in t){l=t[v];if(Array.isArray(l)){p=l;if(!uea&&Rh(l,d,+v)||!vea&&Fda(l)&&0===l.size)l=null;l!=p&&(a=!0)}null!=l?c[v]=l:a=!0}if(a){for(var x in c){t=c;break a}t=null}}t!=f&&(r=!0);m--}for(e=+!!(e&512)-1;0<m;m--){v=m-1;f=b[v];if(!(null==f||!uea&&Rh(f,d,v-e)||!vea&&Fda(f)&&0===f.size))break;var B=!0}if(!r&&!B)return b;var F;h?F=b:F=Array.prototype.slice.call(b,0,m);b=F;h&&(b.length=m);t&&b.push(t);return b};
xea=function(a){return Array.isArray(a)?a[0]instanceof Hh?a:[wea,a]:[a,void 0]};
Bk=function(a,b,c){if(Array.isArray(b)){var d=Jh(b);if(d&4)return b;for(var e=0,f=0;e<b.length;e++){var h=a(b[e]);null!=h&&(b[f++]=h)}f<e&&(b.length=f);c&&(Kh(b,(d|5)&-12289),d&2&&Object.freeze(b));return b}};
Fk=function(a){var b=a[yea];if(!b){var c=zea(a),d=Ck(a),e=d.j;b=e?function(f,h){return e(f,h,d)}:function(f,h){for(;oda(h)&&4!=h.B;){var l=h.D,m=d[l];
if(!m){var n=d.extensions;n&&(n=n[l])&&(m=d[l]=Aea(n))}m&&m(h,f,l)||(m=h,l=m.C,dh(m),m.lN?m=void 0:(n=m.j.j-l,m.j.j=l,m=mda(m.j,n)),l=f,m&&(Th||(Th=Symbol()),(n=l[Th])?n.push(m):l[Th]=[m]))}c===Dk||c===Ek||c.Z$||(f[Hi||(Hi=Symbol())]=c)};
a[yea]=b}return b};
Aea=function(a){a=xea(a);var b=a[0].cL;if(a=a[1]){var c=Fk(a),d=Ck(a).lA;return function(e,f,h){return b(e,f,h,d,c)}}return b};
Bea=function(a,b,c){var d=c[1];if(d){var e=d[Gk];var f=e?e.lA:Gi(d[0]);a[b]=null!=e?e:d}f&&f===Fi?(a.aY||(a.aY=[])).push(b):c[0]&&(a.NZ||(a.NZ=[])).push(b)};
Cea=function(a,b){return[a.j,!b||0<b[0]?void 0:b]};
zea=function(a){var b=a[Gk];if(b)return b;b=Hk(a,a[Gk]={},Cea,Cea,Bea);if(!b.NZ&&!b.aY){var c=!0,d;for(d in b){isNaN(d)||(c=!1);break}c?(b=Gi(a[0])===Fi,b=a[Gk]=b?Ek||(Ek={lA:Gi(!0)}):Dk||(Dk={})):b.Z$=!0}return b};
Dea=function(a,b,c){a[b]=c};
Hk=function(a,b,c,d,e){e=void 0===e?Dea:e;b.lA=Gi(a[0]);var f=0,h=a[++f];h&&h.constructor===Object&&(b.extensions=h,h=a[++f],"function"===typeof h&&(b.j=h,b.B=a[++f],h=a[++f]));for(var l={};Array.isArray(h)&&"number"===typeof h[0]&&0<h[0];){for(var m=0;m<h.length;m++)l[h[m]]=h;h=a[++f]}for(m=1;void 0!==h;){"number"===typeof h&&(m+=h,h=a[++f]);var n=void 0;if(h instanceof Hh)var p=h;else p=Eea,f--;if(p.K0){h=a[++f];n=a;var q=f;"function"==typeof h&&(h=h(),n[q]=h);n=h}h=a[++f];q=m+1;"number"===typeof h&&
0>h&&(q-=h,h=a[++f]);for(;m<q;m++){var r=l[m];e(b,m,n?d(p,n,r):c(p,r))}}return b};
Hea=function(a){var b=a[Fea];if(!b){var c=Ik(a);b=function(d,e){return Gea(d,e,c)};
a[Fea]=b}return b};
Iea=function(a){return a.dL};
Jea=function(a,b){var c,d,e=a.dL;return function(f,h,l){return e(f,h,l,d||(d=Ik(b).lA),c||(c=Hea(b)))}};
Ik=function(a){var b=a[Jk];if(b)return b;b=Hk(a,a[Jk]={},Iea,Jea);Kk in a&&Jk in a&&(a.length=0);return b};
Kea=function(a,b){var c=a.cL;return b?function(d,e,f){return c(d,e,f,b)}:c};
Lea=function(a,b,c){var d=a.cL,e,f;return function(h,l,m){return d(h,l,m,f||(f=Ck(b).lA),e||(e=Fk(b)),c)}};
Ck=function(a){var b=a[Kk];if(b)return b;zea(a);b=Hk(a,a[Kk]={},Kea,Lea);Kk in a&&Jk in a&&(a.length=0);return b};
Mea=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=xea(c);var d=c[0].dL;if(c=c[1]){var e=Hea(c),f=Ik(c).lA;c=(c=a.B)?c(f,e):function(h,l,m){return d(h,l,m,f,e)}}else c=d;
return a[b]=c}};
Gea=function(a,b,c){for(var d=$i(a),e=+!!(d&512)-1,f=a.length,h=f+(d&256?-1:0),l=d&512?1:0;l<h;l++){var m=a[l];if(null!=m){var n=l-e,p=Mea(c,n);p&&p(b,m,n)}}if(d&256){d=a[f-1];for(var q in d)e=+q,Number.isNaN(e)||(f=d[q],null!=f&&(h=Mea(c,e))&&h(b,f,e))}if(a=Th?a[Th]:void 0)for(Eh(b,b.j.end()),c=0;c<a.length;c++)Eh(b,yg(a[c])||ug())};
Lk=function(a,b){return new Hh(a,b,!1,!1)};
Mk=function(a,b){return new Hh(a,b,!0,!1)};
Nk=function(a,b,c){ej(a,$i(a),b,c)};
Ok=function(a,b,c){b=Ida(b);null!=b&&(Fh(a,c,1),a=a.j,c=Nea||(Nea=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+b,!0),Eg=c.getUint32(0,!0),Fg=c.getUint32(4,!0),Dh(a,Eg),Dh(a,Fg))};
Pk=function(a,b,c){a:if(null!=b){if(Wh(b)){if("string"===typeof b){b=si(b);break a}if("number"===typeof b){b=ti(b);break a}}b=void 0}null!=b&&("string"===typeof b&&wda(b),null!=b&&(Fh(a,c,0),"number"===typeof b?(a=a.j,Gg(b),xda(a,Eg,Fg)):(c=wda(b),xda(a.j,c.B,c.j))))};
Qk=function(a,b,c){b=qi(b);null!=b&&null!=b&&(Fh(a,c,0),yda(a.j,b))};
Oea=function(a,b,c){b=Lda(b);null!=b&&(Fh(a,c,0),a.j.j.push(b?1:0))};
Pea=function(a,b,c){b=Ai(b);null!=b&&Gh(a,c,Lca(b))};
Rk=function(a,b,c,d,e){b=b instanceof Q?b.ea:Array.isArray(b)?M(b,d[0],d[1]):void 0;if(null!=b){Fh(a,c,2);c=a.j.end();Eh(a,c);c.push(a.B);e(b,a);e=c.pop();for(e=a.B+a.j.length()-e;127<e;)c.push(e&127|128),e>>>=7,a.B++;c.push(e);a.B++}};
Qea=function(a){return function(){var b=new zda;Gea(this.ea,b,Ik(a));Eh(b,b.j.end());for(var c=new Uint8Array(b.B),d=b.C,e=d.length,f=0,h=0;h<e;h++){var l=d[h];c.set(l,f);f+=l.length}b.C=[c];return c}};
Sk=function(a){return function(b){return tea(a,b)}};
Tk=function(a){this.ea=M(a)};
Uk=function(a){this.ea=M(a)};
Vk=function(a){this.ea=M(a)};
Wk=function(a){this.ea=M(a)};
Xk=function(a){this.ea=M(a)};
ql=function(a){this.ea=M(a)};
g.Rea=function(a){var b=new Xk;b=N(b,1,a.C);for(var c=[],d=0;d<a.B.length;d++)c.push(a.B[d].Te);b=oj(b,3,c,yi);c=[];d=[];for(var e=g.u(a.j.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];for(var h=a.G,l=a.HN(f)||[],m=[],n=0;n<l.length;n++){var p=l[n],q=p&&p.j;p=new Vk;switch(h){case 3:q=Number(q);Number.isFinite(q)&&Ej(p,1,rl,ui(q));break;case 2:Ej(p,2,rl,Vh(Number(q)))}m.push(p)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new Wk;m=Jj(n,Vk,2,m);n=[];p=a;q=
[];for(var r=0;r<p.B.length;r++)q.push(p.B[r].Ue);p=q;for(q=0;q<p.length;q++){var t=p[q],v=f[q];r=new Uk;switch(t){case 3:Ej(r,1,sl,zi(String(v)));break;case 2:t=Number(v);Number.isFinite(t)&&Ej(r,2,sl,pi(t));break;case 1:t="true"===v,t=null==t?t:Kda(t),Ej(r,3,sl,t)}n.push(r)}Lj(m,Uk,1,n);c.push(m)}}Lj(b,Wk,4,c);return b};
Sea=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.startsWith("blob:")&&(a=a.substring(5));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};
Tea=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,t=0;64>t;t+=4)r[t/4]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3];for(t=16;80>t;t++)q=r[t-3]^r[t-8]^r[t-14]^r[t-16],r[t]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],x=e[2],B=e[3],F=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var G=B^v&(x^B);var I=1518500249}else G=v^x^B,I=1859775393;else 60>t?(G=v&x|B&(v|x),I=2400959708):(G=v^x^B,I=3395469782);G=((q<<5|q>>>27)&4294967295)+G+F+I+r[t]&4294967295;F=B;B=x;x=(v<<30|v>>>2)&4294967295;v=q;q=G}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=
e[2]+x&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+F&4294967295}
function c(q,r){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var t=[],v=0,x=q.length;v<x;++v)t.push(q.charCodeAt(v));q=t}r||(r=q.length);t=0;if(0==n)for(;t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64;for(;t<r;)if(f[n++]=q[t++],p++,64==n)for(n=0,b(f);t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64}
function d(){var q=[],r=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var t=63;56<=t;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;5>t;t++)for(var v=24;0<=v;v-=8)q[r++]=e[t]>>v&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,r5:function(){for(var q=d(),r="",t=0;t<q.length;t++)r+="0123456789ABCDEF".charAt(Math.floor(q[t]/16))+"0123456789ABCDEF".charAt(q[t]%16);return r}}};
Vea=function(a,b,c){var d=String(g.Qa.location.href);return d&&a&&b?[b,Uea(Sea(d),a,c||null)].join(" "):null};
Uea=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Xb(d,function(l){e.push(l)}),Wea(e.join(" "));
var f=[],h=[];g.Xb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];g.Xb(d,function(l){e.push(l)});
a=Wea(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")};
Wea=function(a){var b=Tea();b.update(a);return b.r5().toLowerCase()};
tl=function(a){this.j=a||{cookie:""}};
ul=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=ic(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}};
vl=function(a){return!!Xea.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
Yea=function(a){a=void 0===a?!1:a;var b=g.Qa.__SAPISID||g.Qa.__APISID||g.Qa.__3PSAPISID||g.Qa.__OVERRIDE_SID;vl(a)&&(b=b||g.Qa.__1PSAPISID);if(b)return!0;if("undefined"!==typeof document){var c=new tl(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID")||c.get("OSID");vl(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b};
Zea=function(a,b,c,d){(a=g.Qa[a])||"undefined"===typeof document||(a=(new tl(document)).get(b));return a?Vea(a,c,d):null};
$ea=function(a,b){b=void 0===b?!1:b;var c=Sea(String(g.Qa.location.href)),d=[];if(Yea(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.Qa.__SAPISID:g.Qa.__APISID;e||"undefined"===typeof document||(e=new tl(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Vea(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&vl(b)&&((b=Zea("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Zea("__3PSAPISID","__Secure-3PAPISID",
"SAPISID3PHASH",a))&&d.push(a))}return 0==d.length?null:d.join(" ")};
wl=function(a){this.ea=M(a)};
xl=function(a){g.Dd.call(this);this.intervalMs=a;this.enabled=!1;this.j=function(){return g.gb()};
this.B=this.j()};
yl=function(a){this.ea=M(a)};
zl=function(a){this.ea=M(a)};
g.Al=function(a,b,c,d){this.D=a;this.G=b;this.j=this.C=a;this.K=c||0;this.N=d||2};
g.Bl=function(a){a.j=Math.min(a.G,a.j*a.N);a.C=Math.min(a.G,a.j+(a.K?Math.round(a.K*(Math.random()-.5)*2*a.j):0));a.B++};
Cl=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};
Dl=function(a){return a?decodeURI(a):a};
g.Fl=function(a,b){return b.match(El)[a]||null};
g.Gl=function(a){return Dl(g.Fl(3,a))};
g.afa=function(a){a=a.match(El);return Cl(a[1],a[2],a[3],a[4])};
bfa=function(a){a=a.match(El);return Cl(a[1],null,a[3],a[4])};
Hl=function(a){a=a.match(El);return Cl(null,null,null,null,a[5],a[6],a[7])};
cfa=function(a){var b=a.indexOf("#");return 0>b?a:a.slice(0,b)};
Il=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?se(e):"")}}};
Jl=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]};
Kl=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Kl(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.pe(b)))};
dfa=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Kl(a[b],a[b+1],c);return c.join("&")};
g.Ll=function(a){var b=[],c;for(c in a)Kl(c,a[c],b);return b.join("&")};
efa=function(a,b){var c=2==arguments.length?dfa(arguments[1],0):dfa(arguments,1);return Jl(a,c)};
g.Ml=function(a,b){b=g.Ll(b);return Jl(a,b)};
Nl=function(a,b,c){c=null!=c?"="+g.pe(c):"";return Jl(a,b+c)};
ffa=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};
Ol=function(a,b){var c=a.search(gfa),d=ffa(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 se(a.slice(d,-1!==e?e:0))};
vm=function(a,b){for(var c=a.search(gfa),d=0,e,f=[];0<=(e=ffa(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(hfa,"$1")};
ifa=function(a,b,c){return Nl(vm(a,b),b,c)};
wm=function(a){this.ea=M(a)};
xm=function(a){this.ea=M(a)};
ym=function(a){this.ea=M(a)};
zm=function(a){this.ea=M(a)};
Am=function(a){this.ea=M(a)};
Bm=function(a){this.ea=M(a,4)};
Cm=function(a){this.ea=M(a,35)};
Dm=function(a){this.ea=M(a,19)};
Em=function(a){this.ea=M(a,7)};
jfa=function(a){this.ea=M(a)};
Hm=function(a){g.H.call(this);var b=this;this.componentId="";this.B=[];this.La="";this.Na=this.Ea=-1;this.Ga=!1;this.N=this.experimentIds=null;this.ra=this.Ba=this.K=this.D=0;this.Qa=1;this.timeoutMillis=0;this.Z=!1;this.logSource=a.logSource;this.lz=a.lz||function(){};
this.C=new Fm(a.logSource,a.Rz);this.network=a.network;this.ZA=a.ZA||null;this.Va=g.fb(Rba,0,1);this.ma=a.rca||null;this.sessionIndex=a.sessionIndex||null;this.YC=a.YC||!1;this.pageId=a.pageId||null;this.logger=null;this.withCredentials=!a.CV;this.Rz=a.Rz||!1;var c=O(new zm,1,1);Gm(this.C,c);this.G=new g.Al(1E4,3E5,.1);this.j=new xl(this.G.getValue());a=kfa(this,a.UU);g.vd(this.j,"tick",a,!1,this);this.W=new xl(6E5);g.vd(this.W,"tick",a,!1,this);this.YC||this.W.start();this.Rz||(g.vd(document,"visibilitychange",
function(){"hidden"===document.visibilityState&&b.xN()}),g.vd(document,"pagehide",this.xN,!1,this))};
kfa=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
lfa=function(a){a.ma||(a.ma=.01>a.Va()?"https://web.archive.org/web/20240102114909/https://www.google.com/log?format=json&hasfast=true":"https://web.archive.org/web/20240102114909/https://play.google.com/log?format=json&hasfast=true");return a.ma};
mfa=function(a,b){a.G=new g.Al(1>b?1:b,3E5,.1);a.j.setInterval(a.G.getValue())};
ofa=function(a){nfa(a,function(b,c){b=Nl(b,"format","json");var d=!1;try{d=Xe().navigator.sendBeacon(b,c.Hj())}catch(e){}a.Z&&!d&&(a.Z=!1);return d})};
nfa=function(a,b){if(0!==a.B.length){var c=vm(lfa(a),"format");c=efa(c,"auth",a.lz(),"authuser",a.sessionIndex||"0");for(var d=0;10>d&&a.B.length;++d){var e=a.B.slice(0,32),f=a.C.build(e,a.D,a.K,a.ZA,a.Ba,a.ra);if(!b(c,f)){++a.K;break}a.D=0;a.K=0;a.Ba=0;a.ra=0;a.B=a.B.slice(e.length)}a.j.enabled&&a.j.stop()}};
Fm=function(a,b){this.Rz=b=void 0===b?!1:b;this.B=this.locale=null;this.j=new Dm;Number.isInteger(a)&&this.j.FF(a);b||(this.locale=document.documentElement.getAttribute("lang"));Gm(this,new zm)};
Gm=function(a,b){Jj(a.j,zm,1,b);oi(dj(b,1))||O(b,1,1);a.Rz||(b=Im(a),Oj(b,5)||N(b,5,a.locale));a.B&&(b=Im(a),g.Ij(b,xm,9)||Jj(b,xm,9,a.B))};
Lm=function(a,b){gj(Jm(a),ym,11)&&(a=Km(a),O(a,1,b))};
pfa=function(a,b){gj(Jm(a),ym,11)&&(a=Km(a),Vj(a,2,b))};
Jm=function(a){return g.Ij(a.j,zm,1)};
rfa=function(a,b){var c=void 0===c?qfa:c;b(Xe(),c).then(function(d){a.B=d;d=Im(a);Jj(d,xm,9,a.B);return!0}).catch(function(){return!1})};
Im=function(a){a=Jm(a);var b=g.Ij(a,ym,11);b||(b=new ym,Jj(a,ym,11,b));return b};
Km=function(a){a=Im(a);var b=g.Ij(a,wm,10);b||(b=new wm,Vj(b,2,!1),Jj(a,wm,10,b));return b};
g.Mm=function(a){return(new sfa).Hj(a)};
sfa=function(){};
Nm=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),Nm(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),tfa(d,c),c.push(":"),Nm(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":tfa(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);}}};
tfa=function(a,b){b.push('"',a.replace(ufa,function(c){var d=vfa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),vfa[c]=d);return d}),'"')};
wfa=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"}};
Om=function(){};
Pm=function(){};
xfa=function(a){if(!a.B&&"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.B=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.B};
g.Qm=function(a){g.Dd.call(this);this.headers=new Map;this.Z=a||null;this.C=!1;this.Ba=this.j=null;this.ma="";this.B=0;this.D="";this.G=this.Ga=this.W=this.Ea=!1;this.N=0;this.ra=null;this.La="";this.Na=this.K=!1};
zfa=function(a,b,c,d,e,f,h){var l=new g.Qm;yfa.push(l);b&&l.Ra("complete",b);l.SI("ready",l.R4);f&&(l.N=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)};
Afa=function(a){return g.We&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Cfa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Bfa(a);Rm(a)};
Bfa=function(a){a.Ea||(a.Ea=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Dfa=function(a){if(a.C&&"undefined"!=typeof Sm)if(a.Ba[1]&&4==g.Tm(a)&&2==a.getStatus())a.getStatus();else if(a.W&&4==g.Tm(a))g.ag(a.XY,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Um(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=2<g.Tm(a)?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Bfa(a)}}finally{Rm(a)}}};
Rm=function(a,b){if(a.j){Efa(a);var c=a.j,d=a.Ba[0]?function(){}:null;
a.j=null;a.Ba=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Efa=function(a){a.j&&a.Na&&(a.j.ontimeout=null);a.ra&&(g.Qa.clearTimeout(a.ra),a.ra=null)};
Um=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.Fl(1,String(a.ma)),!a&&g.Qa.self&&g.Qa.self.location&&(a=g.Qa.self.location.protocol.slice(0,-1)),b=!Ffa.test(a?a.toLowerCase():"");c=b}return c};
g.Tm=function(a){return a.j?a.j.readyState:0};
g.Vm=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.Wm=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.La){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.Gfa=function(a){var b={};a=(a.j&&2<=g.Tm(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.cc(a[c])){var d=Vba(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 Yc(b,function(h){return h.join(", ")})};
g.Xm=function(a,b){return a.j?a.j.getResponseHeader(b):null};
Ym=function(){};
Zm=function(a,b){g.H.call(this);this.logSource=a;this.sessionIndex=b;this.B="https://web.archive.org/web/20240102114909/https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.componentId="";this.network=new Ym};
sn=function(a,b,c,d,e,f,h){a=void 0===a?-1:a;b=void 0===b?"":b;c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;g.H.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new Zm(a,"0"),a.componentId=b,g.J(this,a),""!==c&&(a.B=c),d&&(a.C=!0),e&&(a.j=e),h&&(a.network=h),b=a.build());this.j=b};
tn=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}};
Hfa=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""}};
un=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};
vn=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()};
wn=function(a,b){this.logger=a;this.j=b;this.startMillis=vn()};
Ifa=function(){};
Jfa=function(a,b){this.bj=a;a=new Zm(1654,"0");a.j="17";a.network=new Ym;if(b){var c=new Tk;b=oj(c,3,b,Nda);a.SC=b}b=new sn(1654,"","",!1,"",a.build());b=new g.cg(b);this.clientError=new Dca(b);this.D=new Cca(b);this.G=new Bca(b);this.C=new Eca(b);this.B=new Fca(b);this.j=new Gca(b)};
Kfa=function(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}};
xn=function(a,b,c,d){b=void 0===b?0:b;c=void 0===c?a.length:c;var e=0;for(d&&(e=xn(d));b<c;b++)d="string"===typeof a?a.charCodeAt(b):a[b],e=Lfa(31,e)+d|0;return e};
Mfa=function(a,b){return[xn(a,0,a.length>>1,b),xn(a,a.length>>1)]};
yn=function(a,b,c){c=void 0===c?[]:c;this.maxItems=a;this.j=void 0===b?0:b;this.B=c};
Nfa=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new yn(a);var c=b.split(",");if(2>c.length)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new yn(a);b=c.slice(1);1===b.length&&""===b[0]&&(b=[]);c=Number(c[0]);return isNaN(c)||0>c||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new yn(a)):new yn(a,c,b)};
Ofa=function(a,b){this.logger=b;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(d){c=!1}c&&(this.index=Nfa(a))};
Rfa=function(a,b,c,d,e){if(a.index){var f=new wn(a.logger,"W"),h=(4-(zn.length+c.length)%4)%4,l=new Uint8Array(4+h+zn.length+4+c.length),m=new DataView(l.buffer),n=0;m.setUint32(n,4294967295*Math.random());n=n+4+h;l.set(zn,n);n+=zn.length;m.setUint32(n,e);l.set(c,n+4);Pfa(l,d);b=Qfa(null!=b?b:[]);a.index.rh(b,function(p){globalThis.sessionStorage.removeItem(p)})?Kfa(b,g.fg(l))?(a.logger.mE("s"),f.done()):a.logger.mE("t"):a.logger.mE("i")}else a.logger.mE("u")};
Qfa=function(a){var b=g.u(Mfa(a,zn));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)};
Pfa=function(a,b){var c=Mfa(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.u(c);c=d.next().value;d=d.next().value;for(var e=1;e<a.length;e+=2){for(var f=b,h=e,l=c,m=d,n=0;22>n;n++)h=h>>>8|h<<24,h+=f|0,h^=l+38293,f=f<<3|f>>>29,f^=h,m=m>>>8|m<<24,m+=l|0,m^=n+38293,l=l<<3|l>>>29,l^=m;f=[f,h];a[e]^=f[0];e+1<a.length&&(a[e+1]^=f[1])}};
Sfa=function(a){this.j=a;this.j.Fk("/client_streamz/bg/fic",{Ue:3,Te:"ke"})};
Tfa=function(a){this.j=a;this.j.Fk("/client_streamz/bg/fiec",{Ue:3,Te:"rk"},{Ue:3,Te:"ke"},{Ue:2,Te:"ec"},{Ue:3,Te:"em"})};
An=function(a,b,c,d,e){a.j.Ol("/client_streamz/bg/fiec",b,c,d,e)};
Ufa=function(a){this.j=a;this.j.KG("/client_streamz/bg/fil",{Ue:3,Te:"rk"},{Ue:3,Te:"ke"})};
Vfa=function(a){this.j=a;this.j.Fk("/client_streamz/bg/fsc",{Ue:3,Te:"rk"},{Ue:3,Te:"ke"})};
Wfa=function(a){this.j=a;this.j.KG("/client_streamz/bg/fsl",{Ue:3,Te:"rk"},{Ue:3,Te:"ke"})};
Zfa=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=Xfa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=Bn(a,l),d+=Bn(a,l+4),e+=Bn(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 Yfa.toString(e)};
Xfa=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
Bn=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
$fa=function(a,b){this.j=b;this.G=void 0;this.Z=new sn(1828,"","",!1,"",void 0,new Ym);this.B=new g.cg(this.Z);this.W=new Ufa(this.B);this.K=new Vfa(this.B);this.N=new Wfa(this.B);this.D=new Tfa(this.B);this.C=Zfa(a);(new Sfa(this.B)).j.Ol("/client_streamz/bg/fic",this.j)};
Cn=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()};
aga=function(a){this.ea=M(a)};
cga=function(a){this.ea=M(a)};
Dn=function(a){this.ea=M(a,0,"bfkj")};
g.En=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Fn=function(a){function b(B,F,G){Promise.resolve().then(function(){var I;null!=(I=c.Pj)&&void 0!==I.G&&I.W.Ki(Cn()-I.G,I.C,I.j);l.resolve({F4:B,xba:F,hkb:G})})}
var c=this;this.j=!1;if(a.challenge instanceof Dn){var d=g.Tj(a.challenge,4);var e=g.Tj(a.challenge,5)}else d=a.program,e=a.globalName;if(!1!==a.Caa){var f,h;this.Pj=null!=(h=a.Pj)?h:new $fa(e,null!=(f=a.Rjb)?f:"_")}var l=new g.En;this.B=l.promise;if(!g.Qa[e]){var m;null!=(m=this.Pj)&&An(m.D,m.C,m.j,1,"");var n;null!=(n=this.Pj)&&n.B.Sx()}else if(!g.Qa[e].a){var p;null!=(p=this.Pj)&&An(p.D,p.C,p.j,2,"");var q;null!=(q=this.Pj)&&q.B.Sx()}try{var r=g.Qa[e].a,t;null!=(t=this.Pj)&&(t.G=Cn());this.C=g.u(r(d,
b,!0,a.Vkb)).next().value;this.wba=l.promise.then(function(){})}catch(B){var v;
null!=(v=this.Pj)&&An(v.D,v.C,v.j,4,B.message);var x;null!=(x=this.Pj)&&x.B.Sx();throw B;}};
dga=function(){};
Gn=function(a){this.j=a};
Hn=function(a){this.Ee=a};
In=function(a){return new Hn(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
fga=function(a,b){b=void 0===b?ega:b;if(a instanceof g.Ud)return a;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Hn&&d.Ee(a))return new g.Ud(a,Yd)}};
g.Jn=function(a,b){b=void 0===b?ega:b;return fga(a,b)||g.be};
Kn=function(a){if(a instanceof g.Ud)a=g.Vd(a);else{b:if(gga){try{var b=new URL(a)}catch(c){b="https:";break b}b=b.protocol}else c:{b=document.createElement("a");try{b.href=a}catch(c){b=void 0;break c}b=b.protocol;b=":"===b||""===b?"https:":b}a="javascript:"!==b?a:void 0}return a};
hga=function(a){var b=g.Ia.apply(1,arguments);if(0===b.length)return Td(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return Td(c)};
iga=function(a){for(var b=g.Ia.apply(1,arguments),c=a[0],d=0;d<a.length-1;d++)c+=String(b[d])+a[d+1];if(/[<>]/.test(c))throw Error("Forbidden characters in style string: "+c);return new g.$d(c,Ln)};
jga=function(a){if(!a)return null;a=Oj(a,4);return null===a||void 0===a?null:Td(a)};
g.Mn=function(a,b){b=Kn(b);void 0!==b&&(a.href=b)};
kga=function(a,b,c,d){if(0===a.length)throw Error("");a=a.map(function(f){if(f instanceof Gn)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)};
Nn=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);};
g.On=function(a,b,c){var d=window;a=Kn(a);return void 0!==a?d.open(a,b,c):null};
Pn=function(a){var b,c;return(a=null==(c=(b=a.document).querySelector)?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""};
Qn=function(a){var b=Pn(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)};
g.Rn=function(a,b){a.src=g.Sd(b);Qn(a)};
lga=function(a,b){return a.parseFromString(g.de(b),"text/xml")};
Sn=function(){this.j={};this.B=null};
mga=function(){Sn.instance||(Sn.instance=new Sn);return Sn.instance};
oga=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return nga(b,c);var e;(e=a.j)[d]||(e[d]=new Promise(function(f,h){nga(b,c).then(function(){a.B=d;f()},function(l){delete a.j[d];
h(l)})}));
return a.j[d]};
nga=function(a,b){return b?pga(b):a?qga(a):Promise.resolve()};
pga=function(a){return new Promise(function(b,c){var d=g.$e("SCRIPT"),e=jga(a)||hga(rga);g.Rn(d,e);d.onload=function(){g.nf(d);b()};
d.onerror=function(){g.nf(d);c(Error("EWLS"))};
(g.Je("HEAD")[0]||document.documentElement).appendChild(d)})};
qga=function(a){return new Promise(function(b){var c=g.$e("SCRIPT");if(a){var d=Oj(a,6);d=null===d||void 0===d?null:sba(d)}else d=null;c.textContent=qba(d);Qn(c);(g.Je("HEAD")[0]||document.documentElement).appendChild(c);g.nf(c);b()})};
tga=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a[c]+97;if(g.Qa.TextDecoder)b=(new TextDecoder).decode(b);else if(8192>=b.length)b=String.fromCharCode.apply(null,b);else{a="";for(c=0;c<b.length;c+=8192)a+=String.fromCharCode.apply(null,Array.prototype.slice.call(b,c,c+8192));b=a}return sga(b)};
Tn=function(a){this.ea=M(a)};
Un=function(a){this.ea=M(a)};
Vn=function(a){this.ea=M(a)};
Wn=function(a,b,c){this.client=a;this.bj=b;this.j=c};
Xn=function(a){this.ea=M(a)};
Yn=function(a,b,c){this.j=a;this.C=b;this.B=c};
Zn=function(a,b,c){c=void 0===c?{}:c;this.Saa=a;this.j=c;this.B=b};
$n=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e};
uga=function(a,b,c){c=void 0===c?{}:c;return new Yn(b,a,c)};
ao=function(a){this.ea=M(a)};
bo=function(a){this.ea=M(a)};
co=function(a){this.ea=M(a)};
eo=function(a){this.ea=M(a)};
fo=function(a,b){this.N=a.l8;this.Z=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.N&&vga(this)};
yga=function(a,b){g.vd(a.j,"complete",function(){if(Um(a.j)){var c=g.Vm(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.Z(c)}catch(h){go(a,new un(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=tn(a.j.getStatus());ho(a,io(a));0==c?wga(a,d):go(a,new un(c,"Xhr succeeded but the status code is not 200"))}else{c=g.Vm(a.j);d=io(a);if(c){var e=xga(a,c);c=e.code;var f=e.details;
e=e.metadata}else c=2,f="Rpc failed due to xhr error. error code: "+a.j.B+", error: "+a.j.getLastError(),e=d;ho(a,d);go(a,new un(c,f,e))}})};
vga=function(a){a.N.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.Z(c)}catch(e){go(a,new un(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&wga(a,d)}if("2"in b)for(b=xga(a,b["2"]),c=0;c<a.K.length;c++)a.K[c](b)});
a.N.on("end",function(){ho(a,io(a));for(var b=0;b<a.D.length;b++)a.D[b]()});
a.N.on("error",function(){if(0!=a.B.length){var b=a.j.B;0!==b||Um(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=tn(c);break;default:d=14}ho(a,io(a));b=wfa(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);go(a,new un(d,b))}})};
io=function(a){var b={},c=g.Gfa(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
xga=function(a,b){var c=2,d={};try{var e=zga(b);c=Qj(e,1);var f=e.getMessage();lea(e,co).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.ma)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
jo=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
wga=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
ho=function(a,b){for(var c=0;c<a.G.length;c++)a.G[c](b)};
go=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
g.ko=function(a){this.K=a.Bca||null;this.G=a.B_||!1;this.B=void 0};
lo=function(a,b){g.Dd.call(this);this.ra=a;this.K=b;this.G=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.B=null;this.ma="GET";this.W="";this.j=!1;this.N=this.C=this.D=null};
Aga=function(a){a.C.read().then(a.F6.bind(a)).catch(a.pI.bind(a))};
no=function(a){a.readyState=4;a.D=null;a.C=null;a.N=null;mo(a)};
mo=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Bga=function(a){if(a.hm&&"function"==typeof a.hm)return a.hm();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.Ya(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return dd(a)};
Cga=function(a){if(a.Ap&&"function"==typeof a.Ap)return a.Ap();if(!a.hm||"function"!=typeof a.hm){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Ya(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.ed(a)}}};
g.oo=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.Ya(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=Cga(a),e=Bga(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};
g.po=function(a){this.j=this.Z=this.G="";this.D=null;this.K=this.C="";this.N=!1;var b;a instanceof g.po?(this.N=a.N,g.qo(this,a.G),this.Z=a.Z,g.ro(this,a.j),g.so(this,a.D),this.C=a.C,to(this,a.B.clone()),this.K=a.K):a&&(b=String(a).match(El))?(this.N=!1,g.qo(this,b[1]||"",!0),this.Z=uo(b[2]||""),g.ro(this,b[3]||"",!0),g.so(this,b[4]),this.C=uo(b[5]||"",!0),to(this,b[6]||"",!0),this.K=uo(b[7]||"")):(this.N=!1,this.B=new vo(null,this.N))};
g.qo=function(a,b,c){a.G=c?uo(b,!0):b;a.G&&(a.G=a.G.replace(/:$/,""))};
g.ro=function(a,b,c){a.j=c?uo(b,!0):b};
g.so=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null};
to=function(a,b,c){b instanceof vo?(a.B=b,Dga(a.B,a.N)):(c||(b=wo(b,Ega)),a.B=new vo(b,a.N))};
g.xo=function(a,b,c){a.B.set(b,c)};
g.Zo=function(a){return a instanceof g.po?a.clone():new g.po(a)};
uo=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
wo=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Fga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Fga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
vo=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b};
$o=function(a){a.j||(a.j=new Map,a.B=0,a.C&&Il(a.C,function(b,c){a.add(se(b),c)}))};
Gga=function(a,b){$o(a);b=ap(a,b);return a.j.has(b)};
g.Hga=function(a,b,c){a.remove(b);0<c.length&&(a.C=null,a.j.set(ap(a,b),g.Kb(c)),a.B=a.B+c.length)};
ap=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b};
Dga=function(a,b){b&&!a.D&&($o(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Hga(this,e,c))},a));
a.D=b};
g.Iga=function(a){var b="";g.Wc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.bp=function(a,b,c){if(g.id(c))return a;c=g.Iga(c);if("string"===typeof a)return Nl(a,g.pe(b),c);g.xo(a,b,c);return a};
g.cp=function(a){g.H.call(this);this.B=a;this.j={}};
Jga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)Jga(a,b,c[h],d,e,f);else{b=ud(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.j[b.key]=b}return a};
Kga=function(){this.C=!0;this.B=0;this.j=""};
Lga=function(a,b,c){a.C=!1;throw Error("The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b);};
dp=function(){this.K=null;this.N=[];this.D=this.B=this.C=this.j=this.W=0;this.G=null;this.Z=0};
ep=function(a,b,c,d){a.j=3;a.K="The stream is broken @"+a.W+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.K);};
fp=function(){this.j=null;this.B=0;this.C=new Kga;this.D=new dp};
Mga=function(a,b,c){a.j="The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
gp=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
hp=function(a){this.W=null;this.K=[];this.D="";this.ra=[];this.C=this.B=0;this.N=!1;this.Z=0;this.Ba=/[\\"]/g;this.j=this.G=0;this.ma=!(!a||!a.n5)};
ip=function(a,b,c){a.G=3;a.W="The stream is broken @"+a.C+"/"+c+". With input:\n"+b;throw Error(a.W);};
jp=function(){this.G=this.C=null;this.B=this.j=0;this.D=[];this.K=!1};
Nga=function(a){var b=g.Xm(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new jp:new hp:b.startsWith("application/x-protobuf")?(a=g.Xm(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new fp:null:new dp:null};
kp=function(a){this.j=a;this.B=null;this.D=this.C=0;this.W=!1;this.G=this.N=this.K=null;this.Z=new g.cp(this);this.Z.Ra(this.j,"readystatechange",this.ma)};
lp=function(a,b){a.D!=b&&(a.D=b,a.N&&a.N())};
mp=function(a){a.Z.Jf();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
Oga=function(a){a=this.C=a;var b=(0,g.eb)(this.Q8,this);a.G=b;a=this.C;b=(0,g.eb)(this.A$,this);a.N=b;this.B={};this.j={}};
Pga=function(a,b){for(var c={},d=0;d<a.length;c={eY:void 0},d++)c.eY=a[d],b.forEach(function(e){return function(f){try{f(e.eY)}catch(h){}}}(c))};
np=function(a,b){var c=a.B[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
Qga=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.G=a.Nkb||g.Sa("suppressCorsPreflight",a)||!1;this.B=a.withCredentials||g.Sa("withCredentials",a)||!1;this.D=a.Mkb||[];this.K=a.Skb||[];this.j=a.Xkb;this.C=a.Tkb||!1};
op=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Rga(function(h){return new Sga(function(l,m){var n={},p=Tga(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=h.XH(),t=n;t=void 0===t?{}:t;l(new Zn(q,r,t))})})},a.K).call(a,uga(e,c,d)).then(function(h){return h.Saa})};
Tga=function(a,b,c){var d=b.XH(),e=b.getMetadata(),f=Uga(a,!0);a=Vga(a,e,f,c+d.getName());c=Wga(f,d.B,!1);yga(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
Uga=function(a,b){b=a.C&&!b;return a.j||b?new g.Qm(new g.ko({Bca:a.j,B_:b})):new g.Qm};
Vga=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.B)c.K=!0;if(a.G)d=g.bp(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
Wga=function(a,b,c){if(c)if(a.isActive(),!g.We||g.Oc(10)){c=new kp(a);var d=new Oga(c)}else d=null;return new fo({xhr:a,l8:d},b)};
Rga=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
pp=function(){this.j=new Qga;this.B="https://web.archive.org/web/20240102114909/https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
qp=function(a){g.H.call(this);this.owner=a;this.signals=new Set;a&&g.J(a,this)};
rp=function(a,b,c){var d=Xga;a.signals.has(b);d({signal:b,data:c})};
sp=function(a){g.H.call(this);this.aV=a;this.slots=new Map;this.gB=new Set;this.TW=!1};
Yga=function(a,b){a.isDisposed()||a.slots.set(b,{slotId:b,slot:void 0,AV:function(){return a.slots.delete(b)}})};
Zga=function(a,b){return new Promise(function(c){tp(function(){a.aV&&(a.FX=b,a.TW=!0);for(var d=g.u(a.slots.values()),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.slotId;f=f.slot;try{f(b,{signal:a,slotId:e})}catch(h){Df(h)}}d=g.u(a.gB);for(e=d.next();!e.done;e=d.next())e.value.resolve(b);a.gB.clear();c()})})};
Xga=function(){var a=g.Ia.apply(0,arguments);0===a.length?Promise.resolve():1===a.length?(a=a[0],Zga(a.signal,a.data)):Promise.all(a.map(function(b){return Zga(b.signal,b.data)})).then()};
tp=function(a){up.push(a);$ga()};
$ga=function(){var a,b;g.Ha(function(c){switch(c.j){case 1:if(vp){c.Ka(0);break}g.ya(c,3,4);vp=!0;a=aha(0);case 6:if(!(a<up.length)){c.Ka(4);break}return g.z(c,Promise.resolve(),9);case 9:a=aha(a);c.Ka(6);break;case 4:g.Ba(c);up.length=0;vp=!1;g.Da(c,0);break;case 3:b=g.Aa(c),Df(b),c.Ka(4)}})};
aha=function(a){for(var b=a+100;a<b&&a<up.length;)try{up[a++]()}catch(c){Df(c)}return a};
bha=function(a,b){if(a.isDisposed())b();else{var c=wp.get(a);if(c)c.push(b);else{var d=[b];wp.set(a,d);a.addOnDisposeCallback(function(){for(var e=g.u([].concat(g.oa(d))),f=e.next();!f.done;f=e.next())f=f.value,f();wp.delete(a)})}}};
xp=function(a,b,c){g.H.call(this);this.N=a;this.milliseconds=b;this.Gb=c;this.state=this.D=0};
cha=function(a,b){if(b)if("function"===typeof b)var c=b;else{c=b.BJ;var d=b.OP}else c=function(){};
return new xp(!1,a,{BJ:c,OP:d})};
yp=function(a){wb.call(this,a);this.name="TimerCancelledError"};
zp=function(a){wb.call(this,a);this.name="TimerDisposedError"};
eha=function(a){return dha?Array.from(dha.encode(a)):g.eg(a)};
fha=function(a){var b=new pp,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Wn(b,a,function(){return c})};
Ap=function(a,b){if(a.KV)return a.KV;if(void 0===a.uv)return[];b=new wn(b,"c");var c=eha(a.uv);b.done();return a.KV=c};
Bp=function(a,b,c){var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;a=c?c+":":"";if(b instanceof Error){this.message=a+b.message;var e;this.stack=null!=(e=b.stack)?e:""}else this.message=a+String(b),this.stack="";Object.setPrototypeOf(this,Bp.prototype)};
Cp=function(a){g.H.call(this);var b=this;this.logger=a;this.D=new g.En;this.addOnDisposeCallback(function(){return b.D.reject()})};
Dp=function(a,b){b=cha(b,function(){a.D.resolve()});
g.J(a,b);b.start()};
Ep=function(a,b,c,d,e,f){Cp.call(this,a);this.Z=c;this.ma=d;this.N=f;this.C="m";this.B="x";this.W=0;g.J(this,b);Dp(this,e);this.K=Math.floor((Date.now()+e)/1E3)};
Fp=function(a,b,c){Cp.call(this,a);this.K=b;this.C="f";this.B="z";Dp(this,c)};
Gp=function(a,b,c){Cp.call(this,a);this.K=b;this.C="w";this.B="z";Dp(this,c)};
Hp=function(a,b){Cp.call(this,a);this.error=b;this.C="e";this.B="y"};
gha=function(a,b){b=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);var c=b.length+1;return new Uint8Array([42,c&127|128,c>>7,a.error.code].concat(eha(b)))};
Ip=function(a,b,c){Cp.call(this,a);this.K=b;this.clientState=c;this.C="S";this.B="q"};
Jp=function(a){g.H.call(this);var b=this;this.j=void 0;this.D=new g.En;this.state=1;this.C=0;this.cache=this.B=void 0;this.jz=a.jz;this.IY=a.IY;this.onError=a.onError;this.logger=a.pkb?new Ifa:new Jfa(a.bj,a.SC);this.addOnDisposeCallback(function(){b.j&&(b.j.dispose(),b.j=void 0)})};
hha=function(a,b,c,d){if(!d)throw new Bp(4,Error("PMD:Undefined"));d=d(zg(nj(b,1)));if(!(d instanceof Function))throw new Bp(16,Error("APF:Failed"));return new Ep(a.logger,c,d,Rj(b,3),1E3*Rj(b,2),function(){return a.cache})};
jha=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,F,G,I,L;return g.Ha(function(P){switch(P.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Al(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){P.Ka(4);break}g.ya(P,5);a.state=3;a.C=e-1;return g.z(P,a.B&&1===e?a.B:a.jD(e),7);case 7:f=P.B;a.B=void 0;a.state=4;h=new wn(a.logger,"b");var V=mga();V=oga(V,g.Ij(f,aga,1),g.Ij(f,cga,2),g.Tj(f,3));return g.z(P,V,8);case 8:return a.state=5,l=new Fn({challenge:f}),m=[],g.z(P,Kp(a,l.snapshot({B0:m}),new Bp(15,"MDA:Timeout")),
9);case 9:return n=P.B,p=g.u(m),r=q=p.next().value,h.done(),a.state=6,g.z(P,Kp(a,a.logger.lP("g",e,a.jz.SV(n)),new Bp(10,"BWB:Timeout")),10);case 10:return t=P.B,a.state=7,v=new wn(a.logger,"i"),g.Tj(t,4)?(l.dispose(),V=new Gp(a.logger,g.Tj(t,4),1E3*Rj(t,2))):Rj(t,3)?V=hha(a,t,l,r):(l.dispose(),V=new Fp(a.logger,zg(nj(t,1)),1E3*Rj(t,2))),x=V,v.done(),F=B=void 0,null==(F=(B=a).IY)||F.call(B,zg(nj(t,1))),a.state=8,P.return(x);case 5:G=g.Aa(P);b=G instanceof Bp?G:G instanceof zp?new Bp(20,G):G instanceof
un?new Bp(11,G):new Bp(12,G);a.logger.uw(b.code);L=I=void 0;null==(L=(I=a).onError)||L.call(I,b);a:{if(G instanceof un)switch(G.code){case 2:case 13:case 14:case 4:V=!0;break a;default:V=!1;break a}V=G instanceof Bp?20!==G.code:!0}if(!V)throw b;return g.z(P,iha(a,d.getValue()),11);case 11:g.Bl(d);case 3:e++;P.Ka(2);break;case 4:throw b;}})};
iha=function(a,b){b=cha(b);g.J(a,b);b.start();return b.Z};
Kp=function(a,b,c){return Promise.race([b,iha(a,12E4).then(function(){return Promise.reject(c)})])};
kha=function(a){var b,c,d;g.Ha(function(e){switch(e.j){case 1:return b=void 0,g.ya(e,5),g.z(e,jha(a),7);case 7:b=e.B;g.za(e,6);break;case 5:c=g.Aa(e);if(a.j){a.logger.uw(13);e.Ka(0);break}a.logger.uw(14);b=new Hp(a.logger,c instanceof Bp?c:new Bp(14,c instanceof Error?c:Error(String(c))));case 6:return d=void 0,null==(d=a.j)||d.dispose(),a.j=b,a.D.resolve(),g.ya(e,8),g.z(e,a.j.D.promise,10);case 10:g.za(e,1);break;case 8:g.Aa(e),e.Ka(0)}})};
lha=function(a,b){b=Object.assign({},b);try{b.My&&!a.cache&&(a.cache=new Ofa(Math.min(b.My.O7,150),a.logger))}catch(G){b=new Bp(22,G,"GBJ:init");a.logger.uw(b.code);var c;null==(c=a.onError)||c.call(a,b);throw b;}try{var d;if(!a.isReady()&&(null==(d=b.My)?0:d.G4)){var e;if(null==(e=a.cache))var f=void 0;else a:{var h=Ap(b,a.logger),l=b.My.ZU;if(e.index){var m=new wn(e.logger,"R"),n=Qfa(null!=h?h:[]),p=globalThis.sessionStorage.getItem(n);if(p){try{var q=rg(p);Pfa(q,l)}catch(G){globalThis.sessionStorage.removeItem(n);
e.logger.qw("c");f=void 0;break a}for(c=4;7>c&&0===q[c];)c++;for(d=0;d<zn.length;d++)if(q[c++]!==zn[d]){globalThis.sessionStorage.removeItem(n);e.logger.qw("d");f=void 0;break a}var r=(new DataView(q.buffer)).getUint32(c);if(Math.floor(Date.now()/1E3)>=r)globalThis.sessionStorage.removeItem(n),e.logger.qw("e");else{var t=new Uint8Array(q.buffer,c+4);m.done();e.logger.qw("a");f=t;break a}}else e.logger.qw("m")}else e.logger.qw("u");f=void 0}var v=f;if(v)return v}}catch(G){throw b=new Bp(23,G,"RXO:read"),
a.logger.uw(b.code),null==(v=a.onError)||v.call(a,b),b;}var x;v=null!=(x=a.j)?x:new Ip(a.logger,a.C,a.state);x=new wn(a.logger,v.C);try{if(a.isDisposed())throw new Bp(21,"BNT:disposed");return v.G(b)}catch(G){x=new wn(a.logger,"e");var B=G instanceof Bp?G:new Bp(5,G);a.logger.uw(B.code);var F;null==(F=a.onError)||F.call(a,B);v=new Hp(a.logger,B);return v.G(b)}finally{x.done()}};
mha=function(a){var b={};g.Xb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
taa(a,function(c){return null===b[c.event]})};
Lp=function(){this.Be=0;this.j=!1;this.B=-1;this.Wv=!1;this.xk=0};
Mp=function(){this.Ud=null;this.j=!1};
Np=function(a){Mp.call(this);this.C=a};
Op=function(){Mp.call(this)};
Pp=function(){Mp.call(this)};
Qp=function(){this.j={};this.B=!0;this.C={}};
Rp=function(a,b,c){a.j[b]||(a.j[b]=new Np(c));return a.j[b]};
nha=function(a){a.j.queryid||(a.j.queryid=new Pp)};
Sp=function(a,b,c){(a=a.j[b])&&a.B(c)};
Tp=function(a,b){if(g.fd(a.C,b))return a.C[b];if(a=a.j[b])return a.getValue()};
Up=function(a){var b={},c=g.Xc(a.j,function(d){return d.j});
g.Wc(c,function(d,e){d=void 0!==a.C[e]?String(a.C[e]):d.j&&null!==d.Ud?String(d.Ud):"";0<d.length&&(b[e]=d)},a);
return b};
oha=function(a){a=Up(a);var b=[];g.Wc(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
qha=function(a){Rp(a,"od",pha);Rp(a,"opac",Vp).j=!0;Rp(a,"sbeos",Vp).j=!0;Rp(a,"prf",Vp).j=!0;Rp(a,"mwt",Vp).j=!0;Rp(a,"iogeo",Vp)};
rha=function(){this.j=this.It=null};
$q=function(){};
br=function(){if(!ar())throw Error();};
ar=function(){return!(!cr||!cr.performance)};
dr=function(a){return a?a.passive&&sha()?a:a.capture||!1:!1};
er=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,dr(d)),!0):!1};
fr=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
tha=function(){};
gr=function(a){var b="Zg";if(a.Zg&&a.hasOwnProperty(b))return a.Zg;var c=new a;a.Zg=c;a.hasOwnProperty(b);return c};
uha=function(){return(oc||pc)&&qc?qc.mobile:!hr()&&(uc("iPod")||uc("iPhone")||uc("Android")||uc("IEMobile"))};
hr=function(){return(oc||pc)&&qc?!qc.mobile&&(uc("iPad")||uc("Android")||uc("Silk")):uc("iPad")||uc("Android")&&!uc("Mobile")||uc("Silk")};
ir=function(a){try{return!!a&&null!=a.location.href&&Kc(a,"foo")}catch(b){return!1}};
jr=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
wha=function(){var a=[];jr(vha,function(b){a.push(b)});
return a};
xha=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
Aha=function(){var a=yha("IFRAME"),b={};g.Xb(zha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
yha=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
Bha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,ir(a)&&(b=a);return b};
Fha=function(a){a=a||kr();for(var b=new Cha(g.Qa.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Dha.test(f.url)&&(c=f);if(f.url&&!f.RO){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Eha(b,e,c)};
kr=function(){var a=g.Qa,b=[],c=null;do{var d=a;if(ir(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Cha(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.Qa;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.RO=!0);return b};
Eha=function(a,b,c){this.j=a;this.B=b;this.C=c};
Cha=function(a,b){this.url=a;this.RO=!!b;this.depth=null};
lr=function(){this.C="&";this.B={};this.D=0;this.j=[]};
mr=function(a,b){var c={};c[a]=b;return[c]};
Gha=function(a,b,c,d,e){var f=[];jr(a,function(h,l){(h=nr(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
nr=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(nr(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Gha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Hha=function(a){var b=1,c;for(c in a.B)b=c.length>b?c.length:b;return 3997-b-a.C.length-1};
or=function(a,b){this.j=a;this.depth=b};
Jha=function(){function a(l,m){return null==l?m:l}
var b=kr(),c=Math.max(b.length-1,0),d=Fha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new or([f.url,f.RO?2:0],a(f.depth,1)));e&&e!=f&&h.push(new or([e.url,2],0));b.url&&b!=f&&h.push(new or([b.url,0],a(b.depth,c)));d=g.pr(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=xha(b.url))&&d.push([new or([e,1],a(b.depth,c))]);d.push([]);return g.pr(d,function(l){return Iha(c,l)})};
Iha=function(a,b){g.qr(b,function(e){return 0<=e.depth});
var c=rr(b,function(e,f){return Math.max(e,f.depth)},-1),d=yaa(c+2);
d[0]=a;g.Xb(b,function(e){return d[e.depth+1]=e.j});
return d};
Kha=function(){var a=void 0===a?Jha():a;return a.map(function(b){return nr(b)})};
Lha=function(a){var b=!1;b=void 0===b?!1:b;cr.google_image_requests||(cr.google_image_requests=[]);var c=yha("IMG",cr.document);b&&(c.attributionSrc="");c.src=a;cr.google_image_requests.push(c)};
sr=function(){this.B=new tha;this.j=ar()?new br:new $q};
Mha=function(){tr();var a=cr.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof cr.setInterval&&"function"===typeof cr.clearInterval&&"function"===typeof cr.setTimeout&&"function"===typeof cr.clearTimeout)};
Nha=function(){tr();return Kha()};
Oha=function(){};
tr=function(){var a=gr(Oha);if(!a.j){if(!cr)throw Error("Context has not been set and window is undefined.");a.j=gr(sr)}return a.j};
ur=function(a){this.ea=M(a)};
Pha=function(a){this.C=a;this.j=-1;this.B=this.D=0};
vr=function(a,b){return function(){var c=g.Ia.apply(0,arguments);if(-1<a.j)return b.apply(null,g.oa(c));try{return a.j=a.C.j.now(),b.apply(null,g.oa(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}};
Qha=function(a,b){this.B=a;this.C=b;this.j=new Pha(a)};
Rha=function(){this.j={}};
Tha=function(){var a=wr().flags,b=Sha;a=a.j[b.key];if("proto"===b.valueType){try{var c=JSON.parse(a);if(Array.isArray(c))return c}catch(d){}return b.defaultValue}return typeof a===typeof b.defaultValue?a:b.defaultValue};
Xha=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Gc=new Qp;Rp(this.Gc,"mv",Uha).j=!0;Rp(this.Gc,"omid",Vp);Rp(this.Gc,"epoh",Vp).j=!0;Rp(this.Gc,"epph",Vp).j=!0;Rp(this.Gc,"umt",Vp).j=!0;Rp(this.Gc,"phel",Vp).j=!0;Rp(this.Gc,"phell",Vp).j=!0;Rp(this.Gc,"oseid",Vha).j=!0;var a=this.Gc;a.j.sloi||(a.j.sloi=new Op);a.j.sloi.j=!0;Rp(this.Gc,"mm",xr);Rp(this.Gc,"ovms",Wha).j=!0;Rp(this.Gc,"xdi",Vp).j=!0;Rp(this.Gc,"amp",Vp).j=!0;Rp(this.Gc,"prf",Vp).j=!0;Rp(this.Gc,"gtx",Vp).j=!0;Rp(this.Gc,
"mvp_lv",Vp).j=!0;Rp(this.Gc,"ssmol",Vp).j=!0;Rp(this.Gc,"fmd",Vp).j=!0;Rp(this.Gc,"gen204simple",Vp);this.j=new Qha(tr(),this.Gc);this.D=!1;this.flags=new Rha};
wr=function(){return gr(Xha)};
Yha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof lr)var e=c;else e=new lr,jr(c,function(h,l){var m=e,n=m.D++;h=mr(l,h);m.j.push(n);m.B[n]=h});
var f=e.df(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(tr(),Lha(f))}catch(h){}};
Zha=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};
$ha=function(){var a=void 0===a?g.Qa:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.gb()};
aia=function(){var a=void 0===a?g.Qa:a;return(a=a.performance)&&a.now?a.now():null};
bia=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
zr=function(){var a=window;this.events=[];this.B=a||g.Qa;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=yr()||(null!=b?b:1>Math.random())};
cia=function(a){a&&Ar&&yr()&&(Ar.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Ar.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
dia=function(){var a=Br;this.j=Cr;this.OV="jserror";this.GR=!0;this.oM=null;this.B=this.nP;this.fd=void 0===a?null:a};
eia=function(a,b,c){var d=Dr;return vr(wr().j.j,function(){try{if(d.fd&&d.fd.j){var e=d.fd.start(a.toString(),3);var f=b();d.fd.end(e)}else f=b()}catch(l){var h=d.GR;try{cia(e),h=d.B(a,new Er(Fr(l)),void 0,c)}catch(m){d.nP(217,m)}if(!h)throw l;}return f})()};
Gr=function(a,b,c,d){return vr(wr().j.j,function(){var e=g.Ia.apply(0,arguments);return eia(a,function(){return b.apply(c,e)},d)})};
Fr=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};
Er=function(a){Zha.call(this,Error(a),{message:a})};
fia=function(){cr&&"undefined"!=typeof cr.google_measure_js_timing&&(cr.google_measure_js_timing||Br.disable())};
gia=function(a){Dr.oM=function(b){g.Xb(a,function(c){c(b)})}};
hia=function(a,b){return eia(a,b)};
Hr=function(a,b){return Gr(a,b)};
Ir=function(a,b,c,d){Dr.nP(a,b,c,d)};
Jr=function(){return Date.now()-iia};
jia=function(){var a=wr().C,b=0<=Kr?Jr()-Kr:-1,c=Lr?Jr()-Mr:-1,d=0<=Nr?Jr()-Nr:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Ir(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};
Or=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Pr=function(a){return a.right-a.left};
Qr=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};
Rr=function(a,b,c){b instanceof g.le?(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};
Sr=function(a,b,c){var d=new Or(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c};
Tr=function(a,b,c,d,e,f,h,l){this.D=a;this.N=b;this.C=c;this.K=d;this.j=e;this.G=f;this.B=h;this.Z=l};
lia=function(a){var b=a!==a.top,c=a.top===Bha(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),$aa(kia,function(h){return"function"===typeof f[h]})||(e=1));
return{Pn:f,compatibility:e,Bba:d}};
mia=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
nia=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.ne(b.innerWidth,b.innerHeight)).round():Yba(b||window).round()}catch(d){return new g.ne(-12245933,-12245933)}};
Ur=function(a,b,c){try{a&&(b=b.top);var d=nia(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new Or(f,f,f,f);var h=$ba(He(b.document).j),l=h.x,m=h.y;return new Or(m,l+f,m+e,l)}catch(n){return new Or(-12245933,-12245933,-12245933,-12245933)}};
g.Vr=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Wr=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.Yr=function(a,b,c){if("string"===typeof b)(b=Xr(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Xr(c,d);f&&(c.style[f]=e)}};
Xr=function(a,b){var c=oia[b];if(!c){var d=Sba(b);c=d;void 0===a.style[d]&&(d=(g.Pc?"Webkit":Zr?"Moz":g.We?"ms":null)+Uba(d),void 0!==a.style[d]&&(c=d));oia[b]=c}return c};
g.$r=function(a,b){var c=a.style[Sba(b)];return"undefined"!==typeof c?c:a.style[Xr(a,b)]||""};
as=function(a,b){var c=ye(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
bs=function(a,b){return as(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.ds=function(a,b,c){if(b instanceof g.le){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.cs(d,!1);a.style.top=g.cs(b,!1)};
es=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
pia=function(a){if(g.We&&!g.Oc(8))return a.offsetParent;var b=ye(a),c=bs(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=bs(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.fs=function(a){var b=ye(a),c=new g.le(0,0);var d=b?ye(b):document;d=!g.We||g.Oc(9)||"CSS1Compat"==He(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=es(a);b=$ba(He(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
ria=function(a,b){var c=new g.le(0,0),d=Xe(ye(a));if(!Kc(d,"parent"))return c;do{var e=d==b?g.fs(a):qia(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.gs=function(a,b){a=sia(a);b=sia(b);return new g.le(a.x-b.x,a.y-b.y)};
qia=function(a){a=es(a);return new g.le(a.left,a.top)};
sia=function(a){if(1==a.nodeType)return qia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.le(a.clientX,a.clientY)};
g.hs=function(a,b,c){if(b instanceof g.ne)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.cs(b,!0);a.style.height=g.cs(c,!0)};
g.cs=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.is=function(a){var b=tia;if("none"!=bs(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};
tia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Pc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=es(a),new g.ne(a.right-a.left,a.bottom-a.top)):new g.ne(b,c)};
g.js=function(a,b){a.style.display=b?"":"none"};
ks=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
uia=function(a){return new Or(a.top,a.right,a.bottom,a.left)};
via=function(a){var b=a.top||0,c=a.left||0;return new Or(b,c+(a.width||0),b+(a.height||0),c)};
ls=function(a){return null!=a&&0<=a&&1>=a};
wia=function(){var a=g.mc();return a?ms("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(b){return hc(a,b)})||hc(a,"OMI/")&&!hc(a,"XiaoMi/")?!0:hc(a,"Presto")&&hc(a,"Linux")&&!hc(a,"X11")&&!hc(a,"Android")&&!hc(a,"Mobi"):!1};
xia=function(){this.C=!ir(cr.top);this.isMobileDevice=hr()||uha();var a=kr();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Gl(a[a.length-1].url)||"":"";this.j=new Or(0,0,0,0);this.D=new g.ne(0,0);this.G=new g.ne(0,0);this.N=new Or(0,0,0,0);this.K=0;this.Z=!1;this.B=!(!cr||!lia(cr).Pn);this.update(cr)};
yia=function(a,b){b&&b.screen&&(a.D=new g.ne(b.screen.width,b.screen.height))};
zia=function(a,b){var c=a.j?new g.ne(Pr(a.j),a.j.getHeight()):new g.ne(0,0);b=void 0===b?cr: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.ne(e,d)}catch(t){r=new g.ne(-12245933,-12245933)}a.G=r};
ps=function(){var a=ns();if(0<a.K||a.Z)return!0;a=tr().B.isVisible();var b=0===fr(os);return a||b};
ns=function(){return gr(xia)};
qs=function(a){this.C=a;this.B=0;this.j=null};
rs=function(a,b,c){this.C=a;this.Qa=void 0===c?"na":c;this.G=[];this.isInitialized=!1;this.D=new Sr(-1,!0,this);this.j=this;this.Z=b;this.ma=this.W=!1;this.Ga="uk";this.Ea=!1;this.K=!0};
ts=function(a,b){g.Fb(a.G,b)||(a.G.push(b),b.zz(a.j),b.kt(a.D),b.Yp()&&(a.W=!0))};
Aia=function(a){a=a.j;a.qT();a.pT();var b=ns();b.N=Ur(!1,a.C,b.isMobileDevice);zia(ns(),a.C);a.D.j=a.vW()};
Bia=function(a){a.W=a.G.length?ms(a.G,function(b){return b.Yp()}):!1};
Cia=function(a){var b=g.Kb(a.G);g.Xb(b,function(c){c.kt(a.D)})};
us=function(a){var b=g.Kb(a.G);g.Xb(b,function(c){c.zz(a.j)});
a.j!=a||Cia(a)};
vs=function(a,b,c,d){this.element=a;this.j=new Or(0,0,0,0);this.D=new Or(0,0,0,0);this.B=b;this.Gc=c;this.ra=d;this.ma=!1;this.timestamp=-1;this.N=new Tr(b.D,this.element,this.j,new Or(0,0,0,0),0,0,Jr(),0)};
ws=function(a){this.G=!1;this.j=a;this.D=function(){}};
Dia=function(a,b,c){this.B=void 0===c?0:c;this.j=a;this.Ud=null==b?"":b};
Eia=function(a){switch(Math.trunc(a.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Fia=function(a,b){return a.B<b.B?!0:a.B>b.B?!1:a.j<b.j?!0:a.j>b.j?!1:typeof a.Ud<typeof b.Ud?!0:typeof a.Ud>typeof b.Ud?!1:a.Ud<b.Ud};
xs=function(){this.C=0;this.j=[];this.B=!1};
Gia=function(a,b){(0,g.Xb)(b.j,function(c){a.add(c.j,c.Ud,Eia(c))})};
ys=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;jr(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
zs=function(a){var b=Hia;a.B&&(g.Ub(a.j,function(c,d){return Fia(d,c)?1:Fia(c,d)?-1:0}),a.B=!1);
return rr(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Hia=function(a){var b=a.j;a=a.Ud;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Fb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Iia=function(a){var b=void 0===b?!0:b;this.j=new xs;void 0!==a&&Gia(this.j,a);b&&this.j.add("v","unreleased",-16)};
Jia=function(a){var b=[],c=[];g.Wc(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)};
Kia=function(a){a=a.toString();a=a.substring(0,4E3);tr();Lha(a)};
Lia=function(){this.j=0};
Mia=function(a,b,c){(0,g.Xb)(a.C,function(d){var e=a.j;if(!d.j&&(d.C(b,c),d.D())){d.j=!0;var f=d.B(),h=new xs;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.G);d=gr(Lia);h.add("i",d.j++);h.add("adk",e);ys(h,f);e=new Iia(h);Kia(e)}})};
Js=function(){this.B=this.C=this.D=this.j=0};
Ks=function(a){this.B=a=void 0===a?Nia:a;this.j=g.pr(this.B,function(){return new Js})};
Ls=function(a,b){return Oia(a,function(c){return c.j},void 0===b?!0:b)};
Ns=function(a,b){return Ms(a,b,function(c){return c.j})};
Pia=function(a,b){return Oia(a,function(c){return c.C},void 0===b?!0:b)};
Os=function(a,b){return Ms(a,b,function(c){return c.C})};
Ps=function(a,b){return Ms(a,b,function(c){return c.B})};
Qia=function(a){g.Xb(a.j,function(b){b.B=0})};
Oia=function(a,b,c){a=g.pr(a.j,function(d){return b(d)});
return c?a:Ria(a)};
Ms=function(a,b,c){var d=g.Eb(a.B,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
Ria=function(a){return g.pr(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Qs=function(){this.B=new Ks;this.Qa=new Js;this.ra=this.N=-1;this.Za=1E3;this.bb=new Ks([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ga=this.Ba=-1};
Rs=function(a,b){return Pia(a.B,void 0===b?!0:b)};
Ss=function(a,b,c,d){var e=void 0===e?!1:e;c=Gr(d,c);er(a,b,c,{capture:e})};
Us=function(a,b){b=Ts(b);return 0===b?0:Ts(a)/b};
Ts=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Sia=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.of(a)||a){var d=ye(a),e=d&&Xe(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Tia=function(a,b,c){if(!a||!b)return!1;b=Rr(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;ir(window.top)&&window.top&&window.top.document&&(window=window.top);if(!mia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=ye(c))&&b.defaultView&&b.defaultView.frameElement)&&Sia(b,a);var d=a===c;a=!d&&a&&sf(a,function(e){return e===c});
return!(b||d||a)};
Uia=function(a,b,c,d){return ns().C?!1:0>=Pr(a)||0>=a.getHeight()?!0:c&&d?hia(208,function(){return Tia(a,b,c)}):!1};
Vs=function(a,b,c){g.H.call(this);this.position=Via.clone();this.bJ=this.aI();this.kP=-2;this.Sba=Date.now();this.P_=-1;this.Lp=b;this.RI=null;this.bD=!1;this.oJ=null;this.opacity=-1;this.requestSource=c;this.aca=!1;this.pP=function(){};
this.g0=function(){};
this.Rj=new rha;this.Rj.It=a;this.Rj.j=a;this.vt=!1;this.vv={AP:null,zP:null};this.r_=!0;this.RF=null;this.Jz=this.w7=!1;wr().K++;this.Sh=this.YN();this.K_=-1;this.Wf=null;this.hasCompleted=this.t7=!1;this.Gc=new Qp;qha(this.Gc);Wia(this);1==this.requestSource?Sp(this.Gc,"od",1):Sp(this.Gc,"od",0)};
Wia=function(a){a=a.Rj.It;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Xia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Tba()):!!a.getAttribute("data-"+Tba());b&&(ns().B=!0)};
Ws=function(a,b){b!=a.Jz&&(a.Jz=b,a=ns(),b?a.K++:0<a.K&&a.K--)};
Yia=function(a,b){if(a.Wf){if(b.getName()===a.Wf.getName())return;a.Wf.dispose();a.Wf=null}b=b.create(a.Rj.j,a.Gc,a.Yp());if(b=null!=b&&b.EL()?b:null)a.Wf=b};
Zia=function(a,b,c){if(!a.RI||-1==a.Lp||-1===b.B||-1===a.RI.B)return 0;a=b.B-a.RI.B;return a>c?0:a};
$ia=function(a,b,c){if(a.Wf){a.Wf.xs();var d=a.Wf.N,e=d.D,f=e.j;if(null!=d.K){var h=d.C;a.oJ=new g.le(h.left-f.left,h.top-f.top)}f=a.BK()?Math.max(d.j,d.G):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.mW(d);a.RI=d;a.Sa(f,b,c,!1,h,e,d.Z)}};
aja=function(a){if(a.bD&&a.RF){var b=1==Tp(a.Gc,"od"),c=ns().j,d=a.RF,e=a.Wf?a.Wf.getName():"ns",f=a.oJ,h=new g.ne(Pr(c),c.getHeight());c=a.BK();a={Iba:e,oJ:f,zca:h,BK:c,Be:a.Sh.Be,tca:b};if(b=d.B){b.xs();e=b.N;f=e.D.j;var l=h=null;null!=e.K&&f&&(h=e.C,h=new g.le(h.left-f.left,h.top-f.top),l=new g.ne(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={Iba:b.getName(),oJ:h,zca:l,BK:c,tca:!1,Be:e}}else c=null;c&&Mia(d,a,c)}};
bja=function(a,b,c){b&&(a.pP=b);c&&(a.g0=c)};
g.Xs=function(){};
g.Ys=function(a){return{value:a,done:!1}};
cja=function(){this.D=this.j=this.C=this.B=this.G=0};
dja=function(a){var b={};var c=g.gb()-a.G;b=(b.ptlt=c,b);(c=a.B)&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
eja=function(){Lp.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
Zs=function(a){return ls(a.volume)&&0<a.volume};
$s=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 fja(f,b,c)}};
at=function(a,b){return function(c){return b(c)?c[a]:void 0}};
gja=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}};
fja=function(a,b,c){return void 0===c||c?g.bt(a,function(d,e){return g.Fb(b,e)}):g.pr(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)})};
hja=function(){this.B=this.j=""};
ija=function(){};
ct=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.qd(c,a);return zs(ys(new xs,c))};
jja=function(){var a={};this.B=(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.tvoff=[134217728,134217728],a);this.j={};for(var b in this.B)0<this.B[b][1]&&(this.j[b]=0);this.C=0};
dt=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
kja=function(a){var b=g.ed(a.B),c=0,d;for(d in a.j)g.Fb(b,d)&&1==a.j[d]&&(c+=a.B[d][1],a.j[d]=2);return c};
lja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.B[c][1]}return b};
et=function(){this.j=this.B=0};
ft=function(){Qs.call(this);this.C=new Js;this.Na=this.W=this.Ea=0;this.Z=-1;this.kb=new Js;this.G=new Js;this.j=new Ks;this.K=this.D=-1;this.ma=new Js;this.Za=2E3;this.La=new et;this.Xa=new et;this.Va=new et};
gt=function(a,b,c){var d=a.Na;Lr||c||-1==a.Z||(d+=b-a.Z);return d};
mja=function(){this.C=!1};
ht=function(a,b){this.C=!1;this.D=a;this.W=b;this.G=0};
jt=function(a,b){ht.call(this,a,b);this.N=[]};
nja=function(){};
kt=function(){};
lt=function(a,b,c,d){vs.call(this,a,b,c,d)};
mt=function(a,b,c){vs.call(this,null,a,b,c);this.K=a.isActive();this.G=0};
nt=function(a){return[a.top,a.left,a.bottom,a.right]};
ot=function(a,b,c,d,e,f){f=void 0===f?new kt:f;Vs.call(this,b,c,d);this.CQ=e;this.iN=0;this.Wh={};this.Ng=new jja;this.y0={};this.aj="";this.Xa=null;this.Jb=!1;this.j=[];this.qr=f.B();this.K=f.C();this.D=null;this.C=-1;this.Na=this.W=void 0;this.ra=this.ma=0;this.Ga=-1;this.bb=this.Za=!1;this.Ea=this.Z=this.B=this.IB=this.tb=0;new Ks;this.La=this.Qa=0;this.Va=-1;this.gk=0;this.N=g.Hd;this.Ba=[this.aI()];this.Bb=2;this.wx={};this.wx.pause="p";this.wx.resume="r";this.wx.skip="s";this.wx.mute="m";this.wx.unmute=
"um";this.wx.exitfullscreen="ef";this.G=null;this.kb=this.rb=!1};
pt=function(a){a.hasCompleted=!0;0!=a.gk&&(a.gk=3)};
qt=function(a){return void 0===a?a:Number(a)?ks(a,3):0};
rt=function(a,b){return a.Ba[null!=b&&b<a.Ba.length?b:a.Ba.length-1]};
oja=function(a){var b=!!Tp(wr().Gc,"umt");return a.W||!b&&!a.Na?0:1};
pja=function(a,b){a.Ln()?b=0:-1==a.Lp?b=0:(b-=a.Lp,b=b>Math.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=void 0!==c.currentTime?c.currentTime:a.ma;var d=c-a.ma,e=0;0<=d?(a.ra+=b,a.La+=Math.max(b-d,0),e=Math.min(d,a.ra)):a.Qa+=Math.abs(d);0!=d&&(a.ra=0);-1==a.Va&&0<d&&(a.Va=0<=Nr?Jr()-Nr:-1);a.ma=c;return e};
qja=function(a,b){ms(a.K,function(c){return c.D==b.D})||a.K.push(b)};
rja=function(a){var b=Ns(a.tj().j,1);return tt(a,b)};
tt=function(a,b,c){return 15E3<=b?!0:a.Za?(void 0===c?0:c)?!0:0<a.C?b>=a.C/2:0<a.Ga?b>=a.Ga:!1:!1};
sja=function(a){var b=ks(a.Sh.Be,2),c=a.Ng.C,d=a.Sh,e=rt(a),f=qt(e.D),h=qt(e.K),l=qt(d.volume),m=ks(e.N,2),n=ks(e.ra,2),p=ks(d.Be,2),q=ks(e.Ba,2),r=ks(e.Ga,2);d=ks(d.xk,2);a=a.Ws().clone();a.round();e=Rs(e,!1);return{yca:b,VD:c,gJ:f,VI:h,JC:l,hJ:m,XI:n,Be:p,jJ:q,YI:r,xk:d,position:a,lJ:e}};
uja=function(a,b){tja(a.j,b,function(){return{yca:0,VD:void 0,gJ:-1,VI:-1,JC:-1,hJ:-1,XI:-1,Be:-1,jJ:-1,YI:-1,xk:-1,position:void 0,lJ:[]}});
a.j[b]=sja(a)};
tja=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
vt=function(a,b,c){var d=a.y0[b];if(null!=d)return d;d=vja(a,b);var e=hd(ut,function(f){return f==b});
a=wja(a,d,d,c,xja[ut[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
wt=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
wja=function(a,b,c,d,e){if(a.vt)return{"if":0,vs:0};var f=a.Ws().clone();f.round();var h=ns(),l=wr(),m=a.tj(),n=a.Wf?a.Wf.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.D?a.D:void 0;p.t=a.Sba;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Ls(m.B,!1);p.mtos=Rs(m);p.mcvt=m.Qa.C;p.ps=void 0;f=gt(m,Jr(),a.Ln());p.vht=f;p.mut=m.kb.C;p.a=qt(a.Sh.volume);p.mv=qt(m.K);p.fs=a.Jz?1:0;p.ft=m.ma.j;p.at=m.G.j;p.as=0<m.D?1:0;p.atos=Ls(m.j);p.ssb=Ls(m.bb,!1);p.amtos=Pia(m.j,!1);p.uac=a.tb;p.vpt=m.C.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=tt(a,m.C.j,!0)?1:0;p.efpf=a.Bb;if("gsv"==n||"nis"==n)n=a.Wf,0<n.G&&(p.nnut=n.G);p.tcm=oja(a);p.nmt=a.Qa;p.bt=a.La;p.pst=a.Va;p.vpaid=a.W;p.dur=a.C;p.vmtime=a.ma;p.is=a.Ng.C;1<=a.j.length&&(p.i0=a.j[0].VD,p.a0=[a.j[0].JC],p.c0=[a.j[0].Be],p.ss0=[a.j[0].xk],n=a.j[0].position,p.p0=n?nt(n):void 0);2<=a.j.length&&(p.i1=a.j[1].VD,p.a1=wt(a.j[1].gJ,a.j[1].JC,a.j[1].VI),p.c1=wt(a.j[1].hJ,a.j[1].Be,a.j[1].XI),p.ss1=wt(a.j[1].jJ,a.j[1].xk,a.j[1].YI),n=a.j[1].position,p.p1=n?
nt(n):void 0,p.mtos1=a.j[1].lJ);3<=a.j.length&&(p.i2=a.j[2].VD,p.a2=wt(a.j[2].gJ,a.j[2].JC,a.j[2].VI),p.c2=wt(a.j[2].hJ,a.j[2].Be,a.j[2].XI),p.ss2=wt(a.j[2].jJ,a.j[2].xk,a.j[2].YI),n=a.j[2].position,p.p2=n?nt(n):void 0,p.mtos2=a.j[2].lJ);4<=a.j.length&&(p.i3=a.j[3].VD,p.a3=wt(a.j[3].gJ,a.j[3].JC,a.j[3].VI),p.c3=wt(a.j[3].hJ,a.j[3].Be,a.j[3].XI),p.ss3=wt(a.j[3].jJ,a.j[3].xk,a.j[3].YI),n=a.j[3].position,p.p3=n?nt(n):void 0,p.mtos3=a.j[3].lJ);p.cs=lja(a.Ng);b&&(p.ic=kja(a.Ng),p.dvpt=m.C.B,p.dvs=Ps(m.B,
.5),p.dfvs=Ps(m.B,1),p.davs=Ps(m.j,.5),p.dafvs=Ps(m.j,1),c&&(m.C.B=0,Qia(m.B),Qia(m.j)),a.er()&&(p.dtos=m.Ea,p.dav=m.W,p.dtoss=a.iN+1,c&&(m.Ea=0,m.W=0,a.iN++)),p.dat=m.G.B,p.dft=m.ma.B,c&&(m.G.B=0,m.ma.B=0));p.ps=[h.G.width,h.G.height];p.bs=[Pr(h.j),h.j.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.IB&&(p.vds=a.IB);if(0<a.K.length||a.qr)b=g.Kb(a.K),a.qr&&b.push(a.qr),p.pings=g.pr(b,function(q){return q.toString()});
b=g.pr(g.bt(a.K,function(q){return q.K()}),function(q){return q.getId()});
uaa(b);p.ces=b;a.B&&(p.vmer=a.B);a.Z&&(p.vmmk=a.Z);a.Ea&&(p.vmiec=a.Ea);p.avms=a.Wf?a.Wf.getName():"ns";a.Wf&&g.qd(p,a.Wf.Ts());d?(p.c=ks(a.Sh.Be,2),p.ss=ks(a.Sh.xk,2)):p.tth=Jr()-yja;p.mc=ks(m.ra,2);p.nc=ks(m.N,2);p.mv=qt(m.K);p.nv=qt(m.D);p.lte=ks(a.kP,2);d=rt(a,e);Rs(m);p.qmtos=Rs(d);p.qnc=ks(d.N,2);p.qmv=qt(d.K);p.qnv=qt(d.D);p.qas=0<d.D?1:0;p.qi=a.aj;p.avms||(p.avms="geo");p.psm=m.La.j;p.psv=m.La.getValue();p.psfv=m.Xa.getValue();p.psa=m.Va.getValue();l=oha(l.Gc);l.length&&(p.veid=l);a.G&&g.qd(p,
dja(a.G));p.avas=a.MH();p.vs=a.yW();return p};
vja=function(a,b){if(g.Fb(zja,b))return!0;var c=a.Wh[b];return void 0!==c?(a.Wh[b]=!0,!c):!1};
Bja=function(){this.j={};var a=Xe();xt(this,a,document);var b=Aja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)xt(this,c,c.document);xt(this,a.top,a.top.document)}}catch(d){}};
Aja=function(){var a=document.documentElement;try{if(!ir(Xe().top))return"2";var b=[],c=Xe(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"}};
xt=function(a,b,c){Ss(c,"mousedown",function(){return Cja(a)},301);
Ss(b,"scroll",function(){return Dja(a)},302);
Ss(c,"touchmove",function(){return Eja(a)},303);
Ss(c,"mousemove",function(){return Fja(a)},304);
Ss(c,"keydown",function(){return Gja(a)},305)};
Cja=function(a){g.Wc(a.j,function(b){1E5<b.C||++b.C})};
Dja=function(a){g.Wc(a.j,function(b){1E5<b.j||++b.j})};
Eja=function(a){g.Wc(a.j,function(b){1E5<b.j||++b.j})};
Gja=function(a){g.Wc(a.j,function(b){1E5<b.B||++b.B})};
Fja=function(a){g.Wc(a.j,function(b){1E5<b.D||++b.D})};
Hja=function(){this.j=[];this.B=[]};
zt=function(a,b){return g.Db(a.j,function(c){return c.aj==b})};
Ija=function(a,b){return b?g.Db(a.j,function(c){return c.Rj.It==b}):null};
Jja=function(a,b){return g.Db(a.B,function(c){return 2==c.Bp()&&c.aj==b})};
Bt=function(){var a=At;return 0==a.j.length?a.B:0==a.B.length?a.j:g.Jb(a.B,a.j)};
Kja=function(a,b){a=1==b.Bp()?a.j:a.B;var c=Cb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Wf&&b.Wf.yG(),b.dispose(),!0):!1};
Lja=function(a){var b=At;if(Kja(b,a)){switch(a.Bp()){case 0:var c=function(){return null};
case 2:c=function(){return Jja(b,a.aj)};
break;case 1:c=function(){return zt(b,a.aj)}}for(var d=c();d;d=c())Kja(b,d)}};
Mja=function(a){var b=At;a=g.bt(a,function(c){return!Ija(b,c.Rj.It)});
b.j.push.apply(b.j,g.oa(a))};
Nja=function(a){var b=[];g.Xb(a,function(c){ms(At.j,function(d){return d.Rj.It===c.Rj.It&&d.aj===c.aj})||(At.j.push(c),b.push(c))})};
Ct=function(){this.j=this.B=null};
Oja=function(a,b){function c(d,e){b(d,e)}
if(null==a.B)return!1;a.j=g.Db(a.B,function(d){return null!=d&&d.rT()});
a.j&&(a.j.init(c)?Aia(a.j.j):b(a.j.j.oz(),a.j));return null!=a.j};
Dt=function(a){a=Pja(a);ws.call(this,a.length?a[a.length-1]:new rs(cr,0));this.C=a;this.B=null};
Pja=function(a){if(!a.length)return[];a=(0,g.bt)(a,function(c){return null!=c&&c.eC()});
for(var b=1;b<a.length;b++)ts(a[b-1],a[b]);return a};
Et=function(a,b,c,d){vs.call(this,a,b,c,d);this.W=this.Z=this.G=this.K=this.C=null};
Ft=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
Rja=function(a){if(!a.element)return!1;var b=a.element,c=a.B.j.C,d=wr().j.j;a.C=new c.IntersectionObserver(vr(d,function(e){return Gt(a,e)}),Qja);
d=vr(d,function(){a.C.unobserve(b);a.C.observe(b);Gt(a,Ft(a))});
c.ResizeObserver?(a.K=new c.ResizeObserver(d),a.K.observe(b)):c.MutationObserver&&(a.G=new g.Qa.MutationObserver(d),a.G.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);Gt(a,Ft(a));return!0};
Gt=function(a,b){try{if(b.length){a.Z||(a.Z=Jr());var c=Sja(b),d=ria(a.element,a.B.j.C),e=d.x,f=d.y;a.j=new Or(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=uia(c.intersectionRect);a.D=Rr(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.yG(),Ir(299,l)}};
Sja=function(a){return rr(a,function(b,c){return b.time>c.time?b:c},a[0])};
Ht=function(a){a=void 0===a?cr:a;ws.call(this,new rs(a,2))};
It=function(){var a=Tja();rs.call(this,cr.top,a,"geo")};
Tja=function(){wr();var a=ns();return a.C||a.B?0:2};
Uja=function(){};
Jt=function(){this.done=!1;this.j={o4:0,IU:0,skb:0,GV:0,EO:-1,c5:0,b5:0,d5:0,Fba:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new qs(this)};
Lt=function(){var a=Kt;a.K||(a.K=!0,Vja(a,function(){return a.D.apply(a,g.oa(g.Ia.apply(0,arguments)))}),a.D())};
Wja=function(){gr(Uja);var a=gr(Ct);null!=a.j&&a.j.j?Aia(a.j.j):ns().update(cr)};
Mt=function(a,b,c){if(!a.done&&(a.B.cancel(),0!=b.length)){a.C=null;try{Wja();var d=Jr();wr().G=d;if(null!=gr(Ct).j)for(var e=0;e<b.length;e++)$ia(b[e],d,c);for(d=0;d<b.length;d++)aja(b[d]);++a.j.GV}finally{c?g.Xb(b,function(f){f.Sh.Be=0}):a.B.schedule()}}};
Vja=function(a,b){if(!a.G){b=Gr(142,b);tr();var c;os.visibilityState?c="visibilitychange":os.mozVisibilityState?c="mozvisibilitychange":os.webkitVisibilityState&&(c="webkitvisibilitychange");c&&er(os,c,b,{capture:!1})&&(a.G=b)}};
Xja=function(){var a=gr(Ct);if(null!=a.j){var b=a.j;g.Xb(Bt(),function(c){return Yia(c,b)})}};
Yja=function(a,b){a=a.N;Lr&&(a+=b-Mr);return a};
Zja=function(a){a=void 0===a?function(){return{}}:a;
Dr.OV="av-js";Cr.j=.01;gia([function(b){var c=wr(),d={};d=(d.bin=c.B,d.type="error",d);c=Up(c.Gc);if(!Kt.C){var e=Kt,f=cr.document,h=0<=Kr?Jr()-Kr:-1,l=Jr();-1==e.j.EO&&(h=l);var m=ns(),n=wr(),p=Up(n.Gc),q=Bt();try{if(0<q.length){var r=m.j;r&&(p.bs=[Pr(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);cr.screen&&(p.scs=[cr.screen.width,cr.screen.height])}else p.url=encodeURIComponent(cr.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
p.tt=h;p.pt=Kr;p.bin=n.B;void 0!==cr.google_osd_load_pub_page_exp&&(p.olpp=cr.google_osd_load_pub_page_exp);p.deb=[1,e.j.o4,e.j.IU,e.j.GV,e.j.EO,0,e.B.B,e.j.c5,e.j.b5,e.j.d5,e.j.Fba,-1].join(";");p.tvt=Yja(e,l);m.B&&(p.inapp=1);if(null!==cr&&cr!=cr.top){0<q.length&&(p.iframe_loc=encodeURIComponent(cr.location.href.substring(0,512)));var v=m.N;p.is=[Pr(v),v.getHeight()]}}catch(x){p.error=1}Kt.C=p}r=g.ld(Kt.C);t=wr().j;1==Tp(t.C,"prf")?(v=new ur,e=t.j,f=0,-1<e.j&&(f=e.C.j.now()-e.j),v=pj(v,1,Vh(e.D+
f),0),e=t.j,v=pj(v,5,pi(-1<e.j?e.B+1:e.B),0),v=pj(v,2,ui(t.B.j.C()),"0"),v=pj(v,3,ui(t.B.j.B()),"0"),t=pj(v,4,ui(t.B.j.j()),"0"),v={},t=(v.pf=g.fg(t.j()),v)):t={};g.qd(r,t);g.qd(b,d,c,r,a())}])};
aka=function(){var a=$ja||cr;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("&")};
Nt=function(){var a="youtube.player.web_20231217_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20231217_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20231217_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20231217_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_20231217_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};
bka=function(){return"av.default_js".includes("ima_html5_sdk")?{jp:"ima",mp:null}:"av.default_js".includes("ima_native_sdk")?{jp:"nima",mp:null}:"av.default_js".includes("admob-native-video-javascript")?{jp:"an",mp:null}:"youtube.player.web_20231217_00_RC00".includes("cast_js_sdk")?{jp:"cast",mp:Nt()}:"youtube.player.web_20231217_00_RC00".includes("youtube.player.web")?{jp:"yw",mp:Nt()}:"youtube.player.web_20231217_00_RC00".includes("outstream_web_client")?{jp:"out",mp:Nt()}:"youtube.player.web_20231217_00_RC00".includes("drx_rewarded_web")?
{jp:"r",mp:Nt()}:"youtube.player.web_20231217_00_RC00".includes("gam_native_web_video")?{jp:"n",mp:Nt()}:"youtube.player.web_20231217_00_RC00".includes("admob_interstitial_video")?{jp:"int",mp:Nt()}:{jp:"j",mp:null}};
Qt=function(a,b){var c={sv:"960"};null!==Ot&&(c.v=Ot);c.cb=cka;c.nas=At.j.length;c.msg=a;void 0!==b&&(a=dka(b))&&(c.e=Pt[a]);return c};
Rt=function(a){return bc(a,"custom_metric_viewable")};
dka=function(a){var b=Rt(a)?"custom_metric_viewable":a.toLowerCase();return hd(ut,function(c){return c==b})};
eka=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"};
hka=function(a){try{var b=a.split(",");return b.length>g.ed(fka).length?null:rr(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===gka[d[0]]||!gka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
ika=function(a,b){if(void 0==a.j)return 0;switch(a.G){case "mtos":return a.B?Os(b.j,a.j):Os(b.B,a.j);case "tos":return a.B?Ns(b.j,a.j):Ns(b.B,a.j)}return 0};
St=function(a,b,c,d){ht.call(this,b,d);this.N=a;this.Z=c};
Tt=function(){};
Ut=function(a){ht.call(this,"fully_viewable_audible_half_duration_impression",a)};
Vt=function(a){this.j=a};
Wt=function(a,b){ht.call(this,a,b)};
Xt=function(a){jt.call(this,"measurable_impression",a)};
Yt=function(){Vt.apply(this,arguments)};
Zt=function(a,b,c){mt.call(this,a,b,c)};
$t=function(a){a=void 0===a?cr:a;ws.call(this,new rs(a,2))};
au=function(a,b,c){mt.call(this,a,b,c)};
bu=function(a){a=void 0===a?cr:a;ws.call(this,new rs(a,2))};
cu=function(){rs.call(this,cr,2,"mraid");this.La=0;this.ra=this.Ba=!1;this.N=null;this.B=lia(this.C);this.D.j=new Or(0,0,0,0);this.Na=!1};
du=function(a,b,c){a.Zt("addEventListener",b,c)};
mka=function(a){wr().D=!!a.Zt("isViewable");du(a,"viewableChange",jka);"loading"===a.Zt("getState")?du(a,"ready",kka):lka(a)};
lka=function(a){"string"===typeof a.B.Pn.AFMA_LIDAR?(a.Ba=!0,nka(a)):(a.B.compatibility=3,a.N="nc",a.fail("w"))};
nka=function(a){a.ra=!1;var b=1==Tp(wr().Gc,"rmmt"),c=!!a.Zt("isViewable");(b?!c:1)&&tr().setTimeout(Hr(524,function(){a.ra||(oka(a),Ir(540,Error()),a.N="mt",a.fail("w"))}),500);
pka(a);du(a,a.B.Pn.AFMA_LIDAR,qka)};
pka=function(a){var b=1==Tp(wr().Gc,"sneio"),c=void 0!==a.B.Pn.AFMA_LIDAR_EXP_1,d=void 0!==a.B.Pn.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.Pn.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Pn.AFMA_LIDAR_EXP_1=!b)};
oka=function(a){a.Zt("removeEventListener",a.B.Pn.AFMA_LIDAR,qka);a.Ba=!1};
rka=function(a,b){if("loading"===a.Zt("getState"))return new g.ne(-1,-1);b=a.Zt(b);if(!b)return new g.ne(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.ne(-1,-1):new g.ne(a,b)};
kka=function(){try{var a=gr(cu);a.Zt("removeEventListener","ready",kka);lka(a)}catch(b){Ir(541,b)}};
qka=function(a,b){try{var c=gr(cu);c.ra=!0;var d=a?new Or(a.y,a.x+a.width,a.y+a.height,a.x):new Or(0,0,0,0);var e=Jr(),f=ps();var h=new Sr(e,f,c);h.j=d;h.volume=b;c.kt(h)}catch(l){Ir(542,l)}};
jka=function(a){var b=wr(),c=gr(cu);a&&!b.D&&(b.D=!0,c.Na=!0,c.N&&c.fail("w",!0))};
eu=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.b7,a.firstquartile=this.W6,a.midpoint=this.Y6,a.thirdquartile=this.c7,a.complete=this.T6,a.error=this.U6,a.pause=this.BQ,a.resume=this.TZ,a.skip=this.a7,a.viewable_impression=this.Cp,a.mute=this.EB,a.unmute=this.EB,a.fullscreen=this.X6,a.exitfullscreen=this.V6,a.fully_viewable_audible_half_duration_impression=this.Cp,a.measurable_impression=this.Cp,a.abandon=this.BQ,a.engagedview=this.Cp,a.impression=this.Cp,a.creativeview=
this.Cp,a.progress=this.EB,a.custom_metric_viewable=this.Cp,a.bufferstart=this.BQ,a.bufferfinish=this.TZ,a.audio_measurable=this.Cp,a.audio_audible=this.Cp,a);a={};this.N=(a.overlay_resize=this.Z6,a.abandon=this.rO,a.close=this.rO,a.collapse=this.rO,a.overlay_unmeasurable_impression=function(b){return vt(b,"overlay_unmeasurable_impression",ps())},a.overlay_viewable_immediate_impression=function(b){return vt(b,"overlay_viewable_immediate_impression",ps())},a.overlay_unviewable_impression=function(b){return vt(b,
"overlay_unviewable_impression",ps())},a.overlay_viewable_end_of_session_impression=function(b){return vt(b,"overlay_viewable_end_of_session_impression",ps())},a);
wr().B=3;ska(this)};
fu=function(a,b,c,d){a=a.nF(null,d,!0,b);a.D=c;Mja([a]);return a};
tka=function(a,b,c){mha(b);var d=a.j;g.Xb(b,function(e){var f=g.pr(e.criteria,function(h){var l=hka(h);if(null==l)h=null;else if(h=new eka,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Daa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
ms(f,function(h){return null==h})||qja(c,new St(e.id,e.event,f,d))})};
uka=function(){var a=[],b=wr();a.push(gr(It));Tp(b.Gc,"mvp_lv")&&a.push(gr(cu));b=[new $t,new bu];b.push(new Dt(a));b.push(new Ht(cr));return b};
vka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=Jr(),c=wr(),d=ns();Kr=b;c.C=79463069;"o"!==a.B&&($ja=Bha(cr));if(Mha()){Kt.j.IU=0;Kt.j.EO=Jr()-b;var e=uka(),f=gr(Ct);f.B=e;Oja(f,function(){gu()})?Kt.done||(Xja(),ts(f.j.j,a),Lt()):d.C?gu():Lt()}else hu=!0}catch(h){throw At.reset(),h;
}}};
ju=function(a){Kt.B.cancel();iu=a;Kt.done=!0};
ku=function(a){if(a.B)return a.B;var b=gr(Ct).j;if(b)switch(b.getName()){case "nis":a.B="n";break;case "gsv":a.B="m"}a.B||(a.B="h");return a.B};
lu=function(a,b,c){if(null==a.j)return b.IB|=4,!1;a=wka(a.j,c,b);b.IB|=a;return 0==a};
gu=function(){var a=[new Ht(cr)],b=gr(Ct);b.B=a;Oja(b,function(){ju("i")})?Kt.done||(Xja(),Lt()):ju("i")};
xka=function(a,b){if(!a.Jb){var c=vt(a,"start",ps());c=a.CQ.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="960";null!==Ot&&(d.v=Ot);Il(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=aka();Il(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//web.archive.org/web/20240102114909/https://pagead2.googlesyndication.com/pagead/gen_204?"+zs(ys(new xs,d));Kia(b);a.Jb=!0}};
mu=function(a,b,c){Mt(Kt,[a],!ps());uja(a,c);4!=c&&tja(a.Ba,c,a.aI);return vt(a,b,ps())};
ska=function(a){Zja(function(){var b=yka();null!=a.B&&(b.sdk=a.B);var c=gr(Ct);null!=c.j&&(b.avms=c.j.getName());return b})};
zka=function(a,b,c,d){var e=Ija(At,c);null!==e&&e.aj!==b&&(a.qH(e),e=null);e||(b=a.nF(c,Jr(),!1,b),0==At.B.length&&(wr().C=79463069),Nja([b]),e=b,e.D=ku(a),d&&(e.Xa=d));return e};
Aka=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
yka=function(){var a=ns(),b={},c={},d={};return Object.assign({},(b.sv="960",b),null!==Ot&&(c.v=Ot,c),(d["if"]=a.C?"1":"0",d.nas=String(At.j.length),d))};
nu=function(a){ht.call(this,"audio_audible",a)};
ou=function(a){jt.call(this,"audio_measurable",a)};
pu=function(){Vt.apply(this,arguments)};
qu=function(){};
Bka=function(a){this.j=a};
wka=function(a,b,c){a=a.B();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==Ot&&(d.v=Ot,d),(e.sv="960",e.cb=cka,e.e=Cka(b),e));e=vt(c,b,ps());g.qd(d,e);c.y0[b]=e;d=2==c.Bp()?Jia(d).join("&"):c.CQ.j(d).j;try{return a(c.aj,d,b),0}catch(f){return 2}}else return 1};
Cka=function(a){var b=Rt(a)?"custom_metric_viewable":a;a=hd(ut,function(c){return c==b});
return Pt[a]};
ru=function(){eu.call(this);this.G=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Dka=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&tka(a,c,b)};
Eka=function(a,b,c){var d=zt(At,b);d||(d=c.opt_nativeTime||-1,d=fu(a,b,ku(a),d),c.opt_osdId&&(d.Xa=c.opt_osdId));return d};
Fka=function(a,b,c){var d=zt(At,b);d||(d=fu(a,b,"n",c.opt_nativeTime||-1));return d};
Gka=function(a,b){var c=zt(At,b);c||(c=fu(a,b,"h",-1));return c};
Hka=function(a){wr();switch(ku(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};
Kka=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.qd(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.iI(b,c);c=f?f.CQ:a.cN();if(e.opt_bounds)return c.j(Qt("ol",d));if(void 0!==d)if(void 0!==dka(d))if(hu)a=Qt("ue",d);else if(vka(a),"i"==iu)a=Qt("i",d),a["if"]=0;else if(b=a.iI(b,e)){b:{"i"==iu&&(b.vt=!0);f=e.opt_fullscreen;void 0!==f&&Ws(b,!!f);var h;if(f=!ns().B)(f=hc(g.mc(),"CrKey")||hc(g.mc(),"PlayStation")||hc(g.mc(),"Roku")||wia()||hc(g.mc(),"Xbox"))||(f=g.mc(),f=hc(f,"AppleTV")||hc(f,
"Apple TV")||hc(f,"CFNetwork")||hc(f,"tvOS")),f||(f=g.mc(),f=hc(f,"sdk_google_atv_x86")||hc(f,"Android TV")),f=!f;f&&(tr(),f=0===fr(os));if(h=f){switch(b.Bp()){case 1:xka(b,"pv");break;case 2:a.VQ(b)}ju("pv")}f=d.toLowerCase();if(h=!h)h=Tp(wr().Gc,"ssmol")&&"loaded"===f?!1:g.Fb(Ika,f);if(h&&0==b.gk){"i"!=iu&&(Kt.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;Nr=h="number"===typeof h?h:Jr();b.bD=!0;var l=ps();b.gk=1;b.Wh={};b.Wh.start=!1;b.Wh.firstquartile=!1;b.Wh.midpoint=!1;b.Wh.thirdquartile=!1;
b.Wh.complete=!1;b.Wh.resume=!1;b.Wh.pause=!1;b.Wh.skip=!1;b.Wh.mute=!1;b.Wh.unmute=!1;b.Wh.viewable_impression=!1;b.Wh.measurable_impression=!1;b.Wh.fully_viewable_audible_half_duration_impression=!1;b.Wh.fullscreen=!1;b.Wh.exitfullscreen=!1;b.iN=0;l||(b.tj().Z=h);Mt(Kt,[b],!l)}(h=b.wx[f])&&dt(b.Ng,h);Tp(wr().Gc,"fmd")||g.Fb(Jka,f)&&b.qr&&b.qr.B(b,null);switch(b.Bp()){case 1:var m=Rt(f)?a.K.custom_metric_viewable:a.K[f];break;case 2:m=a.N[f]}if(m&&(d=m.call(a,b,e,d),Tp(wr().Gc,"fmd")&&g.Fb(Jka,f)&&
b.qr&&b.qr.B(b,null),void 0!==d)){e=Qt(void 0,f);g.qd(e,d);d=e;break b}d=void 0}3==b.gk&&a.qH(b);a=d}else a=Qt("nf",d);else a=void 0;else hu?a=Qt("ue"):f?(a=Qt(),g.qd(a,wja(f,!0,!1,!1))):a=Qt("nf");return"string"===typeof a?c.j():c.j(a)};
Lka=function(a,b){b&&(a.C=b)};
Mka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b};
Nka=function(a,b,c){c=void 0===c?{}:c;a=Kka(gr(ru),b,c,a);return Mka(a)};
Oka=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!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.B=c}};
Rka=function(a){if(g.cc(g.ue(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.po(a)}catch(c){return null!=g.Db(Pka,function(d){return 0<a.search(d)})}return b.K.match(Qka)?!0:null!=g.Db(Pka,function(c){return null!=a.match(c)})};
g.tu=function(a,b){return a.replace(Ska,function(c,d){try{var e=g.jd(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.cc(g.ue(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
vu=function(a){g.Dd.call(this);var b=this;this.G=this.B=0;this.Mn=null!=a?a:{Si:function(e,f){return setTimeout(e,f)},
Oj: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.Ha(function(e){return g.z(e,uu(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.G||this.tf()};
Tka=function(){var a=g.wu;vu.instance||(vu.instance=new vu(a));return vu.instance};
uu=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.Ha(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.ya(l,2,3),d&&(a.B=a.Mn.Si(function(){d.abort()},b||2E4)),g.z(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.Ba(l);a.D=void 0;a.B&&(a.Mn.Oj(a.B),a.B=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.Da(l,0);break;case 2:g.Aa(l),h=!1,l.Ka(3)}})})};
xu=function(){this.data=[];this.j=-1};
Uka=function(a){-1===a.j&&(a.j=a.data.reduce(function(b,c,d){return b+(c?Math.pow(2,d):0)},0));
return a.j};
yu=function(a){a.setAttribute("role","link")};
Au=function(a,b){Array.isArray(b)&&(b=b.join(" "));""===b||void 0==b?(zu||(b={},zu=(b.atomic=!1,b.autocomplete="none",b.dropeffect="none",b.haspopup=!1,b.live="off",b.multiline=!1,b.multiselectable=!1,b.orientation="vertical",b.readonly=!1,b.relevant="additions text",b.required=!1,b.sort="none",b.busy=!1,b.disabled=!1,b.hidden=!1,b.invalid="false",b)),b=zu,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
Bu=function(a){a=a.getAttribute("aria-label");return null==a||void 0==a?"":String(a)};
g.Cu=function(a,b,c){g.H.call(this);this.j=null;this.D=!1;this.K=a;this.G=c;this.B=b||window;this.C=(0,g.eb)(this.O2,this)};
g.Du=function(a){a.isActive()||a.start()};
Vka=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Wka=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.Eu=function(a,b,c){g.H.call(this);this.j=a;this.Yi=b||0;this.B=c;this.C=(0,g.eb)(this.tT,this)};
g.Fu=function(a,b){a.isActive()||a.start(b)};
g.Gu=function(a){a.stop();a.tT()};
g.Hu=function(a){a.isActive()&&g.Gu(a)};
Iu=function(a,b){this.j=a[g.Qa.Symbol.iterator]();this.B=b};
Xka=function(a,b){return new Iu(a,b)};
Yka=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Ju=function(a){return a.classList?a.classList:Yka(a).match(/\S+/g)||[]};
g.Ku=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Lu=function(a,b){return a.classList?a.classList.contains(b):g.Fb(Ju(a),b)};
g.Mu=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Lu(a,b)){var c=Yka(a);g.Ku(a,c+(0<c.length?" "+b:b))}};
g.Nu=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.Mu(a,e)});
else{var c={};Array.prototype.forEach.call(Ju(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.Ku(a,b)}};
g.Ou=function(a,b){a.classList?a.classList.remove(b):g.Lu(a,b)&&g.Ku(a,Array.prototype.filter.call(Ju(a),function(c){return c!=b}).join(" "))};
g.Pu=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Ou(a,c)}):g.Ku(a,Array.prototype.filter.call(Ju(a),function(c){return!g.Fb(b,c)}).join(" "))};
g.Qu=function(a,b,c){c?g.Mu(a,b):g.Ou(a,b)};
Zka=function(a,b){var c=!g.Lu(a,b);g.Qu(a,b,c)};
Uu=function(a){if(a instanceof Ru||a instanceof Su||a instanceof Tu)return a;if("function"==typeof a.next)return new Ru(function(){return a});
if("function"==typeof a[Symbol.iterator])return new Ru(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Ek)return new Ru(function(){return a.Ek()});
throw Error("Not an iterator or iterable.");};
Ru=function(a){this.B=a};
Su=function(a){this.B=a};
Tu=function(a){Ru.call(this,function(){return a});
this.C=a};
g.Vu=function(a,b){this.B={};this.j=[];this.Eu=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.Vu)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])};
$ka=function(a,b){return a===b};
Xu=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];Wu(a.B,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],Wu(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
Wu=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Yu=function(){g.Dd.call(this);this.j=0;this.endTime=this.startTime=null};
ala=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.Yr(a,"transition",b.join(","))};
Zu=function(a,b,c,d,e){g.Yu.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]};
bla=function(a,b,c,d){return new Zu(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
ela=function(a){a=ic(a);if(""==a)return null;var b=String(a.slice(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in dla))return null}return a};
$u=function(a,b){a=g.Qa[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
fla=function(a){var b=g.Qa.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
gla=function(a,b,c,d){if(a)return a.apply(b,d);if(g.We&&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)};
lla=function(a){if(!a)return av;var b=document.createElement("div").style;hla(a).forEach(function(c){var d=g.Pc&&c in ila?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");bc(d,"--")||bc(d,"var")||(c=gla(jla,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=ela(c),null!=c&&gla(kla,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return new g.$d(b.cssText||"",Ln)};
hla=function(a){g.Ya(a)?a=g.Kb(a):(a=g.ed(a),g.Hb(a,"cssText"));return a};
g.cv=function(a){var b,c=b=0,d=!1;a=a.split(mla);for(var e=0;e<a.length;e++){var f=a[e];g.bv.test(f)?(b++,c++):nla.test(f)?d=!0:ola.test(f)?c++:pla.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
dv=function(a,b,c,d,e,f,h,l){this.j=a;this.C=b;this.x1=c;this.y1=d;this.x2=e;this.y2=f;this.B=h;this.D=l};
ev=function(a,b){if(0==b)return a.j;if(1==b)return a.B;var c=ke(a.j,a.x1,b),d=ke(a.x1,a.x2,b);a=ke(a.x2,a.B,b);c=ke(c,d,b);d=ke(d,a,b);return ke(c,d,b)};
qla=function(a,b){var c=(b-a.j)/(a.B-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=ev(a,c);var l=(ev(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=ev(a,c);return c};
fv=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
gv=function(a){return(a=a.exec(g.mc()))?a[1]:""};
hv=function(a){return 0<=g.kc(rla,a)};
g.iv=function(a){g.H.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.N=!!a};
sla=function(a,b,c){g.If(function(){a.apply(b,c)})};
g.jv=function(a){this.j=a};
kv=function(a){this.j=a};
tla=function(a){this.data=a};
ula=function(a){return void 0===a||a instanceof tla?a:new tla(a)};
lv=function(a){this.j=a};
g.vla=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.gb()||!!b&&b>g.gb()};
g.mv=function(a){this.j=a};
wla=function(){};
nv=function(){};
ov=function(a){this.j=a;this.B=null};
pv=function(a){if(null==a.j)throw Error("Storage mechanism: Storage unavailable");var b;(null!=(b=a.B)?b:a.isAvailable())||Df(Error("Storage mechanism: Storage unavailable"))};
qv=function(){var a=null;try{a=g.Qa.localStorage||null}catch(b){}ov.call(this,a)};
xla=function(){var a=null;try{a=g.Qa.sessionStorage||null}catch(b){}ov.call(this,a)};
tv=function(a,b){this.B=a;this.j=null;if(g.We&&!g.Oc(9)){rv||(rv=new g.Vu);this.j=rv.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)),rv.set(a,this.j));try{this.j.load(this.B)}catch(c){this.j=null}}};
uv=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return yla[b]})};
vv=function(a){try{a.j.save(a.B)}catch(b){throw"Storage mechanism: Quota exceeded";}};
wv=function(a,b){this.B=a;this.j=b+"::"};
g.xv=function(a){var b=new qv;return b.isAvailable()?a?new wv(b,a):b:null};
yv=function(a,b){this.j=a;this.Ud=b};
zv=function(a){this.j=[];if(a)a:{if(a instanceof zv){var b=a.Ap();a=a.hm();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new yv(b[d],a[d]));break a}}else b=g.ed(a),a=dd(a);for(c=0;c<b.length;c++)this.rh(b[c],a[c])}};
zla=function(){zv.apply(this,arguments)};
g.Av=function(){};
Ala=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 Bv.Bx(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};
Cv=function(a){for(var b=a.length;0<=--b;)a[b]=0};
Dv=function(a,b,c,d,e){this.A_=a;this.J5=b;this.I5=c;this.x5=d;this.S7=e;this.aX=a&&a.length};
Ev=function(a,b){this.IV=a;this.iA=0;this.wu=b};
Fv=function(a,b){a.vg[a.pending++]=b&255;a.vg[a.pending++]=b>>>8&255};
Gv=function(a,b,c){a.ai>16-c?(a.nj|=b<<a.ai&65535,Fv(a,a.nj),a.nj=b>>16-a.ai,a.ai+=c-16):(a.nj|=b<<a.ai&65535,a.ai+=c)};
Hv=function(a,b,c){Gv(a,c[2*b],c[2*b+1])};
Bla=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1};
Cla=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]=Bla(d[e]++,e))};
Dla=function(a){var b;for(b=0;286>b;b++)a.Uj[2*b]=0;for(b=0;30>b;b++)a.Av[2*b]=0;for(b=0;19>b;b++)a.Ti[2*b]=0;a.Uj[512]=1;a.yr=a.yB=0;a.nm=a.matches=0};
Ela=function(a){8<a.ai?Fv(a,a.nj):0<a.ai&&(a.vg[a.pending++]=a.nj);a.nj=0;a.ai=0};
Fla=function(a,b,c){Ela(a);Fv(a,c);Fv(a,~c);Bv.Iy(a.vg,a.window,b,c,a.pending);a.pending+=c};
Gla=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]};
Iv=function(a,b,c){for(var d=a.Dg[c],e=c<<1;e<=a.Sq;){e<a.Sq&&Gla(b,a.Dg[e+1],a.Dg[e],a.depth)&&e++;if(Gla(b,d,a.Dg[e],a.depth))break;a.Dg[c]=a.Dg[e];c=e;e<<=1}a.Dg[c]=d};
Hla=function(a,b,c){var d=0;if(0!==a.nm){do{var e=a.vg[a.WC+2*d]<<8|a.vg[a.WC+2*d+1];var f=a.vg[a.bP+d];d++;if(0===e)Hv(a,f,b);else{var h=Jv[f];Hv(a,h+256+1,b);var l=Kv[h];0!==l&&(f-=Lv[h],Gv(a,f,l));e--;h=256>e?Mv[e]:Mv[256+(e>>>7)];Hv(a,h,c);l=Nv[h];0!==l&&(e-=Ov[h],Gv(a,e,l))}}while(d<a.nm)}Hv(a,256,b)};
Pv=function(a,b){var c=b.IV,d=b.wu.A_,e=b.wu.aX,f=b.wu.x5,h,l=-1;a.Sq=0;a.Cz=573;for(h=0;h<f;h++)0!==c[2*h]?(a.Dg[++a.Sq]=l=h,a.depth[h]=0):c[2*h+1]=0;for(;2>a.Sq;){var m=a.Dg[++a.Sq]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.yr--;e&&(a.yB-=d[2*m+1])}b.iA=l;for(h=a.Sq>>1;1<=h;h--)Iv(a,c,h);m=f;do h=a.Dg[1],a.Dg[1]=a.Dg[a.Sq--],Iv(a,c,1),d=a.Dg[1],a.Dg[--a.Cz]=h,a.Dg[--a.Cz]=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.Dg[1]=m++,Iv(a,c,1);while(2<=
a.Sq);a.Dg[--a.Cz]=a.Dg[1];h=b.IV;m=b.iA;d=b.wu.A_;e=b.wu.aX;f=b.wu.J5;var n=b.wu.I5,p=b.wu.S7,q,r=0;for(q=0;15>=q;q++)a.zq[q]=0;h[2*a.Dg[a.Cz]+1]=0;for(b=a.Cz+1;573>b;b++){var t=a.Dg[b];q=h[2*h[2*t+1]+1]+1;q>p&&(q=p,r++);h[2*t+1]=q;if(!(t>m)){a.zq[q]++;var v=0;t>=n&&(v=f[t-n]);var x=h[2*t];a.yr+=x*(q+v);e&&(a.yB+=x*(d[2*t+1]+v))}}if(0!==r){do{for(q=p-1;0===a.zq[q];)q--;a.zq[q]--;a.zq[q+1]+=2;a.zq[p]--;r-=2}while(0<r);for(q=p;0!==q;q--)for(t=a.zq[q];0!==t;)d=a.Dg[--b],d>m||(h[2*d+1]!==q&&(a.yr+=(q-
h[2*d+1])*h[2*d],h[2*d+1]=q),t--)}Cla(c,l,a.zq)};
Ila=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.Ti[2*n]+=h:0!==n?(n!==e&&a.Ti[2*n]++,a.Ti[32]++):10>=h?a.Ti[34]++:a.Ti[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
Jla=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 Hv(a,n,a.Ti);while(0!==--h)}else 0!==n?(n!==e&&(Hv(a,n,a.Ti),h--),Hv(a,16,a.Ti),Gv(a,h-3,2)):10>=h?(Hv(a,17,a.Ti),Gv(a,h-3,3)):(Hv(a,18,a.Ti),Gv(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
Kla=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Uj[2*c])return 0;if(0!==a.Uj[18]||0!==a.Uj[20]||0!==a.Uj[26])return 1;for(c=32;256>c;c++)if(0!==a.Uj[2*c])return 1;return 0};
Qv=function(a,b,c){a.vg[a.WC+2*a.nm]=b>>>8&255;a.vg[a.WC+2*a.nm+1]=b&255;a.vg[a.bP+a.nm]=c&255;a.nm++;0===b?a.Uj[2*c]++:(a.matches++,b--,a.Uj[2*(Jv[c]+256+1)]++,a.Av[2*(256>b?Mv[b]:Mv[256+(b>>>7)])]++);return a.nm===a.lE-1};
Sv=function(a,b){a.msg=Rv[b];return b};
Tv=function(a){for(var b=a.length;0<=--b;)a[b]=0};
Uv=function(a){var b=a.state,c=b.pending;c>a.Je&&(c=a.Je);0!==c&&(Bv.Iy(a.output,b.vg,b.UE,c,a.qA),a.qA+=c,b.UE+=c,a.WR+=c,a.Je-=c,b.pending-=c,0===b.pending&&(b.UE=0))};
Xv=function(a,b){var c=0<=a.Kk?a.Kk:-1,d=a.Cb-a.Kk,e=0;if(0<a.level){2===a.le.gN&&(a.le.gN=Kla(a));Pv(a,a.OI);Pv(a,a.pH);Ila(a,a.Uj,a.OI.iA);Ila(a,a.Av,a.pH.iA);Pv(a,a.XU);for(e=18;3<=e&&0===a.Ti[2*Lla[e]+1];e--);a.yr+=3*(e+1)+14;var f=a.yr+3+7>>>3;var h=a.yB+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)Gv(a,b?1:0,3),Fla(a,c,d);else if(4===a.strategy||h===f)Gv(a,2+(b?1:0),3),Hla(a,Vv,Wv);else{Gv(a,4+(b?1:0),3);c=a.OI.iA+1;d=a.pH.iA+1;e+=1;Gv(a,c-257,5);Gv(a,d-1,5);Gv(a,e-4,4);for(f=0;f<e;f++)Gv(a,
a.Ti[2*Lla[f]+1],3);Jla(a,a.Uj,c-1);Jla(a,a.Av,d-1);Hla(a,a.Uj,a.Av)}Dla(a);b&&Ela(a);a.Kk=a.Cb;Uv(a.le)};
Yv=function(a,b){a.vg[a.pending++]=b};
Zv=function(a,b){a.vg[a.pending++]=b>>>8&255;a.vg[a.pending++]=b&255};
Mla=function(a,b){var c=a.bY,d=a.Cb,e=a.jl,f=a.rY,h=a.Cb>a.gj-262?a.Cb-(a.gj-262):0,l=a.window,m=a.Fu,n=a.Up,p=a.Cb+258,q=l[d+e-1],r=l[d+e];a.jl>=a.BW&&(c>>=2);f>a.kc&&(f=a.kc);do{var t=b;if(l[t+e]===r&&l[t+e-1]===q&&l[t]===l[d]&&l[++t]===l[d+1]){d+=2;for(t++;l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&d<p;);t=258-(p-d);d=p-258;if(t>e){a.gA=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&0!==
--c);return e<=a.kc?e:a.kc};
bw=function(a){var b=a.gj,c;do{var d=a.E0-a.kc-a.Cb;if(a.Cb>=b+(b-262)){Bv.Iy(a.window,a.window,b,b,0);a.gA-=b;a.Cb-=b;a.Kk-=b;var e=c=a.qI;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Up[--e],a.Up[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.le.mj)break;e=a.le;c=a.window;f=a.Cb+a.kc;var h=e.mj;h>d&&(h=d);0===h?c=0:(e.mj-=h,Bv.Iy(c,e.input,e.Dw,h,f),1===e.state.wrap?e.Pd=$v(e.Pd,c,h,f):2===e.state.wrap&&(e.Pd=aw(e.Pd,c,h,f)),e.Dw+=h,e.ox+=h,c=h);a.kc+=c;if(3<=a.kc+a.rh)for(d=a.Cb-a.rh,
a.De=a.window[d],a.De=(a.De<<a.Qq^a.window[d+1])&a.Pq;a.rh&&!(a.De=(a.De<<a.Qq^a.window[d+3-1])&a.Pq,a.Up[d&a.Fu]=a.head[a.De],a.head[a.De]=d,d++,a.rh--,3>a.kc+a.rh););}while(262>a.kc&&0!==a.le.mj)};
cw=function(a,b){for(var c;;){if(262>a.kc){bw(a);if(262>a.kc&&0===b)return 1;if(0===a.kc)break}c=0;3<=a.kc&&(a.De=(a.De<<a.Qq^a.window[a.Cb+3-1])&a.Pq,c=a.Up[a.Cb&a.Fu]=a.head[a.De],a.head[a.De]=a.Cb);0!==c&&a.Cb-c<=a.gj-262&&(a.Ve=Mla(a,c));if(3<=a.Ve)if(c=Qv(a,a.Cb-a.gA,a.Ve-3),a.kc-=a.Ve,a.Ve<=a.mP&&3<=a.kc){a.Ve--;do a.Cb++,a.De=(a.De<<a.Qq^a.window[a.Cb+3-1])&a.Pq,a.Up[a.Cb&a.Fu]=a.head[a.De],a.head[a.De]=a.Cb;while(0!==--a.Ve);a.Cb++}else a.Cb+=a.Ve,a.Ve=0,a.De=a.window[a.Cb],a.De=(a.De<<a.Qq^
a.window[a.Cb+1])&a.Pq;else c=Qv(a,0,a.window[a.Cb]),a.kc--,a.Cb++;if(c&&(Xv(a,!1),0===a.le.Je))return 1}a.rh=2>a.Cb?a.Cb:2;return 4===b?(Xv(a,!0),0===a.le.Je?3:4):a.nm&&(Xv(a,!1),0===a.le.Je)?1:2};
dw=function(a,b){for(var c,d;;){if(262>a.kc){bw(a);if(262>a.kc&&0===b)return 1;if(0===a.kc)break}c=0;3<=a.kc&&(a.De=(a.De<<a.Qq^a.window[a.Cb+3-1])&a.Pq,c=a.Up[a.Cb&a.Fu]=a.head[a.De],a.head[a.De]=a.Cb);a.jl=a.Ve;a.DZ=a.gA;a.Ve=2;0!==c&&a.jl<a.mP&&a.Cb-c<=a.gj-262&&(a.Ve=Mla(a,c),5>=a.Ve&&(1===a.strategy||3===a.Ve&&4096<a.Cb-a.gA)&&(a.Ve=2));if(3<=a.jl&&a.Ve<=a.jl){d=a.Cb+a.kc-3;c=Qv(a,a.Cb-1-a.DZ,a.jl-3);a.kc-=a.jl-1;a.jl-=2;do++a.Cb<=d&&(a.De=(a.De<<a.Qq^a.window[a.Cb+3-1])&a.Pq,a.Up[a.Cb&a.Fu]=
a.head[a.De],a.head[a.De]=a.Cb);while(0!==--a.jl);a.ww=0;a.Ve=2;a.Cb++;if(c&&(Xv(a,!1),0===a.le.Je))return 1}else if(a.ww){if((c=Qv(a,0,a.window[a.Cb-1]))&&Xv(a,!1),a.Cb++,a.kc--,0===a.le.Je)return 1}else a.ww=1,a.Cb++,a.kc--}a.ww&&(Qv(a,0,a.window[a.Cb-1]),a.ww=0);a.rh=2>a.Cb?a.Cb:2;return 4===b?(Xv(a,!0),0===a.le.Je?3:4):a.nm&&(Xv(a,!1),0===a.le.Je)?1:2};
Nla=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.kc){bw(a);if(258>=a.kc&&0===b)return 1;if(0===a.kc)break}a.Ve=0;if(3<=a.kc&&0<a.Cb&&(d=a.Cb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Cb+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.Ve=258-(e-d);a.Ve>a.kc&&(a.Ve=a.kc)}3<=a.Ve?(c=Qv(a,1,a.Ve-3),a.kc-=a.Ve,a.Cb+=a.Ve,a.Ve=0):(c=Qv(a,0,a.window[a.Cb]),a.kc--,a.Cb++);if(c&&(Xv(a,!1),0===a.le.Je))return 1}a.rh=0;return 4===
b?(Xv(a,!0),0===a.le.Je?3:4):a.nm&&(Xv(a,!1),0===a.le.Je)?1:2};
Ola=function(a,b){for(var c;;){if(0===a.kc&&(bw(a),0===a.kc)){if(0===b)return 1;break}a.Ve=0;c=Qv(a,0,a.window[a.Cb]);a.kc--;a.Cb++;if(c&&(Xv(a,!1),0===a.le.Je))return 1}a.rh=0;return 4===b?(Xv(a,!0),0===a.le.Je?3:4):a.nm&&(Xv(a,!1),0===a.le.Je)?1:2};
ew=function(a,b,c,d,e){this.z6=a;this.R7=b;this.j8=c;this.Q7=d;this.func=e};
Pla=function(){this.le=null;this.status=0;this.vg=null;this.wrap=this.pending=this.UE=this.xm=0;this.Kd=null;this.Bn=0;this.method=8;this.Wz=-1;this.Fu=this.pS=this.gj=0;this.window=null;this.E0=0;this.head=this.Up=null;this.rY=this.BW=this.strategy=this.level=this.mP=this.bY=this.jl=this.kc=this.gA=this.Cb=this.ww=this.DZ=this.Ve=this.Kk=this.Qq=this.Pq=this.vO=this.qI=this.De=0;this.Uj=new Bv.mq(1146);this.Av=new Bv.mq(122);this.Ti=new Bv.mq(78);Tv(this.Uj);Tv(this.Av);Tv(this.Ti);this.XU=this.pH=
this.OI=null;this.zq=new Bv.mq(16);this.Dg=new Bv.mq(573);Tv(this.Dg);this.Cz=this.Sq=0;this.depth=new Bv.mq(573);Tv(this.depth);this.ai=this.nj=this.rh=this.matches=this.yB=this.yr=this.WC=this.nm=this.lE=this.bP=0};
Qla=function(a,b){if(!a||!a.state||5<b||0>b)return a?Sv(a,-2):-2;var c=a.state;if(!a.output||!a.input&&0!==a.mj||666===c.status&&4!==b)return Sv(a,0===a.Je?-5:-2);c.le=a;var d=c.Wz;c.Wz=b;if(42===c.status)if(2===c.wrap)a.Pd=0,Yv(c,31),Yv(c,139),Yv(c,8),c.Kd?(Yv(c,(c.Kd.text?1:0)+(c.Kd.nt?2:0)+(c.Kd.extra?4:0)+(c.Kd.name?8:0)+(c.Kd.comment?16:0)),Yv(c,c.Kd.time&255),Yv(c,c.Kd.time>>8&255),Yv(c,c.Kd.time>>16&255),Yv(c,c.Kd.time>>24&255),Yv(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),Yv(c,c.Kd.os&
255),c.Kd.extra&&c.Kd.extra.length&&(Yv(c,c.Kd.extra.length&255),Yv(c,c.Kd.extra.length>>8&255)),c.Kd.nt&&(a.Pd=aw(a.Pd,c.vg,c.pending,0)),c.Bn=0,c.status=69):(Yv(c,0),Yv(c,0),Yv(c,0),Yv(c,0),Yv(c,0),Yv(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),Yv(c,3),c.status=113);else{var e=8+(c.pS-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.Cb&&(e|=32);c.status=113;Zv(c,e+(31-e%31));0!==c.Cb&&(Zv(c,a.Pd>>>16),Zv(c,a.Pd&65535));a.Pd=1}if(69===c.status)if(c.Kd.extra){for(e=
c.pending;c.Bn<(c.Kd.extra.length&65535)&&(c.pending!==c.xm||(c.Kd.nt&&c.pending>e&&(a.Pd=aw(a.Pd,c.vg,c.pending-e,e)),Uv(a),e=c.pending,c.pending!==c.xm));)Yv(c,c.Kd.extra[c.Bn]&255),c.Bn++;c.Kd.nt&&c.pending>e&&(a.Pd=aw(a.Pd,c.vg,c.pending-e,e));c.Bn===c.Kd.extra.length&&(c.Bn=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Kd.name){e=c.pending;do{if(c.pending===c.xm&&(c.Kd.nt&&c.pending>e&&(a.Pd=aw(a.Pd,c.vg,c.pending-e,e)),Uv(a),e=c.pending,c.pending===c.xm)){var f=1;break}f=c.Bn<c.Kd.name.length?
c.Kd.name.charCodeAt(c.Bn++)&255:0;Yv(c,f)}while(0!==f);c.Kd.nt&&c.pending>e&&(a.Pd=aw(a.Pd,c.vg,c.pending-e,e));0===f&&(c.Bn=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Kd.comment){e=c.pending;do{if(c.pending===c.xm&&(c.Kd.nt&&c.pending>e&&(a.Pd=aw(a.Pd,c.vg,c.pending-e,e)),Uv(a),e=c.pending,c.pending===c.xm)){f=1;break}f=c.Bn<c.Kd.comment.length?c.Kd.comment.charCodeAt(c.Bn++)&255:0;Yv(c,f)}while(0!==f);c.Kd.nt&&c.pending>e&&(a.Pd=aw(a.Pd,c.vg,c.pending-e,e));0===f&&(c.status=103)}else c.status=
103;103===c.status&&(c.Kd.nt?(c.pending+2>c.xm&&Uv(a),c.pending+2<=c.xm&&(Yv(c,a.Pd&255),Yv(c,a.Pd>>8&255),a.Pd=0,c.status=113)):c.status=113);if(0!==c.pending){if(Uv(a),0===a.Je)return c.Wz=-1,0}else if(0===a.mj&&(b<<1)-(4<b?9:0)<=(d<<1)-(4<d?9:0)&&4!==b)return Sv(a,-5);if(666===c.status&&0!==a.mj)return Sv(a,-5);if(0!==a.mj||0!==c.kc||0!==b&&666!==c.status){d=2===c.strategy?Ola(c,b):3===c.strategy?Nla(c,b):fw[c.level].func(c,b);if(3===d||4===d)c.status=666;if(1===d||3===d)return 0===a.Je&&(c.Wz=
-1),0;if(2===d&&(1===b?(Gv(c,2,3),Hv(c,256,Vv),16===c.ai?(Fv(c,c.nj),c.nj=0,c.ai=0):8<=c.ai&&(c.vg[c.pending++]=c.nj&255,c.nj>>=8,c.ai-=8)):5!==b&&(Gv(c,0,3),Fla(c,0,0),3===b&&(Tv(c.head),0===c.kc&&(c.Cb=0,c.Kk=0,c.rh=0))),Uv(a),0===a.Je))return c.Wz=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(Yv(c,a.Pd&255),Yv(c,a.Pd>>8&255),Yv(c,a.Pd>>16&255),Yv(c,a.Pd>>24&255),Yv(c,a.ox&255),Yv(c,a.ox>>8&255),Yv(c,a.ox>>16&255),Yv(c,a.ox>>24&255)):(Zv(c,a.Pd>>>16),Zv(c,a.Pd&65535));Uv(a);0<c.wrap&&
(c.wrap=-c.wrap);return 0!==c.pending?0:1};
gw=function(a){if(!(this instanceof gw))return new gw(a);a=this.options=Bv.assign({level:-1,method:8,chunkSize:16384,Gu:15,Y7:8,strategy:0,to:""},a||{});a.raw&&0<a.Gu?a.Gu=-a.Gu:a.A6&&0<a.Gu&&16>a.Gu&&(a.Gu+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.le=new Rla;this.le.Je=0;var b=this.le;var c=a.level,d=a.method,e=a.Gu,f=a.Y7,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=Sv(b,-2);else{8===e&&(e=9);var m=
new Pla;b.state=m;m.le=b;m.wrap=l;m.Kd=null;m.pS=e;m.gj=1<<m.pS;m.Fu=m.gj-1;m.vO=f+7;m.qI=1<<m.vO;m.Pq=m.qI-1;m.Qq=~~((m.vO+3-1)/3);m.window=new Bv.Bx(2*m.gj);m.head=new Bv.mq(m.qI);m.Up=new Bv.mq(m.gj);m.lE=1<<f+6;m.xm=4*m.lE;m.vg=new Bv.Bx(m.xm);m.WC=1*m.lE;m.bP=3*m.lE;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.ox=b.WR=0;b.gN=2;c=b.state;c.pending=0;c.UE=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Pd=2===c.wrap?0:1;c.Wz=0;if(!Sla){d=Array(16);for(f=h=0;28>f;f++)for(Lv[f]=h,e=0;e<
1<<Kv[f];e++)Jv[h++]=f;Jv[h-1]=f;for(f=h=0;16>f;f++)for(Ov[f]=h,e=0;e<1<<Nv[f];e++)Mv[h++]=f;for(h>>=7;30>f;f++)for(Ov[f]=h<<7,e=0;e<1<<Nv[f]-7;e++)Mv[256+h++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)Vv[2*e+1]=8,e++,d[8]++;for(;255>=e;)Vv[2*e+1]=9,e++,d[9]++;for(;279>=e;)Vv[2*e+1]=7,e++,d[7]++;for(;287>=e;)Vv[2*e+1]=8,e++,d[8]++;Cla(Vv,287,d);for(e=0;30>e;e++)Wv[2*e+1]=5,Wv[2*e]=Bla(e,5);Tla=new Dv(Vv,Kv,257,286,15);Ula=new Dv(Wv,Nv,0,30,15);Vla=new Dv([],Wla,0,19,7);Sla=!0}c.OI=new Ev(c.Uj,Tla);
c.pH=new Ev(c.Av,Ula);c.XU=new Ev(c.Ti,Vla);c.nj=0;c.ai=0;Dla(c);c=0}else c=Sv(b,-2);0===c&&(b=b.state,b.E0=2*b.gj,Tv(b.head),b.mP=fw[b.level].R7,b.BW=fw[b.level].z6,b.rY=fw[b.level].j8,b.bY=fw[b.level].Q7,b.Cb=0,b.Kk=0,b.kc=0,b.rh=0,b.Ve=b.jl=2,b.ww=0,b.De=0);b=c}}else b=-2;if(0!==b)throw Error(Rv[b]);a.header&&(b=this.le)&&b.state&&2===b.state.wrap&&(b.state.Kd=a.header);if(a.XC){var n;"string"===typeof a.XC?n=Ala(a.XC):"[object ArrayBuffer]"===Xla.call(a.XC)?n=new Uint8Array(a.XC):n=a.XC;a=this.le;
f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.kc)b=-2;else{1===b&&(a.Pd=$v(a.Pd,f,h,0));n.wrap=0;h>=n.gj&&(0===b&&(Tv(n.head),n.Cb=0,n.Kk=0,n.rh=0),c=new Bv.Bx(n.gj),Bv.Iy(c,f,h-n.gj,n.gj,0),f=c,h=n.gj);c=a.mj;d=a.Dw;e=a.input;a.mj=h;a.Dw=0;a.input=f;for(bw(n);3<=n.kc;){f=n.Cb;h=n.kc-2;do n.De=(n.De<<n.Qq^n.window[f+3-1])&n.Pq,n.Up[f&n.Fu]=n.head[n.De],n.head[n.De]=f,f++;while(--h);n.Cb=f;n.kc=2;bw(n)}n.Cb+=n.kc;n.Kk=n.Cb;n.rh=n.kc;n.kc=0;n.Ve=n.jl=2;n.ww=0;a.Dw=
d;a.input=e;a.mj=c;n.wrap=b;b=0}else b=-2;if(0!==b)throw Error(Rv[b]);this.Phb=!0}};
Yla=function(a,b){b=b||{};b.A6=!0;b=new gw(b);b.push(a,!0);if(b.err)throw b.msg||Rv[b.err];return b.result};
Zla=function(){var a=g.Ia.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.oa(g.Ia.apply(0,arguments))))}})};
$la=function(){var a=g.Ia.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.oa(g.Ia.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=Zla.apply(null,g.oa(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
hw=function(){return Math.random().toString(36).substring(7).split("").join(".")};
ama=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:iw}))throw Error('The slice reducer for key "'+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"+hw()}))throw Error('The slice reducer for key "'+
b+"\" returned undefined when probed with a random type. Don't try to handle '"+(iw+'\' 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.'));})};
bma=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(t){if("function"!==typeof t)throw Error("Expected the listener to be a function. Instead, received: '"+typeof t+"'");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 v=!0;p===n&&(p=n.slice());p.push(t);return function(){if(v){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.");
v=!1;p===n&&(p=n.slice());p.splice(p.indexOf(t),1);n=null}}}
function h(t){if("object"!==typeof t||null===t)var v=!1;else{for(v=t;null!==Object.getPrototypeOf(v);)v=Object.getPrototypeOf(v);v=Object.getPrototypeOf(t)===v}if(!v)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof t+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
if("undefined"===typeof t.type)throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,t)}finally{q=!1}v=n=p;for(var x=0;x<v.length;x++)(0,v[x])();return t}
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. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");"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. Instead, received: '"+
typeof c+"'");return c(bma)(a,b)}if("function"!==typeof a)throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof a+"'");var l=a,m=b,n=[],p=n,q=!1;h({type:iw});a={};var r=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(t){if("function"!==typeof t)throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof t);l=t;h({type:cma});return r},a[dma]=function(){var t={};
return t.subscribe=function(v){function x(){v.next&&v.next(e())}
if("object"!==typeof v||null===v)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof v+"'");x();return{unsubscribe:f(x)}},t[dma]=function(){return this},t},a);
return r};
ema=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?Td(a):null:null};
gma=function(a){a=fma(a);return g.ee(a)};
g.jw=function(a){a=fma(a);return Td(a)};
fma=function(a){return null===a?"null":void 0===a?"undefined":a};
kw=function(a){this.ea=M(a)};
hma=function(a){var b=a.split(""),c=[473637274,1157956536,1945331957,-1623365984,1118948002,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},
-1815406119,1788021310,-1049278741,-1385428494,b,211610085,1905622034,1293526151,-1339364302,null,";)\u228a,",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},
1398414898,-1009228005,-1894685742,function(d,e){e.splice(e.length,0,d)},
1945331957,-620476020,-1846722739,-1109147833,-1049278741,b,b,-422875694,function(d,e,f,h,l,m,n){return d(l,m,n)},
-934953714,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
862395635,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},
function(){for(var d=[],e=64;++e-d.length-32;)switch(e){case 58:e=96;continue;case 91:e=44;break;case 65:e=47;continue;case 46:e=153;case 123:e-=58;default:d.push(String.fromCharCode(e))}return e},
-390729627,-1748343171,function(d,e){if(0!=e.length){d=(d%e.length+e.length)%e.length;var f=e[0];e[0]=e[d];e[d]=f}},
777275913,-593710499,-1986792782,-1157285015,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
1783262551,"is7N12k",-1984234554,924633505,function(d,e){d=(d%e.length+e.length)%e.length;e.splice(-d).reverse().forEach(function(f){e.unshift(f)})},
1016671588,-144468082,-515077338,null,function(d){d.reverse()},
-1097527858,function(d,e){0!=d.length&&(e=(e%d.length+d.length)%d.length,d.splice(0,1,d.splice(e,1,d[0])[0]))},
2124687337,-576664080,function(d,e,f,h,l,m){return e(h,l,m)},
function(d,e,f,h,l){return e(f,h,l)},
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},
function(d,e,f){var h=d.length;f.forEach(function(l,m,n){this.push(n[m]=d[(d.indexOf(l)-d.indexOf(this[m])+m+h--)%d.length])},e.split(""))},
1379938254,1564698599,function(d,e){for(d=(d%e.length+e.length)%e.length;d--;)e.unshift(e.pop())},
2098750430,2080517703,function(d,e,f,h,l){return e(f,h,l)},
892858932,1755412994,null,-279369353,-925338845,-1238604070,824900843,function(d,e,f,h,l,m,n){return d(l,m,n)},
877495123,679279181,1889134949,-936540168,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)}];
c[15]=c;c[52]=c;c[70]=c;try{try{8<=c[63]?(0,c[74+Math.pow(1,4)%164])(c[38],(0,c[38])(c[13],c[52]),(0,c[48])(c[25],c[52]),((0,c[54])(c[72],c[18]),c[54])(c[2],c[0]),c[69],c[17]):(0,c[48])((0,c[51])((0,c[-136*Math.pow(7,1)- -976])(),c[35],c[Math.pow(1,5)-23- -39]),c[70],((0,c[71])(c[17]),c[57])((0,c[33])(c[5]),c[new Date("1969-12-31T22:00:38.000-02:00")/1E3],c[39],c[5]),c[0],c[36]),-6!=c[29]?(((0,c[54])(c[16],c[60]),c[2])(c[80],c[37]),c[28])(c[56]):(((0,c[66])(c[75],c[55]),c[198-171%Math.pow(6,5)])(c[56],
c[48]),c[2])(c[38],c[10]),((0,c[-18100+Math.pow(5,4)+17477])(c[1],c[17]),c[28])(c[55])<(0,c[8])((0,c[64+Math.pow(5,2)+-56])(),c[73],c[38])}catch(d){5!=c[68]?((0,c[27])(c[-218*Math.pow(5,4)- -136305],c[Math.pow(6,1)+54E3+-53937]),(0,c[11])(c[31],c[17]),c[60])((0,c[59])(),c[44],c[9]):(((0,c[47])(c[77],c[14]),c[79])(c[26],c[52]),c[47])(c[17],c[9])}try{-5!==c[61]&&(-7>=c[Math.pow(4,4)-2054+1871]&&((0,c[57])((0,c[37])(c[28],c[27]),c[60],(0,c[54])(c[51],c[49]),(0,c[59])(),c[44],c[27]),"9")||(((0,c[63])(c[Math.pow(6,
5)+165+-7906],c[51]),c[78])(c[24]),c[-79*Math.pow(8,3)+40526])(c[52],c[74])),7===c[28]?(0,c[48])(c[new Date("1970-01-01T07:45:20.000+07:45")/1E3],c[10]):(0,c[73])(c[58],c[77]),-10<=c[46]&&(-5<c[35]||(((0,c[47])(c[32]),(0,c[48])(c[19],c[218-387%Math.pow(3,5)]),c[80])(c[36],c[19]),""))&&(((0,c[9])(c[66],c[37]),c[73])(c[37],c[60]),c[26])(c[29],c[32]),6!=c[57]?(((0,c[64])(c[24],c[19]),(0,c[64])(c[72],c[37]),((0,c[47])(c[32]),c[1])(c[78],c[23]),c[31])(c[28],c[71]),c[40])(c[47],c[67]):(0,c[43])(((0,c[37])((0,c[new Date("1969-12-31T21:01:14.000-03:00")/
1E3])(),c[20],c[3]),(0,c[37])((0,c[74])(),c[20],c[3]),c[35])((0,c[40])(c[81],c[3])*(0,c[37])((0,c[74])(),c[20],c[2]),c[57],c[230%Math.pow(7,4)-227]),c[37],(0,c[36])(),c[20],c[2]),c[6]<=new Date("1970-01-01T03:44:51.000+03:45")/1E3&&(6>c[69]?(0,c[56])(c[3],c[53]):(0,c[13])(c[6],c[72])),(0,c[37])(c[10],c[20],c[3]),((0,c[56])(c[3],c[64]),c[26304-Math.pow(6,2)-26231])((0,c[0])(),c[20],c[67])}catch(d){10!=c[53]&&(0,c[7])(((((0,c[41+326%Math.pow(6,1)])((0,c[13])(c[42],c[245+Math.pow(7,2)+-222]),c[24],c[41],
c[28]),(0,c[49])(c[15],c[40-481%Math.pow(3,1)]),c[67])(c[39],c[53]),(0,c[60])(c[69],c[21]),c[54])(c[0]),c[32])(c[30],c[17]),c[2],(0,c[11])((0,c[2])((0,c[14])(c[55],c[79]),c[21],c[78],c[43]),c[77],(0,c[14])(c[42],c[37]),c[51],c[-7339972- -224*Math.pow(8,5)]),c[14],c[60],c[64]),-5<c[48]&&(-1!==c[48]?(0,c[27])(c[42]):(0,c[14])(c[81],c[5])),3!=c[47]&&(7>c[52]?(0,c[71])(c[42],c[68])>(0,c[-247*Math.pow(2,1)+502])((0,c[36])(),c[25],c[60]):((0,c[32])(c[31],c[42]),c[32])(c[75],c[60]))}}catch(d){return"enhanced_except__ZkBgub-_w8_"+
a}return b.join("")};
g.lw=function(a){this.name=a};
mw=function(a){this.ea=M(a)};
nw=function(a){this.ea=M(a)};
ow=function(a){this.ea=M(a)};
pw=function(a){this.ea=M(a)};
qw=function(a){this.ea=M(a)};
rw=function(a){this.ea=M(a)};
tw=function(a){this.ea=M(a)};
uw=function(a){this.ea=M(a)};
vw=function(a){this.ea=M(a)};
ww=function(a){this.ea=M(a)};
xw=function(a){this.ea=M(a)};
yw=function(a){this.ea=M(a)};
zw=function(a){this.ea=M(a)};
Aw=function(a){this.ea=M(a)};
Bw=function(a){this.ea=M(a)};
Cw=function(a){this.ea=M(a)};
Dw=function(a){this.ea=M(a)};
Ew=function(a){this.ea=M(a)};
Fw=function(a){this.ea=M(a)};
Gw=function(a){this.ea=M(a)};
Hw=function(a){this.ea=M(a)};
Iw=function(a){this.ea=M(a)};
Jw=function(a){this.ea=M(a)};
Kw=function(a){this.ea=M(a)};
Lw=function(a){this.ea=M(a)};
Mw=function(a){this.ea=M(a)};
Nw=function(a){this.ea=M(a)};
Ow=function(a){this.ea=M(a)};
Pw=function(a){this.ea=M(a)};
Qw=function(a){this.ea=M(a)};
Rw=function(a){this.ea=M(a)};
Sw=function(a){this.ea=M(a)};
Tw=function(a){this.ea=M(a)};
Uw=function(a){this.ea=M(a)};
Vw=function(a){this.ea=M(a)};
Ww=function(a){this.ea=M(a)};
Xw=function(a){this.ea=M(a)};
Yw=function(a){this.ea=M(a)};
Zw=function(a){this.ea=M(a)};
$w=function(a){this.ea=M(a)};
ax=function(a){this.ea=M(a)};
bx=function(a){this.ea=M(a)};
cx=function(a){this.ea=M(a)};
dx=function(a){this.ea=M(a)};
ex=function(a){this.ea=M(a)};
fx=function(a){this.ea=M(a)};
gx=function(a){this.ea=M(a)};
hx=function(a){this.ea=M(a)};
ix=function(a){this.ea=M(a)};
jx=function(a){this.ea=M(a)};
kx=function(a){this.ea=M(a)};
lx=function(a){this.ea=M(a)};
nx=function(a){this.ea=M(a)};
ima=function(a){this.ea=M(a)};
ox=function(a){this.ea=M(a)};
px=function(a){this.ea=M(a)};
qx=function(a){this.ea=M(a)};
rx=function(a){this.ea=M(a)};
sx=function(a){this.ea=M(a)};
tx=function(a){this.ea=M(a)};
ux=function(a){this.ea=M(a)};
vx=function(a){this.ea=M(a)};
wx=function(a){this.ea=M(a)};
xx=function(a){this.ea=M(a)};
yx=function(a){this.ea=M(a)};
zx=function(a){this.ea=M(a)};
Ax=function(a){this.ea=M(a)};
Bx=function(a){this.ea=M(a)};
Cx=function(a){this.ea=M(a)};
Dx=function(a){this.ea=M(a)};
Ex=function(a){this.ea=M(a)};
Fx=function(a){this.ea=M(a)};
Gx=function(a){this.ea=M(a)};
Hx=function(a){this.ea=M(a)};
Ix=function(a){this.ea=M(a)};
jma=function(a,b){return Wj(a,1,b)};
Jx=function(a){this.ea=M(a)};
Kx=function(a){this.ea=M(a)};
Lx=function(a){this.ea=M(a)};
Mx=function(a){this.ea=M(a)};
Nx=function(a){this.ea=M(a)};
Ox=function(a){this.ea=M(a)};
Px=function(a){this.ea=M(a)};
Qx=function(a){this.ea=M(a)};
Rx=function(a){this.ea=M(a)};
Sx=function(a){this.ea=M(a)};
g.Tx=function(a){this.ea=M(a)};
Ux=function(a){this.ea=M(a)};
Vx=function(a){this.ea=M(a)};
Wx=function(a){this.ea=M(a)};
Xx=function(a){this.ea=M(a)};
Yx=function(a){this.ea=M(a)};
Zx=function(a){this.ea=M(a)};
$x=function(a){this.ea=M(a)};
ay=function(a){this.ea=M(a)};
by=function(a){this.ea=M(a)};
cy=function(a){this.ea=M(a)};
dy=function(a){this.ea=M(a)};
ey=function(a){this.ea=M(a)};
fy=function(a){this.ea=M(a)};
gy=function(a){this.ea=M(a)};
hy=function(a){this.ea=M(a)};
iy=function(a){this.ea=M(a)};
jy=function(a){this.ea=M(a)};
ky=function(a){this.ea=M(a)};
ly=function(a){this.ea=M(a)};
my=function(a){this.ea=M(a)};
ny=function(a){this.ea=M(a)};
oy=function(a){this.ea=M(a)};
py=function(a){this.ea=M(a)};
qy=function(a){this.ea=M(a)};
ry=function(a){this.ea=M(a)};
sy=function(a){this.ea=M(a)};
ty=function(a){this.ea=M(a)};
uy=function(a){this.ea=M(a)};
vy=function(a){this.ea=M(a)};
wy=function(a){this.ea=M(a)};
yy=function(a){this.ea=M(a)};
zy=function(a){this.ea=M(a)};
Ay=function(a){this.ea=M(a)};
By=function(a){this.ea=M(a)};
Cy=function(a){this.ea=M(a)};
Dy=function(a){this.ea=M(a)};
Ey=function(a){this.ea=M(a)};
Fy=function(a){this.ea=M(a)};
Gy=function(a){this.ea=M(a)};
Hy=function(a){this.ea=M(a)};
Iy=function(a){this.ea=M(a)};
Jy=function(a){this.ea=M(a)};
Ky=function(a){this.ea=M(a)};
Ly=function(a){this.ea=M(a)};
My=function(a){this.ea=M(a)};
Ny=function(a){this.ea=M(a)};
Oy=function(a){this.ea=M(a)};
Py=function(a){this.ea=M(a)};
Qy=function(a){this.ea=M(a)};
Ry=function(a){this.ea=M(a)};
Sy=function(a){this.ea=M(a)};
Ty=function(a){this.ea=M(a)};
Uy=function(a){this.ea=M(a)};
Vy=function(a){this.ea=M(a)};
Wy=function(a){this.ea=M(a)};
Xy=function(a){this.ea=M(a)};
Yy=function(a){this.ea=M(a)};
Zy=function(a){this.ea=M(a)};
$y=function(a){this.ea=M(a)};
az=function(a){this.ea=M(a)};
bz=function(a){this.ea=M(a)};
cz=function(a){this.ea=M(a)};
dz=function(a){this.ea=M(a)};
ez=function(a){this.ea=M(a)};
fz=function(a){this.ea=M(a)};
gz=function(a){this.ea=M(a)};
hz=function(a){this.ea=M(a)};
iz=function(a){this.ea=M(a)};
jz=function(a){this.ea=M(a)};
kz=function(a){this.ea=M(a)};
lz=function(a){this.ea=M(a)};
mz=function(a){this.ea=M(a)};
nz=function(a){this.ea=M(a)};
oz=function(a){this.ea=M(a)};
pz=function(a){this.ea=M(a)};
qz=function(a){this.ea=M(a)};
rz=function(a){this.ea=M(a)};
sz=function(a){this.ea=M(a)};
tz=function(a){this.ea=M(a)};
uz=function(a){this.ea=M(a)};
vz=function(a){this.ea=M(a)};
wz=function(a){this.ea=M(a)};
xz=function(a){this.ea=M(a)};
g.yz=function(a){this.ea=M(a)};
g.zz=function(a){this.ea=M(a)};
Az=function(a){this.ea=M(a)};
Bz=function(a){this.ea=M(a)};
Cz=function(a){this.ea=M(a)};
Dz=function(a){this.ea=M(a)};
Ez=function(a){this.ea=M(a)};
Fz=function(a){this.ea=M(a)};
Gz=function(a){this.ea=M(a)};
Hz=function(a){this.ea=M(a)};
Iz=function(a){this.ea=M(a)};
Jz=function(a){this.ea=M(a)};
Kz=function(a){this.ea=M(a)};
Lz=function(a){this.ea=M(a)};
Mz=function(a){this.ea=M(a)};
Nz=function(a){this.ea=M(a)};
Oz=function(a){this.ea=M(a)};
Pz=function(a){this.ea=M(a)};
Qz=function(a){this.ea=M(a)};
Rz=function(a){this.ea=M(a)};
Sz=function(a){this.ea=M(a)};
Tz=function(a){this.ea=M(a)};
Uz=function(a){this.ea=M(a)};
Vz=function(a){this.ea=M(a)};
Wz=function(a){this.ea=M(a)};
Xz=function(a){this.ea=M(a)};
Yz=function(a){this.ea=M(a)};
Zz=function(a){this.ea=M(a)};
$z=function(a){this.ea=M(a)};
aA=function(a){this.ea=M(a)};
bA=function(a){this.ea=M(a)};
cA=function(a){this.ea=M(a)};
dA=function(a){this.ea=M(a)};
eA=function(a){this.ea=M(a)};
fA=function(a){this.ea=M(a)};
gA=function(a){this.ea=M(a)};
hA=function(a){this.ea=M(a)};
iA=function(a){this.ea=M(a)};
jA=function(a){this.ea=M(a)};
kA=function(a){this.ea=M(a)};
lA=function(a){this.ea=M(a)};
mA=function(a){this.ea=M(a)};
nA=function(a){this.ea=M(a)};
oA=function(a){this.ea=M(a)};
pA=function(a){this.ea=M(a)};
qA=function(a){this.ea=M(a)};
rA=function(a){this.ea=M(a)};
sA=function(a){this.ea=M(a)};
tA=function(a){this.ea=M(a)};
uA=function(a){this.ea=M(a)};
vA=function(a){this.ea=M(a)};
wA=function(a){this.ea=M(a)};
xA=function(a){this.ea=M(a)};
yA=function(a){this.ea=M(a)};
zA=function(a){this.ea=M(a)};
EA=function(a){this.ea=M(a)};
FA=function(a){this.ea=M(a)};
GA=function(a){this.ea=M(a)};
HA=function(a){this.ea=M(a)};
IA=function(a){this.ea=M(a)};
JA=function(a){this.ea=M(a)};
KA=function(a){this.ea=M(a)};
LA=function(a){this.ea=M(a)};
MA=function(a){this.ea=M(a)};
NA=function(a){this.ea=M(a)};
kma=function(a){this.ea=M(a)};
lma=function(a){this.ea=M(a)};
OA=function(a){this.ea=M(a)};
mma=function(a){this.ea=M(a)};
nma=function(a){this.ea=M(a)};
oma=function(a){this.ea=M(a)};
pma=function(a){this.ea=M(a)};
qma=function(a){this.ea=M(a)};
rma=function(a){this.ea=M(a)};
sma=function(a){this.ea=M(a)};
tma=function(a){this.ea=M(a)};
uma=function(a){this.ea=M(a)};
vma=function(a){this.ea=M(a)};
PA=function(a){this.ea=M(a)};
wma=function(a){this.ea=M(a)};
QA=function(a){this.ea=M(a)};
RA=function(a){this.ea=M(a)};
xma=function(a){this.ea=M(a)};
yma=function(a){this.ea=M(a)};
SA=function(a){this.ea=M(a)};
zma=function(a){this.ea=M(a)};
Ama=function(a){this.ea=M(a)};
Bma=function(a){this.ea=M(a)};
Cma=function(a){this.ea=M(a)};
Dma=function(a){this.ea=M(a)};
Ema=function(a){this.ea=M(a)};
Fma=function(a){this.ea=M(a)};
Gma=function(a){this.ea=M(a)};
TA=function(a){this.ea=M(a)};
Hma=function(a){this.ea=M(a)};
Ima=function(a){this.ea=M(a)};
Jma=function(a){this.ea=M(a)};
UA=function(a){this.ea=M(a)};
Kma=function(a){this.ea=M(a)};
Lma=function(a){this.ea=M(a)};
VA=function(a){this.ea=M(a)};
WA=function(a){this.ea=M(a)};
Mma=function(a){this.ea=M(a)};
XA=function(a){this.ea=M(a)};
YA=function(a){this.ea=M(a)};
Nma=function(a){this.ea=M(a)};
ZA=function(a){this.ea=M(a)};
$A=function(a){this.ea=M(a)};
Oma=function(a){this.ea=M(a)};
aB=function(a){this.ea=M(a)};
bB=function(a){this.ea=M(a)};
Pma=function(a){this.ea=M(a)};
Qma=function(a){this.ea=M(a)};
cB=function(a){this.ea=M(a)};
Rma=function(a){this.ea=M(a)};
Sma=function(a){this.ea=M(a)};
dB=function(a){this.ea=M(a)};
Tma=function(a){this.ea=M(a)};
Uma=function(a){this.ea=M(a)};
Vma=function(a){this.ea=M(a)};
Wma=function(a){this.ea=M(a)};
Xma=function(a){this.ea=M(a)};
Yma=function(a){this.ea=M(a)};
Zma=function(a){this.ea=M(a)};
$ma=function(a){this.ea=M(a)};
ana=function(a){this.ea=M(a)};
bna=function(a){this.ea=M(a)};
eB=function(a){this.ea=M(a)};
cna=function(a){this.ea=M(a)};
dna=function(a){this.ea=M(a)};
fB=function(a){this.ea=M(a)};
ena=function(a){this.ea=M(a)};
gB=function(a){this.ea=M(a)};
hB=function(a){this.ea=M(a)};
fna=function(a){this.ea=M(a)};
gna=function(a){this.ea=M(a)};
iB=function(a){this.ea=M(a)};
hna=function(a){this.ea=M(a)};
ina=function(a,b){Jj(a,HA,1,b)};
jB=function(a){this.ea=M(a)};
jna=function(a,b){return Jj(a,HA,1,b)};
kB=function(a){this.ea=M(a)};
kna=function(a,b){return Jj(a,HA,2,b)};
lB=function(a){this.ea=M(a)};
mB=function(a){this.ea=M(a)};
nB=function(a){this.ea=M(a)};
oB=function(a){this.ea=M(a)};
lna=function(a){this.ea=M(a)};
pB=function(a){this.ea=M(a)};
qB=function(a){var b=new pB;return N(b,1,a)};
rB=function(a,b){return N(a,2,b)};
sB=function(a){this.ea=M(a)};
mna=function(a){this.ea=M(a)};
tB=function(a){this.ea=M(a)};
uB=function(a,b){Mj(a,68,pB,b)};
nna=function(a){this.ea=M(a)};
ona=function(a){this.ea=M(a)};
vB=function(a){this.ea=M(a)};
wB=function(a){this.ea=M(a)};
xB=function(a){this.ea=M(a)};
pna=function(a){this.ea=M(a)};
yB=function(a){this.ea=M(a)};
qna=function(a){this.ea=M(a)};
rna=function(a){this.ea=M(a)};
sna=function(a){this.ea=M(a)};
zB=function(a){this.ea=M(a)};
tna=function(a){this.ea=M(a)};
una=function(a){this.ea=M(a)};
vna=function(a){this.ea=M(a)};
AB=function(a){this.ea=M(a)};
wna=function(a){this.ea=M(a)};
xna=function(a){this.ea=M(a)};
BB=function(a){this.ea=M(a)};
CB=function(a){this.ea=M(a)};
yna=function(a){this.ea=M(a)};
DB=function(a){this.ea=M(a)};
zna=function(a){this.ea=M(a)};
Ana=function(a){this.ea=M(a)};
EB=function(a){this.ea=M(a,496)};
Bna=function(a){this.ea=M(a)};
FB=function(a){this.ea=M(a)};
Cna=function(a){this.ea=M(a)};
Dna=function(){return g.Sa("yt.ads.biscotti.lastId_")||""};
Ena=function(a){g.Ra("yt.ads.biscotti.lastId_",a)};
HB=function(){var a=arguments;1<a.length?GB[a[0]]=a[1]:1===a.length&&Object.assign(GB,a[0])};
g.IB=function(a,b){return a in GB?GB[a]:b};
JB=function(a){var b=GB.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.KB=function(a){a=Fna(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.LB=function(a,b){a=Fna(a);return void 0===a&&void 0!==b?b:Number(a||0)};
Gna=function(){return g.IB("EXPERIMENTS_TOKEN","")};
Fna=function(a){return g.IB("EXPERIMENT_FLAGS",{})[a]};
Hna=function(){for(var a=[],b=g.IB("EXPERIMENTS_FORCED_FLAGS",{}),c=g.u(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.IB("EXPERIMENT_FLAGS",{});var e=g.u(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};
Ina=function(a){MB.forEach(function(b){return b(a)})};
g.OB=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.NB(b)}}:a};
g.NB=function(a){var b=g.Sa("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.IB("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),HB("ERRORS",b));Ina(a)};
PB=function(a,b,c,d,e){var f=g.Sa("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.IB("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),HB("ERRORS",f))};
QB=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=Jna(f[0]||""),l=Jna(f[1]||"");h in c?Array.isArray(c[h])?g.Lb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(QB);m.args=[{key:n,value:f[1],query:a,method:Kna==p?"unchanged":p}];Lna.hasOwnProperty(n)||PB(m)}}return c};
RB=function(a){var b=[];g.Wc(a,function(c,d){var e=g.pe(d),f;Array.isArray(c)?f=c:f=[c];g.Xb(f,function(h){""==h?b.push(e):b.push(e+"="+g.pe(h))})});
return b.join("&")};
SB=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return QB(a,"&")};
Mna=function(a){a=a.split(",");return a=a.map(function(b){return SB(b)})};
g.TB=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),SB(1<a.length?a[1]:a[0])):{}};
UB=function(a,b){return Nna(a,b||{},!0)};
VB=function(a,b){return Nna(a,b||{},!1)};
Nna=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=SB(e[1]||"");for(var f in b)if(c||!g.fd(e,f))e[f]=b[f];return g.Ml(a,e)+d};
WB=function(a){if(!b)var b=window.location.href;var c=g.Fl(1,a),d=g.Gl(a);c&&d?(a=a.match(El),b=b.match(El),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Gl(b)==d&&(Number(g.Fl(4,b))||null)==(Number(g.Fl(4,a))||null):!0;return a};
XB=function(a){a||(a=document.location.href);a=g.Fl(1,a);return null!==a&&"https"==a};
Ona=function(a){a=g.Gl(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Jna=function(a){return a&&a.match(Pna)?a:se(a)};
YB=function(a){var b=Qna;a=void 0===a?Dna():a;var c=Object,d=c.assign,e=Rna(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(F){}try{var m=f.outerWidth;var n=f.outerHeight}catch(F){}try{var p=f.innerWidth;var q=f.innerHeight}catch(F){}try{var r=f.screenLeft;var t=f.screenTop}catch(F){}try{p=f.innerWidth,q=f.innerHeight}catch(F){}try{var v=f.screen.availWidth;var x=f.screen.availTop}catch(F){}f=[r,t,h,l,v,x,m,n,p,q];h=nia(!1,b.j.top);l={};var B=void 0===B?g.Qa:B;m=new xu;"SVGElement"in B&&"createElementNS"in
B.document&&m.set(0);n=Aha();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);"TextDecoder"in B&&"TextEncoder"in B&&m.set(4);B=Uka(m);b=(l.bc=B,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=fr(b.B),l.wgl=!!cr.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Rna=function(a){var b={};b.dt=Sna;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?cr:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=cr.screen)?void 0:f.height;var h;b.u_w=null==(h=cr.screen)?void 0:h.width;var l;b.u_ah=null==(l=cr.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=cr.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=cr.screen)?void 0:
n.colorDepth}catch(p){}return b};
Una=function(){if(!Tna)return null;var a=Tna();return"open"in a?a:null};
g.$B=function(a){switch(ZB(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
ZB=function(a){return a&&"status"in a?a.status:-1};
g.aC=function(a,b){"function"===typeof a&&(a=g.OB(a));return window.setTimeout(a,b)};
g.bC=function(a,b){"function"===typeof a&&(a=g.OB(a));return window.setInterval(a,b)};
g.cC=function(a){window.clearTimeout(a)};
g.dC=function(a){window.clearInterval(a)};
Wna=function(a,b){b=void 0===b?{}:b;var c=WB(a),d=g.KB("web_ajax_ignore_global_headers_if_set"),e;for(e in Vna){var f=g.IB(Vna[e]),h="X-Goog-AuthUser"===e||"X-Goog-PageId"===e;"X-Goog-Visitor-Id"!==e||f||(f=g.IB("VISITOR_DATA"));!f||!c&&!eC(a,e)||d&&void 0!==b[e]||"TVHTML5_UNPLUGGED"===g.IB("INNERTUBE_CLIENT_NAME")&&h||(b[e]=f)}c&&g.IB("WEBVIEW_EOM",!1)&&(b["X-Yt-Webview-Eom"]="1");"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||eC(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=
String(-(new Date).getTimezoneOffset());if(c||eC(a,"X-YouTube-Time-Zone")){try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(m){}l&&(b["X-YouTube-Time-Zone"]=l)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&!eC(a,"X-YouTube-Ad-Signals")||(b["X-YouTube-Ad-Signals"]=RB(YB()));return b};
Yna=function(a,b){var c=g.Gl(a);g.KB("debug_handle_relative_url_for_query_forward_killswitch")||!c&&WB(a)&&(c=document.location.hostname);var d=Dl(g.Fl(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=SB(b),f={};g.Xb(Xna,function(h){e[h]&&(f[h]=e[h])});
return VB(a,f)};
eC=function(a){return g.Gl(a)?!1:!0};
g.fC=function(a,b){var c=b.format||"JSON";a=Zna(a,b);var d=$na(a,b),e=!1,f=aoa(a,function(m){if(!e){e=!0;l&&g.cC(l);var n=g.$B(m),p=null,q=400<=m.status&&500>m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=boa(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.Qa;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.aC(function(){e||(e=!0,f.abort(),g.cC(l),h.call(b.context||g.Qa,f))},d)}return f};
Zna=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.IB("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=UB(a,b);return a};
$na=function(a,b){var c=g.IB("XSRF_FIELD_NAME"),d=g.IB("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.IB("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Gl(a)&&!b.withCredentials&&g.Gl(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.KB("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=SB(e),g.qd(e,f),e=b.postBodyFormat&&
"JSON"==b.postBodyFormat?JSON.stringify(e):g.Ll(e));f=e||f&&!g.id(f);!coa&&f&&"POST"!=b.method&&(coa=!0,g.NB(Error("AJAX request with postData should use POST")));return e};
boa=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,PB(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)?loa(a):null)e={},g.Xb(a.getElementsByTagName("*"),function(h){e[h.tagName]=moa(h)})}d&&noa(e);
return e};
noa=function(a){if(g.$a(a))for(var b in a)"html_content"==b||Daa(b,"_html")?a[b]=g.ee(a[b]):noa(a[b])};
loa=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
moa=function(a){var b="";g.Xb(a.childNodes,function(c){b+=c.nodeValue});
return b};
ooa=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.fC(a,b)};
aoa=function(a,b,c,d,e,f,h,l){function m(){4==(n&&"readyState"in n?n.readyState:0)&&b&&g.OB(b)(n)}
c=void 0===c?"GET":c;d=void 0===d?"":d;l=void 0===l?!1:l;var n=Una();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.KB("debug_forward_web_query_parameters")&&(a=Yna(a,window.location.search));n.open(c,a,!0);f&&(n.responseType=f);h&&(n.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=Wna(a,e))for(var p in e)n.setRequestHeader(p,e[p]),"content-type"==p.toLowerCase()&&(c=!1);c&&n.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");l&&"setAttributionReporting"in XMLHttpRequest.prototype&&n.setAttributionReporting({eventSourceEligible:!0,triggerEligible:!1});n.send(d);return n};
hC=function(a,b){var c=g.ld(b),d;return(new g.Kf(function(e,f){c.onSuccess=function(h){g.$B(h)?e(new poa(h)):f(new gC("Request failed, status="+ZB(h),"net.badstatus",h))};
c.onError=function(h){f(new gC("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new gC("Request timed out","net.timeout",h))};
d=g.fC(a,c)})).Al(function(e){e instanceof Zf&&d.abort();
return Wf(e)})};
g.iC=function(a,b,c,d){function e(l,m,n){return l.Al(function(p){if(0>=m||403===ZB(p.xhr))return Wf(new gC("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(hC(a,b),m-1,q)})})}
function f(l){return new g.Kf(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(hC(a,b),c-1,d)};
gC=function(a,b,c){wb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
poa=function(a){this.xhr=a};
jC=function(a){this.j=void 0===a?null:a;this.B=0;this.Ud=null};
kC=function(a){var b=new jC;a=void 0===a?null:a;b.B=2;b.Ud=void 0===a?null:a;return b};
lC=function(a){var b=new jC;a=void 0===a?null:a;b.B=1;b.Ud=void 0===a?null:a;return b};
g.oC=function(a,b,c,d,e){mC||nC.set(""+a,b,{UI:c,path:"/",domain:void 0===d?"youtube.com":d,cba:void 0===e?!1:e})};
g.pC=function(a,b){if(!mC)return nC.get(""+a,b)};
g.qoa=function(a,b,c){mC||nC.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
roa=function(){if(!nC.isEnabled())return!1;if(!nC.isEmpty())return!0;nC.set("TESTCOOKIESENABLED","1",{UI:60});if("1"!==nC.get("TESTCOOKIESENABLED"))return!1;nC.remove("TESTCOOKIESENABLED");return!0};
g.R=function(a,b){if(a)return a[b.name]};
soa=function(a){var b=g.IB("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Hl(a)));return a};
toa=function(a,b){var c={};g.IB("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.IB("INNERTUBE_API_KEY"));g.KB("json_condensed_response")&&(c.prettyPrint="false");return a=VB(a,c)};
uoa=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:WB(a)?"same-origin":"cors",credentials:WB(a)?"same-origin":"include"};b={};for(var d=g.u(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};
voa=function(){var a=/Chrome\/(\d+)/.exec(g.mc());return a?parseFloat(a[1]):NaN};
woa=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.mc());if(!a)return NaN;var b=[];a=g.u(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
rC=function(){return g.qC("android")&&g.qC("chrome")&&!(g.qC("trident/")||g.qC("edge/"))&&!g.qC("cobalt")};
xoa=function(){return g.qC("armv7")||g.qC("aarch64")||g.qC("android")};
g.sC=function(){return g.qC("cobalt")};
tC=function(){return g.qC("cobalt")&&g.qC("appletv")};
yoa=function(){return g.qC("(ps3; leanback shell)")||g.qC("ps3")&&g.sC()};
zoa=function(){return g.qC("(ps4; leanback shell)")||g.qC("ps4")&&g.sC()};
g.Aoa=function(){return g.sC()&&(g.qC("ps4 vr")||g.qC("ps4 pro vr"))};
uC=function(){var a=/WebKit\/([0-9]+)/.exec(g.mc());return!!(a&&600<=parseInt(a[1],10))};
Boa=function(){var a=/WebKit\/([0-9]+)/.exec(g.mc());return!!(a&&602<=parseInt(a[1],10))};
Coa=function(){return g.qC("iemobile")||g.qC("windows phone")&&g.qC("edge")};
xC=function(){return(vC||wC)&&g.qC("applewebkit")&&!g.qC("version")&&(!g.qC("safari")||g.qC("gsa/"))};
zC=function(){return g.yC&&g.qC("version/")};
Doa=function(){return g.qC("smart-tv")&&g.qC("samsung")};
g.qC=function(a){var b=g.mc();return b?0<=b.toLowerCase().indexOf(a):!1};
Eoa=function(){return Yea()||xC()||zC()?!0:g.IB("EOM_VISITOR_DATA")?!1:!0};
AC=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
BC=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
CC=function(a,b){return void 0===b||null===b?a:Number(b)};
DC=function(a,b){return void 0===b||null===b?a:b.toString()};
Goa=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Foa))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
EC=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
Ioa=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===Hoa(a,!1)};
g.FC=function(a){return"EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"===a||"EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"===a?!0:!1};
Hoa=function(a,b){b=(void 0===b?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");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?BC(b,c.embeddedPlayerMode,Joa):b};
Koa=function(a){wb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof GC;this.isTimeout=a instanceof gC&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Zf};
GC=function(){wb.call(this,"Biscotti ID is missing from server")};
Loa=function(){if(g.KB("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Eoa())return Error("User has not consented - not fetching biscotti id.");var a=g.IB("PLAYER_VARS",{});if("1"==g.jd(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(Ioa(a))return Error("Biscotti id fetching has been disabled for pfl.")};
Poa=function(){var a=Loa();if(void 0!==a)return Wf(a);HC||(HC=hC("//web.archive.org/web/20240102114909/https://googleads.g.doubleclick.net/pagead/id",Moa).then(Noa).Al(function(b){return Ooa(2,b)}));
return HC};
Noa=function(a){a=a.xhr.responseText;if(!bc(a,")]}'"))throw new GC;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new GC;a=a.id;Ena(a);HC=lC(a);Qoa(18E5,2);return a};
Ooa=function(a,b){b=new Koa(b);Ena("");HC=kC(b);0<a&&Qoa(12E4,a-1);throw b;};
Qoa=function(a,b){g.aC(function(){hC("//web.archive.org/web/20240102114909/https://googleads.g.doubleclick.net/pagead/id",Moa).then(Noa,function(c){return Ooa(b,c)}).Al(g.Hd)},a)};
Roa=function(){try{var a=g.Sa("yt.ads.biscotti.getId_");return a?a():Poa()}catch(b){return Wf(b)}};
Toa=function(a){return a?a.dataset?a.dataset[Soa()]:a.getAttribute("data-loaded"):null};
Soa=function(){return Uoa.loaded||(Uoa.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))};
Woa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Voa+"VisibilityState";if(b in a)return a[b]};
IC=function(a,b){var c;ms(a,function(d){c=b[d];return!!c});
return c};
Xoa=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()};
LC=function(a){var b;g.JC()?KC()==a&&(b=document):b=a;return b&&(a=IC(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Yoa=function(a){return g.Db(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Zoa=function(){var a=document;return g.Db(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.JC=function(){return!!IC(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
KC=function(a){a=void 0===a?!1:a;var b=IC(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
MC=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 $oa||(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.B=a.pageY}}catch(e){}};
apa=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.B=a.clientY+b}};
bpa=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 hd(NC,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.$a(e[4])&&g.$a(d)&&g.kd(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.OC=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=bpa(a,b,c,d);if(e)return e;e=++cpa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new MC(l);if(!sf(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new MC(l);
l.currentTarget=a;return c.call(a,l)};
h=g.OB(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),dpa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);NC[e]=[a,b,c,h,d];return e};
epa=function(a,b){var c=document.body||document;return g.OC(c,"click",function(d){var e=sf(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.PC=function(a){a&&("string"==typeof a&&(a=[a]),g.Xb(a,function(b){if(b in NC){var c=NC[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?dpa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete NC[b]}}))};
QC=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;b&&b.length?a=b[0]:(a=a||window.event,a=a.target||a.srcElement,3==a.nodeType&&(a=a.parentNode));return a};
fpa=function(a){return epa(a,function(b){return g.Lu(b,"ytp-ad-has-logging-urls")})};
gpa=function(a){for(var b in NC)NC[b][0]==a&&g.PC(b)};
RC=function(a){this.N=a;this.j=null;this.D=0;this.K=null;this.G=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.ra=g.OC(window,"mousemove",(0,g.eb)(this.W,this));this.Z=g.bC((0,g.eb)(this.ma,this),25)};
SC=function(a){g.H.call(this);this.N=[];this.bb=a||this};
TC=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.UC=function(a,b){for(;a.N.length;){var c=a.N.pop(),d=void 0;b&&hpa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
VC=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.ld(b);this.assets=a.assets||{};this.attrs=a.attrs||g.ld(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||{}};
ipa=function(a){a instanceof VC||(a=new VC(a));return a};
g.XC=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.WC)():jpa())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.YC=function(a){var b=jpa(),c=(0,g.WC)();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};
kpa=function(){var a=(0,g.WC)();if(a&&(a=a.B("yt-player-quality")))return a.creation};
g.ZC=function(a){try{var b=jpa(),c=(0,g.WC)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.$C=function(){return g.YC("yt-remote-session-screen-id")};
aD=function(){this.F_=!0};
lpa=function(){aD.instance||(aD.instance=new aD);return aD.instance};
mpa=function(a){var b=this;this.B=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.B=c});
a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
npa=function(){if(!g.Qa.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Qa.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Qa.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Qa.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Qa.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
opa=function(a){switch(a){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
ppa=function(){this.j=g.IB("ALT_PREF_COOKIE_NAME","PREF");this.B=g.IB("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.pC(this.j);a&&this.parse(a)};
g.bD=function(){qpa||(qpa=new ppa);return qpa};
g.cD=function(a,b){return!!((rpa("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
spa=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=rpa(c)||0;d=b?d|a:d&~a;0===d?delete dD[c]:(b=d.toString(16),dD[c]=b.toString())};
tpa=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
upa=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
rpa=function(a){a=void 0!==dD[a]?dD[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
vpa=function(){var a=g.Qa.navigator;return a?a.connection:void 0};
xpa=function(){var a=vpa();if(a){var b=wpa[a.type||"unknown"]||"CONN_UNKNOWN";a=wpa[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}};
zpa=function(){var a=vpa();if(null!=a&&a.effectiveType)return ypa.hasOwnProperty(a.effectiveType)?ypa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.eD=function(a){var b=g.Ia.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.oa(b))};
g.gD=function(){try{return g.fD(),!0}catch(a){return!1}};
g.fD=function(a){if(void 0!==g.IB("DATASYNC_ID"))return g.IB("DATASYNC_ID");throw new g.eD("Datasync ID not set",void 0===a?"unknown":a);};
hD=function(){this.j=new WeakMap};
g.jD=function(a,b,c){return iD(b,0,c)};
Apa=function(a){var b=g.Sa("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
kD=function(){hD.apply(this,arguments)};
g.lD=function(){kD.instance||(kD.instance=new kD);return kD.instance};
g.mD=function(){return!!g.Sa("yt.scheduler.instance")};
iD=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Sa("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.aC(a,c||0)};
nD=function(a){var b=g.Sa("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
oD=function(a){var b;(b=g.xv(a))||(a=new tv(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new lv(a):null;this.B=document.domain||window.location.hostname};
Cpa=function(){var a;return null==(a=Bpa())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Fpa=function(){var a={};for(pD=new Dpa(void 0===a.handleError?Epa:a.handleError,void 0===a.logEvent?g.qD:a.logEvent);0<rD.length;)switch(a=rD.shift(),a.type){case "ERROR":pD.nE(a.payload);break;case "EVENT":pD.logEvent(a.eventType,a.payload)}};
tD=function(a){sD||(pD?pD.nE(a):(rD.push({type:"ERROR",payload:a}),10<rD.length&&rD.shift()))};
uD=function(a,b){sD||(pD?pD.logEvent(a,b):(rD.push({type:"EVENT",eventType:a,payload:b}),10<rD.length&&rD.shift()))};
vD=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
wD=function(a){return a.substr(0,a.indexOf(":"))||a};
g.xD=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?Gpa[a]:c;d=void 0===d?Hpa[a]:d;e=void 0===e?Ipa[a]:e;g.eD.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.xD.prototype)};
Jpa=function(a,b){g.xD.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Gpa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Jpa.prototype)};
yD=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,yD.prototype)};
Lpa=function(a,b,c,d){b=wD(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.xD)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.xD("QUOTA_EXCEEDED",a);if(g.zD&&"UnknownError"===e.name)return new g.xD("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof yD)return new g.xD("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&Kpa.some(function(f){return e.message.includes(f)}))return new g.xD("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.xD("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",IJ:e.name})];e.level="WARNING";return e};
g.AD=function(a,b,c){var d=Cpa();return new g.xD("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
Mpa=function(a){if(!a)throw Error();throw a;};
Npa=function(a){return a};
BD=function(a){this.j=a};
g.CD=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.u(d.B);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.u(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.B=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
Ppa=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.CD?Opa(a,b,f,d,e):d(f)}catch(h){e(h)}};
Qpa=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.CD?Opa(a,b,f,d,e):d(f)}catch(h){e(h)}};
Opa=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.CD?Opa(a,b,f,d,e):d(f)},function(f){e(f)})};
Rpa=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)};
Spa=function(a){return new Promise(function(b,c){Rpa(a,b,c)})};
g.DD=function(a){return new g.CD(new BD(function(b,c){Rpa(a,b,c)}))};
Tpa=function(a,b){return new g.CD(new BD(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
Upa=function(a,b){this.request=a;this.cursor=b};
ED=function(a){return g.DD(a).then(function(b){return b?new Upa(a,b):null})};
Vpa=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.FD)());this.B=!1};
g.GD=function(a,b,c){a=a.j.createObjectStore(b,c);return new Wpa(a)};
HD=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.KD=function(a,b,c){return g.ID(a,[b],{mode:"readwrite",Tb:!0},function(d){return g.JD(d.objectStore(b),c)})};
g.ID=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,v,x;return g.Ha(function(B){switch(B.j){case 1:var F={mode:"readonly",Tb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?F.mode=c:Object.assign(F,c);e=F;a.transactionCount++;f=e.Tb?3:1;h=0;case 2:if(l){B.Ka(4);break}h++;m=Math.round((0,g.FD)());g.ya(B,5);n=a.j.transaction(b,e.mode);F=new LD(n);F=Xpa(F,d);return g.z(B,F,7);case 7:return p=B.B,q=Math.round((0,g.FD)()),Ypa(a,m,q,h,void 0,b.join(),e),B.return(p);case 5:r=g.Aa(B);t=Math.round((0,g.FD)());
v=Lpa(r,a.j.name,b.join(),a.j.version);if((x=v instanceof g.xD&&!v.j)||h>=f)Ypa(a,m,t,h,v,b.join(),e),l=v;B.Ka(2);break;case 4:return B.return(Promise.reject(l))}})};
Ypa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.xD&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&uD("QUOTA_EXCEEDED",{dbName:wD(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.xD&&"UNKNOWN_ABORT"===e.type&&(c-=a.C,0>c&&c>=Math.pow(2,31)&&(c=0),uD("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),Zpa(a,!1,d,f,b,h.tag),tD(e)):Zpa(a,!0,d,
f,b,h.tag)};
Zpa=function(a,b,c,d,e,f){uD("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
Wpa=function(a){this.j=a};
g.MD=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
$pa=function(a,b){return g.ND(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
g.bqa=function(a,b){return"getAll"in IDBObjectStore.prototype?g.DD(a.j.getAll(b,void 0)):aqa(a,b)};
aqa=function(a,b){var c=[];return g.ND(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})};
dqa=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.DD(a.j.getAllKeys(void 0,void 0)):cqa(a)};
cqa=function(a){var b=[];return g.eqa(a,{query:void 0},function(c){b.push(c.dI());return c.continue()}).then(function(){return b})};
g.JD=function(a,b,c){return g.DD(a.j.put(b,c))};
g.ND=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return OD(a).then(function(d){return Tpa(d,c)})};
g.eqa=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 ED(a).then(function(e){return Tpa(e,c)})};
LD=function(a){var b=this;this.j=a;this.C=new Map;this.B=!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.B){e=g.xD;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)}})})};
Xpa=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.u(d).next().value})};
fqa=function(a){this.j=a};
g.PD=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return OD(a).then(function(d){return Tpa(d,c)})};
gqa=function(a,b){this.request=a;this.cursor=b};
OD=function(a){return g.DD(a).then(function(b){return b?new gqa(a,b):null})};
hqa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new Vpa(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.Oba,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(null===t.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&"none"!==t.dataLoss&&uD("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:wD(a)});var v=f(),x=new LD(h.transaction);
p&&p(v,function(B){return t.oldVersion<B&&t.newVersion>=B},x);
x.done.catch(function(B){e(B)})}catch(B){e(B)}});
h.addEventListener("success",function(){var t=h.result;m&&t.addEventListener("versionchange",function(){m(f())});
t.addEventListener("close",function(){uD("IDB_UNEXPECTEDLY_CLOSED",{dbName:wD(a),dbVersion:t.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
iqa=function(a,b,c){c=void 0===c?{}:c;return hqa(a,b,c)};
QD=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.Ha(function(h){if(1==h.j)return g.ya(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,Spa(c),4);
if(2!=h.j)return g.za(h,0);f=g.Aa(h);throw Lpa(f,a,"",-1);})};
RD=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0};
jqa=function(a,b){return new g.xD("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.SD=function(a,b){if(!b)throw g.AD("openWithToken",wD(a.name));return a.open()};
lqa=function(a,b){var c;return g.Ha(function(d){if(1==d.j)return g.z(d,g.SD(kqa,b),2);c=d.B;return d.return(g.ID(c,["databases"],{Tb:!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.JD(f,a).then(function(){})})}))})};
TD=function(a,b){var c;return g.Ha(function(d){if(1==d.j)return a?g.z(d,g.SD(kqa,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})};
mqa=function(a,b){var c,d;return g.Ha(function(e){return 1==e.j?(c=[],g.z(e,g.SD(kqa,b),2)):3!=e.j?(d=e.B,g.z(e,g.ID(d,["databases"],{Tb:!0,mode:"readonly"},function(f){c.length=0;return g.ND(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
nqa=function(a,b){return mqa(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)};
pqa=function(){var a,b,c,d;return g.Ha(function(e){switch(e.j){case 1:a=Cpa();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(UD&&uC()&&!Boa()||g.VD)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.ya(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.z(e,lqa(d,oqa),4);case 4:return g.z(e,TD("yt-idb-test-do-not-use",oqa),5);case 5:return e.return(!0);case 2:return g.Aa(e),e.return(!1)}})};
rqa=function(){if(void 0!==qqa)return qqa;sD=!0;return qqa=pqa().then(function(a){sD=!1;var b;if(null!=(b=Bpa())&&b.j){var c;b={hasSucceededOnce:(null==(c=Cpa())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Bpa())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
WD=function(){return g.Sa("ytglobal.idbToken_")||void 0};
g.XD=function(){var a=WD();return a?Promise.resolve(a):rqa().then(function(b){(b=b?oqa:void 0)&&g.Ra("ytglobal.idbToken_",b);return b})};
sqa=function(a){if(!g.gD())throw a=new g.xD("AUTH_INVALID",{dbName:a}),tD(a),a;var b=g.fD();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
tqa=function(a,b,c,d){var e,f,h,l,m,n;return g.Ha(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.z(p,g.XD(),2);case 2:h=p.B;if(!h)throw l=g.AD("openDbImpl",a,b),g.KB("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),tD(l),l;vD(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:sqa(a);g.ya(p,3);return g.z(p,lqa(m,h),5);case 5:return g.z(p,iqa(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.Aa(p),g.ya(p,7),g.z(p,TD(m.actualName,
h),9);case 9:g.za(p,8);break;case 7:g.Aa(p);case 8:throw n;}})};
uqa=function(a,b,c){c=void 0===c?{}:c;return tqa(a,b,!1,c)};
vqa=function(a,b,c){c=void 0===c?{}:c;return tqa(a,b,!0,c)};
wqa=function(a,b){b=void 0===b?{}:b;var c,d;return g.Ha(function(e){if(1==e.j)return g.z(e,g.XD(),2);if(3!=e.j){c=e.B;if(!c)return e.return();vD(a);d=sqa(a);return g.z(e,QD(d.actualName,b),3)}return g.z(e,TD(d.actualName,c),0)})};
xqa=function(a,b,c){a=a.map(function(d){return g.Ha(function(e){return 1==e.j?g.z(e,QD(d.actualName,b),2):g.z(e,TD(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
yqa=function(a){var b=void 0===b?{}:b;var c,d;return g.Ha(function(e){if(1==e.j)return g.z(e,g.XD(),2);if(3!=e.j){c=e.B;if(!c)return e.return();vD(a);return g.z(e,nqa(a,c),3)}d=e.B;return g.z(e,xqa(d,b,c),0)})};
zqa=function(a,b){b=void 0===b?{}:b;var c;return g.Ha(function(d){if(1==d.j)return g.z(d,g.XD(),2);if(3!=d.j){c=d.B;if(!c)return d.return();vD(a);return g.z(d,QD(a,b),3)}return g.z(d,TD(a,c),0)})};
YD=function(a,b){RD.call(this,a,b);this.options=b;vD(a)};
Aqa=function(a,b){var c;return function(){c||(c=new YD(a,b));return c}};
g.ZD=function(a,b){return Aqa(a,b)};
$D=function(a){return g.SD(Bqa(),a)};
Cqa=function(a,b,c,d){var e,f,h;return g.Ha(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.FD)()},g.z(l,$D(c),2);case 2:return f=l.B,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.KD(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})};
Dqa=function(a,b,c,d,e){var f,h,l;return g.Ha(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.FD)()},g.z(m,$D(d),2);case 2:return h=m.B,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.KD(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})};
Eqa=function(a){var b,c;return g.Ha(function(d){return 1==d.j?g.z(d,$D(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.ID(b,["coldConfigStore"],{mode:"readwrite",Tb:!0},function(e){return g.PD(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
Fqa=function(a){var b,c;return g.Ha(function(d){return 1==d.j?g.z(d,$D(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.ID(b,["hotConfigStore"],{mode:"readwrite",Tb:!0},function(e){return g.PD(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
Gqa=function(){return g.Ha(function(a){return g.z(a,yqa("ytGcfConfig"),0)})};
Hqa=function(){g.H.call(this);this.B=[];this.j=[];var a=g.Sa("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.oa(a)),this.j=a):(this.j=[],g.Ra("yt.gcf.config.hotUpdateCallbacks",this.j))};
eE=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Hqa;this.Fd={wjb:function(){a.G=!0},
Fib:function(){return a.j},
Bkb:function(b){aE(a,b)},
Gr:function(b){a.Gr(b)},
wkb:function(b){Iqa(a,b)},
X5:function(){return a.coldHashData},
f6:function(){return a.hotHashData},
Vib:function(){return a.B},
Nib:function(){return bE()},
Pib:function(){return cE()},
Oib:function(){return g.Sa("yt.gcf.config.coldHashData")},
Qib:function(){return g.Sa("yt.gcf.config.hotHashData")},
Qkb:function(){Jqa(a)},
qkb:function(){a.Gr(void 0);dE(a);delete eE.instance},
ykb:function(b){a.C=b},
Kib:function(){return a.C}}};
Kqa=function(){if(!eE.instance){var a=new eE;eE.instance=a}return eE.instance};
Nqa=function(a){var b;g.Ha(function(c){if(1==c.j)return g.KB("start_client_gcf")||g.KB("delete_gcf_config_db")?g.KB("start_client_gcf")?g.z(c,g.XD(),3):c.Ka(2):c.return();2!=c.j&&((b=c.B)&&g.gD()&&!g.KB("delete_gcf_config_db")?(a.G=!0,Jqa(a)):(Lqa(a),Mqa(a)));return g.KB("delete_gcf_config_db")?g.z(c,Gqa(),0):c.Ka(0)})};
fE=function(){var a;return null!=(a=cE())?a:g.IB("RAW_HOT_CONFIG_GROUP")};
Oqa=function(a){var b,c,d,e,f,h;return g.Ha(function(l){switch(l.j){case 1:if(a.B)return l.return(cE());if(!a.G)return b=g.AD("getHotConfig IDB not initialized"),PB(b),l.return(Promise.reject(b));c=WD();d=g.IB("TIME_CREATED_MS");if(!c){e=g.AD("getHotConfig token error");PB(e);l.Ka(2);break}return g.z(l,Fqa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return aE(a,f.config),a.Gr(f.hashData),l.return(cE());case 2:Mqa(a);if(!(c&&a.B&&a.hotHashData)){l.Ka(4);break}return g.z(l,Cqa(a.B,a.hotHashData,c,d),4);
case 4:return a.B?l.return(cE()):(h=new g.eD("Config not available in ytConfig"),PB(h),l.return(Promise.reject(h)))}})};
Qqa=function(a){var b,c,d,e,f,h;return g.Ha(function(l){switch(l.j){case 1:if(a.j)return l.return(bE());if(!a.G)return b=g.AD("getColdConfig IDB not initialized"),PB(b),l.return(Promise.reject(b));c=WD();d=g.IB("TIME_CREATED_MS");if(!c){e=g.AD("getColdConfig");PB(e);l.Ka(2);break}return g.z(l,Eqa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Iqa(a,f.config),Pqa(a,f.configData),dE(a,f.hashData),l.return(bE());case 2:Lqa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ka(4);break}return g.z(l,Dqa(a.j,
a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(bE()):(h=new g.eD("Config not available in ytConfig"),PB(h),l.return(Promise.reject(h)))}})};
Jqa=function(a){if(!a.B||!a.j){if(!WD()){var b=g.AD("scheduleGetConfigs");PB(b)}a.D||(a.D=g.wu.Si(function(){return g.Ha(function(c){switch(c.j){case 1:return g.ya(c,2),g.z(c,Oqa(a),4);case 4:g.za(c,3);break;case 2:g.Aa(c);case 3:return g.ya(c,5),g.z(c,Qqa(a),7);case 7:g.za(c,6);break;case 5:g.Aa(c);case 6:a.D&&(a.D=0),g.xa(c)}})},100))}};
Rqa=function(a,b,c){var d,e,f;return g.Ha(function(h){switch(h.j){case 1:if(!g.KB("start_client_gcf")){h.Ka(0);break}c&&aE(a,c);a.Gr(b);d=WD();if(!d){h.Ka(3);break}if(c){h.Ka(4);break}return g.z(h,Fqa(d),5);case 5:e=h.B,c=null==(f=e)?void 0:f.config;case 4:return g.z(h,Cqa(c,b,d),3);case 3:if(c)for(var l=c,m=g.u(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.xa(h)}})};
Sqa=function(a,b,c){var d,e,f,h;return g.Ha(function(l){if(1==l.j){if(!g.KB("start_client_gcf"))return l.Ka(0);dE(a,b);return(d=WD())?c?l.Ka(4):g.z(l,Eqa(d),5):l.Ka(0)}4!=l.j&&(e=l.B,c=null==(f=e)?void 0:f.config);if(!c)return l.Ka(0);h=c.configData;return g.z(l,Dqa(c,b,h,d),0)})};
Tqa=function(){var a=Kqa(),b=(0,g.FD)()-a.C;if(!(0!==a.C&&b<g.LB("send_config_hash_timer"))){b=g.Sa("yt.gcf.config.coldConfigData");var c=g.Sa("yt.gcf.config.hotHashData"),d=g.Sa("yt.gcf.config.coldHashData");b&&c&&d&&(a.C=(0,g.FD)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}};
Lqa=function(a){Iqa(a,g.IB("RAW_COLD_CONFIG_GROUP"));dE(a,g.IB("SERIALIZED_COLD_HASH_DATA"));var b;Pqa(a,null==(b=a.j)?void 0:b.configData)};
Mqa=function(a){aE(a,g.IB("RAW_HOT_CONFIG_GROUP"));a.Gr(g.IB("SERIALIZED_HOT_HASH_DATA"))};
aE=function(a,b){a.B=b;g.Ra("yt.gcf.config.hotConfigGroup",a.B||null)};
Iqa=function(a,b){a.j=b;g.Ra("yt.gcf.config.coldConfigGroup",a.j||null)};
dE=function(a,b){a.coldHashData=b;g.Ra("yt.gcf.config.coldHashData",a.coldHashData||null)};
Pqa=function(a,b){a.configData=b;g.Ra("yt.gcf.config.coldConfigData",a.configData||null)};
cE=function(){return g.Sa("yt.gcf.config.hotConfigGroup")};
bE=function(){return g.Sa("yt.gcf.config.coldConfigGroup")};
Uqa=function(){return"INNERTUBE_API_KEY"in GB&&"INNERTUBE_API_VERSION"in GB};
g.gE=function(){return{innertubeApiKey:g.IB("INNERTUBE_API_KEY"),innertubeApiVersion:g.IB("INNERTUBE_API_VERSION"),zI:g.IB("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),GO:g.IB("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),lX:g.IB("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.IB("INNERTUBE_CONTEXT_CLIENT_VERSION"),IO:g.IB("INNERTUBE_CONTEXT_HL"),HO:g.IB("INNERTUBE_CONTEXT_GL"),mX:g.IB("INNERTUBE_HOST_OVERRIDE")||"",nX:!!g.IB("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),JO:!!g.IB("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.IB("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.ara=function(a){var b={client:{hl:a.IO,gl:a.HO,clientName:a.GO,clientVersion:a.innertubeContextClientVersion,configInfo:a.zI}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Qa.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=Gna();""!==c&&(b.client.experimentsToken=c);c=Hna();0<c.length&&(b.request={internalExperimentFlags:c});Vqa(a,void 0,b);Wqa(void 0,b);Xqa(void 0,b);Yqa(a,void 0,b);Zqa(void 0,b);g.KB("start_client_gcf")&&$qa(void 0,b);g.IB("DELEGATED_SESSION_ID")&&
!g.KB("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.IB("DELEGATED_SESSION_ID")});!g.KB("fill_delegate_context_in_gel_killswitch")&&(a=g.IB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Object;c=a.assign;for(var d=b.client,e={},f=g.u(Object.entries(SB(g.IB("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.u(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};
Vqa=function(a,b,c){a=a.GO;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=g.Ij(b,Rx,96)||new Rx;var d=npa();d=Object.keys(bra).indexOf(d);d=-1===d?null:d;null!==d&&O(c,3,d);Jj(b,Rx,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=npa())};
Wqa=function(a,b){var c=g.Sa("yt.embedded_player.embed_url");c&&(a?(b=g.Ij(a,Wx,7)||new Wx,N(b,4,c),Jj(a,Wx,7,b)):b&&(b.thirdParty={embedUrl:c}))};
Xqa=function(a,b){var c;if(g.KB("web_log_memory_total_kbytes")&&(null==(c=g.Qa.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.Qa.navigator)?void 0:d.deviceMemory;a?fj(a,95,ui(1E6*c)):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
Yqa=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=g.Ij(b,Nx,62))?d:new Nx;N(c,6,a.appInstallData);Jj(b,Nx,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Zqa=function(a,b){var c=xpa();c&&(a?O(a,61,cra[c]):b&&(b.client.connectionType=c));g.KB("web_log_effective_connection_type")&&(c=zpa())&&(a?O(a,94,dra[c]):b&&(b.client.effectiveConnectionType=c))};
era=function(a,b,c){c=void 0===c?{}:c;var d={};g.IB("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.IB("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.IB("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.PU||g.IB("AUTHORIZATION");b||(a?b="Bearer "+g.Sa("gapi.auth.getToken")().access_token:(a=lpa().qD(hE),g.KB("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
$qa=function(a,b){var c=Tqa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(d&&e&&c)if(a){var f;b=null!=(f=g.Ij(a,Nx,62))?f:new Nx;N(b,1,d);N(b,3,e);b.Gr(c);Jj(a,Nx,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.coldConfigData=d,b.client.configInfo.coldHashData=e,b.client.configInfo.hotHashData=c)}};
iE=function(a,b){this.version=a;this.args=b};
jE=function(a,b){this.topic=a;this.j=b};
kE=function(a,b){var c=fra();c&&c.publish.call(c,a.toString(),a,b)};
hra=function(a,b){var c=fra();if(!c)return 0;var d=c.subscribe(a.toString(),function(e,f){var h=g.Sa("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(lE[d])try{if(f&&a instanceof jE&&a!=e)try{var l=a.j,m=f;if(!m.args||!m.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!l.Eu){var n=new l;l.Eu=n.version}var p=l.Eu}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l,
g.Kb(m.args))}catch(q){throw q.message="yt.pubsub2.Data.deserialize(): "+q.message,q;}}catch(q){throw q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+q.message,q;}b.call(window,f)}catch(q){g.NB(q)}},gra[a.toString()]?g.mD()?g.wu.Si(h):g.aC(h,0):h())});
lE[d]=!0;mE[a.toString()]||(mE[a.toString()]=[]);mE[a.toString()].push(d);return d};
jra=function(a,b){var c=hra(a,function(d){b.apply(void 0,arguments);ira(c)});
return c};
ira=function(a){var b=fra();b&&("number"===typeof a&&(a=[a]),g.Xb(a,function(c){b.unsubscribeByKey(c);delete lE[c]}))};
fra=function(){return g.Sa("ytPubsub2Pubsub2Instance")};
kra=function(a,b,c){c=void 0===c?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&kE("meta_logging_csi_event",{timerName:a,Okb:b})};
mra=function(){lra||(lra=ema(g.IB("WORKER_SERIALIZATION_URL")));return lra||void 0};
nE=function(){var a=mra();nra||void 0===a||(nra=new Worker(g.Sd(a),void 0));return nra};
ora=function(){return"function"===typeof Worker&&mra()?!0:!1};
rra=function(){if(ora()&&!pra){var a=function(c){c=c.data;if("gzippedGelBatch"===c.op){var d=oE.get(c.key);d&&(qra(c.gzippedBatch,d.latencyPayload,d.url,d.options,d.sendFn),oE.delete(c.key))}},b=nE();
b&&(b.addEventListener("message",a),b.onerror=function(){oE.clear()},pra=!0)}};
qE=function(a,b,c,d,e){e=void 0===e?!1:e;var f={startTime:(0,g.FD)(),ticks:{},infos:{}};if(pE)try{var h=sra(b);if(null!=h&&(h>tra||h<ura))d(a,c);else{if(g.KB("gzip_gel_with_worker")&&(g.KB("initial_gzip_use_main_thread")&&!vra||!g.KB("initial_gzip_use_main_thread"))){pra||rra();var l=nE();if(l&&!e){oE.set(wra,{latencyPayload:f,url:a,options:c,sendFn:d});l.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:wra});wra++;return}}var m=Yla(xra(b));qra(m,f,a,c,d)}}catch(n){PB(n),d(a,c)}else d(a,c)};
qra=function(a,b,c,d,e){vra=!1;var f=(0,g.FD)();b.ticks.gelc=f;rE++;g.KB("disable_compression_due_to_performance_degredation")&&f-b.startTime>=yra&&(sE++,g.KB("abandon_compression_after_N_slow_zips")?rE===g.LB("compression_disable_point")&&sE>zra&&(pE=!1):pE=!1);Ara(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)};
Bra=function(a){var b=void 0===b?!1:b;var c=void 0===c?!1:c;var d=(0,g.FD)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Sa("yt.logging.gzipForFetch",!1):!0;if(pE&&f){if(!a.body)return a;try{var h=c?a.body:"string"===typeof a.body?a.body:JSON.stringify(a.body);f=h;if(!c&&"string"===typeof h){var l=sra(h);if(null!=l&&(l>tra||l<ura))return a;c=b?{level:1}:void 0;f=Yla(xra(h),c);var m=(0,g.FD)();e.ticks.gelc=m;if(b){rE++;if((g.KB("disable_compression_due_to_performance_degredation")||g.KB("disable_compression_due_to_performance_degradation_lr"))&&
m-d>=yra)if(sE++,g.KB("abandon_compression_after_N_slow_zips")||g.KB("abandon_compression_after_N_slow_zips_lr")){b=sE/rE;var n=zra/g.LB("compression_disable_point");0<rE&&0===rE%g.LB("compression_disable_point")&&b>=n&&(pE=!1)}else pE=!1;Ara(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return PB(p),a}}else return a};
sra=function(a){try{return(new Blob(a.split(""))).size}catch(b){return PB(b),null}};
Ara=function(a){g.KB("gel_compression_csi_killswitch")||!g.KB("log_gel_compression_latency")&&!g.KB("log_gel_compression_latency_lr")||kra("gel_compression",a,{sampleRate:.1})};
uE=function(a){var b=this;this.UG=this.gg=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.Az=function(){};
this.now=Date.now;this.ZC=!1;this.Fd={xkb:function(p){b.Cf=p},
Rkb:function(){b.CB()},
L4:function(){b.GM()},
TD:function(p){return g.Ha(function(q){return g.z(q,b.TD(p),0)})},
kK:function(p,q){return b.kK(p,q)},
oK:function(){b.oK()}};
var c;this.J_=null!=(c=a.J_)?c:100;var d;this.WZ=null!=(d=a.WZ)?d:1;var e;this.PZ=null!=(e=a.PZ)?e:2592E6;var f;this.IZ=null!=(f=a.IZ)?f:12E4;var h;this.VZ=null!=(h=a.VZ)?h:5E3;var l;this.Cf=null!=(l=a.Cf)?l:void 0;this.yH=!!a.yH;var m;this.cH=null!=(m=a.cH)?m:.1;var n;this.VJ=null!=(n=a.VJ)?n:10;a.handleError&&(this.handleError=a.handleError);a.Az&&(this.Az=a.Az);a.ZC&&(this.ZC=a.ZC);a.UG&&(this.UG=a.UG);this.jb=a.jb;this.Mn=a.Mn;this.uh=a.uh;this.fh=a.fh;this.sendFn=a.sendFn;this.uQ=a.uQ;this.IP=
a.IP;tE(this)&&(!this.jb||this.jb("networkless_logging"))&&Cra(this)};
Cra=function(a){tE(a)&&!a.ZC&&(a.gg=!0,a.yH&&Math.random()<=a.cH&&a.uh.Q4(a.Cf),a.oK(),a.fh.Qh()&&a.CB(),a.fh.Ra(a.uQ,a.CB.bind(a)),a.fh.Ra(a.IP,a.GM.bind(a)))};
Fra=function(a,b){if(!tE(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m,n;return g.Ha(function(p){switch(p.j){case 1:h=Dra(f);(l=Era(f))&&a.jb&&a.jb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.jb&&a.jb("nwl_consider_error_code")&&h||a.jb&&!a.jb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.VJ)){p.Ka(2);break}if(!a.fh.tK){p.Ka(3);break}return g.z(p,a.fh.tK(),3);case 3:if(a.fh.Qh()){p.Ka(2);break}c(e,f);if(!a.jb||!a.jb("nwl_consider_error_code")||void 0===(null==
(m=b)?void 0:m.id)){p.Ka(6);break}return g.z(p,a.uh.dR(b.id,a.Cf,!1),6);case 6:return p.return();case 2:if(a.jb&&a.jb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.VJ)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.Ka(8);break}return b.sendCount<a.WZ?g.z(p,a.uh.dR(b.id,a.Cf,!0,l?!1:void 0),12):g.z(p,a.uh.ez(b.id,a.Cf),8);case 12:a.Mn.Si(function(){a.fh.Qh()&&a.CB()},a.VZ);
case 8:c(e,f),g.xa(p)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.Ha(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ka(2):g.z(l,a.uh.ez(b.id,a.Cf),2);a.fh.Bw&&a.jb&&a.jb("vss_network_hint")&&a.fh.Bw(!0);d(e,f);g.xa(l)})};
return b};
vE=function(a,b){a.F0&&!a.fh.Qh()?a.F0(b):a.handleError(b)};
tE=function(a){return!!a.Cf||a.UG};
Dra=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
Era=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)};
Gra=function(){if(wE)return wE();var a={};wE=g.ZD("LogsDatabaseV2",{vr:(a.LogsRequestsStore={Vm:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.GD(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.MD(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&HD(b,"sapisid");c(9)&&HD(b,"SWHealthLog")},
version:9});return wE()};
xE=function(a){return g.SD(Gra(),a)};
Ira=function(a,b){var c,d,e,f;return g.Ha(function(h){if(1==h.j)return c={startTime:(0,g.FD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,xE(b),2);if(3!=h.j)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.IB("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.KD(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.FD)();Hra(c);return h.return(f)})};
Jra=function(a,b){var c,d,e,f,h,l,m;return g.Ha(function(n){if(1==n.j)return c={startTime:(0,g.FD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(n,xE(b),2);if(3!=n.j)return d=n.B,e=g.IB("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.FD)()],l=IDBKeyRange.bound(f,h),m=void 0,g.z(n,g.ID(d,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(p){return g.PD(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.ticks.tc=(0,g.FD)();Hra(c);return n.return(m)})};
Kra=function(a,b){var c;return g.Ha(function(d){if(1==d.j)return g.z(d,xE(b),2);c=d.B;return d.return(g.ID(c,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.JD(f,h).then(function(){return h})})}))})};
Lra=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.Ha(function(f){if(1==f.j)return g.z(f,xE(b),2);e=f.B;return f.return(g.ID(e,["LogsRequestsStore"],{mode:"readwrite",Tb:!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.JD(l,m).then(function(){return m})):g.CD.resolve(void 0)})}))})};
Mra=function(a,b){var c;return g.Ha(function(d){if(1==d.j)return g.z(d,xE(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})};
Nra=function(a){var b,c;return g.Ha(function(d){if(1==d.j)return g.z(d,xE(a),2);b=d.B;c=(0,g.FD)()-2592E6;return g.z(d,g.ID(b,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(e){return g.ND(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Ora=function(){g.Ha(function(a){return g.z(a,yqa("LogsDatabaseV2"),0)})};
Hra=function(a){g.KB("nwl_csi_killswitch")||kra("networkless_performance",a,{sampleRate:1})};
Qra=function(a){return g.SD(Pra(),a)};
Rra=function(a){var b,c;g.Ha(function(d){if(1==d.j)return g.z(d,Qra(a),2);b=d.B;c=(0,g.FD)()-2592E6;return g.z(d,g.ID(b,["SWHealthLog"],{mode:"readwrite",Tb:!0},function(e){return g.ND(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Sra=function(a){var b;return g.Ha(function(c){if(1==c.j)return g.z(c,Qra(a),2);b=c.B;return g.z(c,b.clear("SWHealthLog"),0)})};
g.yE=function(a,b,c,d,e,f,h){e=void 0===e?"":e;f=void 0===f?!1:f;h=void 0===h?!1:h;if(a)if(c&&!g.sC()){if(a){a=g.Vd(g.Jn(a));if(a===g.be.toString()||a.startsWith("data"))a="";else{var l=void 0===l?{}:l;a instanceof g.ce?l=a:(a=String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),l.mkb&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;")),l.lkb&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>")),l.nkb&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>')),
l=g.ee(a));a=g.pe(g.Mm(g.de(l).toString()))}g.cc(a)||(l=Ze("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),ye(l).body.appendChild(l))}}else if(e)aoa(a,b,"POST",e,d);else if(g.IB("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)aoa(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Oka({url:a});if(m.C&&m.B||m.D){var n=Dl(g.Fl(5,a));var p=!(!n||!n.endsWith("/aclk")||"1"!==Ol(a,"ri"));break b}}catch(q){}p=!1}p?Tra(a)?(b&&b(),l=!0):l=!1:l=!1;l||Ura(a,b)}};
Tra=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Ura=function(a,b){var c=new Image,d=""+Vra++;Wra[d]=c;c.onload=c.onerror=function(){b&&Wra[d]&&b();delete Wra[d]};
c.src=a};
Xra=function(a){if("www.googleadservices.com"!==g.Gl(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"};
zE=function(){this.j=new Map;this.B=!1};
AE=function(){if(!zE.instance){var a=g.Sa("yt.networkRequestMonitor.instance")||new zE;g.Ra("yt.networkRequestMonitor.instance",a);zE.instance=a}return zE.instance};
BE=function(){Yra||(Yra=new oD("yt.offline"));return Yra};
Zra=function(a){if(g.KB("offline_error_handling")){var b=BE().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);BE().set("errors",b,2592E3,!0)}};
CE=function(){g.Dd.call(this);var a=this;this.B=!1;this.j=Tka();this.j.Ra("networkstatus-online",function(){if(a.B&&g.KB("offline_error_handling")){var b=BE().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.eD(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.NB(d)}BE().set("errors",{},2592E3,!0)}}})};
$ra=function(){if(!CE.instance){var a=g.Sa("yt.networkStatusManager.instance")||new CE;g.Ra("yt.networkStatusManager.instance",a);CE.instance=a}return CE.instance};
g.DE=function(a){a=void 0===a?{}:a;g.Dd.call(this);var b=this;this.j=this.D=0;this.B=$ra();var c=g.Sa("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){asa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){asa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
asa=function(a,b){a.rateLimit?a.j?(g.wu.Oj(a.D),a.D=g.wu.Si(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.FD)())},a.rateLimit-((0,g.FD)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.FD)()):a.dispatchEvent(b)};
EE=function(){var a=uE.call;bsa||(bsa=new g.DE({Jjb:!0,lib:!0}));a.call(uE,this,{uh:{Q4:Nra,ez:Mra,nW:Jra,N7:Kra,dR:Lra,set:Ira},fh:bsa,handleError:function(b,c,d){var e,f=null==d?void 0:null==(e=d.error)?void 0:e.code;if(400===f||415===f){var h;PB(new g.eD(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.NB(b)},
Az:PB,sendFn:csa,now:g.FD,F0:Zra,Mn:g.lD(),uQ:"publicytnetworkstatus-online",IP:"publicytnetworkstatus-offline",yH:!0,cH:.1,VJ:g.LB("potential_esf_error_limit",10),jb:g.KB,ZC:!(g.gD()&&"www.youtube-nocookie.com"!==g.Gl(document.location.toString()))});this.B=new g.En;g.KB("networkless_immediately_drop_all_requests")&&Ora();zqa("LogsDatabaseV2")};
FE=function(){var a=g.Sa("yt.networklessRequestController.instance");a||(a=new EE,g.Ra("yt.networklessRequestController.instance",a),g.KB("networkless_logging")&&g.XD().then(function(b){a.Cf=b;Cra(a);a.B.resolve();a.yH&&Math.random()<=a.cH&&a.Cf&&Rra(a.Cf);g.KB("networkless_immediately_drop_sw_health_store")&&dsa(a)}));
return a};
dsa=function(a){var b;g.Ha(function(c){if(!a.Cf)throw b=g.AD("clearSWHealthLogsDb"),b;return c.return(Sra(a.Cf).catch(function(d){a.handleError(d)}))})};
csa=function(a,b,c,d){d=void 0===d?!1:d;b=g.KB("web_fp_via_jspb")?Object.assign({},b):b;g.KB("use_cfr_monitor")&&esa(a,b);if(g.KB("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.FD)())));else{var e;if(null==(e=b.postParams)?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.FD)())}c&&0===Object.keys(b).length?g.yE(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),qE(a,b.postBody,b,g.fC,
d)):qE(a,JSON.stringify(b.postParams),b,ooa,d):g.fC(a,b)};
esa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){AE().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){AE().requestComplete(a,!0);d(e,f)}};
g.GE=function(a){this.config_=null;a?this.config_=a:Uqa()&&(this.config_=g.gE())};
g.HE=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?FE().writeThenSend(n,f):FE().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;"string"!==typeof r&&(r=JSON.stringify(f.postBody));qE(n,r,f,g.fC,q)}else qE(n,JSON.stringify(f.postParams),f,ooa,q)}else g.KB("web_all_payloads_via_jspb")?g.fC(n,f):ooa(n,f)}catch(t){if("InvalidAccessError"==
t.name)PB(Error("An extension is blocking network request."));else throw t;}}
!g.IB("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&PB(new g.eD("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.eD("innertube xhrclient not ready",b,c,d),g.NB(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_.mX;h&&(c=h);var l=a.config_.nX||!1;h=era(l,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&l&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;l={alt:"json"};var m=a.config_.JO&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=UB(""+c+b,l);g.Sa("ytNetworklessLoggingInitializationOptions")&&
fsa.isNwlInitialized?rqa().then(function(p){e(p)}):e(!1)};
g.ME=function(a,b,c){var d=g.IE();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){JE[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.KE[a]?h():g.aC(h,0)}catch(l){g.NB(l)}},c);
JE[e]=!0;LE[a]||(LE[a]=[]);LE[a].push(e);return e}return 0};
gsa=function(a){var b=g.ME("LOGGED_IN",function(c){a.apply(void 0,arguments);g.NE(b)})};
g.NE=function(a){var b=g.IE();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Xb(a,function(c){b.unsubscribeByKey(c);delete JE[c]}))};
g.OE=function(a,b){var c=g.IE();return c?c.publish.apply(c,arguments):!1};
isa=function(a){var b=g.IE();if(b)if(b.clear(a),a)hsa(a);else for(var c in LE)hsa(c)};
g.IE=function(){return g.Qa.ytPubsubPubsubInstance};
hsa=function(a){LE[a]&&(a=LE[a],g.Xb(a,function(b){JE[b]&&delete JE[b]}),a.length=0)};
g.msa=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(jsa,""),c=c.replace(ksa,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else lsa(a,b,c)};
lsa=function(a,b,c){c=void 0===c?null:c;var d=nsa(a),e=document.getElementById(d),f=e&&Toa(e),h=e&&!f;f?b&&b():(b&&(f=g.ME(d,b),b=""+g.db(b),osa[b]=f),h||(e=psa(a,d,function(){if(!Toa(e)){var l=e;l&&(l.dataset?l.dataset[Soa()]="true":kga([new Gn(qsa[0].toLowerCase(),rsa)],l,"data-loaded","true".toString()));g.OE(d);g.aC(g.fb(isa,d),0)}},c)))};
psa=function(a,b,c,d){d=void 0===d?null:d;var e=g.$e("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.Rn(e,g.jw(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
nsa=function(a){var b=document.createElement("a");g.Mn(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+ve(a)};
QE=function(a){var b=g.Ia.apply(1,arguments);if(!PE(a)||b.some(function(d){return!PE(d)}))throw Error("Only objects may be merged.");
b=g.u(b);for(var c=b.next();!c.done;c=b.next())ssa(a,c.value);return a};
ssa=function(a,b){for(var c in b)if(PE(b[c])){if(c in a&&!PE(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});ssa(a[c],b[c])}else if(tsa(b[c])){if(c in a&&!tsa(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);usa(a[c],b[c])}else a[c]=b[c];return a};
usa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,PE(c)?a.push(ssa({},c)):tsa(c)?a.push(usa([],c)):a.push(c);return a};
PE=function(a){return"object"===typeof a&&!Array.isArray(a)};
tsa=function(a){return"object"===typeof a&&Array.isArray(a)};
RE=function(a){g.H.call(this);this.B=a};
SE=function(a){RE.call(this,!0);this.j=a};
vsa=function(a,b){g.H.call(this);var c=this;this.C=[];this.N=!1;this.B=0;this.G=this.K=this.D=!1;this.ma=null;var d=(0,g.eb)(a,b);this.j=new g.Eu(function(){return d(c.ma)},300);
g.J(this,this.j);this.W=this.Z=Infinity};
wsa=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.C.includes(d.identifier))return!0}return!1};
xsa=function(a){for(var b=Array(a),c=0;c<a;c++){for(var d=Date.now(),e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(TE)for(c=1,d=0;d<TE.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^TE.charCodeAt(d),c++;return b};
UE=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(e){}return xsa(a)};
g.VE=function(a){a=UE(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.ysa=function(){return g.pr(UE(16),function(a){return(a&15).toString(16)}).join("")};
zsa=function(){var a={},b=void 0===a.raa?!1:a.raa;a=void 0===a.A5?!0:a.A5;if(null==g.Sa("_lact",window)){var c=parseInt(g.IB("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ra("_lact",c,window);g.Ra("_fact",c,window);-1==c&&WE();g.OC(document,"keydown",WE);g.OC(document,"keyup",WE);g.OC(document,"mousedown",WE);g.OC(document,"mouseup",WE);b?g.OC(window,"touchmove",function(){XE("touchmove",200)},{passive:!0}):(g.OC(window,"resize",function(){XE("resize",200)}),a&&g.OC(window,"scroll",function(){XE("scroll",
200)}));
new RC(function(){XE("mouse",100)});
g.OC(document,"touchstart",WE,{passive:!0});g.OC(document,"touchend",WE,{passive:!0})}};
XE=function(a,b){Asa[a]||(Asa[a]=!0,g.wu.Si(function(){WE();Asa[a]=!1},b))};
WE=function(){null==g.Sa("_lact",window)&&(zsa(),g.Sa("_lact",window));var a=Date.now();g.Ra("_lact",a,window);-1==g.Sa("_fact",window)&&g.Ra("_fact",a,window);(a=g.Sa("ytglobal.ytUtilActivityCallback_"))&&a()};
YE=function(){var a=g.Sa("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
ZE=function(a){this.name=a};
$E=function(a){this.key=a};
Bsa=function(){var a=this;this.j=new Map;this.C=new Map;this.B=new Map;this.Fd={Xib:function(){return new Map(a.j)}}};
Csa=function(a,b){a.j.set(b.bF,b);var c=a.C.get(b.bF);c&&c.fR(a.resolve(b.bF))};
bF=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.B.has(b))return a.B.get(b);if(!a.j.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.j.get(b);c.push(b);if(void 0!==d.lS)var e=d.lS;else if(d.sca)e=d[aF]?Dsa(a,d[aF],c):[],e=d.sca.apply(d,g.oa(e));else if(d.t0){e=d.t0;var f=e[aF]?Dsa(a,e[aF],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.oa(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Kkb||a.B.set(b,e);
return e};
Dsa=function(a,b,c){return b?b.map(function(d){return d instanceof $E?bF(a,d.key,c,!0):bF(a,d,c)}):[]};
cF=function(){Esa||(Esa=new Bsa);return Esa};
Fsa=function(){var a,b;return"h5vcc"in dF&&(null==(a=dF.h5vcc.traceEvent)?0:a.traceBegin)&&(null==(b=dF.h5vcc.traceEvent)?0:b.traceEnd)?1:"performance"in dF&&dF.performance.mark&&dF.performance.measure?2:0};
Gsa=function(a){var b=Fsa();switch(b){case 1:dF.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:dF.performance.mark(a+"-start");break;case 0:break;default:Nn(b,"unknown trace type")}};
Hsa=function(a){var b=Fsa();switch(b){case 1:dF.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";dF.performance.mark(c);dF.performance.measure(a,b,c);break;case 0:break;default:Nn(b,"unknown trace type")}};
Jsa=function(a){var b=this;var c=void 0===c?0:c;var d=void 0===d?g.lD():d;this.C=c;this.scheduler=d;this.B=new g.En;this.j=a;for(a={Rv:0};a.Rv<this.j.length;a={OJ:void 0,Rv:a.Rv},a.Rv++)a.OJ=this.j[a.Rv],c=function(e){return function(){e.OJ.ZO();b.j[e.Rv].YJ=!0;b.j.every(function(f){return!0===f.YJ})&&b.B.resolve()}}(a),d=iD(c,Isa(this,a.OJ)),this.j[a.Rv]=Object.assign({},a.OJ,{ZO:c,
jobId:d})};
Ksa=function(a){var b=Array.from(a.j.keys()).sort(function(d,e){return Isa(a,a.j[e])-Isa(a,a.j[d])});
b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=a.j[c.value],void 0===c.jobId||c.YJ||(a.scheduler.Oj(c.jobId),iD(c.ZO,10))};
Isa=function(a,b){var c;return null!=(c=b.priority)?c:a.C};
fF=function(a){this.state=a;this.plugins=[];this.C=void 0;this.D={};eF&&Gsa(this.state)};
Msa=function(a,b){var c=b.filter(function(e){return 10===Lsa(a,e)}),d=b.filter(function(e){return 10!==Lsa(a,e)});
return a.D.Gkb?function(){var e=g.Ia.apply(0,arguments);return g.Ha(function(f){if(1==f.j)return g.z(f,a.Vaa.apply(a,[c].concat(g.oa(e))),2);a.k_.apply(a,[d].concat(g.oa(e)));g.xa(f)})}:function(){var e=g.Ia.apply(0,arguments);
a.Waa.apply(a,[c].concat(g.oa(e)));a.k_.apply(a,[d].concat(g.oa(e)))}};
Lsa=function(a,b){var c,d;return null!=(d=null!=(c=a.C)?c:b.priority)?d:0};
Nsa=function(a){eF&&a&&Gsa(a)};
gF=function(a){eF&&a&&Hsa(a)};
Psa=function(a,b,c){Osa&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
hF=function(a){fF.call(this,void 0===a?"none":a);this.j=null;this.C=10;this.transitions=[{from:"none",to:"application_navigating",action:this.G},{from:"application_navigating",to:"none",action:this.K},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]};
Rsa=function(){Qsa||(Qsa=new hF);return Qsa};
iF=function(){var a=this;this.store={};this.j=0;this.B={};this.Fd={Lib:function(){return a.j}}};
Tsa=function(a,b){var c=Ssa(b);if(a.B[c])return a.B[c];var d=Object.keys(a.store)||[];if(1>=d.length&&Ssa(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(jF(b.auth,h[0])){var l=b.isJspb;jF(void 0===l?"undefined":l?"true":"false",h[1])&&jF(b.cttAuthInfo,h[2])&&(l=b.tier,l=void 0===l?"undefined":JSON.stringify(l),jF(l,h[3])&&e.push(d[f]))}}return a.B[c]=e};
jF=function(a,b){return void 0===a||"undefined"===a?!0:a===b};
Ssa=function(a){return[void 0===a.auth?"undefined":a.auth,void 0===a.isJspb?"undefined":a.isJspb,void 0===a.cttAuthInfo?"undefined":a.cttAuthInfo,void 0===a.tier?"undefined":a.tier].join("/")};
kF=function(){this.D=this.j=this.B=0;this.C=!1};
lF=function(){var a=g.Sa("yt.logging.ims");a||(a=new iF,g.Ra("yt.logging.ims",a));return a};
Wsa=function(){if(ora()&&!Usa){var a=function(c){c=c.data;if("serializedGelBatch"===c.op){var d=mF.get(c.key);d&&(Vsa(c.serializedBatch,d.client,d.resolve,d.networklessOptions,d.isIsolated,d.useVSSEndpoint,d.dangerousLogToVisitorSession,d.requestsOutstanding),mF.delete(c.key))}},b=nE();
b&&(b.addEventListener("message",a),b.onerror=function(){mF.clear()});
Usa=!0}};
bta=function(a,b){if("log_event"===a.endpoint){nF(a);var c=oF(a),d=Xsa(a.payload)||"",e=Ysa(d),f=200;if(e){if(!1===e.enabled&&!g.KB("web_payload_policy_disabled_killswitch"))return;f=Zsa(e.tier);if(400===f){$sa(a,b);return}}pF[c]=!0;e={cttAuthInfo:c,isJspb:!1,tier:f};lF().storePayload(e,a.payload);ata(b,c,!1,e,qF(d))}};
dta=function(a,b,c){if("log_event"===b.endpoint){nF(void 0,b);var d=oF(b,!0),e=Ysa(a),f=200;if(e){if(!1===e.enabled&&!g.KB("web_payload_policy_disabled_killswitch"))return;f=Zsa(e.tier);if(400===f){cta(a,b,c);return}}pF[d]=!0;e={cttAuthInfo:d,isJspb:!0,tier:f};lF().storePayload(e,b.payload.toJSON());ata(c,d,!0,e,qF(a))}};
ata=function(a,b,c,d,e){function f(){eta({writeThenSend:!0},g.KB("flush_only_full_queue")?b:void 0,c,d.tier)}
c=void 0===c?!1:c;e=void 0===e?!1:e;a&&(tF=new a);a=g.LB("tvhtml5_logging_max_batch_ads_fork")||g.LB("web_logging_max_batch")||100;var h=(0,g.FD)(),l=fta(c,d.tier),m=l.D;e&&(l.C=!0);e=0;d&&(e=lF().getSequenceCount(d));1E3<=e?f():e>=a?gta||(gta=hta(function(){f();gta=void 0},0)):10<=h-m&&(ita(c,d.tier),l.D=h)};
$sa=function(a,b){if("log_event"===a.endpoint){nF(a);var c=oF(a),d=new Map;d.set(c,[a.payload]);var e=Xsa(a.payload)||"";b&&(tF=new b);return new g.Kf(function(f,h){tF&&tF.isReady()?jta(d,tF,f,h,{bypassNetworkless:!0},!0,qF(e)):f()})}};
cta=function(a,b,c){if("log_event"===b.endpoint){nF(void 0,b);var d=oF(b,!0),e=new Map;e.set(d,[b.payload.toJSON()]);c&&(tF=new c);return new g.Kf(function(f){tF&&tF.isReady()?kta(e,tF,f,{bypassNetworkless:!0},!0,qF(a)):f()})}};
oF=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 FB;c.videoId?d.setVideoId(c.videoId):c.playlistId&&Ej(d,2,uF,zi(c.playlistId));vF[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),wF[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
eta=function(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.Kf(function(e,f){var h=fta(c,d),l=h.C;h.C=!1;lta(h.B);lta(h.j);h.j=0;tF&&tF.isReady()?void 0===d&&g.KB("enable_web_tiered_gel")?mta(e,f,a,b,c,300,l):mta(e,f,a,b,c,d,l):(ita(c,d),e())})};
mta=function(a,b,c,d,e,f,h){var l=tF;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;h=void 0===h?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=g.KB("enable_web_tiered_gel")?lF().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):lF().extractMatchingEntries(q),m.set(d,b),kta(m,l,a,c,!1,h)):(m=g.KB("enable_web_tiered_gel")?lF().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):lF().extractMatchingEntries(q),n.set(d,m),
jta(n,l,a,b,c,!1,h));else if(e){b=g.u(Object.keys(pF));for(d=b.next();!d.done;d=b.next())n=d.value,f=g.KB("enable_web_tiered_gel")?lF().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):lF().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0<f.length&&m.set(n,f),(g.KB("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.KB("web_fp_via_jspb_and_json"))&&delete pF[n];kta(m,l,a,c,!1,h)}else{m=g.u(Object.keys(pF));for(d=m.next();!d.done;d=m.next())p=d.value,q=g.KB("enable_web_tiered_gel")?lF().smartExtractMatchingEntries({keys:[{isJspb:!1,
cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):lF().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),0<q.length&&n.set(p,q),(g.KB("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.KB("web_fp_via_jspb_and_json"))&&delete pF[p];jta(n,l,a,b,c,!1,h)}};
ita=function(a,b){function c(){eta({writeThenSend:!0},void 0,a,b)}
a=void 0===a?!1:a;b=void 0===b?200:b;var d=fta(a,b),e=d===nta||d===ota?5E3:pta;g.KB("web_gel_timeout_cap")&&!d.j&&(e=hta(function(){c()},e),d.j=e);
lta(d.B);e=g.IB("LOGGING_BATCH_TIMEOUT",g.LB("web_gel_debounce_ms",1E4));g.KB("shorten_initial_gel_batch_timeout")&&xF&&(e=qta);e=hta(function(){0<g.LB("gel_min_batch_size")?lF().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=rta&&c():c()},e);
d.B=e};
jta=function(a,b,c,d,e,f,h){e=void 0===e?{}:e;var l=Math.round((0,g.FD)()),m=a.size,n=sta(h);a=g.u(a);var p=a.next();for(h={};!p.done;h={CP:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,oQ:void 0,TP:void 0},p=a.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.pd({context:g.ara(b.config_||g.gE())});if(!g.Ya(q)&&!g.KB("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=wF[p])&&tta(h.batchRequest,p,q);delete wF[p];h.dangerousLogToVisitorSession=
"visitorOnlyApprovedKey"===p;uta(h.batchRequest,l,h.dangerousLogToVisitorSession);vta(e);h.oQ=function(r){g.KB("start_client_gcf")&&g.wu.Si(function(){return g.Ha(function(t){return g.z(t,wta(r),0)})});
m--;m||c()};
h.CP=0;h.TP=function(r){return function(){r.CP++;if(e.bypassNetworkless&&1===r.CP)try{g.HE(b,n,r.batchRequest,xta({writeThenSend:!0},r.dangerousLogToVisitorSession,r.oQ,r.TP,f)),xF=!1}catch(t){g.NB(t),d()}m--;m||c()}}(h);
try{g.HE(b,n,h.batchRequest,xta(e,h.dangerousLogToVisitorSession,h.oQ,h.TP,f)),xF=!1}catch(r){g.NB(r),d()}}};
kta=function(a,b,c,d,e,f){d=void 0===d?{}:d;var h=Math.round((0,g.FD)()),l={value:a.size},m=new Map([].concat(g.oa(a)));m=g.u(m);for(var n=m.next();!n.done;n=m.next()){var p=g.u(n.value).next().value,q=a.get(p);n=new Cna;var r=b.config_||g.gE(),t=new Zx,v=new g.Tx;N(v,1,r.IO);N(v,2,r.HO);O(v,16,r.lX);N(v,17,r.innertubeContextClientVersion);if(r.zI){var x=r.zI,B=new Nx;x.coldConfigData&&N(B,1,x.coldConfigData);x.appInstallData&&N(B,6,x.appInstallData);x.coldHashData&&N(B,3,x.coldHashData);x.hotHashData&&
B.Gr(x.hotHashData);Jj(v,Nx,62,B)}(x=g.Qa.devicePixelRatio)&&1!=x&&ak(v,65,x);x=Gna();""!==x&&N(v,54,x);x=Hna();if(0<x.length){B=new Vx;for(var F=0;F<x.length;F++){var G=new Ux;N(G,1,x[F].key);Ej(G,2,yta,zi(x[F].value));Mj(B,15,Ux,G)}Jj(t,Vx,5,B)}Vqa(r,v);Wqa(t);Xqa(v);Yqa(r,v);Zqa(v);g.KB("start_client_gcf")&&$qa(v);g.IB("DELEGATED_SESSION_ID")&&!g.KB("pageid_as_header_web")&&(r=new Yx,N(r,3,g.IB("DELEGATED_SESSION_ID")));!g.KB("fill_delegate_context_in_gel_killswitch")&&(x=g.IB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(B=g.Ij(t,Yx,3)||new Yx,r=t,x=N(B,18,x),Jj(r,Yx,3,x));r=v;x=g.u(Object.entries(SB(g.IB("DEVICE",""))));for(B=x.next();!B.done;B=x.next())F=g.u(B.value),B=F.next().value,F=F.next().value,"cbrand"===B?N(r,12,F):"cmodel"===B?N(r,13,F):"cbr"===B?N(r,87,F):"cbrver"===B?N(r,88,F):"cos"===B?N(r,18,F):"cosver"===B?N(r,19,F):"cplatform"===B&&O(r,42,opa(F));t.ex(v);Jj(n,Zx,1,t);if(v=vF[p])a:{if(v.Ce())t=1;else if(v.getPlaylistId())t=2;else break a;Jj(n,FB,4,v);v=g.Ij(n,Zx,1)||new Zx;r=g.Ij(v,Yx,3)||new Yx;
x=new Xx;x.setToken(p);O(x,1,t);Mj(r,12,Xx,x);Jj(v,Yx,3,r)}delete vF[p];p="visitorOnlyApprovedKey"===p;zta()||Yj(n,2,h);!p&&(t=g.IB("EVENT_ID"))&&(v=Ata(),r=new Bna,N(r,1,t),Yj(r,2,v),Jj(n,Bna,5,r));vta(d);if(g.KB("jspb_serialize_with_worker")&&(t=nE())&&d.writeThenSend){mF.set(Bta,{client:b,resolve:c,networklessOptions:d,isIsolated:e,useVSSEndpoint:f,dangerousLogToVisitorSession:p,requestsOutstanding:l});t.postMessage({op:"gelBatchToSerialize",batchRequest:n.toJSON(),clientEvents:q,key:Bta});Bta++;
break}if(q){t=[];for(v=0;v<q.length;v++)try{t.push(new EB(q[v]))}catch(I){g.NB(new g.eD("Transport failed to deserialize "+String(q[v])))}q=t}else q=[];q=g.u(q);for(t=q.next();!t.done;t=q.next())Mj(n,3,EB,t.value);q={startTime:(0,g.FD)(),ticks:{},infos:{}};n=n.Hj();q.ticks.geljspc=(0,g.FD)();g.KB("log_jspb_serialize_latency")&&kra("gel_jspb_serialize",q,{sampleRate:.1});Vsa(n,b,c,d,e,f,p,l)}};
Vsa=function(a,b,c,d,e,f,h,l){d=void 0===d?{}:d;l=void 0===l?{value:0}:l;f=sta(f);d=xta(d,h,function(m){g.KB("start_client_gcf")&&g.wu.Si(function(){return g.Ha(function(n){return g.z(n,wta(m),0)})});
l.value--;l.value||c()},function(){l.value--;
l.value||c()},e);
d.headers["Content-Type"]="application/json+protobuf";d.postBodyFormat="JSPB";d.postBody=a;g.HE(b,f,"",d);xF=!1};
vta=function(a){g.KB("always_send_and_write")&&(a.writeThenSend=!1)};
xta=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,Zhb:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.KB("compress_gel")||g.KB("compress_gel_lr")};zta()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.FD)())));return a};
uta=function(a,b,c){zta()||(a.requestTimeMs=String(b));g.KB("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.IB("EVENT_ID"))&&(c=Ata(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Ata=function(){var a=g.IB("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Cta/2));a++;a>Cta&&(a=1);HB("BATCH_CLIENT_COUNTER",a);return a};
tta=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}]};
nF=function(a,b){if(!g.Sa("yt.logging.transport.enableScrapingForTest")){var c=Fna("il_payload_scraping");if("enable_il_payload_scraping"===(void 0!==c?String(c):""))Dta=[],g.Ra("yt.logging.transport.enableScrapingForTest",!0),g.Ra("yt.logging.transport.scrapedPayloadsForTesting",Dta),g.Ra("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Ra("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
g.Ra("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.Sa("yt.logging.transport.scrapedPayloadsForTesting");var d=g.Sa("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Sa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.Sa("yt.logging.transport.scrapeClientEvent");if(d&&1<=d.length)for(var e=0;e<d.length;e++)if(a&&a.payload[d[e]])if(b)c.push(a.payload);else{var f=void 0;c.push((null==(f=a)?void 0:f.payload)[d[e]])}g.Ra("yt.logging.transport.scrapedPayloadsForTesting",
c)};
zta=function(){return g.KB("use_request_time_ms_header")||g.KB("lr_use_request_time_ms_header")};
hta=function(a,b){return!1===g.KB("embeds_transport_use_scheduler")?g.aC(a,b):g.KB("logging_avoid_blocking_during_navigation")||g.KB("lr_logging_avoid_blocking_during_navigation")?g.jD(0,function(){if("none"===Rsa().currentState)a();else{var c={};Rsa().install((c.none={callback:a},c))}},b):iD(a,0,b)};
lta=function(a){g.KB("transport_use_scheduler")?g.wu.Oj(a):g.cC(a)};
wta=function(a){var b,c,d,e,f,h,l,m,n,p;return g.Ha(function(q){return 1==q.j?(d=null==(b=a)?void 0:null==(c=b.responseContext)?void 0:c.globalConfigGroup,e=g.R(d,Eta),h=null==(f=d)?void 0:f.hotHashData,l=g.R(d,Fta),n=null==(m=d)?void 0:m.coldHashData,(p=cF().resolve(new $E(eE)))?h?e?g.z(q,Rqa(p,h,e),2):g.z(q,Rqa(p,h),2):q.Ka(2):q.return()):n?l?g.z(q,Sqa(p,n,l),0):g.z(q,Sqa(p,n),0):q.Ka(0)})};
fta=function(a,b){b=void 0===b?200:b;return a?300===b?nta:Gta:300===b?ota:Hta};
Ysa=function(a){if(g.KB("enable_web_tiered_gel")){a=Ita[a||""];var b,c,d,e=null==cF().resolve(new $E(eE))?void 0:null==(b=fE())?void 0:null==(c=b.loggingHotConfig)?void 0:null==(d=c.eventLoggingConfig)?void 0:d.payloadPolicies;if(e)for(b=0;b<e.length;b++)if(e[b].payloadNumber===a)return e[b]}};
Xsa=function(a){a=Object.keys(a);a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,Ita[b])return b};
Zsa=function(a){switch(a){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
qF=function(a){return"gelDebuggingEvent"===a};
sta=function(a){return(void 0===a?0:a)&&g.KB("vss_through_gel_video_stats")?"video_stats":"log_event"};
zF=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.FD)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=YE();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!g.KB("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:Jta(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete yF[d.sequenceGroup]);(d.sendIsolatedPayload?$sa:bta)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
c)};
Kta=function(a){eta(void 0,void 0,void 0===a?!1:a)};
Jta=function(a){yF[a]=a in yF?yF[a]+1:0;return yF[a]};
Ota=function(a,b){Lta||(Lta=!0);Mta=a;AF=b;Nta=!1};
g.qD=function(a,b,c){c=void 0===c?{}:c;var d=Pta;g.IB("ytLoggingEventsDefaultDisabled",!1)&&Pta===g.GE&&(d=null);if(g.KB("web_all_payloads_via_jspb"))if(c.timestamp||(c.lact=YE(),c.timestamp=(0,g.FD)()),Mta&&AF){var e=Mta[a];if(e){e=e(Qta(b));var f=e[1];(e[0]||!g.KB("jspb_translator_return_completion"))&&f&&AF[a]?(AF[a](f,c,d||void 0),Rta()):(PB(new g.eD("Unable to call logFn for payload",a)),zF(a,b,d,c))}else{if(!g.KB("web_translate_player_logs"))PB(new g.eD("Unable to translate payload to JSPB",
a));else if(!1===Nta){var h=!1;e=jra("app_received_payload",function(){h=!0});
kE("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c});if(h)return;ira(e);jra("app_has_initialized",function(){kE("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c})})}zF(a,b,d,c)}}else Sta.push({payloadName:a,
payload:b,options:c});else zF(a,b,d,c)};
Rta=function(a){a=void 0===a?!1:a;var b=Sta;Sta=[];if(b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a?zF(c.payloadName,c.payload,Pta,c.options):g.qD(c.payloadName,c.payload,c.options)}};
Qta=function(a){if(!g.KB("jspb_convert_payloads_to_lower_camel")||!g.$a(a))return a;for(var b=Object.keys(a),c=0;c<b.length;c++){var d=Tta(b[c]);b[c]!==d&&(a[d]=a[b[c]],delete a[b[c]]);if("object"===typeof a[d]&&!g.Ya(a[d]))a[d]=Qta(a[d]);else if(g.Ya(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(Qta(e[h]));a[d]=f}}return a};
Tta=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
BF=function(a,b,c,d){d=void 0===d?{}:d;var e=Math.round(d.timestamp||(0,g.FD)());Yj(b,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new Ana;if(d.lact)Yj(e,1,isFinite(d.lact)?d.lact:-1);else if(d.timestamp)Yj(e,1,-1);else{var f=YE();Yj(e,1,isFinite(f)?f:-1)}if(d.sequenceGroup&&!g.KB("web_gel_sequence_info_killswitch")){f=d.sequenceGroup;var h=Jta(f),l=new zna;Yj(l,2,h);N(l,1,f);Jj(e,zna,3,l);d.endOfSequence&&delete Uta[d.sequenceGroup]}Jj(b,Ana,33,e);(d.sendIsolatedPayload?cta:dta)(a,{endpoint:"log_event",payload:b,
cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},c)};
CF=function(a,b,c){c=void 0===c?{}:c;var d=!1;g.IB("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);BF(a,b,d?null:g.GE,c)};
Vta=function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,nB,72,DF,a);c?BF("visualElementShown",d,c,b):CF("visualElementShown",d,b)};
Wta=function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,mB,73,DF,a);c?BF("visualElementHidden",d,c,b):CF("visualElementHidden",d,b)};
Xta=function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,lB,78,DF,a);c?BF("visualElementGestured",d,c,b):CF("visualElementGestured",d,b)};
Yta=function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,oB,208,DF,a);c?BF("visualElementStateChanged",d,c,b):CF("visualElementStateChanged",d,b)};
Zta=function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,jB,156,DF,a);c?BF("screenCreated",d,c,b):CF("screenCreated",d,b)};
$ta=function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,hB,202,DF,a);c?BF("playbackAssociated",d,c,b):CF("playbackAssociated",d,b)};
aua=function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,kB,215,DF,a);c?BF("visualElementAttached",d,c,b):CF("visualElementAttached",d,b)};
EF=function(a){this.j=a};
g.FF=function(a){return new EF({trackingParams:a})};
cua=function(a){var b=bua++;return new EF({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
dua=function(a){return g.IB("client-screen-nonce-store",{})[void 0===a?0:a]};
eua=function(a,b){b=void 0===b?0:b;var c=g.IB("client-screen-nonce-store");c||(c={},HB("client-screen-nonce-store",c));c[b]=a};
fua=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
gua=function(a){return g.IB(fua(void 0===a?0:a))};
g.GF=function(a){return(a=gua(void 0===a?0:a))?new EF({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
hua=function(){var a=g.IB("csn-to-ctt-auth-info");a||(a={},HB("csn-to-ctt-auth-info",a));return a};
iua=function(){return Object.values(g.IB("client-screen-nonce-store",{})).filter(function(a){return void 0!==a})};
g.HF=function(a){a=dua(void 0===a?0:a);if(!a&&!g.IB("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
kua=function(a){for(var b=g.u(Object.values(jua)),c=b.next();!c.done;c=b.next())if(g.HF(c.value)===a)return!0;return!1};
lua=function(a,b,c){var d=hua();(c=g.HF(c))&&delete d[c];b&&(d[a]=b)};
IF=function(a){return hua()[a]};
nua=function(a,b,c,d){c=void 0===c?0:c;if(a!==dua(c)||b!==g.IB(fua(c)))if(lua(a,d,c),eua(a,c),HB(fua(c),b),b=function(){setTimeout(function(){if(a)if(g.KB("web_time_via_jspb")){var e=new $ma;N(e,1,mua);N(e,2,a);var f=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(f,$ma,111,DF,e);CF("foregroundHeartbeatScreenAssociated",f)}else g.qD("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:mua,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
pua=function(a,b){var c=void 0===c?!0:c;var d=g.IB("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Gl(window.location.href);e&&d.push(e);e=g.Gl(a);if(g.Fb(d,e)||!e&&bc(a,"/"))if(d=document.createElement("a"),g.Mn(d,a),a=d.href)if(a=Hl(a),a=cfa(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.HF()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&oua(a,b,f)}else oua(a,b)};
oua=function(a,b,c){a=qua(a);b=b?g.Ll(b):"";c=c||5;Eoa()&&g.oC(a,b,c)};
qua=function(a){for(var b=g.u(rua),c=b.next();!c.done;c=b.next())a=vm(a,c.value);return"ST-"+ve(a).toString(36)};
sua=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
tua=function(){this.ys=[];this.rr=[]};
xua=function(){if(!uua){var a=uua=new tua;a.rr.length=0;a.ys.length=0;vua(a,wua)}return uua};
vua=function(a,b){b.rr&&a.rr.push.apply(a.rr,b.rr);b.ys&&a.ys.push.apply(a.ys,b.ys)};
zua=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=yua(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=yua(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=yua(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)};
yua=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};
Bua=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Aua(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f="string"!==typeof h||"clickTrackingParams"!==f&&"trackingParams"!==f?0:(h=zua(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?Aua(f+".ve",h,l,m):0;d+=f;d+=Aua(e,a[e],b,c);if(500<d)break}}else c[b]=JF(a),d+=c[b].length;else c[b]=JF(a),d+=c[b].length;return d};
Aua=function(a,b,c,d){c+="."+a;a=JF(b);d[c]=a;return c.length+a.length};
JF=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+")"}};
Epa=function(a){g.KF(a)};
g.LF=function(a){g.KF(a,"WARNING")};
g.KF=function(a,b){var c=void 0===c?{}:c;c.name=g.IB("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.IB("INNERTUBE_CONTEXT_CLIENT_VERSION");b=void 0===b?"ERROR":b;var d=!1;b=void 0===b?"ERROR":b;d=void 0===d?!1:d;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(g.KB("console_log_js_exceptions")){var e=[];e.push("Name: "+a.name);e.push("Message: "+a.message);a.hasOwnProperty("params")&&e.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&e.push("Error args: "+JSON.stringify(a.args));
e.push("File name: "+a.fileName);e.push("Stacktrace: "+a.stack);window.console.log(e.join("\n"),a)}if(!(5<=Cua)){e=Dua;var f=Baa(a),h=f.message||"Unknown Error",l=f.name||"UnknownError",m=f.stack||a.B||"Not available";if(m.startsWith(l+": "+h)){var n=m.split("\n");n.shift();m=n.join("\n")}n=f.lineNumber||"Not available";f=f.fileName||"Not available";var p=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var q=0;q<a.args.length&&!(p=Bua(a.args[q],"params."+q,c,p),500<=p);q++);else if(a.hasOwnProperty("params")&&
a.params){var r=a.params;if("object"===typeof a.params)for(q in r){if(r[q]){var t="params."+q,v=JF(r[q]);c[t]=v;p+=t.length+v.length;if(500<p)break}}else c.params=JF(r)}if(e.length)for(q=0;q<e.length&&!(p=Bua(e[q],"params.context."+q,c,p),500<=p);q++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:h,name:l,lineNumber:n,fileName:f,stack:m,params:c,sampleWeight:1};e=Number(a.columnNumber);isNaN(e)||(c.lineNumber=c.lineNumber+":"+e);if("IGNORED"===a.level)a=
0;else a:{a=xua();e=g.u(a.rr);for(h=e.next();!h.done;h=e.next())if(h=h.value,c.message&&c.message.match(h.mA)){a=h.weight;break a}a=g.u(a.ys);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.callback(c)){a=e.weight;break a}a=1}c.sampleWeight=a;a=g.u(Eua);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.NJ[c.name])for(l=g.u(e.NJ[c.name]),h=l.next();!h.done;h=l.next())if(q=h.value,h=c.message.match(q.Ej)){c.params["params.error.original"]=h[0];l=q.groups;q={};for(n=0;n<l.length;n++)q[l[n]]=h[n+1],c.params["params.error."+
l[n]]=h[n+1];c.message=e.sP(q);break}c.params||(c.params={});a=xua();c.params["params.errorServiceSignature"]="msg="+a.rr.length+"&cb="+a.ys.length;c.params["params.serviceWorker"]="false";g.Qa.document&&g.Qa.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));Pd("sample").constructor!==g.Nd&&(c.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!Fua.has(c.message)){if(d&&
g.KB("web_enable_error_204"))Gua(void 0===b?"ERROR":b,c);else{b=void 0===b?"ERROR":b;"ERROR"===b?(MF.oa("handleError",c),g.KB("record_app_crashed_web")&&0===Hua&&1===c.sampleWeight&&(Hua++,g.KB("errors_via_jspb")?(d=new gA,d=O(d,1,1),g.KB("report_client_error_with_app_crash_ks")||(a=new fA,e=new Pz,h=new Oz,l=new Nz,l=N(l,1,c.message),h=Jj(h,Nz,3,l),e=Jj(e,Oz,5,h),a=Jj(a,Pz,9,e),Jj(d,fA,4,a)),a=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB,Kj(a,gA,20,DF,d),CF("appCrashed",a)):(d={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
g.KB("report_client_error_with_app_crash_ks")||(d.systemHealth={crashData:{clientError:{logMessage:{message:c.message}}}}),g.qD("appCrashed",d))),Iua++):"WARNING"===b&&MF.oa("handleWarning",c);if(g.KB("kevlar_gel_error_routing"))a:{d=b;if(g.KB("errors_via_jspb")){if(Jua())a=void 0;else{h=new Ez;N(h,1,c.stack);c.fileName&&N(h,4,c.fileName);a=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];0!==a.length&&(1!==a.length||isNaN(Number(a[0]))?2!==a.length||isNaN(Number(a[0]))||isNaN(Number(a[1]))||
(Wj(h,2,Number(a[0])),Wj(h,3,Number(a[1]))):Wj(h,2,Number(a[0])));a=new Nz;N(a,1,c.message);N(a,3,c.name);Wj(a,6,c.sampleWeight);"ERROR"===d?O(a,2,2):"WARNING"===d?O(a,2,1):O(a,2,0);e=new Mz;Vj(e,1,!0);Kj(e,Ez,3,NF,h);h=new Cz;N(h,3,window.location.href);l=g.IB("FEXP_EXPERIMENTS",[]);for(q=0;q<l.length;q++)h.B(l[q]);l=g.IB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!JB("web_disable_gel_stp_ecatcher_killswitch")&&l)for(q=g.u(Object.keys(l)),n=q.next();!n.done;n=q.next())n=n.value,f=new kz,N(f,1,
n),N(f,2,String(l[n])),h.j(f);if(l=c.params)for(q=g.u(Object.keys(l)),n=q.next();!n.done;n=q.next())n=n.value,f=new kz,N(f,1,"client."+n),N(f,2,String(l[n])),h.j(f);q=g.IB("SERVER_NAME");l=g.IB("SERVER_VERSION");q&&l&&(n=new kz,N(n,1,"server.name"),N(n,2,q),h.j(n),q=new kz,N(q,1,"server.version"),N(q,2,l),h.j(q));l=new Oz;Jj(l,Cz,1,h);Jj(l,Mz,2,e);Jj(l,Nz,3,a);a=l}if(!a)break a;e=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(e,Oz,163,DF,a);CF("clientError",e)}else{a=void 0;a=void 0===a?
{}:a;if(Jua())a=void 0;else{h={stackTrace:c.stack};c.fileName&&(h.filename=c.fileName);e=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];0!==e.length&&(1!==e.length||isNaN(Number(e[0]))?2!==e.length||isNaN(Number(e[0]))||isNaN(Number(e[1]))||(h.lineNumber=Number(e[0]),h.columnNumber=Number(e[1])):h.lineNumber=Number(e[0]));e={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};"ERROR"===d?e.level="ERROR_LEVEL_ERROR":"WARNING"===d&&(e.level=
"ERROR_LEVEL_WARNNING");h={isObfuscated:!0,browserStackInfo:h};a.pageUrl=window.location.href;a.kvPairs=[];g.IB("FEXP_EXPERIMENTS")&&(a.experimentIds=g.IB("FEXP_EXPERIMENTS"));q=g.IB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!JB("web_disable_gel_stp_ecatcher_killswitch")&&q)for(n=g.u(Object.keys(q)),l=n.next();!l.done;l=n.next())l=l.value,a.kvPairs.push({key:l,value:String(q[l])});if(q=c.params)for(n=g.u(Object.keys(q)),l=n.next();!l.done;l=n.next())l=l.value,a.kvPairs.push({key:"client."+l,value:String(q[l])});
l=g.IB("SERVER_NAME");q=g.IB("SERVER_VERSION");l&&q&&(a.kvPairs.push({key:"server.name",value:l}),a.kvPairs.push({key:"server.version",value:q}));a={errorMetadata:a,stackTrace:h,logMessage:e}}if(!a)break a;g.qD("clientError",a)}if("ERROR"===d||g.KB("errors_flush_gel_always_killswitch"))b:{if(g.KB("web_fp_via_jspb")&&(Rta(!0),Kta(!0),!g.KB("web_fp_via_jspb_and_json")))break b;Kta()}}g.KB("suppress_error_204_logging")||Gua(b,c)}try{Fua.add(c.message)}catch(x){}Cua++}}}};
Jua=function(){for(var a=g.u(Kua),b=a.next();!b.done;b=a.next())if(g.qC(b.value.toLowerCase()))return!0;return!1};
Gua=function(a,b){var c=b.params||{};a={urlParams:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,250),line:b.lineNumber,level:a,"client.name":c.name},postParams:{url:g.IB("PAGE_NAME",window.location.href),file:b.fileName},method:"POST"};c.version&&(a["client.version"]=c.version);if(a.postParams){b.stack&&(a.postParams.stack=b.stack);b=g.u(Object.keys(c));for(var d=b.next();!d.done;d=b.next())d=d.value,a.postParams["client."+d]=c[d];if(c=g.IB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
g.u(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];c=g.IB("SERVER_NAME");b=g.IB("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.fC(g.IB("ECATCHER_REPORT_HOST","")+"/error_204",a)};
Lua=function(a){var b=g.Ia.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.oa(b))};
PF=function(a){var b=g.R(a,OF);if(b)return b;if((b=g.R(a,Mua))&&b.commands)return Nua(b.commands);if((a=g.R(a,Oua))&&a.commands)return Nua(a.commands)};
Nua=function(a){if(0!==a.length){var b=[];a=g.u(a);for(var c=a.next();!c.done;c=a.next())(c=PF(c.value))&&b.push(c);return{commandExecutorCommand:{commands:b}}}};
g.QF=function(a,b,c){void 0===c?delete a[b.name]:a[b.name]=c};
Pua=function(a){a=void 0===a||a?UE(16):xsa(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
Qua=function(a){for(var b=0,c=0;c<a.length;c++)b=31*b+a.charCodeAt(c),c<a.length-1&&(b%=Math.pow(2,47));return b%1E5};
Rua=function(a){iE.call(this,1,arguments);this.csn=a};
Xua=function(a,b,c,d,e,f,h,l){function m(){g.LF(new g.eD("newScreen() parent element does not have a VE - rootVe",b))}
var n=Sua(),p=new EF({veType:b,youtubeData:f,jspbYoutubeData:void 0});f=RF({},n);e&&(f.cttAuthInfo=e);if(g.KB("il_via_jspb")){e=jna((new jB).j(n),p.getAsJspb());c&&c.visualElement?(p=new hna,c.clientScreenNonce&&N(p,2,c.clientScreenNonce),ina(p,c.visualElement.getAsJspb()),h&&O(p,4,Tua[h]),Jj(e,hna,5,p)):c&&m();d&&N(e,3,d);if(g.KB("expectation_logging")&&l&&l.screenCreatedLoggingExpectations){c=new Kx;l=g.u(l.screenCreatedLoggingExpectations.expectedParentScreens||[]);for(d=l.next();!d.done;d=l.next())d=
d.value,d.screenVeType&&(d=jma(new Ix,d.screenVeType),c.j(d));Jj(e,Kx,7,c)}Zta(e,f,a)}else e={csn:n,pageVe:p.getAsJson()},g.KB("expectation_logging")&&l&&l.screenCreatedLoggingExpectations&&(e.screenCreatedLoggingExpectations=l.screenCreatedLoggingExpectations),c&&c.visualElement?(e.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},h&&(e.implicitGesture.gestureType=h)):c&&m(),d&&(e.cloneCsn=d),a?zF("screenCreated",e,a,f):g.qD("screenCreated",e,f);kE(Uua,new Rua(n));
SF.clear();Vua.clear();Wua.clear();return n};
g.TF=function(a,b,c,d,e){g.Yua(a,b,c,[d],void 0===e?!1:e)};
g.Yua=function(a,b,c,d,e){e=void 0===e?!1:e;for(var f=RF({cttAuthInfo:IF(b)||void 0},b),h=g.u(d),l=h.next();!l.done;l=h.next()){l=l.value;var m=l.getAsJson();(g.id(m)||!m.trackingParams&&!m.veType)&&g.LF(Error("Child VE logged with no data"));if(g.KB("no_client_ve_attach_unless_shown")){var n=UF(l,b);if(m.veType&&!Vua.has(n)&&!Wua.has(n)&&!e){SF.set(n,[a,b,c,l]);return}l=UF(c,b);SF.has(l)?Zua(c,b):Wua.set(l,!0)}}d=d.filter(function(q){q.csn!==b?(q.csn=b,q=!0):q=!1;return q});
if(g.KB("il_via_jspb")){var p=kna((new kB).j(b),c.getAsJspb());g.pr(d,function(q){q=q.getAsJspb();Mj(p,3,HA,q)});
"UNDEFINED_CSN"===b?VF("visualElementAttached",f,void 0,p):aua(p,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.pr(d,function(q){return q.getAsJson()})},"UNDEFINED_CSN"===b?VF("visualElementAttached",f,c):a?zF("visualElementAttached",c,a,f):g.qD("visualElementAttached",c,f)};
ava=function(a,b,c,d,e,f){$ua(c,b);d=RF({cttAuthInfo:IF(b)||void 0},b);g.KB("il_via_jspb")?(e=(new nB).j(b),c=c.getAsJspb(),c=Jj(e,HA,2,c),c=O(c,4,1),f&&Jj(c,iB,3,f),"UNDEFINED_CSN"===b?VF("visualElementShown",d,void 0,c):Vta(c,d,a)):(f={csn:b,ve:c.getAsJson(),eventType:1},e&&(f.clientData=e),"UNDEFINED_CSN"===b?VF("visualElementShown",d,f):a?zF("visualElementShown",f,a,d):g.qD("visualElementShown",f,d))};
bva=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f=RF({cttAuthInfo:IF(b)||void 0,endOfSequence:d},b);g.KB("il_via_jspb")?(e=(new mB).j(b),c=c.getAsJspb(),c=Jj(e,HA,2,c),O(c,4,d?16:8),"UNDEFINED_CSN"===b?VF("visualElementHidden",f,void 0,c):Wta(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"===b?VF("visualElementHidden",f,d):a?zF("visualElementHidden",d,a,f):g.qD("visualElementHidden",d,f))};
dva=function(a,b,c,d,e){cva(a,b,c,d,e)};
cva=function(a,b,c,d,e){var f=void 0;$ua(c,b);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=RF({cttAuthInfo:IF(b)||void 0},b);g.KB("il_via_jspb")?(d=(new lB).j(b),c=c.getAsJspb(),c=Jj(d,HA,2,c),O(c,4,Tua[f]),e&&Jj(c,iB,3,e),"UNDEFINED_CSN"===b?VF("visualElementGestured",h,void 0,c):Xta(c,h,a)):(e={csn:b,ve:c.getAsJson(),gestureType:f},d&&(e.clientData=d),"UNDEFINED_CSN"===b?VF("visualElementGestured",h,e):a?zF("visualElementGestured",e,a,h):g.qD("visualElementGestured",e,h))};
eva=function(){var a;g.KB("enable_web_96_bit_csn")?a=Pua():g.KB("enable_web_96_bit_csn_no_crypto")?a=Pua(!1):a=g.fg(g.eg(Math.random()+""),3);return a};
VF=function(a,b,c,d){WF.push({payloadName:a,payload:c,Dt:d,options:b});fva||(fva=jra(Uua,gva))};
gva=function(a){if(WF){for(var b=g.u(WF),c=b.next();!c.done;c=b.next())if(c=c.value,g.KB("il_via_jspb")&&c.Dt)switch(c.Dt.j(a.csn),c.payloadName){case "screenCreated":Zta(c.Dt,c.options);break;case "visualElementAttached":aua(c.Dt,c.options);break;case "visualElementShown":Vta(c.Dt,c.options);break;case "visualElementHidden":Wta(c.Dt,c.options);break;case "visualElementGestured":Xta(c.Dt,c.options);break;case "visualElementStateChanged":Yta(c.Dt,c.options);break;default:g.LF(new g.eD("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
(c.payload.csn=a.csn,g.qD(c.payloadName,c.payload,c.options));WF.length=0}fva=0};
UF=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
$ua=function(a,b){if(g.KB("no_client_ve_attach_unless_shown")){var c=UF(a,b);Vua.set(c,!0);Zua(a,b)}};
Zua=function(a,b){a=UF(a,b);SF.has(a)&&(b=SF.get(a)||[],g.TF(b[0],b[1],b[2],b[3],!0),SF.delete(a))};
RF=function(a,b){g.KB("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
g.XF=function(a,b,c,d){g.OB(ava)(void 0,a,b,c,d,void 0)};
g.YF=function(a,b){g.OB(function(){g.Xb(b,function(c){$ua(c,a);var d=RF({cttAuthInfo:IF(a)||void 0},a);if(g.KB("il_via_jspb")){var e=(new nB).j(a);c=c.getAsJspb();e=Jj(e,HA,2,c);e=O(e,4,4);"UNDEFINED_CSN"===a?VF("visualElementShown",d,void 0,e):Vta(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"===a?VF("visualElementShown",d,e):g.qD("visualElementShown",e,d)})})()};
g.ZF=function(a,b){g.OB(function(){g.Xb(b,function(c){bva(void 0,a,c)})})()};
g.$F=function(a,b,c){g.OB(dva)(void 0,a,b,c,void 0)};
bG=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.interactionLoggingClientData=e;this.j=f;this.id=aG(a)};
aG=function(a){var b=":"+(g.Av.getInstance().j++).toString(36);return a+b};
g.cG=function(a){a=void 0===a?!1:a;g.H.call(this);this.sj=new g.iv(a);g.J(this,this.sj)};
g.dG=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
eG=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
fG=function(){var a="ytp-id-"+hva.toString();hva++;return a};
g.gG=function(a){g.H.call(this);this.Jb={};this.Pe={};this.element=this.createElement(a)};
hG=function(a,b,c,d){if("{{"===d.substr(0,2))a.Pe[d]=[b,c];else return d};
iva=function(a,b){var c=[];if(!b)return c;b=g.u(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.I?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.$e("BR"));c.push(g.jf(f))}):c.push(g.jf(d))}return c};
iG=function(a,b,c,d){if("child"===c){g.lf(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.I?[d]:d;c=iva(a,e);c=g.u(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Yr(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Vd(g.Jn(a))),b.setAttribute(c,a))};
g.U=function(a){g.gG.call(this,a);this.Ib=!0;this.Z=!1;this.listeners=[]};
g.jG=function(a,b){b?a.show():a.hide()};
g.kG=function(a){g.U.call(this,a);this.Qa=new g.cG;g.J(this,this.Qa)};
lG=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.kG.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.N=null;this.tb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.gb=f;this.Xa=null;this.iR=new SE(this.element);g.J(this,this.iR);this.rb=this.T(this.element,"click",this.onClick);this.Ea=[];this.Ba=new vsa(this.onClick,this);g.J(this,this.Ba);this.Bb=!1;this.Za=this.ma=null};
mG=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.LF(Error("Got null or undefined adText object")),"";var c=g.ue(a.text);if(!a.isTemplated)return c;if(null==b)return g.LF(Error("Missing required parameters for a templated message")),c;a=g.u(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.u(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
jva=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].url)?g.ue(a.thumbnails[0].url):""};
kva=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].width&&null!=a.thumbnails[0].height)?new g.ne(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.ne(0,0)};
g.nG=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.u(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.oG=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=Ze("B",null,h||l));d.italics&&(h=Ze("I",null,h||l));d.strikethrough&&(h=Ze("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=Ze("A",null,h||l),g.Mn(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||Ze("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:Ze("SPAN",null,b)};
g.lva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,Y:{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"}}]}};
mva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Y:{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.pG=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",Y:{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.qG=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",Y:{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"}}]}};
nva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Y:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"path",Y:{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"}}]}};
ova=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",zc:!0,Y:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
pva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",zc:!0,Y:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.rG=function(){return{I:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Y:{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"}}]}};
qva=function(){return{I:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Y:{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"}}]}};
rva=function(){return{I:"svg",Y:{viewBox:"0 0 24 24"},V:[{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",Y:{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"}}]}};
sva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
tva=function(){return{I:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{"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"}}]}};
uva=function(){return{I:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",Y:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",Y:{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"}}]}};
vva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{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"}}]}};
wva=function(){return{I:"svg",Y:{viewBox:"0 0 24 24"},V:[{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",Y:{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"}}]}};
sG=function(){return{I:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Y:{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"}}]}};
xva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",zc:!0,Y:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
yva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{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.zva=function(){return{I:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",Y:{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"}}]}};
Ava=function(){return{I:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",Y:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",Y:{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"}}]}};
Bva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Cva=function(){return{I:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",S:"ytp-svg-fill",Y:{"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"}}]}};
Dva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,Y:{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"}}]}};
Eva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{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"}}]}};
Fva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.Gva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{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.Hva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,Y:{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.tG=function(){return{I:"svg",Y:{height:"100%",viewBox:"0 0 16 16",width:"100%"},V:[{I:"path",Y:{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"}}]}};
Iva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
Jva=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{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"}}]}};
uG=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return Ava();case "CHECK_BOX":return{I:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",Y:{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{I:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Y:{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"}},{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.rG();case "INFO_OUTLINE":return uva();case "REMOVE_CIRCLE":return{I:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",Y:{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 yva();case "SKIP_NEXT_NEW":return{I:"svg",Y:{height:"100%",viewBox:"-6 -6 36 36",
width:"100%"},V:[{I:"path",Y:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return wva();case "DISLIKE":return rva();default:return g.LF(new g.eD("Unexpected icon:",a)),null}};
vG=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={I:"button",Ma:["ytp-ad-button"].concat(e)};null!=l&&(e.Y={tabindex:l});lG.call(this,a,e,void 0===f?"button":f,b,c,d);this.j=this.B=this.C=null;this.D=h;this.hide()};
Kva=function(a){var b=null;null!=a.j&&(b=[a.j.serviceEndpoint,a.j.navigationEndpoint].filter(function(c){return null!=c}),a.j.command&&(b=b.concat(a.j.command)));
return b||[]};
wG=function(){g.H.call(this);var a=this;this.j=new Map;this.B=fpa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.yE(b[c])})};
Lva=function(){null==xG&&(xG=new wG);return xG};
yG=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=Mva(a))){b=Ze("SPAN",null,b);break a}b=g.jf(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(Nva(e,b))}return 1==c.length?c[0]:Ze("SPAN",null,c)};
Nva=function(a,b){var c=null,d=a.text;b&&(d=Mva(d)||d);a.bold&&(c=Ze("B",null,c||d));a.italics&&(c=Ze("I",null,c||d));a.strikethrough&&(c=Ze("STRIKE",null,c||d));a.navigationEndpoint&&g.R(a.navigationEndpoint,g.zG)&&(b=g.R(a.navigationEndpoint,g.zG),c=Ze("A",null,c||d),g.Mn(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),Lva().register(c,a),g.Mu(c,"ytp-ad-has-logging-urls"));
return c||Ze("SPAN",null,d)};
Mva=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(Ze("BR")),b.push(a[c]);return b}return null};
AG=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;lG.call(this,a,{I:"span",Ma:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,b,c,d);this.button=this.B=null;this.G=f;this.D=e;this.hide()};
BG=function(a){return a&&a.thumbnails&&0!=(a.thumbnails||null).length&&a.thumbnails[0].url?g.ue(a.thumbnails[0].url):""};
CG=function(a,b,c,d,e,f){f=void 0===f?!1:f;lG.call(this,a,{I:"img",S:"ytp-ad-image"},"ad-image",b,c,d,void 0===e?null:e);this.j=f;this.hide()};
DG=function(a,b,c,d,e,f){e=void 0===e?[]:e;lG.call(this,a,{I:"div",Ma:["ytp-ad-confirm-dialog-background"],V:[{I:"div",S:"ytp-ad-confirm-dialog-container",V:[{I:"div",Ma:["ytp-ad-confirm-dialog"].concat(e),Y:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-confirm-dialog-title",ya:"{{title}}"},{I:"div",S:"ytp-ad-confirm-dialog-messages"},{I:"div",S:"ytp-ad-confirm-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-confirm-dialog-cancel-button",ya:"{{cancelLabel}}"},{I:"button",S:"ytp-ad-confirm-dialog-confirm-button",
ya:"{{confirmLabel}}"}]}]}]},{I:"button",Ma:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],V:[{I:"span",S:"ytp-ad-button-icon",V:[g.rG()]}]}]},void 0===f?"confirm-dialog":f,b,c,d);this.W=this.Ha("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Ha("ytp-ad-confirm-dialog-cancel-button");this.G=this.Ha("ytp-ad-confirm-dialog-confirm-button");this.ra=this.Ha("ytp-ad-confirm-dialog-messages");this.C=null;this.j=new SC;g.J(this,this.j);this.B=null;this.hide()};
Ova=function(a,b){if(b.title){var c=g.nG(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.u(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=yG(d.value),a.ra.appendChild(d)}b.cancelLabel&&(c=g.nG(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.T(a.D,"click",function(e){return a.GL(e)}));
b.confirmLabel&&(b=g.nG(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.T(a.G,"click",function(e){return a.QP(e)}));
a.j.T(a.W,"click",function(e){return a.PP(e)})};
EG=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=aG("ytp-ad-toggle-button-input"),l={role:"button","aria-label":"{{tooltipText}}"};a.U().experiments.jb("fix_h5_toggle_button_a11y")&&(l.tabindex="0");a.U().experiments.jb("fix_toggle_button_role_for_ad_components")&&(l.role="checkbox");lG.call(this,a,{I:"div",Ma:["ytp-ad-toggle-button"].concat(e),V:[{I:"label",S:"ytp-ad-toggle-button-label",Y:{"for":h},V:[{I:"span",S:"ytp-ad-toggle-button-icon",Y:l,V:[{I:"span",S:"ytp-ad-toggle-button-untoggled-icon",
ya:"{{untoggledIconTemplateSpec}}"},{I:"span",S:"ytp-ad-toggle-button-toggled-icon",ya:"{{toggledIconTemplateSpec}}"}]},{I:"input",S:"ytp-ad-toggle-button-input",Y:{id:h,type:"checkbox"}},{I:"span",S:"ytp-ad-toggle-button-text",ya:"{{buttonText}}"},{I:"span",S:"ytp-ad-toggle-button-tooltip",ya:"{{tooltipText}}"}]}]},f,b,c,d);this.D=this.Ha("ytp-ad-toggle-button");this.j=this.Ha("ytp-ad-toggle-button-input");this.Ha("ytp-ad-toggle-button-label");this.B=this.Ha("ytp-ad-toggle-button-icon");this.W=this.Ha("ytp-ad-toggle-button-untoggled-icon");
this.G=this.Ha("ytp-ad-toggle-button-toggled-icon");this.Ga=this.Ha("ytp-ad-toggle-button-text");this.C=null;this.ra=!1;this.hide()};
Pva=function(a){a.ra&&(a.isToggled()?(g.js(a.W,!1),g.js(a.G,!0),a.api.U().experiments.jb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!0)):(g.js(a.W,!0),g.js(a.G,!1),a.api.U().experiments.jb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!1)))};
Qva=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
Rva=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
FG=function(a){SC.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.K)};
Sva=function(a,b,c,d){lG.call(this,a,{I:"div",S:"ytp-ad-feedback-dialog-background",V:[{I:"div",S:"ytp-ad-feedback-dialog-container",V:[{I:"div",S:"ytp-ad-feedback-dialog-form",Y:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-feedback-dialog-title",V:[{I:"span",ya:"{{title}}"}]},{I:"span",S:"ytp-ad-info-dialog-feedback-options-title",ya:"{{reasonsTitle}}"},{I:"div",S:"ytp-ad-info-dialog-feedback-options"},{I:"div",S:"ytp-ad-feedback-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-feedback-dialog-cancel-button",
ya:"{{cancelLabel}}"},{I:"button",S:"ytp-ad-feedback-dialog-confirm-button",ya:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",b,c,d);this.D=[];this.j=null;this.G=this.Ha("ytp-ad-feedback-dialog-cancel-button");this.W=this.Ha("ytp-ad-feedback-dialog-confirm-button");this.ra=this.Ha("ytp-ad-info-dialog-feedback-options");this.Ga=this.Ha("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
Wva=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new vG(a.api,a.layoutId,a.interactionLoggingClientData,a.gb,["ytp-ad-feedback-dialog-close-button"],"button"),g.J(a,a.j),a.j.init(aG("button"),c,a.macros),a.j.Ra("click",a.AY,a),a.j.Ja(a.element));b.title&&(c=g.nG(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.nG(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&Tva(a,b.reasons);b.cancelLabel&&(c=g.nG(b.cancelLabel),a.updateValue("cancelLabel",
c),g.OC(a.G,"click",function(){return a.AY()}));
b.confirmLabel&&(c=g.nG(b.confirmLabel),a.updateValue("confirmLabel",c),g.OC(a.W,"click",function(){return Uva(a)}));
b.undoRenderer&&Vva(a,b.undoRenderer)};
Tva=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;if(null==c)g.LF(Error("AdFeedbackReason.reason was not set."));else if(d=d.endpoint,null==d)g.LF(Error("AdFeedbackReason.endpoint was not set."));else{c=new Xva(c,d);g.J(a,c);d=a.ra;var e=c.Fb();d.appendChild(e);a.D.push(c)}}};
Vva=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new vG(a.api,a.layoutId,a.interactionLoggingClientData,a.gb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.J(a,a.B),a.B.init(aG("ad-feedback-undo-mute-button"),b,a.macros),a.B.Ra("click",a.Q$,a),a.B.Ja(a.Ga)):g.LF(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
Uva=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].B,a.layoutId?a.gb.executeCommand(b,a.layoutId):g.KF(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.oa("a"),a.hide())};
Xva=function(a,b){this.B=b;this.j=new g.kG({I:"label",S:"ytp-ad-feedback-dialog-reason-label",V:[{I:"input",S:"ytp-ad-feedback-dialog-reason-input",Y:{type:"radio",name:"feedback-reason-group"}},{I:"span",S:"ytp-ad-feedback-dialog-reason-text",ya:g.nG(a)}]});this.C=this.j.Ha("ytp-ad-feedback-dialog-reason-input")};
GG=function(a,b,c,d){DG.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
Yva=function(a,b,c,d,e){lG.call(this,a,{I:"div",S:"ytp-ad-info-dialog-background",V:[{I:"div",S:"ytp-ad-info-dialog-container",V:[{I:"div",S:"ytp-ad-info-dialog-form",Y:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-info-dialog-title",ya:"{{title}}"},{I:"ul",S:"ytp-ad-info-dialog-ad-reasons"},{I:"div",S:"ytp-ad-info-dialog-message"},{I:"div",S:"ytp-ad-info-dialog-mute-container"},{I:"div",S:"ytp-ad-info-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-info-dialog-confirm-button",ya:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",b,c,d);this.j=this.B=null;this.W=this.Ha("ytp-ad-info-dialog-confirm-button");this.bb=this.Ha("ytp-ad-info-dialog-mute-container");this.Va=this.Ha("ytp-ad-info-dialog-message");this.La=this.Ha("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Ga=e;this.G=null;this.Na=!1;this.ra=null;this.hide()};
Zva=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new Sva(a.api,a.layoutId,a.interactionLoggingClientData,a.gb),g.J(a,a.B),a.B.init(aG("ad-feedback-dialog"),b,a.macros),a.B.Ja(a.Ga),a.B.subscribe("a",function(){return a.oa("c")})};
$va=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new GG(a.api,a.layoutId,a.interactionLoggingClientData,a.gb),g.J(a,a.D),a.D.init(aG("ad-mute-confirm-dialog"),b,a.macros),a.D.Ja(a.Ga),a.D.subscribe("b",function(){return a.oa("c")})};
awa=function(a){a.j&&a.j.Ra("click",a.vT,a);g.OC(a.W,"click",function(){return a.vT()})};
HG=function(a,b,c,d,e,f){AG.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.j=null;this.C=e;this.hide()};
cwa=function(a,b,c){b=b.dialog&&g.R(b.dialog,bwa)||null;null==b?g.KF(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new Yva(a.api,a.layoutId,a.interactionLoggingClientData,a.gb,a.C),g.J(a,a.j),a.j.init(aG("ad-info-dialog"),b,c),a.j.Ja(a.C),a.j.subscribe("d",function(){return a.oa("f")}),a.j.subscribe("c",function(){return a.oa("e")}))};
fwa=function(a,b,c){null==a.button?g.KF(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.Mu(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.R(b.serviceEndpoint,dwa)||null)?(cwa(a,b,c),a.button.Ra("click",function(){a.j&&!a.j.Ib&&(a.j.show(),ewa(a))})):a.button.Ra("click",function(){return ewa(a)}))};
ewa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
IG=function(a,b,c,d,e,f){lG.call(this,a,{I:"div",S:"ytp-ad-text"},void 0===f?"ad-text":f,b,c,d,void 0===e?null:e);this.j=null;this.hide()};
gwa=function(a,b){b&&g.qf(a.element,mG(a.j,b))};
JG=function(a,b,c,d,e,f,h){lG.call(this,a,b,c,d,e,f);this.j=h;g.J(this,this.j);this.Na=this.W=-1};
KG=function(a){a.j&&-1===a.W&&(a.W=a.j.subscribe("h",a.Yn,a),a.Na=a.j.subscribe("g",a.Vp,a),a.Yn())};
LG=function(a){null!=a.j&&-1!==a.W&&(a.j.Fh(a.W),a.j.Fh(a.Na),a.Na=-1,a.W=-1)};
g.MG=function(a,b,c,d,e,f){g.H.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.onHidden=e;this.delay=new g.Eu(this.AG,0,this);g.J(this,this.delay)};
NG=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
OG=function(a,b,c,d,e,f){JG.call(this,a,{I:"div",S:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.bb=-1;this.D=this.api.U().experiments.jb("enable_modern_skip_button_on_web");this.B=new g.kG({I:"span",S:"ytp-ad-preview-container"});this.D&&this.B.element.classList.add("ytp-ad-preview-container-detached");g.J(this,this.B);this.C=this.D?new IG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-ad-preview-text-modern"):new IG(this.api,this.layoutId,this.interactionLoggingClientData,
this.gb,"ytp-ad-preview-text");g.J(this,this.C);this.C.Ja(this.B.element);this.ra=this.D?new g.kG({I:"span",S:"ytp-ad-preview-image-modern"}):new g.kG({I:"span",S:"ytp-ad-preview-image"});g.J(this,this.ra);this.G=new CG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.J(this,this.G);this.G.Ja(this.ra.element);this.ra.Ja(this.B.element);this.B.Ja(this.element);this.Ga=new g.MG(this.B,400,!1,100,function(){return h.hide()});
g.J(this,this.Ga);this.La=0;this.Va=!1;this.kb=f;this.hide()};
hwa=function(a){a.Ga.show(100);a.show()};
iwa=function(a,b,c,d,e,f){JG.call(this,a,{I:"div",Ma:["ytp-flyout-cta","ytp-flyout-cta-inactive"],V:[{I:"div",S:"ytp-flyout-cta-icon-container"},{I:"div",S:"ytp-flyout-cta-body",V:[{I:"div",S:"ytp-flyout-cta-text-container",V:[{I:"div",S:"ytp-flyout-cta-headline-container"},{I:"div",S:"ytp-flyout-cta-description-container"}]},{I:"div",S:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",b,c,d,e);this.C=new CG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-flyout-cta-icon");
g.J(this,this.C);this.C.Ja(this.Ha("ytp-flyout-cta-icon-container"));this.api.U().L("web_rounded_thumbnails")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.G=new IG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-flyout-cta-headline");g.J(this,this.G);this.G.Ja(this.Ha("ytp-flyout-cta-headline-container"));this.D=new IG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-flyout-cta-description");g.J(this,this.D);this.D.Ja(this.Ha("ytp-flyout-cta-description-container"));
a=["ytp-flyout-cta-action-button"];this.api.U().L("web_modern_buttons")&&a.push("ytp-flyout-cta-action-button-rounded");this.B=new vG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,a);g.J(this,this.B);this.B.Ja(this.Ha("ytp-flyout-cta-action-button-container"));this.B.element.setAttribute("tabIndex","-1");yu(this.B.element);this.ra=null;this.Ga=0;this.La=f;this.hide()};
jwa=function(a,b,c,d,e){lG.call(this,a,{I:"div",S:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",b,c,d,void 0===e?null:e);var f=this;this.j=null;this.C=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,["ytp-ad-instream-user-sentiment-like-button"]);g.J(this,this.C);this.C.Ja(this.element);this.B=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.J(this,this.B);this.B.Ja(this.element);
this.D=new g.MG(this,400,!1,500,function(){return f.hide()});
g.J(this,this.D);this.hide()};
PG=function(a,b,c,d,e,f){e=void 0===e?0:e;f=void 0===f?!1:f;g.H.call(this);this.B=a;this.C=!1;this.W=d;this.ma=f;this.K=!1;this.j=null;0<b&&(this.j=new g.Eu(this.QU,b,this),g.J(this,this.j));this.G=new g.Eu(this.QU,c,this);g.J(this,this.G);this.Z=bla(this.B,e,1,d);g.J(this,this.Z);this.N=bla(this.B,0,d,1);g.J(this,this.N);this.D=new SC;g.J(this,this.D)};
kwa=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Nn(a,"unknown result type")}};
lwa=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;case "p.h_":return 12;case "s.t_":return 10;case "s.i_":return 14;case "f.i_":return 16;case "a.b_":return 18;case "a.o_":return 20;case "g.o_":return 22;case "p.i_":return 24;case "p.m_":return 26;case "i.k_":return 28;case "i.f_":return 30;default:Nn(a,"Unknown method type")}};
QG=function(a,b){var c=1,d=[];try{var e=document.querySelector(".ytp-ad-skip-button-slot");e?"none"===getComputedStyle(e).display?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_INVISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_VISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_NOT_FOUND")}catch(f){d.push("BISCOTTI_BASED_DETECTION_STATE_IS_FINDING_BUTTON_FAILURE")}!0===a.isTrusted?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED"):!1===a.isTrusted?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED"):
d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED_UNDEFINED");d.includes("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED")&&(c=0);HB("ISDSTAT",c);mwa(c,"i.s_",{bca:"sk",metadata:b,states:d});return c};
mwa=function(a,b,c){var d,e={detected:0===a,source:b+(null!=(d=c.bca)?d:""),detectionStates:c.states};c.metadata&&(e.contentCpn=c.metadata.contentCpn,e.adCpn=c.metadata.adCpn);g.qD("biscottiBasedDetection",e);a=kwa(a);b=lwa(b);HB("CATSTAT",Number(g.IB("CATSTAT",0))&~(3<<b)|a<<b)};
RG=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.eD(a);if(a.args)for(var f=g.u(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.LF(a)}};
g.SG=function(a,b){this.state=a;this.vA=b};
UG=function(a,b){return g.TG(a.state,b)&&!g.TG(a.vA,b)?1:!g.TG(a.state,b)&&g.TG(a.vA,b)?-1:0};
g.VG=function(a,b){return 0<UG(a,b)};
WG=function(a,b,c,d,e,f){JG.call(this,a,{I:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.ra=null;this.Ga=!1;this.Va=f;this.G=this.api.U().experiments.jb("enable_modern_skip_button_on_web");this.bb=!1;this.D=new g.kG({I:"span",Ma:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.J(this,this.D);this.D.Ja(this.element);this.B=this.C=null;this.kb=new g.MG(this.D,500,!1,100,function(){return h.hide()});
g.J(this,this.kb);this.La=new PG(this.D.element,15E3,5E3,.5,.5,this.G);g.J(this,this.La);this.hide()};
owa=function(a){a=a.ra&&a.ra.adRendererCommands;return(a&&a.clickCommand&&g.R(a.clickCommand,g.XG)&&g.R(a.clickCommand,g.XG).commands||[]).some(function(b){return b.adLifecycleCommand?nwa(b.adLifecycleCommand):!1})};
nwa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
YG=function(a,b,c,d,e,f){JG.call(this,a,{I:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.ra=f;this.D=!1;this.G=0;this.C=this.B=null;this.hide()};
pwa=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Ga.hide():a.B.hide()),b?(a=a.C,a.kb.show(),a.show()):a.C.show())};
qwa=function(a,b,c,d){vG.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
ZG=function(a,b,c,d,e){e=void 0===e?!1:e;lG.call(this,a,{I:"span",S:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.j=e;this.hide()};
$G=function(a,b,c,d,e){e=void 0===e?!1:e;bG.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.zK=e};
aH=function(a,b){g.cG.call(this);this.api=a;this.durationMs=b;this.j=null;this.Ad=new SC(this);g.J(this,this.Ad);this.B=rwa;this.Ad.T(this.api,"presentingplayerstatechange",this.Sd);this.j=this.Ad.T(this.api,"onAdPlaybackProgress",this.Kc)};
bH=function(a){g.cG.call(this);this.j=!1;this.cj=0;this.Ad=new SC(this);g.J(this,this.Ad);this.durationMs=a;this.timer=new g.$f(100);g.J(this,this.timer);this.Ad.T(this.timer,"tick",this.Kc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.cH=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+" p\u00e4iv\u00e4st\u00e4");if(0<d||0<e)b+=" "+e+" tunnista";b+=" "+f+" minuutista";b+=" "+c+" sekunnista";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.dH=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)};
eH=function(a,b,c,d,e,f){JG.call(this,a,{I:"span",S:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.B=null;this.hide()};
swa=function(a,b,c,d){IG.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
fH=function(a,b){this.B=a;this.j=b};
gH=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.B)/a.getLength();return g.ie(a,0,1)};
hH=function(a,b){g.kG.call(this,{I:"div",S:"ytp-ad-persistent-progress-bar-container",V:[{I:"div",S:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.B=b;g.J(this,this.B);this.progressBar=this.Ha("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
iH=function(a,b,c,d,e,f){lG.call(this,a,{I:"div",S:"ytp-ad-player-overlay",V:[{I:"div",S:"ytp-ad-player-overlay-flyout-cta"},{I:"div",S:"ytp-ad-player-overlay-instream-info"},{I:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-player-overlay-progress-bar"},{I:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",b,c,d);this.W=f;this.D=this.Ha("ytp-ad-player-overlay-flyout-cta");this.api.U().L("web_rounded_thumbnails")&&this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.B=this.Ha("ytp-ad-player-overlay-instream-info");this.C=null;twa(this)&&(a=Ze("div"),g.Mu(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 swa(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),c.Ja(a),c.init(aG("ad-title"),{text:b.title},this.macros),g.J(this,c)),this.C=a);this.G=this.Ha("ytp-ad-player-overlay-skip-or-preview");this.Ga=this.Ha("ytp-ad-player-overlay-progress-bar");
this.ra=this.Ha("ytp-ad-player-overlay-instream-user-sentiment");this.j=e;g.J(this,this.j);this.hide()};
twa=function(a){a=a.api.U();return g.jH(a)&&a.B};
uwa=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.Ml("/sharing_services",a);g.yE(d)};
g.kH=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)};
lH=function(a){this.j=new lv(a)};
vwa=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return g.KB("copy_login_info_to_st_cookie")&&("WEB"===g.IB("INNERTUBE_CLIENT_NAME")||"WEB_CREATOR"===g.IB("INNERTUBE_CLIENT_NAME"))&&a};
mH=function(a){if(g.IB("LOGGED_IN",!0)&&vwa()){var b=g.IB("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.Gl(window.location.href);c&&b.push(c);c=g.Gl(a);g.Fb(b,c)||!c&&bc(a,"/")?(b=Hl(a),(b=cfa(b))?(b=qua(b),b=(b=g.pC(b)||null)?SB(b):{}):b=null):b=null;null==b&&(b={});c=b;var d=void 0;vwa()?(d||(d=g.IB("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&pua(a,b)}};
g.wwa=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;a=g.Ml(a,b);mH(a);c=g.Jn(a+c);d=d.location;c=Kn(c);void 0!==c&&(d.href=c)};
g.xwa=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.IB("EVENT_ID");d&&(b.ei||(b.ei=d));b&&pua(a,b);c||(mH(a),(window.ytspf||{}).enabled?spf.navigate(a):g.wwa(a))};
g.nH=function(a,b,c,d){c&&pua(a,c);c=g.Jn(a);var e=g.Vd(c);a!=e&&PB(Error("Unsafe window.open URL: "+a));a=e;b=b||ve(a).toString(36);try{var f;if("2"===(null==(f=SB(a))?void 0:f.ase)){a=Xra(a);mH(a);g.KB("update_ytWindow_library_use_closure_window_library")?g.On(a,b,"attributionsrc"):window.open(a,b,"attributionsrc");return}}catch(l){g.NB(l)}if(d){a=Xra(a);try{var h=encodeURIComponent(d);mH(a);g.KB("update_ytWindow_library_use_closure_window_library")?g.On(a,b,"attributionsrc="+h):window.open(a,b,
"attributionsrc="+h);return}catch(l){g.NB(l)}}mH(a);g.KB("update_ytWindow_library_use_closure_window_library")?g.On(c,b):window.open(a,b)};
zwa=function(a){ywa=a&&a.data};
Bwa=function(a){Awa=a&&a.data};
Dwa=function(a){Cwa=a&&a.data};
Fwa=function(){Ewa=Cwa=Awa=ywa=null};
Hwa=function(){var a=void 0===a?window.location.href:a;if(g.KB("kevlar_disable_theme_param"))return null;Dl(g.Fl(5,a));try{var b=g.TB(a).theme;void 0===b&&g.KB("parent_tools_enable_app_settings")&&(b=g.TB(a).color_theme);return Gwa.get(b)||null}catch(c){}return null};
oH=function(){this.j={};if(this.B=roa()){var a=g.pC("CONSISTENCY");a&&Iwa(this,{encryptedTokenJarContents:a})}};
Iwa=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.B&&g.oC("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
pH=function(){var a=g.IB("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.IB("INNERTUBE_CLIENT_NAME")&&(this.localStorage=Jwa(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
Jwa=function(a){return void 0===a.localStorage?new oD("yt-client-location"):a.localStorage};
g.qH=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.IB("INNERTUBE_CONTEXT");if(!d)return g.KF(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.pd(d);g.KB("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.IB("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.bD();var h="USER_INTERFACE_THEME_LIGHT";g.cD(0,165)?h="USER_INTERFACE_THEME_DARK":g.cD(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.KB("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:Hwa()||h;e.userInterfaceTheme=f;if(!b){if(f=
xpa())e.connectionType=f;g.KB("web_log_effective_connection_type")&&(f=zpa())&&(d.client.effectiveConnectionType=f)}var l;if(g.KB("web_log_memory_total_kbytes")&&(null==(l=g.Qa.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.Qa.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}g.KB("web_gcf_hashes_innertube")&&(f=Tqa())&&(m=f.coldConfigData,l=f.coldHashData,f=f.hotHashData,d.client.configInfo=d.client.configInfo||{},d.client.configInfo.coldConfigData=m,d.client.configInfo.coldHashData=
l,d.client.configInfo.hotHashData=f);m=g.TB(g.Qa.location.href);!g.KB("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.Qa.location.href},g.KB("kevlar_woffle")&&mpa.instance&&(m=mpa.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=npa(),e.mainAppWebInfo.isWebNativeShareAvailable=
navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.KB("web_lr_app_quality_killswitch")&&(m=g.IB("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.IB("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.KB("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(I){}n=void 0}n&&(e.timeZone=
n)}(n=Gna())?e.experimentsToken=n:delete e.experimentsToken;n=Hna();oH.instance||(oH.instance=new oH);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:dd(oH.instance.j)});!g.KB("web_prequest_context_killswitch")&&(n=g.IB("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.bD();n=g.cD(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.KB("warm_op_csn_cleanup")?c&&
(b=g.HF())&&(d.clientScreenNonce=b):!b&&(b=g.HF())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Sa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;pH.getInstance().setLocationOnInnerTubeContext(d);try{var p=YB(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.u(Object.entries(p)),t=r.next();!t.done;t=r.next()){var v=g.u(t.value),x=v.next().value,B=v.next().value;p=x;q=B;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}var F;if(g.KB("add_ifa_to_tvh5_requests")&&
"TVHTML5"===(null==(F=d.client)?void 0:F.clientName)){var G=g.IB("INNERTUBE_CONTEXT");G.adSignalsInfo&&(d.adSignalsInfo.advertisingId=G.adSignalsInfo.advertisingId,d.adSignalsInfo.limitAdTracking=G.adSignalsInfo.limitAdTracking)}}catch(I){g.KF(I)}return d};
Mwa=function(a,b){if(!a)return!1;var c,d=null==(c=g.R(a,Kwa))?void 0:c.signal;if(d&&b.jx)return!!b.jx[d];var e;if((c=null==(e=g.R(a,Lwa))?void 0:e.request)&&b.WM)return!!b.WM[c];for(var f in a)if(b.SM[f])return!0;return!1};
Nwa=function(a,b){var c,d=null==(c=g.R(a,Kwa))?void 0:c.signal;if(d&&b.jx&&(c=b.jx[d]))return c();var e;if((c=null==(e=g.R(a,Lwa))?void 0:e.request)&&b.WM&&(e=b.WM[c]))return e();for(var f in a)if(b.SM[f]&&(a=b.SM[f]))return a()};
rH=function(a){return function(){return new a}};
Pwa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Owa[b];if(c){var d=new RegExp(c),e=g.u(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(Owa).forEach(function(h){var l=g.u(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.u(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.sH=function(a){return"/youtubei/v1/"+Pwa(a)};
tH=function(){};
uH=function(){};
vH=function(a){return g.Sa("ytcsi."+(a||"")+"data_")||Qwa(a)};
wH=function(){var a=vH();a.info||(a.info={});return a.info};
xH=function(a){a=vH(a);a.metadata||(a.metadata={});return a.metadata};
yH=function(a){a=vH(a);a.tick||(a.tick={});return a.tick};
zH=function(a){a=vH(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
Rwa=function(a){a=zH(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
AH=function(a){var b=vH(a).nonce;b||(b=g.VE(16),vH(a).nonce=b);return b};
Qwa=function(a){var b={tick:{},info:{}};g.Ra("ytcsi."+(a||"")+"data_",b);return b};
Swa=function(){var a=g.Sa("ytcsi.debug");a||(a=[],g.Ra("ytcsi.debug",a),g.Ra("ytcsi.reference",{}));return a};
BH=function(a){a=a||"";var b=Twa();if(b[a])return b[a];var c=Swa(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
Uwa=function(a){a=a||"";var b=Twa();b[a]&&delete b[a];var c=Swa(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
Twa=function(){var a=g.Sa("ytcsi.reference");if(a)return a;Swa();return g.Sa("ytcsi.reference")};
CH=function(a){return Vwa[a]||"LATENCY_ACTION_UNKNOWN"};
$wa=function(a,b,c){c=zH(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 Wwa){c=Wwa[a];g.Fb(Xwa,c)&&(b=!!b);a in Ywa&&"string"===typeof b&&(b=Ywa[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 QE({},d)}g.Fb(Zwa,a)||g.LF(new g.eD("Unknown label logged with GEL CSI",a))};
axa=function(a,b){iE.call(this,1,arguments);this.timer=b};
DH=function(){this.j=0};
EH=function(){DH.instance||(DH.instance=new DH);return DH.instance};
GH=function(a,b){FH[b]=FH[b]||{count:0};var c=FH[b];c.count++;c.time=(0,g.FD)();a.j||(a.j=g.jD(0,function(){var d=(0,g.FD)(),e;for(e in FH)FH[e]&&6E4<d-FH[e].time&&delete FH[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.eD("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.LF(c)),!0):!1};
bxa=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
cxa=function(){var a;if(g.KB("csi_use_performance_navigation_timing")||g.KB("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==HH?void 0:null==(a=HH.getEntriesByType)?void 0:null==(b=a.call(HH,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=IH(e.requestStart),e.responseEnd=IH(e.responseEnd),e.redirectStart=IH(e.redirectStart),e.redirectEnd=IH(e.redirectEnd),e.domainLookupEnd=IH(e.domainLookupEnd),e.connectStart=IH(e.connectStart),
e.connectEnd=IH(e.connectEnd),e.responseStart=IH(e.responseStart),e.secureConnectionStart=IH(e.secureConnectionStart),e.domainLookupStart=IH(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=HH.timing}else a=HH.timing;return a};
IH=function(a){return Math.round(JH()+a)};
JH=function(){return(g.KB("csi_use_time_origin")||g.KB("csi_use_time_origin_tvhtml5"))&&HH.timeOrigin?Math.floor(HH.timeOrigin):HH.timing.navigationStart};
LH=function(a,b){KH("_start",a,b)};
dxa=function(a,b,c,d){if(null!==b){if("yt_lt"===a){var e="string"===typeof b?b:""+b;xH(c).loadType=e}(a=$wa(a,b,c))&&MH(a,c,d)}};
MH=function(a,b,c){c=void 0===c?!1:c;if(!g.KB("web_csi_action_sampling_enabled")||!vH(b).actionDisabled)if(g.KB("web_csi_via_jspb")&&!c){c=new tB;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":O(c,1,W[a[e]]);break;case "clientActionNonce":N(c,2,a[e]);break;case "clientScreenNonce":N(c,4,a[e]);break;case "loadType":N(c,3,a[e]);break;case "isPrewarmedLaunch":Vj(c,92,a[e]);break;case "isFirstInstall":Vj(c,55,a[e]);break;case "networkType":O(c,
5,NH[a[e]]);break;case "connectionType":O(c,26,OH[a[e]]);break;case "detailedConnectionType":O(c,27,PH[a[e]]);break;case "isVisible":Vj(c,6,a[e]);break;case "playerType":O(c,7,QH[a[e]]);break;case "clientPlaybackNonce":N(c,8,a[e]);break;case "adClientPlaybackNonce":N(c,28,a[e]);break;case "previousCpn":N(c,77,a[e]);break;case "targetCpn":N(c,76,a[e]);break;case "isMonetized":Vj(c,9,a[e]);break;case "isPrerollAllowed":Vj(c,16,a[e]);break;case "isPrerollShown":Vj(c,17,a[e]);break;case "adType":N(c,
12,a[e]);break;case "adTypesAllowed":N(c,36,a[e]);break;case "adNetworks":N(c,37,a[e]);break;case "previousAction":O(c,13,W[a[e]]);break;case "isRedSubscriber":Vj(c,14,a[e]);break;case "serverTimeMs":Wj(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":N(c,20,a[e]);break;case "targetVideoId":N(c,78,a[e]);break;case "adBreakType":O(c,21,RH[a[e]]);break;case "isNavigation":Vj(c,25,a[e]);break;case "viewportHeight":Wj(c,29,a[e]);break;case "viewportWidth":Wj(c,30,a[e]);break;
case "screenHeight":Wj(c,84,a[e]);break;case "screenWidth":Wj(c,85,a[e]);break;case "browseId":N(c,31,a[e]);break;case "isCacheHit":Vj(c,32,a[e]);break;case "httpProtocol":N(c,33,a[e]);break;case "transportProtocol":N(c,34,a[e]);break;case "searchQuery":N(c,41,a[e]);break;case "isContinuation":Vj(c,42,a[e]);break;case "availableProcessors":Wj(c,43,a[e]);break;case "sdk":N(c,44,a[e]);break;case "isLocalStream":Vj(c,45,a[e]);break;case "navigationRequestedSameUrl":Vj(c,64,a[e]);break;case "shellStartupDurationMs":Wj(c,
70,a[e]);break;case "appInstallDataAgeMs":Wj(c,73,a[e]);break;case "latencyActionError":O(c,71,SH[a[e]]);break;case "actionStep":Wj(c,79,a[e]);break;case "jsHeapSizeLimit":Yj(c,80,a[e]);break;case "totalJsHeapSize":Yj(c,81,a[e]);break;case "usedJsHeapSize":Yj(c,82,a[e]);break;case "sourceVideoDurationMs":Yj(c,90,a[e]);break;case "videoOutputFrames":Yj(c,93,a[e]);break;case "isResume":Vj(c,104,a[e]);break;case "debugTicksExcluded":Vj(c,105,a[e]);break;case "abandonedPing":Vj(c,113,a[e]);break;case "retries":Wj(c,
123,a[e]);break;case "adPrebufferedTimeSecs":Wj(c,39,a[e]);break;case "isLivestream":Vj(c,47,a[e]);break;case "liveStreamMode":O(c,91,TH[a[e]]);break;case "adCpn2":N(c,48,a[e]);break;case "adDaiDriftMillis":Yj(c,49,a[e]);break;case "videoStreamType":O(c,53,UH[a[e]]);break;case "playbackRequiresTap":Vj(c,56,a[e]);break;case "performanceNavigationTiming":Vj(c,67,a[e]);break;case "transactionType":O(c,74,VH[a[e]]);break;case "playerRotationType":O(c,101,WH[a[e]]);break;case "allowedPreroll":Vj(c,10,
a[e]);break;case "shownPreroll":Vj(c,11,a[e]);break;case "getHomeRequestId":N(c,57,a[e]);break;case "getSearchRequestId":N(c,60,a[e]);break;case "getPlayerRequestId":N(c,61,a[e]);break;case "getWatchNextRequestId":N(c,62,a[e]);break;case "getBrowseRequestId":N(c,63,a[e]);break;case "getLibraryRequestId":N(c,66,a[e]);break;case "isTransformerEnabledForFeature":Vj(c,106,a[e]);break;case "sourceVideoFrameCount":Yj(c,109,a[e]);break;default:exa.includes(f)&&g.NB(new g.eD("Codegen laipb translator asked to translate message field",
""+f))}}catch(h){g.NB(Error("Codegen laipb translator failed to set "+f))}}XH(c,b)}else c=BH(b||""),QE(c.info,a),a.loadType&&(c=a.loadType,xH(b).loadType=c),QE(Rwa(b),a),c=AH(b),b=vH(b).cttAuthInfo,EH().info(a,c,b)};
XH=function(a,b){if(!g.KB("web_csi_action_sampling_enabled")||!vH(b).actionDisabled){var c=g.Tj(a,3);c&&(xH(b).loadType=c);BH(b||"").jspbInfo.push(a);c=AH(b);b=vH(b).cttAuthInfo;EH().jspbInfo(a,c,b)}};
fxa=function(){var a,b,c,d;return(null!=(d=null==cF().resolve(new $E(eE))?void 0:null==(a=fE())?void 0:null==(b=a.loggingHotConfig)?void 0:null==(c=b.csiConfig)?void 0:c.debugTicks)?d:[]).map(function(e){return Object.values(e)[0]})};
KH=function(a,b,c){if(!g.KB("web_csi_action_sampling_enabled")||!vH(c).actionDisabled){var d=AH(c),e;if(e=g.KB("web_csi_debug_sample_enabled")&&d){(null==cF().resolve(new $E(eE))?0:fE())&&!gxa&&(gxa=!0,KH("gcfl",(0,g.FD)(),c));var f,h,l;e=(null==cF().resolve(new $E(eE))?void 0:null==(f=fE())?void 0:null==(h=f.loggingHotConfig)?void 0:null==(l=h.csiConfig)?void 0:l.debugSampleWeight)||0;if(f=0!==e)b:{f=fxa();if(0<f.length)for(h=0;h<f.length;h++)if(a===f[h]){f=!0;break b}f=!1}f?(e=0!==Qua(d)%e,vH(c).debugTicksExcludedLogged||
(g.KB("web_csi_via_jspb")?(f=new tB,f=Vj(f,105,e),XH(f,c)):(f={},f.debugTicksExcluded=e,MH(f,c))),vH(c).debugTicksExcludedLogged=!0):e=!1}if(!e){b||"_"===a[0]||(e=a,HH.mark&&(e.startsWith("mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),HH.mark(e)));e=BH(c||"");e.tick[a]=b||(0,g.FD)();if(e.callback&&e.callback[a])for(e=g.u(e.callback[a]),f=e.next();!f.done;f=e.next())f=f.value,f();e=zH(c);e.gelTicks&&(e.gelTicks[a]=!0);f=yH(c);e=b||(0,g.FD)();g.KB("log_repeated_ytcsi_ticks")?a in f||(f[a]=e):f[a]=e;f=vH(c).cttAuthInfo;
"_start"===a?(a=EH(),GH(a,"baseline_"+d)||(b={timestamp:b,cttAuthInfo:f},g.KB("web_csi_via_jspb")?(a=new lna,N(a,1,d),d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB,Kj(d,lna,6,DF,a),CF("latencyActionBaselined",d,b)):g.qD("latencyActionBaselined",{clientActionNonce:d},b))):EH().tick(a,d,b,f);hxa(c);return e}}};
ixa=function(){var a,b=null==(a=HH.getEntriesByType)?void 0:a.call(HH,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;null==(d=HH.clearMarks)||d.call(HH,c.name)}})};
jxa=function(){switch(Woa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
mxa=function(a){var b=cxa(),c=JH(),d=g.IB("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.KB("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(KH("srt",b.responseStart),1!==a.prerender&&LH(c));a=kxa();0<a&&KH("fpt",a);a=cxa();a.isPerformanceNavigationTiming&&MH({performanceNavigationTiming:!0},void 0);KH("nreqs",a.requestStart,void 0);KH("nress",a.responseStart,void 0);KH("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(KH("nrs",a.redirectStart,void 0),KH("nre",a.redirectEnd,void 0));
0<a.domainLookupEnd-a.domainLookupStart&&(KH("ndnss",a.domainLookupStart,void 0),KH("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(KH("ntcps",a.connectStart,void 0),KH("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=JH()&&0<a.connectEnd-a.secureConnectionStart&&(KH("nstcps",a.secureConnectionStart,void 0),KH("ntcpe",a.connectEnd,void 0));HH&&"getEntriesByType"in HH&&lxa()};
nxa=function(a){function b(f,h,l){h=h.match("_rid")?h.split("_rid")[0]:h;"number"===typeof l&&(l=JSON.stringify(l));f.requestIds?f.requestIds.push({endpoint:h,id:l}):f.requestIds=[{endpoint:h,id:l}]}
var c={};a=g.u(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":b(c,d,e);break;case "GetGuide_rid":b(c,d,e);break;case "GetHome_rid":b(c,d,e);break;case "GetPlayer_rid":b(c,d,e);break;case "GetSearch_rid":b(c,d,e);break;case "GetSettings_rid":b(c,d,e);break;case "GetTrending_rid":b(c,d,e);break;case "GetWatchNext_rid":b(c,d,e);break;case "yt_red":c.isRedSubscriber=!!e;break;case "yt_ad":c.isMonetized=!!e}}return c};
oxa=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);Pn(window)&&a.setAttribute("nonce",Pn(window));return c?(a=HH.getEntriesByName(c))&&a[0]&&(a=a[0],c=JH(),KH("rsf_"+b,c+Math.round(a.fetchStart)),KH("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
qxa=function(){var a=[];if(document.querySelector&&HH&&HH.getEntriesByName)for(var b in pxa)if(pxa.hasOwnProperty(b)){var c=pxa[b];oxa(b,c)&&a.push(c)}return a};
lxa=function(){var a=window.location.protocol,b=HH.getEntriesByType("resource");b=g.bt(b,function(c){return 0===c.name.indexOf(a+"//web.archive.org/web/20240102114909/https://fonts.gstatic.com/s/")});
(b=rr(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(KH("wffs",IH(b.startTime)),KH("wffe",IH(b.responseEnd)))};
rxa=function(a,b,c){HH&&HH.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?HH.measure(a,b,c):b?HH.measure(a,b):HH.measure(a))};
sxa=function(a){var b=YH("aft",a);if(b)return b;b=g.IB((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=YH(b[d],a);if(e)return e}return NaN};
txa=function(a,b){g.Ra("ytglobal.timing"+(b||"")+"ready_",a)};
YH=function(a,b){if(a=yH(b)[a])return"number"===typeof a?a:a[a.length-1]};
hxa=function(a){var b=YH("_start",a),c=sxa(a);b&&c&&!uxa&&(kE(vxa,new axa(Math.round(c-b),a)),uxa=!0)};
wxa=function(a,b){for(var c=g.u(Object.keys(b)),d=c.next();!d.done;d=c.next())if(d=d.value,!Object.keys(a).includes(d)||"object"===typeof b[d]&&!wxa(a[d],b[d]))return!1;return!0};
kxa=function(){if(HH.getEntriesByType){var a=HH.getEntriesByType("paint");if(a=g.Db(a,function(b){return"first-paint"===b.name}))return IH(a.startTime)}a=HH.timing;
return a.g8?Math.max(0,a.g8):0};
ZH=function(a){Qwa(a);xxa();ixa();a||(g.IB("TIMING_ACTION")&&HB("PREVIOUS_ACTION",g.IB("TIMING_ACTION")),HB("TIMING_ACTION",""))};
yxa=function(){var a=["pbs","pbu"];g.OB(function(){BH("").info.actionType="watch";a&&HB("TIMING_AFT_KEYS",a);HB("TIMING_ACTION","watch");if(g.KB("web_csi_via_jspb")){var b=g.IB("TIMING_INFO",{}),c=new tB;b=g.u(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":uB(c,rB(qB(d),String(e)));break;case "GetGuide_rid":uB(c,rB(qB(d),String(e)));break;case "GetHome_rid":uB(c,rB(qB(d),String(e)));break;case "GetPlayer_rid":uB(c,
rB(qB(d),String(e)));break;case "GetSearch_rid":uB(c,rB(qB(d),String(e)));break;case "GetSettings_rid":uB(c,rB(qB(d),String(e)));break;case "GetTrending_rid":uB(c,rB(qB(d),String(e)));break;case "GetWatchNext_rid":uB(c,rB(qB(d),String(e)));break;case "yt_red":Vj(c,14,!!e);break;case "yt_ad":Vj(c,9,!!e)}}XH(c);c=new tB;c=Vj(c,25,!0);c=O(c,1,W[CH(g.IB("TIMING_ACTION"))]);(b=g.IB("PREVIOUS_ACTION"))&&O(c,13,W[CH(b)]);(b=g.IB("CLIENT_PROTOCOL"))&&N(c,33,b);(b=g.IB("CLIENT_TRANSPORT"))&&N(c,34,b);(b=g.HF())&&
"UNDEFINED_CSN"!==b&&N(c,4,b);b=jxa();1!==b&&-1!==b||Vj(c,6,!0);b=wH();(d="cold"===xH().loadType)||(d="cold"===b.yt_lt);if(d&&(N(c,3,"cold"),mxa(b),b=qxa(),0<b.length))for(b=g.u(b),d=b.next();!d.done;d=b.next())d=d.value,e=new mna,N(e,1,d),Mj(c,83,mna,e);XH(c)}else{c=g.IB("TIMING_INFO",{});for(b in c)c.hasOwnProperty(b)&&dxa(b,c[b]);c={isNavigation:!0,actionType:CH(g.IB("TIMING_ACTION"))};if(b=g.IB("PREVIOUS_ACTION"))c.previousAction=CH(b);if(b=g.IB("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.IB("CLIENT_TRANSPORT"))c.transportProtocol=
b;(b=g.HF())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=jxa();if(1===b||-1===b)c.isVisible=!0;b="cold"===xH().loadType;d=wH();b||(b="cold"===d.yt_lt);if(b&&(c.loadType="cold",mxa(wH()),b=qxa(),0<b.length))for(c.resourceInfo=[],b=g.u(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});MH(c)}c=wH();b=zH();b.preLoggedGelInfos||(b.preLoggedGelInfos=[]);d=b.preLoggedGelInfos;b=Rwa();e=void 0;for(var f=0;f<d.length;f++){var h=d[f];if(h.loadType){e=h.loadType;break}}if("cold"===
xH().loadType&&("cold"===c.yt_lt||"cold"===b.loadType||"cold"===e)){e=yH();f=zH();f=f.gelTicks?f.gelTicks:f.gelTicks={};for(var l in e)if(!(l in f))if("number"===typeof e[l])KH(l,YH(l));else if(g.KB("log_repeated_ytcsi_ticks")){h=g.u(e[l]);for(var m=h.next();!m.done;m=h.next())KH(l.slice(1),m.value)}l={};e=!1;if(g.KB("use_infogel_early_logging"))for(d=g.u(d),f=d.next();!f.done;f=d.next())e=f.value,QE(b,e),QE(l,e),e=!0;d=g.u(Object.keys(c));for(f=d.next();!f.done;f=d.next())f=f.value,(f=$wa(f,c[f]))&&
!wxa(Rwa(),f)&&(QE(b,f),QE(l,f),e=!0);e&&MH(l)}txa(!0);l=g.IB("TIMING_ACTION");g.Sa("ytglobal.timingready_")&&l&&$H("_start")&&sxa()&&hxa()})()};
Axa=function(){var a=void 0===a?{}:a;g.OB(function(){zxa();Uwa();ZH();txa(!1);a.cttAuthInfo&&(vH().cttAuthInfo=a.cttAuthInfo);HB("TIMING_AFT_KEYS",[]);a.Ajb?g.aI({loadType:"hot"}):g.aI({loadType:"warm"});HB("TIMING_ACTION","");delete g.IB("TIMING_INFO",{}).yt_lt;g.OB(LH)(a.startTime,void 0)})()};
bI=function(a,b){b=void 0===b?{}:b;g.OB(function(){Bxa(a);var c=b.sampleRate;if(!g.KB("web_csi_action_sampling_enabled")||void 0===c||1>=c)c=!1;else{var d=AH(a);c=0!==Qua(d)%c}c&&(vH(a).actionDisabled=!0);BH(a||"").info.actionType=a;b.cttAuthInfo&&(vH(a).cttAuthInfo=b.cttAuthInfo);HB(a+"TIMING_ACTION",a);g.OB(LH)(b.startTime,a);c={actionType:CH(a)};(d=g.HF())&&"UNDEFINED_CSN"!==d&&(c.clientScreenNonce=d);g.aI(c,a);txa(!0,a)})()};
Bxa=function(a){g.OB(function(){zxa(a);Uwa(a);ZH(a)})()};
Cxa=function(a,b,c,d){g.OB(dxa)(a,b,c,d)};
g.aI=function(a,b,c){g.OB(MH)(a,b,void 0===c?!1:c)};
cI=function(a,b,c){return g.OB(KH)(a,b,c)};
Dxa=function(a){g.OB(rxa)("above_the_fold",a,void 0)};
$H=function(a,b){return g.OB(function(){var c=yH(b);return a in c})()};
Exa=function(a,b){return g.OB(function(){if($H(a,b))return!1;cI(a,void 0,b);return!0})()};
dI=function(a,b,c){g.OB(function(){if(!$H("_start",c)||$H(a,c))return!1;cI(a,b,c);return!0})()};
Fxa=function(){g.OB(function(){var a=AH();requestAnimationFrame(function(){setTimeout(function(){a===AH()&&cI("ftl",void 0,void 0)},0)})})()};
zxa=function(a){$H("_start",a)&&cI("aa",void 0,a)};
eI=function(a,b,c,d){this.rN=a;this.fh=b;this.j=c;this.D=d;this.C=void 0;this.B=new Map;a.jx||(a.jx={});a.jx=Object.assign({},Gxa,a.jx)};
Hxa=function(a,b,c,d){if(void 0!==eI.instance){if(d=eI.instance,a=[a!==d.rN,b!==d.fh,c!==d.j,!1,!1,!1,void 0!==d.C],a.some(function(e){return e}))throw new g.eD("InnerTubeTransportService is already initialized",a);
}else eI.instance=new eI(a,b,c,d)};
fI=function(a,b,c){var d=void 0===d?hE:d;var e=Nwa(b,a.rN);if(!e)return Wf(new g.eD("Error: No request builder found for command.",b));var f=e.G(b,c,d);return f?(mH(f.input),new g.Kf(function(h){var l,m,n;return g.Ha(function(p){if(1==p.j)return m="cors"===(null==(l=f.Yt)?void 0:l.mode)?"cors":void 0,a.j.F_?(n=Ixa(a,f.config,m),p.Ka(2)):g.z(p,Jxa(a,f.config,m),3);2!=p.j&&(n=p.B);h(Kxa(a,f,n));g.xa(p)})})):Wf(new g.eD("Error: Failed to build request for command.",b))};
g.gI=function(a,b,c,d,e){e=void 0===e?{Vu:{identity:hE}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.qH(d,f));return new g.Kf(function(h){var l,m,n,p,q;return g.Ha(function(r){if(1==r.j)return l=soa(c),m=WB(l)?"same-origin":"cors",a.j.F_?(n=Ixa(a,e,m),r.Ka(2)):g.z(r,Jxa(a,e,m),3);2!=r.j&&(n=r.B);var t=n;p=toa(soa(c),t);q={input:p,Yt:uoa(p),Jp:b,config:e};h(Kxa(a,q,n));g.xa(r)})})};
Mxa=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.sequenceMetaData)?0:d.skipProcessing)&&a.D){d=g.u(Lxa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.D[e]&&a.D[e].handleResponse(b,c)}};
Kxa=function(a,b,c){var d,e,f,h,l,m,n,p,q,r,t,v,x,B,F,G,I,L,P,V,ka,sa,ta,la,qa,ba,T,Ma,y;return g.Ha(function(Z){switch(Z.j){case 1:Z.Ka(2);break;case 3:if((d=Z.B)&&!d.isExpired())return Z.return(Promise.resolve(d.j()));case 2:if(!(null==(e=b)?0:null==(f=e.Jp)?0:f.context)){Z.Ka(4);break}h=b.Jp.context;Z.Ka(5);break;case 5:l=g.u([]),m=l.next();case 7:if(m.done){Z.Ka(4);break}n=m.value;return g.z(Z,n.okb(h),8);case 8:m=l.next();Z.Ka(7);break;case 4:if(null==(p=a.C)||!p.Fkb(b.input,b.Jp)){Z.Ka(11);
break}return g.z(Z,a.C.Ijb(b.input,b.Jp),12);case 12:return q=Z.B,g.KB("kevlar_process_local_innertube_responses_killswitch")||Mxa(a,q,b),Z.return(q);case 11:return(v=null==(t=b.config)?void 0:t.bj)&&a.B.has(v)&&g.KB("web_memoize_inflight_requests")?r=a.B.get(v):(x=JSON.stringify(b.Jp),G=null!=(F=null==(B=b.Yt)?void 0:B.headers)?F:{},b.Yt=Object.assign({},b.Yt,{headers:Object.assign({},G,c)}),I=Object.assign({},b.Yt),"POST"===b.Yt.method&&(I=Object.assign({},I,{body:x})),(null==(L=b.config)?0:L.Paa)&&
cI(b.config.Paa),P=function(){return a.fh.fetch(b.input,I,b.config)},r=P(),v&&a.B.set(v,r)),g.z(Z,r,13);
case 13:if((V=Z.B)&&"error"in V&&(null==(ka=V)?0:null==(sa=ka.error)?0:sa.details))for(ta=V.error.details,la=g.u(ta),qa=la.next();!qa.done;qa=la.next())ba=qa.value,(T=ba["@type"])&&-1<Nxa.indexOf(T)&&(delete ba["@type"],V=ba);v&&a.B.has(v)&&a.B.delete(v);(null==(Ma=b.config)?0:Ma.Taa)&&cI(b.config.Taa);if(V||null==(y=a.C)||!y.aib(b.input,b.Jp)){Z.Ka(14);break}return g.z(Z,a.C.Hjb(b.input,b.Jp),15);case 15:V=Z.B;case 14:return Mxa(a,V,b),Z.return(V||void 0)}})};
Jxa=function(a,b,c){var d,e,f,h,l,m,n;return g.Ha(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.Vu)?void 0:e.identity)||hE;m=null==(h=b)?void 0:null==(l=h.Vu)?void 0:l.sessionIndex;var q=Vf(a.j.qD(f,{sessionIndex:m}));return g.z(p,q,2)}n=p.B;return p.return(Promise.resolve(Object.assign({},Oxa(c),n)))})};
Ixa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Vu)?void 0:d.identity)||hE,f;b=null==b?void 0:null==(f=b.Vu)?void 0:f.sessionIndex;a=a.j.qD(e,{sessionIndex:b});return Object.assign({},Oxa(c),a)};
Oxa=function(a){var b={"Content-Type":"application/json"};g.IB("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.IB("EOM_VISITOR_DATA"):g.IB("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.IB("VISITOR_DATA"));g.IB("WEBVIEW_EOM",!1)&&(b["X-Yt-Webview-Eom"]="1");b["X-Youtube-Bootstrap-Logged-In"]=g.IB("LOGGED_IN",!1);g.IB("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.IB("DEBUG_SETTINGS_METADATA"));"cors"!==a&&((a=g.IB("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.IB("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&
(b["X-Youtube-Client-Version"]=a),(a=g.IB("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.IB("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
hI=function(){};
iI=function(){};
jI=function(){};
kI=function(){};
lI=function(){};
mI=function(){};
nI=function(a){this.j=a};
g.oI=function(a,b){if(!Pxa){var c=cF();Csa(c,{bF:Qxa,t0:nI});var d={SM:{feedbackEndpoint:rH(jI),modifyChannelNotificationPreferenceEndpoint:rH(kI),playlistEditEndpoint:rH(lI),subscribeEndpoint:rH(hI),unsubscribeEndpoint:rH(iI),webPlayerShareEntityServiceEndpoint:rH(mI)}},e=pH.getInstance(),f={};e&&(f.client_location=e);void 0===a&&(a=lpa());void 0===b&&(b=c.resolve(Qxa));Hxa(d,b,a,f);Csa(c,{bF:Rxa,lS:eI.instance});Pxa=c.resolve(Rxa)}return Pxa};
Txa=function(a,b){var c=g.Sa("ytDebugData.callbacks");c||(c={},g.Ra("ytDebugData.callbacks",c));if(g.KB("web_dd_iu")||Sxa.includes(a))c[a]=b};
pI=function(){};
Uxa=function(){pI.instance||(pI.instance=new pI);return pI.instance};
Wxa=function(a){for(var b="",c=0;c<a.length;c++){var d=a[c];if(0===c)d="M "+d.x.toFixed(1)+","+d.y.toFixed(1);else{var e=Vxa(a[c-1],a[c-2],d),f=Vxa(d,a[c-1],a[c+1],!0);d=" C "+(e.x.toFixed(1)+","+e.y.toFixed(1)+" "+f.x.toFixed(1)+","+f.y.toFixed(1)+" "+d.x.toFixed(1)+","+d.y.toFixed(1))}b+=d}return b};
Vxa=function(a,b,c,d){d=void 0===d?!1:d;b=new Xxa(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.B:b.B)}};
Xxa=function(a,b){this.B=this.j=0;this.j=b.x-a.x;this.B=b.y-a.y};
Yxa=function(a,b,c){var d;if(!b)return 1<=a.length?a[a.length-1]:null;var e=g.u(a);for(d=e.next();!d.done;d=e.next())if(d=d.value,d.width&&d.height&&(c&&d.width>=b||!c&&d.height>=b))return d;for(b=a.length-1;0<=b;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]};
Zxa=function(){this.state=1;this.j=null};
aya=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Dc(2),g.msa(c,function(){if(window[h])$xa(a,d,h,e);else{a.Dc(3);var l=nsa(c),m=document.getElementById(l);m&&(isa(l),m.parentNode.removeChild(m));g.LF(new g.eD("Unable to load Botguard","from "+c))}},f)):b?(f=g.$e("SCRIPT"),b instanceof Qd?(f.textContent=qba(b),Qn(f)):f.textContent=b,f.nonce=Pn(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?$xa(a,d,h,e):(a.Dc(4),g.LF(new g.eD("Unable to load Botguard from JS")))):
g.LF(new g.eD("Unable to load VM; no url or JS provided"))};
$xa=function(a,b,c,d){a.Dc(5);try{var e=new Fn({program:b,globalName:c,Caa:g.KB("att_web_record_metrics")});e.wba.then(function(){a.Dc(6);d&&d(b)});
a.xR(e)}catch(f){a.Dc(7),f instanceof Error&&g.LF(f)}};
bya=function(a,b){var c=g.qI;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.jG()?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.jG()?c.z0({uv:a}).then(d):d(null)})]):Promise.resolve(null)};
eya=function(){if(!g.KB("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.KB("disable_biscotti_fetch_entirely_for_all_web_clients")&&Eoa()){var a=g.IB("PLAYER_VARS",{});if("1"!=g.jd(a,"privembed",!1)&&!Ioa(a)){var b=function(){cya=!0;"google_ad_status"in window?HB("DCLKSTAT",1):HB("DCLKSTAT",2)};
try{g.msa("//web.archive.org/web/20240102114909/https://static.doubleclick.net/instream/ad_status.js",b)}catch(c){}dya.push(g.wu.Si(function(){if(!(cya||"google_ad_status"in window)){try{if(b){var c=""+g.db(b),d=osa[c];d&&g.NE(d)}}catch(e){}cya=!0;HB("DCLKSTAT",3)}},5E3))}}};
fya=function(){var a=Number(g.IB("DCLKSTAT",0));return isNaN(a)?0:a};
rI=function(){var a=g.Sa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
sI=function(){Zxa.apply(this,arguments)};
tI=function(){};
gya=function(a,b,c){for(var d=!1,e=g.u(a.Ij.entries()),f=e.next();!f.done;f=e.next())f=g.u(f.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===f.slotType&&"core"===f.Ya&&(d=!0);if(d){a:if(!c){a=g.u(a.Ij.entries());for(c=a.next();!c.done;c=a.next())if(d=g.u(c.value),c=d.next().value,d=d.next().value,"SLOT_TYPE_IN_PLAYER"===c.slotType&&"core"===c.Ya){c=d.layoutId;break a}c=void 0}c?b.pO(c):RG("No triggering layout ID available when attempting to mute.")}};
uI=function(a,b){this.zj=a;this.Yk=b};
vI=function(){};
wI=function(){};
zI=function(a){g.H.call(this);var b=this;this.Hd=a;this.uf=new Map;this.j=new Map;xI(this,"commandExecutorCommand",function(c,d,e){b.Vg(c.commands,d,e)});
yI(this,"commandExecutorCommand",function(c,d,e){hya(b,c.commands,d,e)});
xI(this,"clickTrackingParams",function(){});
yI(this,"clickTrackingParams",function(){})};
iya=function(a,b){xI(a,b.yp(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
jya=function(a,b){yI(a,b.yp(),function(c,d,e){b.Zs(c,d,e)})};
xI=function(a,b,c){a.isDisposed();a.uf.get(b)&&g.KF(Error("Extension name "+b+" already registered"));a.uf.set(b,c)};
yI=function(a,b,c){a.isDisposed();a.j.get(b)&&g.KF(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
hya=function(a,b,c,d){b=void 0===b?[]:b;a.isDisposed();var e=[],f=[],h=g.u(b);for(b=h.next();!b.done;b=h.next())b=b.value,g.R(b,kya)||g.R(b,lya)?e.push(b):f.push(b);e=g.u(e);for(b=e.next();!b.done;b=e.next())AI(a,b.value,c,d);f=g.u(f);for(b=f.next();!b.done;b=f.next())AI(a,b.value,c,d)};
mya=function(a,b){a.Hd.get().Zn("innertubeCommand",{openPopupAction:b})};
nya=function(a,b){a.Hd.get().Zn("innertubeCommand",{confirmDialogEndpoint:b})};
AI=function(a,b,c,d){a.isDisposed();b.loggingUrls&&oya(a,"loggingUrls",b.loggingUrls,c,d);b=g.u(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?mya(a,f):"confirmDialogEndpoint"===e?nya(a,f):pya.hasOwnProperty(e)||oya(a,e,f,c,d)}};
qya=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.uf.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.KF(f)}else b=new g.eD("Unhandled field",b),g.LF(b)};
oya=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.KF(f)}else b=new g.eD("Unhandled field",b),g.LF(b)};
BI=function(a,b,c){this.Wn=a;this.maa=b;this.Oa=c};
CI=function(a){this.value=a};
DI=function(a){this.value=a};
EI=function(a){this.value=a};
rya=function(a){this.value=a};
FI=function(a){this.value=a};
GI=function(a){this.value=a};
sya=function(){CI.apply(this,arguments)};
tya=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};
HI=function(a){this.value=a};
II=function(a){this.value=a};
JI=function(a){this.value=a};
KI=function(a){this.value=a};
LI=function(a){this.value=a};
MI=function(){CI.apply(this,arguments)};
NI=function(a){this.value=a};
OI=function(a){this.value=a};
PI=function(a){this.value=a};
QI=function(a){this.value=a};
RI=function(a){this.value=a};
yya=function(a){this.value=a};
SI=function(a){this.value=a};
zya=function(a){this.value=a};
Aya=function(a){this.value=a};
Bya=function(a){this.value=a};
Cya=function(a){this.value=a};
TI=function(a){this.value=a};
UI=function(a){this.value=a};
VI=function(a){this.value=a};
WI=function(a){this.value=a};
Dya=function(a){this.value=a};
XI=function(a){this.value=a};
YI=function(a){this.value=a};
ZI=function(a){this.value=a};
Eya=function(a){this.value=a};
$I=function(a){this.value=a};
aJ=function(a){this.value=a};
bJ=function(a){this.value=a};
cJ=function(a){this.value=a};
dJ=function(a){this.value=a};
eJ=function(a){this.value=a};
fJ=function(a){this.value=a};
gJ=function(a){this.value=a};
hJ=function(a){this.value=a};
Fya=function(a){this.value=a};
iJ=function(a){this.value=a};
jJ=function(a){this.value=a};
kJ=function(a){this.value=a};
Gya=function(a){this.value=a};
lJ=function(a){this.value=a};
mJ=function(a){this.value=a};
nJ=function(a){this.value=a};
oJ=function(){CI.apply(this,arguments)};
Hya=function(a){this.value=a};
pJ=function(){CI.apply(this,arguments)};
qJ=function(){CI.apply(this,arguments)};
Iya=function(){CI.apply(this,arguments)};
rJ=function(){CI.apply(this,arguments)};
Jya=function(a){this.value=a};
sJ=function(a){this.value=a};
Kya=function(a){this.value=a};
uJ=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!tJ(a.Ca,c.value))return!1;return!0};
vJ=function(){return""};
Lya=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}};
wJ=function(a,b,c,d){d=void 0===d?!1:d;wb.call(this,a);this.Hk=c;this.Tu=d;this.args=[];b&&this.args.push(b)};
xJ=function(a,b,c,d){d=void 0===d?!1:d;wb.call(this,a);this.Hk=c;this.Tu=d;this.args=[];b&&this.args.push(b)};
yJ=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
tJ=function(a,b){return a.j.has(b)};
zJ=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
AJ=function(a){return Array.from(a.j.keys())};
BJ=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!tJ(a.Ca,c.value))return!1;return!0};
Nya=function(a){var b;return(null==(b=Mya.get(a))?void 0:b.lx)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Pya=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:Oya.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=CJ(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(CJ(d.value));
b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.u(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(CJ(a.value))}return c};
Qya=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:Oya.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
CJ=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.triggeringSlotId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);null!=a.triggeringLayoutId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c};
Rya=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.pr(d||[],function(e){return Pya(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
DJ=function(a,b){return function(c){return Sya(Tya(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Ya,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.Ya)}};
Sya=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:Pya(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Ya:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ca:new yJ([])}),layoutData:Qya(a,{layoutId:m,layoutType:n,Ya:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Kb:new Map,Ca:new yJ([]),jc:{}})}}};
FJ=function(a){this.Da=a;a=Math.random();var b=this.Da.get();b=g.EJ(b.J.U().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
Tya=function(a){return a.j||a.Da.get().J.U().L("html5_force_debug_data_for_client_tmp_logs")};
Uya=function(a,b,c,d){g.H.call(this);this.Cd=b;this.hc=c;this.Da=d;this.j=a(this,this,this,this,this);g.J(this,this.j);a=g.u(b);for(b=a.next();!b.done;b=a.next())g.J(this,b.value)};
Vya=function(a,b,c,d){RG(c,b,void 0,void 0,c.Tu);c.Hk?GJ(a.hc,d,c.Hk,b):RG("adsClientErrorMessage is missing.",b);HJ(a,b,!0)};
Yya=function(a,b,c){if(IJ(a.j,b))if(JJ(a.j,b).D=c?"filled":"not_filled",null===c){KJ(a.hc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.u(a.Cd);for(var d=c.next();!d.done;d=c.next())d.value.Di(b);HJ(a,b,!1)}else{KJ(a.hc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);KJ(a.hc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e=null!=(d=c.zB)?d:zJ(c.Ca,"metadata_type_sub_layouts");if(e)for(d=g.u(e),e=d.next();!e.done;e=d.next())KJ(a.hc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value);e=
g.u(a.Cd);for(d=e.next();!d.done;d=e.next())d.value.Ei(b);if(IJ(a.j,b))if(JJ(a.j,b).G)HJ(a,b,!1);else{KJ(a.hc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!JJ(f,b))throw new wJ("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!f.uf.jr.get(b.slotType))throw new wJ("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(0==
c.layoutExitNormalTriggers.length&&0==c.layoutExitSkipTriggers.length&&0==c.layoutExitMuteTriggers.length&&0==c.layoutExitUserInputSubmittedTriggers.length&&0==c.Vc.length)throw new wJ("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");LJ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);LJ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);LJ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);LJ(f,
"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);LJ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Vc)}catch(n){n instanceof wJ?a.sf(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.sf(b,c,new wJ("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");HJ(a,b,!0);return}JJ(a.j,b).K=!0;try{var h=a.j,l=JJ(h,b),m=h.uf.jr.get(b.slotType).get().build(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new wJ("Already had LayoutRenderingAdapter registered for slot",
void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.C=m;MJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);MJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);MJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);MJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);MJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Vc)}catch(n){Wya(a,b);n instanceof wJ?a.sf(b,
c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.sf(b,c,new wJ("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");HJ(a,b,!0);return}KJ(a.hc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.u(a.Cd);for(d=f.next();!d.done;d=f.next())d.value.Uh(b,c);Wya(a,b);Xya(a,b)}else a=a.Da.get(),g.NJ(a.J.U())||OJ(a.J.U())||g.PJ(a.J.U())?a=!0:(RG("Composite VOD on legacy path."),a=!1),a&&RG("slot is unscheduled after been fulfilled.",
b,c)}};
Zya=function(a,b,c){"core"!==b.Ya&&KJ(a.hc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
$ya=function(a,b,c){KJ(a.hc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.u(a.Cd);for(var d=a.next();!d.done;d=a.next())d.value.Uh(b,c)};
aza=function(a,b,c){a=g.u(a.Cd);for(var d=a.next();!d.done;d=a.next())d.value.Qg(b,c)};
bza=function(a,b,c){KJ(a.hc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.u(a.Cd);for(var d=a.next();!d.done;d=a.next())d.value.Bc(b,c)};
cza=function(a,b,c,d){KJ(a.hc,Nya(d),b,c);a=g.u(a.Cd);for(var e=a.next();!e.done;e=a.next())e.value.Qc(b,c,d)};
Wya=function(a,b){if(IJ(a.j,b)){JJ(a.j,b).K=!1;var c=QJ;b=JJ(a.j,b);var d=[].concat(g.oa(b.Z));saa(b.Z);c(a,d)}};
QJ=function(a,b){b.sort(function(f,h){function l(m){RG("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):Lya(f.category,l)-Lya(h.category,l)});
var c=new Map;b=g.u(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,IJ(a.j,d.slot))if(JJ(a.j,d.slot).K)JJ(a.j,d.slot).Z.push(d);else{dza(a.hc,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.u(eza);for(d=b.next();!d.done;d=b.next())e=g.u(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&fza(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&gza(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&hza(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
iza(a,c)};
fza=function(a,b,c){b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&jza(a.j,d.slot)&&kza(a,d.slot,d.layout,c)};
gza=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())HJ(a,c.value.slot,!1)};
hza=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(JJ(a.j,c.slot).D){case "not_filled":var d=!0;break a;default:d=!1}d&&(RJ(a.hc,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.kD(c.slot))}};
iza=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;RJ(a.hc,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.u(a.Cd),e=d.next();!e.done;e=d.next())e.value.Ci(c.slot);try{var f=a.j,h=c.slot,l=JJ(f,h);if(!l)throw new xJ("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.B)throw new xJ("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if("scheduled"!==l.j)throw new xJ("Tried to enter a slot from stage: "+
l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(SJ(l))throw new xJ("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.u(TJ(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&SJ(p))throw new xJ("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 xJ&&q.Hk?(GJ(a.hc,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
q.Hk,c.slot),RG(q,c.slot,UJ(a.j,c.slot),void 0,q.Tu)):(GJ(a.hc,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),RG(q,c.slot));HJ(a,c.slot,!0);continue}c=JJ(a.j,c.slot);"scheduled"!==c.j&&VJ(c.slot,c.j,"enterSlot");c.j="enter_requested";c.B.DH()}};
Xya=function(a,b){if(IJ(a.j,b)&&SJ(JJ(a.j,b))&&UJ(a.j,b)&&!jza(a.j,b)){var c;KJ(a.hc,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=UJ(a.j,b))?c:void 0);a=JJ(a.j,b);"entered"!==a.j&&VJ(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.C.startRendering(a.layout)}};
kza=function(a,b,c,d){if(IJ(a.j,b)){var e=a.hc,f;var h=(null==(f=Mya.get(d))?void 0:f.ax)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";KJ(e,h,b,c);a=JJ(a.j,b);"rendering"!==a.j&&VJ(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.C.nf(c,d)}};
HJ=function(a,b,c){if(IJ(a.j,b)){a:switch(JJ(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(JJ(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(JJ(a.j,b).G=!0,!c))return;if(SJ(JJ(a.j,b)))JJ(a.j,b).G=!0,lza(a,b,c);else{a:switch(JJ(a.j,b).D){case "fill_requested":c=!0;break a;default:c=!1}if(c)JJ(a.j,b).G=!0,IJ(a.j,b)&&(RJ(a.hc,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=JJ(a.j,b),b.D="fill_cancel_requested",b.N.FM());else{c=
UJ(a.j,b);(d=a.Da.get().J.U().experiments.jb("h5_enable_layout_unscheduling_events"))&&(c?a.Qg(b,c):RG(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));RJ(a.hc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=JJ(a.j,b),f=b.slotEntryTrigger,h=e.Ba.get(f.triggerId);h&&(h.Dl(f),e.Ba.delete(f.triggerId));f=g.u(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.ma.get(h.triggerId);l&&(l.Dl(h),e.ma.delete(h.triggerId))}f=g.u(b.slotExpirationTriggers);
for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.W.get(h.triggerId))l.Dl(h),e.W.delete(h.triggerId);null!=e.layout&&(f=e.layout,WJ(e,f.layoutExitNormalTriggers),WJ(e,f.layoutExitSkipTriggers),WJ(e,f.layoutExitMuteTriggers),WJ(e,f.layoutExitUserInputSubmittedTriggers),WJ(e,f.Vc));e.N=void 0;null!=e.B&&(e.B.release(),e.B=void 0);null!=e.C&&(e.C.release(),e.C=void 0);e=a.j;JJ(e,b)&&(e=TJ(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);RJ(a.hc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
b);a=g.u(a.Cd);for(e=a.next();!e.done;e=a.next())e=e.value,e.Fi(b),c&&!d&&e.Qg(b,c)}}}};
lza=function(a,b,c){if(IJ(a.j,b)&&SJ(JJ(a.j,b))){var d=UJ(a.j,b);if(d&&jza(a.j,b))kza(a,b,d,c?"error":"abandoned");else{RJ(a.hc,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=JJ(a.j,b);if(!e)throw new xJ("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&&VJ(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.B)throw e.j="scheduled",new xJ("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.B.FH()}catch(f){f instanceof xJ&&f.Hk?(GJ(a.hc,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.Hk,b),RG(f,b,void 0,void 0,f.Tu)):(GJ(a.hc,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),RG(f,b))}}}};
mza=function(a){this.slot=a;this.Ba=new Map;this.ma=new Map;this.W=new Map;this.ra=new Map;this.C=this.layout=this.B=this.N=void 0;this.K=this.G=!1;this.Z=[];this.j="not_scheduled";this.D="not_filled"};
SJ=function(a){return"enter_requested"===a.j||a.isActive()};
nza=function(a,b,c,d,e,f){g.H.call(this);this.uf=a;this.C=b;this.G=c;this.D=d;this.B=e;this.Da=f;this.j=new Map};
TJ=function(a,b){return(a=a.j.get(b))?a:new Map};
JJ=function(a,b){return TJ(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
oza=function(a){var b=[];a.j.forEach(function(c){c=g.u(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
IJ=function(a,b){return null!=JJ(a,b)};
jza=function(a,b){a=JJ(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};
UJ=function(a,b){(a=JJ(a,b))?null!=a.layout&&!a.layout&&RG("Unexpected empty layout",b):RG("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
rza=function(a,b,c){if(0==c.length)throw new xJ("No "+pza.get(b)+" triggers found for slot.",void 0,qza(b));c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.uf.Cl.get(d.triggerType))throw new xJ("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
qza=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"}};
LJ=function(a,b,c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.uf.Cl.get(d.triggerType))throw new wJ("No trigger adapter registered for "+pza.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
MJ=function(a,b,c,d){d=g.u(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.uf.Cl.get(e.triggerType);f.rl(c,e,b.slot,b.layout?b.layout:null);b.ra.set(e.triggerId,f)}};
WJ=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.ra.get(c.triggerId);d&&(d.Dl(c),a.ra.delete(c.triggerId))}};
VJ=function(a,b,c){RG("Slot stage was "+b+" when calling method "+c,a)};
sza=function(a){return XJ(a.Mw).concat(XJ(a.Cl)).concat(XJ(a.Fq)).concat(XJ(a.Kr)).concat(XJ(a.jr))};
XJ=function(a){var b=[];a=g.u(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Nh&&b.push(c);return b};
tza=function(a){g.H.call(this);var b=this;this.j=a;this.instance=null;this.addOnDisposeCallback(function(){g.ub(b.instance);b.instance=null})};
YJ=function(a){return new tza(a)};
vza=function(a){g.H.call(this);this.Ag=a;this.j=uza(this)};
uza=function(a){var b=new Uya(function(c,d,e,f){return new nza(a.Ag.uf,c,d,e,f,a.Ag.Da)},new Set(sza(a.Ag.uf).concat(a.Ag.listeners)),a.Ag.hc,a.Ag.Da);
g.J(a,b);return b};
ZJ=function(a){this.j=a};
$J=function(a,b,c,d){(a=a.j())||RG("Could not initiate a command router instance.");AI(a,b,c,d)};
aK=function(){this.listeners=new Set};
bK=function(){};
wza=function(a,b){a=b.bgp&&b.bgub;var c=b.upb;if(b.siub&&b.scs&&(a||c)){a=b.siub;var d=b.scs,e=b.bgub,f=b.bgp;b=window;var h=e?"//web.archive.org/web/20240102114909/https://pagead2.googlesyndication.com/bg/"+g.te(e)+".js":"";e=b.document;var l={};d&&(l._scs_=d);l._bgu_=h;l._bgp_=f;l._li_="v_h.3.0.0.0";c&&(l._upb_=c);(c=b.GoogleTyFxhY)&&"function"==typeof c.push||(c=b.GoogleTyFxhY=[]);c.push(l);c=He(e).createElement("SCRIPT");c.type="text/javascript";c.async=!0;a=vba(Pd("//web.archive.org/web/20240102114909/https://tpc.googlesyndication.com/sodar/%{path}"),{path:g.te(a)+".js"});g.Rn(c,
a);(a=(b.GoogleTyFxhYEET||{})[c.src])?a():e.getElementsByTagName("head")[0].appendChild(c)}};
xza=function(a,b,c,d,e){this.callback=a;this.slot=b;this.Ab=c;this.Yb=d;this.Da=e;this.j=null};
zza=function(a,b,c,d){a.j&&RG("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.BB?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.Ab.get(),l=a.slot.slotId,m=DJ(a.Yb.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,Ya:a.slot.Ya,slotEntryTrigger:a.slot.slotEntryTrigger,slotFulfillmentTriggers:a.slot.slotFulfillmentTriggers,slotExpirationTriggers:a.slot.slotExpirationTriggers}),
n=cK(h.fb.get(),f,l),p={layoutId:n,layoutType:f,Ya:"core"};e={layoutId:n,layoutType:f,Kb:new Map,layoutExitNormalTriggers:[new yza(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new yJ([new Gya(e)]),jc:m(p)};Yya(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof Zf||Vya(a.callback,a.slot,new xJ(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
Aza=function(a){if(null==a.j)a.callback.AJ(a.slot);else try{a.j.cancel(),a.j=null,a.callback.AJ(a.slot)}catch(b){a.j=null,Vya(a.callback,a.slot,new xJ(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
dK=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.LF(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
eK=function(a,b){return b&&b.test(a)?!0:!1};
Cza=function(a){return(a=Bza&&Bza.exec(a))?a[0]:""};
fK=function(a){var b=void 0===b?!1:b;return dK(eK(a,Dza),a,b,"Trusted Stream URL")};
g.gK=function(a){var b=void 0===b?!1:b;return dK(eK(a,Eza),a,b,"Trusted Image URL")};
Gza=function(a){var b=void 0===b?!1:b;return dK(eK(a,Fza),a,b,"Trusted Promoted Video Domain URL")};
Iza=function(a){var b=void 0===b?!1:b;return dK(eK(a,Hza),a,b,"Drm Licensor URL")};
Kza=function(a,b){b=void 0===b?!1:b;return dK(eK(a,Jza),a,b,"Captions URL")};
Lza=function(a){a=new g.po(a);g.qo(a,document.location.protocol);g.ro(a,document.location.hostname);document.location.port&&g.so(a,document.location.port);return a.toString()};
hK=function(a){a=new g.po(a);g.qo(a,document.location.protocol);return a.toString()};
g.jK=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.qm=0;this.B=Mza++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||iK.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.qr(d.thumbnails,function(e){return g.gK(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Nza=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Oza=function(a,b){switch(a.style){case iK.CHAPTER_MARKER:return b?8:5;case iK.AD_MARKER:return 6;case iK.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.Pza=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.kK=function(a){return"crn_"+a};
g.lK=function(a){return"crx_"+a};
Qza=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.Sf=c;this.Oa=h;this.Ia=l;this.Mc=m;this.j=new xza(a,b,d,e,f)};
Rza=function(a){var b;null==(b=a.Mc)||b.get().Rt(zJ(a.slot.Ca,"metadata_type_cue_point").identifier)};
Sza=function(a,b,c,d,e,f){this.slot=b;this.Sf=c;this.j=new xza(a,b,d,e,f)};
Tza=function(a,b){this.callback=a;this.slot=b};
Uza=function(a,b){return BJ(a,b.Gd,b.slotType)?!0:!1};
Vza=function(){};
mK=function(a,b,c,d,e,f,h){this.Sf=a;this.Ab=b;this.Yb=c;this.Da=d;this.Oa=e;this.Ia=f;this.Mc=h};
nK=function(){};
Wza=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.j=d;this.Qb=e;this.fb=f};
Yza=function(a){if(zJ(a.slot.Ca,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var b=Xza(a,a.slot);oK(a.Qb.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[b]})}};
Xza=function(a,b){var c=pK(a.fb.get(),a.slot.slotType),d=Object,e=d.assign;a=a.slot;if(b.slotEntryTrigger){var f=b.slotId;var h=b.slotEntryTrigger;f=null!=h.triggeringSlotId&&h.triggeringSlotId===f?h.clone(c):h}else f=void 0;return e.call(d,{},a,{slotId:c,slotEntryTrigger:f,slotFulfillmentTriggers:Zza(b.slotId,c,b.slotFulfillmentTriggers),slotExpirationTriggers:Zza(b.slotId,c,b.slotExpirationTriggers)})};
Zza=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next()){var f=d,h=f.push;var l=a;var m=b;e=e.value;l=null!=e.triggeringSlotId&&e.triggeringSlotId===l?e.clone(m):e;h.call(f,l)}return d};
g.qK=function(a,b){for(var c=g.u(Object.keys(b)),d=c.next(),e={};!d.done;e={placeholder:void 0},d=c.next())d=d.value,e.placeholder=b[d],a=a.replace(new RegExp("\\$"+d,"gi"),function(f){return function(){return f.placeholder}}(e));
return a};
$za=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
aAa=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.sf(a.slot,b,new wJ("Unknown layout received. Required LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):c()};
rK=function(a,b,c,d){g.cG.call(this);this.callback=a;this.C=d;this.j=[];this.B=new $za(a,b,c)};
tK=function(a,b,c,d,e,f,h){e=zJ(c.Ca,e);a=sK(a);var l=Jd(function(){d.Bc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.jc},function(){l()}))};
uK=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.u(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.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():RG("Tried to call engagePingCallback but it is null",h,l)}}else RG("Companion AdUxClick received without a layoutId",h,l)};
vK=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)};
wK=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"};
xK=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||[]]])};
bAa=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}};
yK=function(a,b,c,d,e){e=void 0===e?null:e;this.C=a;this.Oa=b;this.layoutId=d;this.D=0;this.K=null;this.G=void 0;this.j=new Set;this.B=Array.from(this.C.get("progress")||[]);this.B.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.N={adPlacementConfig:c,dY:e}};
zK=function(){return["metadata_type_ad_placement_config"]};
sK=function(a){return cAa(a.Oa.get(),a.N)};
AK=function(a,b,c){for(c=void 0===c?!1:c;a.D<a.B.length;){var d=a.B[a.D];if(d.offsetMilliseconds<=b||c)dAa(a,"progress",[d]),a.D++;else break}};
BK=function(a,b){return a.j.has(b)};
eAa=function(a){return a.B.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
fAa=function(a,b,c){a.K=b;a.G=c};
dAa=function(a,b,c){var d,e=a.Oa.get(),f=a.layoutId,h=null!=(d=a.K)?d:void 0;a=a.G;c=void 0===c?[]:c;if(d=gAa(e.B.get(),f))for(b=e.Db.get().Dh(f,b),f=CK(e,hAa(d),d,h,a),c=g.u(c),h=c.next();!h.done;h=c.next())h=h.value,h.baseUrl&&e.QA.send(h.baseUrl,f,b,h.attributionSrcMode);else RG("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
iAa=function(a,b,c,d,e){bG.call(this,"banner-image",a,b,c,d,e)};
jAa=function(a,b,c,d,e,f,h,l,m){rK.call(this,a,b,c,d);this.Oa=e;this.Wc=f;this.K=l;this.Hb=m;this.Nh=!0;this.D=null;this.G=zJ(c.Ca,"metadata_type_linked_player_bytes_layout_id");this.Wc().Cd.add(this);this.adPlacementConfig=zJ(c.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,this.Oa,this.adPlacementConfig,c.layoutId)};
kAa=function(){var a=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];zK().forEach(function(b){a.push(b)});
return{Gd:a,Ne:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
lAa=function(a,b,c,d,e){bG.call(this,"action-companion",a,b,c,d,e)};
mAa=function(a,b,c,d,e,f,h,l){rK.call(this,a,b,c,d);this.Oa=e;this.Wc=f;this.K=l;this.Nh=!0;this.D=null;this.G=zJ(c.Ca,"metadata_type_linked_player_bytes_layout_id");this.Wc().Cd.add(this);a=zJ(c.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,this.Oa,a,c.layoutId)};
nAa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];zK().forEach(function(b){a.push(b)});
return{Gd:a,Ne:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
oAa=function(a,b,c,d,e){bG.call(this,"image-companion",a,b,c,d,e)};
pAa=function(a,b,c,d,e,f,h,l){rK.call(this,a,b,c,d);this.Oa=e;this.Wc=f;this.K=l;this.Nh=!0;this.D=null;this.G=zJ(c.Ca,"metadata_type_linked_player_bytes_layout_id");this.Wc().Cd.add(this);a=zJ(c.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,this.Oa,a,c.layoutId)};
qAa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];zK().forEach(function(b){a.push(b)});
return{Gd:a,Ne:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
rAa=function(a,b,c,d,e){bG.call(this,"shopping-companion",a,b,c,d,e)};
sAa=function(a,b,c,d,e,f,h,l){rK.call(this,a,b,c,d);this.Oa=e;this.Wc=f;this.K=l;this.Nh=!0;this.D=null;this.G=zJ(c.Ca,"metadata_type_linked_player_bytes_layout_id");this.Wc().Cd.add(this);a=zJ(c.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,this.Oa,a,c.layoutId)};
tAa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];zK().forEach(function(b){a.push(b)});
return{Gd:a,Ne:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
uAa=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)};
vAa=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))};
wAa=function(a,b,c,d){this.Hb=a;this.layoutId=c;this.G=d;this.B=[];this.j=[];this.C=this.D=0;a=g.u(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":uAa(b)?this.B.push(b):RG("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":vAa(b)?this.j.push(b):RG("Invalid AdVideoProgressMillisecondsCommand");break;default:RG("Unknown or invalid AdVideoProgressOffSet kind")}this.B.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)})};
xAa=function(a,b,c,d,e,f){rK.call(this,a,b,c,d);this.Oa=e;this.Wc=f;this.Nh=!0;this.Wc().Cd.add(this);a=zJ(c.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,this.Oa,a,c.layoutId)};
yAa=function(){var a=["metadata_type_action_companion_ad_renderer"];zK().forEach(function(b){a.push(b)});
return{Gd:a,Ne:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
zAa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ia=d;this.Oa=e;this.Da=f;this.Db=h;a=zJ(c.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,this.Oa,a,c.layoutId)};
AAa=function(a,b,c,d,e,f){rK.call(this,a,b,c,d);this.Ia=e;this.G=f;this.D=!1};
BAa=function(a,b,c,d,e){bG.call(this,"top-banner-image-text-icon-buttoned",a,b,c,d,e)};
CAa=function(a,b,c,d,e,f){rK.call(this,a,b,c,d);this.Oa=e;this.Wc=f;this.Nh=!0;this.Wc().Cd.add(this);a=zJ(c.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,this.Oa,a,c.layoutId)};
DAa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];zK().forEach(function(b){a.push(b)});
return{Gd:a,Ne:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
DK=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;bG.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.ER=e;this.zK=f};
EK=function(a,b,c,d,e){rK.call(this,a,b,c,d);a=zJ(c.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,e,a,c.layoutId)};
EAa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];zK().forEach(function(b){a.push(b)});
return{Gd:a,Ne:["LAYOUT_TYPE_ENDCAP"]}};
FK=function(a,b){return uJ(a,b.Gd,b.Ne)?!0:!1};
GK=function(a,b,c){this.j=a;this.Qb=b;this.fb=c};
FAa=function(a,b,c,d,e){bG.call(this,"ads-engagement-panel",a,b,c,d,e)};
GAa=function(a,b,c,d,e,f,h,l){rK.call(this,a,b,c,d);this.Oa=e;this.Wc=f;this.K=l;this.Nh=!0;this.D=null;this.G=zJ(c.Ca,"metadata_type_linked_player_bytes_layout_id");this.Wc().Cd.add(this);a=zJ(c.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,this.Oa,a,c.layoutId)};
HAa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];zK().forEach(function(b){a.push(b)});
return{Gd:a,Ne:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
IAa=function(a,b,c,d,e,f,h,l,m){rK.call(this,a,b,c,d);this.Oa=e;this.Wc=f;this.K=l;this.Hb=m;this.Nh=!0;this.D=null;this.G=zJ(c.Ca,"metadata_type_linked_player_bytes_layout_id");this.Wc().Cd.add(this);this.adPlacementConfig=zJ(c.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,this.Oa,this.adPlacementConfig,c.layoutId)};
JAa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];zK().forEach(function(b){a.push(b)});
return{Gd:a,Ne:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
KAa=function(a,b,c,d,e,f){this.lc=a;this.Oa=b;this.Wc=c;this.j=d;this.Db=e;this.Hb=f};
LAa=function(a,b,c){bG.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c};
HK=function(a,b,c,d){rK.call(this,a,b,c,d)};
MAa=function(a){this.lc=a};
NAa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.j=e;a=zJ(this.layout.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,this.Oa,a,c.layoutId)};
OAa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];zK().forEach(function(b){a.push(b)});
return{Gd:a,Ne:["LAYOUT_TYPE_FORECASTING"]}};
PAa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.j=e;a=zJ(this.layout.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,this.Oa,a,c.layoutId)};
IK=function(a,b,c,d){this.Da=a;this.Oa=b;this.j=c;this.Db=d};
QAa=function(a,b,c,d){bG.call(this,"player-overlay-layout",a,{},c,d);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=d};
RAa=function(a,b,c,d,e,f,h,l){rK.call(this,a,b,c,d);this.Ia=e;this.Oa=f;this.K=h;this.G=l;this.D=!1;this.N=zJ(this.layout.Ca,"metadata_type_linked_player_bytes_layout_id")};
JK=function(a,b,c,d,e,f,h,l){rK.call(this,a,b,c,d);this.Ia=e;this.Oa=f;this.K=h;this.G=l;this.D=!1;this.N=zJ(this.layout.Ca,"metadata_type_linked_player_bytes_layout_id")};
SAa=function(){return{Gd:["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"],Ne:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
TAa=function(a){if(a.layout.renderingContent){var b;return null==(b=zJ(a.layout.Ca,"metadata_type_player_bytes_callback_ref"))?void 0:b.current}return zJ(a.layout.Ca,"metadata_type_player_bytes_callback")};
UAa=function(a,b,c){bG.call(this,"ad-message",a,void 0,b,c)};
KK=function(a,b,c,d,e,f){rK.call(this,c,a,b,d);this.Ia=e;this.Da=f};
VAa=function(){return{Gd:["metadata_type_valid_ad_message_renderer"],Ne:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
MK=function(a,b,c,d,e,f,h,l,m){return FK(c,SAa())||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===c.layoutType&&void 0!==g.R(c.renderingContent,WAa)?new JK(a,b,c,d,e,f,h,l):FK(c,{Gd:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Ne:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new RAa(a,b,c,d,e,f,h,l):FK(c,EAa())||"LAYOUT_TYPE_ENDCAP"===c.layoutType&&void 0!==g.R(c.renderingContent,
LK)?new EK(a,b,c,d,f):FK(c,VAa())?new KK(b,c,a,d,e,m):FK(c,{Gd:["metadata_type_instream_ad_player_overlay_renderer"],Ne:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new AAa(a,b,c,d,e,l):null};
XAa=function(a,b,c,d,e,f){this.lc=a;this.Ia=b;this.Oa=c;this.B=d;this.j=e;this.Da=f};
YAa=function(a,b,c,d){this.Ia=a;this.Oa=b;this.Da=c;this.Db=d};
ZAa=function(a,b,c,d,e,f,h,l,m,n,p){g.H.call(this);this.callback=a;this.j=b;this.slot=c;this.layout=d;this.Zd=e;this.Ge=f;this.Wa=h;this.Mc=l;this.ze=m;this.Wc=n;this.Ia=p;this.Nh=!0;this.B=void 0;this.C=!1};
NK=function(a,b,c,d,e,f){g.H.call(this);this.callback=a;this.ze=b;this.Ia=c;this.Rc=d;this.Wc=e;this.Da=f;this.Nh=!0;this.CO=!1};
$Aa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){NK.call(this,a,d,e,f,q,r);this.Wa=b;this.Mc=c;this.C=h;this.slot=l;this.layout=m;this.Zd=n;this.D=p;this.B=[];this.j=-1;this.K=this.G=!1};
cBa=function(a,b,c){var d=a.B[a.j];a.j===a.B.length-1&&RG("Unexpected skip with target requested during the last sublayout",d.xc(),d.sb(),{requestingSlot:b,requestingLayout:c});if(c.layoutId!==OK(d,b,c))RG("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.xc(),d.sb(),{requestingSlot:b,requestingLayout:c});else{var e=zJ(d.sb().Ca,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.B.length){a:{for(var f=e;f<a.B.length;){if(e===zJ(a.B[f].sb().Ca,"metadata_type_ad_pod_skip_index")){e=
f;break a}f++}e=void 0}void 0===e?RG("Skip-to-index was requested but target index was not found",d.xc(),d.sb(),{requestingSlot:b,requestingLayout:c}):a.lf()?aBa(a,d.sb(),e,"skipped"):bBa(a,d.xc(),d.sb(),e)}else RG("Invalid ad pod skip target index",d.xc(),d.sb(),{requestingSlot:b,requestingLayout:c})}};
OK=function(a,b,c){var d=zJ(a.sb().Ca,"metadata_type_linked_in_player_layout_id");return d?d:(RG("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.xc(),a.sb(),{requestingSlot:b,requestingLayout:c}),null)};
dBa=function(a,b,c){PK(a,a.slot,b,c,function(){var d=a.N;d?(a.N=void 0,d(b)):RG("Expected further action after sublayout exit is confirmed",a.slot,a.layout)})};
fBa=function(a,b,c,d){a.lf()?aBa(a,c,a.j+1,d):PK(a,b,c,d,function(){eBa(a,a.j+1)})};
aBa=function(a,b,c,d){PK(a,a.slot,b,d,function(){if(c>=a.B.length+1||0>c)RG("Unexpected target sublayout index",a.slot,a.layout,{targetSubLayoutIndex:c});else{a.j=c;if(c===a.B.length){var e=a.Wa.get().cf(1).clientPlaybackNonce;QK(a.D,a.layout)}else e=a.B[c].sb().layoutId;a.Mc.get().finishSegmentByCpn(b.layoutId,e)}})};
bBa=function(a,b,c,d){PK(a,b,c,"skipped",function(){eBa(a,d)})};
PK=function(a,b,c,d,e){if(!a.K){var f=a.B[a.j];f?(f.sb().layoutId!==c.layoutId&&RG("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.sb().layoutId}),a.K=!0,f.nf(f.sb(),d),cza(a.C,b,c,d),a.K=!1,a.G=!1,a.Z?(a.Z(),gBa(a.Rc.get())):e()):RG("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
eBa=function(a,b){a.j===a.B.length-1?(a.j++,QK(a.D,a.layout),gBa(a.Rc.get())):hBa(a,b)};
hBa=function(a,b){if(-1===a.j&&(a.callback.Bc(a.slot,a.layout),0<b)){RG("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.j=b;a.G=!0;b=a.B[a.j];if(0<a.j){a=a.Rc.get();a.B=!1;var c={};a.j&&a.videoId&&(c.cttAuthInfo={token:a.j,videoId:a.videoId});bI("ad_to_ad",c)}b.startRendering(b.sb())};
iBa=function(a){return!a.vA.isPlaying()&&a.state.isPlaying()};
RK=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
SK=function(a){var b=[];if(a){a=g.u(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.u(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(";")};
TK=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
UK=function(a){return 1===a||2===a};
VK=function(a,b){b=void 0===b?0:b;if(a instanceof TK)return a;a=a&&a instanceof Error?a:Error(""+a);UK(b)?g.KF(a):g.LF(a);return new TK(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
g.kBa=function(a){return(a=jBa[a.toString()])?a:"LICENSE"};
lBa=function(a,b){function c(){var d=g.Ia.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.oa(d))}
a.addEventListener("playing",c)};
WK=function(){var a=g.Sa("yt.player.utils.videoElement_");a||(a=g.$e("VIDEO"),g.Ra("yt.player.utils.videoElement_",a));return a};
XK=function(a){var b=WK();return!!(b&&b.canPlayType&&b.canPlayType(a))};
$K=function(a){if(/opus/.test(a)&&g.YK&&!hv("38")&&!g.sC())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(ZK&&window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(a);if(/webm/.test(a)&&!zoa())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!XK(a)};
mBa=function(a){try{var b=$K('video/mp4; codecs="avc1.42001E"')||$K('video/webm; codecs="vp9"');return($K('audio/mp4; codecs="mp4a.40.2"')||$K('audio/webm; codecs="opus"'))&&(b||!a)||XK('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
nBa=function(){var a=WK();return!(!a.webkitSupportsPresentationMode||"function"!==typeof a.webkitSetPresentationMode)};
oBa=function(){var a=WK();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
g.aL=function(){SC.apply(this,arguments)};
bL=function(a,b,c,d,e,f){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.C=void 0===e?0:e;this.B=void 0===f?0:f};
dL=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||pBa(a,b);this.j=g.cL[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.cL[this.quality],0===a?a="Automaattinen":(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.B=l||"";this.primaries=m||""};
pBa=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=eL[0];for(var d=0;d<eL.length;d++){var e=eL[d],f=g.cL[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
gL=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Ob||(c.Ob=16E3);Object.assign(this,c);a=g.u(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=qBa(b);this.ub=fL[this.itag]||""};
hL=function(a){return"9"===a.ub||"("===a.ub||"9h"===a.ub||"(h"===a.ub};
rBa=function(a){return"H"===a.ub||"h"===a.ub};
sBa=function(a){return"9h"===a.ub||"(h"===a.ub};
iL=function(a){return"1"===a.ub||"1h"===a.ub};
tBa=function(a){return"mac3"===a.ub||"meac3"===a.ub||"m"===a.ub};
jL=function(a){return"MAC3"===a.ub||"MEAC3"===a.ub||"M"===a.ub};
g.kL=function(a){return 1===a.containerType};
uBa=function(a){return"("===a.ub||"(h"===a.ub||"H"===a.ub};
lL=function(a){return"application/x-mpegURL"===a.mimeType};
mL=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}};
nL=function(a,b){a=mL(a,b);return a.itag+";"+(a.lmt||0)+";"+a.xtags};
vBa=function(a){var b=navigator.mediaCapabilities;if(null==b||!b.decodingInfo||"f"===a.ub)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.Ob||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:8*a.Ob||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})};
wBa=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)};
xBa=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
oL=function(a){return a.includes("vtt")||a.includes("text/mp4")};
qBa=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};
pL=function(a,b,c,d,e,f){var h=new bL;b in g.cL||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.cL[b],d=Math.round(16*e/9));f=new dL(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new gL(c,a,{audio:h,video:f})};
qL=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.Wu)?void 0:c.toFixed(0))+", "+(null==(d=a.Ob)?void 0:d.toFixed(0))+")"};
rL=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
sL=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)};
tL=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};
uL=function(a,b){return 0<=tL(a,b)};
yBa=function(a,b){if(!a)return NaN;b=tL(a,b);return 0<=b?a.start(b):NaN};
vL=function(a,b){if(!a)return NaN;b=tL(a,b);return 0<=b?a.end(b):NaN};
wL=function(a){return a&&a.length?a.end(a.length-1):NaN};
xL=function(a,b){a=vL(a,b);return 0<=a?a-b:0};
yL=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 rL(d,e)};
zL=function(a,b,c,d){g.cG.call(this);var e=this;this.Md=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.OW={error:function(){!e.isDisposed()&&e.isActive&&e.oa("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.oa("updateend",e)}};
g.dG(this.Md,this.OW);this.kG=this.isActive};
AL=function(a,b,c,d,e,f){g.cG.call(this);var h=this;this.dc=a;this.gh=b;this.id=c;this.containerType=d;this.ub=e;this.dh=f;this.eP=this.hE=this.Hf=null;this.eH=!1;this.appendWindowStart=this.timestampOffset=0;this.CM=rL([],[]);this.PC=!1;this.gE=[];this.hB=zBa?[]:void 0;this.Ad=function(m){return h.oa(m.type,h)};
var l;if(null==(l=this.dc)?0:l.addEventListener)this.dc.addEventListener("updateend",this.Ad),this.dc.addEventListener("error",this.Ad)};
BL=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
CL=function(a,b){this.resource=a;this.j=void 0===b?!1:b;this.B=!1};
DL=function(a,b,c){c=void 0===c?!1:c;g.H.call(this);this.mediaElement=a;this.Ta=b;this.isView=c;this.K=0;this.D=!1;this.G=!0;this.W=0;this.callback=null;this.Z=!1;this.Ta||(this.gh=this.mediaElement.Fb());this.events=new g.aL(this);g.J(this,this.events);this.C=new CL(this.Ta?window.URL.createObjectURL(this.Ta):this.gh.webkitMediaSourceURL,!0);a=this.Ta||this.gh;TC(this.events,a,["sourceopen","webkitsourceopen"],this.y$);TC(this.events,a,["sourceclose","webkitsourceclose"],this.x$);this.N={updateend:this.S2}};
ABa=function(){return!!(window.MediaSource||EL&&window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
BBa=function(a,b){FL(a)?g.If(function(){b(a)}):a.callback=b};
DBa=function(a,b,c){if(CBa){var d;GL(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.qa)?void 0:HL(d)},!1);g.dG(b,a.N,a);g.dG(c,a.N,a)}a.j=b;a.B=c;g.J(a,b);g.J(a,c)};
EBa=function(a,b,c,d){d=b.mimeType+(void 0===d?"":d);var e=c.mimeType;b=b.ub;c=c.ub;var f,h=null==(f=a.Ta)?void 0:f.addSourceBuffer(e),l;f="fakesb"===d.split(";")[0]?void 0:null==(l=a.Ta)?void 0:l.addSourceBuffer(d);a.gh&&(a.gh.webkitSourceAddId("0",e),a.gh.webkitSourceAddId("1",d));l=new AL(h,a.gh,"0",qBa(e),c,!1);d=new AL(f,a.gh,"1",qBa(d),b,!0);DBa(a,l,d)};
IL=function(a){return!!a.j||!!a.B};
FL=function(a){try{return"open"===JL(a)}catch(b){return!1}};
JL=function(a){if(a.Ta)return a.Ta.readyState;switch(a.gh.webkitSourceState){case a.gh.SOURCE_OPEN:return"open";case a.gh.SOURCE_ENDED:return"ended";default:return"closed"}};
FBa=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||EL&&window.ManagedMediaSource};
GBa=function(a){FL(a)&&(a.Ta?a.Ta.endOfStream():a.gh.webkitSourceEndOfStream(a.gh.EOS_NO_ERROR))};
HBa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Md:a.j,f=a.B.isView()?a.B.Md:a.B,h=new DL(a.mediaElement,a.Ta,!0);h.C=a.C;DBa(h,new zL(e,b,c,d),new zL(f,b,c,d));FL(a)||a.j.bq(a.j.Pc());return h};
IBa=function(a){var b;null==(b=a.j)||b.Py();var c;null==(c=a.B)||c.Py();a.G=!1};
KL=function(){var a=this;this.LZ=this.fR=paa;this.promise=new g.Kf(function(b,c){a.fR=b;a.LZ=c})};
LL=function(){g.H.call(this);this.wI=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Dd;this.qa=null;g.J(this,this.D)};
JBa=function(a){a=a.GD();return 1>a.length?NaN:a.end(a.length-1)};
KBa=function(a){!a.B&&ABa()&&(a.C?a.C.then(function(){return KBa(a)}):a.Df()||(a.B=a.Iq()))};
LBa=function(a){a.B&&(a.B.dispose(),a.B=void 0)};
GL=function(a,b,c){var d;(null==(d=a.qa)?0:d.Uc())&&a.qa.va("rms",b,void 0===c?!1:c)};
MBa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||10<c||(a.play(),g.aC(function(){MBa(a,a.getCurrentTime(),c+1)},500))};
NBa=function(a,b){a.resource&&a.resource.equals(b)||(a.resource&&a.resource.dispose(),a.resource=b)};
ML=function(a){return xL(a.Kh(),a.getCurrentTime())};
OBa=function(a,b){if(0===a.Ck()||a.hasError())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.GD(),a.length||!c)?uL(a,b):c};
QBa=function(a){a.Df()&&(PBa&&a.qa&&a.qa.yu("rs_s"),UD&&0<a.getCurrentTime()&&a.seekTo(0),a.gK(),a.load(),NBa(a,null));delete a.C};
RBa=function(a){switch(a.ph()){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.NL=function(a,b,c){this.oh=void 0===b?null:b;this.seekSource=void 0===c?null:c;this.state=a||64};
OL=function(a,b){return SBa(a,b.getCurrentTime(),(0,g.FD)(),ML(b))};
PL=function(a,b,c,d){if(!(b===a.state&&c===a.oh&&d===a.seekSource||void 0!==b&&(b&128&&!c||b&2&&b&16))){var e;if(e=b)e=b||a.state,e=!!(e&16||e&32);a=new g.NL(b,c,e?d?d:a.seekSource:null)}return a};
QL=function(a,b,c){return PL(a,a.state|b,null,void 0===c?null:c)};
RL=function(a,b){return PL(a,a.state&~b,null,null)};
SL=function(a,b,c,d){return PL(a,(a.state|b)&~c,null,void 0===d?null:d)};
g.TG=function(a,b){return!!(a.state&b)};
g.TBa=function(a,b){return b.state===a.state&&b.oh===a.oh};
g.TL=function(a){return g.TG(a,8)&&!g.TG(a,2)&&!g.TG(a,1024)};
UBa=function(a){return a.isPlaying()&&!g.TG(a,16)&&!g.TG(a,32)};
g.UL=function(a){return g.TG(a,1)&&!g.TG(a,2)};
VL=function(a){return g.TG(a,128)?-1:g.TG(a,2)?0:g.TG(a,2048)?3:g.TG(a,64)?-1:g.TG(a,1)&&!g.TG(a,32)?3:g.TG(a,8)?1:g.TG(a,4)?2:-1};
XL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){g.H.call(this);var x=this;this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.Db=e;this.Wa=f;this.Ia=h;this.Rc=l;this.dg=m;this.Hb=n;this.dF=p;this.position=r;this.R_=t;this.Da=v;this.Nh=!0;this.a_=!1;this.Jc="not_rendering";this.eE=!1;a=zJ(this.layout.Ca,"metadata_type_ad_placement_config");this.ob=new yK(c.Kb,this.Oa,a,c.layoutId);var B;a=(null==(B=WL(this))?void 0:B.progressCommands)||[];this.xaa=new wAa(n,a,c.layoutId,function(){return x.qz()});
this.UM=Jd(function(){x.callback.Bc(x.slot,x.layout)});
this.jH=Jd(function(){"rendering_stop_requested"!==x.Jc&&q(x);x.layoutExitReason?x.callback.Qc(x.slot,x.layout,x.layoutExitReason):RG("Received layout exit signal when not in layout exit flow.",x.slot,x.layout)})};
WL=function(a){return zJ(a.layout.Ca,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
WBa=function(a){0===a.position&&(a.Rc.get(),a=zJ(a.layout.Ca,"metadata_type_ad_placement_config").kind,a={adBreakType:VBa(a)},cI("ad_bl"),g.aI(a))};
YL=function(a,b,c){$H(a,c)||dI(a,b,c);$H(a,"video_to_ad")||dI(a,b,"video_to_ad");$H(a,"ad_to_video")||dI(a,b,"ad_to_video");$H(a,"ad_to_ad")||dI(a,b,"ad_to_ad")};
XBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x){XL.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,v,x);var B=this;this.Hd=m;this.DI=!0;this.hP=this.cj=0;this.timer=new g.$f(200);this.timer.Ra("tick",function(){B.Kc()});
g.J(this,this.timer)};
YBa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.u(zK()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Gd:a,Ne:["LAYOUT_TYPE_MEDIA_BREAK"]}};
$Ba=function(a){a.hP=Date.now();ZBa(a,a.cj);a.timer.start()};
ZBa=function(a,b){b={current:b/1E3,duration:a.qz()/1E3};a.Hd.get().Zn("onAdPlaybackProgress",b)};
aM=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,F,G,I){XL.call(this,a,b,c,d,e,l,m,p,r,t,x,B,F,G,I);var L=this;this.mf=f;this.ze=h;this.yc=n;this.Hd=q;this.og=v;this.adCpn="";this.KU=0;this.SW=!1;this.lf()||(this.dJ=new g.Eu(function(){L.rA("load_timeout",new wJ("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=ZL(this.Da.get()),I=$L(I.get()),a&&I&&(this.kA=new g.Eu(function(){var P=zJ(c.Ca,"metadata_type_preload_player_vars");
P&&L.ze.get().J.preloadVideoByPlayerVars(P,2,300)})))};
aCa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.u(zK()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Gd:a,Ne:["LAYOUT_TYPE_MEDIA"]}};
bCa=function(a,b,c,d,e,f,h){NK.call(this,a,b,c,d,f,h);this.j=e};
eCa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,F,G,I,L){if(FK(d,{Gd:["metadata_type_sub_layouts"],Ne:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||void 0!==d.zB&&"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"===d.layoutType){var P,V=null!=(P=d.zB)?P:zJ(d.Ca,"metadata_type_sub_layouts");a=new $Aa(a,q,L,p,r,v,b,c,d,f,h,e,I);e=[];for(f={Sv:0};f.Sv<V.length;f={Sv:f.Sv},f.Sv++){L=cCa({Bc:a.B$.bind(a),Qc:a.D$.bind(a),uF:a.uF.bind(a),sf:a.C$.bind(a)},c,V[f.Sv],l,m,n,p,q,r,t,v,x,B,F,G,function(ka){return function(sa){sa.nf(V[ka.Sv],
"normal")}}(f),f.Sv,V.length,I);
if(!L)return;e.push(L)}a.B=e;return a}if(dCa(c,I.get())&&FK(d,{Gd:[],Ne:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(v=cCa({Bc:function(){},
Qc:function(){},
uF:function(){return void QK(h,d)},
sf:function(){}},c,d,l,m,n,p,q,r,t,v,x,B,F,G,function(){},0,1,I))?new ZAa(a,v,c,d,f,h,q,L,p,e,r):v;
if(FK(d,{Gd:[],Ne:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=cCa({Bc:a.Bc.bind(a),Qc:a.Qc.bind(a),uF:function(){},
sf:a.sf.bind(a)},c,d,l,m,n,p,q,r,t,v,x,B,F,G,function(){QK(h,d)},0,1,I))?new bCa(a,p,r,v,c,e,I):c};
cCa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,F,G){if(FK(c,YBa()))return new XBa(a,b,c,d,e,l,m,p,q,r,t,function(){},x,B,F,G);
if(FK(c,aCa()))return tJ(c.Ca,"metadata_type_ad_intro")?new aM(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,function(I){q.get().Zn("onAdIntroStateChange",I)},x,B,F,G):new aM(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,function(I){q.get().cF(I)},x,B,F,G)};
dCa=function(a,b){var c=zJ(a.Ca,"metadata_type_eligible_for_ssap");return void 0===c?(RG("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.lf(c)};
bM=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Wa=d;this.Mc=e;this.Bf=f;this.Ia=h;this.ob=l;this.Oa=m;this.D=n;this.driftRecoveryMs=zJ(this.layout.Ca,"metadata_type_drift_recovery_ms")||null};
gCa=function(a){var b=zJ(a.layout.Ca,"metadata_type_layout_enter_ms"),c=zJ(a.layout.Ca,"metadata_type_layout_exit_ms");a=a.Bf.get();b=fCa(a.C,b,c);return Math.min(c,null!==b?b:Infinity)};
hCa=function(a,b){var c;cM(a.Oa.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Wa.get().yv)?void 0:c.clientPlaybackNonce,adClientData:a.layout.jc.adClientDataEntry},b)})};
iCa=function(a,b,c,d,e,f,h,l,m,n,p){bM.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.j=null;a=g.u(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,tJ(b.sb().Ca,"metadata_type_survey_overlay")&&(this.B=b.sb().layoutId)};
kCa=function(a,b){var c=jCa(a,b);a.j={Pl:c};c?c.startRendering(c.sb()):b===a.B&&RG("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
jCa=function(a,b){return null==b?null:a.C.find(function(c){return c.sb().layoutId===b})||null};
lCa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=tJ(b.Ca,"metadata_type_survey_overlay"),r,t=(null==(r=zJ(a.Ca,"metadata_type_fulfilled_layout"))?void 0:zJ(r.Ca,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.UD(c,t,2,f,d,e,a.slotId),n.Bi("ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.HC(c,t,2,f,d,e,a.slotId);n.Bi("ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return RG("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&RG("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):RG("Invalid timeline playback ID");d+f>e&&h.dG(p,e-d);return p};
mCa=function(a,b){var c=zJ(b.Ca,"metadata_type_sodar_extension_data");if(c)try{wza(0,c)}catch(d){RG("Unexpected error when loading Sodar",a,b,{error:d})}};
oCa=function(a,b,c,d,e,f){nCa(a,b,new g.SG(c,new g.NL),d,e,!1,f)};
nCa=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;iBa(c)&&RK(e,0,null)&&(!BK(a,"impression")&&h&&h(),a.Sc("impression"));BK(a,"impression")&&(g.VG(c,4)&&!g.VG(c,2)&&a.Dh("pause"),0>UG(c,4)&&!(0>UG(c,2))&&a.Dh("resume"),g.VG(c,16)&&.5<=e&&a.Dh("seek"),f&&g.VG(c,2)&&pCa(a,c.state,b,d,e))};
pCa=function(a,b,c,d,e,f,h){if(BK(a,"impression")){var l=1>=Math.abs(d-e);qCa(a,b,l?d:e,c,d,f,h&&l);l&&a.Sc("complete")}};
qCa=function(a,b,c,d,e,f,h){AK(a,1E3*c,h);0>=e||0>=c||(null==b?0:g.TG(b,16))||(null==b?0:g.TG(b,32))||(RK(c,.25*e,d)&&(f&&!BK(a,"first_quartile")&&f("first"),a.Sc("first_quartile")),RK(c,.5*e,d)&&(f&&!BK(a,"midpoint")&&f("second"),a.Sc("midpoint")),RK(c,.75*e,d)&&(f&&!BK(a,"third_quartile")&&f("third"),a.Sc("third_quartile")))};
rCa=function(a,b){BK(a,"impression")&&a.Dh(b?"fullscreen":"end_fullscreen")};
sCa=function(a){BK(a,"impression")&&a.Dh("clickthrough")};
tCa=function(a){a.Dh("active_view_measurable")};
uCa=function(a){BK(a,"impression")&&!BK(a,"seek")&&a.Dh("active_view_fully_viewable_audible_half_duration")};
vCa=function(a){BK(a,"impression")&&!BK(a,"seek")&&a.Dh("active_view_viewable")};
wCa=function(a){BK(a,"impression")&&!BK(a,"seek")&&a.Dh("audio_audible")};
xCa=function(a){BK(a,"impression")&&!BK(a,"seek")&&a.Dh("audio_measurable")};
yCa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Mc=d;this.ob=e;this.Ia=f;this.oe=h;this.Db=l;this.mf=m;this.Da=n;this.Oa=p;this.Wa=q;this.DI=!0;this.pd=this.Jc=null;this.adCpn=void 0};
zCa=function(a,b,c){var d;a.Oa.get().Bi("ads_qua","cpn."+zJ(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Wa.get().cf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
ACa=function(a,b){var c,d;a.Oa.get().Bi("ads_imp","cpn."+zJ(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Wa.get().cf(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.R(null==(d=zJ(a.layout.Ca,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,dM))};
BCa=function(a){return{enterMs:zJ(a.Ca,"metadata_type_layout_enter_ms"),exitMs:zJ(a.Ca,"metadata_type_layout_exit_ms")}};
CCa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){bM.call(this,a,b,c,d,e,h,l,m,n,q);this.oe=f;this.mf=p;this.Db=r;this.Da=t;this.pd=this.Jc=null};
DCa=function(a,b){var c;a.Oa.get().Bi("ads_imp","acpn."+(null==(c=a.Wa.get().cf(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
ECa=function(a,b,c){var d;a.Oa.get().Bi("ads_qua","cpn."+zJ(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Wa.get().cf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
FCa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,F,G,I){this.Wc=a;this.Zd=b;this.B=c;this.Wa=d;this.Mc=e;this.Ia=f;this.Oa=h;this.oe=l;this.Bf=m;this.Db=n;this.mf=p;this.ze=q;this.yc=r;this.Rc=t;this.Hd=v;this.dg=x;this.Hb=B;this.og=F;this.Da=G;this.j=I};
eM=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B){this.Wc=a;this.Zd=b;this.j=c;this.Oa=d;this.Db=e;this.mf=f;this.ze=h;this.Wa=l;this.Ia=m;this.yc=n;this.Rc=p;this.Hd=q;this.dg=r;this.Hb=t;this.og=v;this.Da=x;this.Mc=B};
GCa=function(a,b,c,d){bG.call(this,"survey-interstitial",a,b,c,d)};
fM=function(a,b,c,d,e){rK.call(this,c,a,b,d);this.Oa=e;a=zJ(b.Ca,"metadata_type_ad_placement_config");this.ob=new yK(b.Kb,e,a,b.layoutId)};
gM=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
ICa=function(a,b,c){c=void 0===c?HCa:c;c.width<HCa.width&&(c=HCa);if(a.width<c.width||a.height<c.height)return{bL:3,gG:501,errorMessage:"ad("+gM(c)+") larger than container("+gM(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{bL:3,gG:501,errorMessage:"ad("+gM(c)+") to container("+gM(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{bL:3,gG:501,errorMessage:"ad("+gM(c)+") covers container("+gM(a)+") center."}};
JCa=function(a,b){var c=zJ(a.Ca,"metadata_type_ad_placement_config");return new yK(a.Kb,b,c,a.layoutId)};
hM=function(a){return zJ(a.Ca,"metadata_type_invideo_overlay_ad_renderer")};
KCa=function(a,b,c,d){bG.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
iM=function(a,b,c,d,e,f,h,l,m,n,p,q){rK.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Ia=l;this.Hb=m;this.Da=n;this.K=p;this.G=q;this.ob=JCa(b,c)};
LCa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];zK().forEach(function(b){a.push(b)});
return{Gd:a,Ne:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
jM=function(a,b,c,d,e,f,h,l,m,n,p,q,r){rK.call(this,f,a,b,e);this.Oa=c;this.D=h;this.N=l;this.Ia=m;this.Hb=n;this.Da=p;this.K=q;this.G=r;this.ob=JCa(b,c)};
MCa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.u(zK()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Gd:a,Ne:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
kM=function(a){this.Ia=a;this.j=!1};
NCa=function(a,b,c){bG.call(this,"survey",a,{},b,c)};
OCa=function(a,b,c,d,e,f,h){rK.call(this,c,a,b,d);this.D=e;this.Ia=f;this.Da=h};
PCa=function(a,b,c,d,e,f,h,l,m,n){this.lc=a;this.Ia=b;this.Oa=c;this.D=d;this.Db=e;this.B=f;this.C=h;this.Hb=l;this.Da=m;this.j=n};
QCa=function(a,b,c,d,e,f,h,l,m,n){this.lc=a;this.Ia=b;this.Oa=c;this.D=d;this.Db=e;this.B=f;this.C=h;this.Hb=l;this.Da=m;this.j=n};
lM=function(a,b,c,d,e,f,h,l,m){JK.call(this,a,b,c,d,e,f,h,m);this.Tm=l};
RCa=function(){var a=SAa();a.Gd.push("metadata_type_ad_info_ad_metadata");return a};
SCa=function(a,b,c,d,e,f){this.lc=a;this.Ia=b;this.Oa=c;this.B=d;this.Tm=e;this.j=f};
TCa=function(a,b,c,d,e,f,h){this.lc=a;this.Ia=b;this.Oa=c;this.B=d;this.Tm=e;this.j=f;this.Da=h};
mM=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
nM=function(a,b){this.j=a;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
var c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
oM=function(a,b,c){this.Or=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
pM=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
qM=function(a,b,c,d){this.Or=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=d||a(this.triggerType)};
UCa=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
rM=function(a,b,c){this.triggeringLayoutId=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
sM=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
tM=function(a,b,c,d){this.triggeringLayoutId=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=d||a(this.triggerType)};
VCa=function(a){switch(a){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new xJ("Invalid layout exit reason: "+
a)}};
uM=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
WCa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
XCa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
YCa=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
vM=function(a,b,c,d,e){this.Or=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)};
wM=function(a,b,c,d,e){this.Or=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=e||a(this.triggerType)};
ZCa=function(a,b,c){this.Or=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
xM=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)};
$Ca=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)};
yM=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
zM=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
yza=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)};
aDa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
bDa=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)};
AM=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
cDa=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)};
BM=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
CM=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
DM=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
EM=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
FM=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
GM=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=c||a(this.triggerType)};
YM=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
ZM=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
dDa=function(a,b){this.durationMs=45E3;this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
$M=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
aN=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
eDa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
fDa=function(a){return!!(a.q7&&a.slot&&a.layout)};
gDa=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
hDa=function(a){if(!aN(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.R(a,LK)||g.R(a,WAa)?!0:!1};
bN=function(a){return void 0!==a.playerVars&&void 0!==a.pings&&void 0!==a.externalVideoId};
gN=function(a){if(!aN(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.R(a,iDa);return b?jDa(b):(b=g.R(a,cN))?bN(b):(b=g.R(a,dN))?void 0!==b.playerVars:(b=g.R(a,LK))?void 0!==b.durationMilliseconds:g.R(a,eN)||g.R(a,fN)?!0:!1};
jDa=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.R(b,kDa)});
return 0<a.length&&a.every(gN)};
oDa=function(a){if(!aN(a.adLayoutMetadata))return!1;if(g.R(a.renderingContent,lDa))return!0;a=g.R(a.renderingContent,hN);return g.R(null==a?void 0:a.sidePanel,mDa)||g.R(null==a?void 0:a.sidePanel,nDa)?!0:!1};
rDa=function(a){var b=a.adSlotMetadata;if(void 0===(null==b?void 0:b.slotId)||void 0===(null==b?void 0:b.slotType)||!(pDa(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=null==(c=a.fulfillmentContent)?void 0:c.fulfilledLayout;return(c=g.R(a,kDa))?gN(c):(c=g.R(a,iN))?oDa(c):(c=g.R(a,qDa))?hDa(c):!1};
pDa=function(a){var b;a=g.R(null==(b=a.fulfillmentContent)?void 0:b.fulfilledLayout,iN);var c;return a&&"LAYOUT_TYPE_PANEL_QR_CODE"===(null==(c=a.adLayoutMetadata)?void 0:c.layoutType)};
tDa=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.u(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=(null==(c=g.R(b,jN))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.R(b,kN))?void 0:d.surveyAdQuestionCommon);if(!sDa(e))return!1}return!0};
uDa=function(a){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(a)if(a.playbackCommands&&a.questions&&1===a.questions.length){var c,d=(null==(b=g.R(a.questions[0],jN))?void 0:b.surveyAdQuestionCommon)||(null==(c=g.R(a.questions[0],kN))?void 0:c.surveyAdQuestionCommon);b=sDa(d)}else b=!1;else b=!1;return b};
sDa=function(a){if(!a)return!1;a=g.R(a.instreamAdPlayerOverlay,vDa);var b=g.R(null==a?void 0:a.skipOrPreviewRenderer,dM),c=g.R(null==a?void 0:a.adInfoRenderer,lN);return(g.R(null==a?void 0:a.skipOrPreviewRenderer,mN)||b)&&c?!0:!1};
wDa=function(a){return null!=a.linearAds&&aN(a.adLayoutMetadata)};
xDa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
yDa=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.R(a.ctaButton,g.nN)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.R(a.backgroundImage,oN)&&(null==(b=g.R(a.backgroundImage,oN))?0:b.landscape)?!0:!1};
pN=function(a,b,c,d,e,f,h){g.H.call(this);this.Da=a;this.Qb=b;this.Mb=c;this.xe=d;this.Wa=e;this.B=f;this.j=h};
CDa=function(a,b,c){var d,e=(null!=(d=c.adSlots)?d:[]).map(function(f){return g.R(f,zDa)});
c.BB?zJ(b.Ca,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?oK(a.Qb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Da.get().J.U().L("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.Su.filter(function(f){var h;
return null!=(null==(h=f.renderer)?void 0:h.clientForecastingAdRenderer)}),0!==d.length?ADa(a.j,d,e,b.slotId,c.ssdaiAdsConfig):oK(a.Qb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):oK(a.Qb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),BDa(a.B,b)):ADa(a.j,c.Su,e,b.slotId,c.ssdaiAdsConfig)};
EDa=function(a,b,c,d,e,f){var h=a.Wa.get().cf(1);oK(a.Qb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return DDa(a.xe.get(),c,d,e,h.clientPlaybackNonce,h.Cs,h.daiEnabled,h,f)},b)};
HDa=function(a,b,c,d,e,f,h){b=FDa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof xJ?b:GDa(a,d,e,b,c);return a instanceof xJ?a:[a]};
IDa=function(a,b,c,d,e){var f=pK(a.fb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new kJ({getAdBreakUrl:d.getAdBreakUrl,RQ:0,QQ:0}),new Kya(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new GM(a.j,f),slotFulfillmentTriggers:[new UCa(a.j)],slotExpirationTriggers:[new zM(a.j,e),new DM(a.j,f)],Ya:"core",Ca:new yJ(d),adSlotLoggingData:c}:new xJ("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new xJ("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
return a instanceof xJ?a:[a]};
JDa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
qN=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new oM(vJ,b,a.id):new xJ("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=null!=(d=a.layoutIdExitedTrigger)&&d.triggeringLayoutId?new uM(vJ,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new xJ("Not able to create LayoutIdExitedTrigger")}else{if(a.layoutExitedForReasonTrigger){var e,f;(null==(e=a.layoutExitedForReasonTrigger)?0:e.triggeringLayoutId)&&
(null==(f=a.layoutExitedForReasonTrigger)?0:f.layoutExitReason)?(b=VCa(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof xJ?b:new tM(vJ,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):a=new xJ("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var h;b=null!=(h=a.onLayoutSelfExitRequestedTrigger)&&h.triggeringLayoutId?new yM(vJ,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new xJ("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=
a.onNewPlaybackAfterContentVideoIdTrigger?new zM(vJ,b,a.id):new xJ("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=null!=(l=a.skipRequestedTrigger)&&l.triggeringLayoutId?new BM(vJ,a.skipRequestedTrigger.triggeringLayoutId,a.id):new xJ("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var m;b=null!=(m=a.slotIdEnteredTrigger)&&m.triggeringSlotId?new CM(vJ,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new xJ("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var n;
b=null!=(n=a.slotIdExitedTrigger)&&n.triggeringSlotId?new DM(vJ,a.slotIdExitedTrigger.triggeringSlotId,a.id):new xJ("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var p;b=null!=(p=a.surveySubmittedTrigger)&&p.triggeringLayoutId?new ZM(vJ,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new xJ("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new YCa(a.id):new xJ("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q;
b=null!=(q=a.closeRequestedTrigger)&&q.triggeringLayoutId?new pM(vJ,a.closeRequestedTrigger.triggeringLayoutId,a.id):new xJ("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var r;b=null!=(r=a.slotIdScheduledTrigger)&&r.triggeringSlotId?new GM(vJ,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new xJ("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var t;d=Number(null==(t=a.mediaTimeRangeTrigger)?void 0:t.offsetStartMilliseconds);var v;h=Number(null==
(v=a.mediaTimeRangeTrigger)?void 0:v.offsetEndMilliseconds);isFinite(d)&&isFinite(h)?(v=h,-1===v&&(v=c),c=d>v?new xJ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:v},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",v===c&&d-500<=v):new fv(d,v),a=c instanceof xJ?c:new wM(vJ,b,c,!1,a.id)):a=new xJ("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new qM(vJ,b,!1,a.id):new xJ("Not able to create ContentVideoIdEndedTrigger");
else{if(a.layoutIdEnteredTrigger){var x;b=null!=(x=a.layoutIdEnteredTrigger)&&x.triggeringLayoutId?new sM(vJ,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new xJ("Not able to create LayoutIdEnteredTrigger")}else b=new xJ("Not able to convert an AdsControlflowTrigger.");a=b}b=a}a=b}b=a}a=b}b=a}a=b}b=a}a=b}return a};
LDa=function(a,b,c,d,e,f,h,l){return null===b?new xJ("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[KDa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new yJ([new DI(d),new HI(e)]);n=cK(c.fb.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Kb:new Map,
layoutExitNormalTriggers:[new zM(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:q,jc:m(r),adLayoutLoggingData:p}})]};
MDa=function(a,b,c,d,e,f,h,l){return null===b?new xJ("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[KDa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new yJ([new EI(d),new HI(e)]);n=cK(c.fb.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
Kb:new Map,layoutExitNormalTriggers:[new zM(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:q,jc:m(r),adLayoutLoggingData:p}})]};
QDa=function(a,b,c,d,e,f){if(!f)for(b=g.u(b),f=b.next();!f.done;f=b.next())f=f.value,rN(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return NDa(p)});
b=[];f=g.u(a);for(var h=f.next(),l={};!h.done;l={fv:void 0},h=f.next()){l.fv=h.value;h=g.u(l.fv.lM);for(var m=h.next(),n={};!m.done;n={Um:void 0},m=h.next())n.Um=m.value,m=function(p,q){return function(r){return p.Um.aN(r,q.fv.instreamVideoAdRenderer.elementId,p.Um.kM)}}(n,l),n.Um.isContentVideoCompanion?b.push(ODa(c,d,e,l.fv.instreamVideoAdRenderer.elementId,n.Um.associatedCompositePlayerBytesLayoutId,n.Um.adSlotLoggingData,m)):1<a.length?b.push(PDa(c,d,e,l.fv.instreamVideoAdRenderer.elementId,n.Um.adSlotLoggingData,
function(p,q){return function(r){return p.Um.aN(r,q.fv.instreamVideoAdRenderer.elementId,p.Um.kM,p.Um.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(PDa(c,d,e,l.fv.instreamVideoAdRenderer.elementId,n.Um.adSlotLoggingData,m))}return b};
rN=function(a,b,c){if(b=RDa(b)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=SDa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.WD=c)}else RG("InstreamVideoAdRenderer without externalVideoId")}};
RDa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.R(a.sandwichedLinearAdRenderer.linearAd,cN);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.u(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.R(c,cN)&&b.push(g.R(c,cN));return b}return null};
NDa=function(a){if(void 0===a.instreamVideoAdRenderer)return RG("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.u(a.lM),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.aN)return!1;if(void 0===c.kM)return RG("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.WD||void 0===c.JG||a.WD!==c.JG&&"AD_PLACEMENT_KIND_SELF_START"!==c.JG)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return RG("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.WD,"matching APSR kind":c.JG}),!1}return!0};
SDa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,WD:void 0,adVideoId:b,lM:[]});return a.get(b)};
sN=function(a,b,c,d,e,f,h,l,m){e?SDa(a,e).lM.push({Qhb:b,JG:c,isContentVideoCompanion:d,kM:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,aN:m}):RG("Companion AdPlacementSupportedRenderer without adVideoId")};
TDa=function(a){var b,c=null==(b=zJ(a.Ca,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=zJ(a.Ca,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=zJ(a.Ca,"metadata_type_content_cpn"),f=zJ(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),h=zJ(a.Ca,"metadata_type_player_underlay_renderer"),l=zJ(a.Ca,"metadata_type_ad_placement_config"),m=zJ(a.Ca,"metadata_type_video_length_seconds");var n=tJ(a.Ca,"metadata_type_layout_enter_ms")&&tJ(a.Ca,
"metadata_type_layout_exit_ms")?(zJ(a.Ca,"metadata_type_layout_exit_ms")-zJ(a.Ca,"metadata_type_layout_enter_ms"))/1E3:void 0;return{iq:d,contentCpn:e,FQ:c,mM:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,cJ:n,inPlayerLayoutId:zJ(a.Ca,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:zJ(a.Ca,"metadata_type_linked_in_player_slot_id")}};
WDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){d=pK(d,"SLOT_TYPE_PLAYER_BYTES");a=UDa(e,a,h,c,d,m,n);if(a instanceof xJ)return a;var x;n=null==(x=zJ(a.Ca,"metadata_type_fulfilled_layout"))?void 0:x.layoutId;if(!n)return new xJ("Invalid adNotify layout");b=VDa(n,e,f,c,l,b,m,p,q,r,t,v,h);return b instanceof xJ?b:[a].concat(g.oa(b))};
VDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=XDa(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof xJ)return c;a=YDa(b,a,h,e,c);return a instanceof xJ?a:[].concat(g.oa(a.rg),[a.Qw])};
$Da=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=XDa(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof xJ)return b;a=ZDa(a,c,f,h,d,l.Ac,b);return a instanceof xJ?a:a.rg.concat(a.Qw)};
XDa=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=tN(d,c,n);return r instanceof wJ?new xJ(r):n.J.U().experiments.jb("html5_refactor_in_player_slot_generation")?function(t){var v=new nM(0,[r.bp]);t=aEa(b,r.layoutId,r.Do,c,uN(r.playerVars,r.aB,f,m,v),r.bp,e,v,h(t),l.get(r.Do.externalVideoId),q);v=[];if(r.Do.playerOverlay.instreamAdPlayerOverlayRenderer){var x=TDa(t);if(!x)return RG("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,rg:[]};
v=[bEa(a,x.contentCpn,x.iq,function(F){return vN(b,F.slotId,"core",x,DJ(p,F))},x.inPlayerSlotId)].concat(g.oa(v));
if(x.instreamAdPlayerUnderlayRenderer&&cEa(n)){var B=x.instreamAdPlayerUnderlayRenderer;v=[dEa(a,x.contentCpn,x.iq,function(F){return eEa(b,F.slotId,B,x.adPlacementConfig,x.iq,DJ(p,F))})].concat(g.oa(v))}}return{layout:t,
rg:v}}:function(t){var v=new nM(0,[r.bp]);
return{layout:aEa(b,r.layoutId,r.Do,c,uN(r.playerVars,r.aB,f,m,v),r.bp,e,v,h(t),l.get(r.Do.externalVideoId),q),rg:[]}}};
tN=function(a,b,c){if(!a.playerVars)return new wJ("No playerVars available in InstreamVideoAdRenderer.");var d,e;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(d=a.playerOverlay)?void 0:d.instreamAdPlayerOverlayRenderer)&&null==(null==(e=a.playerOverlay)?void 0:e.playerOverlayLayoutRenderer)||null==a.pings||null==a.externalVideoId)return new wJ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=SB(a.playerVars);e=Number(d.length_seconds);
isNaN(e)&&(e=0,RG("Expected valid length seconds in player vars but got NaN"));if(c.lf("AD_PLACEMENT_KIND_START"===b.kind)){if(void 0===a.layoutId)return new wJ("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,Do:a,playerVars:d,aB:a.playerVars,bp:e}};
uN=function(a,b,c,d,e){a.iv_load_policy=d;b=SB(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){RG(f)}c.wk&&(a.ctrl=c.wk);c.vl&&(a.ytr=c.vl);c.qv&&(a.ytrcc=c.qv);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Hm&&(a.vss_credentials_token_type=c.Hm),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.B&&(a.slot_pos=e.j);a.autoplay="1";return a};
fEa=function(a){var b=new Map;a=g.u(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.renderer.remoteSlotsRenderer)&&c.hostElementId&&b.set(c.hostElementId,c);return b};
iEa=function(a,b,c,d,e,f,h,l,m,n,p){for(var q=[],r=g.u(a),t=r.next();!t.done;t=r.next()){t=t.value;var v;if(v=!pDa(t)){var x=void 0;v="SLOT_TYPE_IN_PLAYER"!==(null==t?void 0:null==(x=t.adSlotMetadata)?void 0:x.slotType)}if(v){x="SLOT_TRIGGER_EVENT_BEFORE_CONTENT"===t.adSlotMetadata.triggerEvent;var B=m.lf(x),F=gEa(t,n,d,c.Cs,B);if(F instanceof xJ)return F;var G=[];c.Ac&&G.push(new qJ({}));var I=void 0;v={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:null!=
(I=t.adSlotMetadata.slotPhysicalPosition)?I:1,Ya:"core",slotEntryTrigger:F.slotEntryTrigger,slotFulfillmentTriggers:F.slotFulfillmentTriggers,slotExpirationTriggers:F.slotExpirationTriggers};if(F=g.R(t.fulfillmentContent.fulfilledLayout,kDa)){if(!gN(F))return new xJ("Invalid PlayerBytesAdLayoutRenderer");B=hEa(v,t.adSlotMetadata.triggerEvent,F,b,c,d,e,f,h,l,m,n,a,p,B);if(B instanceof xJ)return B;G.push(new sJ(x));t=Object.assign({},v,{Ca:new yJ(G),fulfilledLayout:B.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});
q.push.apply(q,g.oa(B.rg));q.push(t)}else if(x=g.R(t.fulfillmentContent.fulfilledLayout,iN),B=G=void 0,"LAYOUT_TYPE_PANEL_QR_CODE"!==(null==(G=x)?void 0:null==(B=G.adLayoutMetadata)?void 0:B.layoutType))if(x){if(!oDa(x))return new xJ("Invalid PlayerUnderlayAdLayoutRenderer");G=x;F=d;var L=c.Cs;I=f;B=v;x=t.adSlotMetadata.triggerEvent;if("LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"===G.adLayoutMetadata.layoutType){var P=g.R(G.renderingContent,hN);if(P)if(P=g.R(P.sidePanel,nDa)){var V={layoutId:G.adLayoutMetadata.layoutId,
layoutType:G.adLayoutMetadata.layoutType,Ya:"core"};F=wN(G,F,L);x=F instanceof xJ?F:Object.assign({},V,{renderingContent:G.renderingContent,Kb:new Map([["impression",P.impressionPings||[]],["resume",P.resumePings||[]]])},F,{jc:DJ(I,B)(V),Ca:new yJ([new HI(xN(x))]),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData})}else x=new xJ("DismissablePanelTextPortraitImageRenderer is missing");else x=new xJ("SqueezebackPlayerSidePanelRenderer is missing")}else"LAYOUT_TYPE_DISPLAY_TRACKING"===G.adLayoutMetadata.layoutType?
g.R(G.renderingContent,lDa)?(P={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,Ya:"core"},F=wN(G,F,L),x=F instanceof xJ?F:Object.assign({},P,{renderingContent:G.renderingContent,Kb:new Map},F,{jc:DJ(I,B)(P),Ca:new yJ([new HI(xN(x))]),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData})):x=new xJ("CounterfactualRenderer is missing"):x=new xJ("LayoutType ["+G.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");if(x instanceof xJ)return x;t=Object.assign({},
v,{Ca:new yJ([]),fulfilledLayout:x,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else return new xJ("Unable to retrieve a client slot ["+v.slotType+"] from a given AdSlotRenderer")}}return q};
hEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){var x=wN(c,f,e.Cs);if(x instanceof xJ)return x;if(g.R(c.renderingContent,cN)){m=jEa([c],e,m);if(m instanceof xJ)return m;if(1!==m.length)return new xJ("Only expected one media layout.");a=kEa(a,b,c,x,m[0],void 0,"core",d,f,h,l,n,r,t);if(a instanceof xJ)return a;b=[];if(t){e=lEa(r,a,f,e.Cs,l,q,v);if(e instanceof xJ)return e;e&&b.push(e)}return{layout:a,rg:b}}var B=g.R(c.renderingContent,iDa);if(B){if(!aN(c.adLayoutMetadata))return new xJ("Invalid ad layout metadata");
if(!jDa(B))return new xJ("Invalid sequential layout");B=B.sequentialLayouts.map(function(F){return F.playerBytesAdLayoutRenderer});
e=mEa(a,b,c.adLayoutMetadata,x,B,d,f,e,m,h,l,n,p,q,v,r,t);return e instanceof xJ?e:{layout:e.X4,rg:e.rg}}return new xJ("Not able to convert a sequential layout")};
mEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B){var F=new LI({current:null}),G=jEa(e,l,m);if(G instanceof xJ)return G;m=[];for(var I=[],L=void 0,P=0;P<e.length;P++){var V=e[P];if(g.R(V.renderingContent,cN)){L=kEa(a,b,V,nEa,G[P],ZL(r)&&$L(r)?G[P+1]:void 0,"adapter",f,h,n,p,q,x,B);if(L instanceof xJ)return L;if(B){V=lEa(x,L,h,l.Cs,p,t,v);if(V instanceof xJ)return V;V&&I.push(V)}m.push(L);L=G[P]}else if(g.R(V.renderingContent,dN)){var ka=a,sa=p;if(gN(V)){var ta=g.R(V.renderingContent,dN);if(ta&&void 0!==
ta.playerVars){var la={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,Ya:"adapter"};ta=SB(ta.playerVars);ta.autoplay="1";V=Object.assign({},la,nEa,{renderingContent:V.renderingContent,Ca:new yJ([new hJ({}),new HI({kind:"AD_PLACEMENT_KIND_START"}),new XI({current:null}),new aJ(ta)]),Kb:new Map,jc:DJ(sa,ka)(la),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData})}else V=new xJ("Invalid ad intro renderer")}else V=new xJ("Invalid PlayerBytesAdLayoutRenderer");if(V instanceof
xJ)return V;m.push(V)}else if(g.R(V.renderingContent,LK))if(B){V=oEa(a,V,p,xN(b),L);if(V instanceof xJ)return V;m.push(V);V=lEa(x,V,h,l.Cs,p,t,v,F);if(V instanceof xJ)return V;if(V)I.push(V);else return new xJ("Not able to retrieve InPlayer slot for endcap")}else{a:{ka=V.adLayoutMetadata.layoutId;sa=g.u(f);for(la=sa.next();!la.done;la=sa.next()){la=la.value;var qa=ta=void 0,ba=(null==(ta=la.renderer)?void 0:null==(qa=ta.linearAdSequenceRenderer)?void 0:qa.linearAds)||[];ta=g.u(ba);for(qa=ta.next();!qa.done;qa=
ta.next())if((qa=g.R(qa.value,LK))&&void 0!==qa.inPlayerSlotId&&void 0!==qa.inPlayerLayoutId&&void 0!==qa.associatedPlayerBytesLayoutId&&qa.associatedPlayerBytesLayoutId===ka){ka={BH:qa,adPlacementConfig:la.config.adPlacementConfig};break a}}ka=new xJ("Not able to find associated InPlayer slot for endcap")}if(ka instanceof xJ)return ka;V=oEa(a,V,p,ka.adPlacementConfig,L);if(V instanceof xJ)return V;m.push(V);V=pEa(V.layoutId,t,h,ka,F,p);if(V instanceof xJ)return V;I.push(V)}}b={layoutId:c.layoutId,
layoutType:c.layoutType,Ya:"core"};return{X4:Object.assign({},b,d,{zB:m,Kb:new Map,Ca:new yJ([F]),jc:DJ(p,a)(b)}),rg:I}};
kEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){if(!gN(c))return new xJ("Invalid PlayerBytesAdLayoutRenderer");var v=g.R(c.renderingContent,cN);(null==v?0:v.pings)?v=xK(v.pings):(v=g.R(c.renderingContent,LK),v=(null==v?0:v.skipPings)?new Map([["skip",v.skipPings]]):new Map);if(v instanceof xJ)return v;h={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Ya:h};a:{var x=c.adLayoutMetadata.layoutId,B=g.R(c.renderingContent,cN);if(B&&bN(B)){var F=[];if(t)F.push(new HI(xN(b)));else{b:{l=
g.u(l);for(b=l.next();!b.done;b=l.next()){b=b.value;t=RDa(b.renderer)||[];var G=g.u(t);for(t=G.next();!t.done;t=G.next())if(t=t.value,t.associatedPlayerBytesLayoutId===x){t.associatedPlayerBytesLayoutId?(l=t.playerOverlay,G=void 0!==l&&void 0!==l.playerOverlayLayoutRenderer&&void 0!==l.playerOverlayLayoutRenderer.inPlayerSlotId&&void 0!==l.playerOverlayLayoutRenderer.inPlayerLayoutId,l=void 0!==l&&void 0!==l.instreamAdPlayerOverlayRenderer&&void 0!==l.instreamAdPlayerOverlayRenderer.inPlayerSlotId&&
void 0!==l.instreamAdPlayerOverlayRenderer.inPlayerLayoutId||G):l=!1;b=l?{instreamVideoAdRenderer:t,adPlacementConfig:b.config.adPlacementConfig}:new xJ("Invalid InPlayer shim");break b}}b=new xJ("Not able to find associated InPlayer slot")}if(b instanceof xJ){f=b;break a}l=b.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;t=b.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var I;G=null!=(I=null==l?void 0:l.inPlayerSlotId)?I:null==t?void 0:t.inPlayerSlotId;
var L;I=null!=(L=null==l?void 0:l.inPlayerLayoutId)?L:null==t?void 0:t.inPlayerLayoutId;if(void 0===G){f=new xJ("InPlayer shim slot id is undefined");break a}if(void 0===I){f=new xJ("InPlayer shim layout id is undefined");break a}F.push(new II(e.Fy),new UI(I),new WI(G),new fJ(e.Fy.j),new HI(b.adPlacementConfig));l&&F.push(new OI(l));t&&F.push(new PI(t))}F.push(new MI(B.externalVideoId),new NI(m),new pJ({impressionCommands:B.impressionCommands,abandonCommands:B.onAbandonCommands,completeCommands:B.completeCommands,
progressCommands:B.adVideoProgressCommands}),new aJ(e.KC),new XI({current:null}),new $I(e.naa.bp),new rJ(wK(B.pings)));b:{e=g.u(r);for(m=e.next();!m.done;m=e.next())if(m=m.value,"SLOT_TYPE_PLAYER_UNDERLAY"===m.adSlotMetadata.slotType&&(r=g.R(m.fulfillmentContent.fulfilledLayout,iN))&&(r=g.R(r.renderingContent,hN))&&r.associatedPlayerBytesLayoutId===x){x=m;break b}x=void 0}x&&F.push(new RI(x));f&&F.push(new bJ(f.KC));B.adNextParams&&F.push(new FI(B.adNextParams));B.clickthroughEndpoint&&F.push(new GI(B.clickthroughEndpoint));
B.legacyInfoCardVastExtension&&F.push(new oJ(B.legacyInfoCardVastExtension));B.sodarExtensionData&&F.push(new cJ(B.sodarExtensionData));(f=n.get(B.externalVideoId))&&F.push(new lJ(f));f=new yJ(F)}else f=new xJ("Invalid vod media renderer")}if(f instanceof xJ)return f;a=Object.assign({},h,d,{Kb:v,renderingContent:c.renderingContent,Ca:f,jc:DJ(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.R(c.renderingContent,cN);if(!c||!bN(c))return new xJ("Invalid meida renderer");q=SDa(q,
c.externalVideoId);q.instreamVideoAdRenderer=c;q.WD="AD_PLACEMENT_KIND_START";return a};
oEa=function(a,b,c,d,e){if(!gN(b))return new xJ("Invalid PlayerBytesAdLayoutRenderer");var f=g.R(b.renderingContent,LK);if(!f||void 0===f.durationMilliseconds)return new xJ("Invalid endcap renderer");var h={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,Ya:"adapter"};d=[new nJ(f.durationMilliseconds),new pJ({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new HI(d),
new VI("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new JI(e.Fy.j-1));d.push(new fJ(e.Fy.j));var l;d.push(new KI(null!=(l=e.adPodSkipTarget)?l:-1))}return Object.assign({},h,nEa,{renderingContent:b.renderingContent,Ca:new yJ(d),Kb:f.skipPings?new Map([["skip",f.skipPings]]):new Map,jc:DJ(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})};
lEa=function(a,b,c,d,e,f,h,l){a=a.filter(function(n){return"SLOT_TYPE_IN_PLAYER"===n.adSlotMetadata.slotType&&n.adSlotMetadata.triggeringSourceLayoutId===b.layoutId});
if(0!==a.length){if(1!==a.length)return new xJ("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];h=gEa(a,f,c,d,h);if(h instanceof xJ)return h;var m;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:null!=(m=a.adSlotMetadata.slotPhysicalPosition)?m:1,Ya:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};m=g.R(a.fulfillmentContent.fulfilledLayout,
qDa);if(!m||!hDa(m))return new xJ("Invalid InPlayerAdLayoutRenderer");h={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Ya:"core"};c=wN(m,c,d);if(c instanceof xJ)return c;d=[];if("LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===m.adLayoutMetadata.layoutType)d.push.apply(d,g.oa(qEa(a.adSlotMetadata.triggerEvent,b)));else if("LAYOUT_TYPE_ENDCAP"===m.adLayoutMetadata.layoutType)d.push(new HI(xN(a.adSlotMetadata.triggerEvent))),l&&d.push(l);else return new xJ("Not able to parse an SDF InPlayer layout");
e=Object.assign({},h,c,{renderingContent:m.renderingContent,Kb:new Map,jc:DJ(e,f)(h),Ca:new yJ(d)});return Object.assign({},f,{fulfilledLayout:e,Ca:new yJ([])})}};
qEa=function(a,b){var c=[];c.push(new HI(xN(a)));c.push(new TI(b.layoutId));(a=zJ(b.Ca,"metadata_type_player_bytes_callback_ref"))&&c.push(new XI(a));(b=zJ(b.Ca,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new LI(b));return c};
pEa=function(a,b,c,d,e,f){function h(n){return yN(b,n)}
var l=d.BH.inPlayerSlotId,m={layoutId:d.BH.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Ya:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:new sM(h,a),slotFulfillmentTriggers:[new CM(h,l)],slotExpirationTriggers:[new DM(h,l),new zM(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new uM(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Kb:new Map,Ca:new yJ([new SI(d.BH),new HI(d.adPlacementConfig),
e]),jc:DJ(f,c)(m),adLayoutLoggingData:d.BH.adLayoutLoggingData});return Object.assign({},c,{Ca:new yJ([new jJ(a)])})};
gEa=function(a,b,c,d,e){var f=rEa(qN(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof xJ)return f;for(var h=[],l=g.u(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=qN(m.value,c,d);if(m instanceof xJ)return m;h.push(m)}h=sEa(h,e,a,b);b=[];a=g.u(a.slotExpirationTriggers);for(m=a.next();!m.done;m=a.next()){m=qN(m.value,c,d);if(m instanceof xJ)return m;b.push(m)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}};
rEa=function(a,b,c,d){return b&&"SLOT_TYPE_PLAYER_BYTES"===c.adSlotMetadata.slotType&&a instanceof oM?new mM(function(e){return yN(d,e)},c.adSlotMetadata.slotId):a};
sEa=function(a,b,c,d){return b&&"SLOT_TYPE_PLAYER_BYTES"===c.adSlotMetadata.slotType?a.map(function(e){return e instanceof CM?new GM(function(f){return yN(d,f)},c.adSlotMetadata.slotId):e}):a};
wN=function(a,b,c){for(var d=[],e=g.u(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=qN(f.value,b,c);if(f instanceof xJ)return f;d.push(f)}e=[];var h=g.u(a.layoutExitSkipTriggers||[]);for(f=h.next();!f.done;f=h.next()){f=qN(f.value,b,c);if(f instanceof xJ)return f;e.push(f)}h=[];var l=g.u(a.layoutExitMuteTriggers||[]);for(f=l.next();!f.done;f=l.next()){f=qN(f.value,b,c);if(f instanceof xJ)return f;h.push(f)}l=[];a=g.u(a.layoutExitUserInputSubmittedTriggers||[]);for(f=a.next();!f.done;f=
a.next()){f=qN(f.value,b,c);if(f instanceof xJ)return f;l.push(f)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:h,layoutExitUserInputSubmittedTriggers:l,Vc:[]}};
jEa=function(a,b,c){for(var d=[],e=g.u(a),f=e.next();!f.done;f=e.next())if(f=g.R(f.value.renderingContent,cN)){if(!bN(f))return new xJ("Invalid vod media renderer");d.push(tEa(f))}e=d.map(function(q){return q.bp});
f=[];for(var h=0,l=0;l<a.length;l++){var m=g.R(a[l].renderingContent,cN);if(m){var n=new nM(h,e),p=uN(d[h].playerVars,d[h].aB,b,c,n);f[l]={Fy:n,adPodSkipTarget:m.adPodSkipTarget,naa:d[h],KC:p};h++}}return f};
tEa=function(a){var b=SB(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,RG("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,aB:a.playerVars,bp:c}};
xN=function(a){switch(a){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}};
uEa=function(a){var b=0;a=g.u(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.R(c,jN)||g.R(c,kN)){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
vEa=function(a){var b,c,d,e,f=(null==(c=g.R(null==(b=a.questions)?void 0:b[0],jN))?void 0:c.surveyAdQuestionCommon)||(null==(e=g.R(null==(d=a.questions)?void 0:d[0],kN))?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.oa((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.oa((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,t,v,x,B,F,G,I,L,P,V,ka,sa,ta,la;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==(t=a.playbackCommands)?void 0:t.resumeCommands,skipCommands:null==(v=a.playbackCommands)?void 0:v.skipCommands,progressCommands:null==(x=a.playbackCommands)?void 0:x.progressCommands,dib:null==
(B=a.playbackCommands)?void 0:B.clickthroughCommands,fullscreenCommands:null==(F=a.playbackCommands)?void 0:F.fullscreenCommands,activeViewViewableCommands:null==(G=a.playbackCommands)?void 0:G.activeViewViewableCommands,activeViewMeasurableCommands:null==(I=a.playbackCommands)?void 0:I.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(L=a.playbackCommands)?void 0:L.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null==(P=a.playbackCommands)?
void 0:null==(V=P.activeViewTracking)?void 0:V.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(ka=a.playbackCommands)?void 0:null==(sa=ka.activeViewTracking)?void 0:sa.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(ta=a.playbackCommands)?void 0:ta.endFullscreenCommands,abandonCommands:null==(la=a.playbackCommands)?void 0:la.abandonCommands,completeCommands:b}};
yEa=function(a,b,c,d,e,f,h){return function(l,m){return wEa(a,m.slotId,l,f,function(n,p){var q=m.layoutId;n=h(n);return xEa(b,q,p,e,n,"LAYOUT_TYPE_SURVEY",[new Bya(c),d],c.adLayoutLoggingData)})}};
BEa=function(a,b,c,d,e,f,h){if(!zEa(a))return new xJ("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[AEa(f,b,c,d,function(m){var n=m.slotId;m=h(m);n=cK(e.fb.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ya:"core"},q=new uM(e.j,d);return{layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Kb:new Map,layoutExitNormalTriggers:[q],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new yJ([new Cya(l)]),jc:m(p)}})]};
zEa=function(a){a=g.R(null==a?void 0:a.additionalPlayerOverlay,CEa);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
EEa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!uDa(a))return function(){return new xJ("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=uEa(h);return 0>=l?function(){return new xJ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=DEa(m,c,d,function(q){var r=q.slotId;
q=n(q);var t=vEa(h);r=cK(e.fb.get(),"LAYOUT_TYPE_SURVEY",r);var v={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Ya:"core"},x=new uM(e.j,d),B=new BM(e.j,r),F=new ZM(e.j,r),G=new aDa(e.j);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Kb:new Map,layoutExitNormalTriggers:[x,G],layoutExitSkipTriggers:[B],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[F],Vc:[],Ya:"core",Ca:new yJ([new Aya(h),new HI(b),new mJ(l/1E3),new pJ(t)]),jc:q(v),adLayoutLoggingData:h.adLayoutLoggingData}});
m=BEa(a,c,p.slotId,d,e,m,n);return m instanceof xJ?m:[p].concat(g.oa(m))}};
MEa=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(x){x=FEa(x.slotId,c,b,e(x),d,f,h);m=x.Mba;return x.l5};
else if(c.renderer.instreamVideoAdRenderer)n=function(x){var B=x.slotId;x=e(x);var F=h,G=c.config.adPlacementConfig,I=GEa(G),L=I.MV,P=I.QV;I=c.renderer.instreamVideoAdRenderer;var V;if(null==I?0:null==(V=I.playerOverlay)?0:V.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var ka=HEa(I,F);V=Math.min(L+1E3*ka.videoLengthSeconds,P);F=new nM(0,[ka.videoLengthSeconds]);P=ka.videoLengthSeconds;var sa=ka.playerVars,ta=ka.instreamAdPlayerOverlayRenderer,la=
ka.adVideoId,qa=IEa(c),ba=ka.Kb;ka=ka.HU;var T=null==I?void 0:I.adLayoutLoggingData;I=null==I?void 0:I.sodarExtensionData;B=cK(b.fb.get(),"LAYOUT_TYPE_MEDIA",B);var Ma={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",Kb:ba,layoutExitNormalTriggers:[new WCa(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new yJ([new NI(d),new $I(P),new aJ(sa),new dJ(L),new eJ(V),ta&&new OI(ta),
new HI(G),new MI(la),new II(F),new iJ(qa),I&&new cJ(I),new XI({current:null}),new gJ({}),new rJ(ka)].filter(JEa)),jc:x(Ma),adLayoutLoggingData:T}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=KEa(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.u(m),r=q.next();!r.done;r=q.next()){var t=r.value,v=t(a,e);if(v instanceof xJ)return v;l.push.apply(l,g.oa(v))}}catch(x){return new xJ(x,{errorMessage:x.message,AdPlacementRenderer:c,numberOfSurveyRenderers:LEa(c)})}return l};
LEa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.R(b,cN))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
FEa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=GEa(l),n=m.MV,p=m.QV;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],r={C_:n,D_:0,Jba:q};m=m.map(function(v){return NEa(a,v,r,c,d,l,e,p,h)}).map(function(v,x){x=new nM(x,q);
return v(x)});
var t=m.map(function(v){return v.m5});
return{l5:OEa(c,a,n,t,l,IEa(b),d,p,f),Mba:m.map(function(v){return v.Lba})}};
NEa=function(a,b,c,d,e,f,h,l,m){var n=HEa(g.R(b,cN),m),p=c.C_,q=c.D_,r=Math.min(p+1E3*n.videoLengthSeconds,l);c.C_=r;c.D_++;c.Jba.push(n.videoLengthSeconds);var t,v,x=null==(t=g.R(b,cN))?void 0:null==(v=t.playerOverlay)?void 0:v.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(B){var F=n.playerVars;2<=B.B&&(F.slot_pos=B.j);F.autoplay="1";var G,I;F=n.videoLengthSeconds;var L=n.playerVars,P=n.Kb,V=n.HU,ka=
n.instreamAdPlayerOverlayRenderer,sa=n.adVideoId,ta=null==(G=g.R(b,cN))?void 0:G.adLayoutLoggingData;G=null==(I=g.R(b,cN))?void 0:I.sodarExtensionData;I=cK(d.fb.get(),"LAYOUT_TYPE_MEDIA",a);var la={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};B={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",Kb:P,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"adapter",Ca:new yJ([new NI(h),new $I(F),new aJ(L),new dJ(p),new eJ(r),
new fJ(q),new XI({current:null}),ka&&new OI(ka),new HI(f),new MI(sa),new II(B),G&&new cJ(G),x&&new Iya(x),new gJ({}),new rJ(V)].filter(JEa)),jc:e(la),adLayoutLoggingData:ta};F=EEa(g.R(b,cN),f,h,B.layoutId,d);return{m5:B,Lba:F}}};
HEa=function(a,b){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var c=SB(a.playerVars),d=Number(c.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var e=Number(a.trimmedMaxNonSkippableAdDurationMs);d=isNaN(e)?d:Math.min(d,e/1E3);e=a.playerOverlay||{};e=void 0===e.instreamAdPlayerOverlayRenderer?null:e.instreamAdPlayerOverlayRenderer;var f=c.video_id;
f||(f=(f=a.externalVideoId)?f:void 0);if(!f)throw new TypeError("Expected valid video id in IVAR");if(b&&0===d){var h;b=null!=(h=PEa[f])?h:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,adVideoId:f,Kb:a.pings?xK(a.pings):new Map,HU:wK(a.pings)}};
IEa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
GEa=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{MV:b,QV:a}};
REa=function(a,b,c,d,e,f,h,l){var m=c.pings;return m?[QEa(a,f,e,function(n){var p=n.slotId;n=l(n);var q=c.adLayoutLoggingData;p=cK(b.fb.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",p);var r={layoutId:p,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ya:"core"};return{layoutId:p,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Kb:xK(m),layoutExitNormalTriggers:[new zM(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new yJ([new HI(d),
new rJ(wK(m)),new $I(h/1E3)]),jc:n(r),adLayoutLoggingData:q}})]:new xJ("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
TEa=function(a,b,c,d,e,f,h,l){a=SEa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=cK(b.fb.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Ya:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Kb:q,layoutExitNormalTriggers:[new yM(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new yJ([new Fya(e),new HI(c)]),jc:m(p)}});
return a instanceof xJ?a:[a]};
VEa=function(a,b,c,d,e,f,h){return[UEa(a,f,d,function(l){var m=l.slotId;l=h(l);m=cK(b.fb.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Kb:new Map,layoutExitNormalTriggers:[new zM(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new yJ([new OI(e),new HI(c)]),jc:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]};
ZEa=function(a,b,c,d,e,f,h,l){a=WEa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=cK(b.fb.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=XEa(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,YEa(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=cK(b.fb.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=XEa(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,YEa(b,n,p))):q.imageOverlayAdContentRenderer?(q=cK(b.fb.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=YEa(b,n,p),n.push(new dDa(b.j,q)),n=XEa(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new wJ("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new wJ("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof xJ?a:[a]};
bFa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new xJ("Expected valid duration for AdActionInterstitialRenderer."):function(p){return $Ea(b,p.slotId,c,d,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 aFa(a,q,e,function(r,t){var v=r.slotId;r=h(r);v=cK(b.fb.get(),"LAYOUT_TYPE_ENDCAP",
v);return xEa(b,v,t,c,r,"LAYOUT_TYPE_ENDCAP",[new SI(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
cFa=function(a,b,c,d){if(!c.playerVars)return new xJ("No playerVars available in AdIntroRenderer.");var e=SB(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=cK(a.fb.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};return{Ak:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Kb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"adapter",Ca:new yJ([new hJ({}),
new HI(b),new XI({current:null}),new aJ(e)]),jc:f(l)},Tl:[new tM(a.j,h,["error"])],Qj:[],Uy:[],Ty:[]}}};
eFa=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=uEa(e);if(!tDa(e,n))return new xJ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new xJ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=yEa(a,b,e,f,c,d,h);return q instanceof xJ?q:function(r){return dFa(b,r.slotId,c,p,e,vEa(e),h(r),q,l,m)}};
gFa=function(a,b,c,d,e,f,h,l){function m(q){return aFa(a,q,d,n)}
function n(q,r){var t=q.slotId;q=h(q);t=cK(b.fb.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return xEa(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new zya(e),f],e.adLayoutLoggingData)}
if(!yDa(e))return new xJ("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=fFa(b,r,c,p,t,new Map,q,m,void 0,zN(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new UI(r.JJ);q=new JI(l);return{Ak:{layoutId:r.layoutId,layoutType:r.layoutType,Kb:r.Kb,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:r.Ya,Ca:new yJ([].concat(g.oa(r.Ry),[t,q])),jc:r.jc,adLayoutLoggingData:r.adLayoutLoggingData},Tl:[],Qj:r.layoutExitMuteTriggers,Uy:r.layoutExitUserInputSubmittedTriggers,Ty:r.Vc,Gg:r.Gg}}};
iFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x){a=pK(a,"SLOT_TYPE_PLAYER_BYTES");d=UDa(b,h,d,e,a,n,p);if(d instanceof xJ)return d;var B;h=null==(B=zJ(d.Ca,"metadata_type_fulfilled_layout"))?void 0:B.layoutId;if(!h)return new xJ("Invalid adNotify layout");b=hFa(h,b,c,e,f,m,l,n,q,r,t,v,x);return b instanceof xJ?b:[d].concat(g.oa(b))};
hFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=jFa(b,c,d,f,h,l,m,n,p,q,r);kFa(f)?(d=lFa(b,a),a=pK(b.fb.get(),"SLOT_TYPE_IN_PLAYER"),f=cK(b.fb.get(),"LAYOUT_TYPE_SURVEY",a),l=mFa(b,d,l),b=[].concat(g.oa(l.slotExpirationTriggers),[new pM(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,Ya:l.Ya},{slotId:a,layoutId:f}),e=a instanceof xJ?a:{Qw:Object.assign({},
l,{slotExpirationTriggers:b,Ca:new yJ([new jJ(a.layout)]),adSlotLoggingData:e}),rg:a.rg}):e=YDa(b,a,l,e,c);return e instanceof xJ?e:[].concat(g.oa(e.rg),[e.Qw])};
qFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=jFa(a,b,c,e,f,h,m,n,p,q,r,t);kFa(e)?(e=nFa(a,c,h,l),e instanceof xJ?a=e:(l=pK(a.fb.get(),"SLOT_TYPE_IN_PLAYER"),m=cK(a.fb.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.oa(e.slotExpirationTriggers),[new pM(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,Ya:e.Ya,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof xJ?
l:{Qw:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:oFa(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:pFa(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Ya:e.Ya,Ca:new yJ([new sJ(AN(c)),new jJ(l.layout)]),adSlotLoggingData:d},rg:l.rg})):a=ZDa(a,c,h,l,d,m.Ac,b);return a instanceof xJ?a:a.rg.concat(a.Qw)};
kFa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(g.R(b.value,eN))return!0;return!1};
jFa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(ZL(p)&&$L(p))a:{var v=rFa(d,c,p);if(v instanceof xJ)t=v;else{for(var x=0,B=[],F=[],G=[],I=[],L=[],P=[],V=new YI({current:null}),ka=new LI({current:null}),sa=!1,ta=[],la=0,qa=[],ba=0;ba<d.length;ba++){var T=d[ba],Ma=g.R(T,cN);if(Ma){Ma=tN(Ma,c,p);if(Ma instanceof wJ){t=new xJ(Ma);break a}var y=new nM(la,v),Z=uN(Ma.playerVars,Ma.aB,h,n,y);la++;qa[ba]={renderer:T,data:Ma,Fy:y,KC:Z}}}la=-1;for(v=0;v<d.length;v++)if(ba=d[v],T=g.R(ba,dN)){ba=
cFa(b,c,T,l);if(ba instanceof xJ){t=ba;break a}ba=ba(r);B.push(ba.Ak);F=[].concat(g.oa(ba.Tl),g.oa(F));G=[].concat(g.oa(ba.Qj),g.oa(G));ba.Gg&&(ta=[ba.Gg].concat(g.oa(ta)))}else if(g.R(ba,cN))T=qa[v],la=T.data,ba=T.Fy,T=T.KC,Ma=qa[v+1],y=void 0,Ma&&(y=Ma.KC),ba=sFa(b,la.layoutId,la.Do,c,T,la.bp,f,ba,l(r),ka,m.get(la.Do.externalVideoId),y,q),x++,B.push(ba.Ak),F=[].concat(g.oa(ba.Tl),g.oa(F)),G=[].concat(g.oa(ba.Qj),g.oa(G)),sa||(P.push(ka),sa=!0),la=(la=la.Do.adPodSkipTarget)&&0<la?la:-1;else if(T=
g.R(ba,LK)){ba=bFa(a,b,c,T,f,x,l,ka,la);if(ba instanceof xJ){t=ba;break a}ba=ba(r);B.push(ba.Ak);F=[].concat(g.oa(ba.Tl),g.oa(F));G=[].concat(g.oa(ba.Qj),g.oa(G));ba.Gg&&(ta=[ba.Gg].concat(g.oa(ta)))}else if(T=g.R(ba,eN)){if(void 0===t){t=new xJ("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:T});break a}ba=eFa(a,b,c,f,T,V,l,t,x,BN(p,"supports_multi_step_on_desktop"));if(ba instanceof xJ){t=ba;break a}ba=ba(r);B.push(ba.Ak);ba.Gg&&ta.push(ba.Gg);
F=[].concat(g.oa(ba.Tl),g.oa(F));G=[].concat(g.oa(ba.Qj),g.oa(G));I=[].concat(g.oa(ba.Uy),g.oa(I));L=[].concat(g.oa(ba.Ty),g.oa(L));P=[V].concat(g.oa(P))}else if(ba=g.R(ba,fN)){ba=gFa(a,b,c,f,ba,V,l,x);if(ba instanceof xJ){t=ba;break a}ba=ba(r);B.push(ba.Ak);ba.Gg&&ta.push(ba.Gg);G=[].concat(g.oa(ba.Qj),g.oa(G))}else{t=new xJ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={zB:B,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:I,Vc:L,layoutExitMuteTriggers:G,Ry:P,
rg:ta}}}else a:if(x=rFa(d,c,p),x instanceof xJ)t=x;else{B=0;F=[];G=[];I=[];L=[];P=[];V=[];ka=new YI({current:null});sa=new LI({current:null});ta=!1;qa=[];la=-1;v=g.u(d);for(ba=v.next();!ba.done;ba=v.next())if(ba=ba.value,g.R(ba,dN)){ba=cFa(b,c,g.R(ba,dN),l);if(ba instanceof xJ){t=ba;break a}ba=ba(r);F.push(ba.Ak);G=[].concat(g.oa(ba.Tl),g.oa(G));I=[].concat(g.oa(ba.Qj),g.oa(I));ba.Gg&&(qa=[ba.Gg].concat(g.oa(qa)))}else if(g.R(ba,cN)){la=tN(g.R(ba,cN),c,p);if(la instanceof wJ){t=new xJ(la);break a}ba=
new nM(B,x);ba=sFa(b,la.layoutId,la.Do,c,uN(la.playerVars,la.aB,h,n,ba),la.bp,f,ba,l(r),sa,m.get(la.Do.externalVideoId),void 0,q);B++;F.push(ba.Ak);G=[].concat(g.oa(ba.Tl),g.oa(G));I=[].concat(g.oa(ba.Qj),g.oa(I));ta||(V.push(sa),ta=!0);la=(la=la.Do.adPodSkipTarget)&&0<la?la:-1}else if(g.R(ba,LK)){ba=bFa(a,b,c,g.R(ba,LK),f,B,l,sa,la);if(ba instanceof xJ){t=ba;break a}ba=ba(r);F.push(ba.Ak);G=[].concat(g.oa(ba.Tl),g.oa(G));I=[].concat(g.oa(ba.Qj),g.oa(I));ba.Gg&&(qa=[ba.Gg].concat(g.oa(qa)))}else if(g.R(ba,
eN)){if(void 0===t){t=new xJ("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.R(ba,eN)});break a}ba=eFa(a,b,c,f,g.R(ba,eN),ka,l,t,B,BN(p,"supports_multi_step_on_desktop"));if(ba instanceof xJ){t=ba;break a}ba=ba(r);F.push(ba.Ak);ba.Gg&&qa.push(ba.Gg);G=[].concat(g.oa(ba.Tl),g.oa(G));I=[].concat(g.oa(ba.Qj),g.oa(I));L=[].concat(g.oa(ba.Uy),g.oa(L));P=[].concat(g.oa(ba.Ty),g.oa(P));V=[ka].concat(g.oa(V))}else if(g.R(ba,fN)){ba=gFa(a,b,c,f,g.R(ba,
fN),ka,l,B);if(ba instanceof xJ){t=ba;break a}ba=ba(r);F.push(ba.Ak);ba.Gg&&qa.push(ba.Gg);I=[].concat(g.oa(ba.Qj),g.oa(I))}else{t=new xJ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={zB:F,layoutExitSkipTriggers:G,layoutExitUserInputSubmittedTriggers:L,Vc:P,layoutExitMuteTriggers:I,Ry:V,rg:qa}}t instanceof xJ?r=t:(P=r.slotId,x=t.zB,B=t.layoutExitSkipTriggers,F=t.layoutExitMuteTriggers,G=t.layoutExitUserInputSubmittedTriggers,I=t.Ry,r=l(r),L=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",
P=e?e.layoutId:cK(b.fb.get(),L,P),V={layoutId:P,layoutType:L,Ya:"core"},r={layout:{layoutId:P,layoutType:L,Kb:new Map,layoutExitNormalTriggers:[new yM(b.j,P)],layoutExitSkipTriggers:B,layoutExitMuteTriggers:F,layoutExitUserInputSubmittedTriggers:G,Vc:[],Ya:"core",Ca:new yJ([new ZI(x)].concat(g.oa(I))),jc:r(V)},rg:t.rg});return r}};
rFa=function(a,b,c){var d=[];a=g.u(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.R(e,cN)){e=tN(g.R(e,cN),b,c);if(e instanceof wJ)return new xJ(e);d.push(e.bp)}return d};
uFa=function(a,b,c,d,e,f,h,l){if(!tDa(c,void 0===l?!1:l))return new xJ("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=uEa(c);if(0>=m)return new xJ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new YI({current:null}),p=yEa(a,b,c,n,d,f,h);return tFa(a,d,f,m,e,function(q,r){var t=q.slotId,v=vEa(c);q=h(q);var x,B=null!=(x=zN(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))?
x:cK(b.fb.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"core"};x=p(B,r);var F=zJ(x.Ca,"metadata_type_fulfilled_layout");F||RG("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");v=[new HI(d),new nJ(m),new pJ(v),n];F&&v.push(new VI(F.layoutType));return{W7:{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Kb:new Map,layoutExitNormalTriggers:[new yM(b.j,B)],layoutExitSkipTriggers:[new BM(b.j,r.layoutId)],
layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new ZM(b.j,r.layoutId)],Vc:[],Ya:"core",Ca:new yJ(v),jc:q(t)},k7:x}})};
vFa=function(a){if(!xDa(a))return!1;var b=g.R(a.adVideoStart,CN);return b?g.R(a.linearAd,cN)&&fDa(b)?!0:(RG("Invalid Sandwich with notify"),!1):!1};
wFa=function(a){if(null==a.linearAds)return!1;a=g.R(a.adStart,CN);return a?fDa(a)?!0:(RG("Invalid LASR with notify"),!1):!1};
xFa=function(a){if(!wDa(a))return!1;a=g.R(a.adStart,CN);return a?fDa(a)?!0:(RG("Invalid LASR with notify"),!1):!1};
DN=function(a,b,c,d,e,f,h,l){this.fb=a;this.Mb=b;this.Ab=c;this.Da=d;this.Yb=e;this.j=f;this.Sj=h;this.loadPolicy=void 0===l?1:l};
DDa=function(a,b,c,d,e,f,h,l,m){var n=[];if(0===b.length&&0===d.length&&0===c.length)return n;b=b.filter(gDa);var p=c.filter(rDa),q=d.filter(gDa),r=new Map,t=fEa(b),v=c.some(function(ba){var T;return"SLOT_TYPE_PLAYER_BYTES"===(null==ba?void 0:null==(T=ba.adSlotMetadata)?void 0:T.slotType)}),x=c.some(function(ba){var T;
return"SLOT_TYPE_PLAYER_UNDERLAY"===(null==ba?void 0:null==(T=ba.adSlotMetadata)?void 0:T.slotType)});
c=c.some(function(ba){var T;return"SLOT_TYPE_IN_PLAYER"===(null==ba?void 0:null==(T=ba.adSlotMetadata)?void 0:T.slotType)});
if(v||x||c)c=iEa(p,b,l,e,t,a.Yb.get(),a.loadPolicy,r,a.Da.get(),a.fb.get(),c),c instanceof xJ?RG(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.oa(c));c=g.u(b);for(x=c.next();!x.done;x=c.next()){x=x.value;var B=yFa(a,r,x,e,f,h,v,l,t,m,p);B instanceof xJ?RG(B,void 0,void 0,{renderer:x.renderer,config:x.config.adPlacementConfig,kind:x.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.oa(B))}zFa(a.Da.get())||(f=AFa(a,q,e,l,t,r),n.push.apply(n,g.oa(f)));if(null===a.j||h&&!l.yV){var F,
G,I;a=l.Ac&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(F=b[0].config)?void 0:null==(G=F.adPlacementConfig)?void 0:G.kind)&&(null==(I=b[0].renderer)?void 0:I.adBreakServiceRenderer);if(!n.length&&!a){var L,P,V,ka;RG("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(L=b[0])?void 0:null==(P=L.config)?void 0:null==(V=P.adPlacementConfig)?void 0:V.kind,renderer:null==(ka=b[0])?void 0:ka.renderer})}return n}F=
d.filter(gDa);n.push.apply(n,g.oa(QDa(r,F,a.Mb.get(),a.j,e,v)));if(!n.length){var sa,ta,la,qa;RG("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":null==(sa=b[0])?void 0:null==(ta=sa.config)?void 0:null==(la=ta.adPlacementConfig)?void 0:la.kind,renderer:null==(qa=b[0])?void 0:qa.renderer})}return n};
AFa=function(a,b,c,d,e,f){function h(r){return DJ(a.Yb.get(),r)}
var l=[];b=g.u(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&&vFa(p)?(RG("Found AdNotify with SandwichedLinearAdRenderer"),q=g.R(p.adVideoStart,CN),p=g.R(p.linearAd,cN),rN(f,n,m.config.adPlacementConfig.kind),n=void 0,q=VDa(null==(n=q)?void 0:n.layout.layoutId,a.Mb.get(),a.Ab.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Da.get(),a.Yb.get()),q instanceof xJ?RG(q):l.push.apply(l,g.oa(q))):
q&&(!q.adLayoutMetadata&&wFa(q)||q.adLayoutMetadata&&xFa(q))&&(RG("Found AdNotify with LinearAdSequenceRenderer"),rN(f,n,m.config.adPlacementConfig.kind),n=void 0,p=hFa(null==(n=g.R(q.adStart,CN))?void 0:n.layout.layoutId,a.Mb.get(),a.Ab.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,aN(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Da.get()),p instanceof xJ?RG(p):l.push.apply(l,g.oa(p)))}return l};
yFa=function(a,b,c,d,e,f,h,l,m,n,p){function q(F){return DJ(a.Yb.get(),F)}
var r=c.renderer,t=c.config.adPlacementConfig,v=t.kind,x=c.adSlotLoggingData,B=l.yV&&"AD_PLACEMENT_KIND_START"===v;B=f&&!B;if(null!=r.adsEngagementPanelRenderer)return sN(b,c.elementId,v,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(F,G,I,L){var P=a.Ab.get(),V=F.slotId,ka=r.adsEngagementPanelRenderer;F=DJ(a.Yb.get(),F);return EN(P,V,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new rya(ka),G,I,ka.impressionPings,F,r.adsEngagementPanelRenderer.adLayoutLoggingData,L)}),[];
if(null!=r.actionCompanionAdRenderer){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return LDa(a.Mb.get(),a.j,a.Ab.get(),r.actionCompanionAdRenderer,t,x,d,q);sN(b,c.elementId,v,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(F,G,I,L){var P=a.Ab.get(),V=F.slotId,ka=r.actionCompanionAdRenderer;F=DJ(a.Yb.get(),F);return EN(P,V,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new DI(ka),G,I,ka.impressionPings,F,r.actionCompanionAdRenderer.adLayoutLoggingData,L)})}else if(void 0!==r.topBannerImageTextIconButtonedLayoutViewModel){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return MDa(a.Mb.get(),a.j,a.Ab.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,x,d,q);
sN(b,c.elementId,v,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,x,function(F,G,I,L){var P=a.Ab.get(),V=F.slotId,ka=r.topBannerImageTextIconButtonedLayoutViewModel;F=DJ(a.Yb.get(),F);return BFa(P,V,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new EI(ka),G,I,F,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,L)})}else if(r.imageCompanionAdRenderer)sN(b,
c.elementId,v,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(F,G,I,L){var P=a.Ab.get(),V=F.slotId,ka=r.imageCompanionAdRenderer;
F=DJ(a.Yb.get(),F);return EN(P,V,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new tya(ka),G,I,ka.impressionPings,F,r.imageCompanionAdRenderer.adLayoutLoggingData,L)});
else if(r.bannerImageLayoutViewModel)sN(b,c.elementId,v,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,x,function(F,G,I,L){var P=a.Ab.get(),V=F.slotId,ka=r.bannerImageLayoutViewModel;F=DJ(a.Yb.get(),F);return BFa(P,V,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new uya(ka),G,I,F,r.bannerImageLayoutViewModel.adLayoutLoggingData,L)});
else if(r.shoppingCompanionCarouselRenderer)sN(b,c.elementId,v,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(F,G,I,L){var P=a.Ab.get(),V=F.slotId,ka=r.shoppingCompanionCarouselRenderer;F=DJ(a.Yb.get(),F);return EN(P,V,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new vya(ka),G,I,ka.impressionPings,F,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,L)});
else if(r.adBreakServiceRenderer){if(!JDa(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===v)return IDa(a.Mb.get(),t,x,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==v)return HDa(a.Mb.get(),t,x,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Sj)return new xJ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.Ac||RG("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:v,adPlacementConfig:t,
daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.Ac),clientPlaybackNonce:l.clientPlaybackNonce});CFa(a.Sj,{adPlacementRenderer:c,contentCpn:d,Cs:e})}else{if(r.clientForecastingAdRenderer)return TEa(a.Mb.get(),a.Ab.get(),t,x,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return ZEa(a.Mb.get(),a.Ab.get(),t,x,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return VEa(a.Mb.get(),a.Ab.get(),t,x,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||
r.instreamVideoAdRenderer)&&B)return MEa(a.Mb.get(),a.Ab.get(),c,d,q,n,!a.Da.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!B){if(h)return[];rN(b,r,v);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!wDa(r.linearAdSequenceRenderer))return new xJ("Received invalid LinearAdSequenceRenderer.")}else if(null==r.linearAdSequenceRenderer.linearAds)return new xJ("Received invalid LinearAdSequenceRenderer.");if(g.R(r.linearAdSequenceRenderer.adStart,CN)){RG("Found AdNotify in LinearAdSequenceRenderer");
b=g.R(r.linearAdSequenceRenderer.adStart,CN);if(!eDa(b))return new xJ("Invalid AdMessageRenderer.");c=r.linearAdSequenceRenderer.linearAds;return iFa(a.fb.get(),a.Mb.get(),a.Ab.get(),a.Yb.get(),t,x,b,aN(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,l,q,m,a.loadPolicy,a.Da.get())}return qFa(a.Mb.get(),a.Ab.get(),t,x,r.linearAdSequenceRenderer.linearAds,aN(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:
void 0,d,e,l,q,m,a.loadPolicy,a.Da.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!B){if(h)return[];rN(b,r,v);return $Da(a.Mb.get(),a.Ab.get(),t,x,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Da.get(),a.Yb.get(),p)}if(r.instreamSurveyAdRenderer)return uFa(a.Mb.get(),a.Ab.get(),r.instreamSurveyAdRenderer,t,x,d,q,BN(a.Da.get(),"supports_multi_step_on_desktop"));if(null!=r.sandwichedLinearAdRenderer)return xDa(r.sandwichedLinearAdRenderer)?g.R(r.sandwichedLinearAdRenderer.adVideoStart,
CN)?(RG("Found AdNotify in SandwichedLinearAdRenderer"),b=g.R(r.sandwichedLinearAdRenderer.adVideoStart,CN),eDa(b)?(c=g.R(r.sandwichedLinearAdRenderer.linearAd,cN))?WDa(b,c,t,a.fb.get(),a.Mb.get(),a.Ab.get(),a.Yb.get(),x,d,e,l,q,m,a.loadPolicy,a.Da.get()):new xJ("Missing IVAR from Sandwich"):new xJ("Invalid AdMessageRenderer.")):qFa(a.Mb.get(),a.Ab.get(),t,x,[r.sandwichedLinearAdRenderer.adVideoStart,r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Da.get()):new xJ("Received invalid SandwichedLinearAdRenderer.");
if(null!=r.videoAdTrackingRenderer)return REa(a.Mb.get(),a.Ab.get(),r.videoAdTrackingRenderer,t,x,d,e,q)}}return[]};
FN=function(a,b,c,d,e,f,h,l){g.H.call(this);var m=this;this.Qb=a;this.Mb=b;this.Bf=d;this.Ia=e;this.Da=f;this.Oa=h;this.Mc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.isDisposed()||c.get().removeListener(m)});
d.get().addListener(this);this.addOnDisposeCallback(function(){d.isDisposed()||d.get().removeListener(m)})};
CFa=function(a,b){if(a.j)RG("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.u(a.Bf.get().RK);for(var c=b.next();!c.done;c=b.next())DFa(a,a.j,c.value)}};
DFa=function(a,b,c){var d=a.Ia.get().getCurrentTimeSec(1,!1);a.Da.get().J.U().Uc()&&a.Oa.get().Bi("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.gi.toFixed(3));oK(a.Qb.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.Mb.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=GN(a.Da.get()),n=a.Oa;if(e.Da.get().J.U().experiments.jb("enable_smearing_expansion_dai")){var p=g.EJ(e.Da.get().J.U().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var q=g.EJ(e.Da.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={ao:EFa(c),hF:!1,cueProcessedMs:1E3*d};var r=c.startSecs+c.gi;if(0===d)m.xp=new fv(0,1E3*r);else{q=c.startSecs-q;var t=q-d;m.xp=0>=t?new fv(1E3*q,1E3*r):new fv(1E3*Math.floor(d+Math.random()*Math.min(t,p)),1E3*r)}p=m}else p={ao:EFa(c),hF:!1},r=c.startSecs+c.gi,c.startSecs<=d?m=new fv(1E3*(c.startSecs-4),1E3*r):(q=Math.max(0,c.startSecs-d-10),m=new fv(1E3*
Math.floor(d+Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*r)),p.xp=m;f=GDa(e,f,h,p,l,[new Eya(c)]);e.Da.get().J.U().experiments.jb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.xp.start/1E3-d,n=c.startSecs-d,null!=(h=h.J.ud())&&(h=h.qc(),h.qoe&&(h=h.qoe,h.provider.X.L("html5_add_dai_smearing_to_qoe")&&(l=1E3*g.HN(h.provider),p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(1E3*e).toFixed(0)+";smo."+(1E3*n).toFixed(0)),h.j.daism=p)))):n.get().Bi("daism","ct."+Date.now()+";cmt."+d+";smw."+(p.xp.start/
1E3-d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})};
IN=function(a){var b,c=null==(b=zJ(a.Ca,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=zJ(a.Ca,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=zJ(a.Ca,"metadata_type_content_cpn"),f=zJ(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),h=zJ(a.Ca,"metadata_type_player_overlay_layout_renderer"),l=zJ(a.Ca,"metadata_type_player_underlay_renderer"),m=zJ(a.Ca,"metadata_type_ad_placement_config"),n=zJ(a.Ca,"metadata_type_video_length_seconds");
var p=tJ(a.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?zJ(a.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):tJ(a.Ca,"metadata_type_layout_enter_ms")&&tJ(a.Ca,"metadata_type_layout_exit_ms")?(zJ(a.Ca,"metadata_type_layout_exit_ms")-zJ(a.Ca,"metadata_type_layout_enter_ms"))/1E3:void 0;return{iq:d,contentCpn:e,FQ:c,mM:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,cJ:p,inPlayerLayoutId:zJ(a.Ca,"metadata_type_linked_in_player_layout_id"),
inPlayerSlotId:zJ(a.Ca,"metadata_type_linked_in_player_slot_id")}};
GFa=function(a,b){return FFa(a,b)};
HFa=function(a,b){b=FFa(a,b);if(!b)return null;var c;b.cJ=null==(c=zJ(a.Ca,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
FFa=function(a,b){var c,d=null==(c=zJ(a.Ca,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;tJ(a.Ca,"metadata_ad_video_is_listed")?c=zJ(a.Ca,"metadata_ad_video_is_listed"):b?c=b.isListed:(RG("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);tJ(a.Ca,"metadata_type_ad_info_ad_metadata")?b=zJ(a.Ca,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.El,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(RG("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{p4:b,adPlacementConfig:zJ(a.Ca,"metadata_type_ad_placement_config"),q4:c,contentCpn:zJ(a.Ca,"metadata_type_content_cpn"),inPlayerLayoutId:zJ(a.Ca,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:zJ(a.Ca,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:zJ(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,
cJ:void 0,FQ:d,iq:a.layoutId,videoLengthSeconds:zJ(a.Ca,"metadata_type_video_length_seconds")}};
JN=function(a,b,c,d,e,f,h,l,m){g.H.call(this);this.j=a;this.C=b;this.B=c;this.Qb=d;this.Mb=e;this.Ab=f;this.Yb=h;this.Da=l;this.Wa=m;this.Nh=!0};
IFa=function(a,b,c){return dEa(a.Mb.get(),b.contentCpn,b.iq,function(d){return eEa(a.Ab.get(),d.slotId,c,b.adPlacementConfig,b.iq,DJ(a.Yb.get(),d))})};
KN=function(a,b,c,d,e,f,h,l){g.H.call(this);this.Qb=a;this.xe=b;this.j=c;this.Da=d;this.B=e;this.Wa=f;this.Ia=h;this.Rc=l};
LN=function(a){g.H.call(this);this.j=a};
oK=function(a,b,c,d){a.j().yh(b,d);c=c();a=a.j();a.hc.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.u(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;RJ(d.hc,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);RJ(d.hc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.cc(c.slotId))throw new xJ("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(JJ(e,c))throw new xJ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.uf.Fq.has(c.slotType))throw new xJ("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.uf.Kr.has(c.slotType))throw new xJ("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");rza(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);rza(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
c.slotFulfillmentTriggers);rza(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=TJ(f,h);if(JJ(f,c))throw new xJ("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new mza(c));f.j.set(h,l)}catch(sa){sa instanceof xJ&&sa.Hk?(GJ(d.hc,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",sa.Hk,c),RG(sa,c,void 0,void 0,sa.Tu)):(GJ(d.hc,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
c),RG(sa,c));break a}JJ(d.j,c).K=!0;try{var m=d.j,n=JJ(m,c),p=c.slotEntryTrigger,q=m.uf.Cl.get(p.triggerType);q&&(q.rl("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ba.set(p.triggerId,q));for(var r=g.u(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var v=t.value,x=m.uf.Cl.get(v.triggerType);x&&(x.rl("TRIGGER_CATEGORY_SLOT_FULFILLMENT",v,c,null),n.ma.set(v.triggerId,x))}for(var B=g.u(c.slotExpirationTriggers),F=B.next();!F.done;F=B.next()){var G=F.value,I=m.uf.Cl.get(G.triggerType);I&&(I.rl("TRIGGER_CATEGORY_SLOT_EXPIRATION",
G,c,null),n.W.set(G.triggerId,I))}var L=m.uf.Fq.get(c.slotType).get().build(m.C,c);n.N=L;var P=m.uf.Kr.get(c.slotType).get().build(m.G,c);P.init();n.B=P}catch(sa){sa instanceof xJ&&sa.Hk?(GJ(d.hc,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",sa.Hk,c),RG(sa,c,void 0,void 0,sa.Tu)):(GJ(d.hc,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),RG(sa,c));HJ(d,c,!0);break a}RJ(d.hc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Ah(c);for(var V=g.u(d.Cd),ka=V.next();!ka.done;ka=
V.next())ka.value.Ah(c);Wya(d,c)}};
MN=function(a,b,c,d){g.H.call(this);var e=this;this.Qb=a;this.Mb=b;this.yc=c;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.isDisposed()||d.get().removeListener(e)})};
BDa=function(a,b){var c=0x8000000000000;for(var d=0,e=g.u(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof wM?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):RG("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new fv(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.yc.get().addCueRange(d,c.start,c.end,!1,a)};
NN=function(){g.H.apply(this,arguments);this.Nh=!0;this.Ij=new Map;this.j=new Map};
JFa=function(a,b){a=g.u(a.Ij.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
gAa=function(a,b){a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}RG("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.cc(b)),layoutId:b})};
KFa=function(a,b){this.callback=a;this.slot=b};
ON=function(){};
LFa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c};
MFa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c;this.B=!1;this.j=0};
NFa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c};
PN=function(a){this.Ia=a};
QN=function(a){g.H.call(this);this.HL=a;this.Wb=new Map};
OFa=function(a,b){for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof ZM&&f.triggeringLayoutId===b&&c.push(e)}c.length?QJ(a.HL(),c):RG("Survey is submitted but no registered triggers can be activated.")};
RN=function(a,b,c){QN.call(this,a);var d=this;this.Da=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.isDisposed()||b.get().removeListener(d)})};
SN=function(a){g.H.call(this);this.j=a;this.Nh=!0;this.Wb=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set};
TN=function(a){g.H.call(this);this.j=a;this.Wb=new Map};
UN=function(a,b){for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&QJ(a.j(),c)};
VN=function(a,b){g.H.call(this);var c=this;this.j=a;this.Wb=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.isDisposed()||b.get().removeListener(c)})};
PFa=function(a,b,c,d){var e=[];a=g.u(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof zM){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(RG("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
QFa=function(a){return a instanceof bDa||a instanceof cDa||a instanceof AM};
WN=function(a,b,c,d){g.H.call(this);var e=this;this.B=a;this.yc=b;this.Ia=c;this.Wa=d;this.Nh=!0;this.Wb=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.isDisposed()||c.get().removeListener(e)})};
RFa=function(a,b,c,d,e,f,h,l,m,n){if(a.Wa.get().cf(1).clientPlaybackNonce!==m)throw new xJ("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Wb.set(c.triggerId,{Zu:new $M(b,c,d,e),xv:f});a.yc.get().addCueRange(f,h,l,n,a)};
SFa=function(a,b){a=g.u(a.Wb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;if(b===d.xv)return c}return""};
XN=function(a,b){g.H.call(this);var c=this;this.D=a;this.B=new Map;this.C=new Map;this.j=null;b.get().addListener(this);this.addOnDisposeCallback(function(){b.isDisposed()||b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().yv)?void 0:d.slotId)||null};
TFa=function(a,b){var c=[];a=g.u(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
YN=function(a){g.H.call(this);this.j=a;this.Nh=!0;this.Wb=new Map};
QK=function(a,b){b=b.layoutId;for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof yM){var f;if(f=e.trigger.layoutId===b)f=(f=eza.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&QJ(a.j(),c)};
ZN=function(a){g.H.call(this);this.j=a;this.Nh=!0;this.Wb=new Map};
$N=function(a){g.H.call(this);this.C=a;this.Nh=!0;this.Wb=new Map;this.j=new Map;this.B=new Map};
UFa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c};
aO=function(a){g.H.call(this);this.j=a;this.Wb=new Map};
VFa=function(a,b){for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof mM&&e.trigger.slotId===b&&c.push(e);1<=c.length&&QJ(a.j(),c)};
WFa=function(a,b){var c={slotId:pK(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Ya:"surface",Ca:new yJ([])},d=Object,e=d.assign;b=cK(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Kb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"surface",Ca:new yJ([]),
jc:Sya(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Ya,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{q7:!0,slot:c,layout:b})};
FDa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={ao:new fv(-0x8000000000000,-0x8000000000000),hF:d},null!=c&&(d.xp=new fv(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={ao:new fv(0x7ffffffffffff,0x8000000000000),hF:d},null!=c&&(d.xp=new fv(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||RG("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||RG("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 xJ("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={ao:new fv(a,e),hF:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.xp=new fv(a,e)}return d;
default:return new xJ("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
EFa=function(a){var b=1E3*a.startSecs;return new fv(b,b+1E3*a.gi)};
bO=function(){this.B=new Map;this.j=new Map;this.C=new Map};
pK=function(a,b){if(g.IB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.VE(16)};
cK=function(a,b,c){if(g.IB("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.VE(16)};
yN=function(a,b){if(g.IB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.VE(16)};
XFa=function(a){var b=[new TI(a.iq),new Dya(a.FQ),new HI(a.adPlacementConfig),new $I(a.videoLengthSeconds),new mJ(a.cJ)];a.instreamAdPlayerOverlayRenderer&&b.push(new OI(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new PI(a.playerOverlayLayoutRenderer));a.mM&&b.push(new LI(a.mM));return b};
YFa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:cK(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?null==(h=c.instreamAdPlayerOverlayRenderer)?void 0:h.adLayoutLoggingData:null==(l=c.playerOverlayLayoutRenderer)?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Kb:new Map,layoutExitNormalTriggers:[new uM(function(n){return yN(f,
n)},c.iq)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:b,Ca:d,jc:e(h),adLayoutLoggingData:m}};
cO=function(a,b){var c=this;this.fb=a;this.Da=b;this.j=function(d){return yN(c.fb.get(),d)}};
eEa=function(a,b,c,d,e,f){c=new yJ([new QI(c),new HI(d)]);b=cK(a.fb.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ya:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Kb:new Map,layoutExitNormalTriggers:[new uM(function(h){return yN(a.fb.get(),h)},e)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:c,jc:f(d),adLayoutLoggingData:void 0}};
vN=function(a,b,c,d,e){var f=XFa(d);return YFa(b,c,d,new yJ(f),e,a.fb.get())};
ZFa=function(a,b,c,d,e){var f=XFa(d);f.push(new wya(d.p4));f.push(new xya(d.q4));return YFa(b,c,d,new yJ(f),e,a.fb.get())};
EN=function(a,b,c,d,e,f,h,l,m,n){b=cK(a.fb.get(),c,b);var p={layoutId:b,layoutType:c,Ya:"core"},q=new Map;h&&q.set("impression",h);h=[new xM(a.j,e)];n&&h.push(new tM(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Kb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new yJ([d,new HI(f),new TI(e)]),jc:l(p),adLayoutLoggingData:m}};
BFa=function(a,b,c,d,e,f,h,l,m){b=cK(a.fb.get(),c,b);var n={layoutId:b,layoutType:c,Ya:"core"},p=[new xM(a.j,e)];m&&p.push(new tM(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Kb:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new yJ([d,new HI(f),new TI(e)]),jc:h(n),adLayoutLoggingData:l}};
YEa=function(a,b,c){var d=[];d.push(new $Ca(a.j,c));b&&d.push(b);return d};
XEa=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Ya:"core"};return{layoutId:b,layoutType:c,Kb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new pM(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new yJ([new sya(d),new HI(e)]),jc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
xEa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Ya:"core"};return{layoutId:b,layoutType:f,Kb:new Map,layoutExitNormalTriggers:[new uM(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new yJ([new HI(d)].concat(g.oa(h))),jc:e(m),adLayoutLoggingData:l}};
zN=function(a,b,c,d){if(a.Da.get().lf("AD_PLACEMENT_KIND_START"===b.kind))if(void 0===c)RG("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c};
$Ea=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=fFa(a,b,c,e,f,h,l,m,q,zN(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Ry;c=new UI(a.JJ);d=a.layoutExitSkipTriggers;0<n&&(b.push(c),b.push(new KI(n)),d=[]);b.push(new JI(p));return{Ak:{layoutId:a.layoutId,layoutType:a.layoutType,Kb:a.Kb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:a.Ya,Ca:new yJ(b),jc:a.jc,adLayoutLoggingData:a.adLayoutLoggingData},
Tl:d,Qj:a.layoutExitMuteTriggers,Uy:a.layoutExitUserInputSubmittedTriggers,Ty:a.Vc,Gg:a.Gg}};
dFa=function(a,b,c,d,e,f,h,l,m,n){b=fFa(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,zN(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
a=new ZM(a.j,b.JJ);c=new UI(b.JJ);n=new JI(n);return{Ak:{layoutId:b.layoutId,layoutType:b.layoutType,Kb:b.Kb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:b.Ya,Ca:new yJ([].concat(g.oa(b.Ry),[c,n])),jc:b.jc,adLayoutLoggingData:b.adLayoutLoggingData},Tl:b.layoutExitSkipTriggers,Qj:b.layoutExitMuteTriggers,Uy:[].concat(g.oa(b.layoutExitUserInputSubmittedTriggers),[a]),Ty:b.Vc,Gg:b.Gg}};
fFa=function(a,b,c,d,e,f,h,l,m,n,p){b=null!=n?n:cK(a.fb.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"adapter"};l=l(b);var q=zJ(l.Ca,"metadata_type_fulfilled_layout");q||RG("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new HI(c),new nJ(d),new pJ(e)];q&&c.push(new VI(q.layoutType));p&&c.push(new fJ(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Kb:f,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[new BM(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"adapter",Ry:c,jc:h(n),adLayoutLoggingData:m,Gg:l,JJ:r}};
aEa=function(a,b,c,d,e,f,h,l,m,n,p){a=$Fa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Kb:a.Kb,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Vc:a.Vc,Ya:a.Ya,Ca:new yJ(a.mV),jc:a.jc,adLayoutLoggingData:a.adLayoutLoggingData}};
sFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=$Fa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.mV;c.adPodSkipTarget&&0<c.adPodSkipTarget&&(e.push(n),e.push(new KI(c.adPodSkipTarget)),d=[]);e.push(new JI(l.j));c.isCritical&&(d=[new tM(a.j,b.layoutId,["error"])].concat(g.oa(d)));return{Ak:{layoutId:b.layoutId,layoutType:b.layoutType,Kb:b.Kb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:b.Ya,Ca:new yJ(e),
jc:b.jc,adLayoutLoggingData:b.adLayoutLoggingData},Tl:d,Qj:b.layoutExitMuteTriggers,Uy:b.layoutExitUserInputSubmittedTriggers,Ty:b.Vc}};
$Fa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){var t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Ya:c};e=[new HI(e),new II(m),new MI(d.externalVideoId),new NI(l),new pJ({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new aJ(f),new XI({current:null}),new $I(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new OI(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new PI(h));
q&&e.push(new bJ(q));(q=d.playerUnderlay)&&e.push(new QI(q));l=pK(a.fb.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:null==h?void 0:h.layoutId)?q:cK(a.fb.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new UI(q));e.push(new WI(l));e.push(new fJ(m.j));d.adNextParams&&e.push(new FI(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new yya(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new GI(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new oJ(d.legacyInfoCardVastExtension));
d.sodarExtensionData&&e.push(new cJ(d.sodarExtensionData));p&&e.push(new lJ(p));e.push(new rJ(wK(d.pings)));m=xK(d.pings);if(r){a:{r=g.u(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,"SLOT_TYPE_PLAYER_UNDERLAY"===p.adSlotMetadata.slotType&&(f=g.R(p.fulfillmentContent.fulfilledLayout,iN))&&(f=g.R(f.renderingContent,hN))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new RI(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Kb:m,layoutExitNormalTriggers:[new yM(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds?
[new BM(a.j,q)]:[],layoutExitMuteTriggers:[new BM(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:c,mV:e,jc:n(t),adLayoutLoggingData:d.adLayoutLoggingData}};
OEa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return uJ(p,[],["LAYOUT_TYPE_MEDIA"])})||RG("Unexpect subLayout type for DAI composite layout");
b=cK(a.fb.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ya:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Kb:new Map,layoutExitNormalTriggers:[new WCa(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new yJ([new dJ(c),new eJ(l),new ZI(d),new HI(e),new iJ(f),new gJ({}),new Jya(m)]),jc:h(n)}};
JEa=function(a){return null!=a};
dO=function(a,b,c){var d=this;this.fb=a;this.Ab=b;this.Da=c;this.j=function(e){return yN(d.fb.get(),e)}};
GDa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=pK(a.fb.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.xp&&d.xp.start!==d.ao.start&&l.push(new wM(a.j,c,new fv(d.xp.start,d.ao.start),!1));l.push(new wM(a.j,c,new fv(d.ao.start,d.ao.end),d.hF));d={getAdBreakUrl:b.getAdBreakUrl,RQ:d.ao.start,QQ:d.ao.end,cueProcessedMs:d.cueProcessedMs};b=new FM(a.j,h);f=[new kJ(d)].concat(g.oa(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new zM(a.j,
c),new DM(a.j,h),new EM(a.j,h)],Ya:"core",Ca:new yJ(f),adSlotLoggingData:e}};
bGa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())d.push(aGa(a,b,e.value));return d};
aGa=function(a,b,c){return null!=c.triggeringSlotId&&c.triggeringSlotId===a?c.clone(b):c};
wEa=function(a,b,c,d,e){return cGa(a,b,c,d,e)};
aFa=function(a,b,c,d){var e=pK(a.fb.get(),"SLOT_TYPE_IN_PLAYER");return cGa(a,e,b,c,d)};
cGa=function(a,b,c,d,e){var f=new sM(a.j,c),h=[new CM(a.j,b)];a=[new DM(a.j,b),new zM(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Ca:new yJ([new jJ(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
tFa=function(a,b,c,d,e,f){var h=pK(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES"),l=pK(a.fb.get(),"SLOT_TYPE_IN_PLAYER"),m=cK(a.fb.get(),"LAYOUT_TYPE_SURVEY",l);d=eO(a,b,c,d);var n=[new CM(a.j,h)];c=[new DM(a.j,h),new zM(a.j,c),new pM(a.j,m)];if(d instanceof xJ)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.W7;l=l.k7;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",
slotPhysicalPosition:1,slotEntryTrigger:oFa(a,b,h,d),slotFulfillmentTriggers:pFa(a,b,h,n),slotExpirationTriggers:c,Ya:"core",Ca:new yJ([new jJ(f),new sJ(AN(b))]),adSlotLoggingData:e},l]};
AN=function(a){return"AD_PLACEMENT_KIND_START"===a.kind};
bEa=function(a,b,c,d,e){e=e?e:pK(a.fb.get(),"SLOT_TYPE_IN_PLAYER");c=new sM(a.j,c);var f=[new CM(a.j,e)];a=[new zM(a.j,b),new DM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Ca:new yJ([new jJ(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
dEa=function(a,b,c,d){var e=pK(a.fb.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new sM(a.j,c);var f=[new CM(a.j,e)];a=[new zM(a.j,b),new DM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Ca:new yJ([new jJ(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
UDa=function(a,b,c,d,e,f,h){var l=pK(a.fb.get(),"SLOT_TYPE_IN_PLAYER"),m=cK(a.fb.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=dGa(a,d,f,h,m);if(d instanceof xJ)return d;h=[new CM(a.j,l)];e=[new zM(a.j,f),new CM(a.j,e),new YM(a.j,e)];c=DJ(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.Ab.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ya:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
Kb:new Map,layoutExitNormalTriggers:[new bDa(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new cDa(a.j,m,b.durationMs)],Vc:[new AM(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ya:"core",Ca:new yJ([new Hya(b)]),jc:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ca:new yJ([new jJ(b)])}};
WEa=function(a,b,c,d,e,f){b=eO(a,b,c,d);if(b instanceof xJ)return b;var h=b instanceof wM?new ZCa(a.j,c,b.j):null;d=pK(a.fb.get(),"SLOT_TYPE_IN_PLAYER");var l=[new CM(a.j,d)];a=[new zM(a.j,c),new DM(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof wJ?new xJ(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,
slotExpirationTriggers:a,Ya:"core",Ca:new yJ([new jJ(f)]),adSlotLoggingData:e}};
UEa=function(a,b,c,d){var e=pK(a.fb.get(),"SLOT_TYPE_IN_PLAYER"),f=new oM(a.j,b),h=[new GM(a.j,e)];a=[new zM(a.j,b),new DM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Ca:new yJ([new jJ(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
DEa=function(a,b,c,d){var e=pK(a.fb.get(),"SLOT_TYPE_IN_PLAYER");c=new sM(a.j,c);var f=[new CM(a.j,e)],h=[new DM(a.j,e),new zM(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new CM(a.j,e)],slotExpirationTriggers:[new zM(a.j,b),new DM(a.j,e)],Ya:"core",Ca:new yJ([new jJ(d(f))])}};
AEa=function(a,b,c,d,e){var f=pK(a.fb.get(),"SLOT_TYPE_IN_PLAYER");c=new rM(a.j,d,c);d=[new CM(a.j,f)];a=[new zM(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Ya:"core",Ca:new yJ([new jJ(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
PDa=function(a,b,c,d,e,f){var h=pK(a.fb.get(),b);return eGa(a,h,b,new sM(a.j,d),[new zM(a.j,c),new DM(a.j,h),new tM(a.j,d,["error"])],e,f)};
ODa=function(a,b,c,d,e,f,h){var l=pK(a.fb.get(),b);return eGa(a,l,b,new tM(a.j,e,["normal"]),[new zM(a.j,c),new DM(a.j,l),new tM(a.j,d,["error"])],f,h)};
KDa=function(a,b,c,d,e){var f=pK(a.fb.get(),b);return eGa(a,f,b,new oM(a.j,c),[new zM(a.j,c),new DM(a.j,f)],d,e)};
QEa=function(a,b,c,d){var e=pK(a.fb.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new oM(a.j,b);var f=[new CM(a.j,e)];a=[new DM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Ca:new yJ([new jJ(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
KEa=function(a,b,c,d){var e=pK(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new XCa(a.j),h=[new GM(a.j,e)];b=[new zM(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Da.get();return!g.PJ(a.J.U())&&a.J.U().experiments.jb("enable_pacf_slot_asde_player_byte_h5")||g.PJ(a.J.U())&&a.J.U().experiments.jb("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Ya:"core",Ca:new yJ([new jJ(d(l)),new gJ({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Ya:"core",Ca:new yJ([new jJ(d(l)),new gJ({})])}};
lFa=function(a,b){return zFa(a.Da.get())?new tM(a.j,b,["normal","error","skipped"]):new tM(a.j,b,["normal"])};
YDa=function(a,b,c,d,e){b=lFa(a,b);a=mFa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,Ya:a.Ya});return e instanceof xJ?e:{Qw:Object.assign({},a,{Ca:new yJ([new jJ(e.layout)]),adSlotLoggingData:d}),rg:e.rg}};
ZDa=function(a,b,c,d,e,f,h){c=nFa(a,b,c,d);if(c instanceof xJ)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,Ya:c.Ya});if(h instanceof xJ)return h;d=[new sJ(AN(b)),new jJ(h.layout)];f&&d.push(new qJ({}));return{Qw:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:oFa(a,b,
c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:pFa(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,Ya:c.Ya,Ca:new yJ(d),adSlotLoggingData:e},rg:h.rg}};
oFa=function(a,b,c,d){return a.Da.get().lf(AN(b))?new mM(a.j,c):d};
pFa=function(a,b,c,d){return a.Da.get().lf(AN(b))?[new GM(a.j,c)]:d};
mFa=function(a,b,c){var d=pK(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new CM(a.j,d)];a=[new DM(a.j,d),new zM(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,Ya:"core"}};
nFa=function(a,b,c,d){b=eO(a,b,c,d);return b instanceof xJ?b:mFa(a,b,c)};
SEa=function(a,b,c,d,e,f){var h=pK(a.fb.get(),"SLOT_TYPE_FORECASTING");b=eO(a,b,c,d);if(b instanceof xJ)return b;d=[new CM(a.j,h)];a=[new DM(a.j,h),new zM(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Ya:"core",Ca:new yJ([new jJ(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
fGa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new oM(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=FDa(b,d),a instanceof xJ?a:e(a.ao,f);case "AD_PLACEMENT_KIND_END":return new qM(a.j,c,f);default:return new xJ("Cannot construct entry trigger",{kind:b.kind})}};
dGa=function(a,b,c,d,e){return fGa(a,b,c,d,function(f,h){return new vM(a.j,c,f,h,e)})};
eO=function(a,b,c,d){return fGa(a,b,c,d,function(e,f){return new wM(a.j,c,e,f)})};
eGa=function(a,b,c,d,e,f,h){a=[new GM(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,Ya:"core",Ca:new yJ([new jJ(h({slotId:b,slotType:c,slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
fO=function(a,b){g.H.call(this);this.Da=a;this.B=b;this.eventCount=0};
RJ=function(a,b,c){a.j(b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
KJ=function(a,b,c,d){a.j(b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
dza=function(a,b,c,d){Tya(a.B.get())&&a.j("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)};
GJ=function(a,b,c,d,e){a.j("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,d,e,void 0,d.adSlotLoggingData,e?e.adLayoutLoggingData:void 0,{errorType:b,errorMessage:c})};
gGa=function(a,b,c,d,e,f,h,l,m,n,p){if(!a.Da.get().J.U().L("html5_disable_client_tmp_logs")&&("ADS_CLIENT_EVENT_TYPE_ERROR"!==b||a.BR())&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){b||RG("Empty PACF event type",f,h);var q=Tya(a.B.get());b={eventType:b,eventOrder:++a.eventCount};var r={};f&&(r.slotData=Pya(q,f));h&&(r.layoutData=Qya(q,h));l&&(r.triggerData=CJ(l.trigger,l.category));c&&(r.opportunityData=Rya(q,c,d,e));c={organicPlaybackContext:{contentCpn:a.Wa.get().cf(1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=
a.Wa.get().cf(1).Ac;var t;c.organicPlaybackContext.isMdxPlayback=null==(t=a.Wa.get().cf(1))?void 0:t.isMdxPlayback;var v;if(null==(v=a.Wa.get().cf(1))?0:v.daiEnabled)c.organicPlaybackContext.isDaiContent=!0;var x;if(a=null==(x=a.Wa.get().cf(2))?void 0:x.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:a};c&&(r.externalContext=c);b.adClientData=r;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);p&&(b.errorInfo=
p);g.qD("adsClientStateChange",{adsClientEvent:b})}};
gO=function(a,b,c){fO.call(this,a,b);this.Da=a;this.Wa=c};
hO=function(){this.j=new Map};
iO=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
oO=function(a){g.H.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!hGa){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);jO=new Uint8Array(256);kO=iO(256);lO=iO(256);mO=iO(256);nO=iO(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;jO[f]=e;b=e<<1^(e>>7&&283);var h=b^e;kO[f]=b<<24|e<<16|e<<8|h;lO[f]=h<<24|kO[f]>>>8;mO[f]=e<<24|lO[f]>>>8;nO[f]=e<<24|mO[f]>>>8}hGa=!0}e=iO(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=(jO[a>>16&255]^d)<<24|jO[a>>8&255]<<16|jO[a&255]<<8|jO[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
iGa=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=kO[c>>>24]^lO[d>>16&255]^mO[e>>8&255]^nO[f&255]^b[n++],l=kO[d>>>24]^lO[e>>16&255]^mO[f>>8&255]^nO[c&255]^b[n++],m=kO[e>>>24]^lO[f>>16&255]^mO[c>>8&255]^nO[d&255]^b[n++],f=kO[f>>>24]^lO[c>>16&255]^mO[d>>8&255]^nO[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=jO[c>>>24]^h>>>24;a[1]=jO[d>>16&255]^h>>16&255;a[2]=jO[e>>8&255]^
h>>8&255;a[3]=jO[f&255]^h&255;h=b[41];a[4]=jO[d>>>24]^h>>>24;a[5]=jO[e>>16&255]^h>>16&255;a[6]=jO[f>>8&255]^h>>8&255;a[7]=jO[c&255]^h&255;h=b[42];a[8]=jO[e>>>24]^h>>>24;a[9]=jO[f>>16&255]^h>>16&255;a[10]=jO[c>>8&255]^h>>8&255;a[11]=jO[d&255]^h&255;h=b[43];a[12]=jO[f>>>24]^h>>>24;a[13]=jO[c>>16&255]^h>>16&255;a[14]=jO[d>>8&255]^h>>8&255;a[15]=jO[e&255]^h&255};
qO=function(){if(!jGa&&!g.VD){if(pO)return pO;var a;pO=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=pO)?0:b.importKey)&&(null==(c=pO)?0:c.sign)&&(null==(d=pO)?0:d.encrypt))return pO;pO=void 0}};
kGa=function(){this.C=this.j=0;this.B=Array.from({length:rO.length}).fill(0)};
lGa=function(){};
mGa=function(a){this.name=a;this.startTimeMs=(0,g.FD)();this.j=!1};
nGa=function(){this.j=new lGa};
pGa=function(a,b,c,d){if(b&&"object"===typeof b&&"then"in b&&"function"===typeof b.then){var e=function(f){oGa(a,c,(0,g.FD)()-d);return f};
return b.then(e,e)}oGa(a,c,(0,g.FD)()-d);return b};
oGa=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new kGa),a.j[b].Ki(c,d))};
qGa=function(){};
rGa=function(a){if(!sO.isActive())return a.exports.AES128CTRCipher_encrypt.bind(a.exports);var b=a.j?"oals":"oalw";return function(c,d,e){sO.vk(b,function(){a.exports.AES128CTRCipher_encrypt(c,d,e)})}};
tO=function(a,b){g.H.call(this);var c=this;this.j=a;this.B=rGa(this.j);this.cipher=this.j.exports.AES128CTRCipher_create(b.byteOffset);this.addOnDisposeCallback(function(){c.j.exports.AES128CTRCipher_release(c.cipher)})};
g.uO=function(a){this.D=a};
g.vO=function(a){g.H.call(this);this.B=a};
wO=function(a,b){this.B=new tO(a,b)};
sGa=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.K=new Uint8Array(64);this.B=0;this.G.set(a);this.C.set(a);for(a=0;64>a;a++)this.G[a]^=92,this.C[a]^=54;this.reset()};
tGa=function(a,b,c){for(var d=a.N,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,t,v,x=0;64>x;)16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=q+xO[x]+v+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),t=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+t,l+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=p+xO[x]+v+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+t,h+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=n+xO[x]+v+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+t,f+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=m+xO[x]+v+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),t=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),v=q,q=l,l=v,v=p,p=h,h=v,v=n,n=f,f=v,m=e+r,e=r+t,x++;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};
vGa=function(a){var b=new Uint8Array(32),c=64-a.B;55<a.B&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.D,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;uGa(a);return b};
uGa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0};
wGa=function(a){this.j=a};
xGa=function(a,b,c){a=new sGa(a.j);a.update(b);a.update(c);b=vGa(a);a.update(a.G);a.update(b);b=vGa(a);a.reset();return b};
yGa=function(a){this.B=a};
zGa=function(a,b,c,d){var e,f,h;return g.Ha(function(l){switch(l.j){case 1:if(a.j){l.Ka(2);break}return g.z(l,d.importKey("raw",a.B,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:a.j=l.B;case 2:return e=new Uint8Array(b.length+c.length),e.set(b),e.set(c,b.length),f={name:"HMAC",hash:"SHA-256"},g.z(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})};
AGa=function(a,b,c){a.C||(a.C=new wGa(a.B));return xGa(a.C,b,c)};
BGa=function(a,b,c){var d,e;return g.Ha(function(f){if(1==f.j){d=qO();if(!d)return f.return(AGa(a,b,c));g.ya(f,3);return g.z(f,zGa(a,b,c,d),5)}if(3!=f.j)return f.return(f.B);e=g.Aa(f);g.LF(e);jGa=!0;return f.return(AGa(a,b,c))})};
yO=function(){var a=CGa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Zla.apply(null,[$la.apply(null,g.oa(b))].concat(g.oa(c)));this.store=bma(a,void 0,b)};
g.DGa=function(a,b,c){for(var d=Object.assign({},a),e=g.u(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.oa(h),g.oa(l)):l;else if(!Array.isArray(l)&&g.$a(l)&&!Array.isArray(h)&&g.$a(h))d[f]=g.DGa(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.eD("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Yjb:h,updateValue:l}),
g.KF(b),a}return d};
zO=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
EGa=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};
AO=function(a,b){b=g.u(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
BO=function(a,b,c){return a.split(b).Bm.split(c).tI};
FGa=function(a){a.D=void 0;a.B=0;a.C=0};
GGa=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length};
HGa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
IGa=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(!GGa(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.j[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.B-d+1,e);FGa(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
CO=function(a,b,c){a=IGa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
JGa=function(a,b,c){a=CO(a,void 0===b?0:b,void 0===c?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;c<a.length;c++)b[c]=a[c]}return b};
DO=function(a,b){a.focus(b);return a.j[a.B][b-a.C]};
KGa=function(a,b){a.focus(b);return GGa(a,b,4)?HGa(a).getUint32(b-a.C):256*(256*(256*DO(a,b)+DO(a,b+1))+DO(a,b+2))+DO(a,b+3)};
LGa=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
EO=function(a){return String.fromCharCode.apply(null,a)};
GO=function(a){return a.length?FO?FO.decode(a):EO(a):""};
g.IO=function(a){if(!a.length)return"";try{if(FO)return FO.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)HO[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;HO[e++]=55296|f>>10;f=56320|f&1023}HO[e++]=f}}f=String.fromCharCode.apply(String,HO);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
KO=function(a,b){var c;if(null==(c=JO)?0:c.encodeInto)return b=JO.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};
MGa=function(a){if(JO)return JO.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=KO(a,b);b.length<c&&(b=new Uint8Array(c),c=KO(a,b));b.length>c&&(b=b.subarray(0,c));return b};
LO=function(a){this.j=a;this.pos=0;this.B=-1};
MO=function(a){var b=DO(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=DO(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
NO=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=MO(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:MO(a);break;case 1:a.pos+=8;break;case 2:d=MO(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
OO=function(a,b){if(NO(a,b))return MO(a)};
PO=function(a,b){if(NO(a,b))return!!MO(a)};
QO=function(a,b){if(NO(a,b)){b=MO(a);var c=CO(a.j,a.pos,b);a.pos+=b;return c}};
RO=function(a,b){if(a=QO(a,b))return g.IO(a)};
SO=function(a,b,c){if(a=QO(a,b))return c(new LO(new zO([a])))};
TO=function(a,b){for(var c=[];NO(a,b);)c.push(MO(a));return c.length?c:void 0};
UO=function(a,b,c){for(var d=[],e;e=QO(a,b);)d.push(c(new LO(new zO([e]))));return d.length?d:void 0};
VO=function(a,b){a=a instanceof Uint8Array?new zO([a]):a;return b(new LO(a))};
NGa=function(a,b,c){if(b&&c&&c.buffer===b.exports.memory.buffer){var d=b.exports.realloc(c.byteOffset,a);if(d)return new Uint8Array(b.exports.memory.buffer,d,a)}a=b?new Uint8Array(b.exports.memory.buffer,b.exports.malloc(a),a):new Uint8Array(a);c&&a.set(c);return a};
OGa=function(a,b){this.C=b;this.pos=0;this.B=[];this.j=NGa(void 0===a?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
WO=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;c<b;)c*=2;a.j=NGa(c,a.C,a.j.subarray(0,a.pos));a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
XO=function(a,b){if(268435455<b){WO(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(WO(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};
YO=function(a,b,c){void 0!==c&&(XO(a,8*b),XO(a,c))};
ZO=function(a,b,c){void 0!==c&&YO(a,b,c?1:0)};
$O=function(a,b,c){void 0!==c&&(XO(a,8*b+2),b=c.length,XO(a,b),WO(a,b),a.j.set(c,a.pos),a.pos+=b)};
aP=function(a,b,c){void 0!==c&&(PGa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),WO(a,1.2*c.length),b=KO(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(WO(a,b),b=KO(c,a.j.subarray(a.pos))),a.pos+=b,QGa(a))};
PGa=function(a,b,c){c=void 0===c?2:c;XO(a,8*b+2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
QGa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
bP=function(a,b,c,d,e){c&&(PGa(a,b,void 0===e?3:e),d(a,c),QGa(a))};
g.cP=function(a,b,c){c=new OGa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)};
g.dP=function(a){var b=new LO(new zO([rg(decodeURIComponent(a))]));a=RO(b,2);b=OO(b,4);var c=RGa[b];if("undefined"===typeof c)throw a=new g.eD("Failed to recognize field number",{name:"EntityKeyHelperError",xib:b}),g.KF(a),a;return{E5:b,entityType:c,entityId:a}};
g.eP=function(a,b){var c=new OGa;$O(c,2,MGa(a));a=SGa[b];if("undefined"===typeof a)throw b=new g.eD("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.KF(b),b;YO(c,4,a);YO(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.fg(b))};
fP=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))};
TGa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.DGa(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))};
UGa=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.KF(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.KF(new g.eD("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.cd(e.payload);
return fP(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.dP(e).entityType;l=fP(d,m,e)}catch(q){if(q instanceof Error)g.KF(new g.eD("Failed to deserialize entity key",{entityKey:e,vQ:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.KF(new g.eD("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.cd(e.payload);var n,p;return TGa(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 fP(a,c.entityType,c.key,c.D5);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 fP(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,TGa(a,c.entityType,c.key,c.D5,c.Pjb);default:return a}};
gP=function(a,b,c){return a[b]?a[b][c]||null:null};
WGa=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+60*c+3600*b+86400*(a.days||0)+604800*(a.weeks||0)+2629800*(a.months||0)+31557600*(a.years||0);0>=b?b={hours:0,minutes:0,seconds:0}:(a=b,b=Math.floor(a/3600),a%=3600,c=Math.floor(a/60),d=Math.floor(a%60),b={hours:b,minutes:c,seconds:d});var e=void 0===b.hours?0:b.hours;c=void 0===b.minutes?0:b.minutes;a=void 0===b.seconds?0:b.seconds;d=0<e;b=[];if(d){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var f=["fr"],h="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");
e="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(hP)?e.replace(",","\u00a0"):f.includes(hP)?e.replace(",","\u202f"):h.includes(hP)?e.replace(",","."):e;b.push(e)}d=void 0===d?!1:d;c=(["af","be","lt"].includes(hP)||d)&&10>c?VGa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=VGa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(hP)&&(c=".");return b.join(c)};
VGa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
XGa=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};
YGa=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
iP=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.KF(b)}}:a};
jP=function(a,b,c){if(!g.KB("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)c?a(c(b[d])[1]):a(b[d]);else c?a(c(b)[1]):a(b)};
kP=function(a,b,c){if(!g.KB("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)a(c[b[d]]);else a(c[b])};
Y=function(a){g.KB("jspb_translator_log_errors")&&g.NB(a)};
$Ga=function(a){var b=new cz,c=0;try{var d=a.eventType;void 0!==d&&(O(b,1,ZGa[d]),c++);var e=a.storedEventsCount;void 0!==e&&(Wj(b,2,e),c++);var f=a.expiredEventsCount;void 0!==f&&(Wj(b,3,f),c++);var h=a.averageTimeBetweenDispatchesMs;void 0!==h&&(Wj(b,4,h),c++);var l=a.oldestStoredEventAgeMs;void 0!==l&&(Wj(b,5,l),c++);var m=a.metricIntervalMs;void 0!==m&&(Wj(b,6,m),c++);var n=a.dispatchedEventCount;void 0!==n&&(Wj(b,7,n),c++);var p=a.dispatchAttemptCount;void 0!==p&&(Wj(b,8,p),c++);var q=a.withDiskSpaceMs;
void 0!==q&&(Yj(b,9,q),c++);var r=a.withNetworkMs;void 0!==r&&(Yj(b,10,r),c++);var t=a.foregroundMs;void 0!==t&&(Yj(b,11,t),c++);var v=a.activeMs;void 0!==v&&(Yj(b,12,v),c++);var x=a.condensedPageBcSlackCount;void 0!==x&&(Wj(b,13,x),c++);var B=a.persistedDeleteUsedCount;void 0!==B&&(Wj(b,14,B),c++);var F=a.persistedDeleteCount;void 0!==F&&(Wj(b,15,F),c++);var G=a.eventDisabledCount;void 0!==G&&(Wj(b,16,G),c++);var I=a.identityResolutionErrorCount;void 0!==I&&(Wj(b,17,I),c++);var L=a.exceededMaxRetryCount;
void 0!==L&&(Wj(b,18,L),c++);var P=a.condensedPageBcPersistFailCount;void 0!==P&&(Wj(b,19,P),c++);var V=a.couldNotUnloadPageCount;void 0!==V&&(Wj(b,20,V),c++);var ka=a.pageWasCorruptedCount;void 0!==ka&&(Wj(b,24,ka),c++);var sa=a.badEventIndexCount;void 0!==sa&&(Wj(b,27,sa),c++);var ta=a.serializeErrorCount;void 0!==ta&&(Wj(b,25,ta),c++);var la=a.payloadInfoNotSetCount;void 0!==la&&(Wj(b,21,la),c++);var qa=a.requestEmptyErrorCount;void 0!==qa&&(Wj(b,22,qa),c++);var ba=a.clientEventNotSetCount;void 0!==
ba&&(Wj(b,23,ba),c++);var T=a.differentIdCount;void 0!==T&&(Wj(b,26,T),c++);var Ma=a.failedWriteCount;void 0!==Ma&&(Wj(b,28,Ma),c++);var y=a.failedReadCount;void 0!==y&&(Wj(b,29,y),c++);var Z=a.failedDispatchCount;void 0!==Z&&(Wj(b,30,Z),c++);var Ua=a.failedFetchCount;void 0!==Ua&&(Wj(b,31,Ua),c++);var Za=a.loggingliteLogsMoved;void 0!==Za&&(Wj(b,32,Za),c++);var bb=a.loggingliteLogsDropped;void 0!==bb&&(Wj(b,33,bb),c++);return[c===Object.keys(a).length,b]}catch(Xa){return Y(Xa),[!1,void 0]}};
lP=function(a){var b=new HA,c=0;try{var d=a.trackingParams;void 0!==d&&(b.setTrackingParams(d),c++);var e=a.veType;void 0!==e&&(Wj(b,2,e),c++);var f=a.elementIndex;void 0!==f&&(Wj(b,3,f),c++);var h=a.veCounter;void 0!==h&&(Wj(b,6,h),c++);var l=a.dataElement;if(l){var m=lP(l);m[0]&&(Jj(b,HA,7,m[1]),c++)}var n=a.isCounterfactual;void 0!==n&&(Vj(b,5,n),c++);var p=a.youtubeData;if(p){var q=new Mx,r=0;try{var t=p.channelData;if(t){var v=new Xw,x=0;try{var B=t.externalId;void 0!==B&&(yk(v,1,B),x++);var F=
[x===Object.keys(t).length,v]}catch(Oa){Y(Oa),F=[!1,void 0]}var G=F;G[0]&&(Jj(q,Xw,2,G[1]),r++)}var I=p.channelItem;if(I){var L=new Yw,P=0;try{var V=I.externalId;void 0!==V&&(yk(L,1,V),P++);var ka=[P===Object.keys(I).length,L]}catch(Oa){Y(Oa),ka=[!1,void 0]}var sa=ka;sa[0]&&(Jj(q,Yw,5,sa[1]),r++)}var ta=p.playlistItem;if(ta){var la=new tx,qa=0;try{var ba=ta.externalPlaylistId;void 0!==ba&&(yk(la,5,ba),qa++);var T=[qa===Object.keys(ta).length,la]}catch(Oa){Y(Oa),T=[!1,void 0]}var Ma=T;Ma[0]&&(Jj(q,
tx,6,Ma[1]),r++)}var y=p.analyticsData;if(y){var Z=new Vw,Ua=0;try{var Za=y.tabName;void 0!==Za&&(O(Z,1,aHa[Za]),Ua++);var bb=y.analysisVariant;if(bb){var Xa=new Iw,Va=0;try{var lb=bb.analysisSummary;if(lb){var Ab=new rw,ob=0;try{var A=lb.type;void 0!==A&&(O(Ab,1,bHa[A]),ob++);var D=lb.eligibility;void 0!==D&&(O(Ab,2,cHa[D]),ob++);var E=lb.sentiment;void 0!==E&&(O(Ab,3,dHa[E]),ob++);var C=[ob===Object.keys(lb).length,Ab]}catch(Oa){Y(Oa),C=[!1,void 0]}var K=C;K[0]&&(Jj(Xa,rw,1,K[1]),Va++)}var X=bb.videoPerformanceVariant;
if(X){var ma=eHa(X);ma[0]&&(Kj(Xa,Fw,2,mP,ma[1]),Va++)}var fa=bb.videoOverviewVariant;if(fa){var S=new Gw,na=0;try{var Ea=fa.timePeriod;void 0!==Ea&&(O(S,1,nP[Ea]),na++);var Ca=fa.videoPerformanceVariant;if(Ca){var cb=eHa(Ca);cb[0]&&(Jj(S,Fw,2,cb[1]),na++)}var kb=fa.durationTimePeriod;void 0!==kb&&(O(S,3,fHa[kb]),na++);var Bb=[na===Object.keys(fa).length,S]}catch(Oa){Y(Oa),Bb=[!1,void 0]}var Ob=Bb;Ob[0]&&(Kj(Xa,Gw,3,mP,Ob[1]),Va++)}var tb=bb.channelFluctuationVariant;if(tb){var qb=new vw,tc=0;try{var Uc=
tb.views;void 0!==Uc&&(O(qb,1,oP[Uc]),tc++);var gc=tb.driver;void 0!==gc&&(O(qb,2,gHa[gc]),tc++);var Vc=tb.ctr;void 0!==Vc&&(O(qb,3,oP[Vc]),tc++);var md=tb.impressions;void 0!==md&&(O(qb,4,oP[md]),tc++);var Lc=tb.viewsPerVideo;void 0!==Lc&&(O(qb,5,oP[Lc]),tc++);var nd=[tc===Object.keys(tb).length,qb]}catch(Oa){Y(Oa),nd=[!1,void 0]}var od=nd;od[0]&&(Kj(Xa,vw,4,mP,od[1]),Va++)}var Yb=bb.artistOverviewVariant;if(Yb){var lc=new tw,Kd=0;try{var $c=Yb.timePeriod;void 0!==$c&&(O(lc,1,nP[$c]),Kd++);var ec=
Yb.variantType;void 0!==ec&&(O(lc,2,hHa[ec]),Kd++);var ad=[Kd===Object.keys(Yb).length,lc]}catch(Oa){Y(Oa),ad=[!1,void 0]}var Qb=ad;Qb[0]&&(Kj(Xa,tw,5,mP,Qb[1]),Va++)}var Ad=bb.monthlySubsVariant;if(Ad){var Wd=iHa(Ad);Wd[0]&&(Kj(Xa,zw,6,mP,Wd[1]),Va++)}var Sb=bb.monthlyRevenueVariant;if(Sb){var af=jHa(Sb);af[0]&&(Kj(Xa,yw,7,mP,af[1]),Va++)}var ze=bb.holisticMonthlyOverviewVariant;if(ze){var Oe=new Aw,uf=0;try{var bf=ze.viewsPerformance;if(bf){var jh=kHa(bf);jh[0]&&(Jj(Oe,xw,1,jh[1]),uf++)}var Ig=
ze.subsPerformance;if(Ig){var kh=iHa(Ig);kh[0]&&(Jj(Oe,zw,2,kh[1]),uf++)}var Jg=ze.revenuePerformance;if(Jg){var lh=jHa(Jg);lh[0]&&(Jj(Oe,yw,3,lh[1]),uf++)}var Ae=[uf===Object.keys(ze).length,Oe]}catch(Oa){Y(Oa),Ae=[!1,void 0]}var cf=Ae;cf[0]&&(Kj(Xa,Aw,8,mP,cf[1]),Va++)}var bd=bb.personalizedChannelOverviewVariant;if(bd){var fe=new Ew,vc=0;try{var Kg=bd.timePeriod;void 0!==Kg&&(O(fe,1,nP[Kg]),vc++);var mh=bd.viewsPerformance;if(mh){var nh=kHa(mh);nh[0]&&(Jj(fe,xw,2,nh[1]),vc++)}var oh=[vc===Object.keys(bd).length,
fe]}catch(Oa){Y(Oa),oh=[!1,void 0]}var Be=oh;Be[0]&&(Kj(Xa,Ew,9,mP,Be[1]),Va++)}var wc=bb.channelNewReturningVariant;if(wc){var Lf=new ww,Yh=0;try{var Zh=wc.uniqueViewers;void 0!==Zh&&(O(Lf,1,oP[Zh]),Yh++);var Ii=wc.newViewers;void 0!==Ii&&(O(Lf,2,oP[Ii]),Yh++);var df=wc.returningViewers;void 0!==df&&(O(Lf,3,oP[df]),Yh++);var hg=[Yh===Object.keys(wc).length,Lf]}catch(Oa){Y(Oa),hg=[!1,void 0]}var Pe=hg;Pe[0]&&(Kj(Xa,ww,10,mP,Pe[1]),Va++)}var ig=bb.lowReturningViewersDataStoryVariant;if(ig){var vf=
new Bw,Dc=0;try{var rc=ig.videoListType;void 0!==rc&&(O(vf,1,lHa[rc]),Dc++);var Zb=[Dc===Object.keys(ig).length,vf]}catch(Oa){Y(Oa),Zb=[!1,void 0]}var Lg=Zb;Lg[0]&&(Kj(Xa,Bw,11,mP,Lg[1]),Va++)}var ef=bb.weeklyDataStoryVariant;if(ef){var Mf=new Hw,Nf=0;try{var Ji=ef.dateId;void 0!==Ji&&(Xj(Mf,1,Ji),Nf++);var qj=[Nf===Object.keys(ef).length,Mf]}catch(Oa){Y(Oa),qj=[!1,void 0]}var jg=qj;jg[0]&&(Kj(Xa,Hw,12,mP,jg[1]),Va++)}var ph=bb.monthlyDataStoryVariant;if(ph){var $h=new Cw,ai=0;try{var kg=ph.dateId;
void 0!==kg&&(Xj($h,1,kg),ai++);var ff=ph.highlightType;void 0!==ff&&(O($h,2,mHa[ff]),ai++);var Mg=ph.adviceType;void 0!==Mg&&(O($h,3,nHa[Mg]),ai++);var Of=[ai===Object.keys(ph).length,$h]}catch(Oa){Y(Oa),Of=[!1,void 0]}var Ki=Of;Ki[0]&&(Kj(Xa,Cw,13,mP,Ki[1]),Va++)}var lg=bb.otherFormatsDataStoryVariant;if(lg){var Ng=new Dw,qh=0;try{var Og=lg.overlapShorts;void 0!==Og&&(Xj(Ng,1,Og),qh++);var Ce=lg.overlapChannels;void 0!==Ce&&(Xj(Ng,2,Ce),qh++);var De=[qh===Object.keys(lg).length,Ng]}catch(Oa){Y(Oa),
De=[!1,void 0]}var Qe=De;Qe[0]&&(Kj(Xa,Dw,14,mP,Qe[1]),Va++)}var qe=bb.audienceWatchesLongformDataStoryVariant;if(qe){var bk=new uw,Re=0;try{var wf=qe.hasOverlapVideo;void 0!==wf&&(Vj(bk,1,wf),Re++);var Xd=qe.hasOverlapLivestream;void 0!==Xd&&(Vj(bk,2,Xd),Re++);var rh=qe.overlapChannels;void 0!==rh&&(Xj(bk,3,rh),Re++);var Pg=[Re===Object.keys(qe).length,bk]}catch(Oa){Y(Oa),Pg=[!1,void 0]}var Pf=Pg;Pf[0]&&(Kj(Xa,uw,15,mP,Pf[1]),Va++)}var Qg=[Va===Object.keys(bb).length,Xa]}catch(Oa){Y(Oa),Qg=[!1,void 0]}var mg=
Qg;mg[0]&&(Jj(Z,Iw,12,mg[1]),Ua++)}var bi=y.cardConfig;if(bi){var Li=new Mw,Mi=0;try{var Pl=bi.cardType;void 0!==Pl&&(O(Li,3,oHa[Pl]),Mi++);var rj=bi.legacyMobileCardType;void 0!==rj&&(O(Li,5,pHa[rj]),Mi++);var ck=bi.entityType;void 0!==ck&&(O(Li,4,qHa[ck]),Mi++);var ng=bi.tableCardConfig;if(ng){var ge=new Lw,re=0;try{var Se=ng.dimension;void 0!==Se&&(O(ge,1,pP[Se]),re++);var sj=ng.metrics;void 0!==sj&&(kP(ge.j.bind(ge),sj,pP),re++);var Ql=[re===Object.keys(ng).length,ge]}catch(Oa){Y(Oa),Ql=[!1,void 0]}var dk=
Ql;dk[0]&&(Kj(Li,Lw,1,rHa,dk[1]),Mi++)}var sh=bi.keyMetricCardConfig;if(sh){var ek=new Kw,Yk=0;try{var ci=sh.metricTabConfigs;ci&&(jP(ek.j.bind(ek),ci,sHa),Yk++);var di=[Yk===Object.keys(sh).length,ek]}catch(Oa){Y(Oa),di=[!1,void 0]}var ei=di;ei[0]&&(Kj(Li,Kw,2,rHa,ei[1]),Mi++)}var Rl=[Mi===Object.keys(bi).length,Li]}catch(Oa){Y(Oa),Rl=[!1,void 0]}var Sl=Rl;Sl[0]&&(Jj(Z,Mw,13,Sl[1]),Ua++)}var Ni=y.externalVideoId;void 0!==Ni&&(N(Z,15,Ni),Ua++);var fi=y.videoSid;void 0!==fi&&(Yj(Z,16,fi),Ua++);var he=
y.exploreConfig;if(he){var og=new Uw,Rg=0;try{var Oi=he.metrics;void 0!==Oi&&(kP(og.j.bind(og),Oi,pP),Rg++);var xf=he.dimension;void 0!==xf&&(O(og,2,pP[xf]),Rg++);var fk=he.timePeriodType;void 0!==fk&&(O(og,3,nP[fk]),Rg++);var Zk=[Rg===Object.keys(he).length,og]}catch(Oa){Y(Oa),Zk=[!1,void 0]}var tj=Zk;tj[0]&&(Jj(Z,Uw,18,tj[1]),Ua++)}var gf=y.contentInspirationEntity;if(gf){var hf=new qw,Qf=0;try{var Pi=gf.video;if(Pi){var uj=new pw,Tl=0;try{var gk=Pi.externalVideoId;void 0!==gk&&(N(uj,1,gk),Tl++);
var nc=[Tl===Object.keys(Pi).length,uj]}catch(Oa){Y(Oa),nc=[!1,void 0]}var As=nc;As[0]&&(Kj(hf,pw,1,qP,As[1]),Qf++)}var Wp=gf.kgTopic;if(Wp){var yo=new ow,Xp=0;try{var hk=Wp.kgTopicMid;void 0!==hk&&(N(yo,1,hk),Xp++);var ik=[Xp===Object.keys(Wp).length,yo]}catch(Oa){Y(Oa),ik=[!1,void 0]}var Ul=ik;Ul[0]&&(Kj(hf,ow,2,qP,Ul[1]),Qf++)}var Qi=gf.freeformTopic;if(Qi){var $k=new mw,jk=0;try{var Yp=Qi.freeformTopic;void 0!==Yp&&(N($k,1,Yp),jk++);var Zp=Qi.languageCode;void 0!==Zp&&(N($k,4,Zp),jk++);var kk=
Qi.isContentGap;void 0!==kk&&(Vj($k,2,kk),jk++);var $p=Qi.isShortsContentGap;void 0!==$p&&(Vj($k,3,$p),jk++);var aq=Qi.isInVideoIdeaShelf;void 0!==aq&&(Vj($k,5,aq),jk++);var bq=[jk===Object.keys(Qi).length,$k]}catch(Oa){Y(Oa),bq=[!1,void 0]}var Rf=bq;Rf[0]&&(Kj(hf,mw,3,qP,Rf[1]),Qf++)}var yf=gf.generatedOutline;if(yf){var vj=new nw,Vl=0;try{var cq=yf.feedbackToken;void 0!==cq&&(N(vj,1,cq),Vl++);var gi=[Vl===Object.keys(yf).length,vj]}catch(Oa){Y(Oa),gi=[!1,void 0]}var hi=gi;hi[0]&&(Kj(hf,nw,4,qP,
hi[1]),Qf++)}var th=[Qf===Object.keys(gf).length,hf]}catch(Oa){Y(Oa),th=[!1,void 0]}var dq=th;dq[0]&&(Jj(Z,qw,19,dq[1]),Ua++)}var zo=[Ua===Object.keys(y).length,Z]}catch(Oa){Y(Oa),zo=[!1,void 0]}var uh=zo;uh[0]&&(Jj(q,Vw,20,uh[1]),r++)}var vh=p.promotionData;if(vh){var ii=new ux,$m=0;try{var eq=vh.promotionId;void 0!==eq&&(N(ii,1,eq),$m++);var Wl=vh.placementType;void 0!==Wl&&(O(ii,9,tHa[Wl]),$m++);var an=[$m===Object.keys(vh).length,ii]}catch(Oa){Y(Oa),an=[!1,void 0]}var bn=an;bn[0]&&(Jj(q,ux,21,
bn[1]),r++)}var al=p.backstageItem;if(al){var Xl=new Ww,Yl=0;try{var fq=al.stanzaId;void 0!==fq&&(N(Xl,1,fq),Yl++);var gq=al.likeCount;void 0!==gq&&(Yj(Xl,7,gq),Yl++);var Qc=al.backstageId;void 0!==Qc&&(N(Xl,9,Qc),Yl++);var ji=al.wasPostScheduled;void 0!==ji&&(Vj(Xl,14,ji),Yl++);var Ao=[Yl===Object.keys(al).length,Xl]}catch(Oa){Y(Oa),Ao=[!1,void 0]}var lk=Ao;lk[0]&&(Jj(q,Ww,32,lk[1]),r++)}var ki=p.adminSelfieData;if(ki){var Ri=new Rw,cn=0;try{var Bo=ki.componentId;void 0!==Bo&&(N(Ri,1,Bo),cn++);var hq=
ki.componentType;void 0!==hq&&(N(Ri,2,hq),cn++);var zf=ki.payload;if(zf){var pg=new Qw,wh=0;try{var Zl=zf.include;if(Zl){var dn=new Nw,Co=0;try{var iq=Zl.fragmentName;void 0!==iq&&(N(dn,1,iq),Co++);var Do=[Co===Object.keys(Zl).length,dn]}catch(Oa){Y(Oa),Do=[!1,void 0]}var jq=Do;jq[0]&&(Kj(pg,Nw,1,uHa,jq[1]),wh++)}var bl=zf.toolboxPage;if(bl){var en=new Pw,Eo=0;try{var kq=bl.fragmentName;void 0!==kq&&(N(en,1,kq),Eo++);var cl=[Eo===Object.keys(bl).length,en]}catch(Oa){Y(Oa),cl=[!1,void 0]}var lq=cl;
lq[0]&&(Kj(pg,Pw,2,uHa,lq[1]),wh++)}var Fo=zf.reviewQueuePage;if(Fo){var mq=new Ow,Go=0;try{var $l=Fo.queueId;void 0!==$l&&(Wj(mq,1,$l),Go++);var mk=[Go===Object.keys(Fo).length,mq]}catch(Oa){Y(Oa),mk=[!1,void 0]}var am=mk;am[0]&&(Kj(pg,Ow,3,uHa,am[1]),wh++)}var nq=[wh===Object.keys(zf).length,pg]}catch(Oa){Y(Oa),nq=[!1,void 0]}var Ho=nq;Ho[0]&&(Jj(Ri,Qw,3,Ho[1]),cn++)}var Io=[cn===Object.keys(ki).length,Ri]}catch(Oa){Y(Oa),Io=[!1,void 0]}var oq=Io;oq[0]&&(Jj(q,Rw,41,oq[1]),r++)}var wj=p.notificationState;
if(wj){var dl=new Hx,li=0;try{var qg=wj.inboxInteractionData;if(qg){var bm=new Gx,Jo=0;try{var mi=qg.notifications;mi&&(jP(bm.j.bind(bm),mi,vHa),Jo++);var pq=[Jo===Object.keys(qg).length,bm]}catch(Oa){Y(Oa),pq=[!1,void 0]}var Ko=pq;Ko[0]&&(Jj(dl,Gx,9,Ko[1]),li++)}var qq=[li===Object.keys(wj).length,dl]}catch(Oa){Y(Oa),qq=[!1,void 0]}var fn=qq;fn[0]&&(Jj(q,Hx,59,fn[1]),r++)}var Sf=p.delegationContext;if(Sf){var Tf=new rx,Si=0;try{var xh=Sf.externalChannelId;void 0!==xh&&(N(Tf,1,xh),Si++);var cm=Sf.externalOwnerId;
void 0!==cm&&(N(Tf,3,cm),Si++);var Ti=Sf.artistId;void 0!==Ti&&(N(Tf,4,Ti),Si++);var yh=Sf.roleType;if(yh){var xj=new qx,el=0;try{var dm=yh.channelRoleType;void 0!==dm&&(zk(xj,1,wHa,xHa[dm]),el++);var em=yh.artistRoleType;void 0!==em&&(zk(xj,2,wHa,yHa[em]),el++);var gn=yh.contentOwnerRoleType;void 0!==gn&&(zk(xj,3,wHa,zHa[gn]),el++);var rq=[el===Object.keys(yh).length,xj]}catch(Oa){Y(Oa),rq=[!1,void 0]}var sq=rq;sq[0]&&(Jj(Tf,qx,5,sq[1]),Si++)}var fm=Sf.oacChannelId;void 0!==fm&&(N(Tf,6,fm),Si++);
var hn=Sf.isInternalUser;void 0!==hn&&(Vj(Tf,8,hn),Si++);var jn=Sf.user;void 0!==jn&&(Vj(Tf,10,jn),Si++);var Bs=Sf.delegationContextSerialized;void 0!==Bs&&(yk(Tf,9,Bs),Si++);var Lo=[Si===Object.keys(Sf).length,Tf]}catch(Oa){Y(Oa),Lo=[!1,void 0]}var tq=Lo;tq[0]&&(Jj(q,rx,63,tq[1]),r++)}var gm=p.campaignData;if(gm){var nk=new Ex,kn=0;try{var Mo=gm.campaignName;void 0!==Mo&&(N(nk,1,Mo),kn++);var Ee=gm.campaignVersion;void 0!==Ee&&(N(nk,2,Ee),kn++);var Te=[kn===Object.keys(gm).length,nk]}catch(Oa){Y(Oa),
Te=[!1,void 0]}var Ue=Te;Ue[0]&&(Jj(q,Ex,64,Ue[1]),r++)}var ln=p.scoringEventInfo;if(ln){var uq=new vx,mn=0;try{var No=ln.scoringTrackingParams;void 0!==No&&(yk(uq,1,No),mn++);var Oo=[mn===Object.keys(ln).length,uq]}catch(Oa){Y(Oa),Oo=[!1,void 0]}var vq=Oo;vq[0]&&(Jj(q,vx,77,vq[1]),r++)}var Po=p.servletData;if(Po){var wq=new wx,xq=0;try{var hm=Po.serializedServletEventId;void 0!==hm&&(N(wq,1,hm),xq++);var nn=[xq===Object.keys(Po).length,wq]}catch(Oa){Y(Oa),nn=[!1,void 0]}var on=nn;on[0]&&(Jj(q,wx,
83,on[1]),r++)}var Qo=p.yoodleData;if(Qo){var yq=new Dx,zq=0;try{var Aq=Qo.promoId;void 0!==Aq&&(N(yq,1,Aq),zq++);var Bq=[zq===Object.keys(Qo).length,yq]}catch(Oa){Y(Oa),Bq=[!1,void 0]}var Cq=Bq;Cq[0]&&(Jj(q,Dx,85,Cq[1]),r++)}var ok=p.videoRestrictionData;if(ok){var im=new Cx,pn=0;try{var Dq=ok.restrictions;Dq&&(jP(im.j.bind(im),Dq,AHa),pn++);var qn=ok.prechecksPending;void 0!==qn&&(Vj(im,2,qn),pn++);var Ui=[pn===Object.keys(ok).length,im]}catch(Oa){Y(Oa),Ui=[!1,void 0]}var Vi=Ui;Vi[0]&&(Jj(q,Cx,
92,Vi[1]),r++)}var Sg=p.creatorMusicData;if(Sg){var yj=new nx,fl=0;try{var pk=Sg.entity;if(pk){var jm=BHa(pk);jm[0]&&(Jj(yj,lx,1,jm[1]),fl++)}var gl=Sg.entities;gl&&(jP(yj.j.bind(yj),gl,BHa),fl++);var Eq=Sg.track;if(Eq){var Fq=CHa(Eq);Fq[0]&&(Kj(yj,kx,3,DHa,Fq[1]),fl++)}var Gq=Sg.collection;if(Gq){var Hq=EHa(Gq);Hq[0]&&(Kj(yj,ix,4,DHa,Hq[1]),fl++)}var Ro=[fl===Object.keys(Sg).length,yj]}catch(Oa){Y(Oa),Ro=[!1,void 0]}var Iq=Ro;Iq[0]&&(Jj(q,nx,96,Iq[1]),r++)}var Fe=p.creatorData;if(Fe){var Ge=new dx,
Af=0;try{var Jq=Fe.ttWizardTargetFeature;void 0!==Jq&&(zk(Ge,1,FHa,GHa[Jq]),Af++);var Kq=Fe.ttWizardTargetLevel;void 0!==Kq&&(zk(Ge,2,FHa,HHa[Kq]),Af++);var qk=Fe.simpleWizardDetails;if(qk){var km=new cx;try{var hl=[0===Object.keys(qk).length,km]}catch(Oa){Y(Oa),hl=[!1,void 0]}var il=hl;il[0]&&(Kj(Ge,cx,3,IHa,il[1]),Af++)}var jl=Fe.advancedWizardDetails;if(jl){var lm=new ax,Lq=0;try{var Mq=jl.isDoubleHop;void 0!==Mq&&(Vj(lm,1,Mq),Lq++);var Nq=[Lq===Object.keys(jl).length,lm]}catch(Oa){Y(Oa),Nq=[!1,
void 0]}var Oq=Nq;Oq[0]&&(Kj(Ge,ax,4,IHa,Oq[1]),Af++)}var So=Fe.blockedWizardDetails;if(So){var mm=new bx,Pq=0;try{var zh=So.loggableBlockedReason;void 0!==zh&&(O(mm,1,JHa[zh]),Pq++);var rk=[Pq===Object.keys(So).length,mm]}catch(Oa){Y(Oa),rk=[!1,void 0]}var kl=rk;kl[0]&&(Kj(Ge,bx,5,IHa,kl[1]),Af++)}var Cs=[Af===Object.keys(Fe).length,Ge]}catch(Oa){Y(Oa),Cs=[!1,void 0]}var nm=Cs;nm[0]&&(Jj(q,dx,98,nm[1]),r++)}var sk=p.adstubeData;if(sk){var Ds=new Tw,Ve=0;try{var ni=sk.countryTargetingPrefill;if(ni){var Ah=
new Sw,Bh=0;try{var rn=ni.prefilledCodes;rn&&(jP(Ah.B.bind(Ah),rn),Bh++);var Wi=ni.finalCodes;Wi&&(jP(Ah.j.bind(Ah),Wi),Bh++);var Qq=ni.source;void 0!==Qq&&(N(Ah,3,Qq),Bh++);var Es=[Bh===Object.keys(ni).length,Ah]}catch(Oa){Y(Oa),Es=[!1,void 0]}var Fs=Es;Fs[0]&&(Jj(Ds,Sw,1,Fs[1]),Ve++)}var Rq=[Ve===Object.keys(sk).length,Ds]}catch(Oa){Y(Oa),Rq=[!1,void 0]}var ll=Rq;ll[0]&&(Jj(q,Tw,104,ll[1]),r++)}var om=p.loggingExpectations;if(om){var pm=KHa(om);pm[0]&&(Jj(q,Lx,106,pm[1]),r++)}var qm=p.channelPageVeData;
if(qm){var ml=new Zw,Sq=0;try{var To=qm.isForYouShelf;void 0!==To&&(Vj(ml,2,To),Sq++);var tk=[Sq===Object.keys(qm).length,ml]}catch(Oa){Y(Oa),tk=[!1,void 0]}var Uo=tk;Uo[0]&&(Jj(q,Zw,107,Uo[1]),r++)}var Xi=p.shoppingAffiliateData;if(Xi){var zj=new xx,nl=0;try{var Vo=Xi.affiliateDeepLinkSource;void 0!==Vo&&(O(zj,1,LHa[Vo]),nl++);var ol=[nl===Object.keys(Xi).length,zj]}catch(Oa){Y(Oa),ol=[!1,void 0]}var rm=ol;rm[0]&&(Jj(q,xx,109,rm[1]),r++)}var sm=p.hashtagSuggestionData;if(sm){var tm=new sx,Yi=0;try{var Gs=
sm.hashtagId;void 0!==Gs&&(N(tm,1,Gs),Yi++);var um=sm.suggestionSources;void 0!==um&&(kP(tm.j.bind(tm),um,MHa),Yi++);var uk=[Yi===Object.keys(sm).length,tm]}catch(Oa){Y(Oa),uk=[!1,void 0]}var vk=uk;vk[0]&&(Jj(q,sx,111,vk[1]),r++)}var pl=p.componentData;if(pl){var Tq=new $w,Hs=0;try{var Is=pl.standardComponentType;void 0!==Is&&(O(Tq,1,NHa[Is]),Hs++);var Uq=[Hs===Object.keys(pl).length,Tq]}catch(Oa){Y(Oa),Uq=[!1,void 0]}var Wo=Uq;Wo[0]&&(Jj(q,$w,121,Wo[1]),r++)}var Xo=p.creatorShoppingTaggingData;if(Xo){var Yo=
new px,Vq=0;try{var Wq=Xo.products;Wq&&(jP(Yo.j.bind(Yo),Wq,OHa),Vq++);var Aj=[Vq===Object.keys(Xo).length,Yo]}catch(Oa){Y(Oa),Aj=[!1,void 0]}var wk=Aj;wk[0]&&(Jj(q,px,122,wk[1]),r++)}var Tg=[r===Object.keys(p).length,q]}catch(Oa){Y(Oa),Tg=[!1,void 0]}var Xq=Tg;Xq[0]&&(Jj(b,Mx,8,Xq[1]),c++)}var Yq=a.loggingExpectations;if(Yq){var Zq=KHa(Yq);Zq[0]&&(Jj(b,Lx,9,Zq[1]),c++)}return[c===Object.keys(a).length,b]}catch(Oa){return Y(Oa),[!1,void 0]}};
eHa=function(a){var b=new Fw,c=0;try{var d=a.views;void 0!==d&&(O(b,1,oP[d]),c++);var e=a.driver;void 0!==e&&(O(b,2,PHa[e]),c++);var f=a.ctr;void 0!==f&&(O(b,3,oP[f]),c++);var h=a.avd;void 0!==h&&(O(b,4,oP[h]),c++);var l=a.impressions;void 0!==l&&(O(b,5,oP[l]),c++);var m=a.videoLength;void 0!==m&&(O(b,6,oP[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
iHa=function(a){var b=new zw,c=0;try{var d=a.subsGrowth;void 0!==d&&(O(b,1,oP[d]),c++);var e=a.nonSubViews;void 0!==e&&(O(b,2,oP[e]),c++);var f=a.subsAddedPerNonSubViews;void 0!==f&&(O(b,3,oP[f]),c++);var h=a.accountsClosed;void 0!==h&&(O(b,4,oP[h]),c++);var l=a.subsRemovedToAddedRatio;void 0!==l&&(O(b,5,oP[l]),c++);var m=a.videosPublished;void 0!==m&&(O(b,6,oP[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
jHa=function(a){var b=new yw,c=0;try{var d=a.revenue;void 0!==d&&(O(b,1,oP[d]),c++);var e=a.revenueSource;void 0!==e&&(O(b,2,QHa[e]),c++);var f=a.revenueDrivingMetrics;void 0!==f&&(kP(b.j.bind(b),f,RHa),c++);var h=a.revenueChangeReason;void 0!==h&&(O(b,4,SHa[h]),c++);var l=a.revenueChangeFact;void 0!==l&&(O(b,5,THa[l]),c++);var m=a.driverCountryCode;void 0!==m&&(N(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
kHa=function(a){var b=new xw,c=0;try{var d=a.views;void 0!==d&&(O(b,1,oP[d]),c++);var e=a.drivers;void 0!==e&&(kP(b.j.bind(b),e,UHa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
sHa=function(a){var b=new Jw,c=0;try{var d=a.metric;void 0!==d&&(O(b,1,pP[d]),c++);var e=a.comparisonMetric;void 0!==e&&(O(b,2,pP[e]),c++);var f=a.includeCumulative;void 0!==f&&(Vj(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
vHa=function(a){var b=new Fx,c=0;try{var d=a.attributionTag;void 0!==d&&(N(b,2,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
AHa=function(a){var b=new Bx,c=0;try{var d=a.limitedAds;if(d){var e=new Ax,f=0;try{var h=d.imposer;void 0!==h&&(O(e,1,VHa[h]),f++);var l=[f===Object.keys(d).length,e]}catch(F){Y(F),l=[!1,void 0]}d=l;d[0]&&(Kj(b,Ax,1,WHa,d[1]),c++)}var m=a.copyright;if(m){var n=new zx;d=0;try{var p=m.policyType;void 0!==p&&(O(n,1,XHa[p]),d++);var q=m.productTagsBlocked;void 0!==q&&(Vj(n,2,q),d++);var r=[d===Object.keys(m).length,n]}catch(F){Y(F),r=[!1,void 0]}m=r;m[0]&&(Kj(b,zx,2,WHa,m[1]),c++)}var t=a.communityGuidelines;
if(t){var v=new yx;m=0;try{var x=t.policyVerticals;void 0!==x&&(kP(v.j.bind(v),x,YHa),m++);var B=[m===Object.keys(t).length,v]}catch(F){Y(F),B=[!1,void 0]}t=B;t[0]&&(Kj(b,yx,3,WHa,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(F){return Y(F),[!1,void 0]}};
BHa=function(a){var b=new lx,c=0;try{var d=a.featuredCollection;if(d){var e=ZHa(d);e[0]&&(Kj(b,ex,1,rP,e[1]),c++)}var f=a.mood;if(f){var h=$Ha(f);h[0]&&(Kj(b,gx,2,rP,h[1]),c++)}var l=a.genre;if(l){var m=aIa(l);m[0]&&(Kj(b,fx,3,rP,m[1]),c++)}var n=a.track;if(n){var p=CHa(n);p[0]&&(Kj(b,kx,4,rP,p[1]),c++)}return[c===Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
ZHa=function(a){var b=new ex,c=0;try{var d=a.id;void 0!==d&&(N(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
$Ha=function(a){var b=new gx,c=0;try{var d=a.type;void 0!==d&&(O(b,1,bIa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
aIa=function(a){var b=new fx,c=0;try{var d=a.type;void 0!==d&&(O(b,1,cIa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
CHa=function(a){var b=new kx,c=0;try{var d=a.artTrackId;void 0!==d&&(N(b,1,d),c++);var e=a.assetId;void 0!==e&&(N(b,2,e),c++);var f=a.details;if(f){var h=new jx;try{var l=[0===Object.keys(f).length,h]}catch(p){Y(p),l=[!1,void 0]}d=l;d[0]&&(Jj(b,jx,3,d[1]),c++)}var m=a.parent;if(m){var n=EHa(m);n[0]&&(Jj(b,ix,4,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}};
EHa=function(a){var b=new ix,c=0;try{var d=a.featuredCollection;if(d){var e=ZHa(d);e[0]&&(Kj(b,ex,1,sP,e[1]),c++)}var f=a.mood;if(f){var h=$Ha(f);h[0]&&(Kj(b,gx,2,sP,h[1]),c++)}var l=a.genre;if(l){var m=aIa(l);m[0]&&(Kj(b,fx,3,sP,m[1]),c++)}var n=a.section;if(n){var p=new hx;d=0;try{var q=n.type;void 0!==q&&(O(p,1,dIa[q]),d++);var r=[d===Object.keys(n).length,p]}catch(v){Y(v),r=[!1,void 0]}n=r;n[0]&&(Kj(b,hx,4,sP,n[1]),c++)}var t=a.dimension;void 0!==t&&(O(b,5,eIa[t]),c++);return[c===Object.keys(a).length,
b]}catch(v){return Y(v),[!1,void 0]}};
KHa=function(a){var b=new Lx,c=0;try{var d=a.attachLoggingExpectations;if(d){var e=new Jx,f=0;try{var h=d.attachScreenExpectations;h&&(jP(e.j.bind(e),h,fIa),f++);var l=[f===Object.keys(d).length,e]}catch(r){Y(r),l=[!1,void 0]}d=l;d[0]&&(Jj(b,Jx,1,d[1]),c++)}var m=a.screenCreatedLoggingExpectations;if(m){var n=new Kx;d=0;try{var p=m.expectedParentScreens;p&&(jP(n.j.bind(n),p,fIa),d++);var q=[d===Object.keys(m).length,n]}catch(r){Y(r),q=[!1,void 0]}m=q;m[0]&&(Jj(b,Kx,2,m[1]),c++)}return[c===Object.keys(a).length,
b]}catch(r){return Y(r),[!1,void 0]}};
fIa=function(a){var b=new Ix,c=0;try{var d=a.screenVeType;void 0!==d&&(jma(b,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
OHa=function(a){var b=new ox,c=0;try{var d=a.taggingSource;void 0!==d&&(O(b,1,gIa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
jIa=function(a){var b=new wz,c=0;try{var d=a.segments;d&&(jP(b.j.bind(b),d,hIa),c++);var e=a.transitions;e&&(jP(b.B.bind(b),e,iIa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
hIa=function(a){var b=new uz,c=0;try{var d=a.type;void 0!==d&&(O(b,1,kIa[d]),c++);var e=a.effects;e&&(jP(b.t4.bind(b),e,lIa),c++);var f=a.videoInfo;if(f){var h=mIa(f);h[0]&&(Jj(b,sz,3,h[1]),c++)}var l=a.audioInfo;if(l){var m=new rz;d=0;try{var n=l.sourceOffsetMs;void 0!==n&&(Yj(m,1,n),d++);var p=l.sampleRateHz;void 0!==p&&(Wj(m,2,p),d++);var q=l.channelCount;void 0!==q&&(Wj(m,3,q),d++);var r=l.isRemote;void 0!==r&&(Vj(m,4,r),d++);var t=[d===Object.keys(l).length,m]}catch(G){Y(G),t=[!1,void 0]}l=t;
l[0]&&(Jj(b,rz,4,l[1]),c++)}var v=a.startTimeMs;void 0!==v&&(Yj(b,5,v),c++);var x=a.durationMs;void 0!==x&&(Zj(b,6,x),c++);var B=a.playbackRate;void 0!==B&&(b.setPlaybackRate(B),c++);var F=a.enabled;void 0!==F&&(b.sR(F),c++);return[c===Object.keys(a).length,b]}catch(G){return Y(G),[!1,void 0]}};
lIa=function(a){var b=new tz,c=0;try{var d=a.effectBaseName;void 0!==d&&(N(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
mIa=function(a){var b=new sz,c=0;try{var d=a.resolutionWidth;void 0!==d&&(Wj(b,1,d),c++);var e=a.resolutionHeight;void 0!==e&&(Wj(b,2,e),c++);var f=a.frameRate;void 0!==f&&(ak(b,3,f),c++);var h=a.durationMs;void 0!==h&&(Zj(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
iIa=function(a){var b=new vz,c=0;try{var d=a.incomingSegment;if(d){var e=hIa(d);e[0]&&(Jj(b,uz,1,e[1]),c++)}var f=a.outgoingSegment;if(f){var h=hIa(f);h[0]&&(Jj(b,uz,2,h[1]),c++)}var l=a.durationMs;void 0!==l&&(Zj(b,3,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}};
nIa=function(a){var b=new mz,c=0;try{var d=a.previewWidth;void 0!==d&&(Wj(b,1,d),c++);var e=a.previewHeight;void 0!==e&&(Wj(b,2,e),c++);var f=a.fps;void 0!==f&&(Wj(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
mJa=function(a){var b=new SA,c=0;try{var d=a.encryptedVideoId;void 0!==d&&(N(b,1,d),c++);var e=a.cotn;void 0!==e&&(N(b,20,e),c++);var f=a.cpn;void 0!==f&&(N(b,30,f),c++);var h=a.transferStatusType;void 0!==h&&(O(b,38,oIa[h]),c++);var l=a.statusType;void 0!==l&&(O(b,2,pIa[l]),c++);var m=a.failureReason;void 0!==m&&(O(b,3,qIa[m]),c++);var n=a.transferFailureReason;void 0!==n&&(O(b,41,rIa[n]),c++);var p=a.failureExceptionType;void 0!==p&&(N(b,37,p),c++);var q=a.totalFetchedKbytes;void 0!==q&&(Yj(b,4,
q),c++);var r=a.diskAvailableKbytes;void 0!==r&&(Yj(b,5,r),c++);var t=a.totalContentKbytes;void 0!==t&&(Yj(b,21,t),c++);var v=a.alreadyDownloadedKbytes;void 0!==v&&(Yj(b,22,v),c++);var x=a.fetchedFromCacheKbytes;void 0!==x&&(Yj(b,23,x),c++);var B=a.systemHealth;if(B){var F=new fA,G=0;try{var I=B.tag;void 0!==I&&(O(F,1,sIa[I]),G++);var L=B.staticContext;if(L){var P=new aA,V=0;try{var ka=L.displayDensityDpi;void 0!==ka&&(Wj(P,1,ka),V++);var sa=L.heightPixels;void 0!==sa&&(Wj(P,2,sa),V++);var ta=L.widthPixels;
void 0!==ta&&(Wj(P,3,ta),V++);var la=L.memoryTotalKbytes;void 0!==la&&(Yj(P,4,la),V++);var qa=L.osSdkVersion;void 0!==qa&&(Wj(P,5,qa),V++);var ba=L.osIncrementalVersion;void 0!==ba&&(N(P,6,ba),V++);var T=L.hardwareArchitecture;void 0!==T&&(N(P,7,T),V++);var Ma=L.appVersionCode;void 0!==Ma&&(Wj(P,8,Ma),V++);var y=L.devicePixelRatio;void 0!==y&&(ak(P,9,y),V++);var Z=L.buildFingerprint;void 0!==Z&&(N(P,10,Z),V++);var Ua=L.socManufacturer;void 0!==Ua&&(N(P,11,Ua),V++);var Za=L.socModel;void 0!==Za&&(N(P,
12,Za),V++);var bb=L.availableProcessors;void 0!==bb&&(Wj(P,13,bb),V++);var Xa=L.cpuCores;void 0!==Xa&&(Wj(P,14,Xa),V++);var Va=L.heightPoints;void 0!==Va&&(Wj(P,15,Va),V++);var lb=L.widthPoints;void 0!==lb&&(Wj(P,16,lb),V++);var Ab=L.androidMediaPerformanceClass;void 0!==Ab&&(Wj(P,17,Ab),V++);var ob=[V===Object.keys(L).length,P]}catch(rb){Y(rb),ob=[!1,void 0]}var A=ob;A[0]&&(Jj(F,aA,2,A[1]),G++)}var D=B.dynamicContext;if(D){var E=new Vz,C=0;try{var K=D.screenOn;void 0!==K&&(Vj(E,1,K),C++);var X=
D.deviceRotation;void 0!==X&&(Wj(E,2,X),C++);var ma=D.networkType;void 0!==ma&&(Wj(E,3,ma),C++);var fa=D.networkCoarseState;void 0!==fa&&(Wj(E,4,fa),C++);var S=D.chargingStatus;void 0!==S&&(O(E,5,tIa[S]),C++);var na=D.isInForeground;void 0!==na&&(Vj(E,6,na),C++);var Ea=D.viewportHeightPixels;void 0!==Ea&&(Wj(E,7,Ea),C++);var Ca=D.viewportWidthPixels;void 0!==Ca&&(Wj(E,8,Ca),C++);var cb=D.hasCoarsePointer;void 0!==cb&&(Vj(E,9,cb),C++);var kb=D.hasFinePointer;void 0!==kb&&(Vj(E,10,kb),C++);var Bb=D.hasHoverSupport;
void 0!==Bb&&(Vj(E,11,Bb),C++);var Ob=D.deviceFreeStorageMbytes;void 0!==Ob&&(Yj(E,12,Ob),C++);var tb=D.deviceStorageQuotaMbytes;void 0!==tb&&(Yj(E,13,tb),C++);var qb=D.deviceStorageUsageMbytes;void 0!==qb&&(Yj(E,14,qb),C++);var tc=D.processUptimeMs;void 0!==tc&&(Yj(E,15,tc),C++);var Uc=D.hasAppShell;void 0!==Uc&&(Vj(E,16,Uc),C++);var gc=D.glVersion;void 0!==gc&&(N(E,17,gc),C++);var Vc=D.glRenderer;void 0!==Vc&&(N(E,18,Vc),C++);var md=D.srsDatapushBuildIds;md&&(jP(E.B.bind(E),md,uIa),C++);var Lc=
D.playerDatapushBuildIds;Lc&&(jP(E.j.bind(E),Lc,vIa),C++);var nd=D.creationContext;if(nd){var od=new Tz,Yb=0;try{var lc=nd.activeFrontendUploadId;void 0!==lc&&(N(od,1,lc),Yb++);var Kd=nd.inShortsCreation;void 0!==Kd&&(Vj(od,2,Kd),Yb++);var $c=nd.activeEffectLoggingIds;$c&&(jP(od.j.bind(od),$c,wIa),Yb++);var ec=nd.activePages;void 0!==ec&&(kP(od.B.bind(od),ec,xIa),Yb++);var ad=[Yb===Object.keys(nd).length,od]}catch(rb){Y(rb),ad=[!1,void 0]}var Qb=ad;Qb[0]&&(Jj(E,Tz,21,Qb[1]),C++)}var Ad=D.kimonoContext;
if(Ad){var Wd=new Uz,Sb=0;try{var af=Ad.cobaltUserAgent;void 0!==af&&(N(Wd,1,af),Sb++);var ze=Ad.webAppVersion;void 0!==ze&&(N(Wd,2,ze),Sb++);var Oe=Ad.cobaltVersion;void 0!==Oe&&(N(Wd,3,Oe),Sb++);var uf=Ad.webAppInterface;void 0!==uf&&(O(Wd,4,yIa[uf]),Sb++);var bf=Ad.clientDocumentNonce;void 0!==bf&&(N(Wd,5,bf),Sb++);var jh=Ad.applicationState;void 0!==jh&&(O(Wd,6,zIa[jh]),Sb++);var Ig=[Sb===Object.keys(Ad).length,Wd]}catch(rb){Y(rb),Ig=[!1,void 0]}var kh=Ig;kh[0]&&(Jj(E,Uz,22,kh[1]),C++)}var Jg=
[C===Object.keys(D).length,E]}catch(rb){Y(rb),Jg=[!1,void 0]}var lh=Jg;lh[0]&&(Jj(F,Vz,3,lh[1]),G++)}var Ae=B.serializedPrimesMetric;void 0!==Ae&&(yk(F,4,Ae),G++);var cf=B.serializedIosPrimesMetric;void 0!==cf&&(yk(F,6,cf),G++);var bd=B.webMetric;if(bd){var fe=new cA,vc=0;try{var Kg=bd.currentHeapKbytes;void 0!==Kg&&(Wj(fe,1,Kg),vc++);var mh=bd.navigationCount;void 0!==mh&&(Wj(fe,2,mh),vc++);var nh=[vc===Object.keys(bd).length,fe]}catch(rb){Y(rb),nh=[!1,void 0]}var oh=nh;oh[0]&&(Jj(F,cA,7,oh[1]),
G++)}var Be=B.crashData;if(Be){var wc=new Pz,Lf=0;try{var Yh=Be.stackTrace;void 0!==Yh&&(N(wc,1,Yh),Lf++);var Zh=Be.screenVeType;void 0!==Zh&&(Wj(wc,2,Zh),Lf++);var Ii=Be.compactStackTrace;if(Ii){var df=tP(Ii);df[0]&&(Jj(wc,bz,3,df[1]),Lf++)}var hg=Be.crashTimeMs;void 0!==hg&&(Yj(wc,4,hg),Lf++);var Pe=Be.clientError;if(Pe){var ig=new Oz,vf=0;try{var Dc=Pe.errorMetadata;if(Dc){var rc=new Cz,Zb=0;try{var Lg=Dc.exceptionCategory;void 0!==Lg&&(O(rc,1,AIa[Lg]),Zb++);var ef=Dc.serviceTrackingData;if(ef){var Mf=
new lz,Nf=0;try{var Ji=ef.innertubeBuildChangelist;void 0!==Ji&&(Yj(Mf,1,Ji),Nf++);var qj=ef.innertubeBuildExperimentsSourceVersion;void 0!==qj&&(Yj(Mf,2,qj),Nf++);var jg=ef.innertubeBuildLabel;void 0!==jg&&(N(Mf,3,jg),Nf++);var ph=ef.innertubeBuildTimestampSec;void 0!==ph&&(Yj(Mf,4,ph),Nf++);var $h=ef.innertubeBuildVariantsChecksum;void 0!==$h&&(N(Mf,5,$h),Nf++);var ai=ef.innertubeJobName;void 0!==ai&&(N(Mf,6,ai),Nf++);var kg=[Nf===Object.keys(ef).length,Mf]}catch(rb){Y(rb),kg=[!1,void 0]}var ff=
kg;ff[0]&&(Jj(rc,lz,2,ff[1]),Zb++)}var Mg=Dc.pageUrl;void 0!==Mg&&(N(rc,3,Mg),Zb++);var Of=Dc.kvPairs;Of&&(jP(rc.j.bind(rc),Of,BIa),Zb++);var Ki=Dc.experimentIds;Ki&&(jP(rc.B.bind(rc),Ki),Zb++);var lg=Dc.playerMetadata;if(lg){var Ng=new Bz,qh=0;try{var Og=lg.error;void 0!==Og&&(kP(Ng.j.bind(Ng),Og,CIa),qh++);var Ce=lg.stackTrace;void 0!==Ce&&(N(Ng,2,Ce),qh++);var De=[qh===Object.keys(lg).length,Ng]}catch(rb){Y(rb),De=[!1,void 0]}var Qe=De;Qe[0]&&(Jj(rc,Bz,6,Qe[1]),Zb++)}var qe=Dc.exceptionType;void 0!==
qe&&(O(rc,7,DIa[qe]),Zb++);var bk=Dc.clientScreenNonce;void 0!==bk&&(N(rc,8,bk),Zb++);var Re=Dc.blocksMethodExecutionInfo;if(Re){var wf=new jz,Xd=0;try{var rh=Re.methodId;void 0!==rh&&(Xj(wf,1,rh),Xd++);var Pg=Re.blockTypeId;void 0!==Pg&&(Xj(wf,2,Pg),Xd++);var Pf=Re.methodType;void 0!==Pf&&(O(wf,3,EIa[Pf]),Xd++);var Qg=Re.requestSize;void 0!==Qg&&(Xj(wf,4,Qg),Xd++);var mg=Re.responseSize;void 0!==mg&&(Xj(wf,5,mg),Xd++);var bi=Re.statusCode;void 0!==bi&&(Xj(wf,6,bi),Xd++);var Li=Re.containerId;void 0!==
Li&&(Xj(wf,7,Li),Xd++);var Mi=Re.moduleIdentifier;void 0!==Mi&&(N(wf,8,Mi),Xd++);var Pl=Re.datapushBuildId;void 0!==Pl&&(Zj(wf,9,Pl),Xd++);var rj=Re.attribution;void 0!==rj&&(O(wf,10,FIa[rj]),Xd++);var ck=[Xd===Object.keys(Re).length,wf]}catch(rb){Y(rb),ck=[!1,void 0]}var ng=ck;ng[0]&&(Jj(rc,jz,9,ng[1]),Zb++)}var ge=Dc.mediaEngineMetadata;if(ge){var re=new g.zz,Se=0;try{var sj=ge.client;void 0!==sj&&(re.ex(GIa[sj]),Se++);var Ql=ge.mdeErrorType;void 0!==Ql&&(O(re,2,HIa[Ql]),Se++);var dk=ge.uploadId;
void 0!==dk&&(N(re,3,dk),Se++);var sh=ge.composition;sh&&(jP(re.j.bind(re),sh,jIa),Se++);var ek=ge.player;if(ek){var Yk=new xz,ci=0;try{var di=ek.state;void 0!==di&&(Yk.Dc(IIa[di]),ci++);var ei=ek.playbackPositionTimeMs;void 0!==ei&&(Yj(Yk,2,ei),ci++);var Rl=[ci===Object.keys(ek).length,Yk]}catch(rb){Y(rb),Rl=[!1,void 0]}var Sl=Rl;Sl[0]&&(Jj(re,xz,5,Sl[1]),Se++)}var Ni=ge.exporter;if(Ni){var fi=new qz,he=0;try{var og=Ni.settings;if(og){var Rg=new pz,Oi=0;try{var xf=og.audioChannelCount;void 0!==xf&&
(Wj(Rg,1,xf),Oi++);var fk=og.resolutionWidth;void 0!==fk&&(Wj(Rg,2,fk),Oi++);var Zk=og.resolutionHeight;void 0!==Zk&&(Wj(Rg,3,Zk),Oi++);var tj=[Oi===Object.keys(og).length,Rg]}catch(rb){Y(rb),tj=[!1,void 0]}var gf=tj;gf[0]&&(fi.hh(gf[1]),he++)}var hf=Ni.state;void 0!==hf&&(fi.Dc(JIa[hf]),he++);var Qf=Ni.durationMs;void 0!==Qf&&(Zj(fi,3,Qf),he++);var Pi=Ni.progressMs;void 0!==Pi&&(Zj(fi,4,Pi),he++);var uj=[he===Object.keys(Ni).length,fi]}catch(rb){Y(rb),uj=[!1,void 0]}var Tl=uj;Tl[0]&&(Jj(re,qz,6,
Tl[1]),Se++)}var gk=ge.projectId;void 0!==gk&&(N(re,7,gk),Se++);var nc=ge.deviceInfo;if(nc){var As=new oz,Wp=0;try{var yo=nc.audioOutputLatencyMs;void 0!==yo&&(Wj(As,1,yo),Wp++);var Xp=[Wp===Object.keys(nc).length,As]}catch(rb){Y(rb),Xp=[!1,void 0]}var hk=Xp;hk[0]&&(Jj(re,oz,8,hk[1]),Se++)}var ik=ge.preprocessor;if(ik){var Ul=new g.yz,Qi=0;try{var $k=ik.originalVideo;if($k){var jk=mIa($k);jk[0]&&(Jj(Ul,sz,1,jk[1]),Qi++)}var Yp=ik.processedVideo;if(Yp){var Zp=mIa(Yp);Zp[0]&&(Jj(Ul,sz,2,Zp[1]),Qi++)}var kk=
[Qi===Object.keys(ik).length,Ul]}catch(rb){Y(rb),kk=[!1,void 0]}var $p=kk;$p[0]&&(Jj(re,g.yz,9,$p[1]),Se++)}var aq=ge.clientSurface;void 0!==aq&&(O(re,10,KIa[aq]),Se++);var bq=[Se===Object.keys(ge).length,re]}catch(rb){Y(rb),bq=[!1,void 0]}var Rf=bq;Rf[0]&&(Jj(rc,g.zz,10,Rf[1]),Zb++)}var yf=Dc.cameraMetadata;if(yf){var vj=new nz,Vl=0;try{var cq=yf.uploadFrontendId;void 0!==cq&&(N(vj,1,cq),Vl++);var gi=yf.cameraApiClient;void 0!==gi&&(O(vj,2,LIa[gi]),Vl++);var hi=yf.cameraConfigs;hi&&(jP(vj.j.bind(vj),
hi,nIa),Vl++);var th=yf.canFindCamera;void 0!==th&&(Vj(vj,4,th),Vl++);var dq=[Vl===Object.keys(yf).length,vj]}catch(rb){Y(rb),dq=[!1,void 0]}var zo=dq;zo[0]&&(Jj(rc,nz,11,zo[1]),Zb++)}var uh=Dc.miniAppMetadata;if(uh){var vh=new Az,ii=0;try{var $m=uh.externalPostId;void 0!==$m&&(N(vh,1,$m),ii++);var eq=uh.postPlayNonce;void 0!==eq&&(N(vh,2,eq),ii++);var Wl=uh.localReleaseId;void 0!==Wl&&(Wj(vh,3,Wl),ii++);var an=uh.source;void 0!==an&&(O(vh,4,MIa[an]),ii++);var bn=uh.sdkErrorType;void 0!==bn&&(O(vh,
5,NIa[bn]),ii++);var al=uh.sdkApi;void 0!==al&&(O(vh,6,OIa[al]),ii++);var Xl=uh.sdkVersion;void 0!==Xl&&(N(vh,7,Xl),ii++);var Yl=uh.rpcErrorCode;void 0!==Yl&&(Wj(vh,8,Yl),ii++);var fq=[ii===Object.keys(uh).length,vh]}catch(rb){Y(rb),fq=[!1,void 0]}var gq=fq;gq[0]&&(Jj(rc,Az,12,gq[1]),Zb++)}var Qc=Dc.appVersionCode;void 0!==Qc&&(Wj(rc,13,Qc),Zb++);var ji=[Zb===Object.keys(Dc).length,rc]}catch(rb){Y(rb),ji=[!1,void 0]}var Ao=ji;Ao[0]&&(Jj(ig,Cz,1,Ao[1]),vf++)}var lk=Pe.stackTrace;if(lk){var ki=new Mz,
Ri=0;try{var cn=lk.isObfuscated;void 0!==cn&&(Vj(ki,1,cn),Ri++);var Bo=lk.androidStackInfo;if(Bo){var hq=PIa(Bo);hq[0]&&(Kj(ki,Dz,2,NF,hq[1]),Ri++)}var zf=lk.browserStackInfo;if(zf){var pg=new Ez,wh=0;try{var Zl=zf.stackTrace;void 0!==Zl&&(N(pg,1,Zl),wh++);var dn=zf.lineNumber;void 0!==dn&&(Wj(pg,2,dn),wh++);var Co=zf.columnNumber;void 0!==Co&&(Wj(pg,3,Co),wh++);var iq=zf.filename;void 0!==iq&&(N(pg,4,iq),wh++);var Do=[wh===Object.keys(zf).length,pg]}catch(rb){Y(rb),Do=[!1,void 0]}var jq=Do;jq[0]&&
(Kj(ki,Ez,3,NF,jq[1]),Ri++)}var bl=lk.iosStackInfo;if(bl){var en=new Fz,Eo=0;try{var kq=bl.stackTrace;void 0!==kq&&(N(en,1,kq),Eo++);var cl=bl.compactStackTrace;if(cl){var lq=tP(cl);lq[0]&&(Jj(en,bz,2,lq[1]),Eo++)}var Fo=[Eo===Object.keys(bl).length,en]}catch(rb){Y(rb),Fo=[!1,void 0]}var mq=Fo;mq[0]&&(Kj(ki,Fz,4,NF,mq[1]),Ri++)}var Go=lk.multiLanguageStackInfo;if(Go){var $l=new Lz,mk=0;try{var am=Go.languageStackTraces;am&&(jP($l.j.bind($l),am,QIa),mk++);var nq=[mk===Object.keys(Go).length,$l]}catch(rb){Y(rb),
nq=[!1,void 0]}var Ho=nq;Ho[0]&&(Kj(ki,Lz,5,NF,Ho[1]),Ri++)}var Io=[Ri===Object.keys(lk).length,ki]}catch(rb){Y(rb),Io=[!1,void 0]}var oq=Io;oq[0]&&(Jj(ig,Mz,2,oq[1]),vf++)}var wj=Pe.logMessage;if(wj){var dl=new Nz,li=0;try{var qg=wj.message;void 0!==qg&&(N(dl,1,qg),li++);var bm=wj.level;void 0!==bm&&(O(dl,2,RIa[bm]),li++);var Jo=wj.errorClassName;void 0!==Jo&&(N(dl,3,Jo),li++);var mi=wj.sourceMethodName;void 0!==mi&&(N(dl,4,mi),li++);var pq=wj.sampleWeight;void 0!==pq&&(Wj(dl,6,pq),li++);var Ko=
[li===Object.keys(wj).length,dl]}catch(rb){Y(rb),Ko=[!1,void 0]}var qq=Ko;qq[0]&&(Jj(ig,Nz,3,qq[1]),vf++)}var fn=[vf===Object.keys(Pe).length,ig]}catch(rb){Y(rb),fn=[!1,void 0]}var Sf=fn;Sf[0]&&(Jj(wc,Oz,5,Sf[1]),Lf++)}var Tf=[Lf===Object.keys(Be).length,wc]}catch(rb){Y(rb),Tf=[!1,void 0]}var Si=Tf;Si[0]&&(Jj(F,Pz,9,Si[1]),G++)}var xh=B.delayedEventMetrics;xh&&(jP(F.j.bind(F),xh,$Ga),G++);var cm=B.iosBatteryMetric;if(cm){var Ti=new ez,yh=0;try{var xj=cm.sampleDurationMs;void 0!==xj&&(Yj(Ti,1,xj),
yh++);var el=cm.startSample;if(el){var dm=SIa(el);dm[0]&&(Jj(Ti,dz,2,dm[1]),yh++)}var em=cm.endSample;if(em){var gn=SIa(em);gn[0]&&(Jj(Ti,dz,3,gn[1]),yh++)}var rq=[yh===Object.keys(cm).length,Ti]}catch(rb){Y(rb),rq=[!1,void 0]}var sq=rq;sq[0]&&(Jj(F,ez,11,sq[1]),G++)}var fm=B.androidBatteryMetric;if(fm){var hn=new Vy,jn=0;try{var Bs=fm.sampleDurationMs;void 0!==Bs&&(Yj(hn,1,Bs),jn++);var Lo=fm.startSample;if(Lo){var tq=TIa(Lo);tq[0]&&(Jj(hn,Uy,2,tq[1]),jn++)}var gm=fm.endSample;if(gm){var nk=TIa(gm);
nk[0]&&(Jj(hn,Uy,3,nk[1]),jn++)}var kn=[jn===Object.keys(fm).length,hn]}catch(rb){Y(rb),kn=[!1,void 0]}var Mo=kn;Mo[0]&&(Jj(F,Vy,12,Mo[1]),G++)}var Ee=B.webApiSupport;if(Ee){var Te=new bA,Ue=0;try{var ln=Ee.intersectionObserverPresent;void 0!==ln&&(Vj(Te,1,ln),Ue++);var uq=Ee.indexedDbPresent;void 0!==uq&&(Vj(Te,2,uq),Ue++);var mn=Ee.serviceWorkerPresent;void 0!==mn&&(Vj(Te,3,mn),Ue++);var No=Ee.webSharePresent;void 0!==No&&(Vj(Te,4,No),Ue++);var Oo=Ee.fullScreenApiPresent;void 0!==Oo&&(Vj(Te,5,Oo),
Ue++);var vq=Ee.cacheStoragePresent;void 0!==vq&&(Vj(Te,6,vq),Ue++);var Po=Ee.storageEstimatePresent;void 0!==Po&&(Vj(Te,7,Po),Ue++);var wq=Ee.storagePersistPresent;void 0!==wq&&(Vj(Te,8,wq),Ue++);var xq=Ee.webkitTemporaryStoragePresent;void 0!==xq&&(Vj(Te,9,xq),Ue++);var hm=Ee.idb2Present;void 0!==hm&&(Vj(Te,10,hm),Ue++);var nn=Ee.promiseRejectionEventPresent;void 0!==nn&&(Vj(Te,11,nn),Ue++);var on=Ee.subtleCryptoPresent;void 0!==on&&(Vj(Te,12,on),Ue++);var Qo=Ee.broadcastChannelPresent;void 0!==
Qo&&(Vj(Te,13,Qo),Ue++);var yq=Ee.webLocksApiPresent;void 0!==yq&&(Vj(Te,14,yq),Ue++);var zq=Ee.supportsP3Color;void 0!==zq&&(Vj(Te,15,zq),Ue++);var Aq=Ee.supportsRec2020Color;void 0!==Aq&&(Vj(Te,16,Aq),Ue++);var Bq=[Ue===Object.keys(Ee).length,Te]}catch(rb){Y(rb),Bq=[!1,void 0]}var Cq=Bq;Cq[0]&&(Jj(F,bA,13,Cq[1]),G++)}var ok=B.cpuProfiling;if(ok){var im=new iz,pn=0;try{var Dq=ok.profilingSamples;if(Dq){var qn=tP(Dq);qn[0]&&(Jj(im,bz,1,qn[1]),pn++)}var Ui=ok.config;if(Ui){var Vi=new hz,Sg=0;try{var yj=
Ui.profilingIntervalSec;void 0!==yj&&(ak(Vi,1,yj),Sg++);var fl=Ui.profilingDurationSec;void 0!==fl&&(ak(Vi,2,fl),Sg++);var pk=Ui.timerType;void 0!==pk&&(O(Vi,3,UIa[pk]),Sg++);var jm=Ui.profilingStartTimeSec;void 0!==jm&&(ak(Vi,4,jm),Sg++);var gl=Ui.fractionOfRunsToSample;void 0!==gl&&(ak(Vi,5,gl),Sg++);var Eq=[Sg===Object.keys(Ui).length,Vi]}catch(rb){Y(rb),Eq=[!1,void 0]}var Fq=Eq;Fq[0]&&(im.setConfig(Fq[1]),pn++)}var Gq=[pn===Object.keys(ok).length,im]}catch(rb){Y(rb),Gq=[!1,void 0]}var Hq=Gq;Hq[0]&&
(Jj(F,iz,14,Hq[1]),G++)}var Ro=B.stallStackTrace;if(Ro){var Iq=tP(Ro);Iq[0]&&(Jj(F,bz,15,Iq[1]),G++)}var Fe=B.memoryUsage;if(Fe){var Ge=new Yz,Af=0;try{var Jq=Fe.totalMemoryUsageBytes;void 0!==Jq&&(Yj(Ge,1,Jq),Af++);var Kq=Fe.classMemoryUsage;Kq&&(jP(Ge.j.bind(Ge),Kq,VIa),Af++);var qk=Fe.config;if(qk){var km=new Xz,hl=0;try{var il=qk.maxStartTimeSec;void 0!==il&&(Yj(km,1,il),hl++);var jl=qk.durationTimeSec;void 0!==jl&&(Yj(km,2,jl),hl++);var lm=qk.intervalSec;void 0!==lm&&(Yj(km,3,lm),hl++);var Lq=
qk.maxLogCount;void 0!==Lq&&(Yj(km,4,Lq),hl++);var Mq=qk.fractionOfRunsToSample;void 0!==Mq&&(ak(km,5,Mq),hl++);var Nq=[hl===Object.keys(qk).length,km]}catch(rb){Y(rb),Nq=[!1,void 0]}var Oq=Nq;Oq[0]&&(Ge.setConfig(Oq[1]),Af++)}var So=Fe.processUptimeMs;void 0!==So&&(Yj(Ge,4,So),Af++);var mm=Fe.foregroundUptimeMs;void 0!==mm&&(Yj(Ge,8,mm),Af++);var Pq=Fe.viewAllocation;Pq&&(jP(Ge.C.bind(Ge),Pq,VIa),Af++);var zh=Fe.entityStoreCount;void 0!==zh&&(Wj(Ge,6,zh),Af++);var rk=Fe.entityStoreBytes;void 0!==
rk&&(Yj(Ge,7,rk),Af++);var kl=Fe.emlTemplateStoreBytes;void 0!==kl&&(Yj(Ge,10,kl),Af++);var Cs=Fe.jsVmStatistics;Cs&&(jP(Ge.B.bind(Ge),Cs,WIa),Af++);var nm=[Af===Object.keys(Fe).length,Ge]}catch(rb){Y(rb),nm=[!1,void 0]}var sk=nm;sk[0]&&(Jj(F,Yz,16,sk[1]),G++)}var Ds=B.networkEvents;Ds&&(jP(F.B.bind(F),Ds,XIa),G++);var Ve=B.threadUtilization;if(Ve){var ni=new eA,Ah=0;try{var Bh=Ve.userJourney;void 0!==Bh&&(N(ni,1,Bh),Ah++);var rn=Ve.type;void 0!==rn&&(O(ni,2,YIa[rn]),Ah++);var Wi=Ve.threadPoolStats;
Wi&&(jP(ni.j.bind(ni),Wi,ZIa),Ah++);var Qq=Ve.totalThreadCount;void 0!==Qq&&(Wj(ni,4,Qq),Ah++);var Es=Ve.statsGenerateDurationMs;void 0!==Es&&(Yj(ni,5,Es),Ah++);var Fs=[Ah===Object.keys(Ve).length,ni]}catch(rb){Y(rb),Fs=[!1,void 0]}var Rq=Fs;Rq[0]&&(Jj(F,eA,18,Rq[1]),G++)}var ll=B.androidBackgroundTask;if(ll){var om=new fz,pm=0;try{var qm=ll.tag;void 0!==qm&&(N(om,1,qm),pm++);var ml=ll.isKnownTask;void 0!==ml&&(Vj(om,2,ml),pm++);var Sq=ll.result;void 0!==Sq&&(O(om,3,$Ia[Sq]),pm++);var To=ll.durationMs;
void 0!==To&&(Yj(om,4,To),pm++);var tk=[pm===Object.keys(ll).length,om]}catch(rb){Y(rb),tk=[!1,void 0]}var Uo=tk;Uo[0]&&(Jj(F,fz,19,Uo[1]),G++)}var Xi=B.distributiveProfilingSpan;if(Xi){var zj=new Rz,nl=0;try{var Vo=Xi.spanId;void 0!==Vo&&(O(zj,1,aJa[Vo]),nl++);var ol=Xi.sampleRate;void 0!==ol&&(ak(zj,2,ol),nl++);var rm=Xi.spanDurationMs;void 0!==rm&&(Yj(zj,3,rm),nl++);var sm=Xi.sampleFailureCount;void 0!==sm&&(Wj(zj,4,sm),nl++);var tm=Xi.sample;tm&&(jP(zj.Gk.bind(zj),tm,bJa),nl++);var Yi=[nl===Object.keys(Xi).length,
zj]}catch(rb){Y(rb),Yi=[!1,void 0]}var Gs=Yi;Gs[0]&&(Jj(F,Rz,20,Gs[1]),G++)}var um=B.appExitInfo;if(um){var uk=new gz,vk=0;try{var pl=um.reason;void 0!==pl&&(O(uk,1,cJa[pl]),vk++);var Tq=um.status;void 0!==Tq&&(Wj(uk,2,Tq),vk++);var Hs=um.importance;void 0!==Hs&&(Wj(uk,3,Hs),vk++);var Is=um.description;void 0!==Is&&(N(uk,4,Is),vk++);var Uq=[vk===Object.keys(um).length,uk]}catch(rb){Y(rb),Uq=[!1,void 0]}var Wo=Uq;Wo[0]&&(Jj(F,gz,21,Wo[1]),G++)}var Xo=[G===Object.keys(B).length,F]}catch(rb){Y(rb),Xo=
[!1,void 0]}var Yo=Xo;Yo[0]&&(Jj(b,fA,6,Yo[1]),c++)}var Vq=a.detailedNetworkType;void 0!==Vq&&(O(b,7,uP[Vq]),c++);var Wq=a.isAd;void 0!==Wq&&(Vj(b,8,Wq),c++);var Aj=a.offlineModeType;void 0!==Aj&&(O(b,9,dJa[Aj]),c++);var wk=a.storageFormat;void 0!==wk&&(O(b,24,eJa[wk]),c++);var Tg=a.offlineSourceVeType;void 0!==Tg&&(Wj(b,32,Tg),c++);var Xq=a.listId;void 0!==Xq&&(N(b,10,Xq),c++);var Yq=a.offlineabilityFormatType;void 0!==Yq&&(O(b,11,fJa[Yq]),c++);var Zq=a.offlineAudioQuality;void 0!==Zq&&(O(b,29,gJa[Zq]),
c++);var Oa=a.softErrorCount;void 0!==Oa&&(Wj(b,12,Oa),c++);var HM=a.pendingStateFlags;void 0!==HM&&(Xj(b,13,HM),c++);var IM=a.unusedOfflineVideoPendingState;void 0!==IM&&(O(b,14,hJa[IM]),c++);var JM=a.isRefresh;void 0!==JM&&(Vj(b,15,JM),c++);var KM=a.isNewPlayerResponse;void 0!==KM&&(Vj(b,16,KM),c++);var mx=a.isOfflineShareable;void 0!==mx&&(Vj(b,17,mx),c++);var AA=a.hasContentVerificationSignature;void 0!==AA&&(Vj(b,18,AA),c++);var BA=a.isOfflineInterleaving;void 0!==BA&&(Vj(b,19,BA),c++);var LM=
a.blockSizeBytes;void 0!==LM&&(Wj(b,25,LM),c++);var MM=a.streamVerificationStrategy;void 0!==MM&&(O(b,26,vP[MM]),c++);var NM=a.streamVerificationFailedBlocks;NM&&(jP(b.j.bind(b),NM,iJa),c++);var CA=a.spacecastInfo;if(CA){var rF=new xma,DA=0;try{var OM=CA.applianceId;void 0!==OM&&(N(rF,1,OM),DA++);var PM=CA.transferredFromCache;void 0!==PM&&(O(rF,2,jJa[PM]),DA++);var QM=[DA===Object.keys(CA).length,rF]}catch(rb){Y(rb),QM=[!1,void 0]}var RM=QM;RM[0]&&(Jj(b,xma,28,RM[1]),c++)}var SM=a.transferType;void 0!==
SM&&(O(b,33,kJa[SM]),c++);var TM=a.onlyDownloadOnWifi;void 0!==TM&&(Vj(b,34,TM),c++);var sF=a.appLifecycleStatus;void 0!==sF&&(O(b,35,lJa[sF]),c++);var UM=a.isDefaultDownloadToSdCard;void 0!==UM&&(Vj(b,36,UM),c++);var VM=a.serializedLoggingParams;void 0!==VM&&(yk(b,39,VM),c++);var WM=a.transferServiceStartedFromBackground;void 0!==WM&&(Vj(b,40,WM),c++);var XM=a.transferFirstStarted;void 0!==XM&&(Vj(b,42,XM),c++);return[c===Object.keys(a).length,b]}catch(rb){return Y(rb),[!1,void 0]}};
uIa=function(a){var b=new Qx,c=0;try{var d=a.datapushBuild;if(d){var e=nJa(d);e[0]&&(Jj(b,Ox,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
nJa=function(a){var b=new Ox,c=0;try{var d=a.buildId;void 0!==d&&(Yj(b,1,d),c++);var e=a.clientExperimentId;void 0!==e&&(Wj(b,2,e),c++);var f=a.accessType;void 0!==f&&(O(b,3,oJa[f]),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
vIa=function(a){var b=new Px,c=0;try{var d=a.datapushBuild;if(d){var e=nJa(d);e[0]&&(Jj(b,Ox,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
wIa=function(a){var b=new Sz,c=0;try{var d=a.assetLoggingId;void 0!==d&&(N(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
tP=function(a){var b=new bz,c=0;try{var d=a.stackTraces;d&&(jP(b.B.bind(b),d,pJa),c++);var e=a.allModules;e&&(jP(b.j.bind(b),e,qJa),c++);var f=a.appVersionCode;void 0!==f&&(Wj(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
pJa=function(a){var b=new az,c=0;try{var d=a.mainThread;if(d){var e=rJa(d);e[0]&&(Jj(b,$y,1,e[1]),c++)}var f=a.backgroundThreads;f&&(jP(b.j.bind(b),f,rJa),c++);var h=a.metaData;h&&(jP(b.B.bind(b),h,sJa),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
rJa=function(a){var b=new $y,c=0;try{var d=a.stackFrames;d&&(jP(b.j.bind(b),d,tJa),c++);var e=a.androidStack;void 0!==e&&(N(b,6,e),c++);var f=a.threadName;void 0!==f&&(N(b,2,f),c++);var h=a.cpuUsage;void 0!==h&&(ak(b,3,h),c++);var l=a.cpuTimeSec;void 0!==l&&(Yj(b,4,l),c++);var m=a.iosThreadInfo;if(m){var n=new Yy;d=0;try{var p=m.state;void 0!==p&&(n.Dc(uJa[p]),d++);var q=m.flag;void 0!==q&&(O(n,2,vJa[q]),d++);var r=m.currentPriority;void 0!==r&&(Wj(n,3,r),d++);var t=m.priority;void 0!==t&&(Wj(n,4,
t),d++);var v=m.maxPriority;void 0!==v&&(Wj(n,5,v),d++);var x=m.isCrashedThread;void 0!==x&&(Vj(n,6,x),d++);var B=[d===Object.keys(m).length,n]}catch(F){Y(F),B=[!1,void 0]}m=B;m[0]&&(Jj(b,Yy,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(F){return Y(F),[!1,void 0]}};
tJa=function(a){var b=new Zy,c=0;try{var d=a.instructionOffset;void 0!==d&&(Yj(b,1,d),c++);var e=a.moduleIndex;void 0!==e&&(Wj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
sJa=function(a){var b=new Xy,c=0;try{var d=a.clientTimestampMs;void 0!==d&&(Yj(b,1,d),c++);var e=a.sampleTimeCostMs;void 0!==e&&(ak(b,2,e),c++);var f=a.numberOfBustedFrames;void 0!==f&&(Wj(b,3,f),c++);var h=a.droppedFrameDurationMs;void 0!==h&&(Wj(b,4,h),c++);var l=a.deviceOrientation;void 0!==l&&(O(b,5,wJa[l]),c++);var m=a.processUptimeMs;void 0!==m&&(Yj(b,6,m),c++);var n=a.memoryUsageKbytes;void 0!==n&&(Yj(b,7,n),c++);var p=a.batteryPercentage;void 0!==p&&(ak(b,8,p),c++);var q=a.exceptionName;void 0!==
q&&(N(b,9,q),c++);var r=a.exceptionReason;void 0!==r&&(N(b,10,r),c++);var t=a.signalNumber;void 0!==t&&(Wj(b,11,t),c++);var v=a.signalCode;void 0!==v&&(Wj(b,12,v),c++);return[c===Object.keys(a).length,b]}catch(x){return Y(x),[!1,void 0]}};
qJa=function(a){var b=new Wy,c=0;try{var d=a.moduleUuid;void 0!==d&&(yk(b,1,d),c++);var e=a.moduleName;void 0!==e&&(N(b,2,e),c++);var f=a.loadAddress;void 0!==f&&(Yj(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
BIa=function(a){var b=new kz,c=0;try{var d=a.key;void 0!==d&&(N(b,1,d),c++);var e=a.value;void 0!==e&&(N(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
PIa=function(a){var b=new Dz,c=0;try{var d=a.serializedThrowable;void 0!==d&&(yk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
QIa=function(a){var b=new Kz,c=0;try{var d=a.jsStack;if(d){var e=new Jz,f=0;try{var h=d.stackTrace;h&&(jP(e.j.bind(e),h,xJa),f++);var l=d.moduleSetVersion;void 0!==l&&(Zj(e,4,l),f++);var m=[f===Object.keys(d).length,e]}catch(x){Y(x),m=[!1,void 0]}d=m;d[0]&&(Kj(b,Jz,1,yJa,d[1]),c++)}var n=a.javaStack;if(n){var p=PIa(n);p[0]&&(Kj(b,Dz,2,yJa,p[1]),c++)}var q=a.ccStack;if(q){var r=new Hz;n=0;try{var t=q.stackTrace;t&&(jP(r.j.bind(r),t,zJa),n++);var v=[n===Object.keys(q).length,r]}catch(x){Y(x),v=[!1,
void 0]}q=v;q[0]&&(Kj(b,Hz,3,yJa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(x){return Y(x),[!1,void 0]}};
xJa=function(a){var b=new Iz,c=0;try{var d=a.functionName;void 0!==d&&(N(b,1,d),c++);var e=a.source;void 0!==e&&(N(b,2,e),c++);var f=a.lineNumber;void 0!==f&&(Wj(b,3,f),c++);var h=a.columnNumber;void 0!==h&&(Wj(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
zJa=function(a){var b=new Gz,c=0;try{var d=a.functionName;void 0!==d&&(N(b,1,d),c++);var e=a.source;void 0!==e&&(N(b,2,e),c++);var f=a.lineNumber;void 0!==f&&(Wj(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
SIa=function(a){var b=new dz,c=0;try{var d=a.batteryLevelMicros;void 0!==d&&(Wj(b,1,d),c++);var e=a.networkType;void 0!==e&&(O(b,2,uP[e]),c++);var f=a.screenBrightness;void 0!==f&&(ak(b,3,f),c++);var h=a.isLowPowerMode;void 0!==h&&(Vj(b,4,h),c++);var l=a.isBackground;void 0!==l&&(Vj(b,5,l),c++);var m=a.isStateTransition;void 0!==m&&(Vj(b,6,m),c++);var n=a.observedBackgroundFetchMethodCallback;void 0!==n&&(Vj(b,7,n),c++);var p=a.observedBackgroundTaskDidExpire;void 0!==p&&(Vj(b,8,p),c++);return[c===
Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
TIa=function(a){var b=new Uy,c=0;try{var d=a.batteryLevelMicros;void 0!==d&&(Wj(b,1,d),c++);var e=a.networkType;void 0!==e&&(O(b,2,uP[e]),c++);var f=a.screenBrightness;void 0!==f&&(Wj(b,3,f),c++);var h=a.screenBrightnessMode;void 0!==h&&(O(b,4,AJa[h]),c++);var l=a.lowPowerMode;void 0!==l&&(O(b,5,BJa[l]),c++);var m=a.batteryHealth;void 0!==m&&(O(b,6,CJa[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
VIa=function(a){var b=new Wz,c=0;try{var d=a.className;void 0!==d&&(N(b,1,d),c++);var e=a.instanceNum;void 0!==e&&(Yj(b,2,e),c++);var f=a.instanceSizeBytes;void 0!==f&&(Yj(b,3,f),c++);var h=a.allocationNum;void 0!==h&&(Yj(b,4,h),c++);var l=a.deallocationNum;void 0!==l&&(Yj(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}};
WIa=function(a){var b=new cy,c=0;try{var d=a.v8Stats;if(d){var e=new by,f=0;try{var h=d.totalHeapSize;void 0!==h&&(Zj(e,1,h),f++);var l=d.totalHeapSizeExecutable;void 0!==l&&(Zj(e,2,l),f++);var m=d.totalPhysicalSize;void 0!==m&&(Zj(e,3,m),f++);var n=d.totalAvailableSize;void 0!==n&&(Zj(e,4,n),f++);var p=d.totalGlobalHandlesSize;void 0!==p&&(Zj(e,5,p),f++);var q=d.usedGlobalHandlesSize;void 0!==q&&(Zj(e,6,q),f++);var r=d.usedHeapSize;void 0!==r&&(Zj(e,7,r),f++);var t=d.heapSizeLimit;void 0!==t&&(Zj(e,
8,t),f++);var v=d.mallocedMemory;void 0!==v&&(Zj(e,9,v),f++);var x=d.externalMemory;void 0!==x&&(Zj(e,10,x),f++);var B=d.peakMallocedMemory;void 0!==B&&(Zj(e,11,B),f++);var F=d.numberOfNativeContexts;void 0!==F&&(Zj(e,12,F),f++);var G=d.numberOfDetachedContexts;void 0!==G&&(Zj(e,13,G),f++);var I=[f===Object.keys(d).length,e]}catch(ba){Y(ba),I=[!1,void 0]}d=I;d[0]&&(Kj(b,by,1,DJa,d[1]),c++)}var L=a.quickjsStats;if(L){var P=new ay;d=0;try{var V=L.mallocSize;void 0!==V&&(Zj(P,1,V),d++);var ka=L.mallocLimit;
void 0!==ka&&(Zj(P,2,ka),d++);var sa=L.memoryUsedSize;void 0!==sa&&(Zj(P,3,sa),d++);var ta=L.mallocCount;void 0!==ta&&(Zj(P,4,ta),d++);var la=L.memoryUsedCount;void 0!==la&&(Zj(P,5,la),d++);var qa=[d===Object.keys(L).length,P]}catch(ba){Y(ba),qa=[!1,void 0]}L=qa;L[0]&&(Kj(b,ay,2,DJa,L[1]),c++)}return[c===Object.keys(a).length,b]}catch(ba){return Y(ba),[!1,void 0]}};
XIa=function(a){var b=new $z,c=0;try{var d=a.index;void 0!==d&&(Yj(b,1,d),c++);var e=a.networkEventType;void 0!==e&&(O(b,2,EJa[e]),c++);var f=a.path;void 0!==f&&(N(b,3,f),c++);var h=a.failureReason;void 0!==h&&(O(b,4,FJa[h]),c++);var l=a.startTimeMs;void 0!==l&&(Yj(b,5,l),c++);var m=a.totalDurationMs;void 0!==m&&(Yj(b,6,m),c++);var n=a.requestSize;void 0!==n&&(Yj(b,7,n),c++);var p=a.responseSize;void 0!==p&&(Yj(b,8,p),c++);var q=a.networkRequestAttempt;q&&(jP(b.j.bind(b),q,GJa),c++);var r=a.httpMethod;
void 0!==r&&(O(b,10,HJa[r]),c++);return[c===Object.keys(a).length,b]}catch(t){return Y(t),[!1,void 0]}};
GJa=function(a){var b=new Zz,c=0;try{var d=a.failureReason;void 0!==d&&(O(b,1,FJa[d]),c++);var e=a.startTimeMs;void 0!==e&&(Yj(b,5,e),c++);var f=a.durationMs;void 0!==f&&(Yj(b,2,f),c++);var h=a.networkAvailable;void 0!==h&&(O(b,3,IJa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
ZIa=function(a){var b=new dA,c=0;try{var d=a.threadPoolName;void 0!==d&&(N(b,1,d),c++);var e=a.threadCount;void 0!==e&&(Wj(b,2,e),c++);var f=a.startedTaskCount;void 0!==f&&(Wj(b,3,f),c++);var h=a.finishedTaskCount;void 0!==h&&(Wj(b,4,h),c++);var l=a.runningTimeMs;void 0!==l&&(Yj(b,5,l),c++);var m=a.waitingTimeMs;void 0!==m&&(Yj(b,6,m),c++);var n=a.runCount;void 0!==n&&(Yj(b,7,n),c++);var p=a.runningPercent;void 0!==p&&(Wj(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
bJa=function(a){var b=new Qz,c=0;try{var d=a.curveTimestampMs;void 0!==d&&(Yj(b,1,d),c++);var e=a.curveWeight;void 0!==e&&(ak(b,2,e),c++);var f=a.realTimestampMs;void 0!==f&&(Yj(b,3,f),c++);var h=a.sampleCostUsec;void 0!==h&&(Yj(b,4,h),c++);var l=a.compactStackTraceSample;if(l){var m=tP(l);m[0]&&(Jj(b,bz,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
iJa=function(a){var b=new yma,c=0;try{var d=a.itag;void 0!==d&&(Wj(b,1,d),c++);var e=a.startingByte;void 0!==e&&(Yj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
OJa=function(a){var b=new BB,c=0;try{var d=a.id;void 0!==d&&(N(b,1,d),c++);var e=a.videoState;void 0!==e&&(O(b,2,JJa[e]),c++);var f=a.pendingStateFlags;void 0!==f&&(Xj(b,3,f),c++);var h=a.totalBytes;void 0!==h&&(Yj(b,21,h),c++);var l=a.downloadedBytes;void 0!==l&&(Yj(b,4,l),c++);var m=a.selectedVideoQuality;void 0!==m&&(O(b,5,fJa[m]),c++);var n=a.selectedOfflineMode;void 0!==n&&(O(b,6,dJa[n]),c++);var p=a.playerResponseSavedTimeMs;void 0!==p&&(Yj(b,7,p),c++);var q=a.offlineStateUpdateTimeMs;void 0!==
q&&(Yj(b,8,q),c++);var r=a.offlineStateExpiresInS;void 0!==r&&(Yj(b,9,r),c++);var t=a.durationInS;void 0!==t&&(Yj(b,10,t),c++);var v=a.isInPlaylist;void 0!==v&&(Vj(b,11,v),c++);var x=a.addedNetworkType;void 0!==x&&(O(b,12,uP[x]),c++);var B=a.downloadCompletedNetworkType;void 0!==B&&(O(b,13,uP[B]),c++);var F=a.captions;F&&(jP(b.j.bind(b),F,KJa),c++);var G=a.unusedOfflineVideoPendingState;void 0!==G&&(O(b,15,hJa[G]),c++);var I=a.lastPlaybackTimestampMs;void 0!==I&&(Yj(b,16,I),c++);var L=a.offlineSuspendedStates;
L&&(jP(b.B.bind(b),L,LJa),c++);var P=a.streamInLocalStorage;void 0!==P&&(Vj(b,18,P),c++);var V=a.streamInInternalStorage;void 0!==V&&(Vj(b,19,V),c++);var ka=a.storageIdStates;if(ka){var sa=new xna;d=0;try{var ta=ka.storageId;void 0!==ta&&(Xj(sa,1,ta),d++);var la=ka.storageIdSourceType;void 0!==la&&(O(sa,2,MJa[la]),d++);var qa=[d===Object.keys(ka).length,sa]}catch(na){Y(na),qa=[!1,void 0]}ka=qa;ka[0]&&(Jj(b,xna,20,ka[1]),c++)}var ba=a.cotn;void 0!==ba&&(N(b,22,ba),c++);var T=a.additionalVideoClientState;
if(T){var Ma=new una;ba=0;try{var y=T.musicAppAdditionalVideoClientState;if(y){var Z=new tna;ka=0;try{var Ua=y.episodePublishedTimeMs;void 0!==Ua&&(Yj(Z,1,Ua),ka++);var Za=[ka===Object.keys(y).length,Z]}catch(na){Y(na),Za=[!1,void 0]}y=Za;y[0]&&(Jj(Ma,tna,1,y[1]),ba++)}var bb=[ba===Object.keys(T).length,Ma]}catch(na){Y(na),bb=[!1,void 0]}T=bb;T[0]&&(Jj(b,una,23,T[1]),c++)}var Xa=a.offlineVideoEntityMigrationState;if(Xa){var Va=new AB;T=0;try{var lb=Xa.isInOfflineStore;void 0!==lb&&(Vj(Va,1,lb),T++);
var Ab=Xa.isPlaybackDataEntityPresent;void 0!==Ab&&(Vj(Va,2,Ab),T++);var ob=Xa.wasPlaybackDataEntityUsedToFillVideoState;void 0!==ob&&(Vj(Va,3,ob),T++);var A=Xa.isTransferEntityPresent;void 0!==A&&(Vj(Va,4,A),T++);var D=Xa.wasTransferEntityUsedToFillVideoState;void 0!==D&&(Vj(Va,5,D),T++);var E=Xa.offlineStoreCaptionTrackCount;void 0!==E&&(Wj(Va,6,E),T++);var C=Xa.entityStoreCaptionTrackCount;void 0!==C&&(Wj(Va,7,C),T++);var K=Xa.isMetadataEntityPresent;void 0!==K&&(Vj(Va,8,K),T++);var X=Xa.transferDiffFields;
void 0!==X&&(kP(Va.j.bind(Va),X,NJa),T++);var ma=[T===Object.keys(Xa).length,Va]}catch(na){Y(na),ma=[!1,void 0]}Xa=ma;Xa[0]&&(Jj(b,AB,24,Xa[1]),c++)}var fa=a.lastProgressTimeMs;void 0!==fa&&(Yj(b,25,fa),c++);var S=a.initialProgressTimeMs;void 0!==S&&(Yj(b,26,S),c++);return[c===Object.keys(a).length,b]}catch(na){return Y(na),[!1,void 0]}};
KJa=function(a){var b=new vna,c=0;try{var d=a.format;void 0!==d&&(Wj(b,1,d),c++);var e=a.isDownloaded;void 0!==e&&(Vj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
LJa=function(a){var b=new wna,c=0;try{var d=a.totalDownloadedBytes;void 0!==d&&(Yj(b,1,d),c++);var e=a.totalSegmentCount;void 0!==e&&(Yj(b,2,e),c++);var f=a.backgroundTransitionCount;void 0!==f&&(Yj(b,3,f),c++);var h=a.totalDurationMs;void 0!==h&&(Yj(b,4,h),c++);var l=a.downloadErrorCount;void 0!==l&&(Wj(b,5,l),c++);var m=a.totalDownloadedSizePercent;void 0!==m&&(Xj(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
QJa=function(a){var b=new zB,c=0;try{var d=a.id;void 0!==d&&(N(b,1,d),c++);var e=a.videoIds;e&&(jP(b.j.bind(b),e),c++);var f=a.videoCount;void 0!==f&&(Wj(b,3,f),c++);var h=a.successCount;void 0!==h&&(Wj(b,4,h),c++);var l=a.failCount;void 0!==l&&(Wj(b,5,l),c++);var m=a.pendingCount;void 0!==m&&(Wj(b,6,m),c++);var n=a.disabledCount;void 0!==n&&(Wj(b,7,n),c++);var p=a.deletedCount;void 0!==p&&(Wj(b,8,p),c++);var q=a.selectedVideoQuality;void 0!==q&&(O(b,9,fJa[q]),c++);var r=a.isPlaylistOwner;void 0!==
r&&(Vj(b,10,r),c++);var t=a.lastSyncTimeMs;void 0!==t&&(Yj(b,11,t),c++);var v=a.requestSource;void 0!==v&&(O(b,12,PJa[v]),c++);var x=a.additionalPlaylistClientState;if(x){var B=new sna;d=0;try{var F=x.musicAppAdditionalPlaylistClientState;if(F){var G=new rna;e=0;try{var I=F.isPodcastShow;void 0!==I&&(Vj(G,1,I),e++);var L=[e===Object.keys(F).length,G]}catch(V){Y(V),L=[!1,void 0]}F=L;F[0]&&(Jj(B,rna,1,F[1]),d++)}var P=[d===Object.keys(x).length,B]}catch(V){Y(V),P=[!1,void 0]}x=P;x[0]&&(Jj(b,sna,13,
x[1]),c++)}return[c===Object.keys(a).length,b]}catch(V){return Y(V),[!1,void 0]}};
TJa=function(a){var b=new vB,c=0;try{var d=a.videoId;void 0!==d&&(b.setVideoId(d),c++);var e=a.itag;void 0!==e&&(Xj(b,6,e),c++);var f=a.failureReason;void 0!==f&&(O(b,2,RJa[f]),c++);var h=a.isCachedExternally;void 0!==h&&(Vj(b,3,h),c++);var l=a.previousFailureReason;void 0!==l&&(O(b,4,RJa[l]),c++);var m=a.previousFailureReasonTimestampMs;void 0!==m&&(Zj(b,5,m),c++);var n=a.streamVerificationStrategy;void 0!==n&&(O(b,7,vP[n]),c++);var p=a.blockSizeBytes;void 0!==p&&(Wj(b,8,p),c++);var q=a.streamVerificationFailedBlocks;
q&&(jP(b.j.bind(b),q,SJa),c++);var r=a.primaryVerificationStrategy;void 0!==r&&(O(b,10,vP[r]),c++);var t=a.secondaryVerificationStrategy;void 0!==t&&(O(b,11,vP[t]),c++);var v=a.secondaryFailureReason;void 0!==v&&(O(b,12,RJa[v]),c++);return[c===Object.keys(a).length,b]}catch(x){return Y(x),[!1,void 0]}};
SJa=function(a){var b=new ona,c=0;try{var d=a.itag;void 0!==d&&(Wj(b,1,d),c++);var e=a.startingByte;void 0!==e&&(Yj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
UJa=function(a){var b=new xB,c=0;try{var d=a.videoId;void 0!==d&&(b.setVideoId(d),c++);var e=a.surrogateVideoId;void 0!==e&&(Yj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
VJa=function(a){var b=new pna,c=0;try{var d=a.externalVideoId;void 0!==d&&(N(b,1,d),c++);var e=a.videoSid;void 0!==e&&(Yj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
cKa=function(a){var b=new zy,c=0;try{var d=a.opportunityData;if(d){var e=new uy,f=0;try{var h=d.debugData;if(h){var l=new ty,m=0;try{var n=h.slots;n&&(jP(l.j.bind(l),n,WJa),m++);var p=h.associatedSlotId;void 0!==p&&(N(l,2,p),m++);var q=[m===Object.keys(h).length,l]}catch(Yb){Y(Yb),q=[!1,void 0]}h=q;h[0]&&(Jj(e,ty,2,h[1]),f++)}var r=d.opportunityType;void 0!==r&&(O(e,3,XJa[r]),f++);var t=[f===Object.keys(d).length,e]}catch(Yb){Y(Yb),t=[!1,void 0]}d=t;d[0]&&(Jj(b,uy,1,d[1]),c++)}var v=a.slotData;if(v){var x=
WJa(v);x[0]&&(Jj(b,sy,2,x[1]),c++)}var B=a.layoutData;if(B){var F=new qy;v=0;try{var G=B.type;void 0!==G&&(O(F,2,YJa[G]),v++);var I=B.debugData;if(I){var L=new py;G=0;try{var P=I.layoutId;void 0!==P&&(N(L,1,P),G++);var V=I.exitNormalTriggerData;V&&(jP(L.y4.bind(L),V,wP),G++);var ka=I.exitSkipTriggerData;ka&&(jP(L.z4.bind(L),ka,wP),G++);var sa=I.exitMuteTriggerData;sa&&(jP(L.x4.bind(L),sa,wP),G++);var ta=I.exitUserInputSubmittedTriggerData;ta&&(jP(L.B4.bind(L),ta,wP),G++);var la=I.exitUserCancelledTriggerData;
la&&(jP(L.A4.bind(L),la,wP),G++);var qa=[G===Object.keys(I).length,L]}catch(Yb){Y(Yb),qa=[!1,void 0]}I=qa;I[0]&&(Jj(F,py,3,I[1]),v++)}var ba=B.controlFlowManagerLayer;void 0!==ba&&(O(F,4,ZJa[ba]),v++);var T=B.pingTriggerTypes;void 0!==T&&(kP(F.j.bind(F),T,xP),v++);var Ma=[v===Object.keys(B).length,F]}catch(Yb){Y(Yb),Ma=[!1,void 0]}B=Ma;B[0]&&(Jj(b,qy,3,B[1]),c++)}var y=a.triggerData;if(y){var Z=wP(y);Z[0]&&(Jj(b,oy,4,Z[1]),c++)}var Ua=a.pingData;if(Ua){var Za=new yy;y=0;try{var bb=Ua.sourceTriggerType;
void 0!==bb&&(O(Za,1,xP[bb]),y++);var Xa=Ua.debugData;Xa&&(jP(Za.j.bind(Za),Xa,$Ja),y++);var Va=Ua.pingCount;void 0!==Va&&(Wj(Za,3,Va),y++);var lb=Ua.pingDispatchStatus;void 0!==lb&&(O(Za,4,aKa[lb]),y++);var Ab=Ua.serializedAdPingMetadata;void 0!==Ab&&(yk(Za,5,Ab),y++);var ob=Ua.pingDebugData;if(ob){var A=new wy;bb=0;try{var D=ob.substitutedMacros;void 0!==D&&(kP(A.j.bind(A),D,bKa),bb++);var E=ob.unsubstitutedMacros;void 0!==E&&(kP(A.B.bind(A),E,bKa),bb++);var C=[bb===Object.keys(ob).length,A]}catch(Yb){Y(Yb),
C=[!1,void 0]}ob=C;ob[0]&&(Jj(Za,wy,6,ob[1]),y++)}var K=Ua.pingIndex;void 0!==K&&(Wj(Za,8,K),y++);var X=[y===Object.keys(Ua).length,Za]}catch(Yb){Y(Yb),X=[!1,void 0]}Ua=X;Ua[0]&&(Jj(b,yy,6,Ua[1]),c++)}var ma=a.externalContext;if(ma){var fa=new ly;Ua=0;try{var S=ma.organicPlaybackContext;if(S){var na=new ky;X=0;try{var Ea=S.contentCpn;void 0!==Ea&&(N(na,1,Ea),X++);var Ca=S.isLivePlayback;void 0!==Ca&&(Vj(na,2,Ca),X++);var cb=S.isOfflinePlayback;void 0!==cb&&(Vj(na,3,cb),X++);var kb=S.isMdxPlayback;
void 0!==kb&&(Vj(na,4,kb),X++);var Bb=S.isDaiContent;void 0!==Bb&&(Vj(na,5,Bb),X++);var Ob=S.isPrefetchedPlayback;void 0!==Ob&&(Vj(na,6,Ob),X++);var tb=[X===Object.keys(S).length,na]}catch(Yb){Y(Yb),tb=[!1,void 0]}S=tb;S[0]&&(Jj(fa,ky,1,S[1]),Ua++)}var qb=ma.html5ExperimentContext;if(qb){var tc=new jy;S=0;try{var Uc=qb.ytExperimentId;void 0!==Uc&&(Wj(tc,1,Uc),S++);var gc=[S===Object.keys(qb).length,tc]}catch(Yb){Y(Yb),gc=[!1,void 0]}qb=gc;qb[0]&&(Jj(fa,jy,2,qb[1]),Ua++)}var Vc=ma.adVideoPlaybackContext;
if(Vc){var md=new iy;qb=0;try{var Lc=Vc.adVideoCpn;void 0!==Lc&&(N(md,1,Lc),qb++);var nd=[qb===Object.keys(Vc).length,md]}catch(Yb){Y(Yb),nd=[!1,void 0]}Vc=nd;Vc[0]&&(Jj(fa,iy,3,Vc[1]),Ua++)}var od=[Ua===Object.keys(ma).length,fa]}catch(Yb){Y(Yb),od=[!1,void 0]}ma=od;ma[0]&&(Jj(b,ly,5,ma[1]),c++)}return[c===Object.keys(a).length,b]}catch(Yb){return Y(Yb),[!1,void 0]}};
WJa=function(a){var b=new sy,c=0;try{var d=a.type;void 0!==d&&(O(b,2,dKa[d]),c++);var e=a.entryTriggerType;void 0!==e&&(O(b,6,xP[e]),c++);var f=a.slotPhysicalPosition;void 0!==f&&(Wj(b,8,f),c++);var h=a.debugData;if(h){var l=new ry;d=0;try{var m=h.slotId;void 0!==m&&(N(l,1,m),d++);var n=h.entryTriggerTypes;void 0!==n&&(kP(l.B.bind(l),n,xP),d++);var p=h.unscheduledDueToError;void 0!==p&&(Vj(l,3,p),d++);var q=h.entryTriggerData;q&&(jP(l.j.bind(l),q,wP),d++);var r=h.slotEntryTriggerData;if(r){var t=
wP(r);t[0]&&(Jj(l,oy,7,t[1]),d++)}var v=h.fulfillmentTriggerData;v&&(jP(l.D.bind(l),v,wP),d++);var x=h.expirationTriggerData;x&&(jP(l.C.bind(l),x,wP),d++);var B=[d===Object.keys(h).length,l]}catch(I){Y(I),B=[!1,void 0]}h=B;h[0]&&(Jj(b,ry,3,h[1]),c++)}var F=a.externallyManaged;void 0!==F&&(Vj(b,4,F),c++);var G=a.controlFlowManagerLayer;void 0!==G&&(O(b,5,ZJa[G]),c++);return[c===Object.keys(a).length,b]}catch(I){return Y(I),[!1,void 0]}};
wP=function(a){var b=new oy,c=0;try{var d=a.type;void 0!==d&&(O(b,1,xP[d]),c++);var e=a.category;void 0!==e&&(O(b,2,eKa[e]),c++);var f=a.layoutIdEnteredTriggerData;if(f){var h=new my;d=0;try{var l=f.enteredLayoutId;void 0!==l&&(N(h,1,l),d++);var m=[d===Object.keys(f).length,h]}catch(x){Y(x),m=[!1,void 0]}f=m;f[0]&&(Kj(b,my,3,fKa,f[1]),c++)}var n=a.triggerSourceData;if(n){var p=new ny;f=0;try{var q=n.associatedSlotId;void 0!==q&&(Ej(p,1,gKa,zi(q)),f++);var r=n.associatedLayoutId;void 0!==r&&(Ej(p,
2,gKa,zi(r)),f++);var t=[f===Object.keys(n).length,p]}catch(x){Y(x),t=[!1,void 0]}n=t;n[0]&&(Kj(b,ny,4,fKa,n[1]),c++)}var v=a.shouldOnlyTriggerOnce;void 0!==v&&(Vj(b,5,v),c++);return[c===Object.keys(a).length,b]}catch(x){return Y(x),[!1,void 0]}};
$Ja=function(a){var b=new vy,c=0;try{var d=a.macros;void 0!==d&&(kP(b.j.bind(b),d,bKa),c++);var e=a.success;void 0!==e&&(Vj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
iKa=function(a){var b=new ey,c=0;try{var d=a.cui;if(d){var e=new dy;try{var f=[0===Object.keys(d).length,e]}catch(l){Y(l),f=[!1,void 0]}d=f;d[0]&&(Jj(b,dy,1,d[1]),c++)}var h=a.step;void 0!==h&&(O(b,2,hKa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
jKa=function(a){var b=new Ny,c=0;try{var d=a.startMs;void 0!==d&&(ak(b,1,d),c++);var e=a.endMs;void 0!==e&&(ak(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
kKa=function(a){var b=new Ay,c=0;try{var d=a.externalVideoId;void 0!==d&&(N(b,1,d),c++);var e=a.originalMediaDurationMs;void 0!==e&&(Yj(b,2,e),c++);var f=a.trimmedMediaDurationMs;void 0!==f&&(Yj(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
lKa=function(a){var b=new QA,c=0;try{var d=a.orchestrationActionId;void 0!==d&&(N(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
mKa=function(a){var b=new YA,c=0;try{var d=a.answerId;void 0!==d&&(Wj(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
pKa=function(a){var b=new UA,c=0;try{var d=a.ypcCallerPage;void 0!==d&&(O(b,1,nKa[d]),c++);var e=a.useCase;void 0!==e&&(O(b,2,oKa[e]),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
uKa=function(a){var b=new cB,c=0;try{var d=a.itemId;if(d){var e=new $x,f=0;try{var h=d.type;void 0!==h&&(O(e,1,yP[h]),f++);var l=d.externalId;void 0!==l&&(N(e,2,l),f++);var m=[f===Object.keys(d).length,e]}catch(F){Y(F),m=[!1,void 0]}d=m;d[0]&&(Jj(b,$x,1,d[1]),c++)}var n=a.productType;void 0!==n&&(O(b,2,zP[n]),c++);var p=a.originatingDeviceInterface;void 0!==p&&(O(b,4,yIa[p]),c++);var q=a.alcLoggingParams;if(q){var r=new Qma;n=0;try{var t=q.purchaseOriginEntityType;void 0!==t&&(O(r,1,qKa[t]),n++);
var v=q.purchaseOriginPageType;void 0!==v&&(O(r,2,rKa[v]),n++);var x=q.purchaseOriginComponent;void 0!==x&&(O(r,3,sKa[x]),n++);var B=[n===Object.keys(q).length,r]}catch(F){Y(F),B=[!1,void 0]}q=B;q[0]&&(Kj(b,Qma,3,tKa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(F){return Y(F),[!1,void 0]}};
YKa=function(a){var b=new sA,c=0;try{var d=a.dimensions;if(d){var e=new qA,f=0;try{var h=d.csn;void 0!==h&&(N(e,1,h),f++);var l=d.userExperienceId;void 0!==l&&(Wj(e,2,l),f++);var m=d.studio;if(m){var n=new nA,p=0;try{var q=m.route;void 0!==q&&(N(n,1,q),p++);var r=m.feature;void 0!==r&&(O(n,2,vKa[r]),p++);var t=m.topEntityType;void 0!==t&&(O(n,3,wKa[t]),p++);var v=m.availability;void 0!==v&&(O(n,4,xKa[v]),p++);var x=m.isChannelDelegation;void 0!==x&&(Vj(n,5,x),p++);var B=m.isArtistDelegation;void 0!==
B&&(Vj(n,6,B),p++);var F=m.environment;void 0!==F&&(O(n,7,yKa[F]),p++);var G=m.networkConnectionStatus;void 0!==G&&(O(n,8,zKa[G]),p++);var I=[p===Object.keys(m).length,n]}catch(wc){Y(wc),I=[!1,void 0]}var L=I;L[0]&&(Jj(e,nA,3,L[1]),f++)}var P=d.mweb;if(P){var V=new mA,ka=0;try{var sa=P.pageType;void 0!==sa&&(O(V,1,AKa[sa]),ka++);var ta=P.navType;void 0!==ta&&(O(V,2,BKa[ta]),ka++);var la=[ka===Object.keys(P).length,V]}catch(wc){Y(wc),la=[!1,void 0]}var qa=la;qa[0]&&(Jj(e,mA,4,qa[1]),f++)}var ba=d.mainAppWeb;
if(ba){var T=new lA,Ma=0;try{var y=ba.pageType;void 0!==y&&(O(T,1,CKa[y]),Ma++);var Z=ba.requestType;void 0!==Z&&(O(T,2,DKa[Z]),Ma++);var Ua=ba.isShellLoad;void 0!==Ua&&(Vj(T,3,Ua),Ma++);var Za=[Ma===Object.keys(ba).length,T]}catch(wc){Y(wc),Za=[!1,void 0]}var bb=Za;bb[0]&&(Jj(e,lA,5,bb[1]),f++)}var Xa=d.survivalSli;if(Xa){var Va=new jA,lb=0;try{var Ab=Xa.partitionMinute;void 0!==Ab&&(Wj(Va,1,Ab),lb++);var ob=Xa.survivalStatus;void 0!==ob&&(O(Va,2,EKa[ob]),lb++);var A=Xa.survivalSessionType;void 0!==
A&&(O(Va,3,FKa[A]),lb++);var D=[lb===Object.keys(Xa).length,Va]}catch(wc){Y(wc),D=[!1,void 0]}var E=D;E[0]&&(Jj(e,jA,6,E[1]),f++)}var C=d.tvhtml5;if(C){var K=new oA,X=0;try{var ma=C.authRefreshTokenFailureType;void 0!==ma&&(O(K,1,GKa[ma]),X++);var fa=C.networkErrorEndpoint;void 0!==fa&&(O(K,2,HKa[fa]),X++);var S=C.networkErrorResponseCode;void 0!==S&&(Wj(K,3,S),X++);var na=C.sessionSurvivalLengthMin;void 0!==na&&(Wj(K,4,na),X++);var Ea=C.accountChangeType;void 0!==Ea&&(O(K,5,IKa[Ea]),X++);var Ca=
C.accountChangeTrigger;void 0!==Ca&&(O(K,6,JKa[Ca]),X++);var cb=C.cpn;void 0!==cb&&(N(K,7,cb),X++);var kb=C.sessionSurvivalDidUserAgentChange;void 0!==kb&&(Vj(K,8,kb),X++);var Bb=C.adShownToPremiumUserCondition;void 0!==Bb&&(O(K,9,KKa[Bb]),X++);var Ob=C.identityType;void 0!==Ob&&(O(K,10,LKa[Ob]),X++);var tb=C.identityDelegationType;void 0!==tb&&(O(K,11,MKa[tb]),X++);var qb=C.botguardServerEnvironment;void 0!==qb&&(O(K,12,NKa[qb]),X++);var tc=C.accountEventTrigger;void 0!==tc&&(O(K,13,OKa[tc]),X++);
var Uc=C.signInMethodType;void 0!==Uc&&(O(K,14,PKa[Uc]),X++);var gc=C.accountEventErrorType;void 0!==gc&&(O(K,15,QKa[gc]),X++);var Vc=C.hadRemoteDeviceConnected;void 0!==Vc&&(Vj(K,16,Vc),X++);var md=C.hadVoiceInitiatedPlayback;void 0!==md&&(Vj(K,17,md),X++);var Lc=C.restartLengthMin;void 0!==Lc&&(Wj(K,18,Lc),X++);var nd=C.restartReason;void 0!==nd&&(O(K,19,RKa[nd]),X++);var od=C.numberOfPersonaAccountsDelta;void 0!==od&&(Wj(K,20,od),X++);var Yb=C.accountEventCancellationType;void 0!==Yb&&(O(K,21,
SKa[Yb]),X++);var lc=C.maxJsMemoryPerAppLifecycleBytes;void 0!==lc&&(Wj(K,22,lc),X++);var Kd=C.appLifecycleLengthMin;void 0!==Kd&&(Wj(K,23,Kd),X++);var $c=[X===Object.keys(C).length,K]}catch(wc){Y(wc),$c=[!1,void 0]}var ec=$c;ec[0]&&(Jj(e,oA,7,ec[1]),f++)}var ad=d.unpluggedWeb;if(ad){var Qb=new pA,Ad=0;try{var Wd=ad.unpluggedWebEntitlementType;void 0!==Wd&&(O(Qb,1,TKa[Wd]),Ad++);var Sb=ad.unpluggedWebPurchaseType;void 0!==Sb&&(O(Qb,2,UKa[Sb]),Ad++);var af=[Ad===Object.keys(ad).length,Qb]}catch(wc){Y(wc),
af=[!1,void 0]}var ze=af;ze[0]&&(Jj(e,pA,8,ze[1]),f++)}var Oe=d.logEventStatus;void 0!==Oe&&(Wj(e,9,Oe),f++);var uf=d.kids;if(uf){var bf=new kA,jh=0;try{var Ig=uf.userType;void 0!==Ig&&(O(bf,1,VKa[Ig]),jh++);var kh=[jh===Object.keys(uf).length,bf]}catch(wc){Y(wc),kh=[!1,void 0]}var Jg=kh;Jg[0]&&(Jj(e,kA,10,Jg[1]),f++)}var lh=d.screen;void 0!==lh&&(Wj(e,11,lh),f++);var Ae=d.navigation;if(Ae){var cf=new iA,bd=0;try{var fe=Ae.destinationScreen;void 0!==fe&&(Wj(cf,1,fe),bd++);var vc=Ae.navType;void 0!==
vc&&(O(cf,2,WKa[vc]),bd++);var Kg=[bd===Object.keys(Ae).length,cf]}catch(wc){Y(wc),Kg=[!1,void 0]}var mh=Kg;mh[0]&&(Jj(e,iA,12,mh[1]),f++)}var nh=[f===Object.keys(d).length,e]}catch(wc){Y(wc),nh=[!1,void 0]}var oh=nh;oh[0]&&(Jj(b,qA,1,oh[1]),c++)}var Be=a.records;Be&&(jP(b.j.bind(b),Be,XKa),c++);return[c===Object.keys(a).length,b]}catch(wc){return Y(wc),[!1,void 0]}};
XKa=function(a){var b=new rA,c=0;try{var d=a.name;void 0!==d&&(O(b,1,ZKa[d]),c++);var e=a.status;void 0!==e&&(O(b,2,$Ka[e]),c++);var f=a.state;void 0!==f&&(b.Dc(aLa[f]),c++);var h=a.sliId;void 0!==h&&(N(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
AP=function(){this.C=new Set;this.B=new Set;this.D=new Map;this.client=void 0;this.csn=null};
BP=function(){AP.instance||(AP.instance=new AP);return AP.instance};
CP=function(){};
DP=function(){this.N=[];this.Z=[];this.j=[];this.ra=[];this.G=[];this.W=[];this.C=new Map;this.K=new Map;this.B=new Set;this.Ba=new Map};
EP=function(){DP.instance||(DP.instance=new DP);return DP.instance};
FP=function(a,b,c,d){d=void 0===d?{}:d;g.OB(function(){bLa.includes(b)||(g.LF(new g.eD("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||(a.ra=[],a.j.push({rootVe:b,key:d.key||""}));a.N=[];a.Z=[];d.zV?cLa(a,b,c,d):dLa(a,b,c,d)})()};
eLa=function(a,b,c){c=void 0===c?0:c;g.OB(function(){b.then(function(d){a.B.has(c)&&a.D&&a.D();var e=g.HF(c),f=g.GF(c);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.TF(a.client,e,f,g.FF(d.response.trackingParams));var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.TF(a.client,e,f,g.FF(d.playerResponse.trackingParams))}})})()};
HP=function(a){var b=EP();g.OB(function(){var c=g.FF(a);GP(b,c);return c})()};
GP=function(a,b,c,d){d=void 0===d?0:d;g.OB(function(){if(a.B.has(d))return a.N.push([b,c]),!0;var e=g.HF(d),f=c||g.GF(d);if(e&&f){if(g.KB("combine_ve_grafts")){var h=a.C.get(f.toString());h?h.push(b):(a.K.set(f.toString(),f),a.C.set(f.toString(),[b]));a.ma||(a.ma=g.jD(0,function(){fLa(a,e)},1200))}else g.TF(a.client,e,f,b);
return!0}return!1})()};
gLa=function(a,b,c,d){d=void 0===d?0:d;var e=g.HF(d);d=b||g.GF(d);e&&d&&(a=a.client,b=RF({cttAuthInfo:IF(e)||void 0},e),g.KB("il_via_jspb")?(c=new oB,c.j(e),d=d.getAsJspb(),Jj(c,HA,2,d),"UNDEFINED_CSN"===e?VF("visualElementStateChanged",b,void 0,c):Yta(c,b,a)):(c={csn:e,ve:d.getAsJson(),clientData:c},"UNDEFINED_CSN"===e?VF("visualElementStateChanged",b,c):a?zF("visualElementStateChanged",c,a,b):g.qD("visualElementStateChanged",c,b)))};
cLa=function(a,b,c,d){d=void 0===d?{}:d;a.B.add(d.layer||0);a.D=function(){dLa(a,b,c,d);var h=g.GF(d.layer);if(h){for(var l=g.u(a.N),m=l.next();!m.done;m=l.next())m=m.value,GP(a,m[0],m[1]||h,d.layer);h=g.u(a.Z);for(l=h.next();!l.done;l=h.next())l=l.value,gLa(a,l[0],l[1])}};
c||g.HF(d.layer)||a.D();if(d.zV)for(var e=g.u(d.zV),f=e.next();!f.done;f=e.next())eLa(a,f.value,d.layer);else g.KF(Error("Delayed screen needs a data promise."))};
dLa=function(a,b,c,d){d=void 0===d?{}:d;var e=void 0;d.layer||(d.layer=0);e=void 0!==d.parentLayer?d.parentLayer:d.layer;var f=g.HF(e);e=g.GF(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,n=g.IB("EVENT_ID");"UNDEFINED_CSN"===f&&n&&(m={servletData:{serializedServletEventId:n}});g.KB("combine_ve_grafts")&&f&&fLa(a,f);g.KB("no_client_ve_attach_unless_shown")&&h&&f&&Zua(h,f);try{var p=
Xua(a.client,b,l,d.vV,d.cttAuthInfo,m,d.implicitGestureType,d.loggingExpectations)}catch(t){Lua(t,{yF:b,rootVe:e,ekb:c,iib:f,bkb:l,vV:d.vV});g.KF(t);return}nua(p,b,d.layer,d.cttAuthInfo);f&&"UNDEFINED_CSN"!==f&&e&&!kua(f)&&bva(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=p||"");g.aI({clientScreenNonce:p});CP.instance||(CP.instance=new CP);g.OB(BP().j).bind(BP())();var q=g.GF(d.layer);f&&"UNDEFINED_CSN"!==f&&q&&(g.KB("web_mark_root_visible")||g.KB("music_web_mark_root_visible"))&&
g.XF(p,q);a.B.delete(d.layer||0);a.D=void 0;var r;null==(r=a.Ba.get(d.layer))||r.forEach(function(t,v){t?GP(a,v,t,d.layer):q&&GP(a,v,q,d.layer)});
hLa(a)};
hLa=function(a){for(var b=0;b<a.G.length;b++){var c=a.G[b];try{c()}catch(d){g.KF(d)}}for(b=a.G.length=0;b<a.W.length;b++){c=a.W[b];try{c()}catch(d){g.KF(d)}}};
fLa=function(a,b){if(void 0===b)for(var c=iua(),d=0;d<c.length;d++)void 0!==c[d]&&fLa(a,c[d]);else a.C.forEach(function(e,f){(f=a.K.get(f))&&g.Yua(a.client,b,f,e)}),a.C.clear(),a.K.clear(),a.ma=void 0};
IP=function(){};
iLa=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."))})};
Dpa=function(a,b){var c=this;this.handleError=a;this.j=b;this.B=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.B=!0});
this.C=Math.random()<=g.LB("ytidb_transaction_ended_event_rate_limit_session",.2)};
kLa=function(a,b){IP.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:jLa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:jLa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
jLa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
mLa=function(){g.bD();return g.cD(0,192)?g.cD(0,190):!(g.KB("web_watch_cinematics_disabled_by_default")||g.KB("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&lLa())};
oLa=function(a){return!nLa||(0,g.FD)()-nLa>a};
qLa=function(a,b){pLa(a.program,b.Faa)&&(dI("bg_i",void 0,"player_att"),g.qI.initialize(a,function(){dI("bg_l",void 0,"player_att");nLa=(0,g.FD)()},b.cspNonce))};
rLa=function(a){a=void 0===a?{}:a;return g.qI.invoke(a)};
sLa=function(a){var b=g.LB("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return bya(a,b)};
pLa=function(a,b){return a?g.qI.isLoading()?!1:oLa(b):!1};
tLa=function(a){a=a.split("");JP.Pf(a,3);JP.oC(a,38);JP.Pf(a,2);JP.sC(a,60);JP.oC(a,6);return a.join("")};
g.uLa=function(a,b){return a.Ga+"timedtext_video?ref=player&v="+b.videoId};
g.KP=function(a,b){a.feature=b;return a};
g.vLa=function(a){var b=this;this.videoData=a;a={};this.B=(a.c1a=function(){var c=[];if(g.qI.isInitialized()){var d="";b.videoData&&b.videoData.Jk&&(d=b.videoData.Jk+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);dI("bg_v",void 0,"player_att");d=rLa(d);dI("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else dI("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.qI.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^fya())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.IB("CATSTAT",0)))},a);
this.videoData&&this.videoData.Jk?this.j=SB(this.videoData.Jk):this.j={}};
g.wLa=function(a){if(a.videoData&&a.videoData.Jk){for(var b=[a.videoData.Jk],c=g.u(Object.keys(a.B)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.B[d]&&(d=a.B[d](a.j))&&b.push(d);return b.join("&")}return null};
yLa=function(a){var b={};Object.assign(b,a.B);g.KB("player_attestation_bg_async")&&(b.c1a=function(){return xLa(a)});
if(a.videoData&&a.videoData.Jk){for(var c=[a.videoData.Jk],d=g.u(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.zLa=function(a,b){qLa(a,{Faa:g.EJ(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
xLa=function(a){function b(e){return e+"&r1d="+g.qI.getState()}
if(!g.qI.isInitialized())return dI("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.Jk&&(c=a.videoData.Jk+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){dI("bg_v",void 0,"player_att");sLa(d).then(function(f){f?(dI("bg_s",void 0,"player_att"),e(b("r1a="+f))):(dI("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){dI("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
LP=function(a){a=void 0===a?2592E3:a;if(0<a&&!(kpa()>(0,g.FD)()-1E3*a))return 0;a=g.YC("yt-player-quality");if("string"===typeof a){if(a=g.cL[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
ALa=function(){var a=g.YC("yt-player-proxima-pref");return null==a?null:a};
BLa=function(){var a=g.YC("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};
CLa=function(){var a={values:{},Oq:{}};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};
DLa=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
NP=function(a,b){return+MP()[DLa(a,b)]||8192};
MP=function(){return g.YC("yt-player-performance-cap")||{}};
ELa=function(a){g.XC("yt-player-watch-later-pending",a)};
FLa=function(){return!!g.YC("yt-player-headers-readable")};
GLa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.HLa=function(){var a=g.YC("yt-player-caption-language-preferences");return a?a:[]};
ILa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
g.OP=function(a,b){this.id=a;this.Lc=b;this.captionTracks=[];this.C=this.D=null;this.xtags="";this.G=!1;this.j=null;this.B="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";a=this.Lc.id.split(".");1<a.length&&(this.G="2"===a[1])};
PP=function(a,b,c,d){this.C=c;this.reason=d;this.B=a||0;this.j=b||0};
g.QP=function(a,b,c,d){return new PP(g.cL[a]||0,g.cL[b]||0,c,d)};
RP=function(a){var b=g.cL.auto;return a.B===b&&a.j===b};
TP=function(a){return SP[a.j||a.B]||"auto"};
JLa=function(a,b){b=g.cL[b];return a.B<=b&&(!a.j||a.j>=b)};
UP=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")};
VP=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;null==c||c({ainfolen:this.j.length});b=g.u(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.Lc||a.has(d.Lc.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.Lc,itag:d.itag,xtag:d.j,lang:(null==(e=d.Lc)?void 0:e.name)||"",langid:(null==(f=d.Lc)?void 0:f.id)||""})}else e=new g.OP(d.id,d.Lc),a.add(d.Lc.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}};
KLa=function(){g.H.apply(this,arguments);this.j=null};
OLa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(WP(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.ub]=[a.info]);return n}p=LLa(b,d,l);f&&e({aftsrt:XP(p)});for(var q={},r=g.u(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var v=g.u(p[t]),x=v.next();!x.done;x=v.next()){x=x.value;var B=x.itag,F=void 0,G=t+"_"+((null==(F=x.video)?void 0:F.fps)||0);q.hasOwnProperty(G)?!0===q[G]?n[t].push(x):l[B]=q[G]:(F=YP(b,x,c,d.isLive,m),!0!==F?(h.add(t),l[B]=F,
"disablevp9hfr"===F&&(q[G]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(x),q[G]=!0))}}f&&e({bfflt:XP(n)});for(var I in n)n.hasOwnProperty(I)&&(d=I,n[d]&&n[d][0].dh()&&(n[d]=n[d],n[d]=MLa(b,n[d],l),n[d]=NLa(n[d],l)));f&&e(l);b=g.u(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.UZ;f&&e({aftflt:XP(n)});a.j=g.Xc(n,function(L){return!!L.length});
return a.j};
QLa=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;if(b.Oc&&h&&1<h.length&&!(0<b.lj||b.W)){for(var m=b.B||!!e,n=m&&b.Rb?f:void 0,p=LLa(b,d),q=[],r=[],t={},v=0;v<h.length;v++){var x=h[v],B=d.N.get(x);if(B&&B.info){var F=B.info;B=F.ub;if(YP(b,F,c,d.isLive)){x=F.dh()?q:r;F=g.u(p[B]);for(var G=F.next();!G.done;G=F.next()){G=G.value;var I=void 0,L=B+"_"+((null==(I=G.video)?void 0:I.fps)||0);t.hasOwnProperty(L)?!0===t[L]&&x.push(G):YP(b,G,c,d.isLive)&&(x.push(G),t[L]=!0)}}else m&&f({opfu:x})}}if(q.length&&
r.length)return m&&f({opfm:q[0].itag+","+r[0].itag}),lC(new VP(q,r,n))}return PLa(a,b,c,d,e,f,l)};
PLa=function(a,b,c,d,e,f,h){function l(v){return!!q[v]}
var m=b.B||!!e,n=m&&b.Rb?f:void 0,p=new Set,q=OLa(a,b,c,d,f,m,p);ZP(d)&&(q=RLa(c,q,e,m,f,b),m&&f({enflt:XP(q)}));b.kb=SLa(q);if(WP(d))return f=g.Db(Object.values(q),function(v){return!!v.length&&!!v[0].audio}),m=g.Db(Object.values(q),function(v){return!!v.length&&!!v[0].video}),f&&m||kC(),lC(new VP(m,f,n));
a=TLa(b);m&&f({audioPrefOrder:a.join("_")});a=g.Db(a,l);if(!a)return m&&f({noaudio:1}),kC();a=q[a];q["9"]&&q.h&&d.Ac&&!b.Va&&(m&&f({dltvp9:1}),delete q["9"]);if(h){ULa(c,p);for(var r in q)if(q.hasOwnProperty(r)&&(h=r,!("f"===h||0===b.Qf&&VLa.has(h))))for(p=g.u(q[h]),e=p.next();!e.done;e=p.next())WLa(c,h,e.value)}h=q["1h"]?"1h":"1";c=q["9h"]?"9h":"9";e=q[h];var t=q[c];e&&e.length&&(b.j.highestAv1Resolution=e[e.length-1].video.j);t&&t.length&&(b.j.highestVp9Resolution=t[t.length-1].video.j);r=[];p=
[];if(b.W&&!b.Xn)for(p=XLa(d)?q["1h"]||q["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],m&&f({newhybpref:p.join(".")}),e=g.u(p),t=e.next();!t.done;t=e.next())r=r.concat(q[t.value]).filter(function(v){return v});
else 0<b.lj&&t&&e&&(p=[h,c],r=e.concat(t).filter(function(v){return v}));
if(r.length&&!b.Xn){$P(r,p);if(m){m=[];b=g.u(r);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return lC(new VP(r,a,n))}r=YLa(b);r=g.Db(r,l);if(!r){if(q[h])return f=q[h],$P(f),lC(new VP(f,a,n));m&&f({novideo:1});return kC()}b.Ic&&("1"===r||"1h"===r)&&q[c]&&(h=aQ(q[r]),p=aQ(q[c]),p>h?r=c:b.jd&&p===h&&ZLa(q[c])&&(r=c));"9"===r&&q.h&&aQ(q.h)>aQ(q["9"])&&(r="h");b.tb&&d.isLive&&"("===r&&q.H&&1440>aQ(q["("])&&(r="H");m&&f({vfmly:$La(r)});b=q[r];if(!b.length)return m&&f({novfmly:$La(r)}),
kC();$P(b);return lC(new VP(b,a,n))};
SLa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c};
ZLa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&aMa.has(b.itag))return!0;return!1};
$La=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
XP=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push($La(d));d=g.u(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
RLa=function(a,b,c,d,e,f){var h={},l={};g.Wc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.ge)return l[q]="noenc",!1;if(f.Jb&&"(h"===p.ub&&f.rb)return l[q]="lichdr",!1;if("("===p.ub||"(h"===p.ub){if(a.D&&c&&"widevine"===c.flavor){var r=p.mimeType+"; experimental=allowed";(r=!!p.ge[c.flavor]&&!!c.j[r])||(l[q]=p.ge[c.flavor]?"unspt":"noflv");return r}if(!bQ(a,cQ.CRYPTOBLOCKFORMAT)&&!a.Ba||a.ma)return l[q]=a.ma?"disvp":"vpsub",!1}return c&&p.ge[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.ge[c.flavor]?
"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
NLa=function(a,b){var c=rr(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}));
yoa()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
MLa=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.Ub)return!0;c[d.itag]="maxquality";return!1})};
LLa=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.N&&f.video&&f.video.j<a.N)c&&(c[f.itag]="min"+a.N);else{var h=f.ub;d[h]=d[h]||[];d[h].push(f)}}a=g.u(Object.keys(d));for(b=a.next();!b.done;b=a.next())$P(d[b.value]);return d};
aQ=function(a){return rr(a,function(b,c){return Math.max(b,c.video.j)},0)};
YP=function(a,b,c,d,e){e=void 0===e?new Set:e;if(""===b.ub)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.Ea)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.bb&&"h"===b.ub&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.ub&&!c.K)return"enchdr";if((void 0===d?0:d)&&jL(b)&&!a.Qa)return"blk51live";if(("MAC3"===b.ub||"mac3"===b.ub)&&!a.D)return"blkac3";if(("MEAC3"===b.ub||"meac3"===b.ub)&&!a.G)return"blkeac3";if(("M"===b.ub||"m"===b.ub)&&!a.ra)return"blkaac51";if(("so"===
b.ub||"sa"===b.ub)&&!a.Ba)return"blkamb";if(!a.Jb&&b.ge&&b.ge.fairplay&&("("===b.ub||"(h"===b.ub||"A"===b.ub||"MEAC3"===b.ub))return"cbc";if("i"===b.ub&&!a.Bb)return"blkiamf";if(a.hd&&"1h"===b.ub)return"av1hdr";if((d=c.C.get(b.ub))&&0<d.UZ)return e.add(b.ub),"byerr";var f;if(null==(f=b.video)?0:32<f.fps){if(!c.ra&&!bQ(c,cQ.FRAMERATE))return"capHfr";if(a.Za&&4320<=b.video.j)return"blk8khfr";if(hL(b)&&a.Od&&b.ge&&1440<=b.video.j)return"disablevp9hfr"}if(a.Ob&&b.Ob>a.Ob)return"ratecap";a=bMa(c,b);return!0!==
a?a:!0};
$P=function(a,b){b=void 0===b?[]:b;g.Ub(a,function(c,d){var e=d.Ob-c.Ob;if(!c.dh()||!d.dh())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.ub)+1,d=b.indexOf(d.ub)+1,f=0===c||0===d?d||-1:c-d);f||(f=e);return f})};
g.dQ=function(a,b){this.B=a;this.D=void 0===b?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""};
fQ=function(a){eQ(a);return a.C};
gQ=function(a){return a.B?a.B.startsWith("local"):"local"===a.scheme};
cMa=function(a){eQ(a);return g.Zc(a.j,function(b){return null!==b})};
dMa=function(a){eQ(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
hQ=function(a,b){b=void 0===b?!1:b;eQ(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.df();c=new g.po(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.ro(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.dQ(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.ro(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.ro(c,"www.youtube.com"),d=c.toString()):(c=Lza(d),fK(c)&&(d=c));c=new g.dQ(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
eQ=function(a){if(a.B){if(!fK(a.B)&&!a.B.startsWith("local"))throw new g.eD("Untrusted URL",a.B);var b=g.Zo(a.B);a.scheme=b.G;a.C=b.j+(null!=b.D?":"+b.D:"");var c=b.C;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=eMa(c);Object.assign(a.j,
fMa(b.B.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=a.get("n"))&&(b=gMa[0](b),a.set("n",b),gMa.length||hma(""))}};
hMa=function(a){eQ(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(cMa(a)){var c=[];g.Wc(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
eMa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&iMa(c,a[b],a[b+1]);return c};
fMa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?iMa(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
iMa=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};
iQ=function(a){var b=g.R(a,jMa)||a.signatureCipher;a={QW:!1,QC:"",QF:"",s:""};if(!b)return a;b=SB(b);a.QW=!0;a.QC=b.url;a.QF=b.sp;a.s=b.s;return a};
jQ=function(a,b,c,d,e,f,h,l,m){this.Pa=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Tg=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.Tg=m||null};
g.kQ=function(){this.segments=[];this.j=null;this.B=!0};
kMa=function(a,b){if(b>a.zd())a.segments=[];else{var c=Cb(a.segments,function(d){return d.Pa>=b},a);
0<c&&a.segments.splice(0,c)}};
lMa=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.B=e)?0:8;this.dataOffset=this.offset+this.j};
lQ=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
mQ=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
nQ=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
oQ=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
pQ=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};
mMa=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 GO(b)};
nMa=function(a){return new Uint8Array(a.data.buffer,a.offset+a.data.byteOffset,a.size)};
oMa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
qQ=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};
rQ=function(a,b,c,d,e,f){this.startSecs=a;this.gi=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
tQ=function(a,b){this.data=a;this.uri=b||"https://web.archive.org/web/20240102114909/http://youtube.com/streaming/metadata/segment/102015";this.j=sQ(this,"Sequence-Number");this.K=sQ(this,"Segment-Count");this.N=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=sQ(this,"Ingestion-Walltime-Us")/1E6;this.B=(sQ(this,"First-Frame-Time-Us")+sQ(this,"First-Frame-Uncertainty-Us"))/1E6;this.Jj=sQ(this,"Target-Duration-Us")/1E6;this.D="T"===this.data["Stream-Finished"];this.G="T"===this.data.Streamable;this.cryptoPeriodIndex=sQ(this,"Crypto-Period-Index");
this.C=sQ(this,"Crypto-Period-Seconds")};
qMa=function(a){return a.data["Cuepoint-Type"]?new rQ(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",pMa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
rMa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
sQ=function(a,b){return Number(a.data[b])||0};
sMa=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.tMa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.uMa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
vMa=function(a,b){this.j=a;this.duration=b};
wMa=function(a,b,c,d,e){this.B=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
uQ=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};
xMa=function(a,b){var c=g.vQ(a,0,1952868452);a=g.vQ(a,0,1953658222);if(c&&a){c.skip(1);var d=lQ(c)<<16|mQ(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=oQ(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=lQ(a)<<16|mQ(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=oQ(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=oQ(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
xQ=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.vQ(a,0,1836476516))?g.wQ(a):NaN};
yMa=function(a){var b=g.vQ(a,0,1937011556);if(!b)return null;b=yQ(a,b.dataOffset+8,1635148593)||yQ(a,b.dataOffset+8,1635135537);if(!b)return null;var c=yQ(a,b.dataOffset+78,1936995172),d=yQ(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),lQ(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=yQ(a,d.dataOffset,1886547818)){var h=yQ(a,d.dataOffset,1886546020),l=yQ(a,d.dataOffset,2037673328);if(!l&&(l=yQ(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=nQ(h)/65536,f=nQ(h)/65536,e=nQ(h)/65536);a=nMa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new wMa(b,c,f,e,a)}return null};
yQ=function(a,b,c){for(;zQ(a,b);){var d=AQ(a,b);if(d.type===c)return d;b+=d.size}return null};
g.vQ=function(a,b,c){for(;zQ(a,b);){var d=AQ(a,b);if(d.type===c)return d;b=BQ(d.type)?b+8:b+d.size}return null};
g.zMa=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};
AQ=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new lMa(a,b,c,d)};
g.wQ=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
AMa=function(a){a=new lMa(a.data,a.offset,a.size,a.type,a.B);var b=lQ(a);a.skip(7);var c=oQ(a);if(0===b){b=oQ(a);var d=oQ(a)}else b=pQ(a),d=pQ(a);a.skip(2);for(var e=mQ(a),f=[],h=[],l=0;l<e;l++){var m=oQ(a);f.push(m);h.push(oQ(a));a.skip(4)}return{Au:c,u5:b,N5:d,Daa:f,OR:h}};
zQ=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(48>d||122<d)return!1}return!0};
BQ=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
BMa=function(a){a.skip(4);return{bba:mMa(a,0),value:mMa(a,0),Au:oQ(a),kkb:oQ(a),oib:oQ(a),id:oQ(a),gY:mMa(a),offset:a.offset}};
g.CMa=function(a){var b=yQ(a,0,1701671783);if(!b)return null;var c=BMa(b),d=c.bba;c=uQ(c.gY);if(a=yQ(a,b.offset+b.size,1701671783))if(a=BMa(a),a=uQ(a.gY),c&&a){b=g.u(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new tQ(c,d):null};
DMa=function(a,b){for(var c=yQ(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=yQ(a,c.offset+c.size,b)}};
g.CQ=function(a,b){for(var c=0,d=[];zQ(a,c);){var e=AQ(a,c);e.type===b&&d.push(e);c=BQ(e.type)?c+8:c+e.size}return d};
EMa=function(a,b){var c=g.vQ(a,0,1937011556),d=g.vQ(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.vQ(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 oMa(a.byteLength+b);qQ(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;qQ(d,a,c.offset+16,c.size-16);qQ(d,e,e.byteOffset+f.dataOffset+8,b);qQ(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.u([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.vQ(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.vQ(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
FMa=function(a){var b=g.vQ(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(1701733217!==c&&1701733238!==c)return null;b=yQ(a,b.offset+24+(1701733217===c?28:78),1936289382);if(!b)return null;c=yQ(a,b.offset+8,1935894637);if(!c||1667392371!==a.getUint32(c.offset+12))return null;b=yQ(a,b.offset+8,1935894633);if(!b)return null;b=yQ(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};
DQ=function(a,b){this.j=a;this.pos=0;this.start=b||0};
EQ=function(a){return a.pos>=a.j.byteLength};
JQ=function(a,b,c){var d=new DQ(c);if(!FQ(d,a))return!1;d=GQ(d);if(!HQ(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=IQ(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?GMa(d-9,8):GMa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
IMa=function(a){var b=new DQ(a);b.In();if(FQ(b,[408125543,374648427,174,224]))b=GQ(b);else return null;for(var c=a=null;!EQ(b);){var d=IQ(b,!1);if(21432===d)switch(KQ(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=GQ(b):LQ(b)}if(!c)return null;for(var e,f=d=b=null;!EQ(c);)switch(IQ(c,!1)){case 30321:if(3!==KQ(c))return null;break;case 30324:b=MQ(c);break;case 30323:f=MQ(c);break;case 30325:d=MQ(c);break;case 30322:e=IQ(c,!0);e=HMa(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:LQ(c)}return e?new wMa(a,b,f,d,e):null};
GQ=function(a){var b=IQ(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 DQ(c,a.start+a.pos);a.pos+=b;return c};
KQ=function(a){for(var b=IQ(a,!0),c=NQ(a),d=1;d<b;d++)c=256*c+NQ(a);return c};
MQ=function(a){var b=IQ(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};
JMa=function(a){var b=IQ(a,!0);return GO(HMa(a,b))};
NQ=function(a){return a.j.getUint8(a.pos++)};
IQ=function(a,b){var c=NQ(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+NQ(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+NQ(a),d*=128;return b?c-d:c};
LQ=function(a){var b=IQ(a,!0);a.pos+=b};
KMa=function(a){if(!HQ(a,440786851,!0))return null;var b=a.pos;IQ(a,!1);var c=IQ(a,!0)+a.pos-b;a.pos=b+c;if(!HQ(a,408125543,!1))return null;IQ(a,!0);if(!HQ(a,357149030,!0))return null;var d=a.pos;IQ(a,!1);var e=IQ(a,!0)+a.pos-d;a.pos=d+e;if(!HQ(a,374648427,!0))return null;var f=a.pos;IQ(a,!1);var h=IQ(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};
OQ=function(a){var b=a.pos;a.pos=0;var c=1E6;FQ(a,[408125543,357149030,2807729])&&(c=KQ(a));a.pos=b;return c};
LMa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!PQ(a)||!HQ(a,160))return a.pos=c,NaN;IQ(a,!0);var d=a.pos;if(!HQ(a,161))return a.pos=c,NaN;IQ(a,!0);NQ(a);var e=NQ(a)<<8|NQ(a);a.pos=d;if(!HQ(a,155))return a.pos=c,NaN;d=KQ(a);a.pos=c;return(e+d)*b/1E9};
PQ=function(a){if(!MMa(a)||!HQ(a,524531317))return!1;IQ(a,!0);return!0};
MMa=function(a){if(a.In()){if(!HQ(a,408125543))return!1;IQ(a,!0)}return!0};
FQ=function(a,b){for(var c=0;c<b.length;c++){if(!HQ(a,b[c]))return!1;c!==b.length-1&&IQ(a,!0)}return!0};
HQ=function(a,b,c){c=void 0===c?!1:c;if(EQ(a))return!1;for(var d=a.pos;IQ(a,!1)!==b;)if(LQ(a),d=a.pos,EQ(a))return!1;c&&(a.pos=d);return!0};
GMa=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};
HMa=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
QQ=function(a){this.base=a;this.j={};this.url=""};
NMa=function(a,b){var c=b.indexOf("?");if(0<c){var d=fMa(b.substr(c+1));g.Wc(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=eMa(b);g.Wc(b,function(e,f){this.set(f,e)},a)};
OMa=function(a){var b=a.base.df(),c=[];g.Wc(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=cMa(a.base)?"&":"?";return b+a+d};
PMa=function(a,b){var c=new g.dQ(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Wc(a.j,function(d,e){c.set(e,null)});
return c};
RQ=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
SQ=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new RQ(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
TQ=function(a,b){return new RQ(a,a+b-1)};
QMa=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
UQ=function(a){if(!a)return new RQ(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new RQ(b,a),0<b.length))return b};
VQ=function(a,b,c,d,e,f,h,l,m,n,p,q){d=void 0===d?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.Gj=p;this.clipId=void 0===q?"":q;this.N=[];this.G="";this.Pa=-1;this.G=d;this.Pa=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Xb=l||0;this.B=0<=m?m:this.range?this.range.length:NaN;this.hf=this.range?this.Xb+this.B===this.range.length:void 0===n?!!this.B:n;this.range?(this.C=this.startTime+this.duration*this.Xb/this.range.length,this.K=this.duration*this.B/this.range.length,this.D=
this.C+this.K):RMa(this)};
RMa=function(a){a.C=a.startTime;a.K=a.duration;a.D=a.C+a.K};
WQ=function(a){return a.hf&&a.j.index.UO(a.Pa)};
SMa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Pa!==a.Pa);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Xb+b.B===a.Xb+a.B:d};
XQ=function(a){return 1===a.type||2===a.type};
YQ=function(a){return 3===a.type||7===a.type};
ZQ=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Xb+a.B===b.range.start+b.Xb:a.Pa===b.Pa?a.Xb+a.B===b.Xb:a.Pa+1===b.Pa&&0===b.Xb&&a.hf:!1};
TMa=function(a,b){return ZQ(a,b)||1E-6>=Math.abs(a.D-b.C)||a.Pa+1===b.Pa&&0===b.Xb&&a.hf?!0:!1};
UMa=function(a){return a.Pa+(a.hf?1:0)};
VMa=function(a){1===a.length||g.qr(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new RQ(a[0].range.start+a[0].Xb,b.range.start+b.Xb+b.B-1)};
WMa=function(a){for(var b=1;b<a.length;b++)if(!ZQ(a[b-1],a[b]))return!1;return!0};
XMa=function(a){var b=0;a=g.u(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;return b};
$Q=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.G;b.seg=String(a.Pa);a.range&&(b.range=a.range.start+a.Xb+"-"+(a.range.start+a.Xb+a.B-1));b.time=a.C.toFixed(1)+"-"+(a.C+a.K).toFixed(1);b.off=String(a.Xb);b.len=String(a.B);a.hf&&(b.end="1");WQ(a)&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
YMa=function(a){return new VQ(a.type,a.j,a.range,"getEmptyStubBefore"+a.G,a.Pa,a.startTime,0,a.Xb,0)};
ZMa=function(a){return new VQ(a.type,a.j,a.range,"getEmptyStubAfter"+a.G,a.Pa,a.startTime+a.duration,0,a.Xb+a.B,0)};
$Ma=function(a,b,c,d){return new VQ(a.type,a.j,a.range,"reslice"+a.G,a.Pa,a.startTime,a.duration,b,c,d,a.Gj,a.clipId)};
aNa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Xb>=b.range.start+b.Xb&&a.range.start+a.Xb+a.B<=b.range.start+b.Xb+b.B:a.Pa===b.Pa&&a.Xb>=b.Xb&&(a.Xb+a.B<=b.Xb+b.B||b.hf)};
bNa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.hg()?(a=a.j.fB(a),ms(a,function(c){return bNa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Xb+b.B>a.Xb&&b.Xb+b.B<=a.Xb+a.B};
cNa=function(a,b){var c=b.Pa;a.G="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,RMa(a)};
aR=function(a,b){var c=this;this.eb=a;this.D=this.j=null;this.G=this.Xg=NaN;this.K=this.requestId=null;this.Fd={jjb:function(){return c.range}};
this.resource=a[0].j.resource;this.B=b||"";this.eb[0].range&&0<this.eb[0].B&&(WMa(a)?(this.range=VMa(a),this.C=this.range.length):(this.range=this.eb[this.eb.length-1].range,this.C=XMa(a)))};
bR=function(a){return!!(a.j||a.D&&a.D.mB)};
dNa=function(a){return!XQ(a.eb[a.eb.length-1])};
cR=function(a){return 4===a.eb[a.eb.length-1].type};
g.fNa=function(a,b,c){c=null===a.K?dR(a.resource,b,c,a.eb[0].type):a.K;if(a.j){c=c?hQ(a.j,b.Jm):a.j;var d=new QQ(c);d.get("alr")||d.set("alr","yes");a.B&&NMa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new QQ(new g.dQ(a.B)):(d=eNa(a.resource,c,b),a.B&&NMa(d,a.B));if(b.zx&&5===a.eb[0].type||6===a.eb[0].type)b=d.base.clone(),eQ(b),"/videogoodput"!==b.path&&(b.path="/videogoodput",b.url=""),d=new QQ(b);(b=a.range)?d.set("range",b.toString()):a.eb[0].j.Xv()&&1===a.eb.length&&a.eb[0].Xb&&d.set("range",a.eb[0].Xb+
"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.Xg)||d.set("headm",a.Xg.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&&g.Wc(a.urlParams,function(e,f){d.set(f,e)});
return d};
hNa=function(a){if(a.range)return a.C;a=a.eb[0];return gNa?Math.round(a.B):Math.round(a.K*a.j.info.Ob)};
iNa=function(a,b){return Math.max(0,a.eb[0].C-b)};
jNa=function(){this.B=this.j=this.timedOut=this.started=this.D=this.C=0};
kNa=function(a){a.D=(0,g.FD)();a.started=0;a.timedOut=0;a.j=0};
lNa=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.B);b.Fx&&(d=Math.max(0,d-b.Xm));return Math.pow(1.6,d)};
eR=function(a,b){a[b]||(a[b]=new jNa);return a[b]};
fR=function(a){this.Z=this.K=this.G=this.B=0;this.N=!1;this.j=a;this.C=a.clone()};
dR=function(a,b,c,d){if(gQ(a.j))return!1;if(6===(void 0===d?3:d))return a.N=!a.N,a.N;d=eR(c,fQ(a.j));if(1>d.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=mNa(a,b);c=eR(c,fQ(a));return c.timedOut+c.j+0<d};
eNa=function(a,b,c){a=b?mNa(a,c):a.j;return new QQ(a)};
mNa=function(a,b){b=b?b.Jm:!1;a.D||(a.D=hQ(a.C,b));return a.D};
nNa=function(a,b,c){return fQ(b?mNa(a,c):a.j)};
oNa=function(a,b,c){c=eR(c,nNa(a,dR(a,b,c),b));c=Math.max(a.G,c.timedOut)+b.mC*(a.B-a.G)+.25*a.K;b=c>b.Xm?1E3*Math.pow(1.6,c-b.Xm):0;return 0===b?!0:a.Z+b<(0,g.FD)()};
pNa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)};
gR=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.K=0;this.D=this.B=null;this.info=b;this.resource=new fR(a)};
hR=function(a,b,c,d,e,f){f=void 0===f?0:f;gR.call(this,a,b,d,void 0);this.G=c;this.Jj=f;this.index=e||new g.kQ};
qNa=function(a,b,c,d,e){this.Pa=a;this.startSecs=b;this.gi=c;this.j=d||NaN;this.B=e||NaN};
iR=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""};
jR=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
rNa=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};
sNa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
kR=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.N="";this.D=-1};
tNa=function(a){var b=a.C;a.C=[];return b};
uNa=function(){this.D=[];this.j=null;this.B={};this.C={}};
yNa=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.u(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=vNa(a):"AdaptationSet"===e.nodeName?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=wNa(a,e)):"Representation"===e.nodeName&&(e=e.getAttribute("id")||"",f=xNa(a,e));if(null==f)return;f.update(d);g.Lb(c,tNa(f))}g.Lb(a.D,c);waa(a.D,function(h){return 1E3*h.startSecs+h.j})};
zNa=function(a){a.j&&(a.j.j=[]);g.Wc(a.B,function(b){b.j=[]});
g.Wc(a.C,function(b){b.j=[]})};
vNa=function(a){a.j||(a.j=new kR);return a.j};
wNa=function(a,b){a.B[b]||(a.B[b]=new kR);return a.B[b]};
xNa=function(a,b){a.C[b]||(a.C[b]=new kR);return a.C[b]};
ANa=function(a){var b=void 0===a?{}:a;a=void 0===b.Jj?0:b.Jj;var c=void 0===b.Wm?!1:b.Wm,d=void 0===b.Bq?0:b.Bq,e=void 0===b.We?0:b.We,f=void 0===b.Th?Infinity:b.Th,h=void 0===b.hA?0:b.hA;b=void 0===b.Xd?!1:b.Xd;g.kQ.call(this);this.Rq=this.Gp=-1;this.Kj=a;this.Bq=d;this.Wm=c;this.We=e;this.Th=f;this.hA=h;this.Xd=b};
lR=function(a,b){return Tb(a.segments,function(c){return b-c.Pa})};
mR=function(a,b,c){c=void 0===c?{}:c;hR.call(this,a,b,"",void 0,void 0,c.Jj||0);this.index=new ANa(c)};
nR=function(a,b,c){gR.call(this,a,b);this.G=c;this.index=new g.kQ;this.index.B=!1};
BNa=function(a,b,c){var d=a.index.fI(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.Ob*f;return new aR([new VQ(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
CNa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.K;b=b.N.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 jQ(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
oR=function(a,b){this.info=a;this.j=b;this.B=null;this.C=-1;this.D=NaN;this.timestampOffset=0;this.K=!1;this.G=this.info.j.Qz()&&!this.info.Xb};
pR=function(a){return IGa(a.j)};
DNa=function(a,b){a.j.getLength();b=Math.min(b,a.info.B);var c=a.j.split(b),d=c.Bm;c=new oR(new VQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Xb,b,!1,a.info.Gj,a.info.clipId),c.tI);c.D=a.D;c.C=a.C;b=new oR(new VQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Xb+b,a.info.B-b,a.info.hf,a.info.Gj,a.info.clipId),d);b.D=a.D;b.C=a.C;return[c,b]};
qR=function(a,b,c){var d;if(!(d=!ZQ(a.info,b.info)||a.info.hf)){if(c=void 0===c?!1:c)c=a.j,d=b.j,c=!(d.j.length?EGa(c,d.j[0]):1);d=c}if(d)return null;c=new VQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Xb,a.info.B,a.info.hf,a.info.Gj,a.info.clipId);d=b.info;c.B+=d.B;c.range&&(c.K+=d.K);c.D=d.D;c.hf=d.hf;d=new zO;AO(d,a.j);AO(d,b.j);c=new oR(c,d);c.B=b.B||a.B;c.C=-1!==a.C?a.C:b.C;c.D=a.D||b.D;return c};
ENa=function(a){g.kL(a.info.j.info)||a.info.j.info.Me();if(-1!==a.C)return a.C;if(a.B&&rMa(a.B))return a.C=rMa(a.B),a.C;if(g.kL(a.info.j.info)){var b=pR(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;zQ(b,f);){var h=AQ(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.wQ(h):1952867444===h.type&&isNaN(d)&&(d=g.zMa(h));f=BQ(h.type)?f+8:f+h.size}!e&&c&&(e=xQ(c));b=d/e}else b=new DQ(pR(a)),c=a.G?b:new DQ(new DataView(a.info.j.j.buffer)),d=OQ(c),c=b.pos,b.pos=0,PQ(b)?HQ(b,231)?
(d=KQ(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.C;return a.C};
GNa=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=ENa(a)+b;FNa(a,c);a.timestampOffset=b};
FNa=function(a,b){g.kL(a.info.j.info)||a.info.j.info.Me();a.C=b;if(g.kL(a.info.j.info)){var c=pR(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;zQ(c,f);){var h=AQ(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.wQ(h)));if(1952867444===h.type){!d&&a&&(d=xQ(a));var l=g.zMa(h);isNaN(e)&&(e=Math.round(b*d)-l);var m=h;l+=e;if(m.data.getUint8(m.dataOffset)){var n=m.data;m=m.dataOffset+4;n.setUint32(m,Math.floor(l/4294967296));n.setUint32(m+4,l&4294967295)}else m.data.setUint32(m.dataOffset+
4,l)}f=BQ(h.type)?f+8:f+h.size}return!0}c=new DQ(pR(a));a=a.G?c:new DQ(new DataView(a.info.j.j.buffer));d=OQ(a);a=c.pos;c.pos=0;if(PQ(c)&&HQ(c,231))if(e=IQ(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};
rR=function(a,b){b=void 0===b?!1:b;var c=HNa(a);a=b?0:a.info.K;return c||a};
HNa=function(a){g.kL(a.info.j.info)||a.info.j.info.Me();if(a.B&&7===a.info.type)return a.B.Jj;if(g.kL(a.info.j.info)){var b=pR(a);var c=0;b=g.CQ(b,1936286840);b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=AMa(d.value),c+=d.OR[0]/d.Au;c=c||NaN;if(!(0<=c))a:{c=pR(a);b=a.info.j.j;for(var e=d=0,f=0;zQ(c,d);){var h=AQ(c,d);if(1836476516===h.type)e=g.wQ(h);else if(1836019558===h.type){!e&&b&&(e=xQ(b));if(!e){c=NaN;break a}var l=yQ(h.data,h.dataOffset,1953653094),m=l;l=e;var n=yQ(m.data,m.dataOffset,
1952868452);m=yQ(m.data,m.dataOffset,1953658222);var p=nQ(n);nQ(n);p&2&&nQ(n);n=p&8?nQ(n):0;var q=nQ(m),r=q&1;p=q&4;var t=q&256,v=q&512,x=q&1024;q&=2048;var B=oQ(m);r&&nQ(m);p&&nQ(m);for(var F=r=0;F<B;F++){var G=t?nQ(m):n;v&&nQ(m);p&&0===F||!x||nQ(m);q&&nQ(m);r+=G}f+=r/l}d=BQ(h.type)?d+8:d+h.size}c=f||NaN}c||g.LF(new g.eD("Missing duration while parsing bmff",a.info.Id()))}else c=new DQ(pR(a)),a=a.G?c:new DQ(new DataView(a.info.j.j.buffer)),c=LMa(c,OQ(a));return c};
INa=function(a){var b=pR(a);var c=(c=g.vQ(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.vQ(b,0,1836476516))?g.wQ(b):a?xQ(a):NaN);return c};
JNa=function(a){return a.info.j.info.Me()&&160===DO(a.j,0)};
KNa=function(a){if(!a.B){g.kL(a.info.j.info)||a.info.j.info.Me();if(g.kL(a.info.j.info))var b=g.CMa(pR(a));else{b=new DQ(pR(a));var c=b.pos;b.pos=0;var d=null,e=null;if(FQ(b,[408125543,307544935]))for(var f=b.pos+IQ(b,!0);b.pos<f;)if(29555!==IQ(b,!1))LQ(b);else for(var h=b.pos+IQ(b,!0);b.pos<h;)if(26568!==IQ(b,!1))LQ(b);else for(var l=b.pos+IQ(b,!0);b.pos<l;){var m=IQ(b,!1);if(17543===m){if(m=JMa(b),m=uQ(m))if(e)for(var n=g.u(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=JMa(b),d||(d=m)):LQ(b)}b.pos=c;b=e?new tQ(e,d):null}a.B=b}};
LNa=function(a){if(g.kL(a.info.j.info))DMa(pR(a),1836019574),DMa(pR(a),1718909296);else{var b=new DQ(pR(a));MMa(b);HQ(b,524531317,!0);a.j=a.j.split(b.start+b.pos).Bm}a.G=!1};
MNa=function(a){if(!a.K){if(g.kL(a.info.j.info)){var b=pR(a);var c=yQ(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=KMa(new DQ(pR(a)));b&&(a.info.j.j=b,a.K=!0)}};
g.NNa=function(){this.count=0;this.j=1;this.B=!1;this.offsets=new Float64Array(128);this.Xh=new Float64Array(128)};
ONa=function(a,b){return b+1<a.count||a.B?a.offsets[b+1]-a.offsets[b]:-1};
PNa=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
sR=function(a,b,c,d){gR.call(this,a,b,c,d);var e=this;this.G=null;this.Fd={FD:function(f,h,l,m){return e.FD(f,h,l,m)}};
this.index=new g.NNa};
QNa=function(a,b,c,d,e,f){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d;this.xtags=void 0===e?"":e;this.id=void 0===f?"":f};
SNa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return RNa[a];return null};
g.tR=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
UNa=function(a){return TNa(function(b,c){return g.iC(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.VNa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=GO(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
TNa=function(a,b,c){b.match(WNa);return a(b,c).then(function(d){var e=g.VNa(d.xhr);return e?TNa(a,e,c):d.xhr})};
vR=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.cG.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.Za=this.duration=0;this.isPremiere=this.Xd=this.C=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.Th=this.We=0;this.isOtf=this.Ac=!1;this.La=(0,g.FD)();this.W=Infinity;this.j={};this.N=new Map;this.state=this.Eg=0;this.timeline=null;this.isManifestless=!1;this.ma=[];this.G=null;this.ra=0;this.D="";this.Ba=NaN;this.Bb=this.Na=this.Jb=this.timestampOffset=
this.K=0;this.Va=this.Xa=this.Z=!1;this.Ea=[];this.Ga={};this.Fd={Rhb:function(f){uR(d,f)}};
var e;this.bb=null==(e=b)?void 0:e.jb("html5_use_network_error_code_enums");XNa=!!b&&b.jb("html5_modern_vp9_mime_type")};
XLa=function(a){return g.Zc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
ZP=function(a){return g.Zc(a.j,function(b){return!!b.info.ge})};
YNa=function(a){return g.Zc(a.j,function(b){return oL(b.info.mimeType)})};
ZNa=function(a){return g.Zc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
$Na=function(a){return g.Zc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
aOa=function(a){return g.Zc(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
bOa=function(a){return g.Zc(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
cOa=function(a){return $aa(a.j,function(b){return b.info.video?b.DQ():!0})};
WP=function(a){return g.Zc(a.j,function(b){return gQ(b.resource.j)})};
uR=function(a,b){a.j[b.info.id]=b;a.N.set(nL(b.info,a.Ac),b)};
dOa=function(a,b){return(b.itag||"")+";"+((a.Ac?0:b.lmt||0)||0)+";"+(b.xtags||"")};
wR=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(xBa(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=eOa[a.stereoLayout]);var r=SNa(a)||void 0;if(null==n?0:n.primaries)var t=fOa[n.primaries]||void 0;h=new dL(h,e,l,p,q,void 0,m,r,t);d=gOa(d,h,fL[a.itag||""])}var v;if(wBa(d)){var x=a.audioSampleRate;q=a.audioTrack;x=new bL(x?+x:void 0,a.audioChannels,a.spatialAudioType,
a.isDrc,a.loudnessDb,a.trackAbsoluteLoudnessLkfs);q&&(t=q.displayName,e=q.id,q=q.audioIsDefault,t&&(v=new g.tR(t,e||"",!!q)))}var B;a.captionTrack&&(m=a.captionTrack,q=m.displayName,t=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&t&&e&&(B=new QNa(q,t,e,l,a.xtags,m)));q=Number(a.bitrate)/8;t=Number(a.contentLength);e=Number(a.lastModified);m=a.drmFamilies;l=a.type;c=c&&t?t/c:0;a=Number(a.approxDurationMs);if(b&&m){var F={};m=g.u(m);for(n=m.next();!n.done;n=m.next())(n=hOa[n.value])&&(F[n]=b[n])}return new gL(f,
d,{audio:x,video:h,Lc:v,ge:F,Ob:q,Wu:c,contentLength:t,lastModified:e,captionTrack:B,streamType:l,approxDurationMs:a})};
iOa=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(xBa(d)){var h=(a.size||"640x360").split("x");h=new dL(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=gOa(d,h,fL[a.itag])}var l;if(wBa(d)){var m=new bL(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.tR(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 QNa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags,a.caption_id));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 t=g.u(a.drm_families.split(",")),v=t.next();!v.done;v=t.next())v=v.value,r[v]=b[v]}return new gL(e,d,{audio:m,video:h,Lc:l,ge:r,Ob:f,Wu:c,contentLength:p,lastModified:q,captionTrack:n,streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})};
jOa=function(a){return ms(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
kOa=function(a){return ms(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
lOa=function(a,b){return a.timeline?Mb(a.timeline.D,b):a.ma.length?Mb(a.ma,b):[]};
xR=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.dQ(a,!0);a.set("alr","yes");c&&(c=tLa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
pOa=function(a,b){var c=iR(b,"id");c=c.replace(":",";");var d=iR(b,"mimeType"),e=iR(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(iR(b,"bandwidth"))/8;var f=Number(jR(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(xBa(d)){var l=Number(iR(b,"width"));var m=Number(iR(b,"height")),n=Number(iR(b,"frameRate")),p=mOa(iR(b,a.D+":projectionType"));a:switch(iR(b,a.D+":stereoLayout")){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q=
0}l=new dL(l,m,n,p,q)}if(wBa(d)){var r=Number(iR(b,"audioSamplingRate"));var t=Number(iR(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=nOa(iR(b,a.D+":spatialAudioType"));r=new bL(r,t,m);a:{t=iR(b,"lang")||"und";if(m=jR(b,"Role"))if(p=iR(m,"value")||"",g.fd(oOa,p)){m=t+"."+oOa[p];n="main"===p;a=iR(b,a.D+":langName")||t+" - "+p;t=new g.tR(a,m,n);break a}t=void 0}}if(b=jR(b,"ContentProtection"))if("https://web.archive.org/web/20240102114909/http://youtube.com/drm/2012/10/10"===b.getAttribute("schemeIdUri")){var v={};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&&(v[a]=m.trim()))}else v=void 0;return new gL(c,d,{audio:r,video:l,Lc:t,ge:v,Ob:e,Wu:h,contentLength:f})};
mOa=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"}};
nOa=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"}};
rOa=function(a,b){b=void 0===b?"":b;a.state=1;a.La=(0,g.FD)();return UNa(b||a.sourceUrl).then(function(c){if(!a.isDisposed()){a.Eg=c.status;c=c.responseText;var d=new DOMParser;c=lga(d,gma(c)).getElementsByTagName("MPD")[0];a.W=1E3*rNa(iR(c,"minimumUpdatePeriod"))||Infinity;b:{if(c.attributes){d=g.u(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"https://web.archive.org/web/20240102114909/http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];break b}}d=""}a.D=d;a.isLive=Infinity>a.W&&a.isLivePlayback;a.Za=Number(iR(c,
a.D+":earliestMediaSequence"))||0;if(d=Date.parse(sNa(iR(c,a.D+":mpdResponseTime"))))a.ra=((0,g.FD)()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.qr(c.getElementsByTagName("Period"),a.aaa,a);a.state=2;a.oa("loaded");qOa(a)}return a}).Al(function(c){if(c instanceof gC){var d=c.xhr;
a.Eg=d.status}a.state=3;a.oa("loaderror");return Wf(d)})};
sOa=function(a,b,c){return rOa(new vR(a,b,c),a)};
tOa=function(a){return a.isLive&&(0,g.FD)()-a.La>=a.W};
uOa=function(a){a.G&&a.G.stop()};
qOa=function(a){var b=a.W;isFinite(b)&&(tOa(a)?a.refresh():(b=Math.max(0,a.La+b-(0,g.FD)()),a.G||(a.G=new g.Eu(a.refresh,b,a),g.J(a,a.G)),a.G.start(b)))};
vOa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.zd()+1}return 0};
yR=function(a){return a.Jb?a.Jb-(a.K||a.timestampOffset):0};
zR=function(a){return a.Na?a.Na-(a.K||a.timestampOffset):0};
AR=function(a){if(!isNaN(a.Ba))return a.Ba;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!oL(b[c].info.mimeType)){b=0;for(c=d.qn();c<=d.zd();c++)b+=d.getDuration(c);b/=d.wz();b=.5*Math.round(b/.5);10<d.wz()&&(a.Ba=b);return b}if(a.isLive&&(d=b[c],d.Jj))return d.Jj}return NaN};
wOa=function(a,b){a=bba(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.zi(b);return a.getStartTime(c)===b?b:c<a.zd()?a.getStartTime(c+1):NaN};
xOa=function(a,b){if(!a.j["0"]){var c=new gL("0","fakesb",{video:new dL(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new hR(new g.dQ("https://web.archive.org/web/20240102114909/http://www.youtube.com/videoplayback"),c,"fake"):new sR(new g.dQ("https://web.archive.org/web/20240102114909/http://www.youtube.com/videoplayback"),c,new RQ(0,0),new RQ(0,0))}};
BR=function(a,b,c){for(var d in a.j){var e=oL(a.j[d].info.mimeType)||a.j[d].info.dh();if(c===e){e=a.j[d].index;var f=lR(e,b);0<=f&&e.segments.splice(f,1)}}};
yOa=function(a){for(var b in a.j)oL(a.j[b].info.mimeType)||kMa(a.j[b].index,Infinity)};
zOa=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.Wm&&(f&&(e.Gp=Math.max(e.Gp,f)),h&&(e.Rq=Math.max(e.Rq||0,h)))}};
AOa=function(a){a.Na=0;a.Jb=0;a.Bb=0};
CR=function(a){return a.Xa&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
gOa=function(a,b,c){null===DR&&(DR=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(XNa&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return DR||"9"!==c&&"("!==c?DR||"9h"!==c&&"(h"!==c||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!DR&&!BOa||'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.B&&(f="16"),"arib-std-b67"===b.B&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
COa=function(a){this.Fa=a;this.ac=this.Xn=this.Na=this.G=this.D=this.ra=this.La=this.Xa=this.Ba=!1;this.N=this.K=0;this.bb=!1;this.Ea=!0;this.Za=!1;this.lj=0;this.Ga=!1;this.Ub=Infinity;this.pM=!1;this.Ic=!0;this.Va=this.Qa=!1;this.j={};this.B=this.W=!1;this.Rb=this.Fa.L("html5_enable_audio_track_log");this.tb=!1;this.Jb=this.Fa.experiments.jb("html5_enable_vp9_fairplay");this.hd=this.Fa.L("html5_disable_av1_hdr");this.Od=this.Fa.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Oc=
this.Fa.L("html5_account_onesie_format_selection_during_format_filter");this.jd=this.Fa.L("html5_prefer_hbr_vp9_over_av1");this.Qf=0;this.disableAv1=this.rb=this.kb=!1;this.Ob=g.EJ(this.Fa.experiments,"html5_max_byterate");this.Z=this.Fa.L("html5_prefer_high_aac_by_default");this.Bb=this.Fa.L("html5_enable_iamf_audio")};
YLa=function(a){if(a.Xa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ga&&(b.unshift("1"),b.unshift("1h"));a.Xn&&b.unshift("h");a.ma&&(b=(DOa[a.ma]||[a.ma]).concat(b));return b};
TLa=function(a){var b=["o","a","A"];a.Z&&b.unshift("ah");1===a.Qf&&(a.ra&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)));a.Ba&&(b=["so","sa"].concat(b));!a.ac||a.Na||a.C||b.unshift("a");!a.Z&&a.La&&b.unshift("ah");a.C&&(b=(DOa[a.C]||[a.C]).concat(b));a.Bb&&b.unshift("i");return b};
EOa=function(a,b,c,d){b=void 0===b?{}:b;if(void 0===d?0:d)return b.disabled=1,0;if(bQ(a.G,cQ.AV1_CODECS)&&bQ(a.G,cQ.HEIGHT)&&bQ(a.G,cQ.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=GLa();if(e)return b.localPref=e}catch(l){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;xoa()&&(b.isArm=1,a=240);if(c){var f,h;if(d=null==(f=c.videoInfos.find(function(l){return iL(l)}))?void 0:null==(h=f.B)?void 0:h.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;f=Math.min(NP("1",c.fps),NP("1",30));b.perfCap=f;a=Math.min(a,f);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=NP("1",30),b.perfCap30=c,a=Math.min(a,c),c=NP("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
ER=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.Za=this.keySystemAccess=null;this.Xx=this.Yx=-1;this.Jl=null;this.C=!!d&&d.jb("edge_nonprefixed_eme")};
GR=function(a){return a.C?!1:!a.keySystemAccess&&!!FR()&&"com.microsoft.playready"===a.keySystem};
HR=function(a){return"com.microsoft.playready"===a.keySystem};
IR=function(a){return!a.keySystemAccess&&!!FR()&&"com.apple.fps.1_0"===a.keySystem};
JR=function(a){return"com.youtube.fairplay"===a.keySystem};
KR=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem};
g.LR=function(a){return"fairplay"===a.flavor};
FR=function(){var a=window,b=a.MSMediaKeys;uC()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
FOa=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.YK&&!g.sC())return hv("45");if(g.VD||g.We)return a.jb("edge_nonprefixed_eme");if(g.MR)return hv("47");if(g.zD){if(a.jb("html5_enable_safari_fairplay"))return!1;if(a=g.EJ(a,"html5_safari_desktop_eme_min_version"))return hv(a)}return!0};
HOa=function(a,b,c,d){var e=tC(),f=(c=e||c&&uC())?["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.oa(f),g.oa(GOa.playready)):[].concat(g.oa(GOa.playready),g.oa(f))};
NR=function(a,b,c,d,e){d=void 0===d?!1:d;g.H.call(this);this.Fa=b;this.useCobaltWidevine=d;this.va=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)};
KOa=function(a,b){a.callback=b;a.D=[];FOa(a.Fa.experiments)?IOa(a):JOa(a)};
IOa=function(a){if(!a.isDisposed())if(0===a.B.length)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=LOa(a,c);if(OR&&OR.keySystem===b&&OR.Qaa===JSON.stringify(d))a.va("remksa",{re:!0}),MOa(a,c,OR.keySystemAccess);else{var e,f;a.va("remksa",{re:!1,ok:null!=(f=null==(e=OR)?void 0:e.keySystem)?f:""});OR=void 0;(PR.isActive()?PR.vk("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(iP(function(h){MOa(a,c,h,d)}),iP(function(){a.G=!a.G&&
"widevine"===a.C[a.B[0]].flavor;
a.G||a.B.shift();IOa(a)}))}}};
MOa=function(a,b,c,d){if(!a.isDisposed()){d&&(OR={keySystem:b.keySystem,keySystemAccess:c,Qaa:JSON.stringify(d)});b.keySystemAccess=c;if(HR(b)){c=WK();d=g.u(Object.keys(a.j[b.flavor]));for(var e=d.next();!e.done;e=d.next())e=e.value,b.j[e]=!!c.canPlayType(e)}else{c=b.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(d=g.u(c.audioCapabilities),e=d.next();!e.done;e=d.next())NOa(a,b,e.value);if(c.videoCapabilities)for(c=g.u(c.videoCapabilities),d=c.next();!d.done;d=c.next())NOa(a,b,d.value)}a.D.push(b);
a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&KR(b)?(a.B.shift(),IOa(a)):a.callback(a.D)}};
NOa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
LOa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&JR(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];HR(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.u(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.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.YK&&g.qC("windows nt")&&!a.L("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.L("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),"MWEB"===g.QR(a.Fa)&&(zC()||rC())&&(a.va("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
JOa=function(a){if(FR()&&g.zD)a.D.push(new ER("fairplay","com.apple.fps.1_0","",a.Fa.experiments));else{var b=OOa(),c=g.Db(a.B,function(d){var e=a.C[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.D.push(a.C[c]);a.B=[]}a.callback(a.D)};
OOa=function(){var a=FR();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=WK();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
POa=function(a){this.experiments=a;this.Z=g.EJ(this.experiments,"html5_min_progress_event_interval_ms")||50;this.D=0;this.C=this.Z/1E3;this.ma=(this.G=this.experiments.jb("html5_consider_end_stall"))&&RR;this.N=this.experiments.jb("html5_ignore_stall_from_no_data_timeouts");this.K=this.experiments.jb("html5_ignore_stall_from_data_timeouts");this.B=this.experiments.jb("html5_measure_max_progress_handling");this.W=(this.j=this.experiments.jb("html5_record_ump_timing"))&&this.experiments.jb("html5_use_ump_timing")};
QOa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=QB(b||"","&");a={};b=g.u(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.EJ=function(a,b){return Number(a.flags[b])||0};
SR=function(a,b){return(a=a.flags[b])?a.toString():""};
ROa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]};
SOa=function(a){if(a.j)return a.j;if(1>=a.experimentIds.length)return a.j=a.experimentIds,a.j;var b=[].concat(g.oa(a.experimentIds)).map(function(d){return Number(d)});
b.sort();for(var c=b.length-1;0<c;--c)b[c]-=b[c-1];a.j=b.map(function(d){return d.toString()});
a.j.unshift("v1");return a.j};
UOa=function(a){return TOa.then(a)};
VOa=function(a,b,c){this.experiments=a;this.ra=b;this.Ba=void 0===c?!1:c;this.Z=!!g.Sa("cast.receiver.platform.canDisplayType");this.N={};this.W=!1;this.C=new Map;this.K=!0;this.B=this.D=!1;this.ma=this.experiments.jb("html5_disable_vp9_encrypted");this.j=new Map;a=g.Sa("cast.receiver.platform.getValue");this.G=!this.Z&&a&&a("max-video-resolution-vpx")||null};
bMa=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.Me()&&tC()&&a.experiments.jb("html5_appletv_disable_vp9"))return"dwebm";if(iL(b)&&a.W)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(bQ(a,cQ.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.YK?hv(53):g.MR&&hv(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[cQ.WIDTH.name]=b.video.width),b.video.height&&(c[cQ.HEIGHT.name]=b.video.height),b.video.fps&&(c[cQ.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[cQ.EOTF.name]=b.video.B),b.Ob&&(c[cQ.BITRATE.name]=8*b.Ob*f),"("===b.ub&&(c[cQ.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&(c[cQ.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[cQ.CHANNELS.name]=b.audio.numChannels);a.D&&hL(b)&&(c[cQ.EXPERIMENTAL.name]="allowed");f=g.u(Object.keys(cQ));for(var h=f.next();!h.done;h=f.next())if(h=cQ[h.value],c[h.name]&&!(h===cQ.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.jb("html5_ignore_h264_framerate_cap")&&h===cQ.FRAMERATE&&rBa(b)))if(bQ(a,h))if(a.G){if(a.G[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(sBa(b)&&h===cQ.EOTF)return"dvp92";a.Z&&b.video&&1080<b.video.j&&b.ge&&(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.jb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
TR=function(){var a=rC()&&!hv(29),b=g.qC("google tv")&&g.qC("chrome")&&!hv(30);return a||b?!1:ABa()};
WOa=function(a,b,c){var d=480;b=g.u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;1080>=f&&f>d&&!0===bMa(a,e,c)&&(d=f)}return d};
g.XOa=function(a,b){b=void 0===b?!1:b;return TR()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(WK(),"application/x-mpegURL")?!0:!1};
ZOa=function(a){YOa(function(){for(var b=g.u(Object.keys(cQ)),c=b.next();!c.done;c=b.next())bQ(a,cQ[c.value])})};
bQ=function(a,b){b.name in a.N||(a.N[b.name]=$Oa(a,b));return a.N[b.name]};
$Oa=function(a,b){if(a.G)return!!a.G[b.name];if(b===cQ.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===cQ.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.Fn);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.Fn)};
aPa=function(a){a.D||(a.D=!0,a.B=!0)};
bPa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).K5);a.C.set(b,{K5:c+1,UZ:Math.pow(2,c+1)});a.B=!0};
ULa=function(a,b){for(var c=new Map,d=g.u(a.j.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.split("_")[0];b.has(f)||c.set(e,a.j.get(e))}a.j=c};
WLa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h=a.j.get(d);a:{var l=a.j.get(d),m=!!c.audio;if(l){if(m){var n=!1;break a}var p;if(!m&&(null==(n=c.video)?0:n.height)&&l.maxHeight&&l.maxHeight>=(null==(p=c.video)?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,ub:b,Ai:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=null==f?void 0:f.width,b.maxHeight=null==f?void 0:f.height,b.maxFramerate=e,bQ(a,cQ.BITRATE)&&(b.xw=8*c.Ob),b.vX=null==
f?void 0:f.isHdr()),a.j.set(d,b))};
UR=function(){g.cG.call(this);this.items={}};
VR=function(){g.uO.apply(this,arguments)};
WR=function(){g.vO.apply(this,arguments)};
YR=function(a,b){var c=cPa(a,b);wO.call(this,a,c||b);this.j=a;c&&this.j.exports.free(c.byteOffset)};
dPa=function(a,b,c){this.encryptedClientKey=b;this.G=c;this.j=new Uint8Array(a.buffer,0,16);this.C=new Uint8Array(a.buffer,16)};
ePa=function(a){a.B||(a.B=new VR(a.j));return a.B};
ZR=function(a){try{return rg(a)}catch(b){return null}};
fPa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?ZR(b.clientKey):null;var c=b.encryptedClientKey?ZR(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.FD)():null;a&&c&&d&&(this.j=new dPa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=ZR(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
$R=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)};
aS=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.B=0;this.C=!1;this.Vl=!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.G=gPa(this);this.D=c;this.K=d};
gPa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
bS=function(a,b){if(!a.C&&0===a.B)return 0;a.Vl&&(g.Ub(a.G,function(c,d){return a.values[c]-a.values[d]}),a.Vl=!1);
return a.values[a.G[Math.round(b*((a.C?a.j:a.B)-1))]]||0};
hPa=function(a,b,c){g.H.call(this);this.policy=a;this.Ea=b;this.Qd=c;this.K=this.Ba=0;this.G=-1;this.ma=!1;this.W=this.D=(0,g.FD)();this.Z=new aS(4,1,.6,.4);this.B=new aS(a.ma,1,.5,.4);this.j=a.D?new $R(a.j):new aS(a.j,20,.5,.4);this.N=new aS(5,1,.25);this.C=new aS(30,1,.5);a=g.YC("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.ma=!0);this.j.Gk(this.policy.G,b);0<a.delay&&this.Z.Gk(1,Math.min(a.delay,2));0<a.stall&&this.B.Gk(1,a.stall);0<a.init&&(this.W=Math.min(a.init,
this.W));this.G=(0,g.FD)();0<this.policy.K&&(this.ra=new g.Eu(this.Ga,this.policy.K,this),g.J(this,this.ra),this.ra.start())};
cS=function(a,b,c,d){a.j.Gk(void 0===d?b:d,c/b);a.D=(0,g.FD)()};
iPa=function(a){a.policy.Z&&(a.D=(0,g.FD)())};
dS=function(a,b){a.Z.Gk(1,b);jPa(a)};
eS=function(a,b,c,d,e){a.N.Gk(b,c/b);a.D=(0,g.FD)();e||a.C.Gk(1,b-d)};
fS=function(a,b,c){b=Math.max(b,2048);a.B.Gk(1,c/b);jPa(a)};
gS=function(a){a=a.Z.Wi();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
kPa=function(a,b,c){isNaN(c)||(a.K+=c);isNaN(b)||(a.Ba+=b)};
lPa=function(a){a=a.j.Wi();return 0<a?a:1};
hS=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=lPa(a);d=1/((a.B.Wi()||0)*a.policy.W+1/d);var e=a.N.Wi();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+gS(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((bS(a.C,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
mPa=function(a){return{delay:gS(a),stall:a.B.Wi()||0,byterate:lPa(a),init:a.W}};
nPa=function(a){g.XC("yt-player-bandwidth",mPa(a),2592E3);a.G=(0,g.FD)();a.ma=!0};
jPa=function(a){-1<a.G&&3E4<(0,g.FD)()-a.G&&nPa(a)};
iS=function(a){return 4E3<=(0,g.FD)()-a.D};
oPa=function(a){this.experiments=a;this.j=17;this.ma=g.EJ(this.experiments,"html5_stall_window_size_ct")||10;this.W=g.EJ(this.experiments,"html5_stall_factor")||1;this.B=13E4;this.G=.5;this.C=this.D=!1;this.K=g.EJ(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.jb("html5_trigger_loader_when_idle_network");this.Z=this.experiments.jb("html5_sabr_fetch_on_idle_network_preloaded_players")};
qPa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.H.call(this);var c=this;this.values=a;this.Oq=b;this.B={};this.C=this.j=0;this.D=new g.Eu(function(){pPa(c)},1E4);
g.J(this,this.D)};
sPa=function(a,b){rPa(a,b);return a.values[b]&&a.Oq[b]?a.values[b]/Math.pow(2,a.j/a.Oq[b]):0};
rPa=function(a,b){a.values[b]||(b=CLa(),a.values=b.values||{},a.Oq=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})};
pPa=function(a){var b=CLa();if(b.values){b=b.values;for(var c={},d=g.u(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=sPa(a,e);a.B=c}b=a.Oq;c={};c.values=a.B;c.halfLives=b;g.XC("yt-player-memory",c,2592E3)};
FPa=function(a,b,c,d,e){g.H.call(this);this.webPlayerContextConfig=b;this.Lm=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.sj=this.Ie=this.tb=this.pj=this.userDisplayName=this.userDisplayImage=this.Ri="";this.j={};this.controlsType="0";this.Od=NaN;this.Jb=!1;this.Qf=(0,g.FD)();this.Ub=0;this.Fl=this.Mo=!1;this.Om=!0;this.preferGapless=this.Em=this.Of=this.C=this.Km=this.Nf=!1;this.lh=[];a=a?g.ld(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=
b.csiServiceName);b&&b.preferGapless&&(this.preferGapless=b.preferGapless);this.experiments=new QOa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:DC("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)?b.cspNonce:DC("",a.csp_nonce);this.L("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(V){f=""}this.zf=f;this.ancestorOrigins=(d=window.location.ancestorOrigins)?
Array.from(d):[];this.D=AC(!1,b?b.isEmbed:a.is_embed);b&&b.device?(d=b.device,d.androidOsExperience&&(this.j.caoe=""+d.androidOsExperience),d.brand&&(this.j.cbrand=d.brand),d.browser&&(this.j.cbr=d.browser),d.browserVersion&&(this.j.cbrver=d.browserVersion),d.cobaltReleaseVehicle&&(this.j.ccrv=""+d.cobaltReleaseVehicle),this.j.c=d.interfaceName||"WEB",this.j.cver=d.interfaceVersion||"html5",d.interfaceTheme&&(this.j.ctheme=d.interfaceTheme),this.j.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&
(this.j.cmodel=d.model),d.network&&(this.j.cnetwork=d.network),d.os&&(this.j.cos=d.os),d.osVersion&&(this.j.cosver=d.osVersion),d.platform&&(this.j.cplatform=d.platform)):(this.j.c=a.c||"web",this.j.cver=a.cver||"html5",this.j.cplayer="UNIPLAYER");this.loaderUrl=b?this.D||tPa(this)&&b.loaderUrl?b.loaderUrl||"":this.zf:this.D||tPa(this)&&a.loaderUrl?DC("",a.loaderUrl):this.zf;this.D&&g.Ra("yt.embedded_player.embed_url",this.loaderUrl);this.K=eK(this.loaderUrl,uPa);d=this.loaderUrl;var h=void 0===h?
!1:h;this.Wo=dK(eK(d,vPa),d,h,"Trusted Ad Domain URL");this.Oc=AC(!1,a.privembed);this.protocol=0===this.zf.indexOf("http:")?"http":"https";this.Ga=Cza((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Cza(this.zf)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";"adunit"===h?d=this.D?"embedded":"detailpage":"embedded"===h||this.K?d=BC(d,h,wPa):h&&(d="embedded");this.La=d;zsa();h=null;d=b?b.playerStyle:a.ps;f=g.Fb(xPa,d);!d||f&&!this.K||(h=d);this.playerStyle=h;this.ma=(this.N=
g.Fb(xPa,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Vo=!this.ma;this.Va=AC(!1,a.disableplaybackui);this.disablePaidContentOverlay=AC(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=AC(!1,null==b?void 0:b.disableSeek);this.enableSpeedOptions=(null==b?void 0:b.enableSpeedOptions)||(WK().defaultPlaybackRate?jS||g.yC||kS?g.MR&&hv("20")||g.YK&&hv("4")||g.lS&&hv("11")||Boa():!(g.lS&&!g.qC("chrome")||jS||g.qC("android")||g.qC("silk")):!1);this.Qo=AC(!1,
a.enable_faster_speeds);this.B=AC("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.bb=xC()||zC();this.Uo=this.L("mweb_allow_background_playback")?!1:this.B&&!this.N;this.Xa=oBa();this.Fp=g.yPa;var l;this.Gl=!!(null==b?0:null==(l=b.embedsHostFlags)?0:l.optOutApiDeprecation);var m;this.Jm=!!(null==b?0:null==(m=b.embedsHostFlags)?0:m.allowPfpImaIntegration);this.So=this.L("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var n;b?void 0!==b.hideInfo&&(n=
!b.hideInfo):n=a.showinfo;this.Mm=g.mS(this)&&!this.Gl||AC(!nS(this)&&!oS(this)&&!this.N,n);this.Hl=b?!!b.mobileIphoneSupportsInlinePlayback:AC(!1,a.playsinline);l=this.B&&zPa&&null!=pS&&0<pS&&2.3>=pS;m=b?b.useNativeControls:a.use_native_controls;this.Z=g.mS(this)&&this.B;n=this.B&&!this.Z;m=g.qS(this)||!l&&AC(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.wl=this.B;this.color=BC("red",b?b.progressBarColor:a.color,APa);m=this.L("embeds_web_enable_modestbranding_deprecation")?
!1:AC(!1,(null==b?0:b.embedsHostFlags)?b.embedsHostFlags.allowModestbranding:a.modestbranding);this.Zo="3"===this.controlsType||m&&"red"===this.color;this.Ic=!this.D;this.Nm=(m=!this.Ic&&!oS(this)&&!this.ma&&!this.N&&!nS(this))&&!this.Zo&&"1"===this.controlsType;this.ue=g.rS(this)&&m&&"0"===this.controlsType&&!this.Nm;this.lr=this.qp=l;this.jd=("3"===this.controlsType||this.B||AC(!1,a.use_media_volume))&&!this.Z;this.Pm=vC&&!g.Nc(601)?!1:!0;this.To=this.D||!1;this.hd=oS(this)?"":(this.loaderUrl||
a.post_message_origin||"").substring(0,128);this.widgetReferrer=DC("",b?b.widgetReferrer:a.widget_referrer);var p;b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.K||AC(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.vj=this.L("enable_cast_for_web_unplugged")&&g.sS(this)&&l||this.L("enable_cast_on_music_web")&&g.jH(this)&&l||p&&l&&"1"===this.controlsType&&!this.B&&(oS(this)||g.rS(this)||g.tS(this));this.gr=!!window.document.pictureInPictureEnabled||nBa();p=b?!!b.supportsAutoplayOverride:AC(!1,a.autoplayoverride);
this.Hh=!(this.B&&!g.mS(this))&&!g.qC("nintendo wiiu")||p;p=b?!!b.enableMutedAutoplay:AC(!1,a.mutedautoplay);this.No=this.L("embeds_enable_muted_autoplay")&&g.mS(this);this.Qi=p&&!1;p=(oS(this)||nS(this))&&"blazer"===this.playerStyle;this.xj=b?!!b.disableFullscreen:!AC(!0,a.fs);l=g.FC(g.uS(this))&&g.mS(this);this.Rb=!this.xj&&(p||g.JC())&&!l;this.Cm=this.L("uniplayer_block_pip")&&(rC()&&hv(58)&&!zC()||UD);p=g.mS(this)&&!this.Gl;var q;b?void 0!==b.disableRelatedVideos&&(q=!b.disableRelatedVideos):
q=a.rel;this.Bd=p||AC(!this.N,q);this.Ll=AC(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.W=zC()&&0<pS&&4.4>=pS?"_top":"_blank";this.nh=g.tS(this);this.ql=AC("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break;case "books":q="gb";break;case "docs":case "flix":q="gd";break;case "duo":q="gu";break;case "google-live":q="gl";break;case "google-one":q="go";break;case "play":q="gp";break;
case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.Ba=q;this.ra=DC("",b?b.authorizedUserIndex:a.authuser);this.ac=g.mS(this)&&(this.Oc||!roa()||this.bb);var r;b?void 0!==b.disableWatchLater&&(r=!b.disableWatchLater):r=a.showwatchlater;this.Pe=((q=!this.ac)||!!this.ra&&q)&&AC(!this.ma,this.K?r:void 0);this.yf=b?b.isMobileDevice||!!b.disableKeyboardControls:AC(!1,a.disablekb);this.loop=AC(!1,a.loop);this.pageId=DC("",b?b.initialDelegatedSessionId:
a.pageid);this.Kp=AC(!0,a.canplaylive);this.kb=AC(!1,a.livemonitor);this.disableSharing=AC(this.N,b?b.disableSharing:a.ss);(r=b&&this.L("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(q=r.split("x"),2!==q.length?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||isNaN(q)||0>=r*q?null:new g.ne(r,q))):r=null;this.Qm=r;this.mute=b?!!b.startMuted:AC(!1,a.mute);this.storeUserVolume=!this.mute&&AC("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);
r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:BC(void 0,r,vS);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":DC("",a.cc_lang_pref);r=BC(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,vS);"3"===this.controlsType&&2===r&&(r=3);this.Bb=r;this.jj=b?b.hl||"en_US":DC("en_US",a.hl);this.region=b?b.contentRegion||"US":DC("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":DC("en",a.host_language);this.Oo=!this.Oc&&Math.random()<g.EJ(this.experiments,
"web_player_api_logging_fraction");this.Za=!this.Oc;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.Od=CC(this.Od,a.ismb);this.Vo?(r=a.vss_host||"s.youtube.com","s.youtube.com"===r&&(r=BPa(this.Ga)||"www.youtube.com")):r="video.google.com";this.Rm=r;CPa(this,a,!0);this.Na=new UR;g.J(this,this.Na);q=b?b.innertubeApiKey:DC("",a.innertube_api_key);p=b?b.innertubeApiVersion:DC("",a.innertube_api_version);r=b?b.innertubeContextClientVersion:DC("",a.innertube_context_client_version);
q=g.IB("INNERTUBE_API_KEY")||q;p=g.IB("INNERTUBE_API_VERSION")||p;l=g.IB("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");m=g.QR(this);n="number"===typeof this.j.c?Number(this.j.c):Object.keys(yIa).indexOf(this.j.c);this.lk={innertubeApiKey:q,innertubeApiVersion:p,zI:l,GO:m,lX:n,innertubeContextClientVersion:g.IB("INNERTUBE_CONTEXT_CLIENT_VERSION")||r,IO:this.hostLanguage,HO:this.region,mX:g.IB("INNERTUBE_HOST_OVERRIDE")||"",nX:!!g.IB("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),JO:!!g.IB("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1)};this.Jl=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.G=new VOa(this.experiments,this.L("html5_force_hfr_support")?!0:OJ(this)||yoa()||zoa()||DPa(this),g.YK&&g.Nc(56)||g.MR&&g.Nc(54)||this.L("html5_force_vp9_subsample_encryption_support")||DPa(this));r=this.Od;q=new oPa(this.experiments);g.PJ(this)&&(q.D=!0,q.G=.1);r&&(q.B=r/8);q.C=480<=LP();this.schedule=new hPa(q,new POa(this.experiments),e);g.J(this,this.schedule);var t;this.enableSafetyMode=null!=(t=null==b?void 0:b.initialEnableSafetyMode)?
t:AC(!1,a.enable_safety_mode);e=this.Va?!1:oS(this)&&"blazer"!==this.playerStyle;var v;b?null!=b.disableAutonav&&(v=!b.disableAutonav):v=a.allow_autonav;this.He=AC(e,!this.ma&&v);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:AC(!1,a.send_visitor_id_header);var x;"docs"===this.playerStyle&&(b?x=b.disableNativeContextMenu:x=a.disable_native_context_menu);this.disableNativeContextMenu=AC(!1,x);this.Ro=OJ(this)&&this.L("enable_skip_intro_button");this.embedConfig=DC("",b?b.serializedEmbedConfig:
a.embed_config);this.Ea=Hoa(a,g.mS(this));this.C="EMBEDDED_PLAYER_MODE_PFL"===this.Ea;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.yj=AC(!1,a.full_window);var B;this.rb=this.L("web_player_chromeless_killswitch")?!g.sS(this)&&!wS(this)&&!0:!(null==(B=this.webPlayerContextConfig)?0:B.chromeless);var F;this.livingRoomAppMode=BC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(null==b?void 0:null==(F=b.device)?void 0:F.livingRoomAppMode),EPa);var G;v=CC(NaN,null==b?void 0:null==
(G=b.device)?void 0:G.deviceYear);isNaN(v)||(this.deviceYear=v);this.transparentBackground=b?!!b.transparentBackground:AC(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:AC(!1,a.show_miniplayer_button);var I;this.L("embeds_web_enable_set_faux_fullscreen_in_public_api")&&g.mS(this)&&!(null==b?0:null==(I=b.embedsHostFlags)?0:I.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen:AC(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=
b?!!b.showMiniplayerUiWhenMinimized:AC(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.Kl=AC(!1,a.showbackbutton);var L;this.Om=null!=(L=a.show_loop_video_toggle)?L:!0;this.Yo=1E-4>Math.random();this.ll=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new fPa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=null==b?void 0:b.canaryStage;this.Mf=new qPa;g.J(this,
this.Mf);this.Km=AC(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.IB("DATASYNC_ID");this.Xo=g.IB("LOGGED_IN",!1);this.rj=(null==b?void 0:b.allowWoffleManagement)||!1;this.Il=Infinity;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.Of=!0:this.Of=100*Math.random()<g.EJ(this.experiments,"html5_high_res_logging_percent");var P;this.Em=!!(null==b?0:null==(P=b.embedsHostFlags)?0:P.allowRcat);this.Im=!g.sS(this)&&!wS(this)};
g.uS=function(a){var b,c;if(!(null==(b=a.webPlayerContextConfig)?0:null==(c=b.embedsHostFlags)?0:c.enableLiteUx)||a.Oc||a.N||a.C||"EMBEDDED_PLAYER_MODE_PFP"===a.Ea)return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.EJ(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&a<GPa.length?GPa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
CPa=function(a,b,c){c=void 0===c?!1:c;a.Ie=DC(a.Ie,b.video_id);a.tb=DC(a.tb,b.eventid);a.tb&&(TE=a.tb);for(var d=[],e=g.u(Object.keys(HPa)),f=e.next();!f.done;f=e.next()){f=HPa[f.value];var h=b[f];null!=h&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&0<d.length&&a.Yo&&(d.sort(),g.LF(new g.eD("Player client parameters changed after startup",d)));a.userAge=CC(a.userAge,b.user_age);a.Ri=DC(a.Ri,b.user_display_email);a.userDisplayImage=DC(a.userDisplayImage,b.user_display_image);g.gK(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=DC(a.userDisplayName,b.user_display_name);a.pj=DC(a.pj,b.user_gender);a.csiPageType=DC(a.csiPageType,b.csi_page_type);a.csiServiceName=DC(a.csiServiceName,b.csi_service_name);a.ql=AC(a.ql,b.enablecsi);a.pageId=DC(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())};
IPa=function(a,b){return!a.N&&rC()&&hv(55)&&"3"===a.controlsType&&!b};
g.xS=function(a){a=BPa(a.Ga);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
yS=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
zS=function(a){return oS(a)&&!g.sS(a)};
g.qS=function(a){return a.L("html5_local_playsinline")?vC&&!g.Nc(602)&&!("playsInline"in WK()):vC&&!a.Hl||g.qC("nintendo wiiu")?!0:!1};
g.QR=function(a){return a.j.c};
g.PJ=function(a){return/^TVHTML5/.test(g.QR(a))?!0:"TV"===a.j.cplatform};
tPa=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===g.QR(a)};
DPa=function(a){return"CHROMECAST ULTRA/STEAK"===a.j.cmodel||"CHROMECAST/STEAK"===a.j.cmodel};
g.AS=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
OJ=function(a){return/web/i.test(g.QR(a))};
g.BS=function(a){return"WEB"===g.QR(a).toUpperCase()};
wS=function(a){return"WEB_KIDS"===g.QR(a)};
g.sS=function(a){return"WEB_UNPLUGGED"===g.QR(a)};
CS=function(a){return"TVHTML5_UNPLUGGED"===g.QR(a)};
g.NJ=function(a){return g.sS(a)||"TV_UNPLUGGED_CAST"===g.QR(a)||CS(a)};
g.jH=function(a){return"WEB_REMIX"===g.QR(a)};
g.DS=function(a){return"WEB_EMBEDDED_PLAYER"===g.QR(a)};
g.FS=function(a){return(a.deviceIsAudioOnly||!g.YK||UD||"3"===a.controlsType?!1:g.yC?a.D&&g.Nc(51):!0)||(a.deviceIsAudioOnly||!g.MR||UD||"3"===a.controlsType?!1:g.yC?a.D&&g.Nc(48):g.Nc(38))||(a.deviceIsAudioOnly||!g.lS||UD||"3"===a.controlsType?!1:g.yC?a.D&&g.Nc(37):g.Nc(27))||!a.deviceIsAudioOnly&&g.ES&&!Coa()&&g.Nc(11)||!a.deviceIsAudioOnly&&g.zD&&g.Nc("604.4")};
JPa=function(a){if(g.rS(a)&&zPa)return!1;if(g.MR){if(!g.Nc(47)||!g.Nc(52)&&g.Nc(51))return!1}else if(g.zD)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
GS=function(a){return!a.L("html5_disable_media_element_loop_on_tv")||!g.PJ(a)};
LPa=function(a,b){return a.enabledEngageTypes.has(b.toString())||KPa.includes(b)};
oS=function(a){return"detailpage"===a.La};
g.rS=function(a){return"embedded"===a.La};
HS=function(a){return"leanback"===a.La};
nS=function(a){return"adunit"===a.La||"gvn"===a.playerStyle};
g.tS=function(a){return"profilepage"===a.La};
g.mS=function(a){return a.D&&g.rS(a)&&!nS(a)&&!a.N};
MPa=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.LF(new g.eD("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.IS=function(a){var b=g.xS(a);NPa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.JS=function(a,b){b=void 0===b?"":b;if(a.L("enable_tectonic_player_oauth_callback")&&a.Lm){var c=new KL,d,e=a.Lm();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.LF(new g.eD("b189348328_oauth_callback_failed",{error:f}));
c.resolve(b)});
return void 0!==d?lC(d):new jC(c)}return lC(b)};
BPa=function(a){var b=g.Gl(a);return(a=Number(g.Fl(4,a))||null)?b+":"+a:b};
KS=function(a){this.j=a};
LS=function(a,b,c,d){if(c)return kC();c={};var e=WK();b=g.u(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,a.canPlayType(e,f.qh().mimeType)||d){var h=f.j.video.quality;if(!c[h]||c[h].qh().Me())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.u(eL);for(e=d.next();!e.done;e=d.next())e=c[e.value],!e||OPa&&a.length&&/3gpp/.test(e.qh().mimeType)||a.push(e);return a.length?lC(a):kC()};
PPa=function(a,b,c,d,e){this.C=a;this.B=b;this.G=c;this.cpn=d;this.K=e;this.D=0;this.j=""};
QPa=function(a,b){a.C.some(function(c){var d;return(null==(d=c.Lc)?void 0:d.getId())===b});
a.j=b};
RPa=function(a,b,c){a.cpn&&(b=g.Ml(b,{cpn:a.cpn}));c&&(b=g.Ml(b,{Zjb:c}));return b};
SPa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
TPa=function(a){for(var b=[],c=[],d=g.u(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?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.B=b.concat(c)};
UPa=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.B=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.KB=a.KB;this.ge=a.ge||"";this.Lc=a.Lc;this.audioChannels=a.audioChannels;this.j=""};
VPa=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.u(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.tR(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new UPa({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,KB:n?l[n]:void 0,ge:f.drm_families,Lc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
MS=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null};
WPa=function(a,b){if(!(UD||uC()||tC()))return null;a=VPa(b,a.L("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.u(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.u(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Lc&&(f=h.Lc.getId(),c[f]||(h=new g.OP(f,h.Lc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
aQa=function(a,b,c,d,e,f,h){if(!(UD||uC()||tC()))return kC();var l={},m=XPa(c),n=VPa(c,a.L("html5_filter_fmp4_in_hls"),a.G.K,l);if(!n)return h({noplst:1}),kC();YPa(n);c={};var p=(c.fairplay="https://web.archive.org/web/20240102114909/https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],v=null,x="";d=d&&d.match(/hls_timedtext_playlist/)?new UPa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Lc:new g.tR("English","en",!1)}):null;for(var B=g.u(Object.keys(n)),F=B.next();!F.done;F=B.next())if(F=F.value,!a.L("html5_disable_drm_hfr_1080")||
"383"!==F&&"373"!==F){F=g.u(n[F]);for(var G=F.next();!G.done;G=F.next())if(G=G.value,G.width){for(var I=g.u(G.B),L=I.next();!L.done;L=I.next())if(L=L.value,n[L]){G.j=L;break}G.j||(G.j=ZPa(n,G));if(I=n[G.j])if(c.push(G),"fairplay"===G.ge&&(q=p),L="","PQ"===G.KB?L="smpte2084":"HLG"===G.KB&&(L="arib-std-b67"),L&&(x=L),t.push($Pa(I,[G],d,f,G.itag,G.width,G.height,G.fps,m,void 0,void 0,q,L)),!v||G.width*G.height*G.fps>v.width*v.height*v.fps)v=G}else r.push(G)}else l[F]="disdrmhfr";t.reduce(function(P,
V){return V.qh().isEncrypted()&&P},!0)&&(q=p);
e=Math.max(e,0);p=v||{};n=void 0===p.fps?0:p.fps;v=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;B=a.L("html5_native_audio_track_switching");t.push($Pa(r,c,d,f,"93",v,p,n,m,"auto",e,q,x,B));Object.entries(l).length&&h(l);return LS(a.G,t,IPa(a,b),!1)};
$Pa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var v=0,x="",B=g.u(a),F=B.next();!F.done;F=B.next())F=F.value,x||(x=F.itag),F.audioChannels&&F.audioChannels>v&&(v=F.audioChannels,x=F.itag);e=new gL(e,"application/x-mpegURL",{audio:new bL(0,v),video:new dL(f,h,l,null,void 0,n,void 0,r),ge:q,kY:x});a=new PPa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new MS(e,a,m)};
XPa=function(a){a=g.u(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};
ZPa=function(a,b){for(var c=g.u(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.ge===b.ge&&!e.audioChannels)return d}return""};
YPa=function(a){for(var b=new Set,c=g.u(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.u(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.u(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
NS=function(a,b){this.j=a;this.B=b};
bQa=function(a,b,c,d){var e=[];c=g.u(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.dQ(h.url,!0);if(h.s){var l=f,m=h.sp,n=tLa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.u(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=pL(h.type,h.quality,h.itag,h.width,h.height);e.push(new NS(h,f))}}return LS(a.G,e,IPa(a,b),!1)};
OS=function(a,b){this.j=a;this.B=b};
cQa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=pL(e.type,"medium","0");d.push(new OS(f,e.url))}return LS(a.G,d,IPa(a,b),!1)};
dQa=function(a,b){var c=[],d=pL(b.type,"auto",b.itag);c.push(new OS(d,b.url));return LS(a.G,c,!1,!0)};
fQa=function(a){return a&&eQa[a]?eQa[a]:null};
gQa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.Go=ZR(a.ustreamerConfig)||void 0)};
hQa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.iZ=new gQa(b)};
g.PS=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=void 0===a.name?null:a.name;this.displayName=a.displayName||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||"";this.captionId=a.captionId||""};
g.RS=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.QS(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.captionId&&(b.captionId=a.captionId);a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
g.SS=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.iQa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.SS(a));return b};
g.QS=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);"asr"===a.kind&&-1===c.indexOf("(")&&b.push(" (Automaattiset tekstitykset)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")};
mQa=function(a,b,c,d){a||(a=b&&jQa.hasOwnProperty(b)&&kQa.hasOwnProperty(b)?kQa[b]+"_"+jQa[b]:void 0);b=a;if(!b)return null;a=b.match(lQa);if(!a||5!==a.length)return null;if(a=b.match(lQa)){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};
TS=function(a,b){for(var c={},d=g.u(Object.keys(nQa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.gK(f)&&(c[nQa[e]]=f)}return c};
US=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.u(Object.keys(oQa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=oQa[e];for(var f=g.u(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=pQa(h.url);g.gK(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=pQa(a.url),g.gK(a)&&(b["maxresdefault.jpg"]=a));return b};
pQa=function(a){return a.startsWith("//")?"https:"+a:a};
VS=function(a){return a&&a.baseUrl||""};
WS=function(a){a=g.TB(a);for(var b=g.u(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};
qQa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Jk=b)};
tQa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.R(h,rQa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.R(h,sQa))return Object.assign({is_yto_interstitial:!0},SB(h))});
d=g.u(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,Eo:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Eo: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,
Eo:0===f?5:7})}}};
uQa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
vQa=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)};
wQa=function(a,b){null!=b?(a.vp=b,a.Gf=!0):(a.vp="",a.Gf=!1)};
XS=function(a,b){this.type=a||"";this.id=b||""};
g.xQa=function(a){return new XS(a.substr(0,2),a.substr(2))};
g.YS=function(a,b){this.Fa=a;this.author="";this.dD=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=QB(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=TS(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new XS("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.xQa(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.ZS=function(a,b){this.Fa=a;this.us=this.author="";this.dD=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.lw=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.us=b.us||"";if(a=b.endscreen_autoplay_session_data)this.dD=QB(a,"&");this.eD=b.eD;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.lw=b.lw||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=QB(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=TS(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
yQa=function(a){var b,c,d=null==(b=a.getWatchNextResponse())?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.getWatchNextResponse())?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.BQa=function(a){var b,c,d;a=g.R(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,zQa);return g.R(null==a?void 0:a.playerBar,AQa)};
CQa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url};
DQa=function(){if(void 0===$S){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.xv(g.fD()+"::yt-player"))){$S=new lH(a);break a}$S=void 0}}return $S};
g.aT=function(){var a=DQa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.EQa=function(a){var b=DQa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.bT=function(a){return g.aT()[a]||0};
g.cT=function(a,b){var c=g.aT();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.EQa(c))};
g.dT=function(a){return g.Ha(function(b){return b.return(g.SD(FQa(),a))})};
KQa=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.Ha(function(v){switch(v.j){case 1:return m=g.bT(a),4===m?v.return(4):g.z(v,g.XD(),2);case 2:n=v.B;if(!n)throw g.AD("wiac");if(!l||void 0===h){v.Ka(3);break}return g.z(v,GQa(l,h),4);case 4:h=v.B;case 3:return p=c.lastModified||"0",g.z(v,g.dT(n),5);case 5:return q=v.B,g.ya(v,6),eT++,g.z(v,g.ID(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Tb:!0},function(x){if(void 0!==f&&void 0!==h){var B=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");B=g.JD(x.objectStore("media"),h,B)}else B=g.CD.resolve(void 0);var F=HQa(a,b.dh()),G=HQa(a,!b.dh()),I={fmts:IQa(d),format:c||{}};F=g.JD(x.objectStore("index"),I,F);var L=-1===d.downloadedEndTime;I=L?x.objectStore("index").get(G):g.CD.resolve(void 0);var P={fmts:"music",format:{}};x=L&&e&&!b.dh()?g.JD(x.objectStore("index"),P,G):g.CD.resolve(void 0);return g.CD.all([x,I,B,F]).then(function(V){V=g.u(V);V.next();V=V.next().value;eT--;var ka=g.bT(a);if(4!==ka&&L&&e||void 0!==V&&g.JQa(V.fmts))ka=
1,g.cT(a,ka);return ka})}),8);
case 8:return v.return(v.B);case 6:r=g.Aa(v);eT--;t=g.bT(a);if(4===t)return v.return(t);g.cT(a,4);throw r;}})};
g.LQa=function(a){var b,c;return g.Ha(function(d){if(1==d.j)return g.z(d,g.XD(),2);if(3!=d.j){b=d.B;if(!b)throw g.AD("ri");return g.z(d,g.dT(b),3)}c=d.B;return d.return(g.ID(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return g.bqa(e.objectStore("index"),f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
OQa=function(a,b,c,d,e){var f,h,l;return g.Ha(function(m){if(1==m.j)return g.z(m,g.XD(),2);if(3!=m.j){f=m.B;if(!f)throw g.AD("rc");return g.z(m,g.dT(f),3)}h=m.B;l=g.ID(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",Tb:MQa},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 NQa(e,n)}).catch(function(n){throw new g.eD("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.JQa=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
HQa=function(a,b){return""+a+"|"+(b?"v":"a")};
IQa=function(a){var b={};return RB((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
QQa=function(a){var b={},c={};a=g.u(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.PQa)?(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.u(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};
fT=function(a){g.cG.call(this);this.j=null;this.C=new zla;this.j=null;this.K=new Set;this.crossOrigin=a||""};
RQa=function(a,b,c){for(c=gT(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(hT(d,b))&&(d=g.iT(d,b)))return d;c--}return g.iT(a.levels[0],b)};
TQa=function(a,b,c){c=gT(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=hT(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.rh(f,{KX:f,jY:e}))}SQa(a)};
SQa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=UQa(a,b)}};
UQa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.KX].df(b.jY);c.onload=function(){var d=b.KX,e=b.jY;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);SQa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.RH()-1);e=[e,d];a.oa("l",e[0],e[1])};
return c};
g.jT=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=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.C=a[6];this.signature=a[7];this.videoLength=d};
hT=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.iT=function(a,b){b>=a.JL()&&a.Ux();var c=hT(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Ux()+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.df(c),column:b,columns:h,row:e,rows:d,sE:a.width*h,zw:a.height*d}};
kT=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;fT.call(this,c);this.isLive=d;this.N=!!e;this.levels=this.B(a,b);this.D=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
VQa=function(a,b,c){return(a=a.levels[b])?a.EG(c):-1};
gT=function(a,b){var c=a.D.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.D.set(b,d),d;a.D.set(b,c-1);return c-1};
WQa=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.jT.call(this,a,b,c,0);this.B=null;this.G=d?2:0};
lT=function(a,b,c,d){kT.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].BT(c)};
XQa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Ml(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.nT=function(a,b){g.cG.call(this);this.Fa=a;this.adModule=!1;this.adaptiveFormats="";this.gU=this.yx=this.adQueryId=this.xx=null;this.nG={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.ge=null;this.gL=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.gr=void 0;this.Qm=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Xa="";this.OB=this.zx=!1;this.I_=null;this.nh=this.yj=this.Zo=this.DC=
!1;this.D=null;this.nU=this.ql=!1;this.Mf=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.iV=NaN;this.loudnessTargetLkfs=Infinity;this.Km=!1;this.lL=this.cycToken=null;this.author="";this.iF=0;this.Om=!1;this.eF=null;this.pL=[];this.ev=this.VB=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Oc=this.ue="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.Rb=0;this.Jl=this.Za=this.B=null;
this.rC="";this.loading=!1;this.Od=this.Mm=0;this.hU=this.pipable=this.Zp=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.kb=this.isPrivate=this.isListed=this.xC=this.Rf=this.mutedAutoplay=this.fl=!1;this.bM="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.AC=this.rb=this.Xd=!1;this.latencyClass="UNKNOWN";this.BV=this.HZ=this.wC=this.kU=this.XB=this.enablePreroll=this.enableServerStitchedDai=this.Ff=this.isMdxPlayback=
this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.ac=0;this.reloadReason="";this.CC=this.n_=this.Hh=!1;this.keywords={};this.tb="";this.Po=0;this.zy=!1;this.liveChunkReadahead=NaN;this.Im=null;this.Ow=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.zW=this.paygated=!1;this.pm=[];this.Nm=!1;this.Ea=[];this.jh=null;this.lU=this.racyCheckOk=!1;this.uS={};this.isProximaLatencyEligible=!1;this.yF=0;this.C=null;this.autonavState=
1;this.SU=null;this.shortDescription="";this.Va=this.tU=!1;this.vj=this.Ub=this.startSeconds=0;this.Ay=this.xU=this.Jy=mT;this.Ax=this.suggestions=null;this.Tw=this.sx=void 0;this.isExternallyHostedPodcast=!1;this.Il=null;this.kL=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Ex=void 0;this.He=[];this.lk=[];this.hlsFormats=this.Of="";this.gy=this.wy=this.ll=this.jd=this.bb=this.So=this.ey=null;this.Hm="vvt";this.Qi=!1;this.TL=null;this.AU="";this.Fp=NaN;this.Kp=this.jA=
this.Yo=this.Uz=this.Tz=this.Kl=this.Xo=this.NA=this.qp=this.tA="";this.Ll=null;this.iU=!1;this.N={};this.clipStart=0;this.clipEnd=Infinity;this.bX=!1;this.heartbeatToken="";this.zX=this.yX=NaN;this.pj=this.Oo=this.Ri=this.qY=this.LX=!1;this.Fl=!0;this.Z={};this.captionTracks=[];this.RB=[];this.zU=0;this.TB=[];this.Iu=[];this.Hu=!1;this.BU={};this.wl=new g.OP("und",new g.tR("Default","und",!0));this.EC=0;this.K=null;this.Qo=[];this.qC=!1;this.iz=this.Bd="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=
this.Qa=this.DN=this.tC=this.playerResponse=this.DU=this.oy=this.Rm=this.ji=this.pC=this.oG=this.mG=null;this.Gx=!1;this.ma=null;this.isInlinePlaybackNoAd=this.Cm=this.WB=this.useCobaltWidevine=this.oU=this.Pz=!1;this.nC=!0;this.zf=this.jj=NaN;this.defraggedFromSubfragments=this.RD=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=new Map;this.vy="";this.WU=!1;this.gatewayExperimentGroup="";this.aG=this.RL=this.xj=!1;this.interstitials=[];this.Gf=this.zC=!1;this.vp=
"";this.allowPfpUnbranded=this.allowImaMonetization=!1;this.D0="";this.hL=!1;this.lh="";this.YO=[];this.pd="";this.oL=this.W=this.hY=!1;this.Qf=0;this.f7=!1;this.Wo="";this.oP=this.aP=this.vC=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Uo=!1;this.Hl=this.Pe=!0;this.errorDetail=this.userGenderAge="";this.mL=this.nL=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=
this.subscribeCommand=this.contextParams=this.dn=this.errorReason=this.errorCode=null;this.Dx=this.Cx="";this.Pm=!1;this.lr=[];this.Bb=this.Na=this.Jb=this.Th=this.We=0;this.fetchType=null;this.wS=!0;this.transitionEndpointAtEndOfStream=void 0;this.QB=this.sU=-1;this.Gl=this.Nf=!1;this.Ie=null;this.La="";this.Mo=!1;this.watchUrl=null;this.jy=[];this.visibleOnLoadKeys=[];this.eU=[];this.inlineMetricEnabled=this.Jm=!1;this.embedsRctn=this.embedsRct="";this.uC=NaN;this.tS=(0,g.FD)();this.Bz=this.Vo=
0;this.Go=null;this.Lm=0;this.cU=!1;this.Nf=this.L("web_new_autonav_countdown");this.Gl=this.L("web_new_big_thumbnail_endscreen");YQa(this,b);this.Fx=new KLa;g.J(this,this.Fx)};
g.qT=function(a,b,c){b&&b.cpn&&g.LF(new g.eD("CPN provided in VideoData update",{Vjb:b.cpn,Ug:a.clientPlaybackNonce,d7:c}));c?(EC(b),YQa(a,b),oT(a)&&pT(a)):(b=b||{},ZQa(a,b),$Qa(a,b),aRa(a,b),a.oa("dataupdated"))};
aRa=function(a,b){a.fflags=DC(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Xa=hK(c));a.zx=AC(a.zx,b.iv_ads_only);a.OB=AC(a.OB,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.D4=c;a.isPharma=AC(a.isPharma,b.is_pharma);a.author=DC(a.author,b.author);a.ue=bRa(b.ttsurl)||a.ue;a.Om=AC(a.Om,b.cc_asr);a.Oc=DC(a.Oc,b.channel_path);if(c=b.profile_picture)a.profilePicture=DC(a.profilePicture,c);a.videoCountText=DC(a.videoCountText,b.video_count_text);a.autonavState=BC(a.autonavState,b.autonav_state,
cRa);a.clientPlaybackNonce=DC(a.clientPlaybackNonce,b.cpn);a.L("html5_enable_ssap_entity_id")&&a.playerResponse&&dRa(a,a.playerResponse,!!b.cotn||!!a.playerResponse.cotn);a.subscribed=AC(a.subscribed,b.subscribed);a.rawViewCount=CC(a.rawViewCount,b.view_count);a.shortViewCount=DC(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=DC(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=DC(a.lengthText||"",b.lengthText);a.lw=DC(a.lw||"",b.lw);a.us=DC(a.us||"",b.us);a.title=DC(a.title,
b.title);a.subtitle=DC(a.subtitle,b.subtitle);a.expandedTitle=DC(a.expandedTitle,b.expanded_title);a.expandedSubtitle=DC(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=DC(a.ariaLabel,b.aria_label);a.ypcPreview=DC(a.ypcPreview,b.ypc_preview);a.UL=DC(a.UL,b.ypc_origin);a.Qi=AC(a.Qi,b.ypc_is_premiere_trailer);a.Wo=DC(a.Wo,b.ypc_clickwrap_message);a.paygated=AC(a.paygated,b.paygated);a.iU=AC(a.iU,b.requires_purchase);a.showShareButton=!AC(!a.showShareButton,b.ss);a.Pe=AC(a.Pe,b.showwatchlater);a.Hl=
AC(a.Hl,b.shownotifybutton);a.Uo=AC(a.Uo,b.copy_share);if(c=b.el)a.eventLabel=c;if(c=b.keywords)a.keywords=eRa(c.split(","));if(c=b.rvs)a.suggestions=Mna(c).map(function(d){return d.playlist||d.list||d.api?new g.YS(a.Fa,d):new g.ZS(a.Fa,d)});
a.contentCheckOk=AC(a.contentCheckOk,b.cco);a.racyCheckOk=AC(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=AC(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=DC(a.oauthToken,b.oauth_token);a.tb=DC(a.tb,b.kpt);a.visitorData=DC(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=QB(c,"&");a.Ix=DC(a.Ix,b.endscreen_ad_tracking_data);a.yU=AC(a.yU,b.wait_for_vast_info_cards_xml);a.jL=AC(a.jL,b.suppress_creator_endscreen);a.XZ=AC(a.XZ,b.is_trueview_action);a.wU=DC(a.wU,b.tracking_list);
a.Cx=DC(a.Cx,b.clip);a.Dx=DC(a.Dx,b.clipt);fRa(a,b)};
YQa=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.dn=f);a.L("html5_enable_ssap_entity_id")||a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.VE(16));a.kb=AC(a.Fa.kb,b.livemonitor);ZQa(a,b);var h=b.raw_player_response;if(h)a.DN=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}a.L("html5_enable_ssap_entity_id")&&(h&&dRa(a,
h,!!b.cotn||!!h.cotn),a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.VE(16)));h&&(a.playerResponse=h);if(a.playerResponse){var m=a.playerResponse.annotations;if(m)for(var n=g.u(m),p=n.next();!p.done;p=n.next()){var q=p.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(a.zx=!0);q.allowInPlaceSwitch&&(a.OB=!0);var r=q.loadPolicy;r&&(a.annotationsLoadPolicy=gRa[r]);var t=q.invideoUrl;t&&(a.Xa=hK(t));a.DC=!0;break}}var v=a.playerResponse.attestation;v&&qQa(a,v);var x=a.playerResponse.cotn;
x&&(a.cotn=x);var B=a.playerResponse.heartbeatParams;if(B){hRa(a)&&(a.bX=!0);var F=B.heartbeatToken;F&&(a.drmSessionId=B.drmSessionId||"",a.heartbeatToken=F,a.yX=Number(B.intervalMilliseconds),a.zX=Number(B.maxRetries),a.LX=!!B.softFailOnError,a.qY=!!B.useInnertubeHeartbeatsForDrm,a.Zo=!0);a.heartbeatServerData=B.heartbeatServerData;var G;a.Km=!(null==(G=B.heartbeatAttestationConfig)||!G.requiresAttestation)}var I=a.playerResponse.messages;I&&uQa(a,I);var L=a.playerResponse.overlay;if(L){var P=L.playerControlsOverlayRenderer;
if(P)if(wQa(a,P.controlBgHtml),P.mutedAutoplay){var V=g.R(P.mutedAutoplay,iRa);if(V&&V.endScreen){var ka=g.R(V.endScreen,jRa);ka&&ka.text&&(a.D0=g.nG(ka.text))}}else a.mutedAutoplay=!1}var sa=a.playerResponse.playabilityStatus;if(sa){var ta=sa.backgroundability;ta&&ta.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var la,qa;if(null==(la=sa.offlineability)?0:null==(qa=la.offlineabilityRenderer)?0:qa.offlineable)a.offlineable=!0;var ba=sa.contextParams;ba&&(a.contextParams=ba);var T=
sa.pictureInPicture;T&&T.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);sa.playableInEmbed&&(a.allowEmbed=!0);var Ma=sa.ypcClickwrap;if(Ma){var y=Ma.playerLegacyDesktopYpcClickwrapRenderer,Z=Ma.ypcRentalActivationRenderer;if(y)a.Wo=y.durationMessage||"",a.nh=!0;else if(Z){var Ua=Z.durationMessage;a.Wo=Ua?g.nG(Ua):"";a.nh=!0}}var Za=sa.errorScreen;if(Za){if(Za.playerLegacyDesktopYpcTrailerRenderer){var bb=Za.playerLegacyDesktopYpcTrailerRenderer;a.Kp=bb.trailerVideoId||"";var Xa=Za.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;
var Va=Xa&&Xa.ypcTrailerRenderer}else if(Za.playerLegacyDesktopYpcOfferRenderer)bb=Za.playerLegacyDesktopYpcOfferRenderer;else if(Za.ypcTrailerRenderer){Va=Za.ypcTrailerRenderer;var lb=Va.fullVideoMessage;a.Xo=lb?g.nG(lb):"";var Ab,ob;a.Kp=(null==(Ab=g.R(Va,kRa))?void 0:null==(ob=Ab.videoDetails)?void 0:ob.videoId)||""}bb&&(a.Yo=bb.itemTitle||"",bb.itemUrl&&(a.jA=bb.itemUrl),bb.itemBuyUrl&&(a.Tz=bb.itemBuyUrl),a.Uz=bb.itemThumbnail||"",a.NA=bb.offerHeadline||"",a.qp=bb.offerDescription||"",a.Kl=bb.offerId||
"",a.tA=bb.offerButtonText||"",a.TL=bb.offerButtonFormattedText||null,a.Fp=bb.overlayDurationMsec||NaN,a.Xo=bb.fullVideoMessage||"",a.yj=!0);if(Va){var A=g.R(Va,kRa);if(A)a.Ll={raw_player_response:A};else{var D=g.R(Va,lRa);a.Ll=D?SB(D):null}a.yj=!0}}}var E=a.playerResponse.playbackTracking;if(E){var C=b,K=VS(E.googleRemarketingUrl);K&&(a.googleRemarketingUrl=K);var X=VS(E.youtubeRemarketingUrl);X&&(a.youtubeRemarketingUrl=X);var ma=VS(E.ptrackingUrl);if(ma){var fa=WS(ma),S=fa.oid;S&&(a.H0=S);var na=
fa.pltype;na&&(a.J0=na);var Ea=fa.ptchn;Ea&&(a.G0=Ea);var Ca=fa.ptk;Ca&&(a.ly=encodeURIComponent(Ca));var cb=fa.m;cb&&(a.Hx=cb)}var kb=VS(E.ppvRemarketingUrl);kb&&(a.ppvRemarketingUrl=kb);var Bb=VS(E.qoeUrl);if(Bb){for(var Ob=g.TB(Bb),tb=g.u(Object.keys(Ob)),qb=tb.next();!qb.done;qb=tb.next()){var tc=qb.value,Uc=Ob[tc];Ob[tc]=Array.isArray(Uc)?Uc.join(","):Uc}a.vU=Ob;var gc=Ob.cat;gc&&(a.lh=gc);var Vc=Ob.live;Vc&&(a.bM=Vc);var md=Ob.drm_product;md&&(a.Qm=md)}var Lc=VS(E.remarketingUrl);if(Lc){a.remarketingUrl=
Lc;var nd=WS(Lc);nd.foc_id&&(a.N.focEnabled=!0);var od=nd.data;od&&(a.N.rmktEnabled=!0,od.engaged&&(a.N.engaged="1"));a.N.baseUrl=bfa(Lc)+Dl(g.Fl(5,Lc))}var Yb=VS(E.videostatsPlaybackUrl);if(Yb){var lc=WS(Yb);a.Ic=lc;var Kd=lc.adformat;if(Kd){C.adformat=Kd;var $c=a.U(),ec=mQa(Kd,a.iz,$c.D,$c.K);ec&&(a.adFormat=ec)}var ad=lc.aqi;ad&&(C.ad_query_id=ad);var Qb=lc.autoplay;Qb&&(a.fl="1"==Qb,a.Zp="1"==Qb);var Ad=lc.autonav;Ad&&(a.isAutonav="1"==Ad);var Wd=lc.delay;Wd&&(a.Rb=we(Wd));var Sb=lc.ei;Sb&&(a.eventId=
Sb);"adunit"===lc.el&&(a.fl=!0);var af=lc.feature;af&&(a.Ro=af);var ze=lc.list;ze&&(a.playlistId=ze);var Oe=lc.of;Oe&&(a.jP=Oe);var uf=lc.osid;uf&&(a.osid=uf);var bf=lc.referrer;bf&&(a.referrer=bf);var jh=lc.sdetail;jh&&(a.sy=jh);var Ig=lc.sourceid;Ig&&(a.Wkb=Ig);var kh=lc.ssrt;kh&&(a.To="1"==kh);var Jg=lc.subscribed;Jg&&(a.subscribed="1"==Jg,a.N.subscribed=Jg);var lh=lc.uga;lh&&(a.userGenderAge=lh);var Ae=lc.upt;Ae&&(a.yy=Ae);var cf=lc.vm;cf&&(a.videoMetadata=cf)}var bd=VS(E.videostatsWatchtimeUrl);
if(bd){var fe=WS(bd).ald;fe&&(a.tx=fe)}if(E.promotedPlaybackTracking){var vc=E.promotedPlaybackTracking;vc.startUrls&&(a.py=vc.startUrls);vc.firstQuartileUrls&&(a.bS=vc.firstQuartileUrls);vc.secondQuartileUrls&&(a.qS=vc.secondQuartileUrls);vc.thirdQuartileUrls&&(a.rS=vc.thirdQuartileUrls);vc.completeUrls&&(a.OQ=vc.completeUrls);vc.engagedViewUrls&&(1<vc.engagedViewUrls.length&&g.LF(new g.eD("There are more than one engaged_view_urls.")),a.rj=vc.engagedViewUrls[0])}}var Kg=a.playerResponse.playerCueRanges;
Kg&&0<Kg.length&&(a.cueRanges=Kg);var mh=a.playerResponse.playerCueRangeSet;mh&&g.mRa(a,mh);a:{var nh=a.playerResponse.adPlacements;if(nh)for(var oh=g.u(nh),Be=oh.next();!Be.done;Be=oh.next()){var wc=void 0,Lf=void 0,Yh=null==(wc=Be.value.adPlacementRenderer)?void 0:null==(Lf=wc.renderer)?void 0:Lf.videoAdTrackingRenderer;if(Yh){var Zh=Yh;break a}}Zh=null}var Ii=Zh;E&&E.promotedPlaybackTracking&&Ii&&g.LF(new g.eD("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));Ii&&
(a.zW=!0);var df=a.playerResponse.playerAds;if(df)for(var hg=b,Pe=g.u(df),ig=Pe.next();!ig.done;ig=Pe.next()){var vf=ig.value;if(vf){var Dc=vf.playerLegacyDesktopWatchAdsRenderer;if(Dc){var rc=Dc.playerAdParams;if(rc){"1"==rc.autoplay&&(a.fl=!0,a.Zp=!0);a.yx=rc.encodedAdSafetyReason||null;void 0!==rc.showContentThumbnail&&(a.Fl=!!rc.showContentThumbnail);hg.enabled_engage_types=rc.enabledEngageTypes;break}}}}var Zb=a.playerResponse.playerConfig;if(Zb){var Lg=Zb.manifestlessWindowedLiveConfig;if(Lg){var ef=
Number(Lg.minDvrSequence),Mf=Number(Lg.maxDvrSequence),Nf=Number(Lg.minDvrMediaTimeMs),Ji=Number(Lg.maxDvrMediaTimeMs),qj=Number(Lg.startWalltimeMs);ef&&(a.We=ef);Nf&&(a.Na=Nf/1E3);Mf&&(a.Th=Mf);Ji&&(a.Jb=Ji/1E3);qj&&(a.Bb=qj/1E3);(ef||Nf)&&(Mf||Ji)&&(a.rb=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.Xd=!1)}var jg=Zb.daiConfig;if(jg){if(jg.enableDai){a.Ff=!0;var ph=jg.enableServerStitchedDai;ph&&(a.enableServerStitchedDai=ph);var $h=jg.enablePreroll;$h&&(a.enablePreroll=$h)}var ai;if("DAI_TYPE_SS_DISABLED"===
jg.daiType||(null==(ai=jg.debugInfo)?0:ai.isDisabledUnpluggedChannel))a.wC=!0}var kg=Zb.audioConfig;if(kg){var ff=kg.loudnessDb;null!=ff&&(a.Mf=ff);var Mg=kg.trackAbsoluteLoudnessLkfs;null!=Mg&&(a.iV=Mg);var Of=kg.loudnessTargetLkfs;null!=Of&&(a.loudnessTargetLkfs=Of);kg.audioMuted&&(a.ql=!0);kg.muteOnStart&&(a.nU=!0);var Ki=kg.loudnessNormalizationConfig;Ki&&(Ki.applyStatefulNormalization&&(a.applyStatefulNormalization=!0),Ki.preserveStatefulLoudnessTarget&&(a.preserveStatefulLoudnessTarget=!0))}var lg=
Zb.playbackEndConfig;if(lg){var Ng=lg.endSeconds,qh=lg.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(Ng&&(a.endSeconds=Ng),a.U().L("embeds_enable_muted_autoplay")&&qh&&(a.limitedPlaybackDurationInSeconds=qh))}var Og=Zb.fairPlayConfig;if(Og){var Ce=Og.certificate;Ce&&(a.Za=ZR(Ce));var De=Number(Og.keyRotationPeriodMs);0<De&&(a.Yx=De);var Qe=Number(Og.keyPrefetchMarginMs);0<Qe&&(a.Xx=Qe)}var qe=Zb.playbackStartConfig;if(qe){a.oP=Number(qe.startSeconds);var bk=qe.liveUtcStartSeconds,Re=!!a.liveUtcStartSeconds&&
0<a.liveUtcStartSeconds;bk&&!Re&&(a.liveUtcStartSeconds=Number(bk));var wf=qe.startPosition;if(wf){var Xd=wf.utcTimeMillis;Xd&&!Re&&(a.liveUtcStartSeconds=.001*Number(Xd));var rh=wf.streamTimeMillis;rh&&(a.vj=.001*Number(rh))}a.progressBarStartPosition=qe.progressBarStartPosition;a.progressBarEndPosition=qe.progressBarEndPosition}else{var Pg=Zb.skippableSegmentsConfig;if(Pg){var Pf=Pg.introSkipDurationMs;Pf&&(a.vC=Number(Pf)/1E3);var Qg=Pg.outroSkipDurationMs;Qg&&(a.aP=Number(Qg)/1E3)}}var mg=Zb.skippableIntroConfig;
if(mg){var bi=Number(mg.startMs),Li=Number(mg.endMs);isNaN(bi)||isNaN(Li)||(a.jj=bi,a.zf=Li)}var Mi=Zb.streamSelectionConfig;Mi&&(a.Od=Number(Mi.maxBitrate));var Pl=Zb.vrConfig;Pl&&(a.Pz="1"==Pl.partialSpherical);var rj=Zb.webDrmConfig;if(rj){rj.skipWidevine&&(a.oU=!0);var ck=rj.widevineServiceCert;ck&&(a.Jl=ZR(ck));rj.useCobaltWidevine&&(a.useCobaltWidevine=!0);rj.startWithNoQualityConstraint&&(a.Cm=!0)}var ng=Zb.mediaCommonConfig;if(ng){var ge=ng.dynamicReadaheadConfig;if(ge){a.maxReadAheadMediaTimeMs=
ge.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=ge.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=ge.readAheadGrowthRateMs||NaN;var re,Se=null==ng?void 0:null==(re=ng.mediaUstreamerRequestConfig)?void 0:re.videoPlaybackUstreamerConfig;Se&&(a.jh=ZR(Se));var sj=null==ng?void 0:ng.sabrContextUpdates;if(sj&&0<sj.length)for(var Ql=g.u(sj),dk=Ql.next();!dk.done;dk=Ql.next()){var sh=dk.value;if(sh.type&&sh.value){var ek={type:sh.type,scope:sh.scope,value:ZR(sh.value)||void 0,sendByDefault:sh.sendByDefault};
a.sabrContextUpdates.set(sh.type,ek)}}}var Yk=ng.serverPlaybackStartConfig;Yk&&(a.serverPlaybackStartConfig=Yk)}var ci=Zb.inlinePlaybackConfig;ci&&(a.nC=!!ci.showAudioControls);var di=Zb.embeddedPlayerConfig;if(di){a.embeddedPlayerConfig=di;var ei=di.embeddedPlayerMode;if(ei){var Rl=a.U();Rl.Ea=ei;Rl.C="EMBEDDED_PLAYER_MODE_PFL"===ei}var Sl=di.permissions;Sl&&(a.allowImaMonetization=!!Sl.allowImaMonetization)}var Ni=Zb.ssapConfig;Ni&&(a.WU=Ni.ssapPrerollEnabled||!1);var fi=Zb.webPlayerConfig;fi&&
(fi.gatewayExperimentGroup&&(a.gatewayExperimentGroup=fi.gatewayExperimentGroup),fi.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var he=a.playerResponse.streamingData;if(he){var og=he.adaptiveFormats;if(og){var Rg=he.streamingUrlTemplate;if(a.L("enable_streaming_url_template")&&Rg)for(var Oi=g.u(og),xf=Oi.next();!xf.done;xf=Oi.next()){var fk=xf.value;!fk.url&&fk.distinctParams&&(fk.url=Rg+"&"+fk.distinctParams)}}var Zk=he.formats;if(Zk){var tj=[],gf=g.u(Zk);for(xf=gf.next();!xf.done;xf=gf.next()){var hf=
xf.value;tj.push(hf.itag+"/"+hf.width+"x"+hf.height)}a.rC=tj.join(",");tj=[];var Qf=g.u(Zk);for(xf=Qf.next();!xf.done;xf=Qf.next()){var Pi=xf.value,uj={itag:Pi.itag,type:Pi.mimeType,quality:Pi.quality},Tl=Pi.url;Tl&&(uj.url=Tl);var gk=iQ(Pi),nc=gk.QC,As=gk.QF,Wp=gk.s;gk.QW&&(uj.url=nc,uj.sp=As,uj.s=Wp);tj.push(g.Ll(uj))}a.Of=tj.join(",")}var yo=he.hlsFormats;if(yo){var Xp=Zb||null,hk={};if(Xp){var ik=Xp.audioPairingConfig;if(ik&&ik.pairs)for(var Ul=g.u(ik.pairs),Qi=Ul.next();!Qi.done;Qi=Ul.next()){var $k=
Qi.value,jk=$k.videoItag;hk[jk]||(hk[jk]=[]);hk[jk].push($k.audioItag)}}for(var Yp={},Zp=g.u(yo),kk=Zp.next();!kk.done;kk=Zp.next()){var $p=kk.value;Yp[$p.itag]=$p.bitrate}var aq=[],bq=g.u(yo);for(kk=bq.next();!kk.done;kk=bq.next()){var Rf=kk.value,yf={itag:Rf.itag,type:Rf.mimeType,url:Rf.url,bitrate:Rf.bitrate,width:Rf.width,height:Rf.height,fps:Rf.fps},vj=Rf.audioTrack;if(vj){var Vl=vj.displayName;Vl&&(yf.name=Vl,yf.audio_track_id=vj.id,vj.audioIsDefault&&(yf.is_default="1"))}if(Rf.drmFamilies){for(var cq=
[],gi=g.u(Rf.drmFamilies),hi=gi.next();!hi.done;hi=gi.next())cq.push(hOa[hi.value]);yf.drm_families=cq.join(",")}var th=hk[Rf.itag];if(th&&th.length){yf.audio_itag=th.join(",");var dq=Yp[th[0]];dq&&(yf.bitrate+=dq)}var zo=SNa(Rf);zo&&(yf.eotf=zo);Rf.audioChannels&&(yf.audio_channels=Rf.audioChannels);aq.push(g.Ll(yf))}a.hlsFormats=aq.join(",")}var uh=he.licenseInfos;if(uh&&0<uh.length){for(var vh={},ii=g.u(uh),$m=ii.next();!$m.done;$m=ii.next()){var eq=$m.value,Wl=eq.drmFamily,an=eq.url;Wl&&an&&(vh[hOa[Wl]]=
an)}a.ge=vh}var bn=he.drmParams;bn&&(a.drmParams=bn);var al=he.dashManifestUrl;al&&(a.hd=g.Ml(al,{cpn:a.clientPlaybackNonce}));var Xl=he.hlsManifestUrl;Xl&&(a.hlsvp=Xl);var Yl=he.probeUrl;Yl&&(a.probeUrl=hK(g.Ml(Yl,{cpn:a.clientPlaybackNonce})));var fq=he.serverAbrStreamingUrl;fq&&(a.uy=new g.dQ(fq,!0))}var gq=a.playerResponse.trackingParams;gq&&(a.Ba=gq);var Qc=a.playerResponse.videoDetails;if(Qc){var ji=b,Ao=Qc.videoId;Ao&&(a.videoId=Ao,ji.video_id||(ji.video_id=Ao));var lk=Qc.channelId;lk&&(a.N.uid=
lk.substr(2));var ki=Qc.title;ki&&(a.title=ki,ji.title||(ji.title=ki));var Ri=Qc.lengthSeconds;Ri&&(a.lengthSeconds=Number(Ri),ji.length_seconds||(ji.length_seconds=Ri));var cn=Qc.keywords;cn&&(a.keywords=eRa(cn));var Bo=Qc.channelId;Bo&&(a.El=Bo,ji.ucid||(ji.ucid=Bo));var hq=Qc.viewCount;hq&&(a.rawViewCount=Number(hq));var zf=Qc.author;zf&&(a.author=zf,ji.author||(ji.author=zf));var pg=Qc.shortDescription;pg&&(a.shortDescription=pg);var wh=Qc.isCrawlable;wh&&(a.isListed=wh);var Zl=Qc.musicVideoType;
Zl&&(a.musicVideoType=Zl);var dn=Qc.isLive;null!=dn&&(a.isLivePlayback=dn);if(dn||Qc.isUpcoming)a.isPremiere=!Qc.isLiveContent;var Co=Qc.thumbnail;Co&&(a.Z=US(Co));var iq=Qc.isExternallyHostedPodcast;iq&&(a.isExternallyHostedPodcast=iq);var Do=Qc.viewerLivestreamJoinPosition;if(null==Do?0:Do.utcTimeMillis)a.Bz=we(Do.utcTimeMillis);var jq=Zb||null,bl=b;Qc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Qc.isUpcoming&&(a.isUpcoming=!0);if(Qc.isPostLiveDvr)a.Xd=!0;else{var en=!1;if(a.kb)a.allowLiveDvr=
TR()?!0:wC&&5>rT?!1:!0,a.isLivePlayback=!0;else if(Qc.isLive){bl.livestream="1";a.allowLiveDvr=Qc.isLiveDvrEnabled?TR()?!0:wC&&5>rT?!1:!0:!1;a.Ga=27;Qc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var Eo=Qc.latencyClass;Eo&&(a.latencyClass=nRa[Eo]||"UNKNOWN");var kq=Qc.liveChunkReadahead;kq&&(a.liveChunkReadahead=kq);var cl=jq&&jq.livePlayerConfig;if(cl){cl.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);cl.hasSubfragmentedWebm&&(a.RD=!0);cl.defraggedFromSubfragments&&(a.defraggedFromSubfragments=
!0);var lq=cl.liveExperimentalContentId;lq&&(a.liveExperimentalContentId=Number(lq));var Fo=cl.isLiveHeadPlayable;a.L("html5_live_head_playable")&&null!=Fo&&(a.isLiveHeadPlayable=Fo)}en=!0}else Qc.isUpcoming&&(en=!0);en&&(a.isLivePlayback=!0,bl.adformat&&"8"!==bl.adformat.split("_")[1]||a.Ea.push("heartbeat"),a.Zo=!0)}var mq=Qc.isPrivate;void 0!==mq&&(a.isPrivate=AC(a.isPrivate,mq))}if(sa){var Go=Qc||null,$l=!1,mk=sa.errorScreen;$l=mk&&(mk.playerLegacyDesktopYpcOfferRenderer||mk.playerLegacyDesktopYpcTrailerRenderer||
mk.ypcTrailerRenderer)?!0:Go&&Go.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(sa.status);if(!$l){a.errorCode=fQa(sa.errorCode)||"auth";var am=mk&&mk.playerErrorMessageRenderer;if(am){a.playerErrorMessageRenderer=am;var nq=am.reason;nq&&(a.errorReason=g.nG(nq));var Ho=am.subreason;Ho&&(a.dn=g.nG(Ho),a.Zx=Ho)}else a.errorReason=sa.reason||null;var Io=sa.status;if("LOGIN_REQUIRED"===Io)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===Io)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===
Io){var oq=sa.errorScreen,wj=oq&&oq.playerKavRenderer;a.errorDetail=wj&&wj.kavUrl?"4":"3"}else a.errorDetail=sa.isBlockedInRestrictedMode?"5":"0"}}var dl=a.playerResponse.interstitialPods;dl&&tQa(a,dl);a.Xa&&a.eventId&&(a.Xa=VB(a.Xa,{ei:a.eventId}));var li=a.playerResponse.captions;if(li&&li.playerCaptionsTracklistRenderer)a:{var qg=li.playerCaptionsTracklistRenderer;a.captionTracks=[];if(qg.captionTracks)for(var bm=g.u(qg.captionTracks),Jo=bm.next();!Jo.done;Jo=bm.next()){var mi=Jo.value,pq=bRa(mi.baseUrl);
if(!pq)break a;var Ko={is_translateable:!!mi.isTranslatable,languageCode:mi.languageCode,languageName:mi.name&&g.nG(mi.name),url:pq,vss_id:mi.vssId,kind:mi.kind};Ko.name=mi.trackName;Ko.displayName=mi.name&&g.nG(mi.name);a.captionTracks.push(new g.PS(Ko))}a.RB=qg.audioTracks||[];a.zU=qg.defaultAudioTrackIndex||0;a.Iu=[];if(qg.translationLanguages)for(var qq=g.u(qg.translationLanguages),fn=qq.next();!fn.done;fn=qq.next()){var Sf=fn.value,Tf={};Tf.languageCode=Sf.languageCode;Tf.languageName=g.nG(Sf.languageName);
if(Sf.translationSourceTrackIndices){Tf.translationSourceTrackIndices=[];for(var Si=g.u(Sf.translationSourceTrackIndices),xh=Si.next();!xh.done;xh=Si.next())Tf.translationSourceTrackIndices.push(xh.value)}if(Sf.excludeAudioTrackIndices){Tf.excludeAudioTrackIndices=[];var cm=g.u(Sf.excludeAudioTrackIndices);for(xh=cm.next();!xh.done;xh=cm.next())Tf.excludeAudioTrackIndices.push(xh.value)}a.Iu.push(Tf)}a.TB=[];if(qg.defaultTranslationSourceTrackIndices){var Ti=g.u(qg.defaultTranslationSourceTrackIndices);
for(xh=Ti.next();!xh.done;xh=Ti.next())a.TB.push(xh.value)}a.Hu=!!qg.contribute&&!!qg.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.oP=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&vQa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var yh;
a.compositeLiveIngestionOffsetToken=null==(yh=a.playerResponse.playbackTracking)?void 0:yh.compositeLiveIngestionOffsetToken;var xj;a.compositeLiveStatusToken=null==(xj=a.playerResponse.playbackTracking)?void 0:xj.compositeLiveStatusToken}$Qa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var el=b.hlsdvr;null!=el&&(a.allowLiveDvr="1"==el?TR()?!0:wC&&5>rT?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.yx||(a.yx=b.encoded_ad_safety_reason||null);a.gU=b.agcid||null;a.mG=b.ad_id||null;a.oG=b.ad_sys||null;
a.pC=b.encoded_ad_playback_context||null;a.ql=AC(a.ql,b.infringe||b.muted);a.M4=b.authkey;a.g4=b.authuser;a.mutedAutoplay=AC(a.mutedAutoplay,b&&b.playmuted)&&a.L("embeds_enable_muted_autoplay");a.hL=AC(a.hL,b&&b.mutedautoplay)&&a.L("embeds_enable_muted_autoplay");var dm=b.length_seconds;dm&&(a.lengthSeconds="string"===typeof dm?we(dm):dm);if(a.isAd()||a.Nm||!g.FC(g.uS(a.Fa)))a.endSeconds=CC(a.endSeconds,a.aP||b.end||b.endSeconds);else{var em=a.lengthSeconds;switch(g.uS(a.Fa)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30<
em?a.limitedPlaybackDurationInSeconds=30:30>em&&10<em&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=.2*em}}a.Ba=DC(a.Ba,b.itct);a.xC=AC(a.xC,b.noiba);a.AC=AC(a.AC,b.is_live_destination);a.isLivePlayback=AC(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.Ac();b.isUpcoming&&(a.isUpcoming=AC(a.isUpcoming,b.isUpcoming));a.Xd=AC(a.Xd,b.post_live_playback);a.rb&&(a.Xd=!1);
a.isMdxPlayback=AC(a.isMdxPlayback,b.mdx);var gn=b.mdx_control_mode;gn&&(a.mdxControlMode="number"===typeof gn?gn:we(gn));a.isInlinePlaybackNoAd=AC(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.ac=CC(a.ac,b.reload_count);a.reloadReason=DC(a.reloadReason,b.reload_reason);a.Fl=AC(a.Fl,b.show_content_thumbnail);a.CC=AC(a.CC,b.utpsa);a.kL=AC(a.kL,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.lL=b.tkn||null;var rq=TS(b);0<Object.keys(rq).length&&(a.Z=rq);a.ra=DC(a.ra,b.vvt);a.mdxEnvironment=
DC(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);b.serialized_mdx_metadata&&(a.serializedMdxMetadata=b.serialized_mdx_metadata);a.y6=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=DC(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?CC(0,b.index):CC(a.playlistIndex,b.index));a.FS=b.pyv_view_beacon_url;a.ST=b.pyv_quartile25_beacon_url;a.UT=b.pyv_quartile50_beacon_url;
a.XT=b.pyv_quartile75_beacon_url;a.QT=b.pyv_quartile100_beacon_url;var sq=b.remarketing_url;sq&&(a.remarketingUrl=sq);var fm=b.ppv_remarketing_url;fm&&(a.ppvRemarketingUrl=fm);var hn=b.session_data;!a.dU&&hn&&(a.dU=QB(hn,"&").feature);a.isFling=1==CC(a.isFling?1:0,b.is_fling);a.vnd=CC(a.vnd,b.vnd);a.forceAdsUrl=DC(a.forceAdsUrl,b.force_ads_url);a.wk=DC(a.wk,b.ctrl);a.vl=DC(a.vl,b.ytr);a.qv=b.ytrcc;a.fU=b.ytrexp;a.sS=b.ytrext;a.Bd=DC(a.Bd,b.adformat);a.iz=DC(a.iz,b.attrib);a.slotPosition=CC(a.slotPosition,
b.slot_pos);a.breakType=b.break_type;a.To=AC(a.To,b.ssrt);a.videoId=EC(b)||a.videoId;a.G=DC(a.G,b.vss_credentials_token);a.Hm=DC(a.Hm,b.vss_credentials_token_type);a.xj=AC(a.xj,b.audio_only);a.RL=AC(a.RL,b.aac_high);a.aG=AC(a.aG,b.prefer_low_quality_audio);a.oL=AC(a.oL,b.uncap_inline_quality);a.lh=DC(a.lh,b.qoe_cat);a.Pm=AC(a.Pm,b.download_media);var jn=b.prefer_gapless;var Bs=null!=jn?AC(a.W,jn):a.W?a.W:a.Fa.preferGapless&&a.Fa.supportsGaplessShorts();a.W=Bs;a:{var Lo=a.playerResponse;if(Lo&&Lo.adPlacements)for(var tq=
g.u(Lo.adPlacements),gm=tq.next();!gm.done;gm=tq.next()){var nk=gm.value.adPlacementRenderer;if(null!=nk&&"AD_PLACEMENT_KIND_START"===(nk.config&&nk.config.adPlacementConfig&&nk.config.adPlacementConfig.kind)){var kn=!0;break a}}kn=!1}kn&&(a.adModule=!0,a.Ea.push("ad"));var Mo=b.adaptive_fmts;Mo&&(a.adaptiveFormats=Mo,a.va("adpfmts",{},!0));var Ee=b.allow_embed;Ee&&(a.allowEmbed="1"==Ee);var Te=b.backgroundable;Te&&(a.backgroundable="1"==Te);var Ue=b.autonav;Ue&&(a.isAutonav="1"==Ue);var ln=b.autoplay;
ln&&(a.Zp="1"==ln,a.fl="1"==ln);var uq=b.iv_load_policy;uq&&(a.annotationsLoadPolicy=BC(a.annotationsLoadPolicy,uq,vS));var mn=b.cc_lang_pref;mn&&(a.captionsLanguagePreference=DC(mn,a.captionsLanguagePreference));var No=b.cc_load_policy;No&&(a.eF=BC(a.eF,No,vS));var Oo;a.deviceCaptionsOn=null!=(Oo=b.device_captions_on)?Oo:void 0;var vq;a.CU=null!=(vq=b.device_captions_lang_pref)?vq:"";var Po;a.pL=null!=(Po=b.viewer_selected_caption_langs)?Po:[];var wq=b.cached_load;wq&&(a.ev=AC(a.ev,wq));"0"==b.dash&&
(a.VB=!0);var xq=b.dashmpd;xq&&(a.hd=g.Ml(xq,{cpn:a.clientPlaybackNonce}));var hm=b.delay;hm&&(a.Rb=we(hm));var nn=a.aP||b.end;void 0!=nn&&(a.clipEnd=CC(a.clipEnd,nn));var on=b.fmt_list;on&&(a.rC=on);b.heartbeat_preroll&&a.Ea.push("heartbeat");a.Mm=-Math.floor(10*Math.random());a.Ow=-Math.floor(40*Math.random());var Qo=b.is_listed;Qo&&(a.isListed=AC(a.isListed,Qo));var yq=b.is_private;yq&&(a.isPrivate=AC(a.isPrivate,yq));var zq=b.is_dni;zq&&(a.Gf=AC(a.Gf,zq));var Aq=b.dni_color;Aq&&(a.vp=DC(a.vp,
Aq));var Bq=b.pipable;Bq&&(a.pipable=AC(a.pipable,Bq));a.hU=a.pipable&&a.Fa.gr;a.tU=a.hU&&!a.Fa.showMiniplayerButton;var Cq=b.paid_content_overlay_duration_ms;Cq&&(a.paidContentOverlayDurationMs=we(Cq));var ok=b.paid_content_overlay_text;ok&&(a.paidContentOverlayText=ok);var im=b.url_encoded_fmt_stream_map;im&&(a.Of=im);var pn=b.hls_formats;pn&&(a.hlsFormats=pn);var Dq=b.hlsvp;Dq&&(a.hlsvp=Dq);var qn=b.live_start_walltime;qn&&(a.cM="number"===typeof qn?qn:we(qn));var Ui=b.live_manifest_duration;Ui&&
(a.Im="number"===typeof Ui?Ui:we(Ui));var Vi=b.player_params;Vi&&(a.playerParams=Vi);var Sg=b.partnerid;Sg&&(a.Ga=CC(a.Ga,Sg));var yj=b.probe_url;yj&&(a.probeUrl=hK(g.Ml(yj,{cpn:a.clientPlaybackNonce})));var fl=b.pyv_billable_url;fl&&Gza(fl)&&(a.rj=fl);var pk=b.pyv_conv_url;pk&&Gza(pk)&&(a.GS=pk);fRa(a,b);0<a.startSeconds||(a.startSeconds=CC(a.startSeconds,a.oP||a.vC||b.start||b.startSeconds),a.Ub=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var jm=b.live_utc_start;if(null!=
jm)a.liveUtcStartSeconds=Number(jm);else{var gl=a.startSeconds;gl&&isFinite(gl)&&1E9<gl&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Eq=b.utc_start_millis;Eq&&(a.liveUtcStartSeconds=.001*Number(Eq))}var Fq=b.stream_time_start_millis;Fq&&(a.vj=.001*Number(Fq));var Gq=a.vC||b.start;void 0==Gq||"1"==b.resume||a.isLivePlayback||(a.clipStart=CC(a.clipStart,Gq));var Hq=b.url_encoded_third_party_media;Hq&&(a.Il=Mna(Hq));var Ro=b.ypc_offer_button_formatted_text;
if(Ro){var Iq=JSON.parse(Ro);a.TL=null!=Iq?Iq:null;a.AU=Ro}var Fe=b.ypc_offer_button_text;Fe&&(a.tA=Fe);var Ge=b.ypc_offer_description;Ge&&(a.qp=Ge);var Af=b.ypc_offer_headline;Af&&(a.NA=Af);var Jq=b.ypc_full_video_message;Jq&&(a.Xo=Jq);var Kq=b.ypc_offer_id;Kq&&(a.Kl=Kq);var qk=b.ypc_buy_url;qk&&(a.Tz=qk);var km=b.ypc_item_thumbnail;km&&(a.Uz=km);var hl=b.ypc_item_title;hl&&(a.Yo=hl);var il=b.ypc_item_url;il&&(a.jA=il);var jl=b.ypc_vid;jl&&(a.Kp=jl);b.ypc_overlay_timeout&&(a.Fp=Number(b.ypc_overlay_timeout));
var lm=b.ypc_trailer_player_vars;lm&&(a.Ll=SB(lm));var Lq=b.ypc_original_itct;Lq&&(a.Uaa=Lq);a.El=DC(a.El,b.ucid);b.baseUrl&&(a.N.baseUrl=b.baseUrl);b.uid&&(a.N.uid=b.uid);b.oeid&&(a.N.oeid=b.oeid);b.ieid&&(a.N.ieid=b.ieid);b.ppe&&(a.N.ppe=b.ppe);b.engaged&&(a.N.engaged=b.engaged);b.subscribed&&(a.N.subscribed=b.subscribed);a.N.focEnabled=AC(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=AC(a.N.rmktEnabled,b.rmktEnabled);a.wy=b.storyboard_spec||null;a.gy=b.live_storyboard_spec||null;a.I_=b.iv_endscreen_url||
null;a.DC=AC(a.DC,b.iv3_module);a.Zo=AC(a.Zo,b.ypc_license_checker_module);a.yj=AC(a.yj,b.ypc_module);a.nh=AC(a.nh,b.ypc_clickwrap_module);a.yj&&a.Ea.push("ypc");a.nh&&a.Ea.push("ypc_clickwrap");a.uS={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};aRa(a,b);var Mq=b.cotn;Mq&&(a.cotn=Mq);if(oRa(a))sT(a)&&(a.isLivePlayback&&a.hd&&(a.Ri=!0),a.Za&&(a.Oo=!0));else if(pRa(a))a.Ri=!0;else{var Nq,Oq,So=(null==(Nq=a.playerResponse)?void 0:null==(Oq=Nq.streamingData)?void 0:Oq.adaptiveFormats)||[];if(0<So.length)var mm=qRa(a,So);else{var Pq=a.adaptiveFormats;if(Pq&&!sT(a)){tT(a,"html5_enable_cobalt_experimental_vp9_decoder")&&
(BOa=!0);var zh=uT(Pq),rk=a.ge,kl=a.lengthSeconds,Cs=a.isLivePlayback,nm=a.Xd,sk=a.Fa,Ds=jOa(zh);if(Cs||nm){var Ve=new vR("",null==sk?void 0:sk.experiments,!0);Ve.Ac=!0;Ve.isManifestless=!0;Ve.B=!nm;Ve.isLive=!nm;Ve.Xd=nm;for(var ni=g.u(zh),Ah=ni.next();!Ah.done;Ah=ni.next()){var Bh=Ah.value,rn=iOa(Bh,rk),Wi=xR(Bh.url,Bh.sp,Bh.s),Qq=Wi.get("id");Qq&&Qq.includes("%7E")&&(Ve.Z=!0);var Es=Number(Bh.target_duration_sec)||5,Fs=Number(Bh.max_dvr_duration_sec)||14400,Rq=Number(Wi.get("mindsq")||Wi.get("min_sq")||
"0"),ll=Number(Wi.get("maxdsq")||Wi.get("max_sq")||"0")||Infinity;Ve.We=Ve.We||Rq;Ve.Th=Ve.Th||ll;var om=!oL(rn.mimeType);Wi&&uR(Ve,new mR(Wi,rn,{Jj:Es,Wm:om,Bq:Fs,We:Rq,Th:ll,hA:300,Xd:nm}))}var pm=Ve}else{if("FORMAT_STREAM_TYPE_OTF"===Ds){var qm=kl;qm=void 0===qm?0:qm;var ml=new vR("",null==sk?void 0:sk.experiments,!1);ml.duration=qm||0;for(var Sq=g.u(zh),To=Sq.next();!To.done;To=Sq.next()){var tk=To.value,Uo=iOa(tk,rk,ml.duration),Xi=xR(tk.url,tk.sp,tk.s);if(Xi)if("FORMAT_STREAM_TYPE_OTF"===Uo.streamType)uR(ml,
new nR(Xi,Uo,"sq/0"));else{var zj=SQ(tk.init),nl=SQ(tk.index);uR(ml,new sR(Xi,Uo,zj,nl))}}ml.isOtf=!0;var Vo=ml}else{var ol=kl;ol=void 0===ol?0:ol;var rm=new vR("",null==sk?void 0:sk.experiments,!1);rm.duration=ol||0;for(var sm=g.u(zh),tm=sm.next();!tm.done;tm=sm.next()){var Yi=tm.value,Gs=iOa(Yi,rk,rm.duration),um=SQ(Yi.init),uk=SQ(Yi.index),vk=xR(Yi.url,Yi.sp,Yi.s);vk&&uR(rm,new sR(vk,Gs,um,uk))}Vo=rm}pm=Vo}var pl=pm;if(0<zh.length){var Tq=zh[0];if("hangouts-meet"===a.U().playerStyle&&Tq.url){var Hs=
g.TB(Tq.url);a.Vo=a.Vo||Number(Hs.expire)}}var Is=a.isLivePlayback&&!a.Xd&&!a.rb&&!a.isPremiere;a.L("html5_live_head_playable")&&(!vT(a)&&Is&&a.va("missingLiveHeadPlayable",{}),"yt"===a.Fa.Ba&&(pl.Xa=!0));pl.Va=wT(a);mm=pl}else mm=null;a.va("pafmts",{isManifestFilled:!!mm})}if(mm){rRa(a,mm);var Uq=!0}else Uq=!1;Uq?a.enableServerStitchedDai=a.enableServerStitchedDai&&xT(a):a.hd&&(a.Ri=!0)}var Wo=b.adpings;Wo&&(a.xx=Wo?SB(Wo):null);var Xo=b.feature;Xo&&(a.Ro=Xo);var Yo=b.referrer;Yo&&(a.referrer=Yo);
a.clientScreenNonce=DC(a.clientScreenNonce,b.csn);a.yF=CC(a.yF,b.root_ve_type);a.Po=CC(a.Po,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.zy=AC(a.zy,b.upg_content_filter_mode);var Vq=b.unplugged_location_info;Vq&&(a.ma=Vq);var Wq=b.unplugged_partner_opt_out;Wq&&(a.lG=DC("",Wq));a.Gx=AC(a.Gx,b.disable_watch_next);a.No=DC(a.No,b.internal_ip_override);a.zC=!!b.is_yto_interstitial;(a.interstitials.length||a.zC)&&a.Ea.push("yto");var Aj=b.pm;Aj&&(a.pm=Aj);b.DK&&(a.DK=b.DK);
var wk;a.La=null!=(wk=b.csi_timer)?wk:"";a.Mo=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var Tg=b.watch_endpoint;a.L("html5_attach_watch_endpoint_ustreamer_config")&&Tg&&hQa(a,Tg);if(null==Tg?0:Tg.ustreamerConfig)a.Go=ZR(Tg.ustreamerConfig);var Xq,Yq,Zq=null==Tg?void 0:null==(Xq=Tg.loggingContext)?void 0:null==(Yq=Xq.qoeLoggingContext)?void 0:Yq.serializedContextData;Zq&&(a.eaa=Zq);g.mS(a.Fa)&&a.Fa.Em&&(a.embedsRct=DC(a.embedsRct,b.rct),a.embedsRctn=DC(a.embedsRctn,b.rctn));a.Jm=a.Jm||!!b.pause_at_start;
b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)};
dRa=function(a,b,c){var d,e=null==(d=b.cacheMetadata)?void 0:d.isCacheHit,f;(b=null==(f=b.cpnInfo)?void 0:f.cpn)?c?a.jF("ssei","oprc"):(a.playerResponseCpn=b,e||(a.clientPlaybackNonce=b)):a.jF("ssei","nci")};
$Qa=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.Qa=c;var e=a.Qa.playerCueRangeSet;e&&g.mRa(a,e);var f=a.Qa.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.R(l,sRa),a.L("web_player_autonav_use_server_provided_state")&&tRa(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var m=h.videoDetails;if(m){var n=m.embeddedPlayerOverlayVideoDetailsRenderer;var p=
m.playerOverlayVideoDetailsRenderer;p&&(p.title&&(b.title=g.nG(p.title)),p.subtitle&&(b.subtitle=g.nG(p.subtitle)))}g.rS(a.Fa)&&(a.Pe=!!h.addToMenu);uRa(a,h.shareButton);a.L("progress_bar_start_end_null_check_killswitch")?(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition):h.startPosition&&h.endPosition&&(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition);var q=h.gatedActionsOverlayRenderer;q&&(a.j4=g.R(q,vRa));var r,t,v,x=g.R(null==
(r=a.getWatchNextResponse())?void 0:null==(t=r.playerOverlays)?void 0:null==(v=t.playerOverlayRenderer)?void 0:v.infoPanel,wRa);if(x){a.uC=Number(null==x?void 0:x.durationMs)||NaN;if(null==x?0:x.infoPanelOverviewViewModel)a.yf=null==x?void 0:x.infoPanelOverviewViewModel;if(null==x?0:x.infoPanelDetailsViewModel)a.Em=null==x?void 0:x.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var B,F,G=null==(B=a.getWatchNextResponse())?void 0:null==(F=B.contents)?void 0:F.twoColumnWatchNextResults;
if(G){var I=G.desktopOverlay&&g.R(G.desktopOverlay,xRa);I&&(I.suppressShareButton&&(a.showShareButton=!1),I.suppressWatchLaterButton&&(a.Pe=!1))}n&&yRa(a,b,n);var L=CC(0,b.autoplay_count),P=a.getWatchNextResponse(),V,ka=null==(V=P.contents)?void 0:V.twoColumnWatchNextResults,sa,ta,la,qa=null==(sa=P.playerOverlays)?void 0:null==(ta=sa.playerOverlayRenderer)?void 0:null==(la=ta.autoplay)?void 0:la.playerOverlayAutoplayRenderer,ba=yQa(a),T,Ma=null==(T=P.contents)?void 0:T.singleColumnWatchNextResults;
if(Ma){var y;if((null==(y=Ma.autoplay)?0:y.autoplay)&&!Ma.playlist){var Z=Ma.autoplay.autoplay.sets,Ua={},Za=new g.ZS(a.U()),bb=null,Xa;if(Z){for(var Va=g.u(Z),lb=Va.next();!lb.done;lb=Va.next()){var Ab=lb.value.autoplayVideoRenderer;if(Ab&&Ab.compactVideoRenderer){bb=Ab.compactVideoRenderer;break}}if(Xa=Z[0].autoplayVideo){var ob=Xa.clickTrackingParams;ob&&(Ua.itct=ob);Ua.autonav="1";Ua.playnext=String(L)}}else Ua.feature="related-auto";var A=g.R(Xa,g.yT);if(bb){Za.videoId=bb.videoId;var D=bb.shortBylineText;
D&&(Za.author=g.nG(D));var E=bb.title;E&&(Za.title=g.nG(E))}else null!=A&&A.videoId&&(Za.videoId=A.videoId);Za.dD=Ua;a.suggestions=[];a.Ax=Za}}if(ba){for(var C=[],K=g.u(ba),X=K.next();!X.done;X=K.next()){var ma=X.value,fa=void 0,S=null;if(ma.endScreenVideoRenderer){var na=ma.endScreenVideoRenderer,Ea=na.title;S=new g.ZS(a.U());S.videoId=na.videoId;S.lengthSeconds=na.lengthInSeconds||0;var Ca=na.publishedTimeText;Ca&&(S.publishedTimeText=g.nG(Ca));var cb=na.shortBylineText;cb&&(S.author=g.nG(cb));
var kb=na.shortViewCountText;kb&&(S.shortViewCount=g.nG(kb));if(Ea){S.title=g.nG(Ea);var Bb=Ea.accessibility;if(Bb){var Ob=Bb.accessibilityData;Ob&&Ob.label&&(S.ariaLabel=Ob.label)}}var tb=na.navigationEndpoint;if(tb){fa=tb.clickTrackingParams;var qb=g.R(tb,g.yT),tc=g.R(tb,g.zG);qb?S.eD=qb:null!=tc&&(S.watchUrl=tc.url)}var Uc=na.thumbnailOverlays;if(Uc)for(var gc=g.u(Uc),Vc=gc.next();!Vc.done;Vc=gc.next()){var md=Vc.value.thumbnailOverlayTimeStatusRenderer;if(md)if("LIVE"===md.style){S.isLivePlayback=
!0;break}else if("UPCOMING"===md.style){S.isUpcoming=!0;break}}S.Z=US(na.thumbnail)}else if(ma.endScreenPlaylistRenderer){var Lc=ma.endScreenPlaylistRenderer,nd=Lc.navigationEndpoint;if(!nd)continue;var od=g.R(nd,g.yT);if(!od)continue;var Yb=od.videoId;S=new g.YS(a.U());S.playlistId=Lc.playlistId;S.playlistLength=Number(Lc.videoCount)||0;S.j=Yb||null;S.videoId=Yb;var lc=Lc.title;lc&&(S.title=g.nG(lc));var Kd=Lc.shortBylineText;Kd&&(S.author=g.nG(Kd));fa=nd.clickTrackingParams;S.Z=US(Lc.thumbnail)}S&&
(fa&&(S.sessionData={itct:fa}),C.push(S))}a.suggestions=C}if(qa){a.wS=!!qa.preferImmediateRedirect;a.Nf=a.Nf||!!qa.webShowNewAutonavCountdown;a.Gl=a.Gl||!!qa.webShowBigThumbnailEndscreen;if(a.Nf||a.Gl){var $c=ka||null,ec=new g.ZS(a.U());ec.videoId=qa.videoId;var ad=qa.videoTitle;if(ad){ec.title=g.nG(ad);var Qb=ad.accessibility;if(Qb){var Ad=Qb.accessibilityData;Ad&&Ad.label&&(ec.ariaLabel=Ad.label)}}var Wd=qa.byline;Wd&&(ec.author=g.nG(Wd));var Sb=qa.publishedTimeText;Sb&&(ec.publishedTimeText=g.nG(Sb));
var af=qa.shortViewCountText;af&&(ec.shortViewCount=g.nG(af));var ze=qa.thumbnailOverlays;if(ze)for(var Oe=g.u(ze),uf=Oe.next();!uf.done;uf=Oe.next()){var bf=uf.value.thumbnailOverlayTimeStatusRenderer;if(bf)if("LIVE"===bf.style){ec.isLivePlayback=!0;break}else if("UPCOMING"===bf.style){ec.isUpcoming=!0;break}else if("DEFAULT"===bf.style&&bf.text){ec.lengthText=g.nG(bf.text);var jh=bf.text.accessibility;if(jh){var Ig=jh.accessibilityData;Ig&&Ig.label&&(ec.lw=Ig.label||"")}break}}ec.Z=US(qa.background);
var kh=qa.nextButton;if(kh){var Jg=kh.buttonRenderer;if(Jg){var lh=Jg.navigationEndpoint;if(lh){var Ae=g.R(lh,g.yT);Ae&&(ec.eD=Ae)}}}if(qa.topBadges){var cf=qa.topBadges[0];if(cf){var bd=g.R(cf,zRa);bd&&"BADGE_STYLE_TYPE_PREMIUM"===bd.style&&(ec.DK=!0)}}var fe=qa.alternativeTitle;fe&&(ec.us=g.nG(fe));var vc={autonav:"1",playnext:String(L)};ec.playlistId&&(vc.autoplay="1");if($c){var Kg,mh,nh,oh,Be=null==(Kg=$c.autoplay)?void 0:null==(mh=Kg.autoplay)?void 0:null==(nh=mh.sets)?void 0:null==(oh=nh[0])?
void 0:oh.autoplayVideo;if(Be){var wc=Be.clickTrackingParams;wc&&(vc.itct=wc);var Lf=g.R(Be,g.yT);Lf&&(ec.SU=Lf)}}else if(qa){var Yh,Zh,Ii,df=null==(Yh=qa.nextButton)?void 0:null==(Zh=Yh.buttonRenderer)?void 0:null==(Ii=Zh.navigationEndpoint)?void 0:Ii.clickTrackingParams;df&&(vc.itct=df)}vc.itct||(vc.feature="related-auto");ec.dD=vc;a.suggestions||(a.suggestions=[]);a.Ax=ec}null!=qa.countDownSecs&&(a.sU=1E3*qa.countDownSecs);null!=qa.countDownSecsForFullscreen&&(a.QB=0<=qa.countDownSecsForFullscreen?
1E3*qa.countDownSecsForFullscreen:-1);if(a.L("web_player_autonav_next_button_renderer")){var hg;a.v5=null==(hg=qa.nextButton)?void 0:hg.buttonRenderer}var Pe;a.o5=null==(Pe=qa.cancelButton)?void 0:Pe.buttonRenderer;a.L("web_autonav_color_transition")&&qa.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.R(qa.watchToWatchTransitionRenderer,ARa))}var ig=yQa(a);if(ig){var vf,Dc,rc,Zb=null==ig?void 0:null==(vf=ig[0])?void 0:null==(Dc=vf.endScreenVideoRenderer)?void 0:null==(rc=Dc.navigationEndpoint)?
void 0:rc.clickTrackingParams,Lg=g.zT(a);Zb&&Lg&&(Lg.sessionData={itct:Zb})}a.Qa.currentVideoThumbnail&&(a.Z=US(a.Qa.currentVideoThumbnail));var ef,Mf,Nf,Ji,qj,jg=null==(ef=a.Qa)?void 0:null==(Mf=ef.contents)?void 0:null==(Nf=Mf.twoColumnWatchNextResults)?void 0:null==(Ji=Nf.results)?void 0:null==(qj=Ji.results)?void 0:qj.contents;if(jg&&jg[1]){var ph,$h,ai,kg,ff=null==(ph=jg[1].videoSecondaryInfoRenderer)?void 0:null==($h=ph.owner)?void 0:null==(ai=$h.videoOwnerRenderer)?void 0:null==(kg=ai.thumbnail)?
void 0:kg.thumbnails;ff&&ff.length&&(a.profilePicture=ff[ff.length-1].url)}var Mg=EC(b),Of,Ki=null==(Of=a.getWatchNextResponse())?void 0:Of.onResponseReceivedEndpoints;if(Ki)for(var lg=g.u(Ki),Ng=lg.next();!Ng.done;Ng=lg.next()){var qh=Ng.value;g.R(qh,AT)&&(a.Z_=g.R(qh,AT));var Og=g.R(qh,BRa),Ce=void 0;if(null==(Ce=Og)?0:Ce.entityKeys)a.jy=Og.entityKeys||[],Og.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Og.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var De=g.BT.getState().entities,Qe=g.eP("visibility_override",
"markersVisibilityOverrideEntity");var qe=gP(De,"markersVisibilityOverrideEntity",Qe);a.He=(null==qe?void 0:qe.videoId)===(a.videoId||Mg)&&(null==qe?0:qe.visibilityOverrideMarkersKey)?qe.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.oa(a.He))}}};
tRa=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
CRa=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
ET=function(a){var b=a.W;a.L("html5_gapless_unlimit_format_selection")&&a.Fa.supportsGaplessShorts()&&CT(a)&&(b=!1);var c=!!a.j&&a.j.Ac,d=a.Fa,e=a.PO(),f=DT(a),h=a.RL,l=b,m=a.isOtf();b=a.pM();var n=a.kb,p=a.Qf,q=DRa(a),r=new COa(d);if(d.Uc()||d.L("html5_logging_format_selection"))r.B=!0;r.Xa=f;r.La=h&&d.K;r.Qf=p;g.qC("windows nt 5.1")&&!g.MR&&(r.Xn=!0);if(f=e)f=g.FS(d)?JPa(d):!1;f&&(r.Ba=!0);l&&(r.Xn=!0,r.ac=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.Xn=!0);"picasaweb"===d.playerStyle&&(m&&(r.Xn=!1),
r.Ea=!1);n&&(r.Xn=!0);bQ(d.G,cQ.CHANNELS)&&(d.L("html5_enable_aac51")&&(r.ra=!0),d.L("html5_enable_ac3")&&(r.D=!0),d.L("html5_enable_eac3")&&(r.G=!0),d.L("html5_enable_ac3_gapless")&&(r.Na=!0));d.L("html5_block_8k_hfr")&&(r.Za=!0);r.K=g.EJ(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.EJ(d.experiments,"html5_min_selectable_quality_ordinal");kS&&(r.Ub=480);if(c||e)r.Ea=!1;r.bb=!1;r.disableAv1=q;c=EOa(d,r.j,void 0,r.disableAv1);0<c&&2160>c&&(BL()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=
+BL(),r.lj=c);2160<=c&&(r.Ga=!0);GLa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.Ic=!1);r.pM=b;r.Va=g.VD||Doa()&&!b?!1:!0;r.W=d.L("html5_format_hybridization");r.tb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");tC()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(r.D=!0,r.G=!0);a.W&&a.isAd()&&(a.sx&&(r.ma=a.sx),a.Tw&&(r.C=a.Tw));r.Qa=a.isLivePlayback&&a.wj()&&a.Fa.L("html5_drm_live_audio_51");
r.rb=a.WB;return a.Ie=r};
DRa=function(a){return a.Fa.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&a.Fa.supportsGaplessShorts()&&CT(a)?!0:!1};
FRa=function(a){cI("drm_pb_s",void 0,a.La);a.Za||a.j&&ZP(a.j);var b={};a.j&&(b=OLa(a.Fx,ET(a),a.Fa.G,a.j,function(c){return a.oa("ctmp","fmtflt",c)},!0,new Set));
b=new NR(b,a.Fa,a.oU,a.useCobaltWidevine?tC()?ERa(a):!1:!1,function(c,d){a.va(c,d)});
g.J(a,b);a.Oo=!1;a.loading=!0;KOa(b,function(c){cI("drm_pb_f",void 0,a.La);for(var d=g.u(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Za=a.Za;e.Yx=a.Yx;e.Xx=a.Xx;break;case "widevine":e.Jl=a.Jl}a.Qo=c;if(0<a.Qo.length&&(a.K=a.Qo[0],a.Fa.Uc())){c={};d=g.u(Object.entries(a.K.j));for(e=d.next();!e.done;e=d.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.va("drmProbe",c)}pT(a)})};
qRa=function(a,b){if(0===b.length||sT(a))return null;tT(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(BOa=!0);var c=a.ge;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.Xd,h=a.Fa,l=kOa(b);if(e||f){h=new vR("",h.experiments,!0);h.B=!f;h.Ac=!0;h.isManifestless=!0;h.isLive=!f;h.Xd=f;b=g.u(b);for(d=b.next();!d.done;d=b.next()){var m=d.value;d=wR(m,c);e=iQ(m);e=xR(e.QC||m.url||"",e.QF,e.s);(l=e.get("id"))&&l.includes("%7E")&&(h.Z=!0);l=Number(m.targetDurationSec||5);m=Number(m.maxDvrDurationSec||14400);
var n=Number(e.get("mindsq")||e.get("min_sq")||"0"),p=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.We=h.We||n;h.Th=h.Th||p;var q=!oL(d.mimeType);e&&uR(h,new mR(e,d,{Jj:l,Wm:q,Bq:m,We:n,Th:p,hA:300,Xd:f}))}c=h}else if("FORMAT_STREAM_TYPE_OTF"===l){d=void 0===d?0:d;f=new vR("",h.experiments,!1);f.duration=d||0;h=g.u(b);for(b=h.next();!b.done;b=h.next())b=b.value,d=wR(b,c,f.duration),e=iQ(b),(e=xR(e.QC||b.url||"",e.QF,e.s))&&("FORMAT_STREAM_TYPE_OTF"===d.streamType?uR(f,new nR(e,d,"sq/0")):
uR(f,new sR(e,d,UQ(b.initRange),UQ(b.indexRange))));f.isOtf=!0;c=f}else{d=void 0===d?0:d;f=new vR("",h.experiments,!1);f.duration=d||0;h=g.u(b);for(b=h.next();!b.done;b=h.next())l=b.value,b=wR(l,c,f.duration),d=UQ(l.initRange),e=UQ(l.indexRange),m=iQ(l),(l=xR(m.QC||l.url||"",m.QF,m.s))&&uR(f,new sR(l,b,d,e));c=f}f=a.isLivePlayback&&!a.Xd&&!a.rb&&!a.isPremiere;a.L("html5_live_head_playable")&&(!vT(a)&&f&&a.va("missingLiveHeadPlayable",{}),"yt"===a.Fa.Ba&&(c.Xa=!0));c.Va=wT(a);return c};
sT=function(a){return tC()?!ERa(a):uC()?!(!a.Za||!a.L("html5_enable_safari_fairplay")):!1};
ERa=function(a){return a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.mRa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.gL.set(c.cueRangeSetIdentifier,null!=(d=c.playerCueRanges)?d:[])}};
xT=function(a){return!(!a.j||!a.j.isManifestless)};
FT=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=AR(a.j)};
oRa=function(a){return tC()&&ERa(a)?!1:sT(a)&&g.NJ(a.Fa)&&!a.isLivePlayback||!TR()||a.VB?!0:!1};
HRa=function(a){a.loading=!0;a.Ri=!1;if(pRa(a))g.LQa(a.videoId).then(function(c){GRa(a,c)}).then(function(){pT(a)});
else{fK(a.hd)||g.LF(new g.eD("DASH MPD Origin invalid: ",a.hd));var b=a.hd;b=g.Ml(b,{mpd_version:g.EJ(a.Fa.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Ml(b,{pacing:0}));sOa(b,a.Fa.experiments,a.isLivePlayback).then(function(c){a.isDisposed()||(rRa(a,c,!0),cI("mrc",void 0,a.La),pT(a))},function(c){a.isDisposed()||(a.loading=!1,a.oa("dataloaderror",new TK("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
cI("mrs",void 0,a.La)}};
GRa=function(a,b){var c=b.map(function(l){return l.itag}),d;
if(null!=(d=a.playerResponse)&&d.streamingData){d=[];for(var e=g.u(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={Ks:void 0},f=e.next())h.Ks=f.value,c.includes(h.Ks.itag)&&(h.Ks=Object.assign({},h.Ks),h.Ks.url=b.find(function(l){return function(m){return m.itag===l.Ks.itag}}(h)).url,h.Ks.signatureCipher="",d.push(h.Ks));
b=qRa(a,d);rRa(a,b);a.va("dlr",{})}else a.va("offsdm",{cotn:a.DN?a.DN.cotn:"0",cpn:a.clientPlaybackNonce})};
GT=function(a){if(!a.isProximaLatencyEligible)return!1;var b=ALa();return null!=b?1===b:a.L("html5_enable_proxima")};
pT=function(a){a.isDisposed()||(a.loading=!1,a.oa("dataloaded"))};
rRa=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.J(a,b);b.We=a.We;b.Th=a.Th;b.Na=a.Na;b.Jb=a.Jb;b.Bb=a.Bb;a.uy&&(b.Qa=new fR(a.uy));IRa(a)&&a.Ea.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Im=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.va,a),c?b.subscribe("refresh",a.FY,a):b.subscribe("cuepointsadded",a.jV,a));ZP(b)?a.Oo=!0:OR=void 0;a.rb&&(b.C=a.rb,b.isLive=!0,a.isLivePlayback=!0);b.isPremiere=
a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
NRa=function(a,b){if(a.isDisposed())return kC();a.C=null;a.bb=null;a.jd=null;tT(a,"html5_high_res_logging_always")&&(a.Fa.Of=!0);return JRa(a,b).then(void 0,function(){return KRa(a,b)}).then(void 0,function(){return LRa(a)}).then(void 0,function(){return MRa(a)})};
JRa=function(a,b){var c=b||oRa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.va("skipDash",{dm:!!a.j,air:b,dd:a.VB,mss:TR(),"3pp":a.isExternallyHostedPodcast}),kC();DT(a)&&xOa(a.j,a.isLivePlayback);tT(a,"html5_enable_cobalt_experimental_vp9_decoder")&&aPa(a.Fa.G);return lC().then(function(){return QLa(a.Fx,ET(a),a.Fa.G,a.j,a.K,function(d){return a.oa("ctmp","fmtflt",d)},a.YO,wT(a)&&a.L("html5_enable_server_format_filter")).then(function(d){ORa(a,d);
a.Fx.j=null;/^av/.test(a.clientPlaybackNonce)&&a.Ie&&a.va("av1",a.Ie.j)})})};
KRa=function(a,b){if(b&&a.hlsvp)return kC();if(a.hlsFormats){b=uT(a.hlsFormats);var c;if((null==(c=a.Ie)?0:c.B)&&b){c=[];for(var d=g.u(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.va("hlsfmt",{itags:c.join(".")})}a.ey=WPa(a.Fa,b);c=a.clientPlaybackNonce;var f,h,l,m;return aQa(a.Fa,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.Od,c,function(n){return a.oa("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],r=g.u(n),t=r.next();!t.done;t=r.next()){t=t.value;
var v=void 0;q.push(null==(v=t.qh())?void 0:v.itag);var x=v=void 0;(null==(v=t.qh())?void 0:null==(x=v.audio)?void 0:x.numChannels)>p&&(p=t.qh().audio.numChannels)}2<p&&a.va("hlschl",{mn:p});var B;(null==(B=a.Ie)?0:B.B)&&a.va("hlsfmtaf",{itags:q.join(".")});var F;if(a.L("html5_enable_vp9_fairplay")&&(null==(F=a.K)?0:KR(F)))for(a.va("drm",{sbdlfbk:1}),p=g.u(a.Qo),q=p.next();!q.done;q=p.next())if(q=q.value,JR(q)){a.K=q;break}HT(a,n)})}return kC()};
LRa=function(a){if(a.isExternallyHostedPodcast&&a.Of){var b=uT(a.Of);if(!b[0])return kC();a.zaa=b[0];return dQa(a.Fa,b[0]).then(function(c){HT(a,c)})}return a.Il&&a.n_?cQa(a.Fa,a.isAd(),a.Il).then(function(c){HT(a,c)}):kC()};
MRa=function(a){if(a.isExternallyHostedPodcast)return kC();var b=uT(a.Of,a.rC);if(a.hlsvp){var c=XQa(a.hlsvp,a.clientPlaybackNonce,a.Od);b.push(c)}return bQa(a.Fa,a.isAd(),b,PRa(a)).then(function(d){HT(a,d)})};
ORa=function(a,b){a.C=b;if(a.C){b=g.u(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;0!==d&&(a.BU[d]=c.id)}}QRa(a);if(a.K&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=lL(a.C.videoInfos[0]),b!=("fairplay"==a.K.flavor)))for(c=g.u(a.Qo),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.K=d;break}};
HT=function(a,b){a.jd=b;ORa(a,new VP(g.pr(a.jd,function(c){return c.qh()})))};
PRa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Fa.j.c,cver:a.Fa.j.cver};a.ly&&(b.ptk=a.ly,b.oid=a.H0,b.ptchn=a.G0,b.pltype=a.J0,a.Hx&&(b.m=a.Hx));return b};
g.IT=function(a){return sT(a)&&a.Za?(a={},a.fairplay="https://web.archive.org/web/20240102114909/https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.ge||null};
RRa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.nG(b.text):a.paidContentOverlayText};
SRa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?we(b.durationMs):a.paidContentOverlayDurationMs};
JT=function(a){var b="";if(a.bM)return a.bM;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.rb?"window":"live");a.Xd&&(b="post");return b};
g.KT=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
TRa=function(a){return!!a.rj||!!a.HP||!!a.py||!!a.qy||a.zW||a.N.focEnabled||a.N.rmktEnabled};
g.LT=function(a){return!!(a.hd||a.Of||a.Il||a.hlsvp||a.Pv())};
oT=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Fb(a.Ea,"ypc");a.ypcPreview&&(b=!1);return a.Ee()&&!a.loading&&(g.LT(a)||g.Fb(a.Ea,"heartbeat")||b)};
uT=function(a,b){a=Mna(a);var c={};if(b){b=g.u(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.u(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};
QRa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.wl);for(var c=0;c<a.RB.length;c++)for(var d=a.RB[c],e=0;e<b.length;e++){var f=b[e],h=f.Lc.id==d.audioTrackId;if(f.Lc.isDefault&&c==a.zU||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.C=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
f.B=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}};
uRa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==(c=g.R(b,g.nN))?void 0:c.navigationEndpoint)||(null==(d=g.R(b,g.nN))?void 0:d.command);e&&(a.Uo=!!g.R(e,URa))};
ZQa=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.ji=c);if(a.ji){a.embeddedPlayerConfig=a.ji.embeddedPlayerConfig||null;if(c=a.ji.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);if(c=a.ji.embedPreview){c=c.thumbnailPreviewRenderer;wQa(a,c.controlBgHtml);if(d=c.defaultThumbnail)a.Z=
US(d);(d=g.R(null==c?void 0:c.videoDetails,VRa))&&yRa(a,b,d);d=g.R(null==c?void 0:c.videoDetails,WRa);a.Pe=!!c.addToWatchLaterButton;uRa(a,c.shareButton);if(null==d?0:d.musicVideoType)a.musicVideoType=d.musicVideoType;var e,f,h,l,m;if(d=g.R(null==(e=a.getEmbeddedPlayerResponse())?void 0:null==(f=e.embedPreview)?void 0:null==(h=f.thumbnailPreviewRenderer)?void 0:null==(l=h.playButton)?void 0:null==(m=l.buttonRenderer)?void 0:m.navigationEndpoint,g.yT))hQa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&
(a.lengthSeconds=we(c.videoDurationSeconds));c.webPlayerActionsPorting&&vQa(a,c.webPlayerActionsPorting);if(e=g.R(null==c?void 0:c.playlist,XRa)){a.Nm=!0;f=[];h=Number(e.currentIndex);if(e.contents)for(l=0,m=e.contents.length;l<m;l++)if(c=e.contents[l].playlistPanelVideoRenderer){d=c.shortBylineText?g.nG(c.shortBylineText):"";var n=c.title?g.nG(c.title):"";f.push({author:d,encrypted_id:c.videoId,title:n,channel_path:l===h?b.channel_path:"",profile_picture:l===h?b.profile_picture:"",is_private:l===
h?a.isPrivate:!0,is_dni:l===h?a.Gf:!1,dni_color:l===h?a.vp:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.nG(e.titleText));e.shortBylineText&&(b.author=g.nG(e.shortBylineText));a.DU=b}var p,q,r;if(b=g.R(null==(p=a.getEmbeddedPlayerResponse())?void 0:null==(q=p.embedPreview)?void 0:null==(r=q.thumbnailPreviewRenderer)?void 0:r.infoPanel,wRa)){a.uC=Number(null==b?void 0:b.durationMs)||NaN;if(null==b?0:b.infoPanelOverviewViewModel)a.yf=null==
b?void 0:b.infoPanelOverviewViewModel;if(null==b?0:b.infoPanelDetailsViewModel)a.Em=null==b?void 0:b.infoPanelDetailsViewModel}}if(a.ji.previewPlayabilityStatus){if(a.oy=a.ji.previewPlayabilityStatus,p=a.oy,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=fQa(p.errorCode);q=p.errorScreen;if(r=null==q?void 0:q.playerErrorMessageRenderer){a.mC=r;if(b=r.reason)a.errorReason=g.nG(b);if(r=r.subreason)a.dn=g.nG(r)}else a.errorReason=p.reason||null;switch(p.status){case "LOGIN_REQUIRED":a.errorDetail=
"1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var t;(null==q?0:null==(t=q.playerKavRenderer)?0:t.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=p.isBlockedInRestrictedMode?"5":"0"}}}else a.ji.playabilityStatus&&(a.Rm=a.ji.playabilityStatus,YRa(a)&&(a.errorDetail="0",a.Rm&&((t=a.Rm.embeddedPlayerErrorMessageRenderer)?a.mC=g.R(t,ZRa):a.errorReason=a.Rm.reason||null)));(t=a.ji.attestation)&&qQa(a,t);(t=a.ji.permissions)&&t.allowImaMonetization&&
(a.allowImaMonetization=!0);t&&t.allowPfpUnbranded&&(a.allowPfpUnbranded=!0)}};
yRa=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.R(null==(e=g.R(null==c?void 0:c.channelThumbnailEndpoint,$Ra))?void 0:e.urlEndpoint,g.zG))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.R(e,aSa)){if(d=e.title)b.title=g.nG(d);if(e=e.subtitle)b.subtitle=g.nG(e)}if(c=c.expandedRenderer)if(c=g.R(c,bSa)){if(e=c.title)b.expanded_title=g.nG(e);if(e=c.subtitle)b.expanded_subtitle=g.nG(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.R(c,g.MT),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.Hl=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.nL=b.toggledServiceEndpoint||null,a.mL=b.defaultServiceEndpoint||
null):(a.nL=b.defaultServiceEndpoint||null,a.mL=b.toggledServiceEndpoint||null)))}};
g.NT=function(a){return vT(a)&&!a.allowLiveDvr};
OT=function(a){return vT(a)&&a.allowLiveDvr};
vT=function(a){return a.L("html5_live_head_playable")&&xT(a)&&"yt"===a.Fa.Ba?a.isLiveHeadPlayable:a.isLivePlayback};
g.PT=function(a){return!!a.j&&ZNa(a.j)};
g.QT=function(a){return!!a.j&&$Na(a.j)};
IRa=function(a){return a.PO()||g.RT(a)};
g.ST=function(a){return!!a.j&&aOa(a.j)};
g.RT=function(a){return!!a.j&&bOa(a.j)};
g.cSa=function(a){if(a.jL)return null;var b=a.I_;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.dSa=function(a){return a.jL?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.TT=function(a){return a.L("enable_wn_infocards")};
g.UT=function(a){var b,c,d,e;return(g.TT(a)?null==(b=a.Qa)?void 0:null==(c=b.cards)?void 0:c.cardCollectionRenderer:null==(d=a.playerResponse)?void 0:null==(e=d.cards)?void 0:e.cardCollectionRenderer)||null};
g.eSa=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.u(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};
VT=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.Fa.La};
g.WT=function(a){return"shortspage"===VT(a)};
CT=function(a){return"shortspage"===(a.eventLabel||a.Fa.La)};
XT=function(a){if(a.isAd()&&a.videoId!=a.Fa.Ie)return a.Fa.Ie};
ZT=function(a){return a.fl||"detailpage"==VT(a)||"shortspage"==VT(a)||a.mutedAutoplay};
fSa=function(a){var b=a.L("enable_cleanup_masthead_autoplay_hack_fix");return b&&"adunit"==VT(a)?a.Zp:ZT(a)?"detailpage"==VT(a)||"shortspage"==VT(a)?a.isAutonav||0<a.ac:b||"17_8"!==a.adFormat||a.isAutonav||g.DS(a.Fa)||a.Zp?a.Rf?!1:a.Fa.Hh||a.Fa.Qi||!g.mS(a.Fa)?!b&&"adunit"==VT(a)&&a.rj?!1:!0:!1:!1:(a.Rf?0:a.Hh)&&g.mS(a.Fa)?!0:!1};
g.$T=function(a){return a.oauthToken||a.Fa.sj};
gSa=function(a){var b=1,c=g.EJ(a.Fa.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;c=Infinity;if(a.L("html5_combine_format_loudness_and_video_target_loudness"))if(c=(null==(d=a.D)?void 0:d.audio.B)||a.iV){var e;d=c-(null!=(e=a.loudnessTargetLkfs)?e:0)}else d=a.Mf;else{var f;d=(null==(f=a.D)?void 0:f.audio.C)||a.Mf}if(a.L("html5_stateful_audio_normalization")){if(!isFinite(c))return b;e=a.U().Il;e=Math.min((a.applyStatefulNormalization?Math.min(a.loudnessTargetLkfs,e):Math.min(a.loudnessTargetLkfs,
c))-c,0);a.preserveStatefulLoudnessTarget&&(a.U().Il=c+e);return Math.min(1,Math.pow(10,e/20))||b}return Math.min(1,Math.pow(10,-d/20))||b};
DT=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===g.QR(a.Fa)&&"MUSIC"===a.Fa.j.ctheme;a.xj||!g.jH(a.Fa)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.xj=!0);if(b=g.sC())b=/Starboard\/([0-9]+)/.exec(g.mc()),b=10>(b?parseInt(b[1],10):NaN);c=a.Fa;c=("TVHTML5_CAST"===g.QR(c)||"TVHTML5"===g.QR(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.Fa.j.ctheme;var d;if(d=!a.xj)c||(c=a.Fa,c=
"TVHTML5"===g.QR(c)&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c||a.isExternallyHostedPodcast)&&(a.xj=!0);return a.Fa.deviceIsAudioOnly||a.xj&&a.Fa.K};
aU=function(a){var b,c,d;return a.isDaiEnabled()&&!!(null==(b=a.playerResponse)?0:null==(c=b.playerConfig)?0:null==(d=c.daiConfig)?0:d.ssaEnabledPlayback)};
hSa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
bU=function(a){return!(!a.Pm||!a.Fa.K)&&a.Pv()};
iSa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
wT=function(a){if(a.BV||a.cotn||!a.j||a.j.isOtf)return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;var b=!a.j.Ac&&!a.wj(),c=b&&RR&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!RR&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=cU(a),e;if(e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.wj()&&!a.j.Ac&&RR)e=a.Qm,e="1"===e?!1:"6"===e||"4"===e?!1:!0;(c=c||b||d||e)&&!a.uy&&a.va("sabr",{loc:"m"},!0);return c&&!!a.uy};
cU=function(a){if(a.enableServerStitchedDai)return!1;var b=a.Ac()&&!a.wj(),c=b&&RR&&a.L("html5_enable_sabr_live_streaming_xhr")&&a.L("html5_sabr_live");b=b&&!RR&&a.L("html5_enable_sabr_live_non_streaming_xhr")&&a.L("html5_sabr_live");var d=a.Ac()&&"ULTRALOW"!==a.latencyClass&&!a.isLowLatencyLiveStream,e=c&&a.Xd&&a.L("html5_sabr_post_live"),f=c&&a.isPremiere&&a.L("html5_sabr_premiere");d=(g.NT(a)||OT(a))&&d;var h=(g.NT(a)||OT(a))&&a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency");a=(g.NT(a)||
OT(a))&&"ULTRALOW"===a.latencyClass&&a.L("html5_sabr_live_ultra_low_latency");return c&&(e||f||d||h||a)||b};
g.dU=function(a){return a.WU&&wT(a)};
pRa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.bT(b);return b&&!a.Pm};
g.eU=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j;return!!b[a.B.id]&&gQ(b[a.B.id].resource.j)&&!!b[a.D.id]&&gQ(b[a.D.id].resource.j)};
jSa=function(a){return a.oy?["OK","LIVE_STREAM_OFFLINE"].includes(a.oy.status):!0};
YRa=function(a){return(a=a.Rm)&&a.showError?a.showError:!1};
tT=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")};
hRa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")};
kSa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
fRa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.qy=new CQa(b));if(b=b.video_masthead_ad_quartile_urls)a.HP=b.quartile_0_url,a.yS=b.quartile_25_url,a.DS=b.quartile_50_url,a.ES=b.quartile_75_url,a.xS=b.quartile_100_url,a.py=b.quartile_0_urls,a.bS=b.quartile_25_urls,a.qS=b.quartile_50_urls,a.rS=b.quartile_75_urls,a.OQ=b.quartile_100_urls};
eRa=function(a){var b={};a=g.u(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};
bRa=function(a){if(a){if(Kza(a))return a;a=Lza(a);if(Kza(a,!0))return a}return""};
g.lSa=function(a){return a.captionsLanguagePreference||a.Fa.captionsLanguagePreference||g.KT(a,"yt:cc_default_lang")||a.Fa.jj};
fU=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.zT=function(a){var b;return a.Ax||(null==(b=a.suggestions)?void 0:b[0])||null};
g.gU=function(a){return a.L("embeds_web_enable_pfp_unbranded_flag")?a.Fa.Jm&&a.allowPfpUnbranded:a.Gf&&a.Fa.Jm};
g.hU=function(a){var b=a.U(),c=g.mSa(b),d=a.Ba;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=VT(a);"leanback"===f?e="WATCH":b.L("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.kb?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.Po)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:nSa[e]}});a.zy&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.ma)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.pj&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=oSa[b];c.request=d;d=c.user||{};if(b=a.ra)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.tb)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.mSa=function(a){var b=g.qH(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.u(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.j.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.L("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.hd)b.thirdParty={embedUrl:a};return b};
tSa=function(a,b,c){var d=a.videoId,e=g.hU(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(YE()),referer:document.location.toString(),signatureTimestamp:19709};g.bD();a.isAutonav&&(h.autonav=!0);g.cD(0,141)&&(h.autonavState=g.cD(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.cD(0,66);fSa(a)&&(h.autoplay=!0);f.K&&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.u(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.u(q);for(var r=q.next();!r.done;r=q.next()){var t=g.u(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var v=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),v&&(m.viralCampaignId=
String(v));else if("video_ad"===p.adtype){var x={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=pSa[p.breaktype])x.breakType=p;q&&(x.url=q);r&&(x.presetAd=r);t&&(x.viralAdResponseUrl=t);v&&(x.viralCampaignId=String(v));n.push(x)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.cM;if(null!=m){m={startWalltime:String(m)};if(n=a.Im)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Rf?0:a.Hh)h.splay=!0;m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.qv)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.vl){n=a.sS;l=[];p=g.u(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:qSa[r[1]]||"UNKNOWN_FORM_FACTOR",clientName:rSa[r[0]]||"UNKNOWN_INTERFACE",
clientVersion:r[2]||"",platform:sSa[r[1]]||"UNKNOWN_PLATFORM"};r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(B){g.LF(B)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),void 0!==t.limit_ad_tracking&&null!==t.limit_ad_tracking&&(r.limitAdTracking=t.limit_ad_tracking),q.osName=t.os_name,q.userAgent=t.user_agent,q.windowHeightPoints=t.window_height_points,q.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}n=
a.sourceContainerPlaylistId;l=a.serializedMdxMetadata;if(n||l)p={},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=p;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.mS(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});
if(f=f.webPlayerContextConfig)h.encryptedHostFlags=f.encryptedHostFlags;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.U();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.cD(g.bD(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.BS(e)&&(d.captionParams.deviceCaptionsOn=
null!=h?!h:!1);a.CU&&(d.captionParams.deviceCaptionsLangPref=a.CU);a.pL.length?d.captionParams.viewerSelectedCaptionLangs=a.pL:g.BS(e)&&(h=g.HLa(),null==h?0:h.length)&&(d.captionParams.viewerSelectedCaptionLangs=h);h="onesie"===a.fetchType&&a.L("html5_onesie_attach_po_token");f="onesie"!==a.fetchType&&a.L("html5_non_onesie_attach_po_token");if(h||f)a=a.U(),a.Rf&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Rf);e.L("fetch_att_independently")&&(d.attestationRequest={omitBotguardData:!0});
return d};
vSa=function(a,b){var c,d,e;return g.Ha(function(f){if(1==f.j)return c={context:g.mSa(a.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.sH(uSa),g.z(f,g.gI(b,c,d),2);e=f.B;return f.return(e)})};
wSa=function(a,b,c){oLa(g.EJ(b.experiments,"bg_vm_reinit_threshold"))&&vSa(a,c).then(function(d){d&&(d=d.botguardData)&&g.zLa(d,b)},function(d){a.isDisposed()||(d=VK(d),a.va("attf",d.details))})};
xSa=function(){this.Hy={}};
ySa=function(a,b,c){iU(a,"part2viewed",1,0x8000000000000,c);iU(a,"engagedview",Math.max(1,1E3*b.Rb),0x8000000000000,c);b.isLivePlayback||(b=1E3*b.lengthSeconds,iU(a,"videoplaytime25",.25*b,b,c),iU(a,"videoplaytime50",.5*b,b,c),iU(a,"videoplaytime75",.75*b,b,c),iU(a,"videoplaytime100",b,0x8000000000000,c),iU(a,"conversionview",b,0x8000000000000,c),iU(a,"videoplaybackstart",1,b,c),iU(a,"videoplayback2s",2E3,b,c),iU(a,"videoplayback10s",1E4,b,c))};
iU=function(a,b,c,d,e){b in a.Hy||(c=new g.jK(c,d,{id:b,priority:2,namespace:"appad"}),e.addCueRange(c),a.Hy[b]=c)};
jU=function(a,b){g.H.call(this);this.app=a;this.state=b};
lU=function(a,b,c){a.state.W[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||kU(a,b,c);a.state.Z.add(b)};
mU=function(a,b,c){a.state.ma[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||kU(a,b,c);a.state.Z.add(b)};
kU=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))}};
g.nU=function(a,b,c){return a.state.j[b].apply(a.state.j,g.oa(c))};
zSa=function(a){return"videodatachange"===a||"resize"===a||"cardstatechange"===a};
oU=function(){g.iv.call(this);this.G=new Map};
ASa=function(){g.H.apply(this,arguments);this.element=null;this.Z=new Set;this.W={};this.ma={};this.j={};this.K={};this.G=void 0;this.ra=new Set;this.C=new oU;this.B=new oU;this.D=new oU;this.N=new oU};
BSa=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 pU(a)};
pU=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.u(CSa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
DSa=function(a,b,c,d){if(g.$a(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};
qU=function(a,b,c){jU.call(this,a,b);this.playerType=c};
FSa=function(a){lU(a,"cueVideoById",a.i5);lU(a,"loadVideoById",a.E7);lU(a,"cueVideoByUrl",a.j5);lU(a,"loadVideoByUrl",a.G7);lU(a,"playVideo",a.haa);lU(a,"pauseVideo",a.pauseVideo);lU(a,"stopVideo",a.Gba);lU(a,"clearVideo",a.clearVideo);lU(a,"getVideoBytesLoaded",a.q6);lU(a,"getVideoBytesTotal",a.r6);lU(a,"getVideoLoadedFraction",a.xW);lU(a,"getVideoStartBytes",a.u6);lU(a,"cuePlaylist",a.cuePlaylist);lU(a,"loadPlaylist",a.D7);lU(a,"nextVideo",a.i8);lU(a,"previousVideo",a.uaa);lU(a,"playVideoAt",a.faa);
lU(a,"setShuffle",a.setShuffle);lU(a,"setLoop",a.setLoop);lU(a,"getPlaylist",a.n6);lU(a,"getPlaylistIndex",a.getPlaylistIndex);lU(a,"getPlaylistId",a.getPlaylistId);lU(a,"loadModule",a.OX);lU(a,"unloadModule",a.f0);lU(a,"setOption",a.tR);lU(a,"getOption",a.i6);lU(a,"getOptions",a.ZN);lU(a,"mute",a.h8);lU(a,"unMute",a.gca);lU(a,"isMuted",a.isMuted);lU(a,"setVolume",a.vba);lU(a,"getVolume",a.getVolume);lU(a,"seekTo",a.fba);lU(a,"getPlayerMode",a.getPlayerMode);lU(a,"getPlayerState",a.l6);lU(a,"getAvailablePlaybackRates",
a.getAvailablePlaybackRates);lU(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
lU(a,"setPlaybackQuality",a.pba);lU(a,"getAvailableQualityLevels",a.V5);lU(a,"getCurrentTime",a.Y5);lU(a,"getDuration",a.c6);lU(a,"addEventListener",a.v4);lU(a,"removeEventListener",a.Jaa);lU(a,"getDebugText",a.a6);lU(a,"getVideoData",function(){return ESa(a)});
lU(a,"addCueRange",a.s4);lU(a,"removeCueRange",a.removeCueRange);lU(a,"setSize",a.setSize);lU(a,"getApiInterface",a.getApiInterface);lU(a,"destroy",a.destroy);lU(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.U();b.N||(lU(a,"getVideoEmbedCode",a.getVideoEmbedCode),lU(a,"getVideoUrl",a.w6));lU(a,"getMediaReferenceTime",a.g6);lU(a,"getSize",a.getSize);b.L("embeds_web_enable_set_faux_fullscreen_in_public_api")&&lU(a,"setFauxFullscreen",a.mba);b.N||lU(a,"logImaAdEvent",a.logImaAdEvent);lU(a,"preloadVideoById",
a.saa)};
GSa=function(a){var b=g.uS(a.app.U()),c,d=null==(c=a.app.getVideoData())?void 0:c.Nm;a=g.rU(a.app);return g.FC(b)&&!d||a?!1:!0};
ESa=function(a,b){b=void 0===b?a.playerType:b;var c={};if(b=g.sU(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=jSa(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};
HSa=function(a,b,c){qU.call(this,a,b,c)};
JSa=function(a){mU(a,"addEventListener",a.w4);mU(a,"removeEventListener",a.Kaa);mU(a,"cueVideoByPlayerVars",function(b,c){a.cueVideoByPlayerVars(ISa(a,b),c)});
mU(a,"loadVideoByPlayerVars",function(b,c,d,e){a.loadVideoByPlayerVars(ISa(a,b),c,d,e)});
mU(a,"preloadVideoByPlayerVars",function(b,c,d,e){return void a.preloadVideoByPlayerVars(ISa(a,b),c,d,e)});
mU(a,"loadVideoById",a.F7);mU(a,"loadVideoByUrl",a.H7);mU(a,"playVideo",a.EQ);mU(a,"loadPlaylist",a.loadPlaylist);mU(a,"nextVideo",a.nextVideo);mU(a,"previousVideo",a.previousVideo);mU(a,"playVideoAt",a.playVideoAt);mU(a,"getVideoData",a.wW);mU(a,"seekBy",a.dba);mU(a,"seekTo",a.hba);mU(a,"showControls",a.showControls);mU(a,"hideControls",a.hideControls);mU(a,"cancelPlayback",a.cancelPlayback);mU(a,"getProgressState",a.getProgressState);mU(a,"isInline",a.isInline);mU(a,"setInline",a.setInline);mU(a,
"setLoopVideo",a.setLoopVideo);mU(a,"getLoopVideo",a.getLoopVideo);mU(a,"getVideoContentRect",a.getVideoContentRect);mU(a,"getVideoStats",a.v6);mU(a,"getCurrentTime",a.Z5);mU(a,"getDuration",a.d6);mU(a,"getPlayerState",a.m6);mU(a,"getVideoLoadedFraction",a.t6);mU(a,"mute",a.mJ);mU(a,"unMute",a.UK);mU(a,"setVolume",a.yK);mU(a,"loadModule",a.loadModule);mU(a,"unloadModule",a.unloadModule);mU(a,"getOption",a.getOption);mU(a,"getOptions",a.getOptions);mU(a,"setOption",a.setOption);mU(a,"addCueRange",
a.addCueRange);mU(a,"getDebugText",a.getDebugText);mU(a,"getStoryboardFormat",a.getStoryboardFormat);mU(a,"toggleFullscreen",a.toggleFullscreen);mU(a,"isFullscreen",a.isFullscreen);mU(a,"getPlayerSize",a.getPlayerSize);mU(a,"toggleSubtitles",a.toggleSubtitles);mU(a,"setCenterCrop",a.setCenterCrop);mU(a,"setFauxFullscreen",a.setFauxFullscreen);mU(a,"setSizeStyle",a.setSizeStyle);mU(a,"handleGlobalKeyDown",a.handleGlobalKeyDown);mU(a,"handleGlobalKeyUp",a.handleGlobalKeyUp);mU(a,"wakeUpControls",a.wakeUpControls)};
ISa=function(a,b){var c={};if(a.app.U().ma){a=g.u(KSa);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.u(LSa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
g.tU=function(a){return(a=MSa(a.app.zb()))?a.wi():null};
NSa=function(a,b,c){var d=a.app.bf(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
PSa=function(a){var b=void 0===b?5:b;return a?OSa[a]||b:b};
g.uU=function(a,b,c,d){qU.call(this,a,b,d);c&&(QSa(this),a.U().K&&JSa(this),FSa(this))};
QSa=function(a){kU(a,"getInternalApiInterface",a.getInternalApiInterface);kU(a,"addEventListener",a.u4);kU(a,"removeEventListener",a.Iaa);kU(a,"cueVideoByPlayerVars",a.cueVideoByPlayerVars);kU(a,"loadVideoByPlayerVars",a.loadVideoByPlayerVars);kU(a,"preloadVideoByPlayerVars",a.preloadVideoByPlayerVars);kU(a,"getAdState",a.getAdState);kU(a,"sendAbandonmentPing",a.sendAbandonmentPing);kU(a,"setLoopRange",a.setLoopRange);kU(a,"getLoopRange",a.getLoopRange);kU(a,"setAutonavState",a.setAutonavState);kU(a,
"seekTo",a.seekTo);kU(a,"seekBy",a.seekBy);kU(a,"seekToLiveHead",a.seekToLiveHead);kU(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);kU(a,"seekToStreamTime",a.seekToStreamTime);kU(a,"startSeekCsiAction",a.startSeekCsiAction);kU(a,"getStreamTimeOffset",a.getStreamTimeOffset);kU(a,"getVideoData",a.s6);kU(a,"setInlinePreview",a.setInlinePreview);kU(a,"getAppState",a.getAppState);kU(a,"updateLastActiveTime",a.updateLastActiveTime);kU(a,"setBlackout",a.setBlackout);kU(a,"setUserEngagement",
a.setUserEngagement);kU(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);kU(a,"getPresentingPlayerType",a.cI);kU(a,"canPlayType",a.canPlayType);kU(a,"updatePlaylist",a.updatePlaylist);kU(a,"updateVideoData",a.updateVideoData);kU(a,"updateEnvironmentData",a.updateEnvironmentData);kU(a,"sendVideoStatsEngageEvent",a.kba);kU(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);kU(a,"setSafetyMode",a.setSafetyMode);kU(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,
b)});
kU(a,"getVideoAspectRatio",a.getVideoAspectRatio);kU(a,"getPreferredQuality",a.getPreferredQuality);kU(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);kU(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);kU(a,"onAdUxClicked",a.onAdUxClicked);kU(a,"getFeedbackProductData",a.getFeedbackProductData);kU(a,"getStoryboardFrame",a.getStoryboardFrame);kU(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);kU(a,"getStoryboardLevel",a.getStoryboardLevel);kU(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
kU(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);kU(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);kU(a,"addCueRange",a.addCueRange);kU(a,"addUtcCueRange",a.addUtcCueRange);kU(a,"showAirplayPicker",a.showAirplayPicker);kU(a,"dispatchReduxAction",a.dispatchReduxAction);kU(a,"getPlayerResponse",a.getPlayerResponse);kU(a,"getWatchNextResponse",a.getWatchNextResponse);kU(a,"getHeartbeatResponse",a.getHeartbeatResponse);kU(a,"changeMarkerVisibility",a.changeMarkerVisibility);
kU(a,"getCurrentTime",a.getCurrentTime);kU(a,"getDuration",a.getDuration);kU(a,"getPlayerState",a.getPlayerState);kU(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);kU(a,"getProgressState",a.getProgressState);kU(a,"getVolume",a.getVolume);kU(a,"setVolume",a.yK);kU(a,"isMuted",a.isMuted);kU(a,"mute",a.mJ);kU(a,"unMute",a.UK);kU(a,"loadModule",a.loadModule);kU(a,"unloadModule",a.unloadModule);kU(a,"getOption",a.getOption);kU(a,"getOptions",a.getOptions);kU(a,"setOption",a.setOption);kU(a,"loadVideoById",
a.loadVideoById);kU(a,"loadVideoByUrl",a.loadVideoByUrl);kU(a,"playVideo",a.EQ);kU(a,"loadPlaylist",a.loadPlaylist);kU(a,"nextVideo",a.nextVideo);kU(a,"previousVideo",a.previousVideo);kU(a,"playVideoAt",a.playVideoAt);kU(a,"getDebugText",a.getDebugText);kU(a,"setAutonav",a.setAutonav);kU(a,"isNotServable",a.isNotServable);kU(a,"channelSubscribed",a.channelSubscribed);kU(a,"channelUnsubscribed",a.channelUnsubscribed);kU(a,"togglePictureInPicture",a.togglePictureInPicture);kU(a,"supportsGaplessAudio",
a.supportsGaplessAudio);kU(a,"supportsGaplessShorts",a.supportsGaplessShorts);kU(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
kU(a,"clearQueue",a.clearQueue);kU(a,"getAudioTrack",a.G5);kU(a,"setAudioTrack",a.setAudioTrack);kU(a,"getAvailableAudioTracks",a.H5);kU(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);kU(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);kU(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);kU(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);kU(a,"setMinimized",a.setMinimized);kU(a,"setOverlayVisibility",a.setOverlayVisibility);kU(a,"confirmYpcRental",a.confirmYpcRental);
kU(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);kU(a,"isSubtitlesOn",a.isSubtitlesOn);kU(a,"queueNextVideo",a.queueNextVideo);kU(a,"handleExternalCall",a.handleExternalCall);kU(a,"logApiCall",a.logApiCall);kU(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);kU(a,"setScreenLayer",a.setScreenLayer);kU(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);kU(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);kU(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);kU(a,
"syncVolume",a.syncVolume);kU(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);kU(a,"openSettingsMenuItem",a.openSettingsMenuItem);kU(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);kU(a,"getVisibilityState",a.getVisibilityState);kU(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);kU(a,"setGlobalCrop",a.setGlobalCrop);kU(a,"setInternalSize",a.setInternalSize);a.app.U().L("embeds_web_enable_set_faux_fullscreen_in_public_api")&&kU(a,"setFauxFullscreen",a.setFauxFullscreen)};
SSa=function(a){a.state.G||(a.state.G={addEventListener:function(b,c){RSa(a,b,c)},
removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.db(c));var d=a.state.K[c];d&&(a.app.Nk.unsubscribe(b,d),delete a.state.K[c])}});
return a.state.G};
RSa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.db(c));if(!a.state.K[d]){var e=function(f){c({target:a.state.G,data:f})};
a.state.K[d]=e;a.app.Nk.subscribe(b,e)}};
wU=function(a,b,c){a=g.vU(a.Le(),b);return c?(c.addOnDisposeCallback(a),null):a};
g.xU=function(a,b,c){return a.app.U().yf?b:g.qK("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})};
TSa=function(a){a.Le().element.setAttribute("aria-live","polite")};
g.yU=function(a,b){g.uU.call(this,a,b,!1)};
g.zU=function(a){a=a.zb();var b=a.Fe.get("endscreen");return b&&b.mu()?!0:a.LF()};
g.AU=function(a,b){3===a.getPresentingPlayerType()?a.oa("mdxautoplaycancel"):a.ib("onAutonavCancelled",b)};
g.CU=function(a){var b=BU(a.zb());return a.app.oi&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.Tk()&&b.Ep()||!!a.getPlaylist()};
g.DU=function(a){var b=a.U();if(!g.mS(b)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(b.Ea||"EMBEDDED_PLAYER_MODE_DEFAULT")||a.getPlaylist())return!1;var c=g.tU(a);b=a.getVideoData();a=c?c.UN():a.getPlayerSize();var d;return!!(b&&(null==(d=b.embeddedPlayerConfig)?0:d.isShortsExperienceEligible)&&a.width<=a.height)};
g.USa=function(a,b,c){g.nU(a,"addEmbedsConversionTrackingParams",[b]);g.KP(b,c)};
g.FU=function(a){return(a=g.EU(a.zb()))?a.gI():{}};
g.VSa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.GU=function(a,b,c){a=a.qb().element;var d=Tb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));mf(a,b,d);b.setAttribute("data-layer",String(c))};
g.HU=function(a){var b=a.U();if(!b.He)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!fU(c);d=c.isLivePlayback&&(!b.L("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Tk();var f=c.Qa&&c.Qa.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Gf&&f;return!c.ypcPreview&&(!d||e)&&!g.Fb(c.Ea,"ypc")&&
!a&&(!g.mS(b)||f)};
WSa=function(a){a=g.sU(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.hY)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.va("iqss",{trigger:d},!0),!0):!1};
XSa=function(){aD.apply(this,arguments);this.bx={}};
IU=function(){YSa||(YSa=new XSa);return YSa};
ZSa=function(a,b){b?a.bx.Authorization="Bearer "+b:delete a.bx.Authorization};
JU=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.FD)()-f).toFixed(),shost:g.Gl(a),trigger:b};$Sa(h,a);c&&c(h);d&&!l&&d(new TK("pathprobe.net",h))}
var f=(0,g.FD)();g.fC(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
$Sa=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(),aTa&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
cTa=function(a,b){YO(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(XO(a,112),XO(a,c<<1^c>>31));YO(a,16,b.B7);YO(a,17,b.detailedNetworkType);YO(a,18,b.U4);YO(a,19,b.T4);YO(a,21,b.Eba);YO(a,23,b.I4);YO(a,28,b.HQ);YO(a,29,b.Uba);YO(a,34,b.visibility);c=b.playbackRate;if(void 0!==c){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(void 0!==c)for(XO(a,285),WO(a,4),d=0;4>d;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}YO(a,36,b.w5);
bP(a,38,b.mediaCapabilities,bTa,3);YO(a,39,b.Tba);YO(a,40,b.Cv);YO(a,44,b.playerState);ZO(a,46,b.HV);YO(a,48,b.eba);YO(a,50,b.bv);YO(a,51,b.mx);YO(a,54,b.Xp);ZO(a,56,b.b8);YO(a,57,b.Z4);ZO(a,58,b.Xn);YO(a,59,b.lj);YO(a,60,b.Cw);ZO(a,61,b.isPrefetch)};
dTa=function(a){return{H4:TO(a,2),videoId:RO(a,3),mS:OO(a,4)}};
fTa=function(a){return{Qjb:UO(a,1,eTa)}};
eTa=function(a){return{conditions:TO(a,1),Ujb:OO(a,2)}};
gTa=function(a){return{LI:TO(a,1)}};
bTa=function(a,b){var c;if(b.aL)for(c=0;c<b.aL.length;c++)bP(a,1,b.aL[c],hTa,1);if(b.QG)for(c=0;c<b.QG.length;c++)bP(a,2,b.QG[c],iTa,1);YO(a,5,b.e7)};
iTa=function(a,b){YO(a,1,b.audioCodec);YO(a,2,b.numChannels);YO(a,3,b.xw);YO(a,6,b.Cba)};
hTa=function(a,b){YO(a,1,b.x0);YO(a,3,b.maxHeight);YO(a,4,b.maxWidth);YO(a,11,b.maxFramerate);YO(a,12,b.xw);ZO(a,15,b.p7)};
lTa=function(a){return{baa:OO(a,1),itag:RO(a,3),uZ:SO(a,4,jTa),lmt:OO(a,5),uib:OO(a,7),xtags:RO(a,15),X7:SO(a,23,kTa),Yz:SO(a,34,gTa)}};
jTa=function(a){return{iv:QO(a,5),s7:PO(a,7)}};
kTa=function(a){return{videoId:RO(a,2)}};
oTa=function(a,b){bP(a,2,b.zs,cTa,3);bP(a,3,b.KO,mTa,3);$O(a,4,b.onesieUstreamerConfig);$O(a,9,b.Go);bP(a,10,b.HK,nTa,3)};
pTa=function(a,b){YO(a,1,b.type);$O(a,2,b.value)};
qTa=function(a){return{rI:OO(a,3),sI:OO(a,4),qaa:PO(a,8),tjb:OO(a,10),Sjb:OO(a,12),Tjb:OO(a,13),Mjb:OO(a,14),Njb:OO(a,15)}};
rTa=function(a){return{qK:OO(a,1),rK:OO(a,2),seekSource:OO(a,3)}};
nTa=function(a,b){bP(a,1,b.clientInfo,sTa,3);$O(a,2,b.NQ);$O(a,3,b.playbackCookie);$O(a,4,b.Go);var c;if(b.pK)for(c=0;c<b.pK.length;c++)bP(a,5,b.pK[c],pTa,3);if(b.VK)for(c=0;c<b.VK.length;c++)YO(a,6,b.VK[c]);aP(a,7,b.yba)};
tTa=function(a,b){YO(a,1,b.Xh);YO(a,2,b.xH);YO(a,3,b.Au)};
uTa=function(a){return{Xh:OO(a,1),xH:OO(a,2),Au:OO(a,3)}};
sTa=function(a,b){aP(a,12,b.deviceMake);aP(a,13,b.deviceModel);YO(a,16,b.clientName);aP(a,17,b.clientVersion);aP(a,18,b.osName);aP(a,19,b.osVersion)};
mTa=function(a,b){$O(a,2,b.LV);$O(a,5,b.encryptedClientKey);$O(a,6,b.iv);$O(a,7,b.cX);ZO(a,10,b.g_);ZO(a,13,b.JV);ZO(a,14,b.pN);$O(a,16,b.jca);ZO(a,17,b.u0)};
vTa=function(a,b){aP(a,1,b.name);aP(a,2,b.value)};
wTa=function(a){return{minBandwidthBytesPerSec:OO(a,1),minReadaheadMs:OO(a,2)}};
xTa=function(a,b){aP(a,1,b.url);var c;if(b.zO)for(c=0;c<b.zO.length;c++)bP(a,2,b.zO[c],vTa,3);$O(a,3,b.postBody);ZO(a,4,b.yaa);ZO(a,6,b.wB)};
yTa=function(a){return{jZ:OO(a,1),eX:OO(a,2),body:QO(a,4)}};
zTa=function(a){return{startMinReadaheadPolicy:UO(a,1,wTa),resumeMinReadaheadPolicy:UO(a,2,wTa)}};
ATa=function(a){return{first:OO(a,1),AX:OO(a,2)}};
CTa=function(a,b){bP(a,1,b.formatId,KU,3);YO(a,2,b.startTimeMs);YO(a,3,b.durationMs);YO(a,4,b.cq);YO(a,5,b.qj);bP(a,9,b.Thb,BTa,3);bP(a,11,b.fkb,tTa,1);bP(a,12,b.gkb,tTa,1)};
DTa=function(a,b){aP(a,1,b.videoId);YO(a,2,b.lmt)};
BTa=function(a,b){var c;if(b.JU)for(c=0;c<b.JU.length;c++)bP(a,1,b.JU[c],DTa,3)};
KU=function(a,b){YO(a,1,b.itag);YO(a,2,b.lmt);aP(a,3,b.xtags)};
ETa=function(a){return{itag:OO(a,1),lmt:OO(a,2),xtags:RO(a,3)}};
FTa=function(a,b){bP(a,1,b.formatId,KU,3);YO(a,2,b.Gj);YO(a,3,b.sequenceNumber);bP(a,4,b.JH,tTa,1);YO(a,5,b.JX)};
HTa=function(a){return{xZ:OO(a,1),items:UO(a,2,GTa),k8:OO(a,3)}};
GTa=function(a){return{vP:OO(a,1),iJ:OO(a,2),minReadaheadMs:OO(a,3)}};
ITa=function(a){return{token:RO(a,1),videoId:RO(a,2)}};
KTa=function(a){return{Aaa:RO(a,1),action:OO(a,2),YZ:SO(a,3,JTa)}};
JTa=function(a){return{wp:OO(a,1)}};
LTa=function(a,b){var c;if(b.Uv)for(c=0;c<b.Uv.length;c++)bP(a,1,b.Uv[c],KU,3);if(b.Vd)for(c=0;c<b.Vd.length;c++)bP(a,2,b.Vd[c],CTa,3);aP(a,3,b.clipId)};
MTa=function(a,b){bP(a,1,b.zs,cTa,3);var c;if(b.Uv)for(c=0;c<b.Uv.length;c++)bP(a,2,b.Uv[c],KU,3);if(b.Vd)for(c=0;c<b.Vd.length;c++)bP(a,3,b.Vd[c],CTa,3);$O(a,5,b.videoPlaybackUstreamerConfig);if(b.Un)for(c=0;c<b.Un.length;c++)bP(a,6,b.Un[c],FTa,3);if(b.CF)for(c=0;c<b.CF.length;c++)bP(a,16,b.CF[c],KU,3);if(b.DF)for(c=0;c<b.DF.length;c++)bP(a,17,b.DF[c],KU,3);bP(a,19,b.HK,nTa,3);if(b.GK)for(c=0;c<b.GK.length;c++)bP(a,1E3,b.GK[c],LTa,3)};
NTa=function(a){return{bitrate:OO(a,6),width:OO(a,7),height:OO(a,8),fps:OO(a,25),averageBitrate:OO(a,31),audioSampleRate:OO(a,45),audioChannels:OO(a,46)}};
OTa=function(a){return{targetAudioReadaheadMs:OO(a,1),targetVideoReadaheadMs:OO(a,2),backoffTimeMs:OO(a,4),playbackCookie:QO(a,7),videoId:RO(a,8)}};
g.LU=function(a){this.tag=a};
QTa=function(a,b){PTa.apply(null,[6,a,b].concat(g.oa(g.Ia.apply(2,arguments))))};
RTa=function(a,b){PTa.apply(null,[5,a,b].concat(g.oa(g.Ia.apply(2,arguments))))};
PTa=function(a,b,c){var d=g.Ia.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.KF(new (Function.prototype.bind.apply(g.eD,[null,f].concat(g.oa(d)))),e);d.unshift(f);d=d.join(", ");e=STa.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){}STa.set(b,f);e=f}a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
MU=function(a){this.B={};this.logger=new g.LU(a)};
TTa=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")};
g.NU=function(a,b,c,d){d=void 0===d?!1:d;g.kG.call(this,b);var e=this;this.J=a;this.Ea=d;this.N=new g.aL(this);this.ma=new g.MG(this,c,!0,void 0,void 0,function(){e.XV()});
g.J(this,this.N);g.J(this,this.ma)};
UTa=function(a){a.B&&(document.activeElement&&g.pf(a.element,document.activeElement)&&(rf(a.B),a.B.focus()),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.UC(a.N);a.W=void 0};
OU=function(a,b,c){a.Zj()?a.Pb():a.od(b,c)};
VTa=function(a,b,c,d){d=new g.U({I:"div",Ma:["ytp-linked-account-popup-button"],ya:d,Y:{role:"button",tabindex:"0"}});b=new g.U({I:"div",S:"ytp-linked-account-popup",Y:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{I:"div",S:"ytp-linked-account-popup-title",ya:b},{I:"div",S:"ytp-linked-account-popup-description",ya:c},{I:"div",S:"ytp-linked-account-popup-buttons",V:[d]}]});g.NU.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.J(this,this.dialog);
d.Ra("click",function(){e.Pb()});
g.J(this,d);g.GU(this.J,this.element,4);this.hide()};
g.QU=function(a,b,c,d){g.kG.call(this,a);this.priority=b;c&&g.PU(this,c);d&&this.Yd(d)};
g.RU=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");var d=a;"role"in d||(d.role="menuitem");c||(d=a,"tabindex"in d||(d.tabindex="0"));return{I:c?"a":"div",Ma:b,Y:a,V:[{I:"div",S:"ytp-menuitem-icon",ya:"{{icon}}"},{I:"div",S:"ytp-menuitem-label",ya:"{{label}}"},{I:"div",S:"ytp-menuitem-content",ya:"{{content}}"}]}};
SU=function(a,b){a.updateValue("icon",b)};
g.PU=function(a,b){a.updateValue("label",b)};
TU=function(a){g.QU.call(this,g.RU({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Lb=a.xn();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Hc(c)});
this.T(this.J,"videodatachange",this.D);this.Ra("click",this.onClick);this.D()};
UU=function(a){return a?g.nG(a):""};
VU=function(a){g.H.call(this);this.api=a};
WU=function(a){VU.call(this,a);var b=this;kU(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
kU(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new TU(b.api);g.J(b,b.menuItem)})};
WTa=function(a){VU.call(this,a);this.events=new g.aL(a);g.J(this,this.events);this.events.T(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.qD("adsClientStateChange",e)}})};
YTa=function(a){g.U.call(this,{I:"button",Ma:["ytp-button"],Y:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{I:"div",S:"ytp-autonav-toggle-button-container",V:[{I:"div",S:"ytp-autonav-toggle-button",Y:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.j=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.jC);this.Ra("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&&
XTa(this);wU(a,this.element,this);this.jC()};
XTa=function(a){a.B.push(a.T(a.J,"videodatachange",a.jC));a.B.push(a.T(a.J,"videoplayerreset",a.jC));a.B.push(a.T(a.J,"onPlaylistUpdate",a.jC));a.B.push(a.T(a.J,"autonavchange",a.CT))};
ZTa=function(a){a.isChecked=a.isChecked;a.Ha("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"Automaattinen toisto on k\u00e4yt\u00f6ss\u00e4":"Automaattinen toisto ei ole k\u00e4yt\u00f6ss\u00e4";a.updateValue("title",b);a.updateValue("label",b);a.J.Jh()};
$Ta=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&tRa(a.Dd())};
aUa=function(a){VU.call(this,a);var b=this;this.events=new g.aL(a);g.J(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new YTa(a);g.J(b,c);a.qs(c)})};
XU=function(a,b){g.QU.call(this,g.RU({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ra("click",this.onClick)};
YU=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
bUa=function(a){var b=!a.U().xj&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.ZU=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.dH(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.xwa(a,d,!0);return!1};
g.$U=function(a,b,c){if(zS(b.U())&&2!==b.getPresentingPlayerType()){if(g.dH(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else if(b.U().L("embeds_enable_webview_nonjs_navigation")&&g.mS(b.U())&&(zC()||xC()))b=c.target,b instanceof HTMLAnchorElement&&g.Mn(b,fga(a));else{var d=g.dH(c);d&&b.pauseVideo();g.xwa(a,void 0,!0);d&&(g.nH(a),c.preventDefault())}return!1};
dUa=function(){var a=cUa.includes("fi")?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,Y:{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"}}]}:{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,Y:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};a.S="ytp-subtitles-button-icon";return a};
eUa=function(){return{I:"div",S:"ytp-spinner-container",V:[{I:"div",S:"ytp-spinner-rotator",V:[{I:"div",S:"ytp-spinner-left",V:[{I:"div",S:"ytp-spinner-circle"}]},{I:"div",S:"ytp-spinner-right",V:[{I:"div",S:"ytp-spinner-circle"}]}]}]}};
fUa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.aV=function(a){return a.U().L("web_modern_player_settings")?gUa:a.U().L("web_modern_player_settings_quality_bottom")?hUa:iUa};
bV=function(a){var b=a.L("web_player_use_cinematic_label_2")?"Tunnelmavalaistus":"Elokuvamainen valaistus";XU.call(this,b,g.aV(a).iL);var c=this;this.J=a;this.j=!1;this.B=new g.Eu(function(){g.Ou(c.element,"ytp-menuitem-highlighted")},0);
this.Lb=a.xn();SU(this,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.D,this);this.Ra(jUa,this.C);g.J(this,this.B)};
lUa=function(a){VU.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){kUa(b)});
a.addEventListener("highlightSettingsMenu",function(c){kUa(b);var d=b.menuItem;"menu_item_cinematic_lighting"===c&&(g.Mu(d.element,"ytp-menuitem-highlighted"),g.Mu(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())});
kU(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})};
kUa=function(a){a.menuItem||(a.menuItem=new bV(a.api),g.J(a,a.menuItem),a.menuItem.Sa(a.j))};
cV=function(a){g.U.call(this,{I:"a",Ma:["ytp-cultural-moment-overlay","ytp-hip-hop-50-overlay","ytp-button"],Y:{title:"{{title}}","aria-label":"{{aria_label}}",href:"{{url}}",target:"_blank"}});var b=this;this.api=a;this.api.createClientVe(this.element,this,188815);this.T(this.element,"click",function(c){c.preventDefault();b.api.logClick(b.element);b.api.ib("innertubeCommand",b.command)});
wU(this.api,this.element,this)};
nUa=function(a){VU.call(this,a);var b=this;this.B=new g.Eu(this.j,1E4,this);this.D=!1;this.C=!0;this.events=new g.aL(a);g.J(this,this.events);g.J(this,this.B);this.events.T(a,"basechromeinitialized",function(){g.J(b,b.culturalMomentOverlay);b.culturalMomentOverlay=new cV(b.api);b.G=new g.U({I:"div",Ma:["ytp-player-content","ytp-cultural-moment-player-content"],V:[b.culturalMomentOverlay]});g.GU(b.api,b.G.element,4);b.culturalMomentOverlay.hide()});
this.events.T(a,"presentingplayerstatechange",function(){b.j()});
this.events.T(a,"onHideControls",function(){b.C=!1;b.j()});
this.events.T(a,"onShowControls",function(){b.C=!0;b.B.start();b.j()});
this.events.T(a,"videodatachange",function(){var c,d,e,f=null==(c=a.getVideoData())?void 0:null==(d=c.getWatchNextResponse())?void 0:null==(e=d.playerOverlays)?void 0:e.playerOverlayRenderer;c=g.R(null==f?void 0:f.culturalMomentOverlay,mUa);(null==c?0:c.endpoint)&&null!=(d=b.culturalMomentOverlay)&&(e=c.endpoint,d.command=e,(f=g.R(e,g.zG))?d.updateValue("url",f.url):d.updateValue("url",g.R(e,g.dV).canonicalBaseUrl));(null==c?0:c.tooltipText)&&null!=(d=b.culturalMomentOverlay)&&(e=g.nG(c.tooltipText),
d.updateValue("title",e),d.updateValue("aria_label",e));b.D=!!c;b.D&&b.B.start();b.j()})};
eV=function(a){VU.call(this,a);var b=this;this.j={};this.events=new g.aL(a);g.J(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()});
this.events.T(a,g.kK("embargo"),function(c){b.api.jo(!0);var d,e=null!=(d=b.j[c.id])?d:[];d=g.u(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.xg("auth",2,"This video isn't available in your current playback area",SK({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=null==(e=f.embargo)?void 0:e.onTrigger)&&b.api.ib("innertubeCommand",f)}})};
oUa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.B)};
pUa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number(null==(d=c.playbackPosition)?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number(null==(f=c.duration)?void 0:f.seconds);f="embargo_"+e;a.api.addUtcCueRange(f,e,d,"embargo",!1);c.onEnter&&(a.j[f]=c.onEnter.filter(a.B))}};
qUa=function(a){VU.call(this,a);var b=this;this.j=[];this.events=new g.aL(a);g.J(this,this.events);kU(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().So&&b.addEmbedsConversionTrackingParams(c)});
this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=Qj(c.visualElement.getAsJspb(),2),b.j.push(c))})};
rUa=function(a){VU.call(this,a);var b=this;this.events=new g.aL(a);g.J(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){FP(EP(),16623);b.j=g.HF();var d=a.U().Hh&&!c.Rf;if(ZT(c)&&d){FP(EP(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=null==(e=c.getWatchNextResponse())?void 0:e.trackingParams;f&&HP(f)}if(c.getPlayerResponse()){var h;(c=null==(h=c.getPlayerResponse())?void 0:h.trackingParams)&&HP(c)}}else FP(EP(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=null==(f=c.getEmbeddedPlayerResponse())?void 0:f.trackingParams)&&HP(h)});
this.events.T(a,"loadvideo",function(){FP(EP(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"cuevideo",function(){FP(EP(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"largeplaybuttonclicked",function(c){FP(EP(),27240,c.visualElement)});
this.events.T(a,"playlistnextbuttonclicked",function(c){FP(EP(),27240,c.visualElement)});
this.events.T(a,"playlistprevbuttonclicked",function(c){FP(EP(),27240,c.visualElement)});
this.events.T(a,"playlistautonextvideo",function(){FP(EP(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
sUa=function(a){var b;return(null==(b=((null==a?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))?void 0:b.timeCounterRenderer)||null};
fV=function(a){g.U.call(this,{I:"div",Ma:["ytp-player-content","ytp-iv-player-content"],V:[{I:"div",S:"ytp-free-preview-countdown-timer",V:[{I:"span",ya:"{{label}}"},{I:"span",S:"ytp-free-preview-countdown-timer-separator",ya:"\u2022"},{I:"span",ya:"{{duration}}"}]}]});this.api=a;this.j=null;this.C=this.B=0;this.T(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
uUa=function(a,b){a.j||(a.B=b,a.C=(0,g.FD)(),a.j=new g.Cu(function(){tUa(a)},null),tUa(a))};
tUa=function(a){var b=Math,c=b.round,d=Math.min((0,g.FD)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",WGa({seconds:b}));0>=b&&a.j?vUa(a):a.j&&a.j.start()};
vUa=function(a){a.j&&(a.j.dispose(),a.j=null)};
wUa=function(a){VU.call(this,a);var b=this;this.events=new g.aL(a);g.J(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new fV(a);g.J(b,b.j);g.GU(a,b.j.element,4);b.j.hide()})};
gV=function(a){g.U.call(this,{I:"button",Ma:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",Ma:["ytp-fullerscreen-edu-text"],ya:"N\u00e4et tiedot vieritt\u00e4m\u00e4ll\u00e4 alas"},{I:"div",Ma:["ytp-fullerscreen-edu-chevron"],V:[{I:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Y:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],Y:{"data-priority":"1"}});this.Ua=a;this.j=new g.MG(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,
this,61214);g.J(this,this.j);this.T(a,"fullscreentoggled",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.Ra("click",this.onClick);this.Sa()};
hV=function(a){VU.call(this,a);var b=this;this.events=new g.aL(a);g.J(this,this.events);kU(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
kU(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&zS(c)&&"1"===c.controlsType&&this.events.T(a,"standardControlsInitialized",function(){b.j=new gV(a);g.J(b,b.j);a.qs(b.j)})};
xUa=function(a){g.U.call(this,{I:"div",S:"ytp-gated-actions-overlay",V:[{I:"div",S:"ytp-gated-actions-overlay-background",V:[{I:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{I:"button",Ma:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Y:{"aria-label":"Sulje"},V:[g.rG()]},{I:"div",S:"ytp-gated-actions-overlay-bar",V:[{I:"div",S:"ytp-gated-actions-overlay-text-container",V:[{I:"div",S:"ytp-gated-actions-overlay-title",ya:"{{title}}"},{I:"div",S:"ytp-gated-actions-overlay-subtitle",
ya:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Ha("ytp-gated-actions-overlay-background");this.B=this.Ha("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Ha("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.ib("onCloseMiniplayer")});
this.hide()};
zUa=function(a,b){var c=0,d={};for(c=0;c<b.length;d={TG:void 0},c++){var e=a.j[c],f=void 0,h=null==(f=e)?void 0:f.element;h||(h=new g.U({I:"button",S:"ytp-gated-actions-overlay-button",Y:{tabindex:"0"},V:[{I:"div",S:"ytp-gated-actions-overlay-button-title",ya:"{{buttonText}}"}]}),g.J(a,h),h.Ja(a.B),e={element:h});d.TG=g.R(b[c],yUa);var l=f=void 0,m=void 0,n=(null==(f=d.TG)?void 0:f.title)||(null==(l=d.TG)?void 0:null==(m=l.titleFormatted)?void 0:m.content)||"";h.update({buttonText:n});e.listener&&
h.Nc(e.listener);e.listener=h.Ra("click",function(p){return function(){var q,r=g.R(null==(q=p.TG)?void 0:q.onTap,OF);r&&a.api.ib("innertubeCommand",r)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
AUa=function(a){VU.call(this,a);var b=this;this.events=new g.aL(a);g.J(this,this.events);this.j=new xUa(this.api);g.J(this,this.j);this.events.T(a,"videodatachange",function(){var c,d=null==(c=b.api.getVideoData())?void 0:c.j4;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.u(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;zUa(c,d.actionButtons||[]);c.show()}else c.hide()});
g.GU(this.api,this.j.element,4)};
BUa=function(a){VU.call(this,a);a=a.U();a.lh.push("flix");a.rb=!1;a.Im=!1};
iV=function(a){VU.call(this,a);var b=this;mU(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()});
mU(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.oa(g.Ia.apply(0,arguments)))});
lU(this.api,"getSphericalProperties",function(){return 2===b.api.getPresentingPlayerType()?{}:b.getSphericalProperties()});
lU(this.api,"setSphericalProperties",function(){var c=g.Ia.apply(0,arguments);2!==b.api.getPresentingPlayerType()&&b.setSphericalProperties.apply(b,g.oa(c))})};
CUa=function(a){VU.call(this,a);kU(a,"createClientVe",this.createClientVe.bind(this));kU(a,"createServerVe",this.createServerVe.bind(this));kU(a,"destroyVe",this.destroyVe.bind(this));kU(a,"hasVe",this.hasVe.bind(this));kU(a,"logClick",this.logClick.bind(this));kU(a,"logVisibility",this.logVisibility.bind(this));kU(a,"setTrackingParams",this.setTrackingParams.bind(this))};
jV=function(a){VU.call(this,a);var b=this;this.events=new g.aL(a);g.J(this,this.events);kU(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)});
kU(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)});
kU(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})};
DUa=function(a,b,c){var d=1E3*a.api.getCurrentTime()<b?1:-1;a.api.Yw(d,c);a.api.seekTo(b/1E3,void 0,void 0,void 0,3)};
GUa=function(a){VU.call(this,a);var b=this;this.events=new g.aL(a);g.J(this,this.events);this.events.T(a,"videodatachange",function(){EUa(b)});
this.events.T(a,"presentingplayerstatechange",function(){FUa(b)})};
kV=function(a,b){navigator.mediaSession.setActionHandler(a,b)};
EUa=function(a){var b=a.api.getVideoData();if(null!=b&&b.Ee()){var c=a.api.U(),d=[],e="";if(!c.ma){var f=HUa(a);g.jH(c)&&f?(d=IUa(f.thumbnailDetails),f.album&&(e=YGa(f.album))):d=[{src:b.Wg("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}FUa(a);JUa(a);navigator.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.CU(a.api)&&(b=function(){a.api.nextVideo()},c=function(){a.api.previousVideo()});
kV("nexttrack",b);kV("previoustrack",c)}};
JUa=function(a){kV("play",function(){a.api.playVideo()});
kV("pause",function(){a.api.pauseVideo()});
kV("seekbackward",function(){a.api.seekBy(-5*a.api.getPlaybackRate())});
kV("seekforward",function(){a.api.seekBy(5*a.api.getPlaybackRate())})};
HUa=function(a){var b,c,d,e;return null==(b=a.api.getVideoData().getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:null==(e=d.browserMediaSession)?void 0:e.browserMediaSessionRenderer};
IUa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.u(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.gK(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
FUa=function(a){a=a.api.Vb();a=a.isCued()||a.isError()?"none":g.TL(a)?"playing":"paused";navigator.mediaSession.playbackState=a};
lV=function(a){VU.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.aL(a);g.J(this,this.events);this.events.T(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.R(l.compositeVideoOverlay,KUa),null==e?0:null==(d=e.sources)?0:d.length))for(d=g.u(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.WK({top:d.topLeftCornerY,right:1-d.topLeftCornerX-d.width,bottom:1-d.topLeftCornerY-d.height,left:d.topLeftCornerX})});
this.events.T(a,"videodatachange",function(c){var d=b.api.getVideoData();b.j=void 0;b.B.clear();b.api.wf("compositeembargo",1);var e=null==d?void 0:d.gL.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==e?0:e.length)?LUa(b,e.filter(function(f){return MUa(b,f)})):(null==d?0:d.cueRanges)&&LUa(b,d.cueRanges.filter(function(f){return MUa(b,f)}));
"dataupdated"===c&&(null==d?void 0:d.compositeLiveStatusToken)!==b.C&&(b.C=null==d?void 0:d.compositeLiveStatusToken,b.api.Fo())});
this.events.T(a,g.kK("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)!==c.id&&(b.api.jo(!0),b.B.has(c.id))){var e=b.B.get(c.id);d=b.api.getVideoData();e=g.u(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=null==(h=f.value.compositeEmbargo)?void 0:h.embargoStatusToken;d.gr!==f&&(d.gr=f,b.api.Fo());NUa(b,c)}}});
this.events.T(a,g.lK("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)===c.id&&(b.api.jo(!1),b.B.has(c.id))){if(c=b.api.getVideoData())c.gr=void 0;b.api.Fo();NUa(b)}});
this.events.T(a,"heartbeatRequest",function(c){null!==b.compositeVideoState&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)});
this.events.T(a,"onPlaybackAudioChange",function(){b.api.Fo()});
kU(a,"setCompositeParam",function(c){b.compositeVideoState=c})};
NUa=function(a,b){var c;(null==(c=a.j)?void 0:c.id)!==(null==b?void 0:b.id)&&(a.j&&(a.B.delete(a.j.id),a.api.Wp([a.j],1)),a.j=b)};
LUa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0;c=Number(null==(e=d.playbackRelativePosition)?void 0:e.utcTimeMs)/1E3;var f=void 0;e=c+Number(null==(f=d.duration)?void 0:f.seconds);f="composite_embargo_"+c;d.onEnter&&(d=d.onEnter.filter(a.D),d.length&&(a.B.set(f,d),a.api.addUtcCueRange(f,c,e,"compositeembargo",!1)))}};
MUa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.D)};
OUa=function(a){VU.call(this,a);kU(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));kU(this.api,"updateDownloadState",this.updateDownloadState.bind(this));kU(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));kU(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));kU(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));kU(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this))};
mV=function(a){VU.call(this,a);var b=this;kU(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()});
kU(a,"getAvailableQualityDataAndMessaging",function(){return b.getAvailableQualityDataAndMessaging()})};
PUa=function(a,b,c){var d=[],e=b?156595:151874;a=g.u(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};
QUa=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++}};
RUa=function(a){var b=new Set,c=new Map,d={};a=g.u(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.u(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};
nV=function(a){g.U.call(this,{I:"button",Ma:["ytp-pip-button","ytp-button"],Y:{title:"{{title}}","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},V:[Dva()]});var b=this;this.api=a;this.Ra("click",this.onClick);var c=this.api.An(),d=c.subscribe("visibilitystatechange",function(){b.Sa(c.zt())});
this.addOnDisposeCallback(function(){c.Fh(d)});
wU(a,this.element,this);this.Sa(c.zt())};
SUa=function(a){VU.call(this,a);var b=this;this.events=new g.aL(a);g.J(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.createButton()})};
TUa=function(a){var b=a.api.getVideoData();g.jG(a.button,b.tU)};
UUa=function(a){VU.call(this,a);var b=this;this.events=new g.aL(a);g.J(this,this.events);kU(this.api,"musicDisableUi",function(){g.Mu(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
kU(this.api,"musicEnableUi",function(){g.Ou(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
g.pV=function(a,b,c,d,e){b=void 0===b?!1:b;d=void 0===d?!1:d;e=void 0===e?!1:e;g.cG.call(this);this.W=e;this.N=!1;this.D=new SC(this);this.G=this.K=null;this.C=this.B=!1;g.J(this,this.D);this.target=a;this.j=b;this.Z=c||a;this.N=d;b&&(g.Pc&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));oV(this)};
qV=function(a){g.UC(a.D,!a.j)};
oV=function(a){a.G=null;a.K=null;a.T(rV("over"),a.Aw);a.T("touchstart",a.LL);a.j&&a.T(rV("down"),a.e8)};
VUa=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier===a.K)return d}return null};
rV=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
WUa=function(a,b,c){g.U.call(this,{I:"div",Ma:["ytp-overlay","ytp-speedmaster-overlay"],V:[{I:"div",S:"ytp-speedmaster-user-edu",V:[{I:"div",S:"ytp-speedmaster-label",ya:b},{I:"div",S:"ytp-speedmaster-icon",ya:"{{icon}}"}]}]});this.J=a;this.j=this.Ha("ytp-speedmaster-user-edu");c&&(this.updateValue("icon",sva()),g.Mu(this.j,"ytp-speedmaster-has-icon"));this.J.createClientVe(this.j,this,173040,!0);this.Mh()};
tV=function(a){VU.call(this,a);var b=this;this.D=this.C=!1;this.Qa=g.EJ(this.api.U().experiments,"speedmaster_touch_activation_ms")||500;this.Ba=g.EJ(this.api.U().experiments,"speedmaster_cancellation_movement_dp")||10;this.Na=g.EJ(this.api.U().experiments,"speedmaster_playback_rate")||2;this.B=new g.aL(a);g.J(this,this.B);var c=this.L("web_speedmaster_updated_edu");c&&(this.G="2x");this.speedmasterUserEdu=new WUa(a,this.G,c);g.J(this,this.speedmasterUserEdu);g.GU(this.api,this.speedmasterUserEdu.element,
4);this.j=new g.pV(this.api.qb().Wy,!0,null,!1,!0);g.J(this,this.j);this.delay=new g.Eu(this.Ga,this.Qa,this);g.J(this,this.delay);this.B.T(a,"videodatachange",function(d,e){if(c)sV(b);else{var f,h;if(d=null==(f=e.getWatchNextResponse())?void 0:null==(h=f.playerOverlays)?void 0:h.playerOverlayRenderer){var l,m;(f=null==(l=g.R(d.speedmasterUserEdu,XUa))?void 0:null==(m=l.bodyText)?void 0:m.content)&&f!==b.G&&(b.speedmasterUserEdu.j.textContent=f);b.G=f;sV(b)}}},this);
this.B.T(a,"presentingplayerstatechange",function(){sV(b)},this);
this.B.T(a,"autonavvisibility",function(){sV(b)},this);
this.api.An().subscribe("visibilitystatechange",function(){sV(b)});
this.B.T(a,"rootnodemousedown",function(d){b.ma=d});
this.L("web_speedmaster_spacebar_control")&&(this.B.T(a,"keyboardserviceglobalkeydown",function(d,e){b.W=e;YUa(b,d,!0)},this),this.B.T(a,"keyboardserviceglobalkeyup",function(d){YUa(b,d,!1)},this))};
uV=function(a){a.delay.stop();a.j.unsubscribe("dragmove",a.N,a);a.j.unsubscribe("dragend",a.K,a);a.C&&(a.C=!1,a.speedmasterUserEdu.Mh(),a.api.setPlaybackRate(a.Ea),a.api.showControls(),a.La&&a.api.pauseVideo())};
YUa=function(a,b,c){c?32!==b.keyCode||b.repeat||a.C||!a.D||g.Fu(a.delay):uV(a)};
sV=function(a){var b,c;var d=!!a.G&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.rf()&&2!==a.api.getPresentingPlayerType()&&!g.TG(a.api.Vb(),2)&&!(null==(c=g.tU(a.api))?0:c.Vf())&&!g.DU(a.api)&&ZUa(a.api.An());a.D!==d&&(a.D=d,a.D?a.j.subscribe("dragstart",a.ra,a):(a.j.unsubscribe("dragstart",a.ra,a),a.j.unsubscribe("dragmove",a.N,a),a.j.unsubscribe("dragend",a.K,a),uV(a)))};
$Ua=function(a){VU.call(this,a);var b=this;this.events=new g.aL(a);g.J(this,this.events);kU(this.api,"addPlayerResponseForAssociation",function(c){b.api.addPlayerResponseForAssociation(c)});
kU(this.api,"finishSegmentByCpn",function(c,d){return b.api.finishSegmentByCpn(c,d)});
this.events.T(a,"modulecreated",function(c){if("ad"===c&&(c=b.api.getVideoData(1))&&(c=c.getPlayerResponse())){var d;c=null!=(d=c.adPlacements)?d:[];d=g.u(c);for(var e=d.next();!e.done;e=d.next()){var f=c=void 0,h=void 0;if(e=null==(c=e.value.adPlacementRenderer)?void 0:null==(f=c.renderer)?void 0:null==(h=f.instreamVideoAdRenderer)?void 0:h.playerVars)c=SB(e),b.api.addPlayerResponseForAssociation(c)}}});
this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})};
vV=function(a,b,c){g.yb.call(this,b,a);this.j=c};
g.wV=function(a){LL.call(this);var b=this;this.j=a;this.G={};this.listener=function(c){b.dispatchEvent(new vV(b,c.type,c))}};
xV=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.j=a-1};
aVa=function(a){return a.data[a.j]||0};
yV=function(a){g.H.call(this);this.C=a;this.j=new Map;this.B=new g.Eu(this.sample,250,this);g.J(this,this.B);this.start()};
zV=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.B!==a.j;)a.B=(a.B+1)%a.data.length,b.push(a.data[a.B]);a=b}return a||[]};
AV=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:aVa(c.buffer))||0};
bVa=function(a){this.j=a;this.Vz=NaN;this.buffer=new xV(100)};
eVa=function(a){var b=a.ud(),c=a.getVideoData(),d=a.kf(),e=d.Fb(),f=a.U(),h=b.LD(),l=b.LR,m=8*AV(l,"bandwidth")/1024,n=AV(l,"networkactivity")/1024,p=AV(l,"bufferhealth");if(b.Ae){var q=b.videoData.useInnertubeDrmService()?"IT/":"";q+=b.Ae.j.qh()+"/"+TP(b.Gv());q+="/"+b.Ae.qh()}else q="";var r=q,t=b.getPlayerState().state.toString(16),v=d.getCurrentTime().toFixed(2),x=sL(d.Kh(),",",3);q="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(q+=c.wC?"DS":"SS");q+="DAI, ";var B=cVa(b);B&&(q+=B)}var F;
(null==(F=a.getVideoData(1))?0:g.dU(F))?(q+="SSAP, ",(F=cVa(b))&&(q+=F)):wT(c)&&(q+="SABR, ");if(c.fetchType){switch(c.fetchType){case "onesie":F="o";break;case "gp":F="gp";break;default:F="gvi"}q+="vd:"+F+", "}f.Qa&&(q=f.Qa.j?q+"wa, ":q+"w, ");q+="s:"+t+" t:"+v+" b:"+x+" ";d.Uf()&&(q+="S");d.isPaused()&&(q+="P");d.Ph()&&(q+="E");a.isOrchestrationLeader()&&(q+=" L");(d=b.zD())&&(q+=" l:"+d.toFixed());d=b.getCurrentTime();f=c.nG;d&&d>f.start&&d<f.end&&(q+=" as");d=q;q=g.OB(YH)("_start",void 0);f=[];
t=g.u(["pl_i","vir","or_p","orfb","pbs"]);for(v=t.next();!v.done;v=t.next())v=v.value,(x=g.OB(YH)(v,void 0))&&q&&(x-=q,f.push(v+":"+Math.round(x)));q=f.join(" ");f=g.AS();t=g.FU(a).l7;v=c.C&&!c.C.j?"display:none":"";if((x=c.clientPlaybackNonce)&&16==x.length){F=0;B="";for(var G=0;10>G;G++)if(F=(F<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(x.charAt(G)),4==G%5){for(var I="",L=0;6>L;L++)I="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(F&31)+I,F>>=5;B+=I}x=B.substr(0,4)+
" "+B.substr(4,4)+" "+B.substr(8,4)}else x="";m={video_id_and_cpn:String(c.videoId)+" / "+x,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:r?"":"display:none",drm:r,debug_info:d,extra_debug_info:"",bandwidth_style:v,network_activity_style:v,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none",playback_categories:""};n=e.clientWidth+"x"+e.clientHeight+(1<f?"*"+
f.toFixed(2):"");p="-";h.totalVideoFrames&&(p=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.getVolume();h=gSa(c);var P;n=(null==(P=c.D)?0:P.audio.j)?"DRC":Math.round(a*h)+"%";P=Math.round(a)+"% / "+n;a=c.Mf.toFixed(1);isFinite(Number(a))&&(P+=" (content loudness "+a+"dB)");m.volume=P;m.resolution=e.videoWidth+"x"+e.videoHeight;if(P=c.B)if(e=P.video)a=e.fps,1<a&&(m.resolution+="@"+a),(a=g.BV(b))&&a.video&&(m.resolution+=" / "+a.video.width+"x"+a.video.height,
1<a.video.fps&&(m.resolution+="@"+a.video.fps)),m.codecs=dVa(P),!c.D||P.audio&&P.video?P.kY&&(m.codecs+=" / "+P.kY+"A"):m.codecs+=" / "+dVa(c.D),e.B||e.primaries?(P=e.B||"unknown","smpte2084"===P?P+=" (PQ)":"arib-std-b67"===P&&(P+=" (HLG)"),m.color=P+" / "+(e.primaries||"unknown"),m.color_style=""):m.color_style="display:none";e=c.isLivePlayback;P=c.Xd;m.live_mode_style=e||P?"":"display:none";m.live_latency_style=e?"":"display:none";if(P)m.live_mode="Post-Live"+(xT(c)?" Manifestless":"");else if(e){P=
AV(l,"livelatency");m.live_latency_secs=P.toFixed(2)+"s";e=xT(c)?"Manifestless, ":"";c.rb&&(e+="Windowed, ");a="Uncertain";if(0<=P&&120>P)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;(P=
b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+P.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=zV(l,"bandwidth");m.network_activity_samples=zV(l,"networkactivity");m.live_latency_samples=zV(l,"livelatency");m.buffer_health_samples=zV(l,"bufferhealth");b=g.eU(c);if(c.cotn||b)m.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;m.cotn_and_local_media_style=m.cotn_and_local_media?
"":"display:none";tT(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20231217_00_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&0<q.length&&60>=m.debug_info.length+q.length?m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=m.extra_debug_info&&0<m.extra_debug_info.length?"":"display:none";return m};
dVa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
CV=function(a,b,c,d,e){g.U.call(this,{I:"div",S:"ytp-horizonchart"});this.K=b;this.sampleCount=c;this.D=d;this.G=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.K+"em"};
DV=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.$e("CANVAS"),a.B=c.getContext("2d")}catch(l){}if(a.B){var d=a.j*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c<a.sampleCount;c++)d=g.$e("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.B&&(c=1<(window.devicePixelRatio||1)?2:1,a.C.height=a.heightPx*c,a.C.style.height=
a.heightPx+"px",a.B.scale(1,c)));b=g.u(b);for(d=b.next();!d.done;d=b.next()){c=a;var e=a.index,f=d.value;for(d=0;d+2<c.D.length&&c.D[d+1]<f;)d++;f=Math.min(1,(f-c.D[d])/(c.D[d+1]-c.D[d]));if(c.B)c.B.fillStyle=c.G[d],c.B.fillRect(e*c.j,0,c.j,c.heightPx),c.B.fillStyle=c.G[d+1],c.B.fillRect(e*c.j,c.heightPx*(1-f),c.j,c.heightPx);else{e=c.element.children[e];var h=window.devicePixelRatio||1;f=Math.min(c.heightPx,Math.round(c.heightPx*f*h)/h)||0;e.style.height=f+"px";e.style.backgroundColor=c.G[d+1];e.style.borderTop=
"solid "+(c.heightPx-f)+"px "+c.G[d]}a.index=(a.index+1)%a.sampleCount}b=a.index;a.B?a.B.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
EV=function(a){var b=null;b={I:"button",Ma:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],Y:{title:"close"},ya:"[X]"};g.U.call(this,{I:"div",Ma:["html5-video-info-panel","ytp-sfn"],V:[b,{I:"div",Ma:["html5-video-info-panel-content","ytp-sfn-content"],V:[{I:"div",V:[{I:"div",ya:"Video ID / sCPN"},{I:"span",ya:"{{video_id_and_cpn}}",S:"ytp-sfn-cpn"}]},{I:"div",V:[{I:"div",ya:"Viewport / Frames"},{I:"span",ya:"{{dims_and_frames}}"}]},{I:"div",V:[{I:"div",ya:"Current / Optimal Res"},{I:"span",
ya:"{{resolution}}"}]},{I:"div",V:[{I:"div",ya:"Volume / Normalized"},{I:"span",ya:"{{volume}}"}]},{I:"div",V:[{I:"div",ya:"Codecs"},{I:"span",ya:"{{codecs}}"}]},{I:"div",Y:{style:"{{shader_info_style}}"},V:[{I:"div",ya:"Shader Info"},{I:"span",ya:"{{shader_info}}"}]},{I:"div",Y:{style:"{{color_style}}"},V:[{I:"div",ya:"Color"},{I:"span",ya:"{{color}}"}]},{I:"div",Y:{style:"{{drm_style}}"},V:[{I:"div",ya:"Protected"},{I:"span",ya:"{{drm}}"}]},{I:"div",Y:{style:"{{bandwidth_style}}"},V:[{I:"div",ya:"Connection Speed"},
{I:"span",V:[{I:"span",ya:"{{bandwidth_chart}}"},{I:"span",ya:"{{bandwidth_kbps}}"}]}]},{I:"div",Y:{style:"{{network_activity_style}}"},V:[{I:"div",ya:"Network Activity"},{I:"span",V:[{I:"span",ya:"{{network_activity_chart}}"},{I:"span",ya:"{{network_activity_bytes}}"}]}]},{I:"div",V:[{I:"div",ya:"Buffer Health"},{I:"span",V:[{I:"span",ya:"{{buffer_health_chart}}"},{I:"span",ya:"{{buffer_health_seconds}}"}]}]},{I:"div",Y:{style:"{{live_latency_style}}"},V:[{I:"div",ya:"Live Latency"},{I:"span",V:[{I:"span",
ya:"{{live_latency_chart}}"},{I:"span",ya:"{{live_latency_secs}}"}]}]},{I:"div",Y:{style:"{{live_mode_style}}"},V:[{I:"div",ya:"Live Mode"},{I:"span",ya:"{{live_mode}}"}]},{I:"div",Y:{style:"{{playback_categories_style}}"},V:[{I:"div",ya:"Playback Categories"},{I:"span",ya:"{{playback_categories}}"}]},{I:"div",V:[{I:"div",ya:"Mystery Text"},{I:"span",ya:"{{debug_info}}"}]},{I:"div",Y:{style:"{{extra_debug_info_style}}"},V:[{I:"div",ya:""},{I:"span",V:[{I:"span",ya:"{{extra_debug_info}}"}]}]},{I:"div",
V:[{I:"div",ya:"Date"},{I:"span",ya:"{{date}}"}]},{I:"div",Y:{style:"{{cotn_and_local_media_style}}"},V:[{I:"div",ya:"COTN / Local Media"},{I:"span",ya:"{{cotn_and_local_media}}"}]},{I:"div",Y:{style:"{{release_style}}"},V:[{I:"div",ya:"Player Release"},{I:"span",ya:"{{release_name}}"}]}]}]});this.Ua=a;this.position=0;this.G=!0;b?(a=this.Ha("ytp-sfn-close"),this.T(a,"click",this.hide)):this.T(this.element,"click",this.hide);a=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];
b="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var c=a.map(function(d){return d/4});
this.W={};this.j=new CV(300,1,150,a,b);g.J(this,this.j);this.updateValue("bandwidth_chart",this.j);this.C=new CV(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.J(this,this.C);this.updateValue("live_latency_chart",this.C);this.B=new CV(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.J(this,this.B);this.updateValue("buffer_health_chart",this.B);this.K=new CV(300,1,150,c,b);g.J(this,this.K);this.updateValue("network_activity_chart",
this.K);this.delay=new g.Eu(this.Sa,500,this);g.J(this,this.delay);this.D=new g.Eu(this.N,2E4,this);g.J(this,this.D)};
hVa=function(a){VU.call(this,a);var b=this;kU(a,"getStatsForNerds",function(){return eVa(b.api)});
lU(a,"showVideoInfo",function(){fVa(b,!0)});
lU(a,"hideVideoInfo",function(){fVa(b,!1)});
lU(a,"isVideoInfoVisible",function(){return gVa(b)})};
fVa=function(a,b){var c=gVa(a);a.j||(a.j=new EV(a.api),g.J(a,a.j),g.GU(a.api,a.j.element,4));g.jG(a.j,b);var d=BU(a.api.zb());d&&d.loaded&&c!==b&&d.TR();b&&a.api.va("sfn",{},!0)};
gVa=function(a){var b;return!(null==(b=a.j)||!b.Ib)};
FV=function(){g.H.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.Cu(this.j,null,this);g.J(this,this.delay)};
iVa=function(a,b){if("path"===b.I)return b.Y.d;if(b.V)for(var c=0;c<b.V.length;c++){var d=b.V[c];if(d&&"string"!==typeof d&&(d=iVa(a,d)))return d}};
mVa=function(a,b,c){c=iVa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=fG();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=jVa(e),m=jVa(c);kVa(a,function(n){d.setAttribute("d",lVa(l,m,n))},200)};
kVa=function(a,b,c){a.B=b;a.startTime=(0,g.FD)();a.duration=c;a.j()};
jVa=function(a){var b=[];a=a.match(nVa);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};
lVa=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};
GV=function(a){g.U.call(this,{I:"button",Ma:["ytp-size-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ya:"{{icon}}"});this.api=a;this.ew=null;this.transition=new FV;g.J(this,this.transition);this.T(a,"sizestylechange",this.Sa);this.T(a,"fullscreentoggled",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);a.createClientVe(this.element,this,139116);this.Sa();this.Ra("click",this.onClick);wU(a,this.element,
this)};
oVa=function(a){VU.call(this,a);var b=this;this.events=new g.aL(a);g.J(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.button=new GV(a);g.J(b,b.button);a.qs(b.button)})};
pVa=function(a){VU.call(this,a);var b=this;lU(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()});
lU(this.api,"setPlaybackRate",function(c){"number"===typeof c&&b.api.setPlaybackRate(c)})};
HV=function(a){function b(e){e="https://web.archive.org/web/20240102114909/https://jnn-pa.googleapis.com"+e;return c?g.bp(e,"$httpHeaders",d):e}
var c=void 0===c?!1:c;this.bj=a;this.j={};var d={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw","Content-Type":"application/json+protobuf"};this.j={method:"POST",format:"RAW",postBodyFormat:"JSPB",headers:c?{}:d};this.B=b("/$rpc/google.internal.waa.v1.Waa/Create");this.C=b("/$rpc/google.internal.waa.v1.Waa/GenerateIT")};
qVa=function(a,b){var c;if(b.iM)for(c=0;c<b.iM.length;c++)aP(a,1,b.iM[c]);$O(a,2,b.C4);aP(a,3,b.Fs);YO(a,4,b.t_);YO(a,5,b.wca);aP(a,6,b.xca)};
rVa=function(a){return{fq:OO(a,1),Gaa:OO(a,2)}};
g.IV=function(a,b){bP(a,1,b.zs,cTa,1);$O(a,3,b.videoPlaybackUstreamerConfig);bP(a,6,b.mB,qVa,3)};
JV=function(a){VU.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.Sb=null;this.G=!1;this.B=null;this.D=0;var c=a.U().webPlayerContextConfig;this.events=new g.aL(a);g.J(this,this.events);this.events.T(a,"spsumpstatuschange",function(d){b.fq=d.fq;a.U().Uc()&&b.api.va("sps",{status:b.fq||""});if(b.L("html5_handle_sps_status"))if(1===b.fq)b.D=0;else if(2===b.fq||3===b.fq)if(b.G&&!b.B&&sVa(b),3===b.fq)if(b.D++,d=d.Gaa,!d||b.D<d){b.api.ZI(!0);var e;null==(e=b.B)||e.then(function(){b.api.ZI(!1)})}else b.api.xg("ump.spsrejectfailure",
1,"HTML5_SPS_UMP_STATUS_REJECTED")});
this.useLivingRoomPoToken=!(null==c||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Sb=a.xi();var d=(b.L("html5_generate_session_po_token")||b.L("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{d&&(b.Sb.Ni("pot_isc"),tVa(b),b.L("html5_webpo_idle_priority_job")?g.jD(g.lD(),function(){uVa(b)}):uVa(b))}catch(e){e instanceof Error&&g.LF(e)}});
a.uR(this)};
vVa=function(a,b){var c=a.L("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN";var d=a.L("html5_webpo_critical_experiment")?"6BW35shnjYbBdd0Xn55t":a.L("html5_webpo_critical_control")?"Av5DGcHDtt8bC80Ew9nc":a.L("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":a.L("html5_generate_content_po_token")?"cpYJehUPFA4JYTzKNoEQ":SR(b.experiments,"html5_mock_content_binding_for_session_token")?"Lw8FZiO1SU2A58z2DDu7":"O43z0dpjhgX20SCx4KAo";d=g.PJ(b)?c:
d;a.L("html5_placeholder_po_tokens")&&(d="2ZCPXHYZSpebQXqOYNtj");SR(b.experiments,"html5_cache_request_key")&&(d=SR(b.experiments,"html5_cache_request_key"));return d};
tVa=function(a){function b(h){g.LF(h)}
var c=a.api.U(),d=vVa(a,c);try{var e=a.L("html5_po_token_enable_webpo_experimental")?new HV(d):fha(d),f=ROa(c.experiments);a.j=new Jp({bj:d,onError:b,jz:e,SC:f});g.J(a,a.j)}catch(h){h instanceof Error&&g.LF(h)}};
uVa=function(a){var b=a.api.U();a.Sb.Ni("pot_ist");var c;null==(c=a.j)||c.start();a.L("html5_generate_content_po_token")||(KV(a),sVa(a),b=g.EJ(b.experiments,"html5_session_po_token_interval_time_ms")||0,0<b&&(a.C=g.bC(function(){KV(a)},b)),a.G=!0)};
KV=function(a){var b,c,d,e;g.Ha(function(f){if(!a.L("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.U();c=g.IB("EOM_VISITOR_DATA")||g.IB("VISITOR_DATA");d=b.Xo?b.datasyncId:c;e=SR(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.Rf=wVa(a,e);g.xa(f)})};
wVa=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();c?a.Sb.Ni("pot_cms"):a.Sb.Ni("pot_csms");var d="";d=a.L("html5_web_po_token_caching")?lha(a.j,{uv:b,My:{ZU:b,O7:150,G4:!0,Hba:!0}}):lha(a.j,{uv:b});if(c){if(a.Sb.Ni("pot_cmf"),a.L("html5_use_sps_ump_part")){var e;null==(e=a.B)||e.resolve();a.B=null}}else a.Sb.Ni("pot_csmf");return d}catch(f){return g.LF(f),""}};
sVa=function(a){a.j&&(a.L("html5_use_sps_ump_part")&&(a.B=new KL),a.j.ready().then(function(){a.Sb.Ni("pot_if");KV(a)}))};
xVa=function(a){VU.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.aL(a);g.J(this,this.events);this.events.T(a,"heartbeatRequest",function(c){if(b.freePreviewUsageDetails.length||null!==b.freePreviewWatchedDuration)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),0<b.freePreviewUsageDetails.length?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
b.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}});
kU(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c});
kU(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})};
LV=function(a){g.H.call(this);this.features=[];var b=this.j,c=new CUa(a),d=new WU(a),e=new mV(a),f=new JV(a);var h=g.NJ(a.U())?void 0:new eV(a);var l=new lV(a),m=new hVa(a),n=new pVa(a),p=new iV(a);var q=g.NJ(a.U())?new xVa(a):void 0;var r=a.L("html5_enable_ssap")?new $Ua(a):void 0;var t=a.L("web_cinematic_watch_settings")&&null!=(t=a.U().webPlayerContextConfig)&&t.cinematicSettingsAvailable?new lUa(a):void 0;var v=new hV(a);var x=a.L("enable_courses_player_overlay_purchase")?new AUa(a):void 0;var B=
a.L("enable_free_preview_timer")&&g.BS(a.U())?new wUa(a):void 0;var F=new qUa(a);var G=a.U().D?new rUa(a):void 0;var I=a.L("web_player_move_autonav_toggle")&&a.U().He?new aUa(a):void 0;var L=g.BS(a.U())?new jV(a):void 0;var P=a.L("web_enable_speedmaster")&&g.BS(a.U())?new tV(a):void 0;var V=a.U().yj?void 0:new oVa(a);var ka=a.L("web_player_enable_cultural_moment_overlay")&&g.BS(a.U())?new nUa(a):void 0;var sa=a.L("report_pml_debug_signal")?new WTa(a):void 0;var ta=new OUa(a),la=new SUa(a);var qa=
a.L("enable_web_player_player_in_bar_feature")&&g.jH(a.U())?new UUa(a):void 0;var ba="flix"===a.U().playerStyle?new BUa(a):void 0;a=navigator.mediaSession&&window.MediaMetadata&&a.U().Im?new GUa(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,F,G,I,L,P,V,ka,sa,ta,la,qa,ba,a,void 0)};
MV=function(){this.B=this.j=NaN};
yVa=function(a,b){this.X=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new MV;this.j=b||null;this.C=!1};
zVa=function(a,b,c){var d=g.rS(b.Fa)&&!b.Fa.N;if(b.Fa.ql&&(oS(b.Fa)||"shortspage"===b.Fa.La||HS(b.Fa)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.IB("TIMING_ACTION")||HB("TIMING_ACTION",a.X.csiPageType);a.X.csiServiceName&&HB("CSI_SERVICE_NAME",a.X.csiServiceName);if(a.j){d=a.j.xi();for(var e=g.u(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,cI(f,d[f],a.timerName);d=g.OB(nxa)(a.j.mH);g.aI(d,a.timerName);d=a.j;d.B={};d.mH={}}g.aI({playerInfo:{visibilityState:g.OB(jxa)()},playerType:"LATENCY_PLAYER_HTML5"},
a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||($H("_start",a.timerName)?c=g.OB(YH)("_start",a.timerName)+a.B:g.LF(new g.eD("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!$H("pbs",a.timerName)&&a.tick("pbs",c)}};
AVa=function(a,b,c,d,e,f){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");c={};if(null==e?0:e.G)c.cttAuthInfo={token:e.G,videoId:e.videoId};c.startTime=null!=f?f:d;bI(a,c);var h;e={targetVideoId:null!=(h=null==e?void 0:e.videoId)?h:"nvd",targetCpn:b};g.aI(e,a);cI("pbs",d,a)};
NV=function(a){Axa();yxa();a.timerName=""};
BVa=function(a){if(a.j){var b=a.j;b.B={};b.mH={}}a.C=!1;a.G=void 0;a.B=NaN};
CVa=function(a,b){g.cG.call(this);this.Fa=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.Z={};this.B=0;if(a=b.session_data)this.sessionData=QB(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 XS("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.xQa(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.u(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.Z=TS(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
DVa=function(a){return!!(a.playlist||a.list||a.api)};
EVa=function(a){var b=a.index+1;return b>=a.length?0:b};
FVa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.OV=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.nT(a.Fa,b),g.J(a,e),e.Nm=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
GVa=function(a,b){a.index=g.ie(b,0,a.length-1);a.startSeconds=0};
HVa=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.OV(a);a.items=[];for(var d=g.u(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()}};
KVa=function(a,b){var c,d,e,f,h,l,m;return g.Ha(function(n){if(1==n.j){c=g.oI();var p=a.U(),q={context:g.hU(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.webPlayerContextConfig;if(null==r?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(null==r?0:r.hideInfo)q.playerParams={showinfo:!1}}p=p.embedConfig;r=b.docid||b.video_id||b.videoId||b.id;if(!r){r=
b.raw_embedded_player_response;if(!r){var t=b.embedded_player_response;t&&(r=JSON.parse(t))}if(r){var v,x,B,F,G,I;r=(null==(I=g.R(null==(v=r)?void 0:null==(x=v.embedPreview)?void 0:null==(B=x.thumbnailPreviewRenderer)?void 0:null==(F=B.playButton)?void 0:null==(G=F.buttonRenderer)?void 0:G.navigationEndpoint,g.yT))?void 0:I.videoId)||null}else r=null}v=(v=r)?v:void 0;x=a.playlistId?a.playlistId:b.list;B=b.listType;if(x){var L;"user_uploads"===B?L={username:x}:L={playlistId:x};IVa(p,v,b,L);q.playlistRequest=
L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},IVa(p,v,b,L),q.playlistRequest=L):v&&(L={videoId:v},p&&(L.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=L);d=q;e=g.sH(JVa);g.ya(n,2);return g.z(n,g.gI(c,d,e),4)}if(2!=n.j)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Ea=Hoa(b,g.mS(h)),h.C="EMBEDDED_PLAYER_MODE_PFL"===h.Ea,f&&(l=f,l.trackingParams&&HP(l.trackingParams)),n.return(new g.nT(h,b));m=g.Aa(n);m instanceof Error||(m=Error("b259802748"));g.KF(m);return n.return(a)})};
IVa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.QV=function(a,b){PV.get(a);PV.set(a,b)};
g.RV=function(a){g.cG.call(this);this.loaded=!1;this.player=a};
LVa=function(){this.B=[];this.j=[]};
g.SV=function(a,b){return b?a.j.concat(a.B):a.j};
g.TV=function(a,b){switch(b.kind){case "asr":MVa(b,a.B);break;default:MVa(b,a.j)}};
MVa=function(a,b){g.Db(b,function(c){return a.equals(c)})||b.push(a)};
g.UV=function(a){g.H.call(this);this.X=a;this.B=new LVa;this.D=[];this.N=[]};
g.VV=function(a,b,c){g.UV.call(this,a);this.audioTrack=c;this.j=null;this.C=!1;this.D=b.Iu;this.N=b.TB;this.C=g.WT(b)};
NVa=function(){this.j=10;this.ej=!1};
OVa=function(a,b){b=void 0===b?{}:b;var c=void 0===b.RD?!1:b.RD,d=new NVa;d.ej=(void 0===b.hasSubfragmentedFmp4?!1:b.hasSubfragmentedFmp4)||c;d.j=g.EJ(a.experiments,"html5_streaming_xhr_time_based_consolidation_ms")||d.j;return d};
g.PVa=function(a){this.Fa=a;this.Z=new NVa;this.Vo=this.Uo=!1;this.Rm=2;this.ra=20971520;this.Va=8388608;this.ma=120;this.Oc=62914560;this.Oo=g.EJ(this.Fa.experiments,"html5_min_readbehind_secs");this.iF=g.EJ(this.Fa.experiments,"html5_min_readbehind_cap_secs");this.pj=this.Fa.L("html5_offline_reset_media_stream_on_unresumable_slices");this.Ob=NaN;this.Fp=this.wl=this.Iu=2;this.sj=1024*WV(this,"html5_request_size_min_kb",64);this.La=2097152;this.Hx=WV(this,"html5_bypass_contention_secs");this.qp=
1048576;this.Km=!1;this.rj=WV(this,"html5_repredict_interval_ms",1800);this.jA=WV(this,"html5_head_miss_secs",5);this.lG=WV(this,"html5_min_upgrade_health_secs",10);this.bb=15;this.Nf=1;this.K=1.15;this.W=1.05;this.Em=1;this.aG=WV(this,"html5_min_seconds_between_format_selections",8);this.Uz=WV(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Nm=WV(this,"html5_max_buffer_health_for_downgrade_prop",.5);this.Du=RR;this.Ri=this.Ub=!1;this.jj=6;this.j=!1;this.AC=g.EJ(this.Fa.experiments,"html5_top_shelf_format_byterate_factor")||
1.2;this.hd=g.EJ(this.Fa.experiments,"html5_min_startup_buffered_media_duration_secs");this.Wo=g.EJ(this.Fa.experiments,"html5_post_interrupt_readahead");this.ey=this.Fa.L("html5_disable_classic_alr");this.Xo=g.EJ(this.Fa.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.xx=100;this.Hh=10;this.nG=6;this.Tw=WV(this,"html5_ssdai_failure_retry_limit",3);this.Jm=this.Fa.experiments.jb("html5_clone_original_for_fallback_location");this.Xm=WV(this,"html5_min_failures_to_delay_retry",1);this.Fx=
this.Fa.L("html5_apply_min_failures");this.Rf=!1;this.tb=g.EJ(this.Fa.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.lk=g.EJ(this.Fa.experiments,"html5_subsegment_readahead_timeout_secs");this.wC=g.EJ(this.Fa.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.yj=g.EJ(this.Fa.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.xC=g.EJ(this.Fa.experiments,"html5_subsegment_readahead_min_load_speed");this.tx=g.EJ(this.Fa.experiments,
"html5_subsegment_readahead_load_speed_check_interval");this.zC=g.EJ(this.Fa.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Qi=WV(this,"html5_hopeless_secs",15);this.Mm=1;this.Od=!1;this.pC=this.Fa.L("html5_restrict_streaming_xhr_on_sqless_requests");this.tA=g.EJ(this.Fa.experiments,"html5_max_headm_for_streaming_xhr");this.QB=this.Fa.L("html5_pipeline_manifestless_allow_nonstreaming");this.UB=this.Fa.L("html5_prefer_server_bwe3");this.iz=this.Fa.L("html5_last_slice_transition");
this.uC=this.Fa.L("html5_store_xhr_headers_readable");this.lr=this.zf=this.Tj=!1;this.Pm=g.EJ(this.Fa.experiments,"html5_max_drift_per_track_secs");this.Qo=this.Fa.L("html5_no_placeholder_rollbacks");this.vC=this.Fa.L("html5_subsegment_readahead_enable_mffa");this.Ie=this.Fa.L("html5_allow_video_keyframe_without_audio");this.PB=this.Fa.L("html5_enable_vp9_fairplay");this.Po=!1;this.Za=!0;this.He=this.Na=this.Rb=!1;this.Il=!0;this.Kp=!1;this.C="";this.ly=1048576;this.ue=[];this.qy=this.Fa.L("html5_woffle_resume");
this.ql=this.Fa.L("html5_abs_buffer_health");this.Ay=this.Fa.L("html5_interruption_resets_seeked_time");this.NA=g.EJ(this.Fa.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ga=!1;this.Jl=this.Fa.L("html5_explicitly_dispose_xhr");this.Yo=!1;this.Cm=!this.Fa.L("html5_encourage_array_coalescing");this.Im=!1;this.nC=this.Fa.L("html5_restart_on_unexpected_detach");this.lj=0;this.nh="";this.zy=this.Fa.L("html5_filter_non_efficient_formats_for_safari");this.Fa.L("html5_format_hybridization");
this.Cx=this.Fa.L("html5_abort_before_separate_init");this.rC=Boa();this.tC=this.Fa.L("html5_serialize_server_stitched_ad_request");this.Ix=this.Fa.L("html5_skip_buffer_check_seek_to_head");this.Bd=!1;this.Gx=this.Fa.L("html5_attach_po_token_to_bandaid");this.Mo=g.EJ(this.Fa.experiments,"html5_max_redirect_response_length")||8192;this.vj=this.Fa.L("html5_rewrite_timestamps_for_webm");this.kb=this.Fa.L("html5_only_media_duration_for_discontinuities");this.mC=g.EJ(this.Fa.experiments,"html5_resource_bad_status_delay_scaling")||
1;this.Fa.L("html5_onesie_live");this.CC=this.Fa.L("html5_onesie_premieres");this.py=this.Fa.L("html5_drop_onesie_for_live_mode_mismatch");this.oG=g.EJ(this.Fa.experiments,"html5_onesie_live_ttl_secs")||8;this.So=g.EJ(this.Fa.experiments,"html5_attach_num_random_bytes_to_bandaid");this.OB=g.EJ(this.Fa.experiments,"html5_onesie_request_timeout_ms")||3E3;this.D=!1;this.Dx=this.Fa.L("html5_allow_to_execute_first_sabr_fallback_only");this.Ea=this.Fa.L("html5_ssdai_use_post_for_media")&&this.Fa.L("gab_return_sabr_ssdai_config");
this.Hu=this.Fa.L("html5_use_post_for_media");this.Jb=this.Fa.L("html5_use_live_ump_heartbeat");this.Bb=this.Fa.L("html5_use_sps_ump_part");this.useUmp=this.Fa.L("html5_use_ump")||this.Jb||this.Bb;this.Qa=this.Ba=!1;this.jd=this.Fa.L("html5_enable_drc_toggle_api")?!1:this.Fa.L("html5_enable_drc");this.XB=this.Fa.L("html5_reset_primary_stats_on_redirector_failure");this.Fa.L("html5_remap_to_original_host_when_redirected");this.Fl=this.Qf=this.B=!1;this.ac=this.Fa.L("html5_enable_sabr_format_selection");
this.Xx=this.Fa.L("html5_iterative_seeking_buffered_time");this.ll=this.Fa.L("html5_use_network_error_code_enums");this.gy=this.Fa.L("html5_disable_overlapping_requests");this.G=!1;this.Mf=this.Fa.L("html5_disable_bandwidth_cofactors_for_sabr");this.enableServerDrivenRequestCancellation=this.Fa.L("html5_enable_server_driven_request_cancellation");this.yy=this.Fa.L("html5_enable_sabr_request_timing");this.Of=this.Fa.L("html5_enable_server_format_filter");this.oy=this.Fa.L("html5_drc_edit_sync_workaround");
this.sy=this.Fa.L("html5_enable_lawnmower");this.uy=this.Fa.L("html5_enable_lawnmower_messaging");this.vy=this.Fa.L("html5_enable_lawnmower_status_logging_V2");this.Zx=this.Fa.Uc()?g.EJ(this.Fa.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.Jy=g.EJ(this.Fa.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Ro=g.EJ(this.Fa.experiments,"html5_normal_latency_mffa_ms")||NaN;this.mG=g.EJ(this.Fa.experiments,"html5_mffa_ms_proxima_override")||this.Ro;this.qC=this.Fa.L("html5_retry_quota_exceeded_via_seek");
this.zx=this.Fa.L("html5_use_goodput_request_for_probing");this.Tz=this.Fa.L("html5_live_defrag_only_h264_playbacks");this.Bz=this.Fa.L("html5_live_defrag_only_h264_formats");this.DC=this.Fa.L("html5_use_managed_media_source_buffering");this.VB=this.Fa.L("html5_record_now");this.Lm=this.Fa.L("html5_consume_onesie_media_bytes_on_mismatch_for_sabr");this.yf=!1;this.Gl=g.EJ(this.Fa.experiments,"html5_drm_byterate_soft_cap");this.Hl=g.EJ(this.Fa.experiments,"html5_drm_live_byterate_soft_cap");this.Zo=
!1;this.Xa=this.Fa.L("html5_use_sabr_error_http_response_code");this.EC=this.Fa.L("html5_use_target_duration");this.Ll=!1;this.yx=this.Fa.L("html5_track_overshoot");this.rb=this.Fa.L("html5_sabr_report_request_cancellation_info");this.lh=this.To=this.sx=!1;this.Ow=this.Fa.L("html5_spoof_4k");this.Ax=this.Pe=!1;this.No=WV(this,"html5_min_media_duration_for_cabr_slice");this.eF=this.Cm?0:WV(this,"html5_min_media_duration_for_append_prop");this.WB=this.Fa.L("html5_remove_defrag_without_frame_level_streaming");
this.Ic=this.Fa.L("html5_log_audio_switching_latency");this.gr=!1;this.Yx=this.Fa.L("html5_consume_all_buffered_bytes_one_poll");this.jy=this.Fa.L("html5_disable_urgent_adaptation");this.Ex=this.Fa.L("html5_apply_constraints_in_client_for_sabr");this.wy=this.Fa.L("html5_enable_sabr_max_byterate");this.xj=this.Fa.L("html5_send_video_playback_ustreamer_config");this.Om=WV(this,"html5_max_discontinuity_rewrite_count");this.Qm=WV(this,"html5_max_drift_seconds");this.Kl=WV(this,"html5_fixed_media_duration_for_request");
this.N=!1};
QVa=function(a,b,c){c=void 0===c?!1:c;1080<b.video.j&&!a.Uo&&(a.ra=36700160,a.Va=5242880,a.La=Math.max(4194304,a.La),a.Uo=!0);2160<b.video.j&&!a.Vo&&(a.ra=104857600,a.Ob=13107200,a.Vo=!0);0!==g.EJ(a.Fa.experiments,"html5_samsung_kant_limit_max_bitrate")?b.isEncrypted()&&g.sC()&&g.qC("samsung")&&(g.qC("kant")||g.qC("muse"))&&(a.Ob=g.EJ(a.Fa.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.sC()&&g.qC("kant")&&(a.Ob=1310720);0!==a.Gl&&b.isEncrypted()&&(a.Ob=a.Gl);0!==a.Hl&&b.isEncrypted()&&
c&&(a.Ob=a.Hl);b.Ob&&(a.qp=Math.max(a.sj,Math.min(a.La,5*b.Ob)))};
XV=function(a){return a.B&&a.ac};
YV=function(a){return a.B&&a.Qf&&a.playbackStartPolicy};
RVa=function(a){return a.D||a.B&&a.ac&&a.Fa.L("html5_init_source_buffer_after_metadata")};
SVa=function(a,b,c,d){a.Qf&&(a.playbackStartPolicy=b,a.TB=c,a.RB=d)};
WV=function(a,b,c){return g.EJ(a.Fa.experiments,b)||(void 0===c?0:c)};
g.TVa=function(a,b){return oL(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.UVa=function(a,b){if(null!=a.j&&g.NJ(b.U())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.Ac())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.TVa(c,"386")});
a=!!a.j&&!a.j.isManifestless&&YNa(a.j);return b||a};
g.ZV=function(a,b,c,d,e,f){g.UV.call(this,a);this.videoId=c;this.gX=e;this.eventId=f;this.G={};this.j=null;a=d||g.TB(b).hl||"";a=a.split("_").join("-");this.C=UB(b,{hl:a})};
WVa=function(a){this.j=a;this.B=VVa(this)};
VVa=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.IO(new Uint8Array(a.exports.memory.buffer,l,m));c+=8}console.log(e);return f}}}};
XVa=function(a){var b=Math.floor(256*Math.random()),c=Math.floor(256*Math.random()),d=0;try{return d=a.exports.malloc(16),(new Uint8Array(a.exports.memory.buffer,d,16)).fill(b),a.exports.sentinel(d,16,c)===16*c%256&&(new Uint8Array(a.exports.memory.buffer,d,16)).every(function(e){return e===(b+c)%256})}finally{0!==d&&a.exports.free(d)}};
YVa=function(a){var b;return g.Ha(function(c){return 1==c.j?(b={format:"RAW",method:"GET",responseType:"arraybuffer"},g.z(c,hC(a,b),2)):c.return(c.B.xhr.response)})};
ZVa=function(a,b){b=void 0===b?!1:b;var c,d,e,f,h,l;return g.Ha(function(m){switch(m.j){case 1:return c=new WVa(!1),d=c.B,(b=b||!("instantiateStreaming"in WebAssembly))?(f=WebAssembly,h=f.instantiate,g.z(m,YVa(a),6)):g.z(m,WebAssembly.instantiateStreaming(fetch(a),d),4);case 4:e=m.B;m.Ka(3);break;case 6:return g.z(m,h.call(f,m.B,d),5);case 5:e=m.B;case 3:return l=e,c.module=l.module,c.instance=l.instance,c.exports=c.instance.exports,m.return(c)}})};
$Va=function(a){var b;return g.Ha(function(c){if(1==c.j)return b=new WVa(!0),b.C=a,g.z(c,a(b.B),2);b.exports=c.B;return c.return(b)})};
aWa=function(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;return g.Ha(function(f){if(!d&&$V)try{return f.return(ZVa(a,e))}catch(h){if(c)g.LF(h);else throw h;}return c&&b?f.return($Va(b)):f.return(Promise.reject(Error("invalid arguments")))})};
bWa=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;var e=void 0===e?!1:e;var f;return g.Ha(function(h){if(1==h.j)return g.z(h,aWa(a,b,c,d,e),2);f=h.B;f.exports._initialize();if(XVa(f))return h.return(f);throw Error((f.j?"asmjs":"wasm")+" sentinel failed");})};
cPa=function(a,b){if(b.buffer!==a.exports.memory.buffer)return sO.vk("copyj2w",function(){var c=a.exports.malloc(b.byteLength);c=new Uint8Array(a.exports.memory.buffer,c,b.byteLength);c.set(b);return c})};
cWa=function(a,b){if(b.buffer===a.exports.memory.buffer)return sO.vk("copyw2j",function(){var c=b.slice();a.exports.free(b.byteOffset);return c})};
dWa=function(a,b){g.H.call(this);this.J=a;this.j=b;this.mH={};this.B={};this.C=null;this.K=this.J.L("web_player_defer_modules");this.D=new Set;this.G=new g.aL(this);this.Fe=new Map;g.J(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)};
g.aW=function(a){return a.Fe.get("captions")};
jWa=function(a,b){switch(b){case "ad":return eWa(a);case "annotations_module":return g.DU(a.J)?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.XZ||"3"===a.controlsType?!1:a.Na.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Xa||!!g.UT(b)||!!g.eSa(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return fWa(a);case "embed":return g.mS(a.J.U());case "endscreen":return g.gWa(a);case "heartbeat":return a.AR();case "inline_preview":return a.J.U().showInlinePreviewUi;
case "kids":return wS(a.J.U());case "remote":return a.J.U().vj;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().rj;case "captions":return hWa(a);case "unplugged":return g.sS(a.J.U());case "ux":return a.J.U().rb;case "webgl":return iWa(a);case "ypc":return a.LF();case "ypc_clickwrap":return a=a.J.getVideoData(),a.nh&&!a.zC;case "yto":return!!a.J.getVideoData().Ea.includes("yto");default:return g.KF(Error("Module descriptor "+b+" does not match")),!1}};
bW=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Fe.get(b);if(!h||d)if(e||(e=function(){bW(a,b,c,d)}),f||(f=function(){a.J.Ig(b)}),h=h||kWa(a,b,jWa(a,b),e,f))a.Fe.set(b,h),h.create(),a.J.oa("modulecreated",b),c&&a.J.ym("onApiChange")};
mWa=function(a){var b=void 0===b?!1:b;var c,d,e,f,h;return g.Ha(function(l){if(1==l.j)return(c=a.Fe.get("asmjs"))&&!b?l.return(c):null!=(d=PV.get("asmjs"))?(e=d,l.Ka(2)):g.z(l,new Promise(function(m,n){lWa(a,"asmjs",function(){var p=PV.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3);
2!=l.j&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.Fe.set("asmjs",h);h.create();return l.return(h)})};
pWa=function(a){nWa(a)&&a.ZM();oWa(a)&&(bW(a,"captions",!0),bW(a,"endscreen"),a.lH(),bW(a,"creatorendscreen",!0))};
oWa=function(a){var b=a.J.getVideoData(),c=a.K&&!b.isInlinePlaybackNoAd;a.J.L("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
nWa=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.Fb(a.Ea,"ad")||tT(a,"disable_defer_admodule_on_advertiser_video")&&TRa(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.u(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};
hWa=function(a){var b=a.J.getVideoData();return!!b.ue||!!b.captionTracks.length||g.UVa(b,a.J)};
g.gWa=function(a){var b=a.J.U();if(b.C||HS(b)||b.N||!b.Bd&&!b.nh)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.L("desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.L("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");return!c||b};
g.EU=function(a){return a.Fe.get("webgl")};
iWa=function(a){var b=a.J.getVideoData();a=a.J.U();var c=g.Aoa(),d=a.L("enable_spherical_kabuki"),e=g.FS(a);if(g.ST(b))return c||d||e;if(g.PT(b))return e||c||d;if(g.QT(b))return e||c||!1;if(g.RT(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.IT(b)&&!c&&a.L("enable_webgl_noop")};
eWa=function(a){if(a.J.U().C)return!1;a=a.J.getVideoData(1);var b=a.getPlayerResponse();if(b&&(b=b.adPlacements))for(var c=0;c<b.length;c++)if(b[c].adPlacementRenderer)return!0;return g.dU(a)?!0:!1};
fWa=function(a){if(g.DU(a.J))return!1;a=a.J;var b=a.U();if(b.C||"3"===b.controlsType)return!1;if("creator-endscreen-editor"===b.playerStyle)return!0;a=a.getVideoData();return!!a&&(!!g.cSa(a)||!!g.dSa(a))};
kWa=function(a,b,c,d,e){try{if(c){var f=PV.get(b);if(f)return new f(a.J);lWa(a,b,d,e)}else a.J.Ig(b)}catch(h){a.J.Ig(b),g.KF(h)}return null};
cW=function(a,b,c){if(a.J.U().L("html5_dispose_modules_in_order"))for(var d=g.u(qWa),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Fe.get(e);f&&(c||f.yl(b))&&(g.ub(f),a.Fe.delete(e))}else for(d=g.u(a.Fe),e=d.next();!e.done;e=d.next())f=g.u(e.value),e=f.next().value,(f=f.next().value)&&(c||f.yl(b))&&(g.ub(f),a.Fe.delete(e))};
dW=function(a){return a.Fe.get("ad")};
rWa=function(a){if(wS(a.J.U()))return a.Fe.get("kids")};
BU=function(a){if(a.J.U().vj)return a.Fe.get("remote")};
g.eW=function(a){if(g.sS(a.J.U()))return a.Fe.get("unplugged")};
MSa=function(a){if(a.J.U().rb)return a.Fe.get("ux")};
fW=function(a){if(a.J.U().rj)return a.Fe.get("offline")};
g.gW=function(a){return a.Fe.get("annotations_module")};
sWa=function(a){return a.Fe.get("creatorendscreen")};
uWa=function(a,b,c){var d,e;return g.Ha(function(f){d=a.j.startsWith("https://")?a.j+"lib.wasm":a.j.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";e=function(h){var l=a.Fe.get("asmjs");return l?Promise.resolve(l.oX(h)):tWa(a).then(function(m){return m.oX(h)})};
return f.return(bWa(d,e,b,c))})};
tWa=function(a){var b,c;return g.Ha(function(d){if(1==d.j)return g.z(d,mWa(a),2);c=b=d.B;return d.return(c)})};
lWa=function(a,b,c,d){if(a.j){var e=vWa[b];wWa(a,a.j+e,function(){a.D.add(e);c.call(a)},d)}};
wWa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.Je("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.$e("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(x){Cf(f);q&&q.apply(window,[x])};
var r=m.onerror;m.onerror=function(x){if(.01>Math.random()){var B=new g.eD("Unable to load player module",b,document.location&&document.location.origin);g.KF(B)}Cf(e);r&&r(x)};
var t=m,v=t.onreadystatechange;t.onreadystatechange=function(x){switch(t.readyState){case "loaded":case "complete":Cf(f)}v&&v(x)};
l&&((h=a.J.U().cspNonce)&&m.setAttribute("nonce",h),g.Rn(m,g.jw(b)),h=g.Je("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),a.addOnDisposeCallback(function(){m.parentNode&&m.parentNode.removeChild(m)}))};
xWa=function(a,b,c,d,e){g.cG.call(this);var f=this;this.target=a;this.aH=b;this.B=0;this.K=!1;this.D=new g.le(NaN,NaN);this.j=new g.aL(this);this.Ba=this.C=this.N=null;g.J(this,this.j);b=d||e?4E3:3E3;this.W=new g.Eu(function(){hW(f,1,!1)},b,this);
g.J(this,this.W);this.ma=new g.Eu(function(){hW(f,2,!1)},b,this);
g.J(this,this.ma);this.ra=new g.Eu(function(){hW(f,512,!1)},b,this);
g.J(this,this.ra);this.Ea=3E3;d||(this.C=this.j.T(a,"mouseover",this.Aw),this.j.T(a,"mousemove",this.V2),this.j.T(a,"mouseleave",this.f8));Zr?this.j.T(a,"keypress",this.z7):this.j.T(a,"focusin",this.O5);this.G=this.j.T(a,"mousedown",this.FT);this.Z=this.j.T(a,"touchstart",this.GT,void 0,!0);hW(this,640,!0)};
yWa=function(a){hW(a,4,!1);a.N&&(a.j.Nc(a.N),a.N=null,a.C=a.j.T(a.target,"mouseover",a.Aw));a.C&&(a.j.Nc(a.C),a.C=a.j.T(a.target,"mouseover",a.Aw))};
hW=function(a,b,c){a.isDisposed();var d=!a.B;c?(a.B|=b,b&1&&a.W.start(),b&2&&a.ma.start()):(a.B&=~b,b&1&&a.W.stop(),b&2&&a.ma.stop(),b&512&&a.ra.stop());a.B&512&&!(a.B&128)&&g.Fu(a.ra,a.Ea);b=!a.B;d!==b&&a.oa("autohideupdate",b)};
g.jW=function(a){g.U.call(this,{I:"button",Ma:["ytp-large-play-button","ytp-button"],Y:{"aria-label":"Toista",title:"Toista"},V:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Sa);this.T(a,"basechromeinitialized",this.lca);a=this.api.U();a.Z&&iW&&(this.Ra("click",this.C6,this),this.Ra("touchstart",this.taa,this));g.rS(a)&&g.Mu(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Sa()};
g.kW=function(a){var b=a.U(),c=["ytp-cued-thumbnail-overlay"];b.N&&c.push("ytp-exp-contain-thumbnail");b.L("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.U.call(this,{I:"div",Ma:c,V:[{I:"div",S:"ytp-cued-thumbnail-overlay-image"}]});b=this.Ha("ytp-cued-thumbnail-overlay");c=new g.jW(a);g.J(this,c);c.Ja(b);this.D=new g.aL(this);g.J(this,this.D);this.api=a;this.G=this.Ha("ytp-cued-thumbnail-overlay-image");this.C=c;this.B=new g.MG(this,250);g.J(this,this.B);this.j=new g.Eu(this.Sa,
0,this);g.J(this,this.j);this.Sa();this.T(a,"appresize",this.Zb);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.Y$);oS(a.U())&&this.T(a,"videoplayerreset",this.Iw)};
zWa=function(a){if(!a.api.L("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.Vb();a=g.TG(a,64)&&g.TG(a,1);return 0===b&&a};
g.lW=function(a){g.U.call(this,{I:"div",Ma:["ytp-error"],Y:{role:"alert"},V:[{I:"div",S:"ytp-error-content",V:[{I:"div",S:"ytp-error-icon-container",V:[{I:"svg",Y:{fill:"#fff",viewBox:"0 0 48 48"},V:[{I:"path",Y:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",Y:{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"}}]}]},{I:"div",S:"ytp-error-content-wrap",
V:[{I:"div",S:"ytp-error-content-wrap-reason",ya:"{{content}}"},{I:"div",S:"ytp-error-content-wrap-subreason",ya:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.mW=function(a){a=a.split(AWa);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({I:"br"}),b.push(d[e]);c<a.length&&b.push({I:"a",Y:{href:a[c],target:a[c+1]},ya:a[c+2]})}return{I:"span",V:b}};
oW=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.U().D);a=a.api.getVideoData();b=g.qK(g.nW[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({I:"h2",ya:f});d.push(b[0]);h&&d.push({I:"br"});d.push({I:"a",Y:{href:c,target:e?"_blank":null},ya:b[2]});d.push(b[4]);return{I:"span",V:d}};
BWa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.T(c[d],"click",b);a.keys.push(e)}};
CWa=function(a){for(var b=0;b<a.keys.length;b++)a.Nc(a.keys[b]);a.keys=[]};
DWa=function(a){g.U.call(this,{I:"div",S:"ytp-paid-content-overlay",Y:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.videoId=null;this.C=!1;this.jf=this.j=null;var b=a.U();a.L("enable_new_paid_product_placement")&&!g.DS(b)?(this.B=new g.U({I:"a",S:"ytp-paid-content-overlay-link",Y:{href:"{{href}}",target:"_blank"},V:[{I:"div",S:"ytp-paid-content-overlay-icon",ya:"{{icon}}"},{I:"div",S:"ytp-paid-content-overlay-text",ya:"{{text}}"},{I:"div",S:"ytp-paid-content-overlay-chevron",ya:"{{chevron}}"}]}),
this.T(this.B.element,"click",this.onClick)):this.B=new g.U({I:"div",Ma:["ytp-button","ytp-paid-content-overlay-text"],ya:"{{text}}"});this.D=new g.MG(this.B,250,!1,100);g.J(this,this.B);this.B.Ja(this.element);g.J(this,this.D);this.J.createServerVe(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Sd)};
FWa=function(a,b){var c=RRa(b),d=SRa(b);b.nh&&a.J.Dp()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Hu(a.j),a.videoId=b.videoId,a.C=!!d,a.C&&c&&EWa(a,d,c,b)):c&&d&&EWa(a,d,c,b))};
EWa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Eu(a.Pb,b,a);g.J(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.R(e,g.zG))?void 0:l.url;a.J.setTrackingParams(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.B.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{I:"svg",Y:{fill:"none",height:"100%",
viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Y:{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.qG():null})};
GWa=function(a,b){a.j&&(g.TG(b,8)&&a.C?(a.C=!1,a.od(),a.j.start()):(g.TG(b,2)||g.TG(b,64))&&a.videoId&&(a.videoId=null))};
pW=function(a){g.U.call(this,{I:"div",S:"ytp-spinner",V:[eUa(),{I:"div",S:"ytp-spinner-message",ya:"Jos toisto ei ala pian, kokeile k\u00e4ynnist\u00e4\u00e4 laite uudelleen."}]});this.api=a;this.message=this.Ha("ytp-spinner-message");this.j=new g.Eu(this.show,500,this);g.J(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.B);this.Dc(a.Vb())};
qW=function(a){var b=[{I:"div",Ma:["ytp-unmute-icon"],V:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{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"}}]}]},
{I:"div",Ma:["ytp-unmute-text"],ya:"Poista mykistys"}];b.push({I:"div",Ma:["ytp-unmute-box"],V:[]});g.NU.call(this,a,{I:"button",Ma:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],V:[{I:"div",S:"ytp-unmute-inner",V:b}]},100);this.j=this.clicked=!1;this.api=a;this.api.createClientVe(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",this.pk);this.Ra("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&
!g.mS(this.api.U());g.jG(this,a);a&&HWa(this);this.C=a};
HWa=function(a){a.j||(a.j=!0,a.api.logVisibility(a.element,!0))};
g.rW=function(a){g.aL.call(this);var b=this;this.api=a;this.rP=!1;this.Gn=null;this.XM=!1;this.Bg=null;this.YM=this.OK=!1;this.YR=this.ZR=null;this.EX=NaN;this.XR=this.aD=!1;this.xE=0;this.gM=[];this.yQ=!1;this.yI={height:0,width:0};this.u_=480;this.Aca=["ytp-player-content","html5-endscreen","ytp-overlay"];this.yP={BO:!1};var c=a.U(),d=a.qb();this.yI=a.getPlayerSize();this.RU=new g.Eu(this.MP,0,this);g.J(this,this.RU);this.cn=new g.kW(a);g.J(this,this.cn);g.GU(a,this.cn.element,4);if(IWa(this)){var e=
new pW(a);g.J(this,e);e=e.element;g.GU(a,e,4)}var f=a.getVideoData();this.Mg=new xWa(d,function(l){return b.aH(l)},f,c.wl,!1);
g.J(this,this.Mg);this.Mg.subscribe("autohideupdate",this.BA,this);if(!c.disablePaidContentOverlay){var h=new DWa(a);g.J(this,h);g.GU(a,h.element,4)}this.dS=new qW(a);g.J(this,this.dS);g.GU(this.api,this.dS.element,2);this.wO=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.LK=new g.Eu(this.Mr,200,this);g.J(this,this.LK);this.iE=f.videoId;this.RZ=new g.Eu(function(){b.xE=0},350);
g.J(this,this.RZ);this.wH=new g.Eu(function(){b.XR||JWa(b)},350,this);
g.J(this,this.wH);f=a.getRootNode();f.setAttribute("aria-label","YouTube-videosoitin");switch(c.color){case "white":g.Mu(f,"ytp-color-white")}this.T(a,"appresize",this.Zb);this.T(a,"presentingplayerstatechange",this.pk);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.G9);this.T(a,"autonavvisibility",function(){b.kq()});
this.T(a,"sizestylechange",function(){b.kq()});
this.T(d,"click",this.e$,this);this.T(d,"dblclick",this.f$,this);this.T(d,"mousedown",this.i$,this);c.Rb&&(this.T(d,"gesturechange",this.g$,this),this.T(d,"gestureend",this.h$,this));this.vE=[d.Wy];this.cn&&this.vE.push(this.cn.element);e&&this.vE.push(e)};
KWa=function(a,b){if(!b)return!1;var c=a.api.kf();if(c.Ou()&&(c=c.Fb())&&g.pf(c,b))return c.controls;for(c=0;c<a.vE.length;c++)if(g.pf(a.vE[c],b))return!1;c=g.u(a.Aca);for(var d=c.next();!d.done;d=c.next())if(g.Lu(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
LWa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.qb().uI||!1)&&a.api.U().B&&iW&&11<=rT;a=a.api.U().Z&&iW;return!(!b&&!a)};
sW=function(a,b){return!a.api.isInline()&&!KWa(a,QC(b))&&g.dH(b)};
JWa=function(a){a.Mg.hq();if(a.OK&&a.YM)a.YM=!1;else if(!a.api.U().Va&&!a.fn()){var b=a.api.Vb();g.TG(b,2)&&g.zU(a.api)||a.MF(b);!a.api.U().Rb||b.isCued()||g.TG(b,1024)?a.Mr():a.LK.isActive()?(a.xO(),a.LK.stop()):a.LK.start()}};
MWa=function(a,b){var c;if(null==(c=a.api.getVideoData())?0:c.mutedAutoplay){var d,e;if(null==(d=b.target)?0:null==(e=d.className)?0:e.includes("ytp-info-panel"))return!1}return g.dH(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.Vb(),!g.TG(b,4)||g.TG(b,8)||g.TG(b,2)||a.Mr(),!0):!1};
NWa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
IWa=function(a){a=rC()&&67<=voa()&&!a.api.U().Z;return!g.qC("tizen")&&!kS&&!a&&!0};
tW=function(a,b){b=void 0===b?2:b;g.cG.call(this);this.api=a;this.j=null;this.Ad=new SC(this);g.J(this,this.Ad);this.B=rwa;this.Ad.T(this.api,"presentingplayerstatechange",this.Sd);this.j=this.Ad.T(this.api,"progresssync",this.Kc);this.Eo=b;1===this.Eo&&this.Kc()};
OWa=function(a){g.U.call(this,{I:"button",Ma:["ytp-button","ytp-back-button"],V:[{I:"div",S:"ytp-arrow-back-icon",V:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},V:[{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",zc:!0,Y:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.J=a;g.jG(this,a.U().Kl);this.Ra("click",this.onClick)};
g.uW=function(a){g.U.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",ya:"{{title}}"}]},{I:"div",S:"ytp-bezel",Y:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",ya:"{{icon}}"}]}]});this.J=a;this.B=new g.Eu(this.show,10,this);this.j=new g.Eu(this.hide,500,this);g.J(this,this.B);g.J(this,this.j);this.hide()};
wW=function(a,b,c){if(0>=b){c=Jva();b="mykistetty";var d=0}else c=c?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,Y:{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"}}]}:{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,Y:{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+"\u00e4\u00e4nenvoimakkuus";vW(a,c,b,d+"%")};
PWa=function(a,b){b=b?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{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"}}]}:sva();var c=a.J.getPlaybackRate(),d=g.qK("Nopeus on $RATE",{RATE:String(c)});vW(a,b,d,c+"x")};
QWa=function(a,b){b=b?"Tekstitys k\u00e4yt\u00f6ss\u00e4":"Tekstitys poissa k\u00e4yt\u00f6st\u00e4";vW(a,dUa(),b)};
vW=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.Hu(a.j);a.B.start();a.updateValue("title",d);g.Qu(a.element,"ytp-bezel-text-hide",!d)};
RWa=function(a,b){g.U.call(this,{I:"button",Ma:["ytp-button","ytp-cards-button"],Y:{"aria-label":"N\u00e4yt\u00e4 kortit","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.mS(a.U()))},V:[{I:"span",S:"ytp-cards-button-icon-default",V:[{I:"div",S:"ytp-cards-button-icon",V:[a.U().L("player_new_info_card_format")?vva():{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{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"}}]}]},
{I:"div",S:"ytp-cards-button-title",ya:"Tiedot"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",Y:{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"}},{I:"path",S:"ytp-svg-fill",Y:{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"}},{I:"path",S:"ytp-svg-shadow-fill",Y:{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"}}]}]},{I:"div",
S:"ytp-cards-button-title",ya:"Ostokset"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.MG(this,250,!0,100);g.J(this,this.B);g.Qu(this.C,"ytp-show-cards-title",g.mS(a.U()));this.hide();this.Ra("click",this.K8);this.Ra("mouseover",this.e9);this.IF(!0)};
SWa=function(a,b){g.U.call(this,{I:"div",S:"ytp-cards-teaser",V:[{I:"div",S:"ytp-cards-teaser-box"},{I:"div",S:"ytp-cards-teaser-text",V:a.U().L("player_new_info_card_format")?[{I:"button",S:"ytp-cards-teaser-info-icon",Y:{"aria-label":"N\u00e4yt\u00e4 kortit","aria-haspopup":"true"},V:[vva()]},{I:"span",S:"ytp-cards-teaser-label",ya:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",Y:{"aria-label":"Sulje"},V:[g.rG()]}]:[{I:"span",S:"ytp-cards-teaser-label",ya:"{{text}}"}]}]});var c=this;
this.J=a;this.Sg=b;this.D=new g.MG(this,250,!1,250);this.j=null;this.N=new g.Eu(this.s9,300,this);this.K=new g.Eu(this.r9,2E3,this);this.G=[];this.B=null;this.W=new g.Eu(function(){c.element.style.margin="0"},250);
this.onClickCommand=this.C=null;g.J(this,this.D);g.J(this,this.N);g.J(this,this.K);g.J(this,this.W);a.U().L("player_new_info_card_format")?(g.Mu(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ha("ytp-cards-teaser-close-button"),"click",this.Op),this.T(this.Ha("ytp-cards-teaser-info-icon"),"click",this.PR),this.T(this.Ha("ytp-cards-teaser-label"),"click",this.PR)):this.Ra("click",this.PR);this.T(b.element,"mouseover",this.IT);this.T(b.element,"mouseout",this.HT);this.T(a,"cardsteasershow",
this.F$);this.T(a,"cardsteaserhide",this.Pb);this.T(a,"cardstatechange",this.h0);this.T(a,"presentingplayerstatechange",this.h0);this.T(a,"appresize",this.ML);this.T(a,"onShowControls",this.ML);this.T(a,"onHideControls",this.S4);this.Ra("mouseenter",this.Y2)};
TWa=function(a){g.U.call(this,{I:"button",Ma:[xW.BUTTON,xW.TITLE_NOTIFICATIONS],Y:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:xW.TITLE_NOTIFICATIONS_ON,Y:{title:"Poista t\u00e4m\u00e4n kanavan uusien videoiden ilmoitukset k\u00e4yt\u00f6st\u00e4.","aria-label":"Ilmoitukset tilatulta kanavalta"},V:[g.zva()]},{I:"div",S:xW.TITLE_NOTIFICATIONS_OFF,Y:{title:"Ota k\u00e4ytt\u00f6\u00f6n kaikkien t\u00e4m\u00e4n kanavan uusien videoiden ilmoitukset.","aria-label":"Ilmoitukset tilatulta kanavalta"},
V:[{I:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",Y:{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.createClientVe(this.element,this,36927);this.Ra("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Ota k\u00e4ytt\u00f6\u00f6n kaikkien t\u00e4m\u00e4n kanavan uusien videoiden ilmoitukset.")};
UWa=function(a,b){a.j=b;a.element.classList.toggle(xW.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.nL:c.mL)?(a=a.api.un())?fI(a,b):g.KF(Error("No innertube service available when updating notification preferences.")):g.KF(Error("No update preferences command available.")):g.KF(Error("No video data when updating notification preferences."))};
WWa=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=VWa(a,b);if(a=g.On(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))gsa(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
VWa=function(a,b){var c=document.location.protocol;return efa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
g.yW=function(a,b,c,d,e,f,h,l,m,n,p,q){a=a.charAt(0)+a.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var r=p.U(),t=r.userDisplayName&&g.rS(r);g.U.call(this,{I:"div",Ma:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",Y:t?{title:g.qK("Tilaa k\u00e4ytt\u00e4j\u00e4n\u00e4 $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Tilaa kanava","data-tooltip-image":MPa(r),"data-tooltip-opaque":String(g.mS(r)),tabindex:"0",
role:"button"}:{"aria-label":"Tilaa kanava"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},a]},b?{I:"div",S:"ytp-sb-count",ya:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",Y:t?{title:g.qK("Tilattu k\u00e4ytt\u00e4j\u00e4n\u00e4 $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Peru kanavan tilaus","data-tooltip-image":MPa(r),"data-tooltip-opaque":String(g.mS(r)),tabindex:"0",role:"button"}:{"aria-label":"Peru kanavan tilaus"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},c]},
d?{I:"div",S:"ytp-sb-count",ya:d}:""]}],Y:{"aria-live":"polite"}});var v=this;this.channelId=h;this.J=p;this.C=q;var x=this.Ha("ytp-sb-subscribe"),B=this.Ha("ytp-sb-unsubscribe");f&&g.Mu(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var F=function(){if(r.ra){var I=v.channelId;if(m||n){var L={c:I};var P;g.qI.isInitialized()&&(P=rLa(L));L=P||"";if(P=p.getVideoData())if(P=P.subscribeCommand){var V=p.un();V?(fI(V,P,{botguardResponse:L,feature:m}),p.ib("SUBSCRIBE",I)):g.KF(Error("No innertube service available when updating subscriptions."))}else g.KF(Error("No subscribe command in videoData."));
else g.KF(Error("No video data available when updating subscription."))}B.focus();B.removeAttribute("aria-hidden");x.setAttribute("aria-hidden","true")}else WWa(g.xS(v.J.U()),"sb_button",v.D)},G=function(){var I=v.channelId;
if(m||n){var L=p.getVideoData();fI(p.un(),L.unsubscribeCommand,{feature:m});p.ib("UNSUBSCRIBE",I)}x.focus();x.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")};
this.T(x,"click",F);this.T(B,"click",G);this.T(x,"keypress",function(I){13===I.keyCode&&F(I)});
this.T(B,"keypress",function(I){13===I.keyCode&&G(I)});
this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(TSa(p),wU(p,x,this),wU(p,B,this))}else g.Mu(x,"ytp-sb-disabled"),g.Mu(B,"ytp-sb-disabled")};
YWa=function(a){g.U.call(this,{I:"div",S:"ytp-title-channel",V:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",Y:{href:"{{channelLink}}",target:a.U().W,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-title-expanded-overlay",Y:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",ya:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:a.U().W,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",ya:"{{expandedSubtitle}}",Y:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Ha("ytp-title-channel");this.j=this.Ha("ytp-title-channel-logo");this.channelName=this.Ha("ytp-title-expanded-title");this.G=this.Ha("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.D=!1;a.createClientVe(this.j,this,36925);a.createClientVe(this.channelName,this,
37220);g.mS(this.api.U())&&XWa(this);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&(this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.On(zW(b));c.preventDefault()}),this.T(this.j,"click",this.J8));
this.Sa()};
ZWa=function(a){if(!a.api.U().ac){var b=a.api.getVideoData(),c=new g.yW("Tilaa",null,"Tilattu",null,!0,!1,b.El,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
a.subscribeButton=c;g.J(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new TWa(a.api);a.B=e;g.J(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.Hl&&(e.show(),a.api.logVisibility(e.element,!0))});
a.T(a.api,"UNSUBSCRIBE",function(){b.Hl&&(e.hide(),a.api.logVisibility(e.element,!1),UWa(e,!1))})}};
XWa=function(a){var b=a.api.U();ZWa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.bb?a.T(a.j,"click",function(c){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||($Wa(a)&&(c.preventDefault(),a.isExpanded()?a.iH():a.GH()),a.api.logClick(a.j))}):(a.T(a.channel,"mouseenter",a.GH),a.T(a.channel,"mouseleave",a.iH),a.T(a.channel,"focusin",
a.GH),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.iH()}),a.T(a.j,"click",function(){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||a.api.logClick(a.j)}));
a.C=new g.Eu(function(){a.isExpanded()&&(a.api.L("web_player_ve_conversion_fixes_for_channel_info")&&a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.B&&(a.B.hide(),a.api.logVisibility(a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.J(a,a.C);a.T(a.channel,aXa,function(){bXa(a)});
a.T(a.api,"onHideControls",a.cR);a.T(a.api,"appresize",a.cR);a.T(a.api,"fullscreentoggled",a.cR)};
bXa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
$Wa=function(a){var b=a.api.getPlayerSize();return g.mS(a.api.U())&&524<=b.width};
zW=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.IS(b)+c.Oc;if(!g.mS(b))return c;b={};g.nU(a.api,"addEmbedsConversionTrackingParams",[b]);g.KP(b,"emb_ch_name_ex");return g.Ml(c,b)};
AW=function(a,b,c,d,e,f){var h={I:"div",S:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={I:"div",S:"ytp-panel-header",V:[{I:"div",Ma:["ytp-panel-back-button-container"],V:[{Y:{"aria-label":"Palaa edelliseen valikkoon"},I:"button",Ma:["ytp-button",l]}]},{I:"span",Ma:[m],V:[c]}]};if(e){var p="ytp-panel-options";n.V.push({I:"button",Ma:["ytp-button",p],V:[d]})}h.V=[n]}d=!1;f&&(f={I:"div",S:"ytp-panel-footer",V:[f]},d=!0,h.V?h.V.push(f):h.V=[f]);g.kG.call(this,h);this.content=
b;d&&h.V?b.Ja(this.element,h.V.length-1):b.Ja(this.element);this.VW=!1;this.UW=d;c&&(c=this.Ha(l),m=this.Ha(m),this.T(c,"click",this.xY),this.T(m,"click",this.xY),this.VW=!0,e&&(p=this.Ha(p),this.T(p,"click",e)));b.subscribe("size-change",this.CY,this);this.T(a,"fullscreentoggled",this.CY);this.J=a};
g.BW=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.kG({I:"div",S:"ytp-panel-menu",Y:h});AW.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.J(this,this.menuItems)};
g.CW=function(a){for(var b=g.u(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.hQ,a);a.items=[];g.lf(a.menuItems.element);a.menuItems.oa("size-change")};
cXa=function(a,b){return b.priority-a.priority};
DW=function(a){var b=g.RU({"aria-haspopup":"true"});g.QU.call(this,b,a);this.Ra("keydown",this.j)};
EW=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
dXa=function(a,b){g.U.call(this,{I:"div",S:"ytp-user-info-panel",Y:{"aria-label":"K\u00e4ytt\u00e4j\u00e4tiedot"},V:a.U().ra&&!a.L("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",ya:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable}}",role:"text"},ya:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable2}}",role:"text"},ya:"{{watchingAsEmail}}"}]}]:
[{I:"div",S:"ytp-user-info-panel-icon",ya:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",Y:{tabIndex:"{{userInfoFocusable}}"},ya:"Ei kirjautuneena sis\u00e4\u00e4n"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",Y:{tabIndex:"{{userInfoFocusable2}}",role:"button"},ya:a.U().ac?"":"Kirjaudu YouTubeen"}]}]}]});this.Ua=a;this.j=b;a.U().ra||a.U().ac||(a=this.Ha("ytp-user-info-panel-login"),this.T(a,"click",this.b3));this.closeButton=new g.U({I:"button",Ma:["ytp-collapse",
"ytp-button"],Y:{title:"Sulje"},V:[g.tG()]});this.closeButton.Ja(this.element);g.J(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.Z2);this.Sa()};
fXa=function(a,b,c){g.BW.call(this,a);this.Lb=b;this.Rd=c;this.getVideoUrl=new DW(6);this.zn=new DW(5);this.pn=new DW(4);this.pc=new DW(3);this.qF=new g.QU(g.RU({href:"{{href}}",target:this.J.U().W},void 0,!0),2,"Toisto-ongelmien vianm\u00e4\u00e4ritys");this.showVideoInfo=new g.QU(g.RU(),1,"Tekniset tiedot");this.Xy=new g.kG({I:"div",Ma:["ytp-copytext","ytp-no-contextmenu"],Y:{draggable:"false",tabindex:"1"},ya:"{{text}}"});this.rV=new AW(this.J,this.Xy);this.fG=this.ot=null;g.mS(this.J.U())&&(this.closeButton=
new g.U({I:"button",Ma:["ytp-collapse","ytp-button"],Y:{title:"Sulje"},V:[g.tG()]}),g.J(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.Ra("click",this.V4,this));g.mS(this.J.U())&&(this.zl=new g.QU(g.RU(),8,"Tili"),g.J(this,this.zl),this.Tc(this.zl,!0),this.zl.Ra("click",this.s$,this),a.createClientVe(this.zl.element,this.zl,137682));this.J.U().Om&&(this.Wk=new XU("Jatkuva toisto",7),g.J(this,this.Wk),this.Tc(this.Wk,!0),this.Wk.Ra("click",this.l9,this),a.createClientVe(this.Wk.element,
this.Wk,28661));g.J(this,this.getVideoUrl);this.Tc(this.getVideoUrl,!0);this.getVideoUrl.Ra("click",this.c9,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.J(this,this.zn);this.Tc(this.zn,!0);this.zn.Ra("click",this.d9,this);a.createClientVe(this.zn.element,this.zn,28660);g.J(this,this.pn);this.Tc(this.pn,!0);this.pn.Ra("click",this.b9,this);a.createClientVe(this.pn.element,this.pn,28658);g.J(this,this.pc);this.Tc(this.pc,!0);this.pc.Ra("click",this.a9,this);g.J(this,this.qF);
this.Tc(this.qF,!0);this.qF.Ra("click",this.a$,this);g.J(this,this.showVideoInfo);this.Tc(this.showVideoInfo,!0);this.showVideoInfo.Ra("click",this.t$,this);g.J(this,this.Xy);this.Xy.Ra("click",this.P8,this);g.J(this,this.rV);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Paa("Chromium")&&(b=!0);40>=Paa("Firefox")&&(b=!1);b&&(this.ot=new g.U({I:"textarea",S:"ytp-html5-clipboard",Y:{readonly:"",tabindex:"-1"}}),g.J(this,this.ot),this.ot.Ja(this.element));var d;null==(d=
this.zl)||SU(d,Cva());var e;null==(e=this.Wk)||SU(e,{I:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});SU(this.pc,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{"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"}}]});SU(this.qF,tva());SU(this.showVideoInfo,uva());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);eXa(this);this.JF(this.J.getVideoData())};
GW=function(a,b){var c=!1;if(a.ot){var d=a.ot.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Lb.Pb():(a.Xy.Yd(b,"text"),g.FW(a.Lb,a.rV),fUa(a.Xy.element),a.ot&&(a.ot=null,eXa(a)));return c};
eXa=function(a){var b=!!a.ot;g.PU(a.pc,b?"Kopioi virheenkorjaustiedot":"Hae virheenkorjaustiedot");EW(a.pc,!b);g.PU(a.pn,b?"Kopioi upotuskoodi":"Hae upotuskoodi");EW(a.pn,!b);g.PU(a.getVideoUrl,b?"Kopioi videon URL-osoite":"Hae videon URL-osoite");EW(a.getVideoUrl,!b);g.PU(a.zn,b?"Kopioi videon URL-osoite nykyisest\u00e4 kohdasta":"Hae videon t\u00e4m\u00e4nhetkinen URL-osoite");EW(a.zn,!b);SU(a.pn,b?qva():null);SU(a.getVideoUrl,b?sG():null);SU(a.zn,b?sG():null)};
gXa=function(a){return g.mS(a.J.U())?a.zl:a.Wk};
g.HW=function(a,b){g.NU.call(this,a,{I:"div",Ma:["ytp-popup",b||""]},100,!0);this.j=[];this.K=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.ne(0,0);this.Ra("keydown",this.d3)};
hXa=function(a){var b=a.j[a.j.length-1];if(b){g.hs(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.Yr(b.element,"width","");g.Yr(b.element,"height","");g.Yr(b.element,"maxWidth","100%");g.Yr(b.element,"maxHeight","100%");g.Yr(b.content.element,"height","");var c=g.is(b.element);c.width+=1;c.height+=1;g.Yr(b.element,"width",c.width+"px");g.Yr(b.element,"height",c.height+"px");g.Yr(b.element,"maxWidth","");g.Yr(b.element,"maxHeight","");var d=0;b.VW&&(d=b.Ha("ytp-panel-header"),d=g.is(d).height);
var e=0;b.UW&&(e=b.Ha("ytp-panel-footer"),g.Yr(e,"width",c.width+"px"),e=g.is(e).height);g.Yr(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.Yr(b.element,"width",c.width+"px")));a.size=c}};
g.FW=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);iXa(a,c,b)};
g.IW=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];iXa(a,b,c,!0)}};
iXa=function(a,b,c,d){jXa(a);b&&(b.unsubscribe("size-change",a.GB,a),b.unsubscribe("back",a.Dj,a));c.subscribe("size-change",a.GB,a);c.subscribe("back",a.Dj,a);if(a.Ib){g.Mu(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ja(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;hXa(a);g.hs(a.element,e);a.G=new g.Eu(function(){kXa(a,b,c,d)},20,a);
a.G.start()}else c.Ja(a.element),b&&b.detach()};
kXa=function(a,b,c,d){a.G.dispose();a.G=null;g.Mu(a.element,"ytp-popup-animating");d?(g.Mu(b.element,"ytp-panel-animate-forward"),g.Ou(c.element,"ytp-panel-animate-back")):(g.Mu(b.element,"ytp-panel-animate-back"),g.Ou(c.element,"ytp-panel-animate-forward"));g.hs(a.element,a.size);a.K=new g.Eu(function(){g.Ou(a.element,"ytp-popup-animating");b.detach();g.Pu(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a);
a.K.start()};
jXa=function(a){a.G&&g.Gu(a.G);a.K&&g.Gu(a.K)};
mXa=function(a,b){g.HW.call(this,a);this.Rd=b;this.D=new g.aL(this);this.ra=new g.Eu(this.K$,1E3,this);this.Ba=this.C=null;g.J(this,this.D);g.J(this,this.ra);a.createClientVe(this.element,this,28656);g.Mu(this.element,"ytp-contextmenu");lXa(this);this.hide()};
lXa=function(a){g.UC(a.D);var b=a.J.U();"gvn"===b.playerStyle||b.B||b.bb||(b=a.J.qb(),a.D.T(b,"contextmenu",a.N8),a.D.T(b,"touchstart",a.f3,null,!0),a.D.T(b,"touchmove",a.dZ,null,!0),a.D.T(b,"touchend",a.dZ,null,!0))};
nXa=function(a){a.J.isFullscreen()?g.GU(a.J,a.element,10):a.Ja(document.body)};
JW=function(a,b,c){c=void 0===c?240:c;g.U.call(this,{I:"button",Ma:["ytp-button","ytp-copylink-button"],Y:{title:"{{title-attr}}","data-tooltip-opaque":String(g.mS(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",ya:"{{icon}}"},{I:"div",S:"ytp-copylink-title",ya:"Kopioi linkki",Y:{"aria-hidden":"true"}}]});this.api=a;this.ye=b;this.j=c;this.visible=!1;this.tooltip=this.ye.Le();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.Qu(this.element,"ytp-show-copylink-title",g.mS(b));a.createClientVe(this.element,
this,86570);this.Ra("click",this.onClick);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.T(a,"appresize",this.Sa);this.Sa();this.addOnDisposeCallback(g.vU(this.tooltip,this.element))};
oXa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=a.api.qb().getPlayerSize().width;b=b.C;return!!c.videoId&&d>=a.j&&c.Uo&&!g.gU(c)&&!g.DU(a.api)&&!b};
pXa=function(a){a.updateValue("icon",mva());if(a.api.U().B)a.tooltip.NF(a.element,"Linkki kopioitu leikep\u00f6yd\u00e4lle");else{a.updateValue("title-attr","Linkki kopioitu leikep\u00f6yd\u00e4lle");a.tooltip.Jh();a.tooltip.NF(a.element);var b=a.Ra("mouseleave",function(){a.Nc(b);a.Sa();a.tooltip.Sl()})}};
qXa=function(a,b){return g.Ha(function(c){if(1==c.j)return g.ya(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.Aa(c);var d=c.return,e=!1,f=g.$e("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(UD){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)})};
KW=function(a){g.U.call(this,{I:"div",S:"ytp-doubletap-ui-legacy",V:[{I:"div",S:"ytp-doubletap-fast-forward-ve"},{I:"div",S:"ytp-doubletap-rewind-ve"},{I:"div",S:"ytp-doubletap-static-circle",V:[{I:"div",S:"ytp-doubletap-ripple"}]},{I:"div",S:"ytp-doubletap-overlay-a11y"},{I:"div",S:"ytp-doubletap-seek-info-container",V:[{I:"div",S:"ytp-doubletap-arrows-container",V:[{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"}]},{I:"div",
S:"ytp-doubletap-tooltip",V:[{I:"div",S:"ytp-chapter-seek-text-legacy",ya:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",ya:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.Eu(this.show,10,this);this.B=new g.Eu(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Ha("ytp-doubletap-static-circle");g.J(this,this.D);g.J(this,this.B);this.hide();this.N=this.Ha("ytp-doubletap-fast-forward-ve");this.W=this.Ha("ytp-doubletap-rewind-ve");this.J.createClientVe(this.N,this,28240);this.J.createClientVe(this.W,
this,28239);this.J.logVisibility(this.N,!0);this.J.logVisibility(this.W,!0);this.G=a.L("web_show_cumulative_seek_time")};
LW=function(a,b,c){a.C=b===a.K?a.C+c:c;a.K=b;var d=a.J.qb().getPlayerSize();a.G?a.B.stop():g.Hu(a.B);a.D.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.Mu(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";rXa(a,a.G?a.C:c)};
sXa=function(a,b,c){g.Hu(a.B);a.D.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.Mu(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
rXa=function(a,b){b=g.qK("$TOTAL_SEEK_TIME sekuntia",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
OW=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?!1:c;g.U.call(this,{I:"div",S:"ytp-suggested-action"});var d=this;this.J=a;this.bb=this.ma=this.W=this.C=this.B=this.K=this.expanded=this.enabled=this.La=!1;this.Va=new g.Eu(function(){d.badge.element.style.width=""},200,this);
this.Ga=new g.Eu(function(){MW(d);NW(d)},200,this);
this.dismissButton=new g.U({I:"button",Ma:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.J(this,this.dismissButton);this.D=new g.U({I:"div",S:"ytp-suggested-action-badge-expanded-content-container",V:[{I:"label",S:"ytp-suggested-action-badge-title",ya:"{{badgeLabel}}"},this.dismissButton]});g.J(this,this.D);this.Ea=new g.U({I:"div",S:"ytp-suggested-action-badge-icon-container",V:[b?{I:"div",S:"ytp-suggested-action-badge-icon"}:""]});g.J(this,this.Ea);this.badge=new g.U({I:c?"div":
"button",Ma:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.Ea,this.D]});g.J(this,this.badge);this.badge.Ja(this.element);this.N=new g.MG(this.badge,250,!1,100);g.J(this,this.N);this.Qa=new g.MG(this.D,250,!1,100);g.J(this,this.Qa);this.Za=new g.Cu(this.Dba,null,this);g.J(this,this.Za);this.Na=new g.Cu(this.C5,null,this);g.J(this,this.Na);g.J(this,this.Va);g.J(this,this.Ga);this.J.createServerVe(this.badge.element,this.badge,!0);this.J.createServerVe(this.dismissButton.element,
this.dismissButton,!0);this.T(this.J,"onHideControls",function(){d.sJ(!1)});
this.T(this.J,"onShowControls",function(){d.sJ(!0)});
this.T(this.badge.element,"click",this.pJ);this.T(this.dismissButton.element,"click",this.CA);this.T(this.J,"pageTransition",this.JT);this.T(this.J,"appresize",this.Fm);this.T(this.J,"fullscreentoggled",this.Z8);this.T(this.J,"cardstatechange",this.G8);this.T(this.J,"annotationvisibility",this.mca,this);this.T(this.J,"offlineslatestatechange",this.nca,this)};
MW=function(a){g.Qu(a.badge.element,"ytp-suggested-action-badge-with-controls",a.W||!a.K)};
NW=function(a,b){var c=a.AK();a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Za.stop(),a.Na.stop(),a.Va.stop(),a.Za.start()):(g.jG(a.D,a.expanded),g.Qu(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),tXa(a))};
tXa=function(a){a.B&&a.J.logVisibility(a.badge.element,a.vB());a.C&&a.J.logVisibility(a.dismissButton.element,a.vB()&&a.AK())};
uXa=function(a){var b=a.text||"",c=g.Me("ytp-suggested-action-badge-title",a.element);c&&g.qf(c,b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.rb?a.rb:"")};
PW=function(a,b){b?a.C&&a.J.logClick(a.dismissButton.element):a.B&&a.J.logClick(a.badge.element)};
QW=function(a){g.HW.call(this,a,"ytp-shopping-product-menu");this.Re=new g.BW(this.J);g.J(this,this.Re);this.hide();g.FW(this,this.Re);g.GU(this.J,this.element,4)};
wXa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&(c=vXa(a,c,e,null==b?void 0:b.icon),b.navigationEndpoint&&c.Ra("click",function(){a.J.ib("innertubeCommand",b.navigationEndpoint);a.hide()},a))};
xXa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&vXa(a,c,e,null==b?void 0:b.icon).Ra("click",function(){var f;"HIDE"===(null==b?void 0:null==(f=b.icon)?void 0:f.iconType)?a.J.oa("featuredproductdismissed"):b.serviceEndpoint&&a.J.ib("innertubeCommand",b.serviceEndpoint);a.hide()},a)};
vXa=function(a,b,c,d){b=new g.QU(g.RU(),b,c);SU(b,yXa(d));g.J(a,b);a.Re.Tc(b,!0);return b};
yXa=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z",
fill:"#fff"}}]};case "FLAG":return{I:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return tva();case "HIDE":return{I:"svg",Y:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",Y:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}}};
zXa=function(a){OW.call(this,a,!1,!0);this.ra=[];this.tb=[];this.Xa=new QW(this.J);this.K=!0;g.J(this,this.Xa);this.badge.element.classList.add("ytp-featured-product");this.Ba=new g.U({I:"div",S:"ytp-featured-product-open-in-new"});g.J(this,this.Ba);this.countdownTimer=new g.U({I:"text",S:"ytp-featured-product-countdown",ya:"{{content}}"});this.countdownTimer.hide();g.J(this,this.countdownTimer);this.G=new g.U({I:"div",S:"ytp-featured-product-trending",V:[{I:"div",S:"ytp-featured-product-trending-icon"},
{I:"text",S:"ytp-featured-product-trending-text",ya:"{{trendingOffer}}"}]});this.G.hide();g.J(this,this.G);this.overflowButton=new g.U({I:"button",Ma:["ytp-featured-product-overflow-icon","ytp-button"],Y:{"aria-owns":this.Xa.element.id,"aria-haspopup":"true"}});this.overflowButton.hide();g.J(this,this.overflowButton);this.infoButton=new g.U({I:"button",Ma:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.J(this,this.infoButton);this.banner=new g.U({I:"a",S:"ytp-featured-product-container",
V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",Y:{src:"{{thumbnail}}"}},this.Ba]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",ya:"{{title}}"},{I:"text",S:"ytp-featured-product-price",ya:"{{price}}"},{I:"div",V:[{I:"text",S:"ytp-featured-product-vendor",ya:"{{vendor}}"},{I:"text",S:"ytp-featured-product-affiliate-disclaimer",ya:"{{affiliateDisclaimer}}"},this.countdownTimer,this.G]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.J(this,
this.banner);this.banner.Ja(this.D.element);this.T(this.J,g.kK("featured_product"),this.nba);this.T(this.J,g.lK("featured_product"),this.dB);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.f9);this.T(this.overflowButton.element,"click",this.B9);this.T(a,"featuredproductdismissed",this.CA)};
AXa=function(a){var b,c,d,e,f,h;return a.G.Ib||(null==(b=a.j)?0:null==(c=b.bannerData)?0:null==(d=c.itemData)?0:d.affiliateDisclaimer)?null:null==(e=a.j)?void 0:null==(f=e.bannerData)?void 0:null==(h=f.itemData)?void 0:h.vendorName};
CXa=function(a,b){RW(a);if(b){var c=g.BT.getState().entities;c=gP(c,"featuredProductsEntity",b);if(null!=c&&c.productsData){b=[];c=g.u(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(null!=(e=d)&&e.identifier&&d.featuredSegments){a.ra.push(d);var f=void 0;e=g.u(null==(f=d)?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=BXa(h.startTimeSec);void 0!==f&&(h=BXa(h.endTimeSec),b.push(new g.jK(1E3*f,void 0===h?0x7ffffffffffff:1E3*h,{id:d.identifier,
namespace:"featured_product"})))}}}a.J.Af(b)}}};
EXa=function(a){if(a.trendingOfferEntityKey){var b=g.BT.getState().entities;if(b=gP(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==(null==(c=a.j)?void 0:null==(d=c.bannerData)?void 0:null==(e=d.itemData)?void 0:e.encodedOfferSkuId)?DXa(a):(a.G.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.G.show(),a.banner.update({vendor:AXa(a)}))}else DXa(a)}else DXa(a)};
DXa=function(a){a.G.hide();a.banner.update({vendor:AXa(a)})};
RW=function(a){a.ra=[];a.dB();a.J.wf("featured_product")};
FXa=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.hiddenProductOptions)?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Yd(WGa({seconds:b}));if(0<b){var h;null==(h=a.kb)||h.start()}};
GXa=function(a){var b;null==(b=a.kb)||b.stop();a.countdownTimer.hide()};
BXa=function(a){if(void 0!==a&&""!==a.trim()&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||0>a)))return a};
LXa=function(a,b,c){g.U.call(this,{I:"div",Ma:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",ya:"{{disclaimer}}"},{I:"a",Ma:["ytp-info-panel-action-item-button","ytp-button"],Y:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",ya:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",ya:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Ha("ytp-info-panel-action-item-disclaimer");this.button=
this.Ha("ytp-info-panel-action-item-button");this.Ee=!1;this.J.createServerVe(this.element,this,!0);this.Ra("click",this.onClick);a="";c=g.R(null==b?void 0:b.onTap,OF);var d=g.R(c,g.zG);this.Ee=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.Ee=!0,g.Mn(this.button,g.Jn(a))):(d=g.R(c,HXa))&&!this.j?((a=d.phoneNumbers)&&0<a.length?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.Ee=!0,g.Mn(this.button,g.Jn(a,[IXa]))):(c=g.R(c,JXa))&&!this.j&&(a=c.phoneNumber?
"tel:"+c.phoneNumber:"",this.Ee=!0,g.Mn(this.button,g.Jn(a,[KXa])));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:Ava(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:null==(h=b.bodyText)?void 0:h.content,icon:Ava()})}this.J.setTrackingParams(this.element,b.trackingParams||null);this.Ee&&(this.B={externalLinkData:{url:a}})};
MXa=function(a,b){var c=fG();g.NU.call(this,a,{I:"div",S:"ytp-info-panel-detail-skrim",V:[{I:"div",S:"ytp-info-panel-detail",Y:{role:"dialog",id:c},V:[{I:"div",S:"ytp-info-panel-detail-header",V:[{I:"div",S:"ytp-info-panel-detail-title",ya:"{{title}}"},{I:"button",Ma:["ytp-info-panel-detail-close","ytp-button"],Y:{"aria-label":"Sulje"},V:[g.rG()]}]},{I:"div",S:"ytp-info-panel-detail-body",ya:"{{body}}"},{I:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Ha("ytp-info-panel-detail-items");
this.C=new g.aL(this);this.itemData=[];this.D=c;b=this.Ha("ytp-info-panel-detail-close");this.T(b,"click",this.Pb);b=this.Ha("ytp-info-panel-detail-skrim");this.T(b,"click",this.Pb);b=this.Ha("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()});
g.J(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
NXa=function(a,b){a=g.u(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.logVisibility(c.element,b)};
QXa=function(a,b){g.U.call(this,{I:"div",S:"ytp-info-panel-preview",Y:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.mS(a.U()))},V:[{I:"div",S:"ytp-info-panel-preview-text",ya:"{{text}}"},{I:"div",S:"ytp-info-panel-preview-chevron",ya:"{{chevron}}"}]});var c=this;this.J=a;this.jf=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.fn();OU(b)});
this.C=new g.MG(this,250,!1,100);g.J(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Sd);this.T(this.J,"paidcontentoverlayvisibilitychange",this.DY);this.T(this.J,"infopaneldetailvisibilitychange",this.DY);var d=a.getVideoData()||{};OXa(d)&&PXa(this,d);this.T(a,"onShowControls",this.j3);this.T(a,"onHideControls",this.g3)};
PXa=function(a,b){if(!b.nh||!a.J.Dp()){var c=b.uC||1E4,d=OXa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.Hu(a.j),a.videoId=b.videoId,d?(RXa(a,c,b),a.od()):(a.Pb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),RXa(a,c,b),a.od())}};
OXa=function(a){var b,c,d,e;return!!(null==(b=a.yf)?0:null==(c=b.title)?0:c.content)||!!(null==(d=a.yf)?0:null==(e=d.bodyText)?0:e.content)};
RXa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Eu(a.rba,b,a);g.J(a,a.j);var d;b=(null==(d=c.yf)?void 0:d.trackingParams)||null;a.J.setTrackingParams(a.element,b);var e;var f,h;if(null==c?0:null==(f=c.yf)?0:null==(h=f.title)?0:h.content){var l;d=null==(e=c.yf)?void 0:null==(l=e.title)?void 0:l.content;var m,n;if(null==(m=c.yf)?0:null==(n=m.bodyText)?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=(null==(p=c.yf)?void 0:null==(q=p.bodyText)?void 0:q.content)||"";a.update({text:e+c,chevron:g.qG()})};
SXa=function(a,b){a.j&&(g.TG(b,8)?(a.B=!0,a.od(),a.j.start()):(g.TG(b,2)||g.TG(b,64))&&a.videoId&&(a.videoId=null))};
SW=function(a){var b=null;try{b=a.toLocaleString("fi",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
TW=function(a,b){var c=0;a=g.u(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
TXa=function(a,b){for(var c=0,d=g.u(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};
UXa=function(a,b){b=TW(a,b)+1;return b<a.length?b:-1};
VXa=function(a,b){return TW(a,b)-1};
WXa=function(a,b){return new g.jK(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
YXa=function(a,b,c,d,e,f,h,l){g.aL.call(this);var m=this;this.api=a;this.contextMenu=c;this.Mg=d;this.Rd=e;this.j=f;this.K=h;this.progressBar=l;this.D=new g.Eu(function(){XXa(m,!1)},1E3);
this.B="";this.C={xI:!1};this.G=!1;g.J(this,this.D);this.T(b,"mousedown",function(){UW(m,!1)});
this.T(c.element,"mousedown",function(){UW(m,!1)});
this.T(b,"keydown",this.JW);this.T(c.element,"keydown",this.JW);this.T(b,"keyup",this.KW);this.T(c.element,"keyup",this.KW)};
UW=function(a,b){a.G=b;g.Qu(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.Qu(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
WW=function(a,b,c,d){var e=g.aW(a.api.zb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.VW.length;h++){var l=g.VW[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);XXa(a,!0);a.D.start()}};
XXa=function(a,b){g.aW(a.api.zb())&&a.api.setOption("captions","sampleSubtitles",b)};
g.XW=function(a,b){g.U.call(this,{I:"button",Ma:["ytp-button","ytp-overflow-button"],Y:{title:"Lis\u00e4\u00e4","aria-haspopup":"true","aria-owns":b.element.id},V:[{I:"div",S:"ytp-overflow-icon",V:[{I:"svg",Y:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},V:[{I:"path",Y:{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 c=this;this.J=a;this.Vh=b;this.j=this.visible=!1;a.createClientVe(this.element,
this,16499);this.T(a,"videoplayerreset",this.Sa);this.T(a,"appresize",this.Sa);this.T(a,"fullscreentoggled",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.Sa();wU(a,this.element,this);this.Ra("click",function(){a.logClick(c.element);OU(b,c.element,!1)});
this.T(b.closeButton,"click",function(){c.focus()})};
ZXa=function(a){g.NU.call(this,a,{I:"div",S:"ytp-overflow-panel",Y:{id:fG(),role:"dialog"},V:[{I:"div",S:"ytp-overflow-panel-content",V:[{I:"div",S:"ytp-overflow-panel-action-buttons",ya:"{{buttons}}"}]},{I:"button",Ma:["ytp-overflow-panel-close","ytp-button"],Y:{title:"Sulje"},V:[g.rG()]}]},250);this.actionButtons=[];this.j=this.Ha("ytp-overflow-panel-content");this.closeButton=this.Ha("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Pb);wU(a,this.closeButton,this);this.Ra("click",
this.l3);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
$Xa=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
aYa=function(a,b){a=g.u(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Hc(b)};
bYa=function(a,b,c){var d=g.OV(b,c),e=d.Wg("default.jpg");g.U.call(this,{I:"a",Ma:["ytp-video-menu-item","ytp-button"],Y:{role:"menuitemradio","aria-label":d.title,href:a.U().getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},V:[{I:"div",S:"ytp-video-menu-item-index",ya:String(c+1)},{I:"div",S:"ytp-video-menu-item-now-playing",ya:"\u25b6"},{I:"div",S:"ytp-video-menu-item-thumbnail",Y:{style:e?"background-image: url("+e+");":void 0}},{I:"div",S:"ytp-video-menu-item-title",ya:d.title},{I:"div",
S:"ytp-video-menu-item-author",ya:d.author}]});this.api=a;this.index=c;this.Ra("click",this.onClick)};
cYa=function(a){g.NU.call(this,a,{I:"div",S:"ytp-playlist-menu",Y:{role:"dialog",id:fG()},V:[{I:"div",S:"ytp-playlist-menu-header",V:[{I:"div",S:"ytp-playlist-menu-title",V:[a.U().C?{I:"span",S:"ytp-playlist-menu-title-name",ya:"{{title}}"}:{I:"a",S:"ytp-playlist-menu-title-name",Y:{href:"{{playlisturl}}"},ya:"{{title}}"},{I:"button",Ma:["ytp-playlist-menu-close","ytp-button"],Y:{"aria-label":"Sulje"},V:[g.rG()]}]},{I:"div",S:"ytp-playlist-menu-subtitle",ya:"{{subtitle}}"}]},{I:"div",S:"ytp-playlist-menu-items",
Y:{role:"menu"}}]},250);this.api=a;this.D=this.selected=this.G=this.playlist=null;this.items=this.Ha("ytp-playlist-menu-items");this.C=new g.aL(this);this.j=[];var b=this.Ha("ytp-playlist-menu-close");this.T(b,"click",this.Pb);b=this.Ha("ytp-playlist-menu-title-name");a.U().C||(this.D=this.T(b,"click",this.J$));g.J(this,this.C);this.hide()};
YW=function(a,b){g.U.call(this,{I:"button",Ma:["ytp-playlist-menu-button","ytp-button"],Y:{title:"{{title}}","aria-owns":String(b.element.id),"aria-haspopup":"true","aria-label":"Soittolista"},V:[{I:"div",S:"ytp-playlist-menu-button-icon",V:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,Y:{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"}}]}]},{I:"div",S:"ytp-playlist-menu-button-text",ya:"{{text}}"}]});var c=this;this.api=a;this.playlist=null;this.visible=!1;a.createClientVe(this.element,this,70344);this.T(a,"videodatachange",this.j);this.T(a,"videoplayerreset",this.j);this.T(a,"onPlaylistUpdate",this.j);this.T(a,"presentingplayerstatechange",this.Sa);this.T(a,"appresize",this.Sa);this.hide();this.j();wU(a,this.element,this);this.Ra("click",function(){a.logClick(c.element);OU(b,c.element,!1)})};
dYa=function(a,b){g.U.call(this,{I:"div",S:"ytp-promotooltip-wrapper",V:[{I:"div",S:"ytp-promotooltip-container",V:[{I:"div",S:"ytp-promotooltip-content",V:[{I:"div",S:"ytp-promotooltip-title",ya:"{{title}}"},{I:"div",S:"ytp-promotooltip-details",ya:"{{details}}"}]},{I:"div",S:"ytp-promotooltip-buttons",V:[{I:"div",S:"ytp-promotooltip-dismiss-button",ya:"{{dismissButtonText}}",Y:{tabindex:"0"}},{I:"div",S:"ytp-promotooltip-accept-button",ya:"{{acceptButtonText}}",Y:{tabindex:"0","aria-haspopup":"true"}}]}]},
{I:"div",S:"ytp-promotooltip-pointer"}]});var c=this;this.tooltipRenderer=a;this.J=b;this.j=this.C=null;this.title=this.Ha("ytp-promotooltip-title");this.details=this.Ha("ytp-promotooltip-details");this.acceptButton=this.Ha("ytp-promotooltip-accept-button");this.dismissButton=this.Ha("ytp-promotooltip-dismiss-button");this.B=this.G=!1;this.D=!0;this.ma=this.K=this.W=this.N=!1;this.Fd={EF:function(d){c.EF(d)}};
g.jG(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.B=!!a)this.J.createServerVe(this.element,this,!0),this.J.setTrackingParams(this.element,a);this.T(b,"onShowControls",this.n3);this.T(b,"onHideControls",this.m3);this.T(b,"resize",this.Zb);this.T(this.acceptButton,"click",this.o8);this.T(this.dismissButton,"click",this.U8);this.T(document,"click",this.o3)};
eYa=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.Me("ytp-chrome-bottom"),d=g.Me("ytp-ad-module");a.D=!(null==c||!c.contains(b));a.N=!(null==d||!d.contains(b));a.W=!(null==b||!b.hasAttribute("data-tooltip-target-fixed"));return b};
hYa=function(a,b,c){if(!a.G){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.js(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.gG({I:"span",S:"ytp-promotooltip-details-icon",
V:[fYa[a.tooltipRenderer.targetId]]});g.J(a,h);for(var l=[],m=g.u(d),n=m.next();!n.done;n=m.next())n=new g.gG({I:"span",S:"ytp-promotooltip-details-component",ya:n.value}),g.J(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.lf(a.details),e=g.u(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.js(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;(null==(p=g.R(e,g.nN))?0:null==(q=p.text)?0:null==(r=q.runs)?0:r.length)&&g.R(e,g.nN).text.runs[0].text&&(a.update({acceptButtonText:g.R(e,g.nN).text.runs[0].text.toString()}),f=!0);g.js(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,v,x;(null==(t=g.R(p,g.nN))?0:null==(v=t.text)?0:null==(x=v.runs)?0:x.length)&&g.R(p,g.nN).text.runs[0].text&&(a.update({dismissButtonText:g.R(p,g.nN).text.runs[0].text.toString()}),
q=!0);g.js(a.dismissButton,q)}c&&(a.C=c);a.j=eYa(a);a.K=!1;a.J.U().L("web_player_hide_nitrate_promo_tooltip")||g.jG(a,!0);gYa(a);a.Ib&&!a.ma&&(a.ma=!0,a.Fd.EF(0));a.B&&a.J.logVisibility(a.element,a.Ib)}};
ZW=function(a){g.jG(a,!1);a.B&&a.J.logVisibility(a.element,a.Ib)};
iYa=function(a){var b,c,d,e=(null==(b=g.R(a.acceptButton,g.nN))?void 0:null==(c=b.text)?void 0:null==(d=c.runs)?void 0:d.length)&&!!g.R(a.acceptButton,g.nN).text.runs[0].text,f,h,l;b=(null==(f=g.R(a.dismissButton,g.nN))?void 0:null==(h=f.text)?void 0:null==(l=h.runs)?void 0:l.length)&&!!g.R(a.dismissButton,g.nN).text.runs[0].text;return e||b};
gYa=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.J.jg())g.jG(a,!1);else if(b=g.is(a.j),b.width&&b.height){a.J.Tt(a.element,a.j);var d=a.J.qb().getPlayerSize().height;c=g.is(a.Ha("ytp-promotooltip-container")).height;a.D?a.element.style.top=d-c-b.height-12+"px":a.W||(d=a.J.Qk().height-c-b.height-12,a.element.style.top=d+"px");d=a.Ha("ytp-promotooltip-pointer");var e=g.gs(a.j,a.J.getRootNode()),
f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.J.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.jG(a,!1)};
$W=function(a){g.U.call(this,{I:"button",Ma:["ytp-replay-button","ytp-button"],Y:{title:"Toista uud."},V:[g.Gva()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.Ra("click",this.onClick,this);this.Dc(a.Vb());wU(this.J,this.element,this)};
aX=function(a,b){b=void 0===b?240:b;g.U.call(this,{I:"button",Ma:["ytp-button","ytp-search-button"],Y:{title:"Haku","data-tooltip-opaque":String(g.mS(a.U()))},V:[{I:"div",S:"ytp-search-icon",ya:"{{icon}}"},{I:"div",S:"ytp-search-title",ya:"Haku"}]});this.api=a;this.B=b;this.visible=!1;this.updateValue("icon",{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",S:"ytp-svg-fill",Y:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]});
a.createClientVe(this.element,this,184945);this.Ra("click",this.onClick);this.j();this.T(a,"appresize",this.j);this.T(a,"videodatachange",this.j);wU(a,this.element,this)};
g.bX=function(a,b,c,d){d=void 0===d?240:d;g.U.call(this,{I:"button",Ma:["ytp-button","ytp-share-button"],Y:{title:"Jaa","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.mS(a.U()))},V:[{I:"div",S:"ytp-share-icon",ya:"{{icon}}"},{I:"div",S:"ytp-share-title",ya:"Jaa"}]});this.api=a;this.ye=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.ye.Le();this.j=!1;a.createClientVe(this.element,this,28664);this.Ra("click",this.onClick);this.T(a,"videodatachange",this.Sa);this.T(a,
"videoplayerreset",this.Sa);this.T(a,"appresize",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.Sa();this.addOnDisposeCallback(g.vU(this.tooltip,this.element))};
jYa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.mS(b)&&g.CU(a.api)&&g.TG(a.api.Vb(),128);b=b.C||b.disableSharing&&2!==a.api.getPresentingPlayerType()||!c.showShareButton||c.Uo||d||g.gU(c)||a.j;d=a.api.qb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
kYa=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.ye.fn(),OU(a.B,a.element,!1)):g.KF(b))};
mYa=function(a,b){var c=fG(),d=a.U();c={I:"div",S:"ytp-share-panel",Y:{id:fG(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",Y:{id:c},ya:"Jaa"},{I:"a",Ma:["ytp-share-panel-link","ytp-no-contextmenu"],Y:{href:"{{link}}",target:d.W,title:"Jaa linkki","aria-label":"{{shareLinkWithUrl}}"},ya:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",Y:{type:"checkbox",
checked:"true"}},"Liit\u00e4 soittolista mukaan"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[eUa()]},{I:"div",S:"ytp-share-panel-service-buttons",ya:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",ya:"Jakotietoja haettaessa tapahtui virhe. Yrit\u00e4 my\u00f6hemmin uudelleen."}]},{I:"button",Ma:["ytp-share-panel-close","ytp-button"],Y:{title:"Sulje"},V:[g.rG()]}]};g.NU.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Le();this.C=[];this.G=this.Ha("ytp-share-panel-inner-content");
this.closeButton=this.Ha("ytp-share-panel-close");this.T(this.closeButton,"click",this.Pb);this.addOnDisposeCallback(g.vU(this.tooltip,this.closeButton));this.D=this.Ha("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Sa);this.j=this.Ha("ytp-share-panel-link");this.addOnDisposeCallback(g.vU(this.tooltip,this.j));this.api.createClientVe(this.j,this,164503);this.T(this.j,"click",function(f){f.preventDefault();e.api.logClick(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=lYa(e,h);
g.$U(h,e.api,f)&&e.api.ib("SHARE_CLICKED")});
this.Ra("click",this.q3);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.M7);this.hide()};
oYa=function(a,b){nYa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={mw:void 0,zm:void 0},f++){e.mw=c[f];a:switch(e.mw.img||e.mw.iconId){case "facebook":var h={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",Y:{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={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",Y:{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.mw.sname||e.mw.serviceName;e.zm=new g.U({I:"a",Ma:["ytp-share-panel-service-button","ytp-button"],Y:{href:e.mw.url,target:"_blank",title:l},V:[h]});e.zm.Ra("click",function(p){return function(q){var r=p.mw.url;if(g.dH(q)){var t=void 0===t?{}:t;t.target=t.target||"YouTube";t.width=t.width||"600";t.height=t.height||"600";var v=t;v||(v={});t=window;var x=r instanceof g.Ud?r:g.Zd("undefined"!=typeof r.href?r.href:String(r))||g.be;var B=void 0!==
self.crossOriginIsolated,F="strict-origin-when-cross-origin";window.Request&&(F=(new Request("/")).referrerPolicy);var G="unsafe-url"===F;F=v.noreferrer;if(B&&F){if(G)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");F=!1}r=v.target||r.target;B=[];for(var I in v)switch(I){case "width":case "height":case "top":case "left":B.push(I+"="+v[I]);break;case "target":case "noopener":case "noreferrer":break;default:B.push(I+"="+(v[I]?
1:0))}I=B.join(",");Hc()&&t.navigator&&t.navigator.standalone&&r&&"_self"!=r?(v=g.$e("A"),x=x instanceof g.Ud?x:Aba(x),v.href=g.Vd(x),v.target=r,F&&(v.rel="noreferrer"),x=document.createEvent("MouseEvent"),x.initMouseEvent("click",!0,!0,t,1),v.dispatchEvent(x),t={}):F?(t=Qba("",t,r,I),x=g.Vd(x),t&&(g.ES&&g.fc(x,";")&&(x="'"+x.replace(/'/g,"%27")+"'"),t.opener=null,""===x&&(x="javascript:''"),x=g.ee('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.te(x)+'">'),
(v=t.document)&&v.write&&(v.write(g.de(x)),v.close()))):((t=Qba(x,t,r,I))&&v.noopener&&(t.opener=null),t&&v.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e));
e.zm.addOnDisposeCallback(g.vU(a.tooltip,e.zm.element));"Facebook"===l?a.api.createClientVe(e.zm.element,e.zm,164504):"Twitter"===l&&a.api.createClientVe(e.zm.element,e.zm,164505);a.T(e.zm.element,"click",function(p){return function(){a.api.logClick(p.zm.element)}}(e));
a.api.logVisibility(e.zm.element,!0);a.C.push(e.zm);d++}}var m=b.more||b.moreLink,n=new g.U({I:"a",Ma:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",Y:{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"}}]}]}],Y:{href:m,target:"_blank",title:"Lis\u00e4\u00e4"}});n.Ra("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=lYa(a,q);g.$U(q,a.api,p)&&a.api.ib("SHARE_CLICKED")});
n.addOnDisposeCallback(g.vU(a.tooltip,n.element));a.api.createClientVe(n.element,n,164506);a.T(n.element,"click",function(){a.api.logClick(n.element)});
a.api.logVisibility(n.element,!0);a.C.push(n);a.moreButton=n;a.updateValue("buttons",a.C)};
lYa=function(a,b){var c={};g.mS(a.api.U())&&(g.nU(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.Ml(b,g.KP(c,"emb_share")));return b};
nYa=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ub(c);a.C=[]};
cX=function(a){return void 0===a||void 0===a.startSec||void 0===a.endSec?!1:!0};
pYa=function(a,b){a.startSec+=b;a.endSec+=b};
rYa=function(a){OW.call(this,a);this.G=this.j=this.isContentForward=this.Ba=!1;qYa(this);this.T(this.J,"changeProductsInVideoVisibility",this.I9);this.T(this.J,"videodatachange",this.onVideoDataChange)};
sYa=function(a){a.ra&&a.Ea.element.removeChild(a.ra.element);a.ra=void 0};
uYa=function(a,b){return b.map(function(c){var d,e;if((c=null==(d=g.R(c,tYa))?void 0:null==(e=d.thumbnail)?void 0:e.thumbnails)&&0!==c.length)return c[0].url}).filter(function(c){return void 0!==c}).map(function(c){c=new g.U({I:"img",
S:"ytp-suggested-action-product-thumbnail",Y:{alt:"",src:c}});g.J(a,c);return c})};
vYa=function(a,b){a.isContentForward=b;g.Qu(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
dX=function(a){var b=a.isContentForward&&!a.AK();g.Qu(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.Qu(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.G)};
eX=function(a,b,c){return new g.jK(1E3*a,1E3*b,{priority:9,namespace:c})};
wYa=function(a){a.J.wf("shopping_overlay_visible");a.J.wf("shopping_overlay_preview_collapsed");a.J.wf("shopping_overlay_preview_expanded");a.J.wf("shopping_overlay_expanded")};
qYa=function(a){a.T(a.J,g.kK("shopping_overlay_visible"),function(){a.qg(!0)});
a.T(a.J,g.lK("shopping_overlay_visible"),function(){a.qg(!1)});
a.T(a.J,g.kK("shopping_overlay_expanded"),function(){a.ma=!0;NW(a)});
a.T(a.J,g.lK("shopping_overlay_expanded"),function(){a.ma=!1;NW(a)});
a.T(a.J,g.kK("shopping_overlay_preview_collapsed"),function(){a.j=!0;dX(a)});
a.T(a.J,g.lK("shopping_overlay_preview_collapsed"),function(){a.j=!1;dX(a)});
a.T(a.J,g.kK("shopping_overlay_preview_expanded"),function(){a.G=!0;dX(a)});
a.T(a.J,g.lK("shopping_overlay_preview_expanded"),function(){a.G=!1;dX(a)})};
XYa=function(a){g.U.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",Y:{href:"{{channelLink}}",target:a.U().W,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-shorts-title-expanded-heading",V:[{I:"div",S:"ytp-shorts-title-expanded-title",V:[{I:"a",ya:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:a.U().W,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Ha("ytp-shorts-title-channel-logo");this.channelName=this.Ha("ytp-shorts-title-expanded-title");
this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.L("web_player_ve_conversion_fixes_for_channel_info")?(b.api.logClick(b.j),g.On(fX(b)),c.preventDefault()):b.api.logClick(b.j)});
a.createClientVe(this.channelName,this,37220);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.On(fX(b));c.preventDefault()});
WYa(this);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.Sa()};
WYa=function(a){if(!a.api.U().ac){var b=a.api.getVideoData(),c=new g.yW("Tilaa",null,"Tilattu",null,!0,!1,b.El,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
a.subscribeButton=c;g.J(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}};
fX=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.IS(b)+c.Oc;if(!g.mS(b))return c;b={};g.nU(a.api,"addEmbedsConversionTrackingParams",[b]);g.KP(b,"emb_ch_name_ex");return g.Ml(c,b)};
gX=function(a){g.NU.call(this,a,{I:"button",Ma:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",ya:"Ohita esittely"}]},100);var b=this;this.C=!1;this.j=new g.Eu(function(){b.hide()},5E3);
this.zf=this.jj=NaN;g.J(this,this.j);this.K=function(){b.show()};
this.G=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.jj/1E3&&c<b.zf/1E3&&b.show()};
this.T(this.J,"videodatachange",function(c,d){b.jt(c,d)});
this.T(this.element,"click",function(){b.J.seekTo(b.zf/1E3)});
this.hide()};
hX=function(a){g.U.call(this,{I:"button",Ma:["ytp-airplay-button","ytp-button"],Y:{title:"AirPlay","data-priority":"9"},ya:"{{icon}}"});this.J=a;this.Ra("click",this.onClick);this.T(a,"airplayactivechange",this.Sa);this.T(a,"airplayavailabilitychange",this.Sa);this.Sa();wU(a,this.element,this)};
ZYa=function(a){g.U.call(this,{I:"div",S:"ytp-gradient-bottom"});this.canvas=g.$e("CANVAS");this.j=this.canvas.getContext("2d");this.B=NaN;this.canvas.width=1;YYa(this,a.qb().getPlayerSize().height)};
YYa=function(a,b){if(a.j){b=Math.floor(.4*b);b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.canvas.height=c;a.j.clearRect(0,0,1,c);var d=a.j.createLinearGradient(0,2,0,2+b),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.j.fillStyle=d;a.j.fillRect(0,2,1,b);a.element.style.height=c+"px";try{a.element.style.backgroundImage="url("+a.canvas.toDataURL()+")"}catch(f){}}}};
iX=function(a,b,c,d){g.U.call(this,{I:"div",S:"ytp-chapter-container",V:[{I:"button",Ma:["ytp-chapter-title","ytp-button"],V:[{I:"span",Y:{"aria-hidden":"true"},S:"ytp-chapter-title-prefix",ya:"\u2022"},{I:"div",S:"ytp-chapter-title-content",ya:"{{title}}",Y:{"aria-label":"{{ariaLabel}}",title:d}},{I:"div",S:"ytp-chapter-title-chevron",V:[{I:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Y:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});
this.J=a;this.D=b;this.G="";this.currentIndex=0;this.B=void 0;this.C=!0;this.W=this.Ha("ytp-chapter-container");this.j=this.Ha("ytp-chapter-title");this.ma=this.Ha("ytp-chapter-title-content");this.updateVideoData("newdata",this.J.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.W,"click",this.onClick);this.T(a,g.kK(c),this.Kc);this.T(a,"onLoopRangeChange",this.Kc);this.T(a,"innertubeCommand",this.onClickCommand);(a=this.J.L("web_disable_channels_chapter_entrypoint")&&
g.tS(this.J.U()))&&g.Qu(this.j,"ytp-profile-page",!0);g.mS(this.J.U())||a||wU(this.J,this.ma,this)};
jX=function(a,b){iX.call(this,a,b,"chapterCueRange","N\u00e4yt\u00e4 osa")};
$Ya=function(a,b,c,d,e){var f=b.zw/b.rows,h=Math.min(c/(b.sE/b.columns),d/f),l=b.sE*h,m=b.zw*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"};
aZa=function(a){return a.L("web_big_boards")?a.jg()?a.L("web_big_boards_enable_in_miniplayer"):a.isInline()?a.L("web_big_boards_enable_in_inline"):!0:!1};
kX=function(a,b){g.U.call(this,{I:"div",S:"ytp-storyboard-framepreview",V:[{I:"div",S:"ytp-storyboard-framepreview-timestamp",ya:"{{timestamp}}"},{I:"div",S:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.Ha("ytp-storyboard-framepreview-img");this.B=null;this.C=NaN;this.events=new g.aL(this);this.j=new g.MG(this,100);g.J(this,this.events);g.J(this,this.j);this.T(this.api,"presentingplayerstatechange",this.Sd);b&&this.T(this.element,"click",function(){b.Eq()});
aZa(this.api)&&g.Mu(this.element,"ytp-storyboard-framepreview-big-boards")};
bZa=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.T(a.api,"videodatachange",function(){bZa(a,a.api.Xj())}),a.events.T(a.api,"progresssync",a.If),a.events.T(a.api,"appresize",a.G)),a.C=NaN,cZa(a),a.j.show(200)):(c&&g.UC(a.events),a.j.hide(),a.j.stop())};
cZa=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.qb().getPlayerSize(),e=gT(b,d.width);e=VQa(b,e,c);a.update({timestamp:g.cH(c)});e!==a.C&&(a.C=e,TQa(b,e,d.width),b=RQa(b,e,d.width),$Ya(a.D,b,d.width,d.height))};
dZa=function(a,b){g.U.call(this,{I:"button",Ma:["ytp-fullscreen-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ya:"{{icon}}"});this.J=a;this.ye=b;this.message=null;this.j=g.vU(this.ye.Le(),this.element);this.B=new g.Eu(this.O4,2E3,this);g.J(this,this.B);this.T(a,"fullscreentoggled",this.Am);this.T(a,"presentingplayerstatechange",this.Sa);this.T(a,"resize",this.Sa);this.Ra("click",this.onClick);g.JC()&&(b=
this.J.qb(),this.T(b,Zoa(),this.XP),this.T(b,Yoa(document),this.Ew));a.U().Rb||a.U().Z||this.disable();a.createClientVe(this.element,this,139117);this.Sa();this.Am(a.isFullscreen())};
lX=function(a,b){g.U.call(this,{I:"button",Ma:["ytp-button","ytp-jump-button"],Y:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[0<b?{I:"svg",Y:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Ma:["ytp-circle-arrow","ytp-svg-fill"],Y:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
{I:"text",Ma:["ytp-jump-button-text","ytp-svg-fill"],Y:{x:"7.05",y:"15.05"}}]}:{I:"svg",Y:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Ma:["ytp-circle-arrow","ytp-svg-fill"],Y:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
{I:"text",Ma:["ytp-jump-button-text","ytp-svg-fill"],Y:{x:"6.5",y:"15"}}]}]});var c=this;this.J=a;this.j=b;this.B=new g.Eu(function(){c.C?(c.C=!1,c.B.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250);
this.C=!1;(b=0<b)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var d=g.qK(b?"Siirry $SECONDS sekuntia eteenp\u00e4in (\u2192)":"Siirry $SECONDS sekuntia taaksep\u00e4in (\u2190)",{SECONDS:Math.abs(this.j).toString()});this.update({title:d,"data-title-no-tooltip":d,"aria-keyshortcuts":b?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text");this.D.textContent=Math.abs(this.j).toString();this.Ra("click",this.onClick,this);wU(a,
this.element,this)};
eZa=function(a,b){b?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.J.logVisibility(a.element,b);a.J.Jh()};
mX=function(a,b){iX.call(this,a,b,"timedMarkerCueRange","Katso avainkohdat");this.T(a,g.lK("timedMarkerCueRange"),this.Kc);this.T(a,"updatemarkervisibility",this.updateVideoData)};
fZa=function(a){var b,c=null==(b=a.J.getVideoData())?void 0:b.He;if(c)for(a=a.D.Na,c=g.u(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}};
nX=function(a){g.U.call(this,{I:"button",Ma:["ytp-miniplayer-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[Dva()]});this.J=a;this.visible=!1;this.Ra("click",this.onClick);this.T(a,"fullscreentoggled",this.Sa);this.updateValue("title",g.xU(a,"Minisoitin","i"));this.update({"data-title-no-tooltip":"Minisoitin"});wU(a,this.element,this);a.createClientVe(this.element,
this,62946);this.Sa()};
g.oX=function(a,b,c){c=void 0===c?!1:c;g.U.call(this,{I:"button",Ma:["ytp-mute-button","ytp-button"],Y:a.U().Xa?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},ya:"{{icon}}"});this.J=a;this.Ga=c;this.j=null;this.D=this.W=this.G=this.ra=NaN;this.Ba=this.K=null;this.C=[];this.B=[];this.visible=!1;this.N=null;c=this.J.U();this.updateValue("icon",Jva());this.tooltip=b.Le();this.j=new g.gG({I:"svg",Y:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",Y:{id:"ytp-svg-volume-animation-mask"},V:[{I:"path",Y:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",Y:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",S:"ytp-svg-volume-animation-mover",Y:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",Y:{id:"ytp-svg-volume-animation-slash-mask"},V:[{I:"path",S:"ytp-svg-volume-animation-mover",Y:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},
{I:"path",zc:!0,Ma:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Y:{"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"}},{I:"path",zc:!0,Ma:["ytp-svg-fill","ytp-svg-volume-animation-hider"],Y:{"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.J(this,this.j);this.K=this.j.Ha("ytp-svg-volume-animation-speaker");
this.Ba=this.K.getAttribute("d");this.C=g.Le("ytp-svg-volume-animation-mover",this.j.element);this.B=g.Le("ytp-svg-volume-animation-hider",this.j.element);this.Ea=new FV;g.J(this,this.Ea);this.ma=new FV;g.J(this,this.ma);this.Ra("click",this.t9);this.T(a,"appresize",this.KT);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.Xa)this.addOnDisposeCallback(g.vU(b.Le(),this.element));else{var e="Selaimesi ei tue \u00e4\u00e4nenvoimakkuuden muuttamista. $BEGIN_LINKLis\u00e4tietoja$END_LINK".split(/\$(BEGIN|END)_LINK/);
d=new g.NU(a,{I:"span",Ma:["ytp-popup","ytp-generic-popup"],Y:{tabindex:"0"},V:[e[0],{I:"a",Y:{href:"https://web.archive.org/web/20240102114909/https://support.google.com/youtube/?p=noaudio",target:c.W},ya:e[2]},e[4]]},100,!0);g.J(this,d);d.hide();d.subscribe("show",function(f){b.Bv(d,f)});
g.GU(a,d.element,4)}this.message=d;a.createClientVe(this.element,this,28662);this.KT(a.qb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
iZa=function(a,b){a.ra=b;var c=a.Ba;b&&(c+=lVa(gZa,hZa,b));a.K.setAttribute("d",c)};
jZa=function(a,b){a.W=b;for(var c=20*b,d=0;d<a.C.length;d++)a.C[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=Jva():e=a.j;for(c=0;c<a.B.length;c++){d=a.B[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.N&&(a.updateValue("icon",e),a.N=e)};
g.pX=function(a,b){g.U.call(this,{I:"button",Ma:["ytp-play-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ya:"{{icon}}"});this.J=a;this.j=null;this.transition=new FV;this.tooltip=b.Le();g.J(this,this.transition);a.createClientVe(this.element,this,36842);a.logVisibility(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);
this.Dc(a.Vb());this.Ra("click",this.Mr,this);this.addOnDisposeCallback(g.vU(b.Le(),this.element))};
kZa=function(a){switch(a){case 1:return Eva();case 2:return Bva();case 3:return g.Gva();case 4:return Iva();default:return null}};
g.qX=function(a,b,c){g.U.call(this,{I:"a",Ma:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],Y:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},V:[c?yva():Fva()]});var d=this;this.J=a;this.j=c;this.playlist=this.videoData=null;this.K=
!1;this.D=this.G=this.B=null;this.C=!1;this.tooltip=b.Le();c?a.createClientVe(this.element,this,6193):a.createClientVe(this.element,this,6194);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onPlaylistUpdate",this.onVideoDataChange);this.T(a,"onLoopRangeChange",this.onVideoDataChange);this.j||this.T(a,"appresize",this.OL);this.T(a,"mdxpreviousnextchange",function(){lZa(d);d.OL()});
this.onVideoDataChange()};
mZa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
nZa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
oZa=function(a){var b=BU(a.J.zb());return b?a.j?b.Tk():b.Ep():!1};
lZa=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.Tk();c=g.CU(a.J)&&(!a.j||c);var d=a.j&&g.HU(a.J),e=oZa(a),f=a.j&&5===a.J.getPresentingPlayerType(),h=g.xU(a.J,"Seuraava","SHIFT+n"),l=g.xU(a.J,"Edellinen","SHIFT+p");if(f)b.title="Aloita video";else if(a.C)b.title="Toista uud.";else if(c){var m=null;a.playlist&&(m=g.OV(a.playlist,a.j?EVa(a.playlist):FVa(a.playlist)));if(m){if(m.videoId){var n=
a.playlist.listId;b.url=a.J.U().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.cH(m.lengthSeconds):null;b.preview=m.Wg("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="Seuraava",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="Edellinen",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=null==(m=a.videoData)?void 0:g.zT(m))b.url=l.Rk(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?
g.cH(l.lengthSeconds):null,b.preview=l.Wg("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Seuraava";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.K=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.vU(a.tooltip,a.element),a.G=a.Ra("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Nc(a.G),a.G=null);a.tooltip.Jh()};
qZa=function(a,b){var c={I:"div",S:"ytp-fine-scrubbing-thumbnails",Y:{tabindex:"0",role:"slider",type:"range","aria-label":"Klikkaa tai vierit\u00e4 tarkan siirtymisen paneelia.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}};a.L("web_fix_fine_scrubbing_drag")&&(c={I:"div",S:"ytp-fine-scrubbing-draggable",V:[{I:"div",S:"ytp-fine-scrubbing-thumbnails",Y:{tabindex:"0",role:"slider",type:"range","aria-label":"Klikkaa tai vierit\u00e4 tarkan siirtymisen paneelia.",
"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]});g.U.call(this,{I:"div",S:"ytp-fine-scrubbing",V:[c,{I:"div",Y:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{I:"div",S:"ytp-fine-scrubbing-seek-time",Y:{"aria-hidden":"true"},ya:"{{seekTime}}"},{I:"div",S:"ytp-fine-scrubbing-play",V:[Eva()],Y:{title:"Toista t\u00e4st\u00e4 kohdasta",role:"button"}},{I:"div",S:"ytp-fine-scrubbing-dismiss",V:[g.rG()],Y:{title:"Poistu tarkasta siirtymisest\u00e4",
role:"button"}}]});this.api=a;this.C=this.Ha("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Ha("ytp-fine-scrubbing-dismiss");this.Ba=this.api.L("web_fix_fine_scrubbing_drag")?this.Ha("ytp-fine-scrubbing-draggable"):null;this.playButton=this.Ha("ytp-fine-scrubbing-play");this.thumbnails=[];this.D=[];this.La=this.j=0;this.Ga=void 0;this.ra=NaN;this.Na=this.W=this.B=this.G=0;this.K=[];this.interval=this.frameCount=0;this.N=160;this.scale=1;this.Qa=0;this.isEnabled=this.Ea=!1;pZa(this,this.api.getCurrentTime());
this.addOnDisposeCallback(g.vU(b,this.dismissButton));this.addOnDisposeCallback(g.vU(b,this.playButton));a.L("web_fix_fine_scrubbing_drag")?this.ma=new g.pV(this.Ba,!0):this.ma=new g.pV(this.C,!0);this.ma.subscribe("dragstart",this.QL,this);this.ma.subscribe("dragmove",this.PL,this);this.ma.subscribe("dragend",this.s3,this);this.T(a,"SEEK_COMPLETE",this.GA);this.C.addEventListener("keydown",function(){});
g.J(this,this.ma);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.C,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
pZa=function(a,b){var c=g.cH(b),d=g.qK("Siirry kohtaan $PROGRESS",{PROGRESS:g.cH(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})};
rZa=function(a){a.ra=NaN;a.W=0;a.G=a.B};
uZa=function(a){var b=a.api.Xj();if(b){var c=90*a.scale,d=gT(b,160*a.scale);if(b=b.levels[d]){a.N=b.width;if(!a.K.length){d=[];for(var e=hT(b,b.Ux()),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.df(l),column:0,columns:p,row:n,rows:m,sE:b.width*p,zw:b.height*m};d.push(q);h-=p;if(1>=h)break}a.K=d;a.frameCount=b.RH();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.K.length;)d=
void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.length<a.K.length;)d=new sZa,a.thumbnails.push(d),d.Ja(a.C),g.J(a,d);for(d=0;d<a.K.length;d++)e=a.thumbnails[d].element,f=a.K[d],h=a.N*a.scale,l=f.zw/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.zw/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";rX(a,a.api.getCurrentTime());for(c=a.api.getVideoData().lk;a.D.length>c.length;)d=void 0,null==(d=a.D.pop())||d.dispose();
for(;a.D.length<c.length;)d=new tZa,a.D.push(new tZa),g.J(a,d);for(d=0;d<c.length;d++)e=c[d],a.D[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.Yr(a.D[d].element,"transform","translateX("+e%b.rows*a.N*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.D[d].Ja(a.thumbnails[f].element);a.Ea=!0}}};
rX=function(a,b){a.update({seekTime:g.cH(b)});var c=a.N*a.scale;b=b<a.interval/2?-b*c/a.interval*2+a.j/2:-b*c/a.interval-c/2+a.j/2;b=g.ie(b,vZa(a),a.j/2);a.G=b;a.B=a.G;a.api.L("web_fix_fine_scrubbing_drag")?(g.Yr(a.Ba,"transform","translateX("+(a.G-a.j/2)+"px)"),g.Yr(a.Ba,"padding","0px "+a.j/2+"px"),g.Yr(a.C,"position","relative")):g.Yr(a.C,"transform","translateX("+a.G+"px)")};
wZa=function(a,b){var c=a.N*a.scale;b-=a.j/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
vZa=function(a){return-((a.C.offsetWidth||(a.frameCount-1)*a.N*a.scale)-a.j/2)};
sZa=function(){g.U.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})};
tZa=function(){g.U.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",ya:"{{chapterTitle}}"}]})};
xZa=function(a){g.U.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",Y:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",Y:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",Y:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",Y:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",Y:{"clip-path":"url(#hm_1)",fill:"white",
"fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",Y:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Ha("ytp-heat-map-svg");this.C=this.Ha("ytp-heat-map-path");this.G=this.Ha("ytp-heat-map-graph");this.D=this.Ha("ytp-heat-map-play");this.B=this.Ha("ytp-heat-map-hover");this.Ee=!1;this.j=60;a=""+g.db(this);this.update({id:a});a="url(#"+a+")";this.G.setAttribute("clip-path",a);this.D.setAttribute("clip-path",a);this.B.setAttribute("clip-path",
a);this.api.L("web_heat_map_v2")&&g.Mu(this.api.getRootNode(),"ytp-heat-map-v2")};
yZa=function(a,b){0<b&&(a.j=b,a.K.style.height=a.j+"px")};
sX=function(){g.U.call(this,{I:"div",S:"ytp-chapter-hover-container",V:[{I:"div",S:"ytp-progress-bar-padding"},{I:"div",S:"ytp-progress-list",V:[{I:"div",Ma:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",S:"ytp-progress-linear-live-buffer"},{I:"div",S:"ytp-load-progress"},{I:"div",S:"ytp-hover-progress"},{I:"div",S:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.D=this.Ha("ytp-progress-linear-live-buffer");this.C=this.Ha("ytp-ad-progress-list");
this.G=this.Ha("ytp-load-progress");this.K=this.Ha("ytp-play-progress");this.B=this.Ha("ytp-hover-progress");this.j=this.Ha("ytp-chapter-hover-container")};
tX=function(a,b){g.Yr(a.j,"width",b)};
zZa=function(a,b){g.Yr(a.j,"margin-right",b+"px")};
AZa=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN};
BZa=function(){g.U.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.vX=function(a,b){g.kG.call(this,{I:"div",S:"ytp-progress-bar-container",Y:{"aria-disabled":"true"},V:[{I:"div",Ma:["ytp-heat-map-container"],V:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",Ma:["ytp-progress-bar"],Y:{tabindex:"0",role:"slider","aria-label":"Liukus\u00e4\u00e4din","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{I:"div",S:"ytp-chapters-container"},{I:"div",S:"ytp-timed-markers-container"},{I:"div",S:"ytp-clip-start-exclude"},
{I:"div",S:"ytp-clip-end-exclude"},{I:"div",S:"ytp-scrubber-container",V:[{I:"div",Ma:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",Ma:["ytp-fine-scrubbing-container"],V:[{I:"div",S:"ytp-fine-scrubbing-edu"}]},{I:"div",S:"ytp-bound-time-left",ya:"{{boundTimeLeft}}"},{I:"div",S:"ytp-bound-time-right",ya:"{{boundTimeRight}}"},{I:"div",S:"ytp-clip-start",Y:{title:"{{clipstarttitle}}"},ya:"{{clipstarticon}}"},{I:"div",S:"ytp-clip-end",
Y:{title:"{{clipendtitle}}"},ya:"{{clipendicon}}"}]});this.api=a;this.Ie=!1;this.Qf=this.Va=this.N=this.Of=0;this.Bd=null;this.La={};this.Ub={};this.clipEnd=Infinity;this.Bb=this.Ha("ytp-clip-end");this.Ic=new g.pV(this.Bb,!0);this.yf=this.Ha("ytp-clip-end-exclude");this.nh=this.Ha("ytp-clip-start-exclude");this.clipStart=0;this.Rb=this.Ha("ytp-clip-start");this.Oc=new g.pV(this.Rb,!0);this.ma=this.kb=0;this.progressBar=this.Ha("ytp-progress-bar");this.tb={};this.Na={};this.ac=this.Ha("ytp-chapters-container");
this.Nf=this.Ha("ytp-timed-markers-container");this.j=[];this.K=[];this.ue={};this.zf=null;this.Xa=-1;this.rb=this.Ba=0;this.W=null;this.Rf=this.Ha("ytp-scrubber-button");this.Hh=this.Ha("ytp-scrubber-container");this.bb=new g.le;this.lh=new AZa;this.C=new fH(0,0);this.Eb=null;this.D=this.He=!1;this.Mf=null;this.ra=this.Ha("ytp-heat-map-container");this.Od=this.Ha("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.Za=this.Ha("ytp-fine-scrubbing-container");this.hd=this.Ha("ytp-fine-scrubbing-edu");
this.B=void 0;this.Ea=this.jd=this.Ga=!1;this.tooltip=b.Le();this.addOnDisposeCallback(g.vU(this.tooltip,this.Bb));g.J(this,this.Ic);this.Ic.subscribe("hoverstart",this.zY,this);this.Ic.subscribe("hoverend",this.yY,this);this.T(this.Bb,"click",this.fK);this.addOnDisposeCallback(g.vU(this.tooltip,this.Rb));g.J(this,this.Oc);this.Oc.subscribe("hoverstart",this.zY,this);this.Oc.subscribe("hoverend",this.yY,this);this.T(this.Rb,"click",this.fK);CZa(this);this.T(a,"resize",this.Zb);this.T(a,"presentingplayerstatechange",
this.L6);this.T(a,"videodatachange",this.jt);this.T(a,"videoplayerreset",this.K6);this.T(a,"cuerangesadded",this.pca);this.T(a,"cuerangesremoved",this.Laa);this.T(a,"onLoopRangeChange",this.LT);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.kK("timedMarkerCueRange"),this.I$);this.T(a,"updatemarkervisibility",this.k0);this.updateVideoData(a.getVideoData(),!0);this.LT(a.getLoopRange());uX(this)&&!this.B&&(this.B=new qZa(this.api,this.tooltip),a=g.fs(this.element).x||0,this.B.Zb(a,this.N),
this.B.Ja(this.Za),g.J(this,this.B),this.T(this.B.dismissButton,"click",this.Eq),this.T(this.B.playButton,"click",this.yN),this.T(this.B.element,"dblclick",this.yN));this.api.createClientVe(this.ra,this,139609,!0);this.api.createClientVe(this.Od,this,140127,!0);this.api.createClientVe(this.hd,this,151179,!0);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
CZa=function(a){if(0===a.j.length){var b=new sX;a.j.push(b);g.J(a,b);b.Ja(a.ac,0)}for(;1<a.j.length;)a.j.pop().dispose();tX(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
DZa=function(a){var b=void 0===b?NaN:b;var c=new xZa(a.api);a.G.push(c);g.J(a,c);c.Ja(a.ra);0<=b&&(c.element.style.width=b+"px")};
EZa=function(a){for(;a.K.length;)a.K.pop().dispose()};
GZa=function(a){var b,c,d,e,f;return null==(f=g.R(null==(e=g.R(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,zQa))?void 0:e.playerBar,FZa))?void 0:f.chapters};
HZa=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.jK(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.wf("chapterCueRange");a.api.Af(c)};
PZa=function(a,b){var c,d=null==(c=a.tb[b])?void 0:c.chapters;d&&(IZa(a,d),a.api.getVideoData().lk=a.j,HZa(a));var e;if((c=null==(e=a.tb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){EZa(a);e=g.u(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new BZa,d=g.R(d,g.JZa)){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;KZa(a,c)}LZa(a,
a.K);e=a.K;c=a.ue;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=WXa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.Af(d)}var l;if(b=g.R(null==(l=a.tb[b])?void 0:l.heatmap,MZa)){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;d===a.G.length&&
DZa(a);f=[];c&&f.push(c);for(var q=g.u(l),r=q.next();!r.done;r=q.next()){r=r.value;var t=void 0,v=void 0,x=null!=(v=null==(t=g.R(r,NZa))?void 0:t.timeRangeStartMillis)?v:-1;x>=h&&x<=p&&f.push(r)}0<m&&(a.ra.style.height=m+"px");h=a.G[d];p=f;r=e;v=m;x=0===d;x=void 0===x?!1:x;yZa(h,v);q=p;t=h.j;x=void 0===x?!1:x;var B=1E3/q.length,F=[];F.push({x:0,y:100});for(var G=0;G<q.length;G++){var I=void 0,L=(null==(I=g.R(q[G],NZa))?void 0:I.heatMarkerIntensityScoreNormalized)||0;I=(G+.5)*B;L=100-g.ie(100*L,r/
t*100,v/t*100);0!==G||x||F.push({x:0,y:L});F.push({x:I,y:L});G===q.length-1&&F.push({x:1E3,y:L})}F.push({x:1E3,y:100});q=F;p=0===p.length?"":Wxa(q);h.C.setAttribute("d",p);h.Ee=""!==p;g.Qu(h.api.getRootNode(),"ytp-heat-map",h.Ee);g.Qu(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.L("web_player_heat_map_played_bar")&&""!==p);0<f.length&&(c=f[f.length-1])}g.wX(a);l=[];b=g.u(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.R(e.value,OZa))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.nG(m):""});a.heatMarkersDecorations=l}};
KZa=function(a,b){a.K.push(b);g.J(a,b);b.Ja(a.Nf,a.Nf.children.length)};
LZa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=QZa(a,c.timeRangeStartMillis/(1E3*a.C.j),xX(a));g.Yr(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
IZa=function(a,b){var c=0,d=!1;b=g.u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.R(e,RZa)){e=g.R(e,RZa);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.nG(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 sX,a.j.push(f),g.J(a,f),f.Ja(a.ac,a.ac.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.wX(a);yX(a)};
g.wX=function(a){a.Ba=a.j.length-1;a.rb=0;SZa(a,!0)&&SZa(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){zZa(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;tX(a.j[d],e+"px");break}a.j[c].width=0;tX(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,tX(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,tX(a.j[c],d+"px"));c=0;if(a.G.length===a.j.length)for(b=0;b<
a.G.length;b++)d=a.j[b].width,a.G[b].element.style.width=d+"px",a.G[b].element.style.left=c+"px",c+=d+(a.D?3:2)};
SZa=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.C.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.N){for(var h=a.N-(a.D?3:2)*a.Ba,l=0===a.rb?3:h*a.rb,m=g.u(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,zZa(a.j[c],a.D?3:2));g.Qu(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);zZa(p.j[q],0);b&&(a.Ba--,m/f>a.rb&&(a.rb=m/f),d=!0)}c++}}return d};
yX=function(a){if(a.N){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:fU(d))&&b.airingStart&&b.airingEnd?TZa(a,b.airingStart,b.airingEnd):TZa(a,b.seekableStart,b.seekableEnd);d=gH(c,b.loaded,0);b=gH(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;zX(a,b,d);e&&UZa(a);VZa(a)}}};
TZa=function(a,b,c){return WZa(a)?new fH(Math.max(b,a.Eb.startTimeMs/1E3),Math.min(c,a.Eb.endTimeMs/1E3)):new fH(b,c)};
XZa=function(a,b){var c;if("repeatChapter"===(null==(c=a.Eb)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[TW(a.j,b.startTimeMs)],g.Qu(b.j,"ytp-repeating-chapter",!1)),a.Eb&&(b=a.j[TW(a.j,a.Eb.startTimeMs)],g.Qu(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.Qu(d.j,"ytp-exp-chapter-hover-container",!a.Eb)})};
BX=function(a,b){var c=a.C;c=c.B+b.B*c.getLength();if(1<a.j.length){c=AX(a,b.C,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.D?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?1E3*a.C.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
YZa=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Ba)};
UZa=function(a){a.Rf.style.removeProperty("height");for(var b=g.u(Object.keys(a.La)),c=b.next();!c.done;c=b.next())ZZa(a,c.value);CX(a);zX(a,a.ma,a.kb)};
xX=function(a){var b=a.bb.x;b=g.ie(b,0,a.N);a.lh.update(b,a.N);return a.lh};
EX=function(a){return(a.D?135:90)-DX(a)};
DX=function(a){var b=48,c=a.api.U();a.D?b=54:g.mS(c)&&!c.B&&(b=40);return b};
zX=function(a,b,c){a.ma=b;a.kb=c;var d=xX(a),e=a.C.j;var f=a.C;f=f.B+a.ma*f.getLength();var h=g.qK("$PLAY_PROGRESS/$DURATION",{PLAY_PROGRESS:g.cH(f,!0),DURATION:g.cH(e,!0)}),l=TW(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.C.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Eb&&2!==a.api.getPresentingPlayerType()&&(e=a.Eb.startTimeMs/1E3,f=a.Eb.endTimeMs/1E3);e=gH(a.C,e,0);l=gH(a.C,f,1);h=a.api.getVideoData();f=g.ie(b,e,l);c=(null==h?
0:g.eU(h))?1:g.ie(c,e,l);b=QZa(a,b,d);g.Yr(a.Hh,"transform","translateX("+b+"px)");FX(a,d,e,f,"PLAY_PROGRESS");(null==h?0:fU(h))?(b=a.api.getProgressState().seekableEnd)&&FX(a,d,f,gH(a.C,b),"LIVE_BUFFER"):FX(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;null!=(m=a.G[0])&&m.D.setAttribute("width",(100*f).toFixed(2)+"%")}};
FX=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ba*(a.D?3:2),l=c*h;c=AX(a,l);var m=d*h;h=AX(a,m);"HOVER_PROGRESS"===e&&(h=AX(a,b.j*d,!0),m=b.j*d-$Za(a,b.j*d)*(a.D?3:2));b=Math.max(l-a_a(a,c),0);for(d=c;d<f;d++)a.j[d].Fb(e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.j[f].Fb(e),l=a.j[f].width,GX(a,d,f===c?l-b:l,l);f=a.j[h].width;m=g.ie(m-a_a(a,h),0,f);c===h&&(m-=b);b=a.j[h].Fb(e);GX(a,b,m,f);m=a.j.length;for(h+=1;h<m;h++)b_a(a,h,e);for(h=0;h<c;h++)b_a(a,h,e)};
a_a=function(a,b){if(b>=a.j.length)return a.N;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
b_a=function(a,b,c){c=a.j[b].Fb(c);GX(a,c,0,a.j[b].width)};
GX=function(a,b,c,d,e){e||a.api.U().B?b.style.width=c+"px":g.Yr(b,"transform","scalex("+(d?c/d:0)+")")};
AX=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=$Za(a,b)*(a.D?3:2));c=g.u(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};
QZa=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.u(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.D?3:2)*a.Ba)+(a.D?3:2)*(0>e?0:e)+c.D};
$Za=function(a,b){for(var c=a.j.length,d=0,e=g.u(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.D?3:2,d++;else break;return d===c?c-1:d};
g.c_a=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Of=b;a.N=c;a.D=d;uX(a)&&null!=(b=a.B)&&(b.scale=d?1.5:1);UZa(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.wX(a);a.B&&f&&uX(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-DX(a),a.Za.style.height=c+"px",g.Yr(a.ra,"transform","translateY("+-d+"px)"),g.Yr(a.progressBar,"transform","translateY("+-d+"px)")),uZa(a.B))};
CX=function(a){var b=!!a.Eb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Eb?(c=a.Eb.startTimeMs/1E3,d=a.Eb.endTimeMs/1E3):(e=c>a.C.B,f=0<a.C.j&&d<a.C.j);var h,l;if((null==(h=a.Eb)?0:h.postId)||"repeatChapter"===(null==(l=a.Eb)?void 0:l.type))f=e=!1;g.Qu(a.element,"ytp-loop-range-enabled",b);g.Qu(a.element,"ytp-clip-start-enabled",e);g.Qu(a.element,"ytp-clip-end-enabled",f);b=e?gH(a.C,c,0):0;d=f?gH(a.C,d,1):1;a.Rb.style.left=Math.round(1E3*b)/10+"%";a.Bb.style.left=
Math.round(1E3*d)/10+"%";a.nh.style.width=Math.round(1E3*b)/10+"%";a.yf.style.left=Math.round(1E3*d)/10+"%";a.yf.style.width=Math.round(1E3*(1-d))/10+"%"};
VZa=function(a){var b;if(null==(b=a.api.getVideoData())||!fU(b)){b=xX(a);FX(a,b,a.ma,Math.max(b.B,a.ma),"HOVER_PROGRESS");for(var c=AX(a,b.j*a.ma,!0),d=AX(a,b.C,!0),e=c;e<=d;e++)g.Qu(a.j[e].B,"ytp-hover-progress-light",b.B>a.ma);g.Qu(a.Rf,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.L("web_player_heat_map_played_bar")){var f;null!=(f=a.G[0])&&f.B.setAttribute("width",(100*b.B).toFixed(2)+"%")}}};
ZZa=function(a,b){var c=a.La[b];b=a.Ub[b];var d=xX(a),e=gH(a.C,c.start/1E3,0),f=Oza(c,a.D)/d.width;var h=gH(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.ie(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.D,0)+"px";GX(a,b,g.ie((h-c)*d.j+d.D,0,d.width),d.width,!0)};
d_a=function(a,b){var c=b.getId();a.La[c]===b&&(g.nf(a.Ub[c]),delete a.La[c],delete a.Ub[c])};
uX=function(a){var b;return!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.jg()&&!a.api.isInline()};
HX=function(a){a.B&&(a.B.disable(),a.Va=0,a.ra.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.Za.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
e_a=function(a,b){var c=b/EX(a)*DX(a);g.Yr(a.progressBar,"transform","translateY("+-b+"px)");g.Yr(a.ra,"transform","translateY("+-b+"px)");g.Yr(a.Za,"transform","translateY("+c+"px)");a.Za.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=DX(a)-c+"px")};
f_a=function(a,b){b?a.W||(a.element.removeAttribute("aria-disabled"),a.W=new g.pV(a.progressBar,!0),a.W.subscribe("hovermove",a.L9,a),a.W.subscribe("hoverend",a.K9,a),a.W.subscribe("dragstart",a.J9,a),a.W.subscribe("dragmove",a.N9,a),a.W.subscribe("dragend",a.M9,a),a.Mf=a.Ra("keydown",a.u3)):a.W&&(a.element.setAttribute("aria-disabled","true"),a.Nc(a.Mf),a.W.cancel(),a.W.dispose(),a.W=null)};
WZa=function(a){var b;return!(null==(b=a.Eb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
IX=function(a,b){g.U.call(this,{I:"button",Ma:["ytp-remote-button","ytp-button"],Y:{title:"Toista TV:ss\u00e4","aria-haspopup":"true","data-priority":"8"},ya:"{{icon}}"});this.J=a;this.Lb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.T(a,"appresize",this.Sa);a.createClientVe(this.element,this,139118);this.Sa();this.Ra("click",this.B,this);wU(a,this.element,this)};
JX=function(a,b){g.U.call(this,{I:"button",Ma:["ytp-button","ytp-settings-button"],Y:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":fG(),title:"Asetukset","data-tooltip-target-id":"ytp-settings-button"},V:[g.Hva()]});this.J=a;this.Lb=b;this.B=!0;this.Ra("click",this.C);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.j);wU(a,this.element,this);this.J.createClientVe(this.element,
this,28663);this.updateBadge();this.j(a.qb().getPlayerSize())};
g_a=function(a,b){a.B=!!b;a.j(a.J.qb().getPlayerSize())};
KX=function(a,b){XU.call(this,"Merkinn\u00e4t",g.aV(a).eL);this.J=a;this.Lb=b;this.j=!1;a.L("web_settings_menu_icons")&&SU(this,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{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.T(a,"videodatachange",this.Sa);this.T(a,"onApiChange",this.Sa);this.subscribe("select",this.onSelect,this);this.Sa()};
g.LX=function(a,b,c,d,e,f,h){g.QU.call(this,g.RU({"aria-haspopup":"true"}),b,a);this.Lb=d;this.K=!1;this.C=null;this.options={};this.B=new g.BW(c,void 0,a,e,f,h);g.J(this,this.B);this.Ra("keydown",this.v3);this.Ra("click",this.open)};
h_a=function(a){if(a.C){var b=a.options[a.C];b.element.getAttribute("aria-checked");b.element.setAttribute("aria-checked","false");a.C=null}};
g.MX=function(a,b){g.CW(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.C;l&&(d=!0);h&&h.priority===-e?(g.PU(a.options[f],a.Dk(f,!0)),delete a.options[f]):h=a.zM(f,-e,l);c[f]=h;a.B.Tc(h,!0)}d||(a.C=null);b=g.u(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
NX=function(a,b){g.LX.call(this,"\u00c4\u00e4niraita",g.aV(a).AUDIO,a,b);this.J=a;this.tracks={};this.countLabel=new g.U({I:"div",V:[{I:"span",ya:"\u00c4\u00e4niraita"},{I:"span",S:"ytp-menuitem-label-count",ya:"{{content}}"}]});a.L("web_settings_menu_icons")&&SU(this,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{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.J(this,this.countLabel);g.PU(this,this.countLabel);this.T(a,"videodatachange",this.Sa);this.T(a,"onPlaybackAudioChange",this.Sa);this.Sa()};
OX=function(a,b){XU.call(this,"Automaattinen toisto",g.aV(a).fL);this.J=a;this.Lb=b;this.j=!1;this.C=[];this.T(a,"presentingplayerstatechange",this.B);this.subscribe("select",this.onSelect,this);a.createClientVe(this.element,this,113682);this.B()};
i_a=function(a,b){g.QU.call(this,g.RU({"aria-haspopup":"false"}),0,"Lis\u00e4asetukset");this.J=a;this.Lb=b;this.T(this.element,"click",this.onClick);this.Lb.Tc(this)};
j_a=function(a,b){var c;g.BS(a.U())&&(c={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",ya:"Muokkaa latauksen laatua: "},{I:"a",S:"ytp-panel-footer-content-link",ya:"Asetukset",Y:{href:"/account_downloads"}}]});g.LX.call(this,"Laatu",g.aV(a).YL,a,b,void 0,void 0,c);this.J=a;this.Ba={};this.W={};this.D={};this.Ea=new Set;this.j=this.G=!1;this.N="unknown";this.ma="";this.ra=new g.DE;g.J(this,this.ra);this.G=this.J.L("web_player_use_new_api_for_quality_pullback");this.j=this.J.L("web_player_enable_premium_hbr_playback_cap");
a.L("web_settings_menu_icons")&&SU(this,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{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.Mu(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.kC);this.T(a,"videoplayerreset",this.kC);this.T(a,"onPlaybackQualityChange",this.NT);this.kC();a.createClientVe(this.element,this,137721)};
l_a=function(a,b,c){var d=a.Ba[b],e=g.cL[b];return k_a(a,d?d.qualityLabel:e?e+"p":"Automaattinen",b,c)};
m_a=function(a,b,c,d,e){var f=(b=a.j?a.D[b]:a.W[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Automaattinen";d&&(h="("+h);a=k_a(a,h,f||"",e);d&&a.V.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.V.push({I:"div",S:"ytp-premium-label",ya:d});return a};
k_a=function(a,b,c,d){b={I:"span",Ma:d,V:[b]};var e;d="ytp-swatch-color";if(a.G||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.V.push(" "),b.V.push({I:"sup",S:d,ya:e}));return b};
PX=function(a,b,c,d,e,f,h){g.U.call(this,{I:"div",S:"ytp-slider-section",Y:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-slider",V:[{I:"div",S:"ytp-slider-handle"}]}]});this.W=a;this.N=b;this.B=c;this.D=d;this.ma=e;this.Ea=f;this.range=this.D-this.B;this.Ga=this.Ha("ytp-slider-section");this.C=this.Ha("ytp-slider");this.ra=this.Ha("ytp-slider-handle");this.K=new g.pV(this.C,
!0);this.j=h?h:c;g.J(this,this.K);this.K.subscribe("dragmove",this.x3,this);this.T(this.element,"keydown",this.y3);this.T(this.element,"wheel",this.w3);this.init()};
QX=function(a){PX.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.G=g.$e("P");this.La=nba(this.Ba,this);g.Mu(this.C,"ytp-speedslider");g.Mu(this.G,"ytp-speedslider-text");a=this.G;var b=this.C;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);n_a(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)};
n_a=function(a){a.G.textContent=o_a(a,a.j)+"x"};
o_a=function(a,b){a=Number(g.ie(b,a.B,a.D).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))};
p_a=function(a){g.kG.call(this,{I:"div",S:"ytp-speedslider-component"});this.j=new QX(a);g.J(this,this.j);this.element.appendChild(this.j.element)};
q_a=function(a){var b=new p_a(a);AW.call(this,a,b,"Oma");g.J(this,b)};
r_a=function(a,b){var c=new q_a(a);g.LX.call(this,"Toistonopeus",g.aV(a).ZL,a,b,"Oma",function(){g.FW(b,c)});
a.L("web_settings_menu_icons")&&SU(this,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{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.J(this,c);this.J=a;this.D=this.j=this.N=null;this.G=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Sa);this.Sa()};
t_a=function(a,b){var c=s_a(b);a.options[c]?a.Nj(c):b===a.D&&a.j&&(a.Nj(a.j),a.Yd(b.toString()))};
v_a=function(a){g.MX(a,a.G.map(s_a));a.j=null;a.D=null;var b=a.J.getPlaybackRate();a.G.includes(b)||(u_a(a,b),g.LX.prototype.kh.call(a,a.j))};
u_a=function(a,b){a.D=b;a.j=g.qK("Oma ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.G.map(s_a);b.unshift(a.j);g.MX(a,b)};
s_a=function(a){return a.toString()};
x_a=function(a,b,c,d){var e=new g.BW(b,void 0,"Videon ohitus");g.LX.call(this,d.text||"",a,b,c,"Videon ohitus",function(){g.FW(c,e)});
var f=this;g.Mu(this.element,"ytp-subtitles-options-menu-item");this.N=d.option.toString();a=d.options;this.settings=g.$b(a,this.getKey,this);this.G=e;g.J(this,this.G);b=new g.QU({I:"div",S:"ytp-menuitemtitle",ya:"Salli videossa mahdollisesti m\u00e4\u00e4ritetty poikkeava tekstitystyyli."},0);g.J(this,b);this.G.Tc(b,!0);this.D=new g.QU({I:"div",S:"ytp-menuitem",Y:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",ya:"K\u00e4yt\u00f6ss\u00e4"}]},-1);g.J(this,this.D);this.G.Tc(this.D,
!0);this.T(this.D.element,"click",function(){w_a(f,!0)});
this.j=new g.QU({I:"div",S:"ytp-menuitem",Y:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",ya:"Ei k\u00e4yt\u00f6ss\u00e4"}]},-2);g.J(this,this.j);this.G.Tc(this.j,!0);this.T(this.j.element,"click",function(){w_a(f,!1)});
g.MX(this,g.pr(a,this.getKey))};
w_a=function(a,b){a.oa("settingChange",a.N+"Override",!b);a.Lb.Dj()};
RX=function(a,b){g.BW.call(this,a,void 0,"Valinnat");var c=this;this.Lt={};for(var d=0;d<g.VW.length;d++){var e=g.VW[d],f=new x_a(-d,a,b,e);g.J(this,f);f.subscribe("settingChange",this.qk,this);this.Lt[e.option.toString()]=f;this.Tc(f,!0)}a=new g.QU(g.RU(),-g.VW.length,"Tyhjenn\u00e4");g.J(this,a);a.Ra("click",function(){c.qk("reset",!0)});
this.Tc(a,!0)};
SX=function(a,b){g.LX.call(this,"Automaattinen k\u00e4\u00e4nn\u00f6s",0,a,b);this.J=a;this.languages={};a.createClientVe(this.element,this,127301);a.logVisibility(this.element,!0)};
y_a=function(a,b){a.languages=g.$b(b,a.getKey,a);g.MX(a,g.pr(b,a.getKey))};
A_a=function(a,b){var c=new RX(a,b),d=["T\u00e4t\u00e4 asetusta k\u00e4ytet\u00e4\u00e4n vain nykyiselle videolle. Voit valita tekstitysten n\u00e4kyvyyden kaikille videoille kohdasta ","."],e;g.BS(a.U())&&(e={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",ya:d[0]},{I:"a",S:"ytp-panel-footer-content-link",ya:"Asetukset",Y:{href:"/account_playback"}},{I:"span",ya:d[1]}]});g.LX.call(this,"Tekstitykset",g.aV(a).SUBTITLES,a,b,"Valinnat",function(){g.FW(b,c)},e);
var f=this;this.J=a;this.Lb=b;this.tracks={};this.N=new g.Eu(function(){z_a(f,!1)},3E3);
g.J(this,this.N);this.countLabel=new g.U({I:"div",V:[{I:"span",ya:"Tekstitykset"},{I:"span",S:"ytp-menuitem-label-count",ya:"{{content}}"}]});g.J(this,this.countLabel);g.PU(this,this.countLabel);a.L("web_settings_menu_icons")&&SU(this,cUa.includes("fi")?{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{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"}}]}:{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.j=new SX(a,b);g.J(this,this.j);this.j.subscribe("select",this.z3,this);this.G=c;g.J(this,this.G);this.G.subscribe("settingChange",this.qk,this);b.subscribe("show",this.r$,this);this.T(a,"videodatachange",this.Sa);this.T(a,"onApiChange",this.Sa);this.T(a,"onCaptionsTrackListChanged",
this.Sa);this.T(a,"captionschanged",this.Sa);a.createClientVe(this.element,this,127300);this.Sa()};
B_a=function(a){return Object.values(a.tracks).find(function(b){return"en"===b.languageCode&&"asr"===b.kind})};
TX=function(a,b){a.J.setOption("captions","track",b)};
z_a=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
C_a=function(a){g.HW.call(this,a,"ytp-settings-menu");var b=this;this.Re=new g.BW(this.J);this.PQ=this.settingsButton=null;this.isInitialized=this.LJ=!1;g.J(this,this.Re);this.hide();g.FW(this,this.Re);a.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(c){b.qg(c)});
this.T(a,"highlightSettingsMenu",function(){b.LJ=!0;b.od()});
this.J.L("web_player_enable_open_menu_item_from_command")&&this.T(a,"openSettingsMenuItem",function(c){if(c&&(b.LJ=!0,b.od(),"menu_item_video_quality_advanced"===c)){var d;null==(d=b.PQ)||d.open()}})};
D_a=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
g.UX=function(a,b){g.U.call(this,{I:"button",Ma:["ytp-subtitles-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"3","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[dUa()]});this.J=a;this.tooltip=b.Le();this.T(a,"videodatachange",this.Sa);this.T(a,"appresize",this.Sa);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Sa);this.T(a,"onCaptionsTrackListChanged",this.Sa);this.T(a,"captionschanged",this.Sa);
this.J.createClientVe(this.element,this,127299);this.Sa();this.Ra("click",this.onClick);this.addOnDisposeCallback(g.vU(b.Le(),this.element))};
E_a=function(a){return null!=g.aW(a.J.zb())?g.aW(a.J.zb()).DR()?!!a.J.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
g.WX=function(a,b,c){c=void 0===c?350:c;g.U.call(this,{I:"div",Ma:["ytp-time-display","notranslate"],V:[{I:"span",S:"ytp-time-clip-icon",ya:"{{clipicon}}"},{I:"span",V:[{I:"span",S:"ytp-time-current",ya:"{{currenttime}}"},{I:"span",S:"ytp-time-separator",ya:" / "},{I:"span",S:"ytp-time-duration",ya:"{{duration}}"}]},{I:"span",S:"ytp-clip-watch-full-video-button-separator",ya:"\u2022"},{I:"span",S:"ytp-clip-watch-full-video-button",ya:"{{watchfullvideo}}"}]});this.api=a;this.N=c;this.liveBadge=new g.U({I:"button",
Ma:["ytp-live-badge","ytp-button"],Y:{disabled:"true"},ya:"{{content}}"});this.j=null;this.ZD=this.B=!1;this.K=this.G=null;this.isPremiere=!1;this.Eb=this.D=this.C=null;this.W=this.Ha("ytp-clip-watch-full-video-button");this.liveBadge.Yd("Live");g.J(this,this.liveBadge);this.liveBadge.Ja(this.element);this.tooltip=b.Le();this.Ra("click",this.onClick);this.T(this.W,"click",this.U$);this.T(a,"presentingplayerstatechange",this.Kc);this.T(a,"appresize",this.Kc);this.T(a,"onLoopRangeChange",this.onLoopRangeChange);
this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Kc();a=a.getLoopRange();b=this.Eb!==a;this.Eb=a;b&&VX(this);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
VX=function(a){a.updateValue("clipicon",{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Y:{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.ZD&&!a.B?a.updateValue("watchfullvideo","Katso livestriimi\u00e4"):a.updateValue("watchfullvideo","Katso koko video");g.Qu(a.element,"ytp-clip",XX(a));g.Qu(a.element,"ytp-live",YX(a))};
YX=function(a){var b=a.api.U().L("enable_linear_program_progress");return a.ZD&&!XX(a)&&(!b||!a.B)};
XX=function(a){return!!a.Eb&&!!a.Eb.postId&&2!==a.api.getPresentingPlayerType()&&(!a.Eb.type||"clips"===a.Eb.type)};
G_a=function(a,b){g.U.call(this,{I:"div",S:"ytp-volume-panel",Y:{title:"\u00c4\u00e4nenvoimakkuus",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-volume-slider",V:[{I:"div",S:"ytp-volume-slider-handle"}]}]});var c=this;this.api=a;this.K=b;this.bk=!1;this.W=this.volume=0;this.G=null;this.B=this.j=this.isDragging=!1;this.K=b;this.C=a.Og();this.N=this.Ha("ytp-volume-slider");this.ma=this.Ha("ytp-volume-slider-handle");
this.D=new g.pV(this.N,!0);g.J(this,this.D);this.D.subscribe("dragstart",this.w$,this);this.D.subscribe("dragmove",this.B3,this);this.D.subscribe("dragend",this.v$,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.OT);this.T(a,"fullscreentoggled",this.Ew);this.T(a,"onShowControls",this.kV);this.T(a,"onHideControls",this.kV);this.T(this.element,"keydown",this.C3);this.T(this.element,"focus",function(){ZX(c,c.j,c.isDragging,!0,c.api.bk())});
this.T(this.element,"blur",function(){ZX(c,c.j,c.isDragging,!1,c.api.bk())});
this.OT(a.qb().getPlayerSize());F_a(this,a.getVolume(),a.isMuted());wU(a,this.element,this)};
F_a=function(a,b,c){var d=Math.floor(b),e=d+"% \u00e4\u00e4nenvoimakkuus"+(c?" mykistetty":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.ma.style.left=(a.C?60:40)*c+"px";a.volume=b};
H_a=function(a,b){g.Qu(a.element,"ytp-volume-control-hover",b);ZX(a,b,a.isDragging,a.B,a.api.bk())};
ZX=function(a,b,c,d,e){var f=a.j||a.isDragging||a.B||a.bk;a.j=b;a.isDragging=c;a.B=d;a.bk=e;b=a.j||a.isDragging||a.B||a.bk;f!==b&&(b?a.G=a.T(a.element,"wheel",a.A3):(a.Nc(a.G),a.G=null),g.Qu(a.K,"ytp-volume-slider-active",b))};
$X=function(a,b){var c=a.U(),d=g.xS(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.C&&e.push("no-link");var f={title:"",target:c.W,"data-priority":"4","data-sessionlink":"feature=player-button"};c.C||(f.title="youtube.com"===d?"Katso YouTubessa":g.qK("Katsele sivustolla $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.U.call(this,{I:"a",Ma:e,Y:f,ya:"{{logoSvg}}"});this.j=null;this.api=a;this.visible=!1;a.createClientVe(this.element,this,28666);
c.C||(this.j=this.Ra("click",this.onClick));this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.onVideoDataChange);this.T(a,"onLoopRangeChange",this.onVideoDataChange);this.T(a,"appresize",this.Zb);this.onVideoDataChange();c.C||this.addOnDisposeCallback(g.vU(b.Le(),this.element));this.Zb()};
I_a=function(a,b,c){g.aL.call(this);var d=this;this.J=a;this.ye=b;this.Mg=c;this.Za=NaN;this.Qa=this.Xa=null;this.B=new C_a(this.J);this.progressBar=new g.vX(this.J,this.ye);this.W=this.Z=this.G=null;this.zo=new g.WX(this.J,this.ye);this.Na=this.playButton=this.D=this.K=this.La=this.Ea=null;this.Va=new dZa(this.J,this.ye);this.Yg=new g.Cu(this.EE,null,this);this.ma=null;c=a.U();this.Mg.subscribe("autohideupdate",this.BA,this);var e=!a.Vb().isCued(),f;a.U().L("html5_player_dynamic_bottom_gradient")?
this.Qa=f=new ZYa(a):f=new g.U({I:"div",S:"ytp-gradient-bottom"});g.J(this,f);g.GU(a,f.element,9);this.Ba=new g.MG(f,250,e,100);g.J(this,this.Ba);this.C=new g.U({I:"div",S:"ytp-chrome-bottom",V:[{I:"div",S:"ytp-chrome-controls"}]});g.J(this,this.C);g.GU(a,this.C.element,9);this.ra=new g.MG(this.C,250,e,100);g.J(this,this.ra);this.Ga=this.C.element.children[0];g.J(this,this.B);g.GU(a,this.B.element,6);this.B.subscribe("show",function(l){d.J.IF(!l);a.GF(d.B,l)});
g.J(this,this.progressBar);this.progressBar.Ja(this.C.element,0);e=new kX(a,b);g.J(this,e);g.GU(a,e.element,4);e=new g.gG({I:"div",S:"ytp-left-controls"});g.J(this,e);e.Ja(this.Ga);f=new g.qX(a,b,!1);g.J(this,f);f.Ja(e.element);a.L("web_render_jump_buttons")&&(this.Z=new lX(a,g.EJ(a.U().experiments,"web_jump_button_backward_amount")||-10),g.J(this,this.Z),this.Z.Ja(e.element));c.Va||(this.playButton=new g.pX(a,b),g.J(this,this.playButton),this.playButton.Ja(e.element));a.L("web_render_jump_buttons")&&
(this.W=new lX(a,g.EJ(a.U().experiments,"web_jump_button_forward_amount")||10),g.J(this,this.W),this.W.Ja(e.element));f=new g.qX(a,b,!0);g.J(this,f);f.Ja(e.element);f=new g.U({I:"span",S:"ytp-volume-area"});g.J(this,f);f.Ja(e.element);if(!c.jd&&(this.G=new g.oX(a,b),g.J(this,this.G),this.G.Ja(f.element),c.Xa&&!c.Z)){var h=new G_a(a,this.C.element);this.Na=h;g.J(this,h);h.Ja(f.element);f=new g.pV(f.element);g.J(this,f);f.subscribe("hoverstart",function(){var l;null==(l=d.Na)||H_a(l,!0)});
f=new g.pV(e.element);g.J(this,f);f.subscribe("hoverend",function(){var l;null==(l=d.Na)||H_a(l,!1)})}g.J(this,this.zo);
this.zo.Ja(e.element);this.j=new g.gG({I:"div",S:"ytp-right-controls"});g.J(this,this.j);this.Ea=new jX(a,this.progressBar);g.J(this,this.Ea);this.Ea.Ja(e.element);c.L("web_key_moments_markers")&&(this.La=new mX(a,this.progressBar),g.J(this,this.La),this.La.Ja(e.element));this.j.Ja(this.Ga);e=new g.UX(a,b);g.J(this,e);e.Ja(this.j.element);e=new JX(a,this.B);g.J(this,e);D_a(this.B,e);e.Ja(this.j.element);e=a.getVideoData();if(c.Nm||e.Gf&&"1"===c.controlsType)this.K=new $X(a,b),g.J(this,this.K),this.K.Ja(this.j.element);
c.showMiniplayerButton&&(this.D=new nX(a),g.J(this,this.D),this.D.Ja(this.j.element));c.vj&&(b=new IX(a,this.B),g.J(this,b),b.Ja(this.j.element));c.Jl&&(b=new hX(a),g.J(this,b),b.Ja(this.j.element));g.J(this,this.Va);this.Va.Ja(this.j.element);g.J(this,this.Yg);this.T(a,"appresize",this.Zb);this.T(a,"fullscreentoggled",this.Zb);this.T(a,"presentingplayerstatechange",this.jS);this.T(a,"videodatachange",this.onVideoDataChange);this.Zb()};
J_a=function(a,b){a.J.Vb().isCued()||b?b&&(a.ra.hide(),a.Ba.hide(),a.G&&a.G.Hc(!1),a.K&&a.K.Hc(!1),a.D&&a.D.Hc(!1),a.J.Sl(a.Fb())):b||(a.ra.show(),a.Ba.show(),a.G&&a.G.Hc(!0),a.K&&a.K.Hc(!0),a.D&&a.D.Hc(!0),a.BA())};
L_a=function(a){var b=a.J.qb().getPlayerSize().width;return Math.max(b-2*K_a(a),100)};
K_a=function(a){var b=a.J.Og(),c=a.J.getVideoData().Gf,d=0;a.J.Og()&&g.DU(a.J)&&(d=(a.J.qb().getPlayerSize().width-a.J.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
M_a=function(a){var b=a.J.Og()?72:50;a=a.J.U();g.BS(a)&&(b=62,g.rS(a)&&(b=54));return b};
N_a=function(a){OW.call(this,a,!1);var b=this;this.suggestedActions={};this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.kK("suggested_action_button_visible"),function(c){c=c.id;b.text=c;uXa(b);b.onClickCommand=b.suggestedActions[c];b.enabled=!0;b.qg()});
this.T(this.J,g.lK("suggested_action_button_visible"),function(c){b.enabled=!1;b.qg();b.J.removeCueRange(c.id)})};
O_a=function(a){a.suggestedActions={};a.J.wf("suggested_action_button_visible")};
bY=function(a){g.U.call(this,{I:"div",S:aY.TITLE,V:[{I:"div",S:aY.TEXT,V:[{I:"a",Ma:[aY.LINK,aY.SESSIONLINK],Y:{target:a.U().W,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},ya:"{{title}}"},{I:"div",S:aY.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Ha(aY.LINK);a.createClientVe(this.element,this,23851);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.Sa()};
P_a=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.rS(a.api.U())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
g.cY=function(a,b){g.U.call(this,{I:"div",V:[{I:"div",S:"ytp-tooltip-text-wrapper",Y:{"aria-hidden":"{{ariaHidden}}"},V:[{I:"div",S:"ytp-tooltip-edu",V:[{I:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Y:{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"}}]},{I:"span",ya:"{{eduText}}"}]},{I:"div",S:"ytp-tooltip-image"},{I:"div",S:"ytp-tooltip-title",V:[{I:"span",ya:"{{title}}"}]},{I:"span",S:"ytp-tooltip-text",ya:"{{text}}"}]},
{I:"div",S:"ytp-tooltip-bg",V:[{I:"div",S:"ytp-tooltip-duration",ya:"{{duration}}"}]}]});var c=this;this.api=a;this.ye=b;this.env=this.api.U();this.Na=this.env.B;this.bg=this.Ha("ytp-tooltip-bg");this.Qa=this.Ha("ytp-tooltip-edu");this.image=this.Ha("ytp-tooltip-image");this.text=this.Ha("ytp-tooltip-text");this.title=this.Ha("ytp-tooltip-title");this.ra=function(d){(d=d.relatedTarget)&&g.pf(c.j,d)||c.Mh()};
this.G=function(d){3===c.type&&c.Mh();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.G),d.addEventListener("mouseout",c.ra),d.removeEventListener("focus",c.G),d.addEventListener("blur",c.ra),Q_a(c,d,2))};
this.Ea=function(){c.Mh()};
this.j=null;this.K=new g.MG(this,100);this.type=null;this.ma=!1;this.B=null;this.D=NaN;this.C="";this.PT=this.api.qb().getPlayerSize().width;this.W=!0;this.scale=1;this.N=160;this.Ba=90;this.Ga=new g.Eu(this.C7,250,this);this.La=new g.Eu(this.Mh,5E3,this);g.J(this,this.K);g.J(this,this.Ga);g.J(this,this.La);jS&&(a=this.Ha("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));aZa(this.api)&&(this.N=243,this.Ba=141,g.Mu(this.api.getRootNode(),"ytp-bigboards"))};
g.vU=function(a,b){if(a.Na)return function(){};
b.addEventListener("mouseover",a.G);b.addEventListener("focus",a.G);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.Mh();b.removeEventListener("mouseover",a.G);b.removeEventListener("focus",a.G)}};
Q_a=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.eD("showElementTooltip called with non-element.",b.toString()),g.KF(a);else{isNaN(a.D)||(a.D=NaN,a.bg.style.background="");a.j=b;a.ma=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.Ku(a.element,"ytp-tooltip");g.Mu(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.Qu(a.element,"ytp-tooltip-image-enabled",
!!e);b=b.getAttribute("data-tooltip-opaque");g.Qu(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.Ea);a.W&&(R_a(a),a.K.show(0))}};
R_a=function(a){if(a.j){var b=a.j.getAttribute("data-tooltip-text");if(a.C&&a.j.getAttribute("aria-label")!==a.C)var c=a.C;var d=a.j.getAttribute("aria-keyshortcuts"),e=a.j.getAttribute("data-title-no-tooltip");d&&e&&(c=g.qK("$BUTTON_TITLE \u2013 pikan\u00e4pp\u00e4in $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.ma){d=a.j;a.updateValue("text",b);c=d.getAttribute("data-duration");a.update({title:a.C,duration:c});d=d.getAttribute("data-preview");e=a.N*
a.scale;var f=a.Ba*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=d?"url("+d+")":"";a.bg.style.backgroundSize=e+"px "+f+"px";g.Nu(a.element,["ytp-text-detail","ytp-preview"]);g.Qu(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.C),g.Pu(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);S_a(a,!!b)}};
S_a=function(a,b,c,d){var e=Math.min(a.PT,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.ye.Tt(a.element,a.j,c,1===a.type,d);a.element.style.top?g.Mu(a.element,"ytp-bottom"):a.element.style.bottom&&g.Mu(a.element,"ytp-top");3===a.type&&a.La.start()};
T_a=function(a,b){g.Qu(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Ba*a.scale,d=RQa(a.B,a.D,b);$Ya(a.bg,d,b,c,!0);a.Ga.start()}};
U_a=function(a){var b=a.j;3===a.type&&a.La.stop();a.api.removeEventListener("appresize",a.Ea);a.ma||b.setAttribute("title",a.C);a.C="";a.j=null};
W_a=function(a){g.U.call(this,{I:"button",Ma:["ytp-watch-later-button","ytp-button"],Y:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.mS(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",ya:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",ya:"Katso my\u00f6hemmin"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;TSa(a);a.createClientVe(this.element,this,28665);this.Ra("click",this.onClick,this);this.T(a,"videoplayerreset",this.Iw);this.T(a,"appresize",
this.lC);this.T(a,"videodatachange",this.lC);this.T(a,"presentingplayerstatechange",this.lC);this.lC();a=this.J.U();var b=g.YC("yt-player-watch-later-pending");a.D&&b?(ELa(),V_a(this)):this.Sa(2);g.Qu(this.element,"ytp-show-watch-later-title",g.mS(a));wU(this.J,this.element,this)};
X_a=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.mS(c)&&g.CU(a.J)&&g.TG(a.J.Vb(),128),f=c.C;return c.Pe&&240<=b.width&&!d.isAd()&&d.Pe&&!e&&!g.gU(d)&&!g.DU(a.J)&&!f};
Y_a=function(a,b){WWa(g.xS(a.J.U()),"wl_button",function(){ELa({videoId:b});window.location.reload()})};
V_a=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Sa(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.un(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Sa(2);a.J.U().K&&a.J.ib("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Sa(1);a.J.U().B&&a.J.NF(a.element);a.J.U().K&&a.J.ib("WATCH_LATER_VIDEO_ADDED")};
fI(c,b).then(d,function(){a.isRequestPending=!1;a.Sa(4,"Tapahtui virhe. Yrit\u00e4 my\u00f6hemmin uudelleen.");a.J.U().K&&a.J.ib("WATCH_LATER_ERROR","Tapahtui virhe. Yrit\u00e4 my\u00f6hemmin uudelleen.")})}};
Z_a=function(a,b){if(b!==a.icon){switch(b){case 3:var c=eUa();break;case 1:c=mva();break;case 2:c={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{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:c={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",
zc:!0,Y:{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",c);a.icon=b}};
g.dY=function(){g.rW.apply(this,arguments);this.BI=(this.Uq=g.mS(this.api.U()))&&(this.api.U().B||zC()||xC());this.MM=48;this.OM=69;this.TC=this.ji=null;this.Mt=[];this.MK=this.Ch=this.NK=this.zv=this.Rd=null;this.ZF=[];this.contextMenu=this.Jg=this.overflowButton=this.Vh=this.Sg=this.searchButton=this.Zm=this.shareButton=this.Ho=this.Rg=this.title=this.channelAvatar=this.backButton=this.RA=this.tooltip=null;this.vM=!1;this.aF=this.gw=this.mD=this.nD=null;this.xQ=this.rP=this.XM=!1};
$_a=function(a){var b=a.api.U(),c=g.TG(a.api.Vb(),128);return b.D&&c&&!a.api.isFullscreen()};
a0a=function(a){if(a.Vf()&&!g.DU(a.api)&&a.Vh){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.Ho||b&&!X_a(a.Ho)||$Xa(a.Vh,a.Ho);!a.shareButton||b&&!jYa(a.shareButton)||$Xa(a.Vh,a.shareButton);!a.Zm||b&&!oXa(a.Zm)||$Xa(a.Vh,a.Zm)}else{if(a.Vh){b=a.Vh;for(var c=g.u(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.pf(a.Rg.element,a.searchButton.element)&&a.searchButton.Ja(a.Rg.element);a.Ho&&!g.pf(a.Rg.element,a.Ho.element)&&a.Ho.Ja(a.Rg.element);
a.shareButton&&!g.pf(a.Rg.element,a.shareButton.element)&&a.shareButton.Ja(a.Rg.element);a.Zm&&!g.pf(a.Rg.element,a.Zm.element)&&a.Zm.Ja(a.Rg.element)}};
b0a=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==as(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=b0a(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};
c0a=function(a,b,c){if(a.api.U().L("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.aF){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.aF=new dYa(d,a.api),g.J(a,a.aF),g.GU(a.api,
a.aF.element,9));var m;null==(m=a.aF)||hYa(m,d,c)}}};
g.eY=function(a){g.RV.call(this,a);this.chrome=null;this.load()};
fY=function(a){g.H.call(this);var b=this;this.X=a;this.j=new Map;this.D=[];this.B=this.X.experiments.jb("html5_onesie_trusted_hosts_for_all")||!qO();this.W=g.EJ(this.X.experiments,"html5_onesie_prewarm_interval_ms");this.Z=new g.Eu(this.N,this.W,this);this.K=-1;this.Fd={Tib:function(){return b.j},
Zib:function(){return b.G},
Uib:function(){return d0a}};
g.J(this,this.Z);e0a(this,g.YC("yt-player-bandaid-host"));this.G=this.load();this.W&&this.G.then(function(){b.N()})};
e0a=function(a,b){var c=null==b?void 0:b.primary;a.C(0,c);c=c?f0a(c):void 0;a.C(2,c);a.C(1,null==b?void 0:b.secondary)};
gY=function(a,b){return new g.dQ("https://"+b+a.X.ll.baseUrl)};
g0a=function(a,b){a="https://"+fQ(b.location)+"/initplayback?c="+g.QR(a.X)+"&owc=1";JU(a,"pw",function(c){c.ht=b.j})};
hY=function(a,b,c,d){JU("https://"+b+"/videoplayback?probe=1",c,function(e){!d.L("html5_onesie_host_racing")||d.videoData.isLivePlayback||d.L("html5_onesie_probe_ec_hosts")||d.CI||d.qO();a.D.push(e)},function(e){a.D.push(e.details)})};
f0a=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
j0a=function(a,b){var c,d,e,f,h,l,m,n;return g.Ha(function(p){if(1==p.j){c=gY(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.z(p,hC(c.df(),d),2)}e=p.B;if(200!==e.xhr.status||!e.xhr.responseText)return p.return(Promise.reject(new g.eD("b204258371_no_host",c.df(),e.xhr.status)));f=new g.dQ(e.xhr.responseText);
h=fQ(f);l=f.get("ms");m=gY(a,h);m.set("ms",l);h0a&&(n=f.get("mm"),m.set("mm",n));return h&&i0a(h)?2!==b||iY(h)?p.return(m):p.return(Promise.reject(new g.eD("b204258371_untrusted",h,l))):p.return(Promise.reject(new g.eD("b204258371_invalid",h,l)))})};
k0a=function(a){var b=a.D;a.D=[];return b};
i0a=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
iY=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
l0a=function(a,b){this.location=a;this.j=b};
jY=function(a,b){var c=this;this.policy=a;this.eb=b;this.B=0;this.j=null;this.Kf=[];this.C=null;this.Fd={yn:function(){return c.eb}};
1===this.eb.length||g.qr(this.eb,function(d){return!!d.range})};
kY=function(a,b,c){a.j&&(AO(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.u(a.eb),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.B<=a.B)d+=h.B;else{b.getLength();if(XQ(h)&&!c&&a.B+b.getLength()-e<d+h.B){a.j=b.split(e).Bm;return}a:{var l=a;var m=h,n=a.B-d,p=e,q=b,r=!!c,t=q.getLength()-p;m.range&&(t=Math.min(m.B-n,t));m=$Ma(m,m.Xb+n,t,m.range?m.Xb+n+t===m.range.length:r);p=BO(q,p,t);p=new oR(m,p);if(l.policy.useUmp&&l.Kf.length&&(q=qR(l.Kf[l.Kf.length-1],p))){l.Kf[l.Kf.length-1]=q;l=t;break a}l.Kf.push(p);
l=t}a.B+=l;e+=l;d+=h.B;if(e===b.getLength())break}b.getLength()};
lY=function(a){g.H.call(this);this.C=a;this.logger=new g.LU("onesie");this.qd=new Map;this.j=!1;this.eh=this.manifest=null;this.B=!1};
m0a=function(a,b,c){a.qd.get(b).If=c};
mY=function(a,b){a.qd.has(b)&&(a.qd.get(b).Kf=new zO,n0a(a,b))};
p0a=function(a){for(var b=g.u(a.qd),c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;(o0a?d.IG:d.If)||mY(a,c)}};
q0a=function(a,b){b=a.qd.get(b);if(!b)return 0;a=0;if(0<b.eb.length){b=g.u(b.eb);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.eJ.length)for(c=g.u(b.eJ),d=c.next();!d.done;d=c.next())a+=d.value.Fr||0;return a+b.iX};
r0a=function(a,b){var c;return(null==(c=a.qd.get(b))?void 0:c.Kf.getLength())||0};
nY=function(a,b){a=a.qd.get(b);return(!o0a||!(null==a||!a.IG))&&!(null==a||!a.Kf.getLength())};
s0a=function(a,b){var c=a.qd.get(b),d=q0a(a,b),e=!d&&!!c.bytesReceived,f=a.Ph(b);return e&&a.j&&void 0!==f?f:(e||c.bytesReceived===d)&&c.Ly+r0a(a,b)===c.bytesReceived};
t0a=function(a,b,c){a.qd.set(b,{Kf:new zO,Ojb:[],Ly:0,bytesReceived:0,iX:0,LQ:!1,Pg:!1,Ph:!1,Ai:c,b_:[],eb:[],eJ:[],IG:!1,yw:new Map,FK:new Map,rE:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})};
u0a=function(a,b,c,d){c.eb.push.apply(c.eb,g.oa(d));var e;if(null==(e=a.eh)?0:e.Pe){c.FK.has(b)||c.FK.set(b,[]);var f;(f=c.FK.get(b)).push.apply(f,g.oa(d))}else if(c.wg)for(a=g.u(d),b=a.next();!b.done;b=a.next())c.wg.eb.push(b.value);else c.wg=new jY(a.eh,[].concat(g.oa(c.eb)))};
v0a=function(a,b,c){var d,e=null==(d=a.manifest)?void 0:d.N.get(b);if(!e)return[];if(c.In){var f;return(null==(f=e.Jv(0,c.clipId))?void 0:f.eb)||[]}if(e.Jn()){d=c.startMs;f=c.durationMs;var h=1E3,l;if((null==(l=a.eh)?0:l.gr)&&c.timeRange){var m;d=null!=(m=c.timeRange.Xh)?m:-1;var n;f=null!=(n=c.timeRange.xH)?n:-1;var p;h=null!=(p=c.timeRange.Au)?p:-1}if(0>c.lB||0>c.au||0>f||0>d||0>c.Fr||0>h)return mY(a,b),[];a=TQ(c.lB,c.Fr);b=c.JP||0;return[new VQ(3,e,a,"makeSliceInfosMediaBytes",c.au-1,d/h,f/h,b,
a.length-b,void 0,c.Gj,c.clipId)]}return 0>c.au?(mY(a,b),[]):(null==(h=a.manifest)?0:h.Ac)?(a=e.Jj,[new VQ(3,e,void 0,"makeSliceInfosMediaBytes",c.au,void 0,a,void 0,a*e.info.Ob,!0,c.Gj,c.clipId)]):[]};
w0a=function(a,b,c){a.manifest=b;a.eh=c;b=g.u(a.qd);for(c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;for(var e=g.u(d.b_),f=e.next();!f.done;f=e.next()){f=f.value;var h=v0a(a,c,f);u0a(a,f.Hp,d,h)}}};
y0a=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+", bytes: "+d.getLength()});
(a=a.qd.get(c))&&!a.Pg&&(x0a&&(a.yw.has(b)||a.yw.set(b,{data:new zO,AM:0,FI:!1}),AO(a.yw.get(b).data,d)),AO(a.Kf,d),a.bytesReceived+=d.getLength(),a.LQ=!0)};
n0a=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b});
var c=a.qd.get(b);c&&!c.Pg&&(c.Pg=!0,c.If&&c.If(),z0a(a)&&a.C.vY())};
z0a=function(a){a=g.u(a.qd.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Pg)return!1;return!0};
oY=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)};
A0a=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.oa(new Uint8Array(c))));a.close()}return b};
B0a=function(){for(var a=pY.length;4>a;a++){var b=g.$e("VIDEO");b.load();pY.push(new g.wV(b))}};
C0a=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};c=f.C;if(b.Vi()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(b=b.kf())&&b.isView()&&(b=b.mediaElement);if(b&&12<b.Lv().length&&g.IT(e))return{msg:"played-ranges"};if(!e.C)return null;if(!c)return{msg:"no-pvd-formats"};if(!e.C.j||!c.j)return{msg:"non-dash"};a=a.j&&CT(f)&&BL();if(e.C.videoInfos[0].containerType!==c.videoInfos[0].containerType)if(a)f.va("sgap",
{ierr:"container"});else return{msg:"container"};if(g.IT(f)&&g.IT(e))return{msg:"content-protection"};c=c.j[0];e=e.C.j[0];b=c.audio;d=e.audio;if(b.sampleRate!==d.sampleRate&&!g.YK)if(a)f.va("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:c.itag,cr:b.sampleRate,ni:e.itag,nr:d.sampleRate};return(b.numChannels||2)!==(d.numChannels||2)?{msg:"channel-count"}:null};
D0a=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.U().supportsGaplessShorts())return{nq:"env"};if(d.fl||e.fl)return{nq:"autoplay"};if(!d.W)return{nq:"client"};a=C0a(c,a,b,Infinity);return null!=a?{nq:a.msg}:null};
qY=function(a){g.H.call(this);this.app=a;this.D=this.C=this.wb=this.j=null;this.B=1};
E0a=function(){this.j=!1};
F0a=function(a){var b=new E0a;b.j=a.L("h5_gapless_support_types_diff");return b};
g.rY=function(a,b,c,d){d=void 0===d?!1:d;LL.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
G0a=function(a,b,c,d,e,f){f=void 0===f?0:f;g.H.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.Qd=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.N=!1;this.gq=new KL;this.Dm=d-1E3*b.Pc();this.gq.then(void 0,function(){});
this.timeout=new g.Eu(function(){h.Hg("timeout")},1E4);
g.J(this,this.timeout);this.Z=isFinite(d);this.status={status:0,error:null}};
L0a=function(a){var b,c,d,e,f,h,l,m,n,p;return g.Ha(function(q){if(1==q.j){if(a.isDisposed())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.sY.uu("gtfta");return g.z(q,a.gq,2)}g.sY.Js(b);c=a.j.kf();if(c.Ph())return a.Hg("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!FL(a.D))return a.Hg("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.Iq()!==a.D)return a.Hg("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error||
"")));d=H0a(a);e=d.oY;f=d.xV;h=d.mY;a.j.Fj(!1,!0);l=I0a(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);m=a.j.DD();a.Qd.U().L("html5_mse_reuse_dropped_frames_fix")&&m&&a.B.HF(m.VA,m.WA);a.Z&&(a.B.seekTo(a.B.getCurrentTime()+.001,{Tv:!0,VR:3,wd:"gapless_pseudo"}),l.play()||lC());n=c.pc();n.cpn=a.j.getVideoData().clientPlaybackNonce;n.st=""+e;n.et=""+h;a.B.va("gapless",n);a.j.va("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});p=a.j.getPlayerType()===a.B.getPlayerType();J0a(a.j,f,
!1,p,a.B.getVideoData().clientPlaybackNonce);J0a(a.B,a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);g.If(function(){!a.B.getVideoData().Va&&g.TL(a.B.getPlayerState())&&K0a(a.B)});
tY(a,6);a.dispose();return q.return(Promise.resolve())})};
P0a=function(a){if(a.B.getVideoData().C){var b=a.Qd.U().L("html5_gapless_suspend_next_loader")&&1===a.G;M0a(a.B,a.D,b);tY(a,3);N0a(a);var c=O0a(a);b=c.zR;c=c.o_;b.subscribe("updateend",a.Wx,a);c.subscribe("updateend",a.Wx,a);a.Wx(b);a.Wx(c)}};
N0a=function(a){a.j.unsubscribe("internalvideodatachange",a.Uu,a);a.B.unsubscribe("internalvideodatachange",a.Uu,a);a.j.unsubscribe("mediasourceattached",a.Uu,a);a.B.unsubscribe("statechange",a.Sd,a)};
I0a=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.rY(a,b,c,d)};
tY=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.gq.resolve())};
H0a=function(a){var b=a.j.kf();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:uY(a.j,!0);c=Math.min(a.Dm/1E3,c)+b;var d=a.Z?100:0;a=c-a.B.Vi()+d;return{k5:b,oY:a,xV:c,mY:Infinity}};
O0a=function(a){return{zR:a.C.j.Md,o_:a.C.B.Md}};
vY=function(a){g.H.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.Z=!1;this.D=null;this.N=F0a(this.app.U());this.C=null;this.K=function(){g.If(function(){Q0a(b)})}};
R0a=function(a,b,c,d,e){d=void 0===d?0:d;e=void 0===e?0:e;a.dw()||wY(a);a.D=new KL;a.j=b;var f=c,h=0===e;h=void 0===h?!0:h;var l=a.app.ud(),m=l.getVideoData().isLivePlayback?Infinity:1E3*uY(l,!0);f>m&&(f=m-200,a.Z=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Ua.addEventListener(g.kK("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.jK(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.G)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.B&&(l=d,m=0,
b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,uY(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,uY(b)+m)),h=wOa(f,l)||d,h!==d&&a.j.va("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().pj=!0;d.getVideoData().W=!0;g.xY(d,!0);f={};a.B&&(f=g.HN(a.B.qc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.va("queued",f);0!==b&&d.seekTo(b+.01,{Tv:!0,VR:3,wd:"videoqueuer_queued"});a.C=new G0a(a.N,a.app.ud(),a.j,c,a.app,e);c=a.C;Infinity!==c.status.status&&
(tY(c,1),c.j.subscribe("internalvideodatachange",c.Uu,c),c.B.subscribe("internalvideodatachange",c.Uu,c),c.j.subscribe("mediasourceattached",c.Uu,c),c.B.subscribe("statechange",c.Sd,c),c.j.subscribe("newelementrequired",c.MY,c),c.Uu());return a.D};
Q0a=function(a){var b,c,d,e;g.Ha(function(f){switch(f.j){case 1:if(a.isDisposed()||!a.D||!a.j)return f.return();a.Z&&yY(a.app.ud(),!0,!1);b=null;if(!a.C){f.Ka(2);break}g.ya(f,3);return g.z(f,L0a(a.C),5);case 5:g.za(f,2);break;case 3:b=c=g.Aa(f);case 2:if(!a.j)return f.return();g.sY.vk("vqsp",function(){zY(a.app,a.j)});
g.sY.vk("vqpv",function(){a.app.playVideo()});
b&&(a.j?S0a(a.j,b.message):null==(d=a.B)||d.va("gapsp",{}));e=a.D;wY(a);e&&e.resolve();return f.return(Promise.resolve())}})};
wY=function(a){if(a.B){if(a.G){var b=a.B;a.app.Ua.removeEventListener(g.kK("vqueued"),a.K);b.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(6!==a.C.status.status&&(b=a.C,Infinity!==b.status.status&&1!==b.G&&b.Hg("Canceled")),a.C=null);a.D=null;a.j&&a.j!==g.sU(a.app,1)&&a.j!==a.app.ud()&&a.j.dispose();a.j=null;a.Z=!1};
T0a=function(a){var b;return(null==(b=a.C)?void 0:b.currentVideoDuration)||-1};
U0a=function(a,b,c){if(a.dw())return"qie";if(null==a.j||a.j.isDisposed()||null==a.j.getVideoData())return"qpd";if(b.videoId!==a.j.Ce())return"vinm";if(0>=T0a(a))return"ivd";if(1!==c)return"upt";var d;null==(d=a.C)?a=void 0:5!==d.getStatus().status?a="niss":null!=C0a(d.policy,d.j,d.B,d.Dm)?a="pge":(c=O0a(d),b=c.zR,a=g.EJ(d.Qd.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=uL(c.o_.Ze(),d),b=uL(b.Ze(),d),a=!(0<a)||c&&b?null:"neb");return null!=a?a:null};
V0a=function(){var a=Woa();return!(!a||"visible"===a)};
X0a=function(a){var b=W0a();b&&document.addEventListener(b,a,!1)};
Y0a=function(a){var b=W0a();b&&document.removeEventListener(b,a,!1)};
W0a=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Voa+"VisibilityState"])return"";a=Voa+"visibilitychange"}return a};
Z0a=function(){g.cG.call(this);var a=this;this.fullscreen=0;this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.qg()};
X0a(this.C);this.D=this.getVisibilityState(this.Oh(),this.isFullscreen(),this.jg(),this.isInline(),this.zt(),this.Nz())};
ZUa=function(a){return!(a.jg()||a.isInline()||a.isBackground()||a.zt()||a.Nz())};
AY=function(a,b,c,d,e){e=void 0===e?[]:e;g.H.call(this);this.X=a;this.Ec=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])};
$0a=function(a,b){b.D===a&&(0===a.segments.length&&(a.j=b),a.segments.push(b))};
a1a=function(a,b,c,d){if(a.j&&!(b>c)){b=new AY(a.X,b,c,a.j,d);d=g.u(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=c.Yl();e&&e!==a.j.Yl()&&a.B.set(e,[c])}a.j.j.set(b.Lh(),b)}};
BY=function(a,b){return a.B.get(b)};
c1a=function(a,b,c,d,e,f){return new b1a(c,c+(d||0),!d,b,a,e,f)};
d1a=function(a,b){var c=a.B.values();a=[];c=g.u(c);for(var d=c.next();!d.done;d=c.next()){d=g.u(d.value);for(var e=d.next();!e.done;e=d.next()){var f=e.value;e="st."+f.Lh()+";";e+="et."+f.Dv()+";";var h=f.Yl();h&&(e+="cpn."+h+";",e+="a."+(b===h?1:0)+";");if(f=f.getVideoData())h=void 0,e+="vid."+(null!=(h=f.videoId)?h:"nvd");a.push(e)}}return a.join(",")};
b1a=function(a,b,c,d,e,f,h){g.H.call(this);this.Ec=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.WI=h;this.j=new Map;QRa(f)};
e1a=function(a){this.end=this.start=a};
g.CY=function(a,b,c){g.H.call(this);var d=this;this.api=a;this.X=b;this.qa=c;this.Ga=new Map;this.Xa=new Map;this.La=new Map;this.C=new Map;this.B=[];this.N=[];this.D=new Map;this.Ic=new Map;this.Z=new Map;this.ac=NaN;this.tb=this.bb=this.Ub=null;this.Rb=new g.Eu(function(){f1a(d,d.ac,d.Ub||void 0)});
this.events=new g.aL(this);this.Jb=15E3;this.K=new g.Eu(function(){d.Ba=!0;var e=d.qa,f=d.Jb;e.va("sdai",{aftimeout:f});e.ke(new TK("ad.fetchtimeout",{timeout:f}));g1a(d);d.MD(!1)},this.Jb);
this.Ba=!1;this.G=new Map;this.rb=[];this.W=null;this.Ie=new Set;this.Ea=[];this.Oc=[];this.Pe=[];this.jd=[];this.j=void 0;this.Bb=0;this.Za=!0;this.Va=!1;this.Na=[];this.Bd=new Set;this.He=new Set;this.ue=new Set;this.ra=0;this.kb=new Set;this.Od=0;this.tp=this.hd=!1;this.ma="";this.Fd={zib:function(){return d.C},
Gib:function(){return d.B},
Aib:function(){return d.D}};
this.qa.getPlayerType();h1a(this.qa,this);this.Qa=this.X.Uc();g.J(this,this.Rb);g.J(this,this.events);g.J(this,this.K);this.events.T(this.api,g.kK("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.lK("serverstitchedcuerange"),this.onCueRangeExit)};
l1a=function(a,b,c,d,e,f,h,l){var m=i1a(a,f,f+e);a.Ba&&a.qa.va("sdai",{adaftto:1});a.tp&&a.qa.va("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.qa;h=void 0===h?f+e:h;f===h&&!e&&a.X.L("html5_allow_zero_duration_ads_on_timeline")&&a.qa.va("sdai",{attl0d:1});f>h&&DY(a,{reason:"enterTime_greater_than_return",Ec:f,Td:h});var p=1E3*n.Jd();f<p&&DY(a,{reason:"enterTime_less_than_minSeekableTime",Ec:f,dkb:p});n=1E3*n.getDuration();h>n&&DY(a,{reason:"parent_return_greater_than_content_duration",Td:h,akb:n});
n=null;p=g.Rb(a.N,{Td:f},function(q,r){return q.Td-r.Td});
0<=p&&(n=a.N[p],n.Td>f&&j1a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.Ea.length;p++){if(a.Ea[p].identifier===m.identifier){a.Ea.splice(p,1);break}}else if(m)return a.qa.va("sdai",{rejectAttl:1}),l&&!ms(a.jd,function(q){return q===l})&&(a.qa.va("sdai",{rejectAdBreakAttl:1}),a.jd.push(l)),EY(a),"";
m="ss_childplayback_"+k1a++;a.X.L("html5_enable_ssap_entity_id")?(b=new g.nT(a.X,b),p=b.clientPlaybackNonce):(b.cpn||(b.cpn=g.VE(16)),p=b.cpn,b=new g.nT(a.X,b));b.pd=m;c={pd:m,playerType:d,durationMs:e,Ec:f,Td:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.Wb(a.N,c,function(q,r){return q.Ec===r.Ec?q.durationMs-r.durationMs:q.Ec-r.Ec});
a.D.set(p,c);a.Ic.set(m,c);a.qa.va("sdai",{attlDone:h-f,acpn:p});l?c.Sm=l:n?c.Sm=n.Sm:c.Sm=c.cpn;if(f=c.Sm)(d=a.Z.get(f))?(d.push(c),g.Ub(d,function(q,r){return q.Ec-r.Ec})):a.Z.set(f,[c]);
a.K.isActive()&&(a.Ba=!1,a.K.stop(),g1a(a),a.MD(!0));return m};
FY=function(a,b){return{ssvc:a,cpn:(null==b?void 0:b.cpn)||"",vid:(null==b?void 0:b.videoData.videoId)||""}};
m1a=function(a,b,c){return new g.jK(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
GY=function(a,b,c){var d=a.Va;var e={cpn:a.qa.getVideoData().clientPlaybackNonce,durationMs:0,Ec:0,playerType:1,Td:0,videoData:a.qa.getVideoData(),errorCount:0};var f=a.ma;a.ma="";var h=b.Eh-c.Eh;.5<Math.abs(h)&&a.qa.va("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.D.get(b.adCpn);var m=a.D.get(c.adCpn)}m&&l&&(a.api.oa("serverstitchedvideochange",l.pd,l.GC),a.qa.va("sdai",FY("a2a",l)),a.ra++,n1a(a.qa,m,l,c.Eh,b.Eh,d,!!f))}else if(!b.isAd&&
c.isAd){a.api.oa("serverstitchedvideochange");a.qa.va("sdai",FY("a2c"));a.ra=0;if(h=c.Qe)a.Bb=h.end;var n;c.adCpn&&(n=a.D.get(c.adCpn));n&&n1a(a.qa,n,e,c.Eh,b.Eh,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.D.get(b.adCpn));p&&(a.Bb=0,a.api.oa("serverstitchedvideochange",p.pd,p.GC),a.qa.va("sdai",FY("c2a",p)),a.ra=1,n1a(a.qa,e,p,c.Eh,b.Eh,d,!!f))}};
o1a=function(a,b){return a.tp?!1:aU(a.qa.getVideoData())?(a=HY(a,1E3*b),!!a&&!a.GI):!!HY(a,1E3*b)};
IY=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.Rb(a.N,{Ec:c},function(e,f){return e.Ec-f.Ec});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.N[d],a.Td>=c)?{Ym:a,uA:b}:{Ym:void 0,uA:b}};
HY=function(a,b){var c="";(b=p1a(a,b))&&(c=b.getId());return c?a.D.get(c):void 0};
p1a=function(a,b){a=g.u(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};
f1a=function(a,b,c){var d=a.tb||a.api.ud().getPlayerState();JY(a,!0);a.qa.seekTo(b,c);a=a.api.ud();b=a.getPlayerState();g.TL(d)&&!g.TL(b)?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()};
JY=function(a,b){a.ac=NaN;a.Ub=null;a.Rb.stop();a.bb&&b&&q1a(a.bb);a.tb=null;a.bb=null};
r1a=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.u(a.N),f=e.next();!f.done;f=e.next())f=f.value,(f.Ec<b||f.Td>c)&&d.push(f);a.N=d;d=g.u(a.C.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.qa.removeCueRange(e),a.C.delete(e.getId()),a.qa.va("sdai",{rmAdCR:1}));d=IY(a,b/1E3);b=d.Ym;d=d.uA;if(b&&(d=1E3*d-b.Ec,e=b.Ec+d,b.durationMs=d,b.Td=e,d=a.C.get(b.cpn))){e=g.u(a.B);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
b.Ec+b.durationMs:f.end===d.start&&(f.end=b.Ec);d.start=b.Ec;d.end=b.Ec+b.durationMs}if(b=IY(a,c/1E3).Ym){var h;d="playback_timelinePlaybackId_"+b.pd+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Ec+"_parentReturnTimeMs_"+b.Td;a.nE("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
s1a=function(a){a.Ga.clear();a.Xa.clear();a.La.clear();a.C.clear();a.B=[];a.N=[];a.D.clear();a.Ic.clear();a.Z.clear();a.G.clear();a.rb=[];a.W=null;a.Ie.clear();a.Ea=[];a.Oc=[];a.Pe=[];a.jd=[];a.Na=[];a.Bd.clear();a.He.clear();a.ue.clear();a.kb.clear();a.Ba=!1;a.j=void 0;a.Bb=0;a.Za=!0;a.Va=!1;a.ra=0;a.Od=0;a.hd=!1;a.tp=!1;a.ma="";a.K.isActive()&&EY(a)};
u1a=function(a,b,c,d,e,f){if(!a.tp)if(g.t1a(a,c))a.Qa&&a.qa.va("sdai",{gdu:"undec",seg:c,itag:e});else if(b=KY(a,b,c,d,f),!(aU(a.qa.getVideoData())&&(null==b?0:b.GI)))return b};
KY=function(a,b,c,d,e){var f=a.G.get(c);if(!f){b+=a.Lq();b=IY(a,b,1);if(b.Ym)return b.Ym;b=LY(a,c-1,null!=d?d:2);if(e)return a.qa.va("sdai",{misscue:e,sq:c,type:d,prevsstate:null==b?void 0:b.Ey,prevrecord:a.G.has(c-1)}),a.G.get(c-1);if(2===(null==b?void 0:b.Ey))return a.G.get(c-1)}return f};
v1a=function(a){if(a.Na.length)for(var b=g.u(a.Na),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);c=g.u(a.C.values());for(b=c.next();!b.done;b=c.next())a.qa.removeCueRange(b.value);c=g.u(a.B);for(b=c.next();!b.done;b=c.next())a.qa.removeCueRange(b.value);a.C.clear();a.B=[];a.Ga.clear();a.Xa.clear();a.La.clear();a.j||(a.Za=!0)};
LY=function(a,b,c){if(1===c){if(a.Ga.has(b))return a.Ga.get(b)}else{if(2===c&&a.Xa.has(b))return a.Xa.get(b);if(3===c&&a.La.has(b))return a.La.get(b)}};
x1a=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;w1a(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.qa.removeCueRange(e);if(a.Na.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else w1a(a,b,c)};
w1a=function(a,b,c){b=m1a(b,c);c=!0;g.Wb(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.qa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.qa.addCueRange(b),b=a.qa.iD("serverstitchedcuerange",36E5),b=g.u(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
MY=function(a,b,c){if(void 0===c||!c){c=g.u(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 e1a(b))}};
g.t1a=function(a,b){a=g.u(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};
j1a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Wjb:b,Ec:c,Td:d,sib:e.pd,tib:(null==(f=e.videoData)?void 0:f.videoId)||"",pib:e.durationMs,qib:e.Ec,rib:e.Td};DY(a,b)};
DY=function(a,b){a=a.qa;a.va("timelineerror",b);a.ke(new TK("dai.timelineerror",b))};
y1a=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
z1a=function(a,b,c){var d=0;a=a.Z.get(c);if(!a)return-1;a=g.u(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
A1a=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.u(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};
B1a=function(a,b){var c=0;a=a.Z.get(b);if(!a)return 0;a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Td!==b.Ec&&c++;return c};
C1a=function(a,b,c){var d=!1;if(c&&(c=a.Z.get(c))){c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Td!==e.Ec&&(e=e.cpn,b===e&&(d=!0),d&&!a.He.has(e)&&(a.qa.va("sdai",{decoratedAd:e}),a.He.add(e)))}};
g1a=function(a){a.Qa&&a.qa.va("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Od)+"_isTimeout_"+a.Ba})};
i1a=function(a,b,c){if(a.Ea.length)for(var d=g.u(a.Ea),e=d.next(),f={};!e.done;f={cz:void 0},e=d.next()){f.cz=e.value;e=1E3*f.cz.startSecs;var h=1E3*f.cz.gi+e;if(b>e&&b<h||c>e&&c<h)return ms(a.Pe,function(l){return function(m){return m.identifier===l.cz.identifier}}(f))||(a.qa.va("sdai",{adskip:b}),a.Pe.push(f.cz)),f.cz}};
EY=function(a){a.Ba=!1;a.K.isActive()&&g1a(a);a.K.stop();a.MD(!1)};
F1a=function(a,b,c){g.H.call(this);var d=this;this.api=a;this.timeline=b;this.qa=c;this.Zy=new Map;this.Ul=new Map;this.C=new Map;this.events=new g.aL(this);this.N=0;this.zg="";this.B=[];this.jk=new Set;this.G=new g.Eu(function(){d.api.playVideo(1);D1a(d,4)},3E4);
this.j="";this.PF=new Set;this.Z=!0;this.D=new Map;this.K=new Set;this.Fd={Iib:function(){return d.Ul}};
this.qa.getPlayerType();this.qa.xK(this);E1a(this);this.events.T(this.api,g.kK("ssap"),this.onCueRangeEnter);g.J(this,this.G)};
G1a=function(a,b,c,d){for(var e=a.qa.WH(),f=g.u(d),h=f.next();!h.done;h=f.next()){var l=h.value;l.C||(h=l.Yl(),l=l.getVideoData(),h&&l&&e.bN(h,l,2))}a1a(a.timeline,b,c,d)};
NY=function(a,b){a=BY(a.timeline,b);return(null==a?0:a.length)?a[0].Lh():0};
PY=function(a,b){if(!a.timeline.j)return{clipId:"",qm:0};if(b=OY(a,b))return{clipId:b.Yl()||"",qm:b.Lh()};a.api.va("ssap",{mci:1});return{clipId:"",qm:0}};
QY=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(0===b.j.size)return(b.Dv()-b.Lh())/1E3;b=b.j.values();b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a+=(c.Dv()-c.Lh())/1E3;return a};
H1a=function(a,b){return(a=OY(a,1E3*b))?a.Lh():0};
I1a=function(a,b){return(a=OY(a,1E3*b))?(a.Dv()-a.Lh())/1E3:0};
J1a=function(a){a=BY(a.timeline,a.zg);return(null==a?0:a.length)?2===a[0].getType():!1};
K1a=function(a,b){if(a=a.timeline.j){a=a.j;var c=Array.from(a.keys());g.Ub(c);b=g.Rb(c,b);return a.get(c[0>b?-1*(b+2):b])}};
OY=function(a,b){if(a=K1a(a,b)){a=g.u(a.segments);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Lh()<=b&&c.Dv()>b)return c}};
D1a=function(a,b){var c;if(a.j)for(c=a.B.shift();c&&c!==a.j;)c=a.B.shift();else c=a.B.shift();if(c)return a.jk.has(c)?L1a(a,c):3===b&&(a.G.stop(),a.api.playVideo(1)),a.C.set(a.zg,b),M1a(a,c),!1;a.G.stop();return!0};
L1a=function(a,b){b=BY(a.timeline,b);if(null==b?0:b.length)a.api.pauseVideo(),a.G.start(b[0].WI)};
M1a=function(a,b){if(a.zg!==b){var c=a.qa.getVideoData(),d=c.clientPlaybackNonce,e=a.zg;a.zg=b;var f=!1;""===e&&(e=d,f=!0);b=BY(a.timeline,a.zg);if(null==b?0:b.length){var h=b[0];b=h.getType();c=e===d?c:a.Zy.get(e);var l=a.C.get(e);l?a.C.delete(e):l=f?1:2;a:{var m=a.zg;if(!a.Ul.has(m))for(var n=g.u(a.Ul),p=n.next();!p.done;p=n.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}n=m;p=a.qa.WH();p.Ug!==n&&(q=p.qc(p.Ug),m=p.qc(n),p.Ug=n,m!==q&&(q.qoe&&
(n=q.qoe,n.provider.X.Uc()&&n.va("ssap",{qoesus:"1",vid:n.provider.videoData.videoId}),isNaN(n.G)||g.dC(n.G)),m.resume()));m=a.qa.getCurrentTime();n=Math.max(0,m-NY(a,e)/1E3);p=Math.max(0,m-NY(a,a.zg)/1E3);q=3===l;h=h.getVideoData();var r=a.qa.WH(),t=e,v=a.zg;if(t!==v){var x=r.qc(t),B=r.qc(v),F,G=t===(null==(F=x.getVideoData())?void 0:F.clientPlaybackNonce),I;F=v===(null==(I=B.getVideoData())?void 0:I.clientPlaybackNonce);var L;I=G?(null==(L=x.getVideoData())?void 0:L.videoId)||"":"nvd";var P;L=F?
(null==(P=B.getVideoData())?void 0:P.videoId)||"":"nvd";if(G){var V;null!=(V=x.qoe)&&RY(V,4,q?4:0,v,L,n)}if(F){SY(B);var ka;null!=(ka=B.qoe)&&RY(ka,4,q?5:1,t,I,p);N1a(B)}r.j.has(t)&&(O1a(r.j.get(t)),r.j.delete(t))}var sa;AVa(e,a.zg,d,m,h,null!=(sa=a.D.get(e))?sa:m);a.D.delete(e);a.api.oa("videodatachange","newdata",h,b,f?void 0:c,l);a.jk.delete(e);a.j="";(null==h?0:h.startSeconds)&&1===b&&a.Z&&(d=h.startSeconds,e=BY(a.timeline,a.qa.getVideoData().clientPlaybackNonce),null==e?0:e.length)&&(a.qa.seekTo(d+
e[0].Lh()/1E3,{HR:!0}),a.Z=!1);2===b?a.N++:a.N=0}}};
E1a=function(a){a.qa.oF(Array.from(a.Ul.values()));a.Ul.clear()};
Q1a=function(a,b,c){g.H.call(this);var d=this;this.api=a;this.X=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.ma=NaN;this.G=this.D=this.W=null;this.Z=new g.Eu(function(){P1a(d,d.ma,d.W||void 0)});
this.ra=[];this.Ba=new g.Eu(function(){var e=d.ra.pop();if(e){var f=e.pd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ra.length&&g.Fu(d.Ba,4500))}});
this.events=new g.aL(this);c.getPlayerType();g.J(this,this.Z);g.J(this,this.Ba);g.J(this,this.events);this.events.T(this.api,g.kK("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.pk)};
U1a=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 TY(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Jd();if(e<n)return TY(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.Pc(),TY(a,m,h,l),"";n=null;for(var p=g.u(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Ec&&e<q.Td)return TY(a,"overlappingEnter",h,l),"";if(f<=q.Td&&f>q.Ec)return TY(a,"overlappingReturn",h,l),"";if(f===q.Ec)return TY(a,"outOfOrder",h,l),"";e===q.Td&&(n=q)}h="cs_childplayback_"+R1a++;l={Qe:UY(d,!0),Dm:Infinity,target:null};var r={pd:h,playerVars:b,playerType:c,durationMs:d,Ec:e,Td:f,Is:l};a.B=a.B.concat(r).sort(function(x,B){return x.Ec-B.Ec});
n?S1a(a,n,{Qe:UY(n.durationMs,!0),Dm:n.Is.Dm,target:r}):(b={Qe:UY(e,!1),Dm:e,target:r},a.K.set(b.Qe,b),m.addCueRange(b.Qe));b=!0;if(a.j===a.api.ud()&&(m=1E3*m.getCurrentTime(),m>=r.Ec&&m<r.Td)){var t=a.api.ud().getPlayerState(),v=m-r.Ec;Cf(function(){T1a(a,r,v/1E3,{},t)});
b=!1}b&&(a.ra.unshift(r),g.Fu(a.Ba,0));return h};
UY=function(a,b){return new g.jK(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
V1a=function(a,b,c,d){a.C=d;a.api.CH(a.j,c,b)};
W1a=function(a,b,c,d){a.C=d;d=b.pd;var e=b.playerVars,f=b.playerType;a.N=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
S1a=function(a,b,c){var d=b.Is;b.Is=c;VY(a,b)&&(c=a.api.ud(),d.Qe===a.C&&WY(a),c.removeCueRange(d.Qe),c.addCueRange(b.Is.Qe))};
WY=function(a){a.N=null;a.C=null;a.api.dw()||a.api.clearQueue()};
X1a=function(a,b){VY(a,b)||TY(a,"childPlaybackIsNotPresenting");return b.Td===b.Ec+b.durationMs?(a=a.api.ud(),b.Ec+1E3*a.getCurrentTime()):b.Td};
Y1a=function(a,b){var c=0;a=g.u(a.B);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Ec/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Ym:d,uA:b-e};c=f-d.Td/1E3}return{Ym:null,uA:b-c}};
P1a=function(a,b,c){c=void 0===c?{}:c;var d=a.G||a.api.ud().getPlayerState();XY(a,!0);b=isFinite(b)?b:a.j.Hq();var e=Y1a(a,b);b=e.Ym;e=e.uA;var f=b&&!VY(a,b)||!b&&a.j!==a.api.ud(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||WY(a);b?T1a(a,b,e,c,d):Z1a(a,e,c,d)};
Z1a=function(a,b,c,d){var e=a.j,f=a.api.ud();e!==f&&a.api.cB();e.seekTo(b,Object.assign({},{wd:"application_timelinemanager"},c));$1a(a,d)};
T1a=function(a,b,c,d,e){var f=VY(a,b);if(!f){b.playerVars.prefer_gapless=!0;var h=new g.nT(a.X,b.playerVars);h.pd=b.pd;a.api.Ht(h,b.playerType)}h=a.api.ud();f||h.addCueRange(b.Is.Qe);h.seekTo(c,Object.assign({},{wd:"application_timelinemanager"},d));$1a(a,e)};
$1a=function(a,b){a=a.api.ud();var c=a.getPlayerState();g.TL(b)&&!g.TL(c)?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()};
XY=function(a,b){a.ma=NaN;a.W=null;a.Z.stop();a.D&&b&&q1a(a.D);a.G=null;a.D=null};
VY=function(a,b){a=a.api.ud();return!!a&&a.getVideoData().pd===b.pd};
a2a=function(a){var b=a.B.find(function(e){return VY(a,e)});
if(b){var c=a.api.ud();WY(a);var d=new g.NL(8);b=X1a(a,b)/1E3;Z1a(a,b,{},d);c.va("forceParentTransition",{childPlayback:1});a.j.va("forceParentTransition",{parentPlayback:1})}};
c2a=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.u(a.K),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;l.Dm>=d&&l.target&&l.target.Td<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.u(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Ec>=d&&l.Td<=e){var m=a;m.N===l&&WY(m);VY(m,l)&&m.api.cB()}else f.push(l);a.B=f;d=Y1a(a,b/1E3);b=d.Ym;d=d.uA;b&&(d*=1E3,b2a(a,b,d,b.Td===b.Ec+b.durationMs?b.Ec+d:b.Td));(b=Y1a(a,c/1E3).Ym)&&
TY(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.pd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Ec+" parentReturnTimeMs="+b.Td+"}.Child playbacks can only have duration updated not their start."))};
b2a=function(a,b,c,d){b.durationMs=c;b.Td=d;d={Qe:UY(c,!0),Dm:c,target:null};S1a(a,b,d);VY(a,b)&&1E3*a.api.ud().getCurrentTime()>c&&(b=X1a(a,b)/1E3,c=a.api.ud().getPlayerState(),Z1a(a,b,{},c))};
TY=function(a,b,c,d){a.j.va("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
e2a=function(a){a&&"web"!==a&&d2a.includes(a)};
$Y=function(a,b){g.H.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.Eu(function(){YY(c);ZY(c)});
g.J(this,this.j)};
f2a=function(a){YY(a);return a.data.map(function(b){return b.value})};
YY=function(a){var b=(0,g.FD)();a.data.forEach(function(c){c.expire<b&&aZ(a,c,!0)});
a.data=g.bt(a.data,function(c){return!(c.expire<b)})};
aZ=function(a,b,c){c&&a.B&&a.B(b.value)};
ZY=function(a){a.j.stop();var b=Infinity;for(var c=g.u(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))};
bZ=function(){g.H.call(this);this.j=new $Y(5,null);g.J(this,this.j);this.B=new $Y(15,null);g.J(this,this.B)};
g2a=function(a,b){return b?!!a.j.get(b):!1};
h2a=function(a){g.H.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.B=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.B.observe(a)};
k2a=function(a){g.U.call(this,{I:"div",Ma:["html5-video-player"],Y:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},V:[{I:"div",S:g.cZ.VIDEO_CONTAINER,Y:{"data-layer":"0"}}]});var b=this;this.app=a;this.Wy=this.Ha(g.cZ.VIDEO_CONTAINER);this.UA=new g.Vr(0,0,0,0);this.wc=null;this.XJ=new g.Vr(0,0,0,0);this.kO=this.uP=this.tP=NaN;this.uI=this.UJ=this.IQ=this.hV=!1;this.VM=NaN;this.WO=!1;this.qE=null;this.VP=function(){b.element.focus()};
this.CJ=function(){b.app.Ua.oa("playerUnderlayVisibilityChange","visible");b.wc.classList.remove(g.cZ.VIDEO_CONTAINER_TRANSITIONING);b.wc.removeEventListener(jUa,b.CJ);b.wc.removeEventListener("transitioncancel",b.CJ)};
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.U();e.transparentBackground&&this.ls("ytp-transparent");"0"===e.controlsType&&this.ls("ytp-hide-controls");g.Mu(this.element,"ytp-exp-bottom-control-flexbox");g.Mu(this.element,"ytp-modern-caption");e.L("enable_new_paid_product_placement")&&!g.DS(e)&&g.Mu(this.element,"ytp-exp-ppp-update");e.L("html5_enable_ssap")&&g.Mu(this.element,"ytp-ssap");this.element.dataset.version=i2a(a);this.q_=!1;this.lD=new g.ne(NaN,NaN);j2a(this);this.T(a.Ua,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
j2a=function(a){function b(){a.wc&&dZ(a);eZ(a)!==a.WO&&a.resize()}
function c(h,l){a.jt(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.XJ=new g.Vr(0,0,0,0);a.UA=new g.Vr(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);a.addOnDisposeCallback(function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
m2a=function(a){var b=g.sU(a.app),c=b=b?b.getVideoData():null;if(null==b?0:g.dU(b))c=a.app.Ua.getVideoData();if(c){if(g.PT(c)||g.QT(c)||g.ST(c))return 16/9;if(CRa(c)&&c.C.j)return a=c.C.videoInfos[0].video,l2a(a.width,a.height)}return(a=a.wc)?l2a(a.videoWidth,a.videoHeight):16/9};
n2a=function(a,b,c,d){var e=c,f=l2a(b.width,b.height);a.hV?e=c<f?Infinity:0:isNaN(a.kO)?isNaN(a.uP)||(e=a.uP):e=a.kO;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};
l2a=function(a,b){return 1>Math.abs(o2a*b-a)||1>Math.abs(o2a/a-b)?o2a:a/b};
eZ=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.sU(a.app);if(!b||b.Dp())return!1;a=a.app.Ua.Vb();b=!g.TG(a,2)||b&&b.getVideoData().W;var c=g.TG(a,1024);return a&&b&&!c&&!a.isCued()};
dZ=function(a){var b="3"===a.app.U().controlsType&&!a.uI&&eZ(a)&&!a.app.pA||!1;a.wc.controls=b;a.wc.tabIndex=b?0:-1;b?a.wc.removeEventListener("focus",a.VP):a.wc.addEventListener("focus",a.VP)};
p2a=function(a){var b=a.Yj(),c=1,d=!1,e=n2a(a,b,a.getVideoAspectRatio()),f=a.app.U(),h=f.L("enable_desktop_player_underlay"),l=Coa(),m=g.EJ(f.experiments,"player_underlay_min_player_width");m=h&&a.IQ&&a.getPlayerSize().width>m;if(eZ(a)){var n=m2a(a);var p=isNaN(n)||g.VD||fZ&&g.zD||m;UD&&!g.Nc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.Vr(p,0,b.width,b.height)):p=new g.Vr(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Vr((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.zD&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));g.Qu(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.q_)a.wc.style.display="";a.WO=!0}else{p=-b.height;UD?p*=window.devicePixelRatio:g.ES&&(p-=window.screen.height);p=new g.Vr(0,p,b.width,b.height);if(l||a.q_)a.wc.style.display="none";a.WO=!1}Wr(a.XJ,p)||(a.XJ=p,g.sS(f)?(a.wc.style.setProperty("width",
p.width+"px","important"),a.wc.style.setProperty("height",p.height+"px","important")):g.hs(a.wc,p.getSize()),d=new g.le(p.left,p.top),g.ds(a.wc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Vr((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Wr(a.UA,b)||(a.UA=b,d=!0);g.Yr(a.wc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.UJ&&(m&&(a.wc.addEventListener(jUa,a.CJ),a.wc.addEventListener("transitioncancel",a.CJ),a.wc.classList.add(g.cZ.VIDEO_CONTAINER_TRANSITIONING)),a.UJ=m,a.app.Ua.oa("playerUnderlayVisibilityChange",
a.UJ?"transitioning":"hidden"));return d};
q2a=function(){this.csn=g.HF();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set};
r2a=function(a){if(a.csn!==g.HF())if("UNDEFINED_CSN"===a.csn)a.csn=g.HF();else{var b=g.HF(),c=g.GF();if(b&&c){a.csn=b;for(var d=g.u(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.KB("combine_ve_grafts")?GP(EP(),e,c):g.OB(g.TF)(void 0,b,c,e))}if(b)for(a=g.u(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.XF(b,c)}};
s2a=function(a,b){this.rd=a;this.policy=b;this.playbackRate=1};
t2a=function(a,b){var c=Math.min(2.5,gS(a.rd));a=gZ(a);return b-c*a};
v2a=function(a,b,c,d,e){e=void 0===e?!1:e;if(a.policy.Kl)return Math.ceil(a.policy.Kl*b);a.policy.ql&&(d=Math.abs(d));d/=a.playbackRate;var f=1/hS(a.rd);c=Math.max(.9*(d-3),gS(a.rd)+2048*f)/f*.8/(b+c);c=Math.min(c,d);0<a.policy.Qi&&e&&(c=Math.max(c,a.policy.Qi));return u2a(a,c,b)};
u2a=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.sj,a.policy.Fp*c),Math.min(Math.min(a.policy.La,31*c),Math.ceil(b*c))))||a.policy.sj};
w2a=function(a,b,c){c=v2a(a,b.j.info.Ob,c.j.info.Ob,0);var d=gS(a.rd)+c/hS(a.rd);return Math.max(d,d+a.policy.lG-c/b.j.info.Ob)};
gZ=function(a){return hS(a.rd,!a.policy.Ri,a.policy.qp)};
hZ=function(a){return gZ(a)/a.playbackRate};
x2a=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.u(b&&0<d.length?d:e);for(d=b.next();!d.done;d=b.next())d=d.value,e=d.minReadaheadMs||0,c<(d.minBandwidthBytesPerSec||0)||a>e&&(a=e);return Infinity>a?a/1E3:a};
iZ=function(a,b,c,d,e){this.Aa=a;this.manifest=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.G=!1;this.B=this.manifest.isManifestless&&!this.manifest.Xd;this.D=null;this.C=0};
y2a=function(a,b,c){if(!a.policy.G){a=b.j.index;var d=b.B.Pa;a.Cn(d)||c&&c.Pa===d?(b.G=!a.Cn(d),b.ma=!a.Cn(d)):(b.G=!0,b.ma=!0)}};
A2a=function(a,b,c,d,e){if(!b.j.hg()){if(!(d=0===c||!!b.C.length&&b.C[0]instanceof jZ))a:{if(b.C.length&&(d=b.C[0],d instanceof kZ&&d.ih&&d.jh)){d=!0;break a}d=!1}d||a.policy.B||lZ(b);return c}var f=mZ(b,c);if(!isNaN(f))return f;if(a.Aa.SO(1E3*c))return c;e.MI||(b.Lk(),a.Aa.mK(!0));return d&&(a=vL(d.Ze(),c),!isNaN(a))?(nZ(b,a+z2a),c):nZ(b,c)};
D2a=function(a,b,c,d){if(a.policy.G)!d||!a.B&&a.policy.Za||g.If(function(){oZ(a)});
else{if(a.Uf()&&a.j){var e=B2a(a,b,c);if(-1!==e){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.If(function(){a.Aa.va("seekreason",{reason:"behindMinSq",tgt:e});C2a(a,e)});
return}}c?a.videoTrack.ma=!1:a.audioTrack.ma=!1;var f=a.policy.Ix||!a.B;0<=mZ(a.videoTrack,a.j)&&0<=mZ(a.audioTrack,a.j)&&f?((a.videoTrack.G||a.audioTrack.G)&&a.Aa.va("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.If(function(){if(a.B||!a.policy.Za)oZ(a);else{var h=b.startTime,l=b.duration;if(!a.policy.G){var m=c?a.videoTrack.G:a.audioTrack.G,n=-1!==a.videoTrack.K&&-1!==a.audioTrack.K,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.ma&&!a.audioTrack.ma,r=a.policy.Xx&&
mZ(a.videoTrack,h)&&mZ(a.audioTrack,h);m&&n&&q&&(p||r?((c?a.videoTrack:a.audioTrack).G=!1,a.videoTrack.G||a.audioTrack.G||(a.Aa.va("iterativeSeeking",{status:"done",target:h,originalTime:h+a.Aa.Pc(),count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Aa.va("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.Aa.va("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.G=
!1,a.audioTrack.G=!1,pZ(a.Aa,h+.1,{Tv:!0,wd:"chunkSelectorSynchronizeMedia",yq:!0})))}}})}};
B2a=function(a,b,c){if(!a.Uf())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.zi(a.j);return(c.Cn(a.manifest.We)||b.Pa===a.manifest.We)&&d<a.manifest.We?a.manifest.Jd():-1};
C2a=function(a,b){a.B&&-1!==a.videoTrack.K&&-1!==a.audioTrack.K&&(a.B=!1,a.j=b,pZ(a.Aa,b+.1,{Tv:!0,wd:"chunkSelectorSynchronize",yq:!0}))};
oZ=function(a){var b=-1!==a.videoTrack.K,c=-1!==a.audioTrack.K;if(!b||!c)if(b=!b&&qZ(a.videoTrack),c=!c&&qZ(a.audioTrack),b||c){c=b?a.videoTrack:a.audioTrack;b=b?a.audioTrack:a.videoTrack;c.K=qZ(c).info.Pa;if(a.policy.G){var d;b.K=(null==(d=qZ(b))?void 0:d.info.Pa)||b.K}if(-1!==b.K){var e=Math.max(b.j.index.getStartTime(b.K),c.j.index.getStartTime(c.K));zR(a.manifest)&&432E3<Math.abs(e-zR(a.manifest))&&AOa(a.manifest);a.C&&(e=a.C,a.C=0);g.If(function(){a.policy.G||C2a(a,e)});
a.Aa.va("initManifestlessSync",{st:e,ost:e+a.Aa.Pc(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.G&&C2a(a,e)}}};
E2a=function(a){this.j=a;this.W=this.Na=this.N=this.Ga=this.C=this.D=this.K=this.Ea=this.Z=this.La=this.ra=this.Ba=this.ma=0;this.ticks={}};
rZ=function(a){a.ma||(a.ma=(0,g.FD)(),YL("mb_s",a.ma,a.j))};
F2a=function(a){a.Ba||(a.Ba=(0,g.FD)(),YL("ovfs_rp",a.Ba,a.j))};
G2a=function(a){a.ra||(a.ra=(0,g.FD)(),YL("oafs_rp",a.ra,a.j))};
H2a=function(a){a.D||(a.D=(0,g.FD)(),YL("vda",a.D,a.j),a.C&&(g.lD(),nD(4)))};
I2a=function(a){a.C||(a.C=(0,g.FD)(),YL("ada",a.C,a.j),a.D&&(g.lD(),nD(4)))};
J2a=function(a){a.Ga||(a.Ga=(0,g.FD)(),YL("vis_a",a.Ga,a.j))};
K2a=function(a){a.N||(a.N=(0,g.FD)(),YL("ais_a",a.N,a.j))};
L2a=function(a){a.Na||(a.Na=(0,g.FD)(),YL("vrb_f",a.Na,a.j))};
M2a=function(a){a.W||(a.W=(0,g.FD)(),YL("arb_f",a.W,a.j))};
N2a=function(a){return!!a.B&&!!a.G};
O2a=function(a,b,c,d,e,f){g.cG.call(this);var h=this;this.Aa=a;this.manifest=b;this.policy=c;this.W=d;this.Ba=e;this.ma=this.j=null;this.C=this.D=NaN;this.K=0;this.Z=NaN;this.G=null;this.ra=new Map;this.N=NaN;this.Fd={pjb:function(){return h.B}};
this.B=f?1:0};
sZ=function(a,b,c){b.startSecs+=isNaN(a.K)?0:a.K;a=a.manifest;a.ma.push(b);a.oa("cuepointsadded",c)};
Q2a=function(a,b,c){if(0!==a.B&&c&&b.eb[0].dh()){var d=b.eb[0].Pa,e;d!==(null==(e=a.j)?void 0:e.Pa)||1===a.B||bR(b)||"predictStart"===a.j.Tg.event||a.va("sdai",{undecevt:1,sq:d,evt:a.j.Tg.event});d>a.C&&(a.C=NaN,a.D=NaN);if(a.j&&a.j.Pa===d){e=a.j;var f=e.Tg,h=c.Ot(f);d=b.eb[0].Pa;a.va("sdai",{onqevt:f.event,sq:d,gab:h});if(h)"predictStart"!==f.event?e.QD?tZ(a,4,"cue"):(a.C=b.eb[0].Pa,a.D=b.eb[0].C,a.va("sdai",{joinad:a.B,sg:a.C,st:a.D.toFixed(3)}),a.Z=Date.now(),tZ(a,2,"join"),c.kI(e.Tg)):(a.N=b.eb[0].Pa+
Math.max(Math.ceil(-f.j/5E3),1),a.va("sdai",{onpred:b.eb[0].Pa,est:a.N}),a.Z=Date.now(),tZ(a,3,"predict"),c.kI(e.Tg));else if(1===a.B){b=b.eb[0].C;var l;(null==(l=a.G)?0:l.mN(b))?(P2a(a.Aa,b,b,d),tZ(a,4,"sk2had")):tZ(a,5,"nogab")}}else 1===a.B&&tZ(a,5,"noad")}};
R2a=function(a,b,c){return(0>c||c===a.C)&&!isNaN(a.D)?a.D:b};
S2a=function(a,b){if(a.j){var c=a.j.Tg.gi-(b.startTime+a.K-a.j.Tg.startSecs);0>=c||(c=new rQ(a.j.Tg.startSecs-(isNaN(a.K)?0:a.K),c,a.j.Tg.context,a.j.Tg.identifier,"stop",a.j.Tg.j+1E3*b.duration),a.va("cuepointdiscontinuity",{segNum:b.Pa}),sZ(a,c,b.Pa))}};
tZ=function(a,b,c){a.B!==b&&(a.va("sdai",{setsst:b,old:a.B,r:c}),a.B=b)};
uZ=function(a,b,c,d){(void 0===d?0:d)?tZ(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.B&&tZ(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
vZ=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
wZ=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0};
xZ=function(a,b){g.H.call(this);this.policy=a;this.K=b;this.C=new Map;this.D=0;this.G=!1;this.j="";this.B=!1};
yZ=function(a,b,c){if(void 0===c?0:c)a.G=!0;++a.D;c=6E4*Math.pow(2,a.D);c=(0,g.FD)()+c;a.C.set(b.info.id,c)};
zZ=function(a){for(var b=g.u(a.C.entries()),c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;d<(0,g.FD)()&&a.C.delete(c)}return a.C};
T2a=function(a){return a.G&&0<zZ(a).size};
AZ=function(a,b){a.j!==b&&(a.j=b,a.B=!0)};
U2a=function(a,b,c,d,e,f){var h=this;f=void 0===f?[]:f;this.Aa=a;this.Ea=b;this.policy=c;this.manifest=d;this.K=e;this.kb=f;this.logger=new g.LU("dash/abr");this.j=mT;this.C=this.N=null;this.ma=-1;this.Na=!1;this.nextVideo=this.B=null;this.D=[];this.Va=new Set;this.La={};this.bb=new $R(1);this.Z=0;this.Xa=this.Ba=this.ra=!1;this.Ga=0;this.Za=!1;this.W=new Set;this.Qa=!1;this.Fd={d_:function(){BZ(h)}};
this.G=new xZ(this.policy,e)};
Z2a=function(a,b,c){CZ(a,b);V2a(a,c);a.N=a.B;W2a(a);X2a(a);a.C=a.nextVideo;a.N=a.B;return Y2a(a)};
b3a=function(a,b){if($2a(a,b))return null;if("m"===b.reason&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+UP(b)}),CZ(a,b),a.Z=a.D.length-1,BZ(a),DZ(a),a.Ba=a.Ba||a.C!==a.nextVideo,a.C=a.nextVideo,new vZ(a.B,a.C,b.reason);
"r"===b.reason&&(a.ma=-1);CZ(a,b);DZ(a);if("r"===b.reason&&a.nextVideo===a.C)return new vZ(a.B,a.nextVideo,b.reason);a3a(a);return null};
c3a=function(a,b,c){a.B=a.manifest.j[b];a.N=a.B;return new vZ(a.N,a.C,c?"t":"m")};
d3a=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,Y2a(a)}else a.Xa=a.N!==b,a.N=b;return null};
e3a=function(a,b){if(a.policy.yx&&b.j.info.video&&b.hf){var c=(b.Xb+b.B)/b.duration,d=b.j.info.Ob;c&&d&&(a.bb.Gk(1,c/d),a.policy.j&&1.5<c/d&&a.Aa.va("overshoot",{sq:b.Pa,br:c,max:d}))}};
EZ=function(a,b,c){yZ(a.G,b,void 0===c?!1:c);a.ma=-1;CZ(a,a.j)};
FZ=function(a,b){return new vZ(a.N,a.C,b||a.j.reason)};
a3a=function(a){if(a.C&&a.nextVideo&&GZ(a,a.C.info)<GZ(a,a.nextVideo.info)){var b=a.j.reason;a.ra=a.ra||"r"===b||"u"===b||"v"===b}};
Y2a=function(a){a.Na?a.Na=!1:a.ma=(0,g.FD)();a.ra=!1;a.Qa=!1;return new vZ(a.N,a.C,a.j.reason)};
f3a=function(a,b){var c={};b=g.u(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&&iL(f)&&f.video.j>a.policy.lj,l=e<=a.policy.lj?iL(d):hL(d);if(!f||h||l)c[e]=d}return c};
CZ=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.FD)();c=g.bt(c,function(r){if(r.Ob>this.policy.Ob)return!1;var t=this.manifest.j[r.id];return zZ(this.G).get(r.id)>d?!1:4<t.resource.B||4<t.K?(this.logger.debug(function(){return"Remove "+qL(r)+"; 4 load failures"}),!1):!0},a);
T2a(a.G)&&(c=g.bt(c,function(r){return 854>=r.video.width&&480>=r.video.height}))}0<a.W.size&&(c=g.bt(c,function(r){return!a.W.has(+r.itag)}));
c.length||(c=a.K.videoInfos);var e=g.bt(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Db(c,function(r){return r.id===a.G.j});
f?e=[f]:AZ(a.G,"")}f="m"===b.reason||"s"===b.reason;a.policy.zy&&fZ&&g.zD&&(!f||1080>b.j)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)}));
if(0<e.length)if(BL()){var h=f3a(a,e);e=e.filter(function(r){return!!r&&!!r.video&&r.ub===h[r.video.j].ub})}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(r){return!!r&&!!r.video&&r.video.j===n});
var p=f3a(a,b)[n].ub;e=e.filter(function(r){return!!r&&!!r.video&&r.ub===p})}}e.length||(e=[c[0]]);
e.sort(function(r,t){return GZ(a,r)-GZ(a,t)});
c={};for(b=1;b<e.length;c={wM:void 0,eM:void 0},b++)c.eM=e[b-1],c.wM=e[b],c.eM.video.width>c.wM.video.width?(g.Gb(e,b),b--):GZ(a,c.eM)*a.policy.K>GZ(a,c.wM)&&(g.Gb(e,b-1),b--);var q=e[e.length-1];a.Za=!!a.C&&!!a.C.info&&a.C.info.ub!==q.ub;a.logger.debug(function(){return"Constraint: "+UP(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+qL(q)});
a.D=e;a.Va.clear();c=!1;for(b=0;b<e.length;b++)c?a.Va.add(e[b].itag):1080<=e[b].video.j&&(c=!0);QVa(a.policy,q,a.manifest.Ac)};
V2a=function(a,b){if(b)a.B=a.manifest.j[b];else{b=g.Db(a.K.j,function(d){return!!d.Lc&&d.Lc.isDefault});
if(a.policy.jd&&!b&&(b=g.Db(a.K.j,function(d){return d.audio.j}),a.policy.oy&&b)){var c=g.Db(a.K.j,function(d){return!d.audio.j});
a.Aa.va("drcwr",{d:b.itag,dd:b.approxDurationMs,nd:c?c.itag:"",ndd:(null==c?0:c.approxDurationMs)?c.approxDurationMs:""});c&&1E3<Math.abs(c.approxDurationMs-b.approxDurationMs)&&(b=c)}b=b||a.K.j[0];a.B=a.manifest.j[b.id]}BZ(a)};
g3a=function(a,b){for(var c=0;c+1<a.D.length&&"tiny"===a.D[c].video.quality;)c++;var d=hZ(a.Ea)/a.policy.K;return GZ(a,b.info)+GZ(a,a.D[c])>d};
BZ=function(a){if(!a.B||!a.policy.C&&!a.B.info.Lc){var b=a.K.j;a.B&&a.policy.jd&&(b=b.filter(function(d){return d.audio.j===a.B.info.audio.j}),b.length||(b=a.K.j));
a.B=a.manifest.j[b[0].id];if(1<b.length){var c=!1;if(c=a.policy.Rb?!0:a.j.isLocked()?240>a.j.j:g3a(a,a.B))a.B=a.manifest.j[g.zb(b).id]}}};
DZ=function(a){if(!a.nextVideo||!a.policy.C)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.manifest.j[a.D[0].id]:a.manifest.j[g.zb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+qL(a.nextVideo.info)});
else{for(var b=Math.min(a.Z,a.D.length-1),c=hZ(a.Ea),d=GZ(a,a.B.info),e=c/a.policy.W-d;0<b&&!(GZ(a,a.D[b])<=e);b--);for(var f=c/a.policy.K-d;b<a.D.length-1&&!(GZ(a,a.D[b+1])>=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.Z!==b&&a.logger.info(function(){return"Adapt to: "+qL(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+UP(a.j)});
a.Z=b}};
W2a=function(a){var b=a.policy.W,c=hZ(a.Ea),d=c/b-GZ(a,a.B.info);b=g.Eb(a.D,function(e){return GZ(this,e)<d},a);
0>b&&(b=0);a.Z=b;a.nextVideo=a.manifest.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+qL(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
X2a=function(a){if(a.kb.length){var b=a.kb,c=function(d,e){if("f"===d.info.ub||b.includes(nL(d.info,a.manifest.Ac)))return d;for(var f={},h=0;h<e.length;f={BN:void 0,SR:void 0},h++){var l=a.manifest.j[e[h].id];if(b.includes(nL(l.info,a.manifest.Ac))){var m=d.info.ub,n=l.info.ub;if(m===n||BL()){if(d.info.j!==l.info.j)return a.Aa.va("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.BN=d.info.itag;f.SR=l.info.itag;a.Aa.va("ombifa",{f:f.BN,t:f.SR});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.BN+" to "+p.SR+" based on prefetched media."}}(f));
a.Na=!0;return l}a.Aa.va("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Aa.va("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.K.videoInfos);a.B=c(a.B,a.K.j)}};
GZ=function(a,b){if(!a.La[b.id]){var c=a.manifest.j[b.id].index.jW(a.Ga,15);c=b.Wu&&a.C&&a.C.index.isLoaded()?c||b.Wu:c||b.Ob;a.La[b.id]=c}c=a.La[b.id];a.Va.has(b.itag)&&(c*=a.policy.AC);a.policy.yx&&(c*=Math.max(1,a.bb.Wi()||0));return c};
h3a=function(a,b){a=bba(a.manifest.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
i3a=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(cOa(a.manifest)){for(var c=Math.max(0,a.Z-2);c<a.Z&&c<a.D.length;c++)b.push(a.D[c].itag);b.reverse()}return b};
$2a=function(a,b){var c;return a.j.equals(b)&&(!a.G.j||!a.j.isLocked()||(null==(c=a.nextVideo)?void 0:c.info.id)===a.G.j)};
j3a=function(a){a=void 0===a?{}:a;var b=void 0===a.Tj?!1:a.Tj,c=void 0===a.Du?!1:a.Du;return(void 0===a.ej?0:a.ej)?c?3:2:b?-1:1};
k3a=function(a,b,c,d){this.D=a;this.manifest=b;this.policy=c;this.logger=d;this.MA=[];this.Vd=[];this.j=-1;this.dc=null;this.timestampOffset=0;this.bd=null;this.B=b.Ac?0:1};
o3a=function(a,b,c,d,e){if(!e.info.hf){if(0===c.length)c.push(e);else{var f;(a=null==(f=c.pop())?void 0:qR(f,e))?c.push(a):c.push(e)}return d}var h;(d=null==(h=c.pop())?void 0:qR(h,e))||(d=e);a.policy.N&&(-1===d.C||isNaN(d.D))&&a.logger&&a.logger({missingSegInfo:d.info.Id()});e=mL(d.info.j.info,a.manifest.Ac);c=d.info.Pa+a.B;f=a.policy.N&&-1!==d.C?1E3*d.C:1E3*d.info.startTime;h=d.info.clipId;d=a.policy.N?1E3*d.D:1E3*d.info.duration;var l=0;a.policy.D&&a.bd&&(l=NY(a.bd,h));f+=l;e={formatId:e,startTimeMs:f,
durationMs:d,cq:c,qj:c,LA:f,KA:d};c=l3a(b,e.startTimeMs);(d=0<=c?b[c]:null)&&m3a(a,d,e)?e=d:(c+=1,b.splice(c,0,e));d=0;for(f=c+1;f<b.length;f++){h=a;l=b[f];var m=e,n=l.startTimeMs+l.durationMs,p=m.startTimeMs+m.durationMs;p>=n+100?h=!0:p+100<l.startTimeMs?h=!1:n3a(h,l.formatId,m.formatId)?(m.durationMs=n-m.startTimeMs,m.KA=m.durationMs,m.qj=l.qj,h=!0):(l.startTimeMs=p,l.LA=p,l.cq=m.qj+1,h=!1);if(!h)break;d++}d&&b.splice(c+1,d);return c};
l3a=function(a,b){a=g.Rb(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
return 0<=a?a:-a-2};
p3a=function(a){if(a.dc){var b=a.dc.Ze();if(0!==b.length){for(var c=[],d=0,e=0;d<b.length&&e<a.Vd.length;){var f=b.start(d),h=b.end(d),l=a.Vd[e].startTimeMs/1E3,m=(a.Vd[e].startTimeMs+a.Vd[e].durationMs)/1E3;if(l<=h&&m>=f){var n=0;if(a.bd){var p=PY(a.bd,1E3*l);p&&(n=p.qm/1E3)}p=Object.assign({},a.Vd[e]);var q=a.Vd[e].formatId;q=a.manifest.N.get(q.itag+";"+(q.lmt||0)+";"+q.xtags);f=Math.max(l,f);l=q.index.zi(f+.1-n);var r=q.index.getStartTime(l)+n;l+=+(.1<Math.abs(r-f));f=l+a.B;l=1E3*(q.index.getStartTime(l)+
n);p.cq=f;p.startTimeMs=l;p.LA=p.startTimeMs;l=f=void 0;r=(a.policy.N?null==(f=a.C)?void 0:f.D:null==(l=a.C)?void 0:l.info.duration)||11;e===a.j&&h<m&&m-h<=1.01*r&&(h=m);f=Math.min(m,h);l=q.index.zi(f-.1-n);r=a.policy;(r.D||r.Fa.L("html5_sabr_include_tail_media_chunk"))&&q.index.Cn(l+1)&&q.index.PH(l+1)+n<=f&&(l+=1);r=q.index.PH(l)+n;l-=+(.1<Math.abs(r-f));f=l+a.B;n=1E3*(q.index.PH(l)+n);p.qj=f;p.durationMs=n-p.startTimeMs;p.KA=p.durationMs;p.cq<=p.qj&&c.push(p)}m<h?e+=1:d+=1}a.Vd=c}}};
q3a=function(a){var b=[],c=[].concat(g.oa(a.MA));a.Vd.forEach(function(h){b.push(Object.assign({},h))});
for(var d=a.j,e=g.u(a.D.qW()),f=e.next();!f.done;f=e.next())d=o3a(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=1E3*a.timestampOffset,h.LA&&(h.LA+=1E3*a.timestampOffset))});
return{Vd:b,MA:c}};
m3a=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(100<c.startTimeMs-d)return!1;if(n3a(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.KA=b.durationMs,b.qj=Math.max(b.qj,c.qj),!0;if(100>=Math.abs(b.startTimeMs-c.startTimeMs)){if(b.durationMs>c.durationMs+100){a=b.formatId;var f=b.cq,h=b.qj;b.formatId=c.formatId;b.durationMs=c.durationMs;b.cq=c.cq;b.KA=c.durationMs;b.qj=c.qj;c.formatId=a;c.startTimeMs=e;c.LA=e;c.durationMs=d-e;c.KA=c.durationMs;
c.cq=f;c.qj=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.KA=b.durationMs);return!1};
n3a=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.Ac||b.lmt===c.lmt};
r3a=function(a,b,c){if(a.logger&&a.policy.Ll){for(var d=[],e=0;e<b.length;e++){var f=b[e],h=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.cq)+("_en."+f.qj))}a.logger({p:""+c,br:d.join(";")})}};
s3a=function(a){a.Vd=[];a.MA=[];a.j=-1;a.C=void 0};
t3a=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
GQa=function(a,b){var c,d,e;return g.Ha(function(f){if(1==f.j){if(!b)return f.return(b);c=HZ.uu("woe");d=new g.uO(a.B);return g.z(f,d.encrypt(b,a.j),2)}e=f.B;HZ.Js(c,Math.ceil(b.byteLength/16));return f.return(e)})};
NQa=function(a,b){var c,d,e;return g.Ha(function(f){if(1==f.j){if(!b)return f.return(b);c=HZ.uu("wod");d=new g.uO(a.B);return g.z(f,d.decrypt(b,a.j),2)}e=f.B;HZ.Js(c,Math.ceil(b.byteLength/16));return f.return(e)})};
v3a=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Ea=c;this.D=this.B=0;this.Hf=null;this.ma=new Set;this.W=[];this.indexRange=this.initRange=null;this.Z=new KL;this.ra=this.Ba=!1;this.Fd={gjb:function(){return d.C},
Eib:function(){return d.chunkSize},
Cib:function(){return d.N},
Bib:function(){return d.K}};
(b=u3a(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.N=b.ck,this.K=b.civ):(this.chunkSize=a.ly,this.C=0,this.N=g.VE(16),this.K=g.VE(16));this.G=new Uint8Array(this.chunkSize);this.N&&this.K&&(this.crypto=new t3a(this.N,this.K))};
u3a=function(a){if(a.policy.ue&&a.policy.qy)for(var b=g.u(a.policy.ue),c=b.next(),d={};!c.done;d={RM:void 0,eN:void 0},c=b.next())if(c=g.TB(c.value),d.RM=+c.clen,d.eN=+c.csz,0<d.RM&&0<d.eN&&a.policy.C===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.RM,a.csz=d.eN,a.ck=c.ck,a.civ=c.civ,a};
IZ=function(a){return!!a.Hf&&WQ(a.Hf)};
A3a=function(a,b){if(!IZ(a)&&!a.isDisposed()){if(!(a.Ba||(a.Ba=!0,0<a.C))){var c=w3a(a);c=KQa(a.policy.C,a.j.info,JZ(a),c,a.policy.Qa);x3a(a,c)}if(1===b.info.type){if(a.Hf){KZ(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=TQ(0,b.j.getLength())}else if(2===b.info.type)a.Hf&&1===a.Hf.type||KZ(a,Error("Woffle: Index before init")),a.indexRange=TQ(a.initRange.end+1,b.j.getLength());else if(3===b.info.type){if(!a.Hf){KZ(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.Hf.type&&!ZQ(a.Hf,b.info)&&(a.W=[],b.info.Pa!==UMa(a.Hf)||0!==b.info.Xb))return;if(b.info.hf){c=g.u(a.W);for(var d=c.next();!d.done;d=c.next())y3a(a,d.value);a.W=[]}else{a.W.push(b);a.Hf=b.info;return}}else{KZ(a,Error("Woffle: Unexpected slice type"));return}a.Hf=b.info;y3a(a,b);z3a(a)}};
y3a=function(a,b){var c=0,d=CO(b.j);if(a.D<a.C){c=a.C*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.Xb;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.D=a.C;a.B=0}for(;c<d.length;)if(e=Math.min(d.length-c,a.G.byteLength-a.B),f=new Uint8Array(d.buffer,d.byteOffset+c,e),a.G.set(f,a.B),a.B+=e,c+=e,a.B===a.G.length){if(b.info===a.Hf&&IZ(a)&&c===d.length)break;e=w3a(a);e=KQa(a.policy.C,a.j.info,JZ(a),e,a.policy.Qa,a.D,a.G,a.crypto);a.ma.add(e);x3a(a,e);a.isDisposed()||
(e=w3a(a),a.Ea(JZ(a),void 0!==e?(e.downloadedEndTime||0)*e.averageByteRate:e.maxKnownEndTime*e.averageByteRate,e.maxKnownEndTime*e.averageByteRate));a.G=new Uint8Array(a.chunkSize);a.B=0;a.D+=1}};
z3a=function(a){if(IZ(a))if(a.Hf&&a.indexRange)if(a.B){var b=new Uint8Array(a.G.buffer,0,a.B),c=B3a(a),d=a.policy.C;Promise.all(a.ma).then(function(){var e=KQa(d,a.Hf.j.info,JZ(a,!0),c,a.policy.Qa,a.D,b,a.crypto);x3a(a,e,!0)})}else KZ(a,new LZ("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else KZ(a,new LZ("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
w3a=function(a){return{downloadedEndTime:Math.round(a.Hf?a.Hf.D:0),maxKnownEndTime:Math.round(a.j.index.Vs()),averageByteRate:Math.round(a.j.info.Wu)}};
B3a=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.Vs()),averageByteRate:Math.round(a.j.info.Wu)}};
JZ=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.Hf||KZ(a,new LZ("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.C,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.D*a.chunkSize+a.B};a.crypto&&(b.ck=a.N,b.civ=a.K);var c="local://localhost/videoplayback?"+RB(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.Ob,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:QMa(d),indexRange:null==(e=a.indexRange)?void 0:QMa(e),url:c};if(d=a.j.info.j)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};
x3a=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.ma.delete(b);(c||4===d)&&a.Z.resolve(d)},function(d){a.Z.reject(d)})};
KZ=function(a,b){4!==g.bT(a.policy.C)&&(g.cT(a.policy.C,4),g.LF(b),a.Z.reject(new LZ(b.message)))};
LZ=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};
C3a=function(a){a=g.CQ(a,1886614376);for(var b=g.u(a),c=b.next();!c.done;c=b.next());return g.pr(a,function(d){return nMa(d)})};
D3a=function(a){var b=rr(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
E3a=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.B=c;this.D=d;this.C=e;this.Ey=f};
MZ=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.C=[];this.Me=!1;this.B=null;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.Me=!0};
G3a=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{var m=F3a(b.subarray(c+f,c+f+l));if(null!==m){var n=m;break a}}catch(p){}}c+=e}n=null}catch(p){n=null}}if(null!=n)for(b=ri(dj(n,7)),null==b||a.Me||(a.cryptoPeriodIndex=b),b=ri(dj(n,10)),null!=b&&0<b&&!a.Me&&(a.j=b),n=mj(n,2,$i(n.ea)&34?gea:hea,
2),n=g.u(n),b=n.next();!b.done;b=n.next())a.C.push(g.fg(zg(b.value),4))};
H3a=function(a){return isNaN(a.cryptoPeriodIndex)?g.fg(a.initData):""+a.cryptoPeriodIndex};
NZ=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.ZE?void 0:d.ZE;d=void 0===d.vI?!1:d.vI;this.videoId=a;this.status=b;this.videoDuration=c;this.ZE=e;this.vI=d};
I3a=function(a,b,c,d,e){this.videoId=a;this.AN=b;this.B=c;this.bytesDownloaded=d;this.j=e};
OZ=function(a){this.j=a;this.offset=0};
J3a=function(a){if(a.offset>=a.j.getLength())throw Error();return DO(a.j,a.offset++)};
K3a=function(a,b){b=void 0===b?!1:b;var c=J3a(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=J3a(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+J3a(a),d*=128;return b?c:c-d};
L3a=function(a){try{var b=K3a(a,!0),c=K3a(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}};
M3a=function(a){for(var b=new OZ(a),c=-1,d=0,e=0;!d||!e;){var f=L3a(b),h=f.id;f=f.size;if(0>h)return;if(176===h){if(2!==f)return;d=b.fm()}else if(186===h){if(2!==f)return;e=b.fm()}374648427===h?c=b.fm()+f:408125543!==h&&174!==h&&224!==h&&b.skip(f)}b=JGa(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new zO([b]);AO(d,a);return d};
O3a=function(a,b,c){var d=this;this.Aa=a;this.policy=b;this.K=c;this.logger=new g.LU("dash");this.B=[];this.j=null;this.Ba=-1;this.W=0;this.Ga=NaN;this.ma=0;this.C=NaN;this.Z=this.Va=0;this.bb=-1;this.Qa=this.G=this.D=this.Ea=null;this.Na=this.La=NaN;this.N=this.ra=this.Za=this.kb=null;this.rb=!1;this.Xa=this.timestampOffset=0;this.Fd={qW:function(){return d.B}};
if(this.policy.C){var e=this.K,f=this.policy.C;this.policy.Qa&&a.va("atv",{ap:this.policy.Qa});this.N=new v3a(this.policy,e,function(h,l,m){PZ(a,new NZ(d.policy.C,2,{ZE:new I3a(f,h,e.info,l,m)}))});
this.N.Z.promise.then(function(h){d.N=null;1===h?PZ(a,new NZ(d.policy.C,h)):d.Aa.va("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof LZ&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.Aa.va("offlinenwerr",{em:l}),N3a(d),PZ(a,new NZ(d.policy.C,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Aa.va("dldbwerr",{em:l}),N3a(d),PZ(a,new NZ(d.policy.C,4,{vI:!0})))})}};
P3a=function(a){return a.B.length?a.B[0]:null};
W3a=function(a,b,c,d){d=void 0===d?0:d;if(a.G){var e=a.G.Xb+a.G.B;if(0<c.info.Xb)if(c.info.Pa===a.G.Pa&&c.info.Xb<e){if(c.info.Xb+c.info.B<=e)return;c=DNa(c,e-c.info.Xb)[1]}else if(0<=c.info.Pa&&0<=a.G.Pa&&!ZQ(a.G,c.info))throw new g.eD("improper_continuation",a.G.Id(),c.info.Id());e=a.G;var f=c.info;(e.Pa!==f.Pa&&f.Pa!==e.Pa+1||e.type!==f.type?0:ZQ(e,f)||(1E-6>=Math.abs(e.C-f.C)&&e.Pa===f.Pa?0:TMa(e,f)))||Q3a(a,"d")}else if(0<c.info.Xb)throw new g.eD("continuation_of_null",c.info.Id());a.G=c.info;
a.K=c.info.j;if(0===c.info.Xb){if(a.j)if(!a.Aa.isOffline()||a.policy.pj)a.Aa.va("slice_not_fully_processed",{buffered:a.j.info.Id(),push:c.info.Id()});else throw new g.eD("slice_not_fully_processed",a.j.info.Id(),c.info.Id());QZ(a);a.Va=d}else{if(a.Va&&d&&a.Va!==d)throw a=new g.eD("lmt_mismatch",c.info.Pa,a.Va,d),a.level="WARNING",a;!c.info.j.Jn()&&a.D&&(d=c.info,e=a.D.j,d.G="updateWithEmsg",d.Pa=e)}if(a.j){d=qR(a.j,c);if(!d)throw new g.eD("failed_to_merge",a.j.info.Id(),c.info.Id());a.j=d}else a.j=
c;a:{c=g.kL(a.j.info.j.info);if(3!==a.j.info.type){if(!a.j.info.hf)break a;7===a.j.info.type?R3a(a,b,a.j):S3a(a,a.j);a.j=null}for(;a.j;){d=a.j.j.getLength();if(0>=a.Ba&&0===a.W){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.getLength();){var m=KGa(h,l),n=KGa(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 OZ(h);for(m=l=!1;;){n=h.fm();var p=L3a(h),q=p.id;p=p.size;if(!(0<q))break;if(408125543!==q)if(524531317===q)l=!0,0<=p&&(e=h.fm()+p,m=!0);else{if(l&&(160===
q||163===q)&&(0>f&&(f=n),m))break;163===q&&(f=Math.max(0,f),e=h.fm()+p);if(160===q){0>f&&(e=f=h.fm()+p);break}h.skip(p)}}0>f&&(e=-1)}if(0>f)break;a.Ba=f;a.W=e-f}if(a.Ba>d)break;a.Ba?(d=T3a(a,a.Ba),d.G&&U3a(a,d),R3a(a,b,d),V3a(a,d),a.Ba=0):a.W&&(d=T3a(a,0>a.W?Infinity:a.W),a.W-=d.j.getLength(),V3a(a,d))}}a.j&&a.j.info.hf&&(V3a(a,a.j),a.j=null)};
S3a=function(a,b){!b.info.j.Jn()&&0===b.info.Xb&&(g.kL(b.info.j.info)||b.info.j.info.Me())&&KNa(b);if(1===b.info.type)try{U3a(a,b),X3a(a,b)}catch(e){g.KF(e);var c=$Q(b.info);c.hms="1";a.Aa.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.oO(b);a.N&&A3a(a.N,b);if(c.hg()&&a.policy.B)a:{a=a.Aa.manifest;b=b.info.clipId;c=mL(c.info,a.Ac);if(b){var d=dOa(a,c);if(a.Ga[d])break a;a.Ga[d]=b}a.Ea.push(c)}};
N3a=function(a){var b;null==(b=a.N)||b.dispose();a.N=null};
Y3a=function(a){var b=a.B.reduce(function(c,d){return c+d.j.getLength()},0);
a.j&&(b+=a.j.j.getLength());return b};
Z3a=function(a){if(a.ra&&!a.policy.Qo){var b=a.Aa;b.manifest.isManifestless&&BR(b.manifest,a.ra.Pa,!!a.K.info.video)}a.ra=null;a.D=null;a.G=a.kb;a.C=a.G?a.C-a.ma:NaN;QZ(a)};
T3a=function(a,b){var c=a.j;b=Math.min(b,c.j.getLength());if(b===c.j.getLength())return a.j=null,c;c=DNa(c,b);a.j=c[1];return c[0]};
U3a=function(a,b){b.j.getLength();var c=pR(b);if(sBa(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new DQ(c);FQ(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;hL(d)&&!sBa(d)&&(d=pR(b),(new DQ(d)).In(),JQ([408125543,374648427,174,224],21936,d));b.info.j.info.dh()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.kL(d.info)?d.B=yMa(c):d.info.Me()&&(d.B=IMa(c))));
b.info.j.info.Me()&&b.info.dh()&&(c=pR(b),(new DQ(c)).In(),JQ([408125543,374648427,174,224],30320,c)&&JQ([408125543,374648427,174,224],21432,c));if(a.policy.rC&&b.info.j.info.Me()){c=pR(b);var e=new DQ(c);if(FQ(e,[408125543,374648427,174,29637])){d=IQ(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.Ai()&&g.kL(b.info.j.info)){d=pR(b);c=g.vQ(d,0,1701606260);f=g.vQ(d,0,1836476516);if(c&&f){c.skip(2);var h=mQ(c),l=oQ(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(pQ(c)),
e.push(pQ(c)),m.push(mQ(c)),n.push(mQ(c));else for(h=0;h<l;++h)d.push(nQ(c)),e.push(nQ(c)),m.push(mQ(c)),n.push(mQ(c));c=g.wQ(f);c=new vMa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.kL(b.info.j.info))for(d=pR(b),e=g.vQ(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.vQ(d,e.offset+e.size,1701082227);a.rb=!0;b.info.j.D=c}}b.info.j.Jn()||b.info.j.j||b.info.j.indexRange||MNa(b)};
R3a=function(a,b,c){if(c.info.j.Jn()){if(a.rb&&$3a(c)&&(b=pR(c),b=g.vQ(b,0,1953658222))){b.skip(1);var d=lQ(b)<<16|mQ(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=oQ(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=oQ(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.Ea&&!!a.Ea.K.D)if(b=c.info.dh())b=INa(c),h=a.Ea,RZ?(l=1/b,b=SZ(a,b)>=SZ(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&$3a(c)&&(b=a.Ea,RZ?(l=INa(c),h=1/l,l=SZ(a,l),b=SZ(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,xMa(pR(c),b))}else{h=!1;a.D||(KNa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.j,f.G="updateWithEmsg",f.Pa=d,f=c.B,f.D&&(a.K.index.B=!f.D),f=c.info.j.info,d=pR(c),g.kL(f)?DMa(d,1701671783):f.Me()&&JQ([408125543],307544935,d)));a:if((f=rR(c,a.policy.kb))&&JNa(c))l=a4a(a,c),a.Z+=l,f-=l,a.ma+=f,a.C=a.policy.vj?a.C+f:NaN;else{if(a.policy.lr){if(d=m=a.Aa.yq(ENa(c),1),0<=a.C&&7!==c.info.type){if(a.policy.vj&&isNaN(a.La)){g.LF(new g.eD("Missing duration while processing previous chunk",
c.info.Id()));a.Aa.isOffline()&&!a.policy.pj||b4a(a,c,d);Q3a(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Pa,r=a.Qa?a.Qa.Pa:-1,t=a.Na,v=a.La,x=a.policy.Pm&&n>a.policy.Pm,B=10<Math.abs(p),F=1E-7>Math.abs(a.C-d);if(1E-4<Math.abs(p)){a.Xa+=1;var G=null==(e=a.D)?void 0:sMa(e);e={audio:""+ +a.Ai(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:v,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+ +(x||B)};if(null==G?0:G.length)e.adCpn=G[0];a.Aa.handleError("qoe.avsync",
e);a.bb=q}x||B||F||(d=a.C);e=a4a(a,c,m);f-=e;a.Z=n+e;a.policy.j&&(p&&!F||e)&&(n=null==(l=a.D)?void 0:sMa(l),a.Aa.va("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Pa,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(1E3*p).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.C)?c.info.startTime:a.C;b4a(a,c,d)&&(a.ma+=f,a.C=d+f,a.policy.Om&&a.Xa>=a.policy.Om&&(a.Xa=0,a.Aa.po({resetForRewrites:"count"})),
a.policy.Qm&&a.Z>a.policy.Qm&&a.Aa.po({resetForRewrites:"threshold"}))}a.Qa=c.info;a.La=HNa(c);a.policy.N?a.Na=ENa(c):0<=c.C&&(a.Na=c.C);if(h&&a.D){h=c4a(a,!0);cNa(c.info,h);a.j&&cNa(a.j.info,h);b=g.u(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.G&&l.Pa!==(null==(e=a.D)?void 0:e.j)||cNa(l,h);(c.info.hf||a.j&&a.j.info.hf)&&7!==c.info.type||(a.ra=h,b=a.Aa,b.manifest.isManifestless&&d4a(b,h,null,!!a.K.info.video),a.policy.Bd||e4a(a))}}X3a(a,c);a.timestampOffset&&GNa(c,a.timestampOffset);
a.policy.N&&(isNaN(a.La)||(c.D=a.La),isNaN(a.Na)||(c.C=a.Na))};
V3a=function(a,b){if(b.info.hf){a.kb=b.info;if(a.D){var c=a.D,d=c4a(a,!1),e=null;if(a.D.QD()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=sMa(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.u(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.u(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.u(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 E3a(e,f,h,l,g.tMa(c),g.uMa(c))}a.Aa.gQ(a.K,d,e);a.ra||a.policy.Bd||e4a(a);a.ra=null}QZ(a)}a.N&&A3a(a.N,b);if(c=a.Vn())if(c=qR(c,b,a.policy.Cm)){a.B.pop();a.B.push(c);return}a.B.push(b)};
QZ=function(a){a.j=null;a.Ba=-1;a.W=0;a.D=null;a.Ga=NaN;a.ma=0;a.ra=null};
Q3a=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.Qa?a.Qa.Pa:-1};a.C=NaN;a.Z=0;a.bb=-1;a.Qa=null;a.Na=NaN;a.La=NaN;a.Za=null;a.Aa.va("mdstm",b)};
X3a=function(a,b){if(a.K.info.ge){if(b.info.j.info.Me()){var c=new DQ(pR(b));if(FQ(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=IQ(c,!0);c=16!==d?null:HMa(c,d)}else c=null;d="webm"}else b.info.N=C3a(pR(b)),c=D3a(b.info.N),d="cenc";c&&c.length&&(c=new MZ(c,d),a.policy.PB&&g.kL(b.info.j.info)&&(d=FMa(pR(b)))&&(c.B=d),c.Me=b.info.j.info.Me(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.C&&(c.j=b.B.C),a.Aa.Gw(c))}};
e4a=function(a){var b=a.D,c=qMa(b);c&&(c.startSecs+=a.Ga,a.Aa.fQ(a.K,c,b.j,b.QD()))};
c4a=function(a,b){var c,d=a.D;if(c=qMa(d))c.startSecs+=a.Ga;return new jQ(d.j,a.Ga,b?d.Jj:a.ma,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
b4a=function(a,b,c){if(!FNa(b,c))return b=$Q(b.info),b.smst="1",a.Aa.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ga)&&(a.Ga=c);return!0};
a4a=function(a,b,c){var d=0;if(b.info.j.info.Me()&&!JNa(b))return 0;if(a.Ea&&!a.Ai()){var e=0;c&&g.kL(b.info.j.info)?e=c-a.C:b.info.j.info.Me()&&(e=a.Z);var f=b.info.Pa;c=rR(b,a.policy.kb);var h=a.Ea;var l=h.bb;h=h.Z;var m=.02<Math.abs(h-e);if((f===l||f>l&&f>a.bb)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.kL(b.info.j.info))xMa(pR(b),d);else if(b.info.j.info.Me()&&(f=e-h,!g.kL(b.info.j.info)&&(b.info.j.info.Me(),d=new DQ(pR(b)),l=b.G?d:new DQ(new DataView(b.info.j.j.buffer)),rR(b,!0)))){var n=
1E3*f,p=OQ(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||PQ(d))if(HQ(d,160))if(IQ(d,!0),HQ(d,155)){if(f=d.pos,m=IQ(d,!0),d.pos=f,n=1E9*n/p,p=KQ(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=rR(b,a.policy.kb);d=c-d}d&&b.info.j.info.Me()&&a.Aa.va("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
$3a=function(a){return a.info.j.Jn()&&a.info.Pa===a.info.j.index.zd()};
SZ=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()};
f4a=function(a,b){0>b||(a.B.forEach(function(c){GNa(c,b)}),a.timestampOffset=b)};
UZ=function(a,b){var c=this;this.Gb=a;this.requestNumber=++g4a;this.j=this.now();this.N=this.Rb=NaN;this.Z=this.j;this.B=this.Ub=this.G=0;this.D=this.j;this.Qa=this.Ga=this.Va=this.Oc=this.Ic=this.ra=this.Ba=this.C=0;this.K=void 0;this.Xa=0;this.Ea=this.isActive=!1;this.Jb=this.kb=0;this.Fd={Djb:function(){return c.kp}};
this.rd=b.rd;this.snapshot=mPa(this.rd);this.policy=this.rd.Ea;this.Wq=!!b.Wq;this.Xw=b.Xw;b.qN&&(TZ||(TZ=MGa("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.")),this.K=new Uint8Array(2048));var d;this.kp=null!=(d=b.kp)?d:!1;iPa(this.rd)};
h4a=function(a){a.Va=Math.max(a.Va,a.G-a.Ic);a.Ga=Math.max(a.Ga,a.Z-a.Oc);a.ra=0};
VZ=function(a,b,c){if(a.K){if(a.Xa+20>a.K.length){var d=new Uint8Array(2*a.K.length);d.set(a.K);a.K=d}i4a(a,Math.ceil(b)-Math.ceil(a.Z));i4a(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.G/1024)))}if(a.policy.j){d=b-a.Z;var e=c-a.G;a.Ub=e;a.Qa=Math.max(a.Qa,e/(d+.01)*1E3)}a.Z=b;a.G=c;a.ra&&c>a.ra&&h4a(a)};
i4a=function(a,b){for(;31<b;)a.K[a.Xa++]=TZ[(b&31)+32],b>>=5;a.K[a.Xa++]=TZ[b]};
j4a=function(a){return a.K?g.IO(a.K.subarray(0,a.Xa)):""};
k4a=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
WZ=function(a){a.isActive&&(a.isActive=!1)};
XZ=function(a,b){UZ.call(this,a,b);this.rb=this.Bb=!1;this.ma=this.W=Infinity;this.La=NaN;this.tb=!1;this.Za=NaN;this.ac=0;this.hD=b.hD||1;this.wQ=b.wQ||this.hD;this.Xk=b.Xk;this.Pa=b.Pa;this.Xg=b.Xg;l4a(this);this.WQ(this.j);this.Na=(this.Za-this.j)/1E3};
YZ=function(a,b,c){a.Wq||(b=Math.max(b,a.policy.C),cS(a.rd,b,c,b))};
m4a=function(a,b){return b?a.II()?!0:2048<=b:!1};
n4a=function(a){return(a.D-a.j)/1E3};
l4a=function(a){a.La=a.j+1E3*a.snapshot.delay;a.tb=!1};
q4a=function(a,b){if(a.Xk&&void 0!==a.Pa&&void 0!==a.Xg){var c=Math,d=c.min,e=a.W;var f=a.Xk;var h=a.j;if(o4a(f,a.Pa))f=b;else{var l=0;f.ej&&(l=.2);f=h+1E3*(f.Kj+l)}a.W=d.call(c,e,f);c=Math;d=c.min;e=a.ma;f=a.Xk;h=a.j;l=p4a(f,a.Pa,a.Xg);2!==l&&(b=l?b:h+1E3*f.Kj,f.ej&&(b+=1E3*f.Kj));a.ma=d.call(c,e,b);a.W<=a.j?l4a(a):(a.La=a.W,a.tb=!0)}};
r4a=function(a){a.Xk&&q4a(a,a.now());return a.tb};
s4a=function(a,b){if(b+1<=a.totalLength){var c=DO(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=DO(a,b++);else if(2===c)c=DO(a,b++),a=DO(a,b++),a=(c&63)+64*a;else if(3===c){c=DO(a,b++);var d=DO(a,b++);a=DO(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=DO(a,b++);d=DO(a,b++);var e=DO(a,b++);a=DO(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),GGa(a,c,4)?a=HGa(a).getUint32(c-a.C,!0):(d=DO(a,c+2)+256*DO(a,c+3),a=DO(a,c)+256*(DO(a,c+
1)+256*d)),b+=5;return[a,b]};
ZZ=function(a){this.Gb=a;this.j=new zO};
$Z=function(a,b){this.info=a;this.callback=b;this.state=1;this.OA=this.uO=!1;this.wg=null};
t4a=function(a){return g.qr(a.info.eb,function(b){return 3===b.type})};
u4a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Gb=c;this.status=0;this.j=new zO;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.u(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.EA()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.j.append(f);e.B+=f.length;f=(0,g.FD)();f-e.D>e.policy.j&&(e.Gb.St(f,e.B),e.D=f)},function(){},d.body||null)};
v4a=function(a,b){var c=this;this.j=a;this.Gb=b;this.loaded=this.status=0;this.error="";a=SQ(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new zO;this.jB().then(function(){c.Gb.xr()},function(d){c.error=""+d||"unknown_err";
c.Gb.xr()})};
x4a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Gb=c;this.W=d;this.status=0;this.response=void 0;this.Z=this.B=0;this.K=this.N=!1;this.errorMessage="";this.ra=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.C=f.body.getReader(),e.isDisposed()?e.C.cancel().catch(function(){}):(e.G=f.headers,e.Gb.Kw(),w4a(e));
else e.onDone();else e.onError(Error("null_response"))};
this.ma=function(f){var h=(0,g.FD)();e.isDisposed()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),w4a(e),f=(0,g.FD)(),f-e.Z>e.policy.j&&(e.Z=f,e.Gb.St(h,e.B))))};
this.onError=function(f){e.errorMessage=String(f);e.N=!0;e.onDone()};
this.j=new zO;this.D=window.AbortController?new AbortController:void 0;this.start(a)};
w4a=function(a){a.C.read().then(a.ma,a.onError).then(void 0,Epa)};
y4a=function(a,b,c){var d=this;c=void 0===c?{}:c;this.Gb=b;this.B=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.u(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.EA(f)};
a=iP(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",iP(function(f){d.If(f)}),!1)};
z4a=function(a,b,c,d,e){if(gQ(a.base))return new v4a(a,c);a=a.df();return d?ILa()?new u4a(a,b,c,e):new x4a(a,b,c,e):new y4a(a,c,e)};
a_=function(a,b,c,d,e,f,h,l,m){m=void 0===m?!1:m;g.H.call(this);this.Gb=a;this.policy=b;this.me=c;this.resource=d;this.timing=e;this.logger=f;this.D=h;this.Lw=l;this.G=m;this.lastError=null;this.j=0;this.C=!1;this.B=new g.Eu(this.Oaa,this.policy.rj,this)};
A4a=function(a){a.Gb.xt()||(a.resource.Z=(0,g.FD)(),a=b_(a),a.C=(0,g.FD)(),a.started+=1)};
B4a=function(a,b,c){a.timing.GP((0,g.FD)(),b,c);if(!a.Gb.xt()&&(b=a.resource,b.B=0,b.G=0,b.K=0,kNa(b_(a)),null!=(b=a.Lw)&&(a=a.me.base,!((0,g.FD)()<b.K+3E5||gQ(a))&&(c=fQ(a))&&i0a(c)&&b.B===iY(c)))){var d;dMa(a)&&(d=fQ(hQ(a)));g.XC("yt-player-bandaid-host",{primary:c,secondary:d},864E3);b.K=(0,g.FD)();e0a(b,{primary:c,secondary:d})}};
c_=function(a){if("net.timeout"===a.lastError)a.timing.sY((0,g.FD)());else{var b=a.timing;VZ(b,(0,g.FD)(),b.G)}if(!a.Gb.xt())if("net.nocontent"===a.lastError)++a.resource.K;else{if((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!gQ(a.me.base)){var c=b_(a);c.timedOut+=1}else c=b_(a),c.j+=1;if(a.policy.Xa?!a.timing.Ea:!a.timing.G){c=a.resource;var d=a.me,e=a.policy,f=a.D;++c.B;b&&++c.G;fQ(d.base).startsWith("redirector.")&&(c.j=c.C.clone(),delete c.D,e.XB&&
delete f[fQ(c.j)])}}a.Gb.Dc(5)};
d_=function(a,b,c,d){return 400<=b?(a.lastError="net.badstatus",!0):c||void 0!==d&&d?!1:(a.lastError=204===b?"net.nocontent":"net.connect",!0)};
b_=function(a){return eR(a.D,fQ(a.me.base))};
C4a=function(a){var b=a.timing.gs();b.shost=fQ(a.me.base);return b};
kZ=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.VE?[]:h.VE;var l=void 0===h.SF?!1:h.SF,m=void 0===h.Yu?0:h.Yu,n=void 0===h.poToken?"":h.poToken,p=void 0===h.Lw?void 0:h.Lw,q=void 0===h.gF?"":h.gF,r=void 0===h.ih?0:h.ih,t=void 0===h.jh?new Uint8Array(0):h.jh;h=void 0===h.IK?!1:h.IK;$Z.call(this,b,e);var v=this;this.policy=a;this.logger=new g.LU("dash/request");this.Sy=this.Eg=0;this.h_=!1;this.Rq=this.Gp=null;this.XW=!1;this.jh=this.ih=null;this.TK=this.b0=!1;this.VG=null;this.wp=0;this.Fd=
{Dc:function(B){v.Dc(B)},
mjb:function(){return v.wg},
Ekb:function(B){v.wg=B},
Dkb:function(B){v.Eg=B},
Ckb:function(B){v.Ed.lastError=B},
jO:function(){return v.xhr}};
this.timing=new XZ(this,c);this.SF=l;this.ih=r;this.jh=t;this.me=g.fNa(this.info,this.policy,d);this.me.set("rn",this.Kq().toString());this.me.set("rbuf",(1E3*m).toFixed().toString());this.SF&&this.me.set("smb","1");this.policy.Gx&&n&&this.me.set("pot",n);q&&this.me.set("bbs",q);this.policy.useUmp&&!gQ(this.me.base)&&(this.Bk=new ZZ(this),this.me.set("ump","1"),this.me.set("srfvp","1"));if(b=this.policy.Du?this.policy.pC&&!isNaN(this.info.Xg)&&this.info.Xg>this.policy.tA?!1:!0:!1)c=null,this.policy.Bz&&
this.policy.Tj?c=[1]:h&&(c=[]),null!=c&&(this.policy.WB&&c.push(2),this.me.set("defsel",c.join(",")));this.Ed=new a_(this,this.policy,this.me,this.info.resource,this.timing,this.logger,d,p);this.VE=f||null;this.OA=D4a(this);A4a(this.Ed);d=void 0;if(this.policy.Hu||this.Bk||this.policy.Ea){d={method:"POST"};f=(0,g.e_)([120,0]);if(this.Bk||this.policy.Hu)d.body=this.policy.xj&&this.jh?g.cP({videoPlaybackUstreamerConfig:this.jh},g.IV):f;this.policy.Ea&&((p=this.info.Ys())?(this.policy.xj&&this.jh&&(p.videoPlaybackUstreamerConfig=
this.jh),d.body=g.cP(p,g.IV)):d.body=f)}if(this.ih&&this.jh){this.me.set("iwts","1");d={method:"POST"};f={eba:1E3*this.ih};var x;p=null==(x=this.info.Ys())?void 0:x.mB;x=g.cP({zs:f,mB:p||void 0,videoPlaybackUstreamerConfig:this.jh},g.IV);d.body=x}if(this.xt()||a.zx&&5===this.info.eb[0].type)d=void 0;try{this.xhr=z4a(this.me,this.policy.Z,this.timing,b,d),this.Ed.B.start(),this.policy.VB&&k4a(this.timing,this.df()),this.logger.debug(function(){return"Sent, itag="+v.me.get("itag")+" seg="+v.info.eb[0].Pa+
" range="+v.me.get("range")+" time="+Math.round(v.info.eb[0].C)+"-"+Math.round(g.zb(v.info.eb).D)+" rtp="+(v.timing.eI()-Date.now()).toFixed(0)}),g.If(function(){})}catch(B){E4a(this,B,!0)}};
D4a=function(a){if(!(cR(a.info)&&a.info.kp()&&a.policy.Od&&a.VE)||2<=a.info.resource.B||0<LP()||!FLa())return!1;var b=a.me.get("aitags");if(!b)return!1;b=se(b).split(",");for(var c=[],d=g.u(a.VE),e=d.next();!e.done;e=d.next())e=e.value,g.Fb(b,e)&&c.push(e);if(!c.length)return!1;a.me.set("altitags",g.pe(c.join(",")));return!0};
E4a=function(a,b,c){c=void 0===c?!1:c;g.KF(b);a.Ed.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.If(function(){c_(a.Ed)}):c_(a.Ed)};
F4a=function(a){if(a.policy.ey)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.tD();c=!c||c<=a.policy.Mo;return(!a.xhr.AB()||!b||-1!==b.indexOf("text/plain"))&&c};
G4a=function(a,b){var c=GO(b);return fK(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""};
H4a=function(a,b){a.policy.Xa&&(a.timing.Ea=!0);if(a.policy.Jb){var c;null==(c=a.uE)||c.stop()}kY(a.wg,b,!1)};
I4a=function(a,b){a.info=b;if(a.wg){var c=a.wg;b=b.eb;(b.length!==c.eb.length||b.length<c.Kf.length)&&RTa("dash/request",260511119,""+b.length,""+c.eb.length,""+c.Kf.length);c.eb=b;for(var d=b[0].range,e=new zO,f=0;f<c.Kf.length;f++)AO(e,c.Kf[f].j);for(f=0;f<c.Kf.length;f++){c.Kf[f].info=b[f];var h=b[f].range;c.Kf[f].j=BO(e,h.start-d.start,h.length)}}a.OA=!1};
J4a=function(a){a.policy.Xa&&a.wp&&(a.xhr.status=a.wp,a.Eg=a.wp)};
jZ=function(a,b,c,d,e){$Z.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.pg=d;this.lastError=null;this.j=new g.Eu(function(){f.isComplete()||(f.lastError="net.timeout",f.Dc(5))},this.policy.OB);
this.If=function(){f.isDisposed()||(f.pg.qd.has(f.formatId)?(f.isComplete()||f.j.start(),nY(f.pg,f.formatId)&&f.sA(2),f.pg.Pg(f.formatId)&&(s0a(f.pg,f.formatId)?f.Dc(4):(f.lastError="net.closed",f.Dc(5)))):(f.lastError="player.exception",f.Dc(5)))};
this.j.start();m0a(this.pg,this.formatId,this.If);g.If(this.If)};
K4a=function(a,b,c,d){var e=this;this.Aa=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.LU("dash");this.C=[];this.ra=[];this.B=this.dc=null;this.Ea=!1;this.Ga=this.La=0;this.K=-1;this.ma=!1;this.Ba=-1;this.W=NaN;this.Fd={WN:function(){return e.D},
fjb:function(){return e.C}};
this.D=new O3a(a,b,c);this.policy.B&&(this.Z=new k3a(this.D,this.Aa.lW(),this.policy,function(f){e.Aa.va("buftl",f)}));
this.Ob=c.info.Ob;this.N=c.aE();this.isManifestless=c.aE();this.G=this.N};
f_=function(a,b){b&&RZ&&f4a(a.D,b.gO());var c;null==(c=a.Z)||s3a(c);a.dc=b;null!=(b=a.Z)&&(b.dc=a.dc)};
g_=function(a){return a.dc&&a.dc.VH()};
L4a=function(a){for(var b={},c=0;c<a.ra.length;c++)b["r"+c]=a.ra[c];return b};
M4a=function(a,b){isNaN(a.W)||a.Aa.va("aswr",{sq:b.info.eb[0].Pa,id:b.info.eb[0].j.info.itag,xtag:b.info.eb[0].j.info.j,ep:Date.now()-a.W});a.C.push(b);a.B=g.zb(b.info.eb);a.ra.push(b.Id());4<a.ra.length&&a.ra.shift()};
N4a=function(a,b){if(b.il()){var c=b.zk();c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.j&&b instanceof jZ&&a.Aa.va("omblss",{s:d.info.Id()}),h_(a,b.info.eb,d,b.eO())}};
h_=function(a,b,c,d){d=void 0===d?0:d;isNaN(a.W)||(a.Aa.va("aswm",{sq:b[0].Pa,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-a.W}),a.W=NaN);switch(c.info.type){case 1:case 2:O4a(a,c);break;case 4:var e=c.info.j,f=e.AT(c),h;(null==(h=a.B)?0:4===h.type)&&aNa(c.info,a.B)&&(a.B=e.fB(a.B).pop());c=g.u(f);for(e=c.next();!e.done;e=c.next())h_(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Ea||(e.Ea=(0,g.FD)(),YL("fvb_r",e.Ea,e.j))):(e=a.timing,e.K||(e.K=(0,g.FD)(),YL("fab_r",e.K,e.j)));
W3a(a.D,b,c,d);a.policy.B&&P4a(a);break;case 7:W3a(a.D,b,c,d),a.B=c.info}};
O4a=function(a,b){if(1===b.info.type)if(b.info.j.info.video){var c=a.timing;c.La||(c.La=(0,g.FD)(),YL("vis_r",c.La,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.FD)(),YL("ais_r",c.Z,c.j));S3a(a.D,b);a=a.Aa;a.videoTrack.j.hg()&&a.audioTrack.j.hg()&&a.policy.B&&!a.manifest.Ac&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),1<Math.abs(b-c)&&a.va("trBug",{af:""+mL(a.audioTrack.j.info,!1),vf:""+mL(a.videoTrack.j.info,!1),a:""+b,v:""+c}))};
qZ=function(a){return P3a(a.D)};
P4a=function(a){a.C.length?a.B=g.zb(g.zb(a.C).info.eb):a.D.B.length?a.B=a.D.Vn().info:a.B=g_(a)};
Q4a=function(a){var b={Vd:[],Un:[]},c;if(null==(a=a.Z))a=void 0;else{r3a(a,a.Vd,"og");p3a(a);r3a(a,a.Vd,"trim");var d=q3a(a),e=d.Vd;d=d.MA;for(var f=[],h=0;h<d.length;h++){var l=d[h];f.push({formatId:mL(l.info.j.info,a.manifest.Ac),Gj:l.info.Gj,sequenceNumber:l.info.Pa+a.B,JH:{Xh:1E3*((a.policy.N&&-1!==l.C?l.C:l.info.startTime)+a.timestampOffset),xH:1E3*(a.policy.N?l.D||l.info.duration:l.info.duration),Au:1E3},JX:l.info.B})}a={Vd:e,Un:f}}return null!=(c=a)?c:b};
mZ=function(a,b,c){c=void 0===c?!1:c;if(a.dc){var d=a.dc.Ze(),e=vL(d,b),f=NaN,h=g_(a);h&&(f=vL(d,h.j.index.getStartTime(h.Pa)));if(e===f&&a.B&&a.B.B&&R4a(S4a(a),0))return b}a=T4a(a,b,c);return 0<=a?a:NaN};
nZ=function(a,b){a.j.hg();var c=T4a(a,b);if(0<=c)return c;if(null!=(c=a.Z)){var d=b;c.MA=[];p3a(c);c.j=l3a(c.Vd,1E3*d)}c=Math;d=c.min;var e=a.D;if(e.N)if(e=e.N,e.Hf&&3===e.Hf.type)e=e.Hf.startTime;else if(0<e.C){var f=e.j.index;f=g.Rb(f.offsets.subarray(0,f.count),e.C*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);if(a.policy.D){var h,l;c=null==(h=a.Aa.uj())?void 0:null==(l=PY(h,b))?void 0:l.clipId;a.B=a.j.Jq(b,void 0,c).eb[0]}else a.B=a.j.Jq(b).eb[0];
i_(a)&&a.dc&&a.dc.abort();a.Ga=0;return a.B.startTime};
U4a=function(a){a.N=!0;a.G=!0;a.K=-1;nZ(a,Infinity)};
j_=function(a){for(var b=0,c=g.u(a.C),d=c.next();!d.done;d=c.next())b+=hNa(d.value.info);return b+=Y3a(a.D)};
l_=function(a,b){b=void 0===b?!1:b;var c=a.Aa.getCurrentTime(),d=a.D.Vn(),e=(null==d?void 0:d.info.D)||0;if(a.policy.D&&d&&d.info.clipId){var f,h=((null==(f=a.Aa.uj())?void 0:NY(f,d.info.clipId))||0)/1E3;e+=h}if(!a.dc)return a.policy.B&&b&&!isNaN(c)&&d?e-c:0;if((f=g_(a))&&k_(a,f))return f.D;f=a.dc.Ze(!0);return b&&d?(b=0,a.policy.B&&(b=xL(f,e+.02)),b+e-c):xL(f,c)};
V4a=function(a,b){if(a.C.length){if(a.C[0].info.eb[0].startTime<=b)return;lZ(a)}for(var c=a.D,d=c.B.length-1;0<=d;d--)c.B[d].info.startTime>b&&c.B.pop();P4a(a);a.B&&b<a.B.startTime&&(a.Ga=0,a.j.hg()?a.B=a.j.Jq(b,!0).eb[0]:a.B=null)};
W4a=function(a,b,c,d){lZ(a);for(var e=a.D,f=null,h=e.B.length-1;0<=h;h--){var l=e.B[h];l.info.Pa>=b&&(e.B.pop(),e.C-=rR(l,e.policy.kb),f=l.info)}f&&(e.G=0<e.B.length?e.B[e.B.length-1].info:e.Za,0!==e.B.length||e.G||Q3a(e,"r"));e.Aa.va("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Pa:-1,sq:b,lastslc:e.G?e.G.Pa:-1,lastfraget:e.C.toFixed(3)});d>c?nZ(a,d):a.B=a.j.Zr(b-1,!1).eb[0]};
n_=function(a,b){var c;for(c=0;c<a.C.length&&b!==a.C[c];c++);if(c===a.C.length)m_(a,b);else{for(;c<a.C.length;)m_(a,a.C.pop());var d=X4a(a);d&&d.j.Xv()&&ms(b.info.eb,function(e){return bNa(e,d)})?(a.B=d,a.policy.j&&a.Aa.va("cer",{lsr:"lsp",
lsp:d.Id()})):(YQ(b.info.eb[0])?(a.B=b.wg&&b.wg.C?ZMa(b.wg.C):YMa(b.info.eb[0]),a.policy.j&&a.Aa.va("cer",{lsr:a.B.Id(),lsp:null==d?void 0:d.Id()})):(a.B=null,a.policy.j&&a.Aa.va("cer",{lsr:"null",lsp:null==d?void 0:d.Id()})),a.Aa.isOffline()&&!a.policy.pj||m_(a,b,!0))}};
k_=function(a,b){if(!b)return!1;if(a.policy.D){var c;if((a=null==(c=a.Aa.uj())?void 0:c.qa.getVideoData().clientPlaybackNonce)&&b.clipId!==a)return!1}return WQ(b)};
i_=function(a){var b;!(b="f"===a.j.info.ub)&&(b=a.policy.C)&&(b=a.D,b=!!b.N&&IZ(b.N));if(b)return!0;b=g_(a);if(!b)return!1;var c=k_(a,b)&&b.hf;return a.isManifestless&&0<a.Ba?c||b.Pa>=a.Ba:c};
o_=function(a){var b;return i_(a)||k_(a,null==(b=a.D.Vn())?void 0:b.info)};
S4a=function(a){var b=[],c=g_(a);c&&b.push(c);b=g.Jb(b,a.D.yn());c=g.u(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.u(d.info.eb),f=e.next(),h={};!f.done;h={tF:void 0},f=e.next())h.tF=f.value,d.uO&&(b=g.bt(b,function(l){return function(m){return!aNa(m,l.tF)}}(h))),(YQ(h.tF)||4===h.tF.type)&&b.push(h.tF)}a.B&&!SMa(a.B,g.zb(b),a.B.j.Jn())&&b.push(a.B);
return b};
R4a=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!TMa(a[b-1],a[b]))return!1;return!0};
T4a=function(a,b,c){c=void 0===c?!1:c;if(!a.B||!a.B.B)return NaN;a=S4a(a);a:{b+=.02;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.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:R4a(a,c?b:0)?a[b].startTime:NaN};
p_=function(a){return!(!a.B||a.B.j===a.j)};
Y4a=function(a){return p_(a)&&a.j.hg()&&a.B.j.info.Ob<a.j.info.Ob};
Z4a=function(a,b,c){var d=X4a(a);return d&&!k_(a,d)?d.D>b&&d.D<b+c:!1};
X4a=function(a){var b=a.D.Vn();return b?b.info:g_(a)};
$4a=function(a){return(a=X4a(a))?a.Pa:-1};
lZ=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())m_(a,c.value);a.C=[];a.B=null};
a5a=function(a,b,c){b.uO&&((void 0===c?0:c)||!b.info.eb[0].j.Xv())&&(a.logger.debug(function(){return"Rolling back request with segNum "+b.info.eb[0].Pa}),Z3a(a.D))};
m_=function(a,b,c){a5a(a,b,void 0===c?!1:c);b.dispose()};
b5a=function(a){return!!a.B&&-1!==a.B.Pa&&a.B.Pa<a.j.index.qn()};
c5a=function(a){var b=a.B;b&&-1===b.Pa&&(a=a.D.Vn())&&YQ(a.info)&&(a=a.info.Pa,b.G="updateLastSliceRequested",b.Pa=a)};
d5a=function(a){return ms(a.C,function(b){return b.OA})};
e5a=function(a,b){a.B&&(a.B.j=b)};
f5a=function(a){var b=qZ(a);a=a.Aa.uj();var c;if(c=b&&a&&b.info.clipId){a:{if(b=a.Ul.get(b.info.clipId))if(b=b.getId().split(","),1<b.length)for(c=0;c<b.length;c++){var d=c<b.length-1?b[c+1]:"";if(a.jk.has(b[c])){a=b[c]===a.zg&&!a.jk.has(d);break a}}a=!0}c=!a}return c?!0:!1};
g5a=function(a){a=void 0===a?{}:a;var b=a.ej,c=a.Kj,d=a.zd,e=a.Fv;this.Tj=a.Tj;this.ej=b;this.Kj=c;this.zd=d;this.Fv=e};
o4a=function(a,b){if(0>b)return!0;var c=a.zd();return b<c||b===c&&!a.Tj||b===c&&(a=a.Fv())&&b===a.Pa?!0:!1};
p4a=function(a,b,c){if(!o4a(a,b))return 0;if(!a.ej||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.zd();return b<c||b===c&&(a=a.Fv())&&b===a.Pa&&!a.pending?2:1};
h5a=function(a,b,c){var d=a.Kv();if(a.isComplete()||!d||dR(a.info.resource,b,c)||2>d)return 0;a=eR(c,nNa(a.info.resource,!0,b));return a.j||a.timedOut||a.started?0:2};
i5a=function(a,b,c){if(!(b.Xo&&a.isComplete()&&a.canRetry()&&dR(a.info.resource,b,c)))return 0;a=eR(c,nNa(a.info.resource,!1,b));return a.C+b.Xo*lNa(a,b,!0)>(0,g.FD)()?0:1};
q_=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=void 0===t?null:t;g.H.call(this);var v=this;this.Aa=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.D=e;this.j=f;this.timing=h;this.G=l;this.schedule=m;this.manifest=n;this.C=p;this.W=q;this.IK=r;this.jh=t;this.ma=!1;this.gF="";this.Xk=null;this.Xg=NaN;this.Ba=!1;this.B=null;this.ih=this.Z=NaN;this.ra=this.K=0;this.logger=new g.LU("dash");this.Fd={TO:function(x,B){return v.TO(x,B)}};
0<this.policy.So&&(this.gF=g.VE(this.policy.So));if(a=this.policy.Zx)this.N=new g.Eu(this.Ea,a,this),g.J(this,this.N)};
l5a=function(a,b,c){if(j5a(a,b,c)){if(b.N){if(a.manifest.isLive){var d=a.manifest.We&&a.manifest.C?b.j.Zr(a.manifest.We,!1):b.j.Jq(Infinity);d.Xg=a.Xg}else d=b.j.Zr(0,!1);a.W?0===d.Xg&&(d.G=a.W.Z):d.G=a.Z}else if(d=b.B,d.j.hg()){var e=d.D-a.Aa.getCurrentTime(),f=!d.range||0===d.B&&0===d.Xb?0:d.range.length-(d.Xb+d.B),h=d.j;a.TO(b,e)&&0===f&&(a.manifest.isManifestless?h=b.j:(h=d.startTime+k5a,d.B&&(h+=d.duration),nZ(b,h),d=b.B,h=d.j));h.Jn()?(f=a.C,c=v2a(a.G,h.info.Ob,c.j.info.Ob,e,0<f.D.length&&0===
f.Z&&a.Aa.Zq),h=p_(b),c=d.j.Tx(d,c),(e=c.C)&&1<c.eb.length&&(h||c.resource.B||c.eb[0].j!==d.j?c=d.j.Tx(d,c.eb[0].B):(h=c.eb[c.eb.length-1],f=h.B/e,!h.hf&&.4>f&&(c=d.j.Tx(d,e-h.B)))),d=c):(0>d.Pa&&(c=$Q(d),c.pr=""+b.C.length,a.Aa.Uf()&&(c.sk="1"),c.snss=d.G,a.Aa.va("nosq",c)),d=h.hC(d));if(a.policy.Ba)for(c=g.u(d.eb),e=c.next();!e.done;e=c.next())e.value.type=7}else d.j.Jn()?(c=v2a(a.G,b.j.info.Ob,c.j.info.Ob,0),d=d.j.Tx(d,c)):d=d.j.hC(d);if(a.B){var l=d.eb[0].j.info.id;c=a.j;e=d.eb[0].Pa;c=0>e&&!isNaN(c.C)?
c.C:e;e=R2a(a.j,d.eb[0].C,c);var m=b===a.audioTrack?1:2;f=d.eb[0].j.info.ub;h=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.Tg.event;if(n.j.Pa===c){n="predictStart"===p?void 0:n.j.Tg.event;break a}if(n.j.Pa===c-1){n="start"===p||"continue"===p?p:void 0;break a}}n=void 0}if(a.policy.Ea&&0!==a.j.B){var q=a.B.Ys(e,c,l,m,f,n);0>c&&2===m&&uZ(a.j,0,0,!0);if(q){var r;l=(null==(r=q.mB)?void 0:r.Fs)||"";var t;r=(null==(t=q.mB)?void 0:t.t_)||-1;a.Aa.va("sdai",{ssdaiinfo:"1",ds:l,skipsq:r,itag:h,f:f,sg:c,st:e.toFixed(3)});
d.D=q}}else if(t=a.B.nz(e,c,l,m,f,n),0>c&&2===m&&uZ(a.j,0,0,!0),t){r={dec_sq:c,itag:h,st:e.toFixed(3)};if(a.policy.tC&&b.isRequestPending(c-1)){a.Aa.va("sdai",{wt_daistate_on_sg:c-1});return}a.Aa.va("sdai",r);t&&(d.j=new g.dQ(t));a.policy.j&&(t=d.resource.C.get("id")||"",r=(null==(q=d.j)?void 0:q.get("id"))||"",t!==r&&a.Aa.va("stmidmismatch",{cid:t,aid:r}))}else 5!==a.j.B&&a.Aa.va("sdai",{nodec_sq:c,itag:h,st:e.toFixed(3)})}a.policy.Im&&-1!==d.eb[0].Pa&&d.eb[0].Pa<a.manifest.We&&(d=b.j.Zr(a.manifest.We,
!1));M4a(b,r_(a,d));rZ(a.timing);a.N&&(a.ra=0,g.Fu(a.N))}};
j5a=function(a,b,c){if(a.policy.yf&&a.policy.Bb)return!1;var d;var e=a.j,f=(null==(d=b.B)?void 0:d.Pa)||-1;3===e.B&&f+1>=e.N?(e.va("sdai",{haltrq:f+1,est:e.N}),d=!1):d=2!==e.B;if(!d||!oNa(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.Aa.isSuspended&&(!iS(a.schedule)||a.Aa.tH))return!1;if(a.policy.C&&5<=eT)return g.Fu(a.Aa.oE),!1;if(a.manifest.isManifestless){if(0<b.C.length&&b.B&&-1===b.B.Pa||b.C.length>=a.policy.Mm||!a.policy.QB&&0<b.C.length&&!a.policy.Z.ej)return!1;if(b.N)return!a.manifest.isLive||
!isNaN(a.Xg)}if(d5a(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.hg())return!1;nZ(b,a.Aa.getCurrentTime())}if(qZ(b)&&(b.Vn()!==qZ(b)||a.Aa.isSuspended))return!1;e=(d=a.policy.Hx)&&!b.C.length&&l_(b,!0)<Math.min(d,l_(c));d=b.C.length+c.C.length;f=!a.policy.gy&&((b.C.length?b.C[0].Yv():!1)||(c.C.length?c.C[0].Yv():!1)||a.manifest.isLive);(e||f)&&--d;if(d+1>=a.policy.Rm)return!1;d=b.B;if(!d)return!0;4===d.type&&d.j.hg()&&(b.B=g.zb(d.j.fB(d)),d=b.B);
if(!WQ(d)&&!d.j.Yr(d))return!1;f=a.manifest.Xd||a.manifest.C;if(a.manifest.isManifestless&&f){f=b.j.index.zd();var h=c.j.index.zd();f=Math.min(f,h);if(0<b.j.index.SH()&&0<f&&d.Pa>=f)return b.Ba=f,c.Ba=f,!1}if(d.j.info.audio&&4===d.type||WQ(d))return!1;f=!b.G&&!c.G;if(e=!e)e=d.D,e=!!(c.B&&!k_(c,c.B)&&c.B.D<e);h=b===a.videoTrack&&a.policy.Ba;return e&&(!a.manifest.isManifestless||c.B&&c.B.D&&d.D)&&f&&!h||a.policy.Za&&!b.G&&c.G?!1:YQ(d)&&d.D>m5a(a,b)?(m5a(a,b),!1):(a=b.dc)&&a.isLocked()?!1:!0};
m5a=function(a,b){var c=a.j;c=c.j?c.j.Tg:null;if(a.policy.Ba&&c)return c.startSecs+c.gi+15;b=s_(a.Aa,b);0<a.policy.bb&&(c=((0,g.FD)()-a.Aa.ir)/1E3,b=Math.min(b,a.policy.bb+a.policy.Nf*c));c=a.Aa.getCurrentTime()+b;return a.policy.Wo&&(b=n5a(a.Aa)+a.policy.Wo,b<c)?(a.Aa.va("mrl",{ori:c,mod:b},!0),a.policy.Ay&&(a=a.Aa,c=(0,g.FD)(),a.ir=c),b):c};
o5a=function(a,b,c){if(0!==c){a:if(b=b.info,c=2===c,b.j)b=null;else{var d=b.eb[0];if(b.range)var e=TQ(b.range.start,Math.min(4096,b.C));else{if(b.B&&0<=b.B.indexOf("/range/")||"1"===b.resource.C.get("defrag")||"1"===b.resource.C.get("otf")){b=null;break a}e=TQ(0,4096)}e=new aR([new VQ(5,d.j,e,"createProbeRequestInfo"+d.G,d.Pa)],b.B);e.K=c;e.j=b.j;b=e}b&&r_(a,b)}};
r_=function(a,b){a.Aa.nI(b);var c=hNa(b);c={rd:a.schedule,hD:c,wQ:t2a(a.G,c),kp:XQ(b.eb[0]),Wq:gQ(b.resource.j),qN:a.policy.j,Xw:function(e,f){a.Aa.mF(e,f)}};
a.Xk&&(c.Pa=b.eb[0].Pa,c.Xg=b.Xg,c.Xk=a.Xk);var d={Yu:iNa(b,a.Aa.getCurrentTime()),VE:a.policy.Od&&cR(b)&&b.eb[0].j.info.video?i3a(a.C):void 0,SF:a.policy.Ba,poToken:a.Aa.bI(),Lw:a.Aa.xz(),gF:a.gF,ih:isNaN(a.ih)?null:a.ih,jh:a.jh,IK:a.IK};return new kZ(a.policy,b,c,a.D,function(e,f){try{a:{var h=e.info.eb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.Kv()||!(!a.Aa.Ta||a.Aa.isSuspended||3<l_(l))){var m=h5a(e,a.policy,a.D);1===m&&(a.Ba=!0);o5a(a,e,m);if(e.isComplete()||
e.isDisposed()&&3>f){if(a.policy.j){var n=e.timing.gs();n.rst=e.state;n.strm=e.xhr.AB();n.cncl=e.xhr&&e.Ed.C?1:0;e.xt()&&(n.shost=fQ(e.me.base),n.pb=e.info.C);a.Aa.va("rqs",n)}e.h_&&a.Aa.va("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var p=a.timing,q=e.info.eb[0].j,r=!p.G&&q.info.video,t=!p.B&&q.info.audio;3===e.state?r?p.tick("vrr"):t&&p.tick("arr"):4===e.state?r?(p.G=e.df(),g.lD(),nD(4)):t&&(p.B=e.df()):e.Yv()&&r&&(g.lD(),nD(4));var v=a.Aa;a.ih&&e.VG&&v&&(a.ih=NaN,a.Aa.wR(e.VG),a.Aa.QM(),a.Aa.va("cabrUtcSeek",
{mediaTimeSeconds:e.VG}));e.kB&&(0<e.wp&&a.Aa.va("sError",{errorHttpResponseCode:e.wp.toString()}),a.ih&&e.kB&&!e.kB.action&&(a.Aa.aJ(a.ih),a.ih=NaN,a.Aa.va("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.ih})));a.policy.Bb&&e.fq&&a.Aa.tm(e.fq);if(3===e.state){n_(l,e);cR(e.info)&&t_(a,l,h,!0);if(a.B){var x=e.info.nz();x&&a.B.Sk(e.info.eb[0].Pa,h.info.id,x)}a.Aa.tf()}else if(e.isComplete()&&5===e.info.eb[0].type){if(4===e.state){var B=(e.info.eb[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;
B&&B instanceof kZ&&B.Kv()&&B.DB(!0)}e.dispose()}else{e.Hn()||p5a(a,e);var F;(null==(F=e.Yz)?0:F.LI)&&a.Aa.uJ(e.Yz.LI);if(4===e.state)q5a(a,e),a.j&&Q2a(a.j,e.info,a.B);else if(a.policy.Du&&e.il()&&!e.isComplete()&&!q5a(a,e)&&!e.Hn())break a;e.Hn()&&(a.gt(e),isNaN(a.ih)||(a.Aa.aJ(a.ih),a.ih=NaN));a.Aa.tf();var G=i5a(e,a.policy,a.D);o5a(a,e,G)}}}}}catch(I){f=a.ma?1:0,a.ma=!0,e=UK(f),f=VK(I,f),a.Aa.handleError(f.errorCode,f.details,f.severity),e||a.Aa.Lk()}},d)};
p5a=function(a,b){if(b.OA&&2<=b.state&&3!==b.state){var c=b.xhr.getResponseHeader("X-Response-Itag");if(c){a.logger.debug(function(){return"Applying streamer-selected format "+c});
var d=h3a(a.C,c),e=b.info.C;e&&(e-=d.XN(),d.C=!0,b.info.eb[0].j.C=!1,I4a(b,d.Jv(e)),u_(a.Aa,a.videoTrack,d),e5a(a.videoTrack,d),a.Aa.rQ(d.info.video.quality),(e=b.eO())&&d.info.lastModified&&d.info.lastModified!==+e&&n_(a.videoTrack,b))}else b.OA=!1}};
q5a=function(a,b){if(a.policy.useUmp&&b.isDisposed())return!1;try{var c=b.info.eb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.N&&(b.isDisposed(),b.isComplete()||b.il(),d.N=!1);b.IN()&&a.Aa.fH.Gk(1,b.IN());var e=b.SH(),f=b.gW();zOa(a.manifest,e,f)}if(b.info.kp()&&!dNa(b.info))for(var h=g.u(b.zk()),l=h.next();!l.done;l=h.next())O4a(d,l.value);for(a.Aa.getCurrentTime();d.C.length&&4===d.C[0].state;){var m=d.C.shift();N4a(d,m);d.La=m.bW()}d.C.length&&N4a(d,d.C[0]);
var n=!!qZ(d);n&&b instanceof jZ&&(c.info.Ai()?G2a(a.timing):F2a(a.timing));return n}catch(p){b=b.Ss();b.origin="hrhs";a:{a=a.Aa;c=p;if(c instanceof Error){b.msg||(b.msg=""+c.message);b.name||(b.name=""+c.name);if(c instanceof g.eD&&c.args)for(d=g.u(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.u(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.LF(c);if("WARNING"===c.level){a.qa.po(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}};
r5a=function(a){var b=a.videoTrack.j.index;a.Xk=new g5a({Tj:a.policy.Tj,ej:a.policy.Z.ej,Kj:b.Kj,zd:function(){return b.zd()},
Fv:function(){return b.Fv()}})};
t_=function(a,b,c,d){if(!(c.hg()||c.Qz()||c.C||!oNa(c.resource,a.policy,a.D)||"f"===c.info.ub||a.policy.B)){if(d){d=a.G;var e=c.info;d=u2a(d,e.video?d.policy.Iu:d.policy.wl,e.Ob)}else d=0;d=c.Jv(d);a=r_(a,d);dNa(d)&&M4a(b,a);c.C=!0}};
v_=function(a,b,c,d,e,f){g.H.call(this);this.Aa=a;this.eh=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.N=f;this.B=mT;this.W=!1;this.logger=new g.LU("sabr");this.videoInfos=this.G=this.N.videoInfos;this.C=this.Z=this.N.j;this.j=new xZ(b,f);s5a(this)};
t5a=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next())c.push(mL(d.value,a.manifest.Ac));return c};
u5a=function(a,b,c){b!==a.K&&(a.K&&(a.W=!0),a.K=b,a.CE(b,a.videoTrack,c))};
y5a=function(a,b){a.logger.debug("setConstraint: "+UP(b));"m"===b.reason?b.isLocked()&&v5a(a,b.j):w5a(a,b)?x5a(a,b.B,b.j):a.videoInfos=a.G;a.B=b};
w5a=function(a,b){return a.eh.Ex?!0:"l"===b.reason||"b"===b.reason||"o"===b.reason};
z5a=function(a,b){return b.isLocked()&&a.j.B||void 0===a.B?!1:b.equals(a.B)};
A5a=function(a,b){var c,d=null==(c=a.K)?void 0:c.info.video.j;return a.W?!0:a.K?b!==d?!0:a.j.B?!0:!1:!1};
v5a=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.G;var d=g.Db(a.videoInfos,function(e){return e.id===c});
d&&d.video.j===b?a.videoInfos=[d]:(d=a.videoInfos.map(function(e){return e.id}),a.Aa.va("sabrpf",{pfid:""+c,
vfids:""+d.join(".")}),x5a(a,b,b),AZ(a.j,""));a.j.B=!1}else x5a(a,b,b)};
x5a=function(a,b,c){a.videoInfos=a.G;a.videoInfos=g.bt(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})};
s5a=function(a){var b=g.Db(a.Z,function(c){var d;return!(null==(d=c.Lc)||!d.isDefault)});
b&&(a.C=[b])};
B5a=function(a,b){return a.map(function(c){return nL(c,b)})};
C5a=function(a){var b;if(null==(b=a.B)?0:b.isLocked())return a.videoInfos;var c=zZ(a.j);b=g.bt(a.videoInfos,function(d){return a.eh.wy&&d.Ob>a.eh.Ob?!1:!c.has(d.id)});
T2a(a.j)&&(b=g.bt(b,function(d){return 854>=d.video.width&&480>=d.video.height}));
return b};
w_=function(a,b){UZ.call(this,a,b);this.La=!0;this.ma=!1;this.Na=this.W=0};
F5a=function(a){var b=fL[a],c=D5a[b],d=E5a[a];if(!d||!c)return null;var e=new dL(d.width,d.height,d.fps);c=gOa(c,e,b);return new gL(a,c,{video:e,Ob:d.bitrate/8})};
H5a=function(a){var b=D5a[fL[a]],c=G5a[a];return c&&b?new gL(a,b,{audio:new bL(c.audioSampleRate,c.numChannels)}):null};
J5a=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=I5a[d]||0;a.j&&e>a.j||c.push(d)}return c};
M5a=function(a,b,c){b.push.apply(b,g.oa(K5a[a]||[]));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.oa(L5a[a]||[]))};
R5a=function(a,b){var c=ET(a),d=a.U().G;if(x_&&!d.B)return x_;var e=[],f=[],h={},l=[].concat(g.oa(N5a));a.L("html5_early_media_for_drm")&&(l=l.concat(O5a),a.L("allow_vp9_1080p_mq_enc")&&l.push(P5a));var m=[].concat(g.oa(Q5a));c.Z&&(m[0]=["141"]);l=g.u(l);for(var n=l.next();!n.done;n=l.next()){var p=!1;n=g.u(n.value);for(var q=n.next();!q.done;q=n.next()){q=q.value;var r=F5a(q);if(r&&r.video&&!(iL(r)&&!c.Ga&&r.video.j>c.lj)){var t=g.EJ(a.U().experiments,"html5_drm_live_byterate_soft_cap");0<t&&uBa(r)&&
r.Ob>t||(p?(e.push(q),M5a(q,e,a)):(r=YP(c,r,d),!0===r?(p=!0,e.push(q),M5a(q,e,a)):h[q]=r))}}}m=g.u(m);for(l=m.next();!l.done;l=m.next())for(l=g.u(l.value),q=l.next();!q.done;q=l.next())if(p=q.value,(n=H5a(p))&&n.audio&&(a.L("html5_onesie_51_audio")||!tBa(n)&&!jL(n)))if(n=YP(c,n,d),!0===n){f.push(p);M5a(p,f,a);break}else h[p]=n;c.B&&b("orfmts",h);x_={video:e,audio:f};d.B=!1;return x_};
T5a=function(a){return{N_:UO(a,1,S5a),Aba:RO(a,2)}};
U5a=function(a){return{WI:OO(a,1)}};
S5a=function(a){return{clipId:RO(a,1),Rr:SO(a,2,V5a),FP:SO(a,3,U5a)}};
V5a=function(a){return{I0:RO(a,1),vZ:OO(a,2),I7:OO(a,3),QX:OO(a,4),RX:OO(a,5),wZ:OO(a,6)}};
W5a=function(a){return{type:OO(a,1),scope:OO(a,2),value:QO(a,3),sendByDefault:PO(a,4)}};
X5a=function(a){MU.call(this,"sabr");this.Gb=a};
y_=function(a,b,c,d,e,f,h){g.H.call(this);this.policy=a;this.info=b;this.manifest=c;this.Gb=e;this.logger=new g.LU("sabr");this.Bk=new ZZ(this);this.Zaa=new X5a(this);this.pg=new lY(this);this.state=1;this.ZZ=!1;this.YQ=0;this.clipId="";this.policy.yy?this.Xe=new w_(this,f):this.Xe=new XZ(this,f);e=this.policy;e=eNa(b.resource,Y5a(b,e,d),e);b.cw()&&e.set("probe","1");this.me=e;this.me.set("rn",""+this.Kq());w0a(this.pg,c,a);this.Ed=new a_(this,this.policy,this.me,b.resource,this.Xe,this.logger,d,
h,this.policy.enableServerDrivenRequestCancellation);A4a(this.Ed);a={method:"POST"};a.body=b.B;try{this.xhr=z4a(this.me,this.policy.Z,this.Xe,RR,a),this.Ed.B.start()}catch(l){g.LF(l)}};
Z5a=function(a,b){var c=-1,d=-1,e=-1,f;if(null==(f=a.XQ)?0:f.items)for(a=g.u(a.XQ.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.vP||f.vP<c||(c=f.vP,d=f.iJ,e=f.minReadaheadMs);return{A7:c,iJ:d,wP:e}};
c6a=function(a){var b={},c=a.qa,d=a.Fa,e=!!a.kN,f=c.getVideoData(),h=LP(0),l=c.getPlayerSize(),m=c.getVisibilityState();h&&(b.B7=h,b.lastManualDirection=BLa(),h=kpa()||0,0<h&&(h=(d.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.FD)())-h,d.L("html5_use_date_now_for_local_storage")?0<h&&(b.timeSinceLastManualFormatSelectionMs=h):b.timeSinceLastManualFormatSelectionMs=h));b.Eba=LP();d.schedule.ma&&(b.I4=hS(d.schedule,!e));e=g.AS();b.U4=l.width*e;b.T4=l.height*e;b.visibility=m;b.Tba=YE();b.w5=
1E3*g.HN(c.qc().provider);if(d.L("html5_enable_platform_backpressure_with_sabr")){if(b.Cv=3,a.rF||(b.Cv^=1),!a.vF||DT(f))b.Cv^=2}else{if(d.L("html5_onesie_media_capabilities")||d.L("html5_enable_server_format_filter"))b.Cv=3;d.L("html5_onesie_audio_only_playback")&&DT(f)&&(b.Cv=1)}f=f.Ie?f.Ie:ET(f);if(d.L("html5_onesie_media_capabilities")){l=d.G;m=[];e=[];var n=[].concat(g.oa(N5a));d.L("html5_early_media_for_drm")&&(n=n.concat(O5a),d.L("allow_vp9_1080p_mq_enc")&&n.push(P5a));h=[].concat(g.oa(Q5a));
f.Z&&(h[0]=["141"]);n=g.u(n);for(var p=n.next();!p.done;p=n.next()){p=g.u(p.value);for(var q=p.next();!q.done;q=p.next()){q=q.value;var r=F5a(q);if(r&&r.video){var t=g.EJ(d.experiments,"html5_drm_live_byterate_soft_cap");if(!(0<t&&uBa(r)&&r.Ob>t)&&!0===YP(f,r,l)){m.push({x0:$5a[fL[q]],maxWidth:r.video.width,maxHeight:r.video.height,maxFramerate:r.video.fps});break}}}}h=g.u(h);for(n=h.next();!n.done;n=h.next())for(n=g.u(n.value),q=n.next();!q.done;q=n.next())if(p=q.value,(q=H5a(p))&&q.audio&&(d.L("html5_onesie_51_audio")||
!tBa(q)&&!jL(q))&&!0===YP(f,q,l)){e.push({audioCodec:a6a[fL[p]],numChannels:q.audio.numChannels});break}b.mediaCapabilities={aL:m,QG:e}}var v;if(null==(v=a.eh)?0:v.B&&v.Of){m=d.G;v=[];l=[];e=new Map;if((h=m.j)&&0<h.size)for(h=g.u(h.values()),n=h.next();!n.done;n=h.next()){n=n.value;if(d.L("html5_ssap_force_mp4_aac")&&(p=n.ub,"a"!==p&&"h"!==p))continue;if(n.Ai)l.push({audioCodec:a6a[n.ub],numChannels:n.numChannels,Cba:b6a[n.ub]});else{q=$5a[n.ub];p={x0:q,maxWidth:n.maxWidth||0,maxHeight:n.maxHeight||
0,maxFramerate:n.maxFramerate||0,p7:n.vX||!1};if(n.xw){p.xw=n.xw;r=F5a(n.itag);if(!r||!r.video)continue;!0===YP(f,r,m)&&(r=8*r.Ob,r>p.xw&&(p.xw=r))}q=q+"_"+n.vX;e.has(q)?(p=e.get(q),n.maxFramerate>=p.maxFramerate&&n.maxWidth>=p.maxWidth&&n.maxHeight>=p.maxHeight&&(p.maxFramerate=n.maxFramerate,p.maxWidth=n.maxWidth,p.maxHeight=n.maxHeight)):e.set(q,p)}}m=g.u(e.values());for(e=m.next();!e.done;e=m.next())v.push(e.value);b.mediaCapabilities={aL:v,QG:l,e7:3}}var x;if(null==(x=a.eh)?0:x.B){b.Xn=f.Xn;
var B;b.lj=null==(B=a.eh)?void 0:B.lj}if(d.L("html5_enable_drc_toggle_api")){var F;b.HV=null==(F=a.eh)?void 0:F.jd}else d.L("html5_enable_drc")&&(b.HV=!0);b.HQ=a.VC;a.ir&&(b.Uba=(0,g.FD)()-a.ir);a.isPrefetch&&d.L("html5_report_prefetch_requests")&&(b.isPrefetch=!0);RR||(b.b8=!0);d=1E3*gS(d.schedule);0<d&&(b.Z4=d);var G;(null==(G=a.eh)?0:G.Zo)&&a.Cw&&Infinity>a.Cw&&(b.Cw=a.Cw);c=c.getPlaybackRate();1!==c&&(b.playbackRate=c);var I;(null==(I=a.eh)?0:I.rb)&&a.Xp&&(b.bv=a.bv,b.mx=a.mx,b.Xp=a.Xp);return b};
e6a=function(a,b,c,d){b={playbackCookie:null==b?void 0:b.playbackCookie};d&&(b.NQ=d);b.VK=[];if(g.dU(a)&&0<a.sabrContextUpdates.size){b.pK=[];d=g.u(a.sabrContextUpdates.values());for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.type||0,h=void 0;(null==(h=c)?0:h.has(f))?b.pK.push(e):b.VK.push(f)}}a.vy&&(b.yba=a.vy);c=a.U().j;b.clientInfo={clientName:d6a[c.c.toUpperCase()]||0};c.cbrand&&(b.clientInfo.deviceMake=c.cbrand);c.cmodel&&(b.clientInfo.deviceModel=c.cmodel);c.cver&&(b.clientInfo.clientVersion=
c.cver);c.cos&&(b.clientInfo.osName=c.cos);c.cosver&&(b.clientInfo.osVersion=c.cosver);a.Go&&(b.Go=a.Go);return b};
f6a=function(a,b,c){var d=a.manifest,e=a.qa.getVideoData(),f=g.dU(e),h=c6a({Fa:e.U(),qa:a.qa,VC:a.VC,kN:!!a.kN,eh:a.eh,ir:a.ir,Cw:a.Cw,bv:a.bv,mx:a.mx,Xp:a.Xp,isPrefetch:a.isPrefetch,rF:a.rF,vF:a.vF}),l=e6a(e,a.nextRequestPolicy,a.lm,a.NQ),m=a.CF,n=a.DF;if(void 0===n&&void 0===m){var p;n=d.Ac;n=(m=null==(p=a.BM)?void 0:p.video)?[mL(m.info,n)]:[];var q;p=d.Ac;m=(m=null==(q=a.BM)?void 0:q.audio)?[mL(m.info,p)]:[]}var r;e.L("html5_ssap_force_mp4_aac")&&(null==(r=a.eh)?0:r.B&&r.Of)&&(m=[],n=[]);if(e.jh)var t=
e.jh;e={zs:h,Un:a.Un,CF:m,DF:n,videoPlaybackUstreamerConfig:t,HK:l};if(f&&b){f=new Map;h=g.u(d.Ea);for(l=h.next();!l.done;l=h.next())l=l.value,(q=d.Ga[dOa(d,l)]||"")?(f.has(q)||f.set(q,[]),f.get(q).push(l)):c&&c("ssap",{nocid4fmt:(l.itag||"")+"_"+(l.lmt||0)+"_"+(l.xtags||"")});d=new Map;a=g.u(a.Vd);for(h=a.next();!h.done;h=a.next())h=h.value,l=h.startTimeMs||0,q=void 0,r=null==(q=b)?void 0:PY(q,l),q=r.clipId,r=r.qm,q?(d.has(q)||(t=f.get(q)||[],d.set(q,{clipId:q,Vd:[],Uv:t})),0!==r&&(h.startTimeMs=
l-r),d.get(q).Vd.push(h)):c&&c("ssap",{nocid4range:"1",st:l.toFixed(3),timeline:d1a(b.timeline,b.zg)});e.GK=[];b=g.u(d.entries());for(c=b.next();!c.done;c=b.next())c=g.u(c.value),c.next(),c=c.next().value,e.GK.push(c)}else e.Vd=a.Vd,e.Uv=d.Ea;return e};
z_=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Gb=c;this.B=null;this.Fd={Bjb:function(){var e;return null==(e=d.data)?void 0:e.isPrefetch}}};
g6a=function(a,b,c){a.cw()||(a.data=b,a.C=f6a(b,c,function(d,e){var f;null!=(f=a.Gb)&&f.Aa.va(d,e)}),a.B=g.cP(a.C,MTa))};
Y5a=function(a,b,c){void 0===a.j&&(a.j=dR(a.resource,b,c));return a.j};
h6a=function(a){var b,c;return(null==(b=a.C)?void 0:null==(c=b.zs)?void 0:c.HQ)||0};
i6a=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e<a.data.Vd.length;e++){var f=a.data.Vd[e],h=void 0;c.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.cq)+("_en."+f.qj))}for(e=0;e<a.data.Un.length;e++){f=a.data.Un[e];var l=h=void 0,m=void 0,n=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_sn."+f.sequenceNumber+"_sl."+(f.Gj||NaN)+"_lb."+f.JX+"_tr.s_"+(null==(l=f.JH)?void 0:l.Xh)+"_d_"+
(null==(m=f.JH)?void 0:m.xH)+"_t_"+(null==(n=f.JH)?void 0:n.Au))}b.t=h6a(a);b.rtype=a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
A_=function(a,b){g.H.call(this);this.j=a;this.C=b;this.iv=(0,g.e_)(UE(16))};
j6a=function(a,b){var c;return g.Ha(function(d){(0,g.FD)();c=ePa(a.j);return d.return(c.encrypt(b,a.iv))})};
k6a=function(a,b){var c;return g.Ha(function(d){(0,g.FD)();var e=a.j;e.D||(e.D=new yGa(e.C));c=e.D;return d.return(BGa(c,b,a.iv))})};
l6a=function(a,b,c){var d;return g.Ha(function(e){(0,g.FD)();d=ePa(a.j);return e.return(d.decrypt(b,c))})};
m6a=function(a){if(a.B)return a.B;if(a.C){var b=new YR(a.C,a.j.j);g.J(a,b);a.B=b}else a.B=new WR(a.j.j);return a.B};
n6a=function(a){this.wm=a;this.B=!1;this.j=[]};
C_=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.videoId,d=b.Hp,e=b.formatId,f=b.buffer;b=b.R5;if(f)b=void 0,null==(b=B_(a.wm.kd,c))||y0a(b,d,e,f);else if(b)a.wm.kd.Qp(c,d,e);else if(d=a.wm,d.j[e].RW=!0,c=B_(d.kd,c),null==c?0:c.qd.has(e))null==c||n0a(c,e)}};
g.q6a=function(a){this.data=a;this.j=0;this.D=!1;this.C=0;this.error=!1;this.register=this.B=0;if(0===D_.length){D_.length=288;D_.fill(8);for(a=144;280>a;a++)D_[a]=255>=a?9:7;o6a.length=32;o6a.fill(5);E_.length=286;E_.fill(0);for(a=261;285>a;a++)E_[a]=Math.floor((a-261)/4);F_[257]=3;for(a=258;285>a;a++){var b=F_[a-1];b+=1<<E_[a-1];F_[a]=b}F_[285]=258;for(a=0;30>a;a++)p6a[a]=3>=a?0:Math.floor((a-2)/2);for(a=G_[0]=1;30>a;a++)b=G_[a-1],b+=1<<p6a[a-1],G_[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.output=new Uint8Array(a)};
g.w6a=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!H_(b,1);switch(H_(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=H_(b,5)+257;var f=H_(b,5)+1;for(var h=H_(b,4)+4,l=0;l<h;l++)d[r6a[l]]=H_(b,3);d=s6a(d);for(h=e+f;c.length<h;){l=t6a(b,d);switch(l){case 16:l=c[c.length-1];var m=H_(b,2)+3;break;case 17:l=0;m=H_(b,3)+3;break;case 18:l=0;m=H_(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,u6a(b,c,f));break;case 1:u6a(b,D_,o6a);break;case 0:v6a(b,
b.j&7);c=H_(b,16);e=H_(b,16);65535!==(c^e)&&(b.error=!0);b.output.set(b.data.subarray(b.B,b.B+c),b.C);b.B+=c;b.C+=c;break;default:b.error=!0}a.C>a.output.length&&(a.output=new Uint8Array(2*a.C),a.C=0,a.B=0,a.D=!1,a.j=0,a.register=0)}a.output.length!==a.C&&(a.output=a.output.subarray(0,a.C));return a.error?new Uint8Array(0):a.output};
u6a=function(a,b,c){b=s6a(b);c=s6a(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){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.B=m,256<n){h=F_[n];h+=H_(a,E_[n]);m=t6a(a,c);l=G_[m];l+=H_(a,p6a[m]);if(x6a&&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.B}else break}a.C=f};
t6a=function(a,b){if(7>a.j){var c=a.data,d=a.B;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.B+=2;a.j+=16}c=b[a.register&127];if(0<=c)return v6a(a,c&15),c>>4;for(v6a(a,7);0>c;)c=b[H_(a,1)-c];return c>>4};
H_=function(a,b){for(;a.j<b;){if(a.B>=a.data.length)return a.error=!0,0;a.register|=a.data[a.B++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
v6a=function(a,b){a.j-=b;a.register>>=b};
s6a=function(a){for(var b=[],c=g.u(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};
y6a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t;return g.Ha(function(v){switch(v.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=sO.vk(b.j?"gza":"gzw",function(){return 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 v.return(h)}catch(x){g.KF(x),b.reload()}if(!("DecompressionStream"in window))return sO.isActive()?v.return(sO.vk("gzj",function(){return g.w6a(new g.q6a(a))})):v.return(g.w6a(new g.q6a(a)));
l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new zO([]);if(sO.isActive())return v.return(sO.vk("gzn",function(){var x,B,F;return g.Ha(function(G){if(1==G.j)return g.z(G,n.read(),5);if(4!=G.j){x=G.B;B=x.value;if(F=x.done)return G.Ka(4);p.append(B);return G.Ka(1)}return G.return(CO(p))})}));
case 2:return g.z(v,n.read(),5);case 5:q=v.B;r=q.value;if(t=q.done){v.Ka(4);break}p.append(r);v.Ka(2);break;case 4:return v.return(CO(p))}})};
z6a=function(a){MU.call(this,"onesie");this.kd=a;this.j={};this.D=!0;this.C=null;this.queue=new n6a(this);this.G={}};
A6a=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.u(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.RW){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||C_(e)}}};
C6a=function(a,b){var c=b.getLength(),d=!1;switch(a.C){case 0:a.jQ(b,a.D).then(function(f){var h=a.kd;h.Nd("oprr");h.playerResponse=f;h.qP||(h.wF=!1);I_(h)},function(f){a.kd.fail(f)});
break;case 2:a.Nd("ormk");b=CO(b);var e;a.queue.decrypt(b,!B6a(a.kd),null==(e=a.kd.U())?void 0:e.Qa);break;default:d=!0}a.kd.jm&&a.kd.va("ombup","id.11;pt."+a.C+";len."+c+(d?";ignored.1":""));a.C=null};
D6a=function(a){return new Promise(function(b){setTimeout(b,a)})};
E6a=function(a,b){var c=SR(b.X.experiments,"debug_bandaid_hostname");if(c)b=gY(b,c);else{var d;b=null==(d=b.j.get(0))?void 0:d.location.clone()}if((d=b)&&a.videoId){b=ZR(a.videoId);a=[];if(b)for(b=g.u(b),c=b.next();!c.done;c=b.next())a.push(c.value.toString(16).padStart(2,"0"));d.set("id",a.join(""));return d}};
F6a=function(a,b,c){c=void 0===c?0:c;var d,e;return g.Ha(function(f){if(1==f.j)return d=[],d.push(b.load()),0<c&&d.push(D6a(c)),g.z(f,Promise.race(d),2);e=E6a(a,b);return f.return(e)})};
G6a=function(a,b,c,d){d=void 0===d?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.U();a.set("por","1");qO()||a.set("onem","1");0<b.startSeconds&&a.set("osts",""+b.startSeconds);d||(e.L("html5_onesie_disable_partial_segments")&&a.set("oses","1"),c?(b=c.audio,a.set("pvi",c.video.join(",")),e.L("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),RR||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad","0"),a.set("oavd","0")))};
H6a=function(a,b,c,d,e){e=void 0===e?!1:e;var f=b.lk,h="https://web.archive.org/web/20240102114909/https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.JO&&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.mc()});g.IB("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.IB("EOM_VISITOR_DATA")}):(c=c.visitorData||g.IB("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=SR(b.experiments,
"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=MGa(JSON.stringify(a));return{url:h,zO:f,postBody:a,yaa:e,wB:e}};
J6a=function(a,b,c,d,e,f){var h=g.cP(a,xTa,a.wB?void 0:c.Qa),l={encryptedClientKey:b.j.encryptedClientKey,g_:!0,JV:!0,pN:I6a(c,!!a.wB),u0:c.experiments.jb("html5_use_jsonformatter_to_parse_player_response")};if(a.wB)l.jca=h;else{a=b.encrypt(h);var m;a=(null==(m=c.Qa)?void 0:cWa(m,a))||a;m=l.LV=a;(0,g.FD)();m=xGa(new wGa(b.j.C),m,b.iv);l.cX=m;l.iv=b.iv}b=d.getVideoData();c=c6a({Fa:c,qa:d,VC:1E3*b.startSeconds,rF:!0,vF:!0});return{KO:l,zs:c,onesieUstreamerConfig:e,Go:f,HK:e6a(b)}};
K6a=function(a,b,c){var d,e,f;return g.Ha(function(h){if(1==h.j)return d=g.cP(b,xTa),g.z(h,j6a(c,d),2);if(3!=h.j)return e=h.B,g.z(h,k6a(c,e),3);f=h.B;return h.return({LV:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,cX:f,g_:!0,JV:!0,pN:I6a(a,!!b.wB),u0:a.experiments.jb("html5_use_jsonformatter_to_parse_player_response")})})};
L6a=function(a,b,c,d,e,f){var h,l,m;return g.Ha(function(n){if(1==n.j)return g.z(n,K6a(c,a,b),2);h=n.B;l=d.getVideoData();m=c6a({Fa:c,qa:d,VC:1E3*l.startSeconds,rF:!0,vF:!0});return n.return({KO:h,zs:m,onesieUstreamerConfig:e,Go:f,HK:e6a(l)})})};
I6a=function(a,b){a=hS(a.schedule,!0);b=b||!!qO()&&1572864<a;return"DecompressionStream"in window||!b};
K_=function(a,b){g.H.call(this);var c=this;this.qa=a;this.playerRequest=b;this.X=this.qa.U();this.videoData=this.qa.getVideoData();this.logger=new g.LU("onesie");this.jm=this.X.Uc();this.fN=this.X.ll;this.OE=new A_(this.fN.j,this.X.Qa);this.xhr=null;this.state=1;this.gq=new KL;this.WW=!1;this.playerResponse="";this.Bk=new ZZ(this);this.wm=new z6a(this);this.eG=this.X.L("html5_onesie_check_timeout");this.KM=new g.Eu(this.P4,500,this);this.PE=new g.Eu(this.qO,1E4,this);this.GJ=new g.Eu(function(){if(!c.isComplete()){var d=
J_(c);c.fail(new TK("net.timeout",d))}},g.EJ(this.X.experiments,"html5_onesie_request_timeout_ms"));
this.hZ=new g.Eu(this.U7,2E3,this);this.Ut="";this.CI=this.rX=!1;this.Ez=this.qa.xz();this.tQ="";this.wF=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.qP=this.Mz=!1;this.TF=[];g.J(this.videoData,this);g.J(this,this.KM);g.J(this,this.PE);g.J(this,this.hZ);g.J(this,this.OE);a=TR();RR&&a&&!this.X.L("html5_disable_onesie_media_bytes")&&(this.Fg=new Map);this.YV=new Map;this.nY=new Map;this.QZ=new Map};
B_=function(a,b){var c;return null==(c=a.Fg)?void 0:c.get(b)};
M6a=function(a,b,c){var d;return g.Ha(function(e){if(1==e.j)return a.Nd("oprd_s"),B6a(a)?g.z(e,l6a(a.OE,b,c),3):(d=a.OE.decrypt(b,c),e.Ka(2));2!=e.j&&(d=e.B);a.Nd("oprd_c");return e.return(d)})};
N6a=function(a){return a.L("html5_onesie_host_probing")||a.jm?RR:!1};
I_=function(a){if(!a.playerResponse)return!1;if(a.Mz)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&DT(a.videoData);if(a.Fg&&a.wF){if(!a.Fg.has(a.Ut))return!1;var c=a.Fg.get(a.Ut),d;if(d=c){d=!1;for(var e=g.u(c.qd.keys()),f=e.next();!f.done;f=e.next())if(f=c.qd.get(f.value))for(var h=g.u(f.eJ),l=h.next();!l.done;l=h.next())0<l.value.Fr&&(f.Ai?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Nd("ofr");a.gq.resolve(a.playerResponse);if(!a.eG){var m;null==(m=a.GJ)||m.start();a.PE.start()}return a.Mz=
!0};
P6a=function(a){if(a.Fg&&!a.L("html5_onesie_media_capabilities")){a.Nd("ogsf_s");var b=R5a(a.qa.getVideoData(),function(d,e){a.va(d,e)}),c=O6a(a.qa);
b.video=J5a(c,b.video);a.Nd("ogsf_c");if(b.video.length)return b;a.va("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}};
B6a=function(a,b){return a.L("html5_onesie_sync_request_encryption")||(null==b?0:b.wB)||g.DS(a.X)&&a.L("html5_embed_onesie_use_sync_encryption")?!1:!!qO()};
J_=function(a){if(!a.Xe)return{};var b=a.Xe.gs();b.d=j4a(a.Xe);b.shost=a.e_;b.ty="o";return b};
Q6a=function(a,b){var c,d;(d=null==(a=null==(c=a.Fg)?void 0:c.get(b)))||(b=a.B?!1:a.B=!0,d=!b);return!d};
R6a=function(a,b,c,d,e,f,h,l,m,n){g.H.call(this);var p=this;this.qa=a;this.Aa=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.rd=h;this.N=l;this.C=m;this.timing=n;this.j=[];this.D={};this.W=this.ma=!1;this.lm=new Set;this.G=this.Xp=0;this.Fd={ljb:function(){return p.j},
Jib:function(){return p.D},
cib:function(){p.j.length=0},
Wib:function(){return p.lm},
Sib:function(){return p.G},
Akb:function(q){p.G=q}};
this.videoData=this.qa.getVideoData()};
U6a=function(a,b){b=void 0===b?!1:b;S6a(a,b)&&a.j.push(T6a(a,new z_(0,a.manifest.Qa,a),b))};
V6a=function(a,b){var c=Q4a(a.audioTrack),d=Q4a(a.videoTrack),e=[].concat(g.oa(c.Vd),g.oa(d.Vd));c=[].concat(g.oa(c.Un),g.oa(d.Un));var f;d=(null==(f=a.Aa)?void 0:f.HI())&&(OT(a.videoData)||g.NT(a.videoData));f=a.policy.G&&d;if(a.policy.Ax){d=a.Aa.getCurrentTime()||0;var h=a.Aa.Pc()||0;d+=h}else d=a.qa.getCurrentTime()||0;var l=f?Number.MAX_SAFE_INTEGER:Math.ceil(1E3*d);f=!L_(a,a.audioTrack);d=!L_(a,a.videoTrack);h=ZR(a.Aa.bI());var m,n;e={qa:a.qa,manifest:a.manifest,Vd:e,Un:c,VC:l,nextRequestPolicy:a.B,
kN:a.policy.Mf,lm:a.lm,eh:a.policy,ir:a.Aa.ir,Cw:1E3*n5a(a.Aa),bv:null==(m=a.Z)?void 0:m.bv,mx:null==(n=a.Z)?void 0:n.mx,Xp:a.Xp,isPrefetch:b||a.Aa.isSuspended,rF:f,vF:d,NQ:h};a.policy.ac?(b=a.C,b=t5a(b,b.C),e.CF=b,a=a.C,b=C5a(a),0===b.length&&(b=a.G),a=t5a(a,b),e.DF=a):(a.nI(a.videoTrack.j),a.nI(a.audioTrack.j),e.BM=FZ(a.N));return e};
S6a=function(a,b){b=!b&&!iS(a.rd);if(a.Aa.isSuspended&&(a.Aa.tH||b)||a.K&&(0,g.FD)()<a.K||0<a.j.length)return!1;var c;if(null==(c=a.manifest.Qa)||!oNa(c,a.policy,a.D)||o_(a.audioTrack)&&o_(a.videoTrack))return!1;if(a.policy.To&&L_(a,a.audioTrack)&&L_(a,a.videoTrack))return a.policy.j&&a.Aa.va("sabrHeap",{a:""+j_(a.audioTrack),v:""+j_(a.videoTrack)}),!1;if(!a.B)return!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.j&&a.Aa.va("sabrnrp",{norh:1}),!0;c=Math.min(1E3*s_(a.Aa,
a.audioTrack),a.B.targetAudioReadaheadMs);b=Math.min(1E3*s_(a.Aa,a.videoTrack),a.B.targetVideoReadaheadMs);var d=Math.min(c,b),e=1E3*l_(a.audioTrack,!0),f=1E3*l_(a.videoTrack,!0);var h=e>d;d=f>d;if((!h||!d)&&a.policy.j&&a.policy.lh){var l=a.Aa.pc();l.car=e;l.vac=f;l.mar=c;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.Aa.va("sabrrnm",l)}!(c=h&&d)&&(c=a.policy.D)&&(a=a.Aa,a.Ta&&a.Ta.j&&a.Ta.B&&a.uc&&!CR(a.manifest)?(c=a.getCurrentTime(),e=a.Ta.j.Ze(),b=a.Ta.B.Ze(),e=e?
vL(e,c):c,c=b?vL(b,c):c,c=Math.min(e,c),isNaN(c)?c=!1:(a=QY(a.uc),c=c>=a-.01)):c=!1);return c?!1:!0};
T6a=function(a,b,c){var d={rd:a.rd,Xw:function(m,n){a.qa.mF(m,n)},
kp:a.policy.Mf,qN:a.policy.j},e=Y5a(b,a.policy,a.D)?2:1;e!==a.G&&(a.G=e,W6a(a));c=V6a(a,c);if(a.policy.j&&c.lm){for(var f=e="",h=g.u(c.lm),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.Aa.va("sabrbldrqs",{ctxts:e,misctxts:f})}g6a(b,c,a.Aa.uj());b=new y_(a.policy,b,a.manifest,a.D,a,d,a.Aa.xz());rZ(a.timing);return b};
Y6a=function(a,b){if(!b.isDisposed()&&!a.isDisposed()){if(a.policy.j&&b.isComplete()&&b instanceof y_){var c=a.Aa,d=c.va;var e=Object.assign(b.Xe.gs(),{rst:b.state,strm:b.xhr.AB(),d:j4a(b.Xe),cncl:b.xhr&&b.Ed.C?1:0});e=Object.assign(i6a(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.cw())b.dispose();else{if(b.wX())W6a(a),X6a(a);else if(b.Hn())a.gt(b);else{if(a.Aa.isSuspended&&!b.isComplete())return;X6a(a)}b.isDisposed()||b instanceof K_||(b.isComplete()?c=i5a(b,a.policy,a.D):(c=h5a(b,a.policy,
a.D),1===c&&(a.ma=!0)),0!==c&&(b=new z_(1,b.info.resource),b.j=2===c,T6a(a,b)))}}a.Aa.tf()};
X6a=function(a){for(;a.j.length&&a.j[0].YW(a.Ce());){var b=a.j.shift();Z6a(a,b)}a.j.length&&Z6a(a,a.j[0])};
Z6a=function(a,b){if(a.policy.ac){var c=new Set(b.Gq(a.Ce()));c=g.u(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof K_))){var f=a.C,h=f.manifest.Ac;d=B5a(f.C,h);f=B5a(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&b.il(e,a.Ce())){d=b.zk(e,a.Ce());e=b.yn(e,a.Ce());if(a.policy.D&&(f=e[0].j.info,(h=a.Aa.uj())&&f)){var l=b.aW();l!==h.qa.getVideoData().clientPlaybackNonce&&(h=BY(h.timeline,l))&&(h=h[0].getVideoData())&&(f.Ai()?h.D=f:h.B=f)}d=g.u(d);for(h=d.next();!h.done;h=
d.next()){f=h.value;a.policy.j&&b instanceof K_&&a.Aa.va("omblss",{s:f.info.Id()});h=f.info.j.info.Ai();l=f.info.j;if(a.videoData.L("html5_log_request_identifier_on_format_change"))if(h){var m=void 0,n=a.C,p=null==(m=b.bO(a.Ce()))?void 0:m.token;l!==n.D&&(n.D=l,n.CE(l,n.audioTrack,p))}else m=void 0,u5a(a.C,l,null==(m=b.bO(a.Ce()))?void 0:m.token);else h?(m=a.C,l!==m.D&&(m.D=l,m.CE(l,m.audioTrack))):u5a(a.C,l);l=h?a.audioTrack:a.videoTrack;b instanceof K_&&(l.N=!1,b instanceof K_&&(h?G2a(a.timing):
F2a(a.timing)));h_(l,e,f)}}}}else for(e=b.ZV()||FZ(a.N),c=new Set(b.Gq(a.Ce())),a.policy.D?d=c:d=[(null==(f=e.video)?void 0:nL(f.info,a.manifest.Ac))||"",(null==(h=e.audio)?void 0:nL(h.info,a.manifest.Ac))||""],e=g.u(d),d=e.next();!d.done;d=e.next())if(d=d.value,c.has(d)&&b.il(d,a.Ce()))for(f=b.zk(d,a.Ce()),f=g.u(f),h=f.next();!h.done;h=f.next())h=h.value,a.policy.j&&b instanceof K_&&a.Aa.va("omblss",{s:h.info.Id()}),l=b.yn(d,a.Ce()),n=(m=h.info.j.info.Ai())?a.audioTrack:a.videoTrack,b instanceof
K_&&(n.N=!1,b instanceof K_&&(m?G2a(a.timing):F2a(a.timing))),h_(n,l,h)};
$6a=function(a,b){for(var c=[],d=0;d<a.j.length;d++)b&&a.j[d]instanceof K_?c.push(a.j[d]):a.j[d].dispose();a.j=c};
W6a=function(a){a.lm.clear();if(0<a.videoData.sabrContextUpdates.size)for(var b=g.u(a.videoData.sabrContextUpdates.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;(null==(d=a.videoData.sabrContextUpdates.get(c))?0:d.sendByDefault)&&a.lm.add(c)}};
a7a=function(a){a.policy.rb&&(a.Z=void 0,a.Xp=0)};
b7a=function(a,b){if(b.Hn()||b.isDisposed()){var c=a.Aa,d=c.va,e=b.state;a=a.Ce();var f,h;if(null==(b=null==(f=b.Fg)?void 0:f.get(a)))b=void 0;else{f=0;a=b.Gq();for(var l=0;l<a.length;l++){var m=void 0;f+=(null==(m=b.qd.get(a[l]))?void 0:m.bytesReceived)||0}b=f}b=null!=(h=b)?h:-1;d.call(c,"sabromb",{s:e,tbytes:b})}else a.j.push(b),b.TF.push(a),rZ(a.timing)};
L_=function(a,b){return!a.Aa.fp&&qZ(b)&&(b.Vn()!==qZ(b)||a.Aa.isSuspended)};
c7a=function(a,b,c,d,e){this.Aa=a;this.policy=b;this.schedule=c;this.Sy=d;this.W=e;this.ma=NaN;this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1;this.Z=NaN};
d7a=function(a,b,c,d,e,f){return b.Rf&&b.Ie&&3===c?new c7a(a,b,d,e,f):null};
e7a=function(a,b){if(a.policy.vC){var c=b.info.Ob,d=hS(a.schedule);b=b.index.Kj;c=Math.max(1,d/c);a.Z=Math.round(1E3*Math.max(((c-1)*b+a.policy.tb)/c,b-a.policy.lk))}};
h7a=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.K,f=e>=a.policy.tx,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e<a.policy.xC&&(h=!0);a.K=c}c=d>=a.policy.lk&&!a.C;if(!f&&!c&&f7a(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.FD)()/1E3-(a.Sy.Wi()||0)-a.N.B-a.policy.tb;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){M_(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.yj;d<c&&(c=d)}else a.C&&(d=c+a.policy.tb-a.ma+a.policy.zC,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.yj))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&f7a(a,b))return g7a(a,b),NaN;if(a.j<=a.B.startTime)return M_(a,NaN,"y",b),a.clear(),NaN;if(!a.W(a.j,!1))return!g7a(a,b)&&h&&(M_(a,NaN,"t",b),a.clear()),NaN;h=a.j;M_(a,h,"s",b);a.clear();return h};
g7a=function(a,b){return a.W(a.j,!0)?!1:(M_(a,NaN,"ns",b),a.clear(),!0)};
f7a=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.C?a.policy.yj:a.policy.wC)};
M_=function(a,b,c,d){var e=a.D.Ss();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=(0,g.FD)().toFixed(0);e.ssr_f=(1E3*a.N.B).toFixed(0);e.ssr_fa=a.C?"1":"0";e.ssr_o=(1E3*a.Sy.Wi()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.B.j.index;b.Cn(a.B.Pa,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.B.Pa)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.B.Pa)).toFixed(0));a.Aa.va("ssr",e)};
i7a=function(){var a={};if(window.performance){var b=window.performance.memory;b&&(a.jsTotal=b.totalJSHeapSize,a.jsUsed=b.usedJSHeapSize,a.msTotal=b.mediaSourceSizeLimit,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.N_=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.H.call(this);var p=this;this.qa=a;this.schedule=b;this.policy=c;this.manifest=d;this.Ba=m;this.Ub=n;this.timing=new E2a(this.Ub);this.Z=new s2a(this.schedule,this.policy);this.Ta=null;this.rb=new g.Eu(this.tf,0,this);this.oE=new g.Eu(this.tf,1E3,this);this.Rb=new g.Eu(this.tf,void 0,this);this.Za=new g.Eu(this.tf,1E4,this);this.Bb=new g.Eu(this.paa,250,this);this.N=this.currentTime=NaN;this.Ga=this.fp=0;this.Zq=this.tH=this.isSuspended=!1;this.Qa=
"";this.fH=new $R(5);this.ac={};this.timestampOffset=NaN;this.tb=!1;this.bb=0;this.W=null;this.Ea=NaN;this.kb=this.La=!1;this.logger=new g.LU("dash");this.ir=0;this.Va=!1;this.Xa=0;this.Fd={getAudioTrack:function(){return p.audioTrack},
lW:function(){return p.manifest},
ojb:function(){return p.ra},
tf:function(){p.tf()},
XE:function(){p.fp=0;p.XE()}};
a=m&&m.Gq();m&&(w0a(m,this.manifest,this.policy),this.Ea=Date.now());this.j=new U2a(this,this.Z,c,this.manifest,e,a);c=Z2a(this.j,f,h&&h.id);this.audioTrack=new K4a(this,this.policy,c.audio,this.timing);this.videoTrack=new K4a(this,this.policy,c.video,this.timing);this.videoTrack.D.Ea=this.audioTrack.WN();this.Na={updateend:this.D3,error:this.x8};g.J(this,this.rb);g.J(this,this.oE);g.J(this,this.Rb);g.J(this,this.Za);c=this.policy.Tz&&this.policy.Tj?!rBa(this.videoTrack.j.info):!1;this.Jb=j3a({ej:this.policy.Z.ej||
c,Tj:this.policy.Tj&&!c,Du:this.policy.Du});this.K=d7a(this,this.policy,this.Jb,this.schedule,this.fH,function(I,L){return j7a(p,I,L)});
this.G=new O2a(this,this.manifest,this.policy,this.videoTrack,this.audioTrack,l);this.B=new iZ(this,this.manifest,this.videoTrack,this.audioTrack,this.policy);l=this.policy.xj?this.qa.getVideoData().jh:null;this.C=new q_(this,this.policy,this.videoTrack,this.audioTrack,this.ac,this.G,this.timing,this.Z,this.schedule,this.manifest,this.j,this.K,c,l);g.J(this,this.C);this.D=new v_(this,this.policy,this.videoTrack,this.audioTrack,this.manifest,e);g.J(this,this.D);y5a(this.D,f);this.ra=new R6a(this.qa,
this,this.policy,this.audioTrack,this.videoTrack,this.manifest,this.schedule,this.j,this.D,this.timing);g.J(this,this.ra);this.ma=this.qa.Qd.Kt.jz;var q,r;if(null==(q=this.ma)?0:null==(r=q.Yz)?0:r.LI){var t;this.uJ(null==(t=this.ma)?void 0:t.Yz.LI)}var v;if(null==(v=this.ma)?0:v.playbackStartPolicy){var x,B;SVa(this.policy,null==(x=this.ma)?void 0:x.playbackStartPolicy,3,null==(B=this.ma)?void 0:B.Kq())}if(this.policy.lh){e=this.Ce();var F;(f=e?null==(F=this.ma)?void 0:F.nY.get(e):void 0)&&this.ra.Rp(f)}if(!this.manifest.Z){var G;
F=null==(G=this.ma)?void 0:G.MX;(null==F?0:F.rI)&&(null==F?0:F.sI)&&zOa(this.manifest,F.rI,F.sI)}this.logger.debug("Created")};
k7a=function(a,b){var c=nL(b.j.info,a.manifest.Ac),d,e=(null==(d=a.Ba)?void 0:d.yn(c))||[];if(0===e.length)return a.va("ombmsi",{}),!1;a:{e=new aR(e);d=a.currentTime;e=g.u(e.eb);for(var f=e.next();!f.done;f=e.next())if(f=f.value,3===f.type&&d>=f.C&&d<=f.D){d=!0;break a}d=!1}if(!d)return a.va("ostmf",{ct:a.currentTime,a:b.j.info.Ai()}),!1;a.policy.Lm&&null!=(a=a.Ba)&&(a.qd.get(c).IG=!0);return!0};
l7a=function(a){if(!a.manifest.Ac)return!0;var b=a.qa.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&O_(a.qa)||b.L("html5_skip_live_preroll_onesie_post_live")&&O_(a.qa)&&(b.Xd||b.isPremiere))return a.va("ombpa",{}),!1;var c,d;if(a.policy.py&&!!(null==(c=a.ma)?0:null==(d=c.MX)?0:d.qaa)!==a.manifest.Xd)return a.va("ombplmm",{}),!1;c=b.Ub||b.liveUtcStartSeconds||b.vj;if(a.manifest.Xd&&c)return a.va("ombplst",{}),!1;if(a.manifest.Z)return a.va("ombab",{}),!1;c=Date.now();return CR(a.manifest)&&
!isNaN(a.Ea)&&c-a.Ea>1E3*a.policy.oG?(a.va("ombttl",{}),!1):a.manifest.We&&a.manifest.C||!a.policy.CC&&a.manifest.isPremiere||GT(b)?!1:!0};
m7a=function(a,b){var c=b.j,d=a.manifest.Ac;if(l7a(a))if(a.Ba&&a.Ba.qd.has(nL(c.info,d))){if(d=nL(c.info,d),k7a(a,b)){var e=new aR(a.Ba.yn(d)),f=function(h){try{if(h.Hn())a.handleError(h.ph(),h.Ss()),n_(b,h),cR(h.info)&&t_(a.C,b,c,!0),a.tf();else if(q5a(a.C,h)){var l;null==(l=a.G)||Q2a(l,h.info,a.W);a.tf()}}catch(m){h=VK(m),a.handleError(h.errorCode,h.details,h.severity),a.Lk()}};
c.C=!0;dNa(e)&&(M4a(b,new jZ(a.policy,d,e,a.Ba,f)),rZ(a.timing))}}else a.va("ombfmt",{})};
P_=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.currentTime;var c=u_,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.zi(b)||0;e.Ga!==b&&(e.La={},e.Ga=b,CZ(e,e.j));b=!e.j.isLocked()&&-1<e.ma&&(0,g.FD)()-e.ma<1E3*e.policy.aG;var f=e.nextVideo&&3*GZ(e,e.nextVideo.info)<hZ(e.Ea);if(!b||f)BZ(e),DZ(e),e.Ba=e.Ba||e.nextVideo!==e.C;e.nextVideo&&!e.nextVideo.index.isLoaded()&&(e.Ga=-1);c(a,d,e.nextVideo);u_(a,a.audioTrack,a.j.B)};
Q_=function(a,b){a.tH=b;a.policy.Ba||(a.logger.debug("Suspended."),a.isSuspended=!0,a.policy.sx&&(a.oE.stop(),a.rb.stop()))};
P2a=function(a,b,c,d){W4a(a.videoTrack,d,c,b);W4a(a.audioTrack,d,c,b);BR(a.manifest,d,!0);BR(a.manifest,d,!1);a.va("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
n7a=function(a){a.logger.debug("Rebuffering.");a.Zq=!0;if(a.policy.Ga&&a.Ta){var b,c,d,e;a.va("lr_rb",{c:a.currentTime,s:a.Uf(),ab:sL(a.Ta.j.Ze()),ala:null==(b=g_(a.audioTrack))?void 0:b.Id(),alr:null==(c=a.audioTrack.B)?void 0:c.Id(),vb:sL(a.Ta.B.Ze()),vla:null==(d=g_(a.videoTrack))?void 0:d.Id(),vlr:null==(e=a.videoTrack.B)?void 0:e.Id()})}};
o7a=function(a){a.policy.Na=!1;try{a.XE()}catch(b){g.KF(b)}};
r7a=function(a,b,c){c=void 0===c?!1:c;a.policy.Ba&&(a.logger.debug("disable updateMetadataWithoutMediaSource"),a.policy.Ea&&a.va("loader",{setsmb:0}),a.Lk(),a.policy.Ba=!1);a.logger.debug("attaching media source");p7a(a);if(RVa(a.policy))a.Ta=b;else{if(!IL(b)){var d=qZ(a.videoTrack),e=qZ(a.audioTrack);EBa(b,(d?d.info.j:a.videoTrack.j).info,(e?e.info.j:a.audioTrack.j).info,a.policy.nh)}q7a(a,b,c);try{a.tf()}catch(f){g.KF(f)}}};
q7a=function(a,b,c){c=void 0===c?!1:c;f_(a.videoTrack,b.B||null);f_(a.audioTrack,b.j||null);a.Ta=b;a.Ta.D=!0;c||a.resume();g.dG(b.j,a.Na,a);g.dG(b.B,a.Na,a)};
p7a=function(a){a.Ta&&a.Ta.j&&a.Ta.B&&(eG(a.Ta.j,a.Na,a),eG(a.Ta.B,a.Na,a));f_(a.audioTrack,null);f_(a.videoTrack,null);a.Ta&&(a.Ta.D=!1);a.Ta=null};
s7a=function(a){a.Ta&&a.Ta.Pg()&&(a.fz(),a.policy.nC&&a.handleError("fmt.unplayable",{unexpected:1},1))};
u7a=function(a,b){if(!a.isDisposed())if(XV(a.policy)){if(!z5a(a.D,b)){var c=a.D.B;y5a(a.D,b);var d=!1;d=b.isLocked()&&"m"===b.reason&&A5a(a.D,b.j);var e=a.policy.zf&&"l"===b.reason;c=c.j>b.j&&"b"===b.reason;d||e||c?a.qa.po({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}):R_(a)}}else if(!$2a(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j});
c=a.j.j;t7a(a,b3a(a.j,b));P_(a);d=b.isLocked()&&"m"===b.reason&&a.j.Ba;e=a.policy.zf&&"l"===b.reason&&p_(a.videoTrack);c=c.j>b.j&&"b"===b.reason;var f=a.j.Za&&!BL();d||e||c||f?a.qa.po({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):R_(a)}};
v7a=function(a,b,c){if((!a.Ta||FL(a.Ta)&&!a.policy.Km)&&!a.B.Uf()&&(XV(a.policy)||p_(b)&&b.j.hg()&&a.j.ra)){var d=a.currentTime+w2a(a.Z,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)});
V4a(b,d)}};
t7a=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+qL(b.video.info)}),w7a(a.qa,new wZ(b.video,b.reason)));
if(a.j.Xa){var c=FZ(a.j,"a");a.qa.Fw(new wZ(c.audio,c.reason))}};
R_=function(a){g.Fu(a.rb)};
x7a=function(a,b){var c=(0,g.FD)()-b,d=1E3*l_(a.audioTrack,!0),e=1E3*l_(a.videoTrack,!0);a.logger.debug(function(){return"Appends paused for "+c});
if(a.policy.j&&(a.va("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),YV(a.policy))){var f=hZ(a.Z);a.va("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:x2a(a.Z,a.Zq,f),bw:f.toFixed(),js:a.Uf(),re:+a.Zq,ps:(a.policy.TB||"").toString(),rn:(a.policy.RB||"").toString()})}};
y7a=function(a){var b=a.policy;if(b.D&&b.Fa.L("html5_pause_ssap_append_on_nonvideo")&&(f5a(a.videoTrack)||f5a(a.audioTrack)))return"ssap";if(d5a(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(a.policy.Po||o_(a.audioTrack)||o_(a.videoTrack)&&"f"!==a.videoTrack.j.info.ub)return"";if(a.B.Uf()){var c=a.Z;b=a.videoTrack;var d=a.audioTrack;if(c.policy.B){var e=c.policy.hd;YV(c.policy)&&(e=x2a(c,!1,hZ(c)));c=e;b=l_(d,!0)>=c&&l_(b,!0)>=c}else b.C.length||d.C.length?
(e=b.j.info.Ob+d.j.info.Ob,e=10*(1-hZ(c)/e),c=Math.max(e,c.policy.hd),b=l_(d,!0)>=c&&l_(b,!0)>=c):b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.C.length&&1===b.D.B.length&&P3a(b.D).info.K<b.La)return"seek"}b=!a.policy.jj||10>a.currentTime||360<a.videoTrack.j.info.video.j;d=YV(a.policy)&&a.policy.Fl;if(!a.Zq||!d&&b)return"";b=a.policy.jj;YV(a.policy)&&(b=x2a(a.Z,a.Zq,hZ(a.Z)));b=Z4a(a.videoTrack,a.currentTime,b)||Z4a(a.audioTrack,a.currentTime,b);return YV(a.policy)?b?"mbnm":"":(0<a.videoTrack.C.length||
0<a.audioTrack.C.length||j5a(a.C,a.videoTrack,a.audioTrack)||j5a(a.C,a.audioTrack,a.videoTrack))&&b?"nord":""};
z7a=function(a){if(a.K){var b=a.K.tf(a.audioTrack,wL(a.Ta.B.Ze()));b&&a.qa.seekTo(b,{Tv:!0,wd:"pollSubsegmentReadahead",yq:!0})}};
E7a=function(a,b,c){if(c.MO())return!0;if(!c.ZG())return!1;var d=qZ(b);if(!d||7===d.info.type)return!1;var e=a.policy.eF;if(e&&!d.info.hf&&d.info.K<(d.info.C-a.currentTime)*e)return!1;var f;if(null==(f=a.G)||1===f.B||2===f.B||0!==f.B&&b===f.Ba&&d.info.Pa>$4a(f.W))return a.B.Uf()&&R_(a),!1;A7a(a,b,c,d.info);if(a.manifest.B&&0===d.info.Xb){if(e=B7a(b,c,d))f=g_(b),a.va("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Pa});f=g.kL(d.info.j.info);a.policy.Ub&&f&&!e&&LNa(d)}e=
a.K&&!!a.K.D&&b.j.info.audio;f=a.manifest.isManifestless||d.G;if(!(a.manifest.B&&0!==d.info.Xb||f&&!e)&&C7a(a,c,d))return!0;if(e)return!1;e=s_(a,b);if(d.info.C>a.currentTime+e)return a.policy.B&&!a.Ga&&(a.Ga=(0,g.FD)()),!1;a.Ga&&(a.Ga=0);var h;a.policy.Ic&&c===(null==(h=a.Ta)?void 0:h.j)&&a.Va&&(0===c.jI()?(a.Va=!1,a.policy.Ic=!1):a.Xa=c.jI());if(!D7a(a,c,d))return!1;b.ju(d);e3a(a.j,d.info);a.logger.debug(function(){return"Appended "+d.info.Id()+", buffered: "+sL(c.Ze())});
return!0};
D7a=function(a,b,c){var d=a.policy.Ga?(0,g.FD)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=F7a(a,c,f)||f);var h=CO(f);f=a.policy.Ga?(0,g.FD)():0;e=G7a(a,b,h,c.info,e);a.policy.Ga&&(!c.info.Xb||c.info.hf||10>c.info.C)&&(b=b.pc({as:c.info.Id(),pdur:Math.round(f-d),adur:Math.round((0,g.FD)()-f)}),b.omt=(a.getCurrentTime()+a.Pc()).toFixed(3),b.to=a.Pc(),a.va("sba",b));if("s"===e)return a.La&&(a.logger.debug("Retry succeed, back to normal append logic."),a.La=!1,a.kb=!1),a.bb=0,!0;if("i"===e||"x"===e)return H7a(a,
"checked",e,c.info),!1;if("q"===e){if(!a.La)return a.logger.debug("QuotaExceeded, retrying."),a.La=!0,!1;if(a.policy.qC&&!a.kb)return a.kb=!0,a.qa.seekTo(a.currentTime,{wd:"quotaExceeded",yq:!0}),!1;c.info.dh()?(b=a.policy,b.ra=Math.floor(.8*b.ra),b.Oc=Math.floor(.8*b.Oc),b.ma=Math.floor(.8*b.ma)):(b=a.policy,b.Va=Math.floor(.8*b.Va),b.ma=Math.floor(.8*b.ma));XV(a.policy)?yZ(a.D.j,c.info.j,!1):EZ(a.j,c.info.j)}a.qa.po({reattachOnAppend:e});return!1};
F7a=function(a,b,c){var d;if(d=a.policy.Ow&&a.Ta&&!a.Ta.Z&&!a.qa.zH())b=b.info.j.info,d=b.Me()&&hL(b)&&b.video&&3840>b.video.width&&b.video.width>b.video.height;if(d&&(a.Ta.Z=!0,$K('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=M3a(c),a.policy.j&&a.va("sp4k",{s:!!c}),c};
H7a=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",XV(a.policy)?!d.j.info.video||0<zZ(a.D.j).size||yZ(a.D.j,d.j,!1):!d.j.info.video||0<zZ(a.j.G).size||EZ(a.j,d.j)):"i"===c&&(15>a.bb?(a.bb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=$Q(d);var h;d.mrs=null==(h=a.Ta)?void 0:JL(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
d4a=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=oL(f.j[p].info.mimeType)||f.j[p].info.dh();if(d===m)if(m=f.j[p].index,m.Cn(b.Pa)){if(!f.Va){h=m;m=b;var n=h.hn(m.Pa);n&&n.startTime!==m.startTime?(h.segments=[],h.IL(m),h=!0):h=!1}h&&(l=b.Pa)}else m.IL(b),h=!0}if(0<=l){var p={};f.oa("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;D2a(a.B,b,d,f);a.G.gQ(b,c,d,e);b.Pa===a.manifest.We&&f&&zR(a.manifest)&&b.startTime>zR(a.manifest)&&(a.manifest.Na=b.startTime+(isNaN(a.timestampOffset)?
0:a.timestampOffset),a.B.Uf()&&a.B.j<a.manifest.Jd()&&a.B.seek(a.manifest.Jd(),{}))};
A7a=function(a,b,c,d){b=g_(b);!b||b.hf||ZQ(b,d)||c.abort();!c.yD()||BL()?c.fS(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.yD()&&a.va("ctu",{ct:BL(),prev_c:c.yD(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.Il&&b&&(d=0+b.duration,b=-b.j,0===c.pD()&&d===c.LH()||c.oR(0,d),b!==c.Pc()&&(c.bq(b),RZ&&f4a(a.audioTrack.WN(),c.gO())))};
C7a=function(a,b,c){c.info.j.hg();var d=c.info.j.j;if(!d||!b.ZG()||b.Ev()===d)return!1;var e=d,f=b.TH();if(a.policy.Kp&&f&&b.isView()&&g.kL(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=EMa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.va("fenc",{})}a.policy.Ow&&(f=F7a(a,c,new zO([e])))&&(e=CO(f));f=null;(h=c.info.j.Jv(0,c.info.clipId))&&(f=h.eb[0]);a.policy.Ga&&a.va("sbi",b.pc({as:c.info.Id()}));a.policy.Cx&&b.abort();d=G7a(a,b,e,f,d);if("s"!==d)return H7a(a,
"sepInit",d,c.info),!0;c.info.dh()?J2a(a.timing):K2a(a.timing);a.logger.debug(function(){return"Appended init for "+c.info.j.info.id});
return b.dk()};
B7a=function(a,b,c){if(null==b.Ev()){a=g_(a);if(!(b=!a||a.j!==c.info.j)){a:if(a=a.N,c=c.info.N,a.length!==c.length)c=!1;else{for(b=0;b<a.length;b++)if(!g.Vb(a[b],c[b])){c=!1;break a}c=!0}b=!c}return b}a=b.Ev();c.info.j.Qz()&&MNa(c);c=c.info.j.j;return a!==c&&!g.Vb(a,c)};
G7a=function(a,b,c,d,e){var f=0;if(a.policy.D&&d&&d.clipId&&a.uc){var h;f=((null==(h=a.uc)?void 0:NY(h,d.clipId))||0)/1E3}try{a.policy.D&&b.Pc()!==f&&b.bq(f),b.appendBuffer(c,d,e)}catch(l){if(l instanceof DOMException){if(11===l.code)return"i";if(12===l.code)return"x";if(22===l.code||0===l.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:sL(b.Ze()).replace(/,/g,"_"),vheap:j_(a.videoTrack),aheap:j_(a.audioTrack),message:g.gg(l.message,3),track:a.Ta?b===
a.Ta.B?"v":"a":"u"},i7a()),a.handleError("player.exception",b),"q";g.KF(l)}return"u"}return a.Ta.Pg()?"m":"s"};
pZ=function(a,b,c){a.qa.seekTo(b,c)};
PZ=function(a,b){a.qa.wJ(b)};
s_=function(a,b){if(a.La&&!a.Zq)return 3;if(a.isSuspended)return 1;var c;if(a.policy.DC&&(null==(c=a.Ta)?0:EL&&c.Ta&&!1===c.Ta.streaming))return 4;c=(b.j.info.audio?a.policy.Va:a.policy.ra)/(b.Ob*a.policy.Em);if(0<a.policy.Oo&&a.Ta&&FL(a.Ta)&&(b=b.j.info.video?a.Ta.B:a.Ta.j)&&!b.dk()){b=b.Ze();var d=tL(b,a.currentTime);0<=d&&(b=a.currentTime-b.start(d),c+=Math.max(0,Math.min(b-a.policy.Oo,a.policy.iF)))}0<a.policy.ma&&(c=Math.min(c,a.policy.ma));return c};
I7a=function(a,b){JU(b,"cms",function(c){a.policy.j&&a.va("pathprobe",c)},function(c){a.qa.handleError(c)})};
J7a=function(a,b){if(a.Ta&&a.Ta.D&&!a.Ta.Pg()&&(b.Yu=l_(a.videoTrack),b.B=l_(a.audioTrack),a.policy.j)){var c=j_(a.videoTrack),d=j_(a.audioTrack),e=sL(a.Ta.B.Ze(),"_",5),f=sL(a.Ta.j.Ze(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=gZ(a.Z);a.logger.debug(function(){return SK(b.j)})};
K7a=function(a,b){a.W=b;a.G&&(a.G.G=b);a.W.yR(a.videoTrack.j.info.Me());a.C.B=a.W};
L7a=function(a,b){if(a.Ta&&a.Ta.B){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.currentTime!==b&&a.resume();if(a.B.Uf()&&a.Ta&&!a.Ta.Pg()){var c=a.currentTime<=b&&b<a.currentTime+10,d=uL(a.Ta.B.Ze(),a.currentTime+k5a);c&&d&&(a.B.G=!1)}a.B.Uf()||(a.currentTime=b);g.Fu(a.oE)}};
M7a=function(a,b){var c=S4a(a.videoTrack).find(function(d){return d.startTime>=b&&j7a(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
j7a=function(a,b,c){if(!(a.videoTrack.j.hg()&&a.audioTrack.j.hg()&&a.Ta&&a.Ta.B&&a.Ta.j))return!1;if(c&&a.manifest.isManifestless&&(-1===a.videoTrack.K||-1===a.audioTrack.K))return!0;var d=mZ(a.videoTrack,b,c);if(isNaN(d))return!1;a=mZ(a.audioTrack,a.policy.Ie?b:d,c);return isNaN(a)?!1:!0};
S_=function(a){a.Lk();a.B.Uf()&&a.logger.debug("seeking cancelled by seek-to-head");a.K&&e7a(a.K,a.videoTrack.j);R_(a);a=a.B;var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);U4a(a.videoTrack);U4a(a.audioTrack);a.policy.G||yOa(a.manifest);a.manifest.isManifestless&&!a.policy.G&&(a.B=!0,a.C=0);a.Aa.currentTime=b;a.G=!0;a.D=new KL;return a.D};
u_=function(a,b,c,d){if(void 0===d?0:d)b.Ea=!0;b.j!==c&&(a.logger.debug(function(){return"Setting target itag: "+c.info.id+" (was "+b.j.info.id+")"}),b.j=c)};
N7a=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.logger.debug(function(){return"Timestamps will be made relative to "+a.timestampOffset}),a.G.K=a.timestampOffset,a.qa.qQ(a.timestampOffset),a.manifest.isManifestless&&(a.manifest.timestampOffset=a.timestampOffset),a.videoTrack.bq(a.timestampOffset),a.audioTrack.bq(a.timestampOffset))};
n5a=function(a){var b=a.Zl().filter(function(d){return"ad"===d.namespace});
b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.getCurrentTime())return c.start/1E3;return Infinity};
g.T_=function(a){this.bd=a};
U_=function(){g.cG.apply(this,arguments)};
V_=function(a,b,c,d){U_.call(this);var e=this;this.C=-1;this.j={};this.D=new g.Eu(this.G,0,this);g.J(this,this.D);this.B=new g.Eu(function(){e.isDisposed()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.J(this,this.B);d.subscribe("fairplay_next_need_key_info",this.K,this)};
O7a=function(a){if(!(28>=a.length))for(var b=(0,g.e_)([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=GO(b);a=rg(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++}};
W_=function(a,b){U_.call(this);var c=this;this.C=a;this.j=[];this.B=new g.Eu(function(){c.oa("log_qoe",{wvagt:"timer",reqlen:c.j?c.j.length:-1});if(c.j){if(0<c.j.length){var d=c.j.shift();P7a(c,d.info)}0<c.j.length&&(d=c.j[0].time-(0,g.FD)(),c.B.start(Math.max(0,d)))}},0);
g.J(this,this.B);b.subscribe("widevine_set_need_key_info",this.D,this)};
P7a=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.C.size)c=!0;else{for(var d=g.u(a.C.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.oa("log_qoe",{wvagt:"reqnews",canskip:c});c||a.oa("rotated_need_key_info_ready",b)};
Q7a=function(a){var b=a.interval,c=a.retries;this.url=a.url;this.interval=b;this.retries=c};
R7a=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
S7a=function(a){var b=EO(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=uQ(b.slice(d+2));if(null==b)return null;a=new R7a(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.kBa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new Q7a({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,retries:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.B=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.u(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),2===e.length&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
T7a=function(a,b,c){c=void 0===c?"":c;g.H.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.j=new g.Al(5E3,2E4,.2)};
U7a=function(a,b,c){a.onSuccess=b;a.onError=c};
W7a=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(cI("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=S7a(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else V7a(a,e)},
onError:function(e){V7a(a,e)}};
c&&(b=ifa(b,"access_token",c));g.fC(b,d)};
V7a=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)};
Y7a=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){cI("drm_net_r",void 0,a.timer);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=rg(f.license)}catch(v){g.KF(v)}if(0!==h||l){l=new R7a(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.u(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=X7a[q.trackType];if(r){"HD"===r&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");
h[r]||(m.push(r),h[r]=!0);var t=null;try{t=rg(q.keyId)}catch(v){g.KF(v)}t&&(n[g.fg(t,4)]=r)}}l.B=m;l.j=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.PU="Bearer "+d);g.HE(c,"player/get_drm_license",b,e)};
Z7a=function(a,b,c,d){g.cG.call(this);this.videoData=a;this.X=b;this.W=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.N=this.ra=!1;this.C=null;this.Ea=[];this.D=[];this.Z=!1;this.j={};this.Ba=NaN;this.status="";this.K=NaN;this.B=a.K;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.X.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.ra&&(a.vvt=this.videoData.ra,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.X.ra&&(a.authuser=this.X.ra);this.X.pageId&&(a.pageid=this.X.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.mc()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.G=a;this.G.session_id=d;this.ma=!0;"widevine"===this.B.flavor&&(this.G.hdr="1");"playready"===this.B.flavor&&(b=Number(SR(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.G.mfpe=""+b),this.ma=!1);b="";g.LR(this.B)?KR(this.B)?(d=c.B)&&(b="https://web.archive.org/web/20240102114909/https://www.youtube.com/api/drm/fps?ek="+
Mca(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.B.B;this.baseUrl=b;this.fairplayKeyId=Ol(this.baseUrl,"ek")||"";if(b=Ol(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ga=this.videoData.L("html5_use_drm_retry");this.Ea=c.Me?[g.fg(c.initData,4)]:c.C;X_(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
c8a=function(a,b){X_(a,{createkeysession:1});a.status="gr";cI("drm_gk_s",void 0,a.videoData.La);a.url=$7a(a);try{a.C=b.createSession(a.W,function(c){X_(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.oa("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.C&&(a8a(a.C,function(c,d){b8a(a,c,d)},function(c,d,e){if(!a.isDisposed()){d=void 0;
var f=1;g.LR(a.B)&&g.sS(a.X)&&a.X.L("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.X.L("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(X_(a,{onkyadd:1}),a.N||(a.oa("sessionready"),a.N=!0))},function(c){a.Pp(c)}),g.J(a,a.C))};
$7a=function(a){var b=a.baseUrl;Iza(b)||a.error("drm.net",2,"t.x");if(!Ol(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.X.experiments.experiments[e]});
0<c.length&&(a.G.fexp=c.join())}c=g.u(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=ifa(b,d,a.G[d]);return b};
b8a=function(a,b,c){if(!a.isDisposed())if(b){X_(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":d8a(a,b);return;default:a.oa("ctmp","message_type",{t:c,l:b.byteLength})}a.ra||(cI("drm_gk_f",void 0,a.videoData.La),a.ra=!0,a.oa("newsession",a));if(HR(a.B)&&(b=e8a(b),!b))return;g.LR(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=LGa(g.fg(b)));b=new T7a(b,++a.requestNumber,a.videoData.La);U7a(b,function(d){f8a(a,
d)},function(d,e,f){if(!a.isDisposed()){var h=0,l;
(l=3<=d.j.B)||(l=a.Ga&&36E4<(0,g.FD)()-a.Ba);l&&(h=1,e="drm.net.retryexhausted");X_(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(UK(h),d)&&g8a(a,d)}});
g.J(a,b);h8a(a,b)}else a.error("drm.unavailable",1,"km.empty")};
d8a=function(a,b){X_(a,{sdpvrq:1});a.K=Date.now();if("widevine"!==a.B.flavor)a.error("drm.provision",1,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.X.j);c=g.Ml("https://web.archive.org/web/20240102114909/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:EO(b)}),responseType:"arraybuffer"};
g.iC(c,b,3,500).then(iP(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=EO(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.oa("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.K)/1E3,a.K=NaN,a.oa("ctmp","provs",{et:f.toFixed(3)}),a.C&&a.C.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),iP(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
Y_=function(a){var b;if(b=a.ma&&null!=a.C)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b};
h8a=function(a,b){a.status="km";cI("drm_net_s",void 0,a.videoData.La);if(a.videoData.useInnertubeDrmService()){var c=new g.GE(a.X.lk),d={context:g.ara(c.config_||g.gE())};d.drmSystem=i8a[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.fg(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.X.j)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.ra&&(d.context.user.credentialTransferTokens=[{token:a.videoData.ra,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.tb&&(d.context.user.kidsParent={oauthToken:a.videoData.tb});g.LR(a.B)&&(d.fairplayKeyId=g.fg(Nca(a.fairplayKeyId)));g.JS(a.X,g.$T(a.videoData)).then(function(l){Y7a(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.JS(a.X,g.$T(a.videoData)).then(function(l){W7a(b,a.url,l);
a.status="rs"})};
f8a=function(a,b){if(!a.isDisposed())if(X_(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{cI("drm_kr_s",void 0,a.videoData.La);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var c=a.B.B.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.oa("newlicense",b.heartbeatParams);b.B&&(a.D=b.B,a.videoData.useInnertubeDrmService()&&
!a.videoData.qC&&a.oa("newlicense",new Q7a({})),a.videoData.qC=!0,a.Z=ms(a.D,function(d){return d.includes("HDR")}));
b.j&&(a.X.L("html5_enable_vp9_fairplay")&&KR(a.B)?(c=g.fg(Nca(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=Yc(b.j,function(d){return{type:d,status:"unknown"}}));
IR(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=rg(EO(b.message)):JR(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=LGa(g.fg(b.message)));a.C&&(X_(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){cI("drm_kr_f",void 0,a.videoData.La);Y_(a)||(X_(a,{ksApiUnsup:1}),a.oa("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.gg(d.message,3);
a.error("drm.keyerror",1,d)}));
a.N&&(a.Ba=(0,g.FD)());g.LR(a.B)&&a.oa("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.X.L("html5_enable_vp9_fairplay")&&KR(a.B)&&a.oa("qualitychange",j8a(a.D))}};
g8a=function(a,b){var c=b.j.getValue();c=new g.Eu(function(){h8a(a,b)},c);
g.J(a,c);c.start();g.Bl(b.j);X_(a,{rtyrq:1})};
k8a=function(a,b){for(var c=[],d=g.u(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)};
l8a=function(a){var b={};b[a.status]=Y_(a)?k8a(a,"."):a.D.join(".");return b};
m8a=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};
n8a=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
o8a=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
X_=function(a,b){var c=void 0===c?!1:c;SK(b);(c||a.X.Uc())&&a.oa("ctmp","drmlog",b)};
p8a=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};
j8a=function(a){return g.Fb(a,"UHD2")||g.Fb(a,"UHD2HDR")?"highres":g.Fb(a,"UHD1")||g.Fb(a,"UHD1HDR")?"hd2160":g.Fb(a,"HD")||g.Fb(a,"HDHDR")?"hd1080":g.Fb(a,"HD720")||g.Fb(a,"HD720HDR")?"hd720":"large"};
e8a=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=lga(new DOMParser,g.ee(b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array((0,g.e_)(Sca(a.childNodes[0].nodeValue)).buffer):null:null};
Z_=function(a,b,c,d,e,f){f=void 0===f?!1:f;g.H.call(this);this.element=a;this.Z=b;this.initData=c;this.j=d;this.B=e;this.W=f;this.sessionId="";this.N=this.K=this.C=this.G=null;this.D=new g.aL(this);g.J(this,this.D);q8a(this)};
q8a=function(a){a.j?(a.D.T(a.j,"message",a.E3),a.D.T(a.j,"keystatuseschange",a.Pp),a.j.closed&&a.j.closed.then(iP(function(){a.isDisposed()||g.qC("xboxone")&&a.C&&a.C("closed")}),null)):a.B&&(TC(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.UY),TC(a.D,a.B,["mskeyerror","webkitkeyerror"],a.TY),TC(a.D,a.B,["mskeyadded","webkitkeyadded"],a.SY))};
a8a=function(a,b,c,d,e){a.G=b;a.C=c;a.K=d;a.N=e};
r8a=function(a,b,c){g.KF(c);a.C&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.C(b))};
$_=function(a,b,c,d){d=void 0===d?!1:d;g.H.call(this);this.element=a;this.j=b;this.va=c;this.N=d;this.K={};this.D=null;this.G=new g.aL(this);this.C=this.B=null;g.J(this,this.G)};
t8a=function(a,b){b=s8a(b,a.j.Za);b=a.C.createSession("video/mp4",b);return new Z_(null,null,null,null,b,a.N)};
u8a=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.C.createSession("video/mp4",b,c);return new Z_(null,null,null,null,a)};
v8a=function(a,b){var c=a.K[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.K[b.sessionId]=c);return c};
s8a=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};
a0=function(){this.keys=[];this.values=[]};
y8a=function(a,b,c){g.cG.call(this);this.element=a;this.videoData=b;this.X=c;this.j=this.videoData.K;this.drmSessionId=this.videoData.drmSessionId||g.ysa();this.B=new Map;this.K=new a0;this.N=new a0;this.C=[];this.Na=2;this.ra=new g.aL(this);this.Qa=this.Ga=!1;this.heartbeatParams=null;this.Ea=this.W=!1;this.G=null;this.La=!1;this.Ba=this.X.L("html5_eme_ignore_teardown_errors");(a=this.element)&&(a.addKey||a.webkitAddKey)||FR()||FOa(c.experiments);this.X.L("html5_enable_vp9_fairplay")&&KR(this.j)?
c=w8a:(c=this.videoData.Cm,c="fairplay"===this.j.flavor||c?mT:w8a);this.Z=c;this.D=new $_(this.element,this.j,this.rJ.bind(this),this.Ba);g.J(this,this.D);GR(this.j)&&(this.ma=new $_(this.element,this.j,this.rJ.bind(this),this.Ba),g.J(this,this.ma));g.J(this,this.ra);c=this.element;this.j.keySystemAccess?this.ra.T(c,"encrypted",this.Y8):TC(this.ra,c,GR(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.v9);x8a(this);a:switch(a=this.j,c=this.B,a.flavor){case "fairplay":19.2999<woa()?(c=a.Yx,a=
a.Xx,a>=c&&(a=.75*c),b=.5*(c-a),c=new V_(b,c,c-b-a,this)):c=null;break a;case "widevine":c=new W_(c,this);break a;default:c=null}if(this.G=c)g.J(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.MU,this),this.G.subscribe("log_qoe",this.ij,this);FOa(this.X.experiments);this.ij({cks:this.j.qh()})};
x8a=function(a){var b=a.D.tM();b?b.then(iP(function(){z8a(a)}),iP(function(c){if(!a.isDisposed()){g.KF(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.oa("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ij({mdkrdy:1}),a.W=!0);
a.ma&&(b=a.ma.tM())};
B8a=function(a,b,c){a.Qa=!0;c=new MZ(b,c);a.X.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));A8a(a,c)};
A8a=function(a,b){if(!a.isDisposed()){a.ij({onInitData:1});if(a.X.L("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.N.get(b.initData);b=a.K.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.K.remove(c);a.N.remove(c)}a.ij({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Ga&&!a.videoData.isLivePlayback)b0(a);else{if(!(a.X.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Me)){a.Ga=!0;c=b.cryptoPeriodIndex;var d=b.j;G3a(b);b.Me||(d&&b.j!==d?a.oa("ctmp","cpsmm",
{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.oa("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.oa("widevine_set_need_key_info",b)}}else a.MU(b)}};
z8a=function(a){if(!a.isDisposed())if(a.X.L("html5_drm_set_server_cert")&&!g.PJ(a.X)||KR(a.j)){var b=a.D.setServerCertificate();b?b.then(iP(function(c){a.X.Uc()&&a.oa("ctmp","ssc",{success:c})}),iP(function(c){a.oa("ctmp","ssce",{n:c.name,
m:c.message})})).then(iP(function(){C8a(a)})):C8a(a)}else C8a(a)};
C8a=function(a){a.isDisposed()||(a.W=!0,a.ij({onmdkrdy:1}),b0(a))};
D8a=function(a){return"widevine"===a.j.flavor&&a.videoData.L("html5_drm_cpi_license_key")};
b0=function(a){if((a.Qa||a.X.L("html5_widevine_use_fake_pssh"))&&a.W&&!a.Ea){for(;a.C.length;){var b=a.C[0],c=D8a(a)?H3a(b):g.fg(b.initData);if(KR(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if("fairplay"!==a.j.flavor||KR(a.j)){a.C.shift();continue}else a.B.delete(c);G3a(b);break}}a.C.length&&a.createSession(a.C[0])}};
E8a=function(a){var b;if(b=g.sC()){var c;b=!(null==(c=a.D.B)||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.IO(b),a.oa("ctmp","drm",{metrics:b}))};
F8a=function(a){g.H.call(this);var b=this;this.qa=a;this.Fa=this.qa.U();this.videoData=this.qa.getVideoData();this.jE=0;this.G=this.B=!1;this.D=0;this.C=g.EJ(this.Fa.experiments,"html5_delayed_retry_count");this.j=new g.Eu(function(){c0(b.qa)},g.EJ(this.Fa.experiments,"html5_delayed_retry_delay_ms"));
g.J(this,this.j)};
K8a=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.qa.bl.D&&d&&"22"===d.itag)return a.qa.bl.D=!0,a.ke("qoe.restart",{reason:"fmt.unplayable.22"}),G8a(a.qa),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f=a.videoData.zaa)c.mimeType=f.type,a.va("3pp",{url:f.url});c.ns="3pp";a.qa.xg(b,1,"VIDEO_UNAVAILABLE",SK((new TK(b,c,1)).details));return!0}var h=a.jE+3E4<(0,g.FD)()||a.j.isActive();if(a.Fa.L("html5_empty_src")&&
a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.ke("auth",c),!0;h||ZUa(a.qa.An())||(c.nonfg="paused",h=!0,a.qa.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:tBa(e)||jL(e))&&(bPa(a.Fa.G,e.ub),c.acfallexp=e.ub,f=h=!0);!h&&0<a.C&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.qa.Aa;!h&&((null==d?0:iL(d))||(null==d?0:hL(d)))&&(bPa(a.Fa.G,d.ub),f=h=!0,c.cfallexp=d.ub);if(!h)return H8a(a,c);a.jE=(0,g.FD)();h=a.videoData;if(h.bb){h=h.bb.dW();
var l=Date.now()/1E3+1800;h=h<l}else h=!1;c.e=b;c.bkg=V0a();h&&(c.staleprog="1");a.ke("qoe.restart",c);if(h&&I8a(a))return J8a(a),!0;if(!(!g.qC("philips")||"fmt.unplayable"===b&&e&&e.Ea||"GAME_CONSOLE"===a.Fa.j.cplatform))try{window.close()}catch(m){}d&&iL(d)?(f=a.Fa.G,f.W=!0,f=f.B=!0):e?(b=(b=g_(e.videoTrack)||e.videoTrack.B)?b.j:e.videoTrack.j,b.K+=1,XV(e.policy)?yZ(e.D.j,b,!0):EZ(e.j,b,!0)):a.videoData.bb&&a.videoData.bb.mR();a.j.isActive()||c0(a.qa,f);return!0};
H8a=function(a,b){if(a.videoData.Va)return!1;a.Fa.Ub+=1;if(10>=a.Fa.Ub)return!1;b.exiled=""+a.Fa.Ub;a.ke("qoe.start15s",b);a.qa.oa("playbackstalledatstart");return!0};
I8a=function(a){return a.B?!0:"yt"===a.Fa.Ba?a.videoData.Va?25>a.videoData.ac:!a.videoData.ac:!1};
J8a=function(a){if(!a.B){a.B=!0;var b=a.qa.getPlayerState();b=b.isPaused()||b.isSuspended();a.qa.oo();b&&!bU(a.videoData)||a.qa.oa("signatureexpired")}};
L8a=function(a,b){if((a=a.qa.kf())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.ph();b.details.merr=c?c.toString():"0";b.details.mmsg=a.qf()}};
M8a=function(a){return"net.badstatus"===a.errorCode&&(1===a.severity||!!a.details.fmt_unav)};
N8a=function(a,b){return a.Fa.L("html5_use_network_error_code_enums")&&403===b.details.rc||"403"===b.details.rc?(a=b.errorCode,"net.badstatus"===a||"manifest.net.retryexhausted"===a):!1};
P8a=function(a,b){if(!N8a(a,b)&&!a.B)return!1;b.details.sts="19709";if(I8a(a))return UK(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new TK("qoe.restart",b)),a.ke(b.errorCode,b.details),J8a(a),!0;6048E5<(0,g.FD)()-a.Fa.Qf&&O8a(a,"signature");return!1};
O8a=function(a,b){try{window.location.reload(),a.ke("qoe.restart",{detail:"pr."+b})}catch(c){}};
Q8a=function(a,b){var c=a.Fa.G;c.K=!1;c.B=!0;a.ke("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});c0(a.qa,!0)};
R8a=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e};
S8a=function(a,b,c){this.X=a;this.OF=b;this.qa=c;this.N=this.G=this.j=this.C=this.K=this.B=0;this.D=!1;this.Z=g.EJ(this.X.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45};
U8a=function(a,b,c){!a.X.L("html5_tv_ignore_capable_constraint")&&g.PJ(a.X)&&(c=c.compose(T8a(a,b)));return c};
W8a=function(a,b){var c,d=V8a(a,null==(c=b.j)?void 0:c.videoInfos);c=a.qa.getPlaybackRate();return 1<c&&d?(a=WOa(a.X.G,b.j.videoInfos,c),new PP(0,a,!0,"o")):new PP(0,0,!1,"o")};
V8a=function(a,b){return b&&g.PJ(a.X)?b.some(function(c){return 32<c.video.fps}):!1};
X8a=function(a,b){var c=a.qa.QH();a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.mS&&RP(b.videoData.Jy)&&(a=c.mS,b.videoData.Jy=new PP(0,a,!1,"u"));return b.videoData.Jy};
T8a=function(a,b){if(g.PJ(a.X)&&bQ(a.X.G,cQ.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.qS(a.X)&&(e=window.screen&&window.screen.width?new g.ne(window.screen.width,window.screen.height):null);e||(e=a.X.Qm?a.X.Qm.clone():a.OF.Yj());(vC||fZ||d)&&e.scale(g.AS());d=e;DT(b.videoData)||bU(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||zPa||(e=
.45);a=g.EJ(a.X.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 PP(0,"93"===c.itag?g.cL[pBa(d.width,d.height)]:d.j,!1,"r")}else c=mT;c=c.j}c&&(c=Math.max(c,360));return new PP(0,c,!1,"r")};
Y8a=function(a){var b,c,d,e;return g.Ha(function(f){switch(f.j){case 1:return a.j.j&&"function"===typeof(null==(b=navigator.mediaCapabilities)?void 0:b.decodingInfo)?g.z(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.u(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ka(0);break}e=d.value;return g.z(f,vBa(e),4);case 4:d=c.next(),f.Ka(3)}})};
$8a=function(a,b){if(!b.videoData.B||a.L("html5_disable_performance_downgrade"))return!1;6E4<g.gb()-a.K&&(a.B=0);a.B++;a.K=g.gb();if(4!==a.B)return!1;Z8a(a,b.videoData.B);return!0};
b9a=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.EJ(a.X.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info");if(!(5E3>(0,g.FD)()-a.C?0:f||0<e))return!1;var h=((0,g.FD)()-a.C)/1E3;a.C=(0,g.FD)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.G,m=c.totalVideoFrames-a.N;a.G=c.droppedVideoFrames;a.N=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&a.X.Uc()&&a.qa.va("ddf",{dr:c.droppedVideoFrames,
de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.Z||!e||g.PJ(a.X))return!1;a.j=(60<m?l/m:0)>e?a.j+1:0;if(3!==a.j)return!1;Z8a(a,b.videoData.B);a.qa.va("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},a9a()));return!0};
Z8a=function(a,b){var c=b.ub,d=b.video.fps;b=b.video.j-1;var e=MP();c=DLa(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.XC("yt-player-performance-cap",e,604800));a.qa.Co()};
c9a=function(a,b){if(!b.j.j)return a.D?new PP(0,360,!1,"b"):mT;for(var c=!1,d=!1,e=g.u(b.j.videoInfos),f=e.next();!f.done;f=e.next())iL(f.value)?c=!0:d=!0;d=c&&d;c=0;f=g.EJ(a.X.experiments,"html5_performance_cap_floor");e=a.X.B?240:f;var h=g.u(b.j.videoInfos);for(f=h.next();!f.done;f=h.next()){var l=f.value;if(!d||!iL(l))if(f=NP(l.ub,l.video.fps),l=l.video.j,Math.max(f,e)>=l){c=l;break}}b=b.j.videoInfos[0];if(a=a.L("html5_ps4_shorts_1080p_soft_cap")&&!g.qC("ps4 pro")&&zoa())a=b.video,a=1<a.height/
a.width;a&&(hL(b)||iL(b))&&(c=Math.min(c,720));return new PP(0,c,!1,"b")};
d9a=function(a,b){a=a.qa.An();return a.isInline()&&!b.oL?new PP(0,480,!1,"v"):a.isBackground()&&60<YE()/1E3?new PP(0,360,!1,"v"):mT};
f9a=function(a,b,c){if(a.X.experiments.jb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.PJ(a.X)&&(1080<=LP(-1)||b.osid))return mT;var d=g.EJ(a.X.experiments,"html5_autonav_quality_cap"),e=g.EJ(a.X.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&YE()/1E3>e?(c&&(d=e9a(a,c,d)),new PP(0,d,!1,"e")):mT};
e9a=function(a,b,c){if(a.L("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};
g9a=function(a,b){a.L("html5_log_media_perf_info")&&(a.qa.va("perfdb",a9a()),a.qa.va("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.qa.va("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.B)?void 0:d.smooth)}).map(function(c){return c.itag}).join("-")}))};
a9a=function(){return Yc(MP(),function(a){return""+a})};
d0=function(a){g.H.call(this);this.provider=a;this.j=-1;this.G=!1;this.B=-1;this.playerState=new g.NL;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.Eu(this.send,6E4,this);this.C=!1;g.J(this,this.delay)};
h9a=function(a){0<=a.j||(3===a.provider.qa.getVisibilityState()?a.G=!0:(a.j=g.HN(a.provider),a.delay.start()))};
i9a=function(a){if(!(0>a.B)){var b=g.HN(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.UL(a.playerState)&&!g.TG(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
j9a=function(a){var b;switch(null==(b=a.X.playerCanaryStage)?void 0:b.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}};
l9a=function(a,b){b?k9a.test(a):(a=g.TB(a),Object.keys(a).includes("cpn"))};
n9a=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(WB(a)&&XB()){if(h){var n;2!==(null==(n=m9a.uaChPolyfill)?void 0:n.state.type)?h=null:(h=m9a.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.IB("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.IB("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.IB("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.ra)&&!CS(b)&&(m["X-Goog-AuthUser"]=d);g.IB("WEBVIEW_EOM",!1)&&(m["X-Yt-Webview-Eom"]="1");e&&(m.Authorization="Bearer "+e);h||m["X-Goog-Visitor-Id"]||e||c||d?l.withCredentials=!0:b.L("html5_send_cpn_with_options")&&k9a.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};
o9a=function(a,b,c,d,e,f,h,l){XB()&&c.token&&(a=UB(a,{ctt:c.token,cttype:c.UR,mdx_environment:c.mdxEnvironment}));f||l&&d.L("nwl_skip_retry")?(null==b?b={}:l9a(a,d.L("html5_assert_cpn_with_regex")),h?FE().sendAndWrite(a,b):FE().sendThenWrite(a,b,l)):b?(l9a(a,d.L("html5_assert_cpn_with_regex")),g.fC(a,b)):g.yE(a,e)};
q9a=function(a){for(var b=[],c=0;c<a;c++){for(var d={},e=Math.floor(9*Math.random()*p9a)+p9a,f="",h=0;9>h;h++)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(52*Math.random())];d.videoDecoderName=f;d.elapsedTimeMs=e;b.push(d)}return b};
r9a=function(a,b){YO(a,1,b.elapsedTimeMs);aP(a,3,b.videoDecoderName)};
s9a=function(a,b){aP(a,1,b.cpn);YO(a,2,b.sequenceNumber);aP(a,3,b.serializedWatchEndpointLoggingContext);var c;if(b.decoderInfo)for(c=0;c<b.decoderInfo.length;c++)bP(a,6,b.decoderInfo[c],r9a,3);aP(a,9,b.playerResponseCpn);YO(a,10,b.transitionStitchType);YO(a,12,b.timestampOffsetMsecs)};
g.g0=function(a,b){g.H.call(this);var c=this;this.provider=a;this.jd=b;this.logger=new g.LU("qoe");this.j={};this.sequenceNumber=1;this.G=NaN;this.jf="N";this.Z=this.WA=this.VA=this.Jb=this.D=0;this.Qa=this.Ic="";this.Ub=this.Va=NaN;this.Rb=0;this.Oc=-1;this.ac=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.kb=this.Ea=this.Ga=this.isOffline=this.Ba=!1;this.Od=[];this.ma=null;this.bb=this.K=this.Za=this.N=!1;this.B=-1;this.Xa=!1;this.hd=new g.Eu(this.N6,750,this);this.W=this.adCpn=this.ra=this.contentCpn=
"";this.adFormat=void 0;this.Pe=0;this.Bd=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));this.rb=!1;this.Bb=NaN;this.La=0;this.tb=!1;this.Fd={dK:function(d){c.dK(d)},
Yib:function(){return c.C},
Ok:function(){return c.contentCpn},
Hib:function(){return c.ra},
reportStats:function(){c.reportStats()}};
(b=g.EJ(this.provider.X.experiments,"html5_qoe_proto_mock_length"))&&!e0.length&&(e0=q9a(b));g.J(this,this.hd);try{navigator.getBattery().then(function(d){c.ma=d})}catch(d){}g.f0(this,0,"vps",["N"]);
a.X.Uc()&&(this.La=(0,g.FD)(),this.Bb=g.bC(function(){var d=(0,g.FD)(),e=d-c.La;500<e&&c.va("vmlock",{diff:e.toFixed()});c.La=d},250))};
g.f0=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
t9a=function(a,b){var c=a.provider.getCurrentTime();g.f0(a,b,"cmt",[c.toFixed(3)]);c=a.provider.Vi();if(a.C&&1E3*c>a.C.pY+100&&a.C){var d=a.C,e=d.isAd;c=1E3*c-d.pY;a.Na=1E3*b-d.Xaa-c-d.Haa;c=(0,g.FD)()-c;b=a.Na;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.G&&(h.cttAuthInfo={token:d.G,videoId:d.videoId});h.startTime=c-b;bI(f,h);g.aI({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);cI("pbs",c,f)}else c=a.provider.qa.xi(),c.K!==d.clientPlaybackNonce?
(c.G=d.clientPlaybackNonce,c.B=b):CT(d)||g.LF(new g.eD("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.va("gllat",{l:a.Na.toFixed(),prev_ad:+e});delete a.C}};
w9a=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.HN(a.provider);var c=a.provider.qa.HD(),d=c.Nr-(a.Va||0);0<d&&g.f0(a,b,"bwm",[d,(c.Bu-(a.Ub||0)).toFixed(3)]);isNaN(a.Va)&&c.Nr&&a.isOffline&&a.dK(!1);a.Va=c.Nr;a.Ub=c.Bu;isNaN(c.bandwidthEstimate)||g.f0(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.X.Uc()&&0!==Object.keys(c.j).length&&a.va("bwinfo",c.j);if(a.provider.X.Uc()||a.provider.X.L("html5_log_meminfo"))d=i7a(),Object.values(d).some(function(e){return void 0!==e})&&a.va("meminfo",d);
a.ma&&g.f0(a,b,"bat",[a.ma.level,a.ma.charging?"1":"0"]);d=a.provider.qa.getVisibilityState();a.Oc!==d&&(g.f0(a,b,"vis",[d]),a.Oc=d);t9a(a,b);(d=u9a(a.provider))&&d!==a.Rb&&(g.f0(a,b,"conn",[d]),a.Rb=d);v9a(a,b,c)};
x9a=function(a,b){var c=g.HN(a.provider);g.f0(a,c,"lh",[b?"1":"0"])};
v9a=function(a,b,c){if(!isNaN(c.Yu)){var d=c.Yu;c.B<d&&(d=c.B);g.f0(a,b,"bh",[d.toFixed(3)])}};
y9a=function(a,b,c){g.JS(a.provider.X,g.$T(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.X.L("kevlar_woffle")||a.provider.X.L("qoe_nwl_downloads"))e=!0}else a.provider.X.L("qoe_with_networkless")&&(e=!0);var f=a.provider.X.L("qoe_send_and_write"),h=a.provider.X;d=n9a(b,h,a.provider.X.pageId,a.provider.X.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.L("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,
o9a(b,d,{token:a.provider.videoData.G,UR:a.provider.videoData.Hm,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.Ga)):e?(e=a.provider.X.L("networkless_ajax"),h={method:"POST",postBody:c},f&&a.Ga?FE().sendAndWrite(b,h):e?g.fC(b,{method:"POST",postBody:c}):FE().sendThenWrite(b,h)):(f=c,f=void 0===f?"":f,Tra(b,f)||g.yE(b,void 0,void 0,void 0,f))})};
z9a=function(a){for(var b=0,c=g.u(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(rr(a.j[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.Eu(a.reportStats,0,a)).start()};
A9a=function(a){a.provider.videoData.pj&&h0(a,"prefetch");a.provider.videoData.ac&&a.va("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.ac});a.provider.videoData.kb&&h0(a,"monitor");a.provider.videoData.isLivePlayback&&h0(a,"live");RR&&h0(a,"streaming");aU(a.provider.videoData)&&h0(a,"lifa");a.provider.videoData.wk&&a.va("ctrl",{mode:a.provider.videoData.wk},!0);if(a.provider.videoData.vl){var b=a.provider.videoData.vl.replace(/,/g,"_");a.va("ytp",{type:b},!0)}a.provider.videoData.fU&&
(b=a.provider.videoData.fU.replace(/,/g,"."),a.va("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.X.L("enable_white_noise")||a.provider.X.L("enable_webgl_noop");c=g.RT(c)||g.PT(c)||g.QT(c)||g.ST(c);(b||c)&&(b=(0,g.i0)())&&(a.j.gpu=[b]);bU(a.provider.videoData)&&g.f0(a,g.HN(a.provider),"dt",["1"]);a.provider.X.Uc()&&(b=(0,g.FD)()-a.provider.X.Qf,a.va("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.K=!0;a.G=g.bC(function(){a.reportStats()},1E4)};
C9a=function(a,b,c){var d=g.HN(a.provider);B9a(a,d,b,0,c);w9a(a,d);z9a(a)};
B9a=function(a,b,c,d,e){var f=a.provider.X.j.cbrver;"Chrome"===a.provider.X.j.cbr&&/^96[.]/.test(f)&&"net.badstatus"===c&&/rc\.500/.test(e)&&D9a(a,3);a.provider.X.L("html5_use_ump")&&/b248180278/.test(e)&&D9a(a,4);f=a.provider.getCurrentTime();d=1===d?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+fya());e&&c.push(E9a(e));g.f0(a,b,"error",c);a.K=!0};
F9a=function(a){0<=a.B||(a.provider.X.Nf||3!==a.provider.qa.getVisibilityState()?a.B=g.HN(a.provider):a.Xa=!0)};
h0=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
RY=function(a,b,c,d,e,f){var h=g.HN(a.provider);1!==c&&3!==c&&5!==c||g.f0(a,h,"vps",[a.jf]);var l=a.j.xvt||[];l.push("t."+h.toFixed(3)+";m."+f.toFixed(3)+";g."+b+";tt."+c+";np.0;c."+d+";d."+e);a.j.xvt=l};
D9a=function(a,b){if(!a.bb){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.bb=!0}};
E9a=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
G9a=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.Lp=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.W=this.provider.qa.getVolume();this.Z=this.provider.qa.isMuted()?1:0;this.B=j0(this.provider)};
k0=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.zb(a.segments).isEmpty()?(a.segments[a.segments.length-1].previouslyEnded&&(a.B.previouslyEnded=!0),a.segments[a.segments.length-1]=a.B,b=!0):a.segments.length&&a.B.isEmpty()||(a.segments.push(a.B),b=!0);b?0===a.B.endTime&&(a.previouslyEnded=!1):a.B.previouslyEnded&&(a.previouslyEnded=!0);a.G+=a.j-a.C;a.B=j0(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j};
I9a=function(a){H9a(a);a.K=g.bC(function(){a.update()},100);
a.Lp=g.HN(a.provider);a.B=j0(a.provider)};
H9a=function(a){g.dC(a.K);a.K=NaN};
J9a=function(a,b,c){c-=a.Lp;return b===a.j&&.5<c};
L9a=function(a,b,c,d){this.X=b;this.segments=[];this.experimentIds=[];this.Va=this.Jb=this.isFinal=this.delayThresholdMet=this.tb=this.hd=this.autoplay=this.autonav=!1;this.Ub="yt";this.N=[];this.G=this.K=null;this.sendVisitorIdHeader=this.Xa=!1;this.pageId="";this.D="watchtime"===c;this.C="playback"===c;this.ma="atr"===c;this.lh="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ma?"/api/stats/"+c:"//"+b.Rm+"/api/stats/"+c;d&&(this.Jb=d.fs,d.rtn&&(this.G=d.rtn),this.D?(this.playerState=d.state,
0<d.rti&&(this.K=d.rti)):(this.Mf=d.mos,this.Rf=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Oc=d.inview),d.size&&(this.ac=d.size));this.Pe=g.ld(b.j);this.zf=b.hd;this.experimentIds=SOa(b.experiments);this.Qa=b.jj;this.Ub=b.Ba;this.region=b.region;this.userAge=b.userAge;this.bb=b.pj;this.jd=YE();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.ra=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Nf=b.L("vss_final_ping_send_and_write");
this.Ba=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.Of=b.L("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.yf=b.D&&b.L("embeds_append_synth_ch_headers");g.mS(b)&&(this.La=b.Ea);g.FC(g.uS(b))&&this.N.push(K9a[1]);this.Ie=b.L("embeds_enable_muted_autoplay")&&g.mS(b);this.accessToken=g.$T(a);a.Ic&&(this.Ic=a.Ic);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=fSa(a);this.C&&(this.hd=(a.L("html5_enable_log_server_autoplay")||
a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&a.Zp&&"adunit"==VT(a)?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=XT(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.tb=a.Gf;a.G&&(this.Z=a.G,this.rb=a.Hm);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.iF;this.Rb=a.Rb;a.B&&(this.Bd=a.B.itag,a.D&&a.D.itag!==this.Bd&&(this.kb=a.D.itag));a.j&&WP(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=VT(a);this.Va=a.Rf?!1:a.Hh;this.ue=a.Mm;if(b=JT(a))this.Qf=
b;this.He=a.Ow;this.Ga=a.Ga;this.eventId=a.eventId;this.playlistId=a.wU||a.playlistId;this.sy=a.sy;this.wk=a.wk;this.vl=a.vl;this.To=a.To;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.jP=a.jP;this.referrer=a.referrer;this.Ro=a.dU||a.Ro;this.Za=a.lG;this.yy=a.yy;this.userGenderAge=a.userGenderAge;this.tx=a.tx;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;this.Ie&&a.mutedAutoplay&&this.N.push(K9a[2]);
this.Na=a.l4;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=a.compositeLiveIngestionOffsetToken)};
M9a=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.JS(a.X,a.accessToken).then(function(d){return n9a(a.uri,a.X,a.pageId,c,d,b,a.yf)})};
P9a=function(a,b){return function(){a.X.L("html5_simplify_pings")?(a.j=a.Ea,a.Od=b(),a.jd=0,a.send()):M9a(a).then(function(c){var d=N9a(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.Ml(a.uri,d);a.X.L("vss_through_gel_double")&&O9a(d);a.ra?(null==c&&(c={}),a.Ba?FE().sendAndWrite(d,c):FE().sendThenWrite(d,c)):c?g.fC(d,c):g.yE(d)})}};
N9a=function(a){var b={ns:a.Ub,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.Bd,fs:a.Jb?"1":"0",rt:a.B(a.Od),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.zf,lact:a.jd,live:a.Qf,cl:(591746904).toString(),mos:a.Mf,state:a.playerState,volume:a.Rf};a.subscribed&&(b.subscribed="1");Object.assign(b,a.Pe);a.autoplay&&(b.autoplay="1");a.hd&&(b.sautoplay="1");a.tb&&(b.dni="1");!a.D&&a.La&&(b.epm=Q9a[a.La]);a.isFinal&&(b["final"]="1");a.Va&&(b.splay="1");a.Rb&&(b.delay=a.Rb);a.Qa&&
(b.hl=a.Qa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.bb&&(b.uga=a.bb+a.userAge);void 0!==a.Ea&&(b.len=a.B(a.Ea));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.G&&(b.rtn=a.B(a.G));a.Ro&&(b.feature=a.Ro);a.wk&&(b.ctrl=a.wk);a.vl&&(b.ytr=a.vl);a.kb&&(b.afmt=a.kb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Bb&&(b.lio=a.B(a.Bb));a.D?(b.idpj=a.ue,b.ldpj=a.He,a.delayThresholdMet&&(b.dtm="1"),null!=a.K&&
(b.rti=a.B(a.K)),a.tx&&(b.ald=a.tx),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):void 0!==a.adType&&(b.at=a.adType);a.ac&&(a.C||a.D)&&(b.size=a.ac);a.C&&a.N.length&&(b.pbstyle=a.N.join(","));null!=a.Oc&&(a.C||a.D)&&(b.inview=a.B(a.Oc));a.D&&(b.volume=l0(a,g.pr(a.segments,function(d){return d.volume})),b.st=l0(a,g.pr(a.segments,function(d){return d.startTime})),b.et=l0(a,g.pr(a.segments,function(d){return d.endTime})),ms(a.segments,function(d){return 1!==d.playbackRate})&&
(b.rate=l0(a,g.pr(a.segments,function(d){return d.playbackRate}))),ms(a.segments,function(d){return"-"!==d.j})&&(b.als=g.pr(a.segments,function(d){return d.j}).join(",")),a.X.L("html5_send_pe_in_vss")&&ms(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.pr(a.segments,function(d){return""+ +d.previouslyEnded}).join(",")));
b.muted=l0(a,g.pr(a.segments,function(d){return d.muted?1:0}));
ms(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=l0(a,g.pr(a.segments,function(d){return d.visibilityState})));
ms(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=l0(a,g.pr(a.segments,function(d){return d.connectionType})));
ms(a.segments,function(d){return 0!==d.B})&&(b.blo=l0(a,g.pr(a.segments,function(d){return d.B})));
ms(a.segments,function(d){return!!d.C})&&(b.blo=g.pr(a.segments,function(d){return d.C}).join(","));
ms(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.pr(a.segments,function(d){return d.compositeLiveStatusToken}).join(","));
ms(a.segments,function(d){return"-"!==d.G})&&(b.cc=g.pr(a.segments,function(d){return d.G}).join(","));
ms(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.pr(a.segments,function(d){return d.clipId}).join(","));
if(ms(a.segments,function(d){return!!d.D})){var c="au";
a.C&&(c="au_d");b[c]=g.pr(a.segments,function(d){return d.D}).join(",")}XB()&&a.Z&&(b.ctt=a.Z,b.cttype=a.rb,b.mdx_environment=a.mdxEnvironment);
a.lh&&(b.etype=void 0!==a.W?a.W:0);a.Za&&(b.uoo=a.Za);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=R9a[a.livingRoomAppMode]||a.livingRoomAppMode);a.Ic?S9a(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.jP,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.To&&(b.ssrt="1"),a.yy&&(b.upt=a.yy));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=a.embedsRctn),
a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Na&&(b.host_cpn=a.Na);return b};
S9a=function(a,b){if(b&&a.Ic){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"]);"3pp"===a.Ic.ns&&(b.ns="3pp");for(var f=g.u(Object.keys(a.Ic)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Ic[h]||(b[h]=a.Ic[h])}};
l0=function(a,b){return g.pr(b,a.B).join(",")};
O9a=function(a){-1!==a.indexOf("watchtime")&&g.qD("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})};
T9a=function(a,b){a.attestationResponse&&M9a(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.ra?a.Ba?FE().sendAndWrite(b,c):FE().sendThenWrite(b,c):g.fC(b,c)})};
m0=function(a){g.H.call(this);this.provider=a;this.K="paused";this.D=NaN;this.N=[10,10,10,40];this.W=this.Z=0;this.Ba=this.ra=this.La=this.Ea=this.Ga=this.ma=this.C=!1;this.B=this.G=NaN;this.j=new G9a(a)};
V9a=function(a){if(!a.C){16623===a.provider.videoData.yF&&g.LF(Error("Playback for EmbedPage"));var b=n0(a,"playback");a:{if(a.provider.X.L("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.Mm,h=a.provider.videoData.Ow,l=-f;e=g.u(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.N=c;break a}}a.N=[10+a.provider.videoData.Mm,10,10,40+a.provider.videoData.Ow-a.provider.videoData.Mm,40]}I9a(a.j);b.G=o0(a);0<a.B&&(b.j-=a.B);b.send();a.provider.videoData.ly&&(b=a.provider.X,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.ly,oid:d.H0,ptchn:d.G0,pltype:d.J0,content_v:XT(d)},d.Hx&&Object.assign(c,{m:d.Hx}),b=g.Ml(b.Ga+"ptracking",c),p0(a,b));a.provider.videoData.Rb||U9a(a);
a.C=!0;a=a.j;a.j=a.provider.qa.Vi();a.Lp=g.HN(a.provider);!(0===a.C&&5>a.j)&&2<a.j-a.C&&(a.C=a.j);a.N=!0}};
o0=function(a,b){b=void 0===b?NaN:b;var c=g.HN(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.N[a.Z];a.Z+1<a.N.length&&a.Z++;var e=b+d;a.D=g.aC(function(){if(!a.isDisposed()){a.D=NaN;var f=W9a(a),h=X9a(a,f);h.K=e;var l=1E3<a.W;!(1<f.length)&&f[0].isEmpty()||l||(h.G=o0(a,e));h.send();a.W++}},1E3*(e-c));
return a.G=e};
q0=function(a){g.cC(a.D);a.D=NaN};
W9a=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||k0(a);var b=a.segments;a.segments=[];return b};
n0=function(a,b){var c=Y9a(a.provider);Object.assign(c,{state:a.K});b=new L9a(a.provider.videoData,a.provider.X,b,c);b.j=a.provider.qa.Vi();a.provider.videoData.isLivePlayback||(b.Ea=a.provider.qa.getDuration());a.provider.videoData.j&&(c=a.provider.videoData.j.bf(b.j))&&(b.Bb=c-b.j);b.Od=g.HN(a.provider);b.segments=[j0(a.provider)];return b};
X9a=function(a,b){var c=n0(a,"watchtime");Z9a(a)&&(c.delayThresholdMet=!0,a.Ga=!0);if(0<a.B){for(var d=g.u(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};
r0=function(a,b){var c=$9a(a,!isNaN(a.G));b&&(a.G=NaN);return c};
$9a=function(a,b){var c=X9a(a,W9a(a));!isNaN(a.G)&&b&&(c.K=a.G);return c};
Z9a=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Rb&&a.C&&!a.Ga)b=a.j,b=b.G+b.provider.qa.Vi()-b.C>=a.provider.videoData.Rb;return!!b};
U9a=function(a){a.provider.videoData.remarketingUrl&&!a.Ea&&(p0(a,a.provider.videoData.remarketingUrl),a.Ea=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.La&&(p0(a,a.provider.videoData.youtubeRemarketingUrl),a.La=!0);a.provider.videoData.googleRemarketingUrl&&!a.ra&&(p0(a,a.provider.videoData.googleRemarketingUrl),a.ra=!0);a.provider.videoData.ppvRemarketingUrl&&!a.Ba&&(p0(a,a.provider.videoData.ppvRemarketingUrl),a.Ba=!0);a.FB()};
a$a=function(a){if(!a.isDisposed()&&a.C){a.K="paused";var b=r0(a);b.isFinal=!0;b.send();a.dispose()}};
b$a=function(a,b,c){if(!a.ma){c||(c=n0(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.ma=!0}};
p0=function(a,b){var c=a.provider.X;g.JS(a.provider.X,g.$T(a.provider.videoData)).then(function(d){var e=a.provider.X.pageId,f=a.provider.X.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.X.L("vss_pings_using_networkless")||a.provider.X.L("kevlar_woffle"),l=a.provider.X.L("allow_skip_networkless");d=n9a(b,c,e,f,d);o9a(b,d,{token:a.provider.videoData.G,UR:a.provider.videoData.Hm,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
c$a=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.D="";this.B=0;this.compositeLiveStatusToken=this.C=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-";this.previouslyEnded=!1};
s0=function(a,b,c){this.videoData=a;this.X=b;this.qa=c;this.j=void 0};
g.HN=function(a){return d$a(a)()};
d$a=function(a){if(!a.j){var b=g.fb(function(d){var e=(0,g.FD)();d&&631152E6>=e&&(a.qa.va("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.X.L("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.qa.lQ()}return a.j};
Y9a=function(a){var b=a.qa.Mq()||{};b.fs=a.qa.YD();b.volume=a.qa.getVolume();b.muted=a.qa.isMuted()?1:0;b.mos=b.muted;b.inview=a.qa.xD();b.size=a.qa.oD();b.clipid=a.qa.mz();a=a.videoData;var c={};a.B&&(c.fmt=a.B.itag,a.D&&a.D.itag!=a.B.itag&&(c.afmt=a.D.itag));c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.ql&&(c.infringe=1);(a.Rf?0:a.Hh)&&(c.splay=1);var d=JT(a);d&&(c.live=d);a.Zp&&(c.sautoplay=1);a.fl&&(c.autoplay=1);a.sy&&(c.sdetail=a.sy);a.Ga&&(c.partnerid=
a.Ga);a.osid&&(c.osid=a.osid);a.UB&&(c.cc=g.iQa(a.UB));return Object.assign(b,c)};
u9a=function(a){if(navigator.connection&&navigator.connection.type)return e$a[navigator.connection.type]||e$a.other;if(g.PJ(a.X)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0};
j0=function(a){var b=new c$a,c;b.G=(null==(c=Y9a(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.qa.getPlaybackRate();c=a.qa.getVisibilityState();0!==c&&(b.visibilityState=c);a.X.Jb&&(b.B=1);b.C=a.videoData.gr;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.qa.getAudioTrack();c.Lc&&c.Lc.id&&"und"!==c.Lc.id&&(b.D=c.Lc.id);b.connectionType=u9a(a);b.volume=a.qa.getVolume();b.muted=a.qa.isMuted();b.clipId=a.qa.mz()||"-";b.j=a.videoData.VT||"-";return b};
g.t0=function(a,b){g.H.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Fd={hjb:function(){return c.qoe},
rjb:function(){return c.j},
Rib:function(){return c.B}};
this.provider.videoData.Ee()&&!this.provider.videoData.Il&&(this.j=new m0(this.provider),g.J(this,this.j),this.qoe=new g.g0(this.provider,b),g.J(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Ug=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Ug,this.j));if("canary"===a.X.playerCanaryState||"holdback"===a.X.playerCanaryState)this.B=new d0(this.provider),g.J(this,this.B)};
SY=function(a){a.B&&h9a(a.B);a.qoe&&F9a(a.qoe)};
f$a=function(a){if(a.qoe){a=a.qoe;for(var b=g.u(a.provider.X.lh),c=b.next();!c.done;c=b.next())h0(a,c.value);a.provider.videoData.lh&&h0(a,a.provider.videoData.lh);a.provider.videoData.isLivePlayback&&(b=a.provider.videoData.j,xT(a.provider.videoData)&&h0(a,"manifestless"),b&&AR(b)&&h0(a,"live-segment-"+AR(b).toFixed(1)));wT(a.provider.videoData)&&h0(a,"sabr");a.provider.videoData.gatewayExperimentGroup&&(b=a.provider.videoData.gatewayExperimentGroup,"EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"===
b?b="spkadtrt":"EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"===b&&(b="spkadctrl"),h0(a,b));"yt"!==a.provider.X.Ba&&(a.j.len=[a.provider.videoData.lengthSeconds.toFixed(2)]);a.provider.videoData.cotn&&!bU(a.provider.videoData)&&a.dK(!0);a.provider.X.Uc()&&(b=A0a())&&a.va("cblt",{m:b});GT(a.provider.videoData)&&(a.provider.qa.getProximaLatencyPreference()?h0(a,"proximaui"):h0(a,"proximaexp"))}};
N1a=function(a){if(a.provider.qa.uj()){if(a.D)return;a.D=!0}a.j&&V9a(a.j);if(a.B){a=a.B;var b=g.HN(a.provider);0>a.j&&(a.j=b,a.delay.start());a.B=b;a.D=b}};
g$a=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Ug){var b;null!=(b=a.C.get(a.Ug))&&k0(b.j)}else a.j&&k0(a.j.j)};
O1a=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.K){"PL"===b.jf&&(b.jf="N");var c=g.HN(b.provider);g.f0(b,c,"vps",[b.jf]);b.N||(0<=b.B&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.X.Uc()&&b.va("finalized",{});b.Ga=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.u(a.C.values()),c=b.next();!c.done;c=b.next())a$a(c.value);else a.j&&a$a(a.j);a.dispose()};
h$a=function(a,b){a.j&&b$a(a.j,b)};
i$a=function(a){if(!a.j)return null;var b=n0(a.j,"atr");return function(c){a.j&&b$a(a.j,c,b)}};
j$a=function(a,b,c,d){c.adFormat=c.Bd;var e=b.qa;b=new m0(new s0(c,b.X,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Vi:function(){return e.Vi()},
uj:function(){return e.uj()},
HD:function(){return e.HD()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
LD:function(){return e.LD()},
getVisibilityState:function(){return e.getVisibilityState()},
xi:function(){return e.xi()},
Mq:function(){return e.Mq()},
getVolume:function(){return e.getVolume()},
isMuted:function(){return e.isMuted()},
YD:function(){return e.YD()},
mz:function(){return e.mz()},
xD:function(){return e.xD()},
oD:function(){return e.oD()},
getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()},
lQ:function(){e.lQ()},
AE:function(){e.AE()},
va:function(f,h){e.va(f,h)}}));
b.B=d;g.J(a,b);return b};
k$a=function(){this.Yu=0;this.C=this.Bu=this.Nr=this.B=NaN;this.j={};this.bandwidthEstimate=NaN};
u0=function(a,b,c){g.H.call(this);var d=this;this.X=a;this.qa=b;this.B=c;this.j=new Map;this.Ug="";this.Fd={Ap:function(){return Array.from(d.j.keys())}}};
l$a=function(){this.j=g.Pza;this.array=[]};
n$a=function(a,b,c){var d=[];for(b=m$a(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};
o$a=function(a,b){var c=[];a=g.u(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};
p$a=function(a){return a.array.slice(m$a(a,0x7ffffffffffff),a.array.length)};
m$a=function(a,b){a=Tb(a.array,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
q$a=function(a,b){var c=NaN;a=g.u(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};
r$a=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
v0=function(a,b,c,d){g.H.call(this);this.Z=a;this.ra=b;this.G=c;this.W=d;this.B=NaN;this.K=this.N=this.started=!1;this.C=[];this.ma=new g.Eu(this.Lo,250,this);g.J(this,this.ma);this.D=new g.Eu(this.Lo,0,this);g.J(this,this.D);this.j=new l$a};
s$a=function(a){a.started=!0;a.Lo()};
t$a=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.W(g.kK(d.namespace),d):a.W(g.lK(d.namespace),d)}};
u$a=function(a){this.timeStamp=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.PJ(a)&&(this.C=.01)};
w0=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
SBa=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.timeStamp>(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1};
v$a=function(a,b){this.videoData=a;this.j=b};
w$a=function(a,b,c){return NRa(b,c).then(function(){return lC(new v$a(b,b.C))},function(d){d instanceof Error&&g.LF(d);
var e=XK('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=$K('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.XOa(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Pv(),d:!!b.hd,drm:b.wj(),f18:0<=b.Of.indexOf("itag=18"),c18:e};b.j&&(b.wj()?(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=$K('video/mp4; codecs="avc1.42001E"'),
e.cVP9=$K('video/webm; codecs="vp9"'));b.K&&(e.drmsys=b.K.keySystem,f=0,b.K.j&&(f=Object.keys(b.K.j).length),e.drmst=f);return new TK(d,e,h)})};
x$a=function(a){this.G=a;this.C=this.B=0;this.D=new xV(50)};
y0=function(a,b,c){g.cG.call(this);this.videoData=a;this.experiments=b;this.Z=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.K=0;c=new y$a;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.kb?c.B=3:g.NT(a)&&(c.B=2);"NORMAL"===a.latencyClass&&(c.G=!0);var d=g.EJ(b,"html5_liveness_drift_proxima_override");GT(a)&&d&&(c.j=d);if(g.qC("trident/")||g.qC("edge/"))c.C=Math.max(c.C,g.EJ(b,"html5_platform_minimum_readahead_seconds")||3);g.EJ(b,"html5_minimum_readahead_seconds")&&(c.C=g.EJ(b,"html5_minimum_readahead_seconds"));
g.EJ(b,"html5_maximum_readahead_seconds")&&(c.K=g.EJ(b,"html5_maximum_readahead_seconds"));b.jb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.EJ(b,"html5_liveness_drift_chunk_override"))c.j=b;FT(a)&&(c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2));this.policy=c;this.N=1!==this.policy.B;this.j=x0(this,z$a(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))};
A$a=function(a,b){if(b)return b=a.videoData,b=z$a(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),x0(a,b);if(a.B.length){if(1<Math.min.apply(null,a.B))return x0(a,a.j-1);if(a.policy.D)return x0(a,a.j+1)}return a.j};
B$a=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=A$a(a,void 0===b?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b};
A0=function(a,b){var c=a.Hq(),d=a.policy.j;a.G||(d=Math.max(d-1,0));a=d*z0(a);return b>=c-a};
C$a=function(a,b,c){b=A0(a,b);c||b?b&&(a.C=!0):a.C=!1;a.N=2===a.policy.B||3===a.policy.B&&a.C};
D$a=function(a,b){b=A0(a,b);a.G!==b&&a.oa("livestatusshift",b);a.G=b};
z$a=function(a,b,c){c.kb&&b--;FT(c)&&(b=1);GT(c)&&(a=g.EJ(a.experiments,"html5_live_chunk_readahead_proxima_override"))&&(b=a);return b};
z0=function(a){return a.videoData.j?AR(a.videoData.j)||5:5};
x0=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/z0(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/z0(a))),b)};
y$a=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.G=!1};
D0=function(a){g.H.call(this);this.qa=a;this.X=this.qa.U();this.j=0;this.D=null;this.K=this.C=0;this.G=new g.Eu(this.tf,1E3,this);this.Za=new B0({delayMs:g.EJ(this.X.experiments,"html5_seek_timeout_delay_ms")});this.Ba=new B0({delayMs:g.EJ(this.X.experiments,"html5_long_rebuffer_threshold_ms")});this.bb=C0(this,"html5_seek_set_cmt");this.La=C0(this,"html5_seek_jiggle_cmt");this.Qa=C0(this,"html5_seek_new_elem");this.Jb=C0(this,"html5_unreported_seek_reseek");this.ma=C0(this,"html5_long_rebuffer_jiggle_cmt");
this.ra=new B0({delayMs:2E4});this.Na=C0(this,"html5_seek_new_elem_shorts");this.Xa=C0(this,"html5_seek_new_media_source_shorts_reuse");this.Va=C0(this,"html5_seek_new_media_element_shorts_reuse");this.Ga=C0(this,"html5_reseek_after_time_jump");this.W=C0(this,"html5_gapless_handoff_started_long_rebuffer");this.Z=C0(this,"html5_gapless_handoff_close_end_long_rebuffer");this.N=C0(this,"html5_ads_preroll_lock_timeout");this.kb=new B0({delayMs:g.EJ(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,
Yy:!this.X.L("html5_report_slow_ads_as_error")});this.rb=new B0({delayMs:g.EJ(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Yy:!this.X.L("html5_skip_slow_buffering_ad")});this.tb=new B0({delayMs:g.EJ(this.X.experiments,"html5_slow_start_timeout_delay_ms")});this.Ea=C0(this,"html5_slow_start_no_media_source");this.B={};g.J(this,this.G)};
C0=function(a,b){var c=g.EJ(a.X.experiments,b+"_delay_ms");a=a.X.L(b+"_cfl");return new B0({delayMs:c,Yy:a})};
E0=function(a,b,c,d,e,f,h,l){b.test(c)?(a.ke(e,b,h),b.Yy||f()):(b.iK&&b.B&&!b.D?(c=(0,g.FD)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.iK,c=b.j&&c-b.j>b.UQ||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.pc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.qa.va("workaroundReport",l),d&&(b.reset(),a.B[e]=!1)))};
B0=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.UQ?1E3:b.UQ,d=void 0===b.iK?3E4:b.iK;b=void 0===b.Yy?!1:b.Yy;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.UQ=c;this.iK=d;this.Yy=b};
H$a=function(a){g.H.call(this);var b=this;this.qa=a;this.X=this.qa.U();this.videoData=this.qa.getVideoData();this.policy=new E$a;this.ma=new D0(this.qa);this.playbackData=null;this.kb=new g.aL;this.K=this.B=this.Aa=this.mediaElement=null;this.j=NaN;this.D=0;this.La=NaN;this.C=null;this.Na=NaN;this.G=this.Z=null;this.W=!1;this.bb=g.EJ(this.X.experiments,"html5_qoe_lh_max_report_count");this.rb=g.EJ(this.X.experiments,"html5_qoe_lh_min_duration_ms");this.Jb=NaN;this.Rb=0;this.ra=!1;this.Ga=new g.Eu(function(){F$a(b,
!1)},2E3);
this.Ub=new g.Eu(function(){F0(b)});
this.Xa=new g.Eu(function(){b.W=!0;G$a(b,{})});
this.timestampOffset=0;this.Ba=!0;this.Va=0;this.Bb=NaN;this.Ea=new g.Eu(function(){var c=b.X.Mf;c.j+=1E4/36E5;c.j-c.C>1/6&&(pPa(c),c.C=c.j);b.Ea.start()},1E4);
this.Za=this.Qa=!1;this.N=0;this.tb=!1;g.J(this,this.ma);g.J(this,this.kb);g.J(this,this.Ga);g.J(this,this.Xa);g.J(this,this.Ub);g.J(this,this.Ea)};
J$a=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new x$a(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(xT(a.videoData)&&a.Aa){var c=a.Aa.fH.Wi()||0;break a}if(a.videoData.j){c=a.videoData.j.ra;break a}}c=0}return c}),a.B=new y0(a.videoData,a.X.experiments,function(){return a.Ke(!0)}));
I$a(a)||(a.D=a.D||(g.dU(a.videoData)?0:a.videoData.startSeconds)||0)};
L$a=function(a,b){(a.Aa=b)?K$a(a,!0):G0(a)};
N$a=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.K&&d){var e=a.K;if(e.j&&!(c>=e.B&&c<e.C)){var f=e.j.zi(c);-1!==f&&(e.B=e.j.getStartTime(f),e.C=e.B+e.j.getDuration(f),f=(0,g.FD)()/1E3-e.j.bf(f),f-=e.G(),e.D.add(f))}}a.B&&(d&&(e=a.B,f=M$a(a),e.D++,3>e.D||3E3>g.gb()-e.K||(e.K=g.gb(),e.B.push(f),50<e.B.length&&e.B.shift())),e=a.B,C$a(e,c,void 0===b?!0:b),D$a(e,c),b&&F$a(a,!0));a.X.L("html5_report_live_head_condition_to_qoe")&&(d!==a.Qa&&0===a.bb&&0===a.rb?(b=a.qa.qc(),b.qoe&&x9a(b.qoe,
d),a.Qa=d):d!==a.Qa&&(b=a.getCurrentTime()-a.Jb,c=0!==a.bb&&a.Rb>=a.bb,0!==a.rb&&b<=a.rb||c||(b=a.qa.qc(),b.qoe&&x9a(b.qoe,d),a.Qa=d,a.Rb++,a.Jb=a.getCurrentTime())))};
F$a=function(a,b){if(a.B){var c=a.B;var d=a.getCurrentTime();!A0(c,d)&&c.Xq()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.Jd()?Math.min(c.videoData.Jd()+10,c.Hq()):NaN;if(!isNaN(c)){if(a.Aa&&b&&(b=a.Ga.isActive(),d=a.B.Hq(),(d=M7a(a.Aa,d-a.Pc()))&&!b)){a.Ga.start();a.qa.va("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Pc()});a.seekTo(d+a.Pc(),{wd:"seektimeline_inBufferSeek"});return}a.seekTo(c,{wd:"seektimeline_pegToLive"})}}};
K$a=function(a,b){if(a.B&&a.Aa){var c=!1;b?c=!0:a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass?c=B$a(a.B):a.tb&&(a.tb=!1,c=B$a(a.B,!0));c&&(b=a.qa.qc(),c=a.B,c=z0(c)*c.j,b.qoe&&(b=b.qoe,g.f0(b,g.HN(b.provider),"lra",[c]),b.va("live-readahead-seconds",{v:c})));b=a.Aa;var d=a.B.j;a=a.B;a=(a.j-1+a.policy.j)*z0(a);c=NaN;var e=b.Jb;2===e||-1===e?FT(b.qa.getVideoData())&&(c=b.policy.Jy):(--d,e=b.qa.getVideoData(),e.Ac()&&"ULTRALOW"!==e.latencyClass&&
!e.isLowLatencyLiveStream&&(c=GT(e)?b.policy.mG:b.policy.Ro));d=Math.max(d,0);e=b.C;e.Xg=d;e.Z=c;b.K&&(b.K.ma=a)}};
O$a=function(a,b){a.D=b};
G$a=function(a,b){P$a(a,b).then(void 0,function(){G0(a)});
Q$a(a).then(function(c){R$a(a,c)},function(){G0(a)});
q1a(a.qa,b);a.X.Uc()&&(b=a.pc(),b["native"]=""+ +a.ra,b.tgt=""+a.j,b.otgt=""+(a.j+a.timestampOffset),a.qa.va("startSeek",b))};
P$a=function(a,b){a.Z||(a.Aa?isFinite(a.j)?a.Z=a.Aa.seek(a.j-a.timestampOffset,b):(vT(a.videoData),a.Z=S_(a.Aa),cU(a.videoData)||(a.j=a.Aa.getCurrentTime()+a.timestampOffset)):a.Z=Vf(a.j-a.timestampOffset));return a.Z};
Q$a=function(a){var b=a.C;b||(a.C=new KL,b=a.C,F0(a));return b};
S$a=function(a,b,c){return isNaN(b)?NaN:g.ie(b,a.Jd(),a.Ke(c))};
F0=function(a){if(a.C)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&0<a.mediaElement.Ck()&&0<JBa(a.mediaElement)&&(a.j=S$a(a,a.j,!1)),!a.mediaElement||!T$a(a))a.Ub.start(750);else if(!isNaN(a.j)&&isFinite(a.j)&&a.Na!==a.j-a.timestampOffset){var b=a.L("html5_live_seek_timeline_timestamps")?a.j-a.timestampOffset:a.j;b=a.mediaElement.getCurrentTime()-b;if(Math.abs(b)<=a.Va)a.C&&a.C.resolve(a.mediaElement.getCurrentTime());else{if(a.videoData.XB)a.videoData.XB=!1;else if(!vT(a.videoData)&&
a.j>=a.Ke()-.1){a.j=a.Ke();a.C.resolve(a.Ke());yY(a.qa);return}try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);a.ma.j=c;a.Na=c;a.D=a.j}catch(d){}}}};
T$a=function(a){if(!a.mediaElement||0===a.mediaElement.Ck()||a.mediaElement.hasError())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.wj())return b;if(0<=a.j){var c=a.mediaElement.GD();if(c.length||!b)return uL(c,a.j-a.timestampOffset)}return b};
R$a=function(a,b){a.G&&(a.G.resolve(b),a.qa.oa("SEEK_COMPLETE"),a.X.Uc()&&(b=a.pc(),b["native"]=""+ +a.ra,b.otgt=""+(a.j+a.timestampOffset),a.qa.va("seekEnd",b)));G0(a)};
G0=function(a){a.j=NaN;a.Na=NaN;a.C=null;a.Z=null;a.G=null;a.W=!1;a.ra=!1;a.Va=0;a.Ga.stop();a.Xa.stop()};
V$a=function(a){if(a.mediaElement){if(!a.L("html5_restore_time_after_unpause"))for(var b=g.u(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.kb.T(a.mediaElement,c.value,function(d){U$a(a,d)});
a.G||a.D||!a.mediaElement.bR()||a.seekTo(.01,{wd:"seektimeline_setupMediaElement"})}};
U$a=function(a,b){var c=a.mediaElement;b=b.type;switch(b){case "seeking":var d=c.getCurrentTime()+a.timestampOffset;if(!a.C||a.ra&&d!==a.j){a.C=new KL;a.Na=d;var e=a.ma;c=c.getCurrentTime();e.j=c;a.seekTo(d,{wd:"seektimeline_mediaElementEvent"});a.ra=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":if(a.Ba)if(cU(a.videoData)&&g.NT(a.videoData))a.Ba=!1;else if(c="ss",d=0,a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Ub&&!I$a(a)&&(c="mss",
d=a.videoData.Ub),a.L("html5_prioritize_st_start_seconds")&&!d&&a.videoData.vj&&(c="stss",d=a.videoData.vj),!d&&W$a(a)&&(d=a.videoData.liveUtcStartSeconds||a.videoData.Ub,c="utc",d=a.Ke()-a.bf(a.Ke())+d),!d&&a.videoData.vj&&(c="stss",d=a.videoData.vj),e={},d){if(d>a.Ke()||d<a.Jd())e.minSeekableTime=a.Jd(),e.maxSeekableTime=a.Ke(),a.L("html5_update_start_seconds_logging")&&(e.cmt=a.getCurrentTime(),e.it=a.bf(a.getCurrentTime()),e.ss=d,e.utc=W$a(a)?a.videoData.liveUtcStartSeconds||a.videoData.Ub:0),
a.qa.va("startSecondsOutOfBounds",e),a.videoData.Ac()&&(d=S$a(a,d,!1));a.seekTo(d,{wd:"seektimeline_startSeconds"});e[c]=d;a.qa.va("startSeconds",e);a.Ba=!1}else a.videoData.Ub&&(e[c]=a.videoData.Ub+a.Pc(),a.qa.va("startSeconds",e));F0(a);break;case "progress":F0(a);break;case "pause":a.X.L("html5_restore_time_after_unpause_redux")&&(a.N=a.getCurrentTime())}a.N&&(("play"===b||"playing"===b||"timeupdate"===b||"progress"===b)&&10<a.getCurrentTime()-a.N&&a.seekTo(a.N,{wd:"pauseJump"}),"pause"!==b&&"play"!==
b&&"playing"!==b&&"progress"!==b&&(a.N=0))};
W$a=function(a){return(OT(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||I$a(a))&&!!a.videoData.j};
I$a=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds};
X$a=function(a,b){a.qa.va("sdai",{adj4t:b.toFixed(3)});a.La=b;b+=1;a.j=b;a.D=b;Q$a(a).then(function(c){R$a(a,c)},function(){G0(a)})};
M$a=function(a){return a.mediaElement?ML(a.mediaElement):0};
E$a=function(){};
H0=function(){this.finished=this.started=!1};
cab=function(a){function b(e){return c.Km&&(!d.Pm||!d.Fa.K)||"yt"!==c.Ba&&(38===d.Ga&&"books"===c.playerStyle||30===d.Ga&&"docs"===c.playerStyle||33===d.Ga&&"google-live"===c.playerStyle)?Y$a(a,d,e):Z$a(a,d).then(function(){I0(a,d)},function(f){I0(a,d,!0);
throw f;})}
var c=a.U(),d=a.getVideoData();d.isDisposed();d.loading=!0;return $$a(a)?aab(a,d).then(function(){I0(a,d)},function(e){e=VK(e);
if(UK(e.severity))return I0(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(bab=!0);a.handleError(e);return b("onesie")}):b("gvi")};
$$a=function(a){var b=a.U();if(b.L("html5_disable_onesie")||!b.L("html5_onesie")||!b.L("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.Ba)return!1;var c=b.ll;if(!c||!c.j)return a.handleError(new TK("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.G<(0,g.FD)()&&(a.va("okexp","1"),(c=a.xz())&&b.L("html5_prefer_trusted_host_on_key_expiration"))){c.B=!0;var d;(b=null==(d=c.j.get(0))?void 0:fQ(d.location))&&!iY(b)&&c.j.delete(0)}if(bab)return a.va("ost3","1"),!1;d={};return 0<Object.keys(d).length?
(d.onesie="0",a.handleError(new TK("html5.missingapi",d)),!1):!0};
dab=function(a){var b=IU();ZSa(b,a);return g.oI(b,Uxa())};
aab=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,F,G,I,L,P,V,ka,sa,ta,la,qa;return g.Ha(function(ba){if(1==ba.j)return b.fetchType="onesie",c=tSa(b,a.getPlayerSize(),a.getVisibilityState()),d=new K_(a,c),g.z(ba,d.fetch(),2);e=ba.B;f={player_response:e};b.loading=!1;h=a.Qd.Kt;if(d.Fg){l=g.u(d.Fg.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.u(n),q=p.next().value,r=p.next().value,t=q,v=r,h.j.set(t,v,180),t===b.videoId&&(x=v.Gq(),b.YO=x);h.jz=d}B=g.u(d.YV.entries());for(F=B.next();!F.done;F=
B.next())G=F.value,I=g.u(G),L=I.next().value,P=I.next().value,V=L,ka=P,h.B.set(V,ka,180);g.qT(b,f,!0);if(b.loading||oT(b))return ba.return(Promise.resolve());h.j.Jf();h.B.Jf();b.YO=[];sa={};ta="onesie.response";la=0;b.errorCode?(ta="auth",sa.ec=b.errorCode,sa.ed=b.errorDetail,sa.es=b.dn||"",la=2):(sa.successButUnplayable="1",sa.disposed=""+ +b.isDisposed(),sa.afmts=""+ +/adaptiveFormats/.test(e),sa.cpn=b.clientPlaybackNonce);qa=new TK(ta,sa,la);return ba.return(Promise.reject(qa))})};
Z$a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r;return g.Ha(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){t.Ka(4);break}if(!(0<f)){t.Ka(5);break}return g.z(t,bg(5E3),6);case 6:h=new g.eD("Retrying OnePlatform request",{attempt:f}),g.LF(h);case 5:return g.ya(t,7),g.z(t,eab(a,b),9);case 9:return t.return();case 7:l=g.Aa(t);m=VK(l);n=m.errorCode;p=a.U();p.L("html5_use_network_error_code_enums")?d&&"manifest.net.badstatus"===n&&401===m.details.rc&&(d=!1,f===e-1&&(e+=1)):d&&
"manifest.net.badstatus"===n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return t.return(Promise.reject(m));a.handleError(m);if(UK(m.severity)){t.Ka(4);break}case 3:f++;t.Ka(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",r=c?2:1,t.return(Promise.reject(new TK(q,{backend:"op"},r)))}})};
eab=function(a,b){function c(ta){2===ta.readyState&&a.Nd("ps_c")}
var d,e,f,h,l,m,n,p,q,r,t,v,x,B,F,G,I,L,P,V,ka,sa;return g.Ha(function(ta){switch(ta.j){case 1:b.fetchType="gp";d=a.U();e=g.JS(d,g.$T(b));if(!e.j){f=e.getValue();ta.Ka(2);break}return g.z(ta,e.j,3);case 3:f=ta.B;case 2:return h=f,l=dab(h),m=tSa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.sH(fab),p=g.$T(b),q=(0,g.FD)(),r=!1,t="empty",v=0,a.Nd("psns"),x={EA:c},g.z(ta,g.gI(l,m,n,void 0,x),4);case 4:B=ta.B;a.Nd("psnr");if(b.isDisposed())return ta.return();B?"error"in B&&B.error?(r=!0,t="esf:"+B.error.message,
v=B.error.code):B.errorMetadata&&(r=!0,t="its",v=B.errorMetadata.status):r=!0;if(r)return F=0,G=((0,g.FD)()-q).toFixed(),I={},I=d.L("html5_use_network_error_code_enums")?{backend:"op",rc:v,rt:G,reason:t,has_kpt:b.tb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.IB("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.ra?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.wk||"",token_eq:p===g.$T(b)?"1":"0"}:{backend:"op",
rc:""+v,rt:G,reason:t,has_kpt:b.tb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.IB("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.ra?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.wk||"",token_eq:p===g.$T(b)?"1":"0"},L="manifest.net.connect",429===v?(L="auth",F=2):200<v&&(L="manifest.net.badstatus",400===v&&(F=2)),ta.return(Promise.reject(new TK(L,I,F)));b.loading=!1;g.qT(b,{raw_player_response:B},!0);
P=B;g.rS(b.U())&&P&&P.trackingParams&&HP(P.trackingParams);if(b.errorCode)return V={ec:b.errorCode,ed:b.errorDetail,es:b.dn||""},ta.return(Promise.reject(new TK("auth",V,2)));if(!b.loading&&!oT(b))return ka=b.isAd()?"auth":"manifest.net.retryexhausted",sa=b.isAd()?2:1,ta.return(Promise.reject(new TK(ka,{successButUnplayable:"1",hasMedia:g.LT(b)?"1":"0"},sa)));g.xa(ta)}})};
Y$a=function(a,b,c){function d(v){v=VK(v);if(UK(v.severity))return Promise.reject(v);a.handleError(v);return!1}
function e(){return!0}
var f,h,l,m,n,p,q,r,t;return g.Ha(function(v){switch(v.j){case 1:var x=a.U(),B=a.getPlayerSize(),F=a.getVisibilityState();a.isFullscreen();var G=window.location.search;if(38===b.Ga&&"books"===x.playerStyle)G=b.videoId.indexOf(":"),G=g.Ml("//web.archive.org/web/20240102114909/https://play.google.com/books/volumes/"+b.videoId.slice(0,G)+"/content/media",{aid:b.videoId.slice(G+1),sig:b.y6});else if(30===b.Ga&&"docs"===x.playerStyle)G=g.Ml("https://web.archive.org/web/20240102114909/https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.g4,authkey:b.M4,eurl:x.hd});else if(33===
b.Ga&&"google-live"===x.playerStyle)G=g.Ml("//web.archive.org/web/20240102114909/https://google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{"yt"!==x.Ba&&g.KF(Error("getVideoInfoUrl for invalid namespace: "+x.Ba));var I={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:x.hd,ps:x.playerStyle,el:VT(b),hl:x.jj,list:b.playlistId,agcid:b.gU,aqi:b.adQueryId,sts:19709,lact:YE()};Object.assign(I,x.j);x.forcedExperiments&&(I.forced_experiments=x.forcedExperiments);b.ra?(I.vvt=b.ra,b.mdxEnvironment&&(I.mdx_environment=b.mdxEnvironment)):
g.$T(b)&&(I.access_token=g.$T(b));b.adFormat&&(I.adformat=b.adFormat);0<=b.slotPosition&&(I.slot_pos=b.slotPosition);b.breakType&&(I.break_type=b.breakType);null!==b.mG&&(I.ad_id=b.mG);null!==b.oG&&(I.ad_sys=b.oG);null!==b.pC&&(I.encoded_ad_playback_context=b.pC);b.kL&&(I.tpra="1");x.captionsLanguagePreference&&(I.cc_lang_pref=x.captionsLanguagePreference);x.Bb&&2!==x.Bb&&(I.cc_load_policy=x.Bb);var L=g.cD(g.bD(),65);g.BS(x)&&null!=L&&!L&&(I.device_captions_on="1");x.mute&&(I.mute=x.mute);b.annotationsLoadPolicy&&
2!==x.annotationsLoadPolicy&&(I.iv_load_policy=b.annotationsLoadPolicy);b.Ix&&(I.endscreen_ad_tracking=b.Ix);(L=x.Na.get(b.videoId))&&L.PK&&(I.ic_track=L.PK);b.Ba&&(I.itct=b.Ba);fSa(b)&&(I.autoplay="1");b.mutedAutoplay&&(I.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(I.autonav="1");b.xC&&(I.noiba="1");b.isMdxPlayback&&(I.mdx="1",I.ytr=b.vl);b.mdxControlMode&&(I.mdx_control_mode=b.mdxControlMode);b.qv&&(I.ytrcc=b.qv);b.CC&&(I.utpsa="1");b.isFling&&(I.is_fling="1");b.isInlinePlaybackNoAd&&(I.mute="1");
b.vnd&&(I.vnd=b.vnd);b.forceAdsUrl&&(L=3===b.forceAdsUrl.split("|").length,I.force_ad_params=L?b.forceAdsUrl:"||"+b.forceAdsUrl);b.pj&&(I.preload=b.pj);B.width&&(I.width=B.width);B.height&&(I.height=B.height);(b.Rf?0:b.Hh)&&(I.splay="1");b.ypcPreview&&(I.ypc_preview="1");XT(b)&&(I.content_v=XT(b));b.kb&&(I.livemonitor=1);x.ra&&(I.authuser=x.ra);x.pageId&&(I.pageid=x.pageId);x.tb&&(I.ei=x.tb);x.D&&(I.iframe="1");b.contentCheckOk&&(I.cco="1");b.racyCheckOk&&(I.rco="1");x.K&&b.cM&&(I.live_start_walltime=
b.cM);x.K&&b.Im&&(I.live_manifest_duration=b.Im);x.K&&b.playerParams&&(I.player_params=b.playerParams);x.K&&b.cycToken&&(I.cyc=b.cycToken);x.K&&b.lL&&(I.tkn=b.lL);0!==F&&(I.vis=F);x.enableSafetyMode&&(I.enable_safety_mode="1");b.tb&&(I.kpt=b.tb);b.Po&&(I.kids_age_up_mode=b.Po);b.kidsAppInfo&&(I.kids_app_info=b.kidsAppInfo);b.zy&&(I.upg_content_filter_mode="1");x.widgetReferrer&&(I.widget_referrer=x.widgetReferrer.substring(0,128));b.ma?(B=null!=b.ma.latitudeE7&&null!=b.ma.longitudeE7?b.ma.latitudeE7+
","+b.ma.longitudeE7:",",B+=","+(b.ma.clientPermissionState||0)+","+(b.ma.locationRadiusMeters||"")+","+(b.ma.locationOverrideToken||"")):B=null;B&&(I.uloc=B);b.No&&(I.internalipoverride=b.No);x.embedConfig&&(I.embed_config=x.embedConfig);x.Ll&&(I.co_rel="1");0<x.ancestorOrigins.length&&(I.ancestor_origins=Array.from(x.ancestorOrigins).join(","));void 0!==x.homeGroupInfo&&(I.home_group_info=x.homeGroupInfo);void 0!==x.livingRoomAppMode&&(I.living_room_app_mode=x.livingRoomAppMode);x.enablePrivacyFilter&&
(I.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(I.is_living_room_deeplink="1");b.Cx&&b.Dx&&(I.clip=b.Cx,I.clipt=b.Dx);b.Gx&&(I.disable_watch_next="1");b.Mo&&(I.forced_by_var="1");for(var P in I)!gab.has(P)&&I[P]&&512<String(I[P]).length&&(g.LF(Error("GVI param too long: "+P)),I[P]="");P=x.Ga;g.sS(x)&&(P=Cza(P.replace(/\b(?:www|web)([.-])/,"tv$1"))||x.Ga);x=g.Ml(P+"get_video_info",I);G&&(x=Yna(x,G));G=x}f=G;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){v.Ka(4);break}n=f;if(!(0<m)){v.Ka(5);break}return g.z(v,
bg(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=VB(f,p);case 5:return g.z(v,hab(b,n).then(e,d),7);case 7:if(q=v.B)return v.return();m++;v.Ka(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&1E-4>Math.random())try{g.LF(new g.eD("b/152131571",btoa(f)))}catch(V){}return v.return(Promise.reject(new TK(r,{backend:"gvi"},t)))}})};
hab=function(a,b){function c(B){return d(B.xhr)}
function d(B){if(!a.isDisposed()){B=B?B.status:-1;var F=0,G=((0,g.FD)()-p).toFixed();G=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:B,rt:G}:{backend:"gvi",rc:""+B,rt:G};var I="manifest.net.connect";429===B?(I="auth",F=2):200<B&&(I="manifest.net.badstatus",400===B&&(F=2));return Promise.reject(new TK(I,G,F))}}
var e,f,h,l,m,n,p,q,r,t,v,x;return g.Ha(function(B){if(1==B.j){a.fetchType="gvi";e=a.U();var F={};a.sS&&(F.ytrext=a.sS);(l=g.id(F)?void 0:F)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=VB(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=SR(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);0<Object.keys(m).length&&
(f.headers=m);p=(0,g.FD)();return g.z(B,TNa(hC,h,f).then(void 0,c),2)}q=B.B;if(!q||!q.responseText)return B.return(d(q));a.loading=!1;r=SB(q.responseText);g.qT(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.dn||""},B.return(Promise.reject(new TK("auth",t,2)));if(!a.loading&&!oT(a))return v=a.isAd()?"auth":"manifest.net.retryexhausted",x=a.isAd()?2:1,B.return(Promise.reject(new TK(v,{successButUnplayable:"1"},x)));g.xa(B)})};
I0=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.Ha(function(l){if(1==l.j){d=a.U();if(c&&(!g.DS(d)||"embedded"!==VT(b))||b.Gx||"adunit"!==VT(b)&&(g.PJ(d)||wS(d)||g.jH(d)||g.sS(d)||"WEB_CREATOR"===g.QR(d)))return l.return();e=g.JS(d,g.$T(b));return e.j?g.z(l,e.j,3):(f=e.getValue(),l.Ka(2))}2!=l.j&&(f=l.B);h=f;return l.return(iab(a,b,h))})};
iab=function(a,b,c){var d,e,f,h,l;return g.Ha(function(m){if(1==m.j){g.ya(m,2);d=dab(c);var n=b.U();g.bD();var p={context:g.hU(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===VT(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.Ll&&(p.showContentOwnerOnly=!0);b.lU&&(p.showShortsOnly=!0);g.cD(0,141)&&(p.autonavState=g.cD(0,140)?"STATE_OFF":"STATE_ON");if(g.BS(n)){n=g.cD(0,65);n=null!=n?!n:
!1;var q=!!g.YC("yt-player-sticky-caption");p.captionsRequested=n&&q}e=p;f=g.sH(jab);a.Nd("wn_s");return g.z(m,g.gI(d,e,f),4)}if(2!=m.j)return h=m.B,a.Nd("wn_r"),!h||"error"in h&&h.error||(l=h,g.rS(b.U())&&l.trackingParams&&HP(l.trackingParams),g.qT(b,{raw_watch_next_response:h},!1)),g.za(m,0);g.Aa(m);g.xa(m)})};
kab=function(a){a.Nd("vir");a.Nd("ps_s");dI("vir",void 0,"video_to_ad");var b=cab(a);b.then(function(){a.Nd("virc");dI("virc",void 0,"video_to_ad");a.Nd("ps_r");dI("ps_r",void 0,"video_to_ad")},function(){a.Nd("virc");
dI("virc",void 0,"video_to_ad")});
return b};
g.L0=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.nT(a):m;n=void 0===n?!0:n;g.cG.call(this);var p=this;this.X=a;this.playerType=b;this.Sb=c;this.OF=d;this.getVisibilityState=f;this.visibility=h;this.Qd=l;this.videoData=m;this.K4=n;this.logger=new g.LU("VideoPlayer");this.NC=new u$a(this.X);this.Ae=null;this.PA=new a0;this.Cq=null;this.bl=new S8a(this.X,this.OF,this);this.PW=!0;this.Ta=this.Aa=null;this.Sp=[];this.Tp=new H0;this.Zf=this.SE=null;this.Ar=new H0;this.QJ=null;this.tO=this.At=!1;this.RJ=
NaN;this.rZ=!1;this.playerState=new g.NL;this.TJ=[];this.JB=new g.aL;this.Mk=new F8a(this);this.mediaElement=null;this.pw=new g.Eu(this.j9,15E3,this);this.kR=this.nJ=!1;this.Sw=NaN;this.PG=!1;this.uM=0;this.OG=new g.Eu(this.nR,4500,this);this.XD=!1;this.QI=NaN;this.LR=new yV(new Map([["bufferhealth",function(){return M$a(p.Zc)}],
["bandwidth",function(){return p.GN()}],
["networkactivity",function(){return p.X.schedule.K}],
["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?lab(p):NaN}],
["rawlivelatency",function(){return lab(p)}]]));
this.jE=0;this.loop=!1;this.playbackRate=1;this.CX=0;this.Zc=new H$a(this);this.TU=!1;this.SJ=[];this.dP=this.tZ=0;this.hR=this.l0=!1;this.HB=this.Bu=this.Nr=0;this.hM=new g.Eu(this.B6,0,this);this.uc=this.bd=null;this.m8=[this.JB,this.hM,this.pw,this.OG,this.LR];this.qg=function(){var q=p.qc();q.provider.X.Nf||3===q.provider.qa.getVisibilityState()||(q.provider.X.Nf=!0);g$a(q);if(q.B){var r=q.B;r.G&&0>r.j&&3!==r.provider.qa.getVisibilityState()&&h9a(r)}q.qoe&&(q=q.qoe,q.Xa&&0>q.B&&q.provider.X.Nf&&
F9a(q));p.Aa&&J0(p);p.X.Uo&&!p.videoData.backgroundable&&p.mediaElement&&!p.Oh()&&(p.isBackground()&&p.mediaElement.BG()?(p.va("bgmobile",{suspend:1}),p.oo(!0,!0)):p.isBackground()||K0(p)&&p.va("bgmobile",{resume:1}))};
this.Fd={Pp:function(q){p.Pp(q)},
zkb:function(q){p.Ae=q},
ajb:function(){return p.dA},
WH:function(){return p.eA},
Dib:function(){return p.OG}};
this.logger.debug(function(){return"creating, type "+b});
this.Ui=new v0(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.kK("endcr")||g.TG(p.playerState,32)||yY(p);
e(q,r,p.playerType)});
g.J(this,this.Ui);g.J(this,this.Zc);mab(this,m);this.videoData.subscribe("dataupdated",this.T$,this);this.videoData.subscribe("dataloaded",this.LM,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.va,this);this.videoData.subscribe("ctmpstr",this.jF,this);this.bN();X0a(this.qg);this.visibility.subscribe("visibilitystatechange",this.qg)};
HL=function(a){return a.L("html5_not_reset_media_source")&&!a.wj()&&!a.videoData.isLivePlayback&&g.WT(a.videoData)&&!a.X.supportsGaplessShorts()};
mab=function(a,b){if(2===a.playerType||a.X.Wo)b.n_=!0;var c=mQa(b.Bd,b.iz,a.X.D,a.X.K);c&&(b.adFormat=c);2===a.playerType&&(b.fl=!0);if(a.isFullscreen()||a.X.D)c=g.YC("yt-player-autonavstate"),b.autonavState=c||(a.X.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&M0(a,b.endSeconds)};
oab=function(a){if(a.videoData.W){var b=a.Qd.ud();a.videoData.Tw=a.videoData.Tw||(null==b?void 0:b.KN());a.videoData.sx=a.videoData.sx||(null==b?void 0:b.NN())}if(YRa(a.videoData)||!jSa(a.videoData))b=a.videoData.errorDetail,a.xg(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.dn||void 0);a.videoData.Qf=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&nab(a)};
pab=function(a){O1a(a.dA);g.ub(a.dA);for(var b=a.eA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())O1a(d.value);b.j.clear();g.ub(a.eA)};
qab=function(a){return a.mediaElement&&a.mediaElement.Ou()?a.mediaElement.Fb():null};
N0=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;if(a.videoData.Ee())return!0;a.xg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.xY=function(a,b){(b=void 0===b?!1:b)||g.dU(a.videoData)||SY(a.qc());a.At=b;!N0(a)||a.Tp.Bt()?g.PJ(a.X)&&a.videoData.isLivePlayback&&a.Tp.Bt()&&!a.Tp.finished&&!a.At&&a.LM():(a.Tp.start(),b=a.qc(),g.HN(b.provider),b.qoe&&A9a(b.qoe),a.LM())};
rab=function(a){var b=a.videoData;kab(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=VK(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.xg(c.errorCode,2,unescape(a.videoData.errorReason),SK(c.details),a.videoData.errorDetail,a.videoData.dn||void 0):a.handleError(c))})};
h1a=function(a,b){a.bd=b;a.Aa&&K7a(a.Aa,new g.T_(b))};
tab=function(a){if(!g.TG(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.Sp=g.Kb(a.videoData.Ea),g.LT(a.videoData)){a.Sb.tick("bpd_s");O0(a).then(function(){a.Sb.tick("bpd_c");if(!a.isDisposed()){a.At&&(a.Cc(QL(QL(a.playerState,512),1)),K0(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&M0(a,c.endSeconds);a.Tp.finished=!0;P0(a,"dataloaded");a.Ar.Bt()&&sab(a);g9a(a.bl,a.Zf)}});
a.L("html5_log_media_perf_info")&&a.va("loudness",{v:a.videoData.Mf.toFixed(3)},!0);var b=kSa(a.videoData);b&&a.va("playerResponseExperiment",{id:b},!0);a.sM()}else P0(a,"dataloaded")};
O0=function(a){Q0(a);a.Zf=null;var b=w$a(a.X,a.videoData,a.Oh());a.SE=b;a.SE.then(function(c){uab(a,c)},function(c){a.isDisposed()||(c=VK(c),a.visibility.isBackground()?(R0(a,"vp_none_avail"),a.SE=null,a.Tp.reset()):(a.Tp.finished=!0,a.xg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",SK(c.details))))});
return b};
G8a=function(a){a.logger.debug("Updating for format change");O0(a).then(function(){return K0(a)});
g.TL(a.playerState)&&a.playVideo()};
uab=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.logger.debug("finished building playback data");a.Zf=b;J$a(a.Zc,a.Zf);if(a.videoData.isLivePlayback){var c=g2a(a.Qd.Kt,a.videoData.videoId)||a.Aa&&!isNaN(a.Aa.Ea);c=a.L("html5_onesie_live")&&c;0<a.videoData.Ub&&!xT(a.videoData)||c||a.seekTo(a.Ke(),{wd:"videoplayer_playbackData",seekSource:18})}a.videoData.C.j?a.Aa?g.LF(Error("Duplicated Loader")):(c=g.EJ(a.X.experiments,"html5_onesie_defer_content_loader_ms"))&&O_(a)&&g2a(a.Qd.Kt,
a.videoData.x7)?g.aC(function(){a.isDisposed()||a.Aa||vab(a)},c):vab(a):!a.videoData.C.j&&bU(a.videoData)&&a.wJ(new NZ(a.videoData.videoId||"",4));
S0(a);Y8a(b).then(function(){a.Co();J0(a)})}};
wab=function(a){a.logger.debug("start readying playback");a.mediaElement&&a.mediaElement.Dy();g.xY(a);N0(a)&&!g.TG(a.playerState,128)&&(a.Ar.Bt()||(a.Ar.start(),a.videoData.Jm?a.Cc(QL(a.playerState,4)):a.Cc(QL(QL(a.playerState,8),1))),sab(a))};
sab=function(a){a.isDisposed();a.logger.debug("try finish readying playback");if(a.Ar.finished)a.logger.debug("already finished readying");else if(a.Tp.finished)if(g.TG(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.Sp.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.Sp});
else if(a.Ui.started||s$a(a.Ui),a.Dp())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.Aa&&(a.tO=N2a(a.Aa.timing));a.Ar.finished||(a.Ar.finished=!0);var b=a.L("html5_onesie_live")&&a.Aa&&!isNaN(a.Aa.Ea);!a.videoData.isLivePlayback||0<a.videoData.Ub&&!xT(a.videoData)||b||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{wd:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.kR=!0));f$a(a.qc());a.logger.debug("finished readying playback");a.oa("playbackready",
a);$H("pl_c",a.Sb.timerName)||(a.Sb.tick("pl_c"),dI("pl_c",void 0,"video_to_ad"));$H("pbr",a.Sb.timerName)||(a.Sb.tick("pbr"),dI("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")};
yY=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.Cc(b?new g.NL(14):new g.NL)};
M0=function(a,b){a.Cq&&xab(a);a.Cq=new g.jK(1E3*b,0x7ffffffffffff);a.Cq.namespace="endcr";a.addCueRange(a.Cq)};
xab=function(a){a.removeCueRange(a.Cq);a.Cq=null};
yab=function(a,b,c,d,e){var f=a.qc(e);e=g.dU(a.videoData)?f.getVideoData():a.videoData;e.B=c;var h=g.BV(a);f.NE(new R8a(e,c,b,h?h.itag:"",d));c=a.bl;c.B=0;c.j=0;a.oa("internalvideoformatchange",e,"m"===b)};
g.BV=function(a){var b=T0(a);return RP(b)||!a.Zf?null:g.Db(a.Zf.j.videoInfos,function(c){return b.D(c)})};
T0=function(a){if(a.Zf){var b=a.bl;var c=a.Zf;a=a.Gv();if(b.qa.An().isInline())var d=mT;else b.L("html5_exponential_memory_for_sticky")?d=.5>sPa(b.X.Mf,"sticky-lifetime")?"auto":SP[LP()]:d=SP[LP()],d=g.QP("auto",d,!1,"s");if(RP(d)){d=T8a(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.u(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.B)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;xoa()&&!g.PJ(b.X)&&hL(c.j.videoInfos[0])&&
(f=Math.min(f,g.cL.large));d=e.call(d,new PP(0,f,!1,"o"));e=d.compose;f=4320;!b.X.B||g.rS(b.X)||b.X.L("hls_for_vod")||b.X.L("mweb_remove_360p_cap")||(f=g.cL.medium);(h=g.EJ(b.X.experiments,"html5_default_quality_cap"))&&c.j.j&&(b.X.L("html5_always_apply_default_quality_cap")||!c.videoData.wk&&!c.videoData.ge)&&(f=Math.min(f,h));h=g.EJ(b.X.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.EJ(b.X.experiments,"html5_hfr_quality_cap"))a:{l=
c.j;if(l.j)for(l=g.u(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.EJ(b.X.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=e9a(b,c,f);d=e.call(d,new PP(0,4320===f?0:f,!1,"d")).compose(d9a(b,c.videoData)).compose(f9a(b,c.videoData,c)).compose(c9a(b,c)).compose(W8a(b,c));if(RP(a)||b.L("html5_apply_pbr_cap_for_drm"))d=d.compose(X8a(b,c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(c9a(b,
c))),b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(X8a(b,c)));d=d.compose(W8a(b,c));b=c.videoData.Ay.compose(d).compose(c.videoData.xU).compose(a)}else b=mT;return b};
O6a=function(a){var b=a.bl;a=a.videoData;var c=d9a(b,a);b.L("html5_disable_client_autonav_cap_for_onesie")||c.compose(f9a(b,a));return c};
g.zab=function(a,b,c,d){a.videoData.Ay=b;if(a.Zf&&c){c=a.bl;var e=a.Zf;if(e.j.j){var f=LP(),h=e.j.videoInfos[0].video.j;if(!(f>h&&0!==h&&b.j===h)){var l;f=V8a(c,null==(l=e.j)?void 0:l.videoInfos);l=c.qa.getPlaybackRate();1<l&&f&&(l=WOa(c.X.G,e.j.videoInfos,l),0!==b.j&&l<b.j&&c.qa.setPlaybackRate(1));var m,n;b=g.cL[TP(b)];e=(null==(m=e.videoData.B)?void 0:null==(n=m.video)?void 0:n.j)||0;g.XC("yt-player-quality",{quality:b,previousQuality:e},31104E3);c.X.schedule.policy.C=480<=LP();if(c.L("html5_exponential_memory_for_sticky")){m=
c.X.Mf;n=1;var p=void 0===p?!1:p;rPa(m,"sticky-lifetime");m.values["sticky-lifetime"]&&m.Oq["sticky-lifetime"]||(m.values["sticky-lifetime"]=0,m.Oq["sticky-lifetime"]=0);p&&.0625<sPa(m,"sticky-lifetime")&&(n=2*m.Oq["sticky-lifetime"]);m.values["sticky-lifetime"]+=1*Math.pow(2,m.j/n);m.Oq["sticky-lifetime"]=n;m.D.start()}if(c.L("html5_perf_cap_override_sticky"))if(c.L("html5_perserve_av1_perf_cap")){p=MP();c=g.u(Object.keys(p));for(m=c.next();!m.done;m=c.next())m=m.value,0!==m.indexOf("1")&&(p[m]=
0);g.XC("yt-player-performance-cap",p,604800)}else g.ZC("yt-player-performance-cap")}}}a.Aa&&(p=a.Aa,d=d||"",XV(p.policy)?AZ(p.D.j,d):AZ(p.j.G,d));S0(a)};
nab=function(a){a.videoData.videoId?a.Qd.EN(a.videoData.videoId).then(function(b){a.videoData.M5=b}):a.va("pomvid",{})};
S0=function(a){if(!a.isDisposed()&&!g.TG(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)J0(a);else{var b=T0(a),c=a.videoData;a:{var d=a.videoData.jd;if(b.j){for(var e=g.u(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.qh(),l=g.cL[h.video.quality];if((!b.C||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.bb=d;yab(a,b.reason,Aab(a,a.videoData.bb))}if(a.L("html5_check_unstarted")?g.TL(a.playerState):a.isPlaying())a.Zc.Ba=!1,a.playVideo()}};
J0=function(a){if(a.videoData.C&&a.videoData.C.j){var b=T0(a);a.Aa&&u7a(a.Aa,b)}};
Bab=function(a){var b;return!!(a.L("html5_native_audio_track_switching")&&g.zD&&(null==(b=a.videoData.B)?0:lL(b)))};
Cab=function(a){if(!Bab(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
Eab=function(a){var b=Dab(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Lc.getName()===b})};
Dab=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}};
vab=function(a){for(var b=a.videoData.j,c=g.u(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.X.j.c,cver:a.X.j.cver})),d=c.next();!d.done;d=c.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;for(var f=g.u(Object.values(b.j)),h=f.next();!h.done;h=f.next())pNa(h.value.resource,d,e);f=void 0;null==(f=b.Qa)||pNa(f,d,e)}c=a.X;d=a.videoData;b=new g.PVa(c);e=OVa(c,{hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,RD:d.RD});b.Z=e;b.ma=d.maxReadAheadMediaTimeMs/1E3||b.ma;e=c.schedule;e.j.Wi()===
e.policy.B?b.bb=10:b.bb=d.minReadAheadMediaTimeMs/1E3||b.bb;b.Nf=d.readAheadGrowthRateMs/1E3||b.Nf;Zr&&(b.Oc=41943040);b.Km=!FBa();g.PJ(c)||!FBa()?(e=c.experiments,b.ra=8388608,b.Va=524288,b.wl=5,b.La=1048576,b.Fp=1.5,b.Ob=4587520,yoa()&&(b.Ob=786432),b.K*=1.1,b.W*=1.1,b.Ub=!0,b.Oc=b.ra,b.He=e.jb("persist_disable_player_preload_on_tv")||e.jb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.B&&(b.K*=1.3,b.W*=1.3);g.YK&&g.qC("crkey")&&(e="CHROMECAST/ANCHOVY"===c.j.cmodel,b.ra=20971520,
b.Va=1572864,e&&(b.Ob=812500,b.rj=1E3,b.Iu=5,b.La=2097152));g.MR&&(b.Ub=!0);c.supportsGaplessAudio()||(b.Il=!1);kS&&(b.Rb=!0);b.Od=c.L("html5_peak_shave");"onesie"===d.fetchType&&c.L("html5_disable_peak_shave_for_onesie")&&(b.Od=!1);var l;e=null==(l=d.j)?void 0:ZP(l);if(xT(d)){b.Bd=!0;b.Ri=!0;b.kb=!0;b.vj=!0;b.lr=!0;if("ULTRALOW"===d.latencyClass||"LOW"===d.latencyClass&&!c.L("html5_disable_low_pipeline"))b.Mm=2,b.Rm=4;b.Tj=d.defraggedFromSubfragments;if(d.Ff||c.L("html5_publish_all_cuepoints"))b.Yo=
!0;g.NT(d)&&(b.Za=!1);b.Im=g.NJ(c)}d.isAd()&&(b.jj=0,b.Qi=0,b.hd=g.EJ(c.experiments,"html5_min_startup_buffered_ad_media_duration_secs"));b.Rf=c.L("html5_enable_subsegment_readahead_v3")||c.L("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===d.latencyClass;b.j=/^rq/.test(d.clientPlaybackNonce)||c.Uc();Doa()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.L("html5_disable_move_pssh_to_moov")&&e&&(b.Ub=!1);f=0;c.L("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,
d.isLivePlayback&&(f=g.EJ(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.Ea.D=xT(d)?.5:0;if(!l.policy.D&&f&&(l=l.j,f=Math.round(f*l.resolution),f!==l.j)){h=Array(f);var m=Math.min(f,l.C?l.j:l.B),n=l.B-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.B=m%f;l.C=m===f;l.Vl=
!0;l.G=gPa(l)}d.isLivePlayback&&((l=g.EJ(c.experiments,"html5_min_startup_duration_live_secs"))?b.hd=l:b.Po=!0);FT(d)&&(b.Rf=!0,"LOW"===d.latencyClass?b.tb=g.EJ(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===d.latencyClass&&(b.tb=g.EJ(c.experiments,"html5_jumbo_ull_subsegment_readahead_target")),b.Qo=!0);d.Ac()&&(b.Em=1.3);c.L("html5_enable_drc_toggle_api")&&(b.jd=d.f7);b.Rb=b.Rb||d.aG;b.D=g.dU(d);b.Na=d.W||b.D;c.Uc()&&(b.Ga=!0);d.W&&!e&&(b.Kp=!0);d.W&&d.isAd()&&(b.K*=
1.6,b.W*=1.6);bU(d)&&(b.C=d.videoId,b.ql=!0,b.xx=4,d.lr&&0<d.lr.length&&(b.ue=d.lr));b.zf=d.Cm;b.lj=EOa(c,{},d.C||void 0,DRa(d));b.Qa=DT(d)&&g.jH(c);wT(d)&&(c.L("html5_sabr_use_accurate_slice_info_params")&&(b.N=!0),b.B=!0,b.Fl=c.L("html5_disable_client_resume_policy_for_sabr"),b.sx=c.L("html5_trigger_loader_when_idle_network"),b.Mf&&(b.Ri=!0),b.To=c.L("html5_enable_platform_backpressure_with_sabr"),b.lh=c.L("html5_consume_onesie_next_request_policy_for_sabr"),b.Zo=c.L("html5_sabr_report_next_ad_break_time"),
b.Pe=c.L("html5_use_ump_request_slicer"),b.Ax=c.L("html5_use_loader_time_in_sabr_requests"),b.gr=c.L("html5_sabr_exact_timestamps"),b.Ll=c.L("html5_log_high_res_buffer_timeline"));b.G=b.B&&c.L("html5_sabr_live");bQ(c.G,cQ.BITRATE)&&(b.Ob=NaN);if(l=g.EJ(c.experiments,"html5_request_size_max_kb"))b.La=1024*l;c.G.D&&(b.nh="; "+cQ.EXPERIMENTAL.name+"=allowed");c=d.serverPlaybackStartConfig;(null==c?0:c.enable)&&(null==c?0:c.playbackStartPolicy)&&(b.Qf=!0,SVa(b,c.playbackStartPolicy,2));if(a.X.experiments.jb("enable_audio_description_setting")&&
g.cD(g.bD(),198))for(c=a.videoData.getAvailableAudioTracks(),c=g.u(c),d=c.next();!d.done;d=c.next())if(d=d.value,d.G){var q=d;break}q||(q=a.getAudioTrack(),q=q.Lc.isDefault?void 0:q);a.PA.Jf();a:{c=a.Qd.Kt;if(d=a.videoData.videoId)if(l=c.j.get(d)){c.j.remove(d);c=l;break a}c=void 0}a.Aa=new g.N_(a,a.X.schedule,b,a.videoData.j,a.videoData.C,T0(a),q,a.videoData.enableServerStitchedDai,c,a.videoData.La);q=a.At&&g.PJ(a.X)&&a.videoData.isLivePlayback;a.Aa.initialize(a.getCurrentTime(),T0(a),q);a.videoData.probeUrl&&
(a.Aa.Qa=a.videoData.probeUrl);if(a.Sp.length||a.At)a.videoData.cotn||U0(a,!1);L$a(a.Zc,a.Aa);a.bd&&K7a(a.Aa,new g.T_(a.bd));a.uc&&(a.Aa.xK(a.uc),a.Zc.Ba=!1);g.eU(a.videoData)&&(q=a.Aa,q.policy.Hh=q.policy.nG,a.L("html5_offline_retry_index_db_read")&&(MQa=!0))};
Q0=function(a){a.Aa&&(a.Aa.dispose(),a.Aa=null,L$a(a.Zc,null));HL(a)?Fab(a):V0(a)};
Fab=function(a){if(a.Ta)if(a.logger.debug("release media source"),a.fz(),a.Ta.G)try{a.X.Uc()&&a.va("rms",{l:"vprms",sr:HL(a),rs:JL(a.Ta)});a.Ta.clear();var b;null!=(b=a.mediaElement)&&(b.B=a.Ta);a.Ta=null}catch(c){b=new g.eD("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=VK(b),a.handleError(b),V0(a)}else V0(a)};
V0=function(a){a.Ta&&(a.logger.debug("remove media source"),IBa(a.Ta),a.fz(),a.Ta.dispose(),a.Ta=null)};
Gab=function(a){if(a.Ta)return a.Ta.C;a.logger.debug("update media source");a:{try{g.sC()&&a.videoData.PO()&&LBa(a.mediaElement);var b=a.mediaElement.Iq(a.ON(),a.LN())}catch(d){if(K8a(a.Mk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.xg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}M0a(a,b)}var c;return(null==(c=a.Iq())?void 0:c.C)||null};
M0a=function(a,b,c){function d(e){try{Hab(a,e,c)}catch(f){g.LF(f),a.handleError(new TK("fmt.unplayable",{msi:"1",ename:f&&"object"===typeof f&&"name"in f?String(f.name):void 0},1))}}
c=void 0===c?!1:c;Iab(a);a.Ta=b;HL(a)&&"open"===JL(a.Ta)?d(a.Ta):BBa(a.Ta,d)};
Iab=function(a){if(a.Aa){var b=a.getCurrentTime()-a.Pc();a.L("html5_skip_loader_media_source_seek")&&a.Aa.getCurrentTime()===b||a.Aa.seek(b,{}).Al(function(){})}else vab(a)};
Hab=function(a,b,c){c=void 0===c?!1:c;if(a.Ta&&(!b||a.Ta===b)){a.logger.debug("media source opened");var d=a.getDuration();!d&&xT(a.videoData)&&(d=25200);if(a.Ta.isView){var e=d;a.logger.debug(function(){return"Set media source duration to "+e+", video duration "+d});
e>a.Ta.getDuration()&&a.Ta.xl(e)}else a.Ta.xl(d);r7a(a.Aa,a.Ta,c);a.oa("mediasourceattached")}};
w7a=function(a,b){yab(a,b.reason,b.j.info,b.token,b.videoId)};
c0=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d,e,f;return g.Ha(function(h){if(1==h.j){a.Aa&&a.Aa.Ov();a.Aa&&a.Aa.isDisposed()&&Q0(a);if(a.L("html5_enable_vp9_fairplay")&&a.wj()&&null!=(d=a.videoData.j)){var l=d,m;for(m in l.j)l.j.hasOwnProperty(m)&&(l.j[m].j=null,l.j[m].C=!1)}a.Cc(QL(a.playerState,2048));a.oa("newelementrequired");return b?g.z(h,O0(a),2):h.Ka(2)}a.videoData.Ac()&&(null==(e=a.Aa)?0:e.Ea)&&((f=a.isAtLiveHead())&&vT(a.videoData)?a.seekTo(Infinity,{wd:"videoPlayer_getNewElement"}):
a.videoData.Xd&&a.Aa&&(l=a.Aa,l.manifest.Ac&&(l.manifest.Xd||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{wd:"loader_resetSqless"}),l.videoTrack.N=!0,l.audioTrack.N=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):CR(l.manifest)&&S_(l))));c&&a.seekTo(0);g.TG(a.playerState,8)&&a.playVideo();g.xa(h)})};
Jab=function(a,b){a.videoData.W=!1;b&&c0(a);a.Aa&&o7a(a.Aa)};
S0a=function(a,b){a.va("newelem",{r:b});c0(a)};
Kab=function(a,b){a.Sb.D.NP();g.TG(a.playerState,32)||(a.Cc(QL(a.playerState,32,null==b?void 0:b.seekSource)),g.TG(a.playerState,8)&&a.pauseVideo(!0),a.oa("beginseeking",a));a.Kc()};
q1a=function(a,b){b=null==b?void 0:b.seekSource;g.TG(a.playerState,32)?(a.Cc(SL(a.playerState,16,32,b)),a.oa("endseeking",a)):g.TG(a.playerState,2)||a.Cc(QL(a.playerState,16,b));a.Sb.D.SP(a.videoData,a.playerState.isPaused())};
cVa=function(a){var b=0,c="";if(a.bd){if(a.bd.tp)return"D,";b=a.bd.JN()}else a.uc&&(b=a.uc.JN(),c=a.uc.zg.substring(0,4));return 0<b?(a="AD"+b+", ",c&&(a+=c+", "),a):""};
P0=function(a,b){a.oa("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
Lab=function(a){for(var b=g.u("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.JB.T(a.mediaElement,c.value,a.sQ,a);a.X.Jl&&a.mediaElement.Ou()&&(a.JB.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.s8,a),a.JB.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.t8,a))};
Nab=function(a){g.dC(a.RJ);Mab(a)||(a.RJ=g.bC(function(){return Mab(a)},100))};
Mab=function(a){var b=a.mediaElement;b&&a.nJ&&!a.videoData.Va&&!$H("vfp",a.Sb.timerName)&&2<=b.Ck()&&!b.Ph()&&0<wL(b.Kh())&&a.Sb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Va&&0<b.getDuration()&&(b.isPaused()&&2<=b.Ck()&&0<wL(b.Kh())&&($H("pbp",a.Sb.timerName)||a.Sb.tick("pbp"),!a.videoData.Jm||a.rZ||b.Uf()||(a.rZ=!0,a.oa("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),w0(a.NC,b))?(K0a(a),!0):!1};
K0a=function(a){g.dC(a.RJ);a.pw.stop();a.videoData.Va=!0;a.X.Mo=!0;a.X.Ub=0;var b=a.Mk;if(b.videoData.B){var c=b.Fa.G;c.C.delete(b.videoData.B.ub);c.B=!0}b.j.stop();Oab(a);g.TG(a.playerState,8)&&a.Cc(RL(a.playerState,65));a.At=!1;N1a(a.qc());g.Fu(a.OG);a.oa("playbackstarted");(a=g.Sa("yt.scheduler.instance.clearPriorityThreshold"))?a():nD(0)};
Oab=function(a){var b=a.Qd.Dd(),c={},d={};!$H("pbs",a.Sb.timerName)&&HH.measure&&HH.getEntriesByName&&(HH.getEntriesByName("mark_nr")[0]?Dxa("mark_nr"):Dxa());b.videoId&&(c.videoId=b.videoId);b.clientPlaybackNonce&&!a.L("web_player_early_cpn")&&(c.clientPlaybackNonce=b.clientPlaybackNonce);if(a.mediaElement&&a.mediaElement.isPaused())if(a.X.experiments.jb("web_csi_via_jspb")){var e=new sB;Vj(e,6,!0);var f=new tB;Jj(f,sB,22,e);g.OB(XH)(f,a.Sb.timerName)}else d.isPausedOnLoad=!0;a.X.experiments.jb("web_csi_via_jspb")?
(e=new sB,b.B?Wj(e,1,Number(b.B.itag)):Wj(e,1,-1),f=new tB,Jj(f,sB,22,e),g.OB(XH)(f,a.Sb.timerName)):d.itag=b.B?Number(b.B.itag):-1;b.pj&&(f=a.tO?2:1,a.X.experiments.jb("web_csi_via_jspb")?(e=new sB,O(e,8,f),f=new tB,Jj(f,sB,22,e),g.OB(XH)(f,a.Sb.timerName)):d.preloadType=String(a.tO?2:1));c.liveStreamMode=Pab[JT(b)];c.playerInfo=d;a.Sb.infoGel(c);if(a.Aa){b=a.Aa.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.G&&(c=window.performance.getEntriesByName(b.G),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.B&&(c=window.performance.getEntriesByName(b.B),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 h in b)b.hasOwnProperty(h)&&a.Sb.tick(h,b[h])}};
Qab=function(a){a.qc().If();if(vT(a.videoData)&&Date.now()>a.CX+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&tOa(a.videoData.j))){var b=a.qc();if(b.qoe){b=b.qoe;var c=b.provider.qa.HD(),d=g.HN(b.provider);v9a(b,d,c);c=c.C;isNaN(c)||g.f0(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.NJ(b.U())?!0:"TVHTML5"===g.QR(b.U())?"6"===b.Qm:!1):b=g.NJ(a.X);b&&a.va("rawlat",{l:AV(a.LR,"rawlivelatency").toFixed(3)});a.CX=Date.now()}a.videoData.B&&lL(a.videoData.B)&&(b=qab(a))&&
b.videoHeight!==a.dP&&(a.dP=b.videoHeight,yab(a,"a",Aab(a,a.videoData.bb)))};
Aab=function(a,b){if("auto"===b.j.video.quality&&lL(b.qh())&&a.videoData.jd)for(var c=g.u(a.videoData.jd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.dP&&"auto"!==d.j.video.quality)return d.qh();return b.qh()};
lab=function(a){if(!vT(a.videoData))return NaN;var b=0;a.Aa&&a.videoData.j&&(b=xT(a.videoData)?a.Aa.fH.Wi()||0:a.videoData.j.ra);return(0,g.FD)()/1E3-a.bf()-b};
Sab=function(a){a.mediaElement&&a.mediaElement.Oh()&&(a.QI=(0,g.FD)());a.X.Fp?g.aC(function(){Rab(a)},0):Rab(a)};
Rab=function(a){var b;if(null==(b=a.Ta)||!b.mm()){if(a.mediaElement)try{a.QJ=a.mediaElement.playVideo()}catch(d){R0(a,"err."+d)}if(a.QJ){var c=a.QJ;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d});
if(!g.TG(a.playerState,4)&&!g.TG(a.playerState,256)&&a.QJ===c)if(d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))a.logger.debug(function(){return"ignore play media element failure: "+d.message});
else{var e="promise";d&&d.name&&(e+=";m."+d.name);R0(a,e);a.TU=!0;a.videoData.Rf=!0}})}}};
R0=function(a,b){g.TG(a.playerState,128)||(a.Cc(SL(a.playerState,1028,9)),a.va("dompaused",{r:b}),a.oa("onAutoplayBlocked"))};
K0=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=Gab(a);var d;null==(d=a.Aa)||d.resume()}else Q0(a),a.videoData.bb&&(c=a.videoData.bb.iC());b=c;d=a.mediaElement.BG();c=!1;d&&d.equals(b)||(Uab(a,b),c=!0);g.TG(a.playerState,2)||(b=a.Zc,b.G||!(0<b.D)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||(d={wd:"seektimeline_resumeTime"},b.videoData.Va||(d.seekSource=15),b.seekTo(b.D,d)));a:{b=c;if(wT(a.videoData)){if(!a.videoData.wj())break a}else if(!g.IT(a.videoData))break a;
if(a.mediaElement)if((d=a.videoData.K)&&a.mediaElement.Ou()){var e=a.mediaElement.Fb();if(a.Ae)if(e!==a.Ae.element)W0(a);else if(b&&"fairplay"===d.flavor&&!tC())W0(a);else break a;if(a.L("html5_report_error_for_unsupported_tvos_widevine")&&tC()&&"widevine"===d.flavor)a.xg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Ae=new y8a(e,a.videoData,a.X);a.Ae.subscribe("licenseerror",a.vJ,a);a.Ae.subscribe("qualitychange",a.h9,a);a.Ae.subscribe("heartbeatparams",
a.DE,a);a.Ae.subscribe("keystatuseschange",a.Pp,a);a.Ae.subscribe("ctmp",a.va,a);a.L("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&"widevine"===d.flavor&&a.Ae.Gw(new MZ(Vab,"cenc",!1));b=g.u(a.PA.keys);for(d=b.next();!d.done;d=b.next())d=a.PA.get(d.value),a.Ae.Gw(d);a.L("html5_eme_loader_sync")||a.PA.Jf()}}else a.xg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c};
Uab=function(a,b){a.Sb.tick("vta");dI("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&O$a(a.Zc,a.getCurrentTime());a.mediaElement.Dy(b);a.Ta&&nD(4);!a.videoData.Va&&g.TL(a.playerState)&&a.pw.start();if(Bab(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.oa("internalaudioformatchange",a.videoData,!0)}}};
W0=function(a){a.Ae&&(a.Ae.dispose(),a.Ae=null)};
uY=function(a,b){b=void 0===b?!1:b;return vT(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.Xq()||g.NT(a.videoData))?a.getCurrentTime():g.dU(a.videoData)&&a.uc?I1a(a.uc,a.getCurrentTime()):a.Ke(b)};
Wab=function(a){a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Ta?(W0(a),V0(a),Gab(a)):(a.videoData.bb&&a.videoData.bb.mR(),a.mediaElement.stopVideo()),a.playVideo())};
Xab=function(a,b){a.X.L("html5_log_rebuffer_reason")&&a.va("bufreason",{r:b,lact:YE()})};
n1a=function(a,b,c,d,e,f,h){var l;if(null==(l=a.videoData.j)?0:l.isLive){var m=2===c.playerType?c:b,n=b.videoData.videoId,p=c.videoData.videoId;if(n&&p){l=a.qc();if(l.qoe){var q=l.qoe,r=b.cpn,t=c.cpn,v=m.videoData.Bd,x=q.provider.videoData.clientPlaybackNonce,B=q.provider.videoData.videoId,F=t!==x&&p!==B;x=r!==x&&n!==B;q.reportStats();q.adCpn&&q.adCpn!==r||(q.adCpn=x?r:"",q.W=x?n:"",q.adFormat=x?v:void 0,RY(q,2,h?4:f?2:0,t,p,e),q.reportStats(),q.adCpn=F?t:"",q.W=F?p:"",q.adFormat=F?v:void 0,RY(q,
2,h?5:f?3:1,r,n,d),q.reportStats())}d=b.cpn;if(l.C.has(d)){if(f=l.C.get(d),r0(f,!0).send(),q0(f),d!==l.provider.videoData.clientPlaybackNonce){a$a(f);var G;null==(G=l.j)||W9a(G);l.C.delete(d)}}else l.Ug=l.provider.videoData.clientPlaybackNonce,l.Ug&&l.j&&(l.C.set(l.Ug,l.j),r0(l.j).send(),q0(l.j));G=c.cpn;m=m.videoData;d=e-a.Lq();if(l.C.has(G)){m=l.C.get(G);var I=m.C&&isNaN(m.D)?o0(m):NaN;m=$9a(m,!1);isNaN(I)||(m.G=I);m.send()}else m=j$a(l,l.provider,m,d),l.C.set(G,m),m.Sd(new g.SG(QL(new g.NL,8),
new g.NL)),V9a(m),null==(I=l.j)||q0(I);l.Ug=G;a.L("html5_unify_csi_server_stitched_transition_logging")?AVa(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,e,c.videoData):(l=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===l?"video":"ad")+"_to_"+(c.cpn===l?"video":"ad"),l={},a.G&&(l.cttAuthInfo={token:a.G,videoId:a.videoId}),l.startTime=e,bI(b,l),g.aI({targetVideoId:a.videoId,targetCpn:c.cpn},b),cI("pbs",e,b))}}};
Yab=function(a,b){if(a.X.Uc()&&a.mediaElement){var c=a.mediaElement.pc();c.omt=(a.mediaElement.getCurrentTime()+a.Pc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(1E3*g.HN(a.qc().provider)).toFixed();a.L("html5_restore_time_after_unpause_redux")?c.e=b:c.e=b.substr(0,3);a.SJ[a.tZ++%5]=c}"timeupdate"!==b&&"progress"!==b&&a.logger.debug(function(){return"video element event "+b})};
Zab=function(a){if(a.X.Uc()){a.SJ.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.u(a.SJ),c=b.next();!c.done;c=b.next())c=c.value,a.va("vpe",Object.assign({t:c.rt},c));a.SJ=[];a.tZ=0}};
$ab=function(a){if(g.qC("cobalt")&&g.qC("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.va("nxdock",{d:b})}};
J0a=function(a,b,c,d,e){a.va("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
U0=function(a,b){var c;null==(c=a.Aa)||Q_(c,b)};
O_=function(a){return g.Fb(a.Sp,"ad")};
abb=function(a){return g.dU(a.videoData)&&a.uc?QY(a.uc):a.videoData.Ke()};
g.X0=function(a,b,c,d){g.H.call(this);var e=this;this.logger=new g.LU("App");this.pA=this.oi=!1;this.Sr={};this.Hy=new xSa;this.ZJ={};this.iB=[];this.kX=!1;this.LO=null;this.pX=!1;this.Zv=!0;this.CR=!1;this.GX=this.fP=null;this.SX=!0;this.mediaElement=this.Eb=null;this.BP=NaN;this.QE=!1;this.qe=this.LB=this.uc=this.Oe=this.screenLayer=this.fF=this.wb=this.playlist=null;this.logger.debug("constructor begin");this.config=ipa(b||{});this.webPlayerContextConfig=c;Fpa();b=this.config.args||{};this.X=new FPa(b,
c,c?c.canaryState:this.config.assets.player_canary_state,d,this);g.J(this,this.X);this.sM();this.X.experiments.jb("jspb_serialize_with_worker")&&Wsa();this.X.experiments.jb("gzip_gel_with_worker")&&rra();this.X.experiments.jb("web_player_empty_translator")?Ota({},{}):this.X.experiments.jb("web_player_all_payloads_via_jspb")&&Ota(bbb,cbb);this.X.B&&!dbb&&(window.addEventListener(jS?"touchstart":"click",B0a,{capture:!0,passive:!0}),dbb=!0);this.L("html5_onesie")&&(this.Lw=new fY(this.X),g.J(this,this.Lw));
this.s_=AC(oS(this.X)&&!0,b.enablesizebutton);this.XO=AC(!1,b.player_wide);this.visibility=new Z0a;g.J(this,this.visibility);this.oi=AC(!1,b.external_list);this.events=new g.aL(this);g.J(this,this.events);this.L("start_client_gcf")&&(Csa(cF(),{bF:eE,lS:Kqa()}),this.Y4=cF().resolve(eE),Nqa(this.Y4));this.Br=new oU;g.J(this,this.Br);this.Nk=new oU;g.J(this,this.Nk);this.Tq=new q2a;d=new ASa;this.Ua=new g.yU(this,d);g.J(this,this.Ua);this.template=new k2a(this);g.J(this,this.template);this.appState=
1;this.Oi=ebb(this);this.J=new g.uU(this,d,!0,1);g.J(this,this.J);g.J(this,d);d={};this.rM=(d.internalvideodatachange=this.w8,d.playbackready=this.y8,d.playbackstarted=this.z8,d.statechange=this.A8,d);this.L5=new LV(this.Ua);this.Ld=fbb(this);d=this.L("html5_load_wasm");b=this.L("html5_allow_asmjs");(d&&$V||b)&&uWa(this.Ld,b,b&&!d).then(function(f){e.X.Qa=f;var h;if(null==(h=g.sU(e))?0:h.U().Uc()){var l;null==(l=g.sU(e))||l.va("wasm",{a:f.j})}},function(f){g.LF(f);
var h;if(null==(h=g.sU(e))?0:h.U().Uc()){f="message"in f&&f.message||f.toString()||"";var l;null==(l=g.sU(e))||l.va("wasm",{e:f})}});
this.c8=new g.aL(this);g.J(this,this.c8);this.Sb=new yVa(this.X,this.Ld);this.Ua.oa("csiinitialized");this.xb=gbb(this);this.xb.setPlaybackRate(this.X.D?1:hbb(this,Number(g.YC("yt-player-playback-rate"))||1));g.dG(this.xb,this.rM,this);oab(this.xb);d={};this.zZ=(d.airplayactivechange=this.onAirPlayActiveChange,d.airplayavailabilitychange=this.onAirPlayAvailabilityChange,d.beginseeking=this.NP,d.endseeking=this.SP,d.internalAbandon=this.ZP,d.internalaudioformatchange=this.yE,d.internalvideodatachange=
this.onVideoDataChange,d.internalvideoformatchange=this.NE,d.liveviewshift=this.i9,d.playbackstalledatstart=this.z$,d.progresssync=this.P9,d.onLoadProgress=this.onLoadProgress,d.SEEK_COMPLETE=this.GA,d.SEEK_TO=this.o$,d.onVideoProgress=this.onVideoProgress,d.onLoadedMetadata=this.onLoadedMetadata,d.onAutoplayBlocked=this.onAutoplayBlocked,d.onPlaybackPauseAtStart=this.E9,d.playbackready=this.F9,d.statechange=this.gZ,d.connectionissue=this.AE,d.newelementrequired=this.OY,d.heartbeatparams=this.DE,
d.videoelementevent=this.sQ,d.drmoutputrestricted=this.onDrmOutputRestricted,d.signatureexpired=this.u$,d.nonfatalerror=this.w9,d);this.Jt=new g.aL(this);g.J(this,this.Jt);d=10;g.PJ(this.X)&&(d=3);CS(this.X)&&(d=g.EJ(this.X.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Kt=new bZ;g.J(this,this.Kt);this.TA=new $Y(d,function(f){f!==g.sU(e,f.getPlayerType())&&f.dispose()});
g.J(this,this.TA);this.wN=this.HH=-1;this.nK=new g.Eu(this.template.resize,16,this.template);g.J(this,this.nK);this.bd=new Q1a(this.Ua,this.X,this.xb);this.Pw=new AY(this.X);this.Gm=new vY(this);g.J(this,this.Gm);this.nS=new qY(this);g.J(this,this.nS);e2a(this.X.j.c);this.events.T(this.Ua,g.kK("appapi"),this.u8);this.events.T(this.Ua,g.lK("appapi"),this.v8);this.events.T(this.Ua,g.kK("appad"),this.uY);this.events.T(this.Ua,g.lK("appad"),this.uY);this.events.T(this.Ua,g.kK("appprogressboundary"),this.O9);
this.events.T(this.Ua,g.lK("applooprange"),this.sK);this.events.T(this.Ua,"presentingplayerstatechange",this.pk);this.events.T(this.Ua,"resize",this.b$);this.template.Ja(Ie(document,a));this.events.T(this.Ua,"offlineslatestatechange",this.y9);this.oS=ibb(this,this.template.element);g.J(this,this.oS);this.Ld.J.U().rj&&bW(this.Ld,"offline");this.X.rb&&g.QV("ux",g.eY);this.OU=new g.Eu(this.Eaa,g.EJ(this.X.experiments,"html5_defer_fetch_att_ms"),this);g.J(this,this.OU);this.Dd().Ee()&&(g.$C()&&this.Dd().Ea.push("remote"),
jbb(this));this.Sb.tick("fs");kbb(this);this.X.rb&&bW(this.Ld,"ux",!0);g.mS(this.Ld.J.U())&&bW(this.Ld,"embed");this.L("web_player_sentinel_is_uniplayer")||g.LF(new g.eD("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");d=g.KB("web_player_sentinel_yt_experiments_sync");a!==d&&g.LF(new g.eD("b/195699950",{yt:a,player:d}));c||g.LF(new g.eD("b/179532961"));this.d0=lbb(this);if(c=g.EJ(this.X.experiments,"html5_block_pip_safari_delay"))this.CN=
new g.Eu(this.dV,c,this),g.J(this,this.CN);mC=this.X.Oc;c=g.EJ(this.X.experiments,"html5_performance_impact_profiling_timer_ms");0<c&&(this.pZ=new g.$f(c),g.J(this,this.pZ),this.events.T(this.pZ,"tick",function(){e.qZ&&mbb.Js(e.qZ);e.qZ=mbb.uu("apit")}));
this.logger.debug("constructor end")};
lbb=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(c={n:c.name,m:c.message},(a.wb||a.xb).qc().ke("player.exception",SK(c)))}
MF.subscribe("handleError",b);MB.push(b);return function(){MF.unsubscribe("handleError",b);var c=MB.indexOf(b);-1!==c&&MB.splice(c,1)}};
gbb=function(a){var b=new g.nT(a.X,a.config.args);a.Ua.oa("initialvideodatacreated",b);return a.bz(1,b)};
nbb=function(a,b){if(a.xb!==b){b.getVideoData().autonavState=a.xb.getVideoData().autonavState;eG(a.xb,a.rM,a);var c=a.xb.getPlaybackRate();a.xb.dispose();a.xb=b;a.xb.setPlaybackRate(c);g.dG(b,a.rM,a);jbb(a)}};
fbb=function(a){var b="",c=i2a(a);0===c.indexOf("//")&&(c=a.X.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.LF(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new dWa(a.Ua,b);obb(a,b);return b};
obb=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.C=c};
ebb=function(a){if(a.X.storeUserVolume){a=g.YC("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.ie(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.X.mute};return a};
Y0=function(a){a.mediaElement=a.X.deviceIsAudioOnly?new g.wV(g.$e("AUDIO")):pY.pop()||new g.wV(g.$e("VIDEO"));g.J(a,a.mediaElement);a.wb&&a.wb.setMediaElement(a.mediaElement);try{a.X.jd?(a.LB&&a.events.Nc(a.LB),a.LB=a.events.T(a.mediaElement,"volumechange",a.q9)):(a.mediaElement.pB(a.Oi.muted),a.mediaElement.setVolume(a.Oi.volume/100))}catch(e){a.Hg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&e.message.replace(/[;:,]/g,
"_")));return}g.UC(a.Jt);pbb(a);var b=a.template,c=a.mediaElement.Fb();b.wc=c;b.uI=!1;b.wc.parentNode||mf(b.Wy,b.wc,0);b.XJ=new g.Vr(0,0,0,0);p2a(b);dZ(b);c=b.wc;g.Mu(c,"video-stream");g.Mu(c,g.cZ.MAIN_VIDEO);var d=b.app.U();d.xj&&c.setAttribute("data-no-fullscreen","true");d.L("html5_local_playsinline")?"playsInline"in WK()&&(c.playsInline=!0):d.Hl&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.qp&&b.wc&&b.T(c,"click",c.play,c);try{a.mediaElement.Dy()}catch(e){a.Hg("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&e.message.replace(/[;:,]/g,"_")))}};
zY=function(a,b,c){if(a.wb!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId});
var d=null;if(a.wb){d=a.wb.getPlayerState();a.logger.debug("set presenting player, destroy modules");cW(a.Ld,3);Z0(a,"cuerangesremoved",a.wb.Zl());a.Gm&&!b.isGapless()&&a.wb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=HL(b)&&HL(a.wb);a.L("html5_rebase_video_to_ad_timeline")&&a.Sb.yu("iv_s");qbb(a,e)}1===b.getPlayerType()&&nbb(a,b);rbb(a,b);a.wb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.dG(b,a.zZ,a);if(b.KI())sbb(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",
b,b.getVideoData());d&&!g.TBa(d,b.getPlayerState())&&a.gZ(new g.SG(b.getPlayerState(),d));c=c&&a.L("html5_player_preload_ad_fix")&&1===b.getPlayerType();if(b.Tp.finished&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ua.ym("onPlaybackQualityChange",c.quality);Z0(a,"cuerangesadded",a.wb.Zl());c=b.getPlayerState();g.TG(c,2)?tbb(a):g.TG(c,8)?b.playVideo():b.cE()&&b.pauseVideo();if(2===b.getPlayerType()){var f;b.getVideoData().l4=null==(f=g.sU(a,1))?void 0:
f.getVideoData().clientPlaybackNonce}2!==b.getPlayerType()||a.Ff()||(f=b.getVideoData(),a.xb.Ww(f.clientPlaybackNonce,f.Bd||"",f.breakType||0,f.Mf));a.logger.debug("finish set presenting player")}}};
tbb=function(a){if(!ubb(a)){var b=a.xb.kf();b&&(b=b.gD(),b instanceof Promise&&b.catch(function(){}));
$0(a,VL(a.Vb()))}};
pbb=function(a){var b=a.mediaElement;nBa()?a.Jt.T(b,"webkitpresentationmodechanged",a.l$):window.document.pictureInPictureEnabled&&(a.Jt.T(b,"enterpictureinpicture",function(){a.qB(!0)}),a.Jt.T(b,"leavepictureinpicture",function(){a.qB(!1)}));
vC&&(a.Jt.T(b,"webkitbeginfullscreen",function(){a.Am(3)}),a.Jt.T(b,"webkitendfullscreen",function(){a.Am(0)}))};
rbb=function(a,b){var c=b.getPlayerType();if(b!==a.xb&&b!==a.Sr[c]){var d;null==(d=a.Sr[c])||d.dispose();a.Sr[c]=b}};
qbb=function(a,b){b=void 0===b?!0:b;a.logger.debug("start clear presenting player");var c;if(c=a.qe){c=a.qe;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c&&(a.Fj(),Y0(a));a.wb&&(a.wb.Fj(!b),eG(a.wb,a.zZ,a),1!==a.wb.getPlayerType()&&a.wb.dispose());a.wb=null;a.logger.debug("finish clear presenting player")};
g.sU=function(a,b){return b?1===b?a.xb:a.getVideoData().enableServerStitchedDai&&2===b?a.getVideoData().enablePreroll?a.Sr[2]||a.wb:a.wb:g.dU(a.getVideoData())&&2===b?a.Sr[2]||a.wb:a.Sr[b]||null:a.wb};
vbb=function(a,b,c,d){a=a.bz(b,c,d);oab(a);return a};
a1=function(a,b){return a.Ff(b)?a.xb:b};
b1=function(a,b){var c=a.wb;return c&&b===a.xb&&a.Ff(b)&&a.Ff(c)?c:b};
ybb=function(a){a.logger.debug("start application playback");if(a.xb.getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var b=c1(a);a.Dd().isLoaded();b&&a.aq(6);wbb(a);nWa(a.Ld)||xbb(a)}};
xbb=function(a){if(!c1(a)){var b=dW(a.Ld);b&&!b.created&&eWa(a.Ld)&&(a.logger.debug("reload ad module"),b.create())}};
wbb=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Ld;nWa(c)||c.ZM();!$V&&c.J.L("html5_allow_asmjs")&&tWa(c);bW(c,"embed");bW(c,"inline_preview");bW(c,"kids");bW(c,"remote");bW(c,"miniplayer");bW(c,"offline");bW(c,"unplugged");bW(c,"ypc",!1,!0);bW(c,"ypc_clickwrap",!1,!0);bW(c,"yto",!1,!0);bW(c,"webgl",!1,!0);oWa(c)||(bW(c,"captions",!0),bW(c,"endscreen"),c.lH(),bW(c,"creatorendscreen",!0));c.sV();a.Ua.oa("videoready",b)};
d1=function(a){a=a.Dd();a.Ee();return ZT(a)};
kbb=function(a){a.logger.debug("start prepare initial playback");a.hN();var b=a.config.args;Y0(a);var c=a.Dd();a.Ua.vc("onVolumeChange",a.Oi);if(b&&DVa(b)){var d=zS(a.X);d&&!a.oi&&(b.fetch=0);var e=g.mS(a.X);e&&!a.oi&&(b.fetch=0);e1(a,b);g.mS(a.X)&&a.Sb.tick("ep_pr_s");if(d&&!a.oi)f1(a);else if(e&&!a.oi)zbb(a);else if(!c.Ee())a.playlist.onReady(function(){g1(a)})}zY(a,a.xb);
g.TG(a.xb.getPlayerState(),128)||(b=mBa(!a.X.deviceIsAudioOnly),"fmt.noneavailable"===b?a.Hg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Hg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.Ee()&&d1(a)&&(a.X.Hh||a.X.Qi)?h1(a):c.hL?a.Ua.mutedAutoplay():g.YC("yt-player-playback-on-reload")?(g.qD("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.X.ra}),g.XC("yt-player-playback-on-reload",!1),h1(a)):HS(a.X)||Abb(a),g.BS(a.X)||"MWEB"===g.QR(a.X)?
(g.jD(g.lD(),function(){i1(a)}),g.jD(g.lD(),function(){eya()})):(i1(a),eya()),a.logger.debug("finish prepare initial playback"))};
i1=function(a){if(a.L("fetch_att_independently"))g.Fu(a.OU);else{var b=a.getVideoData().botguardData;b&&g.zLa(b,a.X,a.getVideoData().Jk||"")}};
Abb=function(a){a.logger.debug("start initialize to CUED mode");a.Ua.oa("initializingmode");a.aq(2);a.L("embeds_web_enable_defer_loading_remote_js")&&g.DS(a.X)?g.jD(g.lD(),function(){bW(a.Ld,"remote")}):bW(a.Ld,"remote");
bW(a.Ld,"miniplayer");a.logger.debug("initialized to CUED mode")};
h1=function(a){a.logger.debug("start initialize application playback");if(g.TG(a.xb.getPlayerState(),128))return!1;var b=a.xb.getVideoData();d1(a)&&a.X.Qi&&(pY.length&&a.pA?(j1(a,{muted:!1,volume:a.Oi.volume},!1),k1(a,!1)):pY.length||a.Oi.muted||(j1(a,{muted:!0,volume:a.Oi.volume},!1),k1(a,!0)));d1(a)&&a.X.No&&b.mutedAutoplay&&(j1(a,{muted:!0,volume:a.Oi.volume},!1),k1(a,!0));b.nU&&j1(a,{muted:!0,volume:a.Oi.volume},!1);Bbb(a,1,b,!1);a.Ua.oa("initializingmode");zY(a,a.xb);a.aq(3);var c;if(!(c=!a.X.Pm)){if(c=
a.qe){c=a.qe;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.kX}c&&(a.Fj(),Y0(a),a.xb.setMediaElement(a.mediaElement));wab(a.xb);if(g.TG(a.xb.getPlayerState(),128))return!1;b.Jm||$0(a,3);return a.kX=!0};
c1=function(a){a=BU(a.Ld);return!!a&&a.loaded};
Cbb=function(a,b){if(!a.Eb)return!1;var c=.001*a.Eb.startTimeMs-1,d=.001*a.Eb.endTimeMs;"repeatChapter"===a.Eb.type&&d--;return 1E-6>=Math.abs(b-c)||1E-6>=Math.abs(b-d)||b>=c&&b<=d};
Ebb=function(a){var b,c=null==(b=g.sU(a))?void 0:b.Aa;if(a.L("html5_gapless_use_loop_range")&&a.U().supportsGaplessShorts()&&a.wb&&CT(a.getVideoData())&&c&&c.policy.Na){b=g.EJ(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli");b=1E3*Dbb(a)-b;a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"});var d;null==(d=g.sU(a))||d.va("slr",{et:b})}};
Fbb=function(a){if(!(g.TG(a.xb.getPlayerState(),64)&&a.Dd().isLivePlayback&&5E3>a.Eb.startTimeMs)){if("repeatChapter"===a.Eb.type){var b,c=null==(b=MSa(a.zb()))?void 0:b.wi(),d;b=null==(d=a.getVideoData())?void 0:d.lk;c instanceof g.rW&&b&&(d=b[TW(b,a.Eb.startTimeMs)],c.Yw(0,d.title));isNaN(Number(a.Eb.loopCount))?a.Eb.loopCount=0:a.Eb.loopCount++;1===a.Eb.loopCount&&a.Ua.ib("innertubeCommand",a.getVideoData().n8)}c={wd:"application_loopRangeStart"};if("clips"===a.Eb.type||"shortsLoop"===a.Eb.type)c.seekSource=
58;a.xb.seekTo(.001*a.Eb.startTimeMs,c)}};
hbb=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};
Dbb=function(a,b){b=g.sU(a,b);if(!b)return 0;b=a1(a,b);return l1(a,uY(b),b)};
l1=function(a,b,c){if(a.Ff(c)){c=c.getVideoData();if(m1(a))c=b;else{a=a.bd;for(var d=g.u(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.pd===e.pd){b+=e.Ec/1E3;break}d=b;a=g.u(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.pd===e.pd)break;var f=e.Ec/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Td/1E3;else break}c=d}return c}return b};
Gbb=function(a,b){if(3===a.getPresentingPlayerType())return VL(BU(a.Ld).jf);if((a.getVideoData().enableServerStitchedDai||g.dU(a.getVideoData()))&&2===b){var c,d;return(null==(c=a.Oe)?0:o1a(c,a.getCurrentTime()))||(null==(d=a.uc)?0:J1a(d))?a.HH:-1}return 2!==b||a.Ff()?a.HH:a.wN};
jbb=function(a){a.logger.debug("reset for new application playback");n1(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Hy.Hy={};a.ZJ={};a.iB=[];BVa(a.Sb);if(a.Oe){var b=a.Oe,c=a.xb;c.getPlayerType();JY(b,!1);r1a(b);s1a(b);b.qa=c}b=a.bd;a=a.xb;1!==a.getPlayerType()&&TY(b,"invalidParentVideoPlayerType");XY(b,!1);c2a(b);b.j=a};
f1=function(a){var b=Hbb();if(b)if(!b.list)a.dH();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.OV(a.playlist).videoId||(b.index=a.playlist.index));HVa(a.playlist,b);a.fF&&Ibb(a,a.fF)}else a.fF=null};
zbb=function(a,b){var c=(b?b:a.Dd()).DU;a.Sb.tick("ep_pr_r");if(null!=c&&(HVa(a.playlist,c),a.CR))a.playlist.onReady(function(){g1(a,b)})};
e1=function(a,b){a.playlist&&(g.ub(a.playlist),a.playlist=null);b&&(a.oi&&(b.fetch=0),a.playlist=new CVa(a.X,b))};
Mbb=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.u(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.getVideoData().clientPlaybackNonce};c=g.tu(c,d);d=void 0;d=void 0===d?!1:d;(d=dK(eK(c,Jbb),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=dK(eK(c,Kbb),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=dK(eK(c,Lbb),c,d,"Nielsen OCR URL"));g.yE(c,void 0,d)}return!0};
Nbb=function(a){var b,c=Number(null==(b=a.getVideoData().progressBarEndPosition)?void 0:b.utcTimeMillis)/1E3;!isNaN(c)&&(b=a.bf())&&(b-=a.getCurrentTime(),c=1E3*(c-b),b=a.ZJ.progressEndBoundary,(null==b?void 0:b.start)!==c&&(b&&a.oF([b]),c=new g.jK(c,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),a.xb.addCueRange(c),a.ZJ.progressEndBoundary=c))};
$0=function(a,b){a.logger.debug(function(){return"set external state "+b});
if(a.wb){var c=a.wb.getPlayerType();if(2===c&&!a.Ff()){a.wN!==b&&(a.wN=b,a.Ua.ib("onAdStateChange",b));return}if(2===c&&a.Ff()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}if(0===b){if(a.Eb)return;var d;if((null==(d=a.wb)?0:d.Us())&&!GS(a.X)){a.playVideo();return}}a.HH!==b&&(a.HH=b,a.Ua.ym("onStateChange",b))};
Obb=function(a,b,c,d,e){d=void 0===d?Infinity:d;e=void 0===e?0:e;a.logger.debug(function(){return"Enqueuing playerType="+c+" at time="+d+"\n        videoId="+b.videoId});
c=c||a.wb.getPlayerType();var f=Bbb(a,c,b,!0);f||(f=vbb(a,c,b));if(2===c&&a.xb){var h=f.getVideoData();a.xb.Ww(h.clientPlaybackNonce,h.Bd||"",h.breakType||0,h.Mf)}a.CH(f,d,0,e)};
Qbb=function(a,b,c,d,e){var f="";f=a.X.L("html5_autonav_autoplay_in_preload_key")?Pbb(a,c,b):o1(a,c,b.videoId,b.pd);a.logger.debug(function(){return"start preload video "+f+", trigger="+e});
var h="";if(a.wb&&(h=a.X.L("html5_autonav_autoplay_in_preload_key")?Pbb(a,a.wb.getPlayerType(),a.wb.getVideoData()):o1(a,a.wb.getPlayerType(),a.wb.getVideoData().videoId,a.wb.getVideoData().pd),f===h))return g.xY(a.wb,!0),b.dispose(),null;b.pj=!0;b=vbb(a,c,b);1===c&&CS(a.X)||g.xY(b,!0);a.TA.set(f,b,d||3600);return b};
Rbb=function(a,b,c,d){var e=EC(c);return o1(a,b,e,d,"1"===c.autonav||!0===c.autonav,"1"===c.autoplay||!0===c.autoplay||1===c.autoplay)};
Pbb=function(a,b,c){return o1(a,b,c.videoId,c.pd,c.isAutonav,c.Zp)};
o1=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;b=b+"_"+c+"_"+d;a.X.L("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
Bbb=function(a,b,c,d){var e=a.X.L("html5_autonav_autoplay_in_preload_key")?Pbb(a,b,c):o1(a,b,c.videoId,c.pd);var f=a.TA.get(e);if(!f)return null;a.TA.remove(e);if(g.TG(f.getPlayerState(),128))return f.dispose(),null;if(f===g.sU(a,b))return a.Sb.infoGel({isCacheHit:!0}),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;1===b&&n1(a);d||zY(a,f,!0);a.Sb.infoGel({isCacheHit:!0});return f};
p1=function(a,b,c){c=g.sU(a,c);b&&c===a.xb&&(c.getVideoData().Hh=!0)};
q1=function(a,b,c){c=void 0===c?1:c;a.logger.debug(function(){return"start cue video, vid "+b.videoId+", type "+c});
if(b.Ee()){var d=a.bz(c,b);a.cancelPlayback(4,c);zY(a,d);oab(d);if(1===c){a.aq(1);if(g.mS(a.X)&&!jSa(b)){b.dispose();g.ub(g.sU(a,c));return}Abb(a)}a.logger.debug("finish cue video")}else a.logger.debug(function(){return"invalid VideoData in cueVideo"}),b.dispose(),g.ub(g.sU(a,c)),iSa(a.Dd())&&2===c&&delete a.Sr[2]};
Sbb=function(a,b,c,d,e){b=DSa(b,c,d,e);(c=g.mS(a.X)&&!a.X.ma)&&!a.oi&&(b.fetch=0);e1(a,b);g.mS(a.X)&&a.Sb.tick("ep_a_pr_s");if(c&&!a.oi)c=a.Dd(),KVa(c,b).then(function(f){a.CR=!0;zbb(a,f)});
else a.playlist.onReady(function(){g1(a)});
g.mS(a.X)&&a.Sb.tick("ep_a_pr_r")};
g1=function(a,b){var c=g.mS(a.X)&&!a.X.ma,d=c&&b?b:g.OV(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.fl&&(a.X.Hh||a.X.Qi)||!a.Zv?(b=b.Hh,d=a.Ht(d,1),b&&p1(a,d)):q1(a,d,1));g.mS(a.X)&&a.Sb.tick("ep_p_l");a.CR=!1;a.Ua.vc("onPlaylistUpdate")};
ubb=function(a){if(a.playlist&&g.rS(a.X)&&a.rD()){var b=a.X.L("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
Ibb=function(a,b){var c=g.Sa(b);c?((b=Hbb())&&b.list&&c(),a.fF=null):a.fF=b};
Hbb=function(){var a=g.Sa("yt.www.watch.lists.getState");return a?a():null};
Tbb=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=iK.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=iK.AD_MARKER:(b.style=iK.TIME_MARKER,b.color=e),b.visible=!0);a.Gy([new g.jK(1E3*c,1E3*d,b)],1);return!0};
Ubb=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.bf();if(!h)return f&&a.getVideoData().isLivePlayback&&a.iB.push({id:b,vca:c,uca:d}),!1;f=h-a.getCurrentTime();return Tbb(a,b,c-f,d-f,void 0,void 0,e)};
Vbb=function(a,b){a.iB=g.bt(a.iB,function(f){return f.id!==b});
for(var c=a.xb.Zl(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.xb.removeCueRange(e),Z0(a,"cuerangesremoved",[e]),!0}return!1};
Wbb=function(a){var b=(0,g.FD)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
j1=function(a,b,c){a.X.Xa&&(a.Oi=b,b.muted||k1(a,!1),c&&a.X.storeUserVolume&&!a.X.jd&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.XC("yt-player-volume",c),g.XC("yt-player-volume",c,2592E3))),Xbb(a),c=g.YK&&a.mediaElement&&!a.mediaElement.Df(),a.X.jd&&!c||a.Ua.vc("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.X.storeUserVolume}))};
Xbb=function(a){var b=a.getVideoData();if(!b.ql){b=a.X.jd?1:gSa(b);var c=a.mediaElement;c.pB(a.Oi.muted);try{c.setVolume(a.Oi.volume*b/100)}catch(d){g.LF(new g.eD("b183742307","multiplier: "+b+", volume: "+a.Oi.volume))}}};
k1=function(a,b){b!==a.pA&&(a.pA=b,a.Ua.vc("onMutedAutoplayChange",b))};
g.rU=function(a){return a.pA&&a.getVideoData().mutedAutoplay};
Ybb=function(a){var b=KC(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Fb())?b:null};
$bb=function(a,b){var c=window.screen&&window.screen.orientation;if((a.X.L("lock_fullscreen2")||a.X.Z)&&c&&c.lock&&(!g.YK||!Zbb))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.QE||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.QE=!0}}else a.QE&&(a.QE=!1,c.unlock())};
Z0=function(a,b,c){a.Ua.oa(b,c);var d=g.PJ(a.X)||g.sS(a.X)||g.jH(a.X);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.ib(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}}))}};
r1=function(a,b,c,d,e,f){c=void 0===c?!0:c;var h=g.sU(a,e);h&&(2===h.getPlayerType()&&!a.Ff(h)||g.NT(h.getVideoData()))||(3===a.getPresentingPlayerType()?BU(a.Ld).BE("control_seek",b,c):(h===a.xb&&a.Eb&&!Cbb(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))};
sbb=function(a,b,c){c&&(a.Fj(),Y0(a));c=g.sU(a);c.ke(new TK("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?xT(d)&&g.NJ(a.X)&&(e.live_utc_start=c.bf(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.ra&&(e.vvt=d.ra);d.G&&(e.vss_credentials_token=d.G,e.vss_credentials_token_type=d.Hm);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Mo&&(e.force_gvi=d.Mo);e.autoplay=1;e.reload_count=d.ac+1;e.reload_reason=b;d.lG&&(e.unplugged_partner_opt_out=
d.lG);d.Qi&&(e.ypc_is_premiere_trailer=d.Qi);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.Oe&&xbb(a)};
acb=function(a,b){a.Dd().autonavState=b;g.XC("yt-player-autonavstate",b);a.Ua.oa("autonavchange",b)};
bcb=function(a){var b=a.getVideoData().ql,c=a.X.Jb,d=a.isInline()&&!a.getVideoData().nC,e=a.mediaElement;b||c||d?e.jN():(e.oN(),j1(a,a.Oi))};
ibb=function(a,b){return a.X.L("html5_enable_embedded_player_visibility_signals")&&g.mS(a.X)?new h2a(b):null};
n1=function(a){var b=dW(a.zb());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())};
m1=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.Oe};
ccb=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.u(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=as(a,d);b.hidden=!!a.hidden};
dcb=function(a,b){return g.PJ(a.X)&&Ona(b)&&XB(b)?g.JS(a.X,g.$T(a.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):lC()};
s1=function(a,b){dcb(a,b).then(function(c){g.yE(b,void 0,void 0,c)})};
t1=function(a,b){b.forEach(function(c){s1(a,c)})};
i2a=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
ecb=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
fcb=function(){var a=null;Roa().then(function(b){return a=b},function(b){return a=ecb(b)});
return a};
gcb=function(){var a=bg(1E3,"NO_BID");return Yf(mca([Roa(),a]).Al(ecb),function(){a.cancel()})};
hcb=function(a){return a.He?g.cD(g.bD(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
u1=function(a){this.player=a;this.B=this.j=1};
jcb=function(a,b,c,d){var e=void 0===c?{}:c;c=e.nH;var f=e.Qe,h=e.cueProcessedMs;d=void 0===d?"":d;var l=a.player.getVideoData(1);e=a.player.U().Po;var m={AD_BLOCK:a.j++,AD_BREAK_LENGTH:c?c.gi:0,AUTONAV_STATE:hcb(a.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Hv(),LACT:YE(),LIVE_INDEX:c?a.B++:1,LIVE_TARGETING_CONTEXT:c&&c.context?c.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.qb().Yj().height,
P_W:a.player.qb().Yj().width,YT_REMOTE:e?e.join(","):""},n=Rna(Qna);Object.keys(n).forEach(function(q){null!=n[q]&&(m[q.toUpperCase()]=n[q].toString())});
""!==d&&(m.BISCOTTI_ID=d);d={};Ona(b)&&(d.sts="19709",(c=a.player.U().forcedExperiments)&&(d.forced_experiments=c));var p=VB(g.tu(b,m),d);a.player.getVideoData();return 2!==p.split("?").length?Wf(Error("Invalid AdBreakInfo URL")):g.JS(a.player.U(),null==l?void 0:l.oauthToken).then(function(q){if(q&&XB()){var r=IU();ZSa(r,q)}q=a.player.un(r);r=icb(a,p,m,l.isMdxPlayback,h);return g.gI(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
ncb=function(a,b,c,d,e){b.client||(b.client={});b.client.originalUrl=c;var f=WB(c),h=kcb(c,"X-YouTube-Time-Zone");(f||h)&&"undefined"!==typeof Intl&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=kcb(c,"X-YouTube-Ad-Signals");if(f||h||""!==d){var l={};c=RB(YB(d)).split("&");var m=new Map;c.forEach(function(n){n=n.split("=");1<n.length&&m.set(n[0].toString(),decodeURIComponent(n[1].toString()))});
m.has("bid")&&(l.bid=m.get("bid"));l.params=[];lcb.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))});
mcb(a,l);b.adSignalsInfo=l}b.client.unpluggedAppInfo||(b.client.unpluggedAppInfo={});b.client.unpluggedAppInfo.enableFilterMode=!1;a=e.j.cosver;null!=a&&"cosver"!==a&&(b.client.osVersion=a);a=e.j.cplatform;null!=a&&"cplatform"!==a&&""!==a&&(b.client.platform=a);a=e.j.cmodel;null!=a&&"cmodel"!==a&&(b.client.deviceModel=a);a=e.j.cplayer;null!=a&&"cplayer"!==a&&(b.client.playerType=a);e=e.j.cbrand;null!=e&&"cbrand"!==e&&(b.client.deviceMake=e);b.user||(b.user={});b.user.lockedSafetyMode=!1};
qcb=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 ocb&&(f.clientName=ocb[d[0]]),d[1]in pcb&&(f.platform=pcb[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};
mcb=function(a,b){if(g.PJ(a.player.U())&&a.player.U().L("add_ifa_to_tvh5_requests")){a=g.IB("INNERTUBE_CONTEXT");var c,d;(null==a?0:null==(c=a.adSignalsInfo)?0:c.advertisingId)&&"undefined"!==typeof(null==a?void 0:null==(d=a.adSignalsInfo)?void 0:d.limitAdTracking)&&(b.advertisingId=a.adSignalsInfo.advertisingId,b.limitAdTracking=a.adSignalsInfo.limitAdTracking)}};
icb=function(a,b,c,d,e){var f=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,h=rcb.exec(b);h=null!=h&&2<=h.length?h[1]:"";var l=scb.test(b),m=tcb.exec(b);m=null!=m&&2<=m.length?m[1]:"";var n=ucb.exec(b),p=null!=n&&2<=n.length&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;n=vcb.exec(b);var q=null!=n&&2<=n.length?n[1]:"0",r=BPa(a.player.U().Ga);n=a.player.getVideoData(1);var t=g.qH(n.Ba,!0),v="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";ncb(a,t,b,v.toString(),a.player.U());
var x={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19709,autonavState:hcb(a.player.U())};d&&(d={},qcb(d,c.YT_REMOTE)&&(x.mdxContext=d));if(d=wcb.includes(r)?void 0:g.pC("PREF")){for(var B=d.split(RegExp("[:&]")),F=0,G=B.length;F<G;F++){var I=B[F].split("=");if(("SML"===I[0].toUpperCase()||"GSML"===I[0].toUpperCase())&&1<I.length&&"TRUE"===I[1].toUpperCase()){t.user.lockedSafetyMode=!0;
break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in xcb)for(d=d.split(RegExp("[:&]")),F=xcb.FLAG_AUTO_CAPTIONS_DEFAULT_ON,B="f"+(1+Math.floor(F/31)).toString(),F=1<<Math.floor(F%31),G=0,I=d.length;G<I;G++){var L=d[G].split("=");if(L[0]===B&&parseInt("0x"+L[1],16)&F){d=!0;break a}}d=!1}x.autoCaptionsDefaultOn=d}b=ycb.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&m&&(t.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:x};h={adBlock:Math.trunc(c.AD_BLOCK),params:h,breakIndex:p,
breakPositionMs:q,clientPlaybackNonce:c.CPN,topLevelDomain:r,isProxyAdTagRequest:l,context:t,adSignalsInfoString:RB(YB(v.toString())),overridePlaybackContext:b};void 0!==e&&(h.cueProcessedMs=Math.round(e).toString());m&&(h.videoId=m);c.LIVE_TARGETING_CONTEXT&&(h.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(h.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());f&&(h.driftFromHeadMs=f.toString());h.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1));a={isSabr:wT(n)};
var P;if(c=null==(P=n.getHeartbeatResponse())?void 0:P.adBreakHeartbeatParams)a.adBreakHeartbeatParams=c;a&&(h.getAdBreakContext=a);return h};
v1=function(a,b){this.Ru=a;this.Oa=b};
w1=function(a){this.J=a};
x1=function(a,b){this.QA=a;this.Oa=b};
Acb=function(a){g.H.call(this);this.Ag=a;this.I3=zcb(this)};
zcb=function(a){var b=new zI(a.Ag.Hd);g.J(a,b);a=g.u([new v1(a.Ag.Ru,a.Ag.Oa),new w1(a.Ag.J),new x1(a.Ag.QA,a.Ag.Oa),new uI(a.Ag.zj,a.Ag.Yk),new wI,new BI(a.Ag.Wn,a.Ag.Vj,a.Ag.Oa),new vI,new tI]);for(var c=a.next();!c.done;c=a.next())c=c.value,iya(b,c),jya(b,c);a=g.u(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())c=c.value,xI(b,c,function(){}),yI(b,c,function(){});
return b};
y1=function(a,b,c,d,e){g.H.call(this);this.J=a;this.B=b;this.Ia=c;this.Wa=d;this.Bf=e;this.listeners=[];var f=new SC(this);g.J(this,f);f.T(a,"internalAbandon",this.ZP);this.addOnDisposeCallback(function(){g.UC(f)})};
z1=function(a){this.J=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.D=!0;this.B=this.gg=!1;this.adFormat=null;this.C="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
Ccb=function(a,b,c,d,e,f){f();var h=a.J.getVideoData(1),l=a.J.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.G);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.C=b;0>=d?f():(a.actionType=a.D?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.gg=!0,$H("_start",a.actionType)&&Bcb(a)))};
Dcb=function(a,b){a=g.u(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){cI("ad_i");g.aI({isMonetized:!0});break}};
Ecb=function(a){var b=a.J.getVideoData(1);if(!a.J.L("html5_no_video_to_ad_on_preroll")||null!=b&&b.Va)a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),bI("video_to_ad",b)};
gBa=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});bI("ad_to_video",b);Bcb(a)};
Bcb=function(a){if(a.gg)if(a.J.L("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.C&&"video_to_ad"===a.actionType)ZH("video_to_ad");else if(a.J.L("web_csi_via_jspb")){var b=new sB;b=O(b,8,2);var c=new tB;c=O(c,21,Fcb(a.C));c=O(c,7,4);b=Jj(c,sB,22,b);b=O(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&N(b,76,a.contentCpn),a.videoId&&N(b,78,a.videoId)):(a.adCpn&&N(b,76,a.adCpn),a.adVideoId&&N(b,78,a.adVideoId));a.adFormat&&N(b,12,a.adFormat);a.contentCpn&&
N(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&N(b,28,a.adCpn);a.adVideoId&&N(b,20,a.adVideoId);g.OB(XH)(b,a.actionType)}else b={adBreakType:VBa(a.C),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),g.aI(b,a.actionType)};
VBa=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"}};
Gcb=function(a){switch(a){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}};
Fcb=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}};
A1=function(a){g.H.call(this);this.J=a;this.j=new Map;this.B=new SC(this);g.J(this,this.B);this.B.T(this.J,g.kK("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.lK("ad"),this.onCueRangeExit,this)};
Icb=function(a,b){(b=a.j.get(b))&&Hcb(a,b)};
Hcb=function(a,b){a.J.Wp([b.Qe],b.Eo);a.j.delete(b.Qe.id)};
Jcb=function(a,b,c,d,e){g.jK.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
B1=function(a){this.J=a};
C1=function(a){this.J=a};
Kcb=function(a){return a.J.U().L("enable_active_view_lr_shorts_video")};
D1=function(a){var b,c,d,e,f;return null!=(f=null==(b=a.J.getVideoData(1))?void 0:null==(c=b.getPlayerResponse())?void 0:null==(d=c.playerConfig)?void 0:null==(e=d.ssapConfig)?void 0:e.ssapPrerollEnabled)?f:!1};
BN=function(a,b){return a.J.U().L(b)};
Lcb=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")};
GN=function(a){var b,c,d;return(null==(b=a.J.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
zFa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")};
Mcb=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")};
cEa=function(a){return a.J.U().experiments.jb("enable_desktop_player_underlay")};
ZL=function(a){return a.J.U().experiments.jb("html5_load_ads_instead_of_cue")};
$L=function(a){return a.J.U().experiments.jb("html5_preload_ads")};
Ncb=function(a){return a.J.U().experiments.jb("html5_rebase_video_to_ad_timeline")};
Ocb=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}};
Pcb=function(){g.cG.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.u(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
E1=function(){if(null===Qcb){Qcb=new Pcb;gr(ru).B="b";var a=gr(ru),b="h"==ku(a)||"b"==ku(a),c=!(wr(),!1);b&&c&&(a.D=!0,a.G=new Bja)}return Qcb};
Rcb=function(a,b,c){a.j[b]=c};
Scb=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}};
F1=function(a,b){this.Ia=a;this.J=b;this.j=new Map;E1().subscribe("adactiveviewmeasurable",this.zA,this);E1().subscribe("adfullyviewableaudiblehalfdurationimpression",this.yA,this);E1().subscribe("adviewableimpression",this.AA,this);E1().subscribe("adaudioaudible",this.wA,this);E1().subscribe("adaudiomeasurable",this.xA,this)};
H1=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?RG("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),Sp(wr().Gc,"fmd",1),Lka(gr(ru),c),Rcb(E1(),b,{RN:function(){return d?{currentTime:a.Ia.get().getCurrentTimeSec(2,!1),duration:d,isPlaying:2===a.Ia.get().getPresentingPlayerType()&&G1(a.Ia.get(),2).isPlaying(),Ejb:!1,Fjb:!0,volume:a.Ia.get().isMuted()?0:a.Ia.get().getVolume()/100}:{}}}))};
I1=function(a,b){a.j.has(b)?(a.j.delete(b),delete E1().j[b]):RG("Unexpected unregistration of layout in LidarApi")};
Vcb=function(a,b){var c={};Tcb(a,c,b);Ucb(c);c.LACT=J1(function(){return YE().toString()});
c.VIS=J1(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=J1(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
Wcb=function(a,b){var c={};if(b)return c;if(!a.kind)return g.KF(Error("AdPlacementConfig without kind")),c;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.KF(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=J1(Gd(Math.round(we(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=J1(Gd("0"));return c};
J1=function(a){return{toString:function(){return a()}}};
Xcb=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.id(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};
Tcb=function(a,b,c){b.CPN=J1(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.LF(Error("Video data is null.")),d=null);return d});
b.AD_MT=J1(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=J1(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=J1(function(){return a.qb().Yj().height.toString()});
b.P_W=J1(function(){return a.qb().Yj().width.toString()});
b.PV_H=J1(function(){return a.qb().getVideoContentRect().height.toString()});
b.PV_W=J1(function(){return a.qb().getVideoContentRect().width.toString()})};
Ucb=function(a){a.CONN=J1(Gd("0"));a.WT=J1(function(){return Date.now().toString()})};
Ycb=function(){};
Zcb=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,v,x;g.Ha(function(B){switch(B.j){case 1:f=!!b.scrubReferrer;h=g.tu(b.baseUrl,Xcb(c,f,d));l={};WB(h)&&g.IB("WEBVIEW_EOM",!1)&&(l["X-Yt-Webview-Eom"]="1");if(!b.headers){B.Ka(2);break}m=a.j();if(!m.j){n=m.getValue();B.Ka(3);break}return g.z(B,m.j,4);case 4:n=B.B;case 3:p=n;q=g.u(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.IB("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.IB("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.IB("EOM_VISITOR_DATA")&&
(l["X-Goog-EOM-Visitor-Id"]=g.IB("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(v=a.C())&&(l["X-Goog-PageId"]=v);break;case "AUTH_USER":x=a.B();!p&&x&&(l["X-Goog-AuthUser"]=x);break;case "ATTRIBUTION_REPORTING_ELIGIBLE":l["Attribution-Reporting-Eligible"]="event-source"}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.yE(h,void 0,f,0!==Object.keys(l).length?l:void 0,"",!0,e),g.xa(B)}})};
K1=function(a,b,c){this.G=a;this.K=b;this.D=c};
$cb=function(a){this.Ru=a};
L1=function(a,b,c,d){var e=void 0===e?new K1(function(){var f=a.U(),h=a.getVideoData(1);return g.JS(f,h?g.$T(h):"")},function(){return a.U().pageId},function(){return a.U().ra},function(){return a.U().experiments}):e;
this.J=a;this.B=b;this.Db=c;this.Wa=d;this.Ru=e;this.JK=null;this.j=new Map;this.QA=new $cb(e)};
adb=function(a,b,c,d,e){var f=gAa(a.B.get(),c);f?(c=CK(a,hAa(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.Ru.send(b,c):a.QA.send(b,c,{},e)):RG("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
cAa=function(a,b){return CK(a,b)};
cM=function(a,b){g.qD("adsClientStateChange",b)};
bdb=function(a,b){a.j.has(b.rz())?RG("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.rz(),b)};
cdb=function(a,b){a.j.delete(b.rz())||RG("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
hAa=function(a){var b=zJ(a.Ca,"metadata_type_ad_placement_config");a=zJ(a.Ca,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,dY:a}};
CK=function(a,b,c,d,e,f){var h=c?ddb(a):{};c=c?edb(a,c.layoutId):{};var l=fdb(a),m,n=null!=e?e:null==(m=a.Wa.get().cf(2))?void 0:m.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!n&&(n=a.Wa.get().cf(1).clientPlaybackNonce);e={};d=Object.assign({},Vcb(a.J,d),Wcb(b.adPlacementConfig,a.J.L("h5_disable_client_subs_slot_pos")),c,h,l,(e.FINAL=J1(function(){return"1"}),e.AD_CPN=J1(function(){return n||""}),e));
a.J.L("h5_disable_client_subs_slot_pos")||(d.SLOT_POS=J1(function(){return(b.dY||0).toString()}));
a={};f=Object.assign({},d,f);d=g.u(Object.values(gdb));for(h=d.next();!h.done;h=d.next())h=h.value,e=f[h],null!=e&&null!=e.toString()&&(a[h]=e.toString());return a};
ddb=function(a){var b={},c,d=null==(c=a.JK)?void 0:c.cj/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=J1(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=J1(function(){return Math.round(Date.now()/1E3).toString()});
return b};
edb=function(a,b){a=a.j.get(b);if(!a)return{};a=a.FN();if(!a)return{};b={};return b.YT_ERROR_CODE=a.bL.toString(),b.ERRORCODE=a.gG.toString(),b.ERROR_MSG=a.errorMessage,b};
fdb=function(a){var b={},c=a.J.getVideoData(1);b.ASR=J1(function(){var d;return null!=(d=null==c?void 0:c.yx)?d:null});
b.EI=J1(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
M1=function(a,b,c){g.H.call(this);this.J=a;this.oe=b;this.Da=c;this.listeners=[];this.iP=null;this.nM=new Map;b=new g.aL(this);g.J(this,b);b.T(a,"videodatachange",this.S$);b.T(a,"serverstitchedvideochange",this.p$);this.yv=this.cf()};
idb=function(a,b,c){var d=hdb(a,b,c);a.yv=d;a.listeners.forEach(function(e){e.xJ(d)})};
hdb=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,h=b.pd,l=b.title,m=b.wk,n=b.vl,p=b.isMdxPlayback,q=b.Hm,r=b.mdxEnvironment,t=b.isAutonav,v=b.Zp,x=b.fl,B=b.ev,F=b.videoId||"",G=b.profilePicture||"",I=b.El||"";b=b.qv||void 0;h=a.oe.get().j.get(h)||{layoutId:null,slotId:null};var L=a.J.getVideoData(1),P=L.Ac();L=L.getPlayerResponse();c=1E3*a.J.getDuration(c);a=1E3*a.J.getDuration(1);var V,ka,sa=(null==L?void 0:null==(V=L.playerConfig)?void 0:null==(ka=V.daiConfig)?void 0:ka.enableDai)||
!1,ta,la;V=(null==L?void 0:null==(ta=L.playerConfig)?void 0:null==(la=ta.daiConfig)?void 0:la.enablePreroll)||!1;return Object.assign({},h,{videoId:F,author:d,clientPlaybackNonce:e,jaa:c,Cs:a,daiEnabled:sa,yV:V,isListed:f,Ac:P,profilePicture:G,title:l,El:I,wk:m,vl:n,qv:b,isMdxPlayback:p,Hm:q,mdxEnvironment:r,isAutonav:t,Zp:v,fl:x,ev:B})};
N1=function(a,b,c){g.H.call(this);this.J=a;this.Wa=b;this.Da=c;this.listeners=[];this.kH=[];this.j=function(){RG("Called 'doUnlockPreroll' before it's initialized.")};
b=new SC(this);c=new g.aL(this);g.J(this,c);g.J(this,b);b.T(a,"progresssync",this.Q9);b.T(a,"presentingplayerstatechange",this.H9);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.wh);b.T(a,"overlayvisibilitychange",this.al);b.T(a,"resize",this.Zb);c.T(a,g.kK("appad"),this.Zk)};
O1=function(a){D1(a.Da.get())||a.j()};
jdb=function(a,b){a.kH=a.kH.filter(function(c){return c!==b})};
kdb=function(a,b){var c;b=null!=(c=a.Wa.get().nM.get(b))?c:null;if(null===b)return RG("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a<b?0:a-b};
G1=function(a,b){return a.J.Vb(b)};
ldb=function(a){var b=a.J.qb().Yj();a=a.J.Qk(!0,!0);return b.height-(a.height+a.top)};
mdb=function(a){a.J.cueVideoByPlayerVars({videoId:"empty_video"},2)};
ndb=function(a,b){var c=a.J.U();g.qS(c)||"3"!==c.controlsType||a.J.qb().uK(b)};
P1=function(a,b){g.Mu(a.J.getRootNode(),b)};
Q1=function(a,b){g.Ou(a.J.getRootNode(),b)};
odb=function(a,b,c,d,e){g.H.call(this);var f=this;this.fb=YJ(function(){return new bO});
g.J(this,this.fb);this.Ab=YJ(function(){return new cO(f.fb,f.Da)});
g.J(this,this.Ab);this.Xc=YJ(function(){return new NN});
g.J(this,this.Xc);this.Qb=YJ(function(){return new LN(a)});
g.J(this,this.Qb);this.Mb=YJ(function(){return new dO(f.fb,f.Ab,f.Da)});
g.J(this,this.Mb);this.oe=YJ(function(){return new hO});
g.J(this,this.oe);this.Hb=YJ(function(){return new ZJ(e)});
g.J(this,this.Hb);this.Rc=YJ(function(){return new z1(b)});
g.J(this,this.Rc);this.yc=YJ(function(){return new A1(b)});
g.J(this,this.yc);this.Hd=YJ(function(){return new B1(b)});
g.J(this,this.Hd);this.Da=YJ(function(){return new C1(b)});
g.J(this,this.Da);this.Yb=YJ(function(){return new FJ(f.Da)});
g.J(this,this.Yb);this.xe=YJ(function(){return new DN(f.fb,f.Mb,f.Ab,f.Da,f.Yb,null,null)});
g.J(this,this.xe);this.Wa=YJ(function(){return new M1(b,f.oe,f.Da)});
g.J(this,this.Wa);this.hc=new gO(this.Da,this.Yb,this.Wa);g.J(this,this.hc);this.Ia=YJ(function(){return new N1(b,f.Wa,f.Da)});
g.J(this,this.Ia);this.Db=YJ(function(){return new F1(f.Ia,b)});
g.J(this,this.Db);this.Oa=YJ(function(){return new L1(b,f.Xc,f.Db,f.Wa)});
g.J(this,this.Oa);this.Yc=new KN(this.Qb,this.xe,c,this.Da,a,this.Wa,this.Ia,this.Rc);g.J(this,this.Yc);var h=new y1(b,this.Yc,this.Ia,this.Wa);this.yg=YJ(function(){return h});
this.Nt=h;this.xf=new MN(this.Qb,this.Mb,this.yc,this.yg);g.J(this,this.xf);this.md=new pN(this.Da,this.Qb,this.Mb,this.xe,this.Wa,this.xf,c);g.J(this,this.md);this.uf={Mw:new Map,Fq:new Map,Cl:new Map,Kr:new Map,jr:new Map};this.listeners=[];this.jw={md:this.md,Vj:this.Da.get(),gb:this.Hb.get(),Rw:this.Ia.get(),Yc:this.Yc,qt:this.fb.get(),Zz:null,Yk:{pO:function(){}},
zj:this.Xc.get(),Wn:this.Wa.get()}};
R1=function(a,b,c){g.H.call(this);this.On=b;this.fb=c;this.On.get().addListener(this)};
S1=function(a){this.j=a};
pdb=function(a,b){if(!a)return{Su:[],adSlots:[],BB:!0,ssdaiAdsConfig:void 0};a.trackingParams&&HP(a.trackingParams);if(a.adThrottled)return{Su:[],adSlots:[],BB:!0,ssdaiAdsConfig:void 0};var c,d=null!=(c=a.adSlots)?c:[];c=a.playerAds;if(!c||!c.length)return{Su:[],adSlots:d,BB:!1,ssdaiAdsConfig:void 0};c=c.map(function(f){return f.adPlacementRenderer}).filter(function(f){return!(!f||!f.renderer)});
if(!c.length)return{Su:[],adSlots:d,BB:!1,ssdaiAdsConfig:void 0};if(0<b.end){var e=b.end.toString();c.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===f.kind&&f.adTimeOffset&&"-1"===f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!==e&&(f.adTimeOffset.offsetEndMilliseconds=e)});
d.map(function(f){return g.R(f,zDa)}).forEach(function(f){var h;
(f=null==f?void 0:null==(h=f.slotEntryTrigger)?void 0:h.mediaTimeRangeTrigger)&&"-1"===f.offsetEndMilliseconds&&(f.offsetEndMilliseconds=e)})}return{Su:c,
adSlots:d,BB:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
T1=function(a){this.X=a};
U1=function(a){g.H.call(this);this.J=a;this.listeners=[];this.j=new SC(this);g.J(this,this.j);this.j.T(this.J,"aduxclicked",this.onAdUxClicked);this.j.T(this.J,"aduxmouseover",this.LP);this.j.T(this.J,"aduxmouseout",this.KP);this.j.T(this.J,"muteadaccepted",this.r8)};
qdb=function(a,b,c){b=g.pr(b,function(d){return new Rva(d,c,d.id)});
a.J.ib("onAdUxUpdate",b)};
V1=function(a,b){a=g.u(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
W1=function(a,b){this.B=a;this.C=void 0===b?!1:b;this.j={}};
rdb=function(a,b){var c=a.startSecs+a.gi;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{f5:new fv(b,c),o7:new rQ(b,c-b,a.context,a.identifier,a.event,a.j)}};
sdb=function(){this.j=[]};
fCa=function(a,b,c){var d=g.Rb(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
X1=function(a,b,c){g.H.call(this);this.J=a;this.Da=b;this.Oa=c;this.listeners=[];this.D=!1;this.RK=[];this.B=null;this.G=new W1(this,Mcb(b.get()));this.C=new sdb;this.j=null};
tdb=function(a,b){a.RK.push(b);for(var c=!1,d=g.u(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.LY(b)||c;a.D=c};
vdb=function(a,b){cM(a.Oa.get(),{cuepointTrigger:{event:udb(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.gi,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})};
udb=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 Nn(a,"Unexpected cuepoint event")}};
Y1=function(a){this.J=a};
Z1=function(a){this.J=a};
$1=function(a){this.J=a};
wdb=function(a){this.J=a};
xdb=function(a,b,c,d,e){g.H.call(this);var f=this;this.fb=YJ(function(){return new bO});
g.J(this,this.fb);this.Ab=YJ(function(){return new cO(f.fb,f.Da)});
g.J(this,this.Ab);this.Xc=YJ(function(){return new NN});
g.J(this,this.Xc);this.Qb=YJ(function(){return new LN(a)});
g.J(this,this.Qb);this.Mb=YJ(function(){return new dO(f.fb,f.Ab,f.Da)});
g.J(this,this.Mb);this.oe=YJ(function(){return new hO});
g.J(this,this.oe);this.dg=YJ(function(){return new T1(b.U())});
g.J(this,this.dg);this.lc=YJ(function(){return new U1(b)});
g.J(this,this.lc);this.Hb=YJ(function(){return new ZJ(e)});
g.J(this,this.Hb);this.Rc=YJ(function(){return new z1(b)});
g.J(this,this.Rc);this.yc=YJ(function(){return new A1(b)});
g.J(this,this.yc);this.ze=YJ(function(){return new Y1(b)});
g.J(this,this.ze);this.Hd=YJ(function(){return new B1(b)});
g.J(this,this.Hd);this.Da=YJ(function(){return new C1(b)});
g.J(this,this.Da);this.Sf=YJ(function(){return new S1(d)});
g.J(this,this.Sf);this.Yb=YJ(function(){return new FJ(f.Da)});
g.J(this,this.Yb);this.xe=YJ(function(){return new DN(f.fb,f.Mb,f.Ab,f.Da,f.Yb,"SLOT_TYPE_ABOVE_FEED",f.Sj)});
g.J(this,this.xe);this.og=YJ(function(){return new Z1(b)});
g.J(this,this.og);this.On=YJ(function(){return new aK});
g.J(this,this.On);this.Wa=YJ(function(){return new M1(b,f.oe,f.Da)});
g.J(this,this.Wa);this.hc=new gO(this.Da,this.Yb,this.Wa);g.J(this,this.hc);this.Bf=YJ(function(){return new X1(b,f.Da,f.Oa)});
g.J(this,this.Bf);this.Mc=YJ(function(){return new $1(b)});
g.J(this,this.Mc);this.Ia=YJ(function(){return new N1(b,f.Wa,f.Da)});
g.J(this,this.Ia);this.mf=YJ(function(){return new bK});
this.Db=YJ(function(){return new F1(f.Ia,b)});
g.J(this,this.Db);this.Oa=YJ(function(){return new L1(b,f.Xc,f.Db,f.Wa)});
g.J(this,this.Oa);this.Ii=new JN(IN,a2,function(l,m,n,p){return vN(f.Ab.get(),l,m,n,p)},this.Qb,this.Mb,this.Ab,this.Yb,this.Da,this.Wa);
g.J(this,this.Ii);this.Yc=new KN(this.Qb,this.xe,c,this.Da,a,this.Wa,this.Ia,this.Rc);g.J(this,this.Yc);var h=new y1(b,this.Yc,this.Ia,this.Wa,this.Bf);this.yg=YJ(function(){return h});
this.Nt=h;this.Sj=new FN(this.Qb,this.Mb,this.yg,this.Bf,this.Ia,this.Da,this.Oa,this.Mc);g.J(this,this.Sj);this.xf=new MN(this.Qb,this.Mb,this.yc,this.yg);g.J(this,this.xf);this.md=new pN(this.Da,this.Qb,this.Mb,this.xe,this.Wa,this.xf,c);g.J(this,this.md);this.Zh=YJ(function(){return new mK(f.Sf,f.Ab,f.Yb,f.Da,f.Oa,f.Ia,f.Mc)});
g.J(this,this.Zh);this.je=YJ(function(){return new nK});
g.J(this,this.je);this.Tf=new RN(a,this.lc,this.Da);g.J(this,this.Tf);this.Nb=new SN(a);g.J(this,this.Nb);this.ov=new TN(a);g.J(this,this.ov);this.fg=new VN(a,this.yg);g.J(this,this.fg);this.Ye=new WN(a,this.yc,this.Ia,this.Wa);g.J(this,this.Ye);this.ow=new XN(a,this.Wa);g.J(this,this.ow);this.Ge=new YN(a);g.J(this,this.Ge);this.Zd=new aO(a);g.J(this,this.Zd);this.Gi=new ZN(a);g.J(this,this.Gi);this.nx=new $N(a);g.J(this,this.nx);this.Zd=new aO(a);g.J(this,this.Zd);this.Wd=YJ(function(){return new ON});
g.J(this,this.Wd);this.Ji=YJ(function(){return new PN(f.Ia)});
g.J(this,this.Ji);this.GU=YJ(function(){return new KAa(f.lc,f.Oa,a,f.Xc,f.Db,f.Hb)});
g.J(this,this.GU);this.Yh=YJ(function(){return new GK(f.md,f.Qb,f.fb)});
g.J(this,this.Yh);this.ri=YJ(function(){return new IK(f.Da,f.Oa,f.Ge,f.Db)});
g.J(this,this.ri);this.Hi=YJ(function(){return new FCa(a,f.Zd,f.Ge,f.Wa,f.Mc,f.Ia,f.Oa,f.oe,f.Bf,f.Db,f.mf,f.ze,f.yc,f.Rc,f.Hd,f.dg,f.Hb,f.og,f.Da,f.Xc)});
g.J(this,this.Hi);this.sZ=YJ(function(){return new YAa(f.Ia,f.Oa,f.Da,f.Db)});
g.J(this,this.sZ);this.Dn=YJ(function(){return new PCa(f.lc,f.Ia,f.Oa,f.Xc,f.Db,f.ov,f.nx,f.Hb,f.Da,c)});
g.J(this,this.Dn);this.e0=YJ(function(){return new MAa(f.lc)});
g.J(this,this.e0);this.jM=new R1(a,this.On,this.fb);g.J(this,this.jM);this.uf={Mw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.md],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Sj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ii],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xf]]),Fq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zh],["SLOT_TYPE_ABOVE_FEED",this.je],["SLOT_TYPE_FORECASTING",
this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.je],["SLOT_TYPE_PLAYER_UNDERLAY",this.je],["SLOT_TYPE_PLAYBACK_TRACKING",this.je]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tf],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Tf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Nb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_EXITED",
this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Nb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Nb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ov],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fg],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Ye],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Ye],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Ye],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ye],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ye],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Ye],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ye],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.ow],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.ow],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ge],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.fg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gi],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.nx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Zd]]),Kr:new Map([["SLOT_TYPE_ABOVE_FEED",this.Wd],["SLOT_TYPE_AD_BREAK_REQUEST",this.Wd],["SLOT_TYPE_FORECASTING",this.Wd],["SLOT_TYPE_IN_PLAYER",this.Wd],["SLOT_TYPE_PLAYER_BYTES",this.Ji],["SLOT_TYPE_PLAYER_UNDERLAY",this.Wd],["SLOT_TYPE_PLAYBACK_TRACKING",this.Wd]]),jr:new Map([["SLOT_TYPE_ABOVE_FEED",this.GU],["SLOT_TYPE_AD_BREAK_REQUEST",
this.Yh],["SLOT_TYPE_FORECASTING",this.ri],["SLOT_TYPE_PLAYER_BYTES",this.Hi],["SLOT_TYPE_PLAYBACK_TRACKING",this.sZ],["SLOT_TYPE_IN_PLAYER",this.Dn],["SLOT_TYPE_PLAYER_UNDERLAY",this.e0]])};this.listeners=[this.Xc.get()];this.jw={md:this.md,Vj:this.Da.get(),gb:this.Hb.get(),Rw:this.Ia.get(),Yc:this.Yc,qt:this.fb.get(),Zz:this.On.get(),Yk:this.Tf,zj:this.Xc.get(),Wn:this.Wa.get()}};
ydb=function(a,b,c,d,e){g.H.call(this);var f=this;this.fb=YJ(function(){return new bO});
g.J(this,this.fb);this.Ab=YJ(function(){return new cO(f.fb,f.Da)});
g.J(this,this.Ab);this.Xc=YJ(function(){return new NN});
g.J(this,this.Xc);this.Qb=YJ(function(){return new LN(a)});
g.J(this,this.Qb);this.Mb=YJ(function(){return new dO(f.fb,f.Ab,f.Da)});
g.J(this,this.Mb);this.oe=YJ(function(){return new hO});
g.J(this,this.oe);this.dg=YJ(function(){return new T1(b.U())});
g.J(this,this.dg);this.lc=YJ(function(){return new U1(b)});
g.J(this,this.lc);this.Hb=YJ(function(){return new ZJ(e)});
g.J(this,this.Hb);this.Rc=YJ(function(){return new z1(b)});
g.J(this,this.Rc);this.yc=YJ(function(){return new A1(b)});
g.J(this,this.yc);this.ze=YJ(function(){return new Y1(b)});
g.J(this,this.ze);this.Hd=YJ(function(){return new B1(b)});
g.J(this,this.Hd);this.Da=YJ(function(){return new C1(b)});
g.J(this,this.Da);this.Sf=YJ(function(){return new S1(d)});
g.J(this,this.Sf);this.Yb=YJ(function(){return new FJ(f.Da)});
g.J(this,this.Yb);this.xe=YJ(function(){return new DN(f.fb,f.Mb,f.Ab,f.Da,f.Yb,null,f.Sj)});
g.J(this,this.xe);this.og=YJ(function(){return new Z1(b)});
g.J(this,this.og);this.On=YJ(function(){return new aK});
g.J(this,this.On);this.Wa=YJ(function(){return new M1(b,f.oe,f.Da)});
g.J(this,this.Wa);this.hc=new gO(this.Da,this.Yb,this.Wa);g.J(this,this.hc);this.Bf=YJ(function(){return new X1(b,f.Da,f.Oa)});
this.Ia=YJ(function(){return new N1(b,f.Wa,f.Da)});
g.J(this,this.Ia);this.Db=YJ(function(){return new F1(f.Ia,b)});
g.J(this,this.Db);this.Oa=YJ(function(){return new L1(b,f.Xc,f.Db,f.Wa)});
g.J(this,this.Oa);this.mf=YJ(function(){return new bK});
g.J(this,this.mf);this.Ii=new JN(IN,a2,function(l,m,n,p){return vN(f.Ab.get(),l,m,n,p)},this.Qb,this.Mb,this.Ab,this.Yb,this.Da,this.Wa);
g.J(this,this.Ii);this.Yc=new KN(this.Qb,this.xe,c,this.Da,a,this.Wa,this.Ia,this.Rc);g.J(this,this.Yc);var h=new y1(b,this.Yc,this.Ia,this.Wa,this.Bf);this.yg=YJ(function(){return h});
this.Nt=h;this.Sj=new FN(this.Qb,this.Mb,this.yg,this.Bf,this.Ia,this.Da,this.Oa);g.J(this,this.Sj);this.xf=new MN(this.Qb,this.Mb,this.yc,this.yg);g.J(this,this.xf);this.md=new pN(this.Da,this.Qb,this.Mb,this.xe,this.Wa,this.xf,c);g.J(this,this.md);this.Zh=YJ(function(){return new mK(f.Sf,f.Ab,f.Yb,f.Da,f.Oa,f.Ia)});
g.J(this,this.Zh);this.je=YJ(function(){return new nK});
g.J(this,this.je);this.Tf=new RN(a,this.lc,this.Da);g.J(this,this.Tf);this.Nb=new SN(a);g.J(this,this.Nb);this.ov=new TN(a);g.J(this,this.ov);this.fg=new VN(a,this.yg);g.J(this,this.fg);this.Ye=new WN(a,this.yc,this.Ia,this.Wa);g.J(this,this.Ye);this.Ge=new YN(a);g.J(this,this.Ge);this.Gi=new ZN(a);g.J(this,this.Gi);this.nx=new $N(a);g.J(this,this.nx);this.Mc=YJ(function(){return new $1(b)});
g.J(this,this.Mc);this.Zd=new aO(a);g.J(this,this.Zd);this.Wd=YJ(function(){return new ON});
g.J(this,this.Wd);this.Ji=YJ(function(){return new PN(f.Ia)});
g.J(this,this.Ji);this.Yh=YJ(function(){return new GK(f.md,f.Qb,f.fb)});
g.J(this,this.Yh);this.ri=YJ(function(){return new IK(f.Da,f.Oa,f.Ge,f.Db)});
g.J(this,this.ri);this.Dn=YJ(function(){return new QCa(f.lc,f.Ia,f.Oa,f.Xc,f.Db,f.ov,f.nx,f.Hb,f.Da,c)});
g.J(this,this.Dn);this.Hi=YJ(function(){return new eM(a,f.Zd,f.Ge,f.Oa,f.Db,f.mf,f.ze,f.Wa,f.Ia,f.yc,f.Rc,f.Hd,f.dg,f.Hb,f.og,f.Da,f.Mc)});
g.J(this,this.Hi);this.jM=new R1(a,this.On,this.fb);g.J(this,this.jM);this.uf={Mw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.md],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Sj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ii],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xf]]),Fq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zh],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",
this.je],["SLOT_TYPE_PLAYER_BYTES",this.je]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Nb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Nb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ov],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ye],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ye],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ye],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ge],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gi],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.nx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Zd]]),Kr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wd],["SLOT_TYPE_FORECASTING",this.Wd],["SLOT_TYPE_IN_PLAYER",this.Wd],["SLOT_TYPE_PLAYER_BYTES",this.Ji]]),jr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yh],["SLOT_TYPE_FORECASTING",this.ri],["SLOT_TYPE_IN_PLAYER",this.Dn],["SLOT_TYPE_PLAYER_BYTES",this.Hi]])};this.listeners=[this.Xc.get()];this.jw={md:this.md,Vj:this.Da.get(),gb:this.Hb.get(),Rw:this.Ia.get(),Yc:this.Yc,qt:this.fb.get(),Zz:this.On.get(),
Yk:this.Tf,zj:this.Xc.get(),Wn:this.Wa.get()}};
zdb=function(a,b,c,d,e){g.H.call(this);var f=this;this.fb=YJ(function(){return new bO});
g.J(this,this.fb);this.Ab=YJ(function(){return new cO(f.fb,f.Da)});
g.J(this,this.Ab);this.Xc=YJ(function(){return new NN});
g.J(this,this.Xc);this.Qb=YJ(function(){return new LN(a)});
g.J(this,this.Qb);this.Mb=YJ(function(){return new dO(f.fb,f.Ab,f.Da)});
g.J(this,this.Mb);this.oe=YJ(function(){return new hO});
g.J(this,this.oe);this.dg=YJ(function(){return new T1(b.U())});
g.J(this,this.dg);this.lc=YJ(function(){return new U1(b)});
g.J(this,this.lc);this.Hb=YJ(function(){return new ZJ(e)});
g.J(this,this.Hb);this.Rc=YJ(function(){return new z1(b)});
g.J(this,this.Rc);this.yc=YJ(function(){return new A1(b)});
g.J(this,this.yc);this.ze=YJ(function(){return new Y1(b)});
g.J(this,this.ze);this.Hd=YJ(function(){return new B1(b)});
g.J(this,this.Hd);this.Da=YJ(function(){return new C1(b)});
g.J(this,this.Da);this.Sf=YJ(function(){return new S1(d)});
g.J(this,this.Sf);this.Yb=YJ(function(){return new FJ(f.Da)});
g.J(this,this.Yb);this.xe=YJ(function(){return new DN(f.fb,f.Mb,f.Ab,f.Da,f.Yb,null,null)});
g.J(this,this.xe);this.og=YJ(function(){return new Z1(b)});
g.J(this,this.og);this.Wa=YJ(function(){return new M1(b,f.oe,f.Da)});
g.J(this,this.Wa);this.hc=new gO(this.Da,this.Yb,this.Wa);g.J(this,this.hc);this.Ia=YJ(function(){return new N1(b,f.Wa,f.Da)});
g.J(this,this.Ia);this.Db=YJ(function(){return new F1(f.Ia,b)});
g.J(this,this.Db);this.Oa=YJ(function(){return new L1(b,f.Xc,f.Db,f.Wa)});
g.J(this,this.Oa);this.mf=YJ(function(){return new bK});
g.J(this,this.mf);this.Ii=new JN(IN,a2,function(l,m,n,p){return vN(f.Ab.get(),l,m,n,p)},this.Qb,this.Mb,this.Ab,this.Yb,this.Da,this.Wa);
g.J(this,this.Ii);this.Yc=new KN(this.Qb,this.xe,c,this.Da,a,this.Wa,this.Ia,this.Rc);g.J(this,this.Yc);var h=new y1(b,this.Yc,this.Ia,this.Wa);this.yg=YJ(function(){return h});
this.Nt=h;this.xf=new MN(this.Qb,this.Mb,this.yc,this.yg);g.J(this,this.xf);this.md=new pN(this.Da,this.Qb,this.Mb,this.xe,this.Wa,this.xf,c);g.J(this,this.md);this.Zh=YJ(function(){return new mK(f.Sf,f.Ab,f.Yb,f.Da,f.Oa,f.Ia)});
g.J(this,this.Zh);this.je=YJ(function(){return new nK});
g.J(this,this.je);this.Tf=new RN(a,this.lc,this.Da);g.J(this,this.Tf);this.Nb=new SN(a);g.J(this,this.Nb);this.fg=new VN(a,this.yg);g.J(this,this.fg);this.Ye=new WN(a,this.yc,this.Ia,this.Wa);g.J(this,this.Ye);this.Ge=new YN(a);g.J(this,this.Ge);this.Gi=new ZN(a);g.J(this,this.Gi);this.Mc=YJ(function(){return new $1(b)});
g.J(this,this.Mc);this.Zd=new aO(a);g.J(this,this.Zd);this.Wd=YJ(function(){return new ON});
g.J(this,this.Wd);this.Ji=YJ(function(){return new PN(f.Ia)});
g.J(this,this.Ji);this.Yh=YJ(function(){return new GK(f.md,f.Qb,f.fb)});
g.J(this,this.Yh);this.ri=YJ(function(){return new IK(f.Da,f.Oa,f.Ge,f.Db)});
g.J(this,this.ri);this.mZ=YJ(function(){return new XAa(f.lc,f.Ia,f.Oa,f.Xc,c,f.Da)});
g.J(this,this.mZ);this.Hi=YJ(function(){return new eM(a,f.Zd,f.Ge,f.Oa,f.Db,f.mf,f.ze,f.Wa,f.Ia,f.yc,f.Rc,f.Hd,f.dg,f.Hb,f.og,f.Da,f.Mc)});
g.J(this,this.Hi);this.uf={Mw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.md],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ii],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xf]]),Fq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zh],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.je]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Nb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Nb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Nb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ye],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Ye],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ge],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Zd]]),Kr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wd],["SLOT_TYPE_ABOVE_FEED",this.Wd],["SLOT_TYPE_FORECASTING",this.Wd],["SLOT_TYPE_IN_PLAYER",this.Wd],["SLOT_TYPE_PLAYER_BYTES",this.Ji]]),jr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yh],["SLOT_TYPE_FORECASTING",this.ri],["SLOT_TYPE_IN_PLAYER",
this.mZ],["SLOT_TYPE_PLAYER_BYTES",this.Hi]])};this.listeners=[this.Xc.get()];this.jw={md:this.md,Vj:this.Da.get(),gb:this.Hb.get(),Rw:this.Ia.get(),Yc:this.Yc,qt:this.fb.get(),Zz:null,Yk:this.Tf,zj:this.Xc.get(),Wn:this.Wa.get()}};
Adb=function(a,b,c,d,e){g.H.call(this);var f=this;this.fb=YJ(function(){return new bO});
g.J(this,this.fb);this.Ab=YJ(function(){return new cO(f.fb,f.Da)});
g.J(this,this.Ab);this.Xc=YJ(function(){return new NN});
g.J(this,this.Xc);this.Qb=YJ(function(){return new LN(a)});
g.J(this,this.Qb);this.Mb=YJ(function(){return new dO(f.fb,f.Ab,f.Da)});
g.J(this,this.Mb);this.oe=YJ(function(){return new hO});
g.J(this,this.oe);this.dg=YJ(function(){return new T1(b.U())});
g.J(this,this.dg);this.lc=YJ(function(){return new U1(b)});
g.J(this,this.lc);this.Hb=YJ(function(){return new ZJ(e)});
g.J(this,this.Hb);this.Rc=YJ(function(){return new z1(b)});
g.J(this,this.Rc);this.yc=YJ(function(){return new A1(b)});
g.J(this,this.yc);this.ze=YJ(function(){return new Y1(b)});
g.J(this,this.ze);this.Hd=YJ(function(){return new B1(b)});
g.J(this,this.Hd);this.Da=YJ(function(){return new C1(b)});
g.J(this,this.Da);this.Sf=YJ(function(){return new S1(d)});
g.J(this,this.Sf);this.Yb=YJ(function(){return new FJ(f.Da)});
g.J(this,this.Yb);this.xe=YJ(function(){return new DN(f.fb,f.Mb,f.Ab,f.Da,f.Yb,null,null)});
g.J(this,this.xe);this.og=YJ(function(){return new Z1(b)});
g.J(this,this.og);this.Wa=YJ(function(){return new M1(b,f.oe,f.Da)});
g.J(this,this.Wa);this.hc=new gO(this.Da,this.Yb,this.Wa);g.J(this,this.hc);this.Ia=YJ(function(){return new N1(b,f.Wa,f.Da)});
g.J(this,this.Ia);this.Db=YJ(function(){return new F1(f.Ia,b)});
g.J(this,this.Db);this.Oa=YJ(function(){return new L1(b,f.Xc,f.Db,f.Wa)});
g.J(this,this.Oa);this.mf=YJ(function(){return new bK});
g.J(this,this.mf);this.Ii=new JN(IN,a2,function(l,m,n,p){return vN(f.Ab.get(),l,m,n,p)},this.Qb,this.Mb,this.Ab,this.Yb,this.Da,this.Wa);
g.J(this,this.Ii);this.Yc=new KN(this.Qb,this.xe,c,this.Da,a,this.Wa,this.Ia,this.Rc);g.J(this,this.Yc);var h=new y1(b,this.Yc,this.Ia,this.Wa);this.yg=YJ(function(){return h});
this.Nt=h;this.xf=new MN(this.Qb,this.Mb,this.yc,this.yg);g.J(this,this.xf);this.md=new pN(this.Da,this.Qb,this.Mb,this.xe,this.Wa,this.xf,c);g.J(this,this.md);this.Zh=YJ(function(){return new mK(f.Sf,f.Ab,f.Yb,f.Da,f.Oa,f.Ia)});
g.J(this,this.Zh);this.je=YJ(function(){return new nK});
g.J(this,this.je);this.Tf=new RN(a,this.lc,this.Da);g.J(this,this.Tf);this.Nb=new SN(a);g.J(this,this.Nb);this.fg=new VN(a,this.yg);g.J(this,this.fg);this.Ye=new WN(a,this.yc,this.Ia,this.Wa);g.J(this,this.Ye);this.Ge=new YN(a);g.J(this,this.Ge);this.Gi=new ZN(a);g.J(this,this.Gi);this.Mc=YJ(function(){return new $1(b)});
g.J(this,this.Mc);this.Zd=new aO(a);g.J(this,this.Zd);this.Wd=YJ(function(){return new ON});
g.J(this,this.Wd);this.Ji=YJ(function(){return new PN(f.Ia)});
g.J(this,this.Ji);this.Yh=YJ(function(){return new GK(f.md,f.Qb,f.fb)});
g.J(this,this.Yh);this.ri=YJ(function(){return new IK(f.Da,f.Oa,f.Ge,f.Db)});
g.J(this,this.ri);this.Dn=YJ(function(){return new XAa(f.lc,f.Ia,f.Oa,f.Xc,c,f.Da)});
g.J(this,this.Dn);this.Hi=YJ(function(){return new eM(a,f.Zd,f.Ge,f.Oa,f.Db,f.mf,f.ze,f.Wa,f.Ia,f.yc,f.Rc,f.Hd,f.dg,f.Hb,f.og,f.Da,f.Mc)});
g.J(this,this.Hi);this.uf={Mw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.md],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ii],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xf]]),Fq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zh],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.je]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Nb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Nb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Nb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fg],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ye],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",
this.Ge],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Zd]]),Kr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wd],["SLOT_TYPE_FORECASTING",this.Wd],["SLOT_TYPE_IN_PLAYER",this.Wd],["SLOT_TYPE_PLAYER_BYTES",this.Ji]]),jr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yh],["SLOT_TYPE_FORECASTING",this.ri],["SLOT_TYPE_IN_PLAYER",this.Dn],["SLOT_TYPE_PLAYER_BYTES",this.Hi]])};this.listeners=[this.Xc.get()];
this.jw={md:this.md,Vj:this.Da.get(),gb:this.Hb.get(),Rw:this.Ia.get(),Yc:this.Yc,qt:this.fb.get(),Zz:null,Yk:this.Tf,zj:this.Xc.get(),Wn:this.Wa.get()}};
Bdb=function(a,b,c,d,e){g.H.call(this);var f=this;this.fb=YJ(function(){return new bO});
g.J(this,this.fb);this.Ab=YJ(function(){return new cO(f.fb,f.Da)});
g.J(this,this.Ab);this.Xc=YJ(function(){return new NN});
g.J(this,this.Xc);this.Qb=YJ(function(){return new LN(a)});
g.J(this,this.Qb);this.Mb=YJ(function(){return new dO(f.fb,f.Ab,f.Da)});
g.J(this,this.Mb);this.oe=YJ(function(){return new hO});
g.J(this,this.oe);this.Tm=YJ(function(){return new wdb(b)});
g.J(this,this.Tm);this.dg=YJ(function(){return new T1(b.U())});
g.J(this,this.dg);this.lc=YJ(function(){return new U1(b)});
g.J(this,this.lc);this.Hb=YJ(function(){return new ZJ(e)});
g.J(this,this.Hb);this.Rc=YJ(function(){return new z1(b)});
g.J(this,this.Rc);this.yc=YJ(function(){return new A1(b)});
g.J(this,this.yc);this.ze=YJ(function(){return new Y1(b)});
g.J(this,this.ze);this.Hd=YJ(function(){return new B1(b)});
g.J(this,this.Hd);this.Da=YJ(function(){return new C1(b)});
g.J(this,this.Da);this.Sf=YJ(function(){return new S1(d)});
g.J(this,this.Sf);this.Yb=YJ(function(){return new FJ(f.Da)});
g.J(this,this.Yb);this.xe=YJ(function(){return new DN(f.fb,f.Mb,f.Ab,f.Da,f.Yb,null,null)});
g.J(this,this.xe);this.og=YJ(function(){return new Z1(b)});
g.J(this,this.og);this.Wa=YJ(function(){return new M1(b,f.oe,f.Da)});
g.J(this,this.Wa);this.hc=new gO(this.Da,this.Yb,this.Wa);g.J(this,this.hc);this.Ia=YJ(function(){return new N1(b,f.Wa,f.Da)});
g.J(this,this.Ia);this.Db=YJ(function(){return new F1(f.Ia,b)});
g.J(this,this.Db);this.Oa=YJ(function(){return new L1(b,f.Xc,f.Db,f.Wa)});
g.J(this,this.Oa);this.mf=YJ(function(){return new bK});
g.J(this,this.mf);this.Ii=new JN(GFa,a2,function(l,m,n,p){return ZFa(f.Ab.get(),l,m,n,p)},this.Qb,this.Mb,this.Ab,this.Yb,this.Da,this.Wa);
g.J(this,this.Ii);this.Yc=new KN(this.Qb,this.xe,c,this.Da,a,this.Wa,this.Ia,this.Rc);g.J(this,this.Yc);var h=new y1(b,this.Yc,this.Ia,this.Wa);this.yg=YJ(function(){return h});
this.Nt=h;this.xf=new MN(this.Qb,this.Mb,this.yc,this.yg);g.J(this,this.xf);this.md=new pN(this.Da,this.Qb,this.Mb,this.xe,this.Wa,this.xf,c);g.J(this,this.md);this.Zh=YJ(function(){return new mK(f.Sf,f.Ab,f.Yb,f.Da,f.Oa,f.Ia)});
g.J(this,this.Zh);this.je=YJ(function(){return new nK});
g.J(this,this.je);this.Tf=new RN(a,this.lc,this.Da);g.J(this,this.Tf);this.Nb=new SN(a);g.J(this,this.Nb);this.fg=new VN(a,this.yg);g.J(this,this.fg);this.Ye=new WN(a,this.yc,this.Ia,this.Wa);g.J(this,this.Ye);this.Ge=new YN(a);g.J(this,this.Ge);this.Gi=new ZN(a);g.J(this,this.Gi);this.Mc=YJ(function(){return new $1(b)});
g.J(this,this.Mc);this.Zd=new aO(a);g.J(this,this.Zd);this.Wd=YJ(function(){return new ON});
g.J(this,this.Wd);this.Ji=YJ(function(){return new PN(f.Ia)});
g.J(this,this.Ji);this.Yh=YJ(function(){return new GK(f.md,f.Qb,f.fb)});
g.J(this,this.Yh);this.ri=YJ(function(){return new IK(f.Da,f.Oa,f.Ge,f.Db)});
g.J(this,this.ri);this.Hi=YJ(function(){return new eM(a,f.Zd,f.Ge,f.Oa,f.Db,f.mf,f.ze,f.Wa,f.Ia,f.yc,f.Rc,f.Hd,f.dg,f.Hb,f.og,f.Da,f.Mc)});
g.J(this,this.Hi);this.C0=YJ(function(){return new SCa(f.lc,f.Ia,f.Oa,f.Xc,f.Tm,c)});
g.J(this,this.C0);this.uf={Mw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.md],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ii],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xf]]),Fq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zh],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.je]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Nb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Nb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Nb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ye],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Ye],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ge],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Zd]]),Kr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wd],["SLOT_TYPE_FORECASTING",this.Wd],["SLOT_TYPE_IN_PLAYER",this.Wd],["SLOT_TYPE_PLAYER_BYTES",this.Ji]]),jr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yh],["SLOT_TYPE_FORECASTING",this.ri],["SLOT_TYPE_IN_PLAYER",this.C0],["SLOT_TYPE_PLAYER_BYTES",
this.Hi]])};this.listeners=[this.Xc.get()];this.jw={md:this.md,Vj:this.Da.get(),gb:this.Hb.get(),Rw:this.Ia.get(),Yc:this.Yc,qt:this.fb.get(),Zz:null,Yk:this.Tf,zj:this.Xc.get(),Wn:this.Wa.get()}};
Cdb=function(a,b,c,d,e){g.H.call(this);var f=this;this.fb=YJ(function(){return new bO});
g.J(this,this.fb);this.Ab=YJ(function(){return new cO(f.fb,f.Da)});
g.J(this,this.Ab);this.Xc=YJ(function(){return new NN});
g.J(this,this.Xc);this.Qb=YJ(function(){return new LN(a)});
g.J(this,this.Qb);this.Mb=YJ(function(){return new dO(f.fb,f.Ab,f.Da)});
g.J(this,this.Mb);this.oe=YJ(function(){return new hO});
g.J(this,this.oe);this.Tm=YJ(function(){return new wdb(b)});
g.J(this,this.Tm);this.dg=YJ(function(){return new T1(b.U())});
g.J(this,this.dg);this.lc=YJ(function(){return new U1(b)});
g.J(this,this.lc);this.Hb=YJ(function(){return new ZJ(e)});
g.J(this,this.Hb);this.Rc=YJ(function(){return new z1(b)});
g.J(this,this.Rc);this.yc=YJ(function(){return new A1(b)});
g.J(this,this.yc);this.ze=YJ(function(){return new Y1(b)});
g.J(this,this.ze);this.Hd=YJ(function(){return new B1(b)});
g.J(this,this.Hd);this.Da=YJ(function(){return new C1(b)});
g.J(this,this.Da);this.Sf=YJ(function(){return new S1(d)});
g.J(this,this.Sf);this.Yb=YJ(function(){return new FJ(f.Da)});
g.J(this,this.Yb);this.xe=YJ(function(){return new DN(f.fb,f.Mb,f.Ab,f.Da,f.Yb,null,f.Sj,3)});
g.J(this,this.xe);this.og=YJ(function(){return new Z1(b)});
g.J(this,this.og);this.Wa=YJ(function(){return new M1(b,f.oe,f.Da)});
g.J(this,this.Wa);this.hc=new gO(this.Da,this.Yb,this.Wa);g.J(this,this.hc);this.Bf=YJ(function(){return new X1(b,f.Da,f.Oa)});
g.J(this,this.Bf);this.Mc=YJ(function(){return new $1(b)});
g.J(this,this.Mc);this.Ia=YJ(function(){return new N1(b,f.Wa,f.Da)});
g.J(this,this.Ia);this.mf=YJ(function(){return new bK});
this.Db=YJ(function(){return new F1(f.Ia,b)});
g.J(this,this.Db);this.Oa=YJ(function(){return new L1(b,f.Xc,f.Db,f.Wa)});
g.J(this,this.Oa);this.Yc=new KN(this.Qb,this.xe,c,this.Da,a,this.Wa,this.Ia,this.Rc);g.J(this,this.Yc);var h=new y1(b,this.Yc,this.Ia,this.Wa,this.Bf);this.yg=YJ(function(){return h});
this.Nt=h;this.Ii=new JN(HFa,a2,function(l,m,n,p){return ZFa(f.Ab.get(),l,m,n,p)},this.Qb,this.Mb,this.Ab,this.Yb,this.Da,this.Wa);
g.J(this,this.Ii);this.Sj=new FN(this.Qb,this.Mb,this.yg,this.Bf,this.Ia,this.Da,this.Oa,this.Mc);g.J(this,this.Sj);this.xf=new MN(this.Qb,this.Mb,this.yc,this.yg);g.J(this,this.xf);this.md=new pN(this.Da,this.Qb,this.Mb,this.xe,this.Wa,this.xf,c);g.J(this,this.md);this.Zh=YJ(function(){return new mK(f.Sf,f.Ab,f.Yb,f.Da,f.Oa,f.Ia,f.Mc)});
g.J(this,this.Zh);this.je=YJ(function(){return new nK});
g.J(this,this.je);this.Tf=new RN(a,this.lc,this.Da);g.J(this,this.Tf);this.Nb=new SN(a);g.J(this,this.Nb);this.fg=new VN(a,this.yg);g.J(this,this.fg);this.Ye=new WN(a,this.yc,this.Ia,this.Wa);g.J(this,this.Ye);this.ow=new XN(a,this.Wa);g.J(this,this.ow);this.Ge=new YN(a);g.J(this,this.Ge);this.Gi=new ZN(a);g.J(this,this.Gi);this.Zd=new aO(a);g.J(this,this.Zd);this.Wd=YJ(function(){return new ON});
g.J(this,this.Wd);this.Ji=YJ(function(){return new PN(f.Ia)});
g.J(this,this.Ji);this.Yh=YJ(function(){return new GK(f.md,f.Qb,f.fb)});
g.J(this,this.Yh);this.ri=YJ(function(){return new IK(f.Da,f.Oa,f.Ge,f.Db)});
g.J(this,this.ri);this.Hi=YJ(function(){return new FCa(a,f.Zd,f.Ge,f.Wa,f.Mc,f.Ia,f.Oa,f.oe,f.Bf,f.Db,f.mf,f.ze,f.yc,f.Rc,f.Hd,f.dg,f.Hb,f.og,f.Da,f.Xc)});
g.J(this,this.Hi);this.Dn=YJ(function(){return new TCa(f.lc,f.Ia,f.Oa,f.Xc,f.Tm,c,f.Da)});
g.J(this,this.Dn);this.uf={Mw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.md],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Sj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ii],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xf]]),Fq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zh],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.je]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.Tf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Nb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Nb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.Ye],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ye],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.ow],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.ow],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ge],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Zd]]),Kr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wd],["SLOT_TYPE_FORECASTING",this.Wd],["SLOT_TYPE_IN_PLAYER",this.Wd],["SLOT_TYPE_PLAYER_BYTES",
this.Ji]]),jr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yh],["SLOT_TYPE_FORECASTING",this.ri],["SLOT_TYPE_PLAYER_BYTES",this.Hi],["SLOT_TYPE_IN_PLAYER",this.Dn]])};this.listeners=[this.Xc.get()];this.jw={md:this.md,Vj:this.Da.get(),gb:this.Hb.get(),Rw:this.Ia.get(),Yc:this.Yc,qt:this.fb.get(),Zz:null,Yk:this.Tf,zj:this.Xc.get(),Wn:this.Wa.get()}};
Edb=function(a,b,c,d){g.H.call(this);var e=this;this.j=Ddb(function(){return e.B},a,b,c,d);
g.J(this,this.j);this.B=(new vza(this.j)).C();g.J(this,this.B)};
b2=function(a){return a.j.jw};
Ddb=function(a,b,c,d,e){try{var f=b.U();if(g.BS(f))var h=new xdb(a,b,c,d,e);else if(g.DS(f))h=new ydb(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===g.QR(f))h=new Adb(a,b,c,d,e);else if(wS(f))h=new zdb(a,b,c,d,e);else if(g.jH(f))h=new Bdb(a,b,c,d,e);else if(g.sS(f))h=new Cdb(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),RG("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,zjb:h.j.cver,yjb:h.j.ctheme,
xjb:h.j.cplayer,ikb:h.playerStyle}),new odb(a,b,c,d,e)}};
c2=function(a){this.Aq=a};
Fdb=function(a){var b=new c2(a.Aq),c=new $cb(b);return{S5:function(){return b},
j6:function(){return c}}};
Gdb=function(a){FG.call(this,a)};
Hdb=function(a,b,c,d,e){JG.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",Y:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",Y:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",Y:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",Y:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.D=this.Ha("ytp-ad-timed-pie-countdown-container");this.C=this.Ha("ytp-ad-timed-pie-countdown-inner");
this.G=this.Ha("ytp-ad-timed-pie-countdown-outer");this.B=Math.ceil(10*Math.PI);this.hide()};
Idb=function(a,b,c,d,e,f){lG.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",Y:{tabindex:"0"},V:[{I:"div",S:"ytp-ad-action-interstitial-background-container"},{I:"div",S:"ytp-ad-action-interstitial-slot",V:[{I:"div",S:"ytp-ad-action-interstitial-instream-info"},{I:"div",S:"ytp-ad-action-interstitial-card",V:[{I:"div",S:"ytp-ad-action-interstitial-image-container"},{I:"div",S:"ytp-ad-action-interstitial-headline-container"},{I:"div",S:"ytp-ad-action-interstitial-description-container"},{I:"div",
S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.ER=e;this.zK=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Va=this.Ha("ytp-ad-action-interstitial-instream-info");this.Ga=this.Ha("ytp-ad-action-interstitial-image-container");this.W=new CG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-ad-action-interstitial-image");g.J(this,this.W);this.W.Ja(this.Ga);this.Na=this.Ha("ytp-ad-action-interstitial-headline-container");
this.G=new IG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-ad-action-interstitial-headline");g.J(this,this.G);this.G.Ja(this.Na);this.ra=this.Ha("ytp-ad-action-interstitial-description-container");this.D=new IG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-ad-action-interstitial-description");g.J(this,this.D);this.D.Ja(this.ra);this.kb=this.Ha("ytp-ad-action-interstitial-background-container");this.La=new CG(this.api,this.layoutId,this.interactionLoggingClientData,
this.gb,"ytp-ad-action-interstitial-background",!0);g.J(this,this.La);this.La.Ja(this.kb);this.bb=this.Ha("ytp-ad-action-interstitial-action-button-container");this.slot=this.Ha("ytp-ad-action-interstitial-slot");this.C=new SC;g.J(this,this.C);this.hide()};
Jdb=function(a){var b=g.Me("html5-video-player");b&&g.Qu(b,"ytp-ad-display-override",a)};
Ndb=function(a,b,c,d){lG.call(this,a,{I:"div",S:"ytp-ad-overlay-slot",V:[{I:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.W=[];this.kb=this.Ga=this.D=this.bb=this.Na=null;this.Va=!1;this.G=null;this.ra=0;a=this.Ha("ytp-ad-overlay-container");this.La=new PG(a,45E3,6E3,.3,.4);g.J(this,this.La);this.C=Kdb(this);g.J(this,this.C);this.C.Ja(a);this.B=Ldb(this);g.J(this,this.B);this.B.Ja(a);this.j=Mdb(this);g.J(this,this.j);this.j.Ja(a);this.hide()};
Kdb=function(a){var b=new g.kG({I:"div",S:"ytp-ad-text-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[uG(Odb)]}]},{I:"div",S:"ytp-ad-overlay-title",ya:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",ya:"{{description}}"},{I:"div",Ma:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],ya:"{{displayUrl}}"}]});a.T(b.Ha("ytp-ad-overlay-title"),"click",function(c){f2(a,b.element,c)});
a.T(b.Ha("ytp-ad-overlay-link"),"click",function(c){f2(a,b.element,c)});
a.T(b.Ha("ytp-ad-overlay-close-container"),"click",a.Op);b.hide();return b};
Ldb=function(a){var b=new g.kG({I:"div",Ma:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[uG(Odb)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",Y:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",ya:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",ya:"{{description}}"},{I:"div",Ma:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
ya:"{{displayUrl}}"}]});a.T(b.Ha("ytp-ad-overlay-title"),"click",function(c){f2(a,b.element,c)});
a.T(b.Ha("ytp-ad-overlay-link"),"click",function(c){f2(a,b.element,c)});
a.T(b.Ha("ytp-ad-overlay-close-container"),"click",a.Op);a.T(b.Ha("ytp-ad-overlay-text-image"),"click",a.G$);b.hide();return b};
Mdb=function(a){var b=new g.kG({I:"div",S:"ytp-ad-image-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[uG(Odb)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",Y:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Ha("ytp-ad-overlay-image"),"click",function(c){f2(a,b.element,c)});
a.T(b.Ha("ytp-ad-overlay-close-container"),"click",a.Op);b.hide();return b};
Pdb=function(a,b){if(b){var c=g.R(b,lN)||null;if(null==c)g.KF(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Me("video-ads ytp-ad-module")||null,null==b)g.KF(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ga=new g.kG({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.J(a,a.Ga),a.Ga.Ja(b),b=new HG(a.api,a.layoutId,a.interactionLoggingClientData,a.gb,a.Ga.element,!1),g.J(a,b),b.init(aG("ad-info-hover-text-button"),
c,a.macros),a.G){b.Ja(a.G,0);b.subscribe("f",a.p8,a);b.subscribe("e",a.iQ,a);a.T(a.G,"click",a.q8);var d=g.Me("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.R(null==(e=g.R(c.button,g.nN))?void 0:e.serviceEndpoint,dwa))a.Va=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.kb=b}else g.KF(Error("Ad info button container within overlay ad was not present."))}else g.LF(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Rdb=function(a,b){if(Qdb(a,g2)||a.api.jg())return!1;var c=mG(b.title),d=mG(b.description);if(g.cc(c)||g.cc(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",mG(b.title));a.C.updateValue("description",mG(b.description));a.C.updateValue("displayUrl",mG(b.displayUrl));b.navigationEndpoint&&g.Lb(a.W,b.navigationEndpoint);a.C.show();a.La.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.ra++});
return!0};
Sdb=function(a,b){if(Qdb(a,g2)||a.api.jg())return!1;var c=mG(b.title),d=mG(b.description);if(g.cc(c)||g.cc(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",mG(b.title));a.B.updateValue("description",mG(b.description));a.B.updateValue("displayUrl",mG(b.displayUrl));a.B.updateValue("imageUrl",jva(b.image));b.navigationEndpoint&&g.Lb(a.W,b.navigationEndpoint);a.bb=b.imageNavigationEndpoint||null;a.B.show();a.La.start();a.logVisibility(a.B.element,!0);a.T(a.B.element,
"mouseover",function(){a.ra++});
return!0};
Tdb=function(a,b){if(a.api.jg())return!1;var c=kva(b.image),d=c;c.width<g2.width&&(d=g2);if(0===c.width||0===c.height||Qdb(a,d))return!1;a.createServerVe(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",jva(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.Lb(a.W,b.navigationEndpoint);b=a.j.Ha("ytp-ad-image-overlay");g.Yr(b,"max-width",c.width+"px");a.j.show();a.logVisibility(a.j.element,!0);a.T(a.j.element,"mouseover",function(){a.ra++;
a.api.LP("invideo-overlay",a.layoutId)});
a.T(a.j.element,"mouseout",function(){a.api.KP("invideo-overlay",a.layoutId)});
return!0};
Qdb=function(a,b){var c=a.api.qb().Yj(),d=a.api.Qk(!0,!1);return(b=ICa(c,c.height-(d.height+d.top),b))?(a.Na&&b&&(c=g.ld(a.macros),c.ERRORCODE=b.gG.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?$J(a.gb,a.Na,a.layoutId,c):g.KF(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
f2=function(a,b,c){var d=g.ld(a.macros),e=g.is(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.gs(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.ra.toString()}};
b=g.u(a.W);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?$J(a.gb,c,a.layoutId,d):g.KF(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
Udb=function(a,b){a=a.api.getRootNode();g.Qu(a,"ytp-ad-overlay-open",b);g.Qu(a,"ytp-ad-overlay-closed",!b)};
Vdb=function(a,b,c,d,e){JG.call(this,a,{I:"div",S:"ytp-ad-message-overlay",V:[{I:"div",S:"ytp-ad-message-slot"}]},"ad-message",b,c,d,e);var f=this;this.G=-1;this.C=0;this.ra=!1;this.Ga=this.Ha("ytp-ad-message-slot");this.B=new g.kG({I:"span",S:"ytp-ad-message-container"});this.B.Ja(this.Ga);g.J(this,this.B);this.messageText=new IG(this.api,this.layoutId,this.interactionLoggingClientData,d,"ytp-ad-message-text");g.J(this,this.messageText);this.messageText.Ja(this.B.element);this.D=new g.MG(this.B,
400,!1,100,function(){f.hide()});
g.J(this,this.D);this.hide()};
Wdb=function(a,b){a=a.api.getRootNode();g.Qu(a,"ytp-ad-overlay-open",b);g.Qu(a,"ytp-ad-overlay-closed",!b)};
Xdb=function(a,b,c,d){lG.call(this,a,{I:"div",S:"ytp-ad-underlay-companion",V:[{I:"div",S:"ytp-ad-underlay-side-container",V:[{I:"div",S:"ytp-ad-underlay-image-container"},{I:"div",S:"ytp-ad-underlay-description-container"},{I:"div",S:"ytp-ad-underlay-headline-container"},{I:"div",S:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",b,c,d);this.actionButton=null;this.Ga=this.Ha("ytp-ad-underlay-image-container");this.C=new CG(this.api,this.layoutId,this.interactionLoggingClientData,
this.gb,"ytp-ad-underlay-image");g.J(this,this.C);this.C.Ja(this.Ga);this.ra=this.Ha("ytp-ad-underlay-headline-container");this.B=new IG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-ad-underlay-headline");g.J(this,this.B);this.B.Ja(this.ra);this.W=this.Ha("ytp-ad-underlay-description-container");this.D=new IG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-ad-underlay-description");g.J(this,this.D);this.D.Ja(this.W);this.G=this.Ha("ytp-ad-underlay-action-button-container");
this.j=this.Ha("ytp-ad-underlay-side-container");this.hide()};
Ydb=function(a){var b=g.Me("html5-video-player");b&&g.Qu(b,"ytp-ad-display-override",a)};
h2=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
lG.call(this,a,{I:"div",S:"ytp-ad-survey-answer"},"survey-answer",b,c,d);this.index=e;this.onSelected=f;this.j=null;this.toggledLoggingParams="";this.answer=this.Ha("ytp-ad-survey-answer");this.hide()};
Zdb=function(a,b,c,d){lG.call(this,a,{I:"div",S:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",b,c,d);this.button=null;this.j=this.Ha("ytp-ad-survey-none-of-the-above");this.hide()};
i2=function(a,b,c,d){var e=["ytp-ad-survey-submit-button"];a.U().L("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-submit-button-rounded");vG.call(this,a,b,c,d,e,"survey-submit")};
j2=function(a,b,c,d,e){lG.call(this,a,{I:"div",S:"ytp-ad-survey-player-overlay",V:[{I:"div",S:"ytp-ad-survey-player-overlay-instream-info"},{I:"div",S:"ytp-ad-survey-player-overlay-skip-preview-submit",V:[{I:"div",S:"ytp-ad-survey-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-survey-player-overlay-submit"}]},{I:"div",S:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",b,c,d);this.C=e;this.B=this.j=null;this.D=this.Ha("ytp-ad-survey-player-overlay-instream-info");
this.skipOrPreview=this.Ha("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Ha("ytp-ad-survey-player-overlay-submit");g.J(this,this.C);this.hide()};
k2=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
lG.call(this,a,{I:"div",S:"ytp-ad-survey-question",V:[{I:"div",Ma:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{I:"div",Ma:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{I:"div",Ma:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{I:"div",S:"ytp-ad-survey-question-background"}]},e,b,c,d);this.Ga=f;this.D=null;this.B=[];this.j=null;this.W=this.api.U().experiments.jb("a11y_h5_associate_survey_question");this.question=this.Ha("ytp-ad-survey-question");
this.La=this.Ha("ytp-ad-survey-question-background");this.questionText=this.Ha("ytp-ad-survey-question-text");this.answers=this.Ha("ytp-ad-survey-answers");this.playerOverlay=this.Ha("ytp-ad-survey-question-player-overlay");this.C=g.gb()};
$db=function(a,b){b=g.nG(b);g.qf(a.questionText,b);a.W&&a.questionText.setAttribute("id",aG("survey-question-text"))};
aeb=function(a,b,c,d){d=new h2(a.api,a.layoutId,a.interactionLoggingClientData,a.gb,d,a.Ga);d.Ja(a.answers);d.init(aG("survey-answer"),b,c);a.W&&(b=a.questionText.getAttribute("id"),null!=b&&(null!==d.j?d.j.B.setAttribute("aria-describedby",b):d.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",b)));a.B.push(d)};
ceb=function(a,b){if(b){var c=b.background;c&&g.R(c,beb)&&(c=(c=g.R(c,beb).image)&&BG(c)||"",g.cc(c)?g.LF(Error("Found ThumbnailDetails without valid image URL")):g.Yr(a.La,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.KF(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.gb();a.j=new aH(a.api,b.durationMilliseconds);g.J(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.R(b.instreamAdPlayerOverlay,
vDa))try{var d=new j2(a.api,a.layoutId,a.interactionLoggingClientData,a.gb,a.j);d.Ja(a.playerOverlay);d.init(aG("survey-player-overlay"),g.R(b.instreamAdPlayerOverlay,vDa),a.macros);a.D=d;g.J(a,d);a.KZ()}catch(e){g.KF(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.KF(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new hH(a.api,a.j),b.Ja(a.playerOverlay),
g.J(a,b)):g.KF(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.KF(Error("addCommonComponents() needs to be called before starting countdown."))};
deb=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.gb()-a.C).toString()})};
eeb=function(a,b,c,d,e){k2.call(this,a,b,c,d,"survey-question-multi-select");this.ra=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()};
feb=function(a,b,c){a.noneOfTheAbove=new Zdb(a.api,a.layoutId,a.interactionLoggingClientData,a.gb);a.noneOfTheAbove.Ja(a.answers);a.noneOfTheAbove.init(aG("survey-none-of-the-above"),b,c)};
heb=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)});
geb(a,!0)};
geb=function(a,b){var c=a.D;a=ieb(a);b=void 0===b?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof YG&&!c.j.D&&pwa(c.j,!1));c.B&&(a?c.B.show():c.B.hide())};
ieb=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
l2=function(a,b,c,d,e){k2.call(this,a,b,c,d,"survey-question-single-select",function(h){f.api.U().L("supports_multi_step_on_desktop")&&e([h])});
var f=this;this.hide()};
m2=function(a,b,c,d){lG.call(this,a,{I:"div",S:"ytp-ad-survey",V:[{I:"div",S:"ytp-ad-survey-questions"}]},"survey",b,c,d);this.questions=[];this.B=[];this.conditioningRules=[];this.j=0;this.G=this.Ha("ytp-ad-survey-questions");this.api.U().L("fix_survey_color_contrast_on_destop")&&this.Ha("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().L("web_enable_speedmaster")&&this.Ha("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
leb=function(a,b){var c=a.B[b],d;null==(d=a.C)||d.dispose();g.R(c,kN)?jeb(a,g.R(c,kN),a.macros):g.R(c,jN)&&keb(a,g.R(c,jN),a.macros);a.j=b};
jeb=function(a,b,c){var d=new l2(a.api,a.layoutId,a.interactionLoggingClientData,a.gb,a.D.bind(a));d.Ja(a.G);d.init(aG("survey-question-single-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.J(a,d)};
keb=function(a,b,c){var d=new eeb(a.api,a.layoutId,a.interactionLoggingClientData,a.gb,a.D.bind(a));d.Ja(a.G);d.init(aG("survey-question-multi-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.J(a,d)};
n2=function(a,b,c,d){lG.call(this,a,{I:"div",S:"ytp-ad-survey-interstitial",V:[{I:"div",S:"ytp-ad-survey-interstitial-contents",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo-image"}]},{I:"div",S:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,c,d);this.j=this.actionButton=null;this.interstitial=this.Ha("ytp-ad-survey-interstitial");this.B=this.Ha("ytp-ad-survey-interstitial-contents");this.text=this.Ha("ytp-ad-survey-interstitial-text");
this.logoImage=this.Ha("ytp-ad-survey-interstitial-logo-image");this.transition=new g.MG(this,500,!1,300);g.J(this,this.transition)};
neb=function(a,b){b=b&&BG(b)||"";if(g.cc(b))g.LF(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.We&&10>document.documentMode)c=av;else{var d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=lla(d.style)}b=new g.$d([c,iga(meb,b)].map(Nba).join(""),Ln);a.style.cssText=ae(b)}};
oeb=function(a){var b=g.Me("html5-video-player");b&&g.Qu(b,"ytp-ad-display-override",a)};
o2=function(a,b,c,d,e){JG.call(this,a,{I:"div",S:"ytp-preview-ad",V:[{I:"div",S:"ytp-preview-ad__text"}]},"preview-ad",b,c,d,e);var f=this;this.B=0;this.C=-1;this.G=this.Ha("ytp-preview-ad__text");this.transition=new g.MG(this,400,!1,100,function(){f.hide()},function(){f.show()});
g.J(this,this.transition);this.hide()};
p2=function(a,b,c,d){lG.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()};
peb=function(a){switch(a.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}};
q2=function(a,b,c,d){lG.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()};
reb=function(a){this.content=a.content;if(a.commandRuns){a=g.u(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.R(b,qeb),b.onTap&&(this.interaction={onTap:b.onTap})}};
r2=function(a,b,c,d){lG.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()};
seb=function(a,b,c,d,e){JG.call(this,a,{I:"div",Ma:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{I:"div",S:"ytp-ad-avatar-lockup-card__text_container"}]},"ad-avatar-lockup-card",b,c,d,e);this.B=0;this.adAvatar=new p2(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.J(this,this.adAvatar);mf(this.element,this.adAvatar.element,0);this.headline=new r2(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.J(this,this.headline);this.headline.Ja(this.Ha("ytp-ad-avatar-lockup-card__text_container"));
this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new r2(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.J(this,this.description);this.description.Ja(this.Ha("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new q2(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.J(this,this.adButton);this.adButton.Ja(this.element);this.hide()};
teb=function(a,b,c,d){lG.call(this,a,{I:"button",S:"ytp-skip-ad-button",V:[{I:"div",S:"ytp-skip-ad-button__text"}]},"skip-button",b,c,d);var e=this;this.B=!1;this.D=this.Ha("ytp-skip-ad-button__text");this.transition=new g.MG(this,500,!1,100,function(){e.hide()},function(){e.show()});
g.J(this,this.transition);this.j=new PG(this.element,15E3,5E3,.5,.5);g.J(this,this.j);this.hide()};
ueb=function(a,b,c,d,e){JG.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new o2(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j);g.J(this,this.B);this.B.Ja(this.element);this.C=new teb(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.J(this,this.C);this.C.Ja(this.element);this.hide()};
s2=function(a,b,c,d){lG.call(this,a,{I:"button",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()};
t2=function(a,b,c,d,e){lG.call(this,a,{I:"div",S:"ytp-ad-player-overlay-layout",V:[{I:"div",S:"ytp-ad-player-overlay-layout__player-card-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-info-container"},{I:"div",S:"ytp-ad-player-overlay-layout__skip-or-preview-container"}]},"player-overlay-layout",b,c,d);this.j=e;this.G=this.Ha("ytp-ad-player-overlay-layout__player-card-container");this.B=this.Ha("ytp-ad-player-overlay-layout__ad-info-container");this.D=this.Ha("ytp-ad-player-overlay-layout__skip-or-preview-container");
this.hide()};
u2=function(a,b,c){FG.call(this,a);this.api=a;this.gb=b;this.B={};a=new g.U({I:"div",Ma:["video-ads","ytp-ad-module"]});g.J(this,a);kS&&g.Mu(a.element,"ytp-ads-tiny-mode");this.G=new SE(a.element);g.J(this,this.G);g.GU(this.api,a.element,4);cEa(c)&&(c=new g.U({I:"div",Ma:["ytp-ad-underlay"]}),g.J(this,c),this.C=new SE(c.element),g.J(this,this.C),g.GU(this.api,c.element,0));g.J(this,Lva())};
veb=function(a,b){a=g.jd(a.B,b.id,null);null==a&&g.LF(Error("Component not found for element id: "+b.id));return a||null};
web=function(a){g.RV.call(this,a);var b=this;this.B=null;this.created=!1;this.C=new u1(this.player);this.D=function(){if(null!=b.B)return b.B;var d=Fdb({Aq:a.getVideoData(1)});d=new Acb({Ru:d.S5(),Yk:b2(b.j).Yk,QA:d.j6(),Wn:b2(b.j).Wn,J:b.player,Vj:b2(b.j).Vj,Oa:b.j.j.Oa,zj:b2(b.j).zj,Hd:b.j.j.Hd});b.B=d.I3;return b.B};
this.j=new Edb(this.player,this,this.C,this.D);g.J(this,this.j);var c=a.U();!OJ(c)||g.sS(c)||wS(c)||(g.J(this,new u2(a,b2(this.j).gb,b2(this.j).Vj)),g.J(this,new Gdb(a)))};
xeb=function(a){a.created!==a.loaded&&RG("Created and loaded are out of sync")};
Aeb=function(a){g.RV.prototype.load.call(a);var b=b2(a.j).Vj;try{a.player.getRootNode().classList.add("ad-created")}catch(l){RG(l instanceof Error?l:String(l))}var c=a.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(!a.player.U().experiments.jb("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((null==e?void 0:e.adSlots)||[]).map(function(l){return g.R(l,zDa)});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.Ac();b=yeb(f,h,b,b2(a.j).qt);f=c&&c.clientPlaybackNonce||"";c=c&&c.ev||!1;h=1E3*a.player.getDuration(1);zeb(a);a.j.j.Nt.nk(f,h,c,b.MJ,b.LU,b.MJ,e,d)};
zeb=function(a){var b,c;if(c=!((null==(b=a.player.getVideoData(1))?0:b.ev)||g.IB("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=OJ(b)&&!g.NJ(b)&&"desktop-polymer"===b.playerStyle;c&&(a=SSa(a.player),a.addEventListener("updateKevlarOrC3Companion",zwa),a.addEventListener("updateEngagementPanelAction",Bwa),a.addEventListener("changeEngagementPanelVisibility",Dwa),window.addEventListener("yt-navigate-start",Fwa))};
v2=function(a,b){b===a.hs&&(a.hs=void 0)};
Beb=function(a){var b=b2(a.j).Yc,c=b.B().dO("SLOT_TYPE_PLAYER_BYTES",1);b=b.Wa.get().cf(1).clientPlaybackNonce;var d=!1;c=g.u(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f="SLOT_TYPE_PLAYER_BYTES"===e.slotType&&e.slotEntryTrigger instanceof oM?e.slotEntryTrigger.Or:void 0;f&&f===b&&(d&&RG("More than 1 preroll playerBytes slot detected",e),d=!0)}d||O1(b2(a.j).Rw)};
Ceb=function(a){if(D1(b2(a.j).Vj))return!0;var b="";a=g.u(b2(a.j).zj.Ij.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if("SLOT_TYPE_PLAYER_BYTES"===c.slotType&&"core"===c.Ya)return!0;b+=c.slotType+" "}.01>Math.random()&&RG("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1};
Deb=function(a){a=g.u(b2(a.j).zj.Ij.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
ADa=function(a,b,c,d,e){c=void 0===c?[]:c;d=void 0===d?"":d;e=void 0===e?"":e;var f=b2(a.j).Vj,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.Ac();c=yeb(b,c,f,b2(a.j).qt);EDa(b2(a.j).md,d,c.MJ,c.LU,b,e)};
yeb=function(a,b,c,d){b={MJ:[],LU:b};a=g.u(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer;if(!c.J.U().L("html5_enable_vod_lasr_with_notify_pacf")){var h=void 0,l=void 0,m=void 0,n=void 0,p=d;g.R(null==(n=f.sandwichedLinearAdRenderer)?void 0:n.adVideoStart,CN)?(h=g.R(null==(m=f.sandwichedLinearAdRenderer)?void 0:m.adVideoStart,CN),h=WFa(h,p),g.QF(f.sandwichedLinearAdRenderer.adVideoStart,CN,h)):g.R(null==(l=f.linearAdSequenceRenderer)?void 0:l.adStart,CN)&&
(m=g.R(null==(h=f.linearAdSequenceRenderer)?void 0:h.adStart,CN),h=WFa(m,p),g.QF(f.linearAdSequenceRenderer.adStart,CN,h))}b.MJ.push(e)}return b};
Eeb=function(){if(!g.We)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.w2=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=gma(a);return b.parseFromString(g.de(a),"application/xml")}if(Feb){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.x2=function(a){g.H.call(this);this.callback=a;this.j=new dv(0,0,.4,0,.2,1,1,1);this.delay=new g.Cu(this.next,window,this);g.J(this,this.delay)};
g.Geb=function(a){var b=a.U();return b.Bd&&!b.C&&g.mS(b)?g.DU(a)?(a=a.Qk(),315<=Math.min(a.width,a.height)):!a.Vf():!1};
g.y2=function(a){g.U.call(this,{I:"div",S:"ytp-more-videos-view",Y:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.aL(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.W=this.G=this.j=0;this.title=new g.U({I:"h2",S:"ytp-related-title",ya:"{{title}}"});this.previous=new g.U({I:"button",Ma:["ytp-button","ytp-previous"],Y:{"aria-label":"N\u00e4yt\u00e4 aiemmat videoehdotukset"},V:[g.pG()]});this.N=new g.x2(function(c){b.suggestions.element.scrollLeft=-c});
this.next=new g.U({I:"button",Ma:["ytp-button","ytp-next"],Y:{"aria-label":"N\u00e4yt\u00e4 lis\u00e4\u00e4 videoehdotuksia"},V:[g.qG()]});g.J(this,this.D);this.K=a.U().D;g.J(this,this.title);this.title.Ja(this.element);this.suggestions=new g.U({I:"div",S:"ytp-suggestions"});g.J(this,this.suggestions);this.suggestions.Ja(this.element);g.J(this,this.previous);this.previous.Ja(this.element);this.previous.Ra("click",this.A1,this);g.J(this,this.N);Heb(this);g.J(this,this.next);this.next.Ja(this.element);
this.next.Ra("click",this.z1,this);this.D.T(this.api,"appresize",this.Zb);this.D.T(this.api,"fullscreentoggled",this.Ew);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.Zb(this.api.qb().getPlayerSize());this.onVideoDataChange()};
Heb=function(a){for(var b={Gz:0};16>b.Gz;b={Gz:b.Gz},++b.Gz){var c=new g.U({I:"a",S:"ytp-suggestion-link",Y:{href:"{{link}}",target:a.api.U().W,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",Y:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",ya:"{{title}}"},{I:"div",S:"ytp-suggestion-author",ya:"{{author_and_views}}"},{I:"div",Y:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",
ya:"{{duration}}"}]}]});g.J(a,c);var d=c.Ha("ytp-suggestion-link");g.Yr(d,"transitionDelay",b.Gz/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.Gz;if(a.B){var l=a.suggestionData[h],m=l.sessionData;a.K&&a.api.L("web_player_log_click_before_generating_ve_conversion_params")?(a.api.logClick(a.C[h].element),h=l.Rk(),l={},g.USa(a.api,l,"emb_rel_pause"),h=g.Ml(h,l),g.$U(h,a.api,f)):g.ZU(f,a.api,a.K,m||void 0)&&a.api.Io(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b));
c.Ja(a.suggestions.element);a.C.push(c);a.api.createServerVe(c.element,c)}};
Ieb=function(a){if(a.api.U().L("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.G+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.logVisibility(a.C[b].element,!0)};
g.z2=function(a){var b=a.api.Og()?32:16;b=a.W/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.G+8);g.Qu(a.element,"ytp-scroll-min",0<=b);g.Qu(a.element,"ytp-scroll-max",b<=c)};
Keb=function(a){for(var b=a.suggestionData.length,c=0;c<b;++c){var d=void 0,e=void 0,f=void 0;d=a;var h=d.api.U(),l=d.suggestionData[c],m=d.C[c];f=g.DU(d.api)?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";e=m.Ha("ytp-suggestion-link");g.Yr(e,"display","inline-block");Jeb.test(l.title)&&(m.Ha("ytp-suggestion-title").dir="rtl");Jeb.test(f)&&(m.Ha("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"Live":l.lengthSeconds?g.cH(l.lengthSeconds):
"";var n=l.Rk(g.DU(d.api));if(g.mS(h)&&!h.L("web_player_log_click_before_generating_ve_conversion_params")){var p={};g.nU(d.api,"addEmbedsConversionTrackingParams",[p]);n=g.Ml(n,g.KP(p,"emb_rel_pause"))}h.L("web_player_log_click_before_generating_ve_conversion_params")&&(h=(h=l.sessionData)&&h.itct)&&d.api.setTrackingParams(m.element,h);m.update({author_and_views:f,duration:e,link:n,title:l.title,aria_label:l.ariaLabel||l.title,is_live:l.isLivePlayback,aria_hidden:!!l.ariaLabel,blink_rendering_hack:g.YK||
g.lS?"will-change: opacity":void 0});f=m.Ha("ytp-suggestion-image");d=g.DU(d.api)?l.Wg("hq2.jpg"):l.Wg();f.style.backgroundImage=d?"url("+d+")":""}if(16>b)for(;16>b;++b)c=a.C[b].Ha("ytp-suggestion-link"),g.Yr(c,"display","none");g.z2(a)};
aaa=[];ea="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);ha("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;ea(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});
ha("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]&&ea(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var Leb="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)pa(d,e)&&(a[e]=d[e])}return a};
ha("Object.assign",function(a){return a||Leb});
var faa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},Meb=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=faa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),Neb;
if("function"==typeof Object.setPrototypeOf)Neb=Object.setPrototypeOf;else{var Oeb;a:{var Peb={a:!0},Qeb={};try{Qeb.__proto__=Peb;Oeb=Qeb.a;break a}catch(a){}Oeb=!1}Neb=Oeb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ra=Neb;
ua.prototype.Z=function(a){this.B=a};
ua.prototype.return=function(a){this.C={return:a};this.j=this.G};
ua.prototype.Ka=function(a){this.j=a};
ha("Reflect",function(a){return a?a:{}});
ha("Reflect.construct",function(){return Meb});
ha("Reflect.setPrototypeOf",function(a){return a?a:ra?function(b,c){try{return ra(b,c),!0}catch(d){return!1}}:null});
ha("Promise",function(a){function b(h){this.j=0;this.C=void 0;this.B=[];this.N=!1;var l=this.D();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.B=function(h){if(null==this.j){this.j=[];var l=this;this.C(function(){l.G()})}this.j.push(h)};
var e=g.da.setTimeout;c.prototype.C=function(h){e(h,0)};
c.prototype.G=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.D(n)}}}this.j=null};
c.prototype.D=function(h){this.C(function(){throw h;})};
b.prototype.D=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.Ba),reject:h(this.G)}};
b.prototype.Ba=function(h){if(h===this)this.G(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ga(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.ra(h):this.K(h)}};
b.prototype.ra=function(h){var l=void 0;try{l=h.then}catch(m){this.G(m);return}"function"==typeof l?this.La(l,h):this.K(h)};
b.prototype.G=function(h){this.Z(2,h)};
b.prototype.K=function(h){this.Z(1,h)};
b.prototype.Z=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.C=l;2===this.j&&this.Ea();this.W()};
b.prototype.Ea=function(){var h=this;e(function(){if(h.ma()){var l=g.da.console;"undefined"!==typeof l&&l.error(h.C)}},1)};
b.prototype.ma=function(){if(this.N)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.C;return m(h)};
b.prototype.W=function(){if(null!=this.B){for(var h=0;h<this.B.length;++h)f.B(this.B[h]);this.B=null}};
var f=new c;b.prototype.Ga=function(h){var l=this.D();h.YG(l.resolve,l.reject)};
b.prototype.La=function(h,l){var m=this.D();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(r,t){return"function"==typeof r?function(v){try{n(r(v))}catch(x){p(x)}}:t}
var n,p,q=new b(function(r,t){n=r;p=t});
this.YG(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.YG=function(h,l){function m(){switch(n.j){case 1:h(n.C);break;case 2:l(n.C);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.B?f.B(m):this.B.push(m);this.N=!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.u(h),p=n.next();!p.done;p=n.next())d(p.value).YG(l,m)})};
b.all=function(h){var l=g.u(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(v){return function(x){r[v]=x;t--;0==t&&n(r)}}
var r=[],t=0;do r.push(void 0),t++,d(m.value).YG(q(r.length-1),p),m=l.next();while(!m.done)})};
return b});
ha("Object.setPrototypeOf",function(a){return a||ra});
ha("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.u(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(!pa(m,h)){var n=new c;ea(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(!pa(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&pa(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&pa(m,h)&&pa(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&pa(m,h)&&pa(m[h],this.j)?delete m[h][this.j]:!1};
return b});
ha("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l[1];return daa(function(){if(n){for(;n.head!=l[1];)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[0][n];if(p&&pa(l[0],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[0]={};this[1]=b();this.size=0;if(l){l=g.u(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.u([[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[0][n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this[1],previous:this[1].previous,head:this[1],key:l,value:m},n.list.push(n.entry),this[1].previous.next=n.entry,this[1].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[0][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[0]={};this[1]=this[1].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});
ha("Array.prototype.keys",function(a){return a?a:function(){return Ja(this,function(b){return b})}});
ha("Array.prototype.find",function(a){return a?a:function(b,c){return kaa(this,b,c).w0}});
ha("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ka(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}});
ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ka(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}});
ha("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ha("String.prototype.repeat",function(a){return a?a:function(b){var c=Ka(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}});
ha("Set",function(a){function b(c){this.j=new Map;if(c){c=g.u(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.u([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});
ha("Array.prototype.values",function(a){return a?a:function(){return Ja(this,function(b,c){return c})}});
ha("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}});
ha("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ha("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)pa(b,d)&&c.push(b[d]);return c}});
ha("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ha("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}});
ha("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ka(this,b,"includes").indexOf(b,c||0)}});
ha("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ha("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
ha("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});
ha("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ha("Array.prototype.entries",function(a){return a?a:function(){return Ja(this,function(b,c){return[b,c]})}});
ha("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}});
ha("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}});
ha("Int8Array.prototype.fill",La);ha("Uint8Array.prototype.fill",La);ha("Uint8ClampedArray.prototype.fill",La);ha("Int16Array.prototype.fill",La);ha("Uint16Array.prototype.fill",La);ha("Int32Array.prototype.fill",La);ha("Uint32Array.prototype.fill",La);ha("Float32Array.prototype.fill",La);ha("Float64Array.prototype.fill",La);ha("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)pa(b,d)&&c.push([d,b[d]]);return c}});
ha("globalThis",function(a){return a||g.da});
ha("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}});
ha("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;
})})}});
ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return kaa(this,b,c).i}});
ha("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}});
ha("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.u(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});
ha("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
ha("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ka(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}});
ha("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}});
ha("Int8Array.prototype.copyWithin",Pa);ha("Uint8Array.prototype.copyWithin",Pa);ha("Uint8ClampedArray.prototype.copyWithin",Pa);ha("Int16Array.prototype.copyWithin",Pa);ha("Uint16Array.prototype.copyWithin",Pa);ha("Int32Array.prototype.copyWithin",Pa);ha("Uint32Array.prototype.copyWithin",Pa);ha("Float32Array.prototype.copyWithin",Pa);ha("Float64Array.prototype.copyWithin",Pa);
ha("Math.clz32",function(a){return a?a:function(b){b=Number(b)>>>0;if(0===b)return 32;var c=0;0===(b&4294901760)&&(b<<=16,c+=16);0===(b&4278190080)&&(b<<=8,c+=8);0===(b&4026531840)&&(b<<=4,c+=4);0===(b&3221225472)&&(b<<=2,c+=2);0===(b&2147483648)&&c++;return c}});
ha("Number.parseInt",function(a){return a||parseInt});
ha("String.raw",function(a){return a?a:function(b,c){if(null==b)throw new TypeError("Cannot convert undefined or null to object");for(var d=b.raw,e=d.length,f="",h=0;h<e;++h)f+=d[h],h+1<e&&h+1<arguments.length&&(f+=String(arguments[h+1]));return f}});var Sm,ab,laa;Sm=Sm||{};g.Qa=this||self;ab="closure_uid_"+(1E9*Math.random()>>>0);laa=0;g.k=nb.prototype;g.k.r4=function(a){var b=g.Ia.apply(1,arguments),c=this.HN(b);c?c.push(new oaa(a)):this.i_(a,b)};
g.k.i_=function(a){var b=this.getKey(g.Ia.apply(1,arguments));this.j.set(b,[new oaa(a)])};
g.k.HN=function(){var a=this.getKey(g.Ia.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0};
g.k.W5=function(){var a=this.HN(g.Ia.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.j.clear()};
g.k.getKey=function(){var a=g.Ia.apply(0,arguments);return a?a.join(","):"key"};g.w(pb,nb);pb.prototype.D=function(a){var b=g.Ia.apply(1,arguments),c=0,d=this.W5(b);d&&(c=d.j);this.i_(c+a,b)};g.w(sb,nb);sb.prototype.Ki=function(a){this.r4(a,g.Ia.apply(1,arguments))};g.k=g.H.prototype;g.k.Rx=!1;g.k.isDisposed=function(){return this.Rx};
g.k.dispose=function(){this.Rx||(this.Rx=!0,this.xa())};
g.k.addOnDisposeCallback=function(a,b){this.Rx?void 0!==b?a.call(b):a():(this.Xm||(this.Xm=[]),this.Xm.push(void 0!==b?(0,g.eb)(a,b):a))};
g.k.xa=function(){if(this.Xm)for(;this.Xm.length;)this.Xm.shift()()};g.ib(wb,Error);wb.prototype.name="CustomError";var Wba;g.ib(xb,wb);xb.prototype.name="AssertionError";g.yb.prototype.stopPropagation=function(){this.B=!0};
g.yb.prototype.preventDefault=function(){this.defaultPrevented=!0};var raa,rr,ms;raa=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.Reb=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.Xb=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.bt=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.pr=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};
rr=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Xb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
ms=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.qr=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 ac={};var gba=function(){if(!g.Qa.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var c=function(){};
g.Qa.addEventListener("test",c,b);g.Qa.removeEventListener("test",c,b)}catch(d){}return a}();var Seb=Ta(1,!0),oc=Ta(610401301,!1);Ta(899588437,!1);var Teb=Ta(572417392,!0);Ta(2147483644,!1);Ta(2147483645,!1);Ta(2147483646,Seb);Ta(2147483647,!0);var pc=!!g.Sa("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var ic=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Faa=/&/g,Gaa=/</g,Haa=/>/g,Iaa=/"/g,Jaa=/'/g,Kaa=/\x00/g,Eaa=/[\x00&<>"']/;var qc,Ueb=g.Qa.navigator;qc=Ueb?Ueb.userAgentData||null:null;Jc[" "]=function(){};var Zr,fZ,Zbb,Veb,Web,Xeb,jS,kS,Yeb;g.lS=yc();g.We=zc();g.VD=uc("Edge");g.ES=g.VD||g.We;Zr=uc("Gecko")&&!(hc(g.mc(),"WebKit")&&!uc("Edge"))&&!(uc("Trident")||uc("MSIE"))&&!uc("Edge");g.Pc=hc(g.mc(),"WebKit")&&!uc("Edge");fZ=Ic();Zbb=Raa();g.yC=Qaa();Veb=Gc();Web=uc("iPad");Xeb=uc("iPod");jS=Hc();kS=hc(g.mc(),"KaiOS");
a:{var Zeb="",$eb=function(){var a=g.mc();if(Zr)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.VD)return/Edge\/([\d\.]+)/.exec(a);if(g.We)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Pc)return/WebKit\/(\S+)/.exec(a);if(g.lS)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
$eb&&(Zeb=$eb?$eb[1]:"");if(g.We){var afb=Uaa();if(null!=afb&&afb>parseFloat(Zeb)){Yeb=String(afb);break a}}Yeb=Zeb}var Mc=Yeb,Saa={},bfb;if(g.Qa.document&&g.We){var cfb=Uaa();bfb=cfb?cfb:parseInt(Mc,10)||void 0}else bfb=void 0;var Vaa=bfb;var aXa=Waa("AnimationEnd"),jUa=Waa("TransitionEnd");g.ib(Rc,g.yb);var dfb={2:"touch",3:"pen",4:"mouse"};
Rc.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)?Zr&&(Kc(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.offsetX=g.Pc||void 0!==
a.offsetX?a.offsetX:a.layerX,this.offsetY=g.Pc||void 0!==a.offsetY?a.offsetY:a.layerY,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:dfb[a.pointerType]||"";this.state=a.state;this.timeStamp=a.timeStamp;this.j=a;a.defaultPrevented&&Rc.Lf.preventDefault.call(this)};
Rc.prototype.stopPropagation=function(){Rc.Lf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Rc.prototype.preventDefault=function(){Rc.Lf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Xaa="closure_listenable_"+(1E6*Math.random()|0);var Yaa=0;var dba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=rd.prototype;g.k.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=td(a,b,d,e);-1<h?(b=a[h],c||(b.XG=!1)):(b=new Zaa(b,this.src,f,!!d,e),b.XG=c,a.push(b));return b};
g.k.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=td(e,b,c,d);return-1<b?(Tc(e[b]),g.Gb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
g.k.Jf=function(){var a=0,b;for(b in this.listeners){for(var c=this.listeners[b],d=0;d<c.length;d++)++a,Tc(c[d]);delete this.listeners[b];this.j--}};
g.k.AD=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=td(a,b,c,d));return-1<e?a[e]:null};
g.k.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return g.Zc(this.listeners,function(f){for(var h=0;h<f.length;++h)if(!(c&&f[h].type!=d||e&&f[h].capture!=b))return!0;return!1})};var yd="closure_lm_"+(1E6*Math.random()|0),Bd={},iba=0,Cd="__closure_events_fn_"+(1E9*Math.random()>>>0);g.ib(g.Dd,g.H);g.Dd.prototype[Xaa]=!0;g.k=g.Dd.prototype;g.k.addEventListener=function(a,b,c,d){g.vd(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){kba(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.zQ;if(b){var c=[];for(var d=1;b;b=b.zQ)c.push(b),++d}b=this.n4;d=a.type||a;if("string"===typeof a)a=new g.yb(a,b);else if(a instanceof g.yb)a.target=a.target||b;else{var e=a;a=new g.yb(d,b);g.qd(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&0<=f;f--){var h=a.currentTarget=c[f];e=Ed(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Ed(h,d,!0,a)&&e,a.B||(e=Ed(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f<c.length;f++)h=a.currentTarget=c[f],e=Ed(h,d,!1,a)&&e;return e};
g.k.xa=function(){g.Dd.Lf.xa.call(this);this.Xl&&this.Xl.Jf();this.zQ=null};
g.k.Ra=function(a,b,c,d){return this.Xl.add(String(a),b,!1,c,d)};
g.k.SI=function(a,b,c,d){return this.Xl.add(String(a),b,!0,c,d)};
g.k.Nc=function(a,b,c,d){this.Xl.remove(String(a),b,c,d)};
g.k.AD=function(a,b,c,d){return this.Xl.AD(String(a),b,c,d)};
g.k.hasListener=function(a,b){return this.Xl.hasListener(void 0!==a?String(a):void 0,b)};Fd.prototype.get=function(){if(0<this.B){this.B--;var a=this.j;this.j=a.next;a.next=null}else a=this.C();return a};var bca=g.We||g.Pc;var efb={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 Ld;g.Nd.prototype.Ip=!0;g.Nd.prototype.gm=function(){return this.j};
g.Nd.prototype.toString=function(){return this.j};
var pba={},oba={};Pd("");var rba={};Qd.prototype.toString=function(){return this.j.toString()};
Qd.prototype.gm=function(){return this.j.toString()};g.Rd.prototype.toString=function(){return this.j+""};
g.Rd.prototype.Ip=!0;g.Rd.prototype.gm=function(){return this.j.toString()};
var uba=/%{(\w+)}/g,tba=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),wba={};var zba,Yd;g.Ud.prototype.toString=function(){return this.j.toString()};
g.Ud.prototype.Ip=!0;g.Ud.prototype.gm=function(){return this.j.toString()};
var yba=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,xba=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,ffb;try{new URL("s://g"),ffb=!0}catch(a){ffb=!1}zba=ffb;Yd={};g.be=new g.Ud("about:invalid#zClosurez",Yd);var Ln={};g.$d.prototype.gm=function(){return this.j};
g.$d.prototype.toString=function(){return this.j.toString()};
var av=new g.$d("",Ln),Dba=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Cba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Bba=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"),Eba=/\/\*/;var Mba={};g.ce.prototype.gm=function(){return this.j.toString()};
g.ce.prototype.toString=function(){return this.j.toString()};
var gfb=/^[a-zA-Z0-9-]+$/,hfb={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},ifb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Jba=new g.ce(g.Qa.trustedTypes&&g.Qa.trustedTypes.emptyHTML||"",Mba);var Oba=Id(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.de(Jba);return!b.parentElement});g.k=g.le.prototype;g.k.clone=function(){return new g.le(this.x,this.y)};
g.k.equals=function(a){return a instanceof g.le&&me(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.ne.prototype;g.k.clone=function(){return new g.ne(this.width,this.height)};
g.k.area=function(){return this.width*this.height};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!this.area()};
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.jfb=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Xba={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.Fb=function(a){return Ie(this.j,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Ha=function(a){return g.Me(a,this.j)};
g.k.createElement=function(a){return Ye(this.j,a)};
g.k.appendChild=g.kf;g.k.append=function(a,b){aca(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.nf;g.k.contains=g.pf;var Bf;Ef.prototype.add=function(a,b){var c=hca.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c};
Ef.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.B=null),a.next=null);return a};
var hca=new Fd(function(){return new Ff},function(a){return a.reset()});
Ff.prototype.set=function(a,b){this.Ls=a;this.scope=b;this.next=null};
Ff.prototype.reset=function(){this.next=this.scope=this.Ls=null};var Gf,Hf=!1,fca=new Ef;ica.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1};
var jca=new Fd(function(){return new ica},function(a){a.reset()});
g.Kf.prototype.then=function(a,b,c){return tca(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.Kf.prototype.$goog_Thenable=!0;g.k=g.Kf.prototype;g.k.Al=function(a,b){return tca(this,null,a,b)};
g.k.catch=g.Kf.prototype.Al;g.k.cancel=function(a){if(0==this.j){var b=new Zf(a);g.If(function(){pca(this,b)},this)}};
g.k.hca=function(a){this.j=0;Jf(this,2,a)};
g.k.ica=function(a){this.j=0;Jf(this,3,a)};
g.k.F5=function(){for(var a;a=qca(this);)rca(this,a,this.j,this.N);this.K=!1};
var xca=Df;g.ib(Zf,wb);Zf.prototype.name="cancel";g.ib(g.$f,g.Dd);g.k=g.$f.prototype;g.k.enabled=!1;g.k.fd=null;g.k.setInterval=function(a){this.Yi=a;this.fd&&this.enabled?(this.stop(),this.start()):this.fd&&this.stop()};
g.k.Rba=function(){if(this.enabled){var a=g.gb()-this.HX;0<a&&a<.8*this.Yi?this.fd=this.YF.setTimeout(this.YU,this.Yi-a):(this.fd&&(this.YF.clearTimeout(this.fd),this.fd=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.fd||(this.fd=this.YF.setTimeout(this.YU,this.Yi),this.HX=g.gb())};
g.k.stop=function(){this.enabled=!1;this.fd&&(this.YF.clearTimeout(this.fd),this.fd=null)};
g.k.xa=function(){g.$f.Lf.xa.call(this);this.stop();delete this.YF};g.w(g.cg,g.H);g.k=g.cg.prototype;g.k.sendIsolatedPayload=function(a){this.G=a;this.D=1};
g.k.Sx=function(){var a=this.B.values();a=[].concat(g.oa(a)).filter(function(b){return b.j.size});
a.length&&this.N.flush(a,this.G);Aca(a);this.C=0;this.j.enabled&&this.j.stop()};
g.k.Fk=function(a){var b=g.Ia.apply(1,arguments);this.B.has(a)||this.B.set(a,new pb(a,b))};
g.k.KG=function(a){var b=g.Ia.apply(1,arguments);this.B.has(a)||this.B.set(a,new sb(a,b))};
g.k.Ol=function(a){this.DL.apply(this,[a,1].concat(g.oa(g.Ia.apply(1,arguments))))};
g.k.DL=function(a,b){var c=g.Ia.apply(2,arguments),d=zca(this,a);d&&d instanceof pb&&(d.D(b,c),yca(this))};
g.k.Ki=function(a,b){var c=g.Ia.apply(2,arguments),d=zca(this,a);d&&d instanceof sb&&(d.Ki(b,c),yca(this))};Bca.prototype.Ki=function(a,b,c,d,e){this.j.Ki("/client_streamz/po/w/rl",a,b,c,d,e)};
Cca.prototype.Ki=function(a,b,c){this.j.Ki("/client_streamz/po/w/el",a,b,c)};var gh=void 0,fh,pda="undefined"!==typeof TextDecoder,Kca,Jca="function"===typeof String.prototype.j,Ica="undefined"!==typeof TextEncoder;var vC,wC;g.MR=Bc();vC=Gc()||uc("iPod");wC=uc("iPad");g.yPa=Maa();g.YK=Cc();g.zD=Ec()&&!Hc();var Pca={},sg=null,Qca=Zr||g.Pc||"function"==typeof g.Qa.btoa;var Zca="undefined"!==typeof Uint8Array,Tca=!g.We&&"function"===typeof btoa,Xca=/[-_.]/g,Vca={"-":"+",_:"/",".":"="},$ca,vg={};var bda;wg.prototype.isEmpty=function(){return null==this.Ud};
wg.prototype.sizeBytes=function(){var a=yg(this);return a?a.length:0};var vea=!Teb,uea=!Teb;var lda="function"===typeof Uint8Array.prototype.slice,Eg=0,Fg=0,Nea;g.k=jda.prototype;g.k.init=function(a,b,c,d){d=void 0===d?{}:d;this.LG=void 0===d.LG?!1:d.LG;a&&(a=Bg(a),this.B=a.buffer,this.G=a.Vv,this.D=b||0,this.C=void 0!==c?this.D+c:this.B.length,this.j=this.D)};
g.k.free=function(){this.clear();100>bh.length&&bh.push(this)};
g.k.clear=function(){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.LG=!1};
g.k.reset=function(){this.j=this.D};
g.k.advance=function(a){Vg(this,this.j+a)};
var bh=[];ch.prototype.free=function(){this.j.clear();this.B=this.D=-1;100>A2.length&&A2.push(this)};
ch.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1};
ch.prototype.advance=function(a){this.j.advance(a)};
var A2=[];var sda,vda;ih.prototype.length=function(){return this.j.length};
ih.prototype.end=function(){var a=this.j;this.j=[];return a};var B2;B2="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;Math.max.apply(Math,g.oa(Object.values({QGa:1,KGa:2,BGa:4,XVa:8,WVa:16,oSa:32,Ara:64,x$a:128,GDa:256,DDa:512,LGa:1024,hDa:2048,r7a:4096,iDa:8192})));var Mh=B2?function(a,b){a[B2]|=b}:function(a,b){void 0!==a.En?a.En|=b:Object.defineProperties(a,{En:{value:b,
configurable:!0,writable:!0,enumerable:!1}})},ij=B2?function(a,b){a[B2]&=~b}:function(a,b){void 0!==a.En&&(a.En&=~b)},Jh=B2?function(a){return a[B2]|0}:function(a){return a.En|0},$i=B2?function(a){return a[B2]}:function(a){return a.En},Kh=B2?function(a,b){a[B2]=b}:function(a,b){void 0!==a.En?a.En=b:Object.defineProperties(a,{En:{value:b,
configurable:!0,writable:!0,enumerable:!1}})};var Ci={},Eda={},kfb,Zda=!Teb,hj,lfb=[];Kh(lfb,55);hj=Object.freeze(lfb);var Th,Hi;Object.freeze(new function(){});
Object.freeze(new function(){});var Mda=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Di,Fi,Wda;g.k=Q.prototype;g.k.toJSON=function(){if(kfb)var a=Ak(this,this.ea,!1);else a=Zi(this.ea,bea,void 0,void 0,!1,!1),a=Ak(this,a,!0);return a};
g.k.Hj=function(){kfb=!0;try{return JSON.stringify(this.toJSON(),Yda)}finally{kfb=!1}};
g.k.clone=function(){var a=this.ea;return Ei(this.constructor,aj(a,$i(a),!1))};
g.k.Vv=function(){return!!(Jh(this.ea)&2)};
g.k.fJ=Ci;g.k.toString=function(){return Ak(this,this.ea,!1).toString()};var yea=Symbol(),Dk,Ek,Gk=Symbol(),Fea=Symbol(),Jk=Symbol(),Kk=Symbol(),mfb=Lk(function(a,b,c){if(1!==a.B)return!1;Nk(b,c,$g(a.j));return!0},Ok),nfb=Lk(function(a,b,c){if(1!==a.B)return!1;
a=$g(a.j);Nk(b,c,0===a?void 0:a);return!0},Ok),ofb=Lk(function(a,b,c,d){if(1!==a.B)return!1;
Fj(b,c,d,$g(a.j));return!0},Ok),pfb=Lk(function(a,b,c){if(0!==a.B)return!1;
Nk(b,c,Wg(a.j));return!0},Pk),qfb=Lk(function(a,b,c){if(0!==a.B)return!1;
a=Wg(a.j);Nk(b,c,0===a?void 0:a);return!0},Pk),rfb=Lk(function(a,b,c,d){if(0!==a.B)return!1;
Fj(b,c,d,Wg(a.j));return!0},Pk),sfb=Lk(function(a,b,c){if(0!==a.B)return!1;
Nk(b,c,Xg(a.j));return!0},Qk),tfb=Lk(function(a,b,c){if(0!==a.B)return!1;
a=Xg(a.j);Nk(b,c,0===a?void 0:a);return!0},Qk),ufb=Lk(function(a,b,c,d){if(0!==a.B)return!1;
Fj(b,c,d,Xg(a.j));return!0},Qk),vfb=Lk(function(a,b,c){if(1!==a.B)return!1;
Nk(b,c,Zg(a.j));return!0},function(a,b,c){Ada(a,c,Tda(b))}),wfb=Mk(function(a,b,c){if(1!==a.B&&2!==a.B)return!1;
b=jj(b,$i(b),c,2,!1);if(2==a.B)for(c=Xg(a.j)>>>0,c=a.j.j+c;a.j.j<c;)b.push(Zg(a.j));else b.push(Zg(a.j));return!0},function(a,b,c){b=Bk(Tda,b,!1);
if(null!=b)for(var d=0;d<b.length;d++)Ada(a,c,b[d])}),xfb=Lk(function(a,b,c){if(0!==a.B)return!1;
Nk(b,c,ah(a.j));return!0},Oea),yfb=Lk(function(a,b,c,d){if(0!==a.B)return!1;
Fj(b,c,d,ah(a.j));return!0},Oea),C2=Lk(function(a,b,c){if(2!==a.B)return!1;
Nk(b,c,hh(a));return!0},Pea),zfb=Mk(function(a,b,c){if(2!==a.B)return!1;
a=hh(a);Bj(b,c,iea,a);return!0},function(a,b,c){b=Bk(Ai,b,!0);
if(null!=b)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];null!=h&&Gh(e,f,Lca(h))}}),Afb=Lk(function(a,b,c,d){if(2!==a.B)return!1;
Fj(b,c,d,hh(a));return!0},Pea),wea=new Hh(function(a,b,c,d,e){if(2!==a.B)return!1;
eh(a,Hj(b,d,c,!0),e);return!0},Rk,!1,!0),Eea=new Hh(function(a,b,c,d,e){if(2!==a.B)return!1;
eh(a,Hj(b,d,c),e);return!0},Rk,!1,!0),D2;
D2=new Hh(function(a,b,c,d,e){if(2!==a.B)return!1;d=M(void 0,d[0],d[1]);var f=$i(b);Sh(f);var h=jj(b,f,c,3);f=$i(b);Jh(h)&4&&(h=Ih(h),Kh(h,(Jh(h)|1)&-2079),ej(b,f,c,h));h.push(d);eh(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Rk(a,b[f],c,d,e)},!0,!0);
var E2=new Hh(function(a,b,c,d,e,f){if(2!==a.B)return!1;var h=$i(b);Sh(h);(f=Dj(b,h,f))&&c!==f&&ej(b,h,f);b=Hj(b,d,c);eh(a,b,e);return!0},Rk,!1,!0),Bfb=Lk(function(a,b,c){if(2!==a.B)return!1;
Nk(b,c,qda(a));return!0},function(a,b,c){b=Uda(b);
null!=b&&Gh(a,c,Bg(b).buffer)}),Cfb=Mk(function(a,b,c){if(2!==a.B)return!1;
a=qda(a);Bj(b,c,iea,a);return!0},function(a,b,c){b=Bk(Uda,b,!1);
if(null!=b)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];null!=h&&Gh(e,f,Bg(h).buffer)}}),F2=Lk(function(a,b,c){if(0!==a.B)return!1;
Nk(b,c,Xg(a.j)>>>0);return!0},function(a,b,c){b=ri(b);
null!=b&&null!=b&&(Fh(a,c,0),Ch(a.j,b))}),Dfb=Lk(function(a,b,c){if(0!==a.B)return!1;
Nk(b,c,Xg(a.j));return!0},function(a,b,c){b=qi(b);
null!=b&&(b=parseInt(b,10),Fh(a,c,0),yda(a.j,b))});g.w(Tk,Q);Tk.yb=[1,2,3,4];g.w(Uk,Q);var sl=[1,2,3],Efb=[0,sl,Afb,ufb,yfb];var Ffb=[0,D2,[0,mfb,pfb]];g.w(Vk,Q);var rl=[1,2,3],Gfb=[0,rl,rfb,ofb,E2,Ffb];g.w(Wk,Q);Wk.yb=[1];var Hfb=[0,D2,Efb,Gfb];var Ifb=[0,[1,2,3],E2,[0,C2,-1,xfb],E2,[0,C2,-1,sfb,xfb],E2,[0,C2]];g.w(Xk,Q);Xk.prototype.yp=function(){var a=nea(this,3,3,void 0,!0);Gda(a);return a[void 0]};
Xk.yb=[3,6,4];Xk.prototype.j=Qea([0,C2,Ifb,zfb,D2,Hfb,vfb,wfb]);g.w(ql,Q);ql.yb=[1];var Xea={};g.k=tl.prototype;g.k.isEnabled=function(){if(!g.Qa.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{UI: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.rkb;d=c.cba||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.UI}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=ic(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,"",{UI:0,path:b,domain:c});return d};
g.k.Ap=function(){return ul(this).keys};
g.k.hm=function(){return ul(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=ul(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var nC=new tl("undefined"==typeof document?null:document);g.w(wl,Q);wl.yb=[2];g.w(xl,g.Dd);xl.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
xl.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())};
xl.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
xl.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b<.8*this.intervalMs?this.timer=setTimeout(function(){a.tick()},this.intervalMs-b):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};g.w(yl,Q);g.w(zl,Q);g.Al.prototype.B=0;g.Al.prototype.reset=function(){this.j=this.C=this.D;this.B=0};
g.Al.prototype.getValue=function(){return this.C};var El=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),gfa=/#|$/,hfa=/[?&]($|#)/;g.w(wm,Q);wm.prototype.hO=function(){return oi(dj(this,1))};g.w(xm,Q);xm.yb=[1];g.w(ym,Q);var qfa=["platform","platformVersion","architecture","model","uaFullVersion"];new xm;g.w(zm,Q);g.w(Am,Q);Am.yb=[1,2,3,4,5];g.w(Bm,Q);g.w(Cm,Q);Cm.prototype.L=function(){return gj(this,Am,7)};
Cm.prototype.SC=function(){return fj(this,16)};
Cm.yb=[3,20,27];g.w(Dm,Q);Dm.prototype.FF=function(a){return O(this,2,a)};
Dm.yb=[3,5];g.w(Em,Q);var Jfb=Sk(Em);Em.yb=[5,6];g.w(jfa,Q);var G2;G2=new function(a,b,c){this.B=a;this.fieldName=b;this.j=c;this.isRepeated=0;this.C=g.Ij;this.defaultValue=void 0}(175237375,{Gjb:0},jfa);g.w(Hm,g.H);g.k=Hm.prototype;g.k.xa=function(){this.xN();this.j.stop();this.W.stop();g.H.prototype.xa.call(this)};
g.k.dispatch=function(a){if(a instanceof Cm)this.log(a);else{var b=new Cm;a=a.Hj();b=N(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.Qa++;a=Yj(a,21,b);this.componentId&&N(a,26,this.componentId);if(!mea(a)){var c=Date.now();b=a;c=Number.isFinite(c)?c.toString():"0";fj(b,1,ui(c))}null!=Nj(a,15)||Yj(a,15,60*(new Date).getTimezoneOffset());this.experimentIds&&(b=a,c=this.experimentIds.clone(),Jj(b,wl,16,c));b=this.B.length-1E3+1;0<b&&(this.B.splice(0,b),this.D+=b);this.B.push(a);this.YC||this.j.enabled||this.j.start()};
g.k.flush=function(a,b){var c=this;if(0===this.B.length)a&&a();else if(this.Z)Lm(this.C,3),ofa(this);else{var d=Date.now();if(this.Na>d&&this.Ea<d)b&&b("throttled");else{this.network&&("function"===typeof this.network.hO?Lm(this.C,this.network.hO()):Lm(this.C,0));var e=this.C.build(this.B,this.D,this.K,this.ZA,this.Ba,this.ra);d={};var f=this.lz();f&&(d.Authorization=f);var h=lfa(this);this.sessionIndex&&(d["X-Goog-AuthUser"]=this.sessionIndex,h=Nl(h,"authuser",this.sessionIndex));this.pageId&&(d["X-Goog-PageId"]=
this.pageId,h=Nl(h,"pageId",this.pageId));if(f&&this.La===f)b&&b("stale-auth-token");else{this.B=[];this.j.enabled&&this.j.stop();this.D=0;var l=e.Hj(),m;this.N&&this.N.isSupported(l.length)&&(m=this.N.compress(l));var n={url:h,body:l,J4:1,bx:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(t){c.G.reset();c.j.setInterval(c.G.getValue());if(t){var v=null;try{var x=JSON.stringify(JSON.parse(t.replace(")]}'\n","")));v=Jfb(x)}catch(B){}v&&(t=Number,
x="-1",x=void 0===x?"0":x,x=Pj(mea(v),x),t=t(x),0<t&&(c.Ea=Date.now(),c.Na=c.Ea+t),v=G2.j?G2.C(v,G2.j,G2.B,!0):G2.C(v,G2.B,null,!0),v=null===v?void 0:v)&&(v=Qj(v,1,-1),-1!==v&&(c.Ga||mfa(c,v)))}a&&a();c.K=0},q=function(t,v){var x=lea(e,Cm);
var B=Nj(e,14);g.Bl(c.G);c.j.setInterval(c.G.getValue());401===t&&f&&(c.La=f);B&&(c.D+=B);void 0===v&&(v=c.isRetryable(t));v&&(c.B=x.concat(c.B),c.YC||c.j.enabled||c.j.start());b&&b("net-send-failed",t);++c.K},r=function(){c.network&&c.network.send(n,p,q)};
m?m.then(function(t){n.bx["Content-Encoding"]="gzip";n.bx["Content-Type"]="application/binary";n.body=t;n.J4=2;r()},function(){r()}):r()}}}};
g.k.xN=function(){pfa(this.C,!0);this.flush();pfa(this.C,!1)};
g.k.isRetryable=function(a){return 500<=a&&600>a||401===a||0===a};
Fm.prototype.FF=function(a){this.j.FF(a);return this};
Fm.prototype.build=function(a,b,c,d,e,f){b=void 0===b?0:b;e=void 0===e?0:e;f=void 0===f?0:f;c=void 0===c?0:c;if(gj(Jm(this),ym,11)){var h=Km(this);Wj(h,3,c)}gj(Jm(this),ym,11)&&(c=Km(this),Wj(c,4,e));gj(Jm(this),ym,11)&&(e=Km(this),Wj(e,5,f));f=this.j.clone();e=Date.now().toString();f=fj(f,4,ui(e));a=Lj(f,Cm,3,a);d&&(f=new yl,d=Wj(f,13,d),f=new zl,d=Jj(f,yl,2,d),f=new Bm,d=Jj(f,zl,1,d),d=O(d,2,9),Jj(a,Bm,18,d));b&&Yj(a,14,b);return a};sfa.prototype.Hj=function(a){var b=[];Nm(this,a,b);return b.join("")};
var vfa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ufa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Om.prototype.C=null;Om.prototype.getOptions=function(){return this.C||(this.C=this.D())};var Kfb;g.ib(Pm,Om);Pm.prototype.j=function(){var a=xfa(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Pm.prototype.D=function(){var a={};xfa(this)&&(a[0]=!0,a[1]=!0);return a};
Kfb=new Pm;g.ib(g.Qm,g.Dd);var Ffa=/^https?$/i,Lfb=["POST","PUT"],yfa=[];g.k=g.Qm.prototype;g.k.R4=function(){this.dispose();g.Hb(yfa,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.ma+"; newUri="+a);b=b?b.toUpperCase():"GET";this.ma=a;this.D="";this.B=0;this.Ea=!1;this.C=!0;this.j=this.Z?this.Z.j():Kfb.j();this.Ba=this.Z?this.Z.getOptions():Kfb.getOptions();this.j.onreadystatechange=(0,g.eb)(this.XY,this);try{this.getStatus(),this.Ga=!0,this.j.open(b,String(a),!0),this.Ga=!1}catch(h){this.getStatus();Cfa(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.u(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.Qa.FormData&&a instanceof g.Qa.FormData;!g.Fb(Lfb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.u(c);for(d=b.next();!d.done;d=b.next())c=g.u(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.La&&(this.j.responseType=this.La);"withCredentials"in this.j&&this.j.withCredentials!==this.K&&(this.j.withCredentials=this.K);try{Efa(this),0<this.N&&(this.Na=Afa(this.j),this.getStatus(),this.Na?(this.j.timeout=this.N,this.j.ontimeout=(0,g.eb)(this.oT,
this)):this.ra=g.ag(this.oT,this.N,this)),this.getStatus(),this.W=!0,this.j.send(a),this.W=!1}catch(h){this.getStatus(),Cfa(this,h)}};
g.k.oT=function(){"undefined"!=typeof Sm&&this.j&&(this.D="Timed out after "+this.N+"ms, aborting",this.B=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.G=!0,this.j.abort(),this.G=!1,this.B=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Rm(this))};
g.k.xa=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),Rm(this,!0));g.Qm.Lf.xa.call(this)};
g.k.XY=function(){this.isDisposed()||(this.Ga||this.W||this.G?Dfa(this):this.S9())};
g.k.S9=function(){Dfa(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.Tm(this)};
g.k.getStatus=function(){try{return 2<g.Tm(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)};Ym.prototype.send=function(a,b,c){b=void 0===b?function(){}:b;
c=void 0===c?function(){}:c;
zfa(a.url,function(d){d=d.target;Um(d)?b(g.Vm(d)):c(d.getStatus())},a.requestType,a.body,a.bx,a.timeoutMillis,a.withCredentials)};
Ym.prototype.hO=function(){return 1};g.w(Zm,g.H);Zm.prototype.CV=function(){this.W=!0;return this};
Zm.prototype.build=function(){var a=new Hm({logSource:this.logSource,lz:this.lz?this.lz:$ea,sessionIndex:this.sessionIndex,rca:this.B,Rz:this.C,YC:!1,CV:this.W,pageId:this.pageId,UU:this.UU,network:this.network?this.network:void 0});g.J(this,a);this.G&&Gm(a.C,this.G);if(this.j){var b=this.j,c=Im(a.C);N(c,7,b)}this.D&&(a.N=this.D);this.componentId&&(a.componentId=this.componentId);this.ZA&&(a.ZA=this.ZA);this.SC&&((c=this.SC)?(a.experimentIds||(a.experimentIds=new wl),b=a.experimentIds,c=c.Hj(),N(b,
4,c)):a.experimentIds&&fj(a.experimentIds,4));this.N&&(b=this.N,a.experimentIds||(a.experimentIds=new wl),oj(a.experimentIds,2,b,pea));this.K&&(b=this.K,a.Ga=!0,mfa(a,b));this.Z&&rfa(a.C,this.Z);this.network.FF&&this.network.FF(this.logSource);this.network.tba&&this.network.tba(a);return a};g.w(sn,g.H);sn.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new ql,c=[],d=0;d<a.length;d++){var e=a[d],f=g.Rea(e);c.push(f);e.clear()}Lj(b,Xk,1,c);this.j.dispatch(b);this.j.flush()}};g.w(un,Error);un.prototype.toString=function(){var a="RpcError("+(Hfa(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};
un.prototype.name="RpcError";wn.prototype.done=function(){this.logger.UX(this.j,vn()-this.startMillis)};
g.k=Ifa.prototype;g.k.uw=function(){};
g.k.UX=function(){};
g.k.lP=function(a,b,c){return c};
g.k.TX=function(){};
g.k.qw=function(){};
g.k.mE=function(){};
g.k=Jfa.prototype;g.k.uw=function(a){this.clientError.j.Ol("/client_streamz/po/w/cec",a,this.bj)};
g.k.UX=function(a,b){this.D.Ki(b,a,this.bj)};
g.k.lP=function(a,b,c){function d(h){var l=vn()-f;e.G.Ki(l,a,b,h,e.bj)}
var e=this,f=vn();c.then(function(){d(0)},function(h){h instanceof un?d(h.code):d(-1)});
return c};
g.k.TX=function(a){this.C.j.Ol("/client_streamz/po/w/csc",a,this.bj)};
g.k.qw=function(a){this.B.j.Ol("/client_streamz/po/w/ctav",a,this.bj)};
g.k.mE=function(a){this.j.j.Ol("/client_streamz/po/w/cwsc",a,this.bj)};var Mfb,Lfa=null!=(Mfb=Math.imul)?Mfb:function(a,b){return a*b|0};
yn.prototype.Hj=function(){return String(this.j)+","+this.B.join()};
yn.prototype.rh=function(a,b){var c=void 0;if(this.B[this.j]!==a){var d=this.B.indexOf(a);-1!==d?(this.B.splice(d,1),d<this.j&&this.j--,this.B.splice(this.j,0,a)):(c=this.B[this.j],this.B[this.j]=a)}this.j=(this.j+1)%this.maxItems;a=Kfa("iU5q-!O9@$",this.Hj());c&&a&&b(c);return a};
var zn=[196,200,224,18];Ufa.prototype.Ki=function(a,b,c){this.j.Ki("/client_streamz/bg/fil",a,b,c)};
Wfa.prototype.Ki=function(a,b,c){this.j.Ki("/client_streamz/bg/fsl",a,b,c)};var Yfa={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.w(aga,Q);g.w(cga,Q);g.w(Dn,Q);var sga=Sk(Dn);Fn.prototype.snapshot=function(a){var b=this;if(this.j)throw Error("Already disposed");var c=Cn(),d;null!=(d=this.Pj)&&d.K.j.Ol("/client_streamz/bg/fsc",d.C,d.j);return this.B.then(function(e){var f=e.F4;return new Promise(function(h){f(function(l){var m;null!=(m=b.Pj)&&m.N.Ki(Cn()-c,m.C,m.j);h(l)},[a.uv,
a.zba,a.B0])})})};
Fn.prototype.v_=function(a){if(this.j)throw Error("Already disposed");var b=Cn(),c;null!=(c=this.Pj)&&c.K.j.Ol("/client_streamz/bg/fsc",c.C,c.j);a=this.C([a.uv,a.zba,a.B0]);var d;null!=(d=this.Pj)&&d.N.Ki(Cn()-b,d.C,d.j);return a};
Fn.prototype.dispose=function(){var a;null!=(a=this.Pj)&&a.B.Sx();this.j=!0;this.B.then(function(b){(b=b.xba)&&b()})};
Fn.prototype.isDisposed=function(){return this.j};var rsa={};g.w(Gn,dga);Gn.prototype.toString=function(){return this.j};var KXa=In("tel"),IXa=In("sms"),ega=[In("data"),In("http"),In("https"),In("mailto"),In("ftp"),new Hn(function(a){return/^[^:]*([/?#]|$)/.test(a)})],gga="function"===typeof URL;var rga=ia([""]);g.w(Tn,Q);g.w(Un,Q);g.w(Vn,Q);Wn.prototype.jD=function(a,b){var c=this,d,e,f,h,l;return g.Ha(function(m){if(1==m.j){var n=new Tn;d=xk(n,1,c.bj);a&&xk(d,2,a);b&&xk(d,3,b);e=c.j();return g.z(m,c.client.create(d,e),2)}f=m.B;h=zg(nj(f,2));if(h.length)return m.return(tga(h));l=g.Ij(f,Dn,1);if(!l)throw Error("Missing field");return m.return(l)})};
Wn.prototype.SV=function(a){var b=this,c,d;return g.Ha(function(e){c=b.j();var f=new Un;f=xk(f,1,b.bj);d=xk(f,2,a);f=e.return;var h=b.client;h=op(h.j,h.B+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Nfb);return f.call(e,h)})};
Wn.prototype.ping=function(a,b){var c=this,d,e;return g.Ha(function(f){d=c.j();e=b||new Vn;var h=N(e,1,c.bj);N(h,2,a);return g.z(f,c.client.ping(e,d),0)})};g.w(Xn,Q);var Ofb=Sk(Xn);Yn.prototype.XH=function(){return this.C};
Yn.prototype.getMetadata=function(){return this.B};Zn.prototype.getMetadata=function(){return this.j};
Zn.prototype.XH=function(){return this.B};
Zn.prototype.getStatus=function(){return null};$n.prototype.getName=function(){return this.name};
$n.prototype.getName=$n.prototype.getName;var Pfb=new $n("/google.internal.waa.v1.Waa/Create",Tn,Xn,function(a){return a.Hj()},Ofb);g.w(ao,Q);var Qfb=Sk(ao);var Nfb=new $n("/google.internal.waa.v1.Waa/GenerateIT",Un,ao,function(a){return a.Hj()},Qfb);g.w(bo,Q);var Rfb=new $n("/google.internal.waa.v1.Waa/Ping",Vn,bo,function(a){return a.Hj()},Sk(bo));var Sga=Promise;g.w(co,Q);co.prototype.getValue=function(){var a=dj(this,2);if(Array.isArray(a)||a instanceof Q)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return nj(this,2)};g.w(eo,Q);eo.prototype.getMessage=function(){return g.Tj(this,2)};
var zga=Sk(eo);eo.yb=[3];fo.prototype.on=function(a,b){"data"==a?this.C.push(b):"metadata"==a?this.G.push(b):"status"==a?this.K.push(b):"end"==a?this.D.push(b):"error"==a&&this.B.push(b);return this};
fo.prototype.removeListener=function(a,b){"data"==a?jo(this.C,b):"metadata"==a?jo(this.G,b):"status"==a?jo(this.K,b):"end"==a?jo(this.D,b):"error"==a&&jo(this.B,b);return this};
fo.prototype.cancel=function(){this.j.abort()};
fo.prototype.cancel=fo.prototype.cancel;fo.prototype.removeListener=fo.prototype.removeListener;fo.prototype.on=fo.prototype.on;g.ib(g.ko,Om);g.ko.prototype.j=function(){var a=new lo(this.K,this.G);this.B&&a.setCredentialsMode(this.B);return a};
g.ko.prototype.D=Gd({});g.ko.prototype.setCredentialsMode=function(a){this.B=a};
g.ib(lo,g.Dd);g.k=lo.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.ma=a;this.W=b;this.readyState=1;mo(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.ma,credentials:this.G,cache:void 0};a&&(b.body=a);(this.ra||g.Qa).fetch(new Request(this.W,b)).then(this.Q6.bind(this),this.pI.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,no(this));this.readyState=0};
g.k.Q6=function(a){if(this.j&&(this.D=a,this.B||(this.status=this.D.status,this.statusText=this.D.statusText,this.B=a.headers,this.readyState=2,mo(this)),this.j&&(this.readyState=3,mo(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.O6.bind(this),this.pI.bind(this));else if("undefined"!==typeof g.Qa.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.N=new TextDecoder;Aga(this)}else a.text().then(this.P6.bind(this),this.pI.bind(this))};
g.k.F6=function(a){if(this.j){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.N.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?no(this):mo(this);3==this.readyState&&Aga(this)}};
g.k.P6=function(a){this.j&&(this.response=this.responseText=a,no(this))};
g.k.O6=function(a){this.j&&(this.response=a,no(this))};
g.k.pI=function(){this.j&&no(this)};
g.k.setRequestHeader=function(a,b){this.Z.append(a,b)};
g.k.getResponseHeader=function(a){return this.B?this.B.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.B)return"";for(var a=[],b=this.B.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.G=a};
Object.defineProperty(lo.prototype,"withCredentials",{get:function(){return"include"===this.G},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.po.prototype.toString=function(){var a=[],b=this.G;b&&a.push(wo(b,Sfb,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.Z)&&a.push(wo(b,Sfb,!0),"@"),a.push(g.pe(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.C)this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(wo(c,"/"==c.charAt(0)?Tfb:Ufb,!0));(c=this.B.toString())&&a.push("?",c);(c=this.K)&&a.push("#",wo(c,Vfb));return a.join("")};
g.po.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.qo(b,a.G):c=!!a.Z;c?b.Z=a.Z:c=!!a.j;c?g.ro(b,a.j):c=null!=a.D;var d=a.C;if(c)g.so(b,a.D);else if(c=!!a.C){if("/"!=d.charAt(0))if(this.j&&!this.C)d="/"+d;else{var e=b.C.lastIndexOf("/");-1!=e&&(d=b.C.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.fc(e,"./")||g.fc(e,"/.")){d=bc(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.C=d:c=""!==a.B.toString();c?to(b,a.B.clone()):c=!!a.K;c&&(b.K=a.K);return b};
g.po.prototype.clone=function(){return new g.po(this)};
var Sfb=/[#\/\?@]/g,Ufb=/[#\?:]/g,Tfb=/[#\?]/g,Ega=/[#\?@]/g,Vfb=/#/g;g.k=vo.prototype;g.k.add=function(a,b){$o(this);this.C=null;a=ap(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.B=this.B+1;return this};
g.k.remove=function(a){$o(this);a=ap(this,a);return this.j.has(a)?(this.C=null,this.B=this.B-this.j.get(a).length,this.j.delete(a)):!1};
g.k.clear=function(){this.j=this.C=null;this.B=0};
g.k.isEmpty=function(){$o(this);return 0==this.B};
g.k.forEach=function(a,b){$o(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.Ap=function(){$o(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.hm=function(a){$o(this);var b=[];if("string"===typeof a)Gga(this,a)&&(b=b.concat(this.j.get(ap(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){$o(this);this.C=null;a=ap(this,a);Gga(this,a)&&(this.B=this.B-this.j.get(a).length);this.j.set(a,[b]);this.B=this.B+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.hm(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.C)return this.C;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.pe(d);d=this.hm(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.pe(d[f]));a.push(h)}}return this.C=a.join("&")};
g.k.clone=function(){var a=new vo;a.C=this.C;this.j&&(a.j=new Map(this.j),a.B=this.B);return a};
g.k.extend=function(a){for(var b=0;b<arguments.length;b++)g.oo(arguments[b],function(c,d){this.add(d,c)},this)};g.ib(g.cp,g.H);var Wfb=[];g.k=g.cp.prototype;g.k.Ra=function(a,b,c,d){Array.isArray(b)||(b&&(Wfb[0]=b.toString()),b=Wfb);for(var e=0;e<b.length;e++){var f=g.vd(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.j[f.key]=f}return this};
g.k.SI=function(a,b,c,d){return Jga(this,a,b,c,d)};
g.k.Nc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Nc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.$a(d)?!!d.capture:!!d,e=e||this.B||this,c=wd(c),d=!!d,b=Sc(a)?a.AD(b,c,d,e):a?(a=xd(a))?a.AD(b,c,d,e):null:null,b&&(zd(b),delete this.j[b.key])};
g.k.Jf=function(){g.Wc(this.j,function(a,b){this.j.hasOwnProperty(b)&&zd(a)},this);
this.j={}};
g.k.xa=function(){g.cp.Lf.xa.call(this);this.Jf()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Kga.prototype.isInputValid=function(){return this.C};dp.prototype.isInputValid=function(){return 3!=this.j};
dp.prototype.qf=function(){return this.K};
dp.prototype.HG=function(){return!0};
dp.prototype.parse=function(a){function b(m){m&128&&ep(f,h,l,"invalid tag");2!=(m&7)&&ep(f,h,l,"invalid wire type");f.C=m>>>3;1!=f.C&&2!=f.C&&15!=f.C&&ep(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0}
function c(m){f.D++;5==f.D&&m&240&&ep(f,h,l,"message length too long");f.B|=(m&127)<<7*(f.D-1);m&128||(f.j=2,f.Z=0,"undefined"!==typeof Uint8Array?f.G=new Uint8Array(f.B):f.G=Array(f.B),0==f.B&&e())}
function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()}
function e(){if(15>f.C){var m={};m[f.C]=f.G;f.N.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:ep(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.W++;l++}a=f.N;f.N=[];return 0<a.length?a:null};fp.prototype.isInputValid=function(){return null===this.j};
fp.prototype.qf=function(){return this.j};
fp.prototype.HG=function(){return!1};
fp.prototype.parse=function(a){null!==this.j&&Mga(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||Lga(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=Sca(c.j.slice(0,4*d))}catch(h){Lga(c,c.j,h.message)}c.B+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.D.parse(e)}catch(h){Mga(this,a,h.message)}this.B+=a.length;return b};var Xfb={INIT:0,BC:1,XL:2,iy:3,NB:4,MB:5,STRING:6,SL:7,RT:8,pU:9,qU:10,rU:11,zS:12,AS:13,BS:14,CS:15,ZT:16,aU:17,bU:18,R3:19,WL:20};g.k=hp.prototype;g.k.isInputValid=function(){return 3!=this.G};
g.k.qf=function(){return this.W};
g.k.done=function(){return 2===this.G};
g.k.HG=function(){return!1};
g.k.parse=function(a){function b(){for(;r<a.length;)if(gp(a[r]))r++,f.C++;else break;return r<n}
function c(){for(var v;;){v=a[r++];if(!v)break;f.C++;switch(f.j){case m.INIT:"{"===v?f.j=m.XL:"["===v?f.j=m.NB:gp(v)||ip(f,a,r);continue;case m.SL:case m.XL:if(gp(v))continue;if(f.j===m.SL)h.push(m.RT);else if("}"===v){e("{}");f.j=d();continue}else h.push(m.iy);'"'===v?f.j=m.STRING:ip(f,a,r);continue;case m.RT:case m.iy:if(gp(v))continue;":"===v?(f.j===m.iy&&(h.push(m.iy),f.B++),f.j=m.BC):"}"===v?(f.B--,e(),f.j=d()):","===v?(f.j===m.iy&&h.push(m.iy),f.j=m.SL):ip(f,a,r);continue;case m.NB:case m.BC:if(gp(v))continue;
if(f.j===m.NB)if(f.B++,f.j=m.BC,"]"===v){f.B--;if(0===f.B){f.j=m.MB;return}e("[]");f.j=d();continue}else h.push(m.MB);'"'===v?f.j=m.STRING:"{"===v?f.j=m.XL:"["===v?f.j=m.NB:"t"===v?f.j=m.pU:"f"===v?f.j=m.zS:"n"===v?f.j=m.ZT:"-"!==v&&(-1!=="0123456789".indexOf(v)?f.j=m.WL:ip(f,a,r));continue;case m.MB:if(","===v)h.push(m.MB),f.j=m.BC,1===f.B&&(q=r);else if("]"===v){f.B--;if(0===f.B)return;e();f.j=d()}else if(gp(v))continue;else ip(f,a,r);continue;case m.STRING:var x=r;a:for(;;){for(;0<f.Z;)if(v=a[r++],
4===f.Z?f.Z=0:f.Z++,!v)break a;if('"'===v&&!f.N){f.j=d();break}if("\\"===v&&!f.N&&(f.N=!0,v=a[r++],!v))break;if(f.N)if(f.N=!1,"u"===v&&(f.Z=1),v=a[r++])continue;else break;l.lastIndex=r;v=l.exec(a);if(!v){r=a.length+1;break}r=v.index+1;v=a[v.index];if(!v)break}f.C+=r-x;continue;case m.pU:if(!v)continue;"r"===v?f.j=m.qU:ip(f,a,r);continue;case m.qU:if(!v)continue;"u"===v?f.j=m.rU:ip(f,a,r);continue;case m.rU:if(!v)continue;"e"===v?f.j=d():ip(f,a,r);continue;case m.zS:if(!v)continue;"a"===v?f.j=m.AS:
ip(f,a,r);continue;case m.AS:if(!v)continue;"l"===v?f.j=m.BS:ip(f,a,r);continue;case m.BS:if(!v)continue;"s"===v?f.j=m.CS:ip(f,a,r);continue;case m.CS:if(!v)continue;"e"===v?f.j=d():ip(f,a,r);continue;case m.ZT:if(!v)continue;"u"===v?f.j=m.aU:ip(f,a,r);continue;case m.aU:if(!v)continue;"l"===v?f.j=m.bU:ip(f,a,r);continue;case m.bU:if(!v)continue;"l"===v?f.j=d():ip(f,a,r);continue;case m.R3:"."===v?f.j=m.WL:ip(f,a,r);continue;case m.WL:if(-1!=="0123456789.eE+-".indexOf(v))continue;else r--,f.C--,f.j=
d();continue;default:ip(f,a,r)}}}
function d(){var v=h.pop();return null!=v?v:m.BC}
function e(v){1<f.B||(v||(v=-1===q?f.D+a.substring(p,r):a.substring(q,r)),f.ma?f.K.push(v):f.K.push(JSON.parse(v)),q=r)}
for(var f=this,h=f.ra,l=f.Ba,m=Xfb,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.G){case 3:return ip(f,a,r),null;case 2:return b()&&ip(f,a,r),null;case 0:if(b()){var t=a[r++];f.C++;if("["===t){f.G=1;p=r;f.j=m.NB;continue}else ip(f,a,r)}return null;case 1:return c(),0===f.B&&f.j==m.MB?(f.G=2,f.D=a.substring(r)):f.D=-1===q?f.D+a.substring(p):a.substring(q),0<f.K.length?(t=f.K,f.K=[],t):null}return null};jp.prototype.isInputValid=function(){return null===this.G};
jp.prototype.qf=function(){return this.G};
jp.prototype.HG=function(){return!1};
jp.prototype.parse=function(a){function b(m){f.B=6;f.G="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.G);}
function c(){f.C=new hp({Whb:!0,n5:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.D.push(p)}}
function e(m){if(m){(f.K||1<m.length)&&b("extra status: "+m);f.K=!0;var n={};n[2]=m[0];f.D.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.B){a:{for(;h<a.length;){if(!gp(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.B){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.B=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.B=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.B=3:"]"===a[h]?(f.B=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.C.parse(a.substring(h));d(l);f.C.done()?(f.B=3,l=f.C.D,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.B=4,c(),f.C.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.B=5,h++,f.j++);break;case 4:l=f.C.parse(a.substring(h));e(l);f.C.done()?(f.B=5,l=f.C.D,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.D.length?(a=f.D,f.D=[],a):null};kp.prototype.jO=function(){return this.j};
kp.prototype.getStatus=function(){return this.D};
kp.prototype.ma=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Tm(this.j),c=this.j.B,d=this.j.getStatus(),e=g.Vm(this.j);a=[];if(g.Wm(this.j)instanceof Array){var f=g.Wm(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.W=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?lp(this,7):7==c?lp(this,8):d||lp(this,3)),this.B||(this.B=Nga(this.j),null==this.B&&lp(this,5)),2<this.D)mp(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.HG())for(var l=0;l<h;l++){var m=
this.B.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.K){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.K=new TextDecoder}for(l=0;l<h;l++)m+=this.K.decode(a[l],{stream:4==b&&l==h-1});c=this.B.parse(m)}a.splice(0,h);c&&this.G(c)}catch(p){lp(this,5);mp(this);break a}}else if(e.length>this.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);null!=n&&this.G&&this.G(n)}catch(p){lp(this,5);mp(this);break a}}4==b?(0!=e.length||
this.W?lp(this,2):lp(this,4),mp(this)):lp(this,1)}}}catch(p){lp(this,6),mp(this)}};g.k=Oga.prototype;g.k.on=function(a,b){var c=this.B[a];c||(c=[],this.B[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.B[a];c&&g.Hb(c,b);(a=this.j[a])&&g.Hb(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.Q8=function(a){var b=this.B.data;b&&Pga(a,b);(b=this.j.data)&&Pga(a,b);this.j.data=[]};
g.k.A$=function(){switch(this.C.getStatus()){case 1:np(this,"readable");break;case 5:case 6:case 4:case 7:case 3:np(this,"error");break;case 8:np(this,"close");break;case 2:np(this,"end")}};Qga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Rga(function(h){var l=h.XH(),m=h.getMetadata(),n=Uga(e,!1);m=Vga(e,m,n,f+l.getName());var p=Wga(n,l.B,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.D).call(this,uga(d,b,c))};pp.prototype.create=function(a,b){return op(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},Pfb)};
pp.prototype.ping=function(a,b){return op(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},Rfb)};var Yfb=1,wp=new WeakMap;g.w(qp,g.H);qp.prototype.signal=function(){var a=new sp(!1);this.signals.add(a);g.J(this,a);return a};
qp.prototype.Vz=function(a){this.signals.has(a);return a.Vz()};
g.w(sp,g.H);g.k=sp.prototype;g.k.tM=function(){var a=this,b=Yfb++;tp(function(){Yga(a,b)});
return b};
g.k.detach=function(a){var b=this;tp(function(){var c=b.slots.get(a);c&&c.AV()})};
g.k.value=function(a){return this.promise(!0,a)};
g.k.Vz=function(){return this.FX};
g.k.next=function(a){return this.promise(!1,a)};
g.k.promise=function(a,b){var c=this,d=oca();tp(function(){if(c.isDisposed())d.reject(new Zf("Signal initially disposed"));else if(b&&b.isDisposed())d.reject(new Zf("Owner initially disposed"));else if(a&&c.aV&&c.TW)d.resolve(c.FX);else if(c.gB.add(d),Yf(d.promise,function(){c.gB.delete(d)}),b){var e=function(){d.reject(new Zf("Owner asynchronously disposed"))};
Yf(d.promise,function(){var f=wp.get(b);f&&g.Hb(f,e)});
bha(b,e)}});
return d.promise};
g.k.xa=function(){var a=this;g.H.prototype.xa.call(this);tp(function(){for(var b=g.u(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.AV,c();a.slots.clear();b=g.u(a.gB);for(c=b.next();!c.done;c=b.next())c.value.reject(new Zf("Signal asynchronously disposed"));a.gB.clear()})};
var up=[],vp=!1;g.w(xp,g.H);xp.prototype.start=function(){var a=this;if(this.isDisposed())throw new zp("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=0<a.milliseconds?Math.trunc((Date.now()-b)/a.milliseconds):a.D+1;var c;null==(c=a.B)||c.resolve();a.B=void 0;if(a.C){var d;null==(d=a.j)||rp(d,a.C,a)}a.Gb.BJ(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3;
a.handle=void 0;a.D=1;var c;null==(c=a.B)||c.resolve();a.B=void 0;if(a.C){var d;null==(d=a.j)||rp(d,a.C,a)}a.Gb.BJ(a)},this.milliseconds);
this.state=1}};
xp.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;null==(a=this.B)||a.reject(new yp);var b;null==(b=this.Gb.OP)||b.call(this);if(this.G){var c;null==(c=this.j)||rp(c,this.G)}}};
xp.prototype.xa=function(){this.clear();var a;null==(a=this.B)||a.reject(new zp);this.state=4;g.H.prototype.xa.call(this)};
xp.prototype.clear=function(){this.N?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
g.da.Object.defineProperties(xp.prototype,{K:{configurable:!0,enumerable:!0,get:function(){return 1===this.state}},
isCancelled:{configurable:!0,enumerable:!0,get:function(){return 2===this.state}},
isExpired:{configurable:!0,enumerable:!0,get:function(){return 3===this.state}},
tick:{configurable:!0,enumerable:!0,get:function(){return this.D}},
Z:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return null!=this.B||(this.B=new g.En),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new yp("Timer has been cancelled."));case 4:return Promise.reject(new zp("Timer has been disposed."));default:Nn(this.state)}}},
BJ:{configurable:!0,enumerable:!0,get:function(){if(this.isDisposed())throw new zp("Cannot attach a signal to a disposed timer.");this.C||(null!=this.j||(this.j=new qp(this)),this.C=this.j.signal());return this.C}},
OP:{configurable:!0,enumerable:!0,get:function(){if(this.isDisposed())throw new zp("Cannot attach a signal to a disposed timer.");this.G||(null!=this.j||(this.j=new qp(this)),this.G=this.j.signal());return this.G}}});
g.w(yp,wb);g.w(zp,wb);var dha=globalThis.TextEncoder?new TextEncoder:void 0;g.w(Bp,Error);g.w(Cp,g.H);Cp.prototype.G=function(a){var b=this.j(a);a=new wn(this.logger,this.B);b=g.fg(b,2);a.done();return b};
g.w(Ep,Cp);Ep.prototype.j=function(a){++this.W>=this.ma&&this.D.resolve();var b=Ap(a,this.logger),c=new wn(this.logger,"C"),d=this.Z(b);c.done();if(void 0===d)throw new Bp(17,Error("YNJ:Undefined"));if(!(d instanceof Uint8Array))throw new Bp(18,Error("ODM:Invalid"));var e;if(null==(e=a.My)?0:e.Hba)try{var f;null==(f=this.N())||Rfa(f,b,d,a.My.ZU,this.K)}catch(h){throw new Bp(24,h,"ELX:write");}return d};
g.w(Fp,Cp);Fp.prototype.j=function(){return this.K};
g.w(Gp,Cp);Gp.prototype.j=function(){return rg(this.K)};
Gp.prototype.G=function(){return this.K};
g.w(Hp,Cp);Hp.prototype.j=function(){if(this.K)return this.K;this.K=gha(this,function(a){return"_"+Zfa(a)});
return gha(this,function(a){return a})};
g.w(Ip,Cp);Ip.prototype.j=function(a){var b=Ap(a,this.logger);if(118<b.length)throw new Bp(19,Error("DFO:Invalid"));a=Math.floor(Date.now()/1E3);var c=[255*Math.random(),255*Math.random()],d=c.concat([this.K&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+d.length+b.length);a[0]=34;a[1]=d.length+b.length;a.set(d,2);a.set(b,2+d.length);b=a.subarray(2);for(d=c=c.length;d<b.length;++d)b[d]^=b[d%c];this.logger.TX(this.clientState);return a};
g.w(Jp,g.H);g.k=Jp.prototype;g.k.isReady=function(){return!!this.j};
g.k.ready=function(){var a=this;return g.Ha(function(b){return g.z(b,a.D.promise,0)})};
g.k.jD=function(a){var b=Kp,c=this.logger,d=c.lP,e=this.jz,f=e.jD;var h=mga().B;return b(this,d.call(c,"c",void 0===a?1:a,f.call(e,h,null)),new Bp(10,"JVZ:Timeout"))};
g.k.prefetch=function(){1===this.state&&(this.B=this.jD())};
g.k.start=function(){if(1===this.state){this.state=2;var a=new wn(this.logger,"r");this.ready().finally(function(){return void a.done()});
kha(this)}};var pha={NONE:0,Uua:1},Wha={b1:0,g0a:1,f0a:2,h0a:3},xr={N0:"a",sua:"d",VIDEO:"v"};Lp.prototype.isVisible=function(){return this.Wv?.3<=this.Be:.5<=this.Be};var Vp={Kra:0,WAa:1},Uha={NONE:0,VFa:1,lDa:2};Mp.prototype.getValue=function(){return this.Ud};
g.w(Np,Mp);Np.prototype.B=function(a){null===this.Ud&&g.gd(this.C,a)&&(this.Ud=a)};
g.w(Op,Mp);Op.prototype.B=function(a){null===this.Ud&&"number"===typeof a&&(this.Ud=a)};
g.w(Pp,Mp);Pp.prototype.B=function(a){null===this.Ud&&"string"===typeof a&&(this.Ud=a)};Qp.prototype.disable=function(){this.B=!1};
Qp.prototype.enable=function(){this.B=!0};
Qp.prototype.isEnabled=function(){return this.B};
Qp.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var os=document,cr=window;var Xia=!g.We&&!Ec();$q.prototype.now=function(){return 0};
$q.prototype.B=function(){return 0};
$q.prototype.C=function(){return 0};
$q.prototype.j=function(){return 0};g.w(br,$q);br.prototype.now=function(){return ar()&&cr.performance.now?cr.performance.now():$q.prototype.now.call(this)};
br.prototype.B=function(){return ar()&&cr.performance.memory?cr.performance.memory.totalJSHeapSize||0:$q.prototype.B.call(this)};
br.prototype.C=function(){return ar()&&cr.performance.memory?cr.performance.memory.usedJSHeapSize||0:$q.prototype.C.call(this)};
br.prototype.j=function(){return ar()&&cr.performance.memory?cr.performance.memory.jsHeapSizeLimit||0:$q.prototype.j.call(this)};var sha=Id(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.Qa.addEventListener("test",null,b)}catch(c){}return a});tha.prototype.isVisible=function(){return 1===fr(os)};Pd("csi.gstatic.com");Pd("googleads.g.doubleclick.net");Pd("partner.googleadservices.com");Pd("pubads.g.doubleclick.net");Pd("securepubads.g.doubleclick.net");Pd("tpc.googlesyndication.com");var vha={sia:"allow-forms",tia:"allow-modals",uia:"allow-orientation-lock",via:"allow-pointer-lock",wia:"allow-popups",xia:"allow-popups-to-escape-sandbox",yia:"allow-presentation",zia:"allow-same-origin",Aia:"allow-scripts",Bia:"allow-top-navigation",Cia:"allow-top-navigation-by-user-activation"},zha=Id(function(){return wha()});var Dha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");lr.prototype.df=function(a,b,c){a=a+"//"+b+c;var d=Hha(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.B[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=Gha(h[l],this.C,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.C;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};sr.prototype.setInterval=function(a,b){return cr.setInterval(a,b)};
sr.prototype.clearInterval=function(a){cr.clearInterval(a)};
sr.prototype.setTimeout=function(a,b){return cr.setTimeout(a,b)};
sr.prototype.clearTimeout=function(a){cr.clearTimeout(a)};g.w(ur,Q);ur.prototype.j=Qea([0,nfb,qfb,-2,tfb]);var Vha={bZa:1,e4:2,aSa:3};Xha.prototype.KQ=function(a){if("string"===typeof a&&0!=a.length){var b=this.Gc;if(b.B){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.B(d)}}}};var H2=null;var Ar=g.Qa.performance,Zfb=!!(Ar&&Ar.mark&&Ar.measure&&Ar.clearMarks),yr=Id(function(){var a;if(a=Zfb){var b;if(null===H2){H2="";try{a="";try{a=g.Qa.top.location.hash}catch(c){a=g.Qa.location.hash}a&&(H2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=H2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
zr.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(yr()&&g.Xb(this.events,cia),this.events.length=0)};
zr.prototype.start=function(a,b){if(!this.j)return null;var c=aia()||$ha();a=new bia(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Ar&&yr()&&Ar.mark(b);return a};
zr.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=aia()||$ha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Ar&&yr()&&Ar.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};dia.prototype.nP=function(a,b,c,d,e){e=e||this.OV;try{var f=new lr;f.j.push(1);f.B[1]=mr("context",a);b.error&&b.meta&&b.id||(b=new Er(Fr(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=mr("msg",h)}var l=b.meta||{};if(this.oM)try{this.oM(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.B[3]=b;var m=Fha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=mr("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?bfa(m.j.url):""}];f.j.push(5);f.B[5]=p;Yha(this.j,e,f,c)}catch(q){try{Yha(this.j,
e,{context:"ecmserr",rctx:a,msg:Fr(q),url:m&&m.j.url},c)}catch(r){}}return this.GR};
g.w(Er,Zha);var Cr,Dr,Br=new zr;Cr=new function(){var a="https:";cr&&cr.location&&"http:"===cr.location.protocol&&(a="http:");this.B=a;this.j=.01};
Dr=new dia;cr&&cr.document&&("complete"==cr.document.readyState?fia():Br.j&&er(cr,"load",function(){fia()}));var iia=Date.now(),Mr=-1,Kr=-1,yja,Nr=-1,Lr=!1;g.k=Or.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new Or(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof Or?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};Sr.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.C==a.C&&Qr(this.j,a.j)&&!0};Tr.prototype.Fb=function(){return this.N};
Tr.prototype.equals=function(a,b){return this.D.equals(a.D,void 0===b?!1:b)&&this.N==a.N&&Qr(this.C,a.C)&&Qr(this.K,a.K)&&this.j==a.j&&this.G==a.G&&this.B==a.B&&this.Z==a.Z};var $fb={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},ut={X3:"start",n1:"firstquartile",O3:"midpoint",Y3:"thirdquartile",V0:"complete",ERROR:"error",N3:"metric",PAUSE:"pause",U3:"resume",V3:"skip",d4:"viewable_impression",Q3:"mute",b4:"unmute",o1:"fullscreen",m1:"exitfullscreen",T0:"bufferstart",S0:"bufferfinish",q1:"fully_viewable_audible_half_duration_impression",M3:"measurable_impression",L0:"abandon",l1:"engagedview",v1:"impression",X0:"creativeview",L3:"loaded",E_a:"progress",
CLOSE:"close",kra:"collapse",aXa:"overlay_resize",bXa:"overlay_unmeasurable_impression",cXa:"overlay_unviewable_impression",eXa:"overlay_viewable_immediate_impression",dXa:"overlay_viewable_end_of_session_impression",Z0:"custom_metric_viewable",O0:"audio_audible",Q0:"audio_measurable",P0:"audio_impression"},Ika="start firstquartile midpoint thirdquartile resume loaded".split(" "),Jka=["start","firstquartile","midpoint","thirdquartile"],zja=["abandon"],Pt={UNKNOWN:-1,X3:0,n1:1,O3:2,Y3:3,V0:4,N3:5,
PAUSE:6,U3:7,V3:8,d4:9,Q3:10,b4:11,o1:12,m1:13,q1:14,M3:15,L0:16,l1:17,v1:18,X0:19,L3:20,Z0:21,T0:22,S0:23,P0:27,Q0:28,O0:29};var kia={Fda:"addEventListener",nDa:"getMaxSize",oDa:"getScreenSize",pDa:"getState",qDa:"getVersion",a0a:"removeEventListener",WGa:"isViewable"};g.k=g.Vr.prototype;g.k.clone=function(){return new g.Vr(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.le?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.getSize=function(){return new g.ne(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 oia={};xia.prototype.update=function(a){a&&a.document&&(this.N=Ur(!1,a,this.isMobileDevice),this.j=Ur(!0,a,this.isMobileDevice),zia(this,a),yia(this,a))};qs.prototype.cancel=function(){tr().clearTimeout(this.j);this.j=null};
qs.prototype.schedule=function(){var a=this,b=tr(),c=wr().j.j;this.j=b.setTimeout(vr(c,Hr(143,function(){a.B++;a.C.sample()})),jia())};g.k=rs.prototype;g.k.eC=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.oz=function(){return this.j.Ga};
g.k.PD=function(){return this.j.ma};
g.k.fail=function(a,b){if(!this.ma||(void 0===b?0:b))this.ma=!0,this.Ga=a,this.Z=0,this.j!=this||us(this)};
g.k.getName=function(){return this.j.Qa};
g.k.Ts=function(){return this.j.hW()};
g.k.hW=function(){return{}};
g.k.Nq=function(){return this.j.Z};
g.k.pT=function(){var a=ns();a.j=Ur(!0,this.C,a.isMobileDevice)};
g.k.qT=function(){yia(ns(),this.C)};
g.k.vW=function(){return this.D.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.K};
g.k.zz=function(a){var b=this.j;this.j=a.Nq()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,us(this)):this.K!==this.j.K&&(this.K=this.j.K,us(this))};
g.k.kt=function(a){if(a.B===this.j){var b=!this.D.equals(a,this.W);this.D=a;b&&Cia(this)}};
g.k.Yp=function(){return this.W};
g.k.dispose=function(){this.Ea=!0};
g.k.isDisposed=function(){return this.Ea};g.k=vs.prototype;g.k.EL=function(){return!0};
g.k.yG=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.B;g.Hb(a.G,this);a.W&&this.Yp()&&Bia(a);this.yG();this.ma=!0}};
g.k.isDisposed=function(){return this.ma};
g.k.Ts=function(){return this.B.Ts()};
g.k.Nq=function(){return this.B.Nq()};
g.k.oz=function(){return this.B.oz()};
g.k.PD=function(){return this.B.PD()};
g.k.zz=function(){};
g.k.kt=function(){this.xs()};
g.k.Yp=function(){return this.ra};g.k=ws.prototype;g.k.Nq=function(){return this.j.Nq()};
g.k.oz=function(){return this.j.oz()};
g.k.PD=function(){return this.j.PD()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.zG(a,b,c),ts(this.j,d));return d};
g.k.rT=function(){return this.fC()};
g.k.fC=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(ts(this.j,this),this.D=a,!0):!1};
g.k.zz=function(a){0==a.Nq()&&this.D(a.oz(),this)};
g.k.kt=function(){};
g.k.Yp=function(){return!1};
g.k.dispose=function(){this.G=!0};
g.k.isDisposed=function(){return this.G};
g.k.Ts=function(){return{}};xs.prototype.add=function(a,b,c){++this.C;a=new Dia(a,b,c);this.j.push(new Dia(a.j,a.Ud,a.B+this.C/4096));this.B=!0;return this};Iia.prototype.toString=function(){var a="//web.archive.org/web/20240102114909/https://pagead2.googlesyndication.com//pagead/gen_204",b=zs(this.j);0<b.length&&(a+="?"+b);return a};Js.prototype.update=function(a,b,c){a&&(this.j+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(void 0===c?!a:c)this.D=0};var Nia=[1,.75,.5,.3,0];Ks.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.B.length;e++){var h=this.B[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};Qs.prototype.update=function(a,b,c,d){this.N=-1!=this.N?Math.min(this.N,b.Be):b.Be;this.ra=Math.max(this.ra,b.Be);this.Ba=-1!=this.Ba?Math.min(this.Ba,b.xk):b.xk;this.Ga=Math.max(this.Ga,b.xk);this.bb.update(b.xk,c.xk,b.j,a,d);this.B.update(b.Be,c.Be,b.j,a,d);c=d||c.Wv!=b.Wv?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Qa.update(c,a,b)};
Qs.prototype.er=function(){return this.Qa.C>=this.Za};if(os&&os.URL){var agb=os.URL,bgb;if(bgb=!!agb){var cgb;a:{if(agb){var dgb=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var I2=dgb.exec(decodeURIComponent(agb));if(I2){cgb=I2[1]&&1<I2[1].length?I2[1].substring(1):"true";break a}}catch(a){}}cgb=""}bgb=0<cgb.length}Dr.GR=!bgb};var egb=new Or(0,0,0,0);var Via=new Or(0,0,0,0);g.w(Vs,g.H);g.k=Vs.prototype;
g.k.xa=function(){if(this.Rj.j){if(this.vv.AP){var a=this.Rj.j;a.removeEventListener&&a.removeEventListener("mouseover",this.vv.AP,dr());this.vv.AP=null}this.vv.zP&&(a=this.Rj.j,a.removeEventListener&&a.removeEventListener("mouseout",this.vv.zP,dr()),this.vv.zP=null)}this.RF&&this.RF.dispose();this.Wf&&this.Wf.dispose();delete this.bJ;delete this.pP;delete this.g0;delete this.Rj.It;delete this.Rj.j;delete this.vv;delete this.RF;delete this.Wf;delete this.Gc;g.H.prototype.xa.call(this)};
g.k.Ws=function(){return this.Wf?this.Wf.j:this.position};
g.k.KQ=function(a){wr().KQ(a)};
g.k.Yp=function(){return!1};
g.k.aI=function(){return new Qs};
g.k.tj=function(){return this.bJ};
g.k.mW=function(a){return Zia(this,a,1E4)};
g.k.Sa=function(a,b,c,d,e,f,h){this.vt||(this.bD&&(a=this.yM(a,c,e,h),d=d&&this.Sh.Be>=(this.Wv()?.3:.5),this.hS(f,a,d),this.Lp=b,0<a.Be&&-1===this.K_&&(this.K_=b),-1==this.P_&&this.er()&&(this.P_=b),-2==this.kP&&(this.kP=Ts(this.Ws())?a.Be:-1),this.Sh=a),this.pP(this))};
g.k.hS=function(a,b,c){this.tj().update(a,b,this.Sh,c)};
g.k.YN=function(){return new Lp};
g.k.yM=function(a,b,c,d){c=this.YN();c.j=b;b=tr().B;b=0===fr(os)?-1:b.isVisible()?0:1;c.B=b;c.Be=this.TM(a);c.Wv=this.Wv();c.xk=d;return c};
g.k.TM=function(a){return 0===this.opacity&&1===Tp(this.Gc,"opac")?0:a};
g.k.Wv=function(){return!1};
g.k.BK=function(){return this.t7||this.w7};
g.k.Aw=function(){Jr()};
g.k.oA=function(){Jr()};
g.k.Bp=function(){return 0};
g.k.er=function(){return this.bJ.er()};
g.k.yW=function(){var a=this.bD;a=(this.hasCompleted||this.isDisposed())&&!a;var b=2!==wr().B||this.aca;return this.vt||b&&a?2:this.er()?4:3};
g.k.MH=function(){return 0};g.Xs.prototype.next=function(){return g.J2};
g.J2={done:!0,value:void 0};g.Xs.prototype.Ek=function(){return this};g.w(eja,Lp);var K2=gja([void 0,1,2,3,4,8,16]),L2=gja([void 0,4,8,16]),fgb={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:at("p0",L2),p1:at("p1",L2),p2:at("p2",L2),p3:at("p3",L2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:$s("mtos1",[0,2,4],!1,L2),mtos2:$s("mtos2",[0,2,4],!1,L2),mtos3:$s("mtos3",[0,2,4],!1,L2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:at("a0",L2),a1:at("a1",L2),a2:at("a2",L2),a3:at("a3",L2),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",
vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:at("c0",L2),c1:at("c1",L2),c2:at("c2",L2),c3:at("c3",L2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:at("qmtos",K2),qnc:at("qnc",K2),qmv:at("qmv",K2),qnv:at("qnv",K2),
raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:at("ss0",L2),ss1:at("ss1",L2),ss2:at("ss2",L2),ss3:at("ss3",L2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia",
omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd"},ggb=Object.assign({},fgb,{avid:Gd("audio"),avas:"avas",vs:"vs"}),hgb={atos:"atos",avt:$s("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"};et.prototype.getValue=function(){return this.B};
et.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.B&=~(1<<a):this.j&1<<a||!b||(this.B|=1<<a),this.j|=1<<a)};g.w(ft,Qs);
ft.prototype.update=function(a,b,c,d){if(!b.paused){Qs.prototype.update.call(this,a,b,c,d);var e=Zs(b)&&Zs(c),f=.5<=(d?Math.min(b.Be,c.Be):c.Be);ls(b.volume)&&(this.D=-1!=this.D?Math.min(this.D,b.volume):b.volume,this.K=Math.max(this.K,b.volume));f&&(this.Ea+=a,this.W+=e?a:0);this.j.update(b.Be,c.Be,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.ma.update(c.fullscreen,a);this.kb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.La.update(a,b.isVisible());this.Xa.update(a,1<=b.Be);this.Va.update(a,
Zs(b))}};mja.prototype.B=function(a){this.C||(this.j(a)?(a=wka(this.W,this.D,a),this.G|=a,a=0==a):a=!1,this.C=a)};g.w(ht,mja);ht.prototype.j=function(){return!0};
ht.prototype.K=function(){return!1};
ht.prototype.getId=function(){var a=this,b=hd(ut,function(c){return c==a.D});
return Pt[b].toString()};
ht.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");0<this.G&&(a+=":"+this.G);return this.getId()+a};g.w(jt,ht);jt.prototype.B=function(a,b){b=void 0===b?null:b;null!=b&&this.N.push(b);ht.prototype.B.call(this,a)};g.w(kt,nja);kt.prototype.B=function(){return null};
kt.prototype.C=function(){return[]};g.w(lt,vs);g.k=lt.prototype;g.k.DM=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=uia(a.getBoundingClientRect())}catch(n){c=new Or(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=ria(a,b),h=f.x,l=f.y;var m=new Or(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=egb.clone()}this.j=m}};
g.k.bV=function(){this.D=this.B.D.j};
g.k.tX=function(a){var b=1==Tp(this.Gc,"od");return Uia(a,this.D,this.element,b)};
g.k.cV=function(){this.timestamp=Jr()};
g.k.xs=function(){this.cV();this.DM();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.ne(a.videoWidth,a.videoHeight);a=this.j;var c=Pr(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.bV();
a=this.j;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new Or(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 Or(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new Or(0,0,0,0):a;a=this.B.D;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.tX(c)?c=new Or(0,0,0,0):(d=ns().D,b=new Or(0,d.height,d.width,0),d=Us(c,this.j),e=Us(c,ns().j),b=Us(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Or(0,0,0,
0):Rr(c,-this.j.left,-this.j.top);ps()||(e=d=0);this.N=new Tr(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.B.getName()};var igb=new Or(0,0,0,0);g.w(mt,lt);g.k=mt.prototype;g.k.EL=function(){this.C();return!0};
g.k.kt=function(){lt.prototype.xs.call(this)};
g.k.cV=function(){};
g.k.DM=function(){};
g.k.xs=function(){this.C();lt.prototype.xs.call(this)};
g.k.zz=function(a){a=a.isActive();a!==this.K&&(a?this.C():(ns().j=new Or(0,0,0,0),this.j=new Or(0,0,0,0),this.D=new Or(0,0,0,0),this.timestamp=-1));this.K=a};var M2={},xja=(M2.firstquartile=0,M2.midpoint=1,M2.thirdquartile=2,M2.complete=3,M2);g.w(ot,Vs);g.k=ot.prototype;g.k.Yp=function(){return!0};
g.k.Ln=function(){return 2==this.gk};
g.k.mW=function(a){return Zia(this,a,Math.max(1E4,this.C/3))};
g.k.Sa=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.qd(m,e);this.C=m.duration||this.C;this.W=m.isVpaid||this.W;this.Na=m.isYouTube||this.Na;tr();this.kb=!1;e=pja(this,b);1===oja(this)&&(f=e);Vs.prototype.Sa.call(this,a,b,c,d,m,f,h);this.qr&&this.qr.C&&g.Xb(this.K,function(n){n.B(l)})};
g.k.hS=function(a,b,c){Vs.prototype.hS.call(this,a,b,c);rt(this).update(a,b,this.Sh,c);this.bb=Zs(this.Sh)&&Zs(b);-1==this.Ga&&this.Za&&(this.Ga=this.tj().C.j);this.Ng.C=0;a=this.er();b.isVisible()&&dt(this.Ng,"vs");a&&dt(this.Ng,"vw");ls(b.volume)&&dt(this.Ng,"am");Zs(b)?dt(this.Ng,"a"):dt(this.Ng,"mut");this.Jz&&dt(this.Ng,"f");-1!=b.B&&(dt(this.Ng,"bm"),1==b.B&&(dt(this.Ng,"b"),Zs(b)&&dt(this.Ng,"umutb")));Zs(b)&&b.isVisible()&&dt(this.Ng,"avs");this.bb&&a&&dt(this.Ng,"avw");0<b.Be&&dt(this.Ng,
"pv");tt(this,this.tj().C.j,!0)&&dt(this.Ng,"gdr");2E3<=Os(this.tj().B,1)&&dt(this.Ng,"pmx");this.kb&&dt(this.Ng,"tvoff")};
g.k.aI=function(){return new ft};
g.k.tj=function(){return this.bJ};
g.k.YN=function(){return new eja};
g.k.yM=function(a,b,c,d){a=Vs.prototype.yM.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Jz;a.paused=this.Ln();a.volume=c.volume;ls(a.volume)||(this.tb++,b=this.Sh,ls(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.TM=function(a){return ns(),this.Jz?1:Vs.prototype.TM.call(this,a)};
g.k.Bp=function(){return 1};
g.k.getDuration=function(){return this.C};
g.k.yW=function(){return this.vt?2:rja(this)?5:this.er()?4:3};
g.k.MH=function(){return this.rb?2E3<=this.tj().G.C?4:3:2};var jgb=g.gb();Hja.prototype.reset=function(){this.j=[];this.B=[]};
var At=gr(Hja);g.w(Dt,ws);g.k=Dt.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()};
g.k.Ts=function(){return(this.B?this.B:this.j).Ts()};
g.k.Nq=function(){return(this.B?this.B:this.j).Nq()};
g.k.init=function(a){var b=!1;(0,g.Xb)(this.C,function(c){c.initialize()&&(b=!0)});
b&&(this.D=a,ts(this.j,this));return b};
g.k.dispose=function(){(0,g.Xb)(this.C,function(a){a.dispose()});
ws.prototype.dispose.call(this)};
g.k.rT=function(){return ms(this.C,function(a){return a.eC()})};
g.k.fC=function(){return ms(this.C,function(a){return a.eC()})};
g.k.zG=function(a,b,c){return new lt(a,this.j,b,c)};
g.k.kt=function(a){this.B=a.B};var Qja={threshold:[0,.3,.5,.75,1]};g.w(Et,lt);g.k=Et.prototype;g.k.EL=function(){var a=this;this.W||(this.W=Jr());if(hia(298,function(){return Rja(a)}))return!0;
this.B.fail("msf");return!1};
g.k.yG=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.K?(this.K.unobserve(this.element),this.K=null):this.G&&(this.G.disconnect(),this.G=null)}catch(a){}};
g.k.xs=function(){var a=Ft(this);0<a.length&&Gt(this,a);lt.prototype.xs.call(this)};
g.k.DM=function(){};
g.k.tX=function(){return!1};
g.k.bV=function(){};
g.k.Ts=function(){var a={};return Object.assign(this.B.Ts(),(a.niot_obs=this.W,a.niot_cbk=this.Z,a))};
g.k.getName=function(){return"nio"};g.w(Ht,ws);Ht.prototype.getName=function(){return"nio"};
Ht.prototype.fC=function(){return!ns().B&&null!=this.j.j.C.IntersectionObserver};
Ht.prototype.zG=function(a,b,c){return new Et(a,this.j,b,c)};g.w(It,rs);It.prototype.vW=function(){return ns().j};
It.prototype.eC=function(){var a=Tja();this.Z!==a&&(this.j!=this&&a>this.j.Z&&(this.j=this,us(this)),this.Z=a);return 2==a};Jt.prototype.sample=function(){Mt(this,Bt(),!1)};
Jt.prototype.D=function(){var a=ps(),b=Jr();a?(Lr||(Mr=b,g.Xb(At.j,function(c){var d=c.tj();d.Na=gt(d,b,1!=c.gk)})),Lr=!0):(this.N=Yja(this,b),Lr=!1,yja=b,g.Xb(At.j,function(c){c.bD&&(c.tj().Z=b)}));
Mt(this,Bt(),!a)};
var Kt=gr(Jt);var $ja=null,iu="",hu=!1;var cka=bka().jp,Ot=bka().mp;var fka={XAa:"visible",Zma:"audible",Z8a:"time",c9a:"timetype"},gka={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)}};
eka.prototype.setTime=function(a,b,c){"ms"==b?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=void 0===c?"tos":c;return this};g.w(St,ht);St.prototype.getId=function(){return this.N};
St.prototype.K=function(){return!0};
St.prototype.j=function(a){var b=a.tj(),c=a.getDuration();return ms(this.Z,function(d){if(void 0!=d.j)var e=ika(d,b);else b:{switch(d.G){case "mtos":e=d.B?b.G.C:b.C.j;break b;case "tos":e=d.B?b.G.j:b.C.j;break b}e=0}0==e?d=!1:(d=-1!=d.C?d.C:void 0!==c&&0<c?d.D*c:-1,d=-1!=d&&e>=d);return d})};g.w(Tt,ija);Tt.prototype.j=function(a){var b=new hja;b.j=ct(a,fgb);b.B=ct(a,hgb);return b};g.w(Ut,ht);Ut.prototype.j=function(a){return rja(a)};g.w(Vt,nja);g.w(Wt,ht);Wt.prototype.j=function(a){return a.tj().er()};g.w(Xt,jt);Xt.prototype.j=function(a){var b=g.Fb(this.N,Tp(wr().Gc,"ovms"));return!a.vt&&(0!=a.gk||b)};g.w(Yt,Vt);Yt.prototype.B=function(){return new Xt(this.j)};
Yt.prototype.C=function(){return[new Wt("viewable_impression",this.j),new Ut(this.j)]};g.w(Zt,mt);Zt.prototype.C=function(){var a=g.Sa("ima.admob.getViewability"),b=Tp(this.Gc,"queryid");"function"===typeof a&&b&&a(b)};
Zt.prototype.getName=function(){return"gsv"};g.w($t,ws);$t.prototype.getName=function(){return"gsv"};
$t.prototype.fC=function(){var a=ns();wr();return a.B&&!1};
$t.prototype.zG=function(a,b,c){return new Zt(this.j,b,c)};g.w(au,mt);au.prototype.C=function(){var a=this,b=g.Sa("ima.bridge.getNativeViewability"),c=Tp(this.Gc,"queryid");"function"===typeof b&&c&&b(c,function(d){g.id(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=via(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?igb.clone():via(e);a.timestamp=d.opt_nativeTime||-1;ns().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
au.prototype.getName=function(){return"nis"};g.w(bu,ws);bu.prototype.getName=function(){return"nis"};
bu.prototype.fC=function(){var a=ns();wr();return a.B&&!1};
bu.prototype.zG=function(a,b,c){return new au(this.j,b,c)};g.w(cu,rs);g.k=cu.prototype;g.k.eC=function(){return null!=this.B.Pn};
g.k.hW=function(){var a={};this.La&&(a.mraid=this.La);this.Ba&&(a.mlc=1);a.mtop=this.B.Bba;this.N&&(a.mse=this.N);this.Na&&(a.msc=1);a.mcp=this.B.compatibility;return a};
g.k.Zt=function(a){var b=g.Ia.apply(1,arguments);try{return this.B.Pn[a].apply(this.B.Pn,b)}catch(c){Ir(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.PD();this.isInitialized=!0;if(2===this.B.compatibility)return this.N="ng",this.fail("w"),!1;if(1===this.B.compatibility)return this.N="mm",this.fail("w"),!1;ns().Z=!0;this.C.document.readyState&&"complete"==this.C.document.readyState?mka(this):Ss(this.C,"load",function(){tr().setTimeout(Hr(292,function(){return mka(a)}),100)},292);
return!0};
g.k.pT=function(){var a=ns(),b=rka(this,"getMaxSize");a.j=new Or(0,b.width,b.height,0)};
g.k.qT=function(){ns().D=rka(this,"getScreenSize")};
g.k.dispose=function(){oka(this);rs.prototype.dispose.call(this)};var Sha=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");g.k=eu.prototype;g.k.qH=function(a){Ws(a,!1);Lja(a)};
g.k.iI=function(){};
g.k.nF=function(a,b,c,d){var e=this;a=new ot(cr,a,c?b:-1,7,this.cN(),this.tV());a.aj=d;nha(a.Gc);Sp(a.Gc,"queryid",a.aj);a.KQ("");bja(a,function(){return e.HW.apply(e,g.oa(g.Ia.apply(0,arguments)))},function(){return e.S6.apply(e,g.oa(g.Ia.apply(0,arguments)))});
(d=gr(Ct).j)&&Yia(a,d);a.Rj.It&&gr(Uja);return a};
g.k.zz=function(a){switch(a.Nq()){case 0:if(a=gr(Ct).j)a=a.j,g.Hb(a.G,this),a.W&&this.Yp()&&Bia(a);gu();break;case 2:Lt()}};
g.k.kt=function(){};
g.k.Yp=function(){return!1};
g.k.S6=function(a,b){a.vt=!0;switch(a.Bp()){case 1:xka(a,b);break;case 2:this.VQ(a)}};
g.k.b7=function(a){var b=a.N(a);b&&(b=b.volume,a.rb=ls(b)&&0<b);uja(a,0);return vt(a,"start",ps())};
g.k.EB=function(a,b,c){Mt(Kt,[a],!ps());return this.Cp(a,b,c)};
g.k.Cp=function(a,b,c){return vt(a,c,ps())};
g.k.W6=function(a){return mu(a,"firstquartile",1)};
g.k.Y6=function(a){a.Za=!0;return mu(a,"midpoint",2)};
g.k.c7=function(a){return mu(a,"thirdquartile",3)};
g.k.T6=function(a){var b=mu(a,"complete",4);pt(a);return b};
g.k.U6=function(a){a.gk=3;return vt(a,"error",ps())};
g.k.TZ=function(a,b,c){b=ps();if(a.Ln()&&!b){var d=a.tj(),e=Jr();d.Z=e}Mt(Kt,[a],!b);a.Ln()&&(a.gk=1);return vt(a,c,b)};
g.k.a7=function(a,b){b=this.EB(a,b||{},"skip");pt(a);return b};
g.k.X6=function(a,b){Ws(a,!0);return this.EB(a,b||{},"fullscreen")};
g.k.V6=function(a,b){Ws(a,!1);return this.EB(a,b||{},"exitfullscreen")};
g.k.BQ=function(a,b,c){b=a.tj();var d=Jr();b.Na=gt(b,d,1!=a.gk);Mt(Kt,[a],!ps());1==a.gk&&(a.gk=2);return vt(a,c,ps())};
g.k.Z6=function(a){Mt(Kt,[a],!ps());return a.B()};
g.k.rO=function(a){Mt(Kt,[a],!ps());this.OZ(a);pt(a);return a.B()};
g.k.HW=function(){};
g.k.VQ=function(){};
g.k.OZ=function(){};
g.k.sT=function(){};
g.k.dN=function(){};
g.k.tV=function(){this.j||(this.j=this.dN());return null==this.j?new kt:new Yt(this.j)};
g.k.cN=function(){return new Tt};g.w(nu,ht);nu.prototype.j=function(a){return 4==a.MH()};g.w(ou,jt);ou.prototype.j=function(a){a=a.MH();return 3==a||4==a};g.w(pu,Vt);pu.prototype.B=function(){return new ou(this.j)};
pu.prototype.C=function(){return[new nu(this.j)]};g.w(qu,ija);qu.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 hja;b.j=ct(a,ggb);b.B=ct(a,hgb);return b};Bka.prototype.B=function(){return g.Sa(this.j)};g.w(ru,eu);g.k=ru.prototype;g.k.iI=function(a,b){var c=this,d=gr(Ct);if(null!=d.j)switch(d.j.getName()){case "nis":var e=Fka(this,a,b);break;case "gsv":e=Eka(this,a,b);break;case "exc":e=Gka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=zka(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Bp()&&(e.N==g.Hd&&(e.N=function(f){return c.sT(f)}),Dka(this,e,b));
return e};
g.k.sT=function(a){a.B=0;a.Ea=0;if("h"==a.D||"n"==a.D){wr();a.Xa&&(wr(),"h"!=ku(this)&&ku(this));var b=g.Sa("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.aj)}catch(e){a.B|=4}else a.B|=2}else if("b"==a.D)if(b=g.Sa("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.aj)}catch(e){a.B|=4}else a.B|=2;else if("ml"==a.D)if(b=g.Sa("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.aj)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(void 0===c?a.B|=8:null===
c?a.B|=16:g.id(c)?a.B|=32:null!=c.errorCode&&(a.Ea=c.errorCode,a.B|=64));null==c&&(c={});b=c;a.Z=0;for(var d in $fb)null==b[d]&&(a.Z|=$fb[d]);Aka(b,"currentTime");Aka(b,"duration");ls(c.volume)&&ls()&&(c.volume*=NaN);return c};
g.k.dN=function(){wr();"h"!=ku(this)&&ku(this);var a=Hka(this);return null!=a?new Bka(a):null};
g.k.VQ=function(a){!a.j&&a.vt&&lu(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.OZ=function(a){a.r_&&(a.er()?lu(this,a,"overlay_viewable_end_of_session_impression"):lu(this,a,"overlay_unviewable_impression"),a.r_=!1)};
g.k.HW=function(){};
g.k.nF=function(a,b,c,d){if(Tha()){var e=Tp(wr().Gc,"mm"),f={};(e=(f[xr.N0]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[xr.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Lka(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&Ir(1044,Error())}a=eu.prototype.nF.call(this,a,b,c,d);this.D&&(b=this.G,null==a.G&&(a.G=new cja),b.j[a.aj]=a.G,a.G.G=jgb);return a};
g.k.qH=function(a){a&&1==a.Bp()&&this.D&&delete this.G.j[a.aj];return eu.prototype.qH.call(this,a)};
g.k.tV=function(){this.j||(this.j=this.dN());return null==this.j?new kt:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new pu(this.j):new Yt(this.j)};
g.k.cN=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new qu:new Tt};
var kgb=Gr(193,Nka,void 0,yka);g.Ra("Goog_AdSense_Lidar_sendVastEvent",kgb);var lgb=Hr(194,function(a,b){b=void 0===b?{}:b;a=Kka(gr(ru),a,b);return Mka(a)});
g.Ra("Goog_AdSense_Lidar_getViewability",lgb);var mgb=Gr(195,function(){return Nha()});
g.Ra("Goog_AdSense_Lidar_getUrlSignalsArray",mgb);var ngb=Hr(196,function(){return JSON.stringify(Nha())});
g.Ra("Goog_AdSense_Lidar_getUrlSignalsList",ngb);var NKa={g1a:0,d1a:1,Z0a:2,a1a:3,b1a:4,f1a:5,e1a:6};var Sna=(new Date).getTime();var Pka="://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(" "),Qka=/\bocr\b/;var Ska=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.w(vu,g.Dd);vu.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Mn.Oj(this.G);delete vu.instance};
vu.prototype.Qh=function(){return this.j};
vu.prototype.tf=function(){var a=this;this.G=this.Mn.Si(function(){var b;return g.Ha(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ka(3):g.z(c,uu(a),3):g.z(c,uu(a),3);a.tf();g.xa(c)})},3E4)};xu.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)};
xu.prototype.get=function(a){return!!this.data[a]};var zu;g.ib(g.Cu,g.H);g.k=g.Cu.prototype;g.k.start=function(){this.stop();this.D=!1;var a=Vka(this),b=Wka(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.vd(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.j=a&&b?a.call(this.B,this.C):this.B.setTimeout(mba(this.C),20)};
g.k.stop=function(){if(this.isActive()){var a=Vka(this),b=Wka(this);a&&!b&&this.B.mozRequestAnimationFrame?zd(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return null!=this.j};
g.k.O2=function(){this.D&&this.j&&zd(this.j);this.j=null;this.K.call(this.G,g.gb())};
g.k.xa=function(){this.stop();g.Cu.Lf.xa.call(this)};g.ib(g.Eu,g.H);g.k=g.Eu.prototype;g.k.gC=0;g.k.xa=function(){g.Eu.Lf.xa.call(this);this.stop();delete this.j;delete this.B};
g.k.start=function(a){this.stop();this.gC=g.ag(this.C,void 0!==a?a:this.Yi)};
g.k.stop=function(){this.isActive()&&g.Qa.clearTimeout(this.gC);this.gC=0};
g.k.isActive=function(){return 0!=this.gC};
g.k.tT=function(){this.gC=0;this.j&&this.j.call(this.B)};Iu.prototype[Symbol.iterator]=function(){return this};
Iu.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.B.call(void 0,a.value),done:a.done}};Ru.prototype.Ek=function(){return new Su(this.B())};
Ru.prototype[Symbol.iterator]=function(){return new Tu(this.B())};
Ru.prototype.j=function(){return new Tu(this.B())};
g.w(Su,g.Xs);Su.prototype.next=function(){return this.B.next()};
Su.prototype[Symbol.iterator]=function(){return new Tu(this.B)};
Su.prototype.j=function(){return new Tu(this.B)};
g.w(Tu,Ru);Tu.prototype.next=function(){return this.C.next()};g.k=g.Vu.prototype;g.k.hm=function(){Xu(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.B[this.j[b]]);return a};
g.k.Ap=function(){Xu(this);return this.j.concat()};
g.k.has=function(a){return Wu(this.B,a)};
g.k.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||$ka;Xu(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.B={};this.Eu=this.size=this.j.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return Wu(this.B,a)?(delete this.B[a],--this.size,this.Eu++,this.j.length>2*this.size&&Xu(this),!0):!1};
g.k.get=function(a,b){return Wu(this.B,a)?this.B[a]:b};
g.k.set=function(a,b){Wu(this.B,a)||(this.size+=1,this.j.push(a),this.Eu++);this.B[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.Vu(this)};
g.k.keys=function(){return Uu(this.Ek(!0)).j()};
g.k.values=function(){return Uu(this.Ek(!1)).j()};
g.k.entries=function(){var a=this;return Xka(this.keys(),function(b){return[b,a.get(b)]})};
g.k.Ek=function(a){Xu(this);var b=0,c=this.Eu,d=this,e=new g.Xs;e.next=function(){if(c!=d.Eu)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.J2;var f=d.j[b++];return g.Ys(a?f:d.B[f])};
return e};g.ib(g.Yu,g.Dd);g.k=g.Yu.prototype;g.k.isPlaying=function(){return 1==this.j};
g.k.isPaused=function(){return-1==this.j};
g.k.qJ=function(){this.Wl("begin")};
g.k.wr=function(){this.Wl("end")};
g.k.onFinish=function(){this.Wl("finish")};
g.k.Wl=function(a){this.dispatchEvent(a)};var ogb=Id(function(){if(g.We)return!0;var a=g.$e("DIV"),b=g.Pc?"-webkit":Zr?"-moz":g.We?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!gfb.test("div"))throw Error("");if("DIV"in ifb)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!gfb.test(n))throw Error("");var e=c[n];if(null!=e){var f=void 0;var h=n;if(e instanceof g.Nd)e=Od(e);else if("style"==h.toLowerCase()){if(!g.$a(e))throw Error("");
if(!(e instanceof g.$d)){var l="";for(f in e)if(Object.prototype.hasOwnProperty.call(e,f)){if(!/^[-_a-zA-Z0-9]+$/.test(f))throw Error("Name allows only [-_a-zA-Z0-9], got: "+f);var m=e[f];null!=m&&(m=Array.isArray(m)?m.map(Hba).join(" "):Hba(m),l+=f+":"+m+";")}e=l?new g.$d(l,Ln):av}e=ae(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in hfb)if(e instanceof g.Rd)e=g.Sd(e).toString();else if(e instanceof g.Ud)e=g.Vd(e);else if("string"===typeof e)e=(g.Zd(e)||g.be).gm();else throw Error("");
}e.Ip&&(e=e.gm());f=h+'="'+dc(String(e))+'"';d+=" "+f}}var n="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===efb.div?n+=">":(b=Lba(b),n+=">"+g.de(b).toString()+"</div>");n=g.ee(n);g.Pba(a,n);return""!=g.$r(a.firstChild,"transition")});g.ib(Zu,g.Yu);g.k=Zu.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.qJ();this.Wl("play");this.startTime=g.gb();this.j=1;if(ogb())return g.Yr(this.B,this.K),this.C=g.ag(this.iaa,void 0,this),!0;this.FL(!1);return!1};
g.k.iaa=function(){g.is(this.B);ala(this.B,this.N);g.Yr(this.B,this.D);this.C=g.ag((0,g.eb)(this.FL,this,!1),1E3*this.G)};
g.k.stop=function(){this.isPlaying()&&this.FL(!0)};
g.k.FL=function(a){g.Yr(this.B,"transition","");g.Qa.clearTimeout(this.C);g.Yr(this.B,this.D);this.endTime=g.gb();this.j=0;if(a)this.Wl("stop");else this.onFinish();this.wr()};
g.k.xa=function(){this.stop();Zu.Lf.xa.call(this)};
g.k.pause=function(){};var dla={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};$u("Element","attributes")||$u("Node","attributes");$u("Element","innerHTML")||$u("HTMLElement","innerHTML");$u("Node","nodeName");$u("Node","nodeType");$u("Node","parentNode");$u("Node","childNodes");$u("HTMLElement","style")||$u("Element","style");$u("HTMLStyleElement","sheet");var jla=fla("getPropertyValue"),kla=fla("setProperty");$u("Element","namespaceURI")||$u("Node","namespaceURI");var ila={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var ola,Jeb,nla,mla,pla;ola=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]");Jeb=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.pgb=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.bv=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]");nla=/^http:\/\/.*/;g.qgb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");mla=/\s+/;pla=/[\d\u06f0-\u06f9]/;dv.prototype.clone=function(){return new dv(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};
dv.prototype.equals=function(a){return this.j==a.j&&this.C==a.C&&this.x1==a.x1&&this.y1==a.y1&&this.x2==a.x2&&this.y2==a.y2&&this.B==a.B&&this.D==a.D};fv.prototype.clone=function(){return new fv(this.start,this.end)};
fv.prototype.getLength=function(){return this.end-this.start};(function(){if(Zbb){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.mc()))?a[1]:"0"}return fZ?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.mc()))?a[0].replace(/_/g,"."):"10"):g.yC?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.mc()))?a[1]:""):Veb||Web||Xeb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.mc()))?a[1].replace(/_/g,"."):""):""})();var rla=function(){if(g.MR)return gv(/Firefox\/([0-9.]+)/);if(g.We||g.VD||g.lS)return Mc;if(g.YK){if(Hc()||Ic()){var a=gv(/CriOS\/([0-9.]+)/);if(a)return a}return gv(/Chrome\/([0-9.]+)/)}if(g.zD&&!Hc())return gv(/Version\/([0-9.]+)/);if(vC||wC){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.mc()))return a[1]+"."+a[2]}else if(g.yPa)return(a=gv(/Android\s+([0-9.]+)/))?a:gv(/Version\/([0-9.]+)/);return""}();g.ib(g.iv,g.H);g.k=g.iv.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.K;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.K=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Fh(a)}return!1};
g.k.Fh=function(a){var b=this.j[a];if(b){var c=this.B[b];0!=this.D?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Hb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.k.oa=function(a,b){var c=this.B[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.N)for(e=0;e<c.length;e++){var h=c[e];sla(this.j[h+1],this.j[h+2],d)}else{this.D++;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.D--,0<this.C.length&&0==this.D)for(;c=this.C.pop();)this.Fh(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.Fh,this),delete this.B[a])}else this.j.length=0,this.B={}};
g.k.xa=function(){g.iv.Lf.xa.call(this);this.clear();this.C.length=0};g.jv.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.Mm(b))};
g.jv.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.jv.prototype.remove=function(a){this.j.remove(a)};g.ib(kv,g.jv);kv.prototype.set=function(a,b){kv.Lf.set.call(this,a,ula(b))};
kv.prototype.B=function(a){a=kv.Lf.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
kv.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.ib(lv,kv);lv.prototype.set=function(a,b,c){if(b=ula(b)){if(c){if(c<g.gb()){lv.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.gb()}lv.Lf.set.call(this,a,b)};
lv.prototype.B=function(a,b){var c=lv.Lf.B.call(this,a);if(c)if(!b&&g.vla(c))lv.prototype.remove.call(this,a);else return c};g.ib(g.mv,lv);g.ib(nv,wla);nv.prototype[Symbol.iterator]=function(){return Uu(this.Ek(!0)).j()};
nv.prototype.clear=function(){var a=Array.from(this);a=g.u(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.ib(ov,nv);g.k=ov.prototype;g.k.isAvailable=function(){var a=this.j;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&("QuotaExceededError"===c.name||22===c.code||1014===c.code||"NS_ERROR_DOM_QUOTA_REACHED"===c.name)&&a&&0!==a.length}else b=!1;return this.B=b};
g.k.set=function(a,b){pv(this);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){pv(this);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){pv(this);this.j.removeItem(a)};
g.k.Ek=function(a){pv(this);var b=0,c=this.j,d=new g.Xs;d.next=function(){if(b>=c.length)return g.J2;var e=c.key(b++);if(a)return g.Ys(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Ys(e)};
return d};
g.k.clear=function(){pv(this);this.j.clear()};
g.k.key=function(a){pv(this);return this.j.key(a)};g.ib(qv,ov);g.ib(xla,ov);g.ib(tv,nv);var yla={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},rv=null;g.k=tv.prototype;g.k.isAvailable=function(){return!!this.j};
g.k.set=function(a,b){this.j.setAttribute(uv(a),b);vv(this)};
g.k.get=function(a){a=this.j.getAttribute(uv(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeAttribute(uv(a));vv(this)};
g.k.Ek=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.Xs;d.next=function(){if(b>=c.length)return g.J2;var e=c[b++];if(a)return g.Ys(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Ys(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);vv(this)};g.ib(wv,nv);wv.prototype.set=function(a,b){this.B.set(this.j+a,b)};
wv.prototype.get=function(a){return this.B.get(this.j+a)};
wv.prototype.remove=function(a){this.B.remove(this.j+a)};
wv.prototype.Ek=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.Xs;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.Ys(a?e.slice(c.j.length):c.B.get(e))};
return d};yv.prototype.getKey=function(){return this.j};
yv.prototype.getValue=function(){return this.Ud};
yv.prototype.clone=function(){return new yv(this.j,this.Ud)};g.k=zv.prototype;g.k.rh=function(a,b){var c=this.j;c.push(new yv(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.hm=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 zv(this)};
g.k.isEmpty=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.w(zla,zv);g.Av.Zg=void 0;g.Av.getInstance=function(){return g.Av.Zg?g.Av.Zg:g.Av.Zg=new g.Av};
g.Av.prototype.j=0;var Bv={},rgb="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;Bv.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};
Bv.FR=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var sgb={Iy: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]},
VV: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}},tgb={Iy:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
VV:function(a){return[].concat.apply([],a)}};
Bv.uba=function(){rgb?(Bv.Bx=Uint8Array,Bv.mq=Uint16Array,Bv.U0=Int32Array,Bv.assign(Bv,sgb)):(Bv.Bx=Array,Bv.mq=Array,Bv.U0=Array,Bv.assign(Bv,tgb))};
Bv.uba();var ugb=!0;try{new Uint8Array(1)}catch(a){ugb=!1};var $v={};$v=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 aw={},N2,vgb=[],O2=0;256>O2;O2++){N2=O2;for(var wgb=0;8>wgb;wgb++)N2=N2&1?3988292384^N2>>>1:N2>>>1;vgb[O2]=N2}aw=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^vgb[(a^b[d])&255];return a^-1};var Rv={};Rv={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 Kv=[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],Nv=[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],Wla=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Lla=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Vv=Array(576);Cv(Vv);var Wv=Array(60);Cv(Wv);var Mv=Array(512);Cv(Mv);var Jv=Array(256);Cv(Jv);var Lv=Array(29);Cv(Lv);var Ov=Array(30);Cv(Ov);var Tla,Ula,Vla,Sla=!1;var fw;fw=[new ew(0,0,0,0,function(a,b){var c=65535;for(c>a.xm-5&&(c=a.xm-5);;){if(1>=a.kc){bw(a);if(0===a.kc&&0===b)return 1;if(0===a.kc)break}a.Cb+=a.kc;a.kc=0;var d=a.Kk+c;if(0===a.Cb||a.Cb>=d)if(a.kc=a.Cb-d,a.Cb=d,Xv(a,!1),0===a.le.Je)return 1;if(a.Cb-a.Kk>=a.gj-262&&(Xv(a,!1),0===a.le.Je))return 1}a.rh=0;if(4===b)return Xv(a,!0),0===a.le.Je?3:4;a.Cb>a.Kk&&Xv(a,!1);return 1}),
new ew(4,4,8,4,cw),new ew(4,5,16,8,cw),new ew(4,6,32,32,cw),new ew(4,4,16,16,dw),new ew(8,16,32,32,dw),new ew(8,16,128,128,dw),new ew(8,32,128,256,dw),new ew(32,128,258,1024,dw),new ew(32,258,258,4096,dw)];var Rla={};Rla=function(){this.input=null;this.ox=this.mj=this.Dw=0;this.output=null;this.WR=this.Je=this.qA=0;this.msg="";this.state=null;this.gN=2;this.Pd=0};var Xla=Object.prototype.toString;
gw.prototype.push=function(a,b){var c=this.le,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=Ala(a):"[object ArrayBuffer]"===Xla.call(a)?c.input=new Uint8Array(a):c.input=a;c.Dw=0;c.mj=c.input.length;do{0===c.Je&&(c.output=new Bv.Bx(d),c.qA=0,c.Je=d);a=Qla(c,e);if(1!==a&&0!==a)return this.wr(a),this.ended=!0,!1;if(0===c.Je||0===c.mj&&(4===e||2===e))if("string"===this.options.to){var f=Bv.FR(c.output,c.qA);b=f;f=f.length;if(65537>f&&(b.subarray&&
ugb||!b.subarray))b=String.fromCharCode.apply(null,Bv.FR(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=Bv.FR(c.output,c.qA),this.chunks.push(b)}while((0<c.mj||0===c.Je)&&1!==a);if(4===e)return(c=this.le)&&c.state?(d=c.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=Sv(c,-2):(c.state=null,a=113===d?Sv(c,-3):0)):a=-2,this.wr(a),this.ended=!0,0===a;2===e&&(this.wr(0),c.Je=0);return!0};
gw.prototype.wr=function(a){0===a&&(this.result="string"===this.options.to?this.chunks.join(""):Bv.VV(this.chunks));this.chunks=[];this.err=a;this.msg=this.le.msg};var iw="@@redux/INIT"+hw(),cma="@@redux/REPLACE"+hw();var dma="function"===typeof Symbol&&Symbol.observable||"@@observable";var xgb=[0,Bfb,-3,F2];g.w(kw,Q);kw.prototype.getType=function(){return Uj(this,11)};
kw.yb=[2,13,14];var F3a=function(){var a=[0,Dfb,Cfb,C2,Bfb,C2,-1,F2,Bfb,F2,-1,Dfb,F2,Cfb,D2,xgb,C2,-1,F2];return function(b,c){a:{if(A2.length){var d=A2.pop();nda(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new ch(b,c);try{var e=new kw,f=e.ea;Fk(a)(f,b);Hi&&delete f[Hi];var h=e;break a}finally{b.free()}h=void 0}return h}}();var dwa=new g.lw("adInfoDialogEndpoint");var lya=new g.lw("adPingingEndpoint");var LK=new g.lw("adActionInterstitialRenderer");var ygb=new g.lw("adDurationRemainingRenderer");var lN=new g.lw("adHoverTextButtonRenderer");var bwa=new g.lw("adInfoDialogRenderer");var CN=new g.lw("adMessageRenderer");var mN=new g.lw("adPreviewRenderer");var nDa=new g.lw("dismissablePanelTextPortraitImageRenderer");var zgb=new g.lw("flyoutCtaRenderer");var WAa=new g.lw("instreamAdPlayerOverlayRenderer");var Agb=new g.lw("instreamAdPlayerUnderlayRenderer");var beb=new g.lw("instreamSurveyAdBackgroundImageRenderer");var vDa=new g.lw("instreamSurveyAdPlayerOverlayRenderer");var eN=new g.lw("instreamSurveyAdRenderer"),kN=new g.lw("instreamSurveyAdSingleSelectQuestionRenderer"),jN=new g.lw("instreamSurveyAdMultiSelectQuestionRenderer"),P2=new g.lw("instreamSurveyAdAnswerRenderer"),Bgb=new g.lw("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var cN=new g.lw("instreamVideoAdRenderer");var Cgb=new g.lw("textOverlayAdContentRenderer"),Dgb=new g.lw("enhancedTextOverlayAdContentRenderer"),Egb=new g.lw("imageOverlayAdContentRenderer");var qDa=new g.lw("inPlayerAdLayoutRenderer");var kDa=new g.lw("playerBytesAdLayoutRenderer");var iN=new g.lw("playerUnderlayAdLayoutRenderer");var dN=new g.lw("adIntroRenderer");var iDa=new g.lw("playerBytesSequentialLayoutRenderer");var CEa=new g.lw("slidingTextPlayerOverlayRenderer");var fN=new g.lw("surveyTextInterstitialRenderer");var Fgb=new g.lw("simpleAdBadgeRenderer");var dM=new g.lw("skipAdRenderer"),Ggb=new g.lw("skipButtonRenderer");var zDa=new g.lw("adSlotRenderer");var hN=new g.lw("squeezebackPlayerSidePanelRenderer");var Hgb=new g.lw("timedPieCountdownRenderer");var Igb=new g.lw("adAvatarViewModel");var Jgb=new g.lw("adButtonViewModel");var Kgb=new g.lw("adPreviewViewModel");var Lgb=new g.lw("playerAdAvatarLockupCardButtonedViewModel");var Mgb=new g.lw("skipAdButtonViewModel");var Ngb=new g.lw("skipAdViewModel");var Ogb=new g.lw("visitAdvertiserLinkViewModel");g.w(mw,Q);g.w(nw,Q);g.w(ow,Q);g.w(pw,Q);g.w(qw,Q);qw.prototype.clearVideo=function(){return fj(this,1)};
var qP=[1,2,3,4];var cHa={Hia:0,Fia:1,Gia:2};var dHa={Lia:0,Kia:1,Jia:2,Iia:3};var hHa={Mma:0,Lma:1,Kma:2};var oP={ypa:0,zpa:1,wpa:2,upa:3,spa:4,xpa:5,tpa:6,rpa:7};var gHa={oqa:0,nqa:1,jqa:2,fqa:3,mqa:4,pqa:5,iqa:6,eqa:7,hqa:8,lqa:9,kqa:10,qqa:11,gqa:12,rqa:13};var UHa={Fqa:0,tqa:1,wqa:2,Gqa:3,uqa:4,vqa:5,Bqa:6,Dqa:7,yqa:8,sqa:9,Aqa:10,Eqa:11,zqa:12,xqa:13,Cqa:14};var fHa={Hua:0,Fua:1,Gua:2};var THa={t0a:0,s0a:1,r0a:2,q0a:3};var SHa={A0a:0,u0a:1,v0a:5,w0a:6,y0a:2,z0a:3,x0a:4};var RHa={D0a:0,E0a:1,C0a:2,B0a:3};var QHa={I0a:0,G0a:1,H0a:2};var PHa={Veb:0,Keb:1,Reb:2,Leb:3,Seb:4,Oeb:5,Teb:6,Peb:7,Neb:8,Meb:9,Qeb:10,Ueb:11,Jeb:12};g.w(rw,Q);rw.prototype.getType=function(){return Uj(this,1)};g.w(tw,Q);g.w(uw,Q);g.w(vw,Q);g.w(ww,Q);g.w(xw,Q);xw.prototype.j=function(a,b){return Cj(this,2,Xh,a,b)};
xw.yb=[2];g.w(yw,Q);yw.prototype.j=function(a,b){return Cj(this,3,Xh,a,b)};
yw.yb=[3];g.w(zw,Q);g.w(Aw,Q);g.w(Bw,Q);g.w(Cw,Q);g.w(Dw,Q);g.w(Ew,Q);g.w(Fw,Q);g.w(Gw,Q);g.w(Hw,Q);g.w(Iw,Q);var mP=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];var oHa={pka:0,wja:2,rka:3,xja:4,vja:5,gka:6,ika:58,Ija:17,mja:18,lka:15,nka:7,Oja:8,Uia:10,Via:26,pja:45,tja:11,Hja:14,tka:16,Qia:19,Wia:20,Ria:21,uka:22,Xia:23,uja:25,Mia:27,Nia:53,Mja:28,oja:30,Xja:31,jja:32,Yia:33,Qja:34,Jja:35,Eja:36,Sia:37,dka:39,Aja:41,Fja:42,Cja:43,Bja:44,Tia:40,Zja:46,Yja:49,aka:50,Dja:51,Gja:52,ska:54,bja:57,dja:91,eja:93,cja:92,fka:60,kja:67,Oia:64,qja:65,fja:68,Pia:69,Pja:70,zja:71,yja:72,ija:73,hja:75,qka:76,Wja:77,Kja:78,hka:79,cka:80,lja:81,rja:82,gja:83,sja:84,jka:85,
bka:89,Lja:86,Tja:87,Uja:88,Sja:90,Rja:100,aja:94,Zia:95,Vja:96,Nja:97,nja:98,mka:99,oka:101,kka:102};var nHa={Dka:0,vka:1,Cka:2,xka:3,wka:4,Bka:5,Aka:6,zka:7,yka:8,Eka:9};var mHa={Lka:0,Gka:1,Fka:2,Jka:3,Mka:4,Hka:5,Ika:6,Kka:7};var lHa={Zka:0,Yka:1,Xka:2};var pHa={KLa:0,DLa:1,GLa:2,gLa:3,ILa:4,TKa:5,zLa:6,jLa:7,JLa:8,cLa:9,wLa:10,dLa:11,BLa:12,EKa:13,nLa:14,lLa:15,mLa:16,ALa:17,pLa:18,yLa:19,xLa:20,tLa:21,YKa:22,FKa:23,kLa:24,rLa:25,aLa:26,ZKa:27,qLa:28,GKa:29,uLa:30,fLa:31,HLa:32,SKa:33,sLa:34,RKa:35,UKa:36,VKa:37,bLa:38,XKa:39,WKa:40,vLa:41,oLa:42,CLa:43,hLa:44,ELa:45,FLa:46,iLa:47,eLa:70,OKa:48,LKa:49,QKa:50,PKa:51,NKa:52,KKa:53,HKa:54,MKa:55,JKa:56,IKa:57,CKa:58,BKa:59,AKa:60,uKa:61,zKa:62,vKa:63,wKa:64,tKa:65,xKa:66,DKa:67,yKa:68,sKa:69};var bHa={lpa:0,gpa:1,fpa:18,Woa:2,Poa:3,Voa:9,Qoa:10,Toa:14,Roa:4,Ooa:5,Soa:6,npa:11,Uoa:12,Loa:13,Koa:15,Zoa:16,hpa:17,ipa:19,opa:20,epa:21,bpa:22,dpa:23,Noa:24,jpa:25,Moa:26,mpa:27,apa:28,cpa:29,Yoa:30,kpa:31,Xoa:7};var qHa={Vka:0,Wka:1,Qka:2,Rka:3,Ska:4,Nka:5,Pka:6,Tka:7,Uka:8,Oka:9};var nP={Cla:0,mla:1,Bla:3,zla:4,yla:5,nla:25,Dla:6,kla:7,ela:8,qla:9,dla:12,ola:22,sla:23,tla:26,ula:27,wla:28,Ala:24,xla:13,Ela:14,rla:15,fla:16,ila:17,gla:18,hla:19,jla:20,lla:21};g.w(Jw,Q);g.w(Kw,Q);Kw.prototype.j=function(a,b){return Mj(this,1,Jw,a,b)};
Kw.yb=[1];g.w(Lw,Q);Lw.prototype.j=function(a,b){return Cj(this,2,Xh,a,b)};
Lw.prototype.getMetrics=function(a){return sea(this,2,a)};
Lw.yb=[2];g.w(Mw,Q);var rHa=[1,2];g.dV=new g.lw("browseEndpoint");var Pgb=new g.lw("confirmDialogEndpoint");var Fta=new g.lw("rawColdConfigGroup");var Eta=new g.lw("rawHotConfigGroup");var XHa={ZYa:0,YYa:1,UYa:2,SYa:3,VYa:4,TYa:5,XYa:6,WYa:7};g.XG=new g.lw("commandExecutorCommand");g.w(Nw,Q);g.w(Ow,Q);g.w(Pw,Q);g.w(Qw,Q);var uHa=[1,2,3];g.w(Rw,Q);g.w(Sw,Q);Sw.prototype.B=function(a,b){return Cj(this,1,yi,a,b)};
Sw.prototype.j=function(a,b){return Cj(this,2,yi,a,b)};
Sw.prototype.Df=function(){return Oj(this,3)};
Sw.yb=[1,2];g.w(Tw,Q);g.w(Uw,Q);Uw.prototype.j=function(a,b){return Cj(this,1,Xh,a,b)};
Uw.prototype.getMetrics=function(a){return sea(this,1,a)};
Uw.yb=[1];g.w(Vw,Q);g.w(Ww,Q);g.w(Xw,Q);g.w(Yw,Q);g.w(Zw,Q);g.w($w,Q);g.w(ax,Q);g.w(bx,Q);g.w(cx,Q);g.w(dx,Q);var FHa=[1,2],IHa=[3,4,5];g.w(ex,Q);ex.prototype.getId=function(){return Oj(this,1)};g.w(fx,Q);fx.prototype.getType=function(){return oi(dj(this,1))};g.w(gx,Q);gx.prototype.getType=function(){return oi(dj(this,1))};g.w(hx,Q);hx.prototype.getType=function(){return oi(dj(this,1))};g.w(ix,Q);var sP=[1,2,3,4];g.w(jx,Q);g.w(kx,Q);g.w(lx,Q);var rP=[1,2,3,4];g.w(nx,Q);nx.prototype.j=function(a,b){return Mj(this,2,lx,a,b)};
nx.yb=[2];var DHa=[3,4,5,6,7];g.w(ima,Q);g.w(ox,Q);ox.prototype.getId=function(){return g.Ij(this,ima,2)};g.w(px,Q);px.prototype.j=function(a,b){return Mj(this,1,ox,a,b)};
px.yb=[1,2];g.w(qx,Q);var wHa=[1,2,3];g.w(rx,Q);g.w(sx,Q);sx.prototype.j=function(a,b){return Cj(this,2,Xh,a,b)};
sx.yb=[2];g.w(tx,Q);g.w(ux,Q);g.w(vx,Q);g.w(wx,Q);g.w(xx,Q);g.w(yx,Q);yx.prototype.j=function(a,b){return Cj(this,1,Xh,a,b)};
yx.yb=[1];g.w(zx,Q);g.w(Ax,Q);g.w(Bx,Q);var WHa=[1,2,3];g.w(Cx,Q);Cx.prototype.j=function(a,b){return Mj(this,1,Bx,a,b)};
Cx.yb=[1];g.w(Dx,Q);g.w(Ex,Q);g.w(Fx,Q);g.w(Gx,Q);Gx.prototype.j=function(a,b){return Mj(this,1,Fx,a,b)};
Gx.yb=[1];g.w(Hx,Q);g.w(Ix,Q);g.w(Jx,Q);Jx.prototype.j=function(a,b){return Mj(this,1,Ix,a,b)};
Jx.yb=[1];g.w(Kx,Q);Kx.prototype.j=function(a,b){return Mj(this,1,Ix,a,b)};
Kx.yb=[1];g.w(Lx,Q);g.w(Mx,Q);var yIa={Mdb:0,Bfb:1,Xfb:32,ggb:61,tgb:67,igb:86,Vfb:42,Yfb:60,Ifb:62,egb:73,cgb:76,kgb:88,lgb:90,zgb:99,Sfb:98,Fgb:41,Ggb:69,Hgb:70,Igb:71,pSa:2,KSa:27,ANDROID:3,Kla:54,Lla:14,Tla:91,Mla:55,Nla:24,Ola:20,Pla:18,Rla:21,Vla:30,Yla:29,Zla:28,ama:34,Ula:36,Qla:38,IOS:5,YFa:15,iGa:92,ZFa:40,bGa:25,cGa:17,dGa:19,eGa:64,fGa:66,gGa:26,kGa:22,vGa:33,wGa:68,xGa:35,hGa:53,jGa:37,aGa:39,Sbb:7,Scb:57,hdb:43,sdb:59,idb:93,Xla:74,zdb:75,Adb:85,Bdb:65,Ddb:80,Edb:8,Qbb:10,Gdb:58,Fdb:63,Cdb:72,Wla:23,jhb:11,khb:13,
Sqa:12,Rbb:16,Tfb:56,hgb:31,mSa:77,rDa:84,bgb:87,tDa:89,sDa:94,rPa:95};var Qgb={Z3:0,CLASSIC:1,J3:2,w1:3,Y0:4,P3:5,s1:6,uU:7};g.w(Nx,Q);Nx.prototype.X5=function(){return g.Tj(this,3)};
Nx.prototype.f6=function(){return g.Tj(this,5)};
Nx.prototype.Gr=function(a){return N(this,5,a)};g.w(Ox,Q);g.w(Px,Q);g.w(Qx,Q);g.w(Rx,Q);g.w(Sx,Q);Sx.yb=[2];g.w(g.Tx,Q);g.Tx.prototype.Rs=aa(0);g.Tx.prototype.getPlayerType=function(){return Uj(this,36)};
g.Tx.prototype.setHomeGroupInfo=function(a){return Jj(this,Sx,81,a)};
g.Tx.prototype.clearLocationPlayabilityToken=function(){return fj(this,89)};
g.Tx.yb=[9,66,32,86,100,101];g.w(Ux,Q);Ux.prototype.getKey=function(){return g.Tj(this,1)};
Ux.prototype.getValue=function(){return g.Tj(this,Gj(this,yta,2))};
var yta=[2,3,4,5,6];g.w(Vx,Q);Vx.yb=[15,26,28];g.w(Wx,Q);Wx.yb=[5];g.w(Xx,Q);Xx.prototype.setToken=function(a){return N(this,2,a)};g.w(Yx,Q);Yx.prototype.setSafetyMode=function(a){return O(this,5,a)};
Yx.yb=[12];g.w(Zx,Q);Zx.prototype.ex=function(a){return Jj(this,g.Tx,1,a)};
Zx.yb=[12];var oN=new g.lw("thumbnailLandscapePortraitRenderer");var eIa={j6a:0,e6a:1,h6a:2,i6a:3,f6a:4,g6a:5};var cIa={P6a:0,O6a:1,k6a:2,l6a:3,m6a:4,n6a:5,o6a:6,p6a:7,q6a:8,s6a:9,t6a:10,u6a:11,v6a:12,w6a:13,x6a:14,y6a:15,A6a:16,B6a:17,E6a:18,F6a:19,G6a:20,J6a:21,H6a:22,I6a:23,K6a:24,L6a:25,M6a:26,N6a:27,D6a:28,r6a:29,z6a:30,C6a:31};var bIa={Z6a:0,Q6a:1,R6a:2,S6a:3,T6a:4,U6a:5,V6a:6,W6a:7,X6a:8,Y6a:9,a7a:10};var dIa={e7a:0,c7a:1,d7a:2,b7a:3};var GHa={Xpa:0,Dpa:1,Ypa:2,Rpa:3,Apa:4,Bpa:5,Ppa:6,Cpa:7,Npa:8,Opa:13,Hpa:9,Jpa:10,Mpa:11,Zpa:12,Fpa:14,Lpa:15,Ipa:16,Tpa:17,Qpa:18,Wpa:19,Upa:20,Gpa:21,Vpa:22,Epa:23,Kpa:24,Spa:25};var HHa={dqa:0,cqa:1,bqa:2,aqa:3};var YHa={q9a:0,o9a:1,p9a:2};var yHa={Tma:0,Rma:4,Qma:2,Oma:5,Pma:8,Sma:9,Nma:3,Uma:6,Vma:7};var zHa={Gra:0,Dra:1,Era:2,Hra:3,Ira:4,Fra:5};var xHa={isa:0,gsa:8,esa:2,csa:5,dsa:9,fsa:3,bsa:4,jsa:6,ksa:7,hsa:10};var LHa={Rha:0,Pha:1,Qha:2,Tha:3,Uha:4,Sha:5};var gIa={h_a:0,a_a:1,c_a:2,g_a:3,e_a:4,d_a:6,b_a:7,f_a:5};var VHa={afb:0,Zeb:1,bfb:2};var MHa={Feb:0,veb:1,xeb:2,yeb:3,zeb:4,Aeb:5,Beb:6,Ceb:7,Deb:8,Eeb:9};var Rgb={dfb:0,cfb:1};var NHa={T5a:0,G5a:1,S5a:2,H5a:3,I5a:4,M5a:5,L5a:6,K5a:7,U5a:8,E5a:9,F5a:10,R5a:11,Q5a:12,P5a:13,J5a:14,O5a:15,N5a:16};var oJa={Gca:0,Eca:1,Dca:2,Fca:3};g.Sgb=new g.lw("changeEngagementPanelVisibilityAction");var Lwa=new g.lw("continuationCommand");g.Tgb=new g.lw("openPopupAction");g.Q2=new g.lw("webCommandMetadata");var zRa=new g.lw("metadataBadgeRenderer");var Kwa=new g.lw("signalServiceEndpoint");var qKa={hia:0,iia:1,dia:2,gia:3,eia:4,fia:5};var rKa={qia:0,mia:1,jia:2,pia:3,ria:4,lia:5,kia:6,oia:7};g.w($x,Q);$x.prototype.getType=function(){return Uj(this,1)};var yP={eHa:0,fHa:1,dHa:2,ZGa:3,bHa:4,cHa:5,gHa:6,aHa:7};var Ugb={kSa:0,dSa:1,eSa:2,jSa:3,iSa:6,hSa:7,fSa:8,gSa:9,cSa:10};var Vgb={qTa:0,nTa:1,pTa:2,oTa:3,mTa:4};var Wgb={EXa:0,pXa:1,FXa:2,DXa:3,CXa:4,BXa:5,AXa:6,sXa:7,qXa:8,wXa:9,JXa:10,rXa:11,yXa:12,HXa:13,IXa:14,zXa:15,vXa:16,uXa:17,xXa:18,tXa:19,GXa:20};var tHa={NXa:0,MXa:86};var zP={z_a:0,y_a:1,r_a:2,o_a:3,q_a:4,A_a:5,x_a:6,m_a:7,B_a:8,k_a:9,v_a:10,C_a:11,w_a:12,n_a:13,j_a:14,p_a:15,t_a:16,s_a:17,u_a:18,l_a:19};var Xgb={A5a:0,v5a:1,C5a:2,w5a:3,B5a:4,y5a:5,z5a:6,x5a:7};var OF=new g.lw("innertubeCommand");var qeb=new g.lw("loggingDirectives");var Ygb={j1:0,d1:1,f1:2,e1:3};var Joa={j1:"EMBEDDED_PLAYER_MODE_UNKNOWN",d1:"EMBEDDED_PLAYER_MODE_DEFAULT",f1:"EMBEDDED_PLAYER_MODE_PFP",e1:"EMBEDDED_PLAYER_MODE_PFL"};var $Ra=new g.lw("channelThumbnailEndpoint");var ZRa=new g.lw("embeddedPlayerErrorMessageRenderer");var VRa=new g.lw("embeddedPlayerOverlayVideoDetailsRenderer"),aSa=new g.lw("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),bSa=new g.lw("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var wRa=new g.lw("embedsInfoPanelRenderer");var JHa={VNa:0,JNa:1,TNa:2,UNa:3,KNa:4,ONa:5,QNa:6,MNa:7,NNa:8,SNa:9,PNa:11,RNa:12,LNa:13};var Zgb=new g.lw("feedbackEndpoint");var $gb=new g.lw("callToActionButtonViewModel");g.w(ay,Q);g.w(by,Q);g.w(cy,Q);var DJa=[1,2];var ahb={oHa:0,pHa:1,nHa:2,iHa:3,hHa:4,jHa:5,lHa:6,kHa:7,mHa:8};var bhb={JHa:0,xHa:1,IHa:2,HHa:3,sHa:4,uHa:5,vHa:6,tHa:7,BHa:8,yHa:9,zHa:10,AHa:16,qHa:11,KHa:12,rHa:13,FHa:14,wHa:15,GHa:17,CHa:18,DHa:19,EHa:20};var chb={OHa:0,LHa:1,NHa:2,MHa:3};var dhb={yEa:0,fEa:1,zEa:8,qEa:16,rEa:17,uEa:2,sEa:3,tEa:4,iEa:5,gEa:6,hEa:7,xEa:9,vEa:10,wEa:11,pEa:12,mEa:13,oEa:14,nEa:15,lEa:18,jEa:19,kEa:20,eEa:21};var ehb={gXa:0,hXa:1,fXa:2};var fhb={nXa:0,jXa:1,lXa:2,iXa:3,kXa:4,mXa:5};var ghb={dIa:0,UHa:1,VHa:2,WHa:3,bIa:4,YHa:5,ZHa:6,XHa:7,aIa:8,THa:9,cIa:10};var hhb={BMa:0,xMa:1,kMa:2,wMa:3,fMa:4,uMa:5,tMa:6,sMa:7,EMa:8,mMa:9,gMa:10,nMa:11,oMa:12,hMa:13,rMa:14,DMa:15,qMa:16,pMa:17,iMa:18,jMa:19,lMa:20,yMa:21,zMa:22,AMa:23,CMa:24,vMa:25};var ihb={aNa:0,WMa:9,QMa:8,cNa:1,hNa:2,fNa:3,gNa:13,XMa:4,SMa:21,TMa:20,UMa:5,MMa:6,LMa:7,OMa:14,NMa:15,jNa:17,kNa:10,VMa:16,PMa:18,ZMa:19,JMa:11,KMa:12,dNa:22,eNa:23,IMa:24,bNa:25,HMa:26,iNa:27,RMa:28,YMa:29};var jhb={loa:0,joa:1,koa:2};var khb={WLa:0,OLa:1,RLa:2,ULa:3,PLa:4,MLa:5,SLa:6,TLa:7,LLa:8,VLa:9,QLa:10,NLa:11};var lhb={ooa:0,moa:1,poa:2,noa:3};var mhb=new g.lw("interactionLoggingCommandMetadata");var bra={Qfb:"WEB_DISPLAY_MODE_UNKNOWN",Mfb:"WEB_DISPLAY_MODE_BROWSER",Ofb:"WEB_DISPLAY_MODE_MINIMAL_UI",Pfb:"WEB_DISPLAY_MODE_STANDALONE",Nfb:"WEB_DISPLAY_MODE_FULLSCREEN"};g.w(dy,Q);g.w(ey,Q);g.w(fy,Q);fy.prototype.j=function(a,b){return Mj(this,1,ey,a,b)};
fy.yb=[1];var OKa={uda:0,Vca:1,fda:2,kda:3,qda:4,rda:5,vda:6,lda:7,Uca:8,cda:9,bda:10,Hca:11,eda:12,Qca:14,Xca:15,jda:16,ida:17,hda:43,dda:18,Wca:29,Yca:19,Nca:20,Rca:21,tda:22,Ica:23,xda:24,Zca:25,Oca:26,nda:27,Pca:28,oda:30,pda:31,gda:32,sda:33,Jca:34,mda:35,yda:36,Lca:37,Mca:38,wda:39,Sca:40,Tca:41,Kca:42};var nhb={vra:0,ura:1,tra:2};g.w(gy,Q);g.w(hy,Q);var ohb={Mfa:0,Hfa:114,Jea:1,Bfa:4,Cfa:14,wea:15,Dfa:17,iea:6,mea:7,oea:8,nea:9,uea:5,Yea:16,Vea:101,Afa:20,zfa:26,rfa:28,Aea:104,Vda:105,Nfa:50,yfa:88,ufa:89,wfa:90,vfa:91,Bea:2,Oea:92,Pea:19,Yda:25,Jfa:107,lea:29,Eea:93,Gea:94,Fea:95,Kfa:30,Wea:31,Nea:116,Lea:3,Hea:82,Dea:83,Cea:84,Kea:85,tfa:11,Ofa:27,Zea:10,Gfa:115,Sda:12,Uda:13,Tda:49,Rda:106,gea:18,Uea:21,rea:22,Qda:23,xfa:24,Hda:32,Tea:33,Lda:34,Vfa:35,dea:36,gfa:37,yea:38,Ifa:39,Efa:40,Ffa:41,Qfa:42,hea:43,Lfa:44,xea:45,qea:46,afa:47,Xea:48,
Iea:51,vea:52,jea:53,sfa:54,zea:55,Xda:56,cea:57,eea:99,Wda:58,dfa:59,sea:60,efa:61,bfa:62,Rea:63,Ufa:64,Rfa:65,Pfa:66,Tfa:67,Sfa:68,Gda:69,cfa:70,ifa:71,jfa:72,mfa:73,nfa:74,kfa:75,lfa:117,aea:76,bea:77,Nda:78,fea:79,Mea:80,tea:81,Zda:86,Pda:87,Jda:97,Ida:103,Qea:98,ffa:100,Mda:102,qfa:108,pfa:109,Kda:110,Oda:111,Sea:112,ofa:113,pea:118};var phb={lga:0,fga:1,hga:2,jga:3,dga:4,Xfa:5,Zfa:6,cga:7,iga:8,Yfa:9,aga:10,gga:13,kga:14,Wfa:11,ega:12};var qhb={lha:0,pga:1,qga:2,tga:3,Bga:4,eha:42,Wga:9,fha:10,zga:11,cha:12,bha:13,Jga:43,Vga:14,Kga:15,iha:47,Mga:46,Rga:16,Qga:17,vga:18,Zga:19,yga:20,aha:21,jha:22,gha:23,hha:24,xga:25,rga:26,dha:27,Oga:28,Tga:38,Uga:39,Sga:49,Yga:5,Lga:6,Aga:7,Fga:8,Pga:29,Xga:30,Nga:31,nga:32,Gga:33,Ega:34,Cga:35,nha:36,Iga:37,mha:40,Hga:41,oga:44,Dga:45,wga:48};var aKa={rha:0,qha:1,oha:2,pha:3};var ZJa={Pra:0,Mra:1,Lra:2,Ora:3,Nra:4};var rhb={vsa:0,tsa:1,qsa:2,usa:3,rsa:4,ssa:5};var shb={ysa:0,wsa:1,xsa:2};var thb={Fsa:0,Esa:1,Csa:2,Dsa:3,Bsa:4};var uhb={Isa:0,Gsa:1,Hsa:2,Jsa:3};var vhb={Psa:0,Ksa:1,Osa:2,Nsa:3,Msa:4,Lsa:5};var whb={Vsa:0,Usa:1,Qsa:2};var xhb={Tsa:0,Rsa:1,Ssa:2};var yhb={Ysa:0,Wsa:1,Xsa:2};var zhb={nta:0,jta:1,ita:2,dta:3,hta:4,ata:5,bta:6,kta:7,eta:8,lta:9,gta:10,Zsa:11,fta:12,mta:13};var Ahb={tta:0,rta:1,sta:2,qta:3,pta:4};var YJa={JJa:0,fJa:1,gJa:2,rIa:3,WIa:4,hJa:5,XIa:6,sIa:7,iJa:8,kIa:9,lIa:10,AIa:11,qIa:12,tIa:13,ZIa:14,yIa:15,jIa:16,yJa:17,UIa:18,uIa:19,cJa:20,aJa:21,bJa:22,iIa:23,HJa:25,xJa:26,oKa:61,MIa:35,EIa:36,CIa:37,IIa:38,HIa:93,KIa:39,JIa:40,QIa:41,EJa:97,FJa:106,GJa:102,NIa:42,LIa:43,RIa:44,SIa:45,nIa:24,oIa:27,pIa:28,gKa:29,jKa:75,hKa:104,iKa:30,aKa:98,dKa:108,bKa:105,cKa:89,kKa:31,lKa:86,eKa:32,fKa:91,OJa:51,QJa:52,ZJa:62,SJa:70,WJa:63,UJa:64,PJa:65,YJa:66,RJa:71,VJa:67,TJa:68,XJa:69,nKa:33,OIa:46,
PIa:47,zJa:49,AJa:50,BJa:94,rJa:77,kJa:78,jJa:79,lJa:80,YIa:53,KJa:54,MJa:55,LJa:56,tJa:112,sJa:57,uJa:101,wJa:110,vJa:96,NJa:58,dJa:59,eJa:60,mJa:72,nJa:107,qJa:84,oJa:92,wIa:73,CJa:74,mIa:76,IJa:81,DIa:82,DJa:83,FIa:85,GIa:95,mKa:87,VIa:88,zIa:90,pJa:99,BIa:100,vIa:103,xIa:109,TIa:111};var bKa={W0:0,Xqa:1,hIa:2,Bra:3,S3:4,T3:5,e0a:6,T0a:7,tYa:8,f4:9,Yqa:10,uha:11,xha:12,rfb:13,Lha:14,Nha:15,Fha:16,Gha:17,yha:18,Sna:19,Iva:20,dFa:21,TFa:22,i4:23,b9a:24,tha:25,RQa:26,QQa:47,W3:27,Rna:28,d0a:29,nBa:30,cFa:31,sra:32,peb:33,ieb:34,feb:35,neb:36,oeb:37,keb:38,leb:39,meb:40,heb:41,geb:42,ioa:43,K3:44,rna:45,M0:46,Dda:48,t1:49,V8a:50,Eua:51,mNa:52,Ohb:53};var Bhb={mWa:0,bWa:1,gWa:2,eWa:3,fWa:4,aWa:5,kWa:6,lWa:7,ZVa:8,iWa:9,cWa:10,dWa:11,hWa:12,jWa:13};var Chb={rWa:0,sWa:1,nWa:2,oWa:3,qWa:4,pWa:5};var XJa={SWa:0,OWa:1,JWa:2,KWa:3,LWa:21,EWa:4,yWa:5,BWa:6,AWa:7,DWa:8,zWa:24,RWa:9,xWa:10,QWa:11,PWa:12,IWa:22,NWa:13,MWa:20,FWa:14,HWa:15,GWa:16,wWa:17,vWa:19,CWa:18,uWa:23};var dKa={a5a:0,U4a:1,V4a:14,X4a:15,Z4a:20,Y4a:21,I4a:2,Q4a:3,N4a:4,O4a:5,F4a:6,R4a:7,M4a:8,J4a:9,H4a:10,T4a:11,P4a:12,S4a:13,G4a:16,W4a:17,L4a:18,K4a:19};var Dhb={m5a:0,l5a:1,e5a:2,f5a:3,j5a:4,i5a:5,k5a:6,g5a:7,h5a:8};var eKa={oab:0,jab:1,nab:2,mab:3,bab:4,hab:5,eab:6,dab:8,cab:9,iab:7};var xP={Obb:0,pab:1,Xab:2,Ibb:3,Dbb:4,zab:5,jbb:6,Mab:7,qbb:8,fbb:9,Bbb:10,Fbb:11,sbb:12,Aab:13,gbb:14,Kab:15,xab:16,dbb:17,rbb:18,Ebb:19,Hab:20,Pab:21,Mbb:22,Lbb:57,Oab:23,Gab:24,yab:25,Nbb:26,bbb:27,Gbb:28,Hbb:29,lbb:30,Kbb:31,Jab:32,tbb:33,Uab:34,Wab:35,ebb:36,cbb:37,vbb:38,hbb:39,Pbb:40,Qab:41,Rab:42,Sab:43,vab:44,uab:45,sab:46,qab:58,rab:59,zbb:47,Abb:48,mbb:67,nbb:68,Lab:49,ubb:50,xbb:51,wbb:52,Zab:53,Eab:54,Jbb:55,Vab:56,obb:60,Yab:61,Nab:62,Cbb:63,Iab:64,abb:69,Bab:65,wab:66,Dab:70,Cab:71,
kbb:74,Fab:72,pbb:73};g.w(iy,Q);g.w(jy,Q);g.w(ky,Q);ky.prototype.Ok=function(){return g.Tj(this,1)};g.w(ly,Q);g.w(my,Q);g.w(ny,Q);var gKa=[1,2];g.w(oy,Q);oy.prototype.getType=function(){return Uj(this,1)};
var fKa=[3,4];g.w(py,Q);g.k=py.prototype;g.k.rz=function(){return g.Tj(this,1)};
g.k.y4=function(a,b){return Mj(this,2,oy,a,b)};
g.k.z4=function(a,b){return Mj(this,3,oy,a,b)};
g.k.x4=function(a,b){return Mj(this,4,oy,a,b)};
g.k.B4=function(a,b){return Mj(this,5,oy,a,b)};
g.k.A4=function(a,b){return Mj(this,6,oy,a,b)};
py.yb=[2,3,4,5,6];g.w(qy,Q);qy.prototype.getType=function(){return Uj(this,2)};
qy.prototype.j=function(a,b){return Cj(this,5,Xh,a,b)};
qy.yb=[5];g.w(ry,Q);ry.prototype.B=function(a,b){return Cj(this,2,Xh,a,b)};
ry.prototype.j=function(a,b){return Mj(this,4,oy,a,b)};
ry.prototype.D=function(a,b){return Mj(this,5,oy,a,b)};
ry.prototype.C=function(a,b){return Mj(this,6,oy,a,b)};
ry.yb=[2,4,5,6];g.w(sy,Q);sy.prototype.getType=function(){return Uj(this,2)};g.w(ty,Q);ty.prototype.j=function(a,b){return Mj(this,1,sy,a,b)};
ty.yb=[1];g.w(uy,Q);g.w(vy,Q);vy.prototype.j=function(a,b){return Cj(this,1,Xh,a,b)};
vy.yb=[1];g.w(wy,Q);wy.prototype.j=function(a,b){return Cj(this,1,Xh,a,b)};
wy.prototype.B=function(a,b){return Cj(this,2,Xh,a,b)};
wy.yb=[1,2];g.w(yy,Q);yy.prototype.j=function(a,b){return Mj(this,2,vy,a,b)};
yy.yb=[2];g.w(zy,Q);g.w(Ay,Q);g.w(By,Q);By.prototype.Ok=function(){return g.Tj(this,1)};
By.prototype.j=function(a,b){return Mj(this,3,Ay,a,b)};
By.yb=[3];g.w(Cy,Q);Cy.prototype.ph=function(){return Uj(this,1)};g.w(Dy,Q);Dy.prototype.qf=function(){return Uj(this,2)};g.w(Ey,Q);g.w(Fy,Q);g.w(Gy,Q);Gy.prototype.getType=function(){return Uj(this,1)};
Gy.prototype.Ok=function(){return g.Tj(this,8)};g.w(Hy,Q);Hy.prototype.Ok=function(){return g.Tj(this,1)};g.w(Iy,Q);Iy.prototype.Ok=function(){return g.Tj(this,1)};g.w(Jy,Q);Jy.prototype.Ok=function(){return g.Tj(this,1)};g.w(Ky,Q);Ky.prototype.Ok=function(){return g.Tj(this,2)};
Ky.prototype.KH=function(){return g.Tj(this,4)};g.w(Ly,Q);Ly.prototype.Ok=function(){return g.Tj(this,1)};g.w(My,Q);My.prototype.Ok=function(){return g.Tj(this,1)};g.w(Ny,Q);g.w(Oy,Q);g.w(Py,Q);g.w(Qy,Q);Qy.prototype.Ok=function(){return g.Tj(this,2)};g.w(Ry,Q);g.w(Sy,Q);g.w(Ty,Q);var R2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];g.w(Uy,Q);g.w(Vy,Q);g.w(Wy,Q);g.w(Xy,Q);g.w(Yy,Q);Yy.prototype.getState=function(){return Uj(this,1)};
Yy.prototype.Dc=function(a){return O(this,1,a)};g.w(Zy,Q);g.w($y,Q);$y.prototype.j=function(a,b){return Mj(this,1,Zy,a,b)};
$y.yb=[1];g.w(az,Q);az.prototype.j=function(a,b){return Mj(this,2,$y,a,b)};
az.prototype.B=function(a,b){return Mj(this,3,Xy,a,b)};
az.yb=[2,3];g.w(bz,Q);bz.prototype.B=function(a,b){return Mj(this,1,az,a,b)};
bz.prototype.j=function(a,b){return Mj(this,2,Wy,a,b)};
bz.yb=[1,2];g.w(cz,Q);g.w(dz,Q);g.w(ez,Q);g.w(fz,Q);fz.prototype.jn=function(){return qea(this,4)};g.w(gz,Q);gz.prototype.getStatus=function(){return Qj(this,2)};g.w(hz,Q);g.w(iz,Q);iz.prototype.setConfig=function(a){return Jj(this,hz,2,a)};g.w(jz,Q);g.w(kz,Q);kz.prototype.getKey=function(){return g.Tj(this,1)};
kz.prototype.getValue=function(){return g.Tj(this,2)};g.w(lz,Q);g.w(mz,Q);g.w(nz,Q);nz.prototype.j=function(a,b){return Mj(this,3,mz,a,b)};
nz.yb=[3];g.w(oz,Q);g.w(pz,Q);g.w(qz,Q);g.k=qz.prototype;g.k.getSettings=function(){return g.Ij(this,pz,1)};
g.k.hh=function(a){return Jj(this,pz,1,a)};
g.k.getState=function(){return Uj(this,2)};
g.k.Dc=function(a){return O(this,2,a)};
g.k.jn=function(){return Sj(this,3)};g.w(rz,Q);g.w(sz,Q);sz.prototype.jn=function(){return Sj(this,4)};g.w(tz,Q);g.w(uz,Q);g.k=uz.prototype;g.k.getType=function(){return Uj(this,1)};
g.k.t4=function(a,b){return Mj(this,2,tz,a,b)};
g.k.jn=function(){return Sj(this,6)};
g.k.getPlaybackRate=function(){return rea(this,7)};
g.k.setPlaybackRate=function(a){return ak(this,7,a)};
g.k.sR=function(a){Vj(this,8,a)};
uz.yb=[2];g.w(vz,Q);vz.prototype.jn=function(){return Sj(this,3)};g.w(wz,Q);wz.prototype.j=function(a,b){return Mj(this,1,uz,a,b)};
wz.prototype.B=function(a,b){return Mj(this,2,vz,a,b)};
wz.yb=[1,2];g.w(xz,Q);xz.prototype.getState=function(){return Uj(this,1)};
xz.prototype.Dc=function(a){return O(this,1,a)};g.w(g.yz,Q);g.w(g.zz,Q);g.zz.prototype.ex=function(a){return O(this,1,a)};
g.zz.prototype.j=function(a,b){return Mj(this,4,wz,a,b)};
g.zz.prototype.Mv=aa(1);g.zz.yb=[4];g.w(Az,Q);Az.prototype.Df=function(){return Uj(this,4)};g.w(Bz,Q);Bz.prototype.j=function(a,b){return Cj(this,1,Xh,a,b)};
Bz.prototype.Hg=function(a,b){jea(this,1,Xh,a,b,oea)};
Bz.yb=[1];g.w(Cz,Q);Cz.prototype.j=function(a,b){return Mj(this,4,kz,a,b)};
Cz.prototype.B=function(a,b){return Cj(this,5,Pda,a,b)};
Cz.yb=[4,5];g.w(Dz,Q);g.w(Ez,Q);g.w(Fz,Q);g.w(Gz,Q);Gz.prototype.Df=function(){return g.Tj(this,2)};g.w(Hz,Q);Hz.prototype.j=function(a,b){return Mj(this,1,Gz,a,b)};
Hz.yb=[1];g.w(Iz,Q);Iz.prototype.Df=function(){return g.Tj(this,2)};g.w(Jz,Q);Jz.prototype.j=function(a,b){return Mj(this,1,Iz,a,b)};
Jz.yb=[1];g.w(Kz,Q);var yJa=[1,2,3];g.w(Lz,Q);Lz.prototype.j=function(a,b){return Mj(this,1,Kz,a,b)};
Lz.yb=[1];g.w(Mz,Q);var NF=[2,3,4,5];g.w(Nz,Q);Nz.prototype.getMessage=function(){return g.Tj(this,1)};g.w(Oz,Q);g.w(Pz,Q);g.w(Qz,Q);g.w(Rz,Q);Rz.prototype.Gk=function(a,b){return Mj(this,5,Qz,a,b)};
Rz.yb=[5];g.w(Sz,Q);g.w(Tz,Q);Tz.prototype.j=function(a,b){return Mj(this,3,Sz,a,b)};
Tz.prototype.B=function(a,b){return Cj(this,4,Xh,a,b)};
Tz.yb=[3,4];g.w(Uz,Q);g.w(Vz,Q);Vz.prototype.B=function(a,b){return Mj(this,19,Qx,a,b)};
Vz.prototype.j=function(a,b){return Mj(this,20,Px,a,b)};
Vz.yb=[19,20];g.w(Wz,Q);g.w(Xz,Q);g.w(Yz,Q);Yz.prototype.j=function(a,b){return Mj(this,2,Wz,a,b)};
Yz.prototype.setConfig=function(a){return Jj(this,Xz,3,a)};
Yz.prototype.C=function(a,b){return Mj(this,5,Wz,a,b)};
Yz.prototype.B=function(a,b){return Mj(this,9,cy,a,b)};
Yz.yb=[2,5,9];g.w(Zz,Q);Zz.prototype.jn=function(){return qea(this,2)};g.w($z,Q);$z.prototype.j=function(a,b){return Mj(this,9,Zz,a,b)};
$z.yb=[9];g.w(aA,Q);g.w(bA,Q);g.w(cA,Q);g.w(dA,Q);g.w(eA,Q);eA.prototype.getType=function(){return Uj(this,2)};
eA.prototype.j=function(a,b){return Mj(this,3,dA,a,b)};
eA.yb=[3];g.w(fA,Q);fA.prototype.j=function(a,b){return Mj(this,10,cz,a,b)};
fA.prototype.B=function(a,b){return Mj(this,17,$z,a,b)};
fA.yb=[10,17];g.w(gA,Q);var lJa={Hma:0,Gma:1,Dma:2,Ema:3,Fma:4};var Ehb={Qna:0,Mna:1,Ona:2,Nna:3,Pna:4};g.w(hA,Q);hA.prototype.Df=function(){return g.Tj(this,2)};
hA.prototype.Ok=function(){return g.Tj(this,3)};
hA.prototype.KH=function(){return g.Tj(this,7)};
hA.yb=[10];var FIa={Una:0,Tna:1,Wna:2,Vna:3};var EIa={goa:0,foa:1,Yna:2,Zna:3,aoa:4,boa:5,doa:6,eoa:7,Xna:8,coa:9};var RIa={Eva:0,Fva:3,Gva:1,Dva:2};var AIa={Uwa:0,Ova:1,Xva:2,Zva:3,dwa:4,ewa:5,jwa:6,kwa:7,lwa:8,mwa:9,nwa:10,qwa:11,rwa:12,swa:13,twa:14,uwa:15,zwa:16,Dwa:17,Ewa:18,Hwa:19,Jwa:20,Lwa:21,Mwa:22,Owa:23,Qwa:24,Vwa:25,Wwa:26,Bwa:27,Rwa:28,Cwa:29,pwa:30,gwa:31,owa:32,axa:33,cxa:34,Nva:35,Uva:36,Swa:37,Twa:38,Yva:39,vwa:40,wwa:51,Tva:41,Pva:42,bwa:43,xwa:44,Vva:45,Awa:46,Kwa:47,Sva:48,Gwa:49,ywa:50,Wva:52,cwa:53,fwa:54,Nwa:55,Pwa:56,Ywa:57,Xwa:58,Iwa:59,Qva:60,hwa:61,Rva:62,Zwa:63,bxa:64,Fwa:65,iwa:66};var DIa={zAa:0,Dxa:1,pza:2,wAa:3,RAa:4,iza:5,qza:6,Lxa:7,Oxa:8,Nxa:9,Fza:10,hza:11,gza:12,Pza:13,Yza:14,xAa:15,MAa:16,Kxa:17,mxa:18,yya:19,Zxa:20,nza:21,uza:22,yAa:23,oxa:24,rxa:25,Kza:26,hya:116,Bya:27,Cya:28,Eza:29,Fxa:30,uya:31,mza:32,Dza:33,kxa:34,lxa:35,ixa:36,jxa:37,rza:38,sza:39,Sza:40,Jxa:41,PAa:42,Iza:43,Cza:44,Gza:45,jza:46,Hza:47,pya:48,Uxa:49,Txa:160,TAa:50,Aya:51,zya:52,Wxa:53,Xxa:54,tAa:55,sAa:56,rAa:57,uAa:58,eya:59,qya:60,LAa:61,Oza:62,Jza:63,Mza:64,tza:65,wya:69,xya:121,SAa:70,tya:71,
nAa:72,oAa:73,Qza:74,Rza:75,sya:76,rya:77,Bza:78,Aza:80,fxa:81,wxa:115,uxa:120,vxa:122,Cxa:123,Eya:124,Dya:125,txa:126,cAa:127,aAa:128,bAa:129,QAa:130,hxa:131,sxa:132,pxa:133,vya:152,oya:178,Yxa:179,Lza:181,nya:193,Ixa:198,Hya:82,Jya:83,Yya:84,Kya:85,eza:86,Iya:87,Mya:88,Sya:89,Vya:90,aza:91,Xya:92,Zya:93,Gya:94,Nya:95,Wya:96,Pya:97,Oya:98,Fya:99,Lya:100,bza:101,Tya:102,fza:103,cza:104,Qya:105,dza:106,Uya:107,Rya:118,BAa:108,FAa:109,EAa:110,DAa:111,GAa:112,CAa:113,AAa:114,gxa:134,qxa:138,xxa:139,
yxa:140,Bxa:141,Gxa:142,Mxa:144,Pxa:165,Hxa:143,Vxa:135,bya:145,cya:146,oza:147,IAa:148,KAa:149,NAa:150,qAa:153,dxa:154,JAa:155,OAa:156,nxa:157,aya:158,dAa:159,jya:161,exa:162,Zza:163,vAa:164,iya:166,dya:167,yza:168,gya:169,fya:170,xza:171,Nza:172,kya:173,Axa:174,lya:175,Xza:176,mya:177,Exa:182,mAa:183,lAa:184,lza:136,kza:137,pAa:151,Rxa:180,Sxa:190,Qxa:192,Uza:185,Wza:186,Vza:187,Tza:191,zxa:188,HAa:189,vza:194,wza:199,hAa:66,eAa:67,fAa:117,iAa:68,kAa:197,gAa:195,jAa:196};var Fhb={Wqa:0,Vqa:1,Tqa:2,Uqa:3};var ZKa={K2a:0,u3a:1,A3a:2,e3a:3,f3a:4,g3a:5,C3a:39,D3a:6,y3a:7,t3a:50,B3a:69,v3a:70,w3a:71,o3a:74,h3a:32,i3a:44,j3a:33,z3a:8,k3a:9,l3a:10,n3a:11,m3a:12,q3a:73,r3a:77,s3a:78,x3a:84,p3a:85,L2a:56,M2a:57,N2a:58,O2a:59,P2a:60,Q2a:61,f4a:13,g4a:14,h4a:15,p4a:16,k4a:17,r4a:18,q4a:19,m4a:20,n4a:21,i4a:34,o4a:35,l4a:36,j4a:49,U2a:37,V2a:38,X2a:40,Z2a:41,Y2a:42,a3a:43,b3a:51,W2a:52,T2a:67,R2a:22,S2a:23,H3a:24,O3a:25,P3a:62,N3a:26,L3a:27,G3a:48,E3a:53,F3a:63,Q3a:66,K3a:54,M3a:68,R3a:72,J3a:75,I3a:76,d3a:64,
c3a:65,S3a:28,V3a:29,U3a:30,T3a:31,c4a:45,e4a:46,d4a:47,b4a:83,Z3a:55,X3a:79,W3a:80,Y3a:81,a4a:82};var WKa={t4a:0,u4a:1,s4a:2};var aLa={x4a:0,w4a:1,v4a:2};var $Ka={E4a:0,C4a:1,A4a:2,D4a:3,y4a:4,z4a:5,B4a:6};var FKa={P8a:0,O8a:1,N8a:2};var EKa={T8a:0,R8a:1,Q8a:2,S8a:3};g.w(iA,Q);g.w(jA,Q);g.w(kA,Q);g.w(lA,Q);g.w(mA,Q);g.w(nA,Q);nA.prototype.hasFeature=function(){return null!=oi(dj(this,2))};g.w(oA,Q);oA.prototype.Yl=function(){return g.Tj(this,7)};g.w(pA,Q);g.w(qA,Q);g.w(rA,Q);rA.prototype.getName=function(){return Uj(this,1)};
rA.prototype.getStatus=function(){return Uj(this,2)};
rA.prototype.getState=function(){return Uj(this,3)};
rA.prototype.Dc=function(a){return O(this,3,a)};g.w(sA,Q);sA.prototype.j=function(a,b){return Mj(this,2,rA,a,b)};
sA.yb=[2];g.w(tA,Q);g.w(uA,Q);uA.prototype.j=function(a,b){return Mj(this,1,sA,a,b)};
uA.prototype.B=function(a,b){return Mj(this,2,sA,a,b)};
uA.yb=[1,2];var VKa={RHa:0,PHa:1,QHa:2};var CKa={jOa:0,dOa:1,gOa:2,kOa:3,eOa:4,fOa:5,hOa:6,iOa:7};var DKa={nOa:0,mOa:1,lOa:2};var BKa={rSa:0,sSa:1,qSa:2};var AKa={ISa:0,vSa:1,ESa:2,JSa:3,GSa:4,ySa:5,uSa:6,wSa:7,xSa:8,HSa:9,FSa:10,zSa:11,CSa:12,DSa:13,BSa:14,ASa:15,tSa:16};var xKa={w7a:0,s7a:1,v7a:2,u7a:3,t7a:4};var wKa={A7a:0,y7a:1,z7a:2,x7a:3};var yKa={H7a:0,D7a:1,F7a:2,B7a:3,G7a:4,C7a:5,E7a:6};var vKa={Q7a:0,S7a:1,R7a:2,L7a:3,J7a:4,K7a:5,V7a:6,M7a:7,W7a:8,O7a:9,P7a:10,I7a:11,N7a:12,U7a:13,T7a:14};var zKa={Z7a:0,Y7a:1,X7a:2};var JKa={ecb:0,ccb:1,bcb:2,Wbb:3,Ybb:4,Zbb:5,Vbb:6,Xbb:7,dcb:8,gcb:9,acb:10,Tbb:11,Ubb:12,fcb:13};var IKa={icb:0,hcb:1};var SKa={lcb:0,mcb:1,jcb:2,kcb:3};var QKa={Icb:0,ncb:1,Hcb:2,Gcb:3,Mcb:4,Lcb:5,Fcb:19,rcb:6,tcb:7,Bcb:8,scb:24,Ecb:25,Ccb:20,vcb:21,pcb:22,Dcb:23,ocb:9,qcb:10,ucb:11,wcb:12,xcb:13,ycb:14,Acb:15,zcb:16,Jcb:17,Kcb:18};var KKa={Qcb:0,Pcb:1,Rcb:2,Ncb:3,Ocb:4};var GKa={gdb:0,Zcb:1,Ucb:2,ddb:3,Ycb:4,fdb:5,Tcb:6,Vcb:7,adb:8,Wcb:9,bdb:10,cdb:11,Xcb:12,edb:13};var MKa={ndb:0,ldb:1,jdb:2,kdb:3,mdb:4};var LKa={rdb:0,odb:1,pdb:2,qdb:3};var HKa={vdb:0,udb:1,tdb:2};var RKa={ydb:0,wdb:1,xdb:2};var TKa={Tdb:0,Sdb:1,Rdb:2,Pdb:3,Qdb:4};var UKa={Xdb:0,Vdb:1,Udb:2,Wdb:3};var Ghb={rra:0,ora:1,pra:2,mra:3,qra:4,nra:5};var xIa={Bda:0,zda:1,Ada:2};var ZGa={a4:0,qFa:1,jDa:2,kDa:3,SHa:4,YSa:5,Yma:6};var uP={Uta:0,Bta:101,Hta:102,wta:103,zta:104,Eta:105,Fta:106,Ita:107,Jta:108,Lta:109,Mta:110,Tta:111,Gta:112,Cta:113,Kta:114,Ota:115,Vta:116,yta:117,Dta:118,Wta:119,Pta:120,Qta:121,Ata:122,xta:123,Nta:124,Sta:125,Rta:126};var wJa={hua:0,eua:1,fua:2,aua:3,cua:4,Zta:5,gua:6};var Hhb={ava:0,Zua:1,Xua:2,Yua:3};var Ihb={mva:0,jva:1,cva:2,iva:3,bva:4,fva:5,hva:6,kva:7,gva:8,eva:9,dva:10};var Jhb={ova:0,pva:1,nva:2};g.w(vA,Q);g.w(wA,Q);g.w(xA,Q);xA.prototype.getState=function(){return Qj(this,1)};
xA.prototype.Dc=function(a){return Wj(this,1,a)};g.w(yA,Q);g.w(zA,Q);g.w(EA,Q);g.w(FA,Q);g.w(GA,Q);GA.prototype.Ce=function(){return g.Tj(this,1)};
GA.prototype.setVideoId=function(a){return N(this,1,a)};g.w(HA,Q);HA.prototype.setTrackingParams=function(a){return yk(this,1,a)};g.w(IA,Q);IA.prototype.hasVe=function(){return gj(this,HA,2)};g.w(JA,Q);JA.prototype.hasFeature=function(){return null!=oi(dj(this,1))};g.w(KA,Q);g.w(LA,Q);g.w(MA,Q);MA.prototype.Df=function(){return Uj(this,2)};
var Khb=[1];g.w(NA,Q);g.w(kma,Q);g.w(lma,Q);g.w(OA,Q);OA.prototype.getVideoAspectRatio=function(){return rea(this,2)};g.w(mma,Q);g.w(nma,Q);g.w(oma,Q);g.w(pma,Q);g.w(qma,Q);g.w(rma,Q);g.w(sma,Q);g.w(tma,Q);g.w(uma,Q);g.w(vma,Q);g.w(PA,Q);PA.prototype.getId=function(){return g.Tj(this,1)};g.w(wma,Q);g.w(QA,Q);g.w(RA,Q);RA.prototype.j=function(a,b){return Mj(this,5,QA,a,b)};
RA.yb=[5];g.w(xma,Q);g.w(yma,Q);g.w(SA,Q);SA.prototype.Yl=function(){return g.Tj(this,30)};
SA.prototype.j=function(a,b){return Mj(this,27,yma,a,b)};
SA.yb=[27];g.w(zma,Q);g.w(Ama,Q);g.w(Bma,Q);g.w(Cma,Q);var S2=[1,2,3,4];g.w(Dma,Q);g.w(Ema,Q);g.w(Fma,Q);g.w(Gma,Q);g.w(TA,Q);TA.prototype.jn=function(){return Sj(this,2)};g.w(Hma,Q);g.w(Ima,Q);g.w(Jma,Q);g.w(UA,Q);g.w(Kma,Q);g.w(Lma,Q);g.w(VA,Q);VA.prototype.j=function(a,b){return Cj(this,1,Xh,a,b)};
VA.yb=[1];g.w(WA,Q);WA.prototype.Df=function(){return Uj(this,3)};g.w(Mma,Q);g.w(XA,Q);g.w(YA,Q);g.w(Nma,Q);g.w(ZA,Q);ZA.prototype.j=function(a,b){return Mj(this,2,YA,a,b)};
ZA.prototype.B=function(a,b){return Mj(this,3,YA,a,b)};
ZA.yb=[2,3];g.w($A,Q);g.w(Oma,Q);g.w(aB,Q);aB.prototype.Ce=function(){return g.Ij(this,$A,Gj(this,T2,2))};
aB.prototype.setVideoId=function(a){return Kj(this,$A,2,T2,a)};
aB.prototype.getPlaylistId=function(){return g.Ij(this,XA,Gj(this,T2,4))};
var T2=[2,3,4,5,9];g.w(bB,Q);bB.prototype.getType=function(){return Uj(this,1)};
bB.prototype.Ce=function(){return g.Tj(this,3)};
bB.prototype.setVideoId=function(a){return N(this,3,a)};g.w(Pma,Q);g.w(Qma,Q);g.w(cB,Q);var tKa=[3];g.w(Rma,Q);g.w(Sma,Q);g.w(dB,Q);dB.prototype.qf=function(){return g.Tj(this,2)};g.w(Tma,Q);g.w(Uma,Q);var Lhb=[1];g.w(Vma,Q);g.w(Wma,Q);g.w(Xma,Q);g.w(Yma,Q);g.w(Zma,Q);g.w($ma,Q);g.w(ana,Q);g.w(bna,Q);g.w(eB,Q);eB.prototype.getStarted=function(){return Pj(Lda(dj(this,1)),!1)};g.w(cna,Q);g.w(dna,Q);g.w(fB,Q);fB.prototype.getDuration=function(){return Qj(this,2)};
fB.prototype.xl=function(a){Wj(this,2,a)};g.w(ena,Q);g.w(gB,Q);g.w(hB,Q);hB.prototype.Yl=function(){return g.Tj(this,1)};g.w(fna,Q);g.w(gna,Q);g.w(iB,Q);iB.prototype.cf=function(){return g.Ij(this,fna,8)};
iB.prototype.d7=function(){return gj(this,fna,8)};
iB.prototype.getVideoData=function(){return g.Ij(this,gna,15)};
iB.prototype.JF=function(a){Jj(this,gna,15,a)};
iB.yb=[4];g.w(hna,Q);g.w(jB,Q);jB.prototype.j=function(a){return N(this,2,a)};g.w(kB,Q);kB.prototype.j=function(a){return N(this,1,a)};
kB.yb=[3];g.w(lB,Q);lB.prototype.j=function(a){return N(this,1,a)};
lB.prototype.hasVe=function(){return gj(this,HA,2)};g.w(mB,Q);mB.prototype.j=function(a){return N(this,1,a)};
mB.prototype.hasVe=function(){return gj(this,HA,2)};g.w(nB,Q);nB.prototype.j=function(a){return N(this,1,a)};
nB.prototype.hasVe=function(){return gj(this,HA,2)};g.w(oB,Q);oB.prototype.j=function(a){return N(this,1,a)};
oB.prototype.hasVe=function(){return gj(this,HA,2)};g.w(lna,Q);g.w(pB,Q);pB.prototype.getId=function(){return g.Tj(this,2)};g.w(sB,Q);sB.prototype.getVisibilityState=function(){return Uj(this,5)};
sB.yb=[16];g.w(mna,Q);g.w(tB,Q);tB.prototype.getPlayerType=function(){return Uj(this,7)};
tB.prototype.Ce=function(){return g.Tj(this,19)};
tB.prototype.setVideoId=function(a){return N(this,19,a)};
tB.yb=[112,83,118,68];g.w(nna,Q);g.w(ona,Q);g.w(vB,Q);vB.prototype.Ce=function(){return g.Tj(this,1)};
vB.prototype.setVideoId=function(a){return N(this,1,a)};
vB.prototype.j=function(a,b){return Mj(this,9,ona,a,b)};
vB.yb=[9];g.w(wB,Q);wB.prototype.j=function(a,b){return Mj(this,3,vB,a,b)};
wB.yb=[3];g.w(xB,Q);xB.prototype.Ce=function(){return g.Tj(this,1)};
xB.prototype.setVideoId=function(a){return N(this,1,a)};g.w(pna,Q);g.w(yB,Q);yB.prototype.j=function(a,b){return Mj(this,1,xB,a,b)};
yB.prototype.B=function(a,b){return Mj(this,2,pna,a,b)};
yB.yb=[1,2];g.w(qna,Q);g.w(rna,Q);g.w(sna,Q);g.w(zB,Q);zB.prototype.getId=function(){return g.Tj(this,1)};
zB.prototype.j=function(a,b){return Cj(this,2,yi,a,b)};
zB.prototype.setVideoIds=function(a,b){return jea(this,2,yi,a,b,nea)};
zB.yb=[2];g.w(tna,Q);g.w(una,Q);g.w(vna,Q);g.w(AB,Q);AB.prototype.j=function(a,b){return Cj(this,9,Xh,a,b)};
AB.yb=[9];g.w(wna,Q);g.w(xna,Q);g.w(BB,Q);BB.prototype.getId=function(){return g.Tj(this,1)};
BB.prototype.j=function(a,b){return Mj(this,14,vna,a,b)};
BB.prototype.B=function(a,b){return Mj(this,17,wna,a,b)};
BB.yb=[14,17];g.w(CB,Q);CB.prototype.B=function(a,b){return Mj(this,1,BB,a,b)};
CB.prototype.j=function(a,b){return Mj(this,2,zB,a,b)};
CB.yb=[1,2];g.w(yna,Q);g.w(DB,Q);DB.prototype.getOrigin=function(){return g.Tj(this,3)};
DB.prototype.ph=function(){return Qj(this,6)};g.w(zna,Q);g.w(Ana,Q);g.w(EB,Q);
var DF=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,354,
355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495];var Mhb={Bua:0,yua:1,xua:2,Aua:3,zua:4,vua:5,wua:6};var Nhb={bCa:0,MBa:1,PBa:2,NBa:3,SBa:4,OBa:5,xBa:6,XBa:7,GBa:8,qBa:9,HBa:10,TBa:11,QBa:12,zBa:13,vBa:14,yBa:15,aCa:16,rBa:17,sBa:18,YBa:19,ABa:20,wBa:21,WBa:22,hCa:23,gCa:24,cCa:25,IBa:26,RBa:27,iCa:28,BBa:29,oBa:30,eCa:31,dCa:32,FBa:33,lCa:34,EBa:35,UBa:36,kCa:37,JBa:38,VBa:39,DBa:40,CBa:41,uBa:42,LBa:43,jCa:44,ZBa:45,fCa:46,KBa:47,pBa:48,tBa:49};var Ohb={WCa:0,HCa:1,KCa:2,ICa:3,NCa:4,JCa:5,wCa:6,SCa:7,BCa:8,oCa:9,CCa:10,OCa:11,LCa:12,yCa:13,uCa:14,xCa:15,VCa:16,qCa:17,rCa:18,TCa:19,zCa:20,vCa:21,RCa:22,bDa:23,aDa:24,XCa:25,DCa:26,MCa:27,cDa:28,ACa:29,mCa:30,YCa:31,pCa:32,fDa:33,PCa:34,eDa:35,ECa:36,QCa:37,tCa:38,GCa:39,dDa:40,UCa:41,ZCa:42,FCa:43,nCa:44,sCa:45};var Phb={TEa:0,SEa:1,UEa:2};var Qhb={TDa:0,RDa:1,NDa:3,PDa:4,QDa:5,SDa:6,ODa:7};var Rhb={ZDa:0,WDa:1,YDa:2,XDa:3,VDa:4,UDa:5};var Shb={JEa:0,KEa:1,IEa:2,HEa:3,GEa:4};var Thb={NEa:0,LEa:1,MEa:2};var Uhb={ZEa:0,aFa:1,bFa:2,YEa:3,WEa:4,XEa:5};var Tua={KFa:0,rFa:1,xFa:2,yFa:4,EFa:8,zFa:16,AFa:32,JFa:64,IFa:128,tFa:256,vFa:512,CFa:1024,uFa:2048,wFa:4096,sFa:8192,BFa:16384,FFa:32768,DFa:65536,GFa:131072,HFa:262144};var vJa={oGa:0,nGa:1,mGa:2,lGa:4};var uJa={tGa:0,qGa:1,rGa:2,uGa:3,sGa:4,pGa:5};var Vhb={aBa:0,ZAa:1,YAa:2};var Whb={rOa:0,qOa:1,pOa:2};var Xhb={jPa:0,POa:1,hPa:2,TOa:3,ZOa:4,lPa:5,iPa:6,FOa:7,EOa:8,DOa:9,JOa:10,OOa:11,NOa:12,GOa:13,aPa:14,VOa:15,XOa:16,vOa:17,gPa:18,zOa:19,WOa:20,uOa:21,YOa:22,MOa:23,wOa:24,yOa:25,dPa:26,kPa:27,ePa:28,UOa:29,HOa:30,KOa:31,LOa:32,COa:33,mPa:34,AOa:35,IOa:36,bPa:37,xOa:38,sOa:39,BOa:41,SOa:42,cPa:43,fPa:44,QOa:45,ROa:46,tOa:47};var Yhb={qPa:0,pPa:1,oPa:2,nPa:3};var LIa={Aoa:0,zoa:1,yoa:2};var HIa={bQa:0,aQa:1,XPa:2,YPa:7,WPa:8,VPa:25,EPa:3,FPa:4,NPa:5,OPa:27,MPa:28,GPa:9,uPa:10,sPa:11,tPa:6,DPa:12,BPa:13,CPa:14,APa:15,IPa:16,JPa:17,HPa:18,LPa:19,KPa:20,xPa:26,yPa:21,wPa:22,zPa:23,vPa:24,dQa:34,cQa:35,fQa:39,eQa:29,SPa:30,TPa:32,UPa:33,QPa:36,RPa:38,PPa:37,ZPa:31};var JIa={kQa:0,hQa:1,iQa:2,jQa:3,gQa:4};var IIa={qQa:0,oQa:1,pQa:2,mQa:3,nQa:4,lQa:5};var kIa={xQa:0,rQa:1,tQa:2,sQa:3,uQa:4,vQa:5,wQa:6,yQa:7};var MIa={XQa:0,SQa:1,WQa:2,UQa:3,VQa:4,TQa:5};var OIa={iRa:0,YQa:1,cRa:2,gRa:3,hRa:4,dRa:5,eRa:6,fRa:7,aRa:8,ZQa:9,bRa:10};var NIa={mRa:0,jRa:1,kRa:2,lRa:3};var IJa={Tua:0,Rua:1,Sua:2,Oua:3,Pua:4,Qua:5};var NJa={fVa:0,eVa:1,XUa:2,cVa:3,YUa:4,bVa:5,dVa:6,aVa:7,ZUa:8};var hJa={zVa:0,rVa:1,AVa:2,yVa:4,vVa:8,uVa:16,tVa:32,wVa:64,sVa:128,xVa:256};var JJa={SVa:0,NVa:1,RVa:2,KVa:3,CVa:4,IVa:5,DVa:6,EVa:7,GVa:8,LVa:9,PVa:10,OVa:11,QVa:12,FVa:13,HVa:14,JVa:15,MVa:16,BVa:17};var eJa={UUa:0,RUa:1,SUa:2,TUa:3};var kJa={mVa:0,oVa:1,lVa:2,hVa:3,nVa:4,iVa:5,jVa:6,kVa:7};var qIa={Kdb:0,yra:1,bOa:2,dTa:3,fTa:4,gTa:5,aTa:6,i9a:7,wTa:8,vTa:9,bTa:10,eTa:11,M$a:12,Aha:13,Iha:14,Bha:15,qYa:16,MUa:17,xTa:18,ATa:19,qVa:20,zTa:21,gVa:22,TVa:23,GTa:24,WUa:25,cTa:26,f9a:27,k7a:28,k0a:29,Boa:30,Mhb:31,VUa:32};var pIa={Ndb:0,Eda:1,VVa:2,UVa:3,SUCCESS:4,U8a:5,bBa:6,Z_a:7,MDa:9,zra:10,uta:11,CANCELLED:12,j0a:13,l7a:14,q7a:15,jeb:16};var oIa={aab:0,R$a:1,W$a:2,V$a:3,S$a:4,T$a:5,N$a:6,Z$a:7,Y$a:8,Q$a:9,P$a:10,U$a:11,X$a:12,O$a:13};var CIa={fYa:0,TXa:1,XXa:2,VXa:3,eYa:4,WXa:5,aYa:6,ZXa:7,YXa:8,UXa:9,bYa:10,cYa:11,dYa:12};var Zhb={qZa:0,pZa:1,oZa:2};var $hb={tZa:0,rZa:1,sZa:2};var GIa={p1a:0,n1a:1,o1a:3,k1a:4,l1a:2,m1a:5};var KIa={v1a:0,q1a:1,s1a:2,u1a:3,t1a:4,w1a:5};var aib={D1a:0,E1a:1};var oKa={K1a:0,I1a:1,J1a:2,L1a:3};var bib={d5a:0,b5a:1,c5a:2};var cib={s8a:0,o8a:1,p8a:2,q8a:3,r8a:4};var jJa={p5a:0,n5a:1,o5a:2};var MJa={d6a:0,Z5a:1,a6a:2,b6a:3};var $Ia={Jla:0,Ila:1,Gla:2,Hla:3};var cJa={Ama:0,tma:1,zma:2,wma:3,oma:4,pma:5,nma:6,vma:7,yma:8,rma:9,Bma:10,Cma:11,qma:12,xma:13,uma:14};var CJa={Jna:0,Dna:1,Gna:2,Hna:3,Fna:4,Ina:5,Kna:6,Ena:7};var UIa={Yra:0,Xra:1,Zra:2};var tIa={Idb:0,Iqa:1,Jqa:2,Hqa:3,Kqa:4};var sIa={Jdb:0,gZa:1,LXa:2};var FJa={kBa:0,gBa:1,cBa:2,jBa:3,eBa:4,hBa:5,fBa:6,dBa:7,iBa:8};var HJa={REa:0,QEa:1,PEa:2};var BJa={aOa:0,ZNa:1,YNa:2};var EJa={PSa:0,OSa:1,NSa:2};var AJa={P0a:0,N0a:1,O0a:2};var YIa={Y8a:0,X8a:1,W8a:2};var dib={wNa:0,sNa:1,tNa:2,uNa:3,vNa:4,xNa:5};var eib={oYa:0,lYa:1,jYa:2,gYa:3,kYa:4,mYa:5,hYa:6,iYa:7,nYa:8,pYa:9};var fib={n$a:0,P9a:1,r$a:2,s$a:3,p$a:4,o$a:16,q$a:47,K9a:17,Q9a:33,J9a:35,B9a:36,M9a:34,m$a:38,O9a:45,V9a:8,H9a:39,E9a:40,x9a:41,A9a:42,D9a:43,w9a:46,z9a:44,N9a:5,U9a:6,l$a:7,k$a:9,y9a:10,j$a:11,C9a:12,i$a:13,I9a:14,T9a:15,S9a:18,R9a:19,G9a:20,L9a:21,F9a:22,f$a:23,h$a:24,Y9a:25,g$a:26,W9a:27,b$a:28,X9a:29,a$a:30,c$a:31,Z9a:32,d$a:37,e$a:48};var gib={v$a:0,u$a:1,w$a:2};var nKa={Ihb:0,thb:1,Ahb:2,zhb:3,shb:4,Jhb:5,Ghb:6,uhb:7,vhb:8,yhb:9,xhb:12,phb:10,Hhb:11,Chb:13,Dhb:14,Khb:15,Bhb:16,Ehb:17,qhb:18,Fhb:19,rhb:20,Lhb:21,whb:22};var hKa={OFa:0,MFa:1,NFa:2,LFa:3};g.w(Bna,Q);g.w(FB,Q);FB.prototype.Ce=function(){return Oj(this,Gj(this,uF,1))};
FB.prototype.setVideoId=function(a){return Ej(this,1,uF,zi(a))};
FB.prototype.getPlaylistId=function(){return Oj(this,Gj(this,uF,2))};
var uF=[1,2];g.w(Cna,Q);Cna.yb=[3];var AT=new g.lw("changeKeyedMarkersVisibilityCommand");var hib=new g.lw("changeMarkersVisibilityCommand");var BRa=new g.lw("loadMarkersCommand");var tYa=new g.lw("productListItemRenderer");var iib=new g.lw("shoppingOverlayRenderer");var WRa=new g.lw("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var jib=new g.lw("adFeedbackEndpoint");var kib=new g.lw("menuEndpoint");var JXa=new g.lw("phoneDialerEndpoint");var HXa=new g.lw("sendSmsEndpoint");var URa=new g.lw("copyTextEndpoint");var lib=new g.lw("webPlayerShareEntityServiceEndpoint");g.zG=new g.lw("urlEndpoint");g.yT=new g.lw("watchEndpoint");var mib=new g.lw("watchPlaylistEndpoint");var RJa={xoa:0,woa:1,voa:2,toa:3,uoa:4};var gJa={uTa:0,sTa:1,tTa:2,rTa:3};var nib={LTa:0,KTa:1,ITa:2,JTa:3};var oib={PTa:0,MTa:1,NTa:2,OTa:3,QTa:4};var pib={IUa:0,CUa:1,JUa:2,EUa:3,vUa:4,mUa:37,XTa:5,UTa:36,ZTa:38,hUa:39,iUa:40,dUa:41,HUa:42,aUa:27,rUa:31,tUa:6,wUa:7,xUa:8,yUa:9,zUa:10,AUa:11,DUa:29,bUa:30,sUa:32,lUa:12,kUa:13,WTa:14,qUa:15,RTa:16,TTa:35,YTa:43,cUa:28,oUa:17,nUa:18,pUa:19,GUa:20,gUa:25,VTa:33,KUa:21,jUa:22,fUa:26,LUa:46,eUa:34,uUa:44,FUa:45,BUa:23,STa:24};var PJa={QUa:0,OUa:1,NUa:2,PUa:3};var vP={p7a:0,m7a:1,o7a:2,n7a:3};var rIa={L$a:0,z$a:1,y$a:2,E$a:3,K$a:4,A$a:5,H$a:6,F$a:7,G$a:8,B$a:9,I$a:10,C$a:11,J$a:12,D$a:13};var dJa={pVa:0,HTa:1,yTa:2,ETa:3,FTa:4,BTa:5,CTa:6,DTa:7};var qib={z1a:0,y1a:1};var rib={v8a:0,u8a:1,t8a:2,w8a:3};var sib={z8a:0,y8a:1,x8a:2};var tib={J8a:0,D8a:1,E8a:2,F8a:5,I8a:7,K8a:8,G8a:9,H8a:10};var uib={C8a:0,B8a:1,A8a:2};var KUa=new g.lw("compositeVideoOverlayRenderer");var vib=new g.lw("miniplayerRenderer");var iRa=new g.lw("playerMutedAutoplayOverlayRenderer"),jRa=new g.lw("playerMutedAutoplayEndScreenRenderer");var rQa=new g.lw("unserializedPlayerResponse"),kRa=new g.lw("unserializedPlayerResponse");var wib=new g.lw("playlistEditEndpoint");var U2;g.nN=new g.lw("buttonRenderer");U2=new g.lw("toggleButtonRenderer");var fJa={Ldb:0,pKa:4,R0a:1,IDa:2,nna:3,qKa:5,U0a:6,JDa:7,KDa:8,LDa:9};var lDa=new g.lw("counterfactualRenderer");var xib=new g.lw("resolveUrlCommandMetadata");var yib=new g.lw("modifyChannelNotificationPreferenceEndpoint");var kya=new g.lw("pingingEndpoint");var zib=new g.lw("unsubscribeEndpoint");var aHa={Odb:0,XRa:1,TRa:2,SRa:3,tRa:71,sRa:4,VRa:5,YRa:6,WRa:16,URa:69,uRa:70,pRa:56,qRa:64,rRa:65,GRa:7,wRa:8,BRa:9,xRa:10,ARa:11,zRa:12,yRa:13,DRa:43,JRa:44,KRa:45,LRa:46,MRa:47,NRa:48,ORa:49,PRa:50,QRa:51,RRa:52,HRa:53,IRa:54,FRa:63,vRa:14,ERa:15,CRa:68,Bgb:17,Kgb:18,Rfb:19,Agb:20,mgb:21,Cgb:22,Jfb:23,vgb:24,pgb:25,Wfb:26,Hfb:27,dgb:28,ygb:29,Efb:30,Dfb:31,Ffb:32,Kfb:33,wgb:34,ugb:35,ngb:36,sgb:37,Dgb:38,Zfb:39,Jgb:40,fgb:41,Ufb:42,Egb:55,qgb:66,ehb:67,jgb:57,xgb:58,Lfb:59,Gfb:60,agb:61,ogb:62};var Aib={m2a:0,o2a:1,d2a:2,V1a:3,j2a:4,k2a:5,p2a:6,M1a:7,N1a:8,T1a:9,f2a:10,W1a:11,a2a:12,Y1a:13,Z1a:14,b2a:15,c2a:19,P1a:16,i2a:17,g2a:18,R1a:20,X1a:21,O1a:22,n2a:23,U1a:24,Q1a:25,l2a:26,S1a:27,h2a:28,e2a:29};g.MT=new g.lw("subscribeButtonRenderer");var Bib=new g.lw("subscribeEndpoint");var aJa={t5a:0,r5a:1,s5a:2};var yUa=new g.lw("buttonViewModel");var PKa={G2a:0,H2a:1,F2a:2,B2a:3,E2a:4,C2a:5,A2a:6,D2a:7};var mDa=new g.lw("qrCodeRenderer");var zIa={ira:0,gra:1,cra:2,dra:3,fra:4,hra:5};var EPa={FNa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",CNa:"LIVING_ROOM_APP_MODE_MAIN",BNa:"LIVING_ROOM_APP_MODE_KIDS",DNa:"LIVING_ROOM_APP_MODE_MUSIC",ENa:"LIVING_ROOM_APP_MODE_UNPLUGGED",ANa:"LIVING_ROOM_APP_MODE_GAMING"};var sRa=new g.lw("autoplaySwitchButtonRenderer");var zQa,FZa,AQa,RZa;zQa=new g.lw("decoratedPlayerBarRenderer");FZa=new g.lw("chapteredPlayerBarRenderer");AQa=new g.lw("multiMarkersPlayerBarRenderer");RZa=new g.lw("chapterRenderer");g.JZa=new g.lw("markerRenderer");var xRa=new g.lw("desktopOverlayConfigRenderer");var vRa=new g.lw("gatedActionsOverlayViewModel");var NZa=new g.lw("heatMarkerRenderer");var MZa=new g.lw("heatmapRenderer");var mUa=new g.lw("culturalMomentOverlayRenderer"),ARa=new g.lw("watchToWatchTransitionRenderer");var XRa=new g.lw("playlistPanelRenderer");var XUa=new g.lw("speedmasterEduViewModel");var Cib=new g.lw("suggestedActionTimeRangeTrigger"),Dib=new g.lw("suggestedActionsRenderer"),Eib=new g.lw("suggestedActionRenderer");var OZa=new g.lw("timedMarkerDecorationRenderer");var Fib={dhb:0,Ygb:1,Zgb:2,bhb:3,ahb:4,Xgb:5,Wgb:6,Sgb:7,Ugb:8,Vgb:9,Tgb:10,Ogb:11,Mgb:12,Lgb:13,Rgb:14,Ngb:15,Pgb:16,Qgb:17};var pP={a4:0,USER:74,Ima:459,TRACK:344,Jma:493,Wma:419,TGa:494,soa:337,MINUTE:237,HOUR:236,DAY:3,WEEK:78,fhb:248,MONTH:79,QUARTER:246,YEAR:247,jTa:382,iTa:383,hTa:384,a9a:235,VIDEO:4,ihb:186,Jra:126,n8a:127,Rra:117,G_a:125,M0a:151,tua:515,Cra:6,uDa:132,zDa:154,xDa:222,yDa:155,vDa:221,wDa:156,m8a:209,l8a:210,nfb:7,X_a:124,q5a:96,USa:97,yfb:93,ZLa:574,zfb:275,Ana:110,zna:120,nZa:121,gFa:72,gfb:351,q2a:495,efb:377,hfb:378,lBa:496,mBa:497,r2a:498,Bna:381,ffb:386,Afb:387,mma:410,UFa:437,Lva:338,xna:380,
Cda:352,QXa:113,RXa:114,r9a:82,s9a:112,rua:354,m9a:21,lma:556,KXa:567,l0a:566,t$a:568,Kua:523,Mua:375,Lua:514,Cha:302,Vra:136,hFa:85,Wha:22,lhb:23,v9a:252,u9a:253,TWa:562,Ura:563,vna:254,zha:165,k8a:304,IGa:421,F0a:463,PLAYLIST:63,lfb:27,kfb:28,mfb:29,c8a:30,f8a:31,e8a:324,g8a:32,Lna:398,i8a:399,j8a:400,WSa:411,VSa:413,XSa:414,ZSa:415,Q_a:39,R_a:143,V_a:144,M_a:40,N_a:145,P_a:146,Yeb:504,U_a:325,DYa:262,FYa:263,EYa:264,HYa:355,IYa:249,KYa:250,JYa:251,lra:46,A1a:49,C1a:50,sha:62,l9a:561,AQa:105,NGa:242,
j7a:397,wZa:83,PXa:135,hma:87,kma:153,jma:187,cma:89,bma:88,dma:139,fma:91,ema:104,gma:137,Nqa:99,Zdb:100,SSa:326,jua:148,iua:149,a8a:150,b8a:395,ana:166,gna:199,bna:534,fna:167,cna:168,kna:169,lna:170,dna:171,ena:172,hna:179,ina:180,mna:512,jna:513,reb:200,beb:476,seb:213,Xma:191,GYa:192,AYa:305,BYa:306,MYa:329,V5a:327,W5a:328,wYa:195,xYa:197,SXa:301,rYa:223,sYa:224,GGa:227,XFa:396,UGa:356,OGa:490,VGa:394,Coa:230,ona:297,Heb:298,FGa:342,uua:346,UAa:245,t9a:261,kFa:265,pFa:266,lFa:267,iFa:268,jFa:269,
oFa:270,mFa:271,nFa:272,nNa:303,aMa:391,bMa:503,dMa:277,yNa:499,zNa:500,lNa:501,pNa:278,cMa:489,oNa:598,uva:332,wva:333,sva:334,vva:335,tva:336,Mqa:340,zGa:341,Xeb:349,Web:420,T_a:281,O_a:282,B1a:286,d8a:288,S_a:291,W_a:292,YLa:295,h8a:296,XLa:299,Eha:417,YGa:308,mhb:309,nhb:310,ohb:311,OYa:590,PYa:591,Dia:350,ueb:418,AEa:424,eeb:425,kTa:429,TSa:430,SGa:426,f7a:460,RSa:427,o0a:428,p0a:542,m0a:461,X5a:464,GQa:431,DQa:432,EQa:589,LQa:433,CQa:434,IQa:435,JQa:436,FQa:438,KQa:439,MQa:453,HQa:454,BQa:472,
Hdb:557,n0a:558,wna:559,yna:560,tna:565,FZa:545,AZa:546,QZa:547,TZa:548,SZa:549,RZa:550,GZa:551,PZa:552,xZa:554,CZa:577,BZa:587,EZa:579,zZa:580,una:583,VZa:584,WZa:586,IZa:516,JZa:544,KZa:553,LZa:570,NZa:571,HZa:572,OZa:573,MZa:588,UZa:585,ZWa:592,XWa:593,YWa:594,WWa:595,wfb:604,ufb:605,vfb:606,xfb:607,tfb:608,e9a:520,yZa:521,DZa:522,PGa:543,fZa:440,hZa:441,lZa:442,dZa:448,eZa:449,iZa:450,mZa:451,kZa:491,POST:445,cZa:446,jZa:447,ZZa:456,lTa:483,Vha:569,wra:576,i_a:529,xra:581,n9a:555,YZa:458,F1a:480,
G1a:502,H1a:482,AGa:452,t2a:465,u2a:466,vta:467,XZa:468,xva:469,ara:470,Zqa:471,yGa:475,lsa:477,CGa:478,EDa:479,NYa:484,LYa:485,zYa:486,yYa:487,Jha:488,Wua:492,zva:505,Jua:506,ofb:507,gIa:508,CDa:509,FDa:510,HDa:511,Geb:524,ifb:530,W0a:531,yva:532,y2a:533,V0a:575,DGa:535,XGa:536,JGa:537,RGa:538,EGa:539,MGa:540,HGa:541,cOa:578,vha:582,RYa:596,Tra:597,eMa:599,FMa:600,GMa:601,qNa:602,rNa:603,PODCAST:609,Sra:610};var jMa=new g.lw("cipher");var sQa=new g.lw("playerVars");var lRa=new g.lw("playerVars");var V2=g.Qa.window,Gib,Hib,GB=(null==V2?void 0:null==(Gib=V2.yt)?void 0:Gib.config_)||(null==V2?void 0:null==(Hib=V2.ytcfg)?void 0:Hib.data_)||{};g.Ra("yt.config_",GB);var MB=[];var Pna=/^[\w.]*$/,Lna={q:!0,search_query:!0},Kna=String(QB);var Qna=new function(){var a=window.document;this.j=window;this.B=a};
g.Ra("yt.ads_.signals_.getAdSignalsString",function(a){return RB(YB(a))});g.gb();var Tna="XMLHttpRequest"in g.Qa?function(){return new XMLHttpRequest}:null;var Iib="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.oa(Iib);var Vna={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","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},Xna="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.oa(Iib)),coa=!1,kcb=eC;g.w(gC,wb);jC.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):1===this.B&&a?(a=a.call(c,this.Ud))&&"function"===typeof a.then?a:lC(a):2===this.B&&b?(a=b.call(c,this.Ud))&&"function"===typeof a.then?a:kC(a):this};
jC.prototype.getValue=function(){return this.Ud};
jC.prototype.$goog_Thenable=!0;var mC=!1;var UD=vC||wC;var Foa=/^([0-9\.]+):([0-9\.]+)$/;g.w(Koa,wb);Koa.prototype.name="BiscottiError";g.w(GC,wb);GC.prototype.name="BiscottiMissingError";var Moa={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},HC=null;var qsa=ia(["data-"]),Uoa={};var Jib=0,Voa=g.Pc?"webkit":Zr?"moz":g.We?"ms":g.lS?"o":"",Kib=g.Sa("ytDomDomGetNextId")||function(){return++Jib};
g.Ra("ytDomDomGetNextId",Kib);var $oa={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};MC.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
MC.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
MC.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var NC=g.Qa.ytEventsEventsListeners||{};g.Ra("ytEventsEventsListeners",NC);var cpa=g.Qa.ytEventsEventsCounter||{count:0};g.Ra("ytEventsEventsCounter",cpa);var hpa=Id(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),dpa=Id(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var W2;W2=window;g.FD=W2.ytcsi&&W2.ytcsi.now?W2.ytcsi.now:W2.performance&&W2.performance.timing&&W2.performance.now&&W2.performance.timing.navigationStart?function(){return W2.performance.timing.navigationStart+W2.performance.now()}:function(){return(new Date).getTime()};g.ib(RC,g.H);RC.prototype.W=function(a){void 0===a.j&&apa(a);var b=a.j;void 0===a.B&&apa(a);this.j=new g.le(b,a.B)};
RC.prototype.Ws=function(){return this.j||new g.le};
RC.prototype.ma=function(){if(this.j){var a=(0,g.FD)();if(0!=this.D){var b=this.K,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=.5<Math.abs((d-this.G)/this.G)?1:0;for(c=b=0;4>c;c++)b+=this.B[c]||0;3<=b&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}};
RC.prototype.xa=function(){g.dC(this.Z);g.PC(this.ra)};g.w(SC,g.H);SC.prototype.T=function(a,b,c,d,e){c=g.OB((0,g.eb)(c,d||this.bb));c={target:a,name:b,callback:c};var f;e&&hpa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c};
SC.prototype.Nc=function(a){for(var b=0;b<this.N.length;b++)if(this.N[b]==a){this.N.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
SC.prototype.xa=function(){g.UC(this);g.H.prototype.xa.call(this)};VC.prototype.clone=function(){var a=new VC,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Wa(c)?g.ld(c):c}return a};var uSa=["att/get"],JVa=["embedded_player"],Lib=["share/get_web_player_share_panel"],Mib=["feedback"],Nib=["notification/modify_channel_preference"],fab=["player"],Oib=["browse/edit_playlist"],Pib=["subscription/subscribe"],Qib=["subscription/unsubscribe"],jab=["next","unplugged/watch_next"];var jpa;g.WC=Id(function(){var a=new qv;return a.isAvailable()?new g.mv(a):null});
jpa=Id(function(){var a=new xla;return a.isAvailable()?new g.mv(a):null});aD.prototype.qD=function(a,b){a={};var c=$ea([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.IB("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.KB("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in GB||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in GB&&(a["X-Goog-PageId"]=g.IB("DELEGATED_SESSION_ID")));return a};var hE={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var dD=g.Sa("ytglobal.prefsUserPrefsPrefs_")||{};g.Ra("ytglobal.prefsUserPrefsPrefs_",dD);var qpa;g.k=ppa.prototype;g.k.get=function(a,b){upa(a);tpa(a);a=void 0!==dD[a]?dD[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){upa(a);tpa(a);if(null==b)throw Error("ExpectedNotNull");dD[a]=b.toString()};
g.k.remove=function(a){upa(a);tpa(a);delete dD[a]};
g.k.save=function(){var a=!0;g.KB("web_secure_pref_cookie_killswitch")&&(a=!1);g.oC(this.j,this.dump(),63072E3,this.B,a)};
g.k.clear=function(){g.cba(dD)};
g.k.dump=function(){var a=[],b;for(b in dD)dD.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(dD[b])));return a.join("&")};
g.k.parse=function(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(dD[d]=c.toString())}};var wpa={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"},cra={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},dra={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},ypa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.w(g.eD,Error);hD.prototype.Si=function(a,b){return iD(a,1,b)};
hD.prototype.L4=function(a){(a=this.j.get(a))&&a()};g.Sa("yt.scheduler.instance.timerIdMap_");g.w(kD,hD);kD.prototype.Oj=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Sa("yt.scheduler.instance.cancelJob");b?b(a):g.cC(a)}};
kD.prototype.start=function(){var a=g.Sa("yt.scheduler.instance.start");a&&a()};
kD.prototype.pause=function(){var a=g.Sa("yt.scheduler.instance.pause");a&&a()};
g.wu=g.lD();oD.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.Mm(b))}catch(f){return}else e=escape(b);g.oC(a,e,c,this.B)};
oD.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.pC(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
oD.prototype.remove=function(a){this.j&&this.j.remove(a);g.qoa(a,"/",this.B)};var Bpa=function(){var a;return function(){a||(a=new oD("ytidb"));return a}}();var rD=[],pD,sD=!1;var X2={},Gpa=(X2.AUTH_INVALID="No user identifier specified.",X2.EXPLICIT_ABORT="Transaction was explicitly aborted.",X2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",X2.MISSING_INDEX="Index not created.",X2.MISSING_OBJECT_STORES="Object stores not created.",X2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",X2.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",X2.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",X2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",X2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",X2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",X2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",X2),Y2={},Hpa=(Y2.AUTH_INVALID="ERROR",Y2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Y2.EXPLICIT_ABORT="IGNORED",
Y2.IDB_NOT_SUPPORTED="ERROR",Y2.MISSING_INDEX="WARNING",Y2.MISSING_OBJECT_STORES="ERROR",Y2.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Y2.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Y2.QUOTA_EXCEEDED="WARNING",Y2.QUOTA_MAYBE_EXCEEDED="WARNING",Y2.UNKNOWN_ABORT="WARNING",Y2.INCOMPATIBLE_DB_VERSION="WARNING",Y2),Z2={},Ipa=(Z2.AUTH_INVALID=!1,Z2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Z2.EXPLICIT_ABORT=!1,Z2.IDB_NOT_SUPPORTED=!1,Z2.MISSING_INDEX=!1,Z2.MISSING_OBJECT_STORES=!1,Z2.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Z2.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Z2.QUOTA_EXCEEDED=!1,Z2.QUOTA_MAYBE_EXCEEDED=!0,Z2.UNKNOWN_ABORT=!0,Z2.INCOMPATIBLE_DB_VERSION=!1,Z2);g.w(g.xD,g.eD);g.w(Jpa,g.xD);g.w(yD,Error);var Kpa=["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.CD.all=function(a){return new g.CD(new BD(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Fz:0};f.Fz<a.length;f={Fz:f.Fz},++f.Fz)g.CD.resolve(a[f.Fz]).then(function(h){return function(l){d[h.Fz]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.CD.resolve=function(a){return new g.CD(new BD(function(b,c){a instanceof g.CD?a.then(b,c):b(a)}))};
g.CD.reject=function(a){return new g.CD(new BD(function(b,c){c(a)}))};
g.CD.prototype.then=function(a,b){var c=this,d=null!=a?a:Npa,e=null!=b?b:Mpa;return new g.CD(new BD(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){Ppa(c,c,d,f,h)}),c.B.push(function(){Qpa(c,c,e,f,h)})):"FULFILLED"===c.state.status?Ppa(c,c,d,f,h):"REJECTED"===c.state.status&&Qpa(c,c,e,f,h)}))};
g.CD.prototype.catch=function(a){return this.then(void 0,a)};g.k=Upa.prototype;g.k.advance=function(a){this.cursor.advance(a);return ED(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return ED(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return ED(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.dI=function(){return this.cursor.primaryKey};g.k=Vpa.prototype;g.k.add=function(a,b,c){return g.ID(this,[a],{mode:"readwrite",Tb:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.ID(this,[a],{mode:"readwrite",Tb:!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.ID(this,[a],{mode:"readonly",Tb:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.ID(this,[a],{mode:"readwrite",Tb:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.ID(this,[a],{mode:"readonly",Tb:!0},function(c){return c.objectStore(a).get(b)})};
g.k.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
g.k.getName=function(){return this.j.name};
g.k=Wpa.prototype;g.k.add=function(a,b){return g.DD(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return g.DD(this.j.clear()).then(function(){})};
g.k.count=function(a){return g.DD(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?$pa(this,a):g.DD(this.j.delete(a))};
g.k.get=function(a){return g.DD(this.j.get(a))};
g.k.index=function(a){try{return new fqa(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new yD(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
LD.prototype.abort=function(){this.j.abort();this.B=!0;throw new g.xD("EXPLICIT_ABORT");};
LD.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.C.get(a);b||(b=new Wpa(a),this.C.set(a,b));return b};
g.k=fqa.prototype;g.k.count=function(a){return g.DD(this.j.count(a))};
g.k.delete=function(a){return g.PD(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return g.DD(this.j.get(a))};
g.k.getKey=function(a){return g.DD(this.j.getKey(a))};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
g.k=gqa.prototype;g.k.advance=function(a){this.cursor.advance(a);return OD(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return OD(this.request)};
g.k.delete=function(){return g.DD(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.dI=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return g.DD(this.cursor.update(a))};RD.prototype.B=function(a,b,c){c=void 0===c?{}:c;return iqa(a,b,c)};
RD.prototype.delete=function(a){a=void 0===a?{}:a;return QD(this.name,a)};
RD.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,t,v;return g.Ha(function(x){switch(x.j){case 1:return h=null!=(f=Error().stack)?f:"",g.ya(x,2),g.z(x,c.B(c.name,c.options.version,e),4);case 4:for(var B=l=x.B,F=c.options,G=[],I=g.u(Object.keys(F.vr)),L=I.next();!L.done;L=I.next()){L=L.value;var P=F.vr[L],V=void 0===P.Naa?Number.MAX_VALUE:P.Naa;!(B.j.version>=P.Vm)||B.j.version>=V||B.j.objectStoreNames.contains(L)||G.push(L)}m=G;if(0===m.length){x.Ka(5);break}n=Object.keys(c.options.vr);
p=l.objectStoreNames();if(c.G<g.LB("ytidb_reopen_db_retries",0))return c.G++,l.close(),tD(new g.xD("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),x.return(a());if(!(c.D<g.LB("ytidb_remake_db_retries",1))){x.Ka(6);break}c.D++;return g.z(x,c.delete(),7);case 7:return tD(new g.xD("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),x.return(a());case 6:throw new Jpa(p,n);case 5:return x.return(l);case 2:q=
g.Aa(x);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){x.Ka(8);break}return g.z(x,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:r=x.B;t=r.j.version;if(void 0!==c.options.version&&t>c.options.version+1)throw r.close(),c.C=!1,jqa(c,t);return x.return(r);case 8:throw b(),
q instanceof Error&&!g.KB("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),Lpa(q,c.name,"",null!=(v=c.options.version)?v:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.C)throw jqa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,Oba:b,upgrade:this.options.upgrade};return this.j=d=a()};var kqa=new RD("YtIdbMeta",{vr:{databases:{Vm:1}},upgrade:function(a,b){b(1)&&g.GD(a,"databases",{keyPath:"actualName"})}});var qqa,oqa=new function(){}(new function(){});new g.En;g.w(YD,RD);YD.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?vqa:uqa)(a,b,Object.assign({},c))};
YD.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?zqa:wqa)(this.name,a)};var Rib={},Bqa=g.ZD("ytGcfConfig",{vr:(Rib.coldConfigStore={Vm:1},Rib.hotConfigStore={Vm:1},Rib),shared:!1,upgrade:function(a,b){b(1)&&(g.MD(g.GD(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.MD(g.GD(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.w(Hqa,g.H);Hqa.prototype.xa=function(){for(var a=g.u(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);0<=b&&c.splice(b,1)}this.B.length=0;g.H.prototype.xa.call(this)};eE.prototype.Gr=function(a){this.hotHashData=a;g.Ra("yt.gcf.config.hotHashData",this.hotHashData||null)};var Sib="undefined"!==typeof TextEncoder?new TextEncoder:null,xra=Sib?function(a){return Sib.encode(a)}:function(a){a=g.eg(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};iE.prototype.Hj=function(){return{version:this.version,args:this.args}};jE.prototype.toString=function(){return this.topic};var Tib=g.Sa("ytPubsub2Pubsub2Instance")||new g.iv;g.iv.prototype.subscribe=g.iv.prototype.subscribe;g.iv.prototype.unsubscribeByKey=g.iv.prototype.Fh;g.iv.prototype.publish=g.iv.prototype.oa;g.iv.prototype.clear=g.iv.prototype.clear;g.Ra("ytPubsub2Pubsub2Instance",Tib);var lE=g.Sa("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ra("ytPubsub2Pubsub2SubscribedKeys",lE);var mE=g.Sa("ytPubsub2Pubsub2TopicToKeys")||{};g.Ra("ytPubsub2Pubsub2TopicToKeys",mE);var gra=g.Sa("ytPubsub2Pubsub2IsAsync")||{};
g.Ra("ytPubsub2Pubsub2IsAsync",gra);g.Ra("ytPubsub2Pubsub2SkipSubKey",null);var nra=void 0,lra=void 0;var tra=g.LB("max_body_size_to_compress",5E5),ura=g.LB("min_body_size_to_compress",500),pE=!0,sE=0,rE=0,yra=g.LB("compression_performance_threshold_lr",250),zra=g.LB("slow_compressions_before_abandon_count",4),pra=!1,oE=new Map,wra=1,vra=!0;g.k=uE.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(tE(this)&&this.gg){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.uh.set(d,this.Cf).then(function(e){d.id=e;c.fh.Qh()&&c.TD(d)}).catch(function(e){c.TD(d);
vE(c,e)})}else this.sendFn(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(tE(this)&&this.gg){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.jb&&this.jb("nwl_skip_retry")&&(e.skipRetry=c);if(this.fh.Qh()||this.jb&&this.jb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.Ha(function(m){if(1==m.j)return g.z(m,d.uh.set(e,d.Cf).catch(function(n){vE(d,n)}),2);
f(h,l);g.xa(m)})}}this.sendFn(a,b,e.skipRetry)}else this.uh.set(e,this.Cf).catch(function(h){d.sendFn(a,b,e.skipRetry);
vE(d,h)})}else this.sendFn(a,b,this.jb&&this.jb("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(tE(this)&&this.gg){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.uh.ez(d.id,c.Cf):e=!0;c.fh.Bw&&c.jb&&c.jb("vss_network_hint")&&c.fh.Bw(!0);f(h,l)};
this.sendFn(d.url,d.options,void 0,!0);this.uh.set(d,this.Cf).then(function(h){d.id=h;e&&c.uh.ez(d.id,c.Cf)}).catch(function(h){vE(c,h)})}else this.sendFn(a,b,void 0,!0)};
g.k.CB=function(){var a=this;if(!tE(this))throw Error("IndexedDB is not supported: throttleSend");this.j||(this.j=this.Mn.Si(function(){var b;return g.Ha(function(c){if(1==c.j)return g.z(c,a.uh.nW("NEW",a.Cf),2);if(3!=c.j)return b=c.B,b?g.z(c,a.TD(b),3):(a.GM(),c.return());a.j&&(a.j=0,a.CB());g.xa(c)})},this.J_))};
g.k.GM=function(){this.Mn.Oj(this.j);this.j=0};
g.k.TD=function(a){var b=this,c;return g.Ha(function(d){switch(d.j){case 1:if(!tE(b))throw Error("IndexedDB is not supported: immediateSend");if(void 0===a.id){d.Ka(2);break}return g.z(d,b.uh.N7(a.id,b.Cf),3);case 3:(c=d.B)||b.Az(Error("The request cannot be found in the database."));case 2:if(b.kK(a,b.PZ)){d.Ka(4);break}b.Az(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){d.Ka(5);break}return g.z(d,b.uh.ez(a.id,b.Cf),5);case 5:return d.return();case 4:a.skipRetry||
(a=Fra(b,a));if(!a){d.Ka(0);break}if(!a.skipRetry||void 0===a.id){d.Ka(8);break}return g.z(d,b.uh.ez(a.id,b.Cf),8);case 8:b.sendFn(a.url,a.options,!!a.skipRetry),g.xa(d)}})};
g.k.kK=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
g.k.oK=function(){var a=this;if(!tE(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.uh.nW("QUEUED",this.Cf).then(function(b){b&&!a.kK(b,a.IZ)?a.Mn.Si(function(){return g.Ha(function(c){if(1==c.j)return void 0===b.id?c.Ka(2):g.z(c,a.uh.dR(b.id,a.Cf),2);a.oK();g.xa(c)})}):a.fh.Qh()&&a.CB()})};var wE;var Ita={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,mbsConnectionInitiated:138,
mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,kidsParentalGateTracking:168,
kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,
dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,
tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,
tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495};var Uib={},Pra=g.ZD("ServiceWorkerLogsDatabase",{vr:(Uib.SWHealthLog={Vm:1},Uib),shared:!0,upgrade:function(a,b){b(1)&&g.MD(g.GD(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Wra={},Vra=0;zE.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
zE.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.B?!0:null};
zE.prototype.removeParams=function(a){return a.split("?")[0]};
zE.prototype.removeParams=zE.prototype.removeParams;zE.prototype.isEndpointCFR=zE.prototype.isEndpointCFR;zE.prototype.requestComplete=zE.prototype.requestComplete;zE.getInstance=AE;var Yra;g.w(CE,g.Dd);g.k=CE.prototype;g.k.Qh=function(){return this.j.Qh()};
g.k.Bw=function(a){this.j.j=a};
g.k.x6=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.z5=function(){this.B=!0};
g.k.Ra=function(a,b){return this.j.Ra(a,b)};
g.k.tK=function(a){a=uu(this.j,a);a.then(function(b){g.KB("use_cfr_monitor")&&AE().requestComplete("generate_204",b)});
return a};
CE.prototype.sendNetworkCheckRequest=CE.prototype.tK;CE.prototype.listen=CE.prototype.Ra;CE.prototype.enableErrorFlushing=CE.prototype.z5;CE.prototype.getWindowStatus=CE.prototype.x6;CE.prototype.networkStatusHint=CE.prototype.Bw;CE.prototype.isNetworkAvailable=CE.prototype.Qh;CE.getInstance=$ra;g.w(g.DE,g.Dd);g.DE.prototype.Qh=function(){var a=g.Sa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0};
g.DE.prototype.Bw=function(a){var b=g.Sa("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)};
g.DE.prototype.tK=function(a){var b=this,c;return g.Ha(function(d){c=g.Sa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.KB("skip_network_check_if_cfr")&&AE().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Bw((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Qh())})):c?d.return(c(a)):d.return(!0)})};var bsa;g.w(EE,uE);EE.prototype.writeThenSend=function(a,b){b||(b={});g.gD()||(this.gg=!1);uE.prototype.writeThenSend.call(this,a,b)};
EE.prototype.sendThenWrite=function(a,b,c){b||(b={});g.gD()||(this.gg=!1);uE.prototype.sendThenWrite.call(this,a,b,c)};
EE.prototype.sendAndWrite=function(a,b){b||(b={});g.gD()||(this.gg=!1);uE.prototype.sendAndWrite.call(this,a,b)};
EE.prototype.awaitInitialization=function(){return this.B.promise};var fsa=g.Qa.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Ra("ytNetworklessLoggingInitializationOptions",fsa);g.GE.prototype.isReady=function(){!this.config_&&Uqa()&&(this.config_=g.gE());return!!this.config_};var Vib,JE,LE;Vib=g.Qa.ytPubsubPubsubInstance||new g.iv;JE=g.Qa.ytPubsubPubsubSubscribedKeys||{};LE=g.Qa.ytPubsubPubsubTopicToKeys||{};g.KE=g.Qa.ytPubsubPubsubIsSynchronous||{};g.iv.prototype.subscribe=g.iv.prototype.subscribe;g.iv.prototype.unsubscribeByKey=g.iv.prototype.Fh;g.iv.prototype.publish=g.iv.prototype.oa;g.iv.prototype.clear=g.iv.prototype.clear;g.Ra("ytPubsubPubsubInstance",Vib);g.Ra("ytPubsubPubsubTopicToKeys",LE);g.Ra("ytPubsubPubsubIsSynchronous",g.KE);
g.Ra("ytPubsubPubsubSubscribedKeys",JE);var jsa=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,ksa=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,osa={};g.w(RE,g.H);RE.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Fb();this.Fb().appendChild(a)};
g.w(SE,RE);SE.prototype.Fb=function(){return this.j};g.w(vsa,g.H);var TE=Date.now().toString();var Asa={};var aF=Symbol("injectionDeps");ZE.prototype.toString=function(){return"InjectionToken("+this.name+")"};
Bsa.prototype.resolve=function(a){return a instanceof $E?bF(this,a.key,[],!0):bF(this,a,[])};var Esa;var dF=window;var eF=g.KB("web_enable_lifecycle_monitoring")&&0!==Fsa(),Osa=g.KB("web_enable_lifecycle_monitoring");Jsa.prototype.cancel=function(){for(var a=g.u(this.j),b=a.next();!b.done;b=a.next())b=b.value,void 0===b.jobId||b.YJ||this.scheduler.Oj(b.jobId),b.YJ=!0;this.B.resolve()};g.k=fF.prototype;g.k.install=function(a){this.plugins.push(a);return this};
g.k.uninstall=function(){var a=this;g.Ia.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);-1<b&&a.plugins.splice(b,1)})};
g.k.transition=function(a,b){var c=this;eF&&Hsa(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(h){return h===c.state&&f.to===a}):f.from===c.state&&f.to===a});
if(d){this.B&&(Ksa(this.B),this.B=void 0);Psa(this,a,b);this.state=a;eF&&Gsa(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]});
d(Msa(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);};
g.k.Waa=function(a){var b=g.Ia.apply(1,arguments);g.lD();for(var c=g.u(a),d=c.next(),e={};!d.done;e={kE:void 0},d=c.next())e.kE=d.value,Apa(function(f){return function(){Nsa(f.kE.name);f.kE.callback.apply(f.kE,g.oa(b));gF(f.kE.name)}}(e))};
g.k.Vaa=function(a){var b=g.Ia.apply(1,arguments),c,d,e,f;return g.Ha(function(h){1==h.j&&(g.lD(),c=g.u(a),d=c.next(),e={});if(3!=h.j){if(d.done)return h.Ka(0);e.aA=d.value;e.NG=void 0;f=function(l){return function(){Nsa(l.aA.name);var m=l.aA.callback.apply(l.aA,g.oa(b));"function"===typeof(null==m?void 0:m.then)?l.NG=m.then(function(){gF(l.aA.name)}):gF(l.aA.name)}}(e);
Apa(f);return e.NG?g.z(h,e.NG,3):h.Ka(3)}e={aA:void 0,NG:void 0};d=c.next();return h.Ka(2)})};
g.k.k_=function(a){var b=g.Ia.apply(1,arguments),c=this,d=a.map(function(e){return{ZO:function(){Nsa(e.name);e.callback.apply(e,g.oa(b));gF(e.name)},
priority:Lsa(c,e)}});
d.length&&(this.B=new Jsa(d))};
g.da.Object.defineProperties(fF.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Qsa;g.w(hF,fF);hF.prototype.G=function(a,b){var c=this;this.j=g.jD(0,function(){"application_navigating"===c.currentState&&c.transition("none")},5E3);
a(null==b?void 0:b.event)};
hF.prototype.K=function(a,b){this.j&&(g.wu.Oj(this.j),this.j=null);a(null==b?void 0:b.event)};var Dta=[];g.Ra("yt.logging.transport.getScrapedGelPayloads",function(){return Dta});iF.prototype.storePayload=function(a,b){a=Ssa(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;return a};
iF.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Tsa(this,a.keys.splice(0,1)[0]),c=[],d=0;d<b.length;d++)this.store[b[d]]&&a.sizeLimit&&(this.store[b[d]].length<=a.sizeLimit?(c.push.apply(c,g.oa(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.oa(this.store[b[d]].splice(0,a.sizeLimit))));this.j-=c.length;(null==a?0:a.sizeLimit)&&c.length<(null==a?void 0:a.sizeLimit)&&(a.sizeLimit-=c.length,c.push.apply(c,g.oa(this.smartExtractMatchingEntries(a))));
return c};
iF.prototype.extractMatchingEntries=function(a){a=Tsa(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.oa(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
iF.prototype.getSequenceCount=function(a){a=Tsa(this,a);for(var b=0,c=0;c<a.length;c++){var d=void 0;b+=(null==(d=this.store[a[c]])?void 0:d.length)||0}return b};
iF.prototype.getSequenceCount=iF.prototype.getSequenceCount;iF.prototype.extractMatchingEntries=iF.prototype.extractMatchingEntries;iF.prototype.smartExtractMatchingEntries=iF.prototype.smartExtractMatchingEntries;iF.prototype.storePayload=iF.prototype.storePayload;var qta=g.LB("initial_gel_batch_timeout",2E3),pta=g.LB("gel_queue_timeout_max_ms",6E4),Cta=Math.pow(2,16)-1,rta=g.LB("gel_min_batch_size",5),tF=void 0,Hta=new kF,Gta=new kF,ota=new kF,nta=new kF,gta,xF=!0,Bta=1,mF=new Map,wF=g.Qa.ytLoggingTransportTokensToCttTargetIds_||{};g.Ra("ytLoggingTransportTokensToCttTargetIds_",wF);var vF=g.Qa.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Ra("ytLoggingTransportTokensToJspbCttTargetIds_",vF);var pF={},Usa=!1;var yF=g.Qa.ytLoggingGelSequenceIdObj_||{};g.Ra("ytLoggingGelSequenceIdObj_",yF);var Mta,AF,Nta,Pta=g.GE,Lta=!1,Sta=[];var Uta=g.Qa.ytLoggingGelSequenceIdObj_||{};g.Ra("ytLoggingGelSequenceIdObj_",Uta);var $2=g.Qa.ytLoggingDocDocumentNonce_;$2||($2=g.VE(16),g.Ra("ytLoggingDocDocumentNonce_",$2));var mua=$2;var jua={b1:0,Lqa:1,Qra:2,VL:3,kua:4,qfb:5,nSa:6,x1a:7,J_a:8,J0a: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"};var bua=1;g.k=EF.prototype;g.k.getAsJson=function(){var a={};void 0!==this.j.trackingParams?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,void 0!==this.j.veCounter&&(a.veCounter=this.j.veCounter),void 0!==this.j.elementIndex&&(a.elementIndex=this.j.elementIndex));void 0!==this.j.dataElement&&(a.dataElement=this.j.dataElement.getAsJson());void 0!==this.j.youtubeData&&(a.youtubeData=this.j.youtubeData);this.j.isCounterfactual&&(a.isCounterfactual=!0);return a};
g.k.getAsJspb=function(){var a=new HA;void 0!==this.j.trackingParams?a.setTrackingParams(this.j.trackingParams):(void 0!==this.j.veType&&Wj(a,2,this.j.veType),void 0!==this.j.veCounter&&Wj(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&Wj(a,3,this.j.elementIndex),this.j.isCounterfactual&&Vj(a,5,!0));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();Jj(a,HA,7,b)}void 0!==this.j.youtubeData&&Jj(a,Mx,8,this.j.jspbYoutubeData);return a};
g.k.toString=function(){return JSON.stringify(this.getAsJson())};
g.k.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};
g.k.getLoggingDirectives=function(){return this.j.loggingDirectives};g.Ra("yt_logging_screen.getRootVeType",gua);g.Ra("yt_logging_screen.getCurrentCsn",g.HF);g.Ra("yt_logging_screen.getCttAuthInfo",IF);g.Ra("yt_logging_screen.setCurrentScreen",nua);var rua="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Eua=[{sP:function(a){return"Cannot read property '"+a.key+"'"},
NJ:{Error:[{Ej:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Ej:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Ej:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Ej:/\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"]},{Ej:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Ej:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Ej:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{sP:function(a){return"Cannot call '"+a.key+"'"},
NJ:{TypeError:[{Ej:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Ej:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Ej:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Ej:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Ej:/\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"]},
{Ej:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{sP:function(a){return a.key+" is not defined"},
NJ:{ReferenceError:[{Ej:/(.*) is not defined/,groups:["key"]},{Ej:/Can't find variable: (.*)/,groups:["key"]}]}}];var wua={rr:[],ys:[{callback:sua,weight:500}]};var uua;var MF=new g.iv;var Fua=new Set,Cua=0,Iua=0,Hua=0,Dua=[],Kua=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Mua=new g.lw("parallelCommand");var Oua=new g.lw("serialCommand");g.w(Rua,iE);var Uua=new jE("screen-created",Rua),WF=[],Sua=eva,fva=0,SF=new Map,Vua=new Map,Wua=new Map;g.ib(g.cG,g.H);g.cG.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.sj.subscribe(a,b,c)};
g.cG.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.sj.unsubscribe(a,b,c)};
g.cG.prototype.Fh=function(a){return this.isDisposed()?!1:this.sj.Fh(a)};
g.cG.prototype.oa=function(a,b){return this.isDisposed()?!1:this.sj.oa.apply(this.sj,arguments)};var o2a=16/9,Wib=[.25,.5,.75,1,1.25,1.5,1.75,2],Xib=Wib.concat([3,4,5,6,7,8,9,10,15]);var hva=1;g.w(g.gG,g.H);g.k=g.gG.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.I;var c=a.S,d=a.Ma;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.I);g.ES&&(a.Y||(a.Y={}),a.Y.focusable="false")}else e=g.$e(a.I);if(c){if(c=hG(this,e,"class",c))iG(this,e,"class",c),this.Jb[c]=e}else if(d){c=g.u(d);for(var f=c.next();!f.done;f=c.next())this.Jb[f.value]=e;iG(this,e,"class",d.join(" "))}d=a.ya;c=a.V;if(d)b=hG(this,e,"child",d),void 0!==b&&e.appendChild(g.jf(b));else if(c)for(d=0,c=g.u(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=hG(this,e,"child",f),null!=f&&e.appendChild(g.jf(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.zc&&(h=fG(),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),mf(e,f,d++))}if(a=a.Y)for(b=e,d=g.u(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],iG(this,b,c,"string"===typeof f?
hG(this,b,c,f):f);return e};
g.k.Ha=function(a){return this.Jb[a]};
g.k.Ja=function(a,b){"number"===typeof b?mf(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.nf(this.element)};
g.k.update=function(a){for(var b=g.u(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.Pe["{{"+a+"}}"])&&iG(this,a[0],a[1],b)};
g.k.xa=function(){this.Jb={};this.Pe={};this.detach();g.H.prototype.xa.call(this)};g.w(g.U,g.gG);g.k=g.U.prototype;g.k.Yd=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.Ib||(g.Yr(this.element,"display",""),this.Ib=!0)};
g.k.hide=function(){this.Ib&&(g.Yr(this.element,"display","none"),this.Ib=!1)};
g.k.Hc=function(a){this.Z=a};
g.k.Ra=function(a,b,c){return this.T(this.element,a,b,c)};
g.k.T=function(a,b,c,d){c=(0,g.eb)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Nc=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;rf(a);a.focus()};
g.k.xa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.gG.prototype.xa.call(this)};g.w(g.kG,g.U);g.kG.prototype.subscribe=function(a,b,c){return this.Qa.subscribe(a,b,c)};
g.kG.prototype.unsubscribe=function(a,b,c){return this.Qa.unsubscribe(a,b,c)};
g.kG.prototype.Fh=function(a){return this.Qa.Fh(a)};
g.kG.prototype.oa=function(a){return this.Qa.oa.apply(this.Qa,[a].concat(g.oa(g.Ia.apply(1,arguments))))};var Yib=new WeakSet;g.w(lG,g.kG);g.k=lG.prototype;g.k.bind=function(a){this.Xa||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
g.k.init=function(a,b,c){this.Xa=a;this.element.setAttribute("id",this.Xa);this.tb&&g.Mu(this.element,this.tb);this.ma=b&&b.adRendererCommands;this.Za=b.interaction;this.macros=c;this.N=b.trackingParams||null;this.K=b.loggingDirectives;null!=this.N?this.createServerVe(this.element,this.N):this.K&&(a=this.element,b=this.K,this.api.createServerVe(a,this,!0),this.api.setTrackingParams(a,b.trackingParams||null))};
g.k.clear=function(){};
g.k.hide=function(){g.kG.prototype.hide.call(this);(null!=this.N||this.K)&&this.logVisibility(this.element,!1)};
g.k.show=function(){g.kG.prototype.show.call(this);if(!this.Bb){this.Bb=!0;var a=this.ma&&this.ma.impressionCommand,b,c=null==(b=this.Za)?void 0:b.onFirstVisible;a?this.zF(a):c&&(a=PF(c))&&this.zF(a)}(null!=this.N||this.K)&&this.logVisibility(this.element,!0)};
g.k.onClick=function(a){if((this.N||this.K)&&!Yib.has(a)){var b=this.element;this.api.hasVe(b)&&this.Ib&&this.api.logClick(b,this.interactionLoggingClientData);Yib.add(a)}a=this.ma&&this.ma.clickCommand;var c;b=null==(c=this.Za)?void 0:c.onTap;a?(c=this.GZ(a),this.zF(c)):b&&(c=PF(b))&&this.zF(c)};
g.k.GZ=function(a){return a};
g.k.R2=function(a){var b=this.Ba;b.N=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=wsa(b,a)||1!=a.length;var c=a.item(0);b.K||!c?(b.Z=Infinity,b.W=Infinity):(b.Z=c.clientX,b.W=c.clientY);for(c=b.C.length=0;c<a.length;c++){var d=a.item(c);b.C.push(d.identifier)}};
g.k.Q2=function(a){var b=this.Ba;a=a.changedTouches.item(0);var c;if(c=Hc()){c=g.mc();var d="";if(Raa())d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0";else if(Hc())d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".");else if(Ic())d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10";else if(hc(g.mc(),"KaiOS"))d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1];else if(Qaa())d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1];else if(Fc()?"Chrome OS"===
qc.platform:uc("CrOS"))d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(c=d.exec(c))&&c[1];c=!(0<=g.kc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.Z,2)+Math.pow(a.clientY-b.W,2)>Math.pow(5,2))b.D=!0};
g.k.P2=function(a){if(this.Ba){var b=this.Ba,c=a.changedTouches;c&&b.N&&1==b.B&&!b.D&&!b.G&&!b.K&&wsa(b,c)&&(b.ma=a,b.j.start());b.B=a.touches.length;0===b.B&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}};
g.k.zF=function(a){this.layoutId?this.gb.executeCommand(a,this.layoutId):g.KF(new g.eD("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
g.k.createServerVe=function(a,b){this.api.createServerVe(a,this);this.api.setTrackingParams(a,b)};
g.k.logVisibility=function(a,b){this.api.hasVe(a)&&this.api.logVisibility(a,b,this.interactionLoggingClientData)};
g.k.xa=function(){this.clear(null);this.Nc(this.rb);for(var a=g.u(this.Ea),b=a.next();!b.done;b=a.next())this.Nc(b.value);g.kG.prototype.xa.call(this)};g.w(vG,lG);
vG.prototype.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.LF(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.Mu(this.element,a);null!=b.text&&(a=g.nG(b.text),g.cc(a)||(this.element.setAttribute("aria-label",a),this.C=new g.kG({I:"span",S:"ytp-ad-button-text",ya:a}),g.J(this,this.C),this.C.Ja(this.element)));this.api.U().L("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.cc(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=uG(b.icon),null!=b&&(this.B=new g.kG({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.J(this,this.B)),this.D?mf(this.element,this.B.element,0):this.B.Ja(this.element))}};
vG.prototype.clear=function(){this.hide()};
vG.prototype.onClick=function(a){lG.prototype.onClick.call(this,a);a=g.u(Kva(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.gb.executeCommand(b,this.layoutId):g.KF(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(wG,g.H);wG.prototype.xa=function(){this.B&&g.PC(this.B);this.j.clear();xG=null;g.H.prototype.xa.call(this)};
wG.prototype.register=function(a,b){b&&this.j.set(a,b)};
var xG=null;g.w(AG,lG);
AG.prototype.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.R(b.button,g.nN)||null;null==b?g.KF(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new vG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.J(this,this.button),this.button.init(aG("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.nG(a)),this.button.Ja(this.element),this.G&&!g.Lu(this.button.element,"ytp-ad-clickable")&&g.Mu(this.button.element,
"ytp-ad-clickable"),a&&(this.B=new g.kG({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.kG({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.B.element),g.J(this,b)),g.J(this,this.B),this.B.Ja(this.element),b=yG(a),mf(this.B.element,b,0)),this.show())};
AG.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();lG.prototype.hide.call(this)};
AG.prototype.show=function(){this.button&&this.button.show();lG.prototype.show.call(this)};g.w(CG,lG);
CG.prototype.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&BG(a)||"";g.cc(c)?.01>Math.random()&&g.LF(Error("Found AdImage without valid image URL")):(this.j?g.Yr(this.element,"backgroundImage","url("+c+")"):Ne(this.element,{src:c}),Ne(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())};
CG.prototype.clear=function(){this.hide()};g.w(DG,lG);g.k=DG.prototype;g.k.hide=function(){lG.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;lG.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.KF(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.KF(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Ova(this,b):g.KF(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.UC(this.j);this.hide()};
g.k.PP=function(){this.hide()};
g.k.GL=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.gb.executeCommand(a,this.layoutId):g.KF(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.k.QP=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.gb.executeCommand(a,this.layoutId):g.KF(Error("Missing layoutId for confirm dialog.")));this.hide()};g.w(EG,lG);g.k=EG.prototype;
g.k.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);this.C=b;if(null==b.defaultText&&null==b.defaultIcon)g.KF(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.KF(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.Mu(this.D,a)}a={};b.defaultText?
(c=g.nG(b.defaultText),g.cc(c)||(a.buttonText=c,this.api.U().experiments.jb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.jb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.js(this.Ga,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=uG(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.ra=
!0,c=uG(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.js(this.W,!0),g.js(this.G,!1)),g.js(this.j,!1)):g.js(this.B,!1);g.id(a)||this.update(a);b.isToggled&&(g.Mu(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));Pva(this);this.T(this.element,"change",this.uT);this.show()}};
g.k.onClick=function(a){0<this.Ea.length&&(this.toggleButton(!this.isToggled()),this.uT());lG.prototype.onClick.call(this,a)};
g.k.uT=function(){g.Qu(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.u(Qva(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.gb.executeCommand(b,this.layoutId):g.KF(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Pva(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.Qu(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;Pva(this)};
g.k.isToggled=function(){return this.j.checked};g.w(FG,SC);FG.prototype.K=function(a){if(Array.isArray(a)){a=g.u(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Rva&&this.D(b)}};g.w(Sva,lG);g.k=Sva.prototype;g.k.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.KF(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.LF(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.LF(Error("AdFeedbackRenderer.title was not set.")),Wva(this,b)):g.KF(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){gpa(this.G);gpa(this.W);this.D.length=0;this.hide()};
g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();lG.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.j&&this.j.show();this.B&&this.B.show();this.C=document.activeElement;lG.prototype.show.call(this);this.G.focus()};
g.k.AY=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.oa("a");this.hide()};
g.k.Q$=function(){this.hide()};
Xva.prototype.Fb=function(){return this.j.element};
Xva.prototype.isChecked=function(){return this.C.checked};g.w(GG,DG);GG.prototype.PP=function(a){DG.prototype.PP.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
GG.prototype.GL=function(a){DG.prototype.GL.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
GG.prototype.QP=function(a){DG.prototype.QP.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.oa("b")};g.w(Yva,lG);g.k=Yva.prototype;
g.k.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);this.G=b;if(null==b.dialogMessage&&null==b.title)g.KF(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.LF(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.R(b.closeOverlayRenderer,g.nN)||null)this.j=new vG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.J(this,this.j),this.j.init(aG("button"),a,this.macros),this.j.Ja(this.element);b.title&&(a=g.nG(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=yG(a[c]);if(!g.cc(d.textContent)){var e=Ze("LI");e.appendChild(d);this.La.appendChild(e)}}else g.js(this.La,!1);b.dialogMessage&&(a=yG(b.dialogMessage,!0),this.Va.appendChild(a));b.confirmLabel&&(a=g.nG(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.R(b.muteAdRenderer,g.nN)||null)&&
(a=b.navigationEndpoint&&g.R(b.navigationEndpoint,jib)||null,c=b.navigationEndpoint&&g.R(b.navigationEndpoint,Pgb)||null,null==a&&null==c?g.LF(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?Zva(this,a):c&&$va(this,c),this.C=new vG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.J(this,this.C),this.C.init(aG("button"),b,this.macros),this.C.Ra("click",
this.u9,this),this.C.Ja(this.bb)));awa(this)}};
g.k.clear=function(){gpa(this.W);this.hide()};
g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.j&&this.j.hide();this.C&&this.C.hide();lG.prototype.hide.call(this);this.ra&&this.ra.focus()};
g.k.show=function(){this.j&&this.j.show();this.C&&this.C.show();if(!this.Na){for(var a=g.u(this.G&&this.G.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.gb.executeCommand(b,this.layoutId):g.KF(Error("Missing layoutId for ad info dialog."));this.Na=!0}this.ra=document.activeElement;lG.prototype.show.call(this);this.W.focus()};
g.k.vT=function(){if(this.G&&this.G.confirmServiceEndpoint){var a=this.G.confirmServiceEndpoint;this.layoutId?this.gb.executeCommand(a,this.layoutId):g.KF(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.oa("d");this.hide()};
g.k.u9=function(){var a=this.B?this.B:this.D;a&&!a.Ib&&(this.hide(),a.show())};g.w(HG,AG);HG.prototype.init=function(a,b,c){AG.prototype.init.call(this,a,b,c);a=b.button&&g.R(b.button,g.nN)||null;null!=a&&(fwa(this,a,c),this.show())};
HG.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();AG.prototype.hide.call(this)};
HG.prototype.show=function(){this.button&&this.button.show();AG.prototype.show.call(this)};
HG.prototype.clear=function(){this.hide()};g.w(IG,lG);
IG.prototype.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.qf(this.element,mG(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?BG(a):"",c=(c=this.api.getVideoData(1))&&c.Fl,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.ue(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()};
IG.prototype.isTemplated=function(){return this.j.isTemplated||!1};
IG.prototype.clear=function(){this.hide()};var rwa={seekableStart:0,seekableEnd:1,current:0};g.w(JG,lG);JG.prototype.clear=function(){this.dispose()};g.w(g.MG,g.H);g.k=g.MG.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.AG(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.Ib||(NG(this,!0),this.state=1,a?this.delay.start(a):this.AG()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Ib&&(NG(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.AG=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:NG(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();NG(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.AG()};
g.k.xa=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.H.prototype.xa.call(this)};g.w(OG,JG);g.k=OG.prototype;
g.k.init=function(a,b,c){JG.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.KF(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.kb&&(this.D?g.Mu(this.B.element,"modern-countdown-next-to-thumbnail"):g.Mu(this.B.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.La=null==a||0===a?this.j.jn():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);
this.C.init(aG("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.Fl&&b.thumbnail?this.G.init(aG("ad-image"),b.thumbnail,c):(this.ra.hide(),this.D&&this.kb&&g.Mu(this.C.element,"ytp-ad-preview-text-modern-postroll"))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.C.hide();this.G.hide();LG(this);JG.prototype.hide.call(this)};
g.k.show=function(){KG(this);this.B.show();this.C.show();this.G.show();JG.prototype.show.call(this)};
g.k.Vp=function(){this.hide()};
g.k.Yn=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Va&&a>=this.La?(this.Ga.hide(),this.Va=!0,this.oa("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.La-a)/1E3)),a!=this.bb&&(gwa(this.C,{TIME_REMAINING:String(a)}),this.bb=a)))}};g.w(iwa,JG);g.k=iwa.prototype;
g.k.init=function(a,b,c){JG.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.R(b.actionButton,g.nN))&&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.cc(g.ue(e[0].url))&&(e[0].url=d.profilePicture)}else g.LF(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(aG("ad-image"),b.image,c);this.G.init(aG("ad-text"),
b.headline,c);this.D.init(aG("ad-text"),b.description,c);this.B.init(aG("button"),a,c);c=Bu(this.B.element);Au(this.B.element,c+" This link opens in new tab");this.ra=a.navigationEndpoint;this.api.dE()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.wT.bind(this));this.Ga=b.startMs||0;KG(this)}else g.KF(Error("FlyoutCtaRenderer has no valid action button."));else g.KF(Error("FlyoutCtaRenderer has no description AdText."));else g.KF(Error("FlyoutCtaRenderer has no headline AdText."));
else g.LF(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){JG.prototype.onClick.call(this,a);this.api.pauseVideo();!g.pf(this.B.element,a.target)&&this.ra&&(this.layoutId?this.gb.executeCommand(this.ra,this.layoutId):g.KF(Error("Missing layoutId for flyout cta.")))};
g.k.Yn=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.La)&&1E3*a.current>=this.Ga&&(LG(this),g.Ou(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}};
g.k.Vp=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.wT.bind(this))};
g.k.show=function(){this.B&&this.B.show();JG.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();JG.prototype.hide.call(this)};
g.k.wT=function(a){"hidden"==a?this.show():this.hide()};g.w(jwa,lG);g.k=jwa.prototype;
g.k.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.R(this.j.likeButton,U2),b=this.j.dislikeButton&&g.R(this.j.dislikeButton,U2),this.C.init(aG("toggle-button"),a,c),this.B.init(aG("toggle-button"),b,c),this.T(this.element,"change",this.xT),this.D.show(100),this.show(),c=g.u(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.gb.executeCommand(a,this.layoutId):g.KF(Error("Missing layoutId for instream user sentiment."))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();lG.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();lG.prototype.show.call(this)};
g.k.xT=function(){Zka(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.ib("onYtShowToast",this.j.postMessageAction);this.D.hide()};
g.k.onClick=function(a){0<this.Ea.length&&this.xT();lG.prototype.onClick.call(this,a)};g.w(PG,g.H);g.k=PG.prototype;g.k.xa=function(){this.reset();g.H.prototype.xa.call(this)};
g.k.reset=function(){g.UC(this.D);this.K=!1;this.j&&this.j.stop();this.G.stop();this.C&&(this.C=!1,this.N.play())};
g.k.start=function(){this.reset();this.D.T(this.B,"mouseover",this.zT,this);this.D.T(this.B,"mouseout",this.yT,this);this.ma&&(this.D.T(this.B,"focusin",this.zT,this),this.D.T(this.B,"focusout",this.yT,this));this.j?this.j.start():(this.K=this.C=!0,g.Yr(this.B,{opacity:this.W}))};
g.k.zT=function(){this.C&&(this.C=!1,this.N.play());this.G.stop();this.j&&this.j.stop()};
g.k.yT=function(){this.K?this.G.start():this.j&&this.j.start()};
g.k.QU=function(){this.C||(this.C=!0,this.Z.play(),this.K=!0)};g.w(WG,JG);g.k=WG.prototype;
g.k.init=function(a,b,c){JG.prototype.init.call(this,a,b,c);this.ra=b;(this.Ga=owa(this))&&g.LF(Error("hasAdControlInClickCommands_ is true."));if(!b||g.id(b))g.KF(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.id(b.message))g.KF(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=uG(a);null==b?g.KF(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):
(this.C=new g.kG({I:"button",Ma:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{I:"span",S:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[b]}]}),g.J(this,this.C),this.C.Ja(this.D.element),this.B=new IG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(aG("ad-text"),this.ra.message,c),g.J(this,this.B),mf(this.C.element,this.B.element,
0));var d=void 0===d?null:d;c=this.api.U();!(0<this.Ea.length)&&c.B&&(kS?0:"ontouchstart"in document.documentElement&&(uha()||hr()))&&(this.Nc(this.rb),d&&this.Nc(d),this.Ea=[this.T(this.element,"touchstart",this.R2,this),this.T(this.element,"touchmove",this.Q2,this),this.T(this.element,"touchend",this.P2,this)])}};
g.k.clear=function(){this.La.reset();this.hide()};
g.k.hide=function(){this.D.hide();this.B&&this.B.hide();LG(this);JG.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.C){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var c;b=(null==(c=this.api.getVideoData(1))?void 0:c.clientPlaybackNonce)||"";if(!this.api.U().L("ab_sa_ef")||0!==QG(a,{contentCpn:b}))if(JG.prototype.onClick.call(this,a),this.api.U().L("ab_sa_ef")||QG(a,{contentCpn:b}),this.oa("j"),this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ib("onAdSkip"),this.Va||!this.Ga)this.api.onAdUxClicked(this.componentType,
this.layoutId)}};
g.k.GZ=function(a){if(!this.Va)return this.Ga&&RG("SkipButton click commands not pruned while ALC exist"),a;var b,c=null==(b=g.R(a,g.XG))?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&nwa(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.show=function(){this.La.start();this.D.show();this.B&&this.B.show();KG(this);JG.prototype.show.call(this);this.bb&&this.api.U().L("enable_skip_to_next_messaging")&&this.api.oa("showpromotooltip",this.element)};
g.k.Vp=function(){this.oa("k")};
g.k.Yn=function(){};g.w(YG,JG);g.k=YG.prototype;
g.k.init=function(a,b,c){JG.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.R(b.preskipRenderer,mN)||{};(a=g.id(a)?null:a)?(this.G=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.B=new OG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j,"countdown_next_to_thumbnail"==SR(this.api.U().experiments,"preskip_button_style_ads_backend")&&OJ(this.api.U())),this.B.init(aG("preskip-component"),a,c),hwa(this.B),g.J(this,this.B),this.B.Ja(this.element)):
b.skipOffsetMilliseconds&&(this.G=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.R(b.skippableRenderer,Ggb)||{};a=g.id(a)?null:a;null==a?g.KF(Error("SkipButtonRenderer was not set in player response.")):(this.C=new WG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j,this.ra),this.C.init(aG("skip-button"),a,c),g.J(this,this.C),this.C.Ja(this.element),this.api.U().experiments.jb("enable_skip_to_next_messaging")&&(b=g.ue(b.targetId))&&(c=this.C,null!=c.C&&(c.bb=!0,c.C.element.setAttribute("data-tooltip-target-id",
b),c.C.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.k.show=function(){this.D&&this.C?this.C.show():this.B&&this.B.show();KG(this);JG.prototype.show.call(this)};
g.k.Vp=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();LG(this);JG.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();LG(this);JG.prototype.hide.call(this)};
g.k.Yn=function(){1E3*this.j.getProgressState().current>=this.G&&pwa(this,!0)};g.w(qwa,vG);qwa.prototype.init=function(a,b,c){vG.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.nG(b.text),a=!g.cc(a));a?null==b.navigationEndpoint?g.LF(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.LF(Error("Button style was not a link-style type in renderer,")):this.show():g.LF(Error("No visit advertiser text was present in the renderer."))};g.w(ZG,lG);ZG.prototype.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);a=b.text;g.cc(mG(a))?g.LF(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.j&&(b=this.api.U(),b=a.text+" "+(b&&b.B?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new IG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),a.init(aG("simple-ad-badge"),b,c),a.Ja(this.element),g.J(this,a)),this.show())};
ZG.prototype.clear=function(){this.hide()};g.w($G,bG);g.w(aH,g.cG);g.k=aH.prototype;g.k.jn=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Ad.Nc(this.j)};
g.k.Kc=function(a){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.oa("h")};
g.k.getProgressState=function(){return this.B};
g.k.Sd=function(a){g.VG(a,2)&&this.oa("g")};g.w(bH,g.cG);g.k=bH.prototype;g.k.jn=function(){return this.durationMs};
g.k.start=function(){this.j||(this.j=!0,this.timer.start())};
g.k.stop=function(){this.j&&(this.j=!1,this.timer.stop())};
g.k.Kc=function(){this.cj+=100;var a=!1;this.cj>this.durationMs&&(this.cj=this.durationMs,this.timer.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.cj/1E3};this.oa("h");a&&this.oa("g")};
g.k.getProgressState=function(){return this.B};g.w(eH,JG);g.k=eH.prototype;g.k.init=function(a,b,c){JG.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){g.LF(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new IG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);this.B.init(aG("ad-text"),a,{});this.B.Ja(this.element);g.J(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){LG(this);JG.prototype.hide.call(this)};
g.k.Vp=function(){this.hide()};
g.k.Yn=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.j instanceof aH?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof bH?a.seekableEnd:this.api.getDuration(2,!1))-a.current,gwa(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.cH(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){KG(this);JG.prototype.show.call(this)};g.w(swa,IG);swa.prototype.onClick=function(a){IG.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};fH.prototype.getLength=function(){return this.j-this.B};g.w(hH,g.kG);hH.prototype.Kc=function(){var a=this.B.getProgressState();a=gH(new fH(a.seekableStart,a.seekableEnd),a.current,0);this.progressBar.style.width=100*a+"%"};
hH.prototype.onStateChange=function(){g.sS(this.api.U())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.B.subscribe("h",this.Kc,this),this.Kc()):-1!==this.j&&(this.hide(),this.B.Fh(this.j),this.j=-1))};g.w(iH,lG);
iH.prototype.init=function(a,b,c,d){lG.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.R(c,dM),c=g.R(c,mN),a?(c=new YG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j,this.W),c.Ja(this.G),c.init(aG("skip-button"),a,this.macros),g.J(this,c)):c&&(a=new OG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j,!1),a.Ja(this.G),a.init(aG("ad-preview"),c,this.macros),hwa(a),g.J(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,
c=new jwa(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),c.Ja(this.ra),c.init(aG("instream-user-sentiment"),a,this.macros),g.J(this,c));if(a=g.R(b,zgb))if(a=g.R(a,zgb))c=new iwa(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j,!!b.showWithoutLinkedMediaLayout),g.J(this,c),c.Ja(this.D),c.init(aG("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Mainos",isTemplated:!1}}),
c=new ZG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,!0),g.J(this,c),c.Ja(this.B),c.init(aG("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new eH(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j,d),g.J(this,d),d.Ja(this.B),d.init(aG("ad-duration-remaining"),
a,this.macros));b.adInfoRenderer&&(d=g.R(b.adInfoRenderer,lN))&&(a=new HG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.element),g.J(this,a),a.Ja(this.B),a.init(aG("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(d=g.R(b.visitAdvertiserRenderer,g.nN))&&(a=twa(this)&&this.C?this.C:this.B)&&(b=new qwa(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.J(this,b),b.Ja(a),b.init(aG("visit-advertiser"),d,this.macros),yu(b.element),d=Bu(b.element),
Au(b.element,d+" This link opens in new tab"));(b=this.api.U())&&!g.qS(b)&&"3"==b.controlsType&&(b=new hH(this.api,this.j),b.Ja(this.Ga),g.J(this,b));this.api.U().L("enable_updated_html5_player_focus_style")&&g.Mu(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
iH.prototype.clear=function(){this.hide()};lH.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
lH.prototype.get=function(a){return this.j.get(a)};
lH.prototype.remove=function(a){this.j.remove(a)};var ywa=null,Awa=null,Cwa=null,Ewa=null;g.Ra("yt.www.ads.eventcache.getLastCompanionData",function(){return ywa});
g.Ra("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Ra("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Awa});
g.Ra("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Cwa});
g.Ra("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Ewa});var Gwa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);oH.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.Jp.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)};
oH.prototype.replace=function(a,b){a=g.u(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];Iwa(this,b)};var Zib=window.location.hostname.split(".").slice(-2).join("."),a3;pH.getInstance=function(){a3=g.Sa("yt.clientLocationService.instance");a3||(a3=new pH,g.Ra("yt.clientLocationService.instance",a3));return a3};
g.k=pH.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.IB("INNERTUBE_CLIENT_NAME")?(this.localStorage=Jwa(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.oC("YT_CL",JSON.stringify({loctok:a}),15552E3,Zib,!0))};
g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=Jwa(this))&&this.localStorage.remove("yt-location-playability-token"):g.qoa("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.IB("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};
g.k.createLocationInfo=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);return b};var b3={},Owa=(b3.WEB_UNPLUGGED="^unplugged/",b3.WEB_UNPLUGGED_ONBOARDING="^unplugged/",b3.WEB_UNPLUGGED_OPS="^unplugged/",b3.WEB_UNPLUGGED_PUBLIC="^unplugged/",b3.WEB_CREATOR="^creator/",b3.WEB_KIDS="^kids/",b3.WEB_EXPERIMENTS="^experiments/",b3.WEB_MUSIC="^music/",b3.WEB_REMIX="^music/",b3.WEB_MUSIC_EMBEDDED_PLAYER="^music/",b3.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",b3);tH.prototype.G=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?hE:c;var d={context:g.qH(a.clickTrackingParams,!1,this.D)};var e=this.j(a);if(e){this.B(d,e,b);var f;b=g.sH(this.C());(e=null==(f=g.R(a.commandMetadata,g.Q2))?void 0:f.apiUrl)&&(b=e);f=toa(soa(b));a=Object.assign({},{command:a},void 0);d={input:f,Yt:uoa(f),Jp:d,config:a};d.config.Vu?d.config.Vu.identity=c:d.config.Vu={identity:c};return d}g.KF(new g.eD("Error: Failed to create Request from Command.",a))};
g.da.Object.defineProperties(tH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(uH,tH);uH.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",Yt:uoa("/getDatasyncIdsEndpoint","GET"),Jp:{}}};
uH.prototype.C=function(){return[]};
uH.prototype.j=function(){};
uH.prototype.B=function(){};var $ib={},Gxa=($ib.GET_DATASYNC_IDS=rH(uH),$ib);var c3={},Vwa=(c3.auto_search="LATENCY_ACTION_AUTO_SEARCH",c3.ad_to_ad="LATENCY_ACTION_AD_TO_AD",c3.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",c3["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",c3.app_startup="LATENCY_ACTION_APP_STARTUP",c3["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",c3["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",c3["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",c3["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",
c3["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",c3["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",c3["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",c3["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",c3["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",c3["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",c3["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",c3["asset.metadata"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",c3["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",c3["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",c3["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",c3["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",c3["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",c3["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",c3["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",
c3["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",c3["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",c3["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",c3.browse="LATENCY_ACTION_BROWSE",c3.cast_splash="LATENCY_ACTION_CAST_SPLASH",c3.channels="LATENCY_ACTION_CHANNELS",c3.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",c3["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",c3["channel.comments"]=
"LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",c3["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",c3["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",c3["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",c3["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",c3["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",c3["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",c3["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",
c3["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",c3["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",c3["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",c3["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",c3.chips="LATENCY_ACTION_CHIPS",c3.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",c3["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",c3["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",
c3["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",c3.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",c3.embed="LATENCY_ACTION_EMBED",c3.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",c3.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",c3.explore="LATENCY_ACTION_EXPLORE",c3.home="LATENCY_ACTION_HOME",c3.library="LATENCY_ACTION_LIBRARY",c3.live="LATENCY_ACTION_LIVE",c3.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",c3.mini_app=
"LATENCY_ACTION_MINI_APP_PLAY",c3.onboarding="LATENCY_ACTION_ONBOARDING",c3.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",c3["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",c3["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",c3["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",c3["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",c3["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",c3["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",c3["owner.campaigns"]=
"LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",c3["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",c3["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",c3["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",c3["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",c3["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",c3["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",c3["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",
c3["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",c3["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",c3["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",c3["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",c3["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",c3["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",c3["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",c3.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",c3.parent_tools_collection=
"LATENCY_ACTION_PARENT_TOOLS_COLLECTION",c3.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",c3.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",c3["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",c3["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",c3["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",c3.prebuffer="LATENCY_ACTION_PREBUFFER",c3.prefetch="LATENCY_ACTION_PREFETCH",c3.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",c3.profile_switcher="LATENCY_ACTION_LOGIN",
c3.reel_watch="LATENCY_ACTION_REEL_WATCH",c3.results="LATENCY_ACTION_RESULTS",c3["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",c3.search_ui="LATENCY_ACTION_SEARCH_UI",c3.search_suggest="LATENCY_ACTION_SUGGEST",c3.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",c3.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",c3.seek="LATENCY_ACTION_PLAYER_SEEK",c3.settings="LATENCY_ACTION_SETTINGS",c3.store="LATENCY_ACTION_STORE",c3.tenx="LATENCY_ACTION_TENX",c3.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
c3.watch="LATENCY_ACTION_WATCH",c3.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",c3["watch,watch7"]="LATENCY_ACTION_WATCH",c3["watch,watch7_html5"]="LATENCY_ACTION_WATCH",c3["watch,watch7ad"]="LATENCY_ACTION_WATCH",c3["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",c3.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",c3.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",c3["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",c3["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",c3["video.comments"]=
"LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",c3["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",c3["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",c3["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",c3["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",c3["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",c3["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",c3["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",
c3["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",c3["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",c3["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",c3.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",c3.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",c3.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",c3.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",c3.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",
c3),d3={},Wwa=(d3.ad_allowed="adTypesAllowed",d3.yt_abt="adBreakType",d3.ad_cpn="adClientPlaybackNonce",d3.ad_docid="adVideoId",d3.yt_ad_an="adNetworks",d3.ad_at="adType",d3.aida="appInstallDataAgeMs",d3.browse_id="browseId",d3.p="httpProtocol",d3.t="transportProtocol",d3.cpn="clientPlaybackNonce",d3.ccs="creatorInfo.creatorCanaryState",d3.ctop="creatorInfo.topEntityType",d3.csn="clientScreenNonce",d3.docid="videoId",d3.GetHome_rid="requestIds",d3.GetSearch_rid="requestIds",d3.GetPlayer_rid="requestIds",
d3.GetWatchNext_rid="requestIds",d3.GetBrowse_rid="requestIds",d3.GetLibrary_rid="requestIds",d3.is_continuation="isContinuation",d3.is_nav="isNavigation",d3.b_p="kabukiInfo.browseParams",d3.is_prefetch="kabukiInfo.isPrefetch",d3.is_secondary_nav="kabukiInfo.isSecondaryNav",d3.nav_type="kabukiInfo.navigationType",d3.prev_browse_id="kabukiInfo.prevBrowseId",d3.query_source="kabukiInfo.querySource",d3.voz_type="kabukiInfo.vozType",d3.yt_lt="loadType",d3.mver="creatorInfo.measurementVersion",d3.yt_ad=
"isMonetized",d3.nr="webInfo.navigationReason",d3.nrsu="navigationRequestedSameUrl",d3.pnt="performanceNavigationTiming",d3.prt="playbackRequiresTap",d3.plt="playerInfo.playbackType",d3.pis="playerInfo.playerInitializedState",d3.paused="playerInfo.isPausedOnLoad",d3.yt_pt="playerType",d3.fmt="playerInfo.itag",d3.yt_pl="watchInfo.isPlaylist",d3.yt_pre="playerInfo.preloadType",d3.yt_ad_pr="prerollAllowed",d3.pa="previousAction",d3.yt_red="isRedSubscriber",d3.rce="mwebInfo.responseContentEncoding",d3.rc=
"resourceInfo.resourceCache",d3.scrh="screenHeight",d3.scrw="screenWidth",d3.st="serverTimeMs",d3.ssdm="shellStartupDurationMs",d3.br_trs="tvInfo.bedrockTriggerState",d3.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",d3.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",d3.label="tvInfo.label",d3.is_mdx="tvInfo.isMdx",d3.preloaded="tvInfo.isPreloaded",d3.aac_type="tvInfo.authAccessCredentialType",d3.upg_player_vis="playerInfo.visibilityState",d3.query="unpluggedInfo.query",d3.upg_chip_ids_string=
"unpluggedInfo.upgChipIdsString",d3.yt_vst="videoStreamType",d3.vph="viewportHeight",d3.vpw="viewportWidth",d3.yt_vis="isVisible",d3.rcl="mwebInfo.responseContentLength",d3.GetSettings_rid="requestIds",d3.GetTrending_rid="requestIds",d3.GetMusicSearchSuggestions_rid="requestIds",d3.REQUEST_ID="requestIds",d3),Xwa="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(" "),
e3={},Ywa=(e3.ccs="CANARY_STATE_",e3.mver="MEASUREMENT_VERSION_",e3.pis="PLAYER_INITIALIZED_STATE_",e3.yt_pt="LATENCY_PLAYER_",e3.pa="LATENCY_ACTION_",e3.ctop="TOP_ENTITY_TYPE_",e3.yt_vst="VIDEO_STREAM_TYPE_",e3),Zwa="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 W={LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE:269,LATENCY_ACTION_THUMBNAIL_LOAD:42,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_COSTREAM_JOIN_FLOW:280,LATENCY_ACTION_COSTREAM_INVITE_FLOW:279,
LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER:277,LATENCY_ACTION_MINI_APP_PLAY:249,LATENCY_ACTION_DMA_CONSENT_FLOW:247,LATENCY_ACTION_GEL_FETCH:248,LATENCY_ACTION_GEL_JSPB_SERIALIZE:243,LATENCY_ACTION_GEL_COMPRESSION:215,LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE:204,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:244,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_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_MOBILE_LIVE_NAV_MDE:231,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,
LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD:272,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD:271,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD:270,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE:275,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO:274,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO:273,LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO:278,LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD:267,LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET:251,
LATENCY_ACTION_SHORTS_LOAD_PROJECT:234,LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING:229,LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION:262,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_CAMERA_AUDIO_DOWNLOAD:240,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,
LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING:264,LATENCY_ACTION_SHORTS_RECOMPOSITION:263,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT:239,LATENCY_ACTION_CREATION_MODES_MODE_SWITCH:236,LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT:235,LATENCY_ACTION_SWITCH_CAMERA:246,LATENCY_ACTION_OPEN_CAMERA:245,LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE:250,LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME:242,
LATENCY_ACTION_MEDIA_ENGINE_EXPORT:241,LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA:233,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_OFFLINE_PLAYLIST_DETAIL:238,LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL:237,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_VIDEO_TRANSLATIONS:38,
LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT:219,LATENCY_ACTION_CREATOR_VIDEO_POLICY:217,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_COPYRIGHT:218,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_CLAIMS:216,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,
LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST:265,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_CMS_VIDEOS:202,
LATENCY_ACTION_CREATOR_CMS_REPORTS:201,LATENCY_ACTION_CREATOR_CMS_RELEASES:226,LATENCY_ACTION_CREATOR_CMS_POLICIES:225,LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC:224,LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING:200,LATENCY_ACTION_CREATOR_CMS_LICENSES:223,LATENCY_ACTION_CREATOR_CMS_ISSUES:191,LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES:252,LATENCY_ACTION_CREATOR_CMS_DASHBOARD:199,LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY:198,LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS:197,LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES:261,
LATENCY_ACTION_CREATOR_CMS_CHANNELS:196,LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS:222,LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY:253,LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS:214,LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES:254,LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES:209,LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY:208,LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP:207,LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA:205,LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES:212,LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES:206,LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY:282,
LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA:258,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS:260,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS:259,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS:257,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS:221,LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS:210,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY:256,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP:255,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION:213,LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS:211,
LATENCY_ACTION_CREATOR_CMS_ASSETS:195,LATENCY_ACTION_CREATOR_CMS_ART_TRACKS:220,LATENCY_ACTION_CREATOR_CMS_ANALYTICS:194,LATENCY_ACTION_CREATOR_CMS_ALLOWLIST:227,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_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_FINE_SCRUBBING_THUMBNAILS:228,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_PLAYLIST_AGGREGATION:266,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_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_NETWORK_INSTRUMENTATION:281,LATENCY_ACTION_IMAGE_LOAD:268,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_INFRASTRUCTURE_CONTAINER:276,LATENCY_ACTION_INLINE_TO_WATCH:232,LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH:230,
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};W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE";W[W.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";
W[W.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";W[W.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";W[W.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";W[W.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";W[W.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";
W[W.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";W[W.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";W[W.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";W[W.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";W[W.LATENCY_ACTION_COSTREAM_JOIN_FLOW]="LATENCY_ACTION_COSTREAM_JOIN_FLOW";W[W.LATENCY_ACTION_COSTREAM_INVITE_FLOW]="LATENCY_ACTION_COSTREAM_INVITE_FLOW";W[W.LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER]="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER";
W[W.LATENCY_ACTION_MINI_APP_PLAY]="LATENCY_ACTION_MINI_APP_PLAY";W[W.LATENCY_ACTION_DMA_CONSENT_FLOW]="LATENCY_ACTION_DMA_CONSENT_FLOW";W[W.LATENCY_ACTION_GEL_FETCH]="LATENCY_ACTION_GEL_FETCH";W[W.LATENCY_ACTION_GEL_JSPB_SERIALIZE]="LATENCY_ACTION_GEL_JSPB_SERIALIZE";W[W.LATENCY_ACTION_GEL_COMPRESSION]="LATENCY_ACTION_GEL_COMPRESSION";W[W.LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE]="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE";W[W.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC";
W[W.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";W[W.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";W[W.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";W[W.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";W[W.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";
W[W.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";W[W.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";W[W.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";W[W.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";W[W.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";W[W.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";
W[W.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";W[W.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";W[W.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";W[W.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";W[W.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";W[W.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";
W[W.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";W[W.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";W[W.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";W[W.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";W[W.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";W[W.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";W[W.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";
W[W.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";W[W.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";W[W.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";W[W.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";W[W.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";W[W.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";W[W.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";
W[W.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";W[W.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";W[W.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";W[W.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN";W[W.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";W[W.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";
W[W.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";W[W.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";W[W.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";W[W.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";W[W.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";W[W.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";W[W.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";
W[W.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";W[W.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";W[W.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";W[W.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";W[W.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";W[W.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";
W[W.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";W[W.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";W[W.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";W[W.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";W[W.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";W[W.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";W[W.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";
W[W.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";W[W.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";W[W.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";W[W.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";W[W.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";W[W.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";W[W.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";
W[W.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";W[W.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";W[W.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";W[W.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";W[W.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";W[W.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";W[W.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";W[W.LATENCY_ACTION_MOBILE_LIVE_NAV_MDE]="LATENCY_ACTION_MOBILE_LIVE_NAV_MDE";
W[W.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";W[W.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD";
W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO";W[W.LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO]="LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO";W[W.LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD]="LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD";
W[W.LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET]="LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET";W[W.LATENCY_ACTION_SHORTS_LOAD_PROJECT]="LATENCY_ACTION_SHORTS_LOAD_PROJECT";W[W.LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING]="LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING";W[W.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";W[W.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";W[W.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION";
W[W.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";W[W.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";W[W.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";W[W.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";W[W.LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD]="LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD";
W[W.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";W[W.LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING]="LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING";W[W.LATENCY_ACTION_SHORTS_RECOMPOSITION]="LATENCY_ACTION_SHORTS_RECOMPOSITION";W[W.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";W[W.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";W[W.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";W[W.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";
W[W.LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT";W[W.LATENCY_ACTION_CREATION_MODES_MODE_SWITCH]="LATENCY_ACTION_CREATION_MODES_MODE_SWITCH";W[W.LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT";W[W.LATENCY_ACTION_SWITCH_CAMERA]="LATENCY_ACTION_SWITCH_CAMERA";W[W.LATENCY_ACTION_OPEN_CAMERA]="LATENCY_ACTION_OPEN_CAMERA";W[W.LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE]="LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE";
W[W.LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME]="LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME";W[W.LATENCY_ACTION_MEDIA_ENGINE_EXPORT]="LATENCY_ACTION_MEDIA_ENGINE_EXPORT";W[W.LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA]="LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA";W[W.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";W[W.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";W[W.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";
W[W.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";W[W.LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL";W[W.LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL";W[W.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";W[W.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";
W[W.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";W[W.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";W[W.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";W[W.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";W[W.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";W[W.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";W[W.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";W[W.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";
W[W.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";W[W.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";W[W.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";W[W.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";W[W.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";W[W.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";W[W.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";
W[W.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";W[W.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";W[W.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";W[W.LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT";W[W.LATENCY_ACTION_CREATOR_VIDEO_POLICY]="LATENCY_ACTION_CREATOR_VIDEO_POLICY";W[W.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";
W[W.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";W[W.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";W[W.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";W[W.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";W[W.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";W[W.LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT";
W[W.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";W[W.LATENCY_ACTION_CREATOR_VIDEO_CLAIMS]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS";W[W.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";W[W.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";
W[W.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";W[W.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";W[W.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";W[W.LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST";W[W.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";W[W.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";
W[W.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";W[W.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";W[W.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS";W[W.LATENCY_ACTION_CREATOR_CMS_RELEASES]="LATENCY_ACTION_CREATOR_CMS_RELEASES";W[W.LATENCY_ACTION_CREATOR_CMS_POLICIES]="LATENCY_ACTION_CREATOR_CMS_POLICIES";
W[W.LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC";W[W.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";W[W.LATENCY_ACTION_CREATOR_CMS_LICENSES]="LATENCY_ACTION_CREATOR_CMS_LICENSES";W[W.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";W[W.LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES";W[W.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD";
W[W.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";W[W.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES";W[W.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS";W[W.LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS";W[W.LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY";
W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP";
W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA";
W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS";
W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS";
W[W.LATENCY_ACTION_CREATOR_CMS_ART_TRACKS]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS";W[W.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_CMS_ALLOWLIST]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST";W[W.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";W[W.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";
W[W.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";W[W.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";W[W.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";W[W.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";W[W.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";W[W.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";
W[W.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";W[W.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";W[W.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";W[W.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";
W[W.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";W[W.LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS]="LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS";W[W.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";W[W.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";W[W.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";W[W.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";
W[W.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";W[W.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";W[W.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";W[W.LATENCY_ACTION_PLAYLIST_AGGREGATION]="LATENCY_ACTION_PLAYLIST_AGGREGATION";W[W.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";W[W.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";W[W.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";W[W.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";
W[W.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";W[W.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";W[W.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";W[W.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";W[W.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";W[W.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";W[W.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";
W[W.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";W[W.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";W[W.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";W[W.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";W[W.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";W[W.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";W[W.LATENCY_ACTION_NETWORK_INSTRUMENTATION]="LATENCY_ACTION_NETWORK_INSTRUMENTATION";W[W.LATENCY_ACTION_IMAGE_LOAD]="LATENCY_ACTION_IMAGE_LOAD";
W[W.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";W[W.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";W[W.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";W[W.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";W[W.LATENCY_ACTION_INFRASTRUCTURE_CONTAINER]="LATENCY_ACTION_INFRASTRUCTURE_CONTAINER";W[W.LATENCY_ACTION_INLINE_TO_WATCH]="LATENCY_ACTION_INLINE_TO_WATCH";W[W.LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH]="LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH";
W[W.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";W[W.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";W[W.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";W[W.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";W[W.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";W[W.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";W[W.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";W[W.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";W[W.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";
W[W.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";W[W.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";W[W.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var NH={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};NH[NH.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";NH[NH.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";NH[NH.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";
var OH={CONN_INVALID:31,CONN_WIRED:30,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};OH[OH.CONN_INVALID]="CONN_INVALID";OH[OH.CONN_WIRED]="CONN_WIRED";OH[OH.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";OH[OH.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";OH[OH.CONN_WIFI_METERED]="CONN_WIFI_METERED";
OH[OH.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";OH[OH.CONN_DISCO]="CONN_DISCO";OH[OH.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";OH[OH.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";OH[OH.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";OH[OH.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";OH[OH.CONN_WIFI]="CONN_WIFI";OH[OH.CONN_NONE]="CONN_NONE";OH[OH.CONN_UNKNOWN]="CONN_UNKNOWN";OH[OH.CONN_DEFAULT]="CONN_DEFAULT";
var PH={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};PH[PH.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
PH[PH.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";PH[PH.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";PH[PH.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";PH[PH.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";PH[PH.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";PH[PH.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
PH[PH.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";PH[PH.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";PH[PH.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";PH[PH.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";PH[PH.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";PH[PH.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";PH[PH.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";PH[PH.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
PH[PH.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";PH[PH.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";PH[PH.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";PH[PH.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";PH[PH.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";PH[PH.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";PH[PH.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";PH[PH.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
PH[PH.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";PH[PH.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";PH[PH.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";PH[PH.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var QH={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};
QH[QH.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";QH[QH.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";QH[QH.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";QH[QH.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";QH[QH.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";QH[QH.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";QH[QH.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";QH[QH.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var RH={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};RH[RH.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";RH[RH.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";RH[RH.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";RH[RH.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var SH={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
SH[SH.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";SH[SH.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var TH={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};TH[TH.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";TH[TH.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";TH[TH.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
TH[TH.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";TH[TH.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";TH[TH.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var UH={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};UH[UH.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";UH[UH.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";UH[UH.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";UH[UH.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var VH={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};VH[VH.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";VH[VH.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";VH[VH.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var WH={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};WH[WH.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
WH[WH.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";WH[WH.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var exa="actionVisualElement spinnerInfo cacheAttempts resourceInfo preloadThumbnailInfo startupEdgeCaseInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo imageLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo inlineToWatchInfo mediaEngineMetadata miniAppInfo dynamicAssetFetchInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo transcodingContext creationModesContext cameraMetadata producerMediaAssetMetadata".split(" ");g.w(axa,iE);var vxa=new jE("aft-recorded",axa);var FH=g.Qa.ytLoggingLatencyUsageStats_||{};g.Ra("ytLoggingLatencyUsageStats_",FH);DH.prototype.tick=function(a,b,c,d){GH(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.KB("web_csi_via_jspb")?(d=new nna,N(d,1,a),N(d,2,b),a=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB,Kj(a,nna,5,DF,d),CF("latencyActionTicked",a,c)):g.qD("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
DH.prototype.info=function(a,b,c){var d=Object.keys(a).join("");GH(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.qD("latencyActionInfo",a,{cttAuthInfo:c}))};
DH.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));GH(this,"info_"+d+"_"+b)||(N(a,2,b),b={cttAuthInfo:c},c=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB,Kj(c,tB,7,DF,a),CF("latencyActionInfo",c,b))};
DH.prototype.span=function(a,b,c){var d=Object.keys(a).join("");GH(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.qD("latencyActionSpan",a,{cttAuthInfo:c}))};var f3=window,HH=f3.performance||f3.mozPerformance||f3.msPerformance||f3.webkitPerformance||new bxa;var uxa=!1,gxa=!1,pxa={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj"},xxa=(0,g.eb)(HH.clearResourceTimings||HH.webkitClearResourceTimings||HH.mozClearResourceTimings||HH.msClearResourceTimings||HH.oClearResourceTimings||g.Hd,HH);var g3=window;g3.ytcsi&&(g3.ytcsi.info=Cxa,g3.ytcsi.infoGel=g.aI,g3.ytcsi.tick=cI);var Lxa="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD".split(" "),Nxa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse"];var Rxa=new ZE("INNERTUBE_TRANSPORT_TOKEN");g.w(hI,tH);hI.prototype.C=function(){return Pib};
hI.prototype.j=function(a){return g.R(a,Bib)||void 0};
hI.prototype.B=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(hI.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(iI,tH);iI.prototype.C=function(){return Qib};
iI.prototype.j=function(a){return g.R(a,zib)||void 0};
iI.prototype.B=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(iI.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(jI,tH);jI.prototype.C=function(){return Mib};
jI.prototype.j=function(a){return g.R(a,Zgb)||void 0};
jI.prototype.B=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(jI.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(kI,tH);kI.prototype.C=function(){return Nib};
kI.prototype.j=function(a){return g.R(a,yib)||void 0};
kI.prototype.B=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(lI,tH);lI.prototype.C=function(){return Oib};
lI.prototype.j=function(a){return g.R(a,wib)||void 0};
lI.prototype.B=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.w(mI,tH);mI.prototype.C=function(){return Lib};
mI.prototype.j=function(a){return g.R(a,lib)};
mI.prototype.B=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var ajb=new ZE("NETWORK_SLI_TOKEN");nI.prototype.fetch=function(a,b,c){var d=this,e,f,h;return g.Ha(function(l){d.j&&(e=Dl(g.Fl(5,vm(a,"key")))||"/UNKNOWN_PATH",d.j.start(e));f=b;g.KB("wug_networking_gzip_request")&&(f=Bra(b));h=new window.Request(a,f);return l.return(fetch(h).then(function(m){return d.handleResponse(m,c)}).catch(function(m){g.LF(m)}))})};
nI.prototype.handleResponse=function(a,b){var c=a.text().then(function(d){return(null==b?0:b.y7)&&a.ok?tea(b.y7,d):JSON.parse(d.replace(")]}'",""))});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.vib(),c=c.then(function(d){g.LF(new g.eD("Error: API fetch failed",a.status,a.url,d));return Object.assign({},d,{errorMetadata:{status:a.status}})}));
return c};
nI[aF]=[new $E(ajb)];var Qxa=new ZE("NETWORK_MANAGER_TOKEN");var Pxa;var sKa={bia:0,cia:1,aia:2,Yha:3,Xha:4,Zha:5};var Sxa=["APP_STATE","PI"];pI.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.EA)f.onreadystatechange=function(p){c.EA(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.u(Object.entries(b.headers));for(var l=h.next();!l.done;l=h.next()){var m=g.u(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})};
pI.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.LF(new g.eD("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.LF(new g.eD("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};g.k=Zxa.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterUrl)?d:null;if(a.interpreterSafeScript){var f=a.interpreterSafeScript;d=f?(f=f.privateDoNotAccessOrElseSafeScriptWrappedValue)?sba(f):null:null}else d=null!=(f=a.interpreterScript)?f:null;a.interpreterSafeUrl&&(e=ema(a.interpreterSafeUrl).toString());aya(this,d,e,a.program,b,c)}else g.LF(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.jG()};
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.jG()?this.A0({uv:a}):null};
g.k.dispose=function(){this.xR(null);this.Dc(8)};
g.k.jG=function(){return!!this.j};
g.k.z0=function(a){return this.j.snapshot(a)};
g.k.A0=function(a){return this.j.v_(a)};
g.k.xR=function(a){g.ub(this.j);this.j=a};
g.k.Dc=function(a){this.state=a};var dya=[],cya=!1;g.w(sI,Zxa);sI.prototype.xR=function(a){var b;null==(b=rI())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.v_.bind(a)},g.Ra("yt.abuse.playerAttLoader",b),g.Ra("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Ra("yt.abuse.playerAttLoader",null),g.Ra("yt.abuse.playerAttLoaderRun",null))};
sI.prototype.jG=function(){return!!rI()};
sI.prototype.z0=function(a){return rI().bgvmb(a)};
sI.prototype.A0=function(a){return rI().bgvmc(a)};tI.prototype.yp=function(){return"crossDeviceProgressCommand"};
tI.prototype.handle=function(){};
tI.prototype.Zs=function(a){if(a.crossDevicePings){var b=[];a=g.u(a.crossDevicePings);for(var c=a.next();!c.done;c=a.next())b.push({baseUrl:c.value.baseUrl});g.qD("crossDeviceNotificationTransfer",{crossDevicePings:b})}};uI.prototype.yp=function(){return"muteAdEndpoint"};
uI.prototype.handle=function(a){switch(a.type){case "SKIP":gya(this.zj,this.Yk)}};
uI.prototype.Zs=function(a,b){switch(a.type){case "SKIP":gya(this.zj,this.Yk,b)}};vI.prototype.yp=function(){return"openPopupAction"};
vI.prototype.handle=function(){};
vI.prototype.Zs=function(a){this.handle(a)};wI.prototype.yp=function(){return"pingingEndpoint"};
wI.prototype.handle=function(){};
wI.prototype.Zs=function(a){this.handle(a)};var pya={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.w(zI,g.H);zI.prototype.xa=function(){this.uf.clear();g.H.prototype.xa.call(this)};
zI.prototype.Vg=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.u(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
zI.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&qya(this,"loggingUrls",a.loggingUrls,b,c);a=g.u(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?mya(this,e):"confirmDialogEndpoint"===d?nya(this,e):pya.hasOwnProperty(d)||qya(this,d,e,b,c)}};var gdb={Cca:"FINAL",M0:"AD_BREAK_LENGTH",wha:"AD_CPN",Dha:"AH",Hha:"AD_MT",Kha:"ASR",Oha:"AW",Pqa:"NM",Qqa:"NX",Rqa:"NY",W0:"CONN",Wra:"CPN",Iua:"DV_VIEWABILITY",Ava:"ERRORCODE",Jva:"ERROR_MSG",Mva:"EI",t1:"GOOGLE_VIEWABILITY",VEa:"IAS_VIEWABILITY",fIa:"LACT",K3:"LIVE_TARGETING_CONTEXT",WNa:"I_X",XNa:"I_Y",zQa:"MT",OQa:"MIDROLL_POS",PQa:"MIDROLL_POS_MS",nRa:"MOAT_INIT",oRa:"MOAT_VIEWABILITY",S3:"P_H",uYa:"PV_H",vYa:"PV_W",T3:"P_W",QYa:"TRIGGER_TYPE",S0a:"SDKV",W3:"SLOT_POS",M8a:"SURVEY_LOCAL_TIME_EPOCH_S",
L8a:"SURVEY_ELAPSED_MS",e4:"VIS",jfb:"VIEWABILITY",pfb:"VED",f4:"VOL",sfb:"WT",i4:"YT_ERROR_CODE"};BI.prototype.yp=function(){return"urlEndpoint"};
BI.prototype.handle=function(){g.KF(Error("The deprecated handle method is called for url_endpoint_handler."))};
BI.prototype.Zs=function(a,b,c){var d=this.Oa.get(),e=gAa(d.B.get(),b);e?b=CK(d,hAa(e),e,void 0,void 0,c):(RG("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);BN(this.maa,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=this.Wn.cf(2))&&(b.AD_CPN=c.clientPlaybackNonce);a=g.tu(a.url,b);"1"===(new g.po(a)).B.get("ase")?g.nH(a,void 0,void 0,a+"&asr=1"):g.nH(a)};CI.prototype.get=function(){return this.value};
g.w(DI,CI);DI.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.w(EI,CI);EI.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.w(rya,CI);rya.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.w(FI,CI);FI.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.w(GI,CI);GI.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.w(sya,CI);sya.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.w(tya,CI);tya.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.w(uya,CI);uya.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
g.w(vya,CI);vya.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.w(wya,CI);wya.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.w(xya,CI);xya.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.w(HI,CI);HI.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.w(II,CI);II.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.w(JI,CI);JI.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.w(KI,CI);KI.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.w(LI,CI);LI.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.w(MI,CI);MI.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.w(NI,CI);NI.prototype.getType=function(){return"metadata_type_content_cpn"};
g.w(OI,CI);OI.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.w(PI,CI);PI.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
g.w(QI,CI);QI.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.w(RI,CI);RI.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.w(yya,CI);yya.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.w(SI,CI);SI.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.w(zya,CI);zya.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.w(Aya,CI);Aya.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.w(Bya,CI);Bya.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.w(Cya,CI);Cya.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.w(TI,CI);TI.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.w(UI,CI);UI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.w(VI,CI);VI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.w(WI,CI);WI.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.w(Dya,CI);Dya.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.w(XI,CI);XI.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.w(YI,CI);YI.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.w(ZI,CI);ZI.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.w(Eya,CI);Eya.prototype.getType=function(){return"metadata_type_cue_point"};
g.w($I,CI);$I.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.w(aJ,CI);aJ.prototype.getType=function(){return"metadata_type_player_vars"};
g.w(bJ,CI);bJ.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.w(cJ,CI);cJ.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.w(dJ,CI);dJ.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.w(eJ,CI);eJ.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.w(fJ,CI);fJ.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.w(gJ,CI);gJ.prototype.getType=function(){return"metadata_type_dai"};
g.w(hJ,CI);hJ.prototype.getType=function(){return"metadata_type_ad_intro"};
g.w(Fya,CI);Fya.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.w(iJ,CI);iJ.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.w(jJ,CI);jJ.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.w(kJ,CI);kJ.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.w(Gya,CI);Gya.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.w(lJ,CI);lJ.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.w(mJ,CI);mJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.w(nJ,CI);nJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.w(oJ,CI);oJ.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.w(Hya,CI);Hya.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.w(pJ,CI);pJ.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.w(qJ,CI);qJ.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.w(Iya,CI);Iya.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.w(rJ,CI);rJ.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.w(Jya,CI);Jya.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.w(sJ,CI);sJ.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.w(Kya,CI);Kya.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};var eza=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var pza=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.w(wJ,wb);g.w(xJ,wb);new Promise(function(){});var Oya=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"]]),Mya=new Map([["normal",{ax:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",lx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{ax:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",lx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{ax:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",lx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{ax:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",lx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{ax:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",lx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{ax:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",lx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{ax:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",lx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.w(Uya,g.H);g.k=Uya.prototype;g.k.dO=function(a,b){return this.j.dO(a,b)};
g.k.yh=function(a,b){this.hc.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.u(this.Cd),d=c.next();!d.done;d=c.next())d.value.yh(a,b)};
g.k.Xf=function(a){if(IJ(this.j,a)){RJ(this.hc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.Xf(a);for(var b=g.u(this.Cd),c=b.next();!c.done;c=b.next())c.value.Xf(a);Xya(this,a)}};
g.k.Yf=function(a){if(IJ(this.j,a)){RJ(this.hc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.Yf(a);for(var b=g.u(this.Cd),c=b.next();!c.done;c=b.next())c.value.Yf(a);IJ(this.j,a)&&JJ(this.j,a).G&&HJ(this,a,!1)}};
g.k.AJ=function(a){RJ(this.hc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);IJ(this.j,a)&&(this.j.AJ(a),HJ(this,a,!1))};
g.k.Bc=function(a,b){if(IJ(this.j,a)){KJ(this.hc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.u(this.Cd),d=c.next();!d.done;d=c.next())d.value.Bc(a,b)}};
g.k.Qc=function(a,b,c){if(IJ(this.j,a)){KJ(this.hc,Nya(c),a,b);this.j.Qc(a,b);for(var d=g.u(this.Cd),e=d.next();!e.done;e=d.next())e.value.Qc(a,b,c);(c=UJ(this.j,a))&&b.layoutId===c.layoutId&&lza(this,a,!1)}};
g.k.sf=function(a,b,c,d){c.Hk&&d?(RG(c,a,b,void 0,c.Tu),GJ(this.hc,d,c.Hk,a,b)):RG("adsClientErrorMessage is missing.",a,b);HJ(this,a,!0)};
g.k.xa=function(){var a=oza(this.j);a=g.u(a);for(var b=a.next();!b.done;b=a.next())HJ(this,b.value,!1);g.H.prototype.xa.call(this)};
g.k.Qg=function(a,b){KJ(this.hc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);KJ(this.hc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.u(this.Cd),d=c.next();!d.done;d=c.next())d=d.value,b&&d.Qg(a,b)};mza.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(nza,g.H);g.k=nza.prototype;g.k.dO=function(a,b){b=TJ(this,a+"_"+b);a=[];b=g.u(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Ah=function(a){a=JJ(this,a);"not_scheduled"!==a.j&&VJ(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.kD=function(a){a=JJ(this,a);a.D="fill_requested";a.N.kD()};
g.k.Xf=function(a){a=JJ(this,a);"enter_requested"!==a.j&&VJ(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.AJ=function(a){JJ(this,a).D="fill_canceled"};
g.k.Yf=function(a){a=JJ(this,a);"exit_requested"!==a.j&&VJ(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.Qc=function(a,b){a=JJ(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&VJ(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.w(tza,g.H);tza.prototype.get=function(){this.isDisposed()&&RG("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.j());return this.instance};g.w(vza,g.H);vza.prototype.C=function(){return this.j};ZJ.prototype.executeCommand=function(a,b){AI(this.j(),a,b)};
ZJ.prototype.Vg=function(a,b){hya(this.j(),a,b)};aK.prototype.addListener=function(a){this.listeners.add(a)};
aK.prototype.removeListener=function(a){this.listeners.delete(a)};var h3={},iK=(h3.AD_MARKER="ytp-ad-progress",h3.CHAPTER_MARKER="ytp-chapter-marker",h3.TIME_MARKER="ytp-time-marker",h3);var Jbb=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/)"),Bza=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"),
Kbb=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Jza=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)|$))"),
Hza=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)|$))"),Eza=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^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/)"),
Lbb=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Fza=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)"),Dza=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
vPa=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)"),
uPa=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)"),
bjb=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.jK.prototype.getId=function(){return this.id};
g.jK.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Nza(this.start)+", "+Nza(this.end)+"]"};
g.jK.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 Mza=1;g.jK.prototype.getId=g.jK.prototype.getId;Qza.prototype.kD=function(){var a=this,b=0;zza(this.j,function(){var c=zJ(a.slot.Ca,"metadata_type_ad_break_request_data");b=Date.now();a.Oa.get().Bi("abrs","ct."+b+";cmt."+a.Ia.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.Sf.get().fetch({s0:c.getAdBreakUrl,wV:new g.jK(c.RQ,c.QQ),nH:zJ(a.slot.Ca,"metadata_type_cue_point"),cueProcessedMs:c.cueProcessedMs})},function(){Rza(a)},function(c){var d=Date.now()-b;
a.Oa.get().Bi("abrr","ct."+(new Date).getTime()+";cmt."+a.Ia.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.Su;2<=d.length&&c.ssdaiAdsConfig&&RG("Unexpected ad placement renderers length",a.slot,null,{length:d.length});d.some(function(e){var f,h,l,m;return!!(null==(f=e.renderer)?0:null==(h=f.linearAdSequenceRenderer)?0:null==(l=h.linearAds)?0:l.length)||!(null==(m=e.renderer)||!m.instreamVideoAdRenderer)})||Rza(a)})};
Qza.prototype.FM=function(){Aza(this.j)};Sza.prototype.kD=function(){var a=this;zza(this.j,function(){var b=zJ(a.slot.Ca,"metadata_type_ad_break_request_data");return a.Sf.get().fetch({s0:b.getAdBreakUrl,wV:new g.jK(b.RQ,b.QQ)})})};
Sza.prototype.FM=function(){Aza(this.j)};Tza.prototype.kD=function(){var a=this.slot.Ca,b,c=null!=(b=this.slot.fulfilledLayout)?b:zJ(a,"metadata_type_fulfilled_layout");Yya(this.callback,this.slot,c)};
Tza.prototype.FM=function(){Vya(this.callback,this.slot,new xJ("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")};Vza.prototype.build=function(a,b){return b.fulfilledLayout||Uza(b,{Gd:["metadata_type_fulfilled_layout"]})?new Tza(a,b):this.j(a,b)};g.w(mK,Vza);
mK.prototype.j=function(a,b){if(Uza(b,{Gd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Qza(a,b,this.Sf,this.Ab,this.Yb,this.Da,this.Oa,this.Ia,this.Mc);if(Uza(b,{Gd:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Sza(a,b,this.Sf,this.Ab,this.Yb,this.Da);throw new xJ("Unsupported slot with type: "+b.slotType+" and client metadata: "+AJ(b.Ca)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(nK,Vza);nK.prototype.j=function(a,b){throw new xJ("Unsupported slot with type: "+b.slotType+" and client metadata: "+AJ(b.Ca)+" in DefaultFulfillmentAdapterFactory.");};g.k=Wza.prototype;g.k.xc=function(){return this.slot};
g.k.sb=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.sf(this.slot,a,new wJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var b=zJ(a.Ca,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Bc(this.slot,a),CDa(this.j,this.slot,
b)):RG("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
g.k.nf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.sf(this.slot,a,new wJ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.Qc(this.slot,a,b),Yza(this))};g.w(rK,g.cG);g.k=rK.prototype;g.k.xc=function(){return this.B.slot};
g.k.sb=function(){return this.B.layout};
g.k.init=function(){this.C.get().addListener(this)};
g.k.release=function(){this.C.get().removeListener(this);this.dispose()};
g.k.pO=function(){};
g.k.nO=function(){};
g.k.mO=function(){};
g.k.mI=function(){};
g.k.startRendering=function(a){var b=this;aAa(this.B,a,function(){return void b.CK()})};
g.k.CK=function(){this.C.get().CK(this.j)};
g.k.nf=function(a,b){var c=this;aAa(this.B,a,function(){var d=c.C.get();qdb(d,c.j,3);c.j=[];c.callback.Qc(c.slot,a,b)})};
g.k.xa=function(){this.C.isDisposed()||this.C.get().removeListener(this);g.cG.prototype.xa.call(this)};
g.da.Object.defineProperties(rK.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});yK.prototype.Dh=function(a,b){b=void 0===b?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&bAa(a)){var d=this.C.get(b);d&&c.push.apply(c,g.oa(d))}dAa(this,a,c);this.j.add(a);b&&this.j.add(b)};
yK.prototype.Sc=function(a,b){b=void 0===b?!1:b;if(!this.j.has(a)){var c=b&&bAa(a);c&&(b=!this.j.has(c));this.Dh(a,b)}};
yK.prototype.qx=function(a,b){b=void 0===b?!1:b;this.j.has(a)?dAa(this,a,[]):this.Sc(a,b)};g.w(iAa,bG);g.w(jAa,rK);g.k=jAa.prototype;g.k.Cg=function(a,b){uK("banner-image",a,this.K.get().Ij,this.Oa.get(),this.D,this.G,this.xc(),this.sb(),b)};
g.k.startRendering=function(a){tK(this.ob,this.xc(),this.sb(),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new iAa(b,c,d,e,f)},this.j);
rK.prototype.startRendering.call(this,a)};
g.k.Bc=function(a,b){if(b.layoutId===this.layout.layoutId){a=zJ(b.Ca,"metadata_type_banner_image_layout_view_model");b=cAa(this.Oa.get(),{adPlacementConfig:this.adPlacementConfig});var c;$J(this.Hb.get(),PF(null==(c=a.interaction)?void 0:c.onFirstVisible),this.layout.layoutId,b)}else this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Xi():RG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Qc=function(){};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};
g.k.xa=function(){this.Wc().Cd.delete(this);rK.prototype.xa.call(this)};g.w(lAa,bG);g.w(mAa,rK);g.k=mAa.prototype;g.k.Cg=function(a,b){uK("action-companion",a,this.K.get().Ij,this.Oa.get(),this.D,this.G,this.xc(),this.sb(),b)};
g.k.startRendering=function(a){tK(this.ob,this.xc(),this.sb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new lAa(b,c,d,e,f)},this.j);
rK.prototype.startRendering.call(this,a)};
g.k.Bc=function(a,b){b.layoutId===this.layout.layoutId?this.ob.Sc("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Xi():RG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Qc=function(){};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};
g.k.xa=function(){this.Wc().Cd.delete(this);rK.prototype.xa.call(this)};g.w(oAa,bG);g.w(pAa,rK);g.k=pAa.prototype;g.k.Cg=function(a,b){uK("image-companion",a,this.K.get().Ij,this.Oa.get(),this.D,this.G,this.xc(),this.sb(),b)};
g.k.startRendering=function(a){tK(this.ob,this.xc(),this.sb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new oAa(b,c,d,e,f)},this.j);
rK.prototype.startRendering.call(this,a)};
g.k.Bc=function(a,b){b.layoutId===this.layout.layoutId?this.ob.Sc("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Xi():RG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Qc=function(){};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};
g.k.xa=function(){this.Wc().Cd.delete(this);rK.prototype.xa.call(this)};g.w(rAa,bG);g.w(sAa,rK);g.k=sAa.prototype;g.k.Cg=function(a,b){uK("shopping-companion",a,this.K.get().Ij,this.Oa.get(),this.D,this.G,this.xc(),this.sb(),b)};
g.k.startRendering=function(a){tK(this.ob,this.xc(),this.sb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new rAa(b,c,d,e,f)},this.j);
rK.prototype.startRendering.call(this,a)};
g.k.Bc=function(a,b){b.layoutId===this.layout.layoutId?this.ob.Sc("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Xi():RG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Qc=function(){};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};
g.k.xa=function(){this.Wc().Cd.delete(this);rK.prototype.xa.call(this)};g.w(xAa,rK);g.k=xAa.prototype;g.k.startRendering=function(a){tK(this.ob,this.xc(),this.sb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new lAa(b,c,d,e,f)},this.j);
rK.prototype.startRendering.call(this,a)};
g.k.Bc=function(){};
g.k.Qc=function(){};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};
g.k.xa=function(){this.Wc().Cd.delete(this);rK.prototype.xa.call(this)};
g.k.Cg=function(){};g.k=zAa.prototype;g.k.xc=function(){return this.slot};
g.k.sb=function(){return this.layout};
g.k.init=function(){this.Ia.get().addListener(this);this.Ia.get().kH.push(this);var a=zJ(this.layout.Ca,"metadata_type_video_length_seconds"),b=zJ(this.layout.Ca,"metadata_type_active_view_traffic_type");vK(this.layout.Kb)&&Kcb(this.Da.get())&&H1(this.Db.get(),this.layout.layoutId,b,a,this)};
g.k.release=function(){this.Ia.get().removeListener(this);jdb(this.Ia.get(),this);vK(this.layout.Kb)&&Kcb(this.Da.get())&&I1(this.Db.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.Bc(this.slot,a)};
g.k.nf=function(a,b){this.callback.Qc(this.slot,a,b)};
g.k.Zk=function(a){switch(a.id){case "part2viewed":this.ob.Sc("start");break;case "videoplaytime25":this.ob.Sc("first_quartile");break;case "videoplaytime50":this.ob.Sc("midpoint");break;case "videoplaytime75":this.ob.Sc("third_quartile");break;case "videoplaytime100":this.ob.Sc("complete");eAa(this.ob)&&AK(this.ob,Infinity,!0);break;case "engagedview":eAa(this.ob)||this.ob.Sc("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:RG("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",
this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.Aj=function(){};
g.k.wh=function(){};
g.k.al=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Bj=function(){};
g.k.Zi=function(){};
g.k.BY=function(a){eAa(this.ob)&&AK(this.ob,1E3*a,!1);0<a&&this.ob.Sc("impression")};
g.k.zA=function(){this.ob.Sc("active_view_measurable")};
g.k.AA=function(){this.ob.Sc("active_view_viewable")};
g.k.yA=function(){this.ob.Sc("active_view_fully_viewable_audible_half_duration")};
g.k.xA=function(){this.ob.Sc("audio_measurable")};
g.k.wA=function(){this.ob.Sc("audio_audible")};g.w(AAa,rK);g.k=AAa.prototype;g.k.init=function(){rK.prototype.init.call(this);var a=zJ(this.layout.Ca,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.jc};this.j.push(new $G(a,this.layout.layoutId,zJ(this.layout.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))};
g.k.Np=function(){this.D||this.Ia.get().resumeVideo(1)};
g.k.startRendering=function(a){rK.prototype.startRendering.call(this,a);P1(this.Ia.get(),"ad-showing");this.callback.Bc(this.slot,a);this.G.hs=this};
g.k.nf=function(a,b){rK.prototype.nf.call(this,a,b);Q1(this.Ia.get(),"ad-showing");v2(this.G,this)};
g.k.Cg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ia.get().Ln(1))||this.Ia.get().pauseVideo();break;case "visit-advertiser":this.Ia.get().pauseVideo()}};
g.k.xa=function(){rK.prototype.xa.call(this)};g.w(BAa,bG);g.w(CAa,rK);g.k=CAa.prototype;g.k.startRendering=function(a){tK(this.ob,this.xc(),this.sb(),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new BAa(b,c,d,e,f)},this.j);
rK.prototype.startRendering.call(this,a)};
g.k.Bc=function(){};
g.k.Qc=function(){};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};
g.k.xa=function(){this.Wc().Cd.delete(this);rK.prototype.xa.call(this)};
g.k.Cg=function(){};g.w(DK,bG);g.w(EK,rK);EK.prototype.init=function(){rK.prototype.init.call(this);var a=g.R(this.layout.renderingContent,LK)||zJ(this.layout.Ca,"metadata_type_ad_action_interstitial_renderer"),b=sK(this.ob);this.j.push(new DK(a,b,this.layout.layoutId,{adsClientData:this.layout.jc},!0,!0))};
EK.prototype.startRendering=function(a){rK.prototype.startRendering.call(this,a);this.callback.Bc(this.slot,a)};
EK.prototype.Cg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=zJ(this.layout.Ca,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&cBa(a,this.xc(),this.layout)}};
EK.prototype.xa=function(){rK.prototype.xa.call(this)};GK.prototype.build=function(a,b,c,d){if(FK(d,{Gd:["metadata_type_ad_break_response_data"],Ne:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Wza(a,c,d,this.j,this.Qb,this.fb);throw new wJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AJ(d.Ca)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.w(FAa,bG);g.w(GAa,rK);g.k=GAa.prototype;g.k.Cg=function(a,b){uK("ads-engagement-panel",a,this.K.get().Ij,this.Oa.get(),this.D,this.G,this.xc(),this.sb(),b)};
g.k.startRendering=function(a){tK(this.ob,this.xc(),this.sb(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new FAa(b,c,d,e,f)},this.j);
rK.prototype.startRendering.call(this,a)};
g.k.Bc=function(a,b){b.layoutId===this.layout.layoutId?this.ob.Sc("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Xi():RG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Qc=function(){};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};
g.k.xa=function(){this.Wc().Cd.delete(this);rK.prototype.xa.call(this)};g.w(IAa,rK);g.k=IAa.prototype;g.k.Cg=function(a,b){uK("top-banner-image-text-icon-buttoned",a,this.K.get().Ij,this.Oa.get(),this.D,this.G,this.xc(),this.sb(),b)};
g.k.startRendering=function(a){tK(this.ob,this.xc(),this.sb(),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new BAa(b,c,d,e,f)},this.j);
rK.prototype.startRendering.call(this,a)};
g.k.Bc=function(a,b){if(b.layoutId===this.layout.layoutId){a=zJ(b.Ca,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model");b=cAa(this.Oa.get(),{adPlacementConfig:this.adPlacementConfig});var c;$J(this.Hb.get(),PF(null==(c=a.interaction)?void 0:c.onFirstVisible),this.layout.layoutId,b)}else this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Xi():RG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Qc=function(){};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};
g.k.xa=function(){this.Wc().Cd.delete(this);rK.prototype.xa.call(this)};KAa.prototype.build=function(a,b,c,d){if(FK(d,HAa()))return new GAa(a,c,d,this.lc,this.Oa,this.Wc,this.Db,this.j);if(FK(d,nAa()))return new mAa(a,c,d,this.lc,this.Oa,this.Wc,this.Db,this.j);if(FK(d,qAa()))return new pAa(a,c,d,this.lc,this.Oa,this.Wc,this.Db,this.j);if(FK(d,tAa()))return new sAa(a,c,d,this.lc,this.Oa,this.Wc,this.Db,this.j);if(FK(d,yAa()))return new xAa(a,c,d,this.lc,this.Oa,this.Wc,this.Db,this.j);if(FK(d,kAa()))return new jAa(a,c,d,this.lc,this.Oa,this.Wc,this.Db,this.j,this.Hb);
if(FK(d,JAa()))return new IAa(a,c,d,this.lc,this.Oa,this.Wc,this.Db,this.j,this.Hb);if(FK(d,DAa()))return new CAa(a,c,d,this.lc,this.Oa,this.Wc,this.Db,this.j);throw new wJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AJ(d.Ca)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.w(LAa,bG);g.w(HK,rK);HK.prototype.init=function(){rK.prototype.init.call(this);var a=zJ(this.layout.Ca,"metadata_type_player_underlay_renderer");this.j.push(new LAa(g.R(a,Agb),this.layout.layoutId,{adsClientData:this.layout.jc}))};
HK.prototype.Cg=function(){};
HK.prototype.startRendering=function(a){rK.prototype.startRendering.call(this,a);this.callback.Bc(this.slot,a)};
HK.prototype.xa=function(){rK.prototype.xa.call(this)};MAa.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.u(zK()),f=e.next();!f.done;f=e.next())b.push(f.value);if(FK(d,{Gd:b,Ne:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new HK(a,c,d,this.lc);throw new wJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AJ(d.Ca)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=NAa.prototype;g.k.xc=function(){return this.slot};
g.k.sb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.sf(this.slot,a,new wJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.Bc(this.slot,a),this.ob.Sc("impression"),QK(this.j,a))};
g.k.nf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.sf(this.slot,a,new wJ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.Qc(this.slot,a,b)};g.k=PAa.prototype;g.k.xc=function(){return this.slot};
g.k.sb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.sf(this.slot,a,new wJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.Bc(this.slot,a),this.ob.Sc("impression"),QK(this.j,a))};
g.k.nf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.sf(this.slot,a,new wJ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.Qc(this.slot,a,b)};IK.prototype.build=function(a,b,c,d){if(!this.Da.get().J.U().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(FK(d,OAa()))return new NAa(a,c,d,this.Oa,this.j)}else if(FK(d,{Gd:[],Ne:["LAYOUT_TYPE_FORECASTING"]}))return new PAa(a,c,d,this.Oa,this.j);throw new wJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AJ(d.Ca)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(QAa,bG);g.w(RAa,rK);g.k=RAa.prototype;g.k.init=function(){rK.prototype.init.call(this);var a=zJ(this.layout.Ca,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.jc};this.j.push(new QAa(a,zJ(this.layout.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))};
g.k.Np=function(){this.D||this.Ia.get().resumeVideo(2)};
g.k.startRendering=function(a){rK.prototype.startRendering.call(this,a);this.callback.Bc(this.slot,a);this.G.hs=this};
g.k.nf=function(a,b){rK.prototype.nf.call(this,a,b);v2(this.G,this)};
g.k.Cg=function(a){if(JFa(this.K.get(),this.N))switch(a){case "visit-advertiser-link":this.Oa.get().J.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.D||this.Ia.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ia.get().Ln(2))||this.Ia.get().pauseVideo();break;case "visit-advertiser-link":this.Ia.get().pauseVideo();zJ(this.layout.Ca,
"metadata_type_player_bytes_callback").hK();break;case "skip-button":if(a=zJ(this.layout.Ca,"metadata_type_player_bytes_callback"),a.DI)a.IA(this.xc(),this.layout);else{var b;(a=null==(b=zJ(this.layout.Ca,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&cBa(a,this.xc(),this.layout)}}};
g.k.xa=function(){rK.prototype.xa.call(this)};g.w(JK,rK);g.k=JK.prototype;g.k.init=function(){rK.prototype.init.call(this);var a=g.R(this.layout.renderingContent,WAa)||zJ(this.layout.Ca,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.jc},c;(c=!!this.layout.renderingContent)||(c=!TAa(this).DI);this.j.push(new $G(a,this.layout.layoutId,zJ(this.layout.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.Np=function(){this.D||this.Ia.get().resumeVideo(2)};
g.k.startRendering=function(a){rK.prototype.startRendering.call(this,a);this.callback.Bc(this.slot,a);this.G.hs=this};
g.k.nf=function(a,b){rK.prototype.nf.call(this,a,b);v2(this.G,this)};
g.k.Cg=function(a){if(JFa(this.K.get(),this.N))switch(a){case "visit-advertiser":this.Oa.get().J.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.D||this.Ia.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ia.get().Ln(2))||this.Ia.get().pauseVideo();break;case "visit-advertiser":this.Ia.get().pauseVideo();TAa(this).hK();break;case "skip-button":if(a=
TAa(this),!this.layout.renderingContent&&a.DI)RG("Requesting to skip by LegacyPlayerBytes"),a.IA(this.xc(),this.layout);else{var b;(a=null==(b=zJ(this.layout.Ca,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&cBa(a,this.xc(),this.layout)}}};
g.k.xa=function(){rK.prototype.xa.call(this)};g.w(UAa,bG);g.w(KK,rK);g.k=KK.prototype;g.k.startRendering=function(a){var b=this;aAa(this.B,a,function(){b.j.push(new UAa(zJ(b.layout.Ca,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.jc));b.CK();b.callback.Bc(b.slot,a);g.TG(G1(b.Ia.get(),1),512)&&b.callback.sf(b.xc(),b.sb(),new wJ("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.k.Zi=function(){};
g.k.Bj=function(a){if(a.state.isError()){var b;this.callback.sf(this.xc(),this.sb(),new wJ("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.oh)?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
g.k.onFullscreenToggled=function(){};
g.k.wh=function(){};
g.k.al=function(){};
g.k.Aj=function(){};
g.k.onVolumeChange=function(){};
g.k.Zk=function(){};
g.k.Cg=function(){};XAa.prototype.build=function(a,b,c,d){if(a=MK(a,c,d,this.lc,this.Ia,this.Oa,this.B,this.j,this.Da))return a;throw new wJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AJ(d.Ca)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};YAa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.u(zK()),f=e.next();!f.done;f=e.next())b.push(f.value);if(FK(d,{Gd:b,Ne:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new zAa(a,c,d,this.Ia,this.Oa,this.Da,this.Db);throw new wJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AJ(d.Ca)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.w(ZAa,g.H);g.k=ZAa.prototype;g.k.init=function(){var a=zJ(this.layout.Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Wa.get().addListener(this);this.j.init();(a=zJ(this.j.sb().Ca,"metadata_type_player_vars"))&&this.ze.get().addPlayerResponseForAssociation(a)};
g.k.release=function(){this.Wa.get().removeListener(this);this.j.release()};
g.k.xJ=function(){};
g.k.EJ=function(a){this.layout.layoutId===a&&(void 0!==this.B?(this.callback.Qc(this.slot,this.layout,this.B),this.B=void 0):(this.C&&RG("Expected a video to exit at most once",this.slot,this.layout),this.C=!0,QK(this.Ge,this.layout)))};
g.k.DJ=function(a){this.layout.layoutId===a&&VFa(this.Zd,this.slot.slotId)};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.sf(this.xc(),a,new wJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ia.get().addListener(this),this.Wc().Cd.add(this),this.j.startRendering(this.layout),this.callback.Bc(this.slot,this.layout))};
g.k.nf=function(a,b){this.j.nf(this.layout,b);this.Ia.get().removeListener(this);this.C?(this.callback.Qc(this.slot,this.layout,b),this.C=!1):(void 0!==this.B&&RG("Expected the layout to be requested to exit at most once",this.slot,this.layout),this.B=b,this.Mc.get().finishSegmentByCpn(this.layout.layoutId,this.Wa.get().cf(1).clientPlaybackNonce))};
g.k.xc=function(){return this.slot};
g.k.sb=function(){return this.layout};
g.k.zr=function(){this.j.zr()};
g.k.Dr=function(){this.j.Dr()};
g.k.IA=function(a,b){RG("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.slot,this.layout,{requestingSlot:a,requestingLayout:b})};
g.k.Bc=function(a,b){this.j.Bc(a,b)};
g.k.Qc=function(a,b,c){b.layoutId===this.layout.layoutId&&this.Wc().Cd.delete(this);this.j.Qc(a,b,c)};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};
g.k.Zi=function(a){this.j.Zi(a)};
g.k.Bj=function(a){if(a.state.isError()){var b,c=new wJ("There was a player error during SSAP single media layout.",{playerErrorCode:null==(b=a.state.oh)?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),d;this.j.rA(null==(d=a.state.oh)?void 0:d.errorCode,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");this.callback.sf(this.slot,this.layout,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.j.Bj(a)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.wh=function(a){this.j.wh(a)};
g.k.Aj=function(a){this.j.Aj(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};
g.k.Zk=function(){};
g.k.al=function(){};g.w(NK,g.H);g.k=NK.prototype;g.k.init=function(){var a=zJ(this.sb().Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.ut()};
g.k.release=function(){var a=zJ(this.sb().Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Xt()};
g.k.startRendering=function(a){a.layoutId!==this.sb().layoutId?this.callback.sf(this.xc(),a,new wJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.sb().layoutId+("and LayoutType: "+this.sb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ia.get().addListener(this),this.Wc().Cd.add(this),Ncb(this.Da.get())&&Ecb(this.Rc.get()),this.Da.get().J.U().experiments.jb("html5_load_empty_player_in_media_break_sub_lra")||
this.lf()||mdb(this.Ia.get()),Ncb(this.Da.get())||Ecb(this.Rc.get()),this.vu(a))};
g.k.nf=function(a,b){this.lf()?(this.Lr(a,b),this.Ia.get().removeListener(this)):(this.CO=!0,this.Lr(a,b),this.Ia.get().J.cB(),this.ze.get().J.cueVideoByPlayerVars({},2),a=G1(this.Ia.get(),1),a.isPaused()&&!g.TG(a,2)&&this.Ia.get().playVideo(),this.Ia.get().removeListener(this),this.CO&&this.ZX())};
g.k.Qc=function(a,b){b.layoutId===this.sb().layoutId&&(this.CO=!1,this.Wc().Cd.delete(this))};
g.k.Bj=function(a,b){if(a.state.isError()){var c,d;this.sf(null==(c=a.state.oh)?void 0:c.errorCode,new wJ("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.oh)?void 0:d.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED",b)}else this.VY(a)};
g.k.al=function(){};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};
g.k.Zk=function(){};
g.k.lf=function(){var a=zJ(this.xc().Ca,"metadata_type_eligible_for_ssap");return void 0===a?(RG("Expected SSAP eligibility in PlayerBytes slots",this.xc(),this.sb()),!1):this.Da.get().lf(a)};g.w($Aa,NK);g.k=$Aa.prototype;g.k.xc=function(){return this.slot};
g.k.sb=function(){return this.layout};
g.k.ut=function(){this.Wa.get().cf(1).daiEnabled&&RG("Unexpected VOD LRA on DAI content",this.slot,this.layout);if(1>this.B.length)throw new xJ("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.B.length)});var a=zJ(this.sb().Ca,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.u(this.B);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),Zya(this.C,this.slot,b.sb()),$ya(this.C,this.slot,b.sb());if(this.lf())for(this.Wa.get().addListener(this),
a=g.u(this.B),b=a.next();!b.done;b=a.next())(b=zJ(b.value.sb().Ca,"metadata_type_player_vars"))&&this.ze.get().addPlayerResponseForAssociation(b)};
g.k.Xt=function(){var a=zJ(this.sb().Ca,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.u(this.B);for(var b=a.next();!b.done;b=a.next())b=b.value,aza(this.C,this.slot,b.sb()),b.release();this.lf()&&this.Wa.get().removeListener(this)};
g.k.xJ=function(){};
g.k.EJ=function(a,b){var c=this,d=this.B[this.j];d&&this.G&&(d.sb().layoutId!==a&&RG("Unexpected active subLRA when previous playback ends",this.slot,this.layout),this.N=function(e){e.layoutId!==a&&RG("Unexpected previous CPN when sublayout exit is confirmed",c.slot,c.layout);c.B.some(function(f){return f.sb().layoutId===b})||(c.j=c.B.length,QK(c.D,c.layout))},d.NW())};
g.k.DJ=function(a){var b=this.B.findIndex(function(c){return c.sb().layoutId===a});
-1!==b&&(-1===this.j&&VFa(this.Zd,this.slot.slotId),hBa(this,b))};
g.k.zr=function(a,b){var c=this.B[this.j];b.layoutId!==OK(c,a,b)?RG("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.zr()};
g.k.Dr=function(a,b){var c=this.B[this.j];b.layoutId!==OK(c,a,b)?RG("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Dr()};
g.k.IA=function(a,b){var c=this.B[this.j];this.j===this.B.length-1&&RG("Unexpected skip requested during the last sublayout",c.xc(),c.sb(),{requestingSlot:a,requestingLayout:b});b.layoutId!==OK(c,a,b)?RG("onSkipRequested for a PlayerBytes layout that is not currently active",c.xc(),c.sb(),{requestingSlot:a,requestingLayout:b}):fBa(this,c.xc(),c.sb(),"skipped")};
g.k.vu=function(){this.lf()||-1===this.j&&eBa(this,this.j+1)};
g.k.B$=function(a,b){bza(this.C,a,b)};
g.k.Lr=function(a,b){var c=this;this.j===this.B.length?this.callback.Qc(this.slot,this.layout,b):(a=this.B[this.j],a.nf(a.sb(),b),this.Z=function(){c.callback.Qc(c.slot,c.layout,b)},this.lf()&&this.Mc.get().finishSegmentByCpn(a.sb().layoutId,this.Wa.get().cf(1).clientPlaybackNonce))};
g.k.Bc=function(a,b){var c=this.B[this.j];c&&c.Bc(a,b)};
g.k.Qc=function(a,b,c){NK.prototype.Qc.call(this,a,b,c);var d=this.B[this.j];d&&d.Qc(a,b,c)};
g.k.ZX=function(){var a=this.B[this.j];a&&a.lI()};
g.k.Zi=function(a){var b=this.B[this.j];b&&b.Zi(a)};
g.k.VY=function(a){var b=this.B[this.j];b&&b.Bj(a)};
g.k.sf=function(a,b,c){-1===this.j&&(this.callback.Bc(this.slot,this.layout),this.j++);var d=this.B[this.j];d?d.rA(a,b,c):RG("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.sb().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.B[this.j];if(b)b.onFullscreenToggled(a)};
g.k.wh=function(a){var b=this.B[this.j];b&&b.wh(a)};
g.k.Aj=function(a){var b=this.B[this.j];b&&b.Aj(a)};
g.k.onVolumeChange=function(){var a=this.B[this.j];if(a)a.onVolumeChange()};
g.k.D$=function(a,b,c){this.lf()?dBa(this,b,c):fBa(this,a,b,c)};
g.k.uF=function(a,b,c){aBa(this,b,this.j+1,c)};
g.k.C$=function(a,b,c,d){this.lf()?RG("Unexpected sublayout error",a,b,{errorMessage:c.message,errorType:d}):fBa(this,a,b,"error")};var cjb,i3,jBa;
cjb={Eia:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",pna:"AUTHENTICATION_MALFORMED",qna:"AUTHENTICATION_MISSING",Cna:"BAD_REQUEST",Foa:"CAST_SESSION_DEVICE_MISMATCHED",Goa:"CAST_SESSION_VIDEO_MISMATCHED",Hoa:"CAST_TOKEN_EXPIRED",Ioa:"CAST_TOKEN_FAILED",Joa:"CAST_TOKEN_MALFORMED",ppa:"CGI_PARAMS_MALFORMED",qpa:"CGI_PARAMS_MISSING",Yta:"DEVICE_FALLBACK",Bva:"GENERIC_WITH_LINK_AND_CPN",Cva:"ERROR_HDCP",Hva:"LICENSE",Kva:"VIDEO_UNAVAILABLE",gDa:"FORMAT_UNAVAILABLE",mDa:"GEO_FAILURE",
BEa:"HTML5_AUDIO_RENDERER_ERROR",CEa:"GENERIC_WITHOUT_LINK",DEa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",EEa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",FEa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",OEa:"HTML5_SPS_UMP_STATUS_REJECTED",WFa:"INVALID_DRM_MESSAGE",H_a:"PURCHASE_NOT_FOUND",I_a:"PURCHASE_REFUNDED",b0a:"RENTAL_EXPIRED",i0a:"RETRYABLE_ERROR",h1a:"SERVER_ERROR",z2a:"SIGNATURE_EXPIRED",Y5a:"STOPPED_BY_ANOTHER_PLAYBACK",g7a:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",h7a:"STREAMING_NOT_ALLOWED",
i7a:"STREAM_LICENSE_NOT_FOUND",g9a:"TOO_MANY_REQUESTS",h9a:"TOO_MANY_REQUESTS_WITH_LINK",j9a:"TOO_MANY_STREAMS_PER_ENTITLEMENT",k9a:"TOO_MANY_STREAMS_PER_USER",Ydb:"UNSUPPORTED_DEVICE",teb:"VIDEO_FORBIDDEN",Ieb:"VIDEO_NOT_FOUND"};i3={};
g.nW=(i3.ALREADY_PINNED_ON_A_DEVICE="T\u00e4m\u00e4 video on jo ladattu tekij\u00e4noikeuden haltijan sallimaan enimm\u00e4ism\u00e4\u00e4r\u00e4\u00e4n laitteita. Voit toistaa videon t\u00e4ss\u00e4 vasta, kun olet irrottanut sen toisesta laitteesta.",i3.DEVICE_FALLBACK="T\u00e4m\u00e4 video ei ole k\u00e4ytett\u00e4viss\u00e4 t\u00e4ll\u00e4 laitteella.",i3.GENERIC_WITH_LINK_AND_CPN="Tapahtui virhe. Yrit\u00e4 my\u00f6hemmin uudelleen. (Toistotunnus: $CPN) $BEGIN_LINKLis\u00e4tietoja$END_LINK",
i3.LICENSE="Videon k\u00e4ytt\u00f6luvan m\u00e4\u00e4ritt\u00e4misess\u00e4 tapahtui virhe.",i3.VIDEO_UNAVAILABLE="Video ei ole k\u00e4ytett\u00e4viss\u00e4",i3.FORMAT_UNAVAILABLE="T\u00e4m\u00e4 video ei ole saatavilla valitulla laadulla. Yrit\u00e4 my\u00f6hemmin uudelleen.",i3.GEO_FAILURE="Video ei ole k\u00e4ytett\u00e4viss\u00e4 maassasi.",i3.HTML5_AUDIO_RENDERER_ERROR="\u00c4\u00e4nen render\u00f6intivirhe. K\u00e4ynnist\u00e4 tietokone uudelleen.",i3.GENERIC_WITHOUT_LINK="Tapahtui virhe. Yrit\u00e4 my\u00f6hemmin uudelleen.",
i3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="T\u00e4t\u00e4 videomuotoa ei tueta.",i3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Selaimesi ei t\u00e4ll\u00e4 hetkell\u00e4 tunnista k\u00e4ytett\u00e4viss\u00e4 olevia videomuotoja. $BEGIN_LINKKlikkaa t\u00e4t\u00e4, niin voit lukea usein kysyttyj\u00e4 kysymyksi\u00e4 HTML5-videoista.$END_LINK",i3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="T\u00e4t\u00e4 videota ei voi katsoa selaimellasi. $BEGIN_LINKLue lis\u00e4\u00e4$END_LINK",i3.HTML5_SPS_UMP_STATUS_REJECTED=
"Jotain meni pieleen. Kokeile p\u00e4ivitt\u00e4\u00e4 tai yrit\u00e4 my\u00f6hemmin uudelleen. $BEGIN_LINKLue lis\u00e4\u00e4$END_LINK",i3.INVALID_DRM_MESSAGE="DRM-j\u00e4rjestelm\u00e4kohtainen viesti on virheellinen.",i3.PURCHASE_NOT_FOUND="Videon katselu on maksullista.",i3.PURCHASE_REFUNDED="T\u00e4m\u00e4n videon osto on hyvitetty.",i3.RENTAL_EXPIRED="T\u00e4m\u00e4n videon vuokrausaika on p\u00e4\u00e4ttynyt.",i3.CAST_SESSION_DEVICE_MISMATCHED="L\u00e4hetysistunnon laite ei vastaa pyydetty\u00e4 laitetta.",
i3.CAST_SESSION_VIDEO_MISMATCHED="L\u00e4hetysistunnon video ei vastaa pyydetty\u00e4 videota.",i3.CAST_TOKEN_FAILED="L\u00e4hetysistunto ei ole saatavilla. P\u00e4ivit\u00e4 sivu tai yrit\u00e4 my\u00f6hemmin uudelleen.",i3.CAST_TOKEN_EXPIRED="L\u00e4hetysistunto on vanhentunut. P\u00e4ivit\u00e4 sivu.",i3.CAST_TOKEN_MALFORMED="Virheellinen l\u00e4hetysistunto. P\u00e4ivit\u00e4 sivu tai yrit\u00e4 my\u00f6hemmin uudelleen.",i3.SERVER_ERROR="Tapahtui sis\u00e4inen palvelinvirhe. Yrit\u00e4 my\u00f6hemmin uudelleen.",
i3.STOPPED_BY_ANOTHER_PLAYBACK="Tilill\u00e4si toistetaan t\u00e4t\u00e4 videota toisessa sijainnissa. Lataa t\u00e4m\u00e4 sivu uudelleen, jos haluat jatkaa katselua.",i3.STREAM_LICENSE_NOT_FOUND="Videon toisto keskeytyi. Yrit\u00e4 uudelleen.",i3.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Viimeisen 24 tunnin aikana on k\u00e4ytetty liikaa laitteita tai IP-osoitteita.",i3.STREAMING_NOT_ALLOWED="Toistoa ei sallita, koska video on kiinnitetty toiseen laitteeseen.",i3.RETRYABLE_ERROR="Palvelinvirhe. Yrit\u00e4 my\u00f6hemmin uudelleen.",
i3.TOO_MANY_REQUESTS="Katso video kirjautumalla sis\u00e4\u00e4n.",i3.TOO_MANY_REQUESTS_WITH_LINK="Katso video YouTubessa $BEGIN_LINKklikkaamalla t\u00e4t\u00e4$END_LINK.",i3.TOO_MANY_STREAMS_PER_USER="Toisto keskeytettiin, koska parhaillaan toistetaan liian monta samaan tiliin kuuluvaa videota.",i3.TOO_MANY_STREAMS_PER_ENTITLEMENT="Toisto keskeytettiin, koska t\u00e4m\u00e4 video on toistettu liian monessa laitteessa.",i3.UNSUPPORTED_DEVICE="Toistoa ei tueta t\u00e4ll\u00e4 laitteella.",i3.VIDEO_FORBIDDEN=
"T\u00e4m\u00e4n videon k\u00e4ytt\u00f6 on kielletty.",i3.VIDEO_NOT_FOUND="Videota ei l\u00f6ydy.",i3);
jBa={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"};var djb;var ejb=g.mc(),fjb=ejb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!fjb||2>fjb.length)djb=void 0;else{var gjb=ejb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);djb=gjb&&6===gjb.length?Number(gjb[5].replace("_",".")):0}var rT=djb,iW=0<=rT;var ZK=!1;g.w(g.aL,SC);g.aL.prototype.T=function(a,b,c,d,e){return SC.prototype.T.call(this,a,b,c,d,e)};var j3={},hOa=(j3.FAIRPLAY="fairplay",j3.PLAYREADY="playready",j3.WIDEVINE="widevine",j3.CLEARKEY=null,j3.FLASHACCESS=null,j3.UNKNOWN=null,j3.WIDEVINE_CLASSIC=null,j3);bL.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var k3={},cQ=(k3.WIDTH={name:"width",video:!0,valid:640,Fn:99999},k3.HEIGHT={name:"height",video:!0,valid:360,Fn:99999},k3.FRAMERATE={name:"framerate",video:!0,valid:30,Fn:9999},k3.BITRATE={name:"bitrate",video:!0,valid:3E5,Fn:2E9},k3.EOTF={name:"eotf",video:!0,valid:"bt709",Fn:"catavision"},k3.CHANNELS={name:"channels",video:!1,valid:2,Fn:99},k3.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Fn:"invalidformat"},k3.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
Fn:"nope"},k3.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Fn:"av99.0.05M.08"},k3.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Fn:"invalid"},k3);var hjb=["h","H"],ijb=["9","("],jjb=["9h","(h"],kjb=["8","*"],ljb=["a","A"],mjb=["o","O"],njb=["m","M"],ojb=["mac3","MAC3"],pjb=["meac3","MEAC3"],l3={},DOa=(l3.h=hjb,l3.H=hjb,l3["9"]=ijb,l3["("]=ijb,l3["9h"]=jjb,l3["(h"]=jjb,l3["8"]=kjb,l3["*"]=kjb,l3.a=ljb,l3.A=ljb,l3.o=mjb,l3.O=mjb,l3.m=njb,l3.M=njb,l3.mac3=ojb,l3.MAC3=ojb,l3.meac3=pjb,l3.MEAC3=pjb,l3),qjb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),VLa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var m3={},fL=(m3["0"]="f",m3["160"]="h",m3["133"]="h",m3["134"]="h",m3["135"]="h",m3["136"]="h",m3["137"]="h",m3["264"]="h",m3["266"]="h",m3["138"]="h",m3["298"]="h",m3["299"]="h",m3["304"]="h",m3["305"]="h",m3["214"]="h",m3["216"]="h",m3["374"]="h",m3["375"]="h",m3["140"]="a",m3["141"]="ah",m3["327"]="sa",m3["258"]="m",m3["380"]="mac3",m3["328"]="meac3",m3["161"]="H",m3["142"]="H",m3["143"]="H",m3["144"]="H",m3["222"]="H",m3["223"]="H",m3["145"]="H",m3["224"]="H",m3["225"]="H",m3["146"]="H",m3["226"]=
"H",m3["227"]="H",m3["147"]="H",m3["384"]="H",m3["376"]="H",m3["385"]="H",m3["377"]="H",m3["149"]="A",m3["261"]="M",m3["381"]="MAC3",m3["329"]="MEAC3",m3["598"]="9",m3["278"]="9",m3["242"]="9",m3["243"]="9",m3["244"]="9",m3["775"]="9",m3["776"]="9",m3["777"]="9",m3["778"]="9",m3["779"]="9",m3["780"]="9",m3["781"]="9",m3["782"]="9",m3["783"]="9",m3["247"]="9",m3["248"]="9",m3["353"]="9",m3["355"]="9",m3["356"]="9",m3["271"]="9",m3["577"]="9",m3["313"]="9",m3["579"]="9",m3["272"]="9",m3["302"]="9",
m3["303"]="9",m3["407"]="9",m3["408"]="9",m3["308"]="9",m3["315"]="9",m3["330"]="9h",m3["331"]="9h",m3["332"]="9h",m3["333"]="9h",m3["334"]="9h",m3["335"]="9h",m3["336"]="9h",m3["337"]="9h",m3["338"]="so",m3["600"]="o",m3["250"]="o",m3["251"]="o",m3["194"]="*",m3["195"]="*",m3["220"]="*",m3["221"]="*",m3["196"]="*",m3["197"]="*",m3["279"]="(",m3["280"]="(",m3["317"]="(",m3["318"]="(",m3["273"]="(",m3["274"]="(",m3["357"]="(",m3["358"]="(",m3["275"]="(",m3["359"]="(",m3["360"]="(",m3["276"]="(",m3["583"]=
"(",m3["584"]="(",m3["314"]="(",m3["585"]="(",m3["561"]="(",m3["277"]="(",m3["361"]="(h",m3["362"]="(h",m3["363"]="(h",m3["364"]="(h",m3["365"]="(h",m3["366"]="(h",m3["591"]="(h",m3["592"]="(h",m3["367"]="(h",m3["586"]="(h",m3["587"]="(h",m3["368"]="(h",m3["588"]="(h",m3["562"]="(h",m3["409"]="(",m3["410"]="(",m3["411"]="(",m3["412"]="(",m3["557"]="(",m3["558"]="(",m3["394"]="1",m3["395"]="1",m3["396"]="1",m3["397"]="1",m3["398"]="1",m3["399"]="1",m3["400"]="1",m3["401"]="1",m3["571"]="1",m3["402"]=
"1",m3["694"]="1h",m3["695"]="1h",m3["696"]="1h",m3["697"]="1h",m3["698"]="1h",m3["699"]="1h",m3["700"]="1h",m3["701"]="1h",m3["702"]="1h",m3["703"]="1h",m3["386"]="3",m3["387"]="w",m3["406"]="6",m3["645"]="(",m3["646"]="(",m3["647"]="(",m3["648"]="(",m3["649"]="(",m3["650"]="(",m3["651"]="(",m3["652"]="(",m3["653"]="(",m3["654"]="(",m3["655"]="(",m3["656"]="(",m3["657"]="(",m3["658"]="(",m3["659"]="(",m3["660"]="(",m3["661"]="(",m3["662"]="(",m3["663"]="(",m3["664"]="(",m3["665"]="(",m3["666"]="(",
m3["667"]="(",m3["668"]="(",m3["669"]="(",m3["670"]="(",m3["671"]="(",m3["672"]="(",m3["673"]="(",m3["674"]="(h",m3["675"]="(h",m3["676"]="(h",m3["677"]="(h",m3["678"]="(h",m3["679"]="(h",m3["680"]="(h",m3["681"]="(h",m3["682"]="(h",m3["683"]="(h",m3["684"]="(h",m3["685"]="(h",m3["686"]="(h",m3["687"]="(h",m3["688"]="A",m3["689"]="A",m3["690"]="A",m3["691"]="MEAC3",m3["773"]="i",m3);var n3={},eOa=(n3.STEREO_LAYOUT_UNKNOWN=0,n3.STEREO_LAYOUT_LEFT_RIGHT=1,n3.STEREO_LAYOUT_TOP_BOTTOM=2,n3);var o3,SP;o3={};g.cL=(o3.auto=0,o3.tiny=144,o3.light=144,o3.small=240,o3.medium=360,o3.large=480,o3.hd720=720,o3.hd1080=1080,o3.hd1440=1440,o3.hd2160=2160,o3.hd2880=2880,o3.highres=4320,o3);SP={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var eL="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");dL.prototype.isHdr=function(){return"smpte2084"===this.B||"arib-std-b67"===this.B};gL.prototype.Me=function(){return 2===this.containerType};
gL.prototype.isEncrypted=function(){return!!this.ge};
gL.prototype.Ai=function(){return!!this.audio};
gL.prototype.dh=function(){return!!this.video};g.w(zL,g.cG);g.k=zL.prototype;g.k.appendBuffer=function(a,b,c){if(this.Md.pD()!==this.appendWindowStart+this.start||this.Md.LH()!==this.appendWindowEnd+this.start||this.Md.Pc()!==this.timestampOffset+this.start)this.Md.supports(1),this.Md.oR(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Md.bq(this.timestampOffset+this.start);this.Md.appendBuffer(a,b,c)};
g.k.abort=function(){this.Md.abort()};
g.k.remove=function(a,b){this.Md.remove(a+this.start,b+this.start)};
g.k.Jf=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.Md.clear()};
g.k.oR=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.gO=function(){return this.timestampOffset+this.start};
g.k.pD=function(){return this.appendWindowStart};
g.k.LH=function(){return this.appendWindowEnd};
g.k.bq=function(a){this.timestampOffset=a};
g.k.Pc=function(){return this.timestampOffset};
g.k.Ze=function(a){a=this.Md.Ze(void 0===a?!1:a);return yL(a,this.start,this.end)};
g.k.dk=function(){return this.Md.dk()};
g.k.jI=function(){return this.Md.jI()};
g.k.mm=function(){return this.Md.mm()};
g.k.MO=function(){return this.Md.MO()};
g.k.Py=function(){this.Md.Py()};
g.k.Sz=function(a){return this.Md.Sz(a)};
g.k.Ev=function(){return this.Md.Ev()};
g.k.TH=function(){return this.Md.TH()};
g.k.fS=function(a,b){this.Md.fS(a,b)};
g.k.supports=function(a){return this.Md.supports(a)};
g.k.VH=function(){return this.Md.VH()};
g.k.isView=function(){return!0};
g.k.ZG=function(){return this.Md.ZG()?this.isActive:!1};
g.k.isLocked=function(){return this.kG&&!this.isActive};
g.k.pc=function(a){a=this.Md.pc(a);a.vw=this.start+"-"+this.end;return a};
g.k.UH=function(){return this.Md.UH()};
g.k.yD=function(){return this.Md.yD()};
g.k.cO=function(){return this.Md.cO()};
g.k.xa=function(){eG(this.Md,this.OW);g.cG.prototype.xa.call(this)};var RZ=!1;g.w(AL,g.cG);g.k=AL.prototype;g.k.appendBuffer=function(a,b,c){this.PC=!1;c&&(this.hE=c);if(a.length){var d;(null==(d=this.dc)?0:d.appendBuffer)?this.dc.appendBuffer(a):this.dc?this.dc.append(a):this.gh&&this.gh.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.eP=this.hE),3===b.type&&(this.Hf=b),this.gE.push(b.Id()),4<this.gE.length&&this.gE.shift());this.hB&&(2<=this.hB.length||1048576<a.length?delete this.hB:this.hB.push(a))};
g.k.abort=function(){try{this.dc?this.dc.abort():this.gh&&this.gh.webkitSourceAbort(this.id)}catch(a){rjb&&g.KF(new g.eD("Error while abort the source buffer: "+a.name+", "+a.message))}this.hE=this.Hf=null};
g.k.remove=function(a,b,c){this.PC=!1;var d;if(null==(d=this.dc)?0:d.remove)c&&c({b:sL(this.Ze()),s:a,e:b}),this.dc.remove(a,b)};
g.k.Jf=function(){this.remove(this.pD(),this.LH())};
g.k.clear=function(){this.mm()||(this.abort(),this.Jf(),this.eP=this.hE=this.Hf=null,this.appendWindowStart=this.timestampOffset=0,this.CM=rL([],[]),this.PC=!1,this.hB=zBa?[]:void 0,this.eH=!0)};
g.k.pD=function(){if(RZ&&this.dh)return this.appendWindowStart;var a;return(null==(a=this.dc)?void 0:a.appendWindowStart)||0};
g.k.LH=function(){var a;return(null==(a=this.dc)?void 0:a.appendWindowEnd)||0};
g.k.oR=function(a,b){this.dc&&(RZ&&this.dh?(this.appendWindowStart=a,this.dc.appendWindowEnd=b):a>this.pD()?(this.dc.appendWindowEnd=b,this.dc.appendWindowStart=a):(this.dc.appendWindowStart=a,this.dc.appendWindowEnd=b))};
g.k.gO=function(){return this.timestampOffset};
g.k.bq=function(a){RZ?this.timestampOffset=a:this.supports(1)&&(this.dc.timestampOffset=a)};
g.k.Pc=function(){return RZ?this.timestampOffset:this.supports(1)?this.dc.timestampOffset:0};
g.k.Ze=function(a){if(void 0===a?0:a)return this.PC||this.dk()||(this.CM=this.Ze(!1),this.PC=!0),this.CM;try{return this.dc?this.dc.buffered:this.gh?this.gh.webkitSourceBuffered(this.id):rL([0],[Infinity])}catch(b){return rL([],[])}};
g.k.dk=function(){var a;return(null==(a=this.dc)?void 0:a.updating)||!1};
g.k.mm=function(){return this.eH};
g.k.MO=function(){return!this.eH&&this.dk()};
g.k.Py=function(){this.eH=!1};
g.k.Sz=function(a){var b=null==a?void 0:a.ub;a=null==a?void 0:a.containerType;return!b&&!a||b===this.ub&&a===this.containerType};
g.k.Ev=function(){return this.hE};
g.k.TH=function(){return this.eP};
g.k.fS=function(a,b){this.containerType!==a&&(this.supports(4),BL()&&this.dc.changeType(b));this.containerType=a};
g.k.VH=function(){return this.Hf};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.dc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.dc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.dc)||!d.remove);case 3:var e,f;return!!((null==(e=this.dc)?0:e.addEventListener)&&(null==(f=this.dc)?0:f.removeEventListener));case 4:return!(!this.dc||!this.dc.changeType);default:return!1}};
g.k.ZG=function(){return!this.dk()};
g.k.isLocked=function(){return!1};
g.k.pc=function(a){a.to=this.Pc();a.up=this.dk();var b,c=(null==(b=this.dc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.dc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=sL(this.Ze())}catch(e){}return a};
g.k.jI=function(){var a;return(null==(a=this.dc)?void 0:a.writeHead)||0};
g.k.UH=function(){for(var a={},b=0;b<this.gE.length;b++)a["s"+b]=this.gE[b];return a};
g.k.xa=function(){this.supports(3)&&(this.dc.removeEventListener("updateend",this.Ad),this.dc.removeEventListener("error",this.Ad));g.cG.prototype.xa.call(this)};
g.k.yD=function(){return this.containerType};
g.k.cO=function(){return this.hB};
var zBa=!1,rjb=!1;CL.prototype.dispose=function(){if(!this.isDisposed){if(this.j)try{URL.revokeObjectURL(this.resource)}catch(a){}this.B=!0}};
CL.prototype.isDisposed=function(){return this.B};
CL.prototype.equals=function(a){return null!==a&&a.resource===this.resource};
CL.prototype.toString=function(){return"MediaResource {"+this.resource+"}"};g.w(DL,g.H);g.k=DL.prototype;g.k.getDuration=function(){var a;return(null==(a=this.Ta)?void 0:a.duration)||this.W};
g.k.xl=function(a){try{this.Ta?this.Ta.duration=a:(this.W=a,this.gh.webkitSourceSetDuration(a))}catch(b){}};
g.k.Pg=function(){try{return"closed"===JL(this)}catch(a){return!0}};
g.k.dk=function(){return!!(this.j&&this.j.dk()||this.B&&this.B.dk())};
g.k.isAsync=function(){return this.j?!!this.j.supports(0):FBa()};
g.k.y$=function(){!this.isDisposed()&&FL(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.x$=function(){this.dispose()};
g.k.S2=function(a){if(CBa&&!this.D&&a.mm()&&0===a.Ze().length){var b;GL(this.mediaElement,{l:"mswoue",sr:null==(b=this.mediaElement.qa)?void 0:HL(b)},!1);a.Py();this.mm()||(this.mediaElement.wI=!0,this.mediaElement.setCurrentTime(0))}};
g.k.EM=function(){return!!this.j.supports(2)};
g.k.clear=function(){BBa(this,function(){});
var a;null==(a=this.j)||a.clear();var b;null==(b=this.B)||b.clear()};
g.k.mm=function(){var a,b;return(null==(a=this.B)?void 0:a.mm())||(null==(b=this.j)?void 0:b.mm())};
g.k.Sz=function(a,b){return!!this.j&&!!this.B&&this.j.Sz(b)&&this.B.Sz(a)};
var CBa=!1,EL=!1;KL.prototype.then=function(a,b){return this.promise.then(a,b)};
KL.prototype.resolve=function(a){this.fR(a)};
KL.prototype.reject=function(a){this.LZ(a)};g.w(LL,g.H);g.k=LL.prototype;g.k.BG=function(){return this.resource};
g.k.Dy=function(a){var b="";a&&(NBa(this,a),b=a.resource);if(!this.Df()||b)b&&this.Df()!==b&&(this.DG(b),delete this.B,this.C&&(this.C.reject(),delete this.C),sjb&&ZK&&!window.MediaSource&&window.ManagedMediaSource&&this.qR(!(null==a||!a.j))),a&&a.j||this.load(),this.N||(this.addEventListener("volumechange",this.lV),this.N=!0)};
g.k.Iq=function(a,b){if(this.B)if(tjb&&IL(this.B)&&!this.B.Sz(a,b)){var c;GL(this,{l:"megms",sr:null==(c=this.qa)?void 0:HL(c)});LBa(this);this.stopVideo()}else return this.Ta=this.B,this.B=void 0,this.Ta;a=window.MediaSource?new DL(this,new window.MediaSource,!1):EL&&window.ManagedMediaSource?new DL(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new DL(this,new window.WebKitMediaSource,!1):new DL(this,void 0,!1);this.Dy(a.C);this.Ta=a;this.wI=!1;return a};
g.k.playVideo=function(){var a=this;this.Ph()&&this.seekTo(0);!this.Df()&&this.resource&&(g.KF(Error("playVideo without src")),this.DG(this.resource.resource),this.resource.j||this.load());var b=this.play(),c;(null==(c=this.qa)?0:c.L("html5_remove_ios_7_hack_force_play"))||!b&&iW&&7<=(rT||0)&&lBa(this,function(){g.aC(function(){MBa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.Ck()&&(iW&&4>rT&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
g.k.oo=function(){if(!this.B&&this.Ta)if(this.Ta.G)try{var a;GL(this,{l:"mer",sr:null==(a=this.qa)?void 0:HL(a),rs:JL(this.Ta)});this.Ta.clear();this.B=this.Ta;this.Ta=void 0}catch(b){a=new g.eD("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.KF(a),this.stopVideo()}else this.stopVideo()};
g.k.stopVideo=function(){var a=this;if(!this.B){var b;null==(b=this.Ta)||IBa(b);if(ujb){if(!this.C){var c=new KL;c.then(void 0,function(){});
this.C=c;vjb&&this.pause();g.aC(function(){a.C===c&&(QBa(a),c.resolve())},200)}}else QBa(this)}};
g.k.sz=function(){var a=this.Kh();return 0<wL(a)&&this.getDuration()?vL(a,this.getCurrentTime()):0};
g.k.Iv=function(){var a=this.getDuration();return Infinity===a?1:a?this.sz()/a:0};
g.k.pc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:sL(this.Lv(),",",3),vbu:sL(this.Kh()),vpa:""+ +this.isPaused(),vsk:""+ +this.Uf(),ven:""+ +this.Ph(),vpr:""+this.getPlaybackRate(),vrs:""+this.Ck(),vns:""+this.ZH(),vec:""+this.ph(),vemsg:this.qf(),vvol:""+this.getVolume(),vdom:""+ +this.NO(),vsrc:""+ +!!this.Df(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.hasError=function(){return 0<this.ph()};
g.k.addEventListener=function(a,b){this.D.Ra(a,b,!1,this);this.sN(a)};
g.k.removeEventListener=function(a,b){this.D.Nc(a,b,!1,this)};
g.k.dispatchEvent=function(a){if(this.C&&"pause"===a.type)return!1;if(tjb){var b,c=(null==(b=a.j)?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Ta;if((null==c?0:c.mm())||b<=((null==c?void 0:c.K)||0)){var d;GL(this,{l:"mede",sr:null==(d=this.qa)?void 0:HL(d),et:a.type});return!1}if(this.wI)return GL(this,{l:"medes",et:a.type}),c&&"seeking"===a.type&&(c.K=performance.now(),this.wI=!1),!1}return this.D.dispatchEvent(a)};
g.k.oN=function(){this.K=!1};
g.k.jN=function(){this.K=!0;this.pB(!0)};
g.k.lV=function(){this.K&&!this.YH()&&this.pB(!0)};
g.k.equals=function(a){return!!a&&a.Fb()===this.Fb()};
g.k.xa=function(){this.N&&this.removeEventListener("volumechange",this.lV);ujb&&QBa(this);g.H.prototype.xa.call(this)};
var ujb=!1,vjb=!1,tjb=!1,PBa=!1,sjb=!1;g.k=g.NL.prototype;g.k.isPaused=function(){return g.TG(this,4)};
g.k.isPlaying=function(){return g.TG(this,8)&&!g.TG(this,512)&&!g.TG(this,64)&&!g.TG(this,2)};
g.k.isCued=function(){return g.TG(this,64)&&!g.TG(this,8)&&!g.TG(this,4)};
g.k.isError=function(){return g.TG(this,128)};
g.k.isSuspended=function(){return g.TG(this,512)};
g.k.cE=function(){return g.TG(this,64)&&g.TG(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var p3={},q3=(p3.BUFFERING="buffering-mode",p3.CUED="cued-mode",p3.ENDED="ended-mode",p3.PAUSED="paused-mode",p3.PLAYING="playing-mode",p3.SEEKING="seeking-mode",p3.UNSTARTED="unstarted-mode",p3);g.w(XL,g.H);g.k=XL.prototype;g.k.xc=function(){return this.slot};
g.k.sb=function(){return this.layout};
g.k.init=function(){var a=zJ(this.layout.Ca,"metadata_type_video_length_seconds"),b=zJ(this.layout.Ca,"metadata_type_active_view_traffic_type");vK(this.layout.Kb)&&H1(this.Db.get(),this.layout.layoutId,b,a,this);bdb(this.Oa.get(),this);this.ut()};
g.k.release=function(){vK(this.layout.Kb)&&I1(this.Db.get(),this.layout.layoutId);cdb(this.Oa.get(),this);this.Xt()};
g.k.zr=function(){};
g.k.Dr=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.sf(this.slot,a,new wJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{this.Jc="rendering_start_requested";var b=this.dg.get();b.X.experiments.jb("disable_safari_ui_status_check")||(b.X.B&&g.zD?0:b.X.B||g.NJ(b.X)||g.PJ(b.X)||
wS(b.X)||!g.zD)?b=!0:(b=g.Me("video-ads"),b=null!=b&&"none"!==as(b,"display"));b?(this.dF(-1),this.vu(a),this.SG(!1)):this.rA("ui_unstable",new wJ("Failed to render media layout because ad ui unstable.",void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_UI_UNSTABLE"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
g.k.Bc=function(a,b){if(b.layoutId===this.layout.layoutId){this.Jc="rendering";this.eE=this.Ia.get().isMuted()||0===this.Ia.get().getVolume();this.Sc("impression");this.Sc("start");if(this.Ia.get().isMuted()){this.qx("mute");var c;a=(null==(c=WL(this))?void 0:c.muteCommands)||[];this.Hb.get().Vg(a,this.layout.layoutId)}if(this.Ia.get().isFullscreen()){this.Dh("fullscreen");var d;c=(null==(d=WL(this))?void 0:d.fullscreenCommands)||[];this.Hb.get().Vg(c,this.layout.layoutId)}d=this.Rc.get();d.gg&&!d.B&&
(d.D=!1,d.B=!0,"ad_to_video"!==d.actionType&&(d.J.L("html5_no_video_to_ad_on_preroll")?dI("pbs",void 0,d.actionType):cI("pbs",void 0,d.actionType),g.KB("finalize_all_timelines")&&Bxa(d.actionType)));this.dF(1);this.JY(b);var e;b=(null==(e=WL(this))?void 0:e.impressionCommands)||[];this.Hb.get().Vg(b,this.layout.layoutId)}};
g.k.rA=function(a,b,c){this.Qu={bL:3,gG:"load_timeout"===a?402:400,errorMessage:b.message};this.Sc("error");var d;a=(null==(d=WL(this))?void 0:d.errorCommands)||[];this.Hb.get().Vg(a,this.layout.layoutId);this.callback.sf(this.slot,this.layout,b,c)};
g.k.lI=function(){this.lf()&&RG("Unexpected ad player in SSAP",this.slot,this.layout);this.jH()};
g.k.NW=function(){this.jH()};
g.k.FW=function(){if("rendering"===this.Jc){this.qx("pause");var a,b=(null==(a=WL(this))?void 0:a.pauseCommands)||[];this.Hb.get().Vg(b,this.layout.layoutId);this.dF(2)}};
g.k.GW=function(){if("rendering"===this.Jc){this.qx("resume");var a,b=(null==(a=WL(this))?void 0:a.resumeCommands)||[];this.Hb.get().Vg(b,this.layout.layoutId)}};
g.k.yz=function(a,b){b=void 0===b?!1:b;if("rendering"===this.Jc){AK(this.ob,1E3*a,b);this.eE||AK(this.ob,1E3*a,void 0===b?!1:b);var c=this.qz();if(c&&(c/=1E3,(a>=.25*c||b)&&this.Sc("first_quartile"),(a>=.5*c||b)&&this.Sc("midpoint"),(a>=.75*c||b)&&this.Sc("third_quartile"),b=this.xaa,a*=1E3,c=b.G())){for(;b.D<b.B.length;){var d=b.B[b.D];if(d.adVideoOffset.percent*c<=a)b.Hb.get().executeCommand(d.command,b.layoutId),b.D++;else break}for(;b.C<b.j.length;)if(c=b.j[b.C],Number(c.adVideoOffset.milliseconds)<=
a)b.Hb.get().executeCommand(c.command,b.layoutId),b.C++;else break}}};
g.k.Ok=function(){var a;return(null==(a=this.Wa.get().cf(1))?void 0:a.clientPlaybackNonce)||""};
g.k.KH=function(){var a;return(null==(a=this.Wa.get().cf(2))?void 0:a.clientPlaybackNonce)||""};
g.k.nf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.sf(this.slot,a,new wJ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED");else if("rendering_stop_requested"!==this.Jc){this.Jc="rendering_stop_requested";this.layoutExitReason=b;switch(b){case "normal":this.Sc("complete");break;case "skipped":this.Sc("skip");
break;case "abandoned":BK(this.ob,"impression")&&this.Sc("abandon")}this.Lr(a,b)}};
g.k.Qc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.Jc="not_rendering",this.layoutExitReason=void 0,(a="normal"!==c||this.position+1===this.R_)&&this.SG(a),this.KY(c),this.dF(0),c){case "abandoned":if(BK(this.ob,"impression")){var d,e=(null==(d=WL(this))?void 0:d.abandonCommands)||[];this.Hb.get().Vg(e,this.layout.layoutId)}break;case "normal":d=(null==(e=WL(this))?void 0:e.completeCommands)||[];this.Hb.get().Vg(d,this.layout.layoutId);break;case "skipped":var f;d=(null==(f=WL(this))?
void 0:f.skipCommands)||[];this.Hb.get().Vg(d,this.layout.layoutId)}};
g.k.rz=function(){return this.layout.layoutId};
g.k.FN=function(){return this.Qu};
g.k.Bj=function(a){if("not_rendering"!==this.Jc){this.a_||(a=new g.SG(a.state,new g.NL),this.a_=!0);if(!this.lf()){var b=2===this.Ia.get().getPresentingPlayerType();if("rendering_start_requested"===this.Jc){b&&iBa(a)&&this.UM();return}if(!b){this.lI();return}if(g.VG(a,2)){this.IW();return}}iBa(a)?this.dF(1):g.VG(a,4)&&!g.VG(a,2)&&this.FW();0>UG(a,4)&&!(0>UG(a,2))&&this.GW()}};
g.k.zA=function(){if("rendering"===this.Jc){this.ob.Sc("active_view_measurable");var a,b=(null==(a=WL(this))?void 0:a.activeViewMeasurableCommands)||[];this.Hb.get().Vg(b,this.layout.layoutId)}};
g.k.yA=function(){if("rendering"===this.Jc){this.ob.Sc("active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=WL(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Hb.get().Vg(b,this.layout.layoutId)}};
g.k.AA=function(){if("rendering"===this.Jc){this.ob.Sc("active_view_viewable");var a,b=(null==(a=WL(this))?void 0:a.activeViewViewableCommands)||[];this.Hb.get().Vg(b,this.layout.layoutId)}};
g.k.wA=function(){if("rendering"===this.Jc){this.ob.Sc("audio_audible");var a,b=(null==(a=WL(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Hb.get().Vg(b,this.layout.layoutId)}};
g.k.xA=function(){if("rendering"===this.Jc){this.ob.Sc("audio_measurable");var a,b=(null==(a=WL(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Hb.get().Vg(b,this.layout.layoutId)}};
g.k.SG=function(a){this.Rc.get().SG(zJ(this.layout.Ca,"metadata_type_ad_placement_config").kind,a,this.position,this.R_,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.Jc)if(a){this.Dh("fullscreen");var b,c=(null==(b=WL(this))?void 0:b.fullscreenCommands)||[];this.Hb.get().Vg(c,this.layout.layoutId)}else this.Dh("end_fullscreen"),b=(null==(c=WL(this))?void 0:c.endFullscreenCommands)||[],this.Hb.get().Vg(b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.Jc)if(this.Ia.get().isMuted()){this.qx("mute");var a,b=(null==(a=WL(this))?void 0:a.muteCommands)||[];this.Hb.get().Vg(b,this.layout.layoutId)}else this.qx("unmute"),a=(null==(b=WL(this))?void 0:b.unmuteCommands)||[],this.Hb.get().Vg(a,this.layout.layoutId)};
g.k.wh=function(){};
g.k.al=function(){};
g.k.Aj=function(){};
g.k.Zk=function(){};
g.k.Dh=function(a){this.ob.Dh(a,!this.eE)};
g.k.Sc=function(a){this.ob.Sc(a,!this.eE)};
g.k.qx=function(a){this.ob.qx(a,!this.eE)};
g.k.lf=function(){var a=zJ(this.slot.Ca,"metadata_type_eligible_for_ssap");return void 0===a?(RG("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Da.get().lf(a)};g.w(XBa,XL);g.k=XBa.prototype;g.k.ut=function(){};
g.k.Xt=function(){var a=this.Oa.get();a.JK===this&&(a.JK=null);this.timer.stop()};
g.k.vu=function(){WBa(this);this.lf()||mdb(this.Ia.get());this.Oa.get().JK=this;$H("pbp")||$H("pbs")||dI("pbp");$H("pbp","watch")||$H("pbs","watch")||dI("pbp",void 0,"watch");this.UM()};
g.k.JY=function(a){if(BN(this.Da.get(),"h5_enable_ad_mbs")){this.Rc.get();var b=zJ(a.Ca,"metadata_type_ad_placement_config").kind,c=0===this.position;a=zJ(a.Ca,"metadata_type_linked_in_player_layout_type");a={adBreakType:VBa(b),adType:Gcb(a)};var d=void 0;c?"AD_PLACEMENT_KIND_START"!==b&&(d="video_to_ad"):d="ad_to_ad";cI("ad_mbs",void 0,d);g.aI(a,d)}$Ba(this)};
g.k.IW=function(){};
g.k.zr=function(){this.timer.stop();XL.prototype.FW.call(this)};
g.k.Dr=function(){$Ba(this);XL.prototype.GW.call(this)};
g.k.qz=function(){return zJ(this.sb().Ca,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Lr=function(){this.timer.stop()};
g.k.Kc=function(){var a=Date.now(),b=a-this.hP;this.hP=a;this.cj+=b;this.cj>=this.qz()?(this.cj=this.qz(),this.yz(this.cj/1E3,!0),ZBa(this,this.cj),this.lf()?this.callback.uF(this.xc(),this.sb(),"normal"):this.jH()):(this.yz(this.cj/1E3),ZBa(this,this.cj))};
g.k.KY=function(){};
g.k.Zi=function(){};g.w(aM,XL);g.k=aM.prototype;g.k.ut=function(){zJ(this.sb().Ca,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=zJ(this.sb().Ca,"metadata_type_shrunken_player_bytes_config")};
g.k.Xt=function(){zJ(this.sb().Ca,"metadata_type_player_bytes_callback_ref").current=null;this.tv&&this.yc.get().removeCueRange(this.tv);this.tv=void 0;var a;null==(a=this.dJ)||a.dispose();this.kA&&this.kA.dispose()};
g.k.vu=function(a){var b=ZL(this.Da.get()),c=$L(this.Da.get());if(b&&c&&!this.lf()){c=zJ(a.Ca,"metadata_type_preload_player_vars");var d=g.EJ(this.Da.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.kA&&this.kA.start(1E3*d)}c=zJ(a.Ca,"metadata_type_ad_video_id");d=zJ(a.Ca,"metadata_type_legacy_info_card_vast_extension");c&&d&&this.og.get().J.U().Na.add(c,{bH:d});(c=zJ(a.Ca,"metadata_type_sodar_extension_data"))&&wza(this.mf.get(),c);ndb(this.Ia.get(),!1);WBa(this);if(this.lf())this.UM();
else{b?(c=this.ze.get(),a=zJ(a.Ca,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):(c=this.ze.get(),a=zJ(a.Ca,"metadata_type_player_vars"),c.J.cueVideoByPlayerVars(a,2));var e;null==(e=this.dJ)||e.start();b||this.ze.get().J.playVideo(2)}};
g.k.JY=function(){var a;null==(a=this.dJ)||a.stop();this.tv="adcompletioncuerange:"+this.sb().layoutId;this.yc.get().addCueRange(this.tv,0x7ffffffffffff,0x8000000000000,!1,this,2,2);(this.adCpn=this.KH())||RG("Media layout confirmed started, but ad CPN not set.");this.Hd.get().Zn("onAdStart",this.adCpn);this.KU=Date.now()};
g.k.IW=function(){this.jH()};
g.k.qz=function(){var a;return null==(a=this.Wa.get().cf(2))?void 0:a.jaa};
g.k.hK=function(){this.ob.Dh("clickthrough")};
g.k.Lr=function(){var a;null==(a=this.dJ)||a.stop();this.kA&&this.kA.stop();ndb(this.Ia.get(),!0);var b;(null==(b=this.shrunkenPlayerBytesConfig)?0:b.shouldRequestShrunkenPlayerBytes)&&this.Ia.get().sB(!1)};
g.k.onCueRangeEnter=function(a){a!==this.tv?RG("Received CueRangeEnter signal for unknown layout.",this.xc(),this.sb(),{cueRangeId:a}):(this.yc.get().removeCueRange(this.tv),this.tv=void 0,a=zJ(this.sb().Ca,"metadata_type_video_length_seconds"),this.yz(a,!0),this.Sc("complete"))};
g.k.KY=function(a){"abandoned"!==a&&this.Hd.get().Zn("onAdComplete");this.Hd.get().Zn("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Zi=function(a){"rendering"===this.Jc&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ia.get().sB(!0),this.yz(a))};
g.k.yz=function(a,b){XL.prototype.yz.call(this,a,void 0===b?!1:b);if(5<=a&&!this.SW&&this.Da.get().J.U().experiments.jb("enable_ap_ikd")){b=Date.now()-this.KU;var c=1E3*a;a={contentCpn:this.Ok(),adCpn:this.KH()};b=b<c-2E3?0:1;mwa(b,"i.k_",{metadata:a});HB("IKDSTAT",b);this.SW=!0}};g.w(bCa,NK);g.k=bCa.prototype;g.k.xc=function(){return this.j.xc()};
g.k.sb=function(){return this.j.sb()};
g.k.ut=function(){this.j.init()};
g.k.Xt=function(){this.j.release()};
g.k.zr=function(){this.j.zr()};
g.k.Dr=function(){this.j.Dr()};
g.k.IA=function(a,b){RG("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.xc(),this.sb(),{requestingSlot:a,requestingLayout:b})};
g.k.vu=function(a){this.j.startRendering(a)};
g.k.Lr=function(a,b){this.j.nf(a,b)};
g.k.Bc=function(a,b){this.j.Bc(a,b)};
g.k.Qc=function(a,b,c){NK.prototype.Qc.call(this,a,b,c);this.j.Qc(a,b,c);b.layoutId===this.sb().layoutId&&gBa(this.Rc.get())};
g.k.ZX=function(){this.j.lI()};
g.k.Zi=function(a){this.j.Zi(a)};
g.k.VY=function(a){this.j.Bj(a)};
g.k.sf=function(a,b,c){this.j.rA(a,b,c)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.wh=function(a){this.j.wh(a)};
g.k.Aj=function(a){this.j.Aj(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};g.k=bM.prototype;g.k.xc=function(){return this.slot};
g.k.sb=function(){return this.layout};
g.k.init=function(){this.Bf.get().addListener(this);this.Ia.get().addListener(this);this.ut();var a=zJ(this.layout.Ca,"metadata_type_layout_enter_ms"),b=zJ(this.layout.Ca,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Wa.get().yv)?void 0:c.clientPlaybackNonce;c=this.layout.jc.adClientDataEntry;cM(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Bf.get();e=fCa(e.C,a,b);null!==e&&(cM(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Mc.get().Oy(e,b))};
g.k.release=function(){this.Xt();this.Bf.get().removeListener(this);this.Ia.get().removeListener(this)};
g.k.startRendering=function(){this.vu();this.callback.Bc(this.slot,this.layout)};
g.k.nf=function(a,b){this.Lr(b);null!==this.driftRecoveryMs&&(hCa(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(gCa(this)-zJ(this.layout.Ca,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ia.get().J.Hv()).toString()}),this.driftRecoveryMs=null);this.callback.Qc(this.slot,this.layout,b)};
g.k.LY=function(){return!1};
g.k.EY=function(a){var b=zJ(this.layout.Ca,"metadata_type_layout_enter_ms"),c=zJ(this.layout.Ca,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;cM(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Wa.get().yv)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.jc.adClientDataEntry}});this.Mc.get().Oy(a,c)}};
g.k.Zi=function(a){this.tY(a);a=this.Ia.get().getCurrentTimeSec(2,!0);if(JFa(this.D.get(),this.layout.layoutId)){var b=zJ(this.layout.Ca,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=gCa(this),e=this.Ia.get().J.Hv(),f=Math.min(a+e,d/1E3);f<=a?hCa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(hCa(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.Ia.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.wh=function(){};
g.k.al=function(){};
g.k.Aj=function(){};
g.k.onVolumeChange=function(){};
g.k.Zk=function(){};g.w(iCa,bM);g.k=iCa.prototype;g.k.ut=function(){this.Wa.get().addListener(this);this.C.forEach(function(a){a.init()});
null!=this.B&&this.Oa.get().Bi("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.Xt=function(){this.Wa.get().removeListener(this);this.j=null;this.C.forEach(function(a){a.release()})};
g.k.vu=function(){if(this.j)RG("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.Wa.get().yv)?void 0:a.layoutId;kCa(this,b)}};
g.k.Lr=function(a){var b,c,d,e;null==(d=this.j)||null==(e=d.Pl)||e.nf(null==(b=this.j)?void 0:null==(c=b.Pl)?void 0:c.sb(),a);this.j=null};
g.k.xJ=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Oa.get().Bi("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.j+";slrslid."+(null==(c=this.j)?void 0:null==(d=c.Pl)?void 0:d.sb().layoutId))}var e;if(this.j&&(null==(e=this.j.Pl)?void 0:e.sb().layoutId)!==a){var f,h;null==(h=this.j.Pl)||h.nf(null==(f=this.j.Pl)?void 0:f.sb(),"normal");kCa(this,a)}};
g.k.EJ=function(){};
g.k.DJ=function(){};
g.k.tY=function(){};
g.k.Bj=function(){};
g.k.onFullscreenToggled=function(){};g.k=yCa.prototype;g.k.xc=function(){return this.slot};
g.k.sb=function(){return this.layout};
g.k.init=function(){var a=this;zJ(this.layout.Ca,"metadata_type_player_bytes_callback_ref").current=this;this.pd=lCa(this.slot,this.layout,zJ(this.layout.Ca,"metadata_type_player_vars"),zJ(this.layout.Ca,"metadata_type_layout_enter_ms"),zJ(this.layout.Ca,"metadata_type_layout_exit_ms"),1E3*zJ(this.layout.Ca,"metadata_type_video_length_seconds"),this.Mc.get(),this.oe.get(),function(){var d=Object,e=d.assign,f=BCa(a.layout);var h=zJ(a.slot.Ca,"metadata_type_fulfilled_layout");h=Object.assign({},BCa(h),
{adPlacementConfig:zJ(h.Ca,"metadata_type_ad_placement_config"),subLayouts:zJ(h.Ca,"metadata_type_sub_layouts").map(BCa)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:tJ(a.layout.Ca,"metadata_type_survey_overlay"),surveyOverlay:zJ(a.layout.Ca,"metadata_type_survey_overlay")})},this.Oa.get());
this.Ia.get().addListener(this);var b=zJ(this.layout.Ca,"metadata_type_video_length_seconds"),c=zJ(this.layout.Ca,"metadata_type_active_view_traffic_type");vK(this.layout.Kb)&&H1(this.Db.get(),this.layout.layoutId,c,b,this);Zya(this.callback,this.slot,this.layout);$ya(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ia.get().removeListener(this);vK(this.layout.Kb)&&I1(this.Db.get(),this.layout.layoutId);this.Da.get();aza(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;tJ(this.layout.Ca,"metadata_type_survey_overlay")&&this.Oa.get().Bi("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Jc)RG("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:tJ(this.layout.Ca,"metadata_type_survey_overlay"),surveyOverlay:zJ(this.layout.Ca,"metadata_type_survey_overlay")});else{this.Jc={Nn:null,BF:!1};if(Lcb(this.Da.get())){var b;this.adCpn=null==(b=this.Wa.get().cf(2))?void 0:b.clientPlaybackNonce}this.Da.get().J.U().experiments.jb("html5_disable_sodar_for_tvhtml5")||
mCa(this.slot,this.layout,this.mf.get());this.ob.Sc("start");if(GN(this.Da.get())){b=G1(this.Ia.get());var c=zJ(this.layout.Ca,"metadata_type_video_length_seconds"),d=this.Ia.get().getCurrentTimeSec(2,!1);oCa(this.ob,this.Jc.Nn,b,c,d,function(){return void ACa(a,"teois")})}bza(this.callback,this.slot,this.layout);
tJ(this.layout.Ca,"metadata_type_survey_overlay")&&this.Oa.get().Bi("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.nf=function(a,b){var c=this;if(this.Jc){if(GN(this.Da.get()))if(null===this.pd)RG("Unexpected media sub layout exited without a timeline playback ID");else{a=zJ(this.layout.Ca,"metadata_type_video_length_seconds");var d=kdb(this.Ia.get(),this.pd);Lcb(this.Da.get())&&void 0===this.adCpn&&RG("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:zJ(this.layout.Ca,"metadata_type_content_cpn")});fAa(this.ob,d,this.adCpn);pCa(this.ob,null,this.Jc.Nn,a,d,function(e){return void zCa(c,
e,"fue")},Lcb(this.Da.get()))}this.Jc=null;
cza(this.callback,this.slot,this.layout,b)}else RG("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.rA=function(){};
g.k.lI=function(){};
g.k.NW=function(){};
g.k.Zi=function(a){var b=this;if(this.Jc){if(BK(this.ob,"impression")){var c=G1(this.Ia.get()),d=zJ(this.layout.Ca,"metadata_type_video_length_seconds");qCa(this.ob,c,a,this.Jc.Nn,d,function(e){return void zCa(b,e,"tpaqe")})}this.Jc.Nn=a}};
g.k.Bj=function(a){var b=this;if(this.Jc){GN(this.Da.get())||this.Jc.BF||(this.Jc.BF=!0,a=new g.SG(a.state,new g.NL));var c=zJ(this.layout.Ca,"metadata_type_video_length_seconds"),d=this.Ia.get().getCurrentTimeSec(2,!1);nCa(this.ob,this.Jc.Nn,a,c,d,!GN(this.Da.get()),function(){return void ACa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){rCa(this.ob,a)};
g.k.wh=function(){};
g.k.al=function(){};
g.k.Aj=function(){};
g.k.IA=function(a,b){var c;a=this.Oa.get();var d=a.Bi,e="ti."+BK(this.ob,"impression")+";ts."+BK(this.ob,"skip")+";hp.",f;var h=!(null==(f=this.ob.C.get("skip"))||!f.length);d.call(a,"ads_dsr",e+h+";cpn."+zJ(this.layout.Ca,"metadata_type_content_cpn")+";acpn."+(null==(c=this.Wa.get().cf(2))?void 0:c.clientPlaybackNonce)+";sl."+(zJ(b.Ca,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));BK(this.ob,"impression")&&this.ob.Sc("skip");this.Mc.get().Jr()||RG("Unexpected failure to skip a server stitched ad",
this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Bc=function(){};
g.k.Qc=function(){};
g.k.zr=function(){};
g.k.Dr=function(){};
g.k.hK=function(){sCa(this.ob)};
g.k.zA=function(){tCa(this.ob)};
g.k.yA=function(){uCa(this.ob)};
g.k.AA=function(){vCa(this.ob)};
g.k.wA=function(){wCa(this.ob)};
g.k.xA=function(){xCa(this.ob)};
g.k.Zk=function(){};g.w(CCa,bM);g.k=CCa.prototype;
g.k.ut=function(){var a=this;zJ(this.layout.Ca,"metadata_type_player_bytes_callback_ref").current=this;var b=zJ(this.layout.Ca,"metadata_type_layout_enter_ms"),c=zJ(this.layout.Ca,"metadata_type_layout_exit_ms");this.pd=lCa(this.slot,this.layout,zJ(this.layout.Ca,"metadata_type_player_vars"),b,c,1E3*zJ(this.layout.Ca,"metadata_type_video_length_seconds"),this.Mc.get(),this.oe.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:zJ(a.layout.Ca,"metadata_type_ad_placement_config")}},
this.Oa.get());
var d=zJ(this.layout.Ca,"metadata_type_video_length_seconds"),e=zJ(this.layout.Ca,"metadata_type_active_view_traffic_type");vK(this.layout.Kb)&&H1(this.Db.get(),this.layout.layoutId,e,d,this)};
g.k.Xt=function(){vK(this.layout.Kb)&&I1(this.Db.get(),this.layout.layoutId)};
g.k.vu=function(){var a=this;if(this.Jc)RG("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Jc={Nn:null,BF:!1},mCa(this.slot,this.layout,this.mf.get()),this.ob.Sc("start"),GN(this.Da.get())){var b=G1(this.Ia.get()),c=zJ(this.layout.Ca,"metadata_type_video_length_seconds"),d=this.Ia.get().getCurrentTimeSec(2,!1);oCa(this.ob,this.Jc.Nn,b,c,d,function(){return void DCa(a,"teois")})}};
g.k.Lr=function(){var a=this;if(this.Jc){if(GN(this.Da.get()))if(null===this.pd)RG("Unexpected single media layout exited without a timeline playback ID");else{var b=zJ(this.layout.Ca,"metadata_type_video_length_seconds"),c=kdb(this.Ia.get(),this.pd);fAa(this.ob,c);pCa(this.ob,null,this.Jc.Nn,b,c,function(d){return void ECa(a,d,"fue")})}this.Jc=null}else RG("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.tY=function(a){var b=this;if(this.Jc){if(BK(this.ob,"impression")){var c=G1(this.Ia.get()),d=zJ(this.layout.Ca,"metadata_type_video_length_seconds");qCa(this.ob,c,a,this.Jc.Nn,d,function(e){return void ECa(b,e,"tpaqe")})}this.Jc.Nn=a}};
g.k.Bj=function(a){var b=this;if(this.Jc){GN(this.Da.get())||this.Jc.BF||(this.Jc.BF=!0,a=new g.SG(a.state,new g.NL));var c=zJ(this.layout.Ca,"metadata_type_video_length_seconds"),d=this.Ia.get().getCurrentTimeSec(2,!1);nCa(this.ob,this.Jc.Nn,a,c,d,!GN(this.Da.get()),function(){return void DCa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){rCa(this.ob,a)};
g.k.hK=function(){sCa(this.ob)};
g.k.zA=function(){tCa(this.ob)};
g.k.yA=function(){uCa(this.ob)};
g.k.AA=function(){vCa(this.ob)};
g.k.wA=function(){wCa(this.ob)};
g.k.xA=function(){xCa(this.ob)};FCa.prototype.build=function(a,b,c,d){if(tJ(c.Ca,"metadata_type_dai")){var e=zJ(d.Ca,"metadata_type_ad_placement_config");FK(d,{Gd:"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(" "),Ne:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new yK(d.Kb,this.Oa,e,d.layoutId,null),e=new CCa(a,c,d,this.Wa,this.Mc,this.oe,this.Bf,this.Ia,e,this.Oa,this.mf,this.j,this.Db,this.Da)):
e=null;if(e)return e;a:{var f=zJ(d.Ca,"metadata_type_sub_layouts"),h=zJ(d.Ca,"metadata_type_ad_placement_config");if(FK(d,{Gd:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Ne:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.u(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=zJ(l.Ca,"metadata_type_media_sub_layout_index");if(!FK(l,{Gd:"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(" "),
Ne:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new yK(l.Kb,this.Oa,h,l.layoutId,m);e.push(new yCa(b,c,l,this.Mc,m,this.Ia,this.oe,this.Db,this.mf,this.Da,this.Oa,this.Wa))}b=new yK(d.Kb,this.Oa,h,d.layoutId);a=new iCa(a,c,d,this.Wa,this.Mc,this.Bf,this.Ia,b,this.Oa,this.j,e)}else a=null}if(a)return a}else if(a=eCa(a,b,c,d,this.Wc,this.Zd,this.B,this.Oa,this.Db,this.mf,this.ze,this.Wa,this.Ia,this.yc,this.Rc,this.Hd,this.dg,this.Hb,this.og,this.Da,this.Mc))return a;throw new wJ("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+AJ(d.Ca)+" in PlayerBytesLayoutRenderingAdapterFactory.");};eM.prototype.build=function(a,b,c,d){if(a=eCa(a,b,c,d,this.Wc,this.Zd,this.j,this.Oa,this.Db,this.mf,this.ze,this.Wa,this.Ia,this.yc,this.Rc,this.Hd,this.dg,this.Hb,this.og,this.Da,this.Mc))return a;throw new wJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AJ(d.Ca)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(GCa,bG);g.w(fM,rK);fM.prototype.startRendering=function(a){var b=sK(this.ob),c={adsClientData:this.layout.jc};this.j.push(new GCa(zJ(this.layout.Ca,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.sb().layoutId,c));rK.prototype.startRendering.call(this,a);this.callback.Bc(this.slot,a)};
fM.prototype.Cg=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=zJ(this.layout.Ca,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.IA(this.slot,this.layout):RG("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
fM.prototype.xa=function(){rK.prototype.xa.call(this)};var HCa=new g.ne(320,63);g.w(KCa,bG);g.w(iM,rK);g.k=iM.prototype;g.k.Zi=function(){};
g.k.Bj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.wh=function(a){a&&UN(this.D,this.layout)};
g.k.al=function(){};
g.k.Aj=function(a){var b=hM(this.layout);if(this.Qu=ICa(a,ldb(this.Ia.get())))b.onErrorCommand&&this.Hb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),UN(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.rz=function(){return this.sb().layoutId};
g.k.FN=function(){return this.Qu};
g.k.Cg=function(a){this.G.Cg(a);"in_video_overlay_close_button"===a&&UN(this.D,this.layout)};
g.k.mI=function(a){"invideo-overlay"===a&&UN(this.D,this.layout)};
g.k.Np=function(){this.G.Np()};
g.k.startRendering=function(a){rK.prototype.startRendering.call(this,a);this.callback.Bc(this.slot,a);this.K.hs=this};
g.k.nf=function(a,b){rK.prototype.nf.call(this,a,b);v2(this.K,this)};
g.k.init=function(){rK.prototype.init.call(this);bdb(this.Oa.get(),this);this.Ia.get().addListener(this);this.j.push(new KCa(hM(this.layout),sK(this.ob),this.layout.layoutId,{adsClientData:this.layout.jc}))};
g.k.release=function(){rK.prototype.release.call(this);this.Ia.get().removeListener(this);cdb(this.Oa.get(),this)};
g.k.Zk=function(){};g.w(jM,rK);g.k=jM.prototype;g.k.init=function(){rK.prototype.init.call(this);bdb(this.Oa.get(),this);this.Ia.get().addListener(this);this.j.push(new KCa(hM(this.layout),sK(this.ob),this.layout.layoutId,{adsClientData:this.layout.jc}))};
g.k.Np=function(){this.G.Np()};
g.k.startRendering=function(a){rK.prototype.startRendering.call(this,a);this.callback.Bc(this.slot,a);this.K.hs=this};
g.k.nf=function(a,b){rK.prototype.nf.call(this,a,b);v2(this.K,this)};
g.k.Cg=function(a){this.G.Cg(a);"in_video_overlay_close_button"===a&&UN(this.D,this.layout)};
g.k.nO=function(a){if("invideo-overlay"===a){a=UFa(this.N,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.mI=function(a){"invideo-overlay"===a&&UN(this.D,this.layout)};
g.k.mO=function(a){if("invideo-overlay"===a){a=UFa(this.N,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Zi=function(){};
g.k.Bj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.wh=function(a){a&&UN(this.D,this.layout)};
g.k.al=function(){};
g.k.Aj=function(a){var b=hM(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=ldb(this.Ia.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&0!=c.thumbnails.length&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.ne(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.ne(0,0)}if(this.Qu=ICa(a,d,c))b.onErrorCommand&&this.Hb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),UN(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.rz=function(){return this.sb().layoutId};
g.k.FN=function(){return this.Qu};
g.k.release=function(){rK.prototype.release.call(this);this.Ia.get().removeListener(this);cdb(this.Oa.get(),this)};
g.k.Zk=function(){};kM.prototype.Cg=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ia.get().Ln(1))||this.Ia.get().pauseVideo())};
kM.prototype.Np=function(){this.j||this.Ia.get().resumeVideo(1)};g.w(NCa,bG);g.w(OCa,rK);g.k=OCa.prototype;g.k.init=function(){rK.prototype.init.call(this);this.Ia.get().addListener(this)};
g.k.startRendering=function(a){var b=zJ(this.layout.Ca,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new NCa(b,this.layout.layoutId,{adsClientData:this.layout.jc}));rK.prototype.startRendering.call(this,a);this.callback.Bc(this.slot,a)};
g.k.Bc=function(){};
g.k.Cg=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=zJ(this.layout.Ca,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.zr(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Dr(this.slot,this.layout):RG("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.Aj=function(a){450>a.width&&UN(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Zi=function(){};
g.k.onFullscreenToggled=function(){};
g.k.wh=function(){};
g.k.al=function(){};
g.k.Bj=function(){};
g.k.Zk=function(){};
g.k.xa=function(){rK.prototype.xa.call(this)};
g.k.release=function(){rK.prototype.release.call(this);this.Ia.get().removeListener(this)};PCa.prototype.build=function(a,b,c,d){if(b=MK(a,c,d,this.lc,this.Ia,this.Oa,this.D,this.j,this.Da))return b;if(FK(d,MCa()))return new jM(c,d,this.Oa,this.Db,this.lc,a,this.B,this.C,this.Ia,this.Hb,this.Da,this.j,new kM(this.Ia));if(FK(d,LCa()))return new iM(c,d,this.Oa,this.Db,this.lc,a,this.B,this.Ia,this.Hb,this.Da,this.j,new kM(this.Ia));if(FK(d,{Gd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Ne:["LAYOUT_TYPE_SURVEY"]}))return new OCa(c,d,a,this.lc,this.B,this.Ia,this.Da);if(FK(d,
{Gd:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Ne:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new fM(c,d,a,this.lc,this.Oa);if(FK(d,VAa()))return new KK(c,d,a,this.lc,this.Ia,this.Da);throw new wJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AJ(d.Ca)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};QCa.prototype.build=function(a,b,c,d){if(b=MK(a,c,d,this.lc,this.Ia,this.Oa,this.D,this.j,this.Da))return b;if(FK(d,MCa()))return new jM(c,d,this.Oa,this.Db,this.lc,a,this.B,this.C,this.Ia,this.Hb,this.Da,this.j,new kM(this.Ia));if(FK(d,LCa()))return new iM(c,d,this.Oa,this.Db,this.lc,a,this.B,this.Ia,this.Hb,this.Da,this.j,new kM(this.Ia));throw new wJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AJ(d.Ca)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(lM,JK);lM.prototype.startRendering=function(a){JK.prototype.startRendering.call(this,a);zJ(this.layout.Ca,"metadata_ad_video_is_listed")&&(a=zJ(this.layout.Ca,"metadata_type_ad_info_ad_metadata"),this.Tm.get().J.ib("onAdMetadataAvailable",a))};SCa.prototype.build=function(a,b,c,d){if(FK(d,RCa()))return new lM(a,c,d,this.lc,this.Ia,this.Oa,this.B,this.Tm,this.j);throw new wJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AJ(d.Ca)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};TCa.prototype.build=function(a,b,c,d){if(FK(d,RCa()))return new lM(a,c,d,this.lc,this.Ia,this.Oa,this.B,this.Tm,this.j);if(a=MK(a,c,d,this.lc,this.Ia,this.Oa,this.B,this.j,this.Da))return a;throw new wJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AJ(d.Ca)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};CM.prototype.clone=function(a){var b=this;return new CM(function(){return b.triggerId},a)};DM.prototype.clone=function(a){var b=this;return new DM(function(){return b.triggerId},a)};EM.prototype.clone=function(a){var b=this;return new EM(function(){return b.triggerId},a)};FM.prototype.clone=function(a){var b=this;return new FM(function(){return b.triggerId},a)};GM.prototype.clone=function(a){var b=this;return new GM(function(){return b.triggerId},a)};YM.prototype.clone=function(a){var b=this;return new YM(function(){return b.triggerId},a)};g.w(pN,g.H);var nEa={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Vc:[],layoutExitUserInputSubmittedTriggers:[]};var PEa={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15,
"i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var vS={GNa:1,HNa:2,INa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.w(FN,g.H);g.k=FN.prototype;g.k.LY=function(a){if(!this.j){var b;null==(b=this.Mc)||b.get().Rt(a.identifier);return!1}DFa(this,this.j,a);return!0};
g.k.EY=function(){};
g.k.nk=function(a){this.j&&this.j.contentCpn!==a&&(RG("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.Rn=function(a){this.j&&this.j.contentCpn!==a&&RG("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.xa=function(){g.H.prototype.xa.call(this);this.j=null};var a2=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],wjb=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.w(JN,g.H);g.k=JN.prototype;g.k.Bc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&(uJ(b,this.C)||uJ(b,wjb))){var d=this.Wa.get().cf(2),e=this.j(b,d||void 0,this.Da.get().J.U().experiments.jb("enable_post_ad_perception_survey_in_tvhtml5"));e?oK(this.Qb.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[bEa(c.Mb.get(),e.contentCpn,e.iq,function(h){return c.B(h.slotId,"core",e,DJ(c.Yb.get(),h))},e.inPlayerSlotId)];
e.instreamAdPlayerUnderlayRenderer&&cEa(c.Da.get())&&f.push(IFa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):RG("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Xf=function(){};
g.k.Ci=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};
g.k.Qc=function(){};g.w(KN,g.H);KN.prototype.nk=function(a,b,c,d,e,f,h){var l=this,m=this.Wa.get().cf(1);m.ev?O1(this.Ia.get()):(Dcb(this.Rc.get(),d),oK(this.Qb.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return DDa(l.xe.get(),d,e,f,a,b,h,m,"")}),Beb(this.j))};
KN.prototype.Rn=function(){};g.w(LN,g.H);g.w(MN,g.H);MN.prototype.onCueRangeEnter=function(){};
MN.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.yc.get().removeCueRange(a),oK(this.Qb.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.Mb.get();d=pK(d.fb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?aGa(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:bGa(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:bGa(c.slotId,d,c.slotExpirationTriggers)})]},
c.slotId))};
MN.prototype.nk=function(){for(var a=g.u(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.yc.get().removeCueRange(b);this.j.clear()};
MN.prototype.Rn=function(){};g.w(NN,g.H);g.k=NN.prototype;g.k.Ah=function(){};
g.k.Fi=function(a){var b=this;g.jD(g.lD(),function(){var c=b.j.get(a);c&&RG("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.oa(c)).map(function(d){return d.layoutType})})},0)};
g.k.Xf=function(){};
g.k.Ci=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.Qg=function(a,b){this.Ij.has(a)&&this.Ij.get(a)===b&&RG("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)):RG("Trying to unscheduled a Layout that was not scheduled.",a,b)}else RG("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Bc=function(a,b){this.Ij.set(a,b)};
g.k.Qc=function(a){this.Ij.delete(a)};
g.k.yh=function(){};g.k=KFa.prototype;g.k.init=function(){};
g.k.xc=function(){return this.slot};
g.k.DH=function(){this.callback.Xf(this.slot)};
g.k.FH=function(){this.callback.Yf(this.slot)};
g.k.release=function(){};ON.prototype.build=function(a,b){return new KFa(a,b)};g.k=LFa.prototype;g.k.init=function(){};
g.k.xc=function(){return this.slot};
g.k.DH=function(){P1(this.Ia.get(),"ad-showing");this.callback.Xf(this.slot)};
g.k.FH=function(){this.callback.Yf(this.slot);Q1(this.Ia.get(),"ad-showing")};
g.k.release=function(){};g.k=MFa.prototype;g.k.init=function(){};
g.k.xc=function(){return this.slot};
g.k.DH=function(){P1(this.Ia.get(),"ad-showing");P1(this.Ia.get(),"ad-interrupting");this.B=this.Ia.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.Xf(this.slot)};
g.k.FH=function(){Q1(this.Ia.get(),"ad-showing");Q1(this.Ia.get(),"ad-interrupting");var a=this.B?Infinity:this.Ia.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ia.get().J.seekTo(a,void 0,void 0,1);this.callback.Yf(this.slot)};
g.k.release=function(){};g.k=NFa.prototype;g.k.init=function(){};
g.k.xc=function(){return this.slot};
g.k.DH=function(){P1(this.Ia.get(),"ad-showing");P1(this.Ia.get(),"ad-interrupting");this.callback.Xf(this.slot)};
g.k.FH=function(){O1(this.Ia.get());Q1(this.Ia.get(),"ad-showing");Q1(this.Ia.get(),"ad-interrupting");this.callback.Yf(this.slot)};
g.k.release=function(){O1(this.Ia.get())};PN.prototype.build=function(a,b){if(BJ(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new LFa(a,b,this.Ia);if(b.slotEntryTrigger instanceof wM&&BJ(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new MFa(a,b,this.Ia);if(BJ(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new NFa(a,b,this.Ia);throw new xJ("Unsupported slot with type "+b.slotType+" and client metadata: "+(AJ(b.Ca)+" in PlayerBytesSlotAdapterFactory."));};g.w(QN,g.H);QN.prototype.j=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof BM&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.triggeringLayoutId===a&&b.push(d)}b.length?QJ(this.HL(),b):RG("Mute requested but no registered triggers can be activated.")};g.w(RN,QN);g.k=RN.prototype;g.k.Cg=function(a,b){if(b)if("skip-button"===a){a=[];for(var c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof BM&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.triggeringLayoutId===b&&a.push(d)}a.length&&QJ(this.HL(),a)}else BN(this.Da.get(),"supports_multi_step_on_desktop")?"ad-action-submit-survey"===a&&OFa(this,b):"survey-submit"===a?OFa(this,b):"survey-single-select-answer-button"===a&&OFa(this,b)};
g.k.pO=function(a){QN.prototype.j.call(this,a)};
g.k.rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xJ("Tried to register duplicate trigger for slot.");if(!(b instanceof ZM||b instanceof BM))throw new xJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Wb.set(b.triggerId,new $M(a,b,c,d))};
g.k.Dl=function(a){this.Wb.delete(a.triggerId)};
g.k.nO=function(){};
g.k.mO=function(){};
g.k.mI=function(){};g.w(SN,g.H);g.k=SN.prototype;
g.k.rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xJ("Tried to register duplicate trigger for slot.");if(!(b instanceof CM||b instanceof DM||b instanceof EM||b instanceof FM||b instanceof GM||b instanceof YM||b instanceof $Ca||b instanceof sM||b instanceof uM||b instanceof tM||b instanceof xM||b instanceof rM))throw new xJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new $M(a,b,c,d);this.Wb.set(b.triggerId,a);b instanceof
GM&&this.G.has(b.triggeringSlotId)&&QJ(this.j(),[a]);b instanceof CM&&this.C.has(b.triggeringSlotId)&&QJ(this.j(),[a]);b instanceof sM&&this.B.has(b.triggeringLayoutId)&&QJ(this.j(),[a])};
g.k.Dl=function(a){this.Wb.delete(a.triggerId)};
g.k.Ah=function(a){this.G.add(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof GM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&QJ(this.j(),b)};
g.k.Fi=function(a){this.G.delete(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof YM&&e.triggeringSlotId===a.slotId&&b.push(d)}0<b.length&&QJ(this.j(),b)};
g.k.Ci=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof $Ca&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&QJ(this.j(),b)};
g.k.Xf=function(a){this.C.add(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof CM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&QJ(this.j(),b)};
g.k.Yf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof DM)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof rM){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}0<b.length&&QJ(this.j(),b)};
g.k.Di=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof EM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&QJ(this.j(),b)};
g.k.Ei=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof FM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&QJ(this.j(),b)};
g.k.Uh=function(a,b){this.K.add(b.layoutId)};
g.k.Qg=function(a,b){this.K.delete(b.layoutId)};
g.k.Bc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.u(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof sM)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof xM){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof rM&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));0<c.length&&QJ(this.j(),c)};
g.k.Qc=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.u(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof uM&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof tM){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}0<a.length&&QJ(this.j(),a)};
g.k.yh=function(){};
g.k.nk=function(){this.D.clear()};
g.k.Rn=function(){};g.w(TN,g.H);TN.prototype.rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xJ("Tried to register duplicate trigger for slot.");if(!(b instanceof pM))throw new xJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Wb.set(b.triggerId,new $M(a,b,c,d))};
TN.prototype.Dl=function(a){this.Wb.delete(a.triggerId)};g.w(VN,g.H);VN.prototype.rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xJ("Tried to register duplicate trigger for slot.");if(!(b instanceof oM||b instanceof zM))throw new xJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Wb.set(b.triggerId,new $M(a,b,c,d))};
VN.prototype.Dl=function(a){this.Wb.delete(a.triggerId)};
VN.prototype.nk=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.u(this.Wb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof oM&&l.trigger.Or===a&&f.push(l);e.call(d,b,g.oa(f));b.push.apply(b,g.oa(PFa(this.Wb,a,!1,c)));b.length&&QJ(this.j(),b)};
VN.prototype.Rn=function(a){var b=[];b.push.apply(b,g.oa(PFa(this.Wb,a,!0,!1)));b.length&&QJ(this.j(),b)};g.w(WN,g.H);g.k=WN.prototype;
g.k.rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xJ("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(QFa(b))this.Wb.set(b.triggerId,{Zu:new $M(a,b,c,d),xv:e});else if(b instanceof wM||b instanceof vM)RFa(this,a,b,c,d,e,b.j.start,b.j.end,b.Or,b.visible);else if(b instanceof ZCa)RFa(this,a,b,c,d,e,b.j.start,b.j.end,b.Or,!1);else if(b instanceof qM)RFa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Or,b.visible);else throw new xJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+
" in CueRangeTriggerAdapter");};
g.k.Dl=function(a){var b=this.Wb.get(a.triggerId);b&&this.yc.get().removeCueRange(b.xv);this.Wb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a,b){b=void 0===b?!1:b;if(a=SFa(this,a))if(a=this.Wb.get(a))if(g.TG(G1(this.Ia.get()),32))this.j.add(a.xv);else{var c=null==a?void 0:a.Zu.trigger;b=b?c instanceof cDa:c instanceof bDa;(c instanceof wM||c instanceof vM||c instanceof qM||c instanceof AM||b)&&QJ(this.B(),[a.Zu])}};
g.k.onCueRangeExit=function(a){if(a=SFa(this,a))if(a=this.Wb.get(a))this.j.delete(a.xv),a.Zu.trigger instanceof ZCa&&QJ(this.B(),[a.Zu])};
g.k.Bj=function(a){if(0>UG(a,16)){a=g.u(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.Bc=function(a,b){a=g.u(this.Wb.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.Zu.trigger;c=c.xv;if(QFa(d)&&d.layoutId===b.layoutId){var e=1E3*this.Ia.get().getCurrentTimeSec(1,!1);d instanceof AM?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.yc.get().addCueRange(c,d,e,!1,this)}}};
g.k.Qc=function(a,b,c){var d=this;a=g.u(this.Wb.values());for(var e=a.next(),f={};!e.done;f={oH:void 0,Cu:void 0},e=a.next())e=e.value,f.Cu=e.Zu.trigger,f.oH=e.xv,QFa(f.Cu)&&f.Cu.layoutId===b.layoutId?Icb(this.yc.get(),f.oH):f.Cu instanceof vM&&f.Cu.layoutId===b.layoutId&&"user_cancelled"===c&&(this.yc.get().removeCueRange(f.oH),g.jD(g.lD(),function(h){return function(){d.yc.get().addCueRange(h.oH,h.Cu.j.start,h.Cu.j.end,h.Cu.visible,d)}}(f)))};
g.k.yh=function(){};
g.k.Zi=function(){};
g.k.onFullscreenToggled=function(){};
g.k.wh=function(){};
g.k.al=function(){};
g.k.Aj=function(){};
g.k.onVolumeChange=function(){};
g.k.Zk=function(){};g.w(XN,g.H);g.k=XN.prototype;
g.k.rl=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new xJ("Tried to re-register the trigger.");a=new $M(a,b,c,d);if(a.trigger instanceof XCa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof WCa)this.C.set(a.trigger.triggerId,a);else throw new xJ("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&QJ(this.D(),[a])};
g.k.Dl=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)};
g.k.xJ=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.oa(TFa(this.C,this.j)));null!=a&&b.push.apply(b,g.oa(TFa(this.B,a)));this.j=a;b.length&&QJ(this.D(),b)}};
g.k.EJ=function(){};
g.k.DJ=function(){};g.w(YN,g.H);g.k=YN.prototype;g.k.rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xJ("Tried to register duplicate trigger for slot.");if(!(b instanceof yM))throw new xJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Wb.set(b.triggerId,new $M(a,b,c,d))};
g.k.Dl=function(a){this.Wb.delete(a.triggerId)};
g.k.Bc=function(){};
g.k.Qc=function(){};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};g.w(ZN,g.H);g.k=ZN.prototype;g.k.yh=function(a,b){for(var c=[],d=g.u(this.Wb.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&&QJ(this.j(),c)};
g.k.rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xJ("Tried to register duplicate trigger for slot.");if(!(b instanceof yza))throw new xJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Wb.set(b.triggerId,new $M(a,b,c,d))};
g.k.Dl=function(a){this.Wb.delete(a.triggerId)};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.Bc=function(){};
g.k.Qc=function(){};g.w($N,g.H);g.k=$N.prototype;g.k.rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xJ("Tried to register duplicate trigger for slot.");if(!(b instanceof dDa))throw new xJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Wb.set(b.triggerId,new $M(a,b,c,d));a=this.j.has(b.triggeringLayoutId)?this.j.get(b.triggeringLayoutId):new Set;a.add(b);this.j.set(b.triggeringLayoutId,a)};
g.k.Dl=function(a){this.Wb.delete(a.triggerId);if(!(a instanceof dDa))throw new xJ("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),0===b.size&&this.j.delete(a.triggeringLayoutId)};
g.k.Ah=function(){};
g.k.Fi=function(){};
g.k.Ci=function(){};
g.k.Xf=function(){};
g.k.Yf=function(){};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.Uh=function(){};
g.k.Qg=function(){};
g.k.yh=function(){};
g.k.Bc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.u(a);var d=a.next();for(b={};!d.done;b={QK:void 0},d=a.next())b.QK=d.value,d=new g.Eu(function(e){return function(){var f=c.Wb.get(e.QK.triggerId);QJ(c.C(),[f])}}(b),b.QK.durationMs),d.start(),this.B.set(b.QK.triggerId,d)}};
g.k.Qc=function(){};g.w(aO,g.H);aO.prototype.rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xJ("Tried to register duplicate trigger for slot.");if(!(b instanceof mM))throw new xJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Wb.set(b.triggerId,new $M(a,b,c,d))};
aO.prototype.Dl=function(a){this.Wb.delete(a.triggerId)};g.w(fO,g.H);fO.prototype.logEvent=function(a){this.j(a)};
fO.prototype.j=function(a,b,c,d,e,f,h,l,m,n,p){var q=this;p=void 0===p?0:p;BN(this.Da.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"Opportunity:",{opportunityType:b,associatedSlotId:c,Lkb:d,Pkb:h,adSlotLoggingData:l,adLayoutLoggingData:m});try{p&&0<p?g.jD(g.lD(),function(){return void gGa(q,a,b,c,d,e,f,h,l,m,n)},p):gGa(this,a,b,c,d,e,f,h,l,m,n)}catch(r){BN(this.Da.get(),"html5_log_pacf_logging_errors")&&g.jD(g.lD(),function(){RG(r instanceof Error?r:String(r),
e,f,{pacf_message:"exception during pacf logging"})})}};
fO.prototype.BR=function(){return this.Da.get().BR()};g.w(gO,fO);gO.prototype.j=function(a,b,c,d,e,f,h,l,m,n){if(g.PJ(this.Da.get().J.U())){var p=this.Da.get();p=g.EJ(p.J.U().experiments,"H5_async_logging_delay_ms")}else p=void 0;fO.prototype.j.call(this,a,b,c,d,e,f,h,l,m,n,p)};hO.prototype.clear=function(){this.j.clear()};var hGa=!1,jO,kO,lO,mO,nO;g.w(oO,g.H);
oO.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.B,d=0;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)iGa(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(iGa(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};
oO.prototype.vK=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 jGa=!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 pO;kGa.prototype.Ki=function(a,b){b=void 0===b?1:b;this.j+=b;this.C+=a;a/=b;for(var c=0;c<rO.length&&!(a<rO[c]);++c)this.B[c]+=b};
kGa.prototype.toString=function(){return""};
var rO=[20,100,500,2E3];g.k=nGa.prototype;g.k.isActive=function(){return!0};
g.k.AI=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={kZ:void 0,JZ:void 0},b.hasOwnProperty(e)&&(d.kZ=a.prototype[e],d.JZ=b[e],a.prototype[e]=function(f){return function(){var h=g.Ia.apply(0,arguments),l=(0,g.FD)();h=f.kZ.apply(this,h);return pGa(c,h,f.JZ,l)}}(d))}};
g.k.uu=function(a){return new mGa(a)};
g.k.Js=function(a,b){b=void 0===b?1:b;a instanceof mGa&&(oGa(this,a.name,(0,g.FD)()-a.startTimeMs,b),a.j=!0)};
g.k.vk=function(a,b){var c=(0,g.FD)();b=b();return pGa(this,b,a,c)};
g.k.WV=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=this.j[b];if(0===c.j)c=null;else{for(var d=c.j.toFixed(0)+"."+c.C.toFixed(0),e=0;e<rO.length;++e)if(0<c.B[e])d+="."+rO[e].toFixed(0)+"_"+c.B[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new lGa;return a};
g.k.toString=function(){return""};g.k=qGa.prototype;g.k.isActive=function(){return!1};
g.k.AI=function(){};
g.k.uu=function(){};
g.k.Js=function(){};
g.k.vk=function(a,b){return b()};
g.k.WV=function(){return{}};
g.k.toString=function(){return""};var r3,xjb,yjb,zjb,Ajb,Bjb,s3,sO,HZ,mbb,PR;r3=new qGa;xjb=!!+JB("html5_enable_profiler");yjb=!!+JB("html5_onesie_enable_profiler");zjb=!!+JB("html5_offline_encryption_enable_profiler");Ajb=!!+JB("html5_performance_impact_profiling_timer_ms");Bjb=!!+JB("html5_drm_enable_profiler");s3=xjb||yjb||zjb||Ajb||Bjb?new nGa:r3;g.sY=xjb?s3:r3;sO=yjb?s3:r3;HZ=zjb?s3:r3;mbb=Ajb?s3:r3;PR=Bjb?s3:r3;g.w(tO,g.H);tO.prototype.encrypt=function(a){this.B(this.cipher,a.byteOffset,a.byteLength);return a};
tO.prototype.vK=function(a){this.j.exports.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)};g.uO.prototype.encrypt=function(a,b){var c=this,d,e;return g.Ha(function(f){if(1==f.j){d=qO();if(!d)return f.return(c.j(a,b));g.ya(f,3);return g.z(f,c.B(a,b,d),5)}if(3!=f.j)return f.return(f.B);e=g.Aa(f);g.LF(e);jGa=!0;return f.return(c.j(a,b))})};
g.uO.prototype.B=function(a,b,c){var d=this,e,f;return g.Ha(function(h){switch(h.j){case 1:if(d.G){h.Ka(2);break}return g.z(h,c.importKey("raw",d.D,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:d.G=h.B;case 2:return e={name:"AES-CTR",counter:b,length:128},g.z(h,c.encrypt(e,d.G,a),4);case 4:return f=h.B,h.return(new Uint8Array(f))}})};
g.uO.prototype.j=function(a,b){this.C||(this.C=new oO(this.D));this.C.vK(b);return this.C.encrypt(a)};
g.uO.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.w(g.vO,g.H);g.vO.prototype.encrypt=function(a,b){this.j||(this.j=new oO(this.B),g.J(this,this.j));this.j.vK(b);return this.j.encrypt(a)};
g.vO.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
wO.prototype.encrypt=function(a,b){this.B.vK(b);return this.B.encrypt(a)};
wO.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
wO.prototype.isDisposed=function(){return this.B.isDisposed()};
wO.prototype.dispose=function(){this.B.dispose()};sGa.prototype.reset=function(){uGa(this);this.update(this.C)};
sGa.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&64<=this.B+c&&(this.K.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,tGa(this,this.K,0));for(;b+64<=c;b+=64)tGa(this,a,b);b<c&&(a=a.subarray(b),this.K.set(a,this.B),this.B+=a.length)};
var xO=[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 Cjb;Cjb={};g.Djb=g.ZD("yt-idb-pref-storage",{vr:(Cjb.prefs={Vm:1},Cjb),shared:!1,upgrade:function(a,b){b(1)&&g.MD(g.GD(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});yO.prototype.getState=function(){return this.store.getState()};
yO.prototype.dispatch=function(a){return this.store.dispatch(a)};
yO.prototype.subscribe=function(a){return this.store.subscribe(a)};
yO.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
yO.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.k=zO.prototype;g.k.getLength=function(){return this.totalLength};
g.k.append=function(a){if(EGa(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);FGa(this)}else this.j.push(a);this.totalLength+=a.length};
g.k.split=function(a){for(var b=new zO,c=new zO,d=g.u(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{tI:b,Bm:c}};
g.k.isFocused=function(a){return a>=this.C&&a<this.C+this.j[this.B].length};
g.k.focus=function(a){if(!this.isFocused(a)){for(a<this.C&&FGa(this);this.C+this.j[this.B].length<=a&&this.B<this.j.length;)this.C+=this.j[this.B].length,this.B+=1;this.D=void 0}};var HO,FO,JO;g.e_=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}();
HO=Array(1024);FO=window.TextDecoder?new TextDecoder:void 0;JO=window.TextEncoder?new TextEncoder:void 0;for(var SGa={buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,emojiFountainDataEntity:393,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,
liveChatPollStateEntity:217,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,
musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,
saveToPlaylistListEntity:231,settingEntity:297,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},RGa={},Ejb=g.u(Object.entries(SGa)),Fjb=Ejb.next();!Fjb.done;Fjb=Ejb.next()){var Gjb=g.u(Fjb.value),Hjb=Gjb.next().value,Ijb=Gjb.next().value,Jjb=Hjb,Kjb=Ijb;Kjb&&(RGa[Kjb]=Jjb)};var t3;t3={};g.Ljb=(t3.INVALID_ENCODER_VERSION="Invalid encoder version",t3.KEY_CREATION_FAILED="Failed to create encoder key",t3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",t3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",t3.WRONG_DATA_TYPE="Encoder cannot process the data type",t3);var hP=window.Nhb||"fi";var bLa=[3611,27686,85013,23462,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,98349,168271,168954,168277,168273,168270,123695,6827,29434,171388,7282,124448,196088,198104,32276,195115,195114,76278,200635,147868,147869,93911,106531,177843,27259,27262,27263,21759,160866,180626,177959,177957,180628,197878,171243,160789,171244,171241,171245,171242,180627,177960,177958,180629,197879,177565,197337,197336,197338,198618,
175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,68728,80353,80356,180635,74610,45707,83962,83970,46713,166591,89711,74612,179607,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,110111,76019,117092,117093,89431,191831,110466,77240,60508,186091,148123,148124,137401,
137402,137046,73393,113534,92098,131381,84517,83759,162711,162712,80357,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,144401,117431,133797,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,
178546,197891,156655,156654,121692,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,129889,197888,197889,149123,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,93278,93274,93275,
93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,82047,113550,75836,75837,192409,42352,84512,76065,75989,51879,16623,32594,27240,32633,74858,156999,3945,16989,45520,25488,25492,25494,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,195529,189660,46220,11721,147994,49954,96369,3854,151633,56251,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,109512,22256,14115,22696,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,
147912,89281,40963,43277,43442,91824,120137,186350,186351,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,
36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,194769,191885,194770,195350,195349,194771,166382,37671,49953,191389,187917,191390,179556,191402,191392,197826,191393,36216,28237,173718,39553,192547,29222,26107,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,74723,44098,173689,44099,23528,61699,134104,134103,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,63349,95101,75240,27039,68823,21537,
83464,75707,170215,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,111059,5754,20445,151308,151152,130975,130976,191925,167637,197196,110386,113746,66557,183215,17310,28631,201935,21589,164817,168011,154946,68012,
162617,60480,184431,138664,194E3,141121,164502,31571,195002,141978,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,4724,59369,43927,43928,12924,197853,100355,56219,27669,10337,47896,122629,186204,139723,139722,121258,107598,127991,96639,107536,130169,96661,145188,96658,116646,159428,168611,168612,121122,96660,127738,127083,155281,162959,163566,186641,147842,104443,96659,147595,106442,182423,162776,134840,63667,63668,63669,130686,147036,189810,78314,147799,174049,148649,
55761,127098,134841,96368,67374,48992,146176,176105,49956,190190,31961,26388,23811,5E4,126250,96370,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,68314,25602,100339,170873,143516,178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,53969,8213,93926,102852,110099,22678,69076,137575,139224,100856,154430,17736,3832,147111,55759,64031,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,
11357,69877,8197,168501,156512,161613,156509,161612,161614,82039];var bbb={adNotify:function(a){var b=new hy,c=0;try{var d=a.adMediaTimeSec;void 0!==d&&(Wj(b,1,d),c++);var e=a.adMediaTimeMs;void 0!==e&&(Yj(b,6,e),c++);var f=a.timeToAdBreakSec;void 0!==f&&(Wj(b,2,f),c++);var h=a.clientScreenNonce;void 0!==h&&(N(b,3,h),c++);var l=a.clientPlaybackNonce;void 0!==l&&(N(b,4,l),c++);var m=a.videoAdBreakOffsetSec;void 0!==m&&(Wj(b,5,m),c++);var n=a.videoAdBreakOffsetMs;void 0!==n&&(Yj(b,7,n),c++);return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}},
biscottiBasedDetection:function(a){var b=new hA,c=0;try{var d=a.detected;void 0!==d&&(Vj(b,1,d),c++);var e=a.source;void 0!==e&&(N(b,2,e),c++);var f=a.contentCpn;void 0!==f&&(N(b,3,f),c++);var h=a.contentCsn;void 0!==h&&(N(b,4,h),c++);var l=a.method;void 0!==l&&(Wj(b,5,l),c++);var m=a.result;void 0!==m&&(Wj(b,6,m),c++);var n=a.detectionResult;void 0!==n&&(O(b,9,Ehb[n]),c++);var p=a.adCpn;void 0!==p&&(N(b,7,p),c++);var q=a.playbackType;void 0!==q&&(N(b,8,q),c++);return[c===Object.keys(a).length,b]}catch(r){return Y(r),
[!1,void 0]}},
adNotifyFilled:function(a){var b=new gy,c=0;try{var d=a.notifyCompositeType;void 0!==d&&(O(b,1,nhb[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
idbTransactionEnded:function(a){var b=new fB,c=0;try{var d=a.objectStoreNames;void 0!==d&&(N(b,1,d),c++);var e=a.duration;void 0!==e&&(b.xl(e),c++);var f=a.isSuccessful;void 0!==f&&(Vj(b,3,f),c++);var h=a.connectionHasUnknownAbortedTransaction;void 0!==h&&(Vj(b,4,h),c++);var l=a.tryCount;void 0!==l&&(Wj(b,5,l),c++);var m=a.tag;void 0!==m&&(O(b,6,Uhb[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}},
idbUnexpectedlyClosed:function(a){var b=new ena,c=0;try{var d=a.dbName;void 0!==d&&(N(b,1,d),c++);var e=a.dbVersion;void 0!==e&&(Wj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
flowEvent:function(a){var b=new Zma,c=0;try{var d=a.flowNonce;void 0!==d&&(N(b,1,d),c++);var e=a.flowEventType;if(e){var f=new Yma,h=0;try{var l=e.flowEventNamespace;void 0!==l&&(O(f,1,Nhb[l]),h++);var m=e.flowEventType;void 0!==m&&(Wj(f,2,m),h++);var n=[h===Object.keys(e).length,f]}catch(Na){Y(Na),n=[!1,void 0]}var p=n;p[0]&&(Jj(b,Yma,2,p[1]),c++)}var q=a.flowMetadata;if(q){var r=new Xma,t=0;try{var v=q.notaireContext;if(v){var x=new wma,B=0;try{var F=v.serverInfo;if(F){var G=new PA,I=0;try{var L=
F.id;void 0!==L&&(N(G,1,L),I++);var P=F.forceLog;void 0!==P&&(Vj(G,2,P),I++);var V=[I===Object.keys(F).length,G]}catch(Na){Y(Na),V=[!1,void 0]}var ka=V;ka[0]&&(Jj(x,PA,1,ka[1]),B++)}var sa=v.clientInfo;if(sa){var ta=new vma,la=0;try{var qa=sa.timeSinceReceivedMs;void 0!==qa&&(Yj(ta,1,qa),la++);var ba=[la===Object.keys(sa).length,ta]}catch(Na){Y(Na),ba=[!1,void 0]}var T=ba;T[0]&&(Jj(x,vma,2,T[1]),B++)}var Ma=[B===Object.keys(v).length,x]}catch(Na){Y(Na),Ma=[!1,void 0]}var y=Ma;y[0]&&(Jj(r,wma,1,y[1]),
t++)}var Z=q.offlineTransferStatusChangedContext;if(Z){var Ua=new zma,Za=0;try{var bb=Z.offlineTransferStatusChanged;if(bb){var Xa=mJa(bb);Xa[0]&&(Jj(Ua,SA,1,Xa[1]),Za++)}var Va=[Za===Object.keys(Z).length,Ua]}catch(Na){Y(Na),Va=[!1,void 0]}var lb=Va;lb[0]&&(Jj(r,zma,2,lb[1]),t++)}var Ab=q.offlineOrchestrationContext;if(Ab){var ob=new RA,A=0;try{var D=Ab.entityType;void 0!==D&&(Wj(ob,1,D),A++);var E=Ab.entityId;void 0!==E&&(N(ob,7,E),A++);var C=Ab.offlineOrchestrationActionType;void 0!==C&&(O(ob,
6,oib[C]),A++);var K=Ab.offlineOrchestrationActionResult;void 0!==K&&(O(ob,2,nib[K]),A++);var X=Ab.offlineOrchestrationFailureReason;void 0!==X&&(O(ob,10,pib[X]),A++);var ma=Ab.isRetryable;void 0!==ma&&(Vj(ob,3,ma),A++);var fa=Ab.isRestored;void 0!==fa&&(Vj(ob,11,fa),A++);var S=Ab.orchestrationAction;if(S){var na=lKa(S);na[0]&&(Jj(ob,QA,4,na[1]),A++)}var Ea=Ab.additionalOrchestrationActions;Ea&&(jP(ob.j.bind(ob),Ea,lKa),A++);var Ca=Ab.intervalSinceEnqueuedMs;void 0!==Ca&&(Yj(ob,8,Ca),A++);var cb=
Ab.executionIntervalMs;void 0!==cb&&(Yj(ob,9,cb),A++);var kb=[A===Object.keys(Ab).length,ob]}catch(Na){Y(Na),kb=[!1,void 0]}var Bb=kb;Bb[0]&&(Jj(r,RA,3,Bb[1]),t++)}var Ob=q.shortsCreationContext;if(Ob){var tb=new VA,qb=0;try{var tc=Ob.shortsCreationSurfaces;void 0!==tc&&(kP(tb.j.bind(tb),tc,Aib),qb++);var Uc=[qb===Object.keys(Ob).length,tb]}catch(Na){Y(Na),Uc=[!1,void 0]}var gc=Uc;gc[0]&&(Jj(r,VA,4,gc[1]),t++)}var Vc=q.mdxConnectionContext;if(Vc){var md=new rma,Lc=0;try{var nd=Vc.isReconnection;void 0!==
nd&&(Vj(md,1,nd),Lc++);var od=Vc.disconnectReason;void 0!==od&&(O(md,2,Xhb[od]),Lc++);var Yb=Vc.isRetry;void 0!==Yb&&(Vj(md,3,Yb),Lc++);var lc=[Lc===Object.keys(Vc).length,md]}catch(Na){Y(Na),lc=[!1,void 0]}var Kd=lc;Kd[0]&&(Jj(r,rma,5,Kd[1]),t++)}var $c=q.premiumMultiStepPurchaseContext;if($c){var ec=new Gma,ad=0;try{var Qb=$c.selectedOption;if(Qb){var Ad=new Fma,Wd=0;try{var Sb=Qb.offerType;void 0!==Sb&&(O(Ad,1,Ugb[Sb]),Wd++);var af=Qb.itemType;void 0!==af&&(O(Ad,2,yP[af]),Wd++);var ze=Qb.itemExternalId;
void 0!==ze&&(N(Ad,3,ze),Wd++);var Oe=[Wd===Object.keys(Qb).length,Ad]}catch(Na){Y(Na),Oe=[!1,void 0]}var uf=Oe;uf[0]&&(Jj(ec,Fma,1,uf[1]),ad++)}var bf=$c.itemType;void 0!==bf&&(O(ec,2,yP[bf]),ad++);var jh=$c.productType;void 0!==jh&&(O(ec,3,zP[jh]),ad++);var Ig=$c.landingPageVariantId;void 0!==Ig&&(N(ec,4,Ig),ad++);var kh=$c.experimentStatus;void 0!==kh&&(O(ec,5,Zhb[kh]),ad++);var Jg=$c.themeKey;void 0!==Jg&&(N(ec,6,Jg),ad++);var lh=$c.signupType;void 0!==lh&&(O(ec,7,$hb[lh]),ad++);var Ae=[ad===
Object.keys($c).length,ec]}catch(Na){Y(Na),Ae=[!1,void 0]}var cf=Ae;cf[0]&&(Jj(r,Gma,6,cf[1]),t++)}var bd=q.mdxReceiverConnectionContext;if(bd){var fe=new sma,vc=0;try{var Kg=bd.isFromAppLaunch;void 0!==Kg&&(Vj(fe,1,Kg),vc++);var mh=bd.dialServerType;void 0!==mh&&(O(fe,2,Whb[mh]),vc++);var nh=bd.supportsSmoothPairing;void 0!==nh&&(Vj(fe,3,nh),vc++);var oh=bd.hasManuallyPairedRemotesOnAppStartup;void 0!==oh&&(Vj(fe,4,oh),vc++);var Be=bd.mismatchedTheme;void 0!==Be&&(O(fe,5,Qgb[Be]),vc++);var wc=bd.mdxSenderConnectedCounter;
void 0!==wc&&(Wj(fe,6,wc),vc++);var Lf=bd.externalRouteSource;void 0!==Lf&&(O(fe,7,Vhb[Lf]),vc++);var Yh=bd.appReloadCount;void 0!==Yh&&(Wj(fe,8,Yh),vc++);var Zh=[vc===Object.keys(bd).length,fe]}catch(Na){Y(Na),Zh=[!1,void 0]}var Ii=Zh;Ii[0]&&(Jj(r,sma,7,Ii[1]),t++)}var df=q.parentToolsOnboardingContext;if(df){var hg=new Bma,Pe=0;try{var ig=df.triggerPoint;void 0!==ig&&(O(hg,1,fhb[ig]),Pe++);var vf=df.kidsFlowInfo;if(vf){var Dc=new Ama,rc=0;try{var Zb=vf.kidsFlowVersion;void 0!==Zb&&(O(Dc,1,chb[Zb]),
rc++);var Lg=vf.flowLabel;void 0!==Lg&&(N(Dc,2,Lg),rc++);var ef=vf.hostClientName;void 0!==ef&&(O(Dc,3,dhb[ef]),rc++);var Mf=vf.hostClientVersion;void 0!==Mf&&(N(Dc,4,Mf),rc++);var Nf=vf.kidsFlowType;void 0!==Nf&&(O(Dc,5,bhb[Nf]),rc++);var Ji=[rc===Object.keys(vf).length,Dc]}catch(Na){Y(Na),Ji=[!1,void 0]}var qj=Ji;qj[0]&&(Jj(hg,Ama,2,qj[1]),Pe++)}var jg=df.kidsCorpusPreferenceNew;void 0!==jg&&(O(hg,3,ahb[jg]),Pe++);var ph=df.appChoice;void 0!==ph&&(O(hg,4,ehb[ph]),Pe++);var $h=df.isKidSignedIn;void 0!==
$h&&(Vj(hg,5,$h),Pe++);var ai=df.alreadyOnboardedYtk;void 0!==ai&&(Vj(hg,6,ai),Pe++);var kg=df.alreadyOnboardedSupex;void 0!==kg&&(Vj(hg,7,kg),Pe++);var ff=[Pe===Object.keys(df).length,hg]}catch(Na){Y(Na),ff=[!1,void 0]}var Mg=ff;Mg[0]&&(Jj(r,Bma,8,Mg[1]),t++)}var Of=q.hashtagAutoCompleteContext;if(Of){var Ki=new KA,lg=0;try{var Ng=Of.suggestionSelected;void 0!==Ng&&(Wj(Ki,1,Ng),lg++);var qh=[lg===Object.keys(Of).length,Ki]}catch(Na){Y(Na),qh=[!1,void 0]}var Og=qh;Og[0]&&(Jj(r,KA,9,Og[1]),t++)}var Ce=
q.liveStreamingContext;if(Ce){var De=new qma,Qe=0;try{var qe=Ce.broadcastSource;void 0!==qe&&(O(De,1,lhb[qe]),Qe++);var bk=Ce.isAutoDashboard;void 0!==bk&&(Vj(De,2,bk),Qe++);var Re=Ce.externalVideoId;void 0!==Re&&(N(De,3,Re),Qe++);var wf=Ce.broadcastConferenceType;void 0!==wf&&(O(De,4,jhb[wf]),Qe++);var Xd=Ce.eventData;if(Xd){var rh=new pma,Pg=0;try{var Pf=Xd.webrtcHandshakeOffer;if(Pf){var Qg=new oma,mg=0;try{var bi=Pf.localVideoSsrc;void 0!==bi&&(Xj(Qg,1,bi),mg++);var Li=Pf.localAudioSsrc;void 0!==
Li&&(Xj(Qg,2,Li),mg++);var Mi=Pf.participantId;void 0!==Mi&&(Zj(Qg,3,Mi),mg++);var Pl=[mg===Object.keys(Pf).length,Qg]}catch(Na){Y(Na),Pl=[!1,void 0]}var rj=Pl;rj[0]&&(Jj(rh,oma,1,rj[1]),Pg++)}var ck=Xd.webrtcHandshakeAnswer;if(ck){var ng=new mma,ge=0;try{var re=ck.remoteVideoSsrc;void 0!==re&&(Xj(ng,1,re),ge++);var Se=ck.remoteAudioSsrc;void 0!==Se&&(Xj(ng,2,Se),ge++);var sj=[ge===Object.keys(ck).length,ng]}catch(Na){Y(Na),sj=[!1,void 0]}var Ql=sj;Ql[0]&&(Jj(rh,mma,2,Ql[1]),Pg++)}var dk=Xd.webrtcHandshakeError;
if(dk){var sh=new nma,ek=0;try{var Yk=dk.description;void 0!==Yk&&(N(sh,1,Yk),ek++);var ci=[ek===Object.keys(dk).length,sh]}catch(Na){Y(Na),ci=[!1,void 0]}var di=ci;di[0]&&(Jj(rh,nma,3,di[1]),Pg++)}var ei=Xd.costreamStartNotification;if(ei){var Rl=new NA,Sl=0;try{var Ni=ei.broadcastStartTimeMs;void 0!==Ni&&(Yj(Rl,1,Ni),Sl++);var fi=[Sl===Object.keys(ei).length,Rl]}catch(Na){Y(Na),fi=[!1,void 0]}var he=fi;he[0]&&(Jj(rh,NA,4,he[1]),Pg++)}var og=Xd.remoteParticipant;if(og){var Rg=new lma,Oi=0;try{var xf=
og.videoSsrc;void 0!==xf&&(Xj(Rg,1,xf),Oi++);var fk=og.audioSsrc;void 0!==fk&&(Xj(Rg,2,fk),Oi++);var Zk=[Oi===Object.keys(og).length,Rg]}catch(Na){Y(Na),Zk=[!1,void 0]}var tj=Zk;tj[0]&&(Jj(rh,lma,5,tj[1]),Pg++)}var gf=Xd.webcamEventData;if(gf){var hf=new OA,Qf=0;try{var Pi=gf.videoFrameRate;void 0!==Pi&&(ak(hf,1,Pi),Qf++);var uj=gf.videoAspectRatio;void 0!==uj&&(ak(hf,2,uj),Qf++);var Tl=gf.videoHeight;void 0!==Tl&&(Xj(hf,3,Tl),Qf++);var gk=gf.videoWidth;void 0!==gk&&(Xj(hf,4,gk),Qf++);var nc=gf.videoCaptureCursor;
void 0!==nc&&(N(hf,5,nc),Qf++);var As=gf.videoCaptureSurface;void 0!==As&&(N(hf,6,As),Qf++);var Wp=gf.videoCaptureAudioEnabled;void 0!==Wp&&(Vj(hf,7,Wp),Qf++);var yo=[Qf===Object.keys(gf).length,hf]}catch(Na){Y(Na),yo=[!1,void 0]}var Xp=yo;Xp[0]&&(Jj(rh,OA,6,Xp[1]),Pg++)}var hk=Xd.errorEventData;if(hk){var ik=new kma,Ul=0;try{var Qi=hk.liveClientErrorType;void 0!==Qi&&(O(ik,1,hhb[Qi]),Ul++);var $k=hk.liveServerErrorType;void 0!==$k&&(O(ik,2,ihb[$k]),Ul++);var jk=hk.kioskClientApiErrorType;void 0!==
jk&&(O(ik,3,ghb[jk]),Ul++);var Yp=[Ul===Object.keys(hk).length,ik]}catch(Na){Y(Na),Yp=[!1,void 0]}var Zp=Yp;Zp[0]&&(Jj(rh,kma,7,Zp[1]),Pg++)}var kk=[Pg===Object.keys(Xd).length,rh]}catch(Na){Y(Na),kk=[!1,void 0]}var $p=kk;$p[0]&&(Jj(De,pma,5,$p[1]),Qe++)}var aq=Ce.isMonetizationOn;void 0!==aq&&(Vj(De,6,aq),Qe++);var bq=Ce.sharedmdeEnabled;void 0!==bq&&(Vj(De,7,bq),Qe++);var Rf=Ce.isScreencast;void 0!==Rf&&(Vj(De,8,Rf),Qe++);var yf=Ce.broadcastLifecycleStatus;void 0!==yf&&(O(De,9,khb[yf]),Qe++);var vj=
Ce.hasCreatedMobileLivestream;void 0!==vj&&(Vj(De,10,vj),Qe++);var Vl=[Qe===Object.keys(Ce).length,De]}catch(Na){Y(Na),Vl=[!1,void 0]}var cq=Vl;cq[0]&&(Jj(r,qma,10,cq[1]),t++)}var gi=q.touAppealContext;if(gi){var hi=new aB,th=0;try{var dq=gi.scope;void 0!==dq&&(N(hi,1,dq),th++);var zo=gi.videoId;if(zo){var uh=new $A,vh=0;try{var ii=zo.externalVideoId;void 0!==ii&&(N(uh,1,ii),vh++);var $m=[vh===Object.keys(zo).length,uh]}catch(Na){Y(Na),$m=[!1,void 0]}var eq=$m;eq[0]&&(hi.setVideoId(eq[1]),th++)}var Wl=
gi.videoThumbnailId;if(Wl){var an=new Oma,bn=0;try{var al=Wl.externalVideoId;void 0!==al&&(N(an,1,al),bn++);var Xl=Wl.thumbnailVersion;void 0!==Xl&&(Zj(an,3,Xl),bn++);var Yl=Wl.checksum;void 0!==Yl&&(Zj(an,4,Yl),bn++);var fq=[bn===Object.keys(Wl).length,an]}catch(Na){Y(Na),fq=[!1,void 0]}var gq=fq;gq[0]&&(Kj(hi,Oma,3,T2,gq[1]),th++)}var Qc=gi.playlistId;if(Qc){var ji=new XA,Ao=0;try{var lk=Qc.externalPlaylistId;void 0!==lk&&(N(ji,1,lk),Ao++);var ki=[Ao===Object.keys(Qc).length,ji]}catch(Na){Y(Na),
ki=[!1,void 0]}var Ri=ki;Ri[0]&&(Kj(hi,XA,4,T2,Ri[1]),th++)}var cn=gi.urlHostname;void 0!==cn&&(Ej(hi,5,T2,zi(cn)),th++);var Bo=gi.encodedTouViolativeContentId;void 0!==Bo&&(N(hi,6,Bo),th++);var hq=gi.encodedChannelTouViolativeContentId;void 0!==hq&&(N(hi,7,hq),th++);var zf=gi.trainingData;if(zf){var pg=new ZA,wh=0;try{var Zl=zf.question;if(Zl){var dn=new Nma,Co=0;try{var iq=Zl.questionId;void 0!==iq&&(Wj(dn,1,iq),Co++);var Do=Zl.supplementaryInfoId;void 0!==Do&&(Wj(dn,2,Do),Co++);var jq=[Co===Object.keys(Zl).length,
dn]}catch(Na){Y(Na),jq=[!1,void 0]}var bl=jq;bl[0]&&(Jj(pg,Nma,1,bl[1]),wh++)}var en=zf.answers;en&&(jP(pg.j.bind(pg),en,mKa),wh++);var Eo=zf.correctAnswers;Eo&&(jP(pg.B.bind(pg),Eo,mKa),wh++);var kq=zf.strikeId;void 0!==kq&&(N(pg,4,kq),wh++);var cl=zf.preTrainingMaterialId;void 0!==cl&&(Wj(pg,5,cl),wh++);var lq=[wh===Object.keys(zf).length,pg]}catch(Na){Y(Na),lq=[!1,void 0]}var Fo=lq;Fo[0]&&(Jj(hi,ZA,8,Fo[1]),th++)}var mq=[th===Object.keys(gi).length,hi]}catch(Na){Y(Na),mq=[!1,void 0]}var Go=mq;
Go[0]&&(Jj(r,aB,11,Go[1]),t++)}var $l=q.dragAndDropContext;if($l){var mk=new IA,am=0;try{var nq=$l.rootVe;if(nq){var Ho=lP(nq);Ho[0]&&(Jj(mk,HA,1,Ho[1]),am++)}var Io=$l.ve;if(Io){var oq=lP(Io);oq[0]&&(Jj(mk,HA,2,oq[1]),am++)}var wj=[am===Object.keys($l).length,mk]}catch(Na){Y(Na),wj=[!1,void 0]}var dl=wj;dl[0]&&(Jj(r,IA,12,dl[1]),t++)}var li=q.socialSuggestionsContext;if(li){var qg=new WA,bm=0;try{var Jo=li.socialSuggestionsType;void 0!==Jo&&(O(qg,1,bib[Jo]),bm++);var mi=li.suggestionSelected;void 0!==
mi&&(Wj(qg,2,mi),bm++);var pq=li.source;void 0!==pq&&(O(qg,3,cib[pq]),bm++);var Ko=[bm===Object.keys(li).length,qg]}catch(Na){Y(Na),Ko=[!1,void 0]}var qq=Ko;qq[0]&&(Jj(r,WA,13,qq[1]),t++)}var fn=q.featureEnablementContext;if(fn){var Sf=new JA,Tf=0;try{var Si=fn.feature;void 0!==Si&&(O(Sf,1,GHa[Si]),Tf++);var xh=[Tf===Object.keys(fn).length,Sf]}catch(Na){Y(Na),xh=[!1,void 0]}var cm=xh;cm[0]&&(Jj(r,JA,14,cm[1]),t++)}var Ti=q.iapContext;if(Ti){var yh=new MA,xj=0;try{var el=Ti.playIapProduct;if(el){var dm=
new LA,em=0;try{var gn=el.packageId;void 0!==gn&&(N(dm,1,gn),em++);var rq=el.productId;void 0!==rq&&(N(dm,2,rq),em++);var sq=[em===Object.keys(el).length,dm]}catch(Na){Y(Na),sq=[!1,void 0]}var fm=sq;fm[0]&&(Kj(yh,LA,1,Khb,fm[1]),xj++)}var hn=Ti.source;void 0!==hn&&(O(yh,2,Phb[hn]),xj++);var jn=Ti.attributionId;void 0!==jn&&(Yj(yh,3,jn),xj++);var Bs=Ti.externalVideoId;void 0!==Bs&&(N(yh,4,Bs),xj++);var Lo=Ti.externalChannelId;void 0!==Lo&&(N(yh,5,Lo),xj++);var tq=[xj===Object.keys(Ti).length,yh]}catch(Na){Y(Na),
tq=[!1,void 0]}var gm=tq;gm[0]&&(Jj(r,MA,15,gm[1]),t++)}var nk=q.shoppingCheckoutContext;if(nk){var kn=new Lma,Mo=0;try{var Ee=nk.shoppingFlowParams;if(Ee){var Te=pKa(Ee);Te[0]&&(Jj(kn,UA,1,Te[1]),Mo++)}var Ue=nk.shoppingCheckoutErrorReason;void 0!==Ue&&(O(kn,2,aib[Ue]),Mo++);var ln=[Mo===Object.keys(nk).length,kn]}catch(Na){Y(Na),ln=[!1,void 0]}var uq=ln;uq[0]&&(Jj(r,Lma,16,uq[1]),t++)}var mn=q.ypcCancellationContext;if(mn){var No=new Sma,Oo=0;try{var vq=mn.itemType;void 0!==vq&&(O(No,1,yP[vq]),
Oo++);var Po=mn.productType;void 0!==Po&&(O(No,2,zP[Po]),Oo++);var wq=[Oo===Object.keys(mn).length,No]}catch(Na){Y(Na),wq=[!1,void 0]}var xq=wq;xq[0]&&(Jj(r,Sma,17,xq[1]),t++)}var hm=q.ypcBrowseOffersContext;if(hm){var nn=new Rma,on=0;try{var Qo=hm.commerceFlowLoggingParams;if(Qo){var yq=uKa(Qo);yq[0]&&(Jj(nn,cB,1,yq[1]),on++)}var zq=hm.offerType;void 0!==zq&&(O(nn,2,Vgb[zq]),on++);var Aq=hm.entityType;void 0!==Aq&&(O(nn,3,Ghb[Aq]),on++);var Bq=[on===Object.keys(hm).length,nn]}catch(Na){Y(Na),Bq=
[!1,void 0]}var Cq=Bq;Cq[0]&&(Jj(r,Rma,18,Cq[1]),t++)}var ok=q.mdxStreamTransferContext;if(ok){var im=new tma,pn=0;try{var Dq=ok.completedReason;void 0!==Dq&&(O(im,1,Yhb[Dq]),pn++);var qn=[pn===Object.keys(ok).length,im]}catch(Na){Y(Na),qn=[!1,void 0]}var Ui=qn;Ui[0]&&(Jj(r,tma,19,Ui[1]),t++)}var Vi=q.pdgBuyFlowContext;if(Vi){var Sg=new Ema,yj=0;try{var fl=Vi.productType;void 0!==fl&&(O(Sg,1,zP[fl]),yj++);var pk=Vi.entryPointClickedContext;if(pk){var jm=new Cma,gl=0;try{var Eq=pk.superVodBuyFlowEntryPoint;
void 0!==Eq&&(zk(jm,1,S2,tib[Eq]),gl++);var Fq=pk.superChatBuyFlowEntryPoint;void 0!==Fq&&(zk(jm,2,S2,rib[Fq]),gl++);var Gq=pk.sharedPdgBuyFlowEntryPoint;void 0!==Gq&&(zk(jm,3,S2,qib[Gq]),gl++);var Hq=pk.superStickerBuyFlowEntryPoint;void 0!==Hq&&(zk(jm,4,S2,sib[Hq]),gl++);var Ro=[gl===Object.keys(pk).length,jm]}catch(Na){Y(Na),Ro=[!1,void 0]}var Iq=Ro;Iq[0]&&(Jj(Sg,Cma,2,Iq[1]),yj++)}var Fe=Vi.itemSelectionPageDisplayedContext;if(Fe){var Ge=new Dma,Af=0;try{var Jq=Fe.superStickerBuyFlowType;void 0!==
Jq&&(O(Ge,1,uib[Jq]),Af++);var Kq=[Af===Object.keys(Fe).length,Ge]}catch(Na){Y(Na),Kq=[!1,void 0]}var qk=Kq;qk[0]&&(Jj(Sg,Dma,3,qk[1]),yj++)}var km=[yj===Object.keys(Vi).length,Sg]}catch(Na){Y(Na),km=[!1,void 0]}var hl=km;hl[0]&&(Jj(r,Ema,20,hl[1]),t++)}var il=q.ypcPurchaseContext;if(il){var jl=new Wma,lm=0;try{var Lq=il.commerceFlowLoggingParams;if(Lq){var Mq=uKa(Lq);Mq[0]&&(Jj(jl,cB,1,Mq[1]),lm++)}var Nq=il.offerType;void 0!==Nq&&(O(jl,2,Vgb[Nq]),lm++);var Oq=il.transactionType;void 0!==Oq&&(O(jl,
3,gib[Oq]),lm++);var So=il.paymentProcessor;void 0!==So&&(O(jl,4,Wgb[So]),lm++);var mm=[lm===Object.keys(il).length,jl]}catch(Na){Y(Na),mm=[!1,void 0]}var Pq=mm;Pq[0]&&(Jj(r,Wma,21,Pq[1]),t++)}var zh=q.webViewContext;if(zh){var rk=new Pma,kl=0;try{var Cs=zh.hostname;void 0!==Cs&&(N(rk,1,Cs),kl++);var nm=zh.webViewUseCase;void 0!==nm&&(O(rk,2,Fib[nm]),kl++);var sk=zh.isFirstPartyHost;void 0!==sk&&(Vj(rk,5,sk),kl++);var Ds=zh.isLoaded;void 0!==Ds&&(Vj(rk,3,Ds),kl++);var Ve=zh.webViewEngagementSec;void 0!==
Ve&&(Wj(rk,4,Ve),kl++);var ni=[kl===Object.keys(zh).length,rk]}catch(Na){Y(Na),ni=[!1,void 0]}var Ah=ni;Ah[0]&&(Jj(r,Pma,22,Ah[1]),t++)}var Bh=q.videoSuggestionsContext;if(Bh){var rn=new bB,Wi=0;try{var Qq=Bh.type;void 0!==Qq&&(O(rn,1,Rgb[Qq]),Wi++);var Es=Bh.serializedSuggestionData;void 0!==Es&&(yk(rn,2,Es),Wi++);var Fs=Bh.videoId;void 0!==Fs&&(rn.setVideoId(Fs),Wi++);var Rq=[Wi===Object.keys(Bh).length,rn]}catch(Na){Y(Na),Rq=[!1,void 0]}var ll=Rq;ll[0]&&(Jj(r,bB,23,ll[1]),t++)}var om=q.actionSheetContext;
if(om){var pm=new FA,qm=0;try{var ml=om.parentScreenUiType;void 0!==ml&&(Wj(pm,1,ml),qm++);var Sq=[qm===Object.keys(om).length,pm]}catch(Na){Y(Na),Sq=[!1,void 0]}var To=Sq;To[0]&&(Jj(r,FA,24,To[1]),t++)}var tk=q.producerExportContext;if(tk){var Uo=new Jma,Xi=0;try{var zj=tk.exportDetails;if(zj){var nl=new Ima,Vo=0;try{var ol=zj.project;if(ol){var rm=new TA,sm=0;try{var tm=ol.projectId;void 0!==tm&&(xk(rm,1,tm),sm++);var Yi=ol.durationMs;void 0!==Yi&&(pj(rm,2,null==Yi?Yi:Sda(Yi),"0"),sm++);var Gs=
[sm===Object.keys(ol).length,rm]}catch(Na){Y(Na),Gs=[!1,void 0]}var um=Gs;um[0]&&(Jj(nl,TA,1,um[1]),Vo++)}var uk=zj.renderDetails;if(uk){var vk=new Hma,pl=0;try{var Tq=uk.sizeBytes;void 0!==Tq&&(pj(vk,1,ui(Tq),"0"),pl++);var Hs=uk.pixelWidth;void 0!==Hs&&(pj(vk,2,pi(Hs),0),pl++);var Is=uk.pixelHeight;void 0!==Is&&(pj(vk,3,pi(Is),0),pl++);var Uq=[pl===Object.keys(uk).length,vk]}catch(Na){Y(Na),Uq=[!1,void 0]}var Wo=Uq;Wo[0]&&(Jj(nl,Hma,2,Wo[1]),Vo++)}var Xo=[Vo===Object.keys(zj).length,nl]}catch(Na){Y(Na),
Xo=[!1,void 0]}var Yo=Xo;Yo[0]&&(Jj(Uo,Ima,1,Yo[1]),Xi++)}var Vq=[Xi===Object.keys(tk).length,Uo]}catch(Na){Y(Na),Vq=[!1,void 0]}var Wq=Vq;Wq[0]&&(Jj(r,Jma,25,Wq[1]),t++)}var Aj=q.downloadMyVideoContext;if(Aj){var wk=new GA,Tg=0;try{var Xq=Aj.videoId;void 0!==Xq&&(wk.setVideoId(Xq),Tg++);var Yq=Aj.videoSid;void 0!==Yq&&(Yj(wk,2,Yq),Tg++);var Zq=Aj.downloadError;void 0!==Zq&&(O(wk,3,Mhb[Zq]),Tg++);var Oa=Aj.totalAssetSize;void 0!==Oa&&(Yj(wk,4,Oa),Tg++);var HM=Aj.totalDownloadedPercent;void 0!==HM&&
(Xj(wk,5,HM),Tg++);var IM=Aj.mddDownloadErrorCode;void 0!==IM&&(Xj(wk,6,IM),Tg++);var JM=[Tg===Object.keys(Aj).length,wk]}catch(Na){Y(Na),JM=[!1,void 0]}var KM=JM;KM[0]&&(Jj(r,GA,26,KM[1]),t++)}var mx=q.miniAppContext;if(mx){var AA=new uma,BA=0;try{var LM=mx.externalPostId;void 0!==LM&&(N(AA,1,LM),BA++);var MM=mx.miniAppReleaseId;void 0!==MM&&(Wj(AA,3,MM),BA++);var NM=mx.postPlayNonce;void 0!==NM&&(N(AA,4,NM),BA++);var CA=[BA===Object.keys(mx).length,AA]}catch(Na){Y(Na),CA=[!1,void 0]}var rF=CA;rF[0]&&
(Jj(r,uma,27,rF[1]),t++)}var DA=q.shoppingCartContext;if(DA){var OM=new Kma,PM=0;try{var QM=DA.shoppingFlowParams;if(QM){var RM=pKa(QM);RM[0]&&(Jj(OM,UA,1,RM[1]),PM++)}var SM=[PM===Object.keys(DA).length,OM]}catch(Na){Y(Na),SM=[!1,void 0]}var TM=SM;TM[0]&&(Jj(r,Kma,28,TM[1]),t++)}var sF=q.sponsorshipsPurchaseContext;if(sF){var UM=new Mma,VM=0;try{var WM=sF.joinMethod;void 0!==WM&&(O(UM,1,Xgb[WM]),VM++);var XM=[VM===Object.keys(sF).length,UM]}catch(Na){Y(Na),XM=[!1,void 0]}var rb=XM;rb[0]&&(Jj(r,Mma,
29,rb[1]),t++)}var d2=q.ypcCujContext;if(d2){var doa=new Vma,eoa=0;try{var xYa=d2.serializedYpcCujLoggingParams;void 0!==xYa&&(yk(doa,1,xYa),eoa++);var foa=d2.ypcCujLoggingClientPayload;if(foa){var yYa=new Uma,zYa=0;try{var goa=foa.ypcAcquisitionCujLoggingClientPayload;if(goa){var AYa=new Tma,BYa=0;try{var e2=goa.ypcAcquisitionDebugLoggingParams;if(e2){var hoa=new dB,ioa=0;try{var CYa=e2.transactionErrorType;void 0!==CYa&&(O(hoa,1,fib[CYa]),ioa++);var DYa=e2.errorMessage;void 0!==DYa&&(N(hoa,2,DYa),
ioa++);var EYa=[ioa===Object.keys(e2).length,hoa]}catch(Na){Y(Na),EYa=[!1,void 0]}var FYa=EYa;FYa[0]&&(Jj(AYa,dB,1,FYa[1]),BYa++)}var GYa=[BYa===Object.keys(goa).length,AYa]}catch(Na){Y(Na),GYa=[!1,void 0]}var HYa=GYa;HYa[0]&&(Kj(yYa,Tma,1,Lhb,HYa[1]),zYa++)}var IYa=[zYa===Object.keys(foa).length,yYa]}catch(Na){Y(Na),IYa=[!1,void 0]}var JYa=IYa;JYa[0]&&(Jj(doa,Uma,2,JYa[1]),eoa++)}var KYa=[eoa===Object.keys(d2).length,doa]}catch(Na){Y(Na),KYa=[!1,void 0]}var LYa=KYa;LYa[0]&&(Jj(r,Vma,30,LYa[1]),t++)}var MYa=
[t===Object.keys(q).length,r]}catch(Na){Y(Na),MYa=[!1,void 0]}var NYa=MYa;NYa[0]&&(Jj(b,Xma,3,NYa[1]),c++)}var OYa=a.flowType;void 0!==OYa&&(O(b,4,Ohb[OYa]),c++);var PYa=a.flowEventStatus;void 0!==PYa&&(Wj(b,5,PYa),c++);var QYa=a.csn;void 0!==QYa&&(N(b,6,QYa),c++);var RYa=a.can;void 0!==RYa&&(N(b,7,RYa),c++);var joa=a.cuiAssociations;if(joa){var koa=new fy,SYa=0;try{var TYa=joa.association;TYa&&(jP(koa.j.bind(koa),TYa,iKa),SYa++);var UYa=[SYa===Object.keys(joa).length,koa]}catch(Na){Y(Na),UYa=[!1,
void 0]}var VYa=UYa;VYa[0]&&(Jj(b,fy,8,VYa[1]),c++)}return[c===Object.keys(a).length,b]}catch(Na){return Y(Na),[!1,void 0]}},
idbQuotaExceeded:function(a){var b=new cna,c=0;try{var d=a.deviceStorageUsageMbytes;void 0!==d&&(Yj(b,1,d),c++);var e=a.deviceStorageQuotaMbytes;void 0!==e&&(Yj(b,2,e),c++);var f=a.isIframe;void 0!==f&&(Vj(b,3,f),c++);var h=a.isSw;void 0!==h&&(Vj(b,4,h),c++);var l=a.dbName;void 0!==l&&(N(b,5,l),c++);var m=a.objectStoreNames;void 0!==m&&(N(b,6,m),c++);var n=a.transactionCount;void 0!==n&&(Wj(b,7,n),c++);var p=a.transactionMode;void 0!==p&&(N(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Y(q),
[!1,void 0]}},
idbTransactionAborted:function(a){var b=new dna,c=0;try{var d=a.objectStoreNames;void 0!==d&&(N(b,1,d),c++);var e=a.hasWindowUnloaded;void 0!==e&&(Vj(b,2,e),c++);var f=a.transactionCount;void 0!==f&&(Wj(b,3,f),c++);var h=a.transactionDuration;void 0!==h&&(Wj(b,4,h),c++);var l=a.dbDuration;void 0!==l&&(Wj(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}},
streamzIncremented:function(a){var b=new yna,c=0;try{var d=a.serializedIncrementBatch;void 0!==d&&(yk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
sliEventBatch:function(a){var b=new uA,c=0;try{var d=a.loggedEvents;d&&(jP(b.j.bind(b),d,YKa),c++);var e=a.unloggedEvents;e&&(jP(b.B.bind(b),e,YKa),c++);var f=a.playerClientVersion;void 0!==f&&(Zj(b,3,f),c++);var h=a.playerCanaryState;void 0!==h&&(O(b,4,Fhb[h]),c++);var l=a.dimensions;if(l){var m=new tA;d=0;try{var n=l.playerClientVersion;void 0!==n&&(Zj(m,1,n),d++);var p=l.playerCanaryState;void 0!==p&&(O(m,2,Fhb[p]),d++);var q=[d===Object.keys(l).length,m]}catch(r){Y(r),q=[!1,void 0]}l=q;l[0]&&
(Jj(b,tA,5,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(r){return Y(r),[!1,void 0]}},
playbackAssociated:function(a){var b=new hB,c=0;try{var d=a.cpn;void 0!==d&&(N(b,1,d),c++);var e=a.playbackVe;if(e){var f=lP(e);f[0]&&(Jj(b,HA,2,f[1]),c++)}var h=a.csn;void 0!==h&&(N(b,3,h),c++);var l=a.queueInfo;if(l){var m=new gB;d=0;try{var n=l.enqueueingVe;if(n){var p=lP(n);p[0]&&(Jj(m,HA,1,p[1]),d++)}var q=l.enqueueingCsn;void 0!==q&&(N(m,2,q),d++);var r=l.clientEnqueueingTimeMs;void 0!==r&&(Yj(m,3,r),d++);var t=[d===Object.keys(l).length,m]}catch(v){Y(v),t=[!1,void 0]}l=t;l[0]&&(Jj(b,gB,4,l[1]),
c++)}return[c===Object.keys(a).length,b]}catch(v){return Y(v),[!1,void 0]}},
autoplayTriggered:function(a){var b=new wA,c=0;try{var d=a.intentional;void 0!==d&&(Vj(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
webPlayerApiCalled:function(a){var b=new DB,c=0;try{var d=a.callerUrl;void 0!==d&&(N(b,1,d),c++);var e=a.methodName;void 0!==e&&(N(b,2,e),c++);var f=a.origin;void 0!==f&&(N(b,3,f),c++);var h=a.playerStyle;void 0!==h&&(N(b,4,h),c++);var l=a.embeddedPlayerMode;void 0!==l&&(O(b,5,Ygb[l]),c++);var m=a.errorCode;void 0!==m&&(Wj(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}},
embedsAdEvent:function(a){var b=new vA,c=0;try{var d=a.eventType;void 0!==d&&(O(b,1,Ihb[d]),c++);var e=a.breakType;void 0!==e&&(O(b,2,Hhb[e]),c++);var f=a.packageName;void 0!==f&&(N(b,3,f),c++);var h=a.embedUrl;void 0!==h&&(N(b,4,h),c++);var l=a.adSource;void 0!==l&&(O(b,5,Jhb[l]),c++);var m=a.youtubeHost;void 0!==m&&(N(b,6,m),c++);var n=a.embeddedPlayerMode;void 0!==n&&(O(b,7,Ygb[n]),c++);return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}},
embedsShouldRequestStorageAccessResult:function(a){var b=new zA,c=0;try{var d=a.result;void 0!==d&&(Vj(b,1,d),c++);var e=a.returnsUndefined;void 0!==e&&(Vj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
embedsRequestStorageAccessState:function(a){var b=new yA,c=0;try{var d=a.isCued;void 0!==d&&(Vj(b,1,d),c++);var e=a.isAutoplayBlocked;void 0!==e&&(Vj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
embedsRequestStorageAccessFailedState:function(a){var b=new xA,c=0;try{var d=a.state;void 0!==d&&(b.Dc(d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
heartbeatActionPlayerHalted:function(a){var b=new ana,c=0;try{var d=a.serializedServerContext;void 0!==d&&(yk(b,1,d),c++);var e=a.enforcedPolicyToHaltOnNetworkFailure;void 0!==e&&(Vj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
heartbeatActionPlayerTransitioned:function(a){var b=new bna,c=0;try{var d=a.reason;void 0!==d&&(O(b,1,Qhb[d]),c++);var e=a.trigger;void 0!==e&&(O(b,2,Rhb[e]),c++);var f=a.serializedServerContext;void 0!==f&&(yk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}},
embedsItpWatchLaterResult:function(a){var b=new EA,c=0;try{var d=a.accepted;void 0!==d&&(Vj(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
html5PlayerHealthEvent:function(a){var b=new eB,c=0;try{var d=a.started;void 0!==d&&(Vj(b,1,d),c++);var e=a.stateAtSend;void 0!==e&&(O(b,2,eib[e]),c++);var f=a.joinLatencySecs;void 0!==f&&(ak(b,4,f),c++);var h=a.playTimeSecs;void 0!==h&&(ak(b,5,h),c++);var l=a.rebufferTimeSecs;void 0!==l&&(ak(b,6,l),c++);var m=a.playerCanaryType;void 0!==m&&(O(b,7,Thb[m]),c++);var n=a.isAd;void 0!==n&&(Vj(b,8,n),c++);var p=a.liveMode;void 0!==p&&(O(b,9,dib[p]),c++);var q=a.isGapless;void 0!==q&&(Vj(b,10,q),c++);var r=
a.hasDrm;void 0!==r&&(Vj(b,11,r),c++);var t=a.seekCount;void 0!==t&&(Wj(b,12,t),c++);var v=a.networkErrorCount;void 0!==v&&(Wj(b,13,v),c++);var x=a.nonNetworkErrorCount;void 0!==x&&(Wj(b,14,x),c++);var B=a.isServerStitchedDai;void 0!==B&&(Vj(b,15,B),c++);var F=a.playerCanaryStage;void 0!==F&&(O(b,16,Shb[F]),c++);return[c===Object.keys(a).length,b]}catch(G){return Y(G),[!1,void 0]}},
adsClientStateChange:function(a){var b=new Ty,c=0;try{var d=a.cuepointTrigger;if(d){var e=new Gy,f=0;try{var h=d.type;void 0!==h&&(O(e,1,shb[h]),f++);var l=d.event;void 0!==l&&(O(e,2,rhb[l]),f++);var m=d.cuepointId;void 0!==m&&(N(e,3,m),f++);var n=d.totalCueDurationMs;void 0!==n&&(ak(e,4,n),f++);var p=d.playheadTimeMs;void 0!==p&&(ak(e,5,p),f++);var q=d.cueStartTimeMs;void 0!==q&&(ak(e,6,q),f++);var r=d.cuepointReceivedTimeMs;void 0!==r&&(ak(e,7,r),f++);var t=d.contentCpn;void 0!==t&&(N(e,8,t),f++);
var v=d.externalChannelId;void 0!==v&&(N(e,9,v),f++);var x=[f===Object.keys(d).length,e]}catch(nc){Y(nc),x=[!1,void 0]}var B=x;B[0]&&(Kj(b,Gy,1,R2,B[1]),c++)}var F=a.daiStateTrigger;if(F){var G=new Ly,I=0;try{var L=F.contentCpn;void 0!==L&&(N(G,1,L),I++);var P=F.totalCueDurationMs;void 0!==P&&(ak(G,2,P),I++);var V=F.filledAdsDurationMs;void 0!==V&&(ak(G,3,V),I++);var ka=F.cueStartChange;void 0!==ka&&(O(G,4,yhb[ka]),I++);var sa=F.cueDurationChange;void 0!==sa&&(O(G,5,whb[sa]),I++);var ta=F.cueDurationChangeReason;
void 0!==ta&&(O(G,6,xhb[ta]),I++);var la=F.errorType;void 0!==la&&(O(G,7,zhb[la]),I++);var qa=F.externalChannelId;void 0!==qa&&(N(G,8,qa),I++);var ba=F.adClientData;if(ba){var T=cKa(ba);T[0]&&(Jj(G,zy,9,T[1]),I++)}var Ma=[I===Object.keys(F).length,G]}catch(nc){Y(nc),Ma=[!1,void 0]}var y=Ma;y[0]&&(Kj(b,Ly,2,R2,y[1]),c++)}var Z=a.daiAdBreakCriticalError;if(Z){var Ua=new Hy,Za=0;try{var bb=Z.contentCpn;void 0!==bb&&(N(Ua,1,bb),Za++);var Xa=Z.errorType;void 0!==Xa&&(O(Ua,2,zhb[Xa]),Za++);var Va=Z.externalChannelId;
void 0!==Va&&(N(Ua,3,Va),Za++);var lb=Z.msg;void 0!==lb&&(N(Ua,4,lb),Za++);var Ab=Z.cueIdentifier;void 0!==Ab&&(N(Ua,5,Ab),Za++);var ob=[Za===Object.keys(Z).length,Ua]}catch(nc){Y(nc),ob=[!1,void 0]}var A=ob;A[0]&&(Kj(b,Hy,3,R2,A[1]),c++)}var D=a.daiAdBreakWarning;if(D){var E=new Jy,C=0;try{var K=D.contentCpn;void 0!==K&&(N(E,1,K),C++);var X=D.errorType;void 0!==X&&(O(E,2,zhb[X]),C++);var ma=D.externalChannelId;void 0!==ma&&(N(E,3,ma),C++);var fa=D.msg;void 0!==fa&&(N(E,4,fa),C++);var S=D.cueIdentifier;
void 0!==S&&(N(E,5,S),C++);var na=[C===Object.keys(D).length,E]}catch(nc){Y(nc),na=[!1,void 0]}var Ea=na;Ea[0]&&(Kj(b,Jy,4,R2,Ea[1]),c++)}var Ca=a.daiAdBreakInfo;if(Ca){var cb=new Iy,kb=0;try{var Bb=Ca.contentCpn;void 0!==Bb&&(N(cb,1,Bb),kb++);var Ob=Ca.totalCueDurationMs;void 0!==Ob&&(Yj(cb,2,Ob),kb++);var tb=Ca.filledAdsDurationMs;void 0!==tb&&(Yj(cb,3,tb),kb++);var qb=Ca.cueStartChange;void 0!==qb&&(O(cb,4,yhb[qb]),kb++);var tc=Ca.cueDurationChange;void 0!==tc&&(O(cb,5,whb[tc]),kb++);var Uc=Ca.cueDurationChangeReason;
void 0!==Uc&&(O(cb,6,xhb[Uc]),kb++);var gc=Ca.externalChannelId;void 0!==gc&&(N(cb,7,gc),kb++);var Vc=Ca.cueIdentifier;void 0!==Vc&&(N(cb,8,Vc),kb++);var md=Ca.infoType;void 0!==md&&(O(cb,9,Ahb[md]),kb++);var Lc=Ca.msg;void 0!==Lc&&(N(cb,10,Lc),kb++);var nd=Ca.filledAdCount;void 0!==nd&&(Wj(cb,11,nd),kb++);var od=[kb===Object.keys(Ca).length,cb]}catch(nc){Y(nc),od=[!1,void 0]}var Yb=od;Yb[0]&&(Kj(b,Iy,5,R2,Yb[1]),c++)}var lc=a.visibilityErrorDebugInfo;if(lc){var Kd=new Sy,$c=0;try{var ec=lc.elementName;
void 0!==ec&&(N(Kd,1,ec),$c++);var ad=lc.contentVideoPlaybackEventId;void 0!==ad&&(N(Kd,2,ad),$c++);var Qb=lc.errorList;void 0!==Qb&&(N(Kd,3,Qb),$c++);var Ad=lc.htmlDump;void 0!==Ad&&(N(Kd,4,Ad),$c++);var Wd=[$c===Object.keys(lc).length,Kd]}catch(nc){Y(nc),Wd=[!1,void 0]}var Sb=Wd;Sb[0]&&(Kj(b,Sy,6,R2,Sb[1]),c++)}var af=a.playbackTimelineAdBreakStateTrigger;if(af){var ze=new Py,Oe=0;try{var uf=af.cueIdentifier;void 0!==uf&&(N(ze,1,uf),Oe++);var bf=af.timestampUnixEpochSec;void 0!==bf&&(Yj(ze,2,bf),
Oe++);var jh=af.adRequestState;void 0!==jh&&(O(ze,3,thb[jh]),Oe++);var Ig=af.segmentState;void 0!==Ig&&(O(ze,4,uhb[Ig]),Oe++);var kh=af.timestampUnixEpochMs;void 0!==kh&&(Yj(ze,5,kh),Oe++);var Jg=[Oe===Object.keys(af).length,ze]}catch(nc){Y(nc),Jg=[!1,void 0]}var lh=Jg;lh[0]&&(Kj(b,Py,7,R2,lh[1]),c++)}var Ae=a.extraLongAdBreakDebugInfo;if(Ae){var cf=new Oy,bd=0;try{var fe=Ae.contentVideoPlaybackEventId;void 0!==fe&&(N(cf,1,fe),bd++);var vc=Ae.adPlacementKindCuepointInitiatedCueRange;if(vc){var Kg=
jKa(vc);Kg[0]&&(Jj(cf,Ny,2,Kg[1]),bd++)}var mh=Ae.adPlacementConfigImpliedCueRange;if(mh){var nh=jKa(mh);nh[0]&&(Jj(cf,Ny,3,nh[1]),bd++)}var oh=Ae.adPlacementKindMillisecondsInitiatedCueRange;if(oh){var Be=jKa(oh);Be[0]&&(Jj(cf,Ny,4,Be[1]),bd++)}var wc=Ae.cueIdentifier;void 0!==wc&&(N(cf,5,wc),bd++);var Lf=[bd===Object.keys(Ae).length,cf]}catch(nc){Y(nc),Lf=[!1,void 0]}var Yh=Lf;Yh[0]&&(Kj(b,Oy,8,R2,Yh[1]),c++)}var Zh=a.comparePyvAdTagInfo;if(Zh){var Ii=new Fy,df=0;try{var hg=Zh.pyvAdTagUrlFromPlayer;
void 0!==hg&&(N(Ii,1,hg),df++);var Pe=Zh.pyvAdTagUrlFromWatchNext;void 0!==Pe&&(N(Ii,2,Pe),df++);var ig=[df===Object.keys(Zh).length,Ii]}catch(nc){Y(nc),ig=[!1,void 0]}var vf=ig;vf[0]&&(Kj(b,Fy,9,R2,vf[1]),c++)}var Dc=a.driftRecoveryInfo;if(Dc){var rc=new My,Zb=0;try{var Lg=Dc.contentCpn;void 0!==Lg&&(N(rc,1,Lg),Zb++);var ef=Dc.cueIdentifier;void 0!==ef&&(N(rc,2,ef),Zb++);var Mf=Dc.driftRecoveryMs;void 0!==Mf&&(Yj(rc,3,Mf),Zb++);var Nf=Dc.breakDurationMs;void 0!==Nf&&(Yj(rc,4,Nf),Zb++);var Ji=Dc.driftFromHeadMs;
void 0!==Ji&&(Yj(rc,5,Ji),Zb++);var qj=Dc.appliedDriftRecoveryMs;void 0!==qj&&(Yj(rc,6,qj),Zb++);var jg=Dc.destinationMs;void 0!==jg&&(Yj(rc,7,jg),Zb++);var ph=Dc.adClientData;if(ph){var $h=cKa(ph);$h[0]&&(Jj(rc,zy,8,$h[1]),Zb++)}var ai=[Zb===Object.keys(Dc).length,rc]}catch(nc){Y(nc),ai=[!1,void 0]}var kg=ai;kg[0]&&(Kj(b,My,10,R2,kg[1]),c++)}var ff=a.adsClientEvent;if(ff){var Mg=new Ey,Of=0;try{var Ki=ff.eventType;void 0!==Ki&&(O(Mg,1,qhb[Ki]),Of++);var lg=ff.adClientData;if(lg){var Ng=cKa(lg);Ng[0]&&
(Jj(Mg,zy,3,Ng[1]),Of++)}var qh=ff.serializedAdServingData;void 0!==qh&&(yk(Mg,4,qh),Of++);var Og=ff.eventOrder;void 0!==Og&&(Wj(Mg,5,Og),Of++);var Ce=ff.serializedSlotAdServingData;void 0!==Ce&&(yk(Mg,6,Ce),Of++);var De=ff.errorInfo;if(De){var Qe=new Dy,qe=0;try{var bk=De.errorType;void 0!==bk&&(O(Qe,1,phb[bk]),qe++);var Re=De.errorMessage;void 0!==Re&&(O(Qe,2,ohb[Re]),qe++);var wf=[qe===Object.keys(De).length,Qe]}catch(nc){Y(nc),wf=[!1,void 0]}var Xd=wf;Xd[0]&&(Jj(Mg,Dy,7,Xd[1]),Of++)}var rh=[Of===
Object.keys(ff).length,Mg]}catch(nc){Y(nc),rh=[!1,void 0]}var Pg=rh;Pg[0]&&(Kj(b,Ey,11,R2,Pg[1]),c++)}var Pf=a.daiAdStateTracking;if(Pf){var Qg=new Ky,mg=0;try{var bi=Pf.eventType;void 0!==bi&&(O(Qg,1,vhb[bi]),mg++);var Li=Pf.contentCpn;void 0!==Li&&(N(Qg,2,Li),mg++);var Mi=Pf.externalChannelId;void 0!==Mi&&(N(Qg,3,Mi),mg++);var Pl=Pf.adCpn;void 0!==Pl&&(N(Qg,4,Pl),mg++);var rj=Pf.adCount;void 0!==rj&&(Yj(Qg,5,rj),mg++);var ck=Pf.msg;void 0!==ck&&(N(Qg,6,ck),mg++);var ng=[mg===Object.keys(Pf).length,
Qg]}catch(nc){Y(nc),ng=[!1,void 0]}var ge=ng;ge[0]&&(Kj(b,Ky,12,R2,ge[1]),c++)}var re=a.adTrimmingInfo;if(re){var Se=new By,sj=0;try{var Ql=re.contentCpn;void 0!==Ql&&(N(Se,1,Ql),sj++);var dk=re.cueIdentifier;void 0!==dk&&(N(Se,2,dk),sj++);var sh=re.adMediaInfo;sh&&(jP(Se.j.bind(Se),sh,kKa),sj++);var ek=[sj===Object.keys(re).length,Se]}catch(nc){Y(nc),ek=[!1,void 0]}var Yk=ek;Yk[0]&&(Kj(b,By,13,R2,Yk[1]),c++)}var ci=a.adsAttributionEvent;if(ci){var di=new Cy,ei=0;try{var Rl=ci.errorCode;void 0!==
Rl&&(O(di,1,Bhb[Rl]),ei++);var Sl=ci.attributionStep;void 0!==Sl&&(O(di,2,Chb[Sl]),ei++);var Ni=ci.innerErrorDomain;void 0!==Ni&&(N(di,3,Ni),ei++);var fi=ci.innerErrorCode;void 0!==fi&&(Yj(di,4,fi),ei++);var he=[ei===Object.keys(ci).length,di]}catch(nc){Y(nc),he=[!1,void 0]}var og=he;og[0]&&(Kj(b,Cy,14,R2,og[1]),c++)}var Rg=a.playerDebugData;if(Rg){var Oi=new Qy,xf=0;try{var fk=Rg.pmlSignal;void 0!==fk&&(Vj(Oi,1,fk),xf++);var Zk=Rg.contentCpn;void 0!==Zk&&(N(Oi,2,Zk),xf++);var tj=[xf===Object.keys(Rg).length,
Oi]}catch(nc){Y(nc),tj=[!1,void 0]}var gf=tj;gf[0]&&(Kj(b,Qy,15,R2,gf[1]),c++)}var hf=a.sourceRegistrationEvent;if(hf){var Qf=new Ry,Pi=0;try{var uj=hf.eventType;void 0!==uj&&(O(Qf,1,Dhb[uj]),Pi++);var Tl=[Pi===Object.keys(hf).length,Qf]}catch(nc){Y(nc),Tl=[!1,void 0]}var gk=Tl;gk[0]&&(Kj(b,Ry,16,R2,gk[1]),c++)}return[c===Object.keys(a).length,b]}catch(nc){return Y(nc),[!1,void 0]}},
offlineTransferStatusChanged:mJa,offlineStateSnapshot:function(a){var b=new CB,c=0;try{var d=a.offlineVideos;d&&(jP(b.B.bind(b),d,OJa),c++);var e=a.offlinePlaylists;e&&(jP(b.j.bind(b),e,QJa),c++);var f=a.freeDiskSpaceBytes;void 0!==f&&(Yj(b,3,f),c++);var h=a.lastOfflineUsageTimeMs;void 0!==h&&(Yj(b,4,h),c++);var l=a.lastOfflinePlaybackTimeMs;void 0!==l&&(Yj(b,5,l),c++);var m=a.lastOfflineSaveTimeMs;void 0!==m&&(Yj(b,6,m),c++);var n=a.lastOfflineDownloadSuccessTimeMs;void 0!==n&&(Yj(b,7,n),c++);var p=
a.isBatteryCharging;void 0!==p&&(Vj(b,8,p),c++);var q=a.detailedNetworkType;void 0!==q&&(O(b,9,uP[q]),c++);var r=a.batteryLevelPercentage;void 0!==r&&(Wj(b,10,r),c++);var t=a.isPostMigrationState;void 0!==t&&(Vj(b,11,t),c++);var v=a.offlineCacheVerificationFailure;if(v){var x=new wB;d=0;try{var B=v.numUncachedVideos;void 0!==B&&(Xj(x,1,B),d++);var F=v.numTotalCompletedVideos;void 0!==F&&(Xj(x,2,F),d++);var G=v.uncachedVideos;G&&(jP(x.j.bind(x),G,TJa),d++);var I=[d===Object.keys(v).length,x]}catch(ba){Y(ba),
I=[!1,void 0]}v=I;v[0]&&(Jj(b,wB,12,v[1]),c++)}var L=a.additionalOfflineClientState;if(L){var P=new qna;v=0;try{var V=L.mainAppAdditionalOfflineClientState;if(V){var ka=new yB;I=0;try{var sa=V.downloadRecsVideos;sa&&(jP(ka.j.bind(ka),sa,UJa),I++);var ta=V.smartDownloadVideos;ta&&(jP(ka.B.bind(ka),ta,VJa),I++);var la=[I===Object.keys(V).length,ka]}catch(ba){Y(ba),la=[!1,void 0]}V=la;V[0]&&(Jj(P,yB,1,V[1]),v++)}var qa=[v===Object.keys(L).length,P]}catch(ba){Y(ba),qa=[!1,void 0]}L=qa;L[0]&&(Jj(b,qna,
13,L[1]),c++)}return[c===Object.keys(a).length,b]}catch(ba){return Y(ba),[!1,void 0]}}},cbb={adNotify:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;
Kj(d,hy,184,DF,a);c?BF("adNotify",d,c,b):CF("adNotify",d,b)},
biscottiBasedDetection:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,hA,439,DF,a);c?BF("biscottiBasedDetection",d,c,b):CF("biscottiBasedDetection",d,b)},
adNotifyFilled:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,gy,300,DF,a);c?BF("adNotifyFilled",d,c,b):CF("adNotifyFilled",d,b)},
idbTransactionEnded:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,fB,352,DF,a);c?BF("idbTransactionEnded",d,c,b):CF("idbTransactionEnded",d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,ena,348,DF,a);c?BF("idbUnexpectedlyClosed",d,c,b):CF("idbUnexpectedlyClosed",d,b)},
flowEvent:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,Zma,304,DF,a);c?BF("flowEvent",d,c,b):CF("flowEvent",d,b)},
idbQuotaExceeded:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,cna,351,DF,a);c?BF("idbQuotaExceeded",d,c,b):CF("idbQuotaExceeded",d,b)},
idbTransactionAborted:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,dna,353,DF,a);c?BF("idbTransactionAborted",d,c,b):CF("idbTransactionAborted",d,b)},
streamzIncremented:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,yna,126,DF,a);c?BF("streamzIncremented",d,c,b):CF("streamzIncremented",d,b)},
sliEventBatch:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,uA,344,DF,a);c?BF("sliEventBatch",d,c,b):CF("sliEventBatch",d,b)},
playbackAssociated:$ta,autoplayTriggered:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,wA,209,DF,a);c?BF("autoplayTriggered",d,c,b):CF("autoplayTriggered",d,b)},
webPlayerApiCalled:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,DB,76,DF,a);c?BF("webPlayerApiCalled",d,c,b):CF("webPlayerApiCalled",d,b)},
embedsAdEvent:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,vA,327,DF,a);c?BF("embedsAdEvent",d,c,b):CF("embedsAdEvent",d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,zA,251,DF,a);c?BF("embedsShouldRequestStorageAccessResult",d,c,b):CF("embedsShouldRequestStorageAccessResult",d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,yA,256,DF,a);c?BF("embedsRequestStorageAccessState",d,c,b):CF("embedsRequestStorageAccessState",d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,xA,257,DF,a);c?BF("embedsRequestStorageAccessFailedState",d,c,b):CF("embedsRequestStorageAccessFailedState",d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,ana,332,DF,a);c?BF("heartbeatActionPlayerHalted",d,c,b):CF("heartbeatActionPlayerHalted",d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,bna,330,DF,a);c?BF("heartbeatActionPlayerTransitioned",d,c,b):CF("heartbeatActionPlayerTransitioned",d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,EA,266,DF,a);c?BF("embedsItpWatchLaterResult",d,c,b):CF("embedsItpWatchLaterResult",d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,eB,293,DF,a);c?BF("html5PlayerHealthEvent",d,c,b):CF("html5PlayerHealthEvent",d,b)},
adsClientStateChange:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,Ty,197,DF,a);c?BF("adsClientStateChange",d,c,b):CF("adsClientStateChange",d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,SA,2,DF,a);c?BF("offlineTransferStatusChanged",d,c,b):CF("offlineTransferStatusChanged",d,b)},
offlineStateSnapshot:function(a,b,c){var d=g.KB("jspb_sparse_encoded_pivot")?new EB([{}]):new EB;Kj(d,CB,22,DF,a);c?BF("offlineStateSnapshot",d,c,b):CF("offlineStateSnapshot",d,b)}};AP.prototype.ex=function(a){this.client=a};
AP.prototype.j=function(){this.clear();this.csn=g.HF()};
AP.prototype.clear=function(){this.C.clear();this.B.clear();this.D.clear();this.csn=null};CP.prototype.ex=function(a){g.OB(BP().ex).bind(BP())(a)};
CP.prototype.clear=function(){g.OB(BP().clear).bind(BP())()};g.k=DP.prototype;g.k.ex=function(a){this.client=a};
g.k.uV=function(a,b){var c=this;b=void 0===b?{}:b;g.OB(function(){var d,e,f,h=(null==(d=g.R(null==a?void 0:a.commandMetadata,g.Q2))?void 0:d.rootVe)||(null==(e=g.R(null==a?void 0:a.commandMetadata,mhb))?void 0:null==(f=e.screenVisualElement)?void 0:f.uiType);if(h){d=g.R(null==a?void 0:a.commandMetadata,xib);if(null==d?0:d.parentTrackingParams){var l=g.FF(d.parentTrackingParams);if(d.parentCsn)var m=d.parentCsn}else b.clickedVisualElement?l=b.clickedVisualElement:a.clickTrackingParams&&(l=g.FF(a.clickTrackingParams));
a:{d=g.R(a,g.yT);e=g.R(a,mib);if(d){if(e=XGa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=XGa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}b=Object.assign({},{cttAuthInfo:d,parentCsn:m},b);if(g.KB("expectation_logging")){var n;b.loggingExpectations=(null==(n=g.R(null==a?void 0:a.commandMetadata,mhb))?void 0:n.loggingExpectations)||void 0}FP(c,h,l,b)}else g.LF(new g.eD("Error: Trying to create a new screen without a rootVeType",a))})()};
g.k.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.HF(void 0===c?0:c))?(cva(this.client,c,g.FF(a),b),b=!0):b=!1:b=!1;return b};
g.k.stateChanged=function(a,b,c){this.visualElementStateChanged(g.FF(a),b,void 0===c?0:c)};
g.k.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.B.has(c)?this.Z.push([a,b]):gLa(this,a,b,c)};IP.getInstance=function(){var a=g.Sa("ytglobal.storage_");a||(a=new IP,g.Ra("ytglobal.storage_",a));return a};
IP.prototype.estimate=function(){var a,b,c;return g.Ha(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(iLa()):d.return()})};
g.Ra("ytglobal.storageClass_",IP);Dpa.prototype.nE=function(a){this.handleError(a)};
Dpa.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.KB("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.KB("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":kLa(this,b);break;case "TRANSACTION_ENDED":this.C&&Math.random()<=g.LB("ytidb_transaction_ended_event_rate_limit_transaction",.1)&&this.j("idbTransactionEnded",
b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b,{hasWindowUnloaded:this.B}),this.j("idbTransactionAborted",a)}};var u3={},FQa=g.ZD("yt-player-local-media",{vr:(u3.index={Vm:2},u3.media={Vm:2},u3.captions={Vm:5},u3),shared:!1,upgrade:function(a,b){b(2)&&(g.GD(a,"index"),g.GD(a,"media"));b(5)&&g.GD(a,"captions");b(6)&&(HD(a,"metadata"),HD(a,"playerdata"))},
version:5});var Mjb={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},v3;a:{var w3=g.mc();w3=w3.toLowerCase();if(g.fc(w3,"android")){var Njb=w3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Njb){var Ojb=parseFloat(Njb[1]);if(100>Ojb){v3=Ojb;break a}}var Pjb=w3.match("("+Object.keys(Mjb).join("|")+")");v3=Pjb?Mjb[Pjb[0]]:0}else v3=void 0}var pS=v3,zPa=0<=pS;var m9a=window;var lLa=Id(function(){var a,b;return null==(b=(a=window).matchMedia)?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var nLa;g.qI=new sI;nLa=0;var JP={Pf:function(a,b){a.splice(0,b)},
oC:function(a){a.reverse()},
sC:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};var gab=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var wPa={Mha:"adunit",Xta:"detailpage",Nua:"editpage",Vua:"embedded",rKa:"leanback",uZa:"previewpage",D_a:"profilepage",uU:"unplugged",CYa:"playlistoverview",D5a:"sponsorshipsoffer",s2a:"shortspage",ADa:"handlesclaiming",eFa:"immersivelivepage",msa:"creatormusic",fFa:"immersivelivepreviewpage"};var cRa={nua:1,qva:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var RR=ILa()?!0:"function"===typeof window.fetch&&window.ReadableStream&&window.AbortController&&!g.VD?!0:!1;g.OP.prototype.getLanguageInfo=function(){return this.Lc};
g.OP.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1<a.length&&(this.xtags=a[1])}return this.xtags};
g.OP.prototype.toString=function(){return this.Lc.name};
g.OP.prototype.getLanguageInfo=g.OP.prototype.getLanguageInfo;PP.prototype.equals=function(a){return this.B===a.B&&this.j===a.j&&this.C===a.C&&this.reason===a.reason};
PP.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j};
PP.prototype.compose=function(a){if(a.C&&RP(a))return mT;if(a.C||RP(this))return a;if(this.C||RP(a))return this;var b=this.B&&a.B?Math.max(this.B,a.B):this.B||a.B,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);return b===this.B&&c===this.j?this:new PP(b,c,!1,c===this.j?this.reason:a.reason)};
PP.prototype.D=function(a){return a.video?JLa(this,a.video.quality):!1};
var Qjb=g.QP("auto","hd1080",!1,"l"),w8a=g.QP("auto","large",!1,"l"),mT=g.QP("auto","auto",!1,"p");VP.prototype.Ps=function(a){a=a||mT;for(var b=g.bt(this.videoInfos,function(h){return a.D(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};
VP.prototype.sD=function(a){a=a||mT;return g.bt(this.videoInfos,function(b){return a.D(b)})};
VP.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var aMa=new Set(["356"]);g.w(KLa,g.H);KLa.prototype.xa=function(){g.H.prototype.xa.call(this)};g.dQ.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.dQ.prototype.get=function(a){eQ(this);return this.j[a]||null};
g.dQ.prototype.df=function(){this.url||(this.url=hMa(this));return this.url};
g.dQ.prototype.clone=function(){var a=new g.dQ(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.j=g.ld(this.j);a.url=this.url;return a};
var gMa=[hma];g.k=g.kQ.prototype;g.k.IL=function(a){this.segments.push(a)};
g.k.Cn=function(a){return!!this.hn(a)};
g.k.getDuration=function(a){return(a=this.hn(a))?a.duration:0};
g.k.cW=function(a){return this.getDuration(a)};
g.k.qn=function(){return this.segments.length?this.segments[0].Pa:-1};
g.k.bf=function(a){return(a=this.hn(a))?a.ingestionTime:NaN};
g.k.zd=function(){return this.segments.length?this.segments[this.segments.length-1].Pa:-1};
g.k.UO=function(a){return this.zd()===a&&!this.B&&0<=a};
g.k.Vs=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.Jd=function(){return this.segments[0].startTime};
g.k.wz=function(){return this.segments.length};
g.k.fm=function(){return 0};
g.k.zi=function(a){return(a=this.kz(a))?a.Pa:-1};
g.k.fI=function(a){return(a=this.hn(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.hn(a))?a.startTime:0};
g.k.PH=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.hI=aa(3);g.k.isLoaded=function(){return 0<this.segments.length};
g.k.hn=function(a){if(this.j&&this.j.Pa===a)return this.j;a=g.Rb(this.segments,new jQ(a,0,0,0,""),function(b,c){return b.Pa-c.Pa});
return this.j=0<=a?this.segments[a]:null};
g.k.kz=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.Rb(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.Kb(a),this.segments.length){var b=this.segments.length?g.zb(this.segments).endTime:0,c=a[0].Pa-this.zd();1<c&&saa(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.jW=function(){return 0};lMa.prototype.skip=function(a){this.j+=a};var x3={},Rjb=(x3.predictStart="predictStart",x3.start="start",x3["continue"]="continue",x3.stop="stop",x3),pMa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};tQ.prototype.QD=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"])};
tQ.prototype.toString=function(){for(var a="",b=g.u(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};DQ.prototype.In=function(){var a=this.pos;this.pos=0;var b=!1;try{HQ(this,440786851)&&(this.pos=0,HQ(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.LF(c);else throw c;}this.pos=a;return b};QQ.prototype.set=function(a,b){this.base.get(a);this.j[a]=b;this.url=""};
QQ.prototype.get=function(a){return this.j[a]||this.base.get(a)};
QQ.prototype.df=function(){this.url||(this.url=OMa(this));return this.url};RQ.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};VQ.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
VQ.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.Pa!==this.Pa||a.Xb!==this.Xb||a.B!==this.B)};
VQ.prototype.dh=function(){return!!this.j.info.video};
VQ.prototype.Id=function(){var a=$Q(this),b="";g.Wc(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};aR.prototype.nz=function(){return this.j?this.j.df():""};
aR.prototype.Ys=function(){return this.D};
aR.prototype.kp=function(){return XQ(this.eb[0])};
aR.prototype.Sk=function(a,b){this.resource.Sk(a,b);if(this.j){this.j=PMa(a,b);b=g.u(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.j.set(c.value,null)}this.requestId=a.get("req_id")};
var gNa=!1;fR.prototype.Yl=function(){return this.C.get("cpn")||""};
fR.prototype.Sk=function(a,b){a.base===this.j&&(this.j=PMa(a,b));a.base===this.D&&(this.D=PMa(a,b))};gR.prototype.hg=function(){return!!this.j&&this.index.isLoaded()};
gR.prototype.Qz=function(){return!1};
gR.prototype.AT=function(a){return[a]};
gR.prototype.fB=function(a){return[a]};g.w(hR,gR);g.k=hR.prototype;g.k.Jn=function(){return!1};
g.k.Xv=function(){return!0};
g.k.aE=function(){return!1};
g.k.Qz=function(){return!this.G};
g.k.Jv=function(){return new aR([new VQ(1,this,this.initRange,"getMetadataRequestInfo")],this.G)};
g.k.Tx=function(){return null};
g.k.hC=function(a){this.Yr(a);return this.Xv()&&a.B&&!a.hf?new aR([new VQ(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Pa,a.startTime,a.duration,a.Xb+a.B,NaN,!0)],this.index.fI(a.Pa)):this.Zr(UMa(a),!1)};
g.k.Jq=function(a,b){b=void 0===b?!1:b;a=this.index.zi(a);b&&(a=Math.min(this.index.zd(),a+1));return this.Zr(a,!0)};
g.k.oO=function(a){MNa(a)};
g.k.Yr=function(a){return 0===a.B?!0:this.index.zd()>a.Pa&&this.index.qn()<=a.Pa+1};
g.k.update=function(a,b,c){this.index.append(a);kMa(this.index,c);this.index.B=b};
g.k.hg=function(){return this.Qz()?!0:gR.prototype.hg.call(this)};
g.k.Zr=function(a,b){var c=this.index.fI(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.Ob?this.info.Ob*e:1E3;return new aR([new VQ(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.XN=function(){return this.Qz()?0:this.initRange.length};
g.k.DQ=function(){return!1};kR.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new kR,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+iR(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+iR(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.gi:0,m=Date.parse(sNa(iR(a,"yt:segmentIngestTime")))/1E3;c.G="SegmentTemplate"===a.parentElement.tagName;c.G&&(c.N=iR(a,"media"));a=b?h-b.Pa:1;c.K=0<a?0:-a+1;a=g.u(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.Pa)h++;else{var t=new qNa(h,l,n,m+p,f);c.j.push(t);var v=d;var x=e,B=t.startSecs;t=v.getAttribute("yt:cuepointTimeOffset");var F=v.getAttribute("yt:cuepointDuration");if(t&&F){t=Number(t);B=-t/x+B;x=Number(F)/x;F=v.getAttribute("yt:cuepointContext")||null;var G=v.getAttribute("yt:cuepointIdentifier")||"";v=v.getAttribute("yt:cuepointEvent")||"";v=new rQ(B,x,F,G,Rjb[v]||"unknown",t)}else v=null;v&&c.C.push(v);h++;l+=n;f+=n;m+=n+p}}c.j.length&&
(c.B=g.zb(c.j))}this.K=c.K;this.B=c.B||this.B;g.Lb(this.j,c.j);g.Lb(this.C,c.C);this.G=c.G;this.N=c.N;-1===this.D&&(this.D=c.getStreamTimeOffset())};
kR.prototype.getStreamTimeOffset=function(){return-1===this.D?0:this.D};g.w(ANa,g.kQ);g.k=ANa.prototype;g.k.Cn=function(a,b){a=lR(this,a);return 0<=a&&(b||!this.segments[a].pending)};
g.k.qn=function(){return this.Wm?this.segments.length?this.kz(this.Jd()).Pa:-1:g.kQ.prototype.qn.call(this)};
g.k.Jd=function(){if(this.Xd)return 0;if(!this.Wm)return g.kQ.prototype.Jd.call(this);if(!this.segments.length)return 0;var a=Math.max(g.zb(this.segments).endTime-this.Bq,0);return 0<this.We&&this.kz(a).Pa<this.We?this.hn(this.We).startTime:a};
g.k.Vs=function(){if(!this.segments.length)return g.kQ.prototype.Vs.call(this);var a=this.zd();if(!this.Wm||a<=this.segments[this.segments.length-1].Pa)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new jQ(a,Math.max(0,b.startTime-(b.Pa-a)*this.Kj),this.Kj,0,"sq/"+a,void 0,void 0,!0)}return this.Xd?Math.min(this.Bq,a.endTime):a.endTime};
g.k.wz=function(){return this.Wm?this.segments.length?this.zd()-this.qn()+1:0:g.kQ.prototype.wz.call(this)};
g.k.zd=function(){var a=Math.min(this.Th,Math.max(g.kQ.prototype.zd.call(this),this.Gp)),b=1E3*this.Bq;b=0<this.Rq&&this.Rq<b;this.Xd&&0<this.Bq&&0<this.Gp&&!b&&(b=this.kz(this.Bq))&&(a=Math.min(b.Pa-1,a));return a};
g.k.Fv=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.IL=function(a){var b=lR(this,a.Pa);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.hA&&0===a.Pa%(300/this.Kj)){var c=this.segments[0].Pa,d=Math.floor(this.hA/this.Kj);a=a.Pa-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.SH=function(){return this.Gp};
g.k.kz=function(a){if(!this.Wm)return g.kQ.prototype.kz.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].Pa-Math.ceil((this.segments[0].startTime-a)/this.Kj));else if(a>=b.endTime)b=b.Pa+Math.floor((a-b.endTime)/this.Kj+1);else{b=Tb(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.Pa-b.Pa-1))+1)+b.Pa}return this.hn(b)};
g.k.hn=function(a){if(!this.Wm)return g.kQ.prototype.hn.call(this,a);if(!this.segments.length)return null;var b=lR(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Kj;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Pa-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Pa-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Pa-d.Pa-1),d=d.endTime+(a-d.Pa-1)*b);return new jQ(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.w(mR,hR);g.k=mR.prototype;g.k.aE=function(){return!0};
g.k.hg=function(){return!0};
g.k.Yr=function(a){return this.Xv()&&a.B&&!a.hf||!a.j.index.UO(a.Pa)};
g.k.Jv=function(){};
g.k.Jq=function(a,b){return"number"!==typeof a||isFinite(a)?hR.prototype.Jq.call(this,a,void 0===b?!1:b):new aR([new VQ(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Jj,void 0,this.Jj*this.info.Ob)],"")};
g.k.Zr=function(a,b){var c=void 0===c?!1:c;if(this.index.Cn(a))return hR.prototype.Zr.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Jj*this.info.Ob),f=Sjb?this.Jj:0;b&&(f=e=0);return new aR([new VQ(c?7:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],0<=a?"sq/"+a:"")};
var Sjb=!1;g.w(nR,gR);g.k=nR.prototype;g.k.Jn=function(){return!1};
g.k.Xv=function(){return!1};
g.k.aE=function(){return!1};
g.k.Jv=function(){return new aR([new VQ(1,this,void 0,"otfInit")],this.G)};
g.k.Tx=function(){return null};
g.k.hC=function(a){this.Yr(a);return BNa(this,UMa(a),!1)};
g.k.Jq=function(a,b){b=void 0===b?!1:b;a=this.index.zi(a);b&&(a=Math.min(this.index.zd(),a+1));return BNa(this,a,!0)};
g.k.oO=function(a){1===a.info.type&&(this.j||(this.j=JGa(a.j)),a.B&&"http://youtube.com/streaming/otf/durations/112015"===a.B.uri&&CNa(this,a.B))};
g.k.Yr=function(a){return 0===a.B?!0:this.index.zd()>a.Pa&&this.index.qn()<=a.Pa+1};
g.k.XN=function(){return 0};
g.k.DQ=function(){return!1};g.k=g.NNa.prototype;g.k.Cn=function(a){return a<=this.zd()};
g.k.fm=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.Xh[a]/this.j};
g.k.PH=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.hI=aa(2);g.k.bf=function(){return NaN};
g.k.getDuration=function(a){a=this.cW(a);return 0<=a?a/this.j:-1};
g.k.cW=function(a){return a+1<this.count||this.B?this.Xh[a+1]-this.Xh[a]:-1};
g.k.qn=function(){return 0};
g.k.zd=function(){return this.count-1};
g.k.UO=function(a){return this.zd()===a&&0<=a};
g.k.Vs=function(){return this.B?this.Xh[this.count]/this.j:NaN};
g.k.Jd=function(){return 0};
g.k.wz=function(){return this.count};
g.k.fI=function(){return""};
g.k.zi=function(a){a=g.Rb(this.Xh.subarray(0,this.count),a*this.j);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.zd()};
g.k.jW=function(a,b){if(a>=this.zd())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.zd()&&b>this.getStartTime(a);a++)c=Math.max(c,ONa(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.Xh;this.Xh=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.Xh[a]=c[a]};
g.k.cap=function(a,b){PNa(this);this.B=!0;this.Xh[this.count]=b;this.offsets[this.count]=a};g.w(sR,gR);g.k=sR.prototype;g.k.Jv=function(a,b){var c=new VQ(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new VQ(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),c];0<this.info.contentLength&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),0<a&&d.push(new VQ(4,this,TQ(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new aR(d)};
g.k.oO=function(a){if(1===a.info.type){if(this.j)return;this.j=JGa(a.j)}else if(2===a.info.type){if(this.G||0<=this.index.zd())return;if(g.kL(this.info)){var b=this.index,c=pR(a);a=a.info.range.start;var d=g.vQ(c,0,1936286840);c=AMa(d);b.j=c.Au;var e=c.u5;b.offsets[0]=c.N5+a+d.size;b.Xh[0]=e;b.B=!0;a=c.OR.length;for(d=0;d<a;d++){e=b;var f=c.Daa[d],h=c.OR[d];e.count++;PNa(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.Xh[e.count]=e.Xh[e.count-1]+h}}else this.G=pR(a)}if(this.info.Me()&&this.j&&this.G){c=
new DataView(this.j.buffer);b=this.index;d=this.G;a=this.indexRange.end;e=new DQ(c);c=e;e=c.pos;f={L_:1E6,M_:1E9,duration:0,c_:0,lR:0};if(HQ(c,408125543))if(f.c_=IQ(c,!0),f.lR=c.start+c.pos,HQ(c,357149030)){for(h=GQ(c);!EQ(h);){var l=IQ(h,!1);2807729===l?f.L_=KQ(h):2807730===l?f.M_=KQ(h):17545===l?f.duration=MQ(h):LQ(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(null!==c){b.j=c.M_/c.L_;e=new DQ(d);d=e;h=c.lR;e=d.pos;f=[];if(HQ(d,475249515)){for(l=GQ(d);HQ(l,187);){var m=GQ(l);if(HQ(m,
179)){var n=KQ(m);if(HQ(m,183)){m=GQ(m);for(var p=h;HQ(m,241);)p=KQ(m)+h;f.push({hH:p,g5:n})}}}if(0<f.length&&a===f[0].hH)for(a=0;a<f.length;a++)f[a].hH+=1;d.pos=e;a=f}else d.pos=e,a=null;if(null!==a){a=g.u(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.hH,f=f.g5,PNa(d),d.offsets[d.count]=e,d.Xh[d.count]=f,d.count++;b.cap(c.c_+c.lR,c.duration)}}this.G=null}};
g.k.FD=function(a,b,c,d){for(var e=[],f=a;f<=this.index.zd();f++){var h=TQ(this.index.fm(f),ONa(this.index,f)),l=this.index.getStartTime(f),m=this.index.getDuration(f),n=Math.max(0,b-h.start),p=Math.min(h.end+1,b+c)-(h.start+n);e.push(new VQ(3,this,h,"getRequestInfoForRange",f,l,m,n,p,void 0,void 0,d));if(h.start+n+p>=b+c)break}e.length||g.KF(new g.eD("b189619593",""+a,""+b,""+c));return new aR(e)};
g.k.AT=function(a){for(var b=this.fB(a.info),c=a.info.range.start+a.info.Xb,d=[],e=0;e<b.length;e++){var f=BO(a.j,b[e].range.start+b[e].Xb-c,b[e].B);d.push(new oR(b[e],f))}return d};
g.k.fB=function(a){for(var b=a.range.start+a.Xb,c=0;c<this.index.zd()&&b>=this.index.fm(c+1);)c++;return this.FD(c,b,a.B).eb};
g.k.Yr=function(a){WQ(a);return this.hg()?!0:a.range.end+1<this.info.contentLength};
g.k.Tx=function(a,b){this.Yr(a);if(!this.hg())return b=TQ(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new RQ(b.start,this.info.contentLength-1)),new aR([new VQ(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);4===a.type&&(a=this.fB(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Xb+a.B;3===a.type&&(WQ(a),c=a.Pa,d===a.range.end+1&&(c+=1));return this.FD(c,d,b)};
g.k.hC=function(){return null};
g.k.Jq=function(a,b,c){b=void 0===b?!1:b;a=this.index.zi(a);b&&(a=Math.min(this.index.zd(),a+1));return this.FD(a,this.index.fm(a),0,c)};
g.k.Jn=function(){return!0};
g.k.Xv=function(){return!0};
g.k.aE=function(){return!1};
g.k.XN=function(){return this.indexRange.length+this.initRange.length};
g.k.DQ=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var y3={},fOa=(y3.COLOR_PRIMARIES_BT709="bt709",y3.COLOR_PRIMARIES_BT2020="bt2020",y3.COLOR_PRIMARIES_UNKNOWN=null,y3.COLOR_PRIMARIES_UNSPECIFIED=null,y3),z3={},RNa=(z3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",z3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",z3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",z3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",z3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,z3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,z3);g.tR.prototype.getName=function(){return this.name};
g.tR.prototype.getId=function(){return this.id};
g.tR.prototype.getIsDefault=function(){return this.isDefault};
g.tR.prototype.toString=function(){return this.name};
g.tR.prototype.getName=g.tR.prototype.getName;g.tR.prototype.getId=g.tR.prototype.getId;g.tR.prototype.getIsDefault=g.tR.prototype.getIsDefault;var WNa=/action_display_post/;var XNa;g.w(vR,g.cG);g.k=vR.prototype;g.k.isLoading=function(){return 1===this.state};
g.k.Hn=function(){return 3===this.state};
g.k.aaa=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Ac=this.B=!0;this.timeline||(this.timeline=new uNa);yNa(this.timeline,a);this.oa("refresh");for(a=0;a<b.length;a++){var c=pOa(this,b[a]);if(!this.j[c.id]){var d=xR(jR(b[a],"BaseURL").textContent),e=jR(b[a],"Initialization"),f=iR(e,"sourceURL");e=SQ(iR(e,"range"));this.j[c.id]=new hR(d,c,f,e)}c=this.j[c.id];d=iR(b[a],"id","AdaptationSet");
d=""!==d?d:iR(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.C[c.info.id]||f.B[d]||f.j||null;d=f.j;!this.K&&f.getStreamTimeOffset()&&(this.K=f.getStreamTimeOffset());if(f.G){e=[];d=g.u(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=8*c.info.Ob,n=h.Pa;var p=h.startSecs;var q=f.N.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 jQ(h.Pa,h.startSecs,h.gi,h.j,q.join("$"),null,h.B))}d=e}else{f=Mb(jR(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.K);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 t=r.split("-");t[1]&&0<=Number(t[1])?p=SQ(r):q=q+"?range="+r}m.call(l,new jQ(n.Pa,n.startSecs,n.gi,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.Za)}zNa(this.timeline);return!0}this.duration=rNa(iR(a,"mediaPresentationDuration"));
a:{for(a=0;a<b.length;a++){f=b[a];c=pOa(this,f);d=xR(jR(f,"BaseURL").textContent);e=jR(f,"SegmentBase");f=SQ(e.attributes.getNamedItem("indexRange").value);e=SQ(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new sR(d,c,e,f);if(!c){b=!1;break a}uR(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.isDisposed()){var a=g.Ml(this.sourceUrl,{start_seq:vOa(this).toString()});rOa(this,a).Al(function(){})}};
g.k.resume=function(){qOa(this)};
g.k.Ke=function(){if(this.isManifestless&&this.C&&yR(this))return yR(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()&&!oL(f.info.mimeType)&&(f.D&&(b=!0),h=h.Vs(),f.info.Ai()&&(isNaN(c)||h<c)?c=h:f.info.dh()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.Jd=function(){if(this.isManifestless){if(zR(this))return zR(this);if(this.Bb){var a=this.bf(this.Ke());if(a&&(a-=this.Bb,0<a))return this.Ke()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!oL(a[b].info.mimeType))return c.Jd()}return 0};
g.k.getStreamTimeOffset=function(){return this.K};
g.k.bf=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.zi(a),e=c.bf(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var DR=null,Tjb,BOa=!(null==(Tjb=navigator.mediaCapabilities)||!Tjb.decodingInfo),oOa={commentary:1,alternate:2,dub:3,main:4};ER.prototype.clone=function(a){return new ER(this.flavor,a,this.B,this.experiments)};
ER.prototype.pc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
ER.prototype.qh=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 Ujb={},GOa=(Ujb.playready=["com.youtube.playready","com.microsoft.playready"],Ujb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Ujb),A3={},i8a=(A3.widevine="DRM_SYSTEM_WIDEVINE",A3.fairplay="DRM_SYSTEM_FAIRPLAY",A3.playready="DRM_SYSTEM_PLAYREADY",A3),B3={},Vjb=(B3.widevine=1,B3.fairplay=2,B3.playready=3,B3);var OR;g.w(NR,g.H);
NR.prototype.initialize=function(a,b){for(var c=this,d=g.u(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.u(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.ge)for(var h=g.u(Object.keys(f.ge)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=GOa[m];!m&&this.L("html5_enable_vp9_fairplay")&&"fairplay"===l&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.u(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new ER(l,n,f.ge[l],this.Fa.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}tC()&&(this.C["com.youtube.fairplay"]=new ER("fairplay","com.youtube.fairplay","",this.Fa.experiments),this.L("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.B=HOa(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),this.L("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})};
NR.prototype.L=function(a){return this.Fa.experiments.jb(a)};var Pab={"":"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 APa={RED:"red",ghb:"white"};QOa.prototype.jb=function(a){return"true"===this.flags[a]};var TOa=Promise.resolve(),YOa=window.queueMicrotask?window.queueMicrotask.bind(window):UOa;VOa.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;UD?a=a||Wjb[b]:2.2===pS?a=a||Xjb[b]:rC()&&(a=a||Yjb[b]);return!!a};
VOa.prototype.isTypeSupported=function(a){return this.Z?window.cast.receiver.platform.canDisplayType(a):$K(a)};
var Xjb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Yjb={"application/x-mpegURL":"maybe"},Wjb={"application/x-mpegURL":"maybe"};g.w(UR,g.cG);UR.prototype.add=function(a,b){if(!this.items[a]&&(b.bH||b.IM||b.PK)){var c=this.items,d=b;Object.isFrozen&&!Object.isFrozen(b)&&(d=Object.create(b),Object.freeze(d));c[a]=d;this.oa("vast_info_card_add",a)}};
UR.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
UR.prototype.get=function(a){return this.items[a]||null};
UR.prototype.isEmpty=function(){return g.id(this.items)};g.w(VR,g.uO);VR.prototype.j=function(a,b){var c=sO.uu("oap");b=g.uO.prototype.j.call(this,a,b);sO.Js(c,Math.ceil(a.length/16));return b};
VR.prototype.B=function(a,b,c){var d=this,e,f;return g.Ha(function(h){if(1==h.j)return e=sO.uu("oan2"),g.z(h,g.uO.prototype.B.call(d,a,b,c),2);f=h.B;sO.Js(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.w(WR,g.vO);WR.prototype.encrypt=function(a,b){var c=sO.uu("oap");b=g.vO.prototype.encrypt.call(this,a,b);sO.Js(c,Math.ceil(a.byteLength/16));return b};
g.w(YR,wO);YR.prototype.encrypt=function(a,b){var c=cPa(this.j,a),d=cPa(this.j,b);wO.prototype.encrypt.call(this,c||a,d||b);d&&this.j.exports.free(d.byteOffset);return c?cWa(this.j,c):a};$R.prototype.Gk=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a};
$R.prototype.Wi=function(){return this.j/(1-Math.pow(this.alpha,this.B))};aS.prototype.Gk=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.B>=this.j&&(this.C=!0);for(;a--;)this.values[this.B]=b,this.B=(this.B+1)%this.j;this.Vl=!0};
aS.prototype.Wi=function(){return this.K?(bS(this,this.D-this.K)+bS(this,this.D)+bS(this,this.D+this.K))/3:bS(this,this.D)};g.w(hPa,g.H);hPa.prototype.Ga=function(){var a;null==(a=this.ra)||a.start();if(iS(this)&&this.policy.N){var b;null==(b=this.Qd)||b.wE()}};g.w(qPa,g.H);var xPa="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),HPa={Sla:"caoe",hoa:"cbrand",qoa:"cbr",roa:"cbrver",jra:"ccrv",PFa:"c",SFa:"cver",RFa:"ctheme",QFa:"cplayer",ZRa:"cmodel",MSa:"cnetwork",UWa:"cos",VWa:"cosver",OXa:"cplatform"};g.w(FPa,g.H);g.k=FPa.prototype;g.k.L=function(a){return this.experiments.jb(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.xS(this);e="www.youtube.com"===c;!f&&d&&e?f="https://web.archive.org/web/20240102114909/https://youtu.be/"+a:g.sS(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),UD&&(a=Dna())&&(b.ebc=a));return g.Ml(f,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.xS(this)+"/embed/"+b;d&&(b=g.Ml(b,{list:d}));d=c.width;c=c.height;b=g.te(b);a=g.te(null!=a?a:"YouTube video player");return'<iframe width="'+d+'" height="'+c+'" src="'+b+'" title="'+(a+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>')};
g.k.supportsGaplessAudio=function(){return g.YK&&!UD&&74<=voa()||g.MR&&g.Nc(68)?!0:!1};
g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.bb||g.zD?!1:!0};
g.k.getPlayerType=function(){return this.j.cplayer};
g.k.Uc=function(){return this.Of};
g.k.Qt=function(){this.L("html5_enable_lawnmower_messaging")};
var NPa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],GPa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],KPa=[19];g.k=KS.prototype;g.k.qh=function(){return this.j};
g.k.iC=function(){return null};
g.k.dW=function(){var a=this.iC();return a?(a=g.TB(a.resource),Number(a.expire)):NaN};
g.k.mR=function(){};
g.k.getHeight=function(){return this.j.video.height};
var OPa=!1;PPa.prototype.build=function(){TPa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.u(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.Lc){if(e.Lc.getIsDefault()){c=e.Lc.getId();break a}c||(c=e.Lc.getId())}}d=g.u(this.C);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.K||!e.Lc||e.Lc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.u(this.B);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.u(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.Lc){p=f.Lc;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=RPa(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(SPa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.u(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=Zjb,d=(h=d.Lc)?'#EXT-X-MEDIA:URI="'+RPa(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.G.length?Zjb:void 0;d=g.u(this.B);for(e=d.next();!e.done;e=d.next())e=e.value,l=b[e.j],h=void 0,0<(null==(h=l)?void 0:h.length)&&(h=e,l=l[0],l="#EXT-X-STREAM-INF:BANDWIDTH="+(h.bitrate+l.bitrate)+',CODECS="'+(h.codecs+","+l.codecs+'",RESOLUTION=')+(h.width+"x"+h.height+',AUDIO="')+(SPa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<h.fps&&(l+=
",FRAME-RATE="+h.fps),h.KB&&(l+=",VIDEO-RANGE="+h.KB),a.push(l),a.push(RPa(this,e.url,"")));return a.join("\n")};
var Zjb="text";g.w(MS,KS);MS.prototype.dW=function(){return this.expiration};
MS.prototype.iC=function(){if(!this.resource||this.resource.isDisposed()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new CL(a)}return this.resource};g.w(NS,KS);NS.prototype.iC=function(){return new CL(this.B.df())};
NS.prototype.mR=function(){this.B=hQ(this.B)};g.w(OS,KS);OS.prototype.iC=function(){return new CL(this.B)};var $jb={},eQa=($jb.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",$jb.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",$jb);g.k=g.PS.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.df=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.QS(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.k.equals=function(a){return a?this.toString()===a.toString():!1};
g.k.Ee=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var jQa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},kQa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},lQa=/^(\d*)_((\d*)_?(\d*))$/;var nQa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},oQa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var C3={},gRa=(C3.ALWAYS=1,C3.BY_REQUEST=3,C3.UNKNOWN=void 0,C3),D3={},nRa=(D3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",D3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",D3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",D3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",D3);var CGa;
CGa=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{ama(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],t=l[r],v=(0,c[r])(t,m);if("undefined"===typeof v)throw l=m&&m.type,Error("When called with an action of type "+(l?'"'+String(l)+'"':"(unknown type)")+', the slice reducer for key "'+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]=
v;n=n||v!==t}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
return UGa(a,b)}});
g.BT=new yO;XS.prototype.toString=function(){return this.type+this.id};g.YS.prototype.Wg=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return yS(this.Fa,this.j,a)};
g.YS.prototype.Rk=function(){return this.Fa.getVideoUrl(this.videoId,this.playlistId)};g.ZS.prototype.Wg=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:yS(this.Fa,this.videoId,a)};
g.ZS.prototype.Rk=function(a){return this.watchUrl||this.Fa.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var $S=void 0;Txa("LMS",function(){return g.Ha(function(a){return a.return(g.aT())})});var eT,MQa;eT=0;MQa=!1;g.PQa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Txa("LMDB",function(){var a,b;return g.Ha(function(c){if(1==c.j)return g.z(c,g.XD(),2);if(3!=c.j){a=c.B;if(!a)throw g.AD("edd");return g.z(c,g.dT(a),3)}b=c.B;return c.return(g.ID(b,["index","media","captions"],{mode:"readonly",Tb:!0},function(d){var e={};d=[g.ND(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
dqa(d.objectStore("media")),dqa(d.objectStore("captions"))];return g.CD.all(d).then(function(f){var h=g.u(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:QQa(f||[]),captions:h}})}))})});g.w(fT,g.cG);fT.prototype.xa=function(){this.j&&(this.j=this.j.onload=null);g.cG.prototype.xa.call(this)};g.k=g.jT.prototype;g.k.getHeight=function(){return this.height};
g.k.iW=aa(4);g.k.RH=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.C.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.df=function(a){var b=this.D;b=b.replace("$N",this.C);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.Ml(b,{sigh:this.signature}));return hK(b)};
g.k.EG=function(a){var b=this.RH()-1;return g.ie(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.Ux=function(){return this.frameCount-1};
g.k.JL=function(){return this.frameCount?0:-1};
g.k.BT=function(){};g.w(kT,fT);kT.prototype.B=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.G(e-1,d,a[e],b);(this.N||180>f.getHeight())&&c.push(f)}return c};
kT.prototype.G=function(a,b,c,d){return new g.jT(a,b,c,d)};g.w(WQa,g.jT);g.k=WQa.prototype;g.k.RH=function(){return this.B.wz()};
g.k.EG=function(a){var b=this.rows*this.columns*this.G,c=this.B,d=c.zd();a=c.zi(a);return a>d-b?-1:a};
g.k.Ux=function(){return this.B.zd()};
g.k.JL=function(){return this.B.qn()};
g.k.BT=function(a){this.B=a};g.w(lT,kT);lT.prototype.B=function(a,b){return kT.prototype.B.call(this,"$N|"+a,b)};
lT.prototype.G=function(a,b,c){return new WQa(a,b,c,this.isLive)};g.w(g.nT,g.cG);g.k=g.nT.prototype;g.k.U=function(){return this.Fa};
g.k.L=function(a){return this.Fa.L(a)};
g.k.Rh=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Ie)||!a.kb)};
g.k.FY=function(){this.isDisposed()||(this.j.B||this.j.unsubscribe("refresh",this.FY,this),this.jV(-1))};
g.k.jV=function(a){if(!this.isLivePlayback||!this.K||"fairplay"!=this.K.flavor){var b=lOa(this.j,this.EC);if(0<b.length){for(var c=g.u(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Jd());this.oa("cuepointupdated",b,a);this.EC+=b.length;if(xT(this)&&this.Fa.Uc())for(b=g.u(b),d=b.next();!d.done;d=b.next())c=d.value,this.va("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.nG.start=this.iF,this.nG.end=
c+3)}}};
g.k.wj=function(){return this.ge?!0:!!this.j&&ZP(this.j)};
g.k.Xj=function(){if(this.cotn)return null;var a=g.NJ(this.Fa)||this.L("web_l3_storyboard");if(!this.ll)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.ll=new kT(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=aba(this.j.j).index)&&(this.ll=new lT(b.spec,this.j.isLive,c,a))}else this.wy?this.ll=new kT(this.wy,this.lengthSeconds,void 0,!1,a):this.gy&&this.j&&
(b=aba(this.j.j).index)&&(this.ll=new lT(this.gy,this.j.isLive,b,a));return this.ll};
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.wy||this.gy};
g.k.Ke=function(){return this.j&&!isNaN(this.j.Ke())?this.j.Ke():xT(this)?this.L("html5_live_seek_timeline_timestamps")||this.L("html5_sabr_live")?46800:0:this.lengthSeconds};
g.k.Jd=function(){return this.j&&!isNaN(this.j.Jd())?this.j.Jd():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.zi(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.Ee=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Il)};
g.k.Pv=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 oT(this)&&!this.Ri&&!this.Oo};
g.k.Wg=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.Fa.ma||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:yS(this.Fa,this.videoId,a)};
g.k.Ac=function(){return this.isLivePlayback||this.Xd||this.rb||!(!this.liveUtcStartSeconds||!this.Im)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Xd&&!this.isLivePlayback&&this.j.B)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.ey||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.D&&!lL(this.D))return g.Db(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.wl;
if(this.ey){if(!this.So)for(var b=g.u(this.ey),c=b.next();!c.done;c=b.next())if(c=c.value,c.Lc.getIsDefault()){this.So=c;break}return this.So||this.wl}return this.wl};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getWatchNextResponse=function(){return this.Qa};
g.k.getHeartbeatResponse=function(){return this.tC};
g.k.Rk=function(){return this.watchUrl?this.watchUrl:this.Fa.getVideoUrl(this.videoId)};
g.k.PO=function(){return!!this.j&&(ZNa(this.j)||$Na(this.j)||aOa(this.j))};
g.k.getEmbeddedPlayerResponse=function(){return this.ji};
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.AR=function(){return hRa(this)?this.bX:this.Zo||this.Qi};
g.k.LF=function(){return this.yj||this.Qi};
g.k.pM=function(){return tT(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.va=function(a,b,c){this.oa("ctmp",a,b,c)};
g.k.jF=function(a,b,c){this.oa("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.xa=function(){g.cG.prototype.xa.call(this);this.xx=null;delete this.D4;delete this.accountLinkingConfig;delete this.j;this.C=this.tC=this.playerResponse=this.Qa=null;this.Of=this.adaptiveFormats="";delete this.botguardData;this.He=this.suggestions=this.Ax=null};var qSa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},rSa={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"},sSa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},pSa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},nSa={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"},oSa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.w(jU,g.H);g.k=jU.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.W[a],e=this.state.ma[a],f=d;if(e)if(c&&eK(c,bjb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.u(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.LF(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.k.logApiCall=function(a,b,c){var d=this.app.U();d.Oo&&!this.state.ra.has(a)&&(this.state.ra.add(a),g.qD("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Ea,errorCode:c}))};
g.k.oa=function(a){var b=g.Ia.apply(1,arguments);this.L("web_player_split_event_bus")?(this.state.C.oa.apply(this.state.C,[a].concat(g.oa(b))),zSa(a)&&(this.state.B.oa.apply(this.state.B,[a].concat(g.oa(b))),this.state.D.oa.apply(this.state.D,[a].concat(g.oa(b))))):(this.app.U().K&&zSa(a)&&this.app.Nk.oa.apply(this.app.Nk,[a].concat(g.oa(b))),this.app.Br.oa.apply(this.app.Br,[a].concat(g.oa(b))))};
g.k.Zn=function(a){var b=g.Ia.apply(1,arguments);this.app.Nk.oa.apply(this.app.Nk,[a].concat(g.oa(b)));this.app.Br.oa.apply(this.app.Br,[a].concat(g.oa(b)))};
g.k.ib=function(a){var b=g.Ia.apply(1,arguments);this.L("web_player_split_event_bus")?(this.state.C.oa.apply(this.state.C,[a].concat(g.oa(b))),this.state.B.oa.apply(this.state.B,[a].concat(g.oa(b)))):this.Zn.apply(this,[a].concat(g.oa(b)))};
g.k.vc=function(a){var b=g.Ia.apply(1,arguments);this.L("web_player_split_event_bus")?(this.state.C.oa.apply(this.state.C,[a].concat(g.oa(b))),this.state.B.oa.apply(this.state.B,[a].concat(g.oa(b))),this.state.D.oa.apply(this.state.D,[a].concat(g.oa(b)))):this.Zn.apply(this,[a].concat(g.oa(b)))};
g.k.ym=function(a){var b=g.Ia.apply(1,arguments);this.L("web_player_split_event_bus")?(this.state.C.oa.apply(this.state.C,[a].concat(g.oa(b))),this.state.B.oa.apply(this.state.B,[a].concat(g.oa(b))),this.state.D.oa.apply(this.state.D,[a].concat(g.oa(b))),this.state.N.oa.apply(this.state.N,[a].concat(g.oa(b)))):this.Zn.apply(this,[a].concat(g.oa(b)))};
g.k.L=function(a){return this.app.U().L(a)};
g.k.xa=function(){if(this.state.element){var a=this.state.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.state.element=null}g.H.prototype.xa.call(this)};g.w(oU,g.iv);oU.prototype.oa=function(a){var b=g.Ia.apply(1,arguments);if(this.G.has(a))return this.G.get(a).push(b),!0;var c=!1;try{for(b=[b],this.G.set(a,b);b.length;)c=g.iv.prototype.oa.call.apply(g.iv.prototype.oa,[this,a].concat(g.oa(b.shift())))}finally{this.G.delete(a)}return c};g.w(ASa,g.H);ASa.prototype.xa=function(){this.N.dispose();this.D.dispose();this.B.dispose();this.C.dispose();this.ra=this.G=this.K=this.j=this.ma=this.W=this.Z=void 0};var CSa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.w(qU,jU);g.k=qU.prototype;g.k.getApiInterface=function(){return Array.from(this.state.Z)};
g.k.v4=function(a,b){this.L("web_player_split_event_bus")?this.state.N.subscribe(a,b):this.app.Nk.subscribe(a,b)};
g.k.Jaa=function(a,b){this.L("web_player_split_event_bus")?this.state.N.unsubscribe(a,b):this.app.Nk.unsubscribe(a,b)};
g.k.getPlayerState=function(a){return Gbb(this.app,a)};
g.k.l6=function(){return Gbb(this.app)};
g.k.fba=function(a,b,c){GSa(this)&&(p1(this.app,!0,1),r1(this.app,a,b,c,1))};
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):this.app.getCurrentTime(this.playerType)};
g.k.Y5=function(){return this.app.getCurrentTime(1)};
g.k.g6=function(){var a=this.app.bf(1);return isNaN(a)?this.getCurrentTime():a};
g.k.c6=function(){return this.app.getDuration(1)};
g.k.yK=function(a,b){a=g.ie(Math.floor(a),0,100);isFinite(a)&&j1(this.app,{volume:a,muted:this.isMuted()},b)};
g.k.vba=function(a){this.yK(a,!1)};
g.k.mJ=function(a){j1(this.app,{muted:!0,volume:this.getVolume()},a)};
g.k.h8=function(){this.mJ(!1)};
g.k.UK=function(a){g.rU(this.app)||j1(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)};
g.k.gca=function(){this.UK(!1)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Gf&&(a.pfp={enableIma:g.gU(this.app.getVideoData())&&this.app.Dd().allowImaMonetization,autoplay:ZT(this.app.Dd()),mutedAutoplay:this.app.Dd().mutedAutoplay});return a};
g.k.EQ=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Ff()){var b=dW(this.app.zb());if(!Ceb(b)||Deb(b))return}3===a?BU(this.app.zb()).BE("control_play"):this.app.playVideo(a)};
g.k.haa=function(){p1(this.app,!0,1);this.EQ()};
g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(2!==b||this.app.Ff()||Ceb(dW(this.app.zb())))3===b?BU(this.app.zb()).BE("control_pause"):this.app.pauseVideo(b,a)};
g.k.Gba=function(){var a=this.app,b=!1;a.X.Ic&&(a.Ua.oa("pageTransition"),b=!0);a.stopVideo(b)};
g.k.clearVideo=function(){};
g.k.getAvailablePlaybackRates=function(){var a=this.app.U();return a.enableSpeedOptions?["https://web.archive.org/web/20240102114909/https://admin.youtube.com","https://web.archive.org/web/20240102114909/https://viacon.corp.google.com","https://web.archive.org/web/20240102114909/https://yurt.corp.google.com"].includes(a.D?a.ancestorOrigins[0]:window.location.origin)||a.Qo?Xib:Wib:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.sU(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.pba=function(){};
g.k.getAvailableQualityLevels=function(a){return(a=g.sU(this.app,a))?(a=g.pr(a.Ps(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.V5=function(){return this.getAvailableQualityLevels(1)};
g.k.q6=function(){return this.xW()};
g.k.r6=function(){return 1};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.xW=function(){return this.getVideoLoadedFraction()};
g.k.u6=function(){return 0};
g.k.getSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.qb().resize()};
g.k.loadVideoById=function(a,b,c){if(!a)return!1;a=pU(a,b,c);return this.app.loadVideoByPlayerVars(a,this.playerType)};
g.k.E7=function(a,b,c){a=this.loadVideoById(a,b,c);p1(this.app,a,1)};
g.k.cueVideoById=function(a,b,c,d){a=pU(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.i5=function(a,b,c){this.cueVideoById(a,b,c,1)};
g.k.loadVideoByUrl=function(a,b,c){a=BSa(a,b,c);return this.app.loadVideoByPlayerVars(a,this.playerType)};
g.k.G7=function(a,b,c){a=this.loadVideoByUrl(a,b,c);p1(this.app,a,1)};
g.k.cueVideoByUrl=function(a,b,c,d){a=BSa(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.j5=function(a,b,c){this.cueVideoByUrl(a,b,c,1)};
g.k.w6=function(){var a=this.app.U();if(a.ma)return"";var b=this.app.Dd(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.a6=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.U();if(a.ma)return"";var b=this.app.Dd();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Dd().videoId,this.app.qb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.s4=function(a,b,c){return Tbb(this.app,a,b,c)};
g.k.removeCueRange=function(a){return Vbb(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)};
g.k.D7=function(a,b,c,d){this.loadPlaylist(a,b,c,d);p1(this.app,!0,1)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.i8=function(){this.nextVideo();p1(this.app,!0,1)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.uaa=function(){this.previousVideo();p1(this.app,!0,1)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a)};
g.k.faa=function(a){this.playVideoAt(a);p1(this.app,!0,1)};
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.n6=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=g.OV(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.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.OX=function(a){"captions"===a&&(a=g.aW(this.app.zb()))&&!a.loaded&&a.load()};
g.k.f0=function(a){"captions"===a&&(a=g.aW(this.app.zb()))&&a.loaded&&a.kca()};
g.k.tR=function(a,b,c){if(!b)return null;var d=this.app.zb();return"captions"===a?(a=g.aW(d))&&a.Ih(b,c):null};
g.k.i6=function(a,b,c){var d=g.sU(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.tR(a,b,c)};
g.k.ZN=function(a){var b=this.app.zb();if("captions"===a){var c;return(null==(c=g.aW(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.aW(b)&&a.push("captions"),a)};
g.k.getVolume=function(){return this.app.Oi.volume};
g.k.isMuted=function(){return this.app.Oi.muted};
g.k.destroy=function(){this.app.dispose()};
g.k.logImaAdEvent=function(a,b){var c=this.app.U();g.gU(this.app.getVideoData())&&this.app.Dd().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.afa(this.app.U().loaderUrl),eventType:a,youtubeHost:g.Gl(this.app.U().Ga)||""},a.embeddedPlayerMode=c.Ea,g.qD("embedsAdEvent",a))};
g.k.mutedAutoplay=function(){var a=this.app.U(),b,c;this.L("embeds_enable_muted_autoplay")&&(null==(b=a.webPlayerContextConfig)?0:null==(c=b.embedsHostFlags)?0:c.allowMutedAutoplay)&&!a.C&&this.app.mutedAutoplay()};
g.k.preloadVideoById=function(a,b,c,d){if(a){a=pU(a,b,c);var e,f;(null==(e=this.app.U().webPlayerContextConfig)?0:null==(f=e.embedsHostFlags)?0:f.allowPreloadVideoPlayerVars)&&this.app.preloadVideoByPlayerVars(a,d)}};
g.k.saa=function(a,b,c){this.preloadVideoById(a,b,c,1)};
g.k.setFauxFullscreen=function(a){g.JC();this.app.Am(a?2:0)};
g.k.mba=function(a){var b,c;(null==(b=this.app.U().webPlayerContextConfig)?0:null==(c=b.embedsHostFlags)?0:c.allowSetFauxFullscreen)&&this.setFauxFullscreen(a)};g.w(HSa,qU);g.k=HSa.prototype;g.k.w4=function(a,b){this.L("web_player_split_event_bus")?this.state.D.subscribe(a,b):this.app.Nk.subscribe(a,b)};
g.k.Kaa=function(a,b){this.L("web_player_split_event_bus")?this.state.D.unsubscribe(a,b):this.app.Nk.unsubscribe(a,b)};
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.F7=function(a,b,c){this.loadVideoById(a,b,c)};
g.k.H7=function(a,b,c){this.loadVideoByUrl(a,b,c)};
g.k.m6=function(a){return this.getPlayerState(a)};
g.k.wW=function(a){a=void 0===a?this.playerType:a;var b=ESa(this,a);if(a=g.sU(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.rb;b.isManifestless=xT(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.wj()&&(b.isEncrypted=!0);if(a.C)for(var c=g.u(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.D)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}return b};
g.k.seekBy=function(a,b,c,d){GSa(this)&&r1(this.app,this.app.getCurrentTime()+a,b,c,this.playerType,d)};
g.k.dba=function(a,b,c){this.seekBy(a,b,c)};
g.k.seekTo=function(a,b,c,d,e){GSa(this)&&r1(this.app,a,b,c,d||this.playerType,e)};
g.k.hba=function(a,b,c,d){this.seekTo(a,b,c,d)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.Z5=function(a,b){return this.getCurrentTime(a,b)};
g.k.cI=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Ff()&&(a=1);return a};
g.k.getDuration=function(a,b){if(3===this.cI()){var c;return(null==(c=BU(this.app.zb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):this.app.getDuration(this.playerType)};
g.k.d6=function(a,b){return this.getDuration(a,b)};
g.k.t6=function(a){return this.getVideoLoadedFraction(a)};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.gW(this.app.zb());b&&!b.loaded&&b.load()}this.OX(a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.gW(this.app.zb());b&&b.loaded&&b.unload()}this.f0(a)};
g.k.getOption=function(a,b,c){var d=g.sU(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.zb();switch(a){case "ad":var c,d;return(null==(c=dW(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=BU(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.gW(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=sWa(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.eW(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var r,t;return(null==(r=rWa(b))?void 0:null==(t=r.getOptions)?void 0:t.call(r))||null}if(!a){a=this.ZN();if(!a)return a;dW(b)&&a.push("ad");BU(b)&&a.push("remote");g.gW(b)&&a.push("annotations_module");sWa(b)&&a.push("creatorendscreen");g.eW(b)&&a.push("unplugged");rWa(b)&&a.push("kids");return a}return this.ZN(a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.zb();switch(a){case "ad":return(a=dW(d))&&a.Ih&&a.Ih(b,c);case "kids":return(a=rWa(d))&&a.Ih(b,c);case "remote":return(a=BU(d))&&a.Ih(b,c);case "unplugged":return(a=g.eW(d))&&a.Ih(b,c);case "annotations_module":return(a=g.gW(d))&&a.Ih(b,c);case "creatorendscreen":return(a=sWa(d))&&a.Ih(b,c)}return this.tR(a,b,c)};
g.k.addCueRange=function(a,b,c,d,e){return Tbb(this.app,a,b,c,d,e)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getCurrentBroadcastId=function(){return null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){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 m=g.tU(this);m&&m.handleGlobalKeyDown(a,b,c,d,e,f,h,l)};
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.tU(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.tU(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.tU(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.qb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.toggleFullscreen=function(){function a(c){g.LF(c)}
var b=this.app.U();if(b.externalFullscreen){if(!g.DS(b))return this.isFullscreen()?LC(window.document.documentElement):Xoa(window.document.documentElement).catch(a)}else if(g.JC()||b.Z)return this.isFullscreen()?LC(KC()):"3"!==b.controlsType&&g.JC()?Xoa(this.app.qb().element).catch(a):(b=this.app.kf().Fb())?Xoa(b).catch(a):Promise.reject(Error("Media element missing"));this.vc("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.cancelPlayback=function(){var a=dW(this.app.zb());a&&a.created&&a.destroy();(a=g.sU(this.app))&&a.stopVideo();(a=this.app.zb().Fe.get("endscreen"))&&a.r7()&&g.AU(this.app.Ua,!0)};
g.k.getProgressState=function(a){if(3===this.cI())return BU(this.app.zb()).getProgressState();var b=this.app.getVideoData(),c=g.sU(this.app,a)||g.sU(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=NSa(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=NSa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.bf(d),m=this.app.isAtLiveHead(d),n=this.app.sz();var p=this.app;var q=g.sU(p,d);q?(q=a1(p,q),p=l1(p,g.dU(q.videoData)?q.videoData.Jd():q.Jd(),q)):p=0;q=Dbb(this.app,d);c=c.Pc();var r=this.app.getVideoData().Bz;!r||isNaN(r)?d=0:(d=NSa(this,r,d),r=g.EJ(this.app.U().experiments,"partial_rewind_buffer_seconds"),d-=r>d?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Rh(),clipEnd:b.clipEnd,
clipStart:b.clipStart,current:f,displayedStart:-1,duration:a,ingestionTime:l,isAtLiveHead:m,loaded:n,seekableStart:p,seekableEnd:q,offset:c,viewerLivestreamJoinMediaTime:d}};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.v6=function(){return g.sU(this.app,1).pc(!0)};
g.k.toggleSubtitles=function(){var a=g.aW(this.app.zb());a&&a.Wba()};
g.k.getPlayerSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.tU(this);a&&a.hq()};
g.k.setCenterCrop=function(a){this.app.qb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var KSa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public 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(" "),
LSa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var E3={},OSa=(E3["api.invalidparam"]=2,E3.auth=150,E3["drm.auth"]=150,E3["heartbeat.net"]=150,E3["heartbeat.servererror"]=150,E3["heartbeat.stop"]=150,E3["html5.unsupportedads"]=5,E3["fmt.noneavailable"]=5,E3["fmt.decode"]=5,E3["fmt.unplayable"]=5,E3["html5.missingapi"]=5,E3["html5.unsupportedlive"]=5,E3["drm.unavailable"]=5,E3["mrm.blocked"]=151,E3);g.w(g.uU,HSa);g.k=g.uU.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.W[a]?!0:!!(this.state.ma[a]&&b&&eK(b,bjb))};
g.k.getBandwidthEstimate=function(){return hS(this.app.U().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.sU(this.app);b&&(a={gpu:(0,g.i0)(),d:a},b.handleError(new TK("feedback",a)))};
g.k.getInternalApi=function(){return Object.assign({},this.state.j)};
g.k.getInternalApiInterface=function(){return g.ed(this.state.j)};
g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.queueNextVideo(a,b,c,void 0===d?"":d,void 0===e?"":e)};
g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.k.startSeekCsiAction=function(){this.app.xi().D.j=(0,g.FD)()};
g.k.seekToStreamTime=function(a,b,c,d){var e=this.app,f=this.playerType;b=void 0===b?!0:b;var h=g.sU(e,f),l=0;h&&h.getStreamTimeOffset()&&!h.Pc()&&(l=h.getStreamTimeOffset());r1(e,a-l,b,c,f,d)};
g.k.getStreamTimeOffset=function(){var a=g.sU(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.sU(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&r1(this.app,Infinity,a,b,this.playerType)};
g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.sU(this.app,this.playerType);c&&c.aR(a,b)};
g.k.setVolume=function(a,b){this.yK(a,void 0===b?!0:b)};
g.k.mute=function(a){this.mJ(void 0===a?!0:a)};
g.k.unMute=function(a){this.UK(void 0===a?!0:a)};
g.k.syncVolume=function(){var a=ebb(this.app);j1(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.getAvailableQualityLabels=function(){var a=g.sU(this.app,this.playerType);return a?g.pr(a.Ps(),function(b){return b.qualityLabel}):[]};
g.k.channelSubscribed=function(){this.ib("SUBSCRIBE",this.app.Dd().El)};
g.k.channelUnsubscribed=function(){this.ib("UNSUBSCRIBE",this.app.Dd().El)};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.sU(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.sU(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.sU(this.app,this.playerType);a&&a.Ig("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.U().Po=a};
g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=BC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,EPa)};
g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=void 0===a?!1:a};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.addUtcCueRange=function(a,b,c,d,e){return Ubb(this.app,a,b,c,d,e)};
g.k.s6=function(a){a=void 0===a?this.playerType:a;var b=this.wW(a);if(a=g.sU(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.Ba;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?we(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?we(a.progressBarEndPosition.utcTimeMillis):
null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.Uaa;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=RRa(a);b.paidContentOverlayDurationMs=SRa(a);a.j&&WP(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}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.sU(this.app,1))?a.getPlayerState():null)?a.oh:null;return!!(a&&b&&g.TG(a,128)&&5===PSa(b.errorCode))};
g.k.supportsGaplessAudio=function(){return this.app.U().supportsGaplessAudio()};
g.k.supportsGaplessShorts=function(){return this.app.U().supportsGaplessShorts()};
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.wi=function(){return g.tU(this)};
g.k.sendAbandonmentPing=function(){var a=g.sU(this.app);a&&a.sendAbandonmentPing()};
g.k.setAutonavState=function(a,b){b=void 0===b?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Dd(),null==b?0:tRa(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.PB=b.autonavState);else if(void 0!==b.PB)a=b.PB,b.PB=void 0;else return}acb(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.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.sU(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a,b){b=void 0===b?!1:b;var c=g.sU(this.app,this.playerType);c&&c.setUserAudio51Preference(a,b)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.sU(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.k.setProximaLatencyPreference=function(a){var b=g.sU(this.app,this.playerType);b&&b.setProximaLatencyPreference(a)};
g.k.getProximaLatencyPreference=function(){var a=g.sU(this.app,this.playerType);return a?a.getProximaLatencyPreference():0};
g.k.isProximaLatencyEligible=function(){var a=g.sU(this.app,this.playerType);return a?a.isProximaLatencyEligible():!1};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.updateLastActiveTime=function(){WE()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.U().Fl!==a&&(this.app.U().Fl=a,(a=g.sU(this.app,this.playerType))&&S0(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.aW(this.app.zb()).n0(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.aW(this.app.zb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.aW(this.app.zb());a&&a.Q_()};
g.k.isSubtitlesOn=function(){var a=g.aW(this.app.zb());return a?a.isSubtitlesOn():!1};
g.k.getPlayerResponse=function(){var a=g.sU(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getEmbeddedPlayerResponse=function(){var a=g.sU(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null};
g.k.getWatchNextResponse=function(){var a=g.sU(this.app,this.playerType);return a?a.getVideoData().getWatchNextResponse():null};
g.k.getHeartbeatResponse=function(){var a=g.sU(this.app,this.playerType);return a?a.getVideoData().getHeartbeatResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Xj();if(!c)return null;b=c.levels[b];return b?(a=g.iT(b,a))?{column:a.column,columns:a.columns,height:a.zw,row:a.row,rows:a.rows,url:a.url,width:a.sE}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Xj();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Pc();return b.EG(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Xj();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Ux(),minFrameIndex:b.JL()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Xj();return a?a.levels.length:0};
g.k.G5=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.sU(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().wl};
g.k.setAudioTrack=function(a,b){3===this.cI()&&BU(this.app.zb()).BE("control_set_audio_track",a);var c=g.sU(this.app,this.playerType);if(c)if(c.isDisposed()||g.TG(c.playerState,128))a=!1;else{var d;if(null==(d=c.videoData.C)?0:d.j){d=b?c.getCurrentTime()-c.Pc():NaN;if(b){var e=M$a(c.Zc);c.va("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.Aa.setAudioTrack(a,d,b)}else if(Cab(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d<b.length;++d)if(e=b[d],e.label===a.Lc.getName()){if(e.enabled){b=!1;break b}b=
e.enabled=!0;break b}b=void 0}b&&c.va("hlsaudio",{id:a.id})}else{b:if(b=c.videoData,b.D&&!lL(b.D)||a==b.So||!b.jd||0>=b.jd.length)b=!1;else{d=g.u(b.jd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof MS)){b=!1;break b}var f=a.Lc.getId();e.B&&(QPa(e.B,f),e.resource=null)}b.So=a;b=!0}b&&K0(c)&&(c.oa("internalaudioformatchange",c.videoData,!0),c.va("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a};
g.k.H5=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.sU(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.sU(this.app,this.playerType);return a&&a.getVideoData().B?TP(a.Zf?U8a(a.bl,a.Zf,a.Gv()):mT):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.sU(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.aW(this.app.zb());return a?a.p6():null};
g.k.resetSubtitlesUserSettings=function(){g.aW(this.app.zb()).Raa()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setOverlayVisibility=function(a){this.oa("overlayvisibilitychange",a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setGlobalCrop=function(a){this.app.qb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.jg();return this.app.getVisibilityState(this.Oh(),this.isFullscreen()||g.qS(this.app.U()),a,this.isInline(),this.app.zt(),this.app.Nz())};
g.k.isMutedByMutedAutoplay=function(){return this.app.pA};
g.k.setInternalSize=function(a,b){this.app.qb().setInternalSize(new g.ne(a,b))};
g.k.Pc=function(){var a=g.sU(this.app);return a?a.Pc():0};
g.k.jg=function(){return this.app.jg()};
g.k.Oh=function(){var a=g.sU(this.app,this.playerType);return!!a&&a.Oh()};
g.k.setSafetyMode=function(a){this.app.U().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.oi=AC(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.OV(b).videoId||(a.index=b.index)):e1(this.app,{list:a.list,index:a.index,playlist_length:d.length});HVa(this.app.getPlaylist(),a);this.vc("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.sU(this.app,this.playerType||1);c&&g.qT(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){CPa(this.app.U(),a,!1)};
g.k.kba=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.productsInVideoVisibilityUpdated=function(a){this.oa("changeProductsInVideoVisibility",a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.qb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.sU(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.getPlaybackQualityLabel=function(a){if(a=g.sU(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.sU(this.app,this.playerType);d&&g.zab(d,g.QP(a,b||a,!0,"m"),!0,c)};
g.k.onAdUxClicked=function(a,b){this.oa("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.dispatchReduxAction=function(a){g.BT.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.He.includes(e)||(c.He.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Hb(c.He,e)&&(d=!0)});
d&&this.oa("updatemarkervisibility")};
g.k.highlightSettingsMenuItem=function(a){this.oa("highlightSettingsMenu",a)};
g.k.openSettingsMenuItem=function(a){this.oa("openSettingsMenuItem",a)};
g.k.u4=function(a,b){this.L("web_player_split_event_bus")?this.state.B.subscribe(a,b):this.app.Nk.subscribe(a,b)};
g.k.Iaa=function(a,b){this.L("web_player_split_event_bus")?this.state.B.unsubscribe(a,b):this.app.Nk.unsubscribe(a,b)};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.Og=function(){return g.tU(this).Og()};
g.k.Vf=function(){return g.tU(this).Vf()};
g.k.bk=function(){return g.tU(this).bk()};
g.k.Le=function(){return this.wi().Le()};
g.k.Sl=function(){var a=g.Ia.apply(0,arguments),b;(b=this.Le()).Sl.apply(b,g.oa(a))};
g.k.Jh=function(){this.Le().Jh()};
g.k.yO=function(){this.Le().yO()};
g.k.Mh=function(){this.Le().hide()};
g.k.EK=function(a,b,c,d,e,f,h,l){this.Le().EK(a,b,c,d,e,f,h,l)};
g.k.NF=function(a,b){this.Le().NF(a,b)};
g.k.Tt=function(a,b,c,d,e){this.wi().Tt(a,b,c,d,e)};
g.k.IF=function(a){this.Le().sR(a)};
g.k.qs=function(a){this.wi().qs(a)};
g.k.Bv=function(a,b){this.wi().Bv(a,b)};
g.k.Hs=function(a,b){this.wi().Hs(a,b)};
g.k.fn=function(){this.wi().fn()};
g.k.GF=function(a,b){this.wi().GF(a,b)};
g.k.du=aa(6);g.k.fu=aa(8);g.k.uo=aa(11);g.k.qo=aa(14);g.k.Yw=function(a,b){this.wi().Yw(a,b)};
g.k.Eq=function(){this.wi().Eq()};g.w(g.yU,g.uU);g.k=g.yU.prototype;g.k.Io=function(a,b,c,d,e,f,h){return this.app.Io(a,b,c,d,e,f,h)};
g.k.rD=function(){return this.app.rD()};
g.k.Os=aa(16);g.k.zb=function(){return this.app.zb()};
g.k.rf=function(){var a=this.zb().Fe.get("endscreen");return!!a&&a.rf()};
g.k.getRootNode=function(){return this.qb().element};
g.k.U=function(){return this.app.U()};
g.k.vz=aa(18);g.k.un=function(a){return this.app.un(a)};
g.k.xn=function(){var a;return(null==(a=g.tU(this))?void 0:a.xn())||null};
g.k.Vb=function(a){return this.app.Vb(a)};
g.k.qb=function(){return this.app.qb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.sU(this.app,a);if(!b)return null;b=b.getVideoData();if(b.enableServerStitchedDai&&2===a||g.dU(b)&&!a){var c=this.app;a=c.getVideoData();if(c.Oe){b=c.Oe;c=c.getCurrentTime();if(b.tp)b=void 0;else{var d;b=null==(d=HY(b,1E3*c))?void 0:d.videoData}a=b||a}else c.uc&&c.wb&&(b=c.uc,d=b.qa.getVideoData(),b.zg&&(b=b.Zy.get(b.zg))&&(d=b),a=d||a)}else a=b;return a};
g.k.Xj=function(a){return this.app.Xj(a)};
g.k.ew=function(){return this.app.ew()};
g.k.isHdr=function(){var a=g.sU(this.app);return a?a.isHdr():!1};
g.k.VO=function(){return this.app.VO()};
g.k.rB=function(a){this.app.rB(a)};
g.k.xg=function(a,b,c,d,e){this.app.Hg(a,b,c,d,e)};
g.k.Ir=function(a,b){this.app.Ir(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){BU(this.app.zb()).BE("control_play");return}if(!a&&2===this.getPresentingPlayerType()){var b=dW(this.app.zb());if(b&&Deb(b))return}}catch(c){g.KF(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.sU(this.app,a).stopVideo()};
g.k.oo=function(a){g.sU(this.app,a).oo()};
g.k.addEventListener=function(a,b){this.L("web_player_split_event_bus")?this.state.C.subscribe(a,b):this.app.Br.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.L("web_player_split_event_bus")?this.state.C.unsubscribe(a,b):this.app.Br.unsubscribe(a,b)};
g.k.cF=function(a){this.app.cF(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.Ps=function(){var a={},b=g.sU(this.app).Ps();b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.sD=function(){return g.sU(this.app).sD()};
g.k.BD=aa(22);g.k.jK=function(a){this.app.jK(a);a&&acb(this.app,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.CD=aa(24);g.k.Sn=aa(28);g.k.jo=function(a){var b=g.sU(this.app);b&&b.jo(a)};
g.k.cA=function(a,b){this.zb().cA(a,b)};
g.k.Ik=function(){var a=g.gW(this.zb());return!!a&&a.Ik()};
g.k.gp=function(){var a=g.gW(this.zb());return!!a&&a.gp()};
g.k.oB=function(a,b,c){var d=g.gW(this.zb());d&&d.oB(a,b,c)};
g.k.nB=aa(29);g.k.Fo=function(){var a=g.sU(this.app);a&&a.Fo()};
g.k.uK=function(a){this.vc("onVideoAreaChange");this.vc(a?"onShowControls":"onHideControls")};
g.k.Qk=function(a,b){var c=g.tU(this);if(c)return c.Qk(a,b);a=this.app.qb().Yj();return new g.Vr(0,0,a.width,a.height)};
g.k.An=function(){return this.app.An()};
g.k.bE=function(){var a=this.zb().Fe.get("heartbeat");return!!a&&a.bE()};
g.k.Rh=function(){var a=this.U();if(a.Va||a.disableSeek)return!1;var b=g.sU(this.app);if(!b)return!1;var c=b.getVideoData();return!c.Ee()||g.NT(c)||2===this.getPresentingPlayerType()&&!this.app.Ff()||aU(c)&&2===this.getPresentingPlayerType(!0)||b.Dp()&&3!==this.getPresentingPlayerType()||g.FC(g.uS(a))&&!c.Nm||g.rU(this.app)?!1:!0};
g.k.XD=function(){var a;return(null==(a=g.sU(this.app))?void 0:a.XD)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.nu=function(){var a=g.sU(this.app);a&&a.nu()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.Af=function(a,b,c){this.app.Gy(a,b,c)};
g.k.Wp=function(a,b){this.app.oF(a,b)};
g.k.wf=function(a,b){var c=this.app,d=g.sU(c,b);d&&(a=d.Ui.wf(a),b&&c.getPresentingPlayerType()!==b||Z0(c,"cuerangesremoved",a))};
g.k.Ig=function(a,b){(b=g.sU(this.app,b))&&b.Ig(a)};
g.k.Dp=function(){var a=g.sU(this.app);return a?a.Dp():!0};
g.k.Pv=function(){var a=this.getVideoData();return!!a&&(a.Pv()||!!a.hlsFormats||!!a.hd)};
g.k.getPlaybackRate=function(){return g.sU(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.kf=function(){return this.app.kf()};
g.k.xi=function(){return this.app.xi()};
g.k.Xi=function(a){return this.app.Xi(a)};
g.k.createClientVe=function(a,b,c,d){this.U().Za&&this.app.Tq.createClientVe(a,b,c,void 0===d?!1:d)};
g.k.createServerVe=function(a,b,c){this.U().Za&&this.app.Tq.createServerVe(a,b,void 0===c?!1:c)};
g.k.setTrackingParams=function(a,b){this.U().Za&&this.app.Tq.setTrackingParams(a,b)};
g.k.logClick=function(a,b){this.U().Za&&(this.app.Tq.click(a,b),this.oa("veClickLogged",a))};
g.k.logVisibility=function(a,b,c){if(this.U().Za){var d=this.app.Tq;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.HF(),f=a.visualElement;d.B.has(a)?e&&f&&(b?g.YF(e,[f]):g.ZF(e,[f])):b&&!d.C.has(a)&&(e&&f&&g.XF(e,f,void 0,c),d.C.add(a))}};
g.k.hasVe=function(a){return this.U().Za?this.app.Tq.hasVe(a):!1};
g.k.destroyVe=function(a){this.U().Za&&this.app.Tq.destroyVe(a)};
g.k.ud=function(){return g.sU(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.cB=function(){this.app.cB()};
g.k.bz=function(a,b){return this.app.bz(a,b)};
g.k.aq=function(a){this.app.aq(a)};
g.k.fA=function(){this.app.fA()};
g.k.addPlayerResponseForAssociation=function(a){this.app.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)};
g.k.HC=function(a,b,c,d,e,f,h){return this.app.HC(a,b,c,d,e,f,h)};
g.k.UD=function(a,b,c,d,e,f,h){return this.app.UD(a,b,c,d,e,f,h)};
g.k.Oz=function(){return this.app.Oz()};
g.k.Rt=function(a){this.app.Rt(a)};
g.k.Oy=function(a,b){b=void 0===b?Infinity:b;this.app.Oy(void 0===a?-1:a,b)};
g.k.WK=function(a){var b;null==(b=g.aW(this.zb()))||b.WK(a)};
g.k.dG=function(a,b,c){this.app.dG(a,b,c)};
g.k.Hv=function(){return this.app.Hv()};
g.k.CH=function(a,b,c){this.app.CH(a,b,void 0===c?0:c)};
g.k.dw=function(){return this.app.dw()};
g.k.Ff=function(){return this.app.Ff()};
g.k.Ht=function(a,b,c){return this.app.Ht(a,b,c)};
g.k.va=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.sU(this.app,d))||e.va(a,b,c)};
g.k.LP=function(a,b){this.oa("aduxmouseover",a,b)};
g.k.KP=function(a,b){this.oa("aduxmouseout",a,b)};
g.k.iQ=function(a,b){this.oa("muteadaccepted",a,b)};
g.k.dE=function(){return this.app.qb().dE()};
g.k.sB=function(a){this.app.qb().sB(a)};
g.k.Jr=function(){var a=g.sU(this.app);return a?a.Jr():!1};
g.k.uR=function(a){this.app.uR(a)};
g.k.ZI=function(a){var b,c=null==(b=g.sU(this.app))?void 0:b.Aa;c&&c.ZI(a)};var YSa;g.w(XSa,aD);XSa.prototype.qD=function(a,b){a=aD.prototype.qD.call(this,a,b);return Object.assign({},a,this.bx)};var aTa=!1;g.LU.prototype.info=function(){};
g.LU.prototype.debug=function(){};
var STa=new Map;MU.prototype.JA=function(a,b){b.getLength();switch(a){case 20:a=new LO(b);a={Hp:OO(a,1),videoId:RO(a,2),itag:OO(a,3),lmt:OO(a,4),xtags:RO(a,5),lB:OO(a,6),In:PO(a,8),au:OO(a,9),jib:OO(a,10),startMs:OO(a,11),durationMs:OO(a,12),Fr:OO(a,14),timeRange:SO(a,15,uTa),Gj:OO(a,16),JP:OO(a,17),clipId:RO(a,1E3)};this.eQ(a);break;case 21:this.cQ(b,!1);break;case 22:this.Qp(b);break;case 31:a=VO(b,qTa);this.DA(a);break;case 52:akb?(a=VO(b,ITa),this.FA(a)):this.tJ(a,b);break;default:this.tJ(a,b)}};
MU.prototype.eQ=function(){};
MU.prototype.tJ=function(){};
var akb=!1;g.w(g.NU,g.kG);g.k=g.NU.prototype;g.k.show=function(){var a=this.Zj();g.kG.prototype.show.call(this);this.Ea&&(this.N.T(window,"blur",this.Pb),this.N.T(document,"click",this.T2));a||this.oa("show",!0)};
g.k.hide=function(){var a=this.Zj();g.kG.prototype.hide.call(this);UTa(this);a&&this.oa("show",!1)};
g.k.od=function(a,b){this.B=a;this.ma.show();b?(this.W||(this.W=this.N.T(this.J,"appresize",this.NU)),this.NU()):this.W&&(this.N.Nc(this.W),this.W=void 0)};
g.k.XV=function(){this.B&&this.element&&(this.B.getAttribute("aria-haspopup"),this.B.setAttribute("aria-expanded","true"),this.focus())};
g.k.NU=function(){var a=g.tU(this.J);this.B&&a.Tt(this.element,this.B)};
g.k.Pb=function(){var a=this.Zj();UTa(this);this.ma.hide();a&&this.oa("show",!1)};
g.k.T2=function(a){var b=QC(a);b&&(g.pf(this.element,b)||this.B&&g.pf(this.B,b)||!g.dH(a))||this.Pb()};
g.k.Zj=function(){return this.Ib&&4!==this.ma.state};g.w(VTa,g.NU);VTa.prototype.od=function(){g.NU.prototype.od.call(this);this.dialog.focus()};g.w(g.QU,g.kG);g.QU.prototype.updateValue=function(a,b){g.kG.prototype.updateValue.call(this,a,b);this.oa("size-change")};var iUa={iL:13,jU:12,mU:11,VL:10,aM:9,fL:8,eL:7,ZL:6,SUBTITLES:5,AUDIO:4,YL:3,TT:2,REMOTE:1,vS:0,13:"CINEMATIC",12:"REMOTE_SELECT",11:"SIZE",10:"MINIPLAYER",9:"THREED",8:"AUTONAV",7:"ANNOTATIONS",6:"SPEED",5:"SUBTITLES",4:"AUDIO",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.w(TU,g.QU);TU.prototype.Hc=function(a){this.B&&this.J.logVisibility(this.element,this.j&&a)};
TU.prototype.D=function(){var a,b,c=null==(a=this.J.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.J.getVideoData())?void 0:d.accountLinkingConfig;SU(this,sG());var e;g.PU(this,UU(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.C=new VTa(this.J,UU(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),UU(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),UU(null==a?void 0:null==
(l=a.menuData)?void 0:l.confirmButtonText));g.J(this,this.C);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.B=!!d)&&this.J.setTrackingParams(this.element,d);this.Lb.Tc(this);this.j=!0}else!c&&this.j&&(this.Lb.Bh(this),this.j=!1)};
TU.prototype.onClick=function(){this.B&&this.J.logClick(this.element);this.Lb.Pb();this.C&&this.C.od()};g.w(VU,g.H);VU.prototype.L=function(a){return this.api.L(a)};g.w(WU,VU);WU.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.VT=b};
WU.prototype.setAccountLinkState=function(a){this.api.getVideoData().VT=a;this.api.Fo()};
WU.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.oa("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.w(WTa,VU);g.w(YTa,g.U);g.k=YTa.prototype;
g.k.jC=function(){var a;if(a=3!==this.J.getPresentingPlayerType()&&g.HU(this.J)&&400<=this.J.qb().getPlayerSize().width)if(a=this.Dd(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!1!==!!(null==(b=a.getWatchNextResponse())?0:null==(c=b.contents)?0:null==(d=c.twoColumnWatchNextResults)?0:null==(e=d.autoplay)?0:e.autoplay)}if(a)this.j||(this.j=!0,g.jG(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||XTa(this),
b=this.Dd(),this.CT(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.jG(this,this.j),!this.J.U().L("web_player_autonav_toggle_always_listen"))for(this.J.U().L("web_player_autonav_toggle_always_listen"),b=g.u(this.B),c=b.next();!c.done;c=b.next())this.Nc(c.value)};
g.k.CT=function(a){$Ta(this)?this.isChecked=1!==a:((a=1!==a)||(g.bD(),a=g.KB("web_autonav_allow_off_by_default")&&!g.cD(0,141)&&g.IB("AUTONAV_OFF_BY_DEFAULT")?!1:!g.cD(0,140)),this.isChecked=a);ZTa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.jK(this.isChecked?2:1);ZTa(this);if($Ta(this)){var a=this.Dd().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.J.ib("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.J.ib("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.Dd=function(){return this.J.getVideoData(1)};g.w(aUa,VU);g.w(XU,g.QU);XU.prototype.onClick=function(){YU(this,!this.checked);this.oa("select",this.checked)};
XU.prototype.getValue=function(){return this.checked};var gUa={jU:13,mU:12,VL:11,aM:10,fL:9,YL:8,ZL:7,SUBTITLES:6,AUDIO:5,eL:4,iL:3,TT:2,REMOTE:1,vS:0,13:"REMOTE_SELECT",12:"SIZE",11:"MINIPLAYER",10:"THREED",9:"AUTONAV",8:"QUALITY",7:"SPEED",6:"SUBTITLES",5:"AUDIO",4:"ANNOTATIONS",3:"CINEMATIC",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"},hUa={jU:13,mU:12,VL:11,aM:10,fL:9,iL:8,eL:7,AUDIO:6,SUBTITLES:5,ZL:4,YL:3,TT:2,REMOTE:1,vS:0,13:"REMOTE_SELECT",12:"SIZE",11:"MINIPLAYER",10:"THREED",9:"AUTONAV",8:"CINEMATIC",7:"ANNOTATIONS",6:"AUDIO",5:"SUBTITLES",
4:"SPEED",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};var cUa=["en-CA","en","es-MX","fr-CA"];g.w(bV,XU);bV.prototype.Sa=function(a){a?this.j||(this.Lb.Tc(this),this.j=!0):this.j&&(this.Lb.Bh(this),this.j=!1);this.j&&YU(this,mLa())};
bV.prototype.C=function(){g.Ou(this.element,"ytp-menuitem-highlight-transition-enabled")};
bV.prototype.D=function(a){var b=mLa();a!==b&&(b=g.bD(),spa(190,a),spa(192,!0),b.save(),this.J.ib("cinematicSettingsToggleChange",a))};
bV.prototype.xa=function(){this.j&&this.Lb.Bh(this);XU.prototype.xa.call(this)};g.w(lUa,VU);lUa.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Sa(a);this.api.oa("onCinematicSettingsVisibilityChange",a)};g.w(cV,g.U);cV.prototype.show=function(){g.U.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
cV.prototype.hide=function(){g.U.prototype.hide.call(this);this.api.logVisibility(this.element,!1)};g.w(nUa,VU);nUa.prototype.j=function(){if(this.culturalMomentOverlay){var a,b=this.D&&(this.B.isActive()||this.C)&&2!==this.api.getPresentingPlayerType()&&!this.api.rf()&&!g.TG(this.api.Vb(),2)&&!(null==(a=g.tU(this.api))?0:a.Vf())&&!g.DU(this.api);this.culturalMomentOverlay.Ib!==b&&(b?this.culturalMomentOverlay.show():this.culturalMomentOverlay.hide())}};g.w(eV,VU);eV.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.wf("embargo",1);var c=null==b?void 0:b.gL.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==c?0:c.length)?pUa(this,c.filter(function(d){return oUa(a,d)})):(null==b?0:b.cueRanges)&&pUa(this,b.cueRanges.filter(function(d){return oUa(a,d)}))};
eV.prototype.B=function(a){return void 0!==a.embargo};
eV.prototype.xa=function(){VU.prototype.xa.call(this);this.j={}};g.w(qUa,VU);
qUa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.U(),c=b.widgetReferrer,d=b.hd,e=this.j,f="",h=b.webPlayerContextConfig;h&&(f=h.embedsIframeOriginParam||"");0<c.length&&(a.embeds_widget_referrer=c);0<d.length&&(a.embeds_referring_euri=d);b.D&&0<f.length&&(a.embeds_referring_origin=f);0<e.length&&(b.L("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.FC(g.uS(b))&&e.unshift(159628),b=e.join(","),b=g.sC()?b:g.gg(b,4),a.source_ve_path=b);this.j.length=
0};g.w(rUa,VU);g.w(fV,g.U);fV.prototype.show=function(){g.U.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
fV.prototype.onVideoDataChange=function(a){var b,c,d=null==(b=this.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;d&&(b=sUa(d),g.TG(this.api.Vb(),128)||"dataloaderror"===a||!b?(this.B=0,vUa(this),this.hide()):(a=1E3*(b.remainingTimeSecs||0),0<a&&(this.show(),this.updateValue("label",YGa(b.label)),uUa(this,a))))};
fV.prototype.xa=function(){vUa(this);g.U.prototype.xa.call(this)};g.w(wUa,VU);g.w(gV,g.U);gV.prototype.onClick=function(){this.Ua.logClick(this.element);this.Ua.ib("onFullerscreenEduClicked")};
gV.prototype.Sa=function(){this.Ua.isFullscreen()?this.B?this.j.hide():this.j.show():this.hide();this.Ua.logVisibility(this.element,this.Ua.isFullscreen()&&!this.B)};g.w(hV,VU);hV.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.Qu(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","N\u00e4et tiedot vieritt\u00e4m\u00e4ll\u00e4 alas"),wU(b.Ua,b.element,b),b.C=!0))};
hV.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.B=a,b.Sa())};g.w(xUa,g.U);g.w(AUa,VU);g.w(BUa,VU);g.w(iV,VU);iV.prototype.getSphericalProperties=function(){var a=g.EU(this.api.zb());return a?a.getSphericalProperties():{}};
iV.prototype.setSphericalProperties=function(a){if(a){var b=g.EU(this.api.zb());b&&b.setSphericalProperties(a,!0)}};g.w(CUa,VU);g.k=CUa.prototype;g.k.createClientVe=function(a,b,c,d){this.api.createClientVe(a,b,c,void 0===d?!1:d)};
g.k.createServerVe=function(a,b,c){this.api.createServerVe(a,b,void 0===c?!1:c)};
g.k.setTrackingParams=function(a,b){this.api.setTrackingParams(a,b)};
g.k.logClick=function(a,b){this.api.logClick(a,b)};
g.k.logVisibility=function(a,b,c){this.api.logVisibility(a,b,c)};
g.k.hasVe=function(a){return this.api.hasVe(a)};
g.k.destroyVe=function(a){this.api.destroyVe(a)};g.w(jV,VU);jV.prototype.seekToChapterWithAnimation=function(a){var b=this;if(g.tU(this.api)&&!(0>a)){var c=this.api.getVideoData(),d=c.lk;if(d&&a<d.length){d=g.u(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.index===a){DUa(this,e.startTime,e.title);return}}this.L("web_key_moments_markers")&&(c=c.eU)&&a<c.length&&c.forEach(function(f,h){h===a&&DUa(b,f.timeRangeStartMillis,f.title)})}};
jV.prototype.seekToTimeWithAnimation=function(a,b){g.tU(this.api)&&DUa(this,a,b)};
jV.prototype.setMacroMarkers=function(a,b){b={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:b}}}}}};a=a.getVideoData();a.getWatchNextResponse();a&&null==a.getWatchNextResponse()&&($Qa(a,{raw_watch_next_response:b}),a.oa("dataupdated"))};g.w(GUa,VU);GUa.prototype.xa=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var a=g.u("nexttrack previoustrack play pause seekbackward seekforward".split(" ")),b=a.next();!b.done;b=a.next())kV(b.value,null);VU.prototype.xa.call(this)};g.w(lV,VU);lV.prototype.D=function(a){return void 0!==a.compositeEmbargo};
lV.prototype.xa=function(){VU.prototype.xa.call(this);this.B.clear()};g.w(OUa,VU);g.k=OUa.prototype;g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.Ha(function(l){return 1==l.j?(f=fW(e.api.zb()))?g.z(l,f.Baa([a],b,c,d),3):l.Ka(2):2!=l.j&&(h=l.B,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.updateDownloadState=function(a,b){var c=fW(this.api.zb());return c?c.updateDownloadState(a,b):Promise.reject()};
g.k.pauseVideoDownload=function(a){var b=fW(this.api.zb());b&&b.AQ(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.Ha(function(d){return(c=fW(b.api.zb()))?d.return(c.xF(a)):d.return(Promise.reject())})};
g.k.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=fW(this.api.zb());return b?b.refreshAllStaleEntities(a):Promise.reject()};g.w(mV,VU);mV.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
mV.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.u(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=pL(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=ET(a);$P(e);d=[];e=g.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===YP(a,f,this.api.U().G)&&d.push(f);b=b.concat(PUa(d,!1,c))}a=this.api.sD();b=b.concat(PUa(a,!0,c));c=[];if(this.api.L("web_player_enable_premium_hbr_in_h5_api"))return b=RUa(b),QUa(b),b;a={};b=g.u(b);for(e=
b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(e.formatId=void 0,c.push(e),a[d]=!0);return c};g.w(nV,g.U);nV.prototype.Sa=function(a){a=a?"Sulje pikkuruutu":"Pikkuruutu";this.update({"data-title-no-tooltip":a,title:a});this.api.Jh()};
nV.prototype.onClick=function(){this.api.togglePictureInPicture()};g.w(SUa,VU);SUa.prototype.createButton=function(){var a=this;this.button=new nV(this.api);g.J(this,this.button);this.api.qs(this.button);this.events.T(this.api,"videodatachange",function(){TUa(a)});
TUa(this)};g.w(UUa,VU);g.w(g.pV,g.cG);g.k=g.pV.prototype;g.k.T=function(a,b){this.D.T(this.Z,a,b,void 0,!this.j)};
g.k.cancel=function(){this.C&&(this.C=!1,this.oa("dragend",0,0,null));this.B&&(this.B=!1,this.oa("hoverend",0,0,null),qV(this),oV(this))};
g.k.Aw=function(a){qV(this);this.T(rV("move"),this.DT);this.T(rV("out"),this.oA);this.T("touchstart",this.LL);this.j&&this.T(rV("down"),this.KL);var b=a.target;a=new g.le(a.pageX,a.pageY);this.B=!0;this.oa("hoverstart",a.x,a.y,b);this.oa("hovermove",a.x,a.y,b)};
g.k.DT=function(a){var b=a.target;a=new g.le(a.pageX,a.pageY);if(this.G){var c=this.G;this.G=null;if(c.relatedTarget===b&&me(new g.le(c.pageX,c.pageY),a))return}this.oa("hovermove",a.x,a.y,b)};
g.k.oA=function(a){var b=new g.le(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.pf(this.target,c)){this.G=a;this.oa("hovermove",b.x,b.y,c);return}}catch(d){}qV(this);oV(this);this.B=!1;this.oa("hoverend",b.x,b.y,c)};
g.k.e8=function(a){this.Aw(a);this.KL(a)};
g.k.KL=function(a){if("number"!==typeof a.button||0===a.button){qV(this);this.D.T(document,rV("move"),this.d8);this.D.T(document,rV("up"),this.U2);var b=a.target;if(g.Pc)this.T("dragstart",this.s5);else if(a.preventDefault(),(g.ES||Zr)&&b)a:{for(var c=b;c;){if(rf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.C=!0;a=new g.le(a.pageX,a.pageY);this.oa("dragstart",a.x,a.y,b);this.oa("dragmove",a.x,a.y,b)}};
g.k.s5=function(a){a.preventDefault()};
g.k.d8=function(a){var b=a.target;b===document&&(b=null);a=new g.le(a.pageX,a.pageY);this.oa("hovermove",a.x,a.y,b);this.oa("dragmove",a.x,a.y,b)};
g.k.U2=function(a){qV(this);this.C=!1;var b=QC(a),c=a.target;a=new g.le(a.pageX,a.pageY);b&&g.pf(this.target,b)?(this.T(rV("move"),this.DT),this.T(rV("out"),this.oA),this.T(rV("down"),this.KL),this.T("touchstart",this.LL),this.oa("dragend",a.x,a.y,c)):(oV(this),this.B=!1,this.oa("dragend",a.x,a.y,c),this.oa("hoverend",a.x,a.y,c))};
g.k.LL=function(a){var b=a.changedTouches[0];b&&(qV(this),this.W||(this.T("touchmove",this.Xba),this.T("touchend",this.ET),this.T("touchcancel",this.ET),this.K=b.identifier,a=a.target,this.B||(this.B=!0,this.oa("hoverstart",b.pageX,b.pageY,a)),this.oa("hovermove",b.pageX,b.pageY,a),this.j&&(this.C=!0,this.oa("dragstart",b.pageX,b.pageY,a),this.oa("dragmove",b.pageX,b.pageY,a))))};
g.k.Xba=function(a){var b=VUa(this,a);b&&(this.j&&a.preventDefault(),a=a.target,this.oa("hovermove",b.pageX,b.pageY,a),this.j&&this.oa("dragmove",b.pageX,b.pageY,a))};
g.k.ET=function(a){var b=VUa(this,a);if(b){qV(this);oV(this);this.B=!1;var c=a.target;this.j&&(this.N||a.preventDefault(),this.C=!1,this.oa("dragend",b.pageX,b.pageY,c));this.oa("hoverend",b.pageX,b.pageY,c)}};
g.k.xa=function(){this.j&&(g.Pc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");qV(this);g.cG.prototype.xa.call(this)};g.w(WUa,g.U);WUa.prototype.Mh=function(){g.Yr(this.j,"display","none");this.J.logVisibility(this.j,!1)};g.w(tV,VU);tV.prototype.ra=function(a,b){this.Z=[a,b];this.j.subscribe("dragmove",this.N,this);this.j.subscribe("dragend",this.K,this);this.C||g.Fu(this.delay)};
tV.prototype.Ga=function(){if(this.D){this.C=!0;this.Ea=this.api.getPlaybackRate();this.La=this.api.Vb().isPaused();var a=this.speedmasterUserEdu;g.Yr(a.j,"display","");a.J.logVisibility(a.j,!0);this.api.setPlaybackRate(this.Na);this.api.hideControls();this.api.playVideo();this.ma&&(this.ma.BO=!0);this.W&&(this.W.xI=!0)}};
tV.prototype.N=function(a,b){if(!this.C){a=[a,b];var c=this.Z;c&&a&&2===c.length&&2===a.length?(b=Math.abs(c[0]-a[0]),c=Math.abs(c[1]-a[1]),b=Math.sqrt(b*b+c*c)):b=-1;b<this.Ba?this.Z=a:uV(this)}};
tV.prototype.K=function(){uV(this)};g.w($Ua,VU);$Ua.prototype.onVideoDataChange=function(a){"newdata"===a&&this.api.zb().createSubtitlesModuleIfNeeded()};g.w(vV,g.yb);vV.prototype.preventDefault=function(){g.yb.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
vV.prototype.stopPropagation=function(){g.yb.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.w(g.wV,LL);g.k=g.wV.prototype;g.k.Ou=function(){return!0};
g.k.isView=function(){return!1};
g.k.bR=function(){return!1};
g.k.Fb=function(){return this.j};
g.k.Df=function(){return this.j.src};
g.k.DG=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.gK=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.Us=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.isPaused=function(){return this.j.paused};
g.k.Uf=function(){return this.j.seeking};
g.k.Ph=function(){return this.j.ended};
g.k.YH=function(){return this.j.muted};
g.k.pB=function(a){oBa();this.j.muted=a};
g.k.Lv=function(){return this.j.played||rL([],[])};
g.k.Kh=function(){try{var a=this.j.buffered}catch(b){}return a||rL([],[])};
g.k.GD=function(){return this.j.seekable||rL([],[])};
g.k.CG=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.Ck=function(){return this.j.readyState};
g.k.ZH=function(){return this.j.networkState};
g.k.ph=function(){return this.j.error?this.j.error.code:null};
g.k.qf=function(){return this.j.error?this.j.error.message:""};
g.k.getVideoPlaybackQuality=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.Oh=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.nu=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():nBa()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Ws=function(){var a=this.j;return new g.le(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.is(this.j)};
g.k.setSize=function(a){g.hs(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){oBa();this.j.volume=a};
g.k.sN=function(a){this.G[a]||(this.j.addEventListener(a,this.listener),this.G[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.IC=aa(31);g.k.UF=aa(33);g.k.VF=aa(35);g.k.Qy=aa(37);g.k.gD=function(){return LC(this.j)};
g.k.ls=function(a){g.Mu(this.j,a)};
g.k.ID=function(a){return g.$r(this.j,a)};
g.k.NO=function(){return g.pf(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.xa=function(){for(var a=g.u(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);LL.prototype.xa.call(this)};
g.k.qR=function(a){this.j.disableRemotePlayback=a};xV.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
xV.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)};
xV.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.B=this.j=this.data.length-1};g.w(yV,g.H);yV.prototype.start=function(){this.B.start()};
yV.prototype.stop=function(){this.B.stop()};
yV.prototype.clear=function(){for(var a=g.u(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
yV.prototype.sample=function(){for(var a=g.u(this.C),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new bVa(bkb.has(b)));this.j.get(b).update(c())}this.B.start()};
var bkb=new Set(["networkactivity"]);bVa.prototype.update=function(a){this.j?(this.buffer.add(a-this.Vz||0),this.Vz=a):this.buffer.add(a)};
bVa.prototype.clear=function(){this.buffer.clear();this.Vz=0};g.w(CV,g.U);g.w(EV,g.U);EV.prototype.show=function(){g.U.prototype.show.call(this);this.Sa();this.Ua.L("html5_enable_moving_s4n_window")&&g.PJ(this.Ua.U())&&this.N()};
EV.prototype.hide=function(){g.U.prototype.hide.call(this);this.delay.stop();this.D.stop()};
EV.prototype.Sa=function(){var a=(0,g.FD)(),b=eVa(this.Ua);DV(this.j,b.bandwidth_samples);DV(this.K,b.network_activity_samples);DV(this.C,b.live_latency_samples);DV(this.B,b.buffer_health_samples);var c={};b=g.u(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;this.W[d]!==e&&(c[d]=" "+String(e));this.W[d]=e}this.update(c);a=25<(0,g.FD)()-a?5E3:500;this.delay.start(a)};
EV.prototype.N=function(){this.G?(this.position+=1,15<this.position&&(this.G=!1)):(--this.position,0>=this.position&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.w(hVa,VU);g.w(FV,g.H);FV.prototype.j=function(){var a=(0,g.FD)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(ev(ckb,a));1>a&&this.delay.start()};
var ckb=new dv(0,0,.4,0,.2,1,1,1),nVa=/[0-9.-]+|[^0-9.-]+/g;g.w(GV,g.U);GV.prototype.onClick=function(){var a=this.api.app;a.Ua.ib("SIZE_CLICKED",!a.XO);this.api.logClick(this.element)};
GV.prototype.Sa=function(){g.jG(this,this.api.VO()&&!this.api.isFullscreen()&&3!==this.api.getPresentingPlayerType());if(this.Ib){var a=this.api.ew();if(this.ew!==a){var b=a?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,Y:{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"}}]}:{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,Y:{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.ew?this.updateValue("icon",b):mVa(this.transition,this.element,b);this.ew=a;b=g.xU(this.api,"Oletusn\u00e4kym\u00e4","t");var c=g.xU(this.api,"Teatteritila","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Oletusn\u00e4kym\u00e4":"Teatteritila"});this.api.Jh()}}this.api.logVisibility(this.element,this.Ib)};g.w(oVa,VU);g.w(pVa,VU);HV.prototype.send=function(a,b){var c;return g.Ha(function(d){if(1==d.j)return g.ya(d,2),g.z(d,hC(a,b),4);if(2!=d.j)return d.return(d.B);c=g.Aa(d);if(c instanceof gC)throw new un(tn(ZB(c.xhr)),c.message);throw c;})};
HV.prototype.jD=function(a,b){var c=this,d,e,f,h,l,m;return g.Ha(function(n){if(1==n.j){var p=new Tn;d=xk(p,1,c.bj);a&&xk(d,2,a);b&&xk(d,3,b);return g.z(n,c.send(c.B,Object.assign({},{postBody:d.Hj()},c.j)),2)}e=n.B;f=Ofb(e.xhr.responseText);h=nj(f,2);if(!h.isEmpty()){if(g.sC()&&10>woa())throw Error("Unsupported");l=rg(cda(h));return n.return(tga(l))}m=g.Ij(f,Dn,1);if(!m)throw Error("Missing field");return n.return(m)})};
HV.prototype.SV=function(a){var b=this,c,d;return g.Ha(function(e){if(1==e.j){var f=new Un;f=xk(f,1,b.bj);c=xk(f,2,a);return g.z(e,b.send(b.C,Object.assign({},{postBody:c.Hj()},b.j)),2)}d=e.B;return e.return(Qfb(d.xhr.responseText))})};g.w(JV,VU);JV.prototype.xa=function(){this.C&&(g.dC(this.C),this.C=void 0);VU.prototype.xa.call(this)};
JV.prototype.EN=function(a){var b=this;return g.Ha(function(c){return b.j?c.return(b.j.ready().then(function(){b.Sb.Ni("pot_if");return wVa(b,a)})):c.return(Promise.reject("web po not ready"))})};
JV.prototype.xP=function(a){return wVa(this,a)};
JV.prototype.iS=function(){this.j&&!this.j.isReady()&&KV(this)};g.w(xVa,VU);g.w(LV,g.H);LV.prototype.j=function(){for(var a=g.u(g.Ia.apply(0,arguments)),b=a.next();!b.done;b=a.next())(b=b.value)&&this.features.push(b)};
LV.prototype.xa=function(){for(var a=this.features.length-1;0<=a;a--)this.features[a].dispose();this.features.length=0;g.H.prototype.xa.call(this)};MV.prototype.NP=function(){this.B=(0,g.FD)()};
MV.prototype.reset=function(){this.j=this.B=NaN};
MV.prototype.SP=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.01>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.G&&(c.cttAuthInfo={token:a.G,videoId:a.videoId});bI("seek",c);g.aI({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||cI("pl_ss",this.B,"seek");cI(b,(0,g.FD)(),"seek")}this.reset()}};g.k=yVa.prototype;g.k.reset=function(){ZH(this.timerName)};
g.k.tick=function(a,b){cI(a,b,this.timerName)};
g.k.Ni=function(a){return Exa(a,this.timerName)};
g.k.yu=function(a){YL(a,void 0,this.timerName)};
g.k.infoGel=function(a){g.aI(a,this.timerName)};g.w(CVa,g.cG);g.k=CVa.prototype;g.k.Tk=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Ep=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.oa("shuffle")};
g.k.Wg=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.Fa.ma||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return yS(this.Fa,this.C[0],a)};
g.k.getLength=function(){return this.length};
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.aC(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Rk=function(){return this.Fa.getVideoUrl(g.OV(this).videoId,this.getPlaylistId())};
g.k.xa=function(){this.j=null;g.vb(this.items);g.cG.prototype.xa.call(this)};var PV=new Map;g.w(g.RV,g.cG);g.k=g.RV.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Ih=function(){};
g.k.yl=function(){return!0};
g.k.xa=function(){this.loaded&&this.unload();g.cG.prototype.xa.call(this)};
g.k.pc=function(){return{}};
g.k.getOptions=function(){return[]};g.w(g.UV,g.H);g.k=g.UV.prototype;g.k.Gt=aa(40);g.k.bA=function(){};
g.k.Pr=function(){};
g.k.Nv=function(){return""};
g.k.JQ=aa(41);g.k.xa=function(){this.Pr();g.H.prototype.xa.call(this)};g.w(g.VV,g.UV);g.VV.prototype.Gt=aa(39);g.VV.prototype.bA=function(a){if(this.audioTrack)for(var b=g.u(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.TV(this.B,c.value);a()};
g.VV.prototype.Nv=function(a,b){var c=a.df(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.sC()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.SS(a));this.X.L("web_player_topify_subtitles_for_shorts")&&this.C&&(d.xosf="1");Object.assign(d,this.X.j);return UB(c,d)};
g.VV.prototype.Pr=function(){this.j&&this.j.abort()};g.PVa.prototype.Qt=function(a){this.Fa.Qt(a)};g.dkb=new Map;g.w(g.ZV,g.UV);g.ZV.prototype.Gt=aa(38);
g.ZV.prototype.bA=function(a){var b=this,c=this.C,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.gX&&(d.asrs=1);c=UB(c,d);this.Pr();this.j=g.fC(c,{format:"RAW",onSuccess:function(e){b.j=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"),t="true"===l.getAttribute("lang_default"),v="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.TV(b.B,new g.PS({languageCode:m,languageName:n,name:p,kind:q,id:r,is_servable:!0,is_translateable:v,vss_id:l,is_default:t}))}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.G[m.languageCode]=m.languageName,b.D.push(m)}a()},
withCredentials:!0})};
g.ZV.prototype.Nv=function(a,b){var c=this.C;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};this.X.L("captions_url_add_ei")&&(b.ei=this.eventId);a.translationLanguage&&(b.tlang=g.SS(a));Object.assign(b,this.X.j);return c=UB(c,b)};
g.ZV.prototype.Pr=function(){this.j&&this.j.abort()};WVa.prototype.reload=function(){var a=this;return g.Ha(function(b){if(1==b.j)return $V&&a.module?g.z(b,WebAssembly.instantiate(a.module,a.B),6):a.exports&&a.C?g.z(b,a.C(a.B),5):b.Ka(0);if(6!=b.j)return a.exports=b.B,b.Ka(0);a.instance=b.B;a.exports=a.instance.exports;g.xa(b)})};
g.YK||g.MR&&!g.qC("windows nt")||g.zD||g.VD||woa();var $V="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);g.w(dWa,g.H);g.k=dWa.prototype;g.k.createSubtitlesModuleIfNeeded=function(){hWa(this)&&bW(this,"captions");return!!g.aW(this)};
g.k.LF=function(){return this.J.getVideoData().LF()};
g.k.AR=function(){return this.J.getVideoData().AR()};
g.k.sV=function(){var a=this.Fe.get("heartbeat");bW(this,"heartbeat",!1,!0,this.sV);!a&&this.Fe.has("heartbeat")&&this.J.oa("offlineslatestatechange")};
g.k.lH=function(){bW(this,"annotations_module",!0,void 0,this.lH);var a=this.Fe.get("annotations_module");if(a)for(var b in this.C)if(this.C.hasOwnProperty(b)){var c=b;a.subscribe(c,this.C[c])}};
g.k.ZM=function(){if(!this.Fe.get("ad"))try{eWa(this)?bW(this,"ad",!1,!0,this.ZM):this.J.Ig("ad")}catch(a){this.J.Ig("ad"),g.KF(a)}};
g.k.xi=function(){return this.B};
g.k.Mq=function(){var a={},b=g.aW(this);b&&Object.assign(a,b.Mq());return a};
g.k.cA=function(a,b){Object.assign(this.B,a||null);Object.assign(this.mH,b||null)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.J.L("enable_wn_infocards")&&g.UT(a)&&!g.gW(this)&&this.lH()};
g.k.xa=function(){g.H.prototype.xa.call(this);cW(this,1,!0);for(var a=g.u(Object.entries(vWa)),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.D.has(c)&&PV.delete(b)}this.D.clear()};
var F3={},vWa=(F3.ad="ad.js",F3.annotations_module="annotations_module.js",F3.asmjs="asmjs.js",F3.creatorendscreen="annotations_module.js",F3.embed="embed.js",F3.endscreen="endscreen.js",F3.heartbeat="heartbeat.js",F3.inline_preview="inline_preview.js",F3.kids="kids.js",F3.remote="remote.js",F3.miniplayer="miniplayer.js",F3.offline="offline.js",F3.captions="captions.js",F3.unplugged="unplugged.js",F3.ux="ux.js",F3.webgl="webgl.js",F3.ypc="ypc.js",F3.ypc_clickwrap="ypc_clickwrap.js",F3.yto="yto.js",
F3),qWa="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat inline_preview kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.w(xWa,g.cG);g.k=xWa.prototype;g.k.V2=function(a){a=new g.le(a.pageX,a.pageY);if(!me(a,this.D)){var b=2;this.K&&(b|=8);this.D=a;hW(this,b,!0)}};
g.k.f8=function(){this.K&&hW(this,8,!0);hW(this,2,!1)};
g.k.Aw=function(a){var b=new g.le(a.pageX,a.pageY);me(b,this.D)||(this.D=b,(a=a.target)&&this.aH(a)&&(hW(this,4,!0),this.j.Nc(this.C),this.C=this.j.T(this.target,"mouseover",this.oA),this.N=this.j.T(this.target,"mouseout",this.oA)))};
g.k.oA=function(a){a=a.relatedTarget;a&&this.aH(a)||(this.D=new g.le(NaN,NaN),yWa(this))};
g.k.z7=function(){hW(this,1,!0)};
g.k.O5=function(a){a=a.target;a instanceof Element&&!(0<a.tabIndex)||hW(this,1,!0)};
g.k.FT=function(){this.K=!0;this.j.Nc(this.G);this.G=this.j.T(document,"mouseup",this.W2)};
g.k.W2=function(){this.K=!1;hW(this,8,!1);this.j.Nc(this.G);this.G=this.j.T(this.target,"mousedown",this.FT)};
g.k.GT=function(a){if(a=(a=a.changedTouches)&&a[0])this.Ba=a.identifier,this.j.Nc(this.Z),this.Z=this.j.T(this.target,"touchend",this.X2,void 0,!0),hW(this,1024,!0)};
g.k.X2=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Ba){var d=c;break}}d&&(this.j.Nc(this.Z),this.Z=this.j.T(this.target,"touchstart",this.GT,void 0,!0),hW(this,1024,!1))};
g.k.hq=function(){hW(this,2,!0)};
g.k.resize=function(){g.YK&&yWa(this)};
g.k.toString=function(){return g.cG.prototype.toString.call(this)};g.w(g.jW,g.U);g.k=g.jW.prototype;g.k.lca=function(){this.Sa();this.api.U().L("embeds_add_tooltip_to_large_play_button")&&wU(this.api,this.element,this)};
g.k.Sa=function(){var a=this.api.getVideoData(),b=this.api.U(),c=!!g.DU(this.api);g.Qu(this.element,"ytp-shorts-mode",c);c?b=[{I:"svg",Y:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},V:[{I:"path",Y:{"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"}},{I:"path",Y:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.gU(a)?b=[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",Y:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",Y:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:a.Gf&&a.vp?b=[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",
Y:{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"}},{I:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.N?(g.Qu(this.element,"ytp-touch-device",b.B),b=[b.N?{I:"svg",Y:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",Y:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",Y:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",Y:{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"}},{I:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):b=[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",Y:{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"}},{I:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",b);a.Gf&&a.vp&&(a=a.vp?a.vp:"#1f1f1f",this.Ha("ytp-dni-large-play-button-bg").setAttribute("fill",a))};
g.k.show=function(){g.U.prototype.show.call(this);this.api.U().L("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
g.k.C6=function(){this.api.getVideoData().mutedAutoplay||(this.api.fA(),this.api.playVideo())};
g.k.taa=function(a){this.api.getVideoData().mutedAutoplay||a.preventDefault()};g.w(g.kW,g.U);g.k=g.kW.prototype;g.k.show=function(){var a=this;this.Ib||(this.D.T(this.api,"videodatachange",function(){g.Fu(a.j)}),this.D.T(this.api,"videoplayerreset",function(){g.Fu(a.j)}));
g.U.prototype.show.call(this)};
g.k.hide=function(){this.D&&g.UC(this.D);g.U.prototype.hide.call(this)};
g.k.Zb=function(){g.Fu(this.j)};
g.k.onStateChange=function(){g.Fu(this.j)};
g.k.Y$=function(){g.Fu(this.j)};
g.k.Iw=function(){this.B.stop();this.hide();g.Fu(this.j)};
g.k.Sa=function(){var a=this.api.Vb();if(3===this.api.getPresentingPlayerType()&&(a.isPlaying()||a.isPaused()))var b=!0;else(b=this.api.zb().Fe.get("ypc"))&&b.KJ?b=!0:(b=this.api.U(),b=g.TG(a,2)&&g.zU(this.api)&&b.nh?!0:!1);b?(b=!0,this.C.hide()):this.api.L("web_player_show_frame_zero_when_cued")&&zWa(this)?(b=!0,this.C.hide()):(this.C.show(),b=a.isCued()&&2!==this.api.getPresentingPlayerType()||g.TG(a,2)&&!g.zU(this.api)&&!this.api.rD()||g.TG(a,1024)?!0:!1);var c=this.api.getVideoData();b&&!c.cU?
(this.B.show(),this.qca(this.api.getPlaylist(),c)):(this.B.hide(),g.TG(a,1)||this.B.stop())};
g.k.qca=function(){var a=g.Ia.apply(0,arguments),b=this.api.U(),c,d=null==(c=this.api.getVideoData())?void 0:c.videoId;if(b.L("web_player_show_frame_zero_when_cued")&&d&&zWa(this))var e="https://web.archive.org/web/20240102114909/https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.u(a),c=a.next();!c.done;c=a.next())if(c=c.value,!(!c||c instanceof g.nT&&!c.videoId)){e=this.api.qb().getPlayerSize();var f=g.AS();d=e.width*f;f*=e.height;if(1280<d||720<f)if(e=c.Wg("maxresdefault.jpg"))break;if(640<d||480<f)if(e=c.Wg("maxresdefault.jpg"))break;
if(320<d||180<f)if(e=c.Wg("sddefault.jpg")||c.Wg("hqdefault.jpg")||c.Wg("mqdefault.jpg"))break;if(e=c.Wg("default.jpg"))break}g.DS(b)&&(b=new Image,b.addEventListener("load",function(){Fxa()}),b.src=e?e:"",this.api.xi().tick("ftr"));
this.G.style.backgroundImage=e?"url("+e+")":""};g.w(g.lW,g.U);g.lW.prototype.resize=function(){};
g.lW.prototype.B=function(a){var b=this;CWa(this);var c=a.uN,d=this.api.U();"GENERIC_WITHOUT_LINK"!==c||d.N?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Yd(oW(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Rk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.N?this.api.U().L("html5_enable_bandaid_error_screen")&&"HTML5_SPS_UMP_STATUS_REJECTED"===c&&!d.N?(d=d.hostLanguage,a="//web.archive.org/web/20240102114909/https://support.google.com/youtube/answer/3037019",d&&(a=g.Ml(a,{hl:d})),this.Yd(oW(this,"HTML5_SPS_UMP_STATUS_REJECTED",
a))):this.Yd(g.mW(a.errorMessage)):this.Yd(oW(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//web.archive.org/web/20240102114909/https://www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//web.archive.org/web/20240102114909/https://support.google.com/youtube/?p=player_error1",a&&(c=g.Ml(c,{hl:a})),this.Yd(oW(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Ic&&!d.D&&BWa(this,function(e){if(g.ZU(e,b.api,!zS(b.api.U()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.vc("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",
productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var AWa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.w(DWa,g.U);g.k=DWa.prototype;g.k.onClick=function(a){g.ZU(a,this.J,!0);this.J.logClick(this.element)};
g.k.onVideoDataChange=function(a,b){FWa(this,b);this.jf&&GWa(this,this.jf)};
g.k.Sd=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&FWa(this,b);this.j&&GWa(this,a.state);this.jf=a.state};
g.k.od=function(){this.D.show();this.J.oa("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)};
g.k.Pb=function(){this.D.hide();this.J.oa("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.w(pW,g.U);pW.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.U.prototype.hide.call(this)};
pW.prototype.onStateChange=function(a){this.Dc(a.state)};
pW.prototype.Dc=function(a){if(g.TG(a,128))var b=!1;else{var c;b=(null==(c=this.api.ud())?0:c.At)?!1:g.TG(a,16)||g.TG(a,1)?!0:!1}b?this.j.start():this.hide()};
pW.prototype.B=function(){this.message.style.display="block"};g.w(qW,g.NU);qW.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(HWa(this),this.od()):(this.j&&this.logClick(),this.Pb()))};
qW.prototype.pk=function(a){this.api.isMutedByMutedAutoplay()&&g.VG(a,2)&&this.Pb()};
qW.prototype.onClick=function(){this.api.unMute();this.logClick()};
qW.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.w(g.rW,g.aL);g.k=g.rW.prototype;g.k.init=function(){var a=this.api,b=a.Vb();this.yI=a.getPlayerSize();this.Cc(b);this.kq();this.Zb();this.api.oa("basechromeinitialized",this);this.fO()&&this.api.oa("standardControlsInitialized")};
g.k.onVideoDataChange=function(a,b){var c=this.iE!==b.videoId;if(c||"newdata"===a){a=this.api;a.isFullscreen()||(this.yI=a.getPlayerSize());var d;(null==(d=this.api.getVideoData(1))?0:g.dU(d))&&this.jq()}c&&(this.iE=b.videoId,c=this.Mg,c.Ea=3E3,hW(c,512,!0),this.kq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.u_=572)};
g.k.G9=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.uB=function(){var a=this.api.Ik()&&this.api.gp(),b=this.api.Oz();return this.XM||a||this.wO||b};
g.k.jq=function(){var a=!this.uB();g.Qu(this.api.getRootNode(),"ytp-menu-shown",!a);var b;(null==(b=this.api.getVideoData(1))?0:g.dU(b))&&g.Qu(this.api.getRootNode(),"ytp-hide-controls",!a)};
g.k.aH=function(a){try{if(!g.pf(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!rf(a);)a=a===this.api.getRootNode()?null:g.of(a);return!!a};
g.k.BA=function(a){var b=this.api.getRootNode();g.Qu(b,"ytp-autohide",a);g.Qu(b,"ytp-autohide-active",!0);this.RU.start(a?250:100);a&&(this.OK=!1,g.Ou(b,"ytp-touch-mode"));this.YM=!a;this.api.uK(!a)};
g.k.MP=function(){var a=this.api.getRootNode();g.Qu(a,"ytp-autohide-active",!1)};
g.k.k$=function(){this.XR=!0};
g.k.j$=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.XR=!1,this.YR&&this.Nc(this.YR),0===this.xE&&sW(this,a)?(this.xO(),this.wH.start(),this.YR=this.T(this.api.qb(),"touchmove",this.k$,void 0,!0)):this.wH.stop();LWa(this)&&sW(this,a)&&!this.api.U().Z&&JWa(this);var b=this.dS.Zj();if(!g.mS(this.api.U())&&jS&&MWa(this,a))b&&a.preventDefault();else if(this.OK=!0,g.Mu(this.api.getRootNode(),"ytp-touch-mode"),this.Mg.hq(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b=
this.api.Vb(),!(!this.api.Rh()||g.TG(b,2)&&g.zU(this.api)||g.TG(b,64))){b=Date.now()-this.EX;this.xE+=1;if(350>=b){this.aD=!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.xE-1);0<d&&d<b?(this.pF(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.pF(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));a.preventDefault()}else iW&&this.api.U().Z&&
sW(this,a)&&a.preventDefault();this.EX=Date.now();this.RZ.start()}};
g.k.i$=function(){this.yP.BO=!1;this.api.oa("rootnodemousedown",this.yP)};
g.k.e$=function(a){this.yP.BO||MWa(this,a)||(LWa(this)||!sW(this,a)||this.wH.isActive()||(JWa(this),a.preventDefault()),this.aD&&(this.aD=!1))};
g.k.xO=function(){};
g.k.MF=function(){};
g.k.pF=function(){};
g.k.Yw=function(){};
g.k.Mr=function(){var a=this.api.Vb();g.TG(a,2)&&g.zU(this.api)||(g.TL(a)?this.api.pauseVideo():(this.cn&&(a=this.cn.C,document.activeElement===a.element&&this.api.oa("largeplaybuttonclicked",a.element)),this.api.fA(),this.api.playVideo(),this.cn&&document.activeElement===this.cn.C.element&&(null==(a=this.fO())?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))};
g.k.f$=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!KWa(this,QC(a)))if(a=this.api.U(),(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)&&this.aD)this.aD=!1;else if(a.Rb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.ND(d)})}catch(d){this.ND(d)}};
g.k.ND=function(a){String(a).includes("fullscreen error")?g.LF(a):g.KF(a)};
g.k.g$=function(a){NWa(this,.3,a.scale);a.preventDefault()};
g.k.h$=function(a){NWa(this,.1,a.scale)};
g.k.Zb=function(){var a=this.api.qb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Mg.resize();g.Qu(b,"ytp-fullscreen",this.api.isFullscreen());g.Qu(b,"ytp-large-width-mode",c);g.Qu(b,"ytp-small-mode",this.Vf());g.Qu(b,"ytp-tiny-mode",this.JI());g.Qu(b,"ytp-big-mode",this.Og());this.Bg&&this.Bg.resize(a)};
g.k.pk=function(a){this.Cc(a.state);this.kq()};
g.k.fu=aa(7);g.k.TN=function(){var a=!!this.iE&&!this.api.rf()&&!this.yQ,b=2===this.api.getPresentingPlayerType(),c=this.api.U();if(b){if(Web&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=dW(this.api.zb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.NJ(b.player.U()):!1);return a}return a&&(c.Mm||this.api.isFullscreen()||c.yj)};
g.k.kq=function(){var a=this.TN();this.Gn!==a&&(this.Gn=a,g.Qu(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Cc=function(a){var b=a.isCued()||this.api.Dp()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.ZR&&this.Nc(this.ZR),this.ZR=this.T(this.api.qb(),"touchstart",this.j$,void 0,b));var c=this.Mg,d=a.isPlaying()&&!g.TG(a,32)||this.api.bE();hW(c,128,!d);c=this.Mg;d=3===this.api.getPresentingPlayerType();hW(c,256,d);c=this.api.getRootNode();g.TG(a,2)?d=[q3.ENDED]:(d=[],g.TG(a,8)?d.push(q3.PLAYING):g.TG(a,4)&&d.push(q3.PAUSED),g.TG(a,1)&&!g.TG(a,32)&&d.push(q3.BUFFERING),
g.TG(a,32)&&d.push(q3.SEEKING),g.TG(a,64)&&d.push(q3.UNSTARTED));g.Vb(this.gM,d)||(g.Pu(c,this.gM),this.gM=d,g.Nu(c,d));d=this.api.U();var e=g.TG(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.TG(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:Deb(dW(this.api.zb())))||this.api.Oz()||g.mS(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.Qu(c,"ytp-hide-controls",!f);g.Qu(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.wO);
g.TG(a,128)&&!g.mS(d)?(this.Bg||(this.Bg=new g.lW(this.api),g.J(this,this.Bg),g.GU(this.api,this.Bg.element,4)),this.Bg.B(a.oh),this.Bg.show()):this.Bg&&(this.Bg.dispose(),this.Bg=null)};
g.k.fn=function(){return this.api.Ik()&&this.api.gp()?(this.api.oB(!1,!1),!0):this.api.rf()?(g.AU(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.wO=a;this.jq()};
g.k.Og=function(){return!1};
g.k.Vf=function(){return!this.Og()&&(this.api.getPlayerSize().width<this.u_||290>this.api.getPlayerSize().height)};
g.k.JI=function(){return this.Vf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.bk=function(){return this.OK};
g.k.xn=function(){return null};
g.k.NH=function(){return null};
g.k.Qk=function(){var a=this.api.qb().getPlayerSize();return new g.Vr(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Tt=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.qb().uK(a)};
g.k.hq=function(){};
g.k.fO=function(){return null};
g.k.UN=function(){return this.yI};g.w(tW,g.cG);g.k=tW.prototype;g.k.jn=function(){return 1E3*this.api.getDuration(this.Eo,!1)};
g.k.stop=function(){this.j&&this.Ad.Nc(this.j)};
g.k.Kc=function(){var a=this.api.getProgressState(this.Eo);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Eo,!1)};this.oa("h")};
g.k.getProgressState=function(){return this.B};
g.k.Sd=function(a){g.VG(a,2)&&this.oa("g")};g.w(OWa,g.U);OWa.prototype.onClick=function(){this.J.vc("BACK_CLICKED")};g.w(g.uW,g.U);g.uW.prototype.show=function(){g.U.prototype.show.call(this);g.Fu(this.j)};
g.uW.prototype.hide=function(){this.B.stop();g.U.prototype.hide.call(this)};
g.uW.prototype.MF=function(a){a?g.TG(this.J.Vb(),64)||vW(this,Eva(),"Toista"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?vW(this,Iva(),"Lopeta livetoisto"):vW(this,Bva(),"Keskeyt\u00e4"))};g.w(RWa,g.U);g.k=RWa.prototype;g.k.IF=function(a){a?this.j=wU(this.J,this.element,null):(this.j=this.j,this.j(),this.j=null)};
g.k.od=function(){this.J.U().L("player_new_info_card_format")&&g.Lu(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.mS(this.J.U())||(this.B.show(),g.OE("iv-button-shown"))};
g.k.Pb=function(){g.OE("iv-button-hidden");this.B.hide()};
g.k.Zj=function(){return this.Ib&&4!==this.B.state};
g.k.xa=function(){this.j&&this.j();g.U.prototype.xa.call(this)};
g.k.e9=function(){g.OE("iv-button-mouseover")};
g.k.K8=function(a){this.J.Ik();var b=g.Lu(this.J.getRootNode(),"ytp-cards-teaser-shown");g.OE("iv-teaser-clicked",b);var c;if(null==(c=this.J.getVideoData())?0:g.TT(c)){var d;a=null==(d=this.J.getVideoData())?void 0:g.UT(d);(null==a?0:a.onIconTapCommand)&&this.J.ib("innertubeCommand",a.onIconTapCommand)}else d=0===a.screenX&&0===a.screenY,this.J.oB(!this.J.gp(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(SWa,g.U);g.k=SWa.prototype;g.k.h0=function(){this.J.Ik()&&this.J.gp()&&this.Zj()&&this.Pb()};
g.k.PR=function(){this.Pb();!this.J.Ik()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Sg.Pb();g.OE("iv-teaser-clicked",null!=this.j);if(this.onClickCommand)this.J.ib("innertubeCommand",this.onClickCommand);else{var a;(null==(a=this.J.getVideoData())?0:g.TT(a))||this.J.oB(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.k.Y2=function(){g.OE("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.F$=function(a){this.J.U().L("player_new_info_card_format")&&!g.mS(this.J.U())?this.Sg.Pb():this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Sg.od();this.j||!a||this.J.gp()||this.B&&this.B.isActive()||(this.od(a),g.OE("iv-teaser-shown"))};
g.k.od=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.cv(a.teaserText));this.D.show();this.B=new g.Eu(function(){g.Mu(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.L("player_new_info_card_format")&&!g.mS(this.J.U())&&this.Sg.Pb();this.ML()},0,this);
this.B.start();this.Sg.IF(!1);this.j=new g.Eu(this.Pb,580+a.durationMs,this);this.j.start();this.G.push(this.Ra("mouseover",this.IT,this));this.G.push(this.Ra("mouseout",this.HT,this))};
g.k.ML=function(){if(!this.J.U().L("player_new_info_card_format")&&g.mS(this.J.U())&&this.Ib){var a=this.Sg.element.offsetLeft,b=g.Me("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Sg.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.S4=function(){g.mS(this.J.U())&&this.J.Vf()&&this.Ib&&this.W.start()};
g.k.IT=function(){this.K.stop();this.j&&this.j.isActive()&&this.N.start()};
g.k.HT=function(){this.N.stop();this.j&&!this.j.isActive()&&this.K.start()};
g.k.s9=function(){this.j&&this.j.stop()};
g.k.r9=function(){this.Pb()};
g.k.Op=function(){this.Pb()};
g.k.Pb=function(){!this.j||this.C&&this.C.isActive()||(g.OE("iv-teaser-hidden"),this.D.hide(),g.Ou(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.Eu(function(){for(var a=g.u(this.G),b=a.next();!b.done;b=a.next())this.Nc(b.value);this.G=[];this.j&&(this.j.dispose(),this.j=null);this.Sg.IF(!0);!this.J.Ik()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Sg.Pb()},330,this),this.C.start())};
g.k.Zj=function(){return this.Ib&&4!==this.D.state};
g.k.xa=function(){var a=this.J.getRootNode();a&&g.Ou(a,"ytp-cards-teaser-shown");g.vb(this.B,this.C,this.j);g.U.prototype.xa.call(this)};var G3={},xW=(G3.BUTTON="ytp-button",G3.TITLE_NOTIFICATIONS="ytp-title-notifications",G3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",G3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",G3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",G3);g.w(TWa,g.U);
TWa.prototype.onClick=function(){this.api.logClick(this.element);var a=!this.j;this.updateValue("label",a?"Poista t\u00e4m\u00e4n kanavan uusien videoiden ilmoitukset k\u00e4yt\u00f6st\u00e4.":"Ota k\u00e4ytt\u00f6\u00f6n kaikkien t\u00e4m\u00e4n kanavan uusien videoiden ilmoitukset.");this.updateValue("pressed",a);UWa(this,a)};g.Ra("yt.pubsub.publish",g.OE);g.w(g.yW,g.U);g.yW.prototype.D=function(){window.location.reload()};
g.yW.prototype.j=function(){g.Mu(this.element,"ytp-sb-subscribed")};
g.yW.prototype.B=function(){g.Ou(this.element,"ytp-sb-subscribed")};g.w(YWa,g.U);g.k=YWa.prototype;g.k.J8=function(a){this.api.logClick(this.j);var b=this.api.U();b.B||b.bb?$Wa(this)&&(this.isExpanded()?this.iH():this.GH()):g.On(zW(this));a.preventDefault()};
g.k.cR=function(){bXa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.GH=function(){if($Wa(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.C&&this.C.stop();this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));
var a=this.api.getVideoData();this.B&&a.Hl&&a.subscribed&&(this.B.show(),this.api.logVisibility(this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.iH=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.C&&this.C.start()};
g.k.Sa=function(){var a=this.api.U();g.jG(this,!g.DU(this.api));var b=this.api.getVideoData(),c=this.api.U(),d=this.api.getVideoData();this.D=!1;var e=!!d.videoId&&!!d.Oc&&!!d.profilePicture;2===this.api.getPresentingPlayerType()?this.D=e&&!!d.isListed&&!!d.author:g.mS(c)&&(this.D=e&&!g.gU(d)&&!c.C&&!(c.Z&&200>this.api.getPlayerSize().width));c=b.profilePicture;a=g.mS(a)?b.expandedTitle:b.author;c=void 0===c?"":c;a=void 0===a?"":a;this.D?(this.K!==c&&(this.j.style.backgroundImage="url("+c+")",this.K=
c),this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",zW(this)),this.updateValue("channelLogoLabel",g.qK("Kanavan $CHANNEL_NAME kuva",{CHANNEL_NAME:a})),g.Mu(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Ou(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,this.D&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.El);this.updateValue("expandedTitle",b.expandedTitle);this.api.L("web_player_ve_conversion_fixes_for_channel_info")||
this.updateValue("channelTitleLink",zW(this));this.updateValue("expandedSubtitle",b.expandedSubtitle)};
g.k.Hc=function(a){g.U.prototype.Hc.call(this,a);this.api.logVisibility(this.j,this.D&&a)};g.w(AW,g.kG);AW.prototype.CY=function(){this.oa("size-change")};
AW.prototype.focus=function(){this.content.focus()};
AW.prototype.xY=function(){this.oa("back")};g.w(g.BW,AW);g.k=g.BW.prototype;g.k.Tc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Rb(this.items,a,cXa);if(0<=b)return;b=~b;g.Nb(this.items,b,0,a);mf(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.hQ,this);this.menuItems.oa("size-change")};
g.k.Bh=function(a){a.unsubscribe("size-change",this.hQ,this);this.isDisposed()||(g.Hb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.oa("size-change"))};
g.k.hQ=function(){this.menuItems.oa("size-change")};
g.k.focus=function(){for(var a=0,b=0;b<this.items.length;b++){var c=this.items[b].element;if("menuitemradio"===c.getAttribute("role")){if("true"===c.getAttribute("aria-checked")){a=b;break}}else break}this.items[a].focus()};
g.k.zp=function(){return this.items.length};g.w(DW,g.QU);DW.prototype.j=function(a){a.defaultPrevented||39!==a.keyCode||(this.element.click(),a.preventDefault())};g.w(dXa,g.U);g.k=dXa.prototype;g.k.show=function(){g.U.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.k.hide=function(){g.U.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.k.Z2=function(a){var b=QC(a),c=g.pf(this.closeButton.element,b),d=g.pf(this.element,b);a=this.j&&g.pf(this.j,b)&&g.dH(a);b&&(d||a)&&!c||this.hide()};
g.k.b3=function(){WWa(g.xS(this.Ua.U()),"user_info_panel",function(){window.location.reload()})};
g.k.Sa=function(){var a=this.Ua.U(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.Ri};this.updateValue("icon",Cva());this.updateValue("watchingAsUsername",g.qK("Katsotaan tilill\u00e4 $USER_NAME",b));a.Ri?this.updateValue("watchingAsEmail",g.qK("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.w(fXa,g.BW);g.k=fXa.prototype;g.k.V4=function(){this.Lb.Pb()};
g.k.P8=function(){fUa(this.Xy.element)};
g.k.a9=function(){GW(this,this.J.getDebugText(!0))&&vW(this.Rd,mva())};
g.k.b9=function(){GW(this,this.J.getVideoEmbedCode())&&vW(this.Rd,qva());this.J.logClick(this.pn.element);uwa("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.c9=function(){GW(this,this.J.getVideoUrl(!0,!0))&&vW(this.Rd,sG());this.J.logClick(this.getVideoUrl.element);uwa("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.d9=function(){GW(this,this.J.getVideoUrl(!1,!0))&&vW(this.Rd,sG());this.J.logClick(this.zn.element);uwa("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.Wk)||YU(b,a)};
g.k.l9=function(){this.J.setLoopVideo(this.Wk.getValue());this.Lb.Pb();this.J.logClick(this.Wk.element)};
g.k.a$=function(a){this.J.reportPlaybackIssue();if(g.ZU(a,this.J,!zS(this.J.U()))){a=this.J;var b=a.app.getFeedbackProductData();a.vc("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Lb.Pb()};
g.k.t$=function(){g.nU(this.J,"isVideoInfoVisible",[])?g.nU(this.J,"hideVideoInfo",[]):g.nU(this.J,"showVideoInfo",[]);this.Lb.Pb()};
g.k.s$=function(){this.zl&&(this.fG||(this.fG=new dXa(this.J,this.zl.element),g.J(this,this.fG),g.GU(this.J,this.fG.element,4)),this.fG.show(),this.Lb.Pb(),this.J.logClick(this.zl.element))};
g.k.onVideoDataChange=function(a,b){this.JF(b)};
g.k.JF=function(a){var b=this.J.U(),c=2===this.J.getPresentingPlayerType(),d=!c||a.isListed;d=!b.ma&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://web.archive.org/web/20240102114909/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.Ga&&(b.partnerid=a.Ga),b=g.Ml("//web.archive.org/web/20240102114909/https://support.google.com/googleplay/",b));g.jG(this.pn,d&&a.allowEmbed);g.jG(this.getVideoUrl,d);g.jG(this.zn,d&&
!a.isLivePlayback);this.qF.Yd(b,"href");var e;null==(e=this.Wk)||g.jG(e,!a.isLivePlayback&&!c);var f;null==(f=this.zl)||g.jG(f,!c)};
g.k.Hc=function(a){g.BW.prototype.Hc.call(this,a);this.J.logVisibility(this.pn.element,a);this.J.logVisibility(this.getVideoUrl.element,a);this.J.logVisibility(this.zn.element,a);this.Wk&&this.J.logVisibility(this.Wk.element,a);this.zl&&this.J.logVisibility(this.zl.element,a)};g.w(g.HW,g.NU);g.k=g.HW.prototype;g.k.show=function(){g.NU.prototype.show.call(this);this.GB()};
g.k.hide=function(){g.NU.prototype.hide.call(this);1<this.j.length&&g.IW(this)};
g.k.GB=function(){jXa(this);this.Ib&&(hXa(this),g.hs(this.element,this.size))};
g.k.Dj=function(){var a=this.j.pop();iXa(this,a,this.j[this.j.length-1],!0)};
g.k.d3=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Pb();a.preventDefault();break;case 37:1<this.j.length&&this.Dj();a.preventDefault();break;case 39:a.preventDefault()}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.xa=function(){g.NU.prototype.xa.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.w(mXa,g.HW);g.k=mXa.prototype;g.k.f3=function(a){var b=QC(a);if(!(b&&(tf(b,"a")||tf(b,null,"ytp-no-contextmenu"))||this.Ib)){var c;this.Ba=(a=null==(c=a.touches)?void 0:c.item(0))?new g.le(a.clientX,a.clientY):new g.le(0,0);this.ra.start()}};
g.k.dZ=function(){this.ra.stop()};
g.k.K$=function(){this.open(this.Ba)};
g.k.XV=function(){if(this.C&&gXa(this.C)){var a=gXa(this.C).element;a.tabIndex=-1;a.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.k.show=function(){this.C||(this.C=new fXa(this.J,this,this.Rd),g.J(this,this.C),g.FW(this,this.C));this.C.onLoopChange(this.J.getLoopVideo());g.HW.prototype.show.call(this);this.J.logVisibility(this.element,!0);this.C.Hc(!0)};
g.k.hide=function(){lXa(this);g.HW.prototype.hide.call(this);this.J.logVisibility(this.element,!1);this.C&&this.C.Hc(!1)};
g.k.N8=function(a){var b=QC(a);this.Ib||b&&(tf(b,"a")||tf(b,null,"ytp-no-contextmenu"))||(a.preventDefault(),this.open(new g.le(a.pageX,a.pageY)))};
g.k.od=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.le(b.x,b.y))}g.HW.prototype.od.call(this,a)};
g.k.open=function(a){nXa(this);var b=this.J.getVideoData();g.Qu(this.element,"ytp-dni",b.Gf);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.HW.prototype.od.call(this);var c=document.body;b=new Or(0,Infinity,Infinity,0);var d=He(c);for(var e=d.j.body,f=d.j.documentElement,h=Zba(d.j);c=pia(c);)if(!(g.We&&0==c.clientWidth||g.Pc&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=bs(c,"overflow")){var l=g.fs(c),m=new g.le(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=Yba(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.Vr(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.ds(this.element,new g.le(d.left,d.top));g.UC(this.D);this.D.T(document,"contextmenu",this.W8);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.e3)};
g.k.W8=function(a){if(!a.defaultPrevented){var b=QC(a);g.pf(this.element,b)||this.Pb();this.J.U().disableNativeContextMenu&&a.preventDefault()}};
g.k.onFullscreenToggled=function(){this.Pb();nXa(this)};
g.k.e3=function(){this.Pb()};g.w(JW,g.U);JW.prototype.onClick=function(){var a=this,b,c,d,e;return g.Ha(function(f){if(1==f.j)return b=a.api.U(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.z(f,qXa(a,e),2);f.B&&pXa(a);a.api.logClick(a.element);g.xa(f)})};
JW.prototype.Sa=function(){this.updateValue("icon",{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{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","Kopioi linkki");this.visible=oXa(this);g.Qu(this.element,"ytp-copylink-button-visible",
this.visible);g.jG(this,this.visible);this.tooltip.Jh();this.api.logVisibility(this.element,this.visible&&this.Z)};
JW.prototype.Hc=function(a){g.U.prototype.Hc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
JW.prototype.xa=function(){g.U.prototype.xa.call(this);g.Ou(this.element,"ytp-copylink-button-visible")};g.w(KW,g.U);KW.prototype.show=function(){g.U.prototype.show.call(this);g.Fu(this.B)};
KW.prototype.hide=function(){this.D.stop();this.C=0;g.Ou(this.element,"ytp-chapter-seek");g.Ou(this.element,"ytp-time-seeking");g.U.prototype.hide.call(this)};
KW.prototype.pF=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=-1===a?this.W:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.Hu(this.B);this.D.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.J.qb().getPlayerSize().height;e=this.J.qb().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.Ha("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";1===a?(a=this.J.qb().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.Ha("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");rXa(this,this.G?this.C:d)};g.w(OW,g.U);g.k=OW.prototype;g.k.pJ=function(){};
g.k.CA=function(){};
g.k.vB=function(){return!0};
g.k.Dba=function(){if(this.expanded){this.Qa.show();var a=this.D.element.scrollWidth}else a=this.D.element.scrollWidth,this.Qa.hide();this.Bb=34+a;g.Qu(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Bb)+"px";this.Na.start()};
g.k.C5=function(){this.badge.element.style.width=(this.expanded?this.Bb:34)+"px";this.Va.start()};
g.k.sJ=function(a){this.W=a;NW(this);MW(this);this.Fm()};
g.k.nca=function(){g.Qu(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.AK=function(){return this.ma||this.W||!this.K};
g.k.Fm=function(){this.vB()?this.N.show():this.N.hide();tXa(this)};
g.k.JT=function(){this.enabled=!1;this.Fm()};
g.k.mca=function(){this.Fm()};
g.k.G8=function(a){this.bb=1===a;this.Fm();g.Qu(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.Z8=function(){g.Qu(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.Fm()};g.w(QW,g.HW);QW.prototype.open=function(a,b){this.initialize(a.items)&&this.od(b,!!b)};
QW.prototype.initialize=function(a){g.CW(this.Re);if(void 0===a||0===a.length)return!1;var b=a.length;a=g.u(a);for(var c=a.next();!c.done;c=a.next())this.Tc(c.value,b--);return!0};
QW.prototype.Tc=function(a,b){a.menuNavigationItemRenderer?wXa(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&xXa(this,a.menuServiceItemRenderer,b)};g.w(zXa,OW);g.k=zXa.prototype;g.k.B9=function(a){var b,c;if(null==(b=this.Rb)?0:null==(c=b.menu)?0:c.menuRenderer)this.Xa.open(this.Rb.menu.menuRenderer,a.target),a.preventDefault()};
g.k.f9=function(){this.J.ib("innertubeCommand",this.Ic);this.J.logClick(this.infoButton.element)};
g.k.vB=function(){return!!this.j};
g.k.AK=function(){return!!this.j};
g.k.pJ=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.Ub&&this.J.ib("innertubeCommand",this.Ub),PW(this,!1))};
g.k.CA=function(){PW(this,!0);var a,b;(null==(a=this.j)?0:null==(b=a.bannerData)?0:b.dismissedStatusKey)&&this.tb.push(this.j.bannerData.dismissedStatusKey);this.dB()};
g.k.JT=function(){this.dB();RW(this)};
g.k.nba=function(a){var b=this,c;if(a.id!==(null==(c=this.j)?void 0:c.identifier)){this.dB();c=g.u(this.ra);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.itemData)&&e.identifier===a.id){h=f=void 0;var l=(null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.dismissedStatusKey)||"";if(this.tb.includes(l))break;this.j=e;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.B=!0,this.J.setTrackingParams(this.badge.element,
d.trackingParams));this.N.show();NW(this);g.jG(this.Ba,!d.stayInApp);GXa(this);EXa(this);this.Ub=g.R(d.onTapCommand,OF);if(e=g.R(d.menuOnTap,OF))this.Rb=g.R(e,kib);e=void 0;this.banner.update({thumbnail:null==(e=(d.thumbnailSources||[])[0])?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,affiliateDisclaimer:d.affiliateDisclaimer,vendor:AXa(this)});l=h=f=e=void 0;(null==(e=d)?0:null==(f=e.hiddenProductOptions)?0:f.showDropCountdown)&&(null==(h=d)?0:null==
(l=h.hiddenProductOptions)?0:l.dropTimestampMs)&&(this.kb=new g.Eu(function(){FXa(b)},1E3),this.Ba.hide(),this.countdownTimer.show(),FXa(this))}}}};
g.k.dB=function(){this.j&&(this.j=void 0,this.Fm())};
g.k.onVideoDataChange=function(a,b){var c=this;"dataloaded"===a&&RW(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=null==b?void 0:null==(d=b.getPlayerResponse())?void 0:null==(e=d.videoDetails)?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.R(null==(h=b.getWatchNextResponse())?void 0:null==(l=h.playerOverlays)?void 0:null==(m=l.playerOverlayRenderer)?void 0:m.productsInVideoOverlayRenderer,iib);this.J.L("web_player_enable_info_button_in_banner_on_desktop")&&
a&&!f?this.infoButton.show():this.infoButton.hide();this.J.L("web_player_enable_overflow_button_in_banner_on_desktop")&&(this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var n=null==b?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=null==b?void 0:b.trendingOfferEntityKey;var p;if(h=null==b?void 0:null==(p=b.dismissButton)?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.C=!0;var q;(p=null==b?void 0:null==(q=b.dismissButton)?
void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.nG(p));this.Ic=null==b?void 0:b.onClickCommand;this.ra.length||(CXa(this,n),EXa(this));var r;null==(r=this.ac)||r.call(this);this.ac=g.BT.subscribe(function(){CXa(c,n);EXa(c)})}else{var t;
null==(t=this.ac)||t.call(this);this.dB()}};
g.k.xa=function(){RW(this);GXa(this);OW.prototype.xa.call(this)};g.w(LXa,g.U);LXa.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.w(MXa,g.NU);g.k=MXa.prototype;g.k.show=function(){g.NU.prototype.show.call(this);this.J.oa("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);NXa(this,!0)};
g.k.hide=function(){g.NU.prototype.hide.call(this);this.J.oa("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);NXa(this,!1)};
g.k.getId=function(){return this.D};
g.k.zp=function(){return this.itemData.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.Em)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.Em)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.Em)?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.u(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if(null==(l=b.Em)?0:l.ctaButtons)for(b=g.u(b.Em.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.R(l.value,
$gb))l=new LXa(this.J,l,this.j),l.Ee&&(this.itemData.push(l),l.Ja(this.items))}};
g.k.xa=function(){this.hide();g.NU.prototype.xa.call(this)};g.w(QXa,g.U);g.k=QXa.prototype;g.k.onVideoDataChange=function(a,b){PXa(this,b);this.jf&&SXa(this,this.jf)};
g.k.Sd=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&PXa(this,b);SXa(this,a.state);this.jf=a.state};
g.k.DY=function(a){(this.D=a)?this.hide():this.j&&this.show()};
g.k.j3=function(){this.B||this.od();this.showControls=!0};
g.k.g3=function(){this.B||this.Pb();this.showControls=!1};
g.k.od=function(){this.j&&!this.D&&(this.C.show(),this.J.oa("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))};
g.k.Pb=function(){this.j&&!this.D&&(this.C.hide(),this.J.oa("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))};
g.k.rba=function(){this.B=!1;this.showControls||this.Pb()};var ekb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(ekb).reduce(function(a,b){a[ekb[b]]=b;return a},{});
var fkb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(fkb).reduce(function(a,b){a[fkb[b]]=b;return a},{});
var gkb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(gkb).reduce(function(a,b){a[gkb[b]]=b;return a},{});var hkb,ikb;hkb=[{option:"#fff",text:"Valkoinen"},{option:"#ff0",text:"Keltainen"},{option:"#0f0",text:"Vihre\u00e4"},{option:"#0ff",text:"Syaani"},{option:"#00f",text:"Sininen"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Punainen"},{option:"#080808",text:"Musta"}];ikb=[{option:0,text:SW(0)},{option:.25,text:SW(.25)},{option:.5,text:SW(.5)},{option:.75,text:SW(.75)},{option:1,text:SW(1)}];
g.VW=[{option:"fontFamily",text:"Fonttiperhe",options:[{option:1,text:"Tasalevyinen Serif"},{option:2,text:"Suhteellinen Serif"},{option:3,text:"Tasalevyinen Sans-Serif"},{option:4,text:"Suhteellinen Sans-Serif"},{option:5,text:"Tavallinen"},{option:6,text:"Kursiivi"},{option:7,text:"Isot kirjaimet"}]},{option:"color",text:"Fontin v\u00e4ri",options:hkb},{option:"fontSizeIncrement",text:"Fonttikoko",options:[{option:-2,text:SW(.5)},{option:-1,text:SW(.75)},{option:0,text:SW(1)},{option:1,text:SW(1.5)},
{option:2,text:SW(2)},{option:3,text:SW(3)},{option:4,text:SW(4)}]},{option:"background",text:"Taustav\u00e4ri",options:hkb},{option:"backgroundOpacity",text:"Taustan l\u00e4pin\u00e4kym\u00e4tt\u00f6myys",options:ikb},{option:"windowColor",text:"Ikkunan v\u00e4ri",options:hkb},{option:"windowOpacity",text:"Ikkunan l\u00e4pin\u00e4kym\u00e4tt\u00f6myys",options:ikb},{option:"charEdgeStyle",text:"Merkkien reunojen tyyli",options:[{option:0,text:"Ei mit\u00e4\u00e4n"},{option:4,text:"Varjostus"},{option:1,
text:"Korotettu"},{option:2,text:"Upotettu"},{option:3,text:"Hahmotelma"}]},{option:"textOpacity",text:"Fontin l\u00e4pin\u00e4kym\u00e4tt\u00f6myys",options:[{option:.25,text:SW(.25)},{option:.5,text:SW(.5)},{option:.75,text:SW(.75)},{option:1,text:SW(1)}]}];var jkb=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.w(YXa,g.aL);g.k=YXa.prototype;
g.k.JW=function(a){a.repeat||(this.C.xI=!1);var b=!1,c=a.keyCode,d=QC(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.rU(this.api.app)||jkb.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.yf&&!g.rU(this.api.app)&&(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);wW(this.Rd,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);
wW(this.Rd,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Rh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.Rh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&UW(this,!0);(b||h)&&this.Mg.hq();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.K&&(a={keyCode:a.keyCode,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,
shiftKey:a.shiftKey,handled:a.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.vc("onKeyPress",a))};
g.k.KW=function(a){this.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&a.preventDefault()};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){this.api.oa("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.xI)return b;(c=g.EU(this.api.zb()))&&(c=c.pu)&&c.Ib&&(c.EW(a),b=!0);switch(a){case 9:UW(this,!0);b=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&!this.G&&!this.api.U().yf){var l,m;a=null==(l=this.progressBar)?void 0:null==(m=l.B)?void 0:m.isEnabled;b=this.Mr(a)}}return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.xI=!1);var m=!1,n=this.api.U();if(n.yf&&!g.rU(this.api.app))return m;var p=g.EU(this.api.zb());if(p&&(p=p.pu)&&p.Ib)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.DW(a)}n.N||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,0==="awesome".indexOf(this.B)?(m=!0,7===this.B.length&&Zka(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m=0==="awesome".indexOf(this.B)));if(!m&&(!g.rU(this.api.app)||
jkb.includes(a))){var q=this.api.getVideoData(),r,t;p=null==(r=this.progressBar)?void 0:null==(t=r.B)?void 0:t.isEnabled;r=q?q.lk:[];t=fZ?d:c;switch(a){case 80:b&&!n.Va&&(vW(this.Rd,Fva(),"Edellinen"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Va&&(vW(this.Rd,yva(),"Seuraava"),this.api.nextVideo(),m=!0);break;case 74:this.api.Rh()&&(this.api.startSeekCsiAction(),this.j?LW(this.j,-1,10):vW(this.Rd,{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,
S:"ytp-svg-fill",Y:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),m=!0);break;case 76:this.api.Rh()&&(this.api.startSeekCsiAction(),this.j?LW(this.j,1,10):vW(this.Rd,{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),m=!0);break;case 37:this.api.Rh()&&(this.api.startSeekCsiAction(),t?(t=VXa(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(sXa(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?LW(this.j,-1,5):vW(this.Rd,{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),m=!0));break;case 39:this.api.Rh()&&(this.api.startSeekCsiAction(),t?(t=UXa(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(sXa(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(null!=this.j?LW(this.j,1,5):vW(this.Rd,{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),wW(this.Rd,this.api.getVolume(),!1)):(this.api.mute(),wW(this.Rd,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Va:this.Mr(p);break;case 75:m=this.Mr(p);break;case 190:b?n.enableSpeedOptions&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),PWa(this.Rd,!1),m=!0):this.api.Rh()&&(this.step(1),m=!0);break;case 188:b?n.enableSpeedOptions&&
(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),PWa(this.Rd,!0),m=!0):this.api.Rh()&&(this.step(-1),m=!0);break;case 70:bUa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0);
break;case 27:p?(this.progressBar.Eq(),m=!0):this.K()&&(m=!0)}if("3"!==n.controlsType)switch(a){case 67:g.aW(this.api.zb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),QWa(this.Rd,!n||n&&!n.displayName),m=!0);break;case 79:WW(this,"textOpacity");break;case 87:WW(this,"windowOpacity");break;case 187:case 61:WW(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:WW(this,"fontSizeIncrement",!0,!0)}var v;b||c||d||(48<=a&&57>=a?v=a-48:96<=a&&105>=a&&(v=a-96));null!=v&&this.api.Rh()&&
(this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(v/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Mg.hq()}this.G||this.api.oa("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.C);return m};
g.k.step=function(a){this.api.Rh();if(this.api.Vb().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30),void 0,void 0,0<a?77:78)}};
g.k.Mr=function(a){if(!this.api.U().Va){var b;var c,d=null==(b=this.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;if(d){var e;b="PLAYBACK_MODE_PAUSED_ONLY"===(null==(e=g.R(d.miniplayer,vib))?void 0:e.playbackMode)}else b=!1;b&&this.api.ib("onExpandMiniplayer");a?this.progressBar.yN():(a=!g.TL(this.api.Vb()),this.Rd.MF(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.k.xa=function(){g.Hu(this.D);g.aL.prototype.xa.call(this)};g.w(g.XW,g.U);g.XW.prototype.qo=aa(13);g.XW.prototype.Sa=function(){var a=this.J.U(),b=a.C||this.J.L("web_player_hide_overflow_button_if_empty_menu")&&this.Vh.isEmpty();a=g.mS(a)&&g.CU(this.J)&&g.TG(this.J.Vb(),128);var c=this.J.getPlayerSize();this.visible=this.J.Vf()&&!a&&240<=c.width&&!g.gU(this.J.getVideoData())&&!b&&!this.j&&!g.DU(this.J);g.Qu(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.Jh();this.J.logVisibility(this.element,this.visible&&this.Z)};
g.XW.prototype.Hc=function(a){g.U.prototype.Hc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
g.XW.prototype.xa=function(){g.U.prototype.xa.call(this);g.Ou(this.element,"ytp-overflow-button-visible")};g.w(ZXa,g.NU);g.k=ZXa.prototype;g.k.l3=function(a){a=QC(a);g.pf(this.element,a)&&(g.pf(this.j,a)||g.pf(this.closeButton,a)||OU(this))};
g.k.Pb=function(){g.NU.prototype.Pb.call(this);this.J.Sl(this.element)};
g.k.show=function(){this.Ib&&this.J.oa("OVERFLOW_PANEL_OPENED");g.NU.prototype.show.call(this);this.element.setAttribute("aria-modal","true");aYa(this,!0)};
g.k.hide=function(){g.NU.prototype.hide.call(this);this.element.removeAttribute("aria-modal");aYa(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.Zj()&&OU(this)};
g.k.isEmpty=function(){return 0===this.actionButtons.length};
g.k.focus=function(){for(var a=g.u(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Ib){b.focus();break}};g.w(bYa,g.U);bYa.prototype.onClick=function(a){g.ZU(a,this.api)&&this.api.playVideoAt(this.index)};g.w(cYa,g.NU);g.k=cYa.prototype;g.k.show=function(){g.NU.prototype.show.call(this);this.C.T(this.api,"videodatachange",this.NL);this.C.T(this.api,"onPlaylistUpdate",this.NL);this.NL()};
g.k.hide=function(){g.NU.prototype.hide.call(this);g.UC(this.C);this.updatePlaylist(null)};
g.k.NL=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.Ha("ytp-playlist-menu-title-name").removeAttribute("href"),this.D&&(this.Nc(this.D),this.D=null))};
g.k.lK=function(){var a=this.playlist,b=a.author,c=b?"tekij\u00e4lt\u00e4 $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.getLength())};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.qK(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.u(this.j);for(d=c.next();!d.done;d=c.next())d.value.dispose();
c=a.getLength();this.j=[];for(d=0;d<c;d++){var e=new bYa(this.api,a,d);this.j.push(e);e.Ja(this.items)}this.selected=this.j[a.index];this.G=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.J$=function(a){var b=this.api.getVideoUrl(!0);g.$U(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.lK,this),this.playlist=a,this.G=null,a?(a.subscribe("shuffle",this.lK,this),this.lK()):this.Ib&&this.hide()):this.playlist&&this.lK()};
g.k.focus=function(){this.selected.focus()};
g.k.xa=function(){this.hide();g.NU.prototype.xa.call(this)};g.w(YW,g.U);YW.prototype.hide=function(){g.U.prototype.hide.call(this);this.Hc(!1);this.api.Jh()};
YW.prototype.Sa=function(){var a=g.mS(this.api.U());g.Qu(this.element,"ytp-playlist-menu-button-tiny",400>this.api.qb().getPlayerSize().width&&!a);g.DU(this.api)?this.hide():this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.qK("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.qK("Soittolista: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Ib||(this.show(),this.api.Jh()),
this.visible=!0,this.Hc(!0)):this.Ib&&this.hide()};
YW.prototype.Hc=function(a){g.U.prototype.Hc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
YW.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Sa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Sa,this);this.Sa()};g.w(dYa,g.U);g.k=dYa.prototype;g.k.n3=function(){this.D?hYa(this):gYa(this)};
g.k.m3=function(){this.D?(ZW(this),this.K=!0):gYa(this)};
g.k.o8=function(){this.G=!0;this.EF(1);this.J.oa("promotooltipacceptbuttonclicked",this.acceptButton);ZW(this);this.B&&this.J.logClick(this.acceptButton)};
g.k.U8=function(){this.G=!0;this.EF(2);ZW(this);this.B&&this.J.logClick(this.dismissButton)};
g.k.o3=function(a){if(1===this.J.getPresentingPlayerType()||2===this.J.getPresentingPlayerType()&&this.N){var b=!0,c=g.Me("ytp-ad-overlay-ad-info-dialog-container"),d=QC(a);if(this.C&&d&&g.pf(this.C,d))this.C=null;else{1===this.J.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=iYa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.pf(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.pf(this.element,d))}this.j&&this.Ib&&!c&&(!d||b&&g.dH(a))&&(this.G=!0,ZW(this))}}};
g.k.EF=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.R(d,Zgb))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.J.un(),(null==a?0:Mwa(d,a.rN))&&fI(a,d,e))}};
g.k.Zb=function(){this.K||(this.j||(this.j=eYa(this)),hYa(this))};
var fYa={"ytp-settings-button":g.Hva()};g.w($W,g.U);$W.prototype.onStateChange=function(a){this.Dc(a.state)};
$W.prototype.Dc=function(a){g.jG(this,g.TG(a,2))};
$W.prototype.onClick=function(){this.J.Vb();this.J.playVideo()};g.w(aX,g.U);aX.prototype.onClick=function(a){this.api.logClick(this.element);var b=g.Ml(this.api.U().Ga,{focusSearch:"true"}),c={};g.nU(this.api,"addEmbedsConversionTrackingParams",[c]);g.KP(c,"emb_search");b=g.Ml(b,c);g.On(b);a.preventDefault()};
aX.prototype.j=function(){if(this.api.L("embeds_web_enable_search_button")){var a=this.api.U();var b=this.api.getVideoData(),c=this.api.qb().getPlayerSize().width;a=g.mS(a)&&c>=this.B&&!a.C&&!b.isAd()&&!g.DU(this.api)}else a=!1;this.visible=a;g.jG(this,this.visible);g.Qu(this.element,"ytp-search-button-visible",this.visible);g.Qu(this.element,"ytp-show-search-title",!this.api.Vf());this.api.logVisibility(this.element,this.visible&&this.Z)};
aX.prototype.Hc=function(a){g.U.prototype.Hc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.w(g.bX,g.U);g.k=g.bX.prototype;g.k.uo=aa(10);g.k.onClick=function(){var a=this,b=this.api.U(),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){kYa(a,f)})}catch(f){f instanceof Error&&kYa(this,f)}else this.ye.fn(),OU(this.B,this.element,!1);
this.api.logClick(this.element)};
g.k.Sa=function(){var a=this.api.U(),b=g.DU(this.api);g.Qu(this.element,"ytp-show-share-title",g.mS(a)&&!b);this.ye.Og()&&b?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Yr(this.element,"right",a+"px")):b&&g.Yr(this.element,"right","0px");this.updateValue("icon",{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});
this.visible=jYa(this);g.Qu(this.element,"ytp-share-button-visible",this.visible);g.jG(this,this.visible);this.tooltip.Jh();this.api.logVisibility(this.element,jYa(this)&&this.Z)};
g.k.Hc=function(a){g.U.prototype.Hc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
g.k.xa=function(){g.U.prototype.xa.call(this);g.Ou(this.element,"ytp-share-button-visible")};g.w(mYa,g.NU);g.k=mYa.prototype;g.k.q3=function(a){a=QC(a);g.pf(this.G,a)||g.pf(this.closeButton,a)||OU(this)};
g.k.Pb=function(){g.NU.prototype.Pb.call(this);this.tooltip.Sl(this.element);this.api.logVisibility(this.j,!1);for(var a=g.u(this.C),b=a.next();!b.done;b=a.next())b=b.value,this.api.hasVe(b.element)&&this.api.logVisibility(b.element,!1)};
g.k.show=function(){var a=this.Ib;g.NU.prototype.show.call(this);this.Sa();a||this.api.ib("onSharePanelOpened")};
g.k.M7=function(){this.Ib&&this.Sa()};
g.k.Sa=function(){var a=this;g.Mu(this.element,"ytp-share-panel-loading");g.Ou(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&fI(this.api.un(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Ou(a.element,"ytp-share-panel-loading"),oYa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.qK("Jaa linkki $URL",{URL:b}));fUa(this.j);this.api.logVisibility(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.Zj()&&OU(this)};
g.k.focus=function(){this.j.focus()};
g.k.xa=function(){g.NU.prototype.xa.call(this);nYa(this)};g.w(rYa,OW);g.k=rYa.prototype;g.k.xa=function(){wYa(this);OW.prototype.xa.call(this)};
g.k.pJ=function(a){a.target!==this.dismissButton.element&&(PW(this,!1),this.J.ib("innertubeCommand",this.onClickCommand))};
g.k.CA=function(){this.La=!0;PW(this,!0);this.Fm()};
g.k.I9=function(a){this.Ba=a;this.Fm()};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.La=!1,this.W=!0,this.K=this.ma=!1,wYa(this),vYa(this,!1),this.G=this.j=!1,dX(this),sYa(this);if(a||!b.videoId)this.C=this.B=!1;var c,d;if(null==b?0:null==(c=b.getPlayerResponse())?0:null==(d=c.videoDetails)?0:d.isLiveContent)this.qg(!1);else{var e,f,h;b=g.R(null==(e=b.getWatchNextResponse())?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:h.productsInVideoOverlayRenderer,
iib);this.Ba=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=null==b?void 0:b.featuredProductsEntityKey)){f=g.BT.getState().entities;var l;if(null==(l=gP(f,"featuredProductsEntity",e))?0:l.productsData){this.qg(!1);return}}this.enabled=!0;if(!this.B){var m;l=null==(m=b.badgeInteractionLogging)?void 0:m.trackingParams;(this.B=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.C){var n;if(this.C=!(null==(n=b.dismissButton)||!n.trackingParams)){var p;
this.J.setTrackingParams(this.dismissButton.element,(null==(p=b.dismissButton)?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,vYa(this,!0),sYa(this),m=uYa(this,m),n=[],0<m.length&&n.push(m[0]),1<m.length&&(p=new g.U({I:"div",S:"ytp-suggested-action-more-products-icon"}),g.J(this,p),n.push(p),n.push.apply(n,g.oa(m.slice(1)))),this.ra=new g.U({I:"div",V:n,S:"ytp-suggested-action-content-forward-container"}),g.J(this,this.ra),this.Ea.element.append(this.ra.element));this.text=
g.nG(b.text);var q;if(m=null==(q=b.dismissButton)?void 0:q.a11yLabel)this.rb=g.nG(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.Af()}uXa(this);NW(this);this.Fm()}};
g.k.vB=function(){return!this.Ba&&this.enabled&&!this.La&&!this.J.Vf()&&!this.bb&&(this.K||this.W)};
g.k.sJ=function(a){OW.prototype.sJ.call(this,a);if(this.j||this.G)this.timing&&cX(this.timing.preview)&&(this.j=!1,dX(this),this.G=!1,dX(this),this.J.wf("shopping_overlay_preview_collapsed"),this.J.wf("shopping_overlay_preview_expanded"),a=eX(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),cX(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.wf("shopping_overlay_expanded"),a.end=1E3*this.timing.expanded.endSec),this.J.Af([a])),
this.ma=!0,NW(this);dX(this)};
g.k.qg=function(a){(this.K=a)?(MW(this),NW(this,!1)):(wYa(this),this.Ga.start());this.Fm()};
g.k.Af=function(a){var b=this.timing;a=(void 0===a?0:a)+this.J.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;cX(d)&&(pYa(d,a),c.push(eX(d.startSec,d.endSec,"shopping_overlay_visible")));cX(e)&&(pYa(e,a),d=e.startSec+1,c.push(eX(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(eX(d,e.endSec,"shopping_overlay_preview_expanded")));cX(b)&&(pYa(b,a),c.push(eX(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.Af(c)};g.w(XYa,g.U);
XYa.prototype.Sa=function(){var a=this.api.U();g.jG(this,g.mS(a)&&g.DU(this.api));this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Ib);var b=this.api.getVideoData(),c=!1;2===this.api.getPresentingPlayerType()?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.Oc&&!!b.profilePicture:g.mS(a)&&(c=!!b.videoId&&!!b.Oc&&!!b.profilePicture&&!g.gU(b)&&!a.C&&!(a.Z&&200>this.api.getPlayerSize().width));var d=b.profilePicture;a=g.mS(a)?b.expandedTitle:b.author;d=void 0===d?"":d;a=void 0===
a?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",fX(this)),this.updateValue("channelLogoLabel",g.qK("Kanavan $CHANNEL_NAME kuva",{CHANNEL_NAME:a})),g.Mu(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Ou(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.Z);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.api.logVisibility(this.channelName,
c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.El);this.updateValue("expandedTitle",b.expandedTitle);this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",fX(this))};g.w(gX,g.NU);gX.prototype.show=function(){g.NU.prototype.show.call(this);this.j.start()};
gX.prototype.hide=function(){g.NU.prototype.hide.call(this);this.j.stop()};
gX.prototype.jt=function(a,b){"dataloaded"===a&&((this.jj=b.jj,this.zf=b.zf,isNaN(this.jj)||isNaN(this.zf))?this.C&&(this.J.wf("intro"),this.J.removeEventListener(g.kK("intro"),this.K),this.J.removeEventListener(g.lK("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.kK("intro"),this.K),this.J.addEventListener(g.lK("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.jK(this.jj,this.zf,{priority:9,namespace:"intro"}),
this.J.Af([a]),this.C=!0))};g.w(hX,g.U);hX.prototype.onClick=function(){this.J.nu()};
hX.prototype.Sa=function(){var a=!0;g.mS(this.J.U())&&(a=a&&480<=this.J.qb().getPlayerSize().width);g.jG(this,a);this.updateValue("icon",this.J.Oh()?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,Y:{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"}}]}:
{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.w(ZYa,g.U);ZYa.prototype.xa=function(){this.j=null;g.U.prototype.xa.call(this)};g.w(iX,g.U);iX.prototype.onClick=function(){this.J.ib("innertubeCommand",this.B)};
iX.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()};
iX.prototype.K=function(){this.j.disabled=null==this.B;g.Qu(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Kc()};g.w(jX,iX);jX.prototype.onClickCommand=function(a){g.R(a,AT)&&this.Kc()};
jX.prototype.updateVideoData=function(a,b){var c,d,e;a=g.R(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,zQa);var f;this.B=null==(f=g.R(null==a?void 0:a.playerBarActionButton,g.nN))?void 0:f.command;iX.prototype.K.call(this)};
jX.prototype.Kc=function(){var a="",b=this.D.j,c,d="clips"===(null==(c=this.J.getLoopRange())?void 0:c.type);if(1<b.length&&!d){a=1E3*this.J.getProgressState().current;c=TW(b,a);a=b[c].title||"Osat";if(c!==this.currentIndex||this.C)this.J.ib("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;iX.prototype.N.call(this,a)};g.w(kX,g.U);kX.prototype.Sd=function(a){g.TG(a.state,32)?bZa(this,this.api.Xj()):this.Ib&&(g.TG(a.state,16)||g.TG(a.state,1))||this.j.hide()};
kX.prototype.If=function(){var a=this.api.Vb();(g.TG(a,32)||g.TG(a,16))&&cZa(this)};
kX.prototype.G=function(){this.C=NaN;cZa(this)};
kX.prototype.hide=function(){this.B&&bZa(this,null);g.U.prototype.hide.call(this)};g.w(dZa,g.U);g.k=dZa.prototype;g.k.onClick=function(){var a=this;if(this.J.U().Rb||this.J.U().Z){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(b){a.ND(b)})}catch(b){this.ND(b)}}else OU(this.message,this.element,!0)};
g.k.ND=function(a){String(a).includes("fullscreen error")?g.LF(a):g.KF(a);this.XP()};
g.k.XP=function(){this.disable();this.message.od(this.element,!0)};
g.k.Ew=function(){KC()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.O4=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.XP()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=IC(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Koko n\u00e4yt\u00f6n tila ei ole k\u00e4ytett\u00e4viss\u00e4. $BEGIN_LINKLue lis\u00e4\u00e4$END_LINK.":"Selaimesi ei tue koko n\u00e4yt\u00f6n tilaa. $BEGIN_LINKLue lis\u00e4\u00e4$END_LINK.").split(/\$(BEGIN|END)_LINK/);this.message=new g.NU(this.J,{I:"div",Ma:["ytp-popup","ytp-generic-popup"],Y:{role:"alert",tabindex:"0"},
V:[b[0],{I:"a",Y:{href:"https://web.archive.org/web/20240102114909/https://support.google.com/youtube/answer/6276924",target:this.J.U().W},ya:b[2]},b[4]]},100,!0);this.message.hide();g.J(this,this.message);this.message.subscribe("show",function(c){a.ye.Bv(a.message,c)});
g.GU(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.k.Sa=function(){var a=bUa(this.J),b=this.J.U().Z&&250>this.J.getPlayerSize().width;g.jG(this,a&&!b);this.J.logVisibility(this.element,this.Ib)};
g.k.Am=function(a){if(a){var b={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g",
S:"ytp-fullscreen-button-corner-1",V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.xU(this.J,"Poistu koko n\u00e4yt\u00f6n tilasta","f");this.update({"data-title-no-tooltip":"Poistu koko n\u00e4yt\u00f6n tilasta"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.LF(c)})}else b={I:"svg",
Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",
V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.xU(this.J,"Koko n\u00e4ytt\u00f6","f"),this.update({"data-title-no-tooltip":"Koko n\u00e4ytt\u00f6"});a=this.message?null:a;this.update({title:a,icon:b});this.ye.Le().Jh()};
g.k.xa=function(){this.message||((0,this.j)(),this.j=null);g.U.prototype.xa.call(this)};g.w(lX,g.U);lX.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=0<this.j?1:-1,b=Math.abs(this.j),c=this.J.wi().PN();c&&LW(c,a,b);this.B.isActive()?this.C=!0:(a=["ytp-jump-spin"],0>this.j&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.oa(a)),g.Fu(this.B))};g.w(mX,iX);mX.prototype.onClickCommand=function(a){g.R(a,hib)&&this.Kc()};
mX.prototype.updateVideoData=function(){var a,b;this.B=null==(a=fZa(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;iX.prototype.K.call(this)};
mX.prototype.Kc=function(){var a="",b=this.D.K,c,d=null==(c=fZa(this))?void 0:c.headerTitle;c=d?g.nG(d):"";var e;d="clips"===(null==(e=this.J.getLoopRange())?void 0:e.type);1<b.length&&!d&&(a=1E3*this.J.getProgressState().current,e=TXa(b,a),a=null!=e?b[e].title:c,null!=e&&e!==this.currentIndex&&(this.J.ib("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));iX.prototype.N.call(this,a)};g.w(nX,g.U);nX.prototype.onClick=function(){this.J.ib("onCollapseMiniplayer");this.J.logClick(this.element)};
nX.prototype.Sa=function(){this.visible=!this.J.isFullscreen();g.jG(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
nX.prototype.Hc=function(a){g.U.prototype.Hc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.w(g.oX,g.U);g.k=g.oX.prototype;g.k.KT=function(a){this.visible=300<=a.width||this.Ga;g.jG(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
g.k.t9=function(){this.J.U().Xa?this.J.isMuted()?this.J.unMute():this.J.mute():OU(this.message,this.element,!0);this.J.logClick(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.J.U();a=0===d?1:50<a?1:0;if(this.G!==a){var f=this.ra;isNaN(f)?iZa(this,a):kVa(this.Ea,function(l){iZa(c,f+(c.G-f)*l)},250);
this.G=a}d=0===d?1:0;if(this.D!==d){var h=this.W;isNaN(h)?jZa(this,d):kVa(this.ma,function(l){jZa(c,h+(c.D-h)*l)},250);
this.D=d}e.Xa&&(e=g.xU(this.J,"Mykist\u00e4","m"),d=g.xU(this.J,"Poista mykistys","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Poista mykistys":"Mykist\u00e4"}),this.tooltip.Jh())};
g.k.Hc=function(a){g.U.prototype.Hc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
var gZa=["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"],hZa=["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.w(g.pX,g.U);g.pX.prototype.onStateChange=function(a){this.Dc(a.state)};
g.pX.prototype.Dc=function(a){var b=g.NT(this.J.getVideoData()),c=!1;g.TL(a)?a=b?4:2:g.TG(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.xU(this.J,"Keskeyt\u00e4","k");this.update({"data-title-no-tooltip":"Keskeyt\u00e4"});break;case 3:b="Toista uud.";this.update({"data-title-no-tooltip":"Toista uud."});break;case 1:b=g.xU(this.J,"Toista","k");this.update({"data-title-no-tooltip":"Toista"});break;case 4:b="Lopeta livetoisto",this.update({"data-title-no-tooltip":"Lopeta livetoisto"})}3===
a?this.update({title:b,icon:kZa(a)}):(this.update({title:b}),(b=kZa(a))&&this.j&&3!==this.j?mVa(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.Jh();this.j=a}};
g.pX.prototype.onVideoDataChange=function(){g.Qu(this.element,"ytp-play-button-playlist",g.CU(this.J))};
g.pX.prototype.Mr=function(a){this.J.logClick(this.element);if(g.TL(this.J.Vb()))this.J.pauseVideo();else{if(this.J.jg()&&this.J.Vb().isCued()){var b={},c;if(null==(c=this.J.getVideoData())?0:c.G)b.cttAuthInfo={token:this.J.getVideoData().G,videoId:this.J.getVideoData().videoId};bI("direct_playback",b);this.J.xi().timerName="direct_playback"}else 3===this.j&&NV(this.J.xi());this.J.playVideo()}this.J.jg()&&"click"===(null==a?void 0:a.type)&&this.element.blur()};g.w(g.qX,g.U);g.k=g.qX.prototype;g.k.onVideoDataChange=function(){mZa(this);this.D&&(this.Nc(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.T(this.J,"progresssync",this.r3);this.C=nZa(this);lZa(this);this.OL(this.J.qb().getPlayerSize())};
g.k.OL=function(a){a=void 0===a?this.J.qb().getPlayerSize():a;var b,c="clips"===(null==(b=this.J.getLoopRange())?void 0:b.type);a=(g.CU(this.J)||this.j&&g.HU(this.J)&&!this.J.L("web_hide_next_button")||oZa(this))&&!c&&(this.j||400<=a.width);g.jG(this,a);this.J.logVisibility(this.element,a)};
g.k.onClick=function(a){this.J.logClick(this.element);var b=!0;this.K?b=g.ZU(a,this.J):a.preventDefault();b&&(this.j&&5===this.J.getPresentingPlayerType()?this.J.oa("ytoprerollinternstitialnext"):this.j?(NV(this.J.xi()),this.J.oa("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(NV(this.J.xi()),this.J.oa("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))};
g.k.r3=function(){var a=nZa(this);a!==this.C&&(this.C=a,lZa(this))};
g.k.xa=function(){this.B&&(this.B(),this.B=null);mZa(this);g.U.prototype.xa.call(this)};g.w(qZa,g.U);g.k=qZa.prototype;g.k.t3=function(a){this.QL(a.pageX);this.PL(a.pageX+a.deltaX);rZa(this)};
g.k.QL=function(a){this.ra=a-this.La};
g.k.PL=function(a){a-=this.La;!isNaN(this.ra)&&0<this.thumbnails.length&&(this.W=a-this.ra,0<this.thumbnails.length&&0!==this.W&&(this.B=this.G+this.W,a=wZa(this,this.B),this.B<=this.j/2&&this.B>=vZa(this)?(this.api.seekTo(a,!1,void 0,void 0,25),this.api.L("web_fix_fine_scrubbing_drag")?g.Yr(this.Ba,"transform","translateX("+(this.B-this.j/2)+"px)"):g.Yr(this.C,"transform","translateX("+this.B+"px)"),pZa(this,a)):this.B=this.G))};
g.k.s3=function(){var a=300>(0,g.FD)()-this.Qa;if(5>Math.abs(this.W)&&!a){this.Qa=(0,g.FD)();a=this.ra+this.W;var b=this.j/2-a;this.QL(a);this.PL(a+b);rZa(this);this.api.logClick(this.C)}rZa(this)};
g.k.GA=function(){rX(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(wZa(this,this.B),void 0,void 0,void 0,26);this.api.playVideo();a&&this.api.logClick(this.playButton)};
g.k.onExit=function(a){this.api.seekTo(this.Na,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)};
g.k.Zb=function(a,b){this.La=a;this.j=b;rX(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Na=this.api.getCurrentTime(),pZa(this,this.Na),g.Qu(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ga=this.T(this.element,"wheel",this.t3),this.logVisibility(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.Qu(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ga&&this.Nc(this.Ga);this.logVisibility(this.isEnabled)};
g.k.reset=function(){this.disable();this.K=[];this.Ea=!1};
g.k.logVisibility=function(a){this.api.logVisibility(this.element,a);this.api.logVisibility(this.C,a);this.api.logVisibility(this.dismissButton,a);this.api.logVisibility(this.playButton,a)};
g.k.xa=function(){for(;this.D.length;){var a=void 0;null==(a=this.D.pop())||a.dispose()}g.U.prototype.xa.call(this)};
g.w(sZa,g.U);g.w(tZa,g.U);g.w(xZa,g.U);g.w(sX,g.U);sX.prototype.Fb=function(a){return"PLAY_PROGRESS"===a?this.K:"LOAD_PROGRESS"===a?this.G:"LIVE_BUFFER"===a?this.D:this.B};AZa.prototype.update=function(a,b,c,d){c=void 0===c?0:c;this.width=b;this.D=c;this.j=b-c-(void 0===d?0:d);this.position=g.ie(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.w(BZa,g.U);g.w(g.vX,g.kG);g.k=g.vX.prototype;
g.k.k0=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.wf("timedMarkerCueRange");EZa(this);for(var c=g.u(b.He),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Na[d])?void 0:e.markerType;e=void 0;var h=null==(e=this.Na[d])?void 0:e.markers;if(!h)break;if("MARKER_TYPE_TIMESTAMPS"===f){a=g.u(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new BZa;h=void 0;f.title=(null==(h=e.title)?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j=
Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=null!=(l=null==(h=e.onActive)?void 0:h.innertubeCommand)?l:void 0;KZa(this,f)}LZa(this,this.K);a=this.K;f=this.ue;e=[];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=WXa(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.Af(e);this.zf=this.Na[d];a=!0}else if("MARKER_TYPE_HEATMAP"===f){d=this.Na[d];p=n=e=m=l=h=void 0;if(d&&
d.markers){f=null!=(e=null==(p=d.markersMetadata)?void 0:null==(n=p.heatmapMetadata)?void 0:n.minHeightDp)?e:0;e=null!=(h=null==(m=d.markersMetadata)?void 0:null==(l=m.heatmapMetadata)?void 0:l.maxHeightDp)?h:60;h=this.j.length;l=null;for(m=0;m<h;m++){p=this.j[m].startTime;var q=m===h-1?Infinity:this.j[m+1].startTime;m===this.G.length&&DZa(this);n=[];l&&n.push(l);for(var r=g.u(d.markers),t=r.next();!t.done;t=r.next()){t=t.value;var v=Number(t.startMillis);v>=p&&v<=q&&n.push(t)}0<e&&(this.ra.style.height=
e+"px");p=this.G[m];q=n;t=f;var x=e,B=0===m;B=void 0===B?!1:B;yZa(p,x);r=q;v=p.j;B=void 0===B?!1:B;var F=1E3/r.length,G=[];G.push({x:0,y:100});for(var I=0;I<r.length;I++){var L=(I+.5)*F,P=100-g.ie(100*(r[I].intensityScoreNormalized||0),t/v*100,x/v*100);0!==I||B||G.push({x:0,y:P});G.push({x:L,y:P});I===r.length-1&&G.push({x:1E3,y:P})}G.push({x:1E3,y:100});r=G;q=0===q.length?"":Wxa(r);p.C.setAttribute("d",q);p.Ee=""!==q;g.Qu(p.api.getRootNode(),"ytp-heat-map",p.Ee);0<n.length&&(l=n[n.length-1])}g.wX(this)}e=
void 0;f=[];if(d=null==(e=d.markersDecoration)?void 0:e.timedMarkerDecorations)for(d=g.u(d),e=d.next();!e.done;e=d.next())e=e.value,m=l=h=void 0,f.push({visibleTimeRangeStartMillis:null!=(h=e.visibleTimeRangeStartMillis)?h:-1,visibleTimeRangeEndMillis:null!=(l=e.visibleTimeRangeEndMillis)?l:-1,decorationTimeMillis:null!=(m=e.decorationTimeMillis)?m:NaN,label:e.label?g.nG(e.label):""});d=f;this.heatMarkersDecorations=d}}b.eU=this.K;g.Qu(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.Zb=function(){g.wX(this);yX(this);LZa(this,this.K);if(this.B){var a=g.fs(this.element).x||0;this.B.Zb(a,this.N)}};
g.k.onClickCommand=function(a){if(a=g.R(a,AT)){var b=a.key;a.isVisible&&b&&PZa(this,b)}};
g.k.I$=function(a){this.api.ib("innertubeCommand",this.ue[a.id])};
g.k.Kc=function(){yX(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.fK()};
g.k.u3=function(a){if(!a.defaultPrevented){var b=!1;switch(a.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);b=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);b=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);b=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);b=!0;break;case 38:this.api.seekBy(5,void 0,void 0,72);b=!0;break;case 40:this.api.seekBy(-5,void 0,void 0,71),b=!0}b&&a.preventDefault()}};
g.k.jt=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.K6=function(){this.jt("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.Ee();c&&(fU(a)||WZa(this)?this.He=!1:this.He=a.allowLiveDvr,g.Qu(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!fU(a))));f_a(this,this.api.Rh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;CX(this);for(zX(this,this.ma,this.kb);0<this.G.length;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.tb={};var d;null==(d=this.B)||d.reset();HX(this);g.Qu(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
uX(this))}else this.fK();this.Mh()}if(a){var e;d="clips"===(null==(e=this.Eb)?void 0:e.type);if(e=!a.isLivePlayback){e=this.api.getVideoData();b=g.BQa(e);c=GZa(e);var f;e=null!=b||null!=c&&0<c.length||0<(null==(f=e.jy)?void 0:f.length)}if(e&&!d){f=this.api.getVideoData();d=g.BQa(f);e=!1;if(null==d?0:d.markersMap){e=this.api.getVideoData();var h;e.Ex=(null==(h=d.visibleOnLoad)?void 0:h.key)||e.Ex;h=g.u(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.tb[d.key]=d.value,
d.value.onChapterRepeat&&(e.n8=d.value.onChapterRepeat));null!=e.Ex&&PZa(this,e.Ex);e=!0}if(0<f.jy.length){h=g.BT.getState().entities;d=g.u(f.jy);for(b=d.next();!b.done;b=d.next()){b=b.value;var l=void 0;c=null==(l=gP(h,"macroMarkersListEntity",b))?void 0:l.markersList;var m=l=void 0;if("MARKER_TYPE_TIMESTAMPS"===(null==(l=c)?void 0:l.markerType)||"MARKER_TYPE_HEATMAP"===(null==(m=c)?void 0:m.markerType))this.Na[b]=c}e=this.k0()||e}!e&&(h=GZa(f))&&(IZa(this,h),f.lk=this.j,HZa(this));XZa(this,null);
a.Z_&&0===this.G.length&&(a=a.Z_,f=a.key,a.isVisible&&f&&PZa(this,f))}else CZa(this),EZa(this)}yX(this)};
g.k.L6=function(a){this.W&&!g.TG(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.W.cancel();var b;(null==(b=this.B)?0:b.isEnabled)&&g.TG(a.state,8)&&this.api.pauseVideo()};
g.k.LT=function(a){var b=!!this.Eb!==!!a,c=this.Eb;this.Eb=a;XZa(this,c);"clips"!==(null==a?void 0:a.type)&&a||(a?(this.updateValue("clipstarticon",xva()),this.updateValue("clipendicon",xva()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",pva()),this.updateValue("clipendicon",ova()),this.updateValue("clipstarttitle","Katso koko video"),this.updateValue("clipendtitle","Katso koko video")),b&&(this.updateVideoData(this.api.getVideoData(),
!0),g.wX(this)),CX(this));zX(this,this.ma,this.kb)};
g.k.L9=function(a,b,c){var d=g.fs(this.element),e=xX(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=gH(this.C,Number(c.getAttribute("data-position")),0)*e+g.fs(this.progressBar).x);this.bb.x=a-d.x;this.bb.y=b-d.y;a=xX(this);c=BX(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:fU(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=gH(this.C,m)*xX(this).j),b=this.C.B;
WZa(this)&&(b=this.C.B);m=f||g.cH(this.He?c-this.C.j:c-b);b=a.position+this.Of;c-=this.api.Pc();var n;if(null==(n=this.B)||!n.isEnabled)if(this.api.Xj()){if(1<this.j.length){n=AX(this,this.bb.x,!0);if(!this.Eb)for(d=0;d<this.j.length;)g.Qu(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.G.length)for(d=0;d<this.j.length;d++)g.Qu(this.G[d].element,"ytp-heatmap-hover",d===n)}if(0<this.K.length)for(n=this.bb.x,d=g.u(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=QZa(this,e.timeRangeStartMillis/
(1E3*this.C.j),xX(this)),g.Qu(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.L("web_key_moments_markers")?this.zf?(n=TXa(this.K,1E3*c),n=null!=n?this.K[n].title:""):(n=TW(this.j,1E3*c),n=this.j[n].title):(n=TW(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=TW(this.j,1E3*c);this.Xa=YZa(this,c,d)?d:YZa(this,c,d+1)?d+1:-1;g.Qu(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Xa&&1<this.j.length);d=!1;
e=g.u(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.cH(h.decorationTimeMillis/1E3),d=!0)}this.jd!==d&&(this.jd=d,this.api.logVisibility(this.Od,this.jd));g.Qu(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.D?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.N-a.position&&(d=2);this.api.U().Z&&
(l-=10);this.G.length&&this.G[0].Ee&&(l-=14*(this.D?2:1),this.Ga||(this.Ga=!0,this.api.logVisibility(this.ra,this.Ga)));var q;if(uX(this)&&((null==(q=this.B)?0:q.isEnabled)||0<this.Va)){var r;l-=(null==(r=this.B)?0:r.isEnabled)?EX(this):this.Va}q=void 0;uX(this)&&(q="Ved\u00e4 yl\u00f6sp\u00e4in siirty\u00e4ksesi tarkemmin",this.Ea||(this.Ea=!0,this.api.logVisibility(this.hd,this.Ea)));this.tooltip.EK(b,c,m,!!f,l,n,d,q)}else this.tooltip.EK(b,c,m,!!f,l);g.Mu(this.api.getRootNode(),"ytp-progress-bar-hover");
VZa(this)};
g.k.K9=function(){this.Mh();g.Ou(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ga&&(this.Ga=!1,this.api.logVisibility(this.ra,this.Ga));this.Ea&&(this.Ea=!1,this.api.logVisibility(this.hd,this.Ea))};
g.k.J9=function(a,b){uX(this)&&this.B&&(this.B.Ea?rX(this.B,this.api.getCurrentTime()):uZa(this.B),this.B.show(),g.Qu(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.Bd&&(this.Bd.dispose(),this.Bd=null);this.Qf=b;1<this.j.length&&-1!==this.Xa?this.api.seekTo(this.j[this.Xa].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(BX(this,xX(this)),!1,void 0,void 0,7);g.Mu(this.element,"ytp-drag");(this.Ie=g.TL(this.api.Vb()))&&this.api.pauseVideo()};
g.k.M9=function(){if(uX(this)&&this.B){var a=EX(this);this.Va>=.5*a?(this.B.enable(),rX(this.B,this.api.getCurrentTime()),e_a(this,a)):HX(this)}if(g.TG(this.api.Vb(),32)||3===this.api.getPresentingPlayerType()){var b;if(null==(b=this.B)?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.Xa)this.api.seekTo(this.j[this.Xa].startTime/1E3,void 0,void 0,void 0,7);else{a=BX(this,xX(this));this.api.seekTo(a,void 0,void 0,void 0,7);b=g.u(this.heatMarkersDecorations);
for(var c=b.next();!c.done;c=b.next())c=c.value,1E3*a>=c.visibleTimeRangeStartMillis&&1E3*a<=c.visibleTimeRangeEndMillis&&this.api.logClick(this.Od)}g.Ou(this.element,"ytp-drag");this.Ie&&!g.TG(this.api.Vb(),2)&&this.api.playVideo()}}};
g.k.N9=function(a,b){a=xX(this);a=BX(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;uX(this)&&(null==(c=this.B)?0:c.Ea)&&(rX(this.B,a),this.B.isEnabled||(this.Va=g.ie(this.Qf-b-10,0,EX(this)),e_a(this,this.Va)))};
g.k.Mh=function(){this.tooltip.yO()};
g.k.zY=function(){this.Eb||(this.updateValue("clipstarticon",nva()),this.updateValue("clipendicon",nva()),g.Mu(this.element,"ytp-clip-hover"))};
g.k.yY=function(){this.Eb||(this.updateValue("clipstarticon",pva()),this.updateValue("clipendicon",ova()),g.Ou(this.element,"ytp-clip-hover"))};
g.k.fK=function(){this.clipStart=0;this.clipEnd=Infinity;CX(this);zX(this,this.ma,this.kb)};
g.k.pca=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.La[c]){var d=g.$e("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.La[c]=b;this.Ub[c]=d;g.Ku(d,b.style);ZZa(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else d_a(this,b)};
g.k.Laa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())d_a(this,b.value)};
g.k.Eq=function(a){this.B&&(this.B.onExit(null!=a),HX(this))};
g.k.yN=function(a){this.B&&(this.B.play(null!=a),HX(this))};
g.k.xa=function(){f_a(this,!1);g.kG.prototype.xa.call(this)};g.w(IX,g.U);IX.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
IX.prototype.Sa=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1<this.J.getOption("remote","receivers").length);g.jG(this,a&&400<=this.J.qb().getPlayerSize().width);this.J.logVisibility(this.element,this.Ib);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",zc:!0,Y:{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.lva())}g.Qu(this.element,"ytp-remote-button-active",this.isActive())}};
IX.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Lb,b=this.element;if(a.Zj())a.Pb();else{a.initialize();a:{var c=g.u(a.Re.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,1===d.priority){c=d;break a}c=null}c&&(c.open(),a.od(b));a.od(b)}}this.J.logClick(this.element)};g.w(JX,g.U);JX.prototype.j=function(a){var b=this.J.U(),c=400;this.J.L("web_player_small_hbp_settings_menu")&&b.N?c=300:b.Z&&(c=200);a=this.B&&a.width>=c;g.jG(this,a);this.J.logVisibility(this.element,a)};
JX.prototype.C=function(){if(this.Lb.Ib)this.Lb.Pb();else{var a=g.aW(this.J.zb());a&&!a.loaded&&(a.Ih("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Lb.od(this.element)}};
JX.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.FU(this.J),e=c&&!!g.EU(this.J.zb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.Qu(this.element,"ytp-hdr-quality-badge",a);g.Qu(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.Qu(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.Qu(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.Qu(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.Qu(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.Qu(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(KX,XU);KX.prototype.isLoaded=function(){var a=g.gW(this.J.zb());return void 0!==a&&a.loaded};
KX.prototype.Sa=function(){void 0!==g.gW(this.J.zb())&&3!==this.J.getPresentingPlayerType()?this.j||(this.Lb.Tc(this),this.j=!0):this.j&&(this.Lb.Bh(this),this.j=!1);YU(this,this.isLoaded())};
KX.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.oa("annotationvisibility",a)};
KX.prototype.xa=function(){this.j&&this.Lb.Bh(this);XU.prototype.xa.call(this)};g.w(g.LX,g.QU);g.k=g.LX.prototype;g.k.open=function(){g.FW(this.Lb,this.B)};
g.k.Nj=function(a){h_a(this);this.options[a].element.setAttribute("aria-checked","true");this.Yd(this.Dk(a));this.C=a};
g.k.zM=function(a,b,c){var d=this;b=new g.QU({I:"div",Ma:["ytp-menuitem"],Y:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},V:[{I:"div",Ma:["ytp-menuitem-label"],ya:"{{label}}"}]},b,this.Dk(a,!0));b.Ra("click",function(){d.kh(a)});
return b};
g.k.enable=function(a){this.K?a||(this.K=!1,this.Vx(!1)):a&&(this.K=!0,this.Vx(!0))};
g.k.Vx=function(a){a?this.Lb.Tc(this):this.Lb.Bh(this)};
g.k.kh=function(a){this.oa("select",a)};
g.k.Dk=function(a){return a.toString()};
g.k.v3=function(a){a.defaultPrevented||39!==a.keyCode||(this.open(),a.preventDefault())};
g.k.xa=function(){this.K&&this.Lb.Bh(this);g.QU.prototype.xa.call(this);for(var a=g.u(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.w(NX,g.LX);NX.prototype.Sa=function(){var a=this.J.getAvailableAudioTracks();1<a.length?(g.MX(this,g.pr(a,this.j)),this.tracks=g.$b(a,this.j,this),this.countLabel.Yd(a.length?" ("+a.length+")":""),this.oa("size-change"),this.Nj(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
NX.prototype.kh=function(a){g.LX.prototype.kh.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Lb.Dj()};
NX.prototype.j=function(a){return a.toString()};g.w(OX,XU);
OX.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.HU(this.J))this.j||(this.Lb.Tc(this),this.j=!0,this.C.push(this.T(this.J,"videodatachange",this.B)),this.C.push(this.T(this.J,"videoplayerreset",this.B)),this.C.push(this.T(this.J,"onPlaylistUpdate",this.B)),this.C.push(this.T(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j){this.Lb.Bh(this);this.j=!1;a=g.u(this.C);for(var b=a.next();!b.done;b=
a.next())this.Nc(b.value)}};
OX.prototype.D=function(a){YU(this,1!==a)};
OX.prototype.onSelect=function(a){this.J.jK(a?2:1);this.j&&(this.J.logVisibility(this.element,this.j),this.J.logClick(this.element))};
OX.prototype.xa=function(){this.j&&this.Lb.Bh(this);XU.prototype.xa.call(this)};g.w(i_a,g.QU);i_a.prototype.onClick=function(a){a.preventDefault();var b,c;null==(b=g.tU(this.J))||null==(c=b.xn())||c.Pb();var d,e;null==(d=g.tU(this.J))||null==(e=d.NH())||e.od(a.target)};g.w(j_a,g.LX);g.k=j_a.prototype;
g.k.kC=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a){this.Ba=this.J.Ps();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.nU(this.J,"getAvailableQualityData",[]);b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.D[c.qualityLabel]=c;b=Object.keys(this.D);"auto"===a[a.length-1]&&b.push("auto");this.Ea=new Set(a)}else if(this.G){c=g.nU(this.J,"getAvailableQualityData",[]);b=[];c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.W[d.quality]=
d,d.quality&&b.push(d.quality);"auto"===a[a.length-1]&&b.push("auto")}else b=a;g.VSa(this.J)&&this.J.Pv()&&b.unshift("missing-qualities");WSa(this.J)&&b.unshift("inline-survey");g.MX(this,b);a=this.J.getVideoData().cotn?!0:!1;c=this.ra.Qh();c=!g.BS(this.J.U())||!(void 0===a?0:a)||!(void 0===c||c);a=this.B;c=void 0===c?!1:c;c=void 0===c?!1:c;a.UW&&(a=a.Ha("ytp-panel-footer"),g.Qu(a,"ytp-panel-hide-footer",c));if(b.length){this.NT();this.enable(!0);return}}this.enable(!1)};
g.k.NT=function(){if(this.j){var a=this.J.getPreferredQuality();this.Ea.has(a)&&(this.N=this.J.getPlaybackQuality(),this.ma=this.J.getPlaybackQualityLabel(),"auto"===a?(this.Nj(a),this.Yd(this.Dk(a))):this.Nj(this.ma))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.N=this.J.getPlaybackQuality(),this.Nj(a),"auto"===a&&this.Yd(this.Dk(a)))};
g.k.kh=function(a){if("missing-qualities"!==a){g.LX.prototype.kh.call(this,a);var b=this.j?this.D[a]:this.W[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.J.logClick(e)}if(this.j){var h,l;if(this.J.L("web_player_enable_early_warning_snackbar")&&(null==(h=g.R(b,g.Tgb))?0:null==(l=h.popup)?0:l.notificationActionRenderer))this.J.ib("innertubeCommand",b);else if(b){this.J.ib("innertubeCommand",
b);return}d?this.J.setPlaybackQuality(c,d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if(this.J.L("web_player_enable_early_warning_snackbar")&&(null==(m=g.R(b,g.Tgb))?0:null==(n=m.popup)?0:n.notificationActionRenderer))this.J.ib("innertubeCommand",b);else if(b){this.J.ib("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Lb.Pb();this.kC()}};
g.k.open=function(){for(var a=g.u(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.J.hasVe(null==(c=b)?void 0:c.element)&&(c=void 0,this.J.logVisibility(null==(c=b)?void 0:c.element,!0))}g.LX.prototype.open.call(this);this.J.logClick(this.element)};
g.k.zM=function(a,b,c){var d=this;if("missing-qualities"===a)return new g.QU({I:"a",Ma:["ytp-menuitem"],Y:{href:"https://web.archive.org/web/20240102114909/https://support.google.com/youtube/?p=missing_quality",target:this.J.U().W,tabindex:"0",role:"menuitemradio"},V:[{I:"div",Ma:["ytp-menuitem-label"],ya:"{{label}}"}]},b,this.Dk(a));if("inline-survey"!==a){var e,f=null==(e=this.j?this.D[a]:this.W[a])?void 0:e.paygatedQualityDetails;e=null==f?void 0:f.veType;f=null==f?void 0:f.trackingParams;b=g.LX.prototype.zM.call(this,a,b,c);f?(this.J.createServerVe(b.element,
this,!0),this.J.setTrackingParams(b.element,f)):e&&this.J.createClientVe(b.element,this,e,!0);return b}a=[{I:"span",ya:"N\u00e4ytt\u00e4\u00e4k\u00f6 hyv\u00e4lt\u00e4?"}];c=g.u([!0,!1]);f=c.next();for(e={};!f.done;e={AO:void 0},f=c.next())e.AO=f.value,f=new g.U({I:"span",S:"ytp-menuitem-inline-survey-response",V:[e.AO?wva():rva()],Y:{tabindex:"0",role:"button"}}),f.Ra("click",function(h){return function(){var l=h.AO,m=g.sU(d.J.app);m&&(m.va("iqsr",{tu:l}),m.getVideoData().hY=!0);d.Lb.Pb();d.kC()}}(e)),
a.push(f);
return new g.QU({I:"div",S:"ytp-menuitem",Y:{"aria-disabled":"true"},V:[{I:"div",Ma:["ytp-menuitem-label"],V:a}]},b)};
g.k.Dk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{I:"div",ya:"Puuttuuko jokin vaihtoehto?"};if("inline-survey"===a)return"";var c=this.G||this.j?[m_a(this,a,b,!1)]:[l_a(this,a)];var d=this.J.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(m_a(this,this.ma,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(m_a(this,this.N,b,!0,["ytp-menu-label-secondary"])):c.push(l_a(this,this.N,["ytp-menu-label-secondary"])));return{I:"div",V:c}};g.w(PX,g.U);g.k=PX.prototype;g.k.init=function(){this.hx(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.D)};
g.k.y3=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.W;break;case 39:case 38:b=this.W;break;default:return}this.hx(this.j+b);a.preventDefault()}};
g.k.w3=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.N:this.N;this.hx(b);a.preventDefault()};
g.k.x3=function(a){a=(a-g.fs(this.C).x)/this.ma*this.range+this.B;this.hx(a)};
g.k.hx=function(a,b){b=void 0===b?"":b;a=g.ie(a,this.B,this.D);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.ra.style.left=(a-this.B)/this.range*(this.ma-this.Ea)+"px";this.j=a};
g.k.focus=function(){this.Ga.focus()};g.w(QX,PX);QX.prototype.Ba=function(){this.J.setPlaybackRate(this.j,!0)};
QX.prototype.hx=function(a){PX.prototype.hx.call(this,a,o_a(this,a).toString());this.G&&(n_a(this),this.La())};
QX.prototype.updateValues=function(){var a=this.J.getPlaybackRate();o_a(this,this.j)!==a&&(this.hx(a),n_a(this))};g.w(p_a,g.kG);p_a.prototype.focus=function(){this.j.focus()};g.w(q_a,AW);g.w(r_a,g.LX);g.k=r_a.prototype;g.k.Dk=function(a){return"1"===a?"Normaali":a.toLocaleString()};
g.k.Sa=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);v_a(this)};
g.k.Vx=function(a){g.LX.prototype.Vx.call(this,a);a?(this.N=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),v_a(this),t_a(this,this.J.getPlaybackRate())):(this.Nc(this.N),this.N=null)};
g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||u_a(this,b);t_a(this,a)};
g.k.kh=function(a){g.LX.prototype.kh.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Lb.Dj()};g.w(x_a,g.LX);g.k=x_a.prototype;g.k.Nj=function(a){g.LX.prototype.Nj.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Dk=function(a){return this.getOption(a).text||""};
g.k.kh=function(a){g.LX.prototype.kh.call(this,a);this.oa("settingChange",this.N,this.settings[a].option)};g.w(RX,g.BW);RX.prototype.hh=function(a){for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Lt[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Nj(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
RX.prototype.qk=function(a,b){this.oa("settingChange",a,b)};g.w(SX,g.LX);SX.prototype.getKey=function(a){return a.languageCode};
SX.prototype.Dk=function(a){return this.languages[a].languageName||""};
SX.prototype.kh=function(a){this.oa("select",a);this.J.logClick(this.element);g.IW(this.Lb)};g.w(A_a,g.LX);g.k=A_a.prototype;g.k.getKey=function(a){return g.id(a)?"__off__":a.displayName};
g.k.Dk=function(a){return"__off__"===a?"Ei k\u00e4yt\u00f6ss\u00e4":"__translate__"===a?"Automaattinen k\u00e4\u00e4nn\u00f6s":"__contribute__"===a?"Lis\u00e4\u00e4 tekstitys":"__correction__"===a?"Ehdota korjauksia tekstityksiin":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.kh=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.uLa(this.J.U(),this.J.getVideoData());g.nH(b)}else if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=B_a(this);TX(this,c);g.LX.prototype.kh.call(this,this.getKey(c));var d,e;c=null==(b=this.J.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)?
void 0:e.openTranscriptCommand;this.J.ib("innertubeCommand",c);this.Lb.Dj();this.D&&this.J.logClick(this.D)}else{if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=B_a(this);TX(this,b);g.LX.prototype.kh.call(this,this.getKey(b));var f,h;b=null==(c=this.J.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.J.ib("innertubeCommand",b)}else this.J.logClick(this.element),
TX(this,"__off__"===a?{}:this.tracks[a]),g.LX.prototype.kh.call(this,a);this.Lb.Dj()}};
g.k.Sa=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData(),c=b&&b.Hu,d,e=!(null==(d=this.J.getVideoData())||!g.eU(d));d={};if(a||c){var f;if(a){var h=this.J.getOption("captions","track");d=this.J.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.$b(d,this.getKey,this);e=g.pr(d,this.getKey);var m=B_a(this),n,p;b.L("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.id(h)){if((f=h.translationLanguage)&&f.languageName){var q=f.languageName;f=l.findIndex(function(r){return r.languageName===q});
zaa(l,f)}y_a(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.MX(this,e);this.Nj(f);h&&h.translationLanguage?this.j.Nj(this.j.getKey(h.translationLanguage)):h_a(this.j);a&&this.G.hh(this.J.getSubtitlesUserSettings());this.countLabel.Yd(d&&d.length?" ("+d.length+")":"");this.oa("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.z3=function(a){var b=this.J.getOption("captions","track");b=g.ld(b);b.translationLanguage=this.j.languages[a];TX(this,b)};
g.k.qk=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}z_a(this,!0);this.N.start();this.G.hh(this.J.getSubtitlesUserSettings())};
g.k.r$=function(a){a||g.Hu(this.N)};
g.k.xa=function(){g.Hu(this.N);g.LX.prototype.xa.call(this)};
g.k.open=function(){g.LX.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.J.createClientVe(this.D,this,167341),this.J.logVisibility(this.D,!0))};g.w(C_a,g.HW);g.k=C_a.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;this.PQ=new j_a(this.J,this);g.J(this,this.PQ);var b=new A_a(this.J,this);g.J(this,b);a.C||(b=new KX(this.J,this),g.J(this,b));a.enableSpeedOptions&&(b=new r_a(this.J,this),g.J(this,b));(g.mS(a)||a.N)&&(a.B||a.bb)&&(b=new i_a(this.J,this),g.J(this,b));a.He&&!a.L("web_player_move_autonav_toggle")&&(a=new OX(this.J,this),g.J(this,a));a=new NX(this.J,this);g.J(this,a);this.J.oa("settingsMenuInitialized");g_a(this.settingsButton,
this.Re.zp())}};
g.k.Tc=function(a){this.initialize();this.Re.Tc(a);g_a(this.settingsButton,this.Re.zp())};
g.k.Bh=function(a){this.Ib&&1>=this.Re.zp()&&this.hide();this.Re.Bh(a);g_a(this.settingsButton,this.Re.zp())};
g.k.od=function(a){this.initialize();0<this.Re.zp()&&g.HW.prototype.od.call(this,a)};
g.k.Pb=function(){this.LJ?this.LJ=!1:g.HW.prototype.Pb.call(this)};
g.k.show=function(){g.HW.prototype.show.call(this);g.Mu(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.HW.prototype.hide.call(this);g.Ou(this.J.getRootNode(),"ytp-settings-shown")};
g.k.qg=function(a){this.J.logVisibility(this.element,a);this.J.oa("settingsMenuVisibilityChanged",a)};g.w(g.UX,g.U);g.UX.prototype.onClick=function(){if(E_a(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var a=!1,b=g.cD(g.bD(),65);g.BS(this.J.U())&&null!=b&&(a=!b);a&&this.J.U().L("web_player_nitrate_promo_tooltip")&&this.J.oa("showpromotooltip",this.element)}};
g.UX.prototype.j=function(a){var b,c;null==(b=g.tU(this.J))||null==(c=b.xn())||c.od(a)};
g.UX.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
g.UX.prototype.Sa=function(){var a=E_a(this),b=300;this.J.U().Z&&(b=480);if(this.J.U().N){this.updateValue("title",g.xU(this.J,"Tekstitykset","c"));this.update({"data-title-no-tooltip":"Tekstitykset"});var c=a}else{if(a)null==(c=this.Ha("ytp-subtitles-button-icon"))||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.xU(this.J,"Tekstitykset","c")),this.update({"data-title-no-tooltip":"Tekstitykset"});else{var d;null==(d=this.Ha("ytp-subtitles-button-icon"))||d.setAttribute("fill-opacity",
"0.3");this.updateValue("title","Tekstityksi\u00e4 ei saatavilla");this.update({"data-title-no-tooltip":"Tekstityksi\u00e4 ei saatavilla"})}c=!0}this.tooltip.Jh();c=c&&this.J.qb().getPlayerSize().width>=b;g.jG(this,c);this.J.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.w(g.WX,g.U);g.k=g.WX.prototype;
g.k.Kc=function(){var a=this.api.qb().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!YX(this)||!g.TG(this.api.Vb(),64));g.jG(this,b);g.Qu(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);XX(this)&&(c-=this.Eb.startTimeMs/1E3);c=g.cH(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=XX(this)?g.cH((this.Eb.endTimeMs-this.Eb.startTimeMs)/
1E3):g.cH(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}a=a.isAtLiveHead;!YX(this)||this.K===a&&this.G===this.isPremiere||(this.K=a,this.G=this.isPremiere,this.Kc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Yd(this.isPremiere?"Ensiesitys":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Siirry suoraan l\u00e4hetykseen.",this.j=g.vU(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Eb!==a;this.Eb=a;b&&
VX(this)};
g.k.onLoopRangeChange=function(a){var b=this.Eb!==a;this.Eb=a;b&&(this.Kc(),VX(this))};
g.k.U$=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.U().L("enable_topsoil_wta_for_halftime")||this.api.U().L("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Kc();VX(this)};
g.k.updateVideoData=function(a){this.ZD=a.isLivePlayback&&!a.kb;this.B=fU(a);this.isPremiere=a.isPremiere;g.Qu(this.element,"ytp-live",YX(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
g.k.xa=function(){this.j&&this.j();g.U.prototype.xa.call(this)};g.w(G_a,g.U);g.k=G_a.prototype;g.k.Ew=function(){var a=this.api.Og();this.C!==a&&(this.C=a,F_a(this,this.api.getVolume(),this.api.isMuted()))};
g.k.OT=function(a){g.jG(this,350<=a.width)};
g.k.C3=function(a){if(!a.defaultPrevented){var b=a.keyCode,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.ie(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}};
g.k.A3=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.ie(b/10,-10,10));a.preventDefault()};
g.k.w$=function(){ZX(this,this.j,!0,this.B,this.api.bk());this.W=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.B3=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.fs(this.N).x;this.api.setVolume(100*g.ie((a-c/2)/(b-c),0,1))};
g.k.v$=function(){ZX(this,this.j,!1,this.B,this.api.bk());0===this.volume&&(this.api.mute(),this.api.setVolume(this.W))};
g.k.onVolumeChange=function(a){F_a(this,a.volume,a.muted)};
g.k.kV=function(){ZX(this,this.j,this.isDragging,this.B,this.api.bk())};
g.k.xa=function(){g.U.prototype.xa.call(this);g.Ou(this.K,"ytp-volume-slider-active")};g.w($X,g.U);
$X.prototype.onVideoDataChange=function(){var a=this.api.U();this.visible=!!this.api.getVideoData().videoId&&!g.gU(this.api.getVideoData(1));g.jG(this,this.visible);this.api.logVisibility(this.element,this.visible&&this.Z);if(this.visible){var b=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",b)}a.C&&(this.j&&(this.Nc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Mu(this.element,"no-link"));this.Zb()};
$X.prototype.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.dH(a),!1,!0,!0);if(g.mS(b)){var d={};g.mS(b)&&g.nU(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.Ml(c,g.KP(d,"emb_logo"))}g.$U(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
$X.prototype.Zb=function(){var a={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",Y:{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 "}}]};
g.DU(this.api)&&(a={I:"svg",Y:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",Y:{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.Y=Object.assign({},a.Y,{"aria-hidden":"true"});this.updateValue("logoSvg",a)};
$X.prototype.Hc=function(a){g.U.prototype.Hc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.w(I_a,g.aL);g.k=I_a.prototype;g.k.If=function(){g.TG(this.J.Vb(),2)||(this.progressBar.Kc(),this.zo.Kc())};
g.k.BA=function(){this.jS();this.Mg.B?this.If():this.progressBar.Mh()};
g.k.EE=function(){this.If();this.Yg.start()};
g.k.jS=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=2*a.N*g.AS();a=300>1E3*a.C.getLength()/a.api.getPlaybackRate()/b}a=a&&this.J.Vb().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Mg.B||(a=b=!1);b?this.ma||(this.ma=this.T(this.J,"progresssync",this.If)):this.ma&&(this.Nc(this.ma),this.ma=null);a?this.Yg.isActive()||this.Yg.start():this.Yg.stop()};
g.k.Zb=function(){var a=this.J.Og(),b=this.J.qb().getPlayerSize(),c=K_a(this),d=Math.max(b.width-2*c,100);if(this.Za!==b.width||this.Xa!==a){this.Za=b.width;this.Xa=a;var e=L_a(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.c_a(this.progressBar,c,e,a);this.J.Le().PT=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-M_a(this))));c.maxWidth=d;c.maxHeight=a;c.GB();this.jS();this.J.U().L("html5_player_dynamic_bottom_gradient")&&YYa(this.Qa,
b.height)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Ga.style.background=a.Gf?a.vp:"";this.W&&eZa(this.W,a.showSeekingControls);this.Z&&eZa(this.Z,a.showSeekingControls)};
g.k.Fb=function(){return this.C.element};g.w(N_a,OW);g.k=N_a.prototype;g.k.pJ=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.ib("innertubeCommand",this.onClickCommand),this.CA())};
g.k.CA=function(){this.enabled=!1;this.N.hide()};
g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&O_a(this);a=[];var c,d,e,f;if(b=null==(f=g.R(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,Dib))?void 0:f.suggestedActions)for(c=g.u(b),d=c.next();!d.done;d=c.next())(d=g.R(d.value,Eib))&&g.R(d.trigger,Cib)&&a.push(d);if(0!==a.length){c=[];a=g.u(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.R(d.trigger,Cib))f=(f=d.title)?g.nG(f):"View Chapters",
b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(c.push(new g.jK(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.Af(c)}};
g.k.vB=function(){return this.enabled};
g.k.qg=function(){this.enabled?this.Ga.start():MW(this);this.Fm()};
g.k.xa=function(){O_a(this);OW.prototype.xa.call(this)};var H3={},aY=(H3.CHANNEL_NAME="ytp-title-channel-name",H3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",H3.LINK="ytp-title-link",H3.SESSIONLINK="yt-uix-sessionlink",H3.SUBTEXT="ytp-title-subtext",H3.TEXT="ytp-title-text",H3.TITLE="ytp-title",H3);g.w(bY,g.U);bY.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.dH(a),!1,!0);g.mS(b)&&(b={},g.nU(this.api,"addEmbedsConversionTrackingParams",[b]),c=g.Ml(c,g.KP(b,"emb_title")));g.$U(c,this.api,a)};
bY.prototype.Sa=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:aY.CHANNEL_NAME,Y:{href:"{{channelLink}}",target:"_blank"},ya:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:aY.CHANNEL_NAME,ya:"{{channelName}}",Y:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);P_a(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Oc&&c.profilePicture?(this.updateValue("channelLink",
c.Oc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):P_a(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.yj;g.Qu(this.link,aY.FULLERSCREEN_LINK,c);b.ma||!a.videoId||c||g.gU(a)||b.C?this.j&&(this.updateValue("url",null),this.Nc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.C&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.mS(b)?a.expandedTitle:
a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.w(g.cY,g.U);g.k=g.cY.prototype;g.k.sR=function(a){if(null!=this.type)if(a)switch(this.type){case 3:case 2:R_a(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.W=a};
g.k.EK=function(a,b,c,d,e,f,h,l){if(!this.Na||this.env.Z){3===this.type&&this.Mh();1!==this.type&&(g.Ku(this.element,"ytp-tooltip ytp-bottom"),(aZa(this.api)||this.api.isInline())&&g.Mu(this.element,"ytp-rounded-tooltip"),this.type=1,this.W&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.Xj())&&this.B.subscribe("l",this.HY,this));if(l){var m=g.is(this.bg).height||this.Ba;this.Qa.style.bottom=m+2+"px"}this.update({text:c,title:null!=f?f:"",eduText:null!=l?l:""});g.Qu(this.text,"ytp-tooltip-text-no-title",
1===this.type&&!f);this.api.isInline()&&g.Mu(this.text,"ytp-modern-tooltip-text");g.Qu(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=gT(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&4===this.B.levels.length&&(c=this.B.levels.length-1),c=VQa(this.B,c,b));T_a(this,c);if(h)switch(b=g.is(this.element).width,h){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=b+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=
b/2+"px",this.title.style.textAlign="center"}S_a(this,!!d,a,e)}};
g.k.yO=function(){1===this.type&&this.Mh()};
g.k.NF=function(a,b){if(this.type)if(3===this.type)this.Mh();else return;Q_a(this,a,3,b)};
g.k.Jh=function(){this.j&&!this.ma&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.W&&R_a(this))};
g.k.HY=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,T_a(this,a))};
g.k.C7=function(){TQa(this.B,this.D,this.N*this.scale)};
g.k.Mh=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.ra);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.ra);a.addEventListener("focus",this.G);U_a(this);break;case 3:U_a(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.HY,this),this.B=null),this.api.removeEventListener("videoready",this.Ea),this.Ga.stop()}this.type=null;this.W&&this.K.hide()};
g.k.Sl=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.pf(arguments[a],this.j)&&this.Mh()};
g.k.xa=function(){null!=this.type&&this.Mh();this.B&&this.B.dispose();g.U.prototype.xa.call(this)};g.w(W_a,g.U);g.k=W_a.prototype;g.k.lC=function(){this.visible=X_a(this);g.jG(this,this.visible);this.icon&&Z_a(this,this.icon);this.J.logVisibility(this.element,this.visible&&this.Z)};
g.k.Ce=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){this.J.logClick(this.element);var a=this.J.U(),b=this.Ce();a.ra?V_a(this):Y_a(this,b)};
g.k.Iw=function(){this.isRequestPending=this.j=!1;this.Sa(2);this.lC()};
g.k.Sa=function(a,b){var c=this.J.U();Z_a(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.qK("Lis\u00e4tty k\u00e4ytt\u00e4j\u00e4n\u00e4 $USER_NAME",a):g.qK("Katso my\u00f6hemmin k\u00e4ytt\u00e4j\u00e4n\u00e4 $USER_NAME",a),image:MPa(c)})):this.update({title:"Katso my\u00f6hemmin",image:null});this.J.Jh()};
g.k.Hc=function(a){g.U.prototype.Hc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.w(g.dY,g.rW);g.k=g.dY.prototype;
g.k.init=function(){var a=this;this.Rd=new g.uW(this.api);this.zv=new KW(this.api);this.Ch=new g.U({I:"div",S:"ytp-chrome-top"});this.tooltip=new g.cY(this.api,this);this.channelAvatar=new YWa(this.api);this.title=new bY(this.api);this.Rg=new g.gG({I:"div",S:"ytp-chrome-top-buttons"});this.Sg=new RWa(this.api,this.Ch.element);this.Jg="1"===this.api.U().controlsType?new I_a(this.api,this,this.Mg):null;this.contextMenu=new mXa(this.api,this.Rd);this.nD=new g.U({I:"div",Y:{tabindex:"0"}});this.mD=new g.U({I:"div",
Y:{tabindex:"0"}});var b=this.api.qb(),c=this.api.U(),d=this.api.getVideoData();this.Uq&&(g.Mu(this.api.getRootNode(),"ytp-embed"),g.Mu(this.api.getRootNode(),"ytp-embed-playlist"),this.BI&&(g.Mu(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.Mu(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.MM=60,this.OM=89);this.api.U().C&&g.Mu(this.api.getRootNode(),"ytp-embed-pfl");this.api.U().B&&(g.Mu(this.api.getRootNode(),"ytp-mobile"),this.api.U().Z&&g.Mu(this.api.getRootNode(),"ytp-embed-mobile"));
this.ji=d&&d.getEmbeddedPlayerResponse();g.J(this,this.Rd);g.GU(this.api,this.Rd.element,4);g.J(this,this.zv);g.GU(this.api,this.zv.element,4);d=new g.U({I:"div",S:"ytp-gradient-top"});g.J(this,d);g.GU(this.api,d.element,1);this.NK=new g.MG(d,250,!0,100);g.J(this,this.NK);g.J(this,this.Ch);g.GU(this.api,this.Ch.element,1);this.MK=new g.MG(this.Ch,250,!0,100);g.J(this,this.MK);g.J(this,this.tooltip);g.GU(this.api,this.tooltip.element,4);var e=new cYa(this.api);g.J(this,e);g.GU(this.api,e.element,5);
e.subscribe("show",function(m){a.Hs(e,m)});
this.ZF.push(e);this.RA=new YW(this.api,e);g.J(this,this.RA);c.Kl&&(this.backButton=new OWa(this.api),g.J(this,this.backButton),this.backButton.Ja(this.Ch.element));this.Uq||this.RA.Ja(this.Ch.element);g.J(this,this.channelAvatar);this.channelAvatar.Ja(this.Ch.element);g.J(this,this.title);this.title.Ja(this.Ch.element);this.Uq&&(d=new XYa(this.api),g.J(this,d),d.Ja(this.Ch.element));g.J(this,this.Rg);this.Rg.Ja(this.Ch.element);var f=new mYa(this.api,this);g.J(this,f);g.GU(this.api,f.element,5);
f.subscribe("show",function(m){a.Hs(f,m)});
this.ZF.push(f);this.searchButton=new aX(this.api);g.J(this,this.searchButton);this.searchButton.Ja(this.Rg.element);this.Ho=new W_a(this.api);g.J(this,this.Ho);this.Ho.Ja(this.Rg.element);this.shareButton=new g.bX(this.api,this,f);g.J(this,this.shareButton);this.shareButton.Ja(this.Rg.element);this.Zm=new JW(this.api,this);g.J(this,this.Zm);this.Zm.Ja(this.Rg.element);this.Uq&&this.RA.Ja(this.Rg.element);g.J(this,this.Sg);this.Sg.Ja(this.Rg.element);c.Ro&&(d=new gX(this.api),g.J(this,d),g.GU(this.api,
d.element,4));c.C||(d=new SWa(this.api,this.Sg),g.J(this,d),d.Ja(this.Rg.element));this.Vh=new ZXa(this.api);g.J(this,this.Vh);g.GU(this.api,this.Vh.element,5);this.Vh.subscribe("show",function(){a.Hs(a.Vh,a.Vh.Zj())});
this.ZF.push(this.Vh);this.overflowButton=new g.XW(this.api,this.Vh);g.J(this,this.overflowButton);this.overflowButton.Ja(this.Rg.element);this.Jg&&g.J(this,this.Jg);"3"===c.controlsType&&(d=new $W(this.api),g.J(this,d),g.GU(this.api,d.element,9));g.J(this,this.contextMenu);this.contextMenu.subscribe("show",this.r0,this);d=new hH(this.api,new tW(this.api));g.J(this,d);g.GU(this.api,d.element,4);this.nD.Ra("focus",this.P5,this);g.J(this,this.nD);this.mD.Ra("focus",this.Q5,this);g.J(this,this.mD);var h;
(this.gw=c.wl?null:new YXa(this.api,b,this.contextMenu,this.Mg,this.Rd,this.zv,function(){return a.fn()},null==(h=this.Jg)?void 0:h.progressBar))&&g.J(this,this.gw);
this.Uq||(this.RV=new zXa(this.api),g.J(this,this.RV),g.GU(this.api,this.RV.element,4),this.p_=new rYa(this.api),g.J(this,this.p_),g.GU(this.api,this.p_.element,4));this.E_=new N_a(this.api);g.J(this,this.E_);g.GU(this.api,this.E_.element,4);if(this.Uq){var l=new MXa(this.api,this.api.U().bb);g.J(this,l);g.GU(this.api,l.element,5);l.subscribe("show",function(m){a.Hs(l,m)});
b=new QXa(this.api,l);g.J(this,b);g.GU(this.api,b.element,4)}this.vE.push(this.Rd.element);this.T(this.api,"fullscreentoggled",this.Ew);this.T(this.api,"offlineslatestatechange",function(){a.api.bE()&&hW(a.Mg,128,!1)});
this.T(this.api,"cardstatechange",function(){a.jq()});
this.T(this.api,"resize",this.O8);this.T(this.api,"videoplayerreset",this.Iw);this.T(this.api,"showpromotooltip",this.n9);g.rW.prototype.init.call(this)};
g.k.Le=function(){return this.tooltip};
g.k.fO=function(){return this.Jg};
g.k.Hs=function(a,b){b?this.TC=a:this.TC=null;this.jq()};
g.k.Bv=function(a,b){if(b)this.Mt.push(a);else for(b=this.Mt.length;0<=b;b--)if(this.Mt[b]===a){this.Mt.splice(b,1);break}hW(this.Mg,64,0<this.Mt.length)};
g.k.uB=function(){this.api.Ik()&&this.api.gp();return!!this.TC||$_a(this)||g.rW.prototype.uB.call(this)};
g.k.du=aa(5);g.k.uo=aa(9);g.k.qo=aa(12);g.k.jq=function(){var a=!this.uB(),b=a&&this.api.Ik()&&!g.TG(this.api.Vb(),2)&&!g.gU(this.api.getVideoData())&&!this.api.U().C&&!g.DU(this.api),c=this.Uq&&g.CU(this.api)&&g.TG(this.api.Vb(),128);a||c?(this.MK.show(),this.NK.show()):(this.MK.hide(),this.NK.hide(),this.api.Sl(this.Ch.element));b?this.Sg.od():this.Sg.Pb();this.Jg&&J_a(this.Jg,this.xQ||!a);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&a0a(this);g.rW.prototype.jq.call(this)};
g.k.Tt=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.is(a),h=d||this.Jg&&g.pf(this.Jg.Fb(),b),l=d=null;null!=c&&h||(d=g.is(b),l=g.gs(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Jg,d=K_a(b),l=L_a(b),h=this.api.qb().getPlayerSize().height,c=g.ie(c,d,d+l-f.width),f=h-M_a(b)-f.height):g.pf(this.Ch.element,b)?(b=this.api.qb().getPlayerSize().width,c=g.ie(c,12,b-f.width-12),f=this.Og()?this.OM:this.MM,"gvn"===this.api.U().playerStyle&&(f+=
20),this.Uq&&(f-=this.Og()?26:18)):(b=this.api.qb().getPlayerSize(),c=g.ie(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.BA=function(a){a&&(this.api.Sl(this.Ch.element),this.Jg&&this.api.Sl(this.Jg.Fb()));this.BI&&(g.Qu(this.contextMenu.element,"ytp-autohide",a),g.Qu(this.contextMenu.element,"ytp-autohide-active",!0));g.rW.prototype.BA.call(this,a)};
g.k.MP=function(){g.rW.prototype.MP.call(this);this.BI&&(g.Qu(this.contextMenu.element,"ytp-autohide-active",!1),this.BI&&(this.contextMenu.hide(),this.Vh&&this.Vh.hide()))};
g.k.Qk=function(a,b){var c=this.api.qb().getPlayerSize();c=new g.Vr(0,0,c.width,c.height);if(a||this.Mg.B&&!this.uB()){if(this.api.U().Mm||b)a=this.Og()?this.OM:this.MM,c.top+=a,c.height-=a;this.Jg&&(c.height-=M_a(this.Jg))}return c};
g.k.Ew=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube-videosoitin koko n\u00e4yt\u00f6n tilassa"),this.api.U().externalFullscreen||(b.parentElement.insertBefore(this.nD.element,b),b.parentElement.insertBefore(this.mD.element,b.nextSibling))):g.KF(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube-videosoitin"),this.nD.detach(),this.mD.detach());this.Zb();this.kq()};
g.k.Og=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1};
g.k.showControls=function(a){this.XM=!a;this.jq()};
g.k.Zb=function(){var a=this.Og();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.Qu(this.contextMenu.element,"ytp-big-mode",a);this.jq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||a0a(this);this.kq();var b=g.DU(this.api);b&&a?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Yr(this.Ch.element,"padding-left",a+"px"),g.Yr(this.Ch.element,"padding-right",a+"px")):b&&(g.Yr(this.Ch.element,"padding-left",""),g.Yr(this.Ch.element,"padding-right",""));g.rW.prototype.Zb.call(this)};
g.k.TN=function(){if($_a(this)&&!g.CU(this.api))return!1;var a=this.api.getVideoData();return!g.mS(this.api.U())||2===this.api.getPresentingPlayerType()||!this.ji||((a=this.ji||a.ji)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.R(a.videoDetails,VRa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.rW.prototype.TN.call(this):!1};
g.k.kq=function(){g.rW.prototype.kq.call(this);this.api.logVisibility(this.title.element,!!this.Gn);this.RA&&this.RA.Hc(!!this.Gn);this.channelAvatar.Hc(!!this.Gn);this.overflowButton&&this.overflowButton.Hc(this.Vf()&&!!this.Gn);this.shareButton&&this.shareButton.Hc(!this.Vf()&&!!this.Gn);this.Ho&&this.Ho.Hc(!this.Vf()&&!!this.Gn);this.searchButton&&this.searchButton.Hc(!this.Vf()&&!!this.Gn);this.Zm&&this.Zm.Hc(!this.Vf()&&!!this.Gn);if(!this.Gn){this.api.Sl(this.Ch.element);for(var a=0;a<this.ZF.length;a++){var b=
this.ZF[a];b.Zj()&&b.Pb()}}};
g.k.Cc=function(a){this.Jg&&J_a(this.Jg,this.uB());this.jq();g.rW.prototype.Cc.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){return this.gw?this.gw.handleGlobalKeyDown(a,b,c,d,e,f,h,l):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.gw?this.gw.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.fn=function(){if(this.contextMenu.Ib)return this.contextMenu.Pb(),!0;if(this.Mt.length)return this.Mt[this.Mt.length-1].Pb(),!0;if(this.TC)return this.TC.Pb(),!0;this.Jg&&this.api.Sl(this.Jg.Fb());this.Rg&&this.api.Sl(this.Rg.element);return g.rW.prototype.fn.call(this)};
g.k.GF=function(a,b){this.rP=b;this.Bv(a,b);this.r0()};
g.k.r0=function(){var a=this.rP||this.contextMenu.Zj();this.vM!==a&&(this.vM=a,this.api.ib("onAutonavPauseRequest",this.vM))};
g.k.P5=function(){b0a(this,this.api.getRootNode(),!0).focus()};
g.k.Q5=function(){b0a(this,this.api.getRootNode(),!1).focus()};
g.k.xn=function(){return this.Jg&&this.Jg.B};
g.k.hq=function(){this.Mg.hq()};
g.k.xO=function(){this.Rd.hide()};
g.k.MF=function(a){this.Rd.MF(!g.TL(a))};
g.k.pF=function(a,b,c,d){this.zv.pF(a,b,c,d)};
g.k.Yw=function(a,b){sXa(this.zv,a,b)};
g.k.O8=function(){c0a(this,!0)};
g.k.Iw=function(){a0a(this)};
g.k.n9=function(a){c0a(this,!1,a)};
g.k.NH=function(){return this.contextMenu};
g.k.qs=function(a){var b;if(null!=(b=this.Jg)){for(var c=Number(a.element.getAttribute("data-priority"))||0,d=0,e=g.u(b.j.element.children),f=e.next();!(f.done||c<(Number(f.value.getAttribute("data-priority"))||0));f=e.next())d++;a.Ja(b.j.element,d)}};
g.k.Eq=function(){var a,b=null==(a=this.Jg)?void 0:a.progressBar;if(b){var c;(null==(c=b.B)?0:c.isEnabled)&&b.Eq()}};
g.k.PN=function(){return this.zv};g.w(g.eY,g.RV);g.eY.prototype.yl=function(){return!1};
g.eY.prototype.create=function(){var a=this.player.U();g.jH(a)&&a.B?this.chrome=new g.rW(this.player):this.chrome=new g.dY(this.player);g.J(this,this.chrome);this.chrome.init();this.player.Ig("ux")};
g.eY.prototype.wi=function(){return this.chrome};var h0a=!1;g.w(fY,g.H);fY.prototype.C=function(a,b){if(b){b=b instanceof g.dQ?b:gY(this,b);var c;(null==(c=this.j.get(a))?void 0:fQ(c.location))!==fQ(b)&&this.j.set(a,new l0a(b,a))}else this.j.delete(a)};
fY.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.Ha(function(q){switch(q.j){case 1:b=a.j.get(0);g.ya(q,2);var r;if(r=b&&!a.B)r=fQ(b.location),r=a.B===iY(r);if(r){q.Ka(4);break}return g.z(q,j0a(a,a.B?2:0),5);case 5:if(c=q.B)a.C(0,c),dMa(c)&&a.C(1,hQ(c));case 4:g.za(q,3);break;case 2:d=g.Aa(q);g.LF(d);if(!a.B){q.Ka(3);break}a.B=!1;return g.z(q,a.load(),7);case 7:return q.return();case 3:if(!a.X.experiments.jb("html5_onesie_probe_ec_hosts")){q.Ka(0);break}g.ya(q,9);e=a;f=e.C;h=3;
return g.z(q,j0a(a,1),11);case 11:return f.call(e,h,q.B),l=a,m=l.C,n=4,g.z(q,j0a(a,2),12);case 12:m.call(l,n,q.B);g.za(q,0);break;case 9:p=g.Aa(q),g.LF(p),g.xa(q)}})};
fY.prototype.N=function(){var a=this,b,c;return g.Ha(function(d){g.Fu(a.Z);b=g.EJ(a.X.experiments,"html5_onesie_prewarm_max_lact_ms");if(YE()>=b)return d.return();(c=a.j.get(0))&&g0a(a,c);g.xa(d)})};
var d0a={vZa:0,X0a:1,L_a:2,Y0a:3,Asa:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};jY.prototype.zk=function(){if(!this.Kf.length)return[];var a=this.Kf;this.Kf=[];this.C=g.zb(a).info;return a};
jY.prototype.TE=function(){return this.Kf};g.w(lY,g.H);g.k=lY.prototype;g.k.Gq=function(){return Array.from(this.qd.keys())};
g.k.ju=function(a){a=this.qd.get(a);var b=a.Kf;a.Ly+=b.getLength();a.Kf=new zO;return b};
g.k.Pg=function(a){return this.qd.get(a).Pg};
g.k.Ph=function(a){return this.qd.get(a).Ph};
g.k.HA=function(a,b,c){this.qd.get(a)||t0a(this,a,b);b=this.qd.get(a);this.manifest?(a=v0a(this,a,c),u0a(this,c.Hp,b,a)):(c.In?b.iX=c.Fr:b.eJ.push(c),b.b_.push(c))};
g.k.yn=function(a){var b;return(null==(b=this.qd.get(a))?void 0:b.eb)||[]};
g.k.sA=function(){for(var a=g.u(this.qd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.LQ&&(b.If&&b.If(),b.LQ=!1)};
g.k.Qp=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b});
var c=this.qd.get(b);x0a?c&&!c.Pg&&(c.yw.get(a).FI=!0,c.Ph=!0):c&&!c.Ph&&(c.Ph=!0)};
g.k.zk=function(a){var b;if(null==(b=this.eh)?0:b.Pe){var c=this.qd.get(a);if(c){b=g.u(c.yw);for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;var f=c.FK.get(d);if(XQ(f[0])){if(!e.FI)continue;var h=f,l=e.data;l.getLength();f=0;var m=[];h=g.u(h);for(var n=h.next();!n.done;n=h.next()){n=n.value;var p=n.B,q=BO(l,f,p);f+=p;m.push(new oR(n,q))}c.rE.push.apply(c.rE,g.oa(m))}else if(!f[0].range||0<e.data.getLength())l=void 0,f=f[0],m=e.AM,h=e.data,f.range||(l=e.FI),
n=h.getLength(),l=new oR($Ma(f,f.Xb+m,n,l),h),e.AM+=l.info.B,c.rE.push(l);c.yw.get(d).data=new zO;e.FI&&c.yw.delete(d)}}a=this.qd.get(a);if(!a)return[];c=a.rE;a.rE=[];b=g.u(c);for(d=b.next();!d.done;d=b.next())a.Ly+=d.value.info.B;return c||[]}b=null==(c=this.qd.get(a))?void 0:c.wg;if(!b)return[];this.im(a,b);return b.zk()};
g.k.il=function(a){var b;if(null==(b=this.eh)?0:b.Pe)return nY(this,a);var c,d,e;return!!(null==(d=null==(c=this.qd.get(a))?void 0:c.wg)?0:null==(e=d.TE())?0:e.length)||nY(this,a)};
g.k.im=function(a,b){for(;nY(this,a);){var c=this.ju(a);var d=a;d=this.qd.get(d).Pg&&!r0a(this,d);kY(b,c,d&&s0a(this,a))}};
g.k.xa=function(){g.H.prototype.xa.call(this);for(var a=g.u(this.qd.keys()),b=a.next();!b.done;b=a.next())n0a(this,b.value);this.qd.clear()};
var o0a=!1,x0a=!1;var pY=[],dbb=!1;g.i0=Id(function(){var a="";try{var b=g.$e("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.w(qY,g.H);qY.prototype.K=function(){null!=this.j&&this.app.getVideoData()!==this.j&&oT(this.j)&&Obb(this.app,this.j,void 0,void 0,this.B)};
qY.prototype.G=function(){if(null!=this.j&&this.app.getVideoData()!==this.j&&null!=this.wb&&null!=this.C&&null!=this.D&&oT(this.j)){var a=D0a(this.wb,this.C,this.D);null==a?Obb(this.app,this.j,void 0,void 0,this.B):(this.wb.va("sgap",a),this.wb.getVideoData().W&&Jab(this.wb,!1))}};
qY.prototype.xa=function(){this.j=null;g.H.prototype.xa.call(this)};g.w(g.rY,LL);g.k=g.rY.prototype;g.k.isView=function(){return!0};
g.k.bR=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Kh(),c=vL(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Lv=function(){return yL(this.mediaElement.Lv(),this.start,this.end)};
g.k.Kh=function(){return yL(this.mediaElement.Kh(),this.start,this.end)};
g.k.GD=function(){return yL(this.mediaElement.GD(),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.bR()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.pc=function(){var a=LL.prototype.pc.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.BG=function(){return this.mediaElement.BG()};
g.k.Dy=function(a){this.mediaElement.Dy(a)};
g.k.Iq=function(){return this.mediaElement.Iq()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.oN=function(){this.mediaElement.oN()};
g.k.jN=function(){this.mediaElement.jN()};
g.k.Ou=function(){return this.mediaElement.Ou()};
g.k.Fb=function(){return this.mediaElement.Fb()};
g.k.Df=function(){return this.mediaElement.Df()};
g.k.DG=function(a){this.mediaElement.DG(a)};
g.k.gK=function(){this.mediaElement.gK()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.Us=function(){return this.mediaElement.Us()};
g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.k.isPaused=function(){return this.mediaElement.isPaused()};
g.k.Uf=function(){return this.mediaElement.Uf()};
g.k.Ph=function(){return this.mediaElement.Ph()};
g.k.YH=function(){return this.mediaElement.YH()};
g.k.pB=function(a){this.mediaElement.pB(a)};
g.k.CG=function(){return this.mediaElement.CG()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.Ck=function(){return this.mediaElement.Ck()};
g.k.ZH=function(){return this.mediaElement.ZH()};
g.k.ph=function(){return this.mediaElement.ph()};
g.k.qf=function(){return this.mediaElement.qf()};
g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.k.Oh=function(){return this.mediaElement.Oh()};
g.k.nu=function(){return this.mediaElement.nu()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.Ws=function(){return this.mediaElement.Ws()};
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.IC=aa(30);g.k.UF=aa(32);g.k.VF=aa(34);g.k.Qy=aa(36);g.k.gD=function(){return this.mediaElement.gD()};
g.k.ls=function(a){this.mediaElement.ls(a)};
g.k.ID=function(a){return this.mediaElement.ID(a)};
g.k.NO=function(){return this.mediaElement.NO()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.sN=function(a){this.mediaElement.sN(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};
g.k.qR=function(a){this.mediaElement.qR(a)};g.w(G0a,g.H);g.k=G0a.prototype;g.k.getStatus=function(){return this.status};
g.k.Uu=function(){var a=this.j.getVideoData(),b=this.B.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.u(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.kf()){f=C0a(this.policy,this.j,this.B,this.Dm);h=H0a(this);c=h.k5;e=h.oY;d=h.xV;h=h.mY;if(!this.N){var l=1E3*this.B.Vi(),m=this.j.Vi();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.B.kF(l,
m,a);this.N=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Hg(b,f)):2===this.status.status?P0a(this):(a=this.j.Iq())&&IL(a)&&(!FL(a)&&g.sC()?this.Hg("mse_closed"):b.j&&ZP(b.j)&&a.B&&!a.B.TH()?this.Hg("encr_upgrade"):(b=this.j.kf(),b.Ph()?this.Hg("elem_ended"):0>e?this.Hg("next_player_future"):(this.K=d,this.currentVideoDuration=d-c,this.C=HBa(a,c,d,!0),this.D=HBa(a,e,h,!1),a=this.B.getVideoData().clientPlaybackNonce,this.j.va("gaplessPrep",{cpn:a}),M0a(this.j,this.C),this.j.setMediaElement(I0a(b,
c,d,!this.j.getVideoData().isAd())),tY(this,2),P0a(this))))}else this.Hg("no-elem")};
g.k.Wx=function(a){var b=a===O0a(this).zR,c=b?this.C.j:this.C.B;b=b?this.D.j:this.D.B;if(c.isActive&&!b.isActive){var d=this.K;uL(a.Ze(),d-.01)&&(tY(this,4),c.isActive=!1,c.kG=c.kG||c.isActive,(1===this.G?this.j:this.B).va("sbh",{}),b.isActive=!0,b.kG=b.kG||b.isActive,0!==this.G&&(this.j.getVideoData().kU=!0));a=this.D.B;this.D.j.isActive&&a.isActive&&(tY(this,5),0!==this.G&&(this.j.va("sbs",{}),this.Qd.U().L("html5_gapless_use_loop_range")||this.Qd.setLoopRange({startTimeMs:0,endTimeMs:1E3*this.currentVideoDuration-
g.EJ(this.Qd.U().experiments,"html5_gapless_loop_seek_offset_in_milli")})))}};
g.k.MY=function(){this.Yq()&&this.Hg("player-reload-after-handoff")};
g.k.Hg=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&6!==this.status.status){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.ke(new TK("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Dm,msg:a})));Jab(this.j,c)}this.gq.reject(a);this.dispose()}};
g.k.Yq=function(){return 4<=this.status.status&&6>this.status.status};
g.k.xa=function(){N0a(this);this.j.unsubscribe("newelementrequired",this.MY,this);if(this.C){var a=this.C.B;this.C.j.Md.unsubscribe("updateend",this.Wx,this);a.Md.unsubscribe("updateend",this.Wx,this)}g.H.prototype.xa.call(this)};
g.k.Sd=function(a){g.VG(a,128)&&this.Hg("player-error-event")};g.w(vY,g.H);vY.prototype.clearQueue=function(){this.D&&this.D.reject("Queue cleared");wY(this)};
vY.prototype.dw=function(){return!this.j};
vY.prototype.Yq=function(){var a;return(null==(a=this.C)?void 0:a.Yq())||!1};
vY.prototype.xa=function(){wY(this);g.H.prototype.xa.call(this)};g.w(Z0a,g.cG);g.k=Z0a.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:V0a()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.Am=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.qg())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.qg())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.qg())};
g.k.qB=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.qg())};
g.k.Oh=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.pz=function(){return this.fullscreen};
g.k.jg=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return V0a()};
g.k.zt=function(){return this.pictureInPicture};
g.k.Nz=function(){return!1};
g.k.qg=function(){this.oa("visibilitychange");var a=this.getVisibilityState(this.Oh(),this.isFullscreen(),this.jg(),this.isInline(),this.zt(),this.Nz());a!==this.D&&this.oa("visibilitystatechange");this.D=a};
g.k.xa=function(){Y0a(this.C);g.cG.prototype.xa.call(this)};g.w(AY,g.H);AY.prototype.Lh=function(){return this.Ec||0};
AY.prototype.Dv=function(){return this.C||0};
AY.prototype.Jf=function(){for(;this.segments.length;){var a=void 0;null==(a=this.segments.pop())||a.dispose()}this.B.clear()};
AY.prototype.xa=function(){this.Jf()};
g.w(b1a,g.H);g.k=b1a.prototype;g.k.Lh=function(){return this.Ec};
g.k.Dv=function(){return this.B};
g.k.getType=function(){return this.type};
g.k.getVideoData=function(){return this.videoData};
g.k.Yl=function(){return this.videoData.clientPlaybackNonce};
g.k.JF=function(a){QRa(a);this.videoData=a};g.w(g.CY,g.H);g.k=g.CY.prototype;
g.k.onCueRangeEnter=function(a){this.Na.push(a);var b=a.getId(),c=""===b;this.kb.add(a.B);var d=this.D.get(b);if(!c&&(this.qa.va("sdai",{enterAdCueRange:1}),aU(this.qa.getVideoData())&&(null==d?0:d.GI)))return;if(this.Za&&!this.j)this.Za=!1,!c&&d&&(c=this.qa.getCurrentTime(),GY(this,{Qe:a,isAd:!0,Vq:!0,Eh:c,adCpn:b},{isAd:!1,Vq:!1,Eh:c}),this.api.oa("serverstitchedvideochange",d.pd,d.GC),this.qa.va("sdai",FY("midab",d)),this.ra=1),this.Va=!1;else if(this.j){if(this.j.Vq)this.qa.va("sdai",{a_pair_of_same_transition_occurs_enter:1,
acpn:this.j.adCpn,transitionTime:this.j.Eh,cpn:b,currentTime:this.qa.getCurrentTime()}),d=this.qa.getCurrentTime(),a={Qe:a,isAd:!c,Vq:!0,Eh:d,adCpn:b},b={Qe:this.j.Qe,isAd:this.j.isAd,Vq:!1,Eh:d,adCpn:this.j.adCpn},this.j.Qe&&this.kb.delete(this.j.Qe.B),GY(this,a,b);else{if(this.j.Qe===a){this.qa.va("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Eh,cpn:b,currentTime:this.qa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===
b){b&&this.qa.va("sdai",{dchtsc:b});this.j=void 0;return}a={Qe:a,isAd:!c,Vq:!0,Eh:this.qa.getCurrentTime(),adCpn:b};GY(this,a,this.j)}this.j=void 0;this.Va=!1}else this.j={Qe:a,isAd:!c,Vq:!0,Eh:this.qa.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){var b=a.getId(),c=""===b,d=this.D.get(b);if(aU(this.qa.getVideoData())&&!c&&d){if(d.GI)return;if(this.qa.EM()){var e=d.Ec,f=e+d.durationMs;d.GI=!0;this.G.clear();this.qa.TQ(e/1E3,f/1E3)}else this.qa.va("lifa",{remove:0})}if(this.kb.has(a.B))if(this.kb.delete(a.B),this.Na=this.Na.filter(function(h){return h!==a}),this.Za&&(this.Va=this.Za=!1,this.qa.va("sdai",{cref:1})),this.j){if(this.j.Vq){if(this.j.Qe===a){this.qa.va("sdai",{same_cue_range_pair_exit:1,
acpn:this.j.adCpn,transitionTime:this.j.Eh,cpn:b,currentTime:this.qa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.qa.va("sdai",{dchtsc:b});this.j=void 0;return}b={Qe:a,isAd:!c,Vq:!1,Eh:this.qa.getCurrentTime(),adCpn:b};GY(this,this.j,b)}else this.qa.va("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Eh,upcomingCpn:b,contentCpn:this.qa.getVideoData().clientPlaybackNonce,currentTime:this.qa.getCurrentTime()});
this.j=void 0;this.Va=!1}else this.j={Qe:a,isAd:!c,Vq:!1,Eh:this.qa.getCurrentTime(),adCpn:b};else this.qa.va("sdai",{ignore_single_exit:1})};
g.k.seekTo=function(a,b,c,d){a=void 0===a?0:a;b=void 0===b?{}:b;d=void 0===d?null:d;this.Va=!0;if(void 0===c?0:c)f1a(this,a,b);else{c=this.api.ud();var e=c===this.bb?this.tb:null;JY(this,!1);this.ac=a;this.Ub=b;null!=d&&this.Rb.start(d);c&&(this.tb=e||c.getPlayerState(),Kab(c),this.bb=c)}};
g.k.xa=function(){JY(this,!1);r1a(this);s1a(this);g.H.prototype.xa.call(this)};
g.k.yR=function(a){this.hd=a;this.qa.va("sdai",{swebm:a})};
g.k.Sk=function(a,b,c){if(c&&b){var d=this.G.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.dQ(c);this.Qa&&this.qa.va("sdai",{hdlredir:1,itag:b,seg:a,hostport:fQ(c)});d.locations.set(e,c)}}};
g.k.Ys=function(a,b,c,d,e,f){var h=3===d;e=u1a(this,a,b,d,c,f);if(!e)return MY(this,b,h),e=g.t1a(this,b)?"undec":"ncp",this.qa.va("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;this.X.L("html5_ssdai_disable_decoration_records")||h||this.G.set(b,e);a=e.Sm;var l;d=(null==(l=LY(this,b-1,d))?void 0:l.Fs)||"";""===d&&this.qa.va("sdai",{eds:1});l=ZR(e.ssdaiAdsConfig||"")||void 0;c=this.qa.getVideoData();var m;f=(null==(m=c.B)?void 0:m.containerType)||0;m=c.BU[f];b=e.kx&&b>=e.kx?e.kx:void 0;return{mB:{iM:a?
y1a(this,a):[],C4:l,Fs:d,t_:b,wca:we(m.split(";")[0]),xca:m.split(";")[1]||""}}};
g.k.nz=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=3===d;a=u1a(this,a,b,d,c,f);this.Qa&&this.qa.va("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return MY(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=null==(l=a.videoData.getPlayerResponse())?void 0:null==(m=l.streamingData)?void 0:m.adaptiveFormats;if(!f)return this.qa.va("sdai",{gdu:"noadpfmts",seg:b,itag:h}),MY(this,b,e),null;l=f.find(function(v){return v.itag===h});
if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.u(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.qa.va("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});MY(this,b,e);return null}a.locations.set(h,new g.dQ(l.url,!0))}l=a.locations.get(h);if(!l)return this.qa.va("sdai",{gdu:"nourl",seg:b,itag:h}),MY(this,b,e),null;l=new QQ(l);this.hd&&(l.get("dvc")?this.qa.va("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=null==(q=LY(this,b-1,d))?void 0:q.Fs)&&
l.set("daistate",m);a.kx&&b>=a.kx&&l.set("skipsq",""+a.kx);(m=this.qa.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.Sm&&(q=y1a(this,a.Sm),0<q.length&&l.set("acpns",q.join(",")));this.X.L("html5_ssdai_disable_decoration_records")||e||this.G.set(b,a);e=null;e=l.get("aids");var r;if(((null==(p=e)?void 0:null==(r=p.split(","))?void 0:r.length)||0)!==q.length)if(a.Sm){var t;this.qa.va("sdai",{acpns_aids_nm:1,ids:A1a(this,a.Sm).join("_"),acpns:q.join("_"),aids:null==(t=e)?void 0:t.replace(/,/g,
"_"),cpn:m,trackType:d})}else this.qa.va("sdai",{acpns_aids_nm:"noAdBreakId",cpn:m});d=l.df();2048<(null==d?void 0:d.length)&&this.qa.va("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Qa&&(d&&(r=a.cpn,p=a.Sm,C1a(this,r,p),p&&!this.ue.has(p)&&(r=z1a(this,r,p),t=B1a(this,p),this.qa.va("sdai",{iofa:r}),this.qa.va("sdai",{noawnzd:t-r}),this.qa.va("sdai",{acpns:q.join("."),aids:null==(n=e)?void 0:n.replace(/,/g,".")}),this.ue.add(p))),this.qa.va("sdai",{gdu:"v",seg:b,itag:c,ast:a.Ec.toFixed(3),alen:a.durationMs.toFixed(3),
acpn:a.cpn,avid:a.videoData.videoId}));return d};
g.k.AF=function(a,b,c){var d=KY(this,a,c);return(d=d?(d.Ec+d.durationMs)/1E3:0)&&b>d?(this.ou(a,c,!0),this.qa.seekTo(d),!0):!1};
g.k.ou=function(a,b,c){c=void 0===c?!1:c;if(a=KY(this,a,b)){var d=a.Sm;if(d){this.qa.va("sdai",{skipadonsq:b,sts:c,abid:d,acpn:a.cpn,avid:a.videoData.videoId});c=this.Z.get(d);if(!c)return;c=g.u(c);for(d=c.next();!d.done;d=c.next())d.value.kx=b}this.ma=a.cpn;v1a(this)}};
g.k.eR=function(){for(var a=g.u(this.N),b=a.next();!b.done;b=a.next())b.value.kx=NaN;v1a(this);this.qa.va("sdai",{rsac:"resetSkipAd",sac:this.ma});this.ma=""};
g.k.cG=aa(43);
g.k.nQ=function(a,b,c,d,e,f,h,l,m){m&&(h?this.Xa.set(a,{Fs:m,Ey:l}):this.Ga.set(a,{Fs:m,Ey:l}));if(h){if(d.length&&e.length)for(this.ma&&this.ma===d[0]&&this.qa.va("sdai",{skipfail:1,sq:a,acpn:this.ma}),a=b+this.Lq(),h=0;h<d.length;h++)if(m=d[h],l=a,a=l+e[h],m=this.D.get(m))l-=f[h],m.GC=null!=m.GC?Math.min(m.GC,l):l;if(d.length&&e.length)for(b=1E3*(b+this.Lq()),c=0;c<d.length;c++)if(a=d[c],h=1E3*e[c],a===this.qa.getVideoData().clientPlaybackNonce)x1a(this,b,b+h,!1),b+=h;else if(this.Bd.has(a)||(this.qa.va("sdai",
{adCpnFromEmsg:1}),this.Bd.add(a)),l=0,c<f.length&&(l=1E3*f[c]),(m=this.C.get(a))&&m.start<=b&&m.end>=b+h)b=m.end;else{var n=!1;m?(b<m.start?m.start=b-l:m.end<b+h&&(m.end=b+h),this.qa.Ui.Lo()):(m=m1a(b-l,b+h,a),this.C.set(a,m),this.qa.va("sdai",{newAdCR:1,cpn:a,startTime:m.start,endTime:m.end}),n=!0);b=m.end;x1a(this,m.start,m.end,!0);if(n)for(this.qa.addCueRange(m),a=this.qa.iD("serverstitchedcuerange",36E5),a=g.u(a),h=a.next();!h.done;h=a.next())this.C.delete(h.value.getId())}else 5!==c&&4!==c||
x1a(this,1E3*(b+this.Lq()),1E3*(b+this.Lq())+5E3,!1)}};
g.k.uD=aa(45);g.k.Lq=function(){return this.qa.Lq()};
g.k.nE=function(a){this.qa.va("timelineerror",{e:a})};
g.k.MD=function(a){this.Ba&&this.W&&this.Ea.push(this.W);a&&this.W&&this.Oc.push(this.W);this.W=null;this.qa.MD(a)};
g.k.kI=function(a){if(this.tp||a.identifier&&this.Ie.has(a.identifier))this.Qa&&this.qa.va("sdai",{startnoad:a.identifier}),EY(this);else if(ms(this.Ea,function(c){return c.identifier===a.identifier}))this.qa.va("sdai",{timedoutcp:1}),this.K.start(0);
else if(ms(this.Oc,function(c){return c.identifier===a.identifier}))this.qa.va("sdai",{fetchedcp:1}),EY(this);
else if(this.K.isActive()){var b;this.qa.va("sdai",{racingcp:(null==(b=this.W)?void 0:b.identifier)+"_"+a.identifier})}else this.Od=(new Date).getTime()/1E3,this.Qa&&this.qa.va("sdai",{adf:1}),(b=5E3,"predictStart"===a.event)&&(b-=a.j),this.Jb=Math.max(b,15E3),this.Ba=!1,this.K.start(this.Jb),this.W=a,this.Ga.clear(),this.Xa.clear(),this.La.clear(),this.rb=[]};
g.k.gt=function(a,b){if(!KY(this,a,b)||this.tp)return!1;this.tp=!0;0<this.ra&&(this.ra=0,this.api.oa("serverstitchedvideochange"));this.qa.vH({reason:"disablessdai",sq:b});return!0};
g.k.Ov=function(){this.qa.va("sdai",{rstdaist:1});this.Ga.clear();this.Xa.clear();this.La.clear()};
g.k.Rt=function(a){this.Ie.add(a);var b;(null==(b=this.W)?void 0:b.identifier)===a&&EY(this)};
g.k.JN=function(){return this.ra};
g.k.Ot=function(a){var b=dW(this.api.zb());return b?b.Ot(a):!1};
g.k.mN=function(a){if(this.tp)return!1;a+=this.Lq();return!!IY(this,a,1).Ym};
var k1a=0;g.w(F1a,g.H);g.k=F1a.prototype;g.k.addPlayerResponseForAssociation=function(a){a=new g.nT(this.api.U(),a);var b=a.clientPlaybackNonce;if(b&&(this.Zy.set(b,a),b=BY(this.timeline,b),null==b?0:b.length)){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a.Lm=c.Lh(),c.JF(a)}};
g.k.finishSegmentByCpn=function(a,b,c){c=void 0===c?3:c;if(this.zg===b)return[];this.j=b;var d=!1;if(this.jk.has(a)&&(d=D1a(this,c),!d))return[a];var e=BY(this.timeline,b);if(e){e.sort(function(l,m){return l.Lh()-m.Lh()});
var f=g.u(e);for(e=f.next();!e.done;e=f.next()){e=e.value;var h=this.qa.getCurrentTime();if(e.Lh()>=h){this.C.set(a,c);if(c=this.Ul.get(a))this.qa.removeCueRange(c),this.Ul.delete(a);this.D.set(a,this.qa.getCurrentTime());if(c=this.Ul.get(b))for(c=c.getId().split(","),c=g.u(c),f=c.next();!f.done;f=c.next())f=f.value,f!==b&&this.jk.has(f)&&(this.jk.delete(f),this.PF.add(f));this.qa.seekTo(e.Lh()/1E3);d&&this.api.playVideo(1);return[a]}}}return[]};
g.k.Jd=function(){var a=1E3*this.qa.getCurrentTime();return(a=OY(this,a))&&1===a.getType()?a.Lh()/1E3:0};
g.k.Oz=function(){var a=BY(this.timeline,this.zg);return(null==a?0:a.length)?a[0].C:!1};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;var c=H1a(this,this.qa.getCurrentTime());this.qa.seekTo(a+c/1E3,b)};
g.k.onCueRangeEnter=function(a){if(!this.K.has(a.getId())){for(var b=a.getId().split(","),c=0;c<b.length&&this.j&&b[c]!==this.j;){var d=b[c];this.jk.has(d)&&(this.jk.delete(d),this.PF.add(d));c++}if(b.length>c+1)for(d=c+1;d<b.length;d++)this.B.push(b[d]);b=b[c];this.jk.has(b)&&L1a(this,b);this.PF.has(b)||M1a(this,b);b=g.u(this.Ul.values());for(c=b.next();!c.done;c=b.next())c=c.value,c.start<=a.start&&!this.K.has(a.getId())&&this.K.add(c.getId())}};
g.k.JN=function(){return this.N};
g.k.xa=function(){this.Zy.clear();this.jk.clear();this.K.clear();this.C.clear();this.D.clear();this.PF.clear();this.B=[];E1a(this);this.j="";g.UC(this.events);g.H.prototype.xa.call(this)};g.w(Q1a,g.H);g.k=Q1a.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.ud()){var b=this.K.get(a);b?W1a(this,b.target,b.Dm,a):this.ke("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.B.find(function(e){return e.Is.Qe===a})){var c=b.Is,d=c.target;
c=c.Dm;d?W1a(this,d,c,a):V1a(this,b.Td,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.N;WY(this);if(a){if(!VY(this,a)){var b=this.api.ud();this.ke("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.ud().addCueRange(a.Is.Qe)}};
g.k.seekTo=function(a,b,c,d){a=void 0===a?0:a;b=void 0===b?{}:b;d=void 0===d?null:d;if(void 0===c?0:c)P1a(this,a,b);else{c=this.api.ud();var e=c===this.D?this.G:null;XY(this,!1);this.ma=a;this.W=b;null!=d&&this.Z.start(d);c&&(this.G=e||c.getPlayerState(),Kab(c),this.D=c)}};
g.k.pk=function(a){g.VG(a,128)&&a2a(this)};
g.k.isManifestless=function(){return xT(this.j.getVideoData())};
g.k.xa=function(){XY(this,!1);c2a(this);g.H.prototype.xa.call(this)};
g.k.ke=function(a,b){this.j.ke(new TK(a,b))};
var R1a=0;var d2a="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.w($Y,g.H);g.k=$Y.prototype;g.k.get=function(a){YY(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);YY(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.FD)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&aZ(this,c,!0);ZY(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&&(aZ(this,c,b),g.Ib(this.data,function(d){return d.key===a}),ZY(this))};
g.k.Jf=function(){var a;if(a=void 0===a?!1:a)for(var b=g.u(this.data),c=b.next();!c.done;c=b.next())aZ(this,c.value,a);this.data=[];ZY(this)};
g.k.xa=function(){var a=this;g.H.prototype.xa.call(this);this.data.forEach(function(b){aZ(a,b,!0)});
this.data=[]};g.w(bZ,g.H);bZ.prototype.QH=function(a){if(a)return this.B.get(a)};
bZ.prototype.xa=function(){this.j.Jf();this.B.Jf();g.H.prototype.xa.call(this)};g.w(h2a,g.H);h2a.prototype.xa=function(){g.H.prototype.xa.call(this);this.j=null;this.B&&this.B.disconnect()};g.kkb=Id(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var I3;I3={};g.cZ=(I3.STOP_EVENT_PROPAGATION="html5-stop-propagation",I3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",I3.IV_DRAWER_OPEN="ytp-iv-drawer-open",I3.MAIN_VIDEO="html5-main-video",I3.VIDEO_CONTAINER="html5-video-container",I3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",I3.HOUSE_BRAND="house-brand",I3);g.w(k2a,g.U);g.k=k2a.prototype;g.k.ls=function(){g.Nu(this.element,g.Ia.apply(0,arguments))};
g.k.Fj=function(){this.wc&&(this.wc.removeEventListener("focus",this.VP),g.nf(this.wc),this.wc=null)};
g.k.hN=function(){this.isDisposed();var a=this.app.U();a.Pm||this.ls("tag-pool-enabled");a.N&&this.ls(g.cZ.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.ls("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Ic&&(this.VM=g.ME("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.k.uK=function(a){g.qS(this.app.U());this.uI=!a;dZ(this)};
g.k.resize=function(){if(this.wc){var a=this.Yj();if(!a.isEmpty()){var b=!g.oe(a,this.UA.getSize()),c=p2a(this);b&&(this.UA.width=a.width,this.UA.height=a.height);a=this.app.U();(c||b||a.Ic)&&this.app.Ua.oa("resize",this.getPlayerSize())}}};
g.k.jt=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.wc){var b=this.app.U(),c=IRa(a)||ZK&&!window.MediaSource&&!!window.ManagedMediaSource||b.L("html5_disable_airplay");UD&&(b.L("html5_remove_x_webkit_airplay")&&c||this.wc.setAttribute("x-webkit-airplay","allow"),a.title?this.wc.setAttribute("title",a.title):this.wc.removeAttribute("title"));b.L("html5_move_disable_airplay")||(c?this.wc.setAttribute("disableremoteplayback",""):this.wc.removeAttribute("disableremoteplayback"));this.wc.setAttribute("controlslist",
"nodownload");b.lr&&a.videoId&&(this.wc.poster=a.Wg("default.jpg"))}b=g.KT(a,"yt:bgcolor");this.Wy.style.backgroundColor=b?b:"";this.tP=Goa(g.KT(a,"yt:stretch"));this.uP=Goa(g.KT(a,"yt:crop"),!0);g.Qu(this.element,"ytp-dni",a.Gf);this.resize()};
g.k.setGlobalCrop=function(a){this.kO=Goa(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.hV=a;this.resize()};
g.k.Am=function(){};
g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Ua.isFullscreen(),c=a.externalFullscreen&&g.mS(a)&&a.L("embeds_web_enable_set_faux_fullscreen_in_public_api");if(b&&rC()&&!c)return new g.ne(window.outerWidth,window.outerHeight);if(b||a.To){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.qE&&this.qE.media===a||(this.qE=window.matchMedia(a));var d=this.qE&&this.qE.matches}if(d)return new g.ne(window.innerWidth,window.innerHeight)}else if(!isNaN(this.lD.width)&&
!isNaN(this.lD.height))return this.lD.clone();return new g.ne(this.element.clientWidth,this.element.clientHeight)};
g.k.Yj=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.EJ(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.IQ&&b.width>c?new g.ne(b.width*g.EJ(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.tP)?m2a(this):this.tP};
g.k.getVideoContentRect=function(a){var b=this.Yj();a=n2a(this,b,this.getVideoAspectRatio(),a);return new g.Vr((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.sB=function(a){this.IQ=a;this.resize()};
g.k.dE=function(){return this.UJ};
g.k.onMutedAutoplayChange=function(){dZ(this)};
g.k.setInternalSize=function(a){g.oe(this.lD,a)||(this.lD=a,this.resize())};
g.k.xa=function(){this.VM&&g.NE(this.VM);this.Fj();g.U.prototype.xa.call(this)};g.k=q2a.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.HF();c&&a.visualElement&&g.$F(c,a.visualElement,b)};
g.k.createClientVe=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=cua(c);a.visualElement=c;var f=g.HF(),h=g.GF();f&&h&&(g.KB("combine_ve_grafts")?GP(EP(),c,h):g.OB(g.TF)(void 0,f,h,c));b.addOnDisposeCallback(function(){e.destroyVe(a)});
d&&this.B.add(a)};
g.k.createServerVe=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);b.addOnDisposeCallback(function(){d.destroyVe(a)});
c&&this.B.add(a)};
g.k.destroyVe=function(a){this.elements.has(a);this.elements.delete(a);this.C.delete(a);this.j.delete(a);this.B.delete(a)};
g.k.uV=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,FP(EP(),a),r2a(this))};
g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.FF(b))};
g.k.hasVe=function(a){return this.elements.has(a)};s2a.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
s2a.prototype.getPlaybackRate=function(){return this.playbackRate};iZ.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.B,d=this.audioTrack.B,e=this.audioTrack.dc,f=A2a(this,this.videoTrack,a,this.videoTrack.dc,b);b=A2a(this,this.audioTrack,this.policy.Ie?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(y2a(this,this.videoTrack,c),y2a(this,this.audioTrack,d));return a};
iZ.prototype.Uf=function(){return this.G};
iZ.prototype.wR=function(a){this.C=a};
var z2a=2/24;E2a.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.FD)()};g.w(O2a,g.cG);g.k=O2a.prototype;
g.k.gQ=function(a,b,c,d){if(this.G&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.B,f=b.D,h=b.C,l=b.Ey);this.G.nQ(a.Pa,a.startTime,this.B,d,e,f,c,l,h)}if(c){if(b&&!this.ra.has(a.Pa)){c=a.startTime;d=[];for(e=0;e<b.j.length;e++)f=b.j[e],h=c,c=h+b.B[e],d.push({startTime:h,endTime:c,adCpn:f});this.ra.set(a.Pa,d)}this.policy.Bd&&(c=this.ma&&a.Pa===this.ma.Pa+1,this.ma=a,d=this.j&&a.Pa===this.j.Pa+1,d=this.j&&c&&d&&"stop"!==this.j.Tg.event&&"predictStart"!==this.j.Tg.event,e=a.Tg||null,f=this.W.j.index.zd()<=
a.Pa,h=this.manifest.isManifestless&&this.policy.Yo,e?(this.j={Tg:e,Pa:a.Pa,QD:!!b},f?sZ(this,e,a.Pa):h&&(c?d?sZ(this,e,a.Pa):"continue"===e.event||"stop"===e.event?S2a(this,a):sZ(this,e,a.Pa):sZ(this,e,a.Pa))):(d&&S2a(this,a),4===this.B&&tZ(this,5,"qend")))}};
g.k.fQ=function(a,b,c){var d=this.W.j.index.zd()<=b;this.j={Tg:a,Pa:b,QD:c};d&&sZ(this,a,b)};
g.k.Ov=function(){this.G&&this.G.Ov()};
g.k.va=function(a,b){this.Aa.va(a,b)};
g.k.Jr=function(a,b){var c=this.W.j.index.zi(a),d;if(d=0<=c){var e;d=(null==(e=LY(b.bd,c,2))?void 0:e.Fs)||""}if(d)return b.ou(a,c),P2a(this.Aa,a,a,c),this.va("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.va("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};g.w(xZ,g.H);xZ.prototype.Co=function(a,b){this.policy.lj=EOa(a,{},this.K,void 0===b?!1:b)};U2a.prototype.uJ=function(a){var b=this;if(this.policy.sy){var c=new Set(a);c.size===this.W.size&&[].concat(g.oa(c)).every(function(d){return b.W.has(d)})||(this.policy.vy?(this.Aa.va("lwnmow",{itagDenylist:[].concat(g.oa(a)).join(",")}),this.Aa.Zw(!!c.size)):(a=new Set([].concat(g.oa(c)).filter(function(d){return!b.W.has(d)})),this.Aa.va("lwnmow",{removed:[].concat(g.oa(a)).join(",")}),this.Aa.Wt()),this.ma=-1,this.W=c,CZ(this,this.j),this.Qa=!0)}};
U2a.prototype.Co=function(a,b){var c=this.policy.lj;this.G.Co(a,void 0===b?!1:b);if(c!==this.policy.lj){CZ(this,this.j);DZ(this);var d,e;c>this.policy.lj&&(null==(d=this.C)?0:iL(d.info))&&(null==(e=this.nextVideo)||!iL(e.info))&&(this.ra=!0)}};k3a.prototype.bq=function(a){this.timestampOffset=a};v3a.prototype.dispose=function(){this.ra=!0};
v3a.prototype.isDisposed=function(){return this.ra};
g.w(LZ,Error);var Vab=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);OZ.prototype.skip=function(a){this.offset+=a};
OZ.prototype.fm=function(){return this.offset};g.k=O3a.prototype;g.k.qW=function(){return this.B};
g.k.Vn=function(){return this.B.length?this.B[this.B.length-1]:null};
g.k.Lk=function(){this.B=[];QZ(this);N3a(this)};
g.k.ju=function(a){this.Za=this.B.shift().info;a.info.equals(this.Za)};
g.k.yn=function(){return g.pr(this.B,function(a){return a.info})};
g.k.Ai=function(){return!!this.K.info.audio};
g.k.getDuration=function(){return this.K.index.Vs()};var g4a=0;g.k=UZ.prototype;g.k.Kw=function(){this.Rb=this.now();this.Gb.Kw()};
g.k.St=function(a,b){var c=this.policy.B?(0,g.FD)():0;VZ(this,a,b);a-this.D<this.policy.Z&&this.Kn()||this.Pu(a,b);this.Gb.St(a,b);this.policy.B&&(a=(0,g.FD)()-c,this.Jb+=a,this.kb=Math.max(a,this.kb))};
g.k.Pu=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Wq||(kPa(this.rd,c,d),this.Xw(c,d));this.D=a;this.B=b};
g.k.xr=function(){this.ra&&h4a(this);this.Gb.xr()};
g.k.Hw=function(a){this.ra||(this.ra=this.G-this.Ub+a,this.Ic=this.G,this.Oc=this.Z)};
g.k.gs=function(){var a={rn:this.requestNumber,rt:(this.Z-this.j).toFixed(),lb:this.G,stall:(1E3*this.C).toFixed(),ht:(this.Rb-this.j).toFixed(),elt:(this.N-this.j).toFixed(),elb:this.Ba,d:j4a(this)};this.url&&$Sa(a,this.url);this.policy.B&&(a.mph=this.kb.toFixed(),a.tph=this.Jb.toFixed());this.policy.j&&(a.ulb=this.Va,a.ult=this.Ga,a.abw=this.Qa);return a};
g.k.now=function(){return(0,g.FD)()};
var TZ;g.w(XZ,UZ);g.k=XZ.prototype;g.k.gs=function(){var a=UZ.prototype.gs.call(this);a.pb=this.hD;a.pt=(1E3*this.Na).toFixed();this.policy.j&&(a.se=this.ac);return a};
g.k.Qs=function(){var a=this.Gb;this.bb||(this.bb=a.Qs?a.Qs():1);return this.bb};
g.k.II=function(){return this.Xk?1!==this.Qs():!1};
g.k.GP=function(a,b,c){if(!this.Bb){this.Bb=!0;if(!this.Wq){VZ(this,a,b);this.Pu(a,b);var d=this.Qs();this.ac=c;if(2===d&&(c||this.policy.W))this.policy.W?this.Wq||(this.Ga?cS(this.rd,this.Ga/1E3,this.Va,.25):cS(this.rd,b/(c||this.Qa),b,this.policy.C),fS(this.rd,b,this.C)):YZ(this,this.B/c,this.B);else if(2===d||1===d)c=(a-this.j)/1E3,!(c<=this.policy.D)&&this.policy.D||this.rb||this.policy.ma||!this.Kn()||YZ(this,c,b),this.Kn()&&fS(this.rd,b,this.C);eS(this.rd,(a-this.j)/1E3||this.policy.C,this.B,
this.Na,this.kp)}WZ(this)}};
g.k.Pu=function(a,b){var c=(a-this.D)/1E3,d=b-this.B,e=this.Qs();this.isActive?1===e&&((0<d||this.policy.G)&&(.2<c||1024>d)?(this.C+=c,0<d&&.2<c&&YZ(this,.05,d),this.rb=!0):0<d&&(YZ(this,c,d),this.rb=!0)):m4a(this,b)&&(1===e&&(c=(a-this.j)/1E3,r4a(this)||this.Wq||dS(this.rd,c)),this.N=a,this.Ba=b,this.isActive=!0);UZ.prototype.Pu.call(this,a,b)};
g.k.sY=function(a){if(!this.Wq){VZ(this,a,this.G);var b=(a-this.j)/1E3;2!==this.Qs()&&(this.Kn()?(this.policy.K||(this.C+=(a-this.D)/1E3),fS(this.rd,this.B,this.C)):this.policy.N||(r4a(this)||this.Wq||dS(this.rd,b),this.N=a,this.Ba=0));eS(this.rd,b,this.B,this.Na,this.kp);a=(a-this.D)/1E3;kPa(this.rd,a,0);this.Xw(a,0)}};
g.k.Kn=function(){return m4a(this,this.B)};
g.k.rW=function(){this.Xk&&q4a(this,this.now());return this.La};
g.k.Yv=function(){return this.B>this.wQ&&m4a(this,this.B)};
g.k.eI=function(){return this.Za};
g.k.WQ=function(a){a=void 0===a?this.now():a;if(this.Xk){q4a(this,a);if(this.bb?this.II():this.W!==this.ma){var b=this.ma;if(a<b){this.Za=this.ma;return}}else b=this.W;b=Math.max(b,this.La)}else b=this.La;var c=this.hD-this.B;0>c&&(c=0);c=1E3*(c*this.snapshot.stall+c/this.snapshot.byterate);this.Za=c=this.Kn()?c+a:c+Math.max(a,b)};
g.k.OH=function(){return this.now()-this.N};
g.k.aO=function(){return 1E3*(this.B-this.Ba)/this.OH()||0};
g.k.sW=function(){return this.N};ZZ.prototype.feed=function(a){AO(this.j,a);this.tf()};
ZZ.prototype.tf=function(){if(this.D){if(!this.j.getLength())return;var a=this.j.split(this.C-this.B),b=a.tI;a=a.Bm;if(!this.Gb.Hw(this.D,b,this.B,this.C))return;this.B+=b.getLength();this.j=a;this.B===this.C&&(this.D=this.C=this.B=void 0)}for(;;){var c=0;a=g.u(s4a(this.j,c));b=a.next().value;c=a.next().value;c=g.u(s4a(this.j,c));a=c.next().value;c=c.next().value;if(0>b||0>a)break;if(!(c+a<=this.j.totalLength)){if(!(this.Gb.Hw&&c+1<=this.j.totalLength))break;c=this.j.split(c).Bm;this.Gb.Hw(b,c,0,
a)&&(this.D=b,this.B=c.getLength(),this.C=a,this.j=new zO([]));break}a=this.j.split(c).Bm.split(a);c=a.Bm;this.Gb.JA(b,a.tI);this.j=c}};
ZZ.prototype.dispose=function(){this.j=new zO};g.k=$Z.prototype;g.k.IN=function(){return 0};
g.k.SH=function(){return null};
g.k.gW=function(){return null};
g.k.Bt=function(){return 1<=this.state};
g.k.isComplete=function(){return 3<=this.state};
g.k.Hn=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.Dc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.sA=function(a){a&&this.state<a?this.Dc(a):this.callback&&this.callback(this,this.state)};
g.k.isDisposed=function(){return-1===this.state};
g.k.Id=function(){var a="";this.info.eb.forEach(function(b){a+=b.Id()+"."});
return a.slice(0,-1)};
g.k.dispose=function(){this.isDisposed()||(this.info.eb[0].j.C=!1,this.Dc(-1))};
g.k.eO=function(){return 0};
g.k.xt=function(){return!1};g.k=u4a.prototype;g.k.EA=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.Gb.Kw()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||this.Gb.xr()};
g.k.Qv=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.tD=function(){return+this.getResponseHeader("content-length")};
g.k.vn=function(){return this.B};
g.k.Uw=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Uk=function(){return 0<this.j.getLength()};
g.k.ix=function(){var a=this.j;this.j=new zO;return a};
g.k.PJ=function(){return this.j};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.AB=function(){return!0};
g.k.bK=function(){return this.C};
g.k.qf=function(){return""};g.k=v4a.prototype;
g.k.jB=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x;return g.Ha(function(B){if(1==B.j){a.status=200;b=a.j.get("docid");c=se(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 t3a(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.z(B,OQa(b,c,d,n,f),5):B.Ka(0);p=B.B;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;
r=(n+1)*e;t=Math.max(0,h.start-q);v=Math.min(h.end+1,r)-(t+q);x=new Uint8Array(p.buffer,t,v);a.B.append(x);a.loaded+=v;a.loaded<h.length&&a.Gb.St((0,g.FD)(),a.loaded);n++;return B.Ka(2)})};
g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.Qv=function(){return!0};
g.k.tD=function(){return this.range.length};
g.k.vn=function(){return this.loaded};
g.k.Uw=function(){return!!this.loaded};
g.k.Uk=function(){return!!this.B.getLength()};
g.k.ix=function(){var a=this.B;this.B=new zO;return a};
g.k.PJ=function(){return this.B};
g.k.AB=function(){return!0};
g.k.bK=function(){return!!this.error};
g.k.qf=function(){return this.error};g.k=x4a.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.W);this.D&&(b.signal=this.D.signal);b=new Request(a,b);/goodput.*rn=[0-9]*2&/.test(a)||fetch(b).then(this.ra,this.onError).then(void 0,Epa)};
g.k.onDone=function(){this.isDisposed()||this.Gb.xr()};
g.k.getResponseHeader=function(a){return this.G?this.G.get(a):null};
g.k.Qv=function(){return!!this.G};
g.k.vn=function(){return this.B};
g.k.tD=function(){return+this.getResponseHeader("content-length")};
g.k.Uw=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Uk=function(){return!!this.j.getLength()};
g.k.ix=function(){this.Uk();var a=this.j;this.j=new zO;return a};
g.k.PJ=function(){this.Uk();return this.j};
g.k.isDisposed=function(){return this.K};
g.k.abort=function(){this.C&&this.C.cancel().catch(function(){});
this.D&&this.D.abort();this.K=!0};
g.k.AB=function(){return!0};
g.k.bK=function(){return this.N};
g.k.qf=function(){return this.errorMessage};g.k=y4a.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Gb.xr()}};
g.k.EA=function(){2===this.xhr.readyState&&this.Gb.Kw()};
g.k.If=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Gb.St((0,g.FD)(),a.loaded))};
g.k.Qv=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.LF(Error("Could not read XHR header "+a)),""}};
g.k.tD=function(){return+this.getResponseHeader("content-length")};
g.k.vn=function(){return this.B};
g.k.Uw=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.B};
g.k.Uk=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.ix=function(){this.Uk();var a=this.response;this.response=void 0;return new zO([new Uint8Array(a)])};
g.k.PJ=function(){this.Uk();return new zO([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.AB=function(){return!1};
g.k.bK=function(){return!1};
g.k.qf=function(){return""};g.w(a_,g.H);g.k=a_.prototype;g.k.Oaa=function(){if(!this.isDisposed()){var a=(0,g.FD)(),b=!1;if(this.timing.Kn()){if(this.G)return;var c=this.timing.eI();this.timing.WQ();var d=this.timing.eI();d-c>=.8*this.policy.rj?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=5<=this.j):this.j=0}else{var e=a-this.timing.rW();
0<e&&(this.j+=1);a=lNa(b_(this),this.policy,!1)*this.policy.jA;(b=e>1E3*a)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}0<this.j&&this.Gb.MW();
b?this.DB(!1):this.B.start()}};
g.k.DB=function(a){this.C=!0;a&&(a=b_(this),a.B+=1);this.Gb.Cy();this.lastError="net.timeout";c_(this)};
g.k.canRetry=function(a){var b=b_(this);a=a?this.policy.Tw:this.policy.Hh;return b.timedOut<this.policy.xx&&b.j<a};
g.k.ph=function(){return this.lastError};
g.k.Kv=function(){return this.j};
g.k.dispose=function(){this.B.dispose();g.H.prototype.dispose.call(this)};g.w(kZ,$Z);g.k=kZ.prototype;g.k.Kq=function(){return this.timing.requestNumber};
g.k.df=function(){return this.me.df()};
g.k.Ss=function(){var a=C4a(this.Ed);if(this.Bk){var b=this.Bk,c=b.j.getLength();a.ulen=c;0<c&&(b=DO(b.j,0),a.ubyte=b,1===c&&0===b&&(a.b248180278=!0))}this.Eg&&(a.rc=this.policy.ll?this.Eg:this.Eg.toString());this.policy.Jb&&this.O_&&(a.tr=this.O_);a.itag=this.info.eb[0].j.info.itag;a.ml=""+ +this.info.eb[0].j.hg();a.sq=""+this.info.eb[0].Pa;this.me&&(a.ifi=""+ +dMa(this.info.resource.C));410!==this.Eg&&500!==this.Eg&&503!==this.Eg||(a.fmt_unav="true");var d;(c=this.errorMessage||(null==(d=this.xhr)?
void 0:d.qf()))&&(a.msg=c);this.SF&&(a.smb="1");bR(this.info)&&(a.sdai="1");return a};
g.k.bW=function(){return n4a(this.timing)};
g.k.qf=function(){return this.xhr.qf()||""};
g.k.Yv=function(){return this.isComplete()||this.timing.Yv()};
g.k.St=function(){!this.isDisposed()&&this.xhr&&(this.Eg=this.xhr.status,this.policy.No&&this.wg&&this.im(!1),this.il()?this.sA(2):!this.XW&&this.Yv()&&(this.sA(),this.XW=!0))};
g.k.Kw=function(){if(!this.isDisposed()&&this.xhr){if(!this.Sy&&this.xhr.Qv()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Sy=((0,g.FD)()-a)/1E3}this.xhr.Qv()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.uC&&!FLa()&&g.XC("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.Gp=a||this.Gp;this.Rq=b||this.Rq}};
g.k.xr=function(){var a=this.xhr;if(!this.isDisposed()&&a){this.Eg=a.status;a=this.sO(a);if(this.policy.Jb){var b;null==(b=this.uE)||b.stop()}5===a?c_(this.Ed):this.Dc(a);this.Ed.B.stop()}};
g.k.sO=function(a){var b=this;J4a(this);if(d_(this.Ed,this.xhr.status,this.wp?this.timing.Ea||this.TK:this.xhr.Uw()))return 5;var c="";if(F4a(this)){var d=a.PJ();d.getLength()<=this.policy.Mo&&(c=G4a(this,CO(d)))}if(c)return kNa(b_(this.Ed)),this.info.Sk(this.me,c),3;c=a.vn();if(this.Bk){this.im(!0);J4a(this);if(this.policy.Xa&&d_(this.Ed,this.xhr.status,this.timing.Ea||this.TK))return 5;if(!this.b0){if(this.TK)return kNa(b_(this.Ed)),3;this.Ed.lastError="net.closed";return 5}}else{if(this.policy.Xa&&
d_(this.Ed,this.xhr.status,this.xhr.Uw()))return 5;if((d=this.info.C)&&d!==c||a.bK())return this.Ed.lastError="net.closed",5;this.im(!0)}d=t4a(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=t4a(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.h_=!0,this.policy.UB&&(d=a);B4a(this.Ed,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(1E3*e.Na+e.j-Date.now()).toFixed(0)});
return 4};
g.k.canRetry=function(){this.isDisposed();return this.Ed.canRetry(bR(this.info))};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.Jl?this.Cy():WZ(this.timing))};
g.k.DB=function(a){this.Ed.DB(a)};
g.k.MW=function(){this.callback&&this.callback(this,this.state)};
g.k.Kv=function(){return this.Ed.Kv()};
g.k.dispose=function(){$Z.prototype.dispose.call(this);this.Ed.dispose();var a;null==(a=this.uE)||a.dispose();this.policy.Jl||this.Cy()};
g.k.Cy=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();WZ(this.timing)};
g.k.xt=function(){return 6===this.info.eb[0].type};
g.k.zk=function(){if(!this.TE().length)return[];this.uO=!0;return this.wg.zk()};
g.k.il=function(){if(1>this.state)return!1;if(this.wg&&this.wg.Kf.length)return!0;var a;return(null==(a=this.xhr)?0:a.Uk())?!0:!1};
g.k.TE=function(){this.im(!1);return this.wg?this.wg.TE():[]};
g.k.im=function(a){try{if(a||this.xhr.Qv()&&this.xhr.Uk()&&!F4a(this)&&!this.OA)this.wg||(this.wg=new jY(this.policy,this.info.eb)),this.xhr.Uk()&&(this.Bk?this.Bk.feed(this.xhr.ix()):kY(this.wg,this.xhr.ix(),a&&!this.xhr.Uk()))}catch(b){this.Bk?E4a(this,b):g.LF(b)}};
g.k.JA=function(a,b){switch(a){case 21:a=b.split(1).Bm;H4a(this,a);break;case 22:this.b0=!0;kY(this.wg,new zO([]),!0);break;case 43:if(a=RO(new LO(b),1))this.info.Sk(this.me,a),this.TK=!0;break;case 45:b=rTa(new LO(b));a=b.qK;b=b.rK;a&&b&&(this.VG=a/b);break;case 44:this.kB=KTa(new LO(b));var c,d,e;this.policy.Xa&&!this.timing.Ea&&4===(null==(c=this.kB)?void 0:c.action)&&(null==(d=this.kB)?0:null==(e=d.YZ)?0:e.wp)&&(this.wp=this.kB.YZ.wp);break;case 53:this.policy.Jb&&(a=HTa(new LO(b)).k8)&&(this.uE||
(this.uE=new g.Eu(this.T7,a,this)),this.uE.start());break;case 60:this.Yz=gTa(new LO(b));break;case 64:this.policy.uy&&(a=fTa(new LO(b)),this.policy.Qt(a));break;case 58:this.policy.Bb&&(a=rVa(new LO(b)))&&(this.fq=a)}};
g.k.Hw=function(a,b,c,d){this.timing.policy.j&&!c&&this.timing.Hw(d);if(21!==a)return!1;if(a=this.policy.No)if(d=b.getLength()+c===d,a*=this.info.eb[0].j.info.Ob,!d&&b.getLength()<a)return!1;if(!c){if(1===b.getLength())return!0;b=b.split(1).Bm}H4a(this,b);return!0};
g.k.vn=function(){return this.xhr.vn()};
g.k.IN=function(){return this.Sy};
g.k.Qs=function(){return this.II()?2:1};
g.k.II=function(){if(!this.policy.Z.ej||!isNaN(this.info.Xg)&&0<this.info.Xg)return!1;if(!this.xhr.Qv())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Bk)var a=!this.info.C;else this.xhr.tD()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a="audio/mp4"===a||"video/mp4"===a||"video/webm"===a);if(!a)return!1;if(isNaN(this.info.Xg))if(a=this.xhr.getResponseHeader("x-head-seqnum"),!a)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");else if(Number(a)>
this.info.eb[0].Pa)return!1;return!0};
g.k.eO=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.SH=function(){this.xhr&&(this.Gp=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Gp};
g.k.gW=function(){this.xhr&&(this.Rq=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Rq};
g.k.ph=function(){return this.Ed.ph()};
g.k.T7=function(){!this.isDisposed()&&this.xhr&&(this.O_="heartbeat",this.DB(!1))};g.w(jZ,$Z);g.k=jZ.prototype;g.k.onStateChange=function(){this.isDisposed()&&(mY(this.pg,this.formatId),this.j.dispose())};
g.k.Ss=function(){var a=q0a(this.pg,this.formatId),b;var c=(null==(b=this.pg.qd.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.pg.qd.get(this.formatId))?void 0:d.Ly)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:r0a(this.pg,this.formatId),isEnded:this.pg.Ph(this.formatId)}};
g.k.bW=function(){return 0};
g.k.Yv=function(){return!0};
g.k.zk=function(){return this.pg.zk(this.formatId)};
g.k.TE=function(){return[]};
g.k.il=function(){return this.pg.il(this.formatId)};
g.k.ph=function(){return this.lastError};
g.k.Kv=function(){return 0};g.k=K4a.prototype;g.k.Vn=function(){return this.D.Vn()};
g.k.ju=function(a){this.D.ju(a);var b;null!=(b=this.Z)&&(b.j=o3a(b,b.Vd,b.MA,b.j,a),b.C=a);this.Ob=Math.max(this.Ob,a.info.j.info.Ob||0)};
g.k.getDuration=function(){if(this.policy.D){var a=this.Aa.uj();if(a)return QY(a)}return this.j.index.Vs()};
g.k.Lk=function(){lZ(this);this.D.Lk()};
g.k.WN=function(){return this.D};
g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.eb[0].Pa:!1};
g.k.bq=function(a){var b;null==(b=this.Z)||b.bq(a)};g.w(q_,g.H);q_.prototype.TO=function(a,b){if(!p_(a)||!a.j.hg())return!1;var c=this.policy.Uz;0<this.policy.Nm&&(c=Math.min(c,this.policy.Nm*s_(this.Aa,a)));var d=this.C.Qa||Y4a(a)||b<=c||this.C.ra;this.logger.debug(function(){return"ready to adapt: "+d+", upgrade pending: "+Y4a(a)+", health: "+b+", max health: "+c});
return d};
q_.prototype.Ea=function(){if(!(15<this.ra++)){var a,b,c=(null==(a=this.videoTrack.B)?void 0:a.j)||(null==(b=this.audioTrack.B)?void 0:b.j);if(c){a=Math.ceil(Math.min(1E5,.1*hS(this.schedule)));r_(this,new aR([new VQ(6,c,new RQ(0,a-1),"goodputProbe",0)]));var d;null==(d=this.N)||d.start()}}};
q_.prototype.gt=function(a){var b=this,c=a.info.eb[0].j,d=a.ph();if(gQ(c.resource.j)){var e=g.gg(a.qf(),3);this.Aa.va("dldbrerr",{em:e||"none"})}a.xt()&&JU("https://web.archive.org/web/20240102114909/https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+a.Kq(),"gp",function(l){b.Aa.va("pathprobe",l)},function(l){b.Aa.handleError(l.errorCode,l.details,l.severity)});
e=a.info.eb[0].Pa;var f=R2a(this.j,a.info.eb[0].C,e);"net.badstatus"===d&&(this.K+=1);if(a.canRetry()){if(!(a.info.resource.B>=this.policy.Tw&&this.B&&bR(a.info)&&"net.badstatus"===d&&this.B.gt(f,e))){e=(c.info.video&&1<c.resource.B||410===a.Eg||500===a.Eg||503===a.Eg)&&!(0<zZ(this.C.G).size)&&!gQ(c.resource.j);f=a.Ss();var h=c.info.video?this.videoTrack:this.audioTrack;e&&(f.stun="1");this.Aa.handleError(d,f);this.isDisposed()||(e&&(this.logger.debug(function(){return"Stunning format "+c.info.id}),
EZ(this.C,c)),n_(h,a),this.Aa.tf())}}else h=1,this.B&&bR(a.info)&&"net.badstatus"===d&&this.B.gt(f,e)&&(h=0),this.manifest.isLive&&"net.badstatus"===a.ph()&&this.K<=2*this.policy.Hh?(yOa(this.manifest),this.manifest.Xd||this.manifest.isPremiere?pZ(this.Aa,0,{wd:"badStatusWorkaround"}):this.manifest.C?pZ(this.Aa,this.manifest.Na,{wd:"badStatusWorkaround",
yq:!0}):S_(this.Aa)):this.Aa.handleError(d,a.Ss(),h)};
q_.prototype.xa=function(){g.H.prototype.xa.call(this)};
var k5a=2/24;g.w(v_,g.H);v_.prototype.CE=function(a,b,c){var d;var e="m"===(null==(d=this.B)?void 0:d.reason)?"m":this.B&&w5a(this,this.B)?this.B.reason:"a";this.Aa.CE(new wZ(a,e,c));u_(this.Aa,b,a,!0)};
v_.prototype.d_=function(a){for(var b=g.u(this.Z),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.C=[c],this.D=this.manifest.j[a],new wZ(this.D,"m");this.C=[];return null};
v_.prototype.Co=function(a,b){this.j.Co(a,void 0===b?!1:b)};g.w(w_,UZ);g.k=w_.prototype;g.k.Pu=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Kn()?0<d&&(this.ma&&(.2<c||1024>d?(this.C+=c,.2<c&&cS(this.rd,.05,d,.05)):cS(this.rd,c,d,c)),this.La&&(this.W+=d,this.Na+=c)):(dS(this.rd,(a-this.j)/1E3),this.N=a,this.Ba=b);UZ.prototype.Pu.call(this,a,b)};
g.k.GP=function(a,b){VZ(this,a,b);this.Pu(a,b);this.ma&&(this.Kn()&&fS(this.rd,this.W,this.C),eS(this.rd,this.Na,this.W,0,!0))};
g.k.sY=function(a){VZ(this,a,this.G);var b=(a-this.D)/1E3;kPa(this.rd,b,0);this.Xw(b,0);this.ma&&(this.Kn()?(this.policy.K||(this.C+=(a-this.D)/1E3),fS(this.rd,this.W,this.C)):this.policy.N||dS(this.rd,(a-this.j)/1E3),eS(this.rd,this.Na,this.W,0,!0))};
g.k.ME=function(a){a=a.xM||2147483647;2!==(a&2)&&(this.La=!1);1===(a&1)&&(this.ma=!0)};
g.k.FE=function(a){a=a.xM||2147483647;2===(a&2)&&(this.La=!1);1===(a&1)&&(this.ma=!1)};
g.k.sW=function(){return this.N};
g.k.OH=function(){var a=this.La?this.now()-this.D:0;return Math.max(1E3*this.Na+a,1)};
g.k.aO=function(){return 1E3*this.W/this.OH()};
g.k.Kn=function(){return 0<this.B};
g.k.gs=function(){var a=UZ.prototype.gs.call(this);a.rbw=this.aO();a.rbe=+this.La;a.gbe=+this.ma;return a};
g.k.WQ=function(){};
g.k.eI=function(){return NaN};
g.k.rW=function(){return this.j+1E3*this.snapshot.delay};var J3={},$5a=(J3["1h"]=8,J3["9h"]=4,J3["1"]=8,J3["9"]=4,J3["("]=4,J3.h=2,J3.H=2,J3),K3={},a6a=(K3.o=3,K3.O=3,K3.so=3,K3.a=1,K3.ah=1,K3.A=1,K3.m=1,K3.M=1,K3.sa=1,K3.mac3=7,K3.MAC3=7,K3.meac3=5,K3.MEAC3=5,K3),L3={},b6a=(L3.o=0,L3.O=0,L3.a=0,L3.ah=0,L3.A=0,L3.m=1,L3.M=1,L3.mac3=1,L3.MAC3=1,L3.meac3=1,L3.MEAC3=1,L3.so=4,L3.sa=4,L3);var M3={},G5a=(M3["140"]={numChannels:2},M3["141"]={numChannels:2},M3["251"]={audioSampleRate:48E3,numChannels:2},M3["380"]={numChannels:6},M3["328"]={numChannels:6},M3),N3={},D5a=(N3["1"]='video/mp4; codecs="av01.0.08M.08"',N3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',N3["9"]='video/webm; codecs="vp9"',N3["("]='video/webm; codecs="vp9"',N3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',N3.h='video/mp4; codecs="avc1.64001e"',N3.H='video/mp4; codecs="avc1.64001e"',N3.o=
'audio/webm; codecs="opus"',N3.a='audio/mp4; codecs="mp4a.40.2"',N3.ah='audio/mp4; codecs="mp4a.40.2"',N3.mac3='audio/mp4; codecs="ac-3"; channels=6',N3.meac3='audio/mp4; codecs="ec-3"; channels=6',N3),O3={},E5a=(O3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},O3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},O3["335"]={width:1920,height:1080,bitrate:75E5,fps:30},O3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},O3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},O3["700"]={width:2560,
height:1440,bitrate:1E7,fps:60},O3["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},O3["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},O3["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},O3["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},O3["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},O3["360"]={width:1920,height:1080,bitrate:5331E3,
fps:30,cryptoblockformat:"subsample"},O3["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},O3["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},O3["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},O3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},O3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},O3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},O3["302"]={width:1280,height:720,bitrate:25E5,
fps:60},O3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},O3["298"]={width:1280,height:720,bitrate:35E5,fps:60},O3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},O3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},O3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},O3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},O3["398"]={width:1280,height:720,bitrate:1E6,fps:60},O3["313"]={width:3840,height:2160,bitrate:8E6,fps:30},O3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},O3["248"]=
{width:1920,height:1080,bitrate:2E6,fps:30},O3["247"]={width:1280,height:720,bitrate:15E5,fps:30},O3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},O3["136"]={width:1280,height:720,bitrate:3E6,fps:30},O3["385"]={width:1920,height:1080,bitrate:6503313,fps:60},O3["376"]={width:1280,height:720,bitrate:5706960,fps:60},O3["384"]={width:1280,height:720,bitrate:3660979,fps:60},O3["225"]={width:1280,height:720,bitrate:5805E3,fps:30},O3["224"]={width:1280,height:720,bitrate:453E4,fps:30},O3["145"]={width:1280,
height:720,bitrate:2682052,fps:30},O3);var x_,N5a=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["571","401","400","399","398"],["313","271","248","247"],["137","136"]],O5a=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],P5a=["412","359"],Q5a=[["140"],["251"],["380"],["328"]],P3={},K5a=(P3["398"]=["397","396","395","394"],P3["247"]=["244","243","242"],P3["136"]=["135","134","133","160"],P3["141"]=["140"],P3["251"]=["250"],P3),Q3={},L5a=(Q3["274"]=["317","273","318",
"280","279"],Q3["145"]=["144","222","223","143","142"],Q3["141"]=["149"],Q3["140"]=["149"],Q3["380"]=["381"],Q3["328"]=["329"],Q3),R3={},I5a=(R3["133"]=240,R3["134"]=360,R3["135"]=480,R3["136"]=720,R3["137"]=1080,R3["242"]=240,R3["243"]=360,R3["244"]=480,R3["247"]=720,R3["248"]=1080,R3["298"]=720,R3["299"]=1080,R3["302"]=720,R3["303"]=1080,R3["395"]=240,R3["396"]=360,R3["397"]=480,R3["398"]=720,R3["399"]=1080,R3);g.w(X5a,MU);g.k=X5a.prototype;g.k.tJ=function(a,b){b.getLength();switch(a){case 35:this.Rp(b);break;case 44:this.IE(b);break;case 43:this.mQ(b);break;case 53:this.kQ(b);break;case 55:a=new LO(b);(a={timeline:SO(a,1,T5a),Yaa:SO(a,2,W5a)},a.timeline)&&a.timeline.N_&&this.Gb.pQ(a.timeline.N_,a.timeline.Aba,a.Yaa);break;case 42:this.WP(b);break;case 45:this.KE(b);break;case 59:this.HE(b);break;case 51:this.LE(b);break;case 49:this.ME(b);break;case 50:this.FE(b);break;case 47:this.JE(b);break;case 58:this.tm(b)}};
g.k.LE=function(a){a=new LO(a);a={ukb:UO(a,1,ETa),tkb:UO(a,2,ETa)};this.Gb.LE(a)};
g.k.HE=function(a){var b=new LO(a);a=TO(b,1);var c=TO(b,2);b=TO(b,3);this.Gb.HE(a,c,b)};
g.k.KE=function(a){a=rTa(new LO(a));this.Gb.KE(a)};
g.k.JE=function(a){a=VO(a,zTa);this.Gb.JE(a)};
g.k.WP=function(a){a=new LO(a);a={videoId:RO(a,1),formatId:SO(a,2,ETa),endTimeMs:OO(a,3),nib:OO(a,4),mimeType:RO(a,5),jX:SO(a,6,ATa),indexRange:SO(a,7,ATa),AN:SO(a,8,NTa)};this.Gb.WP(a)};
g.k.Rp=function(a){a=OTa(new LO(a));this.Gb.Rp(a)};
g.k.kQ=function(a){a=HTa(new LO(a));this.Gb.kQ(a)};
g.k.IE=function(a){a=KTa(new LO(a));this.Gb.IE(a)};
g.k.mQ=function(a){a={redirectUrl:RO(new LO(a),1)};this.Gb.mQ(a)};
g.k.cQ=function(a){var b=DO(a,0);if(1!==a.getLength()){a=a.split(1).Bm;var c=this.B[b]||null;c&&y0a(this.Gb.pg,b,c,a)}};
g.k.Qp=function(a){a=DO(a,0);var b=this.B[a]||null;b&&this.Gb.Qp(a,b)};
g.k.FA=function(a){this.Gb.FA(a)};
g.k.eQ=function(a){var b=a.Hp,c=a.In,d=a.lB,e=a.JP,f=a.Gj,h=a.au,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.Fr,q=a.clipId,r=TTa(a);a=qjb.has(fL[""+a.itag]);this.B[b]=r;this.Gb.HA(r,a,{Hp:b,In:!!c,lB:null!=d?d:-1,au:null!=h?h:-1,startMs:null!=l?l:-1,durationMs:null!=m?m:-1,Fr:p,JP:e,Gj:f,clipId:q,timeRange:n})};
g.k.ME=function(a){a={xM:OO(new LO(a),1)};this.Gb.ME(a)};
g.k.FE=function(a){a={xM:OO(new LO(a),1)};this.Gb.FE(a)};
g.k.DA=function(a){this.Gb.DA(a)};
g.k.tm=function(a){a=rVa(new LO(a));this.Gb.tm(a)};g.w(y_,g.H);g.k=y_.prototype;g.k.St=function(){!this.isDisposed()&&this.xhr&&(this.im(),Y6a(this.Gb,this))};
g.k.Kw=function(){};
g.k.xr=function(){if(!this.isDisposed()&&this.xhr){var a=this.sO();5===a?c_(this.Ed):this.Dc(a);this.Ed.B.stop();var b;null==(b=this.sF)||b.stop()}};
g.k.sO=function(){if(d_(this.Ed,this.xhr.status,this.xhr.Uw(),this.info.cw()))return 5;this.im();if(this.ZZ)return 3;B4a(this.Ed,this.xhr.vn(),0);this.policy.rb&&a7a(this.Gb);return 4};
g.k.im=function(){var a=this.xhr;if(a.Uk()){a=a.ix();var b=a.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+b});
this.Bk.feed(a)}};
g.k.JA=function(a,b){this.Zaa.JA(a,b)};
g.k.Hw=function(a,b,c,d){this.Xe.policy.j&&!c&&this.Xe.Hw(d);return!1};
g.k.Rp=function(a){this.Gb.Rp(a)};
g.k.kQ=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;null==(b=this.sF)||b.dispose();this.XQ=a;a.xZ&&(this.sF=new g.Eu(this.cY,a.xZ,this));this.cY()}};
g.k.cY=function(){var a;if(null!=(a=this.XQ)&&a.items){var b;null==(b=this.sF)||b.start();if(this.Xe.Kn()){a=this.Xe.OH();b=this.Xe.aO();var c=Z5a(this,a);if(!(b>c.iJ||0<c.wP&&this.info.MN()>c.wP)){this.YQ=(0,g.FD)();var d;null==(d=this.sF)||d.stop();this.policy.rb&&(d=this.Gb,a={bv:Math.round(b*a/1E3),mx:a},d.policy.rb&&(d.Z=a,d.Xp++));this.Ed.DB(!1)}}}};
g.k.IE=function(a){this.Gb.IE(a)};
g.k.mQ=function(a){this.ZZ=!0;this.info.resource.Sk(this.me,a.redirectUrl)};
g.k.ME=function(a){this.Xe instanceof w_&&this.Xe.ME(a)};
g.k.FE=function(a){this.Xe instanceof w_&&this.Xe.FE(a)};
g.k.pQ=function(a,b,c){this.Gb.pQ(a,b,c,this.Kq())};
g.k.WP=function(a){if(RVa(this.policy)){var b=a.formatId,c=TTa({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new RQ((null==(d=a.jX)?void 0:d.first)||0,(null==(e=a.jX)?void 0:e.AX)||0),h,l;d=new RQ((null==(h=a.indexRange)?void 0:h.first)||0,(null==(l=a.indexRange)?void 0:l.AX)||0);this.manifest.N.get(c)||(c=a.AN||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=xR(""),c=wR(c,null),uR(a,new sR(b,c,f,d)))}};
g.k.KE=function(a){a.qK&&a.rK&&this.Gb.KE(a)};
g.k.DA=function(a){this.Gb.DA(a)};
g.k.HE=function(a,b,c){this.Gb.HE(a,b,c)};
g.k.LE=function(a){this.policy.Of&&this.Gb.LE(a)};
g.k.JE=function(a){this.Gb.JE(a,this.Kq())};
g.k.tm=function(a){this.policy.Bb&&this.Gb.tm(a)};
g.k.canRetry=function(){this.isDisposed();return this.Ed.canRetry(!1)};
g.k.dispose=function(){if(!this.isDisposed()){g.H.prototype.dispose.call(this);this.Ed.dispose();var a;null==(a=this.sF)||a.dispose();this.Dc(-1);this.Cy()}};
g.k.Dc=function(a){this.state=a;Y6a(this.Gb,this)};
g.k.cw=function(){return this.info.cw()};
g.k.HA=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.pg.HA(a,b,c);this.policy.Lm&&(this.pg.qd.get(a).IG=!0)};
g.k.Qp=function(a,b){this.pg.Qp(a,b)};
g.k.FA=function(a){this.requestIdentifier=a};
g.k.zk=function(a){return this.pg.zk(a)};
g.k.yn=function(a){return this.pg.yn(a)};
g.k.il=function(a){return this.pg.il(a)};
g.k.Gq=function(){return this.pg.Gq()};
g.k.Qs=function(){return 1};
g.k.Kq=function(){return this.Xe.requestNumber};
g.k.bO=function(){return this.requestIdentifier};
g.k.aW=function(){return this.clipId};
g.k.vY=function(){this.Cy()};
g.k.Cy=function(){WZ(this.Xe);var a;null==(a=this.xhr)||a.abort()};
g.k.isComplete=function(){return 3<=this.state};
g.k.wX=function(){return 3===this.state};
g.k.Hn=function(){return 5===this.state};
g.k.YW=function(){return this.isComplete()};
g.k.Bt=function(){return 1<=this.state};
g.k.xt=function(){return!1};
g.k.Kv=function(){return 0};
g.k.ZV=function(){var a;return null==(a=this.info.data)?void 0:a.BM};
g.k.MW=function(){};
g.k.tW=function(){return h6a(this.info)};
g.k.ph=function(){return this.Ed.ph()};
g.k.Ss=function(){var a=C4a(this.Ed);Object.assign(a,i6a(this.info));a.req="sabr";a.rn=this.Kq();var b;if(null==(b=this.xhr)?0:b.status)a.rc=this.policy.ll?this.xhr.status:this.xhr.status.toString();var c;(b=null==(c=this.xhr)?void 0:c.qf())&&(a.msg=b);this.YQ&&(c=Z5a(this,this.YQ-this.Xe.sW()),a.letm=c.A7,a.mrbps=c.iJ,a.mram=c.wP);return a};var d6a={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};z_.prototype.cw=function(){return 1===this.requestType};
z_.prototype.MN=function(){var a;return(null==(a=this.Gb)?void 0:a.MN())||0};g.w(A_,g.H);A_.prototype.encrypt=function(a){(0,g.FD)();return m6a(this).encrypt(a,this.iv)};
A_.prototype.decrypt=function(a,b){(0,g.FD)();return m6a(this).decrypt(a,b)};n6a.prototype.decrypt=function(a,b,c){var d=this,e,f,h,l,m,n;return g.Ha(function(p){switch(p.j){case 1:if(d.j.length&&!d.j[0].isEncrypted)return p.return();d.B=!0;d.wm.Nd("omd_s");e=new Uint8Array(16);b?c?h=new YR(c,a):h=new WR(a):f=new VR(a);case 2:if(!d.j.length||!d.j[0].isEncrypted){p.Ka(4);break}l=d.j.shift();if(!f){m=h.decrypt(CO(l.buffer),e);p.Ka(5);break}return g.z(p,f.decrypt(CO(l.buffer),e),6);case 6:m=p.B;case 5:n=m;for(var q=0;q<e.length;q++)if(255===e[q])e[q]=0;else{e[q]+=1;break}q=d.wm;
var r=l.videoId,t=l.Hp,v=l.formatId,x=new zO([n]),B;null==(B=B_(q.kd,r))||y0a(B,t,v,x);p.Ka(2);break;case 4:d.wm.Nd("omd_c"),C_(d),d.B=!1,d.wm.dQ(),g.xa(p)}})};var x6a=!!Uint8Array.prototype.copyWithin,D_=[],o6a=[],r6a=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F_=[],E_=[],G_=[],p6a=[];g.w(z6a,MU);g.k=z6a.prototype;g.k.dQ=function(){this.kd.dQ()};
g.k.tJ=function(a,b){switch(a){case 10:var c=VO(b,lTa);a=c.baa;var d=!1;switch(a){case 0:this.D=!c.uZ.s7;this.iv=c.uZ.iv;break;case 2:break;case 23:var e=this.kd;c=c.X7;e.Nd("omp_r");c.videoId&&(e.Ut=c.videoId);e.Ut!==e.videoData.videoId&&(e.videoData.x7=e.Ut,e.va("ompp","vid."+e.Ut));e.qP=!0;break;case 24:c=this.kd;c.Nd("omp_c");c.qP=!1;c.wF=!1;var f=null==(e=c.Fg)?void 0:e.get(c.Ut);c.notifySubscribers(c.Ut);null!=f&&(f.j=!0);I_(c);break;default:d=!0}this.kd.jm&&this.kd.va("ombup","id.10;pt."+a+
";len."+b.getLength()+(d?";ignored.1":""));this.C=a;break;case 11:C6a(this,b);break;case 12:this.cQ(b,!0);break;case 37:b=VO(b,dTa);(b.H4||b.mS)&&b.videoId&&this.kd.YV.set(b.videoId,b);break;case 60:this.aQ(b);break;case 64:this.Qt(b);break;case 47:this.L("html5_server_playback_start_policy")&&(b=VO(b,zTa),this.kd.playbackStartPolicy=b);break;case 35:this.Rp(b);break;default:this.kd.jm&&this.kd.va("ombup","id."+a+";len."+b.getLength()+";ignored.1")}};
g.k.DA=function(a){this.kd.MX=a};
g.k.aQ=function(a){a=VO(a,gTa);this.kd.aQ(a)};
g.k.Qt=function(a){this.L("html5_enable_lawnmower_messaging")&&(a=VO(a,fTa),this.kd.Qt(a))};
g.k.eQ=function(a){var b=a.Hp,c=a.In,d=a.lB,e=a.Gj,f=a.au,h=a.startMs,l=a.durationMs,m=a.timeRange,n=a.Fr,p=TTa(a),q=qjb.has(fL[""+a.itag]);c&&this.Nd(q?"oais_r":"ovis_r");var r=void 0!==this.j[p];this.kd.jm&&this.kd.va("ombup","id.20;hid."+b+";fid"+p);var t=a.videoId||"";this.B[b]=p;this.G[b]=t;r||(this.j[p]={videoId:t,RW:!1,Ai:q,headers:[]});this.j[p].headers.push(a);this.kd.HA(t,p,q,{Hp:b,In:!!c,lB:null!=d?d:-1,au:null!=f?f:-1,startMs:null!=h?h:-1,durationMs:null!=l?l:-1,Fr:null!=n?n:0,Gj:e,timeRange:m})};
g.k.cQ=function(a,b){var c=DO(a,0);this.kd.jm&&this.kd.va("ombup","id."+(b?12:21)+";len."+a.getLength()+";hid."+c);if(1!==a.getLength()){a=a.split(1).Bm;var d=this.B[c]||null,e=this.G[c]||"";if(d){this.Ni(this.j[d].Ai?"oafs_r":"ovfs_r");var f=this.queue;f.j.push({videoId:e,Hp:c,formatId:d,buffer:a,isEncrypted:b});f.B||C_(f)}}};
g.k.Qp=function(a){var b=DO(a,0);this.kd.jm&&this.kd.va("ombup","id.22;len."+a.getLength()+";hid."+b);a=this.B[b]||null;var c=this.G[b]||"";if(a)if(this.L("html5_use_ump_request_slicer")){var d=this.queue;d.j.push({videoId:c,Hp:b,formatId:a,isEncrypted:!1,R5:!0});d.B||C_(d)}else this.kd.Qp(c,b,a)};
g.k.FA=function(a){this.kd.FA(a)};
g.k.jQ=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r,t,v,x,B,F;return g.Ha(function(G){switch(G.j){case 1:c.kd.jQ();d=CO(a);if(!b){f=d;G.Ka(2);break}return g.z(G,M6a(c.kd,d,c.iv),3);case 3:f=G.B;case 2:e=f;if(!c.kd.enableCompression){G.Ka(4);break}h=c.kd.U();m=null==(l=performance)?void 0:l.now();return g.z(G,y6a(e,h.Qa),5);case 5:e=G.B,c.kd.va("decompression",{ds:"DecompressionStream"in window,wasm:!!h.Qa,rt:(null==(n=performance)?NaN:n.now())-m});case 4:try{p=VO(e,yTa)}catch(I){return q=I instanceof
Error?{name:I.name,message:I.message}:{},q.webcrypto=""+ +!!qO(),q.enc=""+ +c.D,r=new TK("onesie.response.parse",q),G.return(Promise.reject(r))}if(1!==p.jZ)return t={st:p.jZ,webcrypto:""+ +!!qO(),textencoder:""+ +!!g.Qa.TextEncoder},v=new TK("onesie.response.badproxystatus",t),G.return(Promise.reject(v));if(200!==p.eX)return x={st:p.eX},B=new TK("onesie.response.badstatus",x),G.return(Promise.reject(B));F=g.IO(p.body);return G.return(F)}})};
g.k.Rp=function(a){this.L("html5_consume_onesie_next_request_policy_for_sabr")&&(a=VO(a,OTa),this.kd.Rp(a))};
g.k.Nd=function(a){this.kd.Nd(a)};
g.k.Ni=function(a){return this.kd.Ni(a)};
g.k.L=function(a){return this.kd.L(a)};g.w(K_,g.H);g.k=K_.prototype;g.k.aW=function(){return""};
g.k.Gq=function(a){var b,c;return(null==(c=null==(b=this.Fg)?void 0:b.get(a))?void 0:c.Gq())||[]};
g.k.il=function(a,b){var c;return!(null==(c=B_(this,b))||!c.il(a))};
g.k.zk=function(a,b){var c;return(null==(c=B_(this,b))?void 0:c.zk(a))||[]};
g.k.yn=function(a,b){var c;return(null==(c=B_(this,b))?void 0:c.yn(a))||[]};
g.k.Dc=function(a){this.state=a;this.notifySubscribers()};
g.k.cw=function(){return!1};
g.k.Nd=function(a){this.qa.Nd(a)};
g.k.Ni=function(a){return this.qa.Ni(a)};
g.k.JA=function(a,b){this.wm.JA(a,b)};
g.k.UP=function(){this.Nd("orfb");this.CI=!0;if(N6a(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.vn(),rt:(1E3*n4a(this.Xe)).toFixed(),shost:g.Gl(this.tQ),trigger:"o1"};this.va("pathprobe",SK(a))}};
g.k.jQ=function(){this.Nd("opr_r");this.WW=!0};
g.k.HA=function(a,b,c,d){if(this.Fg){if(!this.Fg.has(a)){var e=new lY(this);this.Fg.set(a,e);g.J(this,e)}var f;null==(f=this.Fg.get(a))||f.HA(b,c,d)}I_(this)};
g.k.aQ=function(a){this.Yz=a};
g.k.Qt=function(a){this.X.Qt(a)};
g.k.Rp=function(a){a.videoId&&this.nY.set(a.videoId,a)};
g.k.dQ=function(){if(this.Fg)for(var a=g.u(this.Fg.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Fg.get(b.value))||c.sA()}};
g.k.va=function(a,b,c){this.qa.va(a,b,void 0===c?!1:c)};
g.k.Qp=function(a,b,c){var d;null==(d=B_(this,a))||d.Qp(b,c)};
g.k.FA=function(a){this.QZ.set(a.videoId,a)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,F,G,I,L;return g.Ha(function(P){switch(P.j){case 1:a.logger.debug("Onesie fetch started.");a.eG?a.KM.start():a.PE.start();a.Nd("or_i");b=a.X.experiments.jb("html5_onesie_verbose_timing");c={};d=(0,g.FD)();e=function(V){b&&(c[V]=(0,g.FD)()-d)};
e("loc_s");if(f=E6a(a.videoData,a.Ez)){P.Ka(2);break}e("loc_async");h=g.EJ(a.X.experiments,"html5_onesie_redirector_timeout_ms");return g.z(P,F6a(a.videoData,a.Ez,h),3);case 3:f=P.B;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new TK("onesie.unavailable.hotconfig",l),a.fail(m),P.return(a.gq);a.e_=fQ(f);e("loc_e");n=g.JS(a.X,g.$T(a.videoData));if(!n.j){p=n.getValue();P.Ka(4);break}return g.z(P,n.j,5);case 5:p=P.B;case 4:q=p;e("oauth");r=H6a(a.playerRequest,a.X,a.videoData,
q,iY(a.e_));g.ya(P,6);if(!B6a(a,r)){e("or_s_sync");a.HJ=J6a(r,a.OE,a.X,a.qa,a.fN.onesieUstreamerConfig,null==(t=a.videoData.iZ)?void 0:t.Go);P.Ka(8);break}e("or_s_async");return g.z(P,L6a(r,a.OE,a.X,a.qa,a.fN.onesieUstreamerConfig,null==(v=a.videoData.iZ)?void 0:v.Go),9);case 9:a.HJ=P.B;case 8:g.za(P,7);break;case 6:return x=g.Aa(P),a.logger.info("Failed to create OnesieRequestProto."),a.fail(x),P.return(a.gq);case 7:return e("or_e"),b&&a.va("oreqvt",c),a.enableCompression=a.HJ.KO.pN,a.Nd("osor"),
B=OVa(a.X),F=g.cP(a.HJ,oTa),G={method:"POST",body:F,headers:{"Content-Type":"text/plain",Referer:location.origin}},I=a.L("html5_onesie_media_capabilities"),G6a(f,a.videoData,P6a(a),I),a.logger.debug("Starting Onesie network request."),a.jm&&a.va("ombrs","1"),L=a.qa.U().schedule,a.Xe=new XZ(a,{rd:L,qN:a.jm,Xw:function(V,ka){a.qa.mF(V,ka)},
kp:a.L("html5_disable_bandwidth_cofactors_for_sabr")}),f.set("rn",""+a.Xe.requestNumber),a.tQ=f.df(),k4a(a.Xe,a.tQ),a.Nd("or_p"),a.xhr=z4a(new QQ(f),B,a.Xe,RR,G),a.hZ.start(),P.return(a.gq)}})};
g.k.Kw=function(){this.Nd("orh_r")};
g.k.St=function(){!this.CI&&this.xhr.vn()&&this.UP();if(this.Mz&&!this.eG){var a;null==(a=this.GJ)||a.start()}this.im()};
g.k.xr=function(){this.logger.debug("onXhrDone");this.im();if(!this.isDisposed()){var a=J_(this),b=this.xhr;a.rc=b.status;if(b.qf()){var c="onesie.net";a.msg=b.qf()}else 400<=b.status?c="onesie.net.badstatus":b.Uw()?this.WW||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.fail(new TK(c,a)):(this.Nd("or_fs"),this.Xe.GP((0,g.FD)(),b.vn(),0),this.Dc(4),this.jm&&this.va("rqs",a));this.jm&&this.va("ombre","ok."+ +!c);this.wF=!1;I_(this);A6a(this.wm);
if(!this.eG){this.PE.stop();var d;null==(d=this.GJ)||d.stop()}var e;if(c=null==(e=this.Ez)?void 0:k0a(e))for(e=0;e<c.length;e++)this.va("pathprobe",c[e])}};
g.k.ZV=function(){};
g.k.vY=function(){if(this.playerResponse){var a;null==(a=this.xhr)||a.abort()}};
g.k.U=function(){return this.X};
g.k.L=function(a){return this.X.L(a)};
g.k.U7=function(){if(N6a(this)&&this.Ez&&(!this.CI||this.L("html5_onesie_probe_ec_hosts"))){var a=this.Ez;if(a.X.experiments.jb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:fQ(b.location);c&&hY(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:fQ(d.location))&&hY(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:fQ(e.location))&&hY(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:fQ(c.location))&&hY(a,d,"o3",this)}}};
g.k.P4=function(){if(!this.isDisposed()&&!this.isComplete()){if(this.Mz){if(1E3<(0,g.FD)()-this.Xe.Z){var a=J_(this);this.fail(new TK("net.timeout",a))}}else 1E4<(0,g.FD)()-this.Xe.j&&this.qO();this.isComplete()||this.KM.start()}};
g.k.qO=function(){this.logger.info("Onesie request timed out");this.wF=!1;if(!I_(this)){var a=J_(this);a.timeout="1";this.fail(new TK("onesie.request",a))}};
g.k.fail=function(a){var b=this;a=VK(a);this.Mz?this.qa.ke(a):(this.gq.reject(a),this.Mz=!0);A6a(this.wm);this.eG||this.PE.stop();this.Nd("or_fe");var c,d;null==(c=this.Ez)||null==(d=k0a(c))||d.forEach(function(e){b.va("pathprobe",e)});
this.Dc(5);this.dispose()};
g.k.isComplete=function(){return 3<=this.state};
g.k.YW=function(a){var b,c;return this.isComplete()||!!(null==(b=this.Fg)?0:null==(c=b.get(a))?0:c.j)};
g.k.wX=function(){return!1};
g.k.Hn=function(){return 5===this.state};
g.k.notifySubscribers=function(a){for(var b=0;b<this.TF.length;b++)a&&this.TF[b].Ce()!==a||Y6a(this.TF[b],this)};
g.k.tW=function(){var a,b;return(null==(a=this.HJ)?void 0:null==(b=a.zs)?void 0:b.HQ)||0};
g.k.xa=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();A6a(this.wm);this.Bk.dispose();var b;null==(b=this.GJ)||b.dispose();this.Dc(-1);this.TF=[];g.H.prototype.xa.call(this)};
g.k.im=function(){try{var a=this.xhr;102400<a.vn()&&!this.rX&&(this.Nd("or100k"),this.rX=!0);if(a.Uk()){var b=a.ix(),c=b.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+c});
this.jm&&this.va("ombrss","len."+c);this.Bk.feed(b)}if(this.Fg)for(var d=g.u(this.Fg.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;null==(a=this.Fg.get(f))||a.sA();this.notifySubscribers(f)}}catch(h){this.fail(h)}};
g.k.Kq=function(){return this.Xe.requestNumber};
g.k.bO=function(a){return this.QZ.get(a)};g.w(R6a,g.H);g.k=R6a.prototype;g.k.mK=function(a){this.K=void 0;a7a(this);$6a(this,a)};
g.k.SO=function(a){return 0===this.j.length?!1:50>Math.abs(this.j[0].tW()-a)};
g.k.gt=function(a){if(a instanceof K_)this.j.pop();else{var b=1;a.canRetry()&&(this.j.pop(),null==a||a.dispose(),b=0);this.Aa.handleError(a.ph(),a.Ss(),b)}};
g.k.Rp=function(a){this.B=a;this.K=(0,g.FD)()+(a.backoffTimeMs||0)};
g.k.IE=function(a){if(!(void 0===a.action||this.policy.Dx&&0===a.action&&this.W)){var b={};b.reason=a.Aaa;b.action=a.action;switch(a.action){case 1:this.Aa.vH(b);break;case 0:this.W=!0;this.Aa.uH(b);break;case 2:this.Aa.handleError("sabr.config",b,1)}}};
g.k.pQ=function(a,b,c,d){if(this.policy.D){for(var e=this.Aa,f=e.va,h="",l=g.u(a),m=l.next();!m.done;m=l.next()){m=m.value;h+=".cid."+m.clipId;if(m.Rr){var n=m.Rr;h+=".vid."+n.I0+(".pst."+n.vZ)+(".ps."+n.wZ)+(".lst."+n.I7)+(".ld."+n.QX)+(".ls."+n.RX)}m.FP&&(h+=".nonv."+m.FP.WI)}f.call(e,"ssap",{rn:d,v:b,tl:h});if(d=this.Aa.uj())if(e=b,e=void 0===e?"":e,d.Vba!==e&&(d.Vba=e,(h=d.timeline.j)&&h.getVideoData())){e=[];f=h.getVideoData();h=h.Yl();l=new Map;m=[];n=[];var p=0,q=0,r=0,t=[];a=g.u(a);for(var v=
a.next();!v.done;v=a.next()){var x=v.value,B=x.clipId;if(B){var F;if(x.Rr){r=x.Rr.QX||0;var G=x.Rr.RX||1;v=Number(((x.Rr.vZ||0)/(x.Rr.wZ||1)*1E3).toFixed(0));G=Number((r/G*1E3).toFixed(0));r=F=v+G}else v=r,G=0,F=v,d.PF.has(B)||d.jk.add(B);var I=void 0,L=null!=(I=l.get(B))?I:0;var P=d,V=B;I=v;var ka=F,sa=BY(P.timeline,V);if(null!=sa&&sa.length){L<sa.length&&(sa[L].Ec=I,sa[L].B=ka);if(P=P.Ul.get(V))P.start=I,P.end=ka;I=!0}else I=!1;I?l.set(B,L+1):(t.push(B),x.Rr&&(t=new g.jK(v,F,{id:t.join(","),namespace:"ssap",
priority:9}),d.Ul.set(B,t),m.push(t),t=[]),I=L=void 0,(null==(L=x.Rr)?void 0:L.I0)===(null==(I=f)?void 0:I.videoId)?(n.length&&G1a(d,p||0,q,n),q=p=F,n=[],x=void 0,B!==(null==(x=f)?void 0:x.clientPlaybackNonce)&&(x=void 0,d.api.va("ssap",{cnm:1,cid:B,cpn:null==(x=f)?void 0:x.clientPlaybackNonce})),f&&(f.Lm=v),B=c1a(d.timeline,1,v,G,f),e.push(B),a1a(d.timeline,v,F,[B])):(I=d.Zy.get(B),ka=void 0,L=null!=(ka=I)?ka:new g.nT(d.api.U(),{cpn:B}),d.jk.has(B)&&d.Zy.set(B,L),p=Math.min(v,p),q=Math.max(F,q),
d.api.va("ssap",{e:v,d:G,c:B,p:I?1:0}),L.Lm=v,B=void 0,v=c1a(d.timeline,2,v,G,L,null==(B=x.FP)?void 0:B.WI),n.push(v)))}else d.api.va("ssap",{cm:1})}n.length&&G1a(d,p||0,q,n);h&&e.length&&d.timeline.B.set(h,e);m.length&&d.qa.Gy(m);e=d.qa.Zl();e=g.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,f.C&&(h=NY(d,f.C),f.start=f.start-f.qm+h,f.end=f.end-f.qm+h,f.qm=h)}c&&c.type&&(this.videoData.sabrContextUpdates.set(c.type,c),c.sendByDefault&&this.lm.add(c.type),this.videoData.vy=b||"")}};
g.k.KE=function(a){if(a.qK&&a.rK){var b=a.qK/a.rK;this.audioTrack.N=!1;this.videoTrack.N=!1;var c={wd:"sabr_seek",MI:!0,HR:!0};a.seekSource&&(c.seekSource=a.seekSource);pZ(this.Aa,b,c)}};
g.k.DA=function(a){a.rI&&a.sI&&zOa(this.manifest,a.rI,a.sI)};
g.k.tm=function(a){this.Aa.tm(a)};
g.k.HE=function(a,b,c){this.policy.j&&this.Aa.va("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){var d=g.u(a);for(a=d.next();!a.done;a=d.next())this.lm.add(a.value)}if(b)for(b=g.u(b),a=b.next();!a.done;a=b.next())a=a.value,this.lm.has(a)&&this.lm.delete(a);if(c)for(c=g.u(c),a=c.next();!a.done;a=c.next())a=a.value,this.videoData.sabrContextUpdates.has(a)&&(this.videoData.sabrContextUpdates.delete(a),3===a&&(this.videoData.vy=""))};
g.k.LE=function(){};
g.k.JE=function(a,b){SVa(this.policy,a,4,b)};
g.k.Ce=function(){return this.qa.Ce()||""};
g.k.MN=function(){var a=1E3*l_(this.audioTrack,!0),b=1E3*l_(this.videoTrack,!0);return Math.min(a,b)};
g.k.nI=function(a){t7a(this.Aa,d3a(this.N,a))};
g.k.xa=function(){g.H.prototype.xa.call(this);this.B=void 0;$6a(this,!0);this.j=[]};c7a.prototype.tf=function(a,b){if(this.D)return h7a(this,b);if(b=qZ(a)){var c=b.B;c&&c.G&&c.B&&(a=a.C.length?a.C[0]:null)&&2<=a.state&&!a.Hn()&&0===a.info.Xg&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN};
c7a.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.w(g.N_,g.H);g.k=g.N_.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a});
a=a||0;XV(this.policy)||(b=FZ(this.j),w7a(this.qa,new wZ(b.video,b.reason)),this.qa.Fw(new wZ(b.audio,b.reason)));this.manifest.isManifestless&&r5a(this.C);this.K&&e7a(this.K,this.videoTrack.j);b=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.manifest.isManifestless?b:a;if(this.policy.B){var d;(null==(d=this.ma)?0:Q6a(d,this.Ce()||""))&&l7a(this)&&k7a(this,this.videoTrack)&&k7a(this,this.audioTrack)&&b7a(this.ra,this.ma)}else this.Ba&&(m7a(this,this.videoTrack),m7a(this,this.audioTrack),
p0a(this.Ba),delete this.Ba);c?(this.policy.He?(this.tb=c,Q_(this,c)):Q_(this,!1),g.Fu(this.oE)):(c=0===this.currentTime,t_(this.C,this.videoTrack,this.videoTrack.j,c),t_(this.C,this.audioTrack,this.audioTrack.j,c),this.policy.B&&U6a(this.ra,!0),this.seek(this.currentTime,{}).Al(function(){}),this.timing.tick("gv"));
if(this.manifest.We||this.manifest.Th||this.manifest.Na||this.manifest.Jb||this.manifest.Bb)this.qa.getVideoData().L("html5_record_live_playback_window_study")?this.qa.lF(this.manifest):this.va("minMaxSq",{minSq:this.manifest.We,maxSq:this.manifest.Th,minDvrTime:this.manifest.Na,maxDvrTime:this.manifest.Jb,startWalltime:this.manifest.Bb})};
g.k.resume=function(){if(this.isSuspended||this.Zq){this.logger.debug("Resumed.");this.tH=this.Zq=this.isSuspended=!1;try{this.tf()}catch(a){g.KF(a)}}};
g.k.fz=function(a){a=void 0===a?!1:a;this.logger.debug("detaching media source");p7a(this);HL(this.qa)&&(this.N=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Ea&&this.va("loader",{setsmb:1}),this.policy.Ba=!0):this.policy.He?Q_(this,this.tb):Q_(this,!1);this.Lk()};
g.k.setAudioTrack=function(a,b,c){c=void 0===c?!1:c;if(!this.isDisposed()){var d=!isNaN(b);c&&d&&(this.audioTrack.W=Date.now(),this.policy.Ic&&(this.Va=!0));if(XV(this.policy)){var e=this.D.d_(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id});
this.qa.Fw(e)}else{var f=c3a(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id});
this.qa.Fw(new wZ(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.zi(b),this.va("setAudio",{id:a.id,cmt:b,sq:c}),0<=c)){W4a(this.audioTrack,c,NaN,NaN);BR(this.manifest,c,!1);return}this.qa.po()}};
g.k.setPlaybackRate=function(a){a!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(a)};
g.k.CE=function(a){var b=a.j.info.Ai();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+qL(a.j.info)});
b?this.qa.Fw(a):w7a(this.qa,a)};
g.k.nI=function(a){YQ(a.eb[a.eb.length-1])&&t7a(this,d3a(this.j,a.eb[0].j))};
g.k.bI=function(){return this.qa.bI()};
g.k.tm=function(a){this.qa.tm(a)};
g.k.xz=function(){return this.qa.xz()};
g.k.Zl=function(){return this.qa.Zl()};
g.k.rQ=function(a){this.qa.rQ(a)};
g.k.paa=function(){var a,b=null==(a=this.qa.kf())?void 0:a.getCurrentTime();b?this.qa.va("rms",{cta:b}):g.Fu(this.Bb)};
g.k.tf=function(){s7a(this);if(this.Ta&&FL(this.Ta)&&!this.Ta.dk()){var a=g_(this.videoTrack);a=this.policy.iz&&a&&WQ(a);this.manifest.isManifestless&&this.manifest.C&&yR(this.manifest)?(this.N=yR(this.manifest),this.Ta.xl(this.N)):CR(this.manifest)&&!a?isNaN(this.N)?(this.N=this.currentTime+3600,this.Ta.xl(this.N)):this.N<=this.currentTime+1800&&(this.N=Math.max(this.N+1800,this.currentTime+3600),this.Ta.xl(this.N)):this.Ta.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),
(!isFinite(this.N)||this.N!==a)&&0<a&&(this.Ta.xl(a),this.N=a))}if(!this.isDisposed())if(tOa(this.manifest)&&this.manifest.Hn()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.bb?{rc:b.Eg}:{rc:b.Eg.toString()},1)}else if(this.policy.B){try{X6a(this.ra);this.manifest.isManifestless&&this.policy.G&&oZ(this.B);if(this.Ta){if(RVa(this.policy)&&this.videoTrack.Ea&&this.audioTrack.Ea){var c=this.Ta,d=this.videoTrack.j,e=this.audioTrack.j;!IL(c)&&e&&d&&(EBa(c,d.info,e.info,this.policy.nh),
q7a(this,c))}IL(this.Ta)&&this.XE()}XV(this.policy)||P_(this);U6a(this.ra)}catch(h){g.LF(h),b=h,this.uH({reason:"exp",ename:b.name,emsg:b.message})}g.Fu(this.Za)}else if(!this.manifest.B||!b5a(this.videoTrack)&&!b5a(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Za?c=!1:(this.Lk(),this.qa.seekTo(Infinity,{wd:"checkLoaderTracksSync",yq:!0}),c=!0),!c){s7a(this);this.manifest.isManifestless&&(c5a(this.videoTrack),c5a(this.audioTrack),oZ(this.B),(c=qZ(this.videoTrack))&&c.B&&(c=
c.B.G&&!this.policy.Tj,this.va(c===this.policy.Z.ej?"strm":"strmbug",{strm:c,sfmp4:this.policy.Z.ej,dfs:this.policy.Tj},!0)));if(this.Ta)this.XE();else if(this.policy.C){var f;c=!1;if(this.policy.Yx)for(d=g.u([this.videoTrack,this.audioTrack]),e=d.next();!e.done;e=d.next()){a=e.value;for(e=qZ(a);e&&a.Vn()!==g_(a);e=qZ(a))a.ju(e);c=c||!!e}else(b=qZ(this.videoTrack))&&this.videoTrack.ju(b),(f=qZ(this.audioTrack))&&this.audioTrack.ju(f);i_(this.videoTrack)&&i_(this.audioTrack)?this.logger.debug("Received all background data; disposing"):
(b||f||c)&&R_(this)}P_(this);t_(this.C,this.videoTrack,this.videoTrack.j,!1);t_(this.C,this.audioTrack,this.audioTrack.j,!1);this.policy.jy||v7a(this,this.videoTrack,this.audioTrack);l5a(this.C,this.videoTrack,this.audioTrack);l5a(this.C,this.audioTrack,this.videoTrack);this.Qa&&!this.isSuspended&&iS(this.schedule)&&(I7a(this,this.Qa),this.Qa="");this.K&&(b=this.K,b.D?(f=b.K+b.policy.tx,b.C||(f=Math.min(f,b.startTimeSecs+b.policy.lk)),b=Math.max(0,1E3*f-Date.now())):b=NaN,isNaN(b)||g.Fu(this.Rb,b));
g.Fu(this.Za)}};
g.k.uH=function(a){this.qa.uH(a)};
g.k.vH=function(a){this.qa.vH(a)};
g.k.XE=function(){var a=this;if(this.Ta){var b=this.Ta.j,c=this.Ta.B,d=y7a(this);if(d){if(this.policy.Du){if(!b.Ev()){var e=qZ(this.audioTrack);e&&(A7a(this,this.audioTrack,b,e.info),C7a(this,b,e))}!c.Ev()&&(b=qZ(this.videoTrack))&&(A7a(this,this.videoTrack,c,b.info),C7a(this,c,b))}this.fp||(this.fp=(0,g.FD)(),this.logger.debug(function(){return"Appends pause start "+a.fp+" reason "+d}),this.policy.j&&this.va("apdps",{r:d}))}else this.fp&&(x7a(this,this.fp),this.fp=0),z7a(this),e=!1,E7a(this,this.videoTrack,
c)&&(e=!0,H2a(this.timing),L2a(this.timing)),this.Ta&&!this.Ta.Pg()&&(E7a(this,this.audioTrack,b)&&(e=!0,I2a(this.timing),M2a(this.timing)),!this.isDisposed()&&this.Ta&&(!this.policy.Na&&i_(this.videoTrack)&&i_(this.audioTrack)&&FL(this.Ta)&&!this.Ta.dk()&&(c=g_(this.audioTrack).j,c===this.manifest.j[c.info.id]&&(this.logger.debug("Setting EOS"),GBa(this.Ta),nPa(this.schedule))),e&&!this.Ta.isAsync()&&R_(this)))}};
g.k.D3=function(a){var b=this,c;if(this.policy.Ic&&a===(null==(c=this.Ta)?void 0:c.j)&&this.Xa){var d;this.qa.va("asl",{l:this.Xa-this.currentTime,xtag:null==(d=g_(this.audioTrack))?void 0:d.j.info.j});this.Va=!1;this.Xa=0}a.mm()&&0===a.Ze().length&&(a.Py(),this.Ta&&!this.Ta.mm()&&(this.qa.U().Uc()&&this.qa.va("rms",{ld:"seek"}),this.Ta.K=performance.now(),this.qa.zN(),this.qa.U().Uc()&&g.Fu(this.Bb)));if(this.policy.Ga&&this.Ta){c=a===this.Ta.j;var e=a.VH();if(e){if(!e.Xb||e.hf)c=a.pc({a:c}),c.omt=
(this.getCurrentTime()+this.Pc()).toFixed(3),c.to=this.Pc(),this.va("sbu",c);e.hf&&!a.dk()&&setTimeout(function(){var f=a.Ze(),h=tL(f,e.startTime+k5a),l=tL(f,b.currentTime);(0>h||h!==l)&&b.va("sbu_mismatch",{b:sL(f),c:b.currentTime,s:e.Id()})},0)}}this.tf()};
g.k.x8=function(a){if(this.Ta){var b=g_(a===this.Ta.j?this.audioTrack:this.videoTrack);if(a=a.cO())for(var c=0;c<a.length;c++)this.va("appendedbuffer",{i:c,b:g.fg(a[c].subarray(0,4096),3)});a=void 0;b&&(a=$Q(b));this.handleError("fmt.unplayable",a,1)}};
g.k.Gw=function(a){this.qa.Gw(a)};
g.k.gQ=function(a,b,c){this.manifest.isManifestless&&d4a(this,b,c,!!a.info.video,!0)};
g.k.fQ=function(a,b,c,d){a.info.video&&this.G.fQ(b,c,d)};
g.k.uJ=function(a){this.j.uJ(a)};
g.k.JD=aa(20);g.k.xK=function(a){this.uc=a;var b;null!=(b=this.audioTrack.Z)&&(b.bd=a);null!=(b=this.videoTrack.Z)&&(b.bd=a)};
g.k.uj=function(){return this.uc};
g.k.HI=function(){return this.videoTrack.N||this.audioTrack.N};
g.k.seek=function(a,b){if(this.isDisposed())return Wf();if(this.HI())return Wf("seeking to head");s7a(this);this.ir=(0,g.FD)();XV(this.policy)||P_(this,a);this.Ta&&this.Ta.j&&this.Ta.B&&!this.qa.getVideoData().kU&&(this.Ta.j.isLocked()||this.Ta.B.isLocked())&&this.qa.po({reattachOnLockedBuffer:1,vsb:""+this.Ta.B.isLocked(),asb:""+this.Ta.j.isLocked()});var c=this.currentTime;this.currentTime=this.B.seek(a,b);uZ(this.G,a,c);R_(this);return Vf(this.currentTime)};
g.k.SO=function(a){return this.policy.B&&this.ra.SO(a)};
g.k.mK=function(a){this.ra.mK(a)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.LN=function(){return this.audioTrack.j.info};
g.k.ON=function(){return this.videoTrack.j.info};
g.k.KN=function(){return this.audioTrack.j.info.ub};
g.k.NN=function(){return this.videoTrack.j.info.ub};
g.k.xa=function(){try{this.fz();lZ(this.audioTrack);lZ(this.videoTrack);var a;null==(a=this.audioTrack.Z)||s3a(a);var b;null==(b=this.videoTrack.Z)||s3a(b);g.H.prototype.xa.call(this)}catch(c){g.KF(c)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=UK(c);if("fmt.unplayable"===a&&this.manifest.isLive){this.policy.Du=!1;var e=this.manifest;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new TK(a,b,c);g.db(this);SK(b.details);this.qa.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.pc=function(){var a=g_(this.audioTrack),b=g_(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.B.Uf(),lmf:this.j.j.isLocked(),lbw:lPa(this.schedule).toFixed(3),lhd:gS(this.schedule).toFixed(3),lst:(1E9*(this.schedule.B.Wi()||0)).toFixed(3),laa:a?a.Id():"",lva:b?b.Id():"",lar:this.audioTrack.B?this.audioTrack.B.Id():"",lvr:this.videoTrack.B?this.videoTrack.B.Id():"",laq:""+j_(this.audioTrack),lvq:""+j_(this.videoTrack)};this.Ta&&!this.Ta.Pg()&&this.Ta.j&&this.Ta.B&&(a.lab=sL(this.Ta.j.Ze()),
a.lvb=sL(this.Ta.B.Ze()));this.fp&&(a.lapt=((0,g.FD)()-this.fp).toFixed(0),a.lapr=y7a(this));this.Ga&&(a.lapmbht=((0,g.FD)()-this.Ga).toFixed(0));return a};
g.k.Lk=function(){try{this.policy.B&&this.ra.mK(!1),this.audioTrack.Lk(),this.videoTrack.Lk()}catch(a){g.KF(a)}this.policy.C=""};
g.k.GN=function(){return gZ(this.Z)};
g.k.va=function(a,b,c){this.qa.va(a,b,void 0===c?!1:c)};
g.k.Ce=function(){return this.qa.Ce()};
g.k.yq=function(a,b){a/=b;isNaN(this.timestampOffset)&&N7a(this,a-Math.min(a,this.policy.NA));return(a-this.timestampOffset)*b};
g.k.Pc=function(){return this.timestampOffset};
g.k.Uf=function(){return this.B.Uf()};
g.k.Ov=function(){this.G.Ov()};
g.k.Co=function(a,b){b=void 0===b?!1:b;XV(this.policy)?this.D.Co(a,b):this.j.Co(a,b)};
g.k.AF=function(a,b){if(!this.W)return!1;var c=this.videoTrack.j.index.zi(a);return this.W.AF(a,b,c)};
g.k.Jr=function(a,b){if(this.W&&this.G.Jr(a,this.W))return N7a(this,this.timestampOffset-b),R_(this),!0;b=this.videoTrack.j.index.zi(a);this.handleError("ad.skipfailed",{dec:!!this.W,t:a.toFixed(3),sq:b});return!1};
g.k.lW=function(){return this.manifest};
g.k.isOffline=function(){return!!this.qa.getVideoData().cotn};
g.k.mF=function(a,b){this.qa.mF(a,b)};
g.k.aR=function(a){var b=this.qa.getVideoData().jh;if(b){var c=this.C;c.ih=a;c.jh=b;S_(this)}};
g.k.aJ=function(a){this.videoTrack.N=!1;this.audioTrack.N=!1;this.B.B=!1;this.qa.aJ(a)};
g.k.wR=function(a){this.B.wR(a-this.Pc())};
g.k.QM=function(){this.qa.QM()};
g.k.ZI=function(a){a!==this.policy.yf&&((this.policy.yf=a)||this.tf())};
g.k.TQ=function(a,b){var c=this.audioTrack.dc,d=this.videoTrack.dc;c&&d&&(c.remove(a,b),d.remove(a,b))};
g.k.Wt=function(){this.qa.Wt()};
g.k.po=function(a){this.qa.po(a)};
g.k.Zw=function(a){this.qa.Zw(a)};g.k=g.T_.prototype;g.k.nz=function(a,b,c,d,e,f){return this.bd.nz(a,b,c,d,e,f)};
g.k.Ys=function(a,b,c,d,e,f){return this.bd.Ys(a,b,c,d,e,f)};
g.k.kI=function(a){this.bd.kI(a)};
g.k.gt=function(a,b){return this.bd.gt(a,b)};
g.k.Ov=function(){this.bd.Ov()};
g.k.AF=function(a,b,c){return this.bd.AF(a,b,c)};
g.k.ou=function(a,b){this.bd.ou(a,b)};
g.k.eR=function(){this.bd.eR()};
g.k.uD=aa(44);g.k.Sk=function(a,b,c){this.bd.Sk(a,b,c)};
g.k.cG=aa(42);g.k.nQ=function(a,b,c,d,e,f,h,l,m){this.bd.nQ(a,b,c,d,e,f,h,l,m)};
g.k.yR=function(a){this.bd.yR(a)};
g.k.Ot=function(a){return this.bd.Ot(a)};
g.k.mN=function(a){return this.bd.mN(a)};g.w(U_,g.cG);g.w(V_,U_);V_.prototype.K=function(a,b){if(a&&b){var c=1*Number(Ol(a,"cpi"))+1;isNaN(c)||0>=c||c<this.C?(this.D.stop(),this.B.stop(),this.C=-1,this.j={}):(c>this.C&&(this.C=c,g.id(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.Fu(this.B))}};
V_.prototype.G=function(){for(var a=g.u(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.oa;for(var d=this.C,e=this.j[c].match(El),f=[],h=g.u(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.pe(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 MZ(d,"fairplay",!0))}this.j={}};
V_.prototype.xa=function(){this.j={};U_.prototype.xa.call(this)};g.w(W_,U_);
W_.prototype.D=function(a){var b;a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.u(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}if(!b){b=(0,g.FD)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.u(this.C.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=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30))):c=0;this.oa("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});
0>=c?P7a(this,a):(this.j.push({time:b+c,info:a}),g.Fu(this.B,c))}};
W_.prototype.xa=function(){this.j=[];U_.prototype.xa.call(this)};var S3={},X7a=(S3.DRM_TRACK_TYPE_AUDIO="AUDIO",S3.DRM_TRACK_TYPE_SD="SD",S3.DRM_TRACK_TYPE_HD="HD",S3.DRM_TRACK_TYPE_UHD1="UHD1",S3);g.w(T7a,g.H);g.w(Z7a,g.cG);g.k=Z7a.prototype;g.k.Pp=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=HR(b.B)?d:c;d=new Uint8Array(HR(b.B)?c:d);HR(b.B)&&p8a(d);c=g.fg(d,4);p8a(d);d=g.fg(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),k8a(this,","),X_(this,{onkeystatuschange:1}),this.status="kc",this.oa("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.oa("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.oa("ctmp","provf",{et:a.toFixed(3)})));UK(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Ga&&this.N?!1:!a&&this.requestNumber===b.requestNumber};
g.k.xa=function(){this.j={};g.cG.prototype.xa.call(this)};
g.k.pc=function(){var a={ctype:this.W.contentType||"",length:this.W.initData.length,requestedKeyIds:this.Ea,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a};
g.k.qh=function(){var a=this.D.join();if(Y_(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.df=function(){return this.url};g.w(Z_,g.H);g.k=Z_.prototype;g.k.E3=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}};
g.k.Pp=function(){this.N&&this.N(this.j.keyStatuses)};
g.k.UY=function(a){this.G&&this.G(a.message,"license-request")};
g.k.TY=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.systemCode}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.SY=function(){this.K&&this.K()};
g.k.update=function(a){var b=this;if(this.j)return(PR.isActive()?PR.vk("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,iP(function(c){r8a(b,"t.update",c)}));
this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.Z.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,a,this.initData,this.sessionId);return lC()};
g.k.xa=function(){this.j&&(this.W?this.j.close().catch(g.LF):this.j.close());this.element=null;g.H.prototype.xa.call(this)};g.w($_,g.H);g.k=$_.prototype;g.k.tM=function(){var a=this;if(this.j.keySystemAccess)return(PR.isActive()?PR.vk("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.isDisposed())if(a.B=c,PR.isActive())PR.vk("emeset",function(){return a.element.setMediaKeys(c)});
else{var d;null==(d=a.element)||d.setMediaKeys(c)}});
if(GR(this.j))this.C=new (FR())(this.j.keySystem);else if(IR(this.j)){this.C=new (FR())(this.j.keySystem);var b;null==(b=this.element)||b.webkitSetMediaKeys(this.C)}else PR.isActive()&&this.va("emev",{v:"01b"}),TC(this.G,this.element,["keymessage","webkitkeymessage"],this.H3),TC(this.G,this.element,["keyerror","webkitkeyerror"],this.G3),TC(this.G,this.element,["keyadded","webkitkeyadded"],this.F3);return null};
g.k.setServerCertificate=function(){return this.B.setServerCertificate?"widevine"===this.j.flavor&&this.j.Jl?this.B.setServerCertificate(this.j.Jl):KR(this.j)&&this.j.Za?this.B.setServerCertificate(this.j.Za):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();JR(this.j)?c=s8a(c,this.j.Za):KR(this.j)&&(c=O7a(c)||new Uint8Array(0));b&&b("genreq");var e=PR.isActive()?PR.vk("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c);
var f=new Z_(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},iP(function(l){r8a(f,"t.generateRequest",l)}));
return f}if(GR(this.j))return u8a(this,c);if(IR(this.j))return t8a(this,c);if(null==(e=this.element)?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;null==(h=this.element)||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new Z_(this.element,this.j,c,null,null,this.N)};
g.k.H3=function(a){var b=v8a(this,a);b&&b.UY(a)};
g.k.G3=function(a){var b=v8a(this,a);b&&b.TY(a)};
g.k.F3=function(a){var b=v8a(this,a);b&&b.SY(a)};
g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a};
g.k.xa=function(){this.C=this.B=null;var a;null==(a=this.D)||a.dispose();a=g.u(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.H.prototype.xa.call(this);delete this.element};g.k=a0.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.Jf=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.Eb(this.keys,function(b){return g.Vb(a,b)})};g.w(y8a,g.cG);g.k=y8a.prototype;g.k.Y8=function(a){this.ij({onecpt:1});a.initData&&B8a(this,new Uint8Array(a.initData),a.initDataType)};
g.k.v9=function(a){this.ij({onndky:1});B8a(this,a.initData,a.contentType)};
g.k.Gw=function(a){this.ij({onneedkeyinfo:1});this.X.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));A8a(this,a)};
g.k.MU=function(a){this.C.push(a);b0(this)};
g.k.createSession=function(a){var b=D8a(this)?H3a(a):g.fg(a.initData);this.B.get(b);this.Ea=!0;a=new Z7a(this.videoData,this.X,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.rJ,this);a.subscribe("keystatuseschange",this.Pp,this);a.subscribe("licenseerror",this.vJ,this);a.subscribe("newlicense",this.PY,this);a.subscribe("newsession",this.QY,this);a.subscribe("sessionready",this.bZ,this);a.subscribe("fairplay_next_need_key_info",this.GY,this);this.X.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
this.kS,this);c8a(a,this.D)};
g.k.PY=function(a){this.isDisposed()||(this.ij({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.oa("heartbeatparams",a)))};
g.k.QY=function(){this.isDisposed()||(this.ij({newlcssn:1}),this.C.shift(),this.Ea=!1,b0(this))};
g.k.bZ=function(){if(GR(this.j)&&(this.ij({onsnrdy:1}),this.Na--,0===this.Na)){var a=this.ma,b,c;null==(b=a.element)||null==(c=b.msSetMediaKeys)||c.call(b,a.C)}};
g.k.Pp=function(a){if(!this.isDisposed()){!this.La&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(E8a(this),this.La=!0);this.ij({onksch:1});var b=this.kS;if(!Y_(a)&&g.VD&&"com.microsoft.playready"===a.B.keySystem&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(Y_(a))for(var e=g.u(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.j[f].status&&c.push(a.j[f].type),"unknown"!==a.j[f].status&&(d=!1);if(!Y_(a)||d)c=a.D;c=j8a(c)}b.call(this,c);
this.oa("keystatuseschange",a)}};
g.k.rJ=function(a,b){this.isDisposed()||this.oa("ctmp",a,b)};
g.k.GY=function(a,b){this.isDisposed()||this.oa("fairplay_next_need_key_info",a,b)};
g.k.vJ=function(a,b,c,d){this.isDisposed()||(this.videoData.L("html5_log_drm_metrics_on_error")&&E8a(this),this.oa("licenseerror",a,b,c,d))};
g.k.Gv=function(){return this.Z};
g.k.kS=function(a){var b=g.QP("auto",a,!1,"l");if(this.videoData.Cm){if(this.Z.equals(b))return}else if(JLa(this.Z,a))return;this.Z=b;this.oa("qualitychange");this.ij({updtlq:a})};
g.k.xa=function(){this.j.keySystemAccess&&this.element&&(this.Ba?this.element.setMediaKeys(null).catch(g.LF):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.u(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.rJ,this),b.unsubscribe("keystatuseschange",this.Pp,this),b.unsubscribe("licenseerror",this.vJ,this),b.unsubscribe("newlicense",this.PY,this),b.unsubscribe("newsession",this.QY,this),b.unsubscribe("sessionready",this.bZ,this),b.unsubscribe("fairplay_next_need_key_info",
this.GY,this),this.X.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.kS,this),b.dispose();this.B.clear();this.K.Jf();this.N.Jf();this.heartbeatParams=null;g.cG.prototype.xa.call(this)};
g.k.pc=function(){for(var a={systemInfo:this.j.pc(),sessions:[]},b=g.u(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.pc());return a};
g.k.qh=function(){return 0>=this.B.size?"no session":""+this.B.values().next().value.qh()+(this.G?"/KR":"")};
g.k.ij=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(SK(a),(this.X.Uc()||b)&&this.oa("ctmp","drmlog",a))};g.w(F8a,g.H);g.k=F8a.prototype;g.k.zH=function(){return!!this.jE};
g.k.KI=function(){return this.B};
g.k.handleError=function(a){var b=this;L8a(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!K8a(this,a.errorCode,a.details))&&!P8a(this,a)){if("yt"!==this.Fa.Ba&&N8a(this,a)&&this.videoData.Vo&&(0,g.FD)()/1E3>this.videoData.Vo&&"hm"===this.Fa.Ba){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.Vo;c.init=this.videoData.tS/1E3;c.now=(0,g.FD)()/1E3;c.systelapsed=((0,g.FD)()-this.videoData.tS)/1E3;
a=new TK(a.errorCode,c,2);this.qa.xg(a.errorCode,2,"SIGNATURE_EXPIRED",SK(a.details))}if(UK(a.severity)){var d;c=null==(d=this.qa.Aa)?void 0:d.j.j;if(this.Fa.L("html5_use_network_error_code_enums"))if(M8a(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.Fa.N&&"auth"===a.errorCode&&429===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}}else M8a(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Fa.N||"auth"!==a.errorCode||"429"!==a.details.rc||(e="TOO_MANY_REQUESTS",f="6");this.qa.xg(a.errorCode,
a.severity,e,SK(a.details),f)}else this.qa.oa("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.ke(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://web.archive.org/web/20240102114909/https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.FD)(),JU(a,"manifest",function(h){b.G=!0;b.va("pathprobe",h)},function(h){b.ke(h.errorCode,h.details)}))}};
g.k.va=function(a,b){this.qa.qc().va(a,b)};
g.k.ke=function(a,b){b=SK(b);this.qa.qc().ke(a,b)};S8a.prototype.L=function(a){return this.X.L(a)};g.w(d0,g.H);d0.prototype.Sd=function(a){i9a(this);this.playerState=a.state;0<=this.B&&g.VG(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
d0.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.L("html5_exception_to_health"))"sabr.fallback"===a&&(this.encounteredSabrFallback=!0),a.match(lkb)?this.networkErrorCount++:this.nonNetworkErrorCount++};
d0.prototype.send=function(){if(!(this.C||0>this.j)){i9a(this);var a=g.HN(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.oh;this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.TG(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.TG(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.TG(this.playerState,16)||g.TG(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.TG(this.playerState,1)&&g.TG(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.TG(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.TG(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.TG(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=Pab[JT(this.provider.videoData)];a:switch(this.provider.X.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=j9a(this.provider),
f=0>this.B?a:this.B-this.j;a=this.provider.X.Qf+36E5<(0,g.FD)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:f,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.IT(this.provider.videoData),isGapless:this.provider.videoData.W,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback};a||g.qD("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}};
d0.prototype.xa=function(){this.C||this.send();g.H.prototype.xa.call(this)};
var lkb=/\bnet\b/;var k9a=/[?&]cpn=/;var p9a=Math.pow(10,8);g.w(g.g0,g.H);g.k=g.g0.prototype;g.k.N6=function(){var a=g.HN(this.provider);t9a(this,a)};
g.k.zD=function(){return this.Na};
g.k.DD=function(){return{VA:this.VA,WA:this.WA}};
g.k.HF=function(a,b){this.VA=a;this.WA=b};
g.k.lF=function(a){this.j.lwc=[[a.We?a.We.toFixed():"",a.Th?a.Th.toFixed():"",a.Na?(1E3*a.Na).toFixed():"",a.Jb?(1E3*a.Jb).toFixed():"",a.Bb?(1E3*a.Bb).toFixed():""].join(":")]};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.HN(this.provider),-1<["PL","B","S"].indexOf(this.jf)&&(!g.id(this.j)||a>=this.D+30)&&(g.f0(this,a,"vps",[this.jf]),this.D=a),!g.id(this.j))){7E3===this.sequenceNumber&&g.LF(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){w9a(this,a);var b=a,c=this.provider.qa.LD(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.VA,h=e&&!this.WA;d>c.totalVideoFrames||5E3<f?C9a(this,"html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames):(0<f||h)&&g.f0(this,b,"df",[f]);this.VA=d;this.WA=e;0<this.Z&&(g.f0(this,a,"glf",[this.Z]),this.Z=0);s3.isActive()&&(a=s3.WV(),0<Object.keys(a).length&&this.va("profile",a));this.provider.X.L("html5_enable_lawnmower_status_logging_V2")&&this.Wt();this.provider.X.Uc()&&this.provider.L("html5_record_now")&&this.va("now",{wt:(0,g.FD)()});a={};this.provider.videoData.B&&(a.fmt=this.provider.videoData.B.itag,(b=this.provider.videoData.D)&&b.itag!==a.fmt&&(a.afmt=b.itag));
a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.W&&(a.addocid=this.W);this.contentCpn&&(a.ccpn=this.contentCpn);this.ra&&(a.cdocid=this.ra);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=VT(this.provider.videoData);a.content_v=XT(this.provider.videoData);a.ns=this.provider.X.Ba;a.fexp=SOa(this.provider.X.experiments).toString();a.cl=(591746904).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=JT(this.provider.videoData))&&
(a.live=b);this.provider.videoData.wj()&&(a.drm=1,this.provider.videoData.K&&(a.drm_system=Vjb[this.provider.videoData.K.flavor]||0),this.provider.videoData.Qm&&(a.drm_product=this.provider.videoData.Qm));XB()&&this.provider.videoData.G&&(a.ctt=this.provider.videoData.G,a.cttype=this.provider.videoData.Hm,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.HZ&&(a.dai_fallback="1")):this.provider.videoData.pd?a.dai="cs":this.provider.videoData.wC&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.vU){if(b=this.provider.videoData.vU,a&&b)for("3pp"===b.ns&&(a.ns="3pp"),c=g.u(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Bd.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;b={cpn:a.cpn,sequenceNumber:a.seq,
serializedWatchEndpointLoggingContext:this.provider.videoData.eaa};this.provider.videoData.playerResponseCpn&&(b.playerResponseCpn=this.provider.videoData.playerResponseCpn);e0.length&&(b.decoderInfo=e0);this.provider.qa.uj()&&(b.transitionStitchType=4,this.jd&&(b.timestampOffsetMsecs=this.jd));b=g.cP(b,s9a);a.qclc=g.fg(b,4);this.provider.X.L("html5_qoe_only_report_embargoed_state_when_embargoed")?this.Ea&&(a.embargoed="1"):a.embargoed=this.Ea?"1":"0";g.qd(a,this.provider.X.j);a=g.Ml("//"+this.provider.X.Rm+
"/api/stats/qoe",a);c=b="";d=g.u(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.j[e]?g.LF(new g.eD("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),100<e.length?c+=e:b+=e);y9a(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.Wt=function(){this.provider.X.L("html5_enable_lawnmower_status_logging_V2")?this.tb&&h0(this,"lwnmow"):h0(this,"lwnmow")};
g.k.Zw=function(a){this.tb=a};
g.k.j_=function(){if(this.provider.videoData.K){var a=this.provider.videoData.K;h0(this,"eme-"+(a.keySystemAccess?"final":GR(a)?"ms":JR(a)?"ytfp":IR(a)?"safarifp":"nonfinal"))}};
g.k.Sd=function(a){var b=a.state,c=g.HN(this.provider),d=this.getPlayerState(a.state);if(d!==this.jf){c<this.D||("PL"===this.jf?this.playTimeSecs+=c-this.D:"B"===this.jf&&this.Ba&&(this.Ba=!1,this.rebufferTimeSecs+=c-this.Jb,!this.kb&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.qa.AE(),this.j.qoealert=["1"],this.kb=!0)),"B"!==d||"PL"!==this.jf&&"PB"!==this.jf||(this.Ba=!0),this.D=c);"PL"===this.jf&&("B"===d||"S"===d)||this.provider.X.Uc()?w9a(this,c):(this.rb||"PL"!==d||(this.rb=
!0,v9a(this,c,this.provider.qa.HD())),t9a(this,c));"PL"===d&&g.Fu(this.hd);var e=[d];a=a.state.seekSource;"S"===d&&a&&e.push("ss."+a);g.f0(this,c,"vps",e);this.jf=d;this.D=this.Jb=c;this.K=!0}d=b.oh;g.TG(b,128)&&d&&(d.aK=d.aK||"",B9a(this,c,d.errorCode,d.EH,d.aK));(g.TG(b,2)||g.TG(b,128))&&this.reportStats(c);b.isPlaying()&&!this.N&&(0<=this.B&&(this.j.user_intent=[this.B.toString()]),this.N=!0);z9a(this)};
g.k.NE=function(a){var b=g.HN(this.provider),c=[a.j.id,a.B,this.Ic,a.reason];this.provider.X.L("html5_log_request_identifier_on_format_change")&&a.token&&c.push(a.token);g.f0(this,b,"vfs",c);this.Ic=a.j.id;c=this.provider.qa.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.AS();1<d&&c.push(d);g.f0(this,b,"view",c)}this.Za||(this.provider.X.Uc()&&h0(this,"rqs2"),this.provider.videoData.j&&WP(this.provider.videoData.j)&&(this.j.preload=["1"]));this.K=this.Za=
!0;"m"===a.reason&&100===++this.Pe&&D9a(this,2);g.f0(this,b,"vps",[this.jf]);this.reportStats(b)};
g.k.yE=function(a){var b=g.HN(this.provider);if(a.j.id!==this.Qa){var c=[a.j.id,this.Qa,a.reason];this.provider.X.L("html5_log_request_identifier_on_format_change")&&a.token&&c.push(a.token);g.f0(this,b,"afs",c);this.Qa=a.j.id}};
g.k.Pt=aa(48);g.k.jo=function(a){this.Ea=a};
g.k.onPlaybackRateChange=function(a){var b=g.HN(this.provider);a&&a!==this.ac&&(g.f0(this,b,"rate",[a]),this.ac=a);this.reportStats(b)};
g.k.Sn=aa(27);g.k.getPlayerState=function(a){if(g.TG(a,128))return"ER";if(g.TG(a,2048))return"B";if(g.TG(a,512))return"SU";if(g.TG(a,16)||g.TG(a,32))return"S";if(g.TL(a)&&g.TG(a,64))return"B";var b=mkb[VL(a)];g.PJ(this.provider.X)&&"B"===b&&3===this.provider.qa.getVisibilityState()&&(b="SU");"B"===b&&g.TG(a,4)&&(b="PB");return b};
g.k.xa=function(){g.H.prototype.xa.call(this);g.dC(this.G);g.dC(this.Bb)};
g.k.dK=function(a){this.isOffline=a;g.f0(this,g.HN(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.k.va=function(a,b,c){var d=this.j.ctmp||[],e=-1!==this.Od.indexOf(a);e||this.Od.push(a);if(!c||!e){var f="string"!==typeof b?SK(b):b;f=E9a(f);if(!c&&!/^t[.]/.test(f)){var h=1E3*g.HN(this.provider);f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f});
this.j.ctmp=d;z9a(this);return h}};
g.k.kF=function(a,b,c){this.C={Xaa:Number(this.va("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),pY:a,Haa:b,isAd:c}};
g.k.Ww=function(a,b,c){g.f0(this,g.HN(this.provider),"ad_playback",[a,b,c])};
g.k.resume=function(){var a=this;this.provider.X.Uc()&&this.va("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.G)?A9a(this):this.G=g.bC(function(){a.reportStats()},1E4)};
var T3={},mkb=(T3[5]="N",T3[-1]="N",T3[3]="B",T3[0]="EN",T3[2]="PA",T3[1]="PL",T3),e0=[];G9a.prototype.update=function(){if(this.N){var a=this.provider.qa.Vi()||0,b=g.HN(this.provider);a>=this.provider.qa.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||J9a(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.Lp+2||J9a(this,a,b))){c=this.provider.qa.getVolume();var d=c!==this.W,e=this.provider.qa.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||0<=this.D||(this.W=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(k0(this),this.C=a);this.Lp=b;this.j=a}}};L9a.prototype.send=function(a){var b=this;if(!this.Xa){var c=N9a(this),d=g.Ml(this.uri,c);this.X.L("vss_through_gel_double")&&O9a(d);this.ma&&!this.X.L("html5_simplify_pings")?T9a(this,d):M9a(this,a).then(function(e){b.ma&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});o9a(d,e,{token:b.Z,UR:b.rb,mdxEnvironment:b.mdxEnvironment},b.X,a,b.ra,b.isFinal&&b.Nf||b.Ba||b.C&&b.Of)});
this.Xa=!0}};
L9a.prototype.B=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var U3={},R9a=(U3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,U3.LIVING_ROOM_APP_MODE_MAIN=1,U3.LIVING_ROOM_APP_MODE_KIDS=2,U3.LIVING_ROOM_APP_MODE_MUSIC=3,U3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,U3.LIVING_ROOM_APP_MODE_GAMING=5,U3),V3={},Q9a=(V3.EMBEDDED_PLAYER_MODE_UNKNOWN=0,V3.EMBEDDED_PLAYER_MODE_DEFAULT=1,V3.EMBEDDED_PLAYER_MODE_PFP=2,V3.EMBEDDED_PLAYER_MODE_PFL=3,V3),W3={},K9a=(W3[0]=0,W3[1]=1,W3[2]=2,W3);g.w(m0,g.H);g.k=m0.prototype;g.k.If=function(){this.j.update();Z9a(this)&&U9a(this)};
g.k.Sd=function(a){if(!this.isDisposed())if(g.TG(a.state,2)||g.TG(a.state,512)){if(this.K="paused",g.VG(a,2)||g.VG(a,512))g.VG(a,2)&&(this.j.previouslyEnded=!0),this.C&&(q0(this),r0(this).send(),this.G=NaN)}else if(g.TG(a.state,8)){this.K="playing";var b=this.C&&isNaN(this.D)?o0(this):NaN;!isNaN(b)&&(0>UG(a,64)||0>UG(a,512))&&(a=$9a(this,!1),a.G=b,a.send())}else this.K="paused"};
g.k.xa=function(){g.H.prototype.xa.call(this);q0(this);H9a(this.j)};
g.k.pc=function(){return N9a(n0(this,"playback"))};
g.k.FB=function(){this.provider.videoData.N.eventLabel=VT(this.provider.videoData);this.provider.videoData.N.playerStyle=this.provider.X.playerStyle;this.provider.videoData.rj&&(this.provider.videoData.N.feature="pyv");this.provider.videoData.N.vid=this.provider.videoData.videoId;var a=this.provider.videoData.N;var b=this.provider.videoData;b=b.isAd()||!!b.rj;a.isAd=b};
g.k.Xi=function(a){var b=n0(this,"engage");b.W=a;return P9a(b,d$a(this.provider))};c$a.prototype.isEmpty=function(){return this.endTime===this.startTime};s0.prototype.L=function(a){return this.X.L(a)};
s0.prototype.getCurrentTime=function(){if(g.dU(this.videoData)){var a=this.qa.uj();if(a){var b=this.qa.getCurrentTime(),c;a=((null==(c=PY(a,1E3*b))?void 0:c.qm)||0)/1E3;return b-a}}return this.qa.getCurrentTime()};
s0.prototype.Vi=function(){if(g.dU(this.videoData)){var a=this.qa.uj();if(a){var b=this.qa.Vi(),c;a=(null==(c=PY(a,1E3*b))?NaN:c.qm)/1E3||0;return b-a}}return this.qa.Vi()};
var e$a={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.w(g.t0,g.H);g.k=g.t0.prototype;g.k.Sd=function(a){if(g.VG(a,1024)||g.VG(a,512)||g.VG(a,4)){if(this.B){var b=this.B;0<=b.B||(b.j=-1,b.delay.stop())}this.qoe&&(b=this.qoe,b.N||(b.B=-1))}if(this.provider.videoData.enableServerStitchedDai&&this.Ug){var c;null==(c=this.C.get(this.Ug))||c.Sd(a)}else this.j&&this.j.Sd(a);this.qoe&&this.qoe.Sd(a);this.B&&this.B.Sd(a)};
g.k.If=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ug){var a;null==(a=this.C.get(this.Ug))||a.If()}else this.j&&this.j.If()};
g.k.jo=function(a){this.qoe&&this.qoe.jo(a)};
g.k.ke=function(a,b){this.qoe&&C9a(this.qoe,a,b);if(this.B)this.B.onError(a)};
g.k.NE=function(a){this.qoe&&this.qoe.NE(a)};
g.k.yE=function(a){this.qoe&&this.qoe.yE(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&k0(this.j.j)};
g.k.Pt=aa(47);g.k.va=function(a,b,c){this.qoe&&this.qoe.va(a,b,c)};
g.k.kF=function(a,b,c){this.qoe&&this.qoe.kF(a,b,c)};
g.k.lF=function(a){var b;null==(b=this.qoe)||b.lF(a)};
g.k.Wt=function(){this.qoe&&this.qoe.Wt()};
g.k.Zw=function(a){this.qoe&&this.qoe.Zw(a)};
g.k.Ww=function(a,b,c){this.qoe&&this.qoe.Ww(a,b,c)};
g.k.Sn=aa(26);g.k.zD=function(){if(this.qoe)return this.qoe.zD()};
g.k.pc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ug){var a;null==(a=this.C.get(this.Ug))||a.pc()}else if(this.j)return this.j.pc();return{}};
g.k.DD=function(){var a;return null==(a=this.qoe)?void 0:a.DD()};
g.k.HF=function(a,b){var c;null==(c=this.qoe)||c.HF(a,b)};
g.k.Xi=function(a){return this.j?this.j.Xi(a):function(){}};
g.k.FB=function(){this.j&&this.j.FB()};
g.k.getVideoData=function(){return this.provider.videoData};
g.k.resume=function(){this.qoe&&this.qoe.resume()};g.w(u0,g.H);u0.prototype.bN=function(a,b,c){if(!this.j.has(a)){var d=new s0(b,this.X,this.qa),e=Math.round(1E3*g.HN(this.B.provider));e=new g.t0(d,e);d=this.B.getVideoData();this.j.set(a,e);if(e.qoe){e=e.qoe;var f=d.videoId||"";e.contentCpn=d.clientPlaybackNonce;e.ra=f}2===c&&this.B.Ww(a,b.Bd||"",b.breakType||0)}};
u0.prototype.qc=function(a){a=a||this.Ug;return this.j.get(a)||this.B};g.w(v0,g.H);g.k=v0.prototype;g.k.Af=function(a,b){this.Lo();b&&2E3<=this.j.array.length&&this.iD("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.u(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.Wb(b.array,c,b.j)}this.B=NaN;this.Lo()};
g.k.Wp=function(a){1E4<a.length&&g.LF(new g.eD("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.isDisposed()){var b=new Set(a);this.C=this.C.filter(function(c){return!b.has(c)});
r$a(this.j,b);this.Lo()}};
g.k.iD=function(a,b){var c=(isNaN(this.B)?g.TG(this.G(),2)?0x8000000000000:1E3*this.Z():this.B)-b;b=this.Zl().filter(function(d){return d.namespace===a&&d.end<c});
this.Wp(b);return b};
g.k.Zl=function(){return this.isDisposed()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.D.stop();this.j.array=[];this.C=[];this.Lo()};
g.k.wf=function(a){var b=this.Zl().filter(function(c){return c.namespace===a});
this.Wp(b);return b};
g.k.Sd=function(a){this.started&&(this.Lo(),g.TG(a.vA,16)&&(a=q$a(this.j,Math.max(this.B-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.D.start()))};
g.k.tN=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.C.indexOf(d)&&(this.C.push(d),b.push([1,d]))}return b};
g.k.vN=function(a){var b=[];if(!a.length)return b;a.sort(g.Pza);a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.C.splice(this.C.indexOf(c),1),b.push([2,c]);return b};
g.k.Lo=function(){this.K=!0;if(!this.N){for(var a=3;this.K&&a;)this.K=!1,this.N=!0,this.qX(),this.N=!1,a--;this.G().isPlaying()&&(a=q$a(this.j,this.B),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.B)/this.ra(),this.D.start(a)))}};
g.k.qX=function(){if(this.started&&!this.isDisposed()){this.D.stop();var a=this.G();g.TG(a,32)&&this.ma.start();for(var b=g.TG(this.G(),2)?0x8000000000000:1E3*this.Z(),c=g.TG(a,2),d=[],e=[],f=g.u(this.C),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.vN(e));f=e=null;c?(a=o$a(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=p$a(this.j)):a=this.B<=b&&UBa(a)?n$a(this.j,this.B,b):o$a(this.j,b);
d=d.concat(this.tN(a));e&&(d=d.concat(this.vN(e)));f&&(d=d.concat(this.tN(f)));this.B=b;t$a(this,d)}};
g.k.xa=function(){this.C=[];this.j.array=[];g.H.prototype.xa.call(this)};
g.sY.AI(v0,{Af:"crmacr",tN:"crmncr",vN:"crmxcr",qX:"crmis",Wp:"crmrcr"});g.w(y0,g.cG);y0.prototype.Xq=function(){return this.N};
y0.prototype.Hq=function(){return Math.max(this.Z()-z0(this)*this.j,this.videoData.Jd())};g.w(D0,g.H);D0.prototype.Sd=function(){g.Fu(this.G)};
D0.prototype.tf=function(){var a=this,b=this.qa.kf(),c=this.qa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.TG(c,8)&&g.TG(c,16),h=this.qa.An().isBackground()||c.isSuspended();E0(this,this.Za,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);l=f&&l&&OBa(b,this.j);var m=!d||10<Math.abs(d-this.j);E0(this,this.bb,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
m=l&&uL(b.Kh(),this.j);var n=this.qa.Aa;l=!n||!n.policy.Na;var p=function(){b.seekTo(a.j+.001)};
E0(this,this.La,m&&l&&!h,e,"qoe.slowseek",p,"jiggle_cmt");l=function(){return c0(a.qa)};
E0(this,this.Qa,m&&!h,e,"qoe.slowseek",l,"new_elem");m=UBa(c);var q=g.UL(c),r=b.Kh(),t=tL(r,d),v=0<=t&&r.end(t)>d+5,x=m&&q&&v,B=this.qa.getVideoData();E0(this,this.Na,.002>d&&.002>this.j&&f&&g.PJ(this.X)&&g.WT(B)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");E0(this,this.ma,x&&!h,m&&!q,"qoe.longrebuffer",p,"jiggle_cmt");E0(this,this.ra,x&&!h,m&&!q,"qoe.longrebuffer",l,"new_elem_nnr");if(n){var F=n.getCurrentTime();f=b.Lv();f=yBa(f,F);f=!n.Uf()&&d===f;E0(this,this.Jb,m&&q&&f&&!h,m&&!q&&!f,"qoe.longrebuffer",
function(){b.seekTo(F)},"seek_to_loader")}f={};
p=tL(r,Math.max(d-3.5,0));x=0<=p&&d>r.end(p)-1.1;var G=0<=p&&p+1<r.length?r.start(p+1)-r.end(p):9999;f.mindex=t;f.disIndex=p;f.isdisc=0<=p&&x&&11>G;f.close2edge=x;f.gapsize=G;f.buflen=r.length;this.D&&(f.seekSour=this.D);E0(this,this.Ba,m&&q&&!h,m&&!q,"qoe.longrebuffer",function(){},"timeout",f);
t=c.isSuspended();t=O_(this.qa)&&!t;E0(this,this.N,t,!t,"qoe.start15s",function(){a.qa.Ig("ad")},"ads_preroll_timeout");
f=.5>d-this.C;p=B.isAd()&&m&&!q&&f;t=function(){var I=a.qa,L=I.Qd.ud();(!L||!I.videoData.isAd()||L.getVideoData().pd!==I.getVideoData().pd)&&I.videoData.Ff||I.xg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+I.videoData.videoId)};
E0(this,this.kb,p,!p,"ad.rebuftimeout",t,"skip_slow_ad");f=B.isAd()&&q&&uL(b.Kh(),d+5)&&f;E0(this,this.rb,f,!f,"ad.rebuftimeout",t,"skip_slow_ad_buf");E0(this,this.tb,g.TL(c)&&g.TG(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
E0(this,this.Ea,!!n&&!n.Ta&&g.TL(c),e,"qoe.start15s",l,"newElemMse");e=xL(r,0);n=g.TG(c,16)||g.TG(c,32);e=!h&&g.TL(c)&&q&&!n&&(g.TG(c,64)||0===d)&&5<e;E0(this,this.Xa,g.WT(B)&&e,m&&!q,"qoe.longrebuffer",function(){a.qa.po()},"reset_media_source");
E0(this,this.Va,g.WT(B)&&e,m&&!q,"qoe.longrebuffer",l,"reset_media_element");0===this.C&&(this.K=d);e=q&&0===this.j&&1<d&&d===this.K;E0(this,this.Ga,g.WT(B)&&e,m&&!q,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump");
c=g.TL(c)&&!h;E0(this,this.W,CT(B)&&c&&q&&v&&this.qa.Yq(),m&&!q,"qoe.longrebuffer",l,"handoff_long_buffer_reload");h=6>uY(this.qa)-d&&!v&&this.qa.Yq();E0(this,this.Z,CT(B)&&c&&q&&h,m&&!q,"qoe.longrebuffer",function(){c0(a.qa,!1,!0)},"handoff_end_long_buffer_reload");
this.C=d;this.G.start()}};
D0.prototype.ke=function(a,b,c){b=this.pc(b);b.wn=c;b.wdup=this.B[a]?"1":"0";this.qa.ke(new TK(a,b));this.B[a]=!0};
D0.prototype.pc=function(a){a=Object.assign(this.qa.pc(!0),a.pc());this.j&&(a.stt=this.j.toFixed(3));this.qa.getVideoData().isLivePlayback&&(a.ct=this.qa.getCurrentTime().toFixed(3),a.to=this.qa.Pc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
B0.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1};
B0.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.FD)();if(!this.startTimestamp)this.startTimestamp=a,this.C=0;else if(this.C>=this.G)return this.B=a,!0;this.C+=1;return!1};
B0.prototype.pc=function(){var a={},b=(0,g.FD)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.w(H$a,g.H);g.k=H$a.prototype;g.k.setMediaElement=function(a){g.UC(this.kb);(this.mediaElement=a)?(V$a(this),F0(this)):G0(this)};
g.k.Sd=function(a){this.ma.Sd(a);this.L("html5_exponential_memory_for_sticky")&&(a.state.isPlaying()?g.Fu(this.Ea):this.Ea.stop());if(this.mediaElement)if(8===a.vA.state&&UBa(a.state)&&g.UL(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Kh();var c=this.L("manifestless_post_live_ufph")||this.L("manifestless_post_live")?tL(b,Math.max(a-3.5,0)):tL(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.Bb-c)||(this.qa.va("seekover",
{b:sL(b,"_"),cmt:a}),this.Bb=c,this.seekTo(c,{Tv:!0,wd:"seektimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.Za&&((this.X.L("embeds_enable_muted_autoplay")||g.FC(g.uS(this.X)))&&0<this.videoData.limitedPlaybackDurationInSeconds?(M0(this.qa,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds),this.Za=!0):this.videoData.isLivePlayback&&0<this.videoData.endSeconds&&(M0(this.qa,this.getCurrentTime()+this.videoData.endSeconds),this.Za=!0))};
g.k.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&T$a(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0};
g.k.Vi=function(){return this.getCurrentTime()-this.Pc()};
g.k.Hq=function(){return this.B?this.B.Hq():Infinity};
g.k.isAtLiveHead=function(a){if(!this.B)return!1;void 0===a&&(a=this.getCurrentTime());return A0(this.B,a)};
g.k.Xq=function(){return!!this.B&&this.B.Xq()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.bG?!1:c.bG;var d=void 0===c.cS?0:c.cS,e=void 0===c.Tv?!1:c.Tv,f=void 0===c.VR?0:c.VR,h=void 0===c.wd?"":c.wd,l=void 0===c.seekSource?void 0:c.seekSource,m=void 0===c.MI?!1:c.MI,n=void 0===c.HR?!1:c.HR;if(void 0===c.yq?0:c.yq)a+=this.Pc();if(c=a<this.La&&!!this.Aa){this.qa.va("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstadj:this.La.toFixed(3)});this.La=NaN;this.timestampOffset-=1E3;var p;if(null!=(p=this.Aa)){N7a(p,
p.timestampOffset-1E3);var q=p.manifest,r=new Set;for(x in q.j){var t=q.j[x].index,v=t.Fv();v&&!r.has(v)&&(v.startTime+=1E3,v.endTime=v.startTime+v.duration,r.add(v));t.segments.length&&(v=t.segments[t.segments.length-1],t.segments=[],t.segments.push(v))}p.W&&p.W.eR();uZ(p.G,0,0,!0)}}var x=a;(p=!isFinite(x)||(this.B?A0(this.B,x):x>=this.Ke())||!g.NT(this.videoData))||this.qa.va("seeknotallowed",{st:x,mst:this.Ke()});if(!p)return this.C&&(this.C=null,Q$a(this)),Vf(this.getCurrentTime());if(.005>Math.abs(a-
this.j)&&this.W)return this.G;h&&(x=a,(this.X.Uc()||this.L("html5_log_seek_reasons"))&&this.qa.va("seekreason",{reason:h,tgt:x}));l&&(this.ma.D=l);this.W&&G0(this);this.G||(this.G=new KL);a&&!isFinite(a)&&K$a(this,!1);(h=n||c)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&0<this.mediaElement.Ck()&&0<JBa(this.mediaElement))||xT(this.videoData)&&this.Jd()===this.Ke(!1)?0:isFinite(h)||!xT(this.videoData)));h||(a=S$a(this,a,e));a&&!isFinite(a)&&K$a(this,
!1);this.D=a;this.Va=f;this.j=a;this.N=0;this.B&&(e=this.B,f=a,C$a(e,f,!1),D$a(e,f));e=this.qa;f=a;h={bG:b,seekSource:l};e.Zc.D=f;n=e.NC;n.mediaTime=f;n.j=!0;h.bG&&Kab(e,h);h=f>e.videoData.endSeconds;e.X.L("embeds_enable_muted_autoplay")&&(h=h&&f>e.videoData.limitedPlaybackDurationInSeconds);e.Cq&&h&&isFinite(f)&&xab(e);f<e.Ke()-.01&&(h=RL(e.playerState,2),g.TG(h,8)&&(h=RL(h,4)),e.Cc(h));e.oa("SEEK_TO",e,f);this.G&&(b?d&&this.Xa.start(d):(b={MI:m,seekSource:l},this.W=!0,G$a(this,b)));(b=this.qa.Cq)&&
a>b.start&&xab(this.qa);return this.G};
g.k.Ke=function(a){if(!this.videoData.isLivePlayback)return abb(this.qa);var b;return fU(this.videoData)&&(null==(b=this.mediaElement)?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),hSa(1E3*this.bf(a))+a):xT(this.videoData)&&this.videoData.rb&&this.videoData.j?this.videoData.j.Ke()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.B?this.B.Hq():abb(this.qa)+this.timestampOffset:this.mediaElement?tC()?hSa(this.mediaElement.CG().getTime()):JBa(this.mediaElement)+this.timestampOffset||
this.timestampOffset:this.timestampOffset};
g.k.Jd=function(){if(g.dU(this.videoData)){var a=this.qa;g.dU(a.videoData);var b,c;return null!=(c=null==(b=a.uc)?void 0:b.Jd())?c:a.videoData.Jd()}b=this.videoData?this.videoData.Jd()+this.timestampOffset:this.timestampOffset;return fU(this.videoData)&&this.videoData.j&&(c=Number(null==(a=this.videoData.progressBarStartPosition)?void 0:a.utcTimeMillis)/1E3,a=this.getCurrentTime(),a=this.bf(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b};
g.k.zN=function(){this.G||this.seekTo(this.D,{wd:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.k.HI=function(){return this.W&&!isFinite(this.j)};
g.k.xa=function(){L$a(this,null);this.ma.dispose();g.H.prototype.xa.call(this)};
g.k.pc=function(){var a={};this.Aa&&Object.assign(a,this.Aa.pc());this.mediaElement&&Object.assign(a,this.mediaElement.pc());return a};
g.k.qQ=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return xT(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Pc=function(){return this.timestampOffset};
g.k.bf=function(a){return this.videoData.j.bf(a-this.timestampOffset)};
g.k.Iv=function(){if(!this.mediaElement)return 0;if(OT(this.videoData)){var a=this.mediaElement,b=a.Kh();a=(0<wL(b)&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Jd();b=this.Ke()-this.Jd();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Iv()};
g.k.Fw=function(a){this.K&&(this.K.j=a)};
g.k.L=function(a){return this.X&&this.X.L(a)};H0.prototype.Bt=function(){return this.started};
H0.prototype.start=function(){this.started=!0};
H0.prototype.reset=function(){this.finished=this.started=!1};var bab=!1;g.w(g.L0,g.cG);g.k=g.L0.prototype;g.k.xa=function(){this.logger.debug("dispose");g.dC(this.RJ);Y0a(this.qg);this.visibility.unsubscribe("visibilitystatechange",this.qg);pab(this);Q0(this);g.wu.Oj(this.Sw);this.Fj();this.Zf=null;g.ub(this.videoData);g.ub(this.Mk);g.vb(this.m8);this.Cq=null;g.cG.prototype.xa.call(this)};
g.k.Ww=function(a,b,c,d){this.qc().Ww(a,b,c);this.L("html5_log_media_perf_info")&&this.va("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.KN=function(){var a;return null==(a=this.Aa)?void 0:a.KN()};
g.k.NN=function(){var a;return null==(a=this.Aa)?void 0:a.NN()};
g.k.ON=function(){var a;return null==(a=this.Aa)?void 0:a.ON()};
g.k.LN=function(){var a;return null==(a=this.Aa)?void 0:a.LN()};
g.k.wj=function(){return this.videoData.wj()};
g.k.WH=function(){return this.eA};
g.k.bN=function(){!this.dA||this.dA.isDisposed();this.dA=new g.t0(new s0(this.videoData,this.X,this));this.eA=new u0(this.X,this,this.dA)};
g.k.getVideoData=function(){return this.videoData};
g.k.U=function(){return this.X};
g.k.qc=function(a){if(g.dU(this.videoData)&&a)a:{for(var b=this.eA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.getVideoData().videoId===a){a=d;break a}a=b.B}else a=this.eA.qc();return a};
g.k.An=function(){return this.visibility};
g.k.kf=function(){return this.mediaElement};
g.k.LM=function(){if(this.videoData.isLoaded()){var a=this.Mk;0<g.EJ(a.Fa.experiments,"html5_player_min_build_cl")&&591746904<g.EJ(a.Fa.experiments,"html5_player_min_build_cl")&&O8a(a,"oldplayer");tab(this)}else this.videoData.Ri||this.videoData.Oo?this.At&&g.PJ(this.X)&&this.videoData.isLivePlayback||(this.videoData.Ri?HRa(this.videoData):(a=this.qc(),a.qoe&&(a=a.qoe,h0(a,"protected"),a.provider.videoData.K?a.j_():a.provider.videoData.subscribe("dataloaded",a.j_,a)),FRa(this.videoData))):!this.videoData.loading&&
this.K4&&rab(this)};
g.k.xK=function(a){this.uc=a;this.Aa&&this.Aa.xK(a)};
g.k.vz=aa(17);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.TG(this.getPlayerState(),128)||(this.oa("internalAbandon"),this.nR(!0),pab(this),g.wu.Oj(this.Sw))};
g.k.Fo=function(){g$a(this.qc())};
g.k.xg=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e});
var h,l;g.gd(cjb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+fya());!this.L("html5_log_playability_reason")||"auth"!==a&&"drm.auth"!==a&&"heartbeat.stop"!==a||(c&&(d+=";r."+c.replaceAll(" ","_")),f&&(d+="sr."+f.replaceAll(" ","_")));b={errorCode:a,errorDetail:e,errorMessage:l||g.nW[h]||"",uN:h,dn:f||"",aK:d,EH:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;P0(this,"dataloaderror");this.Cc(PL(this.playerState,128,b));g.wu.Oj(this.Sw);Q0(this);this.oo()};
g.k.Ig=function(a){this.Sp=this.Sp.filter(function(b){return a!==b});
this.logger.debug(function(){return"set preroll ready for "+a});
this.Ar.Bt()&&sab(this)};
g.k.Dp=function(){var a;(a=!!this.Sp.length)||(a=this.Ui.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.Xq=function(){return this.Zc.Xq()};
g.k.isPlaying=function(){return this.playerState.isPlaying()};
g.k.cE=function(){return this.playerState.cE()&&this.videoData.Jm};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.Zf){var a=this.Zf;a=a.videoData.Ay.compose(a.videoData.xU);a=TP(a)}else a="auto";return a};
g.k.BD=aa(21);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.k.setMediaElement=function(a){this.logger.debug("set media element");if(this.mediaElement&&a.Fb()===this.mediaElement.Fb()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.UC(this.JB),this.mediaElement=a,this.mediaElement.qa=this,Lab(this),this.Zc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Fj();if(!this.playerState.isError()){var b=RL(this.playerState,512);g.TG(b,8)&&!g.TG(b,2)&&(b=QL(b,1));a.isView()&&(b=RL(b,64));this.Cc(b)}this.mediaElement=
a;this.mediaElement.qa=this;GS(this.X)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Lab(this);this.Zc.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.Mk.zH()&&KBa(this.mediaElement)}};
g.k.Fj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.Zc.D=c);this.Zc.setMediaElement(null);!a&&HL(this)?Fab(this):V0(this);this.Aa&&(R_(this.Aa),U0(this,b));this.pw.stop();if(this.mediaElement&&(!this.Ar.Bt()||this.playerState.isError()||g.TG(this.playerState,2)||this.Cc(QL(this.playerState,512)),this.mediaElement)){g.UC(this.JB);if(a||!this.mediaElement.isView())this.L("html5_rebase_video_to_ad_timeline")&&
this.Sb.yu("mesv_s"),this.mediaElement.stopVideo(),W0(this);this.mediaElement=this.mediaElement.qa=null}}};
g.k.playVideo=function(a){a=void 0===a?!1:a;var b=this,c,d,e,f,h,l;return g.Ha(function(m){if(1==m.j){b.logger.debug("start play video");var n=window.google_image_requests;n&&10<n.length&&(window.google_image_requests=n.slice(-10));if(g.TG(b.playerState,128))return m.return();if(b.Mk.KI())return b.oa("signatureexpired"),m.return();b.mediaElement&&SY(b.qc());wab(b);(g.TG(b.playerState,64)||a)&&b.Cc(QL(b.playerState,8));return b.Ar.finished&&b.mediaElement?b.Zf||!b.SE?m.Ka(2):g.z(m,b.SE,3):m.return()}if(2!=
m.j&&g.TG(b.playerState,128))return m.return();if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.XOa(b.X.G,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.wj()?"fmt.unplayable":"fmt.noneavailable",d=1),g.LF(Error("selectableFormats")),b.xg(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.Oh()&&b.videoData.C.j)return b.logger.debug("rebuild playbackData for airplay"),m.return(O0(b));if(vT(b.videoData)&&(e=b.getCurrentTime()<b.Jd()-15,f=g.NT(b.videoData)&&b.playerState.isPaused(),
h=g.TG(b.playerState,1024),n=b.Zc,n.videoData.Ac()&&cU(n.videoData)||h||!e&&!f||(f?(b.logger.debug("seek to head for live because of live-only"),b.seekTo(Infinity,{wd:"videoplayer_unpauseLiveOnly"})):(b.logger.debug("seek to min seekable for live because of out of window"),b.seekTo(b.Jd(),{wd:"videoplayer_outOfWindow"}))),!b.isAtLiveHead(void 0,!0)&&b.Xq()&&(b.logger.debug("seek to head for live because pegged to live"),l={wd:"videoplayer_peggedToLive",seekSource:34},b.seekTo(Infinity,l)),g.TG(b.playerState,
256)&&b.videoData.Va&&b.Zc.HI()))return b.Cc(SL(b.playerState,8,4)),m.return();g.TG(b.playerState,4)&&g.TG(b.playerState,16)&&b.Cc(SL(b.playerState,9,4));if(K0(b))return Sab(b),m.return();Rab(b);g.xa(m)})};
g.k.po=function(a){this.logger.debug("reset media source");a&&this.ke(new TK("qoe.restart",a));this.Cc(QL(this.playerState,2048));V0(this);a=this.videoData.j&&ZP(this.videoData.j);var b=this.mediaElement&&this.mediaElement.isView();a||b?(this.Aa&&o7a(this.Aa),c0(this)):(K0(this),g.TL(this.playerState)&&this.playVideo())};
g.k.Ps=function(){if(!this.Zf)return[];var a=U8a(this.bl,this.Zf,this.Gv());return this.Zf.j.Ps(a)};
g.k.sD=function(){if(!this.Zf)return[];var a=U8a(this.bl,this.Zf,this.Gv());return this.Zf.j.sD(a)};
g.k.Gv=function(){var a=this.Ae?this.Ae.Gv():CRa(this.videoData)&&this.videoData.j&&ZP(this.videoData.j)?this.videoData.Cm?mT:w8a:mT;this.hR&&(a=a.compose(Qjb));return a};
g.k.QH=function(){var a=this.Ce(),b=this.Qd.Dd().videoId;return this.Qd.Kt.QH(a)||this.Qd.Kt.QH(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?TP(this.videoData.Ay):SP[LP()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a,b){this.videoData.Qf!==a&&(this.va("toggle51",{pref:a}),this.videoData.Qf=a,g.XC("yt-player-audio51",a,b?31536E3:2592E3),G8a(this))};
g.k.getUserAudio51Preference=function(){var a=1;CS(this.X)&&this.L("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.YC("yt-player-audio51"))?b:a};
g.k.setProximaLatencyPreference=function(a){var b=this.getProximaLatencyPreference();this.va("proxima",{pref:a});g.XC("yt-player-proxima-pref",a,172800);b!==a&&(this.Zc.tb=!0,this.seekTo(Infinity,{wd:"videoplayer_proximaSeekToHead",seekSource:34}))};
g.k.getProximaLatencyPreference=function(){var a;return null!=(a=ALa())?a:0};
g.k.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(Cab(this)){var a=Eab(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.wE=function(){if(wT(this.videoData)&&this.videoData.L("html5_trigger_loader_when_idle_network")){var a;null!=(a=this.Aa)&&a.tf()}};
g.k.fz=function(){if(this.Aa){var a=this.Aa,b=a.fz;var c=this.videoData;c=c.L("html5_ssdai_use_post_for_media")&&c.enableServerStitchedDai?!1:xT(c)&&c.Ff&&!c.isAd();b.call(a,c)}};
g.k.Iq=function(){return this.Ta};
g.k.Gw=function(a){this.logger.debug("onNeedKeyInfo");this.PA.set(a.initData,a);this.Ae&&(this.Ae.Gw(a),this.L("html5_eme_loader_sync")||this.PA.remove(a.initData))};
g.k.rQ=function(a){this.videoData.Jy=g.QP("auto",a,!1,"u");J0(this)};
g.k.Fw=function(a){var b=a.reason,c=a.j.info,d=a.token,e=this.qc(a.videoId),f=g.dU(this.videoData)?e.getVideoData():this.videoData;if(c!==f.D){var h=!f.D;f.D=c;"m"!==b&&"t"!==b&&(b=h?"i":"a");var l="m"===b||"t"===b;e.yE(new R8a(f,c,b,"",d));h||this.oa("internalaudioformatchange",f,l)}this.Zc.Fw(a.j.index)};
g.k.wJ=function(a){this.oa("localmediachange",a)};
g.k.Co=function(){var a;null==(a=this.Aa)||a.Co(this.X,DRa(this.videoData))};
g.k.KI=function(){return this.Mk.KI()};
g.k.handleError=function(a){this.Mk.handleError(a)};
g.k.zH=function(){return this.Mk.zH()};
g.k.aJ=function(a){this.HB?(this.va("utcSeekingFallback",{source:"streamTime",timeSeconds:this.HB}),this.seekTo(this.HB,{wd:"utcSeekingFallback_streamTime"}),this.HB=0):isNaN(this.bf())||(a=this.bf()-a,a=this.getCurrentTime()-a,this.va("utcSeekingFallback",{source:"estimate",timeSeconds:a}),this.seekTo(a,{wd:"utcSeekingFallback_estimate"}))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.TG(this.playerState,64)||g.TG(this.playerState,2))&&!a)if(g.TG(this.playerState,8))this.Cc(SL(this.playerState,4,8));else if(this.cE())K0(this);else return;g.TG(this.playerState,128)||(a?this.Cc(QL(this.playerState,256)):this.Cc(SL(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.NT(this.videoData)&&this.Aa&&U0(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Aa&&(U0(this,!1),this.Aa.Lk())};
g.k.oo=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(HL(this)&&b){var c;null==(c=this.mediaElement)||c.oo()}else{var d;null==(d=this.mediaElement)||d.stopVideo()}W0(this);Q0(this);g.TG(this.playerState,128)||(a?this.Cc(RL(RL(QL(this.playerState,4),8),16)):this.Cc(PL(this.playerState)));this.videoData.videoId&&this.X.Na.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.logger.debug(function(){return"SeekTo "+a+", "+JSON.stringify(b)});
g.TG(this.playerState,2)&&K0(this);b.Ljb&&this.Cc(QL(this.playerState,2048));this.Zc.seekTo(a,b);this.Ui.Lo()};
g.k.getCurrentTime=function(){return this.Zc.getCurrentTime()};
g.k.Vi=function(){return this.Zc.Vi()};
g.k.Hq=function(){return this.Zc.Hq()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Pc())};
g.k.sz=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.sz());return 0<=a?a:this.getCurrentTime()};
g.k.bf=function(){var a;return(null==(a=this.videoData.j)?0:a.bf)?this.videoData.j.bf(this.getCurrentTime()-this.Pc()):this.mediaElement&&(a=this.mediaElement.CG())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(){return g.dU(this.videoData)&&this.uc?QY(this.uc):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Pc():this.Ke()?this.Ke():0};
g.k.HD=function(){var a=new k$a;if(this.Aa){var b=this.X.schedule;a.Nr=b.K;a.Bu=b.Ba;a.bandwidthEstimate=hS(b);a.j={d:gS(b).toFixed(2),st:(1E9*(b.B.Wi()||0)).toFixed(2),bw:b.j.Wi().toFixed(0),abw:b.N.Wi().toFixed(0),v50:bS(b.C,.5).toFixed(2),v92:bS(b.C,.92).toFixed(2),v96:bS(b.C,.96).toFixed(2),v98:bS(b.C,.98).toFixed(2)};J7a(this.Aa,a)}else this.mediaElement&&(a.Yu=ML(this.mediaElement));a.Nr=this.Nr;a.Bu=this.Bu;a.C=this.isAtLiveHead()&&this.isPlaying()?lab(this):NaN;return a};
g.k.mF=function(a,b){this.Bu+=a;this.Nr+=b};
g.k.Iv=function(){return this.mediaElement?g.NT(this.videoData)?1:OT(this.videoData)?this.isAtLiveHead()||this.Xq()?1:this.Zc.Iv():this.mediaElement.Iv():0};
g.k.pc=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.qc().pc());this.mediaElement&&(Object.assign(b,this.mediaElement.pc()),Object.assign(b,this.LD()));this.Aa&&Object.assign(b,this.Aa.pc());this.Ae&&(b.drm=JSON.stringify(this.Ae.pc()));b.state=this.playerState.state.toString(16);g.TG(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.oh));this.Dp()&&(b.prerolls=this.Sp.join(","));this.videoData.Od&&(b.ismb=this.videoData.Od);"UNKNOWN"!==this.videoData.latencyClass&&
(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)b.is_mosaic=1;this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.Qd.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&AR(this.videoData.j)&&(b.segduration=AR(this.videoData.j)),a=this.Zc,b.lat=a.K?aVa(a.K.D):
0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Mf.toFixed(3);if(a=g.BV(this))b.optimal_format=a.video.qualityLabel;b.user_qual=LP();b.release_version="youtube.player.web_20231217_00_RC00";g.dU(this.videoData)&&this.uc&&(a=this.uc,a=d1a(a.timeline,a.zg),b.ssap=a)}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Gy([a])};
g.k.removeCueRange=function(a){this.Ui.Wp([a])};
g.k.iD=function(a,b){return this.Ui.iD(a,b)};
g.k.Gy=function(a,b){this.Ui.Af(a,b)};
g.k.oF=function(a){this.Ui.Wp(a)};
g.k.Zl=function(){return this.Ui.Zl()||[]};
g.k.Oh=function(){return this.visibility.Oh()};
g.k.nu=function(){this.mediaElement&&this.mediaElement.nu()};
g.k.T$=function(){P0(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.sQ=function(a){var b=a.target.Df();if(this.mediaElement&&this.mediaElement.Df()&&this.mediaElement.Df()===b){Yab(this,a.type);switch(a.type){case "error":var c=RBa(this.mediaElement)||"";if("capability.changed"===c){this.L("html5_restart_on_capability_change")?(this.va("capchg",{msg:this.mediaElement.qf()}),c0(this,!0)):O0(this);return}if(this.mediaElement.hasError()&&K8a(this.Mk,c,{msg:this.mediaElement.qf()}))return;if(this.isBackground()&&4===this.mediaElement.ph()){this.oo();R0(this,"unplayable");
return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Ta||0<c)&&1!==c&&this.xl(c);break;case "ratechange":this.Aa&&this.Aa.setPlaybackRate(this.mediaElement.getPlaybackRate());s$a(this.Ui);this.qc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":$ab(this);this.oa("onLoadedMetadata");Nab(this);c=this.bf();this.videoData.Bz&&(this.videoData.Bz=c);break;case "loadstart":Nab(this);break;case "progress":case "suspend":this.Kc();this.oa("onLoadProgress",
this,this.Iv());break;case "playing":this.Sb.yu("plev");this.kR&&(this.kR=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{wd:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();var d=this.mediaElement&&0===this.mediaElement.Ck();if(c&&(!this.nJ||d))return;this.nJ=this.nJ||!!this.mediaElement.getCurrentTime();Mab(this);this.Kc();if(!this.mediaElement||this.mediaElement.Df()!==b)return;this.oa("onVideoProgress",
this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.Lv().length&&0===this.mediaElement.Kh().length&&0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&this.Aa)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||2<this.mediaElement.Ck()||!this.mediaElement.Uf()&&uL(this.mediaElement.Kh(),this.mediaElement.getCurrentTime()))&&(d=this.mediaElement.pc(),d.bh=ML(this.mediaElement).toFixed(3),this.va("uwe",d));if(g.dU(this.videoData)&&
this.uc){d=this.uc;var e=this.mediaElement.getCurrentTime();if(!d.jk.has(d.zg)){var f=0,h=0,l=BY(d.timeline,d.zg);if(null==l?0:l.length)for(l=g.u(l).next();!l.done;){h=l.value;f=h.Lh();h=h.Dv();break}if(!(0<h&&h>1E3*e+100)&&(h=K1a(d,f))){e=!1;f=void 0;h=g.u(h.segments);for(l=h.next();!l.done;l=h.next()){l=l.value;if(e){f=l;break}l.Yl()===d.zg&&(e=!0)}(e=null==(c=f)?void 0:c.Yl())&&d.finishSegmentByCpn(d.zg,e,2)}}}break;case "resize":$ab(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&
this.oa("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.TU&&g.TG(this.playerState,8)&&!g.TG(this.playerState,1024)&&0===this.getCurrentTime()&&g.zD){R0(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Df()===b){this.L("html5_restore_time_after_unpause")&&U$a(this.Zc,a);this.oa("videoelementevent",a);b=this.playerState;d=this.NC;f=this.mediaElement;h=this.X.experiments;c=this.videoData.clientPlaybackNonce;var m=g.dU(this.videoData)&&this.uc?
QY(this.uc):void 0;if(!g.TG(b,128)){e=b.state;f=f?f:a.target;l=f.getCurrentTime();if(!g.TG(b,64)||"ended"!==a.type&&"pause"!==a.type){m=m||f.getDuration();m=f.Ph()||1<l&&1.1>Math.abs(l-m);var n="pause"===a.type&&f.Ph();l="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.TG(b,4)&&!w0(d,l);if(n||m&&l)0<f.ZH()&&f.Df()&&(e=14);else switch(a.type){case "error":RBa(f)&&(e|=128);break;case "pause":g.TG(b,256)?(e^=256)||(e=64):g.TG(b,32)||g.TG(b,2)||g.TG(b,4)||(e=4,g.TG(b,1)&&g.TG(b,8)&&(e|=
1));break;case "playing":h=e;e=(e|8)&-1093;h&4?(e|=1,OL(d,f)):w0(d,f.getCurrentTime())&&(e&=-2);g.TG(b,1)&&OL(d,f)&&(e|=1);break;case "seeking":e|=16;g.TG(b,8)&&(e|=1);e&=-3;break;case "seeked":e&=-17;h.jb("html5_update_time_on_seeked")&&OL(d,f);break;case "waiting":g.TG(b,2)||(e|=1);OL(d,f);break;case "timeupdate":h=g.TG(b,16),l=g.TG(b,4),(g.TG(b,8)||h)&&!l&&w0(d,f.getCurrentTime())&&(e=8),OL(d,f)&&(e|=1)}}d=e;e=null;d&128&&(e=a.target,f=RBa(e),h=1,f?("capability.changed"===f&&(h=2),l="GENERIC_WITHOUT_LINK",
m=e.pc(),m.mediaElem="1",/AUDIO_RENDERER/.test(e.qf())&&(l="HTML5_AUDIO_RENDERER_ERROR"),e={errorCode:f,errorMessage:g.nW[l]||"",uN:l,aK:SK(m),EH:h,cpn:b.oh?b.oh.cpn:""}):e=null,e&&(e.cpn=c));b=PL(b,d,e)}!g.TG(this.playerState,1)&&g.TG(b,1)&&Xab(this,"evt"+a.type);this.Cc(b)}}};
g.k.s8=function(a){a="available"===a.j.availability;a!==this.XD&&(this.XD=a,this.oa("airplayavailabilitychange"))};
g.k.t8=function(){var a=(0,g.FD)(),b=this.mediaElement.Oh();this.va("airplay",{ia:b});!b&&!isNaN(this.QI)&&2E3>a-this.QI||(this.QI=a,b!==this.Oh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.qg()),this.va("airplay",{rbld:b}),G8a(this)),this.oa("airplayactivechange"))};
g.k.MD=function(a){if(this.Aa){var b=this.Aa,c=b.G,d=b.currentTime,e=Date.now()-c.Z;c.Z=NaN;c.va("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&3!==c.B&&P2a(c.Aa,d,c.D,c.C);c.N=NaN;tZ(c,4,3===c.B?"adfps":"adf");R_(b)}};
g.k.Kc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){N$a(this.Zc,this.isPlaying());var c=this.getCurrentTime();this.Aa&&(g.TG(this.playerState,4)&&g.NT(this.videoData)||L7a(this.Aa,c));5<c&&(this.Zc.D=c);var d=g.mD();d?g.wu.Oj(this.Sw):g.cC(this.Sw);var e=this.mediaElement.isPaused();if((g.UL(this.playerState)||!e||fU(this.videoData))&&!g.TG(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.TG(b.playerState,128)){b.X.Uc()&&Yab(b,"pfx");var h=b.getCurrentTime(),
l=ML(b.mediaElement),m=g.TG(b.playerState,8),n=w0(b.NC,h),p=SBa(b.NC,h,(0,g.FD)(),l);m&&n?b.Cc(RL(b.playerState,1)):m&&p?(m=b.getDuration(),n=vT(b.videoData),m&&1.1>Math.abs(m-h)?(b.va("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.Us()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{wd:"videoplayer_loop"})):yY(b)):(g.UL(b.playerState)||Xab(b,"progress_fix"),b.Cc(QL(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-b.jE)/1E3,n=b.getDuration(),h>n-1&&b.va("misspg",{t:h.toFixed(2),
d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),b.playerState.isPaused()&&g.UL(b.playerState)&&5<ML(b.mediaElement)&&b.Cc(RL(b.playerState,1)));b.Kc()}};
0===this.mediaElement.Lv().length?this.Sw=d?g.wu.Si(f,100):g.aC(f,100):this.Sw=d?g.wu.Si(f,500):g.aC(f,500)}this.videoData.iF=c;!a&&this.isPlaying()&&Qab(this);b9a(this.bl,this.Zf,this.kf(),this.isBackground())&&J0(this);this.oa("progresssync",this,a);e&&fU(this.videoData)&&this.oa("onVideoProgress",this,this.getCurrentTime())}};
g.k.B6=function(){this.xg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.zD=function(){return this.qc().zD()};
g.k.GN=function(){return this.Aa?this.Aa.GN():hS(this.X.schedule,!0)};
g.k.Cc=function(a){if(g.TBa(this.playerState,a))this.X.Uc()&&a.seekSource!==this.playerState.seekSource&&this.va("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{this.logger.debug(function(){return"Setting state "+a.toString()});
var b=new g.SG(a,this.playerState);this.playerState=a;Zab(this);var c=!this.TJ.length;this.TJ.push(b);var d=this.mediaElement&&this.mediaElement.Uf();d=8===b.vA.state&&!d;g.VG(b,1)&&d&&g.TG(this.playerState,8)&&!g.TG(this.playerState,64)&&this.Aa&&(n7a(this.Aa),this.mediaElement&&5<=ML(this.mediaElement)&&$8a(this.bl,this.Zf)&&J0(this));(d=g.EJ(this.X.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.TG(a,1)&&(g.TG(a,8)||g.TG(a,16))?this.hM.start(d):this.hM.stop();(0>UG(b,8)||g.VG(b,1024))&&
this.pw.stop();!g.VG(b,8)||this.videoData.Va||g.TG(b.state,1024)||this.pw.start();g.TG(b.state,8)&&0>UG(b,16)&&!g.TG(b.state,32)&&!g.TG(b.state,2)&&this.playVideo();g.TG(b.state,2)&&OT(this.videoData)&&(this.xl(this.getCurrentTime()),this.Kc(!0));g.VG(b,2)&&this.nR(!0);g.VG(b,128)&&this.oo();this.videoData.j&&this.videoData.isLivePlayback&&!this.l0&&(0>UG(b,8)?uOa(this.videoData.j):g.VG(b,8)&&this.videoData.j.resume());this.Zc.Sd(b);this.qc().Sd(b);if(c&&!this.isDisposed())try{for(var e=g.u(this.TJ),
f=e.next();!f.done;f=e.next()){var h=f.value;this.Ui.Sd(h);this.oa("statechange",h)}}finally{this.TJ.length=0}}};
g.k.AE=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.oa("connectionissue")};
g.k.lQ=function(){this.Sb.tick("qoes")};
g.k.zN=function(){this.Zc.zN()};
g.k.vJ=function(a,b,c,d){a:{var e=this.Mk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=UK(b);"drm.keyerror"===a&&this.Ae&&1<this.Ae.B.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())Q8a(e,a);else{if(e.qa.xg(a,b,d,c),H8a(e,{detail:c}))break a}else e.ke(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.va("retrydrm",{sessionLimitExhausted:1}),e.D++,Wab(e.qa))}};
g.k.h9=function(){var a=this,b=g.EJ(this.X.experiments,"html5_license_constraint_delay"),c=Doa();b&&c?(b=new g.Eu(function(){S0(a);P0(a)},b),g.J(this,b),b.start()):(S0(this),P0(this))};
g.k.DE=function(a){this.oa("heartbeatparams",a)};
g.k.Pp=function(a){this.va("keystatuses",l8a(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.L("html5_drm_check_all_key_error_states")){var d=m8a(b,c);d=Y_(a)?n8a(a,d):a.D.includes(d)}else{a:{b=m8a(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}if(this.L("html5_enable_vp9_fairplay")){if(c)if(a.Z){var f;if(null==(f=this.Ae)?0:KR(f.j))if(null==(c=this.Ae))c=
0;else{b=f=void 0;e=g.u(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=o8a(h,"SD")),b||(b=o8a(h,"AUDIO"));c.ij({sd:f,audio:b});c="output-restricted"===f||"output-restricted"===b}else c=!d;if(c){this.va("drm",{dshdr:1});Q8a(this.Mk);return}}else{this.videoData.WB||(this.videoData.WB=!0,this.va("drm",{dphdr:1}),c0(this,!0));return}var l;if(null==(l=this.Ae)?0:KR(l.j))return}else if(l=a.Z&&d,c&&!l){Q8a(this.Mk);return}d||n8a(a,"AUDIO")&&n8a(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),
a=l8a(a),this.hR?(this.logger.debug("Output restricted, playback cannot continue"),this.oa("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.xg("drm.keyerror",2,void 0,"info."+a)):(this.hR=!0,this.ke(new TK("qoe.restart",Object.assign({},{retrydrm:1},a))),J0(this),Wab(this)))};
g.k.j9=function(){if(!this.videoData.Va&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.Ck()&&5<=ML(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.Cc(QL(this.playerState,1)),Xab(this,"load_soft_timeout"),this.oa("playbackstalledatstart"),a="1");Zab(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!CRa(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].ge)||this.Ae),mfmtinfo:!this.videoData.B,prerolls:this.Dp()?this.Sp.join(","):
"0"};if(this.Ae){b=this.Ae;if(0>=b.B.size){var c="ns;";b.W||(c+="nr;");b=c+="ql."+b.C.length}else b=l8a(b.B.values().next().value),b=SK(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.Aa)?void 0:d.pc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.pc())||{});this.qc().ke("qoe.start15s",SK(a));this.oa("loadsofttimeout")}};
g.k.xl=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,P0(this))};
g.k.nR=function(a){var b=this;a=void 0===a?!1:a;if(!this.PG){$H("att_s","player_att")||dI("att_s",void 0,"player_att");var c=new g.vLa(this.videoData);if("c1a"in c.j&&!g.qI.isInitialized()){dI("att_wb",void 0,"player_att");2===this.uM&&.01>Math.random()&&g.LF(Error("Botguard not available after 2 attempts"));if(a)return;if(5>this.uM){g.Fu(this.OG);this.uM++;return}}if("c1b"in c.j){var d=i$a(this.qc());d&&yLa(c).then(function(e){e&&!b.PG&&d?(dI("att_f",void 0,"player_att"),d(e),b.PG=!0):dI("att_e",
void 0,"player_att")},function(){dI("att_e",void 0,"player_att")})}else(a=g.wLa(c))?(dI("att_f",void 0,"player_att"),h$a(this.qc(),a),this.PG=!0):dI("att_e",void 0,"player_att")}};
g.k.Ke=function(a){return this.Zc.Ke(void 0===a?!1:a)};
g.k.Jd=function(){return this.Zc.Jd()};
g.k.Pc=function(){return this.Zc?this.Zc.Pc():0};
g.k.getStreamTimeOffset=function(){return this.Zc?this.Zc.getStreamTimeOffset():0};
g.k.Lq=function(){var a=0;this.X.L("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Pc():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&V8a(this.bl,null==(b=this.videoData.C)?void 0:b.videoInfos)&&J0(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=qab(this);b&&0<b.videoHeight&&(a=pBa(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.FB=function(){this.qc().FB()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.qc();c.j?(c=n0(c.j,"engage"),c.W=a,c.send(b)):b&&b()};
g.k.Xi=function(a){return this.qc().Xi(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return vT(this.videoData)&&(this.PW||b)?this.Zc.isAtLiveHead(a):!1};
g.k.Hv=function(){var a=this.Ke(),b=this.getCurrentTime(),c;(c=!vT(this.videoData))||(c=this.Zc,c=!(c.B&&c.B.C));return c||this.Xq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Sn=aa(25);g.k.Pt=aa(46);g.k.jo=function(a){this.qc().jo(a)};
g.k.Wt=function(){this.qc().Wt()};
g.k.Zw=function(a){this.qc().Zw(a)};
g.k.lF=function(a){this.L("html5_record_live_playback_window_study")&&this.qc().lF(a)};
g.k.LD=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&GS(this.X)&&this.mediaElement.setLoop(a);this.Aa&&this.L("html5_loop_skip_set_end_of_stream")&&(a?this.Aa.policy.Na=!0:o7a(this.Aa))};
g.k.Us=function(){return this.mediaElement&&GS(this.X)?this.mediaElement.Us():this.loop};
g.k.qQ=function(a){this.va("timestamp",{o:a.toString()});this.Zc.qQ(a)};
g.k.Nd=function(a){this.Sb.tick(a)};
g.k.Ni=function(a){return this.Sb.Ni(a)};
g.k.yu=function(a){this.Sb.yu(a)};
g.k.va=function(a,b,c){c=void 0===c?!1:c;this.qc().va(a,b,c)};
g.k.jF=function(a,b,c){c=void 0===c?!1:c;this.qc().va(a,b,c)};
g.k.ke=function(a){this.qc().ke(a.errorCode,SK(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&("qoe.longrebuffer"===a||"qoe.slowseek"===a)){a=this.Aa?L4a(this.Aa.videoTrack):{};var b,c;this.va("lasoe",Object.assign(this.Aa?L4a(this.Aa.audioTrack):{},null==(b=this.Ta)?void 0:null==(c=b.j)?void 0:c.UH()));var d,e;this.va("lvsoe",Object.assign(a,null==(d=this.Ta)?void 0:null==(e=d.B)?void 0:e.UH()))}};
g.k.kF=function(a,b,c){this.qc().kF(a,b,c)};
g.k.uH=function(a){this.videoData.BV=!0;this.ke(new TK("sabr.fallback",a));c0(this,!0)};
g.k.vH=function(a){this.videoData.HZ=!0;this.ke(new TK("qoe.restart",a));c0(this,!0)};
g.k.getPlayerSize=function(){return this.OF.getPlayerSize()};
g.k.Yj=function(){return this.OF.Yj()};
g.k.xi=function(){return this.Sb};
g.k.Mq=function(){return this.Qd.Mq()};
g.k.getVolume=function(){return this.Qd.getVolume()};
g.k.YD=function(){return this.Qd.YD()};
g.k.isMuted=function(){return this.Qd.isMuted()};
g.k.mz=function(){return this.Qd.mz()};
g.k.xD=function(){return this.Qd.xD()};
g.k.oD=function(){return this.Qd.oD()};
g.k.L=function(a){return this.X.L(a)};
g.k.sM=function(){if(tT(this.videoData,"html5_set_debugging_opt_in")){var a=g.bD();g.cD(0,183)||(spa(183,!0),a.save())}};
g.k.Jr=function(){var a=this.getCurrentTime(),b=a-this.Pc();var c=this.mediaElement?wL(this.mediaElement.Kh()):0;c=Math.floor(Math.max(c-b,0))+100;var d;if(null==(d=this.Aa)?0:d.AF(b,this.Ke()))return this.va("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;return(null==(e=this.Aa)?0:e.Jr(b,c))?(this.va("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),X$a(this.Zc,a),!0):!1};
g.k.Uc=function(){return this.X.Uc()};
g.k.bI=function(){if(this.L("html5_generate_content_po_token")&&this.videoData.videoId)return this.videoData.M5||this.Qd.xP(this.videoData.videoId);this.Qd.iS();return this.X.Rf||""};
g.k.Ce=function(){return this.videoData.videoId};
g.k.xz=function(){return this.Qd.Lw};
g.k.Yq=function(){return this.Qd.Yq()};
g.k.aR=function(a,b){this.va("requestUtcSeek",{time:a});var c;null==(c=this.Aa)||c.aR(a);b&&(this.HB=b)};
g.k.QM=function(){this.HB=0};
g.k.tm=function(a){this.Qd.tm(a)};
g.k.TQ=function(a,b){var c;null==(c=this.Aa)||c.TQ(a,b)};
g.k.EM=function(){var a=this.Iq();return!!a&&a.EM()};
g.k.uj=function(){return this.uc};
g.k.HF=function(a,b){this.qc().HF(a,b)};
g.k.DD=function(){return this.qc().DD()};g.w(g.X0,g.H);g.X0.create=function(a,b,c,d){try{var e="string"===typeof a?a:"player"+g.db(a),f=X3[e];if(f){try{f.dispose()}catch(l){g.KF(l)}X3[e]=null}var h=new g.X0(a,b,c,d);h.addOnDisposeCallback(function(){X3[e]=null;h.d0&&h.d0()});
return X3[e]=h}catch(l){throw g.KF(l),(l&&l instanceof Error?l:Error(String(l))).stack;}};
g.k=g.X0.prototype;g.k.An=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.un=function(){this.LO||(this.LO=g.oI(IU(),Uxa()));return this.LO};
g.k.Fj=function(){if(this.mediaElement){this.LB&&(this.events.Nc(this.LB),this.LB=null);g.UC(this.Jt);this.wb&&this.wb.Fj(!0);this.template.Fj();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.gK()}catch(a){g.LF(a)}this.mediaElement=null}};
g.k.ud=function(){return this.wb};
g.k.cB=function(){var a=this;this.wb!==this.xb&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+(null==(b=a.wb)?void 0:b.getPlayerType())+", vid "+(null==(c=a.wb)?void 0:c.getVideoData().videoId)}),zY(this,this.xb))};
g.k.bz=function(a,b,c){var d=this,e=this.Sb;2===a&&(e=new yVa(this.X));return new g.L0(this.X,a,e,this.template,function(f){return d.Br.oa.apply(d.Br,[f].concat(g.oa(g.Ia.apply(1,arguments))))},function(){return d.Ua.getVisibilityState()},this.visibility,this,b,c)};
g.k.y8=function(){c1(this)||(this.logger.debug("application playback ready"),this.aq(5))};
g.k.F9=function(a){if(!c1(this)){this.logger.debug("playback ready");Xbb(this);var b=a.getPlayerState();a.cE()?this.pauseVideo():g.TL(b)&&this.playVideo()}};
g.k.canPlayType=function(a){return XK(a)};
g.k.U=function(){return this.X};
g.k.getVideoData=function(){return this.wb.getVideoData()};
g.k.JD=aa(19);g.k.Dd=function(){return this.xb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.sU(this,a);return a?g.eU(a.getVideoData())?1:(a=a.kf())?a.Iv():0:0};
g.k.qb=function(){return this.template};
g.k.zb=function(){return this.Ld};
g.k.xi=function(){return this.Sb};
g.k.rB=function(a){var b=g.sU(this,1);b&&yY(b,a)};
g.k.Mq=function(){return this.Ld.Mq()};
g.k.getVolume=function(){return Math.round(this.Ua.getVolume())};
g.k.YD=function(){return this.Ua.isFullscreen()};
g.k.isMuted=function(){return this.Ua.isMuted()};
g.k.xD=function(){if(this.X.L("html5_enable_embedded_player_visibility_signals")&&g.mS(this.X)&&this.oS){var a=this.oS;a=null==a.j?null:Math.round(100*a.j)/100;if(null!=a)return a}};
g.k.oD=function(){if(this.X.L("html5_enable_embedded_player_visibility_signals")&&g.mS(this.X)){var a=this.template.getPlayerSize();if(0<a.height&&0<a.width){a=[Math.round(a.width),Math.round(a.height)];var b=g.AS();1<b&&a.push(b);return a.join(":")}}};
g.k.mz=function(){if(this.wb===this.xb&&this.Eb)return this.Eb.postId};
g.k.Eaa=function(){var a=this;g.PJ(this.X)?g.JS(this.X,g.$T(this.getVideoData())).then(function(b){ZSa(IU(),b);wSa(a.getVideoData(),a.X,a.un())}):wSa(this.getVideoData(),this.X,this.un())};
g.k.EN=function(a){var b=this;return g.Ha(function(c){return b.SA?c.return(b.SA.EN(a)):c.return(Promise.reject("web po not available"))})};
g.k.iS=function(){this.SA&&this.SA.iS()};
g.k.xP=function(a){return this.SA?this.SA.xP(a):""};
g.k.uR=function(a){this.SA=a};
g.k.cF=function(a){1===a&&(this.Sb.tick("vr"),Oab(this.wb),zVa(this.Sb,this.wb.getVideoData(),Wbb(this)),pWa(this.Ld));var b=this.X;(HS(b)&&b.K||g.sS(b))&&(this.Ff()||this.Ua.ib("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.wb===this.xb&&this.wb.Us()!==a&&(this.wb.setLoop(a),this.Ua.ib("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.wb.Us()};
g.k.setLoopRange=function(a){var b=!1;!!this.Eb!==!!a?b=!0:this.Eb&&a&&(b=this.Eb.startTimeMs!==a.startTimeMs||this.Eb.endTimeMs!==a.endTimeMs||this.Eb.postId!==a.postId||this.Eb.type!==a.type);if(b){this.xb.Ui.wf("applooprange");if(a)b=new g.jK(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.xb.addCueRange(b);else{this.Dd().clipConfig=void 0;var c,d;"repeatChapter"!==(null==(c=this.Eb)?void 0:c.type)||isNaN(Number(null==(d=this.Eb)?void 0:d.loopCount))||(b={loopCount:String(this.Eb.loopCount),
cpn:this.getVideoData().clientPlaybackNonce},g.qD("repeatChapterLoopEvent",b))}this.Eb=a;this.Ua.ib("onLoopRangeChange",a||void 0);this.wb===this.xb&&(this.sK(),this.wb.Fo())}};
g.k.getLoopRange=function(){return this.Eb};
g.k.sK=function(){this.Eb&&this.wb===this.xb&&(Cbb(this,this.xb.getCurrentTime())?this.Eb.loopCount=0:Fbb(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=hbb(this,a),this.xb.getPlaybackRate()!==a&&(this.xb.setPlaybackRate(a),b&&!this.X.D&&g.XC("yt-player-playback-rate",a),this.Ua.ym("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return BU(this.Ld).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai,d=g.dU(this.getVideoData());a=c||d?g.sU(this):g.sU(this,a);if(!a)return 0;if(d&&this.uc)return b=this.uc,a=a.getCurrentTime(),b=H1a(b,a),a-b/1E3;if(b){if(c&&this.Oe&&(b=this.Oe.Bb/1E3,0!==b))return b;a=b1(this,a);return l1(this,a.getCurrentTime(),a)}c&&this.Oe?(b=this.Oe,a=a.getCurrentTime(),a=(b=p1a(b,1E3*a))?a-b.start/
1E3:a):a=a.getCurrentTime();return a};
g.k.sz=function(){var a=g.sU(this);if(!a)return 0;a=b1(this,a);return l1(this,a.sz(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai,e=g.dU(c);var f=d||e?g.sU(this):g.sU(this,a);if(!f)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var h,l=Number(null==(h=c.progressBarStartPosition)?void 0:h.utcTimeMillis),m;c=Number(null==(m=c.progressBarEndPosition)?void 0:m.utcTimeMillis);if(!isNaN(l)&&!isNaN(c))return(c-l)/1E3}if(e&&this.uc)return b=I1a(this.uc,f.getCurrentTime()),1===a&&0===b?f.getDuration():b;if(b)return f=a1(this,
f),l1(this,f.getDuration(),f);d&&this.Oe?(a=this.Oe,f=f.getCurrentTime(),f=(f=HY(a,1E3*f))?f.durationMs/1E3:0):f=f.getDuration();return f};
g.k.bf=function(a){var b=g.sU(this,a);return b?this.Ff(b)?(b=a1(this,b),b.bf()-b.getCurrentTime()+this.getCurrentTime(a)):b.bf():0};
g.k.addPlayerResponseForAssociation=function(a){this.uc&&this.uc.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.uc?this.uc.finishSegmentByCpn(a,b):[]};
g.k.hN=function(){this.template.hN();var a=this.Ua;a.state.element=this.template.element;var b=a.state.element,c;for(c in a.state.j)a.state.j.hasOwnProperty(c)&&(b[c]=a.state.j[c]);(a=Yoa(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.c$)};
g.k.getDebugText=function(a){var b=this.xb.pc(a);if(this.wb&&this.wb!==this.xb){for(var c=this.wb.pc(a),d=g.u(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=Ie(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.Me("video-ads");f?(ccb(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.Me("videoAdUiSkipContainer"),l=g.Me("ytp-ad-skip-button-container"),m=h||l;m?(ccb(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===+this.mediaElement.getSize().area()),b.op=this.mediaElement.ID("opacity"),c=this.mediaElement.Ws().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.ID("display"));(a=a?(0,g.i0)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ua.getPlaybackQuality(1);b.debug_date=(new Date).toString();b.timestamp=Date.now();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.U().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20231217_00_RC00"},b=this.Vb().oh;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(c1(this))return 3;var b;if(a&&(null==(b=this.Oe)?0:o1a(b,this.getCurrentTime())))return 2;var c;return g.dU(this.getVideoData())&&(null==(c=this.uc)?0:J1a(c))?2:g.sU(this).getPlayerType()};
g.k.Oz=function(){return g.dU(this.getVideoData())&&this.uc?this.uc.Oz():!1};
g.k.Vb=function(a){return 3===this.getPresentingPlayerType()?BU(this.Ld).jf:g.sU(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.sQ=function(a){switch(a.type){case "loadedmetadata":this.nK.start();a=g.u(this.iB);for(var b=a.next();!b.done;b=a.next())b=b.value,Ubb(this,b.id,b.vca,b.uca,void 0,!1);this.iB=[];break;case "loadstart":this.Sb.yu("gv");break;case "progress":case "timeupdate":2<=wL(a.target.Kh())&&this.Sb.yu("l2s");break;case "playing":g.ES&&this.nK.start();if(g.PJ(this.X))a=!1;else{b=g.EU(this.zb());a="none"===this.mediaElement.ID("display")||0===this.mediaElement.getSize().area();var c=eZ(this.template),d=this.wb.getVideoData(),
e=g.jH(this.X);d=DT(d);b=!c||b||e||d||this.X.Jb;a=a&&!b}a&&(this.wb.va("hidden",{},!0),this.getVideoData().ac||(this.getVideoData().ac=1,this.OY(),this.wb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Ua.vc("onLoadProgress",b)};
g.k.z$=function(){this.Ua.oa("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=b1(this,a);b=l1(this,a.getCurrentTime(),a);this.Ua.vc("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Ua.vc("onAutoplayBlocked")};
g.k.P9=function(){this.Ua.oa("progresssync")};
g.k.E9=function(){this.Ua.vc("onPlaybackPauseAtStart")};
g.k.A8=function(a){if(1===this.getPresentingPlayerType()){g.VG(a,1)&&!g.TG(a.state,64)&&this.Dd().isLivePlayback&&this.xb.isAtLiveHead()&&1<this.Ua.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.VG(a,2)){if(this.Eb&&this.Eb.endTimeMs>=1E3*(this.getDuration()-1)){Fbb(this);return}tbb(this)}if(g.TG(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.oh;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.ym("onError",PSa(b.errorCode));this.Ua.vc("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.uN,cpn:b.cpn});6048E5<(0,g.FD)()-this.X.Qf&&this.Ua.vc("onReloadRequired")}b={};if(a.state.isPlaying()&&!g.UL(a.state)&&!$H("pbresume","ad_to_video")&&$H("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.aI(b,"ad_to_video");cI("pbresume",void 0,"ad_to_video");pWa(this.Ld)}this.Ua.oa("applicationplayerstatechange",a)}};
g.k.gZ=function(a){3!==this.getPresentingPlayerType()&&this.Ua.oa("presentingplayerstatechange",a)};
g.k.pk=function(a){$0(this,VL(a.state));g.TG(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(j1(this,{muted:!1,volume:this.Oi.volume},!1),k1(this,!1))};
g.k.w8=function(a,b,c){"newdata"===a&&jbb(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.yE=function(){this.Ua.vc("onPlaybackAudioChange",this.Ua.getAudioTrack().Lc.name)};
g.k.NE=function(a){var b=this.wb.getVideoData();a===b&&this.Ua.ym("onPlaybackQualityChange",a.B.video.quality)};
g.k.onVideoDataChange=function(a,b,c){this.logger.debug(function(){return"on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId});
b===this.xb&&(this.X.sj=c.oauthToken);if(b===this.xb){this.getVideoData().enableServerStitchedDai&&!this.Oe?this.Oe=new g.CY(this.Ua,this.X,this.xb):!this.getVideoData().enableServerStitchedDai&&this.Oe&&(this.Oe.dispose(),this.Oe=null);var d,e;!g.dU(this.getVideoData())||"newdata"!==a&&"dataloaded"!==a||this.getVideoData().clientPlaybackNonce===(null==(d=this.Pw.j)?void 0:null==(e=d.getVideoData())?void 0:e.clientPlaybackNonce)?!g.dU(this.getVideoData())&&this.uc&&(this.uc.dispose(),this.uc=null):
(this.Pw.Jf(),d=c1a(this.Pw,1,0,1E3*this.getDuration(1),this.getVideoData()),$0a(this.Pw,d),this.uc&&(this.uc.dispose(),this.uc=null),this.uc=new F1a(this.Ua,this.Pw,this.xb))}if("newdata"===a)this.logger.debug("new video data, destroy modules"),cW(this.Ld,2),this.Ua.oa("videoplayerreset",b);else{if(!this.mediaElement)return;"dataloaded"===a&&(this.wb===this.xb?(CPa(c.Fa,c.uS),ybb(this)):wbb(this));1===b.getPlayerType()&&(this.X.Xa&&bcb(this),this.getVideoData().isLivePlayback&&!this.X.Kp&&this.Hg("html5.unsupportedlive",
2,"DEVICE_FALLBACK"),c.isLoaded()&&((TRa(c)||this.getVideoData().xx)&&ySa(this.Hy,this.getVideoData(),this.xb),c.hasProgressBarBoundaries()&&Nbb(this)));this.Ua.oa("videodatachange",a,c,b.getPlayerType())}this.Ua.vc("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.sK();(d=c.yF)?this.Tq.uV(d,c.clientPlaybackNonce):r2a(this.Tq)};
g.k.dH=function(){e1(this,null);this.Ua.vc("onPlaylistUpdate")};
g.k.uY=function(a){var b=a.getId(),c=this.Dd(),d=!this.isInline();if(!c.inlineMetricEnabled&&!this.X.experiments.jb("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.FS&&g.yE(c.FS),c.HP&&s1(this,c.HP),c.py)for(var e={CPN:this.getVideoData().clientPlaybackNonce},f=g.u(c.py),h=f.next();!h.done;h=f.next())s1(this,g.tu(h.value,e))}else"conversionview"===b?this.xb.FB():"engagedview"===b&&c.rj&&(e={CPN:this.getVideoData().clientPlaybackNonce},g.yE(g.tu(c.rj,e)));c.GS&&(e=c.GS,f=
a.getId(),e=UB(e,{label:f}),g.yE(e));switch(b){case "videoplaytime25":c.yS&&s1(this,c.yS);c.bS&&t1(this,c.bS);c.ST&&g.yE(c.ST);break;case "videoplaytime50":c.DS&&s1(this,c.DS);c.qS&&t1(this,c.qS);c.UT&&g.yE(c.UT);break;case "videoplaytime75":c.ES&&s1(this,c.ES);c.rS&&t1(this,c.rS);c.XT&&g.yE(c.XT);break;case "videoplaytime100":c.xS&&s1(this,c.xS),c.OQ&&t1(this,c.OQ),c.QT&&g.yE(c.QT)}(e=this.getVideoData().xx)&&Mbb(this,e,a.getId())&&Mbb(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&!d)switch(b){case "videoplaybackstart":var l,
m=null==(l=c.qy)?void 0:l.j;m&&s1(this,m);break;case "videoplayback2s":(l=null==(m=c.qy)?void 0:m.C)&&s1(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.qy)?void 0:n.B)&&s1(this,l)}this.xb.removeCueRange(a)};
g.k.O9=function(a){delete this.ZJ[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.Qa)?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.Qa)?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.u(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.R(c,g.yT),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.R(a,g.yT))&&this.Ua.ib("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.aq=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),2===a&&1===this.getPresentingPlayerType()&&($0(this,-1),$0(this,5)),this.appState=a,this.Ua.oa("appstatechange",a))};
g.k.Hg=function(a,b,c,d,e){this.xb.xg(a,b,c,d,e)};
g.k.Ir=function(a,b){this.xb.handleError(new TK(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.sU(this,a);if(!c)return!1;a=a1(this,c);c=b1(this,c);return a!==c?a.isAtLiveHead(l1(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Hv=function(){var a=g.sU(this);return a?a1(this,a).Hv():0};
g.k.seekTo=function(a,b,c,d,e){b=!1!==b;if(d=g.sU(this,d))2===this.appState&&h1(this),this.Ff(d)?m1(this)?this.Oe.seekTo(a,{seekSource:e},b,c):this.bd.seekTo(a,{seekSource:e},b,c):g.dU(this.getVideoData())&&this.uc?this.uc.seekTo(a,{bG:!b,cS:c,wd:"application",seekSource:e}):d.seekTo(a,{bG:!b,cS:c,wd:"application",seekSource:e})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.GA=function(){this.Ua.vc("SEEK_COMPLETE")};
g.k.o$=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.TG(a.getPlayerState(),512)||h1(this):this.Ua.vc("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Ua.oa("airplayactivechange");this.X.L("html5_external_airplay_events")&&this.Ua.vc("onAirPlayActiveChange",this.Ua.Oh())};
g.k.onAirPlayAvailabilityChange=function(){this.Ua.oa("airplayavailabilitychange");this.X.L("html5_external_airplay_events")&&this.Ua.vc("onAirPlayAvailabilityChange",this.Ua.XD())};
g.k.showAirplayPicker=function(){var a;null==(a=this.wb)||a.nu()};
g.k.NP=function(){this.Ua.oa("beginseeking")};
g.k.SP=function(){this.Ua.oa("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.sU(this,a))?a1(this,a).getVideoData().getStoryboardFormat():null};
g.k.Xj=function(a){return(a=g.sU(this,a))?a1(this,a).getVideoData().Xj():null};
g.k.Ff=function(a){a=a||this.wb;var b=!1;if(a){a=a.getVideoData();if(m1(this))a=a===this.Oe.qa.getVideoData();else a:if(b=this.bd,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.u(b.B);for(var c=b.next();!c.done;c=b.next())if(a.pd===c.value.pd){a=!0;break a}a=!1}b=a}return b};
g.k.HC=function(a,b,c,d,e,f,h){this.logger.debug(function(){return"Adding video to timeline id="+a.video_id+"\n        lengthMs="+d+" enterTimeMs="+e});
var l="",m=m1(this),n;null==(n=g.sU(this))||n.va("appattl",{sstm:this.Oe?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?l1a(this.Oe,a,b,c,d,e,f,h):U1a(this.bd,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l});
return l};
g.k.UD=function(a,b,c,d,e,f,h){if(m1(this)){var l=l1a(this.Oe,a,b,c,d,e,f,h);this.logger.debug(function(){return"Remaining video added to timeline id="+a.video_id+" timelinePlaybackId="+l})}return""};
g.k.Rt=function(a){var b;null==(b=this.Oe)||b.Rt(a)};
g.k.Oy=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;m1(this)||c2a(this.bd,a,b)};
g.k.dG=function(a,b,c){if(m1(this)){var d=this.Oe,e=d.Ic.get(a);e?(void 0===c&&(c=e.Td),e.durationMs=b,e.Td=c):d.nE("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.bd;e=null;for(var f=g.u(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.pd===a){e=h;break}e?(void 0===c&&(c=e.Td),b2a(d,e,b,c)):TY(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Ff();a=new g.nT(this.X,a);d&&(a.pd=d);Obb(this,a,b,c)};
g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;a=this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,void 0===d?"":d,void 0===e?"":e);b=this.ud();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().W&&(c=this.nS,d=this.Gm.N,c.C!==a&&(c.wb=b,c.C=a,c.B=1,c.j=a.getVideoData(),c.D=d,c.j.isLoaded()?c.G():c.j.subscribe("dataloaded",c.G,c))):(c=D0a(b,a,this.Gm.N),null!=c?(b.va("sgap",c),b.getVideoData().W&&Jab(b,!1)):(a=a.getVideoData(),b=this.nS,
b.j!==a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))};
g.k.CH=function(a,b,c,d){var e=this;c=void 0===c?0:c;d=void 0===d?0:d;var f=g.sU(this);f&&(a1(this,f).l0=!0);R0a(this.Gm,a,b,c,d).then(function(){e.Ua.vc("onQueuedVideoLoaded")},function(){})};
g.k.dw=function(){return this.Gm.dw()};
g.k.clearQueue=function(){this.logger.debug("Clearing queue");this.Gm.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;if(2===b&&this.Dd().enableServerStitchedDai&&this.xb&&!O_(this.xb)){var f;null==(f=this.xb)||f.va("lvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.nT(this.X,a);g.DS(this.X)&&!f.fl&&NV(this.Sb);var l,m=this.Sb,n=null!=(l=f.La)?l:"";m.timerName=n;this.Sb.Ni("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Sb.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&&
!this.L("html5_shorts_gapless_always_fallback")){l=U0a(this.Gm,f,b);if(null==l){$0(this,-1);a=this.Gm;a.app.setLoopRange(null);a.app.getVideoData().XB=!0;var p,q;null==(p=a.j)||null==(q=p.Aa)||q.resume();var r;null==(r=a.j)||SY(r.qc());p={wd:"gapless_to_next_video",seekSource:60};var t;null==(t=a.app.ud())||t.seekTo(T0a(a),p);if(!a.app.Vb(b).isPlaying()){var v;null==(v=g.sU(a.app))||v.playVideo(!0)}a.K();return!0}this.Gm.clearQueue();var x;null==(x=g.sU(this))||x.va("sgap",{f:l})}if(e){for(;f.pm.length&&
f.pm[0].isExpired();)f.pm.shift();t=f.pm.length-1;h=0<t&&e.B(f.pm[t])&&e.B(f.pm[t-1]);f.pm.push(e)}c||(a&&DVa(a)?(zS(this.X)&&!this.oi&&(a.fetch=0),e1(this,a)):this.playlist&&e1(this,null),a&&(this.oi=AC(!1,a.external_list)),zS(this.X)&&!this.oi&&f1(this));this.Ua.oa("loadvideo");t=this.Ht(f,b,d);h&&this.Hg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.pm.join()).replace(/[;:,]/g,"_"));return t};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;d=void 0===d?"":d;e=void 0===e?"":e;var f="";if(this.X.L("html5_autonav_autoplay_in_preload_key"))f=Rbb(this,b,a,e);else{var h=EC(a);f=o1(this,b,h,e)}if(this.TA.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null;
a=new g.nT(this.X,a);e&&(a.pd=e);return Qbb(this,a,b,c,d)};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Ld;a=a.J.U().showMiniplayerUiWhenMinimized?a.Fe.get("miniplayer"):void 0;a&&(this.jg()?a.load():a.unload());this.Ua.oa("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Ld;a=a.J.U().showInlinePreviewUi?a.Fe.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.ib("onInlinePreviewModeChange"))};
g.k.qB=function(a){var b=this.X.L("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.X.Cm&&this.X.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.CN&&b?this.CN.start():this.dV():this.visibility.qB(a)};
g.k.dV=function(){var a,b=null==(a=this.mediaElement)?void 0:a.Fb();b&&LC(b).catch(function(c){return g.LF(c)})};
g.k.l$=function(){this.mediaElement.Fb();"picture-in-picture"===this.mediaElement.Fb().webkitPresentationMode?this.qB(!0):this.qB(!1)};
g.k.togglePictureInPicture=function(){var a=g.sU(this);a&&a.togglePictureInPicture()};
g.k.Ht=function(a,b,c){b=void 0===b?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b});
$H("_start",this.Sb.timerName)||g.OB(LH)(void 0,this.Sb.timerName);var d=!1,e=Bbb(this,b,a,!1);e?(d=!0,a.dispose()):(e=vbb(this,b,a,c),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&N0(e)&&g.xY(e),this.nK.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),zY(this,e));e===this.xb&&(this.X.sj=a.oauthToken);if(!N0(e))return!1;if(e===this.xb){this.aq(1);c=h1(this);if(d&&this.L("html5_player_preload_ad_fix")&&1===e.getPlayerType()&&e.Tp.finished)this.onVideoDataChange("dataloaded",
e,e.getVideoData());return c}wab(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(this.Dd().enableServerStitchedDai&&this.xb&&!O_(this.xb)&&a&&0<Object.keys(a).length){var d;null==(d=this.xb)||d.va("qvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b})}else if(a&&DVa(a))if(this.Zv=!0,e1(this,a),(a=g.OV(this.playlist))&&a.Ee())q1(this,a,b);else this.playlist.onReady(function(){g1(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.dH();d=new g.nT(this.X,a);var e=g.mS(this.X)&&!this.X.ma&&1===b&&!d.isAd()&&!d.Bd;this.Ua.oa("cuevideo");e?(this.ud().getVideoData().loading=!0,KVa(d,a?a:{}).then(function(f){q1(c,f,b)}),d.dispose()):q1(this,d,b)}};
g.k.Io=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(oS(this.X)||g.NJ(this.X))return b=b||{},b.lact=YE(),b.vis=this.Ua.getVisibilityState(),this.Ua.ib("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;BVa(this.Sb);this.Sb.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.Zv=!0;Sbb(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Zv=!1;Sbb(this,a,b,c,d)};
g.k.rD=function(){if(this.Ua.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;zS(this.X)&&!this.oi&&f1(this);return!(!this.playlist||!this.playlist.Tk())};
g.k.Os=aa(15);
g.k.nextVideo=function(a,b){var c=g.zT(this.xb.getVideoData());g.HU(this.Ua)&&c?this.Io(c.videoId,b?c.dD:c.sessionData,c.playlistId,b,void 0,c.SU||void 0):this.oi?this.Ua.vc("onPlaylistNext"):3===this.getPresentingPlayerType()?BU(this.Ld).nextVideo():this.playlist&&(zS(this.X)&&!this.Ua.isFullscreen()?Ibb(this,"yt.www.watch.lists.next"):(this.playlist.Tk(a)&&GVa(this.playlist,EVa(this.playlist)),this.playlist.loaded?(a=b&&this.X.L("html5_player_autonav_logging"),b&&this.Ua.oa("playlistautonextvideo"),this.Ht(g.OV(this.playlist,
void 0,b,a),1)):this.Zv=!1))};
g.k.previousVideo=function(a){this.oi?this.Ua.vc("onPlaylistPrevious"):3===this.getPresentingPlayerType()?BU(this.Ld).WJ():this.playlist&&(zS(this.X)&&!this.Ua.isFullscreen()?Ibb(this,"yt.www.watch.lists.prev"):(this.playlist.Ep(a)&&GVa(this.playlist,FVa(this.playlist)),this.playlist.loaded?this.Ht(g.OV(this.playlist),1):this.Zv=!1))};
g.k.playVideoAt=function(a){this.oi?this.Ua.vc("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Ht(g.OV(this.playlist,a),1):this.Zv=!1,GVa(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.CD=aa(23);g.k.u8=function(a){this.Ua.vc("onCueRangeEnter",a.getId())};
g.k.v8=function(a){this.Ua.vc("onCueRangeExit",a.getId())};
g.k.Gy=function(a,b,c){var d=this.Dd();if(1===b&&this.uc&&g.dU(d))for(var e=NY(this.uc,d.clientPlaybackNonce),f=g.u(a),h=f.next();!h.done;h=f.next())h=h.value,h.start+=e,h.end+=e,h.qm=e,h.C=d.clientPlaybackNonce;if(d=g.sU(this,b))d.Gy(a,c),b&&this.getPresentingPlayerType()!==b||Z0(this,"cuerangesadded",a)};
g.k.oF=function(a,b){var c=g.sU(this,b);c&&(c.oF(a),b&&this.getPresentingPlayerType()!==b||Z0(this,"cuerangesremoved",a))};
g.k.z8=function(){function a(){var d=g.HF(b.screenLayer||(b.jg()?3:0));if(d&&"UNDEFINED_CSN"!==d){var e=b.X.L("web_player_attach_player_response_ve"),f=b.X.L("web_playback_associated_ve");if(b.X.L("il_via_jspb")){var h=new hB;var l=b.getVideoData().clientPlaybackNonce;l=N(h,1,l);N(l,3,d);b.getVideoData().Ba&&(e||f)&&(e=g.FF(b.getVideoData().Ba),g.XF(d,e),f&&(d=e.getAsJspb(),Jj(h,HA,2,d)));if(b.getVideoData().queueInfo){d=b.getVideoData().queueInfo;f=new gB;if(null==d?0:d.enqueueingVe)(null==d?0:d.enqueueingVe.trackingParams)?
(e=g.FF(d.enqueueingVe.trackingParams),e=e.getAsJspb(),Jj(f,HA,1,e)):g.LF(new g.eD("Cannot map enqueueingVe from a client VE "));(null==d?0:d.enqueueingCsn)&&N(f,2,d.enqueueingCsn);(null==d?0:d.clientEnqueueingTimeMs)&&Yj(f,3,Number(d.clientEnqueueingTimeMs));Jj(h,gB,4,f)}d={};b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(d.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId});$ta(h,d)}else h={cpn:b.getVideoData().clientPlaybackNonce,csn:d},b.getVideoData().Ba&&(e||
f)&&(e=g.FF(b.getVideoData().Ba),g.XF(d,e),f&&(h.playbackVe=e.getAsJson())),b.getVideoData().queueInfo&&(h.queueInfo=b.getVideoData().queueInfo),d={},b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(d.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId}),g.qD("playbackAssociated",h,d)}else g.LF(new g.eD("CSN Missing or undefined during playback association"))}
var b=this;this.getPresentingPlayerType();zVa(this.Sb,this.wb.getVideoData(),Wbb(this));d1(this)&&this.X.D&&"embedded"===VT(this.Dd())&&this.SX&&.01>Math.random()&&g.qD("autoplayTriggered",{intentional:this.pX});this.SX=!1;pWa(this.Ld);this.L("web_player_defer_ad")&&xbb(this);this.Ua.vc("onPlaybackStartExternal");(this.X.L("mweb_client_log_screen_associated"),wS(this.X))||a();var c={};this.getVideoData().G&&(c.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId});c.sampleRate=
20;bI("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.BS(this.X)||"MWEB"===g.QR(this.X)?g.jD(g.lD(),function(){i1(b)}):i1(this);
this.sK();Ebb(this)};
g.k.ZP=function(){this.Ua.oa("internalAbandon");n1(this)};
g.k.onApiChange=function(){this.X.K&&this.wb?this.Ua.ym("onApiChange",this.wb.getPlayerType()):this.Ua.ym("onApiChange")};
g.k.q9=function(){var a=this.mediaElement;a={volume:g.ie(Math.floor(100*a.getVolume()),0,100),muted:a.YH()};a.muted||k1(this,!1);this.Oi=g.ld(a);this.Ua.vc("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.BP)&&(this.BP=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.BP}),this.Ua.vc("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=Ybb(this);this.Am(a?1:0);$bb(this,!!a)};
g.k.Am=function(a){var b=!!a,c=!!this.pz()!==b;this.visibility.Am(a);this.template.Am(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&Ybb(this)===this.mediaElement.Fb()&&this.mediaElement.gD();this.template.resize();c&&this.Sb.tick("fsc");c&&(this.Ua.oa("fullscreentoggled",b),a=this.Dd(),b={fullscreen:b,videoId:a.UL||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.vc("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.pz=function(){return this.visibility.pz()};
g.k.c$=function(){this.wb&&(0!==this.pz()&&1!==this.pz()||this.Am(Ybb(this)?1:0),this.X.Cm&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.gD())};
g.k.i9=function(a){3!==this.getPresentingPlayerType()&&this.Ua.oa("liveviewshift",a)};
g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a});
var b=g.sU(this,a);b&&(2===this.appState?(g.DS(this.X)&&NV(this.Sb),h1(this)):g.TG(b.getPlayerState(),2)?(this.seekTo(0),this.X.Uc()&&b.va("szro",{})):b.playVideo())};
g.k.pauseVideo=function(a,b){(a=g.sU(this,a))&&a.pauseVideo(b)};
g.k.stopVideo=function(a){a=void 0===a?!1:a;this.logger.debug(function(){return"stop video"});
var b=this.xb.getVideoData(),c=new g.nT(this.X,{video_id:b.UL||b.videoId,oauth_token:b.oauthToken});c.Z=g.ld(b.Z);var d;!a||null!=(d=this.webPlayerContextConfig)&&d.disableStaleness||(c.cU=!0);this.cancelPlayback(6);q1(this,c,1)};
g.k.cancelPlayback=function(a,b){var c=this;this.logger.debug(function(){return"start cancel playback, type "+b});
var d=g.sU(this,b);d?2===b&&1===d.getPlayerType()&&(iSa(this.Dd())||g.dU(this.getVideoData()))?d.va("canclpb",{r:"no_adpb_ssdai"}):(this.X.Uc()&&d.va("canclpb",{r:a}),1===this.appState||2===this.appState?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.wb&&(this.logger.debug("cancel playback, destroy modules"),cW(this.Ld,a)),1===b&&(d.stopVideo(),n1(this)),d.oo(void 0,6!==a),Z0(this,"cuerangesremoved",d.Zl()),d.Ui.reset(),this.Gm&&d.isGapless()&&
(d.Fj(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.sU(this,b))&&LPa(this.X,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Xi=function(a){var b=g.sU(this);return b&&LPa(this.X,a)?b.Xi(a):null};
g.k.updatePlaylist=function(){zS(this.X)?f1(this):g.mS(this.X)&&zbb(this);this.Ua.vc("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.s_=a;this.XO=b;this.Ua.oa("sizestylechange",a,b);this.template.resize()};
g.k.ew=function(){return this.XO};
g.k.jg=function(){return this.visibility.jg()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.zt=function(){return this.visibility.zt()};
g.k.Nz=function(){return this.visibility.Nz()};
g.k.VO=function(){return this.s_};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return BU(this.Ld).getAdState();if(!this.Ff()){var a=dW(this.zb());if(a)return a.getAdState()}return-1};
g.k.b$=function(a){var b=this.template.getVideoContentRect();Wr(this.GX,b)||(this.GX=b,this.wb&&S0(this.wb),this.xb&&this.xb!==this.wb&&S0(this.xb),1===this.pz()&&this.QE&&$bb(this,!0));this.fP&&g.oe(this.fP,a)||(this.Ua.oa("appresize",a),this.fP=a)};
g.k.Rh=function(){return this.Ua.Rh()};
g.k.u$=function(){2===this.getPresentingPlayerType()&&this.bd.isManifestless()?a2a(this.bd):(this.Oe&&(r1a(this.Oe),n1(this)),sbb(this,"signature"))};
g.k.OY=function(){this.Fj();Y0(this)};
g.k.w9=function(a){"manifest.net.badstatus"===a.errorCode&&a.details.rc===(this.X.experiments.jb("html5_use_network_error_code_enums")?401:"401")&&this.Ua.ib("onPlayerRequestAuthFailed")};
g.k.AE=function(){this.Ua.vc("CONNECTION_ISSUE")};
g.k.DE=function(a){this.Ua.oa("heartbeatparams",a)};
g.k.jK=function(a){this.Ua.ib("onAutonavChangeRequest",1!==a)};
g.k.kf=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.X.Jb!==a&&(this.X.Jb=a,this.wb&&(this.wb.Fo(),this.X.Xa&&bcb(this),this.wb.jo(a)))};
g.k.y9=function(){var a=g.sU(this);if(a){var b=!this.Ua.bE();(a.PW=b)||a.pw.stop();a.videoData.j&&(b?a.videoData.j.resume():uOa(a.videoData.j));a.Aa&&(b?a.Aa.resume():U0(a,!0));g.TG(a.playerState,2)||b?g.TG(a.playerState,512)&&b&&a.Cc(RL(a.playerState,512)):a.Cc(QL(a.playerState,512));a=a.qc();a.qoe&&(a=a.qoe,g.f0(a,g.HN(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Ua.vc("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Ua.vc("onDrmOutputRestricted")};
g.k.sM=function(){ujb=this.L("html5_use_async_stopVideo");vjb=this.L("html5_pause_for_async_stopVideo");tjb=this.L("html5_not_reset_media_source");PBa=this.L("html5_rebase_video_to_ad_timeline");sjb=this.L("html5_move_disable_airplay");CBa=this.L("html5_not_reset_media_source");rjb=this.L("html5_not_reset_media_source");zBa=this.L("html5_retain_source_buffer_appends_for_debugging");OPa=this.L("html5_avoid_3gpp");this.L("html5_mediastream_applies_timestamp_offset")&&(RZ=!0);this.L("html5_support_managed_media_source")&&
(EL=ZK=!0);gNa=this.L("html5_prefer_slice_length");Sjb=this.L("html5_use_target_duration");var a=g.EJ(this.X.experiments,"html5_cobalt_override_quic");a&&oY("QUIC",+(0<a));this.L("html5_cobalt_enable_min_processor_cnt_to_offload_algo")&&oY("MediaSource.MinimumProcessorCountToOffloadAlgorithm",g.EJ(this.X.experiments,"html5_cobalt_min_processor_cnt_to_offload_algo"));(a=this.L("html5_cobalt_async_redn"))&&oY("MediaSource.EnableAsynchronousReduction",+a);if(a=g.EJ(this.X.experiments,"html5_cobalt_max_size_for_immed_job"))oY("MediaSource.MaxSizeForImmediateJob",
a),oY("MediaSource.MinSizeForImmediateJob",a);(a=this.L("html5_cobalt_enable_fetch_buffer_pool"))&&oY("XHR.EnableFetchBufferPool",+a);(a=g.EJ(this.X.experiments,"html5_cobalt_default_buffer_size_in_bytes"))&&oY("XHR.DefaultFetchBufferSize",a);(a=this.L("html5_cobalt_enable_try_lock_for_progress_check"))&&oY("XHR.EnableTryLockForProgressCheck",+a);(a=g.EJ(this.X.experiments,"html5_max_source_buffer_append_size_in_bytes"))&&oY("MediaSource.MaxSourceBufferAppendSizeInBytes",a);(a=this.L("html5_cobalt_enable_avoid_copying_array_buffer"))&&
oY("MediaSource.EnableAvoidCopyingArrayBuffer",+a);Error.stackTraceLimit=25;var b=g.EJ(this.X.experiments,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
ZOa(this.X.G);o0a=this.L("html5_consume_onesie_media_bytes_on_mismatch_for_sabr");x0a=this.L("html5_use_ump_request_slicer");aTa=this.L("html5_record_now");this.L("html5_disable_streaming_xhr")&&(RR=!1);this.L("html5_onesie_host_forward_mm")&&(h0a=!0);this.L("html5_log_request_identifier_on_format_change")&&(akb=!0)};
g.k.fA=function(){this.pX=!0};
g.k.xa=function(){this.Ld.dispose();this.L5.dispose();this.bd.dispose();this.Oe&&this.Oe.dispose();this.Pw.Jf();this.Pw.dispose();this.uc&&this.uc.dispose();this.xb.dispose();this.Fj();g.vb(dd(this.Sr),this.playlist);g.H.prototype.xa.call(this)};
g.k.L=function(a){return this.X.L(a)};
g.k.setScreenLayer=function(a){this.screenLayer=a};
g.k.getInternalApi=function(){return this.Ua.getInternalApi()};
g.k.createSubtitlesModuleIfNeeded=function(){return this.Ld.createSubtitlesModuleIfNeeded()};
g.k.isOrchestrationLeader=function(){var a=fW(this.Ld);return a?a.isOrchestrationLeader():!1};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.Eb&&this.Eb.postId)return a=this.X.getVideoUrl(a),a=vm(a,"v"),a.replace("/watch","/clip/"+this.Eb.postId);var f=g.DU(this.Ua)||"shortspage"===this.X.La;return this.X.getVideoUrl(a,b,c,d,e,f)};
g.k.Yq=function(){return this.Gm.Yq()};
g.k.tm=function(a){this.Ua.oa("spsumpstatuschange",a)};
g.k.wE=function(){for(var a=g.u(Object.values(this.Sr)),b=a.next();!b.done;b=a.next())b=b.value,b.isDisposed()||b.wE();if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(a=g.u(f2a(this.TA)),b=a.next();!b.done;b=a.next())b=b.value,b.isDisposed()||b.wE();this.xb.wE()};
var X3={};var scb=/[&\?]action_proxy=1/,rcb=/[&\?]token=([\w-]*)/,tcb=/[&\?]video_id=([\w-]*)/,ucb=/[&\?]index=([\d-]*)/,vcb=/[&\?]m_pos_ms=([\d-]*)/,ycb=/[&\?]vvt=([\w-]*)/,lcb="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(" "),wcb="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(" "),ocb={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"},pcb={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},xcb={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};u1.prototype.cA=function(a){this.player.xi().tick(a)};
u1.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return jcb(this,a,b);var d=1===this.j;d&&this.cA("a_bid_s");var e=fcb();if(null!==e)return d&&this.cA("a_bid_f"),jcb(this,a,b,e);e=gcb();d&&Yf(e,function(){c.cA("a_bid_f")});
return e.then(function(f){return jcb(c,a,b,f)})};
u1.prototype.reset=function(){this.B=this.j=1};var nkb={c0a:"replaceUrlMacros",YVa:"onAboutThisAdPopupClosed",VAa:"executeCommand"};v1.prototype.yp=function(){return"adPingingEndpoint"};
v1.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Ru.send(a,b,c)};
v1.prototype.Zs=function(a,b,c){adb(this.Oa.get(),a,b,c)};w1.prototype.yp=function(){return"changeEngagementPanelVisibilityAction"};
w1.prototype.handle=function(a){this.J.ib("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
w1.prototype.Zs=function(a){this.handle(a)};x1.prototype.yp=function(){return"loggingUrls"};
x1.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.QA.send(d.baseUrl,b,c,d.attributionSrcMode)};
x1.prototype.Zs=function(a,b,c){a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,adb(this.Oa.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.w(Acb,g.H);g.w(y1,g.H);g.k=y1.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.nk=function(a,b,c,d,e,f,h,l){if(""===a)RG("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.J.U().L("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ia.get().nk(a,b,c,d,e,f,h,l);this.Wa.get().nk(a,b,c,d,e,f,h,l);var m;null==(m=this.Bf)||m.get().nk(a,b,c,d,e,f,h,l);this.B.nk(a,b,c,d,e,f,h,l);m=g.u(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.nk(a,b,c,d,e,f,h,l)}};
g.k.ZP=function(){this.j&&this.Rn(this.j)};
g.k.Rn=function(a){this.j=void 0;for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Rn(a)};z1.prototype.SG=function(a,b,c,d,e){var f=this;Ccb(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.C="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.gg=!1;f.B=!1;f.D=!b&&0===c})};
z1.prototype.reset=function(){return new z1(this.J)};g.w(A1,g.H);A1.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)?RG("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new Jcb(a,b,c,d,f),this.j.set(a.id,{Qe:a,listener:e,Eo:h}),this.J.Af([a],h))};
A1.prototype.removeCueRange=function(a){var b=this.j.get(a);b?Hcb(this,b):RG("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
A1.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
A1.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.w(Jcb,g.jK);B1.prototype.cF=function(a){this.J.cF(a)};
B1.prototype.Zn=function(a){var b=g.Ia.apply(1,arguments);"onAdStart"===a||"onAdEnd"===a?this.J.ym.apply(this.J,[a].concat(g.oa(b))):this.J.ib.apply(this.J,[a].concat(g.oa(b)))};C1.prototype.lf=function(a){return a&&D1(this)};
C1.prototype.BR=function(){return this.J.U().experiments.jb("h5_enable_generic_error_logging_event")};var Qcb=null;g.w(Pcb,g.cG);Pcb.prototype.RN=function(a){return this.j.hasOwnProperty(a)?this.j[a].RN():{}};
g.Ra("ytads.bulleit.getVideoMetadata",function(a){return E1().RN(a)});
g.Ra("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=E1();c=Ocb(c);null!==c&&d.oa(c,{queryId:a,viewabilityString:b})});g.k=F1.prototype;
g.k.Dh=function(a,b){if(!this.j.has(a))return{};if("seek"===b){b=this.J.U().L("html5_dai_enable_active_view_creating_completed_adblock");b=void 0===b?!1:b;var c=gr(ru).iI(a,{});c?pt(c):b&&(a=gr(ru).nF(null,Jr(),!1,a),a.gk=3,Nja([a]));return{}}b=Scb(b);if(null===b)return{};var d=this.J.ud(),e=d&&qab(d);if(!e)return{};this.J.U().L("enable_active_view_lr_shorts_video")?(d=this.J.getPresentingPlayerType(!0),d=null==(c=this.J.getVideoData(d))?void 0:c.isAd()):d=this.J.U().L("enable_server_stitched_dai")?2===
this.J.getPresentingPlayerType(!0):2===d.getPlayerType();if(!d)return{};c={opt_adElement:e,opt_fullscreen:this.Ia.get().isFullscreen()};return Nka(b,a,c)};
g.k.zA=function(a){var b;null==(b=this.j.get(a.queryId))||b.zA()};
g.k.yA=function(a){var b;null==(b=this.j.get(a.queryId))||b.yA()};
g.k.AA=function(a){var b;null==(b=this.j.get(a.queryId))||b.AA()};
g.k.wA=function(a){var b;null==(b=this.j.get(a.queryId))||b.wA()};
g.k.xA=function(a){var b;null==(b=this.j.get(a.queryId))||b.xA()};Ycb.prototype.send=function(a,b,c,d){try{Zcb(this,a,b,c,void 0===d?!1:d)}catch(e){}};g.w(K1,Ycb);K1.prototype.j=function(){return this.G()};
K1.prototype.C=function(){return this.K()};
K1.prototype.B=function(){return this.D()};var okb=ia(["attributionsrc"]);
$cb.prototype.send=function(a,b,c,d){var e=!1;try{var f=new g.po(a);if("2"===f.B.get("ase")||"ATTRIBUTION_SRC_MODE_LABEL_CHROME"===d||"ATTRIBUTION_SRC_MODE_XHR_OPTION"===d)e=!0,a=Xra(a);else if("1"===f.B.get("ase")&&"video_10s_engaged_view"===f.B.get("label")){var h=document.createElement("img");kga([new Gn(okb[0].toLowerCase(),rsa)],h,"attributionsrc",a+"&asr=1")}d=e;var l=a.match(El);if("https"===l[1])var m=a;else l[1]="https",m=Cl("https",l[2],l[3],l[4],l[5],l[6],l[7]);var n=Rka(m);l=[];Ona(m)&&
(l.push({headerType:"USER_AUTH"}),l.push({headerType:"PLUS_PAGE_ID"}),l.push({headerType:"VISITOR_ID"}),l.push({headerType:"EOM_VISITOR_ID"}),l.push({headerType:"AUTH_USER"}));d&&l.push({headerType:"ATTRIBUTION_REPORTING_ELIGIBLE"});this.Ru.send({baseUrl:m,scrubReferrer:n,headers:l},b,c,d)}catch(p){}};L1.prototype.Xi=function(){var a=this.J.ud();return a&&(a=a.Xi(1))?a:null};
L1.prototype.Bi=function(a,b){"string"===typeof b?this.J.getVideoData(1).jF(a,b):this.J.getVideoData(1).va(a,b)};g.w(M1,g.H);g.k=M1.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.nk=function(){this.nM.clear();this.iP=null;this.oe.get().clear()};
g.k.Rn=function(){};
g.k.cf=function(a){var b=this.J.getVideoData(a);return b?hdb(this,b,a||this.J.getPresentingPlayerType(!0)):null};
g.k.S$=function(a,b,c,d){"nPpU29QrbiU"===b.videoId&&this.Bi("ads_ssm_vdc_s",{pt:c,dvt:a});GN(this.Da.get())&&"dataloaded"!==a||idb(this,b,c);if(D1(this.Da.get())&&"newdata"===a){a=null==d?void 0:d.clientPlaybackNonce;b=b.clientPlaybackNonce;if(void 0!==a)for(d=g.u(this.listeners),c=d.next();!c.done;c=d.next())c.value.EJ(a,b);a=g.u(this.listeners);for(c=a.next();!c.done;c=a.next())c.value.DJ(b)}};
g.k.p$=function(a,b){void 0!==a&&(this.iP=a,void 0===b?RG("Expected ad video start time on SS video changed"):this.nM.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).va("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?idb(this,d,c):RG("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.xa=function(){this.listeners.length=0;this.yv=null;g.H.prototype.xa.call(this)};
g.k.Bi=function(a,b){this.J.getVideoData(1).va(a,b)};g.w(N1,g.H);g.k=N1.prototype;g.k.nk=function(){var a=this;D1(this.Da.get())||(this.j=Jd(function(){a.J.isDisposed()||a.J.Ig("ad",1)}))};
g.k.Rn=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.BY=function(){};
g.k.playVideo=function(){this.J.playVideo()};
g.k.pauseVideo=function(){this.J.pauseVideo()};
g.k.resumeVideo=function(a){this.Ln(a)&&this.J.playVideo()};
g.k.Ln=function(a){return 2===this.J.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.Wa.get().iP;return 2!==a||b||null===c?this.J.getCurrentTime(a,b):kdb(this,c)};
g.k.getVolume=function(){return this.J.getVolume()};
g.k.isMuted=function(){return this.J.isMuted()};
g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.J.getPlayerState(a)};
g.k.isFullscreen=function(){return this.J.isFullscreen()};
g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()};
g.k.sB=function(a){this.J.sB(a)};
g.k.Q9=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){var c=g.u(this.listeners);for(a=c.next();!a.done;a=c.next())a.value.Zi(b)}else if(1===a)for(c=g.u(this.kH),a=c.next();!a.done;a=c.next())a.value.BY(b)};
g.k.H9=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Bj(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.u(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.wh=function(){for(var a=this.J.jg(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.wh(a)};
g.k.al=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.al(a)};
g.k.Zb=function(){for(var a=this.J.qb().Yj(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Aj(a)};
g.k.Zk=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Zk(a)};g.w(odb,g.H);g.w(R1,g.H);R1.prototype.xa=function(){this.On.isDisposed()||this.On.get().removeListener(this);g.H.prototype.xa.call(this)};S1.prototype.fetch=function(a){var b=a.wV;return this.j.fetch(a.s0,{nH:void 0===a.nH?void 0:a.nH,Qe:b,cueProcessedMs:void 0===a.cueProcessedMs?0:a.cueProcessedMs}).then(function(c){return pdb(c,b)})};g.w(U1,g.H);g.k=U1.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.CK=function(a){qdb(this,a,1)};
g.k.onAdUxClicked=function(a,b){V1(this,function(c){c.Cg(a,b)})};
g.k.LP=function(a){V1(this,function(b){b.nO(a)})};
g.k.KP=function(a){V1(this,function(b){b.mO(a)})};
g.k.r8=function(a){V1(this,function(b){b.mI(a)})};W1.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={UC:null,IX:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.IX))if(b.IX=c,b.UC){if(c<b.UC.end){a:{c=b.UC;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.gi;a=c.end<=a?null:a}if(null!==a)for(b.UC.end=a,b=this.B,g.Wb(b.C.j,1E3*a),b=g.u(b.listeners),c=b.next();!c.done;c=b.next())c.value.EY(a)}}else if(a=rdb(a,this.C))c=a.o7,b.UC=
a.f5,tdb(this.B,c)};
W1.prototype.updateTime=function(){};g.w(X1,g.H);g.k=X1.prototype;
g.k.nk=function(){this.G=new W1(this,Mcb(this.Da.get()));this.C=new sdb;var a=this.J.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.J.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.RP,this),b.subscribe("cuepointupdated",this.RP,this),this.j=b)}this.RK.length=0;var d;b=(null==(d=a.j)?void 0:lOa(d,0))||[];d=g.u(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Ot(b)&&RG("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.Rn=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.Ot=function(a){vdb(this,a);this.G.reduce(a);a=this.D;this.D=!1;return a};
g.k.RP=function(a){var b=this.J.getVideoData(1).isDaiEnabled();if(b||!g.NJ(this.J.U())){a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,vdb(this,c),b?this.G.reduce(c):0!==this.J.getCurrentTime(1)&&"start"===c.event&&(this.Da.get().J.U().experiments.jb("ignore_overlapping_cue_points_on_endemic_live_html5")&&(null==this.B?0:c.startSecs+c.gi>=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.gi)?RG("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,tdb(this,
c)))}};
g.k.xa=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.RP,this),this.j=null);this.listeners.length=0;this.RK.length=0;g.H.prototype.xa.call(this)};Y1.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=$1.prototype;g.k.HC=function(a,b,c,d,e,f,h){return this.J.HC(a,b,c,d,e,f,h)};
g.k.Oy=function(a,b){this.J.Oy(a,b)};
g.k.dG=function(a,b,c){this.J.dG(a,b,c)};
g.k.Rt=function(a){this.J.Rt(a)};
g.k.UD=function(a,b,c,d,e,f,h){this.J.UD(a,b,c,d,e,f,h)};
g.k.Jr=function(){return this.J.Jr()};
g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.w(xdb,g.H);g.w(ydb,g.H);g.w(zdb,g.H);g.w(Adb,g.H);g.w(Bdb,g.H);g.w(Cdb,g.H);g.w(Edb,g.H);Edb.prototype.C=function(){return this.B};g.w(c2,Ycb);c2.prototype.j=function(){return this.Aq?g.JS(this.Aq.U(),g.$T(this.Aq)):lC("")};
c2.prototype.C=function(){return this.Aq?this.Aq.U().pageId:""};
c2.prototype.B=function(){return this.Aq?this.Aq.U().ra:""};g.w(Gdb,FG);
Gdb.prototype.D=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.ib("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:this.j.ib("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.ib("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ib("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ib("updateKevlarOrC3Companion",{})}else if("top-banner-image-text-icon-buttoned"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,topBannerImageTextIconButtonedLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ib("updateKevlarOrC3Companion",{})}else if("banner-image"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,bannerImageLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ib("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.ib("updateEngagementPanelAction",b.addAction);this.j.ib("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.ib("changeEngagementPanelVisibility",b.hideAction),this.j.ib("updateEngagementPanelAction",b.removeAction)}};g.w(Hdb,JG);g.k=Hdb.prototype;g.k.init=function(a,b,c){JG.prototype.init.call(this,a,b,c);g.Yr(this.C,"stroke-dasharray","0 "+this.B);this.api.U().L("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.C.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){LG(this);JG.prototype.hide.call(this)};
g.k.show=function(){KG(this);JG.prototype.show.call(this)};
g.k.Vp=function(){this.hide()};
g.k.Yn=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.Yr(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.w(Idb,lG);g.k=Idb.prototype;
g.k.init=function(a,b,c){lG.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.R(b.actionButton,g.nN))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.KF(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.cc(g.ue(e[0].url))&&(e[0].url=d.profilePicture,g.cc(g.ue(d.profilePicture))&&QTa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.cc(g.ue(e[0].url))&&(e[0].url=d.Wg());e=b.headline;null!=e&&g.cc(g.ue(e.text))&&(e.text=d.author)}this.W.init(aG("ad-image"),b.image,c);this.G.init(aG("ad-text"),b.headline,c);this.D.init(aG("ad-text"),b.description,c);this.La.init(aG("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button",
"ytp-ad-action-interstitial-action-button-rounded"];this.api.U().L("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.D.element.classList.add("ytp-ad-action-interstitial-description-light"),d.push("ytp-ad-action-interstitial-action-button-dark"));this.api.U().L("enable_small_endcap_action_button_for_mweb")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size");
this.api.U().L("enable_mweb_endcap_dark_mode_action_button")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-dark");this.actionButton=new vG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,d);g.J(this,this.actionButton);this.actionButton.Ja(this.bb);this.actionButton.init(aG("button"),g.R(b.actionButton,g.nN),c);yu(this.actionButton.element);d=Bu(this.actionButton.element);Au(this.actionButton.element,d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;
this.api.U().B?this.api.U().L("enable_mweb_endcap_clickable_icon_description")&&(this.C.T(this.Ga,"click",this.fD,this),this.C.T(this.ra,"click",this.fD,this)):(this.C.T(this.Ga,"click",this.fD,this),this.C.T(this.Na,"click",this.fD,this),this.C.T(this.ra,"click",this.fD,this));this.j=this.ER?new aH(this.api,a):new bH(a);g.J(this,this.j);if(b.skipButton){if((a=g.R(b.skipButton,Ggb))&&this.j&&(this.skipButton=new WG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j,this.zK),g.J(this,
this.skipButton),this.skipButton.Ja(this.element),this.skipButton.init(aG("skip-button"),a,c)),this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")){if(c=b.adBadgeRenderer)if(c=g.R(c,Fgb))a=new ZG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,!0),a.Ja(this.Va),a.init(aG("simple-ad-badge"),c,this.macros),g.J(this,a);if(c=b.adInfoRenderer)if(c=g.R(c,lN))a=new HG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.element),a.Ja(this.Va),a.init(aG("ad-info-hover-text-button"),
c,this.macros),g.J(this,a)}}else b.nonskippableOverlayRenderer&&(a=g.R(b.nonskippableOverlayRenderer,mN))&&this.j&&(this.B=new OG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j,!1),g.J(this,this.B),this.B.Ja(this.element),this.B.init(aG("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.R(b,Hgb)&&this.j&&(c=new Hdb(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j),g.J(this,c),c.Ja(this.element),c.init(aG("timed-pie-countdown"),g.R(b,Hgb),
this.macros)));this.show();this.element.focus()}else g.KF(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.KF(Error("AdActionInterstitialRenderer has no button."));else g.KF(Error("AdActionInterstitialRenderer has no background AdImage."));else g.KF(Error("AdActionInterstitialRenderer has no description AdText."));else g.KF(Error("AdActionInterstitialRenderer has no headline AdText."));else g.KF(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.UC(this.C);this.hide()};
g.k.show=function(){Jdb(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();lG.prototype.show.call(this)};
g.k.hide=function(){Jdb(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();lG.prototype.hide.call(this)};
g.k.fD=function(){this.navigationEndpoint&&(this.layoutId?this.gb.executeCommand(this.navigationEndpoint,this.layoutId):g.KF(Error("Missing layoutId for ad action interstitial.")))};var Odb={iconType:"CLOSE"},g2=new g.ne(320,63);g.w(Ndb,lG);g.k=Ndb.prototype;
g.k.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);this.D=b;this.W=g.Kb(this.D.onClickCommands||[]);this.Na=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.R(a,Cgb)?(this.G=g.Me("ytp-ad-overlay-ad-info-button-container",this.C.element),Pdb(this,b),a=Rdb(this,g.R(a,Cgb))):g.R(a,Dgb)?(this.G=g.Me("ytp-ad-overlay-ad-info-button-container",this.B.element),Pdb(this,b),a=Sdb(this,g.R(a,Dgb))):g.R(a,Egb)?(this.G=
g.Me("ytp-ad-overlay-ad-info-button-container",this.j.element),Pdb(this,b),a=Tdb(this,g.R(a,Egb))):(g.KF(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),Udb(this,!0))};
g.k.clear=function(){Udb(this,!1);this.La.reset();this.ra=0;this.C.hide();this.logVisibility(this.C.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.hide();this.dispose()};
g.k.G$=function(){this.bb&&(this.layoutId?this.gb.executeCommand(this.bb,this.layoutId):g.KF(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.k.Op=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.u(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.gb.executeCommand(b,this.layoutId):g.KF(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.p8=function(){this.Va||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.iQ=function(){this.Va||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.iQ("invideo-overlay")};
g.k.q8=function(a){a.target===this.G&&g.Me("ytp-ad-button",this.kb.element).click()};g.w(Vdb,JG);g.k=Vdb.prototype;g.k.init=function(a,b,c){JG.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.j.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(aG("ad-text"),d,c);this.messageText.Ja(this.B.element);this.D.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){Wdb(this,!1);JG.prototype.hide.call(this);this.B.hide();this.messageText.hide();LG(this)};
g.k.show=function(){Wdb(this,!0);JG.prototype.show.call(this);KG(this);this.B.show();this.messageText.show()};
g.k.Vp=function(){this.hide()};
g.k.Yn=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.ra&&a>=this.C?(this.D.hide(),this.ra=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(gwa(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.w(Xdb,lG);g.k=Xdb.prototype;
g.k.init=function(a,b,c){lG.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.R(b.actionButton,g.nN)?(this.C.init(aG("ad-image"),b.image,c),this.B.init(aG("ad-text"),b.headline,c),this.D.init(aG("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.U().L("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new vG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,
a),b.backgroundColor&&g.Yr(this.element,"background-color",g.kH(b.backgroundColor)),g.J(this,this.actionButton),this.actionButton.Ja(this.G),this.actionButton.init(aG("button"),g.R(b.actionButton,g.nN),c),b=g.EJ(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.Ou(c,"ytp-ad-underlay-left-container"),g.Mu(c,"ytp-ad-underlay-right-container"),g.Yr(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.Ou(c,"ytp-ad-underlay-right-container"),
g.Mu(c,"ytp-ad-underlay-left-container")),g.Yr(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.dE()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.HS.bind(this)),this.api.addEventListener("resize",this.LW.bind(this))):g.KF(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.KF(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.KF(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.KF(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){Ydb(!0);this.actionButton&&this.actionButton.show();lG.prototype.show.call(this)};
g.k.hide=function(){Ydb(!1);this.actionButton&&this.actionButton.hide();lG.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.HS.bind(this));this.api.removeEventListener("resize",this.LW.bind(this));this.hide()};
g.k.onClick=function(a){lG.prototype.onClick.call(this,a);this.actionButton&&g.pf(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.HS=function(a){"transitioning"===a?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.j.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))};
g.k.LW=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.Yr(this.B.element,"font-size",a.width/40+"px")};g.w(h2,lG);
h2.prototype.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.R(b.answer,g.nN)?(a=new vG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ja(this.answer),a.init(aG("ytp-ad-survey-answer-button"),g.R(b.answer,g.nN),c),a.show()):b.answer&&g.R(b.answer,U2)&&(this.j=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,
["ytp-ad-survey-answer-toggle-button"]),this.j.Ja(this.answer),g.J(this,this.j),this.j.init(aG("survey-answer-button"),g.R(b.answer,U2),c));this.show()};
h2.prototype.zF=function(a){this.layoutId?$J(this.gb,a,this.layoutId,this.macros):g.KF(new g.eD("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
h2.prototype.onClick=function(a){lG.prototype.onClick.call(this,a);if(this.api.U().L("supports_multi_step_on_desktop")&&null!==this.index)this.onSelected(this.index)};
h2.prototype.clear=function(){this.hide()};g.w(Zdb,lG);Zdb.prototype.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);b.answer&&g.R(b.answer,U2)&&(this.button=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ja(this.j),this.button.init(aG("survey-none-of-the-above-button"),g.R(b.answer,U2),c));this.show()};g.w(i2,vG);i2.prototype.init=function(a,b,c){vG.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.nG(b.text),a=!g.cc(b));a||g.LF(Error("No submit text was present in the renderer."))};
i2.prototype.onClick=function(a){this.oa("l");vG.prototype.onClick.call(this,a)};g.w(j2,lG);
j2.prototype.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.R(a,dM)?(a=g.R(a,dM),c=new YG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.C,!0),c.Ja(this.skipOrPreview),c.init(aG("skip-button"),a,this.macros),g.J(this,c),this.j=c):g.R(a,mN)&&(a=g.R(a,mN),c=new OG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.C,!1),c.Ja(this.skipOrPreview),c.init(aG("ad-preview"),a,this.macros),hwa(c),g.J(this,c),this.j=c);null==
this.j&&g.KF(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.R(a,g.nN)&&(a=g.R(a,g.nN),c=new i2(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),c.Ja(this.submitButton),c.init(aG("survey-submit"),a,this.macros),g.J(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.R(a,Fgb),c=new ZG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,!0),c.Ja(this.D),c.init(aG("simple-ad-badge"),a,this.macros),
g.J(this,c);if(a=b.adDurationRemaining)a=g.R(a,ygb),c=new eH(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.C,void 0),c.Ja(this.D),c.init(aG("ad-duration-remaining"),a,this.macros),g.J(this,c);(b=b.adInfoRenderer)&&g.R(b,lN)&&(a=new HG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.element),g.J(this,a),a.Ja(this.D),a.init(aG("ad-info-hover-text-button"),g.R(b,lN),this.macros));this.show()};
j2.prototype.clear=function(){this.hide()};g.w(k2,lG);k2.prototype.init=function(a,b,c){lG.prototype.init.call(this,a,b,c);deb(this)};
k2.prototype.show=function(){this.C=g.gb();lG.prototype.show.call(this)};
k2.prototype.KZ=function(){};g.w(eeb,k2);g.k=eeb.prototype;g.k.init=function(a,b,c){var d=this;k2.prototype.init.call(this,a,b,c);b.questionText&&$db(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.R(e,P2)&&aeb(d,g.R(e,P2),c,f)});
this.G=new Set(this.B.map(function(e){return e.j.j}));
(a=b.noneOfTheAbove)&&(a=g.R(a,Bgb))&&feb(this,a,c);b.surveyAdQuestionCommon&&ceb(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.k.KZ=function(){geb(this,!1);this.D.B.subscribe("l",this.E$,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?heb(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),geb(this,!0))};
g.k.E$=function(){var a=[],b=this.B.reduce(function(e,f,h){var l=f.toggledLoggingParams;f.j&&f.j.isToggled()&&l&&(e.push(l),a.push(h));return e},[]).join("&"),c=this.submitEndpoints.map(function(e){if(!e.loggingUrls)return e;
e=g.pd(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=Nl(f.baseUrl,b));return f});
return e});
if(c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?$J(this.gb,d,this.layoutId,this.macros):g.KF(Error("Missing layoutId for multi_select_question."))}this.api.U().L("supports_multi_step_on_desktop")&&this.ra(a)};
g.k.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(l2,k2);l2.prototype.init=function(a,b,c){var d=this;k2.prototype.init.call(this,a,b,c);b.questionText&&$db(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.R(e,P2)&&aeb(d,g.R(e,P2),c,f)});
b.surveyAdQuestionCommon?ceb(this,b.surveyAdQuestionCommon):g.KF(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
l2.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(m2,lG);m2.prototype.init=function(a,b,c){var d=this;lG.prototype.init.call(this,a,b,c);if(this.api.U().L("supports_multi_step_on_desktop")){var e;this.conditioningRules=null!=(e=b.conditioningRules)?e:[];var f;this.B=null!=(f=b.questions)?f:[];var h;(null==(h=b.questions)?0:h.length)&&leb(this,0)}else(b.questions||[]).forEach(function(l){g.R(l,kN)?jeb(d,g.R(l,kN),c):g.R(l,jN)&&keb(d,g.R(l,jN),c)});
this.show()};
m2.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
m2.prototype.D=function(a){var b=this;if(this.api.U().L("supports_multi_step_on_desktop")){var c;if(null==(c=this.conditioningRules)?0:c.length){var d;if(0===a.length)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(null==this.conditioningRules.find(function(e){return e.questionIndex===b.j}))g.KF(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
else if(this.conditioningRules.forEach(function(e){if(e.questionIndex===b.j)switch(e.condition){case "CONDITION_ALL_OF":var f;if(null==(f=e.answerIndices)?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var h;if(null==(h=e.answerIndices)?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;default:g.KF(Error("Expected specified condition in survey conditioning rules."))}}),null!=d)leb(this,d);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else 1<this.questions.length&&g.KF(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};var meb=ia(['background-image:url("','");']);g.w(n2,lG);
n2.prototype.init=function(a,b,c){var d=this;lG.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.KF(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.R(b.ctaButton,g.nN))if(b.brandImage)if(b.backgroundImage&&g.R(b.backgroundImage,oN)&&g.R(b.backgroundImage,oN).landscape){this.layoutId||g.KF(Error("Missing layoutId for survey interstitial."));neb(this.interstitial,
g.R(b.backgroundImage,oN).landscape);neb(this.logoImage,b.brandImage);g.qf(this.text,g.nG(b.text));var e=["ytp-ad-survey-interstitial-action-button"];this.api.U().L("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new vG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,e);g.J(this,this.actionButton);this.actionButton.Ja(this.B);this.actionButton.init(aG("button"),g.R(b.ctaButton,g.nN),c);this.actionButton.show();this.j=new aH(this.api,
1E3*a);this.j.subscribe("g",function(){d.transition.hide()});
g.J(this,this.j);this.T(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.KF(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.KF(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.KF(Error("SurveyTextInterstitialRenderer has no button."));else g.KF(Error("SurveyTextInterstitialRenderer has no text."));else g.KF(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
n2.prototype.clear=function(){this.hide()};
n2.prototype.show=function(){oeb(!0);lG.prototype.show.call(this)};
n2.prototype.hide=function(){oeb(!1);lG.prototype.hide.call(this)};g.w(o2,JG);g.k=o2.prototype;
g.k.init=function(a,b){JG.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(0>b.durationMilliseconds){g.KF(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.jn();var c;if(null==(c=b.previewText)||!c.text||g.cc(b.previewText.text))g.KF(Error("No text is returned for AdPreview."));else{this.D=b.previewText;b.previewText.isTemplated||g.qf(this.G,b.previewText.text);var d;
if(null==(d=this.api.getVideoData(1))?0:d.Fl)if(b.previewImage){var e,f;(a=(null==(f=Yxa((null==(e=b.previewImage)?void 0:e.sources)||[],52,!1))?void 0:f.url)||"")&&a.length?(this.previewImage=new g.kG({I:"img",S:"ytp-preview-ad__image",Y:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.J(this,this.previewImage),this.previewImage.Ja(this.element)):g.KF(Error("Failed to get imageUrl in AdPreview."))}else g.KF(Error("No image is returned for AdPreview."))}};
g.k.clear=function(){this.hide()};
g.k.hide=function(){LG(this);JG.prototype.hide.call(this)};
g.k.show=function(){KG(this);JG.prototype.show.call(this)};
g.k.Vp=function(){this.hide()};
g.k.Yn=function(){if(this.j){var a=this.j.getProgressState();if(null!=a&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if(null==(b=this.D)?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.C){var c,d;(a=null==(c=this.D)?void 0:null==(d=c.text)?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.qf(this.G,a);this.C=b}}}};g.w(p2,lG);
p2.prototype.init=function(a,b){lG.prototype.init.call(this,a,b,{});var c,d;if((a=(null==(d=Yxa((null==(c=b.image)?void 0:c.sources)||[],peb(b),!0))?void 0:d.url)||"")&&a.length){c=this.Ha("ytp-ad-avatar");c.src=a;var e,f;if(d=null==(e=b.interaction)?void 0:null==(f=e.accessibility)?void 0:f.label)c.alt=d;switch(b.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s");
break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(b.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.KF(Error("Failed to get imageUrl in AdAvatar."))};
p2.prototype.clear=function(){this.hide()};
p2.prototype.onClick=function(a){a.stopPropagation();lG.prototype.onClick.call(this,a)};g.w(q2,lG);
q2.prototype.init=function(a,b){lG.prototype.init.call(this,a,b,{});var c;a=null==(c=b.label)?void 0:c.content;if((c=null!=a&&!g.cc(a))||b.icon){c&&(this.buttonText=new g.kG({I:"span",S:"ytp-ad-button__text",ya:a}),g.J(this,this.buttonText),this.buttonText.Ja(this.element));var d,e,f=(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)||c?a:"";f&&Au(this.element,f+" This link opens in new tab");yu(this.element);b.icon&&(d=uG(b.icon),null!=d&&(this.buttonIcon=new g.kG({I:"span",S:"ytp-ad-button__icon",
V:[d]}),g.J(this,this.buttonIcon),b.iconLeading?(mf(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button__icon--leading")):(this.buttonIcon.Ja(this.element),this.buttonIcon.element.classList.add("ytp-ad-button__icon--trailing"))));this.element.classList.add("ytp-ad-button--style-filled");switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button--size-large");
break;default:this.element.classList.add("ytp-ad-button--size-default")}}else g.LF(Error("AdButton does not have label or an icon."))};
q2.prototype.clear=function(){this.hide()};
q2.prototype.onClick=function(a){a.stopPropagation();lG.prototype.onClick.call(this,a)};g.w(r2,lG);r2.prototype.init=function(a,b){lG.prototype.init.call(this,a,b,{});if(a=b.content){g.qf(this.element,a);var c,d;b=(null==(c=b.interaction)?void 0:null==(d=c.accessibility)?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.KF(Error("AdSimpleAttributedString does not have text content"))};
r2.prototype.clear=function(){this.hide()};
r2.prototype.onClick=function(a){a.stopPropagation();lG.prototype.onClick.call(this,a)};g.w(seb,JG);g.k=seb.prototype;
g.k.init=function(a,b){JG.prototype.init.call(this,a,b,{});if(a=g.R(b.avatar,Igb)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.R(b.button,Jgb);e?(this.adAvatar.init(aG("ad-avatar"),a),this.headline.init(aG("ad-simple-attributed-string"),new reb(c)),this.description.init(aG("ad-simple-attributed-string"),new reb(d)),this.adButton.init(aG("ad-button"),e),this.B=b.startMs||0,this.api.dE()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.IS.bind(this)),KG(this)):
g.KF(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.KF(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.KF(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.KF(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.k.Yn=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.B&&(LG(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.k.Vp=function(){this.clear()};
g.k.onClick=function(a){a.stopPropagation();JG.prototype.onClick.call(this,a);this.api.pauseVideo()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.IS.bind(this))};
g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();JG.prototype.show.call(this)};
g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();JG.prototype.hide.call(this)};
g.k.IS=function(a){"hidden"===a?this.show():this.hide()};g.w(teb,lG);g.k=teb.prototype;
g.k.init=function(a,b){lG.prototype.init.call(this,a,b,{});if(!b.label||g.cc(b.label))g.KF(Error("No label is returned for SkipAdButton."));else if(g.qf(this.D,b.label),a=uG({iconType:"SKIP_NEXT"}),null==a)g.KF(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.kG({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.J(this,this.C),this.C.Ja(this.element),this.api.U().experiments.jb("enable_skip_to_next_messaging")&&(b=g.ue(b.targetId)))this.B=!0,this.element.setAttribute("data-tooltip-target-id",b),
this.element.setAttribute("data-tooltip-target-fixed","")};
g.k.onClick=function(a){a&&a.preventDefault();var b,c,d=null!=(c=null==(b=this.api.getVideoData(1))?void 0:b.clientPlaybackNonce)?c:"";if(!this.api.U().L("ab_sa_ef")||0!==QG(a,{contentCpn:d})){lG.prototype.onClick.call(this,a);if(!this.api.U().L("ab_sa_ef")){var e,f;b={contentCpn:null!=(f=null==(e=this.api.getVideoData(1))?void 0:e.clientPlaybackNonce)?f:""};QG(a,b)}this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.k.clear=function(){this.j.reset();this.hide()};
g.k.hide=function(){lG.prototype.hide.call(this)};
g.k.show=function(){this.j.start();lG.prototype.show.call(this);this.B&&this.api.U().experiments.jb("enable_skip_to_next_messaging")&&this.api.oa("showpromotooltip",this.element)};g.w(ueb,JG);g.k=ueb.prototype;g.k.init=function(a,b){JG.prototype.init.call(this,a,b,{});if(a=g.R(b.preskipState,Kgb)){var c=g.R(b.skippableState,Mgb);c?(null!=b.skipOffsetMilliseconds?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.LF(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(aG("preview-ad"),a),this.B.transition.show(100),this.C.init(aG("skip-button"),c),this.show()):g.KF(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}else g.KF(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))};
g.k.show=function(){KG(this);JG.prototype.show.call(this)};
g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();LG(this);JG.prototype.hide.call(this)};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();LG(this);JG.prototype.hide.call(this)};
g.k.Vp=function(){this.hide()};
g.k.Yn=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;null!=(a=this.B)&&a.transition.hide();var b;null!=(b=this.C)&&b.transition.show()}};g.w(s2,lG);
s2.prototype.init=function(a,b){lG.prototype.init.call(this,a,b,{});if(b.label||b.icon){var c;(null==(c=b.label)?0:c.content)&&!g.cc(b.label.content)&&(this.linkText=new g.kG({I:"span",S:"ytp-visit-advertiser-link__text",ya:b.label.content}),g.J(this,this.linkText),this.linkText.Ja(this.element));b.icon&&(a=uG(b.icon),null!=a&&(this.j=new g.kG({I:"span",S:"ytp-visit-advertiser-link__icon",V:[a]}),g.J(this,this.j),this.j.Ja(this.element)));var d,e;if(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:
e.label)this.element.setAttribute("aria-label",b.interaction.accessibility.label);else{var f;(null==(f=b.label)?0:f.content)&&!g.cc(b.label.content)&&this.element.setAttribute("aria-label",b.label.content)}this.show()}else g.KF(Error("No label or icon found in VisitAdvertiserLink."))};
s2.prototype.clear=function(){this.hide()};g.w(t2,lG);
t2.prototype.init=function(a,b,c,d){lG.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.R(c,Ngb),c=g.R(c,Kgb),a?(this.ou=new ueb(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j),g.J(this,this.ou),this.ou.Ja(this.D),this.ou.init(aG("skip-ad"),a)):c&&(this.C=new o2(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j),g.J(this,this.C),this.C.Ja(this.D),this.C.init(aG("ad-preview"),c),this.C.transition.show(100)));b.playerAdCard&&(a=
g.R(b.playerAdCard,Lgb))&&(this.playerAdCard=new seb(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j),g.J(this,this.playerAdCard),this.playerAdCard.Ja(this.G),this.playerAdCard.init(aG("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(a=g.R(b.adBadgeRenderer,Fgb))&&(this.adBadge=new ZG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,!0),g.J(this,this.adBadge),this.adBadge.Ja(this.B),this.adBadge.init(aG("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&
(a=g.R(b.adDurationRemaining,ygb))&&(this.adDurationRemaining=new eH(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.j,d.videoAdDurationSeconds),g.J(this,this.adDurationRemaining),this.adDurationRemaining.Ja(this.B),this.adDurationRemaining.init(aG("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.R(b.adInfoRenderer,lN))&&(this.adInfoButton=new HG(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.element),g.J(this,this.adInfoButton),this.adInfoButton.Ja(this.B),
this.adInfoButton.init(aG("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(b=g.R(b.visitAdvertiserLink,Ogb))&&(this.visitAdvertiserLink=new s2(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.J(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ja(this.B),this.visitAdvertiserLink.init(aG("visit-advertiser-link"),b));this.show()};
t2.prototype.clear=function(){this.hide()};var pkb="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 banner-image top-banner-image-text-icon-buttoned".split(" "));g.w(u2,FG);
u2.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!pkb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.gb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof DK?c.ER:!1,m=c instanceof DK||c instanceof $G?c.zK:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;switch(d){case "invideo-overlay":a=new Ndb(a,f,h,e);break;case "player-overlay":a=new iH(a,f,h,e,new tW(a),m);break;case "player-overlay-layout":a=new t2(a,f,h,e,new tW(a));break;case "survey":a=
new m2(a,f,h,e);break;case "ad-action-interstitial":a=new Idb(a,f,h,e,l,m);break;case "survey-interstitial":a=new n2(a,f,h,e);break;case "ad-message":a=new Vdb(a,f,h,e,new tW(a,1));break;case "player-underlay":a=new Xdb(a,f,h,e);break;default:a=null}if(!a){g.LF(Error("No UI component returned from ComponentFactory for type: "+d));break}g.fd(this.B,b)?g.LF(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof LAa?this.C?this.C.append(a.iR):g.KF(Error("Underlay view was not created but UnderlayRenderer was created")):
this.G.append(a.iR);break;case 2:b=veb(this,a);if(null==b)break;b.bind(c);break;case 3:c=veb(this,a),null!=c&&(g.ub(c),g.fd(this.B,b)?(c=this.B,b in c&&delete c[b]):g.LF(Error("Ad UI component does not exist: "+b)))}};
u2.prototype.xa=function(){g.vb(Object.values(this.B));this.B={};FG.prototype.xa.call(this)};g.w(web,g.RV);g.k=web.prototype;g.k.create=function(){try{xeb(this),this.load(),this.created=!0,xeb(this)}catch(a){RG(a instanceof Error?a:String(a))}};
g.k.load=function(){try{Aeb(this)}finally{D1(b2(this.j).Vj)&&this.player.Ig("ad",1)}};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Nt.Rn(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.RV.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){RG(b instanceof Error?b:String(b))}if(null!=this.B){var a=this.B;this.B=null;a.dispose()}this.C.reset()};
g.k.yl=function(){return!1};
g.k.getAdState=function(){return-1};
g.k.getOptions=function(){return Object.values(nkb)};
g.k.Ih=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=Vcb(this.player),Object.assign(b,a.Shb),a=g.tu(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Np(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
g.k.Ot=function(a){var b;return!(null==(b=this.j.j.Bf)||!b.get().Ot(a))};
g.k.Np=function(a){a.isMuted&&gya(b2(this.j).zj,b2(this.j).Yk,a.layoutId);this.hs&&this.hs.Np()};
g.k.executeCommand=function(a){b2(this.j).gb.executeCommand(a.command,a.layoutId)};g.Ra("yt.player.Application.create",g.X0.create);g.Ra("yt.player.Application.createAlternate",g.X0.create);vua(xua(),{rr:[{mA:/Unable to load player module/,weight:20},{mA:/Failed to fetch/,weight:500},{mA:/XHR API fetch failed/,weight:10},{mA:/JSON parsing failed after XHR fetch/,weight:10},{mA:/Retrying OnePlatform request/,weight:10},{mA:/CSN Missing or undefined during playback association/,weight:100}]});var qkb=g.Sa("ytcsi.tick");qkb&&qkb("pe");g.QV("ad",web);var Feb=g.We&&Eeb();g.rkb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Ra("yt.msgs_",g.rkb);g.w(g.x2,g.H);g.x2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.FD)()};this.next()};
g.x2.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.x2.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.FD)()-a;a=this.j;d=qla(a,e/d);if(0==d)a=a.C;else if(1==d)a=a.D;else{e=ke(a.C,a.y1,d);var f=ke(a.y1,a.y2,d);a=ke(a.y2,a.D,d);e=ke(e,f,d);f=ke(f,a,d);a=ke(e,f,d)}a=g.ie(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.w(g.y2,g.U);g.k=g.y2.prototype;g.k.SD=function(){return 0<this.suggestionData.length};
g.k.z1=function(){this.B&&this.scrollTo(this.j-this.containerWidth)};
g.k.show=function(){g.U.prototype.show.call(this);Ieb(this)};
g.k.A1=function(){this.B&&this.scrollTo(this.j+this.containerWidth)};
g.k.Ew=function(){this.Zb(this.api.qb().getPlayerSize())};
g.k.Zb=function(a){var b=g.DU(this.api)?.5625:16/9,c=this.api.Og();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-8*c)/c;b=Math.floor(d/b);for(var e=g.u(this.C),f=e.next();!f.done;f=e.next())f=f.value.Ha("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.G=d;this.W=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.z2(this)};
g.k.onVideoDataChange=function(){var a=this.api.U(),b=this.api.getVideoData();this.K=b.Gf?!1:a.D;this.suggestionData=b.suggestions?g.bt(b.suggestions,function(c){return c&&!c.playlistId}):[];
Keb(this);b.Gf?this.title.update({title:g.qK("Lis\u00e4\u00e4 videoita kanavalta $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:g.DU(this.api)?"Lis\u00e4\u00e4 Shorts-videoita":"Lis\u00e4\u00e4 videoita"})};
g.k.scrollTo=function(a){a=g.ie(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.z2(this);Ieb(this)};})(_yt_player);

}

/*
     FILE ARCHIVED ON 11:49:09 Jan 02, 2024 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 22:29:54 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: 0.643
  load_resource: 204.627
  PetaboxLoader3.resolve: 32.534
  PetaboxLoader3.datanode: 3.862
*/